1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
4 (linux_nat_make_corefile_notes): Remove.
5 (linux_target_install_ops): Do not set target method
7 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
9 (linux_corefile_thread_callback): Instead of args->collect, call
10 linux_collect_thread_registers.
11 (linux_make_corefile_notes): Remove 'collect' parameter. Return
12 NULL unless there is a regset iterator.
13 (linux_make_corefile_notes_1): Remove.
14 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
15 by linux_make_corefile_notes.
16 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
18 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
20 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
21 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
23 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
25 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
27 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
28 (xtensa_iterate_over_regset_sections): New.
29 (xtensa_gdbarch_init): Adjust gdbarch initialization.
31 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
33 * vax-tdep.c (vax_regset_from_core_section): Remove.
34 (vax_iterate_over_regset_sections): New.
35 (vax_gdbarch_init): Adjust gdbarch initialization.
37 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
39 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
40 (tilegx_regset_from_core_section): Remove.
41 (tilegx_iterate_over_regset_sections): New.
42 (tilegx_linux_init_abi): Adjust gdbarch initialization.
44 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
46 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
47 (sparc_iterate_over_regset_sections): New.
48 (sparc32_gdbarch_init): Adjust gdbarch initialization.
49 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
51 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
52 (sparc64fbsd_init_abi): Call fbsd_init_abi.
53 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
54 target method 'make_corefile_notes'.
56 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
58 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
59 'sizeof_gregset' and 'sizeof_fpregset'.
60 * sh-tdep.c (sh_regset_from_core_section): Remove.
61 (sh_iterate_over_regset_sections): New.
62 (sh_gdbarch_init): Adjust gdbarch initialization.
63 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
65 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
68 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
70 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
71 (score7_linux_iterate_over_regset_sections): New.
72 (score_gdbarch_init): Adjust gdbarch initialization.
74 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
76 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
78 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
79 method 'make_corefile_notes'.
80 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
81 (ppcfbsd_regset_from_core_section): Remove.
82 (ppcfbsd_iterate_over_regset_sections): New.
83 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
85 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
86 (ppcnbsd_iterate_over_regset_sections): New.
87 (ppcnbsd_init_abi): Adjust.
88 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
89 (ppcobsd_iterate_over_regset_sections): New.
90 (ppcobsd_init_abi): Adjust.
91 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
92 (rs6000_aix_iterate_over_regset_sections): New.
93 (rs6000_aix_init_osabi): Adjust.
95 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
97 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
98 (nios2_regset_from_core_section): Remove.
99 (nios2_iterate_over_regset_sections): New.
100 (nios2_linux_init_abi): Adjust gdbarch initialization.
102 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
104 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
105 (am33_iterate_over_regset_sections): New.
106 (am33_linux_init_osabi): Adjust gdbarch initialization.
108 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
110 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
111 (mips_linux_iterate_over_regset_sections): New.
112 (mips_linux_init_abi): Adjust gdbarch initialization.
113 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
114 (mips64obsd_iterate_over_regset_sections): New.
115 (mips64obsd_init_abi): Adjust.
116 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
117 (mipsnbsd_iterate_over_regset_sections): New.
118 (mipsnbsd_init_abi): Adjust.
120 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
122 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
123 (m88k_iterate_over_regset_sections): New.
124 (m88k_gdbarch_init): Adjust gdbarch initialization.
126 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
128 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
129 (ia64_linux_iterate_over_regset_sections): New.
130 (ia64_linux_init_abi): Adjust gdbarch initialization.
132 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
134 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
135 (m68kbsd_iterate_over_regset_sections): New.
136 (m68kbsd_init_abi): Adjust gdbarch initialization.
137 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
138 (m68k_linux_iterate_over_regset_sections): New.
139 (m68k_linux_init_abi): Adjust gdbarch initialization.
141 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
143 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
144 (m32r_linux_regset_from_core_section): Remove.
145 (m32r_linux_iterate_over_regset_sections): New.
146 (m32r_linux_init_abi): Adjust gdbarch initialization.
148 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
150 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
151 (amd64obsd_iterate_over_regset_sections): New.
152 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
153 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
155 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
156 regset_from_core_section initialization.
157 * i386-tdep.c (i386_regset_from_core_section): Remove.
158 (i386_iterate_over_regset_sections): New.
159 (i386_gdbarch_init): Adjust gdbarch initialization.
160 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
161 (i386_iterate_over_regset_sections): New prototype.
162 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
164 (i386obsd_aout_iterate_over_regset_sections): New.
165 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
166 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
168 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
169 (amd64fbsd_init_abi): Call fbsd_init_abi.
170 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
171 (i386fbsd4_init_abi): Call fbsd_init_abi.
172 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
173 target method 'make_corefile_notes'.
174 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
176 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
178 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
179 (hppa_hpux_iterate_over_regset_sections): New.
180 (hppa_hpux_init_abi): Adjust gdbarch initialization.
181 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
182 (hppa_linux_iterate_over_regset_sections): New.
183 (hppa_linux_init_abi): Adjust.
184 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
185 (hppanbsd_iterate_over_regset_sections): New.
186 (hppanbsd_init_abi): Adjust.
187 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
188 (hppaobsd_iterate_over_regset_sections): New.
189 (hppaobsd_init_abi): Adjust.
191 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
193 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
194 (frv_linux_iterate_over_regset_sections): New.
195 (frv_linux_init_abi): Adjust gdbarch initialization.
197 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
199 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
200 (armbsd_iterate_over_regset_sections): New prototype.
201 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
202 (armbsd_iterate_over_regset_sections): New.
203 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
206 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
208 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
209 (alpha_linux_iterate_over_regset_sections): New.
210 (alpha_linux_init_abi): Adjust gdbarch initialization.
211 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
213 (alphanbsd_iterate_over_regset_sections): New prototype.
215 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
217 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
219 (aarch64_linux_iterate_over_regset_sections): New.
220 (aarch64_linux_init_abi): Adjust gdbarch initialization.
222 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
224 * fbsd-tdep.c: New file.
225 * fbsd-tdep.h: New file.
226 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
227 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
228 (ALLDEPFILES): Add fbsd-tdep.c.
230 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
232 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
234 * gdbarch.h: Regenerate.
235 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
237 (get_core_register_section): Add parameter 'regset' and use it, if
238 set. Add parameter 'min_size' and verify the bfd section size
240 (get_core_registers_cb): Add parameter 'regset' and pass it to
241 get_core_register section. For the "standard" register sections
242 ".reg" and ".reg2", set an appropriate default for human_name.
243 (get_core_registers): Don't abort when the gdbarch has an iterator
244 but no regset_from_core_section. Add NULL/0 for parameters
245 'regset'/'min_size' in calls to get_core_register_section.
246 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
247 'regset' and use it instead of calling the
248 regset_from_core_section gdbarch method.
249 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
250 * i386-tdep.c (i386_supply_xstateregset)
251 (i386_collect_xstateregset, i386_xstateregset): Moved to
253 (i386_regset_from_core_section): Drop handling for .reg-xfp and
255 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
256 core file support only if the regset iterator hasn't been set.
257 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
258 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
259 Moved from i386-tdep.c and renamed to *_linux*.
260 (i386_linux_iterate_over_regset_sections): Add regset parameter to
261 each callback invocation. Allow any .reg-xstate size when reading
263 * amd64-tdep.c (amd64_supply_xstateregset)
264 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
266 (amd64_regset_from_core_section): Remove.
267 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
268 install an amd64-specific regset_from_core_section gdbarch method.
269 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
270 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
271 Moved from amd64-tdep.c and renamed to *_linux*.
272 (amd64_linux_iterate_over_regset_sections): Add regset parameter
273 to each callback invocation. Allow any .reg-xstate size when
274 reading from a core file.
275 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
276 (arm_linux_iterate_over_regset_sections): Add regset parameter to
277 each callback invocation.
278 (arm_linux_init_abi): No longer set the regset_from_core_section
280 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
281 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
282 each callback invocation.
283 (ppc_linux_init_abi): No longer set the regset_from_core_section
285 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
286 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
287 (s390_regset_from_core_section): Remove.
288 (s390_iterate_over_regset_sections): Add regset parameter to each
290 (s390_gdbarch_init): No longer set the regset_from_core_section
291 gdbarch method. Drop initialization of deleted tdep fields.
293 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
295 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
296 (amd64_linux_iterate_over_regset_sections): New.
297 (amd64_linux_init_abi_common): Don't install the regset section
298 list, but the new iterator in gdbarch.
299 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
300 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
301 (arm_linux_iterate_over_regset_sections): ...here. New function.
302 (arm_linux_init_abi): Set iterator instead of section list.
303 * corelow.c (get_core_registers_cb): New function, logic moved
305 (get_core_registers): ...loop body here. Use new iterator method
306 instead of walking through the regset section list.
307 * gdbarch.sh: Remove 'core_regset_sections'. New method
308 'iterate_over_regset_sections'. New typedef
309 'iterate_over_regset_sections_cb'.
310 * gdbarch.c: Regenerate.
311 * gdbarch.h: Likewise.
312 * i386-linux-tdep.c (i386_linux_regset_sections)
313 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
315 (i386_linux_iterate_over_regset_sections): New.
316 (i386_linux_init_abi): Don't choose a regset section list, but
317 install new iterator in gdbarch.
318 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
319 (linux_collect_regset_section_cb): New function, logic moved
321 (linux_collect_thread_registers): ...loop body here. Use iterator
322 method instead of walking through list.
323 (linux_make_corefile_notes_1): Check for presence of iterator
324 method instead of regset section list.
325 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
326 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
327 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
328 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
329 (ppc_linux_iterate_over_regset_sections): ...here. New function.
330 (ppc_linux_init_abi): Don't choose from above regset section
331 lists, but install new iterator in gdbarch.
332 * regset.h (struct core_regset_section): Remove.
333 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
334 have_linux_v1, have_linux_v2, and have_tdb.
335 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
336 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
337 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
338 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
339 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
340 (s390_iterate_over_regset_sections): ...here. New function. Use
342 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
343 regset section lists, but install new iterator.
345 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
347 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
349 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
351 * progspace.c (print_program_space): Don't prune program spaces
352 before printing them.
354 2014-09-25 Pedro Alves <palves@redhat.com>
356 * infrun.c (user_visible_resume_ptid): Don't check
357 singlestep_breakpoints_inserted_p.
359 2014-09-25 Pedro Alves <palves@redhat.com>
361 * breakpoint.c (should_be_inserted): Add debug output.
363 2014-09-25 Pedro Alves <palves@redhat.com>
365 * infrun.c (stepping_past_instruction_at)
366 (clear_exit_convenience_vars): Point at infrun.h instead of
368 (handle_signal_stop): Fix typo.
370 2014-09-24 Yao Qi <yao@codesourcery.com>
372 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
375 2014-09-22 Gary Benson <gbenson@redhat.com>
377 * target.c (target_stop): Updated comment.
379 2014-09-22 Gary Benson <gbenson@redhat.com>
381 * target/target.h (target_stop_ptid): Renamed as...
382 (target_stop_and_wait): New function. Updated comment.
384 (target_continue_ptid): Renamed as...
385 (target_continue_no_signal): New function. Updated comment.
388 2014-09-22 Pedro Alves <palves@redhat.com>
390 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
392 * breakpoint.c (enum ugll_insert_mode): New enum.
393 (always_inserted_mode): Now a plain boolean.
394 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
395 (breakpoints_always_inserted_mode): Delete.
396 (breakpoints_should_be_inserted_now): New function.
397 (insert_breakpoints): Pass UGLL_INSERT to
398 update_global_location_list instead of calling
399 insert_breakpoint_locations manually.
400 (create_solib_event_breakpoint_1): New, factored out from ...
401 (create_solib_event_breakpoint): ... this.
402 (create_and_insert_solib_event_breakpoint): Use
403 create_solib_event_breakpoint_1 instead of calling
404 insert_breakpoint_locations manually.
405 (update_global_location_list): Change parameter type from boolean
406 to enum ugll_insert_mode. All callers adjusted. Adjust to use
407 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
408 (update_global_location_list_nothrow): Change parameter type from
409 boolean to enum ugll_insert_mode.
410 (_initialize_breakpoint): "breakpoint always-inserted" option is
411 now a boolean command. Update help text.
412 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
413 (breakpoints_should_be_inserted_now): New declaration.
414 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
415 Remove breakpoints_always_inserted_mode check.
416 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
417 * remote.c (remote_start_remote): Likewise.
419 2014-09-22 Pedro Alves <palves@redhat.com>
421 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
422 (insert_breakpoints): Don't call insert_breakpoint_locations here.
423 Instead, pass UGLL_INSERT to update_global_location_list.
424 (update_global_location_list): Change parameter type from boolean
425 to enum ugll_insert_mode. All callers adjusted. Adjust to use
426 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
427 (create_solib_event_breakpoint_1): New, factored out from ...
428 (create_solib_event_breakpoint): ... this.
429 (create_and_insert_solib_event_breakpoint): Use
430 create_solib_event_breakpoint_1 instead of calling
431 insert_breakpoint_locations manually.
432 (update_global_location_list): Handle UGLL_INSERT.
434 2014-09-22 Pedro Alves <palves@redhat.com>
436 * breakpoint.c (enum ugll_insert_mode): New enum.
437 (update_global_location_list)
438 (update_global_location_list_nothrow): Change parameter type from
439 boolean to enum ugll_insert_mode. All callers adjusted.
441 2014-09-19 Joel Brobecker <brobecker@adacore.com>
443 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
444 SystemTap support in GDB.
446 2014-09-19 Don Breazeal <donb@codesourcery.com>
448 * linux-nat.c (linux_handle_extended_wait): Call
449 linux_ptrace_get_extended_event.
450 (wait_lwp): Call linux_is_extended_waitstatus.
451 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
452 and linux_is_extended_waitstatus.
453 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
454 linux_ptrace_get_extended_event.
455 (linux_ptrace_get_extended_event): New function.
456 (linux_is_extended_waitstatus): New function.
457 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
458 (linux_is_extended_waitstatus): New declarations.
460 2014-09-19 Yao Qi <yao@codesourcery.com>
462 * dwarf2read.c (dwarf_decode_lines): Update declaration.
463 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
464 comments. Callers update.
465 (dwarf_decode_lines): Likewise.
466 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
467 comments. Skip the line table if 'lowpc' is greater than
468 'address'. Don't check
469 dwarf2_per_objfile->has_section_at_zero.
471 2014-09-18 Doug Evans <dje@google.com>
473 * NEWS: Mention new "producer" attribute of gdb.Symtab.
474 * python/py-symtab.c (stpy_get_producer): New function.
475 (symtab_object_getset): Add "producer" attribute.
477 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
480 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
481 (do_captured_read_memory_integer): Remove.
482 (safe_read_memory_integer): Use target_read_memory directly instead
483 of catching errors in do_captured_read_memory_integer.
485 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
487 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
490 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
492 * objc-lang.c (find_implementation_from_class): Remove dead code.
494 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
497 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
498 "fprintf_unfiltered (gdb_stdlog...)".
500 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
503 * breakpoint.h (struct watchpoint): New fields val_bitpos and
505 * breakpoint.c (watch_command_1): Use these fields to retain
506 bitfield information.
507 (extract_bitfield_from_watchpoint_value): New function.
508 (watchpoint_check): Use it.
509 (update_watchpoint): Use it. Optimize the address and length of a
510 HW watchpoint pointing to a bitfield.
511 * value.h (unpack_value_bitfield): New prototype.
512 * value.c (unpack_value_bitfield): Make extern.
514 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
516 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
518 * gnu-nat.c (inf_threads): New function.
519 * gnu-nat.h (inf_threads_ftype): New typedef.
520 (inf_threads): New declaration.
521 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
522 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
523 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
524 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
525 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
526 (i386_gnu_dr_get_control): New functions.
527 (reg_addr): New structure.
528 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
529 i386 debugging register hooks.
530 * NEWS: Mention this.
532 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
534 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
535 vector data transfer instructions.
536 (arm_record_coproc_data_proc): Updated.
538 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
540 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
541 arm_record_exreg_ld_st_insn.
542 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
545 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
547 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
548 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
549 processing instructions.
551 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
553 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
554 for advance SIMD struct ld/st insn.
555 (thumb2_record_decode_insn_handler): Replace stub handler with
556 thumb2_record_asimd_struct_ld_st.
558 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
560 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
561 for asimd, vfp and coprocessor insns.
562 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
563 and coprocessor insns.
564 (thumb2_record_coproc_insn): New function.
565 (thumb2_record_decode_insn_handler): Update coprocessor insns record
567 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
570 2014-09-13 Doug Evans <xdje42@gmail.com>
572 * NEWS: Mention new "queue-signal" command.
573 * infcmd.c (queue_signal_command): New function.
574 (_initialize_infcmd): Add new queue-signal command.
576 2014-09-13 Doug Evans <xdje42@gmail.com>
578 * linux-nat.c (wait_lwp): Add debugging printf.
579 (linux_nat_wait_1): Ditto.
581 2014-09-12 Pedro Alves <palves@redhat.com>
583 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
584 (create_and_insert_solib_event_breakpoint): New functions.
585 * breakpoint.h (create_and_insert_solib_event_breakpoint)
586 (remove_solib_event_breakpoints_at_next_stop): New declarations.
587 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
588 (remove_dbx_link_breakpoint): Delete function.
589 (insert_dbx_link_bpt_in_file): Use
590 create_and_insert_solib_event_breakpoint instead of
591 deprecated_insert_raw_breakpoint.
592 (procfs_wait): Don't check whether we hit __dbx_link here.
593 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
595 * solib-irix.c (base_breakpoint): Delete global.
596 (disable_break): Delete function.
597 (enable_break): Use create_solib_event_breakpoint
598 instead of deprecated_insert_raw_breakpoint.
599 (irix_solib_handle_event): New function.
600 (irix_solib_create_inferior_hook): Don't run the target or disable
601 the mapping-complete breakpoint here.
602 (_initialize_irix_solib): Install irix_solib_handle_event as
603 so_ops->handle_event hook.
605 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
606 Ulrich Weigand <uweigand@de.ibm.com>
609 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
610 instead of read_memory_unsigned_integer.
612 2014-09-12 Gary Benson <gbenson@redhat.com>
614 * nat/linux-waitpid.c: Include common-defs.h.
615 [GDBSERVER]: Add FIXME comment.
616 [!GDBSERVER]: Don't include defs.h or signal.h.
617 (linux_debug) [!GDBSERVER]: Remove empty block.
619 2014-09-12 Gary Benson <gbenson@redhat.com>
621 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
622 Don't include defs.h or server.h.
624 2014-09-12 Gary Benson <gbenson@redhat.com>
626 * nat/linux-btrace.c: Include common-defs.h.
627 Don't include defs.h, server.h or gdbthread.h.
628 * nat/linux-btrace.h (struct target_ops): New forward declaration.
630 2014-09-12 Gary Benson <gbenson@redhat.com>
632 * common/agent.c: Include common-defs.h.
633 Don't include defs.h or server.h.
634 * common/buffer.c: Likewise.
635 * common/common-debug.c: Likewise.
636 * common/common-utils.c: Likewise.
637 * common/errors.c: Likewise.
638 * common/filestuff.c: Likewise.
639 * common/format.c: Likewise.
640 * common/gdb_vecs.c: Likewise.
641 * common/print-utils.c: Likewise.
642 * common/ptid.c: Likewise.
643 * common/rsp-low.c: Likewise.
644 * common/signals.c: Likewise.
645 * common/vec.c: Likewise.
646 * common/xml-utils.c: Likewise.
647 * nat/linux-osdata.c: Likewise.
648 * nat/linux-procfs.c: Likewise.
649 * nat/linux-ptrace.c: Likewise.
650 * nat/mips-linux-watch.c: Likewise.
651 * target/waitstatus.c: Likewise.
653 2014-09-12 Tom Tromey <tromey@redhat.com>
654 Gary Benson <gbenson@redhat.com>
656 * common/common-regcache.h: New file.
657 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
658 * regcache.h: Include common-regcache.h.
659 (regcache_read_pc): Don't declare.
660 * regcache.c (get_thread_regcache_for_ptid): New function.
661 * nat/linux-btrace.c: Don't include regcache.h.
662 Include common-regcache.h.
663 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
665 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
667 * regcache.h (struct regset): Declare.
669 2014-09-11 Pedro Alves <palves@redhat.com>
672 * main.c: Include "infrun.h".
673 (catch_command_errors, catch_command_errors_const): Wait for the
674 foreground command to complete.
675 * top.c (maybe_wait_sync_command_done): New function, factored out
677 (maybe_wait_sync_command_done): ... here.
678 * top.h (maybe_wait_sync_command_done): New declaration.
680 2014-09-11 Tom Tromey <tromey@redhat.com>
681 Gary Benson <gbenson@redhat.com>
683 * common/symbol.h: New file.
684 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
685 * minsyms.c (find_minimal_symbol_address): New function.
686 * common/agent.c: Include common/symbol.h.
687 [!GDBSERVER]: Don't include objfiles.h.
688 (agent_look_up_symbols): Use find_minimal_symbol_address.
690 2014-09-11 Gary Benson <gbenson@redhat.com>
692 * target/target.h (target_stop_ptid, target_continue_ptid):
694 * target.c (target_stop_ptid, target_continue_ptid): New
696 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
697 (agent_run_command): Always use target_stop_ptid and
698 target_continue_ptid.
700 2014-09-11 Tom Tromey <tromey@redhat.com>
701 Gary Benson <gbenson@redhat.com>
703 * target/target.h: New file.
704 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
705 * target.h: Include target/target.h.
706 (target_read_memory, target_write_memory): Don't declare.
707 * target.c (target_read_uint32): New function.
708 * common/agent.c: Include target/target.h.
709 [!GDBSERVER]: Don't include target.h.
710 (helper_thread_id): Type changed to uint32_t.
711 (agent_get_helper_thread_id): Use target_read_uint32.
712 (agent_run_command): Always use target_read_memory and
714 (agent_capability): Type changed to uint32_t.
715 (agent_capability_check): Use target_read_uint32.
717 2014-09-11 Gary Benson <gbenson@redhat.com>
719 * common/common-debug.h (show_debug_regs): Declare.
720 * common/common-debug.c (show_debug_regs): Define.
721 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
722 all uses with show_debug_regs. Replace all uses that considered
723 debug_hw_points as a multi-value integer with straight boolean
725 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
726 with show_debug_regs.
727 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
728 all uses with show_debug_regs.
729 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
730 uses with show_debug_regs.
732 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
734 * findvar.c (address_from_register): Handle targets requiring
735 a special conversion routine even for plain pointer types.
737 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
739 * rs6000-nat.c (exec_one_dummy_insn): Remove.
740 (store_register): Do not call exec_one_dummy_insn.
742 2014-09-10 Joel Brobecker <brobecker@adacore.com>
744 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
745 dereference it first. Use value_enclosing_type instead of
747 (ada_array_length): Likewise.
749 2014-09-10 Joel Brobecker <brobecker@adacore.com>
751 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
752 Adjust function implementation and documentation accordingly.
753 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
754 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
755 Update call to ada_value_ptr_subscript.
757 2014-09-10 Joel Brobecker <brobecker@adacore.com>
759 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
760 instead of VAL's type.
762 2014-09-10 Joel Brobecker <brobecker@adacore.com>
764 * amd64-linux-nat.c: Add <sys/uio.h> #include.
766 2014-09-09 Doug Evans <xdje42@gmail.com>
769 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
770 last parameter to pkg-config, not first.
771 * configure.ac: Pass --with-guile provided pkg-config path to
772 GDB_GUILE_PROGRAM_NAMES.
773 * configure: Regenerate.
775 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
777 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
780 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
782 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
783 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
784 the list of sections determining GDB_OSABI_IRIX.
786 2014-09-09 James Hogan <james.hogan@imgtec.com>
788 * MAINTAINERS (Write After Approval): Add "James Hogan".
790 2014-09-09 James Hogan <james.hogan@imgtec.com>
792 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
794 2014-09-09 Joel Brobecker <brobecker@adacore.com>
796 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
798 2014-09-08 Doug Evans <xdje42@gmail.com>
801 * guile.c: #include <signal.h>.
802 (_initialize_guile): Block SIGCHLD while initializing Guile.
804 Replaces the following, which is reverted.
806 2014-07-26 Doug Evans <xdje42@gmail.com>
809 * configure.ac: Add check for header gc/gc.h.
810 Add check for function setenv.
811 * configure: Regenerate.
812 * config.in: Regenerate.
813 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
815 2014-09-08 Doug Evans <xdje42@gmail.com>
817 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
818 with named constant. Fix style of pointer comparison.
819 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
821 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
824 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
825 decide whether we display the command on "show user".
826 * cli/cli-script.c (show_user_1): Only verify cmdlines after
827 printing command name.
828 * cli/cli-decode.h (cli_user_command_p): Declare new function.
829 * cli/cli-decode.c (cli_user_command_p): Create helper function
830 to verify whether cmd_list_element is a user-defined command.
832 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
835 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
836 Fix goto out of TRY_CATCH.
838 2014-09-06 Doug Evans <xdje42@gmail.com>
839 Tom Tromey <tromey@redhat.com>
842 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
843 $_any_caller_matches.
844 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
845 * python/lib/gdb/function/caller_is.py: New file.
847 2014-09-06 Doug Evans <xdje42@gmail.com>
849 * infcmd.c (program_info): Fix typo.
851 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
854 * stap-probe.c (stap_parse_single_operand): Delete unused variable
855 'number'. New variable 'has_digit'. Rewrite code to deal with
856 subexpressions on SDT probes.
858 2014-09-04 Pedro Alves <palves@redhat.com>
860 * c-exp.y (parse_number): Skip handling base-switching prefixes if
861 the input is only one character long.
863 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
866 * f-valprint.c (f_val_print): Specify the correct print option to
867 use when printing integer values.
869 2014-09-04 Gary Benson <gbenson@redhat.com>
871 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
872 Remove code to cope with LWPs wrapped as PIDs.
873 Add assertions to ensure no wrapped LWPs are passed.
875 2014-09-04 Pedro Alves <palves@redhat.com>
877 * value.c (value_ranges_copy_adjusted): New function, factored out
879 (value_contents_copy_raw): ... here.
880 (unpack_value_bits_as_long_1): Rename back to ...
881 (unpack_bits_as_long): ... this. Remove 'original_value' and
882 'result' parameters. Change return type to LONGEST.
883 (unpack_value_bits_as_long): Delete.
884 (unpack_value_field_as_long_1): Delete.
885 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
886 (unpack_value_bitfield): New function.
887 (value_field_bitfield): Reimplement using unpack_value_bitfield.
888 (value_fetch_lazy): Use unpack_value_bitfield.
889 * value.h (unpack_value_bits_as_long): Delete declaration.
891 2014-09-03 Sasha Smundak <asmundak@google.com>
893 * python/py-frame.c (frapy_read_register): New function.
895 2014-09-03 James Hogan <james.hogan@imgtec.com>
897 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
898 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
900 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
903 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
905 (add_cmd): Set "completer_handle_brkchars" to NULL.
906 * cli/cli-decode.h (struct cmd_list_element)
907 <completer_handle_brkchars>: New field.
908 * command.h (completer_ftype_void): New typedef.
909 (set_cmd_completer_handle_brkchars): New prototype.
910 * completer.c (set_gdb_completion_word_break_characters): New
912 (complete_line_internal): Call "completer_handle_brkchars"
913 callback from command.
914 * completer.h: Include "command.h".
915 (set_gdb_completion_word_break_characters): New prototype.
916 * python/py-cmd.c (cmdpy_completer_helper): New function.
917 (cmdpy_completer_handle_brkchars): New function.
918 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
919 (cmdpy_init): Set completer_handle_brkchars to
920 cmdpy_completer_handle_brkchars.
922 2014-09-03 Gary Benson <gbenson@redhat.com>
924 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
925 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
926 Loop conditions changed to equivalent form.
927 (struct x86_debug_reg_state): Updated dr_ref_count comment.
928 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
929 ALL_DEBUG_ADDRESS_REGISTERS.
931 2014-09-03 Joel Brobecker <brobecker@adacore.com>
933 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
936 2014-09-02 Doug Evans <dje@google.com>
938 * typeprint.c (find_global_typedef): Fix comment.
940 2014-09-02 Gary Benson <gbenson@redhat.com>
942 * i386-nat.h: Renamed as...
943 * x86-nat.h: New file. All type, function and variable name
944 prefixes changed from "i386_" to "x86_". All references updated.
945 * i386-nat.c: Renamed as...
946 * x86-nat.c: New file. All type, function and variable name
947 prefixes changed from "i386_" to "x86_". All references updated.
948 * common/i386-xstate.h: Renamed as...
949 * common/x86-xstate.h: New file. All type, function and variable
950 name prefixes changed from "i386_" to "x86_". All references
952 * nat/i386-cpuid.h: Renamed as...
953 * nat/x86-cpuid.h: New file. All type, function and variable name
954 prefixes changed from "i386_" to "x86_". All references updated.
955 * nat/i386-gcc-cpuid.h: Renamed as...
956 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
957 name prefixes changed from "i386_" to "x86_". All references
959 * nat/i386-dregs.h: Renamed as...
960 * nat/x86-dregs.h: New file. All type, function and variable name
961 prefixes changed from "i386_" to "x86_". All references updated.
962 * nat/i386-dregs.c: Renamed as...
963 * nat/x86-dregs.c: New file. All type, function and variable name
964 prefixes changed from "i386_" to "x86_". All references updated.
966 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
968 * varobj.c (_initialize_varobj): Move to the end of file.
970 2014-08-29 Gary Benson <gbenson@redhat.com>
972 * common/common-exceptions.h: New file.
973 * common/common-exceptions.c: Likewise.
974 * Makefile.in (SFILES): Add common/common-exceptions.c.
975 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
976 (COMMON_OBS): Add common-exceptions.o.
977 (common-exceptions.o): New rule.
978 * exceptions.h (common-exceptions.h): Include.
979 (gdb_setjmp.h): Do not include.
980 (return_reason): Moved to common-exceptions.h.
981 (enum return_reason): Likewise.
982 (RETURN_MASK): Likewise.
983 (typedef return_mask): Likewise.
984 (enum errors): Likewise.
985 (struct gdb_exception): Likewise.
986 (exceptions_state_mc_init): Likewise.
987 (exceptions_state_mc_action_iter): Likewise.
988 (exceptions_state_mc_action_iter_1): Likewise.
989 (TRY_CATCH): Likewise.
990 (throw_exception): Likewise.
991 (throw_verror): Likewise.
992 (throw_vquit): Likewise.
993 (throw_error): Likewise.
994 (throw_quit): Likewise.
995 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
996 (enum catcher_action): Likewise.
997 (struct catcher): Likewise.
998 (current_catcher): Likewise.
999 (catcher_list_size): Likewise.
1000 (exceptions_state_mc_init): Likewise.
1001 (catcher_pop): Likewise.
1002 (exceptions_state_mc): Likewise.
1003 (exceptions_state_mc_action_iter): Likewise.
1004 (exceptions_state_mc_action_iter_1): Likewise.
1005 (throw_exception): Likewise.
1006 (exception_messages): Likewise.
1007 (exception_messages_size): Likewise.
1008 (throw_it): Likewise.
1009 (throw_verror): Likewise.
1010 (throw_vquit): Likewise.
1011 (throw_error): Likewise.
1012 (throw_quit): Likewise.
1013 (prepare_to_throw_exception): New function.
1015 2014-08-29 Gary Benson <gbenson@redhat.com>
1017 * common/gdb_setjmp.h: New file.
1018 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1019 * configure.ac: Move sigsetjmp check...
1020 * common/common.m4: ...here.
1021 * configure: Regenerate.
1022 * cp-support.c (SIGJMP_BUF): Delete.
1023 (SIGSETJMP): Likewise.
1024 (SIGLONGJMP): Likewise.
1025 * exceptions.h (gdb_setjmp.h): Include.
1026 (setjmp.h): Do not include.
1027 (EXCEPTIONS_SIGJMP_BUF): Delete.
1028 (EXCEPTIONS_SIGSETJMP): Likewise.
1029 (EXCEPTIONS_SIGLONGJMP): Likewise.
1030 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1032 * exceptions.c: Likewise.
1034 2014-08-29 Gary Benson <gbenson@redhat.com>
1036 * cleanups.h: Moved to...
1037 * common/cleanups.h: New file.
1038 * cleanups.c: Moved to...
1039 * common/cleanups.c: New file. Include common-defs.h and
1040 cleanups.h. Do not include defs.h.
1041 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1042 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1043 (cleanups.o): New rule.
1045 2014-08-29 Gary Benson <gbenson@redhat.com>
1047 * common/errors.h (internal_warning): New declaration.
1048 (internal_vwarning): Likewise.
1049 * common/errors.c (internal_warning): New function.
1050 * utils.h (internal_warning): Don't declare.
1051 (internal_vwarning): Likewise.
1052 * utils.c (internal_warning): Removed.
1054 2014-08-29 Gary Benson <gbenson@redhat.com>
1056 * main.c (captured_main): Use warning during startup.
1057 Prefix startup warning messages with command name.
1059 2014-08-29 Gary Benson <gbenson@redhat.com>
1061 * main.c (captured_main): Handle usage errors with error.
1063 2014-08-29 Gary Benson <gbenson@redhat.com>
1065 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1066 exit pair with a call to error. Wrap the message with _().
1068 2014-08-29 Gary Benson <gbenson@redhat.com>
1070 * main.c (captured_main): Replace a fprintf/exit
1071 pair with a call to error. Wrap the message with _().
1073 2014-08-29 Gary Benson <gbenson@redhat.com>
1075 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1076 pairs with calls to error. Wrap the message with _().
1078 2014-08-29 Gary Benson <gbenson@redhat.com>
1080 * utils.c (vwarning): Protect calls to target_terminal_ours
1083 2014-08-29 Gary Benson <gbenson@redhat.com>
1085 * exceptions.c (print_flush): Protect calls to
1086 target_terminal_ours and wrap_here.
1088 2014-08-29 Gary Benson <gbenson@redhat.com>
1090 * utils.h (filtered_printing_initialized): New declaration.
1091 * utils.c (abort_with_message): New function.
1092 (internal_vproblem): Use abort_with_message for first level
1093 recursive internal problems, and if gdb_stderr is not set up.
1094 Protect calls to target_terminal_ours, begin_line and query.
1096 2014-08-28 Doug Evans <dje@google.com>
1098 * symtab.c (in_prologue): Move definition to better spot.
1099 (skip_prologue_using_sal): Ditto.
1101 2014-08-28 Doug Evans <dje@google.com>
1103 * symtab.c (find_function_start_sal): Move definition to better spot.
1105 2014-08-28 Yao Qi <yao@codesourcery.com>
1107 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1108 found_stack_adjust in forward scan. Remove condition check
1109 on found_stack_adjust which is always true. Indent the code.
1111 2014-08-28 Yao Qi <yao@codesourcery.com>
1113 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1114 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1115 (dwarf_decode_lines): Remove argument
1116 want_line_info. Remove condition check on want_line_info.
1119 2014-08-27 Doug Evans <dje@google.com>
1121 * dwarf2read.c (dwarf_record_line): Fix typo.
1123 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1125 * target.h (struct target_ops::to_terminal_save_ours): Remove
1127 (target_terminal_save_ours): Remove macro.
1128 * target-delegates.c: Regenerate.
1129 * inf-child.c (inf_child_target): Don't set the nonexistent
1130 field to_terminal_save_ours.
1131 * inferior.h (child_terminal_save_ours): Remove declaration.
1132 * terminal.h (gdb_save_tty_state): New declaration.
1133 * inflow.c (child_terminal_save_ours): Rename to ...
1134 (gdb_save_tty_state): ... this.
1135 * tui/tui.c: Include terminal.h.
1136 (tui_enable): Use gdb_save_tty_state instead of
1137 target_terminal_save_ours.
1138 (tui_disable): Likewise.
1140 2014-08-25 Doug Evans <dje@google.com>
1142 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1143 Pass NULL instead of 0 for context pointer.
1145 2014-08-25 Yao Qi <yao@codesourcery.com>
1147 * dwarf2read.c: Fix grammatical error.
1149 2014-08-24 Yao Qi <yao@codesourcery.com>
1151 * dwarf2read.c (scan_partial_symbols): Update comments.
1152 Rename argument 'need_pc' with 'set_addrmap'.
1153 (add_partial_namespace): Rename argument 'need_pc' with
1155 (add_partial_module): Likewise.
1156 (add_partial_subprogram): Likewise. Update comments.
1157 (dwarf2_name): Fix typo.
1159 2014-08-22 Doug Evans <dje@google.com>
1162 * dwarf2read.c (dwarf_record_line_p): New function.
1163 (dwarf_decode_lines_1): Ignore subsequent line number entries
1164 for the same line if any entry had a non-zero discriminator.
1166 2014-08-22 Doug Evans <dje@google.com>
1168 * buildsym.h (record_line_ftype): New typedef.
1169 (record_line): Use it.
1170 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1171 (dwarf_decode_lines_1): Call them.
1173 2014-08-22 Yao Qi <yao@codesourcery.com>
1175 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1176 (ctf_end): Remove code.
1178 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1180 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1181 (linux_make_corefile_notes): call update_thread_list, protected against
1184 2014-08-21 Pedro Alves <palves@redhat.com>
1186 * infcmd.c (attach_command): Remove comment.
1188 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1190 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1191 unsigned LONGEST to ULONGEST.
1193 2014-08-20 Pedro Alves <palves@redhat.com>
1195 * Makefile.in (check-read1): New rule.
1197 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1199 * value.c (value_from_contents_and_address): Strip resolved_type's
1200 typedef layers before checking its TYPE_DATA_LOCATION.
1202 2014-08-20 Pedro Alves <palves@redhat.com>
1204 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1206 2014-08-20 Yao Qi <yao@codesourcery.com>
1208 * amd64-tdep.c (amd64_classify): Add a blank line after the
1209 example. Move "*/" to a new line.
1210 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1211 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1212 * dwarf2read.c (psymtab_include_file_name): Likewise.
1214 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1215 Pedro Alves <palves@redhat.com>
1219 * ada-lang.c (coerce_unspec_val_to_type): Use
1220 value_contents_copy_raw.
1221 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1222 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1223 * cp-valprint.c (cp_print_value_fields): Let the common printing
1224 code handle optimized out values.
1225 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1226 * d-valprint.c (dynamic_array_type): Use
1227 value_bits_any_optimized_out.
1228 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1229 check_any_valid fields.
1230 (check_pieced_value_bits): Delete and inline ...
1231 (check_pieced_synthetic_pointer): ... here.
1232 (check_pieced_value_validity): Delete.
1233 (check_pieced_value_invalid): Delete.
1234 (pieced_value_funcs): Remove check_validity and check_any_valid
1236 (read_pieced_value): Use mark_value_bits_optimized_out.
1237 (write_pieced_value): Switch to use
1238 mark_value_bytes_optimized_out.
1239 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1240 of assuming the whole value is optimized out.
1241 * findvar.c (read_frame_register_value): Remove special handling
1242 of optimized out registers.
1243 (value_from_register): Use mark_value_bytes_optimized_out.
1244 * frame-unwind.c (frame_unwind_got_optimized): Use
1245 mark_value_bytes_optimized_out.
1246 * jv-valprint.c (java_value_print): Adjust.
1247 (java_print_value_fields): Let the common printing code handle
1248 optimized out values.
1249 * mips-tdep.c (mips_print_register): Remove special handling of
1250 optimized out registers.
1251 * opencl-lang.c (lval_func_check_validity): Delete.
1252 (lval_func_check_any_valid): Delete.
1253 (opencl_value_funcs): Remove check_validity and check_any_valid
1255 * p-valprint.c (pascal_object_print_value_fields): Let the common
1256 printing code handle optimized out values.
1257 * stack.c (read_frame_arg): Remove special handling of optimized
1258 out values. Fetch both VAL and ENTRYVAL before comparing
1259 contents. Adjust to value_available_contents_eq rename.
1260 * valprint.c (valprint_check_validity)
1261 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1262 (val_print_array_elements): Adjust.
1263 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1264 (value_bits_any_optimized_out): New function.
1265 (value_entirely_covered_by_range_vector): New function, factored
1266 out from value_entirely_unavailable.
1267 (value_entirely_unavailable): Reimplement.
1268 (value_entirely_optimized_out): New function.
1269 (insert_into_bit_range_vector): New function, factored out from
1270 mark_value_bits_unavailable.
1271 (mark_value_bits_unavailable): Reimplement.
1272 (struct ranges_and_idx): New struct.
1273 (find_first_range_overlap_and_match): New function, factored out
1274 from value_available_contents_bits_eq.
1275 (value_available_contents_bits_eq): Rename to ...
1276 (value_contents_bits_eq): ... this. Check both unavailable
1277 contents and optimized out contents.
1278 (value_available_contents_eq): Rename to ...
1279 (value_contents_eq): ... this.
1280 (allocate_value_lazy): Remove reference to the old optimized_out
1282 (allocate_optimized_out_value): Use
1283 mark_value_bytes_optimized_out.
1284 (require_not_optimized_out): Adjust to check whether the
1285 optimized_out vec is empty.
1286 (ranges_copy_adjusted): New function, factored out from
1287 value_contents_copy_raw.
1288 (value_contents_copy_raw): Also copy the optimized out ranges.
1289 Assert the destination ranges aren't optimized out.
1290 (value_contents_copy): Update comment, remove call to
1291 require_not_optimized_out.
1292 (value_contents_equal): Adjust to check whether the optimized_out
1294 (set_value_optimized_out, value_optimized_out_const): Delete.
1295 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1297 (value_entirely_optimized_out, value_bits_valid): Delete.
1298 (value_copy): Take a VEC copy of the 'optimized_out' field.
1299 (value_primitive_field): Remove special handling of optimized out.
1300 (value_fetch_lazy): Assert that lazy values have no unavailable
1301 regions. Use value_bits_any_optimized_out. Remove some special
1302 handling for optimized out values.
1303 * value.h: Add intro comment about <optimized out> and
1305 (struct lval_funcs): Remove check_validity and check_any_valid
1307 (set_value_optimized_out, value_optimized_out_const): Remove.
1308 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1310 (value_bits_any_optimized_out): New declaration.
1311 (value_bits_valid): Delete declaration.
1312 (value_available_contents_eq): Rename to ...
1313 (value_contents_eq): ... this, and extend comments.
1315 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1317 Fix -fsanitize=address on unreadable inferior strings.
1318 * valprint.c (val_print_string): Fix access before BUFFER.
1320 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1322 * target.c (target_struct_size): Remove.
1323 (target_struct_allocsize): Remove.
1324 (DEFAULT_ALLOCSIZE): Remove.
1325 (target_ops_p): New typedef.
1326 (DEF_VEC_P (target_ops_p)): New vector type.
1327 (target_structs): Change type to VEC (target_ops_p).
1328 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1329 (find_default_run_target): Rewrite for loop following changes to
1332 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1334 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1335 Adjust code accordingly. Adjust function description comment.
1337 2014-08-19 Yao Qi <yao@codesourcery.com>
1339 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1342 2014-08-19 Alan Modra <amodra@gmail.com>
1344 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1345 * config.in: Regenerate.
1346 * configure: Regenerate.
1348 2014-08-19 Tom Tromey <tromey@redhat.com>
1349 Gary Benson <gbenson@redhat.com>
1351 * common/common-debug.h: New file.
1352 * common/common-debug.c: Likewise.
1353 * debug.c: Likewise.
1354 * Makefile.in (SFILES): Add common/common-debug.c.
1355 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1356 (COMMON_OBS): Add common-debug.o and debug.o.
1357 (common-debug.o): New rule.
1358 * common/common-defs.h: Include common-debug.h.
1359 * common/agent.c (debug_agent_printf): New function.
1360 (DEBUG_AGENT): Redefine.
1361 * nat/i386-dregs.c (debug_printf): Undefine.
1363 2014-08-19 Gary Benson <gbenson@redhat.com>
1365 * common/common-defs.h: Include print-utils.h.
1366 * utils.h: Do not include print-utils.h.
1368 2014-08-19 Tom Tromey <tromey@redhat.com>
1369 Gary Benson <gbenson@redhat.com>
1371 * common/common-types.h: New file.
1372 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1373 * common/common-defs.h: Include common-types.h.
1374 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1377 2014-08-19 Tom Tromey <tromey@redhat.com>
1378 Gary Benson <gbenson@redhat.com>
1380 * common/errors.h: New file.
1381 * common/errors.c: Likewise.
1382 * Makefile.in (SFILES): Add common/errors.c.
1383 (HFILES_NO_SRCDIR): Add common/errors.h.
1384 (COMMON_OBS): Add errors.o.
1385 (errors.o): New rule.
1386 * common/common-defs.h: Include errors.h.
1387 * utils.h (perror_with_name, error, verror, warning, vwarning):
1389 * common/common-utils.h: (malloc_failure, internal_error):
1392 2014-08-19 Gary Benson <gbenson@redhat.com>
1394 * utils.c (internal_vproblem): Always print the message.
1396 2014-08-18 Doug Evans <dje@google.com>
1398 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1400 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1402 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1403 Return 0 if TYPE is dynamic.
1404 (print_range): Add handling of dynamic ranges.
1406 2014-08-18 Keven Boell <keven.boell@intel.com>
1407 Joel Brobecker <brobecker@adacore.com>
1409 * gdbtypes.h (struct main_type): Add field "data_location".
1410 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1411 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1412 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1413 a dynamic data location.
1414 (resolve_dynamic_type): Add DW_AT_data_location handling.
1415 (copy_recursive, copy_type): Copy the data_location information
1417 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1418 * value.c (value_from_contents_and_address): Add
1419 DW_AT_data_location handling.
1421 2014-08-18 Keven Boell <keven.boell@intel.com>
1422 Joel Brobecker <brobecker@adacore.com>
1424 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1425 field "get_object_address".
1426 * dwarf2expr.c (execute_stack_op): Add handling for
1427 DW_OP_push_object_address.
1428 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1429 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1430 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1431 (dwarf_expr_get_obj_addr): New function.
1432 (dwarf_expr_ctx_funcs): Add get_object_address field.
1433 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1434 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1435 (dwarf2_evaluate_property): Add parameter "address". Use it.
1436 (needs_get_obj_addr): New function.
1437 (needs_frame_ctx_funcs): Add get_object_address field.
1438 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1439 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1440 (resolve_dynamic_array): Likewise.
1442 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1444 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1445 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1446 fixed value for records and unions for which some GNAT encodings
1449 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1451 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1452 rewrite to avoid "else if" and "else" constructs. Should be
1453 a no-op in practice.
1455 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1457 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1460 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1463 * eval.c: Update all calls to find_overload_match.
1464 * valarith.c: Likewise.
1465 (value_user_defined_cpp_op, value_user_defined_op): New
1466 argument NOSIDE. Update all callers.
1467 * valops.c (find_overload_match): New argument NOSIDE.
1468 * value.h (find_overload_match): Update signature.
1470 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1472 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1473 'items' methods instead of 'iteritems' method on dictionaries.
1475 2014-08-15 Doug Evans <dje@google.com>
1477 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1480 2014-08-15 Doug Evans <dje@google.com>
1482 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1484 2014-08-15 Doug Evans <dje@google.com>
1486 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1488 2014-08-15 Doug Evans <dje@google.com>
1490 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1493 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1495 * dcache.h: Include target.h, to avoid compile time warnings.
1497 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1499 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1500 frame_info" partial declaration.
1501 * gdbarch.h: Regenerate.
1503 2014-08-15 Yao Qi <yao@codesourcery.com>
1505 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1506 Add parameter 'decode_for_pst_p'. Callers update.
1508 2014-08-13 Yao Qi <yao@codesourcery.com>
1511 * configure.ac: Use local variable 'pos'.
1512 * configure: Regenerated.
1514 2014-08-11 Doug Evans <dje@google.com>
1516 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1517 message, it is redundant with "Reading symbols from ..." message.
1519 2014-08-10 Doug Evans <xdje42@gmail.com>
1521 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1523 2014-08-09 Yao Qi <yao@codesourcery.com>
1526 * remote.c (remote_xfer_partial): Remove dead code.
1528 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1530 * ia64-linux-tdep.c: Include "regset.h".
1531 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1532 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1533 (ia64_linux_supply_fpregset): New function.
1534 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1535 (ia64_linux_regset_from_core_section): New function.
1536 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1539 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1541 * m68klinux-tdep.c: Include "regset.h".
1542 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1543 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1544 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1545 (m68k_linux_regset_from_core_section): New function.
1546 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1549 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1551 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1552 function. Move logic to...
1553 (tilegx_linux_regmap): ... this new register map.
1554 (tilegx_linux_regset): Refer to register map, replace supply
1555 method by regcache_supply_regset, and add collect method.
1556 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1557 TILEGX_FIRST_EASY_REGNUM.
1559 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1561 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1562 that calls regcache_supply_regset and handles the EPC register
1563 separately. Move main logic to...
1564 (score7_linux_gregmap): ... this new register map.
1565 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1566 (score7_linux_gregset): Refer to register map. Add collect method.
1567 (score7_linux_regset_from_core_section): Replace
1568 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1569 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1570 (struct regset): Delete unused forward declaraction.
1571 (struct pt_regs): Delete structure definition.
1572 (elf_gregset_t): Delete typedef.
1574 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1576 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1577 (nios2_core_regset): Add collect method.
1579 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1581 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1582 platform-independent and don't write to read-only input buffer.
1583 (m32r_linux_collect_gregset): New function.
1584 (m32r_linux_gregset): Add collect method.
1586 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1588 * hppa-linux-tdep.c (greg_map): Rename to...
1589 (hppa_linux_gregmap): ... this. Also convert to
1590 regcache_map_entry format.
1591 (hppa_linux_supply_regset): Delete function.
1592 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1593 (hppa_linux_fpregmap): ... this new register map.
1594 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1595 register map, replace supply method by regcache_supply_regset, and
1596 add collect method regcache_collect_regset.
1598 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1600 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1601 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1602 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1603 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1604 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1605 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1606 (frv_linux_supply_gregset): Replace main logic by call to
1607 regcache_supply_regset, but keep clearing gr32-gr63.
1608 (frv_linux_supply_fpregset): Delete function.
1609 (frv_linux_gregset): Refer to appropriate register map and add
1610 regcache_collect_regset as the collect method.
1611 (frv_linux_fpregset): Likewise. Also exchange the supply method
1612 by regcache_supply_regset.
1614 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1616 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1617 by call to alpha_supply_int_regs.
1618 (alpha_linux_collect_gregset): New function.
1619 (alpha_linux_supply_fpregset): Replace logic by call to
1620 alpha_supply_fp_regs.
1621 (alpha_linux_collect_fpregset): New function.
1622 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1624 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1626 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1627 by call to regcache_collect_regset.
1628 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1629 instead of aarch64_linux_supply_gregset/_fpregset.
1630 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1631 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1632 header file instead.
1633 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1634 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1635 functions. Move logic to ...
1636 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1638 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1639 refer to new register maps, replace *_regset_from_core by
1640 regcache_supply_regset, and also use regcache_collect_regset.
1641 * aarch64-linux-tdep.h: Include "regset.h".
1642 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1644 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1645 macros, moved from C source file.
1646 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1647 variable declarations.
1649 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1651 * s390-linux-nat.c: Include "regset.h".
1652 (regmap_gregset): Delete macro.
1653 (s390_64_regmap_gregset): New register map for
1654 regcache_supply/_collect_regset.
1655 (s390_64_gregset): New regset.
1656 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1657 (regmap_fpregset): Delete macro.
1658 (s390_native_supply, s390_native_collect): Delete functions.
1659 (supply_gregset, fill_gregset): Replace s390-specific regmap
1660 handling by a call to regcache_supply/_collect_regset.
1661 (supply_fpregset, fill_fpregset): Call regcache_supply/
1662 _collect_regset instead of s390_native_supply/_collect.
1663 (fetch_regset, store_regset): Likewise. Also change the last
1664 parameter to a regset instead of a regmap.
1665 (s390_linux_fetch_inferior_registers)
1666 (390_linux_store_inferior_registers): Adjust last parameter in
1667 calls to fetch_regset and store_regset.
1668 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1669 (s390_gregmap): ... this. Also make static const and convert to
1670 regcache_map_entry format.
1671 (s390x_regmap_gregset): Delete.
1672 (s390_regmap_fpregset): Rename to...
1673 (s390_fpregmap): ... this. Make static const and convert to
1674 regcache_map_entry format.
1675 (s390_regmap_upper, s390_regmap_last_break)
1676 (s390x_regmap_last_break, s390_regmap_system_call)
1677 (s390_regmap_tdb): Likewise.
1678 (s390_supply_regset, s390_collect_regset): Remove functions.
1679 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1681 (s390_gregset, s390_fpregset, s390_upper_regset)
1682 (s390_last_break_regset, s390x_last_break_regset)
1683 (s390_system_call_regset, s390_tdb_regset): Make global and
1684 replace s390_supply/_collect_regset by regcache_supply/
1686 (s390x_gregset): Delete.
1687 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1688 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1689 (s390_regmap_fpregset, s390_regmap_last_break)
1690 (s390x_regmap_last_break, s390_regmap_system_call)
1691 (s390_regmap_tdb): Delete global variable declarations.
1692 (s390_gregset, s390_fpregset, s390_last_break_regset)
1693 (s390x_last_break_regset, s390_system_call_regset)
1694 (s390_tdb_regset): New global variable declarations.
1696 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1698 * regcache.c: Include "regset.h".
1699 (regcache_transfer_regset): New local function.
1700 (regcache_supply_regset, regcache_collect_regset): New functions.
1701 * regcache.h (struct regcache_map_entry): New structure.
1702 (REGCACHE_MAP_SKIP): New enum value.
1703 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1705 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1707 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1708 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1709 (ppc_linux_collect_gregset ): Likewise.
1710 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1711 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1712 (ppc_collect_vrregset): Likewise.
1713 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1716 2014-08-07 Yao Qi <yao@codesourcery.com>
1718 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1719 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1720 * remote.c (remote_read_bytes): Likewise.
1722 2014-08-07 Yao Qi <yao@codesourcery.com>
1724 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1726 2014-08-07 Yao Qi <yao@codesourcery.com>
1729 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1730 TARGET_XFER_OK instead of 0.
1732 2014-08-07 Gary Benson <gbenson@redhat.com>
1734 * common/common-defs.h: Include errno.h.
1735 * defs.h: Do not include errno.h.
1736 * ada-typeprint.c: Likewise.
1737 * c-typeprint.c: Likewise.
1738 * core-regset.c: Likewise.
1739 * corefile.c: Likewise.
1740 * corelow.c: Likewise.
1741 * event-loop.c: Likewise.
1742 * f-typeprint.c: Likewise.
1743 * gnu-nat.c: Likewise.
1744 * go32-nat.c: Likewise.
1745 * i386gnu-nat.c: Likewise.
1746 * m2-typeprint.c: Likewise.
1747 * nat/linux-btrace.c: Likewise.
1748 * p-typeprint.c: Likewise.
1749 * procfs.c: Likewise.
1750 * remote-sim.c: Likewise.
1751 * rs6000-nat.c: Likewise.
1752 * target.c: Likewise.
1753 * typeprint.c: Likewise.
1754 * ui-file.c: Likewise.
1755 * valops.c: Likewise.
1756 * valprint.c: Likewise.
1758 2014-08-07 Gary Benson <gbenson@redhat.com>
1760 * common/common-defs.h: Include string.h.
1761 * aarch64-tdep.c: Do not include string.h.
1762 * ada-exp.y: Likewise.
1763 * ada-lang.c: Likewise.
1764 * ada-lex.l: Likewise.
1765 * ada-typeprint.c: Likewise.
1766 * ada-valprint.c: Likewise.
1767 * aix-thread.c: Likewise.
1768 * alpha-linux-tdep.c: Likewise.
1769 * alpha-mdebug-tdep.c: Likewise.
1770 * alpha-nat.c: Likewise.
1771 * alpha-osf1-tdep.c: Likewise.
1772 * alpha-tdep.c: Likewise.
1773 * alphanbsd-tdep.c: Likewise.
1774 * amd64-dicos-tdep.c: Likewise.
1775 * amd64-linux-tdep.c: Likewise.
1776 * amd64-nat.c: Likewise.
1777 * amd64-sol2-tdep.c: Likewise.
1778 * amd64fbsd-tdep.c: Likewise.
1779 * amd64obsd-tdep.c: Likewise.
1780 * arch-utils.c: Likewise.
1781 * arm-linux-nat.c: Likewise.
1782 * arm-linux-tdep.c: Likewise.
1783 * arm-tdep.c: Likewise.
1784 * arm-wince-tdep.c: Likewise.
1785 * armbsd-tdep.c: Likewise.
1786 * armnbsd-nat.c: Likewise.
1787 * armnbsd-tdep.c: Likewise.
1788 * armobsd-tdep.c: Likewise.
1789 * avr-tdep.c: Likewise.
1790 * ax-gdb.c: Likewise.
1791 * ax-general.c: Likewise.
1792 * bcache.c: Likewise.
1793 * bfin-tdep.c: Likewise.
1794 * breakpoint.c: Likewise.
1795 * build-id.c: Likewise.
1796 * buildsym.c: Likewise.
1797 * c-exp.y: Likewise.
1798 * c-lang.c: Likewise.
1799 * c-typeprint.c: Likewise.
1800 * c-valprint.c: Likewise.
1801 * charset.c: Likewise.
1802 * cli-out.c: Likewise.
1803 * cli/cli-cmds.c: Likewise.
1804 * cli/cli-decode.c: Likewise.
1805 * cli/cli-dump.c: Likewise.
1806 * cli/cli-interp.c: Likewise.
1807 * cli/cli-logging.c: Likewise.
1808 * cli/cli-script.c: Likewise.
1809 * cli/cli-setshow.c: Likewise.
1810 * cli/cli-utils.c: Likewise.
1811 * coffread.c: Likewise.
1812 * common/agent.c: Likewise.
1813 * common/buffer.c: Likewise.
1814 * common/buffer.h: Likewise.
1815 * common/common-utils.c: Likewise.
1816 * common/filestuff.c: Likewise.
1817 * common/filestuff.c: Likewise.
1818 * common/format.c: Likewise.
1819 * common/print-utils.c: Likewise.
1820 * common/rsp-low.c: Likewise.
1821 * common/signals.c: Likewise.
1822 * common/vec.h: Likewise.
1823 * common/xml-utils.c: Likewise.
1824 * core-regset.c: Likewise.
1825 * corefile.c: Likewise.
1826 * corelow.c: Likewise.
1827 * cp-abi.c: Likewise.
1828 * cp-name-parser.y: Likewise.
1829 * cp-support.c: Likewise.
1830 * cp-valprint.c: Likewise.
1831 * cris-tdep.c: Likewise.
1832 * d-exp.y: Likewise.
1833 * darwin-nat.c: Likewise.
1834 * dbxread.c: Likewise.
1835 * dcache.c: Likewise.
1836 * demangle.c: Likewise.
1837 * dicos-tdep.c: Likewise.
1838 * disasm.c: Likewise.
1839 * doublest.c: Likewise.
1840 * dsrec.c: Likewise.
1841 * dummy-frame.c: Likewise.
1842 * dwarf2-frame.c: Likewise.
1843 * dwarf2loc.c: Likewise.
1844 * dwarf2read.c: Likewise.
1845 * elfread.c: Likewise.
1846 * environ.c: Likewise.
1848 * event-loop.c: Likewise.
1849 * exceptions.c: Likewise.
1851 * expprint.c: Likewise.
1852 * f-exp.y: Likewise.
1853 * f-lang.c: Likewise.
1854 * f-typeprint.c: Likewise.
1855 * f-valprint.c: Likewise.
1856 * fbsd-nat.c: Likewise.
1857 * findcmd.c: Likewise.
1858 * findvar.c: Likewise.
1859 * fork-child.c: Likewise.
1860 * frame.c: Likewise.
1861 * frv-linux-tdep.c: Likewise.
1862 * frv-tdep.c: Likewise.
1864 * gdb_bfd.c: Likewise.
1865 * gdbarch.c: Likewise.
1866 * gdbarch.sh: Likewise.
1867 * gdbtypes.c: Likewise.
1868 * gnu-nat.c: Likewise.
1869 * gnu-v2-abi.c: Likewise.
1870 * gnu-v3-abi.c: Likewise.
1871 * go-exp.y: Likewise.
1872 * go-lang.c: Likewise.
1873 * go32-nat.c: Likewise.
1874 * guile/guile.c: Likewise.
1875 * guile/scm-auto-load.c: Likewise.
1876 * hppa-hpux-tdep.c: Likewise.
1877 * hppa-linux-nat.c: Likewise.
1878 * hppanbsd-tdep.c: Likewise.
1879 * hppaobsd-tdep.c: Likewise.
1880 * i386-cygwin-tdep.c: Likewise.
1881 * i386-dicos-tdep.c: Likewise.
1882 * i386-linux-tdep.c: Likewise.
1883 * i386-nto-tdep.c: Likewise.
1884 * i386-sol2-tdep.c: Likewise.
1885 * i386-tdep.c: Likewise.
1886 * i386bsd-tdep.c: Likewise.
1887 * i386gnu-nat.c: Likewise.
1888 * i386nbsd-tdep.c: Likewise.
1889 * i386obsd-tdep.c: Likewise.
1890 * i387-tdep.c: Likewise.
1891 * ia64-libunwind-tdep.c: Likewise.
1892 * ia64-linux-nat.c: Likewise.
1893 * inf-child.c: Likewise.
1894 * inf-ptrace.c: Likewise.
1895 * inf-ttrace.c: Likewise.
1896 * infcall.c: Likewise.
1897 * infcmd.c: Likewise.
1898 * inflow.c: Likewise.
1899 * infrun.c: Likewise.
1900 * interps.c: Likewise.
1901 * iq2000-tdep.c: Likewise.
1902 * irix5-nat.c: Likewise.
1903 * jv-exp.y: Likewise.
1904 * jv-lang.c: Likewise.
1905 * jv-typeprint.c: Likewise.
1906 * jv-valprint.c: Likewise.
1907 * language.c: Likewise.
1908 * linux-fork.c: Likewise.
1909 * linux-nat.c: Likewise.
1910 * lm32-tdep.c: Likewise.
1911 * m2-exp.y: Likewise.
1912 * m2-typeprint.c: Likewise.
1913 * m32c-tdep.c: Likewise.
1914 * m32r-linux-nat.c: Likewise.
1915 * m32r-linux-tdep.c: Likewise.
1916 * m32r-rom.c: Likewise.
1917 * m32r-tdep.c: Likewise.
1918 * m68hc11-tdep.c: Likewise.
1919 * m68k-tdep.c: Likewise.
1920 * m68kbsd-tdep.c: Likewise.
1921 * m68klinux-nat.c: Likewise.
1922 * m68klinux-tdep.c: Likewise.
1923 * m88k-tdep.c: Likewise.
1924 * machoread.c: Likewise.
1925 * macrocmd.c: Likewise.
1927 * mdebugread.c: Likewise.
1928 * mem-break.c: Likewise.
1929 * memattr.c: Likewise.
1930 * memory-map.c: Likewise.
1931 * mep-tdep.c: Likewise.
1932 * mi/mi-cmd-break.c: Likewise.
1933 * mi/mi-cmd-disas.c: Likewise.
1934 * mi/mi-cmd-env.c: Likewise.
1935 * mi/mi-cmd-stack.c: Likewise.
1936 * mi/mi-cmd-var.c: Likewise.
1937 * mi/mi-cmds.c: Likewise.
1938 * mi/mi-console.c: Likewise.
1939 * mi/mi-getopt.c: Likewise.
1940 * mi/mi-interp.c: Likewise.
1941 * mi/mi-main.c: Likewise.
1942 * mi/mi-parse.c: Likewise.
1943 * microblaze-rom.c: Likewise.
1944 * microblaze-tdep.c: Likewise.
1945 * mingw-hdep.c: Likewise.
1946 * minidebug.c: Likewise.
1947 * minsyms.c: Likewise.
1948 * mips-irix-tdep.c: Likewise.
1949 * mips-linux-tdep.c: Likewise.
1950 * mips-tdep.c: Likewise.
1951 * mips64obsd-tdep.c: Likewise.
1952 * mipsnbsd-tdep.c: Likewise.
1953 * mipsread.c: Likewise.
1954 * mn10300-linux-tdep.c: Likewise.
1955 * mn10300-tdep.c: Likewise.
1956 * monitor.c: Likewise.
1957 * moxie-tdep.c: Likewise.
1958 * mt-tdep.c: Likewise.
1959 * nat/linux-btrace.c: Likewise.
1960 * nat/linux-osdata.c: Likewise.
1961 * nat/linux-procfs.c: Likewise.
1962 * nat/linux-ptrace.c: Likewise.
1963 * nat/linux-waitpid.c: Likewise.
1964 * nbsd-tdep.c: Likewise.
1965 * nios2-linux-tdep.c: Likewise.
1966 * nto-procfs.c: Likewise.
1967 * nto-tdep.c: Likewise.
1968 * objc-lang.c: Likewise.
1969 * objfiles.c: Likewise.
1970 * opencl-lang.c: Likewise.
1971 * osabi.c: Likewise.
1972 * osdata.c: Likewise.
1973 * p-exp.y: Likewise.
1974 * p-lang.c: Likewise.
1975 * p-typeprint.c: Likewise.
1976 * parse.c: Likewise.
1977 * posix-hdep.c: Likewise.
1978 * ppc-linux-nat.c: Likewise.
1979 * ppc-sysv-tdep.c: Likewise.
1980 * ppcfbsd-tdep.c: Likewise.
1981 * ppcnbsd-tdep.c: Likewise.
1982 * ppcobsd-tdep.c: Likewise.
1983 * printcmd.c: Likewise.
1984 * procfs.c: Likewise.
1985 * prologue-value.c: Likewise.
1986 * python/py-auto-load.c: Likewise.
1987 * python/py-gdb-readline.c: Likewise.
1988 * ravenscar-thread.c: Likewise.
1989 * regcache.c: Likewise.
1990 * registry.c: Likewise.
1991 * remote-fileio.c: Likewise.
1992 * remote-m32r-sdi.c: Likewise.
1993 * remote-mips.c: Likewise.
1994 * remote-notif.c: Likewise.
1995 * remote-sim.c: Likewise.
1996 * remote.c: Likewise.
1997 * reverse.c: Likewise.
1998 * rs6000-aix-tdep.c: Likewise.
1999 * ser-base.c: Likewise.
2000 * ser-go32.c: Likewise.
2001 * ser-mingw.c: Likewise.
2002 * ser-pipe.c: Likewise.
2003 * ser-tcp.c: Likewise.
2004 * ser-unix.c: Likewise.
2005 * serial.c: Likewise.
2006 * sh-tdep.c: Likewise.
2007 * sh64-tdep.c: Likewise.
2008 * shnbsd-tdep.c: Likewise.
2010 * sol-thread.c: Likewise.
2011 * solib-dsbt.c: Likewise.
2012 * solib-frv.c: Likewise.
2013 * solib-osf.c: Likewise.
2014 * solib-som.c: Likewise.
2015 * solib-spu.c: Likewise.
2016 * solib-target.c: Likewise.
2017 * solib.c: Likewise.
2018 * somread.c: Likewise.
2019 * source.c: Likewise.
2020 * sparc-nat.c: Likewise.
2021 * sparc-sol2-tdep.c: Likewise.
2022 * sparc-tdep.c: Likewise.
2023 * sparc64-tdep.c: Likewise.
2024 * sparc64fbsd-tdep.c: Likewise.
2025 * sparc64nbsd-tdep.c: Likewise.
2026 * sparcnbsd-tdep.c: Likewise.
2027 * spu-linux-nat.c: Likewise.
2028 * spu-multiarch.c: Likewise.
2029 * spu-tdep.c: Likewise.
2030 * stabsread.c: Likewise.
2031 * stack.c: Likewise.
2032 * std-regs.c: Likewise.
2033 * symfile.c: Likewise.
2034 * symmisc.c: Likewise.
2035 * symtab.c: Likewise.
2036 * target.c: Likewise.
2037 * thread.c: Likewise.
2038 * tilegx-linux-nat.c: Likewise.
2039 * tilegx-tdep.c: Likewise.
2041 * tracepoint.c: Likewise.
2042 * tui/tui-command.c: Likewise.
2043 * tui/tui-data.c: Likewise.
2044 * tui/tui-disasm.c: Likewise.
2045 * tui/tui-file.c: Likewise.
2046 * tui/tui-layout.c: Likewise.
2047 * tui/tui-out.c: Likewise.
2048 * tui/tui-regs.c: Likewise.
2049 * tui/tui-source.c: Likewise.
2050 * tui/tui-stack.c: Likewise.
2051 * tui/tui-win.c: Likewise.
2052 * tui/tui-windata.c: Likewise.
2053 * tui/tui-winsource.c: Likewise.
2054 * typeprint.c: Likewise.
2055 * ui-file.c: Likewise.
2056 * ui-out.c: Likewise.
2057 * user-regs.c: Likewise.
2058 * utils.c: Likewise.
2059 * v850-tdep.c: Likewise.
2060 * valarith.c: Likewise.
2061 * valops.c: Likewise.
2062 * valprint.c: Likewise.
2063 * value.c: Likewise.
2064 * varobj.c: Likewise.
2065 * vax-tdep.c: Likewise.
2066 * vaxnbsd-tdep.c: Likewise.
2067 * vaxobsd-tdep.c: Likewise.
2068 * windows-nat.c: Likewise.
2069 * xcoffread.c: Likewise.
2070 * xml-support.c: Likewise.
2071 * xstormy16-tdep.c: Likewise.
2072 * xtensa-linux-nat.c: Likewise.
2074 2014-08-07 Gary Benson <gbenson@redhat.com>
2076 * common/common-defs.h: Include gdb_assert.h.
2077 * aarch64-tdep.c: Do not include gdb_assert.h.
2078 * addrmap.c: Likewise.
2079 * aix-thread.c: Likewise.
2080 * alpha-linux-tdep.c: Likewise.
2081 * alpha-mdebug-tdep.c: Likewise.
2082 * alphanbsd-tdep.c: Likewise.
2083 * amd64-nat.c: Likewise.
2084 * amd64-tdep.c: Likewise.
2085 * amd64bsd-nat.c: Likewise.
2086 * amd64fbsd-nat.c: Likewise.
2087 * amd64fbsd-tdep.c: Likewise.
2088 * amd64nbsd-nat.c: Likewise.
2089 * amd64nbsd-tdep.c: Likewise.
2090 * amd64obsd-nat.c: Likewise.
2091 * amd64obsd-tdep.c: Likewise.
2092 * arch-utils.c: Likewise.
2093 * arm-tdep.c: Likewise.
2094 * armbsd-tdep.c: Likewise.
2096 * bcache.c: Likewise.
2097 * bfin-tdep.c: Likewise.
2098 * blockframe.c: Likewise.
2099 * breakpoint.c: Likewise.
2100 * bsd-kvm.c: Likewise.
2101 * bsd-uthread.c: Likewise.
2102 * buildsym.c: Likewise.
2103 * c-exp.y: Likewise.
2104 * c-lang.c: Likewise.
2105 * charset.c: Likewise.
2106 * cleanups.c: Likewise.
2107 * cli-out.c: Likewise.
2108 * cli/cli-decode.c: Likewise.
2109 * cli/cli-dump.c: Likewise.
2110 * cli/cli-logging.c: Likewise.
2111 * cli/cli-script.c: Likewise.
2112 * cli/cli-utils.c: Likewise.
2113 * coffread.c: Likewise.
2114 * common/common-utils.c: Likewise.
2115 * common/queue.h: Likewise.
2116 * common/signals.c: Likewise.
2117 * common/vec.h: Likewise.
2118 * complaints.c: Likewise.
2119 * completer.c: Likewise.
2120 * corelow.c: Likewise.
2121 * cp-abi.c: Likewise.
2122 * cp-name-parser.y: Likewise.
2123 * cp-namespace.c: Likewise.
2124 * cp-support.c: Likewise.
2125 * cris-tdep.c: Likewise.
2126 * dbxread.c: Likewise.
2127 * dictionary.c: Likewise.
2128 * doublest.c: Likewise.
2129 * dsrec.c: Likewise.
2130 * dummy-frame.c: Likewise.
2131 * dwarf2-frame-tailcall.c: Likewise.
2132 * dwarf2-frame.c: Likewise.
2133 * dwarf2expr.c: Likewise.
2134 * dwarf2loc.c: Likewise.
2135 * dwarf2read.c: Likewise.
2137 * event-loop.c: Likewise.
2138 * exceptions.c: Likewise.
2139 * expprint.c: Likewise.
2140 * f-valprint.c: Likewise.
2141 * fbsd-nat.c: Likewise.
2142 * findvar.c: Likewise.
2143 * frame-unwind.c: Likewise.
2144 * frame.c: Likewise.
2145 * frv-tdep.c: Likewise.
2146 * gcore.c: Likewise.
2147 * gdb-dlfcn.c: Likewise.
2148 * gdb_bfd.c: Likewise.
2149 * gdbarch.c: Likewise.
2150 * gdbarch.sh: Likewise.
2151 * gdbtypes.c: Likewise.
2152 * gnu-nat.c: Likewise.
2153 * gnu-v3-abi.c: Likewise.
2154 * go-lang.c: Likewise.
2155 * guile/scm-exception.c: Likewise.
2156 * guile/scm-gsmob.c: Likewise.
2157 * guile/scm-lazy-string.c: Likewise.
2158 * guile/scm-math.c: Likewise.
2159 * guile/scm-pretty-print.c: Likewise.
2160 * guile/scm-safe-call.c: Likewise.
2161 * guile/scm-utils.c: Likewise.
2162 * guile/scm-value.c: Likewise.
2163 * h8300-tdep.c: Likewise.
2164 * hppa-hpux-nat.c: Likewise.
2165 * hppa-tdep.c: Likewise.
2166 * hppanbsd-tdep.c: Likewise.
2167 * hppaobsd-tdep.c: Likewise.
2168 * i386-darwin-nat.c: Likewise.
2169 * i386-darwin-tdep.c: Likewise.
2170 * i386-nto-tdep.c: Likewise.
2171 * i386-tdep.c: Likewise.
2172 * i386bsd-nat.c: Likewise.
2173 * i386fbsd-tdep.c: Likewise.
2174 * i386gnu-nat.c: Likewise.
2175 * i386nbsd-tdep.c: Likewise.
2176 * i386obsd-tdep.c: Likewise.
2177 * i387-tdep.c: Likewise.
2178 * ia64-libunwind-tdep.c: Likewise.
2179 * ia64-tdep.c: Likewise.
2180 * inf-ptrace.c: Likewise.
2181 * inf-ttrace.c: Likewise.
2182 * infcall.c: Likewise.
2183 * infcmd.c: Likewise.
2184 * infrun.c: Likewise.
2185 * inline-frame.c: Likewise.
2186 * interps.c: Likewise.
2187 * jv-lang.c: Likewise.
2188 * jv-typeprint.c: Likewise.
2189 * linux-fork.c: Likewise.
2190 * linux-nat.c: Likewise.
2191 * linux-thread-db.c: Likewise.
2192 * m32c-tdep.c: Likewise.
2193 * m32r-linux-nat.c: Likewise.
2194 * m32r-tdep.c: Likewise.
2195 * m68k-tdep.c: Likewise.
2196 * m68kbsd-nat.c: Likewise.
2197 * m68kbsd-tdep.c: Likewise.
2198 * m88k-tdep.c: Likewise.
2199 * machoread.c: Likewise.
2200 * macroexp.c: Likewise.
2201 * macrotab.c: Likewise.
2202 * maint.c: Likewise.
2203 * mdebugread.c: Likewise.
2204 * memory-map.c: Likewise.
2205 * mep-tdep.c: Likewise.
2206 * mi/mi-common.c: Likewise.
2207 * microblaze-tdep.c: Likewise.
2208 * mingw-hdep.c: Likewise.
2209 * mips-linux-nat.c: Likewise.
2210 * mips-linux-tdep.c: Likewise.
2211 * mips-tdep.c: Likewise.
2212 * mips64obsd-tdep.c: Likewise.
2213 * mipsnbsd-tdep.c: Likewise.
2214 * mn10300-linux-tdep.c: Likewise.
2215 * mn10300-tdep.c: Likewise.
2216 * moxie-tdep.c: Likewise.
2217 * mt-tdep.c: Likewise.
2218 * nat/linux-btrace.c: Likewise.
2219 * nat/linux-osdata.c: Likewise.
2220 * nat/linux-ptrace.c: Likewise.
2221 * nat/mips-linux-watch.c: Likewise.
2222 * nios2-linux-tdep.c: Likewise.
2223 * nios2-tdep.c: Likewise.
2224 * objc-lang.c: Likewise.
2225 * objfiles.c: Likewise.
2226 * obsd-nat.c: Likewise.
2227 * opencl-lang.c: Likewise.
2228 * osabi.c: Likewise.
2229 * parse.c: Likewise.
2230 * ppc-linux-nat.c: Likewise.
2231 * ppc-sysv-tdep.c: Likewise.
2232 * ppcfbsd-nat.c: Likewise.
2233 * ppcfbsd-tdep.c: Likewise.
2234 * ppcnbsd-nat.c: Likewise.
2235 * ppcnbsd-tdep.c: Likewise.
2236 * ppcobsd-nat.c: Likewise.
2237 * ppcobsd-tdep.c: Likewise.
2238 * printcmd.c: Likewise.
2239 * procfs.c: Likewise.
2240 * prologue-value.c: Likewise.
2241 * psymtab.c: Likewise.
2242 * python/py-lazy-string.c: Likewise.
2243 * python/py-value.c: Likewise.
2244 * regcache.c: Likewise.
2245 * reggroups.c: Likewise.
2246 * registry.c: Likewise.
2247 * remote-sim.c: Likewise.
2248 * remote.c: Likewise.
2249 * rs6000-aix-tdep.c: Likewise.
2250 * rs6000-tdep.c: Likewise.
2251 * s390-linux-tdep.c: Likewise.
2252 * score-tdep.c: Likewise.
2253 * ser-base.c: Likewise.
2254 * ser-mingw.c: Likewise.
2255 * sh-tdep.c: Likewise.
2256 * sh64-tdep.c: Likewise.
2257 * solib-darwin.c: Likewise.
2258 * solib-spu.c: Likewise.
2259 * solib-svr4.c: Likewise.
2260 * source.c: Likewise.
2261 * sparc-nat.c: Likewise.
2262 * sparc-sol2-tdep.c: Likewise.
2263 * sparc-tdep.c: Likewise.
2264 * sparc64-sol2-tdep.c: Likewise.
2265 * sparc64-tdep.c: Likewise.
2266 * sparc64fbsd-tdep.c: Likewise.
2267 * sparc64nbsd-tdep.c: Likewise.
2268 * sparc64obsd-tdep.c: Likewise.
2269 * sparcnbsd-tdep.c: Likewise.
2270 * sparcobsd-tdep.c: Likewise.
2271 * spu-multiarch.c: Likewise.
2272 * spu-tdep.c: Likewise.
2273 * stabsread.c: Likewise.
2274 * stack.c: Likewise.
2275 * symfile.c: Likewise.
2276 * symtab.c: Likewise.
2277 * target-descriptions.c: Likewise.
2278 * target-memory.c: Likewise.
2279 * target.c: Likewise.
2280 * tic6x-linux-tdep.c: Likewise.
2281 * tic6x-tdep.c: Likewise.
2282 * tilegx-linux-nat.c: Likewise.
2283 * tilegx-tdep.c: Likewise.
2285 * tramp-frame.c: Likewise.
2286 * tui/tui-out.c: Likewise.
2287 * tui/tui-winsource.c: Likewise.
2288 * ui-out.c: Likewise.
2289 * user-regs.c: Likewise.
2290 * utils.c: Likewise.
2291 * v850-tdep.c: Likewise.
2292 * valops.c: Likewise.
2293 * value.c: Likewise.
2294 * varobj.c: Likewise.
2295 * vax-nat.c: Likewise.
2296 * xml-syscall.c: Likewise.
2297 * xml-tdesc.c: Likewise.
2298 * xstormy16-tdep.c: Likewise.
2299 * xtensa-linux-nat.c: Likewise.
2300 * xtensa-tdep.c: Likewise.
2302 2014-08-07 Gary Benson <gbenson@redhat.com>
2304 * common/common-defs.h: Include common-utils.h.
2305 * defs.h: Do not include common-utils.h.
2306 * common/gdb_assert.h: Likewise.
2307 * darwin-nat.h: Likewise.
2308 * nat/linux-btrace.c: Likewise.
2309 * target/waitstatus.h: Likewise.
2311 2014-08-07 Gary Benson <gbenson@redhat.com>
2313 * common/common-defs.h: Include ptid.h.
2314 * defs.h: Do not include ptid.h.
2315 * inferior.h: Likewise.
2316 * infrun.h: Likewise.
2317 * nat/linux-btrace.h: Likewise.
2318 * nat/linux-osdata.h: Likewise.
2319 * target/waitstatus.h: Likewise.
2321 2014-08-07 Gary Benson <gbenson@redhat.com>
2323 * common/common-defs.h: Include gdb_locale.h.
2324 * defs.h: Do not include gdb_locale.h.
2326 2014-08-07 Gary Benson <gbenson@redhat.com>
2328 * common/common-defs.h: Include gdb/signals.h.
2329 * defs.h: Do not include gdb/signals.h.
2331 2014-08-07 Gary Benson <gbenson@redhat.com>
2333 * common/common-defs.h: Include pathmax.h.
2334 * defs.h: Do not include pathmax.h.
2336 2014-08-07 Gary Benson <gbenson@redhat.com>
2338 * common/common-defs.h: Include libiberty.h.
2339 * defs.h: Do not include libiberty.h.
2340 * common/queue.h: Likewise.
2341 * cp-name-parser.y: Likewise.
2342 * mi/mi-cmd-catch.c: Likewise.
2343 * python/python.c: Likewise.
2345 2014-08-07 Gary Benson <gbenson@redhat.com>
2347 * common/common-defs.h: Include ansidecl.h.
2348 * defs.h: Do not include ansidecl.h.
2349 * common/buffer.h: Likewise.
2350 * common/common-utils.h: Likewise.
2352 2014-08-07 Gary Benson <gbenson@redhat.com>
2354 * common/common-defs.h: Include stddef.h.
2355 * defs.h: Do not include stddef.h.
2356 * common/common-utils.h: Likewise.
2357 * amd64fbsd-nat.c: Likewise.
2358 * bcache.c: Likewise.
2359 * charset.c: Likewise.
2360 * common/buffer.h: Likewise.
2361 * common/vec.h: Likewise.
2362 * i386bsd-nat.c: Likewise.
2363 * nat/linux-btrace.h: Likewise.
2364 * ppcfbsd-nat.c: Likewise.
2365 * ppcnbsd-tdep.h: Likewise.
2366 * ppcobsd-nat.c: Likewise.
2367 * ppcobsd-tdep.h: Likewise.
2368 * python/py-gdb-readline.c: Likewise.
2370 2014-08-07 Gary Benson <gbenson@redhat.com>
2372 * common/common-defs.h: Include stdarg.h.
2373 * defs.h: Do not include stdarg.h.
2374 * ada-lang.c: Likewise.
2375 * common/common-utils.h: Likewise.
2376 * guile/scm-string.c: Likewise.
2377 * guile/scm-utils.c: Likewise.
2378 * m32c-tdep.c: Likewise.
2380 2014-08-07 Gary Benson <gbenson@redhat.com>
2382 * common/common-defs.h: Include stdlib.h.
2383 * defs.h: Do not include stdlib.h.
2384 * addrmap.c: Likewise.
2385 * bcache.c: Likewise.
2386 * common/buffer.c: Likewise.
2387 * common/common-utils.c: Likewise.
2388 * cp-name-parser.y: Likewise.
2389 * go32-nat.c: Likewise.
2390 * mn10300-linux-tdep.c: Likewise.
2391 * nat/linux-osdata.c: Likewise.
2392 * tui/tui.c: Likewise.
2393 * windows-nat.c: Likewise.
2395 2014-08-07 Gary Benson <gbenson@redhat.com>
2397 * common/common-defs.h: Include stdio.h.
2398 * defs.h: Do not include stdio.h.
2399 * ada-lang.c: Likewise.
2400 * common/buffer.c: Likewise.
2401 * common/common-utils.c: Likewise.
2402 * cp-name-parser.y: Likewise.
2403 * gnu-nat.c: Likewise.
2404 * go32-nat.c: Likewise.
2405 * i386gnu-nat.c: Likewise.
2406 * proc-api.c: Likewise.
2407 * proc-events.c: Likewise.
2408 * proc-flags.c: Likewise.
2409 * proc-why.c: Likewise.
2410 * python/python-internal.h: Likewise.
2411 * target-memory.c: Likewise.
2412 * tui/tui-io.c: Likewise.
2413 * tui/tui.c: Likewise.
2415 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2417 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2418 (scan_dyntag_auxv): Same.
2420 2014-08-06 Yao Qi <yao@codesourcery.com>
2422 * amd64-linux-nat.c: Remove duplicated include
2424 * i386-linux-nat.c: Likewise.
2426 2014-08-06 Yao Qi <yao@codesourcery.com>
2428 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2429 operand" with "Special opcode" in comments.
2431 2014-08-05 Gary Benson <gbenson@redhat.com>
2433 * interps.c (initialize_interps): Remove prototype.
2434 (interpreter_initialized): Remove static global.
2435 (interp_add): Do not call initialize_interps.
2436 (initialize_interps): Remove function.
2438 2014-08-05 Gary Benson <gbenson@redhat.com>
2440 * utils.c (vwarning): Remove spurious va_end.
2442 2014-08-05 Alan Modra <amodra@gmail.com>
2444 * charset.c (convert_between_encodings): Cast result of obstack_base.
2445 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2446 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2447 (read_unwind_info): Use size_t for some locals.
2448 * jit.c (finalize_symtab): Likewise.
2449 * utils.c (hashtab_obstack_allocate): Likewise.
2450 * symmisc.c (print_objfile_statistics): Update format strings.
2452 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2454 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2455 (Changes in GDB 7.8): ... here.
2457 2014-08-04 Tom Tromey <tromey@redhat.com>
2459 * target.c (set_targetdebug): New function.
2460 (initialize_targets): Pass set_targetdebug when creating "set
2463 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2465 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2466 if detecting a variable-sized field that is not the last field.
2467 Fix struct type length computation.
2469 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2471 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2474 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2476 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2477 Remove "+ 8" offset in computation of CHAIN_VMA.
2479 2014-07-31 Doug Evans <dje@google.com>
2481 * inflow.c (child_terminal_inferior): Add comment.
2482 (child_terminal_ours_for_output): Add comment.
2483 (child_terminal_ours): Add comment.
2484 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2485 (linux_nat_terminal_ours): Add comment.
2487 2014-07-31 Gary Benson <gbenson@redhat.com>
2489 * common/btrace-common.h: Do not include defs.h or server.h.
2490 * nat/mips-linux-watch.h: Likewise.
2491 * gdb-dlfcn.h: Do not include defs.h.
2492 * tracefile.h: Likewise.
2494 2014-07-30 Roland McGrath <mcgrathr@google.com>
2496 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2498 2014-07-30 Tom Tromey <tromey@redhat.com>
2500 * bsd-kvm.c (bsd_kvm_open): Constify.
2501 * corelow.c (core_open): Constify.
2502 * ctf.c (ctf_open): Constify.
2503 * dbug-rom.c (dbug_open): Constify.
2504 * exec.c (exec_open): Constify.
2505 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2506 * microblaze-rom.c (picobug_open): Constify.
2507 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2509 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2510 * record-btrace.c (record_btrace_open): Constify.
2511 * record-full.c (record_full_core_open_1, record_full_open_1)
2512 (record_full_open): Constify.
2513 * remote-m32r-sdi.c (m32r_open): Constify.
2514 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2515 (rockhopper_open, lsi_open): Constify.
2516 * remote-sim.c (gdbsim_open): Constify.
2517 * remote.c (remote_open, extended_remote_open, remote_open_1):
2519 * target.h (struct target_ops) <to_open>: Make "arg" const.
2520 * tracefile-tfile.c (tfile_open): Constify.
2522 2014-07-30 Tom Tromey <tromey@redhat.com>
2524 * breakpoint.c (map_breakpoint_numbers): Update.
2525 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2526 (get_number_const): New function.
2527 (get_number): Rewrite using get_number_const.
2528 (init_number_or_range): Make "string" const.
2529 (number_is_in_list): Make "list" const.
2530 * cli/cli-utils.h (get_number_const): Declare.
2531 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2532 (init_number_or_range, number_is_in_list): Update.
2533 * printcmd.c (map_display_numbers): Update.
2534 * value.c (value_from_history_ref): Constify.
2535 * value.h (value_from_history_ref): Update.
2537 2014-07-30 Tom Tromey <tromey@redhat.com>
2539 * corefile.c (hook_type, call_extra_exec_file_hooks)
2540 (specify_exec_file_hook): Constify.
2541 * exec.c (exec_file_attach): Make "filename" const.
2542 * gdbcore.h (deprecated_exec_file_display_hook)
2543 (specify_exec_file_hook, exec_file_attach): Constify.
2544 * main.c (captured_main): Use catch_command_errors_const.
2546 2014-07-30 Tom Tromey <tromey@redhat.com>
2548 * target.c (open_target): New function.
2549 (add_target_with_completer, add_deprecated_target_alias): Use
2550 set_cmd_sfunc, set_cmd_context.
2551 (debug_to_open): Remove.
2552 (setup_target_debug): Update.
2554 2014-07-30 Yao Qi <yao@codesourcery.com>
2556 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2558 * parse.c (exp_iterate): Update comments.
2560 2014-07-30 Gary Benson <gbenson@redhat.com>
2562 * common/common-defs.h: New file.
2563 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2564 * defs.h: Include common-defs.h.
2565 Do not include config.h or build-gnulib/config.h.
2567 2014-07-30 Gary Benson <gbenson@redhat.com>
2569 * common/common-utils.h: Do not include config.h.
2570 * nat/linux-btrace.h: Likewise.
2572 2014-07-30 Gary Benson <gbenson@redhat.com>
2574 * btrace.c: Include defs.h.
2575 * common/ptid.c: Include defs.h or server.h as appropriate.
2576 * nat/mips-linux-watch.c: Likewise.
2578 2014-07-29 Tom Tromey <tromey@redhat.com>
2580 * target.c (target_is_pushed): Simplify.
2582 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2586 2014-07-29 Yao Qi <yao@codesourcery.com>
2589 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2591 2014-07-28 Doug Evans <xdje42@gmail.com>
2594 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2595 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2598 2014-07-28 Will Newton <will.newton@linaro.org>
2600 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2601 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2602 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2603 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2604 (THUMB2_EABI_SYSCALL): Likewise.
2605 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2607 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2608 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2610 2014-07-27 Doug Evans <xdje42@gmail.com>
2612 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2614 2014-07-27 Doug Evans <xdje42@gmail.com>
2616 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2618 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2619 Doug Evans <xdje42@gmail.com>
2622 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2623 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2624 * configure.ac: Try to use guild to compile an scm file, if it fails
2625 then disable guile support.
2626 * configure: Regenerate.
2627 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2629 (GUILE_COMPILED_FILES): New variable.
2630 (GUILE_FILES) Update.
2631 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2632 (stamp-guile): Compile scm files.
2633 * guile/guile.c (boot_guile_support): New function.
2634 (standard_throw_args_p): New function.
2635 (print_standard_throw_error, print_throw_error): New functions.
2636 (handle_boot_error): New function.
2637 (initialize_scheme_side): Rewrite to call boot_guile_support.
2638 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2639 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2641 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2642 Doug Evans <xdje42@gmail.com>
2645 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2646 * guile/lib/gdb/support.scm: New file.
2647 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2648 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2650 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2652 (%assert-type): Ditto, and renamed to assert-type.
2653 (%exception-print-style): Delete.
2655 2014-07-26 Doug Evans <xdje42@gmail.com>
2658 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2659 * configure: Regenerate.
2660 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2662 (PYTHON_FILES): New variable.
2663 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2664 (GUILE_FILES): New variable.
2665 (stamp-python, install-python, uninstall-python): Handle empty
2667 (stamp-guile, install-guile, uninstall-guile): Ditto.
2669 2014-07-26 Doug Evans <xdje42@gmail.com>
2672 * guile/lib/gdb.scm (pretty-printers): Export.
2673 (set-pretty-printers!): Export.
2674 * guile/lib/gdb/printing.scm (gdb module): Update.
2675 (prepend-pretty-printer!, append-pretty-printer!): Update.
2676 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2677 (pretty_printer_list_var): Delete.
2678 (pretty_printer_list): New static global.
2679 (gdbscm_pretty_printers): New function.
2680 (gdbscm_set_pretty_printers_x): New function.
2681 (ppscm_find_pretty_printer_from_gdb): Update.
2682 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2683 (gdbscm_initialize_pretty_printers): Update.
2685 2014-07-26 Doug Evans <xdje42@gmail.com>
2688 * configure.ac: Add check for header gc/gc.h.
2689 Add check for function setenv.
2690 * configure: Regenerate.
2691 * config.in: Regenerate.
2692 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2694 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2696 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2697 variation in gdbarch matching.
2699 2014-07-25 Tom Tromey <tromey@redhat.com>
2701 * exec.c (using_exec_ops): Remove.
2702 (exec_close_1): Update. Remove extraneous block, reindent.
2703 (add_target_sections): Use target_is_pushed.
2705 2014-07-25 Pedro Alves <palves@redhat.com>
2707 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2708 * monitor.c (monitor_create_inferior): Likewise.
2709 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2710 * remote-sim.c (gdbsim_create_inferior): Likewise.
2711 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2712 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2713 * windows-nat.c (do_initial_windows_stuff): Likewise.
2715 2014-07-25 Pedro Alves <palves@redhat.com>
2717 * NEWS: Mention signal passing and "signal" command changes.
2718 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2720 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2722 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2723 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2724 (jump_command): Adjust clear_proceed_status call.
2725 (signal_command): Warn if other thread that are resumed have
2726 signals that will be delivered. Adjust clear_proceed_status call.
2727 (until_next_command, finish_command)
2728 (proceed_after_attach_callback, attach_command_post_wait)
2729 (attach_command): Adjust clear_proceed_status call.
2730 * infrun.c (proceed_after_vfork_done): Likewise.
2731 (proceed_after_attach_callback): Adjust comment.
2732 (clear_proceed_status_thread): Clear stop_signal if not in pass
2734 (clear_proceed_status_callback): Delete.
2735 (clear_proceed_status): New 'step' parameter. Only clear the
2736 proceed status of threads the command being prepared is about to
2738 (proceed): If passed in an explicit signal, override stop_signal
2739 with it. Don't pass the last stop signal to the thread we're
2741 (init_wait_for_inferior): Adjust clear_proceed_status call.
2742 (switch_back_to_stepped_thread): Clear the signal if it should not
2744 * infrun.h (clear_proceed_status): New 'step' parameter.
2745 (user_visible_resume_ptid): Add comment.
2746 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2747 signal is in pass state.
2748 * remote.c (append_pending_thread_resumptions): Likewise.
2749 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2751 2014-07-25 Tom Tromey <tromey@redhat.com>
2753 * target.h (target_stopped_data_address)
2754 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2757 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2759 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2761 (avr_pointer_to_address): Likewise.
2763 2014-07-24 Tom Tromey <tromey@redhat.com>
2765 * monitor.c (compile_pattern): Update.
2766 * target.h (struct target_ops) <to_shortname, to_longname,
2769 2014-07-24 Tom Tromey <tromey@redhat.com>
2771 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2772 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2773 (add_info_alias, add_com): Make "doc" const.
2774 (print_doc_line): Make "str" const.
2775 (delete_cmd): Update.
2776 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2777 (print_doc_line): Update.
2778 * cli/cli-script.c (document_command): Update.
2779 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2780 (add_com, add_info, add_info_alias): Update.
2781 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2782 * python/py-cmd.c (cmdpy_destroyer): Update.
2784 2014-07-24 Tom Tromey <tromey@redhat.com>
2786 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2787 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2788 (help_cmd_list): Constify.
2789 (lookup_cmd): Update.
2790 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2792 (help_cmd_list, apropos_cmd): Update.
2793 * cli/cli-script.c (show_user): Update.
2794 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2795 * cli/cli-setshow.h (cmd_show_list): Update.
2796 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2797 (cmd_show_list): Update.
2798 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2799 * python/py-cmd.c (cmdpy_destroyer): Update.
2801 2014-07-24 Tom Tromey <tromey@redhat.com>
2803 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2804 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2806 * command.h (deprecate_cmd): Update.
2807 * maint.c (maintenance_do_deprecate): Add casts.
2809 2014-07-24 Tom Tromey <tromey@redhat.com>
2811 * cli/cli-decode.c (help_cmd): Make parameter "const".
2812 * cli/cli-decode.h (help_cmd): Update.
2814 2014-07-24 Tom Tromey <tromey@redhat.com>
2816 * stack.c (up_silently_base, down_silently_base): Make argument
2819 2014-07-24 Tom Tromey <tromey@redhat.com>
2821 * solib.c (solib_add): Make "pattern" const.
2822 * solib.h (solib_add): Update.
2824 2014-07-24 Tom Tromey <tromey@redhat.com>
2826 * remote.c (remote_serial_open, print_packet, putpkt)
2827 (putpkt_binary): Constify.
2828 * remote.h (putpkt): Update.
2830 2014-07-24 Tom Tromey <tromey@redhat.com>
2832 * monitor.c (monitor_open): Make "args" const.
2833 * monitor.h (monitor_open): Update.
2835 2014-07-24 Tom Tromey <tromey@redhat.com>
2837 * maint.c (match_bfd_flags): Make "string" const.
2838 (print_bfd_section_info): Remove casts.
2839 (print_objfile_section_info): Make "string" const.
2841 2014-07-24 Tom Tromey <tromey@redhat.com>
2843 * inf-child.c (inf_child_open_target): Make "arg" const.
2844 * inf-child.h (inf_child_open_target): Update.
2846 2014-07-24 Tom Tromey <tromey@redhat.com>
2848 * environ.c (unset_in_environ): Make "var" const.
2849 * environ.h (unset_in_environ): Update.
2851 2014-07-24 Tom Tromey <tromey@redhat.com>
2853 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2855 (scan_filename_with_cleanup): Likewise.
2856 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2857 Make arguments const.
2858 (restore_command): Update.
2860 2014-07-24 Pedro Alves <palves@redhat.com>
2862 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2864 2014-07-24 Tom Tromey <tromey@redhat.com>
2865 Gary Benson <gbenson@redhat.com>
2867 * nat/linux-ptrace.c (additional_flags): New global.
2868 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2869 additional_flags; don't check GDBSERVER.
2870 (linux_ptrace_set_additional_flags): New function.
2871 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2873 * linux-nat.c (_initialize_linux_nat): Call
2874 linux_ptrace_set_additional_flags.
2876 2014-07-24 Tom Tromey <tromey@redhat.com>
2878 * make-target-delegates (munge_type, write_debugmethod): New
2880 (debug_names): New global.
2881 ($TARGET_DEBUG_PRINTER): New global.
2882 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2884 Write debug methods. Generate init_debug_target.
2885 * target-debug.h: New file.
2886 * target-delegates.c: Rebuild.
2887 * target.c: Include target-debug.h.
2888 (debug_target): Hoist definition.
2889 (target_kill, target_get_section_table, target_memory_map)
2890 (target_flash_erase, target_flash_done, target_detach)
2891 (target_disconnect, target_wait, target_resume)
2892 (target_pass_signals, target_program_signals, target_follow_fork)
2893 (target_mourn_inferior, target_search_memory)
2894 (target_thread_address_space, target_close)
2895 (target_find_new_threads, target_core_of_thread)
2896 (target_verify_memory, target_insert_mask_watchpoint)
2897 (target_remove_mask_watchpoint): Remove targetdebug code.
2898 (debug_to_post_attach, debug_to_prepare_to_store)
2899 (debug_to_files_info, debug_to_insert_breakpoint)
2900 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2901 (debug_to_region_ok_for_hw_watchpoint)
2902 (debug_to_can_accel_watchpoint_condition)
2903 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2904 (debug_to_watchpoint_addr_within_range)
2905 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2906 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2907 (debug_to_terminal_init, debug_to_terminal_inferior)
2908 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2909 (debug_to_terminal_save_ours, debug_to_terminal_info)
2910 (debug_to_load, debug_to_post_startup_inferior)
2911 (debug_to_insert_fork_catchpoint)
2912 (debug_to_remove_fork_catchpoint)
2913 (debug_to_insert_vfork_catchpoint)
2914 (debug_to_remove_vfork_catchpoint)
2915 (debug_to_insert_exec_catchpoint)
2916 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2917 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2918 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2919 (setup_target_debug): Call init_debug_target.
2920 * target.h (TARGET_DEBUG_PRINTER): New macro.
2921 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2922 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2924 2014-07-24 Gary Benson <gbenson@redhat.com>
2926 * exceptions.h (throw_vfatal): Renamed to...
2927 (throw_vquit): New declaration.
2928 (throw_quit): Likewise.
2929 * exceptions.c (throw_vfatal): Renamed to...
2930 (throw_vquit): New function.
2931 (throw_quit): Likewise.
2932 (throw_error): Call throw_verror rather than throw_it.
2933 * utils.h (vfatal): Removed.
2935 * utils.c (vfatal): Removed.
2937 (internal_verror): Replaced call to fatal with call to throw_quit.
2938 (quit): Replaced calls to fatal with calls to throw_quit.
2940 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2942 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2945 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2947 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2948 less than zero in conditional expression.
2950 2014-07-23 Tom Tromey <tromey@redhat.com>
2952 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2953 ($INTRO_PART): Don't match whitespace.
2954 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2956 ($METHOD): Add $METHOD_TRAILER.
2958 (scan_target_h): New sub.
2959 Change main loop not to collect state.
2960 * target-delegates.c: Rebuild.
2962 2014-07-23 Gary Benson <gbenson@redhat.com>
2964 * cp-support.c (gdb_demangle): Fix build on systems without
2967 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2969 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2970 for reference entry value target data value.
2972 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2974 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2975 value_available_contents_eq.
2977 2014-07-22 Pedro Alves <palves@redhat.com>
2979 * value.c (allocate_optimized_out_value): Don't mark value as
2982 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2984 * MAINTAINERS (Write After Approval): Update my email address.
2986 2014-07-20 Doug Evans <dje@google.com>
2989 * remote.c (putpkt_binary): Add text to error message.
2991 2014-07-20 Yao Qi <yao@codesourcery.com>
2993 * eval.c: Remove "Chill" from comments.
2994 * gdbtypes.h: Likewise.
2995 * symtab.h: Likewise.
2997 2014-07-20 Yao Qi <yao@codesourcery.com>
2999 * std-operator.def: Update comments to TERNOP_SLICE.
3001 2014-07-20 Yao Qi <yao@codesourcery.com>
3003 * std-operator.def: Remove BINOP_RANGE.
3004 * breakpoint.c (watchpoint_exp_is_const): Update.
3005 * expprint.c (dump_subexp_body_standard): Likewise.
3006 * eval.c (init_array_element): Remove dead code.
3007 (evaluate_subexp_standard): Likewise.
3009 2014-07-20 Yao Qi <yao@codesourcery.com>
3011 * std-operator.def: Remove BINOP_IN.
3012 * breakpoint.c (watchpoint_exp_is_const): Update.
3013 * eval.c (evaluate_subexp_standard): Likewise.
3014 * expprint.c (dump_subexp_body_standard): Likewise.
3016 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3018 * microblaze-tdep.c (microblaze_register_names): Add
3019 the rshr and rslr register names.
3020 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3021 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3022 Use of tdesc_numbered_register. Use of
3023 microblaze_register_g_packet_guesses. Use of
3024 tdesc_use_registers. Use of set_gdbarch_register_type.
3025 (microblaze_register_g_packet_guesses): New.
3026 * microblaze-tdep.h (microblaze_reg_num): Add
3027 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3028 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3029 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3030 * features/microblaze-core.xml: New file.
3031 * features/microblaze-stack-protect.xml: New file.
3032 * features/microblaze-with-stack-protect.c: New file.
3033 * features/microblaze-with-stack-protect.xml: New file.
3034 * features/microblaze.xml: New file.
3035 * features/microblaze.c: New file.
3036 * features/Makefile (microblaze-with-stack-protect): Add
3037 microblaze-with-stack-protect microblaze and microblaze-expedite.
3038 * regformats/microblaze-with-stack-protect.dat: New file.
3039 * regformats/microblaze.dat: New file.
3040 * doc/gdb.texinfo (MicroBlaze Features): Added.
3042 2014-07-18 Tom Tromey <tromey@redhat.com>
3044 * exec.c (exec_ops): Now static.
3045 * exec.h (exec_ops): Don't declare.
3047 2014-07-18 Tom Tromey <tromey@redhat.com>
3049 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3050 to find_target_beneath.
3051 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3052 find_target_beneath.
3053 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3055 2014-07-18 Tom Tromey <tromey@redhat.com>
3058 * utils.c (quit): Use target_supports_terminal_ours.
3059 * target.h (target_supports_terminal_ours): Declare.
3060 * target.c (target_supports_delete_record): Don't check
3061 to_delete_record against NULL.
3062 (target_supports_terminal_ours): New function.
3064 2014-07-18 Tom Tromey <tromey@redhat.com>
3067 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3068 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3069 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3070 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3071 * windows-nat.c (windows_xfer_partial): Always delegate.
3072 * record-btrace.c (record_btrace_xfer_partial): Simplify
3074 (record_btrace_fetch_registers, record_btrace_store_registers)
3075 (record_btrace_prepare_to_store, record_btrace_resume)
3076 (record_btrace_wait, record_btrace_find_new_threads)
3077 (record_btrace_thread_alive): Likewise.
3078 * procfs.c (procfs_xfer_partial): Always delegate.
3079 * corelow.c (core_xfer_partial): Always delegate.
3080 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3082 2014-07-18 Tom Tromey <tromey@redhat.com>
3084 * exec.c (exec_make_note_section): Move earlier.
3086 2014-07-17 Doug Evans <dje@google.com>
3089 * maint.c (count_symtabs_and_blocks): Handle NULL
3090 current_program_space.
3091 (report_command_stats): Check global enabled flag in addition to
3092 recorded enabled flag.
3093 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3095 2014-07-16 Pedro Alves <palves@redhat.com>
3097 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3099 2014-07-16 Tom Tromey <tromey@redhat.com>
3101 * target.h (struct target_ops) <to_delete_record>: Reformat
3104 2014-07-16 Tom Tromey <tromey@redhat.com>
3106 * target-delegates.c: Rebuild.
3108 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3110 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3111 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3112 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3113 (avr_pointer_to_address): Likewise.
3114 (avr_address_class_type_flags): New function.
3115 (avr_address_class_type_flags_to_name): Likewise.
3116 (avr_address_class_name_to_type_flags): Likewise.
3117 (avr_gdbarch_init): Set address_class_type_flags,
3118 address_class_type_flags_to_name and
3119 address_class_name_to_type_flags.
3121 2014-07-15 Pedro Alves <palves@redhat.com>
3123 * linux-nat.c (kill_callback): Save errno and work with saved
3126 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3128 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3130 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3132 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3133 breakpoint support correctly.
3135 2014-07-14 Pedro Alves <palves@redhat.com>
3137 * utils.c (prompt_for_continue): Call target_terminal_ours.
3139 2014-07-14 Pedro Alves <palves@redhat.com>
3141 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3142 catch_errors. Don't re-enable stdin or notify observers where,
3144 (fetch_inferior_event_wrapper): Delete.
3146 2014-07-14 Pedro Alves <palves@redhat.com>
3149 * top.c: Include "inf-loop.h".
3150 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3152 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3154 (gdb_readline_wrapper): Store whether the target is async, and
3157 2014-07-14 Pedro Alves <palves@redhat.com>
3160 * top.c (gdb_readline_wrapper_line): Tweak comment.
3161 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3162 the input handler callback.
3164 2014-07-14 Pedro Alves <palves@redhat.com>
3167 * main.c: Include event-top.h.
3168 (handle_command_errors): New function.
3169 (catch_command_errors, catch_command_errors_const): Use it.
3171 2014-07-14 Pedro Alves <palves@redhat.com>
3173 * exceptions.c (catch_command_errors, catch_command_errors_const):
3175 * exceptions.h (catch_command_errors_ftype)
3176 (catch_command_errors_const_ftype): Moved to main.c.
3177 (catch_command_errors, catch_command_errors_const): Delete
3179 * main.c (catch_command_errors_ftype)
3180 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3181 (catch_command_errors, catch_command_errors_const)): Moved here
3182 from exceptions.c and make static.
3184 2014-07-14 Pedro Alves <palves@redhat.com>
3186 * exceptions.c (print_any_exception): Delete.
3187 (catch_exceptions_with_msg): Use exception_print instead of
3188 print_any_exception.
3189 (catch_errors): Use exception_fprintf instead of
3190 print_any_exception.
3191 (catch_command_errors, catch_command_errors_const): Use
3192 exception_print instead of print_any_exception.
3194 2014-07-14 Pedro Alves <palves@redhat.com>
3196 * infcall.c (run_inferior_call): Set 'sync_execution' while
3197 running the inferior call.
3199 2014-07-14 Pedro Alves <palves@redhat.com>
3201 * value.c (value_contents_equal): Delete function.
3202 * value.h (value_contents_equal): Delete declaration.
3204 2014-07-14 Tom Tromey <tromey@redhat.com>
3207 * gdbtypes.c (is_dynamic_type_internal): New function, from
3209 (is_dynamic_type): Rewrite.
3210 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3211 (resolve_dynamic_struct): Likewise.
3212 (resolve_dynamic_type_internal): New function, from
3213 resolve_dynamic_type.
3214 (resolve_dynamic_type): Rewrite.
3216 2014-07-14 Tom Tromey <tromey@redhat.com>
3218 * target.c (target_require_runnable): Also check record_stratum.
3221 2014-07-11 Yao Qi <yao@codesourcery.com>
3223 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3224 thumb_instruction_restores_sp return true.
3226 2014-07-11 Yao Qi <yao@codesourcery.com>
3228 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3229 (thumb_in_function_epilogue_p): Call
3230 thumb_instruction_restores_sp.
3232 2014-07-11 Yao Qi <yao@codesourcery.com>
3234 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3236 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3238 2014-07-11 Gary Benson <gbenson@redhat.com>
3240 * amd64-linux-nat.c (gdbcore.h): Remove include.
3241 (regset.h): Likewise.
3242 (nat/linux-btrace.h): Likewise.
3243 (btrace.h): Likewise.
3244 (gdb_assert.h): Likewise.
3245 (string.h): Likewise.
3246 (sys/uio.h): Likewise.
3247 (sys/debugreg.h): Likewise.
3248 (sys/syscall.h): Likewise.
3249 (sys/procfs.h): Likewise.
3250 (sys/user.h): Likewise.
3251 (asm/ptrace.h): Likewise.
3252 (i386-nat.h): Likewise.
3253 * i386-linux-nat.c (i386-nat.h): Likewise.
3254 (regset.h): Likewise.
3255 (target.h): Likewise.
3256 (linux-nat.h): Likewise.
3257 (nat/linux-btrace.h): Likewise.
3258 (btrace.h): Likewise.
3259 (gdb_assert.h): Likewise.
3260 (string.h): Likewise.
3261 (sys/uio.h): Likewise.
3262 (sys/user.h): Likewise.
3263 (sys/procfs.h): Likewise.
3264 (sys/reg.h): Likewise.
3265 (sys/debugreg.h): Likewise.
3266 (ORIG_EAX): Remove definition.
3268 2014-07-11 Gary Benson <gbenson@redhat.com>
3270 * i386-linux-nat.h: New file.
3271 * x86-linux-nat.h: Likewise.
3272 * x86-linux-nat.c: Likewise.
3273 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3274 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3275 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3276 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3277 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3278 (PTRACE_SETREGSET): Likewise.
3279 (arch_lwp_info): Now in x86-linux-nat.c.
3280 (have_ptrace_getregset): Now in x86-linux-nat.h.
3281 (x86_linux_dr_get): Now in x86-linux-nat.c.
3282 (x86_linux_dr_set): Likewise.
3283 (x86_linux_dr_get_addr): Likewise.
3284 (x86_linux_dr_get_control): Likewise.
3285 (x86_linux_dr_get_status): Likewise.
3286 (update_debug_registers_callback): Likewise.
3287 (x86_linux_dr_set_control): Likewise.
3288 (x86_linux_dr_set_addr): Likewise.
3289 (x86_linux_prepare_to_resume): Likewise.
3290 (x86_linux_new_thread): Likewise.
3291 (x86_linux_new_fork): Likewise.
3292 (x86_linux_get_thread_area): Likewise.
3293 (super_post_startup_inferior): Likewise.
3294 (x86_linux_child_post_startup_inferior): Likewise.
3295 (AMD64_LINUX_USER64_CS): Likewise.
3296 (AMD64_LINUX_X32_DS): Likewise.
3297 (x86_linux_read_description): Likewise.
3298 (x86_linux_enable_btrace): Likewise.
3299 (x86_linux_disable_btrace): Likewise.
3300 (x86_linux_teardown_btrace): Likewise.
3301 (x86_linux_read_btrace): Likewise.
3302 (x86_linux_create_target): Likewise.
3303 (x86_linux_add_target): Likewise.
3304 * i386-linux-nat.c (x86-linux-nat.h): New include.
3305 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3306 (PTRACE_SETREGSET): Likewise.
3307 (arch_lwp_info): Now in x86-linux-nat.c.
3308 (have_ptrace_getregset): Now in x86-linux-nat.h.
3309 (x86_linux_dr_get): Now in x86-linux-nat.c.
3310 (x86_linux_dr_set): Likewise.
3311 (x86_linux_dr_get_addr): Likewise.
3312 (x86_linux_dr_get_control): Likewise.
3313 (x86_linux_dr_get_status): Likewise.
3314 (update_debug_registers_callback): Likewise.
3315 (x86_linux_dr_set_control): Likewise.
3316 (x86_linux_dr_set_addr): Likewise.
3317 (x86_linux_prepare_to_resume): Likewise.
3318 (x86_linux_new_thread): Likewise.
3319 (x86_linux_new_fork): Likewise.
3320 (x86_linux_get_thread_area): Likewise.
3321 (super_post_startup_inferior): Likewise.
3322 (x86_linux_child_post_startup_inferior): Likewise.
3323 (AMD64_LINUX_USER64_CS): Likewise.
3324 (AMD64_LINUX_X32_DS): Likewise.
3325 (x86_linux_read_description): Likewise.
3326 (x86_linux_enable_btrace): Likewise.
3327 (x86_linux_disable_btrace): Likewise.
3328 (x86_linux_teardown_btrace): Likewise.
3329 (x86_linux_read_btrace): Likewise.
3330 (x86_linux_create_target): Likewise.
3331 (x86_linux_add_target): Likewise.
3333 2014-07-11 Gary Benson <gbenson@redhat.com>
3335 * amd64-linux-nat.c: Comment and whitespace changes.
3336 * i386-linux-nat.c: Comment and whitespace changes.
3338 2014-07-11 Gary Benson <gbenson@redhat.com>
3340 * amd64-linux-nat.c (x86_linux_create_target): New function.
3341 (x86_linux_add_target): Likewise.
3342 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3343 * i386-linux-nat.c (x86_linux_create_target): New function.
3344 (x86_linux_add_target): Likewise.
3345 (_initialize_i386_linux_nat): Delegate to the above new functions.
3347 2014-07-11 Gary Benson <gbenson@redhat.com>
3349 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3350 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3351 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3352 (ps_get_thread_area): Delegate to the above.
3354 2014-07-11 Gary Benson <gbenson@redhat.com>
3356 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3357 x86_linux_read_description. All uses updated. amd64-specific
3358 code conditionalized. Conditionalized i386-specific code added.
3359 Redundant cast removed.
3360 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3361 x86_linux_read_description. All uses updated. i386-specific
3362 code conditionalized. Conditionalized amd64-specific code added.
3363 One sizeof replaced with the actual type it is describing.
3365 2014-07-11 Gary Benson <gbenson@redhat.com>
3367 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3368 x86_linux_dr_get. All uses updated.
3369 (amd64_linux_dr_set): Renamed to
3370 x86_linux_dr_set. All uses updated.
3371 (amd64_linux_dr_get_addr): Renamed to
3372 x86_linux_dr_get_addr. All uses updated.
3373 (amd64_linux_dr_get_control): Renamed to
3374 x86_linux_dr_get_control. All uses updated.
3375 (amd64_linux_dr_get_status): Renamed to
3376 x86_linux_dr_get_status. All uses updated.
3377 (amd64_linux_dr_set_control): Renamed to
3378 x86_linux_dr_set_control. All uses updated.
3379 (amd64_linux_dr_set_addr): Renamed to
3380 x86_linux_dr_set_addr. All uses updated.
3381 (amd64_linux_prepare_to_resume): Renamed to
3382 x86_linux_prepare_to_resume. All uses updated.
3383 (amd64_linux_new_thread): Renamed to
3384 x86_linux_new_thread. All uses updated.
3385 (amd64_linux_new_fork): Renamed to
3386 x86_linux_new_fork. All uses updated.
3387 (amd64_linux_child_post_startup_inferior): Renamed to
3388 x86_linux_child_post_startup_inferior. All uses updated.
3389 (amd64_linux_enable_btrace): Renamed to
3390 x86_linux_enable_btrace. All uses updated.
3391 (amd64_linux_disable_btrace): Renamed to
3392 x86_linux_disable_btrace. All uses updated.
3393 (amd64_linux_teardown_btrace): Renamed to
3394 x86_linux_teardown_btrace. All uses updated.
3395 (amd64_linux_read_btrace): Renamed to
3396 x86_linux_read_btrace. All uses updated.
3397 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3398 x86_linux_dr_get. All uses updated.
3399 (i386_linux_dr_set): Renamed to
3400 x86_linux_dr_set. All uses updated.
3401 (i386_linux_dr_get_addr): Renamed to
3402 x86_linux_dr_get_addr. All uses updated.
3403 (i386_linux_dr_get_control): Renamed to
3404 x86_linux_dr_get_control. All uses updated.
3405 (i386_linux_dr_get_status): Renamed to
3406 x86_linux_dr_get_status. All uses updated.
3407 (i386_linux_dr_set_control): Renamed to
3408 x86_linux_dr_set_control. All uses updated.
3409 (i386_linux_dr_set_addr): Renamed to
3410 x86_linux_dr_set_addr. All uses updated.
3411 (i386_linux_prepare_to_resume): Renamed to
3412 x86_linux_prepare_to_resume. All uses updated.
3413 (i386_linux_new_thread): Renamed to
3414 x86_linux_new_thread. All uses updated.
3415 (i386_linux_new_fork): Renamed to
3416 x86_linux_new_fork. All uses updated.
3417 (i386_linux_child_post_startup_inferior): Renamed to
3418 x86_linux_child_post_startup_inferior. All uses updated.
3419 (i386_linux_enable_btrace): Renamed to
3420 x86_linux_enable_btrace. All uses updated.
3421 (i386_linux_disable_btrace): Renamed to
3422 x86_linux_disable_btrace. All uses updated.
3423 (i386_linux_teardown_btrace): Renamed to
3424 x86_linux_teardown_btrace. All uses updated.
3425 (i386_linux_read_btrace): Renamed to
3426 x86_linux_read_btrace. All uses updated.
3428 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3430 * remote.c (extended_remote_post_attach): New function.
3431 (init_extended_remote_ops): Install it as to_post_attach method.
3433 2014-07-09 Pedro Alves <palves@redhat.com>
3435 * infcmd.c (attach_command_post_wait): Don't call
3436 target_terminal_inferior here.
3437 (attach_command): Call it here instead.
3439 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3441 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3443 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3444 from varobj.c, with additional checks.
3445 (c_varobj_ops): Fill in is_path_expr_parent field.
3446 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3447 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3449 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3451 (varobj_default_is_path_expr_parent): New function.
3452 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3453 (varobj_default_is_path_expr_parent): Declare new function.
3455 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3457 * infcmd.c (finish_backward): Turn internal error into normal error.
3459 2014-07-07 Pedro Alves <palves@redhat.com>
3462 * remote.c (async_handle_remote_sigint)
3463 (async_handle_remote_sigint_twice): Call
3464 gdb_call_async_signal_handler instead of
3465 mark_async_signal_handler.
3467 2014-07-07 Tom Tromey <tromey@redhat.com>
3469 * target-delegates.c: Rebuild.
3470 * target.c (target_info_record): Remove.
3471 * record.c (info_record_command): Unconditionally call
3473 * target.h (struct target_ops) <to_info_record>: Use
3474 TARGET_DEFAULT_IGNORE.
3475 (target_info_record): Remove.
3477 2014-07-07 Tom Tromey <tromey@redhat.com>
3479 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3480 TARGET_DEFAULT_NORETURN.
3481 * target.c (generic_tls_error): New function.
3482 (target_translate_tls_address): Don't search target stack.
3483 * target-delegates.c: Rebuild.
3484 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3486 * linux-thread-db.c (thread_db_get_thread_local_address):
3487 Unconditionally call beneath target.
3489 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3491 * cli/cli-logging.c (pop_output_files): Assign targerr to
3494 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3496 * MAINTAINERS (Write After Approval): Update my email address.
3498 2014-07-02 Gary Benson <gbenson@redhat.com>
3500 * proc-service.c (ps_xfer_memory): Update comment.
3501 (ps_pstop): Remove unused function.
3502 (ps_pcontinue): Likewise.
3503 (ps_lstop): Likewise.
3504 (ps_lcontinue): Likewise.
3505 (ps_lgetxregsize): Likewise.
3506 (ps_lgetxregs): Likewise.
3507 (ps_lsetxregs): Likewise.
3508 (ps_plog): Likewise.
3509 (ps_ptread): Likewise.
3510 (ps_ptwrite): Likewise.
3512 2014-07-01 Mark Wielaard <mjw@redhat.com>
3514 * dwarf2read.c (add_array_cv_type): New function.
3515 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3516 (read_tag_volatile_type): Likewise.
3518 2014-07-01 Tom Tromey <tromey@redhat.com>
3520 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3521 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3522 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3523 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3524 * command.h (cmd_cfunc_ftype): Move earlier.
3525 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3526 (add_com, add_info): Use cmd_cfunc_ftype.
3528 2014-06-30 Tom Tromey <tromey@redhat.com>
3530 * symtab.c (operator_chars): Make parameters and return type
3532 (file_matches): Make "files" const.
3533 (struct search_symbols_data) <files>: Now const.
3534 (search_symbols): Make "regexp" and "files" parameters const.
3536 (symtab_symbol_info): Remove cast.
3537 (rbreak_command): Update.
3538 * symtab.h (search_symbols): Update.
3540 2014-06-27 Yao Qi <yao@codesourcery.com>
3542 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3543 Change parameter type to 'struct thread_info *'. Caller
3545 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3547 * dummy-frame.c (struct dummy_frame_id): New.
3548 (dummy_frame_id_eq): New function.
3549 (struct dummy_frame) <id>: Change its type to 'struct
3551 (dummy_frame_push): Add parameter ptid and save it in
3553 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3555 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3557 (lookup_dummy_frame): Change parameter type to 'struct
3558 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3559 instead of frame_id_eq.
3560 (dummy_frame_pop): Add parameter ptid. Callers updated.
3561 Update comments. Compose dummy_frame_id and pass it to
3563 (dummy_frame_discard): Add parameter ptid.
3564 (dummy_frame_sniffer): Compose dummy_frame_id and call
3565 dummy_frame_id_eq instead of frame_id_eq.
3566 (fprint_dummy_frames): Print ptid.
3567 * dummy-frame.h: Remove comments.
3568 (dummy_frame_push): Add ptid in declaration.
3569 (dummy_frame_pop, dummy_frame_discard): Likewise.
3571 2014-06-26 Tom Tromey <tromey@redhat.com>
3573 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3574 * command.h (error_no_arg): Update.
3576 2014-06-26 Tom Tromey <tromey@redhat.com>
3578 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3579 (do_show_command): Make "arg" const.
3580 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3582 2014-06-26 Tom Tromey <tromey@redhat.com>
3584 * record-full.c (record_full_get_bookmark): Make "args" const.
3585 (record_full_goto_bookmark): Make "raw_bookmark" const.
3586 * record.c (record_goto): New function.
3587 (cmd_record_goto): Use it. Now static.
3588 * record.h (record_goto): Declare.
3589 (cmd_record_goto): Remove declaration.
3590 * target-delegates.c: Rebuild.
3591 * target.h (struct target_ops) <to_get_bookmark,
3592 to_goto_bookmark>: Make parameter const.
3594 2014-06-26 Tom Tromey <tromey@redhat.com>
3596 * defs.h (generic_load): Update.
3597 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3598 * monitor.c (monitor_load): Make "args" const.
3599 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3600 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3602 (mips_load): Make "file" const.
3603 * remote-sim.c (gdbsim_load): Make "args" const.
3604 * remote.c (remote_load): Make "name" const.
3605 * symfile.c (generic_load): Make "args" const.
3606 * target-delegates.c: Rebuild.
3607 * target.c (target_load): Make "arg" const.
3608 (debug_to_load): Make "args" const.
3609 * target.h (struct target_ops) <to_load>: Make parameter const.
3610 (target_load): Update.
3612 2014-06-26 Tom Tromey <tromey@redhat.com>
3615 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3616 (dwarf2_physname, read_partial_die)
3617 (guess_partial_die_structure_name, fixup_partial_die)
3618 (guess_full_die_structure_name, anonymous_struct_prefix)
3619 (dwarf2_name): Use per-BFD obstack.
3621 2014-06-26 Yao Qi <yao@codesourcery.com>
3623 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3624 dummyframe and this_id into inner block below.
3626 2014-06-26 Yao Qi <yao@codesourcery.com>
3628 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3629 with "signal_pass[0]" in the initialization of signal_pass.
3631 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3633 * record-btrace.c (record_btrace_generating_corefile)
3634 (record_btrace_prepare_to_generate_core)
3635 (record_btrace_done_generating_core): New.
3636 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3637 (record_btrace_store_registers, record_btrace_prepare_to_store):
3638 Forward request when generating a core file.
3639 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3640 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3641 to_done_generating_core.
3643 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3645 * target.h (target_ops) <to_prepare_to_generate_core>
3646 <to_done_generating_core>: New.
3647 (target_prepare_to_generate_core, target_done_generating_core): New.
3648 * target.c (target_prepare_to_generate_core)
3649 (target_done_generating_core): New.
3650 * target-delegates.c: Regenerate.
3651 * gcore.c: (write_gcore_file): Rename to ...
3652 (write_gcore_file_1): ...this.
3653 (write_gcore_file): Call target_prepare_to_generate_core
3654 and target_done_generating_core.
3656 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3658 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3659 * gcore.c (write_gcore_file): Free memory returned from
3660 make_corefile_notes.
3661 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3662 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3664 2014-06-24 Yao Qi <yao@codesourcery.com>
3666 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3667 (arm_linux_init_abi): Set skip_trampoline_code with
3668 gdbarch_skip_trampoline_code instead of
3669 find_solib_trampoline_target.
3671 2014-06-24 Yao Qi <yao@codesourcery.com>
3673 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3674 arm_skip_bx_reg returns non-zero.
3676 2014-06-24 Yao Qi <yao@codesourcery.com>
3678 * arm-tdep.c (arm_skip_bx_reg): New function.
3679 (arm_skip_stub): Call arm_skip_bx_reg.
3681 2014-06-23 Don Breazeal <donb@codesourcery.com>
3683 * MAINTAINERS: Add myself as write-after-approval maintainer.
3685 2014-06-23 Pedro Alves <palves@redhat.com>
3687 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3688 DR_CONTROL before setting DR0..DR3.
3689 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3690 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3691 bits of DR_CONTROL related to the debug register slot being
3692 disabled. If all slots are vacant, clear local slowdown as well,
3693 and assert DR_CONTROL is 0.
3695 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3697 * python/lib/gdb/command/xmethods.py
3698 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3699 current progspace only if the string "progspace" matches LOCUS_RE.
3701 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3703 Fix --with-system-readline with readline-6.3 patch 5.
3704 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3705 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3708 2014-06-20 Tom Tromey <tromey@redhat.com>
3710 * dwarf2read.c (dw2_get_real_path): Use correct type in
3712 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3714 2014-06-20 Gary Benson <gbenson@redhat.com>
3716 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3717 * common/glibc_thread_db.h: Likewise.
3718 * common/i386-cpuid.h: Likewise.
3719 * common/i386-gcc-cpuid.h: Likewise.
3720 * common/linux-btrace.h: Likewise.
3721 * common/linux-osdata.h: Likewise.
3722 * common/linux-procfs.h: Likewise.
3723 * common/linux-ptrace.h: Likewise.
3724 * common/mips-linux-watch.h: Likewise.
3725 * common/linux-btrace.c: Moved to nat.
3726 * common/linux-osdata.c: Likewise.
3727 * common/linux-procfs.c: Likewise.
3728 * common/linux-ptrace.c: Likewise.
3729 * common/mips-linux-watch.c: Likewise.
3730 * nat/gdb_thread_db.h: Moved from common.
3731 * nat/glibc_thread_db.h: Likewise.
3732 * nat/i386-cpuid.h: Likewise.
3733 * nat/i386-gcc-cpuid.h: Likewise.
3734 * nat/linux-btrace.c: Likewise.
3735 * nat/linux-btrace.h: Likewise.
3736 * nat/linux-osdata.c: Likewise.
3737 * nat/linux-osdata.h: Likewise.
3738 * nat/linux-procfs.c: Likewise.
3739 * nat/linux-procfs.h: Likewise.
3740 * nat/linux-ptrace.c: Likewise.
3741 * nat/linux-ptrace.h: Likewise.
3742 * nat/mips-linux-watch.c: Likewise.
3743 * nat/mips-linux-watch.h: Likewise.
3744 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3745 (object file files): Reordered.
3746 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3747 of glibc_thread_db.h.
3749 2014-06-20 Gary Benson <gbenson@redhat.com>
3751 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3752 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3753 (i386_dr_low): Likewise.
3754 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3755 (i386_dr_low_set_addr): Likewise.
3756 (i386_dr_low_get_addr): Likewise.
3757 (i386_dr_low_can_set_control): Likewise.
3758 (i386_dr_low_set_control): Likewise.
3759 (i386_dr_low_get_control): Likewise.
3760 (i386_dr_low_get_status): Likewise.
3761 (i386_get_debug_register_length): Likewise.
3762 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3763 (i386_dr_low): Likewise.
3764 * nat/i386-dregs.c (i386-low.h): Remove include.
3765 (i386-nat.h): Likewise.
3766 (nat/i386-dregs.h): New include.
3767 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3768 (i386_dr_low_set_addr): Likewise.
3769 (i386_dr_low_get_addr): Likewise.
3770 (i386_dr_low_can_set_control): Likewise.
3771 (i386_dr_low_set_control): Likewise.
3772 (i386_dr_low_get_control): Likewise.
3773 (i386_dr_low_get_status): Likewise.
3774 (i386_get_debug_register_length): Likewise.
3775 (debug_hw_points): Likewise.
3777 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3779 * Makefile.in (SFILES): Add d-exp.y.
3780 (YYFILES): Add d-exp.c.
3781 (YYOBJ): Add d-exp.o.
3782 (local-maintainer-clean): Delete d-exp.c.
3783 * d-exp.y: New file.
3784 * d-lang.h (d_parse): New declaration.
3785 (d_error): New declaration.
3786 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3787 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3788 PREC_ORDER operators.
3789 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3791 2014-06-19 Yao Qi <yao@codesourcery.com>
3793 * gdbthread.h (any_running): Remove the declaration.
3794 * thread.c (any_running): Remove.
3796 2014-06-19 Yao Qi <yao@codesourcery.com>
3798 * gdbthread.h (struct thread_info) <state>: Change its type to
3799 'enum thread_state'. Update comments.
3801 2014-06-19 Pedro Alves <palves@redhat.com>
3803 * gdbthread.h (ALL_THREADS): Delete.
3804 (ALL_NON_EXITED_THREADS): New macro.
3805 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3806 instead of ALL_THREADS.
3807 * infrun.c (find_thread_needs_step_over)
3808 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3809 instead of ALL_THREADS.
3810 * record-btrace.c (record_btrace_open)
3811 (record_btrace_stop_recording, record_btrace_close)
3812 (record_btrace_is_replaying, record_btrace_resume)
3813 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3814 * remote.c (append_pending_thread_resumptions): Likewise.
3815 * thread.c (thread_apply_all_command): Likewise.
3817 2014-06-19 Gary Benson <gbenson@redhat.com>
3819 * i386-nat.c (i386_stopped_by_watchpoint):
3820 Use i386_dr_stopped_by_watchpoint.
3821 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3822 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3824 2014-06-19 Gary Benson <gbenson@redhat.com>
3826 * nat/i386-dregs.c: New file.
3827 * Makefile.in (i386-dregs.o): New rule.
3828 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3829 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3830 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3831 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3832 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3833 * config/i386/go32.mh (NATDEPFILES): Likewise.
3834 * config/i386/linux.mh (NATDEPFILES): Likewise.
3835 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3836 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3837 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3838 * i386-nat.h (debug_hw_points): New declaration.
3839 * i386-nat.c (breakpoint.h): Remove include.
3840 (command.h): Likewise.
3841 (target.h): Likewise.
3842 (gdb_assert.h): Likewise.
3843 (debug_hw_points): Made nonstatic.
3844 (debug_printf): Now in i386-dregs.c.
3845 (TARGET_HAS_DR_LEN_8): Likewise.
3846 (DR_CONTROL_SHIFT): Likewise.
3847 (DR_CONTROL_SIZE): Likewise.
3848 (DR_RW_EXECUTE): Likewise.
3849 (DR_RW_WRITE): Likewise.
3850 (DR_RW_READ): Likewise.
3851 (DR_RW_IORW): Likewise.
3852 (DR_LEN_1): Likewise.
3853 (DR_LEN_2): Likewise.
3854 (DR_LEN_4): Likewise.
3855 (DR_LEN_8): Likewise.
3856 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3857 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3858 (DR_ENABLE_SIZE): Likewise.
3859 (DR_LOCAL_SLOWDOWN): Likewise.
3860 (DR_GLOBAL_SLOWDOWN): Likewise.
3861 (DR_CONTROL_RESERVED): Likewise.
3862 (I386_DR_CONTROL_MASK): Likewise.
3863 (I386_DR_VACANT): Likewise.
3864 (I386_DR_LOCAL_ENABLE): Likewise.
3865 (I386_DR_GLOBAL_ENABLE): Likewise.
3866 (I386_DR_DISABLE): Likewise.
3867 (I386_DR_SET_RW_LEN): Likewise.
3868 (I386_DR_GET_RW_LEN): Likewise.
3869 (I386_DR_WATCH_HIT): Likewise.
3870 (i386_wp_op_t): Likewise.
3871 (i386_show_dr): Likewise.
3872 (i386_length_and_rw_bits): Likewise.
3873 (i386_insert_aligned_watchpoint): Likewise.
3874 (i386_remove_aligned_watchpoint): Likewise.
3875 (i386_handle_nonaligned_watchpoint): Likewise.
3876 (i386_update_inferior_debug_regs): Likewise.
3877 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3878 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3879 (i386_region_ok_for_watchpoint):
3880 Use i386_dr_region_ok_for_watchpoint.
3881 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3883 2014-06-19 Gary Benson <gbenson@redhat.com>
3885 * i386-nat.c (i386_insert_hw_breakpoint): Use
3886 i386_insert_watchpoint.
3887 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3889 2014-06-19 Gary Benson <gbenson@redhat.com>
3891 * i386-nat.c (i386_dr_show): Renamed to
3892 i386_show_dr and made static. All uses updated.
3893 (i386_dr_length_and_rw_bits): Renamed to
3894 i386_length_and_rw_bits and made static.
3896 (i386_dr_insert_aligned_watchpoint): Renamed to
3897 i386_insert_aligned_watchpoint and made static.
3899 (i386_dr_remove_aligned_watchpoint): Renamed to
3900 i386_remove_aligned_watchpoint and made static.
3902 (i386_dr_update_inferior_debug_regs): Renamed to
3903 i386_update_inferior_debug_regs and made static.
3905 * nat/i386-dregs.h (i386_dr_show): Removed.
3906 (i386_dr_length_and_rw_bits): Likewise.
3907 (i386_dr_insert_aligned_watchpoint): Likewise.
3908 (i386_dr_remove_aligned_watchpoint): Likewise.
3909 (i386_dr_update_inferior_debug_regs): Likewise.
3911 2014-06-19 Gary Benson <gbenson@redhat.com>
3913 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3914 * configure: Regenerate.
3915 * config.in: Likewise.
3916 * main.c (signal.h): New include.
3917 (setup_alternate_signal_stack): New function.
3918 (captured_main): Call the above.
3919 * cp-support.c (signal.h): New include.
3920 (catch_demangler_crashes): New flag.
3921 (SIGJMP_BUF): New define.
3922 (SIGSETJMP): Likewise.
3923 (SIGLONGJMP): Likewise.
3924 (gdb_demangle_jmp_buf): New static global.
3925 (gdb_demangle_attempt_core_dump): Likewise.
3926 (gdb_demangle_signal_handler): New function.
3927 (gdb_demangle): If catch_demangler_crashes is set, install the
3928 above signal handler before calling bfd_demangle, and restore
3929 the original signal handler afterwards. Display the offending
3930 symbol and call demangler_warning the first time a segmentation
3932 (_initialize_cp_support): New maint set/show command.
3934 2014-06-19 Gary Benson <gbenson@redhat.com>
3936 * utils.h (resource_limit_kind): New enum.
3937 (can_dump_core): New declaration.
3938 (warn_cant_dump_core): Likewise.
3939 (dump_core): Likewise.
3940 * utils.c (dump_core): Made nonstatic. Added new
3941 parameter "limit_kind".
3942 (can_dump_core): Made nonstatic. Moved printing code to...
3943 (warn_cant_dump_core): New function.
3944 (can_dump_core_warn): Likewise.
3945 (internal_vproblem): Replace calls to can_dump_core with
3946 calls to can_dump_core_warn. Supply new argument to each.
3948 2014-06-19 Gary Benson <gbenson@redhat.com>
3950 * utils.h (demangler_vwarning): New declaration.
3951 (demangler_warning): Likewise.
3952 * utils.c (struct internal_problem)
3953 <user_settable_should_quit>: New field.
3954 <user_settable_should_dump_core>: Likewise
3955 (internal_error_problem): Add values for above new fields.
3956 (internal_warning_problem): Likewise.
3957 (demangler_warning_problem): New static global.
3958 (demangler_vwarning): New function.
3959 (demangler_warning): Likewise.
3960 (add_internal_problem_command): Selectively add commands.
3961 (_initialize_utils): New internal problem command.
3962 * maint.c (maintenance_demangler_warning): New function.
3963 (_initialize_maint_cmds): New command.
3965 2014-06-18 Tom Tromey <tromey@redhat.com>
3967 * f-valprint.c (info_common_command_for_block): Update.
3968 * symtab.h (struct general_symbol_info) <common_block>: Now
3971 2014-06-18 Tom Tromey <tromey@redhat.com>
3973 * symtab.h (struct symtab) <blockvector>: Now const.
3974 * ada-lang.c (ada_add_global_exceptions): Update.
3975 * buildsym.c (augment_type_symtab): Update.
3976 * dwarf2read.c (dw2_lookup_symbol): Update.
3977 * jit.c (finalize_symtab): Update.
3978 * jv-lang.c (add_class_symtab_symbol): Update.
3979 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3981 * objfiles.c (objfile_relocate1): Update.
3982 * psymtab.c (lookup_symbol_aux_psymtabs)
3983 (maintenance_check_psymtabs): Update.
3984 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3986 * spu-tdep.c (spu_catch_start): Update.
3987 * symmisc.c (dump_symtab_1): Update.
3988 * symtab.c (lookup_global_symbol_from_objfile)
3989 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3990 (basic_lookup_transparent_type_quick)
3991 (basic_lookup_transparent_type, find_pc_sect_symtab)
3992 (find_pc_sect_line, search_symbols): Update.
3993 * block.c (find_block_in_blockvector): Make "bl" const.
3994 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3996 (blockvector_contains_pc): Make "bv" const.
3997 (block_for_pc_sect): Update.
3998 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3999 (blockvector_contains_pc): Update.
4000 * breakpoint.c (resolve_sal_pc): Update.
4001 * inline-frame.c (block_starting_point_at): Update.
4003 2014-06-18 Tom Tromey <tromey@redhat.com>
4005 * completer.c (complete_line): Make "line_buffer" const.
4006 * completer.h (complete_line): Update.
4008 2014-06-18 Tom Tromey <tromey@redhat.com>
4010 * symtab.c (add_macro_name): Remove unneeded cast.
4012 2014-06-18 Tom Tromey <tromey@redhat.com>
4014 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4015 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4017 2014-06-18 Tom Tromey <tromey@redhat.com>
4019 * probe.c (info_probes_for_ops): Make "arg" const.
4020 * probe.h (info_probes_for_ops): Update.
4022 2014-06-18 Tom Tromey <tromey@redhat.com>
4024 * varobj.c (varobj_create): Update.
4025 * valops.c (value_of_this): Update.
4026 * tracepoint.c (add_local_symbols, scope_info): Update.
4027 * symtab.h (struct general_symbol_info) <block>: Now const.
4028 * symtab.c (skip_prologue_sal)
4029 (default_make_symbol_completion_list_break_on)
4030 (skip_prologue_using_sal): Update.
4031 * stack.h (iterate_over_block_locals)
4032 (iterate_over_block_local_vars): Update.
4033 * stack.c (print_frame_args): Update.
4034 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4036 (get_selected_block): Make return type const.
4037 * python/py-frame.c (frapy_block): Update.
4038 * python/py-block.c (gdbpy_block_for_pc): Update.
4039 * p-exp.y (%union) <bval>: Now const.
4040 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4041 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4042 * m2-exp.y (%union) <bval>: Now const.
4043 * linespec.c (get_current_search_block): Make return type const.
4044 (create_sals_line_offset, find_label_symbols): Update.
4045 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4047 (block_starting_point_at): Make "block" const.
4048 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4049 (check_exception_resume): Update.
4050 * guile/scm-frame.c (gdbscm_frame_block): Update.
4051 * guile/scm-block.c (gdbscm_lookup_block): Update.
4052 * frame.h (get_frame_block): Update.
4053 (get_selected_block): Make return type const.
4054 * frame.c (frame_id_inner): Update.
4055 * f-valprint.c (info_common_command_for_block)
4056 (info_common_command): Update.
4057 * dwarf2loc.c (dwarf2_find_location_expression)
4058 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4059 (locexpr_describe_location_piece): Update.
4060 * c-exp.y (%union) <bval>: Now const.
4061 * breakpoint.c (resolve_sal_pc): Update.
4062 * blockframe.c (get_frame_block):Make return type const.
4063 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4064 (block_innermost_frame): Update.
4065 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4066 (block_for_pc, block_for_pc_sect): Update.
4067 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4069 (block_for_pc_sect, block_for_pc): Make return type const.
4070 * ax-gdb.c (gen_expr): Update.
4071 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4072 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4073 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4074 (ada_read_var_value): Update.
4075 * ada-exp.y (struct name_info) <block>: Now const.
4077 (block_lookup): Constify.
4079 2014-06-18 Gary Benson <gbenson@redhat.com>
4081 * nat/i386-dregs.h: New file.
4082 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4083 * i386-nat.h (i386-dregs.h): New include.
4084 (DR_FIRSTADDR): Now in i386-dregs.h.
4085 (DR_LASTADDR): Likewise.
4086 (DR_NADDR): Likewise.
4087 (DR_STATUS): Likewise.
4088 (DR_CONTROL): Likewise.
4089 (i386_debug_reg_state): Likewise.
4090 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4092 2014-06-18 Don Breazeal <donb@codesourcery.com>
4094 * breakpoint.c (set_longjmp_breakpoint): Call
4095 momentary_breakpoint_from_master with additional argument.
4096 (set_longjmp_breakpoint_for_call_dummy): Call
4097 momentary_breakpoint_from_master with additional argument.
4098 (set_std_terminate_breakpoint): Call
4099 momentary_breakpoint_from_master with additional argument.
4100 (momentary_breakpoint_from_master): Add argument to function
4101 definition and use it to initialize structure member flag.
4102 (clone_momentary_breakpoint): Call
4103 momentary_breakpoint_from_master with additional argument.
4104 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4105 member flags set in momentary_breakpoint_from_master.
4107 2014-06-18 Gary Benson <gbenson@redhat.com>
4109 * i386-nat.c (i386_show_dr): Renamed to
4110 i386_dr_show and made nonstatic. All uses updated.
4111 (i386_length_and_rw_bits): Renamed to
4112 i386_dr_length_and_rw_bits and made nonstatic.
4114 (i386_insert_aligned_watchpoint): Renamed to
4115 i386_dr_insert_aligned_watchpoint and made nonstatic.
4117 (i386_remove_aligned_watchpoint): Renamed to
4118 i386_dr_remove_aligned_watchpoint and made nonstatic.
4120 (i386_update_inferior_debug_regs): Renamed to
4121 i386_dr_update_inferior_debug_regs and made nonstatic.
4124 2014-06-18 Gary Benson <gbenson@redhat.com>
4126 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4127 (i386_dr_low_can_set_control): Likewise.
4128 (i386_dr_low_set_addr): Likewise.
4129 (i386_dr_low_set_control): Likewise.
4130 (i386_dr_low_get_addr): Likewise.
4131 (i386_dr_low_get_status): Likewise.
4132 (i386_dr_low_get_control): Likewise.
4133 (i386_insert_aligned_watchpoint): Use new macros.
4134 (i386_update_inferior_debug_regs): Likewise.
4135 (i386_stopped_data_address): Likewise.
4137 2014-06-18 Gary Benson <gbenson@redhat.com>
4139 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4140 New parameter. All uses updated.
4142 2014-06-18 Gary Benson <gbenson@redhat.com>
4144 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4147 2014-06-18 Gary Benson <gbenson@redhat.com>
4149 * i386-nat.c (debug_printf): New macro.
4150 (i386_get_debug_register_length): Likewise.
4151 (TARGET_HAS_DR_LEN_8): Use above macro.
4152 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4153 and printf_unfiltered. Use phex to format values.
4155 2014-06-18 Gary Benson <gbenson@redhat.com>
4157 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4160 2014-06-18 Gary Benson <gbenson@redhat.com>
4162 * i386-nat.c: Comment changes.
4164 2014-06-18 Gary Benson <gbenson@redhat.com>
4166 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4168 2014-06-18 Gary Benson <gbenson@redhat.com>
4170 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4171 (i386_insert_aligned_watchpoint): Likewise.
4172 (i386_remove_aligned_watchpoint): Likewise.
4173 (i386_handle_nonaligned_watchpoint): Likewise.
4175 2014-06-18 Gary Benson <gbenson@redhat.com>
4177 * i386-nat.c: Whitespace changes.
4179 2014-06-17 Samuel Bronson <naesten@gmail.com>
4181 * MAINTAINERS: Update Roland McGrath's email address.
4182 Thanks to Sergio Durigan Junior for pointing out that he left
4183 Red Hat a while ago, and giving me a current address.
4185 2014-06-17 Tom Tromey <tromey@redhat.com>
4187 * utils.h (savestring): Remove declaration.
4189 2014-06-17 Tom Tromey <tromey@redhat.com>
4191 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4193 2014-06-16 Keith Seitz <keiths@redhat.com>
4196 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4197 to update the varobj if inferior_ptid is null_ptid.
4199 2014-06-16 Tom Tromey <tromey@redhat.com>
4201 * target.h (struct target_ops) <to_info_proc>: Make parameter
4203 (target_info_proc): Update.
4204 * target.c (target_info_proc): Make "args" const.
4205 * procfs.c (procfs_info_proc): Update.
4206 * linux-tdep.c (linux_info_proc): Update.
4207 (linux_core_info_proc_mappings): Make "args" const.
4208 (linux_core_info_proc): Update.
4209 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4210 * gdbarch.c: Rebuild.
4211 * gdbarch.h: Rebuild.
4212 * corelow.c (core_info_proc): Update.
4214 2014-06-16 Tom Tromey <tromey@redhat.com>
4216 * target.h (struct target_ops) <to_disconnect>: Make parameter
4218 (target_disconnect): Update.
4219 * target.c (target_disconnect): Make "args" const.
4220 * target-delegates.c: Rebuild.
4221 * remote.c (remote_disconnect): Update.
4222 * record.h (record_disconnect): Update.
4223 * record.c (record_disconnect): Update.
4224 * inf-child.c (inf_child_disconnect): Update.
4226 2014-06-16 Tom Tromey <tromey@redhat.com>
4228 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4229 * target.c (debug_to_rcmd, default_rcmd): Update.
4230 * target-delegates.c: Rebuild.
4231 * remote.c (remote_rcmd): Update.
4232 * monitor.c (monitor_rcmd): Update.
4234 2014-06-16 Pedro Alves <palves@redhat.com>
4236 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4237 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4238 have OBJF_SHARED set.
4239 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4240 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4241 instead of OBJF_USERLOADED.
4242 * objfiles.h (OBJF_SHARED): Update comment.
4243 (userloaded_objfile_contains_address_p): Rename to ...
4244 (shared_objfile_contains_address_p): ... this, and update
4246 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4248 (remove_symbol_file_command): Skip objfiles that don't have
4251 2014-06-16 Tom Tromey <tromey@redhat.com>
4253 * minsyms.h (prim_record_minimal_symbol)
4254 (prim_record_minimal_symbol_and_info): Update comments.
4256 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4258 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4259 or --without-guile, according to how GDB was built.
4261 2014-06-13 Tom Tromey <tromey@redhat.com>
4263 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4265 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4267 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4269 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4270 help_list.Pass all_commands, not -1, to help_list.
4271 * cli/cli-dump.c (dump_command, append_command)
4272 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4273 (binary_dump_command, binary_append_command): Pass all_commands,
4274 not -1, to help_list.
4275 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4277 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4279 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4281 * top.c (set_history): Pass all_commands, not -1, to help_list.
4282 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4283 all_commands, not -1, to help_list.
4284 * symfile.c (overlay_command): Pass all_commands, not -1, to
4286 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4288 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4290 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4292 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4293 not -1, to help_list.
4294 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4295 not -1, to help_list.
4296 * maint.c (maintenance_command, maintenance_info_command)
4297 (maintenance_print_command, maintenance_set_cmd): Pass
4298 all_commands, not -1, to help_list.
4299 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4301 * language.c (set_check): Pass all_commands, not -1, to help_list.
4302 * infcmd.c (unset_command): Pass all_commands, not -1, to
4304 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4306 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4308 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4310 * breakpoint.c (save_command): Pass all_commands, not -1, to
4312 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4313 all_commands, not -1, to help_list.
4315 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4317 * regcache.c (struct register_to_invalidate): New structure.
4318 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4320 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4322 2014-06-12 Yao Qi <yao@codesourcery.com>
4324 * varobj.c (varobj_get_num_children): Call
4325 varobj_is_dynamic_p.
4326 (varobj_list_children): Likewise.
4327 (varobj_update): Likewise. Update comments.
4329 2014-06-12 Yao Qi <yao@codesourcery.com>
4331 * varobj.c (varobj_pretty_printed_p): Rename to ...
4332 (varobj_is_dynamic_p): ... this. New function.
4333 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4334 (varobj_is_dynamic_p): Declare.
4335 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4336 (mi_print_value_p, varobj_update_one): Likewise.
4338 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4339 Yao Qi <yao@codesourcery.com>
4341 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4342 (varobj_get_iterator): Wrap up code for pretty-printer by
4343 "#if HAVE_PYTHON" and "#endif".
4344 (update_dynamic_varobj_children): Likewise.
4346 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4347 Yao Qi <yao@codesourcery.com>
4349 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4350 gdb_python_initialized is false. Move some code from varobj.c.
4351 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4352 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4353 (struct varobj_item): Moved to varobj-iter.h".
4354 (varobj_clear_saved_item): New function.
4355 (update_dynamic_varobj_children): Move python-related code to
4357 (free_variable): Call varobj_clear_saved_item and
4360 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4361 Yao Qi <yao@codesourcery.com>
4363 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4364 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4365 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4366 (py-varobj.o): New rule.
4367 * python/py-varobj.c: New file.
4368 * python/python-internal.h (py_varobj_get_iterator): Declare.
4369 * varobj-iter.h: New file.
4370 * varobj.c: Include "varobj-iter.h"
4371 (struct varobj) <child_iter>: Change its type from "PyObject *"
4372 to "struct varobj_iter *".
4373 <saved_item>: Likewise.
4374 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4375 [HAVE_PYTHON] (varobj_get_iterator): New function.
4376 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4377 python-specific code to python/py-varobj.c.
4378 (install_visualizer): Call varobj_iter_delete instead of
4380 * varobj.h (varobj_ensure_python_env): Declare.
4382 2014-06-12 Yao Qi <yao@codesourcery.com>
4384 * varobj.c (struct varobj_item): New structure.
4385 (create_child_with_value): Update declaration.
4386 (varobj_add_child): Replace arguments 'name' and 'value' with
4387 'item'. All callers updated.
4388 (install_dynamic_child): Likewise.
4389 (update_dynamic_varobj_children): Likewise.
4390 (varobj_add_child): Likewise.
4391 (create_child_with_value): Likewise.
4393 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4395 * NEWS: Create a new section for the next release branch.
4396 Rename the section of the current branch, now that it has
4399 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4401 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4402 * version.in: Bump version to 7.8.50.DATE-cvs.
4404 2014-06-11 Pedro Alves <palves@redhat.com>
4407 * ser-mingw.c (net_windows_socket_check_pending): New function.
4408 (net_windows_select_thread): Ignore spurious wakeups. Use
4409 net_windows_socket_check_pending.
4410 (net_windows_wait_handle): Check for pending events with
4411 ioctlsocket, through net_windows_socket_check_pending, instead of
4412 checking the socket's event.
4414 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4416 * python/python-internal.h (gdb_PyObject_GetAttrString)
4417 (gdb_PyObject_HasAttrString): New inline function definitions.
4418 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4419 char * of the second argument to PyObject_GetAttrString.
4421 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4423 * serial.c (serial_write): Fix index of character to be printed
4424 in call to serial_logchar when serial debug traces are enabled.
4426 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4428 * gdbtypes (resolve_dynamic_range): Add function description.
4430 2014-06-09 Pedro Alves <palves@redhat.com>
4432 * linux-nat.c (linux_child_follow_fork): Initialize status with
4433 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4434 inner block. Only pass the signal to PTRACE_DETACH if in pass
4437 2014-06-09 Gary Benson <gbenson@redhat.com>
4439 * common/signals.c (gdb_signal_from_host): Reorder to separate
4440 the always-available ANSI-standard signals from the signals that
4442 (do_gdb_signal_to_host): Likewise.
4443 * proc-events.c (signal_table): Likewise.
4445 2014-06-08 Hui Zhu <hui@codesourcery.com>
4447 * common/linux-ptrace.c (linux_disable_event_reporting): New
4449 * common/linux-ptrace.h (linux_disable_event_reporting): New
4451 * linux-nat.c (linux_child_follow_fork): Do a single step before
4454 2014-06-07 Keith Seitz <keiths@redhat.com>
4458 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4459 from symbol_matches_domain in symtab.c. All local callers
4460 of symbol_matches_domain updated.
4461 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4462 search STRUCT_DOMAIN.
4463 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4464 independently. standard_lookup will do that automatically.
4465 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4466 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4467 (cp_lookup_symbol_in_namespace): Likewise.
4468 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4469 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4470 may return a STRUCT_DOMAIN match.
4471 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4472 * cp-support.c: Include language.h.
4473 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4475 * psymtab.c (match_partial_symbol): Compare the requested
4476 domain with the symbol's domain directly.
4477 (lookup_partial_symbol): Likewise.
4478 * symtab.c (lookup_symbol_in_language): Explain when/why
4479 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4480 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4481 appropriate languages.
4482 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4483 and moved to ada-lang.c
4484 (lookup_block_symbol): Explain that this function only returns
4485 symbol matching the requested DOMAIN.
4486 Compare the requested domain with the symbol's domain directly.
4487 (iterate_over_symbols): Compare the requested domain with the
4488 symbol's domain directly.
4489 * symtab.h (symbol_matches_domain): Remove.
4491 2014-06-06 Doug Evans <xdje42@gmail.com>
4493 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4494 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4495 (gdbscm_guile_version_is_at_least): Declare.
4496 (gdbscm_scm_string_to_int): Declare.
4497 * guile/guile.c (gdbscm_guile_major_version): New global.
4498 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4499 (guile_datadir): New static global.
4500 (gdbscm_guile_data_directory): New function.
4501 (initialize_scheme_side): Update.
4502 (misc_guile_functions): Add guile-data-directory.
4503 (initialize_gdb_module): Fetch guile version number.
4504 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4505 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4506 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4507 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4509 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4510 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4511 * guile/scm-value.c (gdbscm_value_to_string): Only call
4512 scm_port_conversion_strategy if Guile version >= 2.0.6.
4514 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4516 * main.c (print_gdb_help): Add -q and --silent.
4518 2014-06-06 Gary Benson <gbenson@redhat.com>
4520 * common/signals.c: Remove preprocessor conditionals for
4521 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4522 SIGSEGV and SIGTERM.
4523 * proc-events.c: Likewise.
4525 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4527 * symfile.c (symfile_free_objfile): Remove restriction to
4529 * symfile-mem.c (symbol_file_add_from_memory): Call
4530 add_target_sections_of_objfile.
4532 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4534 * guile/scm-value.c (gdbscm_history_append_x): Use
4535 'vlscm_get_value_smob_arg_unsafe' instead of
4536 'vlscm_scm_to_value'.
4538 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4541 * utils.c (printchar): Don't escape at all if quoter is NUL.
4542 Update function documentation to clarify effect of parameter
4544 * remote.c (escape_buffer): Pass '\\' as the quoter to
4545 fputstrn_unfiltered.
4546 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4547 generate the output.
4548 (mi_solib_unloaded): Same.
4550 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4552 * development.sh: Delete.
4553 * Makefile.in (config.status): Adjust dependency on development.sh.
4554 * configure.ac: Adjust development.sh source call.
4555 * configure: Regenerate.
4557 2014-06-04 Doug Evans <xdje42@gmail.com>
4559 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4560 is_scheme_bkpt, spec.
4561 (bpscm_make_breakpoint_smob): Initialize new members.
4562 (gdbscm_create_breakpoint_x): Split into two ...
4563 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4564 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4565 (scheme_function breakpoint_functions): Update.
4566 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4567 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4568 register-breakpoint!.
4570 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4573 * mem-break.c (z_type_supported): Return zero if
4574 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4576 2014-06-04 Tom Tromey <tromey@redhat.com>
4578 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4579 value_from_contents_and_address_unresolved.
4580 (ada_template_to_fixed_record_type_1): Likewise.
4581 (ada_which_variant_applies): Likewise.
4582 * value.h (value_from_contents_and_address_unresolved): Declare.
4583 * value.c (value_from_contents_and_address_unresolved): New
4585 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4586 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4587 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4589 2014-06-04 Tom Tromey <tromey@redhat.com>
4591 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4593 2014-06-04 Tom Tromey <tromey@redhat.com>
4595 * procfs.c (procfs_attach): Make "args" const.
4596 * windows-nat.c (windows_attach): Make "args" const.
4597 * nto-procfs.c (procfs_attach): Make "args" const.
4598 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4599 * go32-nat.c (go32_attach): Make "args" const.
4600 * gnu-nat.c (gnu_attach): Make "args" const.
4601 * darwin-nat.c (darwin_attach): Make "args" const.
4602 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4603 * linux-nat.c (linux_nat_attach): Make "args" const.
4604 * remote.c (extended_remote_attach_1, extended_remote_attach):
4606 * target.h (struct target_ops) <to_attach>: Make "args" const.
4607 (find_default_attach): Likewise.
4608 * utils.c (parse_pid_to_attach): Make "args" const.
4609 * utils.h (parse_pid_to_attach): Update.
4611 2014-06-04 Tom Tromey <tromey@redhat.com>
4613 * target-delegates.c: Rebuild.
4614 * target.c (default_thread_address_space): New function.
4615 (target_thread_address_space): Simplify.
4616 * target.h (struct target_ops) <to_thread_address_space>: Add
4617 TARGET_DEFAULT_FUNC.
4619 2014-06-04 Doug Evans <xdje42@gmail.com>
4621 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4623 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4625 * record-btrace.c: Include event-loop.h and inf-loop.h.
4626 (record_btrace_resume_exec_dir)
4627 (record_btrace_async_inferior_event_handler)
4628 (record_btrace_handle_async_inferior_event): New.
4629 (record_btrace_open): Create async event handler.
4630 (record_btrace_close): Delete async event handler.
4631 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4632 Mark async event handler.
4633 (record_btrace_execution_direction): New.
4634 (init_record_btrace_ops): Initialize to_execution_direction.
4636 2014-06-03 Doug Evans <xdje42@gmail.com>
4638 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4639 (gdbscm_make_parameter): Ditto.
4641 2014-06-03 Doug Evans <dje@google.com>
4643 * exec.c (exec_close_1): Call clear_section_table instead of
4644 resize_section_table.
4645 (clear_section_table): New function.
4646 (resize_section_table): Make static. Rename arg num_added to
4648 * exec.h (clear_section_table): Declare.
4649 (resize_section_table): Delete.
4650 * progspace.c (release_program_space): Call clear_section_table
4651 instead of resize_section_table.
4653 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4655 * NEWS (Python Scripting): Add entry about the new xmethods
4658 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4660 * python/py-xmethods.c: New file.
4661 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4662 (objfpy_dealloc): XDECREF on the new xmethods field.
4663 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4665 (objfpy_get_xmethods): New function.
4666 (objfile_getset): New entry 'xmethods'.
4667 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4668 (pspy_dealloc): XDECREF on the new xmethods field.
4669 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4671 (pspy_get_xmethods): New function.
4672 (pspace_getset): New entry 'xmethods'.
4673 * python/python-internal.h: Add declarations for new functions.
4674 * python/python.c (_initialize_python): Invoke
4675 gdbpy_initialize_xmethods.
4676 * python/lib/gdb/__init__.py (xmethods): New
4678 * python/lib/gdb/xmethod.py: New file.
4679 * python/lib/gdb/command/xmethods.py: New file.
4681 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4683 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4684 best match method returned by find_overload_match is an xmethod.
4685 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4686 the best matching operator returned by find_overload_match is an
4688 * valops.c: #include "extension.h".
4689 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4690 Return void. The list of matching source methods is returned in
4691 "fn_list" and a vector of matching debug method workers is
4692 returned in "xm_worker_vec". Update all callers.
4693 (value_find_oload_method_list): Likewise.
4694 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4695 non-NULL, then the index of the best matching method in this
4696 vector is returned. Update all callers.
4697 (find_overload_match): Include xmethods while performing overload
4700 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4702 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4703 * extension-priv.h (struct extension_language_ops): Add the
4705 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4706 get_matching_xmethod_workers, get_xmethod_argtypes,
4707 invoke_xmethod, free_xmethod_worker,
4708 free_xmethod_worker_vec): New functions.
4709 * extension.h: #include "common/vec.h".
4710 New function declarations.
4711 (struct xmethod_worker): New struct.
4712 (VEC (xmethod_worker_ptr)): New vector type.
4713 (xmethod_worker_ptr): New typedef.
4714 (xmethod_worker_vec): Likewise.
4715 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4717 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4718 (struct builtin_type): New field "xmethod".
4719 * valarith.c (value_ptradd): Assert that the value argument is not
4721 * valops.c (value_must_coerce_to_target): Return 0 for
4722 lval_xcallable values.
4723 * value.c (struct value): New field XM_WORKER in the field
4725 (value_address, value_raw_address): Return 0 for lval_xcallable
4727 (set_value_address): Assert that the value is not an
4729 (value_free): Free the associated xmethod worker when freeing
4730 lval_xcallable values.
4731 (set_value_component_location): Assert that the WHOLE value is not
4733 (value_of_xmethod, call_xmethod): New functions.
4734 * value.h: Declare "struct xmethod_worker".
4735 Declare new functions value_of_xmethod, call_xmethod.
4737 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4738 Pedro Alves <palves@redhat.com>
4740 PR breakpoints/17000
4741 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4742 New function, extracted from software_breakpoint_inserted_here_p.
4743 (software_breakpoint_inserted_here_p): Replace factored out code
4744 by call to find_non_raw_software_breakpoint_inserted_here.
4745 (bp_target_info_copy_insertion_state): New function.
4746 (bkpt_insert_location): Handle the case of a single-step
4747 breakpoint already inserted at the same address.
4748 (bkpt_remove_location): Handle the case of a single-step
4749 breakpoint still inserted at the same address.
4750 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4751 breakpoint already inserted at the same address.
4752 (deprecated_remove_raw_breakpoint): Handle the case of a
4753 non-raw breakpoint still inserted at the same address.
4754 (find_single_step_breakpoint): New function, extracted from
4755 single_step_breakpoint_inserted_here_p.
4756 (find_single_step_breakpoint): New function,
4757 factored out from single_step_breakpoint_inserted_here_p.
4758 (single_step_breakpoint_inserted_here_p): Reimplement.
4760 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4762 Pushed by Joel Brobecker <brobecker@adacore.com>
4763 * source.c (show_substitute_path_command): Fix display of matching
4766 2014-06-03 Gary Benson <gbenson@redhat.com>
4768 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4770 2014-06-02 Doug Evans <xdje42@gmail.com>
4772 Add parameter support for Guile.
4773 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4774 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4775 (scm-param.o): New rule.
4776 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4777 (gdbscm_misc_error): Declare.
4778 (gdbscm_canonicalize_command_name): Declare.
4779 (gdbscm_scm_to_host_string): Declare.
4780 (gdbscm_scm_from_host_string): Declare.
4781 (gdbscm_initialize_parameters): Declare.
4782 * guile/guile.c (initialize_gdb_module): Call
4783 gdbscm_initialize_parameters.
4784 * guile/lib/gdb.scm: Export parameter symbols.
4785 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4786 cmdscm_canonicalize_name and made public. All callers updated.
4787 * guile/scm-exception.c (gdbscm_misc_error): New function.
4788 * guile/scm-param.c: New file.
4789 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4790 (gdbscm_scm_to_host_string): New function.
4791 (gdbscm_scm_from_host_string): New function.
4792 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4794 2014-06-02 Doug Evans <xdje42@gmail.com>
4796 Add command support for Guile.
4797 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4798 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4799 (scm-cmd.o): New rule.
4800 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4801 (gdbscm_user_error_p): Declare.
4802 (gdbscm_parse_command_name): Declare.
4803 (gdbscm_valid_command_class_p): Declare.
4804 (gdbscm_initialize_commands): Declare.
4805 * guile/guile.c (initialize_gdb_module): Call
4806 gdbscm_initialize_commands.
4807 * guile/lib/gdb.scm: Export command symbols.
4808 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4809 (throw-user-error): New function.
4810 * guile/scm-cmd.c: New file.
4811 * guile/scm-exception.c (user_error_symbol): New static global.
4812 (gdbscm_user_error_p): New function.
4813 (gdbscm_initialize_exceptions): Set user_error_symbol.
4814 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4816 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4818 * top.c (command_loop): Handle comments here...
4819 (command_line_input): ... not here.
4821 2014-06-02 Doug Evans <xdje42@gmail.com>
4823 Add progspace support for Guile.
4824 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4825 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4826 (scm-progspace.o): New rule.
4827 * guile/guile-internal.h (pspace_smob): New typedef.
4828 (psscm_pspace_smob_pretty_printers): Declare.
4829 (psscm_pspace_smob_from_pspace): Declare.
4830 (psscm_scm_from_pspace): Declare.
4831 * guile/guile.c (initialize_gdb_module): Call
4832 gdbscm_initialize_pspaces.
4833 * guile/lib/gdb.scm: Export progspace symbols.
4834 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4836 (append-pretty-printer!): Ditto.
4837 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4839 * guile/scm-progspace.c: New file.
4841 2014-06-03 Alan Modra <amodra@gmail.com>
4843 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4844 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4846 2014-06-02 Doug Evans <dje@google.com>
4848 Add support for skeletonless type units.
4849 * dwarf2read.c (struct dwarf2_per_objfile): New member
4850 n_allocated_type_units.
4851 (struct dwarf2_per_objfile) <tu_stats>: New member
4852 nr_all_type_units_reallocs.
4853 (create_signatured_type_table_from_index): Initialize
4854 n_allocated_type_units
4855 (create_all_type_units): Ditto.
4856 (add_type_unit): Move up in file. New arg slot.
4857 All callers updated. Increase space for all_type_units more
4859 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4860 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4861 (lookup_dwp_signatured_type): Ditto.
4862 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4863 All callers updated.
4864 (build_type_psymtabs_1): Leave type_unit_groups as
4865 NULL if no TUs present.
4866 (print_tu_stats): New function.
4867 (process_skeletonless_type_unit): New function.
4868 (process_dwo_file_for_skeletonless_type_units): New
4870 (process_skeletonless_type_units): New function.
4871 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4872 Call print tu_stats if debugging enabled.
4874 2014-06-02 Pedro Alves <palves@redhat.com>
4876 * breakpoint.c (build_target_command_list): Don't build a command
4877 list if we have any duplicate location that isn't a dprintf.
4879 2014-06-02 Pedro Alves <palves@redhat.com>
4881 * breakpoint.c (dprintf_breakpoint_hit): New function.
4882 (initialize_breakpoint_ops): Install it as dprintf's
4883 breakpoint_hit method.
4885 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4887 * source.c (substitute_path_rule_matches): Simplify using
4888 filename_ncmp instead of FILENAME_CMP.
4890 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4892 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4894 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4896 * configure.ac: When Guile is available, check for the
4897 availability of 'scm_new_smob'.
4898 * configure, config.h.in: Regenerate.
4899 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4902 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4904 * frame.c (struct frame_info): Add stop_string field.
4905 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4906 (get_prev_frame_always): Old content moved into
4907 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4908 TRY_CATCH, handle MEMORY_ERROR exceptions.
4909 (frame_stop_reason_string): New function definition.
4910 * frame.h (unwind_stop_reason_to_string): Extend comment to
4911 mention frame_stop_reason_string.
4912 (frame_stop_reason_string): New function declaration.
4913 * stack.c (frame_info): Switch to frame_stop_reason_string.
4914 (backtrace_command_1): Switch to frame_stop_reason_string.
4915 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4916 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4917 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4919 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4921 * frame.c (frame_stop_reason_string): Rename to ...
4922 (unwind_stop_reason_to_string): this.
4923 * frame.h (frame_stop_reason_string): Rename to ...
4924 (unwind_stop_reason_to_string): this.
4925 * stack.c (frame_info): Update call to frame_stop_reason_string.
4926 (backtrace_command_1): Likewise.
4927 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4928 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4930 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4932 * frame.c (remove_prev_frame): New function.
4933 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4936 2014-05-29 Pedro Alves <palves@redhat.com>
4938 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4939 and make it const. When a single-step decays to a continue,
4940 clear 'step', not 'hw_step'. Pass whether the caller wanted
4941 to step to user_visible_resume_ptid, not what we ask the
4944 2014-05-29 Pedro Alves <palves@redhat.com>
4946 * infrun.c (process_event_stop_test, handle_step_into_function)
4947 (handle_step_into_function_backward): Adjust.
4948 Don't set the even thread's stop_step and call stop_waiting before
4949 calling end_stepping_range. Instead do that ...
4950 (end_stepping_range): ... here. Take an ecs pointer parameter.
4952 2014-05-29 Pedro Alves <palves@redhat.com>
4954 * infrun.c (stop_stepping): Rename to ...
4955 (stop_waiting): ... this.
4956 (proceed): Update comment.
4957 (process_event_stop_test, handle_inferior_event)
4958 (handle_signal_stop, handle_step_into_function)
4959 (handle_step_into_function_backward): Update.
4961 2014-05-29 Pedro Alves <palves@redhat.com>
4963 * infcall.c (run_inferior_call): Don't check whether the current
4964 thread is running after the proceed call.
4966 2014-05-29 Pedro Alves <palves@redhat.com>
4967 Tom Tromey <tromey@redhat.com>
4969 * NEWS: Mention "maint set target-async", "set mi-async", and that
4970 background execution commands are now always available.
4971 * target.h (target_async_permitted): Update comment.
4972 * target.c (target_async_permitted, target_async_permitted_1):
4974 (set_target_async_command): Rename to ...
4975 (maint_set_target_async_command): ... this.
4976 (show_target_async_command): Rename to ...
4977 (maint_show_target_async_command): ... this.
4978 (_initialize_target): Adjust.
4979 * infcmd.c (prepare_execution_command): Make extern.
4980 * inferior.h (prepare_execution_command): Declare.
4981 * infrun.c (set_observer_mode): Leave target async alone.
4982 * mi/mi-interp.c (mi_interpreter_init): Install
4983 mi_on_sync_execution_done as sync_execution_done observer.
4984 (mi_on_sync_execution_done): New function.
4985 (mi_execute_command_input_handler): Don't print the prompt if we
4986 just started a synchronous command with an async target.
4987 (mi_on_resume): Check sync_execution before printing prompt.
4988 * mi/mi-main.h (mi_async_p): Declare.
4989 * mi/mi-main.c: Include gdbcmd.h.
4990 (mi_async_p): New function.
4991 (mi_async, mi_async_1): New globals.
4992 (set_mi_async_command, show_mi_async_command, mi_async): New
4994 (exec_continue): Call prepare_execution_command.
4995 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4996 (mi_execute_async_cli_command): Use mi_async_p.
4997 (_initialize_mi_main): Install "set mi-async". Make
4998 "target-async" a deprecated alias.
5000 2014-05-29 Pedro Alves <palves@redhat.com>
5002 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5003 (_initialize_cli_interp): Adjust.
5004 * event-loop.c: Include "observer.h".
5005 (start_event_loop): Notify 'command_error' observers instead of
5006 calling display_gdb_prompt. Remove FIXME comment.
5007 * event-top.c (display_gdb_prompt): Remove call into the
5009 * inf-loop.c: Include "observer.h".
5010 (inferior_event_handler): Notify 'command_error' observers instead
5011 of calling display_gdb_prompt.
5012 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5013 observers instead of calling display_gdb_prompt.
5014 * interps.c (interp_set): Don't call display_gdb_prompt.
5015 (current_interp_display_prompt_p): Delete.
5016 * interps.h (interp_prompt_p): Delete declaration.
5017 (interp_prompt_p_ftype): Delete.
5018 (struct interp_procs) <prompt_proc_p>: Delete field.
5019 (current_interp_display_prompt_p): Delete declaration.
5020 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5021 (_initialize_mi_interp): Adjust.
5022 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5023 'command_error' observers.
5024 (tui_on_sync_execution_done, tui_on_command_error): New
5026 (tui_display_prompt_p): Delete.
5027 (_initialize_tui_interp): Adjust.
5029 2014-05-29 Pedro Alves <palves@redhat.com>
5032 * cli/cli-interp.c: Include infrun.h and observer.h.
5033 (cli_uiout, cli_interp): New globals.
5034 (cli_on_signal_received, cli_on_end_stepping_range)
5035 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5037 (cli_interpreter_init): Install them as 'end_stepping_range',
5038 'signal_received' 'signal_exited', 'exited' and 'no_history'
5040 (_initialize_cli_interp): Remove cli_interp local.
5041 * infrun.c (handle_inferior_event): Call the several stop reason
5042 observers instead of printing the stop reason directly.
5043 (end_stepping_range): New function.
5044 (print_end_stepping_range_reason, print_signal_exited_reason)
5045 (print_exited_reason, print_signal_received_reason)
5046 (print_no_history_reason): Make static, and add an uiout
5047 parameter. Print to that instead of to CURRENT_UIOUT.
5048 * infrun.h (print_end_stepping_range_reason)
5049 (print_signal_exited_reason, print_exited_reason)
5050 (print_signal_received_reason print_no_history_reason): New
5052 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5054 <cli_uiout>: New field.
5055 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5056 uiout for CLI output. Install 'signal_received',
5057 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5059 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5060 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5061 (mi_on_no_history): New functions.
5062 (ui_out_free_cleanup): Delete function.
5063 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5064 instead use the one already stored in the MI interpreter data.
5065 (mi_ui_out): Adjust.
5066 * tui/tui-interp.c: Include infrun.h and observer.h.
5067 (tui_interp): New global.
5068 (tui_on_signal_received, tui_on_end_stepping_range)
5069 (tui_on_signal_exited, tui_on_exited)
5070 (tui_on_no_history): New functions.
5071 (tui_init): Install them as 'end_stepping_range',
5072 'signal_received' 'signal_exited', 'exited' and 'no_history'
5074 (_initialize_tui_interp): Delete tui_interp local.
5076 2014-05-29 Pedro Alves <palves@redhat.com>
5079 * linux-nat.c (linux_nat_resume_callback): Rename the second
5080 parameter to 'except'. Skip LP if it points to EXCEPT.
5081 (linux_nat_resume): Don't mark the event lwp as not stopped
5082 before resuming sibling lwps. Instead ask
5083 linux_nat_resume_callback to skip the event lwp. Mark it as not
5084 stopped after actually resuming it.
5085 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5087 (wait_lwp): Mark the lwp as stopped here.
5088 (stop_wait_callback): Mark the lwp as not stopped right after
5089 resuming it. Don't mark lwps as stopped here.
5090 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5091 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5093 2014-05-29 Pedro Alves <palves@redhat.com>
5096 * infrun.c (resume): Determine how much to resume depending on
5097 whether the caller wanted a step, not whether we can hardware step
5098 the target. Mark all threads that we intend to run as running,
5099 unless we're calling an inferior function.
5100 (normal_stop): If the thread is running an infcall, don't finish
5102 * target.c (target_resume): Don't mark threads as running here.
5104 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5106 * serial.c (_initialize_serial): Remove support for
5107 the "set remotebaud" and "show remotebaud" commands.
5108 * NEWS: Add entry documenting the removal of that command.
5110 2014-05-28 Yao Qi <yao@codesourcery.com>
5112 * charset.c: Fix typo in comments.
5114 2014-05-27 Gary Benson <gbenson@redhat.com>
5116 * utils.c (internal_vproblem): Prompt for a bug report.
5118 2014-05-26 Andy Wingo <wingo@igalia.com>
5120 * guile/scm-arch.c (arscm_mark_arch_smob):
5121 * guile/scm-block.c (bkscm_mark_block_smob)
5122 (bkscm_mark_block_syms_progress_smob):
5123 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5124 * guile/scm-exception.c (exscm_mark_exception_smob):
5125 * guile/scm-frame.c (frscm_mark_frame_smob):
5126 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5127 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5128 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5129 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5130 (ppscm_mark_pretty_printer_worker_smob):
5131 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5132 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5133 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5134 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5136 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5139 2014-05-26 Andy Wingo <wingo@igalia.com>
5140 Doug Evans <xdje42@gmail.com>
5142 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5143 empty_base_class. All uses updated.
5144 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5145 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5147 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5148 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5149 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5150 (gdbscm_gsmob_has_property_p, add_property_name)
5151 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5152 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5153 (gdb-object-has-property?, gdb-object-properties): Remove.
5154 (gdb-object-kind): Renamed from gsmob-kind.
5156 2014-05-26 Andy Wingo <wingo@igalia.com>
5158 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5159 * configure: Regenerate.
5161 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5163 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5165 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5167 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5168 (replay_memory_access_read_only, replay_memory_access_read_write)
5169 (replay_memory_access_types, replay_memory_access)
5170 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5171 (cmd_set_record_btrace, cmd_show_record_btrace)
5172 (cmd_show_replay_memory_access): New.
5173 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5174 (record_btrace_remove_breakpoint): Replace
5175 record_btrace_allow_memory_access with replay_memory_access.
5176 (_initialize_record_btrace): Add commands.
5177 * NEWS: Announce it.
5179 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5181 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5183 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5185 * MAINTAINERS (Write After Approval): Move self back from
5188 2014-05-22 Pedro Alves <palves@redhat.com>
5190 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5191 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5192 (disable_randomization, enum exec_direction_kind)
5193 (execution_direction, stop_registers, start_remote)
5194 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5195 (wait_for_inferior, normal_stop, get_last_target_status)
5196 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5197 (insert_step_resume_breakpoint_at_sal)
5198 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5199 (set_step_info, print_stop_event, signal_stop_state)
5200 (signal_print_state, signal_pass_state, signal_stop_update)
5201 (signal_print_update, signal_pass_update)
5202 (update_signals_program_target, clear_exit_convenience_vars)
5203 (displaced_step_dump_bytes, update_observer_mode)
5204 (signal_catch_update, gdb_signal_from_command): Move
5206 * infrun.h: ... to this new file.
5207 * amd64-tdep.c: Include infrun.h.
5208 * annotate.c: Include infrun.h.
5209 * arch-utils.c: Include infrun.h.
5210 * arm-linux-tdep.c: Include infrun.h.
5211 * arm-tdep.c: Include infrun.h.
5212 * break-catch-sig.c: Include infrun.h.
5213 * breakpoint.c: Include infrun.h.
5214 * common/agent.c: Include infrun.h instead of inferior.h.
5215 * corelow.c: Include infrun.h.
5216 * event-top.c: Include infrun.h.
5217 * go32-nat.c: Include infrun.h.
5218 * i386-tdep.c: Include infrun.h.
5219 * inf-loop.c: Include infrun.h.
5220 * infcall.c: Include infrun.h.
5221 * infcmd.c: Include infrun.h.
5222 * infrun.c: Include infrun.h.
5223 * linux-fork.c: Include infrun.h.
5224 * linux-nat.c: Include infrun.h.
5225 * linux-thread-db.c: Include infrun.h.
5226 * monitor.c: Include infrun.h.
5227 * nto-tdep.c: Include infrun.h.
5228 * procfs.c: Include infrun.h.
5229 * record-btrace.c: Include infrun.h.
5230 * record-full.c: Include infrun.h.
5231 * remote-m32r-sdi.c: Include infrun.h.
5232 * remote-mips.c: Include infrun.h.
5233 * remote-notif.c: Include infrun.h.
5234 * remote-sim.c: Include infrun.h.
5235 * remote.c: Include infrun.h.
5236 * reverse.c: Include infrun.h.
5237 * rs6000-tdep.c: Include infrun.h.
5238 * s390-linux-tdep.c: Include infrun.h.
5239 * solib-irix.c: Include infrun.h.
5240 * solib-osf.c: Include infrun.h.
5241 * solib-svr4.c: Include infrun.h.
5242 * target.c: Include infrun.h.
5243 * top.c: Include infrun.h.
5244 * windows-nat.c: Include infrun.h.
5245 * mi/mi-interp.c: Include infrun.h.
5246 * mi/mi-main.c: Include infrun.h.
5247 * python/py-threadevent.c: Include infrun.h.
5249 2014-05-22 Pedro Alves <palves@redhat.com>
5251 * infrun.c (handle_inferior_event): Store the exit code for
5252 --return-child-result here, instead of ...
5253 (print_exited_reason): ... here.
5255 2014-05-21 Pedro Alves <palves@redhat.com>
5258 * gdbthread.h (struct thread_control_state): New field
5260 * infrun.c (follow_fork): Copy the new thread control field to the
5262 (clear_proceed_status_thread): Clear the new thread control field.
5263 (proceed): Set the new thread control field.
5264 * interps.h (command_interp): Declare.
5265 * interps.c (command_interpreter): New global.
5266 (command_interp): New function.
5267 (interp_exec): Set `command_interpreter' while here.
5268 * cli-out.c (cli_uiout_dtor): New function.
5269 (cli_ui_out_impl): Install it.
5270 * mi/mi-interp.c: Include cli-out.h.
5271 (mi_cmd_interpreter_exec): Add comment.
5272 (restore_current_uiout_cleanup): New function.
5273 (ui_out_free_cleanup): New function.
5274 (mi_on_normal_stop): If finishing an execution command started by
5275 a CLI command, or any kind of breakpoint-like event triggered,
5276 print the stop event to the output (CLI) stream.
5277 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5279 2014-05-21 Pedro Alves <palves@redhat.com>
5281 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5282 current source line having changed.
5283 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5284 * infrun.c (normal_stop): Adjust call to
5285 set_current_sal_from_frame.
5286 * source.c (clear_lines_listed_range): New function.
5287 (set_current_source_symtab_and_line, identify_source_line): Clear
5288 the lines listed range.
5289 (line_info): Handle the first "info line" after the current source
5290 line having changed.
5291 * stack.c (print_stack_frame): Remove center handling.
5292 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5295 2014-05-21 Pedro Alves <palves@redhat.com>
5297 * inf-child.c (inf_child_mourn_inferior): New function.
5298 * inf-child.h (inf_child_mourn_inferior): New declaration.
5299 * darwin-nat.c (darwin_mourn_inferior): Use
5300 inf_child_mourn_inferior.
5301 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5302 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5303 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5304 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5305 * windows-nat.c (windows_mourn_inferior): Likewise.
5307 2014-05-21 Doug Evans <xdje42@gmail.com>
5309 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5311 2014-05-21 Doug Evans <xdje42@gmail.com>
5313 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5314 (gdbscm_out_of_range_error): Ditto.
5315 (gdbscm_memory_error): Ditto.
5316 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5317 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5318 (gdbscm_out_of_range_error): Update.
5319 (gdbscm_memory_error): Update.
5320 (gdbscm_scm_to_target_string_unsafe): Delete.
5322 2014-05-21 Pedro Alves <palves@redhat.com>
5324 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5326 (inf_child_open_target): New function.
5327 (inf_child_open): Use inf_child_open_target to push the target
5328 instead of erroring out.
5329 (inf_child_disconnect, inf_child_close)
5330 (inf_child_maybe_unpush_target): New functions.
5331 (inf_child_target): Install inf_child_disconnect and
5332 inf_child_close. Store a pointer to the returned object.
5333 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5335 * target.c (auto_connect_native_target): New global.
5336 (show_default_run_target): New function.
5337 (find_default_run_target): Return NULL if automatically connecting
5338 to the native target is disabled.
5339 (_initialize_target): Install set/show auto-connect-native-target.
5340 * NEWS: Mention "set auto-connect-native-target", and "target
5342 * linux-nat.c (super_close): New global.
5343 (linux_nat_close): Call super_close.
5344 (linux_nat_add_target): Store a pointer to the base class's
5346 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5347 inf_child_maybe_unpush.
5348 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5350 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5351 the inferior. Use inf_child_maybe_unpush_target.
5352 (inf_ttrace_attach): Don't push the target if it is already
5354 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5355 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5356 after mourning the inferior. Use inf_child_maybe_unpush_target.
5357 (darwin_attach_pid): Don't push the target if it is already
5359 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5360 mourning the inferior. Use inf_child_maybe_unpush_target.
5361 (gnu_detach): Use inf_child_maybe_unpush_target.
5362 * go32-nat.c (go32_create_inferior): Don't push the target if it
5364 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5365 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5366 (procfs_open): Rename to ...
5367 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5368 comments. Can target_preopen before changing node. Call
5369 inf_child_open_target to push the target explicitly.
5370 (procfs_attach): Don't push the target if it is already pushed.
5371 (procfs_detach): Use inf_child_maybe_unpush_target.
5372 (procfs_create_inferior): Don't push the target if it is already
5374 (nto_native_ops): New global.
5375 (procfs_open): Reimplement.
5376 (procfs_native_open): New function.
5377 (init_procfs_targets): Install procfs_native_open as to_open of
5378 "target native". Store a pointer to the "native" target in
5380 * procfs.c (procfs_attach): Don't push the target if it is already
5382 (procfs_detach): Use inf_child_maybe_unpush_target.
5383 (procfs_mourn_inferior): Only unpush the target after mourning the
5384 inferior. Use inf_child_maybe_unpush_target.
5385 (procfs_init_inferior): Don't push the target if it is already
5387 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5388 if it is already pushed.
5390 2014-05-21 Pedro Alves <palves@redhat.com>
5392 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5393 and "procfs" targets are now called "native" instead.
5395 2014-05-21 Pedro Alves <palves@redhat.com>
5397 * go32-nat.c (go32_open): Delete.
5398 (go32_target): Don't override the to_open method.
5400 2014-05-21 Pedro Alves <palves@redhat.com>
5402 * nto-procfs.c (procfs_can_run): New function.
5403 (nto_procfs_ops): New global.
5404 (init_procfs_targets): New, based on procfs_target. Install
5405 "target native" in addition to "target procfs".
5406 (_initialize_procfs): Call init_procfs_targets instead of adding
5409 2014-05-21 Pedro Alves <palves@redhat.com>
5411 * windows-nat.c (windows_target): Don't override to_shortname,
5412 to_longname or to_doc.
5414 2014-05-21 Pedro Alves <palves@redhat.com>
5416 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5419 2014-05-21 Pedro Alves <palves@redhat.com>
5421 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5422 to_shortname, to_longname or to_doc.
5424 2014-05-21 Pedro Alves <palves@redhat.com>
5426 * go32-nat.c (go32_target): Don't override to_shortname,
5427 to_longname or to_doc.
5429 2014-05-21 Pedro Alves <palves@redhat.com>
5431 * inf-child.c (inf_child_open): Remove mention of "child".
5432 (inf_child_target): Rename target to "native" instead of "child".
5434 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5436 * Makefile.in (SFILES): Delete "regset.c".
5437 (COMMON_OBS): Delete "regset.o".
5439 * regset.h (regset_alloc): Delete prototype.
5441 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5443 * sparc-linux-tdep.c (sparc32_linux_gregset)
5444 (sparc32_linux_fpregset): New static regset structures.
5445 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5446 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5448 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5449 (sparc64_linux_fpregset): New static regset structures.
5450 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5451 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5452 New static regset structures.
5453 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5454 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5455 New static regset structures.
5456 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5457 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5458 New static regset structures.
5459 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5460 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5461 New static regset structures.
5462 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5464 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5466 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5467 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5468 register maps ("regmaps") from "*regset" to "*regmap". Do this
5469 for all regmap types and variables.
5470 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5471 (sparc32_linux_supply_core_gregset)
5472 (sparc32_linux_collect_core_gregset)
5473 (sparc32_linux_supply_core_fpregset)
5474 (sparc32_linux_collect_core_fpregset): Likewise.
5475 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5476 (sparc_gregmap, sparc_fpregmap): ... these.
5477 (sparc_supply_gregset, sparc_collect_gregset)
5478 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5479 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5480 (_initialize_sparc_nat): Rename regmaps.
5481 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5482 (sparc_gregmap, sparc_fpregmap): ... these.
5483 (sparc_supply_gregset, sparc_collect_gregset)
5484 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5485 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5487 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5488 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5490 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5492 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5493 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5494 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5496 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5497 (sparc32_bsd_fpregset): Rename to...
5498 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5499 (sparc32_bsd_fpregmap): ... these.
5500 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5501 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5502 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5503 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5504 (struct sparc_gregmap, struct sparc_fpregmap)
5505 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5506 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5507 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5508 (sparc32_supply_regset, sparc32_collect_gregset)
5509 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5511 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5512 (sparc64_linux_ptrace_gregmap): ... this.
5513 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5514 (_initialize_sparc64_linux_nat): Rename regmaps.
5515 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5516 (sparc64_linux_core_gregmap): ... this.
5517 (sparc64_linux_supply_core_gregset)
5518 (sparc64_linux_collect_core_gregset)
5519 (sparc64_linux_supply_core_fpregset)
5520 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5521 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5522 (sparc64_sol2_fpregset): Rename to...
5523 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5524 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5525 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5527 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5528 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5529 (sparc64_bsd_fpregset): Rename to...
5530 (struct sparc_gregmap, sparc64_sol2_gregmap)
5531 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5532 (sparc64_bsd_fpregmap): ... these.
5533 (sparc64_supply_gregset, sparc64_collect_gregset)
5534 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5536 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5537 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5538 (sparc64fbsd_gregmap): ... this.
5539 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5540 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5542 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5543 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5544 (sparc64nbsd_collect_fpregset): Likewise.
5545 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5546 (sparc64nbsd_gregmap): ... this.
5547 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5549 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5550 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5551 (sparc64obsd_gregmap): ... this.
5552 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5554 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5555 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5556 (sparc32nbsd_gregmap): ... this.
5557 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5560 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5562 * score-tdep.c (score7_linux_gregset): New static regset
5564 (score7_linux_regset_from_core_section): Remove dynamic regset
5566 (score_gdbarch_init): Drop allocation of tdep structure.
5567 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5569 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5571 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5573 (am33_regset_from_core_section): Remove dynamic regset
5576 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5578 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5579 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5581 (mips_linux_regset_from_core_section): Remove dynamic regset
5583 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5584 'gregset64', 'fpregset', and 'fpregset64'.
5585 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5586 deleted tdep fields.
5588 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5590 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5592 (amd64_regset_from_core_section): Remove dynamic regset
5594 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5596 (amd64obsd_regset_from_core_section): Remove dynamic regset
5598 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5600 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5601 x86-common regset supply function.
5602 * i386-tdep.c (i386_collect_gregset): Make static.
5603 (i386_gregset): New global regset structure.
5604 (i386_fpregset, i386_xstateregset): New static regset structures.
5605 (i386_regset_from_core_section): Remove dynamic regset
5607 (i386_gdbarch_init): Remove initialization of tdep fields
5608 'gregset', 'fpregset', and 'xstateregset'.
5609 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5610 'fpregset', and 'xstateregset'.
5611 (i386_collect_gregset): Remove prototype.
5612 (i386_gregset): New declaration.
5613 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5615 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5618 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5620 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5621 (arm_linux_vfpregset): New static regset structures.
5622 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5624 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5625 and 'vfpregset' fields.
5627 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5629 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5630 (aarch64_linux_fpregset): New static regset structures.
5631 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5632 of regset structures.
5633 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5636 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5638 * regset.h (struct regset): Remove gdbarch field.
5639 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5640 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5641 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5643 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5644 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5645 (ppc32_linux_vsxregset): Likewise.
5646 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5647 via the regcache instead of the regset.
5648 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5649 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5650 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5651 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5654 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5656 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5657 Constify structures.
5658 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5659 (alphanbsd_aout_gregset): Likewise.
5660 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5661 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5663 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5664 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5666 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5667 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5668 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5669 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5670 * m88k-tdep.c (m88k_gregset): Likewise.
5671 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5672 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5673 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5674 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5675 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5676 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5677 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5678 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5679 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5681 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5682 * sh-tdep.h (sh_corefile_gregset): Likewise.
5683 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5684 * vax-tdep.c (vax_gregset): Likewise.
5686 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5688 Fix TLS access for -static -pthread.
5689 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5690 (try_thread_db_load_1): Initialize it.
5691 (thread_db_get_thread_local_address): Call it if LM is zero.
5692 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5693 * target.h (struct target_ops) (to_get_thread_local_address): Add
5694 load_module_addr comment.
5696 2014-05-21 Pedro Alves <palves@redhat.com>
5698 * dcache.c (dcache_read_memory_partial): If reading the cache line
5699 fails, fallback to reading just the memory the caller wanted.
5701 2014-05-20 Doug Evans <dje@google.com>
5703 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5704 instead of get_current_arch.
5706 2014-05-20 Pedro Alves <palves@redhat.com>
5708 * NEWS: Mention that compare-sections now works with all targets.
5710 * remote.c (PACKET_qCRC): New enum value.
5711 (remote_verify_memory): Don't send qCRC if the target has no
5712 execution. Use packet_support/packet_ok. If the target doesn't
5713 support the qCRC packet, fallback to a deep memory copy.
5714 (compare_sections_command): Say "target image" instead of "remote
5716 (_initialize_remote): Add PACKET_qCRC to the list of config
5717 packets that have no associated command. Extend comment.
5718 * target.c (simple_verify_memory, default_verify_memory): New
5720 * target.h (struct target_ops) <to_verify_memory>: Default to
5721 default_verify_memory.
5722 (simple_verify_memory): New declaration.
5723 * target-delegates.c: Regenerate.
5725 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5727 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5729 2014-05-20 Hui Zhu <hui@codesourcery.com>
5730 Yao Qi <yao@codesourcery.com>
5733 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5734 and change address of sp and pc.
5736 2014-05-19 Tom Tromey <tromey@redhat.com>
5738 * gdbtypes.c (rank_function): Use XNEWVEC.
5739 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5741 2014-05-19 Doug Evans <dje@google.com>
5743 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5744 build_type_unit_groups and moved closer to only caller. Remove
5745 arguments. All references updated. Remove outdated .gdb_index
5747 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5748 build_type_psymtabs_1.
5750 2014-05-19 Doug Evans <dje@google.com>
5752 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5753 n_type_unit_groups, all_type_unit_groups. All uses removed.
5754 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5755 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5756 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5757 (add_type_unit_group_to_table): Delete.
5759 2014-05-19 Doug Evans <dje@google.com>
5761 * eval.c (evaluate_subexp_standard): Add some comments.
5763 2014-05-17 Doug Evans <xdje42@gmail.com>
5765 * progspace.c (remove_program_space): Delete, unused.
5766 * progspace.h (remove_program_space): Ditto.
5768 2014-05-17 Doug Evans <xdje42@gmail.com>
5770 * inferior.c (prune_inferiors): Fix comment.
5771 (remove_inferior_command): Call prune_program_spaces.
5773 2014-05-16 Doug Evans <dje@google.com>
5775 New command line option -D.
5777 * main.c (set_gdb_data_directory): New function.
5778 (captured_main): Recognize -D. Flag error for --data-directory "".
5779 Call set_gdb_data_directory.
5780 (print_gdb_help): Print --data-directory, -D.
5781 * main.h (set_gdb_data_directory): Declare.
5782 * top.c (staged_gdb_datadir): New static global.
5783 (set_gdb_datadir): Call set_gdb_data_directory
5784 (show_gdb_datadir): New function.
5785 (init_main): Update init of data-directory parameter.
5787 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5789 Import the "dirfd" gnulib module.
5790 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5791 * gnulib/aclocal.m4: Update.
5792 * gnulib/config.in: Update.
5793 * gnulib/configure: Update.
5794 * gnulib/import/Makefile.am: Update.
5795 * gnulib/import/Makefile.in: Update.
5796 * gnulib/import/dirfd.c: New.
5797 * gnulib/import/m4/dirfd.m4: New.
5798 * gnulib/import/m4/gnulib-cache.m4: Update.
5799 * gnulib/import/m4/gnulib-comp.m4: Update.
5801 2014-05-16 Pierre Muller <muller@sourceware.org>
5802 Yao Qi <yao@codesourcery.com>
5804 * valprint.c (print_wchar): Move the code on checking whether
5805 W is a printable wide char to the default branch of switch
5806 statement below. Call wchar_printable instead of gdb_iswprint.
5808 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5810 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5811 ldr.w and ldrd instructions.
5813 2014-05-15 Doug Evans <dje@google.com>
5815 * dwarf2read.c (read_structure_type): Delete outdated comments.
5817 2014-05-14 Tom Tromey <tromey@redhat.com>
5819 * macrocmd.c (print_macro_definition): Reindent.
5821 2014-05-13 Doug Evans <xdje42@gmail.com>
5823 * python/py-cmd.c (cmdpy_completer): Add comment.
5824 (completers): Make const.
5826 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5828 * infrun.c (resume): Remove should_resume (unused). Move up
5829 declaration of resume_ptid.
5831 2014-05-13 Tom Tromey <tromey@redhat.com>
5833 * language.h (unop_type_check): Remove.
5834 (binop_type_check): Don't declare.
5836 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5838 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5839 call to regcache_raw_collect.
5841 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5843 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5844 mi_console->quote as the quoting character.
5846 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5848 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5850 2014-04-29 Tom Tromey <tromey@redhat.com>
5852 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5853 "show debug varobj".
5855 2014-05-07 Kyle McMartin <kyle@redhat.com>
5857 Pushed by Joel Brobecker <brobecker@adacore.com>.
5858 * aarch64-tdep.c (aarch64_software_single_step): New function.
5859 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5860 with aarch64_software_single_step.
5862 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5866 2014-05-05 Keith Seitz <keiths@redhat.com>
5868 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5869 variable or history value is successfully parsed.
5871 2014-05-05 Yao Qi <yao@codesourcery.com>
5872 Pedro Alves <palves@redhat.com>
5874 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5875 address of blocks that intersects the requested range. Trim
5876 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5878 * ctf.c (ctf_xfer_partial): Likewise.
5880 2014-05-05 Yao Qi <yao@codesourcery.com>
5882 * printcmd.c (display_command): Remove the check to
5883 target_has_execution.
5885 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5887 * ppcobsd-nat.c: Include "obsd-nat.h".
5888 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5890 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5892 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5894 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5895 and 16-bit signed and unsigned arguments. Update comment.
5896 (stap_parse_probe_arguments): Extend code to handle such
5897 arguments. Use warning instead of complaint to notify about
5898 unrecognized bitness.
5900 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5902 PR breakpoints/16889
5903 * stap-probe.c (stap_parse_probe_arguments): Simplify
5904 check for non-prefixed probes (i.e., probes whose
5905 arguments do not start with "N@"). Always set the
5906 argument type to a sane value.
5908 2014-05-01 David Taylor <dtaylor@emc.com>
5910 * remote.c (compare_sections_command): Add -r option to compare
5911 all loadable read-only sections.
5913 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5915 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5916 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5918 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5919 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5920 Remove unused CORE_ADDR argument. Update all callers.
5922 2014-04-29 Pedro Alves <palves@redhat.com>
5924 * remote.c (struct packet_config) <detect>: Extend comment.
5925 (add_packet_config_cmd): Don't set the config's detect or support
5927 (init_all_packet_configs): Also initialize the config's 'detect'
5929 (reset_all_packet_configs_support): New function.
5930 (remote_open_1): Call reset_all_packet_configs_support instead of
5931 init_all_packet_configs.
5932 (_initialize_remote): Initialize all packet configs. Assert that
5933 all packets have an associated command, except a few known
5936 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5938 * dwarf2read.c (read_subrange_type): Handle dynamic
5939 DW_AT_lower_bound attributes.
5941 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5943 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5944 dynamic bounds before computing its upper bound.
5945 (ada_discrete_type_low_bound): Same as above with the lower bound.
5947 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5949 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5950 range types. Adjust the array handling implementation to
5951 take advantage of this change.
5952 (resolve_dynamic_range): New function, mostly extracted from
5953 resolve_dynamic_bounds.
5954 (resolve_dynamic_array): New function, mostly extracted from
5955 resolve_dynamic_bounds.
5956 (resolve_dynamic_bounds): Delete.
5957 (resolve_dynamic_type): Reimplement. Add handling of
5958 TYPE_CODE_RANGE types.
5960 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5962 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5963 handling of parallel ___XA types.
5965 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5967 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5968 unnecessary second call to static_unwrap_type.
5970 2014-04-27 Hui Zhu <hui@codesourcery.com>
5972 * stack.c (print_frame_info): Call do_gdb_disassembly with
5973 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5975 2014-04-26 Doug Evans <xdje42@gmail.com>
5977 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5979 2014-04-25 Pedro Alves <palves@redhat.com>
5982 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5983 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5984 and newline from built string.
5985 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5986 (linux_ptrace_attach_fail_reason): ... this.
5987 * linux-nat.c (linux_nat_attach): Adjust to use
5988 linux_ptrace_attach_fail_reason.
5990 2014-04-25 Pedro Alves <palves@redhat.com>
5992 * remote.c (struct remote_state): Remove multi_process_aware,
5993 non_stop_aware, cond_tracepoints, cond_breakpoints,
5994 breakpoint_commands, fast_tracepoints, static_tracepoints,
5995 install_in_trace, disconnected_tracing,
5996 enable_disable_tracepoints, string_tracing, and
5997 augmented_libraries_svr4_read fields.
5998 (remote_multi_process_p): Move further below in the file.
5999 (struct packet_config): Add comments.
6000 (update_packet_config): Delete function.
6001 (show_packet_config_cmd): Use packet_config_support.
6002 (add_packet_config_cmd): Use NULL as set callback.
6003 (packet_ok): "set remote foo-packet"-style commands no longer
6004 change config->supported -- adjust.
6005 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6006 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6007 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6008 (PACKET_QNonStop, PACKET_multiprocess_feature)
6009 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6010 (PACKET_DisconnectedTracing_feature)
6011 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6012 (set_remote_protocol_packet_cmd): Delete function.
6013 (packet_config_support, packet_support): New functions.
6014 (set_remote_protocol_Z_packet_cmd): Don't call
6015 update_packet_config.
6016 (remote_query_attached, remote_pass_signals)
6017 (remote_program_signals, remote_threads_info)
6018 (remote_threads_extra_info, remote_start_remote): Use
6020 (remote_start_remote): Use packet_config_support and
6022 (init_all_packet_configs): Set all packets to unknown support,
6023 instead of calling update_packet_config.
6024 (remote_check_symbols): Use packet_support.
6025 (remote_supported_packet): Unconditionally set the packet config's
6027 (remote_multi_process_feature, remote_non_stop_feature)
6028 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6029 (remote_breakpoint_commands_feature)
6030 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6031 (remote_install_in_trace_feature)
6032 (remote_disconnected_tracing_feature)
6033 (remote_enable_disable_tracepoint_feature)
6034 (remote_string_tracing_feature)
6035 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6036 (remote_protocol_features): Adjust to use remote_supported_packet
6037 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6038 "ConditionalTracepoints", "ConditionalBreakpoints",
6039 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6040 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6041 "EnableDisableTracepoints", and "tracenz".
6042 (remote_query_supported): Use packet_support.
6043 (remote_open_1): Adjust.
6044 (extended_remote_attach_1): Use packet_support. Switch on the
6045 result of packet_ok instead of checking whether the packet ended
6047 (remote_vcont_resume): Use packet_support.
6048 (remote_resume, remote_stop_ns, fetch_register_using_p)
6049 (remote_prepare_to_store, store_register_using_P)
6050 (check_binary_download, remote_write_bytes): Use packet_support.
6051 (remote_vkill): Use packet_support. Switch on the result of
6052 packet_ok instead of checking whether the packet ended up
6054 (extended_remote_supports_disable_randomization): Use
6056 (extended_remote_run): Switch on the result of packet_ok instead
6057 of checking whether the packet ended up disabled.
6058 (remote_insert_breakpoint, remote_remove_breakpoint)
6059 (remote_insert_watchpoint, remote_remove_watchpoint)
6060 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6062 (remote_search_memory): Use packet_config_support.
6063 (remote_get_thread_local_address, remote_get_tib_address)
6064 (remote_hostio_send_command, remote_can_execute_reverse): Use
6066 (remote_supports_cond_tracepoints)
6067 (remote_supports_cond_breakpoints)
6068 (remote_supports_fast_tracepoints)
6069 (remote_supports_static_tracepoints)
6070 (remote_supports_install_in_trace)
6071 (remote_supports_enable_disable_tracepoint)
6072 (remote_supports_string_tracing)
6073 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6074 the packet config says the feature is enabled or disabled.
6075 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6076 (remote_get_trace_status): Use packet_support.
6077 (remote_set_disconnected_tracing): Adjust to check whether the
6078 feature is enabled with packet_support.
6079 (remote_set_trace_buffer_size, remote_use_agent)
6080 (remote_can_use_agent, remote_supports_btrace): Use
6082 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6083 Use packet_config_support.
6084 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6085 the packet config says the feature is enabled or disabled.
6086 (set_range_stepping): Use packet_support.
6088 2014-04-25 Tom Tromey <tromey@redhat.com>
6090 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6093 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6095 * NEWS: Mention support for C99 variable length arrays.
6097 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6099 * ada-lang.c (standard_exc): Expand introductory comment.
6101 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6102 Walfred Tedeschi <walfred.tedeschi@intel.com>
6104 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6106 (amd64_linux_read_description): Add code to handle AVX512 xstate
6107 mask and return respective tdesc.
6108 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6109 and features/i386/x32-avx512-linux.c.
6110 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6111 (amd64_linux_core_read_description): Add code to handle AVX512
6112 xstate mask and return respective tdesc.
6113 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6114 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6116 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6117 (tdesc_amd64_avx512_linux): New prototype.
6118 (tdesc_x32_avx512_linux): Likewise.
6119 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6120 features/i386/x32-avx512.c.
6121 (amd64_ymm_avx512_names): New register names for pseudo
6123 (amd64_ymmh_avx512_names): New register names for raw registers
6125 (amd64_k_names): New register names for K registers.
6126 (amd64_zmmh_names): New register names for ZMM raw registers.
6127 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6128 (amd64_xmm_avx512_names): New register names for XMM16-31
6130 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6132 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6133 if feature is present.
6134 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6135 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6136 (AMD64_NUM_REGS): Adjust to new number of registers.
6137 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6138 registers supplied via XSTATE by AVX512 registers.
6139 (i386_linux_read_description): Add case for AVX512.
6140 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6141 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6142 (i386_linux_core_read_description): Add case for AVX512.
6143 (i386_linux_init_abi): Install supported register note section
6145 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6147 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6148 registers to be number of zmm7h + 1.
6149 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6150 * i386-tdep.c: Include features/i386/i386-avx512.c.
6151 (i386_zmm_names): Add ZMM pseudo register names array.
6152 (i386_zmmh_names): Add ZMM raw register names array.
6153 (i386_k_names): Add K raw register names array.
6154 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6155 registers. AVX512 has 16 more ZMM registers than there are YMM
6157 (i386_zmmh_regnum_p): Add function to look up register number of
6159 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6160 (i386_k_regnum_p): Likewise for K raw registers.
6161 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6162 registers added by AVX512.
6163 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6164 registers added by AVX512.
6165 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6167 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6168 (i386_pseudo_register_name): Add ZMM pseudo registers.
6169 (i386_zmm_type): Construct and return vector registers type for ZMM
6171 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6172 ZMM0-31 pseudo registers and K registers.
6173 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6174 and YMM16-31 registers from register cache.
6175 (i386_pseudo_register_write): Add code to write K, ZMM and
6177 (i386_register_reggroup_p): Add code to include/exclude AVX512
6178 registers in/from respective register groups.
6179 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6180 registers if feature is present in xcr0.
6181 (i386_gdbarch_init): Add code to initialize AVX512 feature
6182 variables in tdep structure, wire in pseudo registers and call
6183 initialize_tdesc_i386_avx512.
6184 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6186 (i386_regnum): Add AVX512 registers.
6187 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6188 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6189 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6190 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6192 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6193 (i386_ymm_avx512_regnum_p): Likewise.
6194 (i386_k_regnum_p): Likewise.
6195 (i386_zmm_regnum_p): Likewise.
6196 (i386_zmmh_regnum_p): Likewise.
6197 * i387-tdep.c : Update year in copyright notice.
6198 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6200 (XSAVE_YMM_AVX512_ADDR): New macro.
6201 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6203 (XSAVE_XMM_AVX512_ADDR): New macro.
6204 (xsave_avx512_k_offset): New table for K register offsets in
6206 (XSAVE_AVX512_K_ADDR): New macro.
6207 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6209 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6210 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6212 (i387_collect_xsave): Add code to collect AVX512 registers from
6214 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6215 of XMM16-31 registers.
6216 (I387_NUM_K_REGS): New define for number of K registers.
6217 (I387_K0_REGNUM): New define for K0 register number.
6218 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6219 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6220 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6222 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6223 (I387_XMM16_REGNUM): New define for XMM16 register number.
6224 (I387_YMM0_REGNUM): New define for YMM0 register number.
6225 (I387_KEND_REGNUM): New define for last K register number.
6226 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6227 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6229 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6231 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6233 * features/Makefile: Add AVX512 related files.
6234 * features/i386/32bit-avx512.xml: New file.
6235 * features/i386/64bit-avx512.xml: Likewise.
6236 * features/i386/amd64-avx512-linux.c: Likewise.
6237 * features/i386/amd64-avx512-linux.xml: Likewise.
6238 * features/i386/amd64-avx512.c: Likewise.
6239 * features/i386/amd64-avx512.xml: Likewise.
6240 * features/i386/i386-avx512-linux.c: Likewise.
6241 * features/i386/i386-avx512-linux.xml: Likewise.
6242 * features/i386/i386-avx512.c: Likewise.
6243 * features/i386/i386-avx512.xml: Likewise.
6244 * features/i386/x32-avx512-linux.c: Likewise.
6245 * features/i386/x32-avx512-linux.xml: Likewise.
6246 * features/i386/x32-avx512.c: Likewise.
6247 * features/i386/x32-avx512.xml: Likewise.
6248 * regformats/i386/amd64-avx512-linux.dat: New file.
6249 * regformats/i386/amd64-avx512.dat: Likewise.
6250 * regformats/i386/i386-avx512-linux.dat: Likewise.
6251 * regformats/i386/i386-avx512.dat: Likewise.
6252 * regformats/i386/x32-avx512-linux.dat: Likewise.
6253 * regformats/i386/x32-avx512.dat: Likewise.
6254 * NEWS: Add note about new support for AVX512.
6257 2014-04-23 Pedro Alves <palves@redhat.com>
6259 * breakpoint.c (insert_bp_location): Tolerate errors if the
6260 breakpoint is set in a user-loaded objfile.
6261 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6262 location is marked shlib_disabled. If the breakpoint is set in a
6263 user-loaded objfile is a GDB-side memory breakpoint, validate it
6264 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6265 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6267 * mem-break.c (memory_validate_breakpoint): New function.
6268 * objfiles.c (userloaded_objfile_contains_address_p): New
6270 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6271 * target.h (memory_validate_breakpoint): New declaration.
6273 2014-04-23 Pedro Alves <palves@redhat.com>
6275 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6276 the breakpoint is set in a shared library, only suppress
6277 errors for software breakpoints, not hardware breakpoints.
6279 2014-04-22 Pedro Alves <palves@redhat.com>
6281 * infrun.c (schedlock_applies): New function, factored out from
6282 find_thread_needs_step_over.
6283 (find_thread_needs_step_over): Use it.
6284 (switch_back_to_stepped_thread): Always clear trap_expected if the
6285 step over is finished. Return early if scheduler locking applies.
6286 Look for the stepping thread and a potential step-over thread with
6288 (currently_stepping_or_nexting_callback): Delete.
6290 2014-04-22 Nick Clifton <nickc@redhat.com>
6292 * NEWS: Mention that ARM sim now supports tracing.
6294 2014-04-22 Yao Qi <yao@codesourcery.com>
6296 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6298 * tracefile.c (tracefile_fetch_registers): ... it. New
6300 * tracefile.h (tracefile_fetch_registers): Declare.
6301 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6302 tracefile_fetch_registers.
6304 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6307 * windows-nat.c (thread_rec): Don't display a warning when
6308 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6309 fails for any reason, set th->suspended to -1, so that we don't
6310 try to resume such a thread. Also, don't return NULL in these
6311 cases, to avoid completely ruin the session due to "PC register is
6312 not available" error.
6313 (do_windows_fetch_inferior_registers): Check errors in
6314 GetThreadContext call.
6315 (windows_continue): Accept an additional argument KILLED; if not
6316 zero, ignore errors in the SetThreadContext call, since the
6317 inferior was killed and is shutting down.
6318 (windows_resume, get_windows_debug_event)
6319 (windows_create_inferior, windows_mourn_inferior)
6320 (windows_kill_inferior): All callers of windows_continue changed
6321 to adjust to its new calling sequence.
6323 2014-04-19 Yao Qi <yao@codesourcery.com>
6325 * ctf.c (ctf_open): Call post_create_inferior.
6327 2014-04-19 Yao Qi <yao@codesourcery.com>
6329 * ctf.c (handle_id): New static variable.
6330 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6331 value. Get the declaration of event "register" and get length
6332 of field "contents".
6334 2014-04-19 Yao Qi <yao@codesourcery.com>
6336 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6338 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6340 * valops.c (oload_method_static): Remove unnecessary argument
6341 METHOD. Update all callers.
6343 2014-04-18 Pedro alves <palves@redhat.com>
6344 Tom Tromey <tromey@redhat.com>
6347 * frame.c (get_prev_frame_1): Rename to ...
6348 (get_prev_frame_always): ... this, and make extern. Adjust.
6349 (skip_artificial_frames): Use get_prev_frame_always.
6350 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6351 (get_frame_unwind_stop_reason): Adjust to rename.
6352 * frame.h (get_prev_frame_always): Declare.
6353 * inline-frame.c: Include frame.h.
6354 (inline_frame_this_id): Use get_prev_frame_always.
6356 2014-04-18 Tristan Gingold <gingold@adacore.com>
6358 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6359 code by using bfd_mach_o_get_base_address.
6361 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6363 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6364 (spu_ax_pseudo_register_collect): New function.
6365 (spu_ax_pseudo_register_push_stack): Likewise.
6366 (spu_dwarf_reg_to_regnum): Likewise.
6367 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6369 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6371 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6372 Replace FRAME argument with FRAME_ID.
6373 * gdbarch.c, gdbarch.h: Regenerate.
6374 * findvar.c (default_value_from_register): Add GDBARCH argument;
6375 replace FRAME by FRAME_ID. No longer call get_frame_id.
6376 (value_from_register): Update call to gdbarch_value_from_register.
6377 * value.h (default_value_from_register): Update prototype.
6378 * s390-linux-tdep.c (s390_value_from_register): Update interface
6379 and call to default_value_from_register.
6380 * spu-tdep.c (spu_value_from_register): Likewise.
6382 * findvar.c (address_from_register): Remove TYPE argument.
6383 Do not call value_from_register; use gdbarch_value_from_register
6384 with null_frame_id instead.
6385 * value.h (address_from_register): Update prototype.
6386 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6387 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6388 address_from_register interface change.
6390 2014-04-17 Yao Qi <yao@codesourcery.com>
6392 * gdbtypes.h: Update comments to link to types and macros'
6395 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6397 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6399 2014-04-16 Keith Seitz <keiths@redhat.com>
6402 * dwarf2read.c (skip_one_die): Check that all relative-offset
6403 sibling DIEs fall within range of the current reader's buffer.
6404 (read_partial_die): Likewise.
6406 2014-04-16 Keith Seitz <keiths@redhat.com>
6409 * cp-namespace.c (lookup_symbol_file): If the type name of
6410 `this' is NULL, return immediately.
6412 2014-04-14 Keith Seitz <keiths@redhat.com>
6415 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6416 from symbol_matches_domain in symtab.c. All local callers
6417 of symbol_matches_domain updated.
6418 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6419 search STRUCT_DOMAIN.
6420 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6421 independently. standard_lookup will do that automatically.
6422 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6423 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6424 (cp_lookup_symbol_in_namespace): Likewise.
6425 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6426 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6427 may return a STRUCT_DOMAIN match.
6428 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6429 * cp-support.c: Include language.h.
6430 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6432 * psymtab.c (match_partial_symbol): Compare the requested
6433 domain with the symbol's domain directly.
6434 (lookup_partial_symbol): Likewise.
6435 * symtab.c (lookup_symbol_in_language): Explain when/why
6436 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6437 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6438 appropriate languages.
6439 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6440 and moved to ada-lang.c
6441 (lookup_block_symbol): Explain that this function only returns
6442 symbol matching the requested DOMAIN.
6443 Compare the requested domain with the symbol's domain directly.
6444 (iterate_over_symbols): Compare the requested domain with the
6445 symbol's domain directly.
6446 * symtab.h (symbol_matches_domain): Remove.
6448 2014-04-14 Tom Tromey <tromey@redhat.com>
6451 * c-exp.y (type_aggregate_p): New function.
6452 (qualified_name, classify_inner_name): Use it.
6453 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6454 and TYPE_TARGET_TYPE of an enum type.
6455 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6457 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6458 handle TYPE_DECLARED_CLASS.
6459 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6461 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6462 * valops.c (enum_constant_from_type): New function.
6463 (value_aggregate_elt): Use it.
6464 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6467 2014-04-14 Tom Tromey <tromey@redhat.com>
6469 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6470 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6472 * value.h (value_aggregate_elt): Update.
6474 2014-04-14 Tom Tromey <tromey@redhat.com>
6476 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6478 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6480 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6481 (evaluate_subexp_standard): Pass noside argument.
6482 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6483 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6484 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6485 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6486 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6488 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6490 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6491 points to a constant blob.
6493 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6495 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6496 property and store it as the high bound and flag the range accordingly.
6497 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6498 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6499 * gdbtypes.h (enum range_flags): New enum.
6500 (struct range_bounds): Add flags member.
6502 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6504 * c-typeprint.c (c_type_print_varspec_suffix): Added
6505 check for not yet resolved high bound. If unresolved, print
6506 "variable length" string to the console instead of random
6509 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6511 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6513 (ada_template_to_fixed_record_type_1): Likewise.
6514 (ada_to_fixed_type_1): Likewise.
6515 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6516 (cp_print_value): Likewise.
6517 * d-valprint.c (dynamic_array_type): Likewise.
6518 * findvar.c (address_of_variable): Likewise.
6519 * jv-valprint.c (java_value_print): Likewise.
6520 * valops.c (value_ind): Likewise.
6521 * value.c (coerce_ref): Likewise.
6523 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6525 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6526 value and retrieve the dynamic type size.
6528 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6530 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6531 passed to sizeof is dynamic evaluate the argument to compute the length.
6533 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6534 Joel Brobecker <brobecker@adacore.com>
6536 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6537 (dwarf2_evaluate_property): New function.
6538 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6539 * dwarf2read.c (attr_to_dynamic_prop): New function.
6540 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6542 * gdbtypes.c: Include dwarf2loc.h.
6543 (is_dynamic_type): New function.
6544 (resolve_dynamic_type): New function.
6545 (resolve_dynamic_bounds): New function.
6546 (get_type_length): New function.
6547 (check_typedef): Use get_type_length to compute type length.
6548 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6549 (TYPE_LOW_BOUND_KIND): New macro.
6550 (is_dynamic_type): New function prototype.
6551 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6552 to resolve dynamic properties of the type. Update comment.
6553 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6555 2014-04-14 Richard Henderson <rth@redhat.com>
6557 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6559 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6560 Doug Evans <xdje42@gmail.com>
6562 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6563 dereference TYPE_CODE_REF values.
6565 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6567 Revert the following changes due to regressions:
6569 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6570 (dwarf2_evaluate_property): New function.
6571 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6572 * dwarf2read.c (attr_to_dynamic_prop): New function.
6573 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6575 * gdbtypes.c: Include dwarf2loc.h.
6576 (is_dynamic_type): New function.
6577 (resolve_dynamic_type): New function.
6578 (resolve_dynamic_bounds): New function.
6579 (get_type_length): New function.
6580 (check_typedef): Use get_type_length to compute type length.
6581 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6582 (TYPE_LOW_BOUND_KIND): New macro.
6583 (is_dynamic_type): New function prototype.
6584 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6585 to resolve dynamic properties of the type. Update comment.
6586 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6588 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6589 passed to sizeof is dynamic evaluate the argument to compute the length.
6591 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6592 value and retrieve the dynamic type size.
6594 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6595 (ada_template_to_fixed_record_type_1): Likewise.
6596 (ada_to_fixed_type_1): Likewise.
6597 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6598 (cp_print_value): Likewise.
6599 * d-valprint.c (dynamic_array_type): Likewise.
6600 * eval.c (evaluate_subexp_with_coercion): Likewise.
6601 * findvar.c (address_of_variable): Likewise.
6602 * jv-valprint.c (java_value_print): Likewise.
6603 * valops.c (value_ind): Likewise.
6604 * value.c (coerce_ref): Likewise.
6606 * c-typeprint.c (c_type_print_varspec_suffix): Added
6607 check for not yet resolved high bound. If unresolved, print
6608 "variable length" string to the console instead of random
6611 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6612 property and store it as the high bound and flag the range accordingly.
6613 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6614 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6615 * gdbtypes.h (enum range_flags): New enum.
6616 (struct range_bounds): Add flags member.
6618 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6619 points to a constant blob.
6621 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6622 (evaluate_subexp_standard): Pass noside argument.
6623 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6624 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6625 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6626 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6627 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6629 2014-04-11 Keith Seitz <keiths@redhat.com>
6632 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6633 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6636 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6638 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6639 (evaluate_subexp_standard): Pass noside argument.
6640 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6641 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6642 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6643 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6644 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6646 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6648 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6649 points to a constant blob.
6651 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6653 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6654 property and store it as the high bound and flag the range accordingly.
6655 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6656 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6657 * gdbtypes.h (enum range_flags): New enum.
6658 (struct range_bounds): Add flags member.
6660 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6662 * c-typeprint.c (c_type_print_varspec_suffix): Added
6663 check for not yet resolved high bound. If unresolved, print
6664 "variable length" string to the console instead of random
6667 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6669 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6670 (ada_template_to_fixed_record_type_1): Likewise.
6671 (ada_to_fixed_type_1): Likewise.
6672 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6673 (cp_print_value): Likewise.
6674 * d-valprint.c (dynamic_array_type): Likewise.
6675 * eval.c (evaluate_subexp_with_coercion): Likewise.
6676 * findvar.c (address_of_variable): Likewise.
6677 * jv-valprint.c (java_value_print): Likewise.
6678 * valops.c (value_ind): Likewise.
6679 * value.c (coerce_ref): Likewise.
6681 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6683 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6684 value and retrieve the dynamic type size.
6686 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6688 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6689 passed to sizeof is dynamic evaluate the argument to compute the length.
6691 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6693 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6694 (dwarf2_evaluate_property): New function.
6695 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6696 * dwarf2read.c (attr_to_dynamic_prop): New function.
6697 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6699 * gdbtypes.c: Include dwarf2loc.h.
6700 (is_dynamic_type): New function.
6701 (resolve_dynamic_type): New function.
6702 (resolve_dynamic_bounds): New function.
6703 (get_type_length): New function.
6704 (check_typedef): Use get_type_length to compute type length.
6705 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6706 (TYPE_LOW_BOUND_KIND): New macro.
6707 (is_dynamic_type): New function prototype.
6708 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6709 to resolve dynamic properties of the type. Update comment.
6710 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6712 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6714 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6715 declaring high/low bounds and change uses accordingly. Call
6716 create_range_type instead of create_static_range_type.
6717 * gdbtypes.c (create_range_type): New function.
6718 (create_range_type): Convert bounds into struct bound_prop and pass
6719 them to create_range_type.
6720 * gdbtypes.h (struct bound_prop): New struct.
6721 (create_range_type): New function prototype.
6722 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6723 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6724 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6726 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6728 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6730 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6731 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6732 * ada-lang.c: All uses of create_range_type updated.
6733 * coffread.c: All uses of create_range_type updated.
6734 * dwarf2read.c: All uses of create_range_type updated.
6735 * f-exp.y: All uses of create_range_type updated.
6736 * m2-valprint.c: All uses of create_range_type updated.
6737 * mdebugread.c: All uses of create_range_type updated.
6738 * stabsread.c: All uses of create_range_type updated.
6739 * valops.c: All uses of create_range_type updated.
6740 * valprint.c: All uses of create_range_type updated.
6742 2014-04-10 Pedro Alves <palves@redhat.com>
6744 * breakpoint.c (single_step_breakpoints)
6745 (single_step_gdbarch): Move up in the file.
6746 (one_breakpoint_xfer_memory): New function, factored out from ...
6747 (breakpoint_xfer_memory): ... here. Also process single-step
6750 2014-04-09 Tristan Gingold <gingold@adacore.com>
6752 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6754 (darwin_decode_exception_message): Free port only after use.
6756 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6758 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6759 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6760 when setting the size of call_length.
6762 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6764 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6765 dereference TYPE_CODE_REF values.
6767 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6769 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6770 end of warning message.
6772 2014-04-03 Doug Evans <dje@google.com>
6774 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6775 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6777 2014-04-02 Alan Modra <amodra@gmail.com>
6779 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6780 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6781 (struct symbol_file_add_from_memory_args): Add size field.
6782 (find_vdso_size): New function.
6783 (add_vsyscall_page): Attempt to find vdso size.
6785 2014-04-01 Doug Evans <dje@google.com>
6787 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6789 2014-04-01 Tristan Gingold <gingold@adacore.com>
6791 * darwin-nat.c (darwin_encode_reply): Add prototype.
6792 (darwin_decode_exception_message): Reply to unknown inferiors.
6793 (darwin_decode_message): Handle message by id. Ignore message
6794 to unknown inferior.
6795 (darwin_wait): Discard unknown messages, add debug trace.
6797 2014-03-31 Doug Evans <dje@google.com>
6799 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6802 2014-03-31 Doug Evans <dje@google.com>
6804 New option "set print symbol-loading".
6806 * solib.c (solib_read_symbols): Only print symbol loading messages
6808 (solib_add): If symbol loading is in "brief" mode, notify user
6809 symbols are being loaded.
6810 (reload_shared_libraries_1): Ditto.
6811 * symfile.c (print_symbol_loading_off): New static global.
6812 (print_symbol_loading_brief): New static global.
6813 (print_symbol_loading_full): New static global.
6814 (print_symbol_loading_enums): New static global.
6815 (print_symbol_loading): New static global.
6816 (print_symbol_loading_p): New function.
6817 (symbol_file_add_with_addrs): Only print symbol loading messages
6819 (_initialize_symfile): Register "print symbol-loading" set/show
6821 * symfile.h (print_symbol_loading_p): Declare.
6823 2014-03-30 Doug Evans <xdje42@gmail.com>
6825 * infrun.c (set_last_target_status): New function.
6826 (handle_inferior_event): Call it.
6828 2014-03-30 Doug Evans <xdje42@gmail.com>
6830 * inferior.h (enum stop_kind): Improve comment.
6832 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6834 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6835 a reference, strip the reference layer before calling
6836 the lang_ops value_has_mutated callback.
6838 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6840 Remove some globals from our parser.
6841 * language.c (unk_lang_parser): Add "struct parser_state"
6843 * language.h (struct language_defn) <la_parser>: Likewise.
6844 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6845 (initialize_expout): Add "struct parser_state" argument.
6846 Rewrite function to use the parser state.
6847 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6848 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6849 write_exp_elt_longcst, write_exp_elt_dblcst,
6850 write_exp_elt_decfloatcst, write_exp_elt_type,
6851 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6852 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6853 write_dollar_variable): Likewise.
6854 (parse_exp_in_context_1): Use parser state.
6855 (insert_type_address_space): Add "struct parser_state" argument.
6857 (increase_expout_size): New function.
6858 * parser-defs.h: Forward declare "struct language_defn" and
6859 "struct parser_state".
6860 (expout, expout_size, expout_ptr): Remove extern declarations.
6861 (parse_gdbarch, parse_language): Rewrite macro declarations to
6862 accept the parser state.
6863 (struct parser_state): New struct.
6864 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6865 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6866 write_exp_elt_decfloatcst, write_exp_elt_type,
6867 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6868 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6869 write_exp_msymbol, write_dollar_variable,
6870 mark_struct_expression, insert_type_address_space): Add "struct
6871 parser_state" argument.
6872 (increase_expout_size): New function.
6873 * utils.c (do_clear_parser_state): New function.
6874 (make_cleanup_clear_parser_state): Likewise.
6875 * utils.h (make_cleanup_clear_parser_state): New function
6877 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6878 Update calls to write_exp* in order to pass the parser state.
6879 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6880 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6881 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6882 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6883 * stap-probe.c (stap_parse_register_operand): Likewise.
6884 (stap_parse_single_operand): Likewise.
6885 (stap_parse_argument_1): Likewise.
6886 (stap_parse_argument): Use parser state.
6887 * stap-probe.h: Include "parser-defs.h".
6888 (struct stap_parse_info) <pstate>: New field.
6889 * c-exp.y (parse_type): Rewrite to use parser state.
6890 (yyparse): Redefine to c_parse_internal.
6891 (pstate): New global variable.
6892 (parse_number): Add "struct parser_state" argument.
6893 (write_destructor_name): Likewise.
6894 (type_exp): Update calls to write_exp* and similars in order to
6896 (exp1, exp, variable, qualified_name, space_identifier,
6897 typename, typebase): Likewise.
6898 (write_destructor_name, parse_number, lex_one_token,
6899 classify_name, classify_inner_name, c_parse): Add "struct
6900 parser_state" argument. Update function to use parser state.
6901 * c-lang.h: Forward declare "struct parser_state".
6902 (c_parse): Add "struct parser_state" argument.
6903 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6904 (yyparse): Redefine macro to ada_parse_internal.
6905 (pstate): New variable.
6906 (write_int, write_object_renaming, write_var_or_type,
6907 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6908 type_int, type_long, type_long_long, type_float, type_double,
6909 type_long_double, type_char, type_boolean, type_system_address):
6910 Add "struct parser_state" argument.
6911 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6912 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6913 var_or_type, aggregate, aggregate_component_list,
6914 positional_list, others, component_group,
6915 component_associations): Update calls to write_exp* and similar
6916 functions in order to use parser state.
6917 (ada_parse, write_var_from_sym, write_int,
6918 write_exp_op_with_string, write_object_renaming,
6919 find_primitive_type, write_selectors, write_ambiguous_var,
6920 write_var_or_type, write_name_assoc, type_int, type_long,
6921 type_long_long, type_float, type_double, type_long_double,
6922 type_char, type_boolean, type_system_address): Add "struct
6923 parser_state" argument. Adjust function to use parser state.
6924 * ada-lang.c (parse): Likewise.
6925 * ada-lang.h: Forward declare "struct parser_state".
6926 (ada_parse): Add "struct parser_state" argument.
6927 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6928 calls to both functions.
6929 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6931 (yyparse): Redefine macro to f_parse_internal.
6932 (pstate): New variable.
6933 (parse_number): Add "struct parser_state" argument.
6934 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6935 and similars in order to use parser state.
6936 (parse_number): Adjust code to use parser state.
6938 (f_parse): New function.
6939 * f-lang.h: Forward declare "struct parser_state".
6940 (f_parse): Add "struct parser_state" argument.
6941 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6943 (yyparse): Redefine macro for java_parse_internal.
6944 (pstate): New variable.
6945 (push_expression_name, push_expression_name, insert_exp): Add
6946 "struct parser_state" argument.
6947 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6948 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6949 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6950 PostIncrementExpression, PostDecrementExpression,
6951 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6952 UnaryExpressionNotPlusMinus, CastExpression,
6953 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6954 RelationalExpression, EqualityExpression, AndExpression,
6955 ExclusiveOrExpression, InclusiveOrExpression,
6956 ConditionalAndExpression, ConditionalOrExpression,
6957 ConditionalExpression, Assignment, LeftHandSide): Update
6958 calls to write_exp* and similars in order to use parser state.
6959 (parse_number): Ajust code to use parser state.
6961 (java_parse): New function.
6962 (push_variable): Add "struct parser_state" argument. Adjust
6963 code to user parser state.
6964 (push_fieldnames, push_qualified_expression_name,
6965 push_expression_name, insert_exp): Likewise.
6966 * jv-lang.h: Forward declare "struct parser_state".
6967 (java_parse): Add "struct parser_state" argument.
6968 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6970 (yyparse): Redefine macro to m2_parse_internal.
6971 (pstate): New variable.
6972 (type_exp, exp, fblock, variable, type): Update calls to
6973 write_exp* and similars to use parser state.
6975 (m2_parse): New function.
6976 * m2-lang.h: Forward declare "struct parser_state".
6977 (m2_parse): Add "struct parser_state" argument.
6978 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6979 * objc-lang.h: Forward declare "struct parser_state".
6980 (end_msglist): Add "struct parser_state" argument.
6981 * p-exp.y (parse_type): Rewrite macro to use parser state.
6982 (yyparse): Redefine macro to pascal_parse_internal.
6983 (pstate): New variable.
6984 (parse_number): Add "struct parser_state" argument.
6985 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6986 write_exp* and similars in order to use parser state.
6987 (parse_number, yylex): Adjust code to use parser state.
6988 (pascal_parse): New function.
6989 * p-lang.h: Forward declare "struct parser_state".
6990 (pascal_parse): Add "struct parser_state" argument.
6991 * go-exp.y (parse_type): Rewrite macro to use parser state.
6992 (yyparse): Redefine macro to go_parse_internal.
6993 (pstate): New variable.
6994 (parse_number): Add "struct parser_state" argument.
6995 (type_exp, exp1, exp, variable, type): Update calls to
6996 write_exp* and similars in order to use parser state.
6997 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6998 to use parser state.
6999 (go_parse): Likewise.
7000 * go-lang.h: Forward declare "struct parser_state".
7001 (go_parse): Add "struct parser_state" argument.
7003 2014-03-27 Doug Evans <dje@google.com>
7005 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7007 2014-03-27 Doug Evans <dje@google.com>
7009 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7010 Remove argument abbrev_section. All callers updated.
7012 2014-03-27 Doug Evans <dje@google.com>
7014 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7015 addr_base, ranges_base.
7017 2014-03-26 Keith Seitz <keiths@redhat.com>
7019 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7020 types, not VAR_DOMAIN.
7022 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7024 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7026 * features/nios2-linux.c: Regenerated.
7027 * features/nios2.c: Regenerated.
7029 2014-03-25 Pedro Alves <palves@redhat.com>
7031 * cli/cli-script.c (script_from_file): Force the interpreter to
7034 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7036 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7037 small stack allocation.
7039 2014-03-24 Tristan Gingold <gingold@adacore.com>
7041 * darwin-nat.c (exc_server): Remove unused prototype.
7042 (darwin_dump_message): Correctly display data on x86_64.
7043 (darwin_encode_reply): Fix style.
7044 Add comments and fix indentation.
7046 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7048 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7050 2014-03-22 Doug Evans <xdje42@gmail.com>
7052 * infcmd.c: Whitespace fixes.
7053 (interrupt_command): Merge two function comments into one.
7055 2014-03-22 Doug Evans <xdje42@gmail.com>
7057 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7060 2014-03-22 Yao Qi <yao@codesourcery.com>
7062 * remote.c (target_read_live_memory): Remove.
7063 (memory_xfer_live_readonly_partial): Rename it to
7064 remote_xfer_live_readonly_partial. Remove argument 'object'.
7065 All callers updated. Call remote_read_bytes_1
7066 instead of target_read_live_memory.
7067 * tracepoint.c (set_traceframe_number): Remove.
7068 (make_cleanup_restore_traceframe_number): Likewise .
7069 * tracepoint.h (set_traceframe_number): Remove declaration.
7070 (make_cleanup_restore_traceframe_number): Likewise.
7072 2014-03-22 Yao Qi <yao@codesourcery.com>
7074 * remote.c (remote_read_bytes): Move code on reading from the
7076 (remote_read_bytes_1): ... here. New function.
7078 2014-03-22 Yao Qi <yao@codesourcery.com>
7080 * ctf.c (ctf_xfer_partial): Check the return value of
7081 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7082 return TARGET_XFER_UNAVAILABLE.
7083 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7084 * target.c (target_read_live_memory): Move it to remote.c.
7085 (memory_xfer_live_readonly_partial): Likewise.
7086 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7087 * remote.c (target_read_live_memory): Moved from target.c.
7088 (memory_xfer_live_readonly_partial): Likewise.
7089 (remote_read_bytes): Factored out from
7090 memory_xfer_partial_1.
7092 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7094 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7097 2014-03-21 Pedro Alves <palves@redhat.com>
7099 * infrun.c (normal_stop): Extend comment.
7101 2014-03-21 Hui Zhu <hui@codesourcery.com>
7102 Pedro Alves <palves@redhat.com>
7104 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7106 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7107 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7108 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7110 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7112 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7113 `z' formatted output modifier.
7115 2014-03-20 Tom Tromey <tromey@redhat.com>
7116 Sergio Durigan Junior <sergiodj@redhat.com>
7118 * probe.c (parse_probes): Turn assert into an ordinary error.
7119 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7120 exceptions when parsing probes. Rearrange the code for clarity.
7122 2014-03-20 Tom Tromey <tromey@redhat.com>
7125 * top.c (execute_command): Only dispatch events if the command
7128 2014-03-20 Tom Tromey <tromey@redhat.com>
7131 * infcall.c: Include event-top.h.
7132 (run_inferior_call): Call async_disable_stdin if needed.
7134 2014-03-20 Pedro Alves <palves@redhat.com>
7136 * infrun.c (prepare_to_proceed): Delete.
7137 (thread_still_needs_step_over): New function.
7138 (find_thread_needs_step_over): New function.
7139 (proceed): If the current thread needs a step-over, set its
7140 steping_over_breakpoint flag. Adjust to use
7141 find_thread_needs_step_over instead of prepare_to_proceed.
7142 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7143 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7145 (switch_back_to_stepped_thread): Step over breakpoints of all
7146 threads not the stepping thread, before switching back to the
7149 2014-03-20 Pedro Alves <palves@redhat.com>
7151 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7153 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7154 * infrun.c (saved_singlestep_ptid)
7155 (stepping_past_singlestep_breakpoint): Delete.
7156 (resume): Remove stepping_past_singlestep_breakpoint handling.
7157 (proceed): Store the prev_pc of the stepping thread too.
7158 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7160 (enum infwait_states): Delete infwait_thread_hop_state.
7161 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7163 (handle_inferior_event): Adjust.
7164 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7165 handling and the thread-hop code. Before removing single-step
7166 breakpoints, check whether the thread hit a single-step breakpoint
7167 of another thread. If it did, the trap is not a random signal.
7168 (switch_back_to_stepped_thread): If the event thread hit a
7169 single-step breakpoint, unblock it before switching to the
7170 stepping thread. Handle the case of the stepped thread having
7172 (keep_going): Handle the case of the current thread moving past a
7173 single-step breakpoint.
7175 2014-03-20 Pedro Alves <palves@redhat.com>
7178 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7179 are being stepped over.
7180 (breakpoint_address_match): Make extern.
7181 * breakpoint.h (breakpoint_address_match): New declaration.
7182 * inferior.h (stepping_past_instruction_at): New declaration.
7183 * infrun.c (struct step_over_info): New type.
7184 (step_over_info): New global.
7185 (set_step_over_info, clear_step_over_info)
7186 (stepping_past_instruction_at): New functions.
7187 (handle_inferior_event): Clear the step-over info when
7188 trap_expected is cleared.
7189 (resume): Remove now stale comment.
7190 (clear_proceed_status): Clear step-over info.
7191 (proceed): Adjust step-over handling to set or clear the step-over
7192 info instead of removing all breakpoints.
7193 (handle_signal_stop): When setting up a thread-hop, don't remove
7195 (stop_stepping): Clear step-over info.
7196 (keep_going): Adjust step-over handling to set or clear step-over
7197 info and then always inserting breakpoints, instead of removing
7198 all breakpoints when stepping over one.
7200 2014-03-20 Pedro Alves <palves@redhat.com>
7202 * infrun.c (previous_inferior_ptid): Adjust comment.
7203 (deferred_step_ptid): Delete.
7204 (infrun_thread_ptid_changed, prepare_to_proceed)
7205 (init_wait_for_inferior): Adjust.
7206 (handle_signal_stop): Delete deferred_step_ptid handling.
7208 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7211 * defs.h (sync_quit_force_run): New declaration.
7212 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7213 * event-top.c (async_sigterm_handler): New declaration.
7214 (async_sigterm_token): New variable.
7215 (async_init_signals): Create also async_sigterm_token.
7216 (async_sigterm_handler): New function.
7217 (sync_quit_force_run): New variable.
7218 (handle_sigterm): Replace quit_force call by other calls.
7219 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7221 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7223 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7224 offset into SPE pseudo registers.
7226 2014-03-18 Pedro Alves <palves@redhat.com>
7229 * inferior.h (print_stop_event): Declare.
7230 * infrun.c (print_stop_event): New, factored out from ...
7231 (normal_stop): ... this.
7232 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7233 of bpstat_print/print_stack_frame.
7235 2014-03-17 Tom Tromey <tromey@redhat.com>
7237 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7239 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7241 * ada-lang.c (decode_constrained_packed_array): Perform a
7242 minimal coercion for reference with coerce_ref instead of
7245 2014-03-17 Tristan Gingold <gingold@adacore.com>
7247 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7248 (darwin_solib_create_inferior_hook): Emit a warning if version
7251 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7253 * python/py-value.c (get_field_flag): Cast flag_name argument to
7254 PyObject_GetAttrString to support Python 2.4.
7256 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7258 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7259 (Global Maintainers): Remove Jan Kratochvil.
7261 2014-03-14 Pedro Alves <palves@redhat.com>
7263 * inferior.h (terminal_ours_for_output): Rename to ...
7264 (child_terminal_ours_for_output): ... this.
7265 (terminal_save_ours): Rename to ...
7266 (child_terminal_save_ours): ... this.
7267 (terminal_ours): Rename to ...
7268 (child_terminal_ours): ... this.
7269 (terminal_inferior): Rename to ...
7270 (child_terminal_inferior): ... this.
7271 (terminal_init_inferior): Rename to ...
7272 (child_terminal_init_inferior): ... this.
7273 (terminal_init_inferior_with_pgrp): Rename to ...
7274 (child_terminal_init_inferior_with_pgrp): ... this.
7275 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7276 (child_terminal_init_with_pgrp): ... this.
7277 (terminal_save_ours): Rename to ...
7278 (child_terminal_save_ours): ... this.
7279 (terminal_init_inferior): Rename to ...
7280 (child_terminal_init): ... this. Adjust.
7281 (terminal_inferior): Rename to ...
7282 (child_terminal_inferior): ... this.
7283 (terminal_ours_for_output): Rename to ...
7284 (child_terminal_ours_for_output): ... this. Adjust.
7285 (terminal_ours): Rename to ...
7286 (child_terminal_ours): ... this.
7287 (terminal_ours_1): Rename to ...
7288 (child_terminal_ours_1): ... this. Adjust.
7289 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7290 * windows-nat.c (do_initial_windows_stuff): Adjust.
7291 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7292 (gnu_terminal_init): ... this. Adjust.
7293 (gnu_target): Adjust.
7294 * inf-child.c (inf_child_target): Adjust.
7296 2014-03-13 Doug Evans <xdje42@gmail.com>
7299 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7302 2014-03-13 Doug Evans <xdje42@gmail.com>
7304 * value.c (record_latest_value): Call release_value_or_incref
7305 instead of release_value.
7307 2014-03-13 Pedro Alves <palves@redhat.com>
7309 * procfs.c (procfs_target): Don't override to_shortname,
7310 to_longname or to_doc.
7312 2014-03-13 Pedro Alves <palves@redhat.com>
7314 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7315 Unix in user visible strings.
7317 2014-03-12 Stan Shebs <stan@codesourcery.com>
7319 * gdbtypes.h: Annotate comments for Doxygen, add a page
7320 block comment with some general info.
7322 2014-03-12 Pedro Alves <palves@redhat.com>
7324 * infcmd.c (prepare_execution_command): New function, factored out
7325 from several execution commands.
7326 (run_command_1, continue_command, step_1, jump_command)
7327 (signal_command, until_command, advance_command, finish_command)
7328 (attach_command): Use prepare_execution_command.
7330 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7332 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7335 (struct arm_linux_thread_points): Removed.
7336 (struct arm_linux_process_info): New.
7337 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7338 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7339 (arm_linux_find_breakpoints_by_tid): Removed.
7340 (struct arch_lwp_info): New.
7341 (arm_linux_find_process_pid): New functions.
7342 (arm_linux_add_process): New functions.
7343 (arm_linux_process_info_get): New functions.
7344 (arm_linux_forget_process): New function.
7345 (arm_linux_get_debug_reg_state): New function.
7346 (struct update_registers_data): New.
7347 (update_registers_callback): New function.
7348 (arm_linux_insert_hw_breakpoint1): Updated.
7349 (arm_linux_remove_hw_breakpoint1): Updated.
7350 (arm_linux_insert_hw_breakpoint): Updated.
7351 (arm_linux_remove_hw_breakpoint): Updated.
7352 (arm_linux_insert_watchpoint): Updated.
7353 (arm_linux_remove_watchpoint): Updated.
7354 (arm_linux_new_thread): Updated.
7355 (arm_linux_prepare_to_resume): New function.
7356 (arm_linux_new_fork): New function.
7357 (_initialize_arm_linux_nat): Updated.
7359 2014-03-12 Pedro Alves <palves@redhat.com>
7361 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7363 2014-03-12 Tom Tromey <tromey@redhat.com>
7365 * inf-child.c (return_zero): New function.
7366 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7367 * aix-thread.c (aix_thread_inferior_created): New function.
7368 (aix_thread_attach): Remove.
7369 (init_aix_thread_ops): Don't set to_attach.
7370 (_initialize_aix_thread): Register inferior_created observer.
7371 * corelow.c (init_core_ops): Don't set to_attach or
7373 * exec.c (init_exec_ops): Don't set to_attach or
7375 * infcmd.c (run_command_1): Use find_run_target. Make direct
7377 (attach_command): Use find_attach_target. Make direct target
7379 * record-btrace.c (init_record_btrace_ops): Don't set
7381 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7383 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7384 set to_create_inferior.
7385 * target.c (complete_target_initialization): Add assertion.
7386 (target_create_inferior): Remove.
7387 (find_default_attach, find_default_create_inferior): Remove.
7388 (find_attach_target, find_run_target): New functions.
7389 (find_default_is_async_p, find_default_can_async_p)
7390 (target_supports_non_stop, target_attach): Remove.
7391 (init_dummy_target): Don't set to_create_inferior or
7392 to_supports_non_stop.
7393 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7394 TARGET_DEFAULT_FUNC.
7395 <to_create_inferior>: Add comment.
7396 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7397 TARGET_DEFAULT_RETURN.
7398 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7399 (find_attach_target, find_run_target): Declare.
7400 (target_create_inferior): Remove.
7401 (target_has_execution_1): Update comment.
7402 (target_supports_non_stop): Remove.
7403 * target-delegates.c: Rebuild.
7405 2014-03-12 Pedro Alves <palves@redhat.com>
7407 * inf-child.h: Update comment to not mention Unix.
7409 2014-03-12 Pedro Alves <palves@redhat.com>
7411 * inf-child.c: Update top comment to not mention Unix. Add
7412 generic comment describing how this target is meant to be used.
7413 (inf_child_post_attach, inf_child_post_startup_inferior)
7414 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7417 2014-03-12 Pedro Alves <palves@redhat.com>
7419 * nto-procfs.c: Include inf-child.h.
7420 (procfs_ops): Delete global.
7421 (procfs_can_run): Delete method.
7422 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7423 target pointer instead of referencing procfs_ops.
7424 (procfs_prepare_to_store): Delete.
7425 (init_procfs_ops): Delete function.
7426 (procfs_target): New function, based on init_procfs_ops, but
7427 inherit inf_child_target.
7428 (_initialize_procfs): Use procfs_target.
7430 2014-03-12 Pedro Alves <palves@redhat.com>
7432 * windows-nat.c: Include inf-child.h.
7433 (windows_ops): Delete global.
7434 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7436 (init_windows_ops): Delete function.
7437 (windows_target): New function, based on init_windows_ops, but
7438 inherit inf_child_target.
7439 (_initialize_windows_nat): Use windows_target. Install x86
7440 specific target methods here.
7442 2014-03-10 Doug Evans <xdje42@gmail.com>
7444 * guile/guile.c (call_initialize_gdb_module): New function.
7445 (initialize_guile): Replace call to scm_init_guile with call to
7448 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7450 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7451 in call to TYPE_CODE macro.
7453 2014-03-10 Jerome Guitton <guitton@adacore.com>
7455 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7456 Resolve tagged types to full view.
7458 2014-03-10 Hui Zhu <hui@codesourcery.com>
7460 * target.h (target_insert_breakpoint): Remove "hardware" from its
7463 2014-03-07 Doug Evans <dje@google.com>
7465 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7467 2014-03-07 Doug Evans <dje@google.com>
7469 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7470 Remove unused local comp_dir_attr. Assert exactly one of
7471 stub_comp_unit_die, stub_comp_dir is non-NULL.
7473 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7475 * target.h (complete_target_initialization, add_target):
7478 2014-03-07 Pedro Alves <palves@redhat.com>
7480 * go32-nat.c: Include inf-child.h.
7481 (go32_ops): Delete global.
7482 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7484 (go32_create_inferior): Push the passed in target pointer instead
7485 of referencing go32_ops.
7486 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7487 (go32_target): New function, based on init_go32_ops, but inherit
7489 (_initialize_go32_nat): Use go32_target. Move parts of
7492 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7494 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7495 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7496 SYMBOL_VALUE_ADDRESS.
7497 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7499 2014-03-06 Yao Qi <yao@codesourcery.com>
7501 * breakpoint.c (get_tracepoint_by_number): Remove argument
7502 optional_p. All callers updated. Adjust comments. Update
7504 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7506 2014-03-06 Yao Qi <yao@codesourcery.com>
7508 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7509 early if get_number returns zero. Use 'p' instead of 'args'.
7511 2014-03-06 Yao Qi <yao@codesourcery.com>
7513 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7516 2014-03-06 Yao Qi <yao@codesourcery.com>
7518 PR breakpoints/16508
7519 * tracepoint.c (check_trace_running): New function.
7520 (trace_find_command): Move code to check_trace_running and
7521 call check_trace_running.
7522 (trace_find_pc_command): Likewise.
7523 (trace_find_tracepoint_command): Likewise.
7524 (trace_find_line_command): Likewise.
7525 (trace_find_range_command): Likewise.
7526 * tracepoint.h (check_trace_running): Likewise.
7527 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7529 2014-03-06 Yao Qi <yao@codesourcery.com>
7531 * target.h (struct target_ops) <to_traceframe_info>: Use
7532 TARGET_DEFAULT_NORETURN (tcomplain ()).
7533 * target-delegates.c: Regenerated.
7535 2014-03-05 Pedro Alves <palves@redhat.com>
7538 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7539 void. Update comment.
7540 (dcache_xfer_memory): Delete.
7541 (dcache_read_memory_partial): New, based on the read bits of
7543 (dcache_update): Add status parameter. Use ULONGEST for len, and
7544 adjust. Discard cache lines if the reason for the update was
7546 * dcache.h (dcache_xfer_memory): Delete declaration.
7547 (dcache_read_memory_partial): New declaration.
7548 (dcache_update): Update prototype.
7549 * target.c (raw_memory_xfer_partial): Update the dcache here.
7550 (memory_xfer_partial_1): Don't handle dcache writes here.
7552 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7554 * remote-sim.c (gdbsim_load): Add const to prog.
7556 2014-03-03 Tom Tromey <tromey@redhat.com>
7558 * elfread.c (probe_key): Change to bfd_data.
7559 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7560 now per-BFD, not per-objfile.
7561 * stap-probe.c (stap_probe_destroy): Update comment.
7562 (handle_stap_probe): Allocate on the per-BFD obstack.
7564 2014-03-03 Tom Tromey <tromey@redhat.com>
7566 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7567 * breakpoint.c (create_longjmp_master_breakpoint): Use
7569 (add_location_to_breakpoint, bkpt_probe_insert_location)
7570 (bkpt_probe_remove_location): Update.
7571 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7572 * elfread.c (elf_symfile_relocate_probe): Remove.
7573 (elf_probe_fns): Update.
7574 (insert_exception_resume_breakpoint): Change type of "probe"
7575 parameter to bound_probe.
7576 (check_exception_resume): Update.
7577 * objfiles.c (objfile_relocate1): Don't relocate probes.
7578 * probe.c (bound_probe_s): New typedef.
7579 (parse_probes): Use get_probe_address. Set sal's objfile.
7580 (find_probe_by_pc): Return a bound_probe.
7581 (collect_probes): Return a VEC(bound_probe_s).
7582 (compare_probes): Update.
7583 (gen_ui_out_table_header_info): Change type of "probes"
7585 (info_probes_for_ops): Update.
7586 (get_probe_address): New function.
7587 (probe_safe_evaluate_at_pc): Update.
7588 * probe.h (struct probe_ops) <get_probe_address>: New field.
7589 <set_semaphore, clear_semaphore>: Add objfile parameter.
7590 (struct probe) <objfile>: Remove field.
7592 <address>: Update comment.
7593 (struct bound_probe): New.
7594 (find_probe_by_pc): Return a bound_probe.
7595 (get_probe_address): Declare.
7596 * solib-svr4.c (struct probe_and_action) <address>: New field.
7597 (hash_probe_and_action, equal_probe_and_action): Update.
7598 (register_solib_event_probe): Add address parameter.
7599 (solib_event_probe_at): Update.
7600 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7602 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7603 (stap_get_probe_address): New function.
7604 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7605 (compile_probe_arg): Update.
7606 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7608 (handle_stap_probe): Don't relocate the probe.
7609 (stap_relocate): Remove.
7610 (stap_gen_info_probes_table_values): Update.
7611 (stap_probe_ops): Remove stap_relocate.
7612 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7613 (debug_sym_probe_fns): Update.
7614 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7615 * symtab.c (init_sal): Use memset.
7616 * symtab.h (struct symtab_and_line) <objfile>: New field.
7617 * tracepoint.c (start_tracing, stop_tracing): Update.
7619 2014-03-03 Tom Tromey <tromey@redhat.com>
7621 * probe.h (parse_probes, find_probe_by_pc)
7622 (find_probes_in_objfile): Fix comments.
7624 2014-03-02 Doug Evans <xdje42@gmail.com>
7626 * infrun.c (handle_signal_stop): Replace test for
7627 TARGET_WAITKIND_STOPPED with an assert.
7629 2014-03-02 Doug Evans <xdje42@gmail.com>
7631 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7633 2014-03-02 Doug Evans <xdje42@gmail.com>
7635 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7637 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7639 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7641 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7643 * i386obsd-nat.c: Include "obsd-nat.h".
7644 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7646 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7648 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7650 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7652 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7654 * mips64obsd-nat.c: Include "obsd-nath".
7655 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7657 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7659 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7661 * amd64obsd-nat.c: Include "obsd-nat,h.
7662 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7664 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7666 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7668 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7669 (find_overload_match): Update call to find_oload_champ.
7670 (find_oload_champ_namespace_loop): Likewise
7672 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7674 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7676 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7677 * config/sparc/obsd64.mh: New file.
7678 * sparc64obsd-nat.c: New file.
7680 * obsd-nat.h: New file.
7681 * obsd-nat.c: New file.
7682 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7683 (ALLDEPFILES): Add obsd-nat.c.
7685 2014-02-28 Tom Tromey <tromey@redhat.com>
7687 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7688 * cli-out.h (cli_ui_out_impl): Now const.
7689 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7690 * ui-out.c (struct ui_out) <impl>: Now const.
7691 (default_ui_out_impl): Now const.
7692 (ui_out_new): Make 'impl' parameter const.
7693 * ui-out.h (ui_out_new): Update.
7695 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7697 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7699 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7701 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7703 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7705 Additional PR 8882 fix.
7706 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7708 2014-02-27 Pedro Alves <palves@redhat.com>
7710 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7713 2014-02-27 Pedro Alves <palves@redhat.com>
7716 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7717 * nat/linux-waitpid.c: Include string.h.
7718 (status_to_str): Moved here and made extern.
7719 * nat/linux-waitpid.h (status_to_str): New declaration.
7721 2014-02-27 Hui Zhu <hui@codesourcery.com>
7724 * infrun.c (ptid_match): Move ...
7725 * common/ptid.c (ptid_match): ... here.
7726 * inferior.h (ptid_match): Move ...
7727 * common/ptid.h (ptid_match): ... here.
7729 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7731 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7732 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7735 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7737 * obsd-tdep.c (obsd_auxv_parse): New function.
7738 (obsd_init_abi): Set auxv_parse.
7740 * gdbarch.sh (auxv_parse): New.
7741 * gdbarch.h: Regenerated.
7742 * gdbarch.c: Regenerated.
7743 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7745 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7747 * guile/scm-value.c (gdbscm_history_append_x): New function.
7748 (value_functions): Add it.
7750 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7752 * dwarf2read.c (attr_value_as_address): New function.
7753 (dwarf2_find_base_address, read_call_site_scope): Use
7754 attr_value_as_address in place of DW_ADDR.
7755 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7756 the low and high addresses. Slight rework of the handling
7757 of the high pc being a constant form, and limit it to
7758 DWARF verson 4 or higher.
7759 (dwarf2_record_block_ranges): Likewise.
7760 (read_partial_die): Likewise.
7761 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7763 2014-02-26 Tom Tromey <tromey@redhat.com>
7765 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7767 2014-02-26 Tom Tromey <tromey@redhat.com>
7769 * elfread.c (elf_read_minimal_symbols): Return early if
7770 minimal symbols have already been read. Add "ei" parameter.
7771 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7772 * minsyms.c (prim_record_minimal_symbol_full): Update.
7773 * objfiles.h (struct objstats) <n_minsyms>: Move...
7774 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7775 * symmisc.c (print_objfile_statistics): Update.
7777 2014-02-26 Tom Tromey <tromey@redhat.com>
7779 * elfread.c (elf_read_minimal_symbols): New function, from
7781 (elf_symfile_read): Call it.
7783 2014-02-26 Tom Tromey <tromey@redhat.com>
7785 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7786 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7787 (lookup_minimal_symbol_solib_trampoline)
7788 (lookup_minimal_symbol_by_pc_section_1)
7789 (lookup_minimal_symbol_and_objfile): Update.
7790 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7791 Don't allocate a minimal symbol if minsyms have already been read.
7792 (build_minimal_symbol_hash_tables): Update.
7793 (install_minimal_symbols): Do nothing if minsyms already read.
7794 Use the per-BFD obstack.
7795 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7796 * objfiles.c (allocate_objfile): Call
7797 terminate_minimal_symbol_table later.
7798 (have_minimal_symbols): Update.
7799 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7800 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7801 Move from struct objfile.
7802 <minsyms_read>: New field.
7803 (struct objfile) <msymbols, minimal_symbol_count,
7804 msymbol_hash, msymbol_demangled_hash>: Move.
7805 (ALL_OBJFILE_MSYMBOLS): Update.
7806 * symfile.c (read_symbols): Set minsyms_read.
7807 (reread_symbols): Update.
7808 * symmisc.c (dump_objfile, dump_msymbols): Update.
7810 2014-02-26 Tom Tromey <tromey@redhat.com>
7812 * minsyms.c (msymbols_sort): Remove.
7813 * minsyms.h (msymbols_sort): Remove.
7814 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7815 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7816 * elfread.c (elf_symtab_read): Don't add section offsets.
7817 * xcoffread.c (record_minimal_symbol): Don't add section offset
7818 to minimal symbol address.
7819 * somread.c (text_offset, data_offset): Remove.
7820 (som_symtab_read): Don't add section offsets to minimal symbol
7822 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7823 Don't add section offsets to minimal symbols.
7824 * coffread.c (coff_symtab_read): Don't add section offsets
7825 to minimal symbol addresses.
7826 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7827 to minimal symbol addresses.
7828 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7829 section offset to minimal symbol addresses.
7830 * mdebugread.c (parse_partial_symbols): Don't add section
7831 offset to minimal symbol addresses.
7832 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7833 offset to minimal symbol addresses.
7835 2014-02-26 Tom Tromey <tromey@redhat.com>
7837 * ada-lang.c (ada_main_name): Update.
7838 (ada_add_standard_exceptions): Update.
7839 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7840 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7841 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7842 * auxv.c (ld_so_xfer_auxv): Update.
7843 * avr-tdep.c (avr_scan_prologue): Update.
7844 * ax-gdb.c (gen_var_ref): Update.
7845 * blockframe.c (get_pc_function_start)
7846 (find_pc_partial_function_gnu_ifunc): Update.
7847 * breakpoint.c (create_overlay_event_breakpoint)
7848 (create_longjmp_master_breakpoint)
7849 (create_std_terminate_master_breakpoint)
7850 (create_exception_master_breakpoint): Update.
7851 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7852 * c-valprint.c (c_val_print): Update.
7853 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7854 * common/agent.c (agent_look_up_symbols): Update.
7855 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7856 * dwarf2loc.c (call_site_to_target_addr): Update.
7857 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7858 * elfread.c (elf_gnu_ifunc_record_cache)
7859 (elf_gnu_ifunc_resolve_by_got): Update.
7860 * findvar.c (default_read_var_value): Update.
7861 * frame.c (inside_main_func): Update.
7862 * frv-tdep.c (frv_frame_this_id): Update.
7863 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7864 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7866 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7867 (hppa_hpux_find_dummy_bpaddr): Update.
7868 * hppa-tdep.c (hppa_symbol_address): Update.
7869 * infcmd.c (until_next_command): Update.
7870 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7872 * linespec.c (minsym_found, add_minsym): Update.
7873 * linux-nat.c (get_signo): Update.
7874 * linux-thread-db.c (inferior_has_bug): Update.
7875 * m32c-tdep.c (m32c_return_value)
7876 (m32c_m16c_address_to_pointer): Update.
7877 * m32r-tdep.c (m32r_frame_this_id): Update.
7878 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7879 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7880 * maint.c (maintenance_translate_address): Update.
7881 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7882 (frob_address): New function.
7883 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7884 frob_address. Rename parameter to "pc_in".
7885 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7887 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7889 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7890 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7891 * objc-lang.c (find_objc_msgsend): Update.
7892 * objfiles.c (objfile_relocate1): Update.
7893 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7894 * p-valprint.c (pascal_val_print): Update.
7895 * parse.c (write_exp_msymbol): Update.
7896 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7897 (ppc_elfv2_skip_entrypoint): Update.
7898 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7899 * printcmd.c (build_address_symbolic, msym_info)
7900 (address_info): Update.
7901 * proc-service.c (ps_pglobal_lookup): Update.
7902 * psymtab.c (find_pc_sect_psymtab_closer)
7903 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7904 Change msymbol parameter to bound_minimal_symbol.
7905 * ravenscar-thread.c (get_running_thread_id): Update.
7906 * remote.c (remote_check_symbols): Update.
7907 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7909 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7910 * solib-dsbt.c (lm_base): Update.
7911 * solib-frv.c (lm_base, main_got): Update.
7912 * solib-irix.c (locate_base): Update.
7913 * solib-som.c (som_solib_create_inferior_hook)
7914 (link_map_start): Update.
7915 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7916 * solib-svr4.c (elf_locate_base, enable_break): Update.
7917 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7918 (flush_ea_cache): Update.
7919 * stabsread.c (define_symbol, scan_file_globals): Update.
7920 * stack.c (find_frame_funname): Update.
7921 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7922 (debug_qf_find_pc_sect_symtab): Update.
7923 * symfile.c (simple_read_overlay_table)
7924 (simple_overlay_update): Update.
7925 * symfile.h (struct quick_symbol_functions)
7926 <find_pc_sect_symtab>: Change type of msymbol to
7927 bound_minimal_symbol.
7928 * symmisc.c (dump_msymbols): Update.
7929 * symtab.c (find_pc_sect_symtab_via_partial)
7930 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7931 (search_symbols, print_msymbol_info): Update.
7932 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7933 (MSYMBOL_VALUE_ADDRESS): Redefine.
7934 (BMSYMBOL_VALUE_ADDRESS): New macro.
7935 * tracepoint.c (scope_info): Update.
7936 * tui/tui-disasm.c (tui_find_disassembly_address)
7937 (tui_get_begin_asm_address): Update.
7938 * valops.c (find_function_in_inferior): Update.
7939 * value.c (value_static_field, value_fn_field): Update.
7941 2014-02-26 Tom Tromey <tromey@redhat.com>
7943 * ada-lang.c (ada_update_initial_language): Update.
7944 (ada_main_name, ada_has_this_exception_support): Update.
7945 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7946 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7947 * arm-tdep.c (arm_skip_stub): Update.
7948 * auxv.c (ld_so_xfer_auxv): Update.
7949 * avr-tdep.c (avr_scan_prologue): Update.
7950 * ax-gdb.c (gen_var_ref): Update.
7951 * breakpoint.c (struct breakpoint_objfile_data)
7952 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7953 type to bound_minimal_symbol.
7954 (create_overlay_event_breakpoint)
7955 (create_longjmp_master_breakpoint)
7956 (create_std_terminate_master_breakpoint)
7957 (create_exception_master_breakpoint): Update.
7958 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7959 * c-exp.y (classify_name): Update.
7960 * coffread.c (coff_symfile_read): Update.
7961 * common/agent.c (agent_look_up_symbols): Update.
7962 * d-lang.c (d_main_name): Update.
7963 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7964 * dec-thread.c (enable_dec_thread): Update.
7965 * dwarf2loc.c (call_site_to_target_addr): Update.
7966 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7967 * eval.c (evaluate_subexp_standard): Update.
7968 * findvar.c (struct minsym_lookup_data) <result>: Change type
7969 to bound_minimal_symbol.
7971 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7972 * frame.c (inside_main_func): Update.
7973 * frv-tdep.c (frv_frame_this_id): Update.
7974 * gcore.c (call_target_sbrk): Update.
7975 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7976 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7978 * go-lang.c (go_main_name): Update.
7979 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7980 (hppa_hpux_find_import_stub_for_addr): Update.
7981 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7982 Update. Change return type.
7983 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7985 * jit.c (jit_breakpoint_re_set_internal): Update.
7986 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7988 * linux-nat.c (get_signo): Update.
7989 * linux-thread-db.c (inferior_has_bug): Update
7990 * m32c-tdep.c (m32c_return_value)
7991 (m32c_m16c_address_to_pointer): Update.
7992 * m32r-tdep.c (m32r_frame_this_id): Update.
7993 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7994 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7995 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7996 lookup_minimal_symbol. Change return type.
7997 (lookup_minimal_symbol): Remove.
7998 (lookup_bound_minimal_symbol): Update.
7999 (lookup_minimal_symbol_text): Change return type.
8000 (lookup_minimal_symbol_solib_trampoline): Change return type.
8001 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8002 (lookup_minimal_symbol_solib_trampoline): Change return type.
8003 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8004 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8005 (value_nsstring, find_imps): Update.
8006 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8007 * p-lang.c (pascal_main_name): Update.
8008 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8009 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8010 * proc-service.c (ps_pglobal_lookup): Update.
8011 * ravenscar-thread.c (get_running_thread_msymbol): Change
8013 (has_ravenscar_runtime, get_running_thread_id): Update.
8014 * remote.c (remote_check_symbols): Update.
8015 * sol-thread.c (ps_pglobal_lookup): Update.
8016 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8017 * solib-dsbt.c (lm_base): Update.
8018 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8020 * solib-irix.c (locate_base): Update.
8021 * solib-som.c (som_solib_create_inferior_hook)
8022 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8024 * solib-spu.c (spu_enable_break): Update.
8025 * solib-svr4.c (elf_locate_base, enable_break): Update.
8026 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8027 (flush_ea_cache): Update.
8028 * stabsread.c (define_symbol): Update.
8029 * symfile.c (simple_read_overlay_table): Update.
8030 * symtab.c (find_pc_sect_line): Update.
8031 * tracepoint.c (scope_info): Update.
8032 * tui-disasm.c (tui_get_begin_asm_address): Update.
8033 * value.c (value_static_field): Update.
8035 2014-02-26 Tom Tromey <tromey@redhat.com>
8037 * minsyms.c (prim_record_minimal_symbol_full): Use
8038 SET_MSYMBOL_VALUE_ADDRESS.
8039 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8040 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8041 SET_MSYMBOL_VALUE_ADDRESS.
8042 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8043 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8045 2014-02-26 Tom Tromey <tromey@redhat.com>
8047 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8048 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8049 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8050 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8051 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8052 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8053 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8054 * ada-lang.c (ada_main_name): Update.
8055 (ada_lookup_simple_minsym): Update.
8056 (ada_make_symbol_completion_list): Update.
8057 (ada_add_standard_exceptions): Update.
8058 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8059 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8060 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8061 * arm-tdep.c (skip_prologue_function): Update.
8062 (arm_skip_stack_protector, arm_skip_stub): Update.
8063 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8064 (arm_wince_skip_main_prologue): Update.
8065 * auxv.c (ld_so_xfer_auxv): Update.
8066 * avr-tdep.c (avr_scan_prologue): Update.
8067 * ax-gdb.c (gen_var_ref): Update.
8068 * block.c (call_site_for_pc): Update.
8069 * blockframe.c (get_pc_function_start): Update.
8070 (find_pc_partial_function_gnu_ifunc): Update.
8071 * breakpoint.c (create_overlay_event_breakpoint): Update.
8072 (create_longjmp_master_breakpoint): Update.
8073 (create_std_terminate_master_breakpoint): Update.
8074 (create_exception_master_breakpoint): Update.
8075 (resolve_sal_pc): Update.
8076 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8077 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8079 * c-valprint.c (c_val_print): Update.
8080 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8081 * coffread.c (coff_symfile_read): Update.
8082 * common/agent.c (agent_look_up_symbols): Update.
8083 * dbxread.c (find_stab_function_addr): Update.
8084 (end_psymtab): Update.
8085 * dwarf2loc.c (call_site_to_target_addr): Update.
8086 (func_verify_no_selftailcall): Update.
8087 (tailcall_dump): Update.
8088 (call_site_find_chain_1): Update.
8089 (dwarf_expr_reg_to_entry_parameter): Update.
8090 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8091 (elf_gnu_ifunc_resolve_by_got): Update.
8092 * f-valprint.c (info_common_command): Update.
8093 * findvar.c (read_var_value): Update.
8094 * frame.c (get_prev_frame_1): Update.
8095 (inside_main_func): Update.
8096 * frv-tdep.c (frv_skip_main_prologue): Update.
8097 (frv_frame_this_id): Update.
8098 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8099 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8100 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8101 (gnuv3_skip_trampoline): Update.
8102 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8103 (hppa64_hpux_in_solib_call_trampoline): Update.
8104 (hppa_hpux_skip_trampoline_code): Update.
8105 (hppa64_hpux_search_dummy_call_sequence): Update.
8106 (hppa_hpux_find_import_stub_for_addr): Update.
8107 (hppa_hpux_find_dummy_bpaddr): Update.
8108 * hppa-tdep.c (hppa_symbol_address)
8109 (hppa_lookup_stub_minimal_symbol): Update.
8110 * i386-tdep.c (i386_skip_main_prologue): Update.
8111 (i386_pe_skip_trampoline_code): Update.
8112 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8113 * infcall.c (get_function_name): Update.
8114 * infcmd.c (until_next_command): Update.
8115 * jit.c (jit_breakpoint_re_set_internal): Update.
8116 (jit_inferior_init): Update.
8117 * linespec.c (minsym_found): Update.
8118 (add_minsym): Update.
8119 * linux-fork.c (info_checkpoints_command): Update.
8120 * linux-nat.c (get_signo): Update.
8121 * linux-thread-db.c (inferior_has_bug): Update.
8122 * m32c-tdep.c (m32c_return_value): Update.
8123 (m32c_m16c_address_to_pointer): Update.
8124 (m32c_m16c_pointer_to_address): Update.
8125 * m32r-tdep.c (m32r_frame_this_id): Update.
8126 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8127 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8128 * maint.c (maintenance_translate_address): Update.
8129 * minsyms.c (add_minsym_to_hash_table): Update.
8130 (add_minsym_to_demangled_hash_table): Update.
8131 (msymbol_objfile): Update.
8132 (lookup_minimal_symbol): Update.
8133 (iterate_over_minimal_symbols): Update.
8134 (lookup_minimal_symbol_text): Update.
8135 (lookup_minimal_symbol_by_pc_name): Update.
8136 (lookup_minimal_symbol_solib_trampoline): Update.
8137 (lookup_minimal_symbol_by_pc_section_1): Update.
8138 (lookup_minimal_symbol_and_objfile): Update.
8139 (prim_record_minimal_symbol_full): Update.
8140 (compare_minimal_symbols): Update.
8141 (compact_minimal_symbols): Update.
8142 (build_minimal_symbol_hash_tables): Update.
8143 (install_minimal_symbols): Update.
8144 (terminate_minimal_symbol_table): Update.
8145 (find_solib_trampoline_target): Update.
8146 (minimal_symbol_upper_bound): Update.
8147 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8148 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8149 (mips_skip_pic_trampoline_code): Update.
8150 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8151 * objc-lang.c (selectors_info): Update.
8152 (classes_info): Update.
8153 (find_methods): Update.
8154 (find_imps): Update.
8155 (find_objc_msgsend): Update.
8156 * objfiles.c (objfile_relocate1): Update.
8157 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8158 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8159 * p-valprint.c (pascal_val_print): Update.
8160 * parse.c (write_exp_msymbol): Update.
8161 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8162 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8163 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8164 * printcmd.c (build_address_symbolic): Update.
8166 (address_info): Update.
8167 * proc-service.c (ps_pglobal_lookup): Update.
8168 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8169 (find_pc_sect_psymtab): Update.
8170 * python/py-framefilter.c (py_print_frame): Update.
8171 * ravenscar-thread.c (get_running_thread_id): Update.
8172 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8174 * remote.c (remote_check_symbols): Update.
8175 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8176 (rs6000_skip_trampoline_code): Update.
8177 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8178 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8179 * solib-dsbt.c (lm_base): Update.
8180 * solib-frv.c (lm_base): Update.
8182 * solib-irix.c (locate_base): Update.
8183 * solib-som.c (som_solib_create_inferior_hook): Update.
8184 (som_solib_desire_dynamic_linker_symbols): Update.
8185 (link_map_start): Update.
8186 * solib-spu.c (spu_enable_break): Update.
8187 (ocl_enable_break): Update.
8188 * solib-svr4.c (elf_locate_base): Update.
8189 (enable_break): Update.
8190 * spu-tdep.c (spu_get_overlay_table): Update.
8191 (spu_catch_start): Update.
8192 (flush_ea_cache): Update.
8193 * stabsread.c (define_symbol): Update.
8194 (scan_file_globals): Update.
8195 * stack.c (find_frame_funname): Update.
8196 (frame_info): Update.
8197 * symfile.c (simple_read_overlay_table): Update.
8198 (simple_overlay_update): Update.
8199 * symmisc.c (dump_msymbols): Update.
8200 * symtab.c (fixup_section): Update.
8201 (find_pc_sect_line): Update.
8202 (skip_prologue_sal): Update.
8203 (search_symbols): Update.
8204 (print_msymbol_info): Update.
8205 (rbreak_command): Update.
8206 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8207 (completion_list_objc_symbol): Update.
8208 (default_make_symbol_completion_list_break_on): Update.
8209 * tracepoint.c (scope_info): Update.
8210 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8211 (tui_get_begin_asm_address): Update.
8212 * valops.c (find_function_in_inferior): Update.
8213 * value.c (value_static_field): Update.
8214 (value_fn_field): Update.
8216 2014-02-26 Tom Tromey <tromey@redhat.com>
8218 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8219 bound minimal symbols. Move code that knows about minsym
8221 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8223 * minsyms.h (minimal_symbol_upper_bound): Declare.
8224 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8225 minimal_symbol_upper_bound.
8227 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8229 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8230 Use the type's name if its basic type does not have a tag.
8232 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8234 * dwarf2read.c (read_subrange_type): Add comment.
8236 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8238 * dwarf2read.c (update_enumeration_type_from_children): New
8239 function, mostly extracted from process_structure_scope.
8240 (read_enumeration_type): Call update_enumeration_type_from_children.
8241 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8242 and flag_flag_enum fields.
8244 2014-02-26 Pedro Alves <palves@redhat.com>
8246 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8247 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8248 to_xfer_partial method.
8250 2014-02-26 Pedro Alves <palves@redhat.com>
8252 * target.c (complete_target_initialization): Don't install
8253 default_xfer_partial as to_xfer_partial hook.
8255 (update_current_target): Don't INHERIT nor de_fault
8256 deprecated_xfer_memory. Delete de_fault macro.
8257 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8258 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8259 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8262 2014-02-26 Pedro Alves <palves@redhat.com>
8264 * go32-nat.c (my_write_child): New function.
8265 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8266 (go32_xfer_partial): New function.
8267 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8268 Instead install a to_xfer_partial hook.
8270 2014-02-26 Pedro Alves <palves@redhat.com>
8272 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8273 to_xfer_partial helper. Rewrite.
8274 (procfs_xfer_partial): New function.
8275 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8276 Install a to_xfer_partial hook.
8278 2014-02-26 Pedro Alves <palves@redhat.com>
8280 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8281 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8282 (m32r_xfer_partial): New function.
8283 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8284 Install a to_xfer_partial hook.
8286 2014-02-26 Pedro Alves <palves@redhat.com>
8288 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8290 (mips_xfer_partial): New function.
8291 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8292 hook. Install a to_xfer_partial hook.
8294 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8296 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8297 * gdbtypes.c (create_array_type_with_stride): New function,
8298 renaming create_array_type, but with an added parameter
8299 called "bit_stride".
8300 (create_array_type): Re-implement using
8301 create_array_type_with_stride.
8302 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8303 and DW_AT_bit_stride attributes.
8305 2014-02-26 Pedro Alves <palves@redhat.com>
8307 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8308 task-specific breakpoints.
8310 2014-02-25 Pedro Alves <palves@redhat.com>
8312 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8313 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8315 2014-02-25 Stan Shebs <stan@codesourcery.com>
8317 * defs.h: Annotate comments for Doxygen.
8319 2014-02-25 Tom Tromey <tromey@redhat.com>
8321 * target.h (target_ignore): Don't declare.
8322 * target.c (target_ignore): Remove.
8324 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8327 * auto-load.c (auto_load_objfile_script_1): Change filename to
8330 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8332 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8333 documentation. Adjust prototype to match the target_ops
8334 to_xfer_partial method. Adjust implementation accordingly.
8336 2014-02-25 Hui Zhu <hui@codesourcery.com>
8338 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8341 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8343 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8344 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8345 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8346 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8347 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8348 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8349 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8350 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8352 (rl78_register_type): Use a data pointer type for SP and
8353 new pseudo registers mentioned above. Use a 16 bit integer
8354 type for all other register pairs.
8355 (rl78_register_name, rl78_g10_register_name): Update for
8356 new pseudo registers.
8357 (rl78_pseudo_register_read): Likewise.
8358 (rl78_pseudo_register_write): Likewise.
8359 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8360 to the newly added pseudo registers.
8362 2014-02-24 Doug Evans <dje@google.com>
8364 * value.c (record_latest_value): Fix comment.
8365 * printcmd.c (print_command_1): Remove code to handle -1 return from
8366 record_latest_value.
8368 2014-02-24 Pedro Alves <palves@redhat.com>
8370 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8371 deprecated_xfer_memory hook.
8372 (procfs_xfer_partial): Call procfs_xfer_memory instead
8373 of the deprecated_xfer_memory target hook.
8374 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8377 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8379 * windows-nat.c (windows_xfer_shared_libraries): Return
8380 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8381 requested object is TARGET_OBJECT_LIBRARIES.
8383 2014-02-24 Yao Qi <yao@codesourcery.com>
8385 * target.h (enum target_xfer_status)
8386 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8387 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8389 * corefile.c (memory_error_message): User updated.
8390 * exec.c (section_table_read_available_memory): Likewise.
8391 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8392 * target.c (target_xfer_status_to_string): Likewise.
8393 (raw_memory_xfer_partial): Likewise.
8394 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8395 * valops.c (read_value_memory): Likewise.
8396 * exec.h: Update comments.
8398 2014-02-24 Yao Qi <yao@codesourcery.com>
8400 * target.c (target_xfer_status_to_string): Rename argument err
8402 * target.h (target_xfer_status_to_string): Update declaration.
8403 Replace target_xfer_error_to_string with
8404 target_xfer_status_to_string in comment.
8406 2014-02-24 Yao Qi <yao@codesourcery.com>
8408 * mips-linux-nat.c (super_close): Update its type.
8409 (mips_linux_close): Pass 'self' to super_close.
8411 2014-02-24 Yao Qi <yao@codesourcery.com>
8413 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8414 * corefile.c (read_memory): Adjusted.
8415 * target.c (target_write_with_progress): Adjusted.
8417 2014-02-23 Yao Qi <yao@codesourcery.com>
8421 2013-10-25 Yao Qi <yao@codesourcery.com>
8423 * remote.c (remote_traceframe_info): Return early if
8424 traceframe is not selected.
8426 2013-07-19 Yao Qi <yao@codesourcery.com>
8428 * target.c (update_current_target): Change the default action
8429 of 'to_traceframe_info' from tcomplain to return_zero.
8430 * target.h (struct target_ops) <to_traceframe_info>: Add more
8433 2014-02-23 Yao Qi <yao@codesourcery.com>
8435 * valops.c (read_value_memory): Rewrite it. Call
8436 target_xfer_partial in a loop.
8437 * exec.h (section_table_available_memory): Remove declaration.
8438 Move comments to ...
8439 * exec.c (section_table_available_memory): ... here. Make it
8442 2014-02-23 Yao Qi <yao@codesourcery.com>
8444 * exec.c (section_table_read_available_memory): New function.
8445 * exec.h (section_table_read_available_memory): Declare.
8446 * ctf.c (ctf_xfer_partial): Call
8447 section_table_read_available_memory.
8448 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8450 2014-02-23 Yao Qi <yao@codesourcery.com>
8452 * ctf.c (ctf_xfer_partial): Move code to ...
8453 * exec.c (exec_read_partial_read_only): ... it. New function.
8454 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8455 * tracefile.c: Include "exec.h".
8456 * exec.h (exec_read_partial_read_only): Declare.
8458 2014-02-23 Yao Qi <yao@codesourcery.com>
8460 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8461 (tfile_has_memory): Remove.
8462 (init_tfile_ops): Don't set fields to_has_all_memory and
8463 to_has_memory of tfile_ops.
8464 * tracefile.c (tracefile_has_all_memory): New function.
8465 (tracefile_has_memory): New function.
8466 (init_tracefile_ops): Initialize fields to_has_all_memory and
8467 to_has_memory of 'ops'.
8469 2014-02-23 Yao Qi <yao@codesourcery.com>
8471 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8472 (ctf_thread_alive, ctf_get_trace_status): Remove.
8473 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8475 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8476 (tfile_has_stack, tfile_has_registers): Remove.
8477 (tfile_thread_alive): Remove.
8478 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8480 * tracefile.c (tracefile_has_stack): New function.
8481 (tracefile_has_registers): New function.
8482 (tracefile_thread_alive): New function.
8483 (tracefile_get_trace_status): New function.
8484 (init_tracefile_ops): New function.
8485 * tracefile.h (init_tracefile_ops): Declare.
8487 2014-02-23 Yao Qi <yao@codesourcery.com>
8489 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8490 (O_LARGEFILE): Likewise.
8491 (tfile_ops): Likewise.
8492 (TRACE_HEADER_SIZE): Likewise.
8493 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8494 (cur_data_size): Likewise.
8495 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8496 (tfile_close, tfile_files_info): Likewise.
8497 (tfile_get_trace_status): Likewise.
8498 (tfile_get_tracepoint_status): Likewise.
8499 (tfile_get_traceframe_address): Likewise.
8500 (tfile_trace_find, match_blocktype): Likewise.
8501 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8502 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8503 (tfile_get_trace_state_variable_value): Likewise.
8504 (tfile_has_all_memory, tfile_has_memory): Likewise.
8505 (tfile_has_stack, tfile_has_registers): Likewise.
8506 (tfile_thread_alive, build_traceframe_info): Likewise.
8507 (tfile_traceframe_info, init_tfile_ops): Likewise.
8508 (_initialize_tracepoint): Don't call init_tfile_ops
8509 and add_target_with_completer.
8510 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8511 exec.h, completer.h and filenames.h.
8512 (_initialize_tracefile_tfile): New function.
8514 2014-02-23 Yao Qi <yao@codesourcery.com>
8516 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8518 (HFILES_NO_SRCDIR): Add tracefile.h.
8519 * ctf.c: Include "tracefile.h".
8520 * tracefile.h: New file.
8521 * tracefile.c: New file
8522 * tracefile-tfile.c: New file.
8523 * tracepoint.c: Include "tracefile.h".
8524 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8525 (stop_reason_names): Add const.
8526 (trace_file_writer_xfree): Move it to tracefile.c.
8527 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8528 (trace_save_ctf): Likewise.
8529 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8530 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8531 (tfile_write_header, tfile_write_regblock_type): Likewise.
8532 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8533 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8534 (tfile_write_raw_data, tfile_end): Likewise.
8535 (tfile_trace_file_writer_new): Likewise.
8536 (free_uploaded_tp): Make it extern.
8537 (free_uploaded_tsv): Make it extern.
8538 (_initialize_tracepoint): Move code to register command 'tsave'
8540 * tracepoint.h (stop_reason_names): Declare.
8541 (struct trace_frame_write_ops): Move it to tracefile.h.
8542 (struct trace_file_write_ops): Likewise.
8543 (struct trace_file_writer): Likewise.
8544 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8546 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8549 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8551 (get_cores_used_by_process): New parameter num_cores, use it.
8552 (linux_xfer_osdata_processes): Pass num_cores to it.
8553 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8556 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8558 * target.c (memory_xfer_partial): Fix length arg in call to
8559 breakpoint_xfer_memory.
8561 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8564 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8565 number comes after the + or - signs. Adjust length of register
8566 name to be extracted.
8568 2014-02-20 Tom Tromey <tromey@redhat.com>
8570 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8571 (ada_varobj_ops): Mark "extern".
8573 2014-02-20 Tom Tromey <tromey@redhat.com>
8575 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8577 2014-02-20 Doug Evans <xdje42@gmail.com>
8579 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8580 All callers updated.
8581 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8582 All callers updated.
8583 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8584 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8586 2014-02-20 lin zuojian <manjian2006@gmail.com>
8587 Joel Brobecker <brobecker@adacore.com>
8588 Doug Evans <xdje42@gmail.com>
8591 * dwarf2read.c (struct die_info): New member in_process.
8592 (reset_die_in_process): New function.
8593 (process_die): Set it at the start, reset when returning.
8594 (inherit_abstract_dies): Only call process_die if origin_child_die
8595 not already being processed.
8597 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8599 * windows-nat.c (handle_unload_dll): Add function documentation.
8600 (do_initial_windows_stuff): Add comment explaining why we wait
8601 until after inferior initialization has finished before
8602 processing all DLLs.
8604 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8606 * windows-nat.c (get_module_name): Delete.
8607 (windows_get_exec_module_filename): New function, mostly
8608 inspired from get_module_name.
8609 (windows_pid_to_exec_file): Replace call to get_module_name
8610 by call to windows_get_exec_module_filename.
8612 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8614 * windows-nat.c (handle_load_dll): Rewrite this function's
8615 introductory comment. Remove code using get_module_name
8616 to get the DLL's name.
8618 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8620 * windows-nat.c (get_windows_debug_event): Ignore
8621 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8622 if windows_initialization_done == 0.
8623 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8624 Adjust implementation to always load all DLLs.
8625 (do_initial_windows_stuff): Replace call to
8626 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8628 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8630 * windows-nat.c (_initialize_windows_nat): Deprecate the
8631 "dll-symbols" command. Turn the "add-shared-symbol-files"
8632 and "assf" aliases into commands, and deprecate them as well.
8633 * NEWS: Add entry explaining that "dll-symbols" and its two
8634 aliases are now deprecated.
8636 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8638 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8639 new-line in debug string. Remove trailing spaces.
8641 2014-02-19 Stan Shebs <stan@codesourcery.com>
8643 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8645 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8647 * NEWS: Add entry for the new feature
8648 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8651 2014-02-19 Stan Shebs <stan@codesourcery.com>
8653 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8655 2014-02-19 Pedro Alves <palves@redhat.com>
8657 * common/ptid.h (struct ptid): Mention that process_stratum
8658 targets should prefer ptid.lwp.
8660 2014-02-19 Pedro Alves <palves@redhat.com>
8662 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8663 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8664 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8665 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8666 store remote thread ids rather than ptid.tid.
8667 (_initialize_remote): Adjust.
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8671 * target.c (target_get_unwinder): Rewrite.
8672 (target_get_tailcall_unwinder): Rewrite.
8673 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8674 (record_btrace_to_get_tailcall_unwinder): New function.
8675 (init_record_btrace_ops): Update.
8676 * target.h (struct target_ops) <to_get_unwinder,
8677 to_get_tailcall_unwinder>: Now function pointers. Use
8678 TARGET_DEFAULT_RETURN.
8680 2014-02-19 Tom Tromey <tromey@redhat.com>
8682 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8684 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8686 2014-02-19 Tom Tromey <tromey@redhat.com>
8688 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8690 * target-delegates.c: Rebuild.
8691 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8692 TARGET_DEFAULT_FUNC.
8693 * target.c (default_target_decr_pc_after_break): Rename from
8694 forward_target_decr_pc_after_break. Simplify.
8695 (target_decr_pc_after_break): Rely on delegation.
8697 2014-02-19 Tom Tromey <tromey@redhat.com>
8699 * target.c (update_current_target): Do not INHERIT to_doc or
8700 to_magic. Do not de_fault to_open or to_close.
8702 2014-02-19 Tom Tromey <tromey@redhat.com>
8704 * gcore.h (objfile_find_memory_regions): Declare.
8705 * gcore.c (objfile_find_memory_regions): No longer static. Add
8707 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8708 * exec.c: Include gcore.h.
8709 (exec_set_find_memory_regions): Remove.
8710 (exec_find_memory_regions): Remove.
8711 (exec_do_find_memory_regions): Remove.
8712 (init_exec_ops): Update.
8713 * defs.h (exec_set_find_memory_regions): Remove.
8715 2014-02-19 Tom Tromey <tromey@redhat.com>
8717 * target-delegates.c: Rebuild.
8718 * target.h (struct target_ops) <to_extra_thread_info,
8719 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8720 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8721 not 0, in TARGET_DEFAULT_RETURN.
8723 2014-02-19 Tom Tromey <tromey@redhat.com>
8725 * target.c (complete_target_initialization): Remove casts. Use
8726 return_zero_has_execution.
8727 (return_zero): Add "ignore" argument.
8728 (return_zero_has_execution): New function.
8729 (init_dummy_target): Remove casts. Use
8730 return_zero_has_execution.
8732 2014-02-19 Tom Tromey <tromey@redhat.com>
8734 * target.c (update_current_target): Update comments. Do not
8737 2014-02-19 Tom Tromey <tromey@redhat.com>
8739 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8741 * corelow.c (core_read_description): Delegate when needed.
8742 * remote.c (remote_read_description): Delegate when needed.
8743 * target-delegates.c: Rebuild.
8744 * target.c (target_read_description): Rewrite.
8745 * target.h (struct target_ops) <to_read_description>: Update
8746 comment. Use TARGET_DEFAULT_RETURN.
8748 2014-02-19 Tom Tromey <tromey@redhat.com>
8750 * target-delegates.c: Rebuild.
8751 * target.c (update_current_target): Don't inherit or default
8753 (find_default_run_target): Check against delegate_can_run.
8754 * target.h (struct target_ops) <to_can_run>: Use
8755 TARGET_DEFAULT_RETURN.
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8759 * target-delegates.c: Rebuild.
8760 * target.c (target_disconnect): Unconditionally delegate.
8761 * target.h (struct target_ops) <to_disconnect>: Use
8762 TARGET_DEFAULT_NORETURN.
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8766 * record.c (record_stop): Unconditionally delegate.
8767 * target-delegates.c: Rebuild.
8768 * target.c (target_stop_recording): Unconditionally delegate.
8769 * target.h (struct target_ops) <to_stop_recording>: Use
8770 TARGET_DEFAULT_IGNORE.
8772 2014-02-19 Tom Tromey <tromey@redhat.com>
8774 * target-delegates.c: Rebuild.
8775 * target.c (target_enable_btrace): Unconditionally delegate.
8776 * target.h (struct target_ops) <to_enable_btrace>: Use
8777 TARGET_DEFAULT_NORETURN.
8779 2014-02-19 Tom Tromey <tromey@redhat.com>
8781 * target-delegates.c: Rebuild.
8782 * target.c (target_read_btrace): Unconditionally delegate.
8783 * target.h (struct target_ops) <to_read_btrace>: Use
8784 TARGET_DEFAULT_NORETURN.
8786 2014-02-19 Tom Tromey <tromey@redhat.com>
8788 * target-delegates.c: Rebuild.
8789 * target.c (target_teardown_btrace): Unconditionally delegate.
8790 * target.h (struct target_ops) <to_teardown_btrace>: Use
8791 TARGET_DEFAULT_NORETURN.
8793 2014-02-19 Tom Tromey <tromey@redhat.com>
8795 * target-delegates.c: Rebuild.
8796 * target.c (target_disable_btrace): Unconditionally delegate.
8797 * target.h (struct target_ops) <to_disable_btrace>: Use
8798 TARGET_DEFAULT_NORETURN.
8800 2014-02-19 Tom Tromey <tromey@redhat.com>
8802 * target-delegates.c: Rebuild.
8803 * target.c (default_search_memory): New function.
8804 (simple_search_memory): Update comment.
8805 (target_search_memory): Unconditionally delegate.
8806 * target.h (struct target_ops) <to_search_memory>: Use
8807 TARGET_DEFAULT_FUNC.
8809 2014-02-19 Tom Tromey <tromey@redhat.com>
8811 * auxv.c (default_auxv_parse): No longer static.
8812 (target_auxv_parse): Unconditionally delegate.
8813 * auxv.h (default_auxv_parse): Declare.
8814 * target-delegates.c: Rebuild.
8815 * target.c: Include auxv.h.
8816 * target.h (struct target_ops) <to_auxv_parse>: Use
8817 TARGET_DEFAULT_FUNC.
8819 2014-02-19 Tom Tromey <tromey@redhat.com>
8821 * target-delegates.c: Rebuild.
8822 * target.c (target_memory_map): Unconditionally delegate.
8823 * target.h (struct target_ops) <to_memory_map>: Use
8824 TARGET_DEFAULT_RETURN.
8826 2014-02-19 Tom Tromey <tromey@redhat.com>
8828 * target-delegates.c: Rebuild.
8829 * target.c (target_thread_alive): Unconditionally delegate.
8830 * target.h (struct target_ops) <to_thread_alive>: Use
8831 TARGET_DEFAULT_RETURN.
8833 2014-02-19 Tom Tromey <tromey@redhat.com>
8835 * target-delegates.c: Rebuild.
8836 * target.c (target_save_record): Unconditionally delegate.
8837 * target.h (struct target_ops) <to_save_record>: Use
8838 TARGET_DEFAULT_NORETURN.
8840 2014-02-19 Tom Tromey <tromey@redhat.com>
8842 * target-delegates.c: Rebuild.
8843 * target.c (target_delete_record): Unconditionally delegate.
8844 * target.h (struct target_ops) <to_delete_record>: Use
8845 TARGET_DEFAULT_NORETURN.
8847 2014-02-19 Tom Tromey <tromey@redhat.com>
8849 * target-delegates.c: Rebuild.
8850 * target.c (target_record_is_replaying): Unconditionally
8852 * target.h (struct target_ops) <to_record_is_replaying>: Use
8853 TARGET_DEFAULT_RETURN.
8855 2014-02-19 Tom Tromey <tromey@redhat.com>
8857 * target-delegates.c: Rebuild.
8858 * target.c (target_goto_record_begin): Unconditionally delegate.
8859 * target.h (struct target_ops) <to_goto_record_begin>: Use
8860 TARGET_DEFAULT_NORETURN.
8862 2014-02-19 Tom Tromey <tromey@redhat.com>
8864 * target-delegates.c: Rebuild.
8865 * target.c (target_goto_record_end): Unconditionally delegate.
8866 * target.h (struct target_ops) <to_goto_record_end>: Use
8867 TARGET_DEFAULT_NORETURN.
8869 2014-02-19 Tom Tromey <tromey@redhat.com>
8871 * target-delegates.c: Rebuild.
8872 * target.c (target_goto_record): Unconditionally delegate.
8873 * target.h (struct target_ops) <to_goto_record>: Use
8874 TARGET_DEFAULT_NORETURN.
8876 2014-02-19 Tom Tromey <tromey@redhat.com>
8878 * target-delegates.c: Rebuild.
8879 * target.c (target_insn_history): Unconditionally delegate.
8880 * target.h (struct target_ops) <to_insn_history>: Use
8881 TARGET_DEFAULT_NORETURN.
8883 2014-02-19 Tom Tromey <tromey@redhat.com>
8885 * target-delegates.c: Rebuild.
8886 * target.c (target_insn_history_from): Unconditionally delegate.
8887 * target.h (struct target_ops) <to_insn_history_from>: Use
8888 TARGET_DEFAULT_NORETURN.
8890 2014-02-19 Tom Tromey <tromey@redhat.com>
8892 * target-delegates.c: Rebuild.
8893 * target.c (target_insn_history_range): Unconditionally delegate.
8894 * target.h (struct target_ops) <to_insn_history_range>: Use
8895 TARGET_DEFAULT_NORETURN.
8897 2014-02-19 Tom Tromey <tromey@redhat.com>
8899 * target-delegates.c: Rebuild.
8900 * target.c (target_call_history): Unconditionally delegate.
8901 * target.h (struct target_ops) <to_call_history>: Use
8902 TARGET_DEFAULT_NORETURN.
8904 2014-02-19 Tom Tromey <tromey@redhat.com>
8906 * target-delegates.c: Rebuild.
8907 * target.c (target_call_history_from): Unconditionally delegate.
8908 * target.h (struct target_ops) <to_call_history_from>: Use
8909 TARGET_DEFAULT_NORETURN.
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8913 * target-delegates.c: Rebuild.
8914 * target.c (target_call_history_range): Unconditionally delegate.
8915 * target.h (struct target_ops) <to_call_history_range>: Use
8916 TARGET_DEFAULT_NORETURN.
8918 2014-02-19 Tom Tromey <tromey@redhat.com>
8920 * target-delegates.c: Rebuild.
8921 * target.c (target_verify_memory): Unconditionally delegate.
8922 * target.h (struct target_ops) <to_verify_memory>: Use
8923 TARGET_DEFAULT_NORETURN.
8925 2014-02-19 Tom Tromey <tromey@redhat.com>
8927 * target-delegates.c: Rebuild.
8928 * target.c (target_core_of_thread): Unconditionally delegate.
8929 * target.h (struct target_ops) <to_core_of_thread>: Use
8930 TARGET_DEFAULT_RETURN.
8932 2014-02-19 Tom Tromey <tromey@redhat.com>
8934 * target-delegates.c: Rebuild.
8935 * target.c (target_flash_done): Unconditionally delegate.
8936 * target.h (struct target_ops) <to_flash_done>: Use
8937 TARGET_DEFAULT_NORETURN.
8939 2014-02-19 Tom Tromey <tromey@redhat.com>
8941 * target-delegates.c: Rebuild.
8942 * target.c (target_flash_erase): Unconditionally delegate.
8943 * target.h (struct target_ops) <to_flash_erase>: Use
8944 TARGET_DEFAULT_NORETURN.
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8948 * target-delegates.c: Rebuild.
8949 * target.c (target_get_section_table): Unconditionally delegate.
8950 * target.h (struct target_ops) <to_get_section_table>: Use
8951 TARGET_DEFAULT_RETURN.
8953 2014-02-19 Tom Tromey <tromey@redhat.com>
8955 * target-delegates.c: Rebuild.
8956 * target.c (target_pid_to_str): Unconditionally delegate.
8957 (init_dummy_target): Don't initialize to_pid_to_str.
8958 (default_pid_to_str): Rename from dummy_pid_to_str.
8959 * target.h (struct target_ops) <to_pid_to_str>: Use
8960 TARGET_DEFAULT_FUNC.
8962 2014-02-19 Tom Tromey <tromey@redhat.com>
8964 * target-delegates.c: Rebuild.
8965 * target.c (target_find_new_threads): Unconditionally delegate.
8966 * target.h (struct target_ops) <to_find_new_threads>: Use
8967 TARGET_DEFAULT_RETURN.
8969 2014-02-19 Tom Tromey <tromey@redhat.com>
8971 * target-delegates.c: Rebuild.
8972 * target.c (target_program_signals): Unconditionally delegate.
8973 * target.h (struct target_ops) <to_program_signals>: Use
8974 TARGET_DEFAULT_IGNORE.
8976 2014-02-19 Tom Tromey <tromey@redhat.com>
8978 * target-delegates.c: Rebuild.
8979 * target.c (target_pass_signals): Unconditionally delegate.
8980 * target.h (struct target_ops) <to_pass_signals>: Use
8981 TARGET_DEFAULT_IGNORE.
8983 2014-02-19 Tom Tromey <tromey@redhat.com>
8985 * target-delegates.c: Rebuild.
8986 * target.c (default_mourn_inferior): New function.
8987 (target_mourn_inferior): Unconditionally delegate.
8988 * target.h (struct target_ops) <to_mourn_inferior>: Use
8989 TARGET_DEFAULT_FUNC.
8991 2014-02-19 Tom Tromey <tromey@redhat.com>
8993 * target-delegates.c: Rebuild.
8994 * target.c (default_follow_fork): New function.
8995 (target_follow_fork): Unconditionally delegate.
8996 * target.h (struct target_ops) <to_follow_fork>: Use
8997 TARGET_DEFAULT_FUNC.
8999 2014-02-19 Tom Tromey <tromey@redhat.com>
9001 * target-delegates.c: Rebuild.
9002 * target.c (target_kill): Unconditionally delegate.
9003 * target.h (struct target_ops) <to_kill>: Use
9004 TARGET_DEFAULT_NORETURN.
9006 2014-02-19 Tom Tromey <tromey@redhat.com>
9008 * target-delegates.c: Rebuild.
9009 * target.c (target_masked_watch_num_registers): Unconditionally
9011 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9012 Use TARGET_DEFAULT_RETURN.
9014 2014-02-19 Tom Tromey <tromey@redhat.com>
9016 * target-delegates.c: Rebuild.
9017 * target.c (target_remove_mask_watchpoint): Unconditionally
9019 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9020 TARGET_DEFAULT_RETURN.
9022 2014-02-19 Tom Tromey <tromey@redhat.com>
9024 * target-delegates.c: Rebuild.
9025 * target.c (target_insert_mask_watchpoint): Unconditionally
9027 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9028 TARGET_DEFAULT_RETURN.
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9032 * target-delegates.c: Rebuild.
9033 * target.c (target_ranged_break_num_registers): Unconditionally
9035 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9036 Use TARGET_DEFAULT_RETURN.
9038 2014-02-19 Tom Tromey <tromey@redhat.com>
9040 * target-delegates.c: Rebuild.
9041 * target.c (target_fetch_registers): Unconditionally delegate.
9042 * target.h (struct target_ops) <to_fetch_registers>: Use
9043 TARGET_DEFAULT_NORETURN.
9045 2014-02-19 Tom Tromey <tromey@redhat.com>
9047 * target-delegates.c: Rebuild.
9048 * target.c (update_current_target): Don't inherit or default
9050 * target.h (struct target_ops) <to_stop>: Use
9051 TARGET_DEFAULT_IGNORE.
9053 2014-02-19 Tom Tromey <tromey@redhat.com>
9055 * target-delegates.c: Rebuild.
9056 * target.c (update_current_target): Don't inherit or default
9057 to_can_run_breakpoint_commands.
9058 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9059 Use TARGET_DEFAULT_RETURN.
9061 2014-02-19 Tom Tromey <tromey@redhat.com>
9063 * target-delegates.c: Rebuild.
9064 * target.c (update_current_target): Don't inherit or default
9065 to_supports_evaluation_of_breakpoint_conditions.
9066 * target.h (struct target_ops)
9067 <to_supports_evaluation_of_breakpoint_conditions>: Use
9068 TARGET_DEFAULT_RETURN.
9070 2014-02-19 Tom Tromey <tromey@redhat.com>
9072 * target-delegates.c: Rebuild.
9073 * target.c (update_current_target): Don't inherit or default
9074 to_augmented_libraries_svr4_read.
9075 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9076 Use TARGET_DEFAULT_RETURN.
9078 2014-02-19 Tom Tromey <tromey@redhat.com>
9080 * target-delegates.c: Rebuild.
9081 * target.c (update_current_target): Don't inherit or default
9083 * target.h (struct target_ops) <to_can_use_agent>: Use
9084 TARGET_DEFAULT_RETURN.
9086 2014-02-19 Tom Tromey <tromey@redhat.com>
9088 * target-delegates.c: Rebuild.
9089 * target.c (update_current_target): Don't inherit or default
9091 * target.h (struct target_ops) <to_use_agent>: Use
9092 TARGET_DEFAULT_NORETURN.
9094 2014-02-19 Tom Tromey <tromey@redhat.com>
9096 * target-delegates.c: Rebuild.
9097 * target.c (update_current_target): Don't inherit or default
9099 (return_null): Remove.
9100 * target.h (struct target_ops) <to_traceframe_info>: Use
9101 TARGET_DEFAULT_RETURN.
9103 2014-02-19 Tom Tromey <tromey@redhat.com>
9105 * target-delegates.c: Rebuild.
9106 * target.c (update_current_target): Don't inherit or default
9107 to_static_tracepoint_markers_by_strid.
9108 * target.h (struct target_ops)
9109 <to_static_tracepoint_markers_by_strid>: Use
9110 TARGET_DEFAULT_NORETURN.
9112 2014-02-19 Tom Tromey <tromey@redhat.com>
9114 * target-delegates.c: Rebuild.
9115 * target.c (update_current_target): Don't inherit or default
9116 to_static_tracepoint_marker_at.
9117 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9118 Use TARGET_DEFAULT_RETURN.
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9122 * target-delegates.c: Rebuild.
9123 * target.c (update_current_target): Don't inherit or default
9125 * target.h (struct target_ops) <to_set_permissions>: Use
9126 TARGET_DEFAULT_IGNORE.
9128 2014-02-19 Tom Tromey <tromey@redhat.com>
9130 * target-delegates.c: Rebuild.
9131 * target.c (update_current_target): Don't inherit or default
9133 * target.h (struct target_ops) <to_get_tib_address>: Use
9134 TARGET_DEFAULT_NORETURN.
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9138 * target-delegates.c: Rebuild.
9139 * target.c (update_current_target): Don't inherit or default
9141 * target.h (struct target_ops) <to_set_trace_notes>: Use
9142 TARGET_DEFAULT_RETURN.
9144 2014-02-19 Tom Tromey <tromey@redhat.com>
9146 * target-delegates.c: Rebuild.
9147 * target.c (update_current_target): Don't initialize
9148 to_set_trace_buffer_size.
9149 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9150 TARGET_DEFAULT_IGNORE.
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9154 * target-delegates.c: Rebuild.
9155 * target.c (update_current_target): Don't inherit or default
9156 to_set_circular_trace_buffer.
9157 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9158 TARGET_DEFAULT_IGNORE.
9160 2014-02-19 Tom Tromey <tromey@redhat.com>
9162 * target-delegates.c: Rebuild.
9163 * target.c (update_current_target): Don't inherit or default
9164 to_set_disconnected_tracing.
9165 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9166 TARGET_DEFAULT_IGNORE.
9168 2014-02-19 Tom Tromey <tromey@redhat.com>
9170 * target-delegates.c: Rebuild.
9171 * target.c (update_current_target): Don't inherit or default
9172 to_get_min_fast_tracepoint_insn_len.
9173 (return_minus_one): Remove.
9174 * target.h (struct target_ops)
9175 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9179 * target-delegates.c: Rebuild.
9180 * target.c (update_current_target): Don't inherit or default
9181 to_get_raw_trace_data.
9182 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9183 TARGET_DEFAULT_NORETURN.
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9187 * target-delegates.c: Rebuild.
9188 * target.c (update_current_target): Don't inherit or default
9189 to_upload_trace_state_variables.
9190 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9191 Use TARGET_DEFAULT_RETURN.
9193 2014-02-19 Tom Tromey <tromey@redhat.com>
9195 * target-delegates.c: Rebuild.
9196 * target.c (update_current_target): Don't inherit or default
9197 to_upload_tracepoints.
9198 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9199 TARGET_DEFAULT_RETURN.
9201 2014-02-19 Tom Tromey <tromey@redhat.com>
9203 * target-delegates.c: Rebuild.
9204 * target.c (update_current_target): Don't inherit or default
9206 * target.h (struct target_ops) <to_save_trace_data>: Use
9207 TARGET_DEFAULT_NORETURN.
9209 2014-02-19 Tom Tromey <tromey@redhat.com>
9211 * target-delegates.c: Rebuild.
9212 * target.c (update_current_target): Don't inherit or default
9213 to_get_trace_state_variable_value.
9214 * target.h (struct target_ops)
9215 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9217 2014-02-19 Tom Tromey <tromey@redhat.com>
9219 * target-delegates.c: Rebuild.
9220 * target.c (update_current_target): Don't inherit or default
9222 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9224 2014-02-19 Tom Tromey <tromey@redhat.com>
9226 * target-delegates.c: Rebuild.
9227 * target.c (update_current_target): Don't inherit or default
9229 * target.h (struct target_ops) <to_trace_stop>: Use
9230 TARGET_DEFAULT_NORETURN.
9232 2014-02-19 Tom Tromey <tromey@redhat.com>
9234 * target-delegates.c: Rebuild.
9235 * target.c (update_current_target): Don't inherit or default
9236 to_get_tracepoint_status.
9237 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9238 TARGET_DEFAULT_NORETURN.
9240 2014-02-19 Tom Tromey <tromey@redhat.com>
9242 * target-delegates.c: Rebuild.
9243 * target.c (update_current_target): Don't inherit or default
9244 to_get_trace_status.
9245 * target.h (struct target_ops) <to_get_trace_status>: Use
9246 TARGET_DEFAULT_RETURN.
9248 2014-02-19 Tom Tromey <tromey@redhat.com>
9250 * target-delegates.c: Rebuild.
9251 * target.c (update_current_target): Don't inherit or default
9253 * target.h (struct target_ops) <to_trace_start>: Use
9254 TARGET_DEFAULT_NORETURN.
9256 2014-02-19 Tom Tromey <tromey@redhat.com>
9258 * target-delegates.c: Rebuild.
9259 * target.c (update_current_target): Don't inherit or default
9260 to_trace_set_readonly_regions.
9261 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9262 Use TARGET_DEFAULT_NORETURN.
9264 2014-02-19 Tom Tromey <tromey@redhat.com>
9266 * target-delegates.c: Rebuild.
9267 * target.c (update_current_target): Don't inherit or default
9268 to_disable_tracepoint.
9269 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9270 TARGET_DEFAULT_NORETURN.
9272 2014-02-19 Tom Tromey <tromey@redhat.com>
9274 * target-delegates.c: Rebuild.
9275 * target.c (update_current_target): Don't inherit or default
9276 to_enable_tracepoint.
9277 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9278 TARGET_DEFAULT_NORETURN.
9280 2014-02-19 Tom Tromey <tromey@redhat.com>
9282 * target-delegates.c: Rebuild.
9283 * target.c (update_current_target): Don't inherit or default
9284 to_download_trace_state_variable.
9285 * target.h (struct target_ops) <to_download_trace_state_variable>:
9286 Use TARGET_DEFAULT_NORETURN.
9288 2014-02-19 Tom Tromey <tromey@redhat.com>
9290 * target-delegates.c: Rebuild.
9291 * target.c (update_current_target): Don't inherit or default
9292 to_can_download_tracepoint.
9293 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9294 TARGET_DEFAULT_RETURN.
9296 2014-02-19 Tom Tromey <tromey@redhat.com>
9298 * target-delegates.c: Rebuild.
9299 * target.c (update_current_target): Don't inherit or default
9300 to_download_tracepoint.
9301 * target.h (struct target_ops) <to_download_tracepoint>: Use
9302 TARGET_DEFAULT_NORETURN.
9304 2014-02-19 Tom Tromey <tromey@redhat.com>
9306 * target-delegates.c: Rebuild.
9307 * target.c (update_current_target): Don't inherit or default
9309 * target.h (struct target_ops) <to_trace_init>: Use
9310 TARGET_DEFAULT_RETURN.
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9314 * target-delegates.c: Rebuild.
9315 * target.c (update_current_target): Don't inherit or default
9316 to_supports_string_tracing.
9317 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9318 TARGET_DEFAULT_RETURN.
9320 2014-02-19 Tom Tromey <tromey@redhat.com>
9322 * target-delegates.c: Rebuild.
9323 * target.c (update_current_target): Don't inherit or default
9324 to_supports_enable_disable_tracepoint.
9325 * target.h (struct target_ops)
9326 <to_supports_enable_disable_tracepoint>: Use
9327 TARGET_DEFAULT_RETURN.
9329 2014-02-19 Tom Tromey <tromey@redhat.com>
9331 * target-delegates.c: Rebuild.
9332 * target.c (update_current_target): Don't inherit or default
9333 to_supports_multi_process.
9334 * target.h (struct target_ops) <to_supports_multi_process>: Use
9335 TARGET_DEFAULT_RETURN.
9337 2014-02-19 Tom Tromey <tromey@redhat.com>
9339 * target-delegates.c: Rebuild.
9340 * target.c (update_current_target): Don't inherit or default
9341 to_get_ada_task_ptid.
9342 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9343 TARGET_DEFAULT_FUNC.
9345 2014-02-19 Tom Tromey <tromey@redhat.com>
9347 * target-delegates.c: Rebuild.
9348 * target.c (update_current_target): Don't inherit or default
9349 to_thread_architecture.
9350 * target.h (struct target_ops) <to_thread_architecture>: Use
9351 TARGET_DEFAULT_FUNC.
9353 2014-02-19 Tom Tromey <tromey@redhat.com>
9355 * target-delegates.c: Rebuild.
9356 * target.c (update_current_target): Don't inherit or default
9357 to_execution_direction.
9358 * target.h (struct target_ops) <to_execution_direction>: Use
9359 TARGET_DEFAULT_FUNC.
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9363 * target-delegates.c: Rebuild.
9364 * target.c (update_current_target): Don't inherit or default
9365 to_can_execute_reverse.
9366 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9367 TARGET_DEFAULT_RETURN.
9368 (target_can_execute_reverse): Unconditionally delegate.
9370 2014-02-19 Tom Tromey <tromey@redhat.com>
9372 * target-delegates.c: Rebuild.
9373 * target.c (update_current_target): Don't inherit or default
9375 (dummy_goto_bookmark): Remove.
9376 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9377 * target.h (struct target_ops) <to_goto_bookmark>: Use
9378 TARGET_DEFAULT_NORETURN.
9380 2014-02-19 Tom Tromey <tromey@redhat.com>
9382 * target-delegates.c: Rebuild.
9383 * target.c (update_current_target): Don't inherit or default
9385 (dummy_get_bookmark): Remove.
9386 (init_dummy_target): Don't inherit or default to_get_bookmark.
9387 * target.h (struct target_ops) <to_get_bookmark>: Use
9388 TARGET_DEFAULT_NORETURN
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9392 * target-delegates.c: Rebuild.
9393 * target.c (update_current_target): Don't inherit or default
9394 to_make_corefile_notes.
9395 (init_dummy_target): Don't initialize to_make_corefile_notes.
9396 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9397 TARGET_DEFAULT_FUNC.
9399 2014-02-19 Tom Tromey <tromey@redhat.com>
9401 * target-delegates.c: Rebuild.
9402 * target.c (update_current_target): Don't inherit or default
9403 to_find_memory_regions.
9404 (init_dummy_target): Don't initialize to_find_memory_regions.
9405 * target.h (struct target_ops) <to_find_memory_regions>: Use
9406 TARGET_DEFAULT_FUNC.
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9410 * target-delegates.c: Rebuild.
9411 * target.c (update_current_target): Don't inherit or default
9413 * target.h (struct target_ops) <to_log_command>: Use
9414 TARGET_DEFAULT_IGNORE.
9415 (target_log_command): Unconditionally delegate.
9417 2014-02-19 Tom Tromey <tromey@redhat.com>
9419 * target-delegates.c: Rebuild.
9420 * target.c (update_current_target): Don't inherit or default
9421 to_pid_to_exec_file.
9422 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9423 TARGET_DEFAULT_RETURN.
9425 2014-02-19 Tom Tromey <tromey@redhat.com>
9427 * target-delegates.c: Rebuild.
9428 * target.c (update_current_target): Don't inherit or default
9430 (target_thread_name): Unconditionally delegate.
9431 * target.h (struct target_ops) <to_thread_name>: Use
9432 TARGET_DEFAULT_RETURN.
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9436 * target-delegates.c: Rebuild.
9437 * target.c (update_current_target): Don't inherit or default
9438 to_extra_thread_info.
9439 * target.h (struct target_ops) <to_extra_thread_info>: Use
9440 TARGET_DEFAULT_RETURN.
9442 2014-02-19 Tom Tromey <tromey@redhat.com>
9444 * target-delegates.c: Rebuild.
9445 * target.c (update_current_target): Don't inherit or default
9447 * target.h (struct target_ops) <to_has_exited>: Use
9448 TARGET_DEFAULT_RETURN..
9450 2014-02-19 Tom Tromey <tromey@redhat.com>
9452 * target-delegates.c: Rebuild.
9453 * target.c (update_current_target): Don't inherit or default
9454 to_set_syscall_catchpoint.
9455 (return_one): Remove.
9456 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9457 TARGET_DEFAULT_RETURN.
9459 2014-02-19 Tom Tromey <tromey@redhat.com>
9461 * target-delegates.c: Rebuild.
9462 * target.c (update_current_target): Don't inherit or default
9463 to_insert_exec_catchpoint.
9464 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9465 TARGET_DEFAULT_RETURN.
9467 2014-01-08 Tom Tromey <tromey@redhat.com>
9469 * target-delegates.c: Rebuild.
9470 * target.c (update_current_target): Don't inherit or default
9471 to_insert_exec_catchpoint.
9472 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9473 TARGET_DEFAULT_RETURN.
9475 2014-02-19 Tom Tromey <tromey@redhat.com>
9477 * target-delegates.c: Rebuild.
9478 * target.c (update_current_target): Don't inherit or default
9479 to_remove_vfork_catchpoint.
9480 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9481 TARGET_DEFAULT_RETURN.
9483 2014-02-19 Tom Tromey <tromey@redhat.com>
9485 * target-delegates.c: Rebuild.
9486 * target.c (update_current_target): Don't inherit or default
9487 to_insert_vfork_catchpoint.
9488 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9489 TARGET_DEFAULT_RETURN.
9491 2014-02-19 Tom Tromey <tromey@redhat.com>
9493 * target-delegates.c: Rebuild.
9494 * target.c (update_current_target): Don't inherit or default
9495 to_remove_fork_catchpoint.
9496 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9497 TARGET_DEFAULT_RETURN.
9499 2014-02-19 Tom Tromey <tromey@redhat.com>
9501 * target-delegates.c: Rebuild.
9502 * target.c (update_current_target): Don't inherit or default
9503 to_insert_fork_catchpoint.
9504 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9505 TARGET_DEFAULT_RETURN.
9507 2014-02-19 Tom Tromey <tromey@redhat.com>
9509 * target-delegates.c: Rebuild.
9510 * target.c (update_current_target): Don't inherit or default
9511 to_post_startup_inferior.
9512 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9513 TARGET_DEFAULT_IGNORE.
9515 2014-02-19 Tom Tromey <tromey@redhat.com>
9517 * target-delegates.c: Rebuild.
9518 * target.c (update_current_target): Don't inherit or default
9520 * target.h (struct target_ops) <to_load>: Use
9521 TARGET_DEFAULT_NORETURN.
9523 2014-02-19 Tom Tromey <tromey@redhat.com>
9525 * target-delegates.c: Rebuild.
9526 * target.c (update_current_target): Don't inherit or default
9528 * target.h (struct target_ops) <to_terminal_info>: Use
9529 TARGET_DEFAULT_FUNC.
9531 2014-02-19 Tom Tromey <tromey@redhat.com>
9533 * target-delegates.c: Rebuild.
9534 * target.c (update_current_target): Don't inherit or default
9535 to_terminal_save_ours.
9536 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9537 TARGET_DEFAULT_IGNORE.
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9541 * target-delegates.c: Rebuild.
9542 * target.c (update_current_target): Don't inherit or default
9544 * target.h (struct target_ops) <to_terminal_ours>: Use
9545 TARGET_DEFAULT_IGNORE.
9547 2014-02-19 Tom Tromey <tromey@redhat.com>
9549 * target-delegates.c: Rebuild.
9550 * target.c (update_current_target): Don't inherit or default
9551 to_terminal_ours_for_output.
9552 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9553 TARGET_DEFAULT_IGNORE.
9555 2014-02-19 Tom Tromey <tromey@redhat.com>
9557 * target-delegates.c: Rebuild.
9558 * target.c (update_current_target): Don't inherit or default
9559 to_terminal_inferior.
9560 * target.h (struct target_ops) <to_terminal_inferior>: Use
9561 TARGET_DEFAULT_IGNORE.
9563 2014-02-19 Tom Tromey <tromey@redhat.com>
9565 * target-delegates.c: Rebuild.
9566 * target.c (update_current_target): Don't inherit or default
9568 * target.h (struct target_ops) <to_terminal_init>: Use
9569 TARGET_DEFAULT_IGNORE.
9571 2014-02-19 Tom Tromey <tromey@redhat.com>
9573 * target-delegates.c: Rebuild.
9574 * target.c (update_current_target): Don't inherit or default
9575 to_can_accel_watchpoint_condition.
9576 * target.h (struct target_ops)
9577 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9579 2014-02-19 Tom Tromey <tromey@redhat.com>
9581 * target-delegates.c: Rebuild.
9582 * target.c (update_current_target): Don't inherit or default
9583 to_region_ok_for_hw_watchpoint.
9584 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9585 Use TARGET_DEFAULT_FUNC.
9587 2014-02-19 Tom Tromey <tromey@redhat.com>
9589 * target-delegates.c: Rebuild.
9590 * target.c (update_current_target): Don't inherit or default
9591 to_watchpoint_addr_within_range.
9592 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9593 Use TARGET_DEFAULT_FUNC.
9595 2014-02-19 Tom Tromey <tromey@redhat.com>
9597 * target-delegates.c: Rebuild.
9598 * target.c (update_current_target): Don't inherit or default
9599 to_remove_watchpoint.
9600 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9601 TARGET_DEFAULT_NORETURN.
9603 2014-02-19 Tom Tromey <tromey@redhat.com>
9605 * target-delegates.c: Rebuild.
9606 * target.c (update_current_target): Don't inherit or default
9607 to_insert_watchpoint.
9608 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9609 TARGET_DEFAULT_RETURN.
9611 2014-02-19 Tom Tromey <tromey@redhat.com>
9613 * target-delegates.c: Rebuild.
9614 * target.c (update_current_target): Don't inherit or default
9615 to_remove_hw_breakpoint.
9616 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9617 TARGET_DEFAULT_RETURN.
9619 2014-02-19 Tom Tromey <tromey@redhat.com>
9621 * target-delegates.c: Rebuild.
9622 * target.c (update_current_target): Don't inherit or default
9623 to_insert_hw_breakpoint.
9624 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9625 TARGET_DEFAULT_RETURN.
9627 2014-02-19 Tom Tromey <tromey@redhat.com>
9629 * target-delegates.c: Rebuild.
9630 * target.c (update_current_target): Don't inherit or default
9631 to_can_use_hw_breakpoint.
9632 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9633 TARGET_DEFAULT_RETURN.
9635 2014-02-19 Tom Tromey <tromey@redhat.com>
9637 * target-delegates.c: Rebuild.
9638 * target.c (update_current_target): Don't inherit or default
9640 * target.h (struct target_ops) <to_files_info>: Use
9641 TARGET_DEFAULT_IGNORE.
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9645 * target-delegates.c: Rebuild.
9646 * target.c (update_current_target): Don't inherit or default
9648 * target.h (struct target_ops) <to_store>: Use
9649 TARGET_DEFAULT_NORETURN.
9651 2014-02-19 Tom Tromey <tromey@redhat.com>
9653 * target-delegates.c: Rebuild.
9654 * target.c (update_current_target): Don't inherit or default
9656 * target.h (struct target_ops) <to_post_attach>: Use
9657 TARGET_DEFAULT_IGNORE.
9659 2014-02-19 Tom Tromey <tromey@redhat.com>
9661 * target-delegates.c: Rebuild.
9662 * target.c (update_current_target): Don't inherit or default
9664 (default_rcmd): New function.
9665 (do_monitor_command): Unconditionally delegate.
9666 * target.h (struct target_ops) <to_rmcd>: Use
9667 TARGET_DEFAULT_FUNC.
9669 2014-02-19 Tom Tromey <tromey@redhat.com>
9671 * target-delegates.c: Rebuild.
9672 * target.c (init_dummy_target): Don't initialize to_attach.
9673 (target_attach): Unconditionally delegate.
9674 * target.h (struct target_ops) <to_attach>: Use
9675 TARGET_DEFAULT_FUNC.
9677 2014-02-19 Tom Tromey <tromey@redhat.com>
9679 * target-delegates.c: Rebuild.
9680 * target.c (target_detach): Unconditionally delegate.
9681 (init_dummy_target): Don't initialize to_detach.
9682 * target.h (struct target_ops) <to_detach>: Use
9683 TARGET_DEFAULT_IGNORE.
9685 2014-02-19 Tom Tromey <tromey@redhat.com>
9687 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9689 (target_augmented_libraries_svr4_read): Add argument.
9690 * target.c (update_current_target): Update.
9691 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9694 2014-02-19 Tom Tromey <tromey@redhat.com>
9696 * target.h (struct target_ops) <to_call_history_range>: Add
9698 * target.c (target_call_history_range): Add argument.
9699 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9701 (record_btrace_call_history_from): Update.
9703 2014-02-19 Tom Tromey <tromey@redhat.com>
9705 * target.h (struct target_ops) <to_call_history_from>: Add
9707 * target.c (target_call_history_from): Add argument.
9708 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9711 2014-02-19 Tom Tromey <tromey@redhat.com>
9713 * target.h (struct target_ops) <to_call_history>: Add argument.
9714 * target.c (target_call_history): Add argument.
9715 * record-btrace.c (record_btrace_call_history): Add 'self'
9718 2014-02-19 Tom Tromey <tromey@redhat.com>
9720 * target.h (struct target_ops) <to_insn_history_range>: Add
9722 * target.c (target_insn_history_range): Add argument.
9723 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9725 (record_btrace_insn_history_from): Update.
9727 2014-02-19 Tom Tromey <tromey@redhat.com>
9729 * target.h (struct target_ops) <to_insn_history_from>: Add
9731 * target.c (target_insn_history_from): Add argument.
9732 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9735 2014-02-19 Tom Tromey <tromey@redhat.com>
9737 * target.h (struct target_ops) <to_insn_history>: Add argument.
9738 * target.c (target_insn_history): Add argument.
9739 * record-btrace.c (record_btrace_insn_history): Add 'self'
9742 2014-02-19 Tom Tromey <tromey@redhat.com>
9744 * target.h (struct target_ops) <to_goto_record>: Add argument.
9745 * target.c (target_goto_record): Add argument.
9746 * record-full.c (record_full_goto): Add 'self' argument.
9747 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9749 2014-02-19 Tom Tromey <tromey@redhat.com>
9751 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9752 * target.c (target_goto_record_end): Add argument.
9753 * record-full.c (record_full_goto_end): Add 'self' argument.
9754 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9758 * target.h (struct target_ops) <to_goto_record_begin>: Add
9760 * target.c (target_goto_record_begin): Add argument.
9761 * record-full.c (record_full_goto_begin): Add 'self' argument.
9762 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9765 2014-02-19 Tom Tromey <tromey@redhat.com>
9767 * target.h (struct target_ops) <to_record_is_replaying>: Add
9769 * target.c (target_record_is_replaying): Add argument.
9770 * record-full.c (record_full_is_replaying): Add 'self' argument.
9771 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9773 (record_btrace_xfer_partial, record_btrace_store_registers)
9774 (record_btrace_prepare_to_store, record_btrace_resume)
9775 (record_btrace_wait, record_btrace_decr_pc_after_break)
9776 (record_btrace_find_new_threads, record_btrace_thread_alive):
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9781 * target.h (struct target_ops) <to_delete_record>: Add argument.
9782 * target.c (target_delete_record): Add argument.
9783 * record-full.c (record_full_delete): Add 'self' argument.
9785 2014-02-19 Tom Tromey <tromey@redhat.com>
9787 * target.h (struct target_ops) <to_save_record>: Add argument.
9788 * target.c (target_save_record): Add argument.
9789 * record-full.c (record_full_save): Add 'self' argument.
9790 (record_full_save): Add 'self' argument.
9792 2014-02-19 Tom Tromey <tromey@redhat.com>
9794 * target.h (struct target_ops) <to_info_record>: Add argument.
9795 * target.c (target_info_record): Add argument.
9796 * record.c (info_record_command): Add argument.
9797 * record-full.c (record_full_info): Add 'self' argument.
9798 * record-btrace.c (record_btrace_info): Add 'self' argument.
9800 2014-02-19 Tom Tromey <tromey@redhat.com>
9802 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9803 * target.c (target_stop_recording): Add argument.
9804 * record.c (record_stop): Add argument.
9805 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9808 2014-02-19 Tom Tromey <tromey@redhat.com>
9810 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9811 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9812 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9814 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9815 (_initialize_amd64_linux_nat): Use it.
9816 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9817 (_initialize_i386_linux_nat): Use it.
9819 2014-02-19 Tom Tromey <tromey@redhat.com>
9821 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9822 * target.c (target_teardown_btrace): Add argument.
9823 * remote.c (remote_teardown_btrace): Add 'self' argument.
9824 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9826 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9829 2014-02-19 Tom Tromey <tromey@redhat.com>
9831 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9832 * target.c (target_disable_btrace): Add argument.
9833 * remote.c (remote_disable_btrace): Add 'self' argument.
9834 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9836 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9839 2014-02-19 Tom Tromey <tromey@redhat.com>
9841 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9842 * target.c (target_enable_btrace): Add argument.
9843 * remote.c (remote_enable_btrace): Add 'self' argument.
9844 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9846 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9849 2014-02-19 Tom Tromey <tromey@redhat.com>
9851 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9852 (target_can_use_agent): Add argument.
9853 * target.c (update_current_target): Update.
9854 * remote.c (remote_can_use_agent): Add 'self' argument.
9855 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9857 2014-02-19 Tom Tromey <tromey@redhat.com>
9859 * target.h (struct target_ops) <to_use_agent>: Add argument.
9860 (target_use_agent): Add argument.
9861 * target.c (update_current_target): Update.
9862 * remote.c (remote_use_agent): Add 'self' argument.
9863 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9865 2014-02-19 Tom Tromey <tromey@redhat.com>
9867 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9868 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9869 (target_traceframe_info): Add argument.
9870 * target.c (update_current_target): Update.
9871 * remote.c (remote_traceframe_info): Add 'self' argument.
9872 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9874 2014-02-19 Tom Tromey <tromey@redhat.com>
9876 * target.h (target_static_tracepoint_markers_by_strid): Add
9878 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9880 * target.c (update_current_target): Update.
9881 * remote.c (struct target_ops)
9882 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9883 * linux-nat.c (struct target_ops)
9884 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9886 2014-02-19 Tom Tromey <tromey@redhat.com>
9888 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9890 (target_static_tracepoint_marker_at): Add argument.
9891 * target.c (update_current_target): Update.
9892 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9895 2014-02-19 Tom Tromey <tromey@redhat.com>
9897 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9898 (target_set_permissions): Add argument.
9899 * target.c (update_current_target): Update.
9900 * remote.c (remote_set_permissions): Add 'self' argument.
9901 (remote_start_remote): Update.
9903 2014-02-19 Tom Tromey <tromey@redhat.com>
9905 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9906 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9907 (target_get_tib_address): Add argument.
9908 * target.c (update_current_target): Update.
9909 * remote.c (remote_get_tib_address): Add 'self' argument.
9911 2014-02-19 Tom Tromey <tromey@redhat.com>
9913 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9914 (target_set_trace_notes): Add argument.
9915 * target.c (update_current_target): Update.
9916 * remote.c (remote_set_trace_notes): Add 'self' argument.
9918 2014-02-19 Tom Tromey <tromey@redhat.com>
9920 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9922 (target_set_trace_buffer_size): Add argument.
9923 * target.c (update_current_target): Update.
9924 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9926 2014-02-19 Tom Tromey <tromey@redhat.com>
9928 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9930 (target_set_circular_trace_buffer): Add argument.
9931 * target.c (update_current_target): Update.
9932 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9935 2014-02-19 Tom Tromey <tromey@redhat.com>
9937 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9939 (target_set_disconnected_tracing): Add argument.
9940 * target.c (update_current_target): Update.
9941 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9945 * target.h (struct target_ops)
9946 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9947 (target_get_min_fast_tracepoint_insn_len): Add argument.
9948 * target.c (update_current_target): Update.
9949 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9952 2014-02-19 Tom Tromey <tromey@redhat.com>
9954 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9956 (target_get_raw_trace_data): Add argument.
9957 * target.c (update_current_target): Update.
9958 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9960 2014-02-19 Tom Tromey <tromey@redhat.com>
9962 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9964 (target_upload_trace_state_variables): Add argument.
9965 * target.c (update_current_target): Update.
9966 * remote.c (remote_upload_trace_state_variables): Add 'self'
9968 (remote_start_remote): Update.
9970 2014-02-19 Tom Tromey <tromey@redhat.com>
9972 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9974 (target_upload_tracepoints): Add argument.
9975 * target.c (update_current_target): Update.
9976 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9977 (remote_start_remote): Update.
9979 2014-02-19 Tom Tromey <tromey@redhat.com>
9981 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9982 (target_save_trace_data): Add argument.
9983 * target.c (update_current_target): Update.
9984 * remote.c (remote_save_trace_data): Add 'self' argument.
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9988 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9990 * target.h (struct target_ops)
9991 <to_get_trace_state_variable_value>: Add argument.
9992 (target_get_trace_state_variable_value): Add argument.
9993 * target.c (update_current_target): Update.
9994 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9996 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
10000 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10001 * target.h (struct target_ops) <to_trace_find>: Add argument.
10002 (target_trace_find): Add argument.
10003 * target.c (update_current_target): Update.
10004 * remote.c (remote_trace_find): Add 'self' argument.
10005 * ctf.c (ctf_trace_find): Add 'self' argument.
10007 2014-02-19 Tom Tromey <tromey@redhat.com>
10009 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10010 (target_trace_stop): Add argument.
10011 * target.c (update_current_target): Update.
10012 * remote.c (remote_trace_stop): Add 'self' argument.
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10016 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10017 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10019 (target_get_tracepoint_status): Add argument.
10020 * target.c (update_current_target): Update.
10021 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10025 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10026 * target.h (struct target_ops) <to_get_trace_status>: Add
10028 (target_get_trace_status): Add argument.
10029 * target.c (update_current_target): Update.
10030 * remote.c (remote_get_trace_status): Add 'self' argument.
10031 (remote_start_remote, remote_can_download_tracepoint): Update.
10032 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10034 2014-02-19 Tom Tromey <tromey@redhat.com>
10036 * target.h (struct target_ops) <to_trace_start>: Add argument.
10037 (target_trace_start): Add argument.
10038 * target.c (update_current_target): Update.
10039 * remote.c (remote_trace_start): Add 'self' argument.
10041 2014-02-19 Tom Tromey <tromey@redhat.com>
10043 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10045 (target_trace_set_readonly_regions): Add argument.
10046 * target.c (update_current_target): Update.
10047 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10050 2014-02-19 Tom Tromey <tromey@redhat.com>
10052 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10054 (target_disable_tracepoint): Add argument.
10055 * target.c (update_current_target): Update.
10056 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10058 2014-02-19 Tom Tromey <tromey@redhat.com>
10060 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10062 (target_enable_tracepoint): Add argument.
10063 * target.c (update_current_target): Update.
10064 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10066 2014-02-19 Tom Tromey <tromey@redhat.com>
10068 * target.h (struct target_ops) <to_download_trace_state_variable>:
10070 (target_download_trace_state_variable): Add argument.
10071 * target.c (update_current_target): Update.
10072 * remote.c (remote_download_trace_state_variable): Add 'self'
10075 2014-02-19 Tom Tromey <tromey@redhat.com>
10077 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10079 (target_can_download_tracepoint): Add argument.
10080 * target.c (update_current_target): Update.
10081 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10083 2014-02-19 Tom Tromey <tromey@redhat.com>
10085 * target.h (struct target_ops) <to_download_tracepoint>: Add
10087 (target_download_tracepoint): Add argument.
10088 * target.c (update_current_target): Update.
10089 * remote.c (remote_download_tracepoint): Add 'self' argument.
10091 2014-02-19 Tom Tromey <tromey@redhat.com>
10093 * target.h (struct target_ops) <to_trace_init>: Add argument.
10094 (target_trace_init): Add argument.
10095 * target.c (update_current_target): Update.
10096 * remote.c (remote_trace_init): Add 'self' argument.
10098 2014-02-19 Tom Tromey <tromey@redhat.com>
10100 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10101 * target.c (target_fileio_readlink): Add argument.
10102 * remote.c (remote_hostio_readlink): Add 'self' argument.
10103 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10105 2014-02-19 Tom Tromey <tromey@redhat.com>
10107 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10108 * target.c (target_fileio_unlink): Add argument.
10109 * remote.c (remote_hostio_unlink): Add 'self' argument.
10110 (remote_file_delete): Update.
10111 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10113 2014-02-19 Tom Tromey <tromey@redhat.com>
10115 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10116 * target.c (target_fileio_close): Add argument.
10117 * remote.c (remote_hostio_close): Add 'self' argument.
10118 (remote_hostio_close_cleanup): Update.
10119 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10121 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10123 2014-02-19 Tom Tromey <tromey@redhat.com>
10125 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10126 * target.c (target_fileio_pread): Add argument.
10127 * remote.c (remote_hostio_pread): Add 'self' argument.
10128 (remote_bfd_iovec_pread, remote_file_get): Update.
10129 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10131 2014-02-19 Tom Tromey <tromey@redhat.com>
10133 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10134 * target.c (target_fileio_pwrite): Add argument.
10135 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10136 (remote_file_put): Update.
10137 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10139 2014-02-19 Tom Tromey <tromey@redhat.com>
10141 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10142 * target.c (target_fileio_open): Add argument.
10143 * remote.c (remote_hostio_open): Add 'self' argument.
10144 (remote_bfd_iovec_open): Add 'self' argument.
10145 (remote_file_put): Add 'self' argument.
10146 (remote_file_get): Add 'self' argument.
10147 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10149 2014-02-19 Tom Tromey <tromey@redhat.com>
10151 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10153 (target_can_run_breakpoint_commands): Add argument.
10154 * target.c (update_current_target): Update.
10155 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10157 (remote_insert_breakpoint): Add 'self' argument.
10158 (remote_insert_hw_breakpoint): Add 'self' argument.
10159 (remote_can_run_breakpoint_commands): Add 'self' argument.
10161 2014-02-19 Tom Tromey <tromey@redhat.com>
10163 * target.h (struct target_ops)
10164 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10165 (target_supports_evaluation_of_breakpoint_conditions): Add
10167 * target.c (update_current_target): Update.
10168 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10170 (remote_insert_breakpoint): Add 'self' argument.
10171 (remote_insert_hw_breakpoint): Add 'self' argument.
10172 (remote_supports_cond_breakpoints): Add 'self' argument.
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10176 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10178 (target_supports_string_tracing): Add argument.
10179 * target.c (update_current_target): Update.
10180 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10182 2014-02-19 Tom Tromey <tromey@redhat.com>
10184 * target.h (struct target_ops)
10185 <to_supports_disable_randomization>: Add argument.
10186 * target.c (find_default_supports_disable_randomization): Add
10188 (target_supports_disable_randomization): Add argument.
10189 (find_default_supports_disable_randomization): Add 'self'
10191 * remote.c (extended_remote_supports_disable_randomization): Add
10193 (remote_supports_disable_randomization): Add 'self' argument.
10194 (extended_remote_create_inferior): Update.
10195 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10198 2014-02-19 Tom Tromey <tromey@redhat.com>
10200 * target.h (struct target_ops)
10201 <to_supports_enable_disable_tracepoint>: Add argument.
10202 (target_supports_enable_disable_tracepoint): Add argument.
10203 * target.c (update_current_target): Update.
10204 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10207 2014-02-19 Tom Tromey <tromey@redhat.com>
10209 * target.h (struct target_ops) <to_supports_multi_process>: Add
10211 (target_supports_multi_process): Add argument.
10212 * target.c (update_current_target): Update.
10213 * remote.c (remote_supports_multi_process): Add 'self' argument.
10214 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10216 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10219 2014-02-19 Tom Tromey <tromey@redhat.com>
10221 * target.h (struct target_ops) <to_execution_direction>: Add
10223 (target_execution_direction): Add argument.
10224 * target.c (default_execution_direction): Add 'self' argument.
10225 * record-full.c (record_full_execution_direction): Add 'self'
10228 2014-02-19 Tom Tromey <tromey@redhat.com>
10230 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10232 (target_can_execute_reverse): Add argument.
10233 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10234 * record-full.c (record_full_can_execute_reverse): Add 'self'
10236 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10239 2014-02-19 Tom Tromey <tromey@redhat.com>
10241 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10242 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10244 (target_get_ada_task_ptid): Add argument.
10245 * target.c (update_current_target): Update.
10246 (default_get_ada_task_ptid): Add 'self' argument.
10247 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10248 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10249 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10251 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10253 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10255 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10257 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10258 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10261 2014-02-19 Tom Tromey <tromey@redhat.com>
10263 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10264 (target_goto_bookmark): Add argument.
10265 * target.c (dummy_goto_bookmark): Add 'self' argument.
10266 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10268 2014-02-19 Tom Tromey <tromey@redhat.com>
10270 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10271 (target_get_bookmark): Add argument.
10272 * target.c (dummy_get_bookmark): Add 'self' argument.
10273 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10275 2014-02-19 Tom Tromey <tromey@redhat.com>
10277 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10279 (target_make_corefile_notes): Add argument.
10280 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10281 * procfs.c (procfs_make_note_section): Add 'self' argument.
10282 (procfs_make_note_section): Add 'self' argument.
10283 (procfs_make_note_section): Add 'self' argument.
10284 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10286 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10287 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10288 * exec.c (exec_make_note_section): Add 'self' argument.
10289 (exec_make_note_section): Add 'self' argument.
10291 2014-02-19 Tom Tromey <tromey@redhat.com>
10293 * target.h (struct target_ops) <to_find_memory_regions>: Add
10295 (target_find_memory_regions): Add argument.
10296 * target.c (dummy_find_memory_regions): Add 'self' argument.
10297 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10298 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10299 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10300 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10301 * exec. (exec_do_find_memory_regions): New global.
10302 (exec_set_find_memory_regions): Rewrite.
10303 (exec_find_memory_regions): New function.
10304 (init_exec_ops): Use exec_find_memory_regions.
10306 2014-02-19 Tom Tromey <tromey@redhat.com>
10308 * target.h (struct target_ops) <to_supports_non_stop>: Add
10310 * target.c (find_default_supports_non_stop): Add argument.
10311 (target_supports_non_stop): Add argument.
10312 (find_default_supports_non_stop): Add 'self' argument.
10313 * remote.c (remote_supports_non_stop): Add 'self' argument.
10314 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10316 2014-02-19 Tom Tromey <tromey@redhat.com>
10318 * target.h (struct target_ops) <to_log_command>: Add argument.
10319 (target_log_command): Add argument.
10320 * serial.h (serial_log_command): Add 'self' argument.
10321 * serial.c (serial_log_command): Add 'self' argument.
10323 2014-02-19 Tom Tromey <tromey@redhat.com>
10325 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10326 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10328 (target_pid_to_exec_file): Add argument.
10329 * target.c (debug_to_pid_to_exec_file): Add argument.
10330 (update_current_target): Update.
10331 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10332 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10333 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10334 (linux_handle_extended_wait): Update.
10335 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10336 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10337 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10338 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10340 2014-02-19 Tom Tromey <tromey@redhat.com>
10342 * target.h (struct target_ops) <to_rcmd>: Add argument.
10343 (target_rcmd): Add argument.
10344 * target.c (debug_to_rcmd): Add argument.
10345 (update_current_target, do_monitor_command): Update.
10346 * remote.c (remote_rcmd): Add 'self' argument.
10347 * monitor.c (monitor_rcmd): Add 'self' argument.
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10351 * windows-nat.c (windows_stop): Add 'self' argument.
10352 * target.h (struct target_ops) <to_stop>: Add argument.
10353 * target.c (target_stop): Add argument.
10354 (debug_to_stop): Add argument.
10355 (update_current_target): Update.
10356 * remote.c (remote_stop): Add 'self' argument.
10357 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10358 (gdbsim_cntrl_c): Update.
10359 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10360 * procfs.c (procfs_stop): Add 'self' argument.
10361 * nto-procfs.c (procfs_stop): Add 'self' argument.
10362 * monitor.c (monitor_stop): Add 'self' argument.
10363 (monitor_open): Update.
10364 * linux-nat.c (linux_nat_stop): Add argument.
10365 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10366 * gnu-nat.c (gnu_stop): Add 'self' argument.
10367 * darwin-nat.c (darwin_stop): Add 'self' argument.
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10371 * target.h (struct target_ops) <to_thread_name>: Add argument.
10372 * target.c (target_thread_name): Add argument.
10373 (update_current_target): Update.
10374 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10376 2014-02-19 Tom Tromey <tromey@redhat.com>
10378 * target.h (struct target_ops) <to_extra_thread_info>: Add
10380 (target_extra_thread_info): Add argument.
10381 * target.c (update_current_target): Update.
10382 * remote.c (remote_threads_extra_info): Add 'self' argument.
10383 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10385 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10386 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10387 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10389 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10391 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10393 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10396 2014-02-19 Tom Tromey <tromey@redhat.com>
10398 * target.h (struct target_ops) <to_program_signals>: Add argument.
10399 * target.c (target_program_signals): Add argument.
10400 * remote.c (remote_program_signals): Add 'self' argument.
10402 2014-02-19 Tom Tromey <tromey@redhat.com>
10404 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10405 * target.c (target_pass_signals): Add argument.
10406 * remote.c (remote_pass_signals): Add 'self' argument.
10407 (remote_start_remote): Update.
10408 * procfs.c (procfs_pass_signals): Add 'self' argument.
10409 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10410 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10411 (linux_nat_create_inferior, linux_nat_attach): Update.
10413 2014-02-19 Tom Tromey <tromey@redhat.com>
10415 * windows-nat.c (windows_can_run): Add 'self' argument.
10416 * target.h (struct target_ops) <to_can_run>: Add argument.
10417 (target_can_run): Add argument.
10418 * target.c (debug_to_can_run): Add argument.
10419 (update_current_target): Update.
10420 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10421 * inf-child.c (inf_child_can_run): Add 'self' argument.
10422 * go32-nat.c (go32_can_run): Add 'self' argument.
10424 2014-02-19 Tom Tromey <tromey@redhat.com>
10426 * target.h (struct target_ops) <to_has_exited>: Add argument.
10427 (target_has_exited): Add argument.
10428 * target.c (debug_to_has_exited): Add argument.
10429 (update_current_target): Update.
10431 2014-02-19 Tom Tromey <tromey@redhat.com>
10433 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10435 (target_set_syscall_catchpoint): Add argument.
10436 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10438 * target.c (update_current_target): Update.
10440 2014-02-19 Tom Tromey <tromey@redhat.com>
10442 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10444 (target_remove_exec_catchpoint): Add argument.
10445 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10446 (update_current_target): Update.
10447 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10450 2014-02-19 Tom Tromey <tromey@redhat.com>
10452 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10454 (target_insert_exec_catchpoint): Add argument.
10455 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10456 (update_current_target): Update.
10457 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10460 2014-02-19 Tom Tromey <tromey@redhat.com>
10462 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10464 (target_remove_vfork_catchpoint): Add argument.
10465 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10466 (update_current_target): Update.
10467 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10470 2014-02-19 Tom Tromey <tromey@redhat.com>
10472 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10474 (target_insert_vfork_catchpoint): Add argument.
10475 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10476 (update_current_target): Update.
10477 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10480 2014-02-19 Tom Tromey <tromey@redhat.com>
10482 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10484 (target_remove_fork_catchpoint): Add argument.
10485 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10486 (update_current_target): Update.
10487 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10492 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10494 (target_insert_fork_catchpoint): Add argument.
10495 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10496 (update_current_target): Update.
10497 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10500 2014-02-19 Tom Tromey <tromey@redhat.com>
10502 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10504 (target_post_startup_inferior): Add argument.
10505 * target.c (debug_to_post_startup_inferior): Add argument.
10506 (update_current_target): Update.
10507 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10509 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10511 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10513 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10515 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10517 (super_post_startup_inferior): Likewise.
10518 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10520 (super_post_startup_inferior): Likewise.
10521 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10522 Add 'self' argument.
10523 (super_post_startup_inferior): Likewise.
10525 2014-02-19 Tom Tromey <tromey@redhat.com>
10527 * target.h (struct target_ops) <to_load>: Add argument.
10528 * target.c (target_load): Add argument.
10529 (debug_to_load): Add argument.
10530 (update_current_target): Update.
10531 * remote.c (remote_load): Add 'self' argument.
10532 * remote-sim.c (gdbsim_load): Add 'self' argument.
10533 * remote-mips.c (mips_load): Add 'self' argument.
10534 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10535 * monitor.c (monitor_load): Add 'self' argument.
10536 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10538 2014-02-19 Tom Tromey <tromey@redhat.com>
10540 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10541 (target_terminal_info): Add argument.
10542 * target.c (debug_to_terminal_info): Add argument.
10543 (default_terminal_info): Likewise.
10544 * inflow.c (child_terminal_info): Add 'self' argument.
10545 * inferior.h (child_terminal_info): Add 'self' argument.
10546 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10548 2014-02-19 Tom Tromey <tromey@redhat.com>
10550 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10552 (target_terminal_save_ours): Add argument.
10553 * target.c (debug_to_terminal_save_ours): Add argument.
10554 (update_current_target): Update.
10555 * inflow.c (terminal_save_ours): Add 'self' argument.
10556 * inferior.h (terminal_save_ours): Add 'self' argument.
10558 2014-02-19 Tom Tromey <tromey@redhat.com>
10560 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10561 (target_terminal_ours): Add argument.
10562 * target.c (debug_to_terminal_ours): Add argument.
10563 (update_current_target): Update.
10564 * remote.c (remote_terminal_ours): Add 'self' argument.
10565 (remote_close): Update.
10566 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10567 * inflow.c (terminal_ours): Add 'self' argument.
10568 * inferior.h (terminal_ours): Add 'self' argument.
10569 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10571 2014-02-19 Pedro Alves <palves@redhat.com>
10572 Tom Tromey <tromey@redhat.com>
10574 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10576 (target_terminal_ours_for_output): Add argument.
10577 * target.c (debug_to_terminal_ours_for_output): Add argument.
10578 (update_current_target): Update.
10579 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10580 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10581 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10583 2014-02-19 Tom Tromey <tromey@redhat.com>
10585 * target.h (struct target_ops) <to_terminal_inferior>: Add
10587 * target.c (target_terminal_inferior): Add argument.
10588 (update_current_target): Update.
10589 * remote.c (remote_terminal_inferior): Add 'self' argument.
10590 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10591 * inflow.c (terminal_inferior): Add 'self' argument.
10592 * inferior.h (terminal_inferior): Add 'self' argument.
10593 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10594 (go32_terminal_inferior): Add 'self' argument.
10596 2014-02-19 Tom Tromey <tromey@redhat.com>
10598 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10599 (target_terminal_init): Add argument.
10600 * target.c (debug_to_terminal_init): Add argument.
10601 (update_current_target): Update.
10602 * inflow.c (terminal_init_inferior): Add 'self' argument.
10603 * inferior.h (terminal_init_inferior): Add 'self' argument.
10604 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10605 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10607 2014-02-19 Tom Tromey <tromey@redhat.com>
10609 * target.h (struct target_ops)
10610 <to_can_accel_watchpoint_condition>: Add argument.
10611 (target_can_accel_watchpoint_condition): Add argument.
10612 * target.c (debug_to_can_accel_watchpoint_condition): Add
10614 (update_current_target): Update.
10615 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10618 2014-02-19 Tom Tromey <tromey@redhat.com>
10620 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10622 (target_region_ok_for_hw_watchpoint): Add argument.
10623 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10624 (default_region_ok_for_hw_watchpoint): Add argument.
10625 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10626 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10628 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10630 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10632 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10634 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10636 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10638 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10639 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10641 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10642 Add 'self' argument.
10644 2014-02-19 Tom Tromey <tromey@redhat.com>
10646 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10648 (target_insert_watchpoint): Add argument.
10649 * target.c (debug_to_insert_watchpoint): Add argument.
10650 (update_current_target): Update.
10651 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10652 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10653 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10654 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10655 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10656 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10658 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10659 (procfs_insert_hw_watchpoint): Add 'self' argument.
10660 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10662 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10664 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10666 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10667 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10669 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10672 2014-02-19 Tom Tromey <tromey@redhat.com>
10674 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10676 (target_remove_watchpoint): Add argument.
10677 * target.c (debug_to_remove_watchpoint): Add argument.
10678 (update_current_target): Update.
10679 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10680 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10681 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10682 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10683 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10684 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10686 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10687 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10689 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10691 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10693 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10694 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10696 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10699 2014-02-19 Tom Tromey <tromey@redhat.com>
10701 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10703 (target_remove_hw_breakpoint): Add argument.
10704 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10705 (update_current_target): Update.
10706 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10707 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10709 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10710 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10712 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10715 2014-02-19 Tom Tromey <tromey@redhat.com>
10717 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10719 (target_insert_hw_breakpoint): Add argument.
10720 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10721 (update_current_target): Update.
10722 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10723 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10725 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10726 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10727 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10729 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10732 2014-02-19 Tom Tromey <tromey@redhat.com>
10734 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10736 (target_can_use_hardware_watchpoint): Add argument.
10737 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10738 (update_current_target): Update.
10739 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10741 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10743 * remote.c (remote_check_watch_resources): Add 'self' argument.
10744 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10745 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10747 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10748 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10750 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10752 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10754 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10756 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10758 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10760 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10761 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10763 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10768 * target.h (struct target_ops) <to_post_attach>: Add argument.
10769 (target_post_attach): Add argument.
10770 * target.c (debug_to_post_attach): Add argument.
10771 (update_current_target): Update.
10772 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10773 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10774 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10775 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10776 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10778 2014-02-19 Tom Tromey <tromey@redhat.com>
10780 * windows-nat.c (windows_close): Add 'self' argument.
10781 * tracepoint.c (tfile_close): Add 'self' argument.
10782 * target.h (struct target_ops) <to_close>: Add argument.
10783 * target.c (target_close): Add argument.
10784 (update_current_target): Update.
10785 * remote.c (remote_close): Add 'self' argument.
10786 * remote-sim.c (gdbsim_close): Add 'self' argument.
10787 * remote-mips.c (mips_close): Add 'self' argument.
10788 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10789 * record-full.c (record_full_close): Add 'self' argument.
10790 * record-btrace.c (record_btrace_close): Add 'self' argument.
10791 * monitor.h (monitor_close): Add 'self' argument.
10792 * monitor.c (monitor_close): Add 'self' argument.
10793 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10794 * linux-nat.c (linux_nat_close): Add argument.
10795 * go32-nat.c (go32_close): Add 'self' argument.
10796 * exec.c (exec_close_1): Add 'self' argument.
10797 * ctf.c (ctf_close): Add 'self' argument.
10798 * corelow.c (core_close): Add 'self' argument.
10799 (core_close_cleanup): Update.
10800 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10801 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10803 2014-02-19 Tom Tromey <tromey@redhat.com>
10805 * remote.c (remote_load): New function.
10806 (init_remote_ops): Use it.
10808 2014-02-19 Tom Tromey <tromey@redhat.com>
10810 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10812 * common/linux-btrace.h (linux_supports_btrace): Update.
10813 * remote.c (remote_supports_btrace): Add "self" argument.
10814 * target-delegates.c: Rebuild.
10815 * target.c (target_supports_btrace): Remove.
10816 * target.h (struct target_ops) <to_supports_btrace>: Add
10817 target_ops argument.
10818 (target_supports_btrace): New define.
10820 2014-02-19 Tom Tromey <tromey@redhat.com>
10822 * record-full.c (record_full_beneath_to_resume_ops)
10823 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10824 (record_full_beneath_to_wait)
10825 (record_full_beneath_to_store_registers_ops)
10826 (record_full_beneath_to_store_registers)
10827 (record_full_beneath_to_xfer_partial_ops)
10828 (record_full_beneath_to_xfer_partial)
10829 (record_full_beneath_to_insert_breakpoint_ops)
10830 (record_full_beneath_to_insert_breakpoint)
10831 (record_full_beneath_to_remove_breakpoint_ops)
10832 (record_full_beneath_to_remove_breakpoint)
10833 (record_full_beneath_to_stopped_by_watchpoint)
10834 (record_full_beneath_to_stopped_data_address)
10835 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10836 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10837 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10838 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10839 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10840 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10841 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10842 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10843 (record_full_resume, record_full_wait_1)
10844 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10845 (record_full_store_registers, record_full_xfer_partial)
10846 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10847 (record_full_async, record_full_core_xfer_partial): Use target
10849 * target-delegates.c: Rebuild.
10850 * target.c (current_xfer_partial): Remove.
10851 (update_current_target): Do not INHERIT or de_fault
10852 to_insert_breakpoint, to_remove_breakpoint,
10853 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10854 to_is_async_p, to_async. Do not set to_xfer_partial field.
10855 (default_xfer_partial): Simplify.
10856 (current_xfer_partial): Remove.
10857 (target_wait, target_resume): Simplify.
10858 (find_default_can_async_p, find_default_is_async_p): Update.
10859 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10860 to_xfer_partial, to_stopped_by_watchpoint,
10861 to_stopped_data_address.
10862 (target_store_registers): Simplify.
10863 (forward_target_remove_breakpoint)
10864 (forward_target_insert_breakpoint): Remove.
10865 (target_remove_breakpoint, target_insert_breakpoint)
10866 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10867 * target.h (struct target_ops) <to_resume, to_wait,
10868 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10869 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10870 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10872 (forward_target_remove_breakpoint)
10873 (forward_target_insert_breakpoint): Remove.
10874 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10876 (record_btrace_insert_breakpoint): Delegate directly.
10878 2014-02-19 Tom Tromey <tromey@redhat.com>
10881 * target-delegates.c: New file.
10882 * target.c: Include target-delegates.c.
10883 (init_dummy_target): Call install_dummy_methods.
10884 (complete_target_initialization): Call install_delegators.
10885 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10886 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10887 * make-target-delegates: New file.
10889 2014-02-19 Tom Tromey <tromey@redhat.com>
10891 * record.c (find_record_target): Use find_target_at.
10892 * target.c (find_target_at): New function.
10893 * target.h (find_target_at): Declare.
10895 2014-02-19 Tom Tromey <tromey@redhat.com>
10897 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10898 Add 'ops' argument.
10899 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10901 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10902 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10904 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10906 * linux-nat.c (save_sigtrap): Update.
10907 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10908 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10909 (linux_nat_close): Update.
10910 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10912 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10914 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10915 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10916 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10917 (tmp_to_async): Add 'ops' argument.
10918 (record_full_stopped_by_watchpoint, record_full_async)
10919 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10921 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10922 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10923 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10924 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10925 (remote_is_async_p, remote_async): Add 'ops' argument.
10926 (remote_stopped_data_address): Update.
10927 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10928 * target.c (update_current_target)
10929 (find_default_can_async_p, find_default_is_async_p): Update.
10930 (init_dummy_target): Update.
10931 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10932 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10933 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10934 (target_can_async_p, target_is_async_p, target_async)
10935 (target_stopped_by_watchpoint): Update.
10937 2014-02-19 Yao Qi <yao@codesourcery.com>
10940 * gdbarch.sh: Remove startup_gdbarch.
10941 * gdbarch.c: Regenerated.
10942 * gdbarch.h: Likewise.
10944 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10946 * rl78-tdep.c (rl78_g10_register_name): New function.
10947 (rl78_return_value): Add g10 support.
10948 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10951 2014-02-17 Doug Evans <xdje42@gmail.com>
10953 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10954 (SUBDIR_GUILE_SRCS): Ditto.
10955 (scm-gsmob.o): Ditto.
10957 2014-02-17 Yao Qi <yao@codesourcery.com>
10959 * gnu-nat.c (ILL_RPC): Declare defined function.
10961 2014-02-17 Yao Qi <yao@codesourcery.com>
10963 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10964 mach_msg_type_number_t.
10965 (gnu_write_inferior): Likewise.
10967 2014-02-17 Yao Qi <yao@codesourcery.com>
10969 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10971 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10972 (inf_validate_procs, inf_signal): Likewise.
10973 (S_exception_raise_request): Likewise.
10974 (do_mach_notify_dead_name): Likewise.
10975 (steal_exc_port): Likewise.
10976 (gnu_read_inferior): Change 'copy_count''s type to
10977 mach_msg_type_number_t.
10978 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10981 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10983 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10984 flag. Adjust all users; in particular...
10985 (gnu_wait): ..., don't decrement its value in here...
10986 (gnu_create_inferior): ..., and instead set the flag in here,
10987 around the startup_inferior call, and call that one with
10988 START_INFERIOR_TRAPS_EXPECTED.
10990 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10991 (ILL_RPC): ... new macro.
10992 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10993 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10994 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10995 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10996 functions with ILL_RPC macro.
10997 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10998 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10999 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11000 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11001 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11002 (S_proc_getlogin_reply, S_proc_getsid_reply)
11003 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11004 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11005 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11006 (S_proc_getnports_reply, S_proc_is_important_reply)
11007 (S_proc_get_code_reply): New stub functions, generated with
11010 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11011 collected the type check structures.
11013 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11015 2014-02-14 Doug Evans <dje@google.com>
11017 * target.c (target_write_partial): Fix result type.
11019 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11021 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11022 the proper offsets to access fpregset_t.
11024 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11026 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11027 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11028 * h8300-tdep.c (setmachinelist): Remove global.
11029 * hppa-tdep.c (hppa_sigtramp): Remove global.
11030 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11031 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11032 * ravenscar-thread.c (update_target_observer): Remove global.
11033 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11035 2014-02-12 Tom Tromey <tromey@redhat.com>
11037 * common/rsp-low.c: Update comments.
11038 * common/rsp-low.h: Update comments.
11040 2014-02-12 Tom Tromey <tromey@redhat.com>
11042 * common/rsp-low.c (convert_ascii_to_int): Remove.
11043 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11045 2014-02-12 Tom Tromey <tromey@redhat.com>
11047 * common/rsp-low.h (unhexify): Don't declare.
11048 * common/rsp-low.c (unhexify): Remove.
11050 2014-02-12 Tom Tromey <tromey@redhat.com>
11052 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11053 * common/rsp-low.c (convert_int_to_ascii): Remove.
11055 2014-02-12 Tom Tromey <tromey@redhat.com>
11057 * common/rsp-low.h (hexify): Don't declare.
11058 * common/rsp-low.c (hexify): Remove.
11060 2014-02-12 Tom Tromey <tromey@redhat.com>
11062 * common/rsp-low.c (hexify): Never take strlen of argument.
11064 2014-02-12 Tom Tromey <tromey@redhat.com>
11066 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11067 * remote.c (extended_remote_run, remote_rcmd)
11068 (remote_download_trace_state_variable, remote_save_trace_data)
11069 (remote_set_trace_notes): Update.
11070 * tracepoint.c (encode_source_string, tfile_write_status)
11071 (tfile_write_uploaded_tsv): Update.
11073 2014-02-12 Tom Tromey <tromey@redhat.com>
11075 * tracepoint.c: Include rsp-low.h.
11076 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11077 * remote.c: Include rsp-low.h.
11078 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11079 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11080 (remote_unescape_input): Move to common/rsp-low.c.
11081 * common/rsp-low.h: New file.
11082 * common/rsp-low.c: New file.
11083 * Makefile.in (SFILES): Add common/rsp-low.c.
11084 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11085 (COMMON_OBS): Add rsp-low.o.
11086 (rsp-low.o): New target.
11088 2014-02-12 Tom Tromey <tromey@redhat.com>
11090 * utils.h: Include print-utils.h.
11091 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11092 (int_string, core_addr_to_string, core_addr_to_string_nz)
11093 (hex_string, hex_string_custom): Don't declare.
11094 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11095 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11096 (hex_string_custom, int_string, core_addr_to_string)
11097 (core_addr_to_string_nz, host_address_to_string): Move to
11098 common/print-utils.c.
11099 * common/print-utils.h: New file.
11100 * common/print-utils.c: New file
11101 * Makefile.in (SFILES): Add common/print-utils.c.
11102 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11103 (COMMON_OBS): Add print-utils.o.
11104 (print-utils.o): New target.
11106 2014-02-12 Tom Tromey <tromey@redhat.com>
11108 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11110 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11112 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11114 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11116 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11117 if a PT_IO ptrace request returns sucessfully but indicates that 0
11118 bytes were transferred.
11120 2014-02-12 Pedro Alves <palves@redhat.com>
11121 Kevin Buettner <kevinb@redhat.com>
11123 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11124 TYPE_INSTANCE_FLAG_CODE_SPACE.
11126 2014-02-12 Pedro Alves <palves@redhat.com>
11128 * h8300-tdep.c (pseudo_from_raw_register)
11129 (raw_from_pseudo_register): New functions.
11130 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11133 2014-02-12 Pedro Alves <palves@redhat.com>
11135 * h8300-tdep.c (h8300_register_sim_regno): New function.
11136 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11137 gdbarch_register_sim_regno hook.
11139 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11141 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11143 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11145 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11147 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11149 * obsd-tdep.h (obsd_init_abi): New prototype.
11150 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11151 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11152 (obsd_init_abi): New functions.
11153 * i386obsd-tdep.c: Include "obsd-tdep.h".
11154 (i386obsd_init_abi): Call obsd_init_abi.
11155 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11156 (amd64obsd_init_abi): Call obsd_init_abi.
11157 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11158 obsd-tdep.c to gdb_target_obs.
11160 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11162 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11163 double float arguments to 16-byte in the argument slots.
11165 2014-02-11 Doug Evans <xdje42@gmail.com>
11167 * configure.ac: Don't crash if pkg-config is not found and guile
11168 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11170 * configure: Regenerate.
11172 2014-02-11 Yao Qi <yao@codesourcery.com>
11174 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11175 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11176 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11177 * gnu-nat.c (gnu_xfer_memory): Likewise.
11178 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11179 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11180 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11181 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11183 2014-02-11 Yao Qi <yao@codesourcery.com>
11185 * target.h (enum target_xfer_error): Rename to ...
11186 (enum target_xfer_status): ... it. New. All users updated.
11187 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11189 (TARGET_XFER_STATUS_ERROR_P): New macro.
11190 (target_xfer_error_to_string): Remove declaration.
11191 (target_xfer_status_to_string): Declare.
11192 (target_xfer_partial_ftype): Adjust it.
11193 (struct target_ops) <to_xfer_partial>: Return
11194 target_xfer_status. Add argument xfered_len. Update
11196 * target.c (target_xfer_error_to_string): Rename to ...
11197 (target_xfer_status_to_string): ... it. New. All callers
11199 (target_read_live_memory): Likewise. Call target_xfer_partial
11200 instead of target_read.
11201 (memory_xfer_live_readonly_partial): Return
11202 target_xfer_status. Add argument xfered_len.
11203 (raw_memory_xfer_partial): Likewise.
11204 (memory_xfer_partial_1): Likewise.
11205 (memory_xfer_partial): Likewise.
11206 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11207 properly. Update debug message.
11208 (default_xfer_partial, current_xfer_partial): Likewise.
11209 (target_write_partial): Likewise.
11210 (target_read_partial): Likewise. All callers updated.
11211 (read_whatever_is_readable): Likewise.
11212 (target_write_with_progress): Likewise.
11213 (target_read_alloc_1): Likewise.
11215 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11216 * auxv.c (procfs_xfer_auxv): Likewise.
11217 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11218 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11219 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11220 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11221 * corefile.c (read_memory): Adjust.
11222 * corelow.c (core_xfer_partial): Likewise.
11223 * ctf.c (ctf_xfer_partial): Likewise.
11224 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11226 (darwin_xfer_partial): Likewise.
11227 * exec.c (section_table_xfer_memory_partial): Likewise. All
11229 (exec_xfer_partial): Likewise.
11230 * exec.h (section_table_xfer_memory_partial): Update
11232 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11234 (gnu_xfer_partial): Likewise.
11235 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11236 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11237 (ia64_hpux_xfer_solib_got): Likewise.
11238 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11239 type of 'partial_len' to ULONGEST.
11240 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11241 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11242 (linux_nat_xfer_partial): Likewise.
11243 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11244 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11245 * monitor.c (monitor_xfer_memory): Likewise.
11246 (monitor_xfer_partial): Likewise.
11247 * procfs.c (procfs_xfer_partial): Likewise.
11248 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11249 * record-full.c (record_full_xfer_partial): Likewise.
11250 (record_full_core_xfer_partial): Likewise.
11251 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11252 (gdbsim_xfer_partial): Likewise.
11253 * remote.c (remote_write_bytes_aux): Likewise. All callers
11255 (remote_write_bytes, remote_read_bytes): Likewise. All
11257 (remote_flash_erase): Likewise. All callers updated.
11258 (remote_write_qxfer): Likewise. All callers updated.
11259 (remote_read_qxfer): Likewise. All callers updated.
11260 (remote_xfer_partial): Likewise.
11261 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11262 (rs6000_xfer_shared_libraries): Likewise.
11263 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11264 (sol_thread_xfer_partial): Likewise.
11265 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11266 (sparc_xfer_partial): Likewise.
11267 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11269 (spu_xfer_partial): Likewise.
11270 * spu-multiarch.c (spu_xfer_partial): Likewise.
11271 * tracepoint.c (tfile_xfer_partial): Likewise.
11272 * windows-nat.c (windows_xfer_memory): Likewise.
11273 (windows_xfer_shared_libraries): Likewise.
11274 (windows_xfer_partial): Likewise.
11275 * valprint.c: Replace 'target_xfer_error' with
11276 'target_xfer_status' in comments.
11278 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11280 Checked in by Joel Brobecker <brobecker@adacore.com>.
11281 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11283 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11285 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11286 function parameters.
11288 2014-02-10 Will Newton <will.newton@linaro.org>
11290 * elfread.c (elf_rel_plt_read): Look for a .got section if
11291 looking up .got.plt fails.
11292 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11293 on address passed to elf_gnu_ifunc_record_cache.
11294 (elf_gnu_ifunc_resolve_addr): Likewise.
11295 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11297 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11299 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11300 (X_RETTURN): New macro.
11301 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11303 * sparc64-tdep.c (sparc64_init_abi): Hook
11304 sparc_in_function_epilogue_p.
11306 2014-02-10 Gary Benson <gbenson@redhat.com>
11308 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11309 Rename name_matcher to symbol_matcher.
11311 2014-02-10 Gary Benson <gbenson@redhat.com>
11313 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11314 Use expand_symtabs_file_matcher_ftype and
11315 expand_symtabs_symbol_matcher_ftype.
11317 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11319 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11320 (struct ada_symbol_cache): New.
11321 (ada_free_symbol_cache): Forward declare.
11322 (struct ada_pspace_data): New.
11323 (ada_pspace_data_handle): New static global.
11324 (get_ada_pspace_data, ada_pspace_data_cleanup)
11325 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11326 (cache_space, cache): Delete, now folded inside struct
11328 (ada_get_symbol_cache): New function.
11329 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11331 (_initialize_ada_language): Remove initialization of cache_space.
11332 Move call to observer_attach_inferior_exit up, grouping it
11333 with the other observer registrations inside this function.
11334 Rename command to be more general. Add call to
11335 register_program_space_data_with_cleanup.
11337 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11339 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11340 ada_new_objfile_observer.
11341 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11342 (_initialize_tasks): Update uses of ada_new_objfile_observer
11343 and ada_tasks_normal_stop_observer.
11345 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11347 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11348 returned by the 'Length attribute to integer.
11350 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11352 * ada-lang.c (_initialize_ada_language): Initialize
11353 cache_space obstack.
11355 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11357 * ada-lang.c (HASH_SIZE): New macro.
11358 (struct cache_entry): New type.
11359 (cache_space, cache): New static globals.
11360 (ada_clear_symbol_cache, find_entry): New functions.
11361 (lookup_cached_symbol, cache_symbol): Implement.
11362 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11363 (_initialize_ada_language): Attach ada_new_objfile_observer
11364 and ada_free_objfile_observer.
11366 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11368 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11369 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11370 struct block * parameter.
11371 (ada_lookup_symbol_list_worker): Constify local variable "block".
11372 Remove cast which is no longer necessary.
11374 2014-02-10 Doug Evans <xdje42@gmail.com>
11376 Add Guile as an extension language.
11377 * NEWS: Mention Guile scripting.
11378 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11379 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11380 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11381 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11382 (CLIBS): Add GUILE_LIBS.
11383 (install-guile): New rule.
11384 (guile.o): New rule.
11385 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11386 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11387 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11388 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11389 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11390 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11391 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11392 * configure.ac: New option --with-guile.
11393 * configure: Regenerate.
11394 * config.in: Regenerate.
11395 * auto-load.c: Remove #include "python/python.h". Add #include
11396 "gdb/section-scripts.h".
11397 (source_section_scripts): Handle Guile scripts.
11398 (_initialize_auto_load): Add name of Guile objfile script to
11399 scripts-directory help text.
11400 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11401 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11402 (struct breakpoint): New member scm_bp_object.
11403 * defs.h (enum command_control_type): New value guile_control.
11404 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11406 (show_user): Update comment.
11407 (_initialize_cli_cmds): Update help text for "show user". Update help
11408 text for max-user-call-depth.
11409 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11411 (multi_line_command_p): Add guile_control.
11412 (print_command_lines): Handle guile_control.
11413 (execute_control_command, recurse_read_control_structure): Ditto.
11414 (process_next_line): Recognize "guile" commands.
11415 * disasm.c (gdb_disassemble_info): Make non-static.
11416 * disasm.h: #include "dis-asm.h".
11417 (struct gdbarch): Add forward decl.
11418 (gdb_disassemble_info): Declare.
11419 * extension.c: #include "guile/guile.h".
11420 (extension_languages): Add guile.
11421 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11422 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11423 * gdbtypes.c (get_unsigned_type_max): New function.
11424 (get_signed_type_minmax): New function.
11425 * gdbtypes.h (get_unsigned_type_max): Declare.
11426 (get_signed_type_minmax): Declare.
11427 * guile/README: New file.
11428 * guile/guile-internal.h: New file.
11429 * guile/guile.c: New file.
11430 * guile/guile.h: New file.
11431 * guile/scm-arch.c: New file.
11432 * guile/scm-auto-load.c: New file.
11433 * guile/scm-block.c: New file.
11434 * guile/scm-breakpoint.c: New file.
11435 * guile/scm-disasm.c: New file.
11436 * guile/scm-exception.c: New file.
11437 * guile/scm-frame.c: New file.
11438 * guile/scm-gsmob.c: New file.
11439 * guile/scm-iterator.c: New file.
11440 * guile/scm-lazy-string.c: New file.
11441 * guile/scm-math.c: New file.
11442 * guile/scm-objfile.c: New file.
11443 * guile/scm-ports.c: New file.
11444 * guile/scm-pretty-print.c: New file.
11445 * guile/scm-safe-call.c: New file.
11446 * guile/scm-string.c: New file.
11447 * guile/scm-symbol.c: New file.
11448 * guile/scm-symtab.c: New file.
11449 * guile/scm-type.c: New file.
11450 * guile/scm-utils.c: New file.
11451 * guile/scm-value.c: New file.
11452 * guile/lib/gdb.scm: New file.
11453 * guile/lib/gdb/boot.scm: New file.
11454 * guile/lib/gdb/experimental.scm: New file.
11455 * guile/lib/gdb/init.scm: New file.
11456 * guile/lib/gdb/iterator.scm: New file.
11457 * guile/lib/gdb/printing.scm: New file.
11458 * guile/lib/gdb/types.scm: New file.
11459 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11460 (VPATH): Add $(GUILE_SRCDIR).
11461 (GUILE_DIR): New variable.
11462 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11463 (all): Add stamp-guile dependency.
11464 (stamp-guile): New rule.
11465 (clean-guile, install-guile, uninstall-guile): New rules.
11466 (install-only): Add install-guile dependency.
11467 (uninstall): Add uninstall-guile dependency.
11468 (clean): Add clean-guile dependency.
11470 2014-02-09 Doug Evans <xdje42@gmail.com>
11472 Revert this patch (which I approved, mea culpa).
11474 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11476 * Makefile.in (all-lib): Remove.
11477 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11479 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11481 Fix Python stack corruption.
11482 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11485 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11487 * Makefile.in (all-lib): Remove.
11488 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11490 2014-02-07 Doug Evans <dje@google.com>
11492 * extension-priv.h (extension_language_script_ops): Add comment.
11493 (extension_language_ops): Add comment.
11494 (active_ext_lang_state): Fix typo in comment.
11496 2014-02-07 Pedro Alves <palves@redhat.com>
11498 PR breakpoints/16292
11499 * infrun.c (handle_signal_stop) <signal arrives while stepping
11500 over a breakpoint>: Switch back to the stepping thread.
11502 2014-02-07 Yao Qi <yao@codesourcery.com>
11504 * target.c (target_xfer_partial): Return zero if LEN is zero.
11506 2014-02-07 Yao Qi <yao@codesourcery.com>
11508 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11509 (ld_so_xfer_auxv): Likewise.
11510 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11511 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11512 * corelow.c (core_xfer_partial): Likewise.
11513 * ctf.c (ctf_xfer_partial): Likewise.
11514 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11515 (darwin_xfer_partial): Likewise.
11516 * exec.c (exec_xfer_partial): Likewise.
11517 * gnu-nat.c (gnu_xfer_partial): Likewise.
11518 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11519 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11520 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11521 * linux-nat.c (linux_xfer_siginfo): Likewise.
11522 (linux_proc_xfer_spu): Likewise.
11523 * procfs.c (procfs_xfer_partial): Likewise.
11524 * record-full.c (record_full_xfer_partial): Likewise.
11525 (record_full_core_xfer_partial): Likewise.
11526 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11527 * remote.c (remote_write_qxfer): Likewise.
11528 (remote_write_qxfer, remote_read_qxfer): Likewise.
11529 (remote_xfer_partial): Likewise.
11530 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11531 (rs6000_xfer_shared_libraries): Likewise.
11532 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11533 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11534 (spu_xfer_partial): Likewise.
11535 * target.c (memory_xfer_partial_1): Likewise.
11536 * tracepoint.c (tfile_xfer_partial): Likewise.
11537 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11538 (windows_xfer_partial): Likewise.
11540 2014-02-07 Yao Qi <yao@codesourcery.com>
11542 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11544 (core_xfer_shared_libraries_aix): Likewise.
11545 * gdbarch.c, gdbarch.h: Regenerated.
11546 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11547 ULONGEST. Change 'len_avail' type to ULONGEST.
11548 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11549 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11551 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11553 2014-02-07 Yao Qi <yao@codesourcery.com>
11555 * corefile.c (memory_error): Get 'exception' from ERR and pass
11556 'exception' to throw_error.
11558 2014-02-06 Doug Evans <xdje42@gmail.com>
11560 * configure.ac (libpython checking): Remove all but python.o from
11561 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11562 * configure: Regenerate.
11564 * Makefile.in (SFILES): Add extension.c.
11565 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11566 (COMMON_OBS): Add extension.o.
11567 * extension.h: New file.
11568 * extension-priv.h: New file.
11569 * extension.c: New file.
11571 * python/python-internal.h: #include "extension.h".
11572 (gdbpy_auto_load_enabled): Declare.
11573 (gdbpy_apply_val_pretty_printer): Declare.
11574 (gdbpy_apply_frame_filter): Declare.
11575 (gdbpy_preserve_values): Declare.
11576 (gdbpy_breakpoint_cond_says_stop): Declare.
11577 (gdbpy_breakpoint_has_cond): Declare.
11578 (void source_python_script_for_objfile): Delete.
11579 * python/python.c: #include "extension-priv.h".
11580 Delete inclusion of "observer.h".
11581 (extension_language_python): Moved here and renamed from
11582 script_language_python in py-auto-load.c.
11583 Redefined to be of type extension_language_defn.
11584 (python_extension_script_ops): New global.
11585 (python_extension_ops): New global.
11586 (struct python_env): New member previous_active.
11587 (restore_python_env): Call restore_active_ext_lang.
11588 (ensure_python_env): Call set_active_ext_lang.
11589 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11591 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11593 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11595 (gdbpy_eval_from_control_command): Renamed from
11596 eval_python_from_control_command, made static. New arg extlang.
11597 (gdbpy_source_script) Renamed from source_python_script, made static.
11599 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11600 result to int. New arg extlang.
11601 (gdbpy_source_objfile_script): Renamed from
11602 source_python_script_for_objfile, made static. New arg extlang.
11603 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11604 static. New args extlang, extlang_printers. Change result type to
11606 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11607 static. New arg extlang. Rename arg printers to extlang_printers
11608 and change type to ext_lang_type_printers *.
11609 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11610 static. Replace argument arg with extlang, extlang_printers.
11611 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11612 (!HAVE_PYTHON, source_python_script): Delete.
11613 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11614 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11615 (!HAVE_PYTHON, start_type_printers): Delete.
11616 (!HAVE_PYTHON, apply_type_printers): Delete.
11617 (!HAVE_PYTHON, free_type_printers): Delete.
11618 (_initialize_python): Delete call to observer_attach_before_prompt.
11619 (finalize_python): Set/restore active extension language.
11620 (gdbpy_finish_initialization) Renamed from
11621 finish_python_initialization, made static. New arg extlang.
11622 (gdbpy_initialized): New function.
11623 * python/python.h: #include "extension.h". Delete #include
11624 "value.h", "mi/mi-cmds.h".
11625 (extension_language_python): Declare.
11626 (GDBPY_AUTO_FILE_NAME): Delete.
11627 (enum py_bt_status): Moved to extension.h and renamed to
11628 ext_lang_bt_status.
11629 (enum frame_filter_flags): Moved to extension.h.
11630 (enum py_frame_args): Moved to extension.h and renamed to
11631 ext_lang_frame_args.
11632 (finish_python_initialization): Delete.
11633 (eval_python_from_control_command): Delete.
11634 (source_python_script): Delete.
11635 (apply_val_pretty_printer): Delete.
11636 (apply_frame_filter): Delete.
11637 (preserve_python_values): Delete.
11638 (gdbpy_script_language_defn): Delete.
11639 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11640 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11642 * auto-load.c: #include "extension.h".
11643 (GDB_AUTO_FILE_NAME): Delete.
11644 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11645 (script_language_gdb): Delete, moved to extension.c and renamed to
11646 extension_language_gdb.
11647 (source_gdb_script_for_objfile): Delete.
11648 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11649 (loaded_script): Change type of language member to
11650 struct extension_language_defn *.
11651 (init_loaded_scripts_info): Initialize
11652 unsupported_script_warning_printed.
11653 (maybe_add_script): Make static. Change type of language arg to
11654 struct extension_language_defn *.
11655 (clear_section_scripts): Reset unsupported_script_warning_printed.
11656 (auto_load_objfile_script_1): Rewrite to use extension language API.
11657 (auto_load_objfile_script): Make public. Remove support-compiled-in
11658 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11659 (source_section_scripts): Rewrite to use extension language API.
11660 (load_auto_scripts_for_objfile): Rewrite to use
11661 auto_load_scripts_for_objfile.
11662 (collect_matching_scripts_data): Change type of language member to
11663 struct extension_language_defn *.
11664 (auto_load_info_scripts): Change type of language arg to
11665 struct extension_language_defn *.
11666 (unsupported_script_warning_print): New function.
11667 (script_not_found_warning_print): Make static.
11668 (_initialize_auto_load): Rewrite construction of scripts-directory
11670 * auto-load.h (struct objfile): Add forward decl.
11671 (struct script_language): Delete.
11672 (struct auto_load_pspace_info): Add forward decl.
11673 (struct extension_language_defn): Add forward decl.
11674 (maybe_add_script): Delete.
11675 (auto_load_objfile_script): Declare.
11676 (script_not_found_warning_print): Delete.
11677 (auto_load_info_scripts): Update prototype.
11678 (auto_load_gdb_scripts_enabled): Declare.
11679 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11680 auto_load_python_scripts_enabled and made public.
11681 (script_language_python): Delete, moved to python.c.
11682 (gdbpy_script_language_defn): Delete.
11683 (info_auto_load_python_scripts): Update to use
11684 extension_language_python.
11686 * breakpoint.c (condition_command): Replace call to
11687 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11688 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11689 with call to breakpoint_ext_lang_cond_says_stop.
11690 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11691 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11692 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11693 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11695 (local_setattro): Print name of extension language with existing
11698 * valprint.c (val_print, value_print): Update to call
11699 apply_ext_lang_val_pretty_printer.
11700 * cp-valprint.c (cp_print_value): Update call to
11701 apply_ext_lang_val_pretty_printer.
11702 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11703 (gdbpy_apply_val_pretty_printer): Renamed from
11704 apply_val_pretty_printer. New arg extlang.
11705 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11707 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11708 extension language API.
11709 * cli/cli-script.c (execute_control_command): Update to call
11710 eval_ext_lang_from_control_command.
11712 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11713 enum ext_lang_bt_status values. Update call to
11714 apply_ext_lang_frame_filter.
11715 (mi_cmd_stack_list_locals): Ditto.
11716 (mi_cmd_stack_list_args): Ditto.
11717 (mi_cmd_stack_list_variables): Ditto.
11718 * mi/mi-main.c: Delete #include "python/python-internal.h".
11719 Add #include "extension.h".
11720 (mi_cmd_list_features): Replace reference to python internal variable
11721 gdb_python_initialized with call to ext_lang_initialized_p.
11723 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11724 Update to use enum ext_lang_frame_args. Update to call
11725 apply_ext_lang_frame_filter.
11726 * python/py-framefilter.c (extract_sym): Update to use enum
11727 ext_lang_bt_status.
11728 (extract_value, py_print_type, py_print_value): Ditto.
11729 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11730 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11731 (py_print_frame): Ditto.
11732 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11733 New arg extlang. Update to use enum ext_lang_bt_status.
11735 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11736 finish_python_initialization. Replace with call to
11737 finish_ext_lang_initialization.
11739 * typeprint.c (do_free_global_table): Update to call
11740 free_ext_lang_type_printers.
11741 (create_global_typedef_table): Update to call
11742 start_ext_lang_type_printers.
11743 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11744 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11745 (type_print_options): Change type of global_printers from "void *"
11746 to "struct ext_lang_type_printers *".
11748 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11749 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11750 (gdbpy_preserve_values): Renamed from preserve_python_values.
11752 (!HAVE_PYTHON, preserve_python_values): Delete.
11754 * utils.c (quit_flag): Delete, moved to extension.c.
11755 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11758 * eval.c: Delete #include "python/python.h".
11759 * main.c: Delete #include "python/python.h".
11761 * defs.h: Update comment.
11763 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11767 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11769 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11772 2014-02-05 Yao Qi <yao@codesourcery.com>
11774 * remote.c (remote_pass_signals): Remove local 'buf' and use
11776 (remote_program_signals): Likewise.
11778 2014-02-05 Yao Qi <yao@codesourcery.com>
11780 * ctf.c: Include "inferior.h" and "gdbthread.h".
11781 (CTF_PID): A new macro.
11782 (ctf_open): Call inferior_appeared and add_thread_silent.
11783 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11784 (ctf_thread_alive): New function.
11785 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11787 2014-02-05 Yao Qi <yao@codesourcery.com>
11791 2013-05-24 Yao Qi <yao@codesourcery.com>
11793 * tracepoint.c (TFILE_PID): Remove.
11794 (tfile_open): Don't add thread and inferior.
11795 (tfile_close): Don't set 'inferior_ptid'. Don't call
11796 exit_inferior_silent.
11797 (tfile_thread_alive): Remove.
11798 (init_tfile_ops): Don't set field 'to_thread_alive' of
11801 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11803 * remote.c (remote_start_remote): Call remote_check_symbols even
11804 if only symbol-file (not file) has been given.
11806 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11808 * gdbarch.sh (skip_entrypoint): New callback.
11809 * gdbarch.c, gdbarch.h: Regenerate.
11810 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11811 * infrun.c (fill_in_stop_func): Likewise.
11812 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11813 (ppc_elfv2_elf_make_msymbol_special): New function.
11814 (ppc_elfv2_skip_entrypoint): Likewise.
11815 (ppc_linux_init_abi): Install them for ELFv2.
11817 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11819 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11820 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11821 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11822 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11823 structures returned in GPRs.
11825 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11827 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11828 offset to the stack parameter list for the ELFv2 ABI.
11830 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11832 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11833 set_gdbarch_convert_from_func_ptr_addr and
11834 set_gdbarch_elf_make_msymbol_special for ELFv1.
11835 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11836 function descriptors on ELFv1.
11837 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11838 set up r12 at function entry.
11840 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11842 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11843 (struct gdbarch_tdep): New member elf_abi.
11845 * rs6000-tdep.c: Include "elf/ppc64.h".
11846 (rs6000_gdbarch_init): Detect ELF ABI version.
11848 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11850 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11851 within a register pair holding a DFP 128-bit value on little-endian.
11852 (ppc64_sysv_abi_return_value_base): Likewise.
11853 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11854 (dfp_pseudo_register_write): Likewise.
11856 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11858 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11859 offset on little-endian when passing _Decimal32.
11860 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11862 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11864 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11865 of the overlapped FP register within the VSX register on little-
11867 (efpr_pseudo_register_write): Likewise.
11869 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11871 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11872 offset on little-endian when passing small structures.
11874 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11876 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11877 (struct ppc64_sysv_argpos): New data structure.
11878 (ppc64_sysv_abi_push_float): Remove.
11879 (ppc64_sysv_abi_push_val): New function.
11880 (ppc64_sysv_abi_push_integer): Likewise.
11881 (ppc64_sysv_abi_push_freg): Likewise.
11882 (ppc64_sysv_abi_push_vreg): Likewise.
11883 (ppc64_sysv_abi_push_param): Likewise.
11884 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11885 (ppc64_sysv_abi_return_value_base): New function.
11886 (ppc64_sysv_abi_return_value): Refactor to use it.
11888 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11890 * NEWS: Document new target powerpc64le-*-linux*.
11892 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11894 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11895 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11897 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11898 register set used in ELF core dumps. Add floating-point register set.
11900 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11902 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11903 dwarf2_to_gdb[] table using symbolic constants. Adjust
11904 penultimate entry from number representing the PC register
11905 to symbolic constant representing the MDR register. Add
11906 constant for the PC register to the end of the table.
11908 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11910 * bsd-kvm.c: Include <sys/param.h>
11912 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11914 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11916 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11918 * ada-lang.h (clear_ada_sym_cache): Delete.
11920 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11922 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11924 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11926 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11927 the sigreturn register save area only if the syscall is
11930 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11932 * valops.c (value_slice): Minor reformatting.
11934 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11936 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11938 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11940 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11941 New static globals.
11942 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11943 (ada_ignore_descriptive_types_p): New static global.
11944 (find_parallel_type_by_descriptive_type): Return immediately
11945 if ada_ignore_descriptive_types_p is set.
11946 (_initialize_ada_language): Register new commands "maintenance
11947 set ada", "maintenance show ada", "maintenance set ada
11948 ignore-descriptive-types" and "maintenance show ada
11949 ignore-descriptive-types".
11950 * NEWS: Add entry for new "maint ada set/show
11951 ignore-descriptive-types" commands.
11953 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11955 * record-btrace.c (record_btrace_close): Call btrace_teardown
11958 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11960 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11963 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11965 * ada-typeprint (type_is_full_subrange_of_target_type):
11967 (print_range): Add parameter bounds_prefered_p. If not set,
11968 try printing range types using the name of their base type.
11969 (print_range_type): Add parameter bounds_prefered_p.
11970 Use it in call to print_range.
11971 (print_array_type, ada_print_type): Update calls to print_range
11972 and print_range_type.
11974 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11976 * ada-typeprint.c (print_array_type, print_choices, print_range)
11977 (print_range_bound, print_dynamic_range_bound, print_range_type):
11978 Remove declaration.
11980 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11982 * ada-typeprint.c (print_range): Add missing empty line
11983 after local declaration.
11985 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11987 * ada-valprint.c (print_optional_low_bound): Get index_type's
11988 target type for as long as it is a TYPE_CODE_RANGE.
11990 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11992 * procfs.c (procfs_make_note_section): Remove assertion and
11993 associated comment.
11995 2014-01-24 Yao Qi <yao@codesourcery.com>
11997 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11998 * corelow.c (get_core_siginfo): Likewise.
12000 2014-01-24 Yao Qi <yao@codesourcery.com>
12002 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12003 ULONGEST. Don't check 'len' is negative.
12004 (remote_write_bytes): Change type of 'len' to ULONGEST.
12006 2014-01-23 Tom Tromey <tromey@redhat.com>
12009 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12010 Handle exception from frame.block.
12011 (FrameVars.fetch_frame_locals): Likewise.
12013 2014-01-23 Tom Tromey <tromey@redhat.com>
12016 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12017 on a NULL pointer. Move "goto error" to correct place.
12019 2014-01-23 Tom Tromey <tromey@redhat.com>
12022 * python/py-framefilter.c (apply_frame_filter): Call
12023 ensure_python_env after computing gdbarch.
12025 2014-01-23 Yao Qi <yao@codesourcery.com>
12027 * target.c (raw_memory_xfer_partial): Change argument type
12028 from void * to gdb_byte *.
12029 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12031 2014-01-22 Doug Evans <dje@google.com>
12033 New gdbserver option --debug-format=timestamp.
12034 * NEWS: Mention it.
12036 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12038 * syscalls/s390x-linux.xml: New file.
12039 * syscalls/s390-linux.xml: New file.
12040 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12041 (XML_SYSCALL_FILENAME_S390X): Likewise.
12042 (op_svc): New enum value for SVC opcode.
12043 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12044 (s390_linux_get_syscall_number): New function.
12045 (s390_gdbarch_init): Register '*get_syscall_number' and the
12046 syscall xml file name.
12047 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12048 "s390-linux.xml" and "s390x-linux.xml".
12049 * NEWS: Announce new feature.
12051 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12053 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12055 2014-01-22 Pedro Alves <palves@redhat.com>
12057 * xtensa-config.c: Include defs.h.
12059 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12061 * common/common-utils.h: Add "ARI:" comment beside __func__
12064 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12066 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12067 documentation a bit.
12069 2014-01-21 Roland McGrath <mcgrathr@google.com>
12071 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12072 * configure: Regenerate.
12073 * aclocal.m4: Regenerate.
12074 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12075 New substituted variables.
12076 (install-strip): New target.
12077 (INSTALL_SCRIPT): New substituted variable.
12078 (FLAGS_TO_PASS): Add it.
12079 (install-only): Use $(INSTALL_SCRIPT) rather than
12080 $(INSTALL_PROGRAM) for gcore.
12082 2014-01-20 Tom Tromey <tromey@redhat.com>
12084 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12087 2014-01-20 Tom Tromey <tromey@redhat.com>
12089 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12090 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12091 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12092 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12093 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12094 (struct cmd_list_element) <flags>: Remove.
12095 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12096 doc_allocated>: New fields.
12097 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12099 * maint.c (maintenance_do_deprecate): Update.
12100 * top.c (execute_command): Update.
12102 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12104 * xtensa-linux-nat.c: Include asm/ptrace.h.
12106 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12108 * Makefile.in (SFILES): Add d-support.c.
12109 (COMMON_OBS): Add d-support.o.
12110 * d-lang.h (d_parse_symbol): Add comment, now defined in
12112 * d-lang.c (parse_call_convention)
12113 (parse_attributes, parse_function_types)
12114 (parse_function_args, parse_type, parse_identifier)
12115 (call_convention_p, d_parse_symbol): Move functions to ...
12116 * d-support.c: ... New file.
12118 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12120 * d-lang.h (d_parse_symbol): Add declaration.
12121 * d-lang.c (extract_identifiers)
12122 (extract_type_info): Remove functions.
12123 (parse_call_convention, parse_attributes)
12124 (parse_function_types, parse_function_args)
12125 (parse_type, parse_identifier, call_convention_p)
12126 (d_parse_symbol): New functions.
12127 (d_demangle): Use d_parse_symbol to demangle D symbols.
12129 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12131 * d-lang.h (struct builtin_d_type): New data type.
12132 (builtin_d_type): Add declaration.
12133 * d-lang.c (d_language_arch_info, build_d_types)
12134 (builtin_d_type): New functions.
12135 (enum d_primitive_types): New data type.
12136 (d_language_defn): Change c_language_arch_info to
12137 d_language_arch_info.
12138 (d_type_data): New static variable.
12139 (_initialize_d_language): Initialize d_type_data.
12141 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12143 * d-lang.h (d_main_name): Add declaration.
12144 * d-lang.c (d_main_name): New function.
12145 * symtab.c (find_main_name): Add call to d_main_name.
12147 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12149 * d-lang.c (d_language_defn): Change macro_expansion_c to
12150 macro_expansion_no.
12152 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12154 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12156 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12158 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12159 gdb_exception" declaration.
12160 * remote.c (getpkt_or_notif_sane): Likewise.
12162 2014-01-17 Doug Evans <dje@google.com>
12164 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12165 function, contents of dirnames_to_char_ptr_vec_append moved here.
12166 (delim_string_to_char_ptr_vec): New function.
12167 (dirnames_to_char_ptr_vec_append): Rewrite.
12168 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12170 2014-01-17 Doug Evans <dje@google.com>
12172 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12174 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12175 #include "common-utils.h".
12176 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12177 * common/vec.h (VEC_ASSERT_PASS): Update.
12178 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12179 (MACH_CHECK_ERROR): Update.
12181 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12183 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12185 * gdbarch.h: Regenerate.
12187 2014-01-16 Tom Tromey <tromey@redhat.com>
12189 * value.c (struct value) <regnum>: Move earlier.
12191 2014-01-16 Tom Tromey <tromey@redhat.com>
12193 * remote.c (extended_remote_create_inferior): Rename from
12194 extended_remote_create_inferior_1. Add "ops" argument. Remove
12195 old implementation.
12197 2014-01-16 Pedro Alves <palves@redhat.com>
12199 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12200 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12203 2014-01-16 Doug Evans <dje@google.com>
12205 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12207 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12209 * btrace.h (btrace_thread_flag): New.
12210 (struct btrace_thread_info) <flags>: New.
12211 * record-btrace.c (record_btrace_resume_thread)
12212 (record_btrace_find_thread_to_move, btrace_step_no_history)
12213 (btrace_step_stopped, record_btrace_start_replaying)
12214 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12215 (record_btrace_find_resume_thread): New.
12216 (record_btrace_resume, record_btrace_wait): Extend.
12217 (record_btrace_can_execute_reverse): New.
12218 (record_btrace_open): Fail in non-stop mode.
12219 (record_btrace_set_replay): Split into this, ...
12220 (record_btrace_stop_replaying): ... this, ...
12221 (record_btrace_clear_histories): ... and this.
12222 (init_record_btrace_ops): Init to_can_execute_reverse.
12223 * NEWS: Announce it.
12225 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12227 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12228 (forward_target_decr_pc_after_break)
12229 (target_decr_pc_after_break): New.
12230 * target.c (forward_target_decr_pc_after_break)
12231 (target_decr_pc_after_break): New.
12232 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12233 instead of gdbarch_decr_pc_after_break.
12234 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12235 instead of gdbarch_decr_pc_after_break.
12236 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12237 instead of gdbarch_decr_pc_after_break.
12238 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12239 instead of gdbarch_decr_pc_after_break.
12240 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12241 instead of gdbarch_decr_pc_after_break.
12242 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12243 instead of gdbarch_decr_pc_after_break.
12245 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12247 * btrace.c: Include regcache.h.
12248 (btrace_add_pc): New.
12249 (btrace_enable): Call btrace_add_pc.
12250 (btrace_is_empty): New.
12251 * btrace.h (btrace_is_empty): New.
12252 * record-btrace.c (require_btrace, record_btrace_info): Call
12255 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12257 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12258 Support delta reads.
12259 (linux_disable_btrace): Change return type.
12260 * common/linux-btrace.h (linux_read_btrace): Change parameters
12261 and return type to allow error reporting. Update users.
12262 (linux_disable_btrace): Change return type. Update users.
12263 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12265 (btrace_error): New.
12266 (btrace_block) <begin>: Comment on BEGIN == 0.
12267 * btrace.c (btrace_compute_ftrace): Start from the end of
12269 (btrace_stitch_trace, btrace_clear_history): New.
12270 (btrace_fetch): Read delta trace, return if replaying.
12271 (btrace_clear): Move clear history code to btrace_clear_history.
12272 (parse_xml_btrace): Throw an error if parsing failed.
12273 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12274 and return type to allow error reporting.
12275 (target_read_btrace): Change parameters and return type to allow
12277 * target.c (target_read_btrace): Update.
12278 * remote.c (remote_read_btrace): Support delta reads. Pass
12280 * NEWS: Announce it.
12282 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12284 * record.h (record_btrace_frame_unwind)
12285 (record_btrace_tailcall_frame_unwind): New declarations.
12286 * dwarf2-frame: Include record.h
12287 (dwarf2_frame_cfa): Throw an error for btrace frames.
12288 * record-btrace.c: Include hashtab.h.
12289 (btrace_get_bfun_name): New.
12290 (btrace_call_history): Call btrace_get_bfun_name.
12291 (struct btrace_frame_cache): New.
12293 (bfcache_hash, bfcache_eq, bfcache_new): New.
12294 (btrace_get_frame_function): New.
12295 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12296 (record_btrace_frame_this_id): Compute own id.
12297 (record_btrace_frame_prev_register): Provide PC, throw_error
12298 for all other registers.
12299 (record_btrace_frame_sniffer): Detect btrace frames.
12300 (record_btrace_tailcall_frame_sniffer): New.
12301 (record_btrace_frame_dealloc_cache): New.
12302 (record_btrace_frame_unwind): Add new functions.
12303 (record_btrace_tailcall_frame_unwind): New.
12304 (_initialize_record_btrace): Allocate cache.
12305 * btrace.c (btrace_clear): Call reinit_frame_cache.
12306 * NEWS: Announce it.
12308 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12310 * record-btrace.c (record_btrace_set_replay)
12311 (record_btrace_goto_begin, record_btrace_goto_end)
12312 (record_btrace_goto): New.
12313 (init_record_btrace_ops): Initialize them.
12314 * NEWS: Announce it.
12316 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12318 * record-btrace.c (record_btrace_find_new_threads)
12319 (record_btrace_thread_alive): New.
12320 (init_record_btrace_ops): Initialize to_find_new_threads and
12323 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12325 * record-btrace.c (record_btrace_resume): New.
12326 (record_btrace_wait): New.
12327 (init_record_btrace_ops): Initialize to_wait and to_resume.
12329 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12331 * record-btrace.c (record_btrace_xfer_partial)
12332 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12333 (record_btrace_allow_memory_access): New.
12334 (init_record_btrace_ops): Initialize new methods.
12335 * target.c (raw_memory_xfer_partial): Bail out if target reports
12336 that this memory is not available.
12338 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12340 * target.h (target_ops) <to_insert_breakpoint>
12341 <to_remove_breakpoint>: Add target_ops parameter.
12342 (forward_target_insert_breakpoint): New.
12343 (forward_target_remove_breakpoint): New.
12344 (memory_remove_breakpoint, memory_insert_breakpoint):
12345 Add target_ops parameter.
12346 * target.c (target_insert_breakpoint): Split into this and ...
12347 (forward_target_insert_breakpoint): ... this.
12348 (target_remove_breakpoint): Split into this and ...
12349 (forward_target_remove_breakpoint): ... this.
12350 (debug_to_insert_breakpoint): Add target_ops parameter.
12351 Call forward_target_insert_breakpoint.
12352 (debug_to_remove_breakpoint): Add target_ops parameter.
12353 Call forward_target_remove_breakpoint.
12354 (update_current_target): Do not inherit or default to_insert_breakpoint
12355 and to_remove_breakpoint.
12356 * corelow.c (ignore): Add target_ops parameter.
12357 * exec.c (ignore): Add target_ops parameter.
12358 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12359 Add target_ops parameter.
12360 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12361 Add target_ops parameter.
12362 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12363 Add target_ops parameter.
12364 * record-full.c (record_full_beneath_to_insert_breakpoint)
12365 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12366 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12367 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12368 (record_full_core_remove_breakpoint): Add target_ops parameter.
12370 (record_full_beneath_to_insert_breakpoint_ops)
12371 (record_full_beneath_to_remove_breakpoint_ops)
12372 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12373 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12374 tmp_to_remove_breakpoint_ops,
12375 record_full_beneath_to_insert_breakpoint_ops, and
12376 record_full_beneath_to_remove_breakpoint_ops.
12377 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12378 (m32r_remove_breakpoint): Add target_ops parameter.
12379 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12380 Add target_ops parameter.
12381 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12382 Add target_ops parameter.
12384 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12385 Markus Metzger <markus.t.metzger@intel.com>
12387 * record-btrace.c: Include frame-unwind.h.
12388 (record_btrace_frame_unwind_stop_reason)
12389 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12390 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12392 (init_record_btrace_ops): Install it.
12394 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12396 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12399 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12401 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12404 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12406 * frame-unwind.c: Include target.h.
12407 (frame_unwind_try_unwinder): New function with code from ...
12408 (frame_unwind_find_by_frame): ... here. New variable
12409 unwinder_from_target, call also target_get_unwinder)
12410 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12411 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12412 * target.h (struct target_ops): New fields to_get_unwinder and
12413 to_get_tailcall_unwinder.
12414 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12416 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12418 * record-btrace.c (record_btrace_fetch_registers)
12419 (record_btrace_store_registers)
12420 (record_btrace_to_prepare_to_store): New.
12421 (init_record_btrace_ops): Add the above.
12423 2014-01-16 Tom Tromey <tromey@redhat.com>
12425 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12426 * target.h (struct target_ops) <to_prepare_to_store>: Add
12428 (target_prepare_to_store): Add argument.
12429 * target.c (debug_to_prepare_to_store): Add argument.
12430 (update_current_target): Update.
12431 * remote.c (remote_prepare_to_store): Add 'self' argument.
12432 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12433 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12434 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12435 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12437 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12438 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12439 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12440 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12441 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12443 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12445 * btrace.h (replay) <replay>: New.
12446 (btrace_is_replaying): New.
12447 * btrace.c (btrace_clear): Free replay iterator.
12448 (btrace_is_replaying): New.
12449 * record-btrace.c (record_btrace_is_replaying): New.
12450 (record_btrace_info): Print insn number if replaying.
12451 (record_btrace_insn_history): Start at replay position.
12452 (record_btrace_call_history): Start at replay position.
12453 (init_record_btrace_ops): Init to_record_is_replaying.
12455 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12457 * record-btrace.c (record_btrace_insn_history_range): Include
12459 (record_btrace_insn_history_from): Adjust range.
12460 (record_btrace_call_history_range): Include
12462 (record_btrace_call_history_from): Adjust range.
12463 * NEWS: Announce changes.
12465 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12467 * record.h (enum record_print_flag)
12468 <record_print_indent_calls>: New.
12469 * record.c (get_call_history_modifiers): Recognize /c modifier.
12470 (_initialize_record): Document /c modifier.
12471 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12472 Reorder fields. Optionally indent the function name. Update
12474 * NEWS: Announce changes.
12476 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12478 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12480 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12482 * btrace.c (ftrace_new_function): Start counting at one.
12483 * record-btrace.c (record_btrace_info): Adjust number of calls
12485 * NEWS: Announce it.
12487 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12489 * record-btrace.c (btrace_call_history_insn_range): Print
12490 insn range as [begin, end].
12492 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12494 * btrace.h (struct btrace_func_link): New.
12495 (enum btrace_function_flag): New.
12496 (struct btrace_inst): Rename to ...
12497 (struct btrace_insn): ...this. Update all users.
12498 (struct btrace_func) <ibegin, iend>: Remove.
12499 (struct btrace_func_link): New.
12500 (struct btrace_func): Rename to ...
12501 (struct btrace_function): ...this. Update all users.
12502 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12503 (number, level, flags>: New.
12504 (struct btrace_insn_iterator): Rename to ...
12505 (struct btrace_insn_history): ...this.
12507 (struct btrace_insn_iterator, btrace_call_iterator): New.
12508 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12509 (struct btrace_target_info) <begin, end, level>
12510 <insn_history, call_history>: New.
12511 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12512 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12513 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12514 (btrace_call_number, btrace_call_begin, btrace_call_end)
12515 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12516 (btrace_find_function_by_number, btrace_set_insn_history)
12517 (btrace_set_call_history): New.
12518 * btrace.c (btrace_init_insn_iterator)
12519 (btrace_init_func_iterator, compute_itrace): Remove.
12520 (ftrace_print_function_name, ftrace_print_filename)
12521 (ftrace_skip_file): Change
12522 parameter to const.
12523 (ftrace_init_func): Remove.
12524 (ftrace_debug): Use new btrace_function fields.
12525 (ftrace_function_switched): Also consider gaining and
12526 losing symbol information).
12527 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12528 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12529 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12531 (ftrace_new_function): Move. Remove debug print.
12532 (ftrace_update_lines, ftrace_update_insns): New.
12533 (ftrace_update_function): Check for call, ret, and jump.
12534 (compute_ftrace): Renamed to ...
12535 (btrace_compute_ftrace): ...this. Rewritten to compute call
12537 (btrace_fetch, btrace_clear): Updated.
12538 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12539 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12540 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12541 (btrace_call_number, btrace_call_begin, btrace_call_end)
12542 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12543 (btrace_find_function_by_number, btrace_set_insn_history)
12544 (btrace_set_call_history): New.
12545 * record-btrace.c (require_btrace): Use new btrace thread
12547 (record_btrace_info, btrace_insn_history)
12548 (record_btrace_insn_history, record_btrace_insn_history_range):
12549 Use new btrace thread info fields and new iterator.
12550 (btrace_func_history_src_line): Rename to ...
12551 (btrace_call_history_src_line): ...this. Use new btrace
12552 thread info fields.
12553 (btrace_func_history): Rename to ...
12554 (btrace_call_history): ...this. Use new btrace thread info
12555 fields and new iterator.
12556 (record_btrace_call_history, record_btrace_call_history_range):
12557 Use new btrace thread info fields and new iterator.
12559 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12561 * frame.h (frame_id_build_unavailable_stack_special): New.
12562 * frame.c (frame_id_build_unavailable_stack_special): New.
12564 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12566 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12567 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12568 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12570 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12571 (i386_insn_is_jump, i386_jmp_p): New.
12572 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12573 insn_is_jump to gdbarch.
12574 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12575 * gdbarch.h: Regenerated.
12576 * gdbarch.c: Regenerated.
12577 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12578 (default_insn_is_jump): New.
12579 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12580 (default_insn_is_jump): New.
12582 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12584 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12586 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12587 (btrace_read_type) <btrace_read_new>: Change to ...
12588 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12592 * common/linux-btrace.c (linux_read_btrace): Free trace from
12593 previous iteration.
12595 2014-01-15 Doug Evans <dje@google.com>
12597 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12600 2014-01-15 Tom Tromey <tromey@redhat.com>
12602 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12603 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12604 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12605 (set_objfile_main_name): New function.
12606 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12607 language_of_main>: New fields.
12608 (set_objfile_main_name): Declare.
12609 * symtab.c (find_main_name): Loop over objfiles to find the main
12611 (set_main_name): Now static.
12612 (get_main_info): Add comment.
12613 * symtab.h (set_main_name): Don't declare.
12615 2014-01-15 Tom Tromey <tromey@redhat.com>
12617 * symtab.c (main_progspace_key): New global.
12618 (struct main_info): New.
12619 (name_of_main, language_of_main): Remove.
12620 (get_main_info, main_info_cleanup): New function.
12621 (set_main_name, main_name, main_language): Use get_main_info.
12622 (_initialize_symtab): Initialize main_progspace_key.
12624 2014-01-15 Tom Tromey <tromey@redhat.com>
12626 * dbxread.c (process_one_symbol): Update.
12627 * dwarf2read.c (read_partial_die): Update.
12628 * symfile.c (set_initial_language): Call main_language.
12629 * symtab.c (language_of_main): Now static.
12630 (set_main_name): Add 'lang' parameter.
12631 (find_main_name): Update.
12632 (main_language): New function.
12633 (symtab_observer_executable_changed): Update.
12634 * symtab.h (set_main_name): Update.
12635 (language_of_main): Remove.
12636 (main_language): Declare.
12638 2014-01-15 Tom Tromey <tromey@redhat.com>
12640 * symfile.c (init_entry_point_info): Use new "initialized" field.
12642 * objfiles.h (struct entry_point) <initialized>: New field.
12643 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12644 (struct objfile) <ei>: ...here. Remove.
12645 * objfiles.c (entry_point_address_query): Update.
12647 2014-01-15 Tom Tromey <tromey@redhat.com>
12649 * objfiles.c (entry_point_address_query): Relocate entry point
12651 (objfile_relocate1): Do not relocate entry point address.
12652 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12653 <the_bfd_section_index>: New field.
12654 * symfile.c (init_entry_point_info): Find the entry point's
12657 2014-01-15 Tom Tromey <tromey@redhat.com>
12659 * solib-frv.c (enable_break): Use entry_point_address_query.
12661 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12663 * NEWS: Add note on improved process record-replay on
12664 arm*-linux* targets.
12666 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12668 * arm-tdep.c (enum arm_record_result): New enum.
12669 (arm_record_unsupported_insn): New function.
12670 (arm_record_coproc_data_proc): Removed.
12671 (thumb2_record_ld_st_multiple): New function.
12672 (thumb2_record_ld_st_dual_ex_tbb): New function.
12673 (thumb2_record_data_proc_sreg_mimm): New function.
12674 (thumb2_record_ps_dest_generic): New function.
12675 (thumb2_record_branch_misc_cntrl): New function.
12676 (thumb2_record_str_single_data): New function.
12677 (thumb2_record_ld_mem_hints): New function.
12678 (thumb2_record_ld_word): New function.
12679 (thumb2_record_lmul_lmla_div): New function.
12680 (thumb2_record_decode_insn_handler): New function.
12681 (decode_insn): Add thumb32 instruction handlers.
12683 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12685 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12686 (struct arm_linux_record_tdep): Declare.
12687 (arm_canonicalize_syscall): New function.
12688 (arm_all_but_pc_registers_record): New function.
12689 (arm_linux_syscall_record): New function.
12690 (arm_linux_init_abi): Add syscall recording constructs.
12691 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12692 decoding. (arm_record_coproc_data_proc): Update arm syscall
12694 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12695 <arm_syscall_record>: New field.
12696 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12699 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12701 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12702 register for push instruction recording.
12704 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12706 * arm-tdep.c (thumb_record_misc): Update to correct logical
12707 error while recording ldm, ldmia and pop instructions.
12709 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12711 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12713 2014-01-15 Pedro Alves <palves@redhat.com>
12715 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12716 (go32_resume, go32_fetch_registers, store_register)
12717 (go32_store_registers, go32_prepare_to_store)
12718 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12719 (go32_create_inferior, go32_can_run, go32_terminal_init)
12720 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12723 2014-01-15 Tom Tromey <tromey@redhat.com>
12725 * target.h (async_callback_ftype): New typedef.
12726 (struct target_ops) <to_async>: Use it.
12728 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12730 * python/py-value.c (get_field_type): Remove unnecessary curly
12731 braces for single-statement if block.
12733 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12735 * python/py-type.c (convert_field): Add missing empty line
12736 after declarations.
12738 2014-01-14 Doug Evans <dje@google.com>
12740 * symfile.h (expand_symtabs_matching): Renamed from
12741 expand_partial_symbol_names. Update prototype.
12742 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12743 * symfile.c (expand_symtabs_matching): Renamed from
12744 expand_partial_symbol_names. New args file_matcher, kind.
12745 Rename arg fun to symbol_matcher.
12746 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12747 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12748 ada_expand_partial_symbol_name.
12749 (ada_make_symbol_completion_list): Update to call
12750 expand_symtabs_matching.
12751 (ada_add_global_exceptions): Call expand_symtabs_matching.
12752 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12753 call map_symbol_filenames.
12754 * symtab.c (sources_info): Update to call map_symbol_filenames.
12755 (search_symbols): Call expand_symtabs_matching.
12756 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12757 (default_make_symbol_completion_list_break_on): Update to call
12758 expand_symtabs_matching.
12759 (make_source_files_completion_list): Update to call
12760 map_symbol_filenames.
12762 2014-01-14 Doug Evans <dje@google.com>
12764 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12765 (expand_symtabs_symbol_matcher_ftype): New typedef.
12766 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12767 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12768 * symfile.c (expand_partial_symbol_names): Update to use
12769 expand_symtabs_symbol_matcher_ftype.
12770 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12771 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12772 Arg name_matcher renamed to symbol_matcher.
12773 * psymtab.c (recursively_search_psymtabs): Update to use
12774 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12776 (expand_symtabs_matching_via_partial): Update to use
12777 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12778 Arg name_matcher renamed to symbol_matcher.
12780 2014-01-14 Doug Evans <dje@google.com>
12782 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12783 (map_partial_symbol_filenames): Ditto.
12784 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12785 (map_partial_symbol_filenames): Ditto.
12786 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12787 (map_partial_symbol_filenames): Ditto.
12788 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12789 (map_partial_symbol_filenames): Ditto.
12790 * symtab.c: Delete #include "psymtab.h".
12792 2014-01-14 Pedro Alves <palves@redhat.com>
12793 Tom Tromey <tromey@redhat.com>
12795 * infrun.c (use_displaced_stepping): Use find_record_target
12796 instead of RECORD_IS_USED.
12797 (adjust_pc_after_break): Use record_full_is_used instead of
12799 * record-btrace.c (record_btrace_open): Call record_preopen
12800 instead of checking RECORD_IS_USED.
12801 * record-full.c (record_full_shortname)
12802 (record_full_core_shortname): New globals.
12803 (record_full_is_used): New function.
12804 (find_full_open): Call record_preopen instead of checking
12806 (init_record_full_ops): Set the target's shortname to
12807 record_full_shortname.
12808 (init_record_full_core_ops): Set the target's shortname to
12809 record_full_core_shortname.
12810 * record-full.h (record_full_is_used): Declare.
12811 * record.c (find_record_target): Make extern.
12812 (record_preopen): New function.
12813 * record.h (RECORD_IS_USED): Delete macro.
12814 (find_record_target, record_preopen): Declare functions.
12816 2014-01-14 Yao Qi <yao@codesourcery.com>
12818 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12819 'len''s type to ULONGEST.
12820 (core_xfer_shared_libraries_aix): Likewise.
12821 * gdbarch.c, gdbarch.h: Regenerated.
12822 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12823 Change type of 'len' to ULONGEST.
12824 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12825 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12827 2014-01-14 Yao Qi <yao@codesourcery.com>
12829 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12830 type of 'len' to ULONGEST.
12831 (linux_xfer_osdata_processgroups): Likewise.
12832 (linux_xfer_osdata_threads): Likewise.
12833 (linux_xfer_osdata_fds): Likewise.
12834 (linux_xfer_osdata_isockets): Likewise.
12835 (linux_xfer_osdata_shm): Likewise.
12836 (linux_xfer_osdata_sem): Likewise.
12837 (linux_xfer_osdata_msg): Likewise.
12838 (linux_common_xfer_osdata): Likewise.
12839 (struct osdata_type) <getter>: Likewise.
12840 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12843 2014-01-14 Yao Qi <yao@codesourcery.com>
12845 * target.h (target_xfer_partial_ftype): Update.
12846 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12848 * aix-thread.c (aix_thread_xfer_partial): Change type of
12849 argument 'len' to ULONGEST.
12850 * auxv.c (procfs_xfer_auxv): Likewise.
12851 (ld_so_xfer_auxv): Likewise.
12852 (memory_xfer_auxv): Likewise.
12853 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12854 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12855 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12856 * corelow.c (core_xfer_partial): Likewise.
12857 * ctf.c (ctf_xfer_partial): Likewise.
12858 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12860 (darwin_read_dyld_info): Likewise.
12861 (darwin_xfer_partial): Likewise.
12862 * exec.c (section_table_xfer_memory_partial): Likewise.
12863 (exec_xfer_partial): Likewise.
12864 * exec.h (section_table_xfer_memory_partial): Update
12866 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12867 instead of plongest.
12868 (gnu_xfer_partial): Likewise.
12869 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12870 (ia64_hpux_xfer_solib_got): Likewise.
12871 (ia64_hpux_xfer_partial): Likewise.
12872 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12873 * inf-ptrace.c (inf_ptrace_xfer_partial):
12874 * inf-ttrace.c (inf_ttrace_xfer_partial):
12875 * linux-nat.c (linux_xfer_siginfo): Likewise.
12876 (linux_nat_xfer_partial): Likewise.
12877 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12878 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12879 * monitor.c (monitor_xfer_memory): Likewise.
12880 (monitor_xfer_partial): Likewise.
12881 * procfs.c (procfs_xfer_partial): Likewise.
12882 * record-full.c (record_full_xfer_partial): Likewise.
12883 (record_full_core_xfer_partial): Likewise.
12884 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12885 instead of plongest.
12886 (gdbsim_xfer_partial): Likewise.
12887 * remote.c (remote_xfer_partial): Likewise.
12888 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12889 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12891 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12892 (rs6000_xfer_shared_libraries): Likewise.
12893 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12894 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12895 (sparc_xfer_partial): Likewise.
12896 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12897 (spu_xfer_partial): Likewise.
12898 * spu-multiarch.c (spu_xfer_partial): Likewise.
12899 * target.c (target_read_live_memory): Likewise.
12900 (memory_xfer_live_readonly_partial): Likewise.
12901 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12902 (target_xfer_partial, default_xfer_partial): Likewise.
12903 (current_xfer_partial): Likewise.
12904 * tracepoint.c (tfile_xfer_partial): Likewise.
12905 * windows-nat.c (windows_xfer_memory): Likewise. Call
12906 pulongest instead of plongest.
12907 (windows_xfer_partial): Likewise.
12908 (windows_xfer_shared_libraries): Likewise.
12910 2014-01-14 Yao Qi <yao@codesourcery.com>
12912 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12913 target_xfer_partial_ftype.
12915 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12919 * valops.c (value_struct_elt_bitpos): New function
12920 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12921 object to 'None' if the field name is an empty string ("").
12922 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12923 attribute to look for a field when 'name' is 'None'.
12924 (get_field_type): New function
12926 2014-01-13 Doug Evans <dje@google.com>
12929 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12930 (try_open_dwop_file): Ditto.
12931 * gdb_bfd.c: #include "vec.h".
12932 (bfdp): New typedef.
12933 (struct gdb_bfd_data): New member included_bfds.
12934 (gdb_bfd_unref): Unref all included bfds.
12935 (gdb_bfd_record_inclusion): New function.
12936 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12938 2014-01-13 Tom Tromey <tromey@redhat.com>
12940 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12942 2014-01-13 Tom Tromey <tromey@redhat.com>
12944 * defs.h (use_windows): Remove.
12945 * gdb.c (main): Update.
12946 * main.c (captured_main, gdb_main): Update.
12947 * main.h (struct captured_main_args) <use_windows>: Remove.
12948 * top.c (use_windows): Remove.
12950 2014-01-13 Tom Tromey <tromey@redhat.com>
12952 * defs.h (deprecated_flush_hook): Remove.
12954 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12957 * linux-thread-db.c (try_thread_db_load): Add parameter
12958 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12959 (try_thread_db_load_from_pdir_1): Move it there from here.
12960 (try_thread_db_load_from_sdir): Update caller.
12961 (try_thread_db_load_from_dir): Move it there from here.
12963 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12965 * regformats/regdat.sh: Always rewrite the register file.
12967 2014-01-13 Pedro Alves <palves@redhat.com>
12969 * Makefile.in (CHECK_HEADERS): New variable.
12970 (check-headers:): New rule.
12972 2014-01-13 Tom Tromey <tromey@redhat.com>
12974 * cli/cli-setshow.c (do_set_command): Update.
12975 * defs.h (deprecated_set_hook): Remove.
12976 * top.c (deprecated_set_hook): Remove.
12978 2014-01-13 Pedro Alves <palves@redhat.com>
12980 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12981 the tracepoint if the PC is a pseudo-register.
12983 2014-01-13 Tom Tromey <tromey@redhat.com>
12985 * defs.h (XCALLOC): Remove.
12986 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12987 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12988 * dwarf2loc.c (allocate_piece_closure): Likewise.
12989 * elfread.c (elf_symfile_segments): Likewise.
12990 (elf_symfile_segments): Likewise.
12991 * gdbtypes.c (copy_type_recursive): Likewise.
12992 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12993 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12994 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12996 * mt-tdep.c (mt_gdbarch_init): Likewise.
12997 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12999 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13000 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13001 * registry.c (registry_alloc_data): Likewise.
13002 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13003 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13004 * serial.c (serial_fdopen_ops): Likewise.
13005 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13007 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13008 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13011 2014-01-13 Tom Tromey <tromey@redhat.com>
13013 * defs.h (XMALLOC): Remove.
13014 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13015 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13016 * cli-out.c (struct ui_out *): Likewise.
13017 * cli/cli-dump.c (add_dump_command): Likewise.
13018 (add_dump_command): Likewise.
13019 * complaints.c (get_complaints): Likewise.
13020 (find_complaint): Likewise.
13021 * dwarf2-frame.c (execute_cfa_program): Likewise.
13022 * dwarf2read.c (abbrev_table_read_table): Likewise.
13023 * gdbarch.sh: Likewise.
13024 * gdbarch.c: Rebuild.
13025 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13026 * interps.c (interp_new): Likewise.
13027 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13028 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13029 * mi/mi-console.c (mi_console_file_new): Likewise.
13030 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13031 * mi/mi-out.c (mi_out_new): Likewise.
13032 * mi/mi-parse.c (mi_parse): Likewise.
13033 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13034 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13035 * observer.c (xalloc_observer_list_node): Likewise.
13036 * regcache.c (regcache_xmalloc_1): Likewise.
13037 * reggroups.c (reggroup_new): Likewise.
13038 (_initialize_reggroup): Likewise.
13039 * registry.c (register_data_with_cleanup): Likewise.
13040 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13041 * ser-base.c (serial_ttystate): Likewise.
13042 * ser-mingw.c (make_pipe_state): Likewise.
13043 * ser-pipe.c (pipe_open): Likewise.
13044 * serial.c (serial_open): Likewise.
13045 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13046 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13047 (tui_alloc_win_info): Likewise.
13048 (tui_add_content_elements): Likewise.
13049 * tui/tui-file.c (tui_file_new): Likewise.
13050 * tui/tui-out.c (tui_out_new): Likewise.
13051 * ui-file.c (mem_file_new): Likewise.
13052 * ui-out.c (push_level): Likewise.
13053 (make_cleanup_ui_out_end): Likewise.
13054 (append_header_to_list): Likewise.
13055 (ui_out_new): Likewise.
13056 * user-regs.c (user_reg_add_builtin): Likewise.
13058 2014-01-13 Tom Tromey <tromey@redhat.com>
13060 * defs.h (XZALLOC): Remove.
13061 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13062 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13063 (get_ada_tasks_inferior_data): Likewise.
13064 * auto-load.c (get_auto_load_pspace_data): Likewise.
13065 * auxv.c (get_auxv_inferior_data): Likewise.
13066 * bfd-target.c (target_bfd_reopen): Likewise.
13067 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13068 (deprecated_insert_raw_breakpoint): Likewise.
13069 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13070 * corelow.c (core_open): Likewise.
13071 * darwin-nat.c (darwin_check_new_threads): Likewise.
13072 (darwin_attach_pid): Likewise.
13073 * dummy-frame.c (dummy_frame_push): Likewise.
13074 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13075 * dwarf2loc.c (allocate_piece_closure): Likewise.
13076 * elfread.c (elf_symfile_segments): Likewise.
13077 * eval.c (ptrmath_type_p): Likewise.
13078 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13079 * gdbtypes.c (alloc_type_arch): Likewise.
13080 (alloc_type_instance): Likewise.
13081 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13082 * inf-child.c (inf_child_can_use_agent): Likewise.
13083 * inflow.c (get_inflow_inferior_data): Likewise.
13084 * infrun.c (save_infcall_suspend_state): Likewise.
13085 * jit.c (jit_reader_load): Likewise.
13086 (get_jit_objfile_data): Likewise.
13087 (get_jit_program_space_data): Likewise.
13088 (jit_object_open_impl): Likewise.
13089 (jit_symtab_open_impl): Likewise.
13090 (jit_block_open_impl): Likewise.
13091 (jit_frame_sniffer): Likewise.
13092 * linux-fork.c (add_fork): Likewise.
13093 * maint.c (make_command_stats_cleanup): Likewise.
13094 * objfiles.c (get_objfile_pspace_data): Likewise.
13095 * opencl-lang.c (struct lval_closure): Likewise.
13096 * osdata.c (osdata_start_osdata): Likewise.
13097 * progspace.c (new_address_space): Likewise.
13098 (add_program_space): Likewise.
13099 * remote-sim.c (get_sim_inferior_data): Likewise.
13100 * sh-tdep.c (sh_gdbarch_init): Likewise.
13101 * skip.c (Ignore): Likewise.
13102 (skip_delete_command): Likewise.
13103 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13104 (library_list_start_library): Likewise.
13105 (solib_aix_current_sos): Likewise.
13106 * solib-darwin.c (get_darwin_info): Likewise.
13107 (darwin_current_sos): Likewise.
13108 * solib-dsbt.c (get_dsbt_info): Likewise.
13109 * solib-ia64-hpux.c (new_so_list): Likewise.
13110 (ia64_hpux_get_solib_linkage_addr): Likewise.
13111 * solib-spu.c (append_ocl_sos): Likewise.
13112 (spu_current_sos): Likewise.
13113 * solib-svr4.c (get_svr4_info): Likewise.
13114 (svr4_keep_data_in_core): Likewise.
13115 (library_list_start_library): Likewise.
13116 (svr4_default_sos): Likewise.
13117 (svr4_read_so_list): Likewise.
13118 * solib-target.c (library_list_start_library): Likewise.
13119 (solib_target_current_sos): Likewise.
13120 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13121 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13122 * symfile.c (default_symfile_segments): Likewise.
13123 * target-descriptions.c (tdesc_data_init): Likewise.
13124 (tdesc_create_reg): Likewise.
13125 (struct tdesc_type *): Likewise.
13126 (tdesc_create_vector): Likewise.
13127 (tdesc_set_struct_size): Likewise.
13128 (struct tdesc_type *): Likewise.
13129 (tdesc_free_feature): Likewise.
13130 (tdesc_create_feature): Likewise.
13131 * windows-nat.c (windows_add_thread): Likewise.
13132 (windows_make_so): Likewise.
13133 * xml-support.c (gdb_xml_body_text): Likewise.
13134 (gdb_xml_create_parser_and_cleanup): Likewise.
13135 (xml_process_xincludes): Likewise.
13136 * xml-syscall.c (allocate_syscalls_info): Likewise.
13137 (syscall_create_syscall_desc): Likewise.
13139 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13141 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13142 function, with code from i386_stap_parse_special_token.
13143 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13144 (i386_stap_parse_special_token): Move code to the two functions
13145 above; simplify it.
13147 2014-01-09 Pedro Alves <palves@redhat.com>
13148 Hui Zhu <hui@codesourcery.com>
13151 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13152 bp_err_string. Don't mark the location shlib_disabled if the
13153 error thrown wasn't a generic or memory error. Catch errors
13154 thrown while inserting breakpoints in overlayed code. Output
13155 error message of software breakpoints.
13156 * remote.c (remote_insert_breakpoint): If this breakpoint has
13157 target-side commands but this stub doesn't support Z0 packets,
13158 throw NOT_SUPPORTED_ERROR error.
13159 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13160 * target.h (target_insert_breakpoint): Extend comment.
13161 (target_insert_hw_breakpoint): Add comment.
13163 2014-01-08 Pedro Alves <palves@redhat.com>
13165 * remote.c (remote_add_thread): Add threads silently if starting
13167 (remote_notice_new_inferior): If in all-stop, and starting up,
13168 don't call notice_new_inferior.
13169 (get_current_thread): New function, factored out from ...
13170 (add_current_inferior_and_thread): ... this. Adjust.
13171 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13172 found any thread, then select the remote's current thread as GDB's
13173 current thread too.
13175 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13177 * NEWS: Create a new section for the next release branch.
13178 Rename the section of the current branch, now that it has
13181 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13183 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13184 * version.in: Bump version to 7.7.50.DATE-cvs.
13186 2014-01-08 Yao Qi <yao@codesourcery.com>
13188 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13189 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13190 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13192 2014-01-08 Yao Qi <yao@codesourcery.com>
13194 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13195 return value of bfd_get_filename to symbol_file_add_from_bfd.
13197 2014-01-08 Pierre Muller <muller@sourceware.org>
13200 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13201 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13202 to prim_record_mininal_symbol_and_info.
13203 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13204 in call to prim_record_minimal_symbol_and_info.
13205 (read_pe_exported_syms): Set index field of section_data.
13207 2014-01-07 Andrew Pinski <apinski@cavium.com>
13209 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13210 * features/aarch64.c: Regenerate.
13212 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13214 * target.c (return_null): Define.
13215 (update_current_target): Use it instead of return_zero for
13216 functions that return a pointer.
13218 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13220 * source.c (add_path): Fix check for duplicated paths in the previously
13223 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13225 * ada-lang.c: Remove duplicated include statements.
13226 * alphabsd-nat.c: Ditto.
13227 * amd64-darwin-tdep.c: Ditto.
13228 * amd64fbsd-nat.c: Ditto.
13229 * auto-load.c: Ditto.
13231 * breakpoint.c: Ditto.
13232 * dbxread.c: Ditto.
13233 * fork-child.c: Ditto.
13234 * gdb_usleep.c: Ditto.
13235 * i386-darwin-tdep.c: Ditto.
13236 * i386fbsd-nat.c: Ditto.
13238 * inferior.c: Ditto.
13239 * jv-lang.c: Ditto.
13240 * linux-nat.c: Ditto.
13241 * linux-tdep.c: Ditto.
13242 * m68kbsd-nat.c: Ditto.
13243 * m68klinux-nat.c: Ditto.
13244 * microblaze-tdep.c: Ditto.
13245 * mips-linux-tdep.c: Ditto.
13246 * mn10300-tdep.c: Ditto.
13247 * nto-tdep.c: Ditto.
13248 * opencl-lang.c: Ditto.
13250 * printcmd.c: Ditto.
13251 * regcache.c: Ditto.
13252 * remote-m32r-sdi.c: Ditto.
13254 * symfile.c: Ditto.
13256 * tilegx-linux-nat.c: Ditto.
13257 * tilegx-tdep.c: Ditto.
13258 * tracepoint.c: Ditto.
13260 * vaxbsd-nat.c: Ditto.
13261 * windows-nat.c: Ditto.
13262 * xtensa-tdep.c: Ditto.
13264 2014-01-07 Yao Qi <yao@codesourcery.com>
13266 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13268 2014-01-07 Yao Qi <yao@codesourcery.com>
13269 Joel Brobecker <brobecker@adacore.com>
13271 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13272 (pdc_write_regs): Likewise.
13273 (fetch_regs_kernel_thread): Likewise.
13274 (store_regs_kernel_thread): Likewise.
13276 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13278 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13279 tagged type objects to their actual type.
13281 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13283 * ada-valprint.c (print_field_values): Add "language" parameter.
13284 Update calls to print_field_values and print_variant_part.
13285 Pass new parameter "language" in call to val_print instead
13286 of "current_language". Replace call to ada_val_print by call
13288 (print_variant_part): Add "language" parameter.
13289 (ada_val_print_struct_union): Update call to print_field_values.
13291 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13293 * ada-valprint.c (ui_memcpy): Delete.
13294 (ada_print_floating): Update documentation. Add empty line
13295 between between function documentation and implementation.
13296 Delete variable "buffer". Use ui_file_xstrdup in place of
13297 ui_file_put. Minor adjustments following this change.
13299 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13301 * ada-valprint.c (ada_val_print_string): New function,
13302 extracted from ada_val_print_array.
13303 (ada_val_print_array): Replace extracted code by call
13304 to ada_val_print_string followed by a return. Move
13305 "else" branch to the function's top block.
13307 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13309 * ada-valprint.c (ada_val_print_array): Move implementation
13310 down. Rename parameter "offset" and "val" into "offset_aligned"
13311 and "original_value" respectively. Add parameter "offset".
13313 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13315 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13316 re-organizing the code. Change the "???" message printed
13317 when target type is a TYPE_CODE_UNDEF into
13318 "<ref to undefined type>".
13320 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13322 * ada-valprint.c (print_record): Delete, implementation inlined...
13323 (ada_val_print_struct_union): ... here. Remove call to
13324 ada_check_typedef in inlined implementation.
13326 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13328 * ada-valprint.c (ada_val_print_gnat_array): New function,
13329 extracted from ada_val_print_1;
13330 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13331 (ada_val_print_flt, ada_val_print_struct_union)
13332 (ada_val_print_ref): Likewise.
13333 (ada_val_print_1): Delete variables i and elttype.
13334 Replace extracted-out code by call to corresponding
13337 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13339 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13341 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13343 * ada-valprint.c (ada_val_print_1): Replace calls to
13344 ada_val_print_1 by calls to val_print.
13346 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13348 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13349 Update calls to self accordingly. Replace calls to c_val_print
13350 by calls to val_print.
13352 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13354 * ada-valprint.c (print_record): Delete declaration.
13355 (adjust_type_signedness, ada_val_print_1): Likewise.
13356 (ada_val_print): Move function implementation down.
13357 (print_variant_part, print_field_values, print_record):
13358 Move function implementation up.
13360 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13362 * python/py-type.c (typy_get_name): New function.
13363 (type_object_getset): Add entry for attribute "name".
13364 * NEWS: Add entry mentioning this new attribute.
13366 2014-01-07 Yao Qi <yao@codesourcery.com>
13368 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13371 2014-01-07 Yao Qi <yao@codesourcery.com>
13373 * gnu-nat.c (info_port_rights): Add qualifier const to
13376 2014-01-07 Yao Qi <yao@codesourcery.com>
13378 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13380 2014-01-07 Yao Qi <yao@codesourcery.com>
13382 * gnu-nat.c (make_inf) Update declaration.
13383 (make_inf): Make it static.
13384 (inf_set_traced): Likewise.
13385 (inf_port_to_thread, inf_task_died_status): Likewise.
13387 2014-01-07 Yao Qi <yao@codesourcery.com>
13389 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13391 2014-01-07 Yao Qi <yao@codesourcery.com>
13393 * gnu-nat.c (_initialize_gnu_nat): Declare.
13395 2014-01-07 Yao Qi <yao@codesourcery.com>
13397 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13399 (struct gdbarch_info) <byte_order>: Change type to
13401 <byte_order_for_code>: Likewise.
13402 * gdbarch.c, gdbarch.h: Regenerated.
13404 2014-01-06 Sasha Smundak <asmundak@google.com>
13406 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13408 2014-01-06 Tom Tromey <tromey@redhat.com>
13410 * doublest.c (convert_doublest_to_floatformat): Use const, not
13412 * somread.c (som_symtab_read): Likewise.
13414 2014-01-07 Hui Zhu <hui@codesourcery.com>
13416 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13417 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13418 (gdb_bfd_fopen): Ditto.
13419 (gdb_bfd_openr): Ditto.
13420 (gdb_bfd_openw): Ditto.
13421 (gdb_bfd_openr_iovec): Ditto.
13422 (gdb_bfd_fdopenr): Ditto.
13423 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13424 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13426 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13428 * symfile-mem.c (symbol_file_add_from_memory): Removed
13429 gdb_bfd_stash_filename.
13431 2014-01-03 Doug Evans <dje@google.com>
13433 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13436 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13438 Update year range in copyright notice of all files.
13440 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13442 * top.c (print_gdb_version): Set copyright year to 2014.
13444 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13446 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13448 For older changes see ChangeLog-2013.
13454 version-control: never