features/Makefile: Make 'make cfiles' default to generating all C files
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-10-01 Pedro Alves <palves@redhat.com>
2
3 * features/Makefile: Update comments.
4 (XMLTOC): List all xml files we build C files from.
5 (clean-cfiles): New rule.
6
7 2014-10-01 Pedro Alves <palves@redhat.com>
8
9 * features/i386/amd64-avx512-linux.c: Regenerate.
10 * features/i386/amd64-avx512.c: Regenerate.
11 * features/i386/x32-avx512-linux.c: Regenerate.
12 * features/i386/x32-avx512.c: Regenerate.
13
14 2014-10-01 Pedro Alves <palves@redhat.com>
15
16 * features/Makefile (WHICH): Remove arm-with-m,
17 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
18
19 2014-10-01 Pedro Alves <palves@redhat.com>
20
21 * features/Makefile (clean): New rule.
22
23 2014-10-01 Pedro Alves <palves@redhat.com>
24
25 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
26 (zmm14h): Add missing end quotes.
27
28 2014-10-01 Pedro Alves <palves@redhat.com>
29
30 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
31 * features/aarch64.c: Regenerate.
32
33 2014-09-30 Don Breazeal <donb@codesourcery.com>
34
35 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
36 code so as to work with follow_fork_inferior.
37 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
38 (inf_ttrace_create_inferior): Remove reference to
39 inf_ttrace_vfork_ppid.
40 (inf_ttrace_attach): Ditto.
41 (inf_ttrace_detach): Ditto.
42 (inf_ttrace_kill): Use current_inferior instead of
43 inf_ttrace_vfork_ppid.
44 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
45 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
46 inferior away from the parent.
47 * infrun.c (follow_fork): Call follow_fork_inferior instead of
48 target_follow_fork.
49 (follow_fork_inferior): New function.
50 (follow_inferior_reset_breakpoints): Make function static.
51 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
52 * linux-nat.c (linux_child_follow_fork): Move target-independent
53 code to infrun.c:follow_fork_inferior.
54
55 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
56
57 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
58 * gdbarch.c: Regenerate.
59 * gdbarch.h: Likewise.
60 * corelow.c (sniff_core_bfd): Drop presence check for deleted
61 gdbarch method 'regset_from_core_section'.
62 (get_core_register_section): Remove handling for the case that
63 regset == NULL and regset_from_core_section is defined.
64 (get_core_registers): Drop check for deleted method.
65 * procfs.c (procfs_do_thread_registers): Adjust comment.
66
67 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
68
69 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
70 (linux_nat_make_corefile_notes): Remove.
71 (linux_target_install_ops): Do not set target method
72 'make_corefile_notes'.
73 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
74 Remove field.
75 (linux_corefile_thread_callback): Instead of args->collect, call
76 linux_collect_thread_registers.
77 (linux_make_corefile_notes): Remove 'collect' parameter. Return
78 NULL unless there is a regset iterator.
79 (linux_make_corefile_notes_1): Remove.
80 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
81 by linux_make_corefile_notes.
82 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
83
84 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
85
86 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
87 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
88 Remove.
89 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
90
91 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
92
93 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
94 (xtensa_iterate_over_regset_sections): New.
95 (xtensa_gdbarch_init): Adjust gdbarch initialization.
96
97 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
98
99 * vax-tdep.c (vax_regset_from_core_section): Remove.
100 (vax_iterate_over_regset_sections): New.
101 (vax_gdbarch_init): Adjust gdbarch initialization.
102
103 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
104
105 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
106 (tilegx_regset_from_core_section): Remove.
107 (tilegx_iterate_over_regset_sections): New.
108 (tilegx_linux_init_abi): Adjust gdbarch initialization.
109
110 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
111
112 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
113 (sparc_iterate_over_regset_sections): New.
114 (sparc32_gdbarch_init): Adjust gdbarch initialization.
115 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
116 targets.
117 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
118 (sparc64fbsd_init_abi): Call fbsd_init_abi.
119 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
120 target method 'make_corefile_notes'.
121
122 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
123
124 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
125 'sizeof_gregset' and 'sizeof_fpregset'.
126 * sh-tdep.c (sh_regset_from_core_section): Remove.
127 (sh_iterate_over_regset_sections): New.
128 (sh_gdbarch_init): Adjust gdbarch initialization.
129 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
130 sizeof_fpregset.
131 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
132 'sizeof_gregset'.
133
134 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
135
136 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
137 (score7_linux_iterate_over_regset_sections): New.
138 (score_gdbarch_init): Adjust gdbarch initialization.
139
140 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
141
142 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
143 FreeBSD targets.
144 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
145 method 'make_corefile_notes'.
146 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
147 (ppcfbsd_regset_from_core_section): Remove.
148 (ppcfbsd_iterate_over_regset_sections): New.
149 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
150 initialization.
151 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
152 (ppcnbsd_iterate_over_regset_sections): New.
153 (ppcnbsd_init_abi): Adjust.
154 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
155 (ppcobsd_iterate_over_regset_sections): New.
156 (ppcobsd_init_abi): Adjust.
157 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
158 (rs6000_aix_iterate_over_regset_sections): New.
159 (rs6000_aix_init_osabi): Adjust.
160
161 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
162
163 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
164 (nios2_regset_from_core_section): Remove.
165 (nios2_iterate_over_regset_sections): New.
166 (nios2_linux_init_abi): Adjust gdbarch initialization.
167
168 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
169
170 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
171 (am33_iterate_over_regset_sections): New.
172 (am33_linux_init_osabi): Adjust gdbarch initialization.
173
174 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
175
176 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
177 (mips_linux_iterate_over_regset_sections): New.
178 (mips_linux_init_abi): Adjust gdbarch initialization.
179 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
180 (mips64obsd_iterate_over_regset_sections): New.
181 (mips64obsd_init_abi): Adjust.
182 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
183 (mipsnbsd_iterate_over_regset_sections): New.
184 (mipsnbsd_init_abi): Adjust.
185
186 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
187
188 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
189 (m88k_iterate_over_regset_sections): New.
190 (m88k_gdbarch_init): Adjust gdbarch initialization.
191
192 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
193
194 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
195 (ia64_linux_iterate_over_regset_sections): New.
196 (ia64_linux_init_abi): Adjust gdbarch initialization.
197
198 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
199
200 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
201 (m68kbsd_iterate_over_regset_sections): New.
202 (m68kbsd_init_abi): Adjust gdbarch initialization.
203 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
204 (m68k_linux_iterate_over_regset_sections): New.
205 (m68k_linux_init_abi): Adjust gdbarch initialization.
206
207 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
208
209 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
210 (m32r_linux_regset_from_core_section): Remove.
211 (m32r_linux_iterate_over_regset_sections): New.
212 (m32r_linux_init_abi): Adjust gdbarch initialization.
213
214 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
215
216 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
217 (amd64obsd_iterate_over_regset_sections): New.
218 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
219 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
220 Remove.
221 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
222 regset_from_core_section initialization.
223 * i386-tdep.c (i386_regset_from_core_section): Remove.
224 (i386_iterate_over_regset_sections): New.
225 (i386_gdbarch_init): Adjust gdbarch initialization.
226 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
227 (i386_iterate_over_regset_sections): New prototype.
228 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
229 Remove.
230 (i386obsd_aout_iterate_over_regset_sections): New.
231 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
232 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
233 targets.
234 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
235 (amd64fbsd_init_abi): Call fbsd_init_abi.
236 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
237 (i386fbsd4_init_abi): Call fbsd_init_abi.
238 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
239 target method 'make_corefile_notes'.
240 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
241
242 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
243
244 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
245 (hppa_hpux_iterate_over_regset_sections): New.
246 (hppa_hpux_init_abi): Adjust gdbarch initialization.
247 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
248 (hppa_linux_iterate_over_regset_sections): New.
249 (hppa_linux_init_abi): Adjust.
250 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
251 (hppanbsd_iterate_over_regset_sections): New.
252 (hppanbsd_init_abi): Adjust.
253 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
254 (hppaobsd_iterate_over_regset_sections): New.
255 (hppaobsd_init_abi): Adjust.
256
257 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
258
259 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
260 (frv_linux_iterate_over_regset_sections): New.
261 (frv_linux_init_abi): Adjust gdbarch initialization.
262
263 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
264
265 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
266 (armbsd_iterate_over_regset_sections): New prototype.
267 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
268 (armbsd_iterate_over_regset_sections): New.
269 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
270 initialization.
271
272 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
273
274 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
275 (alpha_linux_iterate_over_regset_sections): New.
276 (alpha_linux_init_abi): Adjust gdbarch initialization.
277 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
278 prototype.
279 (alphanbsd_iterate_over_regset_sections): New prototype.
280
281 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
282
283 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
284 Remove.
285 (aarch64_linux_iterate_over_regset_sections): New.
286 (aarch64_linux_init_abi): Adjust gdbarch initialization.
287
288 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
289
290 * fbsd-tdep.c: New file.
291 * fbsd-tdep.h: New file.
292 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
293 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
294 (ALLDEPFILES): Add fbsd-tdep.c.
295
296 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
297
298 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
299 parameter.
300 * gdbarch.h: Regenerate.
301 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
302 iterator.
303 (get_core_register_section): Add parameter 'regset' and use it, if
304 set. Add parameter 'min_size' and verify the bfd section size
305 against it.
306 (get_core_registers_cb): Add parameter 'regset' and pass it to
307 get_core_register section. For the "standard" register sections
308 ".reg" and ".reg2", set an appropriate default for human_name.
309 (get_core_registers): Don't abort when the gdbarch has an iterator
310 but no regset_from_core_section. Add NULL/0 for parameters
311 'regset'/'min_size' in calls to get_core_register_section.
312 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
313 'regset' and use it instead of calling the
314 regset_from_core_section gdbarch method.
315 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
316 * i386-tdep.c (i386_supply_xstateregset)
317 (i386_collect_xstateregset, i386_xstateregset): Moved to
318 i386-linux-tdep.c.
319 (i386_regset_from_core_section): Drop handling for .reg-xfp and
320 .reg-xstate.
321 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
322 core file support only if the regset iterator hasn't been set.
323 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
324 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
325 Moved from i386-tdep.c and renamed to *_linux*.
326 (i386_linux_iterate_over_regset_sections): Add regset parameter to
327 each callback invocation. Allow any .reg-xstate size when reading
328 from a core file.
329 * amd64-tdep.c (amd64_supply_xstateregset)
330 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
331 amd64-linux-tdep.c.
332 (amd64_regset_from_core_section): Remove.
333 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
334 install an amd64-specific regset_from_core_section gdbarch method.
335 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
336 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
337 Moved from amd64-tdep.c and renamed to *_linux*.
338 (amd64_linux_iterate_over_regset_sections): Add regset parameter
339 to each callback invocation. Allow any .reg-xstate size when
340 reading from a core file.
341 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
342 (arm_linux_iterate_over_regset_sections): Add regset parameter to
343 each callback invocation.
344 (arm_linux_init_abi): No longer set the regset_from_core_section
345 gdbarch method.
346 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
347 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
348 each callback invocation.
349 (ppc_linux_init_abi): No longer set the regset_from_core_section
350 gdbarch method.
351 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
352 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
353 (s390_regset_from_core_section): Remove.
354 (s390_iterate_over_regset_sections): Add regset parameter to each
355 callback invocation.
356 (s390_gdbarch_init): No longer set the regset_from_core_section
357 gdbarch method. Drop initialization of deleted tdep fields.
358
359 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
360
361 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
362 (amd64_linux_iterate_over_regset_sections): New.
363 (amd64_linux_init_abi_common): Don't install the regset section
364 list, but the new iterator in gdbarch.
365 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
366 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
367 (arm_linux_iterate_over_regset_sections): ...here. New function.
368 (arm_linux_init_abi): Set iterator instead of section list.
369 * corelow.c (get_core_registers_cb): New function, logic moved
370 from...
371 (get_core_registers): ...loop body here. Use new iterator method
372 instead of walking through the regset section list.
373 * gdbarch.sh: Remove 'core_regset_sections'. New method
374 'iterate_over_regset_sections'. New typedef
375 'iterate_over_regset_sections_cb'.
376 * gdbarch.c: Regenerate.
377 * gdbarch.h: Likewise.
378 * i386-linux-tdep.c (i386_linux_regset_sections)
379 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
380 Remove.
381 (i386_linux_iterate_over_regset_sections): New.
382 (i386_linux_init_abi): Don't choose a regset section list, but
383 install new iterator in gdbarch.
384 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
385 (linux_collect_regset_section_cb): New function, logic moved
386 from...
387 (linux_collect_thread_registers): ...loop body here. Use iterator
388 method instead of walking through list.
389 (linux_make_corefile_notes_1): Check for presence of iterator
390 method instead of regset section list.
391 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
392 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
393 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
394 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
395 (ppc_linux_iterate_over_regset_sections): ...here. New function.
396 (ppc_linux_init_abi): Don't choose from above regset section
397 lists, but install new iterator in gdbarch.
398 * regset.h (struct core_regset_section): Remove.
399 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
400 have_linux_v1, have_linux_v2, and have_tdb.
401 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
402 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
403 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
404 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
405 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
406 (s390_iterate_over_regset_sections): ...here. New function. Use
407 new tdep fields.
408 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
409 regset section lists, but install new iterator.
410
411 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
412
413 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
414
415 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
416
417 * progspace.c (print_program_space): Don't prune program spaces
418 before printing them.
419
420 2014-09-25 Pedro Alves <palves@redhat.com>
421
422 * infrun.c (user_visible_resume_ptid): Don't check
423 singlestep_breakpoints_inserted_p.
424
425 2014-09-25 Pedro Alves <palves@redhat.com>
426
427 * breakpoint.c (should_be_inserted): Add debug output.
428
429 2014-09-25 Pedro Alves <palves@redhat.com>
430
431 * infrun.c (stepping_past_instruction_at)
432 (clear_exit_convenience_vars): Point at infrun.h instead of
433 inferior.h.
434 (handle_signal_stop): Fix typo.
435
436 2014-09-24 Yao Qi <yao@codesourcery.com>
437
438 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
439 bitmask.
440
441 2014-09-22 Gary Benson <gbenson@redhat.com>
442
443 * target.c (target_stop): Updated comment.
444
445 2014-09-22 Gary Benson <gbenson@redhat.com>
446
447 * target/target.h (target_stop_ptid): Renamed as...
448 (target_stop_and_wait): New function. Updated comment.
449 All uses updated.
450 (target_continue_ptid): Renamed as...
451 (target_continue_no_signal): New function. Updated comment.
452 All uses updated.
453
454 2014-09-22 Pedro Alves <palves@redhat.com>
455
456 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
457 and "auto" merged.
458 * breakpoint.c (enum ugll_insert_mode): New enum.
459 (always_inserted_mode): Now a plain boolean.
460 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
461 (breakpoints_always_inserted_mode): Delete.
462 (breakpoints_should_be_inserted_now): New function.
463 (insert_breakpoints): Pass UGLL_INSERT to
464 update_global_location_list instead of calling
465 insert_breakpoint_locations manually.
466 (create_solib_event_breakpoint_1): New, factored out from ...
467 (create_solib_event_breakpoint): ... this.
468 (create_and_insert_solib_event_breakpoint): Use
469 create_solib_event_breakpoint_1 instead of calling
470 insert_breakpoint_locations manually.
471 (update_global_location_list): Change parameter type from boolean
472 to enum ugll_insert_mode. All callers adjusted. Adjust to use
473 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
474 (update_global_location_list_nothrow): Change parameter type from
475 boolean to enum ugll_insert_mode.
476 (_initialize_breakpoint): "breakpoint always-inserted" option is
477 now a boolean command. Update help text.
478 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
479 (breakpoints_should_be_inserted_now): New declaration.
480 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
481 Remove breakpoints_always_inserted_mode check.
482 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
483 * remote.c (remote_start_remote): Likewise.
484
485 2014-09-22 Pedro Alves <palves@redhat.com>
486
487 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
488 (insert_breakpoints): Don't call insert_breakpoint_locations here.
489 Instead, pass UGLL_INSERT to update_global_location_list.
490 (update_global_location_list): Change parameter type from boolean
491 to enum ugll_insert_mode. All callers adjusted. Adjust to use
492 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
493 (create_solib_event_breakpoint_1): New, factored out from ...
494 (create_solib_event_breakpoint): ... this.
495 (create_and_insert_solib_event_breakpoint): Use
496 create_solib_event_breakpoint_1 instead of calling
497 insert_breakpoint_locations manually.
498 (update_global_location_list): Handle UGLL_INSERT.
499
500 2014-09-22 Pedro Alves <palves@redhat.com>
501
502 * breakpoint.c (enum ugll_insert_mode): New enum.
503 (update_global_location_list)
504 (update_global_location_list_nothrow): Change parameter type from
505 boolean to enum ugll_insert_mode. All callers adjusted.
506
507 2014-09-19 Joel Brobecker <brobecker@adacore.com>
508
509 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
510 SystemTap support in GDB.
511
512 2014-09-19 Don Breazeal <donb@codesourcery.com>
513
514 * linux-nat.c (linux_handle_extended_wait): Call
515 linux_ptrace_get_extended_event.
516 (wait_lwp): Call linux_is_extended_waitstatus.
517 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
518 and linux_is_extended_waitstatus.
519 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
520 linux_ptrace_get_extended_event.
521 (linux_ptrace_get_extended_event): New function.
522 (linux_is_extended_waitstatus): New function.
523 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
524 (linux_is_extended_waitstatus): New declarations.
525
526 2014-09-19 Yao Qi <yao@codesourcery.com>
527
528 * dwarf2read.c (dwarf_decode_lines): Update declaration.
529 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
530 comments. Callers update.
531 (dwarf_decode_lines): Likewise.
532 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
533 comments. Skip the line table if 'lowpc' is greater than
534 'address'. Don't check
535 dwarf2_per_objfile->has_section_at_zero.
536
537 2014-09-18 Doug Evans <dje@google.com>
538
539 * NEWS: Mention new "producer" attribute of gdb.Symtab.
540 * python/py-symtab.c (stpy_get_producer): New function.
541 (symtab_object_getset): Add "producer" attribute.
542
543 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
544
545 PR gdb/17384
546 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
547 (do_captured_read_memory_integer): Remove.
548 (safe_read_memory_integer): Use target_read_memory directly instead
549 of catching errors in do_captured_read_memory_integer.
550
551 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
552
553 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
554 not gdb/doc.
555
556 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
557
558 * objc-lang.c (find_implementation_from_class): Remove dead code.
559
560 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
561
562 PR cli/7233
563 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
564 "fprintf_unfiltered (gdb_stdlog...)".
565
566 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
567
568 PR breakpoints/12526
569 * breakpoint.h (struct watchpoint): New fields val_bitpos and
570 val_bitsize.
571 * breakpoint.c (watch_command_1): Use these fields to retain
572 bitfield information.
573 (extract_bitfield_from_watchpoint_value): New function.
574 (watchpoint_check): Use it.
575 (update_watchpoint): Use it. Optimize the address and length of a
576 HW watchpoint pointing to a bitfield.
577 * value.h (unpack_value_bitfield): New prototype.
578 * value.c (unpack_value_bitfield): Make extern.
579
580 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
581
582 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
583 x86-dregs.o.
584 * gnu-nat.c (inf_threads): New function.
585 * gnu-nat.h (inf_threads_ftype): New typedef.
586 (inf_threads): New declaration.
587 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
588 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
589 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
590 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
591 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
592 (i386_gnu_dr_get_control): New functions.
593 (reg_addr): New structure.
594 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
595 i386 debugging register hooks.
596 * NEWS: Mention this.
597
598 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
599
600 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
601 vector data transfer instructions.
602 (arm_record_coproc_data_proc): Updated.
603
604 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
605
606 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
607 arm_record_exreg_ld_st_insn.
608 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
609 load/store insns.
610
611 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
612
613 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
614 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
615 processing instructions.
616
617 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
618
619 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
620 for advance SIMD struct ld/st insn.
621 (thumb2_record_decode_insn_handler): Replace stub handler with
622 thumb2_record_asimd_struct_ld_st.
623
624 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
625
626 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
627 for asimd, vfp and coprocessor insns.
628 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
629 and coprocessor insns.
630 (thumb2_record_coproc_insn): New function.
631 (thumb2_record_decode_insn_handler): Update coprocessor insns record
632 handlers.
633 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
634 opcode 110 insns.
635
636 2014-09-13 Doug Evans <xdje42@gmail.com>
637
638 * NEWS: Mention new "queue-signal" command.
639 * infcmd.c (queue_signal_command): New function.
640 (_initialize_infcmd): Add new queue-signal command.
641
642 2014-09-13 Doug Evans <xdje42@gmail.com>
643
644 * linux-nat.c (wait_lwp): Add debugging printf.
645 (linux_nat_wait_1): Ditto.
646
647 2014-09-12 Pedro Alves <palves@redhat.com>
648
649 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
650 (create_and_insert_solib_event_breakpoint): New functions.
651 * breakpoint.h (create_and_insert_solib_event_breakpoint)
652 (remove_solib_event_breakpoints_at_next_stop): New declarations.
653 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
654 (remove_dbx_link_breakpoint): Delete function.
655 (insert_dbx_link_bpt_in_file): Use
656 create_and_insert_solib_event_breakpoint instead of
657 deprecated_insert_raw_breakpoint.
658 (procfs_wait): Don't check whether we hit __dbx_link here.
659 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
660 here.
661 * solib-irix.c (base_breakpoint): Delete global.
662 (disable_break): Delete function.
663 (enable_break): Use create_solib_event_breakpoint
664 instead of deprecated_insert_raw_breakpoint.
665 (irix_solib_handle_event): New function.
666 (irix_solib_create_inferior_hook): Don't run the target or disable
667 the mapping-complete breakpoint here.
668 (_initialize_irix_solib): Install irix_solib_handle_event as
669 so_ops->handle_event hook.
670
671 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
672 Ulrich Weigand  <uweigand@de.ibm.com>
673
674 PR tdep/17379
675 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
676 instead of read_memory_unsigned_integer.
677
678 2014-09-12 Gary Benson <gbenson@redhat.com>
679
680 * nat/linux-waitpid.c: Include common-defs.h.
681 [GDBSERVER]: Add FIXME comment.
682 [!GDBSERVER]: Don't include defs.h or signal.h.
683 (linux_debug) [!GDBSERVER]: Remove empty block.
684
685 2014-09-12 Gary Benson <gbenson@redhat.com>
686
687 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
688 Don't include defs.h or server.h.
689
690 2014-09-12 Gary Benson <gbenson@redhat.com>
691
692 * nat/linux-btrace.c: Include common-defs.h.
693 Don't include defs.h, server.h or gdbthread.h.
694 * nat/linux-btrace.h (struct target_ops): New forward declaration.
695
696 2014-09-12 Gary Benson <gbenson@redhat.com>
697
698 * common/agent.c: Include common-defs.h.
699 Don't include defs.h or server.h.
700 * common/buffer.c: Likewise.
701 * common/common-debug.c: Likewise.
702 * common/common-utils.c: Likewise.
703 * common/errors.c: Likewise.
704 * common/filestuff.c: Likewise.
705 * common/format.c: Likewise.
706 * common/gdb_vecs.c: Likewise.
707 * common/print-utils.c: Likewise.
708 * common/ptid.c: Likewise.
709 * common/rsp-low.c: Likewise.
710 * common/signals.c: Likewise.
711 * common/vec.c: Likewise.
712 * common/xml-utils.c: Likewise.
713 * nat/linux-osdata.c: Likewise.
714 * nat/linux-procfs.c: Likewise.
715 * nat/linux-ptrace.c: Likewise.
716 * nat/mips-linux-watch.c: Likewise.
717 * target/waitstatus.c: Likewise.
718
719 2014-09-12 Tom Tromey <tromey@redhat.com>
720 Gary Benson <gbenson@redhat.com>
721
722 * common/common-regcache.h: New file.
723 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
724 * regcache.h: Include common-regcache.h.
725 (regcache_read_pc): Don't declare.
726 * regcache.c (get_thread_regcache_for_ptid): New function.
727 * nat/linux-btrace.c: Don't include regcache.h.
728 Include common-regcache.h.
729 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
730
731 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
732
733 * regcache.h (struct regset): Declare.
734
735 2014-09-11 Pedro Alves <palves@redhat.com>
736
737 PR gdb/17347
738 * main.c: Include "infrun.h".
739 (catch_command_errors, catch_command_errors_const): Wait for the
740 foreground command to complete.
741 * top.c (maybe_wait_sync_command_done): New function, factored out
742 from ...
743 (maybe_wait_sync_command_done): ... here.
744 * top.h (maybe_wait_sync_command_done): New declaration.
745
746 2014-09-11 Tom Tromey <tromey@redhat.com>
747 Gary Benson <gbenson@redhat.com>
748
749 * common/symbol.h: New file.
750 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
751 * minsyms.c (find_minimal_symbol_address): New function.
752 * common/agent.c: Include common/symbol.h.
753 [!GDBSERVER]: Don't include objfiles.h.
754 (agent_look_up_symbols): Use find_minimal_symbol_address.
755
756 2014-09-11 Gary Benson <gbenson@redhat.com>
757
758 * target/target.h (target_stop_ptid, target_continue_ptid):
759 Declare.
760 * target.c (target_stop_ptid, target_continue_ptid): New
761 functions.
762 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
763 (agent_run_command): Always use target_stop_ptid and
764 target_continue_ptid.
765
766 2014-09-11 Tom Tromey <tromey@redhat.com>
767 Gary Benson <gbenson@redhat.com>
768
769 * target/target.h: New file.
770 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
771 * target.h: Include target/target.h.
772 (target_read_memory, target_write_memory): Don't declare.
773 * target.c (target_read_uint32): New function.
774 * common/agent.c: Include target/target.h.
775 [!GDBSERVER]: Don't include target.h.
776 (helper_thread_id): Type changed to uint32_t.
777 (agent_get_helper_thread_id): Use target_read_uint32.
778 (agent_run_command): Always use target_read_memory and
779 target_write_memory.
780 (agent_capability): Type changed to uint32_t.
781 (agent_capability_check): Use target_read_uint32.
782
783 2014-09-11 Gary Benson <gbenson@redhat.com>
784
785 * common/common-debug.h (show_debug_regs): Declare.
786 * common/common-debug.c (show_debug_regs): Define.
787 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
788 all uses with show_debug_regs. Replace all uses that considered
789 debug_hw_points as a multi-value integer with straight boolean
790 uses.
791 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
792 with show_debug_regs.
793 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
794 all uses with show_debug_regs.
795 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
796 uses with show_debug_regs.
797
798 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
799
800 * findvar.c (address_from_register): Handle targets requiring
801 a special conversion routine even for plain pointer types.
802
803 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
804
805 * rs6000-nat.c (exec_one_dummy_insn): Remove.
806 (store_register): Do not call exec_one_dummy_insn.
807
808 2014-09-10 Joel Brobecker <brobecker@adacore.com>
809
810 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
811 dereference it first. Use value_enclosing_type instead of
812 value_type.
813 (ada_array_length): Likewise.
814
815 2014-09-10 Joel Brobecker <brobecker@adacore.com>
816
817 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
818 Adjust function implementation and documentation accordingly.
819 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
820 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
821 Update call to ada_value_ptr_subscript.
822
823 2014-09-10 Joel Brobecker <brobecker@adacore.com>
824
825 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
826 instead of VAL's type.
827
828 2014-09-10 Joel Brobecker <brobecker@adacore.com>
829
830 * amd64-linux-nat.c: Add <sys/uio.h> #include.
831
832 2014-09-09 Doug Evans <xdje42@gmail.com>
833
834 PR guile/17367
835 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
836 last parameter to pkg-config, not first.
837 * configure.ac: Pass --with-guile provided pkg-config path to
838 GDB_GUILE_PROGRAM_NAMES.
839 * configure: Regenerate.
840
841 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
842
843 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
844 Bertazi".
845
846 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
847
848 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
849 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
850 the list of sections determining GDB_OSABI_IRIX.
851
852 2014-09-09 James Hogan <james.hogan@imgtec.com>
853
854 * MAINTAINERS (Write After Approval): Add "James Hogan".
855
856 2014-09-09 James Hogan <james.hogan@imgtec.com>
857
858 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
859
860 2014-09-09 Joel Brobecker <brobecker@adacore.com>
861
862 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
863
864 2014-09-08 Doug Evans <xdje42@gmail.com>
865
866 PR 17247
867 * guile.c: #include <signal.h>.
868 (_initialize_guile): Block SIGCHLD while initializing Guile.
869
870 Replaces the following, which is reverted.
871
872 2014-07-26 Doug Evans <xdje42@gmail.com>
873
874 PR 17185
875 * configure.ac: Add check for header gc/gc.h.
876 Add check for function setenv.
877 * configure: Regenerate.
878 * config.in: Regenerate.
879 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
880
881 2014-09-08 Doug Evans <xdje42@gmail.com>
882
883 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
884 with named constant. Fix style of pointer comparison.
885 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
886
887 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
888
889 PR gdb/17035
890 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
891 decide whether we display the command on "show user".
892 * cli/cli-script.c (show_user_1): Only verify cmdlines after
893 printing command name.
894 * cli/cli-decode.h (cli_user_command_p): Declare new function.
895 * cli/cli-decode.c (cli_user_command_p): Create helper function
896 to verify whether cmd_list_element is a user-defined command.
897
898 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
899
900 PR python/17355
901 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
902 Fix goto out of TRY_CATCH.
903
904 2014-09-06 Doug Evans <xdje42@gmail.com>
905 Tom Tromey <tromey@redhat.com>
906
907 PR 15276
908 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
909 $_any_caller_matches.
910 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
911 * python/lib/gdb/function/caller_is.py: New file.
912
913 2014-09-06 Doug Evans <xdje42@gmail.com>
914
915 * infcmd.c (program_info): Fix typo.
916
917 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
918
919 PR gdb/17235
920 * stap-probe.c (stap_parse_single_operand): Delete unused variable
921 'number'. New variable 'has_digit'. Rewrite code to deal with
922 subexpressions on SDT probes.
923
924 2014-09-04 Pedro Alves <palves@redhat.com>
925
926 * c-exp.y (parse_number): Skip handling base-switching prefixes if
927 the input is only one character long.
928
929 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
930
931 PR fortran/17237
932 * f-valprint.c (f_val_print): Specify the correct print option to
933 use when printing integer values.
934
935 2014-09-04 Gary Benson <gbenson@redhat.com>
936
937 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
938 Remove code to cope with LWPs wrapped as PIDs.
939 Add assertions to ensure no wrapped LWPs are passed.
940
941 2014-09-04 Pedro Alves <palves@redhat.com>
942
943 * value.c (value_ranges_copy_adjusted): New function, factored out
944 from ...
945 (value_contents_copy_raw): ... here.
946 (unpack_value_bits_as_long_1): Rename back to ...
947 (unpack_bits_as_long): ... this. Remove 'original_value' and
948 'result' parameters. Change return type to LONGEST.
949 (unpack_value_bits_as_long): Delete.
950 (unpack_value_field_as_long_1): Delete.
951 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
952 (unpack_value_bitfield): New function.
953 (value_field_bitfield): Reimplement using unpack_value_bitfield.
954 (value_fetch_lazy): Use unpack_value_bitfield.
955 * value.h (unpack_value_bits_as_long): Delete declaration.
956
957 2014-09-03 Sasha Smundak <asmundak@google.com>
958
959 * python/py-frame.c (frapy_read_register): New function.
960
961 2014-09-03 James Hogan <james.hogan@imgtec.com>
962
963 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
964 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
965
966 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
967
968 PR python/16699
969 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
970 function.
971 (add_cmd): Set "completer_handle_brkchars" to NULL.
972 * cli/cli-decode.h (struct cmd_list_element)
973 <completer_handle_brkchars>: New field.
974 * command.h (completer_ftype_void): New typedef.
975 (set_cmd_completer_handle_brkchars): New prototype.
976 * completer.c (set_gdb_completion_word_break_characters): New
977 function.
978 (complete_line_internal): Call "completer_handle_brkchars"
979 callback from command.
980 * completer.h: Include "command.h".
981 (set_gdb_completion_word_break_characters): New prototype.
982 * python/py-cmd.c (cmdpy_completer_helper): New function.
983 (cmdpy_completer_handle_brkchars): New function.
984 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
985 (cmdpy_init): Set completer_handle_brkchars to
986 cmdpy_completer_handle_brkchars.
987
988 2014-09-03 Gary Benson <gbenson@redhat.com>
989
990 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
991 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
992 Loop conditions changed to equivalent form.
993 (struct x86_debug_reg_state): Updated dr_ref_count comment.
994 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
995 ALL_DEBUG_ADDRESS_REGISTERS.
996
997 2014-09-03 Joel Brobecker <brobecker@adacore.com>
998
999 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1000 description fix.
1001
1002 2014-09-02 Doug Evans <dje@google.com>
1003
1004 * typeprint.c (find_global_typedef): Fix comment.
1005
1006 2014-09-02 Gary Benson <gbenson@redhat.com>
1007
1008 * i386-nat.h: Renamed as...
1009 * x86-nat.h: New file. All type, function and variable name
1010 prefixes changed from "i386_" to "x86_". All references updated.
1011 * i386-nat.c: Renamed as...
1012 * x86-nat.c: New file. All type, function and variable name
1013 prefixes changed from "i386_" to "x86_". All references updated.
1014 * common/i386-xstate.h: Renamed as...
1015 * common/x86-xstate.h: New file. All type, function and variable
1016 name prefixes changed from "i386_" to "x86_". All references
1017 updated.
1018 * nat/i386-cpuid.h: Renamed as...
1019 * nat/x86-cpuid.h: New file. All type, function and variable name
1020 prefixes changed from "i386_" to "x86_". All references updated.
1021 * nat/i386-gcc-cpuid.h: Renamed as...
1022 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1023 name prefixes changed from "i386_" to "x86_". All references
1024 updated.
1025 * nat/i386-dregs.h: Renamed as...
1026 * nat/x86-dregs.h: New file. All type, function and variable name
1027 prefixes changed from "i386_" to "x86_". All references updated.
1028 * nat/i386-dregs.c: Renamed as...
1029 * nat/x86-dregs.c: New file. All type, function and variable name
1030 prefixes changed from "i386_" to "x86_". All references updated.
1031
1032 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1033
1034 * varobj.c (_initialize_varobj): Move to the end of file.
1035
1036 2014-08-29 Gary Benson <gbenson@redhat.com>
1037
1038 * common/common-exceptions.h: New file.
1039 * common/common-exceptions.c: Likewise.
1040 * Makefile.in (SFILES): Add common/common-exceptions.c.
1041 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1042 (COMMON_OBS): Add common-exceptions.o.
1043 (common-exceptions.o): New rule.
1044 * exceptions.h (common-exceptions.h): Include.
1045 (gdb_setjmp.h): Do not include.
1046 (return_reason): Moved to common-exceptions.h.
1047 (enum return_reason): Likewise.
1048 (RETURN_MASK): Likewise.
1049 (typedef return_mask): Likewise.
1050 (enum errors): Likewise.
1051 (struct gdb_exception): Likewise.
1052 (exceptions_state_mc_init): Likewise.
1053 (exceptions_state_mc_action_iter): Likewise.
1054 (exceptions_state_mc_action_iter_1): Likewise.
1055 (TRY_CATCH): Likewise.
1056 (throw_exception): Likewise.
1057 (throw_verror): Likewise.
1058 (throw_vquit): Likewise.
1059 (throw_error): Likewise.
1060 (throw_quit): Likewise.
1061 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1062 (enum catcher_action): Likewise.
1063 (struct catcher): Likewise.
1064 (current_catcher): Likewise.
1065 (catcher_list_size): Likewise.
1066 (exceptions_state_mc_init): Likewise.
1067 (catcher_pop): Likewise.
1068 (exceptions_state_mc): Likewise.
1069 (exceptions_state_mc_action_iter): Likewise.
1070 (exceptions_state_mc_action_iter_1): Likewise.
1071 (throw_exception): Likewise.
1072 (exception_messages): Likewise.
1073 (exception_messages_size): Likewise.
1074 (throw_it): Likewise.
1075 (throw_verror): Likewise.
1076 (throw_vquit): Likewise.
1077 (throw_error): Likewise.
1078 (throw_quit): Likewise.
1079 (prepare_to_throw_exception): New function.
1080
1081 2014-08-29 Gary Benson <gbenson@redhat.com>
1082
1083 * common/gdb_setjmp.h: New file.
1084 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1085 * configure.ac: Move sigsetjmp check...
1086 * common/common.m4: ...here.
1087 * configure: Regenerate.
1088 * cp-support.c (SIGJMP_BUF): Delete.
1089 (SIGSETJMP): Likewise.
1090 (SIGLONGJMP): Likewise.
1091 * exceptions.h (gdb_setjmp.h): Include.
1092 (setjmp.h): Do not include.
1093 (EXCEPTIONS_SIGJMP_BUF): Delete.
1094 (EXCEPTIONS_SIGSETJMP): Likewise.
1095 (EXCEPTIONS_SIGLONGJMP): Likewise.
1096 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1097 from gdb_setjmp.h.
1098 * exceptions.c: Likewise.
1099
1100 2014-08-29 Gary Benson <gbenson@redhat.com>
1101
1102 * cleanups.h: Moved to...
1103 * common/cleanups.h: New file.
1104 * cleanups.c: Moved to...
1105 * common/cleanups.c: New file. Include common-defs.h and
1106 cleanups.h. Do not include defs.h.
1107 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1108 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1109 (cleanups.o): New rule.
1110
1111 2014-08-29 Gary Benson <gbenson@redhat.com>
1112
1113 * common/errors.h (internal_warning): New declaration.
1114 (internal_vwarning): Likewise.
1115 * common/errors.c (internal_warning): New function.
1116 * utils.h (internal_warning): Don't declare.
1117 (internal_vwarning): Likewise.
1118 * utils.c (internal_warning): Removed.
1119
1120 2014-08-29 Gary Benson <gbenson@redhat.com>
1121
1122 * main.c (captured_main): Use warning during startup.
1123 Prefix startup warning messages with command name.
1124
1125 2014-08-29 Gary Benson <gbenson@redhat.com>
1126
1127 * main.c (captured_main): Handle usage errors with error.
1128
1129 2014-08-29 Gary Benson <gbenson@redhat.com>
1130
1131 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1132 exit pair with a call to error. Wrap the message with _().
1133
1134 2014-08-29 Gary Benson <gbenson@redhat.com>
1135
1136 * main.c (captured_main): Replace a fprintf/exit
1137 pair with a call to error. Wrap the message with _().
1138
1139 2014-08-29 Gary Benson <gbenson@redhat.com>
1140
1141 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1142 pairs with calls to error. Wrap the message with _().
1143
1144 2014-08-29 Gary Benson <gbenson@redhat.com>
1145
1146 * utils.c (vwarning): Protect calls to target_terminal_ours
1147 and wrap_here.
1148
1149 2014-08-29 Gary Benson <gbenson@redhat.com>
1150
1151 * exceptions.c (print_flush): Protect calls to
1152 target_terminal_ours and wrap_here.
1153
1154 2014-08-29 Gary Benson <gbenson@redhat.com>
1155
1156 * utils.h (filtered_printing_initialized): New declaration.
1157 * utils.c (abort_with_message): New function.
1158 (internal_vproblem): Use abort_with_message for first level
1159 recursive internal problems, and if gdb_stderr is not set up.
1160 Protect calls to target_terminal_ours, begin_line and query.
1161
1162 2014-08-28 Doug Evans <dje@google.com>
1163
1164 * symtab.c (in_prologue): Move definition to better spot.
1165 (skip_prologue_using_sal): Ditto.
1166
1167 2014-08-28 Doug Evans <dje@google.com>
1168
1169 * symtab.c (find_function_start_sal): Move definition to better spot.
1170
1171 2014-08-28 Yao Qi <yao@codesourcery.com>
1172
1173 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1174 found_stack_adjust in forward scan. Remove condition check
1175 on found_stack_adjust which is always true. Indent the code.
1176
1177 2014-08-28 Yao Qi <yao@codesourcery.com>
1178
1179 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1180 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1181 (dwarf_decode_lines): Remove argument
1182 want_line_info. Remove condition check on want_line_info.
1183 Callers update.
1184
1185 2014-08-27 Doug Evans <dje@google.com>
1186
1187 * dwarf2read.c (dwarf_record_line): Fix typo.
1188
1189 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1190
1191 * target.h (struct target_ops::to_terminal_save_ours): Remove
1192 declaration.
1193 (target_terminal_save_ours): Remove macro.
1194 * target-delegates.c: Regenerate.
1195 * inf-child.c (inf_child_target): Don't set the nonexistent
1196 field to_terminal_save_ours.
1197 * inferior.h (child_terminal_save_ours): Remove declaration.
1198 * terminal.h (gdb_save_tty_state): New declaration.
1199 * inflow.c (child_terminal_save_ours): Rename to ...
1200 (gdb_save_tty_state): ... this.
1201 * tui/tui.c: Include terminal.h.
1202 (tui_enable): Use gdb_save_tty_state instead of
1203 target_terminal_save_ours.
1204 (tui_disable): Likewise.
1205
1206 2014-08-25 Doug Evans <dje@google.com>
1207
1208 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1209 Pass NULL instead of 0 for context pointer.
1210
1211 2014-08-25 Yao Qi <yao@codesourcery.com>
1212
1213 * dwarf2read.c: Fix grammatical error.
1214
1215 2014-08-24 Yao Qi <yao@codesourcery.com>
1216
1217 * dwarf2read.c (scan_partial_symbols): Update comments.
1218 Rename argument 'need_pc' with 'set_addrmap'.
1219 (add_partial_namespace): Rename argument 'need_pc' with
1220 'set_addrmap'.
1221 (add_partial_module): Likewise.
1222 (add_partial_subprogram): Likewise. Update comments.
1223 (dwarf2_name): Fix typo.
1224
1225 2014-08-22 Doug Evans <dje@google.com>
1226
1227 PR 17276
1228 * dwarf2read.c (dwarf_record_line_p): New function.
1229 (dwarf_decode_lines_1): Ignore subsequent line number entries
1230 for the same line if any entry had a non-zero discriminator.
1231
1232 2014-08-22 Doug Evans <dje@google.com>
1233
1234 * buildsym.h (record_line_ftype): New typedef.
1235 (record_line): Use it.
1236 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1237 (dwarf_decode_lines_1): Call them.
1238
1239 2014-08-22 Yao Qi <yao@codesourcery.com>
1240
1241 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1242 (ctf_end): Remove code.
1243
1244 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1245
1246 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1247 (linux_make_corefile_notes): call update_thread_list, protected against
1248 exceptions.
1249
1250 2014-08-21 Pedro Alves <palves@redhat.com>
1251
1252 * infcmd.c (attach_command): Remove comment.
1253
1254 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1255
1256 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1257 unsigned LONGEST to ULONGEST.
1258
1259 2014-08-20 Pedro Alves <palves@redhat.com>
1260
1261 * Makefile.in (check-read1): New rule.
1262
1263 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1264
1265 * value.c (value_from_contents_and_address): Strip resolved_type's
1266 typedef layers before checking its TYPE_DATA_LOCATION.
1267
1268 2014-08-20 Pedro Alves <palves@redhat.com>
1269
1270 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1271
1272 2014-08-20 Yao Qi <yao@codesourcery.com>
1273
1274 * amd64-tdep.c (amd64_classify): Add a blank line after the
1275 example. Move "*/" to a new line.
1276 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1277 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1278 * dwarf2read.c (psymtab_include_file_name): Likewise.
1279
1280 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1281 Pedro Alves <palves@redhat.com>
1282
1283 PR symtab/14604
1284 PR symtab/14605
1285 * ada-lang.c (coerce_unspec_val_to_type): Use
1286 value_contents_copy_raw.
1287 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1288 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1289 * cp-valprint.c (cp_print_value_fields): Let the common printing
1290 code handle optimized out values.
1291 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1292 * d-valprint.c (dynamic_array_type): Use
1293 value_bits_any_optimized_out.
1294 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1295 check_any_valid fields.
1296 (check_pieced_value_bits): Delete and inline ...
1297 (check_pieced_synthetic_pointer): ... here.
1298 (check_pieced_value_validity): Delete.
1299 (check_pieced_value_invalid): Delete.
1300 (pieced_value_funcs): Remove check_validity and check_any_valid
1301 fields.
1302 (read_pieced_value): Use mark_value_bits_optimized_out.
1303 (write_pieced_value): Switch to use
1304 mark_value_bytes_optimized_out.
1305 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1306 of assuming the whole value is optimized out.
1307 * findvar.c (read_frame_register_value): Remove special handling
1308 of optimized out registers.
1309 (value_from_register): Use mark_value_bytes_optimized_out.
1310 * frame-unwind.c (frame_unwind_got_optimized): Use
1311 mark_value_bytes_optimized_out.
1312 * jv-valprint.c (java_value_print): Adjust.
1313 (java_print_value_fields): Let the common printing code handle
1314 optimized out values.
1315 * mips-tdep.c (mips_print_register): Remove special handling of
1316 optimized out registers.
1317 * opencl-lang.c (lval_func_check_validity): Delete.
1318 (lval_func_check_any_valid): Delete.
1319 (opencl_value_funcs): Remove check_validity and check_any_valid
1320 fields.
1321 * p-valprint.c (pascal_object_print_value_fields): Let the common
1322 printing code handle optimized out values.
1323 * stack.c (read_frame_arg): Remove special handling of optimized
1324 out values. Fetch both VAL and ENTRYVAL before comparing
1325 contents. Adjust to value_available_contents_eq rename.
1326 * valprint.c (valprint_check_validity)
1327 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1328 (val_print_array_elements): Adjust.
1329 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1330 (value_bits_any_optimized_out): New function.
1331 (value_entirely_covered_by_range_vector): New function, factored
1332 out from value_entirely_unavailable.
1333 (value_entirely_unavailable): Reimplement.
1334 (value_entirely_optimized_out): New function.
1335 (insert_into_bit_range_vector): New function, factored out from
1336 mark_value_bits_unavailable.
1337 (mark_value_bits_unavailable): Reimplement.
1338 (struct ranges_and_idx): New struct.
1339 (find_first_range_overlap_and_match): New function, factored out
1340 from value_available_contents_bits_eq.
1341 (value_available_contents_bits_eq): Rename to ...
1342 (value_contents_bits_eq): ... this. Check both unavailable
1343 contents and optimized out contents.
1344 (value_available_contents_eq): Rename to ...
1345 (value_contents_eq): ... this.
1346 (allocate_value_lazy): Remove reference to the old optimized_out
1347 boolean.
1348 (allocate_optimized_out_value): Use
1349 mark_value_bytes_optimized_out.
1350 (require_not_optimized_out): Adjust to check whether the
1351 optimized_out vec is empty.
1352 (ranges_copy_adjusted): New function, factored out from
1353 value_contents_copy_raw.
1354 (value_contents_copy_raw): Also copy the optimized out ranges.
1355 Assert the destination ranges aren't optimized out.
1356 (value_contents_copy): Update comment, remove call to
1357 require_not_optimized_out.
1358 (value_contents_equal): Adjust to check whether the optimized_out
1359 vec is empty.
1360 (set_value_optimized_out, value_optimized_out_const): Delete.
1361 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1362 New functions.
1363 (value_entirely_optimized_out, value_bits_valid): Delete.
1364 (value_copy): Take a VEC copy of the 'optimized_out' field.
1365 (value_primitive_field): Remove special handling of optimized out.
1366 (value_fetch_lazy): Assert that lazy values have no unavailable
1367 regions. Use value_bits_any_optimized_out. Remove some special
1368 handling for optimized out values.
1369 * value.h: Add intro comment about <optimized out> and
1370 <unavailable>.
1371 (struct lval_funcs): Remove check_validity and check_any_valid
1372 fields.
1373 (set_value_optimized_out, value_optimized_out_const): Remove.
1374 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1375 New declarations.
1376 (value_bits_any_optimized_out): New declaration.
1377 (value_bits_valid): Delete declaration.
1378 (value_available_contents_eq): Rename to ...
1379 (value_contents_eq): ... this, and extend comments.
1380
1381 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1382
1383 Fix -fsanitize=address on unreadable inferior strings.
1384 * valprint.c (val_print_string): Fix access before BUFFER.
1385
1386 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1387
1388 * target.c (target_struct_size): Remove.
1389 (target_struct_allocsize): Remove.
1390 (DEFAULT_ALLOCSIZE): Remove.
1391 (target_ops_p): New typedef.
1392 (DEF_VEC_P (target_ops_p)): New vector type.
1393 (target_structs): Change type to VEC (target_ops_p).
1394 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1395 (find_default_run_target): Rewrite for loop following changes to
1396 target_structs.
1397
1398 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1399
1400 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1401 Adjust code accordingly. Adjust function description comment.
1402
1403 2014-08-19 Yao Qi <yao@codesourcery.com>
1404
1405 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1406 types.
1407
1408 2014-08-19 Alan Modra <amodra@gmail.com>
1409
1410 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1411 * config.in: Regenerate.
1412 * configure: Regenerate.
1413
1414 2014-08-19 Tom Tromey <tromey@redhat.com>
1415 Gary Benson <gbenson@redhat.com>
1416
1417 * common/common-debug.h: New file.
1418 * common/common-debug.c: Likewise.
1419 * debug.c: Likewise.
1420 * Makefile.in (SFILES): Add common/common-debug.c.
1421 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1422 (COMMON_OBS): Add common-debug.o and debug.o.
1423 (common-debug.o): New rule.
1424 * common/common-defs.h: Include common-debug.h.
1425 * common/agent.c (debug_agent_printf): New function.
1426 (DEBUG_AGENT): Redefine.
1427 * nat/i386-dregs.c (debug_printf): Undefine.
1428
1429 2014-08-19 Gary Benson <gbenson@redhat.com>
1430
1431 * common/common-defs.h: Include print-utils.h.
1432 * utils.h: Do not include print-utils.h.
1433
1434 2014-08-19 Tom Tromey <tromey@redhat.com>
1435 Gary Benson <gbenson@redhat.com>
1436
1437 * common/common-types.h: New file.
1438 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1439 * common/common-defs.h: Include common-types.h.
1440 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1441 (ULONGEST): Remove.
1442
1443 2014-08-19 Tom Tromey <tromey@redhat.com>
1444 Gary Benson <gbenson@redhat.com>
1445
1446 * common/errors.h: New file.
1447 * common/errors.c: Likewise.
1448 * Makefile.in (SFILES): Add common/errors.c.
1449 (HFILES_NO_SRCDIR): Add common/errors.h.
1450 (COMMON_OBS): Add errors.o.
1451 (errors.o): New rule.
1452 * common/common-defs.h: Include errors.h.
1453 * utils.h (perror_with_name, error, verror, warning, vwarning):
1454 Don't declare.
1455 * common/common-utils.h: (malloc_failure, internal_error):
1456 Likewise.
1457
1458 2014-08-19 Gary Benson <gbenson@redhat.com>
1459
1460 * utils.c (internal_vproblem): Always print the message.
1461
1462 2014-08-18 Doug Evans <dje@google.com>
1463
1464 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1465
1466 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1467
1468 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1469 Return 0 if TYPE is dynamic.
1470 (print_range): Add handling of dynamic ranges.
1471
1472 2014-08-18 Keven Boell <keven.boell@intel.com>
1473 Joel Brobecker <brobecker@adacore.com>
1474
1475 * gdbtypes.h (struct main_type): Add field "data_location".
1476 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1477 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1478 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1479 a dynamic data location.
1480 (resolve_dynamic_type): Add DW_AT_data_location handling.
1481 (copy_recursive, copy_type): Copy the data_location information
1482 when present.
1483 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1484 * value.c (value_from_contents_and_address): Add
1485 DW_AT_data_location handling.
1486
1487 2014-08-18 Keven Boell <keven.boell@intel.com>
1488 Joel Brobecker <brobecker@adacore.com>
1489
1490 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1491 field "get_object_address".
1492 * dwarf2expr.c (execute_stack_op): Add handling for
1493 DW_OP_push_object_address.
1494 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1495 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1496 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1497 (dwarf_expr_get_obj_addr): New function.
1498 (dwarf_expr_ctx_funcs): Add get_object_address field.
1499 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1500 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1501 (dwarf2_evaluate_property): Add parameter "address". Use it.
1502 (needs_get_obj_addr): New function.
1503 (needs_frame_ctx_funcs): Add get_object_address field.
1504 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1505 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1506 (resolve_dynamic_array): Likewise.
1507
1508 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1509
1510 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1511 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1512 fixed value for records and unions for which some GNAT encodings
1513 are present.
1514
1515 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1516
1517 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1518 rewrite to avoid "else if" and "else" constructs. Should be
1519 a no-op in practice.
1520
1521 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1522
1523 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1524 of lexical block.
1525
1526 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1527
1528 PR c++/17132
1529 * eval.c: Update all calls to find_overload_match.
1530 * valarith.c: Likewise.
1531 (value_user_defined_cpp_op, value_user_defined_op): New
1532 argument NOSIDE. Update all callers.
1533 * valops.c (find_overload_match): New argument NOSIDE.
1534 * value.h (find_overload_match): Update signature.
1535
1536 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1537
1538 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1539 'items' methods instead of 'iteritems' method on dictionaries.
1540
1541 2014-08-15 Doug Evans <dje@google.com>
1542
1543 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1544 closer to use.
1545
1546 2014-08-15 Doug Evans <dje@google.com>
1547
1548 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1549
1550 2014-08-15 Doug Evans <dje@google.com>
1551
1552 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1553
1554 2014-08-15 Doug Evans <dje@google.com>
1555
1556 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1557 unused.
1558
1559 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1560
1561 * dcache.h: Include target.h, to avoid compile time warnings.
1562
1563 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1564
1565 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1566 frame_info" partial declaration.
1567 * gdbarch.h: Regenerate.
1568
1569 2014-08-15 Yao Qi <yao@codesourcery.com>
1570
1571 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1572 Add parameter 'decode_for_pst_p'. Callers update.
1573
1574 2014-08-13 Yao Qi <yao@codesourcery.com>
1575
1576 PR build/17104
1577 * configure.ac: Use local variable 'pos'.
1578 * configure: Regenerated.
1579
1580 2014-08-11 Doug Evans <dje@google.com>
1581
1582 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1583 message, it is redundant with "Reading symbols from ..." message.
1584
1585 2014-08-10 Doug Evans <xdje42@gmail.com>
1586
1587 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1588
1589 2014-08-09 Yao Qi <yao@codesourcery.com>
1590
1591 PR remote/9053
1592 * remote.c (remote_xfer_partial): Remove dead code.
1593
1594 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1595
1596 * ia64-linux-tdep.c: Include "regset.h".
1597 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1598 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1599 (ia64_linux_supply_fpregset): New function.
1600 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1601 (ia64_linux_regset_from_core_section): New function.
1602 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1603 method.
1604
1605 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1606
1607 * m68klinux-tdep.c: Include "regset.h".
1608 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1609 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1610 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1611 (m68k_linux_regset_from_core_section): New function.
1612 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1613 method.
1614
1615 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1616
1617 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1618 function. Move logic to...
1619 (tilegx_linux_regmap): ... this new register map.
1620 (tilegx_linux_regset): Refer to register map, replace supply
1621 method by regcache_supply_regset, and add collect method.
1622 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1623 TILEGX_FIRST_EASY_REGNUM.
1624
1625 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1626
1627 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1628 that calls regcache_supply_regset and handles the EPC register
1629 separately. Move main logic to...
1630 (score7_linux_gregmap): ... this new register map.
1631 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1632 (score7_linux_gregset): Refer to register map. Add collect method.
1633 (score7_linux_regset_from_core_section): Replace
1634 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1635 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1636 (struct regset): Delete unused forward declaraction.
1637 (struct pt_regs): Delete structure definition.
1638 (elf_gregset_t): Delete typedef.
1639
1640 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1641
1642 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1643 (nios2_core_regset): Add collect method.
1644
1645 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1646
1647 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1648 platform-independent and don't write to read-only input buffer.
1649 (m32r_linux_collect_gregset): New function.
1650 (m32r_linux_gregset): Add collect method.
1651
1652 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1653
1654 * hppa-linux-tdep.c (greg_map): Rename to...
1655 (hppa_linux_gregmap): ... this. Also convert to
1656 regcache_map_entry format.
1657 (hppa_linux_supply_regset): Delete function.
1658 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1659 (hppa_linux_fpregmap): ... this new register map.
1660 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1661 register map, replace supply method by regcache_supply_regset, and
1662 add collect method regcache_collect_regset.
1663
1664 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1665
1666 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1667 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1668 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1669 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1670 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1671 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1672 (frv_linux_supply_gregset): Replace main logic by call to
1673 regcache_supply_regset, but keep clearing gr32-gr63.
1674 (frv_linux_supply_fpregset): Delete function.
1675 (frv_linux_gregset): Refer to appropriate register map and add
1676 regcache_collect_regset as the collect method.
1677 (frv_linux_fpregset): Likewise. Also exchange the supply method
1678 by regcache_supply_regset.
1679
1680 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1681
1682 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1683 by call to alpha_supply_int_regs.
1684 (alpha_linux_collect_gregset): New function.
1685 (alpha_linux_supply_fpregset): Replace logic by call to
1686 alpha_supply_fp_regs.
1687 (alpha_linux_collect_fpregset): New function.
1688 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1689
1690 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1691
1692 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1693 by call to regcache_collect_regset.
1694 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1695 instead of aarch64_linux_supply_gregset/_fpregset.
1696 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1697 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1698 header file instead.
1699 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1700 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1701 functions. Move logic to ...
1702 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1703 register maps.
1704 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1705 refer to new register maps, replace *_regset_from_core by
1706 regcache_supply_regset, and also use regcache_collect_regset.
1707 * aarch64-linux-tdep.h: Include "regset.h".
1708 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1709 Delete prototypes.
1710 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1711 macros, moved from C source file.
1712 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1713 variable declarations.
1714
1715 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1716
1717 * s390-linux-nat.c: Include "regset.h".
1718 (regmap_gregset): Delete macro.
1719 (s390_64_regmap_gregset): New register map for
1720 regcache_supply/_collect_regset.
1721 (s390_64_gregset): New regset.
1722 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1723 (regmap_fpregset): Delete macro.
1724 (s390_native_supply, s390_native_collect): Delete functions.
1725 (supply_gregset, fill_gregset): Replace s390-specific regmap
1726 handling by a call to regcache_supply/_collect_regset.
1727 (supply_fpregset, fill_fpregset): Call regcache_supply/
1728 _collect_regset instead of s390_native_supply/_collect.
1729 (fetch_regset, store_regset): Likewise. Also change the last
1730 parameter to a regset instead of a regmap.
1731 (s390_linux_fetch_inferior_registers)
1732 (390_linux_store_inferior_registers): Adjust last parameter in
1733 calls to fetch_regset and store_regset.
1734 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1735 (s390_gregmap): ... this. Also make static const and convert to
1736 regcache_map_entry format.
1737 (s390x_regmap_gregset): Delete.
1738 (s390_regmap_fpregset): Rename to...
1739 (s390_fpregmap): ... this. Make static const and convert to
1740 regcache_map_entry format.
1741 (s390_regmap_upper, s390_regmap_last_break)
1742 (s390x_regmap_last_break, s390_regmap_system_call)
1743 (s390_regmap_tdb): Likewise.
1744 (s390_supply_regset, s390_collect_regset): Remove functions.
1745 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1746 s390_supply_regset.
1747 (s390_gregset, s390_fpregset, s390_upper_regset)
1748 (s390_last_break_regset, s390x_last_break_regset)
1749 (s390_system_call_regset, s390_tdb_regset): Make global and
1750 replace s390_supply/_collect_regset by regcache_supply/
1751 _collect_regset.
1752 (s390x_gregset): Delete.
1753 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1754 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1755 (s390_regmap_fpregset, s390_regmap_last_break)
1756 (s390x_regmap_last_break, s390_regmap_system_call)
1757 (s390_regmap_tdb): Delete global variable declarations.
1758 (s390_gregset, s390_fpregset, s390_last_break_regset)
1759 (s390x_last_break_regset, s390_system_call_regset)
1760 (s390_tdb_regset): New global variable declarations.
1761
1762 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1763
1764 * regcache.c: Include "regset.h".
1765 (regcache_transfer_regset): New local function.
1766 (regcache_supply_regset, regcache_collect_regset): New functions.
1767 * regcache.h (struct regcache_map_entry): New structure.
1768 (REGCACHE_MAP_SKIP): New enum value.
1769 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1770
1771 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1772
1773 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1774 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1775 (ppc_linux_collect_gregset ): Likewise.
1776 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1777 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1778 (ppc_collect_vrregset): Likewise.
1779 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1780 Likewise.
1781
1782 2014-08-07 Yao Qi <yao@codesourcery.com>
1783
1784 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1785 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1786 * remote.c (remote_read_bytes): Likewise.
1787
1788 2014-08-07 Yao Qi <yao@codesourcery.com>
1789
1790 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1791
1792 2014-08-07 Yao Qi <yao@codesourcery.com>
1793
1794 PR remote/17230
1795 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1796 TARGET_XFER_OK instead of 0.
1797
1798 2014-08-07 Gary Benson <gbenson@redhat.com>
1799
1800 * common/common-defs.h: Include errno.h.
1801 * defs.h: Do not include errno.h.
1802 * ada-typeprint.c: Likewise.
1803 * c-typeprint.c: Likewise.
1804 * core-regset.c: Likewise.
1805 * corefile.c: Likewise.
1806 * corelow.c: Likewise.
1807 * event-loop.c: Likewise.
1808 * f-typeprint.c: Likewise.
1809 * gnu-nat.c: Likewise.
1810 * go32-nat.c: Likewise.
1811 * i386gnu-nat.c: Likewise.
1812 * m2-typeprint.c: Likewise.
1813 * nat/linux-btrace.c: Likewise.
1814 * p-typeprint.c: Likewise.
1815 * procfs.c: Likewise.
1816 * remote-sim.c: Likewise.
1817 * rs6000-nat.c: Likewise.
1818 * target.c: Likewise.
1819 * typeprint.c: Likewise.
1820 * ui-file.c: Likewise.
1821 * valops.c: Likewise.
1822 * valprint.c: Likewise.
1823
1824 2014-08-07 Gary Benson <gbenson@redhat.com>
1825
1826 * common/common-defs.h: Include string.h.
1827 * aarch64-tdep.c: Do not include string.h.
1828 * ada-exp.y: Likewise.
1829 * ada-lang.c: Likewise.
1830 * ada-lex.l: Likewise.
1831 * ada-typeprint.c: Likewise.
1832 * ada-valprint.c: Likewise.
1833 * aix-thread.c: Likewise.
1834 * alpha-linux-tdep.c: Likewise.
1835 * alpha-mdebug-tdep.c: Likewise.
1836 * alpha-nat.c: Likewise.
1837 * alpha-osf1-tdep.c: Likewise.
1838 * alpha-tdep.c: Likewise.
1839 * alphanbsd-tdep.c: Likewise.
1840 * amd64-dicos-tdep.c: Likewise.
1841 * amd64-linux-tdep.c: Likewise.
1842 * amd64-nat.c: Likewise.
1843 * amd64-sol2-tdep.c: Likewise.
1844 * amd64fbsd-tdep.c: Likewise.
1845 * amd64obsd-tdep.c: Likewise.
1846 * arch-utils.c: Likewise.
1847 * arm-linux-nat.c: Likewise.
1848 * arm-linux-tdep.c: Likewise.
1849 * arm-tdep.c: Likewise.
1850 * arm-wince-tdep.c: Likewise.
1851 * armbsd-tdep.c: Likewise.
1852 * armnbsd-nat.c: Likewise.
1853 * armnbsd-tdep.c: Likewise.
1854 * armobsd-tdep.c: Likewise.
1855 * avr-tdep.c: Likewise.
1856 * ax-gdb.c: Likewise.
1857 * ax-general.c: Likewise.
1858 * bcache.c: Likewise.
1859 * bfin-tdep.c: Likewise.
1860 * breakpoint.c: Likewise.
1861 * build-id.c: Likewise.
1862 * buildsym.c: Likewise.
1863 * c-exp.y: Likewise.
1864 * c-lang.c: Likewise.
1865 * c-typeprint.c: Likewise.
1866 * c-valprint.c: Likewise.
1867 * charset.c: Likewise.
1868 * cli-out.c: Likewise.
1869 * cli/cli-cmds.c: Likewise.
1870 * cli/cli-decode.c: Likewise.
1871 * cli/cli-dump.c: Likewise.
1872 * cli/cli-interp.c: Likewise.
1873 * cli/cli-logging.c: Likewise.
1874 * cli/cli-script.c: Likewise.
1875 * cli/cli-setshow.c: Likewise.
1876 * cli/cli-utils.c: Likewise.
1877 * coffread.c: Likewise.
1878 * common/agent.c: Likewise.
1879 * common/buffer.c: Likewise.
1880 * common/buffer.h: Likewise.
1881 * common/common-utils.c: Likewise.
1882 * common/filestuff.c: Likewise.
1883 * common/filestuff.c: Likewise.
1884 * common/format.c: Likewise.
1885 * common/print-utils.c: Likewise.
1886 * common/rsp-low.c: Likewise.
1887 * common/signals.c: Likewise.
1888 * common/vec.h: Likewise.
1889 * common/xml-utils.c: Likewise.
1890 * core-regset.c: Likewise.
1891 * corefile.c: Likewise.
1892 * corelow.c: Likewise.
1893 * cp-abi.c: Likewise.
1894 * cp-name-parser.y: Likewise.
1895 * cp-support.c: Likewise.
1896 * cp-valprint.c: Likewise.
1897 * cris-tdep.c: Likewise.
1898 * d-exp.y: Likewise.
1899 * darwin-nat.c: Likewise.
1900 * dbxread.c: Likewise.
1901 * dcache.c: Likewise.
1902 * demangle.c: Likewise.
1903 * dicos-tdep.c: Likewise.
1904 * disasm.c: Likewise.
1905 * doublest.c: Likewise.
1906 * dsrec.c: Likewise.
1907 * dummy-frame.c: Likewise.
1908 * dwarf2-frame.c: Likewise.
1909 * dwarf2loc.c: Likewise.
1910 * dwarf2read.c: Likewise.
1911 * elfread.c: Likewise.
1912 * environ.c: Likewise.
1913 * eval.c: Likewise.
1914 * event-loop.c: Likewise.
1915 * exceptions.c: Likewise.
1916 * exec.c: Likewise.
1917 * expprint.c: Likewise.
1918 * f-exp.y: Likewise.
1919 * f-lang.c: Likewise.
1920 * f-typeprint.c: Likewise.
1921 * f-valprint.c: Likewise.
1922 * fbsd-nat.c: Likewise.
1923 * findcmd.c: Likewise.
1924 * findvar.c: Likewise.
1925 * fork-child.c: Likewise.
1926 * frame.c: Likewise.
1927 * frv-linux-tdep.c: Likewise.
1928 * frv-tdep.c: Likewise.
1929 * gdb.c: Likewise.
1930 * gdb_bfd.c: Likewise.
1931 * gdbarch.c: Likewise.
1932 * gdbarch.sh: Likewise.
1933 * gdbtypes.c: Likewise.
1934 * gnu-nat.c: Likewise.
1935 * gnu-v2-abi.c: Likewise.
1936 * gnu-v3-abi.c: Likewise.
1937 * go-exp.y: Likewise.
1938 * go-lang.c: Likewise.
1939 * go32-nat.c: Likewise.
1940 * guile/guile.c: Likewise.
1941 * guile/scm-auto-load.c: Likewise.
1942 * hppa-hpux-tdep.c: Likewise.
1943 * hppa-linux-nat.c: Likewise.
1944 * hppanbsd-tdep.c: Likewise.
1945 * hppaobsd-tdep.c: Likewise.
1946 * i386-cygwin-tdep.c: Likewise.
1947 * i386-dicos-tdep.c: Likewise.
1948 * i386-linux-tdep.c: Likewise.
1949 * i386-nto-tdep.c: Likewise.
1950 * i386-sol2-tdep.c: Likewise.
1951 * i386-tdep.c: Likewise.
1952 * i386bsd-tdep.c: Likewise.
1953 * i386gnu-nat.c: Likewise.
1954 * i386nbsd-tdep.c: Likewise.
1955 * i386obsd-tdep.c: Likewise.
1956 * i387-tdep.c: Likewise.
1957 * ia64-libunwind-tdep.c: Likewise.
1958 * ia64-linux-nat.c: Likewise.
1959 * inf-child.c: Likewise.
1960 * inf-ptrace.c: Likewise.
1961 * inf-ttrace.c: Likewise.
1962 * infcall.c: Likewise.
1963 * infcmd.c: Likewise.
1964 * inflow.c: Likewise.
1965 * infrun.c: Likewise.
1966 * interps.c: Likewise.
1967 * iq2000-tdep.c: Likewise.
1968 * irix5-nat.c: Likewise.
1969 * jv-exp.y: Likewise.
1970 * jv-lang.c: Likewise.
1971 * jv-typeprint.c: Likewise.
1972 * jv-valprint.c: Likewise.
1973 * language.c: Likewise.
1974 * linux-fork.c: Likewise.
1975 * linux-nat.c: Likewise.
1976 * lm32-tdep.c: Likewise.
1977 * m2-exp.y: Likewise.
1978 * m2-typeprint.c: Likewise.
1979 * m32c-tdep.c: Likewise.
1980 * m32r-linux-nat.c: Likewise.
1981 * m32r-linux-tdep.c: Likewise.
1982 * m32r-rom.c: Likewise.
1983 * m32r-tdep.c: Likewise.
1984 * m68hc11-tdep.c: Likewise.
1985 * m68k-tdep.c: Likewise.
1986 * m68kbsd-tdep.c: Likewise.
1987 * m68klinux-nat.c: Likewise.
1988 * m68klinux-tdep.c: Likewise.
1989 * m88k-tdep.c: Likewise.
1990 * machoread.c: Likewise.
1991 * macrocmd.c: Likewise.
1992 * main.c: Likewise.
1993 * mdebugread.c: Likewise.
1994 * mem-break.c: Likewise.
1995 * memattr.c: Likewise.
1996 * memory-map.c: Likewise.
1997 * mep-tdep.c: Likewise.
1998 * mi/mi-cmd-break.c: Likewise.
1999 * mi/mi-cmd-disas.c: Likewise.
2000 * mi/mi-cmd-env.c: Likewise.
2001 * mi/mi-cmd-stack.c: Likewise.
2002 * mi/mi-cmd-var.c: Likewise.
2003 * mi/mi-cmds.c: Likewise.
2004 * mi/mi-console.c: Likewise.
2005 * mi/mi-getopt.c: Likewise.
2006 * mi/mi-interp.c: Likewise.
2007 * mi/mi-main.c: Likewise.
2008 * mi/mi-parse.c: Likewise.
2009 * microblaze-rom.c: Likewise.
2010 * microblaze-tdep.c: Likewise.
2011 * mingw-hdep.c: Likewise.
2012 * minidebug.c: Likewise.
2013 * minsyms.c: Likewise.
2014 * mips-irix-tdep.c: Likewise.
2015 * mips-linux-tdep.c: Likewise.
2016 * mips-tdep.c: Likewise.
2017 * mips64obsd-tdep.c: Likewise.
2018 * mipsnbsd-tdep.c: Likewise.
2019 * mipsread.c: Likewise.
2020 * mn10300-linux-tdep.c: Likewise.
2021 * mn10300-tdep.c: Likewise.
2022 * monitor.c: Likewise.
2023 * moxie-tdep.c: Likewise.
2024 * mt-tdep.c: Likewise.
2025 * nat/linux-btrace.c: Likewise.
2026 * nat/linux-osdata.c: Likewise.
2027 * nat/linux-procfs.c: Likewise.
2028 * nat/linux-ptrace.c: Likewise.
2029 * nat/linux-waitpid.c: Likewise.
2030 * nbsd-tdep.c: Likewise.
2031 * nios2-linux-tdep.c: Likewise.
2032 * nto-procfs.c: Likewise.
2033 * nto-tdep.c: Likewise.
2034 * objc-lang.c: Likewise.
2035 * objfiles.c: Likewise.
2036 * opencl-lang.c: Likewise.
2037 * osabi.c: Likewise.
2038 * osdata.c: Likewise.
2039 * p-exp.y: Likewise.
2040 * p-lang.c: Likewise.
2041 * p-typeprint.c: Likewise.
2042 * parse.c: Likewise.
2043 * posix-hdep.c: Likewise.
2044 * ppc-linux-nat.c: Likewise.
2045 * ppc-sysv-tdep.c: Likewise.
2046 * ppcfbsd-tdep.c: Likewise.
2047 * ppcnbsd-tdep.c: Likewise.
2048 * ppcobsd-tdep.c: Likewise.
2049 * printcmd.c: Likewise.
2050 * procfs.c: Likewise.
2051 * prologue-value.c: Likewise.
2052 * python/py-auto-load.c: Likewise.
2053 * python/py-gdb-readline.c: Likewise.
2054 * ravenscar-thread.c: Likewise.
2055 * regcache.c: Likewise.
2056 * registry.c: Likewise.
2057 * remote-fileio.c: Likewise.
2058 * remote-m32r-sdi.c: Likewise.
2059 * remote-mips.c: Likewise.
2060 * remote-notif.c: Likewise.
2061 * remote-sim.c: Likewise.
2062 * remote.c: Likewise.
2063 * reverse.c: Likewise.
2064 * rs6000-aix-tdep.c: Likewise.
2065 * ser-base.c: Likewise.
2066 * ser-go32.c: Likewise.
2067 * ser-mingw.c: Likewise.
2068 * ser-pipe.c: Likewise.
2069 * ser-tcp.c: Likewise.
2070 * ser-unix.c: Likewise.
2071 * serial.c: Likewise.
2072 * sh-tdep.c: Likewise.
2073 * sh64-tdep.c: Likewise.
2074 * shnbsd-tdep.c: Likewise.
2075 * skip.c: Likewise.
2076 * sol-thread.c: Likewise.
2077 * solib-dsbt.c: Likewise.
2078 * solib-frv.c: Likewise.
2079 * solib-osf.c: Likewise.
2080 * solib-som.c: Likewise.
2081 * solib-spu.c: Likewise.
2082 * solib-target.c: Likewise.
2083 * solib.c: Likewise.
2084 * somread.c: Likewise.
2085 * source.c: Likewise.
2086 * sparc-nat.c: Likewise.
2087 * sparc-sol2-tdep.c: Likewise.
2088 * sparc-tdep.c: Likewise.
2089 * sparc64-tdep.c: Likewise.
2090 * sparc64fbsd-tdep.c: Likewise.
2091 * sparc64nbsd-tdep.c: Likewise.
2092 * sparcnbsd-tdep.c: Likewise.
2093 * spu-linux-nat.c: Likewise.
2094 * spu-multiarch.c: Likewise.
2095 * spu-tdep.c: Likewise.
2096 * stabsread.c: Likewise.
2097 * stack.c: Likewise.
2098 * std-regs.c: Likewise.
2099 * symfile.c: Likewise.
2100 * symmisc.c: Likewise.
2101 * symtab.c: Likewise.
2102 * target.c: Likewise.
2103 * thread.c: Likewise.
2104 * tilegx-linux-nat.c: Likewise.
2105 * tilegx-tdep.c: Likewise.
2106 * top.c: Likewise.
2107 * tracepoint.c: Likewise.
2108 * tui/tui-command.c: Likewise.
2109 * tui/tui-data.c: Likewise.
2110 * tui/tui-disasm.c: Likewise.
2111 * tui/tui-file.c: Likewise.
2112 * tui/tui-layout.c: Likewise.
2113 * tui/tui-out.c: Likewise.
2114 * tui/tui-regs.c: Likewise.
2115 * tui/tui-source.c: Likewise.
2116 * tui/tui-stack.c: Likewise.
2117 * tui/tui-win.c: Likewise.
2118 * tui/tui-windata.c: Likewise.
2119 * tui/tui-winsource.c: Likewise.
2120 * typeprint.c: Likewise.
2121 * ui-file.c: Likewise.
2122 * ui-out.c: Likewise.
2123 * user-regs.c: Likewise.
2124 * utils.c: Likewise.
2125 * v850-tdep.c: Likewise.
2126 * valarith.c: Likewise.
2127 * valops.c: Likewise.
2128 * valprint.c: Likewise.
2129 * value.c: Likewise.
2130 * varobj.c: Likewise.
2131 * vax-tdep.c: Likewise.
2132 * vaxnbsd-tdep.c: Likewise.
2133 * vaxobsd-tdep.c: Likewise.
2134 * windows-nat.c: Likewise.
2135 * xcoffread.c: Likewise.
2136 * xml-support.c: Likewise.
2137 * xstormy16-tdep.c: Likewise.
2138 * xtensa-linux-nat.c: Likewise.
2139
2140 2014-08-07 Gary Benson <gbenson@redhat.com>
2141
2142 * common/common-defs.h: Include gdb_assert.h.
2143 * aarch64-tdep.c: Do not include gdb_assert.h.
2144 * addrmap.c: Likewise.
2145 * aix-thread.c: Likewise.
2146 * alpha-linux-tdep.c: Likewise.
2147 * alpha-mdebug-tdep.c: Likewise.
2148 * alphanbsd-tdep.c: Likewise.
2149 * amd64-nat.c: Likewise.
2150 * amd64-tdep.c: Likewise.
2151 * amd64bsd-nat.c: Likewise.
2152 * amd64fbsd-nat.c: Likewise.
2153 * amd64fbsd-tdep.c: Likewise.
2154 * amd64nbsd-nat.c: Likewise.
2155 * amd64nbsd-tdep.c: Likewise.
2156 * amd64obsd-nat.c: Likewise.
2157 * amd64obsd-tdep.c: Likewise.
2158 * arch-utils.c: Likewise.
2159 * arm-tdep.c: Likewise.
2160 * armbsd-tdep.c: Likewise.
2161 * auxv.c: Likewise.
2162 * bcache.c: Likewise.
2163 * bfin-tdep.c: Likewise.
2164 * blockframe.c: Likewise.
2165 * breakpoint.c: Likewise.
2166 * bsd-kvm.c: Likewise.
2167 * bsd-uthread.c: Likewise.
2168 * buildsym.c: Likewise.
2169 * c-exp.y: Likewise.
2170 * c-lang.c: Likewise.
2171 * charset.c: Likewise.
2172 * cleanups.c: Likewise.
2173 * cli-out.c: Likewise.
2174 * cli/cli-decode.c: Likewise.
2175 * cli/cli-dump.c: Likewise.
2176 * cli/cli-logging.c: Likewise.
2177 * cli/cli-script.c: Likewise.
2178 * cli/cli-utils.c: Likewise.
2179 * coffread.c: Likewise.
2180 * common/common-utils.c: Likewise.
2181 * common/queue.h: Likewise.
2182 * common/signals.c: Likewise.
2183 * common/vec.h: Likewise.
2184 * complaints.c: Likewise.
2185 * completer.c: Likewise.
2186 * corelow.c: Likewise.
2187 * cp-abi.c: Likewise.
2188 * cp-name-parser.y: Likewise.
2189 * cp-namespace.c: Likewise.
2190 * cp-support.c: Likewise.
2191 * cris-tdep.c: Likewise.
2192 * dbxread.c: Likewise.
2193 * dictionary.c: Likewise.
2194 * doublest.c: Likewise.
2195 * dsrec.c: Likewise.
2196 * dummy-frame.c: Likewise.
2197 * dwarf2-frame-tailcall.c: Likewise.
2198 * dwarf2-frame.c: Likewise.
2199 * dwarf2expr.c: Likewise.
2200 * dwarf2loc.c: Likewise.
2201 * dwarf2read.c: Likewise.
2202 * eval.c: Likewise.
2203 * event-loop.c: Likewise.
2204 * exceptions.c: Likewise.
2205 * expprint.c: Likewise.
2206 * f-valprint.c: Likewise.
2207 * fbsd-nat.c: Likewise.
2208 * findvar.c: Likewise.
2209 * frame-unwind.c: Likewise.
2210 * frame.c: Likewise.
2211 * frv-tdep.c: Likewise.
2212 * gcore.c: Likewise.
2213 * gdb-dlfcn.c: Likewise.
2214 * gdb_bfd.c: Likewise.
2215 * gdbarch.c: Likewise.
2216 * gdbarch.sh: Likewise.
2217 * gdbtypes.c: Likewise.
2218 * gnu-nat.c: Likewise.
2219 * gnu-v3-abi.c: Likewise.
2220 * go-lang.c: Likewise.
2221 * guile/scm-exception.c: Likewise.
2222 * guile/scm-gsmob.c: Likewise.
2223 * guile/scm-lazy-string.c: Likewise.
2224 * guile/scm-math.c: Likewise.
2225 * guile/scm-pretty-print.c: Likewise.
2226 * guile/scm-safe-call.c: Likewise.
2227 * guile/scm-utils.c: Likewise.
2228 * guile/scm-value.c: Likewise.
2229 * h8300-tdep.c: Likewise.
2230 * hppa-hpux-nat.c: Likewise.
2231 * hppa-tdep.c: Likewise.
2232 * hppanbsd-tdep.c: Likewise.
2233 * hppaobsd-tdep.c: Likewise.
2234 * i386-darwin-nat.c: Likewise.
2235 * i386-darwin-tdep.c: Likewise.
2236 * i386-nto-tdep.c: Likewise.
2237 * i386-tdep.c: Likewise.
2238 * i386bsd-nat.c: Likewise.
2239 * i386fbsd-tdep.c: Likewise.
2240 * i386gnu-nat.c: Likewise.
2241 * i386nbsd-tdep.c: Likewise.
2242 * i386obsd-tdep.c: Likewise.
2243 * i387-tdep.c: Likewise.
2244 * ia64-libunwind-tdep.c: Likewise.
2245 * ia64-tdep.c: Likewise.
2246 * inf-ptrace.c: Likewise.
2247 * inf-ttrace.c: Likewise.
2248 * infcall.c: Likewise.
2249 * infcmd.c: Likewise.
2250 * infrun.c: Likewise.
2251 * inline-frame.c: Likewise.
2252 * interps.c: Likewise.
2253 * jv-lang.c: Likewise.
2254 * jv-typeprint.c: Likewise.
2255 * linux-fork.c: Likewise.
2256 * linux-nat.c: Likewise.
2257 * linux-thread-db.c: Likewise.
2258 * m32c-tdep.c: Likewise.
2259 * m32r-linux-nat.c: Likewise.
2260 * m32r-tdep.c: Likewise.
2261 * m68k-tdep.c: Likewise.
2262 * m68kbsd-nat.c: Likewise.
2263 * m68kbsd-tdep.c: Likewise.
2264 * m88k-tdep.c: Likewise.
2265 * machoread.c: Likewise.
2266 * macroexp.c: Likewise.
2267 * macrotab.c: Likewise.
2268 * maint.c: Likewise.
2269 * mdebugread.c: Likewise.
2270 * memory-map.c: Likewise.
2271 * mep-tdep.c: Likewise.
2272 * mi/mi-common.c: Likewise.
2273 * microblaze-tdep.c: Likewise.
2274 * mingw-hdep.c: Likewise.
2275 * mips-linux-nat.c: Likewise.
2276 * mips-linux-tdep.c: Likewise.
2277 * mips-tdep.c: Likewise.
2278 * mips64obsd-tdep.c: Likewise.
2279 * mipsnbsd-tdep.c: Likewise.
2280 * mn10300-linux-tdep.c: Likewise.
2281 * mn10300-tdep.c: Likewise.
2282 * moxie-tdep.c: Likewise.
2283 * mt-tdep.c: Likewise.
2284 * nat/linux-btrace.c: Likewise.
2285 * nat/linux-osdata.c: Likewise.
2286 * nat/linux-ptrace.c: Likewise.
2287 * nat/mips-linux-watch.c: Likewise.
2288 * nios2-linux-tdep.c: Likewise.
2289 * nios2-tdep.c: Likewise.
2290 * objc-lang.c: Likewise.
2291 * objfiles.c: Likewise.
2292 * obsd-nat.c: Likewise.
2293 * opencl-lang.c: Likewise.
2294 * osabi.c: Likewise.
2295 * parse.c: Likewise.
2296 * ppc-linux-nat.c: Likewise.
2297 * ppc-sysv-tdep.c: Likewise.
2298 * ppcfbsd-nat.c: Likewise.
2299 * ppcfbsd-tdep.c: Likewise.
2300 * ppcnbsd-nat.c: Likewise.
2301 * ppcnbsd-tdep.c: Likewise.
2302 * ppcobsd-nat.c: Likewise.
2303 * ppcobsd-tdep.c: Likewise.
2304 * printcmd.c: Likewise.
2305 * procfs.c: Likewise.
2306 * prologue-value.c: Likewise.
2307 * psymtab.c: Likewise.
2308 * python/py-lazy-string.c: Likewise.
2309 * python/py-value.c: Likewise.
2310 * regcache.c: Likewise.
2311 * reggroups.c: Likewise.
2312 * registry.c: Likewise.
2313 * remote-sim.c: Likewise.
2314 * remote.c: Likewise.
2315 * rs6000-aix-tdep.c: Likewise.
2316 * rs6000-tdep.c: Likewise.
2317 * s390-linux-tdep.c: Likewise.
2318 * score-tdep.c: Likewise.
2319 * ser-base.c: Likewise.
2320 * ser-mingw.c: Likewise.
2321 * sh-tdep.c: Likewise.
2322 * sh64-tdep.c: Likewise.
2323 * solib-darwin.c: Likewise.
2324 * solib-spu.c: Likewise.
2325 * solib-svr4.c: Likewise.
2326 * source.c: Likewise.
2327 * sparc-nat.c: Likewise.
2328 * sparc-sol2-tdep.c: Likewise.
2329 * sparc-tdep.c: Likewise.
2330 * sparc64-sol2-tdep.c: Likewise.
2331 * sparc64-tdep.c: Likewise.
2332 * sparc64fbsd-tdep.c: Likewise.
2333 * sparc64nbsd-tdep.c: Likewise.
2334 * sparc64obsd-tdep.c: Likewise.
2335 * sparcnbsd-tdep.c: Likewise.
2336 * sparcobsd-tdep.c: Likewise.
2337 * spu-multiarch.c: Likewise.
2338 * spu-tdep.c: Likewise.
2339 * stabsread.c: Likewise.
2340 * stack.c: Likewise.
2341 * symfile.c: Likewise.
2342 * symtab.c: Likewise.
2343 * target-descriptions.c: Likewise.
2344 * target-memory.c: Likewise.
2345 * target.c: Likewise.
2346 * tic6x-linux-tdep.c: Likewise.
2347 * tic6x-tdep.c: Likewise.
2348 * tilegx-linux-nat.c: Likewise.
2349 * tilegx-tdep.c: Likewise.
2350 * top.c: Likewise.
2351 * tramp-frame.c: Likewise.
2352 * tui/tui-out.c: Likewise.
2353 * tui/tui-winsource.c: Likewise.
2354 * ui-out.c: Likewise.
2355 * user-regs.c: Likewise.
2356 * utils.c: Likewise.
2357 * v850-tdep.c: Likewise.
2358 * valops.c: Likewise.
2359 * value.c: Likewise.
2360 * varobj.c: Likewise.
2361 * vax-nat.c: Likewise.
2362 * xml-syscall.c: Likewise.
2363 * xml-tdesc.c: Likewise.
2364 * xstormy16-tdep.c: Likewise.
2365 * xtensa-linux-nat.c: Likewise.
2366 * xtensa-tdep.c: Likewise.
2367
2368 2014-08-07 Gary Benson <gbenson@redhat.com>
2369
2370 * common/common-defs.h: Include common-utils.h.
2371 * defs.h: Do not include common-utils.h.
2372 * common/gdb_assert.h: Likewise.
2373 * darwin-nat.h: Likewise.
2374 * nat/linux-btrace.c: Likewise.
2375 * target/waitstatus.h: Likewise.
2376
2377 2014-08-07 Gary Benson <gbenson@redhat.com>
2378
2379 * common/common-defs.h: Include ptid.h.
2380 * defs.h: Do not include ptid.h.
2381 * inferior.h: Likewise.
2382 * infrun.h: Likewise.
2383 * nat/linux-btrace.h: Likewise.
2384 * nat/linux-osdata.h: Likewise.
2385 * target/waitstatus.h: Likewise.
2386
2387 2014-08-07 Gary Benson <gbenson@redhat.com>
2388
2389 * common/common-defs.h: Include gdb_locale.h.
2390 * defs.h: Do not include gdb_locale.h.
2391
2392 2014-08-07 Gary Benson <gbenson@redhat.com>
2393
2394 * common/common-defs.h: Include gdb/signals.h.
2395 * defs.h: Do not include gdb/signals.h.
2396
2397 2014-08-07 Gary Benson <gbenson@redhat.com>
2398
2399 * common/common-defs.h: Include pathmax.h.
2400 * defs.h: Do not include pathmax.h.
2401
2402 2014-08-07 Gary Benson <gbenson@redhat.com>
2403
2404 * common/common-defs.h: Include libiberty.h.
2405 * defs.h: Do not include libiberty.h.
2406 * common/queue.h: Likewise.
2407 * cp-name-parser.y: Likewise.
2408 * mi/mi-cmd-catch.c: Likewise.
2409 * python/python.c: Likewise.
2410
2411 2014-08-07 Gary Benson <gbenson@redhat.com>
2412
2413 * common/common-defs.h: Include ansidecl.h.
2414 * defs.h: Do not include ansidecl.h.
2415 * common/buffer.h: Likewise.
2416 * common/common-utils.h: Likewise.
2417
2418 2014-08-07 Gary Benson <gbenson@redhat.com>
2419
2420 * common/common-defs.h: Include stddef.h.
2421 * defs.h: Do not include stddef.h.
2422 * common/common-utils.h: Likewise.
2423 * amd64fbsd-nat.c: Likewise.
2424 * bcache.c: Likewise.
2425 * charset.c: Likewise.
2426 * common/buffer.h: Likewise.
2427 * common/vec.h: Likewise.
2428 * i386bsd-nat.c: Likewise.
2429 * nat/linux-btrace.h: Likewise.
2430 * ppcfbsd-nat.c: Likewise.
2431 * ppcnbsd-tdep.h: Likewise.
2432 * ppcobsd-nat.c: Likewise.
2433 * ppcobsd-tdep.h: Likewise.
2434 * python/py-gdb-readline.c: Likewise.
2435
2436 2014-08-07 Gary Benson <gbenson@redhat.com>
2437
2438 * common/common-defs.h: Include stdarg.h.
2439 * defs.h: Do not include stdarg.h.
2440 * ada-lang.c: Likewise.
2441 * common/common-utils.h: Likewise.
2442 * guile/scm-string.c: Likewise.
2443 * guile/scm-utils.c: Likewise.
2444 * m32c-tdep.c: Likewise.
2445
2446 2014-08-07 Gary Benson <gbenson@redhat.com>
2447
2448 * common/common-defs.h: Include stdlib.h.
2449 * defs.h: Do not include stdlib.h.
2450 * addrmap.c: Likewise.
2451 * bcache.c: Likewise.
2452 * common/buffer.c: Likewise.
2453 * common/common-utils.c: Likewise.
2454 * cp-name-parser.y: Likewise.
2455 * go32-nat.c: Likewise.
2456 * mn10300-linux-tdep.c: Likewise.
2457 * nat/linux-osdata.c: Likewise.
2458 * tui/tui.c: Likewise.
2459 * windows-nat.c: Likewise.
2460
2461 2014-08-07 Gary Benson <gbenson@redhat.com>
2462
2463 * common/common-defs.h: Include stdio.h.
2464 * defs.h: Do not include stdio.h.
2465 * ada-lang.c: Likewise.
2466 * common/buffer.c: Likewise.
2467 * common/common-utils.c: Likewise.
2468 * cp-name-parser.y: Likewise.
2469 * gnu-nat.c: Likewise.
2470 * go32-nat.c: Likewise.
2471 * i386gnu-nat.c: Likewise.
2472 * proc-api.c: Likewise.
2473 * proc-events.c: Likewise.
2474 * proc-flags.c: Likewise.
2475 * proc-why.c: Likewise.
2476 * python/python-internal.h: Likewise.
2477 * target-memory.c: Likewise.
2478 * tui/tui-io.c: Likewise.
2479 * tui/tui.c: Likewise.
2480
2481 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2482
2483 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2484 (scan_dyntag_auxv): Same.
2485
2486 2014-08-06 Yao Qi <yao@codesourcery.com>
2487
2488 * amd64-linux-nat.c: Remove duplicated include
2489 "x86-linux-nat.h".
2490 * i386-linux-nat.c: Likewise.
2491
2492 2014-08-06 Yao Qi <yao@codesourcery.com>
2493
2494 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2495 operand" with "Special opcode" in comments.
2496
2497 2014-08-05 Gary Benson <gbenson@redhat.com>
2498
2499 * interps.c (initialize_interps): Remove prototype.
2500 (interpreter_initialized): Remove static global.
2501 (interp_add): Do not call initialize_interps.
2502 (initialize_interps): Remove function.
2503
2504 2014-08-05 Gary Benson <gbenson@redhat.com>
2505
2506 * utils.c (vwarning): Remove spurious va_end.
2507
2508 2014-08-05 Alan Modra <amodra@gmail.com>
2509
2510 * charset.c (convert_between_encodings): Cast result of obstack_base.
2511 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2512 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2513 (read_unwind_info): Use size_t for some locals.
2514 * jit.c (finalize_symtab): Likewise.
2515 * utils.c (hashtab_obstack_allocate): Likewise.
2516 * symmisc.c (print_objfile_statistics): Update format strings.
2517
2518 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2519
2520 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2521 (Changes in GDB 7.8): ... here.
2522
2523 2014-08-04 Tom Tromey <tromey@redhat.com>
2524
2525 * target.c (set_targetdebug): New function.
2526 (initialize_targets): Pass set_targetdebug when creating "set
2527 debug target".
2528
2529 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2530
2531 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2532 if detecting a variable-sized field that is not the last field.
2533 Fix struct type length computation.
2534
2535 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2536
2537 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2538 Add debug trace.
2539
2540 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2541
2542 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2543 Remove "+ 8" offset in computation of CHAIN_VMA.
2544
2545 2014-07-31 Doug Evans <dje@google.com>
2546
2547 * inflow.c (child_terminal_inferior): Add comment.
2548 (child_terminal_ours_for_output): Add comment.
2549 (child_terminal_ours): Add comment.
2550 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2551 (linux_nat_terminal_ours): Add comment.
2552
2553 2014-07-31 Gary Benson <gbenson@redhat.com>
2554
2555 * common/btrace-common.h: Do not include defs.h or server.h.
2556 * nat/mips-linux-watch.h: Likewise.
2557 * gdb-dlfcn.h: Do not include defs.h.
2558 * tracefile.h: Likewise.
2559
2560 2014-07-30 Roland McGrath <mcgrathr@google.com>
2561
2562 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2563
2564 2014-07-30 Tom Tromey <tromey@redhat.com>
2565
2566 * bsd-kvm.c (bsd_kvm_open): Constify.
2567 * corelow.c (core_open): Constify.
2568 * ctf.c (ctf_open): Constify.
2569 * dbug-rom.c (dbug_open): Constify.
2570 * exec.c (exec_open): Constify.
2571 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2572 * microblaze-rom.c (picobug_open): Constify.
2573 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2574 Constify.
2575 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2576 * record-btrace.c (record_btrace_open): Constify.
2577 * record-full.c (record_full_core_open_1, record_full_open_1)
2578 (record_full_open): Constify.
2579 * remote-m32r-sdi.c (m32r_open): Constify.
2580 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2581 (rockhopper_open, lsi_open): Constify.
2582 * remote-sim.c (gdbsim_open): Constify.
2583 * remote.c (remote_open, extended_remote_open, remote_open_1):
2584 Constify.
2585 * target.h (struct target_ops) <to_open>: Make "arg" const.
2586 * tracefile-tfile.c (tfile_open): Constify.
2587
2588 2014-07-30 Tom Tromey <tromey@redhat.com>
2589
2590 * breakpoint.c (map_breakpoint_numbers): Update.
2591 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2592 (get_number_const): New function.
2593 (get_number): Rewrite using get_number_const.
2594 (init_number_or_range): Make "string" const.
2595 (number_is_in_list): Make "list" const.
2596 * cli/cli-utils.h (get_number_const): Declare.
2597 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2598 (init_number_or_range, number_is_in_list): Update.
2599 * printcmd.c (map_display_numbers): Update.
2600 * value.c (value_from_history_ref): Constify.
2601 * value.h (value_from_history_ref): Update.
2602
2603 2014-07-30 Tom Tromey <tromey@redhat.com>
2604
2605 * corefile.c (hook_type, call_extra_exec_file_hooks)
2606 (specify_exec_file_hook): Constify.
2607 * exec.c (exec_file_attach): Make "filename" const.
2608 * gdbcore.h (deprecated_exec_file_display_hook)
2609 (specify_exec_file_hook, exec_file_attach): Constify.
2610 * main.c (captured_main): Use catch_command_errors_const.
2611
2612 2014-07-30 Tom Tromey <tromey@redhat.com>
2613
2614 * target.c (open_target): New function.
2615 (add_target_with_completer, add_deprecated_target_alias): Use
2616 set_cmd_sfunc, set_cmd_context.
2617 (debug_to_open): Remove.
2618 (setup_target_debug): Update.
2619
2620 2014-07-30 Yao Qi <yao@codesourcery.com>
2621
2622 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2623 comments.
2624 * parse.c (exp_iterate): Update comments.
2625
2626 2014-07-30 Gary Benson <gbenson@redhat.com>
2627
2628 * common/common-defs.h: New file.
2629 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2630 * defs.h: Include common-defs.h.
2631 Do not include config.h or build-gnulib/config.h.
2632
2633 2014-07-30 Gary Benson <gbenson@redhat.com>
2634
2635 * common/common-utils.h: Do not include config.h.
2636 * nat/linux-btrace.h: Likewise.
2637
2638 2014-07-30 Gary Benson <gbenson@redhat.com>
2639
2640 * btrace.c: Include defs.h.
2641 * common/ptid.c: Include defs.h or server.h as appropriate.
2642 * nat/mips-linux-watch.c: Likewise.
2643
2644 2014-07-29 Tom Tromey <tromey@redhat.com>
2645
2646 * target.c (target_is_pushed): Simplify.
2647
2648 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2649
2650 GDB 7.8 released.
2651
2652 2014-07-29 Yao Qi <yao@codesourcery.com>
2653
2654 PR gdb/17206
2655 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2656
2657 2014-07-28 Doug Evans <xdje42@gmail.com>
2658
2659 PR guile/17203
2660 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2661 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2662 parameters.
2663
2664 2014-07-28 Will Newton <will.newton@linaro.org>
2665
2666 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2667 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2668 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2669 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2670 (THUMB2_EABI_SYSCALL): Likewise.
2671 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2672 struct tramp_frame.
2673 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2674 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2675
2676 2014-07-27 Doug Evans <xdje42@gmail.com>
2677
2678 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2679
2680 2014-07-27 Doug Evans <xdje42@gmail.com>
2681
2682 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2683
2684 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2685 Doug Evans <xdje42@gmail.com>
2686
2687 PR guile/17146
2688 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2689 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2690 * configure.ac: Try to use guild to compile an scm file, if it fails
2691 then disable guile support.
2692 * configure: Regenerate.
2693 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2694 GUILE_FILE_LIST.
2695 (GUILE_COMPILED_FILES): New variable.
2696 (GUILE_FILES) Update.
2697 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2698 (stamp-guile): Compile scm files.
2699 * guile/guile.c (boot_guile_support): New function.
2700 (standard_throw_args_p): New function.
2701 (print_standard_throw_error, print_throw_error): New functions.
2702 (handle_boot_error): New function.
2703 (initialize_scheme_side): Rewrite to call boot_guile_support.
2704 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2705 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2706
2707 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2708 Doug Evans <xdje42@gmail.com>
2709
2710 PR guile/17146
2711 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2712 * guile/lib/gdb/support.scm: New file.
2713 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2714 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2715 All uses updated.
2716 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2717 All uses updated.
2718 (%assert-type): Ditto, and renamed to assert-type.
2719 (%exception-print-style): Delete.
2720
2721 2014-07-26 Doug Evans <xdje42@gmail.com>
2722
2723 PR build/17105
2724 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2725 * configure: Regenerate.
2726 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2727 PYTHON_FILES.
2728 (PYTHON_FILES): New variable.
2729 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2730 (GUILE_FILES): New variable.
2731 (stamp-python, install-python, uninstall-python): Handle empty
2732 file list.
2733 (stamp-guile, install-guile, uninstall-guile): Ditto.
2734
2735 2014-07-26 Doug Evans <xdje42@gmail.com>
2736
2737 PR guile/17177
2738 * guile/lib/gdb.scm (pretty-printers): Export.
2739 (set-pretty-printers!): Export.
2740 * guile/lib/gdb/printing.scm (gdb module): Update.
2741 (prepend-pretty-printer!, append-pretty-printer!): Update.
2742 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2743 (pretty_printer_list_var): Delete.
2744 (pretty_printer_list): New static global.
2745 (gdbscm_pretty_printers): New function.
2746 (gdbscm_set_pretty_printers_x): New function.
2747 (ppscm_find_pretty_printer_from_gdb): Update.
2748 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2749 (gdbscm_initialize_pretty_printers): Update.
2750
2751 2014-07-26 Doug Evans <xdje42@gmail.com>
2752
2753 PR 17185
2754 * configure.ac: Add check for header gc/gc.h.
2755 Add check for function setenv.
2756 * configure: Regenerate.
2757 * config.in: Regenerate.
2758 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2759
2760 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2761
2762 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2763 variation in gdbarch matching.
2764
2765 2014-07-25 Tom Tromey <tromey@redhat.com>
2766
2767 * exec.c (using_exec_ops): Remove.
2768 (exec_close_1): Update. Remove extraneous block, reindent.
2769 (add_target_sections): Use target_is_pushed.
2770
2771 2014-07-25 Pedro Alves <palves@redhat.com>
2772
2773 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2774 * monitor.c (monitor_create_inferior): Likewise.
2775 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2776 * remote-sim.c (gdbsim_create_inferior): Likewise.
2777 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2778 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2779 * windows-nat.c (do_initial_windows_stuff): Likewise.
2780
2781 2014-07-25 Pedro Alves <palves@redhat.com>
2782
2783 * NEWS: Mention signal passing and "signal" command changes.
2784 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2785 comment.
2786 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2787 call.
2788 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2789 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2790 (jump_command): Adjust clear_proceed_status call.
2791 (signal_command): Warn if other thread that are resumed have
2792 signals that will be delivered. Adjust clear_proceed_status call.
2793 (until_next_command, finish_command)
2794 (proceed_after_attach_callback, attach_command_post_wait)
2795 (attach_command): Adjust clear_proceed_status call.
2796 * infrun.c (proceed_after_vfork_done): Likewise.
2797 (proceed_after_attach_callback): Adjust comment.
2798 (clear_proceed_status_thread): Clear stop_signal if not in pass
2799 state.
2800 (clear_proceed_status_callback): Delete.
2801 (clear_proceed_status): New 'step' parameter. Only clear the
2802 proceed status of threads the command being prepared is about to
2803 resume.
2804 (proceed): If passed in an explicit signal, override stop_signal
2805 with it. Don't pass the last stop signal to the thread we're
2806 resuming.
2807 (init_wait_for_inferior): Adjust clear_proceed_status call.
2808 (switch_back_to_stepped_thread): Clear the signal if it should not
2809 be passed.
2810 * infrun.h (clear_proceed_status): New 'step' parameter.
2811 (user_visible_resume_ptid): Add comment.
2812 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2813 signal is in pass state.
2814 * remote.c (append_pending_thread_resumptions): Likewise.
2815 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2816
2817 2014-07-25 Tom Tromey <tromey@redhat.com>
2818
2819 * target.h (target_stopped_data_address)
2820 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2821 parentheses.
2822
2823 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2824
2825 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2826 comments.
2827 (avr_pointer_to_address): Likewise.
2828
2829 2014-07-24 Tom Tromey <tromey@redhat.com>
2830
2831 * monitor.c (compile_pattern): Update.
2832 * target.h (struct target_ops) <to_shortname, to_longname,
2833 to_doc>: Now const.
2834
2835 2014-07-24 Tom Tromey <tromey@redhat.com>
2836
2837 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2838 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2839 (add_info_alias, add_com): Make "doc" const.
2840 (print_doc_line): Make "str" const.
2841 (delete_cmd): Update.
2842 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2843 (print_doc_line): Update.
2844 * cli/cli-script.c (document_command): Update.
2845 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2846 (add_com, add_info, add_info_alias): Update.
2847 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2848 * python/py-cmd.c (cmdpy_destroyer): Update.
2849
2850 2014-07-24 Tom Tromey <tromey@redhat.com>
2851
2852 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2853 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2854 (help_cmd_list): Constify.
2855 (lookup_cmd): Update.
2856 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2857 const.
2858 (help_cmd_list, apropos_cmd): Update.
2859 * cli/cli-script.c (show_user): Update.
2860 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2861 * cli/cli-setshow.h (cmd_show_list): Update.
2862 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2863 (cmd_show_list): Update.
2864 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2865 * python/py-cmd.c (cmdpy_destroyer): Update.
2866
2867 2014-07-24 Tom Tromey <tromey@redhat.com>
2868
2869 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2870 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2871 const.
2872 * command.h (deprecate_cmd): Update.
2873 * maint.c (maintenance_do_deprecate): Add casts.
2874
2875 2014-07-24 Tom Tromey <tromey@redhat.com>
2876
2877 * cli/cli-decode.c (help_cmd): Make parameter "const".
2878 * cli/cli-decode.h (help_cmd): Update.
2879
2880 2014-07-24 Tom Tromey <tromey@redhat.com>
2881
2882 * stack.c (up_silently_base, down_silently_base): Make argument
2883 const.
2884
2885 2014-07-24 Tom Tromey <tromey@redhat.com>
2886
2887 * solib.c (solib_add): Make "pattern" const.
2888 * solib.h (solib_add): Update.
2889
2890 2014-07-24 Tom Tromey <tromey@redhat.com>
2891
2892 * remote.c (remote_serial_open, print_packet, putpkt)
2893 (putpkt_binary): Constify.
2894 * remote.h (putpkt): Update.
2895
2896 2014-07-24 Tom Tromey <tromey@redhat.com>
2897
2898 * monitor.c (monitor_open): Make "args" const.
2899 * monitor.h (monitor_open): Update.
2900
2901 2014-07-24 Tom Tromey <tromey@redhat.com>
2902
2903 * maint.c (match_bfd_flags): Make "string" const.
2904 (print_bfd_section_info): Remove casts.
2905 (print_objfile_section_info): Make "string" const.
2906
2907 2014-07-24 Tom Tromey <tromey@redhat.com>
2908
2909 * inf-child.c (inf_child_open_target): Make "arg" const.
2910 * inf-child.h (inf_child_open_target): Update.
2911
2912 2014-07-24 Tom Tromey <tromey@redhat.com>
2913
2914 * environ.c (unset_in_environ): Make "var" const.
2915 * environ.h (unset_in_environ): Update.
2916
2917 2014-07-24 Tom Tromey <tromey@redhat.com>
2918
2919 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2920 Make "cmd" const.
2921 (scan_filename_with_cleanup): Likewise.
2922 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2923 Make arguments const.
2924 (restore_command): Update.
2925
2926 2014-07-24 Pedro Alves <palves@redhat.com>
2927
2928 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2929
2930 2014-07-24 Tom Tromey <tromey@redhat.com>
2931 Gary Benson <gbenson@redhat.com>
2932
2933 * nat/linux-ptrace.c (additional_flags): New global.
2934 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2935 additional_flags; don't check GDBSERVER.
2936 (linux_ptrace_set_additional_flags): New function.
2937 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2938 Declare.
2939 * linux-nat.c (_initialize_linux_nat): Call
2940 linux_ptrace_set_additional_flags.
2941
2942 2014-07-24 Tom Tromey <tromey@redhat.com>
2943
2944 * make-target-delegates (munge_type, write_debugmethod): New
2945 functions.
2946 (debug_names): New global.
2947 ($TARGET_DEBUG_PRINTER): New global.
2948 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2949 name.
2950 Write debug methods. Generate init_debug_target.
2951 * target-debug.h: New file.
2952 * target-delegates.c: Rebuild.
2953 * target.c: Include target-debug.h.
2954 (debug_target): Hoist definition.
2955 (target_kill, target_get_section_table, target_memory_map)
2956 (target_flash_erase, target_flash_done, target_detach)
2957 (target_disconnect, target_wait, target_resume)
2958 (target_pass_signals, target_program_signals, target_follow_fork)
2959 (target_mourn_inferior, target_search_memory)
2960 (target_thread_address_space, target_close)
2961 (target_find_new_threads, target_core_of_thread)
2962 (target_verify_memory, target_insert_mask_watchpoint)
2963 (target_remove_mask_watchpoint): Remove targetdebug code.
2964 (debug_to_post_attach, debug_to_prepare_to_store)
2965 (debug_to_files_info, debug_to_insert_breakpoint)
2966 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2967 (debug_to_region_ok_for_hw_watchpoint)
2968 (debug_to_can_accel_watchpoint_condition)
2969 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2970 (debug_to_watchpoint_addr_within_range)
2971 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2972 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2973 (debug_to_terminal_init, debug_to_terminal_inferior)
2974 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2975 (debug_to_terminal_save_ours, debug_to_terminal_info)
2976 (debug_to_load, debug_to_post_startup_inferior)
2977 (debug_to_insert_fork_catchpoint)
2978 (debug_to_remove_fork_catchpoint)
2979 (debug_to_insert_vfork_catchpoint)
2980 (debug_to_remove_vfork_catchpoint)
2981 (debug_to_insert_exec_catchpoint)
2982 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2983 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2984 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2985 (setup_target_debug): Call init_debug_target.
2986 * target.h (TARGET_DEBUG_PRINTER): New macro.
2987 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2988 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2989
2990 2014-07-24 Gary Benson <gbenson@redhat.com>
2991
2992 * exceptions.h (throw_vfatal): Renamed to...
2993 (throw_vquit): New declaration.
2994 (throw_quit): Likewise.
2995 * exceptions.c (throw_vfatal): Renamed to...
2996 (throw_vquit): New function.
2997 (throw_quit): Likewise.
2998 (throw_error): Call throw_verror rather than throw_it.
2999 * utils.h (vfatal): Removed.
3000 (fatal): Likewise.
3001 * utils.c (vfatal): Removed.
3002 (fatal): Likewise.
3003 (internal_verror): Replaced call to fatal with call to throw_quit.
3004 (quit): Replaced calls to fatal with calls to throw_quit.
3005
3006 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3007
3008 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3009 target_read_code.
3010
3011 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3012
3013 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3014 less than zero in conditional expression.
3015
3016 2014-07-23 Tom Tromey <tromey@redhat.com>
3017
3018 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3019 ($INTRO_PART): Don't match whitespace.
3020 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3021 argument matching.
3022 ($METHOD): Add $METHOD_TRAILER.
3023 (trim): Rewrite.
3024 (scan_target_h): New sub.
3025 Change main loop not to collect state.
3026 * target-delegates.c: Rebuild.
3027
3028 2014-07-23 Gary Benson <gbenson@redhat.com>
3029
3030 * cp-support.c (gdb_demangle): Fix build on systems without
3031 sigaltstack.
3032
3033 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3034
3035 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3036 for reference entry value target data value.
3037
3038 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3039
3040 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3041 value_available_contents_eq.
3042
3043 2014-07-22 Pedro Alves <palves@redhat.com>
3044
3045 * value.c (allocate_optimized_out_value): Don't mark value as
3046 non-lazy.
3047
3048 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3049
3050 * MAINTAINERS (Write After Approval): Update my email address.
3051
3052 2014-07-20 Doug Evans <dje@google.com>
3053
3054 PR server/17147
3055 * remote.c (putpkt_binary): Add text to error message.
3056
3057 2014-07-20 Yao Qi <yao@codesourcery.com>
3058
3059 * eval.c: Remove "Chill" from comments.
3060 * gdbtypes.h: Likewise.
3061 * symtab.h: Likewise.
3062
3063 2014-07-20 Yao Qi <yao@codesourcery.com>
3064
3065 * std-operator.def: Update comments to TERNOP_SLICE.
3066
3067 2014-07-20 Yao Qi <yao@codesourcery.com>
3068
3069 * std-operator.def: Remove BINOP_RANGE.
3070 * breakpoint.c (watchpoint_exp_is_const): Update.
3071 * expprint.c (dump_subexp_body_standard): Likewise.
3072 * eval.c (init_array_element): Remove dead code.
3073 (evaluate_subexp_standard): Likewise.
3074
3075 2014-07-20 Yao Qi <yao@codesourcery.com>
3076
3077 * std-operator.def: Remove BINOP_IN.
3078 * breakpoint.c (watchpoint_exp_is_const): Update.
3079 * eval.c (evaluate_subexp_standard): Likewise.
3080 * expprint.c (dump_subexp_body_standard): Likewise.
3081
3082 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3083
3084 * microblaze-tdep.c (microblaze_register_names): Add
3085 the rshr and rslr register names.
3086 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3087 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3088 Use of tdesc_numbered_register. Use of
3089 microblaze_register_g_packet_guesses. Use of
3090 tdesc_use_registers. Use of set_gdbarch_register_type.
3091 (microblaze_register_g_packet_guesses): New.
3092 * microblaze-tdep.h (microblaze_reg_num): Add
3093 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3094 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3095 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3096 * features/microblaze-core.xml: New file.
3097 * features/microblaze-stack-protect.xml: New file.
3098 * features/microblaze-with-stack-protect.c: New file.
3099 * features/microblaze-with-stack-protect.xml: New file.
3100 * features/microblaze.xml: New file.
3101 * features/microblaze.c: New file.
3102 * features/Makefile (microblaze-with-stack-protect): Add
3103 microblaze-with-stack-protect microblaze and microblaze-expedite.
3104 * regformats/microblaze-with-stack-protect.dat: New file.
3105 * regformats/microblaze.dat: New file.
3106 * doc/gdb.texinfo (MicroBlaze Features): Added.
3107
3108 2014-07-18 Tom Tromey <tromey@redhat.com>
3109
3110 * exec.c (exec_ops): Now static.
3111 * exec.h (exec_ops): Don't declare.
3112
3113 2014-07-18 Tom Tromey <tromey@redhat.com>
3114
3115 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3116 to find_target_beneath.
3117 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3118 find_target_beneath.
3119 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3120
3121 2014-07-18 Tom Tromey <tromey@redhat.com>
3122
3123 PR gdb/17130:
3124 * utils.c (quit): Use target_supports_terminal_ours.
3125 * target.h (target_supports_terminal_ours): Declare.
3126 * target.c (target_supports_delete_record): Don't check
3127 to_delete_record against NULL.
3128 (target_supports_terminal_ours): New function.
3129
3130 2014-07-18 Tom Tromey <tromey@redhat.com>
3131
3132 PR gdb/17130:
3133 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3134 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3135 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3136 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3137 * windows-nat.c (windows_xfer_partial): Always delegate.
3138 * record-btrace.c (record_btrace_xfer_partial): Simplify
3139 delegation.
3140 (record_btrace_fetch_registers, record_btrace_store_registers)
3141 (record_btrace_prepare_to_store, record_btrace_resume)
3142 (record_btrace_wait, record_btrace_find_new_threads)
3143 (record_btrace_thread_alive): Likewise.
3144 * procfs.c (procfs_xfer_partial): Always delegate.
3145 * corelow.c (core_xfer_partial): Always delegate.
3146 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3147
3148 2014-07-18 Tom Tromey <tromey@redhat.com>
3149
3150 * exec.c (exec_make_note_section): Move earlier.
3151
3152 2014-07-17 Doug Evans <dje@google.com>
3153
3154 PR gdb/17170
3155 * maint.c (count_symtabs_and_blocks): Handle NULL
3156 current_program_space.
3157 (report_command_stats): Check global enabled flag in addition to
3158 recorded enabled flag.
3159 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3160
3161 2014-07-16 Pedro Alves <palves@redhat.com>
3162
3163 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3164
3165 2014-07-16 Tom Tromey <tromey@redhat.com>
3166
3167 * target.h (struct target_ops) <to_delete_record>: Reformat
3168 comment.
3169
3170 2014-07-16 Tom Tromey <tromey@redhat.com>
3171
3172 * target-delegates.c: Rebuild.
3173
3174 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3175
3176 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3177 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3178 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3179 (avr_pointer_to_address): Likewise.
3180 (avr_address_class_type_flags): New function.
3181 (avr_address_class_type_flags_to_name): Likewise.
3182 (avr_address_class_name_to_type_flags): Likewise.
3183 (avr_gdbarch_init): Set address_class_type_flags,
3184 address_class_type_flags_to_name and
3185 address_class_name_to_type_flags.
3186
3187 2014-07-15 Pedro Alves <palves@redhat.com>
3188
3189 * linux-nat.c (kill_callback): Save errno and work with saved
3190 copy.
3191
3192 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3193
3194 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3195
3196 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3197
3198 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3199 breakpoint support correctly.
3200
3201 2014-07-14 Pedro Alves <palves@redhat.com>
3202
3203 * utils.c (prompt_for_continue): Call target_terminal_ours.
3204
3205 2014-07-14 Pedro Alves <palves@redhat.com>
3206
3207 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3208 catch_errors. Don't re-enable stdin or notify observers where,
3209 and rethrow error.
3210 (fetch_inferior_event_wrapper): Delete.
3211
3212 2014-07-14 Pedro Alves <palves@redhat.com>
3213
3214 PR gdb/17072
3215 * top.c: Include "inf-loop.h".
3216 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3217 field.
3218 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3219 was async before.
3220 (gdb_readline_wrapper): Store whether the target is async, and
3221 make it sync.
3222
3223 2014-07-14 Pedro Alves <palves@redhat.com>
3224
3225 PR gdb/17072
3226 * top.c (gdb_readline_wrapper_line): Tweak comment.
3227 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3228 the input handler callback.
3229
3230 2014-07-14 Pedro Alves <palves@redhat.com>
3231
3232 PR gdb/17072
3233 * main.c: Include event-top.h.
3234 (handle_command_errors): New function.
3235 (catch_command_errors, catch_command_errors_const): Use it.
3236
3237 2014-07-14 Pedro Alves <palves@redhat.com>
3238
3239 * exceptions.c (catch_command_errors, catch_command_errors_const):
3240 Moved to main.c.
3241 * exceptions.h (catch_command_errors_ftype)
3242 (catch_command_errors_const_ftype): Moved to main.c.
3243 (catch_command_errors, catch_command_errors_const): Delete
3244 declarations.
3245 * main.c (catch_command_errors_ftype)
3246 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3247 (catch_command_errors, catch_command_errors_const)): Moved here
3248 from exceptions.c and make static.
3249
3250 2014-07-14 Pedro Alves <palves@redhat.com>
3251
3252 * exceptions.c (print_any_exception): Delete.
3253 (catch_exceptions_with_msg): Use exception_print instead of
3254 print_any_exception.
3255 (catch_errors): Use exception_fprintf instead of
3256 print_any_exception.
3257 (catch_command_errors, catch_command_errors_const): Use
3258 exception_print instead of print_any_exception.
3259
3260 2014-07-14 Pedro Alves <palves@redhat.com>
3261
3262 * infcall.c (run_inferior_call): Set 'sync_execution' while
3263 running the inferior call.
3264
3265 2014-07-14 Pedro Alves <palves@redhat.com>
3266
3267 * value.c (value_contents_equal): Delete function.
3268 * value.h (value_contents_equal): Delete declaration.
3269
3270 2014-07-14 Tom Tromey <tromey@redhat.com>
3271
3272 PR exp/17106:
3273 * gdbtypes.c (is_dynamic_type_internal): New function, from
3274 is_dynamic_type.
3275 (is_dynamic_type): Rewrite.
3276 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3277 (resolve_dynamic_struct): Likewise.
3278 (resolve_dynamic_type_internal): New function, from
3279 resolve_dynamic_type.
3280 (resolve_dynamic_type): Rewrite.
3281
3282 2014-07-14 Tom Tromey <tromey@redhat.com>
3283
3284 * target.c (target_require_runnable): Also check record_stratum.
3285 Update comment.
3286
3287 2014-07-11 Yao Qi <yao@codesourcery.com>
3288
3289 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3290 thumb_instruction_restores_sp return true.
3291
3292 2014-07-11 Yao Qi <yao@codesourcery.com>
3293
3294 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3295 (thumb_in_function_epilogue_p): Call
3296 thumb_instruction_restores_sp.
3297
3298 2014-07-11 Yao Qi <yao@codesourcery.com>
3299
3300 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3301 'add sp, #imm'.
3302 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3303
3304 2014-07-11 Gary Benson <gbenson@redhat.com>
3305
3306 * amd64-linux-nat.c (gdbcore.h): Remove include.
3307 (regset.h): Likewise.
3308 (nat/linux-btrace.h): Likewise.
3309 (btrace.h): Likewise.
3310 (gdb_assert.h): Likewise.
3311 (string.h): Likewise.
3312 (sys/uio.h): Likewise.
3313 (sys/debugreg.h): Likewise.
3314 (sys/syscall.h): Likewise.
3315 (sys/procfs.h): Likewise.
3316 (sys/user.h): Likewise.
3317 (asm/ptrace.h): Likewise.
3318 (i386-nat.h): Likewise.
3319 * i386-linux-nat.c (i386-nat.h): Likewise.
3320 (regset.h): Likewise.
3321 (target.h): Likewise.
3322 (linux-nat.h): Likewise.
3323 (nat/linux-btrace.h): Likewise.
3324 (btrace.h): Likewise.
3325 (gdb_assert.h): Likewise.
3326 (string.h): Likewise.
3327 (sys/uio.h): Likewise.
3328 (sys/user.h): Likewise.
3329 (sys/procfs.h): Likewise.
3330 (sys/reg.h): Likewise.
3331 (sys/debugreg.h): Likewise.
3332 (ORIG_EAX): Remove definition.
3333
3334 2014-07-11 Gary Benson <gbenson@redhat.com>
3335
3336 * i386-linux-nat.h: New file.
3337 * x86-linux-nat.h: Likewise.
3338 * x86-linux-nat.c: Likewise.
3339 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3340 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3341 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3342 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3343 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3344 (PTRACE_SETREGSET): Likewise.
3345 (arch_lwp_info): Now in x86-linux-nat.c.
3346 (have_ptrace_getregset): Now in x86-linux-nat.h.
3347 (x86_linux_dr_get): Now in x86-linux-nat.c.
3348 (x86_linux_dr_set): Likewise.
3349 (x86_linux_dr_get_addr): Likewise.
3350 (x86_linux_dr_get_control): Likewise.
3351 (x86_linux_dr_get_status): Likewise.
3352 (update_debug_registers_callback): Likewise.
3353 (x86_linux_dr_set_control): Likewise.
3354 (x86_linux_dr_set_addr): Likewise.
3355 (x86_linux_prepare_to_resume): Likewise.
3356 (x86_linux_new_thread): Likewise.
3357 (x86_linux_new_fork): Likewise.
3358 (x86_linux_get_thread_area): Likewise.
3359 (super_post_startup_inferior): Likewise.
3360 (x86_linux_child_post_startup_inferior): Likewise.
3361 (AMD64_LINUX_USER64_CS): Likewise.
3362 (AMD64_LINUX_X32_DS): Likewise.
3363 (x86_linux_read_description): Likewise.
3364 (x86_linux_enable_btrace): Likewise.
3365 (x86_linux_disable_btrace): Likewise.
3366 (x86_linux_teardown_btrace): Likewise.
3367 (x86_linux_read_btrace): Likewise.
3368 (x86_linux_create_target): Likewise.
3369 (x86_linux_add_target): Likewise.
3370 * i386-linux-nat.c (x86-linux-nat.h): New include.
3371 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3372 (PTRACE_SETREGSET): Likewise.
3373 (arch_lwp_info): Now in x86-linux-nat.c.
3374 (have_ptrace_getregset): Now in x86-linux-nat.h.
3375 (x86_linux_dr_get): Now in x86-linux-nat.c.
3376 (x86_linux_dr_set): Likewise.
3377 (x86_linux_dr_get_addr): Likewise.
3378 (x86_linux_dr_get_control): Likewise.
3379 (x86_linux_dr_get_status): Likewise.
3380 (update_debug_registers_callback): Likewise.
3381 (x86_linux_dr_set_control): Likewise.
3382 (x86_linux_dr_set_addr): Likewise.
3383 (x86_linux_prepare_to_resume): Likewise.
3384 (x86_linux_new_thread): Likewise.
3385 (x86_linux_new_fork): Likewise.
3386 (x86_linux_get_thread_area): Likewise.
3387 (super_post_startup_inferior): Likewise.
3388 (x86_linux_child_post_startup_inferior): Likewise.
3389 (AMD64_LINUX_USER64_CS): Likewise.
3390 (AMD64_LINUX_X32_DS): Likewise.
3391 (x86_linux_read_description): Likewise.
3392 (x86_linux_enable_btrace): Likewise.
3393 (x86_linux_disable_btrace): Likewise.
3394 (x86_linux_teardown_btrace): Likewise.
3395 (x86_linux_read_btrace): Likewise.
3396 (x86_linux_create_target): Likewise.
3397 (x86_linux_add_target): Likewise.
3398
3399 2014-07-11 Gary Benson <gbenson@redhat.com>
3400
3401 * amd64-linux-nat.c: Comment and whitespace changes.
3402 * i386-linux-nat.c: Comment and whitespace changes.
3403
3404 2014-07-11 Gary Benson <gbenson@redhat.com>
3405
3406 * amd64-linux-nat.c (x86_linux_create_target): New function.
3407 (x86_linux_add_target): Likewise.
3408 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3409 * i386-linux-nat.c (x86_linux_create_target): New function.
3410 (x86_linux_add_target): Likewise.
3411 (_initialize_i386_linux_nat): Delegate to the above new functions.
3412
3413 2014-07-11 Gary Benson <gbenson@redhat.com>
3414
3415 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3416 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3417 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3418 (ps_get_thread_area): Delegate to the above.
3419
3420 2014-07-11 Gary Benson <gbenson@redhat.com>
3421
3422 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3423 x86_linux_read_description. All uses updated. amd64-specific
3424 code conditionalized. Conditionalized i386-specific code added.
3425 Redundant cast removed.
3426 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3427 x86_linux_read_description. All uses updated. i386-specific
3428 code conditionalized. Conditionalized amd64-specific code added.
3429 One sizeof replaced with the actual type it is describing.
3430
3431 2014-07-11 Gary Benson <gbenson@redhat.com>
3432
3433 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3434 x86_linux_dr_get. All uses updated.
3435 (amd64_linux_dr_set): Renamed to
3436 x86_linux_dr_set. All uses updated.
3437 (amd64_linux_dr_get_addr): Renamed to
3438 x86_linux_dr_get_addr. All uses updated.
3439 (amd64_linux_dr_get_control): Renamed to
3440 x86_linux_dr_get_control. All uses updated.
3441 (amd64_linux_dr_get_status): Renamed to
3442 x86_linux_dr_get_status. All uses updated.
3443 (amd64_linux_dr_set_control): Renamed to
3444 x86_linux_dr_set_control. All uses updated.
3445 (amd64_linux_dr_set_addr): Renamed to
3446 x86_linux_dr_set_addr. All uses updated.
3447 (amd64_linux_prepare_to_resume): Renamed to
3448 x86_linux_prepare_to_resume. All uses updated.
3449 (amd64_linux_new_thread): Renamed to
3450 x86_linux_new_thread. All uses updated.
3451 (amd64_linux_new_fork): Renamed to
3452 x86_linux_new_fork. All uses updated.
3453 (amd64_linux_child_post_startup_inferior): Renamed to
3454 x86_linux_child_post_startup_inferior. All uses updated.
3455 (amd64_linux_enable_btrace): Renamed to
3456 x86_linux_enable_btrace. All uses updated.
3457 (amd64_linux_disable_btrace): Renamed to
3458 x86_linux_disable_btrace. All uses updated.
3459 (amd64_linux_teardown_btrace): Renamed to
3460 x86_linux_teardown_btrace. All uses updated.
3461 (amd64_linux_read_btrace): Renamed to
3462 x86_linux_read_btrace. All uses updated.
3463 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3464 x86_linux_dr_get. All uses updated.
3465 (i386_linux_dr_set): Renamed to
3466 x86_linux_dr_set. All uses updated.
3467 (i386_linux_dr_get_addr): Renamed to
3468 x86_linux_dr_get_addr. All uses updated.
3469 (i386_linux_dr_get_control): Renamed to
3470 x86_linux_dr_get_control. All uses updated.
3471 (i386_linux_dr_get_status): Renamed to
3472 x86_linux_dr_get_status. All uses updated.
3473 (i386_linux_dr_set_control): Renamed to
3474 x86_linux_dr_set_control. All uses updated.
3475 (i386_linux_dr_set_addr): Renamed to
3476 x86_linux_dr_set_addr. All uses updated.
3477 (i386_linux_prepare_to_resume): Renamed to
3478 x86_linux_prepare_to_resume. All uses updated.
3479 (i386_linux_new_thread): Renamed to
3480 x86_linux_new_thread. All uses updated.
3481 (i386_linux_new_fork): Renamed to
3482 x86_linux_new_fork. All uses updated.
3483 (i386_linux_child_post_startup_inferior): Renamed to
3484 x86_linux_child_post_startup_inferior. All uses updated.
3485 (i386_linux_enable_btrace): Renamed to
3486 x86_linux_enable_btrace. All uses updated.
3487 (i386_linux_disable_btrace): Renamed to
3488 x86_linux_disable_btrace. All uses updated.
3489 (i386_linux_teardown_btrace): Renamed to
3490 x86_linux_teardown_btrace. All uses updated.
3491 (i386_linux_read_btrace): Renamed to
3492 x86_linux_read_btrace. All uses updated.
3493
3494 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3495
3496 * remote.c (extended_remote_post_attach): New function.
3497 (init_extended_remote_ops): Install it as to_post_attach method.
3498
3499 2014-07-09 Pedro Alves <palves@redhat.com>
3500
3501 * infcmd.c (attach_command_post_wait): Don't call
3502 target_terminal_inferior here.
3503 (attach_command): Call it here instead.
3504
3505 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3506
3507 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3508 field.
3509 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3510 from varobj.c, with additional checks.
3511 (c_varobj_ops): Fill in is_path_expr_parent field.
3512 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3513 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3514 field.
3515 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3516 ops method.
3517 (varobj_default_is_path_expr_parent): New function.
3518 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3519 (varobj_default_is_path_expr_parent): Declare new function.
3520
3521 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3522
3523 * infcmd.c (finish_backward): Turn internal error into normal error.
3524
3525 2014-07-07 Pedro Alves <palves@redhat.com>
3526
3527 PR gdb/17096
3528 * remote.c (async_handle_remote_sigint)
3529 (async_handle_remote_sigint_twice): Call
3530 gdb_call_async_signal_handler instead of
3531 mark_async_signal_handler.
3532
3533 2014-07-07 Tom Tromey <tromey@redhat.com>
3534
3535 * target-delegates.c: Rebuild.
3536 * target.c (target_info_record): Remove.
3537 * record.c (info_record_command): Unconditionally call
3538 to_info_record.
3539 * target.h (struct target_ops) <to_info_record>: Use
3540 TARGET_DEFAULT_IGNORE.
3541 (target_info_record): Remove.
3542
3543 2014-07-07 Tom Tromey <tromey@redhat.com>
3544
3545 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3546 TARGET_DEFAULT_NORETURN.
3547 * target.c (generic_tls_error): New function.
3548 (target_translate_tls_address): Don't search target stack.
3549 * target-delegates.c: Rebuild.
3550 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3551 stack.
3552 * linux-thread-db.c (thread_db_get_thread_local_address):
3553 Unconditionally call beneath target.
3554
3555 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3556
3557 * cli/cli-logging.c (pop_output_files): Assign targerr to
3558 gdb_stdtargerr.
3559
3560 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3561
3562 * MAINTAINERS (Write After Approval): Update my email address.
3563
3564 2014-07-02 Gary Benson <gbenson@redhat.com>
3565
3566 * proc-service.c (ps_xfer_memory): Update comment.
3567 (ps_pstop): Remove unused function.
3568 (ps_pcontinue): Likewise.
3569 (ps_lstop): Likewise.
3570 (ps_lcontinue): Likewise.
3571 (ps_lgetxregsize): Likewise.
3572 (ps_lgetxregs): Likewise.
3573 (ps_lsetxregs): Likewise.
3574 (ps_plog): Likewise.
3575 (ps_ptread): Likewise.
3576 (ps_ptwrite): Likewise.
3577
3578 2014-07-01 Mark Wielaard <mjw@redhat.com>
3579
3580 * dwarf2read.c (add_array_cv_type): New function.
3581 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3582 (read_tag_volatile_type): Likewise.
3583
3584 2014-07-01 Tom Tromey <tromey@redhat.com>
3585
3586 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3587 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3588 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3589 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3590 * command.h (cmd_cfunc_ftype): Move earlier.
3591 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3592 (add_com, add_info): Use cmd_cfunc_ftype.
3593
3594 2014-06-30 Tom Tromey <tromey@redhat.com>
3595
3596 * symtab.c (operator_chars): Make parameters and return type
3597 const.
3598 (file_matches): Make "files" const.
3599 (struct search_symbols_data) <files>: Now const.
3600 (search_symbols): Make "regexp" and "files" parameters const.
3601 Update.
3602 (symtab_symbol_info): Remove cast.
3603 (rbreak_command): Update.
3604 * symtab.h (search_symbols): Update.
3605
3606 2014-06-27 Yao Qi <yao@codesourcery.com>
3607
3608 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3609 Change parameter type to 'struct thread_info *'. Caller
3610 updated.
3611 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3612 Update declaration.
3613 * dummy-frame.c (struct dummy_frame_id): New.
3614 (dummy_frame_id_eq): New function.
3615 (struct dummy_frame) <id>: Change its type to 'struct
3616 dummy_frame_id'.
3617 (dummy_frame_push): Add parameter ptid and save it in
3618 dummy_frame_id.
3619 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3620 inferior_ptid.
3621 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3622 to inferior_ptid.
3623 (lookup_dummy_frame): Change parameter type to 'struct
3624 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3625 instead of frame_id_eq.
3626 (dummy_frame_pop): Add parameter ptid. Callers updated.
3627 Update comments. Compose dummy_frame_id and pass it to
3628 lookup_dummy_frame.
3629 (dummy_frame_discard): Add parameter ptid.
3630 (dummy_frame_sniffer): Compose dummy_frame_id and call
3631 dummy_frame_id_eq instead of frame_id_eq.
3632 (fprint_dummy_frames): Print ptid.
3633 * dummy-frame.h: Remove comments.
3634 (dummy_frame_push): Add ptid in declaration.
3635 (dummy_frame_pop, dummy_frame_discard): Likewise.
3636
3637 2014-06-26 Tom Tromey <tromey@redhat.com>
3638
3639 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3640 * command.h (error_no_arg): Update.
3641
3642 2014-06-26 Tom Tromey <tromey@redhat.com>
3643
3644 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3645 (do_show_command): Make "arg" const.
3646 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3647
3648 2014-06-26 Tom Tromey <tromey@redhat.com>
3649
3650 * record-full.c (record_full_get_bookmark): Make "args" const.
3651 (record_full_goto_bookmark): Make "raw_bookmark" const.
3652 * record.c (record_goto): New function.
3653 (cmd_record_goto): Use it. Now static.
3654 * record.h (record_goto): Declare.
3655 (cmd_record_goto): Remove declaration.
3656 * target-delegates.c: Rebuild.
3657 * target.h (struct target_ops) <to_get_bookmark,
3658 to_goto_bookmark>: Make parameter const.
3659
3660 2014-06-26 Tom Tromey <tromey@redhat.com>
3661
3662 * defs.h (generic_load): Update.
3663 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3664 * monitor.c (monitor_load): Make "args" const.
3665 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3666 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3667 const.
3668 (mips_load): Make "file" const.
3669 * remote-sim.c (gdbsim_load): Make "args" const.
3670 * remote.c (remote_load): Make "name" const.
3671 * symfile.c (generic_load): Make "args" const.
3672 * target-delegates.c: Rebuild.
3673 * target.c (target_load): Make "arg" const.
3674 (debug_to_load): Make "args" const.
3675 * target.h (struct target_ops) <to_load>: Make parameter const.
3676 (target_load): Update.
3677
3678 2014-06-26 Tom Tromey <tromey@redhat.com>
3679
3680 PR symtab/16902:
3681 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3682 (dwarf2_physname, read_partial_die)
3683 (guess_partial_die_structure_name, fixup_partial_die)
3684 (guess_full_die_structure_name, anonymous_struct_prefix)
3685 (dwarf2_name): Use per-BFD obstack.
3686
3687 2014-06-26 Yao Qi <yao@codesourcery.com>
3688
3689 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3690 dummyframe and this_id into inner block below.
3691
3692 2014-06-26 Yao Qi <yao@codesourcery.com>
3693
3694 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3695 with "signal_pass[0]" in the initialization of signal_pass.
3696
3697 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3698
3699 * record-btrace.c (record_btrace_generating_corefile)
3700 (record_btrace_prepare_to_generate_core)
3701 (record_btrace_done_generating_core): New.
3702 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3703 (record_btrace_store_registers, record_btrace_prepare_to_store):
3704 Forward request when generating a core file.
3705 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3706 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3707 to_done_generating_core.
3708
3709 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3710
3711 * target.h (target_ops) <to_prepare_to_generate_core>
3712 <to_done_generating_core>: New.
3713 (target_prepare_to_generate_core, target_done_generating_core): New.
3714 * target.c (target_prepare_to_generate_core)
3715 (target_done_generating_core): New.
3716 * target-delegates.c: Regenerate.
3717 * gcore.c: (write_gcore_file): Rename to ...
3718 (write_gcore_file_1): ...this.
3719 (write_gcore_file): Call target_prepare_to_generate_core
3720 and target_done_generating_core.
3721
3722 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3723
3724 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3725 * gcore.c (write_gcore_file): Free memory returned from
3726 make_corefile_notes.
3727 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3728 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3729
3730 2014-06-24 Yao Qi <yao@codesourcery.com>
3731
3732 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3733 (arm_linux_init_abi): Set skip_trampoline_code with
3734 gdbarch_skip_trampoline_code instead of
3735 find_solib_trampoline_target.
3736
3737 2014-06-24 Yao Qi <yao@codesourcery.com>
3738
3739 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3740 arm_skip_bx_reg returns non-zero.
3741
3742 2014-06-24 Yao Qi <yao@codesourcery.com>
3743
3744 * arm-tdep.c (arm_skip_bx_reg): New function.
3745 (arm_skip_stub): Call arm_skip_bx_reg.
3746
3747 2014-06-23 Don Breazeal <donb@codesourcery.com>
3748
3749 * MAINTAINERS: Add myself as write-after-approval maintainer.
3750
3751 2014-06-23 Pedro Alves <palves@redhat.com>
3752
3753 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3754 DR_CONTROL before setting DR0..DR3.
3755 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3756 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3757 bits of DR_CONTROL related to the debug register slot being
3758 disabled. If all slots are vacant, clear local slowdown as well,
3759 and assert DR_CONTROL is 0.
3760
3761 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3762
3763 * python/lib/gdb/command/xmethods.py
3764 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3765 current progspace only if the string "progspace" matches LOCUS_RE.
3766
3767 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3768
3769 Fix --with-system-readline with readline-6.3 patch 5.
3770 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3771 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3772 types.
3773
3774 2014-06-20 Tom Tromey <tromey@redhat.com>
3775
3776 * dwarf2read.c (dw2_get_real_path): Use correct type in
3777 OBSTACK_CALLOC.
3778 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3779
3780 2014-06-20 Gary Benson <gbenson@redhat.com>
3781
3782 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3783 * common/glibc_thread_db.h: Likewise.
3784 * common/i386-cpuid.h: Likewise.
3785 * common/i386-gcc-cpuid.h: Likewise.
3786 * common/linux-btrace.h: Likewise.
3787 * common/linux-osdata.h: Likewise.
3788 * common/linux-procfs.h: Likewise.
3789 * common/linux-ptrace.h: Likewise.
3790 * common/mips-linux-watch.h: Likewise.
3791 * common/linux-btrace.c: Moved to nat.
3792 * common/linux-osdata.c: Likewise.
3793 * common/linux-procfs.c: Likewise.
3794 * common/linux-ptrace.c: Likewise.
3795 * common/mips-linux-watch.c: Likewise.
3796 * nat/gdb_thread_db.h: Moved from common.
3797 * nat/glibc_thread_db.h: Likewise.
3798 * nat/i386-cpuid.h: Likewise.
3799 * nat/i386-gcc-cpuid.h: Likewise.
3800 * nat/linux-btrace.c: Likewise.
3801 * nat/linux-btrace.h: Likewise.
3802 * nat/linux-osdata.c: Likewise.
3803 * nat/linux-osdata.h: Likewise.
3804 * nat/linux-procfs.c: Likewise.
3805 * nat/linux-procfs.h: Likewise.
3806 * nat/linux-ptrace.c: Likewise.
3807 * nat/linux-ptrace.h: Likewise.
3808 * nat/mips-linux-watch.c: Likewise.
3809 * nat/mips-linux-watch.h: Likewise.
3810 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3811 (object file files): Reordered.
3812 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3813 of glibc_thread_db.h.
3814
3815 2014-06-20 Gary Benson <gbenson@redhat.com>
3816
3817 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3818 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3819 (i386_dr_low): Likewise.
3820 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3821 (i386_dr_low_set_addr): Likewise.
3822 (i386_dr_low_get_addr): Likewise.
3823 (i386_dr_low_can_set_control): Likewise.
3824 (i386_dr_low_set_control): Likewise.
3825 (i386_dr_low_get_control): Likewise.
3826 (i386_dr_low_get_status): Likewise.
3827 (i386_get_debug_register_length): Likewise.
3828 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3829 (i386_dr_low): Likewise.
3830 * nat/i386-dregs.c (i386-low.h): Remove include.
3831 (i386-nat.h): Likewise.
3832 (nat/i386-dregs.h): New include.
3833 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3834 (i386_dr_low_set_addr): Likewise.
3835 (i386_dr_low_get_addr): Likewise.
3836 (i386_dr_low_can_set_control): Likewise.
3837 (i386_dr_low_set_control): Likewise.
3838 (i386_dr_low_get_control): Likewise.
3839 (i386_dr_low_get_status): Likewise.
3840 (i386_get_debug_register_length): Likewise.
3841 (debug_hw_points): Likewise.
3842
3843 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3844
3845 * Makefile.in (SFILES): Add d-exp.y.
3846 (YYFILES): Add d-exp.c.
3847 (YYOBJ): Add d-exp.o.
3848 (local-maintainer-clean): Delete d-exp.c.
3849 * d-exp.y: New file.
3850 * d-lang.h (d_parse): New declaration.
3851 (d_error): New declaration.
3852 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3853 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3854 PREC_ORDER operators.
3855 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3856
3857 2014-06-19 Yao Qi <yao@codesourcery.com>
3858
3859 * gdbthread.h (any_running): Remove the declaration.
3860 * thread.c (any_running): Remove.
3861
3862 2014-06-19 Yao Qi <yao@codesourcery.com>
3863
3864 * gdbthread.h (struct thread_info) <state>: Change its type to
3865 'enum thread_state'. Update comments.
3866
3867 2014-06-19 Pedro Alves <palves@redhat.com>
3868
3869 * gdbthread.h (ALL_THREADS): Delete.
3870 (ALL_NON_EXITED_THREADS): New macro.
3871 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3872 instead of ALL_THREADS.
3873 * infrun.c (find_thread_needs_step_over)
3874 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3875 instead of ALL_THREADS.
3876 * record-btrace.c (record_btrace_open)
3877 (record_btrace_stop_recording, record_btrace_close)
3878 (record_btrace_is_replaying, record_btrace_resume)
3879 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3880 * remote.c (append_pending_thread_resumptions): Likewise.
3881 * thread.c (thread_apply_all_command): Likewise.
3882
3883 2014-06-19 Gary Benson <gbenson@redhat.com>
3884
3885 * i386-nat.c (i386_stopped_by_watchpoint):
3886 Use i386_dr_stopped_by_watchpoint.
3887 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3888 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3889
3890 2014-06-19 Gary Benson <gbenson@redhat.com>
3891
3892 * nat/i386-dregs.c: New file.
3893 * Makefile.in (i386-dregs.o): New rule.
3894 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3895 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3896 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3897 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3898 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3899 * config/i386/go32.mh (NATDEPFILES): Likewise.
3900 * config/i386/linux.mh (NATDEPFILES): Likewise.
3901 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3902 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3903 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3904 * i386-nat.h (debug_hw_points): New declaration.
3905 * i386-nat.c (breakpoint.h): Remove include.
3906 (command.h): Likewise.
3907 (target.h): Likewise.
3908 (gdb_assert.h): Likewise.
3909 (debug_hw_points): Made nonstatic.
3910 (debug_printf): Now in i386-dregs.c.
3911 (TARGET_HAS_DR_LEN_8): Likewise.
3912 (DR_CONTROL_SHIFT): Likewise.
3913 (DR_CONTROL_SIZE): Likewise.
3914 (DR_RW_EXECUTE): Likewise.
3915 (DR_RW_WRITE): Likewise.
3916 (DR_RW_READ): Likewise.
3917 (DR_RW_IORW): Likewise.
3918 (DR_LEN_1): Likewise.
3919 (DR_LEN_2): Likewise.
3920 (DR_LEN_4): Likewise.
3921 (DR_LEN_8): Likewise.
3922 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3923 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3924 (DR_ENABLE_SIZE): Likewise.
3925 (DR_LOCAL_SLOWDOWN): Likewise.
3926 (DR_GLOBAL_SLOWDOWN): Likewise.
3927 (DR_CONTROL_RESERVED): Likewise.
3928 (I386_DR_CONTROL_MASK): Likewise.
3929 (I386_DR_VACANT): Likewise.
3930 (I386_DR_LOCAL_ENABLE): Likewise.
3931 (I386_DR_GLOBAL_ENABLE): Likewise.
3932 (I386_DR_DISABLE): Likewise.
3933 (I386_DR_SET_RW_LEN): Likewise.
3934 (I386_DR_GET_RW_LEN): Likewise.
3935 (I386_DR_WATCH_HIT): Likewise.
3936 (i386_wp_op_t): Likewise.
3937 (i386_show_dr): Likewise.
3938 (i386_length_and_rw_bits): Likewise.
3939 (i386_insert_aligned_watchpoint): Likewise.
3940 (i386_remove_aligned_watchpoint): Likewise.
3941 (i386_handle_nonaligned_watchpoint): Likewise.
3942 (i386_update_inferior_debug_regs): Likewise.
3943 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3944 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3945 (i386_region_ok_for_watchpoint):
3946 Use i386_dr_region_ok_for_watchpoint.
3947 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3948
3949 2014-06-19 Gary Benson <gbenson@redhat.com>
3950
3951 * i386-nat.c (i386_insert_hw_breakpoint): Use
3952 i386_insert_watchpoint.
3953 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3954
3955 2014-06-19 Gary Benson <gbenson@redhat.com>
3956
3957 * i386-nat.c (i386_dr_show): Renamed to
3958 i386_show_dr and made static. All uses updated.
3959 (i386_dr_length_and_rw_bits): Renamed to
3960 i386_length_and_rw_bits and made static.
3961 All uses updated.
3962 (i386_dr_insert_aligned_watchpoint): Renamed to
3963 i386_insert_aligned_watchpoint and made static.
3964 All uses updated.
3965 (i386_dr_remove_aligned_watchpoint): Renamed to
3966 i386_remove_aligned_watchpoint and made static.
3967 All uses updated.
3968 (i386_dr_update_inferior_debug_regs): Renamed to
3969 i386_update_inferior_debug_regs and made static.
3970 All uses updated.
3971 * nat/i386-dregs.h (i386_dr_show): Removed.
3972 (i386_dr_length_and_rw_bits): Likewise.
3973 (i386_dr_insert_aligned_watchpoint): Likewise.
3974 (i386_dr_remove_aligned_watchpoint): Likewise.
3975 (i386_dr_update_inferior_debug_regs): Likewise.
3976
3977 2014-06-19 Gary Benson <gbenson@redhat.com>
3978
3979 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3980 * configure: Regenerate.
3981 * config.in: Likewise.
3982 * main.c (signal.h): New include.
3983 (setup_alternate_signal_stack): New function.
3984 (captured_main): Call the above.
3985 * cp-support.c (signal.h): New include.
3986 (catch_demangler_crashes): New flag.
3987 (SIGJMP_BUF): New define.
3988 (SIGSETJMP): Likewise.
3989 (SIGLONGJMP): Likewise.
3990 (gdb_demangle_jmp_buf): New static global.
3991 (gdb_demangle_attempt_core_dump): Likewise.
3992 (gdb_demangle_signal_handler): New function.
3993 (gdb_demangle): If catch_demangler_crashes is set, install the
3994 above signal handler before calling bfd_demangle, and restore
3995 the original signal handler afterwards. Display the offending
3996 symbol and call demangler_warning the first time a segmentation
3997 fault is caught.
3998 (_initialize_cp_support): New maint set/show command.
3999
4000 2014-06-19 Gary Benson <gbenson@redhat.com>
4001
4002 * utils.h (resource_limit_kind): New enum.
4003 (can_dump_core): New declaration.
4004 (warn_cant_dump_core): Likewise.
4005 (dump_core): Likewise.
4006 * utils.c (dump_core): Made nonstatic. Added new
4007 parameter "limit_kind".
4008 (can_dump_core): Made nonstatic. Moved printing code to...
4009 (warn_cant_dump_core): New function.
4010 (can_dump_core_warn): Likewise.
4011 (internal_vproblem): Replace calls to can_dump_core with
4012 calls to can_dump_core_warn. Supply new argument to each.
4013
4014 2014-06-19 Gary Benson <gbenson@redhat.com>
4015
4016 * utils.h (demangler_vwarning): New declaration.
4017 (demangler_warning): Likewise.
4018 * utils.c (struct internal_problem)
4019 <user_settable_should_quit>: New field.
4020 <user_settable_should_dump_core>: Likewise
4021 (internal_error_problem): Add values for above new fields.
4022 (internal_warning_problem): Likewise.
4023 (demangler_warning_problem): New static global.
4024 (demangler_vwarning): New function.
4025 (demangler_warning): Likewise.
4026 (add_internal_problem_command): Selectively add commands.
4027 (_initialize_utils): New internal problem command.
4028 * maint.c (maintenance_demangler_warning): New function.
4029 (_initialize_maint_cmds): New command.
4030
4031 2014-06-18 Tom Tromey <tromey@redhat.com>
4032
4033 * f-valprint.c (info_common_command_for_block): Update.
4034 * symtab.h (struct general_symbol_info) <common_block>: Now
4035 const.
4036
4037 2014-06-18 Tom Tromey <tromey@redhat.com>
4038
4039 * symtab.h (struct symtab) <blockvector>: Now const.
4040 * ada-lang.c (ada_add_global_exceptions): Update.
4041 * buildsym.c (augment_type_symtab): Update.
4042 * dwarf2read.c (dw2_lookup_symbol): Update.
4043 * jit.c (finalize_symtab): Update.
4044 * jv-lang.c (add_class_symtab_symbol): Update.
4045 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4046 Update.
4047 * objfiles.c (objfile_relocate1): Update.
4048 * psymtab.c (lookup_symbol_aux_psymtabs)
4049 (maintenance_check_psymtabs): Update.
4050 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4051 Update.
4052 * spu-tdep.c (spu_catch_start): Update.
4053 * symmisc.c (dump_symtab_1): Update.
4054 * symtab.c (lookup_global_symbol_from_objfile)
4055 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4056 (basic_lookup_transparent_type_quick)
4057 (basic_lookup_transparent_type, find_pc_sect_symtab)
4058 (find_pc_sect_line, search_symbols): Update.
4059 * block.c (find_block_in_blockvector): Make "bl" const.
4060 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4061 const.
4062 (blockvector_contains_pc): Make "bv" const.
4063 (block_for_pc_sect): Update.
4064 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4065 (blockvector_contains_pc): Update.
4066 * breakpoint.c (resolve_sal_pc): Update.
4067 * inline-frame.c (block_starting_point_at): Update.
4068
4069 2014-06-18 Tom Tromey <tromey@redhat.com>
4070
4071 * completer.c (complete_line): Make "line_buffer" const.
4072 * completer.h (complete_line): Update.
4073
4074 2014-06-18 Tom Tromey <tromey@redhat.com>
4075
4076 * symtab.c (add_macro_name): Remove unneeded cast.
4077
4078 2014-06-18 Tom Tromey <tromey@redhat.com>
4079
4080 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4081 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4082
4083 2014-06-18 Tom Tromey <tromey@redhat.com>
4084
4085 * probe.c (info_probes_for_ops): Make "arg" const.
4086 * probe.h (info_probes_for_ops): Update.
4087
4088 2014-06-18 Tom Tromey <tromey@redhat.com>
4089
4090 * varobj.c (varobj_create): Update.
4091 * valops.c (value_of_this): Update.
4092 * tracepoint.c (add_local_symbols, scope_info): Update.
4093 * symtab.h (struct general_symbol_info) <block>: Now const.
4094 * symtab.c (skip_prologue_sal)
4095 (default_make_symbol_completion_list_break_on)
4096 (skip_prologue_using_sal): Update.
4097 * stack.h (iterate_over_block_locals)
4098 (iterate_over_block_local_vars): Update.
4099 * stack.c (print_frame_args): Update.
4100 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4101 parameter const.
4102 (get_selected_block): Make return type const.
4103 * python/py-frame.c (frapy_block): Update.
4104 * python/py-block.c (gdbpy_block_for_pc): Update.
4105 * p-exp.y (%union) <bval>: Now const.
4106 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4107 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4108 * m2-exp.y (%union) <bval>: Now const.
4109 * linespec.c (get_current_search_block): Make return type const.
4110 (create_sals_line_offset, find_label_symbols): Update.
4111 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4112 Update.
4113 (block_starting_point_at): Make "block" const.
4114 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4115 (check_exception_resume): Update.
4116 * guile/scm-frame.c (gdbscm_frame_block): Update.
4117 * guile/scm-block.c (gdbscm_lookup_block): Update.
4118 * frame.h (get_frame_block): Update.
4119 (get_selected_block): Make return type const.
4120 * frame.c (frame_id_inner): Update.
4121 * f-valprint.c (info_common_command_for_block)
4122 (info_common_command): Update.
4123 * dwarf2loc.c (dwarf2_find_location_expression)
4124 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4125 (locexpr_describe_location_piece): Update.
4126 * c-exp.y (%union) <bval>: Now const.
4127 * breakpoint.c (resolve_sal_pc): Update.
4128 * blockframe.c (get_frame_block):Make return type const.
4129 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4130 (block_innermost_frame): Update.
4131 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4132 (block_for_pc, block_for_pc_sect): Update.
4133 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4134 'pblock' const.
4135 (block_for_pc_sect, block_for_pc): Make return type const.
4136 * ax-gdb.c (gen_expr): Update.
4137 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4138 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4139 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4140 (ada_read_var_value): Update.
4141 * ada-exp.y (struct name_info) <block>: Now const.
4142 (%union): Likewise.
4143 (block_lookup): Constify.
4144
4145 2014-06-18 Gary Benson <gbenson@redhat.com>
4146
4147 * nat/i386-dregs.h: New file.
4148 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4149 * i386-nat.h (i386-dregs.h): New include.
4150 (DR_FIRSTADDR): Now in i386-dregs.h.
4151 (DR_LASTADDR): Likewise.
4152 (DR_NADDR): Likewise.
4153 (DR_STATUS): Likewise.
4154 (DR_CONTROL): Likewise.
4155 (i386_debug_reg_state): Likewise.
4156 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4157
4158 2014-06-18 Don Breazeal <donb@codesourcery.com>
4159
4160 * breakpoint.c (set_longjmp_breakpoint): Call
4161 momentary_breakpoint_from_master with additional argument.
4162 (set_longjmp_breakpoint_for_call_dummy): Call
4163 momentary_breakpoint_from_master with additional argument.
4164 (set_std_terminate_breakpoint): Call
4165 momentary_breakpoint_from_master with additional argument.
4166 (momentary_breakpoint_from_master): Add argument to function
4167 definition and use it to initialize structure member flag.
4168 (clone_momentary_breakpoint): Call
4169 momentary_breakpoint_from_master with additional argument.
4170 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4171 member flags set in momentary_breakpoint_from_master.
4172
4173 2014-06-18 Gary Benson <gbenson@redhat.com>
4174
4175 * i386-nat.c (i386_show_dr): Renamed to
4176 i386_dr_show and made nonstatic. All uses updated.
4177 (i386_length_and_rw_bits): Renamed to
4178 i386_dr_length_and_rw_bits and made nonstatic.
4179 All uses updated.
4180 (i386_insert_aligned_watchpoint): Renamed to
4181 i386_dr_insert_aligned_watchpoint and made nonstatic.
4182 All uses updated.
4183 (i386_remove_aligned_watchpoint): Renamed to
4184 i386_dr_remove_aligned_watchpoint and made nonstatic.
4185 All uses updated.
4186 (i386_update_inferior_debug_regs): Renamed to
4187 i386_dr_update_inferior_debug_regs and made nonstatic.
4188 All uses updated.
4189
4190 2014-06-18 Gary Benson <gbenson@redhat.com>
4191
4192 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4193 (i386_dr_low_can_set_control): Likewise.
4194 (i386_dr_low_set_addr): Likewise.
4195 (i386_dr_low_set_control): Likewise.
4196 (i386_dr_low_get_addr): Likewise.
4197 (i386_dr_low_get_status): Likewise.
4198 (i386_dr_low_get_control): Likewise.
4199 (i386_insert_aligned_watchpoint): Use new macros.
4200 (i386_update_inferior_debug_regs): Likewise.
4201 (i386_stopped_data_address): Likewise.
4202
4203 2014-06-18 Gary Benson <gbenson@redhat.com>
4204
4205 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4206 New parameter. All uses updated.
4207
4208 2014-06-18 Gary Benson <gbenson@redhat.com>
4209
4210 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4211 All uses updated.
4212
4213 2014-06-18 Gary Benson <gbenson@redhat.com>
4214
4215 * i386-nat.c (debug_printf): New macro.
4216 (i386_get_debug_register_length): Likewise.
4217 (TARGET_HAS_DR_LEN_8): Use above macro.
4218 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4219 and printf_unfiltered. Use phex to format values.
4220
4221 2014-06-18 Gary Benson <gbenson@redhat.com>
4222
4223 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4224 Make const.
4225
4226 2014-06-18 Gary Benson <gbenson@redhat.com>
4227
4228 * i386-nat.c: Comment changes.
4229
4230 2014-06-18 Gary Benson <gbenson@redhat.com>
4231
4232 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4233
4234 2014-06-18 Gary Benson <gbenson@redhat.com>
4235
4236 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4237 (i386_insert_aligned_watchpoint): Likewise.
4238 (i386_remove_aligned_watchpoint): Likewise.
4239 (i386_handle_nonaligned_watchpoint): Likewise.
4240
4241 2014-06-18 Gary Benson <gbenson@redhat.com>
4242
4243 * i386-nat.c: Whitespace changes.
4244
4245 2014-06-17 Samuel Bronson <naesten@gmail.com>
4246
4247 * MAINTAINERS: Update Roland McGrath's email address.
4248 Thanks to Sergio Durigan Junior for pointing out that he left
4249 Red Hat a while ago, and giving me a current address.
4250
4251 2014-06-17 Tom Tromey <tromey@redhat.com>
4252
4253 * utils.h (savestring): Remove declaration.
4254
4255 2014-06-17 Tom Tromey <tromey@redhat.com>
4256
4257 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4258
4259 2014-06-16 Keith Seitz <keiths@redhat.com>
4260
4261 PR mi/15863
4262 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4263 to update the varobj if inferior_ptid is null_ptid.
4264
4265 2014-06-16 Tom Tromey <tromey@redhat.com>
4266
4267 * target.h (struct target_ops) <to_info_proc>: Make parameter
4268 const.
4269 (target_info_proc): Update.
4270 * target.c (target_info_proc): Make "args" const.
4271 * procfs.c (procfs_info_proc): Update.
4272 * linux-tdep.c (linux_info_proc): Update.
4273 (linux_core_info_proc_mappings): Make "args" const.
4274 (linux_core_info_proc): Update.
4275 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4276 * gdbarch.c: Rebuild.
4277 * gdbarch.h: Rebuild.
4278 * corelow.c (core_info_proc): Update.
4279
4280 2014-06-16 Tom Tromey <tromey@redhat.com>
4281
4282 * target.h (struct target_ops) <to_disconnect>: Make parameter
4283 const.
4284 (target_disconnect): Update.
4285 * target.c (target_disconnect): Make "args" const.
4286 * target-delegates.c: Rebuild.
4287 * remote.c (remote_disconnect): Update.
4288 * record.h (record_disconnect): Update.
4289 * record.c (record_disconnect): Update.
4290 * inf-child.c (inf_child_disconnect): Update.
4291
4292 2014-06-16 Tom Tromey <tromey@redhat.com>
4293
4294 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4295 * target.c (debug_to_rcmd, default_rcmd): Update.
4296 * target-delegates.c: Rebuild.
4297 * remote.c (remote_rcmd): Update.
4298 * monitor.c (monitor_rcmd): Update.
4299
4300 2014-06-16 Pedro Alves <palves@redhat.com>
4301
4302 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4303 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4304 have OBJF_SHARED set.
4305 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4306 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4307 instead of OBJF_USERLOADED.
4308 * objfiles.h (OBJF_SHARED): Update comment.
4309 (userloaded_objfile_contains_address_p): Rename to ...
4310 (shared_objfile_contains_address_p): ... this, and update
4311 comments.
4312 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4313 new objfile.
4314 (remove_symbol_file_command): Skip objfiles that don't have
4315 OBJF_SHARED set.
4316
4317 2014-06-16 Tom Tromey <tromey@redhat.com>
4318
4319 * minsyms.h (prim_record_minimal_symbol)
4320 (prim_record_minimal_symbol_and_info): Update comments.
4321
4322 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4323
4324 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4325 or --without-guile, according to how GDB was built.
4326
4327 2014-06-13 Tom Tromey <tromey@redhat.com>
4328
4329 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4330 to help_list.
4331 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4332 to help_list.
4333 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4334 help_list.
4335 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4336 help_list.Pass all_commands, not -1, to help_list.
4337 * cli/cli-dump.c (dump_command, append_command)
4338 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4339 (binary_dump_command, binary_append_command): Pass all_commands,
4340 not -1, to help_list.
4341 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4342 -1, to help_list.
4343 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4344 -1, to help_list.
4345 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4346 help_list.
4347 * top.c (set_history): Pass all_commands, not -1, to help_list.
4348 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4349 all_commands, not -1, to help_list.
4350 * symfile.c (overlay_command): Pass all_commands, not -1, to
4351 help_list.
4352 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4353 help_list.
4354 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4355 help_list.
4356 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4357 -1, to help_list.
4358 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4359 not -1, to help_list.
4360 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4361 not -1, to help_list.
4362 * maint.c (maintenance_command, maintenance_info_command)
4363 (maintenance_print_command, maintenance_set_cmd): Pass
4364 all_commands, not -1, to help_list.
4365 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4366 help_list.
4367 * language.c (set_check): Pass all_commands, not -1, to help_list.
4368 * infcmd.c (unset_command): Pass all_commands, not -1, to
4369 help_list.
4370 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4371 help_list.
4372 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4373 help_list.
4374 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4375 help_list.
4376 * breakpoint.c (save_command): Pass all_commands, not -1, to
4377 help_list.
4378 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4379 all_commands, not -1, to help_list.
4380
4381 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4382
4383 * regcache.c (struct register_to_invalidate): New structure.
4384 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4385 functions.
4386 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4387
4388 2014-06-12 Yao Qi <yao@codesourcery.com>
4389
4390 * varobj.c (varobj_get_num_children): Call
4391 varobj_is_dynamic_p.
4392 (varobj_list_children): Likewise.
4393 (varobj_update): Likewise. Update comments.
4394
4395 2014-06-12 Yao Qi <yao@codesourcery.com>
4396
4397 * varobj.c (varobj_pretty_printed_p): Rename to ...
4398 (varobj_is_dynamic_p): ... this. New function.
4399 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4400 (varobj_is_dynamic_p): Declare.
4401 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4402 (mi_print_value_p, varobj_update_one): Likewise.
4403
4404 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4405 Yao Qi <yao@codesourcery.com>
4406
4407 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4408 (varobj_get_iterator): Wrap up code for pretty-printer by
4409 "#if HAVE_PYTHON" and "#endif".
4410 (update_dynamic_varobj_children): Likewise.
4411
4412 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4413 Yao Qi <yao@codesourcery.com>
4414
4415 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4416 gdb_python_initialized is false. Move some code from varobj.c.
4417 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4418 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4419 (struct varobj_item): Moved to varobj-iter.h".
4420 (varobj_clear_saved_item): New function.
4421 (update_dynamic_varobj_children): Move python-related code to
4422 py-varobj.c.
4423 (free_variable): Call varobj_clear_saved_item and
4424 varobj_iter_delete.
4425
4426 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4427 Yao Qi <yao@codesourcery.com>
4428
4429 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4430 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4431 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4432 (py-varobj.o): New rule.
4433 * python/py-varobj.c: New file.
4434 * python/python-internal.h (py_varobj_get_iterator): Declare.
4435 * varobj-iter.h: New file.
4436 * varobj.c: Include "varobj-iter.h"
4437 (struct varobj) <child_iter>: Change its type from "PyObject *"
4438 to "struct varobj_iter *".
4439 <saved_item>: Likewise.
4440 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4441 [HAVE_PYTHON] (varobj_get_iterator): New function.
4442 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4443 python-specific code to python/py-varobj.c.
4444 (install_visualizer): Call varobj_iter_delete instead of
4445 Py_XDECREF.
4446 * varobj.h (varobj_ensure_python_env): Declare.
4447
4448 2014-06-12 Yao Qi <yao@codesourcery.com>
4449
4450 * varobj.c (struct varobj_item): New structure.
4451 (create_child_with_value): Update declaration.
4452 (varobj_add_child): Replace arguments 'name' and 'value' with
4453 'item'. All callers updated.
4454 (install_dynamic_child): Likewise.
4455 (update_dynamic_varobj_children): Likewise.
4456 (varobj_add_child): Likewise.
4457 (create_child_with_value): Likewise.
4458
4459 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4460
4461 * NEWS: Create a new section for the next release branch.
4462 Rename the section of the current branch, now that it has
4463 been cut.
4464
4465 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4466
4467 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4468 * version.in: Bump version to 7.8.50.DATE-cvs.
4469
4470 2014-06-11 Pedro Alves <palves@redhat.com>
4471
4472 PR remote/17028
4473 * ser-mingw.c (net_windows_socket_check_pending): New function.
4474 (net_windows_select_thread): Ignore spurious wakeups. Use
4475 net_windows_socket_check_pending.
4476 (net_windows_wait_handle): Check for pending events with
4477 ioctlsocket, through net_windows_socket_check_pending, instead of
4478 checking the socket's event.
4479
4480 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4481
4482 * python/python-internal.h (gdb_PyObject_GetAttrString)
4483 (gdb_PyObject_HasAttrString): New inline function definitions.
4484 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4485 char * of the second argument to PyObject_GetAttrString.
4486
4487 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4488
4489 * serial.c (serial_write): Fix index of character to be printed
4490 in call to serial_logchar when serial debug traces are enabled.
4491
4492 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4493
4494 * gdbtypes (resolve_dynamic_range): Add function description.
4495
4496 2014-06-09 Pedro Alves <palves@redhat.com>
4497
4498 * linux-nat.c (linux_child_follow_fork): Initialize status with
4499 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4500 inner block. Only pass the signal to PTRACE_DETACH if in pass
4501 state.
4502
4503 2014-06-09 Gary Benson <gbenson@redhat.com>
4504
4505 * common/signals.c (gdb_signal_from_host): Reorder to separate
4506 the always-available ANSI-standard signals from the signals that
4507 require checking.
4508 (do_gdb_signal_to_host): Likewise.
4509 * proc-events.c (signal_table): Likewise.
4510
4511 2014-06-08 Hui Zhu <hui@codesourcery.com>
4512
4513 * common/linux-ptrace.c (linux_disable_event_reporting): New
4514 function.
4515 * common/linux-ptrace.h (linux_disable_event_reporting): New
4516 declaration.
4517 * linux-nat.c (linux_child_follow_fork): Do a single step before
4518 detach.
4519
4520 2014-06-07 Keith Seitz <keiths@redhat.com>
4521
4522 Revert:
4523 PR c++/16253
4524 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4525 from symbol_matches_domain in symtab.c. All local callers
4526 of symbol_matches_domain updated.
4527 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4528 search STRUCT_DOMAIN.
4529 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4530 independently. standard_lookup will do that automatically.
4531 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4532 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4533 (cp_lookup_symbol_in_namespace): Likewise.
4534 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4535 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4536 may return a STRUCT_DOMAIN match.
4537 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4538 * cp-support.c: Include language.h.
4539 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4540 VAR_DOMAIN.
4541 * psymtab.c (match_partial_symbol): Compare the requested
4542 domain with the symbol's domain directly.
4543 (lookup_partial_symbol): Likewise.
4544 * symtab.c (lookup_symbol_in_language): Explain when/why
4545 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4546 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4547 appropriate languages.
4548 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4549 and moved to ada-lang.c
4550 (lookup_block_symbol): Explain that this function only returns
4551 symbol matching the requested DOMAIN.
4552 Compare the requested domain with the symbol's domain directly.
4553 (iterate_over_symbols): Compare the requested domain with the
4554 symbol's domain directly.
4555 * symtab.h (symbol_matches_domain): Remove.
4556
4557 2014-06-06 Doug Evans <xdje42@gmail.com>
4558
4559 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4560 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4561 (gdbscm_guile_version_is_at_least): Declare.
4562 (gdbscm_scm_string_to_int): Declare.
4563 * guile/guile.c (gdbscm_guile_major_version): New global.
4564 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4565 (guile_datadir): New static global.
4566 (gdbscm_guile_data_directory): New function.
4567 (initialize_scheme_side): Update.
4568 (misc_guile_functions): Add guile-data-directory.
4569 (initialize_gdb_module): Fetch guile version number.
4570 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4571 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4572 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4573 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4574 comments.
4575 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4576 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4577 * guile/scm-value.c (gdbscm_value_to_string): Only call
4578 scm_port_conversion_strategy if Guile version >= 2.0.6.
4579
4580 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4581
4582 * main.c (print_gdb_help): Add -q and --silent.
4583
4584 2014-06-06 Gary Benson <gbenson@redhat.com>
4585
4586 * common/signals.c: Remove preprocessor conditionals for
4587 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4588 SIGSEGV and SIGTERM.
4589 * proc-events.c: Likewise.
4590
4591 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4592
4593 * symfile.c (symfile_free_objfile): Remove restriction to
4594 OBJF_USERLOADED.
4595 * symfile-mem.c (symbol_file_add_from_memory): Call
4596 add_target_sections_of_objfile.
4597
4598 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4599
4600 * guile/scm-value.c (gdbscm_history_append_x): Use
4601 'vlscm_get_value_smob_arg_unsafe' instead of
4602 'vlscm_scm_to_value'.
4603
4604 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4605
4606 PR mi/15806
4607 * utils.c (printchar): Don't escape at all if quoter is NUL.
4608 Update function documentation to clarify effect of parameter
4609 QUOTER.
4610 * remote.c (escape_buffer): Pass '\\' as the quoter to
4611 fputstrn_unfiltered.
4612 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4613 generate the output.
4614 (mi_solib_unloaded): Same.
4615
4616 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4617
4618 * development.sh: Delete.
4619 * Makefile.in (config.status): Adjust dependency on development.sh.
4620 * configure.ac: Adjust development.sh source call.
4621 * configure: Regenerate.
4622
4623 2014-06-04 Doug Evans <xdje42@gmail.com>
4624
4625 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4626 is_scheme_bkpt, spec.
4627 (bpscm_make_breakpoint_smob): Initialize new members.
4628 (gdbscm_create_breakpoint_x): Split into two ...
4629 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4630 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4631 (scheme_function breakpoint_functions): Update.
4632 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4633 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4634 register-breakpoint!.
4635
4636 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4637
4638 PR server/17023
4639 * mem-break.c (z_type_supported): Return zero if
4640 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4641
4642 2014-06-04 Tom Tromey <tromey@redhat.com>
4643
4644 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4645 value_from_contents_and_address_unresolved.
4646 (ada_template_to_fixed_record_type_1): Likewise.
4647 (ada_which_variant_applies): Likewise.
4648 * value.h (value_from_contents_and_address_unresolved): Declare.
4649 * value.c (value_from_contents_and_address_unresolved): New
4650 function.
4651 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4652 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4653 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4654
4655 2014-06-04 Tom Tromey <tromey@redhat.com>
4656
4657 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4658
4659 2014-06-04 Tom Tromey <tromey@redhat.com>
4660
4661 * procfs.c (procfs_attach): Make "args" const.
4662 * windows-nat.c (windows_attach): Make "args" const.
4663 * nto-procfs.c (procfs_attach): Make "args" const.
4664 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4665 * go32-nat.c (go32_attach): Make "args" const.
4666 * gnu-nat.c (gnu_attach): Make "args" const.
4667 * darwin-nat.c (darwin_attach): Make "args" const.
4668 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4669 * linux-nat.c (linux_nat_attach): Make "args" const.
4670 * remote.c (extended_remote_attach_1, extended_remote_attach):
4671 Make "args" const.
4672 * target.h (struct target_ops) <to_attach>: Make "args" const.
4673 (find_default_attach): Likewise.
4674 * utils.c (parse_pid_to_attach): Make "args" const.
4675 * utils.h (parse_pid_to_attach): Update.
4676
4677 2014-06-04 Tom Tromey <tromey@redhat.com>
4678
4679 * target-delegates.c: Rebuild.
4680 * target.c (default_thread_address_space): New function.
4681 (target_thread_address_space): Simplify.
4682 * target.h (struct target_ops) <to_thread_address_space>: Add
4683 TARGET_DEFAULT_FUNC.
4684
4685 2014-06-04 Doug Evans <xdje42@gmail.com>
4686
4687 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4688
4689 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4690
4691 * record-btrace.c: Include event-loop.h and inf-loop.h.
4692 (record_btrace_resume_exec_dir)
4693 (record_btrace_async_inferior_event_handler)
4694 (record_btrace_handle_async_inferior_event): New.
4695 (record_btrace_open): Create async event handler.
4696 (record_btrace_close): Delete async event handler.
4697 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4698 Mark async event handler.
4699 (record_btrace_execution_direction): New.
4700 (init_record_btrace_ops): Initialize to_execution_direction.
4701
4702 2014-06-03 Doug Evans <xdje42@gmail.com>
4703
4704 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4705 (gdbscm_make_parameter): Ditto.
4706
4707 2014-06-03 Doug Evans <dje@google.com>
4708
4709 * exec.c (exec_close_1): Call clear_section_table instead of
4710 resize_section_table.
4711 (clear_section_table): New function.
4712 (resize_section_table): Make static. Rename arg num_added to
4713 adjustment.
4714 * exec.h (clear_section_table): Declare.
4715 (resize_section_table): Delete.
4716 * progspace.c (release_program_space): Call clear_section_table
4717 instead of resize_section_table.
4718
4719 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4720
4721 * NEWS (Python Scripting): Add entry about the new xmethods
4722 feature.
4723
4724 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4725
4726 * python/py-xmethods.c: New file.
4727 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4728 (objfpy_dealloc): XDECREF on the new xmethods field.
4729 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4730 field.
4731 (objfpy_get_xmethods): New function.
4732 (objfile_getset): New entry 'xmethods'.
4733 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4734 (pspy_dealloc): XDECREF on the new xmethods field.
4735 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4736 field.
4737 (pspy_get_xmethods): New function.
4738 (pspace_getset): New entry 'xmethods'.
4739 * python/python-internal.h: Add declarations for new functions.
4740 * python/python.c (_initialize_python): Invoke
4741 gdbpy_initialize_xmethods.
4742 * python/lib/gdb/__init__.py (xmethods): New
4743 attribute.
4744 * python/lib/gdb/xmethod.py: New file.
4745 * python/lib/gdb/command/xmethods.py: New file.
4746
4747 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4748
4749 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4750 best match method returned by find_overload_match is an xmethod.
4751 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4752 the best matching operator returned by find_overload_match is an
4753 xmethod.
4754 * valops.c: #include "extension.h".
4755 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4756 Return void. The list of matching source methods is returned in
4757 "fn_list" and a vector of matching debug method workers is
4758 returned in "xm_worker_vec". Update all callers.
4759 (value_find_oload_method_list): Likewise.
4760 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4761 non-NULL, then the index of the best matching method in this
4762 vector is returned. Update all callers.
4763 (find_overload_match): Include xmethods while performing overload
4764 resolution.
4765
4766 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4767
4768 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4769 * extension-priv.h (struct extension_language_ops): Add the
4770 xmethod interface.
4771 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4772 get_matching_xmethod_workers, get_xmethod_argtypes,
4773 invoke_xmethod, free_xmethod_worker,
4774 free_xmethod_worker_vec): New functions.
4775 * extension.h: #include "common/vec.h".
4776 New function declarations.
4777 (struct xmethod_worker): New struct.
4778 (VEC (xmethod_worker_ptr)): New vector type.
4779 (xmethod_worker_ptr): New typedef.
4780 (xmethod_worker_vec): Likewise.
4781 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4782 builtin_type.
4783 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4784 (struct builtin_type): New field "xmethod".
4785 * valarith.c (value_ptradd): Assert that the value argument is not
4786 lval_xcallable.
4787 * valops.c (value_must_coerce_to_target): Return 0 for
4788 lval_xcallable values.
4789 * value.c (struct value): New field XM_WORKER in the field
4790 LOCATION.
4791 (value_address, value_raw_address): Return 0 for lval_xcallable
4792 values.
4793 (set_value_address): Assert that the value is not an
4794 lval_xcallable.
4795 (value_free): Free the associated xmethod worker when freeing
4796 lval_xcallable values.
4797 (set_value_component_location): Assert that the WHOLE value is not
4798 lval_xcallable.
4799 (value_of_xmethod, call_xmethod): New functions.
4800 * value.h: Declare "struct xmethod_worker".
4801 Declare new functions value_of_xmethod, call_xmethod.
4802
4803 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4804 Pedro Alves <palves@redhat.com>
4805
4806 PR breakpoints/17000
4807 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4808 New function, extracted from software_breakpoint_inserted_here_p.
4809 (software_breakpoint_inserted_here_p): Replace factored out code
4810 by call to find_non_raw_software_breakpoint_inserted_here.
4811 (bp_target_info_copy_insertion_state): New function.
4812 (bkpt_insert_location): Handle the case of a single-step
4813 breakpoint already inserted at the same address.
4814 (bkpt_remove_location): Handle the case of a single-step
4815 breakpoint still inserted at the same address.
4816 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4817 breakpoint already inserted at the same address.
4818 (deprecated_remove_raw_breakpoint): Handle the case of a
4819 non-raw breakpoint still inserted at the same address.
4820 (find_single_step_breakpoint): New function, extracted from
4821 single_step_breakpoint_inserted_here_p.
4822 (find_single_step_breakpoint): New function,
4823 factored out from single_step_breakpoint_inserted_here_p.
4824 (single_step_breakpoint_inserted_here_p): Reimplement.
4825
4826 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4827
4828 Pushed by Joel Brobecker <brobecker@adacore.com>
4829 * source.c (show_substitute_path_command): Fix display of matching
4830 substitution rules.
4831
4832 2014-06-03 Gary Benson <gbenson@redhat.com>
4833
4834 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4835
4836 2014-06-02 Doug Evans <xdje42@gmail.com>
4837
4838 Add parameter support for Guile.
4839 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4840 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4841 (scm-param.o): New rule.
4842 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4843 (gdbscm_misc_error): Declare.
4844 (gdbscm_canonicalize_command_name): Declare.
4845 (gdbscm_scm_to_host_string): Declare.
4846 (gdbscm_scm_from_host_string): Declare.
4847 (gdbscm_initialize_parameters): Declare.
4848 * guile/guile.c (initialize_gdb_module): Call
4849 gdbscm_initialize_parameters.
4850 * guile/lib/gdb.scm: Export parameter symbols.
4851 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4852 cmdscm_canonicalize_name and made public. All callers updated.
4853 * guile/scm-exception.c (gdbscm_misc_error): New function.
4854 * guile/scm-param.c: New file.
4855 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4856 (gdbscm_scm_to_host_string): New function.
4857 (gdbscm_scm_from_host_string): New function.
4858 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4859
4860 2014-06-02 Doug Evans <xdje42@gmail.com>
4861
4862 Add command support for Guile.
4863 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4864 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4865 (scm-cmd.o): New rule.
4866 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4867 (gdbscm_user_error_p): Declare.
4868 (gdbscm_parse_command_name): Declare.
4869 (gdbscm_valid_command_class_p): Declare.
4870 (gdbscm_initialize_commands): Declare.
4871 * guile/guile.c (initialize_gdb_module): Call
4872 gdbscm_initialize_commands.
4873 * guile/lib/gdb.scm: Export command symbols.
4874 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4875 (throw-user-error): New function.
4876 * guile/scm-cmd.c: New file.
4877 * guile/scm-exception.c (user_error_symbol): New static global.
4878 (gdbscm_user_error_p): New function.
4879 (gdbscm_initialize_exceptions): Set user_error_symbol.
4880 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4881
4882 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4883
4884 * top.c (command_loop): Handle comments here...
4885 (command_line_input): ... not here.
4886
4887 2014-06-02 Doug Evans <xdje42@gmail.com>
4888
4889 Add progspace support for Guile.
4890 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4891 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4892 (scm-progspace.o): New rule.
4893 * guile/guile-internal.h (pspace_smob): New typedef.
4894 (psscm_pspace_smob_pretty_printers): Declare.
4895 (psscm_pspace_smob_from_pspace): Declare.
4896 (psscm_scm_from_pspace): Declare.
4897 * guile/guile.c (initialize_gdb_module): Call
4898 gdbscm_initialize_pspaces.
4899 * guile/lib/gdb.scm: Export progspace symbols.
4900 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4901 support.
4902 (append-pretty-printer!): Ditto.
4903 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4904 Implement.
4905 * guile/scm-progspace.c: New file.
4906
4907 2014-06-03 Alan Modra <amodra@gmail.com>
4908
4909 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4910 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4911
4912 2014-06-02 Doug Evans <dje@google.com>
4913
4914 Add support for skeletonless type units.
4915 * dwarf2read.c (struct dwarf2_per_objfile): New member
4916 n_allocated_type_units.
4917 (struct dwarf2_per_objfile) <tu_stats>: New member
4918 nr_all_type_units_reallocs.
4919 (create_signatured_type_table_from_index): Initialize
4920 n_allocated_type_units
4921 (create_all_type_units): Ditto.
4922 (add_type_unit): Move up in file. New arg slot.
4923 All callers updated. Increase space for all_type_units more
4924 efficiently.
4925 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4926 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4927 (lookup_dwp_signatured_type): Ditto.
4928 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4929 All callers updated.
4930 (build_type_psymtabs_1): Leave type_unit_groups as
4931 NULL if no TUs present.
4932 (print_tu_stats): New function.
4933 (process_skeletonless_type_unit): New function.
4934 (process_dwo_file_for_skeletonless_type_units): New
4935 function.
4936 (process_skeletonless_type_units): New function.
4937 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4938 Call print tu_stats if debugging enabled.
4939
4940 2014-06-02 Pedro Alves <palves@redhat.com>
4941
4942 * breakpoint.c (build_target_command_list): Don't build a command
4943 list if we have any duplicate location that isn't a dprintf.
4944
4945 2014-06-02 Pedro Alves <palves@redhat.com>
4946
4947 * breakpoint.c (dprintf_breakpoint_hit): New function.
4948 (initialize_breakpoint_ops): Install it as dprintf's
4949 breakpoint_hit method.
4950
4951 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4952
4953 * source.c (substitute_path_rule_matches): Simplify using
4954 filename_ncmp instead of FILENAME_CMP.
4955
4956 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4957
4958 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4959
4960 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4961
4962 * configure.ac: When Guile is available, check for the
4963 availability of 'scm_new_smob'.
4964 * configure, config.h.in: Regenerate.
4965 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4966 function.
4967
4968 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4969
4970 * frame.c (struct frame_info): Add stop_string field.
4971 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4972 (get_prev_frame_always): Old content moved into
4973 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4974 TRY_CATCH, handle MEMORY_ERROR exceptions.
4975 (frame_stop_reason_string): New function definition.
4976 * frame.h (unwind_stop_reason_to_string): Extend comment to
4977 mention frame_stop_reason_string.
4978 (frame_stop_reason_string): New function declaration.
4979 * stack.c (frame_info): Switch to frame_stop_reason_string.
4980 (backtrace_command_1): Switch to frame_stop_reason_string.
4981 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4982 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4983 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4984
4985 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4986
4987 * frame.c (frame_stop_reason_string): Rename to ...
4988 (unwind_stop_reason_to_string): this.
4989 * frame.h (frame_stop_reason_string): Rename to ...
4990 (unwind_stop_reason_to_string): this.
4991 * stack.c (frame_info): Update call to frame_stop_reason_string.
4992 (backtrace_command_1): Likewise.
4993 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4994 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4995
4996 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4997
4998 * frame.c (remove_prev_frame): New function.
4999 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5000 remove_prev_frame.
5001
5002 2014-05-29 Pedro Alves <palves@redhat.com>
5003
5004 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5005 and make it const. When a single-step decays to a continue,
5006 clear 'step', not 'hw_step'. Pass whether the caller wanted
5007 to step to user_visible_resume_ptid, not what we ask the
5008 target to do.
5009
5010 2014-05-29 Pedro Alves <palves@redhat.com>
5011
5012 * infrun.c (process_event_stop_test, handle_step_into_function)
5013 (handle_step_into_function_backward): Adjust.
5014 Don't set the even thread's stop_step and call stop_waiting before
5015 calling end_stepping_range. Instead do that ...
5016 (end_stepping_range): ... here. Take an ecs pointer parameter.
5017
5018 2014-05-29 Pedro Alves <palves@redhat.com>
5019
5020 * infrun.c (stop_stepping): Rename to ...
5021 (stop_waiting): ... this.
5022 (proceed): Update comment.
5023 (process_event_stop_test, handle_inferior_event)
5024 (handle_signal_stop, handle_step_into_function)
5025 (handle_step_into_function_backward): Update.
5026
5027 2014-05-29 Pedro Alves <palves@redhat.com>
5028
5029 * infcall.c (run_inferior_call): Don't check whether the current
5030 thread is running after the proceed call.
5031
5032 2014-05-29 Pedro Alves <palves@redhat.com>
5033 Tom Tromey <tromey@redhat.com>
5034
5035 * NEWS: Mention "maint set target-async", "set mi-async", and that
5036 background execution commands are now always available.
5037 * target.h (target_async_permitted): Update comment.
5038 * target.c (target_async_permitted, target_async_permitted_1):
5039 Default to 1.
5040 (set_target_async_command): Rename to ...
5041 (maint_set_target_async_command): ... this.
5042 (show_target_async_command): Rename to ...
5043 (maint_show_target_async_command): ... this.
5044 (_initialize_target): Adjust.
5045 * infcmd.c (prepare_execution_command): Make extern.
5046 * inferior.h (prepare_execution_command): Declare.
5047 * infrun.c (set_observer_mode): Leave target async alone.
5048 * mi/mi-interp.c (mi_interpreter_init): Install
5049 mi_on_sync_execution_done as sync_execution_done observer.
5050 (mi_on_sync_execution_done): New function.
5051 (mi_execute_command_input_handler): Don't print the prompt if we
5052 just started a synchronous command with an async target.
5053 (mi_on_resume): Check sync_execution before printing prompt.
5054 * mi/mi-main.h (mi_async_p): Declare.
5055 * mi/mi-main.c: Include gdbcmd.h.
5056 (mi_async_p): New function.
5057 (mi_async, mi_async_1): New globals.
5058 (set_mi_async_command, show_mi_async_command, mi_async): New
5059 functions.
5060 (exec_continue): Call prepare_execution_command.
5061 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5062 (mi_execute_async_cli_command): Use mi_async_p.
5063 (_initialize_mi_main): Install "set mi-async". Make
5064 "target-async" a deprecated alias.
5065
5066 2014-05-29 Pedro Alves <palves@redhat.com>
5067
5068 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5069 (_initialize_cli_interp): Adjust.
5070 * event-loop.c: Include "observer.h".
5071 (start_event_loop): Notify 'command_error' observers instead of
5072 calling display_gdb_prompt. Remove FIXME comment.
5073 * event-top.c (display_gdb_prompt): Remove call into the
5074 interpreters.
5075 * inf-loop.c: Include "observer.h".
5076 (inferior_event_handler): Notify 'command_error' observers instead
5077 of calling display_gdb_prompt.
5078 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5079 observers instead of calling display_gdb_prompt.
5080 * interps.c (interp_set): Don't call display_gdb_prompt.
5081 (current_interp_display_prompt_p): Delete.
5082 * interps.h (interp_prompt_p): Delete declaration.
5083 (interp_prompt_p_ftype): Delete.
5084 (struct interp_procs) <prompt_proc_p>: Delete field.
5085 (current_interp_display_prompt_p): Delete declaration.
5086 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5087 (_initialize_mi_interp): Adjust.
5088 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5089 'command_error' observers.
5090 (tui_on_sync_execution_done, tui_on_command_error): New
5091 functions.
5092 (tui_display_prompt_p): Delete.
5093 (_initialize_tui_interp): Adjust.
5094
5095 2014-05-29 Pedro Alves <palves@redhat.com>
5096
5097 PR gdb/13860
5098 * cli/cli-interp.c: Include infrun.h and observer.h.
5099 (cli_uiout, cli_interp): New globals.
5100 (cli_on_signal_received, cli_on_end_stepping_range)
5101 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5102 functions.
5103 (cli_interpreter_init): Install them as 'end_stepping_range',
5104 'signal_received' 'signal_exited', 'exited' and 'no_history'
5105 observers.
5106 (_initialize_cli_interp): Remove cli_interp local.
5107 * infrun.c (handle_inferior_event): Call the several stop reason
5108 observers instead of printing the stop reason directly.
5109 (end_stepping_range): New function.
5110 (print_end_stepping_range_reason, print_signal_exited_reason)
5111 (print_exited_reason, print_signal_received_reason)
5112 (print_no_history_reason): Make static, and add an uiout
5113 parameter. Print to that instead of to CURRENT_UIOUT.
5114 * infrun.h (print_end_stepping_range_reason)
5115 (print_signal_exited_reason, print_exited_reason)
5116 (print_signal_received_reason print_no_history_reason): New
5117 declarations.
5118 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5119 'mi_uiout'.
5120 <cli_uiout>: New field.
5121 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5122 uiout for CLI output. Install 'signal_received',
5123 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5124 observers.
5125 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5126 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5127 (mi_on_no_history): New functions.
5128 (ui_out_free_cleanup): Delete function.
5129 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5130 instead use the one already stored in the MI interpreter data.
5131 (mi_ui_out): Adjust.
5132 * tui/tui-interp.c: Include infrun.h and observer.h.
5133 (tui_interp): New global.
5134 (tui_on_signal_received, tui_on_end_stepping_range)
5135 (tui_on_signal_exited, tui_on_exited)
5136 (tui_on_no_history): New functions.
5137 (tui_init): Install them as 'end_stepping_range',
5138 'signal_received' 'signal_exited', 'exited' and 'no_history'
5139 observers.
5140 (_initialize_tui_interp): Delete tui_interp local.
5141
5142 2014-05-29 Pedro Alves <palves@redhat.com>
5143
5144 PR gdb/15713
5145 * linux-nat.c (linux_nat_resume_callback): Rename the second
5146 parameter to 'except'. Skip LP if it points to EXCEPT.
5147 (linux_nat_resume): Don't mark the event lwp as not stopped
5148 before resuming sibling lwps. Instead ask
5149 linux_nat_resume_callback to skip the event lwp. Mark it as not
5150 stopped after actually resuming it.
5151 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5152 resuming it.
5153 (wait_lwp): Mark the lwp as stopped here.
5154 (stop_wait_callback): Mark the lwp as not stopped right after
5155 resuming it. Don't mark lwps as stopped here.
5156 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5157 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5158
5159 2014-05-29 Pedro Alves <palves@redhat.com>
5160
5161 PR PR15693
5162 * infrun.c (resume): Determine how much to resume depending on
5163 whether the caller wanted a step, not whether we can hardware step
5164 the target. Mark all threads that we intend to run as running,
5165 unless we're calling an inferior function.
5166 (normal_stop): If the thread is running an infcall, don't finish
5167 thread state.
5168 * target.c (target_resume): Don't mark threads as running here.
5169
5170 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5171
5172 * serial.c (_initialize_serial): Remove support for
5173 the "set remotebaud" and "show remotebaud" commands.
5174 * NEWS: Add entry documenting the removal of that command.
5175
5176 2014-05-28 Yao Qi <yao@codesourcery.com>
5177
5178 * charset.c: Fix typo in comments.
5179
5180 2014-05-27 Gary Benson <gbenson@redhat.com>
5181
5182 * utils.c (internal_vproblem): Prompt for a bug report.
5183
5184 2014-05-26 Andy Wingo <wingo@igalia.com>
5185
5186 * guile/scm-arch.c (arscm_mark_arch_smob):
5187 * guile/scm-block.c (bkscm_mark_block_smob)
5188 (bkscm_mark_block_syms_progress_smob):
5189 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5190 * guile/scm-exception.c (exscm_mark_exception_smob):
5191 * guile/scm-frame.c (frscm_mark_frame_smob):
5192 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5193 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5194 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5195 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5196 (ppscm_mark_pretty_printer_worker_smob):
5197 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5198 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5199 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5200 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5201 mark functions.
5202 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5203 function.
5204
5205 2014-05-26 Andy Wingo <wingo@igalia.com>
5206 Doug Evans <xdje42@gmail.com>
5207
5208 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5209 empty_base_class. All uses updated.
5210 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5211 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5212 Adapt all callers.
5213 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5214 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5215 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5216 (gdbscm_gsmob_has_property_p, add_property_name)
5217 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5218 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5219 (gdb-object-has-property?, gdb-object-properties): Remove.
5220 (gdb-object-kind): Renamed from gsmob-kind.
5221
5222 2014-05-26 Andy Wingo <wingo@igalia.com>
5223
5224 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5225 * configure: Regenerate.
5226
5227 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5228
5229 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5230
5231 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5232
5233 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5234 (replay_memory_access_read_only, replay_memory_access_read_write)
5235 (replay_memory_access_types, replay_memory_access)
5236 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5237 (cmd_set_record_btrace, cmd_show_record_btrace)
5238 (cmd_show_replay_memory_access): New.
5239 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5240 (record_btrace_remove_breakpoint): Replace
5241 record_btrace_allow_memory_access with replay_memory_access.
5242 (_initialize_record_btrace): Add commands.
5243 * NEWS: Announce it.
5244
5245 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5246
5247 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5248
5249 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5250
5251 * MAINTAINERS (Write After Approval): Move self back from
5252 paper trail.
5253
5254 2014-05-22 Pedro Alves <palves@redhat.com>
5255
5256 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5257 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5258 (disable_randomization, enum exec_direction_kind)
5259 (execution_direction, stop_registers, start_remote)
5260 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5261 (wait_for_inferior, normal_stop, get_last_target_status)
5262 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5263 (insert_step_resume_breakpoint_at_sal)
5264 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5265 (set_step_info, print_stop_event, signal_stop_state)
5266 (signal_print_state, signal_pass_state, signal_stop_update)
5267 (signal_print_update, signal_pass_update)
5268 (update_signals_program_target, clear_exit_convenience_vars)
5269 (displaced_step_dump_bytes, update_observer_mode)
5270 (signal_catch_update, gdb_signal_from_command): Move
5271 declarations ...
5272 * infrun.h: ... to this new file.
5273 * amd64-tdep.c: Include infrun.h.
5274 * annotate.c: Include infrun.h.
5275 * arch-utils.c: Include infrun.h.
5276 * arm-linux-tdep.c: Include infrun.h.
5277 * arm-tdep.c: Include infrun.h.
5278 * break-catch-sig.c: Include infrun.h.
5279 * breakpoint.c: Include infrun.h.
5280 * common/agent.c: Include infrun.h instead of inferior.h.
5281 * corelow.c: Include infrun.h.
5282 * event-top.c: Include infrun.h.
5283 * go32-nat.c: Include infrun.h.
5284 * i386-tdep.c: Include infrun.h.
5285 * inf-loop.c: Include infrun.h.
5286 * infcall.c: Include infrun.h.
5287 * infcmd.c: Include infrun.h.
5288 * infrun.c: Include infrun.h.
5289 * linux-fork.c: Include infrun.h.
5290 * linux-nat.c: Include infrun.h.
5291 * linux-thread-db.c: Include infrun.h.
5292 * monitor.c: Include infrun.h.
5293 * nto-tdep.c: Include infrun.h.
5294 * procfs.c: Include infrun.h.
5295 * record-btrace.c: Include infrun.h.
5296 * record-full.c: Include infrun.h.
5297 * remote-m32r-sdi.c: Include infrun.h.
5298 * remote-mips.c: Include infrun.h.
5299 * remote-notif.c: Include infrun.h.
5300 * remote-sim.c: Include infrun.h.
5301 * remote.c: Include infrun.h.
5302 * reverse.c: Include infrun.h.
5303 * rs6000-tdep.c: Include infrun.h.
5304 * s390-linux-tdep.c: Include infrun.h.
5305 * solib-irix.c: Include infrun.h.
5306 * solib-osf.c: Include infrun.h.
5307 * solib-svr4.c: Include infrun.h.
5308 * target.c: Include infrun.h.
5309 * top.c: Include infrun.h.
5310 * windows-nat.c: Include infrun.h.
5311 * mi/mi-interp.c: Include infrun.h.
5312 * mi/mi-main.c: Include infrun.h.
5313 * python/py-threadevent.c: Include infrun.h.
5314
5315 2014-05-22 Pedro Alves <palves@redhat.com>
5316
5317 * infrun.c (handle_inferior_event): Store the exit code for
5318 --return-child-result here, instead of ...
5319 (print_exited_reason): ... here.
5320
5321 2014-05-21 Pedro Alves <palves@redhat.com>
5322
5323 PR gdb/13860
5324 * gdbthread.h (struct thread_control_state): New field
5325 `command_interp'.
5326 * infrun.c (follow_fork): Copy the new thread control field to the
5327 child fork thread.
5328 (clear_proceed_status_thread): Clear the new thread control field.
5329 (proceed): Set the new thread control field.
5330 * interps.h (command_interp): Declare.
5331 * interps.c (command_interpreter): New global.
5332 (command_interp): New function.
5333 (interp_exec): Set `command_interpreter' while here.
5334 * cli-out.c (cli_uiout_dtor): New function.
5335 (cli_ui_out_impl): Install it.
5336 * mi/mi-interp.c: Include cli-out.h.
5337 (mi_cmd_interpreter_exec): Add comment.
5338 (restore_current_uiout_cleanup): New function.
5339 (ui_out_free_cleanup): New function.
5340 (mi_on_normal_stop): If finishing an execution command started by
5341 a CLI command, or any kind of breakpoint-like event triggered,
5342 print the stop event to the output (CLI) stream.
5343 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5344
5345 2014-05-21 Pedro Alves <palves@redhat.com>
5346
5347 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5348 current source line having changed.
5349 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5350 * infrun.c (normal_stop): Adjust call to
5351 set_current_sal_from_frame.
5352 * source.c (clear_lines_listed_range): New function.
5353 (set_current_source_symtab_and_line, identify_source_line): Clear
5354 the lines listed range.
5355 (line_info): Handle the first "info line" after the current source
5356 line having changed.
5357 * stack.c (print_stack_frame): Remove center handling.
5358 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5359 center sal.line.
5360
5361 2014-05-21 Pedro Alves <palves@redhat.com>
5362
5363 * inf-child.c (inf_child_mourn_inferior): New function.
5364 * inf-child.h (inf_child_mourn_inferior): New declaration.
5365 * darwin-nat.c (darwin_mourn_inferior): Use
5366 inf_child_mourn_inferior.
5367 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5368 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5369 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5370 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5371 * windows-nat.c (windows_mourn_inferior): Likewise.
5372
5373 2014-05-21 Doug Evans <xdje42@gmail.com>
5374
5375 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5376
5377 2014-05-21 Doug Evans <xdje42@gmail.com>
5378
5379 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5380 (gdbscm_out_of_range_error): Ditto.
5381 (gdbscm_memory_error): Ditto.
5382 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5383 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5384 (gdbscm_out_of_range_error): Update.
5385 (gdbscm_memory_error): Update.
5386 (gdbscm_scm_to_target_string_unsafe): Delete.
5387
5388 2014-05-21 Pedro Alves <palves@redhat.com>
5389
5390 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5391 globals.
5392 (inf_child_open_target): New function.
5393 (inf_child_open): Use inf_child_open_target to push the target
5394 instead of erroring out.
5395 (inf_child_disconnect, inf_child_close)
5396 (inf_child_maybe_unpush_target): New functions.
5397 (inf_child_target): Install inf_child_disconnect and
5398 inf_child_close. Store a pointer to the returned object.
5399 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5400 declarations.
5401 * target.c (auto_connect_native_target): New global.
5402 (show_default_run_target): New function.
5403 (find_default_run_target): Return NULL if automatically connecting
5404 to the native target is disabled.
5405 (_initialize_target): Install set/show auto-connect-native-target.
5406 * NEWS: Mention "set auto-connect-native-target", and "target
5407 native".
5408 * linux-nat.c (super_close): New global.
5409 (linux_nat_close): Call super_close.
5410 (linux_nat_add_target): Store a pointer to the base class's
5411 to_close method.
5412 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5413 inf_child_maybe_unpush.
5414 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5415 already pushed.
5416 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5417 the inferior. Use inf_child_maybe_unpush_target.
5418 (inf_ttrace_attach): Don't push the target if it is already
5419 pushed.
5420 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5421 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5422 after mourning the inferior. Use inf_child_maybe_unpush_target.
5423 (darwin_attach_pid): Don't push the target if it is already
5424 pushed.
5425 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5426 mourning the inferior. Use inf_child_maybe_unpush_target.
5427 (gnu_detach): Use inf_child_maybe_unpush_target.
5428 * go32-nat.c (go32_create_inferior): Don't push the target if it
5429 is already pushed.
5430 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5431 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5432 (procfs_open): Rename to ...
5433 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5434 comments. Can target_preopen before changing node. Call
5435 inf_child_open_target to push the target explicitly.
5436 (procfs_attach): Don't push the target if it is already pushed.
5437 (procfs_detach): Use inf_child_maybe_unpush_target.
5438 (procfs_create_inferior): Don't push the target if it is already
5439 pushed.
5440 (nto_native_ops): New global.
5441 (procfs_open): Reimplement.
5442 (procfs_native_open): New function.
5443 (init_procfs_targets): Install procfs_native_open as to_open of
5444 "target native". Store a pointer to the "native" target in
5445 nto_native_ops.
5446 * procfs.c (procfs_attach): Don't push the target if it is already
5447 pushed.
5448 (procfs_detach): Use inf_child_maybe_unpush_target.
5449 (procfs_mourn_inferior): Only unpush the target after mourning the
5450 inferior. Use inf_child_maybe_unpush_target.
5451 (procfs_init_inferior): Don't push the target if it is already
5452 pushed.
5453 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5454 if it is already pushed.
5455
5456 2014-05-21 Pedro Alves <palves@redhat.com>
5457
5458 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5459 and "procfs" targets are now called "native" instead.
5460
5461 2014-05-21 Pedro Alves <palves@redhat.com>
5462
5463 * go32-nat.c (go32_open): Delete.
5464 (go32_target): Don't override the to_open method.
5465
5466 2014-05-21 Pedro Alves <palves@redhat.com>
5467
5468 * nto-procfs.c (procfs_can_run): New function.
5469 (nto_procfs_ops): New global.
5470 (init_procfs_targets): New, based on procfs_target. Install
5471 "target native" in addition to "target procfs".
5472 (_initialize_procfs): Call init_procfs_targets instead of adding
5473 the target here.
5474
5475 2014-05-21 Pedro Alves <palves@redhat.com>
5476
5477 * windows-nat.c (windows_target): Don't override to_shortname,
5478 to_longname or to_doc.
5479
5480 2014-05-21 Pedro Alves <palves@redhat.com>
5481
5482 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5483 to_doc.
5484
5485 2014-05-21 Pedro Alves <palves@redhat.com>
5486
5487 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5488 to_shortname, to_longname or to_doc.
5489
5490 2014-05-21 Pedro Alves <palves@redhat.com>
5491
5492 * go32-nat.c (go32_target): Don't override to_shortname,
5493 to_longname or to_doc.
5494
5495 2014-05-21 Pedro Alves <palves@redhat.com>
5496
5497 * inf-child.c (inf_child_open): Remove mention of "child".
5498 (inf_child_target): Rename target to "native" instead of "child".
5499
5500 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5501
5502 * Makefile.in (SFILES): Delete "regset.c".
5503 (COMMON_OBS): Delete "regset.o".
5504 * regset.c: Remove.
5505 * regset.h (regset_alloc): Delete prototype.
5506
5507 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5508
5509 * sparc-linux-tdep.c (sparc32_linux_gregset)
5510 (sparc32_linux_fpregset): New static regset structures.
5511 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5512 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5513 'fpregset' fields.
5514 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5515 (sparc64_linux_fpregset): New static regset structures.
5516 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5517 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5518 New static regset structures.
5519 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5520 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5521 New static regset structures.
5522 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5523 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5524 New static regset structures.
5525 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5526 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5527 New static regset structures.
5528 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5529
5530 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5531
5532 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5533 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5534 register maps ("regmaps") from "*regset" to "*regmap". Do this
5535 for all regmap types and variables.
5536 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5537 (sparc32_linux_supply_core_gregset)
5538 (sparc32_linux_collect_core_gregset)
5539 (sparc32_linux_supply_core_fpregset)
5540 (sparc32_linux_collect_core_fpregset): Likewise.
5541 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5542 (sparc_gregmap, sparc_fpregmap): ... these.
5543 (sparc_supply_gregset, sparc_collect_gregset)
5544 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5545 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5546 (_initialize_sparc_nat): Rename regmaps.
5547 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5548 (sparc_gregmap, sparc_fpregmap): ... these.
5549 (sparc_supply_gregset, sparc_collect_gregset)
5550 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5551 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5552 Rename macros to...
5553 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5554 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5555 Likewise.
5556 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5557 Rename to...
5558 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5559 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5560 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5561 regmaps.
5562 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5563 (sparc32_bsd_fpregset): Rename to...
5564 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5565 (sparc32_bsd_fpregmap): ... these.
5566 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5567 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5568 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5569 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5570 (struct sparc_gregmap, struct sparc_fpregmap)
5571 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5572 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5573 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5574 (sparc32_supply_regset, sparc32_collect_gregset)
5575 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5576 prototypes.
5577 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5578 (sparc64_linux_ptrace_gregmap): ... this.
5579 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5580 (_initialize_sparc64_linux_nat): Rename regmaps.
5581 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5582 (sparc64_linux_core_gregmap): ... this.
5583 (sparc64_linux_supply_core_gregset)
5584 (sparc64_linux_collect_core_gregset)
5585 (sparc64_linux_supply_core_fpregset)
5586 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5587 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5588 (sparc64_sol2_fpregset): Rename to...
5589 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5590 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5591 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5592 regmaps.
5593 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5594 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5595 (sparc64_bsd_fpregset): Rename to...
5596 (struct sparc_gregmap, sparc64_sol2_gregmap)
5597 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5598 (sparc64_bsd_fpregmap): ... these.
5599 (sparc64_supply_gregset, sparc64_collect_gregset)
5600 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5601 prototypes.
5602 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5603 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5604 (sparc64fbsd_gregmap): ... this.
5605 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5606 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5607 Rename regmaps.
5608 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5609 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5610 (sparc64nbsd_collect_fpregset): Likewise.
5611 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5612 (sparc64nbsd_gregmap): ... this.
5613 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5614 regmaps.
5615 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5616 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5617 (sparc64obsd_gregmap): ... this.
5618 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5619 regmaps.
5620 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5621 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5622 (sparc32nbsd_gregmap): ... this.
5623 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5624 regmaps.
5625
5626 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5627
5628 * score-tdep.c (score7_linux_gregset): New static regset
5629 structure.
5630 (score7_linux_regset_from_core_section): Remove dynamic regset
5631 allocation.
5632 (score_gdbarch_init): Drop allocation of tdep structure.
5633 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5634
5635 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5636
5637 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5638 regset structures.
5639 (am33_regset_from_core_section): Remove dynamic regset
5640 allocations.
5641
5642 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5643
5644 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5645 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5646 structures.
5647 (mips_linux_regset_from_core_section): Remove dynamic regset
5648 allocations.
5649 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5650 'gregset64', 'fpregset', and 'fpregset64'.
5651 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5652 deleted tdep fields.
5653
5654 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5655
5656 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5657 regset structures.
5658 (amd64_regset_from_core_section): Remove dynamic regset
5659 allocations.
5660 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5661 structure.
5662 (amd64obsd_regset_from_core_section): Remove dynamic regset
5663 allocation.
5664 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5665 Likewise.
5666 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5667 x86-common regset supply function.
5668 * i386-tdep.c (i386_collect_gregset): Make static.
5669 (i386_gregset): New global regset structure.
5670 (i386_fpregset, i386_xstateregset): New static regset structures.
5671 (i386_regset_from_core_section): Remove dynamic regset
5672 allocations.
5673 (i386_gdbarch_init): Remove initialization of tdep fields
5674 'gregset', 'fpregset', and 'xstateregset'.
5675 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5676 'fpregset', and 'xstateregset'.
5677 (i386_collect_gregset): Remove prototype.
5678 (i386_gregset): New declaration.
5679 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5680 structure.
5681 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5682 allocation.
5683
5684 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5685
5686 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5687 (arm_linux_vfpregset): New static regset structures.
5688 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5689 regset structures.
5690 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5691 and 'vfpregset' fields.
5692
5693 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5694
5695 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5696 (aarch64_linux_fpregset): New static regset structures.
5697 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5698 of regset structures.
5699 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5700 'fpregset' fields.
5701
5702 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5703
5704 * regset.h (struct regset): Remove gdbarch field.
5705 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5706 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5707 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5708 Likewise.
5709 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5710 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5711 (ppc32_linux_vsxregset): Likewise.
5712 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5713 via the regcache instead of the regset.
5714 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5715 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5716 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5717 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5718 Likewise.
5719
5720 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5721
5722 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5723 Constify structures.
5724 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5725 (alphanbsd_aout_gregset): Likewise.
5726 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5727 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5728 Likewise.
5729 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5730 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5731 Likewise.
5732 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5733 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5734 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5735 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5736 * m88k-tdep.c (m88k_gregset): Likewise.
5737 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5738 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5739 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5740 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5741 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5742 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5743 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5744 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5745 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5746 Likewise.
5747 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5748 * sh-tdep.h (sh_corefile_gregset): Likewise.
5749 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5750 * vax-tdep.c (vax_gregset): Likewise.
5751
5752 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5753
5754 Fix TLS access for -static -pthread.
5755 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5756 (try_thread_db_load_1): Initialize it.
5757 (thread_db_get_thread_local_address): Call it if LM is zero.
5758 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5759 * target.h (struct target_ops) (to_get_thread_local_address): Add
5760 load_module_addr comment.
5761
5762 2014-05-21 Pedro Alves <palves@redhat.com>
5763
5764 * dcache.c (dcache_read_memory_partial): If reading the cache line
5765 fails, fallback to reading just the memory the caller wanted.
5766
5767 2014-05-20 Doug Evans <dje@google.com>
5768
5769 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5770 instead of get_current_arch.
5771
5772 2014-05-20 Pedro Alves <palves@redhat.com>
5773
5774 * NEWS: Mention that compare-sections now works with all targets.
5775
5776 * remote.c (PACKET_qCRC): New enum value.
5777 (remote_verify_memory): Don't send qCRC if the target has no
5778 execution. Use packet_support/packet_ok. If the target doesn't
5779 support the qCRC packet, fallback to a deep memory copy.
5780 (compare_sections_command): Say "target image" instead of "remote
5781 executable".
5782 (_initialize_remote): Add PACKET_qCRC to the list of config
5783 packets that have no associated command. Extend comment.
5784 * target.c (simple_verify_memory, default_verify_memory): New
5785 function.
5786 * target.h (struct target_ops) <to_verify_memory>: Default to
5787 default_verify_memory.
5788 (simple_verify_memory): New declaration.
5789 * target-delegates.c: Regenerate.
5790
5791 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5792
5793 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5794
5795 2014-05-20 Hui Zhu <hui@codesourcery.com>
5796 Yao Qi <yao@codesourcery.com>
5797
5798 PR backtrace/16558
5799 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5800 and change address of sp and pc.
5801
5802 2014-05-19 Tom Tromey <tromey@redhat.com>
5803
5804 * gdbtypes.c (rank_function): Use XNEWVEC.
5805 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5806
5807 2014-05-19 Doug Evans <dje@google.com>
5808
5809 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5810 build_type_unit_groups and moved closer to only caller. Remove
5811 arguments. All references updated. Remove outdated .gdb_index
5812 comment.
5813 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5814 build_type_psymtabs_1.
5815
5816 2014-05-19 Doug Evans <dje@google.com>
5817
5818 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5819 n_type_unit_groups, all_type_unit_groups. All uses removed.
5820 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5821 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5822 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5823 (add_type_unit_group_to_table): Delete.
5824
5825 2014-05-19 Doug Evans <dje@google.com>
5826
5827 * eval.c (evaluate_subexp_standard): Add some comments.
5828
5829 2014-05-17 Doug Evans <xdje42@gmail.com>
5830
5831 * progspace.c (remove_program_space): Delete, unused.
5832 * progspace.h (remove_program_space): Ditto.
5833
5834 2014-05-17 Doug Evans <xdje42@gmail.com>
5835
5836 * inferior.c (prune_inferiors): Fix comment.
5837 (remove_inferior_command): Call prune_program_spaces.
5838
5839 2014-05-16 Doug Evans <dje@google.com>
5840
5841 New command line option -D.
5842 * NEWS: Mention it.
5843 * main.c (set_gdb_data_directory): New function.
5844 (captured_main): Recognize -D. Flag error for --data-directory "".
5845 Call set_gdb_data_directory.
5846 (print_gdb_help): Print --data-directory, -D.
5847 * main.h (set_gdb_data_directory): Declare.
5848 * top.c (staged_gdb_datadir): New static global.
5849 (set_gdb_datadir): Call set_gdb_data_directory
5850 (show_gdb_datadir): New function.
5851 (init_main): Update init of data-directory parameter.
5852
5853 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5854
5855 Import the "dirfd" gnulib module.
5856 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5857 * gnulib/aclocal.m4: Update.
5858 * gnulib/config.in: Update.
5859 * gnulib/configure: Update.
5860 * gnulib/import/Makefile.am: Update.
5861 * gnulib/import/Makefile.in: Update.
5862 * gnulib/import/dirfd.c: New.
5863 * gnulib/import/m4/dirfd.m4: New.
5864 * gnulib/import/m4/gnulib-cache.m4: Update.
5865 * gnulib/import/m4/gnulib-comp.m4: Update.
5866
5867 2014-05-16 Pierre Muller <muller@sourceware.org>
5868 Yao Qi <yao@codesourcery.com>
5869
5870 * valprint.c (print_wchar): Move the code on checking whether
5871 W is a printable wide char to the default branch of switch
5872 statement below. Call wchar_printable instead of gdb_iswprint.
5873
5874 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5875
5876 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5877 ldr.w and ldrd instructions.
5878
5879 2014-05-15 Doug Evans <dje@google.com>
5880
5881 * dwarf2read.c (read_structure_type): Delete outdated comments.
5882
5883 2014-05-14 Tom Tromey <tromey@redhat.com>
5884
5885 * macrocmd.c (print_macro_definition): Reindent.
5886
5887 2014-05-13 Doug Evans <xdje42@gmail.com>
5888
5889 * python/py-cmd.c (cmdpy_completer): Add comment.
5890 (completers): Make const.
5891
5892 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5893
5894 * infrun.c (resume): Remove should_resume (unused). Move up
5895 declaration of resume_ptid.
5896
5897 2014-05-13 Tom Tromey <tromey@redhat.com>
5898
5899 * language.h (unop_type_check): Remove.
5900 (binop_type_check): Don't declare.
5901
5902 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5903
5904 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5905 call to regcache_raw_collect.
5906
5907 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5908
5909 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5910 mi_console->quote as the quoting character.
5911
5912 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5913
5914 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5915
5916 2014-04-29 Tom Tromey <tromey@redhat.com>
5917
5918 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5919 "show debug varobj".
5920
5921 2014-05-07 Kyle McMartin <kyle@redhat.com>
5922
5923 Pushed by Joel Brobecker <brobecker@adacore.com>.
5924 * aarch64-tdep.c (aarch64_software_single_step): New function.
5925 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5926 with aarch64_software_single_step.
5927
5928 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5929
5930 GDB 7.7.1 released.
5931
5932 2014-05-05 Keith Seitz <keiths@redhat.com>
5933
5934 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5935 variable or history value is successfully parsed.
5936
5937 2014-05-05 Yao Qi <yao@codesourcery.com>
5938 Pedro Alves <palves@redhat.com>
5939
5940 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5941 address of blocks that intersects the requested range. Trim
5942 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5943 sections.
5944 * ctf.c (ctf_xfer_partial): Likewise.
5945
5946 2014-05-05 Yao Qi <yao@codesourcery.com>
5947
5948 * printcmd.c (display_command): Remove the check to
5949 target_has_execution.
5950
5951 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5952
5953 * ppcobsd-nat.c: Include "obsd-nat.h".
5954 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5955 add_target.
5956 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5957
5958 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5959
5960 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5961 and 16-bit signed and unsigned arguments. Update comment.
5962 (stap_parse_probe_arguments): Extend code to handle such
5963 arguments. Use warning instead of complaint to notify about
5964 unrecognized bitness.
5965
5966 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5967
5968 PR breakpoints/16889
5969 * stap-probe.c (stap_parse_probe_arguments): Simplify
5970 check for non-prefixed probes (i.e., probes whose
5971 arguments do not start with "N@"). Always set the
5972 argument type to a sane value.
5973
5974 2014-05-01 David Taylor <dtaylor@emc.com>
5975
5976 * remote.c (compare_sections_command): Add -r option to compare
5977 all loadable read-only sections.
5978
5979 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5980
5981 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5982 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5983 Update all callers.
5984 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5985 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5986 Remove unused CORE_ADDR argument. Update all callers.
5987
5988 2014-04-29 Pedro Alves <palves@redhat.com>
5989
5990 * remote.c (struct packet_config) <detect>: Extend comment.
5991 (add_packet_config_cmd): Don't set the config's detect or support
5992 fields here.
5993 (init_all_packet_configs): Also initialize the config's 'detect'
5994 field.
5995 (reset_all_packet_configs_support): New function.
5996 (remote_open_1): Call reset_all_packet_configs_support instead of
5997 init_all_packet_configs.
5998 (_initialize_remote): Initialize all packet configs. Assert that
5999 all packets have an associated command, except a few known
6000 outliers.
6001
6002 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6003
6004 * dwarf2read.c (read_subrange_type): Handle dynamic
6005 DW_AT_lower_bound attributes.
6006
6007 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6008
6009 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6010 dynamic bounds before computing its upper bound.
6011 (ada_discrete_type_low_bound): Same as above with the lower bound.
6012
6013 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6014
6015 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6016 range types. Adjust the array handling implementation to
6017 take advantage of this change.
6018 (resolve_dynamic_range): New function, mostly extracted from
6019 resolve_dynamic_bounds.
6020 (resolve_dynamic_array): New function, mostly extracted from
6021 resolve_dynamic_bounds.
6022 (resolve_dynamic_bounds): Delete.
6023 (resolve_dynamic_type): Reimplement. Add handling of
6024 TYPE_CODE_RANGE types.
6025
6026 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6027
6028 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6029 handling of parallel ___XA types.
6030
6031 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6032
6033 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6034 unnecessary second call to static_unwrap_type.
6035
6036 2014-04-27 Hui Zhu <hui@codesourcery.com>
6037
6038 * stack.c (print_frame_info): Call do_gdb_disassembly with
6039 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6040
6041 2014-04-26 Doug Evans <xdje42@gmail.com>
6042
6043 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6044
6045 2014-04-25 Pedro Alves <palves@redhat.com>
6046
6047 PR server/16255
6048 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6049 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6050 and newline from built string.
6051 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6052 (linux_ptrace_attach_fail_reason): ... this.
6053 * linux-nat.c (linux_nat_attach): Adjust to use
6054 linux_ptrace_attach_fail_reason.
6055
6056 2014-04-25 Pedro Alves <palves@redhat.com>
6057
6058 * remote.c (struct remote_state): Remove multi_process_aware,
6059 non_stop_aware, cond_tracepoints, cond_breakpoints,
6060 breakpoint_commands, fast_tracepoints, static_tracepoints,
6061 install_in_trace, disconnected_tracing,
6062 enable_disable_tracepoints, string_tracing, and
6063 augmented_libraries_svr4_read fields.
6064 (remote_multi_process_p): Move further below in the file.
6065 (struct packet_config): Add comments.
6066 (update_packet_config): Delete function.
6067 (show_packet_config_cmd): Use packet_config_support.
6068 (add_packet_config_cmd): Use NULL as set callback.
6069 (packet_ok): "set remote foo-packet"-style commands no longer
6070 change config->supported -- adjust.
6071 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6072 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6073 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6074 (PACKET_QNonStop, PACKET_multiprocess_feature)
6075 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6076 (PACKET_DisconnectedTracing_feature)
6077 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6078 (set_remote_protocol_packet_cmd): Delete function.
6079 (packet_config_support, packet_support): New functions.
6080 (set_remote_protocol_Z_packet_cmd): Don't call
6081 update_packet_config.
6082 (remote_query_attached, remote_pass_signals)
6083 (remote_program_signals, remote_threads_info)
6084 (remote_threads_extra_info, remote_start_remote): Use
6085 packet_support.
6086 (remote_start_remote): Use packet_config_support and
6087 packet_support.
6088 (init_all_packet_configs): Set all packets to unknown support,
6089 instead of calling update_packet_config.
6090 (remote_check_symbols): Use packet_support.
6091 (remote_supported_packet): Unconditionally set the packet config's
6092 support status.
6093 (remote_multi_process_feature, remote_non_stop_feature)
6094 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6095 (remote_breakpoint_commands_feature)
6096 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6097 (remote_install_in_trace_feature)
6098 (remote_disconnected_tracing_feature)
6099 (remote_enable_disable_tracepoint_feature)
6100 (remote_string_tracing_feature)
6101 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6102 (remote_protocol_features): Adjust to use remote_supported_packet
6103 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6104 "ConditionalTracepoints", "ConditionalBreakpoints",
6105 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6106 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6107 "EnableDisableTracepoints", and "tracenz".
6108 (remote_query_supported): Use packet_support.
6109 (remote_open_1): Adjust.
6110 (extended_remote_attach_1): Use packet_support. Switch on the
6111 result of packet_ok instead of checking whether the packet ended
6112 up disabled.
6113 (remote_vcont_resume): Use packet_support.
6114 (remote_resume, remote_stop_ns, fetch_register_using_p)
6115 (remote_prepare_to_store, store_register_using_P)
6116 (check_binary_download, remote_write_bytes): Use packet_support.
6117 (remote_vkill): Use packet_support. Switch on the result of
6118 packet_ok instead of checking whether the packet ended up
6119 disabled.
6120 (extended_remote_supports_disable_randomization): Use
6121 packet_support.
6122 (extended_remote_run): Switch on the result of packet_ok instead
6123 of checking whether the packet ended up disabled.
6124 (remote_insert_breakpoint, remote_remove_breakpoint)
6125 (remote_insert_watchpoint, remote_remove_watchpoint)
6126 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6127 packet_support.
6128 (remote_search_memory): Use packet_config_support.
6129 (remote_get_thread_local_address, remote_get_tib_address)
6130 (remote_hostio_send_command, remote_can_execute_reverse): Use
6131 packet_support.
6132 (remote_supports_cond_tracepoints)
6133 (remote_supports_cond_breakpoints)
6134 (remote_supports_fast_tracepoints)
6135 (remote_supports_static_tracepoints)
6136 (remote_supports_install_in_trace)
6137 (remote_supports_enable_disable_tracepoint)
6138 (remote_supports_string_tracing)
6139 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6140 the packet config says the feature is enabled or disabled.
6141 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6142 (remote_get_trace_status): Use packet_support.
6143 (remote_set_disconnected_tracing): Adjust to check whether the
6144 feature is enabled with packet_support.
6145 (remote_set_trace_buffer_size, remote_use_agent)
6146 (remote_can_use_agent, remote_supports_btrace): Use
6147 packet_support.
6148 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6149 Use packet_config_support.
6150 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6151 the packet config says the feature is enabled or disabled.
6152 (set_range_stepping): Use packet_support.
6153
6154 2014-04-25 Tom Tromey <tromey@redhat.com>
6155
6156 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6157 argument.
6158
6159 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6160
6161 * NEWS: Mention support for C99 variable length arrays.
6162
6163 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6164
6165 * ada-lang.c (standard_exc): Expand introductory comment.
6166
6167 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6168 Walfred Tedeschi <walfred.tedeschi@intel.com>
6169
6170 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6171 AVX512 registers.
6172 (amd64_linux_read_description): Add code to handle AVX512 xstate
6173 mask and return respective tdesc.
6174 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6175 and features/i386/x32-avx512-linux.c.
6176 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6177 (amd64_linux_core_read_description): Add code to handle AVX512
6178 xstate mask and return respective tdesc.
6179 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6180 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6181 calculation.
6182 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6183 (tdesc_amd64_avx512_linux): New prototype.
6184 (tdesc_x32_avx512_linux): Likewise.
6185 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6186 features/i386/x32-avx512.c.
6187 (amd64_ymm_avx512_names): New register names for pseudo
6188 registers YMM16-31.
6189 (amd64_ymmh_avx512_names): New register names for raw registers
6190 YMMH16-31.
6191 (amd64_k_names): New register names for K registers.
6192 (amd64_zmmh_names): New register names for ZMM raw registers.
6193 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6194 (amd64_xmm_avx512_names): New register names for XMM16-31
6195 registers.
6196 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6197 registers.
6198 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6199 if feature is present.
6200 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6201 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6202 (AMD64_NUM_REGS): Adjust to new number of registers.
6203 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6204 registers supplied via XSTATE by AVX512 registers.
6205 (i386_linux_read_description): Add case for AVX512.
6206 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6207 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6208 (i386_linux_core_read_description): Add case for AVX512.
6209 (i386_linux_init_abi): Install supported register note section
6210 for AVX512.
6211 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6212 AVX512.
6213 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6214 registers to be number of zmm7h + 1.
6215 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6216 * i386-tdep.c: Include features/i386/i386-avx512.c.
6217 (i386_zmm_names): Add ZMM pseudo register names array.
6218 (i386_zmmh_names): Add ZMM raw register names array.
6219 (i386_k_names): Add K raw register names array.
6220 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6221 registers. AVX512 has 16 more ZMM registers than there are YMM
6222 registers.
6223 (i386_zmmh_regnum_p): Add function to look up register number of
6224 ZMM raw registers.
6225 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6226 (i386_k_regnum_p): Likewise for K raw registers.
6227 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6228 registers added by AVX512.
6229 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6230 registers added by AVX512.
6231 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6232 added by AVX512.
6233 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6234 (i386_pseudo_register_name): Add ZMM pseudo registers.
6235 (i386_zmm_type): Construct and return vector registers type for ZMM
6236 registers.
6237 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6238 ZMM0-31 pseudo registers and K registers.
6239 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6240 and YMM16-31 registers from register cache.
6241 (i386_pseudo_register_write): Add code to write K, ZMM and
6242 YMM16-31 registers.
6243 (i386_register_reggroup_p): Add code to include/exclude AVX512
6244 registers in/from respective register groups.
6245 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6246 registers if feature is present in xcr0.
6247 (i386_gdbarch_init): Add code to initialize AVX512 feature
6248 variables in tdep structure, wire in pseudo registers and call
6249 initialize_tdesc_i386_avx512.
6250 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6251 variables.
6252 (i386_regnum): Add AVX512 registers.
6253 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6254 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6255 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6256 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6257 512 bits wide.
6258 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6259 (i386_ymm_avx512_regnum_p): Likewise.
6260 (i386_k_regnum_p): Likewise.
6261 (i386_zmm_regnum_p): Likewise.
6262 (i386_zmmh_regnum_p): Likewise.
6263 * i387-tdep.c : Update year in copyright notice.
6264 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6265 XSAVE buffer.
6266 (XSAVE_YMM_AVX512_ADDR): New macro.
6267 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6268 XSAVE buffer.
6269 (XSAVE_XMM_AVX512_ADDR): New macro.
6270 (xsave_avx512_k_offset): New table for K register offsets in
6271 XSAVE buffer.
6272 (XSAVE_AVX512_K_ADDR): New macro.
6273 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6274 in XSAVE buffer.
6275 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6276 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6277 buffer.
6278 (i387_collect_xsave): Add code to collect AVX512 registers from
6279 XSAVE buffer.
6280 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6281 of XMM16-31 registers.
6282 (I387_NUM_K_REGS): New define for number of K registers.
6283 (I387_K0_REGNUM): New define for K0 register number.
6284 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6285 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6286 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6287 registers.
6288 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6289 (I387_XMM16_REGNUM): New define for XMM16 register number.
6290 (I387_YMM0_REGNUM): New define for YMM0 register number.
6291 (I387_KEND_REGNUM): New define for last K register number.
6292 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6293 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6294 number.
6295 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6296 number.
6297 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6298 size.
6299 * features/Makefile: Add AVX512 related files.
6300 * features/i386/32bit-avx512.xml: New file.
6301 * features/i386/64bit-avx512.xml: Likewise.
6302 * features/i386/amd64-avx512-linux.c: Likewise.
6303 * features/i386/amd64-avx512-linux.xml: Likewise.
6304 * features/i386/amd64-avx512.c: Likewise.
6305 * features/i386/amd64-avx512.xml: Likewise.
6306 * features/i386/i386-avx512-linux.c: Likewise.
6307 * features/i386/i386-avx512-linux.xml: Likewise.
6308 * features/i386/i386-avx512.c: Likewise.
6309 * features/i386/i386-avx512.xml: Likewise.
6310 * features/i386/x32-avx512-linux.c: Likewise.
6311 * features/i386/x32-avx512-linux.xml: Likewise.
6312 * features/i386/x32-avx512.c: Likewise.
6313 * features/i386/x32-avx512.xml: Likewise.
6314 * regformats/i386/amd64-avx512-linux.dat: New file.
6315 * regformats/i386/amd64-avx512.dat: Likewise.
6316 * regformats/i386/i386-avx512-linux.dat: Likewise.
6317 * regformats/i386/i386-avx512.dat: Likewise.
6318 * regformats/i386/x32-avx512-linux.dat: Likewise.
6319 * regformats/i386/x32-avx512.dat: Likewise.
6320 * NEWS: Add note about new support for AVX512.
6321
6322
6323 2014-04-23 Pedro Alves <palves@redhat.com>
6324
6325 * breakpoint.c (insert_bp_location): Tolerate errors if the
6326 breakpoint is set in a user-loaded objfile.
6327 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6328 location is marked shlib_disabled. If the breakpoint is set in a
6329 user-loaded objfile is a GDB-side memory breakpoint, validate it
6330 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6331 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6332 flag.
6333 * mem-break.c (memory_validate_breakpoint): New function.
6334 * objfiles.c (userloaded_objfile_contains_address_p): New
6335 function.
6336 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6337 * target.h (memory_validate_breakpoint): New declaration.
6338
6339 2014-04-23 Pedro Alves <palves@redhat.com>
6340
6341 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6342 the breakpoint is set in a shared library, only suppress
6343 errors for software breakpoints, not hardware breakpoints.
6344
6345 2014-04-22 Pedro Alves <palves@redhat.com>
6346
6347 * infrun.c (schedlock_applies): New function, factored out from
6348 find_thread_needs_step_over.
6349 (find_thread_needs_step_over): Use it.
6350 (switch_back_to_stepped_thread): Always clear trap_expected if the
6351 step over is finished. Return early if scheduler locking applies.
6352 Look for the stepping thread and a potential step-over thread with
6353 a single loop.
6354 (currently_stepping_or_nexting_callback): Delete.
6355
6356 2014-04-22 Nick Clifton <nickc@redhat.com>
6357
6358 * NEWS: Mention that ARM sim now supports tracing.
6359
6360 2014-04-22 Yao Qi <yao@codesourcery.com>
6361
6362 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6363 to ...
6364 * tracefile.c (tracefile_fetch_registers): ... it. New
6365 function.
6366 * tracefile.h (tracefile_fetch_registers): Declare.
6367 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6368 tracefile_fetch_registers.
6369
6370 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6371
6372 PR gdb/14018
6373 * windows-nat.c (thread_rec): Don't display a warning when
6374 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6375 fails for any reason, set th->suspended to -1, so that we don't
6376 try to resume such a thread. Also, don't return NULL in these
6377 cases, to avoid completely ruin the session due to "PC register is
6378 not available" error.
6379 (do_windows_fetch_inferior_registers): Check errors in
6380 GetThreadContext call.
6381 (windows_continue): Accept an additional argument KILLED; if not
6382 zero, ignore errors in the SetThreadContext call, since the
6383 inferior was killed and is shutting down.
6384 (windows_resume, get_windows_debug_event)
6385 (windows_create_inferior, windows_mourn_inferior)
6386 (windows_kill_inferior): All callers of windows_continue changed
6387 to adjust to its new calling sequence.
6388
6389 2014-04-19 Yao Qi <yao@codesourcery.com>
6390
6391 * ctf.c (ctf_open): Call post_create_inferior.
6392
6393 2014-04-19 Yao Qi <yao@codesourcery.com>
6394
6395 * ctf.c (handle_id): New static variable.
6396 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6397 value. Get the declaration of event "register" and get length
6398 of field "contents".
6399
6400 2014-04-19 Yao Qi <yao@codesourcery.com>
6401
6402 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6403
6404 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6405
6406 * valops.c (oload_method_static): Remove unnecessary argument
6407 METHOD. Update all callers.
6408
6409 2014-04-18 Pedro alves <palves@redhat.com>
6410 Tom Tromey <tromey@redhat.com>
6411
6412 PR backtrace/15558
6413 * frame.c (get_prev_frame_1): Rename to ...
6414 (get_prev_frame_always): ... this, and make extern. Adjust.
6415 (skip_artificial_frames): Use get_prev_frame_always.
6416 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6417 (get_frame_unwind_stop_reason): Adjust to rename.
6418 * frame.h (get_prev_frame_always): Declare.
6419 * inline-frame.c: Include frame.h.
6420 (inline_frame_this_id): Use get_prev_frame_always.
6421
6422 2014-04-18 Tristan Gingold <gingold@adacore.com>
6423
6424 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6425 code by using bfd_mach_o_get_base_address.
6426
6427 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6428
6429 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6430 (spu_ax_pseudo_register_collect): New function.
6431 (spu_ax_pseudo_register_push_stack): Likewise.
6432 (spu_dwarf_reg_to_regnum): Likewise.
6433 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6434
6435 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6436
6437 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6438 Replace FRAME argument with FRAME_ID.
6439 * gdbarch.c, gdbarch.h: Regenerate.
6440 * findvar.c (default_value_from_register): Add GDBARCH argument;
6441 replace FRAME by FRAME_ID. No longer call get_frame_id.
6442 (value_from_register): Update call to gdbarch_value_from_register.
6443 * value.h (default_value_from_register): Update prototype.
6444 * s390-linux-tdep.c (s390_value_from_register): Update interface
6445 and call to default_value_from_register.
6446 * spu-tdep.c (spu_value_from_register): Likewise.
6447
6448 * findvar.c (address_from_register): Remove TYPE argument.
6449 Do not call value_from_register; use gdbarch_value_from_register
6450 with null_frame_id instead.
6451 * value.h (address_from_register): Update prototype.
6452 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6453 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6454 address_from_register interface change.
6455
6456 2014-04-17 Yao Qi <yao@codesourcery.com>
6457
6458 * gdbtypes.h: Update comments to link to types and macros'
6459 definitions.
6460
6461 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6462
6463 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6464
6465 2014-04-16 Keith Seitz <keiths@redhat.com>
6466
6467 PR gdb/15827
6468 * dwarf2read.c (skip_one_die): Check that all relative-offset
6469 sibling DIEs fall within range of the current reader's buffer.
6470 (read_partial_die): Likewise.
6471
6472 2014-04-16 Keith Seitz <keiths@redhat.com>
6473
6474 PR c++/16597
6475 * cp-namespace.c (lookup_symbol_file): If the type name of
6476 `this' is NULL, return immediately.
6477
6478 2014-04-14 Keith Seitz <keiths@redhat.com>
6479
6480 PR c++/16253
6481 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6482 from symbol_matches_domain in symtab.c. All local callers
6483 of symbol_matches_domain updated.
6484 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6485 search STRUCT_DOMAIN.
6486 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6487 independently. standard_lookup will do that automatically.
6488 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6489 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6490 (cp_lookup_symbol_in_namespace): Likewise.
6491 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6492 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6493 may return a STRUCT_DOMAIN match.
6494 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6495 * cp-support.c: Include language.h.
6496 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6497 VAR_DOMAIN.
6498 * psymtab.c (match_partial_symbol): Compare the requested
6499 domain with the symbol's domain directly.
6500 (lookup_partial_symbol): Likewise.
6501 * symtab.c (lookup_symbol_in_language): Explain when/why
6502 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6503 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6504 appropriate languages.
6505 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6506 and moved to ada-lang.c
6507 (lookup_block_symbol): Explain that this function only returns
6508 symbol matching the requested DOMAIN.
6509 Compare the requested domain with the symbol's domain directly.
6510 (iterate_over_symbols): Compare the requested domain with the
6511 symbol's domain directly.
6512 * symtab.h (symbol_matches_domain): Remove.
6513
6514 2014-04-14 Tom Tromey <tromey@redhat.com>
6515
6516 PR c++/15246:
6517 * c-exp.y (type_aggregate_p): New function.
6518 (qualified_name, classify_inner_name): Use it.
6519 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6520 and TYPE_TARGET_TYPE of an enum type.
6521 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6522 an enum type.
6523 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6524 handle TYPE_DECLARED_CLASS.
6525 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6526 types.
6527 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6528 * valops.c (enum_constant_from_type): New function.
6529 (value_aggregate_elt): Use it.
6530 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6531 TYPE_CODE_ENUM.
6532
6533 2014-04-14 Tom Tromey <tromey@redhat.com>
6534
6535 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6536 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6537 const.
6538 * value.h (value_aggregate_elt): Update.
6539
6540 2014-04-14 Tom Tromey <tromey@redhat.com>
6541
6542 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6543
6544 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6545
6546 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6547 (evaluate_subexp_standard): Pass noside argument.
6548 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6549 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6550 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6551 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6552 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6553
6554 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6555
6556 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6557 points to a constant blob.
6558
6559 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6560
6561 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6562 property and store it as the high bound and flag the range accordingly.
6563 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6564 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6565 * gdbtypes.h (enum range_flags): New enum.
6566 (struct range_bounds): Add flags member.
6567
6568 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6569
6570 * c-typeprint.c (c_type_print_varspec_suffix): Added
6571 check for not yet resolved high bound. If unresolved, print
6572 "variable length" string to the console instead of random
6573 length.
6574
6575 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6576
6577 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6578 value.
6579 (ada_template_to_fixed_record_type_1): Likewise.
6580 (ada_to_fixed_type_1): Likewise.
6581 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6582 (cp_print_value): Likewise.
6583 * d-valprint.c (dynamic_array_type): Likewise.
6584 * findvar.c (address_of_variable): Likewise.
6585 * jv-valprint.c (java_value_print): Likewise.
6586 * valops.c (value_ind): Likewise.
6587 * value.c (coerce_ref): Likewise.
6588
6589 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6590
6591 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6592 value and retrieve the dynamic type size.
6593
6594 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6595
6596 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6597 passed to sizeof is dynamic evaluate the argument to compute the length.
6598
6599 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6600 Joel Brobecker <brobecker@adacore.com>
6601
6602 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6603 (dwarf2_evaluate_property): New function.
6604 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6605 * dwarf2read.c (attr_to_dynamic_prop): New function.
6606 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6607 attribute.
6608 * gdbtypes.c: Include dwarf2loc.h.
6609 (is_dynamic_type): New function.
6610 (resolve_dynamic_type): New function.
6611 (resolve_dynamic_bounds): New function.
6612 (get_type_length): New function.
6613 (check_typedef): Use get_type_length to compute type length.
6614 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6615 (TYPE_LOW_BOUND_KIND): New macro.
6616 (is_dynamic_type): New function prototype.
6617 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6618 to resolve dynamic properties of the type. Update comment.
6619 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6620
6621 2014-04-14 Richard Henderson <rth@redhat.com>
6622
6623 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6624
6625 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6626 Doug Evans <xdje42@gmail.com>
6627
6628 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6629 dereference TYPE_CODE_REF values.
6630
6631 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6632
6633 Revert the following changes due to regressions:
6634
6635 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6636 (dwarf2_evaluate_property): New function.
6637 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6638 * dwarf2read.c (attr_to_dynamic_prop): New function.
6639 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6640 attribute.
6641 * gdbtypes.c: Include dwarf2loc.h.
6642 (is_dynamic_type): New function.
6643 (resolve_dynamic_type): New function.
6644 (resolve_dynamic_bounds): New function.
6645 (get_type_length): New function.
6646 (check_typedef): Use get_type_length to compute type length.
6647 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6648 (TYPE_LOW_BOUND_KIND): New macro.
6649 (is_dynamic_type): New function prototype.
6650 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6651 to resolve dynamic properties of the type. Update comment.
6652 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6653
6654 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6655 passed to sizeof is dynamic evaluate the argument to compute the length.
6656
6657 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6658 value and retrieve the dynamic type size.
6659
6660 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6661 (ada_template_to_fixed_record_type_1): Likewise.
6662 (ada_to_fixed_type_1): Likewise.
6663 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6664 (cp_print_value): Likewise.
6665 * d-valprint.c (dynamic_array_type): Likewise.
6666 * eval.c (evaluate_subexp_with_coercion): Likewise.
6667 * findvar.c (address_of_variable): Likewise.
6668 * jv-valprint.c (java_value_print): Likewise.
6669 * valops.c (value_ind): Likewise.
6670 * value.c (coerce_ref): Likewise.
6671
6672 * c-typeprint.c (c_type_print_varspec_suffix): Added
6673 check for not yet resolved high bound. If unresolved, print
6674 "variable length" string to the console instead of random
6675 length.
6676
6677 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6678 property and store it as the high bound and flag the range accordingly.
6679 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6680 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6681 * gdbtypes.h (enum range_flags): New enum.
6682 (struct range_bounds): Add flags member.
6683
6684 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6685 points to a constant blob.
6686
6687 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6688 (evaluate_subexp_standard): Pass noside argument.
6689 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6690 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6691 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6692 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6693 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6694
6695 2014-04-11 Keith Seitz <keiths@redhat.com>
6696
6697 PR c++/16675
6698 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6699 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6700 reference types.
6701
6702 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6703
6704 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6705 (evaluate_subexp_standard): Pass noside argument.
6706 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6707 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6708 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6709 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6710 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6711
6712 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6713
6714 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6715 points to a constant blob.
6716
6717 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6718
6719 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6720 property and store it as the high bound and flag the range accordingly.
6721 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6722 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6723 * gdbtypes.h (enum range_flags): New enum.
6724 (struct range_bounds): Add flags member.
6725
6726 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6727
6728 * c-typeprint.c (c_type_print_varspec_suffix): Added
6729 check for not yet resolved high bound. If unresolved, print
6730 "variable length" string to the console instead of random
6731 length.
6732
6733 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6734
6735 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6736 (ada_template_to_fixed_record_type_1): Likewise.
6737 (ada_to_fixed_type_1): Likewise.
6738 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6739 (cp_print_value): Likewise.
6740 * d-valprint.c (dynamic_array_type): Likewise.
6741 * eval.c (evaluate_subexp_with_coercion): Likewise.
6742 * findvar.c (address_of_variable): Likewise.
6743 * jv-valprint.c (java_value_print): Likewise.
6744 * valops.c (value_ind): Likewise.
6745 * value.c (coerce_ref): Likewise.
6746
6747 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6748
6749 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6750 value and retrieve the dynamic type size.
6751
6752 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6753
6754 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6755 passed to sizeof is dynamic evaluate the argument to compute the length.
6756
6757 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6758
6759 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6760 (dwarf2_evaluate_property): New function.
6761 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6762 * dwarf2read.c (attr_to_dynamic_prop): New function.
6763 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6764 attribute.
6765 * gdbtypes.c: Include dwarf2loc.h.
6766 (is_dynamic_type): New function.
6767 (resolve_dynamic_type): New function.
6768 (resolve_dynamic_bounds): New function.
6769 (get_type_length): New function.
6770 (check_typedef): Use get_type_length to compute type length.
6771 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6772 (TYPE_LOW_BOUND_KIND): New macro.
6773 (is_dynamic_type): New function prototype.
6774 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6775 to resolve dynamic properties of the type. Update comment.
6776 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6777
6778 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6779
6780 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6781 declaring high/low bounds and change uses accordingly. Call
6782 create_range_type instead of create_static_range_type.
6783 * gdbtypes.c (create_range_type): New function.
6784 (create_range_type): Convert bounds into struct bound_prop and pass
6785 them to create_range_type.
6786 * gdbtypes.h (struct bound_prop): New struct.
6787 (create_range_type): New function prototype.
6788 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6789 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6790 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6791 part of the bound.
6792 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6793
6794 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6795
6796 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6797 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6798 * ada-lang.c: All uses of create_range_type updated.
6799 * coffread.c: All uses of create_range_type updated.
6800 * dwarf2read.c: All uses of create_range_type updated.
6801 * f-exp.y: All uses of create_range_type updated.
6802 * m2-valprint.c: All uses of create_range_type updated.
6803 * mdebugread.c: All uses of create_range_type updated.
6804 * stabsread.c: All uses of create_range_type updated.
6805 * valops.c: All uses of create_range_type updated.
6806 * valprint.c: All uses of create_range_type updated.
6807
6808 2014-04-10 Pedro Alves <palves@redhat.com>
6809
6810 * breakpoint.c (single_step_breakpoints)
6811 (single_step_gdbarch): Move up in the file.
6812 (one_breakpoint_xfer_memory): New function, factored out from ...
6813 (breakpoint_xfer_memory): ... here. Also process single-step
6814 breakpoints.
6815
6816 2014-04-09 Tristan Gingold <gingold@adacore.com>
6817
6818 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6819 comments.
6820 (darwin_decode_exception_message): Free port only after use.
6821
6822 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6823
6824 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6825 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6826 when setting the size of call_length.
6827
6828 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6829
6830 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6831 dereference TYPE_CODE_REF values.
6832
6833 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6834
6835 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6836 end of warning message.
6837
6838 2014-04-03 Doug Evans <dje@google.com>
6839
6840 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6841 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6842
6843 2014-04-02 Alan Modra <amodra@gmail.com>
6844
6845 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6846 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6847 (struct symbol_file_add_from_memory_args): Add size field.
6848 (find_vdso_size): New function.
6849 (add_vsyscall_page): Attempt to find vdso size.
6850
6851 2014-04-01 Doug Evans <dje@google.com>
6852
6853 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6854
6855 2014-04-01 Tristan Gingold <gingold@adacore.com>
6856
6857 * darwin-nat.c (darwin_encode_reply): Add prototype.
6858 (darwin_decode_exception_message): Reply to unknown inferiors.
6859 (darwin_decode_message): Handle message by id. Ignore message
6860 to unknown inferior.
6861 (darwin_wait): Discard unknown messages, add debug trace.
6862
6863 2014-03-31 Doug Evans <dje@google.com>
6864
6865 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6866 comp_dir_string.
6867
6868 2014-03-31 Doug Evans <dje@google.com>
6869
6870 New option "set print symbol-loading".
6871 * NEWS: Mention it.
6872 * solib.c (solib_read_symbols): Only print symbol loading messages
6873 if requested.
6874 (solib_add): If symbol loading is in "brief" mode, notify user
6875 symbols are being loaded.
6876 (reload_shared_libraries_1): Ditto.
6877 * symfile.c (print_symbol_loading_off): New static global.
6878 (print_symbol_loading_brief): New static global.
6879 (print_symbol_loading_full): New static global.
6880 (print_symbol_loading_enums): New static global.
6881 (print_symbol_loading): New static global.
6882 (print_symbol_loading_p): New function.
6883 (symbol_file_add_with_addrs): Only print symbol loading messages
6884 if requested.
6885 (_initialize_symfile): Register "print symbol-loading" set/show
6886 command.
6887 * symfile.h (print_symbol_loading_p): Declare.
6888
6889 2014-03-30 Doug Evans <xdje42@gmail.com>
6890
6891 * infrun.c (set_last_target_status): New function.
6892 (handle_inferior_event): Call it.
6893
6894 2014-03-30 Doug Evans <xdje42@gmail.com>
6895
6896 * inferior.h (enum stop_kind): Improve comment.
6897
6898 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6899
6900 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6901 a reference, strip the reference layer before calling
6902 the lang_ops value_has_mutated callback.
6903
6904 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6905
6906 Remove some globals from our parser.
6907 * language.c (unk_lang_parser): Add "struct parser_state"
6908 argument.
6909 * language.h (struct language_defn) <la_parser>: Likewise.
6910 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6911 (initialize_expout): Add "struct parser_state" argument.
6912 Rewrite function to use the parser state.
6913 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6914 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6915 write_exp_elt_longcst, write_exp_elt_dblcst,
6916 write_exp_elt_decfloatcst, write_exp_elt_type,
6917 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6918 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6919 write_dollar_variable): Likewise.
6920 (parse_exp_in_context_1): Use parser state.
6921 (insert_type_address_space): Add "struct parser_state" argument.
6922 Use parser state.
6923 (increase_expout_size): New function.
6924 * parser-defs.h: Forward declare "struct language_defn" and
6925 "struct parser_state".
6926 (expout, expout_size, expout_ptr): Remove extern declarations.
6927 (parse_gdbarch, parse_language): Rewrite macro declarations to
6928 accept the parser state.
6929 (struct parser_state): New struct.
6930 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6931 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6932 write_exp_elt_decfloatcst, write_exp_elt_type,
6933 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6934 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6935 write_exp_msymbol, write_dollar_variable,
6936 mark_struct_expression, insert_type_address_space): Add "struct
6937 parser_state" argument.
6938 (increase_expout_size): New function.
6939 * utils.c (do_clear_parser_state): New function.
6940 (make_cleanup_clear_parser_state): Likewise.
6941 * utils.h (make_cleanup_clear_parser_state): New function
6942 prototype.
6943 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6944 Update calls to write_exp* in order to pass the parser state.
6945 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6946 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6947 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6948 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6949 * stap-probe.c (stap_parse_register_operand): Likewise.
6950 (stap_parse_single_operand): Likewise.
6951 (stap_parse_argument_1): Likewise.
6952 (stap_parse_argument): Use parser state.
6953 * stap-probe.h: Include "parser-defs.h".
6954 (struct stap_parse_info) <pstate>: New field.
6955 * c-exp.y (parse_type): Rewrite to use parser state.
6956 (yyparse): Redefine to c_parse_internal.
6957 (pstate): New global variable.
6958 (parse_number): Add "struct parser_state" argument.
6959 (write_destructor_name): Likewise.
6960 (type_exp): Update calls to write_exp* and similars in order to
6961 use parser state.
6962 (exp1, exp, variable, qualified_name, space_identifier,
6963 typename, typebase): Likewise.
6964 (write_destructor_name, parse_number, lex_one_token,
6965 classify_name, classify_inner_name, c_parse): Add "struct
6966 parser_state" argument. Update function to use parser state.
6967 * c-lang.h: Forward declare "struct parser_state".
6968 (c_parse): Add "struct parser_state" argument.
6969 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6970 (yyparse): Redefine macro to ada_parse_internal.
6971 (pstate): New variable.
6972 (write_int, write_object_renaming, write_var_or_type,
6973 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6974 type_int, type_long, type_long_long, type_float, type_double,
6975 type_long_double, type_char, type_boolean, type_system_address):
6976 Add "struct parser_state" argument.
6977 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6978 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6979 var_or_type, aggregate, aggregate_component_list,
6980 positional_list, others, component_group,
6981 component_associations): Update calls to write_exp* and similar
6982 functions in order to use parser state.
6983 (ada_parse, write_var_from_sym, write_int,
6984 write_exp_op_with_string, write_object_renaming,
6985 find_primitive_type, write_selectors, write_ambiguous_var,
6986 write_var_or_type, write_name_assoc, type_int, type_long,
6987 type_long_long, type_float, type_double, type_long_double,
6988 type_char, type_boolean, type_system_address): Add "struct
6989 parser_state" argument. Adjust function to use parser state.
6990 * ada-lang.c (parse): Likewise.
6991 * ada-lang.h: Forward declare "struct parser_state".
6992 (ada_parse): Add "struct parser_state" argument.
6993 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6994 calls to both functions.
6995 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6996 parser state.
6997 (yyparse): Redefine macro to f_parse_internal.
6998 (pstate): New variable.
6999 (parse_number): Add "struct parser_state" argument.
7000 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7001 and similars in order to use parser state.
7002 (parse_number): Adjust code to use parser state.
7003 (yylex): Likewise.
7004 (f_parse): New function.
7005 * f-lang.h: Forward declare "struct parser_state".
7006 (f_parse): Add "struct parser_state" argument.
7007 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7008 parser state.
7009 (yyparse): Redefine macro for java_parse_internal.
7010 (pstate): New variable.
7011 (push_expression_name, push_expression_name, insert_exp): Add
7012 "struct parser_state" argument.
7013 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7014 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7015 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7016 PostIncrementExpression, PostDecrementExpression,
7017 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7018 UnaryExpressionNotPlusMinus, CastExpression,
7019 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7020 RelationalExpression, EqualityExpression, AndExpression,
7021 ExclusiveOrExpression, InclusiveOrExpression,
7022 ConditionalAndExpression, ConditionalOrExpression,
7023 ConditionalExpression, Assignment, LeftHandSide): Update
7024 calls to write_exp* and similars in order to use parser state.
7025 (parse_number): Ajust code to use parser state.
7026 (yylex): Likewise.
7027 (java_parse): New function.
7028 (push_variable): Add "struct parser_state" argument. Adjust
7029 code to user parser state.
7030 (push_fieldnames, push_qualified_expression_name,
7031 push_expression_name, insert_exp): Likewise.
7032 * jv-lang.h: Forward declare "struct parser_state".
7033 (java_parse): Add "struct parser_state" argument.
7034 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7035 parser state.
7036 (yyparse): Redefine macro to m2_parse_internal.
7037 (pstate): New variable.
7038 (type_exp, exp, fblock, variable, type): Update calls to
7039 write_exp* and similars to use parser state.
7040 (yylex): Likewise.
7041 (m2_parse): New function.
7042 * m2-lang.h: Forward declare "struct parser_state".
7043 (m2_parse): Add "struct parser_state" argument.
7044 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7045 * objc-lang.h: Forward declare "struct parser_state".
7046 (end_msglist): Add "struct parser_state" argument.
7047 * p-exp.y (parse_type): Rewrite macro to use parser state.
7048 (yyparse): Redefine macro to pascal_parse_internal.
7049 (pstate): New variable.
7050 (parse_number): Add "struct parser_state" argument.
7051 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7052 write_exp* and similars in order to use parser state.
7053 (parse_number, yylex): Adjust code to use parser state.
7054 (pascal_parse): New function.
7055 * p-lang.h: Forward declare "struct parser_state".
7056 (pascal_parse): Add "struct parser_state" argument.
7057 * go-exp.y (parse_type): Rewrite macro to use parser state.
7058 (yyparse): Redefine macro to go_parse_internal.
7059 (pstate): New variable.
7060 (parse_number): Add "struct parser_state" argument.
7061 (type_exp, exp1, exp, variable, type): Update calls to
7062 write_exp* and similars in order to use parser state.
7063 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7064 to use parser state.
7065 (go_parse): Likewise.
7066 * go-lang.h: Forward declare "struct parser_state".
7067 (go_parse): Add "struct parser_state" argument.
7068
7069 2014-03-27 Doug Evans <dje@google.com>
7070
7071 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7072
7073 2014-03-27 Doug Evans <dje@google.com>
7074
7075 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7076 Remove argument abbrev_section. All callers updated.
7077
7078 2014-03-27 Doug Evans <dje@google.com>
7079
7080 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7081 addr_base, ranges_base.
7082
7083 2014-03-26 Keith Seitz <keiths@redhat.com>
7084
7085 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7086 types, not VAR_DOMAIN.
7087
7088 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7089
7090 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7091 "ra" registers.
7092 * features/nios2-linux.c: Regenerated.
7093 * features/nios2.c: Regenerated.
7094
7095 2014-03-25 Pedro Alves <palves@redhat.com>
7096
7097 * cli/cli-script.c (script_from_file): Force the interpreter to
7098 sync mode.
7099
7100 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7101
7102 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7103 small stack allocation.
7104
7105 2014-03-24 Tristan Gingold <gingold@adacore.com>
7106
7107 * darwin-nat.c (exc_server): Remove unused prototype.
7108 (darwin_dump_message): Correctly display data on x86_64.
7109 (darwin_encode_reply): Fix style.
7110 Add comments and fix indentation.
7111
7112 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7113
7114 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7115
7116 2014-03-22 Doug Evans <xdje42@gmail.com>
7117
7118 * infcmd.c: Whitespace fixes.
7119 (interrupt_command): Merge two function comments into one.
7120
7121 2014-03-22 Doug Evans <xdje42@gmail.com>
7122
7123 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7124 All uses updated.
7125
7126 2014-03-22 Yao Qi <yao@codesourcery.com>
7127
7128 * remote.c (target_read_live_memory): Remove.
7129 (memory_xfer_live_readonly_partial): Rename it to
7130 remote_xfer_live_readonly_partial. Remove argument 'object'.
7131 All callers updated. Call remote_read_bytes_1
7132 instead of target_read_live_memory.
7133 * tracepoint.c (set_traceframe_number): Remove.
7134 (make_cleanup_restore_traceframe_number): Likewise .
7135 * tracepoint.h (set_traceframe_number): Remove declaration.
7136 (make_cleanup_restore_traceframe_number): Likewise.
7137
7138 2014-03-22 Yao Qi <yao@codesourcery.com>
7139
7140 * remote.c (remote_read_bytes): Move code on reading from the
7141 remote stub to ...
7142 (remote_read_bytes_1): ... here. New function.
7143
7144 2014-03-22 Yao Qi <yao@codesourcery.com>
7145
7146 * ctf.c (ctf_xfer_partial): Check the return value of
7147 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7148 return TARGET_XFER_UNAVAILABLE.
7149 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7150 * target.c (target_read_live_memory): Move it to remote.c.
7151 (memory_xfer_live_readonly_partial): Likewise.
7152 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7153 * remote.c (target_read_live_memory): Moved from target.c.
7154 (memory_xfer_live_readonly_partial): Likewise.
7155 (remote_read_bytes): Factored out from
7156 memory_xfer_partial_1.
7157
7158 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7159
7160 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7161 NULL pointer.
7162
7163 2014-03-21 Pedro Alves <palves@redhat.com>
7164
7165 * infrun.c (normal_stop): Extend comment.
7166
7167 2014-03-21 Hui Zhu <hui@codesourcery.com>
7168 Pedro Alves <palves@redhat.com>
7169
7170 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7171 static buffer.
7172 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7173 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7174 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7175
7176 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7177
7178 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7179 `z' formatted output modifier.
7180
7181 2014-03-20 Tom Tromey <tromey@redhat.com>
7182 Sergio Durigan Junior <sergiodj@redhat.com>
7183
7184 * probe.c (parse_probes): Turn assert into an ordinary error.
7185 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7186 exceptions when parsing probes. Rearrange the code for clarity.
7187
7188 2014-03-20 Tom Tromey <tromey@redhat.com>
7189
7190 PR gdb/14135
7191 * top.c (execute_command): Only dispatch events if the command
7192 started the target.
7193
7194 2014-03-20 Tom Tromey <tromey@redhat.com>
7195
7196 PR cli/15718
7197 * infcall.c: Include event-top.h.
7198 (run_inferior_call): Call async_disable_stdin if needed.
7199
7200 2014-03-20 Pedro Alves <palves@redhat.com>
7201
7202 * infrun.c (prepare_to_proceed): Delete.
7203 (thread_still_needs_step_over): New function.
7204 (find_thread_needs_step_over): New function.
7205 (proceed): If the current thread needs a step-over, set its
7206 steping_over_breakpoint flag. Adjust to use
7207 find_thread_needs_step_over instead of prepare_to_proceed.
7208 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7209 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7210 breakpoint.
7211 (switch_back_to_stepped_thread): Step over breakpoints of all
7212 threads not the stepping thread, before switching back to the
7213 stepping thread.
7214
7215 2014-03-20 Pedro Alves <palves@redhat.com>
7216
7217 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7218 extern.
7219 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7220 * infrun.c (saved_singlestep_ptid)
7221 (stepping_past_singlestep_breakpoint): Delete.
7222 (resume): Remove stepping_past_singlestep_breakpoint handling.
7223 (proceed): Store the prev_pc of the stepping thread too.
7224 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7225 singlestep_pc.
7226 (enum infwait_states): Delete infwait_thread_hop_state.
7227 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7228 field.
7229 (handle_inferior_event): Adjust.
7230 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7231 handling and the thread-hop code. Before removing single-step
7232 breakpoints, check whether the thread hit a single-step breakpoint
7233 of another thread. If it did, the trap is not a random signal.
7234 (switch_back_to_stepped_thread): If the event thread hit a
7235 single-step breakpoint, unblock it before switching to the
7236 stepping thread. Handle the case of the stepped thread having
7237 advanced already.
7238 (keep_going): Handle the case of the current thread moving past a
7239 single-step breakpoint.
7240
7241 2014-03-20 Pedro Alves <palves@redhat.com>
7242
7243 PR breakpoints/7143
7244 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7245 are being stepped over.
7246 (breakpoint_address_match): Make extern.
7247 * breakpoint.h (breakpoint_address_match): New declaration.
7248 * inferior.h (stepping_past_instruction_at): New declaration.
7249 * infrun.c (struct step_over_info): New type.
7250 (step_over_info): New global.
7251 (set_step_over_info, clear_step_over_info)
7252 (stepping_past_instruction_at): New functions.
7253 (handle_inferior_event): Clear the step-over info when
7254 trap_expected is cleared.
7255 (resume): Remove now stale comment.
7256 (clear_proceed_status): Clear step-over info.
7257 (proceed): Adjust step-over handling to set or clear the step-over
7258 info instead of removing all breakpoints.
7259 (handle_signal_stop): When setting up a thread-hop, don't remove
7260 breakpoints here.
7261 (stop_stepping): Clear step-over info.
7262 (keep_going): Adjust step-over handling to set or clear step-over
7263 info and then always inserting breakpoints, instead of removing
7264 all breakpoints when stepping over one.
7265
7266 2014-03-20 Pedro Alves <palves@redhat.com>
7267
7268 * infrun.c (previous_inferior_ptid): Adjust comment.
7269 (deferred_step_ptid): Delete.
7270 (infrun_thread_ptid_changed, prepare_to_proceed)
7271 (init_wait_for_inferior): Adjust.
7272 (handle_signal_stop): Delete deferred_step_ptid handling.
7273
7274 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7275
7276 PR gdb/15358
7277 * defs.h (sync_quit_force_run): New declaration.
7278 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7279 * event-top.c (async_sigterm_handler): New declaration.
7280 (async_sigterm_token): New variable.
7281 (async_init_signals): Create also async_sigterm_token.
7282 (async_sigterm_handler): New function.
7283 (sync_quit_force_run): New variable.
7284 (handle_sigterm): Replace quit_force call by other calls.
7285 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7286
7287 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7288
7289 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7290 offset into SPE pseudo registers.
7291
7292 2014-03-18 Pedro Alves <palves@redhat.com>
7293
7294 PR gdb/13860
7295 * inferior.h (print_stop_event): Declare.
7296 * infrun.c (print_stop_event): New, factored out from ...
7297 (normal_stop): ... this.
7298 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7299 of bpstat_print/print_stack_frame.
7300
7301 2014-03-17 Tom Tromey <tromey@redhat.com>
7302
7303 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7304
7305 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7306
7307 * ada-lang.c (decode_constrained_packed_array): Perform a
7308 minimal coercion for reference with coerce_ref instead of
7309 ada_coerce_ref.
7310
7311 2014-03-17 Tristan Gingold <gingold@adacore.com>
7312
7313 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7314 (darwin_solib_create_inferior_hook): Emit a warning if version
7315 is unhandled.
7316
7317 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7318
7319 * python/py-value.c (get_field_flag): Cast flag_name argument to
7320 PyObject_GetAttrString to support Python 2.4.
7321
7322 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7323
7324 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7325 (Global Maintainers): Remove Jan Kratochvil.
7326
7327 2014-03-14 Pedro Alves <palves@redhat.com>
7328
7329 * inferior.h (terminal_ours_for_output): Rename to ...
7330 (child_terminal_ours_for_output): ... this.
7331 (terminal_save_ours): Rename to ...
7332 (child_terminal_save_ours): ... this.
7333 (terminal_ours): Rename to ...
7334 (child_terminal_ours): ... this.
7335 (terminal_inferior): Rename to ...
7336 (child_terminal_inferior): ... this.
7337 (terminal_init_inferior): Rename to ...
7338 (child_terminal_init_inferior): ... this.
7339 (terminal_init_inferior_with_pgrp): Rename to ...
7340 (child_terminal_init_inferior_with_pgrp): ... this.
7341 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7342 (child_terminal_init_with_pgrp): ... this.
7343 (terminal_save_ours): Rename to ...
7344 (child_terminal_save_ours): ... this.
7345 (terminal_init_inferior): Rename to ...
7346 (child_terminal_init): ... this. Adjust.
7347 (terminal_inferior): Rename to ...
7348 (child_terminal_inferior): ... this.
7349 (terminal_ours_for_output): Rename to ...
7350 (child_terminal_ours_for_output): ... this. Adjust.
7351 (terminal_ours): Rename to ...
7352 (child_terminal_ours): ... this.
7353 (terminal_ours_1): Rename to ...
7354 (child_terminal_ours_1): ... this. Adjust.
7355 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7356 * windows-nat.c (do_initial_windows_stuff): Adjust.
7357 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7358 (gnu_terminal_init): ... this. Adjust.
7359 (gnu_target): Adjust.
7360 * inf-child.c (inf_child_target): Adjust.
7361
7362 2014-03-13 Doug Evans <xdje42@gmail.com>
7363
7364 PR guile/16612
7365 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7366 new eq?-hashtab.
7367
7368 2014-03-13 Doug Evans <xdje42@gmail.com>
7369
7370 * value.c (record_latest_value): Call release_value_or_incref
7371 instead of release_value.
7372
7373 2014-03-13 Pedro Alves <palves@redhat.com>
7374
7375 * procfs.c (procfs_target): Don't override to_shortname,
7376 to_longname or to_doc.
7377
7378 2014-03-13 Pedro Alves <palves@redhat.com>
7379
7380 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7381 Unix in user visible strings.
7382
7383 2014-03-12 Stan Shebs <stan@codesourcery.com>
7384
7385 * gdbtypes.h: Annotate comments for Doxygen, add a page
7386 block comment with some general info.
7387
7388 2014-03-12 Pedro Alves <palves@redhat.com>
7389
7390 * infcmd.c (prepare_execution_command): New function, factored out
7391 from several execution commands.
7392 (run_command_1, continue_command, step_1, jump_command)
7393 (signal_command, until_command, advance_command, finish_command)
7394 (attach_command): Use prepare_execution_command.
7395
7396 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7397
7398 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7399 (MAX_BPTS): Define.
7400 (MAX_WPTS): Define.
7401 (struct arm_linux_thread_points): Removed.
7402 (struct arm_linux_process_info): New.
7403 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7404 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7405 (arm_linux_find_breakpoints_by_tid): Removed.
7406 (struct arch_lwp_info): New.
7407 (arm_linux_find_process_pid): New functions.
7408 (arm_linux_add_process): New functions.
7409 (arm_linux_process_info_get): New functions.
7410 (arm_linux_forget_process): New function.
7411 (arm_linux_get_debug_reg_state): New function.
7412 (struct update_registers_data): New.
7413 (update_registers_callback): New function.
7414 (arm_linux_insert_hw_breakpoint1): Updated.
7415 (arm_linux_remove_hw_breakpoint1): Updated.
7416 (arm_linux_insert_hw_breakpoint): Updated.
7417 (arm_linux_remove_hw_breakpoint): Updated.
7418 (arm_linux_insert_watchpoint): Updated.
7419 (arm_linux_remove_watchpoint): Updated.
7420 (arm_linux_new_thread): Updated.
7421 (arm_linux_prepare_to_resume): New function.
7422 (arm_linux_new_fork): New function.
7423 (_initialize_arm_linux_nat): Updated.
7424
7425 2014-03-12 Pedro Alves <palves@redhat.com>
7426
7427 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7428
7429 2014-03-12 Tom Tromey <tromey@redhat.com>
7430
7431 * inf-child.c (return_zero): New function.
7432 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7433 * aix-thread.c (aix_thread_inferior_created): New function.
7434 (aix_thread_attach): Remove.
7435 (init_aix_thread_ops): Don't set to_attach.
7436 (_initialize_aix_thread): Register inferior_created observer.
7437 * corelow.c (init_core_ops): Don't set to_attach or
7438 to_create_inferior.
7439 * exec.c (init_exec_ops): Don't set to_attach or
7440 to_create_inferior.
7441 * infcmd.c (run_command_1): Use find_run_target. Make direct
7442 target calls.
7443 (attach_command): Use find_attach_target. Make direct target
7444 calls.
7445 * record-btrace.c (init_record_btrace_ops): Don't set
7446 to_create_inferior.
7447 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7448 Remove.
7449 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7450 set to_create_inferior.
7451 * target.c (complete_target_initialization): Add assertion.
7452 (target_create_inferior): Remove.
7453 (find_default_attach, find_default_create_inferior): Remove.
7454 (find_attach_target, find_run_target): New functions.
7455 (find_default_is_async_p, find_default_can_async_p)
7456 (target_supports_non_stop, target_attach): Remove.
7457 (init_dummy_target): Don't set to_create_inferior or
7458 to_supports_non_stop.
7459 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7460 TARGET_DEFAULT_FUNC.
7461 <to_create_inferior>: Add comment.
7462 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7463 TARGET_DEFAULT_RETURN.
7464 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7465 (find_attach_target, find_run_target): Declare.
7466 (target_create_inferior): Remove.
7467 (target_has_execution_1): Update comment.
7468 (target_supports_non_stop): Remove.
7469 * target-delegates.c: Rebuild.
7470
7471 2014-03-12 Pedro Alves <palves@redhat.com>
7472
7473 * inf-child.h: Update comment to not mention Unix.
7474
7475 2014-03-12 Pedro Alves <palves@redhat.com>
7476
7477 * inf-child.c: Update top comment to not mention Unix. Add
7478 generic comment describing how this target is meant to be used.
7479 (inf_child_post_attach, inf_child_post_startup_inferior)
7480 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7481 Unix in comment.
7482
7483 2014-03-12 Pedro Alves <palves@redhat.com>
7484
7485 * nto-procfs.c: Include inf-child.h.
7486 (procfs_ops): Delete global.
7487 (procfs_can_run): Delete method.
7488 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7489 target pointer instead of referencing procfs_ops.
7490 (procfs_prepare_to_store): Delete.
7491 (init_procfs_ops): Delete function.
7492 (procfs_target): New function, based on init_procfs_ops, but
7493 inherit inf_child_target.
7494 (_initialize_procfs): Use procfs_target.
7495
7496 2014-03-12 Pedro Alves <palves@redhat.com>
7497
7498 * windows-nat.c: Include inf-child.h.
7499 (windows_ops): Delete global.
7500 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7501 methods.
7502 (init_windows_ops): Delete function.
7503 (windows_target): New function, based on init_windows_ops, but
7504 inherit inf_child_target.
7505 (_initialize_windows_nat): Use windows_target. Install x86
7506 specific target methods here.
7507
7508 2014-03-10 Doug Evans <xdje42@gmail.com>
7509
7510 * guile/guile.c (call_initialize_gdb_module): New function.
7511 (initialize_guile): Replace call to scm_init_guile with call to
7512 scm_with_guile.
7513
7514 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7515
7516 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7517 in call to TYPE_CODE macro.
7518
7519 2014-03-10 Jerome Guitton <guitton@adacore.com>
7520
7521 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7522 Resolve tagged types to full view.
7523
7524 2014-03-10 Hui Zhu <hui@codesourcery.com>
7525
7526 * target.h (target_insert_breakpoint): Remove "hardware" from its
7527 comments.
7528
7529 2014-03-07 Doug Evans <dje@google.com>
7530
7531 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7532
7533 2014-03-07 Doug Evans <dje@google.com>
7534
7535 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7536 Remove unused local comp_dir_attr. Assert exactly one of
7537 stub_comp_unit_die, stub_comp_dir is non-NULL.
7538
7539 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7540
7541 * target.h (complete_target_initialization, add_target):
7542 Add comment.
7543
7544 2014-03-07 Pedro Alves <palves@redhat.com>
7545
7546 * go32-nat.c: Include inf-child.h.
7547 (go32_ops): Delete global.
7548 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7549 Delete methods.
7550 (go32_create_inferior): Push the passed in target pointer instead
7551 of referencing go32_ops.
7552 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7553 (go32_target): New function, based on init_go32_ops, but inherit
7554 inf_child_target.
7555 (_initialize_go32_nat): Use go32_target. Move parts of
7556 init_go32_ops here.
7557
7558 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7559
7560 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7561 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7562 SYMBOL_VALUE_ADDRESS.
7563 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7564
7565 2014-03-06 Yao Qi <yao@codesourcery.com>
7566
7567 * breakpoint.c (get_tracepoint_by_number): Remove argument
7568 optional_p. All callers updated. Adjust comments. Update
7569 output message.
7570 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7571
7572 2014-03-06 Yao Qi <yao@codesourcery.com>
7573
7574 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7575 early if get_number returns zero. Use 'p' instead of 'args'.
7576
7577 2014-03-06 Yao Qi <yao@codesourcery.com>
7578
7579 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7580 message.
7581
7582 2014-03-06 Yao Qi <yao@codesourcery.com>
7583
7584 PR breakpoints/16508
7585 * tracepoint.c (check_trace_running): New function.
7586 (trace_find_command): Move code to check_trace_running and
7587 call check_trace_running.
7588 (trace_find_pc_command): Likewise.
7589 (trace_find_tracepoint_command): Likewise.
7590 (trace_find_line_command): Likewise.
7591 (trace_find_range_command): Likewise.
7592 * tracepoint.h (check_trace_running): Likewise.
7593 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7594
7595 2014-03-06 Yao Qi <yao@codesourcery.com>
7596
7597 * target.h (struct target_ops) <to_traceframe_info>: Use
7598 TARGET_DEFAULT_NORETURN (tcomplain ()).
7599 * target-delegates.c: Regenerated.
7600
7601 2014-03-05 Pedro Alves <palves@redhat.com>
7602
7603 PR gdb/16575
7604 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7605 void. Update comment.
7606 (dcache_xfer_memory): Delete.
7607 (dcache_read_memory_partial): New, based on the read bits of
7608 dcache_xfer_memory.
7609 (dcache_update): Add status parameter. Use ULONGEST for len, and
7610 adjust. Discard cache lines if the reason for the update was
7611 error.
7612 * dcache.h (dcache_xfer_memory): Delete declaration.
7613 (dcache_read_memory_partial): New declaration.
7614 (dcache_update): Update prototype.
7615 * target.c (raw_memory_xfer_partial): Update the dcache here.
7616 (memory_xfer_partial_1): Don't handle dcache writes here.
7617
7618 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7619
7620 * remote-sim.c (gdbsim_load): Add const to prog.
7621
7622 2014-03-03 Tom Tromey <tromey@redhat.com>
7623
7624 * elfread.c (probe_key): Change to bfd_data.
7625 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7626 now per-BFD, not per-objfile.
7627 * stap-probe.c (stap_probe_destroy): Update comment.
7628 (handle_stap_probe): Allocate on the per-BFD obstack.
7629
7630 2014-03-03 Tom Tromey <tromey@redhat.com>
7631
7632 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7633 * breakpoint.c (create_longjmp_master_breakpoint): Use
7634 get_probe_address.
7635 (add_location_to_breakpoint, bkpt_probe_insert_location)
7636 (bkpt_probe_remove_location): Update.
7637 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7638 * elfread.c (elf_symfile_relocate_probe): Remove.
7639 (elf_probe_fns): Update.
7640 (insert_exception_resume_breakpoint): Change type of "probe"
7641 parameter to bound_probe.
7642 (check_exception_resume): Update.
7643 * objfiles.c (objfile_relocate1): Don't relocate probes.
7644 * probe.c (bound_probe_s): New typedef.
7645 (parse_probes): Use get_probe_address. Set sal's objfile.
7646 (find_probe_by_pc): Return a bound_probe.
7647 (collect_probes): Return a VEC(bound_probe_s).
7648 (compare_probes): Update.
7649 (gen_ui_out_table_header_info): Change type of "probes"
7650 parameter. Update.
7651 (info_probes_for_ops): Update.
7652 (get_probe_address): New function.
7653 (probe_safe_evaluate_at_pc): Update.
7654 * probe.h (struct probe_ops) <get_probe_address>: New field.
7655 <set_semaphore, clear_semaphore>: Add objfile parameter.
7656 (struct probe) <objfile>: Remove field.
7657 <arch>: New field.
7658 <address>: Update comment.
7659 (struct bound_probe): New.
7660 (find_probe_by_pc): Return a bound_probe.
7661 (get_probe_address): Declare.
7662 * solib-svr4.c (struct probe_and_action) <address>: New field.
7663 (hash_probe_and_action, equal_probe_and_action): Update.
7664 (register_solib_event_probe): Add address parameter.
7665 (solib_event_probe_at): Update.
7666 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7667 get_probe_address.
7668 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7669 (stap_get_probe_address): New function.
7670 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7671 (compile_probe_arg): Update.
7672 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7673 address.
7674 (handle_stap_probe): Don't relocate the probe.
7675 (stap_relocate): Remove.
7676 (stap_gen_info_probes_table_values): Update.
7677 (stap_probe_ops): Remove stap_relocate.
7678 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7679 (debug_sym_probe_fns): Update.
7680 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7681 * symtab.c (init_sal): Use memset.
7682 * symtab.h (struct symtab_and_line) <objfile>: New field.
7683 * tracepoint.c (start_tracing, stop_tracing): Update.
7684
7685 2014-03-03 Tom Tromey <tromey@redhat.com>
7686
7687 * probe.h (parse_probes, find_probe_by_pc)
7688 (find_probes_in_objfile): Fix comments.
7689
7690 2014-03-02 Doug Evans <xdje42@gmail.com>
7691
7692 * infrun.c (handle_signal_stop): Replace test for
7693 TARGET_WAITKIND_STOPPED with an assert.
7694
7695 2014-03-02 Doug Evans <xdje42@gmail.com>
7696
7697 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7698
7699 2014-03-02 Doug Evans <xdje42@gmail.com>
7700
7701 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7702
7703 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7704
7705 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7706
7707 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7708
7709 * i386obsd-nat.c: Include "obsd-nat.h".
7710 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7711 add_target.
7712 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7713
7714 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7715
7716 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7717
7718 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7719
7720 * mips64obsd-nat.c: Include "obsd-nath".
7721 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7722 add_target
7723 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7724
7725 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7726
7727 * amd64obsd-nat.c: Include "obsd-nat,h.
7728 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7729 add_target.
7730 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7731
7732 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7733
7734 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7735 (find_overload_match): Update call to find_oload_champ.
7736 (find_oload_champ_namespace_loop): Likewise
7737
7738 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7739
7740 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7741
7742 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7743 * config/sparc/obsd64.mh: New file.
7744 * sparc64obsd-nat.c: New file.
7745
7746 * obsd-nat.h: New file.
7747 * obsd-nat.c: New file.
7748 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7749 (ALLDEPFILES): Add obsd-nat.c.
7750
7751 2014-02-28 Tom Tromey <tromey@redhat.com>
7752
7753 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7754 * cli-out.h (cli_ui_out_impl): Now const.
7755 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7756 * ui-out.c (struct ui_out) <impl>: Now const.
7757 (default_ui_out_impl): Now const.
7758 (ui_out_new): Make 'impl' parameter const.
7759 * ui-out.h (ui_out_new): Update.
7760
7761 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7762
7763 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7764
7765 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7766
7767 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7768
7769 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7770
7771 Additional PR 8882 fix.
7772 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7773
7774 2014-02-27 Pedro Alves <palves@redhat.com>
7775
7776 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7777 isn't set.
7778
7779 2014-02-27 Pedro Alves <palves@redhat.com>
7780
7781 PR 12702
7782 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7783 * nat/linux-waitpid.c: Include string.h.
7784 (status_to_str): Moved here and made extern.
7785 * nat/linux-waitpid.h (status_to_str): New declaration.
7786
7787 2014-02-27 Hui Zhu <hui@codesourcery.com>
7788
7789 PR 12702
7790 * infrun.c (ptid_match): Move ...
7791 * common/ptid.c (ptid_match): ... here.
7792 * inferior.h (ptid_match): Move ...
7793 * common/ptid.h (ptid_match): ... here.
7794
7795 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7796
7797 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7798 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7799 gdb_target_obs.
7800
7801 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7802
7803 * obsd-tdep.c (obsd_auxv_parse): New function.
7804 (obsd_init_abi): Set auxv_parse.
7805
7806 * gdbarch.sh (auxv_parse): New.
7807 * gdbarch.h: Regenerated.
7808 * gdbarch.c: Regenerated.
7809 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7810
7811 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7812
7813 * guile/scm-value.c (gdbscm_history_append_x): New function.
7814 (value_functions): Add it.
7815
7816 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7817
7818 * dwarf2read.c (attr_value_as_address): New function.
7819 (dwarf2_find_base_address, read_call_site_scope): Use
7820 attr_value_as_address in place of DW_ADDR.
7821 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7822 the low and high addresses. Slight rework of the handling
7823 of the high pc being a constant form, and limit it to
7824 DWARF verson 4 or higher.
7825 (dwarf2_record_block_ranges): Likewise.
7826 (read_partial_die): Likewise.
7827 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7828
7829 2014-02-26 Tom Tromey <tromey@redhat.com>
7830
7831 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7832
7833 2014-02-26 Tom Tromey <tromey@redhat.com>
7834
7835 * elfread.c (elf_read_minimal_symbols): Return early if
7836 minimal symbols have already been read. Add "ei" parameter.
7837 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7838 * minsyms.c (prim_record_minimal_symbol_full): Update.
7839 * objfiles.h (struct objstats) <n_minsyms>: Move...
7840 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7841 * symmisc.c (print_objfile_statistics): Update.
7842
7843 2014-02-26 Tom Tromey <tromey@redhat.com>
7844
7845 * elfread.c (elf_read_minimal_symbols): New function, from
7846 elf_symfile_read.
7847 (elf_symfile_read): Call it.
7848
7849 2014-02-26 Tom Tromey <tromey@redhat.com>
7850
7851 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7852 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7853 (lookup_minimal_symbol_solib_trampoline)
7854 (lookup_minimal_symbol_by_pc_section_1)
7855 (lookup_minimal_symbol_and_objfile): Update.
7856 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7857 Don't allocate a minimal symbol if minsyms have already been read.
7858 (build_minimal_symbol_hash_tables): Update.
7859 (install_minimal_symbols): Do nothing if minsyms already read.
7860 Use the per-BFD obstack.
7861 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7862 * objfiles.c (allocate_objfile): Call
7863 terminate_minimal_symbol_table later.
7864 (have_minimal_symbols): Update.
7865 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7866 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7867 Move from struct objfile.
7868 <minsyms_read>: New field.
7869 (struct objfile) <msymbols, minimal_symbol_count,
7870 msymbol_hash, msymbol_demangled_hash>: Move.
7871 (ALL_OBJFILE_MSYMBOLS): Update.
7872 * symfile.c (read_symbols): Set minsyms_read.
7873 (reread_symbols): Update.
7874 * symmisc.c (dump_objfile, dump_msymbols): Update.
7875
7876 2014-02-26 Tom Tromey <tromey@redhat.com>
7877
7878 * minsyms.c (msymbols_sort): Remove.
7879 * minsyms.h (msymbols_sort): Remove.
7880 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7881 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7882 * elfread.c (elf_symtab_read): Don't add section offsets.
7883 * xcoffread.c (record_minimal_symbol): Don't add section offset
7884 to minimal symbol address.
7885 * somread.c (text_offset, data_offset): Remove.
7886 (som_symtab_read): Don't add section offsets to minimal symbol
7887 addresses.
7888 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7889 Don't add section offsets to minimal symbols.
7890 * coffread.c (coff_symtab_read): Don't add section offsets
7891 to minimal symbol addresses.
7892 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7893 to minimal symbol addresses.
7894 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7895 section offset to minimal symbol addresses.
7896 * mdebugread.c (parse_partial_symbols): Don't add section
7897 offset to minimal symbol addresses.
7898 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7899 offset to minimal symbol addresses.
7900
7901 2014-02-26 Tom Tromey <tromey@redhat.com>
7902
7903 * ada-lang.c (ada_main_name): Update.
7904 (ada_add_standard_exceptions): Update.
7905 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7906 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7907 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7908 * auxv.c (ld_so_xfer_auxv): Update.
7909 * avr-tdep.c (avr_scan_prologue): Update.
7910 * ax-gdb.c (gen_var_ref): Update.
7911 * blockframe.c (get_pc_function_start)
7912 (find_pc_partial_function_gnu_ifunc): Update.
7913 * breakpoint.c (create_overlay_event_breakpoint)
7914 (create_longjmp_master_breakpoint)
7915 (create_std_terminate_master_breakpoint)
7916 (create_exception_master_breakpoint): Update.
7917 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7918 * c-valprint.c (c_val_print): Update.
7919 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7920 * common/agent.c (agent_look_up_symbols): Update.
7921 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7922 * dwarf2loc.c (call_site_to_target_addr): Update.
7923 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7924 * elfread.c (elf_gnu_ifunc_record_cache)
7925 (elf_gnu_ifunc_resolve_by_got): Update.
7926 * findvar.c (default_read_var_value): Update.
7927 * frame.c (inside_main_func): Update.
7928 * frv-tdep.c (frv_frame_this_id): Update.
7929 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7930 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7931 Update.
7932 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7933 (hppa_hpux_find_dummy_bpaddr): Update.
7934 * hppa-tdep.c (hppa_symbol_address): Update.
7935 * infcmd.c (until_next_command): Update.
7936 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7937 Update.
7938 * linespec.c (minsym_found, add_minsym): Update.
7939 * linux-nat.c (get_signo): Update.
7940 * linux-thread-db.c (inferior_has_bug): Update.
7941 * m32c-tdep.c (m32c_return_value)
7942 (m32c_m16c_address_to_pointer): Update.
7943 * m32r-tdep.c (m32r_frame_this_id): Update.
7944 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7945 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7946 * maint.c (maintenance_translate_address): Update.
7947 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7948 (frob_address): New function.
7949 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7950 frob_address. Rename parameter to "pc_in".
7951 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7952 addresses.
7953 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7954 Update.
7955 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7956 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7957 * objc-lang.c (find_objc_msgsend): Update.
7958 * objfiles.c (objfile_relocate1): Update.
7959 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7960 * p-valprint.c (pascal_val_print): Update.
7961 * parse.c (write_exp_msymbol): Update.
7962 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7963 (ppc_elfv2_skip_entrypoint): Update.
7964 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7965 * printcmd.c (build_address_symbolic, msym_info)
7966 (address_info): Update.
7967 * proc-service.c (ps_pglobal_lookup): Update.
7968 * psymtab.c (find_pc_sect_psymtab_closer)
7969 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7970 Change msymbol parameter to bound_minimal_symbol.
7971 * ravenscar-thread.c (get_running_thread_id): Update.
7972 * remote.c (remote_check_symbols): Update.
7973 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7974 address.
7975 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7976 * solib-dsbt.c (lm_base): Update.
7977 * solib-frv.c (lm_base, main_got): Update.
7978 * solib-irix.c (locate_base): Update.
7979 * solib-som.c (som_solib_create_inferior_hook)
7980 (link_map_start): Update.
7981 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7982 * solib-svr4.c (elf_locate_base, enable_break): Update.
7983 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7984 (flush_ea_cache): Update.
7985 * stabsread.c (define_symbol, scan_file_globals): Update.
7986 * stack.c (find_frame_funname): Update.
7987 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7988 (debug_qf_find_pc_sect_symtab): Update.
7989 * symfile.c (simple_read_overlay_table)
7990 (simple_overlay_update): Update.
7991 * symfile.h (struct quick_symbol_functions)
7992 <find_pc_sect_symtab>: Change type of msymbol to
7993 bound_minimal_symbol.
7994 * symmisc.c (dump_msymbols): Update.
7995 * symtab.c (find_pc_sect_symtab_via_partial)
7996 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7997 (search_symbols, print_msymbol_info): Update.
7998 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7999 (MSYMBOL_VALUE_ADDRESS): Redefine.
8000 (BMSYMBOL_VALUE_ADDRESS): New macro.
8001 * tracepoint.c (scope_info): Update.
8002 * tui/tui-disasm.c (tui_find_disassembly_address)
8003 (tui_get_begin_asm_address): Update.
8004 * valops.c (find_function_in_inferior): Update.
8005 * value.c (value_static_field, value_fn_field): Update.
8006
8007 2014-02-26 Tom Tromey <tromey@redhat.com>
8008
8009 * ada-lang.c (ada_update_initial_language): Update.
8010 (ada_main_name, ada_has_this_exception_support): Update.
8011 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8012 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8013 * arm-tdep.c (arm_skip_stub): Update.
8014 * auxv.c (ld_so_xfer_auxv): Update.
8015 * avr-tdep.c (avr_scan_prologue): Update.
8016 * ax-gdb.c (gen_var_ref): Update.
8017 * breakpoint.c (struct breakpoint_objfile_data)
8018 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8019 type to bound_minimal_symbol.
8020 (create_overlay_event_breakpoint)
8021 (create_longjmp_master_breakpoint)
8022 (create_std_terminate_master_breakpoint)
8023 (create_exception_master_breakpoint): Update.
8024 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8025 * c-exp.y (classify_name): Update.
8026 * coffread.c (coff_symfile_read): Update.
8027 * common/agent.c (agent_look_up_symbols): Update.
8028 * d-lang.c (d_main_name): Update.
8029 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8030 * dec-thread.c (enable_dec_thread): Update.
8031 * dwarf2loc.c (call_site_to_target_addr): Update.
8032 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8033 * eval.c (evaluate_subexp_standard): Update.
8034 * findvar.c (struct minsym_lookup_data) <result>: Change type
8035 to bound_minimal_symbol.
8036 <objfile>: Remove.
8037 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8038 * frame.c (inside_main_func): Update.
8039 * frv-tdep.c (frv_frame_this_id): Update.
8040 * gcore.c (call_target_sbrk): Update.
8041 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8042 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8043 Update.
8044 * go-lang.c (go_main_name): Update.
8045 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8046 (hppa_hpux_find_import_stub_for_addr): Update.
8047 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8048 Update. Change return type.
8049 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8050 type.
8051 * jit.c (jit_breakpoint_re_set_internal): Update.
8052 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8053 Update.
8054 * linux-nat.c (get_signo): Update.
8055 * linux-thread-db.c (inferior_has_bug): Update
8056 * m32c-tdep.c (m32c_return_value)
8057 (m32c_m16c_address_to_pointer): Update.
8058 * m32r-tdep.c (m32r_frame_this_id): Update.
8059 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8060 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8061 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8062 lookup_minimal_symbol. Change return type.
8063 (lookup_minimal_symbol): Remove.
8064 (lookup_bound_minimal_symbol): Update.
8065 (lookup_minimal_symbol_text): Change return type.
8066 (lookup_minimal_symbol_solib_trampoline): Change return type.
8067 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8068 (lookup_minimal_symbol_solib_trampoline): Change return type.
8069 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8070 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8071 (value_nsstring, find_imps): Update.
8072 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8073 * p-lang.c (pascal_main_name): Update.
8074 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8075 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8076 * proc-service.c (ps_pglobal_lookup): Update.
8077 * ravenscar-thread.c (get_running_thread_msymbol): Change
8078 return type.
8079 (has_ravenscar_runtime, get_running_thread_id): Update.
8080 * remote.c (remote_check_symbols): Update.
8081 * sol-thread.c (ps_pglobal_lookup): Update.
8082 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8083 * solib-dsbt.c (lm_base): Update.
8084 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8085 Update.
8086 * solib-irix.c (locate_base): Update.
8087 * solib-som.c (som_solib_create_inferior_hook)
8088 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8089 Update.
8090 * solib-spu.c (spu_enable_break): Update.
8091 * solib-svr4.c (elf_locate_base, enable_break): Update.
8092 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8093 (flush_ea_cache): Update.
8094 * stabsread.c (define_symbol): Update.
8095 * symfile.c (simple_read_overlay_table): Update.
8096 * symtab.c (find_pc_sect_line): Update.
8097 * tracepoint.c (scope_info): Update.
8098 * tui-disasm.c (tui_get_begin_asm_address): Update.
8099 * value.c (value_static_field): Update.
8100
8101 2014-02-26 Tom Tromey <tromey@redhat.com>
8102
8103 * minsyms.c (prim_record_minimal_symbol_full): Use
8104 SET_MSYMBOL_VALUE_ADDRESS.
8105 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8106 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8107 SET_MSYMBOL_VALUE_ADDRESS.
8108 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8109 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8110
8111 2014-02-26 Tom Tromey <tromey@redhat.com>
8112
8113 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8114 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8115 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8116 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8117 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8118 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8119 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8120 * ada-lang.c (ada_main_name): Update.
8121 (ada_lookup_simple_minsym): Update.
8122 (ada_make_symbol_completion_list): Update.
8123 (ada_add_standard_exceptions): Update.
8124 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8125 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8126 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8127 * arm-tdep.c (skip_prologue_function): Update.
8128 (arm_skip_stack_protector, arm_skip_stub): Update.
8129 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8130 (arm_wince_skip_main_prologue): Update.
8131 * auxv.c (ld_so_xfer_auxv): Update.
8132 * avr-tdep.c (avr_scan_prologue): Update.
8133 * ax-gdb.c (gen_var_ref): Update.
8134 * block.c (call_site_for_pc): Update.
8135 * blockframe.c (get_pc_function_start): Update.
8136 (find_pc_partial_function_gnu_ifunc): Update.
8137 * breakpoint.c (create_overlay_event_breakpoint): Update.
8138 (create_longjmp_master_breakpoint): Update.
8139 (create_std_terminate_master_breakpoint): Update.
8140 (create_exception_master_breakpoint): Update.
8141 (resolve_sal_pc): Update.
8142 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8143 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8144 Update.
8145 * c-valprint.c (c_val_print): Update.
8146 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8147 * coffread.c (coff_symfile_read): Update.
8148 * common/agent.c (agent_look_up_symbols): Update.
8149 * dbxread.c (find_stab_function_addr): Update.
8150 (end_psymtab): Update.
8151 * dwarf2loc.c (call_site_to_target_addr): Update.
8152 (func_verify_no_selftailcall): Update.
8153 (tailcall_dump): Update.
8154 (call_site_find_chain_1): Update.
8155 (dwarf_expr_reg_to_entry_parameter): Update.
8156 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8157 (elf_gnu_ifunc_resolve_by_got): Update.
8158 * f-valprint.c (info_common_command): Update.
8159 * findvar.c (read_var_value): Update.
8160 * frame.c (get_prev_frame_1): Update.
8161 (inside_main_func): Update.
8162 * frv-tdep.c (frv_skip_main_prologue): Update.
8163 (frv_frame_this_id): Update.
8164 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8165 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8166 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8167 (gnuv3_skip_trampoline): Update.
8168 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8169 (hppa64_hpux_in_solib_call_trampoline): Update.
8170 (hppa_hpux_skip_trampoline_code): Update.
8171 (hppa64_hpux_search_dummy_call_sequence): Update.
8172 (hppa_hpux_find_import_stub_for_addr): Update.
8173 (hppa_hpux_find_dummy_bpaddr): Update.
8174 * hppa-tdep.c (hppa_symbol_address)
8175 (hppa_lookup_stub_minimal_symbol): Update.
8176 * i386-tdep.c (i386_skip_main_prologue): Update.
8177 (i386_pe_skip_trampoline_code): Update.
8178 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8179 * infcall.c (get_function_name): Update.
8180 * infcmd.c (until_next_command): Update.
8181 * jit.c (jit_breakpoint_re_set_internal): Update.
8182 (jit_inferior_init): Update.
8183 * linespec.c (minsym_found): Update.
8184 (add_minsym): Update.
8185 * linux-fork.c (info_checkpoints_command): Update.
8186 * linux-nat.c (get_signo): Update.
8187 * linux-thread-db.c (inferior_has_bug): Update.
8188 * m32c-tdep.c (m32c_return_value): Update.
8189 (m32c_m16c_address_to_pointer): Update.
8190 (m32c_m16c_pointer_to_address): Update.
8191 * m32r-tdep.c (m32r_frame_this_id): Update.
8192 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8193 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8194 * maint.c (maintenance_translate_address): Update.
8195 * minsyms.c (add_minsym_to_hash_table): Update.
8196 (add_minsym_to_demangled_hash_table): Update.
8197 (msymbol_objfile): Update.
8198 (lookup_minimal_symbol): Update.
8199 (iterate_over_minimal_symbols): Update.
8200 (lookup_minimal_symbol_text): Update.
8201 (lookup_minimal_symbol_by_pc_name): Update.
8202 (lookup_minimal_symbol_solib_trampoline): Update.
8203 (lookup_minimal_symbol_by_pc_section_1): Update.
8204 (lookup_minimal_symbol_and_objfile): Update.
8205 (prim_record_minimal_symbol_full): Update.
8206 (compare_minimal_symbols): Update.
8207 (compact_minimal_symbols): Update.
8208 (build_minimal_symbol_hash_tables): Update.
8209 (install_minimal_symbols): Update.
8210 (terminate_minimal_symbol_table): Update.
8211 (find_solib_trampoline_target): Update.
8212 (minimal_symbol_upper_bound): Update.
8213 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8214 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8215 (mips_skip_pic_trampoline_code): Update.
8216 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8217 * objc-lang.c (selectors_info): Update.
8218 (classes_info): Update.
8219 (find_methods): Update.
8220 (find_imps): Update.
8221 (find_objc_msgsend): Update.
8222 * objfiles.c (objfile_relocate1): Update.
8223 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8224 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8225 * p-valprint.c (pascal_val_print): Update.
8226 * parse.c (write_exp_msymbol): Update.
8227 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8228 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8229 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8230 * printcmd.c (build_address_symbolic): Update.
8231 (sym_info): Update.
8232 (address_info): Update.
8233 * proc-service.c (ps_pglobal_lookup): Update.
8234 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8235 (find_pc_sect_psymtab): Update.
8236 * python/py-framefilter.c (py_print_frame): Update.
8237 * ravenscar-thread.c (get_running_thread_id): Update.
8238 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8239 Update.
8240 * remote.c (remote_check_symbols): Update.
8241 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8242 (rs6000_skip_trampoline_code): Update.
8243 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8244 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8245 * solib-dsbt.c (lm_base): Update.
8246 * solib-frv.c (lm_base): Update.
8247 (main_got): Update.
8248 * solib-irix.c (locate_base): Update.
8249 * solib-som.c (som_solib_create_inferior_hook): Update.
8250 (som_solib_desire_dynamic_linker_symbols): Update.
8251 (link_map_start): Update.
8252 * solib-spu.c (spu_enable_break): Update.
8253 (ocl_enable_break): Update.
8254 * solib-svr4.c (elf_locate_base): Update.
8255 (enable_break): Update.
8256 * spu-tdep.c (spu_get_overlay_table): Update.
8257 (spu_catch_start): Update.
8258 (flush_ea_cache): Update.
8259 * stabsread.c (define_symbol): Update.
8260 (scan_file_globals): Update.
8261 * stack.c (find_frame_funname): Update.
8262 (frame_info): Update.
8263 * symfile.c (simple_read_overlay_table): Update.
8264 (simple_overlay_update): Update.
8265 * symmisc.c (dump_msymbols): Update.
8266 * symtab.c (fixup_section): Update.
8267 (find_pc_sect_line): Update.
8268 (skip_prologue_sal): Update.
8269 (search_symbols): Update.
8270 (print_msymbol_info): Update.
8271 (rbreak_command): Update.
8272 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8273 (completion_list_objc_symbol): Update.
8274 (default_make_symbol_completion_list_break_on): Update.
8275 * tracepoint.c (scope_info): Update.
8276 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8277 (tui_get_begin_asm_address): Update.
8278 * valops.c (find_function_in_inferior): Update.
8279 * value.c (value_static_field): Update.
8280 (value_fn_field): Update.
8281
8282 2014-02-26 Tom Tromey <tromey@redhat.com>
8283
8284 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8285 bound minimal symbols. Move code that knows about minsym
8286 table layout...
8287 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8288 function.
8289 * minsyms.h (minimal_symbol_upper_bound): Declare.
8290 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8291 minimal_symbol_upper_bound.
8292
8293 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8294
8295 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8296 Use the type's name if its basic type does not have a tag.
8297
8298 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8299
8300 * dwarf2read.c (read_subrange_type): Add comment.
8301
8302 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8303
8304 * dwarf2read.c (update_enumeration_type_from_children): New
8305 function, mostly extracted from process_structure_scope.
8306 (read_enumeration_type): Call update_enumeration_type_from_children.
8307 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8308 and flag_flag_enum fields.
8309
8310 2014-02-26 Pedro Alves <palves@redhat.com>
8311
8312 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8313 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8314 to_xfer_partial method.
8315
8316 2014-02-26 Pedro Alves <palves@redhat.com>
8317
8318 * target.c (complete_target_initialization): Don't install
8319 default_xfer_partial as to_xfer_partial hook.
8320 (nomemory): Delete.
8321 (update_current_target): Don't INHERIT nor de_fault
8322 deprecated_xfer_memory. Delete de_fault macro.
8323 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8324 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8325 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8326 field.
8327
8328 2014-02-26 Pedro Alves <palves@redhat.com>
8329
8330 * go32-nat.c (my_write_child): New function.
8331 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8332 (go32_xfer_partial): New function.
8333 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8334 Instead install a to_xfer_partial hook.
8335
8336 2014-02-26 Pedro Alves <palves@redhat.com>
8337
8338 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8339 to_xfer_partial helper. Rewrite.
8340 (procfs_xfer_partial): New function.
8341 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8342 Install a to_xfer_partial hook.
8343
8344 2014-02-26 Pedro Alves <palves@redhat.com>
8345
8346 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8347 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8348 (m32r_xfer_partial): New function.
8349 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8350 Install a to_xfer_partial hook.
8351
8352 2014-02-26 Pedro Alves <palves@redhat.com>
8353
8354 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8355 helper.
8356 (mips_xfer_partial): New function.
8357 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8358 hook. Install a to_xfer_partial hook.
8359
8360 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8361
8362 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8363 * gdbtypes.c (create_array_type_with_stride): New function,
8364 renaming create_array_type, but with an added parameter
8365 called "bit_stride".
8366 (create_array_type): Re-implement using
8367 create_array_type_with_stride.
8368 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8369 and DW_AT_bit_stride attributes.
8370
8371 2014-02-26 Pedro Alves <palves@redhat.com>
8372
8373 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8374 task-specific breakpoints.
8375
8376 2014-02-25 Pedro Alves <palves@redhat.com>
8377
8378 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8379 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8380
8381 2014-02-25 Stan Shebs <stan@codesourcery.com>
8382
8383 * defs.h: Annotate comments for Doxygen.
8384
8385 2014-02-25 Tom Tromey <tromey@redhat.com>
8386
8387 * target.h (target_ignore): Don't declare.
8388 * target.c (target_ignore): Remove.
8389
8390 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8391
8392 PR gdb/16626
8393 * auto-load.c (auto_load_objfile_script_1): Change filename to
8394 debugfile.
8395
8396 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8397
8398 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8399 documentation. Adjust prototype to match the target_ops
8400 to_xfer_partial method. Adjust implementation accordingly.
8401
8402 2014-02-25 Hui Zhu <hui@codesourcery.com>
8403
8404 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8405 to_traceframe_info.
8406
8407 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8408
8409 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8410 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8411 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8412 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8413 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8414 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8415 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8416 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8417 New constants.
8418 (rl78_register_type): Use a data pointer type for SP and
8419 new pseudo registers mentioned above. Use a 16 bit integer
8420 type for all other register pairs.
8421 (rl78_register_name, rl78_g10_register_name): Update for
8422 new pseudo registers.
8423 (rl78_pseudo_register_read): Likewise.
8424 (rl78_pseudo_register_write): Likewise.
8425 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8426 to the newly added pseudo registers.
8427
8428 2014-02-24 Doug Evans <dje@google.com>
8429
8430 * value.c (record_latest_value): Fix comment.
8431 * printcmd.c (print_command_1): Remove code to handle -1 return from
8432 record_latest_value.
8433
8434 2014-02-24 Pedro Alves <palves@redhat.com>
8435
8436 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8437 deprecated_xfer_memory hook.
8438 (procfs_xfer_partial): Call procfs_xfer_memory instead
8439 of the deprecated_xfer_memory target hook.
8440 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8441 helper.
8442
8443 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8444
8445 * windows-nat.c (windows_xfer_shared_libraries): Return
8446 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8447 requested object is TARGET_OBJECT_LIBRARIES.
8448
8449 2014-02-24 Yao Qi <yao@codesourcery.com>
8450
8451 * target.h (enum target_xfer_status)
8452 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8453 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8454 explicitly. New.
8455 * corefile.c (memory_error_message): User updated.
8456 * exec.c (section_table_read_available_memory): Likewise.
8457 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8458 * target.c (target_xfer_status_to_string): Likewise.
8459 (raw_memory_xfer_partial): Likewise.
8460 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8461 * valops.c (read_value_memory): Likewise.
8462 * exec.h: Update comments.
8463
8464 2014-02-24 Yao Qi <yao@codesourcery.com>
8465
8466 * target.c (target_xfer_status_to_string): Rename argument err
8467 to status.
8468 * target.h (target_xfer_status_to_string): Update declaration.
8469 Replace target_xfer_error_to_string with
8470 target_xfer_status_to_string in comment.
8471
8472 2014-02-24 Yao Qi <yao@codesourcery.com>
8473
8474 * mips-linux-nat.c (super_close): Update its type.
8475 (mips_linux_close): Pass 'self' to super_close.
8476
8477 2014-02-24 Yao Qi <yao@codesourcery.com>
8478
8479 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8480 * corefile.c (read_memory): Adjusted.
8481 * target.c (target_write_with_progress): Adjusted.
8482
8483 2014-02-23 Yao Qi <yao@codesourcery.com>
8484
8485 Revert two patches:
8486
8487 2013-10-25 Yao Qi <yao@codesourcery.com>
8488
8489 * remote.c (remote_traceframe_info): Return early if
8490 traceframe is not selected.
8491
8492 2013-07-19 Yao Qi <yao@codesourcery.com>
8493
8494 * target.c (update_current_target): Change the default action
8495 of 'to_traceframe_info' from tcomplain to return_zero.
8496 * target.h (struct target_ops) <to_traceframe_info>: Add more
8497 comments.
8498
8499 2014-02-23 Yao Qi <yao@codesourcery.com>
8500
8501 * valops.c (read_value_memory): Rewrite it. Call
8502 target_xfer_partial in a loop.
8503 * exec.h (section_table_available_memory): Remove declaration.
8504 Move comments to ...
8505 * exec.c (section_table_available_memory): ... here. Make it
8506 static.
8507
8508 2014-02-23 Yao Qi <yao@codesourcery.com>
8509
8510 * exec.c (section_table_read_available_memory): New function.
8511 * exec.h (section_table_read_available_memory): Declare.
8512 * ctf.c (ctf_xfer_partial): Call
8513 section_table_read_available_memory.
8514 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8515
8516 2014-02-23 Yao Qi <yao@codesourcery.com>
8517
8518 * ctf.c (ctf_xfer_partial): Move code to ...
8519 * exec.c (exec_read_partial_read_only): ... it. New function.
8520 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8521 * tracefile.c: Include "exec.h".
8522 * exec.h (exec_read_partial_read_only): Declare.
8523
8524 2014-02-23 Yao Qi <yao@codesourcery.com>
8525
8526 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8527 (tfile_has_memory): Remove.
8528 (init_tfile_ops): Don't set fields to_has_all_memory and
8529 to_has_memory of tfile_ops.
8530 * tracefile.c (tracefile_has_all_memory): New function.
8531 (tracefile_has_memory): New function.
8532 (init_tracefile_ops): Initialize fields to_has_all_memory and
8533 to_has_memory of 'ops'.
8534
8535 2014-02-23 Yao Qi <yao@codesourcery.com>
8536
8537 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8538 (ctf_thread_alive, ctf_get_trace_status): Remove.
8539 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8540 init_tracefile_ops.
8541 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8542 (tfile_has_stack, tfile_has_registers): Remove.
8543 (tfile_thread_alive): Remove.
8544 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8545 init_tracefile_ops.
8546 * tracefile.c (tracefile_has_stack): New function.
8547 (tracefile_has_registers): New function.
8548 (tracefile_thread_alive): New function.
8549 (tracefile_get_trace_status): New function.
8550 (init_tracefile_ops): New function.
8551 * tracefile.h (init_tracefile_ops): Declare.
8552
8553 2014-02-23 Yao Qi <yao@codesourcery.com>
8554
8555 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8556 (O_LARGEFILE): Likewise.
8557 (tfile_ops): Likewise.
8558 (TRACE_HEADER_SIZE): Likewise.
8559 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8560 (cur_data_size): Likewise.
8561 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8562 (tfile_close, tfile_files_info): Likewise.
8563 (tfile_get_trace_status): Likewise.
8564 (tfile_get_tracepoint_status): Likewise.
8565 (tfile_get_traceframe_address): Likewise.
8566 (tfile_trace_find, match_blocktype): Likewise.
8567 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8568 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8569 (tfile_get_trace_state_variable_value): Likewise.
8570 (tfile_has_all_memory, tfile_has_memory): Likewise.
8571 (tfile_has_stack, tfile_has_registers): Likewise.
8572 (tfile_thread_alive, build_traceframe_info): Likewise.
8573 (tfile_traceframe_info, init_tfile_ops): Likewise.
8574 (_initialize_tracepoint): Don't call init_tfile_ops
8575 and add_target_with_completer.
8576 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8577 exec.h, completer.h and filenames.h.
8578 (_initialize_tracefile_tfile): New function.
8579
8580 2014-02-23 Yao Qi <yao@codesourcery.com>
8581
8582 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8583 tracefile-tfile.o.
8584 (HFILES_NO_SRCDIR): Add tracefile.h.
8585 * ctf.c: Include "tracefile.h".
8586 * tracefile.h: New file.
8587 * tracefile.c: New file
8588 * tracefile-tfile.c: New file.
8589 * tracepoint.c: Include "tracefile.h".
8590 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8591 (stop_reason_names): Add const.
8592 (trace_file_writer_xfree): Move it to tracefile.c.
8593 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8594 (trace_save_ctf): Likewise.
8595 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8596 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8597 (tfile_write_header, tfile_write_regblock_type): Likewise.
8598 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8599 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8600 (tfile_write_raw_data, tfile_end): Likewise.
8601 (tfile_trace_file_writer_new): Likewise.
8602 (free_uploaded_tp): Make it extern.
8603 (free_uploaded_tsv): Make it extern.
8604 (_initialize_tracepoint): Move code to register command 'tsave'
8605 to tracefile.c.
8606 * tracepoint.h (stop_reason_names): Declare.
8607 (struct trace_frame_write_ops): Move it to tracefile.h.
8608 (struct trace_file_write_ops): Likewise.
8609 (struct trace_file_writer): Likewise.
8610 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8611
8612 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8613
8614 PR gdb/16594
8615 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8616 process name.
8617 (get_cores_used_by_process): New parameter num_cores, use it.
8618 (linux_xfer_osdata_processes): Pass num_cores to it.
8619 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8620 process name.
8621
8622 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8623
8624 * target.c (memory_xfer_partial): Fix length arg in call to
8625 breakpoint_xfer_memory.
8626
8627 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8628
8629 PR tdep/16397
8630 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8631 number comes after the + or - signs. Adjust length of register
8632 name to be extracted.
8633
8634 2014-02-20 Tom Tromey <tromey@redhat.com>
8635
8636 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8637 (ada_varobj_ops): Mark "extern".
8638
8639 2014-02-20 Tom Tromey <tromey@redhat.com>
8640
8641 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8642
8643 2014-02-20 Doug Evans <xdje42@gmail.com>
8644
8645 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8646 All callers updated.
8647 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8648 All callers updated.
8649 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8650 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8651
8652 2014-02-20 lin zuojian <manjian2006@gmail.com>
8653 Joel Brobecker <brobecker@adacore.com>
8654 Doug Evans <xdje42@gmail.com>
8655
8656 PR symtab/16581
8657 * dwarf2read.c (struct die_info): New member in_process.
8658 (reset_die_in_process): New function.
8659 (process_die): Set it at the start, reset when returning.
8660 (inherit_abstract_dies): Only call process_die if origin_child_die
8661 not already being processed.
8662
8663 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8664
8665 * windows-nat.c (handle_unload_dll): Add function documentation.
8666 (do_initial_windows_stuff): Add comment explaining why we wait
8667 until after inferior initialization has finished before
8668 processing all DLLs.
8669
8670 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8671
8672 * windows-nat.c (get_module_name): Delete.
8673 (windows_get_exec_module_filename): New function, mostly
8674 inspired from get_module_name.
8675 (windows_pid_to_exec_file): Replace call to get_module_name
8676 by call to windows_get_exec_module_filename.
8677
8678 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8679
8680 * windows-nat.c (handle_load_dll): Rewrite this function's
8681 introductory comment. Remove code using get_module_name
8682 to get the DLL's name.
8683
8684 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8685
8686 * windows-nat.c (get_windows_debug_event): Ignore
8687 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8688 if windows_initialization_done == 0.
8689 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8690 Adjust implementation to always load all DLLs.
8691 (do_initial_windows_stuff): Replace call to
8692 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8693
8694 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8695
8696 * windows-nat.c (_initialize_windows_nat): Deprecate the
8697 "dll-symbols" command. Turn the "add-shared-symbol-files"
8698 and "assf" aliases into commands, and deprecate them as well.
8699 * NEWS: Add entry explaining that "dll-symbols" and its two
8700 aliases are now deprecated.
8701
8702 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8703
8704 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8705 new-line in debug string. Remove trailing spaces.
8706
8707 2014-02-19 Stan Shebs <stan@codesourcery.com>
8708
8709 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8710
8711 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8712
8713 * NEWS: Add entry for the new feature
8714 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8715 and class values.
8716
8717 2014-02-19 Stan Shebs <stan@codesourcery.com>
8718
8719 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8720
8721 2014-02-19 Pedro Alves <palves@redhat.com>
8722
8723 * common/ptid.h (struct ptid): Mention that process_stratum
8724 targets should prefer ptid.lwp.
8725
8726 2014-02-19 Pedro Alves <palves@redhat.com>
8727
8728 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8729 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8730 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8731 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8732 store remote thread ids rather than ptid.tid.
8733 (_initialize_remote): Adjust.
8734
8735 2014-02-19 Tom Tromey <tromey@redhat.com>
8736
8737 * target.c (target_get_unwinder): Rewrite.
8738 (target_get_tailcall_unwinder): Rewrite.
8739 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8740 (record_btrace_to_get_tailcall_unwinder): New function.
8741 (init_record_btrace_ops): Update.
8742 * target.h (struct target_ops) <to_get_unwinder,
8743 to_get_tailcall_unwinder>: Now function pointers. Use
8744 TARGET_DEFAULT_RETURN.
8745
8746 2014-02-19 Tom Tromey <tromey@redhat.com>
8747
8748 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8749 argument.
8750 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8751
8752 2014-02-19 Tom Tromey <tromey@redhat.com>
8753
8754 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8755 directly.
8756 * target-delegates.c: Rebuild.
8757 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8758 TARGET_DEFAULT_FUNC.
8759 * target.c (default_target_decr_pc_after_break): Rename from
8760 forward_target_decr_pc_after_break. Simplify.
8761 (target_decr_pc_after_break): Rely on delegation.
8762
8763 2014-02-19 Tom Tromey <tromey@redhat.com>
8764
8765 * target.c (update_current_target): Do not INHERIT to_doc or
8766 to_magic. Do not de_fault to_open or to_close.
8767
8768 2014-02-19 Tom Tromey <tromey@redhat.com>
8769
8770 * gcore.h (objfile_find_memory_regions): Declare.
8771 * gcore.c (objfile_find_memory_regions): No longer static. Add
8772 "self" argument.
8773 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8774 * exec.c: Include gcore.h.
8775 (exec_set_find_memory_regions): Remove.
8776 (exec_find_memory_regions): Remove.
8777 (exec_do_find_memory_regions): Remove.
8778 (init_exec_ops): Update.
8779 * defs.h (exec_set_find_memory_regions): Remove.
8780
8781 2014-02-19 Tom Tromey <tromey@redhat.com>
8782
8783 * target-delegates.c: Rebuild.
8784 * target.h (struct target_ops) <to_extra_thread_info,
8785 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8786 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8787 not 0, in TARGET_DEFAULT_RETURN.
8788
8789 2014-02-19 Tom Tromey <tromey@redhat.com>
8790
8791 * target.c (complete_target_initialization): Remove casts. Use
8792 return_zero_has_execution.
8793 (return_zero): Add "ignore" argument.
8794 (return_zero_has_execution): New function.
8795 (init_dummy_target): Remove casts. Use
8796 return_zero_has_execution.
8797
8798 2014-02-19 Tom Tromey <tromey@redhat.com>
8799
8800 * target.c (update_current_target): Update comments. Do not
8801 INHERIT to_stratum.
8802
8803 2014-02-19 Tom Tromey <tromey@redhat.com>
8804
8805 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8806 needed.
8807 * corelow.c (core_read_description): Delegate when needed.
8808 * remote.c (remote_read_description): Delegate when needed.
8809 * target-delegates.c: Rebuild.
8810 * target.c (target_read_description): Rewrite.
8811 * target.h (struct target_ops) <to_read_description>: Update
8812 comment. Use TARGET_DEFAULT_RETURN.
8813
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8815
8816 * target-delegates.c: Rebuild.
8817 * target.c (update_current_target): Don't inherit or default
8818 to_can_run.
8819 (find_default_run_target): Check against delegate_can_run.
8820 * target.h (struct target_ops) <to_can_run>: Use
8821 TARGET_DEFAULT_RETURN.
8822
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8824
8825 * target-delegates.c: Rebuild.
8826 * target.c (target_disconnect): Unconditionally delegate.
8827 * target.h (struct target_ops) <to_disconnect>: Use
8828 TARGET_DEFAULT_NORETURN.
8829
8830 2014-02-19 Tom Tromey <tromey@redhat.com>
8831
8832 * record.c (record_stop): Unconditionally delegate.
8833 * target-delegates.c: Rebuild.
8834 * target.c (target_stop_recording): Unconditionally delegate.
8835 * target.h (struct target_ops) <to_stop_recording>: Use
8836 TARGET_DEFAULT_IGNORE.
8837
8838 2014-02-19 Tom Tromey <tromey@redhat.com>
8839
8840 * target-delegates.c: Rebuild.
8841 * target.c (target_enable_btrace): Unconditionally delegate.
8842 * target.h (struct target_ops) <to_enable_btrace>: Use
8843 TARGET_DEFAULT_NORETURN.
8844
8845 2014-02-19 Tom Tromey <tromey@redhat.com>
8846
8847 * target-delegates.c: Rebuild.
8848 * target.c (target_read_btrace): Unconditionally delegate.
8849 * target.h (struct target_ops) <to_read_btrace>: Use
8850 TARGET_DEFAULT_NORETURN.
8851
8852 2014-02-19 Tom Tromey <tromey@redhat.com>
8853
8854 * target-delegates.c: Rebuild.
8855 * target.c (target_teardown_btrace): Unconditionally delegate.
8856 * target.h (struct target_ops) <to_teardown_btrace>: Use
8857 TARGET_DEFAULT_NORETURN.
8858
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8860
8861 * target-delegates.c: Rebuild.
8862 * target.c (target_disable_btrace): Unconditionally delegate.
8863 * target.h (struct target_ops) <to_disable_btrace>: Use
8864 TARGET_DEFAULT_NORETURN.
8865
8866 2014-02-19 Tom Tromey <tromey@redhat.com>
8867
8868 * target-delegates.c: Rebuild.
8869 * target.c (default_search_memory): New function.
8870 (simple_search_memory): Update comment.
8871 (target_search_memory): Unconditionally delegate.
8872 * target.h (struct target_ops) <to_search_memory>: Use
8873 TARGET_DEFAULT_FUNC.
8874
8875 2014-02-19 Tom Tromey <tromey@redhat.com>
8876
8877 * auxv.c (default_auxv_parse): No longer static.
8878 (target_auxv_parse): Unconditionally delegate.
8879 * auxv.h (default_auxv_parse): Declare.
8880 * target-delegates.c: Rebuild.
8881 * target.c: Include auxv.h.
8882 * target.h (struct target_ops) <to_auxv_parse>: Use
8883 TARGET_DEFAULT_FUNC.
8884
8885 2014-02-19 Tom Tromey <tromey@redhat.com>
8886
8887 * target-delegates.c: Rebuild.
8888 * target.c (target_memory_map): Unconditionally delegate.
8889 * target.h (struct target_ops) <to_memory_map>: Use
8890 TARGET_DEFAULT_RETURN.
8891
8892 2014-02-19 Tom Tromey <tromey@redhat.com>
8893
8894 * target-delegates.c: Rebuild.
8895 * target.c (target_thread_alive): Unconditionally delegate.
8896 * target.h (struct target_ops) <to_thread_alive>: Use
8897 TARGET_DEFAULT_RETURN.
8898
8899 2014-02-19 Tom Tromey <tromey@redhat.com>
8900
8901 * target-delegates.c: Rebuild.
8902 * target.c (target_save_record): Unconditionally delegate.
8903 * target.h (struct target_ops) <to_save_record>: Use
8904 TARGET_DEFAULT_NORETURN.
8905
8906 2014-02-19 Tom Tromey <tromey@redhat.com>
8907
8908 * target-delegates.c: Rebuild.
8909 * target.c (target_delete_record): Unconditionally delegate.
8910 * target.h (struct target_ops) <to_delete_record>: Use
8911 TARGET_DEFAULT_NORETURN.
8912
8913 2014-02-19 Tom Tromey <tromey@redhat.com>
8914
8915 * target-delegates.c: Rebuild.
8916 * target.c (target_record_is_replaying): Unconditionally
8917 delegate.
8918 * target.h (struct target_ops) <to_record_is_replaying>: Use
8919 TARGET_DEFAULT_RETURN.
8920
8921 2014-02-19 Tom Tromey <tromey@redhat.com>
8922
8923 * target-delegates.c: Rebuild.
8924 * target.c (target_goto_record_begin): Unconditionally delegate.
8925 * target.h (struct target_ops) <to_goto_record_begin>: Use
8926 TARGET_DEFAULT_NORETURN.
8927
8928 2014-02-19 Tom Tromey <tromey@redhat.com>
8929
8930 * target-delegates.c: Rebuild.
8931 * target.c (target_goto_record_end): Unconditionally delegate.
8932 * target.h (struct target_ops) <to_goto_record_end>: Use
8933 TARGET_DEFAULT_NORETURN.
8934
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8936
8937 * target-delegates.c: Rebuild.
8938 * target.c (target_goto_record): Unconditionally delegate.
8939 * target.h (struct target_ops) <to_goto_record>: Use
8940 TARGET_DEFAULT_NORETURN.
8941
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8943
8944 * target-delegates.c: Rebuild.
8945 * target.c (target_insn_history): Unconditionally delegate.
8946 * target.h (struct target_ops) <to_insn_history>: Use
8947 TARGET_DEFAULT_NORETURN.
8948
8949 2014-02-19 Tom Tromey <tromey@redhat.com>
8950
8951 * target-delegates.c: Rebuild.
8952 * target.c (target_insn_history_from): Unconditionally delegate.
8953 * target.h (struct target_ops) <to_insn_history_from>: Use
8954 TARGET_DEFAULT_NORETURN.
8955
8956 2014-02-19 Tom Tromey <tromey@redhat.com>
8957
8958 * target-delegates.c: Rebuild.
8959 * target.c (target_insn_history_range): Unconditionally delegate.
8960 * target.h (struct target_ops) <to_insn_history_range>: Use
8961 TARGET_DEFAULT_NORETURN.
8962
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8964
8965 * target-delegates.c: Rebuild.
8966 * target.c (target_call_history): Unconditionally delegate.
8967 * target.h (struct target_ops) <to_call_history>: Use
8968 TARGET_DEFAULT_NORETURN.
8969
8970 2014-02-19 Tom Tromey <tromey@redhat.com>
8971
8972 * target-delegates.c: Rebuild.
8973 * target.c (target_call_history_from): Unconditionally delegate.
8974 * target.h (struct target_ops) <to_call_history_from>: Use
8975 TARGET_DEFAULT_NORETURN.
8976
8977 2014-02-19 Tom Tromey <tromey@redhat.com>
8978
8979 * target-delegates.c: Rebuild.
8980 * target.c (target_call_history_range): Unconditionally delegate.
8981 * target.h (struct target_ops) <to_call_history_range>: Use
8982 TARGET_DEFAULT_NORETURN.
8983
8984 2014-02-19 Tom Tromey <tromey@redhat.com>
8985
8986 * target-delegates.c: Rebuild.
8987 * target.c (target_verify_memory): Unconditionally delegate.
8988 * target.h (struct target_ops) <to_verify_memory>: Use
8989 TARGET_DEFAULT_NORETURN.
8990
8991 2014-02-19 Tom Tromey <tromey@redhat.com>
8992
8993 * target-delegates.c: Rebuild.
8994 * target.c (target_core_of_thread): Unconditionally delegate.
8995 * target.h (struct target_ops) <to_core_of_thread>: Use
8996 TARGET_DEFAULT_RETURN.
8997
8998 2014-02-19 Tom Tromey <tromey@redhat.com>
8999
9000 * target-delegates.c: Rebuild.
9001 * target.c (target_flash_done): Unconditionally delegate.
9002 * target.h (struct target_ops) <to_flash_done>: Use
9003 TARGET_DEFAULT_NORETURN.
9004
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9006
9007 * target-delegates.c: Rebuild.
9008 * target.c (target_flash_erase): Unconditionally delegate.
9009 * target.h (struct target_ops) <to_flash_erase>: Use
9010 TARGET_DEFAULT_NORETURN.
9011
9012 2014-02-19 Tom Tromey <tromey@redhat.com>
9013
9014 * target-delegates.c: Rebuild.
9015 * target.c (target_get_section_table): Unconditionally delegate.
9016 * target.h (struct target_ops) <to_get_section_table>: Use
9017 TARGET_DEFAULT_RETURN.
9018
9019 2014-02-19 Tom Tromey <tromey@redhat.com>
9020
9021 * target-delegates.c: Rebuild.
9022 * target.c (target_pid_to_str): Unconditionally delegate.
9023 (init_dummy_target): Don't initialize to_pid_to_str.
9024 (default_pid_to_str): Rename from dummy_pid_to_str.
9025 * target.h (struct target_ops) <to_pid_to_str>: Use
9026 TARGET_DEFAULT_FUNC.
9027
9028 2014-02-19 Tom Tromey <tromey@redhat.com>
9029
9030 * target-delegates.c: Rebuild.
9031 * target.c (target_find_new_threads): Unconditionally delegate.
9032 * target.h (struct target_ops) <to_find_new_threads>: Use
9033 TARGET_DEFAULT_RETURN.
9034
9035 2014-02-19 Tom Tromey <tromey@redhat.com>
9036
9037 * target-delegates.c: Rebuild.
9038 * target.c (target_program_signals): Unconditionally delegate.
9039 * target.h (struct target_ops) <to_program_signals>: Use
9040 TARGET_DEFAULT_IGNORE.
9041
9042 2014-02-19 Tom Tromey <tromey@redhat.com>
9043
9044 * target-delegates.c: Rebuild.
9045 * target.c (target_pass_signals): Unconditionally delegate.
9046 * target.h (struct target_ops) <to_pass_signals>: Use
9047 TARGET_DEFAULT_IGNORE.
9048
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9050
9051 * target-delegates.c: Rebuild.
9052 * target.c (default_mourn_inferior): New function.
9053 (target_mourn_inferior): Unconditionally delegate.
9054 * target.h (struct target_ops) <to_mourn_inferior>: Use
9055 TARGET_DEFAULT_FUNC.
9056
9057 2014-02-19 Tom Tromey <tromey@redhat.com>
9058
9059 * target-delegates.c: Rebuild.
9060 * target.c (default_follow_fork): New function.
9061 (target_follow_fork): Unconditionally delegate.
9062 * target.h (struct target_ops) <to_follow_fork>: Use
9063 TARGET_DEFAULT_FUNC.
9064
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9066
9067 * target-delegates.c: Rebuild.
9068 * target.c (target_kill): Unconditionally delegate.
9069 * target.h (struct target_ops) <to_kill>: Use
9070 TARGET_DEFAULT_NORETURN.
9071
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9073
9074 * target-delegates.c: Rebuild.
9075 * target.c (target_masked_watch_num_registers): Unconditionally
9076 delegate.
9077 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9078 Use TARGET_DEFAULT_RETURN.
9079
9080 2014-02-19 Tom Tromey <tromey@redhat.com>
9081
9082 * target-delegates.c: Rebuild.
9083 * target.c (target_remove_mask_watchpoint): Unconditionally
9084 delegate.
9085 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9086 TARGET_DEFAULT_RETURN.
9087
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9089
9090 * target-delegates.c: Rebuild.
9091 * target.c (target_insert_mask_watchpoint): Unconditionally
9092 delegate.
9093 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9094 TARGET_DEFAULT_RETURN.
9095
9096 2014-02-19 Tom Tromey <tromey@redhat.com>
9097
9098 * target-delegates.c: Rebuild.
9099 * target.c (target_ranged_break_num_registers): Unconditionally
9100 delegate.
9101 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9102 Use TARGET_DEFAULT_RETURN.
9103
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9105
9106 * target-delegates.c: Rebuild.
9107 * target.c (target_fetch_registers): Unconditionally delegate.
9108 * target.h (struct target_ops) <to_fetch_registers>: Use
9109 TARGET_DEFAULT_NORETURN.
9110
9111 2014-02-19 Tom Tromey <tromey@redhat.com>
9112
9113 * target-delegates.c: Rebuild.
9114 * target.c (update_current_target): Don't inherit or default
9115 to_stop.
9116 * target.h (struct target_ops) <to_stop>: Use
9117 TARGET_DEFAULT_IGNORE.
9118
9119 2014-02-19 Tom Tromey <tromey@redhat.com>
9120
9121 * target-delegates.c: Rebuild.
9122 * target.c (update_current_target): Don't inherit or default
9123 to_can_run_breakpoint_commands.
9124 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9125 Use TARGET_DEFAULT_RETURN.
9126
9127 2014-02-19 Tom Tromey <tromey@redhat.com>
9128
9129 * target-delegates.c: Rebuild.
9130 * target.c (update_current_target): Don't inherit or default
9131 to_supports_evaluation_of_breakpoint_conditions.
9132 * target.h (struct target_ops)
9133 <to_supports_evaluation_of_breakpoint_conditions>: Use
9134 TARGET_DEFAULT_RETURN.
9135
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9137
9138 * target-delegates.c: Rebuild.
9139 * target.c (update_current_target): Don't inherit or default
9140 to_augmented_libraries_svr4_read.
9141 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9142 Use TARGET_DEFAULT_RETURN.
9143
9144 2014-02-19 Tom Tromey <tromey@redhat.com>
9145
9146 * target-delegates.c: Rebuild.
9147 * target.c (update_current_target): Don't inherit or default
9148 to_can_use_agent.
9149 * target.h (struct target_ops) <to_can_use_agent>: Use
9150 TARGET_DEFAULT_RETURN.
9151
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9153
9154 * target-delegates.c: Rebuild.
9155 * target.c (update_current_target): Don't inherit or default
9156 to_use_agent.
9157 * target.h (struct target_ops) <to_use_agent>: Use
9158 TARGET_DEFAULT_NORETURN.
9159
9160 2014-02-19 Tom Tromey <tromey@redhat.com>
9161
9162 * target-delegates.c: Rebuild.
9163 * target.c (update_current_target): Don't inherit or default
9164 to_traceframe_info.
9165 (return_null): Remove.
9166 * target.h (struct target_ops) <to_traceframe_info>: Use
9167 TARGET_DEFAULT_RETURN.
9168
9169 2014-02-19 Tom Tromey <tromey@redhat.com>
9170
9171 * target-delegates.c: Rebuild.
9172 * target.c (update_current_target): Don't inherit or default
9173 to_static_tracepoint_markers_by_strid.
9174 * target.h (struct target_ops)
9175 <to_static_tracepoint_markers_by_strid>: Use
9176 TARGET_DEFAULT_NORETURN.
9177
9178 2014-02-19 Tom Tromey <tromey@redhat.com>
9179
9180 * target-delegates.c: Rebuild.
9181 * target.c (update_current_target): Don't inherit or default
9182 to_static_tracepoint_marker_at.
9183 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9184 Use TARGET_DEFAULT_RETURN.
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_permissions.
9191 * target.h (struct target_ops) <to_set_permissions>: 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_get_tib_address.
9199 * target.h (struct target_ops) <to_get_tib_address>: Use
9200 TARGET_DEFAULT_NORETURN.
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_set_trace_notes.
9207 * target.h (struct target_ops) <to_set_trace_notes>: Use
9208 TARGET_DEFAULT_RETURN.
9209
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9211
9212 * target-delegates.c: Rebuild.
9213 * target.c (update_current_target): Don't initialize
9214 to_set_trace_buffer_size.
9215 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9216 TARGET_DEFAULT_IGNORE.
9217
9218 2014-02-19 Tom Tromey <tromey@redhat.com>
9219
9220 * target-delegates.c: Rebuild.
9221 * target.c (update_current_target): Don't inherit or default
9222 to_set_circular_trace_buffer.
9223 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9224 TARGET_DEFAULT_IGNORE.
9225
9226 2014-02-19 Tom Tromey <tromey@redhat.com>
9227
9228 * target-delegates.c: Rebuild.
9229 * target.c (update_current_target): Don't inherit or default
9230 to_set_disconnected_tracing.
9231 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9232 TARGET_DEFAULT_IGNORE.
9233
9234 2014-02-19 Tom Tromey <tromey@redhat.com>
9235
9236 * target-delegates.c: Rebuild.
9237 * target.c (update_current_target): Don't inherit or default
9238 to_get_min_fast_tracepoint_insn_len.
9239 (return_minus_one): Remove.
9240 * target.h (struct target_ops)
9241 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
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_raw_trace_data.
9248 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9249 TARGET_DEFAULT_NORETURN.
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_upload_trace_state_variables.
9256 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9257 Use TARGET_DEFAULT_RETURN.
9258
9259 2014-02-19 Tom Tromey <tromey@redhat.com>
9260
9261 * target-delegates.c: Rebuild.
9262 * target.c (update_current_target): Don't inherit or default
9263 to_upload_tracepoints.
9264 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9265 TARGET_DEFAULT_RETURN.
9266
9267 2014-02-19 Tom Tromey <tromey@redhat.com>
9268
9269 * target-delegates.c: Rebuild.
9270 * target.c (update_current_target): Don't inherit or default
9271 to_save_trace_data.
9272 * target.h (struct target_ops) <to_save_trace_data>: Use
9273 TARGET_DEFAULT_NORETURN.
9274
9275 2014-02-19 Tom Tromey <tromey@redhat.com>
9276
9277 * target-delegates.c: Rebuild.
9278 * target.c (update_current_target): Don't inherit or default
9279 to_get_trace_state_variable_value.
9280 * target.h (struct target_ops)
9281 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9282
9283 2014-02-19 Tom Tromey <tromey@redhat.com>
9284
9285 * target-delegates.c: Rebuild.
9286 * target.c (update_current_target): Don't inherit or default
9287 to_trace_find.
9288 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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_stop.
9295 * target.h (struct target_ops) <to_trace_stop>: Use
9296 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_get_tracepoint_status.
9303 * target.h (struct target_ops) <to_get_tracepoint_status>: 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_get_trace_status.
9311 * target.h (struct target_ops) <to_get_trace_status>: Use
9312 TARGET_DEFAULT_RETURN.
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_trace_start.
9319 * target.h (struct target_ops) <to_trace_start>: Use
9320 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_trace_set_readonly_regions.
9327 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9328 Use TARGET_DEFAULT_NORETURN.
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_disable_tracepoint.
9335 * target.h (struct target_ops) <to_disable_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_enable_tracepoint.
9343 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9344 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
9351 * target.h (struct target_ops) <to_download_trace_state_variable>:
9352 Use TARGET_DEFAULT_NORETURN.
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_can_download_tracepoint.
9359 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9360 TARGET_DEFAULT_RETURN.
9361
9362 2014-02-19 Tom Tromey <tromey@redhat.com>
9363
9364 * target-delegates.c: Rebuild.
9365 * target.c (update_current_target): Don't inherit or default
9366 to_download_tracepoint.
9367 * target.h (struct target_ops) <to_download_tracepoint>: Use
9368 TARGET_DEFAULT_NORETURN.
9369
9370 2014-02-19 Tom Tromey <tromey@redhat.com>
9371
9372 * target-delegates.c: Rebuild.
9373 * target.c (update_current_target): Don't inherit or default
9374 to_trace_init.
9375 * target.h (struct target_ops) <to_trace_init>: Use
9376 TARGET_DEFAULT_RETURN.
9377
9378 2014-02-19 Tom Tromey <tromey@redhat.com>
9379
9380 * target-delegates.c: Rebuild.
9381 * target.c (update_current_target): Don't inherit or default
9382 to_supports_string_tracing.
9383 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9384 TARGET_DEFAULT_RETURN.
9385
9386 2014-02-19 Tom Tromey <tromey@redhat.com>
9387
9388 * target-delegates.c: Rebuild.
9389 * target.c (update_current_target): Don't inherit or default
9390 to_supports_enable_disable_tracepoint.
9391 * target.h (struct target_ops)
9392 <to_supports_enable_disable_tracepoint>: Use
9393 TARGET_DEFAULT_RETURN.
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_supports_multi_process.
9400 * target.h (struct target_ops) <to_supports_multi_process>: Use
9401 TARGET_DEFAULT_RETURN.
9402
9403 2014-02-19 Tom Tromey <tromey@redhat.com>
9404
9405 * target-delegates.c: Rebuild.
9406 * target.c (update_current_target): Don't inherit or default
9407 to_get_ada_task_ptid.
9408 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9409 TARGET_DEFAULT_FUNC.
9410
9411 2014-02-19 Tom Tromey <tromey@redhat.com>
9412
9413 * target-delegates.c: Rebuild.
9414 * target.c (update_current_target): Don't inherit or default
9415 to_thread_architecture.
9416 * target.h (struct target_ops) <to_thread_architecture>: Use
9417 TARGET_DEFAULT_FUNC.
9418
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9420
9421 * target-delegates.c: Rebuild.
9422 * target.c (update_current_target): Don't inherit or default
9423 to_execution_direction.
9424 * target.h (struct target_ops) <to_execution_direction>: Use
9425 TARGET_DEFAULT_FUNC.
9426
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9428
9429 * target-delegates.c: Rebuild.
9430 * target.c (update_current_target): Don't inherit or default
9431 to_can_execute_reverse.
9432 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9433 TARGET_DEFAULT_RETURN.
9434 (target_can_execute_reverse): Unconditionally delegate.
9435
9436 2014-02-19 Tom Tromey <tromey@redhat.com>
9437
9438 * target-delegates.c: Rebuild.
9439 * target.c (update_current_target): Don't inherit or default
9440 to_goto_bookmark.
9441 (dummy_goto_bookmark): Remove.
9442 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9443 * target.h (struct target_ops) <to_goto_bookmark>: Use
9444 TARGET_DEFAULT_NORETURN.
9445
9446 2014-02-19 Tom Tromey <tromey@redhat.com>
9447
9448 * target-delegates.c: Rebuild.
9449 * target.c (update_current_target): Don't inherit or default
9450 to_get_bookmark.
9451 (dummy_get_bookmark): Remove.
9452 (init_dummy_target): Don't inherit or default to_get_bookmark.
9453 * target.h (struct target_ops) <to_get_bookmark>: Use
9454 TARGET_DEFAULT_NORETURN
9455
9456 2014-02-19 Tom Tromey <tromey@redhat.com>
9457
9458 * target-delegates.c: Rebuild.
9459 * target.c (update_current_target): Don't inherit or default
9460 to_make_corefile_notes.
9461 (init_dummy_target): Don't initialize to_make_corefile_notes.
9462 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9463 TARGET_DEFAULT_FUNC.
9464
9465 2014-02-19 Tom Tromey <tromey@redhat.com>
9466
9467 * target-delegates.c: Rebuild.
9468 * target.c (update_current_target): Don't inherit or default
9469 to_find_memory_regions.
9470 (init_dummy_target): Don't initialize to_find_memory_regions.
9471 * target.h (struct target_ops) <to_find_memory_regions>: Use
9472 TARGET_DEFAULT_FUNC.
9473
9474 2014-02-19 Tom Tromey <tromey@redhat.com>
9475
9476 * target-delegates.c: Rebuild.
9477 * target.c (update_current_target): Don't inherit or default
9478 to_log_command.
9479 * target.h (struct target_ops) <to_log_command>: Use
9480 TARGET_DEFAULT_IGNORE.
9481 (target_log_command): Unconditionally delegate.
9482
9483 2014-02-19 Tom Tromey <tromey@redhat.com>
9484
9485 * target-delegates.c: Rebuild.
9486 * target.c (update_current_target): Don't inherit or default
9487 to_pid_to_exec_file.
9488 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9489 TARGET_DEFAULT_RETURN.
9490
9491 2014-02-19 Tom Tromey <tromey@redhat.com>
9492
9493 * target-delegates.c: Rebuild.
9494 * target.c (update_current_target): Don't inherit or default
9495 to_thread_name.
9496 (target_thread_name): Unconditionally delegate.
9497 * target.h (struct target_ops) <to_thread_name>: Use
9498 TARGET_DEFAULT_RETURN.
9499
9500 2014-02-19 Tom Tromey <tromey@redhat.com>
9501
9502 * target-delegates.c: Rebuild.
9503 * target.c (update_current_target): Don't inherit or default
9504 to_extra_thread_info.
9505 * target.h (struct target_ops) <to_extra_thread_info>: Use
9506 TARGET_DEFAULT_RETURN.
9507
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9509
9510 * target-delegates.c: Rebuild.
9511 * target.c (update_current_target): Don't inherit or default
9512 to_has_exited.
9513 * target.h (struct target_ops) <to_has_exited>: Use
9514 TARGET_DEFAULT_RETURN..
9515
9516 2014-02-19 Tom Tromey <tromey@redhat.com>
9517
9518 * target-delegates.c: Rebuild.
9519 * target.c (update_current_target): Don't inherit or default
9520 to_set_syscall_catchpoint.
9521 (return_one): Remove.
9522 * target.h (struct target_ops) <to_set_syscall_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_insert_exec_catchpoint.
9530 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9531 TARGET_DEFAULT_RETURN.
9532
9533 2014-01-08 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_exec_catchpoint.
9538 * target.h (struct target_ops) <to_insert_exec_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_remove_vfork_catchpoint.
9546 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9547 TARGET_DEFAULT_RETURN.
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_insert_vfork_catchpoint.
9554 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9555 TARGET_DEFAULT_RETURN.
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_remove_fork_catchpoint.
9562 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9563 TARGET_DEFAULT_RETURN.
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_insert_fork_catchpoint.
9570 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9571 TARGET_DEFAULT_RETURN.
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_post_startup_inferior.
9578 * target.h (struct target_ops) <to_post_startup_inferior>: 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_load.
9586 * target.h (struct target_ops) <to_load>: Use
9587 TARGET_DEFAULT_NORETURN.
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_info.
9594 * target.h (struct target_ops) <to_terminal_info>: Use
9595 TARGET_DEFAULT_FUNC.
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_save_ours.
9602 * target.h (struct target_ops) <to_terminal_save_ours>: 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_terminal_ours.
9610 * target.h (struct target_ops) <to_terminal_ours>: Use
9611 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
9618 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9619 TARGET_DEFAULT_IGNORE.
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_terminal_inferior.
9626 * target.h (struct target_ops) <to_terminal_inferior>: Use
9627 TARGET_DEFAULT_IGNORE.
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_terminal_init.
9634 * target.h (struct target_ops) <to_terminal_init>: Use
9635 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
9642 * target.h (struct target_ops)
9643 <to_can_accel_watchpoint_condition>: Use 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_region_ok_for_hw_watchpoint.
9650 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9651 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
9658 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9659 Use TARGET_DEFAULT_FUNC.
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_remove_watchpoint.
9666 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9667 TARGET_DEFAULT_NORETURN.
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_insert_watchpoint.
9674 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9675 TARGET_DEFAULT_RETURN.
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_remove_hw_breakpoint.
9682 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9683 TARGET_DEFAULT_RETURN.
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_insert_hw_breakpoint.
9690 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9691 TARGET_DEFAULT_RETURN.
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_can_use_hw_breakpoint.
9698 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9699 TARGET_DEFAULT_RETURN.
9700
9701 2014-02-19 Tom Tromey <tromey@redhat.com>
9702
9703 * target-delegates.c: Rebuild.
9704 * target.c (update_current_target): Don't inherit or default
9705 to_files_info.
9706 * target.h (struct target_ops) <to_files_info>: Use
9707 TARGET_DEFAULT_IGNORE.
9708
9709 2014-02-19 Tom Tromey <tromey@redhat.com>
9710
9711 * target-delegates.c: Rebuild.
9712 * target.c (update_current_target): Don't inherit or default
9713 to_store.
9714 * target.h (struct target_ops) <to_store>: Use
9715 TARGET_DEFAULT_NORETURN.
9716
9717 2014-02-19 Tom Tromey <tromey@redhat.com>
9718
9719 * target-delegates.c: Rebuild.
9720 * target.c (update_current_target): Don't inherit or default
9721 to_post_attach.
9722 * target.h (struct target_ops) <to_post_attach>: Use
9723 TARGET_DEFAULT_IGNORE.
9724
9725 2014-02-19 Tom Tromey <tromey@redhat.com>
9726
9727 * target-delegates.c: Rebuild.
9728 * target.c (update_current_target): Don't inherit or default
9729 to_rcmd.
9730 (default_rcmd): New function.
9731 (do_monitor_command): Unconditionally delegate.
9732 * target.h (struct target_ops) <to_rmcd>: Use
9733 TARGET_DEFAULT_FUNC.
9734
9735 2014-02-19 Tom Tromey <tromey@redhat.com>
9736
9737 * target-delegates.c: Rebuild.
9738 * target.c (init_dummy_target): Don't initialize to_attach.
9739 (target_attach): Unconditionally delegate.
9740 * target.h (struct target_ops) <to_attach>: Use
9741 TARGET_DEFAULT_FUNC.
9742
9743 2014-02-19 Tom Tromey <tromey@redhat.com>
9744
9745 * target-delegates.c: Rebuild.
9746 * target.c (target_detach): Unconditionally delegate.
9747 (init_dummy_target): Don't initialize to_detach.
9748 * target.h (struct target_ops) <to_detach>: Use
9749 TARGET_DEFAULT_IGNORE.
9750
9751 2014-02-19 Tom Tromey <tromey@redhat.com>
9752
9753 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9754 Add argument.
9755 (target_augmented_libraries_svr4_read): Add argument.
9756 * target.c (update_current_target): Update.
9757 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9758 argument.
9759
9760 2014-02-19 Tom Tromey <tromey@redhat.com>
9761
9762 * target.h (struct target_ops) <to_call_history_range>: Add
9763 argument.
9764 * target.c (target_call_history_range): Add argument.
9765 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9766 argument.
9767 (record_btrace_call_history_from): Update.
9768
9769 2014-02-19 Tom Tromey <tromey@redhat.com>
9770
9771 * target.h (struct target_ops) <to_call_history_from>: Add
9772 argument.
9773 * target.c (target_call_history_from): Add argument.
9774 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9775 argument.
9776
9777 2014-02-19 Tom Tromey <tromey@redhat.com>
9778
9779 * target.h (struct target_ops) <to_call_history>: Add argument.
9780 * target.c (target_call_history): Add argument.
9781 * record-btrace.c (record_btrace_call_history): Add 'self'
9782 argument.
9783
9784 2014-02-19 Tom Tromey <tromey@redhat.com>
9785
9786 * target.h (struct target_ops) <to_insn_history_range>: Add
9787 argument.
9788 * target.c (target_insn_history_range): Add argument.
9789 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9790 argument.
9791 (record_btrace_insn_history_from): Update.
9792
9793 2014-02-19 Tom Tromey <tromey@redhat.com>
9794
9795 * target.h (struct target_ops) <to_insn_history_from>: Add
9796 argument.
9797 * target.c (target_insn_history_from): Add argument.
9798 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9799 argument.
9800
9801 2014-02-19 Tom Tromey <tromey@redhat.com>
9802
9803 * target.h (struct target_ops) <to_insn_history>: Add argument.
9804 * target.c (target_insn_history): Add argument.
9805 * record-btrace.c (record_btrace_insn_history): Add 'self'
9806 argument.
9807
9808 2014-02-19 Tom Tromey <tromey@redhat.com>
9809
9810 * target.h (struct target_ops) <to_goto_record>: Add argument.
9811 * target.c (target_goto_record): Add argument.
9812 * record-full.c (record_full_goto): Add 'self' argument.
9813 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9814
9815 2014-02-19 Tom Tromey <tromey@redhat.com>
9816
9817 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9818 * target.c (target_goto_record_end): Add argument.
9819 * record-full.c (record_full_goto_end): Add 'self' argument.
9820 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9821
9822 2014-02-19 Tom Tromey <tromey@redhat.com>
9823
9824 * target.h (struct target_ops) <to_goto_record_begin>: Add
9825 argument.
9826 * target.c (target_goto_record_begin): Add argument.
9827 * record-full.c (record_full_goto_begin): Add 'self' argument.
9828 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9829 argument.
9830
9831 2014-02-19 Tom Tromey <tromey@redhat.com>
9832
9833 * target.h (struct target_ops) <to_record_is_replaying>: Add
9834 argument.
9835 * target.c (target_record_is_replaying): Add argument.
9836 * record-full.c (record_full_is_replaying): Add 'self' argument.
9837 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9838 argument.
9839 (record_btrace_xfer_partial, record_btrace_store_registers)
9840 (record_btrace_prepare_to_store, record_btrace_resume)
9841 (record_btrace_wait, record_btrace_decr_pc_after_break)
9842 (record_btrace_find_new_threads, record_btrace_thread_alive):
9843 Update.
9844
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9846
9847 * target.h (struct target_ops) <to_delete_record>: Add argument.
9848 * target.c (target_delete_record): Add argument.
9849 * record-full.c (record_full_delete): Add 'self' argument.
9850
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9852
9853 * target.h (struct target_ops) <to_save_record>: Add argument.
9854 * target.c (target_save_record): Add argument.
9855 * record-full.c (record_full_save): Add 'self' argument.
9856 (record_full_save): Add 'self' argument.
9857
9858 2014-02-19 Tom Tromey <tromey@redhat.com>
9859
9860 * target.h (struct target_ops) <to_info_record>: Add argument.
9861 * target.c (target_info_record): Add argument.
9862 * record.c (info_record_command): Add argument.
9863 * record-full.c (record_full_info): Add 'self' argument.
9864 * record-btrace.c (record_btrace_info): Add 'self' argument.
9865
9866 2014-02-19 Tom Tromey <tromey@redhat.com>
9867
9868 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9869 * target.c (target_stop_recording): Add argument.
9870 * record.c (record_stop): Add argument.
9871 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9872 argument.
9873
9874 2014-02-19 Tom Tromey <tromey@redhat.com>
9875
9876 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9877 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9878 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9879 argument.
9880 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9881 (_initialize_amd64_linux_nat): Use it.
9882 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9883 (_initialize_i386_linux_nat): Use it.
9884
9885 2014-02-19 Tom Tromey <tromey@redhat.com>
9886
9887 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9888 * target.c (target_teardown_btrace): Add argument.
9889 * remote.c (remote_teardown_btrace): Add 'self' argument.
9890 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9891 argument.
9892 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9893 argument.
9894
9895 2014-02-19 Tom Tromey <tromey@redhat.com>
9896
9897 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9898 * target.c (target_disable_btrace): Add argument.
9899 * remote.c (remote_disable_btrace): Add 'self' argument.
9900 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9901 argument.
9902 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9903 argument.
9904
9905 2014-02-19 Tom Tromey <tromey@redhat.com>
9906
9907 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9908 * target.c (target_enable_btrace): Add argument.
9909 * remote.c (remote_enable_btrace): Add 'self' argument.
9910 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9911 argument.
9912 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9913 argument.
9914
9915 2014-02-19 Tom Tromey <tromey@redhat.com>
9916
9917 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9918 (target_can_use_agent): Add argument.
9919 * target.c (update_current_target): Update.
9920 * remote.c (remote_can_use_agent): Add 'self' argument.
9921 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9922
9923 2014-02-19 Tom Tromey <tromey@redhat.com>
9924
9925 * target.h (struct target_ops) <to_use_agent>: Add argument.
9926 (target_use_agent): Add argument.
9927 * target.c (update_current_target): Update.
9928 * remote.c (remote_use_agent): Add 'self' argument.
9929 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9930
9931 2014-02-19 Tom Tromey <tromey@redhat.com>
9932
9933 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9934 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9935 (target_traceframe_info): Add argument.
9936 * target.c (update_current_target): Update.
9937 * remote.c (remote_traceframe_info): Add 'self' argument.
9938 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9939
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9941
9942 * target.h (target_static_tracepoint_markers_by_strid): Add
9943 argument.
9944 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9945 'self' argument.
9946 * target.c (update_current_target): Update.
9947 * remote.c (struct target_ops)
9948 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9949 * linux-nat.c (struct target_ops)
9950 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9951
9952 2014-02-19 Tom Tromey <tromey@redhat.com>
9953
9954 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9955 Add argument.
9956 (target_static_tracepoint_marker_at): Add argument.
9957 * target.c (update_current_target): Update.
9958 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9959 argument.
9960
9961 2014-02-19 Tom Tromey <tromey@redhat.com>
9962
9963 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9964 (target_set_permissions): Add argument.
9965 * target.c (update_current_target): Update.
9966 * remote.c (remote_set_permissions): Add 'self' argument.
9967 (remote_start_remote): Update.
9968
9969 2014-02-19 Tom Tromey <tromey@redhat.com>
9970
9971 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9972 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9973 (target_get_tib_address): Add argument.
9974 * target.c (update_current_target): Update.
9975 * remote.c (remote_get_tib_address): Add 'self' argument.
9976
9977 2014-02-19 Tom Tromey <tromey@redhat.com>
9978
9979 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9980 (target_set_trace_notes): Add argument.
9981 * target.c (update_current_target): Update.
9982 * remote.c (remote_set_trace_notes): Add 'self' argument.
9983
9984 2014-02-19 Tom Tromey <tromey@redhat.com>
9985
9986 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9987 argument.
9988 (target_set_trace_buffer_size): Add argument.
9989 * target.c (update_current_target): Update.
9990 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9991
9992 2014-02-19 Tom Tromey <tromey@redhat.com>
9993
9994 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9995 argument.
9996 (target_set_circular_trace_buffer): Add argument.
9997 * target.c (update_current_target): Update.
9998 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9999 argument.
10000
10001 2014-02-19 Tom Tromey <tromey@redhat.com>
10002
10003 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10004 argument.
10005 (target_set_disconnected_tracing): Add argument.
10006 * target.c (update_current_target): Update.
10007 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10008
10009 2014-02-19 Tom Tromey <tromey@redhat.com>
10010
10011 * target.h (struct target_ops)
10012 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10013 (target_get_min_fast_tracepoint_insn_len): Add argument.
10014 * target.c (update_current_target): Update.
10015 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10016 argument.
10017
10018 2014-02-19 Tom Tromey <tromey@redhat.com>
10019
10020 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10021 argument.
10022 (target_get_raw_trace_data): Add argument.
10023 * target.c (update_current_target): Update.
10024 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10025
10026 2014-02-19 Tom Tromey <tromey@redhat.com>
10027
10028 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10029 Add argument.
10030 (target_upload_trace_state_variables): Add argument.
10031 * target.c (update_current_target): Update.
10032 * remote.c (remote_upload_trace_state_variables): Add 'self'
10033 argument.
10034 (remote_start_remote): Update.
10035
10036 2014-02-19 Tom Tromey <tromey@redhat.com>
10037
10038 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10039 argument.
10040 (target_upload_tracepoints): Add argument.
10041 * target.c (update_current_target): Update.
10042 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10043 (remote_start_remote): Update.
10044
10045 2014-02-19 Tom Tromey <tromey@redhat.com>
10046
10047 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10048 (target_save_trace_data): Add argument.
10049 * target.c (update_current_target): Update.
10050 * remote.c (remote_save_trace_data): Add 'self' argument.
10051
10052 2014-02-19 Tom Tromey <tromey@redhat.com>
10053
10054 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10055 argument.
10056 * target.h (struct target_ops)
10057 <to_get_trace_state_variable_value>: Add argument.
10058 (target_get_trace_state_variable_value): Add argument.
10059 * target.c (update_current_target): Update.
10060 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10061 argument.
10062 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10063
10064 2014-02-19 Tom Tromey <tromey@redhat.com>
10065
10066 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10067 * target.h (struct target_ops) <to_trace_find>: Add argument.
10068 (target_trace_find): Add argument.
10069 * target.c (update_current_target): Update.
10070 * remote.c (remote_trace_find): Add 'self' argument.
10071 * ctf.c (ctf_trace_find): Add 'self' argument.
10072
10073 2014-02-19 Tom Tromey <tromey@redhat.com>
10074
10075 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10076 (target_trace_stop): Add argument.
10077 * target.c (update_current_target): Update.
10078 * remote.c (remote_trace_stop): Add 'self' argument.
10079
10080 2014-02-19 Tom Tromey <tromey@redhat.com>
10081
10082 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10083 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10084 argument.
10085 (target_get_tracepoint_status): Add argument.
10086 * target.c (update_current_target): Update.
10087 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10088
10089 2014-02-19 Tom Tromey <tromey@redhat.com>
10090
10091 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10092 * target.h (struct target_ops) <to_get_trace_status>: Add
10093 argument.
10094 (target_get_trace_status): Add argument.
10095 * target.c (update_current_target): Update.
10096 * remote.c (remote_get_trace_status): Add 'self' argument.
10097 (remote_start_remote, remote_can_download_tracepoint): Update.
10098 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10099
10100 2014-02-19 Tom Tromey <tromey@redhat.com>
10101
10102 * target.h (struct target_ops) <to_trace_start>: Add argument.
10103 (target_trace_start): Add argument.
10104 * target.c (update_current_target): Update.
10105 * remote.c (remote_trace_start): Add 'self' argument.
10106
10107 2014-02-19 Tom Tromey <tromey@redhat.com>
10108
10109 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10110 Add argument.
10111 (target_trace_set_readonly_regions): Add argument.
10112 * target.c (update_current_target): Update.
10113 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10114 argument.
10115
10116 2014-02-19 Tom Tromey <tromey@redhat.com>
10117
10118 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10119 argument.
10120 (target_disable_tracepoint): Add argument.
10121 * target.c (update_current_target): Update.
10122 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10123
10124 2014-02-19 Tom Tromey <tromey@redhat.com>
10125
10126 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10127 argument.
10128 (target_enable_tracepoint): Add argument.
10129 * target.c (update_current_target): Update.
10130 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10131
10132 2014-02-19 Tom Tromey <tromey@redhat.com>
10133
10134 * target.h (struct target_ops) <to_download_trace_state_variable>:
10135 Add argument.
10136 (target_download_trace_state_variable): Add argument.
10137 * target.c (update_current_target): Update.
10138 * remote.c (remote_download_trace_state_variable): Add 'self'
10139 argument.
10140
10141 2014-02-19 Tom Tromey <tromey@redhat.com>
10142
10143 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10144 argument.
10145 (target_can_download_tracepoint): Add argument.
10146 * target.c (update_current_target): Update.
10147 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10148
10149 2014-02-19 Tom Tromey <tromey@redhat.com>
10150
10151 * target.h (struct target_ops) <to_download_tracepoint>: Add
10152 argument.
10153 (target_download_tracepoint): Add argument.
10154 * target.c (update_current_target): Update.
10155 * remote.c (remote_download_tracepoint): Add 'self' argument.
10156
10157 2014-02-19 Tom Tromey <tromey@redhat.com>
10158
10159 * target.h (struct target_ops) <to_trace_init>: Add argument.
10160 (target_trace_init): Add argument.
10161 * target.c (update_current_target): Update.
10162 * remote.c (remote_trace_init): Add 'self' argument.
10163
10164 2014-02-19 Tom Tromey <tromey@redhat.com>
10165
10166 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10167 * target.c (target_fileio_readlink): Add argument.
10168 * remote.c (remote_hostio_readlink): Add 'self' argument.
10169 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10170
10171 2014-02-19 Tom Tromey <tromey@redhat.com>
10172
10173 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10174 * target.c (target_fileio_unlink): Add argument.
10175 * remote.c (remote_hostio_unlink): Add 'self' argument.
10176 (remote_file_delete): Update.
10177 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10178
10179 2014-02-19 Tom Tromey <tromey@redhat.com>
10180
10181 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10182 * target.c (target_fileio_close): Add argument.
10183 * remote.c (remote_hostio_close): Add 'self' argument.
10184 (remote_hostio_close_cleanup): Update.
10185 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10186 Update.
10187 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10188
10189 2014-02-19 Tom Tromey <tromey@redhat.com>
10190
10191 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10192 * target.c (target_fileio_pread): Add argument.
10193 * remote.c (remote_hostio_pread): Add 'self' argument.
10194 (remote_bfd_iovec_pread, remote_file_get): Update.
10195 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10196
10197 2014-02-19 Tom Tromey <tromey@redhat.com>
10198
10199 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10200 * target.c (target_fileio_pwrite): Add argument.
10201 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10202 (remote_file_put): Update.
10203 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10204
10205 2014-02-19 Tom Tromey <tromey@redhat.com>
10206
10207 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10208 * target.c (target_fileio_open): Add argument.
10209 * remote.c (remote_hostio_open): Add 'self' argument.
10210 (remote_bfd_iovec_open): Add 'self' argument.
10211 (remote_file_put): Add 'self' argument.
10212 (remote_file_get): Add 'self' argument.
10213 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10214
10215 2014-02-19 Tom Tromey <tromey@redhat.com>
10216
10217 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10218 Add argument.
10219 (target_can_run_breakpoint_commands): Add argument.
10220 * target.c (update_current_target): Update.
10221 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10222 argument.
10223 (remote_insert_breakpoint): Add 'self' argument.
10224 (remote_insert_hw_breakpoint): Add 'self' argument.
10225 (remote_can_run_breakpoint_commands): Add 'self' argument.
10226
10227 2014-02-19 Tom Tromey <tromey@redhat.com>
10228
10229 * target.h (struct target_ops)
10230 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10231 (target_supports_evaluation_of_breakpoint_conditions): Add
10232 argument.
10233 * target.c (update_current_target): Update.
10234 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10235 argument.
10236 (remote_insert_breakpoint): Add 'self' argument.
10237 (remote_insert_hw_breakpoint): Add 'self' argument.
10238 (remote_supports_cond_breakpoints): Add 'self' argument.
10239
10240 2014-02-19 Tom Tromey <tromey@redhat.com>
10241
10242 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10243 argument.
10244 (target_supports_string_tracing): Add argument.
10245 * target.c (update_current_target): Update.
10246 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10247
10248 2014-02-19 Tom Tromey <tromey@redhat.com>
10249
10250 * target.h (struct target_ops)
10251 <to_supports_disable_randomization>: Add argument.
10252 * target.c (find_default_supports_disable_randomization): Add
10253 argument.
10254 (target_supports_disable_randomization): Add argument.
10255 (find_default_supports_disable_randomization): Add 'self'
10256 argument.
10257 * remote.c (extended_remote_supports_disable_randomization): Add
10258 'self' argument.
10259 (remote_supports_disable_randomization): Add 'self' argument.
10260 (extended_remote_create_inferior): Update.
10261 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10262 'self' argument.
10263
10264 2014-02-19 Tom Tromey <tromey@redhat.com>
10265
10266 * target.h (struct target_ops)
10267 <to_supports_enable_disable_tracepoint>: Add argument.
10268 (target_supports_enable_disable_tracepoint): Add argument.
10269 * target.c (update_current_target): Update.
10270 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10271 argument.
10272
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10274
10275 * target.h (struct target_ops) <to_supports_multi_process>: Add
10276 argument.
10277 (target_supports_multi_process): Add argument.
10278 * target.c (update_current_target): Update.
10279 * remote.c (remote_supports_multi_process): Add 'self' argument.
10280 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10281 argument.
10282 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10283 argument.
10284
10285 2014-02-19 Tom Tromey <tromey@redhat.com>
10286
10287 * target.h (struct target_ops) <to_execution_direction>: Add
10288 argument.
10289 (target_execution_direction): Add argument.
10290 * target.c (default_execution_direction): Add 'self' argument.
10291 * record-full.c (record_full_execution_direction): Add 'self'
10292 argument.
10293
10294 2014-02-19 Tom Tromey <tromey@redhat.com>
10295
10296 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10297 argument.
10298 (target_can_execute_reverse): Add argument.
10299 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10300 * record-full.c (record_full_can_execute_reverse): Add 'self'
10301 argument.
10302 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10303 argument.
10304
10305 2014-02-19 Tom Tromey <tromey@redhat.com>
10306
10307 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10308 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10309 argument.
10310 (target_get_ada_task_ptid): Add argument.
10311 * target.c (update_current_target): Update.
10312 (default_get_ada_task_ptid): Add 'self' argument.
10313 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10314 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10315 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10316 argument.
10317 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10318 argument.
10319 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10320 argument.
10321 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10322 argument.
10323 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10324 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10325 argument.
10326
10327 2014-02-19 Tom Tromey <tromey@redhat.com>
10328
10329 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10330 (target_goto_bookmark): Add argument.
10331 * target.c (dummy_goto_bookmark): Add 'self' argument.
10332 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10333
10334 2014-02-19 Tom Tromey <tromey@redhat.com>
10335
10336 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10337 (target_get_bookmark): Add argument.
10338 * target.c (dummy_get_bookmark): Add 'self' argument.
10339 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10340
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10342
10343 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10344 argument.
10345 (target_make_corefile_notes): Add argument.
10346 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10347 * procfs.c (procfs_make_note_section): Add 'self' argument.
10348 (procfs_make_note_section): Add 'self' argument.
10349 (procfs_make_note_section): Add 'self' argument.
10350 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10351 argument.
10352 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10353 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10354 * exec.c (exec_make_note_section): Add 'self' argument.
10355 (exec_make_note_section): Add 'self' argument.
10356
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * target.h (struct target_ops) <to_find_memory_regions>: Add
10360 argument.
10361 (target_find_memory_regions): Add argument.
10362 * target.c (dummy_find_memory_regions): Add 'self' argument.
10363 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10364 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10365 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10366 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10367 * exec. (exec_do_find_memory_regions): New global.
10368 (exec_set_find_memory_regions): Rewrite.
10369 (exec_find_memory_regions): New function.
10370 (init_exec_ops): Use exec_find_memory_regions.
10371
10372 2014-02-19 Tom Tromey <tromey@redhat.com>
10373
10374 * target.h (struct target_ops) <to_supports_non_stop>: Add
10375 argument.
10376 * target.c (find_default_supports_non_stop): Add argument.
10377 (target_supports_non_stop): Add argument.
10378 (find_default_supports_non_stop): Add 'self' argument.
10379 * remote.c (remote_supports_non_stop): Add 'self' argument.
10380 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10381
10382 2014-02-19 Tom Tromey <tromey@redhat.com>
10383
10384 * target.h (struct target_ops) <to_log_command>: Add argument.
10385 (target_log_command): Add argument.
10386 * serial.h (serial_log_command): Add 'self' argument.
10387 * serial.c (serial_log_command): Add 'self' argument.
10388
10389 2014-02-19 Tom Tromey <tromey@redhat.com>
10390
10391 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10392 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10393 argument.
10394 (target_pid_to_exec_file): Add argument.
10395 * target.c (debug_to_pid_to_exec_file): Add argument.
10396 (update_current_target): Update.
10397 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10398 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10399 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10400 (linux_handle_extended_wait): Update.
10401 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10402 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10403 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10404 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10405
10406 2014-02-19 Tom Tromey <tromey@redhat.com>
10407
10408 * target.h (struct target_ops) <to_rcmd>: Add argument.
10409 (target_rcmd): Add argument.
10410 * target.c (debug_to_rcmd): Add argument.
10411 (update_current_target, do_monitor_command): Update.
10412 * remote.c (remote_rcmd): Add 'self' argument.
10413 * monitor.c (monitor_rcmd): Add 'self' argument.
10414
10415 2014-02-19 Tom Tromey <tromey@redhat.com>
10416
10417 * windows-nat.c (windows_stop): Add 'self' argument.
10418 * target.h (struct target_ops) <to_stop>: Add argument.
10419 * target.c (target_stop): Add argument.
10420 (debug_to_stop): Add argument.
10421 (update_current_target): Update.
10422 * remote.c (remote_stop): Add 'self' argument.
10423 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10424 (gdbsim_cntrl_c): Update.
10425 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10426 * procfs.c (procfs_stop): Add 'self' argument.
10427 * nto-procfs.c (procfs_stop): Add 'self' argument.
10428 * monitor.c (monitor_stop): Add 'self' argument.
10429 (monitor_open): Update.
10430 * linux-nat.c (linux_nat_stop): Add argument.
10431 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10432 * gnu-nat.c (gnu_stop): Add 'self' argument.
10433 * darwin-nat.c (darwin_stop): Add 'self' argument.
10434
10435 2014-02-19 Tom Tromey <tromey@redhat.com>
10436
10437 * target.h (struct target_ops) <to_thread_name>: Add argument.
10438 * target.c (target_thread_name): Add argument.
10439 (update_current_target): Update.
10440 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10441
10442 2014-02-19 Tom Tromey <tromey@redhat.com>
10443
10444 * target.h (struct target_ops) <to_extra_thread_info>: Add
10445 argument.
10446 (target_extra_thread_info): Add argument.
10447 * target.c (update_current_target): Update.
10448 * remote.c (remote_threads_extra_info): Add 'self' argument.
10449 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10450 argument.
10451 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10452 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10453 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10454 argument.
10455 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10456 argument.
10457 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10458 argument.
10459 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10460 argument.
10461
10462 2014-02-19 Tom Tromey <tromey@redhat.com>
10463
10464 * target.h (struct target_ops) <to_program_signals>: Add argument.
10465 * target.c (target_program_signals): Add argument.
10466 * remote.c (remote_program_signals): Add 'self' argument.
10467
10468 2014-02-19 Tom Tromey <tromey@redhat.com>
10469
10470 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10471 * target.c (target_pass_signals): Add argument.
10472 * remote.c (remote_pass_signals): Add 'self' argument.
10473 (remote_start_remote): Update.
10474 * procfs.c (procfs_pass_signals): Add 'self' argument.
10475 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10476 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10477 (linux_nat_create_inferior, linux_nat_attach): Update.
10478
10479 2014-02-19 Tom Tromey <tromey@redhat.com>
10480
10481 * windows-nat.c (windows_can_run): Add 'self' argument.
10482 * target.h (struct target_ops) <to_can_run>: Add argument.
10483 (target_can_run): Add argument.
10484 * target.c (debug_to_can_run): Add argument.
10485 (update_current_target): Update.
10486 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10487 * inf-child.c (inf_child_can_run): Add 'self' argument.
10488 * go32-nat.c (go32_can_run): Add 'self' argument.
10489
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10491
10492 * target.h (struct target_ops) <to_has_exited>: Add argument.
10493 (target_has_exited): Add argument.
10494 * target.c (debug_to_has_exited): Add argument.
10495 (update_current_target): Update.
10496
10497 2014-02-19 Tom Tromey <tromey@redhat.com>
10498
10499 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10500 argument.
10501 (target_set_syscall_catchpoint): Add argument.
10502 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10503 argument.
10504 * target.c (update_current_target): Update.
10505
10506 2014-02-19 Tom Tromey <tromey@redhat.com>
10507
10508 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10509 argument.
10510 (target_remove_exec_catchpoint): Add argument.
10511 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10512 (update_current_target): Update.
10513 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10514 argument.
10515
10516 2014-02-19 Tom Tromey <tromey@redhat.com>
10517
10518 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10519 argument.
10520 (target_insert_exec_catchpoint): Add argument.
10521 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10522 (update_current_target): Update.
10523 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10524 argument.
10525
10526 2014-02-19 Tom Tromey <tromey@redhat.com>
10527
10528 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10529 argument.
10530 (target_remove_vfork_catchpoint): Add argument.
10531 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10532 (update_current_target): Update.
10533 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10534 argument.
10535
10536 2014-02-19 Tom Tromey <tromey@redhat.com>
10537
10538 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10539 argument.
10540 (target_insert_vfork_catchpoint): Add argument.
10541 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10542 (update_current_target): Update.
10543 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10544 argument.
10545
10546 2014-02-19 Tom Tromey <tromey@redhat.com>
10547
10548 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10549 argument.
10550 (target_remove_fork_catchpoint): Add argument.
10551 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10552 (update_current_target): Update.
10553 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10554 argument.
10555
10556 2014-02-19 Tom Tromey <tromey@redhat.com>
10557
10558 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10559 argument.
10560 (target_insert_fork_catchpoint): Add argument.
10561 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10562 (update_current_target): Update.
10563 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10564 argument.
10565
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10567
10568 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10569 argument.
10570 (target_post_startup_inferior): Add argument.
10571 * target.c (debug_to_post_startup_inferior): Add argument.
10572 (update_current_target): Update.
10573 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10574 argument.
10575 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10576 argument.
10577 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10578 argument.
10579 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10580 argument.
10581 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10582 'self' argument.
10583 (super_post_startup_inferior): Likewise.
10584 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10585 'self' argument.
10586 (super_post_startup_inferior): Likewise.
10587 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10588 Add 'self' argument.
10589 (super_post_startup_inferior): Likewise.
10590
10591 2014-02-19 Tom Tromey <tromey@redhat.com>
10592
10593 * target.h (struct target_ops) <to_load>: Add argument.
10594 * target.c (target_load): Add argument.
10595 (debug_to_load): Add argument.
10596 (update_current_target): Update.
10597 * remote.c (remote_load): Add 'self' argument.
10598 * remote-sim.c (gdbsim_load): Add 'self' argument.
10599 * remote-mips.c (mips_load): Add 'self' argument.
10600 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10601 * monitor.c (monitor_load): Add 'self' argument.
10602 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10603
10604 2014-02-19 Tom Tromey <tromey@redhat.com>
10605
10606 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10607 (target_terminal_info): Add argument.
10608 * target.c (debug_to_terminal_info): Add argument.
10609 (default_terminal_info): Likewise.
10610 * inflow.c (child_terminal_info): Add 'self' argument.
10611 * inferior.h (child_terminal_info): Add 'self' argument.
10612 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10613
10614 2014-02-19 Tom Tromey <tromey@redhat.com>
10615
10616 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10617 argument.
10618 (target_terminal_save_ours): Add argument.
10619 * target.c (debug_to_terminal_save_ours): Add argument.
10620 (update_current_target): Update.
10621 * inflow.c (terminal_save_ours): Add 'self' argument.
10622 * inferior.h (terminal_save_ours): Add 'self' argument.
10623
10624 2014-02-19 Tom Tromey <tromey@redhat.com>
10625
10626 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10627 (target_terminal_ours): Add argument.
10628 * target.c (debug_to_terminal_ours): Add argument.
10629 (update_current_target): Update.
10630 * remote.c (remote_terminal_ours): Add 'self' argument.
10631 (remote_close): Update.
10632 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10633 * inflow.c (terminal_ours): Add 'self' argument.
10634 * inferior.h (terminal_ours): Add 'self' argument.
10635 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10636
10637 2014-02-19 Pedro Alves <palves@redhat.com>
10638 Tom Tromey <tromey@redhat.com>
10639
10640 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10641 argument.
10642 (target_terminal_ours_for_output): Add argument.
10643 * target.c (debug_to_terminal_ours_for_output): Add argument.
10644 (update_current_target): Update.
10645 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10646 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10647 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10648
10649 2014-02-19 Tom Tromey <tromey@redhat.com>
10650
10651 * target.h (struct target_ops) <to_terminal_inferior>: Add
10652 argument.
10653 * target.c (target_terminal_inferior): Add argument.
10654 (update_current_target): Update.
10655 * remote.c (remote_terminal_inferior): Add 'self' argument.
10656 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10657 * inflow.c (terminal_inferior): Add 'self' argument.
10658 * inferior.h (terminal_inferior): Add 'self' argument.
10659 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10660 (go32_terminal_inferior): Add 'self' argument.
10661
10662 2014-02-19 Tom Tromey <tromey@redhat.com>
10663
10664 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10665 (target_terminal_init): Add argument.
10666 * target.c (debug_to_terminal_init): Add argument.
10667 (update_current_target): Update.
10668 * inflow.c (terminal_init_inferior): Add 'self' argument.
10669 * inferior.h (terminal_init_inferior): Add 'self' argument.
10670 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10671 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10672
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10674
10675 * target.h (struct target_ops)
10676 <to_can_accel_watchpoint_condition>: Add argument.
10677 (target_can_accel_watchpoint_condition): Add argument.
10678 * target.c (debug_to_can_accel_watchpoint_condition): Add
10679 argument.
10680 (update_current_target): Update.
10681 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10682 'self' argument.
10683
10684 2014-02-19 Tom Tromey <tromey@redhat.com>
10685
10686 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10687 Add argument.
10688 (target_region_ok_for_hw_watchpoint): Add argument.
10689 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10690 (default_region_ok_for_hw_watchpoint): Add argument.
10691 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10692 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10693 argument.
10694 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10695 argument.
10696 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10697 argument.
10698 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10699 'self' argument.
10700 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10701 'self' argument.
10702 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10703 'self' argument.
10704 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10705 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10706 'self' argument.
10707 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10708 Add 'self' argument.
10709
10710 2014-02-19 Tom Tromey <tromey@redhat.com>
10711
10712 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10713 argument.
10714 (target_insert_watchpoint): Add argument.
10715 * target.c (debug_to_insert_watchpoint): Add argument.
10716 (update_current_target): Update.
10717 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10718 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10719 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10720 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10721 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10722 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10723 argument.
10724 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10725 (procfs_insert_hw_watchpoint): Add 'self' argument.
10726 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10727 argument.
10728 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10729 argument.
10730 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10731 argument.
10732 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10733 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10734 argument.
10735 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10736 'self' argument.
10737
10738 2014-02-19 Tom Tromey <tromey@redhat.com>
10739
10740 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10741 argument.
10742 (target_remove_watchpoint): Add argument.
10743 * target.c (debug_to_remove_watchpoint): Add argument.
10744 (update_current_target): Update.
10745 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10746 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10747 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10748 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10749 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10750 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10751 argument.
10752 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10753 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10754 argument.
10755 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10756 argument.
10757 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10758 argument.
10759 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10760 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10761 argument.
10762 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10763 'self' argument.
10764
10765 2014-02-19 Tom Tromey <tromey@redhat.com>
10766
10767 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10768 argument.
10769 (target_remove_hw_breakpoint): Add argument.
10770 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10771 (update_current_target): Update.
10772 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10773 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10774 argument.
10775 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10776 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10777 argument.
10778 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10779 'self' argument.
10780
10781 2014-02-19 Tom Tromey <tromey@redhat.com>
10782
10783 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10784 argument.
10785 (target_insert_hw_breakpoint): Add argument.
10786 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10787 (update_current_target): Update.
10788 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10789 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10790 argument.
10791 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10792 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10793 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10794 argument.
10795 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10796 'self' argument.
10797
10798 2014-02-19 Tom Tromey <tromey@redhat.com>
10799
10800 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10801 argument.
10802 (target_can_use_hardware_watchpoint): Add argument.
10803 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10804 (update_current_target): Update.
10805 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10806 argument.
10807 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10808 argument.
10809 * remote.c (remote_check_watch_resources): Add 'self' argument.
10810 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10811 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10812 argument.
10813 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10814 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10815 argument.
10816 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10817 argument.
10818 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10819 argument.
10820 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10821 argument.
10822 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10823 argument.
10824 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10825 argument.
10826 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10827 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10828 argument.
10829 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10830 'self' argument.
10831
10832 2014-02-19 Tom Tromey <tromey@redhat.com>
10833
10834 * target.h (struct target_ops) <to_post_attach>: Add argument.
10835 (target_post_attach): Add argument.
10836 * target.c (debug_to_post_attach): Add argument.
10837 (update_current_target): Update.
10838 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10839 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10840 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10841 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10842 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10843
10844 2014-02-19 Tom Tromey <tromey@redhat.com>
10845
10846 * windows-nat.c (windows_close): Add 'self' argument.
10847 * tracepoint.c (tfile_close): Add 'self' argument.
10848 * target.h (struct target_ops) <to_close>: Add argument.
10849 * target.c (target_close): Add argument.
10850 (update_current_target): Update.
10851 * remote.c (remote_close): Add 'self' argument.
10852 * remote-sim.c (gdbsim_close): Add 'self' argument.
10853 * remote-mips.c (mips_close): Add 'self' argument.
10854 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10855 * record-full.c (record_full_close): Add 'self' argument.
10856 * record-btrace.c (record_btrace_close): Add 'self' argument.
10857 * monitor.h (monitor_close): Add 'self' argument.
10858 * monitor.c (monitor_close): Add 'self' argument.
10859 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10860 * linux-nat.c (linux_nat_close): Add argument.
10861 * go32-nat.c (go32_close): Add 'self' argument.
10862 * exec.c (exec_close_1): Add 'self' argument.
10863 * ctf.c (ctf_close): Add 'self' argument.
10864 * corelow.c (core_close): Add 'self' argument.
10865 (core_close_cleanup): Update.
10866 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10867 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10868
10869 2014-02-19 Tom Tromey <tromey@redhat.com>
10870
10871 * remote.c (remote_load): New function.
10872 (init_remote_ops): Use it.
10873
10874 2014-02-19 Tom Tromey <tromey@redhat.com>
10875
10876 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10877 argument.
10878 * common/linux-btrace.h (linux_supports_btrace): Update.
10879 * remote.c (remote_supports_btrace): Add "self" argument.
10880 * target-delegates.c: Rebuild.
10881 * target.c (target_supports_btrace): Remove.
10882 * target.h (struct target_ops) <to_supports_btrace>: Add
10883 target_ops argument.
10884 (target_supports_btrace): New define.
10885
10886 2014-02-19 Tom Tromey <tromey@redhat.com>
10887
10888 * record-full.c (record_full_beneath_to_resume_ops)
10889 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10890 (record_full_beneath_to_wait)
10891 (record_full_beneath_to_store_registers_ops)
10892 (record_full_beneath_to_store_registers)
10893 (record_full_beneath_to_xfer_partial_ops)
10894 (record_full_beneath_to_xfer_partial)
10895 (record_full_beneath_to_insert_breakpoint_ops)
10896 (record_full_beneath_to_insert_breakpoint)
10897 (record_full_beneath_to_remove_breakpoint_ops)
10898 (record_full_beneath_to_remove_breakpoint)
10899 (record_full_beneath_to_stopped_by_watchpoint)
10900 (record_full_beneath_to_stopped_data_address)
10901 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10902 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10903 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10904 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10905 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10906 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10907 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10908 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10909 (record_full_resume, record_full_wait_1)
10910 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10911 (record_full_store_registers, record_full_xfer_partial)
10912 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10913 (record_full_async, record_full_core_xfer_partial): Use target
10914 delegation.
10915 * target-delegates.c: Rebuild.
10916 * target.c (current_xfer_partial): Remove.
10917 (update_current_target): Do not INHERIT or de_fault
10918 to_insert_breakpoint, to_remove_breakpoint,
10919 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10920 to_is_async_p, to_async. Do not set to_xfer_partial field.
10921 (default_xfer_partial): Simplify.
10922 (current_xfer_partial): Remove.
10923 (target_wait, target_resume): Simplify.
10924 (find_default_can_async_p, find_default_is_async_p): Update.
10925 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10926 to_xfer_partial, to_stopped_by_watchpoint,
10927 to_stopped_data_address.
10928 (target_store_registers): Simplify.
10929 (forward_target_remove_breakpoint)
10930 (forward_target_insert_breakpoint): Remove.
10931 (target_remove_breakpoint, target_insert_breakpoint)
10932 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10933 * target.h (struct target_ops) <to_resume, to_wait,
10934 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10935 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10936 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10937 markup.
10938 (forward_target_remove_breakpoint)
10939 (forward_target_insert_breakpoint): Remove.
10940 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10941 directly.
10942 (record_btrace_insert_breakpoint): Delegate directly.
10943
10944 2014-02-19 Tom Tromey <tromey@redhat.com>
10945
10946 PR build/7701:
10947 * target-delegates.c: New file.
10948 * target.c: Include target-delegates.c.
10949 (init_dummy_target): Call install_dummy_methods.
10950 (complete_target_initialization): Call install_delegators.
10951 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10952 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10953 * make-target-delegates: New file.
10954
10955 2014-02-19 Tom Tromey <tromey@redhat.com>
10956
10957 * record.c (find_record_target): Use find_target_at.
10958 * target.c (find_target_at): New function.
10959 * target.h (find_target_at): Declare.
10960
10961 2014-02-19 Tom Tromey <tromey@redhat.com>
10962
10963 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10964 Add 'ops' argument.
10965 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10966 'ops' argument.
10967 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10968 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10969 'ops' argument.
10970 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10971 argument.
10972 * linux-nat.c (save_sigtrap): Update.
10973 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10974 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10975 (linux_nat_close): Update.
10976 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10977 argument.
10978 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10979 argument.
10980 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10981 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10982 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10983 (tmp_to_async): Add 'ops' argument.
10984 (record_full_stopped_by_watchpoint, record_full_async)
10985 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10986 argument.
10987 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10988 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10989 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10990 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10991 (remote_is_async_p, remote_async): Add 'ops' argument.
10992 (remote_stopped_data_address): Update.
10993 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10994 * target.c (update_current_target)
10995 (find_default_can_async_p, find_default_is_async_p): Update.
10996 (init_dummy_target): Update.
10997 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10998 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10999 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11000 (target_can_async_p, target_is_async_p, target_async)
11001 (target_stopped_by_watchpoint): Update.
11002
11003 2014-02-19 Yao Qi <yao@codesourcery.com>
11004
11005 PR gdb/16220
11006 * gdbarch.sh: Remove startup_gdbarch.
11007 * gdbarch.c: Regenerated.
11008 * gdbarch.h: Likewise.
11009
11010 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11011
11012 * rl78-tdep.c (rl78_g10_register_name): New function.
11013 (rl78_return_value): Add g10 support.
11014 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11015 g10.
11016
11017 2014-02-17 Doug Evans <xdje42@gmail.com>
11018
11019 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11020 (SUBDIR_GUILE_SRCS): Ditto.
11021 (scm-gsmob.o): Ditto.
11022
11023 2014-02-17 Yao Qi <yao@codesourcery.com>
11024
11025 * gnu-nat.c (ILL_RPC): Declare defined function.
11026
11027 2014-02-17 Yao Qi <yao@codesourcery.com>
11028
11029 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11030 mach_msg_type_number_t.
11031 (gnu_write_inferior): Likewise.
11032
11033 2014-02-17 Yao Qi <yao@codesourcery.com>
11034
11035 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11036 in format string.
11037 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11038 (inf_validate_procs, inf_signal): Likewise.
11039 (S_exception_raise_request): Likewise.
11040 (do_mach_notify_dead_name): Likewise.
11041 (steal_exc_port): Likewise.
11042 (gnu_read_inferior): Change 'copy_count''s type to
11043 mach_msg_type_number_t.
11044 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11045 format string.
11046
11047 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11048
11049 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11050 flag. Adjust all users; in particular...
11051 (gnu_wait): ..., don't decrement its value in here...
11052 (gnu_create_inferior): ..., and instead set the flag in here,
11053 around the startup_inferior call, and call that one with
11054 START_INFERIOR_TRAPS_EXPECTED.
11055
11056 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11057 (ILL_RPC): ... new macro.
11058 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11059 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11060 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11061 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11062 functions with ILL_RPC macro.
11063 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11064 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11065 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11066 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11067 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11068 (S_proc_getlogin_reply, S_proc_getsid_reply)
11069 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11070 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11071 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11072 (S_proc_getnports_reply, S_proc_is_important_reply)
11073 (S_proc_get_code_reply): New stub functions, generated with
11074 ILL_RPC macro.
11075
11076 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11077 collected the type check structures.
11078
11079 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11080
11081 2014-02-14 Doug Evans <dje@google.com>
11082
11083 * target.c (target_write_partial): Fix result type.
11084
11085 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11086
11087 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11088 the proper offsets to access fpregset_t.
11089
11090 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11091
11092 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11093 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11094 * h8300-tdep.c (setmachinelist): Remove global.
11095 * hppa-tdep.c (hppa_sigtramp): Remove global.
11096 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11097 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11098 * ravenscar-thread.c (update_target_observer): Remove global.
11099 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11100
11101 2014-02-12 Tom Tromey <tromey@redhat.com>
11102
11103 * common/rsp-low.c: Update comments.
11104 * common/rsp-low.h: Update comments.
11105
11106 2014-02-12 Tom Tromey <tromey@redhat.com>
11107
11108 * common/rsp-low.c (convert_ascii_to_int): Remove.
11109 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11110
11111 2014-02-12 Tom Tromey <tromey@redhat.com>
11112
11113 * common/rsp-low.h (unhexify): Don't declare.
11114 * common/rsp-low.c (unhexify): Remove.
11115
11116 2014-02-12 Tom Tromey <tromey@redhat.com>
11117
11118 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11119 * common/rsp-low.c (convert_int_to_ascii): Remove.
11120
11121 2014-02-12 Tom Tromey <tromey@redhat.com>
11122
11123 * common/rsp-low.h (hexify): Don't declare.
11124 * common/rsp-low.c (hexify): Remove.
11125
11126 2014-02-12 Tom Tromey <tromey@redhat.com>
11127
11128 * common/rsp-low.c (hexify): Never take strlen of argument.
11129
11130 2014-02-12 Tom Tromey <tromey@redhat.com>
11131
11132 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11133 * remote.c (extended_remote_run, remote_rcmd)
11134 (remote_download_trace_state_variable, remote_save_trace_data)
11135 (remote_set_trace_notes): Update.
11136 * tracepoint.c (encode_source_string, tfile_write_status)
11137 (tfile_write_uploaded_tsv): Update.
11138
11139 2014-02-12 Tom Tromey <tromey@redhat.com>
11140
11141 * tracepoint.c: Include rsp-low.h.
11142 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11143 * remote.c: Include rsp-low.h.
11144 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11145 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11146 (remote_unescape_input): Move to common/rsp-low.c.
11147 * common/rsp-low.h: New file.
11148 * common/rsp-low.c: New file.
11149 * Makefile.in (SFILES): Add common/rsp-low.c.
11150 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11151 (COMMON_OBS): Add rsp-low.o.
11152 (rsp-low.o): New target.
11153
11154 2014-02-12 Tom Tromey <tromey@redhat.com>
11155
11156 * utils.h: Include print-utils.h.
11157 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11158 (int_string, core_addr_to_string, core_addr_to_string_nz)
11159 (hex_string, hex_string_custom): Don't declare.
11160 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11161 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11162 (hex_string_custom, int_string, core_addr_to_string)
11163 (core_addr_to_string_nz, host_address_to_string): Move to
11164 common/print-utils.c.
11165 * common/print-utils.h: New file.
11166 * common/print-utils.c: New file
11167 * Makefile.in (SFILES): Add common/print-utils.c.
11168 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11169 (COMMON_OBS): Add print-utils.o.
11170 (print-utils.o): New target.
11171
11172 2014-02-12 Tom Tromey <tromey@redhat.com>
11173
11174 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11175
11176 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11177
11178 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11179
11180 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11181
11182 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11183 if a PT_IO ptrace request returns sucessfully but indicates that 0
11184 bytes were transferred.
11185
11186 2014-02-12 Pedro Alves <palves@redhat.com>
11187 Kevin Buettner <kevinb@redhat.com>
11188
11189 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11190 TYPE_INSTANCE_FLAG_CODE_SPACE.
11191
11192 2014-02-12 Pedro Alves <palves@redhat.com>
11193
11194 * h8300-tdep.c (pseudo_from_raw_register)
11195 (raw_from_pseudo_register): New functions.
11196 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11197 them.
11198
11199 2014-02-12 Pedro Alves <palves@redhat.com>
11200
11201 * h8300-tdep.c (h8300_register_sim_regno): New function.
11202 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11203 gdbarch_register_sim_regno hook.
11204
11205 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11206
11207 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11208
11209 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11210
11211 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11212
11213 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11214
11215 * obsd-tdep.h (obsd_init_abi): New prototype.
11216 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11217 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11218 (obsd_init_abi): New functions.
11219 * i386obsd-tdep.c: Include "obsd-tdep.h".
11220 (i386obsd_init_abi): Call obsd_init_abi.
11221 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11222 (amd64obsd_init_abi): Call obsd_init_abi.
11223 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11224 obsd-tdep.c to gdb_target_obs.
11225
11226 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11227
11228 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11229 double float arguments to 16-byte in the argument slots.
11230
11231 2014-02-11 Doug Evans <xdje42@gmail.com>
11232
11233 * configure.ac: Don't crash if pkg-config is not found and guile
11234 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11235 in guile checks.
11236 * configure: Regenerate.
11237
11238 2014-02-11 Yao Qi <yao@codesourcery.com>
11239
11240 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11241 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11242 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11243 * gnu-nat.c (gnu_xfer_memory): Likewise.
11244 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11245 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11246 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11247 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11248
11249 2014-02-11 Yao Qi <yao@codesourcery.com>
11250
11251 * target.h (enum target_xfer_error): Rename to ...
11252 (enum target_xfer_status): ... it. New. All users updated.
11253 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11254 New.
11255 (TARGET_XFER_STATUS_ERROR_P): New macro.
11256 (target_xfer_error_to_string): Remove declaration.
11257 (target_xfer_status_to_string): Declare.
11258 (target_xfer_partial_ftype): Adjust it.
11259 (struct target_ops) <to_xfer_partial>: Return
11260 target_xfer_status. Add argument xfered_len. Update
11261 comments.
11262 * target.c (target_xfer_error_to_string): Rename to ...
11263 (target_xfer_status_to_string): ... it. New. All callers
11264 updated.
11265 (target_read_live_memory): Likewise. Call target_xfer_partial
11266 instead of target_read.
11267 (memory_xfer_live_readonly_partial): Return
11268 target_xfer_status. Add argument xfered_len.
11269 (raw_memory_xfer_partial): Likewise.
11270 (memory_xfer_partial_1): Likewise.
11271 (memory_xfer_partial): Likewise.
11272 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11273 properly. Update debug message.
11274 (default_xfer_partial, current_xfer_partial): Likewise.
11275 (target_write_partial): Likewise.
11276 (target_read_partial): Likewise. All callers updated.
11277 (read_whatever_is_readable): Likewise.
11278 (target_write_with_progress): Likewise.
11279 (target_read_alloc_1): Likewise.
11280
11281 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11282 * auxv.c (procfs_xfer_auxv): Likewise.
11283 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11284 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11285 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11286 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11287 * corefile.c (read_memory): Adjust.
11288 * corelow.c (core_xfer_partial): Likewise.
11289 * ctf.c (ctf_xfer_partial): Likewise.
11290 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11291 updated.
11292 (darwin_xfer_partial): Likewise.
11293 * exec.c (section_table_xfer_memory_partial): Likewise. All
11294 callers updated.
11295 (exec_xfer_partial): Likewise.
11296 * exec.h (section_table_xfer_memory_partial): Update
11297 declaration.
11298 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11299 negative.
11300 (gnu_xfer_partial): Likewise.
11301 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11302 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11303 (ia64_hpux_xfer_solib_got): Likewise.
11304 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11305 type of 'partial_len' to ULONGEST.
11306 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11307 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11308 (linux_nat_xfer_partial): Likewise.
11309 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11310 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11311 * monitor.c (monitor_xfer_memory): Likewise.
11312 (monitor_xfer_partial): Likewise.
11313 * procfs.c (procfs_xfer_partial): Likewise.
11314 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11315 * record-full.c (record_full_xfer_partial): Likewise.
11316 (record_full_core_xfer_partial): Likewise.
11317 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11318 (gdbsim_xfer_partial): Likewise.
11319 * remote.c (remote_write_bytes_aux): Likewise. All callers
11320 updated.
11321 (remote_write_bytes, remote_read_bytes): Likewise. All
11322 callers updated.
11323 (remote_flash_erase): Likewise. All callers updated.
11324 (remote_write_qxfer): Likewise. All callers updated.
11325 (remote_read_qxfer): Likewise. All callers updated.
11326 (remote_xfer_partial): Likewise.
11327 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11328 (rs6000_xfer_shared_libraries): Likewise.
11329 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11330 (sol_thread_xfer_partial): Likewise.
11331 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11332 (sparc_xfer_partial): Likewise.
11333 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11334 updated.
11335 (spu_xfer_partial): Likewise.
11336 * spu-multiarch.c (spu_xfer_partial): Likewise.
11337 * tracepoint.c (tfile_xfer_partial): Likewise.
11338 * windows-nat.c (windows_xfer_memory): Likewise.
11339 (windows_xfer_shared_libraries): Likewise.
11340 (windows_xfer_partial): Likewise.
11341 * valprint.c: Replace 'target_xfer_error' with
11342 'target_xfer_status' in comments.
11343
11344 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11345
11346 Checked in by Joel Brobecker <brobecker@adacore.com>.
11347 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11348
11349 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11350
11351 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11352 function parameters.
11353
11354 2014-02-10 Will Newton <will.newton@linaro.org>
11355
11356 * elfread.c (elf_rel_plt_read): Look for a .got section if
11357 looking up .got.plt fails.
11358 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11359 on address passed to elf_gnu_ifunc_record_cache.
11360 (elf_gnu_ifunc_resolve_addr): Likewise.
11361 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11362
11363 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11364
11365 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11366 (X_RETTURN): New macro.
11367 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11368
11369 * sparc64-tdep.c (sparc64_init_abi): Hook
11370 sparc_in_function_epilogue_p.
11371
11372 2014-02-10 Gary Benson <gbenson@redhat.com>
11373
11374 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11375 Rename name_matcher to symbol_matcher.
11376
11377 2014-02-10 Gary Benson <gbenson@redhat.com>
11378
11379 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11380 Use expand_symtabs_file_matcher_ftype and
11381 expand_symtabs_symbol_matcher_ftype.
11382
11383 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11384
11385 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11386 (struct ada_symbol_cache): New.
11387 (ada_free_symbol_cache): Forward declare.
11388 (struct ada_pspace_data): New.
11389 (ada_pspace_data_handle): New static global.
11390 (get_ada_pspace_data, ada_pspace_data_cleanup)
11391 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11392 (cache_space, cache): Delete, now folded inside struct
11393 ada_pspace_data.
11394 (ada_get_symbol_cache): New function.
11395 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11396 implementation.
11397 (_initialize_ada_language): Remove initialization of cache_space.
11398 Move call to observer_attach_inferior_exit up, grouping it
11399 with the other observer registrations inside this function.
11400 Rename command to be more general. Add call to
11401 register_program_space_data_with_cleanup.
11402
11403 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11404
11405 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11406 ada_new_objfile_observer.
11407 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11408 (_initialize_tasks): Update uses of ada_new_objfile_observer
11409 and ada_tasks_normal_stop_observer.
11410
11411 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11412
11413 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11414 returned by the 'Length attribute to integer.
11415
11416 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11417
11418 * ada-lang.c (_initialize_ada_language): Initialize
11419 cache_space obstack.
11420
11421 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11422
11423 * ada-lang.c (HASH_SIZE): New macro.
11424 (struct cache_entry): New type.
11425 (cache_space, cache): New static globals.
11426 (ada_clear_symbol_cache, find_entry): New functions.
11427 (lookup_cached_symbol, cache_symbol): Implement.
11428 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11429 (_initialize_ada_language): Attach ada_new_objfile_observer
11430 and ada_free_objfile_observer.
11431
11432 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11433
11434 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11435 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11436 struct block * parameter.
11437 (ada_lookup_symbol_list_worker): Constify local variable "block".
11438 Remove cast which is no longer necessary.
11439
11440 2014-02-10 Doug Evans <xdje42@gmail.com>
11441
11442 Add Guile as an extension language.
11443 * NEWS: Mention Guile scripting.
11444 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11445 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11446 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11447 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11448 (CLIBS): Add GUILE_LIBS.
11449 (install-guile): New rule.
11450 (guile.o): New rule.
11451 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11452 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11453 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11454 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11455 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11456 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11457 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11458 * configure.ac: New option --with-guile.
11459 * configure: Regenerate.
11460 * config.in: Regenerate.
11461 * auto-load.c: Remove #include "python/python.h". Add #include
11462 "gdb/section-scripts.h".
11463 (source_section_scripts): Handle Guile scripts.
11464 (_initialize_auto_load): Add name of Guile objfile script to
11465 scripts-directory help text.
11466 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11467 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11468 (struct breakpoint): New member scm_bp_object.
11469 * defs.h (enum command_control_type): New value guile_control.
11470 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11471 "extension.h".
11472 (show_user): Update comment.
11473 (_initialize_cli_cmds): Update help text for "show user". Update help
11474 text for max-user-call-depth.
11475 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11476 "extension.h".
11477 (multi_line_command_p): Add guile_control.
11478 (print_command_lines): Handle guile_control.
11479 (execute_control_command, recurse_read_control_structure): Ditto.
11480 (process_next_line): Recognize "guile" commands.
11481 * disasm.c (gdb_disassemble_info): Make non-static.
11482 * disasm.h: #include "dis-asm.h".
11483 (struct gdbarch): Add forward decl.
11484 (gdb_disassemble_info): Declare.
11485 * extension.c: #include "guile/guile.h".
11486 (extension_languages): Add guile.
11487 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11488 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11489 * gdbtypes.c (get_unsigned_type_max): New function.
11490 (get_signed_type_minmax): New function.
11491 * gdbtypes.h (get_unsigned_type_max): Declare.
11492 (get_signed_type_minmax): Declare.
11493 * guile/README: New file.
11494 * guile/guile-internal.h: New file.
11495 * guile/guile.c: New file.
11496 * guile/guile.h: New file.
11497 * guile/scm-arch.c: New file.
11498 * guile/scm-auto-load.c: New file.
11499 * guile/scm-block.c: New file.
11500 * guile/scm-breakpoint.c: New file.
11501 * guile/scm-disasm.c: New file.
11502 * guile/scm-exception.c: New file.
11503 * guile/scm-frame.c: New file.
11504 * guile/scm-gsmob.c: New file.
11505 * guile/scm-iterator.c: New file.
11506 * guile/scm-lazy-string.c: New file.
11507 * guile/scm-math.c: New file.
11508 * guile/scm-objfile.c: New file.
11509 * guile/scm-ports.c: New file.
11510 * guile/scm-pretty-print.c: New file.
11511 * guile/scm-safe-call.c: New file.
11512 * guile/scm-string.c: New file.
11513 * guile/scm-symbol.c: New file.
11514 * guile/scm-symtab.c: New file.
11515 * guile/scm-type.c: New file.
11516 * guile/scm-utils.c: New file.
11517 * guile/scm-value.c: New file.
11518 * guile/lib/gdb.scm: New file.
11519 * guile/lib/gdb/boot.scm: New file.
11520 * guile/lib/gdb/experimental.scm: New file.
11521 * guile/lib/gdb/init.scm: New file.
11522 * guile/lib/gdb/iterator.scm: New file.
11523 * guile/lib/gdb/printing.scm: New file.
11524 * guile/lib/gdb/types.scm: New file.
11525 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11526 (VPATH): Add $(GUILE_SRCDIR).
11527 (GUILE_DIR): New variable.
11528 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11529 (all): Add stamp-guile dependency.
11530 (stamp-guile): New rule.
11531 (clean-guile, install-guile, uninstall-guile): New rules.
11532 (install-only): Add install-guile dependency.
11533 (uninstall): Add uninstall-guile dependency.
11534 (clean): Add clean-guile dependency.
11535
11536 2014-02-09 Doug Evans <xdje42@gmail.com>
11537
11538 Revert this patch (which I approved, mea culpa).
11539
11540 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11541
11542 * Makefile.in (all-lib): Remove.
11543 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11544
11545 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11546
11547 Fix Python stack corruption.
11548 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11549 gdb_py_longest.
11550
11551 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11552
11553 * Makefile.in (all-lib): Remove.
11554 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11555
11556 2014-02-07 Doug Evans <dje@google.com>
11557
11558 * extension-priv.h (extension_language_script_ops): Add comment.
11559 (extension_language_ops): Add comment.
11560 (active_ext_lang_state): Fix typo in comment.
11561
11562 2014-02-07 Pedro Alves <palves@redhat.com>
11563
11564 PR breakpoints/16292
11565 * infrun.c (handle_signal_stop) <signal arrives while stepping
11566 over a breakpoint>: Switch back to the stepping thread.
11567
11568 2014-02-07 Yao Qi <yao@codesourcery.com>
11569
11570 * target.c (target_xfer_partial): Return zero if LEN is zero.
11571
11572 2014-02-07 Yao Qi <yao@codesourcery.com>
11573
11574 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11575 (ld_so_xfer_auxv): Likewise.
11576 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11577 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11578 * corelow.c (core_xfer_partial): Likewise.
11579 * ctf.c (ctf_xfer_partial): Likewise.
11580 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11581 (darwin_xfer_partial): Likewise.
11582 * exec.c (exec_xfer_partial): Likewise.
11583 * gnu-nat.c (gnu_xfer_partial): Likewise.
11584 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11585 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11586 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11587 * linux-nat.c (linux_xfer_siginfo): Likewise.
11588 (linux_proc_xfer_spu): Likewise.
11589 * procfs.c (procfs_xfer_partial): Likewise.
11590 * record-full.c (record_full_xfer_partial): Likewise.
11591 (record_full_core_xfer_partial): Likewise.
11592 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11593 * remote.c (remote_write_qxfer): Likewise.
11594 (remote_write_qxfer, remote_read_qxfer): Likewise.
11595 (remote_xfer_partial): Likewise.
11596 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11597 (rs6000_xfer_shared_libraries): Likewise.
11598 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11599 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11600 (spu_xfer_partial): Likewise.
11601 * target.c (memory_xfer_partial_1): Likewise.
11602 * tracepoint.c (tfile_xfer_partial): Likewise.
11603 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11604 (windows_xfer_partial): Likewise.
11605
11606 2014-02-07 Yao Qi <yao@codesourcery.com>
11607
11608 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11609 comments.
11610 (core_xfer_shared_libraries_aix): Likewise.
11611 * gdbarch.c, gdbarch.h: Regenerated.
11612 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11613 ULONGEST. Change 'len_avail' type to ULONGEST.
11614 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11615 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11616 declaration.
11617 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11618
11619 2014-02-07 Yao Qi <yao@codesourcery.com>
11620
11621 * corefile.c (memory_error): Get 'exception' from ERR and pass
11622 'exception' to throw_error.
11623
11624 2014-02-06 Doug Evans <xdje42@gmail.com>
11625
11626 * configure.ac (libpython checking): Remove all but python.o from
11627 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11628 * configure: Regenerate.
11629
11630 * Makefile.in (SFILES): Add extension.c.
11631 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11632 (COMMON_OBS): Add extension.o.
11633 * extension.h: New file.
11634 * extension-priv.h: New file.
11635 * extension.c: New file.
11636
11637 * python/python-internal.h: #include "extension.h".
11638 (gdbpy_auto_load_enabled): Declare.
11639 (gdbpy_apply_val_pretty_printer): Declare.
11640 (gdbpy_apply_frame_filter): Declare.
11641 (gdbpy_preserve_values): Declare.
11642 (gdbpy_breakpoint_cond_says_stop): Declare.
11643 (gdbpy_breakpoint_has_cond): Declare.
11644 (void source_python_script_for_objfile): Delete.
11645 * python/python.c: #include "extension-priv.h".
11646 Delete inclusion of "observer.h".
11647 (extension_language_python): Moved here and renamed from
11648 script_language_python in py-auto-load.c.
11649 Redefined to be of type extension_language_defn.
11650 (python_extension_script_ops): New global.
11651 (python_extension_ops): New global.
11652 (struct python_env): New member previous_active.
11653 (restore_python_env): Call restore_active_ext_lang.
11654 (ensure_python_env): Call set_active_ext_lang.
11655 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11656 New arg extlang.
11657 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11658 New arg extlang.
11659 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11660 New arg extlang.
11661 (gdbpy_eval_from_control_command): Renamed from
11662 eval_python_from_control_command, made static. New arg extlang.
11663 (gdbpy_source_script) Renamed from source_python_script, made static.
11664 New arg extlang.
11665 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11666 result to int. New arg extlang.
11667 (gdbpy_source_objfile_script): Renamed from
11668 source_python_script_for_objfile, made static. New arg extlang.
11669 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11670 static. New args extlang, extlang_printers. Change result type to
11671 "void".
11672 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11673 static. New arg extlang. Rename arg printers to extlang_printers
11674 and change type to ext_lang_type_printers *.
11675 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11676 static. Replace argument arg with extlang, extlang_printers.
11677 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11678 (!HAVE_PYTHON, source_python_script): Delete.
11679 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11680 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11681 (!HAVE_PYTHON, start_type_printers): Delete.
11682 (!HAVE_PYTHON, apply_type_printers): Delete.
11683 (!HAVE_PYTHON, free_type_printers): Delete.
11684 (_initialize_python): Delete call to observer_attach_before_prompt.
11685 (finalize_python): Set/restore active extension language.
11686 (gdbpy_finish_initialization) Renamed from
11687 finish_python_initialization, made static. New arg extlang.
11688 (gdbpy_initialized): New function.
11689 * python/python.h: #include "extension.h". Delete #include
11690 "value.h", "mi/mi-cmds.h".
11691 (extension_language_python): Declare.
11692 (GDBPY_AUTO_FILE_NAME): Delete.
11693 (enum py_bt_status): Moved to extension.h and renamed to
11694 ext_lang_bt_status.
11695 (enum frame_filter_flags): Moved to extension.h.
11696 (enum py_frame_args): Moved to extension.h and renamed to
11697 ext_lang_frame_args.
11698 (finish_python_initialization): Delete.
11699 (eval_python_from_control_command): Delete.
11700 (source_python_script): Delete.
11701 (apply_val_pretty_printer): Delete.
11702 (apply_frame_filter): Delete.
11703 (preserve_python_values): Delete.
11704 (gdbpy_script_language_defn): Delete.
11705 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11706 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11707
11708 * auto-load.c: #include "extension.h".
11709 (GDB_AUTO_FILE_NAME): Delete.
11710 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11711 (script_language_gdb): Delete, moved to extension.c and renamed to
11712 extension_language_gdb.
11713 (source_gdb_script_for_objfile): Delete.
11714 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11715 (loaded_script): Change type of language member to
11716 struct extension_language_defn *.
11717 (init_loaded_scripts_info): Initialize
11718 unsupported_script_warning_printed.
11719 (maybe_add_script): Make static. Change type of language arg to
11720 struct extension_language_defn *.
11721 (clear_section_scripts): Reset unsupported_script_warning_printed.
11722 (auto_load_objfile_script_1): Rewrite to use extension language API.
11723 (auto_load_objfile_script): Make public. Remove support-compiled-in
11724 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11725 (source_section_scripts): Rewrite to use extension language API.
11726 (load_auto_scripts_for_objfile): Rewrite to use
11727 auto_load_scripts_for_objfile.
11728 (collect_matching_scripts_data): Change type of language member to
11729 struct extension_language_defn *.
11730 (auto_load_info_scripts): Change type of language arg to
11731 struct extension_language_defn *.
11732 (unsupported_script_warning_print): New function.
11733 (script_not_found_warning_print): Make static.
11734 (_initialize_auto_load): Rewrite construction of scripts-directory
11735 help.
11736 * auto-load.h (struct objfile): Add forward decl.
11737 (struct script_language): Delete.
11738 (struct auto_load_pspace_info): Add forward decl.
11739 (struct extension_language_defn): Add forward decl.
11740 (maybe_add_script): Delete.
11741 (auto_load_objfile_script): Declare.
11742 (script_not_found_warning_print): Delete.
11743 (auto_load_info_scripts): Update prototype.
11744 (auto_load_gdb_scripts_enabled): Declare.
11745 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11746 auto_load_python_scripts_enabled and made public.
11747 (script_language_python): Delete, moved to python.c.
11748 (gdbpy_script_language_defn): Delete.
11749 (info_auto_load_python_scripts): Update to use
11750 extension_language_python.
11751
11752 * breakpoint.c (condition_command): Replace call to
11753 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11754 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11755 with call to breakpoint_ext_lang_cond_says_stop.
11756 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11757 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11758 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11759 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11760 New arg slang.
11761 (local_setattro): Print name of extension language with existing
11762 stop condition.
11763
11764 * valprint.c (val_print, value_print): Update to call
11765 apply_ext_lang_val_pretty_printer.
11766 * cp-valprint.c (cp_print_value): Update call to
11767 apply_ext_lang_val_pretty_printer.
11768 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11769 (gdbpy_apply_val_pretty_printer): Renamed from
11770 apply_val_pretty_printer. New arg extlang.
11771 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11772
11773 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11774 extension language API.
11775 * cli/cli-script.c (execute_control_command): Update to call
11776 eval_ext_lang_from_control_command.
11777
11778 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11779 enum ext_lang_bt_status values. Update call to
11780 apply_ext_lang_frame_filter.
11781 (mi_cmd_stack_list_locals): Ditto.
11782 (mi_cmd_stack_list_args): Ditto.
11783 (mi_cmd_stack_list_variables): Ditto.
11784 * mi/mi-main.c: Delete #include "python/python-internal.h".
11785 Add #include "extension.h".
11786 (mi_cmd_list_features): Replace reference to python internal variable
11787 gdb_python_initialized with call to ext_lang_initialized_p.
11788
11789 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11790 Update to use enum ext_lang_frame_args. Update to call
11791 apply_ext_lang_frame_filter.
11792 * python/py-framefilter.c (extract_sym): Update to use enum
11793 ext_lang_bt_status.
11794 (extract_value, py_print_type, py_print_value): Ditto.
11795 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11796 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11797 (py_print_frame): Ditto.
11798 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11799 New arg extlang. Update to use enum ext_lang_bt_status.
11800
11801 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11802 finish_python_initialization. Replace with call to
11803 finish_ext_lang_initialization.
11804
11805 * typeprint.c (do_free_global_table): Update to call
11806 free_ext_lang_type_printers.
11807 (create_global_typedef_table): Update to call
11808 start_ext_lang_type_printers.
11809 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11810 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11811 (type_print_options): Change type of global_printers from "void *"
11812 to "struct ext_lang_type_printers *".
11813
11814 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11815 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11816 (gdbpy_preserve_values): Renamed from preserve_python_values.
11817 New arg extlang.
11818 (!HAVE_PYTHON, preserve_python_values): Delete.
11819
11820 * utils.c (quit_flag): Delete, moved to extension.c.
11821 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11822 extension.c.
11823
11824 * eval.c: Delete #include "python/python.h".
11825 * main.c: Delete #include "python/python.h".
11826
11827 * defs.h: Update comment.
11828
11829 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11830
11831 GDB 7.7 released.
11832
11833 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11834
11835 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11836 defined.
11837
11838 2014-02-05 Yao Qi <yao@codesourcery.com>
11839
11840 * remote.c (remote_pass_signals): Remove local 'buf' and use
11841 rs->buf.
11842 (remote_program_signals): Likewise.
11843
11844 2014-02-05 Yao Qi <yao@codesourcery.com>
11845
11846 * ctf.c: Include "inferior.h" and "gdbthread.h".
11847 (CTF_PID): A new macro.
11848 (ctf_open): Call inferior_appeared and add_thread_silent.
11849 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11850 (ctf_thread_alive): New function.
11851 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11852
11853 2014-02-05 Yao Qi <yao@codesourcery.com>
11854
11855 Revert this patch:
11856
11857 2013-05-24 Yao Qi <yao@codesourcery.com>
11858
11859 * tracepoint.c (TFILE_PID): Remove.
11860 (tfile_open): Don't add thread and inferior.
11861 (tfile_close): Don't set 'inferior_ptid'. Don't call
11862 exit_inferior_silent.
11863 (tfile_thread_alive): Remove.
11864 (init_tfile_ops): Don't set field 'to_thread_alive' of
11865 tfile_ops.
11866
11867 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11868
11869 * remote.c (remote_start_remote): Call remote_check_symbols even
11870 if only symbol-file (not file) has been given.
11871
11872 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11873
11874 * gdbarch.sh (skip_entrypoint): New callback.
11875 * gdbarch.c, gdbarch.h: Regenerate.
11876 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11877 * infrun.c (fill_in_stop_func): Likewise.
11878 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11879 (ppc_elfv2_elf_make_msymbol_special): New function.
11880 (ppc_elfv2_skip_entrypoint): Likewise.
11881 (ppc_linux_init_abi): Install them for ELFv2.
11882
11883 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11884
11885 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11886 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11887 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11888 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11889 structures returned in GPRs.
11890
11891 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11892
11893 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11894 offset to the stack parameter list for the ELFv2 ABI.
11895
11896 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11897
11898 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11899 set_gdbarch_convert_from_func_ptr_addr and
11900 set_gdbarch_elf_make_msymbol_special for ELFv1.
11901 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11902 function descriptors on ELFv1.
11903 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11904 set up r12 at function entry.
11905
11906 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11907
11908 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11909 (struct gdbarch_tdep): New member elf_abi.
11910
11911 * rs6000-tdep.c: Include "elf/ppc64.h".
11912 (rs6000_gdbarch_init): Detect ELF ABI version.
11913
11914 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11915
11916 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11917 within a register pair holding a DFP 128-bit value on little-endian.
11918 (ppc64_sysv_abi_return_value_base): Likewise.
11919 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11920 (dfp_pseudo_register_write): Likewise.
11921
11922 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11923
11924 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11925 offset on little-endian when passing _Decimal32.
11926 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11927
11928 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11929
11930 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11931 of the overlapped FP register within the VSX register on little-
11932 endian platforms.
11933 (efpr_pseudo_register_write): Likewise.
11934
11935 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11936
11937 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11938 offset on little-endian when passing small structures.
11939
11940 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11941
11942 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11943 (struct ppc64_sysv_argpos): New data structure.
11944 (ppc64_sysv_abi_push_float): Remove.
11945 (ppc64_sysv_abi_push_val): New function.
11946 (ppc64_sysv_abi_push_integer): Likewise.
11947 (ppc64_sysv_abi_push_freg): Likewise.
11948 (ppc64_sysv_abi_push_vreg): Likewise.
11949 (ppc64_sysv_abi_push_param): Likewise.
11950 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11951 (ppc64_sysv_abi_return_value_base): New function.
11952 (ppc64_sysv_abi_return_value): Refactor to use it.
11953
11954 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11955
11956 * NEWS: Document new target powerpc64le-*-linux*.
11957
11958 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11959
11960 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11961 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11962 core dumps.
11963 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11964 register set used in ELF core dumps. Add floating-point register set.
11965
11966 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11967
11968 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11969 dwarf2_to_gdb[] table using symbolic constants. Adjust
11970 penultimate entry from number representing the PC register
11971 to symbolic constant representing the MDR register. Add
11972 constant for the PC register to the end of the table.
11973
11974 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11975
11976 * bsd-kvm.c: Include <sys/param.h>
11977
11978 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11979
11980 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11981
11982 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11983
11984 * ada-lang.h (clear_ada_sym_cache): Delete.
11985
11986 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11987
11988 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11989
11990 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11991
11992 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11993 the sigreturn register save area only if the syscall is
11994 sigreturn.
11995
11996 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11997
11998 * valops.c (value_slice): Minor reformatting.
11999
12000 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12001
12002 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12003
12004 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12005
12006 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12007 New static globals.
12008 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12009 (ada_ignore_descriptive_types_p): New static global.
12010 (find_parallel_type_by_descriptive_type): Return immediately
12011 if ada_ignore_descriptive_types_p is set.
12012 (_initialize_ada_language): Register new commands "maintenance
12013 set ada", "maintenance show ada", "maintenance set ada
12014 ignore-descriptive-types" and "maintenance show ada
12015 ignore-descriptive-types".
12016 * NEWS: Add entry for new "maint ada set/show
12017 ignore-descriptive-types" commands.
12018
12019 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12020
12021 * record-btrace.c (record_btrace_close): Call btrace_teardown
12022 for all threads.
12023
12024 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12025
12026 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12027 "ui-out.h".
12028
12029 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12030
12031 * ada-typeprint (type_is_full_subrange_of_target_type):
12032 New function.
12033 (print_range): Add parameter bounds_prefered_p. If not set,
12034 try printing range types using the name of their base type.
12035 (print_range_type): Add parameter bounds_prefered_p.
12036 Use it in call to print_range.
12037 (print_array_type, ada_print_type): Update calls to print_range
12038 and print_range_type.
12039
12040 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12041
12042 * ada-typeprint.c (print_array_type, print_choices, print_range)
12043 (print_range_bound, print_dynamic_range_bound, print_range_type):
12044 Remove declaration.
12045
12046 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12047
12048 * ada-typeprint.c (print_range): Add missing empty line
12049 after local declaration.
12050
12051 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12052
12053 * ada-valprint.c (print_optional_low_bound): Get index_type's
12054 target type for as long as it is a TYPE_CODE_RANGE.
12055
12056 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12057
12058 * procfs.c (procfs_make_note_section): Remove assertion and
12059 associated comment.
12060
12061 2014-01-24 Yao Qi <yao@codesourcery.com>
12062
12063 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12064 * corelow.c (get_core_siginfo): Likewise.
12065
12066 2014-01-24 Yao Qi <yao@codesourcery.com>
12067
12068 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12069 ULONGEST. Don't check 'len' is negative.
12070 (remote_write_bytes): Change type of 'len' to ULONGEST.
12071
12072 2014-01-23 Tom Tromey <tromey@redhat.com>
12073
12074 PR python/16485:
12075 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12076 Handle exception from frame.block.
12077 (FrameVars.fetch_frame_locals): Likewise.
12078
12079 2014-01-23 Tom Tromey <tromey@redhat.com>
12080
12081 PR python/16487:
12082 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12083 on a NULL pointer. Move "goto error" to correct place.
12084
12085 2014-01-23 Tom Tromey <tromey@redhat.com>
12086
12087 PR python/16491:
12088 * python/py-framefilter.c (apply_frame_filter): Call
12089 ensure_python_env after computing gdbarch.
12090
12091 2014-01-23 Yao Qi <yao@codesourcery.com>
12092
12093 * target.c (raw_memory_xfer_partial): Change argument type
12094 from void * to gdb_byte *.
12095 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12096
12097 2014-01-22 Doug Evans <dje@google.com>
12098
12099 New gdbserver option --debug-format=timestamp.
12100 * NEWS: Mention it.
12101
12102 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12103
12104 * syscalls/s390x-linux.xml: New file.
12105 * syscalls/s390-linux.xml: New file.
12106 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12107 (XML_SYSCALL_FILENAME_S390X): Likewise.
12108 (op_svc): New enum value for SVC opcode.
12109 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12110 (s390_linux_get_syscall_number): New function.
12111 (s390_gdbarch_init): Register '*get_syscall_number' and the
12112 syscall xml file name.
12113 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12114 "s390-linux.xml" and "s390x-linux.xml".
12115 * NEWS: Announce new feature.
12116
12117 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12118
12119 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12120
12121 2014-01-22 Pedro Alves <palves@redhat.com>
12122
12123 * xtensa-config.c: Include defs.h.
12124
12125 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12126
12127 * common/common-utils.h: Add "ARI:" comment beside __func__
12128 reference.
12129
12130 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12131
12132 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12133 documentation a bit.
12134
12135 2014-01-21 Roland McGrath <mcgrathr@google.com>
12136
12137 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12138 * configure: Regenerate.
12139 * aclocal.m4: Regenerate.
12140 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12141 New substituted variables.
12142 (install-strip): New target.
12143 (INSTALL_SCRIPT): New substituted variable.
12144 (FLAGS_TO_PASS): Add it.
12145 (install-only): Use $(INSTALL_SCRIPT) rather than
12146 $(INSTALL_PROGRAM) for gcore.
12147
12148 2014-01-20 Tom Tromey <tromey@redhat.com>
12149
12150 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12151 together.
12152
12153 2014-01-20 Tom Tromey <tromey@redhat.com>
12154
12155 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12156 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12157 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12158 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12159 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12160 (struct cmd_list_element) <flags>: Remove.
12161 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12162 doc_allocated>: New fields.
12163 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12164 bitfields.
12165 * maint.c (maintenance_do_deprecate): Update.
12166 * top.c (execute_command): Update.
12167
12168 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12169
12170 * xtensa-linux-nat.c: Include asm/ptrace.h.
12171
12172 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12173
12174 * Makefile.in (SFILES): Add d-support.c.
12175 (COMMON_OBS): Add d-support.o.
12176 * d-lang.h (d_parse_symbol): Add comment, now defined in
12177 d-support.c.
12178 * d-lang.c (parse_call_convention)
12179 (parse_attributes, parse_function_types)
12180 (parse_function_args, parse_type, parse_identifier)
12181 (call_convention_p, d_parse_symbol): Move functions to ...
12182 * d-support.c: ... New file.
12183
12184 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12185
12186 * d-lang.h (d_parse_symbol): Add declaration.
12187 * d-lang.c (extract_identifiers)
12188 (extract_type_info): Remove functions.
12189 (parse_call_convention, parse_attributes)
12190 (parse_function_types, parse_function_args)
12191 (parse_type, parse_identifier, call_convention_p)
12192 (d_parse_symbol): New functions.
12193 (d_demangle): Use d_parse_symbol to demangle D symbols.
12194
12195 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12196
12197 * d-lang.h (struct builtin_d_type): New data type.
12198 (builtin_d_type): Add declaration.
12199 * d-lang.c (d_language_arch_info, build_d_types)
12200 (builtin_d_type): New functions.
12201 (enum d_primitive_types): New data type.
12202 (d_language_defn): Change c_language_arch_info to
12203 d_language_arch_info.
12204 (d_type_data): New static variable.
12205 (_initialize_d_language): Initialize d_type_data.
12206
12207 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12208
12209 * d-lang.h (d_main_name): Add declaration.
12210 * d-lang.c (d_main_name): New function.
12211 * symtab.c (find_main_name): Add call to d_main_name.
12212
12213 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12214
12215 * d-lang.c (d_language_defn): Change macro_expansion_c to
12216 macro_expansion_no.
12217
12218 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12219
12220 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12221
12222 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12223
12224 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12225 gdb_exception" declaration.
12226 * remote.c (getpkt_or_notif_sane): Likewise.
12227
12228 2014-01-17 Doug Evans <dje@google.com>
12229
12230 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12231 function, contents of dirnames_to_char_ptr_vec_append moved here.
12232 (delim_string_to_char_ptr_vec): New function.
12233 (dirnames_to_char_ptr_vec_append): Rewrite.
12234 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12235
12236 2014-01-17 Doug Evans <dje@google.com>
12237
12238 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12239 and moved here ...
12240 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12241 #include "common-utils.h".
12242 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12243 * common/vec.h (VEC_ASSERT_PASS): Update.
12244 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12245 (MACH_CHECK_ERROR): Update.
12246
12247 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12248
12249 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12250 comments.
12251 * gdbarch.h: Regenerate.
12252
12253 2014-01-16 Tom Tromey <tromey@redhat.com>
12254
12255 * value.c (struct value) <regnum>: Move earlier.
12256
12257 2014-01-16 Tom Tromey <tromey@redhat.com>
12258
12259 * remote.c (extended_remote_create_inferior): Rename from
12260 extended_remote_create_inferior_1. Add "ops" argument. Remove
12261 old implementation.
12262
12263 2014-01-16 Pedro Alves <palves@redhat.com>
12264
12265 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12266 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12267 the backchain.
12268
12269 2014-01-16 Doug Evans <dje@google.com>
12270
12271 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12272
12273 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12274
12275 * btrace.h (btrace_thread_flag): New.
12276 (struct btrace_thread_info) <flags>: New.
12277 * record-btrace.c (record_btrace_resume_thread)
12278 (record_btrace_find_thread_to_move, btrace_step_no_history)
12279 (btrace_step_stopped, record_btrace_start_replaying)
12280 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12281 (record_btrace_find_resume_thread): New.
12282 (record_btrace_resume, record_btrace_wait): Extend.
12283 (record_btrace_can_execute_reverse): New.
12284 (record_btrace_open): Fail in non-stop mode.
12285 (record_btrace_set_replay): Split into this, ...
12286 (record_btrace_stop_replaying): ... this, ...
12287 (record_btrace_clear_histories): ... and this.
12288 (init_record_btrace_ops): Init to_can_execute_reverse.
12289 * NEWS: Announce it.
12290
12291 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12292
12293 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12294 (forward_target_decr_pc_after_break)
12295 (target_decr_pc_after_break): New.
12296 * target.c (forward_target_decr_pc_after_break)
12297 (target_decr_pc_after_break): New.
12298 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12299 instead of gdbarch_decr_pc_after_break.
12300 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12301 instead of gdbarch_decr_pc_after_break.
12302 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12303 instead of gdbarch_decr_pc_after_break.
12304 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12305 instead of gdbarch_decr_pc_after_break.
12306 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12307 instead of gdbarch_decr_pc_after_break.
12308 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12309 instead of gdbarch_decr_pc_after_break.
12310
12311 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12312
12313 * btrace.c: Include regcache.h.
12314 (btrace_add_pc): New.
12315 (btrace_enable): Call btrace_add_pc.
12316 (btrace_is_empty): New.
12317 * btrace.h (btrace_is_empty): New.
12318 * record-btrace.c (require_btrace, record_btrace_info): Call
12319 btrace_is_empty.
12320
12321 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12322
12323 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12324 Support delta reads.
12325 (linux_disable_btrace): Change return type.
12326 * common/linux-btrace.h (linux_read_btrace): Change parameters
12327 and return type to allow error reporting. Update users.
12328 (linux_disable_btrace): Change return type. Update users.
12329 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12330 New.
12331 (btrace_error): New.
12332 (btrace_block) <begin>: Comment on BEGIN == 0.
12333 * btrace.c (btrace_compute_ftrace): Start from the end of
12334 the current trace.
12335 (btrace_stitch_trace, btrace_clear_history): New.
12336 (btrace_fetch): Read delta trace, return if replaying.
12337 (btrace_clear): Move clear history code to btrace_clear_history.
12338 (parse_xml_btrace): Throw an error if parsing failed.
12339 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12340 and return type to allow error reporting.
12341 (target_read_btrace): Change parameters and return type to allow
12342 error reporting.
12343 * target.c (target_read_btrace): Update.
12344 * remote.c (remote_read_btrace): Support delta reads. Pass
12345 errors on.
12346 * NEWS: Announce it.
12347
12348 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12349
12350 * record.h (record_btrace_frame_unwind)
12351 (record_btrace_tailcall_frame_unwind): New declarations.
12352 * dwarf2-frame: Include record.h
12353 (dwarf2_frame_cfa): Throw an error for btrace frames.
12354 * record-btrace.c: Include hashtab.h.
12355 (btrace_get_bfun_name): New.
12356 (btrace_call_history): Call btrace_get_bfun_name.
12357 (struct btrace_frame_cache): New.
12358 (bfcache): New.
12359 (bfcache_hash, bfcache_eq, bfcache_new): New.
12360 (btrace_get_frame_function): New.
12361 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12362 (record_btrace_frame_this_id): Compute own id.
12363 (record_btrace_frame_prev_register): Provide PC, throw_error
12364 for all other registers.
12365 (record_btrace_frame_sniffer): Detect btrace frames.
12366 (record_btrace_tailcall_frame_sniffer): New.
12367 (record_btrace_frame_dealloc_cache): New.
12368 (record_btrace_frame_unwind): Add new functions.
12369 (record_btrace_tailcall_frame_unwind): New.
12370 (_initialize_record_btrace): Allocate cache.
12371 * btrace.c (btrace_clear): Call reinit_frame_cache.
12372 * NEWS: Announce it.
12373
12374 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12375
12376 * record-btrace.c (record_btrace_set_replay)
12377 (record_btrace_goto_begin, record_btrace_goto_end)
12378 (record_btrace_goto): New.
12379 (init_record_btrace_ops): Initialize them.
12380 * NEWS: Announce it.
12381
12382 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12383
12384 * record-btrace.c (record_btrace_find_new_threads)
12385 (record_btrace_thread_alive): New.
12386 (init_record_btrace_ops): Initialize to_find_new_threads and
12387 to_thread_alive.
12388
12389 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12390
12391 * record-btrace.c (record_btrace_resume): New.
12392 (record_btrace_wait): New.
12393 (init_record_btrace_ops): Initialize to_wait and to_resume.
12394
12395 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12396
12397 * record-btrace.c (record_btrace_xfer_partial)
12398 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12399 (record_btrace_allow_memory_access): New.
12400 (init_record_btrace_ops): Initialize new methods.
12401 * target.c (raw_memory_xfer_partial): Bail out if target reports
12402 that this memory is not available.
12403
12404 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12405
12406 * target.h (target_ops) <to_insert_breakpoint>
12407 <to_remove_breakpoint>: Add target_ops parameter.
12408 (forward_target_insert_breakpoint): New.
12409 (forward_target_remove_breakpoint): New.
12410 (memory_remove_breakpoint, memory_insert_breakpoint):
12411 Add target_ops parameter.
12412 * target.c (target_insert_breakpoint): Split into this and ...
12413 (forward_target_insert_breakpoint): ... this.
12414 (target_remove_breakpoint): Split into this and ...
12415 (forward_target_remove_breakpoint): ... this.
12416 (debug_to_insert_breakpoint): Add target_ops parameter.
12417 Call forward_target_insert_breakpoint.
12418 (debug_to_remove_breakpoint): Add target_ops parameter.
12419 Call forward_target_remove_breakpoint.
12420 (update_current_target): Do not inherit or default to_insert_breakpoint
12421 and to_remove_breakpoint.
12422 * corelow.c (ignore): Add target_ops parameter.
12423 * exec.c (ignore): Add target_ops parameter.
12424 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12425 Add target_ops parameter.
12426 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12427 Add target_ops parameter.
12428 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12429 Add target_ops parameter.
12430 * record-full.c (record_full_beneath_to_insert_breakpoint)
12431 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12432 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12433 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12434 (record_full_core_remove_breakpoint): Add target_ops parameter.
12435 Update users.
12436 (record_full_beneath_to_insert_breakpoint_ops)
12437 (record_full_beneath_to_remove_breakpoint_ops)
12438 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12439 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12440 tmp_to_remove_breakpoint_ops,
12441 record_full_beneath_to_insert_breakpoint_ops, and
12442 record_full_beneath_to_remove_breakpoint_ops.
12443 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12444 (m32r_remove_breakpoint): Add target_ops parameter.
12445 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12446 Add target_ops parameter.
12447 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12448 Add target_ops parameter.
12449
12450 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12451 Markus Metzger <markus.t.metzger@intel.com>
12452
12453 * record-btrace.c: Include frame-unwind.h.
12454 (record_btrace_frame_unwind_stop_reason)
12455 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12456 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12457 New.
12458 (init_record_btrace_ops): Install it.
12459
12460 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12461
12462 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12463 get_prev_frame_1.
12464
12465 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12466
12467 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12468 earlier.
12469
12470 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12471
12472 * frame-unwind.c: Include target.h.
12473 (frame_unwind_try_unwinder): New function with code from ...
12474 (frame_unwind_find_by_frame): ... here. New variable
12475 unwinder_from_target, call also target_get_unwinder)
12476 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12477 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12478 * target.h (struct target_ops): New fields to_get_unwinder and
12479 to_get_tailcall_unwinder.
12480 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12481
12482 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12483
12484 * record-btrace.c (record_btrace_fetch_registers)
12485 (record_btrace_store_registers)
12486 (record_btrace_to_prepare_to_store): New.
12487 (init_record_btrace_ops): Add the above.
12488
12489 2014-01-16 Tom Tromey <tromey@redhat.com>
12490
12491 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12492 * target.h (struct target_ops) <to_prepare_to_store>: Add
12493 argument.
12494 (target_prepare_to_store): Add argument.
12495 * target.c (debug_to_prepare_to_store): Add argument.
12496 (update_current_target): Update.
12497 * remote.c (remote_prepare_to_store): Add 'self' argument.
12498 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12499 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12500 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12501 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12502 argument.
12503 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12504 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12505 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12506 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12507 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12508
12509 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12510
12511 * btrace.h (replay) <replay>: New.
12512 (btrace_is_replaying): New.
12513 * btrace.c (btrace_clear): Free replay iterator.
12514 (btrace_is_replaying): New.
12515 * record-btrace.c (record_btrace_is_replaying): New.
12516 (record_btrace_info): Print insn number if replaying.
12517 (record_btrace_insn_history): Start at replay position.
12518 (record_btrace_call_history): Start at replay position.
12519 (init_record_btrace_ops): Init to_record_is_replaying.
12520
12521 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12522
12523 * record-btrace.c (record_btrace_insn_history_range): Include
12524 end.
12525 (record_btrace_insn_history_from): Adjust range.
12526 (record_btrace_call_history_range): Include
12527 end.
12528 (record_btrace_call_history_from): Adjust range.
12529 * NEWS: Announce changes.
12530
12531 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12532
12533 * record.h (enum record_print_flag)
12534 <record_print_indent_calls>: New.
12535 * record.c (get_call_history_modifiers): Recognize /c modifier.
12536 (_initialize_record): Document /c modifier.
12537 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12538 Reorder fields. Optionally indent the function name. Update
12539 all users.
12540 * NEWS: Announce changes.
12541
12542 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12543
12544 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12545
12546 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12547
12548 * btrace.c (ftrace_new_function): Start counting at one.
12549 * record-btrace.c (record_btrace_info): Adjust number of calls
12550 and insns.
12551 * NEWS: Announce it.
12552
12553 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12554
12555 * record-btrace.c (btrace_call_history_insn_range): Print
12556 insn range as [begin, end].
12557
12558 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12559
12560 * btrace.h (struct btrace_func_link): New.
12561 (enum btrace_function_flag): New.
12562 (struct btrace_inst): Rename to ...
12563 (struct btrace_insn): ...this. Update all users.
12564 (struct btrace_func) <ibegin, iend>: Remove.
12565 (struct btrace_func_link): New.
12566 (struct btrace_func): Rename to ...
12567 (struct btrace_function): ...this. Update all users.
12568 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12569 (number, level, flags>: New.
12570 (struct btrace_insn_iterator): Rename to ...
12571 (struct btrace_insn_history): ...this.
12572 Update all users.
12573 (struct btrace_insn_iterator, btrace_call_iterator): New.
12574 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12575 (struct btrace_target_info) <begin, end, level>
12576 <insn_history, call_history>: New.
12577 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12578 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12579 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12580 (btrace_call_number, btrace_call_begin, btrace_call_end)
12581 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12582 (btrace_find_function_by_number, btrace_set_insn_history)
12583 (btrace_set_call_history): New.
12584 * btrace.c (btrace_init_insn_iterator)
12585 (btrace_init_func_iterator, compute_itrace): Remove.
12586 (ftrace_print_function_name, ftrace_print_filename)
12587 (ftrace_skip_file): Change
12588 parameter to const.
12589 (ftrace_init_func): Remove.
12590 (ftrace_debug): Use new btrace_function fields.
12591 (ftrace_function_switched): Also consider gaining and
12592 losing symbol information).
12593 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12594 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12595 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12596 New.
12597 (ftrace_new_function): Move. Remove debug print.
12598 (ftrace_update_lines, ftrace_update_insns): New.
12599 (ftrace_update_function): Check for call, ret, and jump.
12600 (compute_ftrace): Renamed to ...
12601 (btrace_compute_ftrace): ...this. Rewritten to compute call
12602 stack.
12603 (btrace_fetch, btrace_clear): Updated.
12604 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12605 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12606 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12607 (btrace_call_number, btrace_call_begin, btrace_call_end)
12608 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12609 (btrace_find_function_by_number, btrace_set_insn_history)
12610 (btrace_set_call_history): New.
12611 * record-btrace.c (require_btrace): Use new btrace thread
12612 info fields.
12613 (record_btrace_info, btrace_insn_history)
12614 (record_btrace_insn_history, record_btrace_insn_history_range):
12615 Use new btrace thread info fields and new iterator.
12616 (btrace_func_history_src_line): Rename to ...
12617 (btrace_call_history_src_line): ...this. Use new btrace
12618 thread info fields.
12619 (btrace_func_history): Rename to ...
12620 (btrace_call_history): ...this. Use new btrace thread info
12621 fields and new iterator.
12622 (record_btrace_call_history, record_btrace_call_history_range):
12623 Use new btrace thread info fields and new iterator.
12624
12625 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12626
12627 * frame.h (frame_id_build_unavailable_stack_special): New.
12628 * frame.c (frame_id_build_unavailable_stack_special): New.
12629
12630 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12631
12632 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12633 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12634 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12635 to gdbarch.
12636 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12637 (i386_insn_is_jump, i386_jmp_p): New.
12638 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12639 insn_is_jump to gdbarch.
12640 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12641 * gdbarch.h: Regenerated.
12642 * gdbarch.c: Regenerated.
12643 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12644 (default_insn_is_jump): New.
12645 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12646 (default_insn_is_jump): New.
12647
12648 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12649
12650 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12651 Change to ...
12652 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12653 (btrace_read_type) <btrace_read_new>: Change to ...
12654 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12655
12656 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12657
12658 * common/linux-btrace.c (linux_read_btrace): Free trace from
12659 previous iteration.
12660
12661 2014-01-15 Doug Evans <dje@google.com>
12662
12663 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12664 uint32_t.
12665
12666 2014-01-15 Tom Tromey <tromey@redhat.com>
12667
12668 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12669 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12670 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12671 (set_objfile_main_name): New function.
12672 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12673 language_of_main>: New fields.
12674 (set_objfile_main_name): Declare.
12675 * symtab.c (find_main_name): Loop over objfiles to find the main
12676 name and language.
12677 (set_main_name): Now static.
12678 (get_main_info): Add comment.
12679 * symtab.h (set_main_name): Don't declare.
12680
12681 2014-01-15 Tom Tromey <tromey@redhat.com>
12682
12683 * symtab.c (main_progspace_key): New global.
12684 (struct main_info): New.
12685 (name_of_main, language_of_main): Remove.
12686 (get_main_info, main_info_cleanup): New function.
12687 (set_main_name, main_name, main_language): Use get_main_info.
12688 (_initialize_symtab): Initialize main_progspace_key.
12689
12690 2014-01-15 Tom Tromey <tromey@redhat.com>
12691
12692 * dbxread.c (process_one_symbol): Update.
12693 * dwarf2read.c (read_partial_die): Update.
12694 * symfile.c (set_initial_language): Call main_language.
12695 * symtab.c (language_of_main): Now static.
12696 (set_main_name): Add 'lang' parameter.
12697 (find_main_name): Update.
12698 (main_language): New function.
12699 (symtab_observer_executable_changed): Update.
12700 * symtab.h (set_main_name): Update.
12701 (language_of_main): Remove.
12702 (main_language): Declare.
12703
12704 2014-01-15 Tom Tromey <tromey@redhat.com>
12705
12706 * symfile.c (init_entry_point_info): Use new "initialized" field.
12707 Update.
12708 * objfiles.h (struct entry_point) <initialized>: New field.
12709 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12710 (struct objfile) <ei>: ...here. Remove.
12711 * objfiles.c (entry_point_address_query): Update.
12712
12713 2014-01-15 Tom Tromey <tromey@redhat.com>
12714
12715 * objfiles.c (entry_point_address_query): Relocate entry point
12716 address.
12717 (objfile_relocate1): Do not relocate entry point address.
12718 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12719 <the_bfd_section_index>: New field.
12720 * symfile.c (init_entry_point_info): Find the entry point's
12721 section.
12722
12723 2014-01-15 Tom Tromey <tromey@redhat.com>
12724
12725 * solib-frv.c (enable_break): Use entry_point_address_query.
12726
12727 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12728
12729 * NEWS: Add note on improved process record-replay on
12730 arm*-linux* targets.
12731
12732 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12733
12734 * arm-tdep.c (enum arm_record_result): New enum.
12735 (arm_record_unsupported_insn): New function.
12736 (arm_record_coproc_data_proc): Removed.
12737 (thumb2_record_ld_st_multiple): New function.
12738 (thumb2_record_ld_st_dual_ex_tbb): New function.
12739 (thumb2_record_data_proc_sreg_mimm): New function.
12740 (thumb2_record_ps_dest_generic): New function.
12741 (thumb2_record_branch_misc_cntrl): New function.
12742 (thumb2_record_str_single_data): New function.
12743 (thumb2_record_ld_mem_hints): New function.
12744 (thumb2_record_ld_word): New function.
12745 (thumb2_record_lmul_lmla_div): New function.
12746 (thumb2_record_decode_insn_handler): New function.
12747 (decode_insn): Add thumb32 instruction handlers.
12748
12749 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12750
12751 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12752 (struct arm_linux_record_tdep): Declare.
12753 (arm_canonicalize_syscall): New function.
12754 (arm_all_but_pc_registers_record): New function.
12755 (arm_linux_syscall_record): New function.
12756 (arm_linux_init_abi): Add syscall recording constructs.
12757 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12758 decoding. (arm_record_coproc_data_proc): Update arm syscall
12759 decoding.
12760 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12761 <arm_syscall_record>: New field.
12762 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12763 gdb_target_obs.
12764
12765 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12766
12767 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12768 register for push instruction recording.
12769
12770 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12771
12772 * arm-tdep.c (thumb_record_misc): Update to correct logical
12773 error while recording ldm, ldmia and pop instructions.
12774
12775 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12776
12777 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12778
12779 2014-01-15 Pedro Alves <palves@redhat.com>
12780
12781 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12782 (go32_resume, go32_fetch_registers, store_register)
12783 (go32_store_registers, go32_prepare_to_store)
12784 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12785 (go32_create_inferior, go32_can_run, go32_terminal_init)
12786 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12787 declarations.
12788
12789 2014-01-15 Tom Tromey <tromey@redhat.com>
12790
12791 * target.h (async_callback_ftype): New typedef.
12792 (struct target_ops) <to_async>: Use it.
12793
12794 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12795
12796 * python/py-value.c (get_field_type): Remove unnecessary curly
12797 braces for single-statement if block.
12798
12799 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12800
12801 * python/py-type.c (convert_field): Add missing empty line
12802 after declarations.
12803
12804 2014-01-14 Doug Evans <dje@google.com>
12805
12806 * symfile.h (expand_symtabs_matching): Renamed from
12807 expand_partial_symbol_names. Update prototype.
12808 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12809 * symfile.c (expand_symtabs_matching): Renamed from
12810 expand_partial_symbol_names. New args file_matcher, kind.
12811 Rename arg fun to symbol_matcher.
12812 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12813 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12814 ada_expand_partial_symbol_name.
12815 (ada_make_symbol_completion_list): Update to call
12816 expand_symtabs_matching.
12817 (ada_add_global_exceptions): Call expand_symtabs_matching.
12818 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12819 call map_symbol_filenames.
12820 * symtab.c (sources_info): Update to call map_symbol_filenames.
12821 (search_symbols): Call expand_symtabs_matching.
12822 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12823 (default_make_symbol_completion_list_break_on): Update to call
12824 expand_symtabs_matching.
12825 (make_source_files_completion_list): Update to call
12826 map_symbol_filenames.
12827
12828 2014-01-14 Doug Evans <dje@google.com>
12829
12830 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12831 (expand_symtabs_symbol_matcher_ftype): New typedef.
12832 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12833 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12834 * symfile.c (expand_partial_symbol_names): Update to use
12835 expand_symtabs_symbol_matcher_ftype.
12836 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12837 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12838 Arg name_matcher renamed to symbol_matcher.
12839 * psymtab.c (recursively_search_psymtabs): Update to use
12840 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12841 sym_matcher.
12842 (expand_symtabs_matching_via_partial): Update to use
12843 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12844 Arg name_matcher renamed to symbol_matcher.
12845
12846 2014-01-14 Doug Evans <dje@google.com>
12847
12848 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12849 (map_partial_symbol_filenames): Ditto.
12850 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12851 (map_partial_symbol_filenames): Ditto.
12852 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12853 (map_partial_symbol_filenames): Ditto.
12854 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12855 (map_partial_symbol_filenames): Ditto.
12856 * symtab.c: Delete #include "psymtab.h".
12857
12858 2014-01-14 Pedro Alves <palves@redhat.com>
12859 Tom Tromey <tromey@redhat.com>
12860
12861 * infrun.c (use_displaced_stepping): Use find_record_target
12862 instead of RECORD_IS_USED.
12863 (adjust_pc_after_break): Use record_full_is_used instead of
12864 RECORD_IS_USED.
12865 * record-btrace.c (record_btrace_open): Call record_preopen
12866 instead of checking RECORD_IS_USED.
12867 * record-full.c (record_full_shortname)
12868 (record_full_core_shortname): New globals.
12869 (record_full_is_used): New function.
12870 (find_full_open): Call record_preopen instead of checking
12871 RECORD_IS_USED.
12872 (init_record_full_ops): Set the target's shortname to
12873 record_full_shortname.
12874 (init_record_full_core_ops): Set the target's shortname to
12875 record_full_core_shortname.
12876 * record-full.h (record_full_is_used): Declare.
12877 * record.c (find_record_target): Make extern.
12878 (record_preopen): New function.
12879 * record.h (RECORD_IS_USED): Delete macro.
12880 (find_record_target, record_preopen): Declare functions.
12881
12882 2014-01-14 Yao Qi <yao@codesourcery.com>
12883
12884 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12885 'len''s type to ULONGEST.
12886 (core_xfer_shared_libraries_aix): Likewise.
12887 * gdbarch.c, gdbarch.h: Regenerated.
12888 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12889 Change type of 'len' to ULONGEST.
12890 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12891 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12892
12893 2014-01-14 Yao Qi <yao@codesourcery.com>
12894
12895 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12896 type of 'len' to ULONGEST.
12897 (linux_xfer_osdata_processgroups): Likewise.
12898 (linux_xfer_osdata_threads): Likewise.
12899 (linux_xfer_osdata_fds): Likewise.
12900 (linux_xfer_osdata_isockets): Likewise.
12901 (linux_xfer_osdata_shm): Likewise.
12902 (linux_xfer_osdata_sem): Likewise.
12903 (linux_xfer_osdata_msg): Likewise.
12904 (linux_common_xfer_osdata): Likewise.
12905 (struct osdata_type) <getter>: Likewise.
12906 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12907 the declaration.
12908
12909 2014-01-14 Yao Qi <yao@codesourcery.com>
12910
12911 * target.h (target_xfer_partial_ftype): Update.
12912 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12913 ULONGEST.
12914 * aix-thread.c (aix_thread_xfer_partial): Change type of
12915 argument 'len' to ULONGEST.
12916 * auxv.c (procfs_xfer_auxv): Likewise.
12917 (ld_so_xfer_auxv): Likewise.
12918 (memory_xfer_auxv): Likewise.
12919 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12920 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12921 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12922 * corelow.c (core_xfer_partial): Likewise.
12923 * ctf.c (ctf_xfer_partial): Likewise.
12924 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12925 '%u'.
12926 (darwin_read_dyld_info): Likewise.
12927 (darwin_xfer_partial): Likewise.
12928 * exec.c (section_table_xfer_memory_partial): Likewise.
12929 (exec_xfer_partial): Likewise.
12930 * exec.h (section_table_xfer_memory_partial): Update
12931 declaration.
12932 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12933 instead of plongest.
12934 (gnu_xfer_partial): Likewise.
12935 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12936 (ia64_hpux_xfer_solib_got): Likewise.
12937 (ia64_hpux_xfer_partial): Likewise.
12938 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12939 * inf-ptrace.c (inf_ptrace_xfer_partial):
12940 * inf-ttrace.c (inf_ttrace_xfer_partial):
12941 * linux-nat.c (linux_xfer_siginfo): Likewise.
12942 (linux_nat_xfer_partial): Likewise.
12943 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12944 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12945 * monitor.c (monitor_xfer_memory): Likewise.
12946 (monitor_xfer_partial): Likewise.
12947 * procfs.c (procfs_xfer_partial): Likewise.
12948 * record-full.c (record_full_xfer_partial): Likewise.
12949 (record_full_core_xfer_partial): Likewise.
12950 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12951 instead of plongest.
12952 (gdbsim_xfer_partial): Likewise.
12953 * remote.c (remote_xfer_partial): Likewise.
12954 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12955 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12956 declaration.
12957 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12958 (rs6000_xfer_shared_libraries): Likewise.
12959 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12960 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12961 (sparc_xfer_partial): Likewise.
12962 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12963 (spu_xfer_partial): Likewise.
12964 * spu-multiarch.c (spu_xfer_partial): Likewise.
12965 * target.c (target_read_live_memory): Likewise.
12966 (memory_xfer_live_readonly_partial): Likewise.
12967 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12968 (target_xfer_partial, default_xfer_partial): Likewise.
12969 (current_xfer_partial): Likewise.
12970 * tracepoint.c (tfile_xfer_partial): Likewise.
12971 * windows-nat.c (windows_xfer_memory): Likewise. Call
12972 pulongest instead of plongest.
12973 (windows_xfer_partial): Likewise.
12974 (windows_xfer_shared_libraries): Likewise.
12975
12976 2014-01-14 Yao Qi <yao@codesourcery.com>
12977
12978 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12979 target_xfer_partial_ftype.
12980
12981 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12982
12983 PR python/15464
12984 PR python/16113
12985 * valops.c (value_struct_elt_bitpos): New function
12986 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12987 object to 'None' if the field name is an empty string ("").
12988 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12989 attribute to look for a field when 'name' is 'None'.
12990 (get_field_type): New function
12991
12992 2014-01-13 Doug Evans <dje@google.com>
12993
12994 PR symtab/16426
12995 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12996 (try_open_dwop_file): Ditto.
12997 * gdb_bfd.c: #include "vec.h".
12998 (bfdp): New typedef.
12999 (struct gdb_bfd_data): New member included_bfds.
13000 (gdb_bfd_unref): Unref all included bfds.
13001 (gdb_bfd_record_inclusion): New function.
13002 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13003
13004 2014-01-13 Tom Tromey <tromey@redhat.com>
13005
13006 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13007
13008 2014-01-13 Tom Tromey <tromey@redhat.com>
13009
13010 * defs.h (use_windows): Remove.
13011 * gdb.c (main): Update.
13012 * main.c (captured_main, gdb_main): Update.
13013 * main.h (struct captured_main_args) <use_windows>: Remove.
13014 * top.c (use_windows): Remove.
13015
13016 2014-01-13 Tom Tromey <tromey@redhat.com>
13017
13018 * defs.h (deprecated_flush_hook): Remove.
13019
13020 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13021
13022 PR threads/16216
13023 * linux-thread-db.c (try_thread_db_load): Add parameter
13024 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13025 (try_thread_db_load_from_pdir_1): Move it there from here.
13026 (try_thread_db_load_from_sdir): Update caller.
13027 (try_thread_db_load_from_dir): Move it there from here.
13028
13029 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13030
13031 * regformats/regdat.sh: Always rewrite the register file.
13032
13033 2014-01-13 Pedro Alves <palves@redhat.com>
13034
13035 * Makefile.in (CHECK_HEADERS): New variable.
13036 (check-headers:): New rule.
13037
13038 2014-01-13 Tom Tromey <tromey@redhat.com>
13039
13040 * cli/cli-setshow.c (do_set_command): Update.
13041 * defs.h (deprecated_set_hook): Remove.
13042 * top.c (deprecated_set_hook): Remove.
13043
13044 2014-01-13 Pedro Alves <palves@redhat.com>
13045
13046 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13047 the tracepoint if the PC is a pseudo-register.
13048
13049 2014-01-13 Tom Tromey <tromey@redhat.com>
13050
13051 * defs.h (XCALLOC): Remove.
13052 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13053 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13054 * dwarf2loc.c (allocate_piece_closure): Likewise.
13055 * elfread.c (elf_symfile_segments): Likewise.
13056 (elf_symfile_segments): Likewise.
13057 * gdbtypes.c (copy_type_recursive): Likewise.
13058 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13059 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13060 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13061 XCALLOC.
13062 * mt-tdep.c (mt_gdbarch_init): Likewise.
13063 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13064 XCALLOC.
13065 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13066 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13067 * registry.c (registry_alloc_data): Likewise.
13068 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13069 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13070 * serial.c (serial_fdopen_ops): Likewise.
13071 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13072 XCALLOC.
13073 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13074 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13075 not XCALLOC.
13076
13077 2014-01-13 Tom Tromey <tromey@redhat.com>
13078
13079 * defs.h (XMALLOC): Remove.
13080 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13081 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13082 * cli-out.c (struct ui_out *): Likewise.
13083 * cli/cli-dump.c (add_dump_command): Likewise.
13084 (add_dump_command): Likewise.
13085 * complaints.c (get_complaints): Likewise.
13086 (find_complaint): Likewise.
13087 * dwarf2-frame.c (execute_cfa_program): Likewise.
13088 * dwarf2read.c (abbrev_table_read_table): Likewise.
13089 * gdbarch.sh: Likewise.
13090 * gdbarch.c: Rebuild.
13091 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13092 * interps.c (interp_new): Likewise.
13093 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13094 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13095 * mi/mi-console.c (mi_console_file_new): Likewise.
13096 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13097 * mi/mi-out.c (mi_out_new): Likewise.
13098 * mi/mi-parse.c (mi_parse): Likewise.
13099 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13100 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13101 * observer.c (xalloc_observer_list_node): Likewise.
13102 * regcache.c (regcache_xmalloc_1): Likewise.
13103 * reggroups.c (reggroup_new): Likewise.
13104 (_initialize_reggroup): Likewise.
13105 * registry.c (register_data_with_cleanup): Likewise.
13106 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13107 * ser-base.c (serial_ttystate): Likewise.
13108 * ser-mingw.c (make_pipe_state): Likewise.
13109 * ser-pipe.c (pipe_open): Likewise.
13110 * serial.c (serial_open): Likewise.
13111 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13112 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13113 (tui_alloc_win_info): Likewise.
13114 (tui_add_content_elements): Likewise.
13115 * tui/tui-file.c (tui_file_new): Likewise.
13116 * tui/tui-out.c (tui_out_new): Likewise.
13117 * ui-file.c (mem_file_new): Likewise.
13118 * ui-out.c (push_level): Likewise.
13119 (make_cleanup_ui_out_end): Likewise.
13120 (append_header_to_list): Likewise.
13121 (ui_out_new): Likewise.
13122 * user-regs.c (user_reg_add_builtin): Likewise.
13123
13124 2014-01-13 Tom Tromey <tromey@redhat.com>
13125
13126 * defs.h (XZALLOC): Remove.
13127 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13128 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13129 (get_ada_tasks_inferior_data): Likewise.
13130 * auto-load.c (get_auto_load_pspace_data): Likewise.
13131 * auxv.c (get_auxv_inferior_data): Likewise.
13132 * bfd-target.c (target_bfd_reopen): Likewise.
13133 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13134 (deprecated_insert_raw_breakpoint): Likewise.
13135 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13136 * corelow.c (core_open): Likewise.
13137 * darwin-nat.c (darwin_check_new_threads): Likewise.
13138 (darwin_attach_pid): Likewise.
13139 * dummy-frame.c (dummy_frame_push): Likewise.
13140 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13141 * dwarf2loc.c (allocate_piece_closure): Likewise.
13142 * elfread.c (elf_symfile_segments): Likewise.
13143 * eval.c (ptrmath_type_p): Likewise.
13144 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13145 * gdbtypes.c (alloc_type_arch): Likewise.
13146 (alloc_type_instance): Likewise.
13147 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13148 * inf-child.c (inf_child_can_use_agent): Likewise.
13149 * inflow.c (get_inflow_inferior_data): Likewise.
13150 * infrun.c (save_infcall_suspend_state): Likewise.
13151 * jit.c (jit_reader_load): Likewise.
13152 (get_jit_objfile_data): Likewise.
13153 (get_jit_program_space_data): Likewise.
13154 (jit_object_open_impl): Likewise.
13155 (jit_symtab_open_impl): Likewise.
13156 (jit_block_open_impl): Likewise.
13157 (jit_frame_sniffer): Likewise.
13158 * linux-fork.c (add_fork): Likewise.
13159 * maint.c (make_command_stats_cleanup): Likewise.
13160 * objfiles.c (get_objfile_pspace_data): Likewise.
13161 * opencl-lang.c (struct lval_closure): Likewise.
13162 * osdata.c (osdata_start_osdata): Likewise.
13163 * progspace.c (new_address_space): Likewise.
13164 (add_program_space): Likewise.
13165 * remote-sim.c (get_sim_inferior_data): Likewise.
13166 * sh-tdep.c (sh_gdbarch_init): Likewise.
13167 * skip.c (Ignore): Likewise.
13168 (skip_delete_command): Likewise.
13169 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13170 (library_list_start_library): Likewise.
13171 (solib_aix_current_sos): Likewise.
13172 * solib-darwin.c (get_darwin_info): Likewise.
13173 (darwin_current_sos): Likewise.
13174 * solib-dsbt.c (get_dsbt_info): Likewise.
13175 * solib-ia64-hpux.c (new_so_list): Likewise.
13176 (ia64_hpux_get_solib_linkage_addr): Likewise.
13177 * solib-spu.c (append_ocl_sos): Likewise.
13178 (spu_current_sos): Likewise.
13179 * solib-svr4.c (get_svr4_info): Likewise.
13180 (svr4_keep_data_in_core): Likewise.
13181 (library_list_start_library): Likewise.
13182 (svr4_default_sos): Likewise.
13183 (svr4_read_so_list): Likewise.
13184 * solib-target.c (library_list_start_library): Likewise.
13185 (solib_target_current_sos): Likewise.
13186 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13187 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13188 * symfile.c (default_symfile_segments): Likewise.
13189 * target-descriptions.c (tdesc_data_init): Likewise.
13190 (tdesc_create_reg): Likewise.
13191 (struct tdesc_type *): Likewise.
13192 (tdesc_create_vector): Likewise.
13193 (tdesc_set_struct_size): Likewise.
13194 (struct tdesc_type *): Likewise.
13195 (tdesc_free_feature): Likewise.
13196 (tdesc_create_feature): Likewise.
13197 * windows-nat.c (windows_add_thread): Likewise.
13198 (windows_make_so): Likewise.
13199 * xml-support.c (gdb_xml_body_text): Likewise.
13200 (gdb_xml_create_parser_and_cleanup): Likewise.
13201 (xml_process_xincludes): Likewise.
13202 * xml-syscall.c (allocate_syscalls_info): Likewise.
13203 (syscall_create_syscall_desc): Likewise.
13204
13205 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13206
13207 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13208 function, with code from i386_stap_parse_special_token.
13209 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13210 (i386_stap_parse_special_token): Move code to the two functions
13211 above; simplify it.
13212
13213 2014-01-09 Pedro Alves <palves@redhat.com>
13214 Hui Zhu <hui@codesourcery.com>
13215
13216 PR gdb/16101
13217 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13218 bp_err_string. Don't mark the location shlib_disabled if the
13219 error thrown wasn't a generic or memory error. Catch errors
13220 thrown while inserting breakpoints in overlayed code. Output
13221 error message of software breakpoints.
13222 * remote.c (remote_insert_breakpoint): If this breakpoint has
13223 target-side commands but this stub doesn't support Z0 packets,
13224 throw NOT_SUPPORTED_ERROR error.
13225 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13226 * target.h (target_insert_breakpoint): Extend comment.
13227 (target_insert_hw_breakpoint): Add comment.
13228
13229 2014-01-08 Pedro Alves <palves@redhat.com>
13230
13231 * remote.c (remote_add_thread): Add threads silently if starting
13232 up.
13233 (remote_notice_new_inferior): If in all-stop, and starting up,
13234 don't call notice_new_inferior.
13235 (get_current_thread): New function, factored out from ...
13236 (add_current_inferior_and_thread): ... this. Adjust.
13237 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13238 found any thread, then select the remote's current thread as GDB's
13239 current thread too.
13240
13241 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13242
13243 * NEWS: Create a new section for the next release branch.
13244 Rename the section of the current branch, now that it has
13245 been cut.
13246
13247 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13248
13249 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13250 * version.in: Bump version to 7.7.50.DATE-cvs.
13251
13252 2014-01-08 Yao Qi <yao@codesourcery.com>
13253
13254 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13255 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13256 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13257
13258 2014-01-08 Yao Qi <yao@codesourcery.com>
13259
13260 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13261 return value of bfd_get_filename to symbol_file_add_from_bfd.
13262
13263 2014-01-08 Pierre Muller <muller@sourceware.org>
13264
13265 Fix PR16201.
13266 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13267 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13268 to prim_record_mininal_symbol_and_info.
13269 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13270 in call to prim_record_minimal_symbol_and_info.
13271 (read_pe_exported_syms): Set index field of section_data.
13272
13273 2014-01-07 Andrew Pinski <apinski@cavium.com>
13274
13275 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13276 * features/aarch64.c: Regenerate.
13277
13278 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13279
13280 * target.c (return_null): Define.
13281 (update_current_target): Use it instead of return_zero for
13282 functions that return a pointer.
13283
13284 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13285
13286 * source.c (add_path): Fix check for duplicated paths in the previously
13287 included paths.
13288
13289 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13290
13291 * ada-lang.c: Remove duplicated include statements.
13292 * alphabsd-nat.c: Ditto.
13293 * amd64-darwin-tdep.c: Ditto.
13294 * amd64fbsd-nat.c: Ditto.
13295 * auto-load.c: Ditto.
13296 * ax-gdb.c: Ditto.
13297 * breakpoint.c: Ditto.
13298 * dbxread.c: Ditto.
13299 * fork-child.c: Ditto.
13300 * gdb_usleep.c: Ditto.
13301 * i386-darwin-tdep.c: Ditto.
13302 * i386fbsd-nat.c: Ditto.
13303 * infcmd.c: Ditto.
13304 * inferior.c: Ditto.
13305 * jv-lang.c: Ditto.
13306 * linux-nat.c: Ditto.
13307 * linux-tdep.c: Ditto.
13308 * m68kbsd-nat.c: Ditto.
13309 * m68klinux-nat.c: Ditto.
13310 * microblaze-tdep.c: Ditto.
13311 * mips-linux-tdep.c: Ditto.
13312 * mn10300-tdep.c: Ditto.
13313 * nto-tdep.c: Ditto.
13314 * opencl-lang.c: Ditto.
13315 * osdata.c: Ditto.
13316 * printcmd.c: Ditto.
13317 * regcache.c: Ditto.
13318 * remote-m32r-sdi.c: Ditto.
13319 * remote.c: Ditto.
13320 * symfile.c: Ditto.
13321 * symtab.c: Ditto.
13322 * tilegx-linux-nat.c: Ditto.
13323 * tilegx-tdep.c: Ditto.
13324 * tracepoint.c: Ditto.
13325 * valops.c: Ditto.
13326 * vaxbsd-nat.c: Ditto.
13327 * windows-nat.c: Ditto.
13328 * xtensa-tdep.c: Ditto.
13329
13330 2014-01-07 Yao Qi <yao@codesourcery.com>
13331
13332 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13333
13334 2014-01-07 Yao Qi <yao@codesourcery.com>
13335 Joel Brobecker <brobecker@adacore.com>
13336
13337 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13338 (pdc_write_regs): Likewise.
13339 (fetch_regs_kernel_thread): Likewise.
13340 (store_regs_kernel_thread): Likewise.
13341
13342 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13343
13344 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13345 tagged type objects to their actual type.
13346
13347 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13348
13349 * ada-valprint.c (print_field_values): Add "language" parameter.
13350 Update calls to print_field_values and print_variant_part.
13351 Pass new parameter "language" in call to val_print instead
13352 of "current_language". Replace call to ada_val_print by call
13353 to val_print.
13354 (print_variant_part): Add "language" parameter.
13355 (ada_val_print_struct_union): Update call to print_field_values.
13356
13357 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13358
13359 * ada-valprint.c (ui_memcpy): Delete.
13360 (ada_print_floating): Update documentation. Add empty line
13361 between between function documentation and implementation.
13362 Delete variable "buffer". Use ui_file_xstrdup in place of
13363 ui_file_put. Minor adjustments following this change.
13364
13365 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13366
13367 * ada-valprint.c (ada_val_print_string): New function,
13368 extracted from ada_val_print_array.
13369 (ada_val_print_array): Replace extracted code by call
13370 to ada_val_print_string followed by a return. Move
13371 "else" branch to the function's top block.
13372
13373 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13374
13375 * ada-valprint.c (ada_val_print_array): Move implementation
13376 down. Rename parameter "offset" and "val" into "offset_aligned"
13377 and "original_value" respectively. Add parameter "offset".
13378
13379 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13380
13381 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13382 re-organizing the code. Change the "???" message printed
13383 when target type is a TYPE_CODE_UNDEF into
13384 "<ref to undefined type>".
13385
13386 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13387
13388 * ada-valprint.c (print_record): Delete, implementation inlined...
13389 (ada_val_print_struct_union): ... here. Remove call to
13390 ada_check_typedef in inlined implementation.
13391
13392 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13393
13394 * ada-valprint.c (ada_val_print_gnat_array): New function,
13395 extracted from ada_val_print_1;
13396 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13397 (ada_val_print_flt, ada_val_print_struct_union)
13398 (ada_val_print_ref): Likewise.
13399 (ada_val_print_1): Delete variables i and elttype.
13400 Replace extracted-out code by call to corresponding
13401 new functions.
13402
13403 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13404
13405 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13406
13407 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13408
13409 * ada-valprint.c (ada_val_print_1): Replace calls to
13410 ada_val_print_1 by calls to val_print.
13411
13412 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13413
13414 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13415 Update calls to self accordingly. Replace calls to c_val_print
13416 by calls to val_print.
13417
13418 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13419
13420 * ada-valprint.c (print_record): Delete declaration.
13421 (adjust_type_signedness, ada_val_print_1): Likewise.
13422 (ada_val_print): Move function implementation down.
13423 (print_variant_part, print_field_values, print_record):
13424 Move function implementation up.
13425
13426 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13427
13428 * python/py-type.c (typy_get_name): New function.
13429 (type_object_getset): Add entry for attribute "name".
13430 * NEWS: Add entry mentioning this new attribute.
13431
13432 2014-01-07 Yao Qi <yao@codesourcery.com>
13433
13434 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13435 statement.
13436
13437 2014-01-07 Yao Qi <yao@codesourcery.com>
13438
13439 * gnu-nat.c (info_port_rights): Add qualifier const to
13440 argument args.
13441
13442 2014-01-07 Yao Qi <yao@codesourcery.com>
13443
13444 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13445
13446 2014-01-07 Yao Qi <yao@codesourcery.com>
13447
13448 * gnu-nat.c (make_inf) Update declaration.
13449 (make_inf): Make it static.
13450 (inf_set_traced): Likewise.
13451 (inf_port_to_thread, inf_task_died_status): Likewise.
13452
13453 2014-01-07 Yao Qi <yao@codesourcery.com>
13454
13455 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13456
13457 2014-01-07 Yao Qi <yao@codesourcery.com>
13458
13459 * gnu-nat.c (_initialize_gnu_nat): Declare.
13460
13461 2014-01-07 Yao Qi <yao@codesourcery.com>
13462
13463 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13464 'enum bfd_endian'.
13465 (struct gdbarch_info) <byte_order>: Change type to
13466 'enum bfd_endian'.
13467 <byte_order_for_code>: Likewise.
13468 * gdbarch.c, gdbarch.h: Regenerated.
13469
13470 2014-01-06 Sasha Smundak <asmundak@google.com>
13471
13472 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13473
13474 2014-01-06 Tom Tromey <tromey@redhat.com>
13475
13476 * doublest.c (convert_doublest_to_floatformat): Use const, not
13477 CONST.
13478 * somread.c (som_symtab_read): Likewise.
13479
13480 2014-01-07 Hui Zhu <hui@codesourcery.com>
13481
13482 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13483 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13484 (gdb_bfd_fopen): Ditto.
13485 (gdb_bfd_openr): Ditto.
13486 (gdb_bfd_openw): Ditto.
13487 (gdb_bfd_openr_iovec): Ditto.
13488 (gdb_bfd_fdopenr): Ditto.
13489 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13490 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13491 with xstrdup.
13492 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13493 with xstrdup.
13494 * symfile-mem.c (symbol_file_add_from_memory): Removed
13495 gdb_bfd_stash_filename.
13496
13497 2014-01-03 Doug Evans <dje@google.com>
13498
13499 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13500 output.
13501
13502 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13503
13504 Update year range in copyright notice of all files.
13505
13506 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13507
13508 * top.c (print_gdb_version): Set copyright year to 2014.
13509
13510 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13511
13512 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13513
13514 For older changes see ChangeLog-2013.
13515 \f
13516 Local Variables:
13517 mode: change-log
13518 left-margin: 8
13519 fill-column: 74
13520 version-control: never
13521 coding: utf-8
13522 End:
This page took 0.287684 seconds and 5 git commands to generate.