Refactor native follow-fork.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-30 Don Breazeal <donb@codesourcery.com>
2
3 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
4 code so as to work with follow_fork_inferior.
5 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
6 (inf_ttrace_create_inferior): Remove reference to
7 inf_ttrace_vfork_ppid.
8 (inf_ttrace_attach): Ditto.
9 (inf_ttrace_detach): Ditto.
10 (inf_ttrace_kill): Use current_inferior instead of
11 inf_ttrace_vfork_ppid.
12 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
13 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
14 inferior away from the parent.
15 * infrun.c (follow_fork): Call follow_fork_inferior instead of
16 target_follow_fork.
17 (follow_fork_inferior): New function.
18 (follow_inferior_reset_breakpoints): Make function static.
19 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
20 * linux-nat.c (linux_child_follow_fork): Move target-independent
21 code to infrun.c:follow_fork_inferior.
22
23 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
24
25 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
26 * gdbarch.c: Regenerate.
27 * gdbarch.h: Likewise.
28 * corelow.c (sniff_core_bfd): Drop presence check for deleted
29 gdbarch method 'regset_from_core_section'.
30 (get_core_register_section): Remove handling for the case that
31 regset == NULL and regset_from_core_section is defined.
32 (get_core_registers): Drop check for deleted method.
33 * procfs.c (procfs_do_thread_registers): Adjust comment.
34
35 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
36
37 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
38 (linux_nat_make_corefile_notes): Remove.
39 (linux_target_install_ops): Do not set target method
40 'make_corefile_notes'.
41 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
42 Remove field.
43 (linux_corefile_thread_callback): Instead of args->collect, call
44 linux_collect_thread_registers.
45 (linux_make_corefile_notes): Remove 'collect' parameter. Return
46 NULL unless there is a regset iterator.
47 (linux_make_corefile_notes_1): Remove.
48 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
49 by linux_make_corefile_notes.
50 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
51
52 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
53
54 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
55 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
56 Remove.
57 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
58
59 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
60
61 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
62 (xtensa_iterate_over_regset_sections): New.
63 (xtensa_gdbarch_init): Adjust gdbarch initialization.
64
65 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
66
67 * vax-tdep.c (vax_regset_from_core_section): Remove.
68 (vax_iterate_over_regset_sections): New.
69 (vax_gdbarch_init): Adjust gdbarch initialization.
70
71 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
72
73 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
74 (tilegx_regset_from_core_section): Remove.
75 (tilegx_iterate_over_regset_sections): New.
76 (tilegx_linux_init_abi): Adjust gdbarch initialization.
77
78 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
79
80 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
81 (sparc_iterate_over_regset_sections): New.
82 (sparc32_gdbarch_init): Adjust gdbarch initialization.
83 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
84 targets.
85 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
86 (sparc64fbsd_init_abi): Call fbsd_init_abi.
87 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
88 target method 'make_corefile_notes'.
89
90 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
91
92 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
93 'sizeof_gregset' and 'sizeof_fpregset'.
94 * sh-tdep.c (sh_regset_from_core_section): Remove.
95 (sh_iterate_over_regset_sections): New.
96 (sh_gdbarch_init): Adjust gdbarch initialization.
97 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
98 sizeof_fpregset.
99 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
100 'sizeof_gregset'.
101
102 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
103
104 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
105 (score7_linux_iterate_over_regset_sections): New.
106 (score_gdbarch_init): Adjust gdbarch initialization.
107
108 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
109
110 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
111 FreeBSD targets.
112 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
113 method 'make_corefile_notes'.
114 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
115 (ppcfbsd_regset_from_core_section): Remove.
116 (ppcfbsd_iterate_over_regset_sections): New.
117 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
118 initialization.
119 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
120 (ppcnbsd_iterate_over_regset_sections): New.
121 (ppcnbsd_init_abi): Adjust.
122 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
123 (ppcobsd_iterate_over_regset_sections): New.
124 (ppcobsd_init_abi): Adjust.
125 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
126 (rs6000_aix_iterate_over_regset_sections): New.
127 (rs6000_aix_init_osabi): Adjust.
128
129 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
130
131 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
132 (nios2_regset_from_core_section): Remove.
133 (nios2_iterate_over_regset_sections): New.
134 (nios2_linux_init_abi): Adjust gdbarch initialization.
135
136 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
137
138 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
139 (am33_iterate_over_regset_sections): New.
140 (am33_linux_init_osabi): Adjust gdbarch initialization.
141
142 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
143
144 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
145 (mips_linux_iterate_over_regset_sections): New.
146 (mips_linux_init_abi): Adjust gdbarch initialization.
147 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
148 (mips64obsd_iterate_over_regset_sections): New.
149 (mips64obsd_init_abi): Adjust.
150 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
151 (mipsnbsd_iterate_over_regset_sections): New.
152 (mipsnbsd_init_abi): Adjust.
153
154 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
155
156 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
157 (m88k_iterate_over_regset_sections): New.
158 (m88k_gdbarch_init): Adjust gdbarch initialization.
159
160 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
161
162 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
163 (ia64_linux_iterate_over_regset_sections): New.
164 (ia64_linux_init_abi): Adjust gdbarch initialization.
165
166 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
167
168 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
169 (m68kbsd_iterate_over_regset_sections): New.
170 (m68kbsd_init_abi): Adjust gdbarch initialization.
171 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
172 (m68k_linux_iterate_over_regset_sections): New.
173 (m68k_linux_init_abi): Adjust gdbarch initialization.
174
175 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
176
177 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
178 (m32r_linux_regset_from_core_section): Remove.
179 (m32r_linux_iterate_over_regset_sections): New.
180 (m32r_linux_init_abi): Adjust gdbarch initialization.
181
182 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
183
184 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
185 (amd64obsd_iterate_over_regset_sections): New.
186 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
187 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
188 Remove.
189 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
190 regset_from_core_section initialization.
191 * i386-tdep.c (i386_regset_from_core_section): Remove.
192 (i386_iterate_over_regset_sections): New.
193 (i386_gdbarch_init): Adjust gdbarch initialization.
194 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
195 (i386_iterate_over_regset_sections): New prototype.
196 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
197 Remove.
198 (i386obsd_aout_iterate_over_regset_sections): New.
199 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
200 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
201 targets.
202 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
203 (amd64fbsd_init_abi): Call fbsd_init_abi.
204 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
205 (i386fbsd4_init_abi): Call fbsd_init_abi.
206 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
207 target method 'make_corefile_notes'.
208 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
209
210 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
211
212 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
213 (hppa_hpux_iterate_over_regset_sections): New.
214 (hppa_hpux_init_abi): Adjust gdbarch initialization.
215 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
216 (hppa_linux_iterate_over_regset_sections): New.
217 (hppa_linux_init_abi): Adjust.
218 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
219 (hppanbsd_iterate_over_regset_sections): New.
220 (hppanbsd_init_abi): Adjust.
221 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
222 (hppaobsd_iterate_over_regset_sections): New.
223 (hppaobsd_init_abi): Adjust.
224
225 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
226
227 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
228 (frv_linux_iterate_over_regset_sections): New.
229 (frv_linux_init_abi): Adjust gdbarch initialization.
230
231 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
232
233 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
234 (armbsd_iterate_over_regset_sections): New prototype.
235 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
236 (armbsd_iterate_over_regset_sections): New.
237 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
238 initialization.
239
240 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
241
242 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
243 (alpha_linux_iterate_over_regset_sections): New.
244 (alpha_linux_init_abi): Adjust gdbarch initialization.
245 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
246 prototype.
247 (alphanbsd_iterate_over_regset_sections): New prototype.
248
249 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
250
251 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
252 Remove.
253 (aarch64_linux_iterate_over_regset_sections): New.
254 (aarch64_linux_init_abi): Adjust gdbarch initialization.
255
256 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
257
258 * fbsd-tdep.c: New file.
259 * fbsd-tdep.h: New file.
260 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
261 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
262 (ALLDEPFILES): Add fbsd-tdep.c.
263
264 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
265
266 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
267 parameter.
268 * gdbarch.h: Regenerate.
269 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
270 iterator.
271 (get_core_register_section): Add parameter 'regset' and use it, if
272 set. Add parameter 'min_size' and verify the bfd section size
273 against it.
274 (get_core_registers_cb): Add parameter 'regset' and pass it to
275 get_core_register section. For the "standard" register sections
276 ".reg" and ".reg2", set an appropriate default for human_name.
277 (get_core_registers): Don't abort when the gdbarch has an iterator
278 but no regset_from_core_section. Add NULL/0 for parameters
279 'regset'/'min_size' in calls to get_core_register_section.
280 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
281 'regset' and use it instead of calling the
282 regset_from_core_section gdbarch method.
283 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
284 * i386-tdep.c (i386_supply_xstateregset)
285 (i386_collect_xstateregset, i386_xstateregset): Moved to
286 i386-linux-tdep.c.
287 (i386_regset_from_core_section): Drop handling for .reg-xfp and
288 .reg-xstate.
289 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
290 core file support only if the regset iterator hasn't been set.
291 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
292 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
293 Moved from i386-tdep.c and renamed to *_linux*.
294 (i386_linux_iterate_over_regset_sections): Add regset parameter to
295 each callback invocation. Allow any .reg-xstate size when reading
296 from a core file.
297 * amd64-tdep.c (amd64_supply_xstateregset)
298 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
299 amd64-linux-tdep.c.
300 (amd64_regset_from_core_section): Remove.
301 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
302 install an amd64-specific regset_from_core_section gdbarch method.
303 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
304 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
305 Moved from amd64-tdep.c and renamed to *_linux*.
306 (amd64_linux_iterate_over_regset_sections): Add regset parameter
307 to each callback invocation. Allow any .reg-xstate size when
308 reading from a core file.
309 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
310 (arm_linux_iterate_over_regset_sections): Add regset parameter to
311 each callback invocation.
312 (arm_linux_init_abi): No longer set the regset_from_core_section
313 gdbarch method.
314 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
315 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
316 each callback invocation.
317 (ppc_linux_init_abi): No longer set the regset_from_core_section
318 gdbarch method.
319 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
320 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
321 (s390_regset_from_core_section): Remove.
322 (s390_iterate_over_regset_sections): Add regset parameter to each
323 callback invocation.
324 (s390_gdbarch_init): No longer set the regset_from_core_section
325 gdbarch method. Drop initialization of deleted tdep fields.
326
327 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
328
329 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
330 (amd64_linux_iterate_over_regset_sections): New.
331 (amd64_linux_init_abi_common): Don't install the regset section
332 list, but the new iterator in gdbarch.
333 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
334 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
335 (arm_linux_iterate_over_regset_sections): ...here. New function.
336 (arm_linux_init_abi): Set iterator instead of section list.
337 * corelow.c (get_core_registers_cb): New function, logic moved
338 from...
339 (get_core_registers): ...loop body here. Use new iterator method
340 instead of walking through the regset section list.
341 * gdbarch.sh: Remove 'core_regset_sections'. New method
342 'iterate_over_regset_sections'. New typedef
343 'iterate_over_regset_sections_cb'.
344 * gdbarch.c: Regenerate.
345 * gdbarch.h: Likewise.
346 * i386-linux-tdep.c (i386_linux_regset_sections)
347 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
348 Remove.
349 (i386_linux_iterate_over_regset_sections): New.
350 (i386_linux_init_abi): Don't choose a regset section list, but
351 install new iterator in gdbarch.
352 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
353 (linux_collect_regset_section_cb): New function, logic moved
354 from...
355 (linux_collect_thread_registers): ...loop body here. Use iterator
356 method instead of walking through list.
357 (linux_make_corefile_notes_1): Check for presence of iterator
358 method instead of regset section list.
359 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
360 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
361 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
362 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
363 (ppc_linux_iterate_over_regset_sections): ...here. New function.
364 (ppc_linux_init_abi): Don't choose from above regset section
365 lists, but install new iterator in gdbarch.
366 * regset.h (struct core_regset_section): Remove.
367 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
368 have_linux_v1, have_linux_v2, and have_tdb.
369 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
370 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
371 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
372 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
373 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
374 (s390_iterate_over_regset_sections): ...here. New function. Use
375 new tdep fields.
376 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
377 regset section lists, but install new iterator.
378
379 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
380
381 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
382
383 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
384
385 * progspace.c (print_program_space): Don't prune program spaces
386 before printing them.
387
388 2014-09-25 Pedro Alves <palves@redhat.com>
389
390 * infrun.c (user_visible_resume_ptid): Don't check
391 singlestep_breakpoints_inserted_p.
392
393 2014-09-25 Pedro Alves <palves@redhat.com>
394
395 * breakpoint.c (should_be_inserted): Add debug output.
396
397 2014-09-25 Pedro Alves <palves@redhat.com>
398
399 * infrun.c (stepping_past_instruction_at)
400 (clear_exit_convenience_vars): Point at infrun.h instead of
401 inferior.h.
402 (handle_signal_stop): Fix typo.
403
404 2014-09-24 Yao Qi <yao@codesourcery.com>
405
406 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
407 bitmask.
408
409 2014-09-22 Gary Benson <gbenson@redhat.com>
410
411 * target.c (target_stop): Updated comment.
412
413 2014-09-22 Gary Benson <gbenson@redhat.com>
414
415 * target/target.h (target_stop_ptid): Renamed as...
416 (target_stop_and_wait): New function. Updated comment.
417 All uses updated.
418 (target_continue_ptid): Renamed as...
419 (target_continue_no_signal): New function. Updated comment.
420 All uses updated.
421
422 2014-09-22 Pedro Alves <palves@redhat.com>
423
424 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
425 and "auto" merged.
426 * breakpoint.c (enum ugll_insert_mode): New enum.
427 (always_inserted_mode): Now a plain boolean.
428 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
429 (breakpoints_always_inserted_mode): Delete.
430 (breakpoints_should_be_inserted_now): New function.
431 (insert_breakpoints): Pass UGLL_INSERT to
432 update_global_location_list instead of calling
433 insert_breakpoint_locations manually.
434 (create_solib_event_breakpoint_1): New, factored out from ...
435 (create_solib_event_breakpoint): ... this.
436 (create_and_insert_solib_event_breakpoint): Use
437 create_solib_event_breakpoint_1 instead of calling
438 insert_breakpoint_locations manually.
439 (update_global_location_list): Change parameter type from boolean
440 to enum ugll_insert_mode. All callers adjusted. Adjust to use
441 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
442 (update_global_location_list_nothrow): Change parameter type from
443 boolean to enum ugll_insert_mode.
444 (_initialize_breakpoint): "breakpoint always-inserted" option is
445 now a boolean command. Update help text.
446 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
447 (breakpoints_should_be_inserted_now): New declaration.
448 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
449 Remove breakpoints_always_inserted_mode check.
450 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
451 * remote.c (remote_start_remote): Likewise.
452
453 2014-09-22 Pedro Alves <palves@redhat.com>
454
455 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
456 (insert_breakpoints): Don't call insert_breakpoint_locations here.
457 Instead, pass UGLL_INSERT to update_global_location_list.
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 (create_solib_event_breakpoint_1): New, factored out from ...
462 (create_solib_event_breakpoint): ... this.
463 (create_and_insert_solib_event_breakpoint): Use
464 create_solib_event_breakpoint_1 instead of calling
465 insert_breakpoint_locations manually.
466 (update_global_location_list): Handle UGLL_INSERT.
467
468 2014-09-22 Pedro Alves <palves@redhat.com>
469
470 * breakpoint.c (enum ugll_insert_mode): New enum.
471 (update_global_location_list)
472 (update_global_location_list_nothrow): Change parameter type from
473 boolean to enum ugll_insert_mode. All callers adjusted.
474
475 2014-09-19 Joel Brobecker <brobecker@adacore.com>
476
477 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
478 SystemTap support in GDB.
479
480 2014-09-19 Don Breazeal <donb@codesourcery.com>
481
482 * linux-nat.c (linux_handle_extended_wait): Call
483 linux_ptrace_get_extended_event.
484 (wait_lwp): Call linux_is_extended_waitstatus.
485 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
486 and linux_is_extended_waitstatus.
487 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
488 linux_ptrace_get_extended_event.
489 (linux_ptrace_get_extended_event): New function.
490 (linux_is_extended_waitstatus): New function.
491 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
492 (linux_is_extended_waitstatus): New declarations.
493
494 2014-09-19 Yao Qi <yao@codesourcery.com>
495
496 * dwarf2read.c (dwarf_decode_lines): Update declaration.
497 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
498 comments. Callers update.
499 (dwarf_decode_lines): Likewise.
500 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
501 comments. Skip the line table if 'lowpc' is greater than
502 'address'. Don't check
503 dwarf2_per_objfile->has_section_at_zero.
504
505 2014-09-18 Doug Evans <dje@google.com>
506
507 * NEWS: Mention new "producer" attribute of gdb.Symtab.
508 * python/py-symtab.c (stpy_get_producer): New function.
509 (symtab_object_getset): Add "producer" attribute.
510
511 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
512
513 PR gdb/17384
514 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
515 (do_captured_read_memory_integer): Remove.
516 (safe_read_memory_integer): Use target_read_memory directly instead
517 of catching errors in do_captured_read_memory_integer.
518
519 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
520
521 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
522 not gdb/doc.
523
524 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
525
526 * objc-lang.c (find_implementation_from_class): Remove dead code.
527
528 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
529
530 PR cli/7233
531 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
532 "fprintf_unfiltered (gdb_stdlog...)".
533
534 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
535
536 PR breakpoints/12526
537 * breakpoint.h (struct watchpoint): New fields val_bitpos and
538 val_bitsize.
539 * breakpoint.c (watch_command_1): Use these fields to retain
540 bitfield information.
541 (extract_bitfield_from_watchpoint_value): New function.
542 (watchpoint_check): Use it.
543 (update_watchpoint): Use it. Optimize the address and length of a
544 HW watchpoint pointing to a bitfield.
545 * value.h (unpack_value_bitfield): New prototype.
546 * value.c (unpack_value_bitfield): Make extern.
547
548 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
549
550 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
551 x86-dregs.o.
552 * gnu-nat.c (inf_threads): New function.
553 * gnu-nat.h (inf_threads_ftype): New typedef.
554 (inf_threads): New declaration.
555 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
556 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
557 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
558 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
559 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
560 (i386_gnu_dr_get_control): New functions.
561 (reg_addr): New structure.
562 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
563 i386 debugging register hooks.
564 * NEWS: Mention this.
565
566 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
567
568 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
569 vector data transfer instructions.
570 (arm_record_coproc_data_proc): Updated.
571
572 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
573
574 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
575 arm_record_exreg_ld_st_insn.
576 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
577 load/store insns.
578
579 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
580
581 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
582 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
583 processing instructions.
584
585 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
586
587 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
588 for advance SIMD struct ld/st insn.
589 (thumb2_record_decode_insn_handler): Replace stub handler with
590 thumb2_record_asimd_struct_ld_st.
591
592 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
593
594 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
595 for asimd, vfp and coprocessor insns.
596 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
597 and coprocessor insns.
598 (thumb2_record_coproc_insn): New function.
599 (thumb2_record_decode_insn_handler): Update coprocessor insns record
600 handlers.
601 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
602 opcode 110 insns.
603
604 2014-09-13 Doug Evans <xdje42@gmail.com>
605
606 * NEWS: Mention new "queue-signal" command.
607 * infcmd.c (queue_signal_command): New function.
608 (_initialize_infcmd): Add new queue-signal command.
609
610 2014-09-13 Doug Evans <xdje42@gmail.com>
611
612 * linux-nat.c (wait_lwp): Add debugging printf.
613 (linux_nat_wait_1): Ditto.
614
615 2014-09-12 Pedro Alves <palves@redhat.com>
616
617 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
618 (create_and_insert_solib_event_breakpoint): New functions.
619 * breakpoint.h (create_and_insert_solib_event_breakpoint)
620 (remove_solib_event_breakpoints_at_next_stop): New declarations.
621 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
622 (remove_dbx_link_breakpoint): Delete function.
623 (insert_dbx_link_bpt_in_file): Use
624 create_and_insert_solib_event_breakpoint instead of
625 deprecated_insert_raw_breakpoint.
626 (procfs_wait): Don't check whether we hit __dbx_link here.
627 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
628 here.
629 * solib-irix.c (base_breakpoint): Delete global.
630 (disable_break): Delete function.
631 (enable_break): Use create_solib_event_breakpoint
632 instead of deprecated_insert_raw_breakpoint.
633 (irix_solib_handle_event): New function.
634 (irix_solib_create_inferior_hook): Don't run the target or disable
635 the mapping-complete breakpoint here.
636 (_initialize_irix_solib): Install irix_solib_handle_event as
637 so_ops->handle_event hook.
638
639 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
640 Ulrich Weigand  <uweigand@de.ibm.com>
641
642 PR tdep/17379
643 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
644 instead of read_memory_unsigned_integer.
645
646 2014-09-12 Gary Benson <gbenson@redhat.com>
647
648 * nat/linux-waitpid.c: Include common-defs.h.
649 [GDBSERVER]: Add FIXME comment.
650 [!GDBSERVER]: Don't include defs.h or signal.h.
651 (linux_debug) [!GDBSERVER]: Remove empty block.
652
653 2014-09-12 Gary Benson <gbenson@redhat.com>
654
655 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
656 Don't include defs.h or server.h.
657
658 2014-09-12 Gary Benson <gbenson@redhat.com>
659
660 * nat/linux-btrace.c: Include common-defs.h.
661 Don't include defs.h, server.h or gdbthread.h.
662 * nat/linux-btrace.h (struct target_ops): New forward declaration.
663
664 2014-09-12 Gary Benson <gbenson@redhat.com>
665
666 * common/agent.c: Include common-defs.h.
667 Don't include defs.h or server.h.
668 * common/buffer.c: Likewise.
669 * common/common-debug.c: Likewise.
670 * common/common-utils.c: Likewise.
671 * common/errors.c: Likewise.
672 * common/filestuff.c: Likewise.
673 * common/format.c: Likewise.
674 * common/gdb_vecs.c: Likewise.
675 * common/print-utils.c: Likewise.
676 * common/ptid.c: Likewise.
677 * common/rsp-low.c: Likewise.
678 * common/signals.c: Likewise.
679 * common/vec.c: Likewise.
680 * common/xml-utils.c: Likewise.
681 * nat/linux-osdata.c: Likewise.
682 * nat/linux-procfs.c: Likewise.
683 * nat/linux-ptrace.c: Likewise.
684 * nat/mips-linux-watch.c: Likewise.
685 * target/waitstatus.c: Likewise.
686
687 2014-09-12 Tom Tromey <tromey@redhat.com>
688 Gary Benson <gbenson@redhat.com>
689
690 * common/common-regcache.h: New file.
691 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
692 * regcache.h: Include common-regcache.h.
693 (regcache_read_pc): Don't declare.
694 * regcache.c (get_thread_regcache_for_ptid): New function.
695 * nat/linux-btrace.c: Don't include regcache.h.
696 Include common-regcache.h.
697 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
698
699 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
700
701 * regcache.h (struct regset): Declare.
702
703 2014-09-11 Pedro Alves <palves@redhat.com>
704
705 PR gdb/17347
706 * main.c: Include "infrun.h".
707 (catch_command_errors, catch_command_errors_const): Wait for the
708 foreground command to complete.
709 * top.c (maybe_wait_sync_command_done): New function, factored out
710 from ...
711 (maybe_wait_sync_command_done): ... here.
712 * top.h (maybe_wait_sync_command_done): New declaration.
713
714 2014-09-11 Tom Tromey <tromey@redhat.com>
715 Gary Benson <gbenson@redhat.com>
716
717 * common/symbol.h: New file.
718 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
719 * minsyms.c (find_minimal_symbol_address): New function.
720 * common/agent.c: Include common/symbol.h.
721 [!GDBSERVER]: Don't include objfiles.h.
722 (agent_look_up_symbols): Use find_minimal_symbol_address.
723
724 2014-09-11 Gary Benson <gbenson@redhat.com>
725
726 * target/target.h (target_stop_ptid, target_continue_ptid):
727 Declare.
728 * target.c (target_stop_ptid, target_continue_ptid): New
729 functions.
730 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
731 (agent_run_command): Always use target_stop_ptid and
732 target_continue_ptid.
733
734 2014-09-11 Tom Tromey <tromey@redhat.com>
735 Gary Benson <gbenson@redhat.com>
736
737 * target/target.h: New file.
738 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
739 * target.h: Include target/target.h.
740 (target_read_memory, target_write_memory): Don't declare.
741 * target.c (target_read_uint32): New function.
742 * common/agent.c: Include target/target.h.
743 [!GDBSERVER]: Don't include target.h.
744 (helper_thread_id): Type changed to uint32_t.
745 (agent_get_helper_thread_id): Use target_read_uint32.
746 (agent_run_command): Always use target_read_memory and
747 target_write_memory.
748 (agent_capability): Type changed to uint32_t.
749 (agent_capability_check): Use target_read_uint32.
750
751 2014-09-11 Gary Benson <gbenson@redhat.com>
752
753 * common/common-debug.h (show_debug_regs): Declare.
754 * common/common-debug.c (show_debug_regs): Define.
755 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
756 all uses with show_debug_regs. Replace all uses that considered
757 debug_hw_points as a multi-value integer with straight boolean
758 uses.
759 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
760 with show_debug_regs.
761 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
762 all uses with show_debug_regs.
763 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
764 uses with show_debug_regs.
765
766 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
767
768 * findvar.c (address_from_register): Handle targets requiring
769 a special conversion routine even for plain pointer types.
770
771 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
772
773 * rs6000-nat.c (exec_one_dummy_insn): Remove.
774 (store_register): Do not call exec_one_dummy_insn.
775
776 2014-09-10 Joel Brobecker <brobecker@adacore.com>
777
778 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
779 dereference it first. Use value_enclosing_type instead of
780 value_type.
781 (ada_array_length): Likewise.
782
783 2014-09-10 Joel Brobecker <brobecker@adacore.com>
784
785 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
786 Adjust function implementation and documentation accordingly.
787 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
788 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
789 Update call to ada_value_ptr_subscript.
790
791 2014-09-10 Joel Brobecker <brobecker@adacore.com>
792
793 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
794 instead of VAL's type.
795
796 2014-09-10 Joel Brobecker <brobecker@adacore.com>
797
798 * amd64-linux-nat.c: Add <sys/uio.h> #include.
799
800 2014-09-09 Doug Evans <xdje42@gmail.com>
801
802 PR guile/17367
803 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
804 last parameter to pkg-config, not first.
805 * configure.ac: Pass --with-guile provided pkg-config path to
806 GDB_GUILE_PROGRAM_NAMES.
807 * configure: Regenerate.
808
809 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
810
811 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
812 Bertazi".
813
814 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
815
816 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
817 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
818 the list of sections determining GDB_OSABI_IRIX.
819
820 2014-09-09 James Hogan <james.hogan@imgtec.com>
821
822 * MAINTAINERS (Write After Approval): Add "James Hogan".
823
824 2014-09-09 James Hogan <james.hogan@imgtec.com>
825
826 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
827
828 2014-09-09 Joel Brobecker <brobecker@adacore.com>
829
830 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
831
832 2014-09-08 Doug Evans <xdje42@gmail.com>
833
834 PR 17247
835 * guile.c: #include <signal.h>.
836 (_initialize_guile): Block SIGCHLD while initializing Guile.
837
838 Replaces the following, which is reverted.
839
840 2014-07-26 Doug Evans <xdje42@gmail.com>
841
842 PR 17185
843 * configure.ac: Add check for header gc/gc.h.
844 Add check for function setenv.
845 * configure: Regenerate.
846 * config.in: Regenerate.
847 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
848
849 2014-09-08 Doug Evans <xdje42@gmail.com>
850
851 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
852 with named constant. Fix style of pointer comparison.
853 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
854
855 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
856
857 PR gdb/17035
858 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
859 decide whether we display the command on "show user".
860 * cli/cli-script.c (show_user_1): Only verify cmdlines after
861 printing command name.
862 * cli/cli-decode.h (cli_user_command_p): Declare new function.
863 * cli/cli-decode.c (cli_user_command_p): Create helper function
864 to verify whether cmd_list_element is a user-defined command.
865
866 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
867
868 PR python/17355
869 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
870 Fix goto out of TRY_CATCH.
871
872 2014-09-06 Doug Evans <xdje42@gmail.com>
873 Tom Tromey <tromey@redhat.com>
874
875 PR 15276
876 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
877 $_any_caller_matches.
878 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
879 * python/lib/gdb/function/caller_is.py: New file.
880
881 2014-09-06 Doug Evans <xdje42@gmail.com>
882
883 * infcmd.c (program_info): Fix typo.
884
885 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
886
887 PR gdb/17235
888 * stap-probe.c (stap_parse_single_operand): Delete unused variable
889 'number'. New variable 'has_digit'. Rewrite code to deal with
890 subexpressions on SDT probes.
891
892 2014-09-04 Pedro Alves <palves@redhat.com>
893
894 * c-exp.y (parse_number): Skip handling base-switching prefixes if
895 the input is only one character long.
896
897 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
898
899 PR fortran/17237
900 * f-valprint.c (f_val_print): Specify the correct print option to
901 use when printing integer values.
902
903 2014-09-04 Gary Benson <gbenson@redhat.com>
904
905 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
906 Remove code to cope with LWPs wrapped as PIDs.
907 Add assertions to ensure no wrapped LWPs are passed.
908
909 2014-09-04 Pedro Alves <palves@redhat.com>
910
911 * value.c (value_ranges_copy_adjusted): New function, factored out
912 from ...
913 (value_contents_copy_raw): ... here.
914 (unpack_value_bits_as_long_1): Rename back to ...
915 (unpack_bits_as_long): ... this. Remove 'original_value' and
916 'result' parameters. Change return type to LONGEST.
917 (unpack_value_bits_as_long): Delete.
918 (unpack_value_field_as_long_1): Delete.
919 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
920 (unpack_value_bitfield): New function.
921 (value_field_bitfield): Reimplement using unpack_value_bitfield.
922 (value_fetch_lazy): Use unpack_value_bitfield.
923 * value.h (unpack_value_bits_as_long): Delete declaration.
924
925 2014-09-03 Sasha Smundak <asmundak@google.com>
926
927 * python/py-frame.c (frapy_read_register): New function.
928
929 2014-09-03 James Hogan <james.hogan@imgtec.com>
930
931 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
932 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
933
934 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
935
936 PR python/16699
937 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
938 function.
939 (add_cmd): Set "completer_handle_brkchars" to NULL.
940 * cli/cli-decode.h (struct cmd_list_element)
941 <completer_handle_brkchars>: New field.
942 * command.h (completer_ftype_void): New typedef.
943 (set_cmd_completer_handle_brkchars): New prototype.
944 * completer.c (set_gdb_completion_word_break_characters): New
945 function.
946 (complete_line_internal): Call "completer_handle_brkchars"
947 callback from command.
948 * completer.h: Include "command.h".
949 (set_gdb_completion_word_break_characters): New prototype.
950 * python/py-cmd.c (cmdpy_completer_helper): New function.
951 (cmdpy_completer_handle_brkchars): New function.
952 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
953 (cmdpy_init): Set completer_handle_brkchars to
954 cmdpy_completer_handle_brkchars.
955
956 2014-09-03 Gary Benson <gbenson@redhat.com>
957
958 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
959 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
960 Loop conditions changed to equivalent form.
961 (struct x86_debug_reg_state): Updated dr_ref_count comment.
962 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
963 ALL_DEBUG_ADDRESS_REGISTERS.
964
965 2014-09-03 Joel Brobecker <brobecker@adacore.com>
966
967 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
968 description fix.
969
970 2014-09-02 Doug Evans <dje@google.com>
971
972 * typeprint.c (find_global_typedef): Fix comment.
973
974 2014-09-02 Gary Benson <gbenson@redhat.com>
975
976 * i386-nat.h: Renamed as...
977 * x86-nat.h: New file. All type, function and variable name
978 prefixes changed from "i386_" to "x86_". All references updated.
979 * i386-nat.c: Renamed as...
980 * x86-nat.c: New file. All type, function and variable name
981 prefixes changed from "i386_" to "x86_". All references updated.
982 * common/i386-xstate.h: Renamed as...
983 * common/x86-xstate.h: New file. All type, function and variable
984 name prefixes changed from "i386_" to "x86_". All references
985 updated.
986 * nat/i386-cpuid.h: Renamed as...
987 * nat/x86-cpuid.h: New file. All type, function and variable name
988 prefixes changed from "i386_" to "x86_". All references updated.
989 * nat/i386-gcc-cpuid.h: Renamed as...
990 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
991 name prefixes changed from "i386_" to "x86_". All references
992 updated.
993 * nat/i386-dregs.h: Renamed as...
994 * nat/x86-dregs.h: New file. All type, function and variable name
995 prefixes changed from "i386_" to "x86_". All references updated.
996 * nat/i386-dregs.c: Renamed as...
997 * nat/x86-dregs.c: New file. All type, function and variable name
998 prefixes changed from "i386_" to "x86_". All references updated.
999
1000 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1001
1002 * varobj.c (_initialize_varobj): Move to the end of file.
1003
1004 2014-08-29 Gary Benson <gbenson@redhat.com>
1005
1006 * common/common-exceptions.h: New file.
1007 * common/common-exceptions.c: Likewise.
1008 * Makefile.in (SFILES): Add common/common-exceptions.c.
1009 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1010 (COMMON_OBS): Add common-exceptions.o.
1011 (common-exceptions.o): New rule.
1012 * exceptions.h (common-exceptions.h): Include.
1013 (gdb_setjmp.h): Do not include.
1014 (return_reason): Moved to common-exceptions.h.
1015 (enum return_reason): Likewise.
1016 (RETURN_MASK): Likewise.
1017 (typedef return_mask): Likewise.
1018 (enum errors): Likewise.
1019 (struct gdb_exception): Likewise.
1020 (exceptions_state_mc_init): Likewise.
1021 (exceptions_state_mc_action_iter): Likewise.
1022 (exceptions_state_mc_action_iter_1): Likewise.
1023 (TRY_CATCH): Likewise.
1024 (throw_exception): Likewise.
1025 (throw_verror): Likewise.
1026 (throw_vquit): Likewise.
1027 (throw_error): Likewise.
1028 (throw_quit): Likewise.
1029 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1030 (enum catcher_action): Likewise.
1031 (struct catcher): Likewise.
1032 (current_catcher): Likewise.
1033 (catcher_list_size): Likewise.
1034 (exceptions_state_mc_init): Likewise.
1035 (catcher_pop): Likewise.
1036 (exceptions_state_mc): Likewise.
1037 (exceptions_state_mc_action_iter): Likewise.
1038 (exceptions_state_mc_action_iter_1): Likewise.
1039 (throw_exception): Likewise.
1040 (exception_messages): Likewise.
1041 (exception_messages_size): Likewise.
1042 (throw_it): Likewise.
1043 (throw_verror): Likewise.
1044 (throw_vquit): Likewise.
1045 (throw_error): Likewise.
1046 (throw_quit): Likewise.
1047 (prepare_to_throw_exception): New function.
1048
1049 2014-08-29 Gary Benson <gbenson@redhat.com>
1050
1051 * common/gdb_setjmp.h: New file.
1052 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1053 * configure.ac: Move sigsetjmp check...
1054 * common/common.m4: ...here.
1055 * configure: Regenerate.
1056 * cp-support.c (SIGJMP_BUF): Delete.
1057 (SIGSETJMP): Likewise.
1058 (SIGLONGJMP): Likewise.
1059 * exceptions.h (gdb_setjmp.h): Include.
1060 (setjmp.h): Do not include.
1061 (EXCEPTIONS_SIGJMP_BUF): Delete.
1062 (EXCEPTIONS_SIGSETJMP): Likewise.
1063 (EXCEPTIONS_SIGLONGJMP): Likewise.
1064 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1065 from gdb_setjmp.h.
1066 * exceptions.c: Likewise.
1067
1068 2014-08-29 Gary Benson <gbenson@redhat.com>
1069
1070 * cleanups.h: Moved to...
1071 * common/cleanups.h: New file.
1072 * cleanups.c: Moved to...
1073 * common/cleanups.c: New file. Include common-defs.h and
1074 cleanups.h. Do not include defs.h.
1075 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1076 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1077 (cleanups.o): New rule.
1078
1079 2014-08-29 Gary Benson <gbenson@redhat.com>
1080
1081 * common/errors.h (internal_warning): New declaration.
1082 (internal_vwarning): Likewise.
1083 * common/errors.c (internal_warning): New function.
1084 * utils.h (internal_warning): Don't declare.
1085 (internal_vwarning): Likewise.
1086 * utils.c (internal_warning): Removed.
1087
1088 2014-08-29 Gary Benson <gbenson@redhat.com>
1089
1090 * main.c (captured_main): Use warning during startup.
1091 Prefix startup warning messages with command name.
1092
1093 2014-08-29 Gary Benson <gbenson@redhat.com>
1094
1095 * main.c (captured_main): Handle usage errors with error.
1096
1097 2014-08-29 Gary Benson <gbenson@redhat.com>
1098
1099 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1100 exit pair with a call to error. Wrap the message with _().
1101
1102 2014-08-29 Gary Benson <gbenson@redhat.com>
1103
1104 * main.c (captured_main): Replace a fprintf/exit
1105 pair with a call to error. Wrap the message with _().
1106
1107 2014-08-29 Gary Benson <gbenson@redhat.com>
1108
1109 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1110 pairs with calls to error. Wrap the message with _().
1111
1112 2014-08-29 Gary Benson <gbenson@redhat.com>
1113
1114 * utils.c (vwarning): Protect calls to target_terminal_ours
1115 and wrap_here.
1116
1117 2014-08-29 Gary Benson <gbenson@redhat.com>
1118
1119 * exceptions.c (print_flush): Protect calls to
1120 target_terminal_ours and wrap_here.
1121
1122 2014-08-29 Gary Benson <gbenson@redhat.com>
1123
1124 * utils.h (filtered_printing_initialized): New declaration.
1125 * utils.c (abort_with_message): New function.
1126 (internal_vproblem): Use abort_with_message for first level
1127 recursive internal problems, and if gdb_stderr is not set up.
1128 Protect calls to target_terminal_ours, begin_line and query.
1129
1130 2014-08-28 Doug Evans <dje@google.com>
1131
1132 * symtab.c (in_prologue): Move definition to better spot.
1133 (skip_prologue_using_sal): Ditto.
1134
1135 2014-08-28 Doug Evans <dje@google.com>
1136
1137 * symtab.c (find_function_start_sal): Move definition to better spot.
1138
1139 2014-08-28 Yao Qi <yao@codesourcery.com>
1140
1141 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1142 found_stack_adjust in forward scan. Remove condition check
1143 on found_stack_adjust which is always true. Indent the code.
1144
1145 2014-08-28 Yao Qi <yao@codesourcery.com>
1146
1147 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1148 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1149 (dwarf_decode_lines): Remove argument
1150 want_line_info. Remove condition check on want_line_info.
1151 Callers update.
1152
1153 2014-08-27 Doug Evans <dje@google.com>
1154
1155 * dwarf2read.c (dwarf_record_line): Fix typo.
1156
1157 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1158
1159 * target.h (struct target_ops::to_terminal_save_ours): Remove
1160 declaration.
1161 (target_terminal_save_ours): Remove macro.
1162 * target-delegates.c: Regenerate.
1163 * inf-child.c (inf_child_target): Don't set the nonexistent
1164 field to_terminal_save_ours.
1165 * inferior.h (child_terminal_save_ours): Remove declaration.
1166 * terminal.h (gdb_save_tty_state): New declaration.
1167 * inflow.c (child_terminal_save_ours): Rename to ...
1168 (gdb_save_tty_state): ... this.
1169 * tui/tui.c: Include terminal.h.
1170 (tui_enable): Use gdb_save_tty_state instead of
1171 target_terminal_save_ours.
1172 (tui_disable): Likewise.
1173
1174 2014-08-25 Doug Evans <dje@google.com>
1175
1176 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1177 Pass NULL instead of 0 for context pointer.
1178
1179 2014-08-25 Yao Qi <yao@codesourcery.com>
1180
1181 * dwarf2read.c: Fix grammatical error.
1182
1183 2014-08-24 Yao Qi <yao@codesourcery.com>
1184
1185 * dwarf2read.c (scan_partial_symbols): Update comments.
1186 Rename argument 'need_pc' with 'set_addrmap'.
1187 (add_partial_namespace): Rename argument 'need_pc' with
1188 'set_addrmap'.
1189 (add_partial_module): Likewise.
1190 (add_partial_subprogram): Likewise. Update comments.
1191 (dwarf2_name): Fix typo.
1192
1193 2014-08-22 Doug Evans <dje@google.com>
1194
1195 PR 17276
1196 * dwarf2read.c (dwarf_record_line_p): New function.
1197 (dwarf_decode_lines_1): Ignore subsequent line number entries
1198 for the same line if any entry had a non-zero discriminator.
1199
1200 2014-08-22 Doug Evans <dje@google.com>
1201
1202 * buildsym.h (record_line_ftype): New typedef.
1203 (record_line): Use it.
1204 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1205 (dwarf_decode_lines_1): Call them.
1206
1207 2014-08-22 Yao Qi <yao@codesourcery.com>
1208
1209 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1210 (ctf_end): Remove code.
1211
1212 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1213
1214 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1215 (linux_make_corefile_notes): call update_thread_list, protected against
1216 exceptions.
1217
1218 2014-08-21 Pedro Alves <palves@redhat.com>
1219
1220 * infcmd.c (attach_command): Remove comment.
1221
1222 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1223
1224 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1225 unsigned LONGEST to ULONGEST.
1226
1227 2014-08-20 Pedro Alves <palves@redhat.com>
1228
1229 * Makefile.in (check-read1): New rule.
1230
1231 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1232
1233 * value.c (value_from_contents_and_address): Strip resolved_type's
1234 typedef layers before checking its TYPE_DATA_LOCATION.
1235
1236 2014-08-20 Pedro Alves <palves@redhat.com>
1237
1238 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1239
1240 2014-08-20 Yao Qi <yao@codesourcery.com>
1241
1242 * amd64-tdep.c (amd64_classify): Add a blank line after the
1243 example. Move "*/" to a new line.
1244 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1245 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1246 * dwarf2read.c (psymtab_include_file_name): Likewise.
1247
1248 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1249 Pedro Alves <palves@redhat.com>
1250
1251 PR symtab/14604
1252 PR symtab/14605
1253 * ada-lang.c (coerce_unspec_val_to_type): Use
1254 value_contents_copy_raw.
1255 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1256 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1257 * cp-valprint.c (cp_print_value_fields): Let the common printing
1258 code handle optimized out values.
1259 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1260 * d-valprint.c (dynamic_array_type): Use
1261 value_bits_any_optimized_out.
1262 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1263 check_any_valid fields.
1264 (check_pieced_value_bits): Delete and inline ...
1265 (check_pieced_synthetic_pointer): ... here.
1266 (check_pieced_value_validity): Delete.
1267 (check_pieced_value_invalid): Delete.
1268 (pieced_value_funcs): Remove check_validity and check_any_valid
1269 fields.
1270 (read_pieced_value): Use mark_value_bits_optimized_out.
1271 (write_pieced_value): Switch to use
1272 mark_value_bytes_optimized_out.
1273 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1274 of assuming the whole value is optimized out.
1275 * findvar.c (read_frame_register_value): Remove special handling
1276 of optimized out registers.
1277 (value_from_register): Use mark_value_bytes_optimized_out.
1278 * frame-unwind.c (frame_unwind_got_optimized): Use
1279 mark_value_bytes_optimized_out.
1280 * jv-valprint.c (java_value_print): Adjust.
1281 (java_print_value_fields): Let the common printing code handle
1282 optimized out values.
1283 * mips-tdep.c (mips_print_register): Remove special handling of
1284 optimized out registers.
1285 * opencl-lang.c (lval_func_check_validity): Delete.
1286 (lval_func_check_any_valid): Delete.
1287 (opencl_value_funcs): Remove check_validity and check_any_valid
1288 fields.
1289 * p-valprint.c (pascal_object_print_value_fields): Let the common
1290 printing code handle optimized out values.
1291 * stack.c (read_frame_arg): Remove special handling of optimized
1292 out values. Fetch both VAL and ENTRYVAL before comparing
1293 contents. Adjust to value_available_contents_eq rename.
1294 * valprint.c (valprint_check_validity)
1295 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1296 (val_print_array_elements): Adjust.
1297 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1298 (value_bits_any_optimized_out): New function.
1299 (value_entirely_covered_by_range_vector): New function, factored
1300 out from value_entirely_unavailable.
1301 (value_entirely_unavailable): Reimplement.
1302 (value_entirely_optimized_out): New function.
1303 (insert_into_bit_range_vector): New function, factored out from
1304 mark_value_bits_unavailable.
1305 (mark_value_bits_unavailable): Reimplement.
1306 (struct ranges_and_idx): New struct.
1307 (find_first_range_overlap_and_match): New function, factored out
1308 from value_available_contents_bits_eq.
1309 (value_available_contents_bits_eq): Rename to ...
1310 (value_contents_bits_eq): ... this. Check both unavailable
1311 contents and optimized out contents.
1312 (value_available_contents_eq): Rename to ...
1313 (value_contents_eq): ... this.
1314 (allocate_value_lazy): Remove reference to the old optimized_out
1315 boolean.
1316 (allocate_optimized_out_value): Use
1317 mark_value_bytes_optimized_out.
1318 (require_not_optimized_out): Adjust to check whether the
1319 optimized_out vec is empty.
1320 (ranges_copy_adjusted): New function, factored out from
1321 value_contents_copy_raw.
1322 (value_contents_copy_raw): Also copy the optimized out ranges.
1323 Assert the destination ranges aren't optimized out.
1324 (value_contents_copy): Update comment, remove call to
1325 require_not_optimized_out.
1326 (value_contents_equal): Adjust to check whether the optimized_out
1327 vec is empty.
1328 (set_value_optimized_out, value_optimized_out_const): Delete.
1329 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1330 New functions.
1331 (value_entirely_optimized_out, value_bits_valid): Delete.
1332 (value_copy): Take a VEC copy of the 'optimized_out' field.
1333 (value_primitive_field): Remove special handling of optimized out.
1334 (value_fetch_lazy): Assert that lazy values have no unavailable
1335 regions. Use value_bits_any_optimized_out. Remove some special
1336 handling for optimized out values.
1337 * value.h: Add intro comment about <optimized out> and
1338 <unavailable>.
1339 (struct lval_funcs): Remove check_validity and check_any_valid
1340 fields.
1341 (set_value_optimized_out, value_optimized_out_const): Remove.
1342 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1343 New declarations.
1344 (value_bits_any_optimized_out): New declaration.
1345 (value_bits_valid): Delete declaration.
1346 (value_available_contents_eq): Rename to ...
1347 (value_contents_eq): ... this, and extend comments.
1348
1349 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1350
1351 Fix -fsanitize=address on unreadable inferior strings.
1352 * valprint.c (val_print_string): Fix access before BUFFER.
1353
1354 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1355
1356 * target.c (target_struct_size): Remove.
1357 (target_struct_allocsize): Remove.
1358 (DEFAULT_ALLOCSIZE): Remove.
1359 (target_ops_p): New typedef.
1360 (DEF_VEC_P (target_ops_p)): New vector type.
1361 (target_structs): Change type to VEC (target_ops_p).
1362 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1363 (find_default_run_target): Rewrite for loop following changes to
1364 target_structs.
1365
1366 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1367
1368 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1369 Adjust code accordingly. Adjust function description comment.
1370
1371 2014-08-19 Yao Qi <yao@codesourcery.com>
1372
1373 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1374 types.
1375
1376 2014-08-19 Alan Modra <amodra@gmail.com>
1377
1378 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1379 * config.in: Regenerate.
1380 * configure: Regenerate.
1381
1382 2014-08-19 Tom Tromey <tromey@redhat.com>
1383 Gary Benson <gbenson@redhat.com>
1384
1385 * common/common-debug.h: New file.
1386 * common/common-debug.c: Likewise.
1387 * debug.c: Likewise.
1388 * Makefile.in (SFILES): Add common/common-debug.c.
1389 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1390 (COMMON_OBS): Add common-debug.o and debug.o.
1391 (common-debug.o): New rule.
1392 * common/common-defs.h: Include common-debug.h.
1393 * common/agent.c (debug_agent_printf): New function.
1394 (DEBUG_AGENT): Redefine.
1395 * nat/i386-dregs.c (debug_printf): Undefine.
1396
1397 2014-08-19 Gary Benson <gbenson@redhat.com>
1398
1399 * common/common-defs.h: Include print-utils.h.
1400 * utils.h: Do not include print-utils.h.
1401
1402 2014-08-19 Tom Tromey <tromey@redhat.com>
1403 Gary Benson <gbenson@redhat.com>
1404
1405 * common/common-types.h: New file.
1406 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1407 * common/common-defs.h: Include common-types.h.
1408 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1409 (ULONGEST): Remove.
1410
1411 2014-08-19 Tom Tromey <tromey@redhat.com>
1412 Gary Benson <gbenson@redhat.com>
1413
1414 * common/errors.h: New file.
1415 * common/errors.c: Likewise.
1416 * Makefile.in (SFILES): Add common/errors.c.
1417 (HFILES_NO_SRCDIR): Add common/errors.h.
1418 (COMMON_OBS): Add errors.o.
1419 (errors.o): New rule.
1420 * common/common-defs.h: Include errors.h.
1421 * utils.h (perror_with_name, error, verror, warning, vwarning):
1422 Don't declare.
1423 * common/common-utils.h: (malloc_failure, internal_error):
1424 Likewise.
1425
1426 2014-08-19 Gary Benson <gbenson@redhat.com>
1427
1428 * utils.c (internal_vproblem): Always print the message.
1429
1430 2014-08-18 Doug Evans <dje@google.com>
1431
1432 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1433
1434 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1435
1436 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1437 Return 0 if TYPE is dynamic.
1438 (print_range): Add handling of dynamic ranges.
1439
1440 2014-08-18 Keven Boell <keven.boell@intel.com>
1441 Joel Brobecker <brobecker@adacore.com>
1442
1443 * gdbtypes.h (struct main_type): Add field "data_location".
1444 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1445 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1446 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1447 a dynamic data location.
1448 (resolve_dynamic_type): Add DW_AT_data_location handling.
1449 (copy_recursive, copy_type): Copy the data_location information
1450 when present.
1451 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1452 * value.c (value_from_contents_and_address): Add
1453 DW_AT_data_location handling.
1454
1455 2014-08-18 Keven Boell <keven.boell@intel.com>
1456 Joel Brobecker <brobecker@adacore.com>
1457
1458 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1459 field "get_object_address".
1460 * dwarf2expr.c (execute_stack_op): Add handling for
1461 DW_OP_push_object_address.
1462 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1463 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1464 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1465 (dwarf_expr_get_obj_addr): New function.
1466 (dwarf_expr_ctx_funcs): Add get_object_address field.
1467 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1468 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1469 (dwarf2_evaluate_property): Add parameter "address". Use it.
1470 (needs_get_obj_addr): New function.
1471 (needs_frame_ctx_funcs): Add get_object_address field.
1472 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1473 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1474 (resolve_dynamic_array): Likewise.
1475
1476 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1477
1478 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1479 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1480 fixed value for records and unions for which some GNAT encodings
1481 are present.
1482
1483 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1484
1485 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1486 rewrite to avoid "else if" and "else" constructs. Should be
1487 a no-op in practice.
1488
1489 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1490
1491 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1492 of lexical block.
1493
1494 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1495
1496 PR c++/17132
1497 * eval.c: Update all calls to find_overload_match.
1498 * valarith.c: Likewise.
1499 (value_user_defined_cpp_op, value_user_defined_op): New
1500 argument NOSIDE. Update all callers.
1501 * valops.c (find_overload_match): New argument NOSIDE.
1502 * value.h (find_overload_match): Update signature.
1503
1504 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1505
1506 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1507 'items' methods instead of 'iteritems' method on dictionaries.
1508
1509 2014-08-15 Doug Evans <dje@google.com>
1510
1511 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1512 closer to use.
1513
1514 2014-08-15 Doug Evans <dje@google.com>
1515
1516 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1517
1518 2014-08-15 Doug Evans <dje@google.com>
1519
1520 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1521
1522 2014-08-15 Doug Evans <dje@google.com>
1523
1524 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1525 unused.
1526
1527 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1528
1529 * dcache.h: Include target.h, to avoid compile time warnings.
1530
1531 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1532
1533 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1534 frame_info" partial declaration.
1535 * gdbarch.h: Regenerate.
1536
1537 2014-08-15 Yao Qi <yao@codesourcery.com>
1538
1539 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1540 Add parameter 'decode_for_pst_p'. Callers update.
1541
1542 2014-08-13 Yao Qi <yao@codesourcery.com>
1543
1544 PR build/17104
1545 * configure.ac: Use local variable 'pos'.
1546 * configure: Regenerated.
1547
1548 2014-08-11 Doug Evans <dje@google.com>
1549
1550 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1551 message, it is redundant with "Reading symbols from ..." message.
1552
1553 2014-08-10 Doug Evans <xdje42@gmail.com>
1554
1555 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1556
1557 2014-08-09 Yao Qi <yao@codesourcery.com>
1558
1559 PR remote/9053
1560 * remote.c (remote_xfer_partial): Remove dead code.
1561
1562 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1563
1564 * ia64-linux-tdep.c: Include "regset.h".
1565 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1566 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1567 (ia64_linux_supply_fpregset): New function.
1568 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1569 (ia64_linux_regset_from_core_section): New function.
1570 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1571 method.
1572
1573 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1574
1575 * m68klinux-tdep.c: Include "regset.h".
1576 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1577 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1578 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1579 (m68k_linux_regset_from_core_section): New function.
1580 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1581 method.
1582
1583 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1584
1585 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1586 function. Move logic to...
1587 (tilegx_linux_regmap): ... this new register map.
1588 (tilegx_linux_regset): Refer to register map, replace supply
1589 method by regcache_supply_regset, and add collect method.
1590 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1591 TILEGX_FIRST_EASY_REGNUM.
1592
1593 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1594
1595 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1596 that calls regcache_supply_regset and handles the EPC register
1597 separately. Move main logic to...
1598 (score7_linux_gregmap): ... this new register map.
1599 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1600 (score7_linux_gregset): Refer to register map. Add collect method.
1601 (score7_linux_regset_from_core_section): Replace
1602 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1603 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1604 (struct regset): Delete unused forward declaraction.
1605 (struct pt_regs): Delete structure definition.
1606 (elf_gregset_t): Delete typedef.
1607
1608 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1609
1610 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1611 (nios2_core_regset): Add collect method.
1612
1613 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1614
1615 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1616 platform-independent and don't write to read-only input buffer.
1617 (m32r_linux_collect_gregset): New function.
1618 (m32r_linux_gregset): Add collect method.
1619
1620 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1621
1622 * hppa-linux-tdep.c (greg_map): Rename to...
1623 (hppa_linux_gregmap): ... this. Also convert to
1624 regcache_map_entry format.
1625 (hppa_linux_supply_regset): Delete function.
1626 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1627 (hppa_linux_fpregmap): ... this new register map.
1628 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1629 register map, replace supply method by regcache_supply_regset, and
1630 add collect method regcache_collect_regset.
1631
1632 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1633
1634 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1635 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1636 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1637 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1638 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1639 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1640 (frv_linux_supply_gregset): Replace main logic by call to
1641 regcache_supply_regset, but keep clearing gr32-gr63.
1642 (frv_linux_supply_fpregset): Delete function.
1643 (frv_linux_gregset): Refer to appropriate register map and add
1644 regcache_collect_regset as the collect method.
1645 (frv_linux_fpregset): Likewise. Also exchange the supply method
1646 by regcache_supply_regset.
1647
1648 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1649
1650 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1651 by call to alpha_supply_int_regs.
1652 (alpha_linux_collect_gregset): New function.
1653 (alpha_linux_supply_fpregset): Replace logic by call to
1654 alpha_supply_fp_regs.
1655 (alpha_linux_collect_fpregset): New function.
1656 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1657
1658 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1659
1660 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1661 by call to regcache_collect_regset.
1662 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1663 instead of aarch64_linux_supply_gregset/_fpregset.
1664 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1665 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1666 header file instead.
1667 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1668 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1669 functions. Move logic to ...
1670 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1671 register maps.
1672 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1673 refer to new register maps, replace *_regset_from_core by
1674 regcache_supply_regset, and also use regcache_collect_regset.
1675 * aarch64-linux-tdep.h: Include "regset.h".
1676 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1677 Delete prototypes.
1678 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1679 macros, moved from C source file.
1680 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1681 variable declarations.
1682
1683 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1684
1685 * s390-linux-nat.c: Include "regset.h".
1686 (regmap_gregset): Delete macro.
1687 (s390_64_regmap_gregset): New register map for
1688 regcache_supply/_collect_regset.
1689 (s390_64_gregset): New regset.
1690 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1691 (regmap_fpregset): Delete macro.
1692 (s390_native_supply, s390_native_collect): Delete functions.
1693 (supply_gregset, fill_gregset): Replace s390-specific regmap
1694 handling by a call to regcache_supply/_collect_regset.
1695 (supply_fpregset, fill_fpregset): Call regcache_supply/
1696 _collect_regset instead of s390_native_supply/_collect.
1697 (fetch_regset, store_regset): Likewise. Also change the last
1698 parameter to a regset instead of a regmap.
1699 (s390_linux_fetch_inferior_registers)
1700 (390_linux_store_inferior_registers): Adjust last parameter in
1701 calls to fetch_regset and store_regset.
1702 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1703 (s390_gregmap): ... this. Also make static const and convert to
1704 regcache_map_entry format.
1705 (s390x_regmap_gregset): Delete.
1706 (s390_regmap_fpregset): Rename to...
1707 (s390_fpregmap): ... this. Make static const and convert to
1708 regcache_map_entry format.
1709 (s390_regmap_upper, s390_regmap_last_break)
1710 (s390x_regmap_last_break, s390_regmap_system_call)
1711 (s390_regmap_tdb): Likewise.
1712 (s390_supply_regset, s390_collect_regset): Remove functions.
1713 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1714 s390_supply_regset.
1715 (s390_gregset, s390_fpregset, s390_upper_regset)
1716 (s390_last_break_regset, s390x_last_break_regset)
1717 (s390_system_call_regset, s390_tdb_regset): Make global and
1718 replace s390_supply/_collect_regset by regcache_supply/
1719 _collect_regset.
1720 (s390x_gregset): Delete.
1721 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1722 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1723 (s390_regmap_fpregset, s390_regmap_last_break)
1724 (s390x_regmap_last_break, s390_regmap_system_call)
1725 (s390_regmap_tdb): Delete global variable declarations.
1726 (s390_gregset, s390_fpregset, s390_last_break_regset)
1727 (s390x_last_break_regset, s390_system_call_regset)
1728 (s390_tdb_regset): New global variable declarations.
1729
1730 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1731
1732 * regcache.c: Include "regset.h".
1733 (regcache_transfer_regset): New local function.
1734 (regcache_supply_regset, regcache_collect_regset): New functions.
1735 * regcache.h (struct regcache_map_entry): New structure.
1736 (REGCACHE_MAP_SKIP): New enum value.
1737 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1738
1739 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1740
1741 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1742 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1743 (ppc_linux_collect_gregset ): Likewise.
1744 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1745 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1746 (ppc_collect_vrregset): Likewise.
1747 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1748 Likewise.
1749
1750 2014-08-07 Yao Qi <yao@codesourcery.com>
1751
1752 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1753 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1754 * remote.c (remote_read_bytes): Likewise.
1755
1756 2014-08-07 Yao Qi <yao@codesourcery.com>
1757
1758 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1759
1760 2014-08-07 Yao Qi <yao@codesourcery.com>
1761
1762 PR remote/17230
1763 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1764 TARGET_XFER_OK instead of 0.
1765
1766 2014-08-07 Gary Benson <gbenson@redhat.com>
1767
1768 * common/common-defs.h: Include errno.h.
1769 * defs.h: Do not include errno.h.
1770 * ada-typeprint.c: Likewise.
1771 * c-typeprint.c: Likewise.
1772 * core-regset.c: Likewise.
1773 * corefile.c: Likewise.
1774 * corelow.c: Likewise.
1775 * event-loop.c: Likewise.
1776 * f-typeprint.c: Likewise.
1777 * gnu-nat.c: Likewise.
1778 * go32-nat.c: Likewise.
1779 * i386gnu-nat.c: Likewise.
1780 * m2-typeprint.c: Likewise.
1781 * nat/linux-btrace.c: Likewise.
1782 * p-typeprint.c: Likewise.
1783 * procfs.c: Likewise.
1784 * remote-sim.c: Likewise.
1785 * rs6000-nat.c: Likewise.
1786 * target.c: Likewise.
1787 * typeprint.c: Likewise.
1788 * ui-file.c: Likewise.
1789 * valops.c: Likewise.
1790 * valprint.c: Likewise.
1791
1792 2014-08-07 Gary Benson <gbenson@redhat.com>
1793
1794 * common/common-defs.h: Include string.h.
1795 * aarch64-tdep.c: Do not include string.h.
1796 * ada-exp.y: Likewise.
1797 * ada-lang.c: Likewise.
1798 * ada-lex.l: Likewise.
1799 * ada-typeprint.c: Likewise.
1800 * ada-valprint.c: Likewise.
1801 * aix-thread.c: Likewise.
1802 * alpha-linux-tdep.c: Likewise.
1803 * alpha-mdebug-tdep.c: Likewise.
1804 * alpha-nat.c: Likewise.
1805 * alpha-osf1-tdep.c: Likewise.
1806 * alpha-tdep.c: Likewise.
1807 * alphanbsd-tdep.c: Likewise.
1808 * amd64-dicos-tdep.c: Likewise.
1809 * amd64-linux-tdep.c: Likewise.
1810 * amd64-nat.c: Likewise.
1811 * amd64-sol2-tdep.c: Likewise.
1812 * amd64fbsd-tdep.c: Likewise.
1813 * amd64obsd-tdep.c: Likewise.
1814 * arch-utils.c: Likewise.
1815 * arm-linux-nat.c: Likewise.
1816 * arm-linux-tdep.c: Likewise.
1817 * arm-tdep.c: Likewise.
1818 * arm-wince-tdep.c: Likewise.
1819 * armbsd-tdep.c: Likewise.
1820 * armnbsd-nat.c: Likewise.
1821 * armnbsd-tdep.c: Likewise.
1822 * armobsd-tdep.c: Likewise.
1823 * avr-tdep.c: Likewise.
1824 * ax-gdb.c: Likewise.
1825 * ax-general.c: Likewise.
1826 * bcache.c: Likewise.
1827 * bfin-tdep.c: Likewise.
1828 * breakpoint.c: Likewise.
1829 * build-id.c: Likewise.
1830 * buildsym.c: Likewise.
1831 * c-exp.y: Likewise.
1832 * c-lang.c: Likewise.
1833 * c-typeprint.c: Likewise.
1834 * c-valprint.c: Likewise.
1835 * charset.c: Likewise.
1836 * cli-out.c: Likewise.
1837 * cli/cli-cmds.c: Likewise.
1838 * cli/cli-decode.c: Likewise.
1839 * cli/cli-dump.c: Likewise.
1840 * cli/cli-interp.c: Likewise.
1841 * cli/cli-logging.c: Likewise.
1842 * cli/cli-script.c: Likewise.
1843 * cli/cli-setshow.c: Likewise.
1844 * cli/cli-utils.c: Likewise.
1845 * coffread.c: Likewise.
1846 * common/agent.c: Likewise.
1847 * common/buffer.c: Likewise.
1848 * common/buffer.h: Likewise.
1849 * common/common-utils.c: Likewise.
1850 * common/filestuff.c: Likewise.
1851 * common/filestuff.c: Likewise.
1852 * common/format.c: Likewise.
1853 * common/print-utils.c: Likewise.
1854 * common/rsp-low.c: Likewise.
1855 * common/signals.c: Likewise.
1856 * common/vec.h: Likewise.
1857 * common/xml-utils.c: Likewise.
1858 * core-regset.c: Likewise.
1859 * corefile.c: Likewise.
1860 * corelow.c: Likewise.
1861 * cp-abi.c: Likewise.
1862 * cp-name-parser.y: Likewise.
1863 * cp-support.c: Likewise.
1864 * cp-valprint.c: Likewise.
1865 * cris-tdep.c: Likewise.
1866 * d-exp.y: Likewise.
1867 * darwin-nat.c: Likewise.
1868 * dbxread.c: Likewise.
1869 * dcache.c: Likewise.
1870 * demangle.c: Likewise.
1871 * dicos-tdep.c: Likewise.
1872 * disasm.c: Likewise.
1873 * doublest.c: Likewise.
1874 * dsrec.c: Likewise.
1875 * dummy-frame.c: Likewise.
1876 * dwarf2-frame.c: Likewise.
1877 * dwarf2loc.c: Likewise.
1878 * dwarf2read.c: Likewise.
1879 * elfread.c: Likewise.
1880 * environ.c: Likewise.
1881 * eval.c: Likewise.
1882 * event-loop.c: Likewise.
1883 * exceptions.c: Likewise.
1884 * exec.c: Likewise.
1885 * expprint.c: Likewise.
1886 * f-exp.y: Likewise.
1887 * f-lang.c: Likewise.
1888 * f-typeprint.c: Likewise.
1889 * f-valprint.c: Likewise.
1890 * fbsd-nat.c: Likewise.
1891 * findcmd.c: Likewise.
1892 * findvar.c: Likewise.
1893 * fork-child.c: Likewise.
1894 * frame.c: Likewise.
1895 * frv-linux-tdep.c: Likewise.
1896 * frv-tdep.c: Likewise.
1897 * gdb.c: Likewise.
1898 * gdb_bfd.c: Likewise.
1899 * gdbarch.c: Likewise.
1900 * gdbarch.sh: Likewise.
1901 * gdbtypes.c: Likewise.
1902 * gnu-nat.c: Likewise.
1903 * gnu-v2-abi.c: Likewise.
1904 * gnu-v3-abi.c: Likewise.
1905 * go-exp.y: Likewise.
1906 * go-lang.c: Likewise.
1907 * go32-nat.c: Likewise.
1908 * guile/guile.c: Likewise.
1909 * guile/scm-auto-load.c: Likewise.
1910 * hppa-hpux-tdep.c: Likewise.
1911 * hppa-linux-nat.c: Likewise.
1912 * hppanbsd-tdep.c: Likewise.
1913 * hppaobsd-tdep.c: Likewise.
1914 * i386-cygwin-tdep.c: Likewise.
1915 * i386-dicos-tdep.c: Likewise.
1916 * i386-linux-tdep.c: Likewise.
1917 * i386-nto-tdep.c: Likewise.
1918 * i386-sol2-tdep.c: Likewise.
1919 * i386-tdep.c: Likewise.
1920 * i386bsd-tdep.c: Likewise.
1921 * i386gnu-nat.c: Likewise.
1922 * i386nbsd-tdep.c: Likewise.
1923 * i386obsd-tdep.c: Likewise.
1924 * i387-tdep.c: Likewise.
1925 * ia64-libunwind-tdep.c: Likewise.
1926 * ia64-linux-nat.c: Likewise.
1927 * inf-child.c: Likewise.
1928 * inf-ptrace.c: Likewise.
1929 * inf-ttrace.c: Likewise.
1930 * infcall.c: Likewise.
1931 * infcmd.c: Likewise.
1932 * inflow.c: Likewise.
1933 * infrun.c: Likewise.
1934 * interps.c: Likewise.
1935 * iq2000-tdep.c: Likewise.
1936 * irix5-nat.c: Likewise.
1937 * jv-exp.y: Likewise.
1938 * jv-lang.c: Likewise.
1939 * jv-typeprint.c: Likewise.
1940 * jv-valprint.c: Likewise.
1941 * language.c: Likewise.
1942 * linux-fork.c: Likewise.
1943 * linux-nat.c: Likewise.
1944 * lm32-tdep.c: Likewise.
1945 * m2-exp.y: Likewise.
1946 * m2-typeprint.c: Likewise.
1947 * m32c-tdep.c: Likewise.
1948 * m32r-linux-nat.c: Likewise.
1949 * m32r-linux-tdep.c: Likewise.
1950 * m32r-rom.c: Likewise.
1951 * m32r-tdep.c: Likewise.
1952 * m68hc11-tdep.c: Likewise.
1953 * m68k-tdep.c: Likewise.
1954 * m68kbsd-tdep.c: Likewise.
1955 * m68klinux-nat.c: Likewise.
1956 * m68klinux-tdep.c: Likewise.
1957 * m88k-tdep.c: Likewise.
1958 * machoread.c: Likewise.
1959 * macrocmd.c: Likewise.
1960 * main.c: Likewise.
1961 * mdebugread.c: Likewise.
1962 * mem-break.c: Likewise.
1963 * memattr.c: Likewise.
1964 * memory-map.c: Likewise.
1965 * mep-tdep.c: Likewise.
1966 * mi/mi-cmd-break.c: Likewise.
1967 * mi/mi-cmd-disas.c: Likewise.
1968 * mi/mi-cmd-env.c: Likewise.
1969 * mi/mi-cmd-stack.c: Likewise.
1970 * mi/mi-cmd-var.c: Likewise.
1971 * mi/mi-cmds.c: Likewise.
1972 * mi/mi-console.c: Likewise.
1973 * mi/mi-getopt.c: Likewise.
1974 * mi/mi-interp.c: Likewise.
1975 * mi/mi-main.c: Likewise.
1976 * mi/mi-parse.c: Likewise.
1977 * microblaze-rom.c: Likewise.
1978 * microblaze-tdep.c: Likewise.
1979 * mingw-hdep.c: Likewise.
1980 * minidebug.c: Likewise.
1981 * minsyms.c: Likewise.
1982 * mips-irix-tdep.c: Likewise.
1983 * mips-linux-tdep.c: Likewise.
1984 * mips-tdep.c: Likewise.
1985 * mips64obsd-tdep.c: Likewise.
1986 * mipsnbsd-tdep.c: Likewise.
1987 * mipsread.c: Likewise.
1988 * mn10300-linux-tdep.c: Likewise.
1989 * mn10300-tdep.c: Likewise.
1990 * monitor.c: Likewise.
1991 * moxie-tdep.c: Likewise.
1992 * mt-tdep.c: Likewise.
1993 * nat/linux-btrace.c: Likewise.
1994 * nat/linux-osdata.c: Likewise.
1995 * nat/linux-procfs.c: Likewise.
1996 * nat/linux-ptrace.c: Likewise.
1997 * nat/linux-waitpid.c: Likewise.
1998 * nbsd-tdep.c: Likewise.
1999 * nios2-linux-tdep.c: Likewise.
2000 * nto-procfs.c: Likewise.
2001 * nto-tdep.c: Likewise.
2002 * objc-lang.c: Likewise.
2003 * objfiles.c: Likewise.
2004 * opencl-lang.c: Likewise.
2005 * osabi.c: Likewise.
2006 * osdata.c: Likewise.
2007 * p-exp.y: Likewise.
2008 * p-lang.c: Likewise.
2009 * p-typeprint.c: Likewise.
2010 * parse.c: Likewise.
2011 * posix-hdep.c: Likewise.
2012 * ppc-linux-nat.c: Likewise.
2013 * ppc-sysv-tdep.c: Likewise.
2014 * ppcfbsd-tdep.c: Likewise.
2015 * ppcnbsd-tdep.c: Likewise.
2016 * ppcobsd-tdep.c: Likewise.
2017 * printcmd.c: Likewise.
2018 * procfs.c: Likewise.
2019 * prologue-value.c: Likewise.
2020 * python/py-auto-load.c: Likewise.
2021 * python/py-gdb-readline.c: Likewise.
2022 * ravenscar-thread.c: Likewise.
2023 * regcache.c: Likewise.
2024 * registry.c: Likewise.
2025 * remote-fileio.c: Likewise.
2026 * remote-m32r-sdi.c: Likewise.
2027 * remote-mips.c: Likewise.
2028 * remote-notif.c: Likewise.
2029 * remote-sim.c: Likewise.
2030 * remote.c: Likewise.
2031 * reverse.c: Likewise.
2032 * rs6000-aix-tdep.c: Likewise.
2033 * ser-base.c: Likewise.
2034 * ser-go32.c: Likewise.
2035 * ser-mingw.c: Likewise.
2036 * ser-pipe.c: Likewise.
2037 * ser-tcp.c: Likewise.
2038 * ser-unix.c: Likewise.
2039 * serial.c: Likewise.
2040 * sh-tdep.c: Likewise.
2041 * sh64-tdep.c: Likewise.
2042 * shnbsd-tdep.c: Likewise.
2043 * skip.c: Likewise.
2044 * sol-thread.c: Likewise.
2045 * solib-dsbt.c: Likewise.
2046 * solib-frv.c: Likewise.
2047 * solib-osf.c: Likewise.
2048 * solib-som.c: Likewise.
2049 * solib-spu.c: Likewise.
2050 * solib-target.c: Likewise.
2051 * solib.c: Likewise.
2052 * somread.c: Likewise.
2053 * source.c: Likewise.
2054 * sparc-nat.c: Likewise.
2055 * sparc-sol2-tdep.c: Likewise.
2056 * sparc-tdep.c: Likewise.
2057 * sparc64-tdep.c: Likewise.
2058 * sparc64fbsd-tdep.c: Likewise.
2059 * sparc64nbsd-tdep.c: Likewise.
2060 * sparcnbsd-tdep.c: Likewise.
2061 * spu-linux-nat.c: Likewise.
2062 * spu-multiarch.c: Likewise.
2063 * spu-tdep.c: Likewise.
2064 * stabsread.c: Likewise.
2065 * stack.c: Likewise.
2066 * std-regs.c: Likewise.
2067 * symfile.c: Likewise.
2068 * symmisc.c: Likewise.
2069 * symtab.c: Likewise.
2070 * target.c: Likewise.
2071 * thread.c: Likewise.
2072 * tilegx-linux-nat.c: Likewise.
2073 * tilegx-tdep.c: Likewise.
2074 * top.c: Likewise.
2075 * tracepoint.c: Likewise.
2076 * tui/tui-command.c: Likewise.
2077 * tui/tui-data.c: Likewise.
2078 * tui/tui-disasm.c: Likewise.
2079 * tui/tui-file.c: Likewise.
2080 * tui/tui-layout.c: Likewise.
2081 * tui/tui-out.c: Likewise.
2082 * tui/tui-regs.c: Likewise.
2083 * tui/tui-source.c: Likewise.
2084 * tui/tui-stack.c: Likewise.
2085 * tui/tui-win.c: Likewise.
2086 * tui/tui-windata.c: Likewise.
2087 * tui/tui-winsource.c: Likewise.
2088 * typeprint.c: Likewise.
2089 * ui-file.c: Likewise.
2090 * ui-out.c: Likewise.
2091 * user-regs.c: Likewise.
2092 * utils.c: Likewise.
2093 * v850-tdep.c: Likewise.
2094 * valarith.c: Likewise.
2095 * valops.c: Likewise.
2096 * valprint.c: Likewise.
2097 * value.c: Likewise.
2098 * varobj.c: Likewise.
2099 * vax-tdep.c: Likewise.
2100 * vaxnbsd-tdep.c: Likewise.
2101 * vaxobsd-tdep.c: Likewise.
2102 * windows-nat.c: Likewise.
2103 * xcoffread.c: Likewise.
2104 * xml-support.c: Likewise.
2105 * xstormy16-tdep.c: Likewise.
2106 * xtensa-linux-nat.c: Likewise.
2107
2108 2014-08-07 Gary Benson <gbenson@redhat.com>
2109
2110 * common/common-defs.h: Include gdb_assert.h.
2111 * aarch64-tdep.c: Do not include gdb_assert.h.
2112 * addrmap.c: Likewise.
2113 * aix-thread.c: Likewise.
2114 * alpha-linux-tdep.c: Likewise.
2115 * alpha-mdebug-tdep.c: Likewise.
2116 * alphanbsd-tdep.c: Likewise.
2117 * amd64-nat.c: Likewise.
2118 * amd64-tdep.c: Likewise.
2119 * amd64bsd-nat.c: Likewise.
2120 * amd64fbsd-nat.c: Likewise.
2121 * amd64fbsd-tdep.c: Likewise.
2122 * amd64nbsd-nat.c: Likewise.
2123 * amd64nbsd-tdep.c: Likewise.
2124 * amd64obsd-nat.c: Likewise.
2125 * amd64obsd-tdep.c: Likewise.
2126 * arch-utils.c: Likewise.
2127 * arm-tdep.c: Likewise.
2128 * armbsd-tdep.c: Likewise.
2129 * auxv.c: Likewise.
2130 * bcache.c: Likewise.
2131 * bfin-tdep.c: Likewise.
2132 * blockframe.c: Likewise.
2133 * breakpoint.c: Likewise.
2134 * bsd-kvm.c: Likewise.
2135 * bsd-uthread.c: Likewise.
2136 * buildsym.c: Likewise.
2137 * c-exp.y: Likewise.
2138 * c-lang.c: Likewise.
2139 * charset.c: Likewise.
2140 * cleanups.c: Likewise.
2141 * cli-out.c: Likewise.
2142 * cli/cli-decode.c: Likewise.
2143 * cli/cli-dump.c: Likewise.
2144 * cli/cli-logging.c: Likewise.
2145 * cli/cli-script.c: Likewise.
2146 * cli/cli-utils.c: Likewise.
2147 * coffread.c: Likewise.
2148 * common/common-utils.c: Likewise.
2149 * common/queue.h: Likewise.
2150 * common/signals.c: Likewise.
2151 * common/vec.h: Likewise.
2152 * complaints.c: Likewise.
2153 * completer.c: Likewise.
2154 * corelow.c: Likewise.
2155 * cp-abi.c: Likewise.
2156 * cp-name-parser.y: Likewise.
2157 * cp-namespace.c: Likewise.
2158 * cp-support.c: Likewise.
2159 * cris-tdep.c: Likewise.
2160 * dbxread.c: Likewise.
2161 * dictionary.c: Likewise.
2162 * doublest.c: Likewise.
2163 * dsrec.c: Likewise.
2164 * dummy-frame.c: Likewise.
2165 * dwarf2-frame-tailcall.c: Likewise.
2166 * dwarf2-frame.c: Likewise.
2167 * dwarf2expr.c: Likewise.
2168 * dwarf2loc.c: Likewise.
2169 * dwarf2read.c: Likewise.
2170 * eval.c: Likewise.
2171 * event-loop.c: Likewise.
2172 * exceptions.c: Likewise.
2173 * expprint.c: Likewise.
2174 * f-valprint.c: Likewise.
2175 * fbsd-nat.c: Likewise.
2176 * findvar.c: Likewise.
2177 * frame-unwind.c: Likewise.
2178 * frame.c: Likewise.
2179 * frv-tdep.c: Likewise.
2180 * gcore.c: Likewise.
2181 * gdb-dlfcn.c: Likewise.
2182 * gdb_bfd.c: Likewise.
2183 * gdbarch.c: Likewise.
2184 * gdbarch.sh: Likewise.
2185 * gdbtypes.c: Likewise.
2186 * gnu-nat.c: Likewise.
2187 * gnu-v3-abi.c: Likewise.
2188 * go-lang.c: Likewise.
2189 * guile/scm-exception.c: Likewise.
2190 * guile/scm-gsmob.c: Likewise.
2191 * guile/scm-lazy-string.c: Likewise.
2192 * guile/scm-math.c: Likewise.
2193 * guile/scm-pretty-print.c: Likewise.
2194 * guile/scm-safe-call.c: Likewise.
2195 * guile/scm-utils.c: Likewise.
2196 * guile/scm-value.c: Likewise.
2197 * h8300-tdep.c: Likewise.
2198 * hppa-hpux-nat.c: Likewise.
2199 * hppa-tdep.c: Likewise.
2200 * hppanbsd-tdep.c: Likewise.
2201 * hppaobsd-tdep.c: Likewise.
2202 * i386-darwin-nat.c: Likewise.
2203 * i386-darwin-tdep.c: Likewise.
2204 * i386-nto-tdep.c: Likewise.
2205 * i386-tdep.c: Likewise.
2206 * i386bsd-nat.c: Likewise.
2207 * i386fbsd-tdep.c: Likewise.
2208 * i386gnu-nat.c: Likewise.
2209 * i386nbsd-tdep.c: Likewise.
2210 * i386obsd-tdep.c: Likewise.
2211 * i387-tdep.c: Likewise.
2212 * ia64-libunwind-tdep.c: Likewise.
2213 * ia64-tdep.c: Likewise.
2214 * inf-ptrace.c: Likewise.
2215 * inf-ttrace.c: Likewise.
2216 * infcall.c: Likewise.
2217 * infcmd.c: Likewise.
2218 * infrun.c: Likewise.
2219 * inline-frame.c: Likewise.
2220 * interps.c: Likewise.
2221 * jv-lang.c: Likewise.
2222 * jv-typeprint.c: Likewise.
2223 * linux-fork.c: Likewise.
2224 * linux-nat.c: Likewise.
2225 * linux-thread-db.c: Likewise.
2226 * m32c-tdep.c: Likewise.
2227 * m32r-linux-nat.c: Likewise.
2228 * m32r-tdep.c: Likewise.
2229 * m68k-tdep.c: Likewise.
2230 * m68kbsd-nat.c: Likewise.
2231 * m68kbsd-tdep.c: Likewise.
2232 * m88k-tdep.c: Likewise.
2233 * machoread.c: Likewise.
2234 * macroexp.c: Likewise.
2235 * macrotab.c: Likewise.
2236 * maint.c: Likewise.
2237 * mdebugread.c: Likewise.
2238 * memory-map.c: Likewise.
2239 * mep-tdep.c: Likewise.
2240 * mi/mi-common.c: Likewise.
2241 * microblaze-tdep.c: Likewise.
2242 * mingw-hdep.c: Likewise.
2243 * mips-linux-nat.c: Likewise.
2244 * mips-linux-tdep.c: Likewise.
2245 * mips-tdep.c: Likewise.
2246 * mips64obsd-tdep.c: Likewise.
2247 * mipsnbsd-tdep.c: Likewise.
2248 * mn10300-linux-tdep.c: Likewise.
2249 * mn10300-tdep.c: Likewise.
2250 * moxie-tdep.c: Likewise.
2251 * mt-tdep.c: Likewise.
2252 * nat/linux-btrace.c: Likewise.
2253 * nat/linux-osdata.c: Likewise.
2254 * nat/linux-ptrace.c: Likewise.
2255 * nat/mips-linux-watch.c: Likewise.
2256 * nios2-linux-tdep.c: Likewise.
2257 * nios2-tdep.c: Likewise.
2258 * objc-lang.c: Likewise.
2259 * objfiles.c: Likewise.
2260 * obsd-nat.c: Likewise.
2261 * opencl-lang.c: Likewise.
2262 * osabi.c: Likewise.
2263 * parse.c: Likewise.
2264 * ppc-linux-nat.c: Likewise.
2265 * ppc-sysv-tdep.c: Likewise.
2266 * ppcfbsd-nat.c: Likewise.
2267 * ppcfbsd-tdep.c: Likewise.
2268 * ppcnbsd-nat.c: Likewise.
2269 * ppcnbsd-tdep.c: Likewise.
2270 * ppcobsd-nat.c: Likewise.
2271 * ppcobsd-tdep.c: Likewise.
2272 * printcmd.c: Likewise.
2273 * procfs.c: Likewise.
2274 * prologue-value.c: Likewise.
2275 * psymtab.c: Likewise.
2276 * python/py-lazy-string.c: Likewise.
2277 * python/py-value.c: Likewise.
2278 * regcache.c: Likewise.
2279 * reggroups.c: Likewise.
2280 * registry.c: Likewise.
2281 * remote-sim.c: Likewise.
2282 * remote.c: Likewise.
2283 * rs6000-aix-tdep.c: Likewise.
2284 * rs6000-tdep.c: Likewise.
2285 * s390-linux-tdep.c: Likewise.
2286 * score-tdep.c: Likewise.
2287 * ser-base.c: Likewise.
2288 * ser-mingw.c: Likewise.
2289 * sh-tdep.c: Likewise.
2290 * sh64-tdep.c: Likewise.
2291 * solib-darwin.c: Likewise.
2292 * solib-spu.c: Likewise.
2293 * solib-svr4.c: Likewise.
2294 * source.c: Likewise.
2295 * sparc-nat.c: Likewise.
2296 * sparc-sol2-tdep.c: Likewise.
2297 * sparc-tdep.c: Likewise.
2298 * sparc64-sol2-tdep.c: Likewise.
2299 * sparc64-tdep.c: Likewise.
2300 * sparc64fbsd-tdep.c: Likewise.
2301 * sparc64nbsd-tdep.c: Likewise.
2302 * sparc64obsd-tdep.c: Likewise.
2303 * sparcnbsd-tdep.c: Likewise.
2304 * sparcobsd-tdep.c: Likewise.
2305 * spu-multiarch.c: Likewise.
2306 * spu-tdep.c: Likewise.
2307 * stabsread.c: Likewise.
2308 * stack.c: Likewise.
2309 * symfile.c: Likewise.
2310 * symtab.c: Likewise.
2311 * target-descriptions.c: Likewise.
2312 * target-memory.c: Likewise.
2313 * target.c: Likewise.
2314 * tic6x-linux-tdep.c: Likewise.
2315 * tic6x-tdep.c: Likewise.
2316 * tilegx-linux-nat.c: Likewise.
2317 * tilegx-tdep.c: Likewise.
2318 * top.c: Likewise.
2319 * tramp-frame.c: Likewise.
2320 * tui/tui-out.c: Likewise.
2321 * tui/tui-winsource.c: Likewise.
2322 * ui-out.c: Likewise.
2323 * user-regs.c: Likewise.
2324 * utils.c: Likewise.
2325 * v850-tdep.c: Likewise.
2326 * valops.c: Likewise.
2327 * value.c: Likewise.
2328 * varobj.c: Likewise.
2329 * vax-nat.c: Likewise.
2330 * xml-syscall.c: Likewise.
2331 * xml-tdesc.c: Likewise.
2332 * xstormy16-tdep.c: Likewise.
2333 * xtensa-linux-nat.c: Likewise.
2334 * xtensa-tdep.c: Likewise.
2335
2336 2014-08-07 Gary Benson <gbenson@redhat.com>
2337
2338 * common/common-defs.h: Include common-utils.h.
2339 * defs.h: Do not include common-utils.h.
2340 * common/gdb_assert.h: Likewise.
2341 * darwin-nat.h: Likewise.
2342 * nat/linux-btrace.c: Likewise.
2343 * target/waitstatus.h: Likewise.
2344
2345 2014-08-07 Gary Benson <gbenson@redhat.com>
2346
2347 * common/common-defs.h: Include ptid.h.
2348 * defs.h: Do not include ptid.h.
2349 * inferior.h: Likewise.
2350 * infrun.h: Likewise.
2351 * nat/linux-btrace.h: Likewise.
2352 * nat/linux-osdata.h: Likewise.
2353 * target/waitstatus.h: Likewise.
2354
2355 2014-08-07 Gary Benson <gbenson@redhat.com>
2356
2357 * common/common-defs.h: Include gdb_locale.h.
2358 * defs.h: Do not include gdb_locale.h.
2359
2360 2014-08-07 Gary Benson <gbenson@redhat.com>
2361
2362 * common/common-defs.h: Include gdb/signals.h.
2363 * defs.h: Do not include gdb/signals.h.
2364
2365 2014-08-07 Gary Benson <gbenson@redhat.com>
2366
2367 * common/common-defs.h: Include pathmax.h.
2368 * defs.h: Do not include pathmax.h.
2369
2370 2014-08-07 Gary Benson <gbenson@redhat.com>
2371
2372 * common/common-defs.h: Include libiberty.h.
2373 * defs.h: Do not include libiberty.h.
2374 * common/queue.h: Likewise.
2375 * cp-name-parser.y: Likewise.
2376 * mi/mi-cmd-catch.c: Likewise.
2377 * python/python.c: Likewise.
2378
2379 2014-08-07 Gary Benson <gbenson@redhat.com>
2380
2381 * common/common-defs.h: Include ansidecl.h.
2382 * defs.h: Do not include ansidecl.h.
2383 * common/buffer.h: Likewise.
2384 * common/common-utils.h: Likewise.
2385
2386 2014-08-07 Gary Benson <gbenson@redhat.com>
2387
2388 * common/common-defs.h: Include stddef.h.
2389 * defs.h: Do not include stddef.h.
2390 * common/common-utils.h: Likewise.
2391 * amd64fbsd-nat.c: Likewise.
2392 * bcache.c: Likewise.
2393 * charset.c: Likewise.
2394 * common/buffer.h: Likewise.
2395 * common/vec.h: Likewise.
2396 * i386bsd-nat.c: Likewise.
2397 * nat/linux-btrace.h: Likewise.
2398 * ppcfbsd-nat.c: Likewise.
2399 * ppcnbsd-tdep.h: Likewise.
2400 * ppcobsd-nat.c: Likewise.
2401 * ppcobsd-tdep.h: Likewise.
2402 * python/py-gdb-readline.c: Likewise.
2403
2404 2014-08-07 Gary Benson <gbenson@redhat.com>
2405
2406 * common/common-defs.h: Include stdarg.h.
2407 * defs.h: Do not include stdarg.h.
2408 * ada-lang.c: Likewise.
2409 * common/common-utils.h: Likewise.
2410 * guile/scm-string.c: Likewise.
2411 * guile/scm-utils.c: Likewise.
2412 * m32c-tdep.c: Likewise.
2413
2414 2014-08-07 Gary Benson <gbenson@redhat.com>
2415
2416 * common/common-defs.h: Include stdlib.h.
2417 * defs.h: Do not include stdlib.h.
2418 * addrmap.c: Likewise.
2419 * bcache.c: Likewise.
2420 * common/buffer.c: Likewise.
2421 * common/common-utils.c: Likewise.
2422 * cp-name-parser.y: Likewise.
2423 * go32-nat.c: Likewise.
2424 * mn10300-linux-tdep.c: Likewise.
2425 * nat/linux-osdata.c: Likewise.
2426 * tui/tui.c: Likewise.
2427 * windows-nat.c: Likewise.
2428
2429 2014-08-07 Gary Benson <gbenson@redhat.com>
2430
2431 * common/common-defs.h: Include stdio.h.
2432 * defs.h: Do not include stdio.h.
2433 * ada-lang.c: Likewise.
2434 * common/buffer.c: Likewise.
2435 * common/common-utils.c: Likewise.
2436 * cp-name-parser.y: Likewise.
2437 * gnu-nat.c: Likewise.
2438 * go32-nat.c: Likewise.
2439 * i386gnu-nat.c: Likewise.
2440 * proc-api.c: Likewise.
2441 * proc-events.c: Likewise.
2442 * proc-flags.c: Likewise.
2443 * proc-why.c: Likewise.
2444 * python/python-internal.h: Likewise.
2445 * target-memory.c: Likewise.
2446 * tui/tui-io.c: Likewise.
2447 * tui/tui.c: Likewise.
2448
2449 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2450
2451 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2452 (scan_dyntag_auxv): Same.
2453
2454 2014-08-06 Yao Qi <yao@codesourcery.com>
2455
2456 * amd64-linux-nat.c: Remove duplicated include
2457 "x86-linux-nat.h".
2458 * i386-linux-nat.c: Likewise.
2459
2460 2014-08-06 Yao Qi <yao@codesourcery.com>
2461
2462 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2463 operand" with "Special opcode" in comments.
2464
2465 2014-08-05 Gary Benson <gbenson@redhat.com>
2466
2467 * interps.c (initialize_interps): Remove prototype.
2468 (interpreter_initialized): Remove static global.
2469 (interp_add): Do not call initialize_interps.
2470 (initialize_interps): Remove function.
2471
2472 2014-08-05 Gary Benson <gbenson@redhat.com>
2473
2474 * utils.c (vwarning): Remove spurious va_end.
2475
2476 2014-08-05 Alan Modra <amodra@gmail.com>
2477
2478 * charset.c (convert_between_encodings): Cast result of obstack_base.
2479 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2480 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2481 (read_unwind_info): Use size_t for some locals.
2482 * jit.c (finalize_symtab): Likewise.
2483 * utils.c (hashtab_obstack_allocate): Likewise.
2484 * symmisc.c (print_objfile_statistics): Update format strings.
2485
2486 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2487
2488 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2489 (Changes in GDB 7.8): ... here.
2490
2491 2014-08-04 Tom Tromey <tromey@redhat.com>
2492
2493 * target.c (set_targetdebug): New function.
2494 (initialize_targets): Pass set_targetdebug when creating "set
2495 debug target".
2496
2497 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2498
2499 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2500 if detecting a variable-sized field that is not the last field.
2501 Fix struct type length computation.
2502
2503 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2504
2505 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2506 Add debug trace.
2507
2508 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2509
2510 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2511 Remove "+ 8" offset in computation of CHAIN_VMA.
2512
2513 2014-07-31 Doug Evans <dje@google.com>
2514
2515 * inflow.c (child_terminal_inferior): Add comment.
2516 (child_terminal_ours_for_output): Add comment.
2517 (child_terminal_ours): Add comment.
2518 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2519 (linux_nat_terminal_ours): Add comment.
2520
2521 2014-07-31 Gary Benson <gbenson@redhat.com>
2522
2523 * common/btrace-common.h: Do not include defs.h or server.h.
2524 * nat/mips-linux-watch.h: Likewise.
2525 * gdb-dlfcn.h: Do not include defs.h.
2526 * tracefile.h: Likewise.
2527
2528 2014-07-30 Roland McGrath <mcgrathr@google.com>
2529
2530 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2531
2532 2014-07-30 Tom Tromey <tromey@redhat.com>
2533
2534 * bsd-kvm.c (bsd_kvm_open): Constify.
2535 * corelow.c (core_open): Constify.
2536 * ctf.c (ctf_open): Constify.
2537 * dbug-rom.c (dbug_open): Constify.
2538 * exec.c (exec_open): Constify.
2539 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2540 * microblaze-rom.c (picobug_open): Constify.
2541 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2542 Constify.
2543 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2544 * record-btrace.c (record_btrace_open): Constify.
2545 * record-full.c (record_full_core_open_1, record_full_open_1)
2546 (record_full_open): Constify.
2547 * remote-m32r-sdi.c (m32r_open): Constify.
2548 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2549 (rockhopper_open, lsi_open): Constify.
2550 * remote-sim.c (gdbsim_open): Constify.
2551 * remote.c (remote_open, extended_remote_open, remote_open_1):
2552 Constify.
2553 * target.h (struct target_ops) <to_open>: Make "arg" const.
2554 * tracefile-tfile.c (tfile_open): Constify.
2555
2556 2014-07-30 Tom Tromey <tromey@redhat.com>
2557
2558 * breakpoint.c (map_breakpoint_numbers): Update.
2559 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2560 (get_number_const): New function.
2561 (get_number): Rewrite using get_number_const.
2562 (init_number_or_range): Make "string" const.
2563 (number_is_in_list): Make "list" const.
2564 * cli/cli-utils.h (get_number_const): Declare.
2565 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2566 (init_number_or_range, number_is_in_list): Update.
2567 * printcmd.c (map_display_numbers): Update.
2568 * value.c (value_from_history_ref): Constify.
2569 * value.h (value_from_history_ref): Update.
2570
2571 2014-07-30 Tom Tromey <tromey@redhat.com>
2572
2573 * corefile.c (hook_type, call_extra_exec_file_hooks)
2574 (specify_exec_file_hook): Constify.
2575 * exec.c (exec_file_attach): Make "filename" const.
2576 * gdbcore.h (deprecated_exec_file_display_hook)
2577 (specify_exec_file_hook, exec_file_attach): Constify.
2578 * main.c (captured_main): Use catch_command_errors_const.
2579
2580 2014-07-30 Tom Tromey <tromey@redhat.com>
2581
2582 * target.c (open_target): New function.
2583 (add_target_with_completer, add_deprecated_target_alias): Use
2584 set_cmd_sfunc, set_cmd_context.
2585 (debug_to_open): Remove.
2586 (setup_target_debug): Update.
2587
2588 2014-07-30 Yao Qi <yao@codesourcery.com>
2589
2590 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2591 comments.
2592 * parse.c (exp_iterate): Update comments.
2593
2594 2014-07-30 Gary Benson <gbenson@redhat.com>
2595
2596 * common/common-defs.h: New file.
2597 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2598 * defs.h: Include common-defs.h.
2599 Do not include config.h or build-gnulib/config.h.
2600
2601 2014-07-30 Gary Benson <gbenson@redhat.com>
2602
2603 * common/common-utils.h: Do not include config.h.
2604 * nat/linux-btrace.h: Likewise.
2605
2606 2014-07-30 Gary Benson <gbenson@redhat.com>
2607
2608 * btrace.c: Include defs.h.
2609 * common/ptid.c: Include defs.h or server.h as appropriate.
2610 * nat/mips-linux-watch.c: Likewise.
2611
2612 2014-07-29 Tom Tromey <tromey@redhat.com>
2613
2614 * target.c (target_is_pushed): Simplify.
2615
2616 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2617
2618 GDB 7.8 released.
2619
2620 2014-07-29 Yao Qi <yao@codesourcery.com>
2621
2622 PR gdb/17206
2623 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2624
2625 2014-07-28 Doug Evans <xdje42@gmail.com>
2626
2627 PR guile/17203
2628 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2629 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2630 parameters.
2631
2632 2014-07-28 Will Newton <will.newton@linaro.org>
2633
2634 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2635 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2636 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2637 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2638 (THUMB2_EABI_SYSCALL): Likewise.
2639 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2640 struct tramp_frame.
2641 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2642 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2643
2644 2014-07-27 Doug Evans <xdje42@gmail.com>
2645
2646 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2647
2648 2014-07-27 Doug Evans <xdje42@gmail.com>
2649
2650 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2651
2652 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2653 Doug Evans <xdje42@gmail.com>
2654
2655 PR guile/17146
2656 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2657 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2658 * configure.ac: Try to use guild to compile an scm file, if it fails
2659 then disable guile support.
2660 * configure: Regenerate.
2661 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2662 GUILE_FILE_LIST.
2663 (GUILE_COMPILED_FILES): New variable.
2664 (GUILE_FILES) Update.
2665 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2666 (stamp-guile): Compile scm files.
2667 * guile/guile.c (boot_guile_support): New function.
2668 (standard_throw_args_p): New function.
2669 (print_standard_throw_error, print_throw_error): New functions.
2670 (handle_boot_error): New function.
2671 (initialize_scheme_side): Rewrite to call boot_guile_support.
2672 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2673 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2674
2675 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2676 Doug Evans <xdje42@gmail.com>
2677
2678 PR guile/17146
2679 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2680 * guile/lib/gdb/support.scm: New file.
2681 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2682 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2683 All uses updated.
2684 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2685 All uses updated.
2686 (%assert-type): Ditto, and renamed to assert-type.
2687 (%exception-print-style): Delete.
2688
2689 2014-07-26 Doug Evans <xdje42@gmail.com>
2690
2691 PR build/17105
2692 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2693 * configure: Regenerate.
2694 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2695 PYTHON_FILES.
2696 (PYTHON_FILES): New variable.
2697 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2698 (GUILE_FILES): New variable.
2699 (stamp-python, install-python, uninstall-python): Handle empty
2700 file list.
2701 (stamp-guile, install-guile, uninstall-guile): Ditto.
2702
2703 2014-07-26 Doug Evans <xdje42@gmail.com>
2704
2705 PR guile/17177
2706 * guile/lib/gdb.scm (pretty-printers): Export.
2707 (set-pretty-printers!): Export.
2708 * guile/lib/gdb/printing.scm (gdb module): Update.
2709 (prepend-pretty-printer!, append-pretty-printer!): Update.
2710 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2711 (pretty_printer_list_var): Delete.
2712 (pretty_printer_list): New static global.
2713 (gdbscm_pretty_printers): New function.
2714 (gdbscm_set_pretty_printers_x): New function.
2715 (ppscm_find_pretty_printer_from_gdb): Update.
2716 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2717 (gdbscm_initialize_pretty_printers): Update.
2718
2719 2014-07-26 Doug Evans <xdje42@gmail.com>
2720
2721 PR 17185
2722 * configure.ac: Add check for header gc/gc.h.
2723 Add check for function setenv.
2724 * configure: Regenerate.
2725 * config.in: Regenerate.
2726 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2727
2728 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2729
2730 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2731 variation in gdbarch matching.
2732
2733 2014-07-25 Tom Tromey <tromey@redhat.com>
2734
2735 * exec.c (using_exec_ops): Remove.
2736 (exec_close_1): Update. Remove extraneous block, reindent.
2737 (add_target_sections): Use target_is_pushed.
2738
2739 2014-07-25 Pedro Alves <palves@redhat.com>
2740
2741 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2742 * monitor.c (monitor_create_inferior): Likewise.
2743 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2744 * remote-sim.c (gdbsim_create_inferior): Likewise.
2745 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2746 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2747 * windows-nat.c (do_initial_windows_stuff): Likewise.
2748
2749 2014-07-25 Pedro Alves <palves@redhat.com>
2750
2751 * NEWS: Mention signal passing and "signal" command changes.
2752 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2753 comment.
2754 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2755 call.
2756 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2757 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2758 (jump_command): Adjust clear_proceed_status call.
2759 (signal_command): Warn if other thread that are resumed have
2760 signals that will be delivered. Adjust clear_proceed_status call.
2761 (until_next_command, finish_command)
2762 (proceed_after_attach_callback, attach_command_post_wait)
2763 (attach_command): Adjust clear_proceed_status call.
2764 * infrun.c (proceed_after_vfork_done): Likewise.
2765 (proceed_after_attach_callback): Adjust comment.
2766 (clear_proceed_status_thread): Clear stop_signal if not in pass
2767 state.
2768 (clear_proceed_status_callback): Delete.
2769 (clear_proceed_status): New 'step' parameter. Only clear the
2770 proceed status of threads the command being prepared is about to
2771 resume.
2772 (proceed): If passed in an explicit signal, override stop_signal
2773 with it. Don't pass the last stop signal to the thread we're
2774 resuming.
2775 (init_wait_for_inferior): Adjust clear_proceed_status call.
2776 (switch_back_to_stepped_thread): Clear the signal if it should not
2777 be passed.
2778 * infrun.h (clear_proceed_status): New 'step' parameter.
2779 (user_visible_resume_ptid): Add comment.
2780 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2781 signal is in pass state.
2782 * remote.c (append_pending_thread_resumptions): Likewise.
2783 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2784
2785 2014-07-25 Tom Tromey <tromey@redhat.com>
2786
2787 * target.h (target_stopped_data_address)
2788 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2789 parentheses.
2790
2791 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2792
2793 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2794 comments.
2795 (avr_pointer_to_address): Likewise.
2796
2797 2014-07-24 Tom Tromey <tromey@redhat.com>
2798
2799 * monitor.c (compile_pattern): Update.
2800 * target.h (struct target_ops) <to_shortname, to_longname,
2801 to_doc>: Now const.
2802
2803 2014-07-24 Tom Tromey <tromey@redhat.com>
2804
2805 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2806 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2807 (add_info_alias, add_com): Make "doc" const.
2808 (print_doc_line): Make "str" const.
2809 (delete_cmd): Update.
2810 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2811 (print_doc_line): Update.
2812 * cli/cli-script.c (document_command): Update.
2813 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2814 (add_com, add_info, add_info_alias): Update.
2815 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2816 * python/py-cmd.c (cmdpy_destroyer): Update.
2817
2818 2014-07-24 Tom Tromey <tromey@redhat.com>
2819
2820 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2821 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2822 (help_cmd_list): Constify.
2823 (lookup_cmd): Update.
2824 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2825 const.
2826 (help_cmd_list, apropos_cmd): Update.
2827 * cli/cli-script.c (show_user): Update.
2828 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2829 * cli/cli-setshow.h (cmd_show_list): Update.
2830 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2831 (cmd_show_list): Update.
2832 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2833 * python/py-cmd.c (cmdpy_destroyer): Update.
2834
2835 2014-07-24 Tom Tromey <tromey@redhat.com>
2836
2837 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2838 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2839 const.
2840 * command.h (deprecate_cmd): Update.
2841 * maint.c (maintenance_do_deprecate): Add casts.
2842
2843 2014-07-24 Tom Tromey <tromey@redhat.com>
2844
2845 * cli/cli-decode.c (help_cmd): Make parameter "const".
2846 * cli/cli-decode.h (help_cmd): Update.
2847
2848 2014-07-24 Tom Tromey <tromey@redhat.com>
2849
2850 * stack.c (up_silently_base, down_silently_base): Make argument
2851 const.
2852
2853 2014-07-24 Tom Tromey <tromey@redhat.com>
2854
2855 * solib.c (solib_add): Make "pattern" const.
2856 * solib.h (solib_add): Update.
2857
2858 2014-07-24 Tom Tromey <tromey@redhat.com>
2859
2860 * remote.c (remote_serial_open, print_packet, putpkt)
2861 (putpkt_binary): Constify.
2862 * remote.h (putpkt): Update.
2863
2864 2014-07-24 Tom Tromey <tromey@redhat.com>
2865
2866 * monitor.c (monitor_open): Make "args" const.
2867 * monitor.h (monitor_open): Update.
2868
2869 2014-07-24 Tom Tromey <tromey@redhat.com>
2870
2871 * maint.c (match_bfd_flags): Make "string" const.
2872 (print_bfd_section_info): Remove casts.
2873 (print_objfile_section_info): Make "string" const.
2874
2875 2014-07-24 Tom Tromey <tromey@redhat.com>
2876
2877 * inf-child.c (inf_child_open_target): Make "arg" const.
2878 * inf-child.h (inf_child_open_target): Update.
2879
2880 2014-07-24 Tom Tromey <tromey@redhat.com>
2881
2882 * environ.c (unset_in_environ): Make "var" const.
2883 * environ.h (unset_in_environ): Update.
2884
2885 2014-07-24 Tom Tromey <tromey@redhat.com>
2886
2887 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2888 Make "cmd" const.
2889 (scan_filename_with_cleanup): Likewise.
2890 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2891 Make arguments const.
2892 (restore_command): Update.
2893
2894 2014-07-24 Pedro Alves <palves@redhat.com>
2895
2896 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2897
2898 2014-07-24 Tom Tromey <tromey@redhat.com>
2899 Gary Benson <gbenson@redhat.com>
2900
2901 * nat/linux-ptrace.c (additional_flags): New global.
2902 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2903 additional_flags; don't check GDBSERVER.
2904 (linux_ptrace_set_additional_flags): New function.
2905 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2906 Declare.
2907 * linux-nat.c (_initialize_linux_nat): Call
2908 linux_ptrace_set_additional_flags.
2909
2910 2014-07-24 Tom Tromey <tromey@redhat.com>
2911
2912 * make-target-delegates (munge_type, write_debugmethod): New
2913 functions.
2914 (debug_names): New global.
2915 ($TARGET_DEBUG_PRINTER): New global.
2916 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2917 name.
2918 Write debug methods. Generate init_debug_target.
2919 * target-debug.h: New file.
2920 * target-delegates.c: Rebuild.
2921 * target.c: Include target-debug.h.
2922 (debug_target): Hoist definition.
2923 (target_kill, target_get_section_table, target_memory_map)
2924 (target_flash_erase, target_flash_done, target_detach)
2925 (target_disconnect, target_wait, target_resume)
2926 (target_pass_signals, target_program_signals, target_follow_fork)
2927 (target_mourn_inferior, target_search_memory)
2928 (target_thread_address_space, target_close)
2929 (target_find_new_threads, target_core_of_thread)
2930 (target_verify_memory, target_insert_mask_watchpoint)
2931 (target_remove_mask_watchpoint): Remove targetdebug code.
2932 (debug_to_post_attach, debug_to_prepare_to_store)
2933 (debug_to_files_info, debug_to_insert_breakpoint)
2934 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2935 (debug_to_region_ok_for_hw_watchpoint)
2936 (debug_to_can_accel_watchpoint_condition)
2937 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2938 (debug_to_watchpoint_addr_within_range)
2939 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2940 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2941 (debug_to_terminal_init, debug_to_terminal_inferior)
2942 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2943 (debug_to_terminal_save_ours, debug_to_terminal_info)
2944 (debug_to_load, debug_to_post_startup_inferior)
2945 (debug_to_insert_fork_catchpoint)
2946 (debug_to_remove_fork_catchpoint)
2947 (debug_to_insert_vfork_catchpoint)
2948 (debug_to_remove_vfork_catchpoint)
2949 (debug_to_insert_exec_catchpoint)
2950 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2951 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2952 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2953 (setup_target_debug): Call init_debug_target.
2954 * target.h (TARGET_DEBUG_PRINTER): New macro.
2955 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2956 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2957
2958 2014-07-24 Gary Benson <gbenson@redhat.com>
2959
2960 * exceptions.h (throw_vfatal): Renamed to...
2961 (throw_vquit): New declaration.
2962 (throw_quit): Likewise.
2963 * exceptions.c (throw_vfatal): Renamed to...
2964 (throw_vquit): New function.
2965 (throw_quit): Likewise.
2966 (throw_error): Call throw_verror rather than throw_it.
2967 * utils.h (vfatal): Removed.
2968 (fatal): Likewise.
2969 * utils.c (vfatal): Removed.
2970 (fatal): Likewise.
2971 (internal_verror): Replaced call to fatal with call to throw_quit.
2972 (quit): Replaced calls to fatal with calls to throw_quit.
2973
2974 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2975
2976 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2977 target_read_code.
2978
2979 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2980
2981 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2982 less than zero in conditional expression.
2983
2984 2014-07-23 Tom Tromey <tromey@redhat.com>
2985
2986 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2987 ($INTRO_PART): Don't match whitespace.
2988 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2989 argument matching.
2990 ($METHOD): Add $METHOD_TRAILER.
2991 (trim): Rewrite.
2992 (scan_target_h): New sub.
2993 Change main loop not to collect state.
2994 * target-delegates.c: Rebuild.
2995
2996 2014-07-23 Gary Benson <gbenson@redhat.com>
2997
2998 * cp-support.c (gdb_demangle): Fix build on systems without
2999 sigaltstack.
3000
3001 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3002
3003 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3004 for reference entry value target data value.
3005
3006 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3007
3008 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3009 value_available_contents_eq.
3010
3011 2014-07-22 Pedro Alves <palves@redhat.com>
3012
3013 * value.c (allocate_optimized_out_value): Don't mark value as
3014 non-lazy.
3015
3016 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3017
3018 * MAINTAINERS (Write After Approval): Update my email address.
3019
3020 2014-07-20 Doug Evans <dje@google.com>
3021
3022 PR server/17147
3023 * remote.c (putpkt_binary): Add text to error message.
3024
3025 2014-07-20 Yao Qi <yao@codesourcery.com>
3026
3027 * eval.c: Remove "Chill" from comments.
3028 * gdbtypes.h: Likewise.
3029 * symtab.h: Likewise.
3030
3031 2014-07-20 Yao Qi <yao@codesourcery.com>
3032
3033 * std-operator.def: Update comments to TERNOP_SLICE.
3034
3035 2014-07-20 Yao Qi <yao@codesourcery.com>
3036
3037 * std-operator.def: Remove BINOP_RANGE.
3038 * breakpoint.c (watchpoint_exp_is_const): Update.
3039 * expprint.c (dump_subexp_body_standard): Likewise.
3040 * eval.c (init_array_element): Remove dead code.
3041 (evaluate_subexp_standard): Likewise.
3042
3043 2014-07-20 Yao Qi <yao@codesourcery.com>
3044
3045 * std-operator.def: Remove BINOP_IN.
3046 * breakpoint.c (watchpoint_exp_is_const): Update.
3047 * eval.c (evaluate_subexp_standard): Likewise.
3048 * expprint.c (dump_subexp_body_standard): Likewise.
3049
3050 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3051
3052 * microblaze-tdep.c (microblaze_register_names): Add
3053 the rshr and rslr register names.
3054 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3055 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3056 Use of tdesc_numbered_register. Use of
3057 microblaze_register_g_packet_guesses. Use of
3058 tdesc_use_registers. Use of set_gdbarch_register_type.
3059 (microblaze_register_g_packet_guesses): New.
3060 * microblaze-tdep.h (microblaze_reg_num): Add
3061 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3062 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3063 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3064 * features/microblaze-core.xml: New file.
3065 * features/microblaze-stack-protect.xml: New file.
3066 * features/microblaze-with-stack-protect.c: New file.
3067 * features/microblaze-with-stack-protect.xml: New file.
3068 * features/microblaze.xml: New file.
3069 * features/microblaze.c: New file.
3070 * features/Makefile (microblaze-with-stack-protect): Add
3071 microblaze-with-stack-protect microblaze and microblaze-expedite.
3072 * regformats/microblaze-with-stack-protect.dat: New file.
3073 * regformats/microblaze.dat: New file.
3074 * doc/gdb.texinfo (MicroBlaze Features): Added.
3075
3076 2014-07-18 Tom Tromey <tromey@redhat.com>
3077
3078 * exec.c (exec_ops): Now static.
3079 * exec.h (exec_ops): Don't declare.
3080
3081 2014-07-18 Tom Tromey <tromey@redhat.com>
3082
3083 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3084 to find_target_beneath.
3085 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3086 find_target_beneath.
3087 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3088
3089 2014-07-18 Tom Tromey <tromey@redhat.com>
3090
3091 PR gdb/17130:
3092 * utils.c (quit): Use target_supports_terminal_ours.
3093 * target.h (target_supports_terminal_ours): Declare.
3094 * target.c (target_supports_delete_record): Don't check
3095 to_delete_record against NULL.
3096 (target_supports_terminal_ours): New function.
3097
3098 2014-07-18 Tom Tromey <tromey@redhat.com>
3099
3100 PR gdb/17130:
3101 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3102 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3103 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3104 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3105 * windows-nat.c (windows_xfer_partial): Always delegate.
3106 * record-btrace.c (record_btrace_xfer_partial): Simplify
3107 delegation.
3108 (record_btrace_fetch_registers, record_btrace_store_registers)
3109 (record_btrace_prepare_to_store, record_btrace_resume)
3110 (record_btrace_wait, record_btrace_find_new_threads)
3111 (record_btrace_thread_alive): Likewise.
3112 * procfs.c (procfs_xfer_partial): Always delegate.
3113 * corelow.c (core_xfer_partial): Always delegate.
3114 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3115
3116 2014-07-18 Tom Tromey <tromey@redhat.com>
3117
3118 * exec.c (exec_make_note_section): Move earlier.
3119
3120 2014-07-17 Doug Evans <dje@google.com>
3121
3122 PR gdb/17170
3123 * maint.c (count_symtabs_and_blocks): Handle NULL
3124 current_program_space.
3125 (report_command_stats): Check global enabled flag in addition to
3126 recorded enabled flag.
3127 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3128
3129 2014-07-16 Pedro Alves <palves@redhat.com>
3130
3131 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3132
3133 2014-07-16 Tom Tromey <tromey@redhat.com>
3134
3135 * target.h (struct target_ops) <to_delete_record>: Reformat
3136 comment.
3137
3138 2014-07-16 Tom Tromey <tromey@redhat.com>
3139
3140 * target-delegates.c: Rebuild.
3141
3142 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3143
3144 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3145 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3146 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3147 (avr_pointer_to_address): Likewise.
3148 (avr_address_class_type_flags): New function.
3149 (avr_address_class_type_flags_to_name): Likewise.
3150 (avr_address_class_name_to_type_flags): Likewise.
3151 (avr_gdbarch_init): Set address_class_type_flags,
3152 address_class_type_flags_to_name and
3153 address_class_name_to_type_flags.
3154
3155 2014-07-15 Pedro Alves <palves@redhat.com>
3156
3157 * linux-nat.c (kill_callback): Save errno and work with saved
3158 copy.
3159
3160 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3161
3162 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3163
3164 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3165
3166 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3167 breakpoint support correctly.
3168
3169 2014-07-14 Pedro Alves <palves@redhat.com>
3170
3171 * utils.c (prompt_for_continue): Call target_terminal_ours.
3172
3173 2014-07-14 Pedro Alves <palves@redhat.com>
3174
3175 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3176 catch_errors. Don't re-enable stdin or notify observers where,
3177 and rethrow error.
3178 (fetch_inferior_event_wrapper): Delete.
3179
3180 2014-07-14 Pedro Alves <palves@redhat.com>
3181
3182 PR gdb/17072
3183 * top.c: Include "inf-loop.h".
3184 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3185 field.
3186 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3187 was async before.
3188 (gdb_readline_wrapper): Store whether the target is async, and
3189 make it sync.
3190
3191 2014-07-14 Pedro Alves <palves@redhat.com>
3192
3193 PR gdb/17072
3194 * top.c (gdb_readline_wrapper_line): Tweak comment.
3195 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3196 the input handler callback.
3197
3198 2014-07-14 Pedro Alves <palves@redhat.com>
3199
3200 PR gdb/17072
3201 * main.c: Include event-top.h.
3202 (handle_command_errors): New function.
3203 (catch_command_errors, catch_command_errors_const): Use it.
3204
3205 2014-07-14 Pedro Alves <palves@redhat.com>
3206
3207 * exceptions.c (catch_command_errors, catch_command_errors_const):
3208 Moved to main.c.
3209 * exceptions.h (catch_command_errors_ftype)
3210 (catch_command_errors_const_ftype): Moved to main.c.
3211 (catch_command_errors, catch_command_errors_const): Delete
3212 declarations.
3213 * main.c (catch_command_errors_ftype)
3214 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3215 (catch_command_errors, catch_command_errors_const)): Moved here
3216 from exceptions.c and make static.
3217
3218 2014-07-14 Pedro Alves <palves@redhat.com>
3219
3220 * exceptions.c (print_any_exception): Delete.
3221 (catch_exceptions_with_msg): Use exception_print instead of
3222 print_any_exception.
3223 (catch_errors): Use exception_fprintf instead of
3224 print_any_exception.
3225 (catch_command_errors, catch_command_errors_const): Use
3226 exception_print instead of print_any_exception.
3227
3228 2014-07-14 Pedro Alves <palves@redhat.com>
3229
3230 * infcall.c (run_inferior_call): Set 'sync_execution' while
3231 running the inferior call.
3232
3233 2014-07-14 Pedro Alves <palves@redhat.com>
3234
3235 * value.c (value_contents_equal): Delete function.
3236 * value.h (value_contents_equal): Delete declaration.
3237
3238 2014-07-14 Tom Tromey <tromey@redhat.com>
3239
3240 PR exp/17106:
3241 * gdbtypes.c (is_dynamic_type_internal): New function, from
3242 is_dynamic_type.
3243 (is_dynamic_type): Rewrite.
3244 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3245 (resolve_dynamic_struct): Likewise.
3246 (resolve_dynamic_type_internal): New function, from
3247 resolve_dynamic_type.
3248 (resolve_dynamic_type): Rewrite.
3249
3250 2014-07-14 Tom Tromey <tromey@redhat.com>
3251
3252 * target.c (target_require_runnable): Also check record_stratum.
3253 Update comment.
3254
3255 2014-07-11 Yao Qi <yao@codesourcery.com>
3256
3257 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3258 thumb_instruction_restores_sp return true.
3259
3260 2014-07-11 Yao Qi <yao@codesourcery.com>
3261
3262 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3263 (thumb_in_function_epilogue_p): Call
3264 thumb_instruction_restores_sp.
3265
3266 2014-07-11 Yao Qi <yao@codesourcery.com>
3267
3268 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3269 'add sp, #imm'.
3270 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3271
3272 2014-07-11 Gary Benson <gbenson@redhat.com>
3273
3274 * amd64-linux-nat.c (gdbcore.h): Remove include.
3275 (regset.h): Likewise.
3276 (nat/linux-btrace.h): Likewise.
3277 (btrace.h): Likewise.
3278 (gdb_assert.h): Likewise.
3279 (string.h): Likewise.
3280 (sys/uio.h): Likewise.
3281 (sys/debugreg.h): Likewise.
3282 (sys/syscall.h): Likewise.
3283 (sys/procfs.h): Likewise.
3284 (sys/user.h): Likewise.
3285 (asm/ptrace.h): Likewise.
3286 (i386-nat.h): Likewise.
3287 * i386-linux-nat.c (i386-nat.h): Likewise.
3288 (regset.h): Likewise.
3289 (target.h): Likewise.
3290 (linux-nat.h): Likewise.
3291 (nat/linux-btrace.h): Likewise.
3292 (btrace.h): Likewise.
3293 (gdb_assert.h): Likewise.
3294 (string.h): Likewise.
3295 (sys/uio.h): Likewise.
3296 (sys/user.h): Likewise.
3297 (sys/procfs.h): Likewise.
3298 (sys/reg.h): Likewise.
3299 (sys/debugreg.h): Likewise.
3300 (ORIG_EAX): Remove definition.
3301
3302 2014-07-11 Gary Benson <gbenson@redhat.com>
3303
3304 * i386-linux-nat.h: New file.
3305 * x86-linux-nat.h: Likewise.
3306 * x86-linux-nat.c: Likewise.
3307 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3308 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3309 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3310 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3311 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3312 (PTRACE_SETREGSET): Likewise.
3313 (arch_lwp_info): Now in x86-linux-nat.c.
3314 (have_ptrace_getregset): Now in x86-linux-nat.h.
3315 (x86_linux_dr_get): Now in x86-linux-nat.c.
3316 (x86_linux_dr_set): Likewise.
3317 (x86_linux_dr_get_addr): Likewise.
3318 (x86_linux_dr_get_control): Likewise.
3319 (x86_linux_dr_get_status): Likewise.
3320 (update_debug_registers_callback): Likewise.
3321 (x86_linux_dr_set_control): Likewise.
3322 (x86_linux_dr_set_addr): Likewise.
3323 (x86_linux_prepare_to_resume): Likewise.
3324 (x86_linux_new_thread): Likewise.
3325 (x86_linux_new_fork): Likewise.
3326 (x86_linux_get_thread_area): Likewise.
3327 (super_post_startup_inferior): Likewise.
3328 (x86_linux_child_post_startup_inferior): Likewise.
3329 (AMD64_LINUX_USER64_CS): Likewise.
3330 (AMD64_LINUX_X32_DS): Likewise.
3331 (x86_linux_read_description): Likewise.
3332 (x86_linux_enable_btrace): Likewise.
3333 (x86_linux_disable_btrace): Likewise.
3334 (x86_linux_teardown_btrace): Likewise.
3335 (x86_linux_read_btrace): Likewise.
3336 (x86_linux_create_target): Likewise.
3337 (x86_linux_add_target): Likewise.
3338 * i386-linux-nat.c (x86-linux-nat.h): New include.
3339 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3340 (PTRACE_SETREGSET): Likewise.
3341 (arch_lwp_info): Now in x86-linux-nat.c.
3342 (have_ptrace_getregset): Now in x86-linux-nat.h.
3343 (x86_linux_dr_get): Now in x86-linux-nat.c.
3344 (x86_linux_dr_set): Likewise.
3345 (x86_linux_dr_get_addr): Likewise.
3346 (x86_linux_dr_get_control): Likewise.
3347 (x86_linux_dr_get_status): Likewise.
3348 (update_debug_registers_callback): Likewise.
3349 (x86_linux_dr_set_control): Likewise.
3350 (x86_linux_dr_set_addr): Likewise.
3351 (x86_linux_prepare_to_resume): Likewise.
3352 (x86_linux_new_thread): Likewise.
3353 (x86_linux_new_fork): Likewise.
3354 (x86_linux_get_thread_area): Likewise.
3355 (super_post_startup_inferior): Likewise.
3356 (x86_linux_child_post_startup_inferior): Likewise.
3357 (AMD64_LINUX_USER64_CS): Likewise.
3358 (AMD64_LINUX_X32_DS): Likewise.
3359 (x86_linux_read_description): Likewise.
3360 (x86_linux_enable_btrace): Likewise.
3361 (x86_linux_disable_btrace): Likewise.
3362 (x86_linux_teardown_btrace): Likewise.
3363 (x86_linux_read_btrace): Likewise.
3364 (x86_linux_create_target): Likewise.
3365 (x86_linux_add_target): Likewise.
3366
3367 2014-07-11 Gary Benson <gbenson@redhat.com>
3368
3369 * amd64-linux-nat.c: Comment and whitespace changes.
3370 * i386-linux-nat.c: Comment and whitespace changes.
3371
3372 2014-07-11 Gary Benson <gbenson@redhat.com>
3373
3374 * amd64-linux-nat.c (x86_linux_create_target): New function.
3375 (x86_linux_add_target): Likewise.
3376 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3377 * i386-linux-nat.c (x86_linux_create_target): New function.
3378 (x86_linux_add_target): Likewise.
3379 (_initialize_i386_linux_nat): Delegate to the above new functions.
3380
3381 2014-07-11 Gary Benson <gbenson@redhat.com>
3382
3383 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3384 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3385 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3386 (ps_get_thread_area): Delegate to the above.
3387
3388 2014-07-11 Gary Benson <gbenson@redhat.com>
3389
3390 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3391 x86_linux_read_description. All uses updated. amd64-specific
3392 code conditionalized. Conditionalized i386-specific code added.
3393 Redundant cast removed.
3394 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3395 x86_linux_read_description. All uses updated. i386-specific
3396 code conditionalized. Conditionalized amd64-specific code added.
3397 One sizeof replaced with the actual type it is describing.
3398
3399 2014-07-11 Gary Benson <gbenson@redhat.com>
3400
3401 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3402 x86_linux_dr_get. All uses updated.
3403 (amd64_linux_dr_set): Renamed to
3404 x86_linux_dr_set. All uses updated.
3405 (amd64_linux_dr_get_addr): Renamed to
3406 x86_linux_dr_get_addr. All uses updated.
3407 (amd64_linux_dr_get_control): Renamed to
3408 x86_linux_dr_get_control. All uses updated.
3409 (amd64_linux_dr_get_status): Renamed to
3410 x86_linux_dr_get_status. All uses updated.
3411 (amd64_linux_dr_set_control): Renamed to
3412 x86_linux_dr_set_control. All uses updated.
3413 (amd64_linux_dr_set_addr): Renamed to
3414 x86_linux_dr_set_addr. All uses updated.
3415 (amd64_linux_prepare_to_resume): Renamed to
3416 x86_linux_prepare_to_resume. All uses updated.
3417 (amd64_linux_new_thread): Renamed to
3418 x86_linux_new_thread. All uses updated.
3419 (amd64_linux_new_fork): Renamed to
3420 x86_linux_new_fork. All uses updated.
3421 (amd64_linux_child_post_startup_inferior): Renamed to
3422 x86_linux_child_post_startup_inferior. All uses updated.
3423 (amd64_linux_enable_btrace): Renamed to
3424 x86_linux_enable_btrace. All uses updated.
3425 (amd64_linux_disable_btrace): Renamed to
3426 x86_linux_disable_btrace. All uses updated.
3427 (amd64_linux_teardown_btrace): Renamed to
3428 x86_linux_teardown_btrace. All uses updated.
3429 (amd64_linux_read_btrace): Renamed to
3430 x86_linux_read_btrace. All uses updated.
3431 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3432 x86_linux_dr_get. All uses updated.
3433 (i386_linux_dr_set): Renamed to
3434 x86_linux_dr_set. All uses updated.
3435 (i386_linux_dr_get_addr): Renamed to
3436 x86_linux_dr_get_addr. All uses updated.
3437 (i386_linux_dr_get_control): Renamed to
3438 x86_linux_dr_get_control. All uses updated.
3439 (i386_linux_dr_get_status): Renamed to
3440 x86_linux_dr_get_status. All uses updated.
3441 (i386_linux_dr_set_control): Renamed to
3442 x86_linux_dr_set_control. All uses updated.
3443 (i386_linux_dr_set_addr): Renamed to
3444 x86_linux_dr_set_addr. All uses updated.
3445 (i386_linux_prepare_to_resume): Renamed to
3446 x86_linux_prepare_to_resume. All uses updated.
3447 (i386_linux_new_thread): Renamed to
3448 x86_linux_new_thread. All uses updated.
3449 (i386_linux_new_fork): Renamed to
3450 x86_linux_new_fork. All uses updated.
3451 (i386_linux_child_post_startup_inferior): Renamed to
3452 x86_linux_child_post_startup_inferior. All uses updated.
3453 (i386_linux_enable_btrace): Renamed to
3454 x86_linux_enable_btrace. All uses updated.
3455 (i386_linux_disable_btrace): Renamed to
3456 x86_linux_disable_btrace. All uses updated.
3457 (i386_linux_teardown_btrace): Renamed to
3458 x86_linux_teardown_btrace. All uses updated.
3459 (i386_linux_read_btrace): Renamed to
3460 x86_linux_read_btrace. All uses updated.
3461
3462 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3463
3464 * remote.c (extended_remote_post_attach): New function.
3465 (init_extended_remote_ops): Install it as to_post_attach method.
3466
3467 2014-07-09 Pedro Alves <palves@redhat.com>
3468
3469 * infcmd.c (attach_command_post_wait): Don't call
3470 target_terminal_inferior here.
3471 (attach_command): Call it here instead.
3472
3473 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3474
3475 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3476 field.
3477 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3478 from varobj.c, with additional checks.
3479 (c_varobj_ops): Fill in is_path_expr_parent field.
3480 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3481 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3482 field.
3483 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3484 ops method.
3485 (varobj_default_is_path_expr_parent): New function.
3486 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3487 (varobj_default_is_path_expr_parent): Declare new function.
3488
3489 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3490
3491 * infcmd.c (finish_backward): Turn internal error into normal error.
3492
3493 2014-07-07 Pedro Alves <palves@redhat.com>
3494
3495 PR gdb/17096
3496 * remote.c (async_handle_remote_sigint)
3497 (async_handle_remote_sigint_twice): Call
3498 gdb_call_async_signal_handler instead of
3499 mark_async_signal_handler.
3500
3501 2014-07-07 Tom Tromey <tromey@redhat.com>
3502
3503 * target-delegates.c: Rebuild.
3504 * target.c (target_info_record): Remove.
3505 * record.c (info_record_command): Unconditionally call
3506 to_info_record.
3507 * target.h (struct target_ops) <to_info_record>: Use
3508 TARGET_DEFAULT_IGNORE.
3509 (target_info_record): Remove.
3510
3511 2014-07-07 Tom Tromey <tromey@redhat.com>
3512
3513 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3514 TARGET_DEFAULT_NORETURN.
3515 * target.c (generic_tls_error): New function.
3516 (target_translate_tls_address): Don't search target stack.
3517 * target-delegates.c: Rebuild.
3518 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3519 stack.
3520 * linux-thread-db.c (thread_db_get_thread_local_address):
3521 Unconditionally call beneath target.
3522
3523 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3524
3525 * cli/cli-logging.c (pop_output_files): Assign targerr to
3526 gdb_stdtargerr.
3527
3528 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3529
3530 * MAINTAINERS (Write After Approval): Update my email address.
3531
3532 2014-07-02 Gary Benson <gbenson@redhat.com>
3533
3534 * proc-service.c (ps_xfer_memory): Update comment.
3535 (ps_pstop): Remove unused function.
3536 (ps_pcontinue): Likewise.
3537 (ps_lstop): Likewise.
3538 (ps_lcontinue): Likewise.
3539 (ps_lgetxregsize): Likewise.
3540 (ps_lgetxregs): Likewise.
3541 (ps_lsetxregs): Likewise.
3542 (ps_plog): Likewise.
3543 (ps_ptread): Likewise.
3544 (ps_ptwrite): Likewise.
3545
3546 2014-07-01 Mark Wielaard <mjw@redhat.com>
3547
3548 * dwarf2read.c (add_array_cv_type): New function.
3549 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3550 (read_tag_volatile_type): Likewise.
3551
3552 2014-07-01 Tom Tromey <tromey@redhat.com>
3553
3554 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3555 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3556 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3557 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3558 * command.h (cmd_cfunc_ftype): Move earlier.
3559 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3560 (add_com, add_info): Use cmd_cfunc_ftype.
3561
3562 2014-06-30 Tom Tromey <tromey@redhat.com>
3563
3564 * symtab.c (operator_chars): Make parameters and return type
3565 const.
3566 (file_matches): Make "files" const.
3567 (struct search_symbols_data) <files>: Now const.
3568 (search_symbols): Make "regexp" and "files" parameters const.
3569 Update.
3570 (symtab_symbol_info): Remove cast.
3571 (rbreak_command): Update.
3572 * symtab.h (search_symbols): Update.
3573
3574 2014-06-27 Yao Qi <yao@codesourcery.com>
3575
3576 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3577 Change parameter type to 'struct thread_info *'. Caller
3578 updated.
3579 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3580 Update declaration.
3581 * dummy-frame.c (struct dummy_frame_id): New.
3582 (dummy_frame_id_eq): New function.
3583 (struct dummy_frame) <id>: Change its type to 'struct
3584 dummy_frame_id'.
3585 (dummy_frame_push): Add parameter ptid and save it in
3586 dummy_frame_id.
3587 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3588 inferior_ptid.
3589 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3590 to inferior_ptid.
3591 (lookup_dummy_frame): Change parameter type to 'struct
3592 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3593 instead of frame_id_eq.
3594 (dummy_frame_pop): Add parameter ptid. Callers updated.
3595 Update comments. Compose dummy_frame_id and pass it to
3596 lookup_dummy_frame.
3597 (dummy_frame_discard): Add parameter ptid.
3598 (dummy_frame_sniffer): Compose dummy_frame_id and call
3599 dummy_frame_id_eq instead of frame_id_eq.
3600 (fprint_dummy_frames): Print ptid.
3601 * dummy-frame.h: Remove comments.
3602 (dummy_frame_push): Add ptid in declaration.
3603 (dummy_frame_pop, dummy_frame_discard): Likewise.
3604
3605 2014-06-26 Tom Tromey <tromey@redhat.com>
3606
3607 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3608 * command.h (error_no_arg): Update.
3609
3610 2014-06-26 Tom Tromey <tromey@redhat.com>
3611
3612 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3613 (do_show_command): Make "arg" const.
3614 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3615
3616 2014-06-26 Tom Tromey <tromey@redhat.com>
3617
3618 * record-full.c (record_full_get_bookmark): Make "args" const.
3619 (record_full_goto_bookmark): Make "raw_bookmark" const.
3620 * record.c (record_goto): New function.
3621 (cmd_record_goto): Use it. Now static.
3622 * record.h (record_goto): Declare.
3623 (cmd_record_goto): Remove declaration.
3624 * target-delegates.c: Rebuild.
3625 * target.h (struct target_ops) <to_get_bookmark,
3626 to_goto_bookmark>: Make parameter const.
3627
3628 2014-06-26 Tom Tromey <tromey@redhat.com>
3629
3630 * defs.h (generic_load): Update.
3631 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3632 * monitor.c (monitor_load): Make "args" const.
3633 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3634 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3635 const.
3636 (mips_load): Make "file" const.
3637 * remote-sim.c (gdbsim_load): Make "args" const.
3638 * remote.c (remote_load): Make "name" const.
3639 * symfile.c (generic_load): Make "args" const.
3640 * target-delegates.c: Rebuild.
3641 * target.c (target_load): Make "arg" const.
3642 (debug_to_load): Make "args" const.
3643 * target.h (struct target_ops) <to_load>: Make parameter const.
3644 (target_load): Update.
3645
3646 2014-06-26 Tom Tromey <tromey@redhat.com>
3647
3648 PR symtab/16902:
3649 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3650 (dwarf2_physname, read_partial_die)
3651 (guess_partial_die_structure_name, fixup_partial_die)
3652 (guess_full_die_structure_name, anonymous_struct_prefix)
3653 (dwarf2_name): Use per-BFD obstack.
3654
3655 2014-06-26 Yao Qi <yao@codesourcery.com>
3656
3657 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3658 dummyframe and this_id into inner block below.
3659
3660 2014-06-26 Yao Qi <yao@codesourcery.com>
3661
3662 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3663 with "signal_pass[0]" in the initialization of signal_pass.
3664
3665 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3666
3667 * record-btrace.c (record_btrace_generating_corefile)
3668 (record_btrace_prepare_to_generate_core)
3669 (record_btrace_done_generating_core): New.
3670 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3671 (record_btrace_store_registers, record_btrace_prepare_to_store):
3672 Forward request when generating a core file.
3673 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3674 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3675 to_done_generating_core.
3676
3677 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3678
3679 * target.h (target_ops) <to_prepare_to_generate_core>
3680 <to_done_generating_core>: New.
3681 (target_prepare_to_generate_core, target_done_generating_core): New.
3682 * target.c (target_prepare_to_generate_core)
3683 (target_done_generating_core): New.
3684 * target-delegates.c: Regenerate.
3685 * gcore.c: (write_gcore_file): Rename to ...
3686 (write_gcore_file_1): ...this.
3687 (write_gcore_file): Call target_prepare_to_generate_core
3688 and target_done_generating_core.
3689
3690 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3691
3692 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3693 * gcore.c (write_gcore_file): Free memory returned from
3694 make_corefile_notes.
3695 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3696 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3697
3698 2014-06-24 Yao Qi <yao@codesourcery.com>
3699
3700 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3701 (arm_linux_init_abi): Set skip_trampoline_code with
3702 gdbarch_skip_trampoline_code instead of
3703 find_solib_trampoline_target.
3704
3705 2014-06-24 Yao Qi <yao@codesourcery.com>
3706
3707 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3708 arm_skip_bx_reg returns non-zero.
3709
3710 2014-06-24 Yao Qi <yao@codesourcery.com>
3711
3712 * arm-tdep.c (arm_skip_bx_reg): New function.
3713 (arm_skip_stub): Call arm_skip_bx_reg.
3714
3715 2014-06-23 Don Breazeal <donb@codesourcery.com>
3716
3717 * MAINTAINERS: Add myself as write-after-approval maintainer.
3718
3719 2014-06-23 Pedro Alves <palves@redhat.com>
3720
3721 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3722 DR_CONTROL before setting DR0..DR3.
3723 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3724 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3725 bits of DR_CONTROL related to the debug register slot being
3726 disabled. If all slots are vacant, clear local slowdown as well,
3727 and assert DR_CONTROL is 0.
3728
3729 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3730
3731 * python/lib/gdb/command/xmethods.py
3732 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3733 current progspace only if the string "progspace" matches LOCUS_RE.
3734
3735 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3736
3737 Fix --with-system-readline with readline-6.3 patch 5.
3738 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3739 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3740 types.
3741
3742 2014-06-20 Tom Tromey <tromey@redhat.com>
3743
3744 * dwarf2read.c (dw2_get_real_path): Use correct type in
3745 OBSTACK_CALLOC.
3746 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3747
3748 2014-06-20 Gary Benson <gbenson@redhat.com>
3749
3750 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3751 * common/glibc_thread_db.h: Likewise.
3752 * common/i386-cpuid.h: Likewise.
3753 * common/i386-gcc-cpuid.h: Likewise.
3754 * common/linux-btrace.h: Likewise.
3755 * common/linux-osdata.h: Likewise.
3756 * common/linux-procfs.h: Likewise.
3757 * common/linux-ptrace.h: Likewise.
3758 * common/mips-linux-watch.h: Likewise.
3759 * common/linux-btrace.c: Moved to nat.
3760 * common/linux-osdata.c: Likewise.
3761 * common/linux-procfs.c: Likewise.
3762 * common/linux-ptrace.c: Likewise.
3763 * common/mips-linux-watch.c: Likewise.
3764 * nat/gdb_thread_db.h: Moved from common.
3765 * nat/glibc_thread_db.h: Likewise.
3766 * nat/i386-cpuid.h: Likewise.
3767 * nat/i386-gcc-cpuid.h: Likewise.
3768 * nat/linux-btrace.c: Likewise.
3769 * nat/linux-btrace.h: Likewise.
3770 * nat/linux-osdata.c: Likewise.
3771 * nat/linux-osdata.h: Likewise.
3772 * nat/linux-procfs.c: Likewise.
3773 * nat/linux-procfs.h: Likewise.
3774 * nat/linux-ptrace.c: Likewise.
3775 * nat/linux-ptrace.h: Likewise.
3776 * nat/mips-linux-watch.c: Likewise.
3777 * nat/mips-linux-watch.h: Likewise.
3778 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3779 (object file files): Reordered.
3780 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3781 of glibc_thread_db.h.
3782
3783 2014-06-20 Gary Benson <gbenson@redhat.com>
3784
3785 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3786 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3787 (i386_dr_low): Likewise.
3788 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3789 (i386_dr_low_set_addr): Likewise.
3790 (i386_dr_low_get_addr): Likewise.
3791 (i386_dr_low_can_set_control): Likewise.
3792 (i386_dr_low_set_control): Likewise.
3793 (i386_dr_low_get_control): Likewise.
3794 (i386_dr_low_get_status): Likewise.
3795 (i386_get_debug_register_length): Likewise.
3796 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3797 (i386_dr_low): Likewise.
3798 * nat/i386-dregs.c (i386-low.h): Remove include.
3799 (i386-nat.h): Likewise.
3800 (nat/i386-dregs.h): New include.
3801 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3802 (i386_dr_low_set_addr): Likewise.
3803 (i386_dr_low_get_addr): Likewise.
3804 (i386_dr_low_can_set_control): Likewise.
3805 (i386_dr_low_set_control): Likewise.
3806 (i386_dr_low_get_control): Likewise.
3807 (i386_dr_low_get_status): Likewise.
3808 (i386_get_debug_register_length): Likewise.
3809 (debug_hw_points): Likewise.
3810
3811 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3812
3813 * Makefile.in (SFILES): Add d-exp.y.
3814 (YYFILES): Add d-exp.c.
3815 (YYOBJ): Add d-exp.o.
3816 (local-maintainer-clean): Delete d-exp.c.
3817 * d-exp.y: New file.
3818 * d-lang.h (d_parse): New declaration.
3819 (d_error): New declaration.
3820 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3821 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3822 PREC_ORDER operators.
3823 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3824
3825 2014-06-19 Yao Qi <yao@codesourcery.com>
3826
3827 * gdbthread.h (any_running): Remove the declaration.
3828 * thread.c (any_running): Remove.
3829
3830 2014-06-19 Yao Qi <yao@codesourcery.com>
3831
3832 * gdbthread.h (struct thread_info) <state>: Change its type to
3833 'enum thread_state'. Update comments.
3834
3835 2014-06-19 Pedro Alves <palves@redhat.com>
3836
3837 * gdbthread.h (ALL_THREADS): Delete.
3838 (ALL_NON_EXITED_THREADS): New macro.
3839 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3840 instead of ALL_THREADS.
3841 * infrun.c (find_thread_needs_step_over)
3842 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3843 instead of ALL_THREADS.
3844 * record-btrace.c (record_btrace_open)
3845 (record_btrace_stop_recording, record_btrace_close)
3846 (record_btrace_is_replaying, record_btrace_resume)
3847 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3848 * remote.c (append_pending_thread_resumptions): Likewise.
3849 * thread.c (thread_apply_all_command): Likewise.
3850
3851 2014-06-19 Gary Benson <gbenson@redhat.com>
3852
3853 * i386-nat.c (i386_stopped_by_watchpoint):
3854 Use i386_dr_stopped_by_watchpoint.
3855 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3856 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3857
3858 2014-06-19 Gary Benson <gbenson@redhat.com>
3859
3860 * nat/i386-dregs.c: New file.
3861 * Makefile.in (i386-dregs.o): New rule.
3862 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3863 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3864 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3865 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3866 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3867 * config/i386/go32.mh (NATDEPFILES): Likewise.
3868 * config/i386/linux.mh (NATDEPFILES): Likewise.
3869 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3870 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3871 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3872 * i386-nat.h (debug_hw_points): New declaration.
3873 * i386-nat.c (breakpoint.h): Remove include.
3874 (command.h): Likewise.
3875 (target.h): Likewise.
3876 (gdb_assert.h): Likewise.
3877 (debug_hw_points): Made nonstatic.
3878 (debug_printf): Now in i386-dregs.c.
3879 (TARGET_HAS_DR_LEN_8): Likewise.
3880 (DR_CONTROL_SHIFT): Likewise.
3881 (DR_CONTROL_SIZE): Likewise.
3882 (DR_RW_EXECUTE): Likewise.
3883 (DR_RW_WRITE): Likewise.
3884 (DR_RW_READ): Likewise.
3885 (DR_RW_IORW): Likewise.
3886 (DR_LEN_1): Likewise.
3887 (DR_LEN_2): Likewise.
3888 (DR_LEN_4): Likewise.
3889 (DR_LEN_8): Likewise.
3890 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3891 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3892 (DR_ENABLE_SIZE): Likewise.
3893 (DR_LOCAL_SLOWDOWN): Likewise.
3894 (DR_GLOBAL_SLOWDOWN): Likewise.
3895 (DR_CONTROL_RESERVED): Likewise.
3896 (I386_DR_CONTROL_MASK): Likewise.
3897 (I386_DR_VACANT): Likewise.
3898 (I386_DR_LOCAL_ENABLE): Likewise.
3899 (I386_DR_GLOBAL_ENABLE): Likewise.
3900 (I386_DR_DISABLE): Likewise.
3901 (I386_DR_SET_RW_LEN): Likewise.
3902 (I386_DR_GET_RW_LEN): Likewise.
3903 (I386_DR_WATCH_HIT): Likewise.
3904 (i386_wp_op_t): Likewise.
3905 (i386_show_dr): Likewise.
3906 (i386_length_and_rw_bits): Likewise.
3907 (i386_insert_aligned_watchpoint): Likewise.
3908 (i386_remove_aligned_watchpoint): Likewise.
3909 (i386_handle_nonaligned_watchpoint): Likewise.
3910 (i386_update_inferior_debug_regs): Likewise.
3911 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3912 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3913 (i386_region_ok_for_watchpoint):
3914 Use i386_dr_region_ok_for_watchpoint.
3915 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3916
3917 2014-06-19 Gary Benson <gbenson@redhat.com>
3918
3919 * i386-nat.c (i386_insert_hw_breakpoint): Use
3920 i386_insert_watchpoint.
3921 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3922
3923 2014-06-19 Gary Benson <gbenson@redhat.com>
3924
3925 * i386-nat.c (i386_dr_show): Renamed to
3926 i386_show_dr and made static. All uses updated.
3927 (i386_dr_length_and_rw_bits): Renamed to
3928 i386_length_and_rw_bits and made static.
3929 All uses updated.
3930 (i386_dr_insert_aligned_watchpoint): Renamed to
3931 i386_insert_aligned_watchpoint and made static.
3932 All uses updated.
3933 (i386_dr_remove_aligned_watchpoint): Renamed to
3934 i386_remove_aligned_watchpoint and made static.
3935 All uses updated.
3936 (i386_dr_update_inferior_debug_regs): Renamed to
3937 i386_update_inferior_debug_regs and made static.
3938 All uses updated.
3939 * nat/i386-dregs.h (i386_dr_show): Removed.
3940 (i386_dr_length_and_rw_bits): Likewise.
3941 (i386_dr_insert_aligned_watchpoint): Likewise.
3942 (i386_dr_remove_aligned_watchpoint): Likewise.
3943 (i386_dr_update_inferior_debug_regs): Likewise.
3944
3945 2014-06-19 Gary Benson <gbenson@redhat.com>
3946
3947 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3948 * configure: Regenerate.
3949 * config.in: Likewise.
3950 * main.c (signal.h): New include.
3951 (setup_alternate_signal_stack): New function.
3952 (captured_main): Call the above.
3953 * cp-support.c (signal.h): New include.
3954 (catch_demangler_crashes): New flag.
3955 (SIGJMP_BUF): New define.
3956 (SIGSETJMP): Likewise.
3957 (SIGLONGJMP): Likewise.
3958 (gdb_demangle_jmp_buf): New static global.
3959 (gdb_demangle_attempt_core_dump): Likewise.
3960 (gdb_demangle_signal_handler): New function.
3961 (gdb_demangle): If catch_demangler_crashes is set, install the
3962 above signal handler before calling bfd_demangle, and restore
3963 the original signal handler afterwards. Display the offending
3964 symbol and call demangler_warning the first time a segmentation
3965 fault is caught.
3966 (_initialize_cp_support): New maint set/show command.
3967
3968 2014-06-19 Gary Benson <gbenson@redhat.com>
3969
3970 * utils.h (resource_limit_kind): New enum.
3971 (can_dump_core): New declaration.
3972 (warn_cant_dump_core): Likewise.
3973 (dump_core): Likewise.
3974 * utils.c (dump_core): Made nonstatic. Added new
3975 parameter "limit_kind".
3976 (can_dump_core): Made nonstatic. Moved printing code to...
3977 (warn_cant_dump_core): New function.
3978 (can_dump_core_warn): Likewise.
3979 (internal_vproblem): Replace calls to can_dump_core with
3980 calls to can_dump_core_warn. Supply new argument to each.
3981
3982 2014-06-19 Gary Benson <gbenson@redhat.com>
3983
3984 * utils.h (demangler_vwarning): New declaration.
3985 (demangler_warning): Likewise.
3986 * utils.c (struct internal_problem)
3987 <user_settable_should_quit>: New field.
3988 <user_settable_should_dump_core>: Likewise
3989 (internal_error_problem): Add values for above new fields.
3990 (internal_warning_problem): Likewise.
3991 (demangler_warning_problem): New static global.
3992 (demangler_vwarning): New function.
3993 (demangler_warning): Likewise.
3994 (add_internal_problem_command): Selectively add commands.
3995 (_initialize_utils): New internal problem command.
3996 * maint.c (maintenance_demangler_warning): New function.
3997 (_initialize_maint_cmds): New command.
3998
3999 2014-06-18 Tom Tromey <tromey@redhat.com>
4000
4001 * f-valprint.c (info_common_command_for_block): Update.
4002 * symtab.h (struct general_symbol_info) <common_block>: Now
4003 const.
4004
4005 2014-06-18 Tom Tromey <tromey@redhat.com>
4006
4007 * symtab.h (struct symtab) <blockvector>: Now const.
4008 * ada-lang.c (ada_add_global_exceptions): Update.
4009 * buildsym.c (augment_type_symtab): Update.
4010 * dwarf2read.c (dw2_lookup_symbol): Update.
4011 * jit.c (finalize_symtab): Update.
4012 * jv-lang.c (add_class_symtab_symbol): Update.
4013 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4014 Update.
4015 * objfiles.c (objfile_relocate1): Update.
4016 * psymtab.c (lookup_symbol_aux_psymtabs)
4017 (maintenance_check_psymtabs): Update.
4018 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4019 Update.
4020 * spu-tdep.c (spu_catch_start): Update.
4021 * symmisc.c (dump_symtab_1): Update.
4022 * symtab.c (lookup_global_symbol_from_objfile)
4023 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4024 (basic_lookup_transparent_type_quick)
4025 (basic_lookup_transparent_type, find_pc_sect_symtab)
4026 (find_pc_sect_line, search_symbols): Update.
4027 * block.c (find_block_in_blockvector): Make "bl" const.
4028 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4029 const.
4030 (blockvector_contains_pc): Make "bv" const.
4031 (block_for_pc_sect): Update.
4032 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4033 (blockvector_contains_pc): Update.
4034 * breakpoint.c (resolve_sal_pc): Update.
4035 * inline-frame.c (block_starting_point_at): Update.
4036
4037 2014-06-18 Tom Tromey <tromey@redhat.com>
4038
4039 * completer.c (complete_line): Make "line_buffer" const.
4040 * completer.h (complete_line): Update.
4041
4042 2014-06-18 Tom Tromey <tromey@redhat.com>
4043
4044 * symtab.c (add_macro_name): Remove unneeded cast.
4045
4046 2014-06-18 Tom Tromey <tromey@redhat.com>
4047
4048 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4049 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4050
4051 2014-06-18 Tom Tromey <tromey@redhat.com>
4052
4053 * probe.c (info_probes_for_ops): Make "arg" const.
4054 * probe.h (info_probes_for_ops): Update.
4055
4056 2014-06-18 Tom Tromey <tromey@redhat.com>
4057
4058 * varobj.c (varobj_create): Update.
4059 * valops.c (value_of_this): Update.
4060 * tracepoint.c (add_local_symbols, scope_info): Update.
4061 * symtab.h (struct general_symbol_info) <block>: Now const.
4062 * symtab.c (skip_prologue_sal)
4063 (default_make_symbol_completion_list_break_on)
4064 (skip_prologue_using_sal): Update.
4065 * stack.h (iterate_over_block_locals)
4066 (iterate_over_block_local_vars): Update.
4067 * stack.c (print_frame_args): Update.
4068 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4069 parameter const.
4070 (get_selected_block): Make return type const.
4071 * python/py-frame.c (frapy_block): Update.
4072 * python/py-block.c (gdbpy_block_for_pc): Update.
4073 * p-exp.y (%union) <bval>: Now const.
4074 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4075 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4076 * m2-exp.y (%union) <bval>: Now const.
4077 * linespec.c (get_current_search_block): Make return type const.
4078 (create_sals_line_offset, find_label_symbols): Update.
4079 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4080 Update.
4081 (block_starting_point_at): Make "block" const.
4082 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4083 (check_exception_resume): Update.
4084 * guile/scm-frame.c (gdbscm_frame_block): Update.
4085 * guile/scm-block.c (gdbscm_lookup_block): Update.
4086 * frame.h (get_frame_block): Update.
4087 (get_selected_block): Make return type const.
4088 * frame.c (frame_id_inner): Update.
4089 * f-valprint.c (info_common_command_for_block)
4090 (info_common_command): Update.
4091 * dwarf2loc.c (dwarf2_find_location_expression)
4092 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4093 (locexpr_describe_location_piece): Update.
4094 * c-exp.y (%union) <bval>: Now const.
4095 * breakpoint.c (resolve_sal_pc): Update.
4096 * blockframe.c (get_frame_block):Make return type const.
4097 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4098 (block_innermost_frame): Update.
4099 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4100 (block_for_pc, block_for_pc_sect): Update.
4101 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4102 'pblock' const.
4103 (block_for_pc_sect, block_for_pc): Make return type const.
4104 * ax-gdb.c (gen_expr): Update.
4105 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4106 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4107 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4108 (ada_read_var_value): Update.
4109 * ada-exp.y (struct name_info) <block>: Now const.
4110 (%union): Likewise.
4111 (block_lookup): Constify.
4112
4113 2014-06-18 Gary Benson <gbenson@redhat.com>
4114
4115 * nat/i386-dregs.h: New file.
4116 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4117 * i386-nat.h (i386-dregs.h): New include.
4118 (DR_FIRSTADDR): Now in i386-dregs.h.
4119 (DR_LASTADDR): Likewise.
4120 (DR_NADDR): Likewise.
4121 (DR_STATUS): Likewise.
4122 (DR_CONTROL): Likewise.
4123 (i386_debug_reg_state): Likewise.
4124 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4125
4126 2014-06-18 Don Breazeal <donb@codesourcery.com>
4127
4128 * breakpoint.c (set_longjmp_breakpoint): Call
4129 momentary_breakpoint_from_master with additional argument.
4130 (set_longjmp_breakpoint_for_call_dummy): Call
4131 momentary_breakpoint_from_master with additional argument.
4132 (set_std_terminate_breakpoint): Call
4133 momentary_breakpoint_from_master with additional argument.
4134 (momentary_breakpoint_from_master): Add argument to function
4135 definition and use it to initialize structure member flag.
4136 (clone_momentary_breakpoint): Call
4137 momentary_breakpoint_from_master with additional argument.
4138 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4139 member flags set in momentary_breakpoint_from_master.
4140
4141 2014-06-18 Gary Benson <gbenson@redhat.com>
4142
4143 * i386-nat.c (i386_show_dr): Renamed to
4144 i386_dr_show and made nonstatic. All uses updated.
4145 (i386_length_and_rw_bits): Renamed to
4146 i386_dr_length_and_rw_bits and made nonstatic.
4147 All uses updated.
4148 (i386_insert_aligned_watchpoint): Renamed to
4149 i386_dr_insert_aligned_watchpoint and made nonstatic.
4150 All uses updated.
4151 (i386_remove_aligned_watchpoint): Renamed to
4152 i386_dr_remove_aligned_watchpoint and made nonstatic.
4153 All uses updated.
4154 (i386_update_inferior_debug_regs): Renamed to
4155 i386_dr_update_inferior_debug_regs and made nonstatic.
4156 All uses updated.
4157
4158 2014-06-18 Gary Benson <gbenson@redhat.com>
4159
4160 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4161 (i386_dr_low_can_set_control): Likewise.
4162 (i386_dr_low_set_addr): Likewise.
4163 (i386_dr_low_set_control): Likewise.
4164 (i386_dr_low_get_addr): Likewise.
4165 (i386_dr_low_get_status): Likewise.
4166 (i386_dr_low_get_control): Likewise.
4167 (i386_insert_aligned_watchpoint): Use new macros.
4168 (i386_update_inferior_debug_regs): Likewise.
4169 (i386_stopped_data_address): Likewise.
4170
4171 2014-06-18 Gary Benson <gbenson@redhat.com>
4172
4173 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4174 New parameter. All uses updated.
4175
4176 2014-06-18 Gary Benson <gbenson@redhat.com>
4177
4178 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4179 All uses updated.
4180
4181 2014-06-18 Gary Benson <gbenson@redhat.com>
4182
4183 * i386-nat.c (debug_printf): New macro.
4184 (i386_get_debug_register_length): Likewise.
4185 (TARGET_HAS_DR_LEN_8): Use above macro.
4186 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4187 and printf_unfiltered. Use phex to format values.
4188
4189 2014-06-18 Gary Benson <gbenson@redhat.com>
4190
4191 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4192 Make const.
4193
4194 2014-06-18 Gary Benson <gbenson@redhat.com>
4195
4196 * i386-nat.c: Comment changes.
4197
4198 2014-06-18 Gary Benson <gbenson@redhat.com>
4199
4200 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4201
4202 2014-06-18 Gary Benson <gbenson@redhat.com>
4203
4204 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4205 (i386_insert_aligned_watchpoint): Likewise.
4206 (i386_remove_aligned_watchpoint): Likewise.
4207 (i386_handle_nonaligned_watchpoint): Likewise.
4208
4209 2014-06-18 Gary Benson <gbenson@redhat.com>
4210
4211 * i386-nat.c: Whitespace changes.
4212
4213 2014-06-17 Samuel Bronson <naesten@gmail.com>
4214
4215 * MAINTAINERS: Update Roland McGrath's email address.
4216 Thanks to Sergio Durigan Junior for pointing out that he left
4217 Red Hat a while ago, and giving me a current address.
4218
4219 2014-06-17 Tom Tromey <tromey@redhat.com>
4220
4221 * utils.h (savestring): Remove declaration.
4222
4223 2014-06-17 Tom Tromey <tromey@redhat.com>
4224
4225 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4226
4227 2014-06-16 Keith Seitz <keiths@redhat.com>
4228
4229 PR mi/15863
4230 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4231 to update the varobj if inferior_ptid is null_ptid.
4232
4233 2014-06-16 Tom Tromey <tromey@redhat.com>
4234
4235 * target.h (struct target_ops) <to_info_proc>: Make parameter
4236 const.
4237 (target_info_proc): Update.
4238 * target.c (target_info_proc): Make "args" const.
4239 * procfs.c (procfs_info_proc): Update.
4240 * linux-tdep.c (linux_info_proc): Update.
4241 (linux_core_info_proc_mappings): Make "args" const.
4242 (linux_core_info_proc): Update.
4243 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4244 * gdbarch.c: Rebuild.
4245 * gdbarch.h: Rebuild.
4246 * corelow.c (core_info_proc): Update.
4247
4248 2014-06-16 Tom Tromey <tromey@redhat.com>
4249
4250 * target.h (struct target_ops) <to_disconnect>: Make parameter
4251 const.
4252 (target_disconnect): Update.
4253 * target.c (target_disconnect): Make "args" const.
4254 * target-delegates.c: Rebuild.
4255 * remote.c (remote_disconnect): Update.
4256 * record.h (record_disconnect): Update.
4257 * record.c (record_disconnect): Update.
4258 * inf-child.c (inf_child_disconnect): Update.
4259
4260 2014-06-16 Tom Tromey <tromey@redhat.com>
4261
4262 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4263 * target.c (debug_to_rcmd, default_rcmd): Update.
4264 * target-delegates.c: Rebuild.
4265 * remote.c (remote_rcmd): Update.
4266 * monitor.c (monitor_rcmd): Update.
4267
4268 2014-06-16 Pedro Alves <palves@redhat.com>
4269
4270 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4271 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4272 have OBJF_SHARED set.
4273 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4274 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4275 instead of OBJF_USERLOADED.
4276 * objfiles.h (OBJF_SHARED): Update comment.
4277 (userloaded_objfile_contains_address_p): Rename to ...
4278 (shared_objfile_contains_address_p): ... this, and update
4279 comments.
4280 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4281 new objfile.
4282 (remove_symbol_file_command): Skip objfiles that don't have
4283 OBJF_SHARED set.
4284
4285 2014-06-16 Tom Tromey <tromey@redhat.com>
4286
4287 * minsyms.h (prim_record_minimal_symbol)
4288 (prim_record_minimal_symbol_and_info): Update comments.
4289
4290 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4291
4292 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4293 or --without-guile, according to how GDB was built.
4294
4295 2014-06-13 Tom Tromey <tromey@redhat.com>
4296
4297 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4298 to help_list.
4299 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4300 to help_list.
4301 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4302 help_list.
4303 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4304 help_list.Pass all_commands, not -1, to help_list.
4305 * cli/cli-dump.c (dump_command, append_command)
4306 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4307 (binary_dump_command, binary_append_command): Pass all_commands,
4308 not -1, to help_list.
4309 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4310 -1, to help_list.
4311 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4312 -1, to help_list.
4313 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4314 help_list.
4315 * top.c (set_history): Pass all_commands, not -1, to help_list.
4316 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4317 all_commands, not -1, to help_list.
4318 * symfile.c (overlay_command): Pass all_commands, not -1, to
4319 help_list.
4320 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4321 help_list.
4322 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4323 help_list.
4324 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4325 -1, to help_list.
4326 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4327 not -1, to help_list.
4328 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4329 not -1, to help_list.
4330 * maint.c (maintenance_command, maintenance_info_command)
4331 (maintenance_print_command, maintenance_set_cmd): Pass
4332 all_commands, not -1, to help_list.
4333 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4334 help_list.
4335 * language.c (set_check): Pass all_commands, not -1, to help_list.
4336 * infcmd.c (unset_command): Pass all_commands, not -1, to
4337 help_list.
4338 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4339 help_list.
4340 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4341 help_list.
4342 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4343 help_list.
4344 * breakpoint.c (save_command): Pass all_commands, not -1, to
4345 help_list.
4346 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4347 all_commands, not -1, to help_list.
4348
4349 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4350
4351 * regcache.c (struct register_to_invalidate): New structure.
4352 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4353 functions.
4354 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4355
4356 2014-06-12 Yao Qi <yao@codesourcery.com>
4357
4358 * varobj.c (varobj_get_num_children): Call
4359 varobj_is_dynamic_p.
4360 (varobj_list_children): Likewise.
4361 (varobj_update): Likewise. Update comments.
4362
4363 2014-06-12 Yao Qi <yao@codesourcery.com>
4364
4365 * varobj.c (varobj_pretty_printed_p): Rename to ...
4366 (varobj_is_dynamic_p): ... this. New function.
4367 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4368 (varobj_is_dynamic_p): Declare.
4369 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4370 (mi_print_value_p, varobj_update_one): Likewise.
4371
4372 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4373 Yao Qi <yao@codesourcery.com>
4374
4375 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4376 (varobj_get_iterator): Wrap up code for pretty-printer by
4377 "#if HAVE_PYTHON" and "#endif".
4378 (update_dynamic_varobj_children): Likewise.
4379
4380 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4381 Yao Qi <yao@codesourcery.com>
4382
4383 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4384 gdb_python_initialized is false. Move some code from varobj.c.
4385 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4386 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4387 (struct varobj_item): Moved to varobj-iter.h".
4388 (varobj_clear_saved_item): New function.
4389 (update_dynamic_varobj_children): Move python-related code to
4390 py-varobj.c.
4391 (free_variable): Call varobj_clear_saved_item and
4392 varobj_iter_delete.
4393
4394 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4395 Yao Qi <yao@codesourcery.com>
4396
4397 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4398 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4399 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4400 (py-varobj.o): New rule.
4401 * python/py-varobj.c: New file.
4402 * python/python-internal.h (py_varobj_get_iterator): Declare.
4403 * varobj-iter.h: New file.
4404 * varobj.c: Include "varobj-iter.h"
4405 (struct varobj) <child_iter>: Change its type from "PyObject *"
4406 to "struct varobj_iter *".
4407 <saved_item>: Likewise.
4408 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4409 [HAVE_PYTHON] (varobj_get_iterator): New function.
4410 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4411 python-specific code to python/py-varobj.c.
4412 (install_visualizer): Call varobj_iter_delete instead of
4413 Py_XDECREF.
4414 * varobj.h (varobj_ensure_python_env): Declare.
4415
4416 2014-06-12 Yao Qi <yao@codesourcery.com>
4417
4418 * varobj.c (struct varobj_item): New structure.
4419 (create_child_with_value): Update declaration.
4420 (varobj_add_child): Replace arguments 'name' and 'value' with
4421 'item'. All callers updated.
4422 (install_dynamic_child): Likewise.
4423 (update_dynamic_varobj_children): Likewise.
4424 (varobj_add_child): Likewise.
4425 (create_child_with_value): Likewise.
4426
4427 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4428
4429 * NEWS: Create a new section for the next release branch.
4430 Rename the section of the current branch, now that it has
4431 been cut.
4432
4433 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4434
4435 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4436 * version.in: Bump version to 7.8.50.DATE-cvs.
4437
4438 2014-06-11 Pedro Alves <palves@redhat.com>
4439
4440 PR remote/17028
4441 * ser-mingw.c (net_windows_socket_check_pending): New function.
4442 (net_windows_select_thread): Ignore spurious wakeups. Use
4443 net_windows_socket_check_pending.
4444 (net_windows_wait_handle): Check for pending events with
4445 ioctlsocket, through net_windows_socket_check_pending, instead of
4446 checking the socket's event.
4447
4448 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4449
4450 * python/python-internal.h (gdb_PyObject_GetAttrString)
4451 (gdb_PyObject_HasAttrString): New inline function definitions.
4452 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4453 char * of the second argument to PyObject_GetAttrString.
4454
4455 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4456
4457 * serial.c (serial_write): Fix index of character to be printed
4458 in call to serial_logchar when serial debug traces are enabled.
4459
4460 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4461
4462 * gdbtypes (resolve_dynamic_range): Add function description.
4463
4464 2014-06-09 Pedro Alves <palves@redhat.com>
4465
4466 * linux-nat.c (linux_child_follow_fork): Initialize status with
4467 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4468 inner block. Only pass the signal to PTRACE_DETACH if in pass
4469 state.
4470
4471 2014-06-09 Gary Benson <gbenson@redhat.com>
4472
4473 * common/signals.c (gdb_signal_from_host): Reorder to separate
4474 the always-available ANSI-standard signals from the signals that
4475 require checking.
4476 (do_gdb_signal_to_host): Likewise.
4477 * proc-events.c (signal_table): Likewise.
4478
4479 2014-06-08 Hui Zhu <hui@codesourcery.com>
4480
4481 * common/linux-ptrace.c (linux_disable_event_reporting): New
4482 function.
4483 * common/linux-ptrace.h (linux_disable_event_reporting): New
4484 declaration.
4485 * linux-nat.c (linux_child_follow_fork): Do a single step before
4486 detach.
4487
4488 2014-06-07 Keith Seitz <keiths@redhat.com>
4489
4490 Revert:
4491 PR c++/16253
4492 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4493 from symbol_matches_domain in symtab.c. All local callers
4494 of symbol_matches_domain updated.
4495 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4496 search STRUCT_DOMAIN.
4497 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4498 independently. standard_lookup will do that automatically.
4499 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4500 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4501 (cp_lookup_symbol_in_namespace): Likewise.
4502 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4503 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4504 may return a STRUCT_DOMAIN match.
4505 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4506 * cp-support.c: Include language.h.
4507 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4508 VAR_DOMAIN.
4509 * psymtab.c (match_partial_symbol): Compare the requested
4510 domain with the symbol's domain directly.
4511 (lookup_partial_symbol): Likewise.
4512 * symtab.c (lookup_symbol_in_language): Explain when/why
4513 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4514 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4515 appropriate languages.
4516 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4517 and moved to ada-lang.c
4518 (lookup_block_symbol): Explain that this function only returns
4519 symbol matching the requested DOMAIN.
4520 Compare the requested domain with the symbol's domain directly.
4521 (iterate_over_symbols): Compare the requested domain with the
4522 symbol's domain directly.
4523 * symtab.h (symbol_matches_domain): Remove.
4524
4525 2014-06-06 Doug Evans <xdje42@gmail.com>
4526
4527 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4528 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4529 (gdbscm_guile_version_is_at_least): Declare.
4530 (gdbscm_scm_string_to_int): Declare.
4531 * guile/guile.c (gdbscm_guile_major_version): New global.
4532 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4533 (guile_datadir): New static global.
4534 (gdbscm_guile_data_directory): New function.
4535 (initialize_scheme_side): Update.
4536 (misc_guile_functions): Add guile-data-directory.
4537 (initialize_gdb_module): Fetch guile version number.
4538 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4539 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4540 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4541 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4542 comments.
4543 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4544 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4545 * guile/scm-value.c (gdbscm_value_to_string): Only call
4546 scm_port_conversion_strategy if Guile version >= 2.0.6.
4547
4548 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4549
4550 * main.c (print_gdb_help): Add -q and --silent.
4551
4552 2014-06-06 Gary Benson <gbenson@redhat.com>
4553
4554 * common/signals.c: Remove preprocessor conditionals for
4555 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4556 SIGSEGV and SIGTERM.
4557 * proc-events.c: Likewise.
4558
4559 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4560
4561 * symfile.c (symfile_free_objfile): Remove restriction to
4562 OBJF_USERLOADED.
4563 * symfile-mem.c (symbol_file_add_from_memory): Call
4564 add_target_sections_of_objfile.
4565
4566 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4567
4568 * guile/scm-value.c (gdbscm_history_append_x): Use
4569 'vlscm_get_value_smob_arg_unsafe' instead of
4570 'vlscm_scm_to_value'.
4571
4572 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4573
4574 PR mi/15806
4575 * utils.c (printchar): Don't escape at all if quoter is NUL.
4576 Update function documentation to clarify effect of parameter
4577 QUOTER.
4578 * remote.c (escape_buffer): Pass '\\' as the quoter to
4579 fputstrn_unfiltered.
4580 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4581 generate the output.
4582 (mi_solib_unloaded): Same.
4583
4584 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4585
4586 * development.sh: Delete.
4587 * Makefile.in (config.status): Adjust dependency on development.sh.
4588 * configure.ac: Adjust development.sh source call.
4589 * configure: Regenerate.
4590
4591 2014-06-04 Doug Evans <xdje42@gmail.com>
4592
4593 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4594 is_scheme_bkpt, spec.
4595 (bpscm_make_breakpoint_smob): Initialize new members.
4596 (gdbscm_create_breakpoint_x): Split into two ...
4597 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4598 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4599 (scheme_function breakpoint_functions): Update.
4600 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4601 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4602 register-breakpoint!.
4603
4604 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4605
4606 PR server/17023
4607 * mem-break.c (z_type_supported): Return zero if
4608 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4609
4610 2014-06-04 Tom Tromey <tromey@redhat.com>
4611
4612 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4613 value_from_contents_and_address_unresolved.
4614 (ada_template_to_fixed_record_type_1): Likewise.
4615 (ada_which_variant_applies): Likewise.
4616 * value.h (value_from_contents_and_address_unresolved): Declare.
4617 * value.c (value_from_contents_and_address_unresolved): New
4618 function.
4619 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4620 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4621 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4622
4623 2014-06-04 Tom Tromey <tromey@redhat.com>
4624
4625 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4626
4627 2014-06-04 Tom Tromey <tromey@redhat.com>
4628
4629 * procfs.c (procfs_attach): Make "args" const.
4630 * windows-nat.c (windows_attach): Make "args" const.
4631 * nto-procfs.c (procfs_attach): Make "args" const.
4632 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4633 * go32-nat.c (go32_attach): Make "args" const.
4634 * gnu-nat.c (gnu_attach): Make "args" const.
4635 * darwin-nat.c (darwin_attach): Make "args" const.
4636 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4637 * linux-nat.c (linux_nat_attach): Make "args" const.
4638 * remote.c (extended_remote_attach_1, extended_remote_attach):
4639 Make "args" const.
4640 * target.h (struct target_ops) <to_attach>: Make "args" const.
4641 (find_default_attach): Likewise.
4642 * utils.c (parse_pid_to_attach): Make "args" const.
4643 * utils.h (parse_pid_to_attach): Update.
4644
4645 2014-06-04 Tom Tromey <tromey@redhat.com>
4646
4647 * target-delegates.c: Rebuild.
4648 * target.c (default_thread_address_space): New function.
4649 (target_thread_address_space): Simplify.
4650 * target.h (struct target_ops) <to_thread_address_space>: Add
4651 TARGET_DEFAULT_FUNC.
4652
4653 2014-06-04 Doug Evans <xdje42@gmail.com>
4654
4655 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4656
4657 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4658
4659 * record-btrace.c: Include event-loop.h and inf-loop.h.
4660 (record_btrace_resume_exec_dir)
4661 (record_btrace_async_inferior_event_handler)
4662 (record_btrace_handle_async_inferior_event): New.
4663 (record_btrace_open): Create async event handler.
4664 (record_btrace_close): Delete async event handler.
4665 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4666 Mark async event handler.
4667 (record_btrace_execution_direction): New.
4668 (init_record_btrace_ops): Initialize to_execution_direction.
4669
4670 2014-06-03 Doug Evans <xdje42@gmail.com>
4671
4672 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4673 (gdbscm_make_parameter): Ditto.
4674
4675 2014-06-03 Doug Evans <dje@google.com>
4676
4677 * exec.c (exec_close_1): Call clear_section_table instead of
4678 resize_section_table.
4679 (clear_section_table): New function.
4680 (resize_section_table): Make static. Rename arg num_added to
4681 adjustment.
4682 * exec.h (clear_section_table): Declare.
4683 (resize_section_table): Delete.
4684 * progspace.c (release_program_space): Call clear_section_table
4685 instead of resize_section_table.
4686
4687 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4688
4689 * NEWS (Python Scripting): Add entry about the new xmethods
4690 feature.
4691
4692 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4693
4694 * python/py-xmethods.c: New file.
4695 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4696 (objfpy_dealloc): XDECREF on the new xmethods field.
4697 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4698 field.
4699 (objfpy_get_xmethods): New function.
4700 (objfile_getset): New entry 'xmethods'.
4701 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4702 (pspy_dealloc): XDECREF on the new xmethods field.
4703 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4704 field.
4705 (pspy_get_xmethods): New function.
4706 (pspace_getset): New entry 'xmethods'.
4707 * python/python-internal.h: Add declarations for new functions.
4708 * python/python.c (_initialize_python): Invoke
4709 gdbpy_initialize_xmethods.
4710 * python/lib/gdb/__init__.py (xmethods): New
4711 attribute.
4712 * python/lib/gdb/xmethod.py: New file.
4713 * python/lib/gdb/command/xmethods.py: New file.
4714
4715 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4716
4717 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4718 best match method returned by find_overload_match is an xmethod.
4719 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4720 the best matching operator returned by find_overload_match is an
4721 xmethod.
4722 * valops.c: #include "extension.h".
4723 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4724 Return void. The list of matching source methods is returned in
4725 "fn_list" and a vector of matching debug method workers is
4726 returned in "xm_worker_vec". Update all callers.
4727 (value_find_oload_method_list): Likewise.
4728 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4729 non-NULL, then the index of the best matching method in this
4730 vector is returned. Update all callers.
4731 (find_overload_match): Include xmethods while performing overload
4732 resolution.
4733
4734 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4735
4736 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4737 * extension-priv.h (struct extension_language_ops): Add the
4738 xmethod interface.
4739 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4740 get_matching_xmethod_workers, get_xmethod_argtypes,
4741 invoke_xmethod, free_xmethod_worker,
4742 free_xmethod_worker_vec): New functions.
4743 * extension.h: #include "common/vec.h".
4744 New function declarations.
4745 (struct xmethod_worker): New struct.
4746 (VEC (xmethod_worker_ptr)): New vector type.
4747 (xmethod_worker_ptr): New typedef.
4748 (xmethod_worker_vec): Likewise.
4749 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4750 builtin_type.
4751 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4752 (struct builtin_type): New field "xmethod".
4753 * valarith.c (value_ptradd): Assert that the value argument is not
4754 lval_xcallable.
4755 * valops.c (value_must_coerce_to_target): Return 0 for
4756 lval_xcallable values.
4757 * value.c (struct value): New field XM_WORKER in the field
4758 LOCATION.
4759 (value_address, value_raw_address): Return 0 for lval_xcallable
4760 values.
4761 (set_value_address): Assert that the value is not an
4762 lval_xcallable.
4763 (value_free): Free the associated xmethod worker when freeing
4764 lval_xcallable values.
4765 (set_value_component_location): Assert that the WHOLE value is not
4766 lval_xcallable.
4767 (value_of_xmethod, call_xmethod): New functions.
4768 * value.h: Declare "struct xmethod_worker".
4769 Declare new functions value_of_xmethod, call_xmethod.
4770
4771 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4772 Pedro Alves <palves@redhat.com>
4773
4774 PR breakpoints/17000
4775 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4776 New function, extracted from software_breakpoint_inserted_here_p.
4777 (software_breakpoint_inserted_here_p): Replace factored out code
4778 by call to find_non_raw_software_breakpoint_inserted_here.
4779 (bp_target_info_copy_insertion_state): New function.
4780 (bkpt_insert_location): Handle the case of a single-step
4781 breakpoint already inserted at the same address.
4782 (bkpt_remove_location): Handle the case of a single-step
4783 breakpoint still inserted at the same address.
4784 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4785 breakpoint already inserted at the same address.
4786 (deprecated_remove_raw_breakpoint): Handle the case of a
4787 non-raw breakpoint still inserted at the same address.
4788 (find_single_step_breakpoint): New function, extracted from
4789 single_step_breakpoint_inserted_here_p.
4790 (find_single_step_breakpoint): New function,
4791 factored out from single_step_breakpoint_inserted_here_p.
4792 (single_step_breakpoint_inserted_here_p): Reimplement.
4793
4794 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4795
4796 Pushed by Joel Brobecker <brobecker@adacore.com>
4797 * source.c (show_substitute_path_command): Fix display of matching
4798 substitution rules.
4799
4800 2014-06-03 Gary Benson <gbenson@redhat.com>
4801
4802 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4803
4804 2014-06-02 Doug Evans <xdje42@gmail.com>
4805
4806 Add parameter support for Guile.
4807 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4808 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4809 (scm-param.o): New rule.
4810 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4811 (gdbscm_misc_error): Declare.
4812 (gdbscm_canonicalize_command_name): Declare.
4813 (gdbscm_scm_to_host_string): Declare.
4814 (gdbscm_scm_from_host_string): Declare.
4815 (gdbscm_initialize_parameters): Declare.
4816 * guile/guile.c (initialize_gdb_module): Call
4817 gdbscm_initialize_parameters.
4818 * guile/lib/gdb.scm: Export parameter symbols.
4819 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4820 cmdscm_canonicalize_name and made public. All callers updated.
4821 * guile/scm-exception.c (gdbscm_misc_error): New function.
4822 * guile/scm-param.c: New file.
4823 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4824 (gdbscm_scm_to_host_string): New function.
4825 (gdbscm_scm_from_host_string): New function.
4826 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4827
4828 2014-06-02 Doug Evans <xdje42@gmail.com>
4829
4830 Add command support for Guile.
4831 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4832 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4833 (scm-cmd.o): New rule.
4834 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4835 (gdbscm_user_error_p): Declare.
4836 (gdbscm_parse_command_name): Declare.
4837 (gdbscm_valid_command_class_p): Declare.
4838 (gdbscm_initialize_commands): Declare.
4839 * guile/guile.c (initialize_gdb_module): Call
4840 gdbscm_initialize_commands.
4841 * guile/lib/gdb.scm: Export command symbols.
4842 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4843 (throw-user-error): New function.
4844 * guile/scm-cmd.c: New file.
4845 * guile/scm-exception.c (user_error_symbol): New static global.
4846 (gdbscm_user_error_p): New function.
4847 (gdbscm_initialize_exceptions): Set user_error_symbol.
4848 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4849
4850 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4851
4852 * top.c (command_loop): Handle comments here...
4853 (command_line_input): ... not here.
4854
4855 2014-06-02 Doug Evans <xdje42@gmail.com>
4856
4857 Add progspace support for Guile.
4858 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4859 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4860 (scm-progspace.o): New rule.
4861 * guile/guile-internal.h (pspace_smob): New typedef.
4862 (psscm_pspace_smob_pretty_printers): Declare.
4863 (psscm_pspace_smob_from_pspace): Declare.
4864 (psscm_scm_from_pspace): Declare.
4865 * guile/guile.c (initialize_gdb_module): Call
4866 gdbscm_initialize_pspaces.
4867 * guile/lib/gdb.scm: Export progspace symbols.
4868 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4869 support.
4870 (append-pretty-printer!): Ditto.
4871 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4872 Implement.
4873 * guile/scm-progspace.c: New file.
4874
4875 2014-06-03 Alan Modra <amodra@gmail.com>
4876
4877 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4878 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4879
4880 2014-06-02 Doug Evans <dje@google.com>
4881
4882 Add support for skeletonless type units.
4883 * dwarf2read.c (struct dwarf2_per_objfile): New member
4884 n_allocated_type_units.
4885 (struct dwarf2_per_objfile) <tu_stats>: New member
4886 nr_all_type_units_reallocs.
4887 (create_signatured_type_table_from_index): Initialize
4888 n_allocated_type_units
4889 (create_all_type_units): Ditto.
4890 (add_type_unit): Move up in file. New arg slot.
4891 All callers updated. Increase space for all_type_units more
4892 efficiently.
4893 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4894 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4895 (lookup_dwp_signatured_type): Ditto.
4896 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4897 All callers updated.
4898 (build_type_psymtabs_1): Leave type_unit_groups as
4899 NULL if no TUs present.
4900 (print_tu_stats): New function.
4901 (process_skeletonless_type_unit): New function.
4902 (process_dwo_file_for_skeletonless_type_units): New
4903 function.
4904 (process_skeletonless_type_units): New function.
4905 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4906 Call print tu_stats if debugging enabled.
4907
4908 2014-06-02 Pedro Alves <palves@redhat.com>
4909
4910 * breakpoint.c (build_target_command_list): Don't build a command
4911 list if we have any duplicate location that isn't a dprintf.
4912
4913 2014-06-02 Pedro Alves <palves@redhat.com>
4914
4915 * breakpoint.c (dprintf_breakpoint_hit): New function.
4916 (initialize_breakpoint_ops): Install it as dprintf's
4917 breakpoint_hit method.
4918
4919 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4920
4921 * source.c (substitute_path_rule_matches): Simplify using
4922 filename_ncmp instead of FILENAME_CMP.
4923
4924 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4925
4926 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4927
4928 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4929
4930 * configure.ac: When Guile is available, check for the
4931 availability of 'scm_new_smob'.
4932 * configure, config.h.in: Regenerate.
4933 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4934 function.
4935
4936 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4937
4938 * frame.c (struct frame_info): Add stop_string field.
4939 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4940 (get_prev_frame_always): Old content moved into
4941 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4942 TRY_CATCH, handle MEMORY_ERROR exceptions.
4943 (frame_stop_reason_string): New function definition.
4944 * frame.h (unwind_stop_reason_to_string): Extend comment to
4945 mention frame_stop_reason_string.
4946 (frame_stop_reason_string): New function declaration.
4947 * stack.c (frame_info): Switch to frame_stop_reason_string.
4948 (backtrace_command_1): Switch to frame_stop_reason_string.
4949 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4950 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4951 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4952
4953 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4954
4955 * frame.c (frame_stop_reason_string): Rename to ...
4956 (unwind_stop_reason_to_string): this.
4957 * frame.h (frame_stop_reason_string): Rename to ...
4958 (unwind_stop_reason_to_string): this.
4959 * stack.c (frame_info): Update call to frame_stop_reason_string.
4960 (backtrace_command_1): Likewise.
4961 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4962 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4963
4964 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4965
4966 * frame.c (remove_prev_frame): New function.
4967 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4968 remove_prev_frame.
4969
4970 2014-05-29 Pedro Alves <palves@redhat.com>
4971
4972 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4973 and make it const. When a single-step decays to a continue,
4974 clear 'step', not 'hw_step'. Pass whether the caller wanted
4975 to step to user_visible_resume_ptid, not what we ask the
4976 target to do.
4977
4978 2014-05-29 Pedro Alves <palves@redhat.com>
4979
4980 * infrun.c (process_event_stop_test, handle_step_into_function)
4981 (handle_step_into_function_backward): Adjust.
4982 Don't set the even thread's stop_step and call stop_waiting before
4983 calling end_stepping_range. Instead do that ...
4984 (end_stepping_range): ... here. Take an ecs pointer parameter.
4985
4986 2014-05-29 Pedro Alves <palves@redhat.com>
4987
4988 * infrun.c (stop_stepping): Rename to ...
4989 (stop_waiting): ... this.
4990 (proceed): Update comment.
4991 (process_event_stop_test, handle_inferior_event)
4992 (handle_signal_stop, handle_step_into_function)
4993 (handle_step_into_function_backward): Update.
4994
4995 2014-05-29 Pedro Alves <palves@redhat.com>
4996
4997 * infcall.c (run_inferior_call): Don't check whether the current
4998 thread is running after the proceed call.
4999
5000 2014-05-29 Pedro Alves <palves@redhat.com>
5001 Tom Tromey <tromey@redhat.com>
5002
5003 * NEWS: Mention "maint set target-async", "set mi-async", and that
5004 background execution commands are now always available.
5005 * target.h (target_async_permitted): Update comment.
5006 * target.c (target_async_permitted, target_async_permitted_1):
5007 Default to 1.
5008 (set_target_async_command): Rename to ...
5009 (maint_set_target_async_command): ... this.
5010 (show_target_async_command): Rename to ...
5011 (maint_show_target_async_command): ... this.
5012 (_initialize_target): Adjust.
5013 * infcmd.c (prepare_execution_command): Make extern.
5014 * inferior.h (prepare_execution_command): Declare.
5015 * infrun.c (set_observer_mode): Leave target async alone.
5016 * mi/mi-interp.c (mi_interpreter_init): Install
5017 mi_on_sync_execution_done as sync_execution_done observer.
5018 (mi_on_sync_execution_done): New function.
5019 (mi_execute_command_input_handler): Don't print the prompt if we
5020 just started a synchronous command with an async target.
5021 (mi_on_resume): Check sync_execution before printing prompt.
5022 * mi/mi-main.h (mi_async_p): Declare.
5023 * mi/mi-main.c: Include gdbcmd.h.
5024 (mi_async_p): New function.
5025 (mi_async, mi_async_1): New globals.
5026 (set_mi_async_command, show_mi_async_command, mi_async): New
5027 functions.
5028 (exec_continue): Call prepare_execution_command.
5029 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5030 (mi_execute_async_cli_command): Use mi_async_p.
5031 (_initialize_mi_main): Install "set mi-async". Make
5032 "target-async" a deprecated alias.
5033
5034 2014-05-29 Pedro Alves <palves@redhat.com>
5035
5036 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5037 (_initialize_cli_interp): Adjust.
5038 * event-loop.c: Include "observer.h".
5039 (start_event_loop): Notify 'command_error' observers instead of
5040 calling display_gdb_prompt. Remove FIXME comment.
5041 * event-top.c (display_gdb_prompt): Remove call into the
5042 interpreters.
5043 * inf-loop.c: Include "observer.h".
5044 (inferior_event_handler): Notify 'command_error' observers instead
5045 of calling display_gdb_prompt.
5046 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5047 observers instead of calling display_gdb_prompt.
5048 * interps.c (interp_set): Don't call display_gdb_prompt.
5049 (current_interp_display_prompt_p): Delete.
5050 * interps.h (interp_prompt_p): Delete declaration.
5051 (interp_prompt_p_ftype): Delete.
5052 (struct interp_procs) <prompt_proc_p>: Delete field.
5053 (current_interp_display_prompt_p): Delete declaration.
5054 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5055 (_initialize_mi_interp): Adjust.
5056 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5057 'command_error' observers.
5058 (tui_on_sync_execution_done, tui_on_command_error): New
5059 functions.
5060 (tui_display_prompt_p): Delete.
5061 (_initialize_tui_interp): Adjust.
5062
5063 2014-05-29 Pedro Alves <palves@redhat.com>
5064
5065 PR gdb/13860
5066 * cli/cli-interp.c: Include infrun.h and observer.h.
5067 (cli_uiout, cli_interp): New globals.
5068 (cli_on_signal_received, cli_on_end_stepping_range)
5069 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5070 functions.
5071 (cli_interpreter_init): Install them as 'end_stepping_range',
5072 'signal_received' 'signal_exited', 'exited' and 'no_history'
5073 observers.
5074 (_initialize_cli_interp): Remove cli_interp local.
5075 * infrun.c (handle_inferior_event): Call the several stop reason
5076 observers instead of printing the stop reason directly.
5077 (end_stepping_range): New function.
5078 (print_end_stepping_range_reason, print_signal_exited_reason)
5079 (print_exited_reason, print_signal_received_reason)
5080 (print_no_history_reason): Make static, and add an uiout
5081 parameter. Print to that instead of to CURRENT_UIOUT.
5082 * infrun.h (print_end_stepping_range_reason)
5083 (print_signal_exited_reason, print_exited_reason)
5084 (print_signal_received_reason print_no_history_reason): New
5085 declarations.
5086 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5087 'mi_uiout'.
5088 <cli_uiout>: New field.
5089 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5090 uiout for CLI output. Install 'signal_received',
5091 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5092 observers.
5093 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5094 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5095 (mi_on_no_history): New functions.
5096 (ui_out_free_cleanup): Delete function.
5097 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5098 instead use the one already stored in the MI interpreter data.
5099 (mi_ui_out): Adjust.
5100 * tui/tui-interp.c: Include infrun.h and observer.h.
5101 (tui_interp): New global.
5102 (tui_on_signal_received, tui_on_end_stepping_range)
5103 (tui_on_signal_exited, tui_on_exited)
5104 (tui_on_no_history): New functions.
5105 (tui_init): Install them as 'end_stepping_range',
5106 'signal_received' 'signal_exited', 'exited' and 'no_history'
5107 observers.
5108 (_initialize_tui_interp): Delete tui_interp local.
5109
5110 2014-05-29 Pedro Alves <palves@redhat.com>
5111
5112 PR gdb/15713
5113 * linux-nat.c (linux_nat_resume_callback): Rename the second
5114 parameter to 'except'. Skip LP if it points to EXCEPT.
5115 (linux_nat_resume): Don't mark the event lwp as not stopped
5116 before resuming sibling lwps. Instead ask
5117 linux_nat_resume_callback to skip the event lwp. Mark it as not
5118 stopped after actually resuming it.
5119 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5120 resuming it.
5121 (wait_lwp): Mark the lwp as stopped here.
5122 (stop_wait_callback): Mark the lwp as not stopped right after
5123 resuming it. Don't mark lwps as stopped here.
5124 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5125 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5126
5127 2014-05-29 Pedro Alves <palves@redhat.com>
5128
5129 PR PR15693
5130 * infrun.c (resume): Determine how much to resume depending on
5131 whether the caller wanted a step, not whether we can hardware step
5132 the target. Mark all threads that we intend to run as running,
5133 unless we're calling an inferior function.
5134 (normal_stop): If the thread is running an infcall, don't finish
5135 thread state.
5136 * target.c (target_resume): Don't mark threads as running here.
5137
5138 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5139
5140 * serial.c (_initialize_serial): Remove support for
5141 the "set remotebaud" and "show remotebaud" commands.
5142 * NEWS: Add entry documenting the removal of that command.
5143
5144 2014-05-28 Yao Qi <yao@codesourcery.com>
5145
5146 * charset.c: Fix typo in comments.
5147
5148 2014-05-27 Gary Benson <gbenson@redhat.com>
5149
5150 * utils.c (internal_vproblem): Prompt for a bug report.
5151
5152 2014-05-26 Andy Wingo <wingo@igalia.com>
5153
5154 * guile/scm-arch.c (arscm_mark_arch_smob):
5155 * guile/scm-block.c (bkscm_mark_block_smob)
5156 (bkscm_mark_block_syms_progress_smob):
5157 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5158 * guile/scm-exception.c (exscm_mark_exception_smob):
5159 * guile/scm-frame.c (frscm_mark_frame_smob):
5160 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5161 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5162 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5163 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5164 (ppscm_mark_pretty_printer_worker_smob):
5165 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5166 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5167 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5168 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5169 mark functions.
5170 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5171 function.
5172
5173 2014-05-26 Andy Wingo <wingo@igalia.com>
5174 Doug Evans <xdje42@gmail.com>
5175
5176 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5177 empty_base_class. All uses updated.
5178 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5179 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5180 Adapt all callers.
5181 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5182 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5183 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5184 (gdbscm_gsmob_has_property_p, add_property_name)
5185 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5186 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5187 (gdb-object-has-property?, gdb-object-properties): Remove.
5188 (gdb-object-kind): Renamed from gsmob-kind.
5189
5190 2014-05-26 Andy Wingo <wingo@igalia.com>
5191
5192 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5193 * configure: Regenerate.
5194
5195 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5196
5197 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5198
5199 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5200
5201 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5202 (replay_memory_access_read_only, replay_memory_access_read_write)
5203 (replay_memory_access_types, replay_memory_access)
5204 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5205 (cmd_set_record_btrace, cmd_show_record_btrace)
5206 (cmd_show_replay_memory_access): New.
5207 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5208 (record_btrace_remove_breakpoint): Replace
5209 record_btrace_allow_memory_access with replay_memory_access.
5210 (_initialize_record_btrace): Add commands.
5211 * NEWS: Announce it.
5212
5213 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5214
5215 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5216
5217 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5218
5219 * MAINTAINERS (Write After Approval): Move self back from
5220 paper trail.
5221
5222 2014-05-22 Pedro Alves <palves@redhat.com>
5223
5224 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5225 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5226 (disable_randomization, enum exec_direction_kind)
5227 (execution_direction, stop_registers, start_remote)
5228 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5229 (wait_for_inferior, normal_stop, get_last_target_status)
5230 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5231 (insert_step_resume_breakpoint_at_sal)
5232 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5233 (set_step_info, print_stop_event, signal_stop_state)
5234 (signal_print_state, signal_pass_state, signal_stop_update)
5235 (signal_print_update, signal_pass_update)
5236 (update_signals_program_target, clear_exit_convenience_vars)
5237 (displaced_step_dump_bytes, update_observer_mode)
5238 (signal_catch_update, gdb_signal_from_command): Move
5239 declarations ...
5240 * infrun.h: ... to this new file.
5241 * amd64-tdep.c: Include infrun.h.
5242 * annotate.c: Include infrun.h.
5243 * arch-utils.c: Include infrun.h.
5244 * arm-linux-tdep.c: Include infrun.h.
5245 * arm-tdep.c: Include infrun.h.
5246 * break-catch-sig.c: Include infrun.h.
5247 * breakpoint.c: Include infrun.h.
5248 * common/agent.c: Include infrun.h instead of inferior.h.
5249 * corelow.c: Include infrun.h.
5250 * event-top.c: Include infrun.h.
5251 * go32-nat.c: Include infrun.h.
5252 * i386-tdep.c: Include infrun.h.
5253 * inf-loop.c: Include infrun.h.
5254 * infcall.c: Include infrun.h.
5255 * infcmd.c: Include infrun.h.
5256 * infrun.c: Include infrun.h.
5257 * linux-fork.c: Include infrun.h.
5258 * linux-nat.c: Include infrun.h.
5259 * linux-thread-db.c: Include infrun.h.
5260 * monitor.c: Include infrun.h.
5261 * nto-tdep.c: Include infrun.h.
5262 * procfs.c: Include infrun.h.
5263 * record-btrace.c: Include infrun.h.
5264 * record-full.c: Include infrun.h.
5265 * remote-m32r-sdi.c: Include infrun.h.
5266 * remote-mips.c: Include infrun.h.
5267 * remote-notif.c: Include infrun.h.
5268 * remote-sim.c: Include infrun.h.
5269 * remote.c: Include infrun.h.
5270 * reverse.c: Include infrun.h.
5271 * rs6000-tdep.c: Include infrun.h.
5272 * s390-linux-tdep.c: Include infrun.h.
5273 * solib-irix.c: Include infrun.h.
5274 * solib-osf.c: Include infrun.h.
5275 * solib-svr4.c: Include infrun.h.
5276 * target.c: Include infrun.h.
5277 * top.c: Include infrun.h.
5278 * windows-nat.c: Include infrun.h.
5279 * mi/mi-interp.c: Include infrun.h.
5280 * mi/mi-main.c: Include infrun.h.
5281 * python/py-threadevent.c: Include infrun.h.
5282
5283 2014-05-22 Pedro Alves <palves@redhat.com>
5284
5285 * infrun.c (handle_inferior_event): Store the exit code for
5286 --return-child-result here, instead of ...
5287 (print_exited_reason): ... here.
5288
5289 2014-05-21 Pedro Alves <palves@redhat.com>
5290
5291 PR gdb/13860
5292 * gdbthread.h (struct thread_control_state): New field
5293 `command_interp'.
5294 * infrun.c (follow_fork): Copy the new thread control field to the
5295 child fork thread.
5296 (clear_proceed_status_thread): Clear the new thread control field.
5297 (proceed): Set the new thread control field.
5298 * interps.h (command_interp): Declare.
5299 * interps.c (command_interpreter): New global.
5300 (command_interp): New function.
5301 (interp_exec): Set `command_interpreter' while here.
5302 * cli-out.c (cli_uiout_dtor): New function.
5303 (cli_ui_out_impl): Install it.
5304 * mi/mi-interp.c: Include cli-out.h.
5305 (mi_cmd_interpreter_exec): Add comment.
5306 (restore_current_uiout_cleanup): New function.
5307 (ui_out_free_cleanup): New function.
5308 (mi_on_normal_stop): If finishing an execution command started by
5309 a CLI command, or any kind of breakpoint-like event triggered,
5310 print the stop event to the output (CLI) stream.
5311 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5312
5313 2014-05-21 Pedro Alves <palves@redhat.com>
5314
5315 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5316 current source line having changed.
5317 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5318 * infrun.c (normal_stop): Adjust call to
5319 set_current_sal_from_frame.
5320 * source.c (clear_lines_listed_range): New function.
5321 (set_current_source_symtab_and_line, identify_source_line): Clear
5322 the lines listed range.
5323 (line_info): Handle the first "info line" after the current source
5324 line having changed.
5325 * stack.c (print_stack_frame): Remove center handling.
5326 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5327 center sal.line.
5328
5329 2014-05-21 Pedro Alves <palves@redhat.com>
5330
5331 * inf-child.c (inf_child_mourn_inferior): New function.
5332 * inf-child.h (inf_child_mourn_inferior): New declaration.
5333 * darwin-nat.c (darwin_mourn_inferior): Use
5334 inf_child_mourn_inferior.
5335 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5336 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5337 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5338 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5339 * windows-nat.c (windows_mourn_inferior): Likewise.
5340
5341 2014-05-21 Doug Evans <xdje42@gmail.com>
5342
5343 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5344
5345 2014-05-21 Doug Evans <xdje42@gmail.com>
5346
5347 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5348 (gdbscm_out_of_range_error): Ditto.
5349 (gdbscm_memory_error): Ditto.
5350 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5351 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5352 (gdbscm_out_of_range_error): Update.
5353 (gdbscm_memory_error): Update.
5354 (gdbscm_scm_to_target_string_unsafe): Delete.
5355
5356 2014-05-21 Pedro Alves <palves@redhat.com>
5357
5358 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5359 globals.
5360 (inf_child_open_target): New function.
5361 (inf_child_open): Use inf_child_open_target to push the target
5362 instead of erroring out.
5363 (inf_child_disconnect, inf_child_close)
5364 (inf_child_maybe_unpush_target): New functions.
5365 (inf_child_target): Install inf_child_disconnect and
5366 inf_child_close. Store a pointer to the returned object.
5367 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5368 declarations.
5369 * target.c (auto_connect_native_target): New global.
5370 (show_default_run_target): New function.
5371 (find_default_run_target): Return NULL if automatically connecting
5372 to the native target is disabled.
5373 (_initialize_target): Install set/show auto-connect-native-target.
5374 * NEWS: Mention "set auto-connect-native-target", and "target
5375 native".
5376 * linux-nat.c (super_close): New global.
5377 (linux_nat_close): Call super_close.
5378 (linux_nat_add_target): Store a pointer to the base class's
5379 to_close method.
5380 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5381 inf_child_maybe_unpush.
5382 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5383 already pushed.
5384 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5385 the inferior. Use inf_child_maybe_unpush_target.
5386 (inf_ttrace_attach): Don't push the target if it is already
5387 pushed.
5388 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5389 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5390 after mourning the inferior. Use inf_child_maybe_unpush_target.
5391 (darwin_attach_pid): Don't push the target if it is already
5392 pushed.
5393 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5394 mourning the inferior. Use inf_child_maybe_unpush_target.
5395 (gnu_detach): Use inf_child_maybe_unpush_target.
5396 * go32-nat.c (go32_create_inferior): Don't push the target if it
5397 is already pushed.
5398 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5399 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5400 (procfs_open): Rename to ...
5401 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5402 comments. Can target_preopen before changing node. Call
5403 inf_child_open_target to push the target explicitly.
5404 (procfs_attach): Don't push the target if it is already pushed.
5405 (procfs_detach): Use inf_child_maybe_unpush_target.
5406 (procfs_create_inferior): Don't push the target if it is already
5407 pushed.
5408 (nto_native_ops): New global.
5409 (procfs_open): Reimplement.
5410 (procfs_native_open): New function.
5411 (init_procfs_targets): Install procfs_native_open as to_open of
5412 "target native". Store a pointer to the "native" target in
5413 nto_native_ops.
5414 * procfs.c (procfs_attach): Don't push the target if it is already
5415 pushed.
5416 (procfs_detach): Use inf_child_maybe_unpush_target.
5417 (procfs_mourn_inferior): Only unpush the target after mourning the
5418 inferior. Use inf_child_maybe_unpush_target.
5419 (procfs_init_inferior): Don't push the target if it is already
5420 pushed.
5421 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5422 if it is already pushed.
5423
5424 2014-05-21 Pedro Alves <palves@redhat.com>
5425
5426 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5427 and "procfs" targets are now called "native" instead.
5428
5429 2014-05-21 Pedro Alves <palves@redhat.com>
5430
5431 * go32-nat.c (go32_open): Delete.
5432 (go32_target): Don't override the to_open method.
5433
5434 2014-05-21 Pedro Alves <palves@redhat.com>
5435
5436 * nto-procfs.c (procfs_can_run): New function.
5437 (nto_procfs_ops): New global.
5438 (init_procfs_targets): New, based on procfs_target. Install
5439 "target native" in addition to "target procfs".
5440 (_initialize_procfs): Call init_procfs_targets instead of adding
5441 the target here.
5442
5443 2014-05-21 Pedro Alves <palves@redhat.com>
5444
5445 * windows-nat.c (windows_target): Don't override to_shortname,
5446 to_longname or to_doc.
5447
5448 2014-05-21 Pedro Alves <palves@redhat.com>
5449
5450 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5451 to_doc.
5452
5453 2014-05-21 Pedro Alves <palves@redhat.com>
5454
5455 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5456 to_shortname, to_longname or to_doc.
5457
5458 2014-05-21 Pedro Alves <palves@redhat.com>
5459
5460 * go32-nat.c (go32_target): Don't override to_shortname,
5461 to_longname or to_doc.
5462
5463 2014-05-21 Pedro Alves <palves@redhat.com>
5464
5465 * inf-child.c (inf_child_open): Remove mention of "child".
5466 (inf_child_target): Rename target to "native" instead of "child".
5467
5468 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5469
5470 * Makefile.in (SFILES): Delete "regset.c".
5471 (COMMON_OBS): Delete "regset.o".
5472 * regset.c: Remove.
5473 * regset.h (regset_alloc): Delete prototype.
5474
5475 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5476
5477 * sparc-linux-tdep.c (sparc32_linux_gregset)
5478 (sparc32_linux_fpregset): New static regset structures.
5479 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5480 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5481 'fpregset' fields.
5482 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5483 (sparc64_linux_fpregset): New static regset structures.
5484 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5485 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5486 New static regset structures.
5487 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5488 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5489 New static regset structures.
5490 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5491 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5492 New static regset structures.
5493 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5494 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5495 New static regset structures.
5496 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5497
5498 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5499
5500 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5501 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5502 register maps ("regmaps") from "*regset" to "*regmap". Do this
5503 for all regmap types and variables.
5504 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5505 (sparc32_linux_supply_core_gregset)
5506 (sparc32_linux_collect_core_gregset)
5507 (sparc32_linux_supply_core_fpregset)
5508 (sparc32_linux_collect_core_fpregset): Likewise.
5509 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5510 (sparc_gregmap, sparc_fpregmap): ... these.
5511 (sparc_supply_gregset, sparc_collect_gregset)
5512 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5513 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5514 (_initialize_sparc_nat): Rename regmaps.
5515 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5516 (sparc_gregmap, sparc_fpregmap): ... these.
5517 (sparc_supply_gregset, sparc_collect_gregset)
5518 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5519 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5520 Rename macros to...
5521 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5522 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5523 Likewise.
5524 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5525 Rename to...
5526 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5527 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5528 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5529 regmaps.
5530 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5531 (sparc32_bsd_fpregset): Rename to...
5532 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5533 (sparc32_bsd_fpregmap): ... these.
5534 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5535 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5536 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5537 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5538 (struct sparc_gregmap, struct sparc_fpregmap)
5539 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5540 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5541 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5542 (sparc32_supply_regset, sparc32_collect_gregset)
5543 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5544 prototypes.
5545 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5546 (sparc64_linux_ptrace_gregmap): ... this.
5547 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5548 (_initialize_sparc64_linux_nat): Rename regmaps.
5549 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5550 (sparc64_linux_core_gregmap): ... this.
5551 (sparc64_linux_supply_core_gregset)
5552 (sparc64_linux_collect_core_gregset)
5553 (sparc64_linux_supply_core_fpregset)
5554 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5555 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5556 (sparc64_sol2_fpregset): Rename to...
5557 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5558 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5559 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5560 regmaps.
5561 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5562 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5563 (sparc64_bsd_fpregset): Rename to...
5564 (struct sparc_gregmap, sparc64_sol2_gregmap)
5565 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5566 (sparc64_bsd_fpregmap): ... these.
5567 (sparc64_supply_gregset, sparc64_collect_gregset)
5568 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5569 prototypes.
5570 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5571 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5572 (sparc64fbsd_gregmap): ... this.
5573 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5574 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5575 Rename regmaps.
5576 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5577 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5578 (sparc64nbsd_collect_fpregset): Likewise.
5579 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5580 (sparc64nbsd_gregmap): ... this.
5581 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5582 regmaps.
5583 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5584 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5585 (sparc64obsd_gregmap): ... this.
5586 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5587 regmaps.
5588 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5589 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5590 (sparc32nbsd_gregmap): ... this.
5591 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5592 regmaps.
5593
5594 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5595
5596 * score-tdep.c (score7_linux_gregset): New static regset
5597 structure.
5598 (score7_linux_regset_from_core_section): Remove dynamic regset
5599 allocation.
5600 (score_gdbarch_init): Drop allocation of tdep structure.
5601 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5602
5603 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5604
5605 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5606 regset structures.
5607 (am33_regset_from_core_section): Remove dynamic regset
5608 allocations.
5609
5610 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5611
5612 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5613 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5614 structures.
5615 (mips_linux_regset_from_core_section): Remove dynamic regset
5616 allocations.
5617 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5618 'gregset64', 'fpregset', and 'fpregset64'.
5619 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5620 deleted tdep fields.
5621
5622 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5623
5624 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5625 regset structures.
5626 (amd64_regset_from_core_section): Remove dynamic regset
5627 allocations.
5628 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5629 structure.
5630 (amd64obsd_regset_from_core_section): Remove dynamic regset
5631 allocation.
5632 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5633 Likewise.
5634 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5635 x86-common regset supply function.
5636 * i386-tdep.c (i386_collect_gregset): Make static.
5637 (i386_gregset): New global regset structure.
5638 (i386_fpregset, i386_xstateregset): New static regset structures.
5639 (i386_regset_from_core_section): Remove dynamic regset
5640 allocations.
5641 (i386_gdbarch_init): Remove initialization of tdep fields
5642 'gregset', 'fpregset', and 'xstateregset'.
5643 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5644 'fpregset', and 'xstateregset'.
5645 (i386_collect_gregset): Remove prototype.
5646 (i386_gregset): New declaration.
5647 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5648 structure.
5649 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5650 allocation.
5651
5652 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5653
5654 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5655 (arm_linux_vfpregset): New static regset structures.
5656 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5657 regset structures.
5658 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5659 and 'vfpregset' fields.
5660
5661 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5662
5663 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5664 (aarch64_linux_fpregset): New static regset structures.
5665 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5666 of regset structures.
5667 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5668 'fpregset' fields.
5669
5670 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5671
5672 * regset.h (struct regset): Remove gdbarch field.
5673 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5674 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5675 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5676 Likewise.
5677 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5678 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5679 (ppc32_linux_vsxregset): Likewise.
5680 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5681 via the regcache instead of the regset.
5682 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5683 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5684 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5685 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5686 Likewise.
5687
5688 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5689
5690 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5691 Constify structures.
5692 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5693 (alphanbsd_aout_gregset): Likewise.
5694 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5695 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5696 Likewise.
5697 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5698 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5699 Likewise.
5700 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5701 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5702 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5703 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5704 * m88k-tdep.c (m88k_gregset): Likewise.
5705 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5706 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5707 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5708 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5709 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5710 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5711 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5712 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5713 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5714 Likewise.
5715 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5716 * sh-tdep.h (sh_corefile_gregset): Likewise.
5717 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5718 * vax-tdep.c (vax_gregset): Likewise.
5719
5720 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5721
5722 Fix TLS access for -static -pthread.
5723 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5724 (try_thread_db_load_1): Initialize it.
5725 (thread_db_get_thread_local_address): Call it if LM is zero.
5726 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5727 * target.h (struct target_ops) (to_get_thread_local_address): Add
5728 load_module_addr comment.
5729
5730 2014-05-21 Pedro Alves <palves@redhat.com>
5731
5732 * dcache.c (dcache_read_memory_partial): If reading the cache line
5733 fails, fallback to reading just the memory the caller wanted.
5734
5735 2014-05-20 Doug Evans <dje@google.com>
5736
5737 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5738 instead of get_current_arch.
5739
5740 2014-05-20 Pedro Alves <palves@redhat.com>
5741
5742 * NEWS: Mention that compare-sections now works with all targets.
5743
5744 * remote.c (PACKET_qCRC): New enum value.
5745 (remote_verify_memory): Don't send qCRC if the target has no
5746 execution. Use packet_support/packet_ok. If the target doesn't
5747 support the qCRC packet, fallback to a deep memory copy.
5748 (compare_sections_command): Say "target image" instead of "remote
5749 executable".
5750 (_initialize_remote): Add PACKET_qCRC to the list of config
5751 packets that have no associated command. Extend comment.
5752 * target.c (simple_verify_memory, default_verify_memory): New
5753 function.
5754 * target.h (struct target_ops) <to_verify_memory>: Default to
5755 default_verify_memory.
5756 (simple_verify_memory): New declaration.
5757 * target-delegates.c: Regenerate.
5758
5759 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5760
5761 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5762
5763 2014-05-20 Hui Zhu <hui@codesourcery.com>
5764 Yao Qi <yao@codesourcery.com>
5765
5766 PR backtrace/16558
5767 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5768 and change address of sp and pc.
5769
5770 2014-05-19 Tom Tromey <tromey@redhat.com>
5771
5772 * gdbtypes.c (rank_function): Use XNEWVEC.
5773 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5774
5775 2014-05-19 Doug Evans <dje@google.com>
5776
5777 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5778 build_type_unit_groups and moved closer to only caller. Remove
5779 arguments. All references updated. Remove outdated .gdb_index
5780 comment.
5781 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5782 build_type_psymtabs_1.
5783
5784 2014-05-19 Doug Evans <dje@google.com>
5785
5786 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5787 n_type_unit_groups, all_type_unit_groups. All uses removed.
5788 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5789 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5790 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5791 (add_type_unit_group_to_table): Delete.
5792
5793 2014-05-19 Doug Evans <dje@google.com>
5794
5795 * eval.c (evaluate_subexp_standard): Add some comments.
5796
5797 2014-05-17 Doug Evans <xdje42@gmail.com>
5798
5799 * progspace.c (remove_program_space): Delete, unused.
5800 * progspace.h (remove_program_space): Ditto.
5801
5802 2014-05-17 Doug Evans <xdje42@gmail.com>
5803
5804 * inferior.c (prune_inferiors): Fix comment.
5805 (remove_inferior_command): Call prune_program_spaces.
5806
5807 2014-05-16 Doug Evans <dje@google.com>
5808
5809 New command line option -D.
5810 * NEWS: Mention it.
5811 * main.c (set_gdb_data_directory): New function.
5812 (captured_main): Recognize -D. Flag error for --data-directory "".
5813 Call set_gdb_data_directory.
5814 (print_gdb_help): Print --data-directory, -D.
5815 * main.h (set_gdb_data_directory): Declare.
5816 * top.c (staged_gdb_datadir): New static global.
5817 (set_gdb_datadir): Call set_gdb_data_directory
5818 (show_gdb_datadir): New function.
5819 (init_main): Update init of data-directory parameter.
5820
5821 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5822
5823 Import the "dirfd" gnulib module.
5824 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5825 * gnulib/aclocal.m4: Update.
5826 * gnulib/config.in: Update.
5827 * gnulib/configure: Update.
5828 * gnulib/import/Makefile.am: Update.
5829 * gnulib/import/Makefile.in: Update.
5830 * gnulib/import/dirfd.c: New.
5831 * gnulib/import/m4/dirfd.m4: New.
5832 * gnulib/import/m4/gnulib-cache.m4: Update.
5833 * gnulib/import/m4/gnulib-comp.m4: Update.
5834
5835 2014-05-16 Pierre Muller <muller@sourceware.org>
5836 Yao Qi <yao@codesourcery.com>
5837
5838 * valprint.c (print_wchar): Move the code on checking whether
5839 W is a printable wide char to the default branch of switch
5840 statement below. Call wchar_printable instead of gdb_iswprint.
5841
5842 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5843
5844 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5845 ldr.w and ldrd instructions.
5846
5847 2014-05-15 Doug Evans <dje@google.com>
5848
5849 * dwarf2read.c (read_structure_type): Delete outdated comments.
5850
5851 2014-05-14 Tom Tromey <tromey@redhat.com>
5852
5853 * macrocmd.c (print_macro_definition): Reindent.
5854
5855 2014-05-13 Doug Evans <xdje42@gmail.com>
5856
5857 * python/py-cmd.c (cmdpy_completer): Add comment.
5858 (completers): Make const.
5859
5860 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5861
5862 * infrun.c (resume): Remove should_resume (unused). Move up
5863 declaration of resume_ptid.
5864
5865 2014-05-13 Tom Tromey <tromey@redhat.com>
5866
5867 * language.h (unop_type_check): Remove.
5868 (binop_type_check): Don't declare.
5869
5870 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5871
5872 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5873 call to regcache_raw_collect.
5874
5875 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5876
5877 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5878 mi_console->quote as the quoting character.
5879
5880 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5881
5882 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5883
5884 2014-04-29 Tom Tromey <tromey@redhat.com>
5885
5886 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5887 "show debug varobj".
5888
5889 2014-05-07 Kyle McMartin <kyle@redhat.com>
5890
5891 Pushed by Joel Brobecker <brobecker@adacore.com>.
5892 * aarch64-tdep.c (aarch64_software_single_step): New function.
5893 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5894 with aarch64_software_single_step.
5895
5896 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5897
5898 GDB 7.7.1 released.
5899
5900 2014-05-05 Keith Seitz <keiths@redhat.com>
5901
5902 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5903 variable or history value is successfully parsed.
5904
5905 2014-05-05 Yao Qi <yao@codesourcery.com>
5906 Pedro Alves <palves@redhat.com>
5907
5908 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5909 address of blocks that intersects the requested range. Trim
5910 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5911 sections.
5912 * ctf.c (ctf_xfer_partial): Likewise.
5913
5914 2014-05-05 Yao Qi <yao@codesourcery.com>
5915
5916 * printcmd.c (display_command): Remove the check to
5917 target_has_execution.
5918
5919 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5920
5921 * ppcobsd-nat.c: Include "obsd-nat.h".
5922 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5923 add_target.
5924 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5925
5926 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5927
5928 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5929 and 16-bit signed and unsigned arguments. Update comment.
5930 (stap_parse_probe_arguments): Extend code to handle such
5931 arguments. Use warning instead of complaint to notify about
5932 unrecognized bitness.
5933
5934 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5935
5936 PR breakpoints/16889
5937 * stap-probe.c (stap_parse_probe_arguments): Simplify
5938 check for non-prefixed probes (i.e., probes whose
5939 arguments do not start with "N@"). Always set the
5940 argument type to a sane value.
5941
5942 2014-05-01 David Taylor <dtaylor@emc.com>
5943
5944 * remote.c (compare_sections_command): Add -r option to compare
5945 all loadable read-only sections.
5946
5947 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5948
5949 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5950 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5951 Update all callers.
5952 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5953 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5954 Remove unused CORE_ADDR argument. Update all callers.
5955
5956 2014-04-29 Pedro Alves <palves@redhat.com>
5957
5958 * remote.c (struct packet_config) <detect>: Extend comment.
5959 (add_packet_config_cmd): Don't set the config's detect or support
5960 fields here.
5961 (init_all_packet_configs): Also initialize the config's 'detect'
5962 field.
5963 (reset_all_packet_configs_support): New function.
5964 (remote_open_1): Call reset_all_packet_configs_support instead of
5965 init_all_packet_configs.
5966 (_initialize_remote): Initialize all packet configs. Assert that
5967 all packets have an associated command, except a few known
5968 outliers.
5969
5970 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5971
5972 * dwarf2read.c (read_subrange_type): Handle dynamic
5973 DW_AT_lower_bound attributes.
5974
5975 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5976
5977 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5978 dynamic bounds before computing its upper bound.
5979 (ada_discrete_type_low_bound): Same as above with the lower bound.
5980
5981 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5982
5983 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5984 range types. Adjust the array handling implementation to
5985 take advantage of this change.
5986 (resolve_dynamic_range): New function, mostly extracted from
5987 resolve_dynamic_bounds.
5988 (resolve_dynamic_array): New function, mostly extracted from
5989 resolve_dynamic_bounds.
5990 (resolve_dynamic_bounds): Delete.
5991 (resolve_dynamic_type): Reimplement. Add handling of
5992 TYPE_CODE_RANGE types.
5993
5994 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5995
5996 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5997 handling of parallel ___XA types.
5998
5999 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6000
6001 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6002 unnecessary second call to static_unwrap_type.
6003
6004 2014-04-27 Hui Zhu <hui@codesourcery.com>
6005
6006 * stack.c (print_frame_info): Call do_gdb_disassembly with
6007 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6008
6009 2014-04-26 Doug Evans <xdje42@gmail.com>
6010
6011 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6012
6013 2014-04-25 Pedro Alves <palves@redhat.com>
6014
6015 PR server/16255
6016 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6017 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6018 and newline from built string.
6019 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6020 (linux_ptrace_attach_fail_reason): ... this.
6021 * linux-nat.c (linux_nat_attach): Adjust to use
6022 linux_ptrace_attach_fail_reason.
6023
6024 2014-04-25 Pedro Alves <palves@redhat.com>
6025
6026 * remote.c (struct remote_state): Remove multi_process_aware,
6027 non_stop_aware, cond_tracepoints, cond_breakpoints,
6028 breakpoint_commands, fast_tracepoints, static_tracepoints,
6029 install_in_trace, disconnected_tracing,
6030 enable_disable_tracepoints, string_tracing, and
6031 augmented_libraries_svr4_read fields.
6032 (remote_multi_process_p): Move further below in the file.
6033 (struct packet_config): Add comments.
6034 (update_packet_config): Delete function.
6035 (show_packet_config_cmd): Use packet_config_support.
6036 (add_packet_config_cmd): Use NULL as set callback.
6037 (packet_ok): "set remote foo-packet"-style commands no longer
6038 change config->supported -- adjust.
6039 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6040 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6041 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6042 (PACKET_QNonStop, PACKET_multiprocess_feature)
6043 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6044 (PACKET_DisconnectedTracing_feature)
6045 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6046 (set_remote_protocol_packet_cmd): Delete function.
6047 (packet_config_support, packet_support): New functions.
6048 (set_remote_protocol_Z_packet_cmd): Don't call
6049 update_packet_config.
6050 (remote_query_attached, remote_pass_signals)
6051 (remote_program_signals, remote_threads_info)
6052 (remote_threads_extra_info, remote_start_remote): Use
6053 packet_support.
6054 (remote_start_remote): Use packet_config_support and
6055 packet_support.
6056 (init_all_packet_configs): Set all packets to unknown support,
6057 instead of calling update_packet_config.
6058 (remote_check_symbols): Use packet_support.
6059 (remote_supported_packet): Unconditionally set the packet config's
6060 support status.
6061 (remote_multi_process_feature, remote_non_stop_feature)
6062 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6063 (remote_breakpoint_commands_feature)
6064 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6065 (remote_install_in_trace_feature)
6066 (remote_disconnected_tracing_feature)
6067 (remote_enable_disable_tracepoint_feature)
6068 (remote_string_tracing_feature)
6069 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6070 (remote_protocol_features): Adjust to use remote_supported_packet
6071 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6072 "ConditionalTracepoints", "ConditionalBreakpoints",
6073 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6074 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6075 "EnableDisableTracepoints", and "tracenz".
6076 (remote_query_supported): Use packet_support.
6077 (remote_open_1): Adjust.
6078 (extended_remote_attach_1): Use packet_support. Switch on the
6079 result of packet_ok instead of checking whether the packet ended
6080 up disabled.
6081 (remote_vcont_resume): Use packet_support.
6082 (remote_resume, remote_stop_ns, fetch_register_using_p)
6083 (remote_prepare_to_store, store_register_using_P)
6084 (check_binary_download, remote_write_bytes): Use packet_support.
6085 (remote_vkill): Use packet_support. Switch on the result of
6086 packet_ok instead of checking whether the packet ended up
6087 disabled.
6088 (extended_remote_supports_disable_randomization): Use
6089 packet_support.
6090 (extended_remote_run): Switch on the result of packet_ok instead
6091 of checking whether the packet ended up disabled.
6092 (remote_insert_breakpoint, remote_remove_breakpoint)
6093 (remote_insert_watchpoint, remote_remove_watchpoint)
6094 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6095 packet_support.
6096 (remote_search_memory): Use packet_config_support.
6097 (remote_get_thread_local_address, remote_get_tib_address)
6098 (remote_hostio_send_command, remote_can_execute_reverse): Use
6099 packet_support.
6100 (remote_supports_cond_tracepoints)
6101 (remote_supports_cond_breakpoints)
6102 (remote_supports_fast_tracepoints)
6103 (remote_supports_static_tracepoints)
6104 (remote_supports_install_in_trace)
6105 (remote_supports_enable_disable_tracepoint)
6106 (remote_supports_string_tracing)
6107 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6108 the packet config says the feature is enabled or disabled.
6109 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6110 (remote_get_trace_status): Use packet_support.
6111 (remote_set_disconnected_tracing): Adjust to check whether the
6112 feature is enabled with packet_support.
6113 (remote_set_trace_buffer_size, remote_use_agent)
6114 (remote_can_use_agent, remote_supports_btrace): Use
6115 packet_support.
6116 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6117 Use packet_config_support.
6118 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6119 the packet config says the feature is enabled or disabled.
6120 (set_range_stepping): Use packet_support.
6121
6122 2014-04-25 Tom Tromey <tromey@redhat.com>
6123
6124 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6125 argument.
6126
6127 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6128
6129 * NEWS: Mention support for C99 variable length arrays.
6130
6131 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6132
6133 * ada-lang.c (standard_exc): Expand introductory comment.
6134
6135 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6136 Walfred Tedeschi <walfred.tedeschi@intel.com>
6137
6138 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6139 AVX512 registers.
6140 (amd64_linux_read_description): Add code to handle AVX512 xstate
6141 mask and return respective tdesc.
6142 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6143 and features/i386/x32-avx512-linux.c.
6144 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6145 (amd64_linux_core_read_description): Add code to handle AVX512
6146 xstate mask and return respective tdesc.
6147 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6148 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6149 calculation.
6150 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6151 (tdesc_amd64_avx512_linux): New prototype.
6152 (tdesc_x32_avx512_linux): Likewise.
6153 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6154 features/i386/x32-avx512.c.
6155 (amd64_ymm_avx512_names): New register names for pseudo
6156 registers YMM16-31.
6157 (amd64_ymmh_avx512_names): New register names for raw registers
6158 YMMH16-31.
6159 (amd64_k_names): New register names for K registers.
6160 (amd64_zmmh_names): New register names for ZMM raw registers.
6161 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6162 (amd64_xmm_avx512_names): New register names for XMM16-31
6163 registers.
6164 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6165 registers.
6166 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6167 if feature is present.
6168 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6169 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6170 (AMD64_NUM_REGS): Adjust to new number of registers.
6171 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6172 registers supplied via XSTATE by AVX512 registers.
6173 (i386_linux_read_description): Add case for AVX512.
6174 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6175 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6176 (i386_linux_core_read_description): Add case for AVX512.
6177 (i386_linux_init_abi): Install supported register note section
6178 for AVX512.
6179 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6180 AVX512.
6181 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6182 registers to be number of zmm7h + 1.
6183 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6184 * i386-tdep.c: Include features/i386/i386-avx512.c.
6185 (i386_zmm_names): Add ZMM pseudo register names array.
6186 (i386_zmmh_names): Add ZMM raw register names array.
6187 (i386_k_names): Add K raw register names array.
6188 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6189 registers. AVX512 has 16 more ZMM registers than there are YMM
6190 registers.
6191 (i386_zmmh_regnum_p): Add function to look up register number of
6192 ZMM raw registers.
6193 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6194 (i386_k_regnum_p): Likewise for K raw registers.
6195 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6196 registers added by AVX512.
6197 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6198 registers added by AVX512.
6199 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6200 added by AVX512.
6201 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6202 (i386_pseudo_register_name): Add ZMM pseudo registers.
6203 (i386_zmm_type): Construct and return vector registers type for ZMM
6204 registers.
6205 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6206 ZMM0-31 pseudo registers and K registers.
6207 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6208 and YMM16-31 registers from register cache.
6209 (i386_pseudo_register_write): Add code to write K, ZMM and
6210 YMM16-31 registers.
6211 (i386_register_reggroup_p): Add code to include/exclude AVX512
6212 registers in/from respective register groups.
6213 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6214 registers if feature is present in xcr0.
6215 (i386_gdbarch_init): Add code to initialize AVX512 feature
6216 variables in tdep structure, wire in pseudo registers and call
6217 initialize_tdesc_i386_avx512.
6218 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6219 variables.
6220 (i386_regnum): Add AVX512 registers.
6221 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6222 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6223 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6224 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6225 512 bits wide.
6226 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6227 (i386_ymm_avx512_regnum_p): Likewise.
6228 (i386_k_regnum_p): Likewise.
6229 (i386_zmm_regnum_p): Likewise.
6230 (i386_zmmh_regnum_p): Likewise.
6231 * i387-tdep.c : Update year in copyright notice.
6232 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6233 XSAVE buffer.
6234 (XSAVE_YMM_AVX512_ADDR): New macro.
6235 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6236 XSAVE buffer.
6237 (XSAVE_XMM_AVX512_ADDR): New macro.
6238 (xsave_avx512_k_offset): New table for K register offsets in
6239 XSAVE buffer.
6240 (XSAVE_AVX512_K_ADDR): New macro.
6241 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6242 in XSAVE buffer.
6243 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6244 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6245 buffer.
6246 (i387_collect_xsave): Add code to collect AVX512 registers from
6247 XSAVE buffer.
6248 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6249 of XMM16-31 registers.
6250 (I387_NUM_K_REGS): New define for number of K registers.
6251 (I387_K0_REGNUM): New define for K0 register number.
6252 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6253 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6254 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6255 registers.
6256 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6257 (I387_XMM16_REGNUM): New define for XMM16 register number.
6258 (I387_YMM0_REGNUM): New define for YMM0 register number.
6259 (I387_KEND_REGNUM): New define for last K register number.
6260 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6261 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6262 number.
6263 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6264 number.
6265 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6266 size.
6267 * features/Makefile: Add AVX512 related files.
6268 * features/i386/32bit-avx512.xml: New file.
6269 * features/i386/64bit-avx512.xml: Likewise.
6270 * features/i386/amd64-avx512-linux.c: Likewise.
6271 * features/i386/amd64-avx512-linux.xml: Likewise.
6272 * features/i386/amd64-avx512.c: Likewise.
6273 * features/i386/amd64-avx512.xml: Likewise.
6274 * features/i386/i386-avx512-linux.c: Likewise.
6275 * features/i386/i386-avx512-linux.xml: Likewise.
6276 * features/i386/i386-avx512.c: Likewise.
6277 * features/i386/i386-avx512.xml: Likewise.
6278 * features/i386/x32-avx512-linux.c: Likewise.
6279 * features/i386/x32-avx512-linux.xml: Likewise.
6280 * features/i386/x32-avx512.c: Likewise.
6281 * features/i386/x32-avx512.xml: Likewise.
6282 * regformats/i386/amd64-avx512-linux.dat: New file.
6283 * regformats/i386/amd64-avx512.dat: Likewise.
6284 * regformats/i386/i386-avx512-linux.dat: Likewise.
6285 * regformats/i386/i386-avx512.dat: Likewise.
6286 * regformats/i386/x32-avx512-linux.dat: Likewise.
6287 * regformats/i386/x32-avx512.dat: Likewise.
6288 * NEWS: Add note about new support for AVX512.
6289
6290
6291 2014-04-23 Pedro Alves <palves@redhat.com>
6292
6293 * breakpoint.c (insert_bp_location): Tolerate errors if the
6294 breakpoint is set in a user-loaded objfile.
6295 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6296 location is marked shlib_disabled. If the breakpoint is set in a
6297 user-loaded objfile is a GDB-side memory breakpoint, validate it
6298 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6299 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6300 flag.
6301 * mem-break.c (memory_validate_breakpoint): New function.
6302 * objfiles.c (userloaded_objfile_contains_address_p): New
6303 function.
6304 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6305 * target.h (memory_validate_breakpoint): New declaration.
6306
6307 2014-04-23 Pedro Alves <palves@redhat.com>
6308
6309 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6310 the breakpoint is set in a shared library, only suppress
6311 errors for software breakpoints, not hardware breakpoints.
6312
6313 2014-04-22 Pedro Alves <palves@redhat.com>
6314
6315 * infrun.c (schedlock_applies): New function, factored out from
6316 find_thread_needs_step_over.
6317 (find_thread_needs_step_over): Use it.
6318 (switch_back_to_stepped_thread): Always clear trap_expected if the
6319 step over is finished. Return early if scheduler locking applies.
6320 Look for the stepping thread and a potential step-over thread with
6321 a single loop.
6322 (currently_stepping_or_nexting_callback): Delete.
6323
6324 2014-04-22 Nick Clifton <nickc@redhat.com>
6325
6326 * NEWS: Mention that ARM sim now supports tracing.
6327
6328 2014-04-22 Yao Qi <yao@codesourcery.com>
6329
6330 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6331 to ...
6332 * tracefile.c (tracefile_fetch_registers): ... it. New
6333 function.
6334 * tracefile.h (tracefile_fetch_registers): Declare.
6335 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6336 tracefile_fetch_registers.
6337
6338 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6339
6340 PR gdb/14018
6341 * windows-nat.c (thread_rec): Don't display a warning when
6342 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6343 fails for any reason, set th->suspended to -1, so that we don't
6344 try to resume such a thread. Also, don't return NULL in these
6345 cases, to avoid completely ruin the session due to "PC register is
6346 not available" error.
6347 (do_windows_fetch_inferior_registers): Check errors in
6348 GetThreadContext call.
6349 (windows_continue): Accept an additional argument KILLED; if not
6350 zero, ignore errors in the SetThreadContext call, since the
6351 inferior was killed and is shutting down.
6352 (windows_resume, get_windows_debug_event)
6353 (windows_create_inferior, windows_mourn_inferior)
6354 (windows_kill_inferior): All callers of windows_continue changed
6355 to adjust to its new calling sequence.
6356
6357 2014-04-19 Yao Qi <yao@codesourcery.com>
6358
6359 * ctf.c (ctf_open): Call post_create_inferior.
6360
6361 2014-04-19 Yao Qi <yao@codesourcery.com>
6362
6363 * ctf.c (handle_id): New static variable.
6364 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6365 value. Get the declaration of event "register" and get length
6366 of field "contents".
6367
6368 2014-04-19 Yao Qi <yao@codesourcery.com>
6369
6370 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6371
6372 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6373
6374 * valops.c (oload_method_static): Remove unnecessary argument
6375 METHOD. Update all callers.
6376
6377 2014-04-18 Pedro alves <palves@redhat.com>
6378 Tom Tromey <tromey@redhat.com>
6379
6380 PR backtrace/15558
6381 * frame.c (get_prev_frame_1): Rename to ...
6382 (get_prev_frame_always): ... this, and make extern. Adjust.
6383 (skip_artificial_frames): Use get_prev_frame_always.
6384 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6385 (get_frame_unwind_stop_reason): Adjust to rename.
6386 * frame.h (get_prev_frame_always): Declare.
6387 * inline-frame.c: Include frame.h.
6388 (inline_frame_this_id): Use get_prev_frame_always.
6389
6390 2014-04-18 Tristan Gingold <gingold@adacore.com>
6391
6392 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6393 code by using bfd_mach_o_get_base_address.
6394
6395 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6396
6397 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6398 (spu_ax_pseudo_register_collect): New function.
6399 (spu_ax_pseudo_register_push_stack): Likewise.
6400 (spu_dwarf_reg_to_regnum): Likewise.
6401 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6402
6403 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6404
6405 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6406 Replace FRAME argument with FRAME_ID.
6407 * gdbarch.c, gdbarch.h: Regenerate.
6408 * findvar.c (default_value_from_register): Add GDBARCH argument;
6409 replace FRAME by FRAME_ID. No longer call get_frame_id.
6410 (value_from_register): Update call to gdbarch_value_from_register.
6411 * value.h (default_value_from_register): Update prototype.
6412 * s390-linux-tdep.c (s390_value_from_register): Update interface
6413 and call to default_value_from_register.
6414 * spu-tdep.c (spu_value_from_register): Likewise.
6415
6416 * findvar.c (address_from_register): Remove TYPE argument.
6417 Do not call value_from_register; use gdbarch_value_from_register
6418 with null_frame_id instead.
6419 * value.h (address_from_register): Update prototype.
6420 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6421 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6422 address_from_register interface change.
6423
6424 2014-04-17 Yao Qi <yao@codesourcery.com>
6425
6426 * gdbtypes.h: Update comments to link to types and macros'
6427 definitions.
6428
6429 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6430
6431 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6432
6433 2014-04-16 Keith Seitz <keiths@redhat.com>
6434
6435 PR gdb/15827
6436 * dwarf2read.c (skip_one_die): Check that all relative-offset
6437 sibling DIEs fall within range of the current reader's buffer.
6438 (read_partial_die): Likewise.
6439
6440 2014-04-16 Keith Seitz <keiths@redhat.com>
6441
6442 PR c++/16597
6443 * cp-namespace.c (lookup_symbol_file): If the type name of
6444 `this' is NULL, return immediately.
6445
6446 2014-04-14 Keith Seitz <keiths@redhat.com>
6447
6448 PR c++/16253
6449 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6450 from symbol_matches_domain in symtab.c. All local callers
6451 of symbol_matches_domain updated.
6452 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6453 search STRUCT_DOMAIN.
6454 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6455 independently. standard_lookup will do that automatically.
6456 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6457 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6458 (cp_lookup_symbol_in_namespace): Likewise.
6459 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6460 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6461 may return a STRUCT_DOMAIN match.
6462 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6463 * cp-support.c: Include language.h.
6464 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6465 VAR_DOMAIN.
6466 * psymtab.c (match_partial_symbol): Compare the requested
6467 domain with the symbol's domain directly.
6468 (lookup_partial_symbol): Likewise.
6469 * symtab.c (lookup_symbol_in_language): Explain when/why
6470 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6471 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6472 appropriate languages.
6473 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6474 and moved to ada-lang.c
6475 (lookup_block_symbol): Explain that this function only returns
6476 symbol matching the requested DOMAIN.
6477 Compare the requested domain with the symbol's domain directly.
6478 (iterate_over_symbols): Compare the requested domain with the
6479 symbol's domain directly.
6480 * symtab.h (symbol_matches_domain): Remove.
6481
6482 2014-04-14 Tom Tromey <tromey@redhat.com>
6483
6484 PR c++/15246:
6485 * c-exp.y (type_aggregate_p): New function.
6486 (qualified_name, classify_inner_name): Use it.
6487 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6488 and TYPE_TARGET_TYPE of an enum type.
6489 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6490 an enum type.
6491 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6492 handle TYPE_DECLARED_CLASS.
6493 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6494 types.
6495 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6496 * valops.c (enum_constant_from_type): New function.
6497 (value_aggregate_elt): Use it.
6498 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6499 TYPE_CODE_ENUM.
6500
6501 2014-04-14 Tom Tromey <tromey@redhat.com>
6502
6503 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6504 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6505 const.
6506 * value.h (value_aggregate_elt): Update.
6507
6508 2014-04-14 Tom Tromey <tromey@redhat.com>
6509
6510 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6511
6512 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6513
6514 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6515 (evaluate_subexp_standard): Pass noside argument.
6516 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6517 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6518 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6519 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6520 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6521
6522 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6523
6524 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6525 points to a constant blob.
6526
6527 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6528
6529 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6530 property and store it as the high bound and flag the range accordingly.
6531 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6532 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6533 * gdbtypes.h (enum range_flags): New enum.
6534 (struct range_bounds): Add flags member.
6535
6536 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6537
6538 * c-typeprint.c (c_type_print_varspec_suffix): Added
6539 check for not yet resolved high bound. If unresolved, print
6540 "variable length" string to the console instead of random
6541 length.
6542
6543 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6544
6545 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6546 value.
6547 (ada_template_to_fixed_record_type_1): Likewise.
6548 (ada_to_fixed_type_1): Likewise.
6549 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6550 (cp_print_value): Likewise.
6551 * d-valprint.c (dynamic_array_type): Likewise.
6552 * findvar.c (address_of_variable): Likewise.
6553 * jv-valprint.c (java_value_print): Likewise.
6554 * valops.c (value_ind): Likewise.
6555 * value.c (coerce_ref): Likewise.
6556
6557 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6558
6559 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6560 value and retrieve the dynamic type size.
6561
6562 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6563
6564 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6565 passed to sizeof is dynamic evaluate the argument to compute the length.
6566
6567 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6568 Joel Brobecker <brobecker@adacore.com>
6569
6570 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6571 (dwarf2_evaluate_property): New function.
6572 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6573 * dwarf2read.c (attr_to_dynamic_prop): New function.
6574 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6575 attribute.
6576 * gdbtypes.c: Include dwarf2loc.h.
6577 (is_dynamic_type): New function.
6578 (resolve_dynamic_type): New function.
6579 (resolve_dynamic_bounds): New function.
6580 (get_type_length): New function.
6581 (check_typedef): Use get_type_length to compute type length.
6582 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6583 (TYPE_LOW_BOUND_KIND): New macro.
6584 (is_dynamic_type): New function prototype.
6585 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6586 to resolve dynamic properties of the type. Update comment.
6587 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6588
6589 2014-04-14 Richard Henderson <rth@redhat.com>
6590
6591 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6592
6593 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6594 Doug Evans <xdje42@gmail.com>
6595
6596 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6597 dereference TYPE_CODE_REF values.
6598
6599 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6600
6601 Revert the following changes due to regressions:
6602
6603 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6604 (dwarf2_evaluate_property): New function.
6605 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6606 * dwarf2read.c (attr_to_dynamic_prop): New function.
6607 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6608 attribute.
6609 * gdbtypes.c: Include dwarf2loc.h.
6610 (is_dynamic_type): New function.
6611 (resolve_dynamic_type): New function.
6612 (resolve_dynamic_bounds): New function.
6613 (get_type_length): New function.
6614 (check_typedef): Use get_type_length to compute type length.
6615 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6616 (TYPE_LOW_BOUND_KIND): New macro.
6617 (is_dynamic_type): New function prototype.
6618 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6619 to resolve dynamic properties of the type. Update comment.
6620 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6621
6622 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6623 passed to sizeof is dynamic evaluate the argument to compute the length.
6624
6625 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6626 value and retrieve the dynamic type size.
6627
6628 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6629 (ada_template_to_fixed_record_type_1): Likewise.
6630 (ada_to_fixed_type_1): Likewise.
6631 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6632 (cp_print_value): Likewise.
6633 * d-valprint.c (dynamic_array_type): Likewise.
6634 * eval.c (evaluate_subexp_with_coercion): Likewise.
6635 * findvar.c (address_of_variable): Likewise.
6636 * jv-valprint.c (java_value_print): Likewise.
6637 * valops.c (value_ind): Likewise.
6638 * value.c (coerce_ref): Likewise.
6639
6640 * c-typeprint.c (c_type_print_varspec_suffix): Added
6641 check for not yet resolved high bound. If unresolved, print
6642 "variable length" string to the console instead of random
6643 length.
6644
6645 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6646 property and store it as the high bound and flag the range accordingly.
6647 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6648 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6649 * gdbtypes.h (enum range_flags): New enum.
6650 (struct range_bounds): Add flags member.
6651
6652 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6653 points to a constant blob.
6654
6655 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6656 (evaluate_subexp_standard): Pass noside argument.
6657 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6658 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6659 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6660 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6661 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6662
6663 2014-04-11 Keith Seitz <keiths@redhat.com>
6664
6665 PR c++/16675
6666 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6667 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6668 reference types.
6669
6670 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6671
6672 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6673 (evaluate_subexp_standard): Pass noside argument.
6674 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6675 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6676 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6677 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6678 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6679
6680 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6681
6682 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6683 points to a constant blob.
6684
6685 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6686
6687 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6688 property and store it as the high bound and flag the range accordingly.
6689 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6690 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6691 * gdbtypes.h (enum range_flags): New enum.
6692 (struct range_bounds): Add flags member.
6693
6694 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6695
6696 * c-typeprint.c (c_type_print_varspec_suffix): Added
6697 check for not yet resolved high bound. If unresolved, print
6698 "variable length" string to the console instead of random
6699 length.
6700
6701 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6702
6703 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6704 (ada_template_to_fixed_record_type_1): Likewise.
6705 (ada_to_fixed_type_1): Likewise.
6706 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6707 (cp_print_value): Likewise.
6708 * d-valprint.c (dynamic_array_type): Likewise.
6709 * eval.c (evaluate_subexp_with_coercion): Likewise.
6710 * findvar.c (address_of_variable): Likewise.
6711 * jv-valprint.c (java_value_print): Likewise.
6712 * valops.c (value_ind): Likewise.
6713 * value.c (coerce_ref): Likewise.
6714
6715 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6716
6717 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6718 value and retrieve the dynamic type size.
6719
6720 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6721
6722 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6723 passed to sizeof is dynamic evaluate the argument to compute the length.
6724
6725 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6726
6727 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6728 (dwarf2_evaluate_property): New function.
6729 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6730 * dwarf2read.c (attr_to_dynamic_prop): New function.
6731 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6732 attribute.
6733 * gdbtypes.c: Include dwarf2loc.h.
6734 (is_dynamic_type): New function.
6735 (resolve_dynamic_type): New function.
6736 (resolve_dynamic_bounds): New function.
6737 (get_type_length): New function.
6738 (check_typedef): Use get_type_length to compute type length.
6739 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6740 (TYPE_LOW_BOUND_KIND): New macro.
6741 (is_dynamic_type): New function prototype.
6742 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6743 to resolve dynamic properties of the type. Update comment.
6744 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6745
6746 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6747
6748 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6749 declaring high/low bounds and change uses accordingly. Call
6750 create_range_type instead of create_static_range_type.
6751 * gdbtypes.c (create_range_type): New function.
6752 (create_range_type): Convert bounds into struct bound_prop and pass
6753 them to create_range_type.
6754 * gdbtypes.h (struct bound_prop): New struct.
6755 (create_range_type): New function prototype.
6756 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6757 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6758 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6759 part of the bound.
6760 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6761
6762 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6763
6764 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6765 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6766 * ada-lang.c: All uses of create_range_type updated.
6767 * coffread.c: All uses of create_range_type updated.
6768 * dwarf2read.c: All uses of create_range_type updated.
6769 * f-exp.y: All uses of create_range_type updated.
6770 * m2-valprint.c: All uses of create_range_type updated.
6771 * mdebugread.c: All uses of create_range_type updated.
6772 * stabsread.c: All uses of create_range_type updated.
6773 * valops.c: All uses of create_range_type updated.
6774 * valprint.c: All uses of create_range_type updated.
6775
6776 2014-04-10 Pedro Alves <palves@redhat.com>
6777
6778 * breakpoint.c (single_step_breakpoints)
6779 (single_step_gdbarch): Move up in the file.
6780 (one_breakpoint_xfer_memory): New function, factored out from ...
6781 (breakpoint_xfer_memory): ... here. Also process single-step
6782 breakpoints.
6783
6784 2014-04-09 Tristan Gingold <gingold@adacore.com>
6785
6786 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6787 comments.
6788 (darwin_decode_exception_message): Free port only after use.
6789
6790 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6791
6792 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6793 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6794 when setting the size of call_length.
6795
6796 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6797
6798 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6799 dereference TYPE_CODE_REF values.
6800
6801 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6802
6803 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6804 end of warning message.
6805
6806 2014-04-03 Doug Evans <dje@google.com>
6807
6808 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6809 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6810
6811 2014-04-02 Alan Modra <amodra@gmail.com>
6812
6813 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6814 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6815 (struct symbol_file_add_from_memory_args): Add size field.
6816 (find_vdso_size): New function.
6817 (add_vsyscall_page): Attempt to find vdso size.
6818
6819 2014-04-01 Doug Evans <dje@google.com>
6820
6821 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6822
6823 2014-04-01 Tristan Gingold <gingold@adacore.com>
6824
6825 * darwin-nat.c (darwin_encode_reply): Add prototype.
6826 (darwin_decode_exception_message): Reply to unknown inferiors.
6827 (darwin_decode_message): Handle message by id. Ignore message
6828 to unknown inferior.
6829 (darwin_wait): Discard unknown messages, add debug trace.
6830
6831 2014-03-31 Doug Evans <dje@google.com>
6832
6833 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6834 comp_dir_string.
6835
6836 2014-03-31 Doug Evans <dje@google.com>
6837
6838 New option "set print symbol-loading".
6839 * NEWS: Mention it.
6840 * solib.c (solib_read_symbols): Only print symbol loading messages
6841 if requested.
6842 (solib_add): If symbol loading is in "brief" mode, notify user
6843 symbols are being loaded.
6844 (reload_shared_libraries_1): Ditto.
6845 * symfile.c (print_symbol_loading_off): New static global.
6846 (print_symbol_loading_brief): New static global.
6847 (print_symbol_loading_full): New static global.
6848 (print_symbol_loading_enums): New static global.
6849 (print_symbol_loading): New static global.
6850 (print_symbol_loading_p): New function.
6851 (symbol_file_add_with_addrs): Only print symbol loading messages
6852 if requested.
6853 (_initialize_symfile): Register "print symbol-loading" set/show
6854 command.
6855 * symfile.h (print_symbol_loading_p): Declare.
6856
6857 2014-03-30 Doug Evans <xdje42@gmail.com>
6858
6859 * infrun.c (set_last_target_status): New function.
6860 (handle_inferior_event): Call it.
6861
6862 2014-03-30 Doug Evans <xdje42@gmail.com>
6863
6864 * inferior.h (enum stop_kind): Improve comment.
6865
6866 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6867
6868 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6869 a reference, strip the reference layer before calling
6870 the lang_ops value_has_mutated callback.
6871
6872 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6873
6874 Remove some globals from our parser.
6875 * language.c (unk_lang_parser): Add "struct parser_state"
6876 argument.
6877 * language.h (struct language_defn) <la_parser>: Likewise.
6878 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6879 (initialize_expout): Add "struct parser_state" argument.
6880 Rewrite function to use the parser state.
6881 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6882 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6883 write_exp_elt_longcst, write_exp_elt_dblcst,
6884 write_exp_elt_decfloatcst, write_exp_elt_type,
6885 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6886 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6887 write_dollar_variable): Likewise.
6888 (parse_exp_in_context_1): Use parser state.
6889 (insert_type_address_space): Add "struct parser_state" argument.
6890 Use parser state.
6891 (increase_expout_size): New function.
6892 * parser-defs.h: Forward declare "struct language_defn" and
6893 "struct parser_state".
6894 (expout, expout_size, expout_ptr): Remove extern declarations.
6895 (parse_gdbarch, parse_language): Rewrite macro declarations to
6896 accept the parser state.
6897 (struct parser_state): New struct.
6898 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6899 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6900 write_exp_elt_decfloatcst, write_exp_elt_type,
6901 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6902 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6903 write_exp_msymbol, write_dollar_variable,
6904 mark_struct_expression, insert_type_address_space): Add "struct
6905 parser_state" argument.
6906 (increase_expout_size): New function.
6907 * utils.c (do_clear_parser_state): New function.
6908 (make_cleanup_clear_parser_state): Likewise.
6909 * utils.h (make_cleanup_clear_parser_state): New function
6910 prototype.
6911 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6912 Update calls to write_exp* in order to pass the parser state.
6913 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6914 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6915 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6916 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6917 * stap-probe.c (stap_parse_register_operand): Likewise.
6918 (stap_parse_single_operand): Likewise.
6919 (stap_parse_argument_1): Likewise.
6920 (stap_parse_argument): Use parser state.
6921 * stap-probe.h: Include "parser-defs.h".
6922 (struct stap_parse_info) <pstate>: New field.
6923 * c-exp.y (parse_type): Rewrite to use parser state.
6924 (yyparse): Redefine to c_parse_internal.
6925 (pstate): New global variable.
6926 (parse_number): Add "struct parser_state" argument.
6927 (write_destructor_name): Likewise.
6928 (type_exp): Update calls to write_exp* and similars in order to
6929 use parser state.
6930 (exp1, exp, variable, qualified_name, space_identifier,
6931 typename, typebase): Likewise.
6932 (write_destructor_name, parse_number, lex_one_token,
6933 classify_name, classify_inner_name, c_parse): Add "struct
6934 parser_state" argument. Update function to use parser state.
6935 * c-lang.h: Forward declare "struct parser_state".
6936 (c_parse): Add "struct parser_state" argument.
6937 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6938 (yyparse): Redefine macro to ada_parse_internal.
6939 (pstate): New variable.
6940 (write_int, write_object_renaming, write_var_or_type,
6941 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6942 type_int, type_long, type_long_long, type_float, type_double,
6943 type_long_double, type_char, type_boolean, type_system_address):
6944 Add "struct parser_state" argument.
6945 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6946 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6947 var_or_type, aggregate, aggregate_component_list,
6948 positional_list, others, component_group,
6949 component_associations): Update calls to write_exp* and similar
6950 functions in order to use parser state.
6951 (ada_parse, write_var_from_sym, write_int,
6952 write_exp_op_with_string, write_object_renaming,
6953 find_primitive_type, write_selectors, write_ambiguous_var,
6954 write_var_or_type, write_name_assoc, type_int, type_long,
6955 type_long_long, type_float, type_double, type_long_double,
6956 type_char, type_boolean, type_system_address): Add "struct
6957 parser_state" argument. Adjust function to use parser state.
6958 * ada-lang.c (parse): Likewise.
6959 * ada-lang.h: Forward declare "struct parser_state".
6960 (ada_parse): Add "struct parser_state" argument.
6961 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6962 calls to both functions.
6963 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6964 parser state.
6965 (yyparse): Redefine macro to f_parse_internal.
6966 (pstate): New variable.
6967 (parse_number): Add "struct parser_state" argument.
6968 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6969 and similars in order to use parser state.
6970 (parse_number): Adjust code to use parser state.
6971 (yylex): Likewise.
6972 (f_parse): New function.
6973 * f-lang.h: Forward declare "struct parser_state".
6974 (f_parse): Add "struct parser_state" argument.
6975 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6976 parser state.
6977 (yyparse): Redefine macro for java_parse_internal.
6978 (pstate): New variable.
6979 (push_expression_name, push_expression_name, insert_exp): Add
6980 "struct parser_state" argument.
6981 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6982 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6983 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6984 PostIncrementExpression, PostDecrementExpression,
6985 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6986 UnaryExpressionNotPlusMinus, CastExpression,
6987 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6988 RelationalExpression, EqualityExpression, AndExpression,
6989 ExclusiveOrExpression, InclusiveOrExpression,
6990 ConditionalAndExpression, ConditionalOrExpression,
6991 ConditionalExpression, Assignment, LeftHandSide): Update
6992 calls to write_exp* and similars in order to use parser state.
6993 (parse_number): Ajust code to use parser state.
6994 (yylex): Likewise.
6995 (java_parse): New function.
6996 (push_variable): Add "struct parser_state" argument. Adjust
6997 code to user parser state.
6998 (push_fieldnames, push_qualified_expression_name,
6999 push_expression_name, insert_exp): Likewise.
7000 * jv-lang.h: Forward declare "struct parser_state".
7001 (java_parse): Add "struct parser_state" argument.
7002 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7003 parser state.
7004 (yyparse): Redefine macro to m2_parse_internal.
7005 (pstate): New variable.
7006 (type_exp, exp, fblock, variable, type): Update calls to
7007 write_exp* and similars to use parser state.
7008 (yylex): Likewise.
7009 (m2_parse): New function.
7010 * m2-lang.h: Forward declare "struct parser_state".
7011 (m2_parse): Add "struct parser_state" argument.
7012 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7013 * objc-lang.h: Forward declare "struct parser_state".
7014 (end_msglist): Add "struct parser_state" argument.
7015 * p-exp.y (parse_type): Rewrite macro to use parser state.
7016 (yyparse): Redefine macro to pascal_parse_internal.
7017 (pstate): New variable.
7018 (parse_number): Add "struct parser_state" argument.
7019 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7020 write_exp* and similars in order to use parser state.
7021 (parse_number, yylex): Adjust code to use parser state.
7022 (pascal_parse): New function.
7023 * p-lang.h: Forward declare "struct parser_state".
7024 (pascal_parse): Add "struct parser_state" argument.
7025 * go-exp.y (parse_type): Rewrite macro to use parser state.
7026 (yyparse): Redefine macro to go_parse_internal.
7027 (pstate): New variable.
7028 (parse_number): Add "struct parser_state" argument.
7029 (type_exp, exp1, exp, variable, type): Update calls to
7030 write_exp* and similars in order to use parser state.
7031 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7032 to use parser state.
7033 (go_parse): Likewise.
7034 * go-lang.h: Forward declare "struct parser_state".
7035 (go_parse): Add "struct parser_state" argument.
7036
7037 2014-03-27 Doug Evans <dje@google.com>
7038
7039 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7040
7041 2014-03-27 Doug Evans <dje@google.com>
7042
7043 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7044 Remove argument abbrev_section. All callers updated.
7045
7046 2014-03-27 Doug Evans <dje@google.com>
7047
7048 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7049 addr_base, ranges_base.
7050
7051 2014-03-26 Keith Seitz <keiths@redhat.com>
7052
7053 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7054 types, not VAR_DOMAIN.
7055
7056 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7057
7058 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7059 "ra" registers.
7060 * features/nios2-linux.c: Regenerated.
7061 * features/nios2.c: Regenerated.
7062
7063 2014-03-25 Pedro Alves <palves@redhat.com>
7064
7065 * cli/cli-script.c (script_from_file): Force the interpreter to
7066 sync mode.
7067
7068 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7069
7070 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7071 small stack allocation.
7072
7073 2014-03-24 Tristan Gingold <gingold@adacore.com>
7074
7075 * darwin-nat.c (exc_server): Remove unused prototype.
7076 (darwin_dump_message): Correctly display data on x86_64.
7077 (darwin_encode_reply): Fix style.
7078 Add comments and fix indentation.
7079
7080 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7081
7082 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7083
7084 2014-03-22 Doug Evans <xdje42@gmail.com>
7085
7086 * infcmd.c: Whitespace fixes.
7087 (interrupt_command): Merge two function comments into one.
7088
7089 2014-03-22 Doug Evans <xdje42@gmail.com>
7090
7091 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7092 All uses updated.
7093
7094 2014-03-22 Yao Qi <yao@codesourcery.com>
7095
7096 * remote.c (target_read_live_memory): Remove.
7097 (memory_xfer_live_readonly_partial): Rename it to
7098 remote_xfer_live_readonly_partial. Remove argument 'object'.
7099 All callers updated. Call remote_read_bytes_1
7100 instead of target_read_live_memory.
7101 * tracepoint.c (set_traceframe_number): Remove.
7102 (make_cleanup_restore_traceframe_number): Likewise .
7103 * tracepoint.h (set_traceframe_number): Remove declaration.
7104 (make_cleanup_restore_traceframe_number): Likewise.
7105
7106 2014-03-22 Yao Qi <yao@codesourcery.com>
7107
7108 * remote.c (remote_read_bytes): Move code on reading from the
7109 remote stub to ...
7110 (remote_read_bytes_1): ... here. New function.
7111
7112 2014-03-22 Yao Qi <yao@codesourcery.com>
7113
7114 * ctf.c (ctf_xfer_partial): Check the return value of
7115 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7116 return TARGET_XFER_UNAVAILABLE.
7117 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7118 * target.c (target_read_live_memory): Move it to remote.c.
7119 (memory_xfer_live_readonly_partial): Likewise.
7120 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7121 * remote.c (target_read_live_memory): Moved from target.c.
7122 (memory_xfer_live_readonly_partial): Likewise.
7123 (remote_read_bytes): Factored out from
7124 memory_xfer_partial_1.
7125
7126 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7127
7128 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7129 NULL pointer.
7130
7131 2014-03-21 Pedro Alves <palves@redhat.com>
7132
7133 * infrun.c (normal_stop): Extend comment.
7134
7135 2014-03-21 Hui Zhu <hui@codesourcery.com>
7136 Pedro Alves <palves@redhat.com>
7137
7138 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7139 static buffer.
7140 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7141 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7142 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7143
7144 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7145
7146 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7147 `z' formatted output modifier.
7148
7149 2014-03-20 Tom Tromey <tromey@redhat.com>
7150 Sergio Durigan Junior <sergiodj@redhat.com>
7151
7152 * probe.c (parse_probes): Turn assert into an ordinary error.
7153 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7154 exceptions when parsing probes. Rearrange the code for clarity.
7155
7156 2014-03-20 Tom Tromey <tromey@redhat.com>
7157
7158 PR gdb/14135
7159 * top.c (execute_command): Only dispatch events if the command
7160 started the target.
7161
7162 2014-03-20 Tom Tromey <tromey@redhat.com>
7163
7164 PR cli/15718
7165 * infcall.c: Include event-top.h.
7166 (run_inferior_call): Call async_disable_stdin if needed.
7167
7168 2014-03-20 Pedro Alves <palves@redhat.com>
7169
7170 * infrun.c (prepare_to_proceed): Delete.
7171 (thread_still_needs_step_over): New function.
7172 (find_thread_needs_step_over): New function.
7173 (proceed): If the current thread needs a step-over, set its
7174 steping_over_breakpoint flag. Adjust to use
7175 find_thread_needs_step_over instead of prepare_to_proceed.
7176 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7177 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7178 breakpoint.
7179 (switch_back_to_stepped_thread): Step over breakpoints of all
7180 threads not the stepping thread, before switching back to the
7181 stepping thread.
7182
7183 2014-03-20 Pedro Alves <palves@redhat.com>
7184
7185 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7186 extern.
7187 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7188 * infrun.c (saved_singlestep_ptid)
7189 (stepping_past_singlestep_breakpoint): Delete.
7190 (resume): Remove stepping_past_singlestep_breakpoint handling.
7191 (proceed): Store the prev_pc of the stepping thread too.
7192 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7193 singlestep_pc.
7194 (enum infwait_states): Delete infwait_thread_hop_state.
7195 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7196 field.
7197 (handle_inferior_event): Adjust.
7198 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7199 handling and the thread-hop code. Before removing single-step
7200 breakpoints, check whether the thread hit a single-step breakpoint
7201 of another thread. If it did, the trap is not a random signal.
7202 (switch_back_to_stepped_thread): If the event thread hit a
7203 single-step breakpoint, unblock it before switching to the
7204 stepping thread. Handle the case of the stepped thread having
7205 advanced already.
7206 (keep_going): Handle the case of the current thread moving past a
7207 single-step breakpoint.
7208
7209 2014-03-20 Pedro Alves <palves@redhat.com>
7210
7211 PR breakpoints/7143
7212 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7213 are being stepped over.
7214 (breakpoint_address_match): Make extern.
7215 * breakpoint.h (breakpoint_address_match): New declaration.
7216 * inferior.h (stepping_past_instruction_at): New declaration.
7217 * infrun.c (struct step_over_info): New type.
7218 (step_over_info): New global.
7219 (set_step_over_info, clear_step_over_info)
7220 (stepping_past_instruction_at): New functions.
7221 (handle_inferior_event): Clear the step-over info when
7222 trap_expected is cleared.
7223 (resume): Remove now stale comment.
7224 (clear_proceed_status): Clear step-over info.
7225 (proceed): Adjust step-over handling to set or clear the step-over
7226 info instead of removing all breakpoints.
7227 (handle_signal_stop): When setting up a thread-hop, don't remove
7228 breakpoints here.
7229 (stop_stepping): Clear step-over info.
7230 (keep_going): Adjust step-over handling to set or clear step-over
7231 info and then always inserting breakpoints, instead of removing
7232 all breakpoints when stepping over one.
7233
7234 2014-03-20 Pedro Alves <palves@redhat.com>
7235
7236 * infrun.c (previous_inferior_ptid): Adjust comment.
7237 (deferred_step_ptid): Delete.
7238 (infrun_thread_ptid_changed, prepare_to_proceed)
7239 (init_wait_for_inferior): Adjust.
7240 (handle_signal_stop): Delete deferred_step_ptid handling.
7241
7242 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7243
7244 PR gdb/15358
7245 * defs.h (sync_quit_force_run): New declaration.
7246 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7247 * event-top.c (async_sigterm_handler): New declaration.
7248 (async_sigterm_token): New variable.
7249 (async_init_signals): Create also async_sigterm_token.
7250 (async_sigterm_handler): New function.
7251 (sync_quit_force_run): New variable.
7252 (handle_sigterm): Replace quit_force call by other calls.
7253 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7254
7255 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7256
7257 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7258 offset into SPE pseudo registers.
7259
7260 2014-03-18 Pedro Alves <palves@redhat.com>
7261
7262 PR gdb/13860
7263 * inferior.h (print_stop_event): Declare.
7264 * infrun.c (print_stop_event): New, factored out from ...
7265 (normal_stop): ... this.
7266 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7267 of bpstat_print/print_stack_frame.
7268
7269 2014-03-17 Tom Tromey <tromey@redhat.com>
7270
7271 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7272
7273 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7274
7275 * ada-lang.c (decode_constrained_packed_array): Perform a
7276 minimal coercion for reference with coerce_ref instead of
7277 ada_coerce_ref.
7278
7279 2014-03-17 Tristan Gingold <gingold@adacore.com>
7280
7281 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7282 (darwin_solib_create_inferior_hook): Emit a warning if version
7283 is unhandled.
7284
7285 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7286
7287 * python/py-value.c (get_field_flag): Cast flag_name argument to
7288 PyObject_GetAttrString to support Python 2.4.
7289
7290 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7291
7292 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7293 (Global Maintainers): Remove Jan Kratochvil.
7294
7295 2014-03-14 Pedro Alves <palves@redhat.com>
7296
7297 * inferior.h (terminal_ours_for_output): Rename to ...
7298 (child_terminal_ours_for_output): ... this.
7299 (terminal_save_ours): Rename to ...
7300 (child_terminal_save_ours): ... this.
7301 (terminal_ours): Rename to ...
7302 (child_terminal_ours): ... this.
7303 (terminal_inferior): Rename to ...
7304 (child_terminal_inferior): ... this.
7305 (terminal_init_inferior): Rename to ...
7306 (child_terminal_init_inferior): ... this.
7307 (terminal_init_inferior_with_pgrp): Rename to ...
7308 (child_terminal_init_inferior_with_pgrp): ... this.
7309 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7310 (child_terminal_init_with_pgrp): ... this.
7311 (terminal_save_ours): Rename to ...
7312 (child_terminal_save_ours): ... this.
7313 (terminal_init_inferior): Rename to ...
7314 (child_terminal_init): ... this. Adjust.
7315 (terminal_inferior): Rename to ...
7316 (child_terminal_inferior): ... this.
7317 (terminal_ours_for_output): Rename to ...
7318 (child_terminal_ours_for_output): ... this. Adjust.
7319 (terminal_ours): Rename to ...
7320 (child_terminal_ours): ... this.
7321 (terminal_ours_1): Rename to ...
7322 (child_terminal_ours_1): ... this. Adjust.
7323 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7324 * windows-nat.c (do_initial_windows_stuff): Adjust.
7325 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7326 (gnu_terminal_init): ... this. Adjust.
7327 (gnu_target): Adjust.
7328 * inf-child.c (inf_child_target): Adjust.
7329
7330 2014-03-13 Doug Evans <xdje42@gmail.com>
7331
7332 PR guile/16612
7333 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7334 new eq?-hashtab.
7335
7336 2014-03-13 Doug Evans <xdje42@gmail.com>
7337
7338 * value.c (record_latest_value): Call release_value_or_incref
7339 instead of release_value.
7340
7341 2014-03-13 Pedro Alves <palves@redhat.com>
7342
7343 * procfs.c (procfs_target): Don't override to_shortname,
7344 to_longname or to_doc.
7345
7346 2014-03-13 Pedro Alves <palves@redhat.com>
7347
7348 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7349 Unix in user visible strings.
7350
7351 2014-03-12 Stan Shebs <stan@codesourcery.com>
7352
7353 * gdbtypes.h: Annotate comments for Doxygen, add a page
7354 block comment with some general info.
7355
7356 2014-03-12 Pedro Alves <palves@redhat.com>
7357
7358 * infcmd.c (prepare_execution_command): New function, factored out
7359 from several execution commands.
7360 (run_command_1, continue_command, step_1, jump_command)
7361 (signal_command, until_command, advance_command, finish_command)
7362 (attach_command): Use prepare_execution_command.
7363
7364 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7365
7366 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7367 (MAX_BPTS): Define.
7368 (MAX_WPTS): Define.
7369 (struct arm_linux_thread_points): Removed.
7370 (struct arm_linux_process_info): New.
7371 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7372 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7373 (arm_linux_find_breakpoints_by_tid): Removed.
7374 (struct arch_lwp_info): New.
7375 (arm_linux_find_process_pid): New functions.
7376 (arm_linux_add_process): New functions.
7377 (arm_linux_process_info_get): New functions.
7378 (arm_linux_forget_process): New function.
7379 (arm_linux_get_debug_reg_state): New function.
7380 (struct update_registers_data): New.
7381 (update_registers_callback): New function.
7382 (arm_linux_insert_hw_breakpoint1): Updated.
7383 (arm_linux_remove_hw_breakpoint1): Updated.
7384 (arm_linux_insert_hw_breakpoint): Updated.
7385 (arm_linux_remove_hw_breakpoint): Updated.
7386 (arm_linux_insert_watchpoint): Updated.
7387 (arm_linux_remove_watchpoint): Updated.
7388 (arm_linux_new_thread): Updated.
7389 (arm_linux_prepare_to_resume): New function.
7390 (arm_linux_new_fork): New function.
7391 (_initialize_arm_linux_nat): Updated.
7392
7393 2014-03-12 Pedro Alves <palves@redhat.com>
7394
7395 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7396
7397 2014-03-12 Tom Tromey <tromey@redhat.com>
7398
7399 * inf-child.c (return_zero): New function.
7400 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7401 * aix-thread.c (aix_thread_inferior_created): New function.
7402 (aix_thread_attach): Remove.
7403 (init_aix_thread_ops): Don't set to_attach.
7404 (_initialize_aix_thread): Register inferior_created observer.
7405 * corelow.c (init_core_ops): Don't set to_attach or
7406 to_create_inferior.
7407 * exec.c (init_exec_ops): Don't set to_attach or
7408 to_create_inferior.
7409 * infcmd.c (run_command_1): Use find_run_target. Make direct
7410 target calls.
7411 (attach_command): Use find_attach_target. Make direct target
7412 calls.
7413 * record-btrace.c (init_record_btrace_ops): Don't set
7414 to_create_inferior.
7415 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7416 Remove.
7417 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7418 set to_create_inferior.
7419 * target.c (complete_target_initialization): Add assertion.
7420 (target_create_inferior): Remove.
7421 (find_default_attach, find_default_create_inferior): Remove.
7422 (find_attach_target, find_run_target): New functions.
7423 (find_default_is_async_p, find_default_can_async_p)
7424 (target_supports_non_stop, target_attach): Remove.
7425 (init_dummy_target): Don't set to_create_inferior or
7426 to_supports_non_stop.
7427 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7428 TARGET_DEFAULT_FUNC.
7429 <to_create_inferior>: Add comment.
7430 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7431 TARGET_DEFAULT_RETURN.
7432 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7433 (find_attach_target, find_run_target): Declare.
7434 (target_create_inferior): Remove.
7435 (target_has_execution_1): Update comment.
7436 (target_supports_non_stop): Remove.
7437 * target-delegates.c: Rebuild.
7438
7439 2014-03-12 Pedro Alves <palves@redhat.com>
7440
7441 * inf-child.h: Update comment to not mention Unix.
7442
7443 2014-03-12 Pedro Alves <palves@redhat.com>
7444
7445 * inf-child.c: Update top comment to not mention Unix. Add
7446 generic comment describing how this target is meant to be used.
7447 (inf_child_post_attach, inf_child_post_startup_inferior)
7448 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7449 Unix in comment.
7450
7451 2014-03-12 Pedro Alves <palves@redhat.com>
7452
7453 * nto-procfs.c: Include inf-child.h.
7454 (procfs_ops): Delete global.
7455 (procfs_can_run): Delete method.
7456 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7457 target pointer instead of referencing procfs_ops.
7458 (procfs_prepare_to_store): Delete.
7459 (init_procfs_ops): Delete function.
7460 (procfs_target): New function, based on init_procfs_ops, but
7461 inherit inf_child_target.
7462 (_initialize_procfs): Use procfs_target.
7463
7464 2014-03-12 Pedro Alves <palves@redhat.com>
7465
7466 * windows-nat.c: Include inf-child.h.
7467 (windows_ops): Delete global.
7468 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7469 methods.
7470 (init_windows_ops): Delete function.
7471 (windows_target): New function, based on init_windows_ops, but
7472 inherit inf_child_target.
7473 (_initialize_windows_nat): Use windows_target. Install x86
7474 specific target methods here.
7475
7476 2014-03-10 Doug Evans <xdje42@gmail.com>
7477
7478 * guile/guile.c (call_initialize_gdb_module): New function.
7479 (initialize_guile): Replace call to scm_init_guile with call to
7480 scm_with_guile.
7481
7482 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7483
7484 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7485 in call to TYPE_CODE macro.
7486
7487 2014-03-10 Jerome Guitton <guitton@adacore.com>
7488
7489 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7490 Resolve tagged types to full view.
7491
7492 2014-03-10 Hui Zhu <hui@codesourcery.com>
7493
7494 * target.h (target_insert_breakpoint): Remove "hardware" from its
7495 comments.
7496
7497 2014-03-07 Doug Evans <dje@google.com>
7498
7499 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7500
7501 2014-03-07 Doug Evans <dje@google.com>
7502
7503 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7504 Remove unused local comp_dir_attr. Assert exactly one of
7505 stub_comp_unit_die, stub_comp_dir is non-NULL.
7506
7507 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7508
7509 * target.h (complete_target_initialization, add_target):
7510 Add comment.
7511
7512 2014-03-07 Pedro Alves <palves@redhat.com>
7513
7514 * go32-nat.c: Include inf-child.h.
7515 (go32_ops): Delete global.
7516 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7517 Delete methods.
7518 (go32_create_inferior): Push the passed in target pointer instead
7519 of referencing go32_ops.
7520 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7521 (go32_target): New function, based on init_go32_ops, but inherit
7522 inf_child_target.
7523 (_initialize_go32_nat): Use go32_target. Move parts of
7524 init_go32_ops here.
7525
7526 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7527
7528 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7529 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7530 SYMBOL_VALUE_ADDRESS.
7531 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7532
7533 2014-03-06 Yao Qi <yao@codesourcery.com>
7534
7535 * breakpoint.c (get_tracepoint_by_number): Remove argument
7536 optional_p. All callers updated. Adjust comments. Update
7537 output message.
7538 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7539
7540 2014-03-06 Yao Qi <yao@codesourcery.com>
7541
7542 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7543 early if get_number returns zero. Use 'p' instead of 'args'.
7544
7545 2014-03-06 Yao Qi <yao@codesourcery.com>
7546
7547 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7548 message.
7549
7550 2014-03-06 Yao Qi <yao@codesourcery.com>
7551
7552 PR breakpoints/16508
7553 * tracepoint.c (check_trace_running): New function.
7554 (trace_find_command): Move code to check_trace_running and
7555 call check_trace_running.
7556 (trace_find_pc_command): Likewise.
7557 (trace_find_tracepoint_command): Likewise.
7558 (trace_find_line_command): Likewise.
7559 (trace_find_range_command): Likewise.
7560 * tracepoint.h (check_trace_running): Likewise.
7561 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7562
7563 2014-03-06 Yao Qi <yao@codesourcery.com>
7564
7565 * target.h (struct target_ops) <to_traceframe_info>: Use
7566 TARGET_DEFAULT_NORETURN (tcomplain ()).
7567 * target-delegates.c: Regenerated.
7568
7569 2014-03-05 Pedro Alves <palves@redhat.com>
7570
7571 PR gdb/16575
7572 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7573 void. Update comment.
7574 (dcache_xfer_memory): Delete.
7575 (dcache_read_memory_partial): New, based on the read bits of
7576 dcache_xfer_memory.
7577 (dcache_update): Add status parameter. Use ULONGEST for len, and
7578 adjust. Discard cache lines if the reason for the update was
7579 error.
7580 * dcache.h (dcache_xfer_memory): Delete declaration.
7581 (dcache_read_memory_partial): New declaration.
7582 (dcache_update): Update prototype.
7583 * target.c (raw_memory_xfer_partial): Update the dcache here.
7584 (memory_xfer_partial_1): Don't handle dcache writes here.
7585
7586 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7587
7588 * remote-sim.c (gdbsim_load): Add const to prog.
7589
7590 2014-03-03 Tom Tromey <tromey@redhat.com>
7591
7592 * elfread.c (probe_key): Change to bfd_data.
7593 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7594 now per-BFD, not per-objfile.
7595 * stap-probe.c (stap_probe_destroy): Update comment.
7596 (handle_stap_probe): Allocate on the per-BFD obstack.
7597
7598 2014-03-03 Tom Tromey <tromey@redhat.com>
7599
7600 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7601 * breakpoint.c (create_longjmp_master_breakpoint): Use
7602 get_probe_address.
7603 (add_location_to_breakpoint, bkpt_probe_insert_location)
7604 (bkpt_probe_remove_location): Update.
7605 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7606 * elfread.c (elf_symfile_relocate_probe): Remove.
7607 (elf_probe_fns): Update.
7608 (insert_exception_resume_breakpoint): Change type of "probe"
7609 parameter to bound_probe.
7610 (check_exception_resume): Update.
7611 * objfiles.c (objfile_relocate1): Don't relocate probes.
7612 * probe.c (bound_probe_s): New typedef.
7613 (parse_probes): Use get_probe_address. Set sal's objfile.
7614 (find_probe_by_pc): Return a bound_probe.
7615 (collect_probes): Return a VEC(bound_probe_s).
7616 (compare_probes): Update.
7617 (gen_ui_out_table_header_info): Change type of "probes"
7618 parameter. Update.
7619 (info_probes_for_ops): Update.
7620 (get_probe_address): New function.
7621 (probe_safe_evaluate_at_pc): Update.
7622 * probe.h (struct probe_ops) <get_probe_address>: New field.
7623 <set_semaphore, clear_semaphore>: Add objfile parameter.
7624 (struct probe) <objfile>: Remove field.
7625 <arch>: New field.
7626 <address>: Update comment.
7627 (struct bound_probe): New.
7628 (find_probe_by_pc): Return a bound_probe.
7629 (get_probe_address): Declare.
7630 * solib-svr4.c (struct probe_and_action) <address>: New field.
7631 (hash_probe_and_action, equal_probe_and_action): Update.
7632 (register_solib_event_probe): Add address parameter.
7633 (solib_event_probe_at): Update.
7634 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7635 get_probe_address.
7636 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7637 (stap_get_probe_address): New function.
7638 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7639 (compile_probe_arg): Update.
7640 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7641 address.
7642 (handle_stap_probe): Don't relocate the probe.
7643 (stap_relocate): Remove.
7644 (stap_gen_info_probes_table_values): Update.
7645 (stap_probe_ops): Remove stap_relocate.
7646 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7647 (debug_sym_probe_fns): Update.
7648 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7649 * symtab.c (init_sal): Use memset.
7650 * symtab.h (struct symtab_and_line) <objfile>: New field.
7651 * tracepoint.c (start_tracing, stop_tracing): Update.
7652
7653 2014-03-03 Tom Tromey <tromey@redhat.com>
7654
7655 * probe.h (parse_probes, find_probe_by_pc)
7656 (find_probes_in_objfile): Fix comments.
7657
7658 2014-03-02 Doug Evans <xdje42@gmail.com>
7659
7660 * infrun.c (handle_signal_stop): Replace test for
7661 TARGET_WAITKIND_STOPPED with an assert.
7662
7663 2014-03-02 Doug Evans <xdje42@gmail.com>
7664
7665 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7666
7667 2014-03-02 Doug Evans <xdje42@gmail.com>
7668
7669 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7670
7671 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7672
7673 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7674
7675 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7676
7677 * i386obsd-nat.c: Include "obsd-nat.h".
7678 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7679 add_target.
7680 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7681
7682 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7683
7684 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7685
7686 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7687
7688 * mips64obsd-nat.c: Include "obsd-nath".
7689 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7690 add_target
7691 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7692
7693 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7694
7695 * amd64obsd-nat.c: Include "obsd-nat,h.
7696 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7697 add_target.
7698 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7699
7700 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7701
7702 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7703 (find_overload_match): Update call to find_oload_champ.
7704 (find_oload_champ_namespace_loop): Likewise
7705
7706 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7707
7708 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7709
7710 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7711 * config/sparc/obsd64.mh: New file.
7712 * sparc64obsd-nat.c: New file.
7713
7714 * obsd-nat.h: New file.
7715 * obsd-nat.c: New file.
7716 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7717 (ALLDEPFILES): Add obsd-nat.c.
7718
7719 2014-02-28 Tom Tromey <tromey@redhat.com>
7720
7721 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7722 * cli-out.h (cli_ui_out_impl): Now const.
7723 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7724 * ui-out.c (struct ui_out) <impl>: Now const.
7725 (default_ui_out_impl): Now const.
7726 (ui_out_new): Make 'impl' parameter const.
7727 * ui-out.h (ui_out_new): Update.
7728
7729 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7730
7731 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7732
7733 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7734
7735 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7736
7737 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7738
7739 Additional PR 8882 fix.
7740 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7741
7742 2014-02-27 Pedro Alves <palves@redhat.com>
7743
7744 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7745 isn't set.
7746
7747 2014-02-27 Pedro Alves <palves@redhat.com>
7748
7749 PR 12702
7750 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7751 * nat/linux-waitpid.c: Include string.h.
7752 (status_to_str): Moved here and made extern.
7753 * nat/linux-waitpid.h (status_to_str): New declaration.
7754
7755 2014-02-27 Hui Zhu <hui@codesourcery.com>
7756
7757 PR 12702
7758 * infrun.c (ptid_match): Move ...
7759 * common/ptid.c (ptid_match): ... here.
7760 * inferior.h (ptid_match): Move ...
7761 * common/ptid.h (ptid_match): ... here.
7762
7763 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7764
7765 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7766 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7767 gdb_target_obs.
7768
7769 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7770
7771 * obsd-tdep.c (obsd_auxv_parse): New function.
7772 (obsd_init_abi): Set auxv_parse.
7773
7774 * gdbarch.sh (auxv_parse): New.
7775 * gdbarch.h: Regenerated.
7776 * gdbarch.c: Regenerated.
7777 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7778
7779 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7780
7781 * guile/scm-value.c (gdbscm_history_append_x): New function.
7782 (value_functions): Add it.
7783
7784 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7785
7786 * dwarf2read.c (attr_value_as_address): New function.
7787 (dwarf2_find_base_address, read_call_site_scope): Use
7788 attr_value_as_address in place of DW_ADDR.
7789 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7790 the low and high addresses. Slight rework of the handling
7791 of the high pc being a constant form, and limit it to
7792 DWARF verson 4 or higher.
7793 (dwarf2_record_block_ranges): Likewise.
7794 (read_partial_die): Likewise.
7795 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7796
7797 2014-02-26 Tom Tromey <tromey@redhat.com>
7798
7799 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7800
7801 2014-02-26 Tom Tromey <tromey@redhat.com>
7802
7803 * elfread.c (elf_read_minimal_symbols): Return early if
7804 minimal symbols have already been read. Add "ei" parameter.
7805 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7806 * minsyms.c (prim_record_minimal_symbol_full): Update.
7807 * objfiles.h (struct objstats) <n_minsyms>: Move...
7808 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7809 * symmisc.c (print_objfile_statistics): Update.
7810
7811 2014-02-26 Tom Tromey <tromey@redhat.com>
7812
7813 * elfread.c (elf_read_minimal_symbols): New function, from
7814 elf_symfile_read.
7815 (elf_symfile_read): Call it.
7816
7817 2014-02-26 Tom Tromey <tromey@redhat.com>
7818
7819 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7820 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7821 (lookup_minimal_symbol_solib_trampoline)
7822 (lookup_minimal_symbol_by_pc_section_1)
7823 (lookup_minimal_symbol_and_objfile): Update.
7824 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7825 Don't allocate a minimal symbol if minsyms have already been read.
7826 (build_minimal_symbol_hash_tables): Update.
7827 (install_minimal_symbols): Do nothing if minsyms already read.
7828 Use the per-BFD obstack.
7829 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7830 * objfiles.c (allocate_objfile): Call
7831 terminate_minimal_symbol_table later.
7832 (have_minimal_symbols): Update.
7833 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7834 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7835 Move from struct objfile.
7836 <minsyms_read>: New field.
7837 (struct objfile) <msymbols, minimal_symbol_count,
7838 msymbol_hash, msymbol_demangled_hash>: Move.
7839 (ALL_OBJFILE_MSYMBOLS): Update.
7840 * symfile.c (read_symbols): Set minsyms_read.
7841 (reread_symbols): Update.
7842 * symmisc.c (dump_objfile, dump_msymbols): Update.
7843
7844 2014-02-26 Tom Tromey <tromey@redhat.com>
7845
7846 * minsyms.c (msymbols_sort): Remove.
7847 * minsyms.h (msymbols_sort): Remove.
7848 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7849 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7850 * elfread.c (elf_symtab_read): Don't add section offsets.
7851 * xcoffread.c (record_minimal_symbol): Don't add section offset
7852 to minimal symbol address.
7853 * somread.c (text_offset, data_offset): Remove.
7854 (som_symtab_read): Don't add section offsets to minimal symbol
7855 addresses.
7856 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7857 Don't add section offsets to minimal symbols.
7858 * coffread.c (coff_symtab_read): Don't add section offsets
7859 to minimal symbol addresses.
7860 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7861 to minimal symbol addresses.
7862 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7863 section offset to minimal symbol addresses.
7864 * mdebugread.c (parse_partial_symbols): Don't add section
7865 offset to minimal symbol addresses.
7866 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7867 offset to minimal symbol addresses.
7868
7869 2014-02-26 Tom Tromey <tromey@redhat.com>
7870
7871 * ada-lang.c (ada_main_name): Update.
7872 (ada_add_standard_exceptions): Update.
7873 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7874 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7875 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7876 * auxv.c (ld_so_xfer_auxv): Update.
7877 * avr-tdep.c (avr_scan_prologue): Update.
7878 * ax-gdb.c (gen_var_ref): Update.
7879 * blockframe.c (get_pc_function_start)
7880 (find_pc_partial_function_gnu_ifunc): Update.
7881 * breakpoint.c (create_overlay_event_breakpoint)
7882 (create_longjmp_master_breakpoint)
7883 (create_std_terminate_master_breakpoint)
7884 (create_exception_master_breakpoint): Update.
7885 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7886 * c-valprint.c (c_val_print): Update.
7887 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7888 * common/agent.c (agent_look_up_symbols): Update.
7889 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7890 * dwarf2loc.c (call_site_to_target_addr): Update.
7891 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7892 * elfread.c (elf_gnu_ifunc_record_cache)
7893 (elf_gnu_ifunc_resolve_by_got): Update.
7894 * findvar.c (default_read_var_value): Update.
7895 * frame.c (inside_main_func): Update.
7896 * frv-tdep.c (frv_frame_this_id): Update.
7897 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7898 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7899 Update.
7900 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7901 (hppa_hpux_find_dummy_bpaddr): Update.
7902 * hppa-tdep.c (hppa_symbol_address): Update.
7903 * infcmd.c (until_next_command): Update.
7904 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7905 Update.
7906 * linespec.c (minsym_found, add_minsym): Update.
7907 * linux-nat.c (get_signo): Update.
7908 * linux-thread-db.c (inferior_has_bug): Update.
7909 * m32c-tdep.c (m32c_return_value)
7910 (m32c_m16c_address_to_pointer): Update.
7911 * m32r-tdep.c (m32r_frame_this_id): Update.
7912 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7913 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7914 * maint.c (maintenance_translate_address): Update.
7915 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7916 (frob_address): New function.
7917 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7918 frob_address. Rename parameter to "pc_in".
7919 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7920 addresses.
7921 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7922 Update.
7923 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7924 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7925 * objc-lang.c (find_objc_msgsend): Update.
7926 * objfiles.c (objfile_relocate1): Update.
7927 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7928 * p-valprint.c (pascal_val_print): Update.
7929 * parse.c (write_exp_msymbol): Update.
7930 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7931 (ppc_elfv2_skip_entrypoint): Update.
7932 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7933 * printcmd.c (build_address_symbolic, msym_info)
7934 (address_info): Update.
7935 * proc-service.c (ps_pglobal_lookup): Update.
7936 * psymtab.c (find_pc_sect_psymtab_closer)
7937 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7938 Change msymbol parameter to bound_minimal_symbol.
7939 * ravenscar-thread.c (get_running_thread_id): Update.
7940 * remote.c (remote_check_symbols): Update.
7941 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7942 address.
7943 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7944 * solib-dsbt.c (lm_base): Update.
7945 * solib-frv.c (lm_base, main_got): Update.
7946 * solib-irix.c (locate_base): Update.
7947 * solib-som.c (som_solib_create_inferior_hook)
7948 (link_map_start): Update.
7949 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7950 * solib-svr4.c (elf_locate_base, enable_break): Update.
7951 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7952 (flush_ea_cache): Update.
7953 * stabsread.c (define_symbol, scan_file_globals): Update.
7954 * stack.c (find_frame_funname): Update.
7955 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7956 (debug_qf_find_pc_sect_symtab): Update.
7957 * symfile.c (simple_read_overlay_table)
7958 (simple_overlay_update): Update.
7959 * symfile.h (struct quick_symbol_functions)
7960 <find_pc_sect_symtab>: Change type of msymbol to
7961 bound_minimal_symbol.
7962 * symmisc.c (dump_msymbols): Update.
7963 * symtab.c (find_pc_sect_symtab_via_partial)
7964 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7965 (search_symbols, print_msymbol_info): Update.
7966 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7967 (MSYMBOL_VALUE_ADDRESS): Redefine.
7968 (BMSYMBOL_VALUE_ADDRESS): New macro.
7969 * tracepoint.c (scope_info): Update.
7970 * tui/tui-disasm.c (tui_find_disassembly_address)
7971 (tui_get_begin_asm_address): Update.
7972 * valops.c (find_function_in_inferior): Update.
7973 * value.c (value_static_field, value_fn_field): Update.
7974
7975 2014-02-26 Tom Tromey <tromey@redhat.com>
7976
7977 * ada-lang.c (ada_update_initial_language): Update.
7978 (ada_main_name, ada_has_this_exception_support): Update.
7979 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7980 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7981 * arm-tdep.c (arm_skip_stub): Update.
7982 * auxv.c (ld_so_xfer_auxv): Update.
7983 * avr-tdep.c (avr_scan_prologue): Update.
7984 * ax-gdb.c (gen_var_ref): Update.
7985 * breakpoint.c (struct breakpoint_objfile_data)
7986 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7987 type to bound_minimal_symbol.
7988 (create_overlay_event_breakpoint)
7989 (create_longjmp_master_breakpoint)
7990 (create_std_terminate_master_breakpoint)
7991 (create_exception_master_breakpoint): Update.
7992 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7993 * c-exp.y (classify_name): Update.
7994 * coffread.c (coff_symfile_read): Update.
7995 * common/agent.c (agent_look_up_symbols): Update.
7996 * d-lang.c (d_main_name): Update.
7997 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7998 * dec-thread.c (enable_dec_thread): Update.
7999 * dwarf2loc.c (call_site_to_target_addr): Update.
8000 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8001 * eval.c (evaluate_subexp_standard): Update.
8002 * findvar.c (struct minsym_lookup_data) <result>: Change type
8003 to bound_minimal_symbol.
8004 <objfile>: Remove.
8005 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8006 * frame.c (inside_main_func): Update.
8007 * frv-tdep.c (frv_frame_this_id): Update.
8008 * gcore.c (call_target_sbrk): Update.
8009 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8010 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8011 Update.
8012 * go-lang.c (go_main_name): Update.
8013 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8014 (hppa_hpux_find_import_stub_for_addr): Update.
8015 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8016 Update. Change return type.
8017 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8018 type.
8019 * jit.c (jit_breakpoint_re_set_internal): Update.
8020 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8021 Update.
8022 * linux-nat.c (get_signo): Update.
8023 * linux-thread-db.c (inferior_has_bug): Update
8024 * m32c-tdep.c (m32c_return_value)
8025 (m32c_m16c_address_to_pointer): Update.
8026 * m32r-tdep.c (m32r_frame_this_id): Update.
8027 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8028 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8029 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8030 lookup_minimal_symbol. Change return type.
8031 (lookup_minimal_symbol): Remove.
8032 (lookup_bound_minimal_symbol): Update.
8033 (lookup_minimal_symbol_text): Change return type.
8034 (lookup_minimal_symbol_solib_trampoline): Change return type.
8035 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8036 (lookup_minimal_symbol_solib_trampoline): Change return type.
8037 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8038 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8039 (value_nsstring, find_imps): Update.
8040 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8041 * p-lang.c (pascal_main_name): Update.
8042 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8043 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8044 * proc-service.c (ps_pglobal_lookup): Update.
8045 * ravenscar-thread.c (get_running_thread_msymbol): Change
8046 return type.
8047 (has_ravenscar_runtime, get_running_thread_id): Update.
8048 * remote.c (remote_check_symbols): Update.
8049 * sol-thread.c (ps_pglobal_lookup): Update.
8050 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8051 * solib-dsbt.c (lm_base): Update.
8052 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8053 Update.
8054 * solib-irix.c (locate_base): Update.
8055 * solib-som.c (som_solib_create_inferior_hook)
8056 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8057 Update.
8058 * solib-spu.c (spu_enable_break): Update.
8059 * solib-svr4.c (elf_locate_base, enable_break): Update.
8060 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8061 (flush_ea_cache): Update.
8062 * stabsread.c (define_symbol): Update.
8063 * symfile.c (simple_read_overlay_table): Update.
8064 * symtab.c (find_pc_sect_line): Update.
8065 * tracepoint.c (scope_info): Update.
8066 * tui-disasm.c (tui_get_begin_asm_address): Update.
8067 * value.c (value_static_field): Update.
8068
8069 2014-02-26 Tom Tromey <tromey@redhat.com>
8070
8071 * minsyms.c (prim_record_minimal_symbol_full): Use
8072 SET_MSYMBOL_VALUE_ADDRESS.
8073 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8074 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8075 SET_MSYMBOL_VALUE_ADDRESS.
8076 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8077 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8078
8079 2014-02-26 Tom Tromey <tromey@redhat.com>
8080
8081 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8082 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8083 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8084 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8085 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8086 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8087 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8088 * ada-lang.c (ada_main_name): Update.
8089 (ada_lookup_simple_minsym): Update.
8090 (ada_make_symbol_completion_list): Update.
8091 (ada_add_standard_exceptions): Update.
8092 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8093 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8094 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8095 * arm-tdep.c (skip_prologue_function): Update.
8096 (arm_skip_stack_protector, arm_skip_stub): Update.
8097 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8098 (arm_wince_skip_main_prologue): Update.
8099 * auxv.c (ld_so_xfer_auxv): Update.
8100 * avr-tdep.c (avr_scan_prologue): Update.
8101 * ax-gdb.c (gen_var_ref): Update.
8102 * block.c (call_site_for_pc): Update.
8103 * blockframe.c (get_pc_function_start): Update.
8104 (find_pc_partial_function_gnu_ifunc): Update.
8105 * breakpoint.c (create_overlay_event_breakpoint): Update.
8106 (create_longjmp_master_breakpoint): Update.
8107 (create_std_terminate_master_breakpoint): Update.
8108 (create_exception_master_breakpoint): Update.
8109 (resolve_sal_pc): Update.
8110 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8111 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8112 Update.
8113 * c-valprint.c (c_val_print): Update.
8114 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8115 * coffread.c (coff_symfile_read): Update.
8116 * common/agent.c (agent_look_up_symbols): Update.
8117 * dbxread.c (find_stab_function_addr): Update.
8118 (end_psymtab): Update.
8119 * dwarf2loc.c (call_site_to_target_addr): Update.
8120 (func_verify_no_selftailcall): Update.
8121 (tailcall_dump): Update.
8122 (call_site_find_chain_1): Update.
8123 (dwarf_expr_reg_to_entry_parameter): Update.
8124 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8125 (elf_gnu_ifunc_resolve_by_got): Update.
8126 * f-valprint.c (info_common_command): Update.
8127 * findvar.c (read_var_value): Update.
8128 * frame.c (get_prev_frame_1): Update.
8129 (inside_main_func): Update.
8130 * frv-tdep.c (frv_skip_main_prologue): Update.
8131 (frv_frame_this_id): Update.
8132 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8133 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8134 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8135 (gnuv3_skip_trampoline): Update.
8136 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8137 (hppa64_hpux_in_solib_call_trampoline): Update.
8138 (hppa_hpux_skip_trampoline_code): Update.
8139 (hppa64_hpux_search_dummy_call_sequence): Update.
8140 (hppa_hpux_find_import_stub_for_addr): Update.
8141 (hppa_hpux_find_dummy_bpaddr): Update.
8142 * hppa-tdep.c (hppa_symbol_address)
8143 (hppa_lookup_stub_minimal_symbol): Update.
8144 * i386-tdep.c (i386_skip_main_prologue): Update.
8145 (i386_pe_skip_trampoline_code): Update.
8146 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8147 * infcall.c (get_function_name): Update.
8148 * infcmd.c (until_next_command): Update.
8149 * jit.c (jit_breakpoint_re_set_internal): Update.
8150 (jit_inferior_init): Update.
8151 * linespec.c (minsym_found): Update.
8152 (add_minsym): Update.
8153 * linux-fork.c (info_checkpoints_command): Update.
8154 * linux-nat.c (get_signo): Update.
8155 * linux-thread-db.c (inferior_has_bug): Update.
8156 * m32c-tdep.c (m32c_return_value): Update.
8157 (m32c_m16c_address_to_pointer): Update.
8158 (m32c_m16c_pointer_to_address): Update.
8159 * m32r-tdep.c (m32r_frame_this_id): Update.
8160 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8161 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8162 * maint.c (maintenance_translate_address): Update.
8163 * minsyms.c (add_minsym_to_hash_table): Update.
8164 (add_minsym_to_demangled_hash_table): Update.
8165 (msymbol_objfile): Update.
8166 (lookup_minimal_symbol): Update.
8167 (iterate_over_minimal_symbols): Update.
8168 (lookup_minimal_symbol_text): Update.
8169 (lookup_minimal_symbol_by_pc_name): Update.
8170 (lookup_minimal_symbol_solib_trampoline): Update.
8171 (lookup_minimal_symbol_by_pc_section_1): Update.
8172 (lookup_minimal_symbol_and_objfile): Update.
8173 (prim_record_minimal_symbol_full): Update.
8174 (compare_minimal_symbols): Update.
8175 (compact_minimal_symbols): Update.
8176 (build_minimal_symbol_hash_tables): Update.
8177 (install_minimal_symbols): Update.
8178 (terminate_minimal_symbol_table): Update.
8179 (find_solib_trampoline_target): Update.
8180 (minimal_symbol_upper_bound): Update.
8181 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8182 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8183 (mips_skip_pic_trampoline_code): Update.
8184 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8185 * objc-lang.c (selectors_info): Update.
8186 (classes_info): Update.
8187 (find_methods): Update.
8188 (find_imps): Update.
8189 (find_objc_msgsend): Update.
8190 * objfiles.c (objfile_relocate1): Update.
8191 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8192 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8193 * p-valprint.c (pascal_val_print): Update.
8194 * parse.c (write_exp_msymbol): Update.
8195 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8196 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8197 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8198 * printcmd.c (build_address_symbolic): Update.
8199 (sym_info): Update.
8200 (address_info): Update.
8201 * proc-service.c (ps_pglobal_lookup): Update.
8202 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8203 (find_pc_sect_psymtab): Update.
8204 * python/py-framefilter.c (py_print_frame): Update.
8205 * ravenscar-thread.c (get_running_thread_id): Update.
8206 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8207 Update.
8208 * remote.c (remote_check_symbols): Update.
8209 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8210 (rs6000_skip_trampoline_code): Update.
8211 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8212 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8213 * solib-dsbt.c (lm_base): Update.
8214 * solib-frv.c (lm_base): Update.
8215 (main_got): Update.
8216 * solib-irix.c (locate_base): Update.
8217 * solib-som.c (som_solib_create_inferior_hook): Update.
8218 (som_solib_desire_dynamic_linker_symbols): Update.
8219 (link_map_start): Update.
8220 * solib-spu.c (spu_enable_break): Update.
8221 (ocl_enable_break): Update.
8222 * solib-svr4.c (elf_locate_base): Update.
8223 (enable_break): Update.
8224 * spu-tdep.c (spu_get_overlay_table): Update.
8225 (spu_catch_start): Update.
8226 (flush_ea_cache): Update.
8227 * stabsread.c (define_symbol): Update.
8228 (scan_file_globals): Update.
8229 * stack.c (find_frame_funname): Update.
8230 (frame_info): Update.
8231 * symfile.c (simple_read_overlay_table): Update.
8232 (simple_overlay_update): Update.
8233 * symmisc.c (dump_msymbols): Update.
8234 * symtab.c (fixup_section): Update.
8235 (find_pc_sect_line): Update.
8236 (skip_prologue_sal): Update.
8237 (search_symbols): Update.
8238 (print_msymbol_info): Update.
8239 (rbreak_command): Update.
8240 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8241 (completion_list_objc_symbol): Update.
8242 (default_make_symbol_completion_list_break_on): Update.
8243 * tracepoint.c (scope_info): Update.
8244 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8245 (tui_get_begin_asm_address): Update.
8246 * valops.c (find_function_in_inferior): Update.
8247 * value.c (value_static_field): Update.
8248 (value_fn_field): Update.
8249
8250 2014-02-26 Tom Tromey <tromey@redhat.com>
8251
8252 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8253 bound minimal symbols. Move code that knows about minsym
8254 table layout...
8255 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8256 function.
8257 * minsyms.h (minimal_symbol_upper_bound): Declare.
8258 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8259 minimal_symbol_upper_bound.
8260
8261 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8262
8263 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8264 Use the type's name if its basic type does not have a tag.
8265
8266 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8267
8268 * dwarf2read.c (read_subrange_type): Add comment.
8269
8270 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8271
8272 * dwarf2read.c (update_enumeration_type_from_children): New
8273 function, mostly extracted from process_structure_scope.
8274 (read_enumeration_type): Call update_enumeration_type_from_children.
8275 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8276 and flag_flag_enum fields.
8277
8278 2014-02-26 Pedro Alves <palves@redhat.com>
8279
8280 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8281 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8282 to_xfer_partial method.
8283
8284 2014-02-26 Pedro Alves <palves@redhat.com>
8285
8286 * target.c (complete_target_initialization): Don't install
8287 default_xfer_partial as to_xfer_partial hook.
8288 (nomemory): Delete.
8289 (update_current_target): Don't INHERIT nor de_fault
8290 deprecated_xfer_memory. Delete de_fault macro.
8291 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8292 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8293 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8294 field.
8295
8296 2014-02-26 Pedro Alves <palves@redhat.com>
8297
8298 * go32-nat.c (my_write_child): New function.
8299 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8300 (go32_xfer_partial): New function.
8301 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8302 Instead install a to_xfer_partial hook.
8303
8304 2014-02-26 Pedro Alves <palves@redhat.com>
8305
8306 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8307 to_xfer_partial helper. Rewrite.
8308 (procfs_xfer_partial): New function.
8309 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8310 Install a to_xfer_partial hook.
8311
8312 2014-02-26 Pedro Alves <palves@redhat.com>
8313
8314 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8315 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8316 (m32r_xfer_partial): New function.
8317 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8318 Install a to_xfer_partial hook.
8319
8320 2014-02-26 Pedro Alves <palves@redhat.com>
8321
8322 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8323 helper.
8324 (mips_xfer_partial): New function.
8325 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8326 hook. Install a to_xfer_partial hook.
8327
8328 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8329
8330 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8331 * gdbtypes.c (create_array_type_with_stride): New function,
8332 renaming create_array_type, but with an added parameter
8333 called "bit_stride".
8334 (create_array_type): Re-implement using
8335 create_array_type_with_stride.
8336 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8337 and DW_AT_bit_stride attributes.
8338
8339 2014-02-26 Pedro Alves <palves@redhat.com>
8340
8341 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8342 task-specific breakpoints.
8343
8344 2014-02-25 Pedro Alves <palves@redhat.com>
8345
8346 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8347 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8348
8349 2014-02-25 Stan Shebs <stan@codesourcery.com>
8350
8351 * defs.h: Annotate comments for Doxygen.
8352
8353 2014-02-25 Tom Tromey <tromey@redhat.com>
8354
8355 * target.h (target_ignore): Don't declare.
8356 * target.c (target_ignore): Remove.
8357
8358 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8359
8360 PR gdb/16626
8361 * auto-load.c (auto_load_objfile_script_1): Change filename to
8362 debugfile.
8363
8364 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8365
8366 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8367 documentation. Adjust prototype to match the target_ops
8368 to_xfer_partial method. Adjust implementation accordingly.
8369
8370 2014-02-25 Hui Zhu <hui@codesourcery.com>
8371
8372 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8373 to_traceframe_info.
8374
8375 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8376
8377 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8378 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8379 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8380 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8381 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8382 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8383 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8384 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8385 New constants.
8386 (rl78_register_type): Use a data pointer type for SP and
8387 new pseudo registers mentioned above. Use a 16 bit integer
8388 type for all other register pairs.
8389 (rl78_register_name, rl78_g10_register_name): Update for
8390 new pseudo registers.
8391 (rl78_pseudo_register_read): Likewise.
8392 (rl78_pseudo_register_write): Likewise.
8393 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8394 to the newly added pseudo registers.
8395
8396 2014-02-24 Doug Evans <dje@google.com>
8397
8398 * value.c (record_latest_value): Fix comment.
8399 * printcmd.c (print_command_1): Remove code to handle -1 return from
8400 record_latest_value.
8401
8402 2014-02-24 Pedro Alves <palves@redhat.com>
8403
8404 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8405 deprecated_xfer_memory hook.
8406 (procfs_xfer_partial): Call procfs_xfer_memory instead
8407 of the deprecated_xfer_memory target hook.
8408 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8409 helper.
8410
8411 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8412
8413 * windows-nat.c (windows_xfer_shared_libraries): Return
8414 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8415 requested object is TARGET_OBJECT_LIBRARIES.
8416
8417 2014-02-24 Yao Qi <yao@codesourcery.com>
8418
8419 * target.h (enum target_xfer_status)
8420 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8421 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8422 explicitly. New.
8423 * corefile.c (memory_error_message): User updated.
8424 * exec.c (section_table_read_available_memory): Likewise.
8425 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8426 * target.c (target_xfer_status_to_string): Likewise.
8427 (raw_memory_xfer_partial): Likewise.
8428 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8429 * valops.c (read_value_memory): Likewise.
8430 * exec.h: Update comments.
8431
8432 2014-02-24 Yao Qi <yao@codesourcery.com>
8433
8434 * target.c (target_xfer_status_to_string): Rename argument err
8435 to status.
8436 * target.h (target_xfer_status_to_string): Update declaration.
8437 Replace target_xfer_error_to_string with
8438 target_xfer_status_to_string in comment.
8439
8440 2014-02-24 Yao Qi <yao@codesourcery.com>
8441
8442 * mips-linux-nat.c (super_close): Update its type.
8443 (mips_linux_close): Pass 'self' to super_close.
8444
8445 2014-02-24 Yao Qi <yao@codesourcery.com>
8446
8447 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8448 * corefile.c (read_memory): Adjusted.
8449 * target.c (target_write_with_progress): Adjusted.
8450
8451 2014-02-23 Yao Qi <yao@codesourcery.com>
8452
8453 Revert two patches:
8454
8455 2013-10-25 Yao Qi <yao@codesourcery.com>
8456
8457 * remote.c (remote_traceframe_info): Return early if
8458 traceframe is not selected.
8459
8460 2013-07-19 Yao Qi <yao@codesourcery.com>
8461
8462 * target.c (update_current_target): Change the default action
8463 of 'to_traceframe_info' from tcomplain to return_zero.
8464 * target.h (struct target_ops) <to_traceframe_info>: Add more
8465 comments.
8466
8467 2014-02-23 Yao Qi <yao@codesourcery.com>
8468
8469 * valops.c (read_value_memory): Rewrite it. Call
8470 target_xfer_partial in a loop.
8471 * exec.h (section_table_available_memory): Remove declaration.
8472 Move comments to ...
8473 * exec.c (section_table_available_memory): ... here. Make it
8474 static.
8475
8476 2014-02-23 Yao Qi <yao@codesourcery.com>
8477
8478 * exec.c (section_table_read_available_memory): New function.
8479 * exec.h (section_table_read_available_memory): Declare.
8480 * ctf.c (ctf_xfer_partial): Call
8481 section_table_read_available_memory.
8482 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8483
8484 2014-02-23 Yao Qi <yao@codesourcery.com>
8485
8486 * ctf.c (ctf_xfer_partial): Move code to ...
8487 * exec.c (exec_read_partial_read_only): ... it. New function.
8488 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8489 * tracefile.c: Include "exec.h".
8490 * exec.h (exec_read_partial_read_only): Declare.
8491
8492 2014-02-23 Yao Qi <yao@codesourcery.com>
8493
8494 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8495 (tfile_has_memory): Remove.
8496 (init_tfile_ops): Don't set fields to_has_all_memory and
8497 to_has_memory of tfile_ops.
8498 * tracefile.c (tracefile_has_all_memory): New function.
8499 (tracefile_has_memory): New function.
8500 (init_tracefile_ops): Initialize fields to_has_all_memory and
8501 to_has_memory of 'ops'.
8502
8503 2014-02-23 Yao Qi <yao@codesourcery.com>
8504
8505 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8506 (ctf_thread_alive, ctf_get_trace_status): Remove.
8507 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8508 init_tracefile_ops.
8509 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8510 (tfile_has_stack, tfile_has_registers): Remove.
8511 (tfile_thread_alive): Remove.
8512 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8513 init_tracefile_ops.
8514 * tracefile.c (tracefile_has_stack): New function.
8515 (tracefile_has_registers): New function.
8516 (tracefile_thread_alive): New function.
8517 (tracefile_get_trace_status): New function.
8518 (init_tracefile_ops): New function.
8519 * tracefile.h (init_tracefile_ops): Declare.
8520
8521 2014-02-23 Yao Qi <yao@codesourcery.com>
8522
8523 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8524 (O_LARGEFILE): Likewise.
8525 (tfile_ops): Likewise.
8526 (TRACE_HEADER_SIZE): Likewise.
8527 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8528 (cur_data_size): Likewise.
8529 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8530 (tfile_close, tfile_files_info): Likewise.
8531 (tfile_get_trace_status): Likewise.
8532 (tfile_get_tracepoint_status): Likewise.
8533 (tfile_get_traceframe_address): Likewise.
8534 (tfile_trace_find, match_blocktype): Likewise.
8535 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8536 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8537 (tfile_get_trace_state_variable_value): Likewise.
8538 (tfile_has_all_memory, tfile_has_memory): Likewise.
8539 (tfile_has_stack, tfile_has_registers): Likewise.
8540 (tfile_thread_alive, build_traceframe_info): Likewise.
8541 (tfile_traceframe_info, init_tfile_ops): Likewise.
8542 (_initialize_tracepoint): Don't call init_tfile_ops
8543 and add_target_with_completer.
8544 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8545 exec.h, completer.h and filenames.h.
8546 (_initialize_tracefile_tfile): New function.
8547
8548 2014-02-23 Yao Qi <yao@codesourcery.com>
8549
8550 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8551 tracefile-tfile.o.
8552 (HFILES_NO_SRCDIR): Add tracefile.h.
8553 * ctf.c: Include "tracefile.h".
8554 * tracefile.h: New file.
8555 * tracefile.c: New file
8556 * tracefile-tfile.c: New file.
8557 * tracepoint.c: Include "tracefile.h".
8558 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8559 (stop_reason_names): Add const.
8560 (trace_file_writer_xfree): Move it to tracefile.c.
8561 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8562 (trace_save_ctf): Likewise.
8563 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8564 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8565 (tfile_write_header, tfile_write_regblock_type): Likewise.
8566 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8567 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8568 (tfile_write_raw_data, tfile_end): Likewise.
8569 (tfile_trace_file_writer_new): Likewise.
8570 (free_uploaded_tp): Make it extern.
8571 (free_uploaded_tsv): Make it extern.
8572 (_initialize_tracepoint): Move code to register command 'tsave'
8573 to tracefile.c.
8574 * tracepoint.h (stop_reason_names): Declare.
8575 (struct trace_frame_write_ops): Move it to tracefile.h.
8576 (struct trace_file_write_ops): Likewise.
8577 (struct trace_file_writer): Likewise.
8578 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8579
8580 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8581
8582 PR gdb/16594
8583 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8584 process name.
8585 (get_cores_used_by_process): New parameter num_cores, use it.
8586 (linux_xfer_osdata_processes): Pass num_cores to it.
8587 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8588 process name.
8589
8590 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8591
8592 * target.c (memory_xfer_partial): Fix length arg in call to
8593 breakpoint_xfer_memory.
8594
8595 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8596
8597 PR tdep/16397
8598 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8599 number comes after the + or - signs. Adjust length of register
8600 name to be extracted.
8601
8602 2014-02-20 Tom Tromey <tromey@redhat.com>
8603
8604 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8605 (ada_varobj_ops): Mark "extern".
8606
8607 2014-02-20 Tom Tromey <tromey@redhat.com>
8608
8609 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8610
8611 2014-02-20 Doug Evans <xdje42@gmail.com>
8612
8613 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8614 All callers updated.
8615 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8616 All callers updated.
8617 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8618 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8619
8620 2014-02-20 lin zuojian <manjian2006@gmail.com>
8621 Joel Brobecker <brobecker@adacore.com>
8622 Doug Evans <xdje42@gmail.com>
8623
8624 PR symtab/16581
8625 * dwarf2read.c (struct die_info): New member in_process.
8626 (reset_die_in_process): New function.
8627 (process_die): Set it at the start, reset when returning.
8628 (inherit_abstract_dies): Only call process_die if origin_child_die
8629 not already being processed.
8630
8631 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8632
8633 * windows-nat.c (handle_unload_dll): Add function documentation.
8634 (do_initial_windows_stuff): Add comment explaining why we wait
8635 until after inferior initialization has finished before
8636 processing all DLLs.
8637
8638 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8639
8640 * windows-nat.c (get_module_name): Delete.
8641 (windows_get_exec_module_filename): New function, mostly
8642 inspired from get_module_name.
8643 (windows_pid_to_exec_file): Replace call to get_module_name
8644 by call to windows_get_exec_module_filename.
8645
8646 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8647
8648 * windows-nat.c (handle_load_dll): Rewrite this function's
8649 introductory comment. Remove code using get_module_name
8650 to get the DLL's name.
8651
8652 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8653
8654 * windows-nat.c (get_windows_debug_event): Ignore
8655 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8656 if windows_initialization_done == 0.
8657 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8658 Adjust implementation to always load all DLLs.
8659 (do_initial_windows_stuff): Replace call to
8660 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8661
8662 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8663
8664 * windows-nat.c (_initialize_windows_nat): Deprecate the
8665 "dll-symbols" command. Turn the "add-shared-symbol-files"
8666 and "assf" aliases into commands, and deprecate them as well.
8667 * NEWS: Add entry explaining that "dll-symbols" and its two
8668 aliases are now deprecated.
8669
8670 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8671
8672 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8673 new-line in debug string. Remove trailing spaces.
8674
8675 2014-02-19 Stan Shebs <stan@codesourcery.com>
8676
8677 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8678
8679 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8680
8681 * NEWS: Add entry for the new feature
8682 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8683 and class values.
8684
8685 2014-02-19 Stan Shebs <stan@codesourcery.com>
8686
8687 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8688
8689 2014-02-19 Pedro Alves <palves@redhat.com>
8690
8691 * common/ptid.h (struct ptid): Mention that process_stratum
8692 targets should prefer ptid.lwp.
8693
8694 2014-02-19 Pedro Alves <palves@redhat.com>
8695
8696 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8697 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8698 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8699 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8700 store remote thread ids rather than ptid.tid.
8701 (_initialize_remote): Adjust.
8702
8703 2014-02-19 Tom Tromey <tromey@redhat.com>
8704
8705 * target.c (target_get_unwinder): Rewrite.
8706 (target_get_tailcall_unwinder): Rewrite.
8707 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8708 (record_btrace_to_get_tailcall_unwinder): New function.
8709 (init_record_btrace_ops): Update.
8710 * target.h (struct target_ops) <to_get_unwinder,
8711 to_get_tailcall_unwinder>: Now function pointers. Use
8712 TARGET_DEFAULT_RETURN.
8713
8714 2014-02-19 Tom Tromey <tromey@redhat.com>
8715
8716 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8717 argument.
8718 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8719
8720 2014-02-19 Tom Tromey <tromey@redhat.com>
8721
8722 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8723 directly.
8724 * target-delegates.c: Rebuild.
8725 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8726 TARGET_DEFAULT_FUNC.
8727 * target.c (default_target_decr_pc_after_break): Rename from
8728 forward_target_decr_pc_after_break. Simplify.
8729 (target_decr_pc_after_break): Rely on delegation.
8730
8731 2014-02-19 Tom Tromey <tromey@redhat.com>
8732
8733 * target.c (update_current_target): Do not INHERIT to_doc or
8734 to_magic. Do not de_fault to_open or to_close.
8735
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8737
8738 * gcore.h (objfile_find_memory_regions): Declare.
8739 * gcore.c (objfile_find_memory_regions): No longer static. Add
8740 "self" argument.
8741 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8742 * exec.c: Include gcore.h.
8743 (exec_set_find_memory_regions): Remove.
8744 (exec_find_memory_regions): Remove.
8745 (exec_do_find_memory_regions): Remove.
8746 (init_exec_ops): Update.
8747 * defs.h (exec_set_find_memory_regions): Remove.
8748
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8750
8751 * target-delegates.c: Rebuild.
8752 * target.h (struct target_ops) <to_extra_thread_info,
8753 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8754 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8755 not 0, in TARGET_DEFAULT_RETURN.
8756
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target.c (complete_target_initialization): Remove casts. Use
8760 return_zero_has_execution.
8761 (return_zero): Add "ignore" argument.
8762 (return_zero_has_execution): New function.
8763 (init_dummy_target): Remove casts. Use
8764 return_zero_has_execution.
8765
8766 2014-02-19 Tom Tromey <tromey@redhat.com>
8767
8768 * target.c (update_current_target): Update comments. Do not
8769 INHERIT to_stratum.
8770
8771 2014-02-19 Tom Tromey <tromey@redhat.com>
8772
8773 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8774 needed.
8775 * corelow.c (core_read_description): Delegate when needed.
8776 * remote.c (remote_read_description): Delegate when needed.
8777 * target-delegates.c: Rebuild.
8778 * target.c (target_read_description): Rewrite.
8779 * target.h (struct target_ops) <to_read_description>: Update
8780 comment. Use TARGET_DEFAULT_RETURN.
8781
8782 2014-02-19 Tom Tromey <tromey@redhat.com>
8783
8784 * target-delegates.c: Rebuild.
8785 * target.c (update_current_target): Don't inherit or default
8786 to_can_run.
8787 (find_default_run_target): Check against delegate_can_run.
8788 * target.h (struct target_ops) <to_can_run>: Use
8789 TARGET_DEFAULT_RETURN.
8790
8791 2014-02-19 Tom Tromey <tromey@redhat.com>
8792
8793 * target-delegates.c: Rebuild.
8794 * target.c (target_disconnect): Unconditionally delegate.
8795 * target.h (struct target_ops) <to_disconnect>: Use
8796 TARGET_DEFAULT_NORETURN.
8797
8798 2014-02-19 Tom Tromey <tromey@redhat.com>
8799
8800 * record.c (record_stop): Unconditionally delegate.
8801 * target-delegates.c: Rebuild.
8802 * target.c (target_stop_recording): Unconditionally delegate.
8803 * target.h (struct target_ops) <to_stop_recording>: Use
8804 TARGET_DEFAULT_IGNORE.
8805
8806 2014-02-19 Tom Tromey <tromey@redhat.com>
8807
8808 * target-delegates.c: Rebuild.
8809 * target.c (target_enable_btrace): Unconditionally delegate.
8810 * target.h (struct target_ops) <to_enable_btrace>: Use
8811 TARGET_DEFAULT_NORETURN.
8812
8813 2014-02-19 Tom Tromey <tromey@redhat.com>
8814
8815 * target-delegates.c: Rebuild.
8816 * target.c (target_read_btrace): Unconditionally delegate.
8817 * target.h (struct target_ops) <to_read_btrace>: Use
8818 TARGET_DEFAULT_NORETURN.
8819
8820 2014-02-19 Tom Tromey <tromey@redhat.com>
8821
8822 * target-delegates.c: Rebuild.
8823 * target.c (target_teardown_btrace): Unconditionally delegate.
8824 * target.h (struct target_ops) <to_teardown_btrace>: Use
8825 TARGET_DEFAULT_NORETURN.
8826
8827 2014-02-19 Tom Tromey <tromey@redhat.com>
8828
8829 * target-delegates.c: Rebuild.
8830 * target.c (target_disable_btrace): Unconditionally delegate.
8831 * target.h (struct target_ops) <to_disable_btrace>: Use
8832 TARGET_DEFAULT_NORETURN.
8833
8834 2014-02-19 Tom Tromey <tromey@redhat.com>
8835
8836 * target-delegates.c: Rebuild.
8837 * target.c (default_search_memory): New function.
8838 (simple_search_memory): Update comment.
8839 (target_search_memory): Unconditionally delegate.
8840 * target.h (struct target_ops) <to_search_memory>: Use
8841 TARGET_DEFAULT_FUNC.
8842
8843 2014-02-19 Tom Tromey <tromey@redhat.com>
8844
8845 * auxv.c (default_auxv_parse): No longer static.
8846 (target_auxv_parse): Unconditionally delegate.
8847 * auxv.h (default_auxv_parse): Declare.
8848 * target-delegates.c: Rebuild.
8849 * target.c: Include auxv.h.
8850 * target.h (struct target_ops) <to_auxv_parse>: Use
8851 TARGET_DEFAULT_FUNC.
8852
8853 2014-02-19 Tom Tromey <tromey@redhat.com>
8854
8855 * target-delegates.c: Rebuild.
8856 * target.c (target_memory_map): Unconditionally delegate.
8857 * target.h (struct target_ops) <to_memory_map>: Use
8858 TARGET_DEFAULT_RETURN.
8859
8860 2014-02-19 Tom Tromey <tromey@redhat.com>
8861
8862 * target-delegates.c: Rebuild.
8863 * target.c (target_thread_alive): Unconditionally delegate.
8864 * target.h (struct target_ops) <to_thread_alive>: Use
8865 TARGET_DEFAULT_RETURN.
8866
8867 2014-02-19 Tom Tromey <tromey@redhat.com>
8868
8869 * target-delegates.c: Rebuild.
8870 * target.c (target_save_record): Unconditionally delegate.
8871 * target.h (struct target_ops) <to_save_record>: Use
8872 TARGET_DEFAULT_NORETURN.
8873
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8875
8876 * target-delegates.c: Rebuild.
8877 * target.c (target_delete_record): Unconditionally delegate.
8878 * target.h (struct target_ops) <to_delete_record>: Use
8879 TARGET_DEFAULT_NORETURN.
8880
8881 2014-02-19 Tom Tromey <tromey@redhat.com>
8882
8883 * target-delegates.c: Rebuild.
8884 * target.c (target_record_is_replaying): Unconditionally
8885 delegate.
8886 * target.h (struct target_ops) <to_record_is_replaying>: Use
8887 TARGET_DEFAULT_RETURN.
8888
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8890
8891 * target-delegates.c: Rebuild.
8892 * target.c (target_goto_record_begin): Unconditionally delegate.
8893 * target.h (struct target_ops) <to_goto_record_begin>: Use
8894 TARGET_DEFAULT_NORETURN.
8895
8896 2014-02-19 Tom Tromey <tromey@redhat.com>
8897
8898 * target-delegates.c: Rebuild.
8899 * target.c (target_goto_record_end): Unconditionally delegate.
8900 * target.h (struct target_ops) <to_goto_record_end>: Use
8901 TARGET_DEFAULT_NORETURN.
8902
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * target-delegates.c: Rebuild.
8906 * target.c (target_goto_record): Unconditionally delegate.
8907 * target.h (struct target_ops) <to_goto_record>: Use
8908 TARGET_DEFAULT_NORETURN.
8909
8910 2014-02-19 Tom Tromey <tromey@redhat.com>
8911
8912 * target-delegates.c: Rebuild.
8913 * target.c (target_insn_history): Unconditionally delegate.
8914 * target.h (struct target_ops) <to_insn_history>: Use
8915 TARGET_DEFAULT_NORETURN.
8916
8917 2014-02-19 Tom Tromey <tromey@redhat.com>
8918
8919 * target-delegates.c: Rebuild.
8920 * target.c (target_insn_history_from): Unconditionally delegate.
8921 * target.h (struct target_ops) <to_insn_history_from>: Use
8922 TARGET_DEFAULT_NORETURN.
8923
8924 2014-02-19 Tom Tromey <tromey@redhat.com>
8925
8926 * target-delegates.c: Rebuild.
8927 * target.c (target_insn_history_range): Unconditionally delegate.
8928 * target.h (struct target_ops) <to_insn_history_range>: Use
8929 TARGET_DEFAULT_NORETURN.
8930
8931 2014-02-19 Tom Tromey <tromey@redhat.com>
8932
8933 * target-delegates.c: Rebuild.
8934 * target.c (target_call_history): Unconditionally delegate.
8935 * target.h (struct target_ops) <to_call_history>: Use
8936 TARGET_DEFAULT_NORETURN.
8937
8938 2014-02-19 Tom Tromey <tromey@redhat.com>
8939
8940 * target-delegates.c: Rebuild.
8941 * target.c (target_call_history_from): Unconditionally delegate.
8942 * target.h (struct target_ops) <to_call_history_from>: Use
8943 TARGET_DEFAULT_NORETURN.
8944
8945 2014-02-19 Tom Tromey <tromey@redhat.com>
8946
8947 * target-delegates.c: Rebuild.
8948 * target.c (target_call_history_range): Unconditionally delegate.
8949 * target.h (struct target_ops) <to_call_history_range>: Use
8950 TARGET_DEFAULT_NORETURN.
8951
8952 2014-02-19 Tom Tromey <tromey@redhat.com>
8953
8954 * target-delegates.c: Rebuild.
8955 * target.c (target_verify_memory): Unconditionally delegate.
8956 * target.h (struct target_ops) <to_verify_memory>: Use
8957 TARGET_DEFAULT_NORETURN.
8958
8959 2014-02-19 Tom Tromey <tromey@redhat.com>
8960
8961 * target-delegates.c: Rebuild.
8962 * target.c (target_core_of_thread): Unconditionally delegate.
8963 * target.h (struct target_ops) <to_core_of_thread>: Use
8964 TARGET_DEFAULT_RETURN.
8965
8966 2014-02-19 Tom Tromey <tromey@redhat.com>
8967
8968 * target-delegates.c: Rebuild.
8969 * target.c (target_flash_done): Unconditionally delegate.
8970 * target.h (struct target_ops) <to_flash_done>: Use
8971 TARGET_DEFAULT_NORETURN.
8972
8973 2014-02-19 Tom Tromey <tromey@redhat.com>
8974
8975 * target-delegates.c: Rebuild.
8976 * target.c (target_flash_erase): Unconditionally delegate.
8977 * target.h (struct target_ops) <to_flash_erase>: Use
8978 TARGET_DEFAULT_NORETURN.
8979
8980 2014-02-19 Tom Tromey <tromey@redhat.com>
8981
8982 * target-delegates.c: Rebuild.
8983 * target.c (target_get_section_table): Unconditionally delegate.
8984 * target.h (struct target_ops) <to_get_section_table>: Use
8985 TARGET_DEFAULT_RETURN.
8986
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * target-delegates.c: Rebuild.
8990 * target.c (target_pid_to_str): Unconditionally delegate.
8991 (init_dummy_target): Don't initialize to_pid_to_str.
8992 (default_pid_to_str): Rename from dummy_pid_to_str.
8993 * target.h (struct target_ops) <to_pid_to_str>: Use
8994 TARGET_DEFAULT_FUNC.
8995
8996 2014-02-19 Tom Tromey <tromey@redhat.com>
8997
8998 * target-delegates.c: Rebuild.
8999 * target.c (target_find_new_threads): Unconditionally delegate.
9000 * target.h (struct target_ops) <to_find_new_threads>: Use
9001 TARGET_DEFAULT_RETURN.
9002
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9004
9005 * target-delegates.c: Rebuild.
9006 * target.c (target_program_signals): Unconditionally delegate.
9007 * target.h (struct target_ops) <to_program_signals>: Use
9008 TARGET_DEFAULT_IGNORE.
9009
9010 2014-02-19 Tom Tromey <tromey@redhat.com>
9011
9012 * target-delegates.c: Rebuild.
9013 * target.c (target_pass_signals): Unconditionally delegate.
9014 * target.h (struct target_ops) <to_pass_signals>: Use
9015 TARGET_DEFAULT_IGNORE.
9016
9017 2014-02-19 Tom Tromey <tromey@redhat.com>
9018
9019 * target-delegates.c: Rebuild.
9020 * target.c (default_mourn_inferior): New function.
9021 (target_mourn_inferior): Unconditionally delegate.
9022 * target.h (struct target_ops) <to_mourn_inferior>: Use
9023 TARGET_DEFAULT_FUNC.
9024
9025 2014-02-19 Tom Tromey <tromey@redhat.com>
9026
9027 * target-delegates.c: Rebuild.
9028 * target.c (default_follow_fork): New function.
9029 (target_follow_fork): Unconditionally delegate.
9030 * target.h (struct target_ops) <to_follow_fork>: Use
9031 TARGET_DEFAULT_FUNC.
9032
9033 2014-02-19 Tom Tromey <tromey@redhat.com>
9034
9035 * target-delegates.c: Rebuild.
9036 * target.c (target_kill): Unconditionally delegate.
9037 * target.h (struct target_ops) <to_kill>: Use
9038 TARGET_DEFAULT_NORETURN.
9039
9040 2014-02-19 Tom Tromey <tromey@redhat.com>
9041
9042 * target-delegates.c: Rebuild.
9043 * target.c (target_masked_watch_num_registers): Unconditionally
9044 delegate.
9045 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9046 Use TARGET_DEFAULT_RETURN.
9047
9048 2014-02-19 Tom Tromey <tromey@redhat.com>
9049
9050 * target-delegates.c: Rebuild.
9051 * target.c (target_remove_mask_watchpoint): Unconditionally
9052 delegate.
9053 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9054 TARGET_DEFAULT_RETURN.
9055
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9057
9058 * target-delegates.c: Rebuild.
9059 * target.c (target_insert_mask_watchpoint): Unconditionally
9060 delegate.
9061 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9062 TARGET_DEFAULT_RETURN.
9063
9064 2014-02-19 Tom Tromey <tromey@redhat.com>
9065
9066 * target-delegates.c: Rebuild.
9067 * target.c (target_ranged_break_num_registers): Unconditionally
9068 delegate.
9069 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9070 Use TARGET_DEFAULT_RETURN.
9071
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9073
9074 * target-delegates.c: Rebuild.
9075 * target.c (target_fetch_registers): Unconditionally delegate.
9076 * target.h (struct target_ops) <to_fetch_registers>: Use
9077 TARGET_DEFAULT_NORETURN.
9078
9079 2014-02-19 Tom Tromey <tromey@redhat.com>
9080
9081 * target-delegates.c: Rebuild.
9082 * target.c (update_current_target): Don't inherit or default
9083 to_stop.
9084 * target.h (struct target_ops) <to_stop>: Use
9085 TARGET_DEFAULT_IGNORE.
9086
9087 2014-02-19 Tom Tromey <tromey@redhat.com>
9088
9089 * target-delegates.c: Rebuild.
9090 * target.c (update_current_target): Don't inherit or default
9091 to_can_run_breakpoint_commands.
9092 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9093 Use TARGET_DEFAULT_RETURN.
9094
9095 2014-02-19 Tom Tromey <tromey@redhat.com>
9096
9097 * target-delegates.c: Rebuild.
9098 * target.c (update_current_target): Don't inherit or default
9099 to_supports_evaluation_of_breakpoint_conditions.
9100 * target.h (struct target_ops)
9101 <to_supports_evaluation_of_breakpoint_conditions>: Use
9102 TARGET_DEFAULT_RETURN.
9103
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9105
9106 * target-delegates.c: Rebuild.
9107 * target.c (update_current_target): Don't inherit or default
9108 to_augmented_libraries_svr4_read.
9109 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9110 Use TARGET_DEFAULT_RETURN.
9111
9112 2014-02-19 Tom Tromey <tromey@redhat.com>
9113
9114 * target-delegates.c: Rebuild.
9115 * target.c (update_current_target): Don't inherit or default
9116 to_can_use_agent.
9117 * target.h (struct target_ops) <to_can_use_agent>: Use
9118 TARGET_DEFAULT_RETURN.
9119
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9121
9122 * target-delegates.c: Rebuild.
9123 * target.c (update_current_target): Don't inherit or default
9124 to_use_agent.
9125 * target.h (struct target_ops) <to_use_agent>: Use
9126 TARGET_DEFAULT_NORETURN.
9127
9128 2014-02-19 Tom Tromey <tromey@redhat.com>
9129
9130 * target-delegates.c: Rebuild.
9131 * target.c (update_current_target): Don't inherit or default
9132 to_traceframe_info.
9133 (return_null): Remove.
9134 * target.h (struct target_ops) <to_traceframe_info>: Use
9135 TARGET_DEFAULT_RETURN.
9136
9137 2014-02-19 Tom Tromey <tromey@redhat.com>
9138
9139 * target-delegates.c: Rebuild.
9140 * target.c (update_current_target): Don't inherit or default
9141 to_static_tracepoint_markers_by_strid.
9142 * target.h (struct target_ops)
9143 <to_static_tracepoint_markers_by_strid>: Use
9144 TARGET_DEFAULT_NORETURN.
9145
9146 2014-02-19 Tom Tromey <tromey@redhat.com>
9147
9148 * target-delegates.c: Rebuild.
9149 * target.c (update_current_target): Don't inherit or default
9150 to_static_tracepoint_marker_at.
9151 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9152 Use TARGET_DEFAULT_RETURN.
9153
9154 2014-02-19 Tom Tromey <tromey@redhat.com>
9155
9156 * target-delegates.c: Rebuild.
9157 * target.c (update_current_target): Don't inherit or default
9158 to_set_permissions.
9159 * target.h (struct target_ops) <to_set_permissions>: Use
9160 TARGET_DEFAULT_IGNORE.
9161
9162 2014-02-19 Tom Tromey <tromey@redhat.com>
9163
9164 * target-delegates.c: Rebuild.
9165 * target.c (update_current_target): Don't inherit or default
9166 to_get_tib_address.
9167 * target.h (struct target_ops) <to_get_tib_address>: Use
9168 TARGET_DEFAULT_NORETURN.
9169
9170 2014-02-19 Tom Tromey <tromey@redhat.com>
9171
9172 * target-delegates.c: Rebuild.
9173 * target.c (update_current_target): Don't inherit or default
9174 to_set_trace_notes.
9175 * target.h (struct target_ops) <to_set_trace_notes>: Use
9176 TARGET_DEFAULT_RETURN.
9177
9178 2014-02-19 Tom Tromey <tromey@redhat.com>
9179
9180 * target-delegates.c: Rebuild.
9181 * target.c (update_current_target): Don't initialize
9182 to_set_trace_buffer_size.
9183 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9184 TARGET_DEFAULT_IGNORE.
9185
9186 2014-02-19 Tom Tromey <tromey@redhat.com>
9187
9188 * target-delegates.c: Rebuild.
9189 * target.c (update_current_target): Don't inherit or default
9190 to_set_circular_trace_buffer.
9191 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9192 TARGET_DEFAULT_IGNORE.
9193
9194 2014-02-19 Tom Tromey <tromey@redhat.com>
9195
9196 * target-delegates.c: Rebuild.
9197 * target.c (update_current_target): Don't inherit or default
9198 to_set_disconnected_tracing.
9199 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9200 TARGET_DEFAULT_IGNORE.
9201
9202 2014-02-19 Tom Tromey <tromey@redhat.com>
9203
9204 * target-delegates.c: Rebuild.
9205 * target.c (update_current_target): Don't inherit or default
9206 to_get_min_fast_tracepoint_insn_len.
9207 (return_minus_one): Remove.
9208 * target.h (struct target_ops)
9209 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9210
9211 2014-02-19 Tom Tromey <tromey@redhat.com>
9212
9213 * target-delegates.c: Rebuild.
9214 * target.c (update_current_target): Don't inherit or default
9215 to_get_raw_trace_data.
9216 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9217 TARGET_DEFAULT_NORETURN.
9218
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9220
9221 * target-delegates.c: Rebuild.
9222 * target.c (update_current_target): Don't inherit or default
9223 to_upload_trace_state_variables.
9224 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9225 Use TARGET_DEFAULT_RETURN.
9226
9227 2014-02-19 Tom Tromey <tromey@redhat.com>
9228
9229 * target-delegates.c: Rebuild.
9230 * target.c (update_current_target): Don't inherit or default
9231 to_upload_tracepoints.
9232 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9233 TARGET_DEFAULT_RETURN.
9234
9235 2014-02-19 Tom Tromey <tromey@redhat.com>
9236
9237 * target-delegates.c: Rebuild.
9238 * target.c (update_current_target): Don't inherit or default
9239 to_save_trace_data.
9240 * target.h (struct target_ops) <to_save_trace_data>: Use
9241 TARGET_DEFAULT_NORETURN.
9242
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9244
9245 * target-delegates.c: Rebuild.
9246 * target.c (update_current_target): Don't inherit or default
9247 to_get_trace_state_variable_value.
9248 * target.h (struct target_ops)
9249 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9250
9251 2014-02-19 Tom Tromey <tromey@redhat.com>
9252
9253 * target-delegates.c: Rebuild.
9254 * target.c (update_current_target): Don't inherit or default
9255 to_trace_find.
9256 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9257
9258 2014-02-19 Tom Tromey <tromey@redhat.com>
9259
9260 * target-delegates.c: Rebuild.
9261 * target.c (update_current_target): Don't inherit or default
9262 to_trace_stop.
9263 * target.h (struct target_ops) <to_trace_stop>: Use
9264 TARGET_DEFAULT_NORETURN.
9265
9266 2014-02-19 Tom Tromey <tromey@redhat.com>
9267
9268 * target-delegates.c: Rebuild.
9269 * target.c (update_current_target): Don't inherit or default
9270 to_get_tracepoint_status.
9271 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9272 TARGET_DEFAULT_NORETURN.
9273
9274 2014-02-19 Tom Tromey <tromey@redhat.com>
9275
9276 * target-delegates.c: Rebuild.
9277 * target.c (update_current_target): Don't inherit or default
9278 to_get_trace_status.
9279 * target.h (struct target_ops) <to_get_trace_status>: Use
9280 TARGET_DEFAULT_RETURN.
9281
9282 2014-02-19 Tom Tromey <tromey@redhat.com>
9283
9284 * target-delegates.c: Rebuild.
9285 * target.c (update_current_target): Don't inherit or default
9286 to_trace_start.
9287 * target.h (struct target_ops) <to_trace_start>: Use
9288 TARGET_DEFAULT_NORETURN.
9289
9290 2014-02-19 Tom Tromey <tromey@redhat.com>
9291
9292 * target-delegates.c: Rebuild.
9293 * target.c (update_current_target): Don't inherit or default
9294 to_trace_set_readonly_regions.
9295 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9296 Use TARGET_DEFAULT_NORETURN.
9297
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9299
9300 * target-delegates.c: Rebuild.
9301 * target.c (update_current_target): Don't inherit or default
9302 to_disable_tracepoint.
9303 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9304 TARGET_DEFAULT_NORETURN.
9305
9306 2014-02-19 Tom Tromey <tromey@redhat.com>
9307
9308 * target-delegates.c: Rebuild.
9309 * target.c (update_current_target): Don't inherit or default
9310 to_enable_tracepoint.
9311 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9312 TARGET_DEFAULT_NORETURN.
9313
9314 2014-02-19 Tom Tromey <tromey@redhat.com>
9315
9316 * target-delegates.c: Rebuild.
9317 * target.c (update_current_target): Don't inherit or default
9318 to_download_trace_state_variable.
9319 * target.h (struct target_ops) <to_download_trace_state_variable>:
9320 Use TARGET_DEFAULT_NORETURN.
9321
9322 2014-02-19 Tom Tromey <tromey@redhat.com>
9323
9324 * target-delegates.c: Rebuild.
9325 * target.c (update_current_target): Don't inherit or default
9326 to_can_download_tracepoint.
9327 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9328 TARGET_DEFAULT_RETURN.
9329
9330 2014-02-19 Tom Tromey <tromey@redhat.com>
9331
9332 * target-delegates.c: Rebuild.
9333 * target.c (update_current_target): Don't inherit or default
9334 to_download_tracepoint.
9335 * target.h (struct target_ops) <to_download_tracepoint>: Use
9336 TARGET_DEFAULT_NORETURN.
9337
9338 2014-02-19 Tom Tromey <tromey@redhat.com>
9339
9340 * target-delegates.c: Rebuild.
9341 * target.c (update_current_target): Don't inherit or default
9342 to_trace_init.
9343 * target.h (struct target_ops) <to_trace_init>: Use
9344 TARGET_DEFAULT_RETURN.
9345
9346 2014-02-19 Tom Tromey <tromey@redhat.com>
9347
9348 * target-delegates.c: Rebuild.
9349 * target.c (update_current_target): Don't inherit or default
9350 to_supports_string_tracing.
9351 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9352 TARGET_DEFAULT_RETURN.
9353
9354 2014-02-19 Tom Tromey <tromey@redhat.com>
9355
9356 * target-delegates.c: Rebuild.
9357 * target.c (update_current_target): Don't inherit or default
9358 to_supports_enable_disable_tracepoint.
9359 * target.h (struct target_ops)
9360 <to_supports_enable_disable_tracepoint>: Use
9361 TARGET_DEFAULT_RETURN.
9362
9363 2014-02-19 Tom Tromey <tromey@redhat.com>
9364
9365 * target-delegates.c: Rebuild.
9366 * target.c (update_current_target): Don't inherit or default
9367 to_supports_multi_process.
9368 * target.h (struct target_ops) <to_supports_multi_process>: Use
9369 TARGET_DEFAULT_RETURN.
9370
9371 2014-02-19 Tom Tromey <tromey@redhat.com>
9372
9373 * target-delegates.c: Rebuild.
9374 * target.c (update_current_target): Don't inherit or default
9375 to_get_ada_task_ptid.
9376 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9377 TARGET_DEFAULT_FUNC.
9378
9379 2014-02-19 Tom Tromey <tromey@redhat.com>
9380
9381 * target-delegates.c: Rebuild.
9382 * target.c (update_current_target): Don't inherit or default
9383 to_thread_architecture.
9384 * target.h (struct target_ops) <to_thread_architecture>: Use
9385 TARGET_DEFAULT_FUNC.
9386
9387 2014-02-19 Tom Tromey <tromey@redhat.com>
9388
9389 * target-delegates.c: Rebuild.
9390 * target.c (update_current_target): Don't inherit or default
9391 to_execution_direction.
9392 * target.h (struct target_ops) <to_execution_direction>: Use
9393 TARGET_DEFAULT_FUNC.
9394
9395 2014-02-19 Tom Tromey <tromey@redhat.com>
9396
9397 * target-delegates.c: Rebuild.
9398 * target.c (update_current_target): Don't inherit or default
9399 to_can_execute_reverse.
9400 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9401 TARGET_DEFAULT_RETURN.
9402 (target_can_execute_reverse): Unconditionally delegate.
9403
9404 2014-02-19 Tom Tromey <tromey@redhat.com>
9405
9406 * target-delegates.c: Rebuild.
9407 * target.c (update_current_target): Don't inherit or default
9408 to_goto_bookmark.
9409 (dummy_goto_bookmark): Remove.
9410 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9411 * target.h (struct target_ops) <to_goto_bookmark>: Use
9412 TARGET_DEFAULT_NORETURN.
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_get_bookmark.
9419 (dummy_get_bookmark): Remove.
9420 (init_dummy_target): Don't inherit or default to_get_bookmark.
9421 * target.h (struct target_ops) <to_get_bookmark>: Use
9422 TARGET_DEFAULT_NORETURN
9423
9424 2014-02-19 Tom Tromey <tromey@redhat.com>
9425
9426 * target-delegates.c: Rebuild.
9427 * target.c (update_current_target): Don't inherit or default
9428 to_make_corefile_notes.
9429 (init_dummy_target): Don't initialize to_make_corefile_notes.
9430 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9431 TARGET_DEFAULT_FUNC.
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_find_memory_regions.
9438 (init_dummy_target): Don't initialize to_find_memory_regions.
9439 * target.h (struct target_ops) <to_find_memory_regions>: Use
9440 TARGET_DEFAULT_FUNC.
9441
9442 2014-02-19 Tom Tromey <tromey@redhat.com>
9443
9444 * target-delegates.c: Rebuild.
9445 * target.c (update_current_target): Don't inherit or default
9446 to_log_command.
9447 * target.h (struct target_ops) <to_log_command>: Use
9448 TARGET_DEFAULT_IGNORE.
9449 (target_log_command): Unconditionally delegate.
9450
9451 2014-02-19 Tom Tromey <tromey@redhat.com>
9452
9453 * target-delegates.c: Rebuild.
9454 * target.c (update_current_target): Don't inherit or default
9455 to_pid_to_exec_file.
9456 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9457 TARGET_DEFAULT_RETURN.
9458
9459 2014-02-19 Tom Tromey <tromey@redhat.com>
9460
9461 * target-delegates.c: Rebuild.
9462 * target.c (update_current_target): Don't inherit or default
9463 to_thread_name.
9464 (target_thread_name): Unconditionally delegate.
9465 * target.h (struct target_ops) <to_thread_name>: Use
9466 TARGET_DEFAULT_RETURN.
9467
9468 2014-02-19 Tom Tromey <tromey@redhat.com>
9469
9470 * target-delegates.c: Rebuild.
9471 * target.c (update_current_target): Don't inherit or default
9472 to_extra_thread_info.
9473 * target.h (struct target_ops) <to_extra_thread_info>: Use
9474 TARGET_DEFAULT_RETURN.
9475
9476 2014-02-19 Tom Tromey <tromey@redhat.com>
9477
9478 * target-delegates.c: Rebuild.
9479 * target.c (update_current_target): Don't inherit or default
9480 to_has_exited.
9481 * target.h (struct target_ops) <to_has_exited>: Use
9482 TARGET_DEFAULT_RETURN..
9483
9484 2014-02-19 Tom Tromey <tromey@redhat.com>
9485
9486 * target-delegates.c: Rebuild.
9487 * target.c (update_current_target): Don't inherit or default
9488 to_set_syscall_catchpoint.
9489 (return_one): Remove.
9490 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9491 TARGET_DEFAULT_RETURN.
9492
9493 2014-02-19 Tom Tromey <tromey@redhat.com>
9494
9495 * target-delegates.c: Rebuild.
9496 * target.c (update_current_target): Don't inherit or default
9497 to_insert_exec_catchpoint.
9498 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9499 TARGET_DEFAULT_RETURN.
9500
9501 2014-01-08 Tom Tromey <tromey@redhat.com>
9502
9503 * target-delegates.c: Rebuild.
9504 * target.c (update_current_target): Don't inherit or default
9505 to_insert_exec_catchpoint.
9506 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9507 TARGET_DEFAULT_RETURN.
9508
9509 2014-02-19 Tom Tromey <tromey@redhat.com>
9510
9511 * target-delegates.c: Rebuild.
9512 * target.c (update_current_target): Don't inherit or default
9513 to_remove_vfork_catchpoint.
9514 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9515 TARGET_DEFAULT_RETURN.
9516
9517 2014-02-19 Tom Tromey <tromey@redhat.com>
9518
9519 * target-delegates.c: Rebuild.
9520 * target.c (update_current_target): Don't inherit or default
9521 to_insert_vfork_catchpoint.
9522 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9523 TARGET_DEFAULT_RETURN.
9524
9525 2014-02-19 Tom Tromey <tromey@redhat.com>
9526
9527 * target-delegates.c: Rebuild.
9528 * target.c (update_current_target): Don't inherit or default
9529 to_remove_fork_catchpoint.
9530 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9531 TARGET_DEFAULT_RETURN.
9532
9533 2014-02-19 Tom Tromey <tromey@redhat.com>
9534
9535 * target-delegates.c: Rebuild.
9536 * target.c (update_current_target): Don't inherit or default
9537 to_insert_fork_catchpoint.
9538 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9539 TARGET_DEFAULT_RETURN.
9540
9541 2014-02-19 Tom Tromey <tromey@redhat.com>
9542
9543 * target-delegates.c: Rebuild.
9544 * target.c (update_current_target): Don't inherit or default
9545 to_post_startup_inferior.
9546 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9547 TARGET_DEFAULT_IGNORE.
9548
9549 2014-02-19 Tom Tromey <tromey@redhat.com>
9550
9551 * target-delegates.c: Rebuild.
9552 * target.c (update_current_target): Don't inherit or default
9553 to_load.
9554 * target.h (struct target_ops) <to_load>: Use
9555 TARGET_DEFAULT_NORETURN.
9556
9557 2014-02-19 Tom Tromey <tromey@redhat.com>
9558
9559 * target-delegates.c: Rebuild.
9560 * target.c (update_current_target): Don't inherit or default
9561 to_terminal_info.
9562 * target.h (struct target_ops) <to_terminal_info>: Use
9563 TARGET_DEFAULT_FUNC.
9564
9565 2014-02-19 Tom Tromey <tromey@redhat.com>
9566
9567 * target-delegates.c: Rebuild.
9568 * target.c (update_current_target): Don't inherit or default
9569 to_terminal_save_ours.
9570 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9571 TARGET_DEFAULT_IGNORE.
9572
9573 2014-02-19 Tom Tromey <tromey@redhat.com>
9574
9575 * target-delegates.c: Rebuild.
9576 * target.c (update_current_target): Don't inherit or default
9577 to_terminal_ours.
9578 * target.h (struct target_ops) <to_terminal_ours>: Use
9579 TARGET_DEFAULT_IGNORE.
9580
9581 2014-02-19 Tom Tromey <tromey@redhat.com>
9582
9583 * target-delegates.c: Rebuild.
9584 * target.c (update_current_target): Don't inherit or default
9585 to_terminal_ours_for_output.
9586 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9587 TARGET_DEFAULT_IGNORE.
9588
9589 2014-02-19 Tom Tromey <tromey@redhat.com>
9590
9591 * target-delegates.c: Rebuild.
9592 * target.c (update_current_target): Don't inherit or default
9593 to_terminal_inferior.
9594 * target.h (struct target_ops) <to_terminal_inferior>: Use
9595 TARGET_DEFAULT_IGNORE.
9596
9597 2014-02-19 Tom Tromey <tromey@redhat.com>
9598
9599 * target-delegates.c: Rebuild.
9600 * target.c (update_current_target): Don't inherit or default
9601 to_terminal_init.
9602 * target.h (struct target_ops) <to_terminal_init>: Use
9603 TARGET_DEFAULT_IGNORE.
9604
9605 2014-02-19 Tom Tromey <tromey@redhat.com>
9606
9607 * target-delegates.c: Rebuild.
9608 * target.c (update_current_target): Don't inherit or default
9609 to_can_accel_watchpoint_condition.
9610 * target.h (struct target_ops)
9611 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9612
9613 2014-02-19 Tom Tromey <tromey@redhat.com>
9614
9615 * target-delegates.c: Rebuild.
9616 * target.c (update_current_target): Don't inherit or default
9617 to_region_ok_for_hw_watchpoint.
9618 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9619 Use TARGET_DEFAULT_FUNC.
9620
9621 2014-02-19 Tom Tromey <tromey@redhat.com>
9622
9623 * target-delegates.c: Rebuild.
9624 * target.c (update_current_target): Don't inherit or default
9625 to_watchpoint_addr_within_range.
9626 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9627 Use TARGET_DEFAULT_FUNC.
9628
9629 2014-02-19 Tom Tromey <tromey@redhat.com>
9630
9631 * target-delegates.c: Rebuild.
9632 * target.c (update_current_target): Don't inherit or default
9633 to_remove_watchpoint.
9634 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9635 TARGET_DEFAULT_NORETURN.
9636
9637 2014-02-19 Tom Tromey <tromey@redhat.com>
9638
9639 * target-delegates.c: Rebuild.
9640 * target.c (update_current_target): Don't inherit or default
9641 to_insert_watchpoint.
9642 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9643 TARGET_DEFAULT_RETURN.
9644
9645 2014-02-19 Tom Tromey <tromey@redhat.com>
9646
9647 * target-delegates.c: Rebuild.
9648 * target.c (update_current_target): Don't inherit or default
9649 to_remove_hw_breakpoint.
9650 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9651 TARGET_DEFAULT_RETURN.
9652
9653 2014-02-19 Tom Tromey <tromey@redhat.com>
9654
9655 * target-delegates.c: Rebuild.
9656 * target.c (update_current_target): Don't inherit or default
9657 to_insert_hw_breakpoint.
9658 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9659 TARGET_DEFAULT_RETURN.
9660
9661 2014-02-19 Tom Tromey <tromey@redhat.com>
9662
9663 * target-delegates.c: Rebuild.
9664 * target.c (update_current_target): Don't inherit or default
9665 to_can_use_hw_breakpoint.
9666 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9667 TARGET_DEFAULT_RETURN.
9668
9669 2014-02-19 Tom Tromey <tromey@redhat.com>
9670
9671 * target-delegates.c: Rebuild.
9672 * target.c (update_current_target): Don't inherit or default
9673 to_files_info.
9674 * target.h (struct target_ops) <to_files_info>: Use
9675 TARGET_DEFAULT_IGNORE.
9676
9677 2014-02-19 Tom Tromey <tromey@redhat.com>
9678
9679 * target-delegates.c: Rebuild.
9680 * target.c (update_current_target): Don't inherit or default
9681 to_store.
9682 * target.h (struct target_ops) <to_store>: Use
9683 TARGET_DEFAULT_NORETURN.
9684
9685 2014-02-19 Tom Tromey <tromey@redhat.com>
9686
9687 * target-delegates.c: Rebuild.
9688 * target.c (update_current_target): Don't inherit or default
9689 to_post_attach.
9690 * target.h (struct target_ops) <to_post_attach>: Use
9691 TARGET_DEFAULT_IGNORE.
9692
9693 2014-02-19 Tom Tromey <tromey@redhat.com>
9694
9695 * target-delegates.c: Rebuild.
9696 * target.c (update_current_target): Don't inherit or default
9697 to_rcmd.
9698 (default_rcmd): New function.
9699 (do_monitor_command): Unconditionally delegate.
9700 * target.h (struct target_ops) <to_rmcd>: Use
9701 TARGET_DEFAULT_FUNC.
9702
9703 2014-02-19 Tom Tromey <tromey@redhat.com>
9704
9705 * target-delegates.c: Rebuild.
9706 * target.c (init_dummy_target): Don't initialize to_attach.
9707 (target_attach): Unconditionally delegate.
9708 * target.h (struct target_ops) <to_attach>: Use
9709 TARGET_DEFAULT_FUNC.
9710
9711 2014-02-19 Tom Tromey <tromey@redhat.com>
9712
9713 * target-delegates.c: Rebuild.
9714 * target.c (target_detach): Unconditionally delegate.
9715 (init_dummy_target): Don't initialize to_detach.
9716 * target.h (struct target_ops) <to_detach>: Use
9717 TARGET_DEFAULT_IGNORE.
9718
9719 2014-02-19 Tom Tromey <tromey@redhat.com>
9720
9721 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9722 Add argument.
9723 (target_augmented_libraries_svr4_read): Add argument.
9724 * target.c (update_current_target): Update.
9725 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9726 argument.
9727
9728 2014-02-19 Tom Tromey <tromey@redhat.com>
9729
9730 * target.h (struct target_ops) <to_call_history_range>: Add
9731 argument.
9732 * target.c (target_call_history_range): Add argument.
9733 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9734 argument.
9735 (record_btrace_call_history_from): Update.
9736
9737 2014-02-19 Tom Tromey <tromey@redhat.com>
9738
9739 * target.h (struct target_ops) <to_call_history_from>: Add
9740 argument.
9741 * target.c (target_call_history_from): Add argument.
9742 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9743 argument.
9744
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9746
9747 * target.h (struct target_ops) <to_call_history>: Add argument.
9748 * target.c (target_call_history): Add argument.
9749 * record-btrace.c (record_btrace_call_history): Add 'self'
9750 argument.
9751
9752 2014-02-19 Tom Tromey <tromey@redhat.com>
9753
9754 * target.h (struct target_ops) <to_insn_history_range>: Add
9755 argument.
9756 * target.c (target_insn_history_range): Add argument.
9757 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9758 argument.
9759 (record_btrace_insn_history_from): Update.
9760
9761 2014-02-19 Tom Tromey <tromey@redhat.com>
9762
9763 * target.h (struct target_ops) <to_insn_history_from>: Add
9764 argument.
9765 * target.c (target_insn_history_from): Add argument.
9766 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9767 argument.
9768
9769 2014-02-19 Tom Tromey <tromey@redhat.com>
9770
9771 * target.h (struct target_ops) <to_insn_history>: Add argument.
9772 * target.c (target_insn_history): Add argument.
9773 * record-btrace.c (record_btrace_insn_history): Add 'self'
9774 argument.
9775
9776 2014-02-19 Tom Tromey <tromey@redhat.com>
9777
9778 * target.h (struct target_ops) <to_goto_record>: Add argument.
9779 * target.c (target_goto_record): Add argument.
9780 * record-full.c (record_full_goto): Add 'self' argument.
9781 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9782
9783 2014-02-19 Tom Tromey <tromey@redhat.com>
9784
9785 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9786 * target.c (target_goto_record_end): Add argument.
9787 * record-full.c (record_full_goto_end): Add 'self' argument.
9788 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9789
9790 2014-02-19 Tom Tromey <tromey@redhat.com>
9791
9792 * target.h (struct target_ops) <to_goto_record_begin>: Add
9793 argument.
9794 * target.c (target_goto_record_begin): Add argument.
9795 * record-full.c (record_full_goto_begin): Add 'self' argument.
9796 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9797 argument.
9798
9799 2014-02-19 Tom Tromey <tromey@redhat.com>
9800
9801 * target.h (struct target_ops) <to_record_is_replaying>: Add
9802 argument.
9803 * target.c (target_record_is_replaying): Add argument.
9804 * record-full.c (record_full_is_replaying): Add 'self' argument.
9805 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9806 argument.
9807 (record_btrace_xfer_partial, record_btrace_store_registers)
9808 (record_btrace_prepare_to_store, record_btrace_resume)
9809 (record_btrace_wait, record_btrace_decr_pc_after_break)
9810 (record_btrace_find_new_threads, record_btrace_thread_alive):
9811 Update.
9812
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9814
9815 * target.h (struct target_ops) <to_delete_record>: Add argument.
9816 * target.c (target_delete_record): Add argument.
9817 * record-full.c (record_full_delete): Add 'self' argument.
9818
9819 2014-02-19 Tom Tromey <tromey@redhat.com>
9820
9821 * target.h (struct target_ops) <to_save_record>: Add argument.
9822 * target.c (target_save_record): Add argument.
9823 * record-full.c (record_full_save): Add 'self' argument.
9824 (record_full_save): Add 'self' argument.
9825
9826 2014-02-19 Tom Tromey <tromey@redhat.com>
9827
9828 * target.h (struct target_ops) <to_info_record>: Add argument.
9829 * target.c (target_info_record): Add argument.
9830 * record.c (info_record_command): Add argument.
9831 * record-full.c (record_full_info): Add 'self' argument.
9832 * record-btrace.c (record_btrace_info): Add 'self' argument.
9833
9834 2014-02-19 Tom Tromey <tromey@redhat.com>
9835
9836 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9837 * target.c (target_stop_recording): Add argument.
9838 * record.c (record_stop): Add argument.
9839 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9840 argument.
9841
9842 2014-02-19 Tom Tromey <tromey@redhat.com>
9843
9844 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9845 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9846 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9847 argument.
9848 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9849 (_initialize_amd64_linux_nat): Use it.
9850 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9851 (_initialize_i386_linux_nat): Use it.
9852
9853 2014-02-19 Tom Tromey <tromey@redhat.com>
9854
9855 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9856 * target.c (target_teardown_btrace): Add argument.
9857 * remote.c (remote_teardown_btrace): Add 'self' argument.
9858 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9859 argument.
9860 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9861 argument.
9862
9863 2014-02-19 Tom Tromey <tromey@redhat.com>
9864
9865 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9866 * target.c (target_disable_btrace): Add argument.
9867 * remote.c (remote_disable_btrace): Add 'self' argument.
9868 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9869 argument.
9870 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9871 argument.
9872
9873 2014-02-19 Tom Tromey <tromey@redhat.com>
9874
9875 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9876 * target.c (target_enable_btrace): Add argument.
9877 * remote.c (remote_enable_btrace): Add 'self' argument.
9878 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9879 argument.
9880 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9881 argument.
9882
9883 2014-02-19 Tom Tromey <tromey@redhat.com>
9884
9885 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9886 (target_can_use_agent): Add argument.
9887 * target.c (update_current_target): Update.
9888 * remote.c (remote_can_use_agent): Add 'self' argument.
9889 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9890
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9892
9893 * target.h (struct target_ops) <to_use_agent>: Add argument.
9894 (target_use_agent): Add argument.
9895 * target.c (update_current_target): Update.
9896 * remote.c (remote_use_agent): Add 'self' argument.
9897 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9898
9899 2014-02-19 Tom Tromey <tromey@redhat.com>
9900
9901 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9902 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9903 (target_traceframe_info): Add argument.
9904 * target.c (update_current_target): Update.
9905 * remote.c (remote_traceframe_info): Add 'self' argument.
9906 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9907
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9909
9910 * target.h (target_static_tracepoint_markers_by_strid): Add
9911 argument.
9912 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9913 'self' argument.
9914 * target.c (update_current_target): Update.
9915 * remote.c (struct target_ops)
9916 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9917 * linux-nat.c (struct target_ops)
9918 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9919
9920 2014-02-19 Tom Tromey <tromey@redhat.com>
9921
9922 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9923 Add argument.
9924 (target_static_tracepoint_marker_at): Add argument.
9925 * target.c (update_current_target): Update.
9926 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9927 argument.
9928
9929 2014-02-19 Tom Tromey <tromey@redhat.com>
9930
9931 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9932 (target_set_permissions): Add argument.
9933 * target.c (update_current_target): Update.
9934 * remote.c (remote_set_permissions): Add 'self' argument.
9935 (remote_start_remote): Update.
9936
9937 2014-02-19 Tom Tromey <tromey@redhat.com>
9938
9939 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9940 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9941 (target_get_tib_address): Add argument.
9942 * target.c (update_current_target): Update.
9943 * remote.c (remote_get_tib_address): Add 'self' argument.
9944
9945 2014-02-19 Tom Tromey <tromey@redhat.com>
9946
9947 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9948 (target_set_trace_notes): Add argument.
9949 * target.c (update_current_target): Update.
9950 * remote.c (remote_set_trace_notes): Add 'self' argument.
9951
9952 2014-02-19 Tom Tromey <tromey@redhat.com>
9953
9954 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9955 argument.
9956 (target_set_trace_buffer_size): Add argument.
9957 * target.c (update_current_target): Update.
9958 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9959
9960 2014-02-19 Tom Tromey <tromey@redhat.com>
9961
9962 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9963 argument.
9964 (target_set_circular_trace_buffer): Add argument.
9965 * target.c (update_current_target): Update.
9966 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9967 argument.
9968
9969 2014-02-19 Tom Tromey <tromey@redhat.com>
9970
9971 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9972 argument.
9973 (target_set_disconnected_tracing): Add argument.
9974 * target.c (update_current_target): Update.
9975 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9976
9977 2014-02-19 Tom Tromey <tromey@redhat.com>
9978
9979 * target.h (struct target_ops)
9980 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9981 (target_get_min_fast_tracepoint_insn_len): Add argument.
9982 * target.c (update_current_target): Update.
9983 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9984 argument.
9985
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9987
9988 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9989 argument.
9990 (target_get_raw_trace_data): Add argument.
9991 * target.c (update_current_target): Update.
9992 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9993
9994 2014-02-19 Tom Tromey <tromey@redhat.com>
9995
9996 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9997 Add argument.
9998 (target_upload_trace_state_variables): Add argument.
9999 * target.c (update_current_target): Update.
10000 * remote.c (remote_upload_trace_state_variables): Add 'self'
10001 argument.
10002 (remote_start_remote): Update.
10003
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10005
10006 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10007 argument.
10008 (target_upload_tracepoints): Add argument.
10009 * target.c (update_current_target): Update.
10010 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10011 (remote_start_remote): Update.
10012
10013 2014-02-19 Tom Tromey <tromey@redhat.com>
10014
10015 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10016 (target_save_trace_data): Add argument.
10017 * target.c (update_current_target): Update.
10018 * remote.c (remote_save_trace_data): Add 'self' argument.
10019
10020 2014-02-19 Tom Tromey <tromey@redhat.com>
10021
10022 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10023 argument.
10024 * target.h (struct target_ops)
10025 <to_get_trace_state_variable_value>: Add argument.
10026 (target_get_trace_state_variable_value): Add argument.
10027 * target.c (update_current_target): Update.
10028 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10029 argument.
10030 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10031
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10035 * target.h (struct target_ops) <to_trace_find>: Add argument.
10036 (target_trace_find): Add argument.
10037 * target.c (update_current_target): Update.
10038 * remote.c (remote_trace_find): Add 'self' argument.
10039 * ctf.c (ctf_trace_find): Add 'self' argument.
10040
10041 2014-02-19 Tom Tromey <tromey@redhat.com>
10042
10043 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10044 (target_trace_stop): Add argument.
10045 * target.c (update_current_target): Update.
10046 * remote.c (remote_trace_stop): Add 'self' argument.
10047
10048 2014-02-19 Tom Tromey <tromey@redhat.com>
10049
10050 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10051 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10052 argument.
10053 (target_get_tracepoint_status): Add argument.
10054 * target.c (update_current_target): Update.
10055 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10056
10057 2014-02-19 Tom Tromey <tromey@redhat.com>
10058
10059 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10060 * target.h (struct target_ops) <to_get_trace_status>: Add
10061 argument.
10062 (target_get_trace_status): Add argument.
10063 * target.c (update_current_target): Update.
10064 * remote.c (remote_get_trace_status): Add 'self' argument.
10065 (remote_start_remote, remote_can_download_tracepoint): Update.
10066 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10067
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10069
10070 * target.h (struct target_ops) <to_trace_start>: Add argument.
10071 (target_trace_start): Add argument.
10072 * target.c (update_current_target): Update.
10073 * remote.c (remote_trace_start): Add 'self' argument.
10074
10075 2014-02-19 Tom Tromey <tromey@redhat.com>
10076
10077 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10078 Add argument.
10079 (target_trace_set_readonly_regions): Add argument.
10080 * target.c (update_current_target): Update.
10081 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10082 argument.
10083
10084 2014-02-19 Tom Tromey <tromey@redhat.com>
10085
10086 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10087 argument.
10088 (target_disable_tracepoint): Add argument.
10089 * target.c (update_current_target): Update.
10090 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10091
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10093
10094 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10095 argument.
10096 (target_enable_tracepoint): Add argument.
10097 * target.c (update_current_target): Update.
10098 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10099
10100 2014-02-19 Tom Tromey <tromey@redhat.com>
10101
10102 * target.h (struct target_ops) <to_download_trace_state_variable>:
10103 Add argument.
10104 (target_download_trace_state_variable): Add argument.
10105 * target.c (update_current_target): Update.
10106 * remote.c (remote_download_trace_state_variable): Add 'self'
10107 argument.
10108
10109 2014-02-19 Tom Tromey <tromey@redhat.com>
10110
10111 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10112 argument.
10113 (target_can_download_tracepoint): Add argument.
10114 * target.c (update_current_target): Update.
10115 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10116
10117 2014-02-19 Tom Tromey <tromey@redhat.com>
10118
10119 * target.h (struct target_ops) <to_download_tracepoint>: Add
10120 argument.
10121 (target_download_tracepoint): Add argument.
10122 * target.c (update_current_target): Update.
10123 * remote.c (remote_download_tracepoint): Add 'self' argument.
10124
10125 2014-02-19 Tom Tromey <tromey@redhat.com>
10126
10127 * target.h (struct target_ops) <to_trace_init>: Add argument.
10128 (target_trace_init): Add argument.
10129 * target.c (update_current_target): Update.
10130 * remote.c (remote_trace_init): Add 'self' argument.
10131
10132 2014-02-19 Tom Tromey <tromey@redhat.com>
10133
10134 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10135 * target.c (target_fileio_readlink): Add argument.
10136 * remote.c (remote_hostio_readlink): Add 'self' argument.
10137 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10138
10139 2014-02-19 Tom Tromey <tromey@redhat.com>
10140
10141 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10142 * target.c (target_fileio_unlink): Add argument.
10143 * remote.c (remote_hostio_unlink): Add 'self' argument.
10144 (remote_file_delete): Update.
10145 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10146
10147 2014-02-19 Tom Tromey <tromey@redhat.com>
10148
10149 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10150 * target.c (target_fileio_close): Add argument.
10151 * remote.c (remote_hostio_close): Add 'self' argument.
10152 (remote_hostio_close_cleanup): Update.
10153 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10154 Update.
10155 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10156
10157 2014-02-19 Tom Tromey <tromey@redhat.com>
10158
10159 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10160 * target.c (target_fileio_pread): Add argument.
10161 * remote.c (remote_hostio_pread): Add 'self' argument.
10162 (remote_bfd_iovec_pread, remote_file_get): Update.
10163 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10164
10165 2014-02-19 Tom Tromey <tromey@redhat.com>
10166
10167 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10168 * target.c (target_fileio_pwrite): Add argument.
10169 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10170 (remote_file_put): Update.
10171 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10172
10173 2014-02-19 Tom Tromey <tromey@redhat.com>
10174
10175 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10176 * target.c (target_fileio_open): Add argument.
10177 * remote.c (remote_hostio_open): Add 'self' argument.
10178 (remote_bfd_iovec_open): Add 'self' argument.
10179 (remote_file_put): Add 'self' argument.
10180 (remote_file_get): Add 'self' argument.
10181 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10182
10183 2014-02-19 Tom Tromey <tromey@redhat.com>
10184
10185 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10186 Add argument.
10187 (target_can_run_breakpoint_commands): Add argument.
10188 * target.c (update_current_target): Update.
10189 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10190 argument.
10191 (remote_insert_breakpoint): Add 'self' argument.
10192 (remote_insert_hw_breakpoint): Add 'self' argument.
10193 (remote_can_run_breakpoint_commands): Add 'self' argument.
10194
10195 2014-02-19 Tom Tromey <tromey@redhat.com>
10196
10197 * target.h (struct target_ops)
10198 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10199 (target_supports_evaluation_of_breakpoint_conditions): Add
10200 argument.
10201 * target.c (update_current_target): Update.
10202 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10203 argument.
10204 (remote_insert_breakpoint): Add 'self' argument.
10205 (remote_insert_hw_breakpoint): Add 'self' argument.
10206 (remote_supports_cond_breakpoints): Add 'self' argument.
10207
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10209
10210 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10211 argument.
10212 (target_supports_string_tracing): Add argument.
10213 * target.c (update_current_target): Update.
10214 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10215
10216 2014-02-19 Tom Tromey <tromey@redhat.com>
10217
10218 * target.h (struct target_ops)
10219 <to_supports_disable_randomization>: Add argument.
10220 * target.c (find_default_supports_disable_randomization): Add
10221 argument.
10222 (target_supports_disable_randomization): Add argument.
10223 (find_default_supports_disable_randomization): Add 'self'
10224 argument.
10225 * remote.c (extended_remote_supports_disable_randomization): Add
10226 'self' argument.
10227 (remote_supports_disable_randomization): Add 'self' argument.
10228 (extended_remote_create_inferior): Update.
10229 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10230 'self' argument.
10231
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10233
10234 * target.h (struct target_ops)
10235 <to_supports_enable_disable_tracepoint>: Add argument.
10236 (target_supports_enable_disable_tracepoint): Add argument.
10237 * target.c (update_current_target): Update.
10238 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10239 argument.
10240
10241 2014-02-19 Tom Tromey <tromey@redhat.com>
10242
10243 * target.h (struct target_ops) <to_supports_multi_process>: Add
10244 argument.
10245 (target_supports_multi_process): Add argument.
10246 * target.c (update_current_target): Update.
10247 * remote.c (remote_supports_multi_process): Add 'self' argument.
10248 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10249 argument.
10250 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10251 argument.
10252
10253 2014-02-19 Tom Tromey <tromey@redhat.com>
10254
10255 * target.h (struct target_ops) <to_execution_direction>: Add
10256 argument.
10257 (target_execution_direction): Add argument.
10258 * target.c (default_execution_direction): Add 'self' argument.
10259 * record-full.c (record_full_execution_direction): Add 'self'
10260 argument.
10261
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10263
10264 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10265 argument.
10266 (target_can_execute_reverse): Add argument.
10267 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10268 * record-full.c (record_full_can_execute_reverse): Add 'self'
10269 argument.
10270 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10271 argument.
10272
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10274
10275 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10276 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10277 argument.
10278 (target_get_ada_task_ptid): Add argument.
10279 * target.c (update_current_target): Update.
10280 (default_get_ada_task_ptid): Add 'self' argument.
10281 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10282 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10283 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10284 argument.
10285 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10286 argument.
10287 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10288 argument.
10289 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10290 argument.
10291 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10292 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10293 argument.
10294
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10296
10297 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10298 (target_goto_bookmark): Add argument.
10299 * target.c (dummy_goto_bookmark): Add 'self' argument.
10300 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10301
10302 2014-02-19 Tom Tromey <tromey@redhat.com>
10303
10304 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10305 (target_get_bookmark): Add argument.
10306 * target.c (dummy_get_bookmark): Add 'self' argument.
10307 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10308
10309 2014-02-19 Tom Tromey <tromey@redhat.com>
10310
10311 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10312 argument.
10313 (target_make_corefile_notes): Add argument.
10314 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10315 * procfs.c (procfs_make_note_section): Add 'self' argument.
10316 (procfs_make_note_section): Add 'self' argument.
10317 (procfs_make_note_section): Add 'self' argument.
10318 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10319 argument.
10320 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10321 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10322 * exec.c (exec_make_note_section): Add 'self' argument.
10323 (exec_make_note_section): Add 'self' argument.
10324
10325 2014-02-19 Tom Tromey <tromey@redhat.com>
10326
10327 * target.h (struct target_ops) <to_find_memory_regions>: Add
10328 argument.
10329 (target_find_memory_regions): Add argument.
10330 * target.c (dummy_find_memory_regions): Add 'self' argument.
10331 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10332 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10333 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10334 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10335 * exec. (exec_do_find_memory_regions): New global.
10336 (exec_set_find_memory_regions): Rewrite.
10337 (exec_find_memory_regions): New function.
10338 (init_exec_ops): Use exec_find_memory_regions.
10339
10340 2014-02-19 Tom Tromey <tromey@redhat.com>
10341
10342 * target.h (struct target_ops) <to_supports_non_stop>: Add
10343 argument.
10344 * target.c (find_default_supports_non_stop): Add argument.
10345 (target_supports_non_stop): Add argument.
10346 (find_default_supports_non_stop): Add 'self' argument.
10347 * remote.c (remote_supports_non_stop): Add 'self' argument.
10348 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10349
10350 2014-02-19 Tom Tromey <tromey@redhat.com>
10351
10352 * target.h (struct target_ops) <to_log_command>: Add argument.
10353 (target_log_command): Add argument.
10354 * serial.h (serial_log_command): Add 'self' argument.
10355 * serial.c (serial_log_command): Add 'self' argument.
10356
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10360 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10361 argument.
10362 (target_pid_to_exec_file): Add argument.
10363 * target.c (debug_to_pid_to_exec_file): Add argument.
10364 (update_current_target): Update.
10365 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10366 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10367 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10368 (linux_handle_extended_wait): Update.
10369 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10370 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10371 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10372 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10373
10374 2014-02-19 Tom Tromey <tromey@redhat.com>
10375
10376 * target.h (struct target_ops) <to_rcmd>: Add argument.
10377 (target_rcmd): Add argument.
10378 * target.c (debug_to_rcmd): Add argument.
10379 (update_current_target, do_monitor_command): Update.
10380 * remote.c (remote_rcmd): Add 'self' argument.
10381 * monitor.c (monitor_rcmd): Add 'self' argument.
10382
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10384
10385 * windows-nat.c (windows_stop): Add 'self' argument.
10386 * target.h (struct target_ops) <to_stop>: Add argument.
10387 * target.c (target_stop): Add argument.
10388 (debug_to_stop): Add argument.
10389 (update_current_target): Update.
10390 * remote.c (remote_stop): Add 'self' argument.
10391 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10392 (gdbsim_cntrl_c): Update.
10393 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10394 * procfs.c (procfs_stop): Add 'self' argument.
10395 * nto-procfs.c (procfs_stop): Add 'self' argument.
10396 * monitor.c (monitor_stop): Add 'self' argument.
10397 (monitor_open): Update.
10398 * linux-nat.c (linux_nat_stop): Add argument.
10399 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10400 * gnu-nat.c (gnu_stop): Add 'self' argument.
10401 * darwin-nat.c (darwin_stop): Add 'self' argument.
10402
10403 2014-02-19 Tom Tromey <tromey@redhat.com>
10404
10405 * target.h (struct target_ops) <to_thread_name>: Add argument.
10406 * target.c (target_thread_name): Add argument.
10407 (update_current_target): Update.
10408 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10409
10410 2014-02-19 Tom Tromey <tromey@redhat.com>
10411
10412 * target.h (struct target_ops) <to_extra_thread_info>: Add
10413 argument.
10414 (target_extra_thread_info): Add argument.
10415 * target.c (update_current_target): Update.
10416 * remote.c (remote_threads_extra_info): Add 'self' argument.
10417 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10418 argument.
10419 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10420 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10421 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10422 argument.
10423 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10424 argument.
10425 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10426 argument.
10427 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10428 argument.
10429
10430 2014-02-19 Tom Tromey <tromey@redhat.com>
10431
10432 * target.h (struct target_ops) <to_program_signals>: Add argument.
10433 * target.c (target_program_signals): Add argument.
10434 * remote.c (remote_program_signals): Add 'self' argument.
10435
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10437
10438 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10439 * target.c (target_pass_signals): Add argument.
10440 * remote.c (remote_pass_signals): Add 'self' argument.
10441 (remote_start_remote): Update.
10442 * procfs.c (procfs_pass_signals): Add 'self' argument.
10443 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10444 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10445 (linux_nat_create_inferior, linux_nat_attach): Update.
10446
10447 2014-02-19 Tom Tromey <tromey@redhat.com>
10448
10449 * windows-nat.c (windows_can_run): Add 'self' argument.
10450 * target.h (struct target_ops) <to_can_run>: Add argument.
10451 (target_can_run): Add argument.
10452 * target.c (debug_to_can_run): Add argument.
10453 (update_current_target): Update.
10454 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10455 * inf-child.c (inf_child_can_run): Add 'self' argument.
10456 * go32-nat.c (go32_can_run): Add 'self' argument.
10457
10458 2014-02-19 Tom Tromey <tromey@redhat.com>
10459
10460 * target.h (struct target_ops) <to_has_exited>: Add argument.
10461 (target_has_exited): Add argument.
10462 * target.c (debug_to_has_exited): Add argument.
10463 (update_current_target): Update.
10464
10465 2014-02-19 Tom Tromey <tromey@redhat.com>
10466
10467 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10468 argument.
10469 (target_set_syscall_catchpoint): Add argument.
10470 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10471 argument.
10472 * target.c (update_current_target): Update.
10473
10474 2014-02-19 Tom Tromey <tromey@redhat.com>
10475
10476 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10477 argument.
10478 (target_remove_exec_catchpoint): Add argument.
10479 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10480 (update_current_target): Update.
10481 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10482 argument.
10483
10484 2014-02-19 Tom Tromey <tromey@redhat.com>
10485
10486 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10487 argument.
10488 (target_insert_exec_catchpoint): Add argument.
10489 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10490 (update_current_target): Update.
10491 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10492 argument.
10493
10494 2014-02-19 Tom Tromey <tromey@redhat.com>
10495
10496 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10497 argument.
10498 (target_remove_vfork_catchpoint): Add argument.
10499 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10500 (update_current_target): Update.
10501 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10502 argument.
10503
10504 2014-02-19 Tom Tromey <tromey@redhat.com>
10505
10506 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10507 argument.
10508 (target_insert_vfork_catchpoint): Add argument.
10509 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10510 (update_current_target): Update.
10511 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10512 argument.
10513
10514 2014-02-19 Tom Tromey <tromey@redhat.com>
10515
10516 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10517 argument.
10518 (target_remove_fork_catchpoint): Add argument.
10519 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10520 (update_current_target): Update.
10521 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10522 argument.
10523
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10525
10526 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10527 argument.
10528 (target_insert_fork_catchpoint): Add argument.
10529 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10530 (update_current_target): Update.
10531 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10532 argument.
10533
10534 2014-02-19 Tom Tromey <tromey@redhat.com>
10535
10536 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10537 argument.
10538 (target_post_startup_inferior): Add argument.
10539 * target.c (debug_to_post_startup_inferior): Add argument.
10540 (update_current_target): Update.
10541 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10542 argument.
10543 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10544 argument.
10545 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10546 argument.
10547 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10548 argument.
10549 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10550 'self' argument.
10551 (super_post_startup_inferior): Likewise.
10552 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10553 'self' argument.
10554 (super_post_startup_inferior): Likewise.
10555 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10556 Add 'self' argument.
10557 (super_post_startup_inferior): Likewise.
10558
10559 2014-02-19 Tom Tromey <tromey@redhat.com>
10560
10561 * target.h (struct target_ops) <to_load>: Add argument.
10562 * target.c (target_load): Add argument.
10563 (debug_to_load): Add argument.
10564 (update_current_target): Update.
10565 * remote.c (remote_load): Add 'self' argument.
10566 * remote-sim.c (gdbsim_load): Add 'self' argument.
10567 * remote-mips.c (mips_load): Add 'self' argument.
10568 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10569 * monitor.c (monitor_load): Add 'self' argument.
10570 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10571
10572 2014-02-19 Tom Tromey <tromey@redhat.com>
10573
10574 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10575 (target_terminal_info): Add argument.
10576 * target.c (debug_to_terminal_info): Add argument.
10577 (default_terminal_info): Likewise.
10578 * inflow.c (child_terminal_info): Add 'self' argument.
10579 * inferior.h (child_terminal_info): Add 'self' argument.
10580 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10581
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10583
10584 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10585 argument.
10586 (target_terminal_save_ours): Add argument.
10587 * target.c (debug_to_terminal_save_ours): Add argument.
10588 (update_current_target): Update.
10589 * inflow.c (terminal_save_ours): Add 'self' argument.
10590 * inferior.h (terminal_save_ours): Add 'self' argument.
10591
10592 2014-02-19 Tom Tromey <tromey@redhat.com>
10593
10594 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10595 (target_terminal_ours): Add argument.
10596 * target.c (debug_to_terminal_ours): Add argument.
10597 (update_current_target): Update.
10598 * remote.c (remote_terminal_ours): Add 'self' argument.
10599 (remote_close): Update.
10600 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10601 * inflow.c (terminal_ours): Add 'self' argument.
10602 * inferior.h (terminal_ours): Add 'self' argument.
10603 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10604
10605 2014-02-19 Pedro Alves <palves@redhat.com>
10606 Tom Tromey <tromey@redhat.com>
10607
10608 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10609 argument.
10610 (target_terminal_ours_for_output): Add argument.
10611 * target.c (debug_to_terminal_ours_for_output): Add argument.
10612 (update_current_target): Update.
10613 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10614 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10615 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10616
10617 2014-02-19 Tom Tromey <tromey@redhat.com>
10618
10619 * target.h (struct target_ops) <to_terminal_inferior>: Add
10620 argument.
10621 * target.c (target_terminal_inferior): Add argument.
10622 (update_current_target): Update.
10623 * remote.c (remote_terminal_inferior): Add 'self' argument.
10624 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10625 * inflow.c (terminal_inferior): Add 'self' argument.
10626 * inferior.h (terminal_inferior): Add 'self' argument.
10627 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10628 (go32_terminal_inferior): Add 'self' argument.
10629
10630 2014-02-19 Tom Tromey <tromey@redhat.com>
10631
10632 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10633 (target_terminal_init): Add argument.
10634 * target.c (debug_to_terminal_init): Add argument.
10635 (update_current_target): Update.
10636 * inflow.c (terminal_init_inferior): Add 'self' argument.
10637 * inferior.h (terminal_init_inferior): Add 'self' argument.
10638 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10639 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10640
10641 2014-02-19 Tom Tromey <tromey@redhat.com>
10642
10643 * target.h (struct target_ops)
10644 <to_can_accel_watchpoint_condition>: Add argument.
10645 (target_can_accel_watchpoint_condition): Add argument.
10646 * target.c (debug_to_can_accel_watchpoint_condition): Add
10647 argument.
10648 (update_current_target): Update.
10649 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10650 'self' argument.
10651
10652 2014-02-19 Tom Tromey <tromey@redhat.com>
10653
10654 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10655 Add argument.
10656 (target_region_ok_for_hw_watchpoint): Add argument.
10657 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10658 (default_region_ok_for_hw_watchpoint): Add argument.
10659 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10660 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10661 argument.
10662 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10663 argument.
10664 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10665 argument.
10666 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10667 'self' argument.
10668 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10669 'self' argument.
10670 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10671 'self' argument.
10672 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10673 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10674 'self' argument.
10675 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10676 Add 'self' argument.
10677
10678 2014-02-19 Tom Tromey <tromey@redhat.com>
10679
10680 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10681 argument.
10682 (target_insert_watchpoint): Add argument.
10683 * target.c (debug_to_insert_watchpoint): Add argument.
10684 (update_current_target): Update.
10685 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10686 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10687 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10688 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10689 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10690 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10691 argument.
10692 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10693 (procfs_insert_hw_watchpoint): Add 'self' argument.
10694 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10695 argument.
10696 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10697 argument.
10698 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10699 argument.
10700 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10701 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10702 argument.
10703 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10704 'self' argument.
10705
10706 2014-02-19 Tom Tromey <tromey@redhat.com>
10707
10708 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10709 argument.
10710 (target_remove_watchpoint): Add argument.
10711 * target.c (debug_to_remove_watchpoint): Add argument.
10712 (update_current_target): Update.
10713 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10714 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10715 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10716 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10717 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10718 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10719 argument.
10720 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10721 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10722 argument.
10723 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10724 argument.
10725 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10726 argument.
10727 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10728 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10729 argument.
10730 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10731 'self' argument.
10732
10733 2014-02-19 Tom Tromey <tromey@redhat.com>
10734
10735 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10736 argument.
10737 (target_remove_hw_breakpoint): Add argument.
10738 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10739 (update_current_target): Update.
10740 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10741 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10742 argument.
10743 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10744 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10745 argument.
10746 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10747 'self' argument.
10748
10749 2014-02-19 Tom Tromey <tromey@redhat.com>
10750
10751 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10752 argument.
10753 (target_insert_hw_breakpoint): Add argument.
10754 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10755 (update_current_target): Update.
10756 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10757 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10758 argument.
10759 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10760 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10761 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10762 argument.
10763 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10764 'self' argument.
10765
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10767
10768 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10769 argument.
10770 (target_can_use_hardware_watchpoint): Add argument.
10771 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10772 (update_current_target): Update.
10773 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10774 argument.
10775 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10776 argument.
10777 * remote.c (remote_check_watch_resources): Add 'self' argument.
10778 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10779 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10780 argument.
10781 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10782 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10783 argument.
10784 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10785 argument.
10786 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10787 argument.
10788 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10789 argument.
10790 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10791 argument.
10792 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10793 argument.
10794 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10795 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10796 argument.
10797 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10798 'self' argument.
10799
10800 2014-02-19 Tom Tromey <tromey@redhat.com>
10801
10802 * target.h (struct target_ops) <to_post_attach>: Add argument.
10803 (target_post_attach): Add argument.
10804 * target.c (debug_to_post_attach): Add argument.
10805 (update_current_target): Update.
10806 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10807 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10808 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10809 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10810 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10811
10812 2014-02-19 Tom Tromey <tromey@redhat.com>
10813
10814 * windows-nat.c (windows_close): Add 'self' argument.
10815 * tracepoint.c (tfile_close): Add 'self' argument.
10816 * target.h (struct target_ops) <to_close>: Add argument.
10817 * target.c (target_close): Add argument.
10818 (update_current_target): Update.
10819 * remote.c (remote_close): Add 'self' argument.
10820 * remote-sim.c (gdbsim_close): Add 'self' argument.
10821 * remote-mips.c (mips_close): Add 'self' argument.
10822 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10823 * record-full.c (record_full_close): Add 'self' argument.
10824 * record-btrace.c (record_btrace_close): Add 'self' argument.
10825 * monitor.h (monitor_close): Add 'self' argument.
10826 * monitor.c (monitor_close): Add 'self' argument.
10827 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10828 * linux-nat.c (linux_nat_close): Add argument.
10829 * go32-nat.c (go32_close): Add 'self' argument.
10830 * exec.c (exec_close_1): Add 'self' argument.
10831 * ctf.c (ctf_close): Add 'self' argument.
10832 * corelow.c (core_close): Add 'self' argument.
10833 (core_close_cleanup): Update.
10834 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10835 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10836
10837 2014-02-19 Tom Tromey <tromey@redhat.com>
10838
10839 * remote.c (remote_load): New function.
10840 (init_remote_ops): Use it.
10841
10842 2014-02-19 Tom Tromey <tromey@redhat.com>
10843
10844 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10845 argument.
10846 * common/linux-btrace.h (linux_supports_btrace): Update.
10847 * remote.c (remote_supports_btrace): Add "self" argument.
10848 * target-delegates.c: Rebuild.
10849 * target.c (target_supports_btrace): Remove.
10850 * target.h (struct target_ops) <to_supports_btrace>: Add
10851 target_ops argument.
10852 (target_supports_btrace): New define.
10853
10854 2014-02-19 Tom Tromey <tromey@redhat.com>
10855
10856 * record-full.c (record_full_beneath_to_resume_ops)
10857 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10858 (record_full_beneath_to_wait)
10859 (record_full_beneath_to_store_registers_ops)
10860 (record_full_beneath_to_store_registers)
10861 (record_full_beneath_to_xfer_partial_ops)
10862 (record_full_beneath_to_xfer_partial)
10863 (record_full_beneath_to_insert_breakpoint_ops)
10864 (record_full_beneath_to_insert_breakpoint)
10865 (record_full_beneath_to_remove_breakpoint_ops)
10866 (record_full_beneath_to_remove_breakpoint)
10867 (record_full_beneath_to_stopped_by_watchpoint)
10868 (record_full_beneath_to_stopped_data_address)
10869 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10870 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10871 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10872 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10873 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10874 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10875 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10876 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10877 (record_full_resume, record_full_wait_1)
10878 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10879 (record_full_store_registers, record_full_xfer_partial)
10880 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10881 (record_full_async, record_full_core_xfer_partial): Use target
10882 delegation.
10883 * target-delegates.c: Rebuild.
10884 * target.c (current_xfer_partial): Remove.
10885 (update_current_target): Do not INHERIT or de_fault
10886 to_insert_breakpoint, to_remove_breakpoint,
10887 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10888 to_is_async_p, to_async. Do not set to_xfer_partial field.
10889 (default_xfer_partial): Simplify.
10890 (current_xfer_partial): Remove.
10891 (target_wait, target_resume): Simplify.
10892 (find_default_can_async_p, find_default_is_async_p): Update.
10893 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10894 to_xfer_partial, to_stopped_by_watchpoint,
10895 to_stopped_data_address.
10896 (target_store_registers): Simplify.
10897 (forward_target_remove_breakpoint)
10898 (forward_target_insert_breakpoint): Remove.
10899 (target_remove_breakpoint, target_insert_breakpoint)
10900 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10901 * target.h (struct target_ops) <to_resume, to_wait,
10902 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10903 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10904 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10905 markup.
10906 (forward_target_remove_breakpoint)
10907 (forward_target_insert_breakpoint): Remove.
10908 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10909 directly.
10910 (record_btrace_insert_breakpoint): Delegate directly.
10911
10912 2014-02-19 Tom Tromey <tromey@redhat.com>
10913
10914 PR build/7701:
10915 * target-delegates.c: New file.
10916 * target.c: Include target-delegates.c.
10917 (init_dummy_target): Call install_dummy_methods.
10918 (complete_target_initialization): Call install_delegators.
10919 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10920 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10921 * make-target-delegates: New file.
10922
10923 2014-02-19 Tom Tromey <tromey@redhat.com>
10924
10925 * record.c (find_record_target): Use find_target_at.
10926 * target.c (find_target_at): New function.
10927 * target.h (find_target_at): Declare.
10928
10929 2014-02-19 Tom Tromey <tromey@redhat.com>
10930
10931 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10932 Add 'ops' argument.
10933 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10934 'ops' argument.
10935 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10936 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10937 'ops' argument.
10938 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10939 argument.
10940 * linux-nat.c (save_sigtrap): Update.
10941 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10942 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10943 (linux_nat_close): Update.
10944 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10945 argument.
10946 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10947 argument.
10948 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10949 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10950 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10951 (tmp_to_async): Add 'ops' argument.
10952 (record_full_stopped_by_watchpoint, record_full_async)
10953 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10954 argument.
10955 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10956 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10957 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10958 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10959 (remote_is_async_p, remote_async): Add 'ops' argument.
10960 (remote_stopped_data_address): Update.
10961 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10962 * target.c (update_current_target)
10963 (find_default_can_async_p, find_default_is_async_p): Update.
10964 (init_dummy_target): Update.
10965 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10966 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10967 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10968 (target_can_async_p, target_is_async_p, target_async)
10969 (target_stopped_by_watchpoint): Update.
10970
10971 2014-02-19 Yao Qi <yao@codesourcery.com>
10972
10973 PR gdb/16220
10974 * gdbarch.sh: Remove startup_gdbarch.
10975 * gdbarch.c: Regenerated.
10976 * gdbarch.h: Likewise.
10977
10978 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10979
10980 * rl78-tdep.c (rl78_g10_register_name): New function.
10981 (rl78_return_value): Add g10 support.
10982 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10983 g10.
10984
10985 2014-02-17 Doug Evans <xdje42@gmail.com>
10986
10987 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10988 (SUBDIR_GUILE_SRCS): Ditto.
10989 (scm-gsmob.o): Ditto.
10990
10991 2014-02-17 Yao Qi <yao@codesourcery.com>
10992
10993 * gnu-nat.c (ILL_RPC): Declare defined function.
10994
10995 2014-02-17 Yao Qi <yao@codesourcery.com>
10996
10997 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10998 mach_msg_type_number_t.
10999 (gnu_write_inferior): Likewise.
11000
11001 2014-02-17 Yao Qi <yao@codesourcery.com>
11002
11003 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11004 in format string.
11005 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11006 (inf_validate_procs, inf_signal): Likewise.
11007 (S_exception_raise_request): Likewise.
11008 (do_mach_notify_dead_name): Likewise.
11009 (steal_exc_port): Likewise.
11010 (gnu_read_inferior): Change 'copy_count''s type to
11011 mach_msg_type_number_t.
11012 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11013 format string.
11014
11015 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11016
11017 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11018 flag. Adjust all users; in particular...
11019 (gnu_wait): ..., don't decrement its value in here...
11020 (gnu_create_inferior): ..., and instead set the flag in here,
11021 around the startup_inferior call, and call that one with
11022 START_INFERIOR_TRAPS_EXPECTED.
11023
11024 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11025 (ILL_RPC): ... new macro.
11026 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11027 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11028 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11029 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11030 functions with ILL_RPC macro.
11031 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11032 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11033 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11034 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11035 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11036 (S_proc_getlogin_reply, S_proc_getsid_reply)
11037 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11038 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11039 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11040 (S_proc_getnports_reply, S_proc_is_important_reply)
11041 (S_proc_get_code_reply): New stub functions, generated with
11042 ILL_RPC macro.
11043
11044 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11045 collected the type check structures.
11046
11047 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11048
11049 2014-02-14 Doug Evans <dje@google.com>
11050
11051 * target.c (target_write_partial): Fix result type.
11052
11053 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11054
11055 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11056 the proper offsets to access fpregset_t.
11057
11058 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11059
11060 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11061 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11062 * h8300-tdep.c (setmachinelist): Remove global.
11063 * hppa-tdep.c (hppa_sigtramp): Remove global.
11064 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11065 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11066 * ravenscar-thread.c (update_target_observer): Remove global.
11067 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11068
11069 2014-02-12 Tom Tromey <tromey@redhat.com>
11070
11071 * common/rsp-low.c: Update comments.
11072 * common/rsp-low.h: Update comments.
11073
11074 2014-02-12 Tom Tromey <tromey@redhat.com>
11075
11076 * common/rsp-low.c (convert_ascii_to_int): Remove.
11077 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11078
11079 2014-02-12 Tom Tromey <tromey@redhat.com>
11080
11081 * common/rsp-low.h (unhexify): Don't declare.
11082 * common/rsp-low.c (unhexify): Remove.
11083
11084 2014-02-12 Tom Tromey <tromey@redhat.com>
11085
11086 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11087 * common/rsp-low.c (convert_int_to_ascii): Remove.
11088
11089 2014-02-12 Tom Tromey <tromey@redhat.com>
11090
11091 * common/rsp-low.h (hexify): Don't declare.
11092 * common/rsp-low.c (hexify): Remove.
11093
11094 2014-02-12 Tom Tromey <tromey@redhat.com>
11095
11096 * common/rsp-low.c (hexify): Never take strlen of argument.
11097
11098 2014-02-12 Tom Tromey <tromey@redhat.com>
11099
11100 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11101 * remote.c (extended_remote_run, remote_rcmd)
11102 (remote_download_trace_state_variable, remote_save_trace_data)
11103 (remote_set_trace_notes): Update.
11104 * tracepoint.c (encode_source_string, tfile_write_status)
11105 (tfile_write_uploaded_tsv): Update.
11106
11107 2014-02-12 Tom Tromey <tromey@redhat.com>
11108
11109 * tracepoint.c: Include rsp-low.h.
11110 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11111 * remote.c: Include rsp-low.h.
11112 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11113 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11114 (remote_unescape_input): Move to common/rsp-low.c.
11115 * common/rsp-low.h: New file.
11116 * common/rsp-low.c: New file.
11117 * Makefile.in (SFILES): Add common/rsp-low.c.
11118 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11119 (COMMON_OBS): Add rsp-low.o.
11120 (rsp-low.o): New target.
11121
11122 2014-02-12 Tom Tromey <tromey@redhat.com>
11123
11124 * utils.h: Include print-utils.h.
11125 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11126 (int_string, core_addr_to_string, core_addr_to_string_nz)
11127 (hex_string, hex_string_custom): Don't declare.
11128 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11129 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11130 (hex_string_custom, int_string, core_addr_to_string)
11131 (core_addr_to_string_nz, host_address_to_string): Move to
11132 common/print-utils.c.
11133 * common/print-utils.h: New file.
11134 * common/print-utils.c: New file
11135 * Makefile.in (SFILES): Add common/print-utils.c.
11136 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11137 (COMMON_OBS): Add print-utils.o.
11138 (print-utils.o): New target.
11139
11140 2014-02-12 Tom Tromey <tromey@redhat.com>
11141
11142 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11143
11144 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11145
11146 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11147
11148 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11149
11150 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11151 if a PT_IO ptrace request returns sucessfully but indicates that 0
11152 bytes were transferred.
11153
11154 2014-02-12 Pedro Alves <palves@redhat.com>
11155 Kevin Buettner <kevinb@redhat.com>
11156
11157 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11158 TYPE_INSTANCE_FLAG_CODE_SPACE.
11159
11160 2014-02-12 Pedro Alves <palves@redhat.com>
11161
11162 * h8300-tdep.c (pseudo_from_raw_register)
11163 (raw_from_pseudo_register): New functions.
11164 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11165 them.
11166
11167 2014-02-12 Pedro Alves <palves@redhat.com>
11168
11169 * h8300-tdep.c (h8300_register_sim_regno): New function.
11170 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11171 gdbarch_register_sim_regno hook.
11172
11173 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11174
11175 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11176
11177 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11178
11179 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11180
11181 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11182
11183 * obsd-tdep.h (obsd_init_abi): New prototype.
11184 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11185 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11186 (obsd_init_abi): New functions.
11187 * i386obsd-tdep.c: Include "obsd-tdep.h".
11188 (i386obsd_init_abi): Call obsd_init_abi.
11189 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11190 (amd64obsd_init_abi): Call obsd_init_abi.
11191 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11192 obsd-tdep.c to gdb_target_obs.
11193
11194 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11195
11196 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11197 double float arguments to 16-byte in the argument slots.
11198
11199 2014-02-11 Doug Evans <xdje42@gmail.com>
11200
11201 * configure.ac: Don't crash if pkg-config is not found and guile
11202 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11203 in guile checks.
11204 * configure: Regenerate.
11205
11206 2014-02-11 Yao Qi <yao@codesourcery.com>
11207
11208 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11209 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11210 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11211 * gnu-nat.c (gnu_xfer_memory): Likewise.
11212 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11213 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11214 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11215 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11216
11217 2014-02-11 Yao Qi <yao@codesourcery.com>
11218
11219 * target.h (enum target_xfer_error): Rename to ...
11220 (enum target_xfer_status): ... it. New. All users updated.
11221 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11222 New.
11223 (TARGET_XFER_STATUS_ERROR_P): New macro.
11224 (target_xfer_error_to_string): Remove declaration.
11225 (target_xfer_status_to_string): Declare.
11226 (target_xfer_partial_ftype): Adjust it.
11227 (struct target_ops) <to_xfer_partial>: Return
11228 target_xfer_status. Add argument xfered_len. Update
11229 comments.
11230 * target.c (target_xfer_error_to_string): Rename to ...
11231 (target_xfer_status_to_string): ... it. New. All callers
11232 updated.
11233 (target_read_live_memory): Likewise. Call target_xfer_partial
11234 instead of target_read.
11235 (memory_xfer_live_readonly_partial): Return
11236 target_xfer_status. Add argument xfered_len.
11237 (raw_memory_xfer_partial): Likewise.
11238 (memory_xfer_partial_1): Likewise.
11239 (memory_xfer_partial): Likewise.
11240 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11241 properly. Update debug message.
11242 (default_xfer_partial, current_xfer_partial): Likewise.
11243 (target_write_partial): Likewise.
11244 (target_read_partial): Likewise. All callers updated.
11245 (read_whatever_is_readable): Likewise.
11246 (target_write_with_progress): Likewise.
11247 (target_read_alloc_1): Likewise.
11248
11249 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11250 * auxv.c (procfs_xfer_auxv): Likewise.
11251 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11252 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11253 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11254 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11255 * corefile.c (read_memory): Adjust.
11256 * corelow.c (core_xfer_partial): Likewise.
11257 * ctf.c (ctf_xfer_partial): Likewise.
11258 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11259 updated.
11260 (darwin_xfer_partial): Likewise.
11261 * exec.c (section_table_xfer_memory_partial): Likewise. All
11262 callers updated.
11263 (exec_xfer_partial): Likewise.
11264 * exec.h (section_table_xfer_memory_partial): Update
11265 declaration.
11266 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11267 negative.
11268 (gnu_xfer_partial): Likewise.
11269 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11270 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11271 (ia64_hpux_xfer_solib_got): Likewise.
11272 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11273 type of 'partial_len' to ULONGEST.
11274 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11275 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11276 (linux_nat_xfer_partial): Likewise.
11277 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11278 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11279 * monitor.c (monitor_xfer_memory): Likewise.
11280 (monitor_xfer_partial): Likewise.
11281 * procfs.c (procfs_xfer_partial): Likewise.
11282 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11283 * record-full.c (record_full_xfer_partial): Likewise.
11284 (record_full_core_xfer_partial): Likewise.
11285 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11286 (gdbsim_xfer_partial): Likewise.
11287 * remote.c (remote_write_bytes_aux): Likewise. All callers
11288 updated.
11289 (remote_write_bytes, remote_read_bytes): Likewise. All
11290 callers updated.
11291 (remote_flash_erase): Likewise. All callers updated.
11292 (remote_write_qxfer): Likewise. All callers updated.
11293 (remote_read_qxfer): Likewise. All callers updated.
11294 (remote_xfer_partial): Likewise.
11295 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11296 (rs6000_xfer_shared_libraries): Likewise.
11297 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11298 (sol_thread_xfer_partial): Likewise.
11299 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11300 (sparc_xfer_partial): Likewise.
11301 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11302 updated.
11303 (spu_xfer_partial): Likewise.
11304 * spu-multiarch.c (spu_xfer_partial): Likewise.
11305 * tracepoint.c (tfile_xfer_partial): Likewise.
11306 * windows-nat.c (windows_xfer_memory): Likewise.
11307 (windows_xfer_shared_libraries): Likewise.
11308 (windows_xfer_partial): Likewise.
11309 * valprint.c: Replace 'target_xfer_error' with
11310 'target_xfer_status' in comments.
11311
11312 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11313
11314 Checked in by Joel Brobecker <brobecker@adacore.com>.
11315 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11316
11317 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11318
11319 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11320 function parameters.
11321
11322 2014-02-10 Will Newton <will.newton@linaro.org>
11323
11324 * elfread.c (elf_rel_plt_read): Look for a .got section if
11325 looking up .got.plt fails.
11326 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11327 on address passed to elf_gnu_ifunc_record_cache.
11328 (elf_gnu_ifunc_resolve_addr): Likewise.
11329 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11330
11331 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11332
11333 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11334 (X_RETTURN): New macro.
11335 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11336
11337 * sparc64-tdep.c (sparc64_init_abi): Hook
11338 sparc_in_function_epilogue_p.
11339
11340 2014-02-10 Gary Benson <gbenson@redhat.com>
11341
11342 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11343 Rename name_matcher to symbol_matcher.
11344
11345 2014-02-10 Gary Benson <gbenson@redhat.com>
11346
11347 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11348 Use expand_symtabs_file_matcher_ftype and
11349 expand_symtabs_symbol_matcher_ftype.
11350
11351 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11352
11353 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11354 (struct ada_symbol_cache): New.
11355 (ada_free_symbol_cache): Forward declare.
11356 (struct ada_pspace_data): New.
11357 (ada_pspace_data_handle): New static global.
11358 (get_ada_pspace_data, ada_pspace_data_cleanup)
11359 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11360 (cache_space, cache): Delete, now folded inside struct
11361 ada_pspace_data.
11362 (ada_get_symbol_cache): New function.
11363 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11364 implementation.
11365 (_initialize_ada_language): Remove initialization of cache_space.
11366 Move call to observer_attach_inferior_exit up, grouping it
11367 with the other observer registrations inside this function.
11368 Rename command to be more general. Add call to
11369 register_program_space_data_with_cleanup.
11370
11371 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11372
11373 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11374 ada_new_objfile_observer.
11375 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11376 (_initialize_tasks): Update uses of ada_new_objfile_observer
11377 and ada_tasks_normal_stop_observer.
11378
11379 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11380
11381 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11382 returned by the 'Length attribute to integer.
11383
11384 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11385
11386 * ada-lang.c (_initialize_ada_language): Initialize
11387 cache_space obstack.
11388
11389 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11390
11391 * ada-lang.c (HASH_SIZE): New macro.
11392 (struct cache_entry): New type.
11393 (cache_space, cache): New static globals.
11394 (ada_clear_symbol_cache, find_entry): New functions.
11395 (lookup_cached_symbol, cache_symbol): Implement.
11396 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11397 (_initialize_ada_language): Attach ada_new_objfile_observer
11398 and ada_free_objfile_observer.
11399
11400 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11401
11402 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11403 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11404 struct block * parameter.
11405 (ada_lookup_symbol_list_worker): Constify local variable "block".
11406 Remove cast which is no longer necessary.
11407
11408 2014-02-10 Doug Evans <xdje42@gmail.com>
11409
11410 Add Guile as an extension language.
11411 * NEWS: Mention Guile scripting.
11412 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11413 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11414 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11415 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11416 (CLIBS): Add GUILE_LIBS.
11417 (install-guile): New rule.
11418 (guile.o): New rule.
11419 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11420 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11421 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11422 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11423 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11424 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11425 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11426 * configure.ac: New option --with-guile.
11427 * configure: Regenerate.
11428 * config.in: Regenerate.
11429 * auto-load.c: Remove #include "python/python.h". Add #include
11430 "gdb/section-scripts.h".
11431 (source_section_scripts): Handle Guile scripts.
11432 (_initialize_auto_load): Add name of Guile objfile script to
11433 scripts-directory help text.
11434 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11435 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11436 (struct breakpoint): New member scm_bp_object.
11437 * defs.h (enum command_control_type): New value guile_control.
11438 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11439 "extension.h".
11440 (show_user): Update comment.
11441 (_initialize_cli_cmds): Update help text for "show user". Update help
11442 text for max-user-call-depth.
11443 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11444 "extension.h".
11445 (multi_line_command_p): Add guile_control.
11446 (print_command_lines): Handle guile_control.
11447 (execute_control_command, recurse_read_control_structure): Ditto.
11448 (process_next_line): Recognize "guile" commands.
11449 * disasm.c (gdb_disassemble_info): Make non-static.
11450 * disasm.h: #include "dis-asm.h".
11451 (struct gdbarch): Add forward decl.
11452 (gdb_disassemble_info): Declare.
11453 * extension.c: #include "guile/guile.h".
11454 (extension_languages): Add guile.
11455 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11456 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11457 * gdbtypes.c (get_unsigned_type_max): New function.
11458 (get_signed_type_minmax): New function.
11459 * gdbtypes.h (get_unsigned_type_max): Declare.
11460 (get_signed_type_minmax): Declare.
11461 * guile/README: New file.
11462 * guile/guile-internal.h: New file.
11463 * guile/guile.c: New file.
11464 * guile/guile.h: New file.
11465 * guile/scm-arch.c: New file.
11466 * guile/scm-auto-load.c: New file.
11467 * guile/scm-block.c: New file.
11468 * guile/scm-breakpoint.c: New file.
11469 * guile/scm-disasm.c: New file.
11470 * guile/scm-exception.c: New file.
11471 * guile/scm-frame.c: New file.
11472 * guile/scm-gsmob.c: New file.
11473 * guile/scm-iterator.c: New file.
11474 * guile/scm-lazy-string.c: New file.
11475 * guile/scm-math.c: New file.
11476 * guile/scm-objfile.c: New file.
11477 * guile/scm-ports.c: New file.
11478 * guile/scm-pretty-print.c: New file.
11479 * guile/scm-safe-call.c: New file.
11480 * guile/scm-string.c: New file.
11481 * guile/scm-symbol.c: New file.
11482 * guile/scm-symtab.c: New file.
11483 * guile/scm-type.c: New file.
11484 * guile/scm-utils.c: New file.
11485 * guile/scm-value.c: New file.
11486 * guile/lib/gdb.scm: New file.
11487 * guile/lib/gdb/boot.scm: New file.
11488 * guile/lib/gdb/experimental.scm: New file.
11489 * guile/lib/gdb/init.scm: New file.
11490 * guile/lib/gdb/iterator.scm: New file.
11491 * guile/lib/gdb/printing.scm: New file.
11492 * guile/lib/gdb/types.scm: New file.
11493 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11494 (VPATH): Add $(GUILE_SRCDIR).
11495 (GUILE_DIR): New variable.
11496 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11497 (all): Add stamp-guile dependency.
11498 (stamp-guile): New rule.
11499 (clean-guile, install-guile, uninstall-guile): New rules.
11500 (install-only): Add install-guile dependency.
11501 (uninstall): Add uninstall-guile dependency.
11502 (clean): Add clean-guile dependency.
11503
11504 2014-02-09 Doug Evans <xdje42@gmail.com>
11505
11506 Revert this patch (which I approved, mea culpa).
11507
11508 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11509
11510 * Makefile.in (all-lib): Remove.
11511 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11512
11513 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11514
11515 Fix Python stack corruption.
11516 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11517 gdb_py_longest.
11518
11519 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11520
11521 * Makefile.in (all-lib): Remove.
11522 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11523
11524 2014-02-07 Doug Evans <dje@google.com>
11525
11526 * extension-priv.h (extension_language_script_ops): Add comment.
11527 (extension_language_ops): Add comment.
11528 (active_ext_lang_state): Fix typo in comment.
11529
11530 2014-02-07 Pedro Alves <palves@redhat.com>
11531
11532 PR breakpoints/16292
11533 * infrun.c (handle_signal_stop) <signal arrives while stepping
11534 over a breakpoint>: Switch back to the stepping thread.
11535
11536 2014-02-07 Yao Qi <yao@codesourcery.com>
11537
11538 * target.c (target_xfer_partial): Return zero if LEN is zero.
11539
11540 2014-02-07 Yao Qi <yao@codesourcery.com>
11541
11542 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11543 (ld_so_xfer_auxv): Likewise.
11544 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11545 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11546 * corelow.c (core_xfer_partial): Likewise.
11547 * ctf.c (ctf_xfer_partial): Likewise.
11548 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11549 (darwin_xfer_partial): Likewise.
11550 * exec.c (exec_xfer_partial): Likewise.
11551 * gnu-nat.c (gnu_xfer_partial): Likewise.
11552 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11553 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11554 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11555 * linux-nat.c (linux_xfer_siginfo): Likewise.
11556 (linux_proc_xfer_spu): Likewise.
11557 * procfs.c (procfs_xfer_partial): Likewise.
11558 * record-full.c (record_full_xfer_partial): Likewise.
11559 (record_full_core_xfer_partial): Likewise.
11560 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11561 * remote.c (remote_write_qxfer): Likewise.
11562 (remote_write_qxfer, remote_read_qxfer): Likewise.
11563 (remote_xfer_partial): Likewise.
11564 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11565 (rs6000_xfer_shared_libraries): Likewise.
11566 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11567 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11568 (spu_xfer_partial): Likewise.
11569 * target.c (memory_xfer_partial_1): Likewise.
11570 * tracepoint.c (tfile_xfer_partial): Likewise.
11571 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11572 (windows_xfer_partial): Likewise.
11573
11574 2014-02-07 Yao Qi <yao@codesourcery.com>
11575
11576 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11577 comments.
11578 (core_xfer_shared_libraries_aix): Likewise.
11579 * gdbarch.c, gdbarch.h: Regenerated.
11580 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11581 ULONGEST. Change 'len_avail' type to ULONGEST.
11582 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11583 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11584 declaration.
11585 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11586
11587 2014-02-07 Yao Qi <yao@codesourcery.com>
11588
11589 * corefile.c (memory_error): Get 'exception' from ERR and pass
11590 'exception' to throw_error.
11591
11592 2014-02-06 Doug Evans <xdje42@gmail.com>
11593
11594 * configure.ac (libpython checking): Remove all but python.o from
11595 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11596 * configure: Regenerate.
11597
11598 * Makefile.in (SFILES): Add extension.c.
11599 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11600 (COMMON_OBS): Add extension.o.
11601 * extension.h: New file.
11602 * extension-priv.h: New file.
11603 * extension.c: New file.
11604
11605 * python/python-internal.h: #include "extension.h".
11606 (gdbpy_auto_load_enabled): Declare.
11607 (gdbpy_apply_val_pretty_printer): Declare.
11608 (gdbpy_apply_frame_filter): Declare.
11609 (gdbpy_preserve_values): Declare.
11610 (gdbpy_breakpoint_cond_says_stop): Declare.
11611 (gdbpy_breakpoint_has_cond): Declare.
11612 (void source_python_script_for_objfile): Delete.
11613 * python/python.c: #include "extension-priv.h".
11614 Delete inclusion of "observer.h".
11615 (extension_language_python): Moved here and renamed from
11616 script_language_python in py-auto-load.c.
11617 Redefined to be of type extension_language_defn.
11618 (python_extension_script_ops): New global.
11619 (python_extension_ops): New global.
11620 (struct python_env): New member previous_active.
11621 (restore_python_env): Call restore_active_ext_lang.
11622 (ensure_python_env): Call set_active_ext_lang.
11623 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11624 New arg extlang.
11625 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11626 New arg extlang.
11627 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11628 New arg extlang.
11629 (gdbpy_eval_from_control_command): Renamed from
11630 eval_python_from_control_command, made static. New arg extlang.
11631 (gdbpy_source_script) Renamed from source_python_script, made static.
11632 New arg extlang.
11633 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11634 result to int. New arg extlang.
11635 (gdbpy_source_objfile_script): Renamed from
11636 source_python_script_for_objfile, made static. New arg extlang.
11637 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11638 static. New args extlang, extlang_printers. Change result type to
11639 "void".
11640 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11641 static. New arg extlang. Rename arg printers to extlang_printers
11642 and change type to ext_lang_type_printers *.
11643 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11644 static. Replace argument arg with extlang, extlang_printers.
11645 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11646 (!HAVE_PYTHON, source_python_script): Delete.
11647 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11648 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11649 (!HAVE_PYTHON, start_type_printers): Delete.
11650 (!HAVE_PYTHON, apply_type_printers): Delete.
11651 (!HAVE_PYTHON, free_type_printers): Delete.
11652 (_initialize_python): Delete call to observer_attach_before_prompt.
11653 (finalize_python): Set/restore active extension language.
11654 (gdbpy_finish_initialization) Renamed from
11655 finish_python_initialization, made static. New arg extlang.
11656 (gdbpy_initialized): New function.
11657 * python/python.h: #include "extension.h". Delete #include
11658 "value.h", "mi/mi-cmds.h".
11659 (extension_language_python): Declare.
11660 (GDBPY_AUTO_FILE_NAME): Delete.
11661 (enum py_bt_status): Moved to extension.h and renamed to
11662 ext_lang_bt_status.
11663 (enum frame_filter_flags): Moved to extension.h.
11664 (enum py_frame_args): Moved to extension.h and renamed to
11665 ext_lang_frame_args.
11666 (finish_python_initialization): Delete.
11667 (eval_python_from_control_command): Delete.
11668 (source_python_script): Delete.
11669 (apply_val_pretty_printer): Delete.
11670 (apply_frame_filter): Delete.
11671 (preserve_python_values): Delete.
11672 (gdbpy_script_language_defn): Delete.
11673 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11674 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11675
11676 * auto-load.c: #include "extension.h".
11677 (GDB_AUTO_FILE_NAME): Delete.
11678 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11679 (script_language_gdb): Delete, moved to extension.c and renamed to
11680 extension_language_gdb.
11681 (source_gdb_script_for_objfile): Delete.
11682 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11683 (loaded_script): Change type of language member to
11684 struct extension_language_defn *.
11685 (init_loaded_scripts_info): Initialize
11686 unsupported_script_warning_printed.
11687 (maybe_add_script): Make static. Change type of language arg to
11688 struct extension_language_defn *.
11689 (clear_section_scripts): Reset unsupported_script_warning_printed.
11690 (auto_load_objfile_script_1): Rewrite to use extension language API.
11691 (auto_load_objfile_script): Make public. Remove support-compiled-in
11692 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11693 (source_section_scripts): Rewrite to use extension language API.
11694 (load_auto_scripts_for_objfile): Rewrite to use
11695 auto_load_scripts_for_objfile.
11696 (collect_matching_scripts_data): Change type of language member to
11697 struct extension_language_defn *.
11698 (auto_load_info_scripts): Change type of language arg to
11699 struct extension_language_defn *.
11700 (unsupported_script_warning_print): New function.
11701 (script_not_found_warning_print): Make static.
11702 (_initialize_auto_load): Rewrite construction of scripts-directory
11703 help.
11704 * auto-load.h (struct objfile): Add forward decl.
11705 (struct script_language): Delete.
11706 (struct auto_load_pspace_info): Add forward decl.
11707 (struct extension_language_defn): Add forward decl.
11708 (maybe_add_script): Delete.
11709 (auto_load_objfile_script): Declare.
11710 (script_not_found_warning_print): Delete.
11711 (auto_load_info_scripts): Update prototype.
11712 (auto_load_gdb_scripts_enabled): Declare.
11713 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11714 auto_load_python_scripts_enabled and made public.
11715 (script_language_python): Delete, moved to python.c.
11716 (gdbpy_script_language_defn): Delete.
11717 (info_auto_load_python_scripts): Update to use
11718 extension_language_python.
11719
11720 * breakpoint.c (condition_command): Replace call to
11721 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11722 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11723 with call to breakpoint_ext_lang_cond_says_stop.
11724 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11725 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11726 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11727 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11728 New arg slang.
11729 (local_setattro): Print name of extension language with existing
11730 stop condition.
11731
11732 * valprint.c (val_print, value_print): Update to call
11733 apply_ext_lang_val_pretty_printer.
11734 * cp-valprint.c (cp_print_value): Update call to
11735 apply_ext_lang_val_pretty_printer.
11736 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11737 (gdbpy_apply_val_pretty_printer): Renamed from
11738 apply_val_pretty_printer. New arg extlang.
11739 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11740
11741 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11742 extension language API.
11743 * cli/cli-script.c (execute_control_command): Update to call
11744 eval_ext_lang_from_control_command.
11745
11746 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11747 enum ext_lang_bt_status values. Update call to
11748 apply_ext_lang_frame_filter.
11749 (mi_cmd_stack_list_locals): Ditto.
11750 (mi_cmd_stack_list_args): Ditto.
11751 (mi_cmd_stack_list_variables): Ditto.
11752 * mi/mi-main.c: Delete #include "python/python-internal.h".
11753 Add #include "extension.h".
11754 (mi_cmd_list_features): Replace reference to python internal variable
11755 gdb_python_initialized with call to ext_lang_initialized_p.
11756
11757 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11758 Update to use enum ext_lang_frame_args. Update to call
11759 apply_ext_lang_frame_filter.
11760 * python/py-framefilter.c (extract_sym): Update to use enum
11761 ext_lang_bt_status.
11762 (extract_value, py_print_type, py_print_value): Ditto.
11763 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11764 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11765 (py_print_frame): Ditto.
11766 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11767 New arg extlang. Update to use enum ext_lang_bt_status.
11768
11769 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11770 finish_python_initialization. Replace with call to
11771 finish_ext_lang_initialization.
11772
11773 * typeprint.c (do_free_global_table): Update to call
11774 free_ext_lang_type_printers.
11775 (create_global_typedef_table): Update to call
11776 start_ext_lang_type_printers.
11777 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11778 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11779 (type_print_options): Change type of global_printers from "void *"
11780 to "struct ext_lang_type_printers *".
11781
11782 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11783 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11784 (gdbpy_preserve_values): Renamed from preserve_python_values.
11785 New arg extlang.
11786 (!HAVE_PYTHON, preserve_python_values): Delete.
11787
11788 * utils.c (quit_flag): Delete, moved to extension.c.
11789 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11790 extension.c.
11791
11792 * eval.c: Delete #include "python/python.h".
11793 * main.c: Delete #include "python/python.h".
11794
11795 * defs.h: Update comment.
11796
11797 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11798
11799 GDB 7.7 released.
11800
11801 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11802
11803 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11804 defined.
11805
11806 2014-02-05 Yao Qi <yao@codesourcery.com>
11807
11808 * remote.c (remote_pass_signals): Remove local 'buf' and use
11809 rs->buf.
11810 (remote_program_signals): Likewise.
11811
11812 2014-02-05 Yao Qi <yao@codesourcery.com>
11813
11814 * ctf.c: Include "inferior.h" and "gdbthread.h".
11815 (CTF_PID): A new macro.
11816 (ctf_open): Call inferior_appeared and add_thread_silent.
11817 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11818 (ctf_thread_alive): New function.
11819 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11820
11821 2014-02-05 Yao Qi <yao@codesourcery.com>
11822
11823 Revert this patch:
11824
11825 2013-05-24 Yao Qi <yao@codesourcery.com>
11826
11827 * tracepoint.c (TFILE_PID): Remove.
11828 (tfile_open): Don't add thread and inferior.
11829 (tfile_close): Don't set 'inferior_ptid'. Don't call
11830 exit_inferior_silent.
11831 (tfile_thread_alive): Remove.
11832 (init_tfile_ops): Don't set field 'to_thread_alive' of
11833 tfile_ops.
11834
11835 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11836
11837 * remote.c (remote_start_remote): Call remote_check_symbols even
11838 if only symbol-file (not file) has been given.
11839
11840 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11841
11842 * gdbarch.sh (skip_entrypoint): New callback.
11843 * gdbarch.c, gdbarch.h: Regenerate.
11844 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11845 * infrun.c (fill_in_stop_func): Likewise.
11846 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11847 (ppc_elfv2_elf_make_msymbol_special): New function.
11848 (ppc_elfv2_skip_entrypoint): Likewise.
11849 (ppc_linux_init_abi): Install them for ELFv2.
11850
11851 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11852
11853 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11854 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11855 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11856 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11857 structures returned in GPRs.
11858
11859 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11860
11861 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11862 offset to the stack parameter list for the ELFv2 ABI.
11863
11864 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11865
11866 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11867 set_gdbarch_convert_from_func_ptr_addr and
11868 set_gdbarch_elf_make_msymbol_special for ELFv1.
11869 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11870 function descriptors on ELFv1.
11871 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11872 set up r12 at function entry.
11873
11874 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11875
11876 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11877 (struct gdbarch_tdep): New member elf_abi.
11878
11879 * rs6000-tdep.c: Include "elf/ppc64.h".
11880 (rs6000_gdbarch_init): Detect ELF ABI version.
11881
11882 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11883
11884 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11885 within a register pair holding a DFP 128-bit value on little-endian.
11886 (ppc64_sysv_abi_return_value_base): Likewise.
11887 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11888 (dfp_pseudo_register_write): Likewise.
11889
11890 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11891
11892 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11893 offset on little-endian when passing _Decimal32.
11894 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11895
11896 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11897
11898 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11899 of the overlapped FP register within the VSX register on little-
11900 endian platforms.
11901 (efpr_pseudo_register_write): Likewise.
11902
11903 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11904
11905 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11906 offset on little-endian when passing small structures.
11907
11908 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11909
11910 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11911 (struct ppc64_sysv_argpos): New data structure.
11912 (ppc64_sysv_abi_push_float): Remove.
11913 (ppc64_sysv_abi_push_val): New function.
11914 (ppc64_sysv_abi_push_integer): Likewise.
11915 (ppc64_sysv_abi_push_freg): Likewise.
11916 (ppc64_sysv_abi_push_vreg): Likewise.
11917 (ppc64_sysv_abi_push_param): Likewise.
11918 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11919 (ppc64_sysv_abi_return_value_base): New function.
11920 (ppc64_sysv_abi_return_value): Refactor to use it.
11921
11922 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11923
11924 * NEWS: Document new target powerpc64le-*-linux*.
11925
11926 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11927
11928 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11929 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11930 core dumps.
11931 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11932 register set used in ELF core dumps. Add floating-point register set.
11933
11934 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11935
11936 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11937 dwarf2_to_gdb[] table using symbolic constants. Adjust
11938 penultimate entry from number representing the PC register
11939 to symbolic constant representing the MDR register. Add
11940 constant for the PC register to the end of the table.
11941
11942 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11943
11944 * bsd-kvm.c: Include <sys/param.h>
11945
11946 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11947
11948 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11949
11950 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11951
11952 * ada-lang.h (clear_ada_sym_cache): Delete.
11953
11954 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11955
11956 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11957
11958 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11959
11960 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11961 the sigreturn register save area only if the syscall is
11962 sigreturn.
11963
11964 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11965
11966 * valops.c (value_slice): Minor reformatting.
11967
11968 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11969
11970 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11971
11972 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11973
11974 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11975 New static globals.
11976 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11977 (ada_ignore_descriptive_types_p): New static global.
11978 (find_parallel_type_by_descriptive_type): Return immediately
11979 if ada_ignore_descriptive_types_p is set.
11980 (_initialize_ada_language): Register new commands "maintenance
11981 set ada", "maintenance show ada", "maintenance set ada
11982 ignore-descriptive-types" and "maintenance show ada
11983 ignore-descriptive-types".
11984 * NEWS: Add entry for new "maint ada set/show
11985 ignore-descriptive-types" commands.
11986
11987 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11988
11989 * record-btrace.c (record_btrace_close): Call btrace_teardown
11990 for all threads.
11991
11992 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11993
11994 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11995 "ui-out.h".
11996
11997 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11998
11999 * ada-typeprint (type_is_full_subrange_of_target_type):
12000 New function.
12001 (print_range): Add parameter bounds_prefered_p. If not set,
12002 try printing range types using the name of their base type.
12003 (print_range_type): Add parameter bounds_prefered_p.
12004 Use it in call to print_range.
12005 (print_array_type, ada_print_type): Update calls to print_range
12006 and print_range_type.
12007
12008 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12009
12010 * ada-typeprint.c (print_array_type, print_choices, print_range)
12011 (print_range_bound, print_dynamic_range_bound, print_range_type):
12012 Remove declaration.
12013
12014 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12015
12016 * ada-typeprint.c (print_range): Add missing empty line
12017 after local declaration.
12018
12019 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12020
12021 * ada-valprint.c (print_optional_low_bound): Get index_type's
12022 target type for as long as it is a TYPE_CODE_RANGE.
12023
12024 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12025
12026 * procfs.c (procfs_make_note_section): Remove assertion and
12027 associated comment.
12028
12029 2014-01-24 Yao Qi <yao@codesourcery.com>
12030
12031 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12032 * corelow.c (get_core_siginfo): Likewise.
12033
12034 2014-01-24 Yao Qi <yao@codesourcery.com>
12035
12036 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12037 ULONGEST. Don't check 'len' is negative.
12038 (remote_write_bytes): Change type of 'len' to ULONGEST.
12039
12040 2014-01-23 Tom Tromey <tromey@redhat.com>
12041
12042 PR python/16485:
12043 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12044 Handle exception from frame.block.
12045 (FrameVars.fetch_frame_locals): Likewise.
12046
12047 2014-01-23 Tom Tromey <tromey@redhat.com>
12048
12049 PR python/16487:
12050 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12051 on a NULL pointer. Move "goto error" to correct place.
12052
12053 2014-01-23 Tom Tromey <tromey@redhat.com>
12054
12055 PR python/16491:
12056 * python/py-framefilter.c (apply_frame_filter): Call
12057 ensure_python_env after computing gdbarch.
12058
12059 2014-01-23 Yao Qi <yao@codesourcery.com>
12060
12061 * target.c (raw_memory_xfer_partial): Change argument type
12062 from void * to gdb_byte *.
12063 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12064
12065 2014-01-22 Doug Evans <dje@google.com>
12066
12067 New gdbserver option --debug-format=timestamp.
12068 * NEWS: Mention it.
12069
12070 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12071
12072 * syscalls/s390x-linux.xml: New file.
12073 * syscalls/s390-linux.xml: New file.
12074 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12075 (XML_SYSCALL_FILENAME_S390X): Likewise.
12076 (op_svc): New enum value for SVC opcode.
12077 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12078 (s390_linux_get_syscall_number): New function.
12079 (s390_gdbarch_init): Register '*get_syscall_number' and the
12080 syscall xml file name.
12081 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12082 "s390-linux.xml" and "s390x-linux.xml".
12083 * NEWS: Announce new feature.
12084
12085 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12086
12087 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12088
12089 2014-01-22 Pedro Alves <palves@redhat.com>
12090
12091 * xtensa-config.c: Include defs.h.
12092
12093 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12094
12095 * common/common-utils.h: Add "ARI:" comment beside __func__
12096 reference.
12097
12098 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12099
12100 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12101 documentation a bit.
12102
12103 2014-01-21 Roland McGrath <mcgrathr@google.com>
12104
12105 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12106 * configure: Regenerate.
12107 * aclocal.m4: Regenerate.
12108 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12109 New substituted variables.
12110 (install-strip): New target.
12111 (INSTALL_SCRIPT): New substituted variable.
12112 (FLAGS_TO_PASS): Add it.
12113 (install-only): Use $(INSTALL_SCRIPT) rather than
12114 $(INSTALL_PROGRAM) for gcore.
12115
12116 2014-01-20 Tom Tromey <tromey@redhat.com>
12117
12118 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12119 together.
12120
12121 2014-01-20 Tom Tromey <tromey@redhat.com>
12122
12123 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12124 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12125 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12126 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12127 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12128 (struct cmd_list_element) <flags>: Remove.
12129 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12130 doc_allocated>: New fields.
12131 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12132 bitfields.
12133 * maint.c (maintenance_do_deprecate): Update.
12134 * top.c (execute_command): Update.
12135
12136 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12137
12138 * xtensa-linux-nat.c: Include asm/ptrace.h.
12139
12140 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12141
12142 * Makefile.in (SFILES): Add d-support.c.
12143 (COMMON_OBS): Add d-support.o.
12144 * d-lang.h (d_parse_symbol): Add comment, now defined in
12145 d-support.c.
12146 * d-lang.c (parse_call_convention)
12147 (parse_attributes, parse_function_types)
12148 (parse_function_args, parse_type, parse_identifier)
12149 (call_convention_p, d_parse_symbol): Move functions to ...
12150 * d-support.c: ... New file.
12151
12152 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12153
12154 * d-lang.h (d_parse_symbol): Add declaration.
12155 * d-lang.c (extract_identifiers)
12156 (extract_type_info): Remove functions.
12157 (parse_call_convention, parse_attributes)
12158 (parse_function_types, parse_function_args)
12159 (parse_type, parse_identifier, call_convention_p)
12160 (d_parse_symbol): New functions.
12161 (d_demangle): Use d_parse_symbol to demangle D symbols.
12162
12163 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12164
12165 * d-lang.h (struct builtin_d_type): New data type.
12166 (builtin_d_type): Add declaration.
12167 * d-lang.c (d_language_arch_info, build_d_types)
12168 (builtin_d_type): New functions.
12169 (enum d_primitive_types): New data type.
12170 (d_language_defn): Change c_language_arch_info to
12171 d_language_arch_info.
12172 (d_type_data): New static variable.
12173 (_initialize_d_language): Initialize d_type_data.
12174
12175 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12176
12177 * d-lang.h (d_main_name): Add declaration.
12178 * d-lang.c (d_main_name): New function.
12179 * symtab.c (find_main_name): Add call to d_main_name.
12180
12181 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12182
12183 * d-lang.c (d_language_defn): Change macro_expansion_c to
12184 macro_expansion_no.
12185
12186 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12187
12188 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12189
12190 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12191
12192 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12193 gdb_exception" declaration.
12194 * remote.c (getpkt_or_notif_sane): Likewise.
12195
12196 2014-01-17 Doug Evans <dje@google.com>
12197
12198 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12199 function, contents of dirnames_to_char_ptr_vec_append moved here.
12200 (delim_string_to_char_ptr_vec): New function.
12201 (dirnames_to_char_ptr_vec_append): Rewrite.
12202 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12203
12204 2014-01-17 Doug Evans <dje@google.com>
12205
12206 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12207 and moved here ...
12208 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12209 #include "common-utils.h".
12210 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12211 * common/vec.h (VEC_ASSERT_PASS): Update.
12212 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12213 (MACH_CHECK_ERROR): Update.
12214
12215 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12216
12217 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12218 comments.
12219 * gdbarch.h: Regenerate.
12220
12221 2014-01-16 Tom Tromey <tromey@redhat.com>
12222
12223 * value.c (struct value) <regnum>: Move earlier.
12224
12225 2014-01-16 Tom Tromey <tromey@redhat.com>
12226
12227 * remote.c (extended_remote_create_inferior): Rename from
12228 extended_remote_create_inferior_1. Add "ops" argument. Remove
12229 old implementation.
12230
12231 2014-01-16 Pedro Alves <palves@redhat.com>
12232
12233 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12234 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12235 the backchain.
12236
12237 2014-01-16 Doug Evans <dje@google.com>
12238
12239 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12240
12241 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12242
12243 * btrace.h (btrace_thread_flag): New.
12244 (struct btrace_thread_info) <flags>: New.
12245 * record-btrace.c (record_btrace_resume_thread)
12246 (record_btrace_find_thread_to_move, btrace_step_no_history)
12247 (btrace_step_stopped, record_btrace_start_replaying)
12248 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12249 (record_btrace_find_resume_thread): New.
12250 (record_btrace_resume, record_btrace_wait): Extend.
12251 (record_btrace_can_execute_reverse): New.
12252 (record_btrace_open): Fail in non-stop mode.
12253 (record_btrace_set_replay): Split into this, ...
12254 (record_btrace_stop_replaying): ... this, ...
12255 (record_btrace_clear_histories): ... and this.
12256 (init_record_btrace_ops): Init to_can_execute_reverse.
12257 * NEWS: Announce it.
12258
12259 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12260
12261 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12262 (forward_target_decr_pc_after_break)
12263 (target_decr_pc_after_break): New.
12264 * target.c (forward_target_decr_pc_after_break)
12265 (target_decr_pc_after_break): New.
12266 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12267 instead of gdbarch_decr_pc_after_break.
12268 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12269 instead of gdbarch_decr_pc_after_break.
12270 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12271 instead of gdbarch_decr_pc_after_break.
12272 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12273 instead of gdbarch_decr_pc_after_break.
12274 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12275 instead of gdbarch_decr_pc_after_break.
12276 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12277 instead of gdbarch_decr_pc_after_break.
12278
12279 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12280
12281 * btrace.c: Include regcache.h.
12282 (btrace_add_pc): New.
12283 (btrace_enable): Call btrace_add_pc.
12284 (btrace_is_empty): New.
12285 * btrace.h (btrace_is_empty): New.
12286 * record-btrace.c (require_btrace, record_btrace_info): Call
12287 btrace_is_empty.
12288
12289 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12290
12291 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12292 Support delta reads.
12293 (linux_disable_btrace): Change return type.
12294 * common/linux-btrace.h (linux_read_btrace): Change parameters
12295 and return type to allow error reporting. Update users.
12296 (linux_disable_btrace): Change return type. Update users.
12297 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12298 New.
12299 (btrace_error): New.
12300 (btrace_block) <begin>: Comment on BEGIN == 0.
12301 * btrace.c (btrace_compute_ftrace): Start from the end of
12302 the current trace.
12303 (btrace_stitch_trace, btrace_clear_history): New.
12304 (btrace_fetch): Read delta trace, return if replaying.
12305 (btrace_clear): Move clear history code to btrace_clear_history.
12306 (parse_xml_btrace): Throw an error if parsing failed.
12307 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12308 and return type to allow error reporting.
12309 (target_read_btrace): Change parameters and return type to allow
12310 error reporting.
12311 * target.c (target_read_btrace): Update.
12312 * remote.c (remote_read_btrace): Support delta reads. Pass
12313 errors on.
12314 * NEWS: Announce it.
12315
12316 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12317
12318 * record.h (record_btrace_frame_unwind)
12319 (record_btrace_tailcall_frame_unwind): New declarations.
12320 * dwarf2-frame: Include record.h
12321 (dwarf2_frame_cfa): Throw an error for btrace frames.
12322 * record-btrace.c: Include hashtab.h.
12323 (btrace_get_bfun_name): New.
12324 (btrace_call_history): Call btrace_get_bfun_name.
12325 (struct btrace_frame_cache): New.
12326 (bfcache): New.
12327 (bfcache_hash, bfcache_eq, bfcache_new): New.
12328 (btrace_get_frame_function): New.
12329 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12330 (record_btrace_frame_this_id): Compute own id.
12331 (record_btrace_frame_prev_register): Provide PC, throw_error
12332 for all other registers.
12333 (record_btrace_frame_sniffer): Detect btrace frames.
12334 (record_btrace_tailcall_frame_sniffer): New.
12335 (record_btrace_frame_dealloc_cache): New.
12336 (record_btrace_frame_unwind): Add new functions.
12337 (record_btrace_tailcall_frame_unwind): New.
12338 (_initialize_record_btrace): Allocate cache.
12339 * btrace.c (btrace_clear): Call reinit_frame_cache.
12340 * NEWS: Announce it.
12341
12342 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12343
12344 * record-btrace.c (record_btrace_set_replay)
12345 (record_btrace_goto_begin, record_btrace_goto_end)
12346 (record_btrace_goto): New.
12347 (init_record_btrace_ops): Initialize them.
12348 * NEWS: Announce it.
12349
12350 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12351
12352 * record-btrace.c (record_btrace_find_new_threads)
12353 (record_btrace_thread_alive): New.
12354 (init_record_btrace_ops): Initialize to_find_new_threads and
12355 to_thread_alive.
12356
12357 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12358
12359 * record-btrace.c (record_btrace_resume): New.
12360 (record_btrace_wait): New.
12361 (init_record_btrace_ops): Initialize to_wait and to_resume.
12362
12363 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12364
12365 * record-btrace.c (record_btrace_xfer_partial)
12366 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12367 (record_btrace_allow_memory_access): New.
12368 (init_record_btrace_ops): Initialize new methods.
12369 * target.c (raw_memory_xfer_partial): Bail out if target reports
12370 that this memory is not available.
12371
12372 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12373
12374 * target.h (target_ops) <to_insert_breakpoint>
12375 <to_remove_breakpoint>: Add target_ops parameter.
12376 (forward_target_insert_breakpoint): New.
12377 (forward_target_remove_breakpoint): New.
12378 (memory_remove_breakpoint, memory_insert_breakpoint):
12379 Add target_ops parameter.
12380 * target.c (target_insert_breakpoint): Split into this and ...
12381 (forward_target_insert_breakpoint): ... this.
12382 (target_remove_breakpoint): Split into this and ...
12383 (forward_target_remove_breakpoint): ... this.
12384 (debug_to_insert_breakpoint): Add target_ops parameter.
12385 Call forward_target_insert_breakpoint.
12386 (debug_to_remove_breakpoint): Add target_ops parameter.
12387 Call forward_target_remove_breakpoint.
12388 (update_current_target): Do not inherit or default to_insert_breakpoint
12389 and to_remove_breakpoint.
12390 * corelow.c (ignore): Add target_ops parameter.
12391 * exec.c (ignore): Add target_ops parameter.
12392 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12393 Add target_ops parameter.
12394 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12395 Add target_ops parameter.
12396 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12397 Add target_ops parameter.
12398 * record-full.c (record_full_beneath_to_insert_breakpoint)
12399 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12400 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12401 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12402 (record_full_core_remove_breakpoint): Add target_ops parameter.
12403 Update users.
12404 (record_full_beneath_to_insert_breakpoint_ops)
12405 (record_full_beneath_to_remove_breakpoint_ops)
12406 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12407 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12408 tmp_to_remove_breakpoint_ops,
12409 record_full_beneath_to_insert_breakpoint_ops, and
12410 record_full_beneath_to_remove_breakpoint_ops.
12411 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12412 (m32r_remove_breakpoint): Add target_ops parameter.
12413 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12414 Add target_ops parameter.
12415 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12416 Add target_ops parameter.
12417
12418 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12419 Markus Metzger <markus.t.metzger@intel.com>
12420
12421 * record-btrace.c: Include frame-unwind.h.
12422 (record_btrace_frame_unwind_stop_reason)
12423 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12424 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12425 New.
12426 (init_record_btrace_ops): Install it.
12427
12428 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12429
12430 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12431 get_prev_frame_1.
12432
12433 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12434
12435 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12436 earlier.
12437
12438 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12439
12440 * frame-unwind.c: Include target.h.
12441 (frame_unwind_try_unwinder): New function with code from ...
12442 (frame_unwind_find_by_frame): ... here. New variable
12443 unwinder_from_target, call also target_get_unwinder)
12444 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12445 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12446 * target.h (struct target_ops): New fields to_get_unwinder and
12447 to_get_tailcall_unwinder.
12448 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12449
12450 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12451
12452 * record-btrace.c (record_btrace_fetch_registers)
12453 (record_btrace_store_registers)
12454 (record_btrace_to_prepare_to_store): New.
12455 (init_record_btrace_ops): Add the above.
12456
12457 2014-01-16 Tom Tromey <tromey@redhat.com>
12458
12459 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12460 * target.h (struct target_ops) <to_prepare_to_store>: Add
12461 argument.
12462 (target_prepare_to_store): Add argument.
12463 * target.c (debug_to_prepare_to_store): Add argument.
12464 (update_current_target): Update.
12465 * remote.c (remote_prepare_to_store): Add 'self' argument.
12466 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12467 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12468 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12469 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12470 argument.
12471 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12472 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12473 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12474 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12475 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12476
12477 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12478
12479 * btrace.h (replay) <replay>: New.
12480 (btrace_is_replaying): New.
12481 * btrace.c (btrace_clear): Free replay iterator.
12482 (btrace_is_replaying): New.
12483 * record-btrace.c (record_btrace_is_replaying): New.
12484 (record_btrace_info): Print insn number if replaying.
12485 (record_btrace_insn_history): Start at replay position.
12486 (record_btrace_call_history): Start at replay position.
12487 (init_record_btrace_ops): Init to_record_is_replaying.
12488
12489 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12490
12491 * record-btrace.c (record_btrace_insn_history_range): Include
12492 end.
12493 (record_btrace_insn_history_from): Adjust range.
12494 (record_btrace_call_history_range): Include
12495 end.
12496 (record_btrace_call_history_from): Adjust range.
12497 * NEWS: Announce changes.
12498
12499 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12500
12501 * record.h (enum record_print_flag)
12502 <record_print_indent_calls>: New.
12503 * record.c (get_call_history_modifiers): Recognize /c modifier.
12504 (_initialize_record): Document /c modifier.
12505 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12506 Reorder fields. Optionally indent the function name. Update
12507 all users.
12508 * NEWS: Announce changes.
12509
12510 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12511
12512 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12513
12514 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12515
12516 * btrace.c (ftrace_new_function): Start counting at one.
12517 * record-btrace.c (record_btrace_info): Adjust number of calls
12518 and insns.
12519 * NEWS: Announce it.
12520
12521 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12522
12523 * record-btrace.c (btrace_call_history_insn_range): Print
12524 insn range as [begin, end].
12525
12526 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12527
12528 * btrace.h (struct btrace_func_link): New.
12529 (enum btrace_function_flag): New.
12530 (struct btrace_inst): Rename to ...
12531 (struct btrace_insn): ...this. Update all users.
12532 (struct btrace_func) <ibegin, iend>: Remove.
12533 (struct btrace_func_link): New.
12534 (struct btrace_func): Rename to ...
12535 (struct btrace_function): ...this. Update all users.
12536 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12537 (number, level, flags>: New.
12538 (struct btrace_insn_iterator): Rename to ...
12539 (struct btrace_insn_history): ...this.
12540 Update all users.
12541 (struct btrace_insn_iterator, btrace_call_iterator): New.
12542 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12543 (struct btrace_target_info) <begin, end, level>
12544 <insn_history, call_history>: New.
12545 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12546 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12547 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12548 (btrace_call_number, btrace_call_begin, btrace_call_end)
12549 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12550 (btrace_find_function_by_number, btrace_set_insn_history)
12551 (btrace_set_call_history): New.
12552 * btrace.c (btrace_init_insn_iterator)
12553 (btrace_init_func_iterator, compute_itrace): Remove.
12554 (ftrace_print_function_name, ftrace_print_filename)
12555 (ftrace_skip_file): Change
12556 parameter to const.
12557 (ftrace_init_func): Remove.
12558 (ftrace_debug): Use new btrace_function fields.
12559 (ftrace_function_switched): Also consider gaining and
12560 losing symbol information).
12561 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12562 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12563 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12564 New.
12565 (ftrace_new_function): Move. Remove debug print.
12566 (ftrace_update_lines, ftrace_update_insns): New.
12567 (ftrace_update_function): Check for call, ret, and jump.
12568 (compute_ftrace): Renamed to ...
12569 (btrace_compute_ftrace): ...this. Rewritten to compute call
12570 stack.
12571 (btrace_fetch, btrace_clear): Updated.
12572 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12573 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12574 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12575 (btrace_call_number, btrace_call_begin, btrace_call_end)
12576 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12577 (btrace_find_function_by_number, btrace_set_insn_history)
12578 (btrace_set_call_history): New.
12579 * record-btrace.c (require_btrace): Use new btrace thread
12580 info fields.
12581 (record_btrace_info, btrace_insn_history)
12582 (record_btrace_insn_history, record_btrace_insn_history_range):
12583 Use new btrace thread info fields and new iterator.
12584 (btrace_func_history_src_line): Rename to ...
12585 (btrace_call_history_src_line): ...this. Use new btrace
12586 thread info fields.
12587 (btrace_func_history): Rename to ...
12588 (btrace_call_history): ...this. Use new btrace thread info
12589 fields and new iterator.
12590 (record_btrace_call_history, record_btrace_call_history_range):
12591 Use new btrace thread info fields and new iterator.
12592
12593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12594
12595 * frame.h (frame_id_build_unavailable_stack_special): New.
12596 * frame.c (frame_id_build_unavailable_stack_special): New.
12597
12598 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12599
12600 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12601 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12602 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12603 to gdbarch.
12604 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12605 (i386_insn_is_jump, i386_jmp_p): New.
12606 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12607 insn_is_jump to gdbarch.
12608 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12609 * gdbarch.h: Regenerated.
12610 * gdbarch.c: Regenerated.
12611 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12612 (default_insn_is_jump): New.
12613 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12614 (default_insn_is_jump): New.
12615
12616 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12617
12618 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12619 Change to ...
12620 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12621 (btrace_read_type) <btrace_read_new>: Change to ...
12622 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12623
12624 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12625
12626 * common/linux-btrace.c (linux_read_btrace): Free trace from
12627 previous iteration.
12628
12629 2014-01-15 Doug Evans <dje@google.com>
12630
12631 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12632 uint32_t.
12633
12634 2014-01-15 Tom Tromey <tromey@redhat.com>
12635
12636 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12637 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12638 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12639 (set_objfile_main_name): New function.
12640 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12641 language_of_main>: New fields.
12642 (set_objfile_main_name): Declare.
12643 * symtab.c (find_main_name): Loop over objfiles to find the main
12644 name and language.
12645 (set_main_name): Now static.
12646 (get_main_info): Add comment.
12647 * symtab.h (set_main_name): Don't declare.
12648
12649 2014-01-15 Tom Tromey <tromey@redhat.com>
12650
12651 * symtab.c (main_progspace_key): New global.
12652 (struct main_info): New.
12653 (name_of_main, language_of_main): Remove.
12654 (get_main_info, main_info_cleanup): New function.
12655 (set_main_name, main_name, main_language): Use get_main_info.
12656 (_initialize_symtab): Initialize main_progspace_key.
12657
12658 2014-01-15 Tom Tromey <tromey@redhat.com>
12659
12660 * dbxread.c (process_one_symbol): Update.
12661 * dwarf2read.c (read_partial_die): Update.
12662 * symfile.c (set_initial_language): Call main_language.
12663 * symtab.c (language_of_main): Now static.
12664 (set_main_name): Add 'lang' parameter.
12665 (find_main_name): Update.
12666 (main_language): New function.
12667 (symtab_observer_executable_changed): Update.
12668 * symtab.h (set_main_name): Update.
12669 (language_of_main): Remove.
12670 (main_language): Declare.
12671
12672 2014-01-15 Tom Tromey <tromey@redhat.com>
12673
12674 * symfile.c (init_entry_point_info): Use new "initialized" field.
12675 Update.
12676 * objfiles.h (struct entry_point) <initialized>: New field.
12677 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12678 (struct objfile) <ei>: ...here. Remove.
12679 * objfiles.c (entry_point_address_query): Update.
12680
12681 2014-01-15 Tom Tromey <tromey@redhat.com>
12682
12683 * objfiles.c (entry_point_address_query): Relocate entry point
12684 address.
12685 (objfile_relocate1): Do not relocate entry point address.
12686 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12687 <the_bfd_section_index>: New field.
12688 * symfile.c (init_entry_point_info): Find the entry point's
12689 section.
12690
12691 2014-01-15 Tom Tromey <tromey@redhat.com>
12692
12693 * solib-frv.c (enable_break): Use entry_point_address_query.
12694
12695 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12696
12697 * NEWS: Add note on improved process record-replay on
12698 arm*-linux* targets.
12699
12700 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12701
12702 * arm-tdep.c (enum arm_record_result): New enum.
12703 (arm_record_unsupported_insn): New function.
12704 (arm_record_coproc_data_proc): Removed.
12705 (thumb2_record_ld_st_multiple): New function.
12706 (thumb2_record_ld_st_dual_ex_tbb): New function.
12707 (thumb2_record_data_proc_sreg_mimm): New function.
12708 (thumb2_record_ps_dest_generic): New function.
12709 (thumb2_record_branch_misc_cntrl): New function.
12710 (thumb2_record_str_single_data): New function.
12711 (thumb2_record_ld_mem_hints): New function.
12712 (thumb2_record_ld_word): New function.
12713 (thumb2_record_lmul_lmla_div): New function.
12714 (thumb2_record_decode_insn_handler): New function.
12715 (decode_insn): Add thumb32 instruction handlers.
12716
12717 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12718
12719 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12720 (struct arm_linux_record_tdep): Declare.
12721 (arm_canonicalize_syscall): New function.
12722 (arm_all_but_pc_registers_record): New function.
12723 (arm_linux_syscall_record): New function.
12724 (arm_linux_init_abi): Add syscall recording constructs.
12725 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12726 decoding. (arm_record_coproc_data_proc): Update arm syscall
12727 decoding.
12728 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12729 <arm_syscall_record>: New field.
12730 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12731 gdb_target_obs.
12732
12733 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12734
12735 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12736 register for push instruction recording.
12737
12738 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12739
12740 * arm-tdep.c (thumb_record_misc): Update to correct logical
12741 error while recording ldm, ldmia and pop instructions.
12742
12743 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12744
12745 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12746
12747 2014-01-15 Pedro Alves <palves@redhat.com>
12748
12749 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12750 (go32_resume, go32_fetch_registers, store_register)
12751 (go32_store_registers, go32_prepare_to_store)
12752 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12753 (go32_create_inferior, go32_can_run, go32_terminal_init)
12754 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12755 declarations.
12756
12757 2014-01-15 Tom Tromey <tromey@redhat.com>
12758
12759 * target.h (async_callback_ftype): New typedef.
12760 (struct target_ops) <to_async>: Use it.
12761
12762 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12763
12764 * python/py-value.c (get_field_type): Remove unnecessary curly
12765 braces for single-statement if block.
12766
12767 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12768
12769 * python/py-type.c (convert_field): Add missing empty line
12770 after declarations.
12771
12772 2014-01-14 Doug Evans <dje@google.com>
12773
12774 * symfile.h (expand_symtabs_matching): Renamed from
12775 expand_partial_symbol_names. Update prototype.
12776 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12777 * symfile.c (expand_symtabs_matching): Renamed from
12778 expand_partial_symbol_names. New args file_matcher, kind.
12779 Rename arg fun to symbol_matcher.
12780 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12781 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12782 ada_expand_partial_symbol_name.
12783 (ada_make_symbol_completion_list): Update to call
12784 expand_symtabs_matching.
12785 (ada_add_global_exceptions): Call expand_symtabs_matching.
12786 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12787 call map_symbol_filenames.
12788 * symtab.c (sources_info): Update to call map_symbol_filenames.
12789 (search_symbols): Call expand_symtabs_matching.
12790 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12791 (default_make_symbol_completion_list_break_on): Update to call
12792 expand_symtabs_matching.
12793 (make_source_files_completion_list): Update to call
12794 map_symbol_filenames.
12795
12796 2014-01-14 Doug Evans <dje@google.com>
12797
12798 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12799 (expand_symtabs_symbol_matcher_ftype): New typedef.
12800 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12801 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12802 * symfile.c (expand_partial_symbol_names): Update to use
12803 expand_symtabs_symbol_matcher_ftype.
12804 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12805 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12806 Arg name_matcher renamed to symbol_matcher.
12807 * psymtab.c (recursively_search_psymtabs): Update to use
12808 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12809 sym_matcher.
12810 (expand_symtabs_matching_via_partial): Update to use
12811 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12812 Arg name_matcher renamed to symbol_matcher.
12813
12814 2014-01-14 Doug Evans <dje@google.com>
12815
12816 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12817 (map_partial_symbol_filenames): Ditto.
12818 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12819 (map_partial_symbol_filenames): Ditto.
12820 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12821 (map_partial_symbol_filenames): Ditto.
12822 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12823 (map_partial_symbol_filenames): Ditto.
12824 * symtab.c: Delete #include "psymtab.h".
12825
12826 2014-01-14 Pedro Alves <palves@redhat.com>
12827 Tom Tromey <tromey@redhat.com>
12828
12829 * infrun.c (use_displaced_stepping): Use find_record_target
12830 instead of RECORD_IS_USED.
12831 (adjust_pc_after_break): Use record_full_is_used instead of
12832 RECORD_IS_USED.
12833 * record-btrace.c (record_btrace_open): Call record_preopen
12834 instead of checking RECORD_IS_USED.
12835 * record-full.c (record_full_shortname)
12836 (record_full_core_shortname): New globals.
12837 (record_full_is_used): New function.
12838 (find_full_open): Call record_preopen instead of checking
12839 RECORD_IS_USED.
12840 (init_record_full_ops): Set the target's shortname to
12841 record_full_shortname.
12842 (init_record_full_core_ops): Set the target's shortname to
12843 record_full_core_shortname.
12844 * record-full.h (record_full_is_used): Declare.
12845 * record.c (find_record_target): Make extern.
12846 (record_preopen): New function.
12847 * record.h (RECORD_IS_USED): Delete macro.
12848 (find_record_target, record_preopen): Declare functions.
12849
12850 2014-01-14 Yao Qi <yao@codesourcery.com>
12851
12852 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12853 'len''s type to ULONGEST.
12854 (core_xfer_shared_libraries_aix): Likewise.
12855 * gdbarch.c, gdbarch.h: Regenerated.
12856 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12857 Change type of 'len' to ULONGEST.
12858 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12859 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12860
12861 2014-01-14 Yao Qi <yao@codesourcery.com>
12862
12863 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12864 type of 'len' to ULONGEST.
12865 (linux_xfer_osdata_processgroups): Likewise.
12866 (linux_xfer_osdata_threads): Likewise.
12867 (linux_xfer_osdata_fds): Likewise.
12868 (linux_xfer_osdata_isockets): Likewise.
12869 (linux_xfer_osdata_shm): Likewise.
12870 (linux_xfer_osdata_sem): Likewise.
12871 (linux_xfer_osdata_msg): Likewise.
12872 (linux_common_xfer_osdata): Likewise.
12873 (struct osdata_type) <getter>: Likewise.
12874 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12875 the declaration.
12876
12877 2014-01-14 Yao Qi <yao@codesourcery.com>
12878
12879 * target.h (target_xfer_partial_ftype): Update.
12880 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12881 ULONGEST.
12882 * aix-thread.c (aix_thread_xfer_partial): Change type of
12883 argument 'len' to ULONGEST.
12884 * auxv.c (procfs_xfer_auxv): Likewise.
12885 (ld_so_xfer_auxv): Likewise.
12886 (memory_xfer_auxv): Likewise.
12887 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12888 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12889 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12890 * corelow.c (core_xfer_partial): Likewise.
12891 * ctf.c (ctf_xfer_partial): Likewise.
12892 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12893 '%u'.
12894 (darwin_read_dyld_info): Likewise.
12895 (darwin_xfer_partial): Likewise.
12896 * exec.c (section_table_xfer_memory_partial): Likewise.
12897 (exec_xfer_partial): Likewise.
12898 * exec.h (section_table_xfer_memory_partial): Update
12899 declaration.
12900 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12901 instead of plongest.
12902 (gnu_xfer_partial): Likewise.
12903 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12904 (ia64_hpux_xfer_solib_got): Likewise.
12905 (ia64_hpux_xfer_partial): Likewise.
12906 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12907 * inf-ptrace.c (inf_ptrace_xfer_partial):
12908 * inf-ttrace.c (inf_ttrace_xfer_partial):
12909 * linux-nat.c (linux_xfer_siginfo): Likewise.
12910 (linux_nat_xfer_partial): Likewise.
12911 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12912 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12913 * monitor.c (monitor_xfer_memory): Likewise.
12914 (monitor_xfer_partial): Likewise.
12915 * procfs.c (procfs_xfer_partial): Likewise.
12916 * record-full.c (record_full_xfer_partial): Likewise.
12917 (record_full_core_xfer_partial): Likewise.
12918 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12919 instead of plongest.
12920 (gdbsim_xfer_partial): Likewise.
12921 * remote.c (remote_xfer_partial): Likewise.
12922 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12923 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12924 declaration.
12925 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12926 (rs6000_xfer_shared_libraries): Likewise.
12927 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12928 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12929 (sparc_xfer_partial): Likewise.
12930 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12931 (spu_xfer_partial): Likewise.
12932 * spu-multiarch.c (spu_xfer_partial): Likewise.
12933 * target.c (target_read_live_memory): Likewise.
12934 (memory_xfer_live_readonly_partial): Likewise.
12935 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12936 (target_xfer_partial, default_xfer_partial): Likewise.
12937 (current_xfer_partial): Likewise.
12938 * tracepoint.c (tfile_xfer_partial): Likewise.
12939 * windows-nat.c (windows_xfer_memory): Likewise. Call
12940 pulongest instead of plongest.
12941 (windows_xfer_partial): Likewise.
12942 (windows_xfer_shared_libraries): Likewise.
12943
12944 2014-01-14 Yao Qi <yao@codesourcery.com>
12945
12946 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12947 target_xfer_partial_ftype.
12948
12949 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12950
12951 PR python/15464
12952 PR python/16113
12953 * valops.c (value_struct_elt_bitpos): New function
12954 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12955 object to 'None' if the field name is an empty string ("").
12956 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12957 attribute to look for a field when 'name' is 'None'.
12958 (get_field_type): New function
12959
12960 2014-01-13 Doug Evans <dje@google.com>
12961
12962 PR symtab/16426
12963 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12964 (try_open_dwop_file): Ditto.
12965 * gdb_bfd.c: #include "vec.h".
12966 (bfdp): New typedef.
12967 (struct gdb_bfd_data): New member included_bfds.
12968 (gdb_bfd_unref): Unref all included bfds.
12969 (gdb_bfd_record_inclusion): New function.
12970 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12971
12972 2014-01-13 Tom Tromey <tromey@redhat.com>
12973
12974 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12975
12976 2014-01-13 Tom Tromey <tromey@redhat.com>
12977
12978 * defs.h (use_windows): Remove.
12979 * gdb.c (main): Update.
12980 * main.c (captured_main, gdb_main): Update.
12981 * main.h (struct captured_main_args) <use_windows>: Remove.
12982 * top.c (use_windows): Remove.
12983
12984 2014-01-13 Tom Tromey <tromey@redhat.com>
12985
12986 * defs.h (deprecated_flush_hook): Remove.
12987
12988 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12989
12990 PR threads/16216
12991 * linux-thread-db.c (try_thread_db_load): Add parameter
12992 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12993 (try_thread_db_load_from_pdir_1): Move it there from here.
12994 (try_thread_db_load_from_sdir): Update caller.
12995 (try_thread_db_load_from_dir): Move it there from here.
12996
12997 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12998
12999 * regformats/regdat.sh: Always rewrite the register file.
13000
13001 2014-01-13 Pedro Alves <palves@redhat.com>
13002
13003 * Makefile.in (CHECK_HEADERS): New variable.
13004 (check-headers:): New rule.
13005
13006 2014-01-13 Tom Tromey <tromey@redhat.com>
13007
13008 * cli/cli-setshow.c (do_set_command): Update.
13009 * defs.h (deprecated_set_hook): Remove.
13010 * top.c (deprecated_set_hook): Remove.
13011
13012 2014-01-13 Pedro Alves <palves@redhat.com>
13013
13014 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13015 the tracepoint if the PC is a pseudo-register.
13016
13017 2014-01-13 Tom Tromey <tromey@redhat.com>
13018
13019 * defs.h (XCALLOC): Remove.
13020 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13021 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13022 * dwarf2loc.c (allocate_piece_closure): Likewise.
13023 * elfread.c (elf_symfile_segments): Likewise.
13024 (elf_symfile_segments): Likewise.
13025 * gdbtypes.c (copy_type_recursive): Likewise.
13026 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13027 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13028 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13029 XCALLOC.
13030 * mt-tdep.c (mt_gdbarch_init): Likewise.
13031 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13032 XCALLOC.
13033 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13034 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13035 * registry.c (registry_alloc_data): Likewise.
13036 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13037 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13038 * serial.c (serial_fdopen_ops): Likewise.
13039 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13040 XCALLOC.
13041 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13042 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13043 not XCALLOC.
13044
13045 2014-01-13 Tom Tromey <tromey@redhat.com>
13046
13047 * defs.h (XMALLOC): Remove.
13048 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13049 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13050 * cli-out.c (struct ui_out *): Likewise.
13051 * cli/cli-dump.c (add_dump_command): Likewise.
13052 (add_dump_command): Likewise.
13053 * complaints.c (get_complaints): Likewise.
13054 (find_complaint): Likewise.
13055 * dwarf2-frame.c (execute_cfa_program): Likewise.
13056 * dwarf2read.c (abbrev_table_read_table): Likewise.
13057 * gdbarch.sh: Likewise.
13058 * gdbarch.c: Rebuild.
13059 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13060 * interps.c (interp_new): Likewise.
13061 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13062 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13063 * mi/mi-console.c (mi_console_file_new): Likewise.
13064 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13065 * mi/mi-out.c (mi_out_new): Likewise.
13066 * mi/mi-parse.c (mi_parse): Likewise.
13067 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13068 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13069 * observer.c (xalloc_observer_list_node): Likewise.
13070 * regcache.c (regcache_xmalloc_1): Likewise.
13071 * reggroups.c (reggroup_new): Likewise.
13072 (_initialize_reggroup): Likewise.
13073 * registry.c (register_data_with_cleanup): Likewise.
13074 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13075 * ser-base.c (serial_ttystate): Likewise.
13076 * ser-mingw.c (make_pipe_state): Likewise.
13077 * ser-pipe.c (pipe_open): Likewise.
13078 * serial.c (serial_open): Likewise.
13079 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13080 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13081 (tui_alloc_win_info): Likewise.
13082 (tui_add_content_elements): Likewise.
13083 * tui/tui-file.c (tui_file_new): Likewise.
13084 * tui/tui-out.c (tui_out_new): Likewise.
13085 * ui-file.c (mem_file_new): Likewise.
13086 * ui-out.c (push_level): Likewise.
13087 (make_cleanup_ui_out_end): Likewise.
13088 (append_header_to_list): Likewise.
13089 (ui_out_new): Likewise.
13090 * user-regs.c (user_reg_add_builtin): Likewise.
13091
13092 2014-01-13 Tom Tromey <tromey@redhat.com>
13093
13094 * defs.h (XZALLOC): Remove.
13095 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13096 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13097 (get_ada_tasks_inferior_data): Likewise.
13098 * auto-load.c (get_auto_load_pspace_data): Likewise.
13099 * auxv.c (get_auxv_inferior_data): Likewise.
13100 * bfd-target.c (target_bfd_reopen): Likewise.
13101 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13102 (deprecated_insert_raw_breakpoint): Likewise.
13103 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13104 * corelow.c (core_open): Likewise.
13105 * darwin-nat.c (darwin_check_new_threads): Likewise.
13106 (darwin_attach_pid): Likewise.
13107 * dummy-frame.c (dummy_frame_push): Likewise.
13108 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13109 * dwarf2loc.c (allocate_piece_closure): Likewise.
13110 * elfread.c (elf_symfile_segments): Likewise.
13111 * eval.c (ptrmath_type_p): Likewise.
13112 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13113 * gdbtypes.c (alloc_type_arch): Likewise.
13114 (alloc_type_instance): Likewise.
13115 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13116 * inf-child.c (inf_child_can_use_agent): Likewise.
13117 * inflow.c (get_inflow_inferior_data): Likewise.
13118 * infrun.c (save_infcall_suspend_state): Likewise.
13119 * jit.c (jit_reader_load): Likewise.
13120 (get_jit_objfile_data): Likewise.
13121 (get_jit_program_space_data): Likewise.
13122 (jit_object_open_impl): Likewise.
13123 (jit_symtab_open_impl): Likewise.
13124 (jit_block_open_impl): Likewise.
13125 (jit_frame_sniffer): Likewise.
13126 * linux-fork.c (add_fork): Likewise.
13127 * maint.c (make_command_stats_cleanup): Likewise.
13128 * objfiles.c (get_objfile_pspace_data): Likewise.
13129 * opencl-lang.c (struct lval_closure): Likewise.
13130 * osdata.c (osdata_start_osdata): Likewise.
13131 * progspace.c (new_address_space): Likewise.
13132 (add_program_space): Likewise.
13133 * remote-sim.c (get_sim_inferior_data): Likewise.
13134 * sh-tdep.c (sh_gdbarch_init): Likewise.
13135 * skip.c (Ignore): Likewise.
13136 (skip_delete_command): Likewise.
13137 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13138 (library_list_start_library): Likewise.
13139 (solib_aix_current_sos): Likewise.
13140 * solib-darwin.c (get_darwin_info): Likewise.
13141 (darwin_current_sos): Likewise.
13142 * solib-dsbt.c (get_dsbt_info): Likewise.
13143 * solib-ia64-hpux.c (new_so_list): Likewise.
13144 (ia64_hpux_get_solib_linkage_addr): Likewise.
13145 * solib-spu.c (append_ocl_sos): Likewise.
13146 (spu_current_sos): Likewise.
13147 * solib-svr4.c (get_svr4_info): Likewise.
13148 (svr4_keep_data_in_core): Likewise.
13149 (library_list_start_library): Likewise.
13150 (svr4_default_sos): Likewise.
13151 (svr4_read_so_list): Likewise.
13152 * solib-target.c (library_list_start_library): Likewise.
13153 (solib_target_current_sos): Likewise.
13154 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13155 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13156 * symfile.c (default_symfile_segments): Likewise.
13157 * target-descriptions.c (tdesc_data_init): Likewise.
13158 (tdesc_create_reg): Likewise.
13159 (struct tdesc_type *): Likewise.
13160 (tdesc_create_vector): Likewise.
13161 (tdesc_set_struct_size): Likewise.
13162 (struct tdesc_type *): Likewise.
13163 (tdesc_free_feature): Likewise.
13164 (tdesc_create_feature): Likewise.
13165 * windows-nat.c (windows_add_thread): Likewise.
13166 (windows_make_so): Likewise.
13167 * xml-support.c (gdb_xml_body_text): Likewise.
13168 (gdb_xml_create_parser_and_cleanup): Likewise.
13169 (xml_process_xincludes): Likewise.
13170 * xml-syscall.c (allocate_syscalls_info): Likewise.
13171 (syscall_create_syscall_desc): Likewise.
13172
13173 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13174
13175 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13176 function, with code from i386_stap_parse_special_token.
13177 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13178 (i386_stap_parse_special_token): Move code to the two functions
13179 above; simplify it.
13180
13181 2014-01-09 Pedro Alves <palves@redhat.com>
13182 Hui Zhu <hui@codesourcery.com>
13183
13184 PR gdb/16101
13185 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13186 bp_err_string. Don't mark the location shlib_disabled if the
13187 error thrown wasn't a generic or memory error. Catch errors
13188 thrown while inserting breakpoints in overlayed code. Output
13189 error message of software breakpoints.
13190 * remote.c (remote_insert_breakpoint): If this breakpoint has
13191 target-side commands but this stub doesn't support Z0 packets,
13192 throw NOT_SUPPORTED_ERROR error.
13193 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13194 * target.h (target_insert_breakpoint): Extend comment.
13195 (target_insert_hw_breakpoint): Add comment.
13196
13197 2014-01-08 Pedro Alves <palves@redhat.com>
13198
13199 * remote.c (remote_add_thread): Add threads silently if starting
13200 up.
13201 (remote_notice_new_inferior): If in all-stop, and starting up,
13202 don't call notice_new_inferior.
13203 (get_current_thread): New function, factored out from ...
13204 (add_current_inferior_and_thread): ... this. Adjust.
13205 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13206 found any thread, then select the remote's current thread as GDB's
13207 current thread too.
13208
13209 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13210
13211 * NEWS: Create a new section for the next release branch.
13212 Rename the section of the current branch, now that it has
13213 been cut.
13214
13215 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13216
13217 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13218 * version.in: Bump version to 7.7.50.DATE-cvs.
13219
13220 2014-01-08 Yao Qi <yao@codesourcery.com>
13221
13222 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13223 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13224 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13225
13226 2014-01-08 Yao Qi <yao@codesourcery.com>
13227
13228 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13229 return value of bfd_get_filename to symbol_file_add_from_bfd.
13230
13231 2014-01-08 Pierre Muller <muller@sourceware.org>
13232
13233 Fix PR16201.
13234 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13235 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13236 to prim_record_mininal_symbol_and_info.
13237 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13238 in call to prim_record_minimal_symbol_and_info.
13239 (read_pe_exported_syms): Set index field of section_data.
13240
13241 2014-01-07 Andrew Pinski <apinski@cavium.com>
13242
13243 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13244 * features/aarch64.c: Regenerate.
13245
13246 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13247
13248 * target.c (return_null): Define.
13249 (update_current_target): Use it instead of return_zero for
13250 functions that return a pointer.
13251
13252 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13253
13254 * source.c (add_path): Fix check for duplicated paths in the previously
13255 included paths.
13256
13257 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13258
13259 * ada-lang.c: Remove duplicated include statements.
13260 * alphabsd-nat.c: Ditto.
13261 * amd64-darwin-tdep.c: Ditto.
13262 * amd64fbsd-nat.c: Ditto.
13263 * auto-load.c: Ditto.
13264 * ax-gdb.c: Ditto.
13265 * breakpoint.c: Ditto.
13266 * dbxread.c: Ditto.
13267 * fork-child.c: Ditto.
13268 * gdb_usleep.c: Ditto.
13269 * i386-darwin-tdep.c: Ditto.
13270 * i386fbsd-nat.c: Ditto.
13271 * infcmd.c: Ditto.
13272 * inferior.c: Ditto.
13273 * jv-lang.c: Ditto.
13274 * linux-nat.c: Ditto.
13275 * linux-tdep.c: Ditto.
13276 * m68kbsd-nat.c: Ditto.
13277 * m68klinux-nat.c: Ditto.
13278 * microblaze-tdep.c: Ditto.
13279 * mips-linux-tdep.c: Ditto.
13280 * mn10300-tdep.c: Ditto.
13281 * nto-tdep.c: Ditto.
13282 * opencl-lang.c: Ditto.
13283 * osdata.c: Ditto.
13284 * printcmd.c: Ditto.
13285 * regcache.c: Ditto.
13286 * remote-m32r-sdi.c: Ditto.
13287 * remote.c: Ditto.
13288 * symfile.c: Ditto.
13289 * symtab.c: Ditto.
13290 * tilegx-linux-nat.c: Ditto.
13291 * tilegx-tdep.c: Ditto.
13292 * tracepoint.c: Ditto.
13293 * valops.c: Ditto.
13294 * vaxbsd-nat.c: Ditto.
13295 * windows-nat.c: Ditto.
13296 * xtensa-tdep.c: Ditto.
13297
13298 2014-01-07 Yao Qi <yao@codesourcery.com>
13299
13300 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13301
13302 2014-01-07 Yao Qi <yao@codesourcery.com>
13303 Joel Brobecker <brobecker@adacore.com>
13304
13305 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13306 (pdc_write_regs): Likewise.
13307 (fetch_regs_kernel_thread): Likewise.
13308 (store_regs_kernel_thread): Likewise.
13309
13310 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13311
13312 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13313 tagged type objects to their actual type.
13314
13315 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13316
13317 * ada-valprint.c (print_field_values): Add "language" parameter.
13318 Update calls to print_field_values and print_variant_part.
13319 Pass new parameter "language" in call to val_print instead
13320 of "current_language". Replace call to ada_val_print by call
13321 to val_print.
13322 (print_variant_part): Add "language" parameter.
13323 (ada_val_print_struct_union): Update call to print_field_values.
13324
13325 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13326
13327 * ada-valprint.c (ui_memcpy): Delete.
13328 (ada_print_floating): Update documentation. Add empty line
13329 between between function documentation and implementation.
13330 Delete variable "buffer". Use ui_file_xstrdup in place of
13331 ui_file_put. Minor adjustments following this change.
13332
13333 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13334
13335 * ada-valprint.c (ada_val_print_string): New function,
13336 extracted from ada_val_print_array.
13337 (ada_val_print_array): Replace extracted code by call
13338 to ada_val_print_string followed by a return. Move
13339 "else" branch to the function's top block.
13340
13341 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13342
13343 * ada-valprint.c (ada_val_print_array): Move implementation
13344 down. Rename parameter "offset" and "val" into "offset_aligned"
13345 and "original_value" respectively. Add parameter "offset".
13346
13347 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13348
13349 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13350 re-organizing the code. Change the "???" message printed
13351 when target type is a TYPE_CODE_UNDEF into
13352 "<ref to undefined type>".
13353
13354 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13355
13356 * ada-valprint.c (print_record): Delete, implementation inlined...
13357 (ada_val_print_struct_union): ... here. Remove call to
13358 ada_check_typedef in inlined implementation.
13359
13360 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13361
13362 * ada-valprint.c (ada_val_print_gnat_array): New function,
13363 extracted from ada_val_print_1;
13364 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13365 (ada_val_print_flt, ada_val_print_struct_union)
13366 (ada_val_print_ref): Likewise.
13367 (ada_val_print_1): Delete variables i and elttype.
13368 Replace extracted-out code by call to corresponding
13369 new functions.
13370
13371 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13372
13373 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13374
13375 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13376
13377 * ada-valprint.c (ada_val_print_1): Replace calls to
13378 ada_val_print_1 by calls to val_print.
13379
13380 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13381
13382 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13383 Update calls to self accordingly. Replace calls to c_val_print
13384 by calls to val_print.
13385
13386 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13387
13388 * ada-valprint.c (print_record): Delete declaration.
13389 (adjust_type_signedness, ada_val_print_1): Likewise.
13390 (ada_val_print): Move function implementation down.
13391 (print_variant_part, print_field_values, print_record):
13392 Move function implementation up.
13393
13394 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13395
13396 * python/py-type.c (typy_get_name): New function.
13397 (type_object_getset): Add entry for attribute "name".
13398 * NEWS: Add entry mentioning this new attribute.
13399
13400 2014-01-07 Yao Qi <yao@codesourcery.com>
13401
13402 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13403 statement.
13404
13405 2014-01-07 Yao Qi <yao@codesourcery.com>
13406
13407 * gnu-nat.c (info_port_rights): Add qualifier const to
13408 argument args.
13409
13410 2014-01-07 Yao Qi <yao@codesourcery.com>
13411
13412 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13413
13414 2014-01-07 Yao Qi <yao@codesourcery.com>
13415
13416 * gnu-nat.c (make_inf) Update declaration.
13417 (make_inf): Make it static.
13418 (inf_set_traced): Likewise.
13419 (inf_port_to_thread, inf_task_died_status): Likewise.
13420
13421 2014-01-07 Yao Qi <yao@codesourcery.com>
13422
13423 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13424
13425 2014-01-07 Yao Qi <yao@codesourcery.com>
13426
13427 * gnu-nat.c (_initialize_gnu_nat): Declare.
13428
13429 2014-01-07 Yao Qi <yao@codesourcery.com>
13430
13431 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13432 'enum bfd_endian'.
13433 (struct gdbarch_info) <byte_order>: Change type to
13434 'enum bfd_endian'.
13435 <byte_order_for_code>: Likewise.
13436 * gdbarch.c, gdbarch.h: Regenerated.
13437
13438 2014-01-06 Sasha Smundak <asmundak@google.com>
13439
13440 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13441
13442 2014-01-06 Tom Tromey <tromey@redhat.com>
13443
13444 * doublest.c (convert_doublest_to_floatformat): Use const, not
13445 CONST.
13446 * somread.c (som_symtab_read): Likewise.
13447
13448 2014-01-07 Hui Zhu <hui@codesourcery.com>
13449
13450 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13451 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13452 (gdb_bfd_fopen): Ditto.
13453 (gdb_bfd_openr): Ditto.
13454 (gdb_bfd_openw): Ditto.
13455 (gdb_bfd_openr_iovec): Ditto.
13456 (gdb_bfd_fdopenr): Ditto.
13457 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13458 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13459 with xstrdup.
13460 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13461 with xstrdup.
13462 * symfile-mem.c (symbol_file_add_from_memory): Removed
13463 gdb_bfd_stash_filename.
13464
13465 2014-01-03 Doug Evans <dje@google.com>
13466
13467 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13468 output.
13469
13470 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13471
13472 Update year range in copyright notice of all files.
13473
13474 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13475
13476 * top.c (print_gdb_version): Set copyright year to 2014.
13477
13478 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13479
13480 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13481
13482 For older changes see ChangeLog-2013.
13483 \f
13484 Local Variables:
13485 mode: change-log
13486 left-margin: 8
13487 fill-column: 74
13488 version-control: never
13489 coding: utf-8
13490 End:
This page took 0.468779 seconds and 5 git commands to generate.