1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
4 * gdbarch.c: Regenerate.
6 * corelow.c (sniff_core_bfd): Drop presence check for deleted
7 gdbarch method 'regset_from_core_section'.
8 (get_core_register_section): Remove handling for the case that
9 regset == NULL and regset_from_core_section is defined.
10 (get_core_registers): Drop check for deleted method.
11 * procfs.c (procfs_do_thread_registers): Adjust comment.
13 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
15 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
16 (linux_nat_make_corefile_notes): Remove.
17 (linux_target_install_ops): Do not set target method
18 'make_corefile_notes'.
19 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
21 (linux_corefile_thread_callback): Instead of args->collect, call
22 linux_collect_thread_registers.
23 (linux_make_corefile_notes): Remove 'collect' parameter. Return
24 NULL unless there is a regset iterator.
25 (linux_make_corefile_notes_1): Remove.
26 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
27 by linux_make_corefile_notes.
28 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
30 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
32 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
33 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
35 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
37 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
39 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
40 (xtensa_iterate_over_regset_sections): New.
41 (xtensa_gdbarch_init): Adjust gdbarch initialization.
43 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
45 * vax-tdep.c (vax_regset_from_core_section): Remove.
46 (vax_iterate_over_regset_sections): New.
47 (vax_gdbarch_init): Adjust gdbarch initialization.
49 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
51 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
52 (tilegx_regset_from_core_section): Remove.
53 (tilegx_iterate_over_regset_sections): New.
54 (tilegx_linux_init_abi): Adjust gdbarch initialization.
56 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
58 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
59 (sparc_iterate_over_regset_sections): New.
60 (sparc32_gdbarch_init): Adjust gdbarch initialization.
61 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
63 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
64 (sparc64fbsd_init_abi): Call fbsd_init_abi.
65 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
66 target method 'make_corefile_notes'.
68 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
70 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
71 'sizeof_gregset' and 'sizeof_fpregset'.
72 * sh-tdep.c (sh_regset_from_core_section): Remove.
73 (sh_iterate_over_regset_sections): New.
74 (sh_gdbarch_init): Adjust gdbarch initialization.
75 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
77 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
80 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
82 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
83 (score7_linux_iterate_over_regset_sections): New.
84 (score_gdbarch_init): Adjust gdbarch initialization.
86 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
88 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
90 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
91 method 'make_corefile_notes'.
92 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
93 (ppcfbsd_regset_from_core_section): Remove.
94 (ppcfbsd_iterate_over_regset_sections): New.
95 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
97 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
98 (ppcnbsd_iterate_over_regset_sections): New.
99 (ppcnbsd_init_abi): Adjust.
100 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
101 (ppcobsd_iterate_over_regset_sections): New.
102 (ppcobsd_init_abi): Adjust.
103 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
104 (rs6000_aix_iterate_over_regset_sections): New.
105 (rs6000_aix_init_osabi): Adjust.
107 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
109 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
110 (nios2_regset_from_core_section): Remove.
111 (nios2_iterate_over_regset_sections): New.
112 (nios2_linux_init_abi): Adjust gdbarch initialization.
114 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
116 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
117 (am33_iterate_over_regset_sections): New.
118 (am33_linux_init_osabi): Adjust gdbarch initialization.
120 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
122 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
123 (mips_linux_iterate_over_regset_sections): New.
124 (mips_linux_init_abi): Adjust gdbarch initialization.
125 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
126 (mips64obsd_iterate_over_regset_sections): New.
127 (mips64obsd_init_abi): Adjust.
128 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
129 (mipsnbsd_iterate_over_regset_sections): New.
130 (mipsnbsd_init_abi): Adjust.
132 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
134 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
135 (m88k_iterate_over_regset_sections): New.
136 (m88k_gdbarch_init): Adjust gdbarch initialization.
138 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
140 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
141 (ia64_linux_iterate_over_regset_sections): New.
142 (ia64_linux_init_abi): Adjust gdbarch initialization.
144 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
146 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
147 (m68kbsd_iterate_over_regset_sections): New.
148 (m68kbsd_init_abi): Adjust gdbarch initialization.
149 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
150 (m68k_linux_iterate_over_regset_sections): New.
151 (m68k_linux_init_abi): Adjust gdbarch initialization.
153 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
155 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
156 (m32r_linux_regset_from_core_section): Remove.
157 (m32r_linux_iterate_over_regset_sections): New.
158 (m32r_linux_init_abi): Adjust gdbarch initialization.
160 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
162 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
163 (amd64obsd_iterate_over_regset_sections): New.
164 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
165 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
167 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
168 regset_from_core_section initialization.
169 * i386-tdep.c (i386_regset_from_core_section): Remove.
170 (i386_iterate_over_regset_sections): New.
171 (i386_gdbarch_init): Adjust gdbarch initialization.
172 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
173 (i386_iterate_over_regset_sections): New prototype.
174 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
176 (i386obsd_aout_iterate_over_regset_sections): New.
177 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
178 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
180 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
181 (amd64fbsd_init_abi): Call fbsd_init_abi.
182 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
183 (i386fbsd4_init_abi): Call fbsd_init_abi.
184 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
185 target method 'make_corefile_notes'.
186 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
188 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
190 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
191 (hppa_hpux_iterate_over_regset_sections): New.
192 (hppa_hpux_init_abi): Adjust gdbarch initialization.
193 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
194 (hppa_linux_iterate_over_regset_sections): New.
195 (hppa_linux_init_abi): Adjust.
196 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
197 (hppanbsd_iterate_over_regset_sections): New.
198 (hppanbsd_init_abi): Adjust.
199 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
200 (hppaobsd_iterate_over_regset_sections): New.
201 (hppaobsd_init_abi): Adjust.
203 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
205 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
206 (frv_linux_iterate_over_regset_sections): New.
207 (frv_linux_init_abi): Adjust gdbarch initialization.
209 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
211 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
212 (armbsd_iterate_over_regset_sections): New prototype.
213 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
214 (armbsd_iterate_over_regset_sections): New.
215 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
218 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
220 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
221 (alpha_linux_iterate_over_regset_sections): New.
222 (alpha_linux_init_abi): Adjust gdbarch initialization.
223 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
225 (alphanbsd_iterate_over_regset_sections): New prototype.
227 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
229 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
231 (aarch64_linux_iterate_over_regset_sections): New.
232 (aarch64_linux_init_abi): Adjust gdbarch initialization.
234 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
236 * fbsd-tdep.c: New file.
237 * fbsd-tdep.h: New file.
238 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
239 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
240 (ALLDEPFILES): Add fbsd-tdep.c.
242 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
244 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
246 * gdbarch.h: Regenerate.
247 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
249 (get_core_register_section): Add parameter 'regset' and use it, if
250 set. Add parameter 'min_size' and verify the bfd section size
252 (get_core_registers_cb): Add parameter 'regset' and pass it to
253 get_core_register section. For the "standard" register sections
254 ".reg" and ".reg2", set an appropriate default for human_name.
255 (get_core_registers): Don't abort when the gdbarch has an iterator
256 but no regset_from_core_section. Add NULL/0 for parameters
257 'regset'/'min_size' in calls to get_core_register_section.
258 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
259 'regset' and use it instead of calling the
260 regset_from_core_section gdbarch method.
261 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
262 * i386-tdep.c (i386_supply_xstateregset)
263 (i386_collect_xstateregset, i386_xstateregset): Moved to
265 (i386_regset_from_core_section): Drop handling for .reg-xfp and
267 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
268 core file support only if the regset iterator hasn't been set.
269 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
270 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
271 Moved from i386-tdep.c and renamed to *_linux*.
272 (i386_linux_iterate_over_regset_sections): Add regset parameter to
273 each callback invocation. Allow any .reg-xstate size when reading
275 * amd64-tdep.c (amd64_supply_xstateregset)
276 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
278 (amd64_regset_from_core_section): Remove.
279 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
280 install an amd64-specific regset_from_core_section gdbarch method.
281 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
282 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
283 Moved from amd64-tdep.c and renamed to *_linux*.
284 (amd64_linux_iterate_over_regset_sections): Add regset parameter
285 to each callback invocation. Allow any .reg-xstate size when
286 reading from a core file.
287 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
288 (arm_linux_iterate_over_regset_sections): Add regset parameter to
289 each callback invocation.
290 (arm_linux_init_abi): No longer set the regset_from_core_section
292 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
293 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
294 each callback invocation.
295 (ppc_linux_init_abi): No longer set the regset_from_core_section
297 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
298 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
299 (s390_regset_from_core_section): Remove.
300 (s390_iterate_over_regset_sections): Add regset parameter to each
302 (s390_gdbarch_init): No longer set the regset_from_core_section
303 gdbarch method. Drop initialization of deleted tdep fields.
305 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
307 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
308 (amd64_linux_iterate_over_regset_sections): New.
309 (amd64_linux_init_abi_common): Don't install the regset section
310 list, but the new iterator in gdbarch.
311 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
312 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
313 (arm_linux_iterate_over_regset_sections): ...here. New function.
314 (arm_linux_init_abi): Set iterator instead of section list.
315 * corelow.c (get_core_registers_cb): New function, logic moved
317 (get_core_registers): ...loop body here. Use new iterator method
318 instead of walking through the regset section list.
319 * gdbarch.sh: Remove 'core_regset_sections'. New method
320 'iterate_over_regset_sections'. New typedef
321 'iterate_over_regset_sections_cb'.
322 * gdbarch.c: Regenerate.
323 * gdbarch.h: Likewise.
324 * i386-linux-tdep.c (i386_linux_regset_sections)
325 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
327 (i386_linux_iterate_over_regset_sections): New.
328 (i386_linux_init_abi): Don't choose a regset section list, but
329 install new iterator in gdbarch.
330 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
331 (linux_collect_regset_section_cb): New function, logic moved
333 (linux_collect_thread_registers): ...loop body here. Use iterator
334 method instead of walking through list.
335 (linux_make_corefile_notes_1): Check for presence of iterator
336 method instead of regset section list.
337 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
338 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
339 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
340 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
341 (ppc_linux_iterate_over_regset_sections): ...here. New function.
342 (ppc_linux_init_abi): Don't choose from above regset section
343 lists, but install new iterator in gdbarch.
344 * regset.h (struct core_regset_section): Remove.
345 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
346 have_linux_v1, have_linux_v2, and have_tdb.
347 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
348 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
349 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
350 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
351 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
352 (s390_iterate_over_regset_sections): ...here. New function. Use
354 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
355 regset section lists, but install new iterator.
357 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
359 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
361 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
363 * progspace.c (print_program_space): Don't prune program spaces
364 before printing them.
366 2014-09-25 Pedro Alves <palves@redhat.com>
368 * infrun.c (user_visible_resume_ptid): Don't check
369 singlestep_breakpoints_inserted_p.
371 2014-09-25 Pedro Alves <palves@redhat.com>
373 * breakpoint.c (should_be_inserted): Add debug output.
375 2014-09-25 Pedro Alves <palves@redhat.com>
377 * infrun.c (stepping_past_instruction_at)
378 (clear_exit_convenience_vars): Point at infrun.h instead of
380 (handle_signal_stop): Fix typo.
382 2014-09-24 Yao Qi <yao@codesourcery.com>
384 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
387 2014-09-22 Gary Benson <gbenson@redhat.com>
389 * target.c (target_stop): Updated comment.
391 2014-09-22 Gary Benson <gbenson@redhat.com>
393 * target/target.h (target_stop_ptid): Renamed as...
394 (target_stop_and_wait): New function. Updated comment.
396 (target_continue_ptid): Renamed as...
397 (target_continue_no_signal): New function. Updated comment.
400 2014-09-22 Pedro Alves <palves@redhat.com>
402 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
404 * breakpoint.c (enum ugll_insert_mode): New enum.
405 (always_inserted_mode): Now a plain boolean.
406 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
407 (breakpoints_always_inserted_mode): Delete.
408 (breakpoints_should_be_inserted_now): New function.
409 (insert_breakpoints): Pass UGLL_INSERT to
410 update_global_location_list instead of calling
411 insert_breakpoint_locations manually.
412 (create_solib_event_breakpoint_1): New, factored out from ...
413 (create_solib_event_breakpoint): ... this.
414 (create_and_insert_solib_event_breakpoint): Use
415 create_solib_event_breakpoint_1 instead of calling
416 insert_breakpoint_locations manually.
417 (update_global_location_list): Change parameter type from boolean
418 to enum ugll_insert_mode. All callers adjusted. Adjust to use
419 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
420 (update_global_location_list_nothrow): Change parameter type from
421 boolean to enum ugll_insert_mode.
422 (_initialize_breakpoint): "breakpoint always-inserted" option is
423 now a boolean command. Update help text.
424 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
425 (breakpoints_should_be_inserted_now): New declaration.
426 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
427 Remove breakpoints_always_inserted_mode check.
428 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
429 * remote.c (remote_start_remote): Likewise.
431 2014-09-22 Pedro Alves <palves@redhat.com>
433 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
434 (insert_breakpoints): Don't call insert_breakpoint_locations here.
435 Instead, pass UGLL_INSERT to update_global_location_list.
436 (update_global_location_list): Change parameter type from boolean
437 to enum ugll_insert_mode. All callers adjusted. Adjust to use
438 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
439 (create_solib_event_breakpoint_1): New, factored out from ...
440 (create_solib_event_breakpoint): ... this.
441 (create_and_insert_solib_event_breakpoint): Use
442 create_solib_event_breakpoint_1 instead of calling
443 insert_breakpoint_locations manually.
444 (update_global_location_list): Handle UGLL_INSERT.
446 2014-09-22 Pedro Alves <palves@redhat.com>
448 * breakpoint.c (enum ugll_insert_mode): New enum.
449 (update_global_location_list)
450 (update_global_location_list_nothrow): Change parameter type from
451 boolean to enum ugll_insert_mode. All callers adjusted.
453 2014-09-19 Joel Brobecker <brobecker@adacore.com>
455 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
456 SystemTap support in GDB.
458 2014-09-19 Don Breazeal <donb@codesourcery.com>
460 * linux-nat.c (linux_handle_extended_wait): Call
461 linux_ptrace_get_extended_event.
462 (wait_lwp): Call linux_is_extended_waitstatus.
463 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
464 and linux_is_extended_waitstatus.
465 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
466 linux_ptrace_get_extended_event.
467 (linux_ptrace_get_extended_event): New function.
468 (linux_is_extended_waitstatus): New function.
469 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
470 (linux_is_extended_waitstatus): New declarations.
472 2014-09-19 Yao Qi <yao@codesourcery.com>
474 * dwarf2read.c (dwarf_decode_lines): Update declaration.
475 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
476 comments. Callers update.
477 (dwarf_decode_lines): Likewise.
478 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
479 comments. Skip the line table if 'lowpc' is greater than
480 'address'. Don't check
481 dwarf2_per_objfile->has_section_at_zero.
483 2014-09-18 Doug Evans <dje@google.com>
485 * NEWS: Mention new "producer" attribute of gdb.Symtab.
486 * python/py-symtab.c (stpy_get_producer): New function.
487 (symtab_object_getset): Add "producer" attribute.
489 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
492 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
493 (do_captured_read_memory_integer): Remove.
494 (safe_read_memory_integer): Use target_read_memory directly instead
495 of catching errors in do_captured_read_memory_integer.
497 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
499 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
502 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
504 * objc-lang.c (find_implementation_from_class): Remove dead code.
506 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
509 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
510 "fprintf_unfiltered (gdb_stdlog...)".
512 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
515 * breakpoint.h (struct watchpoint): New fields val_bitpos and
517 * breakpoint.c (watch_command_1): Use these fields to retain
518 bitfield information.
519 (extract_bitfield_from_watchpoint_value): New function.
520 (watchpoint_check): Use it.
521 (update_watchpoint): Use it. Optimize the address and length of a
522 HW watchpoint pointing to a bitfield.
523 * value.h (unpack_value_bitfield): New prototype.
524 * value.c (unpack_value_bitfield): Make extern.
526 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
528 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
530 * gnu-nat.c (inf_threads): New function.
531 * gnu-nat.h (inf_threads_ftype): New typedef.
532 (inf_threads): New declaration.
533 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
534 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
535 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
536 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
537 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
538 (i386_gnu_dr_get_control): New functions.
539 (reg_addr): New structure.
540 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
541 i386 debugging register hooks.
542 * NEWS: Mention this.
544 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
546 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
547 vector data transfer instructions.
548 (arm_record_coproc_data_proc): Updated.
550 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
552 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
553 arm_record_exreg_ld_st_insn.
554 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
557 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
559 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
560 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
561 processing instructions.
563 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
565 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
566 for advance SIMD struct ld/st insn.
567 (thumb2_record_decode_insn_handler): Replace stub handler with
568 thumb2_record_asimd_struct_ld_st.
570 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
572 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
573 for asimd, vfp and coprocessor insns.
574 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
575 and coprocessor insns.
576 (thumb2_record_coproc_insn): New function.
577 (thumb2_record_decode_insn_handler): Update coprocessor insns record
579 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
582 2014-09-13 Doug Evans <xdje42@gmail.com>
584 * NEWS: Mention new "queue-signal" command.
585 * infcmd.c (queue_signal_command): New function.
586 (_initialize_infcmd): Add new queue-signal command.
588 2014-09-13 Doug Evans <xdje42@gmail.com>
590 * linux-nat.c (wait_lwp): Add debugging printf.
591 (linux_nat_wait_1): Ditto.
593 2014-09-12 Pedro Alves <palves@redhat.com>
595 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
596 (create_and_insert_solib_event_breakpoint): New functions.
597 * breakpoint.h (create_and_insert_solib_event_breakpoint)
598 (remove_solib_event_breakpoints_at_next_stop): New declarations.
599 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
600 (remove_dbx_link_breakpoint): Delete function.
601 (insert_dbx_link_bpt_in_file): Use
602 create_and_insert_solib_event_breakpoint instead of
603 deprecated_insert_raw_breakpoint.
604 (procfs_wait): Don't check whether we hit __dbx_link here.
605 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
607 * solib-irix.c (base_breakpoint): Delete global.
608 (disable_break): Delete function.
609 (enable_break): Use create_solib_event_breakpoint
610 instead of deprecated_insert_raw_breakpoint.
611 (irix_solib_handle_event): New function.
612 (irix_solib_create_inferior_hook): Don't run the target or disable
613 the mapping-complete breakpoint here.
614 (_initialize_irix_solib): Install irix_solib_handle_event as
615 so_ops->handle_event hook.
617 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
618 Ulrich Weigand <uweigand@de.ibm.com>
621 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
622 instead of read_memory_unsigned_integer.
624 2014-09-12 Gary Benson <gbenson@redhat.com>
626 * nat/linux-waitpid.c: Include common-defs.h.
627 [GDBSERVER]: Add FIXME comment.
628 [!GDBSERVER]: Don't include defs.h or signal.h.
629 (linux_debug) [!GDBSERVER]: Remove empty block.
631 2014-09-12 Gary Benson <gbenson@redhat.com>
633 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
634 Don't include defs.h or server.h.
636 2014-09-12 Gary Benson <gbenson@redhat.com>
638 * nat/linux-btrace.c: Include common-defs.h.
639 Don't include defs.h, server.h or gdbthread.h.
640 * nat/linux-btrace.h (struct target_ops): New forward declaration.
642 2014-09-12 Gary Benson <gbenson@redhat.com>
644 * common/agent.c: Include common-defs.h.
645 Don't include defs.h or server.h.
646 * common/buffer.c: Likewise.
647 * common/common-debug.c: Likewise.
648 * common/common-utils.c: Likewise.
649 * common/errors.c: Likewise.
650 * common/filestuff.c: Likewise.
651 * common/format.c: Likewise.
652 * common/gdb_vecs.c: Likewise.
653 * common/print-utils.c: Likewise.
654 * common/ptid.c: Likewise.
655 * common/rsp-low.c: Likewise.
656 * common/signals.c: Likewise.
657 * common/vec.c: Likewise.
658 * common/xml-utils.c: Likewise.
659 * nat/linux-osdata.c: Likewise.
660 * nat/linux-procfs.c: Likewise.
661 * nat/linux-ptrace.c: Likewise.
662 * nat/mips-linux-watch.c: Likewise.
663 * target/waitstatus.c: Likewise.
665 2014-09-12 Tom Tromey <tromey@redhat.com>
666 Gary Benson <gbenson@redhat.com>
668 * common/common-regcache.h: New file.
669 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
670 * regcache.h: Include common-regcache.h.
671 (regcache_read_pc): Don't declare.
672 * regcache.c (get_thread_regcache_for_ptid): New function.
673 * nat/linux-btrace.c: Don't include regcache.h.
674 Include common-regcache.h.
675 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
677 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
679 * regcache.h (struct regset): Declare.
681 2014-09-11 Pedro Alves <palves@redhat.com>
684 * main.c: Include "infrun.h".
685 (catch_command_errors, catch_command_errors_const): Wait for the
686 foreground command to complete.
687 * top.c (maybe_wait_sync_command_done): New function, factored out
689 (maybe_wait_sync_command_done): ... here.
690 * top.h (maybe_wait_sync_command_done): New declaration.
692 2014-09-11 Tom Tromey <tromey@redhat.com>
693 Gary Benson <gbenson@redhat.com>
695 * common/symbol.h: New file.
696 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
697 * minsyms.c (find_minimal_symbol_address): New function.
698 * common/agent.c: Include common/symbol.h.
699 [!GDBSERVER]: Don't include objfiles.h.
700 (agent_look_up_symbols): Use find_minimal_symbol_address.
702 2014-09-11 Gary Benson <gbenson@redhat.com>
704 * target/target.h (target_stop_ptid, target_continue_ptid):
706 * target.c (target_stop_ptid, target_continue_ptid): New
708 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
709 (agent_run_command): Always use target_stop_ptid and
710 target_continue_ptid.
712 2014-09-11 Tom Tromey <tromey@redhat.com>
713 Gary Benson <gbenson@redhat.com>
715 * target/target.h: New file.
716 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
717 * target.h: Include target/target.h.
718 (target_read_memory, target_write_memory): Don't declare.
719 * target.c (target_read_uint32): New function.
720 * common/agent.c: Include target/target.h.
721 [!GDBSERVER]: Don't include target.h.
722 (helper_thread_id): Type changed to uint32_t.
723 (agent_get_helper_thread_id): Use target_read_uint32.
724 (agent_run_command): Always use target_read_memory and
726 (agent_capability): Type changed to uint32_t.
727 (agent_capability_check): Use target_read_uint32.
729 2014-09-11 Gary Benson <gbenson@redhat.com>
731 * common/common-debug.h (show_debug_regs): Declare.
732 * common/common-debug.c (show_debug_regs): Define.
733 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
734 all uses with show_debug_regs. Replace all uses that considered
735 debug_hw_points as a multi-value integer with straight boolean
737 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
738 with show_debug_regs.
739 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
740 all uses with show_debug_regs.
741 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
742 uses with show_debug_regs.
744 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
746 * findvar.c (address_from_register): Handle targets requiring
747 a special conversion routine even for plain pointer types.
749 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
751 * rs6000-nat.c (exec_one_dummy_insn): Remove.
752 (store_register): Do not call exec_one_dummy_insn.
754 2014-09-10 Joel Brobecker <brobecker@adacore.com>
756 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
757 dereference it first. Use value_enclosing_type instead of
759 (ada_array_length): Likewise.
761 2014-09-10 Joel Brobecker <brobecker@adacore.com>
763 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
764 Adjust function implementation and documentation accordingly.
765 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
766 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
767 Update call to ada_value_ptr_subscript.
769 2014-09-10 Joel Brobecker <brobecker@adacore.com>
771 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
772 instead of VAL's type.
774 2014-09-10 Joel Brobecker <brobecker@adacore.com>
776 * amd64-linux-nat.c: Add <sys/uio.h> #include.
778 2014-09-09 Doug Evans <xdje42@gmail.com>
781 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
782 last parameter to pkg-config, not first.
783 * configure.ac: Pass --with-guile provided pkg-config path to
784 GDB_GUILE_PROGRAM_NAMES.
785 * configure: Regenerate.
787 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
789 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
792 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
794 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
795 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
796 the list of sections determining GDB_OSABI_IRIX.
798 2014-09-09 James Hogan <james.hogan@imgtec.com>
800 * MAINTAINERS (Write After Approval): Add "James Hogan".
802 2014-09-09 James Hogan <james.hogan@imgtec.com>
804 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
806 2014-09-09 Joel Brobecker <brobecker@adacore.com>
808 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
810 2014-09-08 Doug Evans <xdje42@gmail.com>
813 * guile.c: #include <signal.h>.
814 (_initialize_guile): Block SIGCHLD while initializing Guile.
816 Replaces the following, which is reverted.
818 2014-07-26 Doug Evans <xdje42@gmail.com>
821 * configure.ac: Add check for header gc/gc.h.
822 Add check for function setenv.
823 * configure: Regenerate.
824 * config.in: Regenerate.
825 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
827 2014-09-08 Doug Evans <xdje42@gmail.com>
829 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
830 with named constant. Fix style of pointer comparison.
831 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
833 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
836 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
837 decide whether we display the command on "show user".
838 * cli/cli-script.c (show_user_1): Only verify cmdlines after
839 printing command name.
840 * cli/cli-decode.h (cli_user_command_p): Declare new function.
841 * cli/cli-decode.c (cli_user_command_p): Create helper function
842 to verify whether cmd_list_element is a user-defined command.
844 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
847 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
848 Fix goto out of TRY_CATCH.
850 2014-09-06 Doug Evans <xdje42@gmail.com>
851 Tom Tromey <tromey@redhat.com>
854 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
855 $_any_caller_matches.
856 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
857 * python/lib/gdb/function/caller_is.py: New file.
859 2014-09-06 Doug Evans <xdje42@gmail.com>
861 * infcmd.c (program_info): Fix typo.
863 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
866 * stap-probe.c (stap_parse_single_operand): Delete unused variable
867 'number'. New variable 'has_digit'. Rewrite code to deal with
868 subexpressions on SDT probes.
870 2014-09-04 Pedro Alves <palves@redhat.com>
872 * c-exp.y (parse_number): Skip handling base-switching prefixes if
873 the input is only one character long.
875 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
878 * f-valprint.c (f_val_print): Specify the correct print option to
879 use when printing integer values.
881 2014-09-04 Gary Benson <gbenson@redhat.com>
883 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
884 Remove code to cope with LWPs wrapped as PIDs.
885 Add assertions to ensure no wrapped LWPs are passed.
887 2014-09-04 Pedro Alves <palves@redhat.com>
889 * value.c (value_ranges_copy_adjusted): New function, factored out
891 (value_contents_copy_raw): ... here.
892 (unpack_value_bits_as_long_1): Rename back to ...
893 (unpack_bits_as_long): ... this. Remove 'original_value' and
894 'result' parameters. Change return type to LONGEST.
895 (unpack_value_bits_as_long): Delete.
896 (unpack_value_field_as_long_1): Delete.
897 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
898 (unpack_value_bitfield): New function.
899 (value_field_bitfield): Reimplement using unpack_value_bitfield.
900 (value_fetch_lazy): Use unpack_value_bitfield.
901 * value.h (unpack_value_bits_as_long): Delete declaration.
903 2014-09-03 Sasha Smundak <asmundak@google.com>
905 * python/py-frame.c (frapy_read_register): New function.
907 2014-09-03 James Hogan <james.hogan@imgtec.com>
909 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
910 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
912 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
915 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
917 (add_cmd): Set "completer_handle_brkchars" to NULL.
918 * cli/cli-decode.h (struct cmd_list_element)
919 <completer_handle_brkchars>: New field.
920 * command.h (completer_ftype_void): New typedef.
921 (set_cmd_completer_handle_brkchars): New prototype.
922 * completer.c (set_gdb_completion_word_break_characters): New
924 (complete_line_internal): Call "completer_handle_brkchars"
925 callback from command.
926 * completer.h: Include "command.h".
927 (set_gdb_completion_word_break_characters): New prototype.
928 * python/py-cmd.c (cmdpy_completer_helper): New function.
929 (cmdpy_completer_handle_brkchars): New function.
930 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
931 (cmdpy_init): Set completer_handle_brkchars to
932 cmdpy_completer_handle_brkchars.
934 2014-09-03 Gary Benson <gbenson@redhat.com>
936 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
937 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
938 Loop conditions changed to equivalent form.
939 (struct x86_debug_reg_state): Updated dr_ref_count comment.
940 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
941 ALL_DEBUG_ADDRESS_REGISTERS.
943 2014-09-03 Joel Brobecker <brobecker@adacore.com>
945 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
948 2014-09-02 Doug Evans <dje@google.com>
950 * typeprint.c (find_global_typedef): Fix comment.
952 2014-09-02 Gary Benson <gbenson@redhat.com>
954 * i386-nat.h: Renamed as...
955 * x86-nat.h: New file. All type, function and variable name
956 prefixes changed from "i386_" to "x86_". All references updated.
957 * i386-nat.c: Renamed as...
958 * x86-nat.c: New file. All type, function and variable name
959 prefixes changed from "i386_" to "x86_". All references updated.
960 * common/i386-xstate.h: Renamed as...
961 * common/x86-xstate.h: New file. All type, function and variable
962 name prefixes changed from "i386_" to "x86_". All references
964 * nat/i386-cpuid.h: Renamed as...
965 * nat/x86-cpuid.h: New file. All type, function and variable name
966 prefixes changed from "i386_" to "x86_". All references updated.
967 * nat/i386-gcc-cpuid.h: Renamed as...
968 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
969 name prefixes changed from "i386_" to "x86_". All references
971 * nat/i386-dregs.h: Renamed as...
972 * nat/x86-dregs.h: New file. All type, function and variable name
973 prefixes changed from "i386_" to "x86_". All references updated.
974 * nat/i386-dregs.c: Renamed as...
975 * nat/x86-dregs.c: New file. All type, function and variable name
976 prefixes changed from "i386_" to "x86_". All references updated.
978 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
980 * varobj.c (_initialize_varobj): Move to the end of file.
982 2014-08-29 Gary Benson <gbenson@redhat.com>
984 * common/common-exceptions.h: New file.
985 * common/common-exceptions.c: Likewise.
986 * Makefile.in (SFILES): Add common/common-exceptions.c.
987 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
988 (COMMON_OBS): Add common-exceptions.o.
989 (common-exceptions.o): New rule.
990 * exceptions.h (common-exceptions.h): Include.
991 (gdb_setjmp.h): Do not include.
992 (return_reason): Moved to common-exceptions.h.
993 (enum return_reason): Likewise.
994 (RETURN_MASK): Likewise.
995 (typedef return_mask): Likewise.
996 (enum errors): Likewise.
997 (struct gdb_exception): Likewise.
998 (exceptions_state_mc_init): Likewise.
999 (exceptions_state_mc_action_iter): Likewise.
1000 (exceptions_state_mc_action_iter_1): Likewise.
1001 (TRY_CATCH): Likewise.
1002 (throw_exception): Likewise.
1003 (throw_verror): Likewise.
1004 (throw_vquit): Likewise.
1005 (throw_error): Likewise.
1006 (throw_quit): Likewise.
1007 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1008 (enum catcher_action): Likewise.
1009 (struct catcher): Likewise.
1010 (current_catcher): Likewise.
1011 (catcher_list_size): Likewise.
1012 (exceptions_state_mc_init): Likewise.
1013 (catcher_pop): Likewise.
1014 (exceptions_state_mc): Likewise.
1015 (exceptions_state_mc_action_iter): Likewise.
1016 (exceptions_state_mc_action_iter_1): Likewise.
1017 (throw_exception): Likewise.
1018 (exception_messages): Likewise.
1019 (exception_messages_size): Likewise.
1020 (throw_it): Likewise.
1021 (throw_verror): Likewise.
1022 (throw_vquit): Likewise.
1023 (throw_error): Likewise.
1024 (throw_quit): Likewise.
1025 (prepare_to_throw_exception): New function.
1027 2014-08-29 Gary Benson <gbenson@redhat.com>
1029 * common/gdb_setjmp.h: New file.
1030 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1031 * configure.ac: Move sigsetjmp check...
1032 * common/common.m4: ...here.
1033 * configure: Regenerate.
1034 * cp-support.c (SIGJMP_BUF): Delete.
1035 (SIGSETJMP): Likewise.
1036 (SIGLONGJMP): Likewise.
1037 * exceptions.h (gdb_setjmp.h): Include.
1038 (setjmp.h): Do not include.
1039 (EXCEPTIONS_SIGJMP_BUF): Delete.
1040 (EXCEPTIONS_SIGSETJMP): Likewise.
1041 (EXCEPTIONS_SIGLONGJMP): Likewise.
1042 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1044 * exceptions.c: Likewise.
1046 2014-08-29 Gary Benson <gbenson@redhat.com>
1048 * cleanups.h: Moved to...
1049 * common/cleanups.h: New file.
1050 * cleanups.c: Moved to...
1051 * common/cleanups.c: New file. Include common-defs.h and
1052 cleanups.h. Do not include defs.h.
1053 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1054 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1055 (cleanups.o): New rule.
1057 2014-08-29 Gary Benson <gbenson@redhat.com>
1059 * common/errors.h (internal_warning): New declaration.
1060 (internal_vwarning): Likewise.
1061 * common/errors.c (internal_warning): New function.
1062 * utils.h (internal_warning): Don't declare.
1063 (internal_vwarning): Likewise.
1064 * utils.c (internal_warning): Removed.
1066 2014-08-29 Gary Benson <gbenson@redhat.com>
1068 * main.c (captured_main): Use warning during startup.
1069 Prefix startup warning messages with command name.
1071 2014-08-29 Gary Benson <gbenson@redhat.com>
1073 * main.c (captured_main): Handle usage errors with error.
1075 2014-08-29 Gary Benson <gbenson@redhat.com>
1077 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1078 exit pair with a call to error. Wrap the message with _().
1080 2014-08-29 Gary Benson <gbenson@redhat.com>
1082 * main.c (captured_main): Replace a fprintf/exit
1083 pair with a call to error. Wrap the message with _().
1085 2014-08-29 Gary Benson <gbenson@redhat.com>
1087 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1088 pairs with calls to error. Wrap the message with _().
1090 2014-08-29 Gary Benson <gbenson@redhat.com>
1092 * utils.c (vwarning): Protect calls to target_terminal_ours
1095 2014-08-29 Gary Benson <gbenson@redhat.com>
1097 * exceptions.c (print_flush): Protect calls to
1098 target_terminal_ours and wrap_here.
1100 2014-08-29 Gary Benson <gbenson@redhat.com>
1102 * utils.h (filtered_printing_initialized): New declaration.
1103 * utils.c (abort_with_message): New function.
1104 (internal_vproblem): Use abort_with_message for first level
1105 recursive internal problems, and if gdb_stderr is not set up.
1106 Protect calls to target_terminal_ours, begin_line and query.
1108 2014-08-28 Doug Evans <dje@google.com>
1110 * symtab.c (in_prologue): Move definition to better spot.
1111 (skip_prologue_using_sal): Ditto.
1113 2014-08-28 Doug Evans <dje@google.com>
1115 * symtab.c (find_function_start_sal): Move definition to better spot.
1117 2014-08-28 Yao Qi <yao@codesourcery.com>
1119 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1120 found_stack_adjust in forward scan. Remove condition check
1121 on found_stack_adjust which is always true. Indent the code.
1123 2014-08-28 Yao Qi <yao@codesourcery.com>
1125 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1126 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1127 (dwarf_decode_lines): Remove argument
1128 want_line_info. Remove condition check on want_line_info.
1131 2014-08-27 Doug Evans <dje@google.com>
1133 * dwarf2read.c (dwarf_record_line): Fix typo.
1135 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1137 * target.h (struct target_ops::to_terminal_save_ours): Remove
1139 (target_terminal_save_ours): Remove macro.
1140 * target-delegates.c: Regenerate.
1141 * inf-child.c (inf_child_target): Don't set the nonexistent
1142 field to_terminal_save_ours.
1143 * inferior.h (child_terminal_save_ours): Remove declaration.
1144 * terminal.h (gdb_save_tty_state): New declaration.
1145 * inflow.c (child_terminal_save_ours): Rename to ...
1146 (gdb_save_tty_state): ... this.
1147 * tui/tui.c: Include terminal.h.
1148 (tui_enable): Use gdb_save_tty_state instead of
1149 target_terminal_save_ours.
1150 (tui_disable): Likewise.
1152 2014-08-25 Doug Evans <dje@google.com>
1154 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1155 Pass NULL instead of 0 for context pointer.
1157 2014-08-25 Yao Qi <yao@codesourcery.com>
1159 * dwarf2read.c: Fix grammatical error.
1161 2014-08-24 Yao Qi <yao@codesourcery.com>
1163 * dwarf2read.c (scan_partial_symbols): Update comments.
1164 Rename argument 'need_pc' with 'set_addrmap'.
1165 (add_partial_namespace): Rename argument 'need_pc' with
1167 (add_partial_module): Likewise.
1168 (add_partial_subprogram): Likewise. Update comments.
1169 (dwarf2_name): Fix typo.
1171 2014-08-22 Doug Evans <dje@google.com>
1174 * dwarf2read.c (dwarf_record_line_p): New function.
1175 (dwarf_decode_lines_1): Ignore subsequent line number entries
1176 for the same line if any entry had a non-zero discriminator.
1178 2014-08-22 Doug Evans <dje@google.com>
1180 * buildsym.h (record_line_ftype): New typedef.
1181 (record_line): Use it.
1182 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1183 (dwarf_decode_lines_1): Call them.
1185 2014-08-22 Yao Qi <yao@codesourcery.com>
1187 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1188 (ctf_end): Remove code.
1190 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1192 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1193 (linux_make_corefile_notes): call update_thread_list, protected against
1196 2014-08-21 Pedro Alves <palves@redhat.com>
1198 * infcmd.c (attach_command): Remove comment.
1200 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1202 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1203 unsigned LONGEST to ULONGEST.
1205 2014-08-20 Pedro Alves <palves@redhat.com>
1207 * Makefile.in (check-read1): New rule.
1209 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1211 * value.c (value_from_contents_and_address): Strip resolved_type's
1212 typedef layers before checking its TYPE_DATA_LOCATION.
1214 2014-08-20 Pedro Alves <palves@redhat.com>
1216 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1218 2014-08-20 Yao Qi <yao@codesourcery.com>
1220 * amd64-tdep.c (amd64_classify): Add a blank line after the
1221 example. Move "*/" to a new line.
1222 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1223 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1224 * dwarf2read.c (psymtab_include_file_name): Likewise.
1226 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1227 Pedro Alves <palves@redhat.com>
1231 * ada-lang.c (coerce_unspec_val_to_type): Use
1232 value_contents_copy_raw.
1233 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1234 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1235 * cp-valprint.c (cp_print_value_fields): Let the common printing
1236 code handle optimized out values.
1237 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1238 * d-valprint.c (dynamic_array_type): Use
1239 value_bits_any_optimized_out.
1240 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1241 check_any_valid fields.
1242 (check_pieced_value_bits): Delete and inline ...
1243 (check_pieced_synthetic_pointer): ... here.
1244 (check_pieced_value_validity): Delete.
1245 (check_pieced_value_invalid): Delete.
1246 (pieced_value_funcs): Remove check_validity and check_any_valid
1248 (read_pieced_value): Use mark_value_bits_optimized_out.
1249 (write_pieced_value): Switch to use
1250 mark_value_bytes_optimized_out.
1251 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1252 of assuming the whole value is optimized out.
1253 * findvar.c (read_frame_register_value): Remove special handling
1254 of optimized out registers.
1255 (value_from_register): Use mark_value_bytes_optimized_out.
1256 * frame-unwind.c (frame_unwind_got_optimized): Use
1257 mark_value_bytes_optimized_out.
1258 * jv-valprint.c (java_value_print): Adjust.
1259 (java_print_value_fields): Let the common printing code handle
1260 optimized out values.
1261 * mips-tdep.c (mips_print_register): Remove special handling of
1262 optimized out registers.
1263 * opencl-lang.c (lval_func_check_validity): Delete.
1264 (lval_func_check_any_valid): Delete.
1265 (opencl_value_funcs): Remove check_validity and check_any_valid
1267 * p-valprint.c (pascal_object_print_value_fields): Let the common
1268 printing code handle optimized out values.
1269 * stack.c (read_frame_arg): Remove special handling of optimized
1270 out values. Fetch both VAL and ENTRYVAL before comparing
1271 contents. Adjust to value_available_contents_eq rename.
1272 * valprint.c (valprint_check_validity)
1273 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1274 (val_print_array_elements): Adjust.
1275 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1276 (value_bits_any_optimized_out): New function.
1277 (value_entirely_covered_by_range_vector): New function, factored
1278 out from value_entirely_unavailable.
1279 (value_entirely_unavailable): Reimplement.
1280 (value_entirely_optimized_out): New function.
1281 (insert_into_bit_range_vector): New function, factored out from
1282 mark_value_bits_unavailable.
1283 (mark_value_bits_unavailable): Reimplement.
1284 (struct ranges_and_idx): New struct.
1285 (find_first_range_overlap_and_match): New function, factored out
1286 from value_available_contents_bits_eq.
1287 (value_available_contents_bits_eq): Rename to ...
1288 (value_contents_bits_eq): ... this. Check both unavailable
1289 contents and optimized out contents.
1290 (value_available_contents_eq): Rename to ...
1291 (value_contents_eq): ... this.
1292 (allocate_value_lazy): Remove reference to the old optimized_out
1294 (allocate_optimized_out_value): Use
1295 mark_value_bytes_optimized_out.
1296 (require_not_optimized_out): Adjust to check whether the
1297 optimized_out vec is empty.
1298 (ranges_copy_adjusted): New function, factored out from
1299 value_contents_copy_raw.
1300 (value_contents_copy_raw): Also copy the optimized out ranges.
1301 Assert the destination ranges aren't optimized out.
1302 (value_contents_copy): Update comment, remove call to
1303 require_not_optimized_out.
1304 (value_contents_equal): Adjust to check whether the optimized_out
1306 (set_value_optimized_out, value_optimized_out_const): Delete.
1307 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1309 (value_entirely_optimized_out, value_bits_valid): Delete.
1310 (value_copy): Take a VEC copy of the 'optimized_out' field.
1311 (value_primitive_field): Remove special handling of optimized out.
1312 (value_fetch_lazy): Assert that lazy values have no unavailable
1313 regions. Use value_bits_any_optimized_out. Remove some special
1314 handling for optimized out values.
1315 * value.h: Add intro comment about <optimized out> and
1317 (struct lval_funcs): Remove check_validity and check_any_valid
1319 (set_value_optimized_out, value_optimized_out_const): Remove.
1320 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1322 (value_bits_any_optimized_out): New declaration.
1323 (value_bits_valid): Delete declaration.
1324 (value_available_contents_eq): Rename to ...
1325 (value_contents_eq): ... this, and extend comments.
1327 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1329 Fix -fsanitize=address on unreadable inferior strings.
1330 * valprint.c (val_print_string): Fix access before BUFFER.
1332 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1334 * target.c (target_struct_size): Remove.
1335 (target_struct_allocsize): Remove.
1336 (DEFAULT_ALLOCSIZE): Remove.
1337 (target_ops_p): New typedef.
1338 (DEF_VEC_P (target_ops_p)): New vector type.
1339 (target_structs): Change type to VEC (target_ops_p).
1340 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1341 (find_default_run_target): Rewrite for loop following changes to
1344 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1346 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1347 Adjust code accordingly. Adjust function description comment.
1349 2014-08-19 Yao Qi <yao@codesourcery.com>
1351 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1354 2014-08-19 Alan Modra <amodra@gmail.com>
1356 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1357 * config.in: Regenerate.
1358 * configure: Regenerate.
1360 2014-08-19 Tom Tromey <tromey@redhat.com>
1361 Gary Benson <gbenson@redhat.com>
1363 * common/common-debug.h: New file.
1364 * common/common-debug.c: Likewise.
1365 * debug.c: Likewise.
1366 * Makefile.in (SFILES): Add common/common-debug.c.
1367 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1368 (COMMON_OBS): Add common-debug.o and debug.o.
1369 (common-debug.o): New rule.
1370 * common/common-defs.h: Include common-debug.h.
1371 * common/agent.c (debug_agent_printf): New function.
1372 (DEBUG_AGENT): Redefine.
1373 * nat/i386-dregs.c (debug_printf): Undefine.
1375 2014-08-19 Gary Benson <gbenson@redhat.com>
1377 * common/common-defs.h: Include print-utils.h.
1378 * utils.h: Do not include print-utils.h.
1380 2014-08-19 Tom Tromey <tromey@redhat.com>
1381 Gary Benson <gbenson@redhat.com>
1383 * common/common-types.h: New file.
1384 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1385 * common/common-defs.h: Include common-types.h.
1386 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1389 2014-08-19 Tom Tromey <tromey@redhat.com>
1390 Gary Benson <gbenson@redhat.com>
1392 * common/errors.h: New file.
1393 * common/errors.c: Likewise.
1394 * Makefile.in (SFILES): Add common/errors.c.
1395 (HFILES_NO_SRCDIR): Add common/errors.h.
1396 (COMMON_OBS): Add errors.o.
1397 (errors.o): New rule.
1398 * common/common-defs.h: Include errors.h.
1399 * utils.h (perror_with_name, error, verror, warning, vwarning):
1401 * common/common-utils.h: (malloc_failure, internal_error):
1404 2014-08-19 Gary Benson <gbenson@redhat.com>
1406 * utils.c (internal_vproblem): Always print the message.
1408 2014-08-18 Doug Evans <dje@google.com>
1410 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1412 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1414 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1415 Return 0 if TYPE is dynamic.
1416 (print_range): Add handling of dynamic ranges.
1418 2014-08-18 Keven Boell <keven.boell@intel.com>
1419 Joel Brobecker <brobecker@adacore.com>
1421 * gdbtypes.h (struct main_type): Add field "data_location".
1422 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1423 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1424 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1425 a dynamic data location.
1426 (resolve_dynamic_type): Add DW_AT_data_location handling.
1427 (copy_recursive, copy_type): Copy the data_location information
1429 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1430 * value.c (value_from_contents_and_address): Add
1431 DW_AT_data_location handling.
1433 2014-08-18 Keven Boell <keven.boell@intel.com>
1434 Joel Brobecker <brobecker@adacore.com>
1436 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1437 field "get_object_address".
1438 * dwarf2expr.c (execute_stack_op): Add handling for
1439 DW_OP_push_object_address.
1440 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1441 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1442 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1443 (dwarf_expr_get_obj_addr): New function.
1444 (dwarf_expr_ctx_funcs): Add get_object_address field.
1445 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1446 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1447 (dwarf2_evaluate_property): Add parameter "address". Use it.
1448 (needs_get_obj_addr): New function.
1449 (needs_frame_ctx_funcs): Add get_object_address field.
1450 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1451 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1452 (resolve_dynamic_array): Likewise.
1454 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1456 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1457 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1458 fixed value for records and unions for which some GNAT encodings
1461 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1463 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1464 rewrite to avoid "else if" and "else" constructs. Should be
1465 a no-op in practice.
1467 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1469 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1472 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1475 * eval.c: Update all calls to find_overload_match.
1476 * valarith.c: Likewise.
1477 (value_user_defined_cpp_op, value_user_defined_op): New
1478 argument NOSIDE. Update all callers.
1479 * valops.c (find_overload_match): New argument NOSIDE.
1480 * value.h (find_overload_match): Update signature.
1482 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1484 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1485 'items' methods instead of 'iteritems' method on dictionaries.
1487 2014-08-15 Doug Evans <dje@google.com>
1489 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1492 2014-08-15 Doug Evans <dje@google.com>
1494 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1496 2014-08-15 Doug Evans <dje@google.com>
1498 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1500 2014-08-15 Doug Evans <dje@google.com>
1502 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1505 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1507 * dcache.h: Include target.h, to avoid compile time warnings.
1509 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1511 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1512 frame_info" partial declaration.
1513 * gdbarch.h: Regenerate.
1515 2014-08-15 Yao Qi <yao@codesourcery.com>
1517 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1518 Add parameter 'decode_for_pst_p'. Callers update.
1520 2014-08-13 Yao Qi <yao@codesourcery.com>
1523 * configure.ac: Use local variable 'pos'.
1524 * configure: Regenerated.
1526 2014-08-11 Doug Evans <dje@google.com>
1528 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1529 message, it is redundant with "Reading symbols from ..." message.
1531 2014-08-10 Doug Evans <xdje42@gmail.com>
1533 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1535 2014-08-09 Yao Qi <yao@codesourcery.com>
1538 * remote.c (remote_xfer_partial): Remove dead code.
1540 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1542 * ia64-linux-tdep.c: Include "regset.h".
1543 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1544 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1545 (ia64_linux_supply_fpregset): New function.
1546 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1547 (ia64_linux_regset_from_core_section): New function.
1548 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1551 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1553 * m68klinux-tdep.c: Include "regset.h".
1554 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1555 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1556 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1557 (m68k_linux_regset_from_core_section): New function.
1558 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1561 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1563 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1564 function. Move logic to...
1565 (tilegx_linux_regmap): ... this new register map.
1566 (tilegx_linux_regset): Refer to register map, replace supply
1567 method by regcache_supply_regset, and add collect method.
1568 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1569 TILEGX_FIRST_EASY_REGNUM.
1571 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1573 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1574 that calls regcache_supply_regset and handles the EPC register
1575 separately. Move main logic to...
1576 (score7_linux_gregmap): ... this new register map.
1577 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1578 (score7_linux_gregset): Refer to register map. Add collect method.
1579 (score7_linux_regset_from_core_section): Replace
1580 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1581 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1582 (struct regset): Delete unused forward declaraction.
1583 (struct pt_regs): Delete structure definition.
1584 (elf_gregset_t): Delete typedef.
1586 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1588 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1589 (nios2_core_regset): Add collect method.
1591 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1593 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1594 platform-independent and don't write to read-only input buffer.
1595 (m32r_linux_collect_gregset): New function.
1596 (m32r_linux_gregset): Add collect method.
1598 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1600 * hppa-linux-tdep.c (greg_map): Rename to...
1601 (hppa_linux_gregmap): ... this. Also convert to
1602 regcache_map_entry format.
1603 (hppa_linux_supply_regset): Delete function.
1604 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1605 (hppa_linux_fpregmap): ... this new register map.
1606 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1607 register map, replace supply method by regcache_supply_regset, and
1608 add collect method regcache_collect_regset.
1610 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1612 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1613 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1614 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1615 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1616 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1617 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1618 (frv_linux_supply_gregset): Replace main logic by call to
1619 regcache_supply_regset, but keep clearing gr32-gr63.
1620 (frv_linux_supply_fpregset): Delete function.
1621 (frv_linux_gregset): Refer to appropriate register map and add
1622 regcache_collect_regset as the collect method.
1623 (frv_linux_fpregset): Likewise. Also exchange the supply method
1624 by regcache_supply_regset.
1626 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1628 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1629 by call to alpha_supply_int_regs.
1630 (alpha_linux_collect_gregset): New function.
1631 (alpha_linux_supply_fpregset): Replace logic by call to
1632 alpha_supply_fp_regs.
1633 (alpha_linux_collect_fpregset): New function.
1634 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1636 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1638 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1639 by call to regcache_collect_regset.
1640 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1641 instead of aarch64_linux_supply_gregset/_fpregset.
1642 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1643 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1644 header file instead.
1645 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1646 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1647 functions. Move logic to ...
1648 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1650 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1651 refer to new register maps, replace *_regset_from_core by
1652 regcache_supply_regset, and also use regcache_collect_regset.
1653 * aarch64-linux-tdep.h: Include "regset.h".
1654 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1656 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1657 macros, moved from C source file.
1658 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1659 variable declarations.
1661 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1663 * s390-linux-nat.c: Include "regset.h".
1664 (regmap_gregset): Delete macro.
1665 (s390_64_regmap_gregset): New register map for
1666 regcache_supply/_collect_regset.
1667 (s390_64_gregset): New regset.
1668 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1669 (regmap_fpregset): Delete macro.
1670 (s390_native_supply, s390_native_collect): Delete functions.
1671 (supply_gregset, fill_gregset): Replace s390-specific regmap
1672 handling by a call to regcache_supply/_collect_regset.
1673 (supply_fpregset, fill_fpregset): Call regcache_supply/
1674 _collect_regset instead of s390_native_supply/_collect.
1675 (fetch_regset, store_regset): Likewise. Also change the last
1676 parameter to a regset instead of a regmap.
1677 (s390_linux_fetch_inferior_registers)
1678 (390_linux_store_inferior_registers): Adjust last parameter in
1679 calls to fetch_regset and store_regset.
1680 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1681 (s390_gregmap): ... this. Also make static const and convert to
1682 regcache_map_entry format.
1683 (s390x_regmap_gregset): Delete.
1684 (s390_regmap_fpregset): Rename to...
1685 (s390_fpregmap): ... this. Make static const and convert to
1686 regcache_map_entry format.
1687 (s390_regmap_upper, s390_regmap_last_break)
1688 (s390x_regmap_last_break, s390_regmap_system_call)
1689 (s390_regmap_tdb): Likewise.
1690 (s390_supply_regset, s390_collect_regset): Remove functions.
1691 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1693 (s390_gregset, s390_fpregset, s390_upper_regset)
1694 (s390_last_break_regset, s390x_last_break_regset)
1695 (s390_system_call_regset, s390_tdb_regset): Make global and
1696 replace s390_supply/_collect_regset by regcache_supply/
1698 (s390x_gregset): Delete.
1699 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1700 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1701 (s390_regmap_fpregset, s390_regmap_last_break)
1702 (s390x_regmap_last_break, s390_regmap_system_call)
1703 (s390_regmap_tdb): Delete global variable declarations.
1704 (s390_gregset, s390_fpregset, s390_last_break_regset)
1705 (s390x_last_break_regset, s390_system_call_regset)
1706 (s390_tdb_regset): New global variable declarations.
1708 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1710 * regcache.c: Include "regset.h".
1711 (regcache_transfer_regset): New local function.
1712 (regcache_supply_regset, regcache_collect_regset): New functions.
1713 * regcache.h (struct regcache_map_entry): New structure.
1714 (REGCACHE_MAP_SKIP): New enum value.
1715 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1717 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1719 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1720 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1721 (ppc_linux_collect_gregset ): Likewise.
1722 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1723 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1724 (ppc_collect_vrregset): Likewise.
1725 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1728 2014-08-07 Yao Qi <yao@codesourcery.com>
1730 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1731 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1732 * remote.c (remote_read_bytes): Likewise.
1734 2014-08-07 Yao Qi <yao@codesourcery.com>
1736 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1738 2014-08-07 Yao Qi <yao@codesourcery.com>
1741 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1742 TARGET_XFER_OK instead of 0.
1744 2014-08-07 Gary Benson <gbenson@redhat.com>
1746 * common/common-defs.h: Include errno.h.
1747 * defs.h: Do not include errno.h.
1748 * ada-typeprint.c: Likewise.
1749 * c-typeprint.c: Likewise.
1750 * core-regset.c: Likewise.
1751 * corefile.c: Likewise.
1752 * corelow.c: Likewise.
1753 * event-loop.c: Likewise.
1754 * f-typeprint.c: Likewise.
1755 * gnu-nat.c: Likewise.
1756 * go32-nat.c: Likewise.
1757 * i386gnu-nat.c: Likewise.
1758 * m2-typeprint.c: Likewise.
1759 * nat/linux-btrace.c: Likewise.
1760 * p-typeprint.c: Likewise.
1761 * procfs.c: Likewise.
1762 * remote-sim.c: Likewise.
1763 * rs6000-nat.c: Likewise.
1764 * target.c: Likewise.
1765 * typeprint.c: Likewise.
1766 * ui-file.c: Likewise.
1767 * valops.c: Likewise.
1768 * valprint.c: Likewise.
1770 2014-08-07 Gary Benson <gbenson@redhat.com>
1772 * common/common-defs.h: Include string.h.
1773 * aarch64-tdep.c: Do not include string.h.
1774 * ada-exp.y: Likewise.
1775 * ada-lang.c: Likewise.
1776 * ada-lex.l: Likewise.
1777 * ada-typeprint.c: Likewise.
1778 * ada-valprint.c: Likewise.
1779 * aix-thread.c: Likewise.
1780 * alpha-linux-tdep.c: Likewise.
1781 * alpha-mdebug-tdep.c: Likewise.
1782 * alpha-nat.c: Likewise.
1783 * alpha-osf1-tdep.c: Likewise.
1784 * alpha-tdep.c: Likewise.
1785 * alphanbsd-tdep.c: Likewise.
1786 * amd64-dicos-tdep.c: Likewise.
1787 * amd64-linux-tdep.c: Likewise.
1788 * amd64-nat.c: Likewise.
1789 * amd64-sol2-tdep.c: Likewise.
1790 * amd64fbsd-tdep.c: Likewise.
1791 * amd64obsd-tdep.c: Likewise.
1792 * arch-utils.c: Likewise.
1793 * arm-linux-nat.c: Likewise.
1794 * arm-linux-tdep.c: Likewise.
1795 * arm-tdep.c: Likewise.
1796 * arm-wince-tdep.c: Likewise.
1797 * armbsd-tdep.c: Likewise.
1798 * armnbsd-nat.c: Likewise.
1799 * armnbsd-tdep.c: Likewise.
1800 * armobsd-tdep.c: Likewise.
1801 * avr-tdep.c: Likewise.
1802 * ax-gdb.c: Likewise.
1803 * ax-general.c: Likewise.
1804 * bcache.c: Likewise.
1805 * bfin-tdep.c: Likewise.
1806 * breakpoint.c: Likewise.
1807 * build-id.c: Likewise.
1808 * buildsym.c: Likewise.
1809 * c-exp.y: Likewise.
1810 * c-lang.c: Likewise.
1811 * c-typeprint.c: Likewise.
1812 * c-valprint.c: Likewise.
1813 * charset.c: Likewise.
1814 * cli-out.c: Likewise.
1815 * cli/cli-cmds.c: Likewise.
1816 * cli/cli-decode.c: Likewise.
1817 * cli/cli-dump.c: Likewise.
1818 * cli/cli-interp.c: Likewise.
1819 * cli/cli-logging.c: Likewise.
1820 * cli/cli-script.c: Likewise.
1821 * cli/cli-setshow.c: Likewise.
1822 * cli/cli-utils.c: Likewise.
1823 * coffread.c: Likewise.
1824 * common/agent.c: Likewise.
1825 * common/buffer.c: Likewise.
1826 * common/buffer.h: Likewise.
1827 * common/common-utils.c: Likewise.
1828 * common/filestuff.c: Likewise.
1829 * common/filestuff.c: Likewise.
1830 * common/format.c: Likewise.
1831 * common/print-utils.c: Likewise.
1832 * common/rsp-low.c: Likewise.
1833 * common/signals.c: Likewise.
1834 * common/vec.h: Likewise.
1835 * common/xml-utils.c: Likewise.
1836 * core-regset.c: Likewise.
1837 * corefile.c: Likewise.
1838 * corelow.c: Likewise.
1839 * cp-abi.c: Likewise.
1840 * cp-name-parser.y: Likewise.
1841 * cp-support.c: Likewise.
1842 * cp-valprint.c: Likewise.
1843 * cris-tdep.c: Likewise.
1844 * d-exp.y: Likewise.
1845 * darwin-nat.c: Likewise.
1846 * dbxread.c: Likewise.
1847 * dcache.c: Likewise.
1848 * demangle.c: Likewise.
1849 * dicos-tdep.c: Likewise.
1850 * disasm.c: Likewise.
1851 * doublest.c: Likewise.
1852 * dsrec.c: Likewise.
1853 * dummy-frame.c: Likewise.
1854 * dwarf2-frame.c: Likewise.
1855 * dwarf2loc.c: Likewise.
1856 * dwarf2read.c: Likewise.
1857 * elfread.c: Likewise.
1858 * environ.c: Likewise.
1860 * event-loop.c: Likewise.
1861 * exceptions.c: Likewise.
1863 * expprint.c: Likewise.
1864 * f-exp.y: Likewise.
1865 * f-lang.c: Likewise.
1866 * f-typeprint.c: Likewise.
1867 * f-valprint.c: Likewise.
1868 * fbsd-nat.c: Likewise.
1869 * findcmd.c: Likewise.
1870 * findvar.c: Likewise.
1871 * fork-child.c: Likewise.
1872 * frame.c: Likewise.
1873 * frv-linux-tdep.c: Likewise.
1874 * frv-tdep.c: Likewise.
1876 * gdb_bfd.c: Likewise.
1877 * gdbarch.c: Likewise.
1878 * gdbarch.sh: Likewise.
1879 * gdbtypes.c: Likewise.
1880 * gnu-nat.c: Likewise.
1881 * gnu-v2-abi.c: Likewise.
1882 * gnu-v3-abi.c: Likewise.
1883 * go-exp.y: Likewise.
1884 * go-lang.c: Likewise.
1885 * go32-nat.c: Likewise.
1886 * guile/guile.c: Likewise.
1887 * guile/scm-auto-load.c: Likewise.
1888 * hppa-hpux-tdep.c: Likewise.
1889 * hppa-linux-nat.c: Likewise.
1890 * hppanbsd-tdep.c: Likewise.
1891 * hppaobsd-tdep.c: Likewise.
1892 * i386-cygwin-tdep.c: Likewise.
1893 * i386-dicos-tdep.c: Likewise.
1894 * i386-linux-tdep.c: Likewise.
1895 * i386-nto-tdep.c: Likewise.
1896 * i386-sol2-tdep.c: Likewise.
1897 * i386-tdep.c: Likewise.
1898 * i386bsd-tdep.c: Likewise.
1899 * i386gnu-nat.c: Likewise.
1900 * i386nbsd-tdep.c: Likewise.
1901 * i386obsd-tdep.c: Likewise.
1902 * i387-tdep.c: Likewise.
1903 * ia64-libunwind-tdep.c: Likewise.
1904 * ia64-linux-nat.c: Likewise.
1905 * inf-child.c: Likewise.
1906 * inf-ptrace.c: Likewise.
1907 * inf-ttrace.c: Likewise.
1908 * infcall.c: Likewise.
1909 * infcmd.c: Likewise.
1910 * inflow.c: Likewise.
1911 * infrun.c: Likewise.
1912 * interps.c: Likewise.
1913 * iq2000-tdep.c: Likewise.
1914 * irix5-nat.c: Likewise.
1915 * jv-exp.y: Likewise.
1916 * jv-lang.c: Likewise.
1917 * jv-typeprint.c: Likewise.
1918 * jv-valprint.c: Likewise.
1919 * language.c: Likewise.
1920 * linux-fork.c: Likewise.
1921 * linux-nat.c: Likewise.
1922 * lm32-tdep.c: Likewise.
1923 * m2-exp.y: Likewise.
1924 * m2-typeprint.c: Likewise.
1925 * m32c-tdep.c: Likewise.
1926 * m32r-linux-nat.c: Likewise.
1927 * m32r-linux-tdep.c: Likewise.
1928 * m32r-rom.c: Likewise.
1929 * m32r-tdep.c: Likewise.
1930 * m68hc11-tdep.c: Likewise.
1931 * m68k-tdep.c: Likewise.
1932 * m68kbsd-tdep.c: Likewise.
1933 * m68klinux-nat.c: Likewise.
1934 * m68klinux-tdep.c: Likewise.
1935 * m88k-tdep.c: Likewise.
1936 * machoread.c: Likewise.
1937 * macrocmd.c: Likewise.
1939 * mdebugread.c: Likewise.
1940 * mem-break.c: Likewise.
1941 * memattr.c: Likewise.
1942 * memory-map.c: Likewise.
1943 * mep-tdep.c: Likewise.
1944 * mi/mi-cmd-break.c: Likewise.
1945 * mi/mi-cmd-disas.c: Likewise.
1946 * mi/mi-cmd-env.c: Likewise.
1947 * mi/mi-cmd-stack.c: Likewise.
1948 * mi/mi-cmd-var.c: Likewise.
1949 * mi/mi-cmds.c: Likewise.
1950 * mi/mi-console.c: Likewise.
1951 * mi/mi-getopt.c: Likewise.
1952 * mi/mi-interp.c: Likewise.
1953 * mi/mi-main.c: Likewise.
1954 * mi/mi-parse.c: Likewise.
1955 * microblaze-rom.c: Likewise.
1956 * microblaze-tdep.c: Likewise.
1957 * mingw-hdep.c: Likewise.
1958 * minidebug.c: Likewise.
1959 * minsyms.c: Likewise.
1960 * mips-irix-tdep.c: Likewise.
1961 * mips-linux-tdep.c: Likewise.
1962 * mips-tdep.c: Likewise.
1963 * mips64obsd-tdep.c: Likewise.
1964 * mipsnbsd-tdep.c: Likewise.
1965 * mipsread.c: Likewise.
1966 * mn10300-linux-tdep.c: Likewise.
1967 * mn10300-tdep.c: Likewise.
1968 * monitor.c: Likewise.
1969 * moxie-tdep.c: Likewise.
1970 * mt-tdep.c: Likewise.
1971 * nat/linux-btrace.c: Likewise.
1972 * nat/linux-osdata.c: Likewise.
1973 * nat/linux-procfs.c: Likewise.
1974 * nat/linux-ptrace.c: Likewise.
1975 * nat/linux-waitpid.c: Likewise.
1976 * nbsd-tdep.c: Likewise.
1977 * nios2-linux-tdep.c: Likewise.
1978 * nto-procfs.c: Likewise.
1979 * nto-tdep.c: Likewise.
1980 * objc-lang.c: Likewise.
1981 * objfiles.c: Likewise.
1982 * opencl-lang.c: Likewise.
1983 * osabi.c: Likewise.
1984 * osdata.c: Likewise.
1985 * p-exp.y: Likewise.
1986 * p-lang.c: Likewise.
1987 * p-typeprint.c: Likewise.
1988 * parse.c: Likewise.
1989 * posix-hdep.c: Likewise.
1990 * ppc-linux-nat.c: Likewise.
1991 * ppc-sysv-tdep.c: Likewise.
1992 * ppcfbsd-tdep.c: Likewise.
1993 * ppcnbsd-tdep.c: Likewise.
1994 * ppcobsd-tdep.c: Likewise.
1995 * printcmd.c: Likewise.
1996 * procfs.c: Likewise.
1997 * prologue-value.c: Likewise.
1998 * python/py-auto-load.c: Likewise.
1999 * python/py-gdb-readline.c: Likewise.
2000 * ravenscar-thread.c: Likewise.
2001 * regcache.c: Likewise.
2002 * registry.c: Likewise.
2003 * remote-fileio.c: Likewise.
2004 * remote-m32r-sdi.c: Likewise.
2005 * remote-mips.c: Likewise.
2006 * remote-notif.c: Likewise.
2007 * remote-sim.c: Likewise.
2008 * remote.c: Likewise.
2009 * reverse.c: Likewise.
2010 * rs6000-aix-tdep.c: Likewise.
2011 * ser-base.c: Likewise.
2012 * ser-go32.c: Likewise.
2013 * ser-mingw.c: Likewise.
2014 * ser-pipe.c: Likewise.
2015 * ser-tcp.c: Likewise.
2016 * ser-unix.c: Likewise.
2017 * serial.c: Likewise.
2018 * sh-tdep.c: Likewise.
2019 * sh64-tdep.c: Likewise.
2020 * shnbsd-tdep.c: Likewise.
2022 * sol-thread.c: Likewise.
2023 * solib-dsbt.c: Likewise.
2024 * solib-frv.c: Likewise.
2025 * solib-osf.c: Likewise.
2026 * solib-som.c: Likewise.
2027 * solib-spu.c: Likewise.
2028 * solib-target.c: Likewise.
2029 * solib.c: Likewise.
2030 * somread.c: Likewise.
2031 * source.c: Likewise.
2032 * sparc-nat.c: Likewise.
2033 * sparc-sol2-tdep.c: Likewise.
2034 * sparc-tdep.c: Likewise.
2035 * sparc64-tdep.c: Likewise.
2036 * sparc64fbsd-tdep.c: Likewise.
2037 * sparc64nbsd-tdep.c: Likewise.
2038 * sparcnbsd-tdep.c: Likewise.
2039 * spu-linux-nat.c: Likewise.
2040 * spu-multiarch.c: Likewise.
2041 * spu-tdep.c: Likewise.
2042 * stabsread.c: Likewise.
2043 * stack.c: Likewise.
2044 * std-regs.c: Likewise.
2045 * symfile.c: Likewise.
2046 * symmisc.c: Likewise.
2047 * symtab.c: Likewise.
2048 * target.c: Likewise.
2049 * thread.c: Likewise.
2050 * tilegx-linux-nat.c: Likewise.
2051 * tilegx-tdep.c: Likewise.
2053 * tracepoint.c: Likewise.
2054 * tui/tui-command.c: Likewise.
2055 * tui/tui-data.c: Likewise.
2056 * tui/tui-disasm.c: Likewise.
2057 * tui/tui-file.c: Likewise.
2058 * tui/tui-layout.c: Likewise.
2059 * tui/tui-out.c: Likewise.
2060 * tui/tui-regs.c: Likewise.
2061 * tui/tui-source.c: Likewise.
2062 * tui/tui-stack.c: Likewise.
2063 * tui/tui-win.c: Likewise.
2064 * tui/tui-windata.c: Likewise.
2065 * tui/tui-winsource.c: Likewise.
2066 * typeprint.c: Likewise.
2067 * ui-file.c: Likewise.
2068 * ui-out.c: Likewise.
2069 * user-regs.c: Likewise.
2070 * utils.c: Likewise.
2071 * v850-tdep.c: Likewise.
2072 * valarith.c: Likewise.
2073 * valops.c: Likewise.
2074 * valprint.c: Likewise.
2075 * value.c: Likewise.
2076 * varobj.c: Likewise.
2077 * vax-tdep.c: Likewise.
2078 * vaxnbsd-tdep.c: Likewise.
2079 * vaxobsd-tdep.c: Likewise.
2080 * windows-nat.c: Likewise.
2081 * xcoffread.c: Likewise.
2082 * xml-support.c: Likewise.
2083 * xstormy16-tdep.c: Likewise.
2084 * xtensa-linux-nat.c: Likewise.
2086 2014-08-07 Gary Benson <gbenson@redhat.com>
2088 * common/common-defs.h: Include gdb_assert.h.
2089 * aarch64-tdep.c: Do not include gdb_assert.h.
2090 * addrmap.c: Likewise.
2091 * aix-thread.c: Likewise.
2092 * alpha-linux-tdep.c: Likewise.
2093 * alpha-mdebug-tdep.c: Likewise.
2094 * alphanbsd-tdep.c: Likewise.
2095 * amd64-nat.c: Likewise.
2096 * amd64-tdep.c: Likewise.
2097 * amd64bsd-nat.c: Likewise.
2098 * amd64fbsd-nat.c: Likewise.
2099 * amd64fbsd-tdep.c: Likewise.
2100 * amd64nbsd-nat.c: Likewise.
2101 * amd64nbsd-tdep.c: Likewise.
2102 * amd64obsd-nat.c: Likewise.
2103 * amd64obsd-tdep.c: Likewise.
2104 * arch-utils.c: Likewise.
2105 * arm-tdep.c: Likewise.
2106 * armbsd-tdep.c: Likewise.
2108 * bcache.c: Likewise.
2109 * bfin-tdep.c: Likewise.
2110 * blockframe.c: Likewise.
2111 * breakpoint.c: Likewise.
2112 * bsd-kvm.c: Likewise.
2113 * bsd-uthread.c: Likewise.
2114 * buildsym.c: Likewise.
2115 * c-exp.y: Likewise.
2116 * c-lang.c: Likewise.
2117 * charset.c: Likewise.
2118 * cleanups.c: Likewise.
2119 * cli-out.c: Likewise.
2120 * cli/cli-decode.c: Likewise.
2121 * cli/cli-dump.c: Likewise.
2122 * cli/cli-logging.c: Likewise.
2123 * cli/cli-script.c: Likewise.
2124 * cli/cli-utils.c: Likewise.
2125 * coffread.c: Likewise.
2126 * common/common-utils.c: Likewise.
2127 * common/queue.h: Likewise.
2128 * common/signals.c: Likewise.
2129 * common/vec.h: Likewise.
2130 * complaints.c: Likewise.
2131 * completer.c: Likewise.
2132 * corelow.c: Likewise.
2133 * cp-abi.c: Likewise.
2134 * cp-name-parser.y: Likewise.
2135 * cp-namespace.c: Likewise.
2136 * cp-support.c: Likewise.
2137 * cris-tdep.c: Likewise.
2138 * dbxread.c: Likewise.
2139 * dictionary.c: Likewise.
2140 * doublest.c: Likewise.
2141 * dsrec.c: Likewise.
2142 * dummy-frame.c: Likewise.
2143 * dwarf2-frame-tailcall.c: Likewise.
2144 * dwarf2-frame.c: Likewise.
2145 * dwarf2expr.c: Likewise.
2146 * dwarf2loc.c: Likewise.
2147 * dwarf2read.c: Likewise.
2149 * event-loop.c: Likewise.
2150 * exceptions.c: Likewise.
2151 * expprint.c: Likewise.
2152 * f-valprint.c: Likewise.
2153 * fbsd-nat.c: Likewise.
2154 * findvar.c: Likewise.
2155 * frame-unwind.c: Likewise.
2156 * frame.c: Likewise.
2157 * frv-tdep.c: Likewise.
2158 * gcore.c: Likewise.
2159 * gdb-dlfcn.c: Likewise.
2160 * gdb_bfd.c: Likewise.
2161 * gdbarch.c: Likewise.
2162 * gdbarch.sh: Likewise.
2163 * gdbtypes.c: Likewise.
2164 * gnu-nat.c: Likewise.
2165 * gnu-v3-abi.c: Likewise.
2166 * go-lang.c: Likewise.
2167 * guile/scm-exception.c: Likewise.
2168 * guile/scm-gsmob.c: Likewise.
2169 * guile/scm-lazy-string.c: Likewise.
2170 * guile/scm-math.c: Likewise.
2171 * guile/scm-pretty-print.c: Likewise.
2172 * guile/scm-safe-call.c: Likewise.
2173 * guile/scm-utils.c: Likewise.
2174 * guile/scm-value.c: Likewise.
2175 * h8300-tdep.c: Likewise.
2176 * hppa-hpux-nat.c: Likewise.
2177 * hppa-tdep.c: Likewise.
2178 * hppanbsd-tdep.c: Likewise.
2179 * hppaobsd-tdep.c: Likewise.
2180 * i386-darwin-nat.c: Likewise.
2181 * i386-darwin-tdep.c: Likewise.
2182 * i386-nto-tdep.c: Likewise.
2183 * i386-tdep.c: Likewise.
2184 * i386bsd-nat.c: Likewise.
2185 * i386fbsd-tdep.c: Likewise.
2186 * i386gnu-nat.c: Likewise.
2187 * i386nbsd-tdep.c: Likewise.
2188 * i386obsd-tdep.c: Likewise.
2189 * i387-tdep.c: Likewise.
2190 * ia64-libunwind-tdep.c: Likewise.
2191 * ia64-tdep.c: Likewise.
2192 * inf-ptrace.c: Likewise.
2193 * inf-ttrace.c: Likewise.
2194 * infcall.c: Likewise.
2195 * infcmd.c: Likewise.
2196 * infrun.c: Likewise.
2197 * inline-frame.c: Likewise.
2198 * interps.c: Likewise.
2199 * jv-lang.c: Likewise.
2200 * jv-typeprint.c: Likewise.
2201 * linux-fork.c: Likewise.
2202 * linux-nat.c: Likewise.
2203 * linux-thread-db.c: Likewise.
2204 * m32c-tdep.c: Likewise.
2205 * m32r-linux-nat.c: Likewise.
2206 * m32r-tdep.c: Likewise.
2207 * m68k-tdep.c: Likewise.
2208 * m68kbsd-nat.c: Likewise.
2209 * m68kbsd-tdep.c: Likewise.
2210 * m88k-tdep.c: Likewise.
2211 * machoread.c: Likewise.
2212 * macroexp.c: Likewise.
2213 * macrotab.c: Likewise.
2214 * maint.c: Likewise.
2215 * mdebugread.c: Likewise.
2216 * memory-map.c: Likewise.
2217 * mep-tdep.c: Likewise.
2218 * mi/mi-common.c: Likewise.
2219 * microblaze-tdep.c: Likewise.
2220 * mingw-hdep.c: Likewise.
2221 * mips-linux-nat.c: Likewise.
2222 * mips-linux-tdep.c: Likewise.
2223 * mips-tdep.c: Likewise.
2224 * mips64obsd-tdep.c: Likewise.
2225 * mipsnbsd-tdep.c: Likewise.
2226 * mn10300-linux-tdep.c: Likewise.
2227 * mn10300-tdep.c: Likewise.
2228 * moxie-tdep.c: Likewise.
2229 * mt-tdep.c: Likewise.
2230 * nat/linux-btrace.c: Likewise.
2231 * nat/linux-osdata.c: Likewise.
2232 * nat/linux-ptrace.c: Likewise.
2233 * nat/mips-linux-watch.c: Likewise.
2234 * nios2-linux-tdep.c: Likewise.
2235 * nios2-tdep.c: Likewise.
2236 * objc-lang.c: Likewise.
2237 * objfiles.c: Likewise.
2238 * obsd-nat.c: Likewise.
2239 * opencl-lang.c: Likewise.
2240 * osabi.c: Likewise.
2241 * parse.c: Likewise.
2242 * ppc-linux-nat.c: Likewise.
2243 * ppc-sysv-tdep.c: Likewise.
2244 * ppcfbsd-nat.c: Likewise.
2245 * ppcfbsd-tdep.c: Likewise.
2246 * ppcnbsd-nat.c: Likewise.
2247 * ppcnbsd-tdep.c: Likewise.
2248 * ppcobsd-nat.c: Likewise.
2249 * ppcobsd-tdep.c: Likewise.
2250 * printcmd.c: Likewise.
2251 * procfs.c: Likewise.
2252 * prologue-value.c: Likewise.
2253 * psymtab.c: Likewise.
2254 * python/py-lazy-string.c: Likewise.
2255 * python/py-value.c: Likewise.
2256 * regcache.c: Likewise.
2257 * reggroups.c: Likewise.
2258 * registry.c: Likewise.
2259 * remote-sim.c: Likewise.
2260 * remote.c: Likewise.
2261 * rs6000-aix-tdep.c: Likewise.
2262 * rs6000-tdep.c: Likewise.
2263 * s390-linux-tdep.c: Likewise.
2264 * score-tdep.c: Likewise.
2265 * ser-base.c: Likewise.
2266 * ser-mingw.c: Likewise.
2267 * sh-tdep.c: Likewise.
2268 * sh64-tdep.c: Likewise.
2269 * solib-darwin.c: Likewise.
2270 * solib-spu.c: Likewise.
2271 * solib-svr4.c: Likewise.
2272 * source.c: Likewise.
2273 * sparc-nat.c: Likewise.
2274 * sparc-sol2-tdep.c: Likewise.
2275 * sparc-tdep.c: Likewise.
2276 * sparc64-sol2-tdep.c: Likewise.
2277 * sparc64-tdep.c: Likewise.
2278 * sparc64fbsd-tdep.c: Likewise.
2279 * sparc64nbsd-tdep.c: Likewise.
2280 * sparc64obsd-tdep.c: Likewise.
2281 * sparcnbsd-tdep.c: Likewise.
2282 * sparcobsd-tdep.c: Likewise.
2283 * spu-multiarch.c: Likewise.
2284 * spu-tdep.c: Likewise.
2285 * stabsread.c: Likewise.
2286 * stack.c: Likewise.
2287 * symfile.c: Likewise.
2288 * symtab.c: Likewise.
2289 * target-descriptions.c: Likewise.
2290 * target-memory.c: Likewise.
2291 * target.c: Likewise.
2292 * tic6x-linux-tdep.c: Likewise.
2293 * tic6x-tdep.c: Likewise.
2294 * tilegx-linux-nat.c: Likewise.
2295 * tilegx-tdep.c: Likewise.
2297 * tramp-frame.c: Likewise.
2298 * tui/tui-out.c: Likewise.
2299 * tui/tui-winsource.c: Likewise.
2300 * ui-out.c: Likewise.
2301 * user-regs.c: Likewise.
2302 * utils.c: Likewise.
2303 * v850-tdep.c: Likewise.
2304 * valops.c: Likewise.
2305 * value.c: Likewise.
2306 * varobj.c: Likewise.
2307 * vax-nat.c: Likewise.
2308 * xml-syscall.c: Likewise.
2309 * xml-tdesc.c: Likewise.
2310 * xstormy16-tdep.c: Likewise.
2311 * xtensa-linux-nat.c: Likewise.
2312 * xtensa-tdep.c: Likewise.
2314 2014-08-07 Gary Benson <gbenson@redhat.com>
2316 * common/common-defs.h: Include common-utils.h.
2317 * defs.h: Do not include common-utils.h.
2318 * common/gdb_assert.h: Likewise.
2319 * darwin-nat.h: Likewise.
2320 * nat/linux-btrace.c: Likewise.
2321 * target/waitstatus.h: Likewise.
2323 2014-08-07 Gary Benson <gbenson@redhat.com>
2325 * common/common-defs.h: Include ptid.h.
2326 * defs.h: Do not include ptid.h.
2327 * inferior.h: Likewise.
2328 * infrun.h: Likewise.
2329 * nat/linux-btrace.h: Likewise.
2330 * nat/linux-osdata.h: Likewise.
2331 * target/waitstatus.h: Likewise.
2333 2014-08-07 Gary Benson <gbenson@redhat.com>
2335 * common/common-defs.h: Include gdb_locale.h.
2336 * defs.h: Do not include gdb_locale.h.
2338 2014-08-07 Gary Benson <gbenson@redhat.com>
2340 * common/common-defs.h: Include gdb/signals.h.
2341 * defs.h: Do not include gdb/signals.h.
2343 2014-08-07 Gary Benson <gbenson@redhat.com>
2345 * common/common-defs.h: Include pathmax.h.
2346 * defs.h: Do not include pathmax.h.
2348 2014-08-07 Gary Benson <gbenson@redhat.com>
2350 * common/common-defs.h: Include libiberty.h.
2351 * defs.h: Do not include libiberty.h.
2352 * common/queue.h: Likewise.
2353 * cp-name-parser.y: Likewise.
2354 * mi/mi-cmd-catch.c: Likewise.
2355 * python/python.c: Likewise.
2357 2014-08-07 Gary Benson <gbenson@redhat.com>
2359 * common/common-defs.h: Include ansidecl.h.
2360 * defs.h: Do not include ansidecl.h.
2361 * common/buffer.h: Likewise.
2362 * common/common-utils.h: Likewise.
2364 2014-08-07 Gary Benson <gbenson@redhat.com>
2366 * common/common-defs.h: Include stddef.h.
2367 * defs.h: Do not include stddef.h.
2368 * common/common-utils.h: Likewise.
2369 * amd64fbsd-nat.c: Likewise.
2370 * bcache.c: Likewise.
2371 * charset.c: Likewise.
2372 * common/buffer.h: Likewise.
2373 * common/vec.h: Likewise.
2374 * i386bsd-nat.c: Likewise.
2375 * nat/linux-btrace.h: Likewise.
2376 * ppcfbsd-nat.c: Likewise.
2377 * ppcnbsd-tdep.h: Likewise.
2378 * ppcobsd-nat.c: Likewise.
2379 * ppcobsd-tdep.h: Likewise.
2380 * python/py-gdb-readline.c: Likewise.
2382 2014-08-07 Gary Benson <gbenson@redhat.com>
2384 * common/common-defs.h: Include stdarg.h.
2385 * defs.h: Do not include stdarg.h.
2386 * ada-lang.c: Likewise.
2387 * common/common-utils.h: Likewise.
2388 * guile/scm-string.c: Likewise.
2389 * guile/scm-utils.c: Likewise.
2390 * m32c-tdep.c: Likewise.
2392 2014-08-07 Gary Benson <gbenson@redhat.com>
2394 * common/common-defs.h: Include stdlib.h.
2395 * defs.h: Do not include stdlib.h.
2396 * addrmap.c: Likewise.
2397 * bcache.c: Likewise.
2398 * common/buffer.c: Likewise.
2399 * common/common-utils.c: Likewise.
2400 * cp-name-parser.y: Likewise.
2401 * go32-nat.c: Likewise.
2402 * mn10300-linux-tdep.c: Likewise.
2403 * nat/linux-osdata.c: Likewise.
2404 * tui/tui.c: Likewise.
2405 * windows-nat.c: Likewise.
2407 2014-08-07 Gary Benson <gbenson@redhat.com>
2409 * common/common-defs.h: Include stdio.h.
2410 * defs.h: Do not include stdio.h.
2411 * ada-lang.c: Likewise.
2412 * common/buffer.c: Likewise.
2413 * common/common-utils.c: Likewise.
2414 * cp-name-parser.y: Likewise.
2415 * gnu-nat.c: Likewise.
2416 * go32-nat.c: Likewise.
2417 * i386gnu-nat.c: Likewise.
2418 * proc-api.c: Likewise.
2419 * proc-events.c: Likewise.
2420 * proc-flags.c: Likewise.
2421 * proc-why.c: Likewise.
2422 * python/python-internal.h: Likewise.
2423 * target-memory.c: Likewise.
2424 * tui/tui-io.c: Likewise.
2425 * tui/tui.c: Likewise.
2427 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2429 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2430 (scan_dyntag_auxv): Same.
2432 2014-08-06 Yao Qi <yao@codesourcery.com>
2434 * amd64-linux-nat.c: Remove duplicated include
2436 * i386-linux-nat.c: Likewise.
2438 2014-08-06 Yao Qi <yao@codesourcery.com>
2440 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2441 operand" with "Special opcode" in comments.
2443 2014-08-05 Gary Benson <gbenson@redhat.com>
2445 * interps.c (initialize_interps): Remove prototype.
2446 (interpreter_initialized): Remove static global.
2447 (interp_add): Do not call initialize_interps.
2448 (initialize_interps): Remove function.
2450 2014-08-05 Gary Benson <gbenson@redhat.com>
2452 * utils.c (vwarning): Remove spurious va_end.
2454 2014-08-05 Alan Modra <amodra@gmail.com>
2456 * charset.c (convert_between_encodings): Cast result of obstack_base.
2457 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2458 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2459 (read_unwind_info): Use size_t for some locals.
2460 * jit.c (finalize_symtab): Likewise.
2461 * utils.c (hashtab_obstack_allocate): Likewise.
2462 * symmisc.c (print_objfile_statistics): Update format strings.
2464 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2466 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2467 (Changes in GDB 7.8): ... here.
2469 2014-08-04 Tom Tromey <tromey@redhat.com>
2471 * target.c (set_targetdebug): New function.
2472 (initialize_targets): Pass set_targetdebug when creating "set
2475 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2477 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2478 if detecting a variable-sized field that is not the last field.
2479 Fix struct type length computation.
2481 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2483 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2486 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2488 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2489 Remove "+ 8" offset in computation of CHAIN_VMA.
2491 2014-07-31 Doug Evans <dje@google.com>
2493 * inflow.c (child_terminal_inferior): Add comment.
2494 (child_terminal_ours_for_output): Add comment.
2495 (child_terminal_ours): Add comment.
2496 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2497 (linux_nat_terminal_ours): Add comment.
2499 2014-07-31 Gary Benson <gbenson@redhat.com>
2501 * common/btrace-common.h: Do not include defs.h or server.h.
2502 * nat/mips-linux-watch.h: Likewise.
2503 * gdb-dlfcn.h: Do not include defs.h.
2504 * tracefile.h: Likewise.
2506 2014-07-30 Roland McGrath <mcgrathr@google.com>
2508 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2510 2014-07-30 Tom Tromey <tromey@redhat.com>
2512 * bsd-kvm.c (bsd_kvm_open): Constify.
2513 * corelow.c (core_open): Constify.
2514 * ctf.c (ctf_open): Constify.
2515 * dbug-rom.c (dbug_open): Constify.
2516 * exec.c (exec_open): Constify.
2517 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2518 * microblaze-rom.c (picobug_open): Constify.
2519 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2521 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2522 * record-btrace.c (record_btrace_open): Constify.
2523 * record-full.c (record_full_core_open_1, record_full_open_1)
2524 (record_full_open): Constify.
2525 * remote-m32r-sdi.c (m32r_open): Constify.
2526 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2527 (rockhopper_open, lsi_open): Constify.
2528 * remote-sim.c (gdbsim_open): Constify.
2529 * remote.c (remote_open, extended_remote_open, remote_open_1):
2531 * target.h (struct target_ops) <to_open>: Make "arg" const.
2532 * tracefile-tfile.c (tfile_open): Constify.
2534 2014-07-30 Tom Tromey <tromey@redhat.com>
2536 * breakpoint.c (map_breakpoint_numbers): Update.
2537 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2538 (get_number_const): New function.
2539 (get_number): Rewrite using get_number_const.
2540 (init_number_or_range): Make "string" const.
2541 (number_is_in_list): Make "list" const.
2542 * cli/cli-utils.h (get_number_const): Declare.
2543 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2544 (init_number_or_range, number_is_in_list): Update.
2545 * printcmd.c (map_display_numbers): Update.
2546 * value.c (value_from_history_ref): Constify.
2547 * value.h (value_from_history_ref): Update.
2549 2014-07-30 Tom Tromey <tromey@redhat.com>
2551 * corefile.c (hook_type, call_extra_exec_file_hooks)
2552 (specify_exec_file_hook): Constify.
2553 * exec.c (exec_file_attach): Make "filename" const.
2554 * gdbcore.h (deprecated_exec_file_display_hook)
2555 (specify_exec_file_hook, exec_file_attach): Constify.
2556 * main.c (captured_main): Use catch_command_errors_const.
2558 2014-07-30 Tom Tromey <tromey@redhat.com>
2560 * target.c (open_target): New function.
2561 (add_target_with_completer, add_deprecated_target_alias): Use
2562 set_cmd_sfunc, set_cmd_context.
2563 (debug_to_open): Remove.
2564 (setup_target_debug): Update.
2566 2014-07-30 Yao Qi <yao@codesourcery.com>
2568 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2570 * parse.c (exp_iterate): Update comments.
2572 2014-07-30 Gary Benson <gbenson@redhat.com>
2574 * common/common-defs.h: New file.
2575 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2576 * defs.h: Include common-defs.h.
2577 Do not include config.h or build-gnulib/config.h.
2579 2014-07-30 Gary Benson <gbenson@redhat.com>
2581 * common/common-utils.h: Do not include config.h.
2582 * nat/linux-btrace.h: Likewise.
2584 2014-07-30 Gary Benson <gbenson@redhat.com>
2586 * btrace.c: Include defs.h.
2587 * common/ptid.c: Include defs.h or server.h as appropriate.
2588 * nat/mips-linux-watch.c: Likewise.
2590 2014-07-29 Tom Tromey <tromey@redhat.com>
2592 * target.c (target_is_pushed): Simplify.
2594 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2598 2014-07-29 Yao Qi <yao@codesourcery.com>
2601 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2603 2014-07-28 Doug Evans <xdje42@gmail.com>
2606 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2607 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2610 2014-07-28 Will Newton <will.newton@linaro.org>
2612 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2613 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2614 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2615 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2616 (THUMB2_EABI_SYSCALL): Likewise.
2617 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2619 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2620 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2622 2014-07-27 Doug Evans <xdje42@gmail.com>
2624 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2626 2014-07-27 Doug Evans <xdje42@gmail.com>
2628 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2630 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2631 Doug Evans <xdje42@gmail.com>
2634 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2635 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2636 * configure.ac: Try to use guild to compile an scm file, if it fails
2637 then disable guile support.
2638 * configure: Regenerate.
2639 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2641 (GUILE_COMPILED_FILES): New variable.
2642 (GUILE_FILES) Update.
2643 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2644 (stamp-guile): Compile scm files.
2645 * guile/guile.c (boot_guile_support): New function.
2646 (standard_throw_args_p): New function.
2647 (print_standard_throw_error, print_throw_error): New functions.
2648 (handle_boot_error): New function.
2649 (initialize_scheme_side): Rewrite to call boot_guile_support.
2650 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2651 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2653 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2654 Doug Evans <xdje42@gmail.com>
2657 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2658 * guile/lib/gdb/support.scm: New file.
2659 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2660 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2662 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2664 (%assert-type): Ditto, and renamed to assert-type.
2665 (%exception-print-style): Delete.
2667 2014-07-26 Doug Evans <xdje42@gmail.com>
2670 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2671 * configure: Regenerate.
2672 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2674 (PYTHON_FILES): New variable.
2675 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2676 (GUILE_FILES): New variable.
2677 (stamp-python, install-python, uninstall-python): Handle empty
2679 (stamp-guile, install-guile, uninstall-guile): Ditto.
2681 2014-07-26 Doug Evans <xdje42@gmail.com>
2684 * guile/lib/gdb.scm (pretty-printers): Export.
2685 (set-pretty-printers!): Export.
2686 * guile/lib/gdb/printing.scm (gdb module): Update.
2687 (prepend-pretty-printer!, append-pretty-printer!): Update.
2688 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2689 (pretty_printer_list_var): Delete.
2690 (pretty_printer_list): New static global.
2691 (gdbscm_pretty_printers): New function.
2692 (gdbscm_set_pretty_printers_x): New function.
2693 (ppscm_find_pretty_printer_from_gdb): Update.
2694 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2695 (gdbscm_initialize_pretty_printers): Update.
2697 2014-07-26 Doug Evans <xdje42@gmail.com>
2700 * configure.ac: Add check for header gc/gc.h.
2701 Add check for function setenv.
2702 * configure: Regenerate.
2703 * config.in: Regenerate.
2704 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2706 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2708 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2709 variation in gdbarch matching.
2711 2014-07-25 Tom Tromey <tromey@redhat.com>
2713 * exec.c (using_exec_ops): Remove.
2714 (exec_close_1): Update. Remove extraneous block, reindent.
2715 (add_target_sections): Use target_is_pushed.
2717 2014-07-25 Pedro Alves <palves@redhat.com>
2719 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2720 * monitor.c (monitor_create_inferior): Likewise.
2721 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2722 * remote-sim.c (gdbsim_create_inferior): Likewise.
2723 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2724 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2725 * windows-nat.c (do_initial_windows_stuff): Likewise.
2727 2014-07-25 Pedro Alves <palves@redhat.com>
2729 * NEWS: Mention signal passing and "signal" command changes.
2730 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2732 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2734 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2735 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2736 (jump_command): Adjust clear_proceed_status call.
2737 (signal_command): Warn if other thread that are resumed have
2738 signals that will be delivered. Adjust clear_proceed_status call.
2739 (until_next_command, finish_command)
2740 (proceed_after_attach_callback, attach_command_post_wait)
2741 (attach_command): Adjust clear_proceed_status call.
2742 * infrun.c (proceed_after_vfork_done): Likewise.
2743 (proceed_after_attach_callback): Adjust comment.
2744 (clear_proceed_status_thread): Clear stop_signal if not in pass
2746 (clear_proceed_status_callback): Delete.
2747 (clear_proceed_status): New 'step' parameter. Only clear the
2748 proceed status of threads the command being prepared is about to
2750 (proceed): If passed in an explicit signal, override stop_signal
2751 with it. Don't pass the last stop signal to the thread we're
2753 (init_wait_for_inferior): Adjust clear_proceed_status call.
2754 (switch_back_to_stepped_thread): Clear the signal if it should not
2756 * infrun.h (clear_proceed_status): New 'step' parameter.
2757 (user_visible_resume_ptid): Add comment.
2758 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2759 signal is in pass state.
2760 * remote.c (append_pending_thread_resumptions): Likewise.
2761 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2763 2014-07-25 Tom Tromey <tromey@redhat.com>
2765 * target.h (target_stopped_data_address)
2766 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2769 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2771 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2773 (avr_pointer_to_address): Likewise.
2775 2014-07-24 Tom Tromey <tromey@redhat.com>
2777 * monitor.c (compile_pattern): Update.
2778 * target.h (struct target_ops) <to_shortname, to_longname,
2781 2014-07-24 Tom Tromey <tromey@redhat.com>
2783 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2784 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2785 (add_info_alias, add_com): Make "doc" const.
2786 (print_doc_line): Make "str" const.
2787 (delete_cmd): Update.
2788 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2789 (print_doc_line): Update.
2790 * cli/cli-script.c (document_command): Update.
2791 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2792 (add_com, add_info, add_info_alias): Update.
2793 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2794 * python/py-cmd.c (cmdpy_destroyer): Update.
2796 2014-07-24 Tom Tromey <tromey@redhat.com>
2798 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2799 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2800 (help_cmd_list): Constify.
2801 (lookup_cmd): Update.
2802 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2804 (help_cmd_list, apropos_cmd): Update.
2805 * cli/cli-script.c (show_user): Update.
2806 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2807 * cli/cli-setshow.h (cmd_show_list): Update.
2808 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2809 (cmd_show_list): Update.
2810 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2811 * python/py-cmd.c (cmdpy_destroyer): Update.
2813 2014-07-24 Tom Tromey <tromey@redhat.com>
2815 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2816 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2818 * command.h (deprecate_cmd): Update.
2819 * maint.c (maintenance_do_deprecate): Add casts.
2821 2014-07-24 Tom Tromey <tromey@redhat.com>
2823 * cli/cli-decode.c (help_cmd): Make parameter "const".
2824 * cli/cli-decode.h (help_cmd): Update.
2826 2014-07-24 Tom Tromey <tromey@redhat.com>
2828 * stack.c (up_silently_base, down_silently_base): Make argument
2831 2014-07-24 Tom Tromey <tromey@redhat.com>
2833 * solib.c (solib_add): Make "pattern" const.
2834 * solib.h (solib_add): Update.
2836 2014-07-24 Tom Tromey <tromey@redhat.com>
2838 * remote.c (remote_serial_open, print_packet, putpkt)
2839 (putpkt_binary): Constify.
2840 * remote.h (putpkt): Update.
2842 2014-07-24 Tom Tromey <tromey@redhat.com>
2844 * monitor.c (monitor_open): Make "args" const.
2845 * monitor.h (monitor_open): Update.
2847 2014-07-24 Tom Tromey <tromey@redhat.com>
2849 * maint.c (match_bfd_flags): Make "string" const.
2850 (print_bfd_section_info): Remove casts.
2851 (print_objfile_section_info): Make "string" const.
2853 2014-07-24 Tom Tromey <tromey@redhat.com>
2855 * inf-child.c (inf_child_open_target): Make "arg" const.
2856 * inf-child.h (inf_child_open_target): Update.
2858 2014-07-24 Tom Tromey <tromey@redhat.com>
2860 * environ.c (unset_in_environ): Make "var" const.
2861 * environ.h (unset_in_environ): Update.
2863 2014-07-24 Tom Tromey <tromey@redhat.com>
2865 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2867 (scan_filename_with_cleanup): Likewise.
2868 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2869 Make arguments const.
2870 (restore_command): Update.
2872 2014-07-24 Pedro Alves <palves@redhat.com>
2874 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2876 2014-07-24 Tom Tromey <tromey@redhat.com>
2877 Gary Benson <gbenson@redhat.com>
2879 * nat/linux-ptrace.c (additional_flags): New global.
2880 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2881 additional_flags; don't check GDBSERVER.
2882 (linux_ptrace_set_additional_flags): New function.
2883 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2885 * linux-nat.c (_initialize_linux_nat): Call
2886 linux_ptrace_set_additional_flags.
2888 2014-07-24 Tom Tromey <tromey@redhat.com>
2890 * make-target-delegates (munge_type, write_debugmethod): New
2892 (debug_names): New global.
2893 ($TARGET_DEBUG_PRINTER): New global.
2894 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2896 Write debug methods. Generate init_debug_target.
2897 * target-debug.h: New file.
2898 * target-delegates.c: Rebuild.
2899 * target.c: Include target-debug.h.
2900 (debug_target): Hoist definition.
2901 (target_kill, target_get_section_table, target_memory_map)
2902 (target_flash_erase, target_flash_done, target_detach)
2903 (target_disconnect, target_wait, target_resume)
2904 (target_pass_signals, target_program_signals, target_follow_fork)
2905 (target_mourn_inferior, target_search_memory)
2906 (target_thread_address_space, target_close)
2907 (target_find_new_threads, target_core_of_thread)
2908 (target_verify_memory, target_insert_mask_watchpoint)
2909 (target_remove_mask_watchpoint): Remove targetdebug code.
2910 (debug_to_post_attach, debug_to_prepare_to_store)
2911 (debug_to_files_info, debug_to_insert_breakpoint)
2912 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2913 (debug_to_region_ok_for_hw_watchpoint)
2914 (debug_to_can_accel_watchpoint_condition)
2915 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2916 (debug_to_watchpoint_addr_within_range)
2917 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2918 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2919 (debug_to_terminal_init, debug_to_terminal_inferior)
2920 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2921 (debug_to_terminal_save_ours, debug_to_terminal_info)
2922 (debug_to_load, debug_to_post_startup_inferior)
2923 (debug_to_insert_fork_catchpoint)
2924 (debug_to_remove_fork_catchpoint)
2925 (debug_to_insert_vfork_catchpoint)
2926 (debug_to_remove_vfork_catchpoint)
2927 (debug_to_insert_exec_catchpoint)
2928 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2929 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2930 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2931 (setup_target_debug): Call init_debug_target.
2932 * target.h (TARGET_DEBUG_PRINTER): New macro.
2933 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2934 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2936 2014-07-24 Gary Benson <gbenson@redhat.com>
2938 * exceptions.h (throw_vfatal): Renamed to...
2939 (throw_vquit): New declaration.
2940 (throw_quit): Likewise.
2941 * exceptions.c (throw_vfatal): Renamed to...
2942 (throw_vquit): New function.
2943 (throw_quit): Likewise.
2944 (throw_error): Call throw_verror rather than throw_it.
2945 * utils.h (vfatal): Removed.
2947 * utils.c (vfatal): Removed.
2949 (internal_verror): Replaced call to fatal with call to throw_quit.
2950 (quit): Replaced calls to fatal with calls to throw_quit.
2952 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2954 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2957 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2959 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2960 less than zero in conditional expression.
2962 2014-07-23 Tom Tromey <tromey@redhat.com>
2964 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2965 ($INTRO_PART): Don't match whitespace.
2966 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2968 ($METHOD): Add $METHOD_TRAILER.
2970 (scan_target_h): New sub.
2971 Change main loop not to collect state.
2972 * target-delegates.c: Rebuild.
2974 2014-07-23 Gary Benson <gbenson@redhat.com>
2976 * cp-support.c (gdb_demangle): Fix build on systems without
2979 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2981 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2982 for reference entry value target data value.
2984 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2986 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2987 value_available_contents_eq.
2989 2014-07-22 Pedro Alves <palves@redhat.com>
2991 * value.c (allocate_optimized_out_value): Don't mark value as
2994 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2996 * MAINTAINERS (Write After Approval): Update my email address.
2998 2014-07-20 Doug Evans <dje@google.com>
3001 * remote.c (putpkt_binary): Add text to error message.
3003 2014-07-20 Yao Qi <yao@codesourcery.com>
3005 * eval.c: Remove "Chill" from comments.
3006 * gdbtypes.h: Likewise.
3007 * symtab.h: Likewise.
3009 2014-07-20 Yao Qi <yao@codesourcery.com>
3011 * std-operator.def: Update comments to TERNOP_SLICE.
3013 2014-07-20 Yao Qi <yao@codesourcery.com>
3015 * std-operator.def: Remove BINOP_RANGE.
3016 * breakpoint.c (watchpoint_exp_is_const): Update.
3017 * expprint.c (dump_subexp_body_standard): Likewise.
3018 * eval.c (init_array_element): Remove dead code.
3019 (evaluate_subexp_standard): Likewise.
3021 2014-07-20 Yao Qi <yao@codesourcery.com>
3023 * std-operator.def: Remove BINOP_IN.
3024 * breakpoint.c (watchpoint_exp_is_const): Update.
3025 * eval.c (evaluate_subexp_standard): Likewise.
3026 * expprint.c (dump_subexp_body_standard): Likewise.
3028 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3030 * microblaze-tdep.c (microblaze_register_names): Add
3031 the rshr and rslr register names.
3032 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3033 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3034 Use of tdesc_numbered_register. Use of
3035 microblaze_register_g_packet_guesses. Use of
3036 tdesc_use_registers. Use of set_gdbarch_register_type.
3037 (microblaze_register_g_packet_guesses): New.
3038 * microblaze-tdep.h (microblaze_reg_num): Add
3039 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3040 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3041 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3042 * features/microblaze-core.xml: New file.
3043 * features/microblaze-stack-protect.xml: New file.
3044 * features/microblaze-with-stack-protect.c: New file.
3045 * features/microblaze-with-stack-protect.xml: New file.
3046 * features/microblaze.xml: New file.
3047 * features/microblaze.c: New file.
3048 * features/Makefile (microblaze-with-stack-protect): Add
3049 microblaze-with-stack-protect microblaze and microblaze-expedite.
3050 * regformats/microblaze-with-stack-protect.dat: New file.
3051 * regformats/microblaze.dat: New file.
3052 * doc/gdb.texinfo (MicroBlaze Features): Added.
3054 2014-07-18 Tom Tromey <tromey@redhat.com>
3056 * exec.c (exec_ops): Now static.
3057 * exec.h (exec_ops): Don't declare.
3059 2014-07-18 Tom Tromey <tromey@redhat.com>
3061 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3062 to find_target_beneath.
3063 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3064 find_target_beneath.
3065 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3067 2014-07-18 Tom Tromey <tromey@redhat.com>
3070 * utils.c (quit): Use target_supports_terminal_ours.
3071 * target.h (target_supports_terminal_ours): Declare.
3072 * target.c (target_supports_delete_record): Don't check
3073 to_delete_record against NULL.
3074 (target_supports_terminal_ours): New function.
3076 2014-07-18 Tom Tromey <tromey@redhat.com>
3079 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3080 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3081 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3082 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3083 * windows-nat.c (windows_xfer_partial): Always delegate.
3084 * record-btrace.c (record_btrace_xfer_partial): Simplify
3086 (record_btrace_fetch_registers, record_btrace_store_registers)
3087 (record_btrace_prepare_to_store, record_btrace_resume)
3088 (record_btrace_wait, record_btrace_find_new_threads)
3089 (record_btrace_thread_alive): Likewise.
3090 * procfs.c (procfs_xfer_partial): Always delegate.
3091 * corelow.c (core_xfer_partial): Always delegate.
3092 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3094 2014-07-18 Tom Tromey <tromey@redhat.com>
3096 * exec.c (exec_make_note_section): Move earlier.
3098 2014-07-17 Doug Evans <dje@google.com>
3101 * maint.c (count_symtabs_and_blocks): Handle NULL
3102 current_program_space.
3103 (report_command_stats): Check global enabled flag in addition to
3104 recorded enabled flag.
3105 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3107 2014-07-16 Pedro Alves <palves@redhat.com>
3109 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3111 2014-07-16 Tom Tromey <tromey@redhat.com>
3113 * target.h (struct target_ops) <to_delete_record>: Reformat
3116 2014-07-16 Tom Tromey <tromey@redhat.com>
3118 * target-delegates.c: Rebuild.
3120 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3122 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3123 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3124 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3125 (avr_pointer_to_address): Likewise.
3126 (avr_address_class_type_flags): New function.
3127 (avr_address_class_type_flags_to_name): Likewise.
3128 (avr_address_class_name_to_type_flags): Likewise.
3129 (avr_gdbarch_init): Set address_class_type_flags,
3130 address_class_type_flags_to_name and
3131 address_class_name_to_type_flags.
3133 2014-07-15 Pedro Alves <palves@redhat.com>
3135 * linux-nat.c (kill_callback): Save errno and work with saved
3138 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3140 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3142 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3144 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3145 breakpoint support correctly.
3147 2014-07-14 Pedro Alves <palves@redhat.com>
3149 * utils.c (prompt_for_continue): Call target_terminal_ours.
3151 2014-07-14 Pedro Alves <palves@redhat.com>
3153 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3154 catch_errors. Don't re-enable stdin or notify observers where,
3156 (fetch_inferior_event_wrapper): Delete.
3158 2014-07-14 Pedro Alves <palves@redhat.com>
3161 * top.c: Include "inf-loop.h".
3162 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3164 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3166 (gdb_readline_wrapper): Store whether the target is async, and
3169 2014-07-14 Pedro Alves <palves@redhat.com>
3172 * top.c (gdb_readline_wrapper_line): Tweak comment.
3173 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3174 the input handler callback.
3176 2014-07-14 Pedro Alves <palves@redhat.com>
3179 * main.c: Include event-top.h.
3180 (handle_command_errors): New function.
3181 (catch_command_errors, catch_command_errors_const): Use it.
3183 2014-07-14 Pedro Alves <palves@redhat.com>
3185 * exceptions.c (catch_command_errors, catch_command_errors_const):
3187 * exceptions.h (catch_command_errors_ftype)
3188 (catch_command_errors_const_ftype): Moved to main.c.
3189 (catch_command_errors, catch_command_errors_const): Delete
3191 * main.c (catch_command_errors_ftype)
3192 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3193 (catch_command_errors, catch_command_errors_const)): Moved here
3194 from exceptions.c and make static.
3196 2014-07-14 Pedro Alves <palves@redhat.com>
3198 * exceptions.c (print_any_exception): Delete.
3199 (catch_exceptions_with_msg): Use exception_print instead of
3200 print_any_exception.
3201 (catch_errors): Use exception_fprintf instead of
3202 print_any_exception.
3203 (catch_command_errors, catch_command_errors_const): Use
3204 exception_print instead of print_any_exception.
3206 2014-07-14 Pedro Alves <palves@redhat.com>
3208 * infcall.c (run_inferior_call): Set 'sync_execution' while
3209 running the inferior call.
3211 2014-07-14 Pedro Alves <palves@redhat.com>
3213 * value.c (value_contents_equal): Delete function.
3214 * value.h (value_contents_equal): Delete declaration.
3216 2014-07-14 Tom Tromey <tromey@redhat.com>
3219 * gdbtypes.c (is_dynamic_type_internal): New function, from
3221 (is_dynamic_type): Rewrite.
3222 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3223 (resolve_dynamic_struct): Likewise.
3224 (resolve_dynamic_type_internal): New function, from
3225 resolve_dynamic_type.
3226 (resolve_dynamic_type): Rewrite.
3228 2014-07-14 Tom Tromey <tromey@redhat.com>
3230 * target.c (target_require_runnable): Also check record_stratum.
3233 2014-07-11 Yao Qi <yao@codesourcery.com>
3235 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3236 thumb_instruction_restores_sp return true.
3238 2014-07-11 Yao Qi <yao@codesourcery.com>
3240 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3241 (thumb_in_function_epilogue_p): Call
3242 thumb_instruction_restores_sp.
3244 2014-07-11 Yao Qi <yao@codesourcery.com>
3246 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3248 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3250 2014-07-11 Gary Benson <gbenson@redhat.com>
3252 * amd64-linux-nat.c (gdbcore.h): Remove include.
3253 (regset.h): Likewise.
3254 (nat/linux-btrace.h): Likewise.
3255 (btrace.h): Likewise.
3256 (gdb_assert.h): Likewise.
3257 (string.h): Likewise.
3258 (sys/uio.h): Likewise.
3259 (sys/debugreg.h): Likewise.
3260 (sys/syscall.h): Likewise.
3261 (sys/procfs.h): Likewise.
3262 (sys/user.h): Likewise.
3263 (asm/ptrace.h): Likewise.
3264 (i386-nat.h): Likewise.
3265 * i386-linux-nat.c (i386-nat.h): Likewise.
3266 (regset.h): Likewise.
3267 (target.h): Likewise.
3268 (linux-nat.h): Likewise.
3269 (nat/linux-btrace.h): Likewise.
3270 (btrace.h): Likewise.
3271 (gdb_assert.h): Likewise.
3272 (string.h): Likewise.
3273 (sys/uio.h): Likewise.
3274 (sys/user.h): Likewise.
3275 (sys/procfs.h): Likewise.
3276 (sys/reg.h): Likewise.
3277 (sys/debugreg.h): Likewise.
3278 (ORIG_EAX): Remove definition.
3280 2014-07-11 Gary Benson <gbenson@redhat.com>
3282 * i386-linux-nat.h: New file.
3283 * x86-linux-nat.h: Likewise.
3284 * x86-linux-nat.c: Likewise.
3285 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3286 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3287 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3288 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3289 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3290 (PTRACE_SETREGSET): Likewise.
3291 (arch_lwp_info): Now in x86-linux-nat.c.
3292 (have_ptrace_getregset): Now in x86-linux-nat.h.
3293 (x86_linux_dr_get): Now in x86-linux-nat.c.
3294 (x86_linux_dr_set): Likewise.
3295 (x86_linux_dr_get_addr): Likewise.
3296 (x86_linux_dr_get_control): Likewise.
3297 (x86_linux_dr_get_status): Likewise.
3298 (update_debug_registers_callback): Likewise.
3299 (x86_linux_dr_set_control): Likewise.
3300 (x86_linux_dr_set_addr): Likewise.
3301 (x86_linux_prepare_to_resume): Likewise.
3302 (x86_linux_new_thread): Likewise.
3303 (x86_linux_new_fork): Likewise.
3304 (x86_linux_get_thread_area): Likewise.
3305 (super_post_startup_inferior): Likewise.
3306 (x86_linux_child_post_startup_inferior): Likewise.
3307 (AMD64_LINUX_USER64_CS): Likewise.
3308 (AMD64_LINUX_X32_DS): Likewise.
3309 (x86_linux_read_description): Likewise.
3310 (x86_linux_enable_btrace): Likewise.
3311 (x86_linux_disable_btrace): Likewise.
3312 (x86_linux_teardown_btrace): Likewise.
3313 (x86_linux_read_btrace): Likewise.
3314 (x86_linux_create_target): Likewise.
3315 (x86_linux_add_target): Likewise.
3316 * i386-linux-nat.c (x86-linux-nat.h): New include.
3317 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3318 (PTRACE_SETREGSET): Likewise.
3319 (arch_lwp_info): Now in x86-linux-nat.c.
3320 (have_ptrace_getregset): Now in x86-linux-nat.h.
3321 (x86_linux_dr_get): Now in x86-linux-nat.c.
3322 (x86_linux_dr_set): Likewise.
3323 (x86_linux_dr_get_addr): Likewise.
3324 (x86_linux_dr_get_control): Likewise.
3325 (x86_linux_dr_get_status): Likewise.
3326 (update_debug_registers_callback): Likewise.
3327 (x86_linux_dr_set_control): Likewise.
3328 (x86_linux_dr_set_addr): Likewise.
3329 (x86_linux_prepare_to_resume): Likewise.
3330 (x86_linux_new_thread): Likewise.
3331 (x86_linux_new_fork): Likewise.
3332 (x86_linux_get_thread_area): Likewise.
3333 (super_post_startup_inferior): Likewise.
3334 (x86_linux_child_post_startup_inferior): Likewise.
3335 (AMD64_LINUX_USER64_CS): Likewise.
3336 (AMD64_LINUX_X32_DS): Likewise.
3337 (x86_linux_read_description): Likewise.
3338 (x86_linux_enable_btrace): Likewise.
3339 (x86_linux_disable_btrace): Likewise.
3340 (x86_linux_teardown_btrace): Likewise.
3341 (x86_linux_read_btrace): Likewise.
3342 (x86_linux_create_target): Likewise.
3343 (x86_linux_add_target): Likewise.
3345 2014-07-11 Gary Benson <gbenson@redhat.com>
3347 * amd64-linux-nat.c: Comment and whitespace changes.
3348 * i386-linux-nat.c: Comment and whitespace changes.
3350 2014-07-11 Gary Benson <gbenson@redhat.com>
3352 * amd64-linux-nat.c (x86_linux_create_target): New function.
3353 (x86_linux_add_target): Likewise.
3354 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3355 * i386-linux-nat.c (x86_linux_create_target): New function.
3356 (x86_linux_add_target): Likewise.
3357 (_initialize_i386_linux_nat): Delegate to the above new functions.
3359 2014-07-11 Gary Benson <gbenson@redhat.com>
3361 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3362 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3363 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3364 (ps_get_thread_area): Delegate to the above.
3366 2014-07-11 Gary Benson <gbenson@redhat.com>
3368 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3369 x86_linux_read_description. All uses updated. amd64-specific
3370 code conditionalized. Conditionalized i386-specific code added.
3371 Redundant cast removed.
3372 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3373 x86_linux_read_description. All uses updated. i386-specific
3374 code conditionalized. Conditionalized amd64-specific code added.
3375 One sizeof replaced with the actual type it is describing.
3377 2014-07-11 Gary Benson <gbenson@redhat.com>
3379 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3380 x86_linux_dr_get. All uses updated.
3381 (amd64_linux_dr_set): Renamed to
3382 x86_linux_dr_set. All uses updated.
3383 (amd64_linux_dr_get_addr): Renamed to
3384 x86_linux_dr_get_addr. All uses updated.
3385 (amd64_linux_dr_get_control): Renamed to
3386 x86_linux_dr_get_control. All uses updated.
3387 (amd64_linux_dr_get_status): Renamed to
3388 x86_linux_dr_get_status. All uses updated.
3389 (amd64_linux_dr_set_control): Renamed to
3390 x86_linux_dr_set_control. All uses updated.
3391 (amd64_linux_dr_set_addr): Renamed to
3392 x86_linux_dr_set_addr. All uses updated.
3393 (amd64_linux_prepare_to_resume): Renamed to
3394 x86_linux_prepare_to_resume. All uses updated.
3395 (amd64_linux_new_thread): Renamed to
3396 x86_linux_new_thread. All uses updated.
3397 (amd64_linux_new_fork): Renamed to
3398 x86_linux_new_fork. All uses updated.
3399 (amd64_linux_child_post_startup_inferior): Renamed to
3400 x86_linux_child_post_startup_inferior. All uses updated.
3401 (amd64_linux_enable_btrace): Renamed to
3402 x86_linux_enable_btrace. All uses updated.
3403 (amd64_linux_disable_btrace): Renamed to
3404 x86_linux_disable_btrace. All uses updated.
3405 (amd64_linux_teardown_btrace): Renamed to
3406 x86_linux_teardown_btrace. All uses updated.
3407 (amd64_linux_read_btrace): Renamed to
3408 x86_linux_read_btrace. All uses updated.
3409 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3410 x86_linux_dr_get. All uses updated.
3411 (i386_linux_dr_set): Renamed to
3412 x86_linux_dr_set. All uses updated.
3413 (i386_linux_dr_get_addr): Renamed to
3414 x86_linux_dr_get_addr. All uses updated.
3415 (i386_linux_dr_get_control): Renamed to
3416 x86_linux_dr_get_control. All uses updated.
3417 (i386_linux_dr_get_status): Renamed to
3418 x86_linux_dr_get_status. All uses updated.
3419 (i386_linux_dr_set_control): Renamed to
3420 x86_linux_dr_set_control. All uses updated.
3421 (i386_linux_dr_set_addr): Renamed to
3422 x86_linux_dr_set_addr. All uses updated.
3423 (i386_linux_prepare_to_resume): Renamed to
3424 x86_linux_prepare_to_resume. All uses updated.
3425 (i386_linux_new_thread): Renamed to
3426 x86_linux_new_thread. All uses updated.
3427 (i386_linux_new_fork): Renamed to
3428 x86_linux_new_fork. All uses updated.
3429 (i386_linux_child_post_startup_inferior): Renamed to
3430 x86_linux_child_post_startup_inferior. All uses updated.
3431 (i386_linux_enable_btrace): Renamed to
3432 x86_linux_enable_btrace. All uses updated.
3433 (i386_linux_disable_btrace): Renamed to
3434 x86_linux_disable_btrace. All uses updated.
3435 (i386_linux_teardown_btrace): Renamed to
3436 x86_linux_teardown_btrace. All uses updated.
3437 (i386_linux_read_btrace): Renamed to
3438 x86_linux_read_btrace. All uses updated.
3440 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3442 * remote.c (extended_remote_post_attach): New function.
3443 (init_extended_remote_ops): Install it as to_post_attach method.
3445 2014-07-09 Pedro Alves <palves@redhat.com>
3447 * infcmd.c (attach_command_post_wait): Don't call
3448 target_terminal_inferior here.
3449 (attach_command): Call it here instead.
3451 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3453 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3455 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3456 from varobj.c, with additional checks.
3457 (c_varobj_ops): Fill in is_path_expr_parent field.
3458 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3459 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3461 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3463 (varobj_default_is_path_expr_parent): New function.
3464 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3465 (varobj_default_is_path_expr_parent): Declare new function.
3467 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3469 * infcmd.c (finish_backward): Turn internal error into normal error.
3471 2014-07-07 Pedro Alves <palves@redhat.com>
3474 * remote.c (async_handle_remote_sigint)
3475 (async_handle_remote_sigint_twice): Call
3476 gdb_call_async_signal_handler instead of
3477 mark_async_signal_handler.
3479 2014-07-07 Tom Tromey <tromey@redhat.com>
3481 * target-delegates.c: Rebuild.
3482 * target.c (target_info_record): Remove.
3483 * record.c (info_record_command): Unconditionally call
3485 * target.h (struct target_ops) <to_info_record>: Use
3486 TARGET_DEFAULT_IGNORE.
3487 (target_info_record): Remove.
3489 2014-07-07 Tom Tromey <tromey@redhat.com>
3491 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3492 TARGET_DEFAULT_NORETURN.
3493 * target.c (generic_tls_error): New function.
3494 (target_translate_tls_address): Don't search target stack.
3495 * target-delegates.c: Rebuild.
3496 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3498 * linux-thread-db.c (thread_db_get_thread_local_address):
3499 Unconditionally call beneath target.
3501 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3503 * cli/cli-logging.c (pop_output_files): Assign targerr to
3506 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3508 * MAINTAINERS (Write After Approval): Update my email address.
3510 2014-07-02 Gary Benson <gbenson@redhat.com>
3512 * proc-service.c (ps_xfer_memory): Update comment.
3513 (ps_pstop): Remove unused function.
3514 (ps_pcontinue): Likewise.
3515 (ps_lstop): Likewise.
3516 (ps_lcontinue): Likewise.
3517 (ps_lgetxregsize): Likewise.
3518 (ps_lgetxregs): Likewise.
3519 (ps_lsetxregs): Likewise.
3520 (ps_plog): Likewise.
3521 (ps_ptread): Likewise.
3522 (ps_ptwrite): Likewise.
3524 2014-07-01 Mark Wielaard <mjw@redhat.com>
3526 * dwarf2read.c (add_array_cv_type): New function.
3527 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3528 (read_tag_volatile_type): Likewise.
3530 2014-07-01 Tom Tromey <tromey@redhat.com>
3532 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3533 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3534 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3535 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3536 * command.h (cmd_cfunc_ftype): Move earlier.
3537 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3538 (add_com, add_info): Use cmd_cfunc_ftype.
3540 2014-06-30 Tom Tromey <tromey@redhat.com>
3542 * symtab.c (operator_chars): Make parameters and return type
3544 (file_matches): Make "files" const.
3545 (struct search_symbols_data) <files>: Now const.
3546 (search_symbols): Make "regexp" and "files" parameters const.
3548 (symtab_symbol_info): Remove cast.
3549 (rbreak_command): Update.
3550 * symtab.h (search_symbols): Update.
3552 2014-06-27 Yao Qi <yao@codesourcery.com>
3554 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3555 Change parameter type to 'struct thread_info *'. Caller
3557 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3559 * dummy-frame.c (struct dummy_frame_id): New.
3560 (dummy_frame_id_eq): New function.
3561 (struct dummy_frame) <id>: Change its type to 'struct
3563 (dummy_frame_push): Add parameter ptid and save it in
3565 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3567 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3569 (lookup_dummy_frame): Change parameter type to 'struct
3570 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3571 instead of frame_id_eq.
3572 (dummy_frame_pop): Add parameter ptid. Callers updated.
3573 Update comments. Compose dummy_frame_id and pass it to
3575 (dummy_frame_discard): Add parameter ptid.
3576 (dummy_frame_sniffer): Compose dummy_frame_id and call
3577 dummy_frame_id_eq instead of frame_id_eq.
3578 (fprint_dummy_frames): Print ptid.
3579 * dummy-frame.h: Remove comments.
3580 (dummy_frame_push): Add ptid in declaration.
3581 (dummy_frame_pop, dummy_frame_discard): Likewise.
3583 2014-06-26 Tom Tromey <tromey@redhat.com>
3585 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3586 * command.h (error_no_arg): Update.
3588 2014-06-26 Tom Tromey <tromey@redhat.com>
3590 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3591 (do_show_command): Make "arg" const.
3592 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3594 2014-06-26 Tom Tromey <tromey@redhat.com>
3596 * record-full.c (record_full_get_bookmark): Make "args" const.
3597 (record_full_goto_bookmark): Make "raw_bookmark" const.
3598 * record.c (record_goto): New function.
3599 (cmd_record_goto): Use it. Now static.
3600 * record.h (record_goto): Declare.
3601 (cmd_record_goto): Remove declaration.
3602 * target-delegates.c: Rebuild.
3603 * target.h (struct target_ops) <to_get_bookmark,
3604 to_goto_bookmark>: Make parameter const.
3606 2014-06-26 Tom Tromey <tromey@redhat.com>
3608 * defs.h (generic_load): Update.
3609 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3610 * monitor.c (monitor_load): Make "args" const.
3611 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3612 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3614 (mips_load): Make "file" const.
3615 * remote-sim.c (gdbsim_load): Make "args" const.
3616 * remote.c (remote_load): Make "name" const.
3617 * symfile.c (generic_load): Make "args" const.
3618 * target-delegates.c: Rebuild.
3619 * target.c (target_load): Make "arg" const.
3620 (debug_to_load): Make "args" const.
3621 * target.h (struct target_ops) <to_load>: Make parameter const.
3622 (target_load): Update.
3624 2014-06-26 Tom Tromey <tromey@redhat.com>
3627 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3628 (dwarf2_physname, read_partial_die)
3629 (guess_partial_die_structure_name, fixup_partial_die)
3630 (guess_full_die_structure_name, anonymous_struct_prefix)
3631 (dwarf2_name): Use per-BFD obstack.
3633 2014-06-26 Yao Qi <yao@codesourcery.com>
3635 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3636 dummyframe and this_id into inner block below.
3638 2014-06-26 Yao Qi <yao@codesourcery.com>
3640 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3641 with "signal_pass[0]" in the initialization of signal_pass.
3643 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3645 * record-btrace.c (record_btrace_generating_corefile)
3646 (record_btrace_prepare_to_generate_core)
3647 (record_btrace_done_generating_core): New.
3648 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3649 (record_btrace_store_registers, record_btrace_prepare_to_store):
3650 Forward request when generating a core file.
3651 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3652 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3653 to_done_generating_core.
3655 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3657 * target.h (target_ops) <to_prepare_to_generate_core>
3658 <to_done_generating_core>: New.
3659 (target_prepare_to_generate_core, target_done_generating_core): New.
3660 * target.c (target_prepare_to_generate_core)
3661 (target_done_generating_core): New.
3662 * target-delegates.c: Regenerate.
3663 * gcore.c: (write_gcore_file): Rename to ...
3664 (write_gcore_file_1): ...this.
3665 (write_gcore_file): Call target_prepare_to_generate_core
3666 and target_done_generating_core.
3668 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3670 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3671 * gcore.c (write_gcore_file): Free memory returned from
3672 make_corefile_notes.
3673 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3674 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3676 2014-06-24 Yao Qi <yao@codesourcery.com>
3678 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3679 (arm_linux_init_abi): Set skip_trampoline_code with
3680 gdbarch_skip_trampoline_code instead of
3681 find_solib_trampoline_target.
3683 2014-06-24 Yao Qi <yao@codesourcery.com>
3685 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3686 arm_skip_bx_reg returns non-zero.
3688 2014-06-24 Yao Qi <yao@codesourcery.com>
3690 * arm-tdep.c (arm_skip_bx_reg): New function.
3691 (arm_skip_stub): Call arm_skip_bx_reg.
3693 2014-06-23 Don Breazeal <donb@codesourcery.com>
3695 * MAINTAINERS: Add myself as write-after-approval maintainer.
3697 2014-06-23 Pedro Alves <palves@redhat.com>
3699 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3700 DR_CONTROL before setting DR0..DR3.
3701 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3702 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3703 bits of DR_CONTROL related to the debug register slot being
3704 disabled. If all slots are vacant, clear local slowdown as well,
3705 and assert DR_CONTROL is 0.
3707 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3709 * python/lib/gdb/command/xmethods.py
3710 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3711 current progspace only if the string "progspace" matches LOCUS_RE.
3713 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3715 Fix --with-system-readline with readline-6.3 patch 5.
3716 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3717 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3720 2014-06-20 Tom Tromey <tromey@redhat.com>
3722 * dwarf2read.c (dw2_get_real_path): Use correct type in
3724 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3726 2014-06-20 Gary Benson <gbenson@redhat.com>
3728 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3729 * common/glibc_thread_db.h: Likewise.
3730 * common/i386-cpuid.h: Likewise.
3731 * common/i386-gcc-cpuid.h: Likewise.
3732 * common/linux-btrace.h: Likewise.
3733 * common/linux-osdata.h: Likewise.
3734 * common/linux-procfs.h: Likewise.
3735 * common/linux-ptrace.h: Likewise.
3736 * common/mips-linux-watch.h: Likewise.
3737 * common/linux-btrace.c: Moved to nat.
3738 * common/linux-osdata.c: Likewise.
3739 * common/linux-procfs.c: Likewise.
3740 * common/linux-ptrace.c: Likewise.
3741 * common/mips-linux-watch.c: Likewise.
3742 * nat/gdb_thread_db.h: Moved from common.
3743 * nat/glibc_thread_db.h: Likewise.
3744 * nat/i386-cpuid.h: Likewise.
3745 * nat/i386-gcc-cpuid.h: Likewise.
3746 * nat/linux-btrace.c: Likewise.
3747 * nat/linux-btrace.h: Likewise.
3748 * nat/linux-osdata.c: Likewise.
3749 * nat/linux-osdata.h: Likewise.
3750 * nat/linux-procfs.c: Likewise.
3751 * nat/linux-procfs.h: Likewise.
3752 * nat/linux-ptrace.c: Likewise.
3753 * nat/linux-ptrace.h: Likewise.
3754 * nat/mips-linux-watch.c: Likewise.
3755 * nat/mips-linux-watch.h: Likewise.
3756 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3757 (object file files): Reordered.
3758 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3759 of glibc_thread_db.h.
3761 2014-06-20 Gary Benson <gbenson@redhat.com>
3763 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3764 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3765 (i386_dr_low): Likewise.
3766 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3767 (i386_dr_low_set_addr): Likewise.
3768 (i386_dr_low_get_addr): Likewise.
3769 (i386_dr_low_can_set_control): Likewise.
3770 (i386_dr_low_set_control): Likewise.
3771 (i386_dr_low_get_control): Likewise.
3772 (i386_dr_low_get_status): Likewise.
3773 (i386_get_debug_register_length): Likewise.
3774 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3775 (i386_dr_low): Likewise.
3776 * nat/i386-dregs.c (i386-low.h): Remove include.
3777 (i386-nat.h): Likewise.
3778 (nat/i386-dregs.h): New include.
3779 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3780 (i386_dr_low_set_addr): Likewise.
3781 (i386_dr_low_get_addr): Likewise.
3782 (i386_dr_low_can_set_control): Likewise.
3783 (i386_dr_low_set_control): Likewise.
3784 (i386_dr_low_get_control): Likewise.
3785 (i386_dr_low_get_status): Likewise.
3786 (i386_get_debug_register_length): Likewise.
3787 (debug_hw_points): Likewise.
3789 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3791 * Makefile.in (SFILES): Add d-exp.y.
3792 (YYFILES): Add d-exp.c.
3793 (YYOBJ): Add d-exp.o.
3794 (local-maintainer-clean): Delete d-exp.c.
3795 * d-exp.y: New file.
3796 * d-lang.h (d_parse): New declaration.
3797 (d_error): New declaration.
3798 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3799 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3800 PREC_ORDER operators.
3801 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3803 2014-06-19 Yao Qi <yao@codesourcery.com>
3805 * gdbthread.h (any_running): Remove the declaration.
3806 * thread.c (any_running): Remove.
3808 2014-06-19 Yao Qi <yao@codesourcery.com>
3810 * gdbthread.h (struct thread_info) <state>: Change its type to
3811 'enum thread_state'. Update comments.
3813 2014-06-19 Pedro Alves <palves@redhat.com>
3815 * gdbthread.h (ALL_THREADS): Delete.
3816 (ALL_NON_EXITED_THREADS): New macro.
3817 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3818 instead of ALL_THREADS.
3819 * infrun.c (find_thread_needs_step_over)
3820 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3821 instead of ALL_THREADS.
3822 * record-btrace.c (record_btrace_open)
3823 (record_btrace_stop_recording, record_btrace_close)
3824 (record_btrace_is_replaying, record_btrace_resume)
3825 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3826 * remote.c (append_pending_thread_resumptions): Likewise.
3827 * thread.c (thread_apply_all_command): Likewise.
3829 2014-06-19 Gary Benson <gbenson@redhat.com>
3831 * i386-nat.c (i386_stopped_by_watchpoint):
3832 Use i386_dr_stopped_by_watchpoint.
3833 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3834 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3836 2014-06-19 Gary Benson <gbenson@redhat.com>
3838 * nat/i386-dregs.c: New file.
3839 * Makefile.in (i386-dregs.o): New rule.
3840 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3841 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3842 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3843 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3844 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3845 * config/i386/go32.mh (NATDEPFILES): Likewise.
3846 * config/i386/linux.mh (NATDEPFILES): Likewise.
3847 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3848 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3849 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3850 * i386-nat.h (debug_hw_points): New declaration.
3851 * i386-nat.c (breakpoint.h): Remove include.
3852 (command.h): Likewise.
3853 (target.h): Likewise.
3854 (gdb_assert.h): Likewise.
3855 (debug_hw_points): Made nonstatic.
3856 (debug_printf): Now in i386-dregs.c.
3857 (TARGET_HAS_DR_LEN_8): Likewise.
3858 (DR_CONTROL_SHIFT): Likewise.
3859 (DR_CONTROL_SIZE): Likewise.
3860 (DR_RW_EXECUTE): Likewise.
3861 (DR_RW_WRITE): Likewise.
3862 (DR_RW_READ): Likewise.
3863 (DR_RW_IORW): Likewise.
3864 (DR_LEN_1): Likewise.
3865 (DR_LEN_2): Likewise.
3866 (DR_LEN_4): Likewise.
3867 (DR_LEN_8): Likewise.
3868 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3869 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3870 (DR_ENABLE_SIZE): Likewise.
3871 (DR_LOCAL_SLOWDOWN): Likewise.
3872 (DR_GLOBAL_SLOWDOWN): Likewise.
3873 (DR_CONTROL_RESERVED): Likewise.
3874 (I386_DR_CONTROL_MASK): Likewise.
3875 (I386_DR_VACANT): Likewise.
3876 (I386_DR_LOCAL_ENABLE): Likewise.
3877 (I386_DR_GLOBAL_ENABLE): Likewise.
3878 (I386_DR_DISABLE): Likewise.
3879 (I386_DR_SET_RW_LEN): Likewise.
3880 (I386_DR_GET_RW_LEN): Likewise.
3881 (I386_DR_WATCH_HIT): Likewise.
3882 (i386_wp_op_t): Likewise.
3883 (i386_show_dr): Likewise.
3884 (i386_length_and_rw_bits): Likewise.
3885 (i386_insert_aligned_watchpoint): Likewise.
3886 (i386_remove_aligned_watchpoint): Likewise.
3887 (i386_handle_nonaligned_watchpoint): Likewise.
3888 (i386_update_inferior_debug_regs): Likewise.
3889 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3890 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3891 (i386_region_ok_for_watchpoint):
3892 Use i386_dr_region_ok_for_watchpoint.
3893 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3895 2014-06-19 Gary Benson <gbenson@redhat.com>
3897 * i386-nat.c (i386_insert_hw_breakpoint): Use
3898 i386_insert_watchpoint.
3899 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3901 2014-06-19 Gary Benson <gbenson@redhat.com>
3903 * i386-nat.c (i386_dr_show): Renamed to
3904 i386_show_dr and made static. All uses updated.
3905 (i386_dr_length_and_rw_bits): Renamed to
3906 i386_length_and_rw_bits and made static.
3908 (i386_dr_insert_aligned_watchpoint): Renamed to
3909 i386_insert_aligned_watchpoint and made static.
3911 (i386_dr_remove_aligned_watchpoint): Renamed to
3912 i386_remove_aligned_watchpoint and made static.
3914 (i386_dr_update_inferior_debug_regs): Renamed to
3915 i386_update_inferior_debug_regs and made static.
3917 * nat/i386-dregs.h (i386_dr_show): Removed.
3918 (i386_dr_length_and_rw_bits): Likewise.
3919 (i386_dr_insert_aligned_watchpoint): Likewise.
3920 (i386_dr_remove_aligned_watchpoint): Likewise.
3921 (i386_dr_update_inferior_debug_regs): Likewise.
3923 2014-06-19 Gary Benson <gbenson@redhat.com>
3925 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3926 * configure: Regenerate.
3927 * config.in: Likewise.
3928 * main.c (signal.h): New include.
3929 (setup_alternate_signal_stack): New function.
3930 (captured_main): Call the above.
3931 * cp-support.c (signal.h): New include.
3932 (catch_demangler_crashes): New flag.
3933 (SIGJMP_BUF): New define.
3934 (SIGSETJMP): Likewise.
3935 (SIGLONGJMP): Likewise.
3936 (gdb_demangle_jmp_buf): New static global.
3937 (gdb_demangle_attempt_core_dump): Likewise.
3938 (gdb_demangle_signal_handler): New function.
3939 (gdb_demangle): If catch_demangler_crashes is set, install the
3940 above signal handler before calling bfd_demangle, and restore
3941 the original signal handler afterwards. Display the offending
3942 symbol and call demangler_warning the first time a segmentation
3944 (_initialize_cp_support): New maint set/show command.
3946 2014-06-19 Gary Benson <gbenson@redhat.com>
3948 * utils.h (resource_limit_kind): New enum.
3949 (can_dump_core): New declaration.
3950 (warn_cant_dump_core): Likewise.
3951 (dump_core): Likewise.
3952 * utils.c (dump_core): Made nonstatic. Added new
3953 parameter "limit_kind".
3954 (can_dump_core): Made nonstatic. Moved printing code to...
3955 (warn_cant_dump_core): New function.
3956 (can_dump_core_warn): Likewise.
3957 (internal_vproblem): Replace calls to can_dump_core with
3958 calls to can_dump_core_warn. Supply new argument to each.
3960 2014-06-19 Gary Benson <gbenson@redhat.com>
3962 * utils.h (demangler_vwarning): New declaration.
3963 (demangler_warning): Likewise.
3964 * utils.c (struct internal_problem)
3965 <user_settable_should_quit>: New field.
3966 <user_settable_should_dump_core>: Likewise
3967 (internal_error_problem): Add values for above new fields.
3968 (internal_warning_problem): Likewise.
3969 (demangler_warning_problem): New static global.
3970 (demangler_vwarning): New function.
3971 (demangler_warning): Likewise.
3972 (add_internal_problem_command): Selectively add commands.
3973 (_initialize_utils): New internal problem command.
3974 * maint.c (maintenance_demangler_warning): New function.
3975 (_initialize_maint_cmds): New command.
3977 2014-06-18 Tom Tromey <tromey@redhat.com>
3979 * f-valprint.c (info_common_command_for_block): Update.
3980 * symtab.h (struct general_symbol_info) <common_block>: Now
3983 2014-06-18 Tom Tromey <tromey@redhat.com>
3985 * symtab.h (struct symtab) <blockvector>: Now const.
3986 * ada-lang.c (ada_add_global_exceptions): Update.
3987 * buildsym.c (augment_type_symtab): Update.
3988 * dwarf2read.c (dw2_lookup_symbol): Update.
3989 * jit.c (finalize_symtab): Update.
3990 * jv-lang.c (add_class_symtab_symbol): Update.
3991 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3993 * objfiles.c (objfile_relocate1): Update.
3994 * psymtab.c (lookup_symbol_aux_psymtabs)
3995 (maintenance_check_psymtabs): Update.
3996 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3998 * spu-tdep.c (spu_catch_start): Update.
3999 * symmisc.c (dump_symtab_1): Update.
4000 * symtab.c (lookup_global_symbol_from_objfile)
4001 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4002 (basic_lookup_transparent_type_quick)
4003 (basic_lookup_transparent_type, find_pc_sect_symtab)
4004 (find_pc_sect_line, search_symbols): Update.
4005 * block.c (find_block_in_blockvector): Make "bl" const.
4006 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4008 (blockvector_contains_pc): Make "bv" const.
4009 (block_for_pc_sect): Update.
4010 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4011 (blockvector_contains_pc): Update.
4012 * breakpoint.c (resolve_sal_pc): Update.
4013 * inline-frame.c (block_starting_point_at): Update.
4015 2014-06-18 Tom Tromey <tromey@redhat.com>
4017 * completer.c (complete_line): Make "line_buffer" const.
4018 * completer.h (complete_line): Update.
4020 2014-06-18 Tom Tromey <tromey@redhat.com>
4022 * symtab.c (add_macro_name): Remove unneeded cast.
4024 2014-06-18 Tom Tromey <tromey@redhat.com>
4026 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4027 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4029 2014-06-18 Tom Tromey <tromey@redhat.com>
4031 * probe.c (info_probes_for_ops): Make "arg" const.
4032 * probe.h (info_probes_for_ops): Update.
4034 2014-06-18 Tom Tromey <tromey@redhat.com>
4036 * varobj.c (varobj_create): Update.
4037 * valops.c (value_of_this): Update.
4038 * tracepoint.c (add_local_symbols, scope_info): Update.
4039 * symtab.h (struct general_symbol_info) <block>: Now const.
4040 * symtab.c (skip_prologue_sal)
4041 (default_make_symbol_completion_list_break_on)
4042 (skip_prologue_using_sal): Update.
4043 * stack.h (iterate_over_block_locals)
4044 (iterate_over_block_local_vars): Update.
4045 * stack.c (print_frame_args): Update.
4046 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4048 (get_selected_block): Make return type const.
4049 * python/py-frame.c (frapy_block): Update.
4050 * python/py-block.c (gdbpy_block_for_pc): Update.
4051 * p-exp.y (%union) <bval>: Now const.
4052 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4053 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4054 * m2-exp.y (%union) <bval>: Now const.
4055 * linespec.c (get_current_search_block): Make return type const.
4056 (create_sals_line_offset, find_label_symbols): Update.
4057 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4059 (block_starting_point_at): Make "block" const.
4060 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4061 (check_exception_resume): Update.
4062 * guile/scm-frame.c (gdbscm_frame_block): Update.
4063 * guile/scm-block.c (gdbscm_lookup_block): Update.
4064 * frame.h (get_frame_block): Update.
4065 (get_selected_block): Make return type const.
4066 * frame.c (frame_id_inner): Update.
4067 * f-valprint.c (info_common_command_for_block)
4068 (info_common_command): Update.
4069 * dwarf2loc.c (dwarf2_find_location_expression)
4070 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4071 (locexpr_describe_location_piece): Update.
4072 * c-exp.y (%union) <bval>: Now const.
4073 * breakpoint.c (resolve_sal_pc): Update.
4074 * blockframe.c (get_frame_block):Make return type const.
4075 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4076 (block_innermost_frame): Update.
4077 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4078 (block_for_pc, block_for_pc_sect): Update.
4079 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4081 (block_for_pc_sect, block_for_pc): Make return type const.
4082 * ax-gdb.c (gen_expr): Update.
4083 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4084 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4085 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4086 (ada_read_var_value): Update.
4087 * ada-exp.y (struct name_info) <block>: Now const.
4089 (block_lookup): Constify.
4091 2014-06-18 Gary Benson <gbenson@redhat.com>
4093 * nat/i386-dregs.h: New file.
4094 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4095 * i386-nat.h (i386-dregs.h): New include.
4096 (DR_FIRSTADDR): Now in i386-dregs.h.
4097 (DR_LASTADDR): Likewise.
4098 (DR_NADDR): Likewise.
4099 (DR_STATUS): Likewise.
4100 (DR_CONTROL): Likewise.
4101 (i386_debug_reg_state): Likewise.
4102 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4104 2014-06-18 Don Breazeal <donb@codesourcery.com>
4106 * breakpoint.c (set_longjmp_breakpoint): Call
4107 momentary_breakpoint_from_master with additional argument.
4108 (set_longjmp_breakpoint_for_call_dummy): Call
4109 momentary_breakpoint_from_master with additional argument.
4110 (set_std_terminate_breakpoint): Call
4111 momentary_breakpoint_from_master with additional argument.
4112 (momentary_breakpoint_from_master): Add argument to function
4113 definition and use it to initialize structure member flag.
4114 (clone_momentary_breakpoint): Call
4115 momentary_breakpoint_from_master with additional argument.
4116 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4117 member flags set in momentary_breakpoint_from_master.
4119 2014-06-18 Gary Benson <gbenson@redhat.com>
4121 * i386-nat.c (i386_show_dr): Renamed to
4122 i386_dr_show and made nonstatic. All uses updated.
4123 (i386_length_and_rw_bits): Renamed to
4124 i386_dr_length_and_rw_bits and made nonstatic.
4126 (i386_insert_aligned_watchpoint): Renamed to
4127 i386_dr_insert_aligned_watchpoint and made nonstatic.
4129 (i386_remove_aligned_watchpoint): Renamed to
4130 i386_dr_remove_aligned_watchpoint and made nonstatic.
4132 (i386_update_inferior_debug_regs): Renamed to
4133 i386_dr_update_inferior_debug_regs and made nonstatic.
4136 2014-06-18 Gary Benson <gbenson@redhat.com>
4138 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4139 (i386_dr_low_can_set_control): Likewise.
4140 (i386_dr_low_set_addr): Likewise.
4141 (i386_dr_low_set_control): Likewise.
4142 (i386_dr_low_get_addr): Likewise.
4143 (i386_dr_low_get_status): Likewise.
4144 (i386_dr_low_get_control): Likewise.
4145 (i386_insert_aligned_watchpoint): Use new macros.
4146 (i386_update_inferior_debug_regs): Likewise.
4147 (i386_stopped_data_address): Likewise.
4149 2014-06-18 Gary Benson <gbenson@redhat.com>
4151 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4152 New parameter. All uses updated.
4154 2014-06-18 Gary Benson <gbenson@redhat.com>
4156 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4159 2014-06-18 Gary Benson <gbenson@redhat.com>
4161 * i386-nat.c (debug_printf): New macro.
4162 (i386_get_debug_register_length): Likewise.
4163 (TARGET_HAS_DR_LEN_8): Use above macro.
4164 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4165 and printf_unfiltered. Use phex to format values.
4167 2014-06-18 Gary Benson <gbenson@redhat.com>
4169 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4172 2014-06-18 Gary Benson <gbenson@redhat.com>
4174 * i386-nat.c: Comment changes.
4176 2014-06-18 Gary Benson <gbenson@redhat.com>
4178 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4180 2014-06-18 Gary Benson <gbenson@redhat.com>
4182 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4183 (i386_insert_aligned_watchpoint): Likewise.
4184 (i386_remove_aligned_watchpoint): Likewise.
4185 (i386_handle_nonaligned_watchpoint): Likewise.
4187 2014-06-18 Gary Benson <gbenson@redhat.com>
4189 * i386-nat.c: Whitespace changes.
4191 2014-06-17 Samuel Bronson <naesten@gmail.com>
4193 * MAINTAINERS: Update Roland McGrath's email address.
4194 Thanks to Sergio Durigan Junior for pointing out that he left
4195 Red Hat a while ago, and giving me a current address.
4197 2014-06-17 Tom Tromey <tromey@redhat.com>
4199 * utils.h (savestring): Remove declaration.
4201 2014-06-17 Tom Tromey <tromey@redhat.com>
4203 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4205 2014-06-16 Keith Seitz <keiths@redhat.com>
4208 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4209 to update the varobj if inferior_ptid is null_ptid.
4211 2014-06-16 Tom Tromey <tromey@redhat.com>
4213 * target.h (struct target_ops) <to_info_proc>: Make parameter
4215 (target_info_proc): Update.
4216 * target.c (target_info_proc): Make "args" const.
4217 * procfs.c (procfs_info_proc): Update.
4218 * linux-tdep.c (linux_info_proc): Update.
4219 (linux_core_info_proc_mappings): Make "args" const.
4220 (linux_core_info_proc): Update.
4221 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4222 * gdbarch.c: Rebuild.
4223 * gdbarch.h: Rebuild.
4224 * corelow.c (core_info_proc): Update.
4226 2014-06-16 Tom Tromey <tromey@redhat.com>
4228 * target.h (struct target_ops) <to_disconnect>: Make parameter
4230 (target_disconnect): Update.
4231 * target.c (target_disconnect): Make "args" const.
4232 * target-delegates.c: Rebuild.
4233 * remote.c (remote_disconnect): Update.
4234 * record.h (record_disconnect): Update.
4235 * record.c (record_disconnect): Update.
4236 * inf-child.c (inf_child_disconnect): Update.
4238 2014-06-16 Tom Tromey <tromey@redhat.com>
4240 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4241 * target.c (debug_to_rcmd, default_rcmd): Update.
4242 * target-delegates.c: Rebuild.
4243 * remote.c (remote_rcmd): Update.
4244 * monitor.c (monitor_rcmd): Update.
4246 2014-06-16 Pedro Alves <palves@redhat.com>
4248 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4249 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4250 have OBJF_SHARED set.
4251 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4252 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4253 instead of OBJF_USERLOADED.
4254 * objfiles.h (OBJF_SHARED): Update comment.
4255 (userloaded_objfile_contains_address_p): Rename to ...
4256 (shared_objfile_contains_address_p): ... this, and update
4258 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4260 (remove_symbol_file_command): Skip objfiles that don't have
4263 2014-06-16 Tom Tromey <tromey@redhat.com>
4265 * minsyms.h (prim_record_minimal_symbol)
4266 (prim_record_minimal_symbol_and_info): Update comments.
4268 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4270 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4271 or --without-guile, according to how GDB was built.
4273 2014-06-13 Tom Tromey <tromey@redhat.com>
4275 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4277 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4279 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4281 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4282 help_list.Pass all_commands, not -1, to help_list.
4283 * cli/cli-dump.c (dump_command, append_command)
4284 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4285 (binary_dump_command, binary_append_command): Pass all_commands,
4286 not -1, to help_list.
4287 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4289 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4291 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4293 * top.c (set_history): Pass all_commands, not -1, to help_list.
4294 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4295 all_commands, not -1, to help_list.
4296 * symfile.c (overlay_command): Pass all_commands, not -1, to
4298 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4300 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4302 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4304 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4305 not -1, to help_list.
4306 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4307 not -1, to help_list.
4308 * maint.c (maintenance_command, maintenance_info_command)
4309 (maintenance_print_command, maintenance_set_cmd): Pass
4310 all_commands, not -1, to help_list.
4311 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4313 * language.c (set_check): Pass all_commands, not -1, to help_list.
4314 * infcmd.c (unset_command): Pass all_commands, not -1, to
4316 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4318 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4320 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4322 * breakpoint.c (save_command): Pass all_commands, not -1, to
4324 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4325 all_commands, not -1, to help_list.
4327 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4329 * regcache.c (struct register_to_invalidate): New structure.
4330 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4332 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4334 2014-06-12 Yao Qi <yao@codesourcery.com>
4336 * varobj.c (varobj_get_num_children): Call
4337 varobj_is_dynamic_p.
4338 (varobj_list_children): Likewise.
4339 (varobj_update): Likewise. Update comments.
4341 2014-06-12 Yao Qi <yao@codesourcery.com>
4343 * varobj.c (varobj_pretty_printed_p): Rename to ...
4344 (varobj_is_dynamic_p): ... this. New function.
4345 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4346 (varobj_is_dynamic_p): Declare.
4347 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4348 (mi_print_value_p, varobj_update_one): Likewise.
4350 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4351 Yao Qi <yao@codesourcery.com>
4353 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4354 (varobj_get_iterator): Wrap up code for pretty-printer by
4355 "#if HAVE_PYTHON" and "#endif".
4356 (update_dynamic_varobj_children): Likewise.
4358 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4359 Yao Qi <yao@codesourcery.com>
4361 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4362 gdb_python_initialized is false. Move some code from varobj.c.
4363 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4364 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4365 (struct varobj_item): Moved to varobj-iter.h".
4366 (varobj_clear_saved_item): New function.
4367 (update_dynamic_varobj_children): Move python-related code to
4369 (free_variable): Call varobj_clear_saved_item and
4372 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4373 Yao Qi <yao@codesourcery.com>
4375 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4376 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4377 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4378 (py-varobj.o): New rule.
4379 * python/py-varobj.c: New file.
4380 * python/python-internal.h (py_varobj_get_iterator): Declare.
4381 * varobj-iter.h: New file.
4382 * varobj.c: Include "varobj-iter.h"
4383 (struct varobj) <child_iter>: Change its type from "PyObject *"
4384 to "struct varobj_iter *".
4385 <saved_item>: Likewise.
4386 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4387 [HAVE_PYTHON] (varobj_get_iterator): New function.
4388 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4389 python-specific code to python/py-varobj.c.
4390 (install_visualizer): Call varobj_iter_delete instead of
4392 * varobj.h (varobj_ensure_python_env): Declare.
4394 2014-06-12 Yao Qi <yao@codesourcery.com>
4396 * varobj.c (struct varobj_item): New structure.
4397 (create_child_with_value): Update declaration.
4398 (varobj_add_child): Replace arguments 'name' and 'value' with
4399 'item'. All callers updated.
4400 (install_dynamic_child): Likewise.
4401 (update_dynamic_varobj_children): Likewise.
4402 (varobj_add_child): Likewise.
4403 (create_child_with_value): Likewise.
4405 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4407 * NEWS: Create a new section for the next release branch.
4408 Rename the section of the current branch, now that it has
4411 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4413 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4414 * version.in: Bump version to 7.8.50.DATE-cvs.
4416 2014-06-11 Pedro Alves <palves@redhat.com>
4419 * ser-mingw.c (net_windows_socket_check_pending): New function.
4420 (net_windows_select_thread): Ignore spurious wakeups. Use
4421 net_windows_socket_check_pending.
4422 (net_windows_wait_handle): Check for pending events with
4423 ioctlsocket, through net_windows_socket_check_pending, instead of
4424 checking the socket's event.
4426 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4428 * python/python-internal.h (gdb_PyObject_GetAttrString)
4429 (gdb_PyObject_HasAttrString): New inline function definitions.
4430 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4431 char * of the second argument to PyObject_GetAttrString.
4433 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4435 * serial.c (serial_write): Fix index of character to be printed
4436 in call to serial_logchar when serial debug traces are enabled.
4438 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4440 * gdbtypes (resolve_dynamic_range): Add function description.
4442 2014-06-09 Pedro Alves <palves@redhat.com>
4444 * linux-nat.c (linux_child_follow_fork): Initialize status with
4445 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4446 inner block. Only pass the signal to PTRACE_DETACH if in pass
4449 2014-06-09 Gary Benson <gbenson@redhat.com>
4451 * common/signals.c (gdb_signal_from_host): Reorder to separate
4452 the always-available ANSI-standard signals from the signals that
4454 (do_gdb_signal_to_host): Likewise.
4455 * proc-events.c (signal_table): Likewise.
4457 2014-06-08 Hui Zhu <hui@codesourcery.com>
4459 * common/linux-ptrace.c (linux_disable_event_reporting): New
4461 * common/linux-ptrace.h (linux_disable_event_reporting): New
4463 * linux-nat.c (linux_child_follow_fork): Do a single step before
4466 2014-06-07 Keith Seitz <keiths@redhat.com>
4470 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4471 from symbol_matches_domain in symtab.c. All local callers
4472 of symbol_matches_domain updated.
4473 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4474 search STRUCT_DOMAIN.
4475 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4476 independently. standard_lookup will do that automatically.
4477 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4478 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4479 (cp_lookup_symbol_in_namespace): Likewise.
4480 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4481 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4482 may return a STRUCT_DOMAIN match.
4483 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4484 * cp-support.c: Include language.h.
4485 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4487 * psymtab.c (match_partial_symbol): Compare the requested
4488 domain with the symbol's domain directly.
4489 (lookup_partial_symbol): Likewise.
4490 * symtab.c (lookup_symbol_in_language): Explain when/why
4491 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4492 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4493 appropriate languages.
4494 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4495 and moved to ada-lang.c
4496 (lookup_block_symbol): Explain that this function only returns
4497 symbol matching the requested DOMAIN.
4498 Compare the requested domain with the symbol's domain directly.
4499 (iterate_over_symbols): Compare the requested domain with the
4500 symbol's domain directly.
4501 * symtab.h (symbol_matches_domain): Remove.
4503 2014-06-06 Doug Evans <xdje42@gmail.com>
4505 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4506 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4507 (gdbscm_guile_version_is_at_least): Declare.
4508 (gdbscm_scm_string_to_int): Declare.
4509 * guile/guile.c (gdbscm_guile_major_version): New global.
4510 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4511 (guile_datadir): New static global.
4512 (gdbscm_guile_data_directory): New function.
4513 (initialize_scheme_side): Update.
4514 (misc_guile_functions): Add guile-data-directory.
4515 (initialize_gdb_module): Fetch guile version number.
4516 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4517 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4518 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4519 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4521 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4522 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4523 * guile/scm-value.c (gdbscm_value_to_string): Only call
4524 scm_port_conversion_strategy if Guile version >= 2.0.6.
4526 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4528 * main.c (print_gdb_help): Add -q and --silent.
4530 2014-06-06 Gary Benson <gbenson@redhat.com>
4532 * common/signals.c: Remove preprocessor conditionals for
4533 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4534 SIGSEGV and SIGTERM.
4535 * proc-events.c: Likewise.
4537 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4539 * symfile.c (symfile_free_objfile): Remove restriction to
4541 * symfile-mem.c (symbol_file_add_from_memory): Call
4542 add_target_sections_of_objfile.
4544 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4546 * guile/scm-value.c (gdbscm_history_append_x): Use
4547 'vlscm_get_value_smob_arg_unsafe' instead of
4548 'vlscm_scm_to_value'.
4550 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4553 * utils.c (printchar): Don't escape at all if quoter is NUL.
4554 Update function documentation to clarify effect of parameter
4556 * remote.c (escape_buffer): Pass '\\' as the quoter to
4557 fputstrn_unfiltered.
4558 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4559 generate the output.
4560 (mi_solib_unloaded): Same.
4562 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4564 * development.sh: Delete.
4565 * Makefile.in (config.status): Adjust dependency on development.sh.
4566 * configure.ac: Adjust development.sh source call.
4567 * configure: Regenerate.
4569 2014-06-04 Doug Evans <xdje42@gmail.com>
4571 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4572 is_scheme_bkpt, spec.
4573 (bpscm_make_breakpoint_smob): Initialize new members.
4574 (gdbscm_create_breakpoint_x): Split into two ...
4575 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4576 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4577 (scheme_function breakpoint_functions): Update.
4578 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4579 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4580 register-breakpoint!.
4582 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4585 * mem-break.c (z_type_supported): Return zero if
4586 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4588 2014-06-04 Tom Tromey <tromey@redhat.com>
4590 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4591 value_from_contents_and_address_unresolved.
4592 (ada_template_to_fixed_record_type_1): Likewise.
4593 (ada_which_variant_applies): Likewise.
4594 * value.h (value_from_contents_and_address_unresolved): Declare.
4595 * value.c (value_from_contents_and_address_unresolved): New
4597 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4598 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4599 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4601 2014-06-04 Tom Tromey <tromey@redhat.com>
4603 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4605 2014-06-04 Tom Tromey <tromey@redhat.com>
4607 * procfs.c (procfs_attach): Make "args" const.
4608 * windows-nat.c (windows_attach): Make "args" const.
4609 * nto-procfs.c (procfs_attach): Make "args" const.
4610 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4611 * go32-nat.c (go32_attach): Make "args" const.
4612 * gnu-nat.c (gnu_attach): Make "args" const.
4613 * darwin-nat.c (darwin_attach): Make "args" const.
4614 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4615 * linux-nat.c (linux_nat_attach): Make "args" const.
4616 * remote.c (extended_remote_attach_1, extended_remote_attach):
4618 * target.h (struct target_ops) <to_attach>: Make "args" const.
4619 (find_default_attach): Likewise.
4620 * utils.c (parse_pid_to_attach): Make "args" const.
4621 * utils.h (parse_pid_to_attach): Update.
4623 2014-06-04 Tom Tromey <tromey@redhat.com>
4625 * target-delegates.c: Rebuild.
4626 * target.c (default_thread_address_space): New function.
4627 (target_thread_address_space): Simplify.
4628 * target.h (struct target_ops) <to_thread_address_space>: Add
4629 TARGET_DEFAULT_FUNC.
4631 2014-06-04 Doug Evans <xdje42@gmail.com>
4633 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4635 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4637 * record-btrace.c: Include event-loop.h and inf-loop.h.
4638 (record_btrace_resume_exec_dir)
4639 (record_btrace_async_inferior_event_handler)
4640 (record_btrace_handle_async_inferior_event): New.
4641 (record_btrace_open): Create async event handler.
4642 (record_btrace_close): Delete async event handler.
4643 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4644 Mark async event handler.
4645 (record_btrace_execution_direction): New.
4646 (init_record_btrace_ops): Initialize to_execution_direction.
4648 2014-06-03 Doug Evans <xdje42@gmail.com>
4650 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4651 (gdbscm_make_parameter): Ditto.
4653 2014-06-03 Doug Evans <dje@google.com>
4655 * exec.c (exec_close_1): Call clear_section_table instead of
4656 resize_section_table.
4657 (clear_section_table): New function.
4658 (resize_section_table): Make static. Rename arg num_added to
4660 * exec.h (clear_section_table): Declare.
4661 (resize_section_table): Delete.
4662 * progspace.c (release_program_space): Call clear_section_table
4663 instead of resize_section_table.
4665 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4667 * NEWS (Python Scripting): Add entry about the new xmethods
4670 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4672 * python/py-xmethods.c: New file.
4673 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4674 (objfpy_dealloc): XDECREF on the new xmethods field.
4675 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4677 (objfpy_get_xmethods): New function.
4678 (objfile_getset): New entry 'xmethods'.
4679 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4680 (pspy_dealloc): XDECREF on the new xmethods field.
4681 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4683 (pspy_get_xmethods): New function.
4684 (pspace_getset): New entry 'xmethods'.
4685 * python/python-internal.h: Add declarations for new functions.
4686 * python/python.c (_initialize_python): Invoke
4687 gdbpy_initialize_xmethods.
4688 * python/lib/gdb/__init__.py (xmethods): New
4690 * python/lib/gdb/xmethod.py: New file.
4691 * python/lib/gdb/command/xmethods.py: New file.
4693 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4695 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4696 best match method returned by find_overload_match is an xmethod.
4697 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4698 the best matching operator returned by find_overload_match is an
4700 * valops.c: #include "extension.h".
4701 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4702 Return void. The list of matching source methods is returned in
4703 "fn_list" and a vector of matching debug method workers is
4704 returned in "xm_worker_vec". Update all callers.
4705 (value_find_oload_method_list): Likewise.
4706 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4707 non-NULL, then the index of the best matching method in this
4708 vector is returned. Update all callers.
4709 (find_overload_match): Include xmethods while performing overload
4712 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4714 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4715 * extension-priv.h (struct extension_language_ops): Add the
4717 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4718 get_matching_xmethod_workers, get_xmethod_argtypes,
4719 invoke_xmethod, free_xmethod_worker,
4720 free_xmethod_worker_vec): New functions.
4721 * extension.h: #include "common/vec.h".
4722 New function declarations.
4723 (struct xmethod_worker): New struct.
4724 (VEC (xmethod_worker_ptr)): New vector type.
4725 (xmethod_worker_ptr): New typedef.
4726 (xmethod_worker_vec): Likewise.
4727 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4729 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4730 (struct builtin_type): New field "xmethod".
4731 * valarith.c (value_ptradd): Assert that the value argument is not
4733 * valops.c (value_must_coerce_to_target): Return 0 for
4734 lval_xcallable values.
4735 * value.c (struct value): New field XM_WORKER in the field
4737 (value_address, value_raw_address): Return 0 for lval_xcallable
4739 (set_value_address): Assert that the value is not an
4741 (value_free): Free the associated xmethod worker when freeing
4742 lval_xcallable values.
4743 (set_value_component_location): Assert that the WHOLE value is not
4745 (value_of_xmethod, call_xmethod): New functions.
4746 * value.h: Declare "struct xmethod_worker".
4747 Declare new functions value_of_xmethod, call_xmethod.
4749 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4750 Pedro Alves <palves@redhat.com>
4752 PR breakpoints/17000
4753 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4754 New function, extracted from software_breakpoint_inserted_here_p.
4755 (software_breakpoint_inserted_here_p): Replace factored out code
4756 by call to find_non_raw_software_breakpoint_inserted_here.
4757 (bp_target_info_copy_insertion_state): New function.
4758 (bkpt_insert_location): Handle the case of a single-step
4759 breakpoint already inserted at the same address.
4760 (bkpt_remove_location): Handle the case of a single-step
4761 breakpoint still inserted at the same address.
4762 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4763 breakpoint already inserted at the same address.
4764 (deprecated_remove_raw_breakpoint): Handle the case of a
4765 non-raw breakpoint still inserted at the same address.
4766 (find_single_step_breakpoint): New function, extracted from
4767 single_step_breakpoint_inserted_here_p.
4768 (find_single_step_breakpoint): New function,
4769 factored out from single_step_breakpoint_inserted_here_p.
4770 (single_step_breakpoint_inserted_here_p): Reimplement.
4772 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4774 Pushed by Joel Brobecker <brobecker@adacore.com>
4775 * source.c (show_substitute_path_command): Fix display of matching
4778 2014-06-03 Gary Benson <gbenson@redhat.com>
4780 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4782 2014-06-02 Doug Evans <xdje42@gmail.com>
4784 Add parameter support for Guile.
4785 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4786 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4787 (scm-param.o): New rule.
4788 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4789 (gdbscm_misc_error): Declare.
4790 (gdbscm_canonicalize_command_name): Declare.
4791 (gdbscm_scm_to_host_string): Declare.
4792 (gdbscm_scm_from_host_string): Declare.
4793 (gdbscm_initialize_parameters): Declare.
4794 * guile/guile.c (initialize_gdb_module): Call
4795 gdbscm_initialize_parameters.
4796 * guile/lib/gdb.scm: Export parameter symbols.
4797 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4798 cmdscm_canonicalize_name and made public. All callers updated.
4799 * guile/scm-exception.c (gdbscm_misc_error): New function.
4800 * guile/scm-param.c: New file.
4801 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4802 (gdbscm_scm_to_host_string): New function.
4803 (gdbscm_scm_from_host_string): New function.
4804 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4806 2014-06-02 Doug Evans <xdje42@gmail.com>
4808 Add command support for Guile.
4809 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4810 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4811 (scm-cmd.o): New rule.
4812 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4813 (gdbscm_user_error_p): Declare.
4814 (gdbscm_parse_command_name): Declare.
4815 (gdbscm_valid_command_class_p): Declare.
4816 (gdbscm_initialize_commands): Declare.
4817 * guile/guile.c (initialize_gdb_module): Call
4818 gdbscm_initialize_commands.
4819 * guile/lib/gdb.scm: Export command symbols.
4820 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4821 (throw-user-error): New function.
4822 * guile/scm-cmd.c: New file.
4823 * guile/scm-exception.c (user_error_symbol): New static global.
4824 (gdbscm_user_error_p): New function.
4825 (gdbscm_initialize_exceptions): Set user_error_symbol.
4826 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4828 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4830 * top.c (command_loop): Handle comments here...
4831 (command_line_input): ... not here.
4833 2014-06-02 Doug Evans <xdje42@gmail.com>
4835 Add progspace support for Guile.
4836 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4837 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4838 (scm-progspace.o): New rule.
4839 * guile/guile-internal.h (pspace_smob): New typedef.
4840 (psscm_pspace_smob_pretty_printers): Declare.
4841 (psscm_pspace_smob_from_pspace): Declare.
4842 (psscm_scm_from_pspace): Declare.
4843 * guile/guile.c (initialize_gdb_module): Call
4844 gdbscm_initialize_pspaces.
4845 * guile/lib/gdb.scm: Export progspace symbols.
4846 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4848 (append-pretty-printer!): Ditto.
4849 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4851 * guile/scm-progspace.c: New file.
4853 2014-06-03 Alan Modra <amodra@gmail.com>
4855 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4856 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4858 2014-06-02 Doug Evans <dje@google.com>
4860 Add support for skeletonless type units.
4861 * dwarf2read.c (struct dwarf2_per_objfile): New member
4862 n_allocated_type_units.
4863 (struct dwarf2_per_objfile) <tu_stats>: New member
4864 nr_all_type_units_reallocs.
4865 (create_signatured_type_table_from_index): Initialize
4866 n_allocated_type_units
4867 (create_all_type_units): Ditto.
4868 (add_type_unit): Move up in file. New arg slot.
4869 All callers updated. Increase space for all_type_units more
4871 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4872 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4873 (lookup_dwp_signatured_type): Ditto.
4874 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4875 All callers updated.
4876 (build_type_psymtabs_1): Leave type_unit_groups as
4877 NULL if no TUs present.
4878 (print_tu_stats): New function.
4879 (process_skeletonless_type_unit): New function.
4880 (process_dwo_file_for_skeletonless_type_units): New
4882 (process_skeletonless_type_units): New function.
4883 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4884 Call print tu_stats if debugging enabled.
4886 2014-06-02 Pedro Alves <palves@redhat.com>
4888 * breakpoint.c (build_target_command_list): Don't build a command
4889 list if we have any duplicate location that isn't a dprintf.
4891 2014-06-02 Pedro Alves <palves@redhat.com>
4893 * breakpoint.c (dprintf_breakpoint_hit): New function.
4894 (initialize_breakpoint_ops): Install it as dprintf's
4895 breakpoint_hit method.
4897 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4899 * source.c (substitute_path_rule_matches): Simplify using
4900 filename_ncmp instead of FILENAME_CMP.
4902 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4904 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4906 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4908 * configure.ac: When Guile is available, check for the
4909 availability of 'scm_new_smob'.
4910 * configure, config.h.in: Regenerate.
4911 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4914 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4916 * frame.c (struct frame_info): Add stop_string field.
4917 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4918 (get_prev_frame_always): Old content moved into
4919 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4920 TRY_CATCH, handle MEMORY_ERROR exceptions.
4921 (frame_stop_reason_string): New function definition.
4922 * frame.h (unwind_stop_reason_to_string): Extend comment to
4923 mention frame_stop_reason_string.
4924 (frame_stop_reason_string): New function declaration.
4925 * stack.c (frame_info): Switch to frame_stop_reason_string.
4926 (backtrace_command_1): Switch to frame_stop_reason_string.
4927 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4928 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4929 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4931 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4933 * frame.c (frame_stop_reason_string): Rename to ...
4934 (unwind_stop_reason_to_string): this.
4935 * frame.h (frame_stop_reason_string): Rename to ...
4936 (unwind_stop_reason_to_string): this.
4937 * stack.c (frame_info): Update call to frame_stop_reason_string.
4938 (backtrace_command_1): Likewise.
4939 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4940 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4942 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4944 * frame.c (remove_prev_frame): New function.
4945 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4948 2014-05-29 Pedro Alves <palves@redhat.com>
4950 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4951 and make it const. When a single-step decays to a continue,
4952 clear 'step', not 'hw_step'. Pass whether the caller wanted
4953 to step to user_visible_resume_ptid, not what we ask the
4956 2014-05-29 Pedro Alves <palves@redhat.com>
4958 * infrun.c (process_event_stop_test, handle_step_into_function)
4959 (handle_step_into_function_backward): Adjust.
4960 Don't set the even thread's stop_step and call stop_waiting before
4961 calling end_stepping_range. Instead do that ...
4962 (end_stepping_range): ... here. Take an ecs pointer parameter.
4964 2014-05-29 Pedro Alves <palves@redhat.com>
4966 * infrun.c (stop_stepping): Rename to ...
4967 (stop_waiting): ... this.
4968 (proceed): Update comment.
4969 (process_event_stop_test, handle_inferior_event)
4970 (handle_signal_stop, handle_step_into_function)
4971 (handle_step_into_function_backward): Update.
4973 2014-05-29 Pedro Alves <palves@redhat.com>
4975 * infcall.c (run_inferior_call): Don't check whether the current
4976 thread is running after the proceed call.
4978 2014-05-29 Pedro Alves <palves@redhat.com>
4979 Tom Tromey <tromey@redhat.com>
4981 * NEWS: Mention "maint set target-async", "set mi-async", and that
4982 background execution commands are now always available.
4983 * target.h (target_async_permitted): Update comment.
4984 * target.c (target_async_permitted, target_async_permitted_1):
4986 (set_target_async_command): Rename to ...
4987 (maint_set_target_async_command): ... this.
4988 (show_target_async_command): Rename to ...
4989 (maint_show_target_async_command): ... this.
4990 (_initialize_target): Adjust.
4991 * infcmd.c (prepare_execution_command): Make extern.
4992 * inferior.h (prepare_execution_command): Declare.
4993 * infrun.c (set_observer_mode): Leave target async alone.
4994 * mi/mi-interp.c (mi_interpreter_init): Install
4995 mi_on_sync_execution_done as sync_execution_done observer.
4996 (mi_on_sync_execution_done): New function.
4997 (mi_execute_command_input_handler): Don't print the prompt if we
4998 just started a synchronous command with an async target.
4999 (mi_on_resume): Check sync_execution before printing prompt.
5000 * mi/mi-main.h (mi_async_p): Declare.
5001 * mi/mi-main.c: Include gdbcmd.h.
5002 (mi_async_p): New function.
5003 (mi_async, mi_async_1): New globals.
5004 (set_mi_async_command, show_mi_async_command, mi_async): New
5006 (exec_continue): Call prepare_execution_command.
5007 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5008 (mi_execute_async_cli_command): Use mi_async_p.
5009 (_initialize_mi_main): Install "set mi-async". Make
5010 "target-async" a deprecated alias.
5012 2014-05-29 Pedro Alves <palves@redhat.com>
5014 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5015 (_initialize_cli_interp): Adjust.
5016 * event-loop.c: Include "observer.h".
5017 (start_event_loop): Notify 'command_error' observers instead of
5018 calling display_gdb_prompt. Remove FIXME comment.
5019 * event-top.c (display_gdb_prompt): Remove call into the
5021 * inf-loop.c: Include "observer.h".
5022 (inferior_event_handler): Notify 'command_error' observers instead
5023 of calling display_gdb_prompt.
5024 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5025 observers instead of calling display_gdb_prompt.
5026 * interps.c (interp_set): Don't call display_gdb_prompt.
5027 (current_interp_display_prompt_p): Delete.
5028 * interps.h (interp_prompt_p): Delete declaration.
5029 (interp_prompt_p_ftype): Delete.
5030 (struct interp_procs) <prompt_proc_p>: Delete field.
5031 (current_interp_display_prompt_p): Delete declaration.
5032 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5033 (_initialize_mi_interp): Adjust.
5034 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5035 'command_error' observers.
5036 (tui_on_sync_execution_done, tui_on_command_error): New
5038 (tui_display_prompt_p): Delete.
5039 (_initialize_tui_interp): Adjust.
5041 2014-05-29 Pedro Alves <palves@redhat.com>
5044 * cli/cli-interp.c: Include infrun.h and observer.h.
5045 (cli_uiout, cli_interp): New globals.
5046 (cli_on_signal_received, cli_on_end_stepping_range)
5047 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5049 (cli_interpreter_init): Install them as 'end_stepping_range',
5050 'signal_received' 'signal_exited', 'exited' and 'no_history'
5052 (_initialize_cli_interp): Remove cli_interp local.
5053 * infrun.c (handle_inferior_event): Call the several stop reason
5054 observers instead of printing the stop reason directly.
5055 (end_stepping_range): New function.
5056 (print_end_stepping_range_reason, print_signal_exited_reason)
5057 (print_exited_reason, print_signal_received_reason)
5058 (print_no_history_reason): Make static, and add an uiout
5059 parameter. Print to that instead of to CURRENT_UIOUT.
5060 * infrun.h (print_end_stepping_range_reason)
5061 (print_signal_exited_reason, print_exited_reason)
5062 (print_signal_received_reason print_no_history_reason): New
5064 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5066 <cli_uiout>: New field.
5067 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5068 uiout for CLI output. Install 'signal_received',
5069 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5071 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5072 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5073 (mi_on_no_history): New functions.
5074 (ui_out_free_cleanup): Delete function.
5075 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5076 instead use the one already stored in the MI interpreter data.
5077 (mi_ui_out): Adjust.
5078 * tui/tui-interp.c: Include infrun.h and observer.h.
5079 (tui_interp): New global.
5080 (tui_on_signal_received, tui_on_end_stepping_range)
5081 (tui_on_signal_exited, tui_on_exited)
5082 (tui_on_no_history): New functions.
5083 (tui_init): Install them as 'end_stepping_range',
5084 'signal_received' 'signal_exited', 'exited' and 'no_history'
5086 (_initialize_tui_interp): Delete tui_interp local.
5088 2014-05-29 Pedro Alves <palves@redhat.com>
5091 * linux-nat.c (linux_nat_resume_callback): Rename the second
5092 parameter to 'except'. Skip LP if it points to EXCEPT.
5093 (linux_nat_resume): Don't mark the event lwp as not stopped
5094 before resuming sibling lwps. Instead ask
5095 linux_nat_resume_callback to skip the event lwp. Mark it as not
5096 stopped after actually resuming it.
5097 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5099 (wait_lwp): Mark the lwp as stopped here.
5100 (stop_wait_callback): Mark the lwp as not stopped right after
5101 resuming it. Don't mark lwps as stopped here.
5102 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5103 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5105 2014-05-29 Pedro Alves <palves@redhat.com>
5108 * infrun.c (resume): Determine how much to resume depending on
5109 whether the caller wanted a step, not whether we can hardware step
5110 the target. Mark all threads that we intend to run as running,
5111 unless we're calling an inferior function.
5112 (normal_stop): If the thread is running an infcall, don't finish
5114 * target.c (target_resume): Don't mark threads as running here.
5116 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5118 * serial.c (_initialize_serial): Remove support for
5119 the "set remotebaud" and "show remotebaud" commands.
5120 * NEWS: Add entry documenting the removal of that command.
5122 2014-05-28 Yao Qi <yao@codesourcery.com>
5124 * charset.c: Fix typo in comments.
5126 2014-05-27 Gary Benson <gbenson@redhat.com>
5128 * utils.c (internal_vproblem): Prompt for a bug report.
5130 2014-05-26 Andy Wingo <wingo@igalia.com>
5132 * guile/scm-arch.c (arscm_mark_arch_smob):
5133 * guile/scm-block.c (bkscm_mark_block_smob)
5134 (bkscm_mark_block_syms_progress_smob):
5135 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5136 * guile/scm-exception.c (exscm_mark_exception_smob):
5137 * guile/scm-frame.c (frscm_mark_frame_smob):
5138 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5139 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5140 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5141 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5142 (ppscm_mark_pretty_printer_worker_smob):
5143 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5144 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5145 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5146 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5148 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5151 2014-05-26 Andy Wingo <wingo@igalia.com>
5152 Doug Evans <xdje42@gmail.com>
5154 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5155 empty_base_class. All uses updated.
5156 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5157 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5159 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5160 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5161 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5162 (gdbscm_gsmob_has_property_p, add_property_name)
5163 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5164 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5165 (gdb-object-has-property?, gdb-object-properties): Remove.
5166 (gdb-object-kind): Renamed from gsmob-kind.
5168 2014-05-26 Andy Wingo <wingo@igalia.com>
5170 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5171 * configure: Regenerate.
5173 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5175 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5177 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5179 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5180 (replay_memory_access_read_only, replay_memory_access_read_write)
5181 (replay_memory_access_types, replay_memory_access)
5182 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5183 (cmd_set_record_btrace, cmd_show_record_btrace)
5184 (cmd_show_replay_memory_access): New.
5185 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5186 (record_btrace_remove_breakpoint): Replace
5187 record_btrace_allow_memory_access with replay_memory_access.
5188 (_initialize_record_btrace): Add commands.
5189 * NEWS: Announce it.
5191 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5193 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5195 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5197 * MAINTAINERS (Write After Approval): Move self back from
5200 2014-05-22 Pedro Alves <palves@redhat.com>
5202 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5203 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5204 (disable_randomization, enum exec_direction_kind)
5205 (execution_direction, stop_registers, start_remote)
5206 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5207 (wait_for_inferior, normal_stop, get_last_target_status)
5208 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5209 (insert_step_resume_breakpoint_at_sal)
5210 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5211 (set_step_info, print_stop_event, signal_stop_state)
5212 (signal_print_state, signal_pass_state, signal_stop_update)
5213 (signal_print_update, signal_pass_update)
5214 (update_signals_program_target, clear_exit_convenience_vars)
5215 (displaced_step_dump_bytes, update_observer_mode)
5216 (signal_catch_update, gdb_signal_from_command): Move
5218 * infrun.h: ... to this new file.
5219 * amd64-tdep.c: Include infrun.h.
5220 * annotate.c: Include infrun.h.
5221 * arch-utils.c: Include infrun.h.
5222 * arm-linux-tdep.c: Include infrun.h.
5223 * arm-tdep.c: Include infrun.h.
5224 * break-catch-sig.c: Include infrun.h.
5225 * breakpoint.c: Include infrun.h.
5226 * common/agent.c: Include infrun.h instead of inferior.h.
5227 * corelow.c: Include infrun.h.
5228 * event-top.c: Include infrun.h.
5229 * go32-nat.c: Include infrun.h.
5230 * i386-tdep.c: Include infrun.h.
5231 * inf-loop.c: Include infrun.h.
5232 * infcall.c: Include infrun.h.
5233 * infcmd.c: Include infrun.h.
5234 * infrun.c: Include infrun.h.
5235 * linux-fork.c: Include infrun.h.
5236 * linux-nat.c: Include infrun.h.
5237 * linux-thread-db.c: Include infrun.h.
5238 * monitor.c: Include infrun.h.
5239 * nto-tdep.c: Include infrun.h.
5240 * procfs.c: Include infrun.h.
5241 * record-btrace.c: Include infrun.h.
5242 * record-full.c: Include infrun.h.
5243 * remote-m32r-sdi.c: Include infrun.h.
5244 * remote-mips.c: Include infrun.h.
5245 * remote-notif.c: Include infrun.h.
5246 * remote-sim.c: Include infrun.h.
5247 * remote.c: Include infrun.h.
5248 * reverse.c: Include infrun.h.
5249 * rs6000-tdep.c: Include infrun.h.
5250 * s390-linux-tdep.c: Include infrun.h.
5251 * solib-irix.c: Include infrun.h.
5252 * solib-osf.c: Include infrun.h.
5253 * solib-svr4.c: Include infrun.h.
5254 * target.c: Include infrun.h.
5255 * top.c: Include infrun.h.
5256 * windows-nat.c: Include infrun.h.
5257 * mi/mi-interp.c: Include infrun.h.
5258 * mi/mi-main.c: Include infrun.h.
5259 * python/py-threadevent.c: Include infrun.h.
5261 2014-05-22 Pedro Alves <palves@redhat.com>
5263 * infrun.c (handle_inferior_event): Store the exit code for
5264 --return-child-result here, instead of ...
5265 (print_exited_reason): ... here.
5267 2014-05-21 Pedro Alves <palves@redhat.com>
5270 * gdbthread.h (struct thread_control_state): New field
5272 * infrun.c (follow_fork): Copy the new thread control field to the
5274 (clear_proceed_status_thread): Clear the new thread control field.
5275 (proceed): Set the new thread control field.
5276 * interps.h (command_interp): Declare.
5277 * interps.c (command_interpreter): New global.
5278 (command_interp): New function.
5279 (interp_exec): Set `command_interpreter' while here.
5280 * cli-out.c (cli_uiout_dtor): New function.
5281 (cli_ui_out_impl): Install it.
5282 * mi/mi-interp.c: Include cli-out.h.
5283 (mi_cmd_interpreter_exec): Add comment.
5284 (restore_current_uiout_cleanup): New function.
5285 (ui_out_free_cleanup): New function.
5286 (mi_on_normal_stop): If finishing an execution command started by
5287 a CLI command, or any kind of breakpoint-like event triggered,
5288 print the stop event to the output (CLI) stream.
5289 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5291 2014-05-21 Pedro Alves <palves@redhat.com>
5293 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5294 current source line having changed.
5295 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5296 * infrun.c (normal_stop): Adjust call to
5297 set_current_sal_from_frame.
5298 * source.c (clear_lines_listed_range): New function.
5299 (set_current_source_symtab_and_line, identify_source_line): Clear
5300 the lines listed range.
5301 (line_info): Handle the first "info line" after the current source
5302 line having changed.
5303 * stack.c (print_stack_frame): Remove center handling.
5304 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5307 2014-05-21 Pedro Alves <palves@redhat.com>
5309 * inf-child.c (inf_child_mourn_inferior): New function.
5310 * inf-child.h (inf_child_mourn_inferior): New declaration.
5311 * darwin-nat.c (darwin_mourn_inferior): Use
5312 inf_child_mourn_inferior.
5313 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5314 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5315 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5316 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5317 * windows-nat.c (windows_mourn_inferior): Likewise.
5319 2014-05-21 Doug Evans <xdje42@gmail.com>
5321 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5323 2014-05-21 Doug Evans <xdje42@gmail.com>
5325 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5326 (gdbscm_out_of_range_error): Ditto.
5327 (gdbscm_memory_error): Ditto.
5328 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5329 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5330 (gdbscm_out_of_range_error): Update.
5331 (gdbscm_memory_error): Update.
5332 (gdbscm_scm_to_target_string_unsafe): Delete.
5334 2014-05-21 Pedro Alves <palves@redhat.com>
5336 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5338 (inf_child_open_target): New function.
5339 (inf_child_open): Use inf_child_open_target to push the target
5340 instead of erroring out.
5341 (inf_child_disconnect, inf_child_close)
5342 (inf_child_maybe_unpush_target): New functions.
5343 (inf_child_target): Install inf_child_disconnect and
5344 inf_child_close. Store a pointer to the returned object.
5345 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5347 * target.c (auto_connect_native_target): New global.
5348 (show_default_run_target): New function.
5349 (find_default_run_target): Return NULL if automatically connecting
5350 to the native target is disabled.
5351 (_initialize_target): Install set/show auto-connect-native-target.
5352 * NEWS: Mention "set auto-connect-native-target", and "target
5354 * linux-nat.c (super_close): New global.
5355 (linux_nat_close): Call super_close.
5356 (linux_nat_add_target): Store a pointer to the base class's
5358 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5359 inf_child_maybe_unpush.
5360 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5362 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5363 the inferior. Use inf_child_maybe_unpush_target.
5364 (inf_ttrace_attach): Don't push the target if it is already
5366 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5367 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5368 after mourning the inferior. Use inf_child_maybe_unpush_target.
5369 (darwin_attach_pid): Don't push the target if it is already
5371 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5372 mourning the inferior. Use inf_child_maybe_unpush_target.
5373 (gnu_detach): Use inf_child_maybe_unpush_target.
5374 * go32-nat.c (go32_create_inferior): Don't push the target if it
5376 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5377 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5378 (procfs_open): Rename to ...
5379 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5380 comments. Can target_preopen before changing node. Call
5381 inf_child_open_target to push the target explicitly.
5382 (procfs_attach): Don't push the target if it is already pushed.
5383 (procfs_detach): Use inf_child_maybe_unpush_target.
5384 (procfs_create_inferior): Don't push the target if it is already
5386 (nto_native_ops): New global.
5387 (procfs_open): Reimplement.
5388 (procfs_native_open): New function.
5389 (init_procfs_targets): Install procfs_native_open as to_open of
5390 "target native". Store a pointer to the "native" target in
5392 * procfs.c (procfs_attach): Don't push the target if it is already
5394 (procfs_detach): Use inf_child_maybe_unpush_target.
5395 (procfs_mourn_inferior): Only unpush the target after mourning the
5396 inferior. Use inf_child_maybe_unpush_target.
5397 (procfs_init_inferior): Don't push the target if it is already
5399 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5400 if it is already pushed.
5402 2014-05-21 Pedro Alves <palves@redhat.com>
5404 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5405 and "procfs" targets are now called "native" instead.
5407 2014-05-21 Pedro Alves <palves@redhat.com>
5409 * go32-nat.c (go32_open): Delete.
5410 (go32_target): Don't override the to_open method.
5412 2014-05-21 Pedro Alves <palves@redhat.com>
5414 * nto-procfs.c (procfs_can_run): New function.
5415 (nto_procfs_ops): New global.
5416 (init_procfs_targets): New, based on procfs_target. Install
5417 "target native" in addition to "target procfs".
5418 (_initialize_procfs): Call init_procfs_targets instead of adding
5421 2014-05-21 Pedro Alves <palves@redhat.com>
5423 * windows-nat.c (windows_target): Don't override to_shortname,
5424 to_longname or to_doc.
5426 2014-05-21 Pedro Alves <palves@redhat.com>
5428 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5431 2014-05-21 Pedro Alves <palves@redhat.com>
5433 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5434 to_shortname, to_longname or to_doc.
5436 2014-05-21 Pedro Alves <palves@redhat.com>
5438 * go32-nat.c (go32_target): Don't override to_shortname,
5439 to_longname or to_doc.
5441 2014-05-21 Pedro Alves <palves@redhat.com>
5443 * inf-child.c (inf_child_open): Remove mention of "child".
5444 (inf_child_target): Rename target to "native" instead of "child".
5446 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5448 * Makefile.in (SFILES): Delete "regset.c".
5449 (COMMON_OBS): Delete "regset.o".
5451 * regset.h (regset_alloc): Delete prototype.
5453 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5455 * sparc-linux-tdep.c (sparc32_linux_gregset)
5456 (sparc32_linux_fpregset): New static regset structures.
5457 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5458 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5460 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5461 (sparc64_linux_fpregset): New static regset structures.
5462 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5463 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5464 New static regset structures.
5465 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5466 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5467 New static regset structures.
5468 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5469 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5470 New static regset structures.
5471 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5472 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5473 New static regset structures.
5474 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5476 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5478 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5479 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5480 register maps ("regmaps") from "*regset" to "*regmap". Do this
5481 for all regmap types and variables.
5482 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5483 (sparc32_linux_supply_core_gregset)
5484 (sparc32_linux_collect_core_gregset)
5485 (sparc32_linux_supply_core_fpregset)
5486 (sparc32_linux_collect_core_fpregset): Likewise.
5487 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5488 (sparc_gregmap, sparc_fpregmap): ... these.
5489 (sparc_supply_gregset, sparc_collect_gregset)
5490 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5491 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5492 (_initialize_sparc_nat): Rename regmaps.
5493 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5494 (sparc_gregmap, sparc_fpregmap): ... these.
5495 (sparc_supply_gregset, sparc_collect_gregset)
5496 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5497 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5499 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5500 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5502 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5504 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5505 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5506 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5508 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5509 (sparc32_bsd_fpregset): Rename to...
5510 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5511 (sparc32_bsd_fpregmap): ... these.
5512 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5513 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5514 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5515 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5516 (struct sparc_gregmap, struct sparc_fpregmap)
5517 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5518 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5519 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5520 (sparc32_supply_regset, sparc32_collect_gregset)
5521 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5523 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5524 (sparc64_linux_ptrace_gregmap): ... this.
5525 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5526 (_initialize_sparc64_linux_nat): Rename regmaps.
5527 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5528 (sparc64_linux_core_gregmap): ... this.
5529 (sparc64_linux_supply_core_gregset)
5530 (sparc64_linux_collect_core_gregset)
5531 (sparc64_linux_supply_core_fpregset)
5532 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5533 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5534 (sparc64_sol2_fpregset): Rename to...
5535 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5536 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5537 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5539 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5540 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5541 (sparc64_bsd_fpregset): Rename to...
5542 (struct sparc_gregmap, sparc64_sol2_gregmap)
5543 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5544 (sparc64_bsd_fpregmap): ... these.
5545 (sparc64_supply_gregset, sparc64_collect_gregset)
5546 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5548 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5549 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5550 (sparc64fbsd_gregmap): ... this.
5551 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5552 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5554 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5555 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5556 (sparc64nbsd_collect_fpregset): Likewise.
5557 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5558 (sparc64nbsd_gregmap): ... this.
5559 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5561 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5562 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5563 (sparc64obsd_gregmap): ... this.
5564 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5566 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5567 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5568 (sparc32nbsd_gregmap): ... this.
5569 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5572 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5574 * score-tdep.c (score7_linux_gregset): New static regset
5576 (score7_linux_regset_from_core_section): Remove dynamic regset
5578 (score_gdbarch_init): Drop allocation of tdep structure.
5579 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5581 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5583 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5585 (am33_regset_from_core_section): Remove dynamic regset
5588 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5590 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5591 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5593 (mips_linux_regset_from_core_section): Remove dynamic regset
5595 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5596 'gregset64', 'fpregset', and 'fpregset64'.
5597 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5598 deleted tdep fields.
5600 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5602 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5604 (amd64_regset_from_core_section): Remove dynamic regset
5606 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5608 (amd64obsd_regset_from_core_section): Remove dynamic regset
5610 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5612 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5613 x86-common regset supply function.
5614 * i386-tdep.c (i386_collect_gregset): Make static.
5615 (i386_gregset): New global regset structure.
5616 (i386_fpregset, i386_xstateregset): New static regset structures.
5617 (i386_regset_from_core_section): Remove dynamic regset
5619 (i386_gdbarch_init): Remove initialization of tdep fields
5620 'gregset', 'fpregset', and 'xstateregset'.
5621 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5622 'fpregset', and 'xstateregset'.
5623 (i386_collect_gregset): Remove prototype.
5624 (i386_gregset): New declaration.
5625 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5627 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5630 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5632 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5633 (arm_linux_vfpregset): New static regset structures.
5634 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5636 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5637 and 'vfpregset' fields.
5639 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5641 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5642 (aarch64_linux_fpregset): New static regset structures.
5643 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5644 of regset structures.
5645 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5648 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5650 * regset.h (struct regset): Remove gdbarch field.
5651 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5652 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5653 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5655 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5656 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5657 (ppc32_linux_vsxregset): Likewise.
5658 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5659 via the regcache instead of the regset.
5660 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5661 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5662 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5663 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5666 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5668 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5669 Constify structures.
5670 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5671 (alphanbsd_aout_gregset): Likewise.
5672 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5673 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5675 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5676 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5678 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5679 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5680 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5681 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5682 * m88k-tdep.c (m88k_gregset): Likewise.
5683 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5684 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5685 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5686 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5687 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5688 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5689 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5690 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5691 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5693 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5694 * sh-tdep.h (sh_corefile_gregset): Likewise.
5695 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5696 * vax-tdep.c (vax_gregset): Likewise.
5698 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5700 Fix TLS access for -static -pthread.
5701 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5702 (try_thread_db_load_1): Initialize it.
5703 (thread_db_get_thread_local_address): Call it if LM is zero.
5704 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5705 * target.h (struct target_ops) (to_get_thread_local_address): Add
5706 load_module_addr comment.
5708 2014-05-21 Pedro Alves <palves@redhat.com>
5710 * dcache.c (dcache_read_memory_partial): If reading the cache line
5711 fails, fallback to reading just the memory the caller wanted.
5713 2014-05-20 Doug Evans <dje@google.com>
5715 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5716 instead of get_current_arch.
5718 2014-05-20 Pedro Alves <palves@redhat.com>
5720 * NEWS: Mention that compare-sections now works with all targets.
5722 * remote.c (PACKET_qCRC): New enum value.
5723 (remote_verify_memory): Don't send qCRC if the target has no
5724 execution. Use packet_support/packet_ok. If the target doesn't
5725 support the qCRC packet, fallback to a deep memory copy.
5726 (compare_sections_command): Say "target image" instead of "remote
5728 (_initialize_remote): Add PACKET_qCRC to the list of config
5729 packets that have no associated command. Extend comment.
5730 * target.c (simple_verify_memory, default_verify_memory): New
5732 * target.h (struct target_ops) <to_verify_memory>: Default to
5733 default_verify_memory.
5734 (simple_verify_memory): New declaration.
5735 * target-delegates.c: Regenerate.
5737 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5739 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5741 2014-05-20 Hui Zhu <hui@codesourcery.com>
5742 Yao Qi <yao@codesourcery.com>
5745 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5746 and change address of sp and pc.
5748 2014-05-19 Tom Tromey <tromey@redhat.com>
5750 * gdbtypes.c (rank_function): Use XNEWVEC.
5751 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5753 2014-05-19 Doug Evans <dje@google.com>
5755 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5756 build_type_unit_groups and moved closer to only caller. Remove
5757 arguments. All references updated. Remove outdated .gdb_index
5759 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5760 build_type_psymtabs_1.
5762 2014-05-19 Doug Evans <dje@google.com>
5764 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5765 n_type_unit_groups, all_type_unit_groups. All uses removed.
5766 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5767 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5768 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5769 (add_type_unit_group_to_table): Delete.
5771 2014-05-19 Doug Evans <dje@google.com>
5773 * eval.c (evaluate_subexp_standard): Add some comments.
5775 2014-05-17 Doug Evans <xdje42@gmail.com>
5777 * progspace.c (remove_program_space): Delete, unused.
5778 * progspace.h (remove_program_space): Ditto.
5780 2014-05-17 Doug Evans <xdje42@gmail.com>
5782 * inferior.c (prune_inferiors): Fix comment.
5783 (remove_inferior_command): Call prune_program_spaces.
5785 2014-05-16 Doug Evans <dje@google.com>
5787 New command line option -D.
5789 * main.c (set_gdb_data_directory): New function.
5790 (captured_main): Recognize -D. Flag error for --data-directory "".
5791 Call set_gdb_data_directory.
5792 (print_gdb_help): Print --data-directory, -D.
5793 * main.h (set_gdb_data_directory): Declare.
5794 * top.c (staged_gdb_datadir): New static global.
5795 (set_gdb_datadir): Call set_gdb_data_directory
5796 (show_gdb_datadir): New function.
5797 (init_main): Update init of data-directory parameter.
5799 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5801 Import the "dirfd" gnulib module.
5802 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5803 * gnulib/aclocal.m4: Update.
5804 * gnulib/config.in: Update.
5805 * gnulib/configure: Update.
5806 * gnulib/import/Makefile.am: Update.
5807 * gnulib/import/Makefile.in: Update.
5808 * gnulib/import/dirfd.c: New.
5809 * gnulib/import/m4/dirfd.m4: New.
5810 * gnulib/import/m4/gnulib-cache.m4: Update.
5811 * gnulib/import/m4/gnulib-comp.m4: Update.
5813 2014-05-16 Pierre Muller <muller@sourceware.org>
5814 Yao Qi <yao@codesourcery.com>
5816 * valprint.c (print_wchar): Move the code on checking whether
5817 W is a printable wide char to the default branch of switch
5818 statement below. Call wchar_printable instead of gdb_iswprint.
5820 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5822 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5823 ldr.w and ldrd instructions.
5825 2014-05-15 Doug Evans <dje@google.com>
5827 * dwarf2read.c (read_structure_type): Delete outdated comments.
5829 2014-05-14 Tom Tromey <tromey@redhat.com>
5831 * macrocmd.c (print_macro_definition): Reindent.
5833 2014-05-13 Doug Evans <xdje42@gmail.com>
5835 * python/py-cmd.c (cmdpy_completer): Add comment.
5836 (completers): Make const.
5838 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5840 * infrun.c (resume): Remove should_resume (unused). Move up
5841 declaration of resume_ptid.
5843 2014-05-13 Tom Tromey <tromey@redhat.com>
5845 * language.h (unop_type_check): Remove.
5846 (binop_type_check): Don't declare.
5848 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5850 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5851 call to regcache_raw_collect.
5853 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5855 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5856 mi_console->quote as the quoting character.
5858 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5860 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5862 2014-04-29 Tom Tromey <tromey@redhat.com>
5864 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5865 "show debug varobj".
5867 2014-05-07 Kyle McMartin <kyle@redhat.com>
5869 Pushed by Joel Brobecker <brobecker@adacore.com>.
5870 * aarch64-tdep.c (aarch64_software_single_step): New function.
5871 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5872 with aarch64_software_single_step.
5874 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5878 2014-05-05 Keith Seitz <keiths@redhat.com>
5880 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5881 variable or history value is successfully parsed.
5883 2014-05-05 Yao Qi <yao@codesourcery.com>
5884 Pedro Alves <palves@redhat.com>
5886 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5887 address of blocks that intersects the requested range. Trim
5888 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5890 * ctf.c (ctf_xfer_partial): Likewise.
5892 2014-05-05 Yao Qi <yao@codesourcery.com>
5894 * printcmd.c (display_command): Remove the check to
5895 target_has_execution.
5897 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5899 * ppcobsd-nat.c: Include "obsd-nat.h".
5900 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5902 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5904 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5906 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5907 and 16-bit signed and unsigned arguments. Update comment.
5908 (stap_parse_probe_arguments): Extend code to handle such
5909 arguments. Use warning instead of complaint to notify about
5910 unrecognized bitness.
5912 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5914 PR breakpoints/16889
5915 * stap-probe.c (stap_parse_probe_arguments): Simplify
5916 check for non-prefixed probes (i.e., probes whose
5917 arguments do not start with "N@"). Always set the
5918 argument type to a sane value.
5920 2014-05-01 David Taylor <dtaylor@emc.com>
5922 * remote.c (compare_sections_command): Add -r option to compare
5923 all loadable read-only sections.
5925 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5927 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5928 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5930 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5931 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5932 Remove unused CORE_ADDR argument. Update all callers.
5934 2014-04-29 Pedro Alves <palves@redhat.com>
5936 * remote.c (struct packet_config) <detect>: Extend comment.
5937 (add_packet_config_cmd): Don't set the config's detect or support
5939 (init_all_packet_configs): Also initialize the config's 'detect'
5941 (reset_all_packet_configs_support): New function.
5942 (remote_open_1): Call reset_all_packet_configs_support instead of
5943 init_all_packet_configs.
5944 (_initialize_remote): Initialize all packet configs. Assert that
5945 all packets have an associated command, except a few known
5948 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5950 * dwarf2read.c (read_subrange_type): Handle dynamic
5951 DW_AT_lower_bound attributes.
5953 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5955 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5956 dynamic bounds before computing its upper bound.
5957 (ada_discrete_type_low_bound): Same as above with the lower bound.
5959 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5961 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5962 range types. Adjust the array handling implementation to
5963 take advantage of this change.
5964 (resolve_dynamic_range): New function, mostly extracted from
5965 resolve_dynamic_bounds.
5966 (resolve_dynamic_array): New function, mostly extracted from
5967 resolve_dynamic_bounds.
5968 (resolve_dynamic_bounds): Delete.
5969 (resolve_dynamic_type): Reimplement. Add handling of
5970 TYPE_CODE_RANGE types.
5972 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5974 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5975 handling of parallel ___XA types.
5977 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5979 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5980 unnecessary second call to static_unwrap_type.
5982 2014-04-27 Hui Zhu <hui@codesourcery.com>
5984 * stack.c (print_frame_info): Call do_gdb_disassembly with
5985 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5987 2014-04-26 Doug Evans <xdje42@gmail.com>
5989 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5991 2014-04-25 Pedro Alves <palves@redhat.com>
5994 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5995 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5996 and newline from built string.
5997 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5998 (linux_ptrace_attach_fail_reason): ... this.
5999 * linux-nat.c (linux_nat_attach): Adjust to use
6000 linux_ptrace_attach_fail_reason.
6002 2014-04-25 Pedro Alves <palves@redhat.com>
6004 * remote.c (struct remote_state): Remove multi_process_aware,
6005 non_stop_aware, cond_tracepoints, cond_breakpoints,
6006 breakpoint_commands, fast_tracepoints, static_tracepoints,
6007 install_in_trace, disconnected_tracing,
6008 enable_disable_tracepoints, string_tracing, and
6009 augmented_libraries_svr4_read fields.
6010 (remote_multi_process_p): Move further below in the file.
6011 (struct packet_config): Add comments.
6012 (update_packet_config): Delete function.
6013 (show_packet_config_cmd): Use packet_config_support.
6014 (add_packet_config_cmd): Use NULL as set callback.
6015 (packet_ok): "set remote foo-packet"-style commands no longer
6016 change config->supported -- adjust.
6017 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6018 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6019 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6020 (PACKET_QNonStop, PACKET_multiprocess_feature)
6021 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6022 (PACKET_DisconnectedTracing_feature)
6023 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6024 (set_remote_protocol_packet_cmd): Delete function.
6025 (packet_config_support, packet_support): New functions.
6026 (set_remote_protocol_Z_packet_cmd): Don't call
6027 update_packet_config.
6028 (remote_query_attached, remote_pass_signals)
6029 (remote_program_signals, remote_threads_info)
6030 (remote_threads_extra_info, remote_start_remote): Use
6032 (remote_start_remote): Use packet_config_support and
6034 (init_all_packet_configs): Set all packets to unknown support,
6035 instead of calling update_packet_config.
6036 (remote_check_symbols): Use packet_support.
6037 (remote_supported_packet): Unconditionally set the packet config's
6039 (remote_multi_process_feature, remote_non_stop_feature)
6040 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6041 (remote_breakpoint_commands_feature)
6042 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6043 (remote_install_in_trace_feature)
6044 (remote_disconnected_tracing_feature)
6045 (remote_enable_disable_tracepoint_feature)
6046 (remote_string_tracing_feature)
6047 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6048 (remote_protocol_features): Adjust to use remote_supported_packet
6049 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6050 "ConditionalTracepoints", "ConditionalBreakpoints",
6051 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6052 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6053 "EnableDisableTracepoints", and "tracenz".
6054 (remote_query_supported): Use packet_support.
6055 (remote_open_1): Adjust.
6056 (extended_remote_attach_1): Use packet_support. Switch on the
6057 result of packet_ok instead of checking whether the packet ended
6059 (remote_vcont_resume): Use packet_support.
6060 (remote_resume, remote_stop_ns, fetch_register_using_p)
6061 (remote_prepare_to_store, store_register_using_P)
6062 (check_binary_download, remote_write_bytes): Use packet_support.
6063 (remote_vkill): Use packet_support. Switch on the result of
6064 packet_ok instead of checking whether the packet ended up
6066 (extended_remote_supports_disable_randomization): Use
6068 (extended_remote_run): Switch on the result of packet_ok instead
6069 of checking whether the packet ended up disabled.
6070 (remote_insert_breakpoint, remote_remove_breakpoint)
6071 (remote_insert_watchpoint, remote_remove_watchpoint)
6072 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6074 (remote_search_memory): Use packet_config_support.
6075 (remote_get_thread_local_address, remote_get_tib_address)
6076 (remote_hostio_send_command, remote_can_execute_reverse): Use
6078 (remote_supports_cond_tracepoints)
6079 (remote_supports_cond_breakpoints)
6080 (remote_supports_fast_tracepoints)
6081 (remote_supports_static_tracepoints)
6082 (remote_supports_install_in_trace)
6083 (remote_supports_enable_disable_tracepoint)
6084 (remote_supports_string_tracing)
6085 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6086 the packet config says the feature is enabled or disabled.
6087 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6088 (remote_get_trace_status): Use packet_support.
6089 (remote_set_disconnected_tracing): Adjust to check whether the
6090 feature is enabled with packet_support.
6091 (remote_set_trace_buffer_size, remote_use_agent)
6092 (remote_can_use_agent, remote_supports_btrace): Use
6094 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6095 Use packet_config_support.
6096 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6097 the packet config says the feature is enabled or disabled.
6098 (set_range_stepping): Use packet_support.
6100 2014-04-25 Tom Tromey <tromey@redhat.com>
6102 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6105 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6107 * NEWS: Mention support for C99 variable length arrays.
6109 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6111 * ada-lang.c (standard_exc): Expand introductory comment.
6113 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6114 Walfred Tedeschi <walfred.tedeschi@intel.com>
6116 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6118 (amd64_linux_read_description): Add code to handle AVX512 xstate
6119 mask and return respective tdesc.
6120 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6121 and features/i386/x32-avx512-linux.c.
6122 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6123 (amd64_linux_core_read_description): Add code to handle AVX512
6124 xstate mask and return respective tdesc.
6125 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6126 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6128 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6129 (tdesc_amd64_avx512_linux): New prototype.
6130 (tdesc_x32_avx512_linux): Likewise.
6131 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6132 features/i386/x32-avx512.c.
6133 (amd64_ymm_avx512_names): New register names for pseudo
6135 (amd64_ymmh_avx512_names): New register names for raw registers
6137 (amd64_k_names): New register names for K registers.
6138 (amd64_zmmh_names): New register names for ZMM raw registers.
6139 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6140 (amd64_xmm_avx512_names): New register names for XMM16-31
6142 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6144 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6145 if feature is present.
6146 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6147 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6148 (AMD64_NUM_REGS): Adjust to new number of registers.
6149 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6150 registers supplied via XSTATE by AVX512 registers.
6151 (i386_linux_read_description): Add case for AVX512.
6152 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6153 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6154 (i386_linux_core_read_description): Add case for AVX512.
6155 (i386_linux_init_abi): Install supported register note section
6157 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6159 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6160 registers to be number of zmm7h + 1.
6161 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6162 * i386-tdep.c: Include features/i386/i386-avx512.c.
6163 (i386_zmm_names): Add ZMM pseudo register names array.
6164 (i386_zmmh_names): Add ZMM raw register names array.
6165 (i386_k_names): Add K raw register names array.
6166 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6167 registers. AVX512 has 16 more ZMM registers than there are YMM
6169 (i386_zmmh_regnum_p): Add function to look up register number of
6171 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6172 (i386_k_regnum_p): Likewise for K raw registers.
6173 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6174 registers added by AVX512.
6175 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6176 registers added by AVX512.
6177 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6179 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6180 (i386_pseudo_register_name): Add ZMM pseudo registers.
6181 (i386_zmm_type): Construct and return vector registers type for ZMM
6183 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6184 ZMM0-31 pseudo registers and K registers.
6185 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6186 and YMM16-31 registers from register cache.
6187 (i386_pseudo_register_write): Add code to write K, ZMM and
6189 (i386_register_reggroup_p): Add code to include/exclude AVX512
6190 registers in/from respective register groups.
6191 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6192 registers if feature is present in xcr0.
6193 (i386_gdbarch_init): Add code to initialize AVX512 feature
6194 variables in tdep structure, wire in pseudo registers and call
6195 initialize_tdesc_i386_avx512.
6196 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6198 (i386_regnum): Add AVX512 registers.
6199 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6200 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6201 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6202 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6204 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6205 (i386_ymm_avx512_regnum_p): Likewise.
6206 (i386_k_regnum_p): Likewise.
6207 (i386_zmm_regnum_p): Likewise.
6208 (i386_zmmh_regnum_p): Likewise.
6209 * i387-tdep.c : Update year in copyright notice.
6210 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6212 (XSAVE_YMM_AVX512_ADDR): New macro.
6213 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6215 (XSAVE_XMM_AVX512_ADDR): New macro.
6216 (xsave_avx512_k_offset): New table for K register offsets in
6218 (XSAVE_AVX512_K_ADDR): New macro.
6219 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6221 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6222 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6224 (i387_collect_xsave): Add code to collect AVX512 registers from
6226 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6227 of XMM16-31 registers.
6228 (I387_NUM_K_REGS): New define for number of K registers.
6229 (I387_K0_REGNUM): New define for K0 register number.
6230 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6231 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6232 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6234 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6235 (I387_XMM16_REGNUM): New define for XMM16 register number.
6236 (I387_YMM0_REGNUM): New define for YMM0 register number.
6237 (I387_KEND_REGNUM): New define for last K register number.
6238 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6239 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6241 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6243 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6245 * features/Makefile: Add AVX512 related files.
6246 * features/i386/32bit-avx512.xml: New file.
6247 * features/i386/64bit-avx512.xml: Likewise.
6248 * features/i386/amd64-avx512-linux.c: Likewise.
6249 * features/i386/amd64-avx512-linux.xml: Likewise.
6250 * features/i386/amd64-avx512.c: Likewise.
6251 * features/i386/amd64-avx512.xml: Likewise.
6252 * features/i386/i386-avx512-linux.c: Likewise.
6253 * features/i386/i386-avx512-linux.xml: Likewise.
6254 * features/i386/i386-avx512.c: Likewise.
6255 * features/i386/i386-avx512.xml: Likewise.
6256 * features/i386/x32-avx512-linux.c: Likewise.
6257 * features/i386/x32-avx512-linux.xml: Likewise.
6258 * features/i386/x32-avx512.c: Likewise.
6259 * features/i386/x32-avx512.xml: Likewise.
6260 * regformats/i386/amd64-avx512-linux.dat: New file.
6261 * regformats/i386/amd64-avx512.dat: Likewise.
6262 * regformats/i386/i386-avx512-linux.dat: Likewise.
6263 * regformats/i386/i386-avx512.dat: Likewise.
6264 * regformats/i386/x32-avx512-linux.dat: Likewise.
6265 * regformats/i386/x32-avx512.dat: Likewise.
6266 * NEWS: Add note about new support for AVX512.
6269 2014-04-23 Pedro Alves <palves@redhat.com>
6271 * breakpoint.c (insert_bp_location): Tolerate errors if the
6272 breakpoint is set in a user-loaded objfile.
6273 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6274 location is marked shlib_disabled. If the breakpoint is set in a
6275 user-loaded objfile is a GDB-side memory breakpoint, validate it
6276 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6277 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6279 * mem-break.c (memory_validate_breakpoint): New function.
6280 * objfiles.c (userloaded_objfile_contains_address_p): New
6282 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6283 * target.h (memory_validate_breakpoint): New declaration.
6285 2014-04-23 Pedro Alves <palves@redhat.com>
6287 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6288 the breakpoint is set in a shared library, only suppress
6289 errors for software breakpoints, not hardware breakpoints.
6291 2014-04-22 Pedro Alves <palves@redhat.com>
6293 * infrun.c (schedlock_applies): New function, factored out from
6294 find_thread_needs_step_over.
6295 (find_thread_needs_step_over): Use it.
6296 (switch_back_to_stepped_thread): Always clear trap_expected if the
6297 step over is finished. Return early if scheduler locking applies.
6298 Look for the stepping thread and a potential step-over thread with
6300 (currently_stepping_or_nexting_callback): Delete.
6302 2014-04-22 Nick Clifton <nickc@redhat.com>
6304 * NEWS: Mention that ARM sim now supports tracing.
6306 2014-04-22 Yao Qi <yao@codesourcery.com>
6308 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6310 * tracefile.c (tracefile_fetch_registers): ... it. New
6312 * tracefile.h (tracefile_fetch_registers): Declare.
6313 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6314 tracefile_fetch_registers.
6316 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6319 * windows-nat.c (thread_rec): Don't display a warning when
6320 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6321 fails for any reason, set th->suspended to -1, so that we don't
6322 try to resume such a thread. Also, don't return NULL in these
6323 cases, to avoid completely ruin the session due to "PC register is
6324 not available" error.
6325 (do_windows_fetch_inferior_registers): Check errors in
6326 GetThreadContext call.
6327 (windows_continue): Accept an additional argument KILLED; if not
6328 zero, ignore errors in the SetThreadContext call, since the
6329 inferior was killed and is shutting down.
6330 (windows_resume, get_windows_debug_event)
6331 (windows_create_inferior, windows_mourn_inferior)
6332 (windows_kill_inferior): All callers of windows_continue changed
6333 to adjust to its new calling sequence.
6335 2014-04-19 Yao Qi <yao@codesourcery.com>
6337 * ctf.c (ctf_open): Call post_create_inferior.
6339 2014-04-19 Yao Qi <yao@codesourcery.com>
6341 * ctf.c (handle_id): New static variable.
6342 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6343 value. Get the declaration of event "register" and get length
6344 of field "contents".
6346 2014-04-19 Yao Qi <yao@codesourcery.com>
6348 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6350 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6352 * valops.c (oload_method_static): Remove unnecessary argument
6353 METHOD. Update all callers.
6355 2014-04-18 Pedro alves <palves@redhat.com>
6356 Tom Tromey <tromey@redhat.com>
6359 * frame.c (get_prev_frame_1): Rename to ...
6360 (get_prev_frame_always): ... this, and make extern. Adjust.
6361 (skip_artificial_frames): Use get_prev_frame_always.
6362 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6363 (get_frame_unwind_stop_reason): Adjust to rename.
6364 * frame.h (get_prev_frame_always): Declare.
6365 * inline-frame.c: Include frame.h.
6366 (inline_frame_this_id): Use get_prev_frame_always.
6368 2014-04-18 Tristan Gingold <gingold@adacore.com>
6370 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6371 code by using bfd_mach_o_get_base_address.
6373 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6375 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6376 (spu_ax_pseudo_register_collect): New function.
6377 (spu_ax_pseudo_register_push_stack): Likewise.
6378 (spu_dwarf_reg_to_regnum): Likewise.
6379 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6381 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6383 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6384 Replace FRAME argument with FRAME_ID.
6385 * gdbarch.c, gdbarch.h: Regenerate.
6386 * findvar.c (default_value_from_register): Add GDBARCH argument;
6387 replace FRAME by FRAME_ID. No longer call get_frame_id.
6388 (value_from_register): Update call to gdbarch_value_from_register.
6389 * value.h (default_value_from_register): Update prototype.
6390 * s390-linux-tdep.c (s390_value_from_register): Update interface
6391 and call to default_value_from_register.
6392 * spu-tdep.c (spu_value_from_register): Likewise.
6394 * findvar.c (address_from_register): Remove TYPE argument.
6395 Do not call value_from_register; use gdbarch_value_from_register
6396 with null_frame_id instead.
6397 * value.h (address_from_register): Update prototype.
6398 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6399 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6400 address_from_register interface change.
6402 2014-04-17 Yao Qi <yao@codesourcery.com>
6404 * gdbtypes.h: Update comments to link to types and macros'
6407 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6409 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6411 2014-04-16 Keith Seitz <keiths@redhat.com>
6414 * dwarf2read.c (skip_one_die): Check that all relative-offset
6415 sibling DIEs fall within range of the current reader's buffer.
6416 (read_partial_die): Likewise.
6418 2014-04-16 Keith Seitz <keiths@redhat.com>
6421 * cp-namespace.c (lookup_symbol_file): If the type name of
6422 `this' is NULL, return immediately.
6424 2014-04-14 Keith Seitz <keiths@redhat.com>
6427 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6428 from symbol_matches_domain in symtab.c. All local callers
6429 of symbol_matches_domain updated.
6430 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6431 search STRUCT_DOMAIN.
6432 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6433 independently. standard_lookup will do that automatically.
6434 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6435 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6436 (cp_lookup_symbol_in_namespace): Likewise.
6437 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6438 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6439 may return a STRUCT_DOMAIN match.
6440 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6441 * cp-support.c: Include language.h.
6442 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6444 * psymtab.c (match_partial_symbol): Compare the requested
6445 domain with the symbol's domain directly.
6446 (lookup_partial_symbol): Likewise.
6447 * symtab.c (lookup_symbol_in_language): Explain when/why
6448 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6449 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6450 appropriate languages.
6451 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6452 and moved to ada-lang.c
6453 (lookup_block_symbol): Explain that this function only returns
6454 symbol matching the requested DOMAIN.
6455 Compare the requested domain with the symbol's domain directly.
6456 (iterate_over_symbols): Compare the requested domain with the
6457 symbol's domain directly.
6458 * symtab.h (symbol_matches_domain): Remove.
6460 2014-04-14 Tom Tromey <tromey@redhat.com>
6463 * c-exp.y (type_aggregate_p): New function.
6464 (qualified_name, classify_inner_name): Use it.
6465 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6466 and TYPE_TARGET_TYPE of an enum type.
6467 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6469 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6470 handle TYPE_DECLARED_CLASS.
6471 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6473 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6474 * valops.c (enum_constant_from_type): New function.
6475 (value_aggregate_elt): Use it.
6476 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6479 2014-04-14 Tom Tromey <tromey@redhat.com>
6481 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6482 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6484 * value.h (value_aggregate_elt): Update.
6486 2014-04-14 Tom Tromey <tromey@redhat.com>
6488 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6490 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6492 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6493 (evaluate_subexp_standard): Pass noside argument.
6494 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6495 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6496 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6497 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6498 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6500 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6502 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6503 points to a constant blob.
6505 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6507 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6508 property and store it as the high bound and flag the range accordingly.
6509 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6510 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6511 * gdbtypes.h (enum range_flags): New enum.
6512 (struct range_bounds): Add flags member.
6514 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6516 * c-typeprint.c (c_type_print_varspec_suffix): Added
6517 check for not yet resolved high bound. If unresolved, print
6518 "variable length" string to the console instead of random
6521 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6523 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6525 (ada_template_to_fixed_record_type_1): Likewise.
6526 (ada_to_fixed_type_1): Likewise.
6527 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6528 (cp_print_value): Likewise.
6529 * d-valprint.c (dynamic_array_type): Likewise.
6530 * findvar.c (address_of_variable): Likewise.
6531 * jv-valprint.c (java_value_print): Likewise.
6532 * valops.c (value_ind): Likewise.
6533 * value.c (coerce_ref): Likewise.
6535 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6537 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6538 value and retrieve the dynamic type size.
6540 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6542 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6543 passed to sizeof is dynamic evaluate the argument to compute the length.
6545 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6546 Joel Brobecker <brobecker@adacore.com>
6548 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6549 (dwarf2_evaluate_property): New function.
6550 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6551 * dwarf2read.c (attr_to_dynamic_prop): New function.
6552 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6554 * gdbtypes.c: Include dwarf2loc.h.
6555 (is_dynamic_type): New function.
6556 (resolve_dynamic_type): New function.
6557 (resolve_dynamic_bounds): New function.
6558 (get_type_length): New function.
6559 (check_typedef): Use get_type_length to compute type length.
6560 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6561 (TYPE_LOW_BOUND_KIND): New macro.
6562 (is_dynamic_type): New function prototype.
6563 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6564 to resolve dynamic properties of the type. Update comment.
6565 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6567 2014-04-14 Richard Henderson <rth@redhat.com>
6569 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6571 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6572 Doug Evans <xdje42@gmail.com>
6574 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6575 dereference TYPE_CODE_REF values.
6577 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6579 Revert the following changes due to regressions:
6581 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6582 (dwarf2_evaluate_property): New function.
6583 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6584 * dwarf2read.c (attr_to_dynamic_prop): New function.
6585 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6587 * gdbtypes.c: Include dwarf2loc.h.
6588 (is_dynamic_type): New function.
6589 (resolve_dynamic_type): New function.
6590 (resolve_dynamic_bounds): New function.
6591 (get_type_length): New function.
6592 (check_typedef): Use get_type_length to compute type length.
6593 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6594 (TYPE_LOW_BOUND_KIND): New macro.
6595 (is_dynamic_type): New function prototype.
6596 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6597 to resolve dynamic properties of the type. Update comment.
6598 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6600 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6601 passed to sizeof is dynamic evaluate the argument to compute the length.
6603 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6604 value and retrieve the dynamic type size.
6606 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6607 (ada_template_to_fixed_record_type_1): Likewise.
6608 (ada_to_fixed_type_1): Likewise.
6609 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6610 (cp_print_value): Likewise.
6611 * d-valprint.c (dynamic_array_type): Likewise.
6612 * eval.c (evaluate_subexp_with_coercion): Likewise.
6613 * findvar.c (address_of_variable): Likewise.
6614 * jv-valprint.c (java_value_print): Likewise.
6615 * valops.c (value_ind): Likewise.
6616 * value.c (coerce_ref): Likewise.
6618 * c-typeprint.c (c_type_print_varspec_suffix): Added
6619 check for not yet resolved high bound. If unresolved, print
6620 "variable length" string to the console instead of random
6623 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6624 property and store it as the high bound and flag the range accordingly.
6625 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6626 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6627 * gdbtypes.h (enum range_flags): New enum.
6628 (struct range_bounds): Add flags member.
6630 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6631 points to a constant blob.
6633 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6634 (evaluate_subexp_standard): Pass noside argument.
6635 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6636 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6637 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6638 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6639 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6641 2014-04-11 Keith Seitz <keiths@redhat.com>
6644 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6645 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6648 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6650 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6651 (evaluate_subexp_standard): Pass noside argument.
6652 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6653 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6654 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6655 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6656 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6658 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6660 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6661 points to a constant blob.
6663 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6665 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6666 property and store it as the high bound and flag the range accordingly.
6667 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6668 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6669 * gdbtypes.h (enum range_flags): New enum.
6670 (struct range_bounds): Add flags member.
6672 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6674 * c-typeprint.c (c_type_print_varspec_suffix): Added
6675 check for not yet resolved high bound. If unresolved, print
6676 "variable length" string to the console instead of random
6679 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6681 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6682 (ada_template_to_fixed_record_type_1): Likewise.
6683 (ada_to_fixed_type_1): Likewise.
6684 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6685 (cp_print_value): Likewise.
6686 * d-valprint.c (dynamic_array_type): Likewise.
6687 * eval.c (evaluate_subexp_with_coercion): Likewise.
6688 * findvar.c (address_of_variable): Likewise.
6689 * jv-valprint.c (java_value_print): Likewise.
6690 * valops.c (value_ind): Likewise.
6691 * value.c (coerce_ref): Likewise.
6693 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6695 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6696 value and retrieve the dynamic type size.
6698 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6700 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6701 passed to sizeof is dynamic evaluate the argument to compute the length.
6703 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6705 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6706 (dwarf2_evaluate_property): New function.
6707 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6708 * dwarf2read.c (attr_to_dynamic_prop): New function.
6709 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6711 * gdbtypes.c: Include dwarf2loc.h.
6712 (is_dynamic_type): New function.
6713 (resolve_dynamic_type): New function.
6714 (resolve_dynamic_bounds): New function.
6715 (get_type_length): New function.
6716 (check_typedef): Use get_type_length to compute type length.
6717 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6718 (TYPE_LOW_BOUND_KIND): New macro.
6719 (is_dynamic_type): New function prototype.
6720 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6721 to resolve dynamic properties of the type. Update comment.
6722 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6724 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6726 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6727 declaring high/low bounds and change uses accordingly. Call
6728 create_range_type instead of create_static_range_type.
6729 * gdbtypes.c (create_range_type): New function.
6730 (create_range_type): Convert bounds into struct bound_prop and pass
6731 them to create_range_type.
6732 * gdbtypes.h (struct bound_prop): New struct.
6733 (create_range_type): New function prototype.
6734 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6735 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6736 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6738 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6740 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6742 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6743 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6744 * ada-lang.c: All uses of create_range_type updated.
6745 * coffread.c: All uses of create_range_type updated.
6746 * dwarf2read.c: All uses of create_range_type updated.
6747 * f-exp.y: All uses of create_range_type updated.
6748 * m2-valprint.c: All uses of create_range_type updated.
6749 * mdebugread.c: All uses of create_range_type updated.
6750 * stabsread.c: All uses of create_range_type updated.
6751 * valops.c: All uses of create_range_type updated.
6752 * valprint.c: All uses of create_range_type updated.
6754 2014-04-10 Pedro Alves <palves@redhat.com>
6756 * breakpoint.c (single_step_breakpoints)
6757 (single_step_gdbarch): Move up in the file.
6758 (one_breakpoint_xfer_memory): New function, factored out from ...
6759 (breakpoint_xfer_memory): ... here. Also process single-step
6762 2014-04-09 Tristan Gingold <gingold@adacore.com>
6764 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6766 (darwin_decode_exception_message): Free port only after use.
6768 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6770 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6771 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6772 when setting the size of call_length.
6774 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6776 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6777 dereference TYPE_CODE_REF values.
6779 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6781 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6782 end of warning message.
6784 2014-04-03 Doug Evans <dje@google.com>
6786 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6787 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6789 2014-04-02 Alan Modra <amodra@gmail.com>
6791 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6792 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6793 (struct symbol_file_add_from_memory_args): Add size field.
6794 (find_vdso_size): New function.
6795 (add_vsyscall_page): Attempt to find vdso size.
6797 2014-04-01 Doug Evans <dje@google.com>
6799 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6801 2014-04-01 Tristan Gingold <gingold@adacore.com>
6803 * darwin-nat.c (darwin_encode_reply): Add prototype.
6804 (darwin_decode_exception_message): Reply to unknown inferiors.
6805 (darwin_decode_message): Handle message by id. Ignore message
6806 to unknown inferior.
6807 (darwin_wait): Discard unknown messages, add debug trace.
6809 2014-03-31 Doug Evans <dje@google.com>
6811 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6814 2014-03-31 Doug Evans <dje@google.com>
6816 New option "set print symbol-loading".
6818 * solib.c (solib_read_symbols): Only print symbol loading messages
6820 (solib_add): If symbol loading is in "brief" mode, notify user
6821 symbols are being loaded.
6822 (reload_shared_libraries_1): Ditto.
6823 * symfile.c (print_symbol_loading_off): New static global.
6824 (print_symbol_loading_brief): New static global.
6825 (print_symbol_loading_full): New static global.
6826 (print_symbol_loading_enums): New static global.
6827 (print_symbol_loading): New static global.
6828 (print_symbol_loading_p): New function.
6829 (symbol_file_add_with_addrs): Only print symbol loading messages
6831 (_initialize_symfile): Register "print symbol-loading" set/show
6833 * symfile.h (print_symbol_loading_p): Declare.
6835 2014-03-30 Doug Evans <xdje42@gmail.com>
6837 * infrun.c (set_last_target_status): New function.
6838 (handle_inferior_event): Call it.
6840 2014-03-30 Doug Evans <xdje42@gmail.com>
6842 * inferior.h (enum stop_kind): Improve comment.
6844 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6846 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6847 a reference, strip the reference layer before calling
6848 the lang_ops value_has_mutated callback.
6850 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6852 Remove some globals from our parser.
6853 * language.c (unk_lang_parser): Add "struct parser_state"
6855 * language.h (struct language_defn) <la_parser>: Likewise.
6856 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6857 (initialize_expout): Add "struct parser_state" argument.
6858 Rewrite function to use the parser state.
6859 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6860 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6861 write_exp_elt_longcst, write_exp_elt_dblcst,
6862 write_exp_elt_decfloatcst, write_exp_elt_type,
6863 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6864 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6865 write_dollar_variable): Likewise.
6866 (parse_exp_in_context_1): Use parser state.
6867 (insert_type_address_space): Add "struct parser_state" argument.
6869 (increase_expout_size): New function.
6870 * parser-defs.h: Forward declare "struct language_defn" and
6871 "struct parser_state".
6872 (expout, expout_size, expout_ptr): Remove extern declarations.
6873 (parse_gdbarch, parse_language): Rewrite macro declarations to
6874 accept the parser state.
6875 (struct parser_state): New struct.
6876 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6877 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6878 write_exp_elt_decfloatcst, write_exp_elt_type,
6879 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6880 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6881 write_exp_msymbol, write_dollar_variable,
6882 mark_struct_expression, insert_type_address_space): Add "struct
6883 parser_state" argument.
6884 (increase_expout_size): New function.
6885 * utils.c (do_clear_parser_state): New function.
6886 (make_cleanup_clear_parser_state): Likewise.
6887 * utils.h (make_cleanup_clear_parser_state): New function
6889 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6890 Update calls to write_exp* in order to pass the parser state.
6891 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6892 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6893 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6894 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6895 * stap-probe.c (stap_parse_register_operand): Likewise.
6896 (stap_parse_single_operand): Likewise.
6897 (stap_parse_argument_1): Likewise.
6898 (stap_parse_argument): Use parser state.
6899 * stap-probe.h: Include "parser-defs.h".
6900 (struct stap_parse_info) <pstate>: New field.
6901 * c-exp.y (parse_type): Rewrite to use parser state.
6902 (yyparse): Redefine to c_parse_internal.
6903 (pstate): New global variable.
6904 (parse_number): Add "struct parser_state" argument.
6905 (write_destructor_name): Likewise.
6906 (type_exp): Update calls to write_exp* and similars in order to
6908 (exp1, exp, variable, qualified_name, space_identifier,
6909 typename, typebase): Likewise.
6910 (write_destructor_name, parse_number, lex_one_token,
6911 classify_name, classify_inner_name, c_parse): Add "struct
6912 parser_state" argument. Update function to use parser state.
6913 * c-lang.h: Forward declare "struct parser_state".
6914 (c_parse): Add "struct parser_state" argument.
6915 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6916 (yyparse): Redefine macro to ada_parse_internal.
6917 (pstate): New variable.
6918 (write_int, write_object_renaming, write_var_or_type,
6919 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6920 type_int, type_long, type_long_long, type_float, type_double,
6921 type_long_double, type_char, type_boolean, type_system_address):
6922 Add "struct parser_state" argument.
6923 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6924 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6925 var_or_type, aggregate, aggregate_component_list,
6926 positional_list, others, component_group,
6927 component_associations): Update calls to write_exp* and similar
6928 functions in order to use parser state.
6929 (ada_parse, write_var_from_sym, write_int,
6930 write_exp_op_with_string, write_object_renaming,
6931 find_primitive_type, write_selectors, write_ambiguous_var,
6932 write_var_or_type, write_name_assoc, type_int, type_long,
6933 type_long_long, type_float, type_double, type_long_double,
6934 type_char, type_boolean, type_system_address): Add "struct
6935 parser_state" argument. Adjust function to use parser state.
6936 * ada-lang.c (parse): Likewise.
6937 * ada-lang.h: Forward declare "struct parser_state".
6938 (ada_parse): Add "struct parser_state" argument.
6939 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6940 calls to both functions.
6941 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6943 (yyparse): Redefine macro to f_parse_internal.
6944 (pstate): New variable.
6945 (parse_number): Add "struct parser_state" argument.
6946 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6947 and similars in order to use parser state.
6948 (parse_number): Adjust code to use parser state.
6950 (f_parse): New function.
6951 * f-lang.h: Forward declare "struct parser_state".
6952 (f_parse): Add "struct parser_state" argument.
6953 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6955 (yyparse): Redefine macro for java_parse_internal.
6956 (pstate): New variable.
6957 (push_expression_name, push_expression_name, insert_exp): Add
6958 "struct parser_state" argument.
6959 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6960 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6961 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6962 PostIncrementExpression, PostDecrementExpression,
6963 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6964 UnaryExpressionNotPlusMinus, CastExpression,
6965 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6966 RelationalExpression, EqualityExpression, AndExpression,
6967 ExclusiveOrExpression, InclusiveOrExpression,
6968 ConditionalAndExpression, ConditionalOrExpression,
6969 ConditionalExpression, Assignment, LeftHandSide): Update
6970 calls to write_exp* and similars in order to use parser state.
6971 (parse_number): Ajust code to use parser state.
6973 (java_parse): New function.
6974 (push_variable): Add "struct parser_state" argument. Adjust
6975 code to user parser state.
6976 (push_fieldnames, push_qualified_expression_name,
6977 push_expression_name, insert_exp): Likewise.
6978 * jv-lang.h: Forward declare "struct parser_state".
6979 (java_parse): Add "struct parser_state" argument.
6980 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6982 (yyparse): Redefine macro to m2_parse_internal.
6983 (pstate): New variable.
6984 (type_exp, exp, fblock, variable, type): Update calls to
6985 write_exp* and similars to use parser state.
6987 (m2_parse): New function.
6988 * m2-lang.h: Forward declare "struct parser_state".
6989 (m2_parse): Add "struct parser_state" argument.
6990 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6991 * objc-lang.h: Forward declare "struct parser_state".
6992 (end_msglist): Add "struct parser_state" argument.
6993 * p-exp.y (parse_type): Rewrite macro to use parser state.
6994 (yyparse): Redefine macro to pascal_parse_internal.
6995 (pstate): New variable.
6996 (parse_number): Add "struct parser_state" argument.
6997 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6998 write_exp* and similars in order to use parser state.
6999 (parse_number, yylex): Adjust code to use parser state.
7000 (pascal_parse): New function.
7001 * p-lang.h: Forward declare "struct parser_state".
7002 (pascal_parse): Add "struct parser_state" argument.
7003 * go-exp.y (parse_type): Rewrite macro to use parser state.
7004 (yyparse): Redefine macro to go_parse_internal.
7005 (pstate): New variable.
7006 (parse_number): Add "struct parser_state" argument.
7007 (type_exp, exp1, exp, variable, type): Update calls to
7008 write_exp* and similars in order to use parser state.
7009 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7010 to use parser state.
7011 (go_parse): Likewise.
7012 * go-lang.h: Forward declare "struct parser_state".
7013 (go_parse): Add "struct parser_state" argument.
7015 2014-03-27 Doug Evans <dje@google.com>
7017 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7019 2014-03-27 Doug Evans <dje@google.com>
7021 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7022 Remove argument abbrev_section. All callers updated.
7024 2014-03-27 Doug Evans <dje@google.com>
7026 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7027 addr_base, ranges_base.
7029 2014-03-26 Keith Seitz <keiths@redhat.com>
7031 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7032 types, not VAR_DOMAIN.
7034 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7036 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7038 * features/nios2-linux.c: Regenerated.
7039 * features/nios2.c: Regenerated.
7041 2014-03-25 Pedro Alves <palves@redhat.com>
7043 * cli/cli-script.c (script_from_file): Force the interpreter to
7046 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7048 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7049 small stack allocation.
7051 2014-03-24 Tristan Gingold <gingold@adacore.com>
7053 * darwin-nat.c (exc_server): Remove unused prototype.
7054 (darwin_dump_message): Correctly display data on x86_64.
7055 (darwin_encode_reply): Fix style.
7056 Add comments and fix indentation.
7058 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7060 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7062 2014-03-22 Doug Evans <xdje42@gmail.com>
7064 * infcmd.c: Whitespace fixes.
7065 (interrupt_command): Merge two function comments into one.
7067 2014-03-22 Doug Evans <xdje42@gmail.com>
7069 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7072 2014-03-22 Yao Qi <yao@codesourcery.com>
7074 * remote.c (target_read_live_memory): Remove.
7075 (memory_xfer_live_readonly_partial): Rename it to
7076 remote_xfer_live_readonly_partial. Remove argument 'object'.
7077 All callers updated. Call remote_read_bytes_1
7078 instead of target_read_live_memory.
7079 * tracepoint.c (set_traceframe_number): Remove.
7080 (make_cleanup_restore_traceframe_number): Likewise .
7081 * tracepoint.h (set_traceframe_number): Remove declaration.
7082 (make_cleanup_restore_traceframe_number): Likewise.
7084 2014-03-22 Yao Qi <yao@codesourcery.com>
7086 * remote.c (remote_read_bytes): Move code on reading from the
7088 (remote_read_bytes_1): ... here. New function.
7090 2014-03-22 Yao Qi <yao@codesourcery.com>
7092 * ctf.c (ctf_xfer_partial): Check the return value of
7093 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7094 return TARGET_XFER_UNAVAILABLE.
7095 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7096 * target.c (target_read_live_memory): Move it to remote.c.
7097 (memory_xfer_live_readonly_partial): Likewise.
7098 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7099 * remote.c (target_read_live_memory): Moved from target.c.
7100 (memory_xfer_live_readonly_partial): Likewise.
7101 (remote_read_bytes): Factored out from
7102 memory_xfer_partial_1.
7104 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7106 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7109 2014-03-21 Pedro Alves <palves@redhat.com>
7111 * infrun.c (normal_stop): Extend comment.
7113 2014-03-21 Hui Zhu <hui@codesourcery.com>
7114 Pedro Alves <palves@redhat.com>
7116 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7118 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7119 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7120 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7122 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7124 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7125 `z' formatted output modifier.
7127 2014-03-20 Tom Tromey <tromey@redhat.com>
7128 Sergio Durigan Junior <sergiodj@redhat.com>
7130 * probe.c (parse_probes): Turn assert into an ordinary error.
7131 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7132 exceptions when parsing probes. Rearrange the code for clarity.
7134 2014-03-20 Tom Tromey <tromey@redhat.com>
7137 * top.c (execute_command): Only dispatch events if the command
7140 2014-03-20 Tom Tromey <tromey@redhat.com>
7143 * infcall.c: Include event-top.h.
7144 (run_inferior_call): Call async_disable_stdin if needed.
7146 2014-03-20 Pedro Alves <palves@redhat.com>
7148 * infrun.c (prepare_to_proceed): Delete.
7149 (thread_still_needs_step_over): New function.
7150 (find_thread_needs_step_over): New function.
7151 (proceed): If the current thread needs a step-over, set its
7152 steping_over_breakpoint flag. Adjust to use
7153 find_thread_needs_step_over instead of prepare_to_proceed.
7154 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7155 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7157 (switch_back_to_stepped_thread): Step over breakpoints of all
7158 threads not the stepping thread, before switching back to the
7161 2014-03-20 Pedro Alves <palves@redhat.com>
7163 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7165 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7166 * infrun.c (saved_singlestep_ptid)
7167 (stepping_past_singlestep_breakpoint): Delete.
7168 (resume): Remove stepping_past_singlestep_breakpoint handling.
7169 (proceed): Store the prev_pc of the stepping thread too.
7170 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7172 (enum infwait_states): Delete infwait_thread_hop_state.
7173 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7175 (handle_inferior_event): Adjust.
7176 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7177 handling and the thread-hop code. Before removing single-step
7178 breakpoints, check whether the thread hit a single-step breakpoint
7179 of another thread. If it did, the trap is not a random signal.
7180 (switch_back_to_stepped_thread): If the event thread hit a
7181 single-step breakpoint, unblock it before switching to the
7182 stepping thread. Handle the case of the stepped thread having
7184 (keep_going): Handle the case of the current thread moving past a
7185 single-step breakpoint.
7187 2014-03-20 Pedro Alves <palves@redhat.com>
7190 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7191 are being stepped over.
7192 (breakpoint_address_match): Make extern.
7193 * breakpoint.h (breakpoint_address_match): New declaration.
7194 * inferior.h (stepping_past_instruction_at): New declaration.
7195 * infrun.c (struct step_over_info): New type.
7196 (step_over_info): New global.
7197 (set_step_over_info, clear_step_over_info)
7198 (stepping_past_instruction_at): New functions.
7199 (handle_inferior_event): Clear the step-over info when
7200 trap_expected is cleared.
7201 (resume): Remove now stale comment.
7202 (clear_proceed_status): Clear step-over info.
7203 (proceed): Adjust step-over handling to set or clear the step-over
7204 info instead of removing all breakpoints.
7205 (handle_signal_stop): When setting up a thread-hop, don't remove
7207 (stop_stepping): Clear step-over info.
7208 (keep_going): Adjust step-over handling to set or clear step-over
7209 info and then always inserting breakpoints, instead of removing
7210 all breakpoints when stepping over one.
7212 2014-03-20 Pedro Alves <palves@redhat.com>
7214 * infrun.c (previous_inferior_ptid): Adjust comment.
7215 (deferred_step_ptid): Delete.
7216 (infrun_thread_ptid_changed, prepare_to_proceed)
7217 (init_wait_for_inferior): Adjust.
7218 (handle_signal_stop): Delete deferred_step_ptid handling.
7220 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7223 * defs.h (sync_quit_force_run): New declaration.
7224 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7225 * event-top.c (async_sigterm_handler): New declaration.
7226 (async_sigterm_token): New variable.
7227 (async_init_signals): Create also async_sigterm_token.
7228 (async_sigterm_handler): New function.
7229 (sync_quit_force_run): New variable.
7230 (handle_sigterm): Replace quit_force call by other calls.
7231 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7233 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7235 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7236 offset into SPE pseudo registers.
7238 2014-03-18 Pedro Alves <palves@redhat.com>
7241 * inferior.h (print_stop_event): Declare.
7242 * infrun.c (print_stop_event): New, factored out from ...
7243 (normal_stop): ... this.
7244 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7245 of bpstat_print/print_stack_frame.
7247 2014-03-17 Tom Tromey <tromey@redhat.com>
7249 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7251 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7253 * ada-lang.c (decode_constrained_packed_array): Perform a
7254 minimal coercion for reference with coerce_ref instead of
7257 2014-03-17 Tristan Gingold <gingold@adacore.com>
7259 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7260 (darwin_solib_create_inferior_hook): Emit a warning if version
7263 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7265 * python/py-value.c (get_field_flag): Cast flag_name argument to
7266 PyObject_GetAttrString to support Python 2.4.
7268 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7270 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7271 (Global Maintainers): Remove Jan Kratochvil.
7273 2014-03-14 Pedro Alves <palves@redhat.com>
7275 * inferior.h (terminal_ours_for_output): Rename to ...
7276 (child_terminal_ours_for_output): ... this.
7277 (terminal_save_ours): Rename to ...
7278 (child_terminal_save_ours): ... this.
7279 (terminal_ours): Rename to ...
7280 (child_terminal_ours): ... this.
7281 (terminal_inferior): Rename to ...
7282 (child_terminal_inferior): ... this.
7283 (terminal_init_inferior): Rename to ...
7284 (child_terminal_init_inferior): ... this.
7285 (terminal_init_inferior_with_pgrp): Rename to ...
7286 (child_terminal_init_inferior_with_pgrp): ... this.
7287 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7288 (child_terminal_init_with_pgrp): ... this.
7289 (terminal_save_ours): Rename to ...
7290 (child_terminal_save_ours): ... this.
7291 (terminal_init_inferior): Rename to ...
7292 (child_terminal_init): ... this. Adjust.
7293 (terminal_inferior): Rename to ...
7294 (child_terminal_inferior): ... this.
7295 (terminal_ours_for_output): Rename to ...
7296 (child_terminal_ours_for_output): ... this. Adjust.
7297 (terminal_ours): Rename to ...
7298 (child_terminal_ours): ... this.
7299 (terminal_ours_1): Rename to ...
7300 (child_terminal_ours_1): ... this. Adjust.
7301 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7302 * windows-nat.c (do_initial_windows_stuff): Adjust.
7303 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7304 (gnu_terminal_init): ... this. Adjust.
7305 (gnu_target): Adjust.
7306 * inf-child.c (inf_child_target): Adjust.
7308 2014-03-13 Doug Evans <xdje42@gmail.com>
7311 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7314 2014-03-13 Doug Evans <xdje42@gmail.com>
7316 * value.c (record_latest_value): Call release_value_or_incref
7317 instead of release_value.
7319 2014-03-13 Pedro Alves <palves@redhat.com>
7321 * procfs.c (procfs_target): Don't override to_shortname,
7322 to_longname or to_doc.
7324 2014-03-13 Pedro Alves <palves@redhat.com>
7326 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7327 Unix in user visible strings.
7329 2014-03-12 Stan Shebs <stan@codesourcery.com>
7331 * gdbtypes.h: Annotate comments for Doxygen, add a page
7332 block comment with some general info.
7334 2014-03-12 Pedro Alves <palves@redhat.com>
7336 * infcmd.c (prepare_execution_command): New function, factored out
7337 from several execution commands.
7338 (run_command_1, continue_command, step_1, jump_command)
7339 (signal_command, until_command, advance_command, finish_command)
7340 (attach_command): Use prepare_execution_command.
7342 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7344 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7347 (struct arm_linux_thread_points): Removed.
7348 (struct arm_linux_process_info): New.
7349 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7350 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7351 (arm_linux_find_breakpoints_by_tid): Removed.
7352 (struct arch_lwp_info): New.
7353 (arm_linux_find_process_pid): New functions.
7354 (arm_linux_add_process): New functions.
7355 (arm_linux_process_info_get): New functions.
7356 (arm_linux_forget_process): New function.
7357 (arm_linux_get_debug_reg_state): New function.
7358 (struct update_registers_data): New.
7359 (update_registers_callback): New function.
7360 (arm_linux_insert_hw_breakpoint1): Updated.
7361 (arm_linux_remove_hw_breakpoint1): Updated.
7362 (arm_linux_insert_hw_breakpoint): Updated.
7363 (arm_linux_remove_hw_breakpoint): Updated.
7364 (arm_linux_insert_watchpoint): Updated.
7365 (arm_linux_remove_watchpoint): Updated.
7366 (arm_linux_new_thread): Updated.
7367 (arm_linux_prepare_to_resume): New function.
7368 (arm_linux_new_fork): New function.
7369 (_initialize_arm_linux_nat): Updated.
7371 2014-03-12 Pedro Alves <palves@redhat.com>
7373 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7375 2014-03-12 Tom Tromey <tromey@redhat.com>
7377 * inf-child.c (return_zero): New function.
7378 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7379 * aix-thread.c (aix_thread_inferior_created): New function.
7380 (aix_thread_attach): Remove.
7381 (init_aix_thread_ops): Don't set to_attach.
7382 (_initialize_aix_thread): Register inferior_created observer.
7383 * corelow.c (init_core_ops): Don't set to_attach or
7385 * exec.c (init_exec_ops): Don't set to_attach or
7387 * infcmd.c (run_command_1): Use find_run_target. Make direct
7389 (attach_command): Use find_attach_target. Make direct target
7391 * record-btrace.c (init_record_btrace_ops): Don't set
7393 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7395 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7396 set to_create_inferior.
7397 * target.c (complete_target_initialization): Add assertion.
7398 (target_create_inferior): Remove.
7399 (find_default_attach, find_default_create_inferior): Remove.
7400 (find_attach_target, find_run_target): New functions.
7401 (find_default_is_async_p, find_default_can_async_p)
7402 (target_supports_non_stop, target_attach): Remove.
7403 (init_dummy_target): Don't set to_create_inferior or
7404 to_supports_non_stop.
7405 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7406 TARGET_DEFAULT_FUNC.
7407 <to_create_inferior>: Add comment.
7408 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7409 TARGET_DEFAULT_RETURN.
7410 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7411 (find_attach_target, find_run_target): Declare.
7412 (target_create_inferior): Remove.
7413 (target_has_execution_1): Update comment.
7414 (target_supports_non_stop): Remove.
7415 * target-delegates.c: Rebuild.
7417 2014-03-12 Pedro Alves <palves@redhat.com>
7419 * inf-child.h: Update comment to not mention Unix.
7421 2014-03-12 Pedro Alves <palves@redhat.com>
7423 * inf-child.c: Update top comment to not mention Unix. Add
7424 generic comment describing how this target is meant to be used.
7425 (inf_child_post_attach, inf_child_post_startup_inferior)
7426 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7429 2014-03-12 Pedro Alves <palves@redhat.com>
7431 * nto-procfs.c: Include inf-child.h.
7432 (procfs_ops): Delete global.
7433 (procfs_can_run): Delete method.
7434 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7435 target pointer instead of referencing procfs_ops.
7436 (procfs_prepare_to_store): Delete.
7437 (init_procfs_ops): Delete function.
7438 (procfs_target): New function, based on init_procfs_ops, but
7439 inherit inf_child_target.
7440 (_initialize_procfs): Use procfs_target.
7442 2014-03-12 Pedro Alves <palves@redhat.com>
7444 * windows-nat.c: Include inf-child.h.
7445 (windows_ops): Delete global.
7446 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7448 (init_windows_ops): Delete function.
7449 (windows_target): New function, based on init_windows_ops, but
7450 inherit inf_child_target.
7451 (_initialize_windows_nat): Use windows_target. Install x86
7452 specific target methods here.
7454 2014-03-10 Doug Evans <xdje42@gmail.com>
7456 * guile/guile.c (call_initialize_gdb_module): New function.
7457 (initialize_guile): Replace call to scm_init_guile with call to
7460 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7462 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7463 in call to TYPE_CODE macro.
7465 2014-03-10 Jerome Guitton <guitton@adacore.com>
7467 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7468 Resolve tagged types to full view.
7470 2014-03-10 Hui Zhu <hui@codesourcery.com>
7472 * target.h (target_insert_breakpoint): Remove "hardware" from its
7475 2014-03-07 Doug Evans <dje@google.com>
7477 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7479 2014-03-07 Doug Evans <dje@google.com>
7481 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7482 Remove unused local comp_dir_attr. Assert exactly one of
7483 stub_comp_unit_die, stub_comp_dir is non-NULL.
7485 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7487 * target.h (complete_target_initialization, add_target):
7490 2014-03-07 Pedro Alves <palves@redhat.com>
7492 * go32-nat.c: Include inf-child.h.
7493 (go32_ops): Delete global.
7494 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7496 (go32_create_inferior): Push the passed in target pointer instead
7497 of referencing go32_ops.
7498 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7499 (go32_target): New function, based on init_go32_ops, but inherit
7501 (_initialize_go32_nat): Use go32_target. Move parts of
7504 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7506 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7507 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7508 SYMBOL_VALUE_ADDRESS.
7509 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7511 2014-03-06 Yao Qi <yao@codesourcery.com>
7513 * breakpoint.c (get_tracepoint_by_number): Remove argument
7514 optional_p. All callers updated. Adjust comments. Update
7516 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7518 2014-03-06 Yao Qi <yao@codesourcery.com>
7520 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7521 early if get_number returns zero. Use 'p' instead of 'args'.
7523 2014-03-06 Yao Qi <yao@codesourcery.com>
7525 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7528 2014-03-06 Yao Qi <yao@codesourcery.com>
7530 PR breakpoints/16508
7531 * tracepoint.c (check_trace_running): New function.
7532 (trace_find_command): Move code to check_trace_running and
7533 call check_trace_running.
7534 (trace_find_pc_command): Likewise.
7535 (trace_find_tracepoint_command): Likewise.
7536 (trace_find_line_command): Likewise.
7537 (trace_find_range_command): Likewise.
7538 * tracepoint.h (check_trace_running): Likewise.
7539 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7541 2014-03-06 Yao Qi <yao@codesourcery.com>
7543 * target.h (struct target_ops) <to_traceframe_info>: Use
7544 TARGET_DEFAULT_NORETURN (tcomplain ()).
7545 * target-delegates.c: Regenerated.
7547 2014-03-05 Pedro Alves <palves@redhat.com>
7550 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7551 void. Update comment.
7552 (dcache_xfer_memory): Delete.
7553 (dcache_read_memory_partial): New, based on the read bits of
7555 (dcache_update): Add status parameter. Use ULONGEST for len, and
7556 adjust. Discard cache lines if the reason for the update was
7558 * dcache.h (dcache_xfer_memory): Delete declaration.
7559 (dcache_read_memory_partial): New declaration.
7560 (dcache_update): Update prototype.
7561 * target.c (raw_memory_xfer_partial): Update the dcache here.
7562 (memory_xfer_partial_1): Don't handle dcache writes here.
7564 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7566 * remote-sim.c (gdbsim_load): Add const to prog.
7568 2014-03-03 Tom Tromey <tromey@redhat.com>
7570 * elfread.c (probe_key): Change to bfd_data.
7571 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7572 now per-BFD, not per-objfile.
7573 * stap-probe.c (stap_probe_destroy): Update comment.
7574 (handle_stap_probe): Allocate on the per-BFD obstack.
7576 2014-03-03 Tom Tromey <tromey@redhat.com>
7578 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7579 * breakpoint.c (create_longjmp_master_breakpoint): Use
7581 (add_location_to_breakpoint, bkpt_probe_insert_location)
7582 (bkpt_probe_remove_location): Update.
7583 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7584 * elfread.c (elf_symfile_relocate_probe): Remove.
7585 (elf_probe_fns): Update.
7586 (insert_exception_resume_breakpoint): Change type of "probe"
7587 parameter to bound_probe.
7588 (check_exception_resume): Update.
7589 * objfiles.c (objfile_relocate1): Don't relocate probes.
7590 * probe.c (bound_probe_s): New typedef.
7591 (parse_probes): Use get_probe_address. Set sal's objfile.
7592 (find_probe_by_pc): Return a bound_probe.
7593 (collect_probes): Return a VEC(bound_probe_s).
7594 (compare_probes): Update.
7595 (gen_ui_out_table_header_info): Change type of "probes"
7597 (info_probes_for_ops): Update.
7598 (get_probe_address): New function.
7599 (probe_safe_evaluate_at_pc): Update.
7600 * probe.h (struct probe_ops) <get_probe_address>: New field.
7601 <set_semaphore, clear_semaphore>: Add objfile parameter.
7602 (struct probe) <objfile>: Remove field.
7604 <address>: Update comment.
7605 (struct bound_probe): New.
7606 (find_probe_by_pc): Return a bound_probe.
7607 (get_probe_address): Declare.
7608 * solib-svr4.c (struct probe_and_action) <address>: New field.
7609 (hash_probe_and_action, equal_probe_and_action): Update.
7610 (register_solib_event_probe): Add address parameter.
7611 (solib_event_probe_at): Update.
7612 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7614 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7615 (stap_get_probe_address): New function.
7616 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7617 (compile_probe_arg): Update.
7618 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7620 (handle_stap_probe): Don't relocate the probe.
7621 (stap_relocate): Remove.
7622 (stap_gen_info_probes_table_values): Update.
7623 (stap_probe_ops): Remove stap_relocate.
7624 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7625 (debug_sym_probe_fns): Update.
7626 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7627 * symtab.c (init_sal): Use memset.
7628 * symtab.h (struct symtab_and_line) <objfile>: New field.
7629 * tracepoint.c (start_tracing, stop_tracing): Update.
7631 2014-03-03 Tom Tromey <tromey@redhat.com>
7633 * probe.h (parse_probes, find_probe_by_pc)
7634 (find_probes_in_objfile): Fix comments.
7636 2014-03-02 Doug Evans <xdje42@gmail.com>
7638 * infrun.c (handle_signal_stop): Replace test for
7639 TARGET_WAITKIND_STOPPED with an assert.
7641 2014-03-02 Doug Evans <xdje42@gmail.com>
7643 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7645 2014-03-02 Doug Evans <xdje42@gmail.com>
7647 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7649 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7651 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7653 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7655 * i386obsd-nat.c: Include "obsd-nat.h".
7656 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7658 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7660 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7662 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7664 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7666 * mips64obsd-nat.c: Include "obsd-nath".
7667 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7669 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7671 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7673 * amd64obsd-nat.c: Include "obsd-nat,h.
7674 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7676 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7678 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7680 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7681 (find_overload_match): Update call to find_oload_champ.
7682 (find_oload_champ_namespace_loop): Likewise
7684 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7686 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7688 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7689 * config/sparc/obsd64.mh: New file.
7690 * sparc64obsd-nat.c: New file.
7692 * obsd-nat.h: New file.
7693 * obsd-nat.c: New file.
7694 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7695 (ALLDEPFILES): Add obsd-nat.c.
7697 2014-02-28 Tom Tromey <tromey@redhat.com>
7699 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7700 * cli-out.h (cli_ui_out_impl): Now const.
7701 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7702 * ui-out.c (struct ui_out) <impl>: Now const.
7703 (default_ui_out_impl): Now const.
7704 (ui_out_new): Make 'impl' parameter const.
7705 * ui-out.h (ui_out_new): Update.
7707 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7709 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7711 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7713 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7715 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7717 Additional PR 8882 fix.
7718 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7720 2014-02-27 Pedro Alves <palves@redhat.com>
7722 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7725 2014-02-27 Pedro Alves <palves@redhat.com>
7728 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7729 * nat/linux-waitpid.c: Include string.h.
7730 (status_to_str): Moved here and made extern.
7731 * nat/linux-waitpid.h (status_to_str): New declaration.
7733 2014-02-27 Hui Zhu <hui@codesourcery.com>
7736 * infrun.c (ptid_match): Move ...
7737 * common/ptid.c (ptid_match): ... here.
7738 * inferior.h (ptid_match): Move ...
7739 * common/ptid.h (ptid_match): ... here.
7741 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7743 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7744 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7747 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7749 * obsd-tdep.c (obsd_auxv_parse): New function.
7750 (obsd_init_abi): Set auxv_parse.
7752 * gdbarch.sh (auxv_parse): New.
7753 * gdbarch.h: Regenerated.
7754 * gdbarch.c: Regenerated.
7755 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7757 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7759 * guile/scm-value.c (gdbscm_history_append_x): New function.
7760 (value_functions): Add it.
7762 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7764 * dwarf2read.c (attr_value_as_address): New function.
7765 (dwarf2_find_base_address, read_call_site_scope): Use
7766 attr_value_as_address in place of DW_ADDR.
7767 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7768 the low and high addresses. Slight rework of the handling
7769 of the high pc being a constant form, and limit it to
7770 DWARF verson 4 or higher.
7771 (dwarf2_record_block_ranges): Likewise.
7772 (read_partial_die): Likewise.
7773 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7775 2014-02-26 Tom Tromey <tromey@redhat.com>
7777 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7779 2014-02-26 Tom Tromey <tromey@redhat.com>
7781 * elfread.c (elf_read_minimal_symbols): Return early if
7782 minimal symbols have already been read. Add "ei" parameter.
7783 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7784 * minsyms.c (prim_record_minimal_symbol_full): Update.
7785 * objfiles.h (struct objstats) <n_minsyms>: Move...
7786 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7787 * symmisc.c (print_objfile_statistics): Update.
7789 2014-02-26 Tom Tromey <tromey@redhat.com>
7791 * elfread.c (elf_read_minimal_symbols): New function, from
7793 (elf_symfile_read): Call it.
7795 2014-02-26 Tom Tromey <tromey@redhat.com>
7797 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7798 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7799 (lookup_minimal_symbol_solib_trampoline)
7800 (lookup_minimal_symbol_by_pc_section_1)
7801 (lookup_minimal_symbol_and_objfile): Update.
7802 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7803 Don't allocate a minimal symbol if minsyms have already been read.
7804 (build_minimal_symbol_hash_tables): Update.
7805 (install_minimal_symbols): Do nothing if minsyms already read.
7806 Use the per-BFD obstack.
7807 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7808 * objfiles.c (allocate_objfile): Call
7809 terminate_minimal_symbol_table later.
7810 (have_minimal_symbols): Update.
7811 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7812 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7813 Move from struct objfile.
7814 <minsyms_read>: New field.
7815 (struct objfile) <msymbols, minimal_symbol_count,
7816 msymbol_hash, msymbol_demangled_hash>: Move.
7817 (ALL_OBJFILE_MSYMBOLS): Update.
7818 * symfile.c (read_symbols): Set minsyms_read.
7819 (reread_symbols): Update.
7820 * symmisc.c (dump_objfile, dump_msymbols): Update.
7822 2014-02-26 Tom Tromey <tromey@redhat.com>
7824 * minsyms.c (msymbols_sort): Remove.
7825 * minsyms.h (msymbols_sort): Remove.
7826 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7827 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7828 * elfread.c (elf_symtab_read): Don't add section offsets.
7829 * xcoffread.c (record_minimal_symbol): Don't add section offset
7830 to minimal symbol address.
7831 * somread.c (text_offset, data_offset): Remove.
7832 (som_symtab_read): Don't add section offsets to minimal symbol
7834 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7835 Don't add section offsets to minimal symbols.
7836 * coffread.c (coff_symtab_read): Don't add section offsets
7837 to minimal symbol addresses.
7838 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7839 to minimal symbol addresses.
7840 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7841 section offset to minimal symbol addresses.
7842 * mdebugread.c (parse_partial_symbols): Don't add section
7843 offset to minimal symbol addresses.
7844 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7845 offset to minimal symbol addresses.
7847 2014-02-26 Tom Tromey <tromey@redhat.com>
7849 * ada-lang.c (ada_main_name): Update.
7850 (ada_add_standard_exceptions): Update.
7851 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7852 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7853 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7854 * auxv.c (ld_so_xfer_auxv): Update.
7855 * avr-tdep.c (avr_scan_prologue): Update.
7856 * ax-gdb.c (gen_var_ref): Update.
7857 * blockframe.c (get_pc_function_start)
7858 (find_pc_partial_function_gnu_ifunc): Update.
7859 * breakpoint.c (create_overlay_event_breakpoint)
7860 (create_longjmp_master_breakpoint)
7861 (create_std_terminate_master_breakpoint)
7862 (create_exception_master_breakpoint): Update.
7863 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7864 * c-valprint.c (c_val_print): Update.
7865 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7866 * common/agent.c (agent_look_up_symbols): Update.
7867 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7868 * dwarf2loc.c (call_site_to_target_addr): Update.
7869 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7870 * elfread.c (elf_gnu_ifunc_record_cache)
7871 (elf_gnu_ifunc_resolve_by_got): Update.
7872 * findvar.c (default_read_var_value): Update.
7873 * frame.c (inside_main_func): Update.
7874 * frv-tdep.c (frv_frame_this_id): Update.
7875 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7876 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7878 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7879 (hppa_hpux_find_dummy_bpaddr): Update.
7880 * hppa-tdep.c (hppa_symbol_address): Update.
7881 * infcmd.c (until_next_command): Update.
7882 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7884 * linespec.c (minsym_found, add_minsym): Update.
7885 * linux-nat.c (get_signo): Update.
7886 * linux-thread-db.c (inferior_has_bug): Update.
7887 * m32c-tdep.c (m32c_return_value)
7888 (m32c_m16c_address_to_pointer): Update.
7889 * m32r-tdep.c (m32r_frame_this_id): Update.
7890 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7891 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7892 * maint.c (maintenance_translate_address): Update.
7893 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7894 (frob_address): New function.
7895 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7896 frob_address. Rename parameter to "pc_in".
7897 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7899 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7901 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7902 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7903 * objc-lang.c (find_objc_msgsend): Update.
7904 * objfiles.c (objfile_relocate1): Update.
7905 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7906 * p-valprint.c (pascal_val_print): Update.
7907 * parse.c (write_exp_msymbol): Update.
7908 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7909 (ppc_elfv2_skip_entrypoint): Update.
7910 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7911 * printcmd.c (build_address_symbolic, msym_info)
7912 (address_info): Update.
7913 * proc-service.c (ps_pglobal_lookup): Update.
7914 * psymtab.c (find_pc_sect_psymtab_closer)
7915 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7916 Change msymbol parameter to bound_minimal_symbol.
7917 * ravenscar-thread.c (get_running_thread_id): Update.
7918 * remote.c (remote_check_symbols): Update.
7919 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7921 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7922 * solib-dsbt.c (lm_base): Update.
7923 * solib-frv.c (lm_base, main_got): Update.
7924 * solib-irix.c (locate_base): Update.
7925 * solib-som.c (som_solib_create_inferior_hook)
7926 (link_map_start): Update.
7927 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7928 * solib-svr4.c (elf_locate_base, enable_break): Update.
7929 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7930 (flush_ea_cache): Update.
7931 * stabsread.c (define_symbol, scan_file_globals): Update.
7932 * stack.c (find_frame_funname): Update.
7933 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7934 (debug_qf_find_pc_sect_symtab): Update.
7935 * symfile.c (simple_read_overlay_table)
7936 (simple_overlay_update): Update.
7937 * symfile.h (struct quick_symbol_functions)
7938 <find_pc_sect_symtab>: Change type of msymbol to
7939 bound_minimal_symbol.
7940 * symmisc.c (dump_msymbols): Update.
7941 * symtab.c (find_pc_sect_symtab_via_partial)
7942 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7943 (search_symbols, print_msymbol_info): Update.
7944 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7945 (MSYMBOL_VALUE_ADDRESS): Redefine.
7946 (BMSYMBOL_VALUE_ADDRESS): New macro.
7947 * tracepoint.c (scope_info): Update.
7948 * tui/tui-disasm.c (tui_find_disassembly_address)
7949 (tui_get_begin_asm_address): Update.
7950 * valops.c (find_function_in_inferior): Update.
7951 * value.c (value_static_field, value_fn_field): Update.
7953 2014-02-26 Tom Tromey <tromey@redhat.com>
7955 * ada-lang.c (ada_update_initial_language): Update.
7956 (ada_main_name, ada_has_this_exception_support): Update.
7957 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7958 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7959 * arm-tdep.c (arm_skip_stub): Update.
7960 * auxv.c (ld_so_xfer_auxv): Update.
7961 * avr-tdep.c (avr_scan_prologue): Update.
7962 * ax-gdb.c (gen_var_ref): Update.
7963 * breakpoint.c (struct breakpoint_objfile_data)
7964 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7965 type to bound_minimal_symbol.
7966 (create_overlay_event_breakpoint)
7967 (create_longjmp_master_breakpoint)
7968 (create_std_terminate_master_breakpoint)
7969 (create_exception_master_breakpoint): Update.
7970 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7971 * c-exp.y (classify_name): Update.
7972 * coffread.c (coff_symfile_read): Update.
7973 * common/agent.c (agent_look_up_symbols): Update.
7974 * d-lang.c (d_main_name): Update.
7975 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7976 * dec-thread.c (enable_dec_thread): Update.
7977 * dwarf2loc.c (call_site_to_target_addr): Update.
7978 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7979 * eval.c (evaluate_subexp_standard): Update.
7980 * findvar.c (struct minsym_lookup_data) <result>: Change type
7981 to bound_minimal_symbol.
7983 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7984 * frame.c (inside_main_func): Update.
7985 * frv-tdep.c (frv_frame_this_id): Update.
7986 * gcore.c (call_target_sbrk): Update.
7987 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7988 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7990 * go-lang.c (go_main_name): Update.
7991 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7992 (hppa_hpux_find_import_stub_for_addr): Update.
7993 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7994 Update. Change return type.
7995 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7997 * jit.c (jit_breakpoint_re_set_internal): Update.
7998 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8000 * linux-nat.c (get_signo): Update.
8001 * linux-thread-db.c (inferior_has_bug): Update
8002 * m32c-tdep.c (m32c_return_value)
8003 (m32c_m16c_address_to_pointer): Update.
8004 * m32r-tdep.c (m32r_frame_this_id): Update.
8005 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8006 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8007 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8008 lookup_minimal_symbol. Change return type.
8009 (lookup_minimal_symbol): Remove.
8010 (lookup_bound_minimal_symbol): Update.
8011 (lookup_minimal_symbol_text): Change return type.
8012 (lookup_minimal_symbol_solib_trampoline): Change return type.
8013 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8014 (lookup_minimal_symbol_solib_trampoline): Change return type.
8015 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8016 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8017 (value_nsstring, find_imps): Update.
8018 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8019 * p-lang.c (pascal_main_name): Update.
8020 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8021 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8022 * proc-service.c (ps_pglobal_lookup): Update.
8023 * ravenscar-thread.c (get_running_thread_msymbol): Change
8025 (has_ravenscar_runtime, get_running_thread_id): Update.
8026 * remote.c (remote_check_symbols): Update.
8027 * sol-thread.c (ps_pglobal_lookup): Update.
8028 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8029 * solib-dsbt.c (lm_base): Update.
8030 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8032 * solib-irix.c (locate_base): Update.
8033 * solib-som.c (som_solib_create_inferior_hook)
8034 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8036 * solib-spu.c (spu_enable_break): Update.
8037 * solib-svr4.c (elf_locate_base, enable_break): Update.
8038 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8039 (flush_ea_cache): Update.
8040 * stabsread.c (define_symbol): Update.
8041 * symfile.c (simple_read_overlay_table): Update.
8042 * symtab.c (find_pc_sect_line): Update.
8043 * tracepoint.c (scope_info): Update.
8044 * tui-disasm.c (tui_get_begin_asm_address): Update.
8045 * value.c (value_static_field): Update.
8047 2014-02-26 Tom Tromey <tromey@redhat.com>
8049 * minsyms.c (prim_record_minimal_symbol_full): Use
8050 SET_MSYMBOL_VALUE_ADDRESS.
8051 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8052 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8053 SET_MSYMBOL_VALUE_ADDRESS.
8054 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8055 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8057 2014-02-26 Tom Tromey <tromey@redhat.com>
8059 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8060 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8061 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8062 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8063 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8064 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8065 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8066 * ada-lang.c (ada_main_name): Update.
8067 (ada_lookup_simple_minsym): Update.
8068 (ada_make_symbol_completion_list): Update.
8069 (ada_add_standard_exceptions): Update.
8070 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8071 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8072 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8073 * arm-tdep.c (skip_prologue_function): Update.
8074 (arm_skip_stack_protector, arm_skip_stub): Update.
8075 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8076 (arm_wince_skip_main_prologue): Update.
8077 * auxv.c (ld_so_xfer_auxv): Update.
8078 * avr-tdep.c (avr_scan_prologue): Update.
8079 * ax-gdb.c (gen_var_ref): Update.
8080 * block.c (call_site_for_pc): Update.
8081 * blockframe.c (get_pc_function_start): Update.
8082 (find_pc_partial_function_gnu_ifunc): Update.
8083 * breakpoint.c (create_overlay_event_breakpoint): Update.
8084 (create_longjmp_master_breakpoint): Update.
8085 (create_std_terminate_master_breakpoint): Update.
8086 (create_exception_master_breakpoint): Update.
8087 (resolve_sal_pc): Update.
8088 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8089 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8091 * c-valprint.c (c_val_print): Update.
8092 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8093 * coffread.c (coff_symfile_read): Update.
8094 * common/agent.c (agent_look_up_symbols): Update.
8095 * dbxread.c (find_stab_function_addr): Update.
8096 (end_psymtab): Update.
8097 * dwarf2loc.c (call_site_to_target_addr): Update.
8098 (func_verify_no_selftailcall): Update.
8099 (tailcall_dump): Update.
8100 (call_site_find_chain_1): Update.
8101 (dwarf_expr_reg_to_entry_parameter): Update.
8102 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8103 (elf_gnu_ifunc_resolve_by_got): Update.
8104 * f-valprint.c (info_common_command): Update.
8105 * findvar.c (read_var_value): Update.
8106 * frame.c (get_prev_frame_1): Update.
8107 (inside_main_func): Update.
8108 * frv-tdep.c (frv_skip_main_prologue): Update.
8109 (frv_frame_this_id): Update.
8110 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8111 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8112 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8113 (gnuv3_skip_trampoline): Update.
8114 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8115 (hppa64_hpux_in_solib_call_trampoline): Update.
8116 (hppa_hpux_skip_trampoline_code): Update.
8117 (hppa64_hpux_search_dummy_call_sequence): Update.
8118 (hppa_hpux_find_import_stub_for_addr): Update.
8119 (hppa_hpux_find_dummy_bpaddr): Update.
8120 * hppa-tdep.c (hppa_symbol_address)
8121 (hppa_lookup_stub_minimal_symbol): Update.
8122 * i386-tdep.c (i386_skip_main_prologue): Update.
8123 (i386_pe_skip_trampoline_code): Update.
8124 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8125 * infcall.c (get_function_name): Update.
8126 * infcmd.c (until_next_command): Update.
8127 * jit.c (jit_breakpoint_re_set_internal): Update.
8128 (jit_inferior_init): Update.
8129 * linespec.c (minsym_found): Update.
8130 (add_minsym): Update.
8131 * linux-fork.c (info_checkpoints_command): Update.
8132 * linux-nat.c (get_signo): Update.
8133 * linux-thread-db.c (inferior_has_bug): Update.
8134 * m32c-tdep.c (m32c_return_value): Update.
8135 (m32c_m16c_address_to_pointer): Update.
8136 (m32c_m16c_pointer_to_address): Update.
8137 * m32r-tdep.c (m32r_frame_this_id): Update.
8138 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8139 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8140 * maint.c (maintenance_translate_address): Update.
8141 * minsyms.c (add_minsym_to_hash_table): Update.
8142 (add_minsym_to_demangled_hash_table): Update.
8143 (msymbol_objfile): Update.
8144 (lookup_minimal_symbol): Update.
8145 (iterate_over_minimal_symbols): Update.
8146 (lookup_minimal_symbol_text): Update.
8147 (lookup_minimal_symbol_by_pc_name): Update.
8148 (lookup_minimal_symbol_solib_trampoline): Update.
8149 (lookup_minimal_symbol_by_pc_section_1): Update.
8150 (lookup_minimal_symbol_and_objfile): Update.
8151 (prim_record_minimal_symbol_full): Update.
8152 (compare_minimal_symbols): Update.
8153 (compact_minimal_symbols): Update.
8154 (build_minimal_symbol_hash_tables): Update.
8155 (install_minimal_symbols): Update.
8156 (terminate_minimal_symbol_table): Update.
8157 (find_solib_trampoline_target): Update.
8158 (minimal_symbol_upper_bound): Update.
8159 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8160 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8161 (mips_skip_pic_trampoline_code): Update.
8162 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8163 * objc-lang.c (selectors_info): Update.
8164 (classes_info): Update.
8165 (find_methods): Update.
8166 (find_imps): Update.
8167 (find_objc_msgsend): Update.
8168 * objfiles.c (objfile_relocate1): Update.
8169 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8170 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8171 * p-valprint.c (pascal_val_print): Update.
8172 * parse.c (write_exp_msymbol): Update.
8173 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8174 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8175 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8176 * printcmd.c (build_address_symbolic): Update.
8178 (address_info): Update.
8179 * proc-service.c (ps_pglobal_lookup): Update.
8180 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8181 (find_pc_sect_psymtab): Update.
8182 * python/py-framefilter.c (py_print_frame): Update.
8183 * ravenscar-thread.c (get_running_thread_id): Update.
8184 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8186 * remote.c (remote_check_symbols): Update.
8187 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8188 (rs6000_skip_trampoline_code): Update.
8189 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8190 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8191 * solib-dsbt.c (lm_base): Update.
8192 * solib-frv.c (lm_base): Update.
8194 * solib-irix.c (locate_base): Update.
8195 * solib-som.c (som_solib_create_inferior_hook): Update.
8196 (som_solib_desire_dynamic_linker_symbols): Update.
8197 (link_map_start): Update.
8198 * solib-spu.c (spu_enable_break): Update.
8199 (ocl_enable_break): Update.
8200 * solib-svr4.c (elf_locate_base): Update.
8201 (enable_break): Update.
8202 * spu-tdep.c (spu_get_overlay_table): Update.
8203 (spu_catch_start): Update.
8204 (flush_ea_cache): Update.
8205 * stabsread.c (define_symbol): Update.
8206 (scan_file_globals): Update.
8207 * stack.c (find_frame_funname): Update.
8208 (frame_info): Update.
8209 * symfile.c (simple_read_overlay_table): Update.
8210 (simple_overlay_update): Update.
8211 * symmisc.c (dump_msymbols): Update.
8212 * symtab.c (fixup_section): Update.
8213 (find_pc_sect_line): Update.
8214 (skip_prologue_sal): Update.
8215 (search_symbols): Update.
8216 (print_msymbol_info): Update.
8217 (rbreak_command): Update.
8218 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8219 (completion_list_objc_symbol): Update.
8220 (default_make_symbol_completion_list_break_on): Update.
8221 * tracepoint.c (scope_info): Update.
8222 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8223 (tui_get_begin_asm_address): Update.
8224 * valops.c (find_function_in_inferior): Update.
8225 * value.c (value_static_field): Update.
8226 (value_fn_field): Update.
8228 2014-02-26 Tom Tromey <tromey@redhat.com>
8230 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8231 bound minimal symbols. Move code that knows about minsym
8233 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8235 * minsyms.h (minimal_symbol_upper_bound): Declare.
8236 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8237 minimal_symbol_upper_bound.
8239 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8241 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8242 Use the type's name if its basic type does not have a tag.
8244 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8246 * dwarf2read.c (read_subrange_type): Add comment.
8248 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8250 * dwarf2read.c (update_enumeration_type_from_children): New
8251 function, mostly extracted from process_structure_scope.
8252 (read_enumeration_type): Call update_enumeration_type_from_children.
8253 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8254 and flag_flag_enum fields.
8256 2014-02-26 Pedro Alves <palves@redhat.com>
8258 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8259 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8260 to_xfer_partial method.
8262 2014-02-26 Pedro Alves <palves@redhat.com>
8264 * target.c (complete_target_initialization): Don't install
8265 default_xfer_partial as to_xfer_partial hook.
8267 (update_current_target): Don't INHERIT nor de_fault
8268 deprecated_xfer_memory. Delete de_fault macro.
8269 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8270 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8271 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8274 2014-02-26 Pedro Alves <palves@redhat.com>
8276 * go32-nat.c (my_write_child): New function.
8277 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8278 (go32_xfer_partial): New function.
8279 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8280 Instead install a to_xfer_partial hook.
8282 2014-02-26 Pedro Alves <palves@redhat.com>
8284 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8285 to_xfer_partial helper. Rewrite.
8286 (procfs_xfer_partial): New function.
8287 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8288 Install a to_xfer_partial hook.
8290 2014-02-26 Pedro Alves <palves@redhat.com>
8292 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8293 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8294 (m32r_xfer_partial): New function.
8295 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8296 Install a to_xfer_partial hook.
8298 2014-02-26 Pedro Alves <palves@redhat.com>
8300 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8302 (mips_xfer_partial): New function.
8303 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8304 hook. Install a to_xfer_partial hook.
8306 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8308 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8309 * gdbtypes.c (create_array_type_with_stride): New function,
8310 renaming create_array_type, but with an added parameter
8311 called "bit_stride".
8312 (create_array_type): Re-implement using
8313 create_array_type_with_stride.
8314 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8315 and DW_AT_bit_stride attributes.
8317 2014-02-26 Pedro Alves <palves@redhat.com>
8319 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8320 task-specific breakpoints.
8322 2014-02-25 Pedro Alves <palves@redhat.com>
8324 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8325 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8327 2014-02-25 Stan Shebs <stan@codesourcery.com>
8329 * defs.h: Annotate comments for Doxygen.
8331 2014-02-25 Tom Tromey <tromey@redhat.com>
8333 * target.h (target_ignore): Don't declare.
8334 * target.c (target_ignore): Remove.
8336 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8339 * auto-load.c (auto_load_objfile_script_1): Change filename to
8342 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8344 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8345 documentation. Adjust prototype to match the target_ops
8346 to_xfer_partial method. Adjust implementation accordingly.
8348 2014-02-25 Hui Zhu <hui@codesourcery.com>
8350 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8353 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8355 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8356 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8357 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8358 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8359 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8360 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8361 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8362 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8364 (rl78_register_type): Use a data pointer type for SP and
8365 new pseudo registers mentioned above. Use a 16 bit integer
8366 type for all other register pairs.
8367 (rl78_register_name, rl78_g10_register_name): Update for
8368 new pseudo registers.
8369 (rl78_pseudo_register_read): Likewise.
8370 (rl78_pseudo_register_write): Likewise.
8371 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8372 to the newly added pseudo registers.
8374 2014-02-24 Doug Evans <dje@google.com>
8376 * value.c (record_latest_value): Fix comment.
8377 * printcmd.c (print_command_1): Remove code to handle -1 return from
8378 record_latest_value.
8380 2014-02-24 Pedro Alves <palves@redhat.com>
8382 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8383 deprecated_xfer_memory hook.
8384 (procfs_xfer_partial): Call procfs_xfer_memory instead
8385 of the deprecated_xfer_memory target hook.
8386 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8389 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8391 * windows-nat.c (windows_xfer_shared_libraries): Return
8392 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8393 requested object is TARGET_OBJECT_LIBRARIES.
8395 2014-02-24 Yao Qi <yao@codesourcery.com>
8397 * target.h (enum target_xfer_status)
8398 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8399 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8401 * corefile.c (memory_error_message): User updated.
8402 * exec.c (section_table_read_available_memory): Likewise.
8403 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8404 * target.c (target_xfer_status_to_string): Likewise.
8405 (raw_memory_xfer_partial): Likewise.
8406 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8407 * valops.c (read_value_memory): Likewise.
8408 * exec.h: Update comments.
8410 2014-02-24 Yao Qi <yao@codesourcery.com>
8412 * target.c (target_xfer_status_to_string): Rename argument err
8414 * target.h (target_xfer_status_to_string): Update declaration.
8415 Replace target_xfer_error_to_string with
8416 target_xfer_status_to_string in comment.
8418 2014-02-24 Yao Qi <yao@codesourcery.com>
8420 * mips-linux-nat.c (super_close): Update its type.
8421 (mips_linux_close): Pass 'self' to super_close.
8423 2014-02-24 Yao Qi <yao@codesourcery.com>
8425 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8426 * corefile.c (read_memory): Adjusted.
8427 * target.c (target_write_with_progress): Adjusted.
8429 2014-02-23 Yao Qi <yao@codesourcery.com>
8433 2013-10-25 Yao Qi <yao@codesourcery.com>
8435 * remote.c (remote_traceframe_info): Return early if
8436 traceframe is not selected.
8438 2013-07-19 Yao Qi <yao@codesourcery.com>
8440 * target.c (update_current_target): Change the default action
8441 of 'to_traceframe_info' from tcomplain to return_zero.
8442 * target.h (struct target_ops) <to_traceframe_info>: Add more
8445 2014-02-23 Yao Qi <yao@codesourcery.com>
8447 * valops.c (read_value_memory): Rewrite it. Call
8448 target_xfer_partial in a loop.
8449 * exec.h (section_table_available_memory): Remove declaration.
8450 Move comments to ...
8451 * exec.c (section_table_available_memory): ... here. Make it
8454 2014-02-23 Yao Qi <yao@codesourcery.com>
8456 * exec.c (section_table_read_available_memory): New function.
8457 * exec.h (section_table_read_available_memory): Declare.
8458 * ctf.c (ctf_xfer_partial): Call
8459 section_table_read_available_memory.
8460 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8462 2014-02-23 Yao Qi <yao@codesourcery.com>
8464 * ctf.c (ctf_xfer_partial): Move code to ...
8465 * exec.c (exec_read_partial_read_only): ... it. New function.
8466 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8467 * tracefile.c: Include "exec.h".
8468 * exec.h (exec_read_partial_read_only): Declare.
8470 2014-02-23 Yao Qi <yao@codesourcery.com>
8472 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8473 (tfile_has_memory): Remove.
8474 (init_tfile_ops): Don't set fields to_has_all_memory and
8475 to_has_memory of tfile_ops.
8476 * tracefile.c (tracefile_has_all_memory): New function.
8477 (tracefile_has_memory): New function.
8478 (init_tracefile_ops): Initialize fields to_has_all_memory and
8479 to_has_memory of 'ops'.
8481 2014-02-23 Yao Qi <yao@codesourcery.com>
8483 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8484 (ctf_thread_alive, ctf_get_trace_status): Remove.
8485 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8487 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8488 (tfile_has_stack, tfile_has_registers): Remove.
8489 (tfile_thread_alive): Remove.
8490 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8492 * tracefile.c (tracefile_has_stack): New function.
8493 (tracefile_has_registers): New function.
8494 (tracefile_thread_alive): New function.
8495 (tracefile_get_trace_status): New function.
8496 (init_tracefile_ops): New function.
8497 * tracefile.h (init_tracefile_ops): Declare.
8499 2014-02-23 Yao Qi <yao@codesourcery.com>
8501 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8502 (O_LARGEFILE): Likewise.
8503 (tfile_ops): Likewise.
8504 (TRACE_HEADER_SIZE): Likewise.
8505 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8506 (cur_data_size): Likewise.
8507 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8508 (tfile_close, tfile_files_info): Likewise.
8509 (tfile_get_trace_status): Likewise.
8510 (tfile_get_tracepoint_status): Likewise.
8511 (tfile_get_traceframe_address): Likewise.
8512 (tfile_trace_find, match_blocktype): Likewise.
8513 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8514 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8515 (tfile_get_trace_state_variable_value): Likewise.
8516 (tfile_has_all_memory, tfile_has_memory): Likewise.
8517 (tfile_has_stack, tfile_has_registers): Likewise.
8518 (tfile_thread_alive, build_traceframe_info): Likewise.
8519 (tfile_traceframe_info, init_tfile_ops): Likewise.
8520 (_initialize_tracepoint): Don't call init_tfile_ops
8521 and add_target_with_completer.
8522 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8523 exec.h, completer.h and filenames.h.
8524 (_initialize_tracefile_tfile): New function.
8526 2014-02-23 Yao Qi <yao@codesourcery.com>
8528 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8530 (HFILES_NO_SRCDIR): Add tracefile.h.
8531 * ctf.c: Include "tracefile.h".
8532 * tracefile.h: New file.
8533 * tracefile.c: New file
8534 * tracefile-tfile.c: New file.
8535 * tracepoint.c: Include "tracefile.h".
8536 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8537 (stop_reason_names): Add const.
8538 (trace_file_writer_xfree): Move it to tracefile.c.
8539 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8540 (trace_save_ctf): Likewise.
8541 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8542 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8543 (tfile_write_header, tfile_write_regblock_type): Likewise.
8544 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8545 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8546 (tfile_write_raw_data, tfile_end): Likewise.
8547 (tfile_trace_file_writer_new): Likewise.
8548 (free_uploaded_tp): Make it extern.
8549 (free_uploaded_tsv): Make it extern.
8550 (_initialize_tracepoint): Move code to register command 'tsave'
8552 * tracepoint.h (stop_reason_names): Declare.
8553 (struct trace_frame_write_ops): Move it to tracefile.h.
8554 (struct trace_file_write_ops): Likewise.
8555 (struct trace_file_writer): Likewise.
8556 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8558 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8561 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8563 (get_cores_used_by_process): New parameter num_cores, use it.
8564 (linux_xfer_osdata_processes): Pass num_cores to it.
8565 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8568 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8570 * target.c (memory_xfer_partial): Fix length arg in call to
8571 breakpoint_xfer_memory.
8573 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8576 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8577 number comes after the + or - signs. Adjust length of register
8578 name to be extracted.
8580 2014-02-20 Tom Tromey <tromey@redhat.com>
8582 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8583 (ada_varobj_ops): Mark "extern".
8585 2014-02-20 Tom Tromey <tromey@redhat.com>
8587 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8589 2014-02-20 Doug Evans <xdje42@gmail.com>
8591 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8592 All callers updated.
8593 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8594 All callers updated.
8595 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8596 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8598 2014-02-20 lin zuojian <manjian2006@gmail.com>
8599 Joel Brobecker <brobecker@adacore.com>
8600 Doug Evans <xdje42@gmail.com>
8603 * dwarf2read.c (struct die_info): New member in_process.
8604 (reset_die_in_process): New function.
8605 (process_die): Set it at the start, reset when returning.
8606 (inherit_abstract_dies): Only call process_die if origin_child_die
8607 not already being processed.
8609 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8611 * windows-nat.c (handle_unload_dll): Add function documentation.
8612 (do_initial_windows_stuff): Add comment explaining why we wait
8613 until after inferior initialization has finished before
8614 processing all DLLs.
8616 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8618 * windows-nat.c (get_module_name): Delete.
8619 (windows_get_exec_module_filename): New function, mostly
8620 inspired from get_module_name.
8621 (windows_pid_to_exec_file): Replace call to get_module_name
8622 by call to windows_get_exec_module_filename.
8624 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8626 * windows-nat.c (handle_load_dll): Rewrite this function's
8627 introductory comment. Remove code using get_module_name
8628 to get the DLL's name.
8630 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8632 * windows-nat.c (get_windows_debug_event): Ignore
8633 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8634 if windows_initialization_done == 0.
8635 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8636 Adjust implementation to always load all DLLs.
8637 (do_initial_windows_stuff): Replace call to
8638 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8640 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8642 * windows-nat.c (_initialize_windows_nat): Deprecate the
8643 "dll-symbols" command. Turn the "add-shared-symbol-files"
8644 and "assf" aliases into commands, and deprecate them as well.
8645 * NEWS: Add entry explaining that "dll-symbols" and its two
8646 aliases are now deprecated.
8648 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8650 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8651 new-line in debug string. Remove trailing spaces.
8653 2014-02-19 Stan Shebs <stan@codesourcery.com>
8655 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8657 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8659 * NEWS: Add entry for the new feature
8660 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8663 2014-02-19 Stan Shebs <stan@codesourcery.com>
8665 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8667 2014-02-19 Pedro Alves <palves@redhat.com>
8669 * common/ptid.h (struct ptid): Mention that process_stratum
8670 targets should prefer ptid.lwp.
8672 2014-02-19 Pedro Alves <palves@redhat.com>
8674 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8675 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8676 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8677 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8678 store remote thread ids rather than ptid.tid.
8679 (_initialize_remote): Adjust.
8681 2014-02-19 Tom Tromey <tromey@redhat.com>
8683 * target.c (target_get_unwinder): Rewrite.
8684 (target_get_tailcall_unwinder): Rewrite.
8685 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8686 (record_btrace_to_get_tailcall_unwinder): New function.
8687 (init_record_btrace_ops): Update.
8688 * target.h (struct target_ops) <to_get_unwinder,
8689 to_get_tailcall_unwinder>: Now function pointers. Use
8690 TARGET_DEFAULT_RETURN.
8692 2014-02-19 Tom Tromey <tromey@redhat.com>
8694 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8696 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8698 2014-02-19 Tom Tromey <tromey@redhat.com>
8700 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8702 * target-delegates.c: Rebuild.
8703 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8704 TARGET_DEFAULT_FUNC.
8705 * target.c (default_target_decr_pc_after_break): Rename from
8706 forward_target_decr_pc_after_break. Simplify.
8707 (target_decr_pc_after_break): Rely on delegation.
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8711 * target.c (update_current_target): Do not INHERIT to_doc or
8712 to_magic. Do not de_fault to_open or to_close.
8714 2014-02-19 Tom Tromey <tromey@redhat.com>
8716 * gcore.h (objfile_find_memory_regions): Declare.
8717 * gcore.c (objfile_find_memory_regions): No longer static. Add
8719 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8720 * exec.c: Include gcore.h.
8721 (exec_set_find_memory_regions): Remove.
8722 (exec_find_memory_regions): Remove.
8723 (exec_do_find_memory_regions): Remove.
8724 (init_exec_ops): Update.
8725 * defs.h (exec_set_find_memory_regions): Remove.
8727 2014-02-19 Tom Tromey <tromey@redhat.com>
8729 * target-delegates.c: Rebuild.
8730 * target.h (struct target_ops) <to_extra_thread_info,
8731 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8732 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8733 not 0, in TARGET_DEFAULT_RETURN.
8735 2014-02-19 Tom Tromey <tromey@redhat.com>
8737 * target.c (complete_target_initialization): Remove casts. Use
8738 return_zero_has_execution.
8739 (return_zero): Add "ignore" argument.
8740 (return_zero_has_execution): New function.
8741 (init_dummy_target): Remove casts. Use
8742 return_zero_has_execution.
8744 2014-02-19 Tom Tromey <tromey@redhat.com>
8746 * target.c (update_current_target): Update comments. Do not
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8751 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8753 * corelow.c (core_read_description): Delegate when needed.
8754 * remote.c (remote_read_description): Delegate when needed.
8755 * target-delegates.c: Rebuild.
8756 * target.c (target_read_description): Rewrite.
8757 * target.h (struct target_ops) <to_read_description>: Update
8758 comment. Use TARGET_DEFAULT_RETURN.
8760 2014-02-19 Tom Tromey <tromey@redhat.com>
8762 * target-delegates.c: Rebuild.
8763 * target.c (update_current_target): Don't inherit or default
8765 (find_default_run_target): Check against delegate_can_run.
8766 * target.h (struct target_ops) <to_can_run>: Use
8767 TARGET_DEFAULT_RETURN.
8769 2014-02-19 Tom Tromey <tromey@redhat.com>
8771 * target-delegates.c: Rebuild.
8772 * target.c (target_disconnect): Unconditionally delegate.
8773 * target.h (struct target_ops) <to_disconnect>: Use
8774 TARGET_DEFAULT_NORETURN.
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8778 * record.c (record_stop): Unconditionally delegate.
8779 * target-delegates.c: Rebuild.
8780 * target.c (target_stop_recording): Unconditionally delegate.
8781 * target.h (struct target_ops) <to_stop_recording>: Use
8782 TARGET_DEFAULT_IGNORE.
8784 2014-02-19 Tom Tromey <tromey@redhat.com>
8786 * target-delegates.c: Rebuild.
8787 * target.c (target_enable_btrace): Unconditionally delegate.
8788 * target.h (struct target_ops) <to_enable_btrace>: Use
8789 TARGET_DEFAULT_NORETURN.
8791 2014-02-19 Tom Tromey <tromey@redhat.com>
8793 * target-delegates.c: Rebuild.
8794 * target.c (target_read_btrace): Unconditionally delegate.
8795 * target.h (struct target_ops) <to_read_btrace>: Use
8796 TARGET_DEFAULT_NORETURN.
8798 2014-02-19 Tom Tromey <tromey@redhat.com>
8800 * target-delegates.c: Rebuild.
8801 * target.c (target_teardown_btrace): Unconditionally delegate.
8802 * target.h (struct target_ops) <to_teardown_btrace>: Use
8803 TARGET_DEFAULT_NORETURN.
8805 2014-02-19 Tom Tromey <tromey@redhat.com>
8807 * target-delegates.c: Rebuild.
8808 * target.c (target_disable_btrace): Unconditionally delegate.
8809 * target.h (struct target_ops) <to_disable_btrace>: Use
8810 TARGET_DEFAULT_NORETURN.
8812 2014-02-19 Tom Tromey <tromey@redhat.com>
8814 * target-delegates.c: Rebuild.
8815 * target.c (default_search_memory): New function.
8816 (simple_search_memory): Update comment.
8817 (target_search_memory): Unconditionally delegate.
8818 * target.h (struct target_ops) <to_search_memory>: Use
8819 TARGET_DEFAULT_FUNC.
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8823 * auxv.c (default_auxv_parse): No longer static.
8824 (target_auxv_parse): Unconditionally delegate.
8825 * auxv.h (default_auxv_parse): Declare.
8826 * target-delegates.c: Rebuild.
8827 * target.c: Include auxv.h.
8828 * target.h (struct target_ops) <to_auxv_parse>: Use
8829 TARGET_DEFAULT_FUNC.
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8833 * target-delegates.c: Rebuild.
8834 * target.c (target_memory_map): Unconditionally delegate.
8835 * target.h (struct target_ops) <to_memory_map>: Use
8836 TARGET_DEFAULT_RETURN.
8838 2014-02-19 Tom Tromey <tromey@redhat.com>
8840 * target-delegates.c: Rebuild.
8841 * target.c (target_thread_alive): Unconditionally delegate.
8842 * target.h (struct target_ops) <to_thread_alive>: Use
8843 TARGET_DEFAULT_RETURN.
8845 2014-02-19 Tom Tromey <tromey@redhat.com>
8847 * target-delegates.c: Rebuild.
8848 * target.c (target_save_record): Unconditionally delegate.
8849 * target.h (struct target_ops) <to_save_record>: Use
8850 TARGET_DEFAULT_NORETURN.
8852 2014-02-19 Tom Tromey <tromey@redhat.com>
8854 * target-delegates.c: Rebuild.
8855 * target.c (target_delete_record): Unconditionally delegate.
8856 * target.h (struct target_ops) <to_delete_record>: Use
8857 TARGET_DEFAULT_NORETURN.
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8861 * target-delegates.c: Rebuild.
8862 * target.c (target_record_is_replaying): Unconditionally
8864 * target.h (struct target_ops) <to_record_is_replaying>: Use
8865 TARGET_DEFAULT_RETURN.
8867 2014-02-19 Tom Tromey <tromey@redhat.com>
8869 * target-delegates.c: Rebuild.
8870 * target.c (target_goto_record_begin): Unconditionally delegate.
8871 * target.h (struct target_ops) <to_goto_record_begin>: Use
8872 TARGET_DEFAULT_NORETURN.
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8876 * target-delegates.c: Rebuild.
8877 * target.c (target_goto_record_end): Unconditionally delegate.
8878 * target.h (struct target_ops) <to_goto_record_end>: Use
8879 TARGET_DEFAULT_NORETURN.
8881 2014-02-19 Tom Tromey <tromey@redhat.com>
8883 * target-delegates.c: Rebuild.
8884 * target.c (target_goto_record): Unconditionally delegate.
8885 * target.h (struct target_ops) <to_goto_record>: Use
8886 TARGET_DEFAULT_NORETURN.
8888 2014-02-19 Tom Tromey <tromey@redhat.com>
8890 * target-delegates.c: Rebuild.
8891 * target.c (target_insn_history): Unconditionally delegate.
8892 * target.h (struct target_ops) <to_insn_history>: Use
8893 TARGET_DEFAULT_NORETURN.
8895 2014-02-19 Tom Tromey <tromey@redhat.com>
8897 * target-delegates.c: Rebuild.
8898 * target.c (target_insn_history_from): Unconditionally delegate.
8899 * target.h (struct target_ops) <to_insn_history_from>: Use
8900 TARGET_DEFAULT_NORETURN.
8902 2014-02-19 Tom Tromey <tromey@redhat.com>
8904 * target-delegates.c: Rebuild.
8905 * target.c (target_insn_history_range): Unconditionally delegate.
8906 * target.h (struct target_ops) <to_insn_history_range>: Use
8907 TARGET_DEFAULT_NORETURN.
8909 2014-02-19 Tom Tromey <tromey@redhat.com>
8911 * target-delegates.c: Rebuild.
8912 * target.c (target_call_history): Unconditionally delegate.
8913 * target.h (struct target_ops) <to_call_history>: Use
8914 TARGET_DEFAULT_NORETURN.
8916 2014-02-19 Tom Tromey <tromey@redhat.com>
8918 * target-delegates.c: Rebuild.
8919 * target.c (target_call_history_from): Unconditionally delegate.
8920 * target.h (struct target_ops) <to_call_history_from>: Use
8921 TARGET_DEFAULT_NORETURN.
8923 2014-02-19 Tom Tromey <tromey@redhat.com>
8925 * target-delegates.c: Rebuild.
8926 * target.c (target_call_history_range): Unconditionally delegate.
8927 * target.h (struct target_ops) <to_call_history_range>: Use
8928 TARGET_DEFAULT_NORETURN.
8930 2014-02-19 Tom Tromey <tromey@redhat.com>
8932 * target-delegates.c: Rebuild.
8933 * target.c (target_verify_memory): Unconditionally delegate.
8934 * target.h (struct target_ops) <to_verify_memory>: Use
8935 TARGET_DEFAULT_NORETURN.
8937 2014-02-19 Tom Tromey <tromey@redhat.com>
8939 * target-delegates.c: Rebuild.
8940 * target.c (target_core_of_thread): Unconditionally delegate.
8941 * target.h (struct target_ops) <to_core_of_thread>: Use
8942 TARGET_DEFAULT_RETURN.
8944 2014-02-19 Tom Tromey <tromey@redhat.com>
8946 * target-delegates.c: Rebuild.
8947 * target.c (target_flash_done): Unconditionally delegate.
8948 * target.h (struct target_ops) <to_flash_done>: Use
8949 TARGET_DEFAULT_NORETURN.
8951 2014-02-19 Tom Tromey <tromey@redhat.com>
8953 * target-delegates.c: Rebuild.
8954 * target.c (target_flash_erase): Unconditionally delegate.
8955 * target.h (struct target_ops) <to_flash_erase>: Use
8956 TARGET_DEFAULT_NORETURN.
8958 2014-02-19 Tom Tromey <tromey@redhat.com>
8960 * target-delegates.c: Rebuild.
8961 * target.c (target_get_section_table): Unconditionally delegate.
8962 * target.h (struct target_ops) <to_get_section_table>: Use
8963 TARGET_DEFAULT_RETURN.
8965 2014-02-19 Tom Tromey <tromey@redhat.com>
8967 * target-delegates.c: Rebuild.
8968 * target.c (target_pid_to_str): Unconditionally delegate.
8969 (init_dummy_target): Don't initialize to_pid_to_str.
8970 (default_pid_to_str): Rename from dummy_pid_to_str.
8971 * target.h (struct target_ops) <to_pid_to_str>: Use
8972 TARGET_DEFAULT_FUNC.
8974 2014-02-19 Tom Tromey <tromey@redhat.com>
8976 * target-delegates.c: Rebuild.
8977 * target.c (target_find_new_threads): Unconditionally delegate.
8978 * target.h (struct target_ops) <to_find_new_threads>: Use
8979 TARGET_DEFAULT_RETURN.
8981 2014-02-19 Tom Tromey <tromey@redhat.com>
8983 * target-delegates.c: Rebuild.
8984 * target.c (target_program_signals): Unconditionally delegate.
8985 * target.h (struct target_ops) <to_program_signals>: Use
8986 TARGET_DEFAULT_IGNORE.
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8990 * target-delegates.c: Rebuild.
8991 * target.c (target_pass_signals): Unconditionally delegate.
8992 * target.h (struct target_ops) <to_pass_signals>: Use
8993 TARGET_DEFAULT_IGNORE.
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8997 * target-delegates.c: Rebuild.
8998 * target.c (default_mourn_inferior): New function.
8999 (target_mourn_inferior): Unconditionally delegate.
9000 * target.h (struct target_ops) <to_mourn_inferior>: Use
9001 TARGET_DEFAULT_FUNC.
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9005 * target-delegates.c: Rebuild.
9006 * target.c (default_follow_fork): New function.
9007 (target_follow_fork): Unconditionally delegate.
9008 * target.h (struct target_ops) <to_follow_fork>: Use
9009 TARGET_DEFAULT_FUNC.
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9013 * target-delegates.c: Rebuild.
9014 * target.c (target_kill): Unconditionally delegate.
9015 * target.h (struct target_ops) <to_kill>: Use
9016 TARGET_DEFAULT_NORETURN.
9018 2014-02-19 Tom Tromey <tromey@redhat.com>
9020 * target-delegates.c: Rebuild.
9021 * target.c (target_masked_watch_num_registers): Unconditionally
9023 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9024 Use TARGET_DEFAULT_RETURN.
9026 2014-02-19 Tom Tromey <tromey@redhat.com>
9028 * target-delegates.c: Rebuild.
9029 * target.c (target_remove_mask_watchpoint): Unconditionally
9031 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9032 TARGET_DEFAULT_RETURN.
9034 2014-02-19 Tom Tromey <tromey@redhat.com>
9036 * target-delegates.c: Rebuild.
9037 * target.c (target_insert_mask_watchpoint): Unconditionally
9039 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9040 TARGET_DEFAULT_RETURN.
9042 2014-02-19 Tom Tromey <tromey@redhat.com>
9044 * target-delegates.c: Rebuild.
9045 * target.c (target_ranged_break_num_registers): Unconditionally
9047 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9048 Use TARGET_DEFAULT_RETURN.
9050 2014-02-19 Tom Tromey <tromey@redhat.com>
9052 * target-delegates.c: Rebuild.
9053 * target.c (target_fetch_registers): Unconditionally delegate.
9054 * target.h (struct target_ops) <to_fetch_registers>: Use
9055 TARGET_DEFAULT_NORETURN.
9057 2014-02-19 Tom Tromey <tromey@redhat.com>
9059 * target-delegates.c: Rebuild.
9060 * target.c (update_current_target): Don't inherit or default
9062 * target.h (struct target_ops) <to_stop>: Use
9063 TARGET_DEFAULT_IGNORE.
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9067 * target-delegates.c: Rebuild.
9068 * target.c (update_current_target): Don't inherit or default
9069 to_can_run_breakpoint_commands.
9070 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9071 Use TARGET_DEFAULT_RETURN.
9073 2014-02-19 Tom Tromey <tromey@redhat.com>
9075 * target-delegates.c: Rebuild.
9076 * target.c (update_current_target): Don't inherit or default
9077 to_supports_evaluation_of_breakpoint_conditions.
9078 * target.h (struct target_ops)
9079 <to_supports_evaluation_of_breakpoint_conditions>: Use
9080 TARGET_DEFAULT_RETURN.
9082 2014-02-19 Tom Tromey <tromey@redhat.com>
9084 * target-delegates.c: Rebuild.
9085 * target.c (update_current_target): Don't inherit or default
9086 to_augmented_libraries_svr4_read.
9087 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9088 Use TARGET_DEFAULT_RETURN.
9090 2014-02-19 Tom Tromey <tromey@redhat.com>
9092 * target-delegates.c: Rebuild.
9093 * target.c (update_current_target): Don't inherit or default
9095 * target.h (struct target_ops) <to_can_use_agent>: Use
9096 TARGET_DEFAULT_RETURN.
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9100 * target-delegates.c: Rebuild.
9101 * target.c (update_current_target): Don't inherit or default
9103 * target.h (struct target_ops) <to_use_agent>: Use
9104 TARGET_DEFAULT_NORETURN.
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9108 * target-delegates.c: Rebuild.
9109 * target.c (update_current_target): Don't inherit or default
9111 (return_null): Remove.
9112 * target.h (struct target_ops) <to_traceframe_info>: Use
9113 TARGET_DEFAULT_RETURN.
9115 2014-02-19 Tom Tromey <tromey@redhat.com>
9117 * target-delegates.c: Rebuild.
9118 * target.c (update_current_target): Don't inherit or default
9119 to_static_tracepoint_markers_by_strid.
9120 * target.h (struct target_ops)
9121 <to_static_tracepoint_markers_by_strid>: Use
9122 TARGET_DEFAULT_NORETURN.
9124 2014-02-19 Tom Tromey <tromey@redhat.com>
9126 * target-delegates.c: Rebuild.
9127 * target.c (update_current_target): Don't inherit or default
9128 to_static_tracepoint_marker_at.
9129 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9130 Use TARGET_DEFAULT_RETURN.
9132 2014-02-19 Tom Tromey <tromey@redhat.com>
9134 * target-delegates.c: Rebuild.
9135 * target.c (update_current_target): Don't inherit or default
9137 * target.h (struct target_ops) <to_set_permissions>: Use
9138 TARGET_DEFAULT_IGNORE.
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9142 * target-delegates.c: Rebuild.
9143 * target.c (update_current_target): Don't inherit or default
9145 * target.h (struct target_ops) <to_get_tib_address>: Use
9146 TARGET_DEFAULT_NORETURN.
9148 2014-02-19 Tom Tromey <tromey@redhat.com>
9150 * target-delegates.c: Rebuild.
9151 * target.c (update_current_target): Don't inherit or default
9153 * target.h (struct target_ops) <to_set_trace_notes>: Use
9154 TARGET_DEFAULT_RETURN.
9156 2014-02-19 Tom Tromey <tromey@redhat.com>
9158 * target-delegates.c: Rebuild.
9159 * target.c (update_current_target): Don't initialize
9160 to_set_trace_buffer_size.
9161 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9162 TARGET_DEFAULT_IGNORE.
9164 2014-02-19 Tom Tromey <tromey@redhat.com>
9166 * target-delegates.c: Rebuild.
9167 * target.c (update_current_target): Don't inherit or default
9168 to_set_circular_trace_buffer.
9169 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9170 TARGET_DEFAULT_IGNORE.
9172 2014-02-19 Tom Tromey <tromey@redhat.com>
9174 * target-delegates.c: Rebuild.
9175 * target.c (update_current_target): Don't inherit or default
9176 to_set_disconnected_tracing.
9177 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9178 TARGET_DEFAULT_IGNORE.
9180 2014-02-19 Tom Tromey <tromey@redhat.com>
9182 * target-delegates.c: Rebuild.
9183 * target.c (update_current_target): Don't inherit or default
9184 to_get_min_fast_tracepoint_insn_len.
9185 (return_minus_one): Remove.
9186 * target.h (struct target_ops)
9187 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9191 * target-delegates.c: Rebuild.
9192 * target.c (update_current_target): Don't inherit or default
9193 to_get_raw_trace_data.
9194 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9195 TARGET_DEFAULT_NORETURN.
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9199 * target-delegates.c: Rebuild.
9200 * target.c (update_current_target): Don't inherit or default
9201 to_upload_trace_state_variables.
9202 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9203 Use TARGET_DEFAULT_RETURN.
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9207 * target-delegates.c: Rebuild.
9208 * target.c (update_current_target): Don't inherit or default
9209 to_upload_tracepoints.
9210 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9211 TARGET_DEFAULT_RETURN.
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9215 * target-delegates.c: Rebuild.
9216 * target.c (update_current_target): Don't inherit or default
9218 * target.h (struct target_ops) <to_save_trace_data>: Use
9219 TARGET_DEFAULT_NORETURN.
9221 2014-02-19 Tom Tromey <tromey@redhat.com>
9223 * target-delegates.c: Rebuild.
9224 * target.c (update_current_target): Don't inherit or default
9225 to_get_trace_state_variable_value.
9226 * target.h (struct target_ops)
9227 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9231 * target-delegates.c: Rebuild.
9232 * target.c (update_current_target): Don't inherit or default
9234 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9238 * target-delegates.c: Rebuild.
9239 * target.c (update_current_target): Don't inherit or default
9241 * target.h (struct target_ops) <to_trace_stop>: Use
9242 TARGET_DEFAULT_NORETURN.
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9246 * target-delegates.c: Rebuild.
9247 * target.c (update_current_target): Don't inherit or default
9248 to_get_tracepoint_status.
9249 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9250 TARGET_DEFAULT_NORETURN.
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9254 * target-delegates.c: Rebuild.
9255 * target.c (update_current_target): Don't inherit or default
9256 to_get_trace_status.
9257 * target.h (struct target_ops) <to_get_trace_status>: Use
9258 TARGET_DEFAULT_RETURN.
9260 2014-02-19 Tom Tromey <tromey@redhat.com>
9262 * target-delegates.c: Rebuild.
9263 * target.c (update_current_target): Don't inherit or default
9265 * target.h (struct target_ops) <to_trace_start>: Use
9266 TARGET_DEFAULT_NORETURN.
9268 2014-02-19 Tom Tromey <tromey@redhat.com>
9270 * target-delegates.c: Rebuild.
9271 * target.c (update_current_target): Don't inherit or default
9272 to_trace_set_readonly_regions.
9273 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9274 Use TARGET_DEFAULT_NORETURN.
9276 2014-02-19 Tom Tromey <tromey@redhat.com>
9278 * target-delegates.c: Rebuild.
9279 * target.c (update_current_target): Don't inherit or default
9280 to_disable_tracepoint.
9281 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9282 TARGET_DEFAULT_NORETURN.
9284 2014-02-19 Tom Tromey <tromey@redhat.com>
9286 * target-delegates.c: Rebuild.
9287 * target.c (update_current_target): Don't inherit or default
9288 to_enable_tracepoint.
9289 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9290 TARGET_DEFAULT_NORETURN.
9292 2014-02-19 Tom Tromey <tromey@redhat.com>
9294 * target-delegates.c: Rebuild.
9295 * target.c (update_current_target): Don't inherit or default
9296 to_download_trace_state_variable.
9297 * target.h (struct target_ops) <to_download_trace_state_variable>:
9298 Use TARGET_DEFAULT_NORETURN.
9300 2014-02-19 Tom Tromey <tromey@redhat.com>
9302 * target-delegates.c: Rebuild.
9303 * target.c (update_current_target): Don't inherit or default
9304 to_can_download_tracepoint.
9305 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9306 TARGET_DEFAULT_RETURN.
9308 2014-02-19 Tom Tromey <tromey@redhat.com>
9310 * target-delegates.c: Rebuild.
9311 * target.c (update_current_target): Don't inherit or default
9312 to_download_tracepoint.
9313 * target.h (struct target_ops) <to_download_tracepoint>: Use
9314 TARGET_DEFAULT_NORETURN.
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * target-delegates.c: Rebuild.
9319 * target.c (update_current_target): Don't inherit or default
9321 * target.h (struct target_ops) <to_trace_init>: Use
9322 TARGET_DEFAULT_RETURN.
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9326 * target-delegates.c: Rebuild.
9327 * target.c (update_current_target): Don't inherit or default
9328 to_supports_string_tracing.
9329 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9330 TARGET_DEFAULT_RETURN.
9332 2014-02-19 Tom Tromey <tromey@redhat.com>
9334 * target-delegates.c: Rebuild.
9335 * target.c (update_current_target): Don't inherit or default
9336 to_supports_enable_disable_tracepoint.
9337 * target.h (struct target_ops)
9338 <to_supports_enable_disable_tracepoint>: Use
9339 TARGET_DEFAULT_RETURN.
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9343 * target-delegates.c: Rebuild.
9344 * target.c (update_current_target): Don't inherit or default
9345 to_supports_multi_process.
9346 * target.h (struct target_ops) <to_supports_multi_process>: Use
9347 TARGET_DEFAULT_RETURN.
9349 2014-02-19 Tom Tromey <tromey@redhat.com>
9351 * target-delegates.c: Rebuild.
9352 * target.c (update_current_target): Don't inherit or default
9353 to_get_ada_task_ptid.
9354 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9355 TARGET_DEFAULT_FUNC.
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9359 * target-delegates.c: Rebuild.
9360 * target.c (update_current_target): Don't inherit or default
9361 to_thread_architecture.
9362 * target.h (struct target_ops) <to_thread_architecture>: Use
9363 TARGET_DEFAULT_FUNC.
9365 2014-02-19 Tom Tromey <tromey@redhat.com>
9367 * target-delegates.c: Rebuild.
9368 * target.c (update_current_target): Don't inherit or default
9369 to_execution_direction.
9370 * target.h (struct target_ops) <to_execution_direction>: Use
9371 TARGET_DEFAULT_FUNC.
9373 2014-02-19 Tom Tromey <tromey@redhat.com>
9375 * target-delegates.c: Rebuild.
9376 * target.c (update_current_target): Don't inherit or default
9377 to_can_execute_reverse.
9378 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9379 TARGET_DEFAULT_RETURN.
9380 (target_can_execute_reverse): Unconditionally delegate.
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9384 * target-delegates.c: Rebuild.
9385 * target.c (update_current_target): Don't inherit or default
9387 (dummy_goto_bookmark): Remove.
9388 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9389 * target.h (struct target_ops) <to_goto_bookmark>: Use
9390 TARGET_DEFAULT_NORETURN.
9392 2014-02-19 Tom Tromey <tromey@redhat.com>
9394 * target-delegates.c: Rebuild.
9395 * target.c (update_current_target): Don't inherit or default
9397 (dummy_get_bookmark): Remove.
9398 (init_dummy_target): Don't inherit or default to_get_bookmark.
9399 * target.h (struct target_ops) <to_get_bookmark>: Use
9400 TARGET_DEFAULT_NORETURN
9402 2014-02-19 Tom Tromey <tromey@redhat.com>
9404 * target-delegates.c: Rebuild.
9405 * target.c (update_current_target): Don't inherit or default
9406 to_make_corefile_notes.
9407 (init_dummy_target): Don't initialize to_make_corefile_notes.
9408 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9409 TARGET_DEFAULT_FUNC.
9411 2014-02-19 Tom Tromey <tromey@redhat.com>
9413 * target-delegates.c: Rebuild.
9414 * target.c (update_current_target): Don't inherit or default
9415 to_find_memory_regions.
9416 (init_dummy_target): Don't initialize to_find_memory_regions.
9417 * target.h (struct target_ops) <to_find_memory_regions>: Use
9418 TARGET_DEFAULT_FUNC.
9420 2014-02-19 Tom Tromey <tromey@redhat.com>
9422 * target-delegates.c: Rebuild.
9423 * target.c (update_current_target): Don't inherit or default
9425 * target.h (struct target_ops) <to_log_command>: Use
9426 TARGET_DEFAULT_IGNORE.
9427 (target_log_command): Unconditionally delegate.
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9431 * target-delegates.c: Rebuild.
9432 * target.c (update_current_target): Don't inherit or default
9433 to_pid_to_exec_file.
9434 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9435 TARGET_DEFAULT_RETURN.
9437 2014-02-19 Tom Tromey <tromey@redhat.com>
9439 * target-delegates.c: Rebuild.
9440 * target.c (update_current_target): Don't inherit or default
9442 (target_thread_name): Unconditionally delegate.
9443 * target.h (struct target_ops) <to_thread_name>: Use
9444 TARGET_DEFAULT_RETURN.
9446 2014-02-19 Tom Tromey <tromey@redhat.com>
9448 * target-delegates.c: Rebuild.
9449 * target.c (update_current_target): Don't inherit or default
9450 to_extra_thread_info.
9451 * target.h (struct target_ops) <to_extra_thread_info>: Use
9452 TARGET_DEFAULT_RETURN.
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9456 * target-delegates.c: Rebuild.
9457 * target.c (update_current_target): Don't inherit or default
9459 * target.h (struct target_ops) <to_has_exited>: Use
9460 TARGET_DEFAULT_RETURN..
9462 2014-02-19 Tom Tromey <tromey@redhat.com>
9464 * target-delegates.c: Rebuild.
9465 * target.c (update_current_target): Don't inherit or default
9466 to_set_syscall_catchpoint.
9467 (return_one): Remove.
9468 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9469 TARGET_DEFAULT_RETURN.
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9473 * target-delegates.c: Rebuild.
9474 * target.c (update_current_target): Don't inherit or default
9475 to_insert_exec_catchpoint.
9476 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9477 TARGET_DEFAULT_RETURN.
9479 2014-01-08 Tom Tromey <tromey@redhat.com>
9481 * target-delegates.c: Rebuild.
9482 * target.c (update_current_target): Don't inherit or default
9483 to_insert_exec_catchpoint.
9484 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9485 TARGET_DEFAULT_RETURN.
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9489 * target-delegates.c: Rebuild.
9490 * target.c (update_current_target): Don't inherit or default
9491 to_remove_vfork_catchpoint.
9492 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9493 TARGET_DEFAULT_RETURN.
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9497 * target-delegates.c: Rebuild.
9498 * target.c (update_current_target): Don't inherit or default
9499 to_insert_vfork_catchpoint.
9500 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9501 TARGET_DEFAULT_RETURN.
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * target-delegates.c: Rebuild.
9506 * target.c (update_current_target): Don't inherit or default
9507 to_remove_fork_catchpoint.
9508 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9509 TARGET_DEFAULT_RETURN.
9511 2014-02-19 Tom Tromey <tromey@redhat.com>
9513 * target-delegates.c: Rebuild.
9514 * target.c (update_current_target): Don't inherit or default
9515 to_insert_fork_catchpoint.
9516 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9517 TARGET_DEFAULT_RETURN.
9519 2014-02-19 Tom Tromey <tromey@redhat.com>
9521 * target-delegates.c: Rebuild.
9522 * target.c (update_current_target): Don't inherit or default
9523 to_post_startup_inferior.
9524 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9525 TARGET_DEFAULT_IGNORE.
9527 2014-02-19 Tom Tromey <tromey@redhat.com>
9529 * target-delegates.c: Rebuild.
9530 * target.c (update_current_target): Don't inherit or default
9532 * target.h (struct target_ops) <to_load>: Use
9533 TARGET_DEFAULT_NORETURN.
9535 2014-02-19 Tom Tromey <tromey@redhat.com>
9537 * target-delegates.c: Rebuild.
9538 * target.c (update_current_target): Don't inherit or default
9540 * target.h (struct target_ops) <to_terminal_info>: Use
9541 TARGET_DEFAULT_FUNC.
9543 2014-02-19 Tom Tromey <tromey@redhat.com>
9545 * target-delegates.c: Rebuild.
9546 * target.c (update_current_target): Don't inherit or default
9547 to_terminal_save_ours.
9548 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9549 TARGET_DEFAULT_IGNORE.
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9553 * target-delegates.c: Rebuild.
9554 * target.c (update_current_target): Don't inherit or default
9556 * target.h (struct target_ops) <to_terminal_ours>: Use
9557 TARGET_DEFAULT_IGNORE.
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9561 * target-delegates.c: Rebuild.
9562 * target.c (update_current_target): Don't inherit or default
9563 to_terminal_ours_for_output.
9564 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9565 TARGET_DEFAULT_IGNORE.
9567 2014-02-19 Tom Tromey <tromey@redhat.com>
9569 * target-delegates.c: Rebuild.
9570 * target.c (update_current_target): Don't inherit or default
9571 to_terminal_inferior.
9572 * target.h (struct target_ops) <to_terminal_inferior>: Use
9573 TARGET_DEFAULT_IGNORE.
9575 2014-02-19 Tom Tromey <tromey@redhat.com>
9577 * target-delegates.c: Rebuild.
9578 * target.c (update_current_target): Don't inherit or default
9580 * target.h (struct target_ops) <to_terminal_init>: Use
9581 TARGET_DEFAULT_IGNORE.
9583 2014-02-19 Tom Tromey <tromey@redhat.com>
9585 * target-delegates.c: Rebuild.
9586 * target.c (update_current_target): Don't inherit or default
9587 to_can_accel_watchpoint_condition.
9588 * target.h (struct target_ops)
9589 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9591 2014-02-19 Tom Tromey <tromey@redhat.com>
9593 * target-delegates.c: Rebuild.
9594 * target.c (update_current_target): Don't inherit or default
9595 to_region_ok_for_hw_watchpoint.
9596 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9597 Use TARGET_DEFAULT_FUNC.
9599 2014-02-19 Tom Tromey <tromey@redhat.com>
9601 * target-delegates.c: Rebuild.
9602 * target.c (update_current_target): Don't inherit or default
9603 to_watchpoint_addr_within_range.
9604 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9605 Use TARGET_DEFAULT_FUNC.
9607 2014-02-19 Tom Tromey <tromey@redhat.com>
9609 * target-delegates.c: Rebuild.
9610 * target.c (update_current_target): Don't inherit or default
9611 to_remove_watchpoint.
9612 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9613 TARGET_DEFAULT_NORETURN.
9615 2014-02-19 Tom Tromey <tromey@redhat.com>
9617 * target-delegates.c: Rebuild.
9618 * target.c (update_current_target): Don't inherit or default
9619 to_insert_watchpoint.
9620 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9621 TARGET_DEFAULT_RETURN.
9623 2014-02-19 Tom Tromey <tromey@redhat.com>
9625 * target-delegates.c: Rebuild.
9626 * target.c (update_current_target): Don't inherit or default
9627 to_remove_hw_breakpoint.
9628 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9629 TARGET_DEFAULT_RETURN.
9631 2014-02-19 Tom Tromey <tromey@redhat.com>
9633 * target-delegates.c: Rebuild.
9634 * target.c (update_current_target): Don't inherit or default
9635 to_insert_hw_breakpoint.
9636 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9637 TARGET_DEFAULT_RETURN.
9639 2014-02-19 Tom Tromey <tromey@redhat.com>
9641 * target-delegates.c: Rebuild.
9642 * target.c (update_current_target): Don't inherit or default
9643 to_can_use_hw_breakpoint.
9644 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9645 TARGET_DEFAULT_RETURN.
9647 2014-02-19 Tom Tromey <tromey@redhat.com>
9649 * target-delegates.c: Rebuild.
9650 * target.c (update_current_target): Don't inherit or default
9652 * target.h (struct target_ops) <to_files_info>: Use
9653 TARGET_DEFAULT_IGNORE.
9655 2014-02-19 Tom Tromey <tromey@redhat.com>
9657 * target-delegates.c: Rebuild.
9658 * target.c (update_current_target): Don't inherit or default
9660 * target.h (struct target_ops) <to_store>: Use
9661 TARGET_DEFAULT_NORETURN.
9663 2014-02-19 Tom Tromey <tromey@redhat.com>
9665 * target-delegates.c: Rebuild.
9666 * target.c (update_current_target): Don't inherit or default
9668 * target.h (struct target_ops) <to_post_attach>: Use
9669 TARGET_DEFAULT_IGNORE.
9671 2014-02-19 Tom Tromey <tromey@redhat.com>
9673 * target-delegates.c: Rebuild.
9674 * target.c (update_current_target): Don't inherit or default
9676 (default_rcmd): New function.
9677 (do_monitor_command): Unconditionally delegate.
9678 * target.h (struct target_ops) <to_rmcd>: Use
9679 TARGET_DEFAULT_FUNC.
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9683 * target-delegates.c: Rebuild.
9684 * target.c (init_dummy_target): Don't initialize to_attach.
9685 (target_attach): Unconditionally delegate.
9686 * target.h (struct target_ops) <to_attach>: Use
9687 TARGET_DEFAULT_FUNC.
9689 2014-02-19 Tom Tromey <tromey@redhat.com>
9691 * target-delegates.c: Rebuild.
9692 * target.c (target_detach): Unconditionally delegate.
9693 (init_dummy_target): Don't initialize to_detach.
9694 * target.h (struct target_ops) <to_detach>: Use
9695 TARGET_DEFAULT_IGNORE.
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9699 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9701 (target_augmented_libraries_svr4_read): Add argument.
9702 * target.c (update_current_target): Update.
9703 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9708 * target.h (struct target_ops) <to_call_history_range>: Add
9710 * target.c (target_call_history_range): Add argument.
9711 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9713 (record_btrace_call_history_from): Update.
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9717 * target.h (struct target_ops) <to_call_history_from>: Add
9719 * target.c (target_call_history_from): Add argument.
9720 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9723 2014-02-19 Tom Tromey <tromey@redhat.com>
9725 * target.h (struct target_ops) <to_call_history>: Add argument.
9726 * target.c (target_call_history): Add argument.
9727 * record-btrace.c (record_btrace_call_history): Add 'self'
9730 2014-02-19 Tom Tromey <tromey@redhat.com>
9732 * target.h (struct target_ops) <to_insn_history_range>: Add
9734 * target.c (target_insn_history_range): Add argument.
9735 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9737 (record_btrace_insn_history_from): Update.
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9741 * target.h (struct target_ops) <to_insn_history_from>: Add
9743 * target.c (target_insn_history_from): Add argument.
9744 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9749 * target.h (struct target_ops) <to_insn_history>: Add argument.
9750 * target.c (target_insn_history): Add argument.
9751 * record-btrace.c (record_btrace_insn_history): Add 'self'
9754 2014-02-19 Tom Tromey <tromey@redhat.com>
9756 * target.h (struct target_ops) <to_goto_record>: Add argument.
9757 * target.c (target_goto_record): Add argument.
9758 * record-full.c (record_full_goto): Add 'self' argument.
9759 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9761 2014-02-19 Tom Tromey <tromey@redhat.com>
9763 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9764 * target.c (target_goto_record_end): Add argument.
9765 * record-full.c (record_full_goto_end): Add 'self' argument.
9766 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9768 2014-02-19 Tom Tromey <tromey@redhat.com>
9770 * target.h (struct target_ops) <to_goto_record_begin>: Add
9772 * target.c (target_goto_record_begin): Add argument.
9773 * record-full.c (record_full_goto_begin): Add 'self' argument.
9774 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9777 2014-02-19 Tom Tromey <tromey@redhat.com>
9779 * target.h (struct target_ops) <to_record_is_replaying>: Add
9781 * target.c (target_record_is_replaying): Add argument.
9782 * record-full.c (record_full_is_replaying): Add 'self' argument.
9783 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9785 (record_btrace_xfer_partial, record_btrace_store_registers)
9786 (record_btrace_prepare_to_store, record_btrace_resume)
9787 (record_btrace_wait, record_btrace_decr_pc_after_break)
9788 (record_btrace_find_new_threads, record_btrace_thread_alive):
9791 2014-02-19 Tom Tromey <tromey@redhat.com>
9793 * target.h (struct target_ops) <to_delete_record>: Add argument.
9794 * target.c (target_delete_record): Add argument.
9795 * record-full.c (record_full_delete): Add 'self' argument.
9797 2014-02-19 Tom Tromey <tromey@redhat.com>
9799 * target.h (struct target_ops) <to_save_record>: Add argument.
9800 * target.c (target_save_record): Add argument.
9801 * record-full.c (record_full_save): Add 'self' argument.
9802 (record_full_save): Add 'self' argument.
9804 2014-02-19 Tom Tromey <tromey@redhat.com>
9806 * target.h (struct target_ops) <to_info_record>: Add argument.
9807 * target.c (target_info_record): Add argument.
9808 * record.c (info_record_command): Add argument.
9809 * record-full.c (record_full_info): Add 'self' argument.
9810 * record-btrace.c (record_btrace_info): Add 'self' argument.
9812 2014-02-19 Tom Tromey <tromey@redhat.com>
9814 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9815 * target.c (target_stop_recording): Add argument.
9816 * record.c (record_stop): Add argument.
9817 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9820 2014-02-19 Tom Tromey <tromey@redhat.com>
9822 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9823 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9824 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9826 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9827 (_initialize_amd64_linux_nat): Use it.
9828 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9829 (_initialize_i386_linux_nat): Use it.
9831 2014-02-19 Tom Tromey <tromey@redhat.com>
9833 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9834 * target.c (target_teardown_btrace): Add argument.
9835 * remote.c (remote_teardown_btrace): Add 'self' argument.
9836 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9838 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9841 2014-02-19 Tom Tromey <tromey@redhat.com>
9843 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9844 * target.c (target_disable_btrace): Add argument.
9845 * remote.c (remote_disable_btrace): Add 'self' argument.
9846 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9848 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9853 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9854 * target.c (target_enable_btrace): Add argument.
9855 * remote.c (remote_enable_btrace): Add 'self' argument.
9856 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9858 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9861 2014-02-19 Tom Tromey <tromey@redhat.com>
9863 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9864 (target_can_use_agent): Add argument.
9865 * target.c (update_current_target): Update.
9866 * remote.c (remote_can_use_agent): Add 'self' argument.
9867 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9869 2014-02-19 Tom Tromey <tromey@redhat.com>
9871 * target.h (struct target_ops) <to_use_agent>: Add argument.
9872 (target_use_agent): Add argument.
9873 * target.c (update_current_target): Update.
9874 * remote.c (remote_use_agent): Add 'self' argument.
9875 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9879 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9880 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9881 (target_traceframe_info): Add argument.
9882 * target.c (update_current_target): Update.
9883 * remote.c (remote_traceframe_info): Add 'self' argument.
9884 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9886 2014-02-19 Tom Tromey <tromey@redhat.com>
9888 * target.h (target_static_tracepoint_markers_by_strid): Add
9890 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9892 * target.c (update_current_target): Update.
9893 * remote.c (struct target_ops)
9894 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9895 * linux-nat.c (struct target_ops)
9896 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9898 2014-02-19 Tom Tromey <tromey@redhat.com>
9900 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9902 (target_static_tracepoint_marker_at): Add argument.
9903 * target.c (update_current_target): Update.
9904 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9907 2014-02-19 Tom Tromey <tromey@redhat.com>
9909 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9910 (target_set_permissions): Add argument.
9911 * target.c (update_current_target): Update.
9912 * remote.c (remote_set_permissions): Add 'self' argument.
9913 (remote_start_remote): Update.
9915 2014-02-19 Tom Tromey <tromey@redhat.com>
9917 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9918 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9919 (target_get_tib_address): Add argument.
9920 * target.c (update_current_target): Update.
9921 * remote.c (remote_get_tib_address): Add 'self' argument.
9923 2014-02-19 Tom Tromey <tromey@redhat.com>
9925 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9926 (target_set_trace_notes): Add argument.
9927 * target.c (update_current_target): Update.
9928 * remote.c (remote_set_trace_notes): Add 'self' argument.
9930 2014-02-19 Tom Tromey <tromey@redhat.com>
9932 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9934 (target_set_trace_buffer_size): Add argument.
9935 * target.c (update_current_target): Update.
9936 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9938 2014-02-19 Tom Tromey <tromey@redhat.com>
9940 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9942 (target_set_circular_trace_buffer): Add argument.
9943 * target.c (update_current_target): Update.
9944 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9947 2014-02-19 Tom Tromey <tromey@redhat.com>
9949 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9951 (target_set_disconnected_tracing): Add argument.
9952 * target.c (update_current_target): Update.
9953 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9955 2014-02-19 Tom Tromey <tromey@redhat.com>
9957 * target.h (struct target_ops)
9958 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9959 (target_get_min_fast_tracepoint_insn_len): Add argument.
9960 * target.c (update_current_target): Update.
9961 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9964 2014-02-19 Tom Tromey <tromey@redhat.com>
9966 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9968 (target_get_raw_trace_data): Add argument.
9969 * target.c (update_current_target): Update.
9970 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9974 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9976 (target_upload_trace_state_variables): Add argument.
9977 * target.c (update_current_target): Update.
9978 * remote.c (remote_upload_trace_state_variables): Add 'self'
9980 (remote_start_remote): Update.
9982 2014-02-19 Tom Tromey <tromey@redhat.com>
9984 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9986 (target_upload_tracepoints): Add argument.
9987 * target.c (update_current_target): Update.
9988 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9989 (remote_start_remote): Update.
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9993 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9994 (target_save_trace_data): Add argument.
9995 * target.c (update_current_target): Update.
9996 * remote.c (remote_save_trace_data): Add 'self' argument.
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
10000 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10002 * target.h (struct target_ops)
10003 <to_get_trace_state_variable_value>: Add argument.
10004 (target_get_trace_state_variable_value): Add argument.
10005 * target.c (update_current_target): Update.
10006 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10008 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10010 2014-02-19 Tom Tromey <tromey@redhat.com>
10012 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10013 * target.h (struct target_ops) <to_trace_find>: Add argument.
10014 (target_trace_find): Add argument.
10015 * target.c (update_current_target): Update.
10016 * remote.c (remote_trace_find): Add 'self' argument.
10017 * ctf.c (ctf_trace_find): Add 'self' argument.
10019 2014-02-19 Tom Tromey <tromey@redhat.com>
10021 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10022 (target_trace_stop): Add argument.
10023 * target.c (update_current_target): Update.
10024 * remote.c (remote_trace_stop): Add 'self' argument.
10026 2014-02-19 Tom Tromey <tromey@redhat.com>
10028 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10029 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10031 (target_get_tracepoint_status): Add argument.
10032 * target.c (update_current_target): Update.
10033 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10035 2014-02-19 Tom Tromey <tromey@redhat.com>
10037 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10038 * target.h (struct target_ops) <to_get_trace_status>: Add
10040 (target_get_trace_status): Add argument.
10041 * target.c (update_current_target): Update.
10042 * remote.c (remote_get_trace_status): Add 'self' argument.
10043 (remote_start_remote, remote_can_download_tracepoint): Update.
10044 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10046 2014-02-19 Tom Tromey <tromey@redhat.com>
10048 * target.h (struct target_ops) <to_trace_start>: Add argument.
10049 (target_trace_start): Add argument.
10050 * target.c (update_current_target): Update.
10051 * remote.c (remote_trace_start): Add 'self' argument.
10053 2014-02-19 Tom Tromey <tromey@redhat.com>
10055 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10057 (target_trace_set_readonly_regions): Add argument.
10058 * target.c (update_current_target): Update.
10059 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10062 2014-02-19 Tom Tromey <tromey@redhat.com>
10064 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10066 (target_disable_tracepoint): Add argument.
10067 * target.c (update_current_target): Update.
10068 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10070 2014-02-19 Tom Tromey <tromey@redhat.com>
10072 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10074 (target_enable_tracepoint): Add argument.
10075 * target.c (update_current_target): Update.
10076 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10078 2014-02-19 Tom Tromey <tromey@redhat.com>
10080 * target.h (struct target_ops) <to_download_trace_state_variable>:
10082 (target_download_trace_state_variable): Add argument.
10083 * target.c (update_current_target): Update.
10084 * remote.c (remote_download_trace_state_variable): Add 'self'
10087 2014-02-19 Tom Tromey <tromey@redhat.com>
10089 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10091 (target_can_download_tracepoint): Add argument.
10092 * target.c (update_current_target): Update.
10093 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10095 2014-02-19 Tom Tromey <tromey@redhat.com>
10097 * target.h (struct target_ops) <to_download_tracepoint>: Add
10099 (target_download_tracepoint): Add argument.
10100 * target.c (update_current_target): Update.
10101 * remote.c (remote_download_tracepoint): Add 'self' argument.
10103 2014-02-19 Tom Tromey <tromey@redhat.com>
10105 * target.h (struct target_ops) <to_trace_init>: Add argument.
10106 (target_trace_init): Add argument.
10107 * target.c (update_current_target): Update.
10108 * remote.c (remote_trace_init): Add 'self' argument.
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10112 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10113 * target.c (target_fileio_readlink): Add argument.
10114 * remote.c (remote_hostio_readlink): Add 'self' argument.
10115 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10117 2014-02-19 Tom Tromey <tromey@redhat.com>
10119 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10120 * target.c (target_fileio_unlink): Add argument.
10121 * remote.c (remote_hostio_unlink): Add 'self' argument.
10122 (remote_file_delete): Update.
10123 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10125 2014-02-19 Tom Tromey <tromey@redhat.com>
10127 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10128 * target.c (target_fileio_close): Add argument.
10129 * remote.c (remote_hostio_close): Add 'self' argument.
10130 (remote_hostio_close_cleanup): Update.
10131 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10133 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10135 2014-02-19 Tom Tromey <tromey@redhat.com>
10137 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10138 * target.c (target_fileio_pread): Add argument.
10139 * remote.c (remote_hostio_pread): Add 'self' argument.
10140 (remote_bfd_iovec_pread, remote_file_get): Update.
10141 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10143 2014-02-19 Tom Tromey <tromey@redhat.com>
10145 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10146 * target.c (target_fileio_pwrite): Add argument.
10147 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10148 (remote_file_put): Update.
10149 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10153 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10154 * target.c (target_fileio_open): Add argument.
10155 * remote.c (remote_hostio_open): Add 'self' argument.
10156 (remote_bfd_iovec_open): Add 'self' argument.
10157 (remote_file_put): Add 'self' argument.
10158 (remote_file_get): Add 'self' argument.
10159 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10161 2014-02-19 Tom Tromey <tromey@redhat.com>
10163 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10165 (target_can_run_breakpoint_commands): Add argument.
10166 * target.c (update_current_target): Update.
10167 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10169 (remote_insert_breakpoint): Add 'self' argument.
10170 (remote_insert_hw_breakpoint): Add 'self' argument.
10171 (remote_can_run_breakpoint_commands): Add 'self' argument.
10173 2014-02-19 Tom Tromey <tromey@redhat.com>
10175 * target.h (struct target_ops)
10176 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10177 (target_supports_evaluation_of_breakpoint_conditions): Add
10179 * target.c (update_current_target): Update.
10180 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10182 (remote_insert_breakpoint): Add 'self' argument.
10183 (remote_insert_hw_breakpoint): Add 'self' argument.
10184 (remote_supports_cond_breakpoints): Add 'self' argument.
10186 2014-02-19 Tom Tromey <tromey@redhat.com>
10188 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10190 (target_supports_string_tracing): Add argument.
10191 * target.c (update_current_target): Update.
10192 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10194 2014-02-19 Tom Tromey <tromey@redhat.com>
10196 * target.h (struct target_ops)
10197 <to_supports_disable_randomization>: Add argument.
10198 * target.c (find_default_supports_disable_randomization): Add
10200 (target_supports_disable_randomization): Add argument.
10201 (find_default_supports_disable_randomization): Add 'self'
10203 * remote.c (extended_remote_supports_disable_randomization): Add
10205 (remote_supports_disable_randomization): Add 'self' argument.
10206 (extended_remote_create_inferior): Update.
10207 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10210 2014-02-19 Tom Tromey <tromey@redhat.com>
10212 * target.h (struct target_ops)
10213 <to_supports_enable_disable_tracepoint>: Add argument.
10214 (target_supports_enable_disable_tracepoint): Add argument.
10215 * target.c (update_current_target): Update.
10216 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10219 2014-02-19 Tom Tromey <tromey@redhat.com>
10221 * target.h (struct target_ops) <to_supports_multi_process>: Add
10223 (target_supports_multi_process): Add argument.
10224 * target.c (update_current_target): Update.
10225 * remote.c (remote_supports_multi_process): Add 'self' argument.
10226 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10228 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10231 2014-02-19 Tom Tromey <tromey@redhat.com>
10233 * target.h (struct target_ops) <to_execution_direction>: Add
10235 (target_execution_direction): Add argument.
10236 * target.c (default_execution_direction): Add 'self' argument.
10237 * record-full.c (record_full_execution_direction): Add 'self'
10240 2014-02-19 Tom Tromey <tromey@redhat.com>
10242 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10244 (target_can_execute_reverse): Add argument.
10245 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10246 * record-full.c (record_full_can_execute_reverse): Add 'self'
10248 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10251 2014-02-19 Tom Tromey <tromey@redhat.com>
10253 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10254 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10256 (target_get_ada_task_ptid): Add argument.
10257 * target.c (update_current_target): Update.
10258 (default_get_ada_task_ptid): Add 'self' argument.
10259 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10260 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10261 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10263 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10265 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10267 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10269 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10270 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10275 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10276 (target_goto_bookmark): Add argument.
10277 * target.c (dummy_goto_bookmark): Add 'self' argument.
10278 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10280 2014-02-19 Tom Tromey <tromey@redhat.com>
10282 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10283 (target_get_bookmark): Add argument.
10284 * target.c (dummy_get_bookmark): Add 'self' argument.
10285 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10287 2014-02-19 Tom Tromey <tromey@redhat.com>
10289 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10291 (target_make_corefile_notes): Add argument.
10292 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10293 * procfs.c (procfs_make_note_section): Add 'self' argument.
10294 (procfs_make_note_section): Add 'self' argument.
10295 (procfs_make_note_section): Add 'self' argument.
10296 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10298 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10299 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10300 * exec.c (exec_make_note_section): Add 'self' argument.
10301 (exec_make_note_section): Add 'self' argument.
10303 2014-02-19 Tom Tromey <tromey@redhat.com>
10305 * target.h (struct target_ops) <to_find_memory_regions>: Add
10307 (target_find_memory_regions): Add argument.
10308 * target.c (dummy_find_memory_regions): Add 'self' argument.
10309 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10310 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10311 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10312 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10313 * exec. (exec_do_find_memory_regions): New global.
10314 (exec_set_find_memory_regions): Rewrite.
10315 (exec_find_memory_regions): New function.
10316 (init_exec_ops): Use exec_find_memory_regions.
10318 2014-02-19 Tom Tromey <tromey@redhat.com>
10320 * target.h (struct target_ops) <to_supports_non_stop>: Add
10322 * target.c (find_default_supports_non_stop): Add argument.
10323 (target_supports_non_stop): Add argument.
10324 (find_default_supports_non_stop): Add 'self' argument.
10325 * remote.c (remote_supports_non_stop): Add 'self' argument.
10326 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10328 2014-02-19 Tom Tromey <tromey@redhat.com>
10330 * target.h (struct target_ops) <to_log_command>: Add argument.
10331 (target_log_command): Add argument.
10332 * serial.h (serial_log_command): Add 'self' argument.
10333 * serial.c (serial_log_command): Add 'self' argument.
10335 2014-02-19 Tom Tromey <tromey@redhat.com>
10337 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10338 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10340 (target_pid_to_exec_file): Add argument.
10341 * target.c (debug_to_pid_to_exec_file): Add argument.
10342 (update_current_target): Update.
10343 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10344 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10345 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10346 (linux_handle_extended_wait): Update.
10347 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10348 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10349 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10350 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10352 2014-02-19 Tom Tromey <tromey@redhat.com>
10354 * target.h (struct target_ops) <to_rcmd>: Add argument.
10355 (target_rcmd): Add argument.
10356 * target.c (debug_to_rcmd): Add argument.
10357 (update_current_target, do_monitor_command): Update.
10358 * remote.c (remote_rcmd): Add 'self' argument.
10359 * monitor.c (monitor_rcmd): Add 'self' argument.
10361 2014-02-19 Tom Tromey <tromey@redhat.com>
10363 * windows-nat.c (windows_stop): Add 'self' argument.
10364 * target.h (struct target_ops) <to_stop>: Add argument.
10365 * target.c (target_stop): Add argument.
10366 (debug_to_stop): Add argument.
10367 (update_current_target): Update.
10368 * remote.c (remote_stop): Add 'self' argument.
10369 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10370 (gdbsim_cntrl_c): Update.
10371 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10372 * procfs.c (procfs_stop): Add 'self' argument.
10373 * nto-procfs.c (procfs_stop): Add 'self' argument.
10374 * monitor.c (monitor_stop): Add 'self' argument.
10375 (monitor_open): Update.
10376 * linux-nat.c (linux_nat_stop): Add argument.
10377 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10378 * gnu-nat.c (gnu_stop): Add 'self' argument.
10379 * darwin-nat.c (darwin_stop): Add 'self' argument.
10381 2014-02-19 Tom Tromey <tromey@redhat.com>
10383 * target.h (struct target_ops) <to_thread_name>: Add argument.
10384 * target.c (target_thread_name): Add argument.
10385 (update_current_target): Update.
10386 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10388 2014-02-19 Tom Tromey <tromey@redhat.com>
10390 * target.h (struct target_ops) <to_extra_thread_info>: Add
10392 (target_extra_thread_info): Add argument.
10393 * target.c (update_current_target): Update.
10394 * remote.c (remote_threads_extra_info): Add 'self' argument.
10395 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10397 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10398 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10399 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10401 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10403 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10405 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10408 2014-02-19 Tom Tromey <tromey@redhat.com>
10410 * target.h (struct target_ops) <to_program_signals>: Add argument.
10411 * target.c (target_program_signals): Add argument.
10412 * remote.c (remote_program_signals): Add 'self' argument.
10414 2014-02-19 Tom Tromey <tromey@redhat.com>
10416 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10417 * target.c (target_pass_signals): Add argument.
10418 * remote.c (remote_pass_signals): Add 'self' argument.
10419 (remote_start_remote): Update.
10420 * procfs.c (procfs_pass_signals): Add 'self' argument.
10421 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10422 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10423 (linux_nat_create_inferior, linux_nat_attach): Update.
10425 2014-02-19 Tom Tromey <tromey@redhat.com>
10427 * windows-nat.c (windows_can_run): Add 'self' argument.
10428 * target.h (struct target_ops) <to_can_run>: Add argument.
10429 (target_can_run): Add argument.
10430 * target.c (debug_to_can_run): Add argument.
10431 (update_current_target): Update.
10432 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10433 * inf-child.c (inf_child_can_run): Add 'self' argument.
10434 * go32-nat.c (go32_can_run): Add 'self' argument.
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10438 * target.h (struct target_ops) <to_has_exited>: Add argument.
10439 (target_has_exited): Add argument.
10440 * target.c (debug_to_has_exited): Add argument.
10441 (update_current_target): Update.
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10445 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10447 (target_set_syscall_catchpoint): Add argument.
10448 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10450 * target.c (update_current_target): Update.
10452 2014-02-19 Tom Tromey <tromey@redhat.com>
10454 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10456 (target_remove_exec_catchpoint): Add argument.
10457 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10458 (update_current_target): Update.
10459 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10462 2014-02-19 Tom Tromey <tromey@redhat.com>
10464 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10466 (target_insert_exec_catchpoint): Add argument.
10467 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10468 (update_current_target): Update.
10469 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10472 2014-02-19 Tom Tromey <tromey@redhat.com>
10474 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10476 (target_remove_vfork_catchpoint): Add argument.
10477 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10478 (update_current_target): Update.
10479 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10482 2014-02-19 Tom Tromey <tromey@redhat.com>
10484 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10486 (target_insert_vfork_catchpoint): Add argument.
10487 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10488 (update_current_target): Update.
10489 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10492 2014-02-19 Tom Tromey <tromey@redhat.com>
10494 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10496 (target_remove_fork_catchpoint): Add argument.
10497 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10498 (update_current_target): Update.
10499 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10502 2014-02-19 Tom Tromey <tromey@redhat.com>
10504 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10506 (target_insert_fork_catchpoint): Add argument.
10507 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10508 (update_current_target): Update.
10509 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10512 2014-02-19 Tom Tromey <tromey@redhat.com>
10514 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10516 (target_post_startup_inferior): Add argument.
10517 * target.c (debug_to_post_startup_inferior): Add argument.
10518 (update_current_target): Update.
10519 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10521 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10523 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10525 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10527 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10529 (super_post_startup_inferior): Likewise.
10530 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10532 (super_post_startup_inferior): Likewise.
10533 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10534 Add 'self' argument.
10535 (super_post_startup_inferior): Likewise.
10537 2014-02-19 Tom Tromey <tromey@redhat.com>
10539 * target.h (struct target_ops) <to_load>: Add argument.
10540 * target.c (target_load): Add argument.
10541 (debug_to_load): Add argument.
10542 (update_current_target): Update.
10543 * remote.c (remote_load): Add 'self' argument.
10544 * remote-sim.c (gdbsim_load): Add 'self' argument.
10545 * remote-mips.c (mips_load): Add 'self' argument.
10546 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10547 * monitor.c (monitor_load): Add 'self' argument.
10548 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10550 2014-02-19 Tom Tromey <tromey@redhat.com>
10552 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10553 (target_terminal_info): Add argument.
10554 * target.c (debug_to_terminal_info): Add argument.
10555 (default_terminal_info): Likewise.
10556 * inflow.c (child_terminal_info): Add 'self' argument.
10557 * inferior.h (child_terminal_info): Add 'self' argument.
10558 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10560 2014-02-19 Tom Tromey <tromey@redhat.com>
10562 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10564 (target_terminal_save_ours): Add argument.
10565 * target.c (debug_to_terminal_save_ours): Add argument.
10566 (update_current_target): Update.
10567 * inflow.c (terminal_save_ours): Add 'self' argument.
10568 * inferior.h (terminal_save_ours): Add 'self' argument.
10570 2014-02-19 Tom Tromey <tromey@redhat.com>
10572 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10573 (target_terminal_ours): Add argument.
10574 * target.c (debug_to_terminal_ours): Add argument.
10575 (update_current_target): Update.
10576 * remote.c (remote_terminal_ours): Add 'self' argument.
10577 (remote_close): Update.
10578 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10579 * inflow.c (terminal_ours): Add 'self' argument.
10580 * inferior.h (terminal_ours): Add 'self' argument.
10581 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10583 2014-02-19 Pedro Alves <palves@redhat.com>
10584 Tom Tromey <tromey@redhat.com>
10586 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10588 (target_terminal_ours_for_output): Add argument.
10589 * target.c (debug_to_terminal_ours_for_output): Add argument.
10590 (update_current_target): Update.
10591 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10592 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10593 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10595 2014-02-19 Tom Tromey <tromey@redhat.com>
10597 * target.h (struct target_ops) <to_terminal_inferior>: Add
10599 * target.c (target_terminal_inferior): Add argument.
10600 (update_current_target): Update.
10601 * remote.c (remote_terminal_inferior): Add 'self' argument.
10602 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10603 * inflow.c (terminal_inferior): Add 'self' argument.
10604 * inferior.h (terminal_inferior): Add 'self' argument.
10605 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10606 (go32_terminal_inferior): Add 'self' argument.
10608 2014-02-19 Tom Tromey <tromey@redhat.com>
10610 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10611 (target_terminal_init): Add argument.
10612 * target.c (debug_to_terminal_init): Add argument.
10613 (update_current_target): Update.
10614 * inflow.c (terminal_init_inferior): Add 'self' argument.
10615 * inferior.h (terminal_init_inferior): Add 'self' argument.
10616 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10617 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10619 2014-02-19 Tom Tromey <tromey@redhat.com>
10621 * target.h (struct target_ops)
10622 <to_can_accel_watchpoint_condition>: Add argument.
10623 (target_can_accel_watchpoint_condition): Add argument.
10624 * target.c (debug_to_can_accel_watchpoint_condition): Add
10626 (update_current_target): Update.
10627 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10630 2014-02-19 Tom Tromey <tromey@redhat.com>
10632 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10634 (target_region_ok_for_hw_watchpoint): Add argument.
10635 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10636 (default_region_ok_for_hw_watchpoint): Add argument.
10637 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10638 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10640 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10642 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10644 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10646 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10648 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10650 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10651 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10653 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10654 Add 'self' argument.
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10658 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10660 (target_insert_watchpoint): Add argument.
10661 * target.c (debug_to_insert_watchpoint): Add argument.
10662 (update_current_target): Update.
10663 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10664 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10665 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10666 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10667 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10668 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10670 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10671 (procfs_insert_hw_watchpoint): Add 'self' argument.
10672 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10674 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10676 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10678 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10679 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10681 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10684 2014-02-19 Tom Tromey <tromey@redhat.com>
10686 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10688 (target_remove_watchpoint): Add argument.
10689 * target.c (debug_to_remove_watchpoint): Add argument.
10690 (update_current_target): Update.
10691 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10692 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10693 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10694 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10695 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10696 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10698 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10699 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10701 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10703 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10705 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10706 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10708 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10711 2014-02-19 Tom Tromey <tromey@redhat.com>
10713 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10715 (target_remove_hw_breakpoint): Add argument.
10716 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10717 (update_current_target): Update.
10718 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10719 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10721 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10722 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10724 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10727 2014-02-19 Tom Tromey <tromey@redhat.com>
10729 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10731 (target_insert_hw_breakpoint): Add argument.
10732 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10733 (update_current_target): Update.
10734 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10735 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10737 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10738 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10739 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10741 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10744 2014-02-19 Tom Tromey <tromey@redhat.com>
10746 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10748 (target_can_use_hardware_watchpoint): Add argument.
10749 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10750 (update_current_target): Update.
10751 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10753 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10755 * remote.c (remote_check_watch_resources): Add 'self' argument.
10756 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10757 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10759 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10760 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10762 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10764 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10766 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10768 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10770 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10772 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10773 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10775 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10778 2014-02-19 Tom Tromey <tromey@redhat.com>
10780 * target.h (struct target_ops) <to_post_attach>: Add argument.
10781 (target_post_attach): Add argument.
10782 * target.c (debug_to_post_attach): Add argument.
10783 (update_current_target): Update.
10784 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10785 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10786 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10787 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10788 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10790 2014-02-19 Tom Tromey <tromey@redhat.com>
10792 * windows-nat.c (windows_close): Add 'self' argument.
10793 * tracepoint.c (tfile_close): Add 'self' argument.
10794 * target.h (struct target_ops) <to_close>: Add argument.
10795 * target.c (target_close): Add argument.
10796 (update_current_target): Update.
10797 * remote.c (remote_close): Add 'self' argument.
10798 * remote-sim.c (gdbsim_close): Add 'self' argument.
10799 * remote-mips.c (mips_close): Add 'self' argument.
10800 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10801 * record-full.c (record_full_close): Add 'self' argument.
10802 * record-btrace.c (record_btrace_close): Add 'self' argument.
10803 * monitor.h (monitor_close): Add 'self' argument.
10804 * monitor.c (monitor_close): Add 'self' argument.
10805 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10806 * linux-nat.c (linux_nat_close): Add argument.
10807 * go32-nat.c (go32_close): Add 'self' argument.
10808 * exec.c (exec_close_1): Add 'self' argument.
10809 * ctf.c (ctf_close): Add 'self' argument.
10810 * corelow.c (core_close): Add 'self' argument.
10811 (core_close_cleanup): Update.
10812 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10813 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10815 2014-02-19 Tom Tromey <tromey@redhat.com>
10817 * remote.c (remote_load): New function.
10818 (init_remote_ops): Use it.
10820 2014-02-19 Tom Tromey <tromey@redhat.com>
10822 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10824 * common/linux-btrace.h (linux_supports_btrace): Update.
10825 * remote.c (remote_supports_btrace): Add "self" argument.
10826 * target-delegates.c: Rebuild.
10827 * target.c (target_supports_btrace): Remove.
10828 * target.h (struct target_ops) <to_supports_btrace>: Add
10829 target_ops argument.
10830 (target_supports_btrace): New define.
10832 2014-02-19 Tom Tromey <tromey@redhat.com>
10834 * record-full.c (record_full_beneath_to_resume_ops)
10835 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10836 (record_full_beneath_to_wait)
10837 (record_full_beneath_to_store_registers_ops)
10838 (record_full_beneath_to_store_registers)
10839 (record_full_beneath_to_xfer_partial_ops)
10840 (record_full_beneath_to_xfer_partial)
10841 (record_full_beneath_to_insert_breakpoint_ops)
10842 (record_full_beneath_to_insert_breakpoint)
10843 (record_full_beneath_to_remove_breakpoint_ops)
10844 (record_full_beneath_to_remove_breakpoint)
10845 (record_full_beneath_to_stopped_by_watchpoint)
10846 (record_full_beneath_to_stopped_data_address)
10847 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10848 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10849 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10850 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10851 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10852 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10853 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10854 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10855 (record_full_resume, record_full_wait_1)
10856 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10857 (record_full_store_registers, record_full_xfer_partial)
10858 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10859 (record_full_async, record_full_core_xfer_partial): Use target
10861 * target-delegates.c: Rebuild.
10862 * target.c (current_xfer_partial): Remove.
10863 (update_current_target): Do not INHERIT or de_fault
10864 to_insert_breakpoint, to_remove_breakpoint,
10865 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10866 to_is_async_p, to_async. Do not set to_xfer_partial field.
10867 (default_xfer_partial): Simplify.
10868 (current_xfer_partial): Remove.
10869 (target_wait, target_resume): Simplify.
10870 (find_default_can_async_p, find_default_is_async_p): Update.
10871 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10872 to_xfer_partial, to_stopped_by_watchpoint,
10873 to_stopped_data_address.
10874 (target_store_registers): Simplify.
10875 (forward_target_remove_breakpoint)
10876 (forward_target_insert_breakpoint): Remove.
10877 (target_remove_breakpoint, target_insert_breakpoint)
10878 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10879 * target.h (struct target_ops) <to_resume, to_wait,
10880 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10881 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10882 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10884 (forward_target_remove_breakpoint)
10885 (forward_target_insert_breakpoint): Remove.
10886 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10888 (record_btrace_insert_breakpoint): Delegate directly.
10890 2014-02-19 Tom Tromey <tromey@redhat.com>
10893 * target-delegates.c: New file.
10894 * target.c: Include target-delegates.c.
10895 (init_dummy_target): Call install_dummy_methods.
10896 (complete_target_initialization): Call install_delegators.
10897 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10898 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10899 * make-target-delegates: New file.
10901 2014-02-19 Tom Tromey <tromey@redhat.com>
10903 * record.c (find_record_target): Use find_target_at.
10904 * target.c (find_target_at): New function.
10905 * target.h (find_target_at): Declare.
10907 2014-02-19 Tom Tromey <tromey@redhat.com>
10909 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10910 Add 'ops' argument.
10911 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10913 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10914 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10916 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10918 * linux-nat.c (save_sigtrap): Update.
10919 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10920 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10921 (linux_nat_close): Update.
10922 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10924 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10926 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10927 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10928 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10929 (tmp_to_async): Add 'ops' argument.
10930 (record_full_stopped_by_watchpoint, record_full_async)
10931 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10933 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10934 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10935 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10936 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10937 (remote_is_async_p, remote_async): Add 'ops' argument.
10938 (remote_stopped_data_address): Update.
10939 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10940 * target.c (update_current_target)
10941 (find_default_can_async_p, find_default_is_async_p): Update.
10942 (init_dummy_target): Update.
10943 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10944 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10945 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10946 (target_can_async_p, target_is_async_p, target_async)
10947 (target_stopped_by_watchpoint): Update.
10949 2014-02-19 Yao Qi <yao@codesourcery.com>
10952 * gdbarch.sh: Remove startup_gdbarch.
10953 * gdbarch.c: Regenerated.
10954 * gdbarch.h: Likewise.
10956 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10958 * rl78-tdep.c (rl78_g10_register_name): New function.
10959 (rl78_return_value): Add g10 support.
10960 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10963 2014-02-17 Doug Evans <xdje42@gmail.com>
10965 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10966 (SUBDIR_GUILE_SRCS): Ditto.
10967 (scm-gsmob.o): Ditto.
10969 2014-02-17 Yao Qi <yao@codesourcery.com>
10971 * gnu-nat.c (ILL_RPC): Declare defined function.
10973 2014-02-17 Yao Qi <yao@codesourcery.com>
10975 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10976 mach_msg_type_number_t.
10977 (gnu_write_inferior): Likewise.
10979 2014-02-17 Yao Qi <yao@codesourcery.com>
10981 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10983 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10984 (inf_validate_procs, inf_signal): Likewise.
10985 (S_exception_raise_request): Likewise.
10986 (do_mach_notify_dead_name): Likewise.
10987 (steal_exc_port): Likewise.
10988 (gnu_read_inferior): Change 'copy_count''s type to
10989 mach_msg_type_number_t.
10990 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10993 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10995 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10996 flag. Adjust all users; in particular...
10997 (gnu_wait): ..., don't decrement its value in here...
10998 (gnu_create_inferior): ..., and instead set the flag in here,
10999 around the startup_inferior call, and call that one with
11000 START_INFERIOR_TRAPS_EXPECTED.
11002 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11003 (ILL_RPC): ... new macro.
11004 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11005 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11006 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11007 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11008 functions with ILL_RPC macro.
11009 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11010 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11011 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11012 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11013 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11014 (S_proc_getlogin_reply, S_proc_getsid_reply)
11015 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11016 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11017 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11018 (S_proc_getnports_reply, S_proc_is_important_reply)
11019 (S_proc_get_code_reply): New stub functions, generated with
11022 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11023 collected the type check structures.
11025 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11027 2014-02-14 Doug Evans <dje@google.com>
11029 * target.c (target_write_partial): Fix result type.
11031 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11033 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11034 the proper offsets to access fpregset_t.
11036 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11038 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11039 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11040 * h8300-tdep.c (setmachinelist): Remove global.
11041 * hppa-tdep.c (hppa_sigtramp): Remove global.
11042 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11043 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11044 * ravenscar-thread.c (update_target_observer): Remove global.
11045 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11047 2014-02-12 Tom Tromey <tromey@redhat.com>
11049 * common/rsp-low.c: Update comments.
11050 * common/rsp-low.h: Update comments.
11052 2014-02-12 Tom Tromey <tromey@redhat.com>
11054 * common/rsp-low.c (convert_ascii_to_int): Remove.
11055 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11057 2014-02-12 Tom Tromey <tromey@redhat.com>
11059 * common/rsp-low.h (unhexify): Don't declare.
11060 * common/rsp-low.c (unhexify): Remove.
11062 2014-02-12 Tom Tromey <tromey@redhat.com>
11064 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11065 * common/rsp-low.c (convert_int_to_ascii): Remove.
11067 2014-02-12 Tom Tromey <tromey@redhat.com>
11069 * common/rsp-low.h (hexify): Don't declare.
11070 * common/rsp-low.c (hexify): Remove.
11072 2014-02-12 Tom Tromey <tromey@redhat.com>
11074 * common/rsp-low.c (hexify): Never take strlen of argument.
11076 2014-02-12 Tom Tromey <tromey@redhat.com>
11078 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11079 * remote.c (extended_remote_run, remote_rcmd)
11080 (remote_download_trace_state_variable, remote_save_trace_data)
11081 (remote_set_trace_notes): Update.
11082 * tracepoint.c (encode_source_string, tfile_write_status)
11083 (tfile_write_uploaded_tsv): Update.
11085 2014-02-12 Tom Tromey <tromey@redhat.com>
11087 * tracepoint.c: Include rsp-low.h.
11088 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11089 * remote.c: Include rsp-low.h.
11090 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11091 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11092 (remote_unescape_input): Move to common/rsp-low.c.
11093 * common/rsp-low.h: New file.
11094 * common/rsp-low.c: New file.
11095 * Makefile.in (SFILES): Add common/rsp-low.c.
11096 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11097 (COMMON_OBS): Add rsp-low.o.
11098 (rsp-low.o): New target.
11100 2014-02-12 Tom Tromey <tromey@redhat.com>
11102 * utils.h: Include print-utils.h.
11103 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11104 (int_string, core_addr_to_string, core_addr_to_string_nz)
11105 (hex_string, hex_string_custom): Don't declare.
11106 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11107 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11108 (hex_string_custom, int_string, core_addr_to_string)
11109 (core_addr_to_string_nz, host_address_to_string): Move to
11110 common/print-utils.c.
11111 * common/print-utils.h: New file.
11112 * common/print-utils.c: New file
11113 * Makefile.in (SFILES): Add common/print-utils.c.
11114 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11115 (COMMON_OBS): Add print-utils.o.
11116 (print-utils.o): New target.
11118 2014-02-12 Tom Tromey <tromey@redhat.com>
11120 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11122 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11124 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11126 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11128 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11129 if a PT_IO ptrace request returns sucessfully but indicates that 0
11130 bytes were transferred.
11132 2014-02-12 Pedro Alves <palves@redhat.com>
11133 Kevin Buettner <kevinb@redhat.com>
11135 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11136 TYPE_INSTANCE_FLAG_CODE_SPACE.
11138 2014-02-12 Pedro Alves <palves@redhat.com>
11140 * h8300-tdep.c (pseudo_from_raw_register)
11141 (raw_from_pseudo_register): New functions.
11142 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11145 2014-02-12 Pedro Alves <palves@redhat.com>
11147 * h8300-tdep.c (h8300_register_sim_regno): New function.
11148 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11149 gdbarch_register_sim_regno hook.
11151 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11153 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11155 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11157 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11159 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11161 * obsd-tdep.h (obsd_init_abi): New prototype.
11162 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11163 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11164 (obsd_init_abi): New functions.
11165 * i386obsd-tdep.c: Include "obsd-tdep.h".
11166 (i386obsd_init_abi): Call obsd_init_abi.
11167 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11168 (amd64obsd_init_abi): Call obsd_init_abi.
11169 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11170 obsd-tdep.c to gdb_target_obs.
11172 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11174 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11175 double float arguments to 16-byte in the argument slots.
11177 2014-02-11 Doug Evans <xdje42@gmail.com>
11179 * configure.ac: Don't crash if pkg-config is not found and guile
11180 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11182 * configure: Regenerate.
11184 2014-02-11 Yao Qi <yao@codesourcery.com>
11186 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11187 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11188 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11189 * gnu-nat.c (gnu_xfer_memory): Likewise.
11190 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11191 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11192 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11193 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11195 2014-02-11 Yao Qi <yao@codesourcery.com>
11197 * target.h (enum target_xfer_error): Rename to ...
11198 (enum target_xfer_status): ... it. New. All users updated.
11199 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11201 (TARGET_XFER_STATUS_ERROR_P): New macro.
11202 (target_xfer_error_to_string): Remove declaration.
11203 (target_xfer_status_to_string): Declare.
11204 (target_xfer_partial_ftype): Adjust it.
11205 (struct target_ops) <to_xfer_partial>: Return
11206 target_xfer_status. Add argument xfered_len. Update
11208 * target.c (target_xfer_error_to_string): Rename to ...
11209 (target_xfer_status_to_string): ... it. New. All callers
11211 (target_read_live_memory): Likewise. Call target_xfer_partial
11212 instead of target_read.
11213 (memory_xfer_live_readonly_partial): Return
11214 target_xfer_status. Add argument xfered_len.
11215 (raw_memory_xfer_partial): Likewise.
11216 (memory_xfer_partial_1): Likewise.
11217 (memory_xfer_partial): Likewise.
11218 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11219 properly. Update debug message.
11220 (default_xfer_partial, current_xfer_partial): Likewise.
11221 (target_write_partial): Likewise.
11222 (target_read_partial): Likewise. All callers updated.
11223 (read_whatever_is_readable): Likewise.
11224 (target_write_with_progress): Likewise.
11225 (target_read_alloc_1): Likewise.
11227 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11228 * auxv.c (procfs_xfer_auxv): Likewise.
11229 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11230 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11231 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11232 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11233 * corefile.c (read_memory): Adjust.
11234 * corelow.c (core_xfer_partial): Likewise.
11235 * ctf.c (ctf_xfer_partial): Likewise.
11236 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11238 (darwin_xfer_partial): Likewise.
11239 * exec.c (section_table_xfer_memory_partial): Likewise. All
11241 (exec_xfer_partial): Likewise.
11242 * exec.h (section_table_xfer_memory_partial): Update
11244 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11246 (gnu_xfer_partial): Likewise.
11247 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11248 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11249 (ia64_hpux_xfer_solib_got): Likewise.
11250 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11251 type of 'partial_len' to ULONGEST.
11252 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11253 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11254 (linux_nat_xfer_partial): Likewise.
11255 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11256 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11257 * monitor.c (monitor_xfer_memory): Likewise.
11258 (monitor_xfer_partial): Likewise.
11259 * procfs.c (procfs_xfer_partial): Likewise.
11260 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11261 * record-full.c (record_full_xfer_partial): Likewise.
11262 (record_full_core_xfer_partial): Likewise.
11263 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11264 (gdbsim_xfer_partial): Likewise.
11265 * remote.c (remote_write_bytes_aux): Likewise. All callers
11267 (remote_write_bytes, remote_read_bytes): Likewise. All
11269 (remote_flash_erase): Likewise. All callers updated.
11270 (remote_write_qxfer): Likewise. All callers updated.
11271 (remote_read_qxfer): Likewise. All callers updated.
11272 (remote_xfer_partial): Likewise.
11273 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11274 (rs6000_xfer_shared_libraries): Likewise.
11275 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11276 (sol_thread_xfer_partial): Likewise.
11277 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11278 (sparc_xfer_partial): Likewise.
11279 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11281 (spu_xfer_partial): Likewise.
11282 * spu-multiarch.c (spu_xfer_partial): Likewise.
11283 * tracepoint.c (tfile_xfer_partial): Likewise.
11284 * windows-nat.c (windows_xfer_memory): Likewise.
11285 (windows_xfer_shared_libraries): Likewise.
11286 (windows_xfer_partial): Likewise.
11287 * valprint.c: Replace 'target_xfer_error' with
11288 'target_xfer_status' in comments.
11290 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11292 Checked in by Joel Brobecker <brobecker@adacore.com>.
11293 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11295 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11297 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11298 function parameters.
11300 2014-02-10 Will Newton <will.newton@linaro.org>
11302 * elfread.c (elf_rel_plt_read): Look for a .got section if
11303 looking up .got.plt fails.
11304 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11305 on address passed to elf_gnu_ifunc_record_cache.
11306 (elf_gnu_ifunc_resolve_addr): Likewise.
11307 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11309 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11311 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11312 (X_RETTURN): New macro.
11313 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11315 * sparc64-tdep.c (sparc64_init_abi): Hook
11316 sparc_in_function_epilogue_p.
11318 2014-02-10 Gary Benson <gbenson@redhat.com>
11320 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11321 Rename name_matcher to symbol_matcher.
11323 2014-02-10 Gary Benson <gbenson@redhat.com>
11325 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11326 Use expand_symtabs_file_matcher_ftype and
11327 expand_symtabs_symbol_matcher_ftype.
11329 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11331 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11332 (struct ada_symbol_cache): New.
11333 (ada_free_symbol_cache): Forward declare.
11334 (struct ada_pspace_data): New.
11335 (ada_pspace_data_handle): New static global.
11336 (get_ada_pspace_data, ada_pspace_data_cleanup)
11337 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11338 (cache_space, cache): Delete, now folded inside struct
11340 (ada_get_symbol_cache): New function.
11341 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11343 (_initialize_ada_language): Remove initialization of cache_space.
11344 Move call to observer_attach_inferior_exit up, grouping it
11345 with the other observer registrations inside this function.
11346 Rename command to be more general. Add call to
11347 register_program_space_data_with_cleanup.
11349 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11351 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11352 ada_new_objfile_observer.
11353 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11354 (_initialize_tasks): Update uses of ada_new_objfile_observer
11355 and ada_tasks_normal_stop_observer.
11357 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11359 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11360 returned by the 'Length attribute to integer.
11362 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11364 * ada-lang.c (_initialize_ada_language): Initialize
11365 cache_space obstack.
11367 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11369 * ada-lang.c (HASH_SIZE): New macro.
11370 (struct cache_entry): New type.
11371 (cache_space, cache): New static globals.
11372 (ada_clear_symbol_cache, find_entry): New functions.
11373 (lookup_cached_symbol, cache_symbol): Implement.
11374 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11375 (_initialize_ada_language): Attach ada_new_objfile_observer
11376 and ada_free_objfile_observer.
11378 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11380 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11381 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11382 struct block * parameter.
11383 (ada_lookup_symbol_list_worker): Constify local variable "block".
11384 Remove cast which is no longer necessary.
11386 2014-02-10 Doug Evans <xdje42@gmail.com>
11388 Add Guile as an extension language.
11389 * NEWS: Mention Guile scripting.
11390 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11391 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11392 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11393 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11394 (CLIBS): Add GUILE_LIBS.
11395 (install-guile): New rule.
11396 (guile.o): New rule.
11397 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11398 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11399 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11400 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11401 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11402 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11403 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11404 * configure.ac: New option --with-guile.
11405 * configure: Regenerate.
11406 * config.in: Regenerate.
11407 * auto-load.c: Remove #include "python/python.h". Add #include
11408 "gdb/section-scripts.h".
11409 (source_section_scripts): Handle Guile scripts.
11410 (_initialize_auto_load): Add name of Guile objfile script to
11411 scripts-directory help text.
11412 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11413 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11414 (struct breakpoint): New member scm_bp_object.
11415 * defs.h (enum command_control_type): New value guile_control.
11416 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11418 (show_user): Update comment.
11419 (_initialize_cli_cmds): Update help text for "show user". Update help
11420 text for max-user-call-depth.
11421 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11423 (multi_line_command_p): Add guile_control.
11424 (print_command_lines): Handle guile_control.
11425 (execute_control_command, recurse_read_control_structure): Ditto.
11426 (process_next_line): Recognize "guile" commands.
11427 * disasm.c (gdb_disassemble_info): Make non-static.
11428 * disasm.h: #include "dis-asm.h".
11429 (struct gdbarch): Add forward decl.
11430 (gdb_disassemble_info): Declare.
11431 * extension.c: #include "guile/guile.h".
11432 (extension_languages): Add guile.
11433 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11434 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11435 * gdbtypes.c (get_unsigned_type_max): New function.
11436 (get_signed_type_minmax): New function.
11437 * gdbtypes.h (get_unsigned_type_max): Declare.
11438 (get_signed_type_minmax): Declare.
11439 * guile/README: New file.
11440 * guile/guile-internal.h: New file.
11441 * guile/guile.c: New file.
11442 * guile/guile.h: New file.
11443 * guile/scm-arch.c: New file.
11444 * guile/scm-auto-load.c: New file.
11445 * guile/scm-block.c: New file.
11446 * guile/scm-breakpoint.c: New file.
11447 * guile/scm-disasm.c: New file.
11448 * guile/scm-exception.c: New file.
11449 * guile/scm-frame.c: New file.
11450 * guile/scm-gsmob.c: New file.
11451 * guile/scm-iterator.c: New file.
11452 * guile/scm-lazy-string.c: New file.
11453 * guile/scm-math.c: New file.
11454 * guile/scm-objfile.c: New file.
11455 * guile/scm-ports.c: New file.
11456 * guile/scm-pretty-print.c: New file.
11457 * guile/scm-safe-call.c: New file.
11458 * guile/scm-string.c: New file.
11459 * guile/scm-symbol.c: New file.
11460 * guile/scm-symtab.c: New file.
11461 * guile/scm-type.c: New file.
11462 * guile/scm-utils.c: New file.
11463 * guile/scm-value.c: New file.
11464 * guile/lib/gdb.scm: New file.
11465 * guile/lib/gdb/boot.scm: New file.
11466 * guile/lib/gdb/experimental.scm: New file.
11467 * guile/lib/gdb/init.scm: New file.
11468 * guile/lib/gdb/iterator.scm: New file.
11469 * guile/lib/gdb/printing.scm: New file.
11470 * guile/lib/gdb/types.scm: New file.
11471 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11472 (VPATH): Add $(GUILE_SRCDIR).
11473 (GUILE_DIR): New variable.
11474 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11475 (all): Add stamp-guile dependency.
11476 (stamp-guile): New rule.
11477 (clean-guile, install-guile, uninstall-guile): New rules.
11478 (install-only): Add install-guile dependency.
11479 (uninstall): Add uninstall-guile dependency.
11480 (clean): Add clean-guile dependency.
11482 2014-02-09 Doug Evans <xdje42@gmail.com>
11484 Revert this patch (which I approved, mea culpa).
11486 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11488 * Makefile.in (all-lib): Remove.
11489 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11491 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11493 Fix Python stack corruption.
11494 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11497 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11499 * Makefile.in (all-lib): Remove.
11500 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11502 2014-02-07 Doug Evans <dje@google.com>
11504 * extension-priv.h (extension_language_script_ops): Add comment.
11505 (extension_language_ops): Add comment.
11506 (active_ext_lang_state): Fix typo in comment.
11508 2014-02-07 Pedro Alves <palves@redhat.com>
11510 PR breakpoints/16292
11511 * infrun.c (handle_signal_stop) <signal arrives while stepping
11512 over a breakpoint>: Switch back to the stepping thread.
11514 2014-02-07 Yao Qi <yao@codesourcery.com>
11516 * target.c (target_xfer_partial): Return zero if LEN is zero.
11518 2014-02-07 Yao Qi <yao@codesourcery.com>
11520 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11521 (ld_so_xfer_auxv): Likewise.
11522 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11523 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11524 * corelow.c (core_xfer_partial): Likewise.
11525 * ctf.c (ctf_xfer_partial): Likewise.
11526 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11527 (darwin_xfer_partial): Likewise.
11528 * exec.c (exec_xfer_partial): Likewise.
11529 * gnu-nat.c (gnu_xfer_partial): Likewise.
11530 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11531 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11532 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11533 * linux-nat.c (linux_xfer_siginfo): Likewise.
11534 (linux_proc_xfer_spu): Likewise.
11535 * procfs.c (procfs_xfer_partial): Likewise.
11536 * record-full.c (record_full_xfer_partial): Likewise.
11537 (record_full_core_xfer_partial): Likewise.
11538 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11539 * remote.c (remote_write_qxfer): Likewise.
11540 (remote_write_qxfer, remote_read_qxfer): Likewise.
11541 (remote_xfer_partial): Likewise.
11542 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11543 (rs6000_xfer_shared_libraries): Likewise.
11544 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11545 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11546 (spu_xfer_partial): Likewise.
11547 * target.c (memory_xfer_partial_1): Likewise.
11548 * tracepoint.c (tfile_xfer_partial): Likewise.
11549 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11550 (windows_xfer_partial): Likewise.
11552 2014-02-07 Yao Qi <yao@codesourcery.com>
11554 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11556 (core_xfer_shared_libraries_aix): Likewise.
11557 * gdbarch.c, gdbarch.h: Regenerated.
11558 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11559 ULONGEST. Change 'len_avail' type to ULONGEST.
11560 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11561 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11563 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11565 2014-02-07 Yao Qi <yao@codesourcery.com>
11567 * corefile.c (memory_error): Get 'exception' from ERR and pass
11568 'exception' to throw_error.
11570 2014-02-06 Doug Evans <xdje42@gmail.com>
11572 * configure.ac (libpython checking): Remove all but python.o from
11573 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11574 * configure: Regenerate.
11576 * Makefile.in (SFILES): Add extension.c.
11577 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11578 (COMMON_OBS): Add extension.o.
11579 * extension.h: New file.
11580 * extension-priv.h: New file.
11581 * extension.c: New file.
11583 * python/python-internal.h: #include "extension.h".
11584 (gdbpy_auto_load_enabled): Declare.
11585 (gdbpy_apply_val_pretty_printer): Declare.
11586 (gdbpy_apply_frame_filter): Declare.
11587 (gdbpy_preserve_values): Declare.
11588 (gdbpy_breakpoint_cond_says_stop): Declare.
11589 (gdbpy_breakpoint_has_cond): Declare.
11590 (void source_python_script_for_objfile): Delete.
11591 * python/python.c: #include "extension-priv.h".
11592 Delete inclusion of "observer.h".
11593 (extension_language_python): Moved here and renamed from
11594 script_language_python in py-auto-load.c.
11595 Redefined to be of type extension_language_defn.
11596 (python_extension_script_ops): New global.
11597 (python_extension_ops): New global.
11598 (struct python_env): New member previous_active.
11599 (restore_python_env): Call restore_active_ext_lang.
11600 (ensure_python_env): Call set_active_ext_lang.
11601 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11603 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11605 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11607 (gdbpy_eval_from_control_command): Renamed from
11608 eval_python_from_control_command, made static. New arg extlang.
11609 (gdbpy_source_script) Renamed from source_python_script, made static.
11611 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11612 result to int. New arg extlang.
11613 (gdbpy_source_objfile_script): Renamed from
11614 source_python_script_for_objfile, made static. New arg extlang.
11615 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11616 static. New args extlang, extlang_printers. Change result type to
11618 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11619 static. New arg extlang. Rename arg printers to extlang_printers
11620 and change type to ext_lang_type_printers *.
11621 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11622 static. Replace argument arg with extlang, extlang_printers.
11623 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11624 (!HAVE_PYTHON, source_python_script): Delete.
11625 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11626 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11627 (!HAVE_PYTHON, start_type_printers): Delete.
11628 (!HAVE_PYTHON, apply_type_printers): Delete.
11629 (!HAVE_PYTHON, free_type_printers): Delete.
11630 (_initialize_python): Delete call to observer_attach_before_prompt.
11631 (finalize_python): Set/restore active extension language.
11632 (gdbpy_finish_initialization) Renamed from
11633 finish_python_initialization, made static. New arg extlang.
11634 (gdbpy_initialized): New function.
11635 * python/python.h: #include "extension.h". Delete #include
11636 "value.h", "mi/mi-cmds.h".
11637 (extension_language_python): Declare.
11638 (GDBPY_AUTO_FILE_NAME): Delete.
11639 (enum py_bt_status): Moved to extension.h and renamed to
11640 ext_lang_bt_status.
11641 (enum frame_filter_flags): Moved to extension.h.
11642 (enum py_frame_args): Moved to extension.h and renamed to
11643 ext_lang_frame_args.
11644 (finish_python_initialization): Delete.
11645 (eval_python_from_control_command): Delete.
11646 (source_python_script): Delete.
11647 (apply_val_pretty_printer): Delete.
11648 (apply_frame_filter): Delete.
11649 (preserve_python_values): Delete.
11650 (gdbpy_script_language_defn): Delete.
11651 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11652 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11654 * auto-load.c: #include "extension.h".
11655 (GDB_AUTO_FILE_NAME): Delete.
11656 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11657 (script_language_gdb): Delete, moved to extension.c and renamed to
11658 extension_language_gdb.
11659 (source_gdb_script_for_objfile): Delete.
11660 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11661 (loaded_script): Change type of language member to
11662 struct extension_language_defn *.
11663 (init_loaded_scripts_info): Initialize
11664 unsupported_script_warning_printed.
11665 (maybe_add_script): Make static. Change type of language arg to
11666 struct extension_language_defn *.
11667 (clear_section_scripts): Reset unsupported_script_warning_printed.
11668 (auto_load_objfile_script_1): Rewrite to use extension language API.
11669 (auto_load_objfile_script): Make public. Remove support-compiled-in
11670 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11671 (source_section_scripts): Rewrite to use extension language API.
11672 (load_auto_scripts_for_objfile): Rewrite to use
11673 auto_load_scripts_for_objfile.
11674 (collect_matching_scripts_data): Change type of language member to
11675 struct extension_language_defn *.
11676 (auto_load_info_scripts): Change type of language arg to
11677 struct extension_language_defn *.
11678 (unsupported_script_warning_print): New function.
11679 (script_not_found_warning_print): Make static.
11680 (_initialize_auto_load): Rewrite construction of scripts-directory
11682 * auto-load.h (struct objfile): Add forward decl.
11683 (struct script_language): Delete.
11684 (struct auto_load_pspace_info): Add forward decl.
11685 (struct extension_language_defn): Add forward decl.
11686 (maybe_add_script): Delete.
11687 (auto_load_objfile_script): Declare.
11688 (script_not_found_warning_print): Delete.
11689 (auto_load_info_scripts): Update prototype.
11690 (auto_load_gdb_scripts_enabled): Declare.
11691 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11692 auto_load_python_scripts_enabled and made public.
11693 (script_language_python): Delete, moved to python.c.
11694 (gdbpy_script_language_defn): Delete.
11695 (info_auto_load_python_scripts): Update to use
11696 extension_language_python.
11698 * breakpoint.c (condition_command): Replace call to
11699 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11700 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11701 with call to breakpoint_ext_lang_cond_says_stop.
11702 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11703 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11704 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11705 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11707 (local_setattro): Print name of extension language with existing
11710 * valprint.c (val_print, value_print): Update to call
11711 apply_ext_lang_val_pretty_printer.
11712 * cp-valprint.c (cp_print_value): Update call to
11713 apply_ext_lang_val_pretty_printer.
11714 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11715 (gdbpy_apply_val_pretty_printer): Renamed from
11716 apply_val_pretty_printer. New arg extlang.
11717 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11719 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11720 extension language API.
11721 * cli/cli-script.c (execute_control_command): Update to call
11722 eval_ext_lang_from_control_command.
11724 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11725 enum ext_lang_bt_status values. Update call to
11726 apply_ext_lang_frame_filter.
11727 (mi_cmd_stack_list_locals): Ditto.
11728 (mi_cmd_stack_list_args): Ditto.
11729 (mi_cmd_stack_list_variables): Ditto.
11730 * mi/mi-main.c: Delete #include "python/python-internal.h".
11731 Add #include "extension.h".
11732 (mi_cmd_list_features): Replace reference to python internal variable
11733 gdb_python_initialized with call to ext_lang_initialized_p.
11735 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11736 Update to use enum ext_lang_frame_args. Update to call
11737 apply_ext_lang_frame_filter.
11738 * python/py-framefilter.c (extract_sym): Update to use enum
11739 ext_lang_bt_status.
11740 (extract_value, py_print_type, py_print_value): Ditto.
11741 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11742 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11743 (py_print_frame): Ditto.
11744 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11745 New arg extlang. Update to use enum ext_lang_bt_status.
11747 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11748 finish_python_initialization. Replace with call to
11749 finish_ext_lang_initialization.
11751 * typeprint.c (do_free_global_table): Update to call
11752 free_ext_lang_type_printers.
11753 (create_global_typedef_table): Update to call
11754 start_ext_lang_type_printers.
11755 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11756 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11757 (type_print_options): Change type of global_printers from "void *"
11758 to "struct ext_lang_type_printers *".
11760 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11761 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11762 (gdbpy_preserve_values): Renamed from preserve_python_values.
11764 (!HAVE_PYTHON, preserve_python_values): Delete.
11766 * utils.c (quit_flag): Delete, moved to extension.c.
11767 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11770 * eval.c: Delete #include "python/python.h".
11771 * main.c: Delete #include "python/python.h".
11773 * defs.h: Update comment.
11775 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11779 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11781 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11784 2014-02-05 Yao Qi <yao@codesourcery.com>
11786 * remote.c (remote_pass_signals): Remove local 'buf' and use
11788 (remote_program_signals): Likewise.
11790 2014-02-05 Yao Qi <yao@codesourcery.com>
11792 * ctf.c: Include "inferior.h" and "gdbthread.h".
11793 (CTF_PID): A new macro.
11794 (ctf_open): Call inferior_appeared and add_thread_silent.
11795 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11796 (ctf_thread_alive): New function.
11797 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11799 2014-02-05 Yao Qi <yao@codesourcery.com>
11803 2013-05-24 Yao Qi <yao@codesourcery.com>
11805 * tracepoint.c (TFILE_PID): Remove.
11806 (tfile_open): Don't add thread and inferior.
11807 (tfile_close): Don't set 'inferior_ptid'. Don't call
11808 exit_inferior_silent.
11809 (tfile_thread_alive): Remove.
11810 (init_tfile_ops): Don't set field 'to_thread_alive' of
11813 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11815 * remote.c (remote_start_remote): Call remote_check_symbols even
11816 if only symbol-file (not file) has been given.
11818 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11820 * gdbarch.sh (skip_entrypoint): New callback.
11821 * gdbarch.c, gdbarch.h: Regenerate.
11822 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11823 * infrun.c (fill_in_stop_func): Likewise.
11824 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11825 (ppc_elfv2_elf_make_msymbol_special): New function.
11826 (ppc_elfv2_skip_entrypoint): Likewise.
11827 (ppc_linux_init_abi): Install them for ELFv2.
11829 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11831 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11832 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11833 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11834 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11835 structures returned in GPRs.
11837 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11839 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11840 offset to the stack parameter list for the ELFv2 ABI.
11842 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11844 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11845 set_gdbarch_convert_from_func_ptr_addr and
11846 set_gdbarch_elf_make_msymbol_special for ELFv1.
11847 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11848 function descriptors on ELFv1.
11849 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11850 set up r12 at function entry.
11852 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11854 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11855 (struct gdbarch_tdep): New member elf_abi.
11857 * rs6000-tdep.c: Include "elf/ppc64.h".
11858 (rs6000_gdbarch_init): Detect ELF ABI version.
11860 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11862 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11863 within a register pair holding a DFP 128-bit value on little-endian.
11864 (ppc64_sysv_abi_return_value_base): Likewise.
11865 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11866 (dfp_pseudo_register_write): Likewise.
11868 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11870 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11871 offset on little-endian when passing _Decimal32.
11872 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11874 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11876 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11877 of the overlapped FP register within the VSX register on little-
11879 (efpr_pseudo_register_write): Likewise.
11881 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11883 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11884 offset on little-endian when passing small structures.
11886 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11888 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11889 (struct ppc64_sysv_argpos): New data structure.
11890 (ppc64_sysv_abi_push_float): Remove.
11891 (ppc64_sysv_abi_push_val): New function.
11892 (ppc64_sysv_abi_push_integer): Likewise.
11893 (ppc64_sysv_abi_push_freg): Likewise.
11894 (ppc64_sysv_abi_push_vreg): Likewise.
11895 (ppc64_sysv_abi_push_param): Likewise.
11896 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11897 (ppc64_sysv_abi_return_value_base): New function.
11898 (ppc64_sysv_abi_return_value): Refactor to use it.
11900 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11902 * NEWS: Document new target powerpc64le-*-linux*.
11904 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11906 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11907 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11909 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11910 register set used in ELF core dumps. Add floating-point register set.
11912 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11914 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11915 dwarf2_to_gdb[] table using symbolic constants. Adjust
11916 penultimate entry from number representing the PC register
11917 to symbolic constant representing the MDR register. Add
11918 constant for the PC register to the end of the table.
11920 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11922 * bsd-kvm.c: Include <sys/param.h>
11924 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11926 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11928 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11930 * ada-lang.h (clear_ada_sym_cache): Delete.
11932 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11934 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11936 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11938 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11939 the sigreturn register save area only if the syscall is
11942 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11944 * valops.c (value_slice): Minor reformatting.
11946 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11948 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11950 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11952 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11953 New static globals.
11954 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11955 (ada_ignore_descriptive_types_p): New static global.
11956 (find_parallel_type_by_descriptive_type): Return immediately
11957 if ada_ignore_descriptive_types_p is set.
11958 (_initialize_ada_language): Register new commands "maintenance
11959 set ada", "maintenance show ada", "maintenance set ada
11960 ignore-descriptive-types" and "maintenance show ada
11961 ignore-descriptive-types".
11962 * NEWS: Add entry for new "maint ada set/show
11963 ignore-descriptive-types" commands.
11965 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11967 * record-btrace.c (record_btrace_close): Call btrace_teardown
11970 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11972 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11975 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11977 * ada-typeprint (type_is_full_subrange_of_target_type):
11979 (print_range): Add parameter bounds_prefered_p. If not set,
11980 try printing range types using the name of their base type.
11981 (print_range_type): Add parameter bounds_prefered_p.
11982 Use it in call to print_range.
11983 (print_array_type, ada_print_type): Update calls to print_range
11984 and print_range_type.
11986 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11988 * ada-typeprint.c (print_array_type, print_choices, print_range)
11989 (print_range_bound, print_dynamic_range_bound, print_range_type):
11990 Remove declaration.
11992 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11994 * ada-typeprint.c (print_range): Add missing empty line
11995 after local declaration.
11997 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11999 * ada-valprint.c (print_optional_low_bound): Get index_type's
12000 target type for as long as it is a TYPE_CODE_RANGE.
12002 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12004 * procfs.c (procfs_make_note_section): Remove assertion and
12005 associated comment.
12007 2014-01-24 Yao Qi <yao@codesourcery.com>
12009 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12010 * corelow.c (get_core_siginfo): Likewise.
12012 2014-01-24 Yao Qi <yao@codesourcery.com>
12014 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12015 ULONGEST. Don't check 'len' is negative.
12016 (remote_write_bytes): Change type of 'len' to ULONGEST.
12018 2014-01-23 Tom Tromey <tromey@redhat.com>
12021 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12022 Handle exception from frame.block.
12023 (FrameVars.fetch_frame_locals): Likewise.
12025 2014-01-23 Tom Tromey <tromey@redhat.com>
12028 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12029 on a NULL pointer. Move "goto error" to correct place.
12031 2014-01-23 Tom Tromey <tromey@redhat.com>
12034 * python/py-framefilter.c (apply_frame_filter): Call
12035 ensure_python_env after computing gdbarch.
12037 2014-01-23 Yao Qi <yao@codesourcery.com>
12039 * target.c (raw_memory_xfer_partial): Change argument type
12040 from void * to gdb_byte *.
12041 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12043 2014-01-22 Doug Evans <dje@google.com>
12045 New gdbserver option --debug-format=timestamp.
12046 * NEWS: Mention it.
12048 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12050 * syscalls/s390x-linux.xml: New file.
12051 * syscalls/s390-linux.xml: New file.
12052 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12053 (XML_SYSCALL_FILENAME_S390X): Likewise.
12054 (op_svc): New enum value for SVC opcode.
12055 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12056 (s390_linux_get_syscall_number): New function.
12057 (s390_gdbarch_init): Register '*get_syscall_number' and the
12058 syscall xml file name.
12059 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12060 "s390-linux.xml" and "s390x-linux.xml".
12061 * NEWS: Announce new feature.
12063 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12065 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12067 2014-01-22 Pedro Alves <palves@redhat.com>
12069 * xtensa-config.c: Include defs.h.
12071 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12073 * common/common-utils.h: Add "ARI:" comment beside __func__
12076 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12078 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12079 documentation a bit.
12081 2014-01-21 Roland McGrath <mcgrathr@google.com>
12083 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12084 * configure: Regenerate.
12085 * aclocal.m4: Regenerate.
12086 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12087 New substituted variables.
12088 (install-strip): New target.
12089 (INSTALL_SCRIPT): New substituted variable.
12090 (FLAGS_TO_PASS): Add it.
12091 (install-only): Use $(INSTALL_SCRIPT) rather than
12092 $(INSTALL_PROGRAM) for gcore.
12094 2014-01-20 Tom Tromey <tromey@redhat.com>
12096 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12099 2014-01-20 Tom Tromey <tromey@redhat.com>
12101 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12102 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12103 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12104 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12105 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12106 (struct cmd_list_element) <flags>: Remove.
12107 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12108 doc_allocated>: New fields.
12109 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12111 * maint.c (maintenance_do_deprecate): Update.
12112 * top.c (execute_command): Update.
12114 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12116 * xtensa-linux-nat.c: Include asm/ptrace.h.
12118 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12120 * Makefile.in (SFILES): Add d-support.c.
12121 (COMMON_OBS): Add d-support.o.
12122 * d-lang.h (d_parse_symbol): Add comment, now defined in
12124 * d-lang.c (parse_call_convention)
12125 (parse_attributes, parse_function_types)
12126 (parse_function_args, parse_type, parse_identifier)
12127 (call_convention_p, d_parse_symbol): Move functions to ...
12128 * d-support.c: ... New file.
12130 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12132 * d-lang.h (d_parse_symbol): Add declaration.
12133 * d-lang.c (extract_identifiers)
12134 (extract_type_info): Remove functions.
12135 (parse_call_convention, parse_attributes)
12136 (parse_function_types, parse_function_args)
12137 (parse_type, parse_identifier, call_convention_p)
12138 (d_parse_symbol): New functions.
12139 (d_demangle): Use d_parse_symbol to demangle D symbols.
12141 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12143 * d-lang.h (struct builtin_d_type): New data type.
12144 (builtin_d_type): Add declaration.
12145 * d-lang.c (d_language_arch_info, build_d_types)
12146 (builtin_d_type): New functions.
12147 (enum d_primitive_types): New data type.
12148 (d_language_defn): Change c_language_arch_info to
12149 d_language_arch_info.
12150 (d_type_data): New static variable.
12151 (_initialize_d_language): Initialize d_type_data.
12153 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12155 * d-lang.h (d_main_name): Add declaration.
12156 * d-lang.c (d_main_name): New function.
12157 * symtab.c (find_main_name): Add call to d_main_name.
12159 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12161 * d-lang.c (d_language_defn): Change macro_expansion_c to
12162 macro_expansion_no.
12164 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12166 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12168 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12170 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12171 gdb_exception" declaration.
12172 * remote.c (getpkt_or_notif_sane): Likewise.
12174 2014-01-17 Doug Evans <dje@google.com>
12176 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12177 function, contents of dirnames_to_char_ptr_vec_append moved here.
12178 (delim_string_to_char_ptr_vec): New function.
12179 (dirnames_to_char_ptr_vec_append): Rewrite.
12180 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12182 2014-01-17 Doug Evans <dje@google.com>
12184 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12186 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12187 #include "common-utils.h".
12188 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12189 * common/vec.h (VEC_ASSERT_PASS): Update.
12190 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12191 (MACH_CHECK_ERROR): Update.
12193 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12195 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12197 * gdbarch.h: Regenerate.
12199 2014-01-16 Tom Tromey <tromey@redhat.com>
12201 * value.c (struct value) <regnum>: Move earlier.
12203 2014-01-16 Tom Tromey <tromey@redhat.com>
12205 * remote.c (extended_remote_create_inferior): Rename from
12206 extended_remote_create_inferior_1. Add "ops" argument. Remove
12207 old implementation.
12209 2014-01-16 Pedro Alves <palves@redhat.com>
12211 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12212 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12215 2014-01-16 Doug Evans <dje@google.com>
12217 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12219 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12221 * btrace.h (btrace_thread_flag): New.
12222 (struct btrace_thread_info) <flags>: New.
12223 * record-btrace.c (record_btrace_resume_thread)
12224 (record_btrace_find_thread_to_move, btrace_step_no_history)
12225 (btrace_step_stopped, record_btrace_start_replaying)
12226 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12227 (record_btrace_find_resume_thread): New.
12228 (record_btrace_resume, record_btrace_wait): Extend.
12229 (record_btrace_can_execute_reverse): New.
12230 (record_btrace_open): Fail in non-stop mode.
12231 (record_btrace_set_replay): Split into this, ...
12232 (record_btrace_stop_replaying): ... this, ...
12233 (record_btrace_clear_histories): ... and this.
12234 (init_record_btrace_ops): Init to_can_execute_reverse.
12235 * NEWS: Announce it.
12237 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12239 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12240 (forward_target_decr_pc_after_break)
12241 (target_decr_pc_after_break): New.
12242 * target.c (forward_target_decr_pc_after_break)
12243 (target_decr_pc_after_break): New.
12244 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12245 instead of gdbarch_decr_pc_after_break.
12246 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12247 instead of gdbarch_decr_pc_after_break.
12248 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12249 instead of gdbarch_decr_pc_after_break.
12250 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12251 instead of gdbarch_decr_pc_after_break.
12252 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12253 instead of gdbarch_decr_pc_after_break.
12254 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12255 instead of gdbarch_decr_pc_after_break.
12257 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12259 * btrace.c: Include regcache.h.
12260 (btrace_add_pc): New.
12261 (btrace_enable): Call btrace_add_pc.
12262 (btrace_is_empty): New.
12263 * btrace.h (btrace_is_empty): New.
12264 * record-btrace.c (require_btrace, record_btrace_info): Call
12267 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12269 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12270 Support delta reads.
12271 (linux_disable_btrace): Change return type.
12272 * common/linux-btrace.h (linux_read_btrace): Change parameters
12273 and return type to allow error reporting. Update users.
12274 (linux_disable_btrace): Change return type. Update users.
12275 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12277 (btrace_error): New.
12278 (btrace_block) <begin>: Comment on BEGIN == 0.
12279 * btrace.c (btrace_compute_ftrace): Start from the end of
12281 (btrace_stitch_trace, btrace_clear_history): New.
12282 (btrace_fetch): Read delta trace, return if replaying.
12283 (btrace_clear): Move clear history code to btrace_clear_history.
12284 (parse_xml_btrace): Throw an error if parsing failed.
12285 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12286 and return type to allow error reporting.
12287 (target_read_btrace): Change parameters and return type to allow
12289 * target.c (target_read_btrace): Update.
12290 * remote.c (remote_read_btrace): Support delta reads. Pass
12292 * NEWS: Announce it.
12294 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12296 * record.h (record_btrace_frame_unwind)
12297 (record_btrace_tailcall_frame_unwind): New declarations.
12298 * dwarf2-frame: Include record.h
12299 (dwarf2_frame_cfa): Throw an error for btrace frames.
12300 * record-btrace.c: Include hashtab.h.
12301 (btrace_get_bfun_name): New.
12302 (btrace_call_history): Call btrace_get_bfun_name.
12303 (struct btrace_frame_cache): New.
12305 (bfcache_hash, bfcache_eq, bfcache_new): New.
12306 (btrace_get_frame_function): New.
12307 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12308 (record_btrace_frame_this_id): Compute own id.
12309 (record_btrace_frame_prev_register): Provide PC, throw_error
12310 for all other registers.
12311 (record_btrace_frame_sniffer): Detect btrace frames.
12312 (record_btrace_tailcall_frame_sniffer): New.
12313 (record_btrace_frame_dealloc_cache): New.
12314 (record_btrace_frame_unwind): Add new functions.
12315 (record_btrace_tailcall_frame_unwind): New.
12316 (_initialize_record_btrace): Allocate cache.
12317 * btrace.c (btrace_clear): Call reinit_frame_cache.
12318 * NEWS: Announce it.
12320 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12322 * record-btrace.c (record_btrace_set_replay)
12323 (record_btrace_goto_begin, record_btrace_goto_end)
12324 (record_btrace_goto): New.
12325 (init_record_btrace_ops): Initialize them.
12326 * NEWS: Announce it.
12328 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12330 * record-btrace.c (record_btrace_find_new_threads)
12331 (record_btrace_thread_alive): New.
12332 (init_record_btrace_ops): Initialize to_find_new_threads and
12335 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12337 * record-btrace.c (record_btrace_resume): New.
12338 (record_btrace_wait): New.
12339 (init_record_btrace_ops): Initialize to_wait and to_resume.
12341 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12343 * record-btrace.c (record_btrace_xfer_partial)
12344 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12345 (record_btrace_allow_memory_access): New.
12346 (init_record_btrace_ops): Initialize new methods.
12347 * target.c (raw_memory_xfer_partial): Bail out if target reports
12348 that this memory is not available.
12350 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12352 * target.h (target_ops) <to_insert_breakpoint>
12353 <to_remove_breakpoint>: Add target_ops parameter.
12354 (forward_target_insert_breakpoint): New.
12355 (forward_target_remove_breakpoint): New.
12356 (memory_remove_breakpoint, memory_insert_breakpoint):
12357 Add target_ops parameter.
12358 * target.c (target_insert_breakpoint): Split into this and ...
12359 (forward_target_insert_breakpoint): ... this.
12360 (target_remove_breakpoint): Split into this and ...
12361 (forward_target_remove_breakpoint): ... this.
12362 (debug_to_insert_breakpoint): Add target_ops parameter.
12363 Call forward_target_insert_breakpoint.
12364 (debug_to_remove_breakpoint): Add target_ops parameter.
12365 Call forward_target_remove_breakpoint.
12366 (update_current_target): Do not inherit or default to_insert_breakpoint
12367 and to_remove_breakpoint.
12368 * corelow.c (ignore): Add target_ops parameter.
12369 * exec.c (ignore): Add target_ops parameter.
12370 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12371 Add target_ops parameter.
12372 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12373 Add target_ops parameter.
12374 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12375 Add target_ops parameter.
12376 * record-full.c (record_full_beneath_to_insert_breakpoint)
12377 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12378 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12379 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12380 (record_full_core_remove_breakpoint): Add target_ops parameter.
12382 (record_full_beneath_to_insert_breakpoint_ops)
12383 (record_full_beneath_to_remove_breakpoint_ops)
12384 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12385 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12386 tmp_to_remove_breakpoint_ops,
12387 record_full_beneath_to_insert_breakpoint_ops, and
12388 record_full_beneath_to_remove_breakpoint_ops.
12389 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12390 (m32r_remove_breakpoint): Add target_ops parameter.
12391 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12392 Add target_ops parameter.
12393 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12394 Add target_ops parameter.
12396 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12397 Markus Metzger <markus.t.metzger@intel.com>
12399 * record-btrace.c: Include frame-unwind.h.
12400 (record_btrace_frame_unwind_stop_reason)
12401 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12402 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12404 (init_record_btrace_ops): Install it.
12406 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12408 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12411 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12413 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12416 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12418 * frame-unwind.c: Include target.h.
12419 (frame_unwind_try_unwinder): New function with code from ...
12420 (frame_unwind_find_by_frame): ... here. New variable
12421 unwinder_from_target, call also target_get_unwinder)
12422 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12423 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12424 * target.h (struct target_ops): New fields to_get_unwinder and
12425 to_get_tailcall_unwinder.
12426 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12428 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12430 * record-btrace.c (record_btrace_fetch_registers)
12431 (record_btrace_store_registers)
12432 (record_btrace_to_prepare_to_store): New.
12433 (init_record_btrace_ops): Add the above.
12435 2014-01-16 Tom Tromey <tromey@redhat.com>
12437 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12438 * target.h (struct target_ops) <to_prepare_to_store>: Add
12440 (target_prepare_to_store): Add argument.
12441 * target.c (debug_to_prepare_to_store): Add argument.
12442 (update_current_target): Update.
12443 * remote.c (remote_prepare_to_store): Add 'self' argument.
12444 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12445 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12446 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12447 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12449 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12450 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12451 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12452 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12453 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12455 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12457 * btrace.h (replay) <replay>: New.
12458 (btrace_is_replaying): New.
12459 * btrace.c (btrace_clear): Free replay iterator.
12460 (btrace_is_replaying): New.
12461 * record-btrace.c (record_btrace_is_replaying): New.
12462 (record_btrace_info): Print insn number if replaying.
12463 (record_btrace_insn_history): Start at replay position.
12464 (record_btrace_call_history): Start at replay position.
12465 (init_record_btrace_ops): Init to_record_is_replaying.
12467 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12469 * record-btrace.c (record_btrace_insn_history_range): Include
12471 (record_btrace_insn_history_from): Adjust range.
12472 (record_btrace_call_history_range): Include
12474 (record_btrace_call_history_from): Adjust range.
12475 * NEWS: Announce changes.
12477 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12479 * record.h (enum record_print_flag)
12480 <record_print_indent_calls>: New.
12481 * record.c (get_call_history_modifiers): Recognize /c modifier.
12482 (_initialize_record): Document /c modifier.
12483 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12484 Reorder fields. Optionally indent the function name. Update
12486 * NEWS: Announce changes.
12488 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12490 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12494 * btrace.c (ftrace_new_function): Start counting at one.
12495 * record-btrace.c (record_btrace_info): Adjust number of calls
12497 * NEWS: Announce it.
12499 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12501 * record-btrace.c (btrace_call_history_insn_range): Print
12502 insn range as [begin, end].
12504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12506 * btrace.h (struct btrace_func_link): New.
12507 (enum btrace_function_flag): New.
12508 (struct btrace_inst): Rename to ...
12509 (struct btrace_insn): ...this. Update all users.
12510 (struct btrace_func) <ibegin, iend>: Remove.
12511 (struct btrace_func_link): New.
12512 (struct btrace_func): Rename to ...
12513 (struct btrace_function): ...this. Update all users.
12514 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12515 (number, level, flags>: New.
12516 (struct btrace_insn_iterator): Rename to ...
12517 (struct btrace_insn_history): ...this.
12519 (struct btrace_insn_iterator, btrace_call_iterator): New.
12520 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12521 (struct btrace_target_info) <begin, end, level>
12522 <insn_history, call_history>: New.
12523 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12524 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12525 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12526 (btrace_call_number, btrace_call_begin, btrace_call_end)
12527 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12528 (btrace_find_function_by_number, btrace_set_insn_history)
12529 (btrace_set_call_history): New.
12530 * btrace.c (btrace_init_insn_iterator)
12531 (btrace_init_func_iterator, compute_itrace): Remove.
12532 (ftrace_print_function_name, ftrace_print_filename)
12533 (ftrace_skip_file): Change
12534 parameter to const.
12535 (ftrace_init_func): Remove.
12536 (ftrace_debug): Use new btrace_function fields.
12537 (ftrace_function_switched): Also consider gaining and
12538 losing symbol information).
12539 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12540 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12541 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12543 (ftrace_new_function): Move. Remove debug print.
12544 (ftrace_update_lines, ftrace_update_insns): New.
12545 (ftrace_update_function): Check for call, ret, and jump.
12546 (compute_ftrace): Renamed to ...
12547 (btrace_compute_ftrace): ...this. Rewritten to compute call
12549 (btrace_fetch, btrace_clear): Updated.
12550 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12551 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12552 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12553 (btrace_call_number, btrace_call_begin, btrace_call_end)
12554 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12555 (btrace_find_function_by_number, btrace_set_insn_history)
12556 (btrace_set_call_history): New.
12557 * record-btrace.c (require_btrace): Use new btrace thread
12559 (record_btrace_info, btrace_insn_history)
12560 (record_btrace_insn_history, record_btrace_insn_history_range):
12561 Use new btrace thread info fields and new iterator.
12562 (btrace_func_history_src_line): Rename to ...
12563 (btrace_call_history_src_line): ...this. Use new btrace
12564 thread info fields.
12565 (btrace_func_history): Rename to ...
12566 (btrace_call_history): ...this. Use new btrace thread info
12567 fields and new iterator.
12568 (record_btrace_call_history, record_btrace_call_history_range):
12569 Use new btrace thread info fields and new iterator.
12571 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12573 * frame.h (frame_id_build_unavailable_stack_special): New.
12574 * frame.c (frame_id_build_unavailable_stack_special): New.
12576 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12578 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12579 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12580 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12582 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12583 (i386_insn_is_jump, i386_jmp_p): New.
12584 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12585 insn_is_jump to gdbarch.
12586 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12587 * gdbarch.h: Regenerated.
12588 * gdbarch.c: Regenerated.
12589 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12590 (default_insn_is_jump): New.
12591 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12592 (default_insn_is_jump): New.
12594 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12596 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12598 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12599 (btrace_read_type) <btrace_read_new>: Change to ...
12600 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12602 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12604 * common/linux-btrace.c (linux_read_btrace): Free trace from
12605 previous iteration.
12607 2014-01-15 Doug Evans <dje@google.com>
12609 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12612 2014-01-15 Tom Tromey <tromey@redhat.com>
12614 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12615 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12616 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12617 (set_objfile_main_name): New function.
12618 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12619 language_of_main>: New fields.
12620 (set_objfile_main_name): Declare.
12621 * symtab.c (find_main_name): Loop over objfiles to find the main
12623 (set_main_name): Now static.
12624 (get_main_info): Add comment.
12625 * symtab.h (set_main_name): Don't declare.
12627 2014-01-15 Tom Tromey <tromey@redhat.com>
12629 * symtab.c (main_progspace_key): New global.
12630 (struct main_info): New.
12631 (name_of_main, language_of_main): Remove.
12632 (get_main_info, main_info_cleanup): New function.
12633 (set_main_name, main_name, main_language): Use get_main_info.
12634 (_initialize_symtab): Initialize main_progspace_key.
12636 2014-01-15 Tom Tromey <tromey@redhat.com>
12638 * dbxread.c (process_one_symbol): Update.
12639 * dwarf2read.c (read_partial_die): Update.
12640 * symfile.c (set_initial_language): Call main_language.
12641 * symtab.c (language_of_main): Now static.
12642 (set_main_name): Add 'lang' parameter.
12643 (find_main_name): Update.
12644 (main_language): New function.
12645 (symtab_observer_executable_changed): Update.
12646 * symtab.h (set_main_name): Update.
12647 (language_of_main): Remove.
12648 (main_language): Declare.
12650 2014-01-15 Tom Tromey <tromey@redhat.com>
12652 * symfile.c (init_entry_point_info): Use new "initialized" field.
12654 * objfiles.h (struct entry_point) <initialized>: New field.
12655 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12656 (struct objfile) <ei>: ...here. Remove.
12657 * objfiles.c (entry_point_address_query): Update.
12659 2014-01-15 Tom Tromey <tromey@redhat.com>
12661 * objfiles.c (entry_point_address_query): Relocate entry point
12663 (objfile_relocate1): Do not relocate entry point address.
12664 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12665 <the_bfd_section_index>: New field.
12666 * symfile.c (init_entry_point_info): Find the entry point's
12669 2014-01-15 Tom Tromey <tromey@redhat.com>
12671 * solib-frv.c (enable_break): Use entry_point_address_query.
12673 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12675 * NEWS: Add note on improved process record-replay on
12676 arm*-linux* targets.
12678 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12680 * arm-tdep.c (enum arm_record_result): New enum.
12681 (arm_record_unsupported_insn): New function.
12682 (arm_record_coproc_data_proc): Removed.
12683 (thumb2_record_ld_st_multiple): New function.
12684 (thumb2_record_ld_st_dual_ex_tbb): New function.
12685 (thumb2_record_data_proc_sreg_mimm): New function.
12686 (thumb2_record_ps_dest_generic): New function.
12687 (thumb2_record_branch_misc_cntrl): New function.
12688 (thumb2_record_str_single_data): New function.
12689 (thumb2_record_ld_mem_hints): New function.
12690 (thumb2_record_ld_word): New function.
12691 (thumb2_record_lmul_lmla_div): New function.
12692 (thumb2_record_decode_insn_handler): New function.
12693 (decode_insn): Add thumb32 instruction handlers.
12695 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12697 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12698 (struct arm_linux_record_tdep): Declare.
12699 (arm_canonicalize_syscall): New function.
12700 (arm_all_but_pc_registers_record): New function.
12701 (arm_linux_syscall_record): New function.
12702 (arm_linux_init_abi): Add syscall recording constructs.
12703 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12704 decoding. (arm_record_coproc_data_proc): Update arm syscall
12706 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12707 <arm_syscall_record>: New field.
12708 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12711 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12713 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12714 register for push instruction recording.
12716 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12718 * arm-tdep.c (thumb_record_misc): Update to correct logical
12719 error while recording ldm, ldmia and pop instructions.
12721 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12723 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12725 2014-01-15 Pedro Alves <palves@redhat.com>
12727 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12728 (go32_resume, go32_fetch_registers, store_register)
12729 (go32_store_registers, go32_prepare_to_store)
12730 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12731 (go32_create_inferior, go32_can_run, go32_terminal_init)
12732 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12735 2014-01-15 Tom Tromey <tromey@redhat.com>
12737 * target.h (async_callback_ftype): New typedef.
12738 (struct target_ops) <to_async>: Use it.
12740 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12742 * python/py-value.c (get_field_type): Remove unnecessary curly
12743 braces for single-statement if block.
12745 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12747 * python/py-type.c (convert_field): Add missing empty line
12748 after declarations.
12750 2014-01-14 Doug Evans <dje@google.com>
12752 * symfile.h (expand_symtabs_matching): Renamed from
12753 expand_partial_symbol_names. Update prototype.
12754 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12755 * symfile.c (expand_symtabs_matching): Renamed from
12756 expand_partial_symbol_names. New args file_matcher, kind.
12757 Rename arg fun to symbol_matcher.
12758 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12759 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12760 ada_expand_partial_symbol_name.
12761 (ada_make_symbol_completion_list): Update to call
12762 expand_symtabs_matching.
12763 (ada_add_global_exceptions): Call expand_symtabs_matching.
12764 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12765 call map_symbol_filenames.
12766 * symtab.c (sources_info): Update to call map_symbol_filenames.
12767 (search_symbols): Call expand_symtabs_matching.
12768 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12769 (default_make_symbol_completion_list_break_on): Update to call
12770 expand_symtabs_matching.
12771 (make_source_files_completion_list): Update to call
12772 map_symbol_filenames.
12774 2014-01-14 Doug Evans <dje@google.com>
12776 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12777 (expand_symtabs_symbol_matcher_ftype): New typedef.
12778 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12779 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12780 * symfile.c (expand_partial_symbol_names): Update to use
12781 expand_symtabs_symbol_matcher_ftype.
12782 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12783 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12784 Arg name_matcher renamed to symbol_matcher.
12785 * psymtab.c (recursively_search_psymtabs): Update to use
12786 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12788 (expand_symtabs_matching_via_partial): Update to use
12789 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12790 Arg name_matcher renamed to symbol_matcher.
12792 2014-01-14 Doug Evans <dje@google.com>
12794 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12795 (map_partial_symbol_filenames): Ditto.
12796 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12797 (map_partial_symbol_filenames): Ditto.
12798 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12799 (map_partial_symbol_filenames): Ditto.
12800 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12801 (map_partial_symbol_filenames): Ditto.
12802 * symtab.c: Delete #include "psymtab.h".
12804 2014-01-14 Pedro Alves <palves@redhat.com>
12805 Tom Tromey <tromey@redhat.com>
12807 * infrun.c (use_displaced_stepping): Use find_record_target
12808 instead of RECORD_IS_USED.
12809 (adjust_pc_after_break): Use record_full_is_used instead of
12811 * record-btrace.c (record_btrace_open): Call record_preopen
12812 instead of checking RECORD_IS_USED.
12813 * record-full.c (record_full_shortname)
12814 (record_full_core_shortname): New globals.
12815 (record_full_is_used): New function.
12816 (find_full_open): Call record_preopen instead of checking
12818 (init_record_full_ops): Set the target's shortname to
12819 record_full_shortname.
12820 (init_record_full_core_ops): Set the target's shortname to
12821 record_full_core_shortname.
12822 * record-full.h (record_full_is_used): Declare.
12823 * record.c (find_record_target): Make extern.
12824 (record_preopen): New function.
12825 * record.h (RECORD_IS_USED): Delete macro.
12826 (find_record_target, record_preopen): Declare functions.
12828 2014-01-14 Yao Qi <yao@codesourcery.com>
12830 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12831 'len''s type to ULONGEST.
12832 (core_xfer_shared_libraries_aix): Likewise.
12833 * gdbarch.c, gdbarch.h: Regenerated.
12834 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12835 Change type of 'len' to ULONGEST.
12836 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12837 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12839 2014-01-14 Yao Qi <yao@codesourcery.com>
12841 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12842 type of 'len' to ULONGEST.
12843 (linux_xfer_osdata_processgroups): Likewise.
12844 (linux_xfer_osdata_threads): Likewise.
12845 (linux_xfer_osdata_fds): Likewise.
12846 (linux_xfer_osdata_isockets): Likewise.
12847 (linux_xfer_osdata_shm): Likewise.
12848 (linux_xfer_osdata_sem): Likewise.
12849 (linux_xfer_osdata_msg): Likewise.
12850 (linux_common_xfer_osdata): Likewise.
12851 (struct osdata_type) <getter>: Likewise.
12852 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12855 2014-01-14 Yao Qi <yao@codesourcery.com>
12857 * target.h (target_xfer_partial_ftype): Update.
12858 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12860 * aix-thread.c (aix_thread_xfer_partial): Change type of
12861 argument 'len' to ULONGEST.
12862 * auxv.c (procfs_xfer_auxv): Likewise.
12863 (ld_so_xfer_auxv): Likewise.
12864 (memory_xfer_auxv): Likewise.
12865 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12866 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12867 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12868 * corelow.c (core_xfer_partial): Likewise.
12869 * ctf.c (ctf_xfer_partial): Likewise.
12870 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12872 (darwin_read_dyld_info): Likewise.
12873 (darwin_xfer_partial): Likewise.
12874 * exec.c (section_table_xfer_memory_partial): Likewise.
12875 (exec_xfer_partial): Likewise.
12876 * exec.h (section_table_xfer_memory_partial): Update
12878 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12879 instead of plongest.
12880 (gnu_xfer_partial): Likewise.
12881 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12882 (ia64_hpux_xfer_solib_got): Likewise.
12883 (ia64_hpux_xfer_partial): Likewise.
12884 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12885 * inf-ptrace.c (inf_ptrace_xfer_partial):
12886 * inf-ttrace.c (inf_ttrace_xfer_partial):
12887 * linux-nat.c (linux_xfer_siginfo): Likewise.
12888 (linux_nat_xfer_partial): Likewise.
12889 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12890 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12891 * monitor.c (monitor_xfer_memory): Likewise.
12892 (monitor_xfer_partial): Likewise.
12893 * procfs.c (procfs_xfer_partial): Likewise.
12894 * record-full.c (record_full_xfer_partial): Likewise.
12895 (record_full_core_xfer_partial): Likewise.
12896 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12897 instead of plongest.
12898 (gdbsim_xfer_partial): Likewise.
12899 * remote.c (remote_xfer_partial): Likewise.
12900 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12901 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12903 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12904 (rs6000_xfer_shared_libraries): Likewise.
12905 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12906 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12907 (sparc_xfer_partial): Likewise.
12908 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12909 (spu_xfer_partial): Likewise.
12910 * spu-multiarch.c (spu_xfer_partial): Likewise.
12911 * target.c (target_read_live_memory): Likewise.
12912 (memory_xfer_live_readonly_partial): Likewise.
12913 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12914 (target_xfer_partial, default_xfer_partial): Likewise.
12915 (current_xfer_partial): Likewise.
12916 * tracepoint.c (tfile_xfer_partial): Likewise.
12917 * windows-nat.c (windows_xfer_memory): Likewise. Call
12918 pulongest instead of plongest.
12919 (windows_xfer_partial): Likewise.
12920 (windows_xfer_shared_libraries): Likewise.
12922 2014-01-14 Yao Qi <yao@codesourcery.com>
12924 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12925 target_xfer_partial_ftype.
12927 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12931 * valops.c (value_struct_elt_bitpos): New function
12932 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12933 object to 'None' if the field name is an empty string ("").
12934 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12935 attribute to look for a field when 'name' is 'None'.
12936 (get_field_type): New function
12938 2014-01-13 Doug Evans <dje@google.com>
12941 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12942 (try_open_dwop_file): Ditto.
12943 * gdb_bfd.c: #include "vec.h".
12944 (bfdp): New typedef.
12945 (struct gdb_bfd_data): New member included_bfds.
12946 (gdb_bfd_unref): Unref all included bfds.
12947 (gdb_bfd_record_inclusion): New function.
12948 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12950 2014-01-13 Tom Tromey <tromey@redhat.com>
12952 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12954 2014-01-13 Tom Tromey <tromey@redhat.com>
12956 * defs.h (use_windows): Remove.
12957 * gdb.c (main): Update.
12958 * main.c (captured_main, gdb_main): Update.
12959 * main.h (struct captured_main_args) <use_windows>: Remove.
12960 * top.c (use_windows): Remove.
12962 2014-01-13 Tom Tromey <tromey@redhat.com>
12964 * defs.h (deprecated_flush_hook): Remove.
12966 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12969 * linux-thread-db.c (try_thread_db_load): Add parameter
12970 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12971 (try_thread_db_load_from_pdir_1): Move it there from here.
12972 (try_thread_db_load_from_sdir): Update caller.
12973 (try_thread_db_load_from_dir): Move it there from here.
12975 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12977 * regformats/regdat.sh: Always rewrite the register file.
12979 2014-01-13 Pedro Alves <palves@redhat.com>
12981 * Makefile.in (CHECK_HEADERS): New variable.
12982 (check-headers:): New rule.
12984 2014-01-13 Tom Tromey <tromey@redhat.com>
12986 * cli/cli-setshow.c (do_set_command): Update.
12987 * defs.h (deprecated_set_hook): Remove.
12988 * top.c (deprecated_set_hook): Remove.
12990 2014-01-13 Pedro Alves <palves@redhat.com>
12992 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12993 the tracepoint if the PC is a pseudo-register.
12995 2014-01-13 Tom Tromey <tromey@redhat.com>
12997 * defs.h (XCALLOC): Remove.
12998 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12999 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13000 * dwarf2loc.c (allocate_piece_closure): Likewise.
13001 * elfread.c (elf_symfile_segments): Likewise.
13002 (elf_symfile_segments): Likewise.
13003 * gdbtypes.c (copy_type_recursive): Likewise.
13004 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13005 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13006 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13008 * mt-tdep.c (mt_gdbarch_init): Likewise.
13009 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13011 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13012 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13013 * registry.c (registry_alloc_data): Likewise.
13014 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13015 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13016 * serial.c (serial_fdopen_ops): Likewise.
13017 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13019 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13020 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13023 2014-01-13 Tom Tromey <tromey@redhat.com>
13025 * defs.h (XMALLOC): Remove.
13026 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13027 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13028 * cli-out.c (struct ui_out *): Likewise.
13029 * cli/cli-dump.c (add_dump_command): Likewise.
13030 (add_dump_command): Likewise.
13031 * complaints.c (get_complaints): Likewise.
13032 (find_complaint): Likewise.
13033 * dwarf2-frame.c (execute_cfa_program): Likewise.
13034 * dwarf2read.c (abbrev_table_read_table): Likewise.
13035 * gdbarch.sh: Likewise.
13036 * gdbarch.c: Rebuild.
13037 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13038 * interps.c (interp_new): Likewise.
13039 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13040 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13041 * mi/mi-console.c (mi_console_file_new): Likewise.
13042 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13043 * mi/mi-out.c (mi_out_new): Likewise.
13044 * mi/mi-parse.c (mi_parse): Likewise.
13045 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13046 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13047 * observer.c (xalloc_observer_list_node): Likewise.
13048 * regcache.c (regcache_xmalloc_1): Likewise.
13049 * reggroups.c (reggroup_new): Likewise.
13050 (_initialize_reggroup): Likewise.
13051 * registry.c (register_data_with_cleanup): Likewise.
13052 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13053 * ser-base.c (serial_ttystate): Likewise.
13054 * ser-mingw.c (make_pipe_state): Likewise.
13055 * ser-pipe.c (pipe_open): Likewise.
13056 * serial.c (serial_open): Likewise.
13057 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13058 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13059 (tui_alloc_win_info): Likewise.
13060 (tui_add_content_elements): Likewise.
13061 * tui/tui-file.c (tui_file_new): Likewise.
13062 * tui/tui-out.c (tui_out_new): Likewise.
13063 * ui-file.c (mem_file_new): Likewise.
13064 * ui-out.c (push_level): Likewise.
13065 (make_cleanup_ui_out_end): Likewise.
13066 (append_header_to_list): Likewise.
13067 (ui_out_new): Likewise.
13068 * user-regs.c (user_reg_add_builtin): Likewise.
13070 2014-01-13 Tom Tromey <tromey@redhat.com>
13072 * defs.h (XZALLOC): Remove.
13073 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13074 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13075 (get_ada_tasks_inferior_data): Likewise.
13076 * auto-load.c (get_auto_load_pspace_data): Likewise.
13077 * auxv.c (get_auxv_inferior_data): Likewise.
13078 * bfd-target.c (target_bfd_reopen): Likewise.
13079 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13080 (deprecated_insert_raw_breakpoint): Likewise.
13081 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13082 * corelow.c (core_open): Likewise.
13083 * darwin-nat.c (darwin_check_new_threads): Likewise.
13084 (darwin_attach_pid): Likewise.
13085 * dummy-frame.c (dummy_frame_push): Likewise.
13086 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13087 * dwarf2loc.c (allocate_piece_closure): Likewise.
13088 * elfread.c (elf_symfile_segments): Likewise.
13089 * eval.c (ptrmath_type_p): Likewise.
13090 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13091 * gdbtypes.c (alloc_type_arch): Likewise.
13092 (alloc_type_instance): Likewise.
13093 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13094 * inf-child.c (inf_child_can_use_agent): Likewise.
13095 * inflow.c (get_inflow_inferior_data): Likewise.
13096 * infrun.c (save_infcall_suspend_state): Likewise.
13097 * jit.c (jit_reader_load): Likewise.
13098 (get_jit_objfile_data): Likewise.
13099 (get_jit_program_space_data): Likewise.
13100 (jit_object_open_impl): Likewise.
13101 (jit_symtab_open_impl): Likewise.
13102 (jit_block_open_impl): Likewise.
13103 (jit_frame_sniffer): Likewise.
13104 * linux-fork.c (add_fork): Likewise.
13105 * maint.c (make_command_stats_cleanup): Likewise.
13106 * objfiles.c (get_objfile_pspace_data): Likewise.
13107 * opencl-lang.c (struct lval_closure): Likewise.
13108 * osdata.c (osdata_start_osdata): Likewise.
13109 * progspace.c (new_address_space): Likewise.
13110 (add_program_space): Likewise.
13111 * remote-sim.c (get_sim_inferior_data): Likewise.
13112 * sh-tdep.c (sh_gdbarch_init): Likewise.
13113 * skip.c (Ignore): Likewise.
13114 (skip_delete_command): Likewise.
13115 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13116 (library_list_start_library): Likewise.
13117 (solib_aix_current_sos): Likewise.
13118 * solib-darwin.c (get_darwin_info): Likewise.
13119 (darwin_current_sos): Likewise.
13120 * solib-dsbt.c (get_dsbt_info): Likewise.
13121 * solib-ia64-hpux.c (new_so_list): Likewise.
13122 (ia64_hpux_get_solib_linkage_addr): Likewise.
13123 * solib-spu.c (append_ocl_sos): Likewise.
13124 (spu_current_sos): Likewise.
13125 * solib-svr4.c (get_svr4_info): Likewise.
13126 (svr4_keep_data_in_core): Likewise.
13127 (library_list_start_library): Likewise.
13128 (svr4_default_sos): Likewise.
13129 (svr4_read_so_list): Likewise.
13130 * solib-target.c (library_list_start_library): Likewise.
13131 (solib_target_current_sos): Likewise.
13132 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13133 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13134 * symfile.c (default_symfile_segments): Likewise.
13135 * target-descriptions.c (tdesc_data_init): Likewise.
13136 (tdesc_create_reg): Likewise.
13137 (struct tdesc_type *): Likewise.
13138 (tdesc_create_vector): Likewise.
13139 (tdesc_set_struct_size): Likewise.
13140 (struct tdesc_type *): Likewise.
13141 (tdesc_free_feature): Likewise.
13142 (tdesc_create_feature): Likewise.
13143 * windows-nat.c (windows_add_thread): Likewise.
13144 (windows_make_so): Likewise.
13145 * xml-support.c (gdb_xml_body_text): Likewise.
13146 (gdb_xml_create_parser_and_cleanup): Likewise.
13147 (xml_process_xincludes): Likewise.
13148 * xml-syscall.c (allocate_syscalls_info): Likewise.
13149 (syscall_create_syscall_desc): Likewise.
13151 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13153 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13154 function, with code from i386_stap_parse_special_token.
13155 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13156 (i386_stap_parse_special_token): Move code to the two functions
13157 above; simplify it.
13159 2014-01-09 Pedro Alves <palves@redhat.com>
13160 Hui Zhu <hui@codesourcery.com>
13163 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13164 bp_err_string. Don't mark the location shlib_disabled if the
13165 error thrown wasn't a generic or memory error. Catch errors
13166 thrown while inserting breakpoints in overlayed code. Output
13167 error message of software breakpoints.
13168 * remote.c (remote_insert_breakpoint): If this breakpoint has
13169 target-side commands but this stub doesn't support Z0 packets,
13170 throw NOT_SUPPORTED_ERROR error.
13171 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13172 * target.h (target_insert_breakpoint): Extend comment.
13173 (target_insert_hw_breakpoint): Add comment.
13175 2014-01-08 Pedro Alves <palves@redhat.com>
13177 * remote.c (remote_add_thread): Add threads silently if starting
13179 (remote_notice_new_inferior): If in all-stop, and starting up,
13180 don't call notice_new_inferior.
13181 (get_current_thread): New function, factored out from ...
13182 (add_current_inferior_and_thread): ... this. Adjust.
13183 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13184 found any thread, then select the remote's current thread as GDB's
13185 current thread too.
13187 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13189 * NEWS: Create a new section for the next release branch.
13190 Rename the section of the current branch, now that it has
13193 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13195 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13196 * version.in: Bump version to 7.7.50.DATE-cvs.
13198 2014-01-08 Yao Qi <yao@codesourcery.com>
13200 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13201 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13202 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13204 2014-01-08 Yao Qi <yao@codesourcery.com>
13206 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13207 return value of bfd_get_filename to symbol_file_add_from_bfd.
13209 2014-01-08 Pierre Muller <muller@sourceware.org>
13212 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13213 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13214 to prim_record_mininal_symbol_and_info.
13215 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13216 in call to prim_record_minimal_symbol_and_info.
13217 (read_pe_exported_syms): Set index field of section_data.
13219 2014-01-07 Andrew Pinski <apinski@cavium.com>
13221 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13222 * features/aarch64.c: Regenerate.
13224 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13226 * target.c (return_null): Define.
13227 (update_current_target): Use it instead of return_zero for
13228 functions that return a pointer.
13230 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13232 * source.c (add_path): Fix check for duplicated paths in the previously
13235 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13237 * ada-lang.c: Remove duplicated include statements.
13238 * alphabsd-nat.c: Ditto.
13239 * amd64-darwin-tdep.c: Ditto.
13240 * amd64fbsd-nat.c: Ditto.
13241 * auto-load.c: Ditto.
13243 * breakpoint.c: Ditto.
13244 * dbxread.c: Ditto.
13245 * fork-child.c: Ditto.
13246 * gdb_usleep.c: Ditto.
13247 * i386-darwin-tdep.c: Ditto.
13248 * i386fbsd-nat.c: Ditto.
13250 * inferior.c: Ditto.
13251 * jv-lang.c: Ditto.
13252 * linux-nat.c: Ditto.
13253 * linux-tdep.c: Ditto.
13254 * m68kbsd-nat.c: Ditto.
13255 * m68klinux-nat.c: Ditto.
13256 * microblaze-tdep.c: Ditto.
13257 * mips-linux-tdep.c: Ditto.
13258 * mn10300-tdep.c: Ditto.
13259 * nto-tdep.c: Ditto.
13260 * opencl-lang.c: Ditto.
13262 * printcmd.c: Ditto.
13263 * regcache.c: Ditto.
13264 * remote-m32r-sdi.c: Ditto.
13266 * symfile.c: Ditto.
13268 * tilegx-linux-nat.c: Ditto.
13269 * tilegx-tdep.c: Ditto.
13270 * tracepoint.c: Ditto.
13272 * vaxbsd-nat.c: Ditto.
13273 * windows-nat.c: Ditto.
13274 * xtensa-tdep.c: Ditto.
13276 2014-01-07 Yao Qi <yao@codesourcery.com>
13278 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13280 2014-01-07 Yao Qi <yao@codesourcery.com>
13281 Joel Brobecker <brobecker@adacore.com>
13283 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13284 (pdc_write_regs): Likewise.
13285 (fetch_regs_kernel_thread): Likewise.
13286 (store_regs_kernel_thread): Likewise.
13288 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13290 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13291 tagged type objects to their actual type.
13293 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13295 * ada-valprint.c (print_field_values): Add "language" parameter.
13296 Update calls to print_field_values and print_variant_part.
13297 Pass new parameter "language" in call to val_print instead
13298 of "current_language". Replace call to ada_val_print by call
13300 (print_variant_part): Add "language" parameter.
13301 (ada_val_print_struct_union): Update call to print_field_values.
13303 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13305 * ada-valprint.c (ui_memcpy): Delete.
13306 (ada_print_floating): Update documentation. Add empty line
13307 between between function documentation and implementation.
13308 Delete variable "buffer". Use ui_file_xstrdup in place of
13309 ui_file_put. Minor adjustments following this change.
13311 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13313 * ada-valprint.c (ada_val_print_string): New function,
13314 extracted from ada_val_print_array.
13315 (ada_val_print_array): Replace extracted code by call
13316 to ada_val_print_string followed by a return. Move
13317 "else" branch to the function's top block.
13319 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13321 * ada-valprint.c (ada_val_print_array): Move implementation
13322 down. Rename parameter "offset" and "val" into "offset_aligned"
13323 and "original_value" respectively. Add parameter "offset".
13325 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13327 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13328 re-organizing the code. Change the "???" message printed
13329 when target type is a TYPE_CODE_UNDEF into
13330 "<ref to undefined type>".
13332 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13334 * ada-valprint.c (print_record): Delete, implementation inlined...
13335 (ada_val_print_struct_union): ... here. Remove call to
13336 ada_check_typedef in inlined implementation.
13338 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13340 * ada-valprint.c (ada_val_print_gnat_array): New function,
13341 extracted from ada_val_print_1;
13342 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13343 (ada_val_print_flt, ada_val_print_struct_union)
13344 (ada_val_print_ref): Likewise.
13345 (ada_val_print_1): Delete variables i and elttype.
13346 Replace extracted-out code by call to corresponding
13349 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13351 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13353 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13355 * ada-valprint.c (ada_val_print_1): Replace calls to
13356 ada_val_print_1 by calls to val_print.
13358 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13360 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13361 Update calls to self accordingly. Replace calls to c_val_print
13362 by calls to val_print.
13364 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13366 * ada-valprint.c (print_record): Delete declaration.
13367 (adjust_type_signedness, ada_val_print_1): Likewise.
13368 (ada_val_print): Move function implementation down.
13369 (print_variant_part, print_field_values, print_record):
13370 Move function implementation up.
13372 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13374 * python/py-type.c (typy_get_name): New function.
13375 (type_object_getset): Add entry for attribute "name".
13376 * NEWS: Add entry mentioning this new attribute.
13378 2014-01-07 Yao Qi <yao@codesourcery.com>
13380 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13383 2014-01-07 Yao Qi <yao@codesourcery.com>
13385 * gnu-nat.c (info_port_rights): Add qualifier const to
13388 2014-01-07 Yao Qi <yao@codesourcery.com>
13390 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13392 2014-01-07 Yao Qi <yao@codesourcery.com>
13394 * gnu-nat.c (make_inf) Update declaration.
13395 (make_inf): Make it static.
13396 (inf_set_traced): Likewise.
13397 (inf_port_to_thread, inf_task_died_status): Likewise.
13399 2014-01-07 Yao Qi <yao@codesourcery.com>
13401 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13403 2014-01-07 Yao Qi <yao@codesourcery.com>
13405 * gnu-nat.c (_initialize_gnu_nat): Declare.
13407 2014-01-07 Yao Qi <yao@codesourcery.com>
13409 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13411 (struct gdbarch_info) <byte_order>: Change type to
13413 <byte_order_for_code>: Likewise.
13414 * gdbarch.c, gdbarch.h: Regenerated.
13416 2014-01-06 Sasha Smundak <asmundak@google.com>
13418 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13420 2014-01-06 Tom Tromey <tromey@redhat.com>
13422 * doublest.c (convert_doublest_to_floatformat): Use const, not
13424 * somread.c (som_symtab_read): Likewise.
13426 2014-01-07 Hui Zhu <hui@codesourcery.com>
13428 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13429 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13430 (gdb_bfd_fopen): Ditto.
13431 (gdb_bfd_openr): Ditto.
13432 (gdb_bfd_openw): Ditto.
13433 (gdb_bfd_openr_iovec): Ditto.
13434 (gdb_bfd_fdopenr): Ditto.
13435 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13436 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13438 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13440 * symfile-mem.c (symbol_file_add_from_memory): Removed
13441 gdb_bfd_stash_filename.
13443 2014-01-03 Doug Evans <dje@google.com>
13445 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13448 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13450 Update year range in copyright notice of all files.
13452 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13454 * top.c (print_gdb_version): Set copyright year to 2014.
13456 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13458 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13460 For older changes see ChangeLog-2013.
13466 version-control: never