gdb/regformats: Don't build .dat files that aren't used by GDBserver
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-10-01 Pedro Alves <palves@redhat.com>
2
3 * features/Makefile (WHICH): Remove arm-with-m,
4 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
5
6 2014-10-01 Pedro Alves <palves@redhat.com>
7
8 * features/Makefile (clean): New rule.
9
10 2014-10-01 Pedro Alves <palves@redhat.com>
11
12 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
13 (zmm14h): Add missing end quotes.
14
15 2014-10-01 Pedro Alves <palves@redhat.com>
16
17 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
18 * features/aarch64.c: Regenerate.
19
20 2014-09-30 Don Breazeal <donb@codesourcery.com>
21
22 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
23 code so as to work with follow_fork_inferior.
24 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
25 (inf_ttrace_create_inferior): Remove reference to
26 inf_ttrace_vfork_ppid.
27 (inf_ttrace_attach): Ditto.
28 (inf_ttrace_detach): Ditto.
29 (inf_ttrace_kill): Use current_inferior instead of
30 inf_ttrace_vfork_ppid.
31 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
32 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
33 inferior away from the parent.
34 * infrun.c (follow_fork): Call follow_fork_inferior instead of
35 target_follow_fork.
36 (follow_fork_inferior): New function.
37 (follow_inferior_reset_breakpoints): Make function static.
38 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
39 * linux-nat.c (linux_child_follow_fork): Move target-independent
40 code to infrun.c:follow_fork_inferior.
41
42 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
43
44 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
45 * gdbarch.c: Regenerate.
46 * gdbarch.h: Likewise.
47 * corelow.c (sniff_core_bfd): Drop presence check for deleted
48 gdbarch method 'regset_from_core_section'.
49 (get_core_register_section): Remove handling for the case that
50 regset == NULL and regset_from_core_section is defined.
51 (get_core_registers): Drop check for deleted method.
52 * procfs.c (procfs_do_thread_registers): Adjust comment.
53
54 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
55
56 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
57 (linux_nat_make_corefile_notes): Remove.
58 (linux_target_install_ops): Do not set target method
59 'make_corefile_notes'.
60 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
61 Remove field.
62 (linux_corefile_thread_callback): Instead of args->collect, call
63 linux_collect_thread_registers.
64 (linux_make_corefile_notes): Remove 'collect' parameter. Return
65 NULL unless there is a regset iterator.
66 (linux_make_corefile_notes_1): Remove.
67 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
68 by linux_make_corefile_notes.
69 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
70
71 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
72
73 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
74 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
75 Remove.
76 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
77
78 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
79
80 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
81 (xtensa_iterate_over_regset_sections): New.
82 (xtensa_gdbarch_init): Adjust gdbarch initialization.
83
84 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
85
86 * vax-tdep.c (vax_regset_from_core_section): Remove.
87 (vax_iterate_over_regset_sections): New.
88 (vax_gdbarch_init): Adjust gdbarch initialization.
89
90 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
91
92 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
93 (tilegx_regset_from_core_section): Remove.
94 (tilegx_iterate_over_regset_sections): New.
95 (tilegx_linux_init_abi): Adjust gdbarch initialization.
96
97 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
98
99 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
100 (sparc_iterate_over_regset_sections): New.
101 (sparc32_gdbarch_init): Adjust gdbarch initialization.
102 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
103 targets.
104 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
105 (sparc64fbsd_init_abi): Call fbsd_init_abi.
106 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
107 target method 'make_corefile_notes'.
108
109 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
110
111 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
112 'sizeof_gregset' and 'sizeof_fpregset'.
113 * sh-tdep.c (sh_regset_from_core_section): Remove.
114 (sh_iterate_over_regset_sections): New.
115 (sh_gdbarch_init): Adjust gdbarch initialization.
116 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
117 sizeof_fpregset.
118 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
119 'sizeof_gregset'.
120
121 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
122
123 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
124 (score7_linux_iterate_over_regset_sections): New.
125 (score_gdbarch_init): Adjust gdbarch initialization.
126
127 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
128
129 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
130 FreeBSD targets.
131 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
132 method 'make_corefile_notes'.
133 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
134 (ppcfbsd_regset_from_core_section): Remove.
135 (ppcfbsd_iterate_over_regset_sections): New.
136 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
137 initialization.
138 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
139 (ppcnbsd_iterate_over_regset_sections): New.
140 (ppcnbsd_init_abi): Adjust.
141 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
142 (ppcobsd_iterate_over_regset_sections): New.
143 (ppcobsd_init_abi): Adjust.
144 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
145 (rs6000_aix_iterate_over_regset_sections): New.
146 (rs6000_aix_init_osabi): Adjust.
147
148 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
149
150 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
151 (nios2_regset_from_core_section): Remove.
152 (nios2_iterate_over_regset_sections): New.
153 (nios2_linux_init_abi): Adjust gdbarch initialization.
154
155 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
156
157 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
158 (am33_iterate_over_regset_sections): New.
159 (am33_linux_init_osabi): Adjust gdbarch initialization.
160
161 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
162
163 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
164 (mips_linux_iterate_over_regset_sections): New.
165 (mips_linux_init_abi): Adjust gdbarch initialization.
166 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
167 (mips64obsd_iterate_over_regset_sections): New.
168 (mips64obsd_init_abi): Adjust.
169 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
170 (mipsnbsd_iterate_over_regset_sections): New.
171 (mipsnbsd_init_abi): Adjust.
172
173 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
174
175 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
176 (m88k_iterate_over_regset_sections): New.
177 (m88k_gdbarch_init): Adjust gdbarch initialization.
178
179 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
180
181 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
182 (ia64_linux_iterate_over_regset_sections): New.
183 (ia64_linux_init_abi): Adjust gdbarch initialization.
184
185 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
186
187 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
188 (m68kbsd_iterate_over_regset_sections): New.
189 (m68kbsd_init_abi): Adjust gdbarch initialization.
190 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
191 (m68k_linux_iterate_over_regset_sections): New.
192 (m68k_linux_init_abi): Adjust gdbarch initialization.
193
194 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
195
196 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
197 (m32r_linux_regset_from_core_section): Remove.
198 (m32r_linux_iterate_over_regset_sections): New.
199 (m32r_linux_init_abi): Adjust gdbarch initialization.
200
201 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
202
203 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
204 (amd64obsd_iterate_over_regset_sections): New.
205 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
206 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
207 Remove.
208 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
209 regset_from_core_section initialization.
210 * i386-tdep.c (i386_regset_from_core_section): Remove.
211 (i386_iterate_over_regset_sections): New.
212 (i386_gdbarch_init): Adjust gdbarch initialization.
213 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
214 (i386_iterate_over_regset_sections): New prototype.
215 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
216 Remove.
217 (i386obsd_aout_iterate_over_regset_sections): New.
218 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
219 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
220 targets.
221 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
222 (amd64fbsd_init_abi): Call fbsd_init_abi.
223 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
224 (i386fbsd4_init_abi): Call fbsd_init_abi.
225 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
226 target method 'make_corefile_notes'.
227 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
228
229 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
230
231 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
232 (hppa_hpux_iterate_over_regset_sections): New.
233 (hppa_hpux_init_abi): Adjust gdbarch initialization.
234 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
235 (hppa_linux_iterate_over_regset_sections): New.
236 (hppa_linux_init_abi): Adjust.
237 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
238 (hppanbsd_iterate_over_regset_sections): New.
239 (hppanbsd_init_abi): Adjust.
240 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
241 (hppaobsd_iterate_over_regset_sections): New.
242 (hppaobsd_init_abi): Adjust.
243
244 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
245
246 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
247 (frv_linux_iterate_over_regset_sections): New.
248 (frv_linux_init_abi): Adjust gdbarch initialization.
249
250 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
251
252 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
253 (armbsd_iterate_over_regset_sections): New prototype.
254 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
255 (armbsd_iterate_over_regset_sections): New.
256 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
257 initialization.
258
259 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
260
261 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
262 (alpha_linux_iterate_over_regset_sections): New.
263 (alpha_linux_init_abi): Adjust gdbarch initialization.
264 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
265 prototype.
266 (alphanbsd_iterate_over_regset_sections): New prototype.
267
268 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
269
270 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
271 Remove.
272 (aarch64_linux_iterate_over_regset_sections): New.
273 (aarch64_linux_init_abi): Adjust gdbarch initialization.
274
275 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
276
277 * fbsd-tdep.c: New file.
278 * fbsd-tdep.h: New file.
279 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
280 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
281 (ALLDEPFILES): Add fbsd-tdep.c.
282
283 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
284
285 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
286 parameter.
287 * gdbarch.h: Regenerate.
288 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
289 iterator.
290 (get_core_register_section): Add parameter 'regset' and use it, if
291 set. Add parameter 'min_size' and verify the bfd section size
292 against it.
293 (get_core_registers_cb): Add parameter 'regset' and pass it to
294 get_core_register section. For the "standard" register sections
295 ".reg" and ".reg2", set an appropriate default for human_name.
296 (get_core_registers): Don't abort when the gdbarch has an iterator
297 but no regset_from_core_section. Add NULL/0 for parameters
298 'regset'/'min_size' in calls to get_core_register_section.
299 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
300 'regset' and use it instead of calling the
301 regset_from_core_section gdbarch method.
302 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
303 * i386-tdep.c (i386_supply_xstateregset)
304 (i386_collect_xstateregset, i386_xstateregset): Moved to
305 i386-linux-tdep.c.
306 (i386_regset_from_core_section): Drop handling for .reg-xfp and
307 .reg-xstate.
308 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
309 core file support only if the regset iterator hasn't been set.
310 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
311 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
312 Moved from i386-tdep.c and renamed to *_linux*.
313 (i386_linux_iterate_over_regset_sections): Add regset parameter to
314 each callback invocation. Allow any .reg-xstate size when reading
315 from a core file.
316 * amd64-tdep.c (amd64_supply_xstateregset)
317 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
318 amd64-linux-tdep.c.
319 (amd64_regset_from_core_section): Remove.
320 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
321 install an amd64-specific regset_from_core_section gdbarch method.
322 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
323 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
324 Moved from amd64-tdep.c and renamed to *_linux*.
325 (amd64_linux_iterate_over_regset_sections): Add regset parameter
326 to each callback invocation. Allow any .reg-xstate size when
327 reading from a core file.
328 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
329 (arm_linux_iterate_over_regset_sections): Add regset parameter to
330 each callback invocation.
331 (arm_linux_init_abi): No longer set the regset_from_core_section
332 gdbarch method.
333 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
334 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
335 each callback invocation.
336 (ppc_linux_init_abi): No longer set the regset_from_core_section
337 gdbarch method.
338 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
339 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
340 (s390_regset_from_core_section): Remove.
341 (s390_iterate_over_regset_sections): Add regset parameter to each
342 callback invocation.
343 (s390_gdbarch_init): No longer set the regset_from_core_section
344 gdbarch method. Drop initialization of deleted tdep fields.
345
346 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
347
348 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
349 (amd64_linux_iterate_over_regset_sections): New.
350 (amd64_linux_init_abi_common): Don't install the regset section
351 list, but the new iterator in gdbarch.
352 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
353 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
354 (arm_linux_iterate_over_regset_sections): ...here. New function.
355 (arm_linux_init_abi): Set iterator instead of section list.
356 * corelow.c (get_core_registers_cb): New function, logic moved
357 from...
358 (get_core_registers): ...loop body here. Use new iterator method
359 instead of walking through the regset section list.
360 * gdbarch.sh: Remove 'core_regset_sections'. New method
361 'iterate_over_regset_sections'. New typedef
362 'iterate_over_regset_sections_cb'.
363 * gdbarch.c: Regenerate.
364 * gdbarch.h: Likewise.
365 * i386-linux-tdep.c (i386_linux_regset_sections)
366 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
367 Remove.
368 (i386_linux_iterate_over_regset_sections): New.
369 (i386_linux_init_abi): Don't choose a regset section list, but
370 install new iterator in gdbarch.
371 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
372 (linux_collect_regset_section_cb): New function, logic moved
373 from...
374 (linux_collect_thread_registers): ...loop body here. Use iterator
375 method instead of walking through list.
376 (linux_make_corefile_notes_1): Check for presence of iterator
377 method instead of regset section list.
378 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
379 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
380 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
381 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
382 (ppc_linux_iterate_over_regset_sections): ...here. New function.
383 (ppc_linux_init_abi): Don't choose from above regset section
384 lists, but install new iterator in gdbarch.
385 * regset.h (struct core_regset_section): Remove.
386 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
387 have_linux_v1, have_linux_v2, and have_tdb.
388 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
389 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
390 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
391 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
392 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
393 (s390_iterate_over_regset_sections): ...here. New function. Use
394 new tdep fields.
395 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
396 regset section lists, but install new iterator.
397
398 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
399
400 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
401
402 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
403
404 * progspace.c (print_program_space): Don't prune program spaces
405 before printing them.
406
407 2014-09-25 Pedro Alves <palves@redhat.com>
408
409 * infrun.c (user_visible_resume_ptid): Don't check
410 singlestep_breakpoints_inserted_p.
411
412 2014-09-25 Pedro Alves <palves@redhat.com>
413
414 * breakpoint.c (should_be_inserted): Add debug output.
415
416 2014-09-25 Pedro Alves <palves@redhat.com>
417
418 * infrun.c (stepping_past_instruction_at)
419 (clear_exit_convenience_vars): Point at infrun.h instead of
420 inferior.h.
421 (handle_signal_stop): Fix typo.
422
423 2014-09-24 Yao Qi <yao@codesourcery.com>
424
425 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
426 bitmask.
427
428 2014-09-22 Gary Benson <gbenson@redhat.com>
429
430 * target.c (target_stop): Updated comment.
431
432 2014-09-22 Gary Benson <gbenson@redhat.com>
433
434 * target/target.h (target_stop_ptid): Renamed as...
435 (target_stop_and_wait): New function. Updated comment.
436 All uses updated.
437 (target_continue_ptid): Renamed as...
438 (target_continue_no_signal): New function. Updated comment.
439 All uses updated.
440
441 2014-09-22 Pedro Alves <palves@redhat.com>
442
443 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
444 and "auto" merged.
445 * breakpoint.c (enum ugll_insert_mode): New enum.
446 (always_inserted_mode): Now a plain boolean.
447 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
448 (breakpoints_always_inserted_mode): Delete.
449 (breakpoints_should_be_inserted_now): New function.
450 (insert_breakpoints): Pass UGLL_INSERT to
451 update_global_location_list instead of calling
452 insert_breakpoint_locations manually.
453 (create_solib_event_breakpoint_1): New, factored out from ...
454 (create_solib_event_breakpoint): ... this.
455 (create_and_insert_solib_event_breakpoint): Use
456 create_solib_event_breakpoint_1 instead of calling
457 insert_breakpoint_locations manually.
458 (update_global_location_list): Change parameter type from boolean
459 to enum ugll_insert_mode. All callers adjusted. Adjust to use
460 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
461 (update_global_location_list_nothrow): Change parameter type from
462 boolean to enum ugll_insert_mode.
463 (_initialize_breakpoint): "breakpoint always-inserted" option is
464 now a boolean command. Update help text.
465 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
466 (breakpoints_should_be_inserted_now): New declaration.
467 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
468 Remove breakpoints_always_inserted_mode check.
469 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
470 * remote.c (remote_start_remote): Likewise.
471
472 2014-09-22 Pedro Alves <palves@redhat.com>
473
474 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
475 (insert_breakpoints): Don't call insert_breakpoint_locations here.
476 Instead, pass UGLL_INSERT to update_global_location_list.
477 (update_global_location_list): Change parameter type from boolean
478 to enum ugll_insert_mode. All callers adjusted. Adjust to use
479 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
480 (create_solib_event_breakpoint_1): New, factored out from ...
481 (create_solib_event_breakpoint): ... this.
482 (create_and_insert_solib_event_breakpoint): Use
483 create_solib_event_breakpoint_1 instead of calling
484 insert_breakpoint_locations manually.
485 (update_global_location_list): Handle UGLL_INSERT.
486
487 2014-09-22 Pedro Alves <palves@redhat.com>
488
489 * breakpoint.c (enum ugll_insert_mode): New enum.
490 (update_global_location_list)
491 (update_global_location_list_nothrow): Change parameter type from
492 boolean to enum ugll_insert_mode. All callers adjusted.
493
494 2014-09-19 Joel Brobecker <brobecker@adacore.com>
495
496 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
497 SystemTap support in GDB.
498
499 2014-09-19 Don Breazeal <donb@codesourcery.com>
500
501 * linux-nat.c (linux_handle_extended_wait): Call
502 linux_ptrace_get_extended_event.
503 (wait_lwp): Call linux_is_extended_waitstatus.
504 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
505 and linux_is_extended_waitstatus.
506 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
507 linux_ptrace_get_extended_event.
508 (linux_ptrace_get_extended_event): New function.
509 (linux_is_extended_waitstatus): New function.
510 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
511 (linux_is_extended_waitstatus): New declarations.
512
513 2014-09-19 Yao Qi <yao@codesourcery.com>
514
515 * dwarf2read.c (dwarf_decode_lines): Update declaration.
516 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
517 comments. Callers update.
518 (dwarf_decode_lines): Likewise.
519 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
520 comments. Skip the line table if 'lowpc' is greater than
521 'address'. Don't check
522 dwarf2_per_objfile->has_section_at_zero.
523
524 2014-09-18 Doug Evans <dje@google.com>
525
526 * NEWS: Mention new "producer" attribute of gdb.Symtab.
527 * python/py-symtab.c (stpy_get_producer): New function.
528 (symtab_object_getset): Add "producer" attribute.
529
530 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
531
532 PR gdb/17384
533 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
534 (do_captured_read_memory_integer): Remove.
535 (safe_read_memory_integer): Use target_read_memory directly instead
536 of catching errors in do_captured_read_memory_integer.
537
538 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
539
540 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
541 not gdb/doc.
542
543 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
544
545 * objc-lang.c (find_implementation_from_class): Remove dead code.
546
547 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
548
549 PR cli/7233
550 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
551 "fprintf_unfiltered (gdb_stdlog...)".
552
553 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
554
555 PR breakpoints/12526
556 * breakpoint.h (struct watchpoint): New fields val_bitpos and
557 val_bitsize.
558 * breakpoint.c (watch_command_1): Use these fields to retain
559 bitfield information.
560 (extract_bitfield_from_watchpoint_value): New function.
561 (watchpoint_check): Use it.
562 (update_watchpoint): Use it. Optimize the address and length of a
563 HW watchpoint pointing to a bitfield.
564 * value.h (unpack_value_bitfield): New prototype.
565 * value.c (unpack_value_bitfield): Make extern.
566
567 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
568
569 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
570 x86-dregs.o.
571 * gnu-nat.c (inf_threads): New function.
572 * gnu-nat.h (inf_threads_ftype): New typedef.
573 (inf_threads): New declaration.
574 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
575 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
576 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
577 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
578 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
579 (i386_gnu_dr_get_control): New functions.
580 (reg_addr): New structure.
581 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
582 i386 debugging register hooks.
583 * NEWS: Mention this.
584
585 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
586
587 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
588 vector data transfer instructions.
589 (arm_record_coproc_data_proc): Updated.
590
591 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
592
593 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
594 arm_record_exreg_ld_st_insn.
595 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
596 load/store insns.
597
598 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
599
600 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
601 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
602 processing instructions.
603
604 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
605
606 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
607 for advance SIMD struct ld/st insn.
608 (thumb2_record_decode_insn_handler): Replace stub handler with
609 thumb2_record_asimd_struct_ld_st.
610
611 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
612
613 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
614 for asimd, vfp and coprocessor insns.
615 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
616 and coprocessor insns.
617 (thumb2_record_coproc_insn): New function.
618 (thumb2_record_decode_insn_handler): Update coprocessor insns record
619 handlers.
620 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
621 opcode 110 insns.
622
623 2014-09-13 Doug Evans <xdje42@gmail.com>
624
625 * NEWS: Mention new "queue-signal" command.
626 * infcmd.c (queue_signal_command): New function.
627 (_initialize_infcmd): Add new queue-signal command.
628
629 2014-09-13 Doug Evans <xdje42@gmail.com>
630
631 * linux-nat.c (wait_lwp): Add debugging printf.
632 (linux_nat_wait_1): Ditto.
633
634 2014-09-12 Pedro Alves <palves@redhat.com>
635
636 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
637 (create_and_insert_solib_event_breakpoint): New functions.
638 * breakpoint.h (create_and_insert_solib_event_breakpoint)
639 (remove_solib_event_breakpoints_at_next_stop): New declarations.
640 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
641 (remove_dbx_link_breakpoint): Delete function.
642 (insert_dbx_link_bpt_in_file): Use
643 create_and_insert_solib_event_breakpoint instead of
644 deprecated_insert_raw_breakpoint.
645 (procfs_wait): Don't check whether we hit __dbx_link here.
646 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
647 here.
648 * solib-irix.c (base_breakpoint): Delete global.
649 (disable_break): Delete function.
650 (enable_break): Use create_solib_event_breakpoint
651 instead of deprecated_insert_raw_breakpoint.
652 (irix_solib_handle_event): New function.
653 (irix_solib_create_inferior_hook): Don't run the target or disable
654 the mapping-complete breakpoint here.
655 (_initialize_irix_solib): Install irix_solib_handle_event as
656 so_ops->handle_event hook.
657
658 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
659 Ulrich Weigand  <uweigand@de.ibm.com>
660
661 PR tdep/17379
662 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
663 instead of read_memory_unsigned_integer.
664
665 2014-09-12 Gary Benson <gbenson@redhat.com>
666
667 * nat/linux-waitpid.c: Include common-defs.h.
668 [GDBSERVER]: Add FIXME comment.
669 [!GDBSERVER]: Don't include defs.h or signal.h.
670 (linux_debug) [!GDBSERVER]: Remove empty block.
671
672 2014-09-12 Gary Benson <gbenson@redhat.com>
673
674 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
675 Don't include defs.h or server.h.
676
677 2014-09-12 Gary Benson <gbenson@redhat.com>
678
679 * nat/linux-btrace.c: Include common-defs.h.
680 Don't include defs.h, server.h or gdbthread.h.
681 * nat/linux-btrace.h (struct target_ops): New forward declaration.
682
683 2014-09-12 Gary Benson <gbenson@redhat.com>
684
685 * common/agent.c: Include common-defs.h.
686 Don't include defs.h or server.h.
687 * common/buffer.c: Likewise.
688 * common/common-debug.c: Likewise.
689 * common/common-utils.c: Likewise.
690 * common/errors.c: Likewise.
691 * common/filestuff.c: Likewise.
692 * common/format.c: Likewise.
693 * common/gdb_vecs.c: Likewise.
694 * common/print-utils.c: Likewise.
695 * common/ptid.c: Likewise.
696 * common/rsp-low.c: Likewise.
697 * common/signals.c: Likewise.
698 * common/vec.c: Likewise.
699 * common/xml-utils.c: Likewise.
700 * nat/linux-osdata.c: Likewise.
701 * nat/linux-procfs.c: Likewise.
702 * nat/linux-ptrace.c: Likewise.
703 * nat/mips-linux-watch.c: Likewise.
704 * target/waitstatus.c: Likewise.
705
706 2014-09-12 Tom Tromey <tromey@redhat.com>
707 Gary Benson <gbenson@redhat.com>
708
709 * common/common-regcache.h: New file.
710 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
711 * regcache.h: Include common-regcache.h.
712 (regcache_read_pc): Don't declare.
713 * regcache.c (get_thread_regcache_for_ptid): New function.
714 * nat/linux-btrace.c: Don't include regcache.h.
715 Include common-regcache.h.
716 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
717
718 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
719
720 * regcache.h (struct regset): Declare.
721
722 2014-09-11 Pedro Alves <palves@redhat.com>
723
724 PR gdb/17347
725 * main.c: Include "infrun.h".
726 (catch_command_errors, catch_command_errors_const): Wait for the
727 foreground command to complete.
728 * top.c (maybe_wait_sync_command_done): New function, factored out
729 from ...
730 (maybe_wait_sync_command_done): ... here.
731 * top.h (maybe_wait_sync_command_done): New declaration.
732
733 2014-09-11 Tom Tromey <tromey@redhat.com>
734 Gary Benson <gbenson@redhat.com>
735
736 * common/symbol.h: New file.
737 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
738 * minsyms.c (find_minimal_symbol_address): New function.
739 * common/agent.c: Include common/symbol.h.
740 [!GDBSERVER]: Don't include objfiles.h.
741 (agent_look_up_symbols): Use find_minimal_symbol_address.
742
743 2014-09-11 Gary Benson <gbenson@redhat.com>
744
745 * target/target.h (target_stop_ptid, target_continue_ptid):
746 Declare.
747 * target.c (target_stop_ptid, target_continue_ptid): New
748 functions.
749 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
750 (agent_run_command): Always use target_stop_ptid and
751 target_continue_ptid.
752
753 2014-09-11 Tom Tromey <tromey@redhat.com>
754 Gary Benson <gbenson@redhat.com>
755
756 * target/target.h: New file.
757 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
758 * target.h: Include target/target.h.
759 (target_read_memory, target_write_memory): Don't declare.
760 * target.c (target_read_uint32): New function.
761 * common/agent.c: Include target/target.h.
762 [!GDBSERVER]: Don't include target.h.
763 (helper_thread_id): Type changed to uint32_t.
764 (agent_get_helper_thread_id): Use target_read_uint32.
765 (agent_run_command): Always use target_read_memory and
766 target_write_memory.
767 (agent_capability): Type changed to uint32_t.
768 (agent_capability_check): Use target_read_uint32.
769
770 2014-09-11 Gary Benson <gbenson@redhat.com>
771
772 * common/common-debug.h (show_debug_regs): Declare.
773 * common/common-debug.c (show_debug_regs): Define.
774 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
775 all uses with show_debug_regs. Replace all uses that considered
776 debug_hw_points as a multi-value integer with straight boolean
777 uses.
778 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
779 with show_debug_regs.
780 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
781 all uses with show_debug_regs.
782 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
783 uses with show_debug_regs.
784
785 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
786
787 * findvar.c (address_from_register): Handle targets requiring
788 a special conversion routine even for plain pointer types.
789
790 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
791
792 * rs6000-nat.c (exec_one_dummy_insn): Remove.
793 (store_register): Do not call exec_one_dummy_insn.
794
795 2014-09-10 Joel Brobecker <brobecker@adacore.com>
796
797 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
798 dereference it first. Use value_enclosing_type instead of
799 value_type.
800 (ada_array_length): Likewise.
801
802 2014-09-10 Joel Brobecker <brobecker@adacore.com>
803
804 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
805 Adjust function implementation and documentation accordingly.
806 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
807 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
808 Update call to ada_value_ptr_subscript.
809
810 2014-09-10 Joel Brobecker <brobecker@adacore.com>
811
812 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
813 instead of VAL's type.
814
815 2014-09-10 Joel Brobecker <brobecker@adacore.com>
816
817 * amd64-linux-nat.c: Add <sys/uio.h> #include.
818
819 2014-09-09 Doug Evans <xdje42@gmail.com>
820
821 PR guile/17367
822 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
823 last parameter to pkg-config, not first.
824 * configure.ac: Pass --with-guile provided pkg-config path to
825 GDB_GUILE_PROGRAM_NAMES.
826 * configure: Regenerate.
827
828 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
829
830 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
831 Bertazi".
832
833 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
834
835 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
836 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
837 the list of sections determining GDB_OSABI_IRIX.
838
839 2014-09-09 James Hogan <james.hogan@imgtec.com>
840
841 * MAINTAINERS (Write After Approval): Add "James Hogan".
842
843 2014-09-09 James Hogan <james.hogan@imgtec.com>
844
845 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
846
847 2014-09-09 Joel Brobecker <brobecker@adacore.com>
848
849 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
850
851 2014-09-08 Doug Evans <xdje42@gmail.com>
852
853 PR 17247
854 * guile.c: #include <signal.h>.
855 (_initialize_guile): Block SIGCHLD while initializing Guile.
856
857 Replaces the following, which is reverted.
858
859 2014-07-26 Doug Evans <xdje42@gmail.com>
860
861 PR 17185
862 * configure.ac: Add check for header gc/gc.h.
863 Add check for function setenv.
864 * configure: Regenerate.
865 * config.in: Regenerate.
866 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
867
868 2014-09-08 Doug Evans <xdje42@gmail.com>
869
870 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
871 with named constant. Fix style of pointer comparison.
872 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
873
874 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
875
876 PR gdb/17035
877 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
878 decide whether we display the command on "show user".
879 * cli/cli-script.c (show_user_1): Only verify cmdlines after
880 printing command name.
881 * cli/cli-decode.h (cli_user_command_p): Declare new function.
882 * cli/cli-decode.c (cli_user_command_p): Create helper function
883 to verify whether cmd_list_element is a user-defined command.
884
885 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
886
887 PR python/17355
888 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
889 Fix goto out of TRY_CATCH.
890
891 2014-09-06 Doug Evans <xdje42@gmail.com>
892 Tom Tromey <tromey@redhat.com>
893
894 PR 15276
895 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
896 $_any_caller_matches.
897 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
898 * python/lib/gdb/function/caller_is.py: New file.
899
900 2014-09-06 Doug Evans <xdje42@gmail.com>
901
902 * infcmd.c (program_info): Fix typo.
903
904 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
905
906 PR gdb/17235
907 * stap-probe.c (stap_parse_single_operand): Delete unused variable
908 'number'. New variable 'has_digit'. Rewrite code to deal with
909 subexpressions on SDT probes.
910
911 2014-09-04 Pedro Alves <palves@redhat.com>
912
913 * c-exp.y (parse_number): Skip handling base-switching prefixes if
914 the input is only one character long.
915
916 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
917
918 PR fortran/17237
919 * f-valprint.c (f_val_print): Specify the correct print option to
920 use when printing integer values.
921
922 2014-09-04 Gary Benson <gbenson@redhat.com>
923
924 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
925 Remove code to cope with LWPs wrapped as PIDs.
926 Add assertions to ensure no wrapped LWPs are passed.
927
928 2014-09-04 Pedro Alves <palves@redhat.com>
929
930 * value.c (value_ranges_copy_adjusted): New function, factored out
931 from ...
932 (value_contents_copy_raw): ... here.
933 (unpack_value_bits_as_long_1): Rename back to ...
934 (unpack_bits_as_long): ... this. Remove 'original_value' and
935 'result' parameters. Change return type to LONGEST.
936 (unpack_value_bits_as_long): Delete.
937 (unpack_value_field_as_long_1): Delete.
938 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
939 (unpack_value_bitfield): New function.
940 (value_field_bitfield): Reimplement using unpack_value_bitfield.
941 (value_fetch_lazy): Use unpack_value_bitfield.
942 * value.h (unpack_value_bits_as_long): Delete declaration.
943
944 2014-09-03 Sasha Smundak <asmundak@google.com>
945
946 * python/py-frame.c (frapy_read_register): New function.
947
948 2014-09-03 James Hogan <james.hogan@imgtec.com>
949
950 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
951 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
952
953 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
954
955 PR python/16699
956 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
957 function.
958 (add_cmd): Set "completer_handle_brkchars" to NULL.
959 * cli/cli-decode.h (struct cmd_list_element)
960 <completer_handle_brkchars>: New field.
961 * command.h (completer_ftype_void): New typedef.
962 (set_cmd_completer_handle_brkchars): New prototype.
963 * completer.c (set_gdb_completion_word_break_characters): New
964 function.
965 (complete_line_internal): Call "completer_handle_brkchars"
966 callback from command.
967 * completer.h: Include "command.h".
968 (set_gdb_completion_word_break_characters): New prototype.
969 * python/py-cmd.c (cmdpy_completer_helper): New function.
970 (cmdpy_completer_handle_brkchars): New function.
971 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
972 (cmdpy_init): Set completer_handle_brkchars to
973 cmdpy_completer_handle_brkchars.
974
975 2014-09-03 Gary Benson <gbenson@redhat.com>
976
977 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
978 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
979 Loop conditions changed to equivalent form.
980 (struct x86_debug_reg_state): Updated dr_ref_count comment.
981 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
982 ALL_DEBUG_ADDRESS_REGISTERS.
983
984 2014-09-03 Joel Brobecker <brobecker@adacore.com>
985
986 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
987 description fix.
988
989 2014-09-02 Doug Evans <dje@google.com>
990
991 * typeprint.c (find_global_typedef): Fix comment.
992
993 2014-09-02 Gary Benson <gbenson@redhat.com>
994
995 * i386-nat.h: Renamed as...
996 * x86-nat.h: New file. All type, function and variable name
997 prefixes changed from "i386_" to "x86_". All references updated.
998 * i386-nat.c: Renamed as...
999 * x86-nat.c: New file. All type, function and variable name
1000 prefixes changed from "i386_" to "x86_". All references updated.
1001 * common/i386-xstate.h: Renamed as...
1002 * common/x86-xstate.h: New file. All type, function and variable
1003 name prefixes changed from "i386_" to "x86_". All references
1004 updated.
1005 * nat/i386-cpuid.h: Renamed as...
1006 * nat/x86-cpuid.h: New file. All type, function and variable name
1007 prefixes changed from "i386_" to "x86_". All references updated.
1008 * nat/i386-gcc-cpuid.h: Renamed as...
1009 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1010 name prefixes changed from "i386_" to "x86_". All references
1011 updated.
1012 * nat/i386-dregs.h: Renamed as...
1013 * nat/x86-dregs.h: New file. All type, function and variable name
1014 prefixes changed from "i386_" to "x86_". All references updated.
1015 * nat/i386-dregs.c: Renamed as...
1016 * nat/x86-dregs.c: New file. All type, function and variable name
1017 prefixes changed from "i386_" to "x86_". All references updated.
1018
1019 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1020
1021 * varobj.c (_initialize_varobj): Move to the end of file.
1022
1023 2014-08-29 Gary Benson <gbenson@redhat.com>
1024
1025 * common/common-exceptions.h: New file.
1026 * common/common-exceptions.c: Likewise.
1027 * Makefile.in (SFILES): Add common/common-exceptions.c.
1028 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1029 (COMMON_OBS): Add common-exceptions.o.
1030 (common-exceptions.o): New rule.
1031 * exceptions.h (common-exceptions.h): Include.
1032 (gdb_setjmp.h): Do not include.
1033 (return_reason): Moved to common-exceptions.h.
1034 (enum return_reason): Likewise.
1035 (RETURN_MASK): Likewise.
1036 (typedef return_mask): Likewise.
1037 (enum errors): Likewise.
1038 (struct gdb_exception): Likewise.
1039 (exceptions_state_mc_init): Likewise.
1040 (exceptions_state_mc_action_iter): Likewise.
1041 (exceptions_state_mc_action_iter_1): Likewise.
1042 (TRY_CATCH): Likewise.
1043 (throw_exception): Likewise.
1044 (throw_verror): Likewise.
1045 (throw_vquit): Likewise.
1046 (throw_error): Likewise.
1047 (throw_quit): Likewise.
1048 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1049 (enum catcher_action): Likewise.
1050 (struct catcher): Likewise.
1051 (current_catcher): Likewise.
1052 (catcher_list_size): Likewise.
1053 (exceptions_state_mc_init): Likewise.
1054 (catcher_pop): Likewise.
1055 (exceptions_state_mc): Likewise.
1056 (exceptions_state_mc_action_iter): Likewise.
1057 (exceptions_state_mc_action_iter_1): Likewise.
1058 (throw_exception): Likewise.
1059 (exception_messages): Likewise.
1060 (exception_messages_size): Likewise.
1061 (throw_it): Likewise.
1062 (throw_verror): Likewise.
1063 (throw_vquit): Likewise.
1064 (throw_error): Likewise.
1065 (throw_quit): Likewise.
1066 (prepare_to_throw_exception): New function.
1067
1068 2014-08-29 Gary Benson <gbenson@redhat.com>
1069
1070 * common/gdb_setjmp.h: New file.
1071 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1072 * configure.ac: Move sigsetjmp check...
1073 * common/common.m4: ...here.
1074 * configure: Regenerate.
1075 * cp-support.c (SIGJMP_BUF): Delete.
1076 (SIGSETJMP): Likewise.
1077 (SIGLONGJMP): Likewise.
1078 * exceptions.h (gdb_setjmp.h): Include.
1079 (setjmp.h): Do not include.
1080 (EXCEPTIONS_SIGJMP_BUF): Delete.
1081 (EXCEPTIONS_SIGSETJMP): Likewise.
1082 (EXCEPTIONS_SIGLONGJMP): Likewise.
1083 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1084 from gdb_setjmp.h.
1085 * exceptions.c: Likewise.
1086
1087 2014-08-29 Gary Benson <gbenson@redhat.com>
1088
1089 * cleanups.h: Moved to...
1090 * common/cleanups.h: New file.
1091 * cleanups.c: Moved to...
1092 * common/cleanups.c: New file. Include common-defs.h and
1093 cleanups.h. Do not include defs.h.
1094 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1095 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1096 (cleanups.o): New rule.
1097
1098 2014-08-29 Gary Benson <gbenson@redhat.com>
1099
1100 * common/errors.h (internal_warning): New declaration.
1101 (internal_vwarning): Likewise.
1102 * common/errors.c (internal_warning): New function.
1103 * utils.h (internal_warning): Don't declare.
1104 (internal_vwarning): Likewise.
1105 * utils.c (internal_warning): Removed.
1106
1107 2014-08-29 Gary Benson <gbenson@redhat.com>
1108
1109 * main.c (captured_main): Use warning during startup.
1110 Prefix startup warning messages with command name.
1111
1112 2014-08-29 Gary Benson <gbenson@redhat.com>
1113
1114 * main.c (captured_main): Handle usage errors with error.
1115
1116 2014-08-29 Gary Benson <gbenson@redhat.com>
1117
1118 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1119 exit pair with a call to error. Wrap the message with _().
1120
1121 2014-08-29 Gary Benson <gbenson@redhat.com>
1122
1123 * main.c (captured_main): Replace a fprintf/exit
1124 pair with a call to error. Wrap the message with _().
1125
1126 2014-08-29 Gary Benson <gbenson@redhat.com>
1127
1128 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1129 pairs with calls to error. Wrap the message with _().
1130
1131 2014-08-29 Gary Benson <gbenson@redhat.com>
1132
1133 * utils.c (vwarning): Protect calls to target_terminal_ours
1134 and wrap_here.
1135
1136 2014-08-29 Gary Benson <gbenson@redhat.com>
1137
1138 * exceptions.c (print_flush): Protect calls to
1139 target_terminal_ours and wrap_here.
1140
1141 2014-08-29 Gary Benson <gbenson@redhat.com>
1142
1143 * utils.h (filtered_printing_initialized): New declaration.
1144 * utils.c (abort_with_message): New function.
1145 (internal_vproblem): Use abort_with_message for first level
1146 recursive internal problems, and if gdb_stderr is not set up.
1147 Protect calls to target_terminal_ours, begin_line and query.
1148
1149 2014-08-28 Doug Evans <dje@google.com>
1150
1151 * symtab.c (in_prologue): Move definition to better spot.
1152 (skip_prologue_using_sal): Ditto.
1153
1154 2014-08-28 Doug Evans <dje@google.com>
1155
1156 * symtab.c (find_function_start_sal): Move definition to better spot.
1157
1158 2014-08-28 Yao Qi <yao@codesourcery.com>
1159
1160 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1161 found_stack_adjust in forward scan. Remove condition check
1162 on found_stack_adjust which is always true. Indent the code.
1163
1164 2014-08-28 Yao Qi <yao@codesourcery.com>
1165
1166 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1167 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1168 (dwarf_decode_lines): Remove argument
1169 want_line_info. Remove condition check on want_line_info.
1170 Callers update.
1171
1172 2014-08-27 Doug Evans <dje@google.com>
1173
1174 * dwarf2read.c (dwarf_record_line): Fix typo.
1175
1176 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1177
1178 * target.h (struct target_ops::to_terminal_save_ours): Remove
1179 declaration.
1180 (target_terminal_save_ours): Remove macro.
1181 * target-delegates.c: Regenerate.
1182 * inf-child.c (inf_child_target): Don't set the nonexistent
1183 field to_terminal_save_ours.
1184 * inferior.h (child_terminal_save_ours): Remove declaration.
1185 * terminal.h (gdb_save_tty_state): New declaration.
1186 * inflow.c (child_terminal_save_ours): Rename to ...
1187 (gdb_save_tty_state): ... this.
1188 * tui/tui.c: Include terminal.h.
1189 (tui_enable): Use gdb_save_tty_state instead of
1190 target_terminal_save_ours.
1191 (tui_disable): Likewise.
1192
1193 2014-08-25 Doug Evans <dje@google.com>
1194
1195 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1196 Pass NULL instead of 0 for context pointer.
1197
1198 2014-08-25 Yao Qi <yao@codesourcery.com>
1199
1200 * dwarf2read.c: Fix grammatical error.
1201
1202 2014-08-24 Yao Qi <yao@codesourcery.com>
1203
1204 * dwarf2read.c (scan_partial_symbols): Update comments.
1205 Rename argument 'need_pc' with 'set_addrmap'.
1206 (add_partial_namespace): Rename argument 'need_pc' with
1207 'set_addrmap'.
1208 (add_partial_module): Likewise.
1209 (add_partial_subprogram): Likewise. Update comments.
1210 (dwarf2_name): Fix typo.
1211
1212 2014-08-22 Doug Evans <dje@google.com>
1213
1214 PR 17276
1215 * dwarf2read.c (dwarf_record_line_p): New function.
1216 (dwarf_decode_lines_1): Ignore subsequent line number entries
1217 for the same line if any entry had a non-zero discriminator.
1218
1219 2014-08-22 Doug Evans <dje@google.com>
1220
1221 * buildsym.h (record_line_ftype): New typedef.
1222 (record_line): Use it.
1223 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1224 (dwarf_decode_lines_1): Call them.
1225
1226 2014-08-22 Yao Qi <yao@codesourcery.com>
1227
1228 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1229 (ctf_end): Remove code.
1230
1231 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1232
1233 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1234 (linux_make_corefile_notes): call update_thread_list, protected against
1235 exceptions.
1236
1237 2014-08-21 Pedro Alves <palves@redhat.com>
1238
1239 * infcmd.c (attach_command): Remove comment.
1240
1241 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1242
1243 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1244 unsigned LONGEST to ULONGEST.
1245
1246 2014-08-20 Pedro Alves <palves@redhat.com>
1247
1248 * Makefile.in (check-read1): New rule.
1249
1250 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1251
1252 * value.c (value_from_contents_and_address): Strip resolved_type's
1253 typedef layers before checking its TYPE_DATA_LOCATION.
1254
1255 2014-08-20 Pedro Alves <palves@redhat.com>
1256
1257 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1258
1259 2014-08-20 Yao Qi <yao@codesourcery.com>
1260
1261 * amd64-tdep.c (amd64_classify): Add a blank line after the
1262 example. Move "*/" to a new line.
1263 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1264 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1265 * dwarf2read.c (psymtab_include_file_name): Likewise.
1266
1267 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1268 Pedro Alves <palves@redhat.com>
1269
1270 PR symtab/14604
1271 PR symtab/14605
1272 * ada-lang.c (coerce_unspec_val_to_type): Use
1273 value_contents_copy_raw.
1274 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1275 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1276 * cp-valprint.c (cp_print_value_fields): Let the common printing
1277 code handle optimized out values.
1278 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1279 * d-valprint.c (dynamic_array_type): Use
1280 value_bits_any_optimized_out.
1281 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1282 check_any_valid fields.
1283 (check_pieced_value_bits): Delete and inline ...
1284 (check_pieced_synthetic_pointer): ... here.
1285 (check_pieced_value_validity): Delete.
1286 (check_pieced_value_invalid): Delete.
1287 (pieced_value_funcs): Remove check_validity and check_any_valid
1288 fields.
1289 (read_pieced_value): Use mark_value_bits_optimized_out.
1290 (write_pieced_value): Switch to use
1291 mark_value_bytes_optimized_out.
1292 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1293 of assuming the whole value is optimized out.
1294 * findvar.c (read_frame_register_value): Remove special handling
1295 of optimized out registers.
1296 (value_from_register): Use mark_value_bytes_optimized_out.
1297 * frame-unwind.c (frame_unwind_got_optimized): Use
1298 mark_value_bytes_optimized_out.
1299 * jv-valprint.c (java_value_print): Adjust.
1300 (java_print_value_fields): Let the common printing code handle
1301 optimized out values.
1302 * mips-tdep.c (mips_print_register): Remove special handling of
1303 optimized out registers.
1304 * opencl-lang.c (lval_func_check_validity): Delete.
1305 (lval_func_check_any_valid): Delete.
1306 (opencl_value_funcs): Remove check_validity and check_any_valid
1307 fields.
1308 * p-valprint.c (pascal_object_print_value_fields): Let the common
1309 printing code handle optimized out values.
1310 * stack.c (read_frame_arg): Remove special handling of optimized
1311 out values. Fetch both VAL and ENTRYVAL before comparing
1312 contents. Adjust to value_available_contents_eq rename.
1313 * valprint.c (valprint_check_validity)
1314 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1315 (val_print_array_elements): Adjust.
1316 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1317 (value_bits_any_optimized_out): New function.
1318 (value_entirely_covered_by_range_vector): New function, factored
1319 out from value_entirely_unavailable.
1320 (value_entirely_unavailable): Reimplement.
1321 (value_entirely_optimized_out): New function.
1322 (insert_into_bit_range_vector): New function, factored out from
1323 mark_value_bits_unavailable.
1324 (mark_value_bits_unavailable): Reimplement.
1325 (struct ranges_and_idx): New struct.
1326 (find_first_range_overlap_and_match): New function, factored out
1327 from value_available_contents_bits_eq.
1328 (value_available_contents_bits_eq): Rename to ...
1329 (value_contents_bits_eq): ... this. Check both unavailable
1330 contents and optimized out contents.
1331 (value_available_contents_eq): Rename to ...
1332 (value_contents_eq): ... this.
1333 (allocate_value_lazy): Remove reference to the old optimized_out
1334 boolean.
1335 (allocate_optimized_out_value): Use
1336 mark_value_bytes_optimized_out.
1337 (require_not_optimized_out): Adjust to check whether the
1338 optimized_out vec is empty.
1339 (ranges_copy_adjusted): New function, factored out from
1340 value_contents_copy_raw.
1341 (value_contents_copy_raw): Also copy the optimized out ranges.
1342 Assert the destination ranges aren't optimized out.
1343 (value_contents_copy): Update comment, remove call to
1344 require_not_optimized_out.
1345 (value_contents_equal): Adjust to check whether the optimized_out
1346 vec is empty.
1347 (set_value_optimized_out, value_optimized_out_const): Delete.
1348 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1349 New functions.
1350 (value_entirely_optimized_out, value_bits_valid): Delete.
1351 (value_copy): Take a VEC copy of the 'optimized_out' field.
1352 (value_primitive_field): Remove special handling of optimized out.
1353 (value_fetch_lazy): Assert that lazy values have no unavailable
1354 regions. Use value_bits_any_optimized_out. Remove some special
1355 handling for optimized out values.
1356 * value.h: Add intro comment about <optimized out> and
1357 <unavailable>.
1358 (struct lval_funcs): Remove check_validity and check_any_valid
1359 fields.
1360 (set_value_optimized_out, value_optimized_out_const): Remove.
1361 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1362 New declarations.
1363 (value_bits_any_optimized_out): New declaration.
1364 (value_bits_valid): Delete declaration.
1365 (value_available_contents_eq): Rename to ...
1366 (value_contents_eq): ... this, and extend comments.
1367
1368 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1369
1370 Fix -fsanitize=address on unreadable inferior strings.
1371 * valprint.c (val_print_string): Fix access before BUFFER.
1372
1373 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1374
1375 * target.c (target_struct_size): Remove.
1376 (target_struct_allocsize): Remove.
1377 (DEFAULT_ALLOCSIZE): Remove.
1378 (target_ops_p): New typedef.
1379 (DEF_VEC_P (target_ops_p)): New vector type.
1380 (target_structs): Change type to VEC (target_ops_p).
1381 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1382 (find_default_run_target): Rewrite for loop following changes to
1383 target_structs.
1384
1385 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1386
1387 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1388 Adjust code accordingly. Adjust function description comment.
1389
1390 2014-08-19 Yao Qi <yao@codesourcery.com>
1391
1392 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1393 types.
1394
1395 2014-08-19 Alan Modra <amodra@gmail.com>
1396
1397 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1398 * config.in: Regenerate.
1399 * configure: Regenerate.
1400
1401 2014-08-19 Tom Tromey <tromey@redhat.com>
1402 Gary Benson <gbenson@redhat.com>
1403
1404 * common/common-debug.h: New file.
1405 * common/common-debug.c: Likewise.
1406 * debug.c: Likewise.
1407 * Makefile.in (SFILES): Add common/common-debug.c.
1408 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1409 (COMMON_OBS): Add common-debug.o and debug.o.
1410 (common-debug.o): New rule.
1411 * common/common-defs.h: Include common-debug.h.
1412 * common/agent.c (debug_agent_printf): New function.
1413 (DEBUG_AGENT): Redefine.
1414 * nat/i386-dregs.c (debug_printf): Undefine.
1415
1416 2014-08-19 Gary Benson <gbenson@redhat.com>
1417
1418 * common/common-defs.h: Include print-utils.h.
1419 * utils.h: Do not include print-utils.h.
1420
1421 2014-08-19 Tom Tromey <tromey@redhat.com>
1422 Gary Benson <gbenson@redhat.com>
1423
1424 * common/common-types.h: New file.
1425 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1426 * common/common-defs.h: Include common-types.h.
1427 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1428 (ULONGEST): Remove.
1429
1430 2014-08-19 Tom Tromey <tromey@redhat.com>
1431 Gary Benson <gbenson@redhat.com>
1432
1433 * common/errors.h: New file.
1434 * common/errors.c: Likewise.
1435 * Makefile.in (SFILES): Add common/errors.c.
1436 (HFILES_NO_SRCDIR): Add common/errors.h.
1437 (COMMON_OBS): Add errors.o.
1438 (errors.o): New rule.
1439 * common/common-defs.h: Include errors.h.
1440 * utils.h (perror_with_name, error, verror, warning, vwarning):
1441 Don't declare.
1442 * common/common-utils.h: (malloc_failure, internal_error):
1443 Likewise.
1444
1445 2014-08-19 Gary Benson <gbenson@redhat.com>
1446
1447 * utils.c (internal_vproblem): Always print the message.
1448
1449 2014-08-18 Doug Evans <dje@google.com>
1450
1451 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1452
1453 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1454
1455 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1456 Return 0 if TYPE is dynamic.
1457 (print_range): Add handling of dynamic ranges.
1458
1459 2014-08-18 Keven Boell <keven.boell@intel.com>
1460 Joel Brobecker <brobecker@adacore.com>
1461
1462 * gdbtypes.h (struct main_type): Add field "data_location".
1463 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1464 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1465 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1466 a dynamic data location.
1467 (resolve_dynamic_type): Add DW_AT_data_location handling.
1468 (copy_recursive, copy_type): Copy the data_location information
1469 when present.
1470 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1471 * value.c (value_from_contents_and_address): Add
1472 DW_AT_data_location handling.
1473
1474 2014-08-18 Keven Boell <keven.boell@intel.com>
1475 Joel Brobecker <brobecker@adacore.com>
1476
1477 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1478 field "get_object_address".
1479 * dwarf2expr.c (execute_stack_op): Add handling for
1480 DW_OP_push_object_address.
1481 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1482 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1483 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1484 (dwarf_expr_get_obj_addr): New function.
1485 (dwarf_expr_ctx_funcs): Add get_object_address field.
1486 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1487 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1488 (dwarf2_evaluate_property): Add parameter "address". Use it.
1489 (needs_get_obj_addr): New function.
1490 (needs_frame_ctx_funcs): Add get_object_address field.
1491 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1492 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1493 (resolve_dynamic_array): Likewise.
1494
1495 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1496
1497 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1498 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1499 fixed value for records and unions for which some GNAT encodings
1500 are present.
1501
1502 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1503
1504 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1505 rewrite to avoid "else if" and "else" constructs. Should be
1506 a no-op in practice.
1507
1508 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1509
1510 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1511 of lexical block.
1512
1513 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1514
1515 PR c++/17132
1516 * eval.c: Update all calls to find_overload_match.
1517 * valarith.c: Likewise.
1518 (value_user_defined_cpp_op, value_user_defined_op): New
1519 argument NOSIDE. Update all callers.
1520 * valops.c (find_overload_match): New argument NOSIDE.
1521 * value.h (find_overload_match): Update signature.
1522
1523 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1524
1525 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1526 'items' methods instead of 'iteritems' method on dictionaries.
1527
1528 2014-08-15 Doug Evans <dje@google.com>
1529
1530 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1531 closer to use.
1532
1533 2014-08-15 Doug Evans <dje@google.com>
1534
1535 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1536
1537 2014-08-15 Doug Evans <dje@google.com>
1538
1539 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1540
1541 2014-08-15 Doug Evans <dje@google.com>
1542
1543 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1544 unused.
1545
1546 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1547
1548 * dcache.h: Include target.h, to avoid compile time warnings.
1549
1550 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1551
1552 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1553 frame_info" partial declaration.
1554 * gdbarch.h: Regenerate.
1555
1556 2014-08-15 Yao Qi <yao@codesourcery.com>
1557
1558 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1559 Add parameter 'decode_for_pst_p'. Callers update.
1560
1561 2014-08-13 Yao Qi <yao@codesourcery.com>
1562
1563 PR build/17104
1564 * configure.ac: Use local variable 'pos'.
1565 * configure: Regenerated.
1566
1567 2014-08-11 Doug Evans <dje@google.com>
1568
1569 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1570 message, it is redundant with "Reading symbols from ..." message.
1571
1572 2014-08-10 Doug Evans <xdje42@gmail.com>
1573
1574 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1575
1576 2014-08-09 Yao Qi <yao@codesourcery.com>
1577
1578 PR remote/9053
1579 * remote.c (remote_xfer_partial): Remove dead code.
1580
1581 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1582
1583 * ia64-linux-tdep.c: Include "regset.h".
1584 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1585 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1586 (ia64_linux_supply_fpregset): New function.
1587 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1588 (ia64_linux_regset_from_core_section): New function.
1589 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1590 method.
1591
1592 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1593
1594 * m68klinux-tdep.c: Include "regset.h".
1595 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1596 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1597 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1598 (m68k_linux_regset_from_core_section): New function.
1599 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1600 method.
1601
1602 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1603
1604 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1605 function. Move logic to...
1606 (tilegx_linux_regmap): ... this new register map.
1607 (tilegx_linux_regset): Refer to register map, replace supply
1608 method by regcache_supply_regset, and add collect method.
1609 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1610 TILEGX_FIRST_EASY_REGNUM.
1611
1612 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1613
1614 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1615 that calls regcache_supply_regset and handles the EPC register
1616 separately. Move main logic to...
1617 (score7_linux_gregmap): ... this new register map.
1618 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1619 (score7_linux_gregset): Refer to register map. Add collect method.
1620 (score7_linux_regset_from_core_section): Replace
1621 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1622 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1623 (struct regset): Delete unused forward declaraction.
1624 (struct pt_regs): Delete structure definition.
1625 (elf_gregset_t): Delete typedef.
1626
1627 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1628
1629 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1630 (nios2_core_regset): Add collect method.
1631
1632 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1633
1634 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1635 platform-independent and don't write to read-only input buffer.
1636 (m32r_linux_collect_gregset): New function.
1637 (m32r_linux_gregset): Add collect method.
1638
1639 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1640
1641 * hppa-linux-tdep.c (greg_map): Rename to...
1642 (hppa_linux_gregmap): ... this. Also convert to
1643 regcache_map_entry format.
1644 (hppa_linux_supply_regset): Delete function.
1645 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1646 (hppa_linux_fpregmap): ... this new register map.
1647 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1648 register map, replace supply method by regcache_supply_regset, and
1649 add collect method regcache_collect_regset.
1650
1651 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1652
1653 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1654 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1655 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1656 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1657 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1658 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1659 (frv_linux_supply_gregset): Replace main logic by call to
1660 regcache_supply_regset, but keep clearing gr32-gr63.
1661 (frv_linux_supply_fpregset): Delete function.
1662 (frv_linux_gregset): Refer to appropriate register map and add
1663 regcache_collect_regset as the collect method.
1664 (frv_linux_fpregset): Likewise. Also exchange the supply method
1665 by regcache_supply_regset.
1666
1667 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1668
1669 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1670 by call to alpha_supply_int_regs.
1671 (alpha_linux_collect_gregset): New function.
1672 (alpha_linux_supply_fpregset): Replace logic by call to
1673 alpha_supply_fp_regs.
1674 (alpha_linux_collect_fpregset): New function.
1675 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1676
1677 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1678
1679 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1680 by call to regcache_collect_regset.
1681 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1682 instead of aarch64_linux_supply_gregset/_fpregset.
1683 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1684 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1685 header file instead.
1686 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1687 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1688 functions. Move logic to ...
1689 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1690 register maps.
1691 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1692 refer to new register maps, replace *_regset_from_core by
1693 regcache_supply_regset, and also use regcache_collect_regset.
1694 * aarch64-linux-tdep.h: Include "regset.h".
1695 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1696 Delete prototypes.
1697 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1698 macros, moved from C source file.
1699 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1700 variable declarations.
1701
1702 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1703
1704 * s390-linux-nat.c: Include "regset.h".
1705 (regmap_gregset): Delete macro.
1706 (s390_64_regmap_gregset): New register map for
1707 regcache_supply/_collect_regset.
1708 (s390_64_gregset): New regset.
1709 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1710 (regmap_fpregset): Delete macro.
1711 (s390_native_supply, s390_native_collect): Delete functions.
1712 (supply_gregset, fill_gregset): Replace s390-specific regmap
1713 handling by a call to regcache_supply/_collect_regset.
1714 (supply_fpregset, fill_fpregset): Call regcache_supply/
1715 _collect_regset instead of s390_native_supply/_collect.
1716 (fetch_regset, store_regset): Likewise. Also change the last
1717 parameter to a regset instead of a regmap.
1718 (s390_linux_fetch_inferior_registers)
1719 (390_linux_store_inferior_registers): Adjust last parameter in
1720 calls to fetch_regset and store_regset.
1721 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1722 (s390_gregmap): ... this. Also make static const and convert to
1723 regcache_map_entry format.
1724 (s390x_regmap_gregset): Delete.
1725 (s390_regmap_fpregset): Rename to...
1726 (s390_fpregmap): ... this. Make static const and convert to
1727 regcache_map_entry format.
1728 (s390_regmap_upper, s390_regmap_last_break)
1729 (s390x_regmap_last_break, s390_regmap_system_call)
1730 (s390_regmap_tdb): Likewise.
1731 (s390_supply_regset, s390_collect_regset): Remove functions.
1732 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1733 s390_supply_regset.
1734 (s390_gregset, s390_fpregset, s390_upper_regset)
1735 (s390_last_break_regset, s390x_last_break_regset)
1736 (s390_system_call_regset, s390_tdb_regset): Make global and
1737 replace s390_supply/_collect_regset by regcache_supply/
1738 _collect_regset.
1739 (s390x_gregset): Delete.
1740 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1741 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1742 (s390_regmap_fpregset, s390_regmap_last_break)
1743 (s390x_regmap_last_break, s390_regmap_system_call)
1744 (s390_regmap_tdb): Delete global variable declarations.
1745 (s390_gregset, s390_fpregset, s390_last_break_regset)
1746 (s390x_last_break_regset, s390_system_call_regset)
1747 (s390_tdb_regset): New global variable declarations.
1748
1749 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1750
1751 * regcache.c: Include "regset.h".
1752 (regcache_transfer_regset): New local function.
1753 (regcache_supply_regset, regcache_collect_regset): New functions.
1754 * regcache.h (struct regcache_map_entry): New structure.
1755 (REGCACHE_MAP_SKIP): New enum value.
1756 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1757
1758 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1759
1760 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1761 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1762 (ppc_linux_collect_gregset ): Likewise.
1763 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1764 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1765 (ppc_collect_vrregset): Likewise.
1766 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1767 Likewise.
1768
1769 2014-08-07 Yao Qi <yao@codesourcery.com>
1770
1771 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1772 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1773 * remote.c (remote_read_bytes): Likewise.
1774
1775 2014-08-07 Yao Qi <yao@codesourcery.com>
1776
1777 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1778
1779 2014-08-07 Yao Qi <yao@codesourcery.com>
1780
1781 PR remote/17230
1782 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1783 TARGET_XFER_OK instead of 0.
1784
1785 2014-08-07 Gary Benson <gbenson@redhat.com>
1786
1787 * common/common-defs.h: Include errno.h.
1788 * defs.h: Do not include errno.h.
1789 * ada-typeprint.c: Likewise.
1790 * c-typeprint.c: Likewise.
1791 * core-regset.c: Likewise.
1792 * corefile.c: Likewise.
1793 * corelow.c: Likewise.
1794 * event-loop.c: Likewise.
1795 * f-typeprint.c: Likewise.
1796 * gnu-nat.c: Likewise.
1797 * go32-nat.c: Likewise.
1798 * i386gnu-nat.c: Likewise.
1799 * m2-typeprint.c: Likewise.
1800 * nat/linux-btrace.c: Likewise.
1801 * p-typeprint.c: Likewise.
1802 * procfs.c: Likewise.
1803 * remote-sim.c: Likewise.
1804 * rs6000-nat.c: Likewise.
1805 * target.c: Likewise.
1806 * typeprint.c: Likewise.
1807 * ui-file.c: Likewise.
1808 * valops.c: Likewise.
1809 * valprint.c: Likewise.
1810
1811 2014-08-07 Gary Benson <gbenson@redhat.com>
1812
1813 * common/common-defs.h: Include string.h.
1814 * aarch64-tdep.c: Do not include string.h.
1815 * ada-exp.y: Likewise.
1816 * ada-lang.c: Likewise.
1817 * ada-lex.l: Likewise.
1818 * ada-typeprint.c: Likewise.
1819 * ada-valprint.c: Likewise.
1820 * aix-thread.c: Likewise.
1821 * alpha-linux-tdep.c: Likewise.
1822 * alpha-mdebug-tdep.c: Likewise.
1823 * alpha-nat.c: Likewise.
1824 * alpha-osf1-tdep.c: Likewise.
1825 * alpha-tdep.c: Likewise.
1826 * alphanbsd-tdep.c: Likewise.
1827 * amd64-dicos-tdep.c: Likewise.
1828 * amd64-linux-tdep.c: Likewise.
1829 * amd64-nat.c: Likewise.
1830 * amd64-sol2-tdep.c: Likewise.
1831 * amd64fbsd-tdep.c: Likewise.
1832 * amd64obsd-tdep.c: Likewise.
1833 * arch-utils.c: Likewise.
1834 * arm-linux-nat.c: Likewise.
1835 * arm-linux-tdep.c: Likewise.
1836 * arm-tdep.c: Likewise.
1837 * arm-wince-tdep.c: Likewise.
1838 * armbsd-tdep.c: Likewise.
1839 * armnbsd-nat.c: Likewise.
1840 * armnbsd-tdep.c: Likewise.
1841 * armobsd-tdep.c: Likewise.
1842 * avr-tdep.c: Likewise.
1843 * ax-gdb.c: Likewise.
1844 * ax-general.c: Likewise.
1845 * bcache.c: Likewise.
1846 * bfin-tdep.c: Likewise.
1847 * breakpoint.c: Likewise.
1848 * build-id.c: Likewise.
1849 * buildsym.c: Likewise.
1850 * c-exp.y: Likewise.
1851 * c-lang.c: Likewise.
1852 * c-typeprint.c: Likewise.
1853 * c-valprint.c: Likewise.
1854 * charset.c: Likewise.
1855 * cli-out.c: Likewise.
1856 * cli/cli-cmds.c: Likewise.
1857 * cli/cli-decode.c: Likewise.
1858 * cli/cli-dump.c: Likewise.
1859 * cli/cli-interp.c: Likewise.
1860 * cli/cli-logging.c: Likewise.
1861 * cli/cli-script.c: Likewise.
1862 * cli/cli-setshow.c: Likewise.
1863 * cli/cli-utils.c: Likewise.
1864 * coffread.c: Likewise.
1865 * common/agent.c: Likewise.
1866 * common/buffer.c: Likewise.
1867 * common/buffer.h: Likewise.
1868 * common/common-utils.c: Likewise.
1869 * common/filestuff.c: Likewise.
1870 * common/filestuff.c: Likewise.
1871 * common/format.c: Likewise.
1872 * common/print-utils.c: Likewise.
1873 * common/rsp-low.c: Likewise.
1874 * common/signals.c: Likewise.
1875 * common/vec.h: Likewise.
1876 * common/xml-utils.c: Likewise.
1877 * core-regset.c: Likewise.
1878 * corefile.c: Likewise.
1879 * corelow.c: Likewise.
1880 * cp-abi.c: Likewise.
1881 * cp-name-parser.y: Likewise.
1882 * cp-support.c: Likewise.
1883 * cp-valprint.c: Likewise.
1884 * cris-tdep.c: Likewise.
1885 * d-exp.y: Likewise.
1886 * darwin-nat.c: Likewise.
1887 * dbxread.c: Likewise.
1888 * dcache.c: Likewise.
1889 * demangle.c: Likewise.
1890 * dicos-tdep.c: Likewise.
1891 * disasm.c: Likewise.
1892 * doublest.c: Likewise.
1893 * dsrec.c: Likewise.
1894 * dummy-frame.c: Likewise.
1895 * dwarf2-frame.c: Likewise.
1896 * dwarf2loc.c: Likewise.
1897 * dwarf2read.c: Likewise.
1898 * elfread.c: Likewise.
1899 * environ.c: Likewise.
1900 * eval.c: Likewise.
1901 * event-loop.c: Likewise.
1902 * exceptions.c: Likewise.
1903 * exec.c: Likewise.
1904 * expprint.c: Likewise.
1905 * f-exp.y: Likewise.
1906 * f-lang.c: Likewise.
1907 * f-typeprint.c: Likewise.
1908 * f-valprint.c: Likewise.
1909 * fbsd-nat.c: Likewise.
1910 * findcmd.c: Likewise.
1911 * findvar.c: Likewise.
1912 * fork-child.c: Likewise.
1913 * frame.c: Likewise.
1914 * frv-linux-tdep.c: Likewise.
1915 * frv-tdep.c: Likewise.
1916 * gdb.c: Likewise.
1917 * gdb_bfd.c: Likewise.
1918 * gdbarch.c: Likewise.
1919 * gdbarch.sh: Likewise.
1920 * gdbtypes.c: Likewise.
1921 * gnu-nat.c: Likewise.
1922 * gnu-v2-abi.c: Likewise.
1923 * gnu-v3-abi.c: Likewise.
1924 * go-exp.y: Likewise.
1925 * go-lang.c: Likewise.
1926 * go32-nat.c: Likewise.
1927 * guile/guile.c: Likewise.
1928 * guile/scm-auto-load.c: Likewise.
1929 * hppa-hpux-tdep.c: Likewise.
1930 * hppa-linux-nat.c: Likewise.
1931 * hppanbsd-tdep.c: Likewise.
1932 * hppaobsd-tdep.c: Likewise.
1933 * i386-cygwin-tdep.c: Likewise.
1934 * i386-dicos-tdep.c: Likewise.
1935 * i386-linux-tdep.c: Likewise.
1936 * i386-nto-tdep.c: Likewise.
1937 * i386-sol2-tdep.c: Likewise.
1938 * i386-tdep.c: Likewise.
1939 * i386bsd-tdep.c: Likewise.
1940 * i386gnu-nat.c: Likewise.
1941 * i386nbsd-tdep.c: Likewise.
1942 * i386obsd-tdep.c: Likewise.
1943 * i387-tdep.c: Likewise.
1944 * ia64-libunwind-tdep.c: Likewise.
1945 * ia64-linux-nat.c: Likewise.
1946 * inf-child.c: Likewise.
1947 * inf-ptrace.c: Likewise.
1948 * inf-ttrace.c: Likewise.
1949 * infcall.c: Likewise.
1950 * infcmd.c: Likewise.
1951 * inflow.c: Likewise.
1952 * infrun.c: Likewise.
1953 * interps.c: Likewise.
1954 * iq2000-tdep.c: Likewise.
1955 * irix5-nat.c: Likewise.
1956 * jv-exp.y: Likewise.
1957 * jv-lang.c: Likewise.
1958 * jv-typeprint.c: Likewise.
1959 * jv-valprint.c: Likewise.
1960 * language.c: Likewise.
1961 * linux-fork.c: Likewise.
1962 * linux-nat.c: Likewise.
1963 * lm32-tdep.c: Likewise.
1964 * m2-exp.y: Likewise.
1965 * m2-typeprint.c: Likewise.
1966 * m32c-tdep.c: Likewise.
1967 * m32r-linux-nat.c: Likewise.
1968 * m32r-linux-tdep.c: Likewise.
1969 * m32r-rom.c: Likewise.
1970 * m32r-tdep.c: Likewise.
1971 * m68hc11-tdep.c: Likewise.
1972 * m68k-tdep.c: Likewise.
1973 * m68kbsd-tdep.c: Likewise.
1974 * m68klinux-nat.c: Likewise.
1975 * m68klinux-tdep.c: Likewise.
1976 * m88k-tdep.c: Likewise.
1977 * machoread.c: Likewise.
1978 * macrocmd.c: Likewise.
1979 * main.c: Likewise.
1980 * mdebugread.c: Likewise.
1981 * mem-break.c: Likewise.
1982 * memattr.c: Likewise.
1983 * memory-map.c: Likewise.
1984 * mep-tdep.c: Likewise.
1985 * mi/mi-cmd-break.c: Likewise.
1986 * mi/mi-cmd-disas.c: Likewise.
1987 * mi/mi-cmd-env.c: Likewise.
1988 * mi/mi-cmd-stack.c: Likewise.
1989 * mi/mi-cmd-var.c: Likewise.
1990 * mi/mi-cmds.c: Likewise.
1991 * mi/mi-console.c: Likewise.
1992 * mi/mi-getopt.c: Likewise.
1993 * mi/mi-interp.c: Likewise.
1994 * mi/mi-main.c: Likewise.
1995 * mi/mi-parse.c: Likewise.
1996 * microblaze-rom.c: Likewise.
1997 * microblaze-tdep.c: Likewise.
1998 * mingw-hdep.c: Likewise.
1999 * minidebug.c: Likewise.
2000 * minsyms.c: Likewise.
2001 * mips-irix-tdep.c: Likewise.
2002 * mips-linux-tdep.c: Likewise.
2003 * mips-tdep.c: Likewise.
2004 * mips64obsd-tdep.c: Likewise.
2005 * mipsnbsd-tdep.c: Likewise.
2006 * mipsread.c: Likewise.
2007 * mn10300-linux-tdep.c: Likewise.
2008 * mn10300-tdep.c: Likewise.
2009 * monitor.c: Likewise.
2010 * moxie-tdep.c: Likewise.
2011 * mt-tdep.c: Likewise.
2012 * nat/linux-btrace.c: Likewise.
2013 * nat/linux-osdata.c: Likewise.
2014 * nat/linux-procfs.c: Likewise.
2015 * nat/linux-ptrace.c: Likewise.
2016 * nat/linux-waitpid.c: Likewise.
2017 * nbsd-tdep.c: Likewise.
2018 * nios2-linux-tdep.c: Likewise.
2019 * nto-procfs.c: Likewise.
2020 * nto-tdep.c: Likewise.
2021 * objc-lang.c: Likewise.
2022 * objfiles.c: Likewise.
2023 * opencl-lang.c: Likewise.
2024 * osabi.c: Likewise.
2025 * osdata.c: Likewise.
2026 * p-exp.y: Likewise.
2027 * p-lang.c: Likewise.
2028 * p-typeprint.c: Likewise.
2029 * parse.c: Likewise.
2030 * posix-hdep.c: Likewise.
2031 * ppc-linux-nat.c: Likewise.
2032 * ppc-sysv-tdep.c: Likewise.
2033 * ppcfbsd-tdep.c: Likewise.
2034 * ppcnbsd-tdep.c: Likewise.
2035 * ppcobsd-tdep.c: Likewise.
2036 * printcmd.c: Likewise.
2037 * procfs.c: Likewise.
2038 * prologue-value.c: Likewise.
2039 * python/py-auto-load.c: Likewise.
2040 * python/py-gdb-readline.c: Likewise.
2041 * ravenscar-thread.c: Likewise.
2042 * regcache.c: Likewise.
2043 * registry.c: Likewise.
2044 * remote-fileio.c: Likewise.
2045 * remote-m32r-sdi.c: Likewise.
2046 * remote-mips.c: Likewise.
2047 * remote-notif.c: Likewise.
2048 * remote-sim.c: Likewise.
2049 * remote.c: Likewise.
2050 * reverse.c: Likewise.
2051 * rs6000-aix-tdep.c: Likewise.
2052 * ser-base.c: Likewise.
2053 * ser-go32.c: Likewise.
2054 * ser-mingw.c: Likewise.
2055 * ser-pipe.c: Likewise.
2056 * ser-tcp.c: Likewise.
2057 * ser-unix.c: Likewise.
2058 * serial.c: Likewise.
2059 * sh-tdep.c: Likewise.
2060 * sh64-tdep.c: Likewise.
2061 * shnbsd-tdep.c: Likewise.
2062 * skip.c: Likewise.
2063 * sol-thread.c: Likewise.
2064 * solib-dsbt.c: Likewise.
2065 * solib-frv.c: Likewise.
2066 * solib-osf.c: Likewise.
2067 * solib-som.c: Likewise.
2068 * solib-spu.c: Likewise.
2069 * solib-target.c: Likewise.
2070 * solib.c: Likewise.
2071 * somread.c: Likewise.
2072 * source.c: Likewise.
2073 * sparc-nat.c: Likewise.
2074 * sparc-sol2-tdep.c: Likewise.
2075 * sparc-tdep.c: Likewise.
2076 * sparc64-tdep.c: Likewise.
2077 * sparc64fbsd-tdep.c: Likewise.
2078 * sparc64nbsd-tdep.c: Likewise.
2079 * sparcnbsd-tdep.c: Likewise.
2080 * spu-linux-nat.c: Likewise.
2081 * spu-multiarch.c: Likewise.
2082 * spu-tdep.c: Likewise.
2083 * stabsread.c: Likewise.
2084 * stack.c: Likewise.
2085 * std-regs.c: Likewise.
2086 * symfile.c: Likewise.
2087 * symmisc.c: Likewise.
2088 * symtab.c: Likewise.
2089 * target.c: Likewise.
2090 * thread.c: Likewise.
2091 * tilegx-linux-nat.c: Likewise.
2092 * tilegx-tdep.c: Likewise.
2093 * top.c: Likewise.
2094 * tracepoint.c: Likewise.
2095 * tui/tui-command.c: Likewise.
2096 * tui/tui-data.c: Likewise.
2097 * tui/tui-disasm.c: Likewise.
2098 * tui/tui-file.c: Likewise.
2099 * tui/tui-layout.c: Likewise.
2100 * tui/tui-out.c: Likewise.
2101 * tui/tui-regs.c: Likewise.
2102 * tui/tui-source.c: Likewise.
2103 * tui/tui-stack.c: Likewise.
2104 * tui/tui-win.c: Likewise.
2105 * tui/tui-windata.c: Likewise.
2106 * tui/tui-winsource.c: Likewise.
2107 * typeprint.c: Likewise.
2108 * ui-file.c: Likewise.
2109 * ui-out.c: Likewise.
2110 * user-regs.c: Likewise.
2111 * utils.c: Likewise.
2112 * v850-tdep.c: Likewise.
2113 * valarith.c: Likewise.
2114 * valops.c: Likewise.
2115 * valprint.c: Likewise.
2116 * value.c: Likewise.
2117 * varobj.c: Likewise.
2118 * vax-tdep.c: Likewise.
2119 * vaxnbsd-tdep.c: Likewise.
2120 * vaxobsd-tdep.c: Likewise.
2121 * windows-nat.c: Likewise.
2122 * xcoffread.c: Likewise.
2123 * xml-support.c: Likewise.
2124 * xstormy16-tdep.c: Likewise.
2125 * xtensa-linux-nat.c: Likewise.
2126
2127 2014-08-07 Gary Benson <gbenson@redhat.com>
2128
2129 * common/common-defs.h: Include gdb_assert.h.
2130 * aarch64-tdep.c: Do not include gdb_assert.h.
2131 * addrmap.c: Likewise.
2132 * aix-thread.c: Likewise.
2133 * alpha-linux-tdep.c: Likewise.
2134 * alpha-mdebug-tdep.c: Likewise.
2135 * alphanbsd-tdep.c: Likewise.
2136 * amd64-nat.c: Likewise.
2137 * amd64-tdep.c: Likewise.
2138 * amd64bsd-nat.c: Likewise.
2139 * amd64fbsd-nat.c: Likewise.
2140 * amd64fbsd-tdep.c: Likewise.
2141 * amd64nbsd-nat.c: Likewise.
2142 * amd64nbsd-tdep.c: Likewise.
2143 * amd64obsd-nat.c: Likewise.
2144 * amd64obsd-tdep.c: Likewise.
2145 * arch-utils.c: Likewise.
2146 * arm-tdep.c: Likewise.
2147 * armbsd-tdep.c: Likewise.
2148 * auxv.c: Likewise.
2149 * bcache.c: Likewise.
2150 * bfin-tdep.c: Likewise.
2151 * blockframe.c: Likewise.
2152 * breakpoint.c: Likewise.
2153 * bsd-kvm.c: Likewise.
2154 * bsd-uthread.c: Likewise.
2155 * buildsym.c: Likewise.
2156 * c-exp.y: Likewise.
2157 * c-lang.c: Likewise.
2158 * charset.c: Likewise.
2159 * cleanups.c: Likewise.
2160 * cli-out.c: Likewise.
2161 * cli/cli-decode.c: Likewise.
2162 * cli/cli-dump.c: Likewise.
2163 * cli/cli-logging.c: Likewise.
2164 * cli/cli-script.c: Likewise.
2165 * cli/cli-utils.c: Likewise.
2166 * coffread.c: Likewise.
2167 * common/common-utils.c: Likewise.
2168 * common/queue.h: Likewise.
2169 * common/signals.c: Likewise.
2170 * common/vec.h: Likewise.
2171 * complaints.c: Likewise.
2172 * completer.c: Likewise.
2173 * corelow.c: Likewise.
2174 * cp-abi.c: Likewise.
2175 * cp-name-parser.y: Likewise.
2176 * cp-namespace.c: Likewise.
2177 * cp-support.c: Likewise.
2178 * cris-tdep.c: Likewise.
2179 * dbxread.c: Likewise.
2180 * dictionary.c: Likewise.
2181 * doublest.c: Likewise.
2182 * dsrec.c: Likewise.
2183 * dummy-frame.c: Likewise.
2184 * dwarf2-frame-tailcall.c: Likewise.
2185 * dwarf2-frame.c: Likewise.
2186 * dwarf2expr.c: Likewise.
2187 * dwarf2loc.c: Likewise.
2188 * dwarf2read.c: Likewise.
2189 * eval.c: Likewise.
2190 * event-loop.c: Likewise.
2191 * exceptions.c: Likewise.
2192 * expprint.c: Likewise.
2193 * f-valprint.c: Likewise.
2194 * fbsd-nat.c: Likewise.
2195 * findvar.c: Likewise.
2196 * frame-unwind.c: Likewise.
2197 * frame.c: Likewise.
2198 * frv-tdep.c: Likewise.
2199 * gcore.c: Likewise.
2200 * gdb-dlfcn.c: Likewise.
2201 * gdb_bfd.c: Likewise.
2202 * gdbarch.c: Likewise.
2203 * gdbarch.sh: Likewise.
2204 * gdbtypes.c: Likewise.
2205 * gnu-nat.c: Likewise.
2206 * gnu-v3-abi.c: Likewise.
2207 * go-lang.c: Likewise.
2208 * guile/scm-exception.c: Likewise.
2209 * guile/scm-gsmob.c: Likewise.
2210 * guile/scm-lazy-string.c: Likewise.
2211 * guile/scm-math.c: Likewise.
2212 * guile/scm-pretty-print.c: Likewise.
2213 * guile/scm-safe-call.c: Likewise.
2214 * guile/scm-utils.c: Likewise.
2215 * guile/scm-value.c: Likewise.
2216 * h8300-tdep.c: Likewise.
2217 * hppa-hpux-nat.c: Likewise.
2218 * hppa-tdep.c: Likewise.
2219 * hppanbsd-tdep.c: Likewise.
2220 * hppaobsd-tdep.c: Likewise.
2221 * i386-darwin-nat.c: Likewise.
2222 * i386-darwin-tdep.c: Likewise.
2223 * i386-nto-tdep.c: Likewise.
2224 * i386-tdep.c: Likewise.
2225 * i386bsd-nat.c: Likewise.
2226 * i386fbsd-tdep.c: Likewise.
2227 * i386gnu-nat.c: Likewise.
2228 * i386nbsd-tdep.c: Likewise.
2229 * i386obsd-tdep.c: Likewise.
2230 * i387-tdep.c: Likewise.
2231 * ia64-libunwind-tdep.c: Likewise.
2232 * ia64-tdep.c: Likewise.
2233 * inf-ptrace.c: Likewise.
2234 * inf-ttrace.c: Likewise.
2235 * infcall.c: Likewise.
2236 * infcmd.c: Likewise.
2237 * infrun.c: Likewise.
2238 * inline-frame.c: Likewise.
2239 * interps.c: Likewise.
2240 * jv-lang.c: Likewise.
2241 * jv-typeprint.c: Likewise.
2242 * linux-fork.c: Likewise.
2243 * linux-nat.c: Likewise.
2244 * linux-thread-db.c: Likewise.
2245 * m32c-tdep.c: Likewise.
2246 * m32r-linux-nat.c: Likewise.
2247 * m32r-tdep.c: Likewise.
2248 * m68k-tdep.c: Likewise.
2249 * m68kbsd-nat.c: Likewise.
2250 * m68kbsd-tdep.c: Likewise.
2251 * m88k-tdep.c: Likewise.
2252 * machoread.c: Likewise.
2253 * macroexp.c: Likewise.
2254 * macrotab.c: Likewise.
2255 * maint.c: Likewise.
2256 * mdebugread.c: Likewise.
2257 * memory-map.c: Likewise.
2258 * mep-tdep.c: Likewise.
2259 * mi/mi-common.c: Likewise.
2260 * microblaze-tdep.c: Likewise.
2261 * mingw-hdep.c: Likewise.
2262 * mips-linux-nat.c: Likewise.
2263 * mips-linux-tdep.c: Likewise.
2264 * mips-tdep.c: Likewise.
2265 * mips64obsd-tdep.c: Likewise.
2266 * mipsnbsd-tdep.c: Likewise.
2267 * mn10300-linux-tdep.c: Likewise.
2268 * mn10300-tdep.c: Likewise.
2269 * moxie-tdep.c: Likewise.
2270 * mt-tdep.c: Likewise.
2271 * nat/linux-btrace.c: Likewise.
2272 * nat/linux-osdata.c: Likewise.
2273 * nat/linux-ptrace.c: Likewise.
2274 * nat/mips-linux-watch.c: Likewise.
2275 * nios2-linux-tdep.c: Likewise.
2276 * nios2-tdep.c: Likewise.
2277 * objc-lang.c: Likewise.
2278 * objfiles.c: Likewise.
2279 * obsd-nat.c: Likewise.
2280 * opencl-lang.c: Likewise.
2281 * osabi.c: Likewise.
2282 * parse.c: Likewise.
2283 * ppc-linux-nat.c: Likewise.
2284 * ppc-sysv-tdep.c: Likewise.
2285 * ppcfbsd-nat.c: Likewise.
2286 * ppcfbsd-tdep.c: Likewise.
2287 * ppcnbsd-nat.c: Likewise.
2288 * ppcnbsd-tdep.c: Likewise.
2289 * ppcobsd-nat.c: Likewise.
2290 * ppcobsd-tdep.c: Likewise.
2291 * printcmd.c: Likewise.
2292 * procfs.c: Likewise.
2293 * prologue-value.c: Likewise.
2294 * psymtab.c: Likewise.
2295 * python/py-lazy-string.c: Likewise.
2296 * python/py-value.c: Likewise.
2297 * regcache.c: Likewise.
2298 * reggroups.c: Likewise.
2299 * registry.c: Likewise.
2300 * remote-sim.c: Likewise.
2301 * remote.c: Likewise.
2302 * rs6000-aix-tdep.c: Likewise.
2303 * rs6000-tdep.c: Likewise.
2304 * s390-linux-tdep.c: Likewise.
2305 * score-tdep.c: Likewise.
2306 * ser-base.c: Likewise.
2307 * ser-mingw.c: Likewise.
2308 * sh-tdep.c: Likewise.
2309 * sh64-tdep.c: Likewise.
2310 * solib-darwin.c: Likewise.
2311 * solib-spu.c: Likewise.
2312 * solib-svr4.c: Likewise.
2313 * source.c: Likewise.
2314 * sparc-nat.c: Likewise.
2315 * sparc-sol2-tdep.c: Likewise.
2316 * sparc-tdep.c: Likewise.
2317 * sparc64-sol2-tdep.c: Likewise.
2318 * sparc64-tdep.c: Likewise.
2319 * sparc64fbsd-tdep.c: Likewise.
2320 * sparc64nbsd-tdep.c: Likewise.
2321 * sparc64obsd-tdep.c: Likewise.
2322 * sparcnbsd-tdep.c: Likewise.
2323 * sparcobsd-tdep.c: Likewise.
2324 * spu-multiarch.c: Likewise.
2325 * spu-tdep.c: Likewise.
2326 * stabsread.c: Likewise.
2327 * stack.c: Likewise.
2328 * symfile.c: Likewise.
2329 * symtab.c: Likewise.
2330 * target-descriptions.c: Likewise.
2331 * target-memory.c: Likewise.
2332 * target.c: Likewise.
2333 * tic6x-linux-tdep.c: Likewise.
2334 * tic6x-tdep.c: Likewise.
2335 * tilegx-linux-nat.c: Likewise.
2336 * tilegx-tdep.c: Likewise.
2337 * top.c: Likewise.
2338 * tramp-frame.c: Likewise.
2339 * tui/tui-out.c: Likewise.
2340 * tui/tui-winsource.c: Likewise.
2341 * ui-out.c: Likewise.
2342 * user-regs.c: Likewise.
2343 * utils.c: Likewise.
2344 * v850-tdep.c: Likewise.
2345 * valops.c: Likewise.
2346 * value.c: Likewise.
2347 * varobj.c: Likewise.
2348 * vax-nat.c: Likewise.
2349 * xml-syscall.c: Likewise.
2350 * xml-tdesc.c: Likewise.
2351 * xstormy16-tdep.c: Likewise.
2352 * xtensa-linux-nat.c: Likewise.
2353 * xtensa-tdep.c: Likewise.
2354
2355 2014-08-07 Gary Benson <gbenson@redhat.com>
2356
2357 * common/common-defs.h: Include common-utils.h.
2358 * defs.h: Do not include common-utils.h.
2359 * common/gdb_assert.h: Likewise.
2360 * darwin-nat.h: Likewise.
2361 * nat/linux-btrace.c: Likewise.
2362 * target/waitstatus.h: Likewise.
2363
2364 2014-08-07 Gary Benson <gbenson@redhat.com>
2365
2366 * common/common-defs.h: Include ptid.h.
2367 * defs.h: Do not include ptid.h.
2368 * inferior.h: Likewise.
2369 * infrun.h: Likewise.
2370 * nat/linux-btrace.h: Likewise.
2371 * nat/linux-osdata.h: Likewise.
2372 * target/waitstatus.h: Likewise.
2373
2374 2014-08-07 Gary Benson <gbenson@redhat.com>
2375
2376 * common/common-defs.h: Include gdb_locale.h.
2377 * defs.h: Do not include gdb_locale.h.
2378
2379 2014-08-07 Gary Benson <gbenson@redhat.com>
2380
2381 * common/common-defs.h: Include gdb/signals.h.
2382 * defs.h: Do not include gdb/signals.h.
2383
2384 2014-08-07 Gary Benson <gbenson@redhat.com>
2385
2386 * common/common-defs.h: Include pathmax.h.
2387 * defs.h: Do not include pathmax.h.
2388
2389 2014-08-07 Gary Benson <gbenson@redhat.com>
2390
2391 * common/common-defs.h: Include libiberty.h.
2392 * defs.h: Do not include libiberty.h.
2393 * common/queue.h: Likewise.
2394 * cp-name-parser.y: Likewise.
2395 * mi/mi-cmd-catch.c: Likewise.
2396 * python/python.c: Likewise.
2397
2398 2014-08-07 Gary Benson <gbenson@redhat.com>
2399
2400 * common/common-defs.h: Include ansidecl.h.
2401 * defs.h: Do not include ansidecl.h.
2402 * common/buffer.h: Likewise.
2403 * common/common-utils.h: Likewise.
2404
2405 2014-08-07 Gary Benson <gbenson@redhat.com>
2406
2407 * common/common-defs.h: Include stddef.h.
2408 * defs.h: Do not include stddef.h.
2409 * common/common-utils.h: Likewise.
2410 * amd64fbsd-nat.c: Likewise.
2411 * bcache.c: Likewise.
2412 * charset.c: Likewise.
2413 * common/buffer.h: Likewise.
2414 * common/vec.h: Likewise.
2415 * i386bsd-nat.c: Likewise.
2416 * nat/linux-btrace.h: Likewise.
2417 * ppcfbsd-nat.c: Likewise.
2418 * ppcnbsd-tdep.h: Likewise.
2419 * ppcobsd-nat.c: Likewise.
2420 * ppcobsd-tdep.h: Likewise.
2421 * python/py-gdb-readline.c: Likewise.
2422
2423 2014-08-07 Gary Benson <gbenson@redhat.com>
2424
2425 * common/common-defs.h: Include stdarg.h.
2426 * defs.h: Do not include stdarg.h.
2427 * ada-lang.c: Likewise.
2428 * common/common-utils.h: Likewise.
2429 * guile/scm-string.c: Likewise.
2430 * guile/scm-utils.c: Likewise.
2431 * m32c-tdep.c: Likewise.
2432
2433 2014-08-07 Gary Benson <gbenson@redhat.com>
2434
2435 * common/common-defs.h: Include stdlib.h.
2436 * defs.h: Do not include stdlib.h.
2437 * addrmap.c: Likewise.
2438 * bcache.c: Likewise.
2439 * common/buffer.c: Likewise.
2440 * common/common-utils.c: Likewise.
2441 * cp-name-parser.y: Likewise.
2442 * go32-nat.c: Likewise.
2443 * mn10300-linux-tdep.c: Likewise.
2444 * nat/linux-osdata.c: Likewise.
2445 * tui/tui.c: Likewise.
2446 * windows-nat.c: Likewise.
2447
2448 2014-08-07 Gary Benson <gbenson@redhat.com>
2449
2450 * common/common-defs.h: Include stdio.h.
2451 * defs.h: Do not include stdio.h.
2452 * ada-lang.c: Likewise.
2453 * common/buffer.c: Likewise.
2454 * common/common-utils.c: Likewise.
2455 * cp-name-parser.y: Likewise.
2456 * gnu-nat.c: Likewise.
2457 * go32-nat.c: Likewise.
2458 * i386gnu-nat.c: Likewise.
2459 * proc-api.c: Likewise.
2460 * proc-events.c: Likewise.
2461 * proc-flags.c: Likewise.
2462 * proc-why.c: Likewise.
2463 * python/python-internal.h: Likewise.
2464 * target-memory.c: Likewise.
2465 * tui/tui-io.c: Likewise.
2466 * tui/tui.c: Likewise.
2467
2468 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2469
2470 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2471 (scan_dyntag_auxv): Same.
2472
2473 2014-08-06 Yao Qi <yao@codesourcery.com>
2474
2475 * amd64-linux-nat.c: Remove duplicated include
2476 "x86-linux-nat.h".
2477 * i386-linux-nat.c: Likewise.
2478
2479 2014-08-06 Yao Qi <yao@codesourcery.com>
2480
2481 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2482 operand" with "Special opcode" in comments.
2483
2484 2014-08-05 Gary Benson <gbenson@redhat.com>
2485
2486 * interps.c (initialize_interps): Remove prototype.
2487 (interpreter_initialized): Remove static global.
2488 (interp_add): Do not call initialize_interps.
2489 (initialize_interps): Remove function.
2490
2491 2014-08-05 Gary Benson <gbenson@redhat.com>
2492
2493 * utils.c (vwarning): Remove spurious va_end.
2494
2495 2014-08-05 Alan Modra <amodra@gmail.com>
2496
2497 * charset.c (convert_between_encodings): Cast result of obstack_base.
2498 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2499 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2500 (read_unwind_info): Use size_t for some locals.
2501 * jit.c (finalize_symtab): Likewise.
2502 * utils.c (hashtab_obstack_allocate): Likewise.
2503 * symmisc.c (print_objfile_statistics): Update format strings.
2504
2505 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2506
2507 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2508 (Changes in GDB 7.8): ... here.
2509
2510 2014-08-04 Tom Tromey <tromey@redhat.com>
2511
2512 * target.c (set_targetdebug): New function.
2513 (initialize_targets): Pass set_targetdebug when creating "set
2514 debug target".
2515
2516 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2517
2518 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2519 if detecting a variable-sized field that is not the last field.
2520 Fix struct type length computation.
2521
2522 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2523
2524 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2525 Add debug trace.
2526
2527 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2528
2529 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2530 Remove "+ 8" offset in computation of CHAIN_VMA.
2531
2532 2014-07-31 Doug Evans <dje@google.com>
2533
2534 * inflow.c (child_terminal_inferior): Add comment.
2535 (child_terminal_ours_for_output): Add comment.
2536 (child_terminal_ours): Add comment.
2537 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2538 (linux_nat_terminal_ours): Add comment.
2539
2540 2014-07-31 Gary Benson <gbenson@redhat.com>
2541
2542 * common/btrace-common.h: Do not include defs.h or server.h.
2543 * nat/mips-linux-watch.h: Likewise.
2544 * gdb-dlfcn.h: Do not include defs.h.
2545 * tracefile.h: Likewise.
2546
2547 2014-07-30 Roland McGrath <mcgrathr@google.com>
2548
2549 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2550
2551 2014-07-30 Tom Tromey <tromey@redhat.com>
2552
2553 * bsd-kvm.c (bsd_kvm_open): Constify.
2554 * corelow.c (core_open): Constify.
2555 * ctf.c (ctf_open): Constify.
2556 * dbug-rom.c (dbug_open): Constify.
2557 * exec.c (exec_open): Constify.
2558 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2559 * microblaze-rom.c (picobug_open): Constify.
2560 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2561 Constify.
2562 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2563 * record-btrace.c (record_btrace_open): Constify.
2564 * record-full.c (record_full_core_open_1, record_full_open_1)
2565 (record_full_open): Constify.
2566 * remote-m32r-sdi.c (m32r_open): Constify.
2567 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2568 (rockhopper_open, lsi_open): Constify.
2569 * remote-sim.c (gdbsim_open): Constify.
2570 * remote.c (remote_open, extended_remote_open, remote_open_1):
2571 Constify.
2572 * target.h (struct target_ops) <to_open>: Make "arg" const.
2573 * tracefile-tfile.c (tfile_open): Constify.
2574
2575 2014-07-30 Tom Tromey <tromey@redhat.com>
2576
2577 * breakpoint.c (map_breakpoint_numbers): Update.
2578 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2579 (get_number_const): New function.
2580 (get_number): Rewrite using get_number_const.
2581 (init_number_or_range): Make "string" const.
2582 (number_is_in_list): Make "list" const.
2583 * cli/cli-utils.h (get_number_const): Declare.
2584 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2585 (init_number_or_range, number_is_in_list): Update.
2586 * printcmd.c (map_display_numbers): Update.
2587 * value.c (value_from_history_ref): Constify.
2588 * value.h (value_from_history_ref): Update.
2589
2590 2014-07-30 Tom Tromey <tromey@redhat.com>
2591
2592 * corefile.c (hook_type, call_extra_exec_file_hooks)
2593 (specify_exec_file_hook): Constify.
2594 * exec.c (exec_file_attach): Make "filename" const.
2595 * gdbcore.h (deprecated_exec_file_display_hook)
2596 (specify_exec_file_hook, exec_file_attach): Constify.
2597 * main.c (captured_main): Use catch_command_errors_const.
2598
2599 2014-07-30 Tom Tromey <tromey@redhat.com>
2600
2601 * target.c (open_target): New function.
2602 (add_target_with_completer, add_deprecated_target_alias): Use
2603 set_cmd_sfunc, set_cmd_context.
2604 (debug_to_open): Remove.
2605 (setup_target_debug): Update.
2606
2607 2014-07-30 Yao Qi <yao@codesourcery.com>
2608
2609 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2610 comments.
2611 * parse.c (exp_iterate): Update comments.
2612
2613 2014-07-30 Gary Benson <gbenson@redhat.com>
2614
2615 * common/common-defs.h: New file.
2616 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2617 * defs.h: Include common-defs.h.
2618 Do not include config.h or build-gnulib/config.h.
2619
2620 2014-07-30 Gary Benson <gbenson@redhat.com>
2621
2622 * common/common-utils.h: Do not include config.h.
2623 * nat/linux-btrace.h: Likewise.
2624
2625 2014-07-30 Gary Benson <gbenson@redhat.com>
2626
2627 * btrace.c: Include defs.h.
2628 * common/ptid.c: Include defs.h or server.h as appropriate.
2629 * nat/mips-linux-watch.c: Likewise.
2630
2631 2014-07-29 Tom Tromey <tromey@redhat.com>
2632
2633 * target.c (target_is_pushed): Simplify.
2634
2635 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2636
2637 GDB 7.8 released.
2638
2639 2014-07-29 Yao Qi <yao@codesourcery.com>
2640
2641 PR gdb/17206
2642 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2643
2644 2014-07-28 Doug Evans <xdje42@gmail.com>
2645
2646 PR guile/17203
2647 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2648 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2649 parameters.
2650
2651 2014-07-28 Will Newton <will.newton@linaro.org>
2652
2653 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2654 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2655 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2656 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2657 (THUMB2_EABI_SYSCALL): Likewise.
2658 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2659 struct tramp_frame.
2660 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2661 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2662
2663 2014-07-27 Doug Evans <xdje42@gmail.com>
2664
2665 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2666
2667 2014-07-27 Doug Evans <xdje42@gmail.com>
2668
2669 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2670
2671 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2672 Doug Evans <xdje42@gmail.com>
2673
2674 PR guile/17146
2675 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2676 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2677 * configure.ac: Try to use guild to compile an scm file, if it fails
2678 then disable guile support.
2679 * configure: Regenerate.
2680 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2681 GUILE_FILE_LIST.
2682 (GUILE_COMPILED_FILES): New variable.
2683 (GUILE_FILES) Update.
2684 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2685 (stamp-guile): Compile scm files.
2686 * guile/guile.c (boot_guile_support): New function.
2687 (standard_throw_args_p): New function.
2688 (print_standard_throw_error, print_throw_error): New functions.
2689 (handle_boot_error): New function.
2690 (initialize_scheme_side): Rewrite to call boot_guile_support.
2691 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2692 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2693
2694 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2695 Doug Evans <xdje42@gmail.com>
2696
2697 PR guile/17146
2698 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2699 * guile/lib/gdb/support.scm: New file.
2700 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2701 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2702 All uses updated.
2703 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2704 All uses updated.
2705 (%assert-type): Ditto, and renamed to assert-type.
2706 (%exception-print-style): Delete.
2707
2708 2014-07-26 Doug Evans <xdje42@gmail.com>
2709
2710 PR build/17105
2711 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2712 * configure: Regenerate.
2713 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2714 PYTHON_FILES.
2715 (PYTHON_FILES): New variable.
2716 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2717 (GUILE_FILES): New variable.
2718 (stamp-python, install-python, uninstall-python): Handle empty
2719 file list.
2720 (stamp-guile, install-guile, uninstall-guile): Ditto.
2721
2722 2014-07-26 Doug Evans <xdje42@gmail.com>
2723
2724 PR guile/17177
2725 * guile/lib/gdb.scm (pretty-printers): Export.
2726 (set-pretty-printers!): Export.
2727 * guile/lib/gdb/printing.scm (gdb module): Update.
2728 (prepend-pretty-printer!, append-pretty-printer!): Update.
2729 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2730 (pretty_printer_list_var): Delete.
2731 (pretty_printer_list): New static global.
2732 (gdbscm_pretty_printers): New function.
2733 (gdbscm_set_pretty_printers_x): New function.
2734 (ppscm_find_pretty_printer_from_gdb): Update.
2735 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2736 (gdbscm_initialize_pretty_printers): Update.
2737
2738 2014-07-26 Doug Evans <xdje42@gmail.com>
2739
2740 PR 17185
2741 * configure.ac: Add check for header gc/gc.h.
2742 Add check for function setenv.
2743 * configure: Regenerate.
2744 * config.in: Regenerate.
2745 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2746
2747 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2748
2749 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2750 variation in gdbarch matching.
2751
2752 2014-07-25 Tom Tromey <tromey@redhat.com>
2753
2754 * exec.c (using_exec_ops): Remove.
2755 (exec_close_1): Update. Remove extraneous block, reindent.
2756 (add_target_sections): Use target_is_pushed.
2757
2758 2014-07-25 Pedro Alves <palves@redhat.com>
2759
2760 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2761 * monitor.c (monitor_create_inferior): Likewise.
2762 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2763 * remote-sim.c (gdbsim_create_inferior): Likewise.
2764 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2765 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2766 * windows-nat.c (do_initial_windows_stuff): Likewise.
2767
2768 2014-07-25 Pedro Alves <palves@redhat.com>
2769
2770 * NEWS: Mention signal passing and "signal" command changes.
2771 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2772 comment.
2773 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2774 call.
2775 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2776 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2777 (jump_command): Adjust clear_proceed_status call.
2778 (signal_command): Warn if other thread that are resumed have
2779 signals that will be delivered. Adjust clear_proceed_status call.
2780 (until_next_command, finish_command)
2781 (proceed_after_attach_callback, attach_command_post_wait)
2782 (attach_command): Adjust clear_proceed_status call.
2783 * infrun.c (proceed_after_vfork_done): Likewise.
2784 (proceed_after_attach_callback): Adjust comment.
2785 (clear_proceed_status_thread): Clear stop_signal if not in pass
2786 state.
2787 (clear_proceed_status_callback): Delete.
2788 (clear_proceed_status): New 'step' parameter. Only clear the
2789 proceed status of threads the command being prepared is about to
2790 resume.
2791 (proceed): If passed in an explicit signal, override stop_signal
2792 with it. Don't pass the last stop signal to the thread we're
2793 resuming.
2794 (init_wait_for_inferior): Adjust clear_proceed_status call.
2795 (switch_back_to_stepped_thread): Clear the signal if it should not
2796 be passed.
2797 * infrun.h (clear_proceed_status): New 'step' parameter.
2798 (user_visible_resume_ptid): Add comment.
2799 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2800 signal is in pass state.
2801 * remote.c (append_pending_thread_resumptions): Likewise.
2802 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2803
2804 2014-07-25 Tom Tromey <tromey@redhat.com>
2805
2806 * target.h (target_stopped_data_address)
2807 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2808 parentheses.
2809
2810 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2811
2812 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2813 comments.
2814 (avr_pointer_to_address): Likewise.
2815
2816 2014-07-24 Tom Tromey <tromey@redhat.com>
2817
2818 * monitor.c (compile_pattern): Update.
2819 * target.h (struct target_ops) <to_shortname, to_longname,
2820 to_doc>: Now const.
2821
2822 2014-07-24 Tom Tromey <tromey@redhat.com>
2823
2824 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2825 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2826 (add_info_alias, add_com): Make "doc" const.
2827 (print_doc_line): Make "str" const.
2828 (delete_cmd): Update.
2829 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2830 (print_doc_line): Update.
2831 * cli/cli-script.c (document_command): Update.
2832 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2833 (add_com, add_info, add_info_alias): Update.
2834 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2835 * python/py-cmd.c (cmdpy_destroyer): Update.
2836
2837 2014-07-24 Tom Tromey <tromey@redhat.com>
2838
2839 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2840 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2841 (help_cmd_list): Constify.
2842 (lookup_cmd): Update.
2843 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2844 const.
2845 (help_cmd_list, apropos_cmd): Update.
2846 * cli/cli-script.c (show_user): Update.
2847 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2848 * cli/cli-setshow.h (cmd_show_list): Update.
2849 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2850 (cmd_show_list): Update.
2851 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2852 * python/py-cmd.c (cmdpy_destroyer): Update.
2853
2854 2014-07-24 Tom Tromey <tromey@redhat.com>
2855
2856 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2857 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2858 const.
2859 * command.h (deprecate_cmd): Update.
2860 * maint.c (maintenance_do_deprecate): Add casts.
2861
2862 2014-07-24 Tom Tromey <tromey@redhat.com>
2863
2864 * cli/cli-decode.c (help_cmd): Make parameter "const".
2865 * cli/cli-decode.h (help_cmd): Update.
2866
2867 2014-07-24 Tom Tromey <tromey@redhat.com>
2868
2869 * stack.c (up_silently_base, down_silently_base): Make argument
2870 const.
2871
2872 2014-07-24 Tom Tromey <tromey@redhat.com>
2873
2874 * solib.c (solib_add): Make "pattern" const.
2875 * solib.h (solib_add): Update.
2876
2877 2014-07-24 Tom Tromey <tromey@redhat.com>
2878
2879 * remote.c (remote_serial_open, print_packet, putpkt)
2880 (putpkt_binary): Constify.
2881 * remote.h (putpkt): Update.
2882
2883 2014-07-24 Tom Tromey <tromey@redhat.com>
2884
2885 * monitor.c (monitor_open): Make "args" const.
2886 * monitor.h (monitor_open): Update.
2887
2888 2014-07-24 Tom Tromey <tromey@redhat.com>
2889
2890 * maint.c (match_bfd_flags): Make "string" const.
2891 (print_bfd_section_info): Remove casts.
2892 (print_objfile_section_info): Make "string" const.
2893
2894 2014-07-24 Tom Tromey <tromey@redhat.com>
2895
2896 * inf-child.c (inf_child_open_target): Make "arg" const.
2897 * inf-child.h (inf_child_open_target): Update.
2898
2899 2014-07-24 Tom Tromey <tromey@redhat.com>
2900
2901 * environ.c (unset_in_environ): Make "var" const.
2902 * environ.h (unset_in_environ): Update.
2903
2904 2014-07-24 Tom Tromey <tromey@redhat.com>
2905
2906 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2907 Make "cmd" const.
2908 (scan_filename_with_cleanup): Likewise.
2909 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2910 Make arguments const.
2911 (restore_command): Update.
2912
2913 2014-07-24 Pedro Alves <palves@redhat.com>
2914
2915 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2916
2917 2014-07-24 Tom Tromey <tromey@redhat.com>
2918 Gary Benson <gbenson@redhat.com>
2919
2920 * nat/linux-ptrace.c (additional_flags): New global.
2921 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2922 additional_flags; don't check GDBSERVER.
2923 (linux_ptrace_set_additional_flags): New function.
2924 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2925 Declare.
2926 * linux-nat.c (_initialize_linux_nat): Call
2927 linux_ptrace_set_additional_flags.
2928
2929 2014-07-24 Tom Tromey <tromey@redhat.com>
2930
2931 * make-target-delegates (munge_type, write_debugmethod): New
2932 functions.
2933 (debug_names): New global.
2934 ($TARGET_DEBUG_PRINTER): New global.
2935 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2936 name.
2937 Write debug methods. Generate init_debug_target.
2938 * target-debug.h: New file.
2939 * target-delegates.c: Rebuild.
2940 * target.c: Include target-debug.h.
2941 (debug_target): Hoist definition.
2942 (target_kill, target_get_section_table, target_memory_map)
2943 (target_flash_erase, target_flash_done, target_detach)
2944 (target_disconnect, target_wait, target_resume)
2945 (target_pass_signals, target_program_signals, target_follow_fork)
2946 (target_mourn_inferior, target_search_memory)
2947 (target_thread_address_space, target_close)
2948 (target_find_new_threads, target_core_of_thread)
2949 (target_verify_memory, target_insert_mask_watchpoint)
2950 (target_remove_mask_watchpoint): Remove targetdebug code.
2951 (debug_to_post_attach, debug_to_prepare_to_store)
2952 (debug_to_files_info, debug_to_insert_breakpoint)
2953 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2954 (debug_to_region_ok_for_hw_watchpoint)
2955 (debug_to_can_accel_watchpoint_condition)
2956 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2957 (debug_to_watchpoint_addr_within_range)
2958 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2959 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2960 (debug_to_terminal_init, debug_to_terminal_inferior)
2961 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2962 (debug_to_terminal_save_ours, debug_to_terminal_info)
2963 (debug_to_load, debug_to_post_startup_inferior)
2964 (debug_to_insert_fork_catchpoint)
2965 (debug_to_remove_fork_catchpoint)
2966 (debug_to_insert_vfork_catchpoint)
2967 (debug_to_remove_vfork_catchpoint)
2968 (debug_to_insert_exec_catchpoint)
2969 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2970 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2971 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2972 (setup_target_debug): Call init_debug_target.
2973 * target.h (TARGET_DEBUG_PRINTER): New macro.
2974 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2975 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2976
2977 2014-07-24 Gary Benson <gbenson@redhat.com>
2978
2979 * exceptions.h (throw_vfatal): Renamed to...
2980 (throw_vquit): New declaration.
2981 (throw_quit): Likewise.
2982 * exceptions.c (throw_vfatal): Renamed to...
2983 (throw_vquit): New function.
2984 (throw_quit): Likewise.
2985 (throw_error): Call throw_verror rather than throw_it.
2986 * utils.h (vfatal): Removed.
2987 (fatal): Likewise.
2988 * utils.c (vfatal): Removed.
2989 (fatal): Likewise.
2990 (internal_verror): Replaced call to fatal with call to throw_quit.
2991 (quit): Replaced calls to fatal with calls to throw_quit.
2992
2993 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2994
2995 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2996 target_read_code.
2997
2998 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2999
3000 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3001 less than zero in conditional expression.
3002
3003 2014-07-23 Tom Tromey <tromey@redhat.com>
3004
3005 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3006 ($INTRO_PART): Don't match whitespace.
3007 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3008 argument matching.
3009 ($METHOD): Add $METHOD_TRAILER.
3010 (trim): Rewrite.
3011 (scan_target_h): New sub.
3012 Change main loop not to collect state.
3013 * target-delegates.c: Rebuild.
3014
3015 2014-07-23 Gary Benson <gbenson@redhat.com>
3016
3017 * cp-support.c (gdb_demangle): Fix build on systems without
3018 sigaltstack.
3019
3020 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3021
3022 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3023 for reference entry value target data value.
3024
3025 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3026
3027 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3028 value_available_contents_eq.
3029
3030 2014-07-22 Pedro Alves <palves@redhat.com>
3031
3032 * value.c (allocate_optimized_out_value): Don't mark value as
3033 non-lazy.
3034
3035 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3036
3037 * MAINTAINERS (Write After Approval): Update my email address.
3038
3039 2014-07-20 Doug Evans <dje@google.com>
3040
3041 PR server/17147
3042 * remote.c (putpkt_binary): Add text to error message.
3043
3044 2014-07-20 Yao Qi <yao@codesourcery.com>
3045
3046 * eval.c: Remove "Chill" from comments.
3047 * gdbtypes.h: Likewise.
3048 * symtab.h: Likewise.
3049
3050 2014-07-20 Yao Qi <yao@codesourcery.com>
3051
3052 * std-operator.def: Update comments to TERNOP_SLICE.
3053
3054 2014-07-20 Yao Qi <yao@codesourcery.com>
3055
3056 * std-operator.def: Remove BINOP_RANGE.
3057 * breakpoint.c (watchpoint_exp_is_const): Update.
3058 * expprint.c (dump_subexp_body_standard): Likewise.
3059 * eval.c (init_array_element): Remove dead code.
3060 (evaluate_subexp_standard): Likewise.
3061
3062 2014-07-20 Yao Qi <yao@codesourcery.com>
3063
3064 * std-operator.def: Remove BINOP_IN.
3065 * breakpoint.c (watchpoint_exp_is_const): Update.
3066 * eval.c (evaluate_subexp_standard): Likewise.
3067 * expprint.c (dump_subexp_body_standard): Likewise.
3068
3069 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3070
3071 * microblaze-tdep.c (microblaze_register_names): Add
3072 the rshr and rslr register names.
3073 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3074 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3075 Use of tdesc_numbered_register. Use of
3076 microblaze_register_g_packet_guesses. Use of
3077 tdesc_use_registers. Use of set_gdbarch_register_type.
3078 (microblaze_register_g_packet_guesses): New.
3079 * microblaze-tdep.h (microblaze_reg_num): Add
3080 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3081 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3082 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3083 * features/microblaze-core.xml: New file.
3084 * features/microblaze-stack-protect.xml: New file.
3085 * features/microblaze-with-stack-protect.c: New file.
3086 * features/microblaze-with-stack-protect.xml: New file.
3087 * features/microblaze.xml: New file.
3088 * features/microblaze.c: New file.
3089 * features/Makefile (microblaze-with-stack-protect): Add
3090 microblaze-with-stack-protect microblaze and microblaze-expedite.
3091 * regformats/microblaze-with-stack-protect.dat: New file.
3092 * regformats/microblaze.dat: New file.
3093 * doc/gdb.texinfo (MicroBlaze Features): Added.
3094
3095 2014-07-18 Tom Tromey <tromey@redhat.com>
3096
3097 * exec.c (exec_ops): Now static.
3098 * exec.h (exec_ops): Don't declare.
3099
3100 2014-07-18 Tom Tromey <tromey@redhat.com>
3101
3102 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3103 to find_target_beneath.
3104 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3105 find_target_beneath.
3106 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3107
3108 2014-07-18 Tom Tromey <tromey@redhat.com>
3109
3110 PR gdb/17130:
3111 * utils.c (quit): Use target_supports_terminal_ours.
3112 * target.h (target_supports_terminal_ours): Declare.
3113 * target.c (target_supports_delete_record): Don't check
3114 to_delete_record against NULL.
3115 (target_supports_terminal_ours): New function.
3116
3117 2014-07-18 Tom Tromey <tromey@redhat.com>
3118
3119 PR gdb/17130:
3120 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3121 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3122 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3123 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3124 * windows-nat.c (windows_xfer_partial): Always delegate.
3125 * record-btrace.c (record_btrace_xfer_partial): Simplify
3126 delegation.
3127 (record_btrace_fetch_registers, record_btrace_store_registers)
3128 (record_btrace_prepare_to_store, record_btrace_resume)
3129 (record_btrace_wait, record_btrace_find_new_threads)
3130 (record_btrace_thread_alive): Likewise.
3131 * procfs.c (procfs_xfer_partial): Always delegate.
3132 * corelow.c (core_xfer_partial): Always delegate.
3133 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3134
3135 2014-07-18 Tom Tromey <tromey@redhat.com>
3136
3137 * exec.c (exec_make_note_section): Move earlier.
3138
3139 2014-07-17 Doug Evans <dje@google.com>
3140
3141 PR gdb/17170
3142 * maint.c (count_symtabs_and_blocks): Handle NULL
3143 current_program_space.
3144 (report_command_stats): Check global enabled flag in addition to
3145 recorded enabled flag.
3146 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3147
3148 2014-07-16 Pedro Alves <palves@redhat.com>
3149
3150 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3151
3152 2014-07-16 Tom Tromey <tromey@redhat.com>
3153
3154 * target.h (struct target_ops) <to_delete_record>: Reformat
3155 comment.
3156
3157 2014-07-16 Tom Tromey <tromey@redhat.com>
3158
3159 * target-delegates.c: Rebuild.
3160
3161 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3162
3163 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3164 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3165 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3166 (avr_pointer_to_address): Likewise.
3167 (avr_address_class_type_flags): New function.
3168 (avr_address_class_type_flags_to_name): Likewise.
3169 (avr_address_class_name_to_type_flags): Likewise.
3170 (avr_gdbarch_init): Set address_class_type_flags,
3171 address_class_type_flags_to_name and
3172 address_class_name_to_type_flags.
3173
3174 2014-07-15 Pedro Alves <palves@redhat.com>
3175
3176 * linux-nat.c (kill_callback): Save errno and work with saved
3177 copy.
3178
3179 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3180
3181 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3182
3183 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3184
3185 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3186 breakpoint support correctly.
3187
3188 2014-07-14 Pedro Alves <palves@redhat.com>
3189
3190 * utils.c (prompt_for_continue): Call target_terminal_ours.
3191
3192 2014-07-14 Pedro Alves <palves@redhat.com>
3193
3194 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3195 catch_errors. Don't re-enable stdin or notify observers where,
3196 and rethrow error.
3197 (fetch_inferior_event_wrapper): Delete.
3198
3199 2014-07-14 Pedro Alves <palves@redhat.com>
3200
3201 PR gdb/17072
3202 * top.c: Include "inf-loop.h".
3203 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3204 field.
3205 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3206 was async before.
3207 (gdb_readline_wrapper): Store whether the target is async, and
3208 make it sync.
3209
3210 2014-07-14 Pedro Alves <palves@redhat.com>
3211
3212 PR gdb/17072
3213 * top.c (gdb_readline_wrapper_line): Tweak comment.
3214 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3215 the input handler callback.
3216
3217 2014-07-14 Pedro Alves <palves@redhat.com>
3218
3219 PR gdb/17072
3220 * main.c: Include event-top.h.
3221 (handle_command_errors): New function.
3222 (catch_command_errors, catch_command_errors_const): Use it.
3223
3224 2014-07-14 Pedro Alves <palves@redhat.com>
3225
3226 * exceptions.c (catch_command_errors, catch_command_errors_const):
3227 Moved to main.c.
3228 * exceptions.h (catch_command_errors_ftype)
3229 (catch_command_errors_const_ftype): Moved to main.c.
3230 (catch_command_errors, catch_command_errors_const): Delete
3231 declarations.
3232 * main.c (catch_command_errors_ftype)
3233 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3234 (catch_command_errors, catch_command_errors_const)): Moved here
3235 from exceptions.c and make static.
3236
3237 2014-07-14 Pedro Alves <palves@redhat.com>
3238
3239 * exceptions.c (print_any_exception): Delete.
3240 (catch_exceptions_with_msg): Use exception_print instead of
3241 print_any_exception.
3242 (catch_errors): Use exception_fprintf instead of
3243 print_any_exception.
3244 (catch_command_errors, catch_command_errors_const): Use
3245 exception_print instead of print_any_exception.
3246
3247 2014-07-14 Pedro Alves <palves@redhat.com>
3248
3249 * infcall.c (run_inferior_call): Set 'sync_execution' while
3250 running the inferior call.
3251
3252 2014-07-14 Pedro Alves <palves@redhat.com>
3253
3254 * value.c (value_contents_equal): Delete function.
3255 * value.h (value_contents_equal): Delete declaration.
3256
3257 2014-07-14 Tom Tromey <tromey@redhat.com>
3258
3259 PR exp/17106:
3260 * gdbtypes.c (is_dynamic_type_internal): New function, from
3261 is_dynamic_type.
3262 (is_dynamic_type): Rewrite.
3263 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3264 (resolve_dynamic_struct): Likewise.
3265 (resolve_dynamic_type_internal): New function, from
3266 resolve_dynamic_type.
3267 (resolve_dynamic_type): Rewrite.
3268
3269 2014-07-14 Tom Tromey <tromey@redhat.com>
3270
3271 * target.c (target_require_runnable): Also check record_stratum.
3272 Update comment.
3273
3274 2014-07-11 Yao Qi <yao@codesourcery.com>
3275
3276 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3277 thumb_instruction_restores_sp return true.
3278
3279 2014-07-11 Yao Qi <yao@codesourcery.com>
3280
3281 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3282 (thumb_in_function_epilogue_p): Call
3283 thumb_instruction_restores_sp.
3284
3285 2014-07-11 Yao Qi <yao@codesourcery.com>
3286
3287 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3288 'add sp, #imm'.
3289 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3290
3291 2014-07-11 Gary Benson <gbenson@redhat.com>
3292
3293 * amd64-linux-nat.c (gdbcore.h): Remove include.
3294 (regset.h): Likewise.
3295 (nat/linux-btrace.h): Likewise.
3296 (btrace.h): Likewise.
3297 (gdb_assert.h): Likewise.
3298 (string.h): Likewise.
3299 (sys/uio.h): Likewise.
3300 (sys/debugreg.h): Likewise.
3301 (sys/syscall.h): Likewise.
3302 (sys/procfs.h): Likewise.
3303 (sys/user.h): Likewise.
3304 (asm/ptrace.h): Likewise.
3305 (i386-nat.h): Likewise.
3306 * i386-linux-nat.c (i386-nat.h): Likewise.
3307 (regset.h): Likewise.
3308 (target.h): Likewise.
3309 (linux-nat.h): Likewise.
3310 (nat/linux-btrace.h): Likewise.
3311 (btrace.h): Likewise.
3312 (gdb_assert.h): Likewise.
3313 (string.h): Likewise.
3314 (sys/uio.h): Likewise.
3315 (sys/user.h): Likewise.
3316 (sys/procfs.h): Likewise.
3317 (sys/reg.h): Likewise.
3318 (sys/debugreg.h): Likewise.
3319 (ORIG_EAX): Remove definition.
3320
3321 2014-07-11 Gary Benson <gbenson@redhat.com>
3322
3323 * i386-linux-nat.h: New file.
3324 * x86-linux-nat.h: Likewise.
3325 * x86-linux-nat.c: Likewise.
3326 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3327 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3328 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3329 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3330 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3331 (PTRACE_SETREGSET): Likewise.
3332 (arch_lwp_info): Now in x86-linux-nat.c.
3333 (have_ptrace_getregset): Now in x86-linux-nat.h.
3334 (x86_linux_dr_get): Now in x86-linux-nat.c.
3335 (x86_linux_dr_set): Likewise.
3336 (x86_linux_dr_get_addr): Likewise.
3337 (x86_linux_dr_get_control): Likewise.
3338 (x86_linux_dr_get_status): Likewise.
3339 (update_debug_registers_callback): Likewise.
3340 (x86_linux_dr_set_control): Likewise.
3341 (x86_linux_dr_set_addr): Likewise.
3342 (x86_linux_prepare_to_resume): Likewise.
3343 (x86_linux_new_thread): Likewise.
3344 (x86_linux_new_fork): Likewise.
3345 (x86_linux_get_thread_area): Likewise.
3346 (super_post_startup_inferior): Likewise.
3347 (x86_linux_child_post_startup_inferior): Likewise.
3348 (AMD64_LINUX_USER64_CS): Likewise.
3349 (AMD64_LINUX_X32_DS): Likewise.
3350 (x86_linux_read_description): Likewise.
3351 (x86_linux_enable_btrace): Likewise.
3352 (x86_linux_disable_btrace): Likewise.
3353 (x86_linux_teardown_btrace): Likewise.
3354 (x86_linux_read_btrace): Likewise.
3355 (x86_linux_create_target): Likewise.
3356 (x86_linux_add_target): Likewise.
3357 * i386-linux-nat.c (x86-linux-nat.h): New include.
3358 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3359 (PTRACE_SETREGSET): Likewise.
3360 (arch_lwp_info): Now in x86-linux-nat.c.
3361 (have_ptrace_getregset): Now in x86-linux-nat.h.
3362 (x86_linux_dr_get): Now in x86-linux-nat.c.
3363 (x86_linux_dr_set): Likewise.
3364 (x86_linux_dr_get_addr): Likewise.
3365 (x86_linux_dr_get_control): Likewise.
3366 (x86_linux_dr_get_status): Likewise.
3367 (update_debug_registers_callback): Likewise.
3368 (x86_linux_dr_set_control): Likewise.
3369 (x86_linux_dr_set_addr): Likewise.
3370 (x86_linux_prepare_to_resume): Likewise.
3371 (x86_linux_new_thread): Likewise.
3372 (x86_linux_new_fork): Likewise.
3373 (x86_linux_get_thread_area): Likewise.
3374 (super_post_startup_inferior): Likewise.
3375 (x86_linux_child_post_startup_inferior): Likewise.
3376 (AMD64_LINUX_USER64_CS): Likewise.
3377 (AMD64_LINUX_X32_DS): Likewise.
3378 (x86_linux_read_description): Likewise.
3379 (x86_linux_enable_btrace): Likewise.
3380 (x86_linux_disable_btrace): Likewise.
3381 (x86_linux_teardown_btrace): Likewise.
3382 (x86_linux_read_btrace): Likewise.
3383 (x86_linux_create_target): Likewise.
3384 (x86_linux_add_target): Likewise.
3385
3386 2014-07-11 Gary Benson <gbenson@redhat.com>
3387
3388 * amd64-linux-nat.c: Comment and whitespace changes.
3389 * i386-linux-nat.c: Comment and whitespace changes.
3390
3391 2014-07-11 Gary Benson <gbenson@redhat.com>
3392
3393 * amd64-linux-nat.c (x86_linux_create_target): New function.
3394 (x86_linux_add_target): Likewise.
3395 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3396 * i386-linux-nat.c (x86_linux_create_target): New function.
3397 (x86_linux_add_target): Likewise.
3398 (_initialize_i386_linux_nat): Delegate to the above new functions.
3399
3400 2014-07-11 Gary Benson <gbenson@redhat.com>
3401
3402 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3403 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3404 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3405 (ps_get_thread_area): Delegate to the above.
3406
3407 2014-07-11 Gary Benson <gbenson@redhat.com>
3408
3409 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3410 x86_linux_read_description. All uses updated. amd64-specific
3411 code conditionalized. Conditionalized i386-specific code added.
3412 Redundant cast removed.
3413 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3414 x86_linux_read_description. All uses updated. i386-specific
3415 code conditionalized. Conditionalized amd64-specific code added.
3416 One sizeof replaced with the actual type it is describing.
3417
3418 2014-07-11 Gary Benson <gbenson@redhat.com>
3419
3420 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3421 x86_linux_dr_get. All uses updated.
3422 (amd64_linux_dr_set): Renamed to
3423 x86_linux_dr_set. All uses updated.
3424 (amd64_linux_dr_get_addr): Renamed to
3425 x86_linux_dr_get_addr. All uses updated.
3426 (amd64_linux_dr_get_control): Renamed to
3427 x86_linux_dr_get_control. All uses updated.
3428 (amd64_linux_dr_get_status): Renamed to
3429 x86_linux_dr_get_status. All uses updated.
3430 (amd64_linux_dr_set_control): Renamed to
3431 x86_linux_dr_set_control. All uses updated.
3432 (amd64_linux_dr_set_addr): Renamed to
3433 x86_linux_dr_set_addr. All uses updated.
3434 (amd64_linux_prepare_to_resume): Renamed to
3435 x86_linux_prepare_to_resume. All uses updated.
3436 (amd64_linux_new_thread): Renamed to
3437 x86_linux_new_thread. All uses updated.
3438 (amd64_linux_new_fork): Renamed to
3439 x86_linux_new_fork. All uses updated.
3440 (amd64_linux_child_post_startup_inferior): Renamed to
3441 x86_linux_child_post_startup_inferior. All uses updated.
3442 (amd64_linux_enable_btrace): Renamed to
3443 x86_linux_enable_btrace. All uses updated.
3444 (amd64_linux_disable_btrace): Renamed to
3445 x86_linux_disable_btrace. All uses updated.
3446 (amd64_linux_teardown_btrace): Renamed to
3447 x86_linux_teardown_btrace. All uses updated.
3448 (amd64_linux_read_btrace): Renamed to
3449 x86_linux_read_btrace. All uses updated.
3450 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3451 x86_linux_dr_get. All uses updated.
3452 (i386_linux_dr_set): Renamed to
3453 x86_linux_dr_set. All uses updated.
3454 (i386_linux_dr_get_addr): Renamed to
3455 x86_linux_dr_get_addr. All uses updated.
3456 (i386_linux_dr_get_control): Renamed to
3457 x86_linux_dr_get_control. All uses updated.
3458 (i386_linux_dr_get_status): Renamed to
3459 x86_linux_dr_get_status. All uses updated.
3460 (i386_linux_dr_set_control): Renamed to
3461 x86_linux_dr_set_control. All uses updated.
3462 (i386_linux_dr_set_addr): Renamed to
3463 x86_linux_dr_set_addr. All uses updated.
3464 (i386_linux_prepare_to_resume): Renamed to
3465 x86_linux_prepare_to_resume. All uses updated.
3466 (i386_linux_new_thread): Renamed to
3467 x86_linux_new_thread. All uses updated.
3468 (i386_linux_new_fork): Renamed to
3469 x86_linux_new_fork. All uses updated.
3470 (i386_linux_child_post_startup_inferior): Renamed to
3471 x86_linux_child_post_startup_inferior. All uses updated.
3472 (i386_linux_enable_btrace): Renamed to
3473 x86_linux_enable_btrace. All uses updated.
3474 (i386_linux_disable_btrace): Renamed to
3475 x86_linux_disable_btrace. All uses updated.
3476 (i386_linux_teardown_btrace): Renamed to
3477 x86_linux_teardown_btrace. All uses updated.
3478 (i386_linux_read_btrace): Renamed to
3479 x86_linux_read_btrace. All uses updated.
3480
3481 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3482
3483 * remote.c (extended_remote_post_attach): New function.
3484 (init_extended_remote_ops): Install it as to_post_attach method.
3485
3486 2014-07-09 Pedro Alves <palves@redhat.com>
3487
3488 * infcmd.c (attach_command_post_wait): Don't call
3489 target_terminal_inferior here.
3490 (attach_command): Call it here instead.
3491
3492 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3493
3494 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3495 field.
3496 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3497 from varobj.c, with additional checks.
3498 (c_varobj_ops): Fill in is_path_expr_parent field.
3499 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3500 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3501 field.
3502 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3503 ops method.
3504 (varobj_default_is_path_expr_parent): New function.
3505 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3506 (varobj_default_is_path_expr_parent): Declare new function.
3507
3508 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3509
3510 * infcmd.c (finish_backward): Turn internal error into normal error.
3511
3512 2014-07-07 Pedro Alves <palves@redhat.com>
3513
3514 PR gdb/17096
3515 * remote.c (async_handle_remote_sigint)
3516 (async_handle_remote_sigint_twice): Call
3517 gdb_call_async_signal_handler instead of
3518 mark_async_signal_handler.
3519
3520 2014-07-07 Tom Tromey <tromey@redhat.com>
3521
3522 * target-delegates.c: Rebuild.
3523 * target.c (target_info_record): Remove.
3524 * record.c (info_record_command): Unconditionally call
3525 to_info_record.
3526 * target.h (struct target_ops) <to_info_record>: Use
3527 TARGET_DEFAULT_IGNORE.
3528 (target_info_record): Remove.
3529
3530 2014-07-07 Tom Tromey <tromey@redhat.com>
3531
3532 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3533 TARGET_DEFAULT_NORETURN.
3534 * target.c (generic_tls_error): New function.
3535 (target_translate_tls_address): Don't search target stack.
3536 * target-delegates.c: Rebuild.
3537 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3538 stack.
3539 * linux-thread-db.c (thread_db_get_thread_local_address):
3540 Unconditionally call beneath target.
3541
3542 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3543
3544 * cli/cli-logging.c (pop_output_files): Assign targerr to
3545 gdb_stdtargerr.
3546
3547 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3548
3549 * MAINTAINERS (Write After Approval): Update my email address.
3550
3551 2014-07-02 Gary Benson <gbenson@redhat.com>
3552
3553 * proc-service.c (ps_xfer_memory): Update comment.
3554 (ps_pstop): Remove unused function.
3555 (ps_pcontinue): Likewise.
3556 (ps_lstop): Likewise.
3557 (ps_lcontinue): Likewise.
3558 (ps_lgetxregsize): Likewise.
3559 (ps_lgetxregs): Likewise.
3560 (ps_lsetxregs): Likewise.
3561 (ps_plog): Likewise.
3562 (ps_ptread): Likewise.
3563 (ps_ptwrite): Likewise.
3564
3565 2014-07-01 Mark Wielaard <mjw@redhat.com>
3566
3567 * dwarf2read.c (add_array_cv_type): New function.
3568 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3569 (read_tag_volatile_type): Likewise.
3570
3571 2014-07-01 Tom Tromey <tromey@redhat.com>
3572
3573 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3574 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3575 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3576 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3577 * command.h (cmd_cfunc_ftype): Move earlier.
3578 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3579 (add_com, add_info): Use cmd_cfunc_ftype.
3580
3581 2014-06-30 Tom Tromey <tromey@redhat.com>
3582
3583 * symtab.c (operator_chars): Make parameters and return type
3584 const.
3585 (file_matches): Make "files" const.
3586 (struct search_symbols_data) <files>: Now const.
3587 (search_symbols): Make "regexp" and "files" parameters const.
3588 Update.
3589 (symtab_symbol_info): Remove cast.
3590 (rbreak_command): Update.
3591 * symtab.h (search_symbols): Update.
3592
3593 2014-06-27 Yao Qi <yao@codesourcery.com>
3594
3595 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3596 Change parameter type to 'struct thread_info *'. Caller
3597 updated.
3598 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3599 Update declaration.
3600 * dummy-frame.c (struct dummy_frame_id): New.
3601 (dummy_frame_id_eq): New function.
3602 (struct dummy_frame) <id>: Change its type to 'struct
3603 dummy_frame_id'.
3604 (dummy_frame_push): Add parameter ptid and save it in
3605 dummy_frame_id.
3606 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3607 inferior_ptid.
3608 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3609 to inferior_ptid.
3610 (lookup_dummy_frame): Change parameter type to 'struct
3611 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3612 instead of frame_id_eq.
3613 (dummy_frame_pop): Add parameter ptid. Callers updated.
3614 Update comments. Compose dummy_frame_id and pass it to
3615 lookup_dummy_frame.
3616 (dummy_frame_discard): Add parameter ptid.
3617 (dummy_frame_sniffer): Compose dummy_frame_id and call
3618 dummy_frame_id_eq instead of frame_id_eq.
3619 (fprint_dummy_frames): Print ptid.
3620 * dummy-frame.h: Remove comments.
3621 (dummy_frame_push): Add ptid in declaration.
3622 (dummy_frame_pop, dummy_frame_discard): Likewise.
3623
3624 2014-06-26 Tom Tromey <tromey@redhat.com>
3625
3626 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3627 * command.h (error_no_arg): Update.
3628
3629 2014-06-26 Tom Tromey <tromey@redhat.com>
3630
3631 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3632 (do_show_command): Make "arg" const.
3633 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3634
3635 2014-06-26 Tom Tromey <tromey@redhat.com>
3636
3637 * record-full.c (record_full_get_bookmark): Make "args" const.
3638 (record_full_goto_bookmark): Make "raw_bookmark" const.
3639 * record.c (record_goto): New function.
3640 (cmd_record_goto): Use it. Now static.
3641 * record.h (record_goto): Declare.
3642 (cmd_record_goto): Remove declaration.
3643 * target-delegates.c: Rebuild.
3644 * target.h (struct target_ops) <to_get_bookmark,
3645 to_goto_bookmark>: Make parameter const.
3646
3647 2014-06-26 Tom Tromey <tromey@redhat.com>
3648
3649 * defs.h (generic_load): Update.
3650 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3651 * monitor.c (monitor_load): Make "args" const.
3652 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3653 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3654 const.
3655 (mips_load): Make "file" const.
3656 * remote-sim.c (gdbsim_load): Make "args" const.
3657 * remote.c (remote_load): Make "name" const.
3658 * symfile.c (generic_load): Make "args" const.
3659 * target-delegates.c: Rebuild.
3660 * target.c (target_load): Make "arg" const.
3661 (debug_to_load): Make "args" const.
3662 * target.h (struct target_ops) <to_load>: Make parameter const.
3663 (target_load): Update.
3664
3665 2014-06-26 Tom Tromey <tromey@redhat.com>
3666
3667 PR symtab/16902:
3668 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3669 (dwarf2_physname, read_partial_die)
3670 (guess_partial_die_structure_name, fixup_partial_die)
3671 (guess_full_die_structure_name, anonymous_struct_prefix)
3672 (dwarf2_name): Use per-BFD obstack.
3673
3674 2014-06-26 Yao Qi <yao@codesourcery.com>
3675
3676 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3677 dummyframe and this_id into inner block below.
3678
3679 2014-06-26 Yao Qi <yao@codesourcery.com>
3680
3681 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3682 with "signal_pass[0]" in the initialization of signal_pass.
3683
3684 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3685
3686 * record-btrace.c (record_btrace_generating_corefile)
3687 (record_btrace_prepare_to_generate_core)
3688 (record_btrace_done_generating_core): New.
3689 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3690 (record_btrace_store_registers, record_btrace_prepare_to_store):
3691 Forward request when generating a core file.
3692 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3693 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3694 to_done_generating_core.
3695
3696 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3697
3698 * target.h (target_ops) <to_prepare_to_generate_core>
3699 <to_done_generating_core>: New.
3700 (target_prepare_to_generate_core, target_done_generating_core): New.
3701 * target.c (target_prepare_to_generate_core)
3702 (target_done_generating_core): New.
3703 * target-delegates.c: Regenerate.
3704 * gcore.c: (write_gcore_file): Rename to ...
3705 (write_gcore_file_1): ...this.
3706 (write_gcore_file): Call target_prepare_to_generate_core
3707 and target_done_generating_core.
3708
3709 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3710
3711 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3712 * gcore.c (write_gcore_file): Free memory returned from
3713 make_corefile_notes.
3714 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3715 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3716
3717 2014-06-24 Yao Qi <yao@codesourcery.com>
3718
3719 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3720 (arm_linux_init_abi): Set skip_trampoline_code with
3721 gdbarch_skip_trampoline_code instead of
3722 find_solib_trampoline_target.
3723
3724 2014-06-24 Yao Qi <yao@codesourcery.com>
3725
3726 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3727 arm_skip_bx_reg returns non-zero.
3728
3729 2014-06-24 Yao Qi <yao@codesourcery.com>
3730
3731 * arm-tdep.c (arm_skip_bx_reg): New function.
3732 (arm_skip_stub): Call arm_skip_bx_reg.
3733
3734 2014-06-23 Don Breazeal <donb@codesourcery.com>
3735
3736 * MAINTAINERS: Add myself as write-after-approval maintainer.
3737
3738 2014-06-23 Pedro Alves <palves@redhat.com>
3739
3740 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3741 DR_CONTROL before setting DR0..DR3.
3742 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3743 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3744 bits of DR_CONTROL related to the debug register slot being
3745 disabled. If all slots are vacant, clear local slowdown as well,
3746 and assert DR_CONTROL is 0.
3747
3748 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3749
3750 * python/lib/gdb/command/xmethods.py
3751 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3752 current progspace only if the string "progspace" matches LOCUS_RE.
3753
3754 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3755
3756 Fix --with-system-readline with readline-6.3 patch 5.
3757 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3758 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3759 types.
3760
3761 2014-06-20 Tom Tromey <tromey@redhat.com>
3762
3763 * dwarf2read.c (dw2_get_real_path): Use correct type in
3764 OBSTACK_CALLOC.
3765 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3766
3767 2014-06-20 Gary Benson <gbenson@redhat.com>
3768
3769 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3770 * common/glibc_thread_db.h: Likewise.
3771 * common/i386-cpuid.h: Likewise.
3772 * common/i386-gcc-cpuid.h: Likewise.
3773 * common/linux-btrace.h: Likewise.
3774 * common/linux-osdata.h: Likewise.
3775 * common/linux-procfs.h: Likewise.
3776 * common/linux-ptrace.h: Likewise.
3777 * common/mips-linux-watch.h: Likewise.
3778 * common/linux-btrace.c: Moved to nat.
3779 * common/linux-osdata.c: Likewise.
3780 * common/linux-procfs.c: Likewise.
3781 * common/linux-ptrace.c: Likewise.
3782 * common/mips-linux-watch.c: Likewise.
3783 * nat/gdb_thread_db.h: Moved from common.
3784 * nat/glibc_thread_db.h: Likewise.
3785 * nat/i386-cpuid.h: Likewise.
3786 * nat/i386-gcc-cpuid.h: Likewise.
3787 * nat/linux-btrace.c: Likewise.
3788 * nat/linux-btrace.h: Likewise.
3789 * nat/linux-osdata.c: Likewise.
3790 * nat/linux-osdata.h: Likewise.
3791 * nat/linux-procfs.c: Likewise.
3792 * nat/linux-procfs.h: Likewise.
3793 * nat/linux-ptrace.c: Likewise.
3794 * nat/linux-ptrace.h: Likewise.
3795 * nat/mips-linux-watch.c: Likewise.
3796 * nat/mips-linux-watch.h: Likewise.
3797 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3798 (object file files): Reordered.
3799 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3800 of glibc_thread_db.h.
3801
3802 2014-06-20 Gary Benson <gbenson@redhat.com>
3803
3804 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3805 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3806 (i386_dr_low): Likewise.
3807 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3808 (i386_dr_low_set_addr): Likewise.
3809 (i386_dr_low_get_addr): Likewise.
3810 (i386_dr_low_can_set_control): Likewise.
3811 (i386_dr_low_set_control): Likewise.
3812 (i386_dr_low_get_control): Likewise.
3813 (i386_dr_low_get_status): Likewise.
3814 (i386_get_debug_register_length): Likewise.
3815 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3816 (i386_dr_low): Likewise.
3817 * nat/i386-dregs.c (i386-low.h): Remove include.
3818 (i386-nat.h): Likewise.
3819 (nat/i386-dregs.h): New include.
3820 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3821 (i386_dr_low_set_addr): Likewise.
3822 (i386_dr_low_get_addr): Likewise.
3823 (i386_dr_low_can_set_control): Likewise.
3824 (i386_dr_low_set_control): Likewise.
3825 (i386_dr_low_get_control): Likewise.
3826 (i386_dr_low_get_status): Likewise.
3827 (i386_get_debug_register_length): Likewise.
3828 (debug_hw_points): Likewise.
3829
3830 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3831
3832 * Makefile.in (SFILES): Add d-exp.y.
3833 (YYFILES): Add d-exp.c.
3834 (YYOBJ): Add d-exp.o.
3835 (local-maintainer-clean): Delete d-exp.c.
3836 * d-exp.y: New file.
3837 * d-lang.h (d_parse): New declaration.
3838 (d_error): New declaration.
3839 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3840 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3841 PREC_ORDER operators.
3842 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3843
3844 2014-06-19 Yao Qi <yao@codesourcery.com>
3845
3846 * gdbthread.h (any_running): Remove the declaration.
3847 * thread.c (any_running): Remove.
3848
3849 2014-06-19 Yao Qi <yao@codesourcery.com>
3850
3851 * gdbthread.h (struct thread_info) <state>: Change its type to
3852 'enum thread_state'. Update comments.
3853
3854 2014-06-19 Pedro Alves <palves@redhat.com>
3855
3856 * gdbthread.h (ALL_THREADS): Delete.
3857 (ALL_NON_EXITED_THREADS): New macro.
3858 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3859 instead of ALL_THREADS.
3860 * infrun.c (find_thread_needs_step_over)
3861 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3862 instead of ALL_THREADS.
3863 * record-btrace.c (record_btrace_open)
3864 (record_btrace_stop_recording, record_btrace_close)
3865 (record_btrace_is_replaying, record_btrace_resume)
3866 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3867 * remote.c (append_pending_thread_resumptions): Likewise.
3868 * thread.c (thread_apply_all_command): Likewise.
3869
3870 2014-06-19 Gary Benson <gbenson@redhat.com>
3871
3872 * i386-nat.c (i386_stopped_by_watchpoint):
3873 Use i386_dr_stopped_by_watchpoint.
3874 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3875 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3876
3877 2014-06-19 Gary Benson <gbenson@redhat.com>
3878
3879 * nat/i386-dregs.c: New file.
3880 * Makefile.in (i386-dregs.o): New rule.
3881 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3882 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3883 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3884 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3885 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3886 * config/i386/go32.mh (NATDEPFILES): Likewise.
3887 * config/i386/linux.mh (NATDEPFILES): Likewise.
3888 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3889 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3890 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3891 * i386-nat.h (debug_hw_points): New declaration.
3892 * i386-nat.c (breakpoint.h): Remove include.
3893 (command.h): Likewise.
3894 (target.h): Likewise.
3895 (gdb_assert.h): Likewise.
3896 (debug_hw_points): Made nonstatic.
3897 (debug_printf): Now in i386-dregs.c.
3898 (TARGET_HAS_DR_LEN_8): Likewise.
3899 (DR_CONTROL_SHIFT): Likewise.
3900 (DR_CONTROL_SIZE): Likewise.
3901 (DR_RW_EXECUTE): Likewise.
3902 (DR_RW_WRITE): Likewise.
3903 (DR_RW_READ): Likewise.
3904 (DR_RW_IORW): Likewise.
3905 (DR_LEN_1): Likewise.
3906 (DR_LEN_2): Likewise.
3907 (DR_LEN_4): Likewise.
3908 (DR_LEN_8): Likewise.
3909 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3910 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3911 (DR_ENABLE_SIZE): Likewise.
3912 (DR_LOCAL_SLOWDOWN): Likewise.
3913 (DR_GLOBAL_SLOWDOWN): Likewise.
3914 (DR_CONTROL_RESERVED): Likewise.
3915 (I386_DR_CONTROL_MASK): Likewise.
3916 (I386_DR_VACANT): Likewise.
3917 (I386_DR_LOCAL_ENABLE): Likewise.
3918 (I386_DR_GLOBAL_ENABLE): Likewise.
3919 (I386_DR_DISABLE): Likewise.
3920 (I386_DR_SET_RW_LEN): Likewise.
3921 (I386_DR_GET_RW_LEN): Likewise.
3922 (I386_DR_WATCH_HIT): Likewise.
3923 (i386_wp_op_t): Likewise.
3924 (i386_show_dr): Likewise.
3925 (i386_length_and_rw_bits): Likewise.
3926 (i386_insert_aligned_watchpoint): Likewise.
3927 (i386_remove_aligned_watchpoint): Likewise.
3928 (i386_handle_nonaligned_watchpoint): Likewise.
3929 (i386_update_inferior_debug_regs): Likewise.
3930 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3931 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3932 (i386_region_ok_for_watchpoint):
3933 Use i386_dr_region_ok_for_watchpoint.
3934 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3935
3936 2014-06-19 Gary Benson <gbenson@redhat.com>
3937
3938 * i386-nat.c (i386_insert_hw_breakpoint): Use
3939 i386_insert_watchpoint.
3940 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3941
3942 2014-06-19 Gary Benson <gbenson@redhat.com>
3943
3944 * i386-nat.c (i386_dr_show): Renamed to
3945 i386_show_dr and made static. All uses updated.
3946 (i386_dr_length_and_rw_bits): Renamed to
3947 i386_length_and_rw_bits and made static.
3948 All uses updated.
3949 (i386_dr_insert_aligned_watchpoint): Renamed to
3950 i386_insert_aligned_watchpoint and made static.
3951 All uses updated.
3952 (i386_dr_remove_aligned_watchpoint): Renamed to
3953 i386_remove_aligned_watchpoint and made static.
3954 All uses updated.
3955 (i386_dr_update_inferior_debug_regs): Renamed to
3956 i386_update_inferior_debug_regs and made static.
3957 All uses updated.
3958 * nat/i386-dregs.h (i386_dr_show): Removed.
3959 (i386_dr_length_and_rw_bits): Likewise.
3960 (i386_dr_insert_aligned_watchpoint): Likewise.
3961 (i386_dr_remove_aligned_watchpoint): Likewise.
3962 (i386_dr_update_inferior_debug_regs): Likewise.
3963
3964 2014-06-19 Gary Benson <gbenson@redhat.com>
3965
3966 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3967 * configure: Regenerate.
3968 * config.in: Likewise.
3969 * main.c (signal.h): New include.
3970 (setup_alternate_signal_stack): New function.
3971 (captured_main): Call the above.
3972 * cp-support.c (signal.h): New include.
3973 (catch_demangler_crashes): New flag.
3974 (SIGJMP_BUF): New define.
3975 (SIGSETJMP): Likewise.
3976 (SIGLONGJMP): Likewise.
3977 (gdb_demangle_jmp_buf): New static global.
3978 (gdb_demangle_attempt_core_dump): Likewise.
3979 (gdb_demangle_signal_handler): New function.
3980 (gdb_demangle): If catch_demangler_crashes is set, install the
3981 above signal handler before calling bfd_demangle, and restore
3982 the original signal handler afterwards. Display the offending
3983 symbol and call demangler_warning the first time a segmentation
3984 fault is caught.
3985 (_initialize_cp_support): New maint set/show command.
3986
3987 2014-06-19 Gary Benson <gbenson@redhat.com>
3988
3989 * utils.h (resource_limit_kind): New enum.
3990 (can_dump_core): New declaration.
3991 (warn_cant_dump_core): Likewise.
3992 (dump_core): Likewise.
3993 * utils.c (dump_core): Made nonstatic. Added new
3994 parameter "limit_kind".
3995 (can_dump_core): Made nonstatic. Moved printing code to...
3996 (warn_cant_dump_core): New function.
3997 (can_dump_core_warn): Likewise.
3998 (internal_vproblem): Replace calls to can_dump_core with
3999 calls to can_dump_core_warn. Supply new argument to each.
4000
4001 2014-06-19 Gary Benson <gbenson@redhat.com>
4002
4003 * utils.h (demangler_vwarning): New declaration.
4004 (demangler_warning): Likewise.
4005 * utils.c (struct internal_problem)
4006 <user_settable_should_quit>: New field.
4007 <user_settable_should_dump_core>: Likewise
4008 (internal_error_problem): Add values for above new fields.
4009 (internal_warning_problem): Likewise.
4010 (demangler_warning_problem): New static global.
4011 (demangler_vwarning): New function.
4012 (demangler_warning): Likewise.
4013 (add_internal_problem_command): Selectively add commands.
4014 (_initialize_utils): New internal problem command.
4015 * maint.c (maintenance_demangler_warning): New function.
4016 (_initialize_maint_cmds): New command.
4017
4018 2014-06-18 Tom Tromey <tromey@redhat.com>
4019
4020 * f-valprint.c (info_common_command_for_block): Update.
4021 * symtab.h (struct general_symbol_info) <common_block>: Now
4022 const.
4023
4024 2014-06-18 Tom Tromey <tromey@redhat.com>
4025
4026 * symtab.h (struct symtab) <blockvector>: Now const.
4027 * ada-lang.c (ada_add_global_exceptions): Update.
4028 * buildsym.c (augment_type_symtab): Update.
4029 * dwarf2read.c (dw2_lookup_symbol): Update.
4030 * jit.c (finalize_symtab): Update.
4031 * jv-lang.c (add_class_symtab_symbol): Update.
4032 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4033 Update.
4034 * objfiles.c (objfile_relocate1): Update.
4035 * psymtab.c (lookup_symbol_aux_psymtabs)
4036 (maintenance_check_psymtabs): Update.
4037 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4038 Update.
4039 * spu-tdep.c (spu_catch_start): Update.
4040 * symmisc.c (dump_symtab_1): Update.
4041 * symtab.c (lookup_global_symbol_from_objfile)
4042 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4043 (basic_lookup_transparent_type_quick)
4044 (basic_lookup_transparent_type, find_pc_sect_symtab)
4045 (find_pc_sect_line, search_symbols): Update.
4046 * block.c (find_block_in_blockvector): Make "bl" const.
4047 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4048 const.
4049 (blockvector_contains_pc): Make "bv" const.
4050 (block_for_pc_sect): Update.
4051 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4052 (blockvector_contains_pc): Update.
4053 * breakpoint.c (resolve_sal_pc): Update.
4054 * inline-frame.c (block_starting_point_at): Update.
4055
4056 2014-06-18 Tom Tromey <tromey@redhat.com>
4057
4058 * completer.c (complete_line): Make "line_buffer" const.
4059 * completer.h (complete_line): Update.
4060
4061 2014-06-18 Tom Tromey <tromey@redhat.com>
4062
4063 * symtab.c (add_macro_name): Remove unneeded cast.
4064
4065 2014-06-18 Tom Tromey <tromey@redhat.com>
4066
4067 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4068 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4069
4070 2014-06-18 Tom Tromey <tromey@redhat.com>
4071
4072 * probe.c (info_probes_for_ops): Make "arg" const.
4073 * probe.h (info_probes_for_ops): Update.
4074
4075 2014-06-18 Tom Tromey <tromey@redhat.com>
4076
4077 * varobj.c (varobj_create): Update.
4078 * valops.c (value_of_this): Update.
4079 * tracepoint.c (add_local_symbols, scope_info): Update.
4080 * symtab.h (struct general_symbol_info) <block>: Now const.
4081 * symtab.c (skip_prologue_sal)
4082 (default_make_symbol_completion_list_break_on)
4083 (skip_prologue_using_sal): Update.
4084 * stack.h (iterate_over_block_locals)
4085 (iterate_over_block_local_vars): Update.
4086 * stack.c (print_frame_args): Update.
4087 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4088 parameter const.
4089 (get_selected_block): Make return type const.
4090 * python/py-frame.c (frapy_block): Update.
4091 * python/py-block.c (gdbpy_block_for_pc): Update.
4092 * p-exp.y (%union) <bval>: Now const.
4093 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4094 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4095 * m2-exp.y (%union) <bval>: Now const.
4096 * linespec.c (get_current_search_block): Make return type const.
4097 (create_sals_line_offset, find_label_symbols): Update.
4098 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4099 Update.
4100 (block_starting_point_at): Make "block" const.
4101 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4102 (check_exception_resume): Update.
4103 * guile/scm-frame.c (gdbscm_frame_block): Update.
4104 * guile/scm-block.c (gdbscm_lookup_block): Update.
4105 * frame.h (get_frame_block): Update.
4106 (get_selected_block): Make return type const.
4107 * frame.c (frame_id_inner): Update.
4108 * f-valprint.c (info_common_command_for_block)
4109 (info_common_command): Update.
4110 * dwarf2loc.c (dwarf2_find_location_expression)
4111 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4112 (locexpr_describe_location_piece): Update.
4113 * c-exp.y (%union) <bval>: Now const.
4114 * breakpoint.c (resolve_sal_pc): Update.
4115 * blockframe.c (get_frame_block):Make return type const.
4116 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4117 (block_innermost_frame): Update.
4118 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4119 (block_for_pc, block_for_pc_sect): Update.
4120 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4121 'pblock' const.
4122 (block_for_pc_sect, block_for_pc): Make return type const.
4123 * ax-gdb.c (gen_expr): Update.
4124 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4125 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4126 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4127 (ada_read_var_value): Update.
4128 * ada-exp.y (struct name_info) <block>: Now const.
4129 (%union): Likewise.
4130 (block_lookup): Constify.
4131
4132 2014-06-18 Gary Benson <gbenson@redhat.com>
4133
4134 * nat/i386-dregs.h: New file.
4135 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4136 * i386-nat.h (i386-dregs.h): New include.
4137 (DR_FIRSTADDR): Now in i386-dregs.h.
4138 (DR_LASTADDR): Likewise.
4139 (DR_NADDR): Likewise.
4140 (DR_STATUS): Likewise.
4141 (DR_CONTROL): Likewise.
4142 (i386_debug_reg_state): Likewise.
4143 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4144
4145 2014-06-18 Don Breazeal <donb@codesourcery.com>
4146
4147 * breakpoint.c (set_longjmp_breakpoint): Call
4148 momentary_breakpoint_from_master with additional argument.
4149 (set_longjmp_breakpoint_for_call_dummy): Call
4150 momentary_breakpoint_from_master with additional argument.
4151 (set_std_terminate_breakpoint): Call
4152 momentary_breakpoint_from_master with additional argument.
4153 (momentary_breakpoint_from_master): Add argument to function
4154 definition and use it to initialize structure member flag.
4155 (clone_momentary_breakpoint): Call
4156 momentary_breakpoint_from_master with additional argument.
4157 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4158 member flags set in momentary_breakpoint_from_master.
4159
4160 2014-06-18 Gary Benson <gbenson@redhat.com>
4161
4162 * i386-nat.c (i386_show_dr): Renamed to
4163 i386_dr_show and made nonstatic. All uses updated.
4164 (i386_length_and_rw_bits): Renamed to
4165 i386_dr_length_and_rw_bits and made nonstatic.
4166 All uses updated.
4167 (i386_insert_aligned_watchpoint): Renamed to
4168 i386_dr_insert_aligned_watchpoint and made nonstatic.
4169 All uses updated.
4170 (i386_remove_aligned_watchpoint): Renamed to
4171 i386_dr_remove_aligned_watchpoint and made nonstatic.
4172 All uses updated.
4173 (i386_update_inferior_debug_regs): Renamed to
4174 i386_dr_update_inferior_debug_regs and made nonstatic.
4175 All uses updated.
4176
4177 2014-06-18 Gary Benson <gbenson@redhat.com>
4178
4179 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4180 (i386_dr_low_can_set_control): Likewise.
4181 (i386_dr_low_set_addr): Likewise.
4182 (i386_dr_low_set_control): Likewise.
4183 (i386_dr_low_get_addr): Likewise.
4184 (i386_dr_low_get_status): Likewise.
4185 (i386_dr_low_get_control): Likewise.
4186 (i386_insert_aligned_watchpoint): Use new macros.
4187 (i386_update_inferior_debug_regs): Likewise.
4188 (i386_stopped_data_address): Likewise.
4189
4190 2014-06-18 Gary Benson <gbenson@redhat.com>
4191
4192 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4193 New parameter. All uses updated.
4194
4195 2014-06-18 Gary Benson <gbenson@redhat.com>
4196
4197 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4198 All uses updated.
4199
4200 2014-06-18 Gary Benson <gbenson@redhat.com>
4201
4202 * i386-nat.c (debug_printf): New macro.
4203 (i386_get_debug_register_length): Likewise.
4204 (TARGET_HAS_DR_LEN_8): Use above macro.
4205 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4206 and printf_unfiltered. Use phex to format values.
4207
4208 2014-06-18 Gary Benson <gbenson@redhat.com>
4209
4210 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4211 Make const.
4212
4213 2014-06-18 Gary Benson <gbenson@redhat.com>
4214
4215 * i386-nat.c: Comment changes.
4216
4217 2014-06-18 Gary Benson <gbenson@redhat.com>
4218
4219 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4220
4221 2014-06-18 Gary Benson <gbenson@redhat.com>
4222
4223 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4224 (i386_insert_aligned_watchpoint): Likewise.
4225 (i386_remove_aligned_watchpoint): Likewise.
4226 (i386_handle_nonaligned_watchpoint): Likewise.
4227
4228 2014-06-18 Gary Benson <gbenson@redhat.com>
4229
4230 * i386-nat.c: Whitespace changes.
4231
4232 2014-06-17 Samuel Bronson <naesten@gmail.com>
4233
4234 * MAINTAINERS: Update Roland McGrath's email address.
4235 Thanks to Sergio Durigan Junior for pointing out that he left
4236 Red Hat a while ago, and giving me a current address.
4237
4238 2014-06-17 Tom Tromey <tromey@redhat.com>
4239
4240 * utils.h (savestring): Remove declaration.
4241
4242 2014-06-17 Tom Tromey <tromey@redhat.com>
4243
4244 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4245
4246 2014-06-16 Keith Seitz <keiths@redhat.com>
4247
4248 PR mi/15863
4249 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4250 to update the varobj if inferior_ptid is null_ptid.
4251
4252 2014-06-16 Tom Tromey <tromey@redhat.com>
4253
4254 * target.h (struct target_ops) <to_info_proc>: Make parameter
4255 const.
4256 (target_info_proc): Update.
4257 * target.c (target_info_proc): Make "args" const.
4258 * procfs.c (procfs_info_proc): Update.
4259 * linux-tdep.c (linux_info_proc): Update.
4260 (linux_core_info_proc_mappings): Make "args" const.
4261 (linux_core_info_proc): Update.
4262 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4263 * gdbarch.c: Rebuild.
4264 * gdbarch.h: Rebuild.
4265 * corelow.c (core_info_proc): Update.
4266
4267 2014-06-16 Tom Tromey <tromey@redhat.com>
4268
4269 * target.h (struct target_ops) <to_disconnect>: Make parameter
4270 const.
4271 (target_disconnect): Update.
4272 * target.c (target_disconnect): Make "args" const.
4273 * target-delegates.c: Rebuild.
4274 * remote.c (remote_disconnect): Update.
4275 * record.h (record_disconnect): Update.
4276 * record.c (record_disconnect): Update.
4277 * inf-child.c (inf_child_disconnect): Update.
4278
4279 2014-06-16 Tom Tromey <tromey@redhat.com>
4280
4281 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4282 * target.c (debug_to_rcmd, default_rcmd): Update.
4283 * target-delegates.c: Rebuild.
4284 * remote.c (remote_rcmd): Update.
4285 * monitor.c (monitor_rcmd): Update.
4286
4287 2014-06-16 Pedro Alves <palves@redhat.com>
4288
4289 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4290 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4291 have OBJF_SHARED set.
4292 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4293 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4294 instead of OBJF_USERLOADED.
4295 * objfiles.h (OBJF_SHARED): Update comment.
4296 (userloaded_objfile_contains_address_p): Rename to ...
4297 (shared_objfile_contains_address_p): ... this, and update
4298 comments.
4299 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4300 new objfile.
4301 (remove_symbol_file_command): Skip objfiles that don't have
4302 OBJF_SHARED set.
4303
4304 2014-06-16 Tom Tromey <tromey@redhat.com>
4305
4306 * minsyms.h (prim_record_minimal_symbol)
4307 (prim_record_minimal_symbol_and_info): Update comments.
4308
4309 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4310
4311 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4312 or --without-guile, according to how GDB was built.
4313
4314 2014-06-13 Tom Tromey <tromey@redhat.com>
4315
4316 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4317 to help_list.
4318 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4319 to help_list.
4320 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4321 help_list.
4322 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4323 help_list.Pass all_commands, not -1, to help_list.
4324 * cli/cli-dump.c (dump_command, append_command)
4325 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4326 (binary_dump_command, binary_append_command): Pass all_commands,
4327 not -1, to help_list.
4328 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4329 -1, to help_list.
4330 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4331 -1, to help_list.
4332 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4333 help_list.
4334 * top.c (set_history): Pass all_commands, not -1, to help_list.
4335 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4336 all_commands, not -1, to help_list.
4337 * symfile.c (overlay_command): Pass all_commands, not -1, to
4338 help_list.
4339 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4340 help_list.
4341 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4342 help_list.
4343 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4344 -1, to help_list.
4345 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4346 not -1, to help_list.
4347 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4348 not -1, to help_list.
4349 * maint.c (maintenance_command, maintenance_info_command)
4350 (maintenance_print_command, maintenance_set_cmd): Pass
4351 all_commands, not -1, to help_list.
4352 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4353 help_list.
4354 * language.c (set_check): Pass all_commands, not -1, to help_list.
4355 * infcmd.c (unset_command): Pass all_commands, not -1, to
4356 help_list.
4357 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4358 help_list.
4359 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4360 help_list.
4361 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4362 help_list.
4363 * breakpoint.c (save_command): Pass all_commands, not -1, to
4364 help_list.
4365 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4366 all_commands, not -1, to help_list.
4367
4368 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4369
4370 * regcache.c (struct register_to_invalidate): New structure.
4371 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4372 functions.
4373 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4374
4375 2014-06-12 Yao Qi <yao@codesourcery.com>
4376
4377 * varobj.c (varobj_get_num_children): Call
4378 varobj_is_dynamic_p.
4379 (varobj_list_children): Likewise.
4380 (varobj_update): Likewise. Update comments.
4381
4382 2014-06-12 Yao Qi <yao@codesourcery.com>
4383
4384 * varobj.c (varobj_pretty_printed_p): Rename to ...
4385 (varobj_is_dynamic_p): ... this. New function.
4386 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4387 (varobj_is_dynamic_p): Declare.
4388 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4389 (mi_print_value_p, varobj_update_one): Likewise.
4390
4391 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4392 Yao Qi <yao@codesourcery.com>
4393
4394 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4395 (varobj_get_iterator): Wrap up code for pretty-printer by
4396 "#if HAVE_PYTHON" and "#endif".
4397 (update_dynamic_varobj_children): Likewise.
4398
4399 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4400 Yao Qi <yao@codesourcery.com>
4401
4402 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4403 gdb_python_initialized is false. Move some code from varobj.c.
4404 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4405 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4406 (struct varobj_item): Moved to varobj-iter.h".
4407 (varobj_clear_saved_item): New function.
4408 (update_dynamic_varobj_children): Move python-related code to
4409 py-varobj.c.
4410 (free_variable): Call varobj_clear_saved_item and
4411 varobj_iter_delete.
4412
4413 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4414 Yao Qi <yao@codesourcery.com>
4415
4416 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4417 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4418 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4419 (py-varobj.o): New rule.
4420 * python/py-varobj.c: New file.
4421 * python/python-internal.h (py_varobj_get_iterator): Declare.
4422 * varobj-iter.h: New file.
4423 * varobj.c: Include "varobj-iter.h"
4424 (struct varobj) <child_iter>: Change its type from "PyObject *"
4425 to "struct varobj_iter *".
4426 <saved_item>: Likewise.
4427 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4428 [HAVE_PYTHON] (varobj_get_iterator): New function.
4429 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4430 python-specific code to python/py-varobj.c.
4431 (install_visualizer): Call varobj_iter_delete instead of
4432 Py_XDECREF.
4433 * varobj.h (varobj_ensure_python_env): Declare.
4434
4435 2014-06-12 Yao Qi <yao@codesourcery.com>
4436
4437 * varobj.c (struct varobj_item): New structure.
4438 (create_child_with_value): Update declaration.
4439 (varobj_add_child): Replace arguments 'name' and 'value' with
4440 'item'. All callers updated.
4441 (install_dynamic_child): Likewise.
4442 (update_dynamic_varobj_children): Likewise.
4443 (varobj_add_child): Likewise.
4444 (create_child_with_value): Likewise.
4445
4446 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4447
4448 * NEWS: Create a new section for the next release branch.
4449 Rename the section of the current branch, now that it has
4450 been cut.
4451
4452 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4453
4454 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4455 * version.in: Bump version to 7.8.50.DATE-cvs.
4456
4457 2014-06-11 Pedro Alves <palves@redhat.com>
4458
4459 PR remote/17028
4460 * ser-mingw.c (net_windows_socket_check_pending): New function.
4461 (net_windows_select_thread): Ignore spurious wakeups. Use
4462 net_windows_socket_check_pending.
4463 (net_windows_wait_handle): Check for pending events with
4464 ioctlsocket, through net_windows_socket_check_pending, instead of
4465 checking the socket's event.
4466
4467 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4468
4469 * python/python-internal.h (gdb_PyObject_GetAttrString)
4470 (gdb_PyObject_HasAttrString): New inline function definitions.
4471 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4472 char * of the second argument to PyObject_GetAttrString.
4473
4474 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4475
4476 * serial.c (serial_write): Fix index of character to be printed
4477 in call to serial_logchar when serial debug traces are enabled.
4478
4479 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4480
4481 * gdbtypes (resolve_dynamic_range): Add function description.
4482
4483 2014-06-09 Pedro Alves <palves@redhat.com>
4484
4485 * linux-nat.c (linux_child_follow_fork): Initialize status with
4486 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4487 inner block. Only pass the signal to PTRACE_DETACH if in pass
4488 state.
4489
4490 2014-06-09 Gary Benson <gbenson@redhat.com>
4491
4492 * common/signals.c (gdb_signal_from_host): Reorder to separate
4493 the always-available ANSI-standard signals from the signals that
4494 require checking.
4495 (do_gdb_signal_to_host): Likewise.
4496 * proc-events.c (signal_table): Likewise.
4497
4498 2014-06-08 Hui Zhu <hui@codesourcery.com>
4499
4500 * common/linux-ptrace.c (linux_disable_event_reporting): New
4501 function.
4502 * common/linux-ptrace.h (linux_disable_event_reporting): New
4503 declaration.
4504 * linux-nat.c (linux_child_follow_fork): Do a single step before
4505 detach.
4506
4507 2014-06-07 Keith Seitz <keiths@redhat.com>
4508
4509 Revert:
4510 PR c++/16253
4511 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4512 from symbol_matches_domain in symtab.c. All local callers
4513 of symbol_matches_domain updated.
4514 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4515 search STRUCT_DOMAIN.
4516 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4517 independently. standard_lookup will do that automatically.
4518 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4519 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4520 (cp_lookup_symbol_in_namespace): Likewise.
4521 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4522 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4523 may return a STRUCT_DOMAIN match.
4524 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4525 * cp-support.c: Include language.h.
4526 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4527 VAR_DOMAIN.
4528 * psymtab.c (match_partial_symbol): Compare the requested
4529 domain with the symbol's domain directly.
4530 (lookup_partial_symbol): Likewise.
4531 * symtab.c (lookup_symbol_in_language): Explain when/why
4532 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4533 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4534 appropriate languages.
4535 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4536 and moved to ada-lang.c
4537 (lookup_block_symbol): Explain that this function only returns
4538 symbol matching the requested DOMAIN.
4539 Compare the requested domain with the symbol's domain directly.
4540 (iterate_over_symbols): Compare the requested domain with the
4541 symbol's domain directly.
4542 * symtab.h (symbol_matches_domain): Remove.
4543
4544 2014-06-06 Doug Evans <xdje42@gmail.com>
4545
4546 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4547 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4548 (gdbscm_guile_version_is_at_least): Declare.
4549 (gdbscm_scm_string_to_int): Declare.
4550 * guile/guile.c (gdbscm_guile_major_version): New global.
4551 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4552 (guile_datadir): New static global.
4553 (gdbscm_guile_data_directory): New function.
4554 (initialize_scheme_side): Update.
4555 (misc_guile_functions): Add guile-data-directory.
4556 (initialize_gdb_module): Fetch guile version number.
4557 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4558 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4559 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4560 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4561 comments.
4562 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4563 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4564 * guile/scm-value.c (gdbscm_value_to_string): Only call
4565 scm_port_conversion_strategy if Guile version >= 2.0.6.
4566
4567 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4568
4569 * main.c (print_gdb_help): Add -q and --silent.
4570
4571 2014-06-06 Gary Benson <gbenson@redhat.com>
4572
4573 * common/signals.c: Remove preprocessor conditionals for
4574 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4575 SIGSEGV and SIGTERM.
4576 * proc-events.c: Likewise.
4577
4578 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4579
4580 * symfile.c (symfile_free_objfile): Remove restriction to
4581 OBJF_USERLOADED.
4582 * symfile-mem.c (symbol_file_add_from_memory): Call
4583 add_target_sections_of_objfile.
4584
4585 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4586
4587 * guile/scm-value.c (gdbscm_history_append_x): Use
4588 'vlscm_get_value_smob_arg_unsafe' instead of
4589 'vlscm_scm_to_value'.
4590
4591 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4592
4593 PR mi/15806
4594 * utils.c (printchar): Don't escape at all if quoter is NUL.
4595 Update function documentation to clarify effect of parameter
4596 QUOTER.
4597 * remote.c (escape_buffer): Pass '\\' as the quoter to
4598 fputstrn_unfiltered.
4599 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4600 generate the output.
4601 (mi_solib_unloaded): Same.
4602
4603 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4604
4605 * development.sh: Delete.
4606 * Makefile.in (config.status): Adjust dependency on development.sh.
4607 * configure.ac: Adjust development.sh source call.
4608 * configure: Regenerate.
4609
4610 2014-06-04 Doug Evans <xdje42@gmail.com>
4611
4612 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4613 is_scheme_bkpt, spec.
4614 (bpscm_make_breakpoint_smob): Initialize new members.
4615 (gdbscm_create_breakpoint_x): Split into two ...
4616 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4617 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4618 (scheme_function breakpoint_functions): Update.
4619 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4620 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4621 register-breakpoint!.
4622
4623 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4624
4625 PR server/17023
4626 * mem-break.c (z_type_supported): Return zero if
4627 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4628
4629 2014-06-04 Tom Tromey <tromey@redhat.com>
4630
4631 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4632 value_from_contents_and_address_unresolved.
4633 (ada_template_to_fixed_record_type_1): Likewise.
4634 (ada_which_variant_applies): Likewise.
4635 * value.h (value_from_contents_and_address_unresolved): Declare.
4636 * value.c (value_from_contents_and_address_unresolved): New
4637 function.
4638 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4639 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4640 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4641
4642 2014-06-04 Tom Tromey <tromey@redhat.com>
4643
4644 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4645
4646 2014-06-04 Tom Tromey <tromey@redhat.com>
4647
4648 * procfs.c (procfs_attach): Make "args" const.
4649 * windows-nat.c (windows_attach): Make "args" const.
4650 * nto-procfs.c (procfs_attach): Make "args" const.
4651 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4652 * go32-nat.c (go32_attach): Make "args" const.
4653 * gnu-nat.c (gnu_attach): Make "args" const.
4654 * darwin-nat.c (darwin_attach): Make "args" const.
4655 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4656 * linux-nat.c (linux_nat_attach): Make "args" const.
4657 * remote.c (extended_remote_attach_1, extended_remote_attach):
4658 Make "args" const.
4659 * target.h (struct target_ops) <to_attach>: Make "args" const.
4660 (find_default_attach): Likewise.
4661 * utils.c (parse_pid_to_attach): Make "args" const.
4662 * utils.h (parse_pid_to_attach): Update.
4663
4664 2014-06-04 Tom Tromey <tromey@redhat.com>
4665
4666 * target-delegates.c: Rebuild.
4667 * target.c (default_thread_address_space): New function.
4668 (target_thread_address_space): Simplify.
4669 * target.h (struct target_ops) <to_thread_address_space>: Add
4670 TARGET_DEFAULT_FUNC.
4671
4672 2014-06-04 Doug Evans <xdje42@gmail.com>
4673
4674 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4675
4676 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4677
4678 * record-btrace.c: Include event-loop.h and inf-loop.h.
4679 (record_btrace_resume_exec_dir)
4680 (record_btrace_async_inferior_event_handler)
4681 (record_btrace_handle_async_inferior_event): New.
4682 (record_btrace_open): Create async event handler.
4683 (record_btrace_close): Delete async event handler.
4684 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4685 Mark async event handler.
4686 (record_btrace_execution_direction): New.
4687 (init_record_btrace_ops): Initialize to_execution_direction.
4688
4689 2014-06-03 Doug Evans <xdje42@gmail.com>
4690
4691 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4692 (gdbscm_make_parameter): Ditto.
4693
4694 2014-06-03 Doug Evans <dje@google.com>
4695
4696 * exec.c (exec_close_1): Call clear_section_table instead of
4697 resize_section_table.
4698 (clear_section_table): New function.
4699 (resize_section_table): Make static. Rename arg num_added to
4700 adjustment.
4701 * exec.h (clear_section_table): Declare.
4702 (resize_section_table): Delete.
4703 * progspace.c (release_program_space): Call clear_section_table
4704 instead of resize_section_table.
4705
4706 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4707
4708 * NEWS (Python Scripting): Add entry about the new xmethods
4709 feature.
4710
4711 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4712
4713 * python/py-xmethods.c: New file.
4714 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4715 (objfpy_dealloc): XDECREF on the new xmethods field.
4716 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4717 field.
4718 (objfpy_get_xmethods): New function.
4719 (objfile_getset): New entry 'xmethods'.
4720 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4721 (pspy_dealloc): XDECREF on the new xmethods field.
4722 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4723 field.
4724 (pspy_get_xmethods): New function.
4725 (pspace_getset): New entry 'xmethods'.
4726 * python/python-internal.h: Add declarations for new functions.
4727 * python/python.c (_initialize_python): Invoke
4728 gdbpy_initialize_xmethods.
4729 * python/lib/gdb/__init__.py (xmethods): New
4730 attribute.
4731 * python/lib/gdb/xmethod.py: New file.
4732 * python/lib/gdb/command/xmethods.py: New file.
4733
4734 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4735
4736 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4737 best match method returned by find_overload_match is an xmethod.
4738 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4739 the best matching operator returned by find_overload_match is an
4740 xmethod.
4741 * valops.c: #include "extension.h".
4742 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4743 Return void. The list of matching source methods is returned in
4744 "fn_list" and a vector of matching debug method workers is
4745 returned in "xm_worker_vec". Update all callers.
4746 (value_find_oload_method_list): Likewise.
4747 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4748 non-NULL, then the index of the best matching method in this
4749 vector is returned. Update all callers.
4750 (find_overload_match): Include xmethods while performing overload
4751 resolution.
4752
4753 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4754
4755 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4756 * extension-priv.h (struct extension_language_ops): Add the
4757 xmethod interface.
4758 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4759 get_matching_xmethod_workers, get_xmethod_argtypes,
4760 invoke_xmethod, free_xmethod_worker,
4761 free_xmethod_worker_vec): New functions.
4762 * extension.h: #include "common/vec.h".
4763 New function declarations.
4764 (struct xmethod_worker): New struct.
4765 (VEC (xmethod_worker_ptr)): New vector type.
4766 (xmethod_worker_ptr): New typedef.
4767 (xmethod_worker_vec): Likewise.
4768 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4769 builtin_type.
4770 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4771 (struct builtin_type): New field "xmethod".
4772 * valarith.c (value_ptradd): Assert that the value argument is not
4773 lval_xcallable.
4774 * valops.c (value_must_coerce_to_target): Return 0 for
4775 lval_xcallable values.
4776 * value.c (struct value): New field XM_WORKER in the field
4777 LOCATION.
4778 (value_address, value_raw_address): Return 0 for lval_xcallable
4779 values.
4780 (set_value_address): Assert that the value is not an
4781 lval_xcallable.
4782 (value_free): Free the associated xmethod worker when freeing
4783 lval_xcallable values.
4784 (set_value_component_location): Assert that the WHOLE value is not
4785 lval_xcallable.
4786 (value_of_xmethod, call_xmethod): New functions.
4787 * value.h: Declare "struct xmethod_worker".
4788 Declare new functions value_of_xmethod, call_xmethod.
4789
4790 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4791 Pedro Alves <palves@redhat.com>
4792
4793 PR breakpoints/17000
4794 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4795 New function, extracted from software_breakpoint_inserted_here_p.
4796 (software_breakpoint_inserted_here_p): Replace factored out code
4797 by call to find_non_raw_software_breakpoint_inserted_here.
4798 (bp_target_info_copy_insertion_state): New function.
4799 (bkpt_insert_location): Handle the case of a single-step
4800 breakpoint already inserted at the same address.
4801 (bkpt_remove_location): Handle the case of a single-step
4802 breakpoint still inserted at the same address.
4803 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4804 breakpoint already inserted at the same address.
4805 (deprecated_remove_raw_breakpoint): Handle the case of a
4806 non-raw breakpoint still inserted at the same address.
4807 (find_single_step_breakpoint): New function, extracted from
4808 single_step_breakpoint_inserted_here_p.
4809 (find_single_step_breakpoint): New function,
4810 factored out from single_step_breakpoint_inserted_here_p.
4811 (single_step_breakpoint_inserted_here_p): Reimplement.
4812
4813 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4814
4815 Pushed by Joel Brobecker <brobecker@adacore.com>
4816 * source.c (show_substitute_path_command): Fix display of matching
4817 substitution rules.
4818
4819 2014-06-03 Gary Benson <gbenson@redhat.com>
4820
4821 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4822
4823 2014-06-02 Doug Evans <xdje42@gmail.com>
4824
4825 Add parameter support for Guile.
4826 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4827 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4828 (scm-param.o): New rule.
4829 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4830 (gdbscm_misc_error): Declare.
4831 (gdbscm_canonicalize_command_name): Declare.
4832 (gdbscm_scm_to_host_string): Declare.
4833 (gdbscm_scm_from_host_string): Declare.
4834 (gdbscm_initialize_parameters): Declare.
4835 * guile/guile.c (initialize_gdb_module): Call
4836 gdbscm_initialize_parameters.
4837 * guile/lib/gdb.scm: Export parameter symbols.
4838 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4839 cmdscm_canonicalize_name and made public. All callers updated.
4840 * guile/scm-exception.c (gdbscm_misc_error): New function.
4841 * guile/scm-param.c: New file.
4842 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4843 (gdbscm_scm_to_host_string): New function.
4844 (gdbscm_scm_from_host_string): New function.
4845 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4846
4847 2014-06-02 Doug Evans <xdje42@gmail.com>
4848
4849 Add command support for Guile.
4850 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4851 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4852 (scm-cmd.o): New rule.
4853 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4854 (gdbscm_user_error_p): Declare.
4855 (gdbscm_parse_command_name): Declare.
4856 (gdbscm_valid_command_class_p): Declare.
4857 (gdbscm_initialize_commands): Declare.
4858 * guile/guile.c (initialize_gdb_module): Call
4859 gdbscm_initialize_commands.
4860 * guile/lib/gdb.scm: Export command symbols.
4861 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4862 (throw-user-error): New function.
4863 * guile/scm-cmd.c: New file.
4864 * guile/scm-exception.c (user_error_symbol): New static global.
4865 (gdbscm_user_error_p): New function.
4866 (gdbscm_initialize_exceptions): Set user_error_symbol.
4867 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4868
4869 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4870
4871 * top.c (command_loop): Handle comments here...
4872 (command_line_input): ... not here.
4873
4874 2014-06-02 Doug Evans <xdje42@gmail.com>
4875
4876 Add progspace support for Guile.
4877 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4878 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4879 (scm-progspace.o): New rule.
4880 * guile/guile-internal.h (pspace_smob): New typedef.
4881 (psscm_pspace_smob_pretty_printers): Declare.
4882 (psscm_pspace_smob_from_pspace): Declare.
4883 (psscm_scm_from_pspace): Declare.
4884 * guile/guile.c (initialize_gdb_module): Call
4885 gdbscm_initialize_pspaces.
4886 * guile/lib/gdb.scm: Export progspace symbols.
4887 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4888 support.
4889 (append-pretty-printer!): Ditto.
4890 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4891 Implement.
4892 * guile/scm-progspace.c: New file.
4893
4894 2014-06-03 Alan Modra <amodra@gmail.com>
4895
4896 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4897 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4898
4899 2014-06-02 Doug Evans <dje@google.com>
4900
4901 Add support for skeletonless type units.
4902 * dwarf2read.c (struct dwarf2_per_objfile): New member
4903 n_allocated_type_units.
4904 (struct dwarf2_per_objfile) <tu_stats>: New member
4905 nr_all_type_units_reallocs.
4906 (create_signatured_type_table_from_index): Initialize
4907 n_allocated_type_units
4908 (create_all_type_units): Ditto.
4909 (add_type_unit): Move up in file. New arg slot.
4910 All callers updated. Increase space for all_type_units more
4911 efficiently.
4912 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4913 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4914 (lookup_dwp_signatured_type): Ditto.
4915 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4916 All callers updated.
4917 (build_type_psymtabs_1): Leave type_unit_groups as
4918 NULL if no TUs present.
4919 (print_tu_stats): New function.
4920 (process_skeletonless_type_unit): New function.
4921 (process_dwo_file_for_skeletonless_type_units): New
4922 function.
4923 (process_skeletonless_type_units): New function.
4924 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4925 Call print tu_stats if debugging enabled.
4926
4927 2014-06-02 Pedro Alves <palves@redhat.com>
4928
4929 * breakpoint.c (build_target_command_list): Don't build a command
4930 list if we have any duplicate location that isn't a dprintf.
4931
4932 2014-06-02 Pedro Alves <palves@redhat.com>
4933
4934 * breakpoint.c (dprintf_breakpoint_hit): New function.
4935 (initialize_breakpoint_ops): Install it as dprintf's
4936 breakpoint_hit method.
4937
4938 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4939
4940 * source.c (substitute_path_rule_matches): Simplify using
4941 filename_ncmp instead of FILENAME_CMP.
4942
4943 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4944
4945 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4946
4947 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4948
4949 * configure.ac: When Guile is available, check for the
4950 availability of 'scm_new_smob'.
4951 * configure, config.h.in: Regenerate.
4952 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4953 function.
4954
4955 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4956
4957 * frame.c (struct frame_info): Add stop_string field.
4958 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4959 (get_prev_frame_always): Old content moved into
4960 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4961 TRY_CATCH, handle MEMORY_ERROR exceptions.
4962 (frame_stop_reason_string): New function definition.
4963 * frame.h (unwind_stop_reason_to_string): Extend comment to
4964 mention frame_stop_reason_string.
4965 (frame_stop_reason_string): New function declaration.
4966 * stack.c (frame_info): Switch to frame_stop_reason_string.
4967 (backtrace_command_1): Switch to frame_stop_reason_string.
4968 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4969 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4970 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4971
4972 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4973
4974 * frame.c (frame_stop_reason_string): Rename to ...
4975 (unwind_stop_reason_to_string): this.
4976 * frame.h (frame_stop_reason_string): Rename to ...
4977 (unwind_stop_reason_to_string): this.
4978 * stack.c (frame_info): Update call to frame_stop_reason_string.
4979 (backtrace_command_1): Likewise.
4980 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4981 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4982
4983 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4984
4985 * frame.c (remove_prev_frame): New function.
4986 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4987 remove_prev_frame.
4988
4989 2014-05-29 Pedro Alves <palves@redhat.com>
4990
4991 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4992 and make it const. When a single-step decays to a continue,
4993 clear 'step', not 'hw_step'. Pass whether the caller wanted
4994 to step to user_visible_resume_ptid, not what we ask the
4995 target to do.
4996
4997 2014-05-29 Pedro Alves <palves@redhat.com>
4998
4999 * infrun.c (process_event_stop_test, handle_step_into_function)
5000 (handle_step_into_function_backward): Adjust.
5001 Don't set the even thread's stop_step and call stop_waiting before
5002 calling end_stepping_range. Instead do that ...
5003 (end_stepping_range): ... here. Take an ecs pointer parameter.
5004
5005 2014-05-29 Pedro Alves <palves@redhat.com>
5006
5007 * infrun.c (stop_stepping): Rename to ...
5008 (stop_waiting): ... this.
5009 (proceed): Update comment.
5010 (process_event_stop_test, handle_inferior_event)
5011 (handle_signal_stop, handle_step_into_function)
5012 (handle_step_into_function_backward): Update.
5013
5014 2014-05-29 Pedro Alves <palves@redhat.com>
5015
5016 * infcall.c (run_inferior_call): Don't check whether the current
5017 thread is running after the proceed call.
5018
5019 2014-05-29 Pedro Alves <palves@redhat.com>
5020 Tom Tromey <tromey@redhat.com>
5021
5022 * NEWS: Mention "maint set target-async", "set mi-async", and that
5023 background execution commands are now always available.
5024 * target.h (target_async_permitted): Update comment.
5025 * target.c (target_async_permitted, target_async_permitted_1):
5026 Default to 1.
5027 (set_target_async_command): Rename to ...
5028 (maint_set_target_async_command): ... this.
5029 (show_target_async_command): Rename to ...
5030 (maint_show_target_async_command): ... this.
5031 (_initialize_target): Adjust.
5032 * infcmd.c (prepare_execution_command): Make extern.
5033 * inferior.h (prepare_execution_command): Declare.
5034 * infrun.c (set_observer_mode): Leave target async alone.
5035 * mi/mi-interp.c (mi_interpreter_init): Install
5036 mi_on_sync_execution_done as sync_execution_done observer.
5037 (mi_on_sync_execution_done): New function.
5038 (mi_execute_command_input_handler): Don't print the prompt if we
5039 just started a synchronous command with an async target.
5040 (mi_on_resume): Check sync_execution before printing prompt.
5041 * mi/mi-main.h (mi_async_p): Declare.
5042 * mi/mi-main.c: Include gdbcmd.h.
5043 (mi_async_p): New function.
5044 (mi_async, mi_async_1): New globals.
5045 (set_mi_async_command, show_mi_async_command, mi_async): New
5046 functions.
5047 (exec_continue): Call prepare_execution_command.
5048 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5049 (mi_execute_async_cli_command): Use mi_async_p.
5050 (_initialize_mi_main): Install "set mi-async". Make
5051 "target-async" a deprecated alias.
5052
5053 2014-05-29 Pedro Alves <palves@redhat.com>
5054
5055 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5056 (_initialize_cli_interp): Adjust.
5057 * event-loop.c: Include "observer.h".
5058 (start_event_loop): Notify 'command_error' observers instead of
5059 calling display_gdb_prompt. Remove FIXME comment.
5060 * event-top.c (display_gdb_prompt): Remove call into the
5061 interpreters.
5062 * inf-loop.c: Include "observer.h".
5063 (inferior_event_handler): Notify 'command_error' observers instead
5064 of calling display_gdb_prompt.
5065 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5066 observers instead of calling display_gdb_prompt.
5067 * interps.c (interp_set): Don't call display_gdb_prompt.
5068 (current_interp_display_prompt_p): Delete.
5069 * interps.h (interp_prompt_p): Delete declaration.
5070 (interp_prompt_p_ftype): Delete.
5071 (struct interp_procs) <prompt_proc_p>: Delete field.
5072 (current_interp_display_prompt_p): Delete declaration.
5073 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5074 (_initialize_mi_interp): Adjust.
5075 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5076 'command_error' observers.
5077 (tui_on_sync_execution_done, tui_on_command_error): New
5078 functions.
5079 (tui_display_prompt_p): Delete.
5080 (_initialize_tui_interp): Adjust.
5081
5082 2014-05-29 Pedro Alves <palves@redhat.com>
5083
5084 PR gdb/13860
5085 * cli/cli-interp.c: Include infrun.h and observer.h.
5086 (cli_uiout, cli_interp): New globals.
5087 (cli_on_signal_received, cli_on_end_stepping_range)
5088 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5089 functions.
5090 (cli_interpreter_init): Install them as 'end_stepping_range',
5091 'signal_received' 'signal_exited', 'exited' and 'no_history'
5092 observers.
5093 (_initialize_cli_interp): Remove cli_interp local.
5094 * infrun.c (handle_inferior_event): Call the several stop reason
5095 observers instead of printing the stop reason directly.
5096 (end_stepping_range): New function.
5097 (print_end_stepping_range_reason, print_signal_exited_reason)
5098 (print_exited_reason, print_signal_received_reason)
5099 (print_no_history_reason): Make static, and add an uiout
5100 parameter. Print to that instead of to CURRENT_UIOUT.
5101 * infrun.h (print_end_stepping_range_reason)
5102 (print_signal_exited_reason, print_exited_reason)
5103 (print_signal_received_reason print_no_history_reason): New
5104 declarations.
5105 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5106 'mi_uiout'.
5107 <cli_uiout>: New field.
5108 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5109 uiout for CLI output. Install 'signal_received',
5110 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5111 observers.
5112 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5113 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5114 (mi_on_no_history): New functions.
5115 (ui_out_free_cleanup): Delete function.
5116 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5117 instead use the one already stored in the MI interpreter data.
5118 (mi_ui_out): Adjust.
5119 * tui/tui-interp.c: Include infrun.h and observer.h.
5120 (tui_interp): New global.
5121 (tui_on_signal_received, tui_on_end_stepping_range)
5122 (tui_on_signal_exited, tui_on_exited)
5123 (tui_on_no_history): New functions.
5124 (tui_init): Install them as 'end_stepping_range',
5125 'signal_received' 'signal_exited', 'exited' and 'no_history'
5126 observers.
5127 (_initialize_tui_interp): Delete tui_interp local.
5128
5129 2014-05-29 Pedro Alves <palves@redhat.com>
5130
5131 PR gdb/15713
5132 * linux-nat.c (linux_nat_resume_callback): Rename the second
5133 parameter to 'except'. Skip LP if it points to EXCEPT.
5134 (linux_nat_resume): Don't mark the event lwp as not stopped
5135 before resuming sibling lwps. Instead ask
5136 linux_nat_resume_callback to skip the event lwp. Mark it as not
5137 stopped after actually resuming it.
5138 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5139 resuming it.
5140 (wait_lwp): Mark the lwp as stopped here.
5141 (stop_wait_callback): Mark the lwp as not stopped right after
5142 resuming it. Don't mark lwps as stopped here.
5143 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5144 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5145
5146 2014-05-29 Pedro Alves <palves@redhat.com>
5147
5148 PR PR15693
5149 * infrun.c (resume): Determine how much to resume depending on
5150 whether the caller wanted a step, not whether we can hardware step
5151 the target. Mark all threads that we intend to run as running,
5152 unless we're calling an inferior function.
5153 (normal_stop): If the thread is running an infcall, don't finish
5154 thread state.
5155 * target.c (target_resume): Don't mark threads as running here.
5156
5157 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5158
5159 * serial.c (_initialize_serial): Remove support for
5160 the "set remotebaud" and "show remotebaud" commands.
5161 * NEWS: Add entry documenting the removal of that command.
5162
5163 2014-05-28 Yao Qi <yao@codesourcery.com>
5164
5165 * charset.c: Fix typo in comments.
5166
5167 2014-05-27 Gary Benson <gbenson@redhat.com>
5168
5169 * utils.c (internal_vproblem): Prompt for a bug report.
5170
5171 2014-05-26 Andy Wingo <wingo@igalia.com>
5172
5173 * guile/scm-arch.c (arscm_mark_arch_smob):
5174 * guile/scm-block.c (bkscm_mark_block_smob)
5175 (bkscm_mark_block_syms_progress_smob):
5176 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5177 * guile/scm-exception.c (exscm_mark_exception_smob):
5178 * guile/scm-frame.c (frscm_mark_frame_smob):
5179 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5180 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5181 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5182 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5183 (ppscm_mark_pretty_printer_worker_smob):
5184 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5185 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5186 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5187 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5188 mark functions.
5189 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5190 function.
5191
5192 2014-05-26 Andy Wingo <wingo@igalia.com>
5193 Doug Evans <xdje42@gmail.com>
5194
5195 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5196 empty_base_class. All uses updated.
5197 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5198 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5199 Adapt all callers.
5200 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5201 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5202 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5203 (gdbscm_gsmob_has_property_p, add_property_name)
5204 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5205 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5206 (gdb-object-has-property?, gdb-object-properties): Remove.
5207 (gdb-object-kind): Renamed from gsmob-kind.
5208
5209 2014-05-26 Andy Wingo <wingo@igalia.com>
5210
5211 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5212 * configure: Regenerate.
5213
5214 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5215
5216 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5217
5218 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5219
5220 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5221 (replay_memory_access_read_only, replay_memory_access_read_write)
5222 (replay_memory_access_types, replay_memory_access)
5223 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5224 (cmd_set_record_btrace, cmd_show_record_btrace)
5225 (cmd_show_replay_memory_access): New.
5226 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5227 (record_btrace_remove_breakpoint): Replace
5228 record_btrace_allow_memory_access with replay_memory_access.
5229 (_initialize_record_btrace): Add commands.
5230 * NEWS: Announce it.
5231
5232 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5233
5234 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5235
5236 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5237
5238 * MAINTAINERS (Write After Approval): Move self back from
5239 paper trail.
5240
5241 2014-05-22 Pedro Alves <palves@redhat.com>
5242
5243 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5244 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5245 (disable_randomization, enum exec_direction_kind)
5246 (execution_direction, stop_registers, start_remote)
5247 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5248 (wait_for_inferior, normal_stop, get_last_target_status)
5249 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5250 (insert_step_resume_breakpoint_at_sal)
5251 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5252 (set_step_info, print_stop_event, signal_stop_state)
5253 (signal_print_state, signal_pass_state, signal_stop_update)
5254 (signal_print_update, signal_pass_update)
5255 (update_signals_program_target, clear_exit_convenience_vars)
5256 (displaced_step_dump_bytes, update_observer_mode)
5257 (signal_catch_update, gdb_signal_from_command): Move
5258 declarations ...
5259 * infrun.h: ... to this new file.
5260 * amd64-tdep.c: Include infrun.h.
5261 * annotate.c: Include infrun.h.
5262 * arch-utils.c: Include infrun.h.
5263 * arm-linux-tdep.c: Include infrun.h.
5264 * arm-tdep.c: Include infrun.h.
5265 * break-catch-sig.c: Include infrun.h.
5266 * breakpoint.c: Include infrun.h.
5267 * common/agent.c: Include infrun.h instead of inferior.h.
5268 * corelow.c: Include infrun.h.
5269 * event-top.c: Include infrun.h.
5270 * go32-nat.c: Include infrun.h.
5271 * i386-tdep.c: Include infrun.h.
5272 * inf-loop.c: Include infrun.h.
5273 * infcall.c: Include infrun.h.
5274 * infcmd.c: Include infrun.h.
5275 * infrun.c: Include infrun.h.
5276 * linux-fork.c: Include infrun.h.
5277 * linux-nat.c: Include infrun.h.
5278 * linux-thread-db.c: Include infrun.h.
5279 * monitor.c: Include infrun.h.
5280 * nto-tdep.c: Include infrun.h.
5281 * procfs.c: Include infrun.h.
5282 * record-btrace.c: Include infrun.h.
5283 * record-full.c: Include infrun.h.
5284 * remote-m32r-sdi.c: Include infrun.h.
5285 * remote-mips.c: Include infrun.h.
5286 * remote-notif.c: Include infrun.h.
5287 * remote-sim.c: Include infrun.h.
5288 * remote.c: Include infrun.h.
5289 * reverse.c: Include infrun.h.
5290 * rs6000-tdep.c: Include infrun.h.
5291 * s390-linux-tdep.c: Include infrun.h.
5292 * solib-irix.c: Include infrun.h.
5293 * solib-osf.c: Include infrun.h.
5294 * solib-svr4.c: Include infrun.h.
5295 * target.c: Include infrun.h.
5296 * top.c: Include infrun.h.
5297 * windows-nat.c: Include infrun.h.
5298 * mi/mi-interp.c: Include infrun.h.
5299 * mi/mi-main.c: Include infrun.h.
5300 * python/py-threadevent.c: Include infrun.h.
5301
5302 2014-05-22 Pedro Alves <palves@redhat.com>
5303
5304 * infrun.c (handle_inferior_event): Store the exit code for
5305 --return-child-result here, instead of ...
5306 (print_exited_reason): ... here.
5307
5308 2014-05-21 Pedro Alves <palves@redhat.com>
5309
5310 PR gdb/13860
5311 * gdbthread.h (struct thread_control_state): New field
5312 `command_interp'.
5313 * infrun.c (follow_fork): Copy the new thread control field to the
5314 child fork thread.
5315 (clear_proceed_status_thread): Clear the new thread control field.
5316 (proceed): Set the new thread control field.
5317 * interps.h (command_interp): Declare.
5318 * interps.c (command_interpreter): New global.
5319 (command_interp): New function.
5320 (interp_exec): Set `command_interpreter' while here.
5321 * cli-out.c (cli_uiout_dtor): New function.
5322 (cli_ui_out_impl): Install it.
5323 * mi/mi-interp.c: Include cli-out.h.
5324 (mi_cmd_interpreter_exec): Add comment.
5325 (restore_current_uiout_cleanup): New function.
5326 (ui_out_free_cleanup): New function.
5327 (mi_on_normal_stop): If finishing an execution command started by
5328 a CLI command, or any kind of breakpoint-like event triggered,
5329 print the stop event to the output (CLI) stream.
5330 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5331
5332 2014-05-21 Pedro Alves <palves@redhat.com>
5333
5334 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5335 current source line having changed.
5336 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5337 * infrun.c (normal_stop): Adjust call to
5338 set_current_sal_from_frame.
5339 * source.c (clear_lines_listed_range): New function.
5340 (set_current_source_symtab_and_line, identify_source_line): Clear
5341 the lines listed range.
5342 (line_info): Handle the first "info line" after the current source
5343 line having changed.
5344 * stack.c (print_stack_frame): Remove center handling.
5345 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5346 center sal.line.
5347
5348 2014-05-21 Pedro Alves <palves@redhat.com>
5349
5350 * inf-child.c (inf_child_mourn_inferior): New function.
5351 * inf-child.h (inf_child_mourn_inferior): New declaration.
5352 * darwin-nat.c (darwin_mourn_inferior): Use
5353 inf_child_mourn_inferior.
5354 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5355 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5356 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5357 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5358 * windows-nat.c (windows_mourn_inferior): Likewise.
5359
5360 2014-05-21 Doug Evans <xdje42@gmail.com>
5361
5362 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5363
5364 2014-05-21 Doug Evans <xdje42@gmail.com>
5365
5366 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5367 (gdbscm_out_of_range_error): Ditto.
5368 (gdbscm_memory_error): Ditto.
5369 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5370 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5371 (gdbscm_out_of_range_error): Update.
5372 (gdbscm_memory_error): Update.
5373 (gdbscm_scm_to_target_string_unsafe): Delete.
5374
5375 2014-05-21 Pedro Alves <palves@redhat.com>
5376
5377 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5378 globals.
5379 (inf_child_open_target): New function.
5380 (inf_child_open): Use inf_child_open_target to push the target
5381 instead of erroring out.
5382 (inf_child_disconnect, inf_child_close)
5383 (inf_child_maybe_unpush_target): New functions.
5384 (inf_child_target): Install inf_child_disconnect and
5385 inf_child_close. Store a pointer to the returned object.
5386 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5387 declarations.
5388 * target.c (auto_connect_native_target): New global.
5389 (show_default_run_target): New function.
5390 (find_default_run_target): Return NULL if automatically connecting
5391 to the native target is disabled.
5392 (_initialize_target): Install set/show auto-connect-native-target.
5393 * NEWS: Mention "set auto-connect-native-target", and "target
5394 native".
5395 * linux-nat.c (super_close): New global.
5396 (linux_nat_close): Call super_close.
5397 (linux_nat_add_target): Store a pointer to the base class's
5398 to_close method.
5399 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5400 inf_child_maybe_unpush.
5401 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5402 already pushed.
5403 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5404 the inferior. Use inf_child_maybe_unpush_target.
5405 (inf_ttrace_attach): Don't push the target if it is already
5406 pushed.
5407 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5408 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5409 after mourning the inferior. Use inf_child_maybe_unpush_target.
5410 (darwin_attach_pid): Don't push the target if it is already
5411 pushed.
5412 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5413 mourning the inferior. Use inf_child_maybe_unpush_target.
5414 (gnu_detach): Use inf_child_maybe_unpush_target.
5415 * go32-nat.c (go32_create_inferior): Don't push the target if it
5416 is already pushed.
5417 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5418 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5419 (procfs_open): Rename to ...
5420 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5421 comments. Can target_preopen before changing node. Call
5422 inf_child_open_target to push the target explicitly.
5423 (procfs_attach): Don't push the target if it is already pushed.
5424 (procfs_detach): Use inf_child_maybe_unpush_target.
5425 (procfs_create_inferior): Don't push the target if it is already
5426 pushed.
5427 (nto_native_ops): New global.
5428 (procfs_open): Reimplement.
5429 (procfs_native_open): New function.
5430 (init_procfs_targets): Install procfs_native_open as to_open of
5431 "target native". Store a pointer to the "native" target in
5432 nto_native_ops.
5433 * procfs.c (procfs_attach): Don't push the target if it is already
5434 pushed.
5435 (procfs_detach): Use inf_child_maybe_unpush_target.
5436 (procfs_mourn_inferior): Only unpush the target after mourning the
5437 inferior. Use inf_child_maybe_unpush_target.
5438 (procfs_init_inferior): Don't push the target if it is already
5439 pushed.
5440 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5441 if it is already pushed.
5442
5443 2014-05-21 Pedro Alves <palves@redhat.com>
5444
5445 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5446 and "procfs" targets are now called "native" instead.
5447
5448 2014-05-21 Pedro Alves <palves@redhat.com>
5449
5450 * go32-nat.c (go32_open): Delete.
5451 (go32_target): Don't override the to_open method.
5452
5453 2014-05-21 Pedro Alves <palves@redhat.com>
5454
5455 * nto-procfs.c (procfs_can_run): New function.
5456 (nto_procfs_ops): New global.
5457 (init_procfs_targets): New, based on procfs_target. Install
5458 "target native" in addition to "target procfs".
5459 (_initialize_procfs): Call init_procfs_targets instead of adding
5460 the target here.
5461
5462 2014-05-21 Pedro Alves <palves@redhat.com>
5463
5464 * windows-nat.c (windows_target): Don't override to_shortname,
5465 to_longname or to_doc.
5466
5467 2014-05-21 Pedro Alves <palves@redhat.com>
5468
5469 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5470 to_doc.
5471
5472 2014-05-21 Pedro Alves <palves@redhat.com>
5473
5474 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5475 to_shortname, to_longname or to_doc.
5476
5477 2014-05-21 Pedro Alves <palves@redhat.com>
5478
5479 * go32-nat.c (go32_target): Don't override to_shortname,
5480 to_longname or to_doc.
5481
5482 2014-05-21 Pedro Alves <palves@redhat.com>
5483
5484 * inf-child.c (inf_child_open): Remove mention of "child".
5485 (inf_child_target): Rename target to "native" instead of "child".
5486
5487 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5488
5489 * Makefile.in (SFILES): Delete "regset.c".
5490 (COMMON_OBS): Delete "regset.o".
5491 * regset.c: Remove.
5492 * regset.h (regset_alloc): Delete prototype.
5493
5494 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5495
5496 * sparc-linux-tdep.c (sparc32_linux_gregset)
5497 (sparc32_linux_fpregset): New static regset structures.
5498 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5499 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5500 'fpregset' fields.
5501 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5502 (sparc64_linux_fpregset): New static regset structures.
5503 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5504 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5505 New static regset structures.
5506 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5507 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5508 New static regset structures.
5509 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5510 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5511 New static regset structures.
5512 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5513 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5514 New static regset structures.
5515 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5516
5517 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5518
5519 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5520 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5521 register maps ("regmaps") from "*regset" to "*regmap". Do this
5522 for all regmap types and variables.
5523 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5524 (sparc32_linux_supply_core_gregset)
5525 (sparc32_linux_collect_core_gregset)
5526 (sparc32_linux_supply_core_fpregset)
5527 (sparc32_linux_collect_core_fpregset): Likewise.
5528 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5529 (sparc_gregmap, sparc_fpregmap): ... these.
5530 (sparc_supply_gregset, sparc_collect_gregset)
5531 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5532 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5533 (_initialize_sparc_nat): Rename regmaps.
5534 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5535 (sparc_gregmap, sparc_fpregmap): ... these.
5536 (sparc_supply_gregset, sparc_collect_gregset)
5537 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5538 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5539 Rename macros to...
5540 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5541 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5542 Likewise.
5543 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5544 Rename to...
5545 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5546 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5547 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5548 regmaps.
5549 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5550 (sparc32_bsd_fpregset): Rename to...
5551 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5552 (sparc32_bsd_fpregmap): ... these.
5553 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5554 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5555 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5556 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5557 (struct sparc_gregmap, struct sparc_fpregmap)
5558 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5559 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5560 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5561 (sparc32_supply_regset, sparc32_collect_gregset)
5562 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5563 prototypes.
5564 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5565 (sparc64_linux_ptrace_gregmap): ... this.
5566 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5567 (_initialize_sparc64_linux_nat): Rename regmaps.
5568 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5569 (sparc64_linux_core_gregmap): ... this.
5570 (sparc64_linux_supply_core_gregset)
5571 (sparc64_linux_collect_core_gregset)
5572 (sparc64_linux_supply_core_fpregset)
5573 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5574 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5575 (sparc64_sol2_fpregset): Rename to...
5576 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5577 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5578 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5579 regmaps.
5580 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5581 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5582 (sparc64_bsd_fpregset): Rename to...
5583 (struct sparc_gregmap, sparc64_sol2_gregmap)
5584 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5585 (sparc64_bsd_fpregmap): ... these.
5586 (sparc64_supply_gregset, sparc64_collect_gregset)
5587 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5588 prototypes.
5589 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5590 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5591 (sparc64fbsd_gregmap): ... this.
5592 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5593 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5594 Rename regmaps.
5595 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5596 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5597 (sparc64nbsd_collect_fpregset): Likewise.
5598 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5599 (sparc64nbsd_gregmap): ... this.
5600 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5601 regmaps.
5602 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5603 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5604 (sparc64obsd_gregmap): ... this.
5605 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5606 regmaps.
5607 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5608 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5609 (sparc32nbsd_gregmap): ... this.
5610 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5611 regmaps.
5612
5613 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5614
5615 * score-tdep.c (score7_linux_gregset): New static regset
5616 structure.
5617 (score7_linux_regset_from_core_section): Remove dynamic regset
5618 allocation.
5619 (score_gdbarch_init): Drop allocation of tdep structure.
5620 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5621
5622 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5623
5624 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5625 regset structures.
5626 (am33_regset_from_core_section): Remove dynamic regset
5627 allocations.
5628
5629 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5630
5631 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5632 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5633 structures.
5634 (mips_linux_regset_from_core_section): Remove dynamic regset
5635 allocations.
5636 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5637 'gregset64', 'fpregset', and 'fpregset64'.
5638 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5639 deleted tdep fields.
5640
5641 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5642
5643 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5644 regset structures.
5645 (amd64_regset_from_core_section): Remove dynamic regset
5646 allocations.
5647 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5648 structure.
5649 (amd64obsd_regset_from_core_section): Remove dynamic regset
5650 allocation.
5651 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5652 Likewise.
5653 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5654 x86-common regset supply function.
5655 * i386-tdep.c (i386_collect_gregset): Make static.
5656 (i386_gregset): New global regset structure.
5657 (i386_fpregset, i386_xstateregset): New static regset structures.
5658 (i386_regset_from_core_section): Remove dynamic regset
5659 allocations.
5660 (i386_gdbarch_init): Remove initialization of tdep fields
5661 'gregset', 'fpregset', and 'xstateregset'.
5662 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5663 'fpregset', and 'xstateregset'.
5664 (i386_collect_gregset): Remove prototype.
5665 (i386_gregset): New declaration.
5666 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5667 structure.
5668 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5669 allocation.
5670
5671 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5672
5673 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5674 (arm_linux_vfpregset): New static regset structures.
5675 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5676 regset structures.
5677 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5678 and 'vfpregset' fields.
5679
5680 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5681
5682 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5683 (aarch64_linux_fpregset): New static regset structures.
5684 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5685 of regset structures.
5686 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5687 'fpregset' fields.
5688
5689 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5690
5691 * regset.h (struct regset): Remove gdbarch field.
5692 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5693 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5694 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5695 Likewise.
5696 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5697 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5698 (ppc32_linux_vsxregset): Likewise.
5699 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5700 via the regcache instead of the regset.
5701 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5702 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5703 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5704 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5705 Likewise.
5706
5707 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5708
5709 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5710 Constify structures.
5711 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5712 (alphanbsd_aout_gregset): Likewise.
5713 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5714 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5715 Likewise.
5716 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5717 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5718 Likewise.
5719 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5720 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5721 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5722 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5723 * m88k-tdep.c (m88k_gregset): Likewise.
5724 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5725 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5726 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5727 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5728 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5729 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5730 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5731 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5732 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5733 Likewise.
5734 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5735 * sh-tdep.h (sh_corefile_gregset): Likewise.
5736 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5737 * vax-tdep.c (vax_gregset): Likewise.
5738
5739 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5740
5741 Fix TLS access for -static -pthread.
5742 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5743 (try_thread_db_load_1): Initialize it.
5744 (thread_db_get_thread_local_address): Call it if LM is zero.
5745 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5746 * target.h (struct target_ops) (to_get_thread_local_address): Add
5747 load_module_addr comment.
5748
5749 2014-05-21 Pedro Alves <palves@redhat.com>
5750
5751 * dcache.c (dcache_read_memory_partial): If reading the cache line
5752 fails, fallback to reading just the memory the caller wanted.
5753
5754 2014-05-20 Doug Evans <dje@google.com>
5755
5756 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5757 instead of get_current_arch.
5758
5759 2014-05-20 Pedro Alves <palves@redhat.com>
5760
5761 * NEWS: Mention that compare-sections now works with all targets.
5762
5763 * remote.c (PACKET_qCRC): New enum value.
5764 (remote_verify_memory): Don't send qCRC if the target has no
5765 execution. Use packet_support/packet_ok. If the target doesn't
5766 support the qCRC packet, fallback to a deep memory copy.
5767 (compare_sections_command): Say "target image" instead of "remote
5768 executable".
5769 (_initialize_remote): Add PACKET_qCRC to the list of config
5770 packets that have no associated command. Extend comment.
5771 * target.c (simple_verify_memory, default_verify_memory): New
5772 function.
5773 * target.h (struct target_ops) <to_verify_memory>: Default to
5774 default_verify_memory.
5775 (simple_verify_memory): New declaration.
5776 * target-delegates.c: Regenerate.
5777
5778 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5779
5780 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5781
5782 2014-05-20 Hui Zhu <hui@codesourcery.com>
5783 Yao Qi <yao@codesourcery.com>
5784
5785 PR backtrace/16558
5786 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5787 and change address of sp and pc.
5788
5789 2014-05-19 Tom Tromey <tromey@redhat.com>
5790
5791 * gdbtypes.c (rank_function): Use XNEWVEC.
5792 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5793
5794 2014-05-19 Doug Evans <dje@google.com>
5795
5796 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5797 build_type_unit_groups and moved closer to only caller. Remove
5798 arguments. All references updated. Remove outdated .gdb_index
5799 comment.
5800 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5801 build_type_psymtabs_1.
5802
5803 2014-05-19 Doug Evans <dje@google.com>
5804
5805 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5806 n_type_unit_groups, all_type_unit_groups. All uses removed.
5807 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5808 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5809 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5810 (add_type_unit_group_to_table): Delete.
5811
5812 2014-05-19 Doug Evans <dje@google.com>
5813
5814 * eval.c (evaluate_subexp_standard): Add some comments.
5815
5816 2014-05-17 Doug Evans <xdje42@gmail.com>
5817
5818 * progspace.c (remove_program_space): Delete, unused.
5819 * progspace.h (remove_program_space): Ditto.
5820
5821 2014-05-17 Doug Evans <xdje42@gmail.com>
5822
5823 * inferior.c (prune_inferiors): Fix comment.
5824 (remove_inferior_command): Call prune_program_spaces.
5825
5826 2014-05-16 Doug Evans <dje@google.com>
5827
5828 New command line option -D.
5829 * NEWS: Mention it.
5830 * main.c (set_gdb_data_directory): New function.
5831 (captured_main): Recognize -D. Flag error for --data-directory "".
5832 Call set_gdb_data_directory.
5833 (print_gdb_help): Print --data-directory, -D.
5834 * main.h (set_gdb_data_directory): Declare.
5835 * top.c (staged_gdb_datadir): New static global.
5836 (set_gdb_datadir): Call set_gdb_data_directory
5837 (show_gdb_datadir): New function.
5838 (init_main): Update init of data-directory parameter.
5839
5840 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5841
5842 Import the "dirfd" gnulib module.
5843 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5844 * gnulib/aclocal.m4: Update.
5845 * gnulib/config.in: Update.
5846 * gnulib/configure: Update.
5847 * gnulib/import/Makefile.am: Update.
5848 * gnulib/import/Makefile.in: Update.
5849 * gnulib/import/dirfd.c: New.
5850 * gnulib/import/m4/dirfd.m4: New.
5851 * gnulib/import/m4/gnulib-cache.m4: Update.
5852 * gnulib/import/m4/gnulib-comp.m4: Update.
5853
5854 2014-05-16 Pierre Muller <muller@sourceware.org>
5855 Yao Qi <yao@codesourcery.com>
5856
5857 * valprint.c (print_wchar): Move the code on checking whether
5858 W is a printable wide char to the default branch of switch
5859 statement below. Call wchar_printable instead of gdb_iswprint.
5860
5861 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5862
5863 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5864 ldr.w and ldrd instructions.
5865
5866 2014-05-15 Doug Evans <dje@google.com>
5867
5868 * dwarf2read.c (read_structure_type): Delete outdated comments.
5869
5870 2014-05-14 Tom Tromey <tromey@redhat.com>
5871
5872 * macrocmd.c (print_macro_definition): Reindent.
5873
5874 2014-05-13 Doug Evans <xdje42@gmail.com>
5875
5876 * python/py-cmd.c (cmdpy_completer): Add comment.
5877 (completers): Make const.
5878
5879 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5880
5881 * infrun.c (resume): Remove should_resume (unused). Move up
5882 declaration of resume_ptid.
5883
5884 2014-05-13 Tom Tromey <tromey@redhat.com>
5885
5886 * language.h (unop_type_check): Remove.
5887 (binop_type_check): Don't declare.
5888
5889 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5890
5891 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5892 call to regcache_raw_collect.
5893
5894 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5895
5896 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5897 mi_console->quote as the quoting character.
5898
5899 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5900
5901 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5902
5903 2014-04-29 Tom Tromey <tromey@redhat.com>
5904
5905 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5906 "show debug varobj".
5907
5908 2014-05-07 Kyle McMartin <kyle@redhat.com>
5909
5910 Pushed by Joel Brobecker <brobecker@adacore.com>.
5911 * aarch64-tdep.c (aarch64_software_single_step): New function.
5912 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5913 with aarch64_software_single_step.
5914
5915 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5916
5917 GDB 7.7.1 released.
5918
5919 2014-05-05 Keith Seitz <keiths@redhat.com>
5920
5921 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5922 variable or history value is successfully parsed.
5923
5924 2014-05-05 Yao Qi <yao@codesourcery.com>
5925 Pedro Alves <palves@redhat.com>
5926
5927 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5928 address of blocks that intersects the requested range. Trim
5929 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5930 sections.
5931 * ctf.c (ctf_xfer_partial): Likewise.
5932
5933 2014-05-05 Yao Qi <yao@codesourcery.com>
5934
5935 * printcmd.c (display_command): Remove the check to
5936 target_has_execution.
5937
5938 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5939
5940 * ppcobsd-nat.c: Include "obsd-nat.h".
5941 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5942 add_target.
5943 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5944
5945 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5946
5947 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5948 and 16-bit signed and unsigned arguments. Update comment.
5949 (stap_parse_probe_arguments): Extend code to handle such
5950 arguments. Use warning instead of complaint to notify about
5951 unrecognized bitness.
5952
5953 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5954
5955 PR breakpoints/16889
5956 * stap-probe.c (stap_parse_probe_arguments): Simplify
5957 check for non-prefixed probes (i.e., probes whose
5958 arguments do not start with "N@"). Always set the
5959 argument type to a sane value.
5960
5961 2014-05-01 David Taylor <dtaylor@emc.com>
5962
5963 * remote.c (compare_sections_command): Add -r option to compare
5964 all loadable read-only sections.
5965
5966 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5967
5968 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5969 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5970 Update all callers.
5971 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5972 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5973 Remove unused CORE_ADDR argument. Update all callers.
5974
5975 2014-04-29 Pedro Alves <palves@redhat.com>
5976
5977 * remote.c (struct packet_config) <detect>: Extend comment.
5978 (add_packet_config_cmd): Don't set the config's detect or support
5979 fields here.
5980 (init_all_packet_configs): Also initialize the config's 'detect'
5981 field.
5982 (reset_all_packet_configs_support): New function.
5983 (remote_open_1): Call reset_all_packet_configs_support instead of
5984 init_all_packet_configs.
5985 (_initialize_remote): Initialize all packet configs. Assert that
5986 all packets have an associated command, except a few known
5987 outliers.
5988
5989 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5990
5991 * dwarf2read.c (read_subrange_type): Handle dynamic
5992 DW_AT_lower_bound attributes.
5993
5994 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5995
5996 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5997 dynamic bounds before computing its upper bound.
5998 (ada_discrete_type_low_bound): Same as above with the lower bound.
5999
6000 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6001
6002 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6003 range types. Adjust the array handling implementation to
6004 take advantage of this change.
6005 (resolve_dynamic_range): New function, mostly extracted from
6006 resolve_dynamic_bounds.
6007 (resolve_dynamic_array): New function, mostly extracted from
6008 resolve_dynamic_bounds.
6009 (resolve_dynamic_bounds): Delete.
6010 (resolve_dynamic_type): Reimplement. Add handling of
6011 TYPE_CODE_RANGE types.
6012
6013 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6014
6015 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6016 handling of parallel ___XA types.
6017
6018 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6019
6020 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6021 unnecessary second call to static_unwrap_type.
6022
6023 2014-04-27 Hui Zhu <hui@codesourcery.com>
6024
6025 * stack.c (print_frame_info): Call do_gdb_disassembly with
6026 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6027
6028 2014-04-26 Doug Evans <xdje42@gmail.com>
6029
6030 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6031
6032 2014-04-25 Pedro Alves <palves@redhat.com>
6033
6034 PR server/16255
6035 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6036 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6037 and newline from built string.
6038 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6039 (linux_ptrace_attach_fail_reason): ... this.
6040 * linux-nat.c (linux_nat_attach): Adjust to use
6041 linux_ptrace_attach_fail_reason.
6042
6043 2014-04-25 Pedro Alves <palves@redhat.com>
6044
6045 * remote.c (struct remote_state): Remove multi_process_aware,
6046 non_stop_aware, cond_tracepoints, cond_breakpoints,
6047 breakpoint_commands, fast_tracepoints, static_tracepoints,
6048 install_in_trace, disconnected_tracing,
6049 enable_disable_tracepoints, string_tracing, and
6050 augmented_libraries_svr4_read fields.
6051 (remote_multi_process_p): Move further below in the file.
6052 (struct packet_config): Add comments.
6053 (update_packet_config): Delete function.
6054 (show_packet_config_cmd): Use packet_config_support.
6055 (add_packet_config_cmd): Use NULL as set callback.
6056 (packet_ok): "set remote foo-packet"-style commands no longer
6057 change config->supported -- adjust.
6058 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6059 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6060 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6061 (PACKET_QNonStop, PACKET_multiprocess_feature)
6062 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6063 (PACKET_DisconnectedTracing_feature)
6064 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6065 (set_remote_protocol_packet_cmd): Delete function.
6066 (packet_config_support, packet_support): New functions.
6067 (set_remote_protocol_Z_packet_cmd): Don't call
6068 update_packet_config.
6069 (remote_query_attached, remote_pass_signals)
6070 (remote_program_signals, remote_threads_info)
6071 (remote_threads_extra_info, remote_start_remote): Use
6072 packet_support.
6073 (remote_start_remote): Use packet_config_support and
6074 packet_support.
6075 (init_all_packet_configs): Set all packets to unknown support,
6076 instead of calling update_packet_config.
6077 (remote_check_symbols): Use packet_support.
6078 (remote_supported_packet): Unconditionally set the packet config's
6079 support status.
6080 (remote_multi_process_feature, remote_non_stop_feature)
6081 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6082 (remote_breakpoint_commands_feature)
6083 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6084 (remote_install_in_trace_feature)
6085 (remote_disconnected_tracing_feature)
6086 (remote_enable_disable_tracepoint_feature)
6087 (remote_string_tracing_feature)
6088 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6089 (remote_protocol_features): Adjust to use remote_supported_packet
6090 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6091 "ConditionalTracepoints", "ConditionalBreakpoints",
6092 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6093 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6094 "EnableDisableTracepoints", and "tracenz".
6095 (remote_query_supported): Use packet_support.
6096 (remote_open_1): Adjust.
6097 (extended_remote_attach_1): Use packet_support. Switch on the
6098 result of packet_ok instead of checking whether the packet ended
6099 up disabled.
6100 (remote_vcont_resume): Use packet_support.
6101 (remote_resume, remote_stop_ns, fetch_register_using_p)
6102 (remote_prepare_to_store, store_register_using_P)
6103 (check_binary_download, remote_write_bytes): Use packet_support.
6104 (remote_vkill): Use packet_support. Switch on the result of
6105 packet_ok instead of checking whether the packet ended up
6106 disabled.
6107 (extended_remote_supports_disable_randomization): Use
6108 packet_support.
6109 (extended_remote_run): Switch on the result of packet_ok instead
6110 of checking whether the packet ended up disabled.
6111 (remote_insert_breakpoint, remote_remove_breakpoint)
6112 (remote_insert_watchpoint, remote_remove_watchpoint)
6113 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6114 packet_support.
6115 (remote_search_memory): Use packet_config_support.
6116 (remote_get_thread_local_address, remote_get_tib_address)
6117 (remote_hostio_send_command, remote_can_execute_reverse): Use
6118 packet_support.
6119 (remote_supports_cond_tracepoints)
6120 (remote_supports_cond_breakpoints)
6121 (remote_supports_fast_tracepoints)
6122 (remote_supports_static_tracepoints)
6123 (remote_supports_install_in_trace)
6124 (remote_supports_enable_disable_tracepoint)
6125 (remote_supports_string_tracing)
6126 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6127 the packet config says the feature is enabled or disabled.
6128 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6129 (remote_get_trace_status): Use packet_support.
6130 (remote_set_disconnected_tracing): Adjust to check whether the
6131 feature is enabled with packet_support.
6132 (remote_set_trace_buffer_size, remote_use_agent)
6133 (remote_can_use_agent, remote_supports_btrace): Use
6134 packet_support.
6135 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6136 Use packet_config_support.
6137 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6138 the packet config says the feature is enabled or disabled.
6139 (set_range_stepping): Use packet_support.
6140
6141 2014-04-25 Tom Tromey <tromey@redhat.com>
6142
6143 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6144 argument.
6145
6146 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6147
6148 * NEWS: Mention support for C99 variable length arrays.
6149
6150 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6151
6152 * ada-lang.c (standard_exc): Expand introductory comment.
6153
6154 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6155 Walfred Tedeschi <walfred.tedeschi@intel.com>
6156
6157 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6158 AVX512 registers.
6159 (amd64_linux_read_description): Add code to handle AVX512 xstate
6160 mask and return respective tdesc.
6161 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6162 and features/i386/x32-avx512-linux.c.
6163 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6164 (amd64_linux_core_read_description): Add code to handle AVX512
6165 xstate mask and return respective tdesc.
6166 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6167 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6168 calculation.
6169 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6170 (tdesc_amd64_avx512_linux): New prototype.
6171 (tdesc_x32_avx512_linux): Likewise.
6172 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6173 features/i386/x32-avx512.c.
6174 (amd64_ymm_avx512_names): New register names for pseudo
6175 registers YMM16-31.
6176 (amd64_ymmh_avx512_names): New register names for raw registers
6177 YMMH16-31.
6178 (amd64_k_names): New register names for K registers.
6179 (amd64_zmmh_names): New register names for ZMM raw registers.
6180 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6181 (amd64_xmm_avx512_names): New register names for XMM16-31
6182 registers.
6183 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6184 registers.
6185 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6186 if feature is present.
6187 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6188 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6189 (AMD64_NUM_REGS): Adjust to new number of registers.
6190 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6191 registers supplied via XSTATE by AVX512 registers.
6192 (i386_linux_read_description): Add case for AVX512.
6193 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6194 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6195 (i386_linux_core_read_description): Add case for AVX512.
6196 (i386_linux_init_abi): Install supported register note section
6197 for AVX512.
6198 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6199 AVX512.
6200 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6201 registers to be number of zmm7h + 1.
6202 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6203 * i386-tdep.c: Include features/i386/i386-avx512.c.
6204 (i386_zmm_names): Add ZMM pseudo register names array.
6205 (i386_zmmh_names): Add ZMM raw register names array.
6206 (i386_k_names): Add K raw register names array.
6207 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6208 registers. AVX512 has 16 more ZMM registers than there are YMM
6209 registers.
6210 (i386_zmmh_regnum_p): Add function to look up register number of
6211 ZMM raw registers.
6212 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6213 (i386_k_regnum_p): Likewise for K raw registers.
6214 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6215 registers added by AVX512.
6216 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6217 registers added by AVX512.
6218 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6219 added by AVX512.
6220 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6221 (i386_pseudo_register_name): Add ZMM pseudo registers.
6222 (i386_zmm_type): Construct and return vector registers type for ZMM
6223 registers.
6224 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6225 ZMM0-31 pseudo registers and K registers.
6226 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6227 and YMM16-31 registers from register cache.
6228 (i386_pseudo_register_write): Add code to write K, ZMM and
6229 YMM16-31 registers.
6230 (i386_register_reggroup_p): Add code to include/exclude AVX512
6231 registers in/from respective register groups.
6232 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6233 registers if feature is present in xcr0.
6234 (i386_gdbarch_init): Add code to initialize AVX512 feature
6235 variables in tdep structure, wire in pseudo registers and call
6236 initialize_tdesc_i386_avx512.
6237 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6238 variables.
6239 (i386_regnum): Add AVX512 registers.
6240 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6241 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6242 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6243 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6244 512 bits wide.
6245 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6246 (i386_ymm_avx512_regnum_p): Likewise.
6247 (i386_k_regnum_p): Likewise.
6248 (i386_zmm_regnum_p): Likewise.
6249 (i386_zmmh_regnum_p): Likewise.
6250 * i387-tdep.c : Update year in copyright notice.
6251 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6252 XSAVE buffer.
6253 (XSAVE_YMM_AVX512_ADDR): New macro.
6254 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6255 XSAVE buffer.
6256 (XSAVE_XMM_AVX512_ADDR): New macro.
6257 (xsave_avx512_k_offset): New table for K register offsets in
6258 XSAVE buffer.
6259 (XSAVE_AVX512_K_ADDR): New macro.
6260 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6261 in XSAVE buffer.
6262 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6263 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6264 buffer.
6265 (i387_collect_xsave): Add code to collect AVX512 registers from
6266 XSAVE buffer.
6267 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6268 of XMM16-31 registers.
6269 (I387_NUM_K_REGS): New define for number of K registers.
6270 (I387_K0_REGNUM): New define for K0 register number.
6271 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6272 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6273 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6274 registers.
6275 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6276 (I387_XMM16_REGNUM): New define for XMM16 register number.
6277 (I387_YMM0_REGNUM): New define for YMM0 register number.
6278 (I387_KEND_REGNUM): New define for last K register number.
6279 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6280 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6281 number.
6282 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6283 number.
6284 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6285 size.
6286 * features/Makefile: Add AVX512 related files.
6287 * features/i386/32bit-avx512.xml: New file.
6288 * features/i386/64bit-avx512.xml: Likewise.
6289 * features/i386/amd64-avx512-linux.c: Likewise.
6290 * features/i386/amd64-avx512-linux.xml: Likewise.
6291 * features/i386/amd64-avx512.c: Likewise.
6292 * features/i386/amd64-avx512.xml: Likewise.
6293 * features/i386/i386-avx512-linux.c: Likewise.
6294 * features/i386/i386-avx512-linux.xml: Likewise.
6295 * features/i386/i386-avx512.c: Likewise.
6296 * features/i386/i386-avx512.xml: Likewise.
6297 * features/i386/x32-avx512-linux.c: Likewise.
6298 * features/i386/x32-avx512-linux.xml: Likewise.
6299 * features/i386/x32-avx512.c: Likewise.
6300 * features/i386/x32-avx512.xml: Likewise.
6301 * regformats/i386/amd64-avx512-linux.dat: New file.
6302 * regformats/i386/amd64-avx512.dat: Likewise.
6303 * regformats/i386/i386-avx512-linux.dat: Likewise.
6304 * regformats/i386/i386-avx512.dat: Likewise.
6305 * regformats/i386/x32-avx512-linux.dat: Likewise.
6306 * regformats/i386/x32-avx512.dat: Likewise.
6307 * NEWS: Add note about new support for AVX512.
6308
6309
6310 2014-04-23 Pedro Alves <palves@redhat.com>
6311
6312 * breakpoint.c (insert_bp_location): Tolerate errors if the
6313 breakpoint is set in a user-loaded objfile.
6314 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6315 location is marked shlib_disabled. If the breakpoint is set in a
6316 user-loaded objfile is a GDB-side memory breakpoint, validate it
6317 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6318 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6319 flag.
6320 * mem-break.c (memory_validate_breakpoint): New function.
6321 * objfiles.c (userloaded_objfile_contains_address_p): New
6322 function.
6323 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6324 * target.h (memory_validate_breakpoint): New declaration.
6325
6326 2014-04-23 Pedro Alves <palves@redhat.com>
6327
6328 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6329 the breakpoint is set in a shared library, only suppress
6330 errors for software breakpoints, not hardware breakpoints.
6331
6332 2014-04-22 Pedro Alves <palves@redhat.com>
6333
6334 * infrun.c (schedlock_applies): New function, factored out from
6335 find_thread_needs_step_over.
6336 (find_thread_needs_step_over): Use it.
6337 (switch_back_to_stepped_thread): Always clear trap_expected if the
6338 step over is finished. Return early if scheduler locking applies.
6339 Look for the stepping thread and a potential step-over thread with
6340 a single loop.
6341 (currently_stepping_or_nexting_callback): Delete.
6342
6343 2014-04-22 Nick Clifton <nickc@redhat.com>
6344
6345 * NEWS: Mention that ARM sim now supports tracing.
6346
6347 2014-04-22 Yao Qi <yao@codesourcery.com>
6348
6349 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6350 to ...
6351 * tracefile.c (tracefile_fetch_registers): ... it. New
6352 function.
6353 * tracefile.h (tracefile_fetch_registers): Declare.
6354 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6355 tracefile_fetch_registers.
6356
6357 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6358
6359 PR gdb/14018
6360 * windows-nat.c (thread_rec): Don't display a warning when
6361 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6362 fails for any reason, set th->suspended to -1, so that we don't
6363 try to resume such a thread. Also, don't return NULL in these
6364 cases, to avoid completely ruin the session due to "PC register is
6365 not available" error.
6366 (do_windows_fetch_inferior_registers): Check errors in
6367 GetThreadContext call.
6368 (windows_continue): Accept an additional argument KILLED; if not
6369 zero, ignore errors in the SetThreadContext call, since the
6370 inferior was killed and is shutting down.
6371 (windows_resume, get_windows_debug_event)
6372 (windows_create_inferior, windows_mourn_inferior)
6373 (windows_kill_inferior): All callers of windows_continue changed
6374 to adjust to its new calling sequence.
6375
6376 2014-04-19 Yao Qi <yao@codesourcery.com>
6377
6378 * ctf.c (ctf_open): Call post_create_inferior.
6379
6380 2014-04-19 Yao Qi <yao@codesourcery.com>
6381
6382 * ctf.c (handle_id): New static variable.
6383 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6384 value. Get the declaration of event "register" and get length
6385 of field "contents".
6386
6387 2014-04-19 Yao Qi <yao@codesourcery.com>
6388
6389 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6390
6391 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6392
6393 * valops.c (oload_method_static): Remove unnecessary argument
6394 METHOD. Update all callers.
6395
6396 2014-04-18 Pedro alves <palves@redhat.com>
6397 Tom Tromey <tromey@redhat.com>
6398
6399 PR backtrace/15558
6400 * frame.c (get_prev_frame_1): Rename to ...
6401 (get_prev_frame_always): ... this, and make extern. Adjust.
6402 (skip_artificial_frames): Use get_prev_frame_always.
6403 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6404 (get_frame_unwind_stop_reason): Adjust to rename.
6405 * frame.h (get_prev_frame_always): Declare.
6406 * inline-frame.c: Include frame.h.
6407 (inline_frame_this_id): Use get_prev_frame_always.
6408
6409 2014-04-18 Tristan Gingold <gingold@adacore.com>
6410
6411 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6412 code by using bfd_mach_o_get_base_address.
6413
6414 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6415
6416 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6417 (spu_ax_pseudo_register_collect): New function.
6418 (spu_ax_pseudo_register_push_stack): Likewise.
6419 (spu_dwarf_reg_to_regnum): Likewise.
6420 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6421
6422 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6423
6424 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6425 Replace FRAME argument with FRAME_ID.
6426 * gdbarch.c, gdbarch.h: Regenerate.
6427 * findvar.c (default_value_from_register): Add GDBARCH argument;
6428 replace FRAME by FRAME_ID. No longer call get_frame_id.
6429 (value_from_register): Update call to gdbarch_value_from_register.
6430 * value.h (default_value_from_register): Update prototype.
6431 * s390-linux-tdep.c (s390_value_from_register): Update interface
6432 and call to default_value_from_register.
6433 * spu-tdep.c (spu_value_from_register): Likewise.
6434
6435 * findvar.c (address_from_register): Remove TYPE argument.
6436 Do not call value_from_register; use gdbarch_value_from_register
6437 with null_frame_id instead.
6438 * value.h (address_from_register): Update prototype.
6439 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6440 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6441 address_from_register interface change.
6442
6443 2014-04-17 Yao Qi <yao@codesourcery.com>
6444
6445 * gdbtypes.h: Update comments to link to types and macros'
6446 definitions.
6447
6448 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6449
6450 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6451
6452 2014-04-16 Keith Seitz <keiths@redhat.com>
6453
6454 PR gdb/15827
6455 * dwarf2read.c (skip_one_die): Check that all relative-offset
6456 sibling DIEs fall within range of the current reader's buffer.
6457 (read_partial_die): Likewise.
6458
6459 2014-04-16 Keith Seitz <keiths@redhat.com>
6460
6461 PR c++/16597
6462 * cp-namespace.c (lookup_symbol_file): If the type name of
6463 `this' is NULL, return immediately.
6464
6465 2014-04-14 Keith Seitz <keiths@redhat.com>
6466
6467 PR c++/16253
6468 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6469 from symbol_matches_domain in symtab.c. All local callers
6470 of symbol_matches_domain updated.
6471 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6472 search STRUCT_DOMAIN.
6473 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6474 independently. standard_lookup will do that automatically.
6475 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6476 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6477 (cp_lookup_symbol_in_namespace): Likewise.
6478 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6479 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6480 may return a STRUCT_DOMAIN match.
6481 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6482 * cp-support.c: Include language.h.
6483 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6484 VAR_DOMAIN.
6485 * psymtab.c (match_partial_symbol): Compare the requested
6486 domain with the symbol's domain directly.
6487 (lookup_partial_symbol): Likewise.
6488 * symtab.c (lookup_symbol_in_language): Explain when/why
6489 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6490 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6491 appropriate languages.
6492 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6493 and moved to ada-lang.c
6494 (lookup_block_symbol): Explain that this function only returns
6495 symbol matching the requested DOMAIN.
6496 Compare the requested domain with the symbol's domain directly.
6497 (iterate_over_symbols): Compare the requested domain with the
6498 symbol's domain directly.
6499 * symtab.h (symbol_matches_domain): Remove.
6500
6501 2014-04-14 Tom Tromey <tromey@redhat.com>
6502
6503 PR c++/15246:
6504 * c-exp.y (type_aggregate_p): New function.
6505 (qualified_name, classify_inner_name): Use it.
6506 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6507 and TYPE_TARGET_TYPE of an enum type.
6508 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6509 an enum type.
6510 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6511 handle TYPE_DECLARED_CLASS.
6512 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6513 types.
6514 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6515 * valops.c (enum_constant_from_type): New function.
6516 (value_aggregate_elt): Use it.
6517 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6518 TYPE_CODE_ENUM.
6519
6520 2014-04-14 Tom Tromey <tromey@redhat.com>
6521
6522 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6523 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6524 const.
6525 * value.h (value_aggregate_elt): Update.
6526
6527 2014-04-14 Tom Tromey <tromey@redhat.com>
6528
6529 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6530
6531 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6532
6533 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6534 (evaluate_subexp_standard): Pass noside argument.
6535 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6536 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6537 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6538 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6539 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6540
6541 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6542
6543 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6544 points to a constant blob.
6545
6546 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6547
6548 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6549 property and store it as the high bound and flag the range accordingly.
6550 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6551 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6552 * gdbtypes.h (enum range_flags): New enum.
6553 (struct range_bounds): Add flags member.
6554
6555 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6556
6557 * c-typeprint.c (c_type_print_varspec_suffix): Added
6558 check for not yet resolved high bound. If unresolved, print
6559 "variable length" string to the console instead of random
6560 length.
6561
6562 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6563
6564 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6565 value.
6566 (ada_template_to_fixed_record_type_1): Likewise.
6567 (ada_to_fixed_type_1): Likewise.
6568 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6569 (cp_print_value): Likewise.
6570 * d-valprint.c (dynamic_array_type): Likewise.
6571 * findvar.c (address_of_variable): Likewise.
6572 * jv-valprint.c (java_value_print): Likewise.
6573 * valops.c (value_ind): Likewise.
6574 * value.c (coerce_ref): Likewise.
6575
6576 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6577
6578 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6579 value and retrieve the dynamic type size.
6580
6581 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6582
6583 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6584 passed to sizeof is dynamic evaluate the argument to compute the length.
6585
6586 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6587 Joel Brobecker <brobecker@adacore.com>
6588
6589 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6590 (dwarf2_evaluate_property): New function.
6591 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6592 * dwarf2read.c (attr_to_dynamic_prop): New function.
6593 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6594 attribute.
6595 * gdbtypes.c: Include dwarf2loc.h.
6596 (is_dynamic_type): New function.
6597 (resolve_dynamic_type): New function.
6598 (resolve_dynamic_bounds): New function.
6599 (get_type_length): New function.
6600 (check_typedef): Use get_type_length to compute type length.
6601 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6602 (TYPE_LOW_BOUND_KIND): New macro.
6603 (is_dynamic_type): New function prototype.
6604 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6605 to resolve dynamic properties of the type. Update comment.
6606 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6607
6608 2014-04-14 Richard Henderson <rth@redhat.com>
6609
6610 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6611
6612 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6613 Doug Evans <xdje42@gmail.com>
6614
6615 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6616 dereference TYPE_CODE_REF values.
6617
6618 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6619
6620 Revert the following changes due to regressions:
6621
6622 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6623 (dwarf2_evaluate_property): New function.
6624 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6625 * dwarf2read.c (attr_to_dynamic_prop): New function.
6626 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6627 attribute.
6628 * gdbtypes.c: Include dwarf2loc.h.
6629 (is_dynamic_type): New function.
6630 (resolve_dynamic_type): New function.
6631 (resolve_dynamic_bounds): New function.
6632 (get_type_length): New function.
6633 (check_typedef): Use get_type_length to compute type length.
6634 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6635 (TYPE_LOW_BOUND_KIND): New macro.
6636 (is_dynamic_type): New function prototype.
6637 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6638 to resolve dynamic properties of the type. Update comment.
6639 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6640
6641 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6642 passed to sizeof is dynamic evaluate the argument to compute the length.
6643
6644 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6645 value and retrieve the dynamic type size.
6646
6647 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6648 (ada_template_to_fixed_record_type_1): Likewise.
6649 (ada_to_fixed_type_1): Likewise.
6650 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6651 (cp_print_value): Likewise.
6652 * d-valprint.c (dynamic_array_type): Likewise.
6653 * eval.c (evaluate_subexp_with_coercion): Likewise.
6654 * findvar.c (address_of_variable): Likewise.
6655 * jv-valprint.c (java_value_print): Likewise.
6656 * valops.c (value_ind): Likewise.
6657 * value.c (coerce_ref): Likewise.
6658
6659 * c-typeprint.c (c_type_print_varspec_suffix): Added
6660 check for not yet resolved high bound. If unresolved, print
6661 "variable length" string to the console instead of random
6662 length.
6663
6664 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6665 property and store it as the high bound and flag the range accordingly.
6666 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6667 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6668 * gdbtypes.h (enum range_flags): New enum.
6669 (struct range_bounds): Add flags member.
6670
6671 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6672 points to a constant blob.
6673
6674 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6675 (evaluate_subexp_standard): Pass noside argument.
6676 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6677 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6678 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6679 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6680 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6681
6682 2014-04-11 Keith Seitz <keiths@redhat.com>
6683
6684 PR c++/16675
6685 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6686 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6687 reference types.
6688
6689 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6690
6691 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6692 (evaluate_subexp_standard): Pass noside argument.
6693 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6694 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6695 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6696 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6697 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6698
6699 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6700
6701 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6702 points to a constant blob.
6703
6704 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6705
6706 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6707 property and store it as the high bound and flag the range accordingly.
6708 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6709 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6710 * gdbtypes.h (enum range_flags): New enum.
6711 (struct range_bounds): Add flags member.
6712
6713 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6714
6715 * c-typeprint.c (c_type_print_varspec_suffix): Added
6716 check for not yet resolved high bound. If unresolved, print
6717 "variable length" string to the console instead of random
6718 length.
6719
6720 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6721
6722 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6723 (ada_template_to_fixed_record_type_1): Likewise.
6724 (ada_to_fixed_type_1): Likewise.
6725 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6726 (cp_print_value): Likewise.
6727 * d-valprint.c (dynamic_array_type): Likewise.
6728 * eval.c (evaluate_subexp_with_coercion): Likewise.
6729 * findvar.c (address_of_variable): Likewise.
6730 * jv-valprint.c (java_value_print): Likewise.
6731 * valops.c (value_ind): Likewise.
6732 * value.c (coerce_ref): Likewise.
6733
6734 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6735
6736 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6737 value and retrieve the dynamic type size.
6738
6739 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6740
6741 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6742 passed to sizeof is dynamic evaluate the argument to compute the length.
6743
6744 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6745
6746 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6747 (dwarf2_evaluate_property): New function.
6748 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6749 * dwarf2read.c (attr_to_dynamic_prop): New function.
6750 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6751 attribute.
6752 * gdbtypes.c: Include dwarf2loc.h.
6753 (is_dynamic_type): New function.
6754 (resolve_dynamic_type): New function.
6755 (resolve_dynamic_bounds): New function.
6756 (get_type_length): New function.
6757 (check_typedef): Use get_type_length to compute type length.
6758 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6759 (TYPE_LOW_BOUND_KIND): New macro.
6760 (is_dynamic_type): New function prototype.
6761 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6762 to resolve dynamic properties of the type. Update comment.
6763 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6764
6765 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6766
6767 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6768 declaring high/low bounds and change uses accordingly. Call
6769 create_range_type instead of create_static_range_type.
6770 * gdbtypes.c (create_range_type): New function.
6771 (create_range_type): Convert bounds into struct bound_prop and pass
6772 them to create_range_type.
6773 * gdbtypes.h (struct bound_prop): New struct.
6774 (create_range_type): New function prototype.
6775 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6776 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6777 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6778 part of the bound.
6779 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6780
6781 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6782
6783 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6784 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6785 * ada-lang.c: All uses of create_range_type updated.
6786 * coffread.c: All uses of create_range_type updated.
6787 * dwarf2read.c: All uses of create_range_type updated.
6788 * f-exp.y: All uses of create_range_type updated.
6789 * m2-valprint.c: All uses of create_range_type updated.
6790 * mdebugread.c: All uses of create_range_type updated.
6791 * stabsread.c: All uses of create_range_type updated.
6792 * valops.c: All uses of create_range_type updated.
6793 * valprint.c: All uses of create_range_type updated.
6794
6795 2014-04-10 Pedro Alves <palves@redhat.com>
6796
6797 * breakpoint.c (single_step_breakpoints)
6798 (single_step_gdbarch): Move up in the file.
6799 (one_breakpoint_xfer_memory): New function, factored out from ...
6800 (breakpoint_xfer_memory): ... here. Also process single-step
6801 breakpoints.
6802
6803 2014-04-09 Tristan Gingold <gingold@adacore.com>
6804
6805 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6806 comments.
6807 (darwin_decode_exception_message): Free port only after use.
6808
6809 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6810
6811 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6812 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6813 when setting the size of call_length.
6814
6815 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6816
6817 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6818 dereference TYPE_CODE_REF values.
6819
6820 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6821
6822 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6823 end of warning message.
6824
6825 2014-04-03 Doug Evans <dje@google.com>
6826
6827 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6828 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6829
6830 2014-04-02 Alan Modra <amodra@gmail.com>
6831
6832 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6833 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6834 (struct symbol_file_add_from_memory_args): Add size field.
6835 (find_vdso_size): New function.
6836 (add_vsyscall_page): Attempt to find vdso size.
6837
6838 2014-04-01 Doug Evans <dje@google.com>
6839
6840 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6841
6842 2014-04-01 Tristan Gingold <gingold@adacore.com>
6843
6844 * darwin-nat.c (darwin_encode_reply): Add prototype.
6845 (darwin_decode_exception_message): Reply to unknown inferiors.
6846 (darwin_decode_message): Handle message by id. Ignore message
6847 to unknown inferior.
6848 (darwin_wait): Discard unknown messages, add debug trace.
6849
6850 2014-03-31 Doug Evans <dje@google.com>
6851
6852 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6853 comp_dir_string.
6854
6855 2014-03-31 Doug Evans <dje@google.com>
6856
6857 New option "set print symbol-loading".
6858 * NEWS: Mention it.
6859 * solib.c (solib_read_symbols): Only print symbol loading messages
6860 if requested.
6861 (solib_add): If symbol loading is in "brief" mode, notify user
6862 symbols are being loaded.
6863 (reload_shared_libraries_1): Ditto.
6864 * symfile.c (print_symbol_loading_off): New static global.
6865 (print_symbol_loading_brief): New static global.
6866 (print_symbol_loading_full): New static global.
6867 (print_symbol_loading_enums): New static global.
6868 (print_symbol_loading): New static global.
6869 (print_symbol_loading_p): New function.
6870 (symbol_file_add_with_addrs): Only print symbol loading messages
6871 if requested.
6872 (_initialize_symfile): Register "print symbol-loading" set/show
6873 command.
6874 * symfile.h (print_symbol_loading_p): Declare.
6875
6876 2014-03-30 Doug Evans <xdje42@gmail.com>
6877
6878 * infrun.c (set_last_target_status): New function.
6879 (handle_inferior_event): Call it.
6880
6881 2014-03-30 Doug Evans <xdje42@gmail.com>
6882
6883 * inferior.h (enum stop_kind): Improve comment.
6884
6885 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6886
6887 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6888 a reference, strip the reference layer before calling
6889 the lang_ops value_has_mutated callback.
6890
6891 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6892
6893 Remove some globals from our parser.
6894 * language.c (unk_lang_parser): Add "struct parser_state"
6895 argument.
6896 * language.h (struct language_defn) <la_parser>: Likewise.
6897 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6898 (initialize_expout): Add "struct parser_state" argument.
6899 Rewrite function to use the parser state.
6900 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6901 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6902 write_exp_elt_longcst, write_exp_elt_dblcst,
6903 write_exp_elt_decfloatcst, write_exp_elt_type,
6904 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6905 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6906 write_dollar_variable): Likewise.
6907 (parse_exp_in_context_1): Use parser state.
6908 (insert_type_address_space): Add "struct parser_state" argument.
6909 Use parser state.
6910 (increase_expout_size): New function.
6911 * parser-defs.h: Forward declare "struct language_defn" and
6912 "struct parser_state".
6913 (expout, expout_size, expout_ptr): Remove extern declarations.
6914 (parse_gdbarch, parse_language): Rewrite macro declarations to
6915 accept the parser state.
6916 (struct parser_state): New struct.
6917 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6918 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6919 write_exp_elt_decfloatcst, write_exp_elt_type,
6920 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6921 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6922 write_exp_msymbol, write_dollar_variable,
6923 mark_struct_expression, insert_type_address_space): Add "struct
6924 parser_state" argument.
6925 (increase_expout_size): New function.
6926 * utils.c (do_clear_parser_state): New function.
6927 (make_cleanup_clear_parser_state): Likewise.
6928 * utils.h (make_cleanup_clear_parser_state): New function
6929 prototype.
6930 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6931 Update calls to write_exp* in order to pass the parser state.
6932 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6933 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6934 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6935 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6936 * stap-probe.c (stap_parse_register_operand): Likewise.
6937 (stap_parse_single_operand): Likewise.
6938 (stap_parse_argument_1): Likewise.
6939 (stap_parse_argument): Use parser state.
6940 * stap-probe.h: Include "parser-defs.h".
6941 (struct stap_parse_info) <pstate>: New field.
6942 * c-exp.y (parse_type): Rewrite to use parser state.
6943 (yyparse): Redefine to c_parse_internal.
6944 (pstate): New global variable.
6945 (parse_number): Add "struct parser_state" argument.
6946 (write_destructor_name): Likewise.
6947 (type_exp): Update calls to write_exp* and similars in order to
6948 use parser state.
6949 (exp1, exp, variable, qualified_name, space_identifier,
6950 typename, typebase): Likewise.
6951 (write_destructor_name, parse_number, lex_one_token,
6952 classify_name, classify_inner_name, c_parse): Add "struct
6953 parser_state" argument. Update function to use parser state.
6954 * c-lang.h: Forward declare "struct parser_state".
6955 (c_parse): Add "struct parser_state" argument.
6956 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6957 (yyparse): Redefine macro to ada_parse_internal.
6958 (pstate): New variable.
6959 (write_int, write_object_renaming, write_var_or_type,
6960 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6961 type_int, type_long, type_long_long, type_float, type_double,
6962 type_long_double, type_char, type_boolean, type_system_address):
6963 Add "struct parser_state" argument.
6964 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6965 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6966 var_or_type, aggregate, aggregate_component_list,
6967 positional_list, others, component_group,
6968 component_associations): Update calls to write_exp* and similar
6969 functions in order to use parser state.
6970 (ada_parse, write_var_from_sym, write_int,
6971 write_exp_op_with_string, write_object_renaming,
6972 find_primitive_type, write_selectors, write_ambiguous_var,
6973 write_var_or_type, write_name_assoc, type_int, type_long,
6974 type_long_long, type_float, type_double, type_long_double,
6975 type_char, type_boolean, type_system_address): Add "struct
6976 parser_state" argument. Adjust function to use parser state.
6977 * ada-lang.c (parse): Likewise.
6978 * ada-lang.h: Forward declare "struct parser_state".
6979 (ada_parse): Add "struct parser_state" argument.
6980 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6981 calls to both functions.
6982 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6983 parser state.
6984 (yyparse): Redefine macro to f_parse_internal.
6985 (pstate): New variable.
6986 (parse_number): Add "struct parser_state" argument.
6987 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6988 and similars in order to use parser state.
6989 (parse_number): Adjust code to use parser state.
6990 (yylex): Likewise.
6991 (f_parse): New function.
6992 * f-lang.h: Forward declare "struct parser_state".
6993 (f_parse): Add "struct parser_state" argument.
6994 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6995 parser state.
6996 (yyparse): Redefine macro for java_parse_internal.
6997 (pstate): New variable.
6998 (push_expression_name, push_expression_name, insert_exp): Add
6999 "struct parser_state" argument.
7000 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7001 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7002 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7003 PostIncrementExpression, PostDecrementExpression,
7004 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7005 UnaryExpressionNotPlusMinus, CastExpression,
7006 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7007 RelationalExpression, EqualityExpression, AndExpression,
7008 ExclusiveOrExpression, InclusiveOrExpression,
7009 ConditionalAndExpression, ConditionalOrExpression,
7010 ConditionalExpression, Assignment, LeftHandSide): Update
7011 calls to write_exp* and similars in order to use parser state.
7012 (parse_number): Ajust code to use parser state.
7013 (yylex): Likewise.
7014 (java_parse): New function.
7015 (push_variable): Add "struct parser_state" argument. Adjust
7016 code to user parser state.
7017 (push_fieldnames, push_qualified_expression_name,
7018 push_expression_name, insert_exp): Likewise.
7019 * jv-lang.h: Forward declare "struct parser_state".
7020 (java_parse): Add "struct parser_state" argument.
7021 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7022 parser state.
7023 (yyparse): Redefine macro to m2_parse_internal.
7024 (pstate): New variable.
7025 (type_exp, exp, fblock, variable, type): Update calls to
7026 write_exp* and similars to use parser state.
7027 (yylex): Likewise.
7028 (m2_parse): New function.
7029 * m2-lang.h: Forward declare "struct parser_state".
7030 (m2_parse): Add "struct parser_state" argument.
7031 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7032 * objc-lang.h: Forward declare "struct parser_state".
7033 (end_msglist): Add "struct parser_state" argument.
7034 * p-exp.y (parse_type): Rewrite macro to use parser state.
7035 (yyparse): Redefine macro to pascal_parse_internal.
7036 (pstate): New variable.
7037 (parse_number): Add "struct parser_state" argument.
7038 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7039 write_exp* and similars in order to use parser state.
7040 (parse_number, yylex): Adjust code to use parser state.
7041 (pascal_parse): New function.
7042 * p-lang.h: Forward declare "struct parser_state".
7043 (pascal_parse): Add "struct parser_state" argument.
7044 * go-exp.y (parse_type): Rewrite macro to use parser state.
7045 (yyparse): Redefine macro to go_parse_internal.
7046 (pstate): New variable.
7047 (parse_number): Add "struct parser_state" argument.
7048 (type_exp, exp1, exp, variable, type): Update calls to
7049 write_exp* and similars in order to use parser state.
7050 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7051 to use parser state.
7052 (go_parse): Likewise.
7053 * go-lang.h: Forward declare "struct parser_state".
7054 (go_parse): Add "struct parser_state" argument.
7055
7056 2014-03-27 Doug Evans <dje@google.com>
7057
7058 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7059
7060 2014-03-27 Doug Evans <dje@google.com>
7061
7062 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7063 Remove argument abbrev_section. All callers updated.
7064
7065 2014-03-27 Doug Evans <dje@google.com>
7066
7067 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7068 addr_base, ranges_base.
7069
7070 2014-03-26 Keith Seitz <keiths@redhat.com>
7071
7072 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7073 types, not VAR_DOMAIN.
7074
7075 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7076
7077 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7078 "ra" registers.
7079 * features/nios2-linux.c: Regenerated.
7080 * features/nios2.c: Regenerated.
7081
7082 2014-03-25 Pedro Alves <palves@redhat.com>
7083
7084 * cli/cli-script.c (script_from_file): Force the interpreter to
7085 sync mode.
7086
7087 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7088
7089 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7090 small stack allocation.
7091
7092 2014-03-24 Tristan Gingold <gingold@adacore.com>
7093
7094 * darwin-nat.c (exc_server): Remove unused prototype.
7095 (darwin_dump_message): Correctly display data on x86_64.
7096 (darwin_encode_reply): Fix style.
7097 Add comments and fix indentation.
7098
7099 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7100
7101 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7102
7103 2014-03-22 Doug Evans <xdje42@gmail.com>
7104
7105 * infcmd.c: Whitespace fixes.
7106 (interrupt_command): Merge two function comments into one.
7107
7108 2014-03-22 Doug Evans <xdje42@gmail.com>
7109
7110 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7111 All uses updated.
7112
7113 2014-03-22 Yao Qi <yao@codesourcery.com>
7114
7115 * remote.c (target_read_live_memory): Remove.
7116 (memory_xfer_live_readonly_partial): Rename it to
7117 remote_xfer_live_readonly_partial. Remove argument 'object'.
7118 All callers updated. Call remote_read_bytes_1
7119 instead of target_read_live_memory.
7120 * tracepoint.c (set_traceframe_number): Remove.
7121 (make_cleanup_restore_traceframe_number): Likewise .
7122 * tracepoint.h (set_traceframe_number): Remove declaration.
7123 (make_cleanup_restore_traceframe_number): Likewise.
7124
7125 2014-03-22 Yao Qi <yao@codesourcery.com>
7126
7127 * remote.c (remote_read_bytes): Move code on reading from the
7128 remote stub to ...
7129 (remote_read_bytes_1): ... here. New function.
7130
7131 2014-03-22 Yao Qi <yao@codesourcery.com>
7132
7133 * ctf.c (ctf_xfer_partial): Check the return value of
7134 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7135 return TARGET_XFER_UNAVAILABLE.
7136 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7137 * target.c (target_read_live_memory): Move it to remote.c.
7138 (memory_xfer_live_readonly_partial): Likewise.
7139 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7140 * remote.c (target_read_live_memory): Moved from target.c.
7141 (memory_xfer_live_readonly_partial): Likewise.
7142 (remote_read_bytes): Factored out from
7143 memory_xfer_partial_1.
7144
7145 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7146
7147 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7148 NULL pointer.
7149
7150 2014-03-21 Pedro Alves <palves@redhat.com>
7151
7152 * infrun.c (normal_stop): Extend comment.
7153
7154 2014-03-21 Hui Zhu <hui@codesourcery.com>
7155 Pedro Alves <palves@redhat.com>
7156
7157 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7158 static buffer.
7159 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7160 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7161 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7162
7163 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7164
7165 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7166 `z' formatted output modifier.
7167
7168 2014-03-20 Tom Tromey <tromey@redhat.com>
7169 Sergio Durigan Junior <sergiodj@redhat.com>
7170
7171 * probe.c (parse_probes): Turn assert into an ordinary error.
7172 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7173 exceptions when parsing probes. Rearrange the code for clarity.
7174
7175 2014-03-20 Tom Tromey <tromey@redhat.com>
7176
7177 PR gdb/14135
7178 * top.c (execute_command): Only dispatch events if the command
7179 started the target.
7180
7181 2014-03-20 Tom Tromey <tromey@redhat.com>
7182
7183 PR cli/15718
7184 * infcall.c: Include event-top.h.
7185 (run_inferior_call): Call async_disable_stdin if needed.
7186
7187 2014-03-20 Pedro Alves <palves@redhat.com>
7188
7189 * infrun.c (prepare_to_proceed): Delete.
7190 (thread_still_needs_step_over): New function.
7191 (find_thread_needs_step_over): New function.
7192 (proceed): If the current thread needs a step-over, set its
7193 steping_over_breakpoint flag. Adjust to use
7194 find_thread_needs_step_over instead of prepare_to_proceed.
7195 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7196 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7197 breakpoint.
7198 (switch_back_to_stepped_thread): Step over breakpoints of all
7199 threads not the stepping thread, before switching back to the
7200 stepping thread.
7201
7202 2014-03-20 Pedro Alves <palves@redhat.com>
7203
7204 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7205 extern.
7206 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7207 * infrun.c (saved_singlestep_ptid)
7208 (stepping_past_singlestep_breakpoint): Delete.
7209 (resume): Remove stepping_past_singlestep_breakpoint handling.
7210 (proceed): Store the prev_pc of the stepping thread too.
7211 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7212 singlestep_pc.
7213 (enum infwait_states): Delete infwait_thread_hop_state.
7214 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7215 field.
7216 (handle_inferior_event): Adjust.
7217 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7218 handling and the thread-hop code. Before removing single-step
7219 breakpoints, check whether the thread hit a single-step breakpoint
7220 of another thread. If it did, the trap is not a random signal.
7221 (switch_back_to_stepped_thread): If the event thread hit a
7222 single-step breakpoint, unblock it before switching to the
7223 stepping thread. Handle the case of the stepped thread having
7224 advanced already.
7225 (keep_going): Handle the case of the current thread moving past a
7226 single-step breakpoint.
7227
7228 2014-03-20 Pedro Alves <palves@redhat.com>
7229
7230 PR breakpoints/7143
7231 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7232 are being stepped over.
7233 (breakpoint_address_match): Make extern.
7234 * breakpoint.h (breakpoint_address_match): New declaration.
7235 * inferior.h (stepping_past_instruction_at): New declaration.
7236 * infrun.c (struct step_over_info): New type.
7237 (step_over_info): New global.
7238 (set_step_over_info, clear_step_over_info)
7239 (stepping_past_instruction_at): New functions.
7240 (handle_inferior_event): Clear the step-over info when
7241 trap_expected is cleared.
7242 (resume): Remove now stale comment.
7243 (clear_proceed_status): Clear step-over info.
7244 (proceed): Adjust step-over handling to set or clear the step-over
7245 info instead of removing all breakpoints.
7246 (handle_signal_stop): When setting up a thread-hop, don't remove
7247 breakpoints here.
7248 (stop_stepping): Clear step-over info.
7249 (keep_going): Adjust step-over handling to set or clear step-over
7250 info and then always inserting breakpoints, instead of removing
7251 all breakpoints when stepping over one.
7252
7253 2014-03-20 Pedro Alves <palves@redhat.com>
7254
7255 * infrun.c (previous_inferior_ptid): Adjust comment.
7256 (deferred_step_ptid): Delete.
7257 (infrun_thread_ptid_changed, prepare_to_proceed)
7258 (init_wait_for_inferior): Adjust.
7259 (handle_signal_stop): Delete deferred_step_ptid handling.
7260
7261 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7262
7263 PR gdb/15358
7264 * defs.h (sync_quit_force_run): New declaration.
7265 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7266 * event-top.c (async_sigterm_handler): New declaration.
7267 (async_sigterm_token): New variable.
7268 (async_init_signals): Create also async_sigterm_token.
7269 (async_sigterm_handler): New function.
7270 (sync_quit_force_run): New variable.
7271 (handle_sigterm): Replace quit_force call by other calls.
7272 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7273
7274 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7275
7276 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7277 offset into SPE pseudo registers.
7278
7279 2014-03-18 Pedro Alves <palves@redhat.com>
7280
7281 PR gdb/13860
7282 * inferior.h (print_stop_event): Declare.
7283 * infrun.c (print_stop_event): New, factored out from ...
7284 (normal_stop): ... this.
7285 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7286 of bpstat_print/print_stack_frame.
7287
7288 2014-03-17 Tom Tromey <tromey@redhat.com>
7289
7290 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7291
7292 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7293
7294 * ada-lang.c (decode_constrained_packed_array): Perform a
7295 minimal coercion for reference with coerce_ref instead of
7296 ada_coerce_ref.
7297
7298 2014-03-17 Tristan Gingold <gingold@adacore.com>
7299
7300 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7301 (darwin_solib_create_inferior_hook): Emit a warning if version
7302 is unhandled.
7303
7304 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7305
7306 * python/py-value.c (get_field_flag): Cast flag_name argument to
7307 PyObject_GetAttrString to support Python 2.4.
7308
7309 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7310
7311 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7312 (Global Maintainers): Remove Jan Kratochvil.
7313
7314 2014-03-14 Pedro Alves <palves@redhat.com>
7315
7316 * inferior.h (terminal_ours_for_output): Rename to ...
7317 (child_terminal_ours_for_output): ... this.
7318 (terminal_save_ours): Rename to ...
7319 (child_terminal_save_ours): ... this.
7320 (terminal_ours): Rename to ...
7321 (child_terminal_ours): ... this.
7322 (terminal_inferior): Rename to ...
7323 (child_terminal_inferior): ... this.
7324 (terminal_init_inferior): Rename to ...
7325 (child_terminal_init_inferior): ... this.
7326 (terminal_init_inferior_with_pgrp): Rename to ...
7327 (child_terminal_init_inferior_with_pgrp): ... this.
7328 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7329 (child_terminal_init_with_pgrp): ... this.
7330 (terminal_save_ours): Rename to ...
7331 (child_terminal_save_ours): ... this.
7332 (terminal_init_inferior): Rename to ...
7333 (child_terminal_init): ... this. Adjust.
7334 (terminal_inferior): Rename to ...
7335 (child_terminal_inferior): ... this.
7336 (terminal_ours_for_output): Rename to ...
7337 (child_terminal_ours_for_output): ... this. Adjust.
7338 (terminal_ours): Rename to ...
7339 (child_terminal_ours): ... this.
7340 (terminal_ours_1): Rename to ...
7341 (child_terminal_ours_1): ... this. Adjust.
7342 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7343 * windows-nat.c (do_initial_windows_stuff): Adjust.
7344 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7345 (gnu_terminal_init): ... this. Adjust.
7346 (gnu_target): Adjust.
7347 * inf-child.c (inf_child_target): Adjust.
7348
7349 2014-03-13 Doug Evans <xdje42@gmail.com>
7350
7351 PR guile/16612
7352 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7353 new eq?-hashtab.
7354
7355 2014-03-13 Doug Evans <xdje42@gmail.com>
7356
7357 * value.c (record_latest_value): Call release_value_or_incref
7358 instead of release_value.
7359
7360 2014-03-13 Pedro Alves <palves@redhat.com>
7361
7362 * procfs.c (procfs_target): Don't override to_shortname,
7363 to_longname or to_doc.
7364
7365 2014-03-13 Pedro Alves <palves@redhat.com>
7366
7367 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7368 Unix in user visible strings.
7369
7370 2014-03-12 Stan Shebs <stan@codesourcery.com>
7371
7372 * gdbtypes.h: Annotate comments for Doxygen, add a page
7373 block comment with some general info.
7374
7375 2014-03-12 Pedro Alves <palves@redhat.com>
7376
7377 * infcmd.c (prepare_execution_command): New function, factored out
7378 from several execution commands.
7379 (run_command_1, continue_command, step_1, jump_command)
7380 (signal_command, until_command, advance_command, finish_command)
7381 (attach_command): Use prepare_execution_command.
7382
7383 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7384
7385 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7386 (MAX_BPTS): Define.
7387 (MAX_WPTS): Define.
7388 (struct arm_linux_thread_points): Removed.
7389 (struct arm_linux_process_info): New.
7390 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7391 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7392 (arm_linux_find_breakpoints_by_tid): Removed.
7393 (struct arch_lwp_info): New.
7394 (arm_linux_find_process_pid): New functions.
7395 (arm_linux_add_process): New functions.
7396 (arm_linux_process_info_get): New functions.
7397 (arm_linux_forget_process): New function.
7398 (arm_linux_get_debug_reg_state): New function.
7399 (struct update_registers_data): New.
7400 (update_registers_callback): New function.
7401 (arm_linux_insert_hw_breakpoint1): Updated.
7402 (arm_linux_remove_hw_breakpoint1): Updated.
7403 (arm_linux_insert_hw_breakpoint): Updated.
7404 (arm_linux_remove_hw_breakpoint): Updated.
7405 (arm_linux_insert_watchpoint): Updated.
7406 (arm_linux_remove_watchpoint): Updated.
7407 (arm_linux_new_thread): Updated.
7408 (arm_linux_prepare_to_resume): New function.
7409 (arm_linux_new_fork): New function.
7410 (_initialize_arm_linux_nat): Updated.
7411
7412 2014-03-12 Pedro Alves <palves@redhat.com>
7413
7414 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7415
7416 2014-03-12 Tom Tromey <tromey@redhat.com>
7417
7418 * inf-child.c (return_zero): New function.
7419 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7420 * aix-thread.c (aix_thread_inferior_created): New function.
7421 (aix_thread_attach): Remove.
7422 (init_aix_thread_ops): Don't set to_attach.
7423 (_initialize_aix_thread): Register inferior_created observer.
7424 * corelow.c (init_core_ops): Don't set to_attach or
7425 to_create_inferior.
7426 * exec.c (init_exec_ops): Don't set to_attach or
7427 to_create_inferior.
7428 * infcmd.c (run_command_1): Use find_run_target. Make direct
7429 target calls.
7430 (attach_command): Use find_attach_target. Make direct target
7431 calls.
7432 * record-btrace.c (init_record_btrace_ops): Don't set
7433 to_create_inferior.
7434 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7435 Remove.
7436 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7437 set to_create_inferior.
7438 * target.c (complete_target_initialization): Add assertion.
7439 (target_create_inferior): Remove.
7440 (find_default_attach, find_default_create_inferior): Remove.
7441 (find_attach_target, find_run_target): New functions.
7442 (find_default_is_async_p, find_default_can_async_p)
7443 (target_supports_non_stop, target_attach): Remove.
7444 (init_dummy_target): Don't set to_create_inferior or
7445 to_supports_non_stop.
7446 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7447 TARGET_DEFAULT_FUNC.
7448 <to_create_inferior>: Add comment.
7449 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7450 TARGET_DEFAULT_RETURN.
7451 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7452 (find_attach_target, find_run_target): Declare.
7453 (target_create_inferior): Remove.
7454 (target_has_execution_1): Update comment.
7455 (target_supports_non_stop): Remove.
7456 * target-delegates.c: Rebuild.
7457
7458 2014-03-12 Pedro Alves <palves@redhat.com>
7459
7460 * inf-child.h: Update comment to not mention Unix.
7461
7462 2014-03-12 Pedro Alves <palves@redhat.com>
7463
7464 * inf-child.c: Update top comment to not mention Unix. Add
7465 generic comment describing how this target is meant to be used.
7466 (inf_child_post_attach, inf_child_post_startup_inferior)
7467 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7468 Unix in comment.
7469
7470 2014-03-12 Pedro Alves <palves@redhat.com>
7471
7472 * nto-procfs.c: Include inf-child.h.
7473 (procfs_ops): Delete global.
7474 (procfs_can_run): Delete method.
7475 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7476 target pointer instead of referencing procfs_ops.
7477 (procfs_prepare_to_store): Delete.
7478 (init_procfs_ops): Delete function.
7479 (procfs_target): New function, based on init_procfs_ops, but
7480 inherit inf_child_target.
7481 (_initialize_procfs): Use procfs_target.
7482
7483 2014-03-12 Pedro Alves <palves@redhat.com>
7484
7485 * windows-nat.c: Include inf-child.h.
7486 (windows_ops): Delete global.
7487 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7488 methods.
7489 (init_windows_ops): Delete function.
7490 (windows_target): New function, based on init_windows_ops, but
7491 inherit inf_child_target.
7492 (_initialize_windows_nat): Use windows_target. Install x86
7493 specific target methods here.
7494
7495 2014-03-10 Doug Evans <xdje42@gmail.com>
7496
7497 * guile/guile.c (call_initialize_gdb_module): New function.
7498 (initialize_guile): Replace call to scm_init_guile with call to
7499 scm_with_guile.
7500
7501 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7502
7503 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7504 in call to TYPE_CODE macro.
7505
7506 2014-03-10 Jerome Guitton <guitton@adacore.com>
7507
7508 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7509 Resolve tagged types to full view.
7510
7511 2014-03-10 Hui Zhu <hui@codesourcery.com>
7512
7513 * target.h (target_insert_breakpoint): Remove "hardware" from its
7514 comments.
7515
7516 2014-03-07 Doug Evans <dje@google.com>
7517
7518 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7519
7520 2014-03-07 Doug Evans <dje@google.com>
7521
7522 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7523 Remove unused local comp_dir_attr. Assert exactly one of
7524 stub_comp_unit_die, stub_comp_dir is non-NULL.
7525
7526 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7527
7528 * target.h (complete_target_initialization, add_target):
7529 Add comment.
7530
7531 2014-03-07 Pedro Alves <palves@redhat.com>
7532
7533 * go32-nat.c: Include inf-child.h.
7534 (go32_ops): Delete global.
7535 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7536 Delete methods.
7537 (go32_create_inferior): Push the passed in target pointer instead
7538 of referencing go32_ops.
7539 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7540 (go32_target): New function, based on init_go32_ops, but inherit
7541 inf_child_target.
7542 (_initialize_go32_nat): Use go32_target. Move parts of
7543 init_go32_ops here.
7544
7545 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7546
7547 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7548 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7549 SYMBOL_VALUE_ADDRESS.
7550 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7551
7552 2014-03-06 Yao Qi <yao@codesourcery.com>
7553
7554 * breakpoint.c (get_tracepoint_by_number): Remove argument
7555 optional_p. All callers updated. Adjust comments. Update
7556 output message.
7557 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7558
7559 2014-03-06 Yao Qi <yao@codesourcery.com>
7560
7561 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7562 early if get_number returns zero. Use 'p' instead of 'args'.
7563
7564 2014-03-06 Yao Qi <yao@codesourcery.com>
7565
7566 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7567 message.
7568
7569 2014-03-06 Yao Qi <yao@codesourcery.com>
7570
7571 PR breakpoints/16508
7572 * tracepoint.c (check_trace_running): New function.
7573 (trace_find_command): Move code to check_trace_running and
7574 call check_trace_running.
7575 (trace_find_pc_command): Likewise.
7576 (trace_find_tracepoint_command): Likewise.
7577 (trace_find_line_command): Likewise.
7578 (trace_find_range_command): Likewise.
7579 * tracepoint.h (check_trace_running): Likewise.
7580 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7581
7582 2014-03-06 Yao Qi <yao@codesourcery.com>
7583
7584 * target.h (struct target_ops) <to_traceframe_info>: Use
7585 TARGET_DEFAULT_NORETURN (tcomplain ()).
7586 * target-delegates.c: Regenerated.
7587
7588 2014-03-05 Pedro Alves <palves@redhat.com>
7589
7590 PR gdb/16575
7591 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7592 void. Update comment.
7593 (dcache_xfer_memory): Delete.
7594 (dcache_read_memory_partial): New, based on the read bits of
7595 dcache_xfer_memory.
7596 (dcache_update): Add status parameter. Use ULONGEST for len, and
7597 adjust. Discard cache lines if the reason for the update was
7598 error.
7599 * dcache.h (dcache_xfer_memory): Delete declaration.
7600 (dcache_read_memory_partial): New declaration.
7601 (dcache_update): Update prototype.
7602 * target.c (raw_memory_xfer_partial): Update the dcache here.
7603 (memory_xfer_partial_1): Don't handle dcache writes here.
7604
7605 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7606
7607 * remote-sim.c (gdbsim_load): Add const to prog.
7608
7609 2014-03-03 Tom Tromey <tromey@redhat.com>
7610
7611 * elfread.c (probe_key): Change to bfd_data.
7612 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7613 now per-BFD, not per-objfile.
7614 * stap-probe.c (stap_probe_destroy): Update comment.
7615 (handle_stap_probe): Allocate on the per-BFD obstack.
7616
7617 2014-03-03 Tom Tromey <tromey@redhat.com>
7618
7619 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7620 * breakpoint.c (create_longjmp_master_breakpoint): Use
7621 get_probe_address.
7622 (add_location_to_breakpoint, bkpt_probe_insert_location)
7623 (bkpt_probe_remove_location): Update.
7624 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7625 * elfread.c (elf_symfile_relocate_probe): Remove.
7626 (elf_probe_fns): Update.
7627 (insert_exception_resume_breakpoint): Change type of "probe"
7628 parameter to bound_probe.
7629 (check_exception_resume): Update.
7630 * objfiles.c (objfile_relocate1): Don't relocate probes.
7631 * probe.c (bound_probe_s): New typedef.
7632 (parse_probes): Use get_probe_address. Set sal's objfile.
7633 (find_probe_by_pc): Return a bound_probe.
7634 (collect_probes): Return a VEC(bound_probe_s).
7635 (compare_probes): Update.
7636 (gen_ui_out_table_header_info): Change type of "probes"
7637 parameter. Update.
7638 (info_probes_for_ops): Update.
7639 (get_probe_address): New function.
7640 (probe_safe_evaluate_at_pc): Update.
7641 * probe.h (struct probe_ops) <get_probe_address>: New field.
7642 <set_semaphore, clear_semaphore>: Add objfile parameter.
7643 (struct probe) <objfile>: Remove field.
7644 <arch>: New field.
7645 <address>: Update comment.
7646 (struct bound_probe): New.
7647 (find_probe_by_pc): Return a bound_probe.
7648 (get_probe_address): Declare.
7649 * solib-svr4.c (struct probe_and_action) <address>: New field.
7650 (hash_probe_and_action, equal_probe_and_action): Update.
7651 (register_solib_event_probe): Add address parameter.
7652 (solib_event_probe_at): Update.
7653 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7654 get_probe_address.
7655 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7656 (stap_get_probe_address): New function.
7657 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7658 (compile_probe_arg): Update.
7659 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7660 address.
7661 (handle_stap_probe): Don't relocate the probe.
7662 (stap_relocate): Remove.
7663 (stap_gen_info_probes_table_values): Update.
7664 (stap_probe_ops): Remove stap_relocate.
7665 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7666 (debug_sym_probe_fns): Update.
7667 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7668 * symtab.c (init_sal): Use memset.
7669 * symtab.h (struct symtab_and_line) <objfile>: New field.
7670 * tracepoint.c (start_tracing, stop_tracing): Update.
7671
7672 2014-03-03 Tom Tromey <tromey@redhat.com>
7673
7674 * probe.h (parse_probes, find_probe_by_pc)
7675 (find_probes_in_objfile): Fix comments.
7676
7677 2014-03-02 Doug Evans <xdje42@gmail.com>
7678
7679 * infrun.c (handle_signal_stop): Replace test for
7680 TARGET_WAITKIND_STOPPED with an assert.
7681
7682 2014-03-02 Doug Evans <xdje42@gmail.com>
7683
7684 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7685
7686 2014-03-02 Doug Evans <xdje42@gmail.com>
7687
7688 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7689
7690 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7691
7692 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7693
7694 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7695
7696 * i386obsd-nat.c: Include "obsd-nat.h".
7697 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7698 add_target.
7699 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7700
7701 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7702
7703 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7704
7705 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7706
7707 * mips64obsd-nat.c: Include "obsd-nath".
7708 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7709 add_target
7710 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7711
7712 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7713
7714 * amd64obsd-nat.c: Include "obsd-nat,h.
7715 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7716 add_target.
7717 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7718
7719 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7720
7721 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7722 (find_overload_match): Update call to find_oload_champ.
7723 (find_oload_champ_namespace_loop): Likewise
7724
7725 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7726
7727 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7728
7729 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7730 * config/sparc/obsd64.mh: New file.
7731 * sparc64obsd-nat.c: New file.
7732
7733 * obsd-nat.h: New file.
7734 * obsd-nat.c: New file.
7735 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7736 (ALLDEPFILES): Add obsd-nat.c.
7737
7738 2014-02-28 Tom Tromey <tromey@redhat.com>
7739
7740 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7741 * cli-out.h (cli_ui_out_impl): Now const.
7742 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7743 * ui-out.c (struct ui_out) <impl>: Now const.
7744 (default_ui_out_impl): Now const.
7745 (ui_out_new): Make 'impl' parameter const.
7746 * ui-out.h (ui_out_new): Update.
7747
7748 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7749
7750 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7751
7752 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7753
7754 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7755
7756 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7757
7758 Additional PR 8882 fix.
7759 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7760
7761 2014-02-27 Pedro Alves <palves@redhat.com>
7762
7763 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7764 isn't set.
7765
7766 2014-02-27 Pedro Alves <palves@redhat.com>
7767
7768 PR 12702
7769 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7770 * nat/linux-waitpid.c: Include string.h.
7771 (status_to_str): Moved here and made extern.
7772 * nat/linux-waitpid.h (status_to_str): New declaration.
7773
7774 2014-02-27 Hui Zhu <hui@codesourcery.com>
7775
7776 PR 12702
7777 * infrun.c (ptid_match): Move ...
7778 * common/ptid.c (ptid_match): ... here.
7779 * inferior.h (ptid_match): Move ...
7780 * common/ptid.h (ptid_match): ... here.
7781
7782 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7783
7784 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7785 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7786 gdb_target_obs.
7787
7788 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7789
7790 * obsd-tdep.c (obsd_auxv_parse): New function.
7791 (obsd_init_abi): Set auxv_parse.
7792
7793 * gdbarch.sh (auxv_parse): New.
7794 * gdbarch.h: Regenerated.
7795 * gdbarch.c: Regenerated.
7796 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7797
7798 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7799
7800 * guile/scm-value.c (gdbscm_history_append_x): New function.
7801 (value_functions): Add it.
7802
7803 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7804
7805 * dwarf2read.c (attr_value_as_address): New function.
7806 (dwarf2_find_base_address, read_call_site_scope): Use
7807 attr_value_as_address in place of DW_ADDR.
7808 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7809 the low and high addresses. Slight rework of the handling
7810 of the high pc being a constant form, and limit it to
7811 DWARF verson 4 or higher.
7812 (dwarf2_record_block_ranges): Likewise.
7813 (read_partial_die): Likewise.
7814 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7815
7816 2014-02-26 Tom Tromey <tromey@redhat.com>
7817
7818 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7819
7820 2014-02-26 Tom Tromey <tromey@redhat.com>
7821
7822 * elfread.c (elf_read_minimal_symbols): Return early if
7823 minimal symbols have already been read. Add "ei" parameter.
7824 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7825 * minsyms.c (prim_record_minimal_symbol_full): Update.
7826 * objfiles.h (struct objstats) <n_minsyms>: Move...
7827 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7828 * symmisc.c (print_objfile_statistics): Update.
7829
7830 2014-02-26 Tom Tromey <tromey@redhat.com>
7831
7832 * elfread.c (elf_read_minimal_symbols): New function, from
7833 elf_symfile_read.
7834 (elf_symfile_read): Call it.
7835
7836 2014-02-26 Tom Tromey <tromey@redhat.com>
7837
7838 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7839 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7840 (lookup_minimal_symbol_solib_trampoline)
7841 (lookup_minimal_symbol_by_pc_section_1)
7842 (lookup_minimal_symbol_and_objfile): Update.
7843 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7844 Don't allocate a minimal symbol if minsyms have already been read.
7845 (build_minimal_symbol_hash_tables): Update.
7846 (install_minimal_symbols): Do nothing if minsyms already read.
7847 Use the per-BFD obstack.
7848 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7849 * objfiles.c (allocate_objfile): Call
7850 terminate_minimal_symbol_table later.
7851 (have_minimal_symbols): Update.
7852 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7853 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7854 Move from struct objfile.
7855 <minsyms_read>: New field.
7856 (struct objfile) <msymbols, minimal_symbol_count,
7857 msymbol_hash, msymbol_demangled_hash>: Move.
7858 (ALL_OBJFILE_MSYMBOLS): Update.
7859 * symfile.c (read_symbols): Set minsyms_read.
7860 (reread_symbols): Update.
7861 * symmisc.c (dump_objfile, dump_msymbols): Update.
7862
7863 2014-02-26 Tom Tromey <tromey@redhat.com>
7864
7865 * minsyms.c (msymbols_sort): Remove.
7866 * minsyms.h (msymbols_sort): Remove.
7867 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7868 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7869 * elfread.c (elf_symtab_read): Don't add section offsets.
7870 * xcoffread.c (record_minimal_symbol): Don't add section offset
7871 to minimal symbol address.
7872 * somread.c (text_offset, data_offset): Remove.
7873 (som_symtab_read): Don't add section offsets to minimal symbol
7874 addresses.
7875 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7876 Don't add section offsets to minimal symbols.
7877 * coffread.c (coff_symtab_read): Don't add section offsets
7878 to minimal symbol addresses.
7879 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7880 to minimal symbol addresses.
7881 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7882 section offset to minimal symbol addresses.
7883 * mdebugread.c (parse_partial_symbols): Don't add section
7884 offset to minimal symbol addresses.
7885 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7886 offset to minimal symbol addresses.
7887
7888 2014-02-26 Tom Tromey <tromey@redhat.com>
7889
7890 * ada-lang.c (ada_main_name): Update.
7891 (ada_add_standard_exceptions): Update.
7892 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7893 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7894 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7895 * auxv.c (ld_so_xfer_auxv): Update.
7896 * avr-tdep.c (avr_scan_prologue): Update.
7897 * ax-gdb.c (gen_var_ref): Update.
7898 * blockframe.c (get_pc_function_start)
7899 (find_pc_partial_function_gnu_ifunc): Update.
7900 * breakpoint.c (create_overlay_event_breakpoint)
7901 (create_longjmp_master_breakpoint)
7902 (create_std_terminate_master_breakpoint)
7903 (create_exception_master_breakpoint): Update.
7904 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7905 * c-valprint.c (c_val_print): Update.
7906 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7907 * common/agent.c (agent_look_up_symbols): Update.
7908 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7909 * dwarf2loc.c (call_site_to_target_addr): Update.
7910 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7911 * elfread.c (elf_gnu_ifunc_record_cache)
7912 (elf_gnu_ifunc_resolve_by_got): Update.
7913 * findvar.c (default_read_var_value): Update.
7914 * frame.c (inside_main_func): Update.
7915 * frv-tdep.c (frv_frame_this_id): Update.
7916 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7917 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7918 Update.
7919 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7920 (hppa_hpux_find_dummy_bpaddr): Update.
7921 * hppa-tdep.c (hppa_symbol_address): Update.
7922 * infcmd.c (until_next_command): Update.
7923 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7924 Update.
7925 * linespec.c (minsym_found, add_minsym): Update.
7926 * linux-nat.c (get_signo): Update.
7927 * linux-thread-db.c (inferior_has_bug): Update.
7928 * m32c-tdep.c (m32c_return_value)
7929 (m32c_m16c_address_to_pointer): Update.
7930 * m32r-tdep.c (m32r_frame_this_id): Update.
7931 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7932 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7933 * maint.c (maintenance_translate_address): Update.
7934 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7935 (frob_address): New function.
7936 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7937 frob_address. Rename parameter to "pc_in".
7938 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7939 addresses.
7940 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7941 Update.
7942 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7943 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7944 * objc-lang.c (find_objc_msgsend): Update.
7945 * objfiles.c (objfile_relocate1): Update.
7946 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7947 * p-valprint.c (pascal_val_print): Update.
7948 * parse.c (write_exp_msymbol): Update.
7949 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7950 (ppc_elfv2_skip_entrypoint): Update.
7951 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7952 * printcmd.c (build_address_symbolic, msym_info)
7953 (address_info): Update.
7954 * proc-service.c (ps_pglobal_lookup): Update.
7955 * psymtab.c (find_pc_sect_psymtab_closer)
7956 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7957 Change msymbol parameter to bound_minimal_symbol.
7958 * ravenscar-thread.c (get_running_thread_id): Update.
7959 * remote.c (remote_check_symbols): Update.
7960 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7961 address.
7962 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7963 * solib-dsbt.c (lm_base): Update.
7964 * solib-frv.c (lm_base, main_got): Update.
7965 * solib-irix.c (locate_base): Update.
7966 * solib-som.c (som_solib_create_inferior_hook)
7967 (link_map_start): Update.
7968 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7969 * solib-svr4.c (elf_locate_base, enable_break): Update.
7970 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7971 (flush_ea_cache): Update.
7972 * stabsread.c (define_symbol, scan_file_globals): Update.
7973 * stack.c (find_frame_funname): Update.
7974 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7975 (debug_qf_find_pc_sect_symtab): Update.
7976 * symfile.c (simple_read_overlay_table)
7977 (simple_overlay_update): Update.
7978 * symfile.h (struct quick_symbol_functions)
7979 <find_pc_sect_symtab>: Change type of msymbol to
7980 bound_minimal_symbol.
7981 * symmisc.c (dump_msymbols): Update.
7982 * symtab.c (find_pc_sect_symtab_via_partial)
7983 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7984 (search_symbols, print_msymbol_info): Update.
7985 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7986 (MSYMBOL_VALUE_ADDRESS): Redefine.
7987 (BMSYMBOL_VALUE_ADDRESS): New macro.
7988 * tracepoint.c (scope_info): Update.
7989 * tui/tui-disasm.c (tui_find_disassembly_address)
7990 (tui_get_begin_asm_address): Update.
7991 * valops.c (find_function_in_inferior): Update.
7992 * value.c (value_static_field, value_fn_field): Update.
7993
7994 2014-02-26 Tom Tromey <tromey@redhat.com>
7995
7996 * ada-lang.c (ada_update_initial_language): Update.
7997 (ada_main_name, ada_has_this_exception_support): Update.
7998 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7999 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8000 * arm-tdep.c (arm_skip_stub): Update.
8001 * auxv.c (ld_so_xfer_auxv): Update.
8002 * avr-tdep.c (avr_scan_prologue): Update.
8003 * ax-gdb.c (gen_var_ref): Update.
8004 * breakpoint.c (struct breakpoint_objfile_data)
8005 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8006 type to bound_minimal_symbol.
8007 (create_overlay_event_breakpoint)
8008 (create_longjmp_master_breakpoint)
8009 (create_std_terminate_master_breakpoint)
8010 (create_exception_master_breakpoint): Update.
8011 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8012 * c-exp.y (classify_name): Update.
8013 * coffread.c (coff_symfile_read): Update.
8014 * common/agent.c (agent_look_up_symbols): Update.
8015 * d-lang.c (d_main_name): Update.
8016 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8017 * dec-thread.c (enable_dec_thread): Update.
8018 * dwarf2loc.c (call_site_to_target_addr): Update.
8019 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8020 * eval.c (evaluate_subexp_standard): Update.
8021 * findvar.c (struct minsym_lookup_data) <result>: Change type
8022 to bound_minimal_symbol.
8023 <objfile>: Remove.
8024 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8025 * frame.c (inside_main_func): Update.
8026 * frv-tdep.c (frv_frame_this_id): Update.
8027 * gcore.c (call_target_sbrk): Update.
8028 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8029 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8030 Update.
8031 * go-lang.c (go_main_name): Update.
8032 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8033 (hppa_hpux_find_import_stub_for_addr): Update.
8034 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8035 Update. Change return type.
8036 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8037 type.
8038 * jit.c (jit_breakpoint_re_set_internal): Update.
8039 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8040 Update.
8041 * linux-nat.c (get_signo): Update.
8042 * linux-thread-db.c (inferior_has_bug): Update
8043 * m32c-tdep.c (m32c_return_value)
8044 (m32c_m16c_address_to_pointer): Update.
8045 * m32r-tdep.c (m32r_frame_this_id): Update.
8046 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8047 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8048 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8049 lookup_minimal_symbol. Change return type.
8050 (lookup_minimal_symbol): Remove.
8051 (lookup_bound_minimal_symbol): Update.
8052 (lookup_minimal_symbol_text): Change return type.
8053 (lookup_minimal_symbol_solib_trampoline): Change return type.
8054 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8055 (lookup_minimal_symbol_solib_trampoline): Change return type.
8056 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8057 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8058 (value_nsstring, find_imps): Update.
8059 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8060 * p-lang.c (pascal_main_name): Update.
8061 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8062 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8063 * proc-service.c (ps_pglobal_lookup): Update.
8064 * ravenscar-thread.c (get_running_thread_msymbol): Change
8065 return type.
8066 (has_ravenscar_runtime, get_running_thread_id): Update.
8067 * remote.c (remote_check_symbols): Update.
8068 * sol-thread.c (ps_pglobal_lookup): Update.
8069 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8070 * solib-dsbt.c (lm_base): Update.
8071 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8072 Update.
8073 * solib-irix.c (locate_base): Update.
8074 * solib-som.c (som_solib_create_inferior_hook)
8075 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8076 Update.
8077 * solib-spu.c (spu_enable_break): Update.
8078 * solib-svr4.c (elf_locate_base, enable_break): Update.
8079 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8080 (flush_ea_cache): Update.
8081 * stabsread.c (define_symbol): Update.
8082 * symfile.c (simple_read_overlay_table): Update.
8083 * symtab.c (find_pc_sect_line): Update.
8084 * tracepoint.c (scope_info): Update.
8085 * tui-disasm.c (tui_get_begin_asm_address): Update.
8086 * value.c (value_static_field): Update.
8087
8088 2014-02-26 Tom Tromey <tromey@redhat.com>
8089
8090 * minsyms.c (prim_record_minimal_symbol_full): Use
8091 SET_MSYMBOL_VALUE_ADDRESS.
8092 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8093 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8094 SET_MSYMBOL_VALUE_ADDRESS.
8095 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8096 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8097
8098 2014-02-26 Tom Tromey <tromey@redhat.com>
8099
8100 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8101 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8102 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8103 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8104 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8105 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8106 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8107 * ada-lang.c (ada_main_name): Update.
8108 (ada_lookup_simple_minsym): Update.
8109 (ada_make_symbol_completion_list): Update.
8110 (ada_add_standard_exceptions): Update.
8111 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8112 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8113 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8114 * arm-tdep.c (skip_prologue_function): Update.
8115 (arm_skip_stack_protector, arm_skip_stub): Update.
8116 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8117 (arm_wince_skip_main_prologue): Update.
8118 * auxv.c (ld_so_xfer_auxv): Update.
8119 * avr-tdep.c (avr_scan_prologue): Update.
8120 * ax-gdb.c (gen_var_ref): Update.
8121 * block.c (call_site_for_pc): Update.
8122 * blockframe.c (get_pc_function_start): Update.
8123 (find_pc_partial_function_gnu_ifunc): Update.
8124 * breakpoint.c (create_overlay_event_breakpoint): Update.
8125 (create_longjmp_master_breakpoint): Update.
8126 (create_std_terminate_master_breakpoint): Update.
8127 (create_exception_master_breakpoint): Update.
8128 (resolve_sal_pc): Update.
8129 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8130 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8131 Update.
8132 * c-valprint.c (c_val_print): Update.
8133 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8134 * coffread.c (coff_symfile_read): Update.
8135 * common/agent.c (agent_look_up_symbols): Update.
8136 * dbxread.c (find_stab_function_addr): Update.
8137 (end_psymtab): Update.
8138 * dwarf2loc.c (call_site_to_target_addr): Update.
8139 (func_verify_no_selftailcall): Update.
8140 (tailcall_dump): Update.
8141 (call_site_find_chain_1): Update.
8142 (dwarf_expr_reg_to_entry_parameter): Update.
8143 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8144 (elf_gnu_ifunc_resolve_by_got): Update.
8145 * f-valprint.c (info_common_command): Update.
8146 * findvar.c (read_var_value): Update.
8147 * frame.c (get_prev_frame_1): Update.
8148 (inside_main_func): Update.
8149 * frv-tdep.c (frv_skip_main_prologue): Update.
8150 (frv_frame_this_id): Update.
8151 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8152 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8153 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8154 (gnuv3_skip_trampoline): Update.
8155 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8156 (hppa64_hpux_in_solib_call_trampoline): Update.
8157 (hppa_hpux_skip_trampoline_code): Update.
8158 (hppa64_hpux_search_dummy_call_sequence): Update.
8159 (hppa_hpux_find_import_stub_for_addr): Update.
8160 (hppa_hpux_find_dummy_bpaddr): Update.
8161 * hppa-tdep.c (hppa_symbol_address)
8162 (hppa_lookup_stub_minimal_symbol): Update.
8163 * i386-tdep.c (i386_skip_main_prologue): Update.
8164 (i386_pe_skip_trampoline_code): Update.
8165 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8166 * infcall.c (get_function_name): Update.
8167 * infcmd.c (until_next_command): Update.
8168 * jit.c (jit_breakpoint_re_set_internal): Update.
8169 (jit_inferior_init): Update.
8170 * linespec.c (minsym_found): Update.
8171 (add_minsym): Update.
8172 * linux-fork.c (info_checkpoints_command): Update.
8173 * linux-nat.c (get_signo): Update.
8174 * linux-thread-db.c (inferior_has_bug): Update.
8175 * m32c-tdep.c (m32c_return_value): Update.
8176 (m32c_m16c_address_to_pointer): Update.
8177 (m32c_m16c_pointer_to_address): Update.
8178 * m32r-tdep.c (m32r_frame_this_id): Update.
8179 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8180 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8181 * maint.c (maintenance_translate_address): Update.
8182 * minsyms.c (add_minsym_to_hash_table): Update.
8183 (add_minsym_to_demangled_hash_table): Update.
8184 (msymbol_objfile): Update.
8185 (lookup_minimal_symbol): Update.
8186 (iterate_over_minimal_symbols): Update.
8187 (lookup_minimal_symbol_text): Update.
8188 (lookup_minimal_symbol_by_pc_name): Update.
8189 (lookup_minimal_symbol_solib_trampoline): Update.
8190 (lookup_minimal_symbol_by_pc_section_1): Update.
8191 (lookup_minimal_symbol_and_objfile): Update.
8192 (prim_record_minimal_symbol_full): Update.
8193 (compare_minimal_symbols): Update.
8194 (compact_minimal_symbols): Update.
8195 (build_minimal_symbol_hash_tables): Update.
8196 (install_minimal_symbols): Update.
8197 (terminate_minimal_symbol_table): Update.
8198 (find_solib_trampoline_target): Update.
8199 (minimal_symbol_upper_bound): Update.
8200 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8201 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8202 (mips_skip_pic_trampoline_code): Update.
8203 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8204 * objc-lang.c (selectors_info): Update.
8205 (classes_info): Update.
8206 (find_methods): Update.
8207 (find_imps): Update.
8208 (find_objc_msgsend): Update.
8209 * objfiles.c (objfile_relocate1): Update.
8210 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8211 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8212 * p-valprint.c (pascal_val_print): Update.
8213 * parse.c (write_exp_msymbol): Update.
8214 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8215 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8216 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8217 * printcmd.c (build_address_symbolic): Update.
8218 (sym_info): Update.
8219 (address_info): Update.
8220 * proc-service.c (ps_pglobal_lookup): Update.
8221 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8222 (find_pc_sect_psymtab): Update.
8223 * python/py-framefilter.c (py_print_frame): Update.
8224 * ravenscar-thread.c (get_running_thread_id): Update.
8225 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8226 Update.
8227 * remote.c (remote_check_symbols): Update.
8228 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8229 (rs6000_skip_trampoline_code): Update.
8230 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8231 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8232 * solib-dsbt.c (lm_base): Update.
8233 * solib-frv.c (lm_base): Update.
8234 (main_got): Update.
8235 * solib-irix.c (locate_base): Update.
8236 * solib-som.c (som_solib_create_inferior_hook): Update.
8237 (som_solib_desire_dynamic_linker_symbols): Update.
8238 (link_map_start): Update.
8239 * solib-spu.c (spu_enable_break): Update.
8240 (ocl_enable_break): Update.
8241 * solib-svr4.c (elf_locate_base): Update.
8242 (enable_break): Update.
8243 * spu-tdep.c (spu_get_overlay_table): Update.
8244 (spu_catch_start): Update.
8245 (flush_ea_cache): Update.
8246 * stabsread.c (define_symbol): Update.
8247 (scan_file_globals): Update.
8248 * stack.c (find_frame_funname): Update.
8249 (frame_info): Update.
8250 * symfile.c (simple_read_overlay_table): Update.
8251 (simple_overlay_update): Update.
8252 * symmisc.c (dump_msymbols): Update.
8253 * symtab.c (fixup_section): Update.
8254 (find_pc_sect_line): Update.
8255 (skip_prologue_sal): Update.
8256 (search_symbols): Update.
8257 (print_msymbol_info): Update.
8258 (rbreak_command): Update.
8259 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8260 (completion_list_objc_symbol): Update.
8261 (default_make_symbol_completion_list_break_on): Update.
8262 * tracepoint.c (scope_info): Update.
8263 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8264 (tui_get_begin_asm_address): Update.
8265 * valops.c (find_function_in_inferior): Update.
8266 * value.c (value_static_field): Update.
8267 (value_fn_field): Update.
8268
8269 2014-02-26 Tom Tromey <tromey@redhat.com>
8270
8271 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8272 bound minimal symbols. Move code that knows about minsym
8273 table layout...
8274 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8275 function.
8276 * minsyms.h (minimal_symbol_upper_bound): Declare.
8277 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8278 minimal_symbol_upper_bound.
8279
8280 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8281
8282 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8283 Use the type's name if its basic type does not have a tag.
8284
8285 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8286
8287 * dwarf2read.c (read_subrange_type): Add comment.
8288
8289 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8290
8291 * dwarf2read.c (update_enumeration_type_from_children): New
8292 function, mostly extracted from process_structure_scope.
8293 (read_enumeration_type): Call update_enumeration_type_from_children.
8294 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8295 and flag_flag_enum fields.
8296
8297 2014-02-26 Pedro Alves <palves@redhat.com>
8298
8299 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8300 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8301 to_xfer_partial method.
8302
8303 2014-02-26 Pedro Alves <palves@redhat.com>
8304
8305 * target.c (complete_target_initialization): Don't install
8306 default_xfer_partial as to_xfer_partial hook.
8307 (nomemory): Delete.
8308 (update_current_target): Don't INHERIT nor de_fault
8309 deprecated_xfer_memory. Delete de_fault macro.
8310 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8311 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8312 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8313 field.
8314
8315 2014-02-26 Pedro Alves <palves@redhat.com>
8316
8317 * go32-nat.c (my_write_child): New function.
8318 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8319 (go32_xfer_partial): New function.
8320 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8321 Instead install a to_xfer_partial hook.
8322
8323 2014-02-26 Pedro Alves <palves@redhat.com>
8324
8325 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8326 to_xfer_partial helper. Rewrite.
8327 (procfs_xfer_partial): New function.
8328 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8329 Install a to_xfer_partial hook.
8330
8331 2014-02-26 Pedro Alves <palves@redhat.com>
8332
8333 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8334 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8335 (m32r_xfer_partial): New function.
8336 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8337 Install a to_xfer_partial hook.
8338
8339 2014-02-26 Pedro Alves <palves@redhat.com>
8340
8341 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8342 helper.
8343 (mips_xfer_partial): New function.
8344 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8345 hook. Install a to_xfer_partial hook.
8346
8347 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8348
8349 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8350 * gdbtypes.c (create_array_type_with_stride): New function,
8351 renaming create_array_type, but with an added parameter
8352 called "bit_stride".
8353 (create_array_type): Re-implement using
8354 create_array_type_with_stride.
8355 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8356 and DW_AT_bit_stride attributes.
8357
8358 2014-02-26 Pedro Alves <palves@redhat.com>
8359
8360 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8361 task-specific breakpoints.
8362
8363 2014-02-25 Pedro Alves <palves@redhat.com>
8364
8365 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8366 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8367
8368 2014-02-25 Stan Shebs <stan@codesourcery.com>
8369
8370 * defs.h: Annotate comments for Doxygen.
8371
8372 2014-02-25 Tom Tromey <tromey@redhat.com>
8373
8374 * target.h (target_ignore): Don't declare.
8375 * target.c (target_ignore): Remove.
8376
8377 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8378
8379 PR gdb/16626
8380 * auto-load.c (auto_load_objfile_script_1): Change filename to
8381 debugfile.
8382
8383 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8384
8385 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8386 documentation. Adjust prototype to match the target_ops
8387 to_xfer_partial method. Adjust implementation accordingly.
8388
8389 2014-02-25 Hui Zhu <hui@codesourcery.com>
8390
8391 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8392 to_traceframe_info.
8393
8394 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8395
8396 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8397 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8398 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8399 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8400 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8401 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8402 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8403 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8404 New constants.
8405 (rl78_register_type): Use a data pointer type for SP and
8406 new pseudo registers mentioned above. Use a 16 bit integer
8407 type for all other register pairs.
8408 (rl78_register_name, rl78_g10_register_name): Update for
8409 new pseudo registers.
8410 (rl78_pseudo_register_read): Likewise.
8411 (rl78_pseudo_register_write): Likewise.
8412 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8413 to the newly added pseudo registers.
8414
8415 2014-02-24 Doug Evans <dje@google.com>
8416
8417 * value.c (record_latest_value): Fix comment.
8418 * printcmd.c (print_command_1): Remove code to handle -1 return from
8419 record_latest_value.
8420
8421 2014-02-24 Pedro Alves <palves@redhat.com>
8422
8423 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8424 deprecated_xfer_memory hook.
8425 (procfs_xfer_partial): Call procfs_xfer_memory instead
8426 of the deprecated_xfer_memory target hook.
8427 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8428 helper.
8429
8430 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8431
8432 * windows-nat.c (windows_xfer_shared_libraries): Return
8433 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8434 requested object is TARGET_OBJECT_LIBRARIES.
8435
8436 2014-02-24 Yao Qi <yao@codesourcery.com>
8437
8438 * target.h (enum target_xfer_status)
8439 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8440 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8441 explicitly. New.
8442 * corefile.c (memory_error_message): User updated.
8443 * exec.c (section_table_read_available_memory): Likewise.
8444 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8445 * target.c (target_xfer_status_to_string): Likewise.
8446 (raw_memory_xfer_partial): Likewise.
8447 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8448 * valops.c (read_value_memory): Likewise.
8449 * exec.h: Update comments.
8450
8451 2014-02-24 Yao Qi <yao@codesourcery.com>
8452
8453 * target.c (target_xfer_status_to_string): Rename argument err
8454 to status.
8455 * target.h (target_xfer_status_to_string): Update declaration.
8456 Replace target_xfer_error_to_string with
8457 target_xfer_status_to_string in comment.
8458
8459 2014-02-24 Yao Qi <yao@codesourcery.com>
8460
8461 * mips-linux-nat.c (super_close): Update its type.
8462 (mips_linux_close): Pass 'self' to super_close.
8463
8464 2014-02-24 Yao Qi <yao@codesourcery.com>
8465
8466 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8467 * corefile.c (read_memory): Adjusted.
8468 * target.c (target_write_with_progress): Adjusted.
8469
8470 2014-02-23 Yao Qi <yao@codesourcery.com>
8471
8472 Revert two patches:
8473
8474 2013-10-25 Yao Qi <yao@codesourcery.com>
8475
8476 * remote.c (remote_traceframe_info): Return early if
8477 traceframe is not selected.
8478
8479 2013-07-19 Yao Qi <yao@codesourcery.com>
8480
8481 * target.c (update_current_target): Change the default action
8482 of 'to_traceframe_info' from tcomplain to return_zero.
8483 * target.h (struct target_ops) <to_traceframe_info>: Add more
8484 comments.
8485
8486 2014-02-23 Yao Qi <yao@codesourcery.com>
8487
8488 * valops.c (read_value_memory): Rewrite it. Call
8489 target_xfer_partial in a loop.
8490 * exec.h (section_table_available_memory): Remove declaration.
8491 Move comments to ...
8492 * exec.c (section_table_available_memory): ... here. Make it
8493 static.
8494
8495 2014-02-23 Yao Qi <yao@codesourcery.com>
8496
8497 * exec.c (section_table_read_available_memory): New function.
8498 * exec.h (section_table_read_available_memory): Declare.
8499 * ctf.c (ctf_xfer_partial): Call
8500 section_table_read_available_memory.
8501 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8502
8503 2014-02-23 Yao Qi <yao@codesourcery.com>
8504
8505 * ctf.c (ctf_xfer_partial): Move code to ...
8506 * exec.c (exec_read_partial_read_only): ... it. New function.
8507 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8508 * tracefile.c: Include "exec.h".
8509 * exec.h (exec_read_partial_read_only): Declare.
8510
8511 2014-02-23 Yao Qi <yao@codesourcery.com>
8512
8513 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8514 (tfile_has_memory): Remove.
8515 (init_tfile_ops): Don't set fields to_has_all_memory and
8516 to_has_memory of tfile_ops.
8517 * tracefile.c (tracefile_has_all_memory): New function.
8518 (tracefile_has_memory): New function.
8519 (init_tracefile_ops): Initialize fields to_has_all_memory and
8520 to_has_memory of 'ops'.
8521
8522 2014-02-23 Yao Qi <yao@codesourcery.com>
8523
8524 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8525 (ctf_thread_alive, ctf_get_trace_status): Remove.
8526 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8527 init_tracefile_ops.
8528 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8529 (tfile_has_stack, tfile_has_registers): Remove.
8530 (tfile_thread_alive): Remove.
8531 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8532 init_tracefile_ops.
8533 * tracefile.c (tracefile_has_stack): New function.
8534 (tracefile_has_registers): New function.
8535 (tracefile_thread_alive): New function.
8536 (tracefile_get_trace_status): New function.
8537 (init_tracefile_ops): New function.
8538 * tracefile.h (init_tracefile_ops): Declare.
8539
8540 2014-02-23 Yao Qi <yao@codesourcery.com>
8541
8542 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8543 (O_LARGEFILE): Likewise.
8544 (tfile_ops): Likewise.
8545 (TRACE_HEADER_SIZE): Likewise.
8546 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8547 (cur_data_size): Likewise.
8548 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8549 (tfile_close, tfile_files_info): Likewise.
8550 (tfile_get_trace_status): Likewise.
8551 (tfile_get_tracepoint_status): Likewise.
8552 (tfile_get_traceframe_address): Likewise.
8553 (tfile_trace_find, match_blocktype): Likewise.
8554 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8555 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8556 (tfile_get_trace_state_variable_value): Likewise.
8557 (tfile_has_all_memory, tfile_has_memory): Likewise.
8558 (tfile_has_stack, tfile_has_registers): Likewise.
8559 (tfile_thread_alive, build_traceframe_info): Likewise.
8560 (tfile_traceframe_info, init_tfile_ops): Likewise.
8561 (_initialize_tracepoint): Don't call init_tfile_ops
8562 and add_target_with_completer.
8563 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8564 exec.h, completer.h and filenames.h.
8565 (_initialize_tracefile_tfile): New function.
8566
8567 2014-02-23 Yao Qi <yao@codesourcery.com>
8568
8569 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8570 tracefile-tfile.o.
8571 (HFILES_NO_SRCDIR): Add tracefile.h.
8572 * ctf.c: Include "tracefile.h".
8573 * tracefile.h: New file.
8574 * tracefile.c: New file
8575 * tracefile-tfile.c: New file.
8576 * tracepoint.c: Include "tracefile.h".
8577 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8578 (stop_reason_names): Add const.
8579 (trace_file_writer_xfree): Move it to tracefile.c.
8580 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8581 (trace_save_ctf): Likewise.
8582 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8583 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8584 (tfile_write_header, tfile_write_regblock_type): Likewise.
8585 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8586 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8587 (tfile_write_raw_data, tfile_end): Likewise.
8588 (tfile_trace_file_writer_new): Likewise.
8589 (free_uploaded_tp): Make it extern.
8590 (free_uploaded_tsv): Make it extern.
8591 (_initialize_tracepoint): Move code to register command 'tsave'
8592 to tracefile.c.
8593 * tracepoint.h (stop_reason_names): Declare.
8594 (struct trace_frame_write_ops): Move it to tracefile.h.
8595 (struct trace_file_write_ops): Likewise.
8596 (struct trace_file_writer): Likewise.
8597 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8598
8599 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8600
8601 PR gdb/16594
8602 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8603 process name.
8604 (get_cores_used_by_process): New parameter num_cores, use it.
8605 (linux_xfer_osdata_processes): Pass num_cores to it.
8606 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8607 process name.
8608
8609 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8610
8611 * target.c (memory_xfer_partial): Fix length arg in call to
8612 breakpoint_xfer_memory.
8613
8614 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8615
8616 PR tdep/16397
8617 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8618 number comes after the + or - signs. Adjust length of register
8619 name to be extracted.
8620
8621 2014-02-20 Tom Tromey <tromey@redhat.com>
8622
8623 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8624 (ada_varobj_ops): Mark "extern".
8625
8626 2014-02-20 Tom Tromey <tromey@redhat.com>
8627
8628 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8629
8630 2014-02-20 Doug Evans <xdje42@gmail.com>
8631
8632 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8633 All callers updated.
8634 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8635 All callers updated.
8636 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8637 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8638
8639 2014-02-20 lin zuojian <manjian2006@gmail.com>
8640 Joel Brobecker <brobecker@adacore.com>
8641 Doug Evans <xdje42@gmail.com>
8642
8643 PR symtab/16581
8644 * dwarf2read.c (struct die_info): New member in_process.
8645 (reset_die_in_process): New function.
8646 (process_die): Set it at the start, reset when returning.
8647 (inherit_abstract_dies): Only call process_die if origin_child_die
8648 not already being processed.
8649
8650 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8651
8652 * windows-nat.c (handle_unload_dll): Add function documentation.
8653 (do_initial_windows_stuff): Add comment explaining why we wait
8654 until after inferior initialization has finished before
8655 processing all DLLs.
8656
8657 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8658
8659 * windows-nat.c (get_module_name): Delete.
8660 (windows_get_exec_module_filename): New function, mostly
8661 inspired from get_module_name.
8662 (windows_pid_to_exec_file): Replace call to get_module_name
8663 by call to windows_get_exec_module_filename.
8664
8665 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8666
8667 * windows-nat.c (handle_load_dll): Rewrite this function's
8668 introductory comment. Remove code using get_module_name
8669 to get the DLL's name.
8670
8671 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8672
8673 * windows-nat.c (get_windows_debug_event): Ignore
8674 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8675 if windows_initialization_done == 0.
8676 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8677 Adjust implementation to always load all DLLs.
8678 (do_initial_windows_stuff): Replace call to
8679 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8680
8681 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8682
8683 * windows-nat.c (_initialize_windows_nat): Deprecate the
8684 "dll-symbols" command. Turn the "add-shared-symbol-files"
8685 and "assf" aliases into commands, and deprecate them as well.
8686 * NEWS: Add entry explaining that "dll-symbols" and its two
8687 aliases are now deprecated.
8688
8689 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8690
8691 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8692 new-line in debug string. Remove trailing spaces.
8693
8694 2014-02-19 Stan Shebs <stan@codesourcery.com>
8695
8696 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8697
8698 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8699
8700 * NEWS: Add entry for the new feature
8701 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8702 and class values.
8703
8704 2014-02-19 Stan Shebs <stan@codesourcery.com>
8705
8706 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8707
8708 2014-02-19 Pedro Alves <palves@redhat.com>
8709
8710 * common/ptid.h (struct ptid): Mention that process_stratum
8711 targets should prefer ptid.lwp.
8712
8713 2014-02-19 Pedro Alves <palves@redhat.com>
8714
8715 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8716 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8717 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8718 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8719 store remote thread ids rather than ptid.tid.
8720 (_initialize_remote): Adjust.
8721
8722 2014-02-19 Tom Tromey <tromey@redhat.com>
8723
8724 * target.c (target_get_unwinder): Rewrite.
8725 (target_get_tailcall_unwinder): Rewrite.
8726 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8727 (record_btrace_to_get_tailcall_unwinder): New function.
8728 (init_record_btrace_ops): Update.
8729 * target.h (struct target_ops) <to_get_unwinder,
8730 to_get_tailcall_unwinder>: Now function pointers. Use
8731 TARGET_DEFAULT_RETURN.
8732
8733 2014-02-19 Tom Tromey <tromey@redhat.com>
8734
8735 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8736 argument.
8737 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8738
8739 2014-02-19 Tom Tromey <tromey@redhat.com>
8740
8741 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8742 directly.
8743 * target-delegates.c: Rebuild.
8744 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8745 TARGET_DEFAULT_FUNC.
8746 * target.c (default_target_decr_pc_after_break): Rename from
8747 forward_target_decr_pc_after_break. Simplify.
8748 (target_decr_pc_after_break): Rely on delegation.
8749
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8751
8752 * target.c (update_current_target): Do not INHERIT to_doc or
8753 to_magic. Do not de_fault to_open or to_close.
8754
8755 2014-02-19 Tom Tromey <tromey@redhat.com>
8756
8757 * gcore.h (objfile_find_memory_regions): Declare.
8758 * gcore.c (objfile_find_memory_regions): No longer static. Add
8759 "self" argument.
8760 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8761 * exec.c: Include gcore.h.
8762 (exec_set_find_memory_regions): Remove.
8763 (exec_find_memory_regions): Remove.
8764 (exec_do_find_memory_regions): Remove.
8765 (init_exec_ops): Update.
8766 * defs.h (exec_set_find_memory_regions): Remove.
8767
8768 2014-02-19 Tom Tromey <tromey@redhat.com>
8769
8770 * target-delegates.c: Rebuild.
8771 * target.h (struct target_ops) <to_extra_thread_info,
8772 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8773 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8774 not 0, in TARGET_DEFAULT_RETURN.
8775
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8777
8778 * target.c (complete_target_initialization): Remove casts. Use
8779 return_zero_has_execution.
8780 (return_zero): Add "ignore" argument.
8781 (return_zero_has_execution): New function.
8782 (init_dummy_target): Remove casts. Use
8783 return_zero_has_execution.
8784
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8786
8787 * target.c (update_current_target): Update comments. Do not
8788 INHERIT to_stratum.
8789
8790 2014-02-19 Tom Tromey <tromey@redhat.com>
8791
8792 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8793 needed.
8794 * corelow.c (core_read_description): Delegate when needed.
8795 * remote.c (remote_read_description): Delegate when needed.
8796 * target-delegates.c: Rebuild.
8797 * target.c (target_read_description): Rewrite.
8798 * target.h (struct target_ops) <to_read_description>: Update
8799 comment. Use TARGET_DEFAULT_RETURN.
8800
8801 2014-02-19 Tom Tromey <tromey@redhat.com>
8802
8803 * target-delegates.c: Rebuild.
8804 * target.c (update_current_target): Don't inherit or default
8805 to_can_run.
8806 (find_default_run_target): Check against delegate_can_run.
8807 * target.h (struct target_ops) <to_can_run>: Use
8808 TARGET_DEFAULT_RETURN.
8809
8810 2014-02-19 Tom Tromey <tromey@redhat.com>
8811
8812 * target-delegates.c: Rebuild.
8813 * target.c (target_disconnect): Unconditionally delegate.
8814 * target.h (struct target_ops) <to_disconnect>: Use
8815 TARGET_DEFAULT_NORETURN.
8816
8817 2014-02-19 Tom Tromey <tromey@redhat.com>
8818
8819 * record.c (record_stop): Unconditionally delegate.
8820 * target-delegates.c: Rebuild.
8821 * target.c (target_stop_recording): Unconditionally delegate.
8822 * target.h (struct target_ops) <to_stop_recording>: Use
8823 TARGET_DEFAULT_IGNORE.
8824
8825 2014-02-19 Tom Tromey <tromey@redhat.com>
8826
8827 * target-delegates.c: Rebuild.
8828 * target.c (target_enable_btrace): Unconditionally delegate.
8829 * target.h (struct target_ops) <to_enable_btrace>: Use
8830 TARGET_DEFAULT_NORETURN.
8831
8832 2014-02-19 Tom Tromey <tromey@redhat.com>
8833
8834 * target-delegates.c: Rebuild.
8835 * target.c (target_read_btrace): Unconditionally delegate.
8836 * target.h (struct target_ops) <to_read_btrace>: Use
8837 TARGET_DEFAULT_NORETURN.
8838
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8840
8841 * target-delegates.c: Rebuild.
8842 * target.c (target_teardown_btrace): Unconditionally delegate.
8843 * target.h (struct target_ops) <to_teardown_btrace>: Use
8844 TARGET_DEFAULT_NORETURN.
8845
8846 2014-02-19 Tom Tromey <tromey@redhat.com>
8847
8848 * target-delegates.c: Rebuild.
8849 * target.c (target_disable_btrace): Unconditionally delegate.
8850 * target.h (struct target_ops) <to_disable_btrace>: Use
8851 TARGET_DEFAULT_NORETURN.
8852
8853 2014-02-19 Tom Tromey <tromey@redhat.com>
8854
8855 * target-delegates.c: Rebuild.
8856 * target.c (default_search_memory): New function.
8857 (simple_search_memory): Update comment.
8858 (target_search_memory): Unconditionally delegate.
8859 * target.h (struct target_ops) <to_search_memory>: Use
8860 TARGET_DEFAULT_FUNC.
8861
8862 2014-02-19 Tom Tromey <tromey@redhat.com>
8863
8864 * auxv.c (default_auxv_parse): No longer static.
8865 (target_auxv_parse): Unconditionally delegate.
8866 * auxv.h (default_auxv_parse): Declare.
8867 * target-delegates.c: Rebuild.
8868 * target.c: Include auxv.h.
8869 * target.h (struct target_ops) <to_auxv_parse>: Use
8870 TARGET_DEFAULT_FUNC.
8871
8872 2014-02-19 Tom Tromey <tromey@redhat.com>
8873
8874 * target-delegates.c: Rebuild.
8875 * target.c (target_memory_map): Unconditionally delegate.
8876 * target.h (struct target_ops) <to_memory_map>: Use
8877 TARGET_DEFAULT_RETURN.
8878
8879 2014-02-19 Tom Tromey <tromey@redhat.com>
8880
8881 * target-delegates.c: Rebuild.
8882 * target.c (target_thread_alive): Unconditionally delegate.
8883 * target.h (struct target_ops) <to_thread_alive>: Use
8884 TARGET_DEFAULT_RETURN.
8885
8886 2014-02-19 Tom Tromey <tromey@redhat.com>
8887
8888 * target-delegates.c: Rebuild.
8889 * target.c (target_save_record): Unconditionally delegate.
8890 * target.h (struct target_ops) <to_save_record>: Use
8891 TARGET_DEFAULT_NORETURN.
8892
8893 2014-02-19 Tom Tromey <tromey@redhat.com>
8894
8895 * target-delegates.c: Rebuild.
8896 * target.c (target_delete_record): Unconditionally delegate.
8897 * target.h (struct target_ops) <to_delete_record>: Use
8898 TARGET_DEFAULT_NORETURN.
8899
8900 2014-02-19 Tom Tromey <tromey@redhat.com>
8901
8902 * target-delegates.c: Rebuild.
8903 * target.c (target_record_is_replaying): Unconditionally
8904 delegate.
8905 * target.h (struct target_ops) <to_record_is_replaying>: Use
8906 TARGET_DEFAULT_RETURN.
8907
8908 2014-02-19 Tom Tromey <tromey@redhat.com>
8909
8910 * target-delegates.c: Rebuild.
8911 * target.c (target_goto_record_begin): Unconditionally delegate.
8912 * target.h (struct target_ops) <to_goto_record_begin>: Use
8913 TARGET_DEFAULT_NORETURN.
8914
8915 2014-02-19 Tom Tromey <tromey@redhat.com>
8916
8917 * target-delegates.c: Rebuild.
8918 * target.c (target_goto_record_end): Unconditionally delegate.
8919 * target.h (struct target_ops) <to_goto_record_end>: Use
8920 TARGET_DEFAULT_NORETURN.
8921
8922 2014-02-19 Tom Tromey <tromey@redhat.com>
8923
8924 * target-delegates.c: Rebuild.
8925 * target.c (target_goto_record): Unconditionally delegate.
8926 * target.h (struct target_ops) <to_goto_record>: Use
8927 TARGET_DEFAULT_NORETURN.
8928
8929 2014-02-19 Tom Tromey <tromey@redhat.com>
8930
8931 * target-delegates.c: Rebuild.
8932 * target.c (target_insn_history): Unconditionally delegate.
8933 * target.h (struct target_ops) <to_insn_history>: Use
8934 TARGET_DEFAULT_NORETURN.
8935
8936 2014-02-19 Tom Tromey <tromey@redhat.com>
8937
8938 * target-delegates.c: Rebuild.
8939 * target.c (target_insn_history_from): Unconditionally delegate.
8940 * target.h (struct target_ops) <to_insn_history_from>: Use
8941 TARGET_DEFAULT_NORETURN.
8942
8943 2014-02-19 Tom Tromey <tromey@redhat.com>
8944
8945 * target-delegates.c: Rebuild.
8946 * target.c (target_insn_history_range): Unconditionally delegate.
8947 * target.h (struct target_ops) <to_insn_history_range>: Use
8948 TARGET_DEFAULT_NORETURN.
8949
8950 2014-02-19 Tom Tromey <tromey@redhat.com>
8951
8952 * target-delegates.c: Rebuild.
8953 * target.c (target_call_history): Unconditionally delegate.
8954 * target.h (struct target_ops) <to_call_history>: Use
8955 TARGET_DEFAULT_NORETURN.
8956
8957 2014-02-19 Tom Tromey <tromey@redhat.com>
8958
8959 * target-delegates.c: Rebuild.
8960 * target.c (target_call_history_from): Unconditionally delegate.
8961 * target.h (struct target_ops) <to_call_history_from>: Use
8962 TARGET_DEFAULT_NORETURN.
8963
8964 2014-02-19 Tom Tromey <tromey@redhat.com>
8965
8966 * target-delegates.c: Rebuild.
8967 * target.c (target_call_history_range): Unconditionally delegate.
8968 * target.h (struct target_ops) <to_call_history_range>: Use
8969 TARGET_DEFAULT_NORETURN.
8970
8971 2014-02-19 Tom Tromey <tromey@redhat.com>
8972
8973 * target-delegates.c: Rebuild.
8974 * target.c (target_verify_memory): Unconditionally delegate.
8975 * target.h (struct target_ops) <to_verify_memory>: Use
8976 TARGET_DEFAULT_NORETURN.
8977
8978 2014-02-19 Tom Tromey <tromey@redhat.com>
8979
8980 * target-delegates.c: Rebuild.
8981 * target.c (target_core_of_thread): Unconditionally delegate.
8982 * target.h (struct target_ops) <to_core_of_thread>: Use
8983 TARGET_DEFAULT_RETURN.
8984
8985 2014-02-19 Tom Tromey <tromey@redhat.com>
8986
8987 * target-delegates.c: Rebuild.
8988 * target.c (target_flash_done): Unconditionally delegate.
8989 * target.h (struct target_ops) <to_flash_done>: Use
8990 TARGET_DEFAULT_NORETURN.
8991
8992 2014-02-19 Tom Tromey <tromey@redhat.com>
8993
8994 * target-delegates.c: Rebuild.
8995 * target.c (target_flash_erase): Unconditionally delegate.
8996 * target.h (struct target_ops) <to_flash_erase>: Use
8997 TARGET_DEFAULT_NORETURN.
8998
8999 2014-02-19 Tom Tromey <tromey@redhat.com>
9000
9001 * target-delegates.c: Rebuild.
9002 * target.c (target_get_section_table): Unconditionally delegate.
9003 * target.h (struct target_ops) <to_get_section_table>: Use
9004 TARGET_DEFAULT_RETURN.
9005
9006 2014-02-19 Tom Tromey <tromey@redhat.com>
9007
9008 * target-delegates.c: Rebuild.
9009 * target.c (target_pid_to_str): Unconditionally delegate.
9010 (init_dummy_target): Don't initialize to_pid_to_str.
9011 (default_pid_to_str): Rename from dummy_pid_to_str.
9012 * target.h (struct target_ops) <to_pid_to_str>: Use
9013 TARGET_DEFAULT_FUNC.
9014
9015 2014-02-19 Tom Tromey <tromey@redhat.com>
9016
9017 * target-delegates.c: Rebuild.
9018 * target.c (target_find_new_threads): Unconditionally delegate.
9019 * target.h (struct target_ops) <to_find_new_threads>: Use
9020 TARGET_DEFAULT_RETURN.
9021
9022 2014-02-19 Tom Tromey <tromey@redhat.com>
9023
9024 * target-delegates.c: Rebuild.
9025 * target.c (target_program_signals): Unconditionally delegate.
9026 * target.h (struct target_ops) <to_program_signals>: Use
9027 TARGET_DEFAULT_IGNORE.
9028
9029 2014-02-19 Tom Tromey <tromey@redhat.com>
9030
9031 * target-delegates.c: Rebuild.
9032 * target.c (target_pass_signals): Unconditionally delegate.
9033 * target.h (struct target_ops) <to_pass_signals>: Use
9034 TARGET_DEFAULT_IGNORE.
9035
9036 2014-02-19 Tom Tromey <tromey@redhat.com>
9037
9038 * target-delegates.c: Rebuild.
9039 * target.c (default_mourn_inferior): New function.
9040 (target_mourn_inferior): Unconditionally delegate.
9041 * target.h (struct target_ops) <to_mourn_inferior>: Use
9042 TARGET_DEFAULT_FUNC.
9043
9044 2014-02-19 Tom Tromey <tromey@redhat.com>
9045
9046 * target-delegates.c: Rebuild.
9047 * target.c (default_follow_fork): New function.
9048 (target_follow_fork): Unconditionally delegate.
9049 * target.h (struct target_ops) <to_follow_fork>: Use
9050 TARGET_DEFAULT_FUNC.
9051
9052 2014-02-19 Tom Tromey <tromey@redhat.com>
9053
9054 * target-delegates.c: Rebuild.
9055 * target.c (target_kill): Unconditionally delegate.
9056 * target.h (struct target_ops) <to_kill>: Use
9057 TARGET_DEFAULT_NORETURN.
9058
9059 2014-02-19 Tom Tromey <tromey@redhat.com>
9060
9061 * target-delegates.c: Rebuild.
9062 * target.c (target_masked_watch_num_registers): Unconditionally
9063 delegate.
9064 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9065 Use TARGET_DEFAULT_RETURN.
9066
9067 2014-02-19 Tom Tromey <tromey@redhat.com>
9068
9069 * target-delegates.c: Rebuild.
9070 * target.c (target_remove_mask_watchpoint): Unconditionally
9071 delegate.
9072 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9073 TARGET_DEFAULT_RETURN.
9074
9075 2014-02-19 Tom Tromey <tromey@redhat.com>
9076
9077 * target-delegates.c: Rebuild.
9078 * target.c (target_insert_mask_watchpoint): Unconditionally
9079 delegate.
9080 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9081 TARGET_DEFAULT_RETURN.
9082
9083 2014-02-19 Tom Tromey <tromey@redhat.com>
9084
9085 * target-delegates.c: Rebuild.
9086 * target.c (target_ranged_break_num_registers): Unconditionally
9087 delegate.
9088 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9089 Use TARGET_DEFAULT_RETURN.
9090
9091 2014-02-19 Tom Tromey <tromey@redhat.com>
9092
9093 * target-delegates.c: Rebuild.
9094 * target.c (target_fetch_registers): Unconditionally delegate.
9095 * target.h (struct target_ops) <to_fetch_registers>: Use
9096 TARGET_DEFAULT_NORETURN.
9097
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9099
9100 * target-delegates.c: Rebuild.
9101 * target.c (update_current_target): Don't inherit or default
9102 to_stop.
9103 * target.h (struct target_ops) <to_stop>: Use
9104 TARGET_DEFAULT_IGNORE.
9105
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9107
9108 * target-delegates.c: Rebuild.
9109 * target.c (update_current_target): Don't inherit or default
9110 to_can_run_breakpoint_commands.
9111 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9112 Use TARGET_DEFAULT_RETURN.
9113
9114 2014-02-19 Tom Tromey <tromey@redhat.com>
9115
9116 * target-delegates.c: Rebuild.
9117 * target.c (update_current_target): Don't inherit or default
9118 to_supports_evaluation_of_breakpoint_conditions.
9119 * target.h (struct target_ops)
9120 <to_supports_evaluation_of_breakpoint_conditions>: Use
9121 TARGET_DEFAULT_RETURN.
9122
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9124
9125 * target-delegates.c: Rebuild.
9126 * target.c (update_current_target): Don't inherit or default
9127 to_augmented_libraries_svr4_read.
9128 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9129 Use TARGET_DEFAULT_RETURN.
9130
9131 2014-02-19 Tom Tromey <tromey@redhat.com>
9132
9133 * target-delegates.c: Rebuild.
9134 * target.c (update_current_target): Don't inherit or default
9135 to_can_use_agent.
9136 * target.h (struct target_ops) <to_can_use_agent>: Use
9137 TARGET_DEFAULT_RETURN.
9138
9139 2014-02-19 Tom Tromey <tromey@redhat.com>
9140
9141 * target-delegates.c: Rebuild.
9142 * target.c (update_current_target): Don't inherit or default
9143 to_use_agent.
9144 * target.h (struct target_ops) <to_use_agent>: Use
9145 TARGET_DEFAULT_NORETURN.
9146
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9148
9149 * target-delegates.c: Rebuild.
9150 * target.c (update_current_target): Don't inherit or default
9151 to_traceframe_info.
9152 (return_null): Remove.
9153 * target.h (struct target_ops) <to_traceframe_info>: Use
9154 TARGET_DEFAULT_RETURN.
9155
9156 2014-02-19 Tom Tromey <tromey@redhat.com>
9157
9158 * target-delegates.c: Rebuild.
9159 * target.c (update_current_target): Don't inherit or default
9160 to_static_tracepoint_markers_by_strid.
9161 * target.h (struct target_ops)
9162 <to_static_tracepoint_markers_by_strid>: Use
9163 TARGET_DEFAULT_NORETURN.
9164
9165 2014-02-19 Tom Tromey <tromey@redhat.com>
9166
9167 * target-delegates.c: Rebuild.
9168 * target.c (update_current_target): Don't inherit or default
9169 to_static_tracepoint_marker_at.
9170 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9171 Use TARGET_DEFAULT_RETURN.
9172
9173 2014-02-19 Tom Tromey <tromey@redhat.com>
9174
9175 * target-delegates.c: Rebuild.
9176 * target.c (update_current_target): Don't inherit or default
9177 to_set_permissions.
9178 * target.h (struct target_ops) <to_set_permissions>: Use
9179 TARGET_DEFAULT_IGNORE.
9180
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9182
9183 * target-delegates.c: Rebuild.
9184 * target.c (update_current_target): Don't inherit or default
9185 to_get_tib_address.
9186 * target.h (struct target_ops) <to_get_tib_address>: Use
9187 TARGET_DEFAULT_NORETURN.
9188
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9190
9191 * target-delegates.c: Rebuild.
9192 * target.c (update_current_target): Don't inherit or default
9193 to_set_trace_notes.
9194 * target.h (struct target_ops) <to_set_trace_notes>: Use
9195 TARGET_DEFAULT_RETURN.
9196
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9198
9199 * target-delegates.c: Rebuild.
9200 * target.c (update_current_target): Don't initialize
9201 to_set_trace_buffer_size.
9202 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9203 TARGET_DEFAULT_IGNORE.
9204
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9206
9207 * target-delegates.c: Rebuild.
9208 * target.c (update_current_target): Don't inherit or default
9209 to_set_circular_trace_buffer.
9210 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9211 TARGET_DEFAULT_IGNORE.
9212
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9214
9215 * target-delegates.c: Rebuild.
9216 * target.c (update_current_target): Don't inherit or default
9217 to_set_disconnected_tracing.
9218 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9219 TARGET_DEFAULT_IGNORE.
9220
9221 2014-02-19 Tom Tromey <tromey@redhat.com>
9222
9223 * target-delegates.c: Rebuild.
9224 * target.c (update_current_target): Don't inherit or default
9225 to_get_min_fast_tracepoint_insn_len.
9226 (return_minus_one): Remove.
9227 * target.h (struct target_ops)
9228 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9229
9230 2014-02-19 Tom Tromey <tromey@redhat.com>
9231
9232 * target-delegates.c: Rebuild.
9233 * target.c (update_current_target): Don't inherit or default
9234 to_get_raw_trace_data.
9235 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9236 TARGET_DEFAULT_NORETURN.
9237
9238 2014-02-19 Tom Tromey <tromey@redhat.com>
9239
9240 * target-delegates.c: Rebuild.
9241 * target.c (update_current_target): Don't inherit or default
9242 to_upload_trace_state_variables.
9243 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9244 Use TARGET_DEFAULT_RETURN.
9245
9246 2014-02-19 Tom Tromey <tromey@redhat.com>
9247
9248 * target-delegates.c: Rebuild.
9249 * target.c (update_current_target): Don't inherit or default
9250 to_upload_tracepoints.
9251 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9252 TARGET_DEFAULT_RETURN.
9253
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9255
9256 * target-delegates.c: Rebuild.
9257 * target.c (update_current_target): Don't inherit or default
9258 to_save_trace_data.
9259 * target.h (struct target_ops) <to_save_trace_data>: Use
9260 TARGET_DEFAULT_NORETURN.
9261
9262 2014-02-19 Tom Tromey <tromey@redhat.com>
9263
9264 * target-delegates.c: Rebuild.
9265 * target.c (update_current_target): Don't inherit or default
9266 to_get_trace_state_variable_value.
9267 * target.h (struct target_ops)
9268 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9269
9270 2014-02-19 Tom Tromey <tromey@redhat.com>
9271
9272 * target-delegates.c: Rebuild.
9273 * target.c (update_current_target): Don't inherit or default
9274 to_trace_find.
9275 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9276
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9278
9279 * target-delegates.c: Rebuild.
9280 * target.c (update_current_target): Don't inherit or default
9281 to_trace_stop.
9282 * target.h (struct target_ops) <to_trace_stop>: Use
9283 TARGET_DEFAULT_NORETURN.
9284
9285 2014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * target-delegates.c: Rebuild.
9288 * target.c (update_current_target): Don't inherit or default
9289 to_get_tracepoint_status.
9290 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9291 TARGET_DEFAULT_NORETURN.
9292
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9294
9295 * target-delegates.c: Rebuild.
9296 * target.c (update_current_target): Don't inherit or default
9297 to_get_trace_status.
9298 * target.h (struct target_ops) <to_get_trace_status>: Use
9299 TARGET_DEFAULT_RETURN.
9300
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9302
9303 * target-delegates.c: Rebuild.
9304 * target.c (update_current_target): Don't inherit or default
9305 to_trace_start.
9306 * target.h (struct target_ops) <to_trace_start>: Use
9307 TARGET_DEFAULT_NORETURN.
9308
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * target-delegates.c: Rebuild.
9312 * target.c (update_current_target): Don't inherit or default
9313 to_trace_set_readonly_regions.
9314 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9315 Use TARGET_DEFAULT_NORETURN.
9316
9317 2014-02-19 Tom Tromey <tromey@redhat.com>
9318
9319 * target-delegates.c: Rebuild.
9320 * target.c (update_current_target): Don't inherit or default
9321 to_disable_tracepoint.
9322 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9323 TARGET_DEFAULT_NORETURN.
9324
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target-delegates.c: Rebuild.
9328 * target.c (update_current_target): Don't inherit or default
9329 to_enable_tracepoint.
9330 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9331 TARGET_DEFAULT_NORETURN.
9332
9333 2014-02-19 Tom Tromey <tromey@redhat.com>
9334
9335 * target-delegates.c: Rebuild.
9336 * target.c (update_current_target): Don't inherit or default
9337 to_download_trace_state_variable.
9338 * target.h (struct target_ops) <to_download_trace_state_variable>:
9339 Use TARGET_DEFAULT_NORETURN.
9340
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9342
9343 * target-delegates.c: Rebuild.
9344 * target.c (update_current_target): Don't inherit or default
9345 to_can_download_tracepoint.
9346 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9347 TARGET_DEFAULT_RETURN.
9348
9349 2014-02-19 Tom Tromey <tromey@redhat.com>
9350
9351 * target-delegates.c: Rebuild.
9352 * target.c (update_current_target): Don't inherit or default
9353 to_download_tracepoint.
9354 * target.h (struct target_ops) <to_download_tracepoint>: Use
9355 TARGET_DEFAULT_NORETURN.
9356
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9358
9359 * target-delegates.c: Rebuild.
9360 * target.c (update_current_target): Don't inherit or default
9361 to_trace_init.
9362 * target.h (struct target_ops) <to_trace_init>: Use
9363 TARGET_DEFAULT_RETURN.
9364
9365 2014-02-19 Tom Tromey <tromey@redhat.com>
9366
9367 * target-delegates.c: Rebuild.
9368 * target.c (update_current_target): Don't inherit or default
9369 to_supports_string_tracing.
9370 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9371 TARGET_DEFAULT_RETURN.
9372
9373 2014-02-19 Tom Tromey <tromey@redhat.com>
9374
9375 * target-delegates.c: Rebuild.
9376 * target.c (update_current_target): Don't inherit or default
9377 to_supports_enable_disable_tracepoint.
9378 * target.h (struct target_ops)
9379 <to_supports_enable_disable_tracepoint>: Use
9380 TARGET_DEFAULT_RETURN.
9381
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * target-delegates.c: Rebuild.
9385 * target.c (update_current_target): Don't inherit or default
9386 to_supports_multi_process.
9387 * target.h (struct target_ops) <to_supports_multi_process>: Use
9388 TARGET_DEFAULT_RETURN.
9389
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9391
9392 * target-delegates.c: Rebuild.
9393 * target.c (update_current_target): Don't inherit or default
9394 to_get_ada_task_ptid.
9395 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9396 TARGET_DEFAULT_FUNC.
9397
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9399
9400 * target-delegates.c: Rebuild.
9401 * target.c (update_current_target): Don't inherit or default
9402 to_thread_architecture.
9403 * target.h (struct target_ops) <to_thread_architecture>: Use
9404 TARGET_DEFAULT_FUNC.
9405
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9407
9408 * target-delegates.c: Rebuild.
9409 * target.c (update_current_target): Don't inherit or default
9410 to_execution_direction.
9411 * target.h (struct target_ops) <to_execution_direction>: Use
9412 TARGET_DEFAULT_FUNC.
9413
9414 2014-02-19 Tom Tromey <tromey@redhat.com>
9415
9416 * target-delegates.c: Rebuild.
9417 * target.c (update_current_target): Don't inherit or default
9418 to_can_execute_reverse.
9419 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9420 TARGET_DEFAULT_RETURN.
9421 (target_can_execute_reverse): Unconditionally delegate.
9422
9423 2014-02-19 Tom Tromey <tromey@redhat.com>
9424
9425 * target-delegates.c: Rebuild.
9426 * target.c (update_current_target): Don't inherit or default
9427 to_goto_bookmark.
9428 (dummy_goto_bookmark): Remove.
9429 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9430 * target.h (struct target_ops) <to_goto_bookmark>: Use
9431 TARGET_DEFAULT_NORETURN.
9432
9433 2014-02-19 Tom Tromey <tromey@redhat.com>
9434
9435 * target-delegates.c: Rebuild.
9436 * target.c (update_current_target): Don't inherit or default
9437 to_get_bookmark.
9438 (dummy_get_bookmark): Remove.
9439 (init_dummy_target): Don't inherit or default to_get_bookmark.
9440 * target.h (struct target_ops) <to_get_bookmark>: Use
9441 TARGET_DEFAULT_NORETURN
9442
9443 2014-02-19 Tom Tromey <tromey@redhat.com>
9444
9445 * target-delegates.c: Rebuild.
9446 * target.c (update_current_target): Don't inherit or default
9447 to_make_corefile_notes.
9448 (init_dummy_target): Don't initialize to_make_corefile_notes.
9449 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9450 TARGET_DEFAULT_FUNC.
9451
9452 2014-02-19 Tom Tromey <tromey@redhat.com>
9453
9454 * target-delegates.c: Rebuild.
9455 * target.c (update_current_target): Don't inherit or default
9456 to_find_memory_regions.
9457 (init_dummy_target): Don't initialize to_find_memory_regions.
9458 * target.h (struct target_ops) <to_find_memory_regions>: Use
9459 TARGET_DEFAULT_FUNC.
9460
9461 2014-02-19 Tom Tromey <tromey@redhat.com>
9462
9463 * target-delegates.c: Rebuild.
9464 * target.c (update_current_target): Don't inherit or default
9465 to_log_command.
9466 * target.h (struct target_ops) <to_log_command>: Use
9467 TARGET_DEFAULT_IGNORE.
9468 (target_log_command): Unconditionally delegate.
9469
9470 2014-02-19 Tom Tromey <tromey@redhat.com>
9471
9472 * target-delegates.c: Rebuild.
9473 * target.c (update_current_target): Don't inherit or default
9474 to_pid_to_exec_file.
9475 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9476 TARGET_DEFAULT_RETURN.
9477
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9479
9480 * target-delegates.c: Rebuild.
9481 * target.c (update_current_target): Don't inherit or default
9482 to_thread_name.
9483 (target_thread_name): Unconditionally delegate.
9484 * target.h (struct target_ops) <to_thread_name>: Use
9485 TARGET_DEFAULT_RETURN.
9486
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9488
9489 * target-delegates.c: Rebuild.
9490 * target.c (update_current_target): Don't inherit or default
9491 to_extra_thread_info.
9492 * target.h (struct target_ops) <to_extra_thread_info>: Use
9493 TARGET_DEFAULT_RETURN.
9494
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9496
9497 * target-delegates.c: Rebuild.
9498 * target.c (update_current_target): Don't inherit or default
9499 to_has_exited.
9500 * target.h (struct target_ops) <to_has_exited>: Use
9501 TARGET_DEFAULT_RETURN..
9502
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9504
9505 * target-delegates.c: Rebuild.
9506 * target.c (update_current_target): Don't inherit or default
9507 to_set_syscall_catchpoint.
9508 (return_one): Remove.
9509 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9510 TARGET_DEFAULT_RETURN.
9511
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target-delegates.c: Rebuild.
9515 * target.c (update_current_target): Don't inherit or default
9516 to_insert_exec_catchpoint.
9517 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9518 TARGET_DEFAULT_RETURN.
9519
9520 2014-01-08 Tom Tromey <tromey@redhat.com>
9521
9522 * target-delegates.c: Rebuild.
9523 * target.c (update_current_target): Don't inherit or default
9524 to_insert_exec_catchpoint.
9525 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9526 TARGET_DEFAULT_RETURN.
9527
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9529
9530 * target-delegates.c: Rebuild.
9531 * target.c (update_current_target): Don't inherit or default
9532 to_remove_vfork_catchpoint.
9533 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9534 TARGET_DEFAULT_RETURN.
9535
9536 2014-02-19 Tom Tromey <tromey@redhat.com>
9537
9538 * target-delegates.c: Rebuild.
9539 * target.c (update_current_target): Don't inherit or default
9540 to_insert_vfork_catchpoint.
9541 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9542 TARGET_DEFAULT_RETURN.
9543
9544 2014-02-19 Tom Tromey <tromey@redhat.com>
9545
9546 * target-delegates.c: Rebuild.
9547 * target.c (update_current_target): Don't inherit or default
9548 to_remove_fork_catchpoint.
9549 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9550 TARGET_DEFAULT_RETURN.
9551
9552 2014-02-19 Tom Tromey <tromey@redhat.com>
9553
9554 * target-delegates.c: Rebuild.
9555 * target.c (update_current_target): Don't inherit or default
9556 to_insert_fork_catchpoint.
9557 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9558 TARGET_DEFAULT_RETURN.
9559
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9561
9562 * target-delegates.c: Rebuild.
9563 * target.c (update_current_target): Don't inherit or default
9564 to_post_startup_inferior.
9565 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9566 TARGET_DEFAULT_IGNORE.
9567
9568 2014-02-19 Tom Tromey <tromey@redhat.com>
9569
9570 * target-delegates.c: Rebuild.
9571 * target.c (update_current_target): Don't inherit or default
9572 to_load.
9573 * target.h (struct target_ops) <to_load>: Use
9574 TARGET_DEFAULT_NORETURN.
9575
9576 2014-02-19 Tom Tromey <tromey@redhat.com>
9577
9578 * target-delegates.c: Rebuild.
9579 * target.c (update_current_target): Don't inherit or default
9580 to_terminal_info.
9581 * target.h (struct target_ops) <to_terminal_info>: Use
9582 TARGET_DEFAULT_FUNC.
9583
9584 2014-02-19 Tom Tromey <tromey@redhat.com>
9585
9586 * target-delegates.c: Rebuild.
9587 * target.c (update_current_target): Don't inherit or default
9588 to_terminal_save_ours.
9589 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9590 TARGET_DEFAULT_IGNORE.
9591
9592 2014-02-19 Tom Tromey <tromey@redhat.com>
9593
9594 * target-delegates.c: Rebuild.
9595 * target.c (update_current_target): Don't inherit or default
9596 to_terminal_ours.
9597 * target.h (struct target_ops) <to_terminal_ours>: Use
9598 TARGET_DEFAULT_IGNORE.
9599
9600 2014-02-19 Tom Tromey <tromey@redhat.com>
9601
9602 * target-delegates.c: Rebuild.
9603 * target.c (update_current_target): Don't inherit or default
9604 to_terminal_ours_for_output.
9605 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9606 TARGET_DEFAULT_IGNORE.
9607
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9609
9610 * target-delegates.c: Rebuild.
9611 * target.c (update_current_target): Don't inherit or default
9612 to_terminal_inferior.
9613 * target.h (struct target_ops) <to_terminal_inferior>: Use
9614 TARGET_DEFAULT_IGNORE.
9615
9616 2014-02-19 Tom Tromey <tromey@redhat.com>
9617
9618 * target-delegates.c: Rebuild.
9619 * target.c (update_current_target): Don't inherit or default
9620 to_terminal_init.
9621 * target.h (struct target_ops) <to_terminal_init>: Use
9622 TARGET_DEFAULT_IGNORE.
9623
9624 2014-02-19 Tom Tromey <tromey@redhat.com>
9625
9626 * target-delegates.c: Rebuild.
9627 * target.c (update_current_target): Don't inherit or default
9628 to_can_accel_watchpoint_condition.
9629 * target.h (struct target_ops)
9630 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9631
9632 2014-02-19 Tom Tromey <tromey@redhat.com>
9633
9634 * target-delegates.c: Rebuild.
9635 * target.c (update_current_target): Don't inherit or default
9636 to_region_ok_for_hw_watchpoint.
9637 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9638 Use TARGET_DEFAULT_FUNC.
9639
9640 2014-02-19 Tom Tromey <tromey@redhat.com>
9641
9642 * target-delegates.c: Rebuild.
9643 * target.c (update_current_target): Don't inherit or default
9644 to_watchpoint_addr_within_range.
9645 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9646 Use TARGET_DEFAULT_FUNC.
9647
9648 2014-02-19 Tom Tromey <tromey@redhat.com>
9649
9650 * target-delegates.c: Rebuild.
9651 * target.c (update_current_target): Don't inherit or default
9652 to_remove_watchpoint.
9653 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9654 TARGET_DEFAULT_NORETURN.
9655
9656 2014-02-19 Tom Tromey <tromey@redhat.com>
9657
9658 * target-delegates.c: Rebuild.
9659 * target.c (update_current_target): Don't inherit or default
9660 to_insert_watchpoint.
9661 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9662 TARGET_DEFAULT_RETURN.
9663
9664 2014-02-19 Tom Tromey <tromey@redhat.com>
9665
9666 * target-delegates.c: Rebuild.
9667 * target.c (update_current_target): Don't inherit or default
9668 to_remove_hw_breakpoint.
9669 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9670 TARGET_DEFAULT_RETURN.
9671
9672 2014-02-19 Tom Tromey <tromey@redhat.com>
9673
9674 * target-delegates.c: Rebuild.
9675 * target.c (update_current_target): Don't inherit or default
9676 to_insert_hw_breakpoint.
9677 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9678 TARGET_DEFAULT_RETURN.
9679
9680 2014-02-19 Tom Tromey <tromey@redhat.com>
9681
9682 * target-delegates.c: Rebuild.
9683 * target.c (update_current_target): Don't inherit or default
9684 to_can_use_hw_breakpoint.
9685 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9686 TARGET_DEFAULT_RETURN.
9687
9688 2014-02-19 Tom Tromey <tromey@redhat.com>
9689
9690 * target-delegates.c: Rebuild.
9691 * target.c (update_current_target): Don't inherit or default
9692 to_files_info.
9693 * target.h (struct target_ops) <to_files_info>: Use
9694 TARGET_DEFAULT_IGNORE.
9695
9696 2014-02-19 Tom Tromey <tromey@redhat.com>
9697
9698 * target-delegates.c: Rebuild.
9699 * target.c (update_current_target): Don't inherit or default
9700 to_store.
9701 * target.h (struct target_ops) <to_store>: Use
9702 TARGET_DEFAULT_NORETURN.
9703
9704 2014-02-19 Tom Tromey <tromey@redhat.com>
9705
9706 * target-delegates.c: Rebuild.
9707 * target.c (update_current_target): Don't inherit or default
9708 to_post_attach.
9709 * target.h (struct target_ops) <to_post_attach>: Use
9710 TARGET_DEFAULT_IGNORE.
9711
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9713
9714 * target-delegates.c: Rebuild.
9715 * target.c (update_current_target): Don't inherit or default
9716 to_rcmd.
9717 (default_rcmd): New function.
9718 (do_monitor_command): Unconditionally delegate.
9719 * target.h (struct target_ops) <to_rmcd>: Use
9720 TARGET_DEFAULT_FUNC.
9721
9722 2014-02-19 Tom Tromey <tromey@redhat.com>
9723
9724 * target-delegates.c: Rebuild.
9725 * target.c (init_dummy_target): Don't initialize to_attach.
9726 (target_attach): Unconditionally delegate.
9727 * target.h (struct target_ops) <to_attach>: Use
9728 TARGET_DEFAULT_FUNC.
9729
9730 2014-02-19 Tom Tromey <tromey@redhat.com>
9731
9732 * target-delegates.c: Rebuild.
9733 * target.c (target_detach): Unconditionally delegate.
9734 (init_dummy_target): Don't initialize to_detach.
9735 * target.h (struct target_ops) <to_detach>: Use
9736 TARGET_DEFAULT_IGNORE.
9737
9738 2014-02-19 Tom Tromey <tromey@redhat.com>
9739
9740 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9741 Add argument.
9742 (target_augmented_libraries_svr4_read): Add argument.
9743 * target.c (update_current_target): Update.
9744 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9745 argument.
9746
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9748
9749 * target.h (struct target_ops) <to_call_history_range>: Add
9750 argument.
9751 * target.c (target_call_history_range): Add argument.
9752 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9753 argument.
9754 (record_btrace_call_history_from): Update.
9755
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9757
9758 * target.h (struct target_ops) <to_call_history_from>: Add
9759 argument.
9760 * target.c (target_call_history_from): Add argument.
9761 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9762 argument.
9763
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9765
9766 * target.h (struct target_ops) <to_call_history>: Add argument.
9767 * target.c (target_call_history): Add argument.
9768 * record-btrace.c (record_btrace_call_history): Add 'self'
9769 argument.
9770
9771 2014-02-19 Tom Tromey <tromey@redhat.com>
9772
9773 * target.h (struct target_ops) <to_insn_history_range>: Add
9774 argument.
9775 * target.c (target_insn_history_range): Add argument.
9776 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9777 argument.
9778 (record_btrace_insn_history_from): Update.
9779
9780 2014-02-19 Tom Tromey <tromey@redhat.com>
9781
9782 * target.h (struct target_ops) <to_insn_history_from>: Add
9783 argument.
9784 * target.c (target_insn_history_from): Add argument.
9785 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9786 argument.
9787
9788 2014-02-19 Tom Tromey <tromey@redhat.com>
9789
9790 * target.h (struct target_ops) <to_insn_history>: Add argument.
9791 * target.c (target_insn_history): Add argument.
9792 * record-btrace.c (record_btrace_insn_history): Add 'self'
9793 argument.
9794
9795 2014-02-19 Tom Tromey <tromey@redhat.com>
9796
9797 * target.h (struct target_ops) <to_goto_record>: Add argument.
9798 * target.c (target_goto_record): Add argument.
9799 * record-full.c (record_full_goto): Add 'self' argument.
9800 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9801
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9803
9804 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9805 * target.c (target_goto_record_end): Add argument.
9806 * record-full.c (record_full_goto_end): Add 'self' argument.
9807 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9808
9809 2014-02-19 Tom Tromey <tromey@redhat.com>
9810
9811 * target.h (struct target_ops) <to_goto_record_begin>: Add
9812 argument.
9813 * target.c (target_goto_record_begin): Add argument.
9814 * record-full.c (record_full_goto_begin): Add 'self' argument.
9815 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9816 argument.
9817
9818 2014-02-19 Tom Tromey <tromey@redhat.com>
9819
9820 * target.h (struct target_ops) <to_record_is_replaying>: Add
9821 argument.
9822 * target.c (target_record_is_replaying): Add argument.
9823 * record-full.c (record_full_is_replaying): Add 'self' argument.
9824 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9825 argument.
9826 (record_btrace_xfer_partial, record_btrace_store_registers)
9827 (record_btrace_prepare_to_store, record_btrace_resume)
9828 (record_btrace_wait, record_btrace_decr_pc_after_break)
9829 (record_btrace_find_new_threads, record_btrace_thread_alive):
9830 Update.
9831
9832 2014-02-19 Tom Tromey <tromey@redhat.com>
9833
9834 * target.h (struct target_ops) <to_delete_record>: Add argument.
9835 * target.c (target_delete_record): Add argument.
9836 * record-full.c (record_full_delete): Add 'self' argument.
9837
9838 2014-02-19 Tom Tromey <tromey@redhat.com>
9839
9840 * target.h (struct target_ops) <to_save_record>: Add argument.
9841 * target.c (target_save_record): Add argument.
9842 * record-full.c (record_full_save): Add 'self' argument.
9843 (record_full_save): Add 'self' argument.
9844
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9846
9847 * target.h (struct target_ops) <to_info_record>: Add argument.
9848 * target.c (target_info_record): Add argument.
9849 * record.c (info_record_command): Add argument.
9850 * record-full.c (record_full_info): Add 'self' argument.
9851 * record-btrace.c (record_btrace_info): Add 'self' argument.
9852
9853 2014-02-19 Tom Tromey <tromey@redhat.com>
9854
9855 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9856 * target.c (target_stop_recording): Add argument.
9857 * record.c (record_stop): Add argument.
9858 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9859 argument.
9860
9861 2014-02-19 Tom Tromey <tromey@redhat.com>
9862
9863 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9864 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9865 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9866 argument.
9867 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9868 (_initialize_amd64_linux_nat): Use it.
9869 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9870 (_initialize_i386_linux_nat): Use it.
9871
9872 2014-02-19 Tom Tromey <tromey@redhat.com>
9873
9874 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9875 * target.c (target_teardown_btrace): Add argument.
9876 * remote.c (remote_teardown_btrace): Add 'self' argument.
9877 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9878 argument.
9879 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9880 argument.
9881
9882 2014-02-19 Tom Tromey <tromey@redhat.com>
9883
9884 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9885 * target.c (target_disable_btrace): Add argument.
9886 * remote.c (remote_disable_btrace): Add 'self' argument.
9887 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9888 argument.
9889 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9890 argument.
9891
9892 2014-02-19 Tom Tromey <tromey@redhat.com>
9893
9894 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9895 * target.c (target_enable_btrace): Add argument.
9896 * remote.c (remote_enable_btrace): Add 'self' argument.
9897 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9898 argument.
9899 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9900 argument.
9901
9902 2014-02-19 Tom Tromey <tromey@redhat.com>
9903
9904 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9905 (target_can_use_agent): Add argument.
9906 * target.c (update_current_target): Update.
9907 * remote.c (remote_can_use_agent): Add 'self' argument.
9908 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9909
9910 2014-02-19 Tom Tromey <tromey@redhat.com>
9911
9912 * target.h (struct target_ops) <to_use_agent>: Add argument.
9913 (target_use_agent): Add argument.
9914 * target.c (update_current_target): Update.
9915 * remote.c (remote_use_agent): Add 'self' argument.
9916 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9917
9918 2014-02-19 Tom Tromey <tromey@redhat.com>
9919
9920 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9921 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9922 (target_traceframe_info): Add argument.
9923 * target.c (update_current_target): Update.
9924 * remote.c (remote_traceframe_info): Add 'self' argument.
9925 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9926
9927 2014-02-19 Tom Tromey <tromey@redhat.com>
9928
9929 * target.h (target_static_tracepoint_markers_by_strid): Add
9930 argument.
9931 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9932 'self' argument.
9933 * target.c (update_current_target): Update.
9934 * remote.c (struct target_ops)
9935 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9936 * linux-nat.c (struct target_ops)
9937 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9938
9939 2014-02-19 Tom Tromey <tromey@redhat.com>
9940
9941 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9942 Add argument.
9943 (target_static_tracepoint_marker_at): Add argument.
9944 * target.c (update_current_target): Update.
9945 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9946 argument.
9947
9948 2014-02-19 Tom Tromey <tromey@redhat.com>
9949
9950 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9951 (target_set_permissions): Add argument.
9952 * target.c (update_current_target): Update.
9953 * remote.c (remote_set_permissions): Add 'self' argument.
9954 (remote_start_remote): Update.
9955
9956 2014-02-19 Tom Tromey <tromey@redhat.com>
9957
9958 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9959 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9960 (target_get_tib_address): Add argument.
9961 * target.c (update_current_target): Update.
9962 * remote.c (remote_get_tib_address): Add 'self' argument.
9963
9964 2014-02-19 Tom Tromey <tromey@redhat.com>
9965
9966 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9967 (target_set_trace_notes): Add argument.
9968 * target.c (update_current_target): Update.
9969 * remote.c (remote_set_trace_notes): Add 'self' argument.
9970
9971 2014-02-19 Tom Tromey <tromey@redhat.com>
9972
9973 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9974 argument.
9975 (target_set_trace_buffer_size): Add argument.
9976 * target.c (update_current_target): Update.
9977 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9978
9979 2014-02-19 Tom Tromey <tromey@redhat.com>
9980
9981 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9982 argument.
9983 (target_set_circular_trace_buffer): Add argument.
9984 * target.c (update_current_target): Update.
9985 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9986 argument.
9987
9988 2014-02-19 Tom Tromey <tromey@redhat.com>
9989
9990 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9991 argument.
9992 (target_set_disconnected_tracing): Add argument.
9993 * target.c (update_current_target): Update.
9994 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9995
9996 2014-02-19 Tom Tromey <tromey@redhat.com>
9997
9998 * target.h (struct target_ops)
9999 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10000 (target_get_min_fast_tracepoint_insn_len): Add argument.
10001 * target.c (update_current_target): Update.
10002 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10003 argument.
10004
10005 2014-02-19 Tom Tromey <tromey@redhat.com>
10006
10007 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10008 argument.
10009 (target_get_raw_trace_data): Add argument.
10010 * target.c (update_current_target): Update.
10011 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10012
10013 2014-02-19 Tom Tromey <tromey@redhat.com>
10014
10015 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10016 Add argument.
10017 (target_upload_trace_state_variables): Add argument.
10018 * target.c (update_current_target): Update.
10019 * remote.c (remote_upload_trace_state_variables): Add 'self'
10020 argument.
10021 (remote_start_remote): Update.
10022
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10024
10025 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10026 argument.
10027 (target_upload_tracepoints): Add argument.
10028 * target.c (update_current_target): Update.
10029 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10030 (remote_start_remote): Update.
10031
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10035 (target_save_trace_data): Add argument.
10036 * target.c (update_current_target): Update.
10037 * remote.c (remote_save_trace_data): Add 'self' argument.
10038
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10040
10041 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10042 argument.
10043 * target.h (struct target_ops)
10044 <to_get_trace_state_variable_value>: Add argument.
10045 (target_get_trace_state_variable_value): Add argument.
10046 * target.c (update_current_target): Update.
10047 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10048 argument.
10049 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10050
10051 2014-02-19 Tom Tromey <tromey@redhat.com>
10052
10053 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10054 * target.h (struct target_ops) <to_trace_find>: Add argument.
10055 (target_trace_find): Add argument.
10056 * target.c (update_current_target): Update.
10057 * remote.c (remote_trace_find): Add 'self' argument.
10058 * ctf.c (ctf_trace_find): Add 'self' argument.
10059
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10061
10062 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10063 (target_trace_stop): Add argument.
10064 * target.c (update_current_target): Update.
10065 * remote.c (remote_trace_stop): Add 'self' argument.
10066
10067 2014-02-19 Tom Tromey <tromey@redhat.com>
10068
10069 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10070 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10071 argument.
10072 (target_get_tracepoint_status): Add argument.
10073 * target.c (update_current_target): Update.
10074 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10075
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10077
10078 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10079 * target.h (struct target_ops) <to_get_trace_status>: Add
10080 argument.
10081 (target_get_trace_status): Add argument.
10082 * target.c (update_current_target): Update.
10083 * remote.c (remote_get_trace_status): Add 'self' argument.
10084 (remote_start_remote, remote_can_download_tracepoint): Update.
10085 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10086
10087 2014-02-19 Tom Tromey <tromey@redhat.com>
10088
10089 * target.h (struct target_ops) <to_trace_start>: Add argument.
10090 (target_trace_start): Add argument.
10091 * target.c (update_current_target): Update.
10092 * remote.c (remote_trace_start): Add 'self' argument.
10093
10094 2014-02-19 Tom Tromey <tromey@redhat.com>
10095
10096 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10097 Add argument.
10098 (target_trace_set_readonly_regions): Add argument.
10099 * target.c (update_current_target): Update.
10100 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10101 argument.
10102
10103 2014-02-19 Tom Tromey <tromey@redhat.com>
10104
10105 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10106 argument.
10107 (target_disable_tracepoint): Add argument.
10108 * target.c (update_current_target): Update.
10109 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10110
10111 2014-02-19 Tom Tromey <tromey@redhat.com>
10112
10113 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10114 argument.
10115 (target_enable_tracepoint): Add argument.
10116 * target.c (update_current_target): Update.
10117 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10118
10119 2014-02-19 Tom Tromey <tromey@redhat.com>
10120
10121 * target.h (struct target_ops) <to_download_trace_state_variable>:
10122 Add argument.
10123 (target_download_trace_state_variable): Add argument.
10124 * target.c (update_current_target): Update.
10125 * remote.c (remote_download_trace_state_variable): Add 'self'
10126 argument.
10127
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10129
10130 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10131 argument.
10132 (target_can_download_tracepoint): Add argument.
10133 * target.c (update_current_target): Update.
10134 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10135
10136 2014-02-19 Tom Tromey <tromey@redhat.com>
10137
10138 * target.h (struct target_ops) <to_download_tracepoint>: Add
10139 argument.
10140 (target_download_tracepoint): Add argument.
10141 * target.c (update_current_target): Update.
10142 * remote.c (remote_download_tracepoint): Add 'self' argument.
10143
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10145
10146 * target.h (struct target_ops) <to_trace_init>: Add argument.
10147 (target_trace_init): Add argument.
10148 * target.c (update_current_target): Update.
10149 * remote.c (remote_trace_init): Add 'self' argument.
10150
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10152
10153 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10154 * target.c (target_fileio_readlink): Add argument.
10155 * remote.c (remote_hostio_readlink): Add 'self' argument.
10156 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10157
10158 2014-02-19 Tom Tromey <tromey@redhat.com>
10159
10160 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10161 * target.c (target_fileio_unlink): Add argument.
10162 * remote.c (remote_hostio_unlink): Add 'self' argument.
10163 (remote_file_delete): Update.
10164 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10165
10166 2014-02-19 Tom Tromey <tromey@redhat.com>
10167
10168 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10169 * target.c (target_fileio_close): Add argument.
10170 * remote.c (remote_hostio_close): Add 'self' argument.
10171 (remote_hostio_close_cleanup): Update.
10172 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10173 Update.
10174 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10175
10176 2014-02-19 Tom Tromey <tromey@redhat.com>
10177
10178 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10179 * target.c (target_fileio_pread): Add argument.
10180 * remote.c (remote_hostio_pread): Add 'self' argument.
10181 (remote_bfd_iovec_pread, remote_file_get): Update.
10182 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10183
10184 2014-02-19 Tom Tromey <tromey@redhat.com>
10185
10186 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10187 * target.c (target_fileio_pwrite): Add argument.
10188 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10189 (remote_file_put): Update.
10190 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10191
10192 2014-02-19 Tom Tromey <tromey@redhat.com>
10193
10194 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10195 * target.c (target_fileio_open): Add argument.
10196 * remote.c (remote_hostio_open): Add 'self' argument.
10197 (remote_bfd_iovec_open): Add 'self' argument.
10198 (remote_file_put): Add 'self' argument.
10199 (remote_file_get): Add 'self' argument.
10200 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10201
10202 2014-02-19 Tom Tromey <tromey@redhat.com>
10203
10204 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10205 Add argument.
10206 (target_can_run_breakpoint_commands): Add argument.
10207 * target.c (update_current_target): Update.
10208 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10209 argument.
10210 (remote_insert_breakpoint): Add 'self' argument.
10211 (remote_insert_hw_breakpoint): Add 'self' argument.
10212 (remote_can_run_breakpoint_commands): Add 'self' argument.
10213
10214 2014-02-19 Tom Tromey <tromey@redhat.com>
10215
10216 * target.h (struct target_ops)
10217 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10218 (target_supports_evaluation_of_breakpoint_conditions): Add
10219 argument.
10220 * target.c (update_current_target): Update.
10221 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10222 argument.
10223 (remote_insert_breakpoint): Add 'self' argument.
10224 (remote_insert_hw_breakpoint): Add 'self' argument.
10225 (remote_supports_cond_breakpoints): Add 'self' argument.
10226
10227 2014-02-19 Tom Tromey <tromey@redhat.com>
10228
10229 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10230 argument.
10231 (target_supports_string_tracing): Add argument.
10232 * target.c (update_current_target): Update.
10233 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10234
10235 2014-02-19 Tom Tromey <tromey@redhat.com>
10236
10237 * target.h (struct target_ops)
10238 <to_supports_disable_randomization>: Add argument.
10239 * target.c (find_default_supports_disable_randomization): Add
10240 argument.
10241 (target_supports_disable_randomization): Add argument.
10242 (find_default_supports_disable_randomization): Add 'self'
10243 argument.
10244 * remote.c (extended_remote_supports_disable_randomization): Add
10245 'self' argument.
10246 (remote_supports_disable_randomization): Add 'self' argument.
10247 (extended_remote_create_inferior): Update.
10248 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10249 'self' argument.
10250
10251 2014-02-19 Tom Tromey <tromey@redhat.com>
10252
10253 * target.h (struct target_ops)
10254 <to_supports_enable_disable_tracepoint>: Add argument.
10255 (target_supports_enable_disable_tracepoint): Add argument.
10256 * target.c (update_current_target): Update.
10257 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10258 argument.
10259
10260 2014-02-19 Tom Tromey <tromey@redhat.com>
10261
10262 * target.h (struct target_ops) <to_supports_multi_process>: Add
10263 argument.
10264 (target_supports_multi_process): Add argument.
10265 * target.c (update_current_target): Update.
10266 * remote.c (remote_supports_multi_process): Add 'self' argument.
10267 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10268 argument.
10269 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10270 argument.
10271
10272 2014-02-19 Tom Tromey <tromey@redhat.com>
10273
10274 * target.h (struct target_ops) <to_execution_direction>: Add
10275 argument.
10276 (target_execution_direction): Add argument.
10277 * target.c (default_execution_direction): Add 'self' argument.
10278 * record-full.c (record_full_execution_direction): Add 'self'
10279 argument.
10280
10281 2014-02-19 Tom Tromey <tromey@redhat.com>
10282
10283 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10284 argument.
10285 (target_can_execute_reverse): Add argument.
10286 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10287 * record-full.c (record_full_can_execute_reverse): Add 'self'
10288 argument.
10289 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10290 argument.
10291
10292 2014-02-19 Tom Tromey <tromey@redhat.com>
10293
10294 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10295 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10296 argument.
10297 (target_get_ada_task_ptid): Add argument.
10298 * target.c (update_current_target): Update.
10299 (default_get_ada_task_ptid): Add 'self' argument.
10300 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10301 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10302 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10303 argument.
10304 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10305 argument.
10306 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10307 argument.
10308 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10309 argument.
10310 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10311 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10312 argument.
10313
10314 2014-02-19 Tom Tromey <tromey@redhat.com>
10315
10316 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10317 (target_goto_bookmark): Add argument.
10318 * target.c (dummy_goto_bookmark): Add 'self' argument.
10319 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10320
10321 2014-02-19 Tom Tromey <tromey@redhat.com>
10322
10323 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10324 (target_get_bookmark): Add argument.
10325 * target.c (dummy_get_bookmark): Add 'self' argument.
10326 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10327
10328 2014-02-19 Tom Tromey <tromey@redhat.com>
10329
10330 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10331 argument.
10332 (target_make_corefile_notes): Add argument.
10333 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10334 * procfs.c (procfs_make_note_section): Add 'self' argument.
10335 (procfs_make_note_section): Add 'self' argument.
10336 (procfs_make_note_section): Add 'self' argument.
10337 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10338 argument.
10339 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10340 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10341 * exec.c (exec_make_note_section): Add 'self' argument.
10342 (exec_make_note_section): Add 'self' argument.
10343
10344 2014-02-19 Tom Tromey <tromey@redhat.com>
10345
10346 * target.h (struct target_ops) <to_find_memory_regions>: Add
10347 argument.
10348 (target_find_memory_regions): Add argument.
10349 * target.c (dummy_find_memory_regions): Add 'self' argument.
10350 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10351 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10352 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10353 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10354 * exec. (exec_do_find_memory_regions): New global.
10355 (exec_set_find_memory_regions): Rewrite.
10356 (exec_find_memory_regions): New function.
10357 (init_exec_ops): Use exec_find_memory_regions.
10358
10359 2014-02-19 Tom Tromey <tromey@redhat.com>
10360
10361 * target.h (struct target_ops) <to_supports_non_stop>: Add
10362 argument.
10363 * target.c (find_default_supports_non_stop): Add argument.
10364 (target_supports_non_stop): Add argument.
10365 (find_default_supports_non_stop): Add 'self' argument.
10366 * remote.c (remote_supports_non_stop): Add 'self' argument.
10367 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10368
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10370
10371 * target.h (struct target_ops) <to_log_command>: Add argument.
10372 (target_log_command): Add argument.
10373 * serial.h (serial_log_command): Add 'self' argument.
10374 * serial.c (serial_log_command): Add 'self' argument.
10375
10376 2014-02-19 Tom Tromey <tromey@redhat.com>
10377
10378 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10379 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10380 argument.
10381 (target_pid_to_exec_file): Add argument.
10382 * target.c (debug_to_pid_to_exec_file): Add argument.
10383 (update_current_target): Update.
10384 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10385 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10386 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10387 (linux_handle_extended_wait): Update.
10388 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10389 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10390 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10391 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10392
10393 2014-02-19 Tom Tromey <tromey@redhat.com>
10394
10395 * target.h (struct target_ops) <to_rcmd>: Add argument.
10396 (target_rcmd): Add argument.
10397 * target.c (debug_to_rcmd): Add argument.
10398 (update_current_target, do_monitor_command): Update.
10399 * remote.c (remote_rcmd): Add 'self' argument.
10400 * monitor.c (monitor_rcmd): Add 'self' argument.
10401
10402 2014-02-19 Tom Tromey <tromey@redhat.com>
10403
10404 * windows-nat.c (windows_stop): Add 'self' argument.
10405 * target.h (struct target_ops) <to_stop>: Add argument.
10406 * target.c (target_stop): Add argument.
10407 (debug_to_stop): Add argument.
10408 (update_current_target): Update.
10409 * remote.c (remote_stop): Add 'self' argument.
10410 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10411 (gdbsim_cntrl_c): Update.
10412 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10413 * procfs.c (procfs_stop): Add 'self' argument.
10414 * nto-procfs.c (procfs_stop): Add 'self' argument.
10415 * monitor.c (monitor_stop): Add 'self' argument.
10416 (monitor_open): Update.
10417 * linux-nat.c (linux_nat_stop): Add argument.
10418 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10419 * gnu-nat.c (gnu_stop): Add 'self' argument.
10420 * darwin-nat.c (darwin_stop): Add 'self' argument.
10421
10422 2014-02-19 Tom Tromey <tromey@redhat.com>
10423
10424 * target.h (struct target_ops) <to_thread_name>: Add argument.
10425 * target.c (target_thread_name): Add argument.
10426 (update_current_target): Update.
10427 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10428
10429 2014-02-19 Tom Tromey <tromey@redhat.com>
10430
10431 * target.h (struct target_ops) <to_extra_thread_info>: Add
10432 argument.
10433 (target_extra_thread_info): Add argument.
10434 * target.c (update_current_target): Update.
10435 * remote.c (remote_threads_extra_info): Add 'self' argument.
10436 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10437 argument.
10438 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10439 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10440 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10441 argument.
10442 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10443 argument.
10444 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10445 argument.
10446 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10447 argument.
10448
10449 2014-02-19 Tom Tromey <tromey@redhat.com>
10450
10451 * target.h (struct target_ops) <to_program_signals>: Add argument.
10452 * target.c (target_program_signals): Add argument.
10453 * remote.c (remote_program_signals): Add 'self' argument.
10454
10455 2014-02-19 Tom Tromey <tromey@redhat.com>
10456
10457 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10458 * target.c (target_pass_signals): Add argument.
10459 * remote.c (remote_pass_signals): Add 'self' argument.
10460 (remote_start_remote): Update.
10461 * procfs.c (procfs_pass_signals): Add 'self' argument.
10462 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10463 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10464 (linux_nat_create_inferior, linux_nat_attach): Update.
10465
10466 2014-02-19 Tom Tromey <tromey@redhat.com>
10467
10468 * windows-nat.c (windows_can_run): Add 'self' argument.
10469 * target.h (struct target_ops) <to_can_run>: Add argument.
10470 (target_can_run): Add argument.
10471 * target.c (debug_to_can_run): Add argument.
10472 (update_current_target): Update.
10473 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10474 * inf-child.c (inf_child_can_run): Add 'self' argument.
10475 * go32-nat.c (go32_can_run): Add 'self' argument.
10476
10477 2014-02-19 Tom Tromey <tromey@redhat.com>
10478
10479 * target.h (struct target_ops) <to_has_exited>: Add argument.
10480 (target_has_exited): Add argument.
10481 * target.c (debug_to_has_exited): Add argument.
10482 (update_current_target): Update.
10483
10484 2014-02-19 Tom Tromey <tromey@redhat.com>
10485
10486 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10487 argument.
10488 (target_set_syscall_catchpoint): Add argument.
10489 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10490 argument.
10491 * target.c (update_current_target): Update.
10492
10493 2014-02-19 Tom Tromey <tromey@redhat.com>
10494
10495 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10496 argument.
10497 (target_remove_exec_catchpoint): Add argument.
10498 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10499 (update_current_target): Update.
10500 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10501 argument.
10502
10503 2014-02-19 Tom Tromey <tromey@redhat.com>
10504
10505 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10506 argument.
10507 (target_insert_exec_catchpoint): Add argument.
10508 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10509 (update_current_target): Update.
10510 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10511 argument.
10512
10513 2014-02-19 Tom Tromey <tromey@redhat.com>
10514
10515 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10516 argument.
10517 (target_remove_vfork_catchpoint): Add argument.
10518 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10519 (update_current_target): Update.
10520 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10521 argument.
10522
10523 2014-02-19 Tom Tromey <tromey@redhat.com>
10524
10525 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10526 argument.
10527 (target_insert_vfork_catchpoint): Add argument.
10528 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10529 (update_current_target): Update.
10530 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10531 argument.
10532
10533 2014-02-19 Tom Tromey <tromey@redhat.com>
10534
10535 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10536 argument.
10537 (target_remove_fork_catchpoint): Add argument.
10538 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10539 (update_current_target): Update.
10540 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10541 argument.
10542
10543 2014-02-19 Tom Tromey <tromey@redhat.com>
10544
10545 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10546 argument.
10547 (target_insert_fork_catchpoint): Add argument.
10548 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10549 (update_current_target): Update.
10550 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10551 argument.
10552
10553 2014-02-19 Tom Tromey <tromey@redhat.com>
10554
10555 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10556 argument.
10557 (target_post_startup_inferior): Add argument.
10558 * target.c (debug_to_post_startup_inferior): Add argument.
10559 (update_current_target): Update.
10560 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10561 argument.
10562 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10563 argument.
10564 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10565 argument.
10566 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10567 argument.
10568 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10569 'self' argument.
10570 (super_post_startup_inferior): Likewise.
10571 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10572 'self' argument.
10573 (super_post_startup_inferior): Likewise.
10574 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10575 Add 'self' argument.
10576 (super_post_startup_inferior): Likewise.
10577
10578 2014-02-19 Tom Tromey <tromey@redhat.com>
10579
10580 * target.h (struct target_ops) <to_load>: Add argument.
10581 * target.c (target_load): Add argument.
10582 (debug_to_load): Add argument.
10583 (update_current_target): Update.
10584 * remote.c (remote_load): Add 'self' argument.
10585 * remote-sim.c (gdbsim_load): Add 'self' argument.
10586 * remote-mips.c (mips_load): Add 'self' argument.
10587 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10588 * monitor.c (monitor_load): Add 'self' argument.
10589 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10590
10591 2014-02-19 Tom Tromey <tromey@redhat.com>
10592
10593 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10594 (target_terminal_info): Add argument.
10595 * target.c (debug_to_terminal_info): Add argument.
10596 (default_terminal_info): Likewise.
10597 * inflow.c (child_terminal_info): Add 'self' argument.
10598 * inferior.h (child_terminal_info): Add 'self' argument.
10599 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10600
10601 2014-02-19 Tom Tromey <tromey@redhat.com>
10602
10603 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10604 argument.
10605 (target_terminal_save_ours): Add argument.
10606 * target.c (debug_to_terminal_save_ours): Add argument.
10607 (update_current_target): Update.
10608 * inflow.c (terminal_save_ours): Add 'self' argument.
10609 * inferior.h (terminal_save_ours): Add 'self' argument.
10610
10611 2014-02-19 Tom Tromey <tromey@redhat.com>
10612
10613 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10614 (target_terminal_ours): Add argument.
10615 * target.c (debug_to_terminal_ours): Add argument.
10616 (update_current_target): Update.
10617 * remote.c (remote_terminal_ours): Add 'self' argument.
10618 (remote_close): Update.
10619 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10620 * inflow.c (terminal_ours): Add 'self' argument.
10621 * inferior.h (terminal_ours): Add 'self' argument.
10622 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10623
10624 2014-02-19 Pedro Alves <palves@redhat.com>
10625 Tom Tromey <tromey@redhat.com>
10626
10627 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10628 argument.
10629 (target_terminal_ours_for_output): Add argument.
10630 * target.c (debug_to_terminal_ours_for_output): Add argument.
10631 (update_current_target): Update.
10632 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10633 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10634 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10635
10636 2014-02-19 Tom Tromey <tromey@redhat.com>
10637
10638 * target.h (struct target_ops) <to_terminal_inferior>: Add
10639 argument.
10640 * target.c (target_terminal_inferior): Add argument.
10641 (update_current_target): Update.
10642 * remote.c (remote_terminal_inferior): Add 'self' argument.
10643 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10644 * inflow.c (terminal_inferior): Add 'self' argument.
10645 * inferior.h (terminal_inferior): Add 'self' argument.
10646 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10647 (go32_terminal_inferior): Add 'self' argument.
10648
10649 2014-02-19 Tom Tromey <tromey@redhat.com>
10650
10651 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10652 (target_terminal_init): Add argument.
10653 * target.c (debug_to_terminal_init): Add argument.
10654 (update_current_target): Update.
10655 * inflow.c (terminal_init_inferior): Add 'self' argument.
10656 * inferior.h (terminal_init_inferior): Add 'self' argument.
10657 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10658 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10659
10660 2014-02-19 Tom Tromey <tromey@redhat.com>
10661
10662 * target.h (struct target_ops)
10663 <to_can_accel_watchpoint_condition>: Add argument.
10664 (target_can_accel_watchpoint_condition): Add argument.
10665 * target.c (debug_to_can_accel_watchpoint_condition): Add
10666 argument.
10667 (update_current_target): Update.
10668 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10669 'self' argument.
10670
10671 2014-02-19 Tom Tromey <tromey@redhat.com>
10672
10673 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10674 Add argument.
10675 (target_region_ok_for_hw_watchpoint): Add argument.
10676 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10677 (default_region_ok_for_hw_watchpoint): Add argument.
10678 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10679 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10680 argument.
10681 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10682 argument.
10683 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10684 argument.
10685 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10686 'self' argument.
10687 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10688 'self' argument.
10689 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10690 'self' argument.
10691 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10692 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10693 'self' argument.
10694 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10695 Add 'self' argument.
10696
10697 2014-02-19 Tom Tromey <tromey@redhat.com>
10698
10699 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10700 argument.
10701 (target_insert_watchpoint): Add argument.
10702 * target.c (debug_to_insert_watchpoint): Add argument.
10703 (update_current_target): Update.
10704 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10705 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10706 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10707 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10708 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10709 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10710 argument.
10711 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10712 (procfs_insert_hw_watchpoint): Add 'self' argument.
10713 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10714 argument.
10715 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10716 argument.
10717 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10718 argument.
10719 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10720 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10721 argument.
10722 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10723 'self' argument.
10724
10725 2014-02-19 Tom Tromey <tromey@redhat.com>
10726
10727 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10728 argument.
10729 (target_remove_watchpoint): Add argument.
10730 * target.c (debug_to_remove_watchpoint): Add argument.
10731 (update_current_target): Update.
10732 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10733 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10734 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10735 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10736 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10737 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10738 argument.
10739 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10740 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10741 argument.
10742 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10743 argument.
10744 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10745 argument.
10746 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10747 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10748 argument.
10749 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10750 'self' argument.
10751
10752 2014-02-19 Tom Tromey <tromey@redhat.com>
10753
10754 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10755 argument.
10756 (target_remove_hw_breakpoint): Add argument.
10757 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10758 (update_current_target): Update.
10759 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10760 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10761 argument.
10762 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10763 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10764 argument.
10765 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10766 'self' argument.
10767
10768 2014-02-19 Tom Tromey <tromey@redhat.com>
10769
10770 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10771 argument.
10772 (target_insert_hw_breakpoint): Add argument.
10773 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10774 (update_current_target): Update.
10775 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10776 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10777 argument.
10778 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10779 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10780 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10781 argument.
10782 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10783 'self' argument.
10784
10785 2014-02-19 Tom Tromey <tromey@redhat.com>
10786
10787 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10788 argument.
10789 (target_can_use_hardware_watchpoint): Add argument.
10790 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10791 (update_current_target): Update.
10792 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10793 argument.
10794 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10795 argument.
10796 * remote.c (remote_check_watch_resources): Add 'self' argument.
10797 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10798 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10799 argument.
10800 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10801 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10802 argument.
10803 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10804 argument.
10805 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10806 argument.
10807 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10808 argument.
10809 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10810 argument.
10811 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10812 argument.
10813 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10814 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10815 argument.
10816 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10817 'self' argument.
10818
10819 2014-02-19 Tom Tromey <tromey@redhat.com>
10820
10821 * target.h (struct target_ops) <to_post_attach>: Add argument.
10822 (target_post_attach): Add argument.
10823 * target.c (debug_to_post_attach): Add argument.
10824 (update_current_target): Update.
10825 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10826 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10827 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10828 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10829 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10830
10831 2014-02-19 Tom Tromey <tromey@redhat.com>
10832
10833 * windows-nat.c (windows_close): Add 'self' argument.
10834 * tracepoint.c (tfile_close): Add 'self' argument.
10835 * target.h (struct target_ops) <to_close>: Add argument.
10836 * target.c (target_close): Add argument.
10837 (update_current_target): Update.
10838 * remote.c (remote_close): Add 'self' argument.
10839 * remote-sim.c (gdbsim_close): Add 'self' argument.
10840 * remote-mips.c (mips_close): Add 'self' argument.
10841 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10842 * record-full.c (record_full_close): Add 'self' argument.
10843 * record-btrace.c (record_btrace_close): Add 'self' argument.
10844 * monitor.h (monitor_close): Add 'self' argument.
10845 * monitor.c (monitor_close): Add 'self' argument.
10846 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10847 * linux-nat.c (linux_nat_close): Add argument.
10848 * go32-nat.c (go32_close): Add 'self' argument.
10849 * exec.c (exec_close_1): Add 'self' argument.
10850 * ctf.c (ctf_close): Add 'self' argument.
10851 * corelow.c (core_close): Add 'self' argument.
10852 (core_close_cleanup): Update.
10853 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10854 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10855
10856 2014-02-19 Tom Tromey <tromey@redhat.com>
10857
10858 * remote.c (remote_load): New function.
10859 (init_remote_ops): Use it.
10860
10861 2014-02-19 Tom Tromey <tromey@redhat.com>
10862
10863 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10864 argument.
10865 * common/linux-btrace.h (linux_supports_btrace): Update.
10866 * remote.c (remote_supports_btrace): Add "self" argument.
10867 * target-delegates.c: Rebuild.
10868 * target.c (target_supports_btrace): Remove.
10869 * target.h (struct target_ops) <to_supports_btrace>: Add
10870 target_ops argument.
10871 (target_supports_btrace): New define.
10872
10873 2014-02-19 Tom Tromey <tromey@redhat.com>
10874
10875 * record-full.c (record_full_beneath_to_resume_ops)
10876 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10877 (record_full_beneath_to_wait)
10878 (record_full_beneath_to_store_registers_ops)
10879 (record_full_beneath_to_store_registers)
10880 (record_full_beneath_to_xfer_partial_ops)
10881 (record_full_beneath_to_xfer_partial)
10882 (record_full_beneath_to_insert_breakpoint_ops)
10883 (record_full_beneath_to_insert_breakpoint)
10884 (record_full_beneath_to_remove_breakpoint_ops)
10885 (record_full_beneath_to_remove_breakpoint)
10886 (record_full_beneath_to_stopped_by_watchpoint)
10887 (record_full_beneath_to_stopped_data_address)
10888 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10889 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10890 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10891 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10892 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10893 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10894 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10895 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10896 (record_full_resume, record_full_wait_1)
10897 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10898 (record_full_store_registers, record_full_xfer_partial)
10899 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10900 (record_full_async, record_full_core_xfer_partial): Use target
10901 delegation.
10902 * target-delegates.c: Rebuild.
10903 * target.c (current_xfer_partial): Remove.
10904 (update_current_target): Do not INHERIT or de_fault
10905 to_insert_breakpoint, to_remove_breakpoint,
10906 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10907 to_is_async_p, to_async. Do not set to_xfer_partial field.
10908 (default_xfer_partial): Simplify.
10909 (current_xfer_partial): Remove.
10910 (target_wait, target_resume): Simplify.
10911 (find_default_can_async_p, find_default_is_async_p): Update.
10912 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10913 to_xfer_partial, to_stopped_by_watchpoint,
10914 to_stopped_data_address.
10915 (target_store_registers): Simplify.
10916 (forward_target_remove_breakpoint)
10917 (forward_target_insert_breakpoint): Remove.
10918 (target_remove_breakpoint, target_insert_breakpoint)
10919 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10920 * target.h (struct target_ops) <to_resume, to_wait,
10921 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10922 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10923 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10924 markup.
10925 (forward_target_remove_breakpoint)
10926 (forward_target_insert_breakpoint): Remove.
10927 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10928 directly.
10929 (record_btrace_insert_breakpoint): Delegate directly.
10930
10931 2014-02-19 Tom Tromey <tromey@redhat.com>
10932
10933 PR build/7701:
10934 * target-delegates.c: New file.
10935 * target.c: Include target-delegates.c.
10936 (init_dummy_target): Call install_dummy_methods.
10937 (complete_target_initialization): Call install_delegators.
10938 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10939 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10940 * make-target-delegates: New file.
10941
10942 2014-02-19 Tom Tromey <tromey@redhat.com>
10943
10944 * record.c (find_record_target): Use find_target_at.
10945 * target.c (find_target_at): New function.
10946 * target.h (find_target_at): Declare.
10947
10948 2014-02-19 Tom Tromey <tromey@redhat.com>
10949
10950 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10951 Add 'ops' argument.
10952 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10953 'ops' argument.
10954 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10955 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10956 'ops' argument.
10957 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10958 argument.
10959 * linux-nat.c (save_sigtrap): Update.
10960 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10961 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10962 (linux_nat_close): Update.
10963 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10964 argument.
10965 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10966 argument.
10967 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10968 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10969 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10970 (tmp_to_async): Add 'ops' argument.
10971 (record_full_stopped_by_watchpoint, record_full_async)
10972 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10973 argument.
10974 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10975 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10976 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10977 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10978 (remote_is_async_p, remote_async): Add 'ops' argument.
10979 (remote_stopped_data_address): Update.
10980 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10981 * target.c (update_current_target)
10982 (find_default_can_async_p, find_default_is_async_p): Update.
10983 (init_dummy_target): Update.
10984 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10985 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10986 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10987 (target_can_async_p, target_is_async_p, target_async)
10988 (target_stopped_by_watchpoint): Update.
10989
10990 2014-02-19 Yao Qi <yao@codesourcery.com>
10991
10992 PR gdb/16220
10993 * gdbarch.sh: Remove startup_gdbarch.
10994 * gdbarch.c: Regenerated.
10995 * gdbarch.h: Likewise.
10996
10997 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10998
10999 * rl78-tdep.c (rl78_g10_register_name): New function.
11000 (rl78_return_value): Add g10 support.
11001 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11002 g10.
11003
11004 2014-02-17 Doug Evans <xdje42@gmail.com>
11005
11006 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11007 (SUBDIR_GUILE_SRCS): Ditto.
11008 (scm-gsmob.o): Ditto.
11009
11010 2014-02-17 Yao Qi <yao@codesourcery.com>
11011
11012 * gnu-nat.c (ILL_RPC): Declare defined function.
11013
11014 2014-02-17 Yao Qi <yao@codesourcery.com>
11015
11016 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11017 mach_msg_type_number_t.
11018 (gnu_write_inferior): Likewise.
11019
11020 2014-02-17 Yao Qi <yao@codesourcery.com>
11021
11022 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11023 in format string.
11024 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11025 (inf_validate_procs, inf_signal): Likewise.
11026 (S_exception_raise_request): Likewise.
11027 (do_mach_notify_dead_name): Likewise.
11028 (steal_exc_port): Likewise.
11029 (gnu_read_inferior): Change 'copy_count''s type to
11030 mach_msg_type_number_t.
11031 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11032 format string.
11033
11034 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11035
11036 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11037 flag. Adjust all users; in particular...
11038 (gnu_wait): ..., don't decrement its value in here...
11039 (gnu_create_inferior): ..., and instead set the flag in here,
11040 around the startup_inferior call, and call that one with
11041 START_INFERIOR_TRAPS_EXPECTED.
11042
11043 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11044 (ILL_RPC): ... new macro.
11045 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11046 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11047 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11048 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11049 functions with ILL_RPC macro.
11050 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11051 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11052 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11053 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11054 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11055 (S_proc_getlogin_reply, S_proc_getsid_reply)
11056 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11057 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11058 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11059 (S_proc_getnports_reply, S_proc_is_important_reply)
11060 (S_proc_get_code_reply): New stub functions, generated with
11061 ILL_RPC macro.
11062
11063 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11064 collected the type check structures.
11065
11066 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11067
11068 2014-02-14 Doug Evans <dje@google.com>
11069
11070 * target.c (target_write_partial): Fix result type.
11071
11072 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11073
11074 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11075 the proper offsets to access fpregset_t.
11076
11077 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11078
11079 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11080 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11081 * h8300-tdep.c (setmachinelist): Remove global.
11082 * hppa-tdep.c (hppa_sigtramp): Remove global.
11083 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11084 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11085 * ravenscar-thread.c (update_target_observer): Remove global.
11086 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11087
11088 2014-02-12 Tom Tromey <tromey@redhat.com>
11089
11090 * common/rsp-low.c: Update comments.
11091 * common/rsp-low.h: Update comments.
11092
11093 2014-02-12 Tom Tromey <tromey@redhat.com>
11094
11095 * common/rsp-low.c (convert_ascii_to_int): Remove.
11096 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11097
11098 2014-02-12 Tom Tromey <tromey@redhat.com>
11099
11100 * common/rsp-low.h (unhexify): Don't declare.
11101 * common/rsp-low.c (unhexify): Remove.
11102
11103 2014-02-12 Tom Tromey <tromey@redhat.com>
11104
11105 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11106 * common/rsp-low.c (convert_int_to_ascii): Remove.
11107
11108 2014-02-12 Tom Tromey <tromey@redhat.com>
11109
11110 * common/rsp-low.h (hexify): Don't declare.
11111 * common/rsp-low.c (hexify): Remove.
11112
11113 2014-02-12 Tom Tromey <tromey@redhat.com>
11114
11115 * common/rsp-low.c (hexify): Never take strlen of argument.
11116
11117 2014-02-12 Tom Tromey <tromey@redhat.com>
11118
11119 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11120 * remote.c (extended_remote_run, remote_rcmd)
11121 (remote_download_trace_state_variable, remote_save_trace_data)
11122 (remote_set_trace_notes): Update.
11123 * tracepoint.c (encode_source_string, tfile_write_status)
11124 (tfile_write_uploaded_tsv): Update.
11125
11126 2014-02-12 Tom Tromey <tromey@redhat.com>
11127
11128 * tracepoint.c: Include rsp-low.h.
11129 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11130 * remote.c: Include rsp-low.h.
11131 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11132 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11133 (remote_unescape_input): Move to common/rsp-low.c.
11134 * common/rsp-low.h: New file.
11135 * common/rsp-low.c: New file.
11136 * Makefile.in (SFILES): Add common/rsp-low.c.
11137 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11138 (COMMON_OBS): Add rsp-low.o.
11139 (rsp-low.o): New target.
11140
11141 2014-02-12 Tom Tromey <tromey@redhat.com>
11142
11143 * utils.h: Include print-utils.h.
11144 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11145 (int_string, core_addr_to_string, core_addr_to_string_nz)
11146 (hex_string, hex_string_custom): Don't declare.
11147 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11148 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11149 (hex_string_custom, int_string, core_addr_to_string)
11150 (core_addr_to_string_nz, host_address_to_string): Move to
11151 common/print-utils.c.
11152 * common/print-utils.h: New file.
11153 * common/print-utils.c: New file
11154 * Makefile.in (SFILES): Add common/print-utils.c.
11155 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11156 (COMMON_OBS): Add print-utils.o.
11157 (print-utils.o): New target.
11158
11159 2014-02-12 Tom Tromey <tromey@redhat.com>
11160
11161 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11162
11163 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11164
11165 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11166
11167 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11168
11169 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11170 if a PT_IO ptrace request returns sucessfully but indicates that 0
11171 bytes were transferred.
11172
11173 2014-02-12 Pedro Alves <palves@redhat.com>
11174 Kevin Buettner <kevinb@redhat.com>
11175
11176 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11177 TYPE_INSTANCE_FLAG_CODE_SPACE.
11178
11179 2014-02-12 Pedro Alves <palves@redhat.com>
11180
11181 * h8300-tdep.c (pseudo_from_raw_register)
11182 (raw_from_pseudo_register): New functions.
11183 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11184 them.
11185
11186 2014-02-12 Pedro Alves <palves@redhat.com>
11187
11188 * h8300-tdep.c (h8300_register_sim_regno): New function.
11189 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11190 gdbarch_register_sim_regno hook.
11191
11192 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11193
11194 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11195
11196 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11197
11198 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11199
11200 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11201
11202 * obsd-tdep.h (obsd_init_abi): New prototype.
11203 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11204 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11205 (obsd_init_abi): New functions.
11206 * i386obsd-tdep.c: Include "obsd-tdep.h".
11207 (i386obsd_init_abi): Call obsd_init_abi.
11208 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11209 (amd64obsd_init_abi): Call obsd_init_abi.
11210 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11211 obsd-tdep.c to gdb_target_obs.
11212
11213 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11214
11215 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11216 double float arguments to 16-byte in the argument slots.
11217
11218 2014-02-11 Doug Evans <xdje42@gmail.com>
11219
11220 * configure.ac: Don't crash if pkg-config is not found and guile
11221 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11222 in guile checks.
11223 * configure: Regenerate.
11224
11225 2014-02-11 Yao Qi <yao@codesourcery.com>
11226
11227 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11228 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11229 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11230 * gnu-nat.c (gnu_xfer_memory): Likewise.
11231 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11232 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11233 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11234 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11235
11236 2014-02-11 Yao Qi <yao@codesourcery.com>
11237
11238 * target.h (enum target_xfer_error): Rename to ...
11239 (enum target_xfer_status): ... it. New. All users updated.
11240 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11241 New.
11242 (TARGET_XFER_STATUS_ERROR_P): New macro.
11243 (target_xfer_error_to_string): Remove declaration.
11244 (target_xfer_status_to_string): Declare.
11245 (target_xfer_partial_ftype): Adjust it.
11246 (struct target_ops) <to_xfer_partial>: Return
11247 target_xfer_status. Add argument xfered_len. Update
11248 comments.
11249 * target.c (target_xfer_error_to_string): Rename to ...
11250 (target_xfer_status_to_string): ... it. New. All callers
11251 updated.
11252 (target_read_live_memory): Likewise. Call target_xfer_partial
11253 instead of target_read.
11254 (memory_xfer_live_readonly_partial): Return
11255 target_xfer_status. Add argument xfered_len.
11256 (raw_memory_xfer_partial): Likewise.
11257 (memory_xfer_partial_1): Likewise.
11258 (memory_xfer_partial): Likewise.
11259 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11260 properly. Update debug message.
11261 (default_xfer_partial, current_xfer_partial): Likewise.
11262 (target_write_partial): Likewise.
11263 (target_read_partial): Likewise. All callers updated.
11264 (read_whatever_is_readable): Likewise.
11265 (target_write_with_progress): Likewise.
11266 (target_read_alloc_1): Likewise.
11267
11268 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11269 * auxv.c (procfs_xfer_auxv): Likewise.
11270 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11271 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11272 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11273 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11274 * corefile.c (read_memory): Adjust.
11275 * corelow.c (core_xfer_partial): Likewise.
11276 * ctf.c (ctf_xfer_partial): Likewise.
11277 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11278 updated.
11279 (darwin_xfer_partial): Likewise.
11280 * exec.c (section_table_xfer_memory_partial): Likewise. All
11281 callers updated.
11282 (exec_xfer_partial): Likewise.
11283 * exec.h (section_table_xfer_memory_partial): Update
11284 declaration.
11285 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11286 negative.
11287 (gnu_xfer_partial): Likewise.
11288 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11289 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11290 (ia64_hpux_xfer_solib_got): Likewise.
11291 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11292 type of 'partial_len' to ULONGEST.
11293 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11294 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11295 (linux_nat_xfer_partial): Likewise.
11296 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11297 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11298 * monitor.c (monitor_xfer_memory): Likewise.
11299 (monitor_xfer_partial): Likewise.
11300 * procfs.c (procfs_xfer_partial): Likewise.
11301 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11302 * record-full.c (record_full_xfer_partial): Likewise.
11303 (record_full_core_xfer_partial): Likewise.
11304 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11305 (gdbsim_xfer_partial): Likewise.
11306 * remote.c (remote_write_bytes_aux): Likewise. All callers
11307 updated.
11308 (remote_write_bytes, remote_read_bytes): Likewise. All
11309 callers updated.
11310 (remote_flash_erase): Likewise. All callers updated.
11311 (remote_write_qxfer): Likewise. All callers updated.
11312 (remote_read_qxfer): Likewise. All callers updated.
11313 (remote_xfer_partial): Likewise.
11314 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11315 (rs6000_xfer_shared_libraries): Likewise.
11316 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11317 (sol_thread_xfer_partial): Likewise.
11318 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11319 (sparc_xfer_partial): Likewise.
11320 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11321 updated.
11322 (spu_xfer_partial): Likewise.
11323 * spu-multiarch.c (spu_xfer_partial): Likewise.
11324 * tracepoint.c (tfile_xfer_partial): Likewise.
11325 * windows-nat.c (windows_xfer_memory): Likewise.
11326 (windows_xfer_shared_libraries): Likewise.
11327 (windows_xfer_partial): Likewise.
11328 * valprint.c: Replace 'target_xfer_error' with
11329 'target_xfer_status' in comments.
11330
11331 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11332
11333 Checked in by Joel Brobecker <brobecker@adacore.com>.
11334 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11335
11336 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11337
11338 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11339 function parameters.
11340
11341 2014-02-10 Will Newton <will.newton@linaro.org>
11342
11343 * elfread.c (elf_rel_plt_read): Look for a .got section if
11344 looking up .got.plt fails.
11345 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11346 on address passed to elf_gnu_ifunc_record_cache.
11347 (elf_gnu_ifunc_resolve_addr): Likewise.
11348 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11349
11350 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11351
11352 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11353 (X_RETTURN): New macro.
11354 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11355
11356 * sparc64-tdep.c (sparc64_init_abi): Hook
11357 sparc_in_function_epilogue_p.
11358
11359 2014-02-10 Gary Benson <gbenson@redhat.com>
11360
11361 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11362 Rename name_matcher to symbol_matcher.
11363
11364 2014-02-10 Gary Benson <gbenson@redhat.com>
11365
11366 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11367 Use expand_symtabs_file_matcher_ftype and
11368 expand_symtabs_symbol_matcher_ftype.
11369
11370 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11371
11372 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11373 (struct ada_symbol_cache): New.
11374 (ada_free_symbol_cache): Forward declare.
11375 (struct ada_pspace_data): New.
11376 (ada_pspace_data_handle): New static global.
11377 (get_ada_pspace_data, ada_pspace_data_cleanup)
11378 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11379 (cache_space, cache): Delete, now folded inside struct
11380 ada_pspace_data.
11381 (ada_get_symbol_cache): New function.
11382 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11383 implementation.
11384 (_initialize_ada_language): Remove initialization of cache_space.
11385 Move call to observer_attach_inferior_exit up, grouping it
11386 with the other observer registrations inside this function.
11387 Rename command to be more general. Add call to
11388 register_program_space_data_with_cleanup.
11389
11390 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11391
11392 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11393 ada_new_objfile_observer.
11394 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11395 (_initialize_tasks): Update uses of ada_new_objfile_observer
11396 and ada_tasks_normal_stop_observer.
11397
11398 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11399
11400 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11401 returned by the 'Length attribute to integer.
11402
11403 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11404
11405 * ada-lang.c (_initialize_ada_language): Initialize
11406 cache_space obstack.
11407
11408 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11409
11410 * ada-lang.c (HASH_SIZE): New macro.
11411 (struct cache_entry): New type.
11412 (cache_space, cache): New static globals.
11413 (ada_clear_symbol_cache, find_entry): New functions.
11414 (lookup_cached_symbol, cache_symbol): Implement.
11415 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11416 (_initialize_ada_language): Attach ada_new_objfile_observer
11417 and ada_free_objfile_observer.
11418
11419 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11420
11421 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11422 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11423 struct block * parameter.
11424 (ada_lookup_symbol_list_worker): Constify local variable "block".
11425 Remove cast which is no longer necessary.
11426
11427 2014-02-10 Doug Evans <xdje42@gmail.com>
11428
11429 Add Guile as an extension language.
11430 * NEWS: Mention Guile scripting.
11431 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11432 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11433 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11434 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11435 (CLIBS): Add GUILE_LIBS.
11436 (install-guile): New rule.
11437 (guile.o): New rule.
11438 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11439 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11440 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11441 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11442 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11443 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11444 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11445 * configure.ac: New option --with-guile.
11446 * configure: Regenerate.
11447 * config.in: Regenerate.
11448 * auto-load.c: Remove #include "python/python.h". Add #include
11449 "gdb/section-scripts.h".
11450 (source_section_scripts): Handle Guile scripts.
11451 (_initialize_auto_load): Add name of Guile objfile script to
11452 scripts-directory help text.
11453 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11454 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11455 (struct breakpoint): New member scm_bp_object.
11456 * defs.h (enum command_control_type): New value guile_control.
11457 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11458 "extension.h".
11459 (show_user): Update comment.
11460 (_initialize_cli_cmds): Update help text for "show user". Update help
11461 text for max-user-call-depth.
11462 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11463 "extension.h".
11464 (multi_line_command_p): Add guile_control.
11465 (print_command_lines): Handle guile_control.
11466 (execute_control_command, recurse_read_control_structure): Ditto.
11467 (process_next_line): Recognize "guile" commands.
11468 * disasm.c (gdb_disassemble_info): Make non-static.
11469 * disasm.h: #include "dis-asm.h".
11470 (struct gdbarch): Add forward decl.
11471 (gdb_disassemble_info): Declare.
11472 * extension.c: #include "guile/guile.h".
11473 (extension_languages): Add guile.
11474 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11475 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11476 * gdbtypes.c (get_unsigned_type_max): New function.
11477 (get_signed_type_minmax): New function.
11478 * gdbtypes.h (get_unsigned_type_max): Declare.
11479 (get_signed_type_minmax): Declare.
11480 * guile/README: New file.
11481 * guile/guile-internal.h: New file.
11482 * guile/guile.c: New file.
11483 * guile/guile.h: New file.
11484 * guile/scm-arch.c: New file.
11485 * guile/scm-auto-load.c: New file.
11486 * guile/scm-block.c: New file.
11487 * guile/scm-breakpoint.c: New file.
11488 * guile/scm-disasm.c: New file.
11489 * guile/scm-exception.c: New file.
11490 * guile/scm-frame.c: New file.
11491 * guile/scm-gsmob.c: New file.
11492 * guile/scm-iterator.c: New file.
11493 * guile/scm-lazy-string.c: New file.
11494 * guile/scm-math.c: New file.
11495 * guile/scm-objfile.c: New file.
11496 * guile/scm-ports.c: New file.
11497 * guile/scm-pretty-print.c: New file.
11498 * guile/scm-safe-call.c: New file.
11499 * guile/scm-string.c: New file.
11500 * guile/scm-symbol.c: New file.
11501 * guile/scm-symtab.c: New file.
11502 * guile/scm-type.c: New file.
11503 * guile/scm-utils.c: New file.
11504 * guile/scm-value.c: New file.
11505 * guile/lib/gdb.scm: New file.
11506 * guile/lib/gdb/boot.scm: New file.
11507 * guile/lib/gdb/experimental.scm: New file.
11508 * guile/lib/gdb/init.scm: New file.
11509 * guile/lib/gdb/iterator.scm: New file.
11510 * guile/lib/gdb/printing.scm: New file.
11511 * guile/lib/gdb/types.scm: New file.
11512 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11513 (VPATH): Add $(GUILE_SRCDIR).
11514 (GUILE_DIR): New variable.
11515 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11516 (all): Add stamp-guile dependency.
11517 (stamp-guile): New rule.
11518 (clean-guile, install-guile, uninstall-guile): New rules.
11519 (install-only): Add install-guile dependency.
11520 (uninstall): Add uninstall-guile dependency.
11521 (clean): Add clean-guile dependency.
11522
11523 2014-02-09 Doug Evans <xdje42@gmail.com>
11524
11525 Revert this patch (which I approved, mea culpa).
11526
11527 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11528
11529 * Makefile.in (all-lib): Remove.
11530 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11531
11532 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11533
11534 Fix Python stack corruption.
11535 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11536 gdb_py_longest.
11537
11538 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11539
11540 * Makefile.in (all-lib): Remove.
11541 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11542
11543 2014-02-07 Doug Evans <dje@google.com>
11544
11545 * extension-priv.h (extension_language_script_ops): Add comment.
11546 (extension_language_ops): Add comment.
11547 (active_ext_lang_state): Fix typo in comment.
11548
11549 2014-02-07 Pedro Alves <palves@redhat.com>
11550
11551 PR breakpoints/16292
11552 * infrun.c (handle_signal_stop) <signal arrives while stepping
11553 over a breakpoint>: Switch back to the stepping thread.
11554
11555 2014-02-07 Yao Qi <yao@codesourcery.com>
11556
11557 * target.c (target_xfer_partial): Return zero if LEN is zero.
11558
11559 2014-02-07 Yao Qi <yao@codesourcery.com>
11560
11561 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11562 (ld_so_xfer_auxv): Likewise.
11563 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11564 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11565 * corelow.c (core_xfer_partial): Likewise.
11566 * ctf.c (ctf_xfer_partial): Likewise.
11567 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11568 (darwin_xfer_partial): Likewise.
11569 * exec.c (exec_xfer_partial): Likewise.
11570 * gnu-nat.c (gnu_xfer_partial): Likewise.
11571 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11572 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11573 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11574 * linux-nat.c (linux_xfer_siginfo): Likewise.
11575 (linux_proc_xfer_spu): Likewise.
11576 * procfs.c (procfs_xfer_partial): Likewise.
11577 * record-full.c (record_full_xfer_partial): Likewise.
11578 (record_full_core_xfer_partial): Likewise.
11579 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11580 * remote.c (remote_write_qxfer): Likewise.
11581 (remote_write_qxfer, remote_read_qxfer): Likewise.
11582 (remote_xfer_partial): Likewise.
11583 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11584 (rs6000_xfer_shared_libraries): Likewise.
11585 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11586 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11587 (spu_xfer_partial): Likewise.
11588 * target.c (memory_xfer_partial_1): Likewise.
11589 * tracepoint.c (tfile_xfer_partial): Likewise.
11590 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11591 (windows_xfer_partial): Likewise.
11592
11593 2014-02-07 Yao Qi <yao@codesourcery.com>
11594
11595 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11596 comments.
11597 (core_xfer_shared_libraries_aix): Likewise.
11598 * gdbarch.c, gdbarch.h: Regenerated.
11599 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11600 ULONGEST. Change 'len_avail' type to ULONGEST.
11601 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11602 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11603 declaration.
11604 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11605
11606 2014-02-07 Yao Qi <yao@codesourcery.com>
11607
11608 * corefile.c (memory_error): Get 'exception' from ERR and pass
11609 'exception' to throw_error.
11610
11611 2014-02-06 Doug Evans <xdje42@gmail.com>
11612
11613 * configure.ac (libpython checking): Remove all but python.o from
11614 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11615 * configure: Regenerate.
11616
11617 * Makefile.in (SFILES): Add extension.c.
11618 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11619 (COMMON_OBS): Add extension.o.
11620 * extension.h: New file.
11621 * extension-priv.h: New file.
11622 * extension.c: New file.
11623
11624 * python/python-internal.h: #include "extension.h".
11625 (gdbpy_auto_load_enabled): Declare.
11626 (gdbpy_apply_val_pretty_printer): Declare.
11627 (gdbpy_apply_frame_filter): Declare.
11628 (gdbpy_preserve_values): Declare.
11629 (gdbpy_breakpoint_cond_says_stop): Declare.
11630 (gdbpy_breakpoint_has_cond): Declare.
11631 (void source_python_script_for_objfile): Delete.
11632 * python/python.c: #include "extension-priv.h".
11633 Delete inclusion of "observer.h".
11634 (extension_language_python): Moved here and renamed from
11635 script_language_python in py-auto-load.c.
11636 Redefined to be of type extension_language_defn.
11637 (python_extension_script_ops): New global.
11638 (python_extension_ops): New global.
11639 (struct python_env): New member previous_active.
11640 (restore_python_env): Call restore_active_ext_lang.
11641 (ensure_python_env): Call set_active_ext_lang.
11642 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11643 New arg extlang.
11644 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11645 New arg extlang.
11646 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11647 New arg extlang.
11648 (gdbpy_eval_from_control_command): Renamed from
11649 eval_python_from_control_command, made static. New arg extlang.
11650 (gdbpy_source_script) Renamed from source_python_script, made static.
11651 New arg extlang.
11652 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11653 result to int. New arg extlang.
11654 (gdbpy_source_objfile_script): Renamed from
11655 source_python_script_for_objfile, made static. New arg extlang.
11656 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11657 static. New args extlang, extlang_printers. Change result type to
11658 "void".
11659 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11660 static. New arg extlang. Rename arg printers to extlang_printers
11661 and change type to ext_lang_type_printers *.
11662 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11663 static. Replace argument arg with extlang, extlang_printers.
11664 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11665 (!HAVE_PYTHON, source_python_script): Delete.
11666 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11667 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11668 (!HAVE_PYTHON, start_type_printers): Delete.
11669 (!HAVE_PYTHON, apply_type_printers): Delete.
11670 (!HAVE_PYTHON, free_type_printers): Delete.
11671 (_initialize_python): Delete call to observer_attach_before_prompt.
11672 (finalize_python): Set/restore active extension language.
11673 (gdbpy_finish_initialization) Renamed from
11674 finish_python_initialization, made static. New arg extlang.
11675 (gdbpy_initialized): New function.
11676 * python/python.h: #include "extension.h". Delete #include
11677 "value.h", "mi/mi-cmds.h".
11678 (extension_language_python): Declare.
11679 (GDBPY_AUTO_FILE_NAME): Delete.
11680 (enum py_bt_status): Moved to extension.h and renamed to
11681 ext_lang_bt_status.
11682 (enum frame_filter_flags): Moved to extension.h.
11683 (enum py_frame_args): Moved to extension.h and renamed to
11684 ext_lang_frame_args.
11685 (finish_python_initialization): Delete.
11686 (eval_python_from_control_command): Delete.
11687 (source_python_script): Delete.
11688 (apply_val_pretty_printer): Delete.
11689 (apply_frame_filter): Delete.
11690 (preserve_python_values): Delete.
11691 (gdbpy_script_language_defn): Delete.
11692 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11693 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11694
11695 * auto-load.c: #include "extension.h".
11696 (GDB_AUTO_FILE_NAME): Delete.
11697 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11698 (script_language_gdb): Delete, moved to extension.c and renamed to
11699 extension_language_gdb.
11700 (source_gdb_script_for_objfile): Delete.
11701 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11702 (loaded_script): Change type of language member to
11703 struct extension_language_defn *.
11704 (init_loaded_scripts_info): Initialize
11705 unsupported_script_warning_printed.
11706 (maybe_add_script): Make static. Change type of language arg to
11707 struct extension_language_defn *.
11708 (clear_section_scripts): Reset unsupported_script_warning_printed.
11709 (auto_load_objfile_script_1): Rewrite to use extension language API.
11710 (auto_load_objfile_script): Make public. Remove support-compiled-in
11711 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11712 (source_section_scripts): Rewrite to use extension language API.
11713 (load_auto_scripts_for_objfile): Rewrite to use
11714 auto_load_scripts_for_objfile.
11715 (collect_matching_scripts_data): Change type of language member to
11716 struct extension_language_defn *.
11717 (auto_load_info_scripts): Change type of language arg to
11718 struct extension_language_defn *.
11719 (unsupported_script_warning_print): New function.
11720 (script_not_found_warning_print): Make static.
11721 (_initialize_auto_load): Rewrite construction of scripts-directory
11722 help.
11723 * auto-load.h (struct objfile): Add forward decl.
11724 (struct script_language): Delete.
11725 (struct auto_load_pspace_info): Add forward decl.
11726 (struct extension_language_defn): Add forward decl.
11727 (maybe_add_script): Delete.
11728 (auto_load_objfile_script): Declare.
11729 (script_not_found_warning_print): Delete.
11730 (auto_load_info_scripts): Update prototype.
11731 (auto_load_gdb_scripts_enabled): Declare.
11732 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11733 auto_load_python_scripts_enabled and made public.
11734 (script_language_python): Delete, moved to python.c.
11735 (gdbpy_script_language_defn): Delete.
11736 (info_auto_load_python_scripts): Update to use
11737 extension_language_python.
11738
11739 * breakpoint.c (condition_command): Replace call to
11740 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11741 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11742 with call to breakpoint_ext_lang_cond_says_stop.
11743 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11744 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11745 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11746 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11747 New arg slang.
11748 (local_setattro): Print name of extension language with existing
11749 stop condition.
11750
11751 * valprint.c (val_print, value_print): Update to call
11752 apply_ext_lang_val_pretty_printer.
11753 * cp-valprint.c (cp_print_value): Update call to
11754 apply_ext_lang_val_pretty_printer.
11755 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11756 (gdbpy_apply_val_pretty_printer): Renamed from
11757 apply_val_pretty_printer. New arg extlang.
11758 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11759
11760 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11761 extension language API.
11762 * cli/cli-script.c (execute_control_command): Update to call
11763 eval_ext_lang_from_control_command.
11764
11765 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11766 enum ext_lang_bt_status values. Update call to
11767 apply_ext_lang_frame_filter.
11768 (mi_cmd_stack_list_locals): Ditto.
11769 (mi_cmd_stack_list_args): Ditto.
11770 (mi_cmd_stack_list_variables): Ditto.
11771 * mi/mi-main.c: Delete #include "python/python-internal.h".
11772 Add #include "extension.h".
11773 (mi_cmd_list_features): Replace reference to python internal variable
11774 gdb_python_initialized with call to ext_lang_initialized_p.
11775
11776 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11777 Update to use enum ext_lang_frame_args. Update to call
11778 apply_ext_lang_frame_filter.
11779 * python/py-framefilter.c (extract_sym): Update to use enum
11780 ext_lang_bt_status.
11781 (extract_value, py_print_type, py_print_value): Ditto.
11782 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11783 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11784 (py_print_frame): Ditto.
11785 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11786 New arg extlang. Update to use enum ext_lang_bt_status.
11787
11788 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11789 finish_python_initialization. Replace with call to
11790 finish_ext_lang_initialization.
11791
11792 * typeprint.c (do_free_global_table): Update to call
11793 free_ext_lang_type_printers.
11794 (create_global_typedef_table): Update to call
11795 start_ext_lang_type_printers.
11796 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11797 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11798 (type_print_options): Change type of global_printers from "void *"
11799 to "struct ext_lang_type_printers *".
11800
11801 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11802 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11803 (gdbpy_preserve_values): Renamed from preserve_python_values.
11804 New arg extlang.
11805 (!HAVE_PYTHON, preserve_python_values): Delete.
11806
11807 * utils.c (quit_flag): Delete, moved to extension.c.
11808 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11809 extension.c.
11810
11811 * eval.c: Delete #include "python/python.h".
11812 * main.c: Delete #include "python/python.h".
11813
11814 * defs.h: Update comment.
11815
11816 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11817
11818 GDB 7.7 released.
11819
11820 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11821
11822 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11823 defined.
11824
11825 2014-02-05 Yao Qi <yao@codesourcery.com>
11826
11827 * remote.c (remote_pass_signals): Remove local 'buf' and use
11828 rs->buf.
11829 (remote_program_signals): Likewise.
11830
11831 2014-02-05 Yao Qi <yao@codesourcery.com>
11832
11833 * ctf.c: Include "inferior.h" and "gdbthread.h".
11834 (CTF_PID): A new macro.
11835 (ctf_open): Call inferior_appeared and add_thread_silent.
11836 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11837 (ctf_thread_alive): New function.
11838 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11839
11840 2014-02-05 Yao Qi <yao@codesourcery.com>
11841
11842 Revert this patch:
11843
11844 2013-05-24 Yao Qi <yao@codesourcery.com>
11845
11846 * tracepoint.c (TFILE_PID): Remove.
11847 (tfile_open): Don't add thread and inferior.
11848 (tfile_close): Don't set 'inferior_ptid'. Don't call
11849 exit_inferior_silent.
11850 (tfile_thread_alive): Remove.
11851 (init_tfile_ops): Don't set field 'to_thread_alive' of
11852 tfile_ops.
11853
11854 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11855
11856 * remote.c (remote_start_remote): Call remote_check_symbols even
11857 if only symbol-file (not file) has been given.
11858
11859 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11860
11861 * gdbarch.sh (skip_entrypoint): New callback.
11862 * gdbarch.c, gdbarch.h: Regenerate.
11863 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11864 * infrun.c (fill_in_stop_func): Likewise.
11865 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11866 (ppc_elfv2_elf_make_msymbol_special): New function.
11867 (ppc_elfv2_skip_entrypoint): Likewise.
11868 (ppc_linux_init_abi): Install them for ELFv2.
11869
11870 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11871
11872 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11873 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11874 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11875 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11876 structures returned in GPRs.
11877
11878 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11879
11880 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11881 offset to the stack parameter list for the ELFv2 ABI.
11882
11883 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11884
11885 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11886 set_gdbarch_convert_from_func_ptr_addr and
11887 set_gdbarch_elf_make_msymbol_special for ELFv1.
11888 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11889 function descriptors on ELFv1.
11890 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11891 set up r12 at function entry.
11892
11893 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11894
11895 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11896 (struct gdbarch_tdep): New member elf_abi.
11897
11898 * rs6000-tdep.c: Include "elf/ppc64.h".
11899 (rs6000_gdbarch_init): Detect ELF ABI version.
11900
11901 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11902
11903 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11904 within a register pair holding a DFP 128-bit value on little-endian.
11905 (ppc64_sysv_abi_return_value_base): Likewise.
11906 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11907 (dfp_pseudo_register_write): Likewise.
11908
11909 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11910
11911 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11912 offset on little-endian when passing _Decimal32.
11913 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11914
11915 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11916
11917 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11918 of the overlapped FP register within the VSX register on little-
11919 endian platforms.
11920 (efpr_pseudo_register_write): Likewise.
11921
11922 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11923
11924 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11925 offset on little-endian when passing small structures.
11926
11927 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11928
11929 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11930 (struct ppc64_sysv_argpos): New data structure.
11931 (ppc64_sysv_abi_push_float): Remove.
11932 (ppc64_sysv_abi_push_val): New function.
11933 (ppc64_sysv_abi_push_integer): Likewise.
11934 (ppc64_sysv_abi_push_freg): Likewise.
11935 (ppc64_sysv_abi_push_vreg): Likewise.
11936 (ppc64_sysv_abi_push_param): Likewise.
11937 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11938 (ppc64_sysv_abi_return_value_base): New function.
11939 (ppc64_sysv_abi_return_value): Refactor to use it.
11940
11941 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11942
11943 * NEWS: Document new target powerpc64le-*-linux*.
11944
11945 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11946
11947 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11948 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11949 core dumps.
11950 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11951 register set used in ELF core dumps. Add floating-point register set.
11952
11953 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11954
11955 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11956 dwarf2_to_gdb[] table using symbolic constants. Adjust
11957 penultimate entry from number representing the PC register
11958 to symbolic constant representing the MDR register. Add
11959 constant for the PC register to the end of the table.
11960
11961 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11962
11963 * bsd-kvm.c: Include <sys/param.h>
11964
11965 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11966
11967 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11968
11969 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11970
11971 * ada-lang.h (clear_ada_sym_cache): Delete.
11972
11973 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11974
11975 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11976
11977 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11978
11979 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11980 the sigreturn register save area only if the syscall is
11981 sigreturn.
11982
11983 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11984
11985 * valops.c (value_slice): Minor reformatting.
11986
11987 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11988
11989 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11990
11991 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11992
11993 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11994 New static globals.
11995 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11996 (ada_ignore_descriptive_types_p): New static global.
11997 (find_parallel_type_by_descriptive_type): Return immediately
11998 if ada_ignore_descriptive_types_p is set.
11999 (_initialize_ada_language): Register new commands "maintenance
12000 set ada", "maintenance show ada", "maintenance set ada
12001 ignore-descriptive-types" and "maintenance show ada
12002 ignore-descriptive-types".
12003 * NEWS: Add entry for new "maint ada set/show
12004 ignore-descriptive-types" commands.
12005
12006 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12007
12008 * record-btrace.c (record_btrace_close): Call btrace_teardown
12009 for all threads.
12010
12011 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12012
12013 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12014 "ui-out.h".
12015
12016 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12017
12018 * ada-typeprint (type_is_full_subrange_of_target_type):
12019 New function.
12020 (print_range): Add parameter bounds_prefered_p. If not set,
12021 try printing range types using the name of their base type.
12022 (print_range_type): Add parameter bounds_prefered_p.
12023 Use it in call to print_range.
12024 (print_array_type, ada_print_type): Update calls to print_range
12025 and print_range_type.
12026
12027 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12028
12029 * ada-typeprint.c (print_array_type, print_choices, print_range)
12030 (print_range_bound, print_dynamic_range_bound, print_range_type):
12031 Remove declaration.
12032
12033 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12034
12035 * ada-typeprint.c (print_range): Add missing empty line
12036 after local declaration.
12037
12038 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12039
12040 * ada-valprint.c (print_optional_low_bound): Get index_type's
12041 target type for as long as it is a TYPE_CODE_RANGE.
12042
12043 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12044
12045 * procfs.c (procfs_make_note_section): Remove assertion and
12046 associated comment.
12047
12048 2014-01-24 Yao Qi <yao@codesourcery.com>
12049
12050 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12051 * corelow.c (get_core_siginfo): Likewise.
12052
12053 2014-01-24 Yao Qi <yao@codesourcery.com>
12054
12055 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12056 ULONGEST. Don't check 'len' is negative.
12057 (remote_write_bytes): Change type of 'len' to ULONGEST.
12058
12059 2014-01-23 Tom Tromey <tromey@redhat.com>
12060
12061 PR python/16485:
12062 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12063 Handle exception from frame.block.
12064 (FrameVars.fetch_frame_locals): Likewise.
12065
12066 2014-01-23 Tom Tromey <tromey@redhat.com>
12067
12068 PR python/16487:
12069 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12070 on a NULL pointer. Move "goto error" to correct place.
12071
12072 2014-01-23 Tom Tromey <tromey@redhat.com>
12073
12074 PR python/16491:
12075 * python/py-framefilter.c (apply_frame_filter): Call
12076 ensure_python_env after computing gdbarch.
12077
12078 2014-01-23 Yao Qi <yao@codesourcery.com>
12079
12080 * target.c (raw_memory_xfer_partial): Change argument type
12081 from void * to gdb_byte *.
12082 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12083
12084 2014-01-22 Doug Evans <dje@google.com>
12085
12086 New gdbserver option --debug-format=timestamp.
12087 * NEWS: Mention it.
12088
12089 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12090
12091 * syscalls/s390x-linux.xml: New file.
12092 * syscalls/s390-linux.xml: New file.
12093 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12094 (XML_SYSCALL_FILENAME_S390X): Likewise.
12095 (op_svc): New enum value for SVC opcode.
12096 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12097 (s390_linux_get_syscall_number): New function.
12098 (s390_gdbarch_init): Register '*get_syscall_number' and the
12099 syscall xml file name.
12100 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12101 "s390-linux.xml" and "s390x-linux.xml".
12102 * NEWS: Announce new feature.
12103
12104 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12105
12106 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12107
12108 2014-01-22 Pedro Alves <palves@redhat.com>
12109
12110 * xtensa-config.c: Include defs.h.
12111
12112 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12113
12114 * common/common-utils.h: Add "ARI:" comment beside __func__
12115 reference.
12116
12117 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12118
12119 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12120 documentation a bit.
12121
12122 2014-01-21 Roland McGrath <mcgrathr@google.com>
12123
12124 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12125 * configure: Regenerate.
12126 * aclocal.m4: Regenerate.
12127 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12128 New substituted variables.
12129 (install-strip): New target.
12130 (INSTALL_SCRIPT): New substituted variable.
12131 (FLAGS_TO_PASS): Add it.
12132 (install-only): Use $(INSTALL_SCRIPT) rather than
12133 $(INSTALL_PROGRAM) for gcore.
12134
12135 2014-01-20 Tom Tromey <tromey@redhat.com>
12136
12137 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12138 together.
12139
12140 2014-01-20 Tom Tromey <tromey@redhat.com>
12141
12142 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12143 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12144 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12145 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12146 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12147 (struct cmd_list_element) <flags>: Remove.
12148 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12149 doc_allocated>: New fields.
12150 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12151 bitfields.
12152 * maint.c (maintenance_do_deprecate): Update.
12153 * top.c (execute_command): Update.
12154
12155 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12156
12157 * xtensa-linux-nat.c: Include asm/ptrace.h.
12158
12159 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12160
12161 * Makefile.in (SFILES): Add d-support.c.
12162 (COMMON_OBS): Add d-support.o.
12163 * d-lang.h (d_parse_symbol): Add comment, now defined in
12164 d-support.c.
12165 * d-lang.c (parse_call_convention)
12166 (parse_attributes, parse_function_types)
12167 (parse_function_args, parse_type, parse_identifier)
12168 (call_convention_p, d_parse_symbol): Move functions to ...
12169 * d-support.c: ... New file.
12170
12171 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12172
12173 * d-lang.h (d_parse_symbol): Add declaration.
12174 * d-lang.c (extract_identifiers)
12175 (extract_type_info): Remove functions.
12176 (parse_call_convention, parse_attributes)
12177 (parse_function_types, parse_function_args)
12178 (parse_type, parse_identifier, call_convention_p)
12179 (d_parse_symbol): New functions.
12180 (d_demangle): Use d_parse_symbol to demangle D symbols.
12181
12182 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12183
12184 * d-lang.h (struct builtin_d_type): New data type.
12185 (builtin_d_type): Add declaration.
12186 * d-lang.c (d_language_arch_info, build_d_types)
12187 (builtin_d_type): New functions.
12188 (enum d_primitive_types): New data type.
12189 (d_language_defn): Change c_language_arch_info to
12190 d_language_arch_info.
12191 (d_type_data): New static variable.
12192 (_initialize_d_language): Initialize d_type_data.
12193
12194 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12195
12196 * d-lang.h (d_main_name): Add declaration.
12197 * d-lang.c (d_main_name): New function.
12198 * symtab.c (find_main_name): Add call to d_main_name.
12199
12200 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12201
12202 * d-lang.c (d_language_defn): Change macro_expansion_c to
12203 macro_expansion_no.
12204
12205 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12206
12207 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12208
12209 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12210
12211 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12212 gdb_exception" declaration.
12213 * remote.c (getpkt_or_notif_sane): Likewise.
12214
12215 2014-01-17 Doug Evans <dje@google.com>
12216
12217 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12218 function, contents of dirnames_to_char_ptr_vec_append moved here.
12219 (delim_string_to_char_ptr_vec): New function.
12220 (dirnames_to_char_ptr_vec_append): Rewrite.
12221 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12222
12223 2014-01-17 Doug Evans <dje@google.com>
12224
12225 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12226 and moved here ...
12227 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12228 #include "common-utils.h".
12229 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12230 * common/vec.h (VEC_ASSERT_PASS): Update.
12231 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12232 (MACH_CHECK_ERROR): Update.
12233
12234 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12235
12236 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12237 comments.
12238 * gdbarch.h: Regenerate.
12239
12240 2014-01-16 Tom Tromey <tromey@redhat.com>
12241
12242 * value.c (struct value) <regnum>: Move earlier.
12243
12244 2014-01-16 Tom Tromey <tromey@redhat.com>
12245
12246 * remote.c (extended_remote_create_inferior): Rename from
12247 extended_remote_create_inferior_1. Add "ops" argument. Remove
12248 old implementation.
12249
12250 2014-01-16 Pedro Alves <palves@redhat.com>
12251
12252 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12253 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12254 the backchain.
12255
12256 2014-01-16 Doug Evans <dje@google.com>
12257
12258 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12259
12260 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12261
12262 * btrace.h (btrace_thread_flag): New.
12263 (struct btrace_thread_info) <flags>: New.
12264 * record-btrace.c (record_btrace_resume_thread)
12265 (record_btrace_find_thread_to_move, btrace_step_no_history)
12266 (btrace_step_stopped, record_btrace_start_replaying)
12267 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12268 (record_btrace_find_resume_thread): New.
12269 (record_btrace_resume, record_btrace_wait): Extend.
12270 (record_btrace_can_execute_reverse): New.
12271 (record_btrace_open): Fail in non-stop mode.
12272 (record_btrace_set_replay): Split into this, ...
12273 (record_btrace_stop_replaying): ... this, ...
12274 (record_btrace_clear_histories): ... and this.
12275 (init_record_btrace_ops): Init to_can_execute_reverse.
12276 * NEWS: Announce it.
12277
12278 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12279
12280 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12281 (forward_target_decr_pc_after_break)
12282 (target_decr_pc_after_break): New.
12283 * target.c (forward_target_decr_pc_after_break)
12284 (target_decr_pc_after_break): New.
12285 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12286 instead of gdbarch_decr_pc_after_break.
12287 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12288 instead of gdbarch_decr_pc_after_break.
12289 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12290 instead of gdbarch_decr_pc_after_break.
12291 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12292 instead of gdbarch_decr_pc_after_break.
12293 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12294 instead of gdbarch_decr_pc_after_break.
12295 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12296 instead of gdbarch_decr_pc_after_break.
12297
12298 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12299
12300 * btrace.c: Include regcache.h.
12301 (btrace_add_pc): New.
12302 (btrace_enable): Call btrace_add_pc.
12303 (btrace_is_empty): New.
12304 * btrace.h (btrace_is_empty): New.
12305 * record-btrace.c (require_btrace, record_btrace_info): Call
12306 btrace_is_empty.
12307
12308 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12309
12310 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12311 Support delta reads.
12312 (linux_disable_btrace): Change return type.
12313 * common/linux-btrace.h (linux_read_btrace): Change parameters
12314 and return type to allow error reporting. Update users.
12315 (linux_disable_btrace): Change return type. Update users.
12316 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12317 New.
12318 (btrace_error): New.
12319 (btrace_block) <begin>: Comment on BEGIN == 0.
12320 * btrace.c (btrace_compute_ftrace): Start from the end of
12321 the current trace.
12322 (btrace_stitch_trace, btrace_clear_history): New.
12323 (btrace_fetch): Read delta trace, return if replaying.
12324 (btrace_clear): Move clear history code to btrace_clear_history.
12325 (parse_xml_btrace): Throw an error if parsing failed.
12326 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12327 and return type to allow error reporting.
12328 (target_read_btrace): Change parameters and return type to allow
12329 error reporting.
12330 * target.c (target_read_btrace): Update.
12331 * remote.c (remote_read_btrace): Support delta reads. Pass
12332 errors on.
12333 * NEWS: Announce it.
12334
12335 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12336
12337 * record.h (record_btrace_frame_unwind)
12338 (record_btrace_tailcall_frame_unwind): New declarations.
12339 * dwarf2-frame: Include record.h
12340 (dwarf2_frame_cfa): Throw an error for btrace frames.
12341 * record-btrace.c: Include hashtab.h.
12342 (btrace_get_bfun_name): New.
12343 (btrace_call_history): Call btrace_get_bfun_name.
12344 (struct btrace_frame_cache): New.
12345 (bfcache): New.
12346 (bfcache_hash, bfcache_eq, bfcache_new): New.
12347 (btrace_get_frame_function): New.
12348 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12349 (record_btrace_frame_this_id): Compute own id.
12350 (record_btrace_frame_prev_register): Provide PC, throw_error
12351 for all other registers.
12352 (record_btrace_frame_sniffer): Detect btrace frames.
12353 (record_btrace_tailcall_frame_sniffer): New.
12354 (record_btrace_frame_dealloc_cache): New.
12355 (record_btrace_frame_unwind): Add new functions.
12356 (record_btrace_tailcall_frame_unwind): New.
12357 (_initialize_record_btrace): Allocate cache.
12358 * btrace.c (btrace_clear): Call reinit_frame_cache.
12359 * NEWS: Announce it.
12360
12361 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12362
12363 * record-btrace.c (record_btrace_set_replay)
12364 (record_btrace_goto_begin, record_btrace_goto_end)
12365 (record_btrace_goto): New.
12366 (init_record_btrace_ops): Initialize them.
12367 * NEWS: Announce it.
12368
12369 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12370
12371 * record-btrace.c (record_btrace_find_new_threads)
12372 (record_btrace_thread_alive): New.
12373 (init_record_btrace_ops): Initialize to_find_new_threads and
12374 to_thread_alive.
12375
12376 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12377
12378 * record-btrace.c (record_btrace_resume): New.
12379 (record_btrace_wait): New.
12380 (init_record_btrace_ops): Initialize to_wait and to_resume.
12381
12382 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12383
12384 * record-btrace.c (record_btrace_xfer_partial)
12385 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12386 (record_btrace_allow_memory_access): New.
12387 (init_record_btrace_ops): Initialize new methods.
12388 * target.c (raw_memory_xfer_partial): Bail out if target reports
12389 that this memory is not available.
12390
12391 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12392
12393 * target.h (target_ops) <to_insert_breakpoint>
12394 <to_remove_breakpoint>: Add target_ops parameter.
12395 (forward_target_insert_breakpoint): New.
12396 (forward_target_remove_breakpoint): New.
12397 (memory_remove_breakpoint, memory_insert_breakpoint):
12398 Add target_ops parameter.
12399 * target.c (target_insert_breakpoint): Split into this and ...
12400 (forward_target_insert_breakpoint): ... this.
12401 (target_remove_breakpoint): Split into this and ...
12402 (forward_target_remove_breakpoint): ... this.
12403 (debug_to_insert_breakpoint): Add target_ops parameter.
12404 Call forward_target_insert_breakpoint.
12405 (debug_to_remove_breakpoint): Add target_ops parameter.
12406 Call forward_target_remove_breakpoint.
12407 (update_current_target): Do not inherit or default to_insert_breakpoint
12408 and to_remove_breakpoint.
12409 * corelow.c (ignore): Add target_ops parameter.
12410 * exec.c (ignore): Add target_ops parameter.
12411 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12412 Add target_ops parameter.
12413 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12414 Add target_ops parameter.
12415 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12416 Add target_ops parameter.
12417 * record-full.c (record_full_beneath_to_insert_breakpoint)
12418 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12419 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12420 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12421 (record_full_core_remove_breakpoint): Add target_ops parameter.
12422 Update users.
12423 (record_full_beneath_to_insert_breakpoint_ops)
12424 (record_full_beneath_to_remove_breakpoint_ops)
12425 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12426 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12427 tmp_to_remove_breakpoint_ops,
12428 record_full_beneath_to_insert_breakpoint_ops, and
12429 record_full_beneath_to_remove_breakpoint_ops.
12430 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12431 (m32r_remove_breakpoint): Add target_ops parameter.
12432 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12433 Add target_ops parameter.
12434 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12435 Add target_ops parameter.
12436
12437 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12438 Markus Metzger <markus.t.metzger@intel.com>
12439
12440 * record-btrace.c: Include frame-unwind.h.
12441 (record_btrace_frame_unwind_stop_reason)
12442 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12443 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12444 New.
12445 (init_record_btrace_ops): Install it.
12446
12447 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12448
12449 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12450 get_prev_frame_1.
12451
12452 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12453
12454 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12455 earlier.
12456
12457 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12458
12459 * frame-unwind.c: Include target.h.
12460 (frame_unwind_try_unwinder): New function with code from ...
12461 (frame_unwind_find_by_frame): ... here. New variable
12462 unwinder_from_target, call also target_get_unwinder)
12463 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12464 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12465 * target.h (struct target_ops): New fields to_get_unwinder and
12466 to_get_tailcall_unwinder.
12467 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12468
12469 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12470
12471 * record-btrace.c (record_btrace_fetch_registers)
12472 (record_btrace_store_registers)
12473 (record_btrace_to_prepare_to_store): New.
12474 (init_record_btrace_ops): Add the above.
12475
12476 2014-01-16 Tom Tromey <tromey@redhat.com>
12477
12478 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12479 * target.h (struct target_ops) <to_prepare_to_store>: Add
12480 argument.
12481 (target_prepare_to_store): Add argument.
12482 * target.c (debug_to_prepare_to_store): Add argument.
12483 (update_current_target): Update.
12484 * remote.c (remote_prepare_to_store): Add 'self' argument.
12485 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12486 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12487 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12488 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12489 argument.
12490 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12491 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12492 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12493 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12494 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12495
12496 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12497
12498 * btrace.h (replay) <replay>: New.
12499 (btrace_is_replaying): New.
12500 * btrace.c (btrace_clear): Free replay iterator.
12501 (btrace_is_replaying): New.
12502 * record-btrace.c (record_btrace_is_replaying): New.
12503 (record_btrace_info): Print insn number if replaying.
12504 (record_btrace_insn_history): Start at replay position.
12505 (record_btrace_call_history): Start at replay position.
12506 (init_record_btrace_ops): Init to_record_is_replaying.
12507
12508 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12509
12510 * record-btrace.c (record_btrace_insn_history_range): Include
12511 end.
12512 (record_btrace_insn_history_from): Adjust range.
12513 (record_btrace_call_history_range): Include
12514 end.
12515 (record_btrace_call_history_from): Adjust range.
12516 * NEWS: Announce changes.
12517
12518 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12519
12520 * record.h (enum record_print_flag)
12521 <record_print_indent_calls>: New.
12522 * record.c (get_call_history_modifiers): Recognize /c modifier.
12523 (_initialize_record): Document /c modifier.
12524 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12525 Reorder fields. Optionally indent the function name. Update
12526 all users.
12527 * NEWS: Announce changes.
12528
12529 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12530
12531 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12532
12533 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12534
12535 * btrace.c (ftrace_new_function): Start counting at one.
12536 * record-btrace.c (record_btrace_info): Adjust number of calls
12537 and insns.
12538 * NEWS: Announce it.
12539
12540 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12541
12542 * record-btrace.c (btrace_call_history_insn_range): Print
12543 insn range as [begin, end].
12544
12545 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12546
12547 * btrace.h (struct btrace_func_link): New.
12548 (enum btrace_function_flag): New.
12549 (struct btrace_inst): Rename to ...
12550 (struct btrace_insn): ...this. Update all users.
12551 (struct btrace_func) <ibegin, iend>: Remove.
12552 (struct btrace_func_link): New.
12553 (struct btrace_func): Rename to ...
12554 (struct btrace_function): ...this. Update all users.
12555 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12556 (number, level, flags>: New.
12557 (struct btrace_insn_iterator): Rename to ...
12558 (struct btrace_insn_history): ...this.
12559 Update all users.
12560 (struct btrace_insn_iterator, btrace_call_iterator): New.
12561 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12562 (struct btrace_target_info) <begin, end, level>
12563 <insn_history, call_history>: New.
12564 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12565 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12566 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12567 (btrace_call_number, btrace_call_begin, btrace_call_end)
12568 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12569 (btrace_find_function_by_number, btrace_set_insn_history)
12570 (btrace_set_call_history): New.
12571 * btrace.c (btrace_init_insn_iterator)
12572 (btrace_init_func_iterator, compute_itrace): Remove.
12573 (ftrace_print_function_name, ftrace_print_filename)
12574 (ftrace_skip_file): Change
12575 parameter to const.
12576 (ftrace_init_func): Remove.
12577 (ftrace_debug): Use new btrace_function fields.
12578 (ftrace_function_switched): Also consider gaining and
12579 losing symbol information).
12580 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12581 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12582 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12583 New.
12584 (ftrace_new_function): Move. Remove debug print.
12585 (ftrace_update_lines, ftrace_update_insns): New.
12586 (ftrace_update_function): Check for call, ret, and jump.
12587 (compute_ftrace): Renamed to ...
12588 (btrace_compute_ftrace): ...this. Rewritten to compute call
12589 stack.
12590 (btrace_fetch, btrace_clear): Updated.
12591 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12592 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12593 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12594 (btrace_call_number, btrace_call_begin, btrace_call_end)
12595 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12596 (btrace_find_function_by_number, btrace_set_insn_history)
12597 (btrace_set_call_history): New.
12598 * record-btrace.c (require_btrace): Use new btrace thread
12599 info fields.
12600 (record_btrace_info, btrace_insn_history)
12601 (record_btrace_insn_history, record_btrace_insn_history_range):
12602 Use new btrace thread info fields and new iterator.
12603 (btrace_func_history_src_line): Rename to ...
12604 (btrace_call_history_src_line): ...this. Use new btrace
12605 thread info fields.
12606 (btrace_func_history): Rename to ...
12607 (btrace_call_history): ...this. Use new btrace thread info
12608 fields and new iterator.
12609 (record_btrace_call_history, record_btrace_call_history_range):
12610 Use new btrace thread info fields and new iterator.
12611
12612 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12613
12614 * frame.h (frame_id_build_unavailable_stack_special): New.
12615 * frame.c (frame_id_build_unavailable_stack_special): New.
12616
12617 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12618
12619 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12620 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12621 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12622 to gdbarch.
12623 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12624 (i386_insn_is_jump, i386_jmp_p): New.
12625 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12626 insn_is_jump to gdbarch.
12627 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12628 * gdbarch.h: Regenerated.
12629 * gdbarch.c: Regenerated.
12630 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12631 (default_insn_is_jump): New.
12632 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12633 (default_insn_is_jump): New.
12634
12635 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12636
12637 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12638 Change to ...
12639 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12640 (btrace_read_type) <btrace_read_new>: Change to ...
12641 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12642
12643 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12644
12645 * common/linux-btrace.c (linux_read_btrace): Free trace from
12646 previous iteration.
12647
12648 2014-01-15 Doug Evans <dje@google.com>
12649
12650 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12651 uint32_t.
12652
12653 2014-01-15 Tom Tromey <tromey@redhat.com>
12654
12655 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12656 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12657 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12658 (set_objfile_main_name): New function.
12659 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12660 language_of_main>: New fields.
12661 (set_objfile_main_name): Declare.
12662 * symtab.c (find_main_name): Loop over objfiles to find the main
12663 name and language.
12664 (set_main_name): Now static.
12665 (get_main_info): Add comment.
12666 * symtab.h (set_main_name): Don't declare.
12667
12668 2014-01-15 Tom Tromey <tromey@redhat.com>
12669
12670 * symtab.c (main_progspace_key): New global.
12671 (struct main_info): New.
12672 (name_of_main, language_of_main): Remove.
12673 (get_main_info, main_info_cleanup): New function.
12674 (set_main_name, main_name, main_language): Use get_main_info.
12675 (_initialize_symtab): Initialize main_progspace_key.
12676
12677 2014-01-15 Tom Tromey <tromey@redhat.com>
12678
12679 * dbxread.c (process_one_symbol): Update.
12680 * dwarf2read.c (read_partial_die): Update.
12681 * symfile.c (set_initial_language): Call main_language.
12682 * symtab.c (language_of_main): Now static.
12683 (set_main_name): Add 'lang' parameter.
12684 (find_main_name): Update.
12685 (main_language): New function.
12686 (symtab_observer_executable_changed): Update.
12687 * symtab.h (set_main_name): Update.
12688 (language_of_main): Remove.
12689 (main_language): Declare.
12690
12691 2014-01-15 Tom Tromey <tromey@redhat.com>
12692
12693 * symfile.c (init_entry_point_info): Use new "initialized" field.
12694 Update.
12695 * objfiles.h (struct entry_point) <initialized>: New field.
12696 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12697 (struct objfile) <ei>: ...here. Remove.
12698 * objfiles.c (entry_point_address_query): Update.
12699
12700 2014-01-15 Tom Tromey <tromey@redhat.com>
12701
12702 * objfiles.c (entry_point_address_query): Relocate entry point
12703 address.
12704 (objfile_relocate1): Do not relocate entry point address.
12705 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12706 <the_bfd_section_index>: New field.
12707 * symfile.c (init_entry_point_info): Find the entry point's
12708 section.
12709
12710 2014-01-15 Tom Tromey <tromey@redhat.com>
12711
12712 * solib-frv.c (enable_break): Use entry_point_address_query.
12713
12714 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12715
12716 * NEWS: Add note on improved process record-replay on
12717 arm*-linux* targets.
12718
12719 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12720
12721 * arm-tdep.c (enum arm_record_result): New enum.
12722 (arm_record_unsupported_insn): New function.
12723 (arm_record_coproc_data_proc): Removed.
12724 (thumb2_record_ld_st_multiple): New function.
12725 (thumb2_record_ld_st_dual_ex_tbb): New function.
12726 (thumb2_record_data_proc_sreg_mimm): New function.
12727 (thumb2_record_ps_dest_generic): New function.
12728 (thumb2_record_branch_misc_cntrl): New function.
12729 (thumb2_record_str_single_data): New function.
12730 (thumb2_record_ld_mem_hints): New function.
12731 (thumb2_record_ld_word): New function.
12732 (thumb2_record_lmul_lmla_div): New function.
12733 (thumb2_record_decode_insn_handler): New function.
12734 (decode_insn): Add thumb32 instruction handlers.
12735
12736 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12737
12738 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12739 (struct arm_linux_record_tdep): Declare.
12740 (arm_canonicalize_syscall): New function.
12741 (arm_all_but_pc_registers_record): New function.
12742 (arm_linux_syscall_record): New function.
12743 (arm_linux_init_abi): Add syscall recording constructs.
12744 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12745 decoding. (arm_record_coproc_data_proc): Update arm syscall
12746 decoding.
12747 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12748 <arm_syscall_record>: New field.
12749 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12750 gdb_target_obs.
12751
12752 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12753
12754 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12755 register for push instruction recording.
12756
12757 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12758
12759 * arm-tdep.c (thumb_record_misc): Update to correct logical
12760 error while recording ldm, ldmia and pop instructions.
12761
12762 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12763
12764 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12765
12766 2014-01-15 Pedro Alves <palves@redhat.com>
12767
12768 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12769 (go32_resume, go32_fetch_registers, store_register)
12770 (go32_store_registers, go32_prepare_to_store)
12771 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12772 (go32_create_inferior, go32_can_run, go32_terminal_init)
12773 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12774 declarations.
12775
12776 2014-01-15 Tom Tromey <tromey@redhat.com>
12777
12778 * target.h (async_callback_ftype): New typedef.
12779 (struct target_ops) <to_async>: Use it.
12780
12781 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12782
12783 * python/py-value.c (get_field_type): Remove unnecessary curly
12784 braces for single-statement if block.
12785
12786 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12787
12788 * python/py-type.c (convert_field): Add missing empty line
12789 after declarations.
12790
12791 2014-01-14 Doug Evans <dje@google.com>
12792
12793 * symfile.h (expand_symtabs_matching): Renamed from
12794 expand_partial_symbol_names. Update prototype.
12795 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12796 * symfile.c (expand_symtabs_matching): Renamed from
12797 expand_partial_symbol_names. New args file_matcher, kind.
12798 Rename arg fun to symbol_matcher.
12799 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12800 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12801 ada_expand_partial_symbol_name.
12802 (ada_make_symbol_completion_list): Update to call
12803 expand_symtabs_matching.
12804 (ada_add_global_exceptions): Call expand_symtabs_matching.
12805 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12806 call map_symbol_filenames.
12807 * symtab.c (sources_info): Update to call map_symbol_filenames.
12808 (search_symbols): Call expand_symtabs_matching.
12809 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12810 (default_make_symbol_completion_list_break_on): Update to call
12811 expand_symtabs_matching.
12812 (make_source_files_completion_list): Update to call
12813 map_symbol_filenames.
12814
12815 2014-01-14 Doug Evans <dje@google.com>
12816
12817 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12818 (expand_symtabs_symbol_matcher_ftype): New typedef.
12819 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12820 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12821 * symfile.c (expand_partial_symbol_names): Update to use
12822 expand_symtabs_symbol_matcher_ftype.
12823 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12824 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12825 Arg name_matcher renamed to symbol_matcher.
12826 * psymtab.c (recursively_search_psymtabs): Update to use
12827 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12828 sym_matcher.
12829 (expand_symtabs_matching_via_partial): Update to use
12830 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12831 Arg name_matcher renamed to symbol_matcher.
12832
12833 2014-01-14 Doug Evans <dje@google.com>
12834
12835 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12836 (map_partial_symbol_filenames): Ditto.
12837 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12838 (map_partial_symbol_filenames): Ditto.
12839 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12840 (map_partial_symbol_filenames): Ditto.
12841 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12842 (map_partial_symbol_filenames): Ditto.
12843 * symtab.c: Delete #include "psymtab.h".
12844
12845 2014-01-14 Pedro Alves <palves@redhat.com>
12846 Tom Tromey <tromey@redhat.com>
12847
12848 * infrun.c (use_displaced_stepping): Use find_record_target
12849 instead of RECORD_IS_USED.
12850 (adjust_pc_after_break): Use record_full_is_used instead of
12851 RECORD_IS_USED.
12852 * record-btrace.c (record_btrace_open): Call record_preopen
12853 instead of checking RECORD_IS_USED.
12854 * record-full.c (record_full_shortname)
12855 (record_full_core_shortname): New globals.
12856 (record_full_is_used): New function.
12857 (find_full_open): Call record_preopen instead of checking
12858 RECORD_IS_USED.
12859 (init_record_full_ops): Set the target's shortname to
12860 record_full_shortname.
12861 (init_record_full_core_ops): Set the target's shortname to
12862 record_full_core_shortname.
12863 * record-full.h (record_full_is_used): Declare.
12864 * record.c (find_record_target): Make extern.
12865 (record_preopen): New function.
12866 * record.h (RECORD_IS_USED): Delete macro.
12867 (find_record_target, record_preopen): Declare functions.
12868
12869 2014-01-14 Yao Qi <yao@codesourcery.com>
12870
12871 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12872 'len''s type to ULONGEST.
12873 (core_xfer_shared_libraries_aix): Likewise.
12874 * gdbarch.c, gdbarch.h: Regenerated.
12875 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12876 Change type of 'len' to ULONGEST.
12877 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12878 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12879
12880 2014-01-14 Yao Qi <yao@codesourcery.com>
12881
12882 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12883 type of 'len' to ULONGEST.
12884 (linux_xfer_osdata_processgroups): Likewise.
12885 (linux_xfer_osdata_threads): Likewise.
12886 (linux_xfer_osdata_fds): Likewise.
12887 (linux_xfer_osdata_isockets): Likewise.
12888 (linux_xfer_osdata_shm): Likewise.
12889 (linux_xfer_osdata_sem): Likewise.
12890 (linux_xfer_osdata_msg): Likewise.
12891 (linux_common_xfer_osdata): Likewise.
12892 (struct osdata_type) <getter>: Likewise.
12893 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12894 the declaration.
12895
12896 2014-01-14 Yao Qi <yao@codesourcery.com>
12897
12898 * target.h (target_xfer_partial_ftype): Update.
12899 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12900 ULONGEST.
12901 * aix-thread.c (aix_thread_xfer_partial): Change type of
12902 argument 'len' to ULONGEST.
12903 * auxv.c (procfs_xfer_auxv): Likewise.
12904 (ld_so_xfer_auxv): Likewise.
12905 (memory_xfer_auxv): Likewise.
12906 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12907 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12908 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12909 * corelow.c (core_xfer_partial): Likewise.
12910 * ctf.c (ctf_xfer_partial): Likewise.
12911 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12912 '%u'.
12913 (darwin_read_dyld_info): Likewise.
12914 (darwin_xfer_partial): Likewise.
12915 * exec.c (section_table_xfer_memory_partial): Likewise.
12916 (exec_xfer_partial): Likewise.
12917 * exec.h (section_table_xfer_memory_partial): Update
12918 declaration.
12919 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12920 instead of plongest.
12921 (gnu_xfer_partial): Likewise.
12922 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12923 (ia64_hpux_xfer_solib_got): Likewise.
12924 (ia64_hpux_xfer_partial): Likewise.
12925 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12926 * inf-ptrace.c (inf_ptrace_xfer_partial):
12927 * inf-ttrace.c (inf_ttrace_xfer_partial):
12928 * linux-nat.c (linux_xfer_siginfo): Likewise.
12929 (linux_nat_xfer_partial): Likewise.
12930 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12931 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12932 * monitor.c (monitor_xfer_memory): Likewise.
12933 (monitor_xfer_partial): Likewise.
12934 * procfs.c (procfs_xfer_partial): Likewise.
12935 * record-full.c (record_full_xfer_partial): Likewise.
12936 (record_full_core_xfer_partial): Likewise.
12937 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12938 instead of plongest.
12939 (gdbsim_xfer_partial): Likewise.
12940 * remote.c (remote_xfer_partial): Likewise.
12941 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12942 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12943 declaration.
12944 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12945 (rs6000_xfer_shared_libraries): Likewise.
12946 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12947 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12948 (sparc_xfer_partial): Likewise.
12949 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12950 (spu_xfer_partial): Likewise.
12951 * spu-multiarch.c (spu_xfer_partial): Likewise.
12952 * target.c (target_read_live_memory): Likewise.
12953 (memory_xfer_live_readonly_partial): Likewise.
12954 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12955 (target_xfer_partial, default_xfer_partial): Likewise.
12956 (current_xfer_partial): Likewise.
12957 * tracepoint.c (tfile_xfer_partial): Likewise.
12958 * windows-nat.c (windows_xfer_memory): Likewise. Call
12959 pulongest instead of plongest.
12960 (windows_xfer_partial): Likewise.
12961 (windows_xfer_shared_libraries): Likewise.
12962
12963 2014-01-14 Yao Qi <yao@codesourcery.com>
12964
12965 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12966 target_xfer_partial_ftype.
12967
12968 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12969
12970 PR python/15464
12971 PR python/16113
12972 * valops.c (value_struct_elt_bitpos): New function
12973 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12974 object to 'None' if the field name is an empty string ("").
12975 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12976 attribute to look for a field when 'name' is 'None'.
12977 (get_field_type): New function
12978
12979 2014-01-13 Doug Evans <dje@google.com>
12980
12981 PR symtab/16426
12982 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12983 (try_open_dwop_file): Ditto.
12984 * gdb_bfd.c: #include "vec.h".
12985 (bfdp): New typedef.
12986 (struct gdb_bfd_data): New member included_bfds.
12987 (gdb_bfd_unref): Unref all included bfds.
12988 (gdb_bfd_record_inclusion): New function.
12989 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12990
12991 2014-01-13 Tom Tromey <tromey@redhat.com>
12992
12993 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12994
12995 2014-01-13 Tom Tromey <tromey@redhat.com>
12996
12997 * defs.h (use_windows): Remove.
12998 * gdb.c (main): Update.
12999 * main.c (captured_main, gdb_main): Update.
13000 * main.h (struct captured_main_args) <use_windows>: Remove.
13001 * top.c (use_windows): Remove.
13002
13003 2014-01-13 Tom Tromey <tromey@redhat.com>
13004
13005 * defs.h (deprecated_flush_hook): Remove.
13006
13007 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13008
13009 PR threads/16216
13010 * linux-thread-db.c (try_thread_db_load): Add parameter
13011 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13012 (try_thread_db_load_from_pdir_1): Move it there from here.
13013 (try_thread_db_load_from_sdir): Update caller.
13014 (try_thread_db_load_from_dir): Move it there from here.
13015
13016 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13017
13018 * regformats/regdat.sh: Always rewrite the register file.
13019
13020 2014-01-13 Pedro Alves <palves@redhat.com>
13021
13022 * Makefile.in (CHECK_HEADERS): New variable.
13023 (check-headers:): New rule.
13024
13025 2014-01-13 Tom Tromey <tromey@redhat.com>
13026
13027 * cli/cli-setshow.c (do_set_command): Update.
13028 * defs.h (deprecated_set_hook): Remove.
13029 * top.c (deprecated_set_hook): Remove.
13030
13031 2014-01-13 Pedro Alves <palves@redhat.com>
13032
13033 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13034 the tracepoint if the PC is a pseudo-register.
13035
13036 2014-01-13 Tom Tromey <tromey@redhat.com>
13037
13038 * defs.h (XCALLOC): Remove.
13039 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13040 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13041 * dwarf2loc.c (allocate_piece_closure): Likewise.
13042 * elfread.c (elf_symfile_segments): Likewise.
13043 (elf_symfile_segments): Likewise.
13044 * gdbtypes.c (copy_type_recursive): Likewise.
13045 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13046 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13047 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13048 XCALLOC.
13049 * mt-tdep.c (mt_gdbarch_init): Likewise.
13050 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13051 XCALLOC.
13052 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13053 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13054 * registry.c (registry_alloc_data): Likewise.
13055 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13056 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13057 * serial.c (serial_fdopen_ops): Likewise.
13058 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13059 XCALLOC.
13060 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13061 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13062 not XCALLOC.
13063
13064 2014-01-13 Tom Tromey <tromey@redhat.com>
13065
13066 * defs.h (XMALLOC): Remove.
13067 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13068 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13069 * cli-out.c (struct ui_out *): Likewise.
13070 * cli/cli-dump.c (add_dump_command): Likewise.
13071 (add_dump_command): Likewise.
13072 * complaints.c (get_complaints): Likewise.
13073 (find_complaint): Likewise.
13074 * dwarf2-frame.c (execute_cfa_program): Likewise.
13075 * dwarf2read.c (abbrev_table_read_table): Likewise.
13076 * gdbarch.sh: Likewise.
13077 * gdbarch.c: Rebuild.
13078 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13079 * interps.c (interp_new): Likewise.
13080 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13081 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13082 * mi/mi-console.c (mi_console_file_new): Likewise.
13083 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13084 * mi/mi-out.c (mi_out_new): Likewise.
13085 * mi/mi-parse.c (mi_parse): Likewise.
13086 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13087 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13088 * observer.c (xalloc_observer_list_node): Likewise.
13089 * regcache.c (regcache_xmalloc_1): Likewise.
13090 * reggroups.c (reggroup_new): Likewise.
13091 (_initialize_reggroup): Likewise.
13092 * registry.c (register_data_with_cleanup): Likewise.
13093 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13094 * ser-base.c (serial_ttystate): Likewise.
13095 * ser-mingw.c (make_pipe_state): Likewise.
13096 * ser-pipe.c (pipe_open): Likewise.
13097 * serial.c (serial_open): Likewise.
13098 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13099 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13100 (tui_alloc_win_info): Likewise.
13101 (tui_add_content_elements): Likewise.
13102 * tui/tui-file.c (tui_file_new): Likewise.
13103 * tui/tui-out.c (tui_out_new): Likewise.
13104 * ui-file.c (mem_file_new): Likewise.
13105 * ui-out.c (push_level): Likewise.
13106 (make_cleanup_ui_out_end): Likewise.
13107 (append_header_to_list): Likewise.
13108 (ui_out_new): Likewise.
13109 * user-regs.c (user_reg_add_builtin): Likewise.
13110
13111 2014-01-13 Tom Tromey <tromey@redhat.com>
13112
13113 * defs.h (XZALLOC): Remove.
13114 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13115 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13116 (get_ada_tasks_inferior_data): Likewise.
13117 * auto-load.c (get_auto_load_pspace_data): Likewise.
13118 * auxv.c (get_auxv_inferior_data): Likewise.
13119 * bfd-target.c (target_bfd_reopen): Likewise.
13120 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13121 (deprecated_insert_raw_breakpoint): Likewise.
13122 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13123 * corelow.c (core_open): Likewise.
13124 * darwin-nat.c (darwin_check_new_threads): Likewise.
13125 (darwin_attach_pid): Likewise.
13126 * dummy-frame.c (dummy_frame_push): Likewise.
13127 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13128 * dwarf2loc.c (allocate_piece_closure): Likewise.
13129 * elfread.c (elf_symfile_segments): Likewise.
13130 * eval.c (ptrmath_type_p): Likewise.
13131 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13132 * gdbtypes.c (alloc_type_arch): Likewise.
13133 (alloc_type_instance): Likewise.
13134 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13135 * inf-child.c (inf_child_can_use_agent): Likewise.
13136 * inflow.c (get_inflow_inferior_data): Likewise.
13137 * infrun.c (save_infcall_suspend_state): Likewise.
13138 * jit.c (jit_reader_load): Likewise.
13139 (get_jit_objfile_data): Likewise.
13140 (get_jit_program_space_data): Likewise.
13141 (jit_object_open_impl): Likewise.
13142 (jit_symtab_open_impl): Likewise.
13143 (jit_block_open_impl): Likewise.
13144 (jit_frame_sniffer): Likewise.
13145 * linux-fork.c (add_fork): Likewise.
13146 * maint.c (make_command_stats_cleanup): Likewise.
13147 * objfiles.c (get_objfile_pspace_data): Likewise.
13148 * opencl-lang.c (struct lval_closure): Likewise.
13149 * osdata.c (osdata_start_osdata): Likewise.
13150 * progspace.c (new_address_space): Likewise.
13151 (add_program_space): Likewise.
13152 * remote-sim.c (get_sim_inferior_data): Likewise.
13153 * sh-tdep.c (sh_gdbarch_init): Likewise.
13154 * skip.c (Ignore): Likewise.
13155 (skip_delete_command): Likewise.
13156 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13157 (library_list_start_library): Likewise.
13158 (solib_aix_current_sos): Likewise.
13159 * solib-darwin.c (get_darwin_info): Likewise.
13160 (darwin_current_sos): Likewise.
13161 * solib-dsbt.c (get_dsbt_info): Likewise.
13162 * solib-ia64-hpux.c (new_so_list): Likewise.
13163 (ia64_hpux_get_solib_linkage_addr): Likewise.
13164 * solib-spu.c (append_ocl_sos): Likewise.
13165 (spu_current_sos): Likewise.
13166 * solib-svr4.c (get_svr4_info): Likewise.
13167 (svr4_keep_data_in_core): Likewise.
13168 (library_list_start_library): Likewise.
13169 (svr4_default_sos): Likewise.
13170 (svr4_read_so_list): Likewise.
13171 * solib-target.c (library_list_start_library): Likewise.
13172 (solib_target_current_sos): Likewise.
13173 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13174 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13175 * symfile.c (default_symfile_segments): Likewise.
13176 * target-descriptions.c (tdesc_data_init): Likewise.
13177 (tdesc_create_reg): Likewise.
13178 (struct tdesc_type *): Likewise.
13179 (tdesc_create_vector): Likewise.
13180 (tdesc_set_struct_size): Likewise.
13181 (struct tdesc_type *): Likewise.
13182 (tdesc_free_feature): Likewise.
13183 (tdesc_create_feature): Likewise.
13184 * windows-nat.c (windows_add_thread): Likewise.
13185 (windows_make_so): Likewise.
13186 * xml-support.c (gdb_xml_body_text): Likewise.
13187 (gdb_xml_create_parser_and_cleanup): Likewise.
13188 (xml_process_xincludes): Likewise.
13189 * xml-syscall.c (allocate_syscalls_info): Likewise.
13190 (syscall_create_syscall_desc): Likewise.
13191
13192 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13193
13194 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13195 function, with code from i386_stap_parse_special_token.
13196 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13197 (i386_stap_parse_special_token): Move code to the two functions
13198 above; simplify it.
13199
13200 2014-01-09 Pedro Alves <palves@redhat.com>
13201 Hui Zhu <hui@codesourcery.com>
13202
13203 PR gdb/16101
13204 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13205 bp_err_string. Don't mark the location shlib_disabled if the
13206 error thrown wasn't a generic or memory error. Catch errors
13207 thrown while inserting breakpoints in overlayed code. Output
13208 error message of software breakpoints.
13209 * remote.c (remote_insert_breakpoint): If this breakpoint has
13210 target-side commands but this stub doesn't support Z0 packets,
13211 throw NOT_SUPPORTED_ERROR error.
13212 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13213 * target.h (target_insert_breakpoint): Extend comment.
13214 (target_insert_hw_breakpoint): Add comment.
13215
13216 2014-01-08 Pedro Alves <palves@redhat.com>
13217
13218 * remote.c (remote_add_thread): Add threads silently if starting
13219 up.
13220 (remote_notice_new_inferior): If in all-stop, and starting up,
13221 don't call notice_new_inferior.
13222 (get_current_thread): New function, factored out from ...
13223 (add_current_inferior_and_thread): ... this. Adjust.
13224 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13225 found any thread, then select the remote's current thread as GDB's
13226 current thread too.
13227
13228 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13229
13230 * NEWS: Create a new section for the next release branch.
13231 Rename the section of the current branch, now that it has
13232 been cut.
13233
13234 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13235
13236 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13237 * version.in: Bump version to 7.7.50.DATE-cvs.
13238
13239 2014-01-08 Yao Qi <yao@codesourcery.com>
13240
13241 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13242 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13243 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13244
13245 2014-01-08 Yao Qi <yao@codesourcery.com>
13246
13247 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13248 return value of bfd_get_filename to symbol_file_add_from_bfd.
13249
13250 2014-01-08 Pierre Muller <muller@sourceware.org>
13251
13252 Fix PR16201.
13253 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13254 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13255 to prim_record_mininal_symbol_and_info.
13256 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13257 in call to prim_record_minimal_symbol_and_info.
13258 (read_pe_exported_syms): Set index field of section_data.
13259
13260 2014-01-07 Andrew Pinski <apinski@cavium.com>
13261
13262 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13263 * features/aarch64.c: Regenerate.
13264
13265 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13266
13267 * target.c (return_null): Define.
13268 (update_current_target): Use it instead of return_zero for
13269 functions that return a pointer.
13270
13271 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13272
13273 * source.c (add_path): Fix check for duplicated paths in the previously
13274 included paths.
13275
13276 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13277
13278 * ada-lang.c: Remove duplicated include statements.
13279 * alphabsd-nat.c: Ditto.
13280 * amd64-darwin-tdep.c: Ditto.
13281 * amd64fbsd-nat.c: Ditto.
13282 * auto-load.c: Ditto.
13283 * ax-gdb.c: Ditto.
13284 * breakpoint.c: Ditto.
13285 * dbxread.c: Ditto.
13286 * fork-child.c: Ditto.
13287 * gdb_usleep.c: Ditto.
13288 * i386-darwin-tdep.c: Ditto.
13289 * i386fbsd-nat.c: Ditto.
13290 * infcmd.c: Ditto.
13291 * inferior.c: Ditto.
13292 * jv-lang.c: Ditto.
13293 * linux-nat.c: Ditto.
13294 * linux-tdep.c: Ditto.
13295 * m68kbsd-nat.c: Ditto.
13296 * m68klinux-nat.c: Ditto.
13297 * microblaze-tdep.c: Ditto.
13298 * mips-linux-tdep.c: Ditto.
13299 * mn10300-tdep.c: Ditto.
13300 * nto-tdep.c: Ditto.
13301 * opencl-lang.c: Ditto.
13302 * osdata.c: Ditto.
13303 * printcmd.c: Ditto.
13304 * regcache.c: Ditto.
13305 * remote-m32r-sdi.c: Ditto.
13306 * remote.c: Ditto.
13307 * symfile.c: Ditto.
13308 * symtab.c: Ditto.
13309 * tilegx-linux-nat.c: Ditto.
13310 * tilegx-tdep.c: Ditto.
13311 * tracepoint.c: Ditto.
13312 * valops.c: Ditto.
13313 * vaxbsd-nat.c: Ditto.
13314 * windows-nat.c: Ditto.
13315 * xtensa-tdep.c: Ditto.
13316
13317 2014-01-07 Yao Qi <yao@codesourcery.com>
13318
13319 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13320
13321 2014-01-07 Yao Qi <yao@codesourcery.com>
13322 Joel Brobecker <brobecker@adacore.com>
13323
13324 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13325 (pdc_write_regs): Likewise.
13326 (fetch_regs_kernel_thread): Likewise.
13327 (store_regs_kernel_thread): Likewise.
13328
13329 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13330
13331 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13332 tagged type objects to their actual type.
13333
13334 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13335
13336 * ada-valprint.c (print_field_values): Add "language" parameter.
13337 Update calls to print_field_values and print_variant_part.
13338 Pass new parameter "language" in call to val_print instead
13339 of "current_language". Replace call to ada_val_print by call
13340 to val_print.
13341 (print_variant_part): Add "language" parameter.
13342 (ada_val_print_struct_union): Update call to print_field_values.
13343
13344 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13345
13346 * ada-valprint.c (ui_memcpy): Delete.
13347 (ada_print_floating): Update documentation. Add empty line
13348 between between function documentation and implementation.
13349 Delete variable "buffer". Use ui_file_xstrdup in place of
13350 ui_file_put. Minor adjustments following this change.
13351
13352 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13353
13354 * ada-valprint.c (ada_val_print_string): New function,
13355 extracted from ada_val_print_array.
13356 (ada_val_print_array): Replace extracted code by call
13357 to ada_val_print_string followed by a return. Move
13358 "else" branch to the function's top block.
13359
13360 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13361
13362 * ada-valprint.c (ada_val_print_array): Move implementation
13363 down. Rename parameter "offset" and "val" into "offset_aligned"
13364 and "original_value" respectively. Add parameter "offset".
13365
13366 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13367
13368 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13369 re-organizing the code. Change the "???" message printed
13370 when target type is a TYPE_CODE_UNDEF into
13371 "<ref to undefined type>".
13372
13373 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13374
13375 * ada-valprint.c (print_record): Delete, implementation inlined...
13376 (ada_val_print_struct_union): ... here. Remove call to
13377 ada_check_typedef in inlined implementation.
13378
13379 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13380
13381 * ada-valprint.c (ada_val_print_gnat_array): New function,
13382 extracted from ada_val_print_1;
13383 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13384 (ada_val_print_flt, ada_val_print_struct_union)
13385 (ada_val_print_ref): Likewise.
13386 (ada_val_print_1): Delete variables i and elttype.
13387 Replace extracted-out code by call to corresponding
13388 new functions.
13389
13390 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13391
13392 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13393
13394 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13395
13396 * ada-valprint.c (ada_val_print_1): Replace calls to
13397 ada_val_print_1 by calls to val_print.
13398
13399 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13400
13401 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13402 Update calls to self accordingly. Replace calls to c_val_print
13403 by calls to val_print.
13404
13405 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13406
13407 * ada-valprint.c (print_record): Delete declaration.
13408 (adjust_type_signedness, ada_val_print_1): Likewise.
13409 (ada_val_print): Move function implementation down.
13410 (print_variant_part, print_field_values, print_record):
13411 Move function implementation up.
13412
13413 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13414
13415 * python/py-type.c (typy_get_name): New function.
13416 (type_object_getset): Add entry for attribute "name".
13417 * NEWS: Add entry mentioning this new attribute.
13418
13419 2014-01-07 Yao Qi <yao@codesourcery.com>
13420
13421 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13422 statement.
13423
13424 2014-01-07 Yao Qi <yao@codesourcery.com>
13425
13426 * gnu-nat.c (info_port_rights): Add qualifier const to
13427 argument args.
13428
13429 2014-01-07 Yao Qi <yao@codesourcery.com>
13430
13431 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13432
13433 2014-01-07 Yao Qi <yao@codesourcery.com>
13434
13435 * gnu-nat.c (make_inf) Update declaration.
13436 (make_inf): Make it static.
13437 (inf_set_traced): Likewise.
13438 (inf_port_to_thread, inf_task_died_status): Likewise.
13439
13440 2014-01-07 Yao Qi <yao@codesourcery.com>
13441
13442 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13443
13444 2014-01-07 Yao Qi <yao@codesourcery.com>
13445
13446 * gnu-nat.c (_initialize_gnu_nat): Declare.
13447
13448 2014-01-07 Yao Qi <yao@codesourcery.com>
13449
13450 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13451 'enum bfd_endian'.
13452 (struct gdbarch_info) <byte_order>: Change type to
13453 'enum bfd_endian'.
13454 <byte_order_for_code>: Likewise.
13455 * gdbarch.c, gdbarch.h: Regenerated.
13456
13457 2014-01-06 Sasha Smundak <asmundak@google.com>
13458
13459 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13460
13461 2014-01-06 Tom Tromey <tromey@redhat.com>
13462
13463 * doublest.c (convert_doublest_to_floatformat): Use const, not
13464 CONST.
13465 * somread.c (som_symtab_read): Likewise.
13466
13467 2014-01-07 Hui Zhu <hui@codesourcery.com>
13468
13469 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13470 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13471 (gdb_bfd_fopen): Ditto.
13472 (gdb_bfd_openr): Ditto.
13473 (gdb_bfd_openw): Ditto.
13474 (gdb_bfd_openr_iovec): Ditto.
13475 (gdb_bfd_fdopenr): Ditto.
13476 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13477 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13478 with xstrdup.
13479 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13480 with xstrdup.
13481 * symfile-mem.c (symbol_file_add_from_memory): Removed
13482 gdb_bfd_stash_filename.
13483
13484 2014-01-03 Doug Evans <dje@google.com>
13485
13486 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13487 output.
13488
13489 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13490
13491 Update year range in copyright notice of all files.
13492
13493 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13494
13495 * top.c (print_gdb_version): Set copyright year to 2014.
13496
13497 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13498
13499 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13500
13501 For older changes see ChangeLog-2013.
13502 \f
13503 Local Variables:
13504 mode: change-log
13505 left-margin: 8
13506 fill-column: 74
13507 version-control: never
13508 coding: utf-8
13509 End:
This page took 0.319954 seconds and 5 git commands to generate.