SPARC: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
4 (sparc_iterate_over_regset_sections): New.
5 (sparc32_gdbarch_init): Adjust gdbarch initialization.
6 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
7 targets.
8 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
9 (sparc64fbsd_init_abi): Call fbsd_init_abi.
10 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
11 target method 'make_corefile_notes'.
12
13 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
14
15 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
16 'sizeof_gregset' and 'sizeof_fpregset'.
17 * sh-tdep.c (sh_regset_from_core_section): Remove.
18 (sh_iterate_over_regset_sections): New.
19 (sh_gdbarch_init): Adjust gdbarch initialization.
20 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
21 sizeof_fpregset.
22 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
23 'sizeof_gregset'.
24
25 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
26
27 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
28 (score7_linux_iterate_over_regset_sections): New.
29 (score_gdbarch_init): Adjust gdbarch initialization.
30
31 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
32
33 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
34 FreeBSD targets.
35 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
36 method 'make_corefile_notes'.
37 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
38 (ppcfbsd_regset_from_core_section): Remove.
39 (ppcfbsd_iterate_over_regset_sections): New.
40 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
41 initialization.
42 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
43 (ppcnbsd_iterate_over_regset_sections): New.
44 (ppcnbsd_init_abi): Adjust.
45 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
46 (ppcobsd_iterate_over_regset_sections): New.
47 (ppcobsd_init_abi): Adjust.
48 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
49 (rs6000_aix_iterate_over_regset_sections): New.
50 (rs6000_aix_init_osabi): Adjust.
51
52 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
53
54 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
55 (nios2_regset_from_core_section): Remove.
56 (nios2_iterate_over_regset_sections): New.
57 (nios2_linux_init_abi): Adjust gdbarch initialization.
58
59 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
60
61 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
62 (am33_iterate_over_regset_sections): New.
63 (am33_linux_init_osabi): Adjust gdbarch initialization.
64
65 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
66
67 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
68 (mips_linux_iterate_over_regset_sections): New.
69 (mips_linux_init_abi): Adjust gdbarch initialization.
70 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
71 (mips64obsd_iterate_over_regset_sections): New.
72 (mips64obsd_init_abi): Adjust.
73 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
74 (mipsnbsd_iterate_over_regset_sections): New.
75 (mipsnbsd_init_abi): Adjust.
76
77 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
78
79 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
80 (m88k_iterate_over_regset_sections): New.
81 (m88k_gdbarch_init): Adjust gdbarch initialization.
82
83 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
84
85 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
86 (ia64_linux_iterate_over_regset_sections): New.
87 (ia64_linux_init_abi): Adjust gdbarch initialization.
88
89 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
90
91 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
92 (m68kbsd_iterate_over_regset_sections): New.
93 (m68kbsd_init_abi): Adjust gdbarch initialization.
94 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
95 (m68k_linux_iterate_over_regset_sections): New.
96 (m68k_linux_init_abi): Adjust gdbarch initialization.
97
98 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
99
100 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
101 (m32r_linux_regset_from_core_section): Remove.
102 (m32r_linux_iterate_over_regset_sections): New.
103 (m32r_linux_init_abi): Adjust gdbarch initialization.
104
105 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
106
107 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
108 (amd64obsd_iterate_over_regset_sections): New.
109 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
110 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
111 Remove.
112 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
113 regset_from_core_section initialization.
114 * i386-tdep.c (i386_regset_from_core_section): Remove.
115 (i386_iterate_over_regset_sections): New.
116 (i386_gdbarch_init): Adjust gdbarch initialization.
117 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
118 (i386_iterate_over_regset_sections): New prototype.
119 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
120 Remove.
121 (i386obsd_aout_iterate_over_regset_sections): New.
122 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
123 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
124 targets.
125 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
126 (amd64fbsd_init_abi): Call fbsd_init_abi.
127 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
128 (i386fbsd4_init_abi): Call fbsd_init_abi.
129 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
130 target method 'make_corefile_notes'.
131 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
132
133 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
134
135 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
136 (hppa_hpux_iterate_over_regset_sections): New.
137 (hppa_hpux_init_abi): Adjust gdbarch initialization.
138 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
139 (hppa_linux_iterate_over_regset_sections): New.
140 (hppa_linux_init_abi): Adjust.
141 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
142 (hppanbsd_iterate_over_regset_sections): New.
143 (hppanbsd_init_abi): Adjust.
144 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
145 (hppaobsd_iterate_over_regset_sections): New.
146 (hppaobsd_init_abi): Adjust.
147
148 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
149
150 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
151 (frv_linux_iterate_over_regset_sections): New.
152 (frv_linux_init_abi): Adjust gdbarch initialization.
153
154 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
155
156 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
157 (armbsd_iterate_over_regset_sections): New prototype.
158 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
159 (armbsd_iterate_over_regset_sections): New.
160 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
161 initialization.
162
163 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
164
165 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
166 (alpha_linux_iterate_over_regset_sections): New.
167 (alpha_linux_init_abi): Adjust gdbarch initialization.
168 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
169 prototype.
170 (alphanbsd_iterate_over_regset_sections): New prototype.
171
172 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
173
174 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
175 Remove.
176 (aarch64_linux_iterate_over_regset_sections): New.
177 (aarch64_linux_init_abi): Adjust gdbarch initialization.
178
179 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
180
181 * fbsd-tdep.c: New file.
182 * fbsd-tdep.h: New file.
183 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
184 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
185 (ALLDEPFILES): Add fbsd-tdep.c.
186
187 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
188
189 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
190 parameter.
191 * gdbarch.h: Regenerate.
192 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
193 iterator.
194 (get_core_register_section): Add parameter 'regset' and use it, if
195 set. Add parameter 'min_size' and verify the bfd section size
196 against it.
197 (get_core_registers_cb): Add parameter 'regset' and pass it to
198 get_core_register section. For the "standard" register sections
199 ".reg" and ".reg2", set an appropriate default for human_name.
200 (get_core_registers): Don't abort when the gdbarch has an iterator
201 but no regset_from_core_section. Add NULL/0 for parameters
202 'regset'/'min_size' in calls to get_core_register_section.
203 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
204 'regset' and use it instead of calling the
205 regset_from_core_section gdbarch method.
206 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
207 * i386-tdep.c (i386_supply_xstateregset)
208 (i386_collect_xstateregset, i386_xstateregset): Moved to
209 i386-linux-tdep.c.
210 (i386_regset_from_core_section): Drop handling for .reg-xfp and
211 .reg-xstate.
212 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
213 core file support only if the regset iterator hasn't been set.
214 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
215 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
216 Moved from i386-tdep.c and renamed to *_linux*.
217 (i386_linux_iterate_over_regset_sections): Add regset parameter to
218 each callback invocation. Allow any .reg-xstate size when reading
219 from a core file.
220 * amd64-tdep.c (amd64_supply_xstateregset)
221 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
222 amd64-linux-tdep.c.
223 (amd64_regset_from_core_section): Remove.
224 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
225 install an amd64-specific regset_from_core_section gdbarch method.
226 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
227 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
228 Moved from amd64-tdep.c and renamed to *_linux*.
229 (amd64_linux_iterate_over_regset_sections): Add regset parameter
230 to each callback invocation. Allow any .reg-xstate size when
231 reading from a core file.
232 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
233 (arm_linux_iterate_over_regset_sections): Add regset parameter to
234 each callback invocation.
235 (arm_linux_init_abi): No longer set the regset_from_core_section
236 gdbarch method.
237 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
238 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
239 each callback invocation.
240 (ppc_linux_init_abi): No longer set the regset_from_core_section
241 gdbarch method.
242 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
243 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
244 (s390_regset_from_core_section): Remove.
245 (s390_iterate_over_regset_sections): Add regset parameter to each
246 callback invocation.
247 (s390_gdbarch_init): No longer set the regset_from_core_section
248 gdbarch method. Drop initialization of deleted tdep fields.
249
250 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
251
252 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
253 (amd64_linux_iterate_over_regset_sections): New.
254 (amd64_linux_init_abi_common): Don't install the regset section
255 list, but the new iterator in gdbarch.
256 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
257 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
258 (arm_linux_iterate_over_regset_sections): ...here. New function.
259 (arm_linux_init_abi): Set iterator instead of section list.
260 * corelow.c (get_core_registers_cb): New function, logic moved
261 from...
262 (get_core_registers): ...loop body here. Use new iterator method
263 instead of walking through the regset section list.
264 * gdbarch.sh: Remove 'core_regset_sections'. New method
265 'iterate_over_regset_sections'. New typedef
266 'iterate_over_regset_sections_cb'.
267 * gdbarch.c: Regenerate.
268 * gdbarch.h: Likewise.
269 * i386-linux-tdep.c (i386_linux_regset_sections)
270 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
271 Remove.
272 (i386_linux_iterate_over_regset_sections): New.
273 (i386_linux_init_abi): Don't choose a regset section list, but
274 install new iterator in gdbarch.
275 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
276 (linux_collect_regset_section_cb): New function, logic moved
277 from...
278 (linux_collect_thread_registers): ...loop body here. Use iterator
279 method instead of walking through list.
280 (linux_make_corefile_notes_1): Check for presence of iterator
281 method instead of regset section list.
282 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
283 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
284 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
285 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
286 (ppc_linux_iterate_over_regset_sections): ...here. New function.
287 (ppc_linux_init_abi): Don't choose from above regset section
288 lists, but install new iterator in gdbarch.
289 * regset.h (struct core_regset_section): Remove.
290 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
291 have_linux_v1, have_linux_v2, and have_tdb.
292 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
293 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
294 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
295 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
296 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
297 (s390_iterate_over_regset_sections): ...here. New function. Use
298 new tdep fields.
299 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
300 regset section lists, but install new iterator.
301
302 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
303
304 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
305
306 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
307
308 * progspace.c (print_program_space): Don't prune program spaces
309 before printing them.
310
311 2014-09-25 Pedro Alves <palves@redhat.com>
312
313 * infrun.c (user_visible_resume_ptid): Don't check
314 singlestep_breakpoints_inserted_p.
315
316 2014-09-25 Pedro Alves <palves@redhat.com>
317
318 * breakpoint.c (should_be_inserted): Add debug output.
319
320 2014-09-25 Pedro Alves <palves@redhat.com>
321
322 * infrun.c (stepping_past_instruction_at)
323 (clear_exit_convenience_vars): Point at infrun.h instead of
324 inferior.h.
325 (handle_signal_stop): Fix typo.
326
327 2014-09-24 Yao Qi <yao@codesourcery.com>
328
329 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
330 bitmask.
331
332 2014-09-22 Gary Benson <gbenson@redhat.com>
333
334 * target.c (target_stop): Updated comment.
335
336 2014-09-22 Gary Benson <gbenson@redhat.com>
337
338 * target/target.h (target_stop_ptid): Renamed as...
339 (target_stop_and_wait): New function. Updated comment.
340 All uses updated.
341 (target_continue_ptid): Renamed as...
342 (target_continue_no_signal): New function. Updated comment.
343 All uses updated.
344
345 2014-09-22 Pedro Alves <palves@redhat.com>
346
347 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
348 and "auto" merged.
349 * breakpoint.c (enum ugll_insert_mode): New enum.
350 (always_inserted_mode): Now a plain boolean.
351 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
352 (breakpoints_always_inserted_mode): Delete.
353 (breakpoints_should_be_inserted_now): New function.
354 (insert_breakpoints): Pass UGLL_INSERT to
355 update_global_location_list instead of calling
356 insert_breakpoint_locations manually.
357 (create_solib_event_breakpoint_1): New, factored out from ...
358 (create_solib_event_breakpoint): ... this.
359 (create_and_insert_solib_event_breakpoint): Use
360 create_solib_event_breakpoint_1 instead of calling
361 insert_breakpoint_locations manually.
362 (update_global_location_list): Change parameter type from boolean
363 to enum ugll_insert_mode. All callers adjusted. Adjust to use
364 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
365 (update_global_location_list_nothrow): Change parameter type from
366 boolean to enum ugll_insert_mode.
367 (_initialize_breakpoint): "breakpoint always-inserted" option is
368 now a boolean command. Update help text.
369 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
370 (breakpoints_should_be_inserted_now): New declaration.
371 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
372 Remove breakpoints_always_inserted_mode check.
373 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
374 * remote.c (remote_start_remote): Likewise.
375
376 2014-09-22 Pedro Alves <palves@redhat.com>
377
378 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
379 (insert_breakpoints): Don't call insert_breakpoint_locations here.
380 Instead, pass UGLL_INSERT to update_global_location_list.
381 (update_global_location_list): Change parameter type from boolean
382 to enum ugll_insert_mode. All callers adjusted. Adjust to use
383 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
384 (create_solib_event_breakpoint_1): New, factored out from ...
385 (create_solib_event_breakpoint): ... this.
386 (create_and_insert_solib_event_breakpoint): Use
387 create_solib_event_breakpoint_1 instead of calling
388 insert_breakpoint_locations manually.
389 (update_global_location_list): Handle UGLL_INSERT.
390
391 2014-09-22 Pedro Alves <palves@redhat.com>
392
393 * breakpoint.c (enum ugll_insert_mode): New enum.
394 (update_global_location_list)
395 (update_global_location_list_nothrow): Change parameter type from
396 boolean to enum ugll_insert_mode. All callers adjusted.
397
398 2014-09-19 Joel Brobecker <brobecker@adacore.com>
399
400 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
401 SystemTap support in GDB.
402
403 2014-09-19 Don Breazeal <donb@codesourcery.com>
404
405 * linux-nat.c (linux_handle_extended_wait): Call
406 linux_ptrace_get_extended_event.
407 (wait_lwp): Call linux_is_extended_waitstatus.
408 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
409 and linux_is_extended_waitstatus.
410 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
411 linux_ptrace_get_extended_event.
412 (linux_ptrace_get_extended_event): New function.
413 (linux_is_extended_waitstatus): New function.
414 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
415 (linux_is_extended_waitstatus): New declarations.
416
417 2014-09-19 Yao Qi <yao@codesourcery.com>
418
419 * dwarf2read.c (dwarf_decode_lines): Update declaration.
420 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
421 comments. Callers update.
422 (dwarf_decode_lines): Likewise.
423 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
424 comments. Skip the line table if 'lowpc' is greater than
425 'address'. Don't check
426 dwarf2_per_objfile->has_section_at_zero.
427
428 2014-09-18 Doug Evans <dje@google.com>
429
430 * NEWS: Mention new "producer" attribute of gdb.Symtab.
431 * python/py-symtab.c (stpy_get_producer): New function.
432 (symtab_object_getset): Add "producer" attribute.
433
434 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
435
436 PR gdb/17384
437 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
438 (do_captured_read_memory_integer): Remove.
439 (safe_read_memory_integer): Use target_read_memory directly instead
440 of catching errors in do_captured_read_memory_integer.
441
442 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
443
444 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
445 not gdb/doc.
446
447 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
448
449 * objc-lang.c (find_implementation_from_class): Remove dead code.
450
451 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
452
453 PR cli/7233
454 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
455 "fprintf_unfiltered (gdb_stdlog...)".
456
457 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
458
459 PR breakpoints/12526
460 * breakpoint.h (struct watchpoint): New fields val_bitpos and
461 val_bitsize.
462 * breakpoint.c (watch_command_1): Use these fields to retain
463 bitfield information.
464 (extract_bitfield_from_watchpoint_value): New function.
465 (watchpoint_check): Use it.
466 (update_watchpoint): Use it. Optimize the address and length of a
467 HW watchpoint pointing to a bitfield.
468 * value.h (unpack_value_bitfield): New prototype.
469 * value.c (unpack_value_bitfield): Make extern.
470
471 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
472
473 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
474 x86-dregs.o.
475 * gnu-nat.c (inf_threads): New function.
476 * gnu-nat.h (inf_threads_ftype): New typedef.
477 (inf_threads): New declaration.
478 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
479 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
480 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
481 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
482 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
483 (i386_gnu_dr_get_control): New functions.
484 (reg_addr): New structure.
485 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
486 i386 debugging register hooks.
487 * NEWS: Mention this.
488
489 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
490
491 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
492 vector data transfer instructions.
493 (arm_record_coproc_data_proc): Updated.
494
495 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
496
497 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
498 arm_record_exreg_ld_st_insn.
499 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
500 load/store insns.
501
502 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
503
504 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
505 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
506 processing instructions.
507
508 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
509
510 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
511 for advance SIMD struct ld/st insn.
512 (thumb2_record_decode_insn_handler): Replace stub handler with
513 thumb2_record_asimd_struct_ld_st.
514
515 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
516
517 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
518 for asimd, vfp and coprocessor insns.
519 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
520 and coprocessor insns.
521 (thumb2_record_coproc_insn): New function.
522 (thumb2_record_decode_insn_handler): Update coprocessor insns record
523 handlers.
524 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
525 opcode 110 insns.
526
527 2014-09-13 Doug Evans <xdje42@gmail.com>
528
529 * NEWS: Mention new "queue-signal" command.
530 * infcmd.c (queue_signal_command): New function.
531 (_initialize_infcmd): Add new queue-signal command.
532
533 2014-09-13 Doug Evans <xdje42@gmail.com>
534
535 * linux-nat.c (wait_lwp): Add debugging printf.
536 (linux_nat_wait_1): Ditto.
537
538 2014-09-12 Pedro Alves <palves@redhat.com>
539
540 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
541 (create_and_insert_solib_event_breakpoint): New functions.
542 * breakpoint.h (create_and_insert_solib_event_breakpoint)
543 (remove_solib_event_breakpoints_at_next_stop): New declarations.
544 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
545 (remove_dbx_link_breakpoint): Delete function.
546 (insert_dbx_link_bpt_in_file): Use
547 create_and_insert_solib_event_breakpoint instead of
548 deprecated_insert_raw_breakpoint.
549 (procfs_wait): Don't check whether we hit __dbx_link here.
550 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
551 here.
552 * solib-irix.c (base_breakpoint): Delete global.
553 (disable_break): Delete function.
554 (enable_break): Use create_solib_event_breakpoint
555 instead of deprecated_insert_raw_breakpoint.
556 (irix_solib_handle_event): New function.
557 (irix_solib_create_inferior_hook): Don't run the target or disable
558 the mapping-complete breakpoint here.
559 (_initialize_irix_solib): Install irix_solib_handle_event as
560 so_ops->handle_event hook.
561
562 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
563 Ulrich Weigand  <uweigand@de.ibm.com>
564
565 PR tdep/17379
566 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
567 instead of read_memory_unsigned_integer.
568
569 2014-09-12 Gary Benson <gbenson@redhat.com>
570
571 * nat/linux-waitpid.c: Include common-defs.h.
572 [GDBSERVER]: Add FIXME comment.
573 [!GDBSERVER]: Don't include defs.h or signal.h.
574 (linux_debug) [!GDBSERVER]: Remove empty block.
575
576 2014-09-12 Gary Benson <gbenson@redhat.com>
577
578 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
579 Don't include defs.h or server.h.
580
581 2014-09-12 Gary Benson <gbenson@redhat.com>
582
583 * nat/linux-btrace.c: Include common-defs.h.
584 Don't include defs.h, server.h or gdbthread.h.
585 * nat/linux-btrace.h (struct target_ops): New forward declaration.
586
587 2014-09-12 Gary Benson <gbenson@redhat.com>
588
589 * common/agent.c: Include common-defs.h.
590 Don't include defs.h or server.h.
591 * common/buffer.c: Likewise.
592 * common/common-debug.c: Likewise.
593 * common/common-utils.c: Likewise.
594 * common/errors.c: Likewise.
595 * common/filestuff.c: Likewise.
596 * common/format.c: Likewise.
597 * common/gdb_vecs.c: Likewise.
598 * common/print-utils.c: Likewise.
599 * common/ptid.c: Likewise.
600 * common/rsp-low.c: Likewise.
601 * common/signals.c: Likewise.
602 * common/vec.c: Likewise.
603 * common/xml-utils.c: Likewise.
604 * nat/linux-osdata.c: Likewise.
605 * nat/linux-procfs.c: Likewise.
606 * nat/linux-ptrace.c: Likewise.
607 * nat/mips-linux-watch.c: Likewise.
608 * target/waitstatus.c: Likewise.
609
610 2014-09-12 Tom Tromey <tromey@redhat.com>
611 Gary Benson <gbenson@redhat.com>
612
613 * common/common-regcache.h: New file.
614 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
615 * regcache.h: Include common-regcache.h.
616 (regcache_read_pc): Don't declare.
617 * regcache.c (get_thread_regcache_for_ptid): New function.
618 * nat/linux-btrace.c: Don't include regcache.h.
619 Include common-regcache.h.
620 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
621
622 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
623
624 * regcache.h (struct regset): Declare.
625
626 2014-09-11 Pedro Alves <palves@redhat.com>
627
628 PR gdb/17347
629 * main.c: Include "infrun.h".
630 (catch_command_errors, catch_command_errors_const): Wait for the
631 foreground command to complete.
632 * top.c (maybe_wait_sync_command_done): New function, factored out
633 from ...
634 (maybe_wait_sync_command_done): ... here.
635 * top.h (maybe_wait_sync_command_done): New declaration.
636
637 2014-09-11 Tom Tromey <tromey@redhat.com>
638 Gary Benson <gbenson@redhat.com>
639
640 * common/symbol.h: New file.
641 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
642 * minsyms.c (find_minimal_symbol_address): New function.
643 * common/agent.c: Include common/symbol.h.
644 [!GDBSERVER]: Don't include objfiles.h.
645 (agent_look_up_symbols): Use find_minimal_symbol_address.
646
647 2014-09-11 Gary Benson <gbenson@redhat.com>
648
649 * target/target.h (target_stop_ptid, target_continue_ptid):
650 Declare.
651 * target.c (target_stop_ptid, target_continue_ptid): New
652 functions.
653 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
654 (agent_run_command): Always use target_stop_ptid and
655 target_continue_ptid.
656
657 2014-09-11 Tom Tromey <tromey@redhat.com>
658 Gary Benson <gbenson@redhat.com>
659
660 * target/target.h: New file.
661 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
662 * target.h: Include target/target.h.
663 (target_read_memory, target_write_memory): Don't declare.
664 * target.c (target_read_uint32): New function.
665 * common/agent.c: Include target/target.h.
666 [!GDBSERVER]: Don't include target.h.
667 (helper_thread_id): Type changed to uint32_t.
668 (agent_get_helper_thread_id): Use target_read_uint32.
669 (agent_run_command): Always use target_read_memory and
670 target_write_memory.
671 (agent_capability): Type changed to uint32_t.
672 (agent_capability_check): Use target_read_uint32.
673
674 2014-09-11 Gary Benson <gbenson@redhat.com>
675
676 * common/common-debug.h (show_debug_regs): Declare.
677 * common/common-debug.c (show_debug_regs): Define.
678 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
679 all uses with show_debug_regs. Replace all uses that considered
680 debug_hw_points as a multi-value integer with straight boolean
681 uses.
682 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
683 with show_debug_regs.
684 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
685 all uses with show_debug_regs.
686 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
687 uses with show_debug_regs.
688
689 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
690
691 * findvar.c (address_from_register): Handle targets requiring
692 a special conversion routine even for plain pointer types.
693
694 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
695
696 * rs6000-nat.c (exec_one_dummy_insn): Remove.
697 (store_register): Do not call exec_one_dummy_insn.
698
699 2014-09-10 Joel Brobecker <brobecker@adacore.com>
700
701 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
702 dereference it first. Use value_enclosing_type instead of
703 value_type.
704 (ada_array_length): Likewise.
705
706 2014-09-10 Joel Brobecker <brobecker@adacore.com>
707
708 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
709 Adjust function implementation and documentation accordingly.
710 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
711 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
712 Update call to ada_value_ptr_subscript.
713
714 2014-09-10 Joel Brobecker <brobecker@adacore.com>
715
716 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
717 instead of VAL's type.
718
719 2014-09-10 Joel Brobecker <brobecker@adacore.com>
720
721 * amd64-linux-nat.c: Add <sys/uio.h> #include.
722
723 2014-09-09 Doug Evans <xdje42@gmail.com>
724
725 PR guile/17367
726 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
727 last parameter to pkg-config, not first.
728 * configure.ac: Pass --with-guile provided pkg-config path to
729 GDB_GUILE_PROGRAM_NAMES.
730 * configure: Regenerate.
731
732 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
733
734 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
735 Bertazi".
736
737 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
738
739 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
740 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
741 the list of sections determining GDB_OSABI_IRIX.
742
743 2014-09-09 James Hogan <james.hogan@imgtec.com>
744
745 * MAINTAINERS (Write After Approval): Add "James Hogan".
746
747 2014-09-09 James Hogan <james.hogan@imgtec.com>
748
749 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
750
751 2014-09-09 Joel Brobecker <brobecker@adacore.com>
752
753 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
754
755 2014-09-08 Doug Evans <xdje42@gmail.com>
756
757 PR 17247
758 * guile.c: #include <signal.h>.
759 (_initialize_guile): Block SIGCHLD while initializing Guile.
760
761 Replaces the following, which is reverted.
762
763 2014-07-26 Doug Evans <xdje42@gmail.com>
764
765 PR 17185
766 * configure.ac: Add check for header gc/gc.h.
767 Add check for function setenv.
768 * configure: Regenerate.
769 * config.in: Regenerate.
770 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
771
772 2014-09-08 Doug Evans <xdje42@gmail.com>
773
774 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
775 with named constant. Fix style of pointer comparison.
776 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
777
778 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
779
780 PR gdb/17035
781 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
782 decide whether we display the command on "show user".
783 * cli/cli-script.c (show_user_1): Only verify cmdlines after
784 printing command name.
785 * cli/cli-decode.h (cli_user_command_p): Declare new function.
786 * cli/cli-decode.c (cli_user_command_p): Create helper function
787 to verify whether cmd_list_element is a user-defined command.
788
789 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
790
791 PR python/17355
792 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
793 Fix goto out of TRY_CATCH.
794
795 2014-09-06 Doug Evans <xdje42@gmail.com>
796 Tom Tromey <tromey@redhat.com>
797
798 PR 15276
799 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
800 $_any_caller_matches.
801 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
802 * python/lib/gdb/function/caller_is.py: New file.
803
804 2014-09-06 Doug Evans <xdje42@gmail.com>
805
806 * infcmd.c (program_info): Fix typo.
807
808 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
809
810 PR gdb/17235
811 * stap-probe.c (stap_parse_single_operand): Delete unused variable
812 'number'. New variable 'has_digit'. Rewrite code to deal with
813 subexpressions on SDT probes.
814
815 2014-09-04 Pedro Alves <palves@redhat.com>
816
817 * c-exp.y (parse_number): Skip handling base-switching prefixes if
818 the input is only one character long.
819
820 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
821
822 PR fortran/17237
823 * f-valprint.c (f_val_print): Specify the correct print option to
824 use when printing integer values.
825
826 2014-09-04 Gary Benson <gbenson@redhat.com>
827
828 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
829 Remove code to cope with LWPs wrapped as PIDs.
830 Add assertions to ensure no wrapped LWPs are passed.
831
832 2014-09-04 Pedro Alves <palves@redhat.com>
833
834 * value.c (value_ranges_copy_adjusted): New function, factored out
835 from ...
836 (value_contents_copy_raw): ... here.
837 (unpack_value_bits_as_long_1): Rename back to ...
838 (unpack_bits_as_long): ... this. Remove 'original_value' and
839 'result' parameters. Change return type to LONGEST.
840 (unpack_value_bits_as_long): Delete.
841 (unpack_value_field_as_long_1): Delete.
842 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
843 (unpack_value_bitfield): New function.
844 (value_field_bitfield): Reimplement using unpack_value_bitfield.
845 (value_fetch_lazy): Use unpack_value_bitfield.
846 * value.h (unpack_value_bits_as_long): Delete declaration.
847
848 2014-09-03 Sasha Smundak <asmundak@google.com>
849
850 * python/py-frame.c (frapy_read_register): New function.
851
852 2014-09-03 James Hogan <james.hogan@imgtec.com>
853
854 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
855 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
856
857 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
858
859 PR python/16699
860 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
861 function.
862 (add_cmd): Set "completer_handle_brkchars" to NULL.
863 * cli/cli-decode.h (struct cmd_list_element)
864 <completer_handle_brkchars>: New field.
865 * command.h (completer_ftype_void): New typedef.
866 (set_cmd_completer_handle_brkchars): New prototype.
867 * completer.c (set_gdb_completion_word_break_characters): New
868 function.
869 (complete_line_internal): Call "completer_handle_brkchars"
870 callback from command.
871 * completer.h: Include "command.h".
872 (set_gdb_completion_word_break_characters): New prototype.
873 * python/py-cmd.c (cmdpy_completer_helper): New function.
874 (cmdpy_completer_handle_brkchars): New function.
875 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
876 (cmdpy_init): Set completer_handle_brkchars to
877 cmdpy_completer_handle_brkchars.
878
879 2014-09-03 Gary Benson <gbenson@redhat.com>
880
881 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
882 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
883 Loop conditions changed to equivalent form.
884 (struct x86_debug_reg_state): Updated dr_ref_count comment.
885 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
886 ALL_DEBUG_ADDRESS_REGISTERS.
887
888 2014-09-03 Joel Brobecker <brobecker@adacore.com>
889
890 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
891 description fix.
892
893 2014-09-02 Doug Evans <dje@google.com>
894
895 * typeprint.c (find_global_typedef): Fix comment.
896
897 2014-09-02 Gary Benson <gbenson@redhat.com>
898
899 * i386-nat.h: Renamed as...
900 * x86-nat.h: New file. All type, function and variable name
901 prefixes changed from "i386_" to "x86_". All references updated.
902 * i386-nat.c: Renamed as...
903 * x86-nat.c: New file. All type, function and variable name
904 prefixes changed from "i386_" to "x86_". All references updated.
905 * common/i386-xstate.h: Renamed as...
906 * common/x86-xstate.h: New file. All type, function and variable
907 name prefixes changed from "i386_" to "x86_". All references
908 updated.
909 * nat/i386-cpuid.h: Renamed as...
910 * nat/x86-cpuid.h: New file. All type, function and variable name
911 prefixes changed from "i386_" to "x86_". All references updated.
912 * nat/i386-gcc-cpuid.h: Renamed as...
913 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
914 name prefixes changed from "i386_" to "x86_". All references
915 updated.
916 * nat/i386-dregs.h: Renamed as...
917 * nat/x86-dregs.h: New file. All type, function and variable name
918 prefixes changed from "i386_" to "x86_". All references updated.
919 * nat/i386-dregs.c: Renamed as...
920 * nat/x86-dregs.c: New file. All type, function and variable name
921 prefixes changed from "i386_" to "x86_". All references updated.
922
923 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
924
925 * varobj.c (_initialize_varobj): Move to the end of file.
926
927 2014-08-29 Gary Benson <gbenson@redhat.com>
928
929 * common/common-exceptions.h: New file.
930 * common/common-exceptions.c: Likewise.
931 * Makefile.in (SFILES): Add common/common-exceptions.c.
932 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
933 (COMMON_OBS): Add common-exceptions.o.
934 (common-exceptions.o): New rule.
935 * exceptions.h (common-exceptions.h): Include.
936 (gdb_setjmp.h): Do not include.
937 (return_reason): Moved to common-exceptions.h.
938 (enum return_reason): Likewise.
939 (RETURN_MASK): Likewise.
940 (typedef return_mask): Likewise.
941 (enum errors): Likewise.
942 (struct gdb_exception): Likewise.
943 (exceptions_state_mc_init): Likewise.
944 (exceptions_state_mc_action_iter): Likewise.
945 (exceptions_state_mc_action_iter_1): Likewise.
946 (TRY_CATCH): Likewise.
947 (throw_exception): Likewise.
948 (throw_verror): Likewise.
949 (throw_vquit): Likewise.
950 (throw_error): Likewise.
951 (throw_quit): Likewise.
952 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
953 (enum catcher_action): Likewise.
954 (struct catcher): Likewise.
955 (current_catcher): Likewise.
956 (catcher_list_size): Likewise.
957 (exceptions_state_mc_init): Likewise.
958 (catcher_pop): Likewise.
959 (exceptions_state_mc): Likewise.
960 (exceptions_state_mc_action_iter): Likewise.
961 (exceptions_state_mc_action_iter_1): Likewise.
962 (throw_exception): Likewise.
963 (exception_messages): Likewise.
964 (exception_messages_size): Likewise.
965 (throw_it): Likewise.
966 (throw_verror): Likewise.
967 (throw_vquit): Likewise.
968 (throw_error): Likewise.
969 (throw_quit): Likewise.
970 (prepare_to_throw_exception): New function.
971
972 2014-08-29 Gary Benson <gbenson@redhat.com>
973
974 * common/gdb_setjmp.h: New file.
975 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
976 * configure.ac: Move sigsetjmp check...
977 * common/common.m4: ...here.
978 * configure: Regenerate.
979 * cp-support.c (SIGJMP_BUF): Delete.
980 (SIGSETJMP): Likewise.
981 (SIGLONGJMP): Likewise.
982 * exceptions.h (gdb_setjmp.h): Include.
983 (setjmp.h): Do not include.
984 (EXCEPTIONS_SIGJMP_BUF): Delete.
985 (EXCEPTIONS_SIGSETJMP): Likewise.
986 (EXCEPTIONS_SIGLONGJMP): Likewise.
987 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
988 from gdb_setjmp.h.
989 * exceptions.c: Likewise.
990
991 2014-08-29 Gary Benson <gbenson@redhat.com>
992
993 * cleanups.h: Moved to...
994 * common/cleanups.h: New file.
995 * cleanups.c: Moved to...
996 * common/cleanups.c: New file. Include common-defs.h and
997 cleanups.h. Do not include defs.h.
998 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
999 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1000 (cleanups.o): New rule.
1001
1002 2014-08-29 Gary Benson <gbenson@redhat.com>
1003
1004 * common/errors.h (internal_warning): New declaration.
1005 (internal_vwarning): Likewise.
1006 * common/errors.c (internal_warning): New function.
1007 * utils.h (internal_warning): Don't declare.
1008 (internal_vwarning): Likewise.
1009 * utils.c (internal_warning): Removed.
1010
1011 2014-08-29 Gary Benson <gbenson@redhat.com>
1012
1013 * main.c (captured_main): Use warning during startup.
1014 Prefix startup warning messages with command name.
1015
1016 2014-08-29 Gary Benson <gbenson@redhat.com>
1017
1018 * main.c (captured_main): Handle usage errors with error.
1019
1020 2014-08-29 Gary Benson <gbenson@redhat.com>
1021
1022 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1023 exit pair with a call to error. Wrap the message with _().
1024
1025 2014-08-29 Gary Benson <gbenson@redhat.com>
1026
1027 * main.c (captured_main): Replace a fprintf/exit
1028 pair with a call to error. Wrap the message with _().
1029
1030 2014-08-29 Gary Benson <gbenson@redhat.com>
1031
1032 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1033 pairs with calls to error. Wrap the message with _().
1034
1035 2014-08-29 Gary Benson <gbenson@redhat.com>
1036
1037 * utils.c (vwarning): Protect calls to target_terminal_ours
1038 and wrap_here.
1039
1040 2014-08-29 Gary Benson <gbenson@redhat.com>
1041
1042 * exceptions.c (print_flush): Protect calls to
1043 target_terminal_ours and wrap_here.
1044
1045 2014-08-29 Gary Benson <gbenson@redhat.com>
1046
1047 * utils.h (filtered_printing_initialized): New declaration.
1048 * utils.c (abort_with_message): New function.
1049 (internal_vproblem): Use abort_with_message for first level
1050 recursive internal problems, and if gdb_stderr is not set up.
1051 Protect calls to target_terminal_ours, begin_line and query.
1052
1053 2014-08-28 Doug Evans <dje@google.com>
1054
1055 * symtab.c (in_prologue): Move definition to better spot.
1056 (skip_prologue_using_sal): Ditto.
1057
1058 2014-08-28 Doug Evans <dje@google.com>
1059
1060 * symtab.c (find_function_start_sal): Move definition to better spot.
1061
1062 2014-08-28 Yao Qi <yao@codesourcery.com>
1063
1064 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1065 found_stack_adjust in forward scan. Remove condition check
1066 on found_stack_adjust which is always true. Indent the code.
1067
1068 2014-08-28 Yao Qi <yao@codesourcery.com>
1069
1070 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1071 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1072 (dwarf_decode_lines): Remove argument
1073 want_line_info. Remove condition check on want_line_info.
1074 Callers update.
1075
1076 2014-08-27 Doug Evans <dje@google.com>
1077
1078 * dwarf2read.c (dwarf_record_line): Fix typo.
1079
1080 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1081
1082 * target.h (struct target_ops::to_terminal_save_ours): Remove
1083 declaration.
1084 (target_terminal_save_ours): Remove macro.
1085 * target-delegates.c: Regenerate.
1086 * inf-child.c (inf_child_target): Don't set the nonexistent
1087 field to_terminal_save_ours.
1088 * inferior.h (child_terminal_save_ours): Remove declaration.
1089 * terminal.h (gdb_save_tty_state): New declaration.
1090 * inflow.c (child_terminal_save_ours): Rename to ...
1091 (gdb_save_tty_state): ... this.
1092 * tui/tui.c: Include terminal.h.
1093 (tui_enable): Use gdb_save_tty_state instead of
1094 target_terminal_save_ours.
1095 (tui_disable): Likewise.
1096
1097 2014-08-25 Doug Evans <dje@google.com>
1098
1099 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1100 Pass NULL instead of 0 for context pointer.
1101
1102 2014-08-25 Yao Qi <yao@codesourcery.com>
1103
1104 * dwarf2read.c: Fix grammatical error.
1105
1106 2014-08-24 Yao Qi <yao@codesourcery.com>
1107
1108 * dwarf2read.c (scan_partial_symbols): Update comments.
1109 Rename argument 'need_pc' with 'set_addrmap'.
1110 (add_partial_namespace): Rename argument 'need_pc' with
1111 'set_addrmap'.
1112 (add_partial_module): Likewise.
1113 (add_partial_subprogram): Likewise. Update comments.
1114 (dwarf2_name): Fix typo.
1115
1116 2014-08-22 Doug Evans <dje@google.com>
1117
1118 PR 17276
1119 * dwarf2read.c (dwarf_record_line_p): New function.
1120 (dwarf_decode_lines_1): Ignore subsequent line number entries
1121 for the same line if any entry had a non-zero discriminator.
1122
1123 2014-08-22 Doug Evans <dje@google.com>
1124
1125 * buildsym.h (record_line_ftype): New typedef.
1126 (record_line): Use it.
1127 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1128 (dwarf_decode_lines_1): Call them.
1129
1130 2014-08-22 Yao Qi <yao@codesourcery.com>
1131
1132 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1133 (ctf_end): Remove code.
1134
1135 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1136
1137 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1138 (linux_make_corefile_notes): call update_thread_list, protected against
1139 exceptions.
1140
1141 2014-08-21 Pedro Alves <palves@redhat.com>
1142
1143 * infcmd.c (attach_command): Remove comment.
1144
1145 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1146
1147 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1148 unsigned LONGEST to ULONGEST.
1149
1150 2014-08-20 Pedro Alves <palves@redhat.com>
1151
1152 * Makefile.in (check-read1): New rule.
1153
1154 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1155
1156 * value.c (value_from_contents_and_address): Strip resolved_type's
1157 typedef layers before checking its TYPE_DATA_LOCATION.
1158
1159 2014-08-20 Pedro Alves <palves@redhat.com>
1160
1161 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1162
1163 2014-08-20 Yao Qi <yao@codesourcery.com>
1164
1165 * amd64-tdep.c (amd64_classify): Add a blank line after the
1166 example. Move "*/" to a new line.
1167 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1168 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1169 * dwarf2read.c (psymtab_include_file_name): Likewise.
1170
1171 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1172 Pedro Alves <palves@redhat.com>
1173
1174 PR symtab/14604
1175 PR symtab/14605
1176 * ada-lang.c (coerce_unspec_val_to_type): Use
1177 value_contents_copy_raw.
1178 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1179 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1180 * cp-valprint.c (cp_print_value_fields): Let the common printing
1181 code handle optimized out values.
1182 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1183 * d-valprint.c (dynamic_array_type): Use
1184 value_bits_any_optimized_out.
1185 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1186 check_any_valid fields.
1187 (check_pieced_value_bits): Delete and inline ...
1188 (check_pieced_synthetic_pointer): ... here.
1189 (check_pieced_value_validity): Delete.
1190 (check_pieced_value_invalid): Delete.
1191 (pieced_value_funcs): Remove check_validity and check_any_valid
1192 fields.
1193 (read_pieced_value): Use mark_value_bits_optimized_out.
1194 (write_pieced_value): Switch to use
1195 mark_value_bytes_optimized_out.
1196 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1197 of assuming the whole value is optimized out.
1198 * findvar.c (read_frame_register_value): Remove special handling
1199 of optimized out registers.
1200 (value_from_register): Use mark_value_bytes_optimized_out.
1201 * frame-unwind.c (frame_unwind_got_optimized): Use
1202 mark_value_bytes_optimized_out.
1203 * jv-valprint.c (java_value_print): Adjust.
1204 (java_print_value_fields): Let the common printing code handle
1205 optimized out values.
1206 * mips-tdep.c (mips_print_register): Remove special handling of
1207 optimized out registers.
1208 * opencl-lang.c (lval_func_check_validity): Delete.
1209 (lval_func_check_any_valid): Delete.
1210 (opencl_value_funcs): Remove check_validity and check_any_valid
1211 fields.
1212 * p-valprint.c (pascal_object_print_value_fields): Let the common
1213 printing code handle optimized out values.
1214 * stack.c (read_frame_arg): Remove special handling of optimized
1215 out values. Fetch both VAL and ENTRYVAL before comparing
1216 contents. Adjust to value_available_contents_eq rename.
1217 * valprint.c (valprint_check_validity)
1218 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1219 (val_print_array_elements): Adjust.
1220 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1221 (value_bits_any_optimized_out): New function.
1222 (value_entirely_covered_by_range_vector): New function, factored
1223 out from value_entirely_unavailable.
1224 (value_entirely_unavailable): Reimplement.
1225 (value_entirely_optimized_out): New function.
1226 (insert_into_bit_range_vector): New function, factored out from
1227 mark_value_bits_unavailable.
1228 (mark_value_bits_unavailable): Reimplement.
1229 (struct ranges_and_idx): New struct.
1230 (find_first_range_overlap_and_match): New function, factored out
1231 from value_available_contents_bits_eq.
1232 (value_available_contents_bits_eq): Rename to ...
1233 (value_contents_bits_eq): ... this. Check both unavailable
1234 contents and optimized out contents.
1235 (value_available_contents_eq): Rename to ...
1236 (value_contents_eq): ... this.
1237 (allocate_value_lazy): Remove reference to the old optimized_out
1238 boolean.
1239 (allocate_optimized_out_value): Use
1240 mark_value_bytes_optimized_out.
1241 (require_not_optimized_out): Adjust to check whether the
1242 optimized_out vec is empty.
1243 (ranges_copy_adjusted): New function, factored out from
1244 value_contents_copy_raw.
1245 (value_contents_copy_raw): Also copy the optimized out ranges.
1246 Assert the destination ranges aren't optimized out.
1247 (value_contents_copy): Update comment, remove call to
1248 require_not_optimized_out.
1249 (value_contents_equal): Adjust to check whether the optimized_out
1250 vec is empty.
1251 (set_value_optimized_out, value_optimized_out_const): Delete.
1252 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1253 New functions.
1254 (value_entirely_optimized_out, value_bits_valid): Delete.
1255 (value_copy): Take a VEC copy of the 'optimized_out' field.
1256 (value_primitive_field): Remove special handling of optimized out.
1257 (value_fetch_lazy): Assert that lazy values have no unavailable
1258 regions. Use value_bits_any_optimized_out. Remove some special
1259 handling for optimized out values.
1260 * value.h: Add intro comment about <optimized out> and
1261 <unavailable>.
1262 (struct lval_funcs): Remove check_validity and check_any_valid
1263 fields.
1264 (set_value_optimized_out, value_optimized_out_const): Remove.
1265 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1266 New declarations.
1267 (value_bits_any_optimized_out): New declaration.
1268 (value_bits_valid): Delete declaration.
1269 (value_available_contents_eq): Rename to ...
1270 (value_contents_eq): ... this, and extend comments.
1271
1272 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1273
1274 Fix -fsanitize=address on unreadable inferior strings.
1275 * valprint.c (val_print_string): Fix access before BUFFER.
1276
1277 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1278
1279 * target.c (target_struct_size): Remove.
1280 (target_struct_allocsize): Remove.
1281 (DEFAULT_ALLOCSIZE): Remove.
1282 (target_ops_p): New typedef.
1283 (DEF_VEC_P (target_ops_p)): New vector type.
1284 (target_structs): Change type to VEC (target_ops_p).
1285 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1286 (find_default_run_target): Rewrite for loop following changes to
1287 target_structs.
1288
1289 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1290
1291 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1292 Adjust code accordingly. Adjust function description comment.
1293
1294 2014-08-19 Yao Qi <yao@codesourcery.com>
1295
1296 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1297 types.
1298
1299 2014-08-19 Alan Modra <amodra@gmail.com>
1300
1301 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1302 * config.in: Regenerate.
1303 * configure: Regenerate.
1304
1305 2014-08-19 Tom Tromey <tromey@redhat.com>
1306 Gary Benson <gbenson@redhat.com>
1307
1308 * common/common-debug.h: New file.
1309 * common/common-debug.c: Likewise.
1310 * debug.c: Likewise.
1311 * Makefile.in (SFILES): Add common/common-debug.c.
1312 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1313 (COMMON_OBS): Add common-debug.o and debug.o.
1314 (common-debug.o): New rule.
1315 * common/common-defs.h: Include common-debug.h.
1316 * common/agent.c (debug_agent_printf): New function.
1317 (DEBUG_AGENT): Redefine.
1318 * nat/i386-dregs.c (debug_printf): Undefine.
1319
1320 2014-08-19 Gary Benson <gbenson@redhat.com>
1321
1322 * common/common-defs.h: Include print-utils.h.
1323 * utils.h: Do not include print-utils.h.
1324
1325 2014-08-19 Tom Tromey <tromey@redhat.com>
1326 Gary Benson <gbenson@redhat.com>
1327
1328 * common/common-types.h: New file.
1329 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1330 * common/common-defs.h: Include common-types.h.
1331 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1332 (ULONGEST): Remove.
1333
1334 2014-08-19 Tom Tromey <tromey@redhat.com>
1335 Gary Benson <gbenson@redhat.com>
1336
1337 * common/errors.h: New file.
1338 * common/errors.c: Likewise.
1339 * Makefile.in (SFILES): Add common/errors.c.
1340 (HFILES_NO_SRCDIR): Add common/errors.h.
1341 (COMMON_OBS): Add errors.o.
1342 (errors.o): New rule.
1343 * common/common-defs.h: Include errors.h.
1344 * utils.h (perror_with_name, error, verror, warning, vwarning):
1345 Don't declare.
1346 * common/common-utils.h: (malloc_failure, internal_error):
1347 Likewise.
1348
1349 2014-08-19 Gary Benson <gbenson@redhat.com>
1350
1351 * utils.c (internal_vproblem): Always print the message.
1352
1353 2014-08-18 Doug Evans <dje@google.com>
1354
1355 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1356
1357 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1358
1359 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1360 Return 0 if TYPE is dynamic.
1361 (print_range): Add handling of dynamic ranges.
1362
1363 2014-08-18 Keven Boell <keven.boell@intel.com>
1364 Joel Brobecker <brobecker@adacore.com>
1365
1366 * gdbtypes.h (struct main_type): Add field "data_location".
1367 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1368 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1369 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1370 a dynamic data location.
1371 (resolve_dynamic_type): Add DW_AT_data_location handling.
1372 (copy_recursive, copy_type): Copy the data_location information
1373 when present.
1374 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1375 * value.c (value_from_contents_and_address): Add
1376 DW_AT_data_location handling.
1377
1378 2014-08-18 Keven Boell <keven.boell@intel.com>
1379 Joel Brobecker <brobecker@adacore.com>
1380
1381 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1382 field "get_object_address".
1383 * dwarf2expr.c (execute_stack_op): Add handling for
1384 DW_OP_push_object_address.
1385 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1386 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1387 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1388 (dwarf_expr_get_obj_addr): New function.
1389 (dwarf_expr_ctx_funcs): Add get_object_address field.
1390 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1391 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1392 (dwarf2_evaluate_property): Add parameter "address". Use it.
1393 (needs_get_obj_addr): New function.
1394 (needs_frame_ctx_funcs): Add get_object_address field.
1395 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1396 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1397 (resolve_dynamic_array): Likewise.
1398
1399 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1400
1401 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1402 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1403 fixed value for records and unions for which some GNAT encodings
1404 are present.
1405
1406 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1407
1408 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1409 rewrite to avoid "else if" and "else" constructs. Should be
1410 a no-op in practice.
1411
1412 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1413
1414 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1415 of lexical block.
1416
1417 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1418
1419 PR c++/17132
1420 * eval.c: Update all calls to find_overload_match.
1421 * valarith.c: Likewise.
1422 (value_user_defined_cpp_op, value_user_defined_op): New
1423 argument NOSIDE. Update all callers.
1424 * valops.c (find_overload_match): New argument NOSIDE.
1425 * value.h (find_overload_match): Update signature.
1426
1427 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1428
1429 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1430 'items' methods instead of 'iteritems' method on dictionaries.
1431
1432 2014-08-15 Doug Evans <dje@google.com>
1433
1434 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1435 closer to use.
1436
1437 2014-08-15 Doug Evans <dje@google.com>
1438
1439 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1440
1441 2014-08-15 Doug Evans <dje@google.com>
1442
1443 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1444
1445 2014-08-15 Doug Evans <dje@google.com>
1446
1447 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1448 unused.
1449
1450 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1451
1452 * dcache.h: Include target.h, to avoid compile time warnings.
1453
1454 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1455
1456 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1457 frame_info" partial declaration.
1458 * gdbarch.h: Regenerate.
1459
1460 2014-08-15 Yao Qi <yao@codesourcery.com>
1461
1462 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1463 Add parameter 'decode_for_pst_p'. Callers update.
1464
1465 2014-08-13 Yao Qi <yao@codesourcery.com>
1466
1467 PR build/17104
1468 * configure.ac: Use local variable 'pos'.
1469 * configure: Regenerated.
1470
1471 2014-08-11 Doug Evans <dje@google.com>
1472
1473 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1474 message, it is redundant with "Reading symbols from ..." message.
1475
1476 2014-08-10 Doug Evans <xdje42@gmail.com>
1477
1478 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1479
1480 2014-08-09 Yao Qi <yao@codesourcery.com>
1481
1482 PR remote/9053
1483 * remote.c (remote_xfer_partial): Remove dead code.
1484
1485 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1486
1487 * ia64-linux-tdep.c: Include "regset.h".
1488 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1489 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1490 (ia64_linux_supply_fpregset): New function.
1491 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1492 (ia64_linux_regset_from_core_section): New function.
1493 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1494 method.
1495
1496 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1497
1498 * m68klinux-tdep.c: Include "regset.h".
1499 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1500 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1501 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1502 (m68k_linux_regset_from_core_section): New function.
1503 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1504 method.
1505
1506 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1507
1508 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1509 function. Move logic to...
1510 (tilegx_linux_regmap): ... this new register map.
1511 (tilegx_linux_regset): Refer to register map, replace supply
1512 method by regcache_supply_regset, and add collect method.
1513 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1514 TILEGX_FIRST_EASY_REGNUM.
1515
1516 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1517
1518 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1519 that calls regcache_supply_regset and handles the EPC register
1520 separately. Move main logic to...
1521 (score7_linux_gregmap): ... this new register map.
1522 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1523 (score7_linux_gregset): Refer to register map. Add collect method.
1524 (score7_linux_regset_from_core_section): Replace
1525 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1526 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1527 (struct regset): Delete unused forward declaraction.
1528 (struct pt_regs): Delete structure definition.
1529 (elf_gregset_t): Delete typedef.
1530
1531 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1532
1533 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1534 (nios2_core_regset): Add collect method.
1535
1536 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1537
1538 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1539 platform-independent and don't write to read-only input buffer.
1540 (m32r_linux_collect_gregset): New function.
1541 (m32r_linux_gregset): Add collect method.
1542
1543 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1544
1545 * hppa-linux-tdep.c (greg_map): Rename to...
1546 (hppa_linux_gregmap): ... this. Also convert to
1547 regcache_map_entry format.
1548 (hppa_linux_supply_regset): Delete function.
1549 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1550 (hppa_linux_fpregmap): ... this new register map.
1551 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1552 register map, replace supply method by regcache_supply_regset, and
1553 add collect method regcache_collect_regset.
1554
1555 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1556
1557 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1558 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1559 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1560 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1561 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1562 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1563 (frv_linux_supply_gregset): Replace main logic by call to
1564 regcache_supply_regset, but keep clearing gr32-gr63.
1565 (frv_linux_supply_fpregset): Delete function.
1566 (frv_linux_gregset): Refer to appropriate register map and add
1567 regcache_collect_regset as the collect method.
1568 (frv_linux_fpregset): Likewise. Also exchange the supply method
1569 by regcache_supply_regset.
1570
1571 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1572
1573 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1574 by call to alpha_supply_int_regs.
1575 (alpha_linux_collect_gregset): New function.
1576 (alpha_linux_supply_fpregset): Replace logic by call to
1577 alpha_supply_fp_regs.
1578 (alpha_linux_collect_fpregset): New function.
1579 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1580
1581 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1582
1583 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1584 by call to regcache_collect_regset.
1585 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1586 instead of aarch64_linux_supply_gregset/_fpregset.
1587 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1588 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1589 header file instead.
1590 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1591 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1592 functions. Move logic to ...
1593 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1594 register maps.
1595 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1596 refer to new register maps, replace *_regset_from_core by
1597 regcache_supply_regset, and also use regcache_collect_regset.
1598 * aarch64-linux-tdep.h: Include "regset.h".
1599 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1600 Delete prototypes.
1601 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1602 macros, moved from C source file.
1603 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1604 variable declarations.
1605
1606 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1607
1608 * s390-linux-nat.c: Include "regset.h".
1609 (regmap_gregset): Delete macro.
1610 (s390_64_regmap_gregset): New register map for
1611 regcache_supply/_collect_regset.
1612 (s390_64_gregset): New regset.
1613 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1614 (regmap_fpregset): Delete macro.
1615 (s390_native_supply, s390_native_collect): Delete functions.
1616 (supply_gregset, fill_gregset): Replace s390-specific regmap
1617 handling by a call to regcache_supply/_collect_regset.
1618 (supply_fpregset, fill_fpregset): Call regcache_supply/
1619 _collect_regset instead of s390_native_supply/_collect.
1620 (fetch_regset, store_regset): Likewise. Also change the last
1621 parameter to a regset instead of a regmap.
1622 (s390_linux_fetch_inferior_registers)
1623 (390_linux_store_inferior_registers): Adjust last parameter in
1624 calls to fetch_regset and store_regset.
1625 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1626 (s390_gregmap): ... this. Also make static const and convert to
1627 regcache_map_entry format.
1628 (s390x_regmap_gregset): Delete.
1629 (s390_regmap_fpregset): Rename to...
1630 (s390_fpregmap): ... this. Make static const and convert to
1631 regcache_map_entry format.
1632 (s390_regmap_upper, s390_regmap_last_break)
1633 (s390x_regmap_last_break, s390_regmap_system_call)
1634 (s390_regmap_tdb): Likewise.
1635 (s390_supply_regset, s390_collect_regset): Remove functions.
1636 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1637 s390_supply_regset.
1638 (s390_gregset, s390_fpregset, s390_upper_regset)
1639 (s390_last_break_regset, s390x_last_break_regset)
1640 (s390_system_call_regset, s390_tdb_regset): Make global and
1641 replace s390_supply/_collect_regset by regcache_supply/
1642 _collect_regset.
1643 (s390x_gregset): Delete.
1644 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1645 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1646 (s390_regmap_fpregset, s390_regmap_last_break)
1647 (s390x_regmap_last_break, s390_regmap_system_call)
1648 (s390_regmap_tdb): Delete global variable declarations.
1649 (s390_gregset, s390_fpregset, s390_last_break_regset)
1650 (s390x_last_break_regset, s390_system_call_regset)
1651 (s390_tdb_regset): New global variable declarations.
1652
1653 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1654
1655 * regcache.c: Include "regset.h".
1656 (regcache_transfer_regset): New local function.
1657 (regcache_supply_regset, regcache_collect_regset): New functions.
1658 * regcache.h (struct regcache_map_entry): New structure.
1659 (REGCACHE_MAP_SKIP): New enum value.
1660 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1661
1662 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1663
1664 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1665 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1666 (ppc_linux_collect_gregset ): Likewise.
1667 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1668 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1669 (ppc_collect_vrregset): Likewise.
1670 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1671 Likewise.
1672
1673 2014-08-07 Yao Qi <yao@codesourcery.com>
1674
1675 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1676 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1677 * remote.c (remote_read_bytes): Likewise.
1678
1679 2014-08-07 Yao Qi <yao@codesourcery.com>
1680
1681 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1682
1683 2014-08-07 Yao Qi <yao@codesourcery.com>
1684
1685 PR remote/17230
1686 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1687 TARGET_XFER_OK instead of 0.
1688
1689 2014-08-07 Gary Benson <gbenson@redhat.com>
1690
1691 * common/common-defs.h: Include errno.h.
1692 * defs.h: Do not include errno.h.
1693 * ada-typeprint.c: Likewise.
1694 * c-typeprint.c: Likewise.
1695 * core-regset.c: Likewise.
1696 * corefile.c: Likewise.
1697 * corelow.c: Likewise.
1698 * event-loop.c: Likewise.
1699 * f-typeprint.c: Likewise.
1700 * gnu-nat.c: Likewise.
1701 * go32-nat.c: Likewise.
1702 * i386gnu-nat.c: Likewise.
1703 * m2-typeprint.c: Likewise.
1704 * nat/linux-btrace.c: Likewise.
1705 * p-typeprint.c: Likewise.
1706 * procfs.c: Likewise.
1707 * remote-sim.c: Likewise.
1708 * rs6000-nat.c: Likewise.
1709 * target.c: Likewise.
1710 * typeprint.c: Likewise.
1711 * ui-file.c: Likewise.
1712 * valops.c: Likewise.
1713 * valprint.c: Likewise.
1714
1715 2014-08-07 Gary Benson <gbenson@redhat.com>
1716
1717 * common/common-defs.h: Include string.h.
1718 * aarch64-tdep.c: Do not include string.h.
1719 * ada-exp.y: Likewise.
1720 * ada-lang.c: Likewise.
1721 * ada-lex.l: Likewise.
1722 * ada-typeprint.c: Likewise.
1723 * ada-valprint.c: Likewise.
1724 * aix-thread.c: Likewise.
1725 * alpha-linux-tdep.c: Likewise.
1726 * alpha-mdebug-tdep.c: Likewise.
1727 * alpha-nat.c: Likewise.
1728 * alpha-osf1-tdep.c: Likewise.
1729 * alpha-tdep.c: Likewise.
1730 * alphanbsd-tdep.c: Likewise.
1731 * amd64-dicos-tdep.c: Likewise.
1732 * amd64-linux-tdep.c: Likewise.
1733 * amd64-nat.c: Likewise.
1734 * amd64-sol2-tdep.c: Likewise.
1735 * amd64fbsd-tdep.c: Likewise.
1736 * amd64obsd-tdep.c: Likewise.
1737 * arch-utils.c: Likewise.
1738 * arm-linux-nat.c: Likewise.
1739 * arm-linux-tdep.c: Likewise.
1740 * arm-tdep.c: Likewise.
1741 * arm-wince-tdep.c: Likewise.
1742 * armbsd-tdep.c: Likewise.
1743 * armnbsd-nat.c: Likewise.
1744 * armnbsd-tdep.c: Likewise.
1745 * armobsd-tdep.c: Likewise.
1746 * avr-tdep.c: Likewise.
1747 * ax-gdb.c: Likewise.
1748 * ax-general.c: Likewise.
1749 * bcache.c: Likewise.
1750 * bfin-tdep.c: Likewise.
1751 * breakpoint.c: Likewise.
1752 * build-id.c: Likewise.
1753 * buildsym.c: Likewise.
1754 * c-exp.y: Likewise.
1755 * c-lang.c: Likewise.
1756 * c-typeprint.c: Likewise.
1757 * c-valprint.c: Likewise.
1758 * charset.c: Likewise.
1759 * cli-out.c: Likewise.
1760 * cli/cli-cmds.c: Likewise.
1761 * cli/cli-decode.c: Likewise.
1762 * cli/cli-dump.c: Likewise.
1763 * cli/cli-interp.c: Likewise.
1764 * cli/cli-logging.c: Likewise.
1765 * cli/cli-script.c: Likewise.
1766 * cli/cli-setshow.c: Likewise.
1767 * cli/cli-utils.c: Likewise.
1768 * coffread.c: Likewise.
1769 * common/agent.c: Likewise.
1770 * common/buffer.c: Likewise.
1771 * common/buffer.h: Likewise.
1772 * common/common-utils.c: Likewise.
1773 * common/filestuff.c: Likewise.
1774 * common/filestuff.c: Likewise.
1775 * common/format.c: Likewise.
1776 * common/print-utils.c: Likewise.
1777 * common/rsp-low.c: Likewise.
1778 * common/signals.c: Likewise.
1779 * common/vec.h: Likewise.
1780 * common/xml-utils.c: Likewise.
1781 * core-regset.c: Likewise.
1782 * corefile.c: Likewise.
1783 * corelow.c: Likewise.
1784 * cp-abi.c: Likewise.
1785 * cp-name-parser.y: Likewise.
1786 * cp-support.c: Likewise.
1787 * cp-valprint.c: Likewise.
1788 * cris-tdep.c: Likewise.
1789 * d-exp.y: Likewise.
1790 * darwin-nat.c: Likewise.
1791 * dbxread.c: Likewise.
1792 * dcache.c: Likewise.
1793 * demangle.c: Likewise.
1794 * dicos-tdep.c: Likewise.
1795 * disasm.c: Likewise.
1796 * doublest.c: Likewise.
1797 * dsrec.c: Likewise.
1798 * dummy-frame.c: Likewise.
1799 * dwarf2-frame.c: Likewise.
1800 * dwarf2loc.c: Likewise.
1801 * dwarf2read.c: Likewise.
1802 * elfread.c: Likewise.
1803 * environ.c: Likewise.
1804 * eval.c: Likewise.
1805 * event-loop.c: Likewise.
1806 * exceptions.c: Likewise.
1807 * exec.c: Likewise.
1808 * expprint.c: Likewise.
1809 * f-exp.y: Likewise.
1810 * f-lang.c: Likewise.
1811 * f-typeprint.c: Likewise.
1812 * f-valprint.c: Likewise.
1813 * fbsd-nat.c: Likewise.
1814 * findcmd.c: Likewise.
1815 * findvar.c: Likewise.
1816 * fork-child.c: Likewise.
1817 * frame.c: Likewise.
1818 * frv-linux-tdep.c: Likewise.
1819 * frv-tdep.c: Likewise.
1820 * gdb.c: Likewise.
1821 * gdb_bfd.c: Likewise.
1822 * gdbarch.c: Likewise.
1823 * gdbarch.sh: Likewise.
1824 * gdbtypes.c: Likewise.
1825 * gnu-nat.c: Likewise.
1826 * gnu-v2-abi.c: Likewise.
1827 * gnu-v3-abi.c: Likewise.
1828 * go-exp.y: Likewise.
1829 * go-lang.c: Likewise.
1830 * go32-nat.c: Likewise.
1831 * guile/guile.c: Likewise.
1832 * guile/scm-auto-load.c: Likewise.
1833 * hppa-hpux-tdep.c: Likewise.
1834 * hppa-linux-nat.c: Likewise.
1835 * hppanbsd-tdep.c: Likewise.
1836 * hppaobsd-tdep.c: Likewise.
1837 * i386-cygwin-tdep.c: Likewise.
1838 * i386-dicos-tdep.c: Likewise.
1839 * i386-linux-tdep.c: Likewise.
1840 * i386-nto-tdep.c: Likewise.
1841 * i386-sol2-tdep.c: Likewise.
1842 * i386-tdep.c: Likewise.
1843 * i386bsd-tdep.c: Likewise.
1844 * i386gnu-nat.c: Likewise.
1845 * i386nbsd-tdep.c: Likewise.
1846 * i386obsd-tdep.c: Likewise.
1847 * i387-tdep.c: Likewise.
1848 * ia64-libunwind-tdep.c: Likewise.
1849 * ia64-linux-nat.c: Likewise.
1850 * inf-child.c: Likewise.
1851 * inf-ptrace.c: Likewise.
1852 * inf-ttrace.c: Likewise.
1853 * infcall.c: Likewise.
1854 * infcmd.c: Likewise.
1855 * inflow.c: Likewise.
1856 * infrun.c: Likewise.
1857 * interps.c: Likewise.
1858 * iq2000-tdep.c: Likewise.
1859 * irix5-nat.c: Likewise.
1860 * jv-exp.y: Likewise.
1861 * jv-lang.c: Likewise.
1862 * jv-typeprint.c: Likewise.
1863 * jv-valprint.c: Likewise.
1864 * language.c: Likewise.
1865 * linux-fork.c: Likewise.
1866 * linux-nat.c: Likewise.
1867 * lm32-tdep.c: Likewise.
1868 * m2-exp.y: Likewise.
1869 * m2-typeprint.c: Likewise.
1870 * m32c-tdep.c: Likewise.
1871 * m32r-linux-nat.c: Likewise.
1872 * m32r-linux-tdep.c: Likewise.
1873 * m32r-rom.c: Likewise.
1874 * m32r-tdep.c: Likewise.
1875 * m68hc11-tdep.c: Likewise.
1876 * m68k-tdep.c: Likewise.
1877 * m68kbsd-tdep.c: Likewise.
1878 * m68klinux-nat.c: Likewise.
1879 * m68klinux-tdep.c: Likewise.
1880 * m88k-tdep.c: Likewise.
1881 * machoread.c: Likewise.
1882 * macrocmd.c: Likewise.
1883 * main.c: Likewise.
1884 * mdebugread.c: Likewise.
1885 * mem-break.c: Likewise.
1886 * memattr.c: Likewise.
1887 * memory-map.c: Likewise.
1888 * mep-tdep.c: Likewise.
1889 * mi/mi-cmd-break.c: Likewise.
1890 * mi/mi-cmd-disas.c: Likewise.
1891 * mi/mi-cmd-env.c: Likewise.
1892 * mi/mi-cmd-stack.c: Likewise.
1893 * mi/mi-cmd-var.c: Likewise.
1894 * mi/mi-cmds.c: Likewise.
1895 * mi/mi-console.c: Likewise.
1896 * mi/mi-getopt.c: Likewise.
1897 * mi/mi-interp.c: Likewise.
1898 * mi/mi-main.c: Likewise.
1899 * mi/mi-parse.c: Likewise.
1900 * microblaze-rom.c: Likewise.
1901 * microblaze-tdep.c: Likewise.
1902 * mingw-hdep.c: Likewise.
1903 * minidebug.c: Likewise.
1904 * minsyms.c: Likewise.
1905 * mips-irix-tdep.c: Likewise.
1906 * mips-linux-tdep.c: Likewise.
1907 * mips-tdep.c: Likewise.
1908 * mips64obsd-tdep.c: Likewise.
1909 * mipsnbsd-tdep.c: Likewise.
1910 * mipsread.c: Likewise.
1911 * mn10300-linux-tdep.c: Likewise.
1912 * mn10300-tdep.c: Likewise.
1913 * monitor.c: Likewise.
1914 * moxie-tdep.c: Likewise.
1915 * mt-tdep.c: Likewise.
1916 * nat/linux-btrace.c: Likewise.
1917 * nat/linux-osdata.c: Likewise.
1918 * nat/linux-procfs.c: Likewise.
1919 * nat/linux-ptrace.c: Likewise.
1920 * nat/linux-waitpid.c: Likewise.
1921 * nbsd-tdep.c: Likewise.
1922 * nios2-linux-tdep.c: Likewise.
1923 * nto-procfs.c: Likewise.
1924 * nto-tdep.c: Likewise.
1925 * objc-lang.c: Likewise.
1926 * objfiles.c: Likewise.
1927 * opencl-lang.c: Likewise.
1928 * osabi.c: Likewise.
1929 * osdata.c: Likewise.
1930 * p-exp.y: Likewise.
1931 * p-lang.c: Likewise.
1932 * p-typeprint.c: Likewise.
1933 * parse.c: Likewise.
1934 * posix-hdep.c: Likewise.
1935 * ppc-linux-nat.c: Likewise.
1936 * ppc-sysv-tdep.c: Likewise.
1937 * ppcfbsd-tdep.c: Likewise.
1938 * ppcnbsd-tdep.c: Likewise.
1939 * ppcobsd-tdep.c: Likewise.
1940 * printcmd.c: Likewise.
1941 * procfs.c: Likewise.
1942 * prologue-value.c: Likewise.
1943 * python/py-auto-load.c: Likewise.
1944 * python/py-gdb-readline.c: Likewise.
1945 * ravenscar-thread.c: Likewise.
1946 * regcache.c: Likewise.
1947 * registry.c: Likewise.
1948 * remote-fileio.c: Likewise.
1949 * remote-m32r-sdi.c: Likewise.
1950 * remote-mips.c: Likewise.
1951 * remote-notif.c: Likewise.
1952 * remote-sim.c: Likewise.
1953 * remote.c: Likewise.
1954 * reverse.c: Likewise.
1955 * rs6000-aix-tdep.c: Likewise.
1956 * ser-base.c: Likewise.
1957 * ser-go32.c: Likewise.
1958 * ser-mingw.c: Likewise.
1959 * ser-pipe.c: Likewise.
1960 * ser-tcp.c: Likewise.
1961 * ser-unix.c: Likewise.
1962 * serial.c: Likewise.
1963 * sh-tdep.c: Likewise.
1964 * sh64-tdep.c: Likewise.
1965 * shnbsd-tdep.c: Likewise.
1966 * skip.c: Likewise.
1967 * sol-thread.c: Likewise.
1968 * solib-dsbt.c: Likewise.
1969 * solib-frv.c: Likewise.
1970 * solib-osf.c: Likewise.
1971 * solib-som.c: Likewise.
1972 * solib-spu.c: Likewise.
1973 * solib-target.c: Likewise.
1974 * solib.c: Likewise.
1975 * somread.c: Likewise.
1976 * source.c: Likewise.
1977 * sparc-nat.c: Likewise.
1978 * sparc-sol2-tdep.c: Likewise.
1979 * sparc-tdep.c: Likewise.
1980 * sparc64-tdep.c: Likewise.
1981 * sparc64fbsd-tdep.c: Likewise.
1982 * sparc64nbsd-tdep.c: Likewise.
1983 * sparcnbsd-tdep.c: Likewise.
1984 * spu-linux-nat.c: Likewise.
1985 * spu-multiarch.c: Likewise.
1986 * spu-tdep.c: Likewise.
1987 * stabsread.c: Likewise.
1988 * stack.c: Likewise.
1989 * std-regs.c: Likewise.
1990 * symfile.c: Likewise.
1991 * symmisc.c: Likewise.
1992 * symtab.c: Likewise.
1993 * target.c: Likewise.
1994 * thread.c: Likewise.
1995 * tilegx-linux-nat.c: Likewise.
1996 * tilegx-tdep.c: Likewise.
1997 * top.c: Likewise.
1998 * tracepoint.c: Likewise.
1999 * tui/tui-command.c: Likewise.
2000 * tui/tui-data.c: Likewise.
2001 * tui/tui-disasm.c: Likewise.
2002 * tui/tui-file.c: Likewise.
2003 * tui/tui-layout.c: Likewise.
2004 * tui/tui-out.c: Likewise.
2005 * tui/tui-regs.c: Likewise.
2006 * tui/tui-source.c: Likewise.
2007 * tui/tui-stack.c: Likewise.
2008 * tui/tui-win.c: Likewise.
2009 * tui/tui-windata.c: Likewise.
2010 * tui/tui-winsource.c: Likewise.
2011 * typeprint.c: Likewise.
2012 * ui-file.c: Likewise.
2013 * ui-out.c: Likewise.
2014 * user-regs.c: Likewise.
2015 * utils.c: Likewise.
2016 * v850-tdep.c: Likewise.
2017 * valarith.c: Likewise.
2018 * valops.c: Likewise.
2019 * valprint.c: Likewise.
2020 * value.c: Likewise.
2021 * varobj.c: Likewise.
2022 * vax-tdep.c: Likewise.
2023 * vaxnbsd-tdep.c: Likewise.
2024 * vaxobsd-tdep.c: Likewise.
2025 * windows-nat.c: Likewise.
2026 * xcoffread.c: Likewise.
2027 * xml-support.c: Likewise.
2028 * xstormy16-tdep.c: Likewise.
2029 * xtensa-linux-nat.c: Likewise.
2030
2031 2014-08-07 Gary Benson <gbenson@redhat.com>
2032
2033 * common/common-defs.h: Include gdb_assert.h.
2034 * aarch64-tdep.c: Do not include gdb_assert.h.
2035 * addrmap.c: Likewise.
2036 * aix-thread.c: Likewise.
2037 * alpha-linux-tdep.c: Likewise.
2038 * alpha-mdebug-tdep.c: Likewise.
2039 * alphanbsd-tdep.c: Likewise.
2040 * amd64-nat.c: Likewise.
2041 * amd64-tdep.c: Likewise.
2042 * amd64bsd-nat.c: Likewise.
2043 * amd64fbsd-nat.c: Likewise.
2044 * amd64fbsd-tdep.c: Likewise.
2045 * amd64nbsd-nat.c: Likewise.
2046 * amd64nbsd-tdep.c: Likewise.
2047 * amd64obsd-nat.c: Likewise.
2048 * amd64obsd-tdep.c: Likewise.
2049 * arch-utils.c: Likewise.
2050 * arm-tdep.c: Likewise.
2051 * armbsd-tdep.c: Likewise.
2052 * auxv.c: Likewise.
2053 * bcache.c: Likewise.
2054 * bfin-tdep.c: Likewise.
2055 * blockframe.c: Likewise.
2056 * breakpoint.c: Likewise.
2057 * bsd-kvm.c: Likewise.
2058 * bsd-uthread.c: Likewise.
2059 * buildsym.c: Likewise.
2060 * c-exp.y: Likewise.
2061 * c-lang.c: Likewise.
2062 * charset.c: Likewise.
2063 * cleanups.c: Likewise.
2064 * cli-out.c: Likewise.
2065 * cli/cli-decode.c: Likewise.
2066 * cli/cli-dump.c: Likewise.
2067 * cli/cli-logging.c: Likewise.
2068 * cli/cli-script.c: Likewise.
2069 * cli/cli-utils.c: Likewise.
2070 * coffread.c: Likewise.
2071 * common/common-utils.c: Likewise.
2072 * common/queue.h: Likewise.
2073 * common/signals.c: Likewise.
2074 * common/vec.h: Likewise.
2075 * complaints.c: Likewise.
2076 * completer.c: Likewise.
2077 * corelow.c: Likewise.
2078 * cp-abi.c: Likewise.
2079 * cp-name-parser.y: Likewise.
2080 * cp-namespace.c: Likewise.
2081 * cp-support.c: Likewise.
2082 * cris-tdep.c: Likewise.
2083 * dbxread.c: Likewise.
2084 * dictionary.c: Likewise.
2085 * doublest.c: Likewise.
2086 * dsrec.c: Likewise.
2087 * dummy-frame.c: Likewise.
2088 * dwarf2-frame-tailcall.c: Likewise.
2089 * dwarf2-frame.c: Likewise.
2090 * dwarf2expr.c: Likewise.
2091 * dwarf2loc.c: Likewise.
2092 * dwarf2read.c: Likewise.
2093 * eval.c: Likewise.
2094 * event-loop.c: Likewise.
2095 * exceptions.c: Likewise.
2096 * expprint.c: Likewise.
2097 * f-valprint.c: Likewise.
2098 * fbsd-nat.c: Likewise.
2099 * findvar.c: Likewise.
2100 * frame-unwind.c: Likewise.
2101 * frame.c: Likewise.
2102 * frv-tdep.c: Likewise.
2103 * gcore.c: Likewise.
2104 * gdb-dlfcn.c: Likewise.
2105 * gdb_bfd.c: Likewise.
2106 * gdbarch.c: Likewise.
2107 * gdbarch.sh: Likewise.
2108 * gdbtypes.c: Likewise.
2109 * gnu-nat.c: Likewise.
2110 * gnu-v3-abi.c: Likewise.
2111 * go-lang.c: Likewise.
2112 * guile/scm-exception.c: Likewise.
2113 * guile/scm-gsmob.c: Likewise.
2114 * guile/scm-lazy-string.c: Likewise.
2115 * guile/scm-math.c: Likewise.
2116 * guile/scm-pretty-print.c: Likewise.
2117 * guile/scm-safe-call.c: Likewise.
2118 * guile/scm-utils.c: Likewise.
2119 * guile/scm-value.c: Likewise.
2120 * h8300-tdep.c: Likewise.
2121 * hppa-hpux-nat.c: Likewise.
2122 * hppa-tdep.c: Likewise.
2123 * hppanbsd-tdep.c: Likewise.
2124 * hppaobsd-tdep.c: Likewise.
2125 * i386-darwin-nat.c: Likewise.
2126 * i386-darwin-tdep.c: Likewise.
2127 * i386-nto-tdep.c: Likewise.
2128 * i386-tdep.c: Likewise.
2129 * i386bsd-nat.c: Likewise.
2130 * i386fbsd-tdep.c: Likewise.
2131 * i386gnu-nat.c: Likewise.
2132 * i386nbsd-tdep.c: Likewise.
2133 * i386obsd-tdep.c: Likewise.
2134 * i387-tdep.c: Likewise.
2135 * ia64-libunwind-tdep.c: Likewise.
2136 * ia64-tdep.c: Likewise.
2137 * inf-ptrace.c: Likewise.
2138 * inf-ttrace.c: Likewise.
2139 * infcall.c: Likewise.
2140 * infcmd.c: Likewise.
2141 * infrun.c: Likewise.
2142 * inline-frame.c: Likewise.
2143 * interps.c: Likewise.
2144 * jv-lang.c: Likewise.
2145 * jv-typeprint.c: Likewise.
2146 * linux-fork.c: Likewise.
2147 * linux-nat.c: Likewise.
2148 * linux-thread-db.c: Likewise.
2149 * m32c-tdep.c: Likewise.
2150 * m32r-linux-nat.c: Likewise.
2151 * m32r-tdep.c: Likewise.
2152 * m68k-tdep.c: Likewise.
2153 * m68kbsd-nat.c: Likewise.
2154 * m68kbsd-tdep.c: Likewise.
2155 * m88k-tdep.c: Likewise.
2156 * machoread.c: Likewise.
2157 * macroexp.c: Likewise.
2158 * macrotab.c: Likewise.
2159 * maint.c: Likewise.
2160 * mdebugread.c: Likewise.
2161 * memory-map.c: Likewise.
2162 * mep-tdep.c: Likewise.
2163 * mi/mi-common.c: Likewise.
2164 * microblaze-tdep.c: Likewise.
2165 * mingw-hdep.c: Likewise.
2166 * mips-linux-nat.c: Likewise.
2167 * mips-linux-tdep.c: Likewise.
2168 * mips-tdep.c: Likewise.
2169 * mips64obsd-tdep.c: Likewise.
2170 * mipsnbsd-tdep.c: Likewise.
2171 * mn10300-linux-tdep.c: Likewise.
2172 * mn10300-tdep.c: Likewise.
2173 * moxie-tdep.c: Likewise.
2174 * mt-tdep.c: Likewise.
2175 * nat/linux-btrace.c: Likewise.
2176 * nat/linux-osdata.c: Likewise.
2177 * nat/linux-ptrace.c: Likewise.
2178 * nat/mips-linux-watch.c: Likewise.
2179 * nios2-linux-tdep.c: Likewise.
2180 * nios2-tdep.c: Likewise.
2181 * objc-lang.c: Likewise.
2182 * objfiles.c: Likewise.
2183 * obsd-nat.c: Likewise.
2184 * opencl-lang.c: Likewise.
2185 * osabi.c: Likewise.
2186 * parse.c: Likewise.
2187 * ppc-linux-nat.c: Likewise.
2188 * ppc-sysv-tdep.c: Likewise.
2189 * ppcfbsd-nat.c: Likewise.
2190 * ppcfbsd-tdep.c: Likewise.
2191 * ppcnbsd-nat.c: Likewise.
2192 * ppcnbsd-tdep.c: Likewise.
2193 * ppcobsd-nat.c: Likewise.
2194 * ppcobsd-tdep.c: Likewise.
2195 * printcmd.c: Likewise.
2196 * procfs.c: Likewise.
2197 * prologue-value.c: Likewise.
2198 * psymtab.c: Likewise.
2199 * python/py-lazy-string.c: Likewise.
2200 * python/py-value.c: Likewise.
2201 * regcache.c: Likewise.
2202 * reggroups.c: Likewise.
2203 * registry.c: Likewise.
2204 * remote-sim.c: Likewise.
2205 * remote.c: Likewise.
2206 * rs6000-aix-tdep.c: Likewise.
2207 * rs6000-tdep.c: Likewise.
2208 * s390-linux-tdep.c: Likewise.
2209 * score-tdep.c: Likewise.
2210 * ser-base.c: Likewise.
2211 * ser-mingw.c: Likewise.
2212 * sh-tdep.c: Likewise.
2213 * sh64-tdep.c: Likewise.
2214 * solib-darwin.c: Likewise.
2215 * solib-spu.c: Likewise.
2216 * solib-svr4.c: Likewise.
2217 * source.c: Likewise.
2218 * sparc-nat.c: Likewise.
2219 * sparc-sol2-tdep.c: Likewise.
2220 * sparc-tdep.c: Likewise.
2221 * sparc64-sol2-tdep.c: Likewise.
2222 * sparc64-tdep.c: Likewise.
2223 * sparc64fbsd-tdep.c: Likewise.
2224 * sparc64nbsd-tdep.c: Likewise.
2225 * sparc64obsd-tdep.c: Likewise.
2226 * sparcnbsd-tdep.c: Likewise.
2227 * sparcobsd-tdep.c: Likewise.
2228 * spu-multiarch.c: Likewise.
2229 * spu-tdep.c: Likewise.
2230 * stabsread.c: Likewise.
2231 * stack.c: Likewise.
2232 * symfile.c: Likewise.
2233 * symtab.c: Likewise.
2234 * target-descriptions.c: Likewise.
2235 * target-memory.c: Likewise.
2236 * target.c: Likewise.
2237 * tic6x-linux-tdep.c: Likewise.
2238 * tic6x-tdep.c: Likewise.
2239 * tilegx-linux-nat.c: Likewise.
2240 * tilegx-tdep.c: Likewise.
2241 * top.c: Likewise.
2242 * tramp-frame.c: Likewise.
2243 * tui/tui-out.c: Likewise.
2244 * tui/tui-winsource.c: Likewise.
2245 * ui-out.c: Likewise.
2246 * user-regs.c: Likewise.
2247 * utils.c: Likewise.
2248 * v850-tdep.c: Likewise.
2249 * valops.c: Likewise.
2250 * value.c: Likewise.
2251 * varobj.c: Likewise.
2252 * vax-nat.c: Likewise.
2253 * xml-syscall.c: Likewise.
2254 * xml-tdesc.c: Likewise.
2255 * xstormy16-tdep.c: Likewise.
2256 * xtensa-linux-nat.c: Likewise.
2257 * xtensa-tdep.c: Likewise.
2258
2259 2014-08-07 Gary Benson <gbenson@redhat.com>
2260
2261 * common/common-defs.h: Include common-utils.h.
2262 * defs.h: Do not include common-utils.h.
2263 * common/gdb_assert.h: Likewise.
2264 * darwin-nat.h: Likewise.
2265 * nat/linux-btrace.c: Likewise.
2266 * target/waitstatus.h: Likewise.
2267
2268 2014-08-07 Gary Benson <gbenson@redhat.com>
2269
2270 * common/common-defs.h: Include ptid.h.
2271 * defs.h: Do not include ptid.h.
2272 * inferior.h: Likewise.
2273 * infrun.h: Likewise.
2274 * nat/linux-btrace.h: Likewise.
2275 * nat/linux-osdata.h: Likewise.
2276 * target/waitstatus.h: Likewise.
2277
2278 2014-08-07 Gary Benson <gbenson@redhat.com>
2279
2280 * common/common-defs.h: Include gdb_locale.h.
2281 * defs.h: Do not include gdb_locale.h.
2282
2283 2014-08-07 Gary Benson <gbenson@redhat.com>
2284
2285 * common/common-defs.h: Include gdb/signals.h.
2286 * defs.h: Do not include gdb/signals.h.
2287
2288 2014-08-07 Gary Benson <gbenson@redhat.com>
2289
2290 * common/common-defs.h: Include pathmax.h.
2291 * defs.h: Do not include pathmax.h.
2292
2293 2014-08-07 Gary Benson <gbenson@redhat.com>
2294
2295 * common/common-defs.h: Include libiberty.h.
2296 * defs.h: Do not include libiberty.h.
2297 * common/queue.h: Likewise.
2298 * cp-name-parser.y: Likewise.
2299 * mi/mi-cmd-catch.c: Likewise.
2300 * python/python.c: Likewise.
2301
2302 2014-08-07 Gary Benson <gbenson@redhat.com>
2303
2304 * common/common-defs.h: Include ansidecl.h.
2305 * defs.h: Do not include ansidecl.h.
2306 * common/buffer.h: Likewise.
2307 * common/common-utils.h: Likewise.
2308
2309 2014-08-07 Gary Benson <gbenson@redhat.com>
2310
2311 * common/common-defs.h: Include stddef.h.
2312 * defs.h: Do not include stddef.h.
2313 * common/common-utils.h: Likewise.
2314 * amd64fbsd-nat.c: Likewise.
2315 * bcache.c: Likewise.
2316 * charset.c: Likewise.
2317 * common/buffer.h: Likewise.
2318 * common/vec.h: Likewise.
2319 * i386bsd-nat.c: Likewise.
2320 * nat/linux-btrace.h: Likewise.
2321 * ppcfbsd-nat.c: Likewise.
2322 * ppcnbsd-tdep.h: Likewise.
2323 * ppcobsd-nat.c: Likewise.
2324 * ppcobsd-tdep.h: Likewise.
2325 * python/py-gdb-readline.c: Likewise.
2326
2327 2014-08-07 Gary Benson <gbenson@redhat.com>
2328
2329 * common/common-defs.h: Include stdarg.h.
2330 * defs.h: Do not include stdarg.h.
2331 * ada-lang.c: Likewise.
2332 * common/common-utils.h: Likewise.
2333 * guile/scm-string.c: Likewise.
2334 * guile/scm-utils.c: Likewise.
2335 * m32c-tdep.c: Likewise.
2336
2337 2014-08-07 Gary Benson <gbenson@redhat.com>
2338
2339 * common/common-defs.h: Include stdlib.h.
2340 * defs.h: Do not include stdlib.h.
2341 * addrmap.c: Likewise.
2342 * bcache.c: Likewise.
2343 * common/buffer.c: Likewise.
2344 * common/common-utils.c: Likewise.
2345 * cp-name-parser.y: Likewise.
2346 * go32-nat.c: Likewise.
2347 * mn10300-linux-tdep.c: Likewise.
2348 * nat/linux-osdata.c: Likewise.
2349 * tui/tui.c: Likewise.
2350 * windows-nat.c: Likewise.
2351
2352 2014-08-07 Gary Benson <gbenson@redhat.com>
2353
2354 * common/common-defs.h: Include stdio.h.
2355 * defs.h: Do not include stdio.h.
2356 * ada-lang.c: Likewise.
2357 * common/buffer.c: Likewise.
2358 * common/common-utils.c: Likewise.
2359 * cp-name-parser.y: Likewise.
2360 * gnu-nat.c: Likewise.
2361 * go32-nat.c: Likewise.
2362 * i386gnu-nat.c: Likewise.
2363 * proc-api.c: Likewise.
2364 * proc-events.c: Likewise.
2365 * proc-flags.c: Likewise.
2366 * proc-why.c: Likewise.
2367 * python/python-internal.h: Likewise.
2368 * target-memory.c: Likewise.
2369 * tui/tui-io.c: Likewise.
2370 * tui/tui.c: Likewise.
2371
2372 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2373
2374 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2375 (scan_dyntag_auxv): Same.
2376
2377 2014-08-06 Yao Qi <yao@codesourcery.com>
2378
2379 * amd64-linux-nat.c: Remove duplicated include
2380 "x86-linux-nat.h".
2381 * i386-linux-nat.c: Likewise.
2382
2383 2014-08-06 Yao Qi <yao@codesourcery.com>
2384
2385 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2386 operand" with "Special opcode" in comments.
2387
2388 2014-08-05 Gary Benson <gbenson@redhat.com>
2389
2390 * interps.c (initialize_interps): Remove prototype.
2391 (interpreter_initialized): Remove static global.
2392 (interp_add): Do not call initialize_interps.
2393 (initialize_interps): Remove function.
2394
2395 2014-08-05 Gary Benson <gbenson@redhat.com>
2396
2397 * utils.c (vwarning): Remove spurious va_end.
2398
2399 2014-08-05 Alan Modra <amodra@gmail.com>
2400
2401 * charset.c (convert_between_encodings): Cast result of obstack_base.
2402 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2403 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2404 (read_unwind_info): Use size_t for some locals.
2405 * jit.c (finalize_symtab): Likewise.
2406 * utils.c (hashtab_obstack_allocate): Likewise.
2407 * symmisc.c (print_objfile_statistics): Update format strings.
2408
2409 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2410
2411 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2412 (Changes in GDB 7.8): ... here.
2413
2414 2014-08-04 Tom Tromey <tromey@redhat.com>
2415
2416 * target.c (set_targetdebug): New function.
2417 (initialize_targets): Pass set_targetdebug when creating "set
2418 debug target".
2419
2420 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2421
2422 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2423 if detecting a variable-sized field that is not the last field.
2424 Fix struct type length computation.
2425
2426 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2427
2428 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2429 Add debug trace.
2430
2431 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2432
2433 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2434 Remove "+ 8" offset in computation of CHAIN_VMA.
2435
2436 2014-07-31 Doug Evans <dje@google.com>
2437
2438 * inflow.c (child_terminal_inferior): Add comment.
2439 (child_terminal_ours_for_output): Add comment.
2440 (child_terminal_ours): Add comment.
2441 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2442 (linux_nat_terminal_ours): Add comment.
2443
2444 2014-07-31 Gary Benson <gbenson@redhat.com>
2445
2446 * common/btrace-common.h: Do not include defs.h or server.h.
2447 * nat/mips-linux-watch.h: Likewise.
2448 * gdb-dlfcn.h: Do not include defs.h.
2449 * tracefile.h: Likewise.
2450
2451 2014-07-30 Roland McGrath <mcgrathr@google.com>
2452
2453 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2454
2455 2014-07-30 Tom Tromey <tromey@redhat.com>
2456
2457 * bsd-kvm.c (bsd_kvm_open): Constify.
2458 * corelow.c (core_open): Constify.
2459 * ctf.c (ctf_open): Constify.
2460 * dbug-rom.c (dbug_open): Constify.
2461 * exec.c (exec_open): Constify.
2462 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2463 * microblaze-rom.c (picobug_open): Constify.
2464 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2465 Constify.
2466 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2467 * record-btrace.c (record_btrace_open): Constify.
2468 * record-full.c (record_full_core_open_1, record_full_open_1)
2469 (record_full_open): Constify.
2470 * remote-m32r-sdi.c (m32r_open): Constify.
2471 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2472 (rockhopper_open, lsi_open): Constify.
2473 * remote-sim.c (gdbsim_open): Constify.
2474 * remote.c (remote_open, extended_remote_open, remote_open_1):
2475 Constify.
2476 * target.h (struct target_ops) <to_open>: Make "arg" const.
2477 * tracefile-tfile.c (tfile_open): Constify.
2478
2479 2014-07-30 Tom Tromey <tromey@redhat.com>
2480
2481 * breakpoint.c (map_breakpoint_numbers): Update.
2482 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2483 (get_number_const): New function.
2484 (get_number): Rewrite using get_number_const.
2485 (init_number_or_range): Make "string" const.
2486 (number_is_in_list): Make "list" const.
2487 * cli/cli-utils.h (get_number_const): Declare.
2488 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2489 (init_number_or_range, number_is_in_list): Update.
2490 * printcmd.c (map_display_numbers): Update.
2491 * value.c (value_from_history_ref): Constify.
2492 * value.h (value_from_history_ref): Update.
2493
2494 2014-07-30 Tom Tromey <tromey@redhat.com>
2495
2496 * corefile.c (hook_type, call_extra_exec_file_hooks)
2497 (specify_exec_file_hook): Constify.
2498 * exec.c (exec_file_attach): Make "filename" const.
2499 * gdbcore.h (deprecated_exec_file_display_hook)
2500 (specify_exec_file_hook, exec_file_attach): Constify.
2501 * main.c (captured_main): Use catch_command_errors_const.
2502
2503 2014-07-30 Tom Tromey <tromey@redhat.com>
2504
2505 * target.c (open_target): New function.
2506 (add_target_with_completer, add_deprecated_target_alias): Use
2507 set_cmd_sfunc, set_cmd_context.
2508 (debug_to_open): Remove.
2509 (setup_target_debug): Update.
2510
2511 2014-07-30 Yao Qi <yao@codesourcery.com>
2512
2513 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2514 comments.
2515 * parse.c (exp_iterate): Update comments.
2516
2517 2014-07-30 Gary Benson <gbenson@redhat.com>
2518
2519 * common/common-defs.h: New file.
2520 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2521 * defs.h: Include common-defs.h.
2522 Do not include config.h or build-gnulib/config.h.
2523
2524 2014-07-30 Gary Benson <gbenson@redhat.com>
2525
2526 * common/common-utils.h: Do not include config.h.
2527 * nat/linux-btrace.h: Likewise.
2528
2529 2014-07-30 Gary Benson <gbenson@redhat.com>
2530
2531 * btrace.c: Include defs.h.
2532 * common/ptid.c: Include defs.h or server.h as appropriate.
2533 * nat/mips-linux-watch.c: Likewise.
2534
2535 2014-07-29 Tom Tromey <tromey@redhat.com>
2536
2537 * target.c (target_is_pushed): Simplify.
2538
2539 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2540
2541 GDB 7.8 released.
2542
2543 2014-07-29 Yao Qi <yao@codesourcery.com>
2544
2545 PR gdb/17206
2546 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2547
2548 2014-07-28 Doug Evans <xdje42@gmail.com>
2549
2550 PR guile/17203
2551 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2552 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2553 parameters.
2554
2555 2014-07-28 Will Newton <will.newton@linaro.org>
2556
2557 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2558 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2559 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2560 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2561 (THUMB2_EABI_SYSCALL): Likewise.
2562 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2563 struct tramp_frame.
2564 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2565 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2566
2567 2014-07-27 Doug Evans <xdje42@gmail.com>
2568
2569 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2570
2571 2014-07-27 Doug Evans <xdje42@gmail.com>
2572
2573 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2574
2575 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2576 Doug Evans <xdje42@gmail.com>
2577
2578 PR guile/17146
2579 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2580 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2581 * configure.ac: Try to use guild to compile an scm file, if it fails
2582 then disable guile support.
2583 * configure: Regenerate.
2584 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2585 GUILE_FILE_LIST.
2586 (GUILE_COMPILED_FILES): New variable.
2587 (GUILE_FILES) Update.
2588 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2589 (stamp-guile): Compile scm files.
2590 * guile/guile.c (boot_guile_support): New function.
2591 (standard_throw_args_p): New function.
2592 (print_standard_throw_error, print_throw_error): New functions.
2593 (handle_boot_error): New function.
2594 (initialize_scheme_side): Rewrite to call boot_guile_support.
2595 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2596 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2597
2598 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2599 Doug Evans <xdje42@gmail.com>
2600
2601 PR guile/17146
2602 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2603 * guile/lib/gdb/support.scm: New file.
2604 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2605 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2606 All uses updated.
2607 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2608 All uses updated.
2609 (%assert-type): Ditto, and renamed to assert-type.
2610 (%exception-print-style): Delete.
2611
2612 2014-07-26 Doug Evans <xdje42@gmail.com>
2613
2614 PR build/17105
2615 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2616 * configure: Regenerate.
2617 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2618 PYTHON_FILES.
2619 (PYTHON_FILES): New variable.
2620 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2621 (GUILE_FILES): New variable.
2622 (stamp-python, install-python, uninstall-python): Handle empty
2623 file list.
2624 (stamp-guile, install-guile, uninstall-guile): Ditto.
2625
2626 2014-07-26 Doug Evans <xdje42@gmail.com>
2627
2628 PR guile/17177
2629 * guile/lib/gdb.scm (pretty-printers): Export.
2630 (set-pretty-printers!): Export.
2631 * guile/lib/gdb/printing.scm (gdb module): Update.
2632 (prepend-pretty-printer!, append-pretty-printer!): Update.
2633 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2634 (pretty_printer_list_var): Delete.
2635 (pretty_printer_list): New static global.
2636 (gdbscm_pretty_printers): New function.
2637 (gdbscm_set_pretty_printers_x): New function.
2638 (ppscm_find_pretty_printer_from_gdb): Update.
2639 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2640 (gdbscm_initialize_pretty_printers): Update.
2641
2642 2014-07-26 Doug Evans <xdje42@gmail.com>
2643
2644 PR 17185
2645 * configure.ac: Add check for header gc/gc.h.
2646 Add check for function setenv.
2647 * configure: Regenerate.
2648 * config.in: Regenerate.
2649 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2650
2651 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2652
2653 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2654 variation in gdbarch matching.
2655
2656 2014-07-25 Tom Tromey <tromey@redhat.com>
2657
2658 * exec.c (using_exec_ops): Remove.
2659 (exec_close_1): Update. Remove extraneous block, reindent.
2660 (add_target_sections): Use target_is_pushed.
2661
2662 2014-07-25 Pedro Alves <palves@redhat.com>
2663
2664 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2665 * monitor.c (monitor_create_inferior): Likewise.
2666 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2667 * remote-sim.c (gdbsim_create_inferior): Likewise.
2668 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2669 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2670 * windows-nat.c (do_initial_windows_stuff): Likewise.
2671
2672 2014-07-25 Pedro Alves <palves@redhat.com>
2673
2674 * NEWS: Mention signal passing and "signal" command changes.
2675 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2676 comment.
2677 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2678 call.
2679 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2680 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2681 (jump_command): Adjust clear_proceed_status call.
2682 (signal_command): Warn if other thread that are resumed have
2683 signals that will be delivered. Adjust clear_proceed_status call.
2684 (until_next_command, finish_command)
2685 (proceed_after_attach_callback, attach_command_post_wait)
2686 (attach_command): Adjust clear_proceed_status call.
2687 * infrun.c (proceed_after_vfork_done): Likewise.
2688 (proceed_after_attach_callback): Adjust comment.
2689 (clear_proceed_status_thread): Clear stop_signal if not in pass
2690 state.
2691 (clear_proceed_status_callback): Delete.
2692 (clear_proceed_status): New 'step' parameter. Only clear the
2693 proceed status of threads the command being prepared is about to
2694 resume.
2695 (proceed): If passed in an explicit signal, override stop_signal
2696 with it. Don't pass the last stop signal to the thread we're
2697 resuming.
2698 (init_wait_for_inferior): Adjust clear_proceed_status call.
2699 (switch_back_to_stepped_thread): Clear the signal if it should not
2700 be passed.
2701 * infrun.h (clear_proceed_status): New 'step' parameter.
2702 (user_visible_resume_ptid): Add comment.
2703 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2704 signal is in pass state.
2705 * remote.c (append_pending_thread_resumptions): Likewise.
2706 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2707
2708 2014-07-25 Tom Tromey <tromey@redhat.com>
2709
2710 * target.h (target_stopped_data_address)
2711 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2712 parentheses.
2713
2714 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2715
2716 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2717 comments.
2718 (avr_pointer_to_address): Likewise.
2719
2720 2014-07-24 Tom Tromey <tromey@redhat.com>
2721
2722 * monitor.c (compile_pattern): Update.
2723 * target.h (struct target_ops) <to_shortname, to_longname,
2724 to_doc>: Now const.
2725
2726 2014-07-24 Tom Tromey <tromey@redhat.com>
2727
2728 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2729 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2730 (add_info_alias, add_com): Make "doc" const.
2731 (print_doc_line): Make "str" const.
2732 (delete_cmd): Update.
2733 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2734 (print_doc_line): Update.
2735 * cli/cli-script.c (document_command): Update.
2736 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2737 (add_com, add_info, add_info_alias): Update.
2738 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2739 * python/py-cmd.c (cmdpy_destroyer): Update.
2740
2741 2014-07-24 Tom Tromey <tromey@redhat.com>
2742
2743 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2744 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2745 (help_cmd_list): Constify.
2746 (lookup_cmd): Update.
2747 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2748 const.
2749 (help_cmd_list, apropos_cmd): Update.
2750 * cli/cli-script.c (show_user): Update.
2751 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2752 * cli/cli-setshow.h (cmd_show_list): Update.
2753 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2754 (cmd_show_list): Update.
2755 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2756 * python/py-cmd.c (cmdpy_destroyer): Update.
2757
2758 2014-07-24 Tom Tromey <tromey@redhat.com>
2759
2760 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2761 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2762 const.
2763 * command.h (deprecate_cmd): Update.
2764 * maint.c (maintenance_do_deprecate): Add casts.
2765
2766 2014-07-24 Tom Tromey <tromey@redhat.com>
2767
2768 * cli/cli-decode.c (help_cmd): Make parameter "const".
2769 * cli/cli-decode.h (help_cmd): Update.
2770
2771 2014-07-24 Tom Tromey <tromey@redhat.com>
2772
2773 * stack.c (up_silently_base, down_silently_base): Make argument
2774 const.
2775
2776 2014-07-24 Tom Tromey <tromey@redhat.com>
2777
2778 * solib.c (solib_add): Make "pattern" const.
2779 * solib.h (solib_add): Update.
2780
2781 2014-07-24 Tom Tromey <tromey@redhat.com>
2782
2783 * remote.c (remote_serial_open, print_packet, putpkt)
2784 (putpkt_binary): Constify.
2785 * remote.h (putpkt): Update.
2786
2787 2014-07-24 Tom Tromey <tromey@redhat.com>
2788
2789 * monitor.c (monitor_open): Make "args" const.
2790 * monitor.h (monitor_open): Update.
2791
2792 2014-07-24 Tom Tromey <tromey@redhat.com>
2793
2794 * maint.c (match_bfd_flags): Make "string" const.
2795 (print_bfd_section_info): Remove casts.
2796 (print_objfile_section_info): Make "string" const.
2797
2798 2014-07-24 Tom Tromey <tromey@redhat.com>
2799
2800 * inf-child.c (inf_child_open_target): Make "arg" const.
2801 * inf-child.h (inf_child_open_target): Update.
2802
2803 2014-07-24 Tom Tromey <tromey@redhat.com>
2804
2805 * environ.c (unset_in_environ): Make "var" const.
2806 * environ.h (unset_in_environ): Update.
2807
2808 2014-07-24 Tom Tromey <tromey@redhat.com>
2809
2810 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2811 Make "cmd" const.
2812 (scan_filename_with_cleanup): Likewise.
2813 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2814 Make arguments const.
2815 (restore_command): Update.
2816
2817 2014-07-24 Pedro Alves <palves@redhat.com>
2818
2819 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2820
2821 2014-07-24 Tom Tromey <tromey@redhat.com>
2822 Gary Benson <gbenson@redhat.com>
2823
2824 * nat/linux-ptrace.c (additional_flags): New global.
2825 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2826 additional_flags; don't check GDBSERVER.
2827 (linux_ptrace_set_additional_flags): New function.
2828 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2829 Declare.
2830 * linux-nat.c (_initialize_linux_nat): Call
2831 linux_ptrace_set_additional_flags.
2832
2833 2014-07-24 Tom Tromey <tromey@redhat.com>
2834
2835 * make-target-delegates (munge_type, write_debugmethod): New
2836 functions.
2837 (debug_names): New global.
2838 ($TARGET_DEBUG_PRINTER): New global.
2839 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2840 name.
2841 Write debug methods. Generate init_debug_target.
2842 * target-debug.h: New file.
2843 * target-delegates.c: Rebuild.
2844 * target.c: Include target-debug.h.
2845 (debug_target): Hoist definition.
2846 (target_kill, target_get_section_table, target_memory_map)
2847 (target_flash_erase, target_flash_done, target_detach)
2848 (target_disconnect, target_wait, target_resume)
2849 (target_pass_signals, target_program_signals, target_follow_fork)
2850 (target_mourn_inferior, target_search_memory)
2851 (target_thread_address_space, target_close)
2852 (target_find_new_threads, target_core_of_thread)
2853 (target_verify_memory, target_insert_mask_watchpoint)
2854 (target_remove_mask_watchpoint): Remove targetdebug code.
2855 (debug_to_post_attach, debug_to_prepare_to_store)
2856 (debug_to_files_info, debug_to_insert_breakpoint)
2857 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2858 (debug_to_region_ok_for_hw_watchpoint)
2859 (debug_to_can_accel_watchpoint_condition)
2860 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2861 (debug_to_watchpoint_addr_within_range)
2862 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2863 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2864 (debug_to_terminal_init, debug_to_terminal_inferior)
2865 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2866 (debug_to_terminal_save_ours, debug_to_terminal_info)
2867 (debug_to_load, debug_to_post_startup_inferior)
2868 (debug_to_insert_fork_catchpoint)
2869 (debug_to_remove_fork_catchpoint)
2870 (debug_to_insert_vfork_catchpoint)
2871 (debug_to_remove_vfork_catchpoint)
2872 (debug_to_insert_exec_catchpoint)
2873 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2874 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2875 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2876 (setup_target_debug): Call init_debug_target.
2877 * target.h (TARGET_DEBUG_PRINTER): New macro.
2878 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2879 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2880
2881 2014-07-24 Gary Benson <gbenson@redhat.com>
2882
2883 * exceptions.h (throw_vfatal): Renamed to...
2884 (throw_vquit): New declaration.
2885 (throw_quit): Likewise.
2886 * exceptions.c (throw_vfatal): Renamed to...
2887 (throw_vquit): New function.
2888 (throw_quit): Likewise.
2889 (throw_error): Call throw_verror rather than throw_it.
2890 * utils.h (vfatal): Removed.
2891 (fatal): Likewise.
2892 * utils.c (vfatal): Removed.
2893 (fatal): Likewise.
2894 (internal_verror): Replaced call to fatal with call to throw_quit.
2895 (quit): Replaced calls to fatal with calls to throw_quit.
2896
2897 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2898
2899 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2900 target_read_code.
2901
2902 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2903
2904 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2905 less than zero in conditional expression.
2906
2907 2014-07-23 Tom Tromey <tromey@redhat.com>
2908
2909 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2910 ($INTRO_PART): Don't match whitespace.
2911 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2912 argument matching.
2913 ($METHOD): Add $METHOD_TRAILER.
2914 (trim): Rewrite.
2915 (scan_target_h): New sub.
2916 Change main loop not to collect state.
2917 * target-delegates.c: Rebuild.
2918
2919 2014-07-23 Gary Benson <gbenson@redhat.com>
2920
2921 * cp-support.c (gdb_demangle): Fix build on systems without
2922 sigaltstack.
2923
2924 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2925
2926 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2927 for reference entry value target data value.
2928
2929 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2930
2931 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2932 value_available_contents_eq.
2933
2934 2014-07-22 Pedro Alves <palves@redhat.com>
2935
2936 * value.c (allocate_optimized_out_value): Don't mark value as
2937 non-lazy.
2938
2939 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2940
2941 * MAINTAINERS (Write After Approval): Update my email address.
2942
2943 2014-07-20 Doug Evans <dje@google.com>
2944
2945 PR server/17147
2946 * remote.c (putpkt_binary): Add text to error message.
2947
2948 2014-07-20 Yao Qi <yao@codesourcery.com>
2949
2950 * eval.c: Remove "Chill" from comments.
2951 * gdbtypes.h: Likewise.
2952 * symtab.h: Likewise.
2953
2954 2014-07-20 Yao Qi <yao@codesourcery.com>
2955
2956 * std-operator.def: Update comments to TERNOP_SLICE.
2957
2958 2014-07-20 Yao Qi <yao@codesourcery.com>
2959
2960 * std-operator.def: Remove BINOP_RANGE.
2961 * breakpoint.c (watchpoint_exp_is_const): Update.
2962 * expprint.c (dump_subexp_body_standard): Likewise.
2963 * eval.c (init_array_element): Remove dead code.
2964 (evaluate_subexp_standard): Likewise.
2965
2966 2014-07-20 Yao Qi <yao@codesourcery.com>
2967
2968 * std-operator.def: Remove BINOP_IN.
2969 * breakpoint.c (watchpoint_exp_is_const): Update.
2970 * eval.c (evaluate_subexp_standard): Likewise.
2971 * expprint.c (dump_subexp_body_standard): Likewise.
2972
2973 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2974
2975 * microblaze-tdep.c (microblaze_register_names): Add
2976 the rshr and rslr register names.
2977 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2978 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2979 Use of tdesc_numbered_register. Use of
2980 microblaze_register_g_packet_guesses. Use of
2981 tdesc_use_registers. Use of set_gdbarch_register_type.
2982 (microblaze_register_g_packet_guesses): New.
2983 * microblaze-tdep.h (microblaze_reg_num): Add
2984 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2985 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2986 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2987 * features/microblaze-core.xml: New file.
2988 * features/microblaze-stack-protect.xml: New file.
2989 * features/microblaze-with-stack-protect.c: New file.
2990 * features/microblaze-with-stack-protect.xml: New file.
2991 * features/microblaze.xml: New file.
2992 * features/microblaze.c: New file.
2993 * features/Makefile (microblaze-with-stack-protect): Add
2994 microblaze-with-stack-protect microblaze and microblaze-expedite.
2995 * regformats/microblaze-with-stack-protect.dat: New file.
2996 * regformats/microblaze.dat: New file.
2997 * doc/gdb.texinfo (MicroBlaze Features): Added.
2998
2999 2014-07-18 Tom Tromey <tromey@redhat.com>
3000
3001 * exec.c (exec_ops): Now static.
3002 * exec.h (exec_ops): Don't declare.
3003
3004 2014-07-18 Tom Tromey <tromey@redhat.com>
3005
3006 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3007 to find_target_beneath.
3008 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3009 find_target_beneath.
3010 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3011
3012 2014-07-18 Tom Tromey <tromey@redhat.com>
3013
3014 PR gdb/17130:
3015 * utils.c (quit): Use target_supports_terminal_ours.
3016 * target.h (target_supports_terminal_ours): Declare.
3017 * target.c (target_supports_delete_record): Don't check
3018 to_delete_record against NULL.
3019 (target_supports_terminal_ours): New function.
3020
3021 2014-07-18 Tom Tromey <tromey@redhat.com>
3022
3023 PR gdb/17130:
3024 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3025 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3026 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3027 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3028 * windows-nat.c (windows_xfer_partial): Always delegate.
3029 * record-btrace.c (record_btrace_xfer_partial): Simplify
3030 delegation.
3031 (record_btrace_fetch_registers, record_btrace_store_registers)
3032 (record_btrace_prepare_to_store, record_btrace_resume)
3033 (record_btrace_wait, record_btrace_find_new_threads)
3034 (record_btrace_thread_alive): Likewise.
3035 * procfs.c (procfs_xfer_partial): Always delegate.
3036 * corelow.c (core_xfer_partial): Always delegate.
3037 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3038
3039 2014-07-18 Tom Tromey <tromey@redhat.com>
3040
3041 * exec.c (exec_make_note_section): Move earlier.
3042
3043 2014-07-17 Doug Evans <dje@google.com>
3044
3045 PR gdb/17170
3046 * maint.c (count_symtabs_and_blocks): Handle NULL
3047 current_program_space.
3048 (report_command_stats): Check global enabled flag in addition to
3049 recorded enabled flag.
3050 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3051
3052 2014-07-16 Pedro Alves <palves@redhat.com>
3053
3054 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3055
3056 2014-07-16 Tom Tromey <tromey@redhat.com>
3057
3058 * target.h (struct target_ops) <to_delete_record>: Reformat
3059 comment.
3060
3061 2014-07-16 Tom Tromey <tromey@redhat.com>
3062
3063 * target-delegates.c: Rebuild.
3064
3065 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3066
3067 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3068 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3069 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3070 (avr_pointer_to_address): Likewise.
3071 (avr_address_class_type_flags): New function.
3072 (avr_address_class_type_flags_to_name): Likewise.
3073 (avr_address_class_name_to_type_flags): Likewise.
3074 (avr_gdbarch_init): Set address_class_type_flags,
3075 address_class_type_flags_to_name and
3076 address_class_name_to_type_flags.
3077
3078 2014-07-15 Pedro Alves <palves@redhat.com>
3079
3080 * linux-nat.c (kill_callback): Save errno and work with saved
3081 copy.
3082
3083 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3084
3085 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3086
3087 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3088
3089 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3090 breakpoint support correctly.
3091
3092 2014-07-14 Pedro Alves <palves@redhat.com>
3093
3094 * utils.c (prompt_for_continue): Call target_terminal_ours.
3095
3096 2014-07-14 Pedro Alves <palves@redhat.com>
3097
3098 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3099 catch_errors. Don't re-enable stdin or notify observers where,
3100 and rethrow error.
3101 (fetch_inferior_event_wrapper): Delete.
3102
3103 2014-07-14 Pedro Alves <palves@redhat.com>
3104
3105 PR gdb/17072
3106 * top.c: Include "inf-loop.h".
3107 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3108 field.
3109 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3110 was async before.
3111 (gdb_readline_wrapper): Store whether the target is async, and
3112 make it sync.
3113
3114 2014-07-14 Pedro Alves <palves@redhat.com>
3115
3116 PR gdb/17072
3117 * top.c (gdb_readline_wrapper_line): Tweak comment.
3118 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3119 the input handler callback.
3120
3121 2014-07-14 Pedro Alves <palves@redhat.com>
3122
3123 PR gdb/17072
3124 * main.c: Include event-top.h.
3125 (handle_command_errors): New function.
3126 (catch_command_errors, catch_command_errors_const): Use it.
3127
3128 2014-07-14 Pedro Alves <palves@redhat.com>
3129
3130 * exceptions.c (catch_command_errors, catch_command_errors_const):
3131 Moved to main.c.
3132 * exceptions.h (catch_command_errors_ftype)
3133 (catch_command_errors_const_ftype): Moved to main.c.
3134 (catch_command_errors, catch_command_errors_const): Delete
3135 declarations.
3136 * main.c (catch_command_errors_ftype)
3137 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3138 (catch_command_errors, catch_command_errors_const)): Moved here
3139 from exceptions.c and make static.
3140
3141 2014-07-14 Pedro Alves <palves@redhat.com>
3142
3143 * exceptions.c (print_any_exception): Delete.
3144 (catch_exceptions_with_msg): Use exception_print instead of
3145 print_any_exception.
3146 (catch_errors): Use exception_fprintf instead of
3147 print_any_exception.
3148 (catch_command_errors, catch_command_errors_const): Use
3149 exception_print instead of print_any_exception.
3150
3151 2014-07-14 Pedro Alves <palves@redhat.com>
3152
3153 * infcall.c (run_inferior_call): Set 'sync_execution' while
3154 running the inferior call.
3155
3156 2014-07-14 Pedro Alves <palves@redhat.com>
3157
3158 * value.c (value_contents_equal): Delete function.
3159 * value.h (value_contents_equal): Delete declaration.
3160
3161 2014-07-14 Tom Tromey <tromey@redhat.com>
3162
3163 PR exp/17106:
3164 * gdbtypes.c (is_dynamic_type_internal): New function, from
3165 is_dynamic_type.
3166 (is_dynamic_type): Rewrite.
3167 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3168 (resolve_dynamic_struct): Likewise.
3169 (resolve_dynamic_type_internal): New function, from
3170 resolve_dynamic_type.
3171 (resolve_dynamic_type): Rewrite.
3172
3173 2014-07-14 Tom Tromey <tromey@redhat.com>
3174
3175 * target.c (target_require_runnable): Also check record_stratum.
3176 Update comment.
3177
3178 2014-07-11 Yao Qi <yao@codesourcery.com>
3179
3180 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3181 thumb_instruction_restores_sp return true.
3182
3183 2014-07-11 Yao Qi <yao@codesourcery.com>
3184
3185 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3186 (thumb_in_function_epilogue_p): Call
3187 thumb_instruction_restores_sp.
3188
3189 2014-07-11 Yao Qi <yao@codesourcery.com>
3190
3191 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3192 'add sp, #imm'.
3193 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3194
3195 2014-07-11 Gary Benson <gbenson@redhat.com>
3196
3197 * amd64-linux-nat.c (gdbcore.h): Remove include.
3198 (regset.h): Likewise.
3199 (nat/linux-btrace.h): Likewise.
3200 (btrace.h): Likewise.
3201 (gdb_assert.h): Likewise.
3202 (string.h): Likewise.
3203 (sys/uio.h): Likewise.
3204 (sys/debugreg.h): Likewise.
3205 (sys/syscall.h): Likewise.
3206 (sys/procfs.h): Likewise.
3207 (sys/user.h): Likewise.
3208 (asm/ptrace.h): Likewise.
3209 (i386-nat.h): Likewise.
3210 * i386-linux-nat.c (i386-nat.h): Likewise.
3211 (regset.h): Likewise.
3212 (target.h): Likewise.
3213 (linux-nat.h): Likewise.
3214 (nat/linux-btrace.h): Likewise.
3215 (btrace.h): Likewise.
3216 (gdb_assert.h): Likewise.
3217 (string.h): Likewise.
3218 (sys/uio.h): Likewise.
3219 (sys/user.h): Likewise.
3220 (sys/procfs.h): Likewise.
3221 (sys/reg.h): Likewise.
3222 (sys/debugreg.h): Likewise.
3223 (ORIG_EAX): Remove definition.
3224
3225 2014-07-11 Gary Benson <gbenson@redhat.com>
3226
3227 * i386-linux-nat.h: New file.
3228 * x86-linux-nat.h: Likewise.
3229 * x86-linux-nat.c: Likewise.
3230 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3231 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3232 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3233 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3234 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3235 (PTRACE_SETREGSET): Likewise.
3236 (arch_lwp_info): Now in x86-linux-nat.c.
3237 (have_ptrace_getregset): Now in x86-linux-nat.h.
3238 (x86_linux_dr_get): Now in x86-linux-nat.c.
3239 (x86_linux_dr_set): Likewise.
3240 (x86_linux_dr_get_addr): Likewise.
3241 (x86_linux_dr_get_control): Likewise.
3242 (x86_linux_dr_get_status): Likewise.
3243 (update_debug_registers_callback): Likewise.
3244 (x86_linux_dr_set_control): Likewise.
3245 (x86_linux_dr_set_addr): Likewise.
3246 (x86_linux_prepare_to_resume): Likewise.
3247 (x86_linux_new_thread): Likewise.
3248 (x86_linux_new_fork): Likewise.
3249 (x86_linux_get_thread_area): Likewise.
3250 (super_post_startup_inferior): Likewise.
3251 (x86_linux_child_post_startup_inferior): Likewise.
3252 (AMD64_LINUX_USER64_CS): Likewise.
3253 (AMD64_LINUX_X32_DS): Likewise.
3254 (x86_linux_read_description): Likewise.
3255 (x86_linux_enable_btrace): Likewise.
3256 (x86_linux_disable_btrace): Likewise.
3257 (x86_linux_teardown_btrace): Likewise.
3258 (x86_linux_read_btrace): Likewise.
3259 (x86_linux_create_target): Likewise.
3260 (x86_linux_add_target): Likewise.
3261 * i386-linux-nat.c (x86-linux-nat.h): New include.
3262 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3263 (PTRACE_SETREGSET): Likewise.
3264 (arch_lwp_info): Now in x86-linux-nat.c.
3265 (have_ptrace_getregset): Now in x86-linux-nat.h.
3266 (x86_linux_dr_get): Now in x86-linux-nat.c.
3267 (x86_linux_dr_set): Likewise.
3268 (x86_linux_dr_get_addr): Likewise.
3269 (x86_linux_dr_get_control): Likewise.
3270 (x86_linux_dr_get_status): Likewise.
3271 (update_debug_registers_callback): Likewise.
3272 (x86_linux_dr_set_control): Likewise.
3273 (x86_linux_dr_set_addr): Likewise.
3274 (x86_linux_prepare_to_resume): Likewise.
3275 (x86_linux_new_thread): Likewise.
3276 (x86_linux_new_fork): Likewise.
3277 (x86_linux_get_thread_area): Likewise.
3278 (super_post_startup_inferior): Likewise.
3279 (x86_linux_child_post_startup_inferior): Likewise.
3280 (AMD64_LINUX_USER64_CS): Likewise.
3281 (AMD64_LINUX_X32_DS): Likewise.
3282 (x86_linux_read_description): Likewise.
3283 (x86_linux_enable_btrace): Likewise.
3284 (x86_linux_disable_btrace): Likewise.
3285 (x86_linux_teardown_btrace): Likewise.
3286 (x86_linux_read_btrace): Likewise.
3287 (x86_linux_create_target): Likewise.
3288 (x86_linux_add_target): Likewise.
3289
3290 2014-07-11 Gary Benson <gbenson@redhat.com>
3291
3292 * amd64-linux-nat.c: Comment and whitespace changes.
3293 * i386-linux-nat.c: Comment and whitespace changes.
3294
3295 2014-07-11 Gary Benson <gbenson@redhat.com>
3296
3297 * amd64-linux-nat.c (x86_linux_create_target): New function.
3298 (x86_linux_add_target): Likewise.
3299 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3300 * i386-linux-nat.c (x86_linux_create_target): New function.
3301 (x86_linux_add_target): Likewise.
3302 (_initialize_i386_linux_nat): Delegate to the above new functions.
3303
3304 2014-07-11 Gary Benson <gbenson@redhat.com>
3305
3306 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3307 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3308 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3309 (ps_get_thread_area): Delegate to the above.
3310
3311 2014-07-11 Gary Benson <gbenson@redhat.com>
3312
3313 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3314 x86_linux_read_description. All uses updated. amd64-specific
3315 code conditionalized. Conditionalized i386-specific code added.
3316 Redundant cast removed.
3317 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3318 x86_linux_read_description. All uses updated. i386-specific
3319 code conditionalized. Conditionalized amd64-specific code added.
3320 One sizeof replaced with the actual type it is describing.
3321
3322 2014-07-11 Gary Benson <gbenson@redhat.com>
3323
3324 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3325 x86_linux_dr_get. All uses updated.
3326 (amd64_linux_dr_set): Renamed to
3327 x86_linux_dr_set. All uses updated.
3328 (amd64_linux_dr_get_addr): Renamed to
3329 x86_linux_dr_get_addr. All uses updated.
3330 (amd64_linux_dr_get_control): Renamed to
3331 x86_linux_dr_get_control. All uses updated.
3332 (amd64_linux_dr_get_status): Renamed to
3333 x86_linux_dr_get_status. All uses updated.
3334 (amd64_linux_dr_set_control): Renamed to
3335 x86_linux_dr_set_control. All uses updated.
3336 (amd64_linux_dr_set_addr): Renamed to
3337 x86_linux_dr_set_addr. All uses updated.
3338 (amd64_linux_prepare_to_resume): Renamed to
3339 x86_linux_prepare_to_resume. All uses updated.
3340 (amd64_linux_new_thread): Renamed to
3341 x86_linux_new_thread. All uses updated.
3342 (amd64_linux_new_fork): Renamed to
3343 x86_linux_new_fork. All uses updated.
3344 (amd64_linux_child_post_startup_inferior): Renamed to
3345 x86_linux_child_post_startup_inferior. All uses updated.
3346 (amd64_linux_enable_btrace): Renamed to
3347 x86_linux_enable_btrace. All uses updated.
3348 (amd64_linux_disable_btrace): Renamed to
3349 x86_linux_disable_btrace. All uses updated.
3350 (amd64_linux_teardown_btrace): Renamed to
3351 x86_linux_teardown_btrace. All uses updated.
3352 (amd64_linux_read_btrace): Renamed to
3353 x86_linux_read_btrace. All uses updated.
3354 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3355 x86_linux_dr_get. All uses updated.
3356 (i386_linux_dr_set): Renamed to
3357 x86_linux_dr_set. All uses updated.
3358 (i386_linux_dr_get_addr): Renamed to
3359 x86_linux_dr_get_addr. All uses updated.
3360 (i386_linux_dr_get_control): Renamed to
3361 x86_linux_dr_get_control. All uses updated.
3362 (i386_linux_dr_get_status): Renamed to
3363 x86_linux_dr_get_status. All uses updated.
3364 (i386_linux_dr_set_control): Renamed to
3365 x86_linux_dr_set_control. All uses updated.
3366 (i386_linux_dr_set_addr): Renamed to
3367 x86_linux_dr_set_addr. All uses updated.
3368 (i386_linux_prepare_to_resume): Renamed to
3369 x86_linux_prepare_to_resume. All uses updated.
3370 (i386_linux_new_thread): Renamed to
3371 x86_linux_new_thread. All uses updated.
3372 (i386_linux_new_fork): Renamed to
3373 x86_linux_new_fork. All uses updated.
3374 (i386_linux_child_post_startup_inferior): Renamed to
3375 x86_linux_child_post_startup_inferior. All uses updated.
3376 (i386_linux_enable_btrace): Renamed to
3377 x86_linux_enable_btrace. All uses updated.
3378 (i386_linux_disable_btrace): Renamed to
3379 x86_linux_disable_btrace. All uses updated.
3380 (i386_linux_teardown_btrace): Renamed to
3381 x86_linux_teardown_btrace. All uses updated.
3382 (i386_linux_read_btrace): Renamed to
3383 x86_linux_read_btrace. All uses updated.
3384
3385 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3386
3387 * remote.c (extended_remote_post_attach): New function.
3388 (init_extended_remote_ops): Install it as to_post_attach method.
3389
3390 2014-07-09 Pedro Alves <palves@redhat.com>
3391
3392 * infcmd.c (attach_command_post_wait): Don't call
3393 target_terminal_inferior here.
3394 (attach_command): Call it here instead.
3395
3396 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3397
3398 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3399 field.
3400 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3401 from varobj.c, with additional checks.
3402 (c_varobj_ops): Fill in is_path_expr_parent field.
3403 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3404 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3405 field.
3406 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3407 ops method.
3408 (varobj_default_is_path_expr_parent): New function.
3409 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3410 (varobj_default_is_path_expr_parent): Declare new function.
3411
3412 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3413
3414 * infcmd.c (finish_backward): Turn internal error into normal error.
3415
3416 2014-07-07 Pedro Alves <palves@redhat.com>
3417
3418 PR gdb/17096
3419 * remote.c (async_handle_remote_sigint)
3420 (async_handle_remote_sigint_twice): Call
3421 gdb_call_async_signal_handler instead of
3422 mark_async_signal_handler.
3423
3424 2014-07-07 Tom Tromey <tromey@redhat.com>
3425
3426 * target-delegates.c: Rebuild.
3427 * target.c (target_info_record): Remove.
3428 * record.c (info_record_command): Unconditionally call
3429 to_info_record.
3430 * target.h (struct target_ops) <to_info_record>: Use
3431 TARGET_DEFAULT_IGNORE.
3432 (target_info_record): Remove.
3433
3434 2014-07-07 Tom Tromey <tromey@redhat.com>
3435
3436 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3437 TARGET_DEFAULT_NORETURN.
3438 * target.c (generic_tls_error): New function.
3439 (target_translate_tls_address): Don't search target stack.
3440 * target-delegates.c: Rebuild.
3441 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3442 stack.
3443 * linux-thread-db.c (thread_db_get_thread_local_address):
3444 Unconditionally call beneath target.
3445
3446 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3447
3448 * cli/cli-logging.c (pop_output_files): Assign targerr to
3449 gdb_stdtargerr.
3450
3451 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3452
3453 * MAINTAINERS (Write After Approval): Update my email address.
3454
3455 2014-07-02 Gary Benson <gbenson@redhat.com>
3456
3457 * proc-service.c (ps_xfer_memory): Update comment.
3458 (ps_pstop): Remove unused function.
3459 (ps_pcontinue): Likewise.
3460 (ps_lstop): Likewise.
3461 (ps_lcontinue): Likewise.
3462 (ps_lgetxregsize): Likewise.
3463 (ps_lgetxregs): Likewise.
3464 (ps_lsetxregs): Likewise.
3465 (ps_plog): Likewise.
3466 (ps_ptread): Likewise.
3467 (ps_ptwrite): Likewise.
3468
3469 2014-07-01 Mark Wielaard <mjw@redhat.com>
3470
3471 * dwarf2read.c (add_array_cv_type): New function.
3472 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3473 (read_tag_volatile_type): Likewise.
3474
3475 2014-07-01 Tom Tromey <tromey@redhat.com>
3476
3477 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3478 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3479 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3480 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3481 * command.h (cmd_cfunc_ftype): Move earlier.
3482 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3483 (add_com, add_info): Use cmd_cfunc_ftype.
3484
3485 2014-06-30 Tom Tromey <tromey@redhat.com>
3486
3487 * symtab.c (operator_chars): Make parameters and return type
3488 const.
3489 (file_matches): Make "files" const.
3490 (struct search_symbols_data) <files>: Now const.
3491 (search_symbols): Make "regexp" and "files" parameters const.
3492 Update.
3493 (symtab_symbol_info): Remove cast.
3494 (rbreak_command): Update.
3495 * symtab.h (search_symbols): Update.
3496
3497 2014-06-27 Yao Qi <yao@codesourcery.com>
3498
3499 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3500 Change parameter type to 'struct thread_info *'. Caller
3501 updated.
3502 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3503 Update declaration.
3504 * dummy-frame.c (struct dummy_frame_id): New.
3505 (dummy_frame_id_eq): New function.
3506 (struct dummy_frame) <id>: Change its type to 'struct
3507 dummy_frame_id'.
3508 (dummy_frame_push): Add parameter ptid and save it in
3509 dummy_frame_id.
3510 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3511 inferior_ptid.
3512 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3513 to inferior_ptid.
3514 (lookup_dummy_frame): Change parameter type to 'struct
3515 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3516 instead of frame_id_eq.
3517 (dummy_frame_pop): Add parameter ptid. Callers updated.
3518 Update comments. Compose dummy_frame_id and pass it to
3519 lookup_dummy_frame.
3520 (dummy_frame_discard): Add parameter ptid.
3521 (dummy_frame_sniffer): Compose dummy_frame_id and call
3522 dummy_frame_id_eq instead of frame_id_eq.
3523 (fprint_dummy_frames): Print ptid.
3524 * dummy-frame.h: Remove comments.
3525 (dummy_frame_push): Add ptid in declaration.
3526 (dummy_frame_pop, dummy_frame_discard): Likewise.
3527
3528 2014-06-26 Tom Tromey <tromey@redhat.com>
3529
3530 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3531 * command.h (error_no_arg): Update.
3532
3533 2014-06-26 Tom Tromey <tromey@redhat.com>
3534
3535 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3536 (do_show_command): Make "arg" const.
3537 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3538
3539 2014-06-26 Tom Tromey <tromey@redhat.com>
3540
3541 * record-full.c (record_full_get_bookmark): Make "args" const.
3542 (record_full_goto_bookmark): Make "raw_bookmark" const.
3543 * record.c (record_goto): New function.
3544 (cmd_record_goto): Use it. Now static.
3545 * record.h (record_goto): Declare.
3546 (cmd_record_goto): Remove declaration.
3547 * target-delegates.c: Rebuild.
3548 * target.h (struct target_ops) <to_get_bookmark,
3549 to_goto_bookmark>: Make parameter const.
3550
3551 2014-06-26 Tom Tromey <tromey@redhat.com>
3552
3553 * defs.h (generic_load): Update.
3554 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3555 * monitor.c (monitor_load): Make "args" const.
3556 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3557 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3558 const.
3559 (mips_load): Make "file" const.
3560 * remote-sim.c (gdbsim_load): Make "args" const.
3561 * remote.c (remote_load): Make "name" const.
3562 * symfile.c (generic_load): Make "args" const.
3563 * target-delegates.c: Rebuild.
3564 * target.c (target_load): Make "arg" const.
3565 (debug_to_load): Make "args" const.
3566 * target.h (struct target_ops) <to_load>: Make parameter const.
3567 (target_load): Update.
3568
3569 2014-06-26 Tom Tromey <tromey@redhat.com>
3570
3571 PR symtab/16902:
3572 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3573 (dwarf2_physname, read_partial_die)
3574 (guess_partial_die_structure_name, fixup_partial_die)
3575 (guess_full_die_structure_name, anonymous_struct_prefix)
3576 (dwarf2_name): Use per-BFD obstack.
3577
3578 2014-06-26 Yao Qi <yao@codesourcery.com>
3579
3580 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3581 dummyframe and this_id into inner block below.
3582
3583 2014-06-26 Yao Qi <yao@codesourcery.com>
3584
3585 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3586 with "signal_pass[0]" in the initialization of signal_pass.
3587
3588 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3589
3590 * record-btrace.c (record_btrace_generating_corefile)
3591 (record_btrace_prepare_to_generate_core)
3592 (record_btrace_done_generating_core): New.
3593 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3594 (record_btrace_store_registers, record_btrace_prepare_to_store):
3595 Forward request when generating a core file.
3596 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3597 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3598 to_done_generating_core.
3599
3600 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3601
3602 * target.h (target_ops) <to_prepare_to_generate_core>
3603 <to_done_generating_core>: New.
3604 (target_prepare_to_generate_core, target_done_generating_core): New.
3605 * target.c (target_prepare_to_generate_core)
3606 (target_done_generating_core): New.
3607 * target-delegates.c: Regenerate.
3608 * gcore.c: (write_gcore_file): Rename to ...
3609 (write_gcore_file_1): ...this.
3610 (write_gcore_file): Call target_prepare_to_generate_core
3611 and target_done_generating_core.
3612
3613 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3614
3615 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3616 * gcore.c (write_gcore_file): Free memory returned from
3617 make_corefile_notes.
3618 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3619 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3620
3621 2014-06-24 Yao Qi <yao@codesourcery.com>
3622
3623 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3624 (arm_linux_init_abi): Set skip_trampoline_code with
3625 gdbarch_skip_trampoline_code instead of
3626 find_solib_trampoline_target.
3627
3628 2014-06-24 Yao Qi <yao@codesourcery.com>
3629
3630 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3631 arm_skip_bx_reg returns non-zero.
3632
3633 2014-06-24 Yao Qi <yao@codesourcery.com>
3634
3635 * arm-tdep.c (arm_skip_bx_reg): New function.
3636 (arm_skip_stub): Call arm_skip_bx_reg.
3637
3638 2014-06-23 Don Breazeal <donb@codesourcery.com>
3639
3640 * MAINTAINERS: Add myself as write-after-approval maintainer.
3641
3642 2014-06-23 Pedro Alves <palves@redhat.com>
3643
3644 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3645 DR_CONTROL before setting DR0..DR3.
3646 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3647 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3648 bits of DR_CONTROL related to the debug register slot being
3649 disabled. If all slots are vacant, clear local slowdown as well,
3650 and assert DR_CONTROL is 0.
3651
3652 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3653
3654 * python/lib/gdb/command/xmethods.py
3655 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3656 current progspace only if the string "progspace" matches LOCUS_RE.
3657
3658 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3659
3660 Fix --with-system-readline with readline-6.3 patch 5.
3661 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3662 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3663 types.
3664
3665 2014-06-20 Tom Tromey <tromey@redhat.com>
3666
3667 * dwarf2read.c (dw2_get_real_path): Use correct type in
3668 OBSTACK_CALLOC.
3669 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3670
3671 2014-06-20 Gary Benson <gbenson@redhat.com>
3672
3673 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3674 * common/glibc_thread_db.h: Likewise.
3675 * common/i386-cpuid.h: Likewise.
3676 * common/i386-gcc-cpuid.h: Likewise.
3677 * common/linux-btrace.h: Likewise.
3678 * common/linux-osdata.h: Likewise.
3679 * common/linux-procfs.h: Likewise.
3680 * common/linux-ptrace.h: Likewise.
3681 * common/mips-linux-watch.h: Likewise.
3682 * common/linux-btrace.c: Moved to nat.
3683 * common/linux-osdata.c: Likewise.
3684 * common/linux-procfs.c: Likewise.
3685 * common/linux-ptrace.c: Likewise.
3686 * common/mips-linux-watch.c: Likewise.
3687 * nat/gdb_thread_db.h: Moved from common.
3688 * nat/glibc_thread_db.h: Likewise.
3689 * nat/i386-cpuid.h: Likewise.
3690 * nat/i386-gcc-cpuid.h: Likewise.
3691 * nat/linux-btrace.c: Likewise.
3692 * nat/linux-btrace.h: Likewise.
3693 * nat/linux-osdata.c: Likewise.
3694 * nat/linux-osdata.h: Likewise.
3695 * nat/linux-procfs.c: Likewise.
3696 * nat/linux-procfs.h: Likewise.
3697 * nat/linux-ptrace.c: Likewise.
3698 * nat/linux-ptrace.h: Likewise.
3699 * nat/mips-linux-watch.c: Likewise.
3700 * nat/mips-linux-watch.h: Likewise.
3701 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3702 (object file files): Reordered.
3703 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3704 of glibc_thread_db.h.
3705
3706 2014-06-20 Gary Benson <gbenson@redhat.com>
3707
3708 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3709 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3710 (i386_dr_low): Likewise.
3711 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3712 (i386_dr_low_set_addr): Likewise.
3713 (i386_dr_low_get_addr): Likewise.
3714 (i386_dr_low_can_set_control): Likewise.
3715 (i386_dr_low_set_control): Likewise.
3716 (i386_dr_low_get_control): Likewise.
3717 (i386_dr_low_get_status): Likewise.
3718 (i386_get_debug_register_length): Likewise.
3719 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3720 (i386_dr_low): Likewise.
3721 * nat/i386-dregs.c (i386-low.h): Remove include.
3722 (i386-nat.h): Likewise.
3723 (nat/i386-dregs.h): New include.
3724 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3725 (i386_dr_low_set_addr): Likewise.
3726 (i386_dr_low_get_addr): Likewise.
3727 (i386_dr_low_can_set_control): Likewise.
3728 (i386_dr_low_set_control): Likewise.
3729 (i386_dr_low_get_control): Likewise.
3730 (i386_dr_low_get_status): Likewise.
3731 (i386_get_debug_register_length): Likewise.
3732 (debug_hw_points): Likewise.
3733
3734 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3735
3736 * Makefile.in (SFILES): Add d-exp.y.
3737 (YYFILES): Add d-exp.c.
3738 (YYOBJ): Add d-exp.o.
3739 (local-maintainer-clean): Delete d-exp.c.
3740 * d-exp.y: New file.
3741 * d-lang.h (d_parse): New declaration.
3742 (d_error): New declaration.
3743 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3744 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3745 PREC_ORDER operators.
3746 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3747
3748 2014-06-19 Yao Qi <yao@codesourcery.com>
3749
3750 * gdbthread.h (any_running): Remove the declaration.
3751 * thread.c (any_running): Remove.
3752
3753 2014-06-19 Yao Qi <yao@codesourcery.com>
3754
3755 * gdbthread.h (struct thread_info) <state>: Change its type to
3756 'enum thread_state'. Update comments.
3757
3758 2014-06-19 Pedro Alves <palves@redhat.com>
3759
3760 * gdbthread.h (ALL_THREADS): Delete.
3761 (ALL_NON_EXITED_THREADS): New macro.
3762 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3763 instead of ALL_THREADS.
3764 * infrun.c (find_thread_needs_step_over)
3765 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3766 instead of ALL_THREADS.
3767 * record-btrace.c (record_btrace_open)
3768 (record_btrace_stop_recording, record_btrace_close)
3769 (record_btrace_is_replaying, record_btrace_resume)
3770 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3771 * remote.c (append_pending_thread_resumptions): Likewise.
3772 * thread.c (thread_apply_all_command): Likewise.
3773
3774 2014-06-19 Gary Benson <gbenson@redhat.com>
3775
3776 * i386-nat.c (i386_stopped_by_watchpoint):
3777 Use i386_dr_stopped_by_watchpoint.
3778 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3779 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3780
3781 2014-06-19 Gary Benson <gbenson@redhat.com>
3782
3783 * nat/i386-dregs.c: New file.
3784 * Makefile.in (i386-dregs.o): New rule.
3785 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3786 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3787 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3788 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3789 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3790 * config/i386/go32.mh (NATDEPFILES): Likewise.
3791 * config/i386/linux.mh (NATDEPFILES): Likewise.
3792 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3793 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3794 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3795 * i386-nat.h (debug_hw_points): New declaration.
3796 * i386-nat.c (breakpoint.h): Remove include.
3797 (command.h): Likewise.
3798 (target.h): Likewise.
3799 (gdb_assert.h): Likewise.
3800 (debug_hw_points): Made nonstatic.
3801 (debug_printf): Now in i386-dregs.c.
3802 (TARGET_HAS_DR_LEN_8): Likewise.
3803 (DR_CONTROL_SHIFT): Likewise.
3804 (DR_CONTROL_SIZE): Likewise.
3805 (DR_RW_EXECUTE): Likewise.
3806 (DR_RW_WRITE): Likewise.
3807 (DR_RW_READ): Likewise.
3808 (DR_RW_IORW): Likewise.
3809 (DR_LEN_1): Likewise.
3810 (DR_LEN_2): Likewise.
3811 (DR_LEN_4): Likewise.
3812 (DR_LEN_8): Likewise.
3813 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3814 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3815 (DR_ENABLE_SIZE): Likewise.
3816 (DR_LOCAL_SLOWDOWN): Likewise.
3817 (DR_GLOBAL_SLOWDOWN): Likewise.
3818 (DR_CONTROL_RESERVED): Likewise.
3819 (I386_DR_CONTROL_MASK): Likewise.
3820 (I386_DR_VACANT): Likewise.
3821 (I386_DR_LOCAL_ENABLE): Likewise.
3822 (I386_DR_GLOBAL_ENABLE): Likewise.
3823 (I386_DR_DISABLE): Likewise.
3824 (I386_DR_SET_RW_LEN): Likewise.
3825 (I386_DR_GET_RW_LEN): Likewise.
3826 (I386_DR_WATCH_HIT): Likewise.
3827 (i386_wp_op_t): Likewise.
3828 (i386_show_dr): Likewise.
3829 (i386_length_and_rw_bits): Likewise.
3830 (i386_insert_aligned_watchpoint): Likewise.
3831 (i386_remove_aligned_watchpoint): Likewise.
3832 (i386_handle_nonaligned_watchpoint): Likewise.
3833 (i386_update_inferior_debug_regs): Likewise.
3834 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3835 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3836 (i386_region_ok_for_watchpoint):
3837 Use i386_dr_region_ok_for_watchpoint.
3838 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3839
3840 2014-06-19 Gary Benson <gbenson@redhat.com>
3841
3842 * i386-nat.c (i386_insert_hw_breakpoint): Use
3843 i386_insert_watchpoint.
3844 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3845
3846 2014-06-19 Gary Benson <gbenson@redhat.com>
3847
3848 * i386-nat.c (i386_dr_show): Renamed to
3849 i386_show_dr and made static. All uses updated.
3850 (i386_dr_length_and_rw_bits): Renamed to
3851 i386_length_and_rw_bits and made static.
3852 All uses updated.
3853 (i386_dr_insert_aligned_watchpoint): Renamed to
3854 i386_insert_aligned_watchpoint and made static.
3855 All uses updated.
3856 (i386_dr_remove_aligned_watchpoint): Renamed to
3857 i386_remove_aligned_watchpoint and made static.
3858 All uses updated.
3859 (i386_dr_update_inferior_debug_regs): Renamed to
3860 i386_update_inferior_debug_regs and made static.
3861 All uses updated.
3862 * nat/i386-dregs.h (i386_dr_show): Removed.
3863 (i386_dr_length_and_rw_bits): Likewise.
3864 (i386_dr_insert_aligned_watchpoint): Likewise.
3865 (i386_dr_remove_aligned_watchpoint): Likewise.
3866 (i386_dr_update_inferior_debug_regs): Likewise.
3867
3868 2014-06-19 Gary Benson <gbenson@redhat.com>
3869
3870 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3871 * configure: Regenerate.
3872 * config.in: Likewise.
3873 * main.c (signal.h): New include.
3874 (setup_alternate_signal_stack): New function.
3875 (captured_main): Call the above.
3876 * cp-support.c (signal.h): New include.
3877 (catch_demangler_crashes): New flag.
3878 (SIGJMP_BUF): New define.
3879 (SIGSETJMP): Likewise.
3880 (SIGLONGJMP): Likewise.
3881 (gdb_demangle_jmp_buf): New static global.
3882 (gdb_demangle_attempt_core_dump): Likewise.
3883 (gdb_demangle_signal_handler): New function.
3884 (gdb_demangle): If catch_demangler_crashes is set, install the
3885 above signal handler before calling bfd_demangle, and restore
3886 the original signal handler afterwards. Display the offending
3887 symbol and call demangler_warning the first time a segmentation
3888 fault is caught.
3889 (_initialize_cp_support): New maint set/show command.
3890
3891 2014-06-19 Gary Benson <gbenson@redhat.com>
3892
3893 * utils.h (resource_limit_kind): New enum.
3894 (can_dump_core): New declaration.
3895 (warn_cant_dump_core): Likewise.
3896 (dump_core): Likewise.
3897 * utils.c (dump_core): Made nonstatic. Added new
3898 parameter "limit_kind".
3899 (can_dump_core): Made nonstatic. Moved printing code to...
3900 (warn_cant_dump_core): New function.
3901 (can_dump_core_warn): Likewise.
3902 (internal_vproblem): Replace calls to can_dump_core with
3903 calls to can_dump_core_warn. Supply new argument to each.
3904
3905 2014-06-19 Gary Benson <gbenson@redhat.com>
3906
3907 * utils.h (demangler_vwarning): New declaration.
3908 (demangler_warning): Likewise.
3909 * utils.c (struct internal_problem)
3910 <user_settable_should_quit>: New field.
3911 <user_settable_should_dump_core>: Likewise
3912 (internal_error_problem): Add values for above new fields.
3913 (internal_warning_problem): Likewise.
3914 (demangler_warning_problem): New static global.
3915 (demangler_vwarning): New function.
3916 (demangler_warning): Likewise.
3917 (add_internal_problem_command): Selectively add commands.
3918 (_initialize_utils): New internal problem command.
3919 * maint.c (maintenance_demangler_warning): New function.
3920 (_initialize_maint_cmds): New command.
3921
3922 2014-06-18 Tom Tromey <tromey@redhat.com>
3923
3924 * f-valprint.c (info_common_command_for_block): Update.
3925 * symtab.h (struct general_symbol_info) <common_block>: Now
3926 const.
3927
3928 2014-06-18 Tom Tromey <tromey@redhat.com>
3929
3930 * symtab.h (struct symtab) <blockvector>: Now const.
3931 * ada-lang.c (ada_add_global_exceptions): Update.
3932 * buildsym.c (augment_type_symtab): Update.
3933 * dwarf2read.c (dw2_lookup_symbol): Update.
3934 * jit.c (finalize_symtab): Update.
3935 * jv-lang.c (add_class_symtab_symbol): Update.
3936 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3937 Update.
3938 * objfiles.c (objfile_relocate1): Update.
3939 * psymtab.c (lookup_symbol_aux_psymtabs)
3940 (maintenance_check_psymtabs): Update.
3941 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3942 Update.
3943 * spu-tdep.c (spu_catch_start): Update.
3944 * symmisc.c (dump_symtab_1): Update.
3945 * symtab.c (lookup_global_symbol_from_objfile)
3946 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3947 (basic_lookup_transparent_type_quick)
3948 (basic_lookup_transparent_type, find_pc_sect_symtab)
3949 (find_pc_sect_line, search_symbols): Update.
3950 * block.c (find_block_in_blockvector): Make "bl" const.
3951 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3952 const.
3953 (blockvector_contains_pc): Make "bv" const.
3954 (block_for_pc_sect): Update.
3955 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3956 (blockvector_contains_pc): Update.
3957 * breakpoint.c (resolve_sal_pc): Update.
3958 * inline-frame.c (block_starting_point_at): Update.
3959
3960 2014-06-18 Tom Tromey <tromey@redhat.com>
3961
3962 * completer.c (complete_line): Make "line_buffer" const.
3963 * completer.h (complete_line): Update.
3964
3965 2014-06-18 Tom Tromey <tromey@redhat.com>
3966
3967 * symtab.c (add_macro_name): Remove unneeded cast.
3968
3969 2014-06-18 Tom Tromey <tromey@redhat.com>
3970
3971 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3972 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3973
3974 2014-06-18 Tom Tromey <tromey@redhat.com>
3975
3976 * probe.c (info_probes_for_ops): Make "arg" const.
3977 * probe.h (info_probes_for_ops): Update.
3978
3979 2014-06-18 Tom Tromey <tromey@redhat.com>
3980
3981 * varobj.c (varobj_create): Update.
3982 * valops.c (value_of_this): Update.
3983 * tracepoint.c (add_local_symbols, scope_info): Update.
3984 * symtab.h (struct general_symbol_info) <block>: Now const.
3985 * symtab.c (skip_prologue_sal)
3986 (default_make_symbol_completion_list_break_on)
3987 (skip_prologue_using_sal): Update.
3988 * stack.h (iterate_over_block_locals)
3989 (iterate_over_block_local_vars): Update.
3990 * stack.c (print_frame_args): Update.
3991 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3992 parameter const.
3993 (get_selected_block): Make return type const.
3994 * python/py-frame.c (frapy_block): Update.
3995 * python/py-block.c (gdbpy_block_for_pc): Update.
3996 * p-exp.y (%union) <bval>: Now const.
3997 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3998 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3999 * m2-exp.y (%union) <bval>: Now const.
4000 * linespec.c (get_current_search_block): Make return type const.
4001 (create_sals_line_offset, find_label_symbols): Update.
4002 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4003 Update.
4004 (block_starting_point_at): Make "block" const.
4005 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4006 (check_exception_resume): Update.
4007 * guile/scm-frame.c (gdbscm_frame_block): Update.
4008 * guile/scm-block.c (gdbscm_lookup_block): Update.
4009 * frame.h (get_frame_block): Update.
4010 (get_selected_block): Make return type const.
4011 * frame.c (frame_id_inner): Update.
4012 * f-valprint.c (info_common_command_for_block)
4013 (info_common_command): Update.
4014 * dwarf2loc.c (dwarf2_find_location_expression)
4015 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4016 (locexpr_describe_location_piece): Update.
4017 * c-exp.y (%union) <bval>: Now const.
4018 * breakpoint.c (resolve_sal_pc): Update.
4019 * blockframe.c (get_frame_block):Make return type const.
4020 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4021 (block_innermost_frame): Update.
4022 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4023 (block_for_pc, block_for_pc_sect): Update.
4024 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4025 'pblock' const.
4026 (block_for_pc_sect, block_for_pc): Make return type const.
4027 * ax-gdb.c (gen_expr): Update.
4028 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4029 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4030 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4031 (ada_read_var_value): Update.
4032 * ada-exp.y (struct name_info) <block>: Now const.
4033 (%union): Likewise.
4034 (block_lookup): Constify.
4035
4036 2014-06-18 Gary Benson <gbenson@redhat.com>
4037
4038 * nat/i386-dregs.h: New file.
4039 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4040 * i386-nat.h (i386-dregs.h): New include.
4041 (DR_FIRSTADDR): Now in i386-dregs.h.
4042 (DR_LASTADDR): Likewise.
4043 (DR_NADDR): Likewise.
4044 (DR_STATUS): Likewise.
4045 (DR_CONTROL): Likewise.
4046 (i386_debug_reg_state): Likewise.
4047 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4048
4049 2014-06-18 Don Breazeal <donb@codesourcery.com>
4050
4051 * breakpoint.c (set_longjmp_breakpoint): Call
4052 momentary_breakpoint_from_master with additional argument.
4053 (set_longjmp_breakpoint_for_call_dummy): Call
4054 momentary_breakpoint_from_master with additional argument.
4055 (set_std_terminate_breakpoint): Call
4056 momentary_breakpoint_from_master with additional argument.
4057 (momentary_breakpoint_from_master): Add argument to function
4058 definition and use it to initialize structure member flag.
4059 (clone_momentary_breakpoint): Call
4060 momentary_breakpoint_from_master with additional argument.
4061 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4062 member flags set in momentary_breakpoint_from_master.
4063
4064 2014-06-18 Gary Benson <gbenson@redhat.com>
4065
4066 * i386-nat.c (i386_show_dr): Renamed to
4067 i386_dr_show and made nonstatic. All uses updated.
4068 (i386_length_and_rw_bits): Renamed to
4069 i386_dr_length_and_rw_bits and made nonstatic.
4070 All uses updated.
4071 (i386_insert_aligned_watchpoint): Renamed to
4072 i386_dr_insert_aligned_watchpoint and made nonstatic.
4073 All uses updated.
4074 (i386_remove_aligned_watchpoint): Renamed to
4075 i386_dr_remove_aligned_watchpoint and made nonstatic.
4076 All uses updated.
4077 (i386_update_inferior_debug_regs): Renamed to
4078 i386_dr_update_inferior_debug_regs and made nonstatic.
4079 All uses updated.
4080
4081 2014-06-18 Gary Benson <gbenson@redhat.com>
4082
4083 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4084 (i386_dr_low_can_set_control): Likewise.
4085 (i386_dr_low_set_addr): Likewise.
4086 (i386_dr_low_set_control): Likewise.
4087 (i386_dr_low_get_addr): Likewise.
4088 (i386_dr_low_get_status): Likewise.
4089 (i386_dr_low_get_control): Likewise.
4090 (i386_insert_aligned_watchpoint): Use new macros.
4091 (i386_update_inferior_debug_regs): Likewise.
4092 (i386_stopped_data_address): Likewise.
4093
4094 2014-06-18 Gary Benson <gbenson@redhat.com>
4095
4096 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4097 New parameter. All uses updated.
4098
4099 2014-06-18 Gary Benson <gbenson@redhat.com>
4100
4101 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4102 All uses updated.
4103
4104 2014-06-18 Gary Benson <gbenson@redhat.com>
4105
4106 * i386-nat.c (debug_printf): New macro.
4107 (i386_get_debug_register_length): Likewise.
4108 (TARGET_HAS_DR_LEN_8): Use above macro.
4109 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4110 and printf_unfiltered. Use phex to format values.
4111
4112 2014-06-18 Gary Benson <gbenson@redhat.com>
4113
4114 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4115 Make const.
4116
4117 2014-06-18 Gary Benson <gbenson@redhat.com>
4118
4119 * i386-nat.c: Comment changes.
4120
4121 2014-06-18 Gary Benson <gbenson@redhat.com>
4122
4123 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4124
4125 2014-06-18 Gary Benson <gbenson@redhat.com>
4126
4127 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4128 (i386_insert_aligned_watchpoint): Likewise.
4129 (i386_remove_aligned_watchpoint): Likewise.
4130 (i386_handle_nonaligned_watchpoint): Likewise.
4131
4132 2014-06-18 Gary Benson <gbenson@redhat.com>
4133
4134 * i386-nat.c: Whitespace changes.
4135
4136 2014-06-17 Samuel Bronson <naesten@gmail.com>
4137
4138 * MAINTAINERS: Update Roland McGrath's email address.
4139 Thanks to Sergio Durigan Junior for pointing out that he left
4140 Red Hat a while ago, and giving me a current address.
4141
4142 2014-06-17 Tom Tromey <tromey@redhat.com>
4143
4144 * utils.h (savestring): Remove declaration.
4145
4146 2014-06-17 Tom Tromey <tromey@redhat.com>
4147
4148 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4149
4150 2014-06-16 Keith Seitz <keiths@redhat.com>
4151
4152 PR mi/15863
4153 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4154 to update the varobj if inferior_ptid is null_ptid.
4155
4156 2014-06-16 Tom Tromey <tromey@redhat.com>
4157
4158 * target.h (struct target_ops) <to_info_proc>: Make parameter
4159 const.
4160 (target_info_proc): Update.
4161 * target.c (target_info_proc): Make "args" const.
4162 * procfs.c (procfs_info_proc): Update.
4163 * linux-tdep.c (linux_info_proc): Update.
4164 (linux_core_info_proc_mappings): Make "args" const.
4165 (linux_core_info_proc): Update.
4166 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4167 * gdbarch.c: Rebuild.
4168 * gdbarch.h: Rebuild.
4169 * corelow.c (core_info_proc): Update.
4170
4171 2014-06-16 Tom Tromey <tromey@redhat.com>
4172
4173 * target.h (struct target_ops) <to_disconnect>: Make parameter
4174 const.
4175 (target_disconnect): Update.
4176 * target.c (target_disconnect): Make "args" const.
4177 * target-delegates.c: Rebuild.
4178 * remote.c (remote_disconnect): Update.
4179 * record.h (record_disconnect): Update.
4180 * record.c (record_disconnect): Update.
4181 * inf-child.c (inf_child_disconnect): Update.
4182
4183 2014-06-16 Tom Tromey <tromey@redhat.com>
4184
4185 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4186 * target.c (debug_to_rcmd, default_rcmd): Update.
4187 * target-delegates.c: Rebuild.
4188 * remote.c (remote_rcmd): Update.
4189 * monitor.c (monitor_rcmd): Update.
4190
4191 2014-06-16 Pedro Alves <palves@redhat.com>
4192
4193 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4194 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4195 have OBJF_SHARED set.
4196 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4197 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4198 instead of OBJF_USERLOADED.
4199 * objfiles.h (OBJF_SHARED): Update comment.
4200 (userloaded_objfile_contains_address_p): Rename to ...
4201 (shared_objfile_contains_address_p): ... this, and update
4202 comments.
4203 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4204 new objfile.
4205 (remove_symbol_file_command): Skip objfiles that don't have
4206 OBJF_SHARED set.
4207
4208 2014-06-16 Tom Tromey <tromey@redhat.com>
4209
4210 * minsyms.h (prim_record_minimal_symbol)
4211 (prim_record_minimal_symbol_and_info): Update comments.
4212
4213 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4214
4215 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4216 or --without-guile, according to how GDB was built.
4217
4218 2014-06-13 Tom Tromey <tromey@redhat.com>
4219
4220 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4221 to help_list.
4222 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4223 to help_list.
4224 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4225 help_list.
4226 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4227 help_list.Pass all_commands, not -1, to help_list.
4228 * cli/cli-dump.c (dump_command, append_command)
4229 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4230 (binary_dump_command, binary_append_command): Pass all_commands,
4231 not -1, to help_list.
4232 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4233 -1, to help_list.
4234 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4235 -1, to help_list.
4236 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4237 help_list.
4238 * top.c (set_history): Pass all_commands, not -1, to help_list.
4239 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4240 all_commands, not -1, to help_list.
4241 * symfile.c (overlay_command): Pass all_commands, not -1, to
4242 help_list.
4243 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4244 help_list.
4245 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4246 help_list.
4247 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4248 -1, to help_list.
4249 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4250 not -1, to help_list.
4251 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4252 not -1, to help_list.
4253 * maint.c (maintenance_command, maintenance_info_command)
4254 (maintenance_print_command, maintenance_set_cmd): Pass
4255 all_commands, not -1, to help_list.
4256 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4257 help_list.
4258 * language.c (set_check): Pass all_commands, not -1, to help_list.
4259 * infcmd.c (unset_command): Pass all_commands, not -1, to
4260 help_list.
4261 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4262 help_list.
4263 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4264 help_list.
4265 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4266 help_list.
4267 * breakpoint.c (save_command): Pass all_commands, not -1, to
4268 help_list.
4269 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4270 all_commands, not -1, to help_list.
4271
4272 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4273
4274 * regcache.c (struct register_to_invalidate): New structure.
4275 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4276 functions.
4277 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4278
4279 2014-06-12 Yao Qi <yao@codesourcery.com>
4280
4281 * varobj.c (varobj_get_num_children): Call
4282 varobj_is_dynamic_p.
4283 (varobj_list_children): Likewise.
4284 (varobj_update): Likewise. Update comments.
4285
4286 2014-06-12 Yao Qi <yao@codesourcery.com>
4287
4288 * varobj.c (varobj_pretty_printed_p): Rename to ...
4289 (varobj_is_dynamic_p): ... this. New function.
4290 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4291 (varobj_is_dynamic_p): Declare.
4292 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4293 (mi_print_value_p, varobj_update_one): Likewise.
4294
4295 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4296 Yao Qi <yao@codesourcery.com>
4297
4298 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4299 (varobj_get_iterator): Wrap up code for pretty-printer by
4300 "#if HAVE_PYTHON" and "#endif".
4301 (update_dynamic_varobj_children): Likewise.
4302
4303 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4304 Yao Qi <yao@codesourcery.com>
4305
4306 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4307 gdb_python_initialized is false. Move some code from varobj.c.
4308 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4309 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4310 (struct varobj_item): Moved to varobj-iter.h".
4311 (varobj_clear_saved_item): New function.
4312 (update_dynamic_varobj_children): Move python-related code to
4313 py-varobj.c.
4314 (free_variable): Call varobj_clear_saved_item and
4315 varobj_iter_delete.
4316
4317 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4318 Yao Qi <yao@codesourcery.com>
4319
4320 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4321 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4322 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4323 (py-varobj.o): New rule.
4324 * python/py-varobj.c: New file.
4325 * python/python-internal.h (py_varobj_get_iterator): Declare.
4326 * varobj-iter.h: New file.
4327 * varobj.c: Include "varobj-iter.h"
4328 (struct varobj) <child_iter>: Change its type from "PyObject *"
4329 to "struct varobj_iter *".
4330 <saved_item>: Likewise.
4331 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4332 [HAVE_PYTHON] (varobj_get_iterator): New function.
4333 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4334 python-specific code to python/py-varobj.c.
4335 (install_visualizer): Call varobj_iter_delete instead of
4336 Py_XDECREF.
4337 * varobj.h (varobj_ensure_python_env): Declare.
4338
4339 2014-06-12 Yao Qi <yao@codesourcery.com>
4340
4341 * varobj.c (struct varobj_item): New structure.
4342 (create_child_with_value): Update declaration.
4343 (varobj_add_child): Replace arguments 'name' and 'value' with
4344 'item'. All callers updated.
4345 (install_dynamic_child): Likewise.
4346 (update_dynamic_varobj_children): Likewise.
4347 (varobj_add_child): Likewise.
4348 (create_child_with_value): Likewise.
4349
4350 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4351
4352 * NEWS: Create a new section for the next release branch.
4353 Rename the section of the current branch, now that it has
4354 been cut.
4355
4356 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4357
4358 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4359 * version.in: Bump version to 7.8.50.DATE-cvs.
4360
4361 2014-06-11 Pedro Alves <palves@redhat.com>
4362
4363 PR remote/17028
4364 * ser-mingw.c (net_windows_socket_check_pending): New function.
4365 (net_windows_select_thread): Ignore spurious wakeups. Use
4366 net_windows_socket_check_pending.
4367 (net_windows_wait_handle): Check for pending events with
4368 ioctlsocket, through net_windows_socket_check_pending, instead of
4369 checking the socket's event.
4370
4371 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4372
4373 * python/python-internal.h (gdb_PyObject_GetAttrString)
4374 (gdb_PyObject_HasAttrString): New inline function definitions.
4375 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4376 char * of the second argument to PyObject_GetAttrString.
4377
4378 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4379
4380 * serial.c (serial_write): Fix index of character to be printed
4381 in call to serial_logchar when serial debug traces are enabled.
4382
4383 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4384
4385 * gdbtypes (resolve_dynamic_range): Add function description.
4386
4387 2014-06-09 Pedro Alves <palves@redhat.com>
4388
4389 * linux-nat.c (linux_child_follow_fork): Initialize status with
4390 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4391 inner block. Only pass the signal to PTRACE_DETACH if in pass
4392 state.
4393
4394 2014-06-09 Gary Benson <gbenson@redhat.com>
4395
4396 * common/signals.c (gdb_signal_from_host): Reorder to separate
4397 the always-available ANSI-standard signals from the signals that
4398 require checking.
4399 (do_gdb_signal_to_host): Likewise.
4400 * proc-events.c (signal_table): Likewise.
4401
4402 2014-06-08 Hui Zhu <hui@codesourcery.com>
4403
4404 * common/linux-ptrace.c (linux_disable_event_reporting): New
4405 function.
4406 * common/linux-ptrace.h (linux_disable_event_reporting): New
4407 declaration.
4408 * linux-nat.c (linux_child_follow_fork): Do a single step before
4409 detach.
4410
4411 2014-06-07 Keith Seitz <keiths@redhat.com>
4412
4413 Revert:
4414 PR c++/16253
4415 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4416 from symbol_matches_domain in symtab.c. All local callers
4417 of symbol_matches_domain updated.
4418 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4419 search STRUCT_DOMAIN.
4420 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4421 independently. standard_lookup will do that automatically.
4422 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4423 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4424 (cp_lookup_symbol_in_namespace): Likewise.
4425 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4426 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4427 may return a STRUCT_DOMAIN match.
4428 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4429 * cp-support.c: Include language.h.
4430 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4431 VAR_DOMAIN.
4432 * psymtab.c (match_partial_symbol): Compare the requested
4433 domain with the symbol's domain directly.
4434 (lookup_partial_symbol): Likewise.
4435 * symtab.c (lookup_symbol_in_language): Explain when/why
4436 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4437 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4438 appropriate languages.
4439 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4440 and moved to ada-lang.c
4441 (lookup_block_symbol): Explain that this function only returns
4442 symbol matching the requested DOMAIN.
4443 Compare the requested domain with the symbol's domain directly.
4444 (iterate_over_symbols): Compare the requested domain with the
4445 symbol's domain directly.
4446 * symtab.h (symbol_matches_domain): Remove.
4447
4448 2014-06-06 Doug Evans <xdje42@gmail.com>
4449
4450 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4451 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4452 (gdbscm_guile_version_is_at_least): Declare.
4453 (gdbscm_scm_string_to_int): Declare.
4454 * guile/guile.c (gdbscm_guile_major_version): New global.
4455 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4456 (guile_datadir): New static global.
4457 (gdbscm_guile_data_directory): New function.
4458 (initialize_scheme_side): Update.
4459 (misc_guile_functions): Add guile-data-directory.
4460 (initialize_gdb_module): Fetch guile version number.
4461 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4462 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4463 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4464 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4465 comments.
4466 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4467 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4468 * guile/scm-value.c (gdbscm_value_to_string): Only call
4469 scm_port_conversion_strategy if Guile version >= 2.0.6.
4470
4471 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4472
4473 * main.c (print_gdb_help): Add -q and --silent.
4474
4475 2014-06-06 Gary Benson <gbenson@redhat.com>
4476
4477 * common/signals.c: Remove preprocessor conditionals for
4478 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4479 SIGSEGV and SIGTERM.
4480 * proc-events.c: Likewise.
4481
4482 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4483
4484 * symfile.c (symfile_free_objfile): Remove restriction to
4485 OBJF_USERLOADED.
4486 * symfile-mem.c (symbol_file_add_from_memory): Call
4487 add_target_sections_of_objfile.
4488
4489 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4490
4491 * guile/scm-value.c (gdbscm_history_append_x): Use
4492 'vlscm_get_value_smob_arg_unsafe' instead of
4493 'vlscm_scm_to_value'.
4494
4495 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4496
4497 PR mi/15806
4498 * utils.c (printchar): Don't escape at all if quoter is NUL.
4499 Update function documentation to clarify effect of parameter
4500 QUOTER.
4501 * remote.c (escape_buffer): Pass '\\' as the quoter to
4502 fputstrn_unfiltered.
4503 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4504 generate the output.
4505 (mi_solib_unloaded): Same.
4506
4507 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4508
4509 * development.sh: Delete.
4510 * Makefile.in (config.status): Adjust dependency on development.sh.
4511 * configure.ac: Adjust development.sh source call.
4512 * configure: Regenerate.
4513
4514 2014-06-04 Doug Evans <xdje42@gmail.com>
4515
4516 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4517 is_scheme_bkpt, spec.
4518 (bpscm_make_breakpoint_smob): Initialize new members.
4519 (gdbscm_create_breakpoint_x): Split into two ...
4520 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4521 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4522 (scheme_function breakpoint_functions): Update.
4523 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4524 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4525 register-breakpoint!.
4526
4527 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4528
4529 PR server/17023
4530 * mem-break.c (z_type_supported): Return zero if
4531 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4532
4533 2014-06-04 Tom Tromey <tromey@redhat.com>
4534
4535 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4536 value_from_contents_and_address_unresolved.
4537 (ada_template_to_fixed_record_type_1): Likewise.
4538 (ada_which_variant_applies): Likewise.
4539 * value.h (value_from_contents_and_address_unresolved): Declare.
4540 * value.c (value_from_contents_and_address_unresolved): New
4541 function.
4542 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4543 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4544 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4545
4546 2014-06-04 Tom Tromey <tromey@redhat.com>
4547
4548 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4549
4550 2014-06-04 Tom Tromey <tromey@redhat.com>
4551
4552 * procfs.c (procfs_attach): Make "args" const.
4553 * windows-nat.c (windows_attach): Make "args" const.
4554 * nto-procfs.c (procfs_attach): Make "args" const.
4555 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4556 * go32-nat.c (go32_attach): Make "args" const.
4557 * gnu-nat.c (gnu_attach): Make "args" const.
4558 * darwin-nat.c (darwin_attach): Make "args" const.
4559 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4560 * linux-nat.c (linux_nat_attach): Make "args" const.
4561 * remote.c (extended_remote_attach_1, extended_remote_attach):
4562 Make "args" const.
4563 * target.h (struct target_ops) <to_attach>: Make "args" const.
4564 (find_default_attach): Likewise.
4565 * utils.c (parse_pid_to_attach): Make "args" const.
4566 * utils.h (parse_pid_to_attach): Update.
4567
4568 2014-06-04 Tom Tromey <tromey@redhat.com>
4569
4570 * target-delegates.c: Rebuild.
4571 * target.c (default_thread_address_space): New function.
4572 (target_thread_address_space): Simplify.
4573 * target.h (struct target_ops) <to_thread_address_space>: Add
4574 TARGET_DEFAULT_FUNC.
4575
4576 2014-06-04 Doug Evans <xdje42@gmail.com>
4577
4578 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4579
4580 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4581
4582 * record-btrace.c: Include event-loop.h and inf-loop.h.
4583 (record_btrace_resume_exec_dir)
4584 (record_btrace_async_inferior_event_handler)
4585 (record_btrace_handle_async_inferior_event): New.
4586 (record_btrace_open): Create async event handler.
4587 (record_btrace_close): Delete async event handler.
4588 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4589 Mark async event handler.
4590 (record_btrace_execution_direction): New.
4591 (init_record_btrace_ops): Initialize to_execution_direction.
4592
4593 2014-06-03 Doug Evans <xdje42@gmail.com>
4594
4595 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4596 (gdbscm_make_parameter): Ditto.
4597
4598 2014-06-03 Doug Evans <dje@google.com>
4599
4600 * exec.c (exec_close_1): Call clear_section_table instead of
4601 resize_section_table.
4602 (clear_section_table): New function.
4603 (resize_section_table): Make static. Rename arg num_added to
4604 adjustment.
4605 * exec.h (clear_section_table): Declare.
4606 (resize_section_table): Delete.
4607 * progspace.c (release_program_space): Call clear_section_table
4608 instead of resize_section_table.
4609
4610 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4611
4612 * NEWS (Python Scripting): Add entry about the new xmethods
4613 feature.
4614
4615 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4616
4617 * python/py-xmethods.c: New file.
4618 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4619 (objfpy_dealloc): XDECREF on the new xmethods field.
4620 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4621 field.
4622 (objfpy_get_xmethods): New function.
4623 (objfile_getset): New entry 'xmethods'.
4624 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4625 (pspy_dealloc): XDECREF on the new xmethods field.
4626 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4627 field.
4628 (pspy_get_xmethods): New function.
4629 (pspace_getset): New entry 'xmethods'.
4630 * python/python-internal.h: Add declarations for new functions.
4631 * python/python.c (_initialize_python): Invoke
4632 gdbpy_initialize_xmethods.
4633 * python/lib/gdb/__init__.py (xmethods): New
4634 attribute.
4635 * python/lib/gdb/xmethod.py: New file.
4636 * python/lib/gdb/command/xmethods.py: New file.
4637
4638 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4639
4640 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4641 best match method returned by find_overload_match is an xmethod.
4642 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4643 the best matching operator returned by find_overload_match is an
4644 xmethod.
4645 * valops.c: #include "extension.h".
4646 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4647 Return void. The list of matching source methods is returned in
4648 "fn_list" and a vector of matching debug method workers is
4649 returned in "xm_worker_vec". Update all callers.
4650 (value_find_oload_method_list): Likewise.
4651 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4652 non-NULL, then the index of the best matching method in this
4653 vector is returned. Update all callers.
4654 (find_overload_match): Include xmethods while performing overload
4655 resolution.
4656
4657 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4658
4659 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4660 * extension-priv.h (struct extension_language_ops): Add the
4661 xmethod interface.
4662 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4663 get_matching_xmethod_workers, get_xmethod_argtypes,
4664 invoke_xmethod, free_xmethod_worker,
4665 free_xmethod_worker_vec): New functions.
4666 * extension.h: #include "common/vec.h".
4667 New function declarations.
4668 (struct xmethod_worker): New struct.
4669 (VEC (xmethod_worker_ptr)): New vector type.
4670 (xmethod_worker_ptr): New typedef.
4671 (xmethod_worker_vec): Likewise.
4672 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4673 builtin_type.
4674 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4675 (struct builtin_type): New field "xmethod".
4676 * valarith.c (value_ptradd): Assert that the value argument is not
4677 lval_xcallable.
4678 * valops.c (value_must_coerce_to_target): Return 0 for
4679 lval_xcallable values.
4680 * value.c (struct value): New field XM_WORKER in the field
4681 LOCATION.
4682 (value_address, value_raw_address): Return 0 for lval_xcallable
4683 values.
4684 (set_value_address): Assert that the value is not an
4685 lval_xcallable.
4686 (value_free): Free the associated xmethod worker when freeing
4687 lval_xcallable values.
4688 (set_value_component_location): Assert that the WHOLE value is not
4689 lval_xcallable.
4690 (value_of_xmethod, call_xmethod): New functions.
4691 * value.h: Declare "struct xmethod_worker".
4692 Declare new functions value_of_xmethod, call_xmethod.
4693
4694 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4695 Pedro Alves <palves@redhat.com>
4696
4697 PR breakpoints/17000
4698 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4699 New function, extracted from software_breakpoint_inserted_here_p.
4700 (software_breakpoint_inserted_here_p): Replace factored out code
4701 by call to find_non_raw_software_breakpoint_inserted_here.
4702 (bp_target_info_copy_insertion_state): New function.
4703 (bkpt_insert_location): Handle the case of a single-step
4704 breakpoint already inserted at the same address.
4705 (bkpt_remove_location): Handle the case of a single-step
4706 breakpoint still inserted at the same address.
4707 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4708 breakpoint already inserted at the same address.
4709 (deprecated_remove_raw_breakpoint): Handle the case of a
4710 non-raw breakpoint still inserted at the same address.
4711 (find_single_step_breakpoint): New function, extracted from
4712 single_step_breakpoint_inserted_here_p.
4713 (find_single_step_breakpoint): New function,
4714 factored out from single_step_breakpoint_inserted_here_p.
4715 (single_step_breakpoint_inserted_here_p): Reimplement.
4716
4717 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4718
4719 Pushed by Joel Brobecker <brobecker@adacore.com>
4720 * source.c (show_substitute_path_command): Fix display of matching
4721 substitution rules.
4722
4723 2014-06-03 Gary Benson <gbenson@redhat.com>
4724
4725 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4726
4727 2014-06-02 Doug Evans <xdje42@gmail.com>
4728
4729 Add parameter support for Guile.
4730 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4731 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4732 (scm-param.o): New rule.
4733 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4734 (gdbscm_misc_error): Declare.
4735 (gdbscm_canonicalize_command_name): Declare.
4736 (gdbscm_scm_to_host_string): Declare.
4737 (gdbscm_scm_from_host_string): Declare.
4738 (gdbscm_initialize_parameters): Declare.
4739 * guile/guile.c (initialize_gdb_module): Call
4740 gdbscm_initialize_parameters.
4741 * guile/lib/gdb.scm: Export parameter symbols.
4742 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4743 cmdscm_canonicalize_name and made public. All callers updated.
4744 * guile/scm-exception.c (gdbscm_misc_error): New function.
4745 * guile/scm-param.c: New file.
4746 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4747 (gdbscm_scm_to_host_string): New function.
4748 (gdbscm_scm_from_host_string): New function.
4749 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4750
4751 2014-06-02 Doug Evans <xdje42@gmail.com>
4752
4753 Add command support for Guile.
4754 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4755 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4756 (scm-cmd.o): New rule.
4757 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4758 (gdbscm_user_error_p): Declare.
4759 (gdbscm_parse_command_name): Declare.
4760 (gdbscm_valid_command_class_p): Declare.
4761 (gdbscm_initialize_commands): Declare.
4762 * guile/guile.c (initialize_gdb_module): Call
4763 gdbscm_initialize_commands.
4764 * guile/lib/gdb.scm: Export command symbols.
4765 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4766 (throw-user-error): New function.
4767 * guile/scm-cmd.c: New file.
4768 * guile/scm-exception.c (user_error_symbol): New static global.
4769 (gdbscm_user_error_p): New function.
4770 (gdbscm_initialize_exceptions): Set user_error_symbol.
4771 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4772
4773 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4774
4775 * top.c (command_loop): Handle comments here...
4776 (command_line_input): ... not here.
4777
4778 2014-06-02 Doug Evans <xdje42@gmail.com>
4779
4780 Add progspace support for Guile.
4781 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4782 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4783 (scm-progspace.o): New rule.
4784 * guile/guile-internal.h (pspace_smob): New typedef.
4785 (psscm_pspace_smob_pretty_printers): Declare.
4786 (psscm_pspace_smob_from_pspace): Declare.
4787 (psscm_scm_from_pspace): Declare.
4788 * guile/guile.c (initialize_gdb_module): Call
4789 gdbscm_initialize_pspaces.
4790 * guile/lib/gdb.scm: Export progspace symbols.
4791 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4792 support.
4793 (append-pretty-printer!): Ditto.
4794 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4795 Implement.
4796 * guile/scm-progspace.c: New file.
4797
4798 2014-06-03 Alan Modra <amodra@gmail.com>
4799
4800 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4801 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4802
4803 2014-06-02 Doug Evans <dje@google.com>
4804
4805 Add support for skeletonless type units.
4806 * dwarf2read.c (struct dwarf2_per_objfile): New member
4807 n_allocated_type_units.
4808 (struct dwarf2_per_objfile) <tu_stats>: New member
4809 nr_all_type_units_reallocs.
4810 (create_signatured_type_table_from_index): Initialize
4811 n_allocated_type_units
4812 (create_all_type_units): Ditto.
4813 (add_type_unit): Move up in file. New arg slot.
4814 All callers updated. Increase space for all_type_units more
4815 efficiently.
4816 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4817 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4818 (lookup_dwp_signatured_type): Ditto.
4819 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4820 All callers updated.
4821 (build_type_psymtabs_1): Leave type_unit_groups as
4822 NULL if no TUs present.
4823 (print_tu_stats): New function.
4824 (process_skeletonless_type_unit): New function.
4825 (process_dwo_file_for_skeletonless_type_units): New
4826 function.
4827 (process_skeletonless_type_units): New function.
4828 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4829 Call print tu_stats if debugging enabled.
4830
4831 2014-06-02 Pedro Alves <palves@redhat.com>
4832
4833 * breakpoint.c (build_target_command_list): Don't build a command
4834 list if we have any duplicate location that isn't a dprintf.
4835
4836 2014-06-02 Pedro Alves <palves@redhat.com>
4837
4838 * breakpoint.c (dprintf_breakpoint_hit): New function.
4839 (initialize_breakpoint_ops): Install it as dprintf's
4840 breakpoint_hit method.
4841
4842 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4843
4844 * source.c (substitute_path_rule_matches): Simplify using
4845 filename_ncmp instead of FILENAME_CMP.
4846
4847 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4848
4849 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4850
4851 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4852
4853 * configure.ac: When Guile is available, check for the
4854 availability of 'scm_new_smob'.
4855 * configure, config.h.in: Regenerate.
4856 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4857 function.
4858
4859 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4860
4861 * frame.c (struct frame_info): Add stop_string field.
4862 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4863 (get_prev_frame_always): Old content moved into
4864 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4865 TRY_CATCH, handle MEMORY_ERROR exceptions.
4866 (frame_stop_reason_string): New function definition.
4867 * frame.h (unwind_stop_reason_to_string): Extend comment to
4868 mention frame_stop_reason_string.
4869 (frame_stop_reason_string): New function declaration.
4870 * stack.c (frame_info): Switch to frame_stop_reason_string.
4871 (backtrace_command_1): Switch to frame_stop_reason_string.
4872 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4873 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4874 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4875
4876 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4877
4878 * frame.c (frame_stop_reason_string): Rename to ...
4879 (unwind_stop_reason_to_string): this.
4880 * frame.h (frame_stop_reason_string): Rename to ...
4881 (unwind_stop_reason_to_string): this.
4882 * stack.c (frame_info): Update call to frame_stop_reason_string.
4883 (backtrace_command_1): Likewise.
4884 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4885 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4886
4887 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4888
4889 * frame.c (remove_prev_frame): New function.
4890 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4891 remove_prev_frame.
4892
4893 2014-05-29 Pedro Alves <palves@redhat.com>
4894
4895 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4896 and make it const. When a single-step decays to a continue,
4897 clear 'step', not 'hw_step'. Pass whether the caller wanted
4898 to step to user_visible_resume_ptid, not what we ask the
4899 target to do.
4900
4901 2014-05-29 Pedro Alves <palves@redhat.com>
4902
4903 * infrun.c (process_event_stop_test, handle_step_into_function)
4904 (handle_step_into_function_backward): Adjust.
4905 Don't set the even thread's stop_step and call stop_waiting before
4906 calling end_stepping_range. Instead do that ...
4907 (end_stepping_range): ... here. Take an ecs pointer parameter.
4908
4909 2014-05-29 Pedro Alves <palves@redhat.com>
4910
4911 * infrun.c (stop_stepping): Rename to ...
4912 (stop_waiting): ... this.
4913 (proceed): Update comment.
4914 (process_event_stop_test, handle_inferior_event)
4915 (handle_signal_stop, handle_step_into_function)
4916 (handle_step_into_function_backward): Update.
4917
4918 2014-05-29 Pedro Alves <palves@redhat.com>
4919
4920 * infcall.c (run_inferior_call): Don't check whether the current
4921 thread is running after the proceed call.
4922
4923 2014-05-29 Pedro Alves <palves@redhat.com>
4924 Tom Tromey <tromey@redhat.com>
4925
4926 * NEWS: Mention "maint set target-async", "set mi-async", and that
4927 background execution commands are now always available.
4928 * target.h (target_async_permitted): Update comment.
4929 * target.c (target_async_permitted, target_async_permitted_1):
4930 Default to 1.
4931 (set_target_async_command): Rename to ...
4932 (maint_set_target_async_command): ... this.
4933 (show_target_async_command): Rename to ...
4934 (maint_show_target_async_command): ... this.
4935 (_initialize_target): Adjust.
4936 * infcmd.c (prepare_execution_command): Make extern.
4937 * inferior.h (prepare_execution_command): Declare.
4938 * infrun.c (set_observer_mode): Leave target async alone.
4939 * mi/mi-interp.c (mi_interpreter_init): Install
4940 mi_on_sync_execution_done as sync_execution_done observer.
4941 (mi_on_sync_execution_done): New function.
4942 (mi_execute_command_input_handler): Don't print the prompt if we
4943 just started a synchronous command with an async target.
4944 (mi_on_resume): Check sync_execution before printing prompt.
4945 * mi/mi-main.h (mi_async_p): Declare.
4946 * mi/mi-main.c: Include gdbcmd.h.
4947 (mi_async_p): New function.
4948 (mi_async, mi_async_1): New globals.
4949 (set_mi_async_command, show_mi_async_command, mi_async): New
4950 functions.
4951 (exec_continue): Call prepare_execution_command.
4952 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4953 (mi_execute_async_cli_command): Use mi_async_p.
4954 (_initialize_mi_main): Install "set mi-async". Make
4955 "target-async" a deprecated alias.
4956
4957 2014-05-29 Pedro Alves <palves@redhat.com>
4958
4959 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4960 (_initialize_cli_interp): Adjust.
4961 * event-loop.c: Include "observer.h".
4962 (start_event_loop): Notify 'command_error' observers instead of
4963 calling display_gdb_prompt. Remove FIXME comment.
4964 * event-top.c (display_gdb_prompt): Remove call into the
4965 interpreters.
4966 * inf-loop.c: Include "observer.h".
4967 (inferior_event_handler): Notify 'command_error' observers instead
4968 of calling display_gdb_prompt.
4969 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4970 observers instead of calling display_gdb_prompt.
4971 * interps.c (interp_set): Don't call display_gdb_prompt.
4972 (current_interp_display_prompt_p): Delete.
4973 * interps.h (interp_prompt_p): Delete declaration.
4974 (interp_prompt_p_ftype): Delete.
4975 (struct interp_procs) <prompt_proc_p>: Delete field.
4976 (current_interp_display_prompt_p): Delete declaration.
4977 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4978 (_initialize_mi_interp): Adjust.
4979 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4980 'command_error' observers.
4981 (tui_on_sync_execution_done, tui_on_command_error): New
4982 functions.
4983 (tui_display_prompt_p): Delete.
4984 (_initialize_tui_interp): Adjust.
4985
4986 2014-05-29 Pedro Alves <palves@redhat.com>
4987
4988 PR gdb/13860
4989 * cli/cli-interp.c: Include infrun.h and observer.h.
4990 (cli_uiout, cli_interp): New globals.
4991 (cli_on_signal_received, cli_on_end_stepping_range)
4992 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4993 functions.
4994 (cli_interpreter_init): Install them as 'end_stepping_range',
4995 'signal_received' 'signal_exited', 'exited' and 'no_history'
4996 observers.
4997 (_initialize_cli_interp): Remove cli_interp local.
4998 * infrun.c (handle_inferior_event): Call the several stop reason
4999 observers instead of printing the stop reason directly.
5000 (end_stepping_range): New function.
5001 (print_end_stepping_range_reason, print_signal_exited_reason)
5002 (print_exited_reason, print_signal_received_reason)
5003 (print_no_history_reason): Make static, and add an uiout
5004 parameter. Print to that instead of to CURRENT_UIOUT.
5005 * infrun.h (print_end_stepping_range_reason)
5006 (print_signal_exited_reason, print_exited_reason)
5007 (print_signal_received_reason print_no_history_reason): New
5008 declarations.
5009 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5010 'mi_uiout'.
5011 <cli_uiout>: New field.
5012 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5013 uiout for CLI output. Install 'signal_received',
5014 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5015 observers.
5016 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5017 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5018 (mi_on_no_history): New functions.
5019 (ui_out_free_cleanup): Delete function.
5020 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5021 instead use the one already stored in the MI interpreter data.
5022 (mi_ui_out): Adjust.
5023 * tui/tui-interp.c: Include infrun.h and observer.h.
5024 (tui_interp): New global.
5025 (tui_on_signal_received, tui_on_end_stepping_range)
5026 (tui_on_signal_exited, tui_on_exited)
5027 (tui_on_no_history): New functions.
5028 (tui_init): Install them as 'end_stepping_range',
5029 'signal_received' 'signal_exited', 'exited' and 'no_history'
5030 observers.
5031 (_initialize_tui_interp): Delete tui_interp local.
5032
5033 2014-05-29 Pedro Alves <palves@redhat.com>
5034
5035 PR gdb/15713
5036 * linux-nat.c (linux_nat_resume_callback): Rename the second
5037 parameter to 'except'. Skip LP if it points to EXCEPT.
5038 (linux_nat_resume): Don't mark the event lwp as not stopped
5039 before resuming sibling lwps. Instead ask
5040 linux_nat_resume_callback to skip the event lwp. Mark it as not
5041 stopped after actually resuming it.
5042 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5043 resuming it.
5044 (wait_lwp): Mark the lwp as stopped here.
5045 (stop_wait_callback): Mark the lwp as not stopped right after
5046 resuming it. Don't mark lwps as stopped here.
5047 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5048 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5049
5050 2014-05-29 Pedro Alves <palves@redhat.com>
5051
5052 PR PR15693
5053 * infrun.c (resume): Determine how much to resume depending on
5054 whether the caller wanted a step, not whether we can hardware step
5055 the target. Mark all threads that we intend to run as running,
5056 unless we're calling an inferior function.
5057 (normal_stop): If the thread is running an infcall, don't finish
5058 thread state.
5059 * target.c (target_resume): Don't mark threads as running here.
5060
5061 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5062
5063 * serial.c (_initialize_serial): Remove support for
5064 the "set remotebaud" and "show remotebaud" commands.
5065 * NEWS: Add entry documenting the removal of that command.
5066
5067 2014-05-28 Yao Qi <yao@codesourcery.com>
5068
5069 * charset.c: Fix typo in comments.
5070
5071 2014-05-27 Gary Benson <gbenson@redhat.com>
5072
5073 * utils.c (internal_vproblem): Prompt for a bug report.
5074
5075 2014-05-26 Andy Wingo <wingo@igalia.com>
5076
5077 * guile/scm-arch.c (arscm_mark_arch_smob):
5078 * guile/scm-block.c (bkscm_mark_block_smob)
5079 (bkscm_mark_block_syms_progress_smob):
5080 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5081 * guile/scm-exception.c (exscm_mark_exception_smob):
5082 * guile/scm-frame.c (frscm_mark_frame_smob):
5083 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5084 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5085 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5086 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5087 (ppscm_mark_pretty_printer_worker_smob):
5088 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5089 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5090 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5091 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5092 mark functions.
5093 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5094 function.
5095
5096 2014-05-26 Andy Wingo <wingo@igalia.com>
5097 Doug Evans <xdje42@gmail.com>
5098
5099 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5100 empty_base_class. All uses updated.
5101 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5102 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5103 Adapt all callers.
5104 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5105 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5106 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5107 (gdbscm_gsmob_has_property_p, add_property_name)
5108 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5109 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5110 (gdb-object-has-property?, gdb-object-properties): Remove.
5111 (gdb-object-kind): Renamed from gsmob-kind.
5112
5113 2014-05-26 Andy Wingo <wingo@igalia.com>
5114
5115 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5116 * configure: Regenerate.
5117
5118 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5119
5120 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5121
5122 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5123
5124 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5125 (replay_memory_access_read_only, replay_memory_access_read_write)
5126 (replay_memory_access_types, replay_memory_access)
5127 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5128 (cmd_set_record_btrace, cmd_show_record_btrace)
5129 (cmd_show_replay_memory_access): New.
5130 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5131 (record_btrace_remove_breakpoint): Replace
5132 record_btrace_allow_memory_access with replay_memory_access.
5133 (_initialize_record_btrace): Add commands.
5134 * NEWS: Announce it.
5135
5136 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5137
5138 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5139
5140 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5141
5142 * MAINTAINERS (Write After Approval): Move self back from
5143 paper trail.
5144
5145 2014-05-22 Pedro Alves <palves@redhat.com>
5146
5147 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5148 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5149 (disable_randomization, enum exec_direction_kind)
5150 (execution_direction, stop_registers, start_remote)
5151 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5152 (wait_for_inferior, normal_stop, get_last_target_status)
5153 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5154 (insert_step_resume_breakpoint_at_sal)
5155 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5156 (set_step_info, print_stop_event, signal_stop_state)
5157 (signal_print_state, signal_pass_state, signal_stop_update)
5158 (signal_print_update, signal_pass_update)
5159 (update_signals_program_target, clear_exit_convenience_vars)
5160 (displaced_step_dump_bytes, update_observer_mode)
5161 (signal_catch_update, gdb_signal_from_command): Move
5162 declarations ...
5163 * infrun.h: ... to this new file.
5164 * amd64-tdep.c: Include infrun.h.
5165 * annotate.c: Include infrun.h.
5166 * arch-utils.c: Include infrun.h.
5167 * arm-linux-tdep.c: Include infrun.h.
5168 * arm-tdep.c: Include infrun.h.
5169 * break-catch-sig.c: Include infrun.h.
5170 * breakpoint.c: Include infrun.h.
5171 * common/agent.c: Include infrun.h instead of inferior.h.
5172 * corelow.c: Include infrun.h.
5173 * event-top.c: Include infrun.h.
5174 * go32-nat.c: Include infrun.h.
5175 * i386-tdep.c: Include infrun.h.
5176 * inf-loop.c: Include infrun.h.
5177 * infcall.c: Include infrun.h.
5178 * infcmd.c: Include infrun.h.
5179 * infrun.c: Include infrun.h.
5180 * linux-fork.c: Include infrun.h.
5181 * linux-nat.c: Include infrun.h.
5182 * linux-thread-db.c: Include infrun.h.
5183 * monitor.c: Include infrun.h.
5184 * nto-tdep.c: Include infrun.h.
5185 * procfs.c: Include infrun.h.
5186 * record-btrace.c: Include infrun.h.
5187 * record-full.c: Include infrun.h.
5188 * remote-m32r-sdi.c: Include infrun.h.
5189 * remote-mips.c: Include infrun.h.
5190 * remote-notif.c: Include infrun.h.
5191 * remote-sim.c: Include infrun.h.
5192 * remote.c: Include infrun.h.
5193 * reverse.c: Include infrun.h.
5194 * rs6000-tdep.c: Include infrun.h.
5195 * s390-linux-tdep.c: Include infrun.h.
5196 * solib-irix.c: Include infrun.h.
5197 * solib-osf.c: Include infrun.h.
5198 * solib-svr4.c: Include infrun.h.
5199 * target.c: Include infrun.h.
5200 * top.c: Include infrun.h.
5201 * windows-nat.c: Include infrun.h.
5202 * mi/mi-interp.c: Include infrun.h.
5203 * mi/mi-main.c: Include infrun.h.
5204 * python/py-threadevent.c: Include infrun.h.
5205
5206 2014-05-22 Pedro Alves <palves@redhat.com>
5207
5208 * infrun.c (handle_inferior_event): Store the exit code for
5209 --return-child-result here, instead of ...
5210 (print_exited_reason): ... here.
5211
5212 2014-05-21 Pedro Alves <palves@redhat.com>
5213
5214 PR gdb/13860
5215 * gdbthread.h (struct thread_control_state): New field
5216 `command_interp'.
5217 * infrun.c (follow_fork): Copy the new thread control field to the
5218 child fork thread.
5219 (clear_proceed_status_thread): Clear the new thread control field.
5220 (proceed): Set the new thread control field.
5221 * interps.h (command_interp): Declare.
5222 * interps.c (command_interpreter): New global.
5223 (command_interp): New function.
5224 (interp_exec): Set `command_interpreter' while here.
5225 * cli-out.c (cli_uiout_dtor): New function.
5226 (cli_ui_out_impl): Install it.
5227 * mi/mi-interp.c: Include cli-out.h.
5228 (mi_cmd_interpreter_exec): Add comment.
5229 (restore_current_uiout_cleanup): New function.
5230 (ui_out_free_cleanup): New function.
5231 (mi_on_normal_stop): If finishing an execution command started by
5232 a CLI command, or any kind of breakpoint-like event triggered,
5233 print the stop event to the output (CLI) stream.
5234 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5235
5236 2014-05-21 Pedro Alves <palves@redhat.com>
5237
5238 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5239 current source line having changed.
5240 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5241 * infrun.c (normal_stop): Adjust call to
5242 set_current_sal_from_frame.
5243 * source.c (clear_lines_listed_range): New function.
5244 (set_current_source_symtab_and_line, identify_source_line): Clear
5245 the lines listed range.
5246 (line_info): Handle the first "info line" after the current source
5247 line having changed.
5248 * stack.c (print_stack_frame): Remove center handling.
5249 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5250 center sal.line.
5251
5252 2014-05-21 Pedro Alves <palves@redhat.com>
5253
5254 * inf-child.c (inf_child_mourn_inferior): New function.
5255 * inf-child.h (inf_child_mourn_inferior): New declaration.
5256 * darwin-nat.c (darwin_mourn_inferior): Use
5257 inf_child_mourn_inferior.
5258 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5259 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5260 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5261 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5262 * windows-nat.c (windows_mourn_inferior): Likewise.
5263
5264 2014-05-21 Doug Evans <xdje42@gmail.com>
5265
5266 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5267
5268 2014-05-21 Doug Evans <xdje42@gmail.com>
5269
5270 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5271 (gdbscm_out_of_range_error): Ditto.
5272 (gdbscm_memory_error): Ditto.
5273 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5274 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5275 (gdbscm_out_of_range_error): Update.
5276 (gdbscm_memory_error): Update.
5277 (gdbscm_scm_to_target_string_unsafe): Delete.
5278
5279 2014-05-21 Pedro Alves <palves@redhat.com>
5280
5281 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5282 globals.
5283 (inf_child_open_target): New function.
5284 (inf_child_open): Use inf_child_open_target to push the target
5285 instead of erroring out.
5286 (inf_child_disconnect, inf_child_close)
5287 (inf_child_maybe_unpush_target): New functions.
5288 (inf_child_target): Install inf_child_disconnect and
5289 inf_child_close. Store a pointer to the returned object.
5290 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5291 declarations.
5292 * target.c (auto_connect_native_target): New global.
5293 (show_default_run_target): New function.
5294 (find_default_run_target): Return NULL if automatically connecting
5295 to the native target is disabled.
5296 (_initialize_target): Install set/show auto-connect-native-target.
5297 * NEWS: Mention "set auto-connect-native-target", and "target
5298 native".
5299 * linux-nat.c (super_close): New global.
5300 (linux_nat_close): Call super_close.
5301 (linux_nat_add_target): Store a pointer to the base class's
5302 to_close method.
5303 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5304 inf_child_maybe_unpush.
5305 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5306 already pushed.
5307 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5308 the inferior. Use inf_child_maybe_unpush_target.
5309 (inf_ttrace_attach): Don't push the target if it is already
5310 pushed.
5311 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5312 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5313 after mourning the inferior. Use inf_child_maybe_unpush_target.
5314 (darwin_attach_pid): Don't push the target if it is already
5315 pushed.
5316 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5317 mourning the inferior. Use inf_child_maybe_unpush_target.
5318 (gnu_detach): Use inf_child_maybe_unpush_target.
5319 * go32-nat.c (go32_create_inferior): Don't push the target if it
5320 is already pushed.
5321 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5322 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5323 (procfs_open): Rename to ...
5324 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5325 comments. Can target_preopen before changing node. Call
5326 inf_child_open_target to push the target explicitly.
5327 (procfs_attach): Don't push the target if it is already pushed.
5328 (procfs_detach): Use inf_child_maybe_unpush_target.
5329 (procfs_create_inferior): Don't push the target if it is already
5330 pushed.
5331 (nto_native_ops): New global.
5332 (procfs_open): Reimplement.
5333 (procfs_native_open): New function.
5334 (init_procfs_targets): Install procfs_native_open as to_open of
5335 "target native". Store a pointer to the "native" target in
5336 nto_native_ops.
5337 * procfs.c (procfs_attach): Don't push the target if it is already
5338 pushed.
5339 (procfs_detach): Use inf_child_maybe_unpush_target.
5340 (procfs_mourn_inferior): Only unpush the target after mourning the
5341 inferior. Use inf_child_maybe_unpush_target.
5342 (procfs_init_inferior): Don't push the target if it is already
5343 pushed.
5344 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5345 if it is already pushed.
5346
5347 2014-05-21 Pedro Alves <palves@redhat.com>
5348
5349 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5350 and "procfs" targets are now called "native" instead.
5351
5352 2014-05-21 Pedro Alves <palves@redhat.com>
5353
5354 * go32-nat.c (go32_open): Delete.
5355 (go32_target): Don't override the to_open method.
5356
5357 2014-05-21 Pedro Alves <palves@redhat.com>
5358
5359 * nto-procfs.c (procfs_can_run): New function.
5360 (nto_procfs_ops): New global.
5361 (init_procfs_targets): New, based on procfs_target. Install
5362 "target native" in addition to "target procfs".
5363 (_initialize_procfs): Call init_procfs_targets instead of adding
5364 the target here.
5365
5366 2014-05-21 Pedro Alves <palves@redhat.com>
5367
5368 * windows-nat.c (windows_target): Don't override to_shortname,
5369 to_longname or to_doc.
5370
5371 2014-05-21 Pedro Alves <palves@redhat.com>
5372
5373 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5374 to_doc.
5375
5376 2014-05-21 Pedro Alves <palves@redhat.com>
5377
5378 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5379 to_shortname, to_longname or to_doc.
5380
5381 2014-05-21 Pedro Alves <palves@redhat.com>
5382
5383 * go32-nat.c (go32_target): Don't override to_shortname,
5384 to_longname or to_doc.
5385
5386 2014-05-21 Pedro Alves <palves@redhat.com>
5387
5388 * inf-child.c (inf_child_open): Remove mention of "child".
5389 (inf_child_target): Rename target to "native" instead of "child".
5390
5391 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5392
5393 * Makefile.in (SFILES): Delete "regset.c".
5394 (COMMON_OBS): Delete "regset.o".
5395 * regset.c: Remove.
5396 * regset.h (regset_alloc): Delete prototype.
5397
5398 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5399
5400 * sparc-linux-tdep.c (sparc32_linux_gregset)
5401 (sparc32_linux_fpregset): New static regset structures.
5402 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5403 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5404 'fpregset' fields.
5405 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5406 (sparc64_linux_fpregset): New static regset structures.
5407 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5408 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5409 New static regset structures.
5410 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5411 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5412 New static regset structures.
5413 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5414 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5415 New static regset structures.
5416 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5417 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5418 New static regset structures.
5419 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5420
5421 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5422
5423 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5424 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5425 register maps ("regmaps") from "*regset" to "*regmap". Do this
5426 for all regmap types and variables.
5427 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5428 (sparc32_linux_supply_core_gregset)
5429 (sparc32_linux_collect_core_gregset)
5430 (sparc32_linux_supply_core_fpregset)
5431 (sparc32_linux_collect_core_fpregset): Likewise.
5432 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5433 (sparc_gregmap, sparc_fpregmap): ... these.
5434 (sparc_supply_gregset, sparc_collect_gregset)
5435 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5436 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5437 (_initialize_sparc_nat): Rename regmaps.
5438 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5439 (sparc_gregmap, sparc_fpregmap): ... these.
5440 (sparc_supply_gregset, sparc_collect_gregset)
5441 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5442 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5443 Rename macros to...
5444 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5445 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5446 Likewise.
5447 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5448 Rename to...
5449 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5450 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5451 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5452 regmaps.
5453 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5454 (sparc32_bsd_fpregset): Rename to...
5455 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5456 (sparc32_bsd_fpregmap): ... these.
5457 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5458 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5459 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5460 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5461 (struct sparc_gregmap, struct sparc_fpregmap)
5462 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5463 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5464 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5465 (sparc32_supply_regset, sparc32_collect_gregset)
5466 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5467 prototypes.
5468 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5469 (sparc64_linux_ptrace_gregmap): ... this.
5470 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5471 (_initialize_sparc64_linux_nat): Rename regmaps.
5472 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5473 (sparc64_linux_core_gregmap): ... this.
5474 (sparc64_linux_supply_core_gregset)
5475 (sparc64_linux_collect_core_gregset)
5476 (sparc64_linux_supply_core_fpregset)
5477 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5478 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5479 (sparc64_sol2_fpregset): Rename to...
5480 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5481 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5482 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5483 regmaps.
5484 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5485 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5486 (sparc64_bsd_fpregset): Rename to...
5487 (struct sparc_gregmap, sparc64_sol2_gregmap)
5488 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5489 (sparc64_bsd_fpregmap): ... these.
5490 (sparc64_supply_gregset, sparc64_collect_gregset)
5491 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5492 prototypes.
5493 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5494 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5495 (sparc64fbsd_gregmap): ... this.
5496 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5497 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5498 Rename regmaps.
5499 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5500 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5501 (sparc64nbsd_collect_fpregset): Likewise.
5502 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5503 (sparc64nbsd_gregmap): ... this.
5504 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5505 regmaps.
5506 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5507 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5508 (sparc64obsd_gregmap): ... this.
5509 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5510 regmaps.
5511 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5512 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5513 (sparc32nbsd_gregmap): ... this.
5514 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5515 regmaps.
5516
5517 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5518
5519 * score-tdep.c (score7_linux_gregset): New static regset
5520 structure.
5521 (score7_linux_regset_from_core_section): Remove dynamic regset
5522 allocation.
5523 (score_gdbarch_init): Drop allocation of tdep structure.
5524 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5525
5526 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5527
5528 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5529 regset structures.
5530 (am33_regset_from_core_section): Remove dynamic regset
5531 allocations.
5532
5533 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5534
5535 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5536 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5537 structures.
5538 (mips_linux_regset_from_core_section): Remove dynamic regset
5539 allocations.
5540 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5541 'gregset64', 'fpregset', and 'fpregset64'.
5542 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5543 deleted tdep fields.
5544
5545 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5546
5547 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5548 regset structures.
5549 (amd64_regset_from_core_section): Remove dynamic regset
5550 allocations.
5551 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5552 structure.
5553 (amd64obsd_regset_from_core_section): Remove dynamic regset
5554 allocation.
5555 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5556 Likewise.
5557 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5558 x86-common regset supply function.
5559 * i386-tdep.c (i386_collect_gregset): Make static.
5560 (i386_gregset): New global regset structure.
5561 (i386_fpregset, i386_xstateregset): New static regset structures.
5562 (i386_regset_from_core_section): Remove dynamic regset
5563 allocations.
5564 (i386_gdbarch_init): Remove initialization of tdep fields
5565 'gregset', 'fpregset', and 'xstateregset'.
5566 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5567 'fpregset', and 'xstateregset'.
5568 (i386_collect_gregset): Remove prototype.
5569 (i386_gregset): New declaration.
5570 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5571 structure.
5572 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5573 allocation.
5574
5575 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5576
5577 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5578 (arm_linux_vfpregset): New static regset structures.
5579 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5580 regset structures.
5581 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5582 and 'vfpregset' fields.
5583
5584 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5585
5586 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5587 (aarch64_linux_fpregset): New static regset structures.
5588 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5589 of regset structures.
5590 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5591 'fpregset' fields.
5592
5593 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5594
5595 * regset.h (struct regset): Remove gdbarch field.
5596 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5597 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5598 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5599 Likewise.
5600 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5601 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5602 (ppc32_linux_vsxregset): Likewise.
5603 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5604 via the regcache instead of the regset.
5605 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5606 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5607 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5608 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5609 Likewise.
5610
5611 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5612
5613 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5614 Constify structures.
5615 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5616 (alphanbsd_aout_gregset): Likewise.
5617 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5618 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5619 Likewise.
5620 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5621 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5622 Likewise.
5623 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5624 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5625 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5626 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5627 * m88k-tdep.c (m88k_gregset): Likewise.
5628 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5629 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5630 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5631 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5632 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5633 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5634 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5635 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5636 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5637 Likewise.
5638 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5639 * sh-tdep.h (sh_corefile_gregset): Likewise.
5640 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5641 * vax-tdep.c (vax_gregset): Likewise.
5642
5643 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5644
5645 Fix TLS access for -static -pthread.
5646 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5647 (try_thread_db_load_1): Initialize it.
5648 (thread_db_get_thread_local_address): Call it if LM is zero.
5649 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5650 * target.h (struct target_ops) (to_get_thread_local_address): Add
5651 load_module_addr comment.
5652
5653 2014-05-21 Pedro Alves <palves@redhat.com>
5654
5655 * dcache.c (dcache_read_memory_partial): If reading the cache line
5656 fails, fallback to reading just the memory the caller wanted.
5657
5658 2014-05-20 Doug Evans <dje@google.com>
5659
5660 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5661 instead of get_current_arch.
5662
5663 2014-05-20 Pedro Alves <palves@redhat.com>
5664
5665 * NEWS: Mention that compare-sections now works with all targets.
5666
5667 * remote.c (PACKET_qCRC): New enum value.
5668 (remote_verify_memory): Don't send qCRC if the target has no
5669 execution. Use packet_support/packet_ok. If the target doesn't
5670 support the qCRC packet, fallback to a deep memory copy.
5671 (compare_sections_command): Say "target image" instead of "remote
5672 executable".
5673 (_initialize_remote): Add PACKET_qCRC to the list of config
5674 packets that have no associated command. Extend comment.
5675 * target.c (simple_verify_memory, default_verify_memory): New
5676 function.
5677 * target.h (struct target_ops) <to_verify_memory>: Default to
5678 default_verify_memory.
5679 (simple_verify_memory): New declaration.
5680 * target-delegates.c: Regenerate.
5681
5682 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5683
5684 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5685
5686 2014-05-20 Hui Zhu <hui@codesourcery.com>
5687 Yao Qi <yao@codesourcery.com>
5688
5689 PR backtrace/16558
5690 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5691 and change address of sp and pc.
5692
5693 2014-05-19 Tom Tromey <tromey@redhat.com>
5694
5695 * gdbtypes.c (rank_function): Use XNEWVEC.
5696 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5697
5698 2014-05-19 Doug Evans <dje@google.com>
5699
5700 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5701 build_type_unit_groups and moved closer to only caller. Remove
5702 arguments. All references updated. Remove outdated .gdb_index
5703 comment.
5704 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5705 build_type_psymtabs_1.
5706
5707 2014-05-19 Doug Evans <dje@google.com>
5708
5709 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5710 n_type_unit_groups, all_type_unit_groups. All uses removed.
5711 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5712 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5713 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5714 (add_type_unit_group_to_table): Delete.
5715
5716 2014-05-19 Doug Evans <dje@google.com>
5717
5718 * eval.c (evaluate_subexp_standard): Add some comments.
5719
5720 2014-05-17 Doug Evans <xdje42@gmail.com>
5721
5722 * progspace.c (remove_program_space): Delete, unused.
5723 * progspace.h (remove_program_space): Ditto.
5724
5725 2014-05-17 Doug Evans <xdje42@gmail.com>
5726
5727 * inferior.c (prune_inferiors): Fix comment.
5728 (remove_inferior_command): Call prune_program_spaces.
5729
5730 2014-05-16 Doug Evans <dje@google.com>
5731
5732 New command line option -D.
5733 * NEWS: Mention it.
5734 * main.c (set_gdb_data_directory): New function.
5735 (captured_main): Recognize -D. Flag error for --data-directory "".
5736 Call set_gdb_data_directory.
5737 (print_gdb_help): Print --data-directory, -D.
5738 * main.h (set_gdb_data_directory): Declare.
5739 * top.c (staged_gdb_datadir): New static global.
5740 (set_gdb_datadir): Call set_gdb_data_directory
5741 (show_gdb_datadir): New function.
5742 (init_main): Update init of data-directory parameter.
5743
5744 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5745
5746 Import the "dirfd" gnulib module.
5747 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5748 * gnulib/aclocal.m4: Update.
5749 * gnulib/config.in: Update.
5750 * gnulib/configure: Update.
5751 * gnulib/import/Makefile.am: Update.
5752 * gnulib/import/Makefile.in: Update.
5753 * gnulib/import/dirfd.c: New.
5754 * gnulib/import/m4/dirfd.m4: New.
5755 * gnulib/import/m4/gnulib-cache.m4: Update.
5756 * gnulib/import/m4/gnulib-comp.m4: Update.
5757
5758 2014-05-16 Pierre Muller <muller@sourceware.org>
5759 Yao Qi <yao@codesourcery.com>
5760
5761 * valprint.c (print_wchar): Move the code on checking whether
5762 W is a printable wide char to the default branch of switch
5763 statement below. Call wchar_printable instead of gdb_iswprint.
5764
5765 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5766
5767 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5768 ldr.w and ldrd instructions.
5769
5770 2014-05-15 Doug Evans <dje@google.com>
5771
5772 * dwarf2read.c (read_structure_type): Delete outdated comments.
5773
5774 2014-05-14 Tom Tromey <tromey@redhat.com>
5775
5776 * macrocmd.c (print_macro_definition): Reindent.
5777
5778 2014-05-13 Doug Evans <xdje42@gmail.com>
5779
5780 * python/py-cmd.c (cmdpy_completer): Add comment.
5781 (completers): Make const.
5782
5783 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5784
5785 * infrun.c (resume): Remove should_resume (unused). Move up
5786 declaration of resume_ptid.
5787
5788 2014-05-13 Tom Tromey <tromey@redhat.com>
5789
5790 * language.h (unop_type_check): Remove.
5791 (binop_type_check): Don't declare.
5792
5793 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5794
5795 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5796 call to regcache_raw_collect.
5797
5798 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5799
5800 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5801 mi_console->quote as the quoting character.
5802
5803 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5804
5805 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5806
5807 2014-04-29 Tom Tromey <tromey@redhat.com>
5808
5809 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5810 "show debug varobj".
5811
5812 2014-05-07 Kyle McMartin <kyle@redhat.com>
5813
5814 Pushed by Joel Brobecker <brobecker@adacore.com>.
5815 * aarch64-tdep.c (aarch64_software_single_step): New function.
5816 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5817 with aarch64_software_single_step.
5818
5819 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5820
5821 GDB 7.7.1 released.
5822
5823 2014-05-05 Keith Seitz <keiths@redhat.com>
5824
5825 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5826 variable or history value is successfully parsed.
5827
5828 2014-05-05 Yao Qi <yao@codesourcery.com>
5829 Pedro Alves <palves@redhat.com>
5830
5831 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5832 address of blocks that intersects the requested range. Trim
5833 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5834 sections.
5835 * ctf.c (ctf_xfer_partial): Likewise.
5836
5837 2014-05-05 Yao Qi <yao@codesourcery.com>
5838
5839 * printcmd.c (display_command): Remove the check to
5840 target_has_execution.
5841
5842 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5843
5844 * ppcobsd-nat.c: Include "obsd-nat.h".
5845 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5846 add_target.
5847 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5848
5849 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5850
5851 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5852 and 16-bit signed and unsigned arguments. Update comment.
5853 (stap_parse_probe_arguments): Extend code to handle such
5854 arguments. Use warning instead of complaint to notify about
5855 unrecognized bitness.
5856
5857 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5858
5859 PR breakpoints/16889
5860 * stap-probe.c (stap_parse_probe_arguments): Simplify
5861 check for non-prefixed probes (i.e., probes whose
5862 arguments do not start with "N@"). Always set the
5863 argument type to a sane value.
5864
5865 2014-05-01 David Taylor <dtaylor@emc.com>
5866
5867 * remote.c (compare_sections_command): Add -r option to compare
5868 all loadable read-only sections.
5869
5870 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5871
5872 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5873 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5874 Update all callers.
5875 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5876 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5877 Remove unused CORE_ADDR argument. Update all callers.
5878
5879 2014-04-29 Pedro Alves <palves@redhat.com>
5880
5881 * remote.c (struct packet_config) <detect>: Extend comment.
5882 (add_packet_config_cmd): Don't set the config's detect or support
5883 fields here.
5884 (init_all_packet_configs): Also initialize the config's 'detect'
5885 field.
5886 (reset_all_packet_configs_support): New function.
5887 (remote_open_1): Call reset_all_packet_configs_support instead of
5888 init_all_packet_configs.
5889 (_initialize_remote): Initialize all packet configs. Assert that
5890 all packets have an associated command, except a few known
5891 outliers.
5892
5893 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5894
5895 * dwarf2read.c (read_subrange_type): Handle dynamic
5896 DW_AT_lower_bound attributes.
5897
5898 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5899
5900 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5901 dynamic bounds before computing its upper bound.
5902 (ada_discrete_type_low_bound): Same as above with the lower bound.
5903
5904 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5905
5906 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5907 range types. Adjust the array handling implementation to
5908 take advantage of this change.
5909 (resolve_dynamic_range): New function, mostly extracted from
5910 resolve_dynamic_bounds.
5911 (resolve_dynamic_array): New function, mostly extracted from
5912 resolve_dynamic_bounds.
5913 (resolve_dynamic_bounds): Delete.
5914 (resolve_dynamic_type): Reimplement. Add handling of
5915 TYPE_CODE_RANGE types.
5916
5917 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5918
5919 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5920 handling of parallel ___XA types.
5921
5922 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5923
5924 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5925 unnecessary second call to static_unwrap_type.
5926
5927 2014-04-27 Hui Zhu <hui@codesourcery.com>
5928
5929 * stack.c (print_frame_info): Call do_gdb_disassembly with
5930 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5931
5932 2014-04-26 Doug Evans <xdje42@gmail.com>
5933
5934 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5935
5936 2014-04-25 Pedro Alves <palves@redhat.com>
5937
5938 PR server/16255
5939 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5940 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5941 and newline from built string.
5942 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5943 (linux_ptrace_attach_fail_reason): ... this.
5944 * linux-nat.c (linux_nat_attach): Adjust to use
5945 linux_ptrace_attach_fail_reason.
5946
5947 2014-04-25 Pedro Alves <palves@redhat.com>
5948
5949 * remote.c (struct remote_state): Remove multi_process_aware,
5950 non_stop_aware, cond_tracepoints, cond_breakpoints,
5951 breakpoint_commands, fast_tracepoints, static_tracepoints,
5952 install_in_trace, disconnected_tracing,
5953 enable_disable_tracepoints, string_tracing, and
5954 augmented_libraries_svr4_read fields.
5955 (remote_multi_process_p): Move further below in the file.
5956 (struct packet_config): Add comments.
5957 (update_packet_config): Delete function.
5958 (show_packet_config_cmd): Use packet_config_support.
5959 (add_packet_config_cmd): Use NULL as set callback.
5960 (packet_ok): "set remote foo-packet"-style commands no longer
5961 change config->supported -- adjust.
5962 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5963 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5964 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5965 (PACKET_QNonStop, PACKET_multiprocess_feature)
5966 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5967 (PACKET_DisconnectedTracing_feature)
5968 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5969 (set_remote_protocol_packet_cmd): Delete function.
5970 (packet_config_support, packet_support): New functions.
5971 (set_remote_protocol_Z_packet_cmd): Don't call
5972 update_packet_config.
5973 (remote_query_attached, remote_pass_signals)
5974 (remote_program_signals, remote_threads_info)
5975 (remote_threads_extra_info, remote_start_remote): Use
5976 packet_support.
5977 (remote_start_remote): Use packet_config_support and
5978 packet_support.
5979 (init_all_packet_configs): Set all packets to unknown support,
5980 instead of calling update_packet_config.
5981 (remote_check_symbols): Use packet_support.
5982 (remote_supported_packet): Unconditionally set the packet config's
5983 support status.
5984 (remote_multi_process_feature, remote_non_stop_feature)
5985 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5986 (remote_breakpoint_commands_feature)
5987 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5988 (remote_install_in_trace_feature)
5989 (remote_disconnected_tracing_feature)
5990 (remote_enable_disable_tracepoint_feature)
5991 (remote_string_tracing_feature)
5992 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5993 (remote_protocol_features): Adjust to use remote_supported_packet
5994 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5995 "ConditionalTracepoints", "ConditionalBreakpoints",
5996 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5997 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5998 "EnableDisableTracepoints", and "tracenz".
5999 (remote_query_supported): Use packet_support.
6000 (remote_open_1): Adjust.
6001 (extended_remote_attach_1): Use packet_support. Switch on the
6002 result of packet_ok instead of checking whether the packet ended
6003 up disabled.
6004 (remote_vcont_resume): Use packet_support.
6005 (remote_resume, remote_stop_ns, fetch_register_using_p)
6006 (remote_prepare_to_store, store_register_using_P)
6007 (check_binary_download, remote_write_bytes): Use packet_support.
6008 (remote_vkill): Use packet_support. Switch on the result of
6009 packet_ok instead of checking whether the packet ended up
6010 disabled.
6011 (extended_remote_supports_disable_randomization): Use
6012 packet_support.
6013 (extended_remote_run): Switch on the result of packet_ok instead
6014 of checking whether the packet ended up disabled.
6015 (remote_insert_breakpoint, remote_remove_breakpoint)
6016 (remote_insert_watchpoint, remote_remove_watchpoint)
6017 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6018 packet_support.
6019 (remote_search_memory): Use packet_config_support.
6020 (remote_get_thread_local_address, remote_get_tib_address)
6021 (remote_hostio_send_command, remote_can_execute_reverse): Use
6022 packet_support.
6023 (remote_supports_cond_tracepoints)
6024 (remote_supports_cond_breakpoints)
6025 (remote_supports_fast_tracepoints)
6026 (remote_supports_static_tracepoints)
6027 (remote_supports_install_in_trace)
6028 (remote_supports_enable_disable_tracepoint)
6029 (remote_supports_string_tracing)
6030 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6031 the packet config says the feature is enabled or disabled.
6032 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6033 (remote_get_trace_status): Use packet_support.
6034 (remote_set_disconnected_tracing): Adjust to check whether the
6035 feature is enabled with packet_support.
6036 (remote_set_trace_buffer_size, remote_use_agent)
6037 (remote_can_use_agent, remote_supports_btrace): Use
6038 packet_support.
6039 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6040 Use packet_config_support.
6041 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6042 the packet config says the feature is enabled or disabled.
6043 (set_range_stepping): Use packet_support.
6044
6045 2014-04-25 Tom Tromey <tromey@redhat.com>
6046
6047 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6048 argument.
6049
6050 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6051
6052 * NEWS: Mention support for C99 variable length arrays.
6053
6054 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6055
6056 * ada-lang.c (standard_exc): Expand introductory comment.
6057
6058 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6059 Walfred Tedeschi <walfred.tedeschi@intel.com>
6060
6061 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6062 AVX512 registers.
6063 (amd64_linux_read_description): Add code to handle AVX512 xstate
6064 mask and return respective tdesc.
6065 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6066 and features/i386/x32-avx512-linux.c.
6067 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6068 (amd64_linux_core_read_description): Add code to handle AVX512
6069 xstate mask and return respective tdesc.
6070 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6071 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6072 calculation.
6073 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6074 (tdesc_amd64_avx512_linux): New prototype.
6075 (tdesc_x32_avx512_linux): Likewise.
6076 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6077 features/i386/x32-avx512.c.
6078 (amd64_ymm_avx512_names): New register names for pseudo
6079 registers YMM16-31.
6080 (amd64_ymmh_avx512_names): New register names for raw registers
6081 YMMH16-31.
6082 (amd64_k_names): New register names for K registers.
6083 (amd64_zmmh_names): New register names for ZMM raw registers.
6084 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6085 (amd64_xmm_avx512_names): New register names for XMM16-31
6086 registers.
6087 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6088 registers.
6089 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6090 if feature is present.
6091 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6092 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6093 (AMD64_NUM_REGS): Adjust to new number of registers.
6094 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6095 registers supplied via XSTATE by AVX512 registers.
6096 (i386_linux_read_description): Add case for AVX512.
6097 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6098 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6099 (i386_linux_core_read_description): Add case for AVX512.
6100 (i386_linux_init_abi): Install supported register note section
6101 for AVX512.
6102 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6103 AVX512.
6104 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6105 registers to be number of zmm7h + 1.
6106 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6107 * i386-tdep.c: Include features/i386/i386-avx512.c.
6108 (i386_zmm_names): Add ZMM pseudo register names array.
6109 (i386_zmmh_names): Add ZMM raw register names array.
6110 (i386_k_names): Add K raw register names array.
6111 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6112 registers. AVX512 has 16 more ZMM registers than there are YMM
6113 registers.
6114 (i386_zmmh_regnum_p): Add function to look up register number of
6115 ZMM raw registers.
6116 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6117 (i386_k_regnum_p): Likewise for K raw registers.
6118 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6119 registers added by AVX512.
6120 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6121 registers added by AVX512.
6122 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6123 added by AVX512.
6124 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6125 (i386_pseudo_register_name): Add ZMM pseudo registers.
6126 (i386_zmm_type): Construct and return vector registers type for ZMM
6127 registers.
6128 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6129 ZMM0-31 pseudo registers and K registers.
6130 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6131 and YMM16-31 registers from register cache.
6132 (i386_pseudo_register_write): Add code to write K, ZMM and
6133 YMM16-31 registers.
6134 (i386_register_reggroup_p): Add code to include/exclude AVX512
6135 registers in/from respective register groups.
6136 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6137 registers if feature is present in xcr0.
6138 (i386_gdbarch_init): Add code to initialize AVX512 feature
6139 variables in tdep structure, wire in pseudo registers and call
6140 initialize_tdesc_i386_avx512.
6141 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6142 variables.
6143 (i386_regnum): Add AVX512 registers.
6144 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6145 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6146 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6147 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6148 512 bits wide.
6149 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6150 (i386_ymm_avx512_regnum_p): Likewise.
6151 (i386_k_regnum_p): Likewise.
6152 (i386_zmm_regnum_p): Likewise.
6153 (i386_zmmh_regnum_p): Likewise.
6154 * i387-tdep.c : Update year in copyright notice.
6155 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6156 XSAVE buffer.
6157 (XSAVE_YMM_AVX512_ADDR): New macro.
6158 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6159 XSAVE buffer.
6160 (XSAVE_XMM_AVX512_ADDR): New macro.
6161 (xsave_avx512_k_offset): New table for K register offsets in
6162 XSAVE buffer.
6163 (XSAVE_AVX512_K_ADDR): New macro.
6164 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6165 in XSAVE buffer.
6166 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6167 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6168 buffer.
6169 (i387_collect_xsave): Add code to collect AVX512 registers from
6170 XSAVE buffer.
6171 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6172 of XMM16-31 registers.
6173 (I387_NUM_K_REGS): New define for number of K registers.
6174 (I387_K0_REGNUM): New define for K0 register number.
6175 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6176 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6177 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6178 registers.
6179 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6180 (I387_XMM16_REGNUM): New define for XMM16 register number.
6181 (I387_YMM0_REGNUM): New define for YMM0 register number.
6182 (I387_KEND_REGNUM): New define for last K register number.
6183 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6184 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6185 number.
6186 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6187 number.
6188 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6189 size.
6190 * features/Makefile: Add AVX512 related files.
6191 * features/i386/32bit-avx512.xml: New file.
6192 * features/i386/64bit-avx512.xml: Likewise.
6193 * features/i386/amd64-avx512-linux.c: Likewise.
6194 * features/i386/amd64-avx512-linux.xml: Likewise.
6195 * features/i386/amd64-avx512.c: Likewise.
6196 * features/i386/amd64-avx512.xml: Likewise.
6197 * features/i386/i386-avx512-linux.c: Likewise.
6198 * features/i386/i386-avx512-linux.xml: Likewise.
6199 * features/i386/i386-avx512.c: Likewise.
6200 * features/i386/i386-avx512.xml: Likewise.
6201 * features/i386/x32-avx512-linux.c: Likewise.
6202 * features/i386/x32-avx512-linux.xml: Likewise.
6203 * features/i386/x32-avx512.c: Likewise.
6204 * features/i386/x32-avx512.xml: Likewise.
6205 * regformats/i386/amd64-avx512-linux.dat: New file.
6206 * regformats/i386/amd64-avx512.dat: Likewise.
6207 * regformats/i386/i386-avx512-linux.dat: Likewise.
6208 * regformats/i386/i386-avx512.dat: Likewise.
6209 * regformats/i386/x32-avx512-linux.dat: Likewise.
6210 * regformats/i386/x32-avx512.dat: Likewise.
6211 * NEWS: Add note about new support for AVX512.
6212
6213
6214 2014-04-23 Pedro Alves <palves@redhat.com>
6215
6216 * breakpoint.c (insert_bp_location): Tolerate errors if the
6217 breakpoint is set in a user-loaded objfile.
6218 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6219 location is marked shlib_disabled. If the breakpoint is set in a
6220 user-loaded objfile is a GDB-side memory breakpoint, validate it
6221 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6222 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6223 flag.
6224 * mem-break.c (memory_validate_breakpoint): New function.
6225 * objfiles.c (userloaded_objfile_contains_address_p): New
6226 function.
6227 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6228 * target.h (memory_validate_breakpoint): New declaration.
6229
6230 2014-04-23 Pedro Alves <palves@redhat.com>
6231
6232 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6233 the breakpoint is set in a shared library, only suppress
6234 errors for software breakpoints, not hardware breakpoints.
6235
6236 2014-04-22 Pedro Alves <palves@redhat.com>
6237
6238 * infrun.c (schedlock_applies): New function, factored out from
6239 find_thread_needs_step_over.
6240 (find_thread_needs_step_over): Use it.
6241 (switch_back_to_stepped_thread): Always clear trap_expected if the
6242 step over is finished. Return early if scheduler locking applies.
6243 Look for the stepping thread and a potential step-over thread with
6244 a single loop.
6245 (currently_stepping_or_nexting_callback): Delete.
6246
6247 2014-04-22 Nick Clifton <nickc@redhat.com>
6248
6249 * NEWS: Mention that ARM sim now supports tracing.
6250
6251 2014-04-22 Yao Qi <yao@codesourcery.com>
6252
6253 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6254 to ...
6255 * tracefile.c (tracefile_fetch_registers): ... it. New
6256 function.
6257 * tracefile.h (tracefile_fetch_registers): Declare.
6258 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6259 tracefile_fetch_registers.
6260
6261 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6262
6263 PR gdb/14018
6264 * windows-nat.c (thread_rec): Don't display a warning when
6265 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6266 fails for any reason, set th->suspended to -1, so that we don't
6267 try to resume such a thread. Also, don't return NULL in these
6268 cases, to avoid completely ruin the session due to "PC register is
6269 not available" error.
6270 (do_windows_fetch_inferior_registers): Check errors in
6271 GetThreadContext call.
6272 (windows_continue): Accept an additional argument KILLED; if not
6273 zero, ignore errors in the SetThreadContext call, since the
6274 inferior was killed and is shutting down.
6275 (windows_resume, get_windows_debug_event)
6276 (windows_create_inferior, windows_mourn_inferior)
6277 (windows_kill_inferior): All callers of windows_continue changed
6278 to adjust to its new calling sequence.
6279
6280 2014-04-19 Yao Qi <yao@codesourcery.com>
6281
6282 * ctf.c (ctf_open): Call post_create_inferior.
6283
6284 2014-04-19 Yao Qi <yao@codesourcery.com>
6285
6286 * ctf.c (handle_id): New static variable.
6287 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6288 value. Get the declaration of event "register" and get length
6289 of field "contents".
6290
6291 2014-04-19 Yao Qi <yao@codesourcery.com>
6292
6293 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6294
6295 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6296
6297 * valops.c (oload_method_static): Remove unnecessary argument
6298 METHOD. Update all callers.
6299
6300 2014-04-18 Pedro alves <palves@redhat.com>
6301 Tom Tromey <tromey@redhat.com>
6302
6303 PR backtrace/15558
6304 * frame.c (get_prev_frame_1): Rename to ...
6305 (get_prev_frame_always): ... this, and make extern. Adjust.
6306 (skip_artificial_frames): Use get_prev_frame_always.
6307 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6308 (get_frame_unwind_stop_reason): Adjust to rename.
6309 * frame.h (get_prev_frame_always): Declare.
6310 * inline-frame.c: Include frame.h.
6311 (inline_frame_this_id): Use get_prev_frame_always.
6312
6313 2014-04-18 Tristan Gingold <gingold@adacore.com>
6314
6315 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6316 code by using bfd_mach_o_get_base_address.
6317
6318 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6319
6320 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6321 (spu_ax_pseudo_register_collect): New function.
6322 (spu_ax_pseudo_register_push_stack): Likewise.
6323 (spu_dwarf_reg_to_regnum): Likewise.
6324 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6325
6326 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6327
6328 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6329 Replace FRAME argument with FRAME_ID.
6330 * gdbarch.c, gdbarch.h: Regenerate.
6331 * findvar.c (default_value_from_register): Add GDBARCH argument;
6332 replace FRAME by FRAME_ID. No longer call get_frame_id.
6333 (value_from_register): Update call to gdbarch_value_from_register.
6334 * value.h (default_value_from_register): Update prototype.
6335 * s390-linux-tdep.c (s390_value_from_register): Update interface
6336 and call to default_value_from_register.
6337 * spu-tdep.c (spu_value_from_register): Likewise.
6338
6339 * findvar.c (address_from_register): Remove TYPE argument.
6340 Do not call value_from_register; use gdbarch_value_from_register
6341 with null_frame_id instead.
6342 * value.h (address_from_register): Update prototype.
6343 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6344 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6345 address_from_register interface change.
6346
6347 2014-04-17 Yao Qi <yao@codesourcery.com>
6348
6349 * gdbtypes.h: Update comments to link to types and macros'
6350 definitions.
6351
6352 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6353
6354 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6355
6356 2014-04-16 Keith Seitz <keiths@redhat.com>
6357
6358 PR gdb/15827
6359 * dwarf2read.c (skip_one_die): Check that all relative-offset
6360 sibling DIEs fall within range of the current reader's buffer.
6361 (read_partial_die): Likewise.
6362
6363 2014-04-16 Keith Seitz <keiths@redhat.com>
6364
6365 PR c++/16597
6366 * cp-namespace.c (lookup_symbol_file): If the type name of
6367 `this' is NULL, return immediately.
6368
6369 2014-04-14 Keith Seitz <keiths@redhat.com>
6370
6371 PR c++/16253
6372 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6373 from symbol_matches_domain in symtab.c. All local callers
6374 of symbol_matches_domain updated.
6375 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6376 search STRUCT_DOMAIN.
6377 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6378 independently. standard_lookup will do that automatically.
6379 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6380 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6381 (cp_lookup_symbol_in_namespace): Likewise.
6382 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6383 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6384 may return a STRUCT_DOMAIN match.
6385 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6386 * cp-support.c: Include language.h.
6387 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6388 VAR_DOMAIN.
6389 * psymtab.c (match_partial_symbol): Compare the requested
6390 domain with the symbol's domain directly.
6391 (lookup_partial_symbol): Likewise.
6392 * symtab.c (lookup_symbol_in_language): Explain when/why
6393 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6394 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6395 appropriate languages.
6396 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6397 and moved to ada-lang.c
6398 (lookup_block_symbol): Explain that this function only returns
6399 symbol matching the requested DOMAIN.
6400 Compare the requested domain with the symbol's domain directly.
6401 (iterate_over_symbols): Compare the requested domain with the
6402 symbol's domain directly.
6403 * symtab.h (symbol_matches_domain): Remove.
6404
6405 2014-04-14 Tom Tromey <tromey@redhat.com>
6406
6407 PR c++/15246:
6408 * c-exp.y (type_aggregate_p): New function.
6409 (qualified_name, classify_inner_name): Use it.
6410 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6411 and TYPE_TARGET_TYPE of an enum type.
6412 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6413 an enum type.
6414 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6415 handle TYPE_DECLARED_CLASS.
6416 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6417 types.
6418 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6419 * valops.c (enum_constant_from_type): New function.
6420 (value_aggregate_elt): Use it.
6421 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6422 TYPE_CODE_ENUM.
6423
6424 2014-04-14 Tom Tromey <tromey@redhat.com>
6425
6426 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6427 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6428 const.
6429 * value.h (value_aggregate_elt): Update.
6430
6431 2014-04-14 Tom Tromey <tromey@redhat.com>
6432
6433 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6434
6435 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6436
6437 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6438 (evaluate_subexp_standard): Pass noside argument.
6439 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6440 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6441 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6442 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6443 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6444
6445 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6446
6447 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6448 points to a constant blob.
6449
6450 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6451
6452 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6453 property and store it as the high bound and flag the range accordingly.
6454 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6455 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6456 * gdbtypes.h (enum range_flags): New enum.
6457 (struct range_bounds): Add flags member.
6458
6459 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6460
6461 * c-typeprint.c (c_type_print_varspec_suffix): Added
6462 check for not yet resolved high bound. If unresolved, print
6463 "variable length" string to the console instead of random
6464 length.
6465
6466 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6467
6468 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6469 value.
6470 (ada_template_to_fixed_record_type_1): Likewise.
6471 (ada_to_fixed_type_1): Likewise.
6472 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6473 (cp_print_value): Likewise.
6474 * d-valprint.c (dynamic_array_type): Likewise.
6475 * findvar.c (address_of_variable): Likewise.
6476 * jv-valprint.c (java_value_print): Likewise.
6477 * valops.c (value_ind): Likewise.
6478 * value.c (coerce_ref): Likewise.
6479
6480 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6481
6482 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6483 value and retrieve the dynamic type size.
6484
6485 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6486
6487 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6488 passed to sizeof is dynamic evaluate the argument to compute the length.
6489
6490 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6491 Joel Brobecker <brobecker@adacore.com>
6492
6493 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6494 (dwarf2_evaluate_property): New function.
6495 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6496 * dwarf2read.c (attr_to_dynamic_prop): New function.
6497 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6498 attribute.
6499 * gdbtypes.c: Include dwarf2loc.h.
6500 (is_dynamic_type): New function.
6501 (resolve_dynamic_type): New function.
6502 (resolve_dynamic_bounds): New function.
6503 (get_type_length): New function.
6504 (check_typedef): Use get_type_length to compute type length.
6505 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6506 (TYPE_LOW_BOUND_KIND): New macro.
6507 (is_dynamic_type): New function prototype.
6508 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6509 to resolve dynamic properties of the type. Update comment.
6510 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6511
6512 2014-04-14 Richard Henderson <rth@redhat.com>
6513
6514 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6515
6516 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6517 Doug Evans <xdje42@gmail.com>
6518
6519 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6520 dereference TYPE_CODE_REF values.
6521
6522 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6523
6524 Revert the following changes due to regressions:
6525
6526 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6527 (dwarf2_evaluate_property): New function.
6528 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6529 * dwarf2read.c (attr_to_dynamic_prop): New function.
6530 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6531 attribute.
6532 * gdbtypes.c: Include dwarf2loc.h.
6533 (is_dynamic_type): New function.
6534 (resolve_dynamic_type): New function.
6535 (resolve_dynamic_bounds): New function.
6536 (get_type_length): New function.
6537 (check_typedef): Use get_type_length to compute type length.
6538 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6539 (TYPE_LOW_BOUND_KIND): New macro.
6540 (is_dynamic_type): New function prototype.
6541 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6542 to resolve dynamic properties of the type. Update comment.
6543 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6544
6545 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6546 passed to sizeof is dynamic evaluate the argument to compute the length.
6547
6548 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6549 value and retrieve the dynamic type size.
6550
6551 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6552 (ada_template_to_fixed_record_type_1): Likewise.
6553 (ada_to_fixed_type_1): Likewise.
6554 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6555 (cp_print_value): Likewise.
6556 * d-valprint.c (dynamic_array_type): Likewise.
6557 * eval.c (evaluate_subexp_with_coercion): Likewise.
6558 * findvar.c (address_of_variable): Likewise.
6559 * jv-valprint.c (java_value_print): Likewise.
6560 * valops.c (value_ind): Likewise.
6561 * value.c (coerce_ref): Likewise.
6562
6563 * c-typeprint.c (c_type_print_varspec_suffix): Added
6564 check for not yet resolved high bound. If unresolved, print
6565 "variable length" string to the console instead of random
6566 length.
6567
6568 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6569 property and store it as the high bound and flag the range accordingly.
6570 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6571 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6572 * gdbtypes.h (enum range_flags): New enum.
6573 (struct range_bounds): Add flags member.
6574
6575 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6576 points to a constant blob.
6577
6578 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6579 (evaluate_subexp_standard): Pass noside argument.
6580 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6581 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6582 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6583 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6584 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6585
6586 2014-04-11 Keith Seitz <keiths@redhat.com>
6587
6588 PR c++/16675
6589 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6590 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6591 reference types.
6592
6593 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6594
6595 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6596 (evaluate_subexp_standard): Pass noside argument.
6597 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6598 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6599 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6600 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6601 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6602
6603 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6604
6605 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6606 points to a constant blob.
6607
6608 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6609
6610 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6611 property and store it as the high bound and flag the range accordingly.
6612 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6613 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6614 * gdbtypes.h (enum range_flags): New enum.
6615 (struct range_bounds): Add flags member.
6616
6617 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6618
6619 * c-typeprint.c (c_type_print_varspec_suffix): Added
6620 check for not yet resolved high bound. If unresolved, print
6621 "variable length" string to the console instead of random
6622 length.
6623
6624 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6625
6626 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6627 (ada_template_to_fixed_record_type_1): Likewise.
6628 (ada_to_fixed_type_1): Likewise.
6629 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6630 (cp_print_value): Likewise.
6631 * d-valprint.c (dynamic_array_type): Likewise.
6632 * eval.c (evaluate_subexp_with_coercion): Likewise.
6633 * findvar.c (address_of_variable): Likewise.
6634 * jv-valprint.c (java_value_print): Likewise.
6635 * valops.c (value_ind): Likewise.
6636 * value.c (coerce_ref): Likewise.
6637
6638 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6639
6640 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6641 value and retrieve the dynamic type size.
6642
6643 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6644
6645 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6646 passed to sizeof is dynamic evaluate the argument to compute the length.
6647
6648 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6649
6650 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6651 (dwarf2_evaluate_property): New function.
6652 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6653 * dwarf2read.c (attr_to_dynamic_prop): New function.
6654 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6655 attribute.
6656 * gdbtypes.c: Include dwarf2loc.h.
6657 (is_dynamic_type): New function.
6658 (resolve_dynamic_type): New function.
6659 (resolve_dynamic_bounds): New function.
6660 (get_type_length): New function.
6661 (check_typedef): Use get_type_length to compute type length.
6662 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6663 (TYPE_LOW_BOUND_KIND): New macro.
6664 (is_dynamic_type): New function prototype.
6665 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6666 to resolve dynamic properties of the type. Update comment.
6667 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6668
6669 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6670
6671 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6672 declaring high/low bounds and change uses accordingly. Call
6673 create_range_type instead of create_static_range_type.
6674 * gdbtypes.c (create_range_type): New function.
6675 (create_range_type): Convert bounds into struct bound_prop and pass
6676 them to create_range_type.
6677 * gdbtypes.h (struct bound_prop): New struct.
6678 (create_range_type): New function prototype.
6679 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6680 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6681 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6682 part of the bound.
6683 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6684
6685 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6686
6687 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6688 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6689 * ada-lang.c: All uses of create_range_type updated.
6690 * coffread.c: All uses of create_range_type updated.
6691 * dwarf2read.c: All uses of create_range_type updated.
6692 * f-exp.y: All uses of create_range_type updated.
6693 * m2-valprint.c: All uses of create_range_type updated.
6694 * mdebugread.c: All uses of create_range_type updated.
6695 * stabsread.c: All uses of create_range_type updated.
6696 * valops.c: All uses of create_range_type updated.
6697 * valprint.c: All uses of create_range_type updated.
6698
6699 2014-04-10 Pedro Alves <palves@redhat.com>
6700
6701 * breakpoint.c (single_step_breakpoints)
6702 (single_step_gdbarch): Move up in the file.
6703 (one_breakpoint_xfer_memory): New function, factored out from ...
6704 (breakpoint_xfer_memory): ... here. Also process single-step
6705 breakpoints.
6706
6707 2014-04-09 Tristan Gingold <gingold@adacore.com>
6708
6709 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6710 comments.
6711 (darwin_decode_exception_message): Free port only after use.
6712
6713 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6714
6715 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6716 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6717 when setting the size of call_length.
6718
6719 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6720
6721 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6722 dereference TYPE_CODE_REF values.
6723
6724 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6725
6726 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6727 end of warning message.
6728
6729 2014-04-03 Doug Evans <dje@google.com>
6730
6731 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6732 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6733
6734 2014-04-02 Alan Modra <amodra@gmail.com>
6735
6736 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6737 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6738 (struct symbol_file_add_from_memory_args): Add size field.
6739 (find_vdso_size): New function.
6740 (add_vsyscall_page): Attempt to find vdso size.
6741
6742 2014-04-01 Doug Evans <dje@google.com>
6743
6744 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6745
6746 2014-04-01 Tristan Gingold <gingold@adacore.com>
6747
6748 * darwin-nat.c (darwin_encode_reply): Add prototype.
6749 (darwin_decode_exception_message): Reply to unknown inferiors.
6750 (darwin_decode_message): Handle message by id. Ignore message
6751 to unknown inferior.
6752 (darwin_wait): Discard unknown messages, add debug trace.
6753
6754 2014-03-31 Doug Evans <dje@google.com>
6755
6756 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6757 comp_dir_string.
6758
6759 2014-03-31 Doug Evans <dje@google.com>
6760
6761 New option "set print symbol-loading".
6762 * NEWS: Mention it.
6763 * solib.c (solib_read_symbols): Only print symbol loading messages
6764 if requested.
6765 (solib_add): If symbol loading is in "brief" mode, notify user
6766 symbols are being loaded.
6767 (reload_shared_libraries_1): Ditto.
6768 * symfile.c (print_symbol_loading_off): New static global.
6769 (print_symbol_loading_brief): New static global.
6770 (print_symbol_loading_full): New static global.
6771 (print_symbol_loading_enums): New static global.
6772 (print_symbol_loading): New static global.
6773 (print_symbol_loading_p): New function.
6774 (symbol_file_add_with_addrs): Only print symbol loading messages
6775 if requested.
6776 (_initialize_symfile): Register "print symbol-loading" set/show
6777 command.
6778 * symfile.h (print_symbol_loading_p): Declare.
6779
6780 2014-03-30 Doug Evans <xdje42@gmail.com>
6781
6782 * infrun.c (set_last_target_status): New function.
6783 (handle_inferior_event): Call it.
6784
6785 2014-03-30 Doug Evans <xdje42@gmail.com>
6786
6787 * inferior.h (enum stop_kind): Improve comment.
6788
6789 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6790
6791 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6792 a reference, strip the reference layer before calling
6793 the lang_ops value_has_mutated callback.
6794
6795 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6796
6797 Remove some globals from our parser.
6798 * language.c (unk_lang_parser): Add "struct parser_state"
6799 argument.
6800 * language.h (struct language_defn) <la_parser>: Likewise.
6801 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6802 (initialize_expout): Add "struct parser_state" argument.
6803 Rewrite function to use the parser state.
6804 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6805 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6806 write_exp_elt_longcst, write_exp_elt_dblcst,
6807 write_exp_elt_decfloatcst, write_exp_elt_type,
6808 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6809 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6810 write_dollar_variable): Likewise.
6811 (parse_exp_in_context_1): Use parser state.
6812 (insert_type_address_space): Add "struct parser_state" argument.
6813 Use parser state.
6814 (increase_expout_size): New function.
6815 * parser-defs.h: Forward declare "struct language_defn" and
6816 "struct parser_state".
6817 (expout, expout_size, expout_ptr): Remove extern declarations.
6818 (parse_gdbarch, parse_language): Rewrite macro declarations to
6819 accept the parser state.
6820 (struct parser_state): New struct.
6821 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6822 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6823 write_exp_elt_decfloatcst, write_exp_elt_type,
6824 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6825 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6826 write_exp_msymbol, write_dollar_variable,
6827 mark_struct_expression, insert_type_address_space): Add "struct
6828 parser_state" argument.
6829 (increase_expout_size): New function.
6830 * utils.c (do_clear_parser_state): New function.
6831 (make_cleanup_clear_parser_state): Likewise.
6832 * utils.h (make_cleanup_clear_parser_state): New function
6833 prototype.
6834 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6835 Update calls to write_exp* in order to pass the parser state.
6836 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6837 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6838 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6839 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6840 * stap-probe.c (stap_parse_register_operand): Likewise.
6841 (stap_parse_single_operand): Likewise.
6842 (stap_parse_argument_1): Likewise.
6843 (stap_parse_argument): Use parser state.
6844 * stap-probe.h: Include "parser-defs.h".
6845 (struct stap_parse_info) <pstate>: New field.
6846 * c-exp.y (parse_type): Rewrite to use parser state.
6847 (yyparse): Redefine to c_parse_internal.
6848 (pstate): New global variable.
6849 (parse_number): Add "struct parser_state" argument.
6850 (write_destructor_name): Likewise.
6851 (type_exp): Update calls to write_exp* and similars in order to
6852 use parser state.
6853 (exp1, exp, variable, qualified_name, space_identifier,
6854 typename, typebase): Likewise.
6855 (write_destructor_name, parse_number, lex_one_token,
6856 classify_name, classify_inner_name, c_parse): Add "struct
6857 parser_state" argument. Update function to use parser state.
6858 * c-lang.h: Forward declare "struct parser_state".
6859 (c_parse): Add "struct parser_state" argument.
6860 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6861 (yyparse): Redefine macro to ada_parse_internal.
6862 (pstate): New variable.
6863 (write_int, write_object_renaming, write_var_or_type,
6864 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6865 type_int, type_long, type_long_long, type_float, type_double,
6866 type_long_double, type_char, type_boolean, type_system_address):
6867 Add "struct parser_state" argument.
6868 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6869 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6870 var_or_type, aggregate, aggregate_component_list,
6871 positional_list, others, component_group,
6872 component_associations): Update calls to write_exp* and similar
6873 functions in order to use parser state.
6874 (ada_parse, write_var_from_sym, write_int,
6875 write_exp_op_with_string, write_object_renaming,
6876 find_primitive_type, write_selectors, write_ambiguous_var,
6877 write_var_or_type, write_name_assoc, type_int, type_long,
6878 type_long_long, type_float, type_double, type_long_double,
6879 type_char, type_boolean, type_system_address): Add "struct
6880 parser_state" argument. Adjust function to use parser state.
6881 * ada-lang.c (parse): Likewise.
6882 * ada-lang.h: Forward declare "struct parser_state".
6883 (ada_parse): Add "struct parser_state" argument.
6884 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6885 calls to both functions.
6886 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6887 parser state.
6888 (yyparse): Redefine macro to f_parse_internal.
6889 (pstate): New variable.
6890 (parse_number): Add "struct parser_state" argument.
6891 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6892 and similars in order to use parser state.
6893 (parse_number): Adjust code to use parser state.
6894 (yylex): Likewise.
6895 (f_parse): New function.
6896 * f-lang.h: Forward declare "struct parser_state".
6897 (f_parse): Add "struct parser_state" argument.
6898 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6899 parser state.
6900 (yyparse): Redefine macro for java_parse_internal.
6901 (pstate): New variable.
6902 (push_expression_name, push_expression_name, insert_exp): Add
6903 "struct parser_state" argument.
6904 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6905 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6906 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6907 PostIncrementExpression, PostDecrementExpression,
6908 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6909 UnaryExpressionNotPlusMinus, CastExpression,
6910 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6911 RelationalExpression, EqualityExpression, AndExpression,
6912 ExclusiveOrExpression, InclusiveOrExpression,
6913 ConditionalAndExpression, ConditionalOrExpression,
6914 ConditionalExpression, Assignment, LeftHandSide): Update
6915 calls to write_exp* and similars in order to use parser state.
6916 (parse_number): Ajust code to use parser state.
6917 (yylex): Likewise.
6918 (java_parse): New function.
6919 (push_variable): Add "struct parser_state" argument. Adjust
6920 code to user parser state.
6921 (push_fieldnames, push_qualified_expression_name,
6922 push_expression_name, insert_exp): Likewise.
6923 * jv-lang.h: Forward declare "struct parser_state".
6924 (java_parse): Add "struct parser_state" argument.
6925 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6926 parser state.
6927 (yyparse): Redefine macro to m2_parse_internal.
6928 (pstate): New variable.
6929 (type_exp, exp, fblock, variable, type): Update calls to
6930 write_exp* and similars to use parser state.
6931 (yylex): Likewise.
6932 (m2_parse): New function.
6933 * m2-lang.h: Forward declare "struct parser_state".
6934 (m2_parse): Add "struct parser_state" argument.
6935 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6936 * objc-lang.h: Forward declare "struct parser_state".
6937 (end_msglist): Add "struct parser_state" argument.
6938 * p-exp.y (parse_type): Rewrite macro to use parser state.
6939 (yyparse): Redefine macro to pascal_parse_internal.
6940 (pstate): New variable.
6941 (parse_number): Add "struct parser_state" argument.
6942 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6943 write_exp* and similars in order to use parser state.
6944 (parse_number, yylex): Adjust code to use parser state.
6945 (pascal_parse): New function.
6946 * p-lang.h: Forward declare "struct parser_state".
6947 (pascal_parse): Add "struct parser_state" argument.
6948 * go-exp.y (parse_type): Rewrite macro to use parser state.
6949 (yyparse): Redefine macro to go_parse_internal.
6950 (pstate): New variable.
6951 (parse_number): Add "struct parser_state" argument.
6952 (type_exp, exp1, exp, variable, type): Update calls to
6953 write_exp* and similars in order to use parser state.
6954 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6955 to use parser state.
6956 (go_parse): Likewise.
6957 * go-lang.h: Forward declare "struct parser_state".
6958 (go_parse): Add "struct parser_state" argument.
6959
6960 2014-03-27 Doug Evans <dje@google.com>
6961
6962 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6963
6964 2014-03-27 Doug Evans <dje@google.com>
6965
6966 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6967 Remove argument abbrev_section. All callers updated.
6968
6969 2014-03-27 Doug Evans <dje@google.com>
6970
6971 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6972 addr_base, ranges_base.
6973
6974 2014-03-26 Keith Seitz <keiths@redhat.com>
6975
6976 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6977 types, not VAR_DOMAIN.
6978
6979 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6980
6981 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6982 "ra" registers.
6983 * features/nios2-linux.c: Regenerated.
6984 * features/nios2.c: Regenerated.
6985
6986 2014-03-25 Pedro Alves <palves@redhat.com>
6987
6988 * cli/cli-script.c (script_from_file): Force the interpreter to
6989 sync mode.
6990
6991 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6992
6993 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6994 small stack allocation.
6995
6996 2014-03-24 Tristan Gingold <gingold@adacore.com>
6997
6998 * darwin-nat.c (exc_server): Remove unused prototype.
6999 (darwin_dump_message): Correctly display data on x86_64.
7000 (darwin_encode_reply): Fix style.
7001 Add comments and fix indentation.
7002
7003 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7004
7005 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7006
7007 2014-03-22 Doug Evans <xdje42@gmail.com>
7008
7009 * infcmd.c: Whitespace fixes.
7010 (interrupt_command): Merge two function comments into one.
7011
7012 2014-03-22 Doug Evans <xdje42@gmail.com>
7013
7014 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7015 All uses updated.
7016
7017 2014-03-22 Yao Qi <yao@codesourcery.com>
7018
7019 * remote.c (target_read_live_memory): Remove.
7020 (memory_xfer_live_readonly_partial): Rename it to
7021 remote_xfer_live_readonly_partial. Remove argument 'object'.
7022 All callers updated. Call remote_read_bytes_1
7023 instead of target_read_live_memory.
7024 * tracepoint.c (set_traceframe_number): Remove.
7025 (make_cleanup_restore_traceframe_number): Likewise .
7026 * tracepoint.h (set_traceframe_number): Remove declaration.
7027 (make_cleanup_restore_traceframe_number): Likewise.
7028
7029 2014-03-22 Yao Qi <yao@codesourcery.com>
7030
7031 * remote.c (remote_read_bytes): Move code on reading from the
7032 remote stub to ...
7033 (remote_read_bytes_1): ... here. New function.
7034
7035 2014-03-22 Yao Qi <yao@codesourcery.com>
7036
7037 * ctf.c (ctf_xfer_partial): Check the return value of
7038 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7039 return TARGET_XFER_UNAVAILABLE.
7040 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7041 * target.c (target_read_live_memory): Move it to remote.c.
7042 (memory_xfer_live_readonly_partial): Likewise.
7043 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7044 * remote.c (target_read_live_memory): Moved from target.c.
7045 (memory_xfer_live_readonly_partial): Likewise.
7046 (remote_read_bytes): Factored out from
7047 memory_xfer_partial_1.
7048
7049 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7050
7051 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7052 NULL pointer.
7053
7054 2014-03-21 Pedro Alves <palves@redhat.com>
7055
7056 * infrun.c (normal_stop): Extend comment.
7057
7058 2014-03-21 Hui Zhu <hui@codesourcery.com>
7059 Pedro Alves <palves@redhat.com>
7060
7061 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7062 static buffer.
7063 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7064 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7065 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7066
7067 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7068
7069 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7070 `z' formatted output modifier.
7071
7072 2014-03-20 Tom Tromey <tromey@redhat.com>
7073 Sergio Durigan Junior <sergiodj@redhat.com>
7074
7075 * probe.c (parse_probes): Turn assert into an ordinary error.
7076 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7077 exceptions when parsing probes. Rearrange the code for clarity.
7078
7079 2014-03-20 Tom Tromey <tromey@redhat.com>
7080
7081 PR gdb/14135
7082 * top.c (execute_command): Only dispatch events if the command
7083 started the target.
7084
7085 2014-03-20 Tom Tromey <tromey@redhat.com>
7086
7087 PR cli/15718
7088 * infcall.c: Include event-top.h.
7089 (run_inferior_call): Call async_disable_stdin if needed.
7090
7091 2014-03-20 Pedro Alves <palves@redhat.com>
7092
7093 * infrun.c (prepare_to_proceed): Delete.
7094 (thread_still_needs_step_over): New function.
7095 (find_thread_needs_step_over): New function.
7096 (proceed): If the current thread needs a step-over, set its
7097 steping_over_breakpoint flag. Adjust to use
7098 find_thread_needs_step_over instead of prepare_to_proceed.
7099 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7100 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7101 breakpoint.
7102 (switch_back_to_stepped_thread): Step over breakpoints of all
7103 threads not the stepping thread, before switching back to the
7104 stepping thread.
7105
7106 2014-03-20 Pedro Alves <palves@redhat.com>
7107
7108 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7109 extern.
7110 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7111 * infrun.c (saved_singlestep_ptid)
7112 (stepping_past_singlestep_breakpoint): Delete.
7113 (resume): Remove stepping_past_singlestep_breakpoint handling.
7114 (proceed): Store the prev_pc of the stepping thread too.
7115 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7116 singlestep_pc.
7117 (enum infwait_states): Delete infwait_thread_hop_state.
7118 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7119 field.
7120 (handle_inferior_event): Adjust.
7121 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7122 handling and the thread-hop code. Before removing single-step
7123 breakpoints, check whether the thread hit a single-step breakpoint
7124 of another thread. If it did, the trap is not a random signal.
7125 (switch_back_to_stepped_thread): If the event thread hit a
7126 single-step breakpoint, unblock it before switching to the
7127 stepping thread. Handle the case of the stepped thread having
7128 advanced already.
7129 (keep_going): Handle the case of the current thread moving past a
7130 single-step breakpoint.
7131
7132 2014-03-20 Pedro Alves <palves@redhat.com>
7133
7134 PR breakpoints/7143
7135 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7136 are being stepped over.
7137 (breakpoint_address_match): Make extern.
7138 * breakpoint.h (breakpoint_address_match): New declaration.
7139 * inferior.h (stepping_past_instruction_at): New declaration.
7140 * infrun.c (struct step_over_info): New type.
7141 (step_over_info): New global.
7142 (set_step_over_info, clear_step_over_info)
7143 (stepping_past_instruction_at): New functions.
7144 (handle_inferior_event): Clear the step-over info when
7145 trap_expected is cleared.
7146 (resume): Remove now stale comment.
7147 (clear_proceed_status): Clear step-over info.
7148 (proceed): Adjust step-over handling to set or clear the step-over
7149 info instead of removing all breakpoints.
7150 (handle_signal_stop): When setting up a thread-hop, don't remove
7151 breakpoints here.
7152 (stop_stepping): Clear step-over info.
7153 (keep_going): Adjust step-over handling to set or clear step-over
7154 info and then always inserting breakpoints, instead of removing
7155 all breakpoints when stepping over one.
7156
7157 2014-03-20 Pedro Alves <palves@redhat.com>
7158
7159 * infrun.c (previous_inferior_ptid): Adjust comment.
7160 (deferred_step_ptid): Delete.
7161 (infrun_thread_ptid_changed, prepare_to_proceed)
7162 (init_wait_for_inferior): Adjust.
7163 (handle_signal_stop): Delete deferred_step_ptid handling.
7164
7165 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7166
7167 PR gdb/15358
7168 * defs.h (sync_quit_force_run): New declaration.
7169 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7170 * event-top.c (async_sigterm_handler): New declaration.
7171 (async_sigterm_token): New variable.
7172 (async_init_signals): Create also async_sigterm_token.
7173 (async_sigterm_handler): New function.
7174 (sync_quit_force_run): New variable.
7175 (handle_sigterm): Replace quit_force call by other calls.
7176 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7177
7178 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7179
7180 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7181 offset into SPE pseudo registers.
7182
7183 2014-03-18 Pedro Alves <palves@redhat.com>
7184
7185 PR gdb/13860
7186 * inferior.h (print_stop_event): Declare.
7187 * infrun.c (print_stop_event): New, factored out from ...
7188 (normal_stop): ... this.
7189 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7190 of bpstat_print/print_stack_frame.
7191
7192 2014-03-17 Tom Tromey <tromey@redhat.com>
7193
7194 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7195
7196 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7197
7198 * ada-lang.c (decode_constrained_packed_array): Perform a
7199 minimal coercion for reference with coerce_ref instead of
7200 ada_coerce_ref.
7201
7202 2014-03-17 Tristan Gingold <gingold@adacore.com>
7203
7204 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7205 (darwin_solib_create_inferior_hook): Emit a warning if version
7206 is unhandled.
7207
7208 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7209
7210 * python/py-value.c (get_field_flag): Cast flag_name argument to
7211 PyObject_GetAttrString to support Python 2.4.
7212
7213 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7214
7215 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7216 (Global Maintainers): Remove Jan Kratochvil.
7217
7218 2014-03-14 Pedro Alves <palves@redhat.com>
7219
7220 * inferior.h (terminal_ours_for_output): Rename to ...
7221 (child_terminal_ours_for_output): ... this.
7222 (terminal_save_ours): Rename to ...
7223 (child_terminal_save_ours): ... this.
7224 (terminal_ours): Rename to ...
7225 (child_terminal_ours): ... this.
7226 (terminal_inferior): Rename to ...
7227 (child_terminal_inferior): ... this.
7228 (terminal_init_inferior): Rename to ...
7229 (child_terminal_init_inferior): ... this.
7230 (terminal_init_inferior_with_pgrp): Rename to ...
7231 (child_terminal_init_inferior_with_pgrp): ... this.
7232 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7233 (child_terminal_init_with_pgrp): ... this.
7234 (terminal_save_ours): Rename to ...
7235 (child_terminal_save_ours): ... this.
7236 (terminal_init_inferior): Rename to ...
7237 (child_terminal_init): ... this. Adjust.
7238 (terminal_inferior): Rename to ...
7239 (child_terminal_inferior): ... this.
7240 (terminal_ours_for_output): Rename to ...
7241 (child_terminal_ours_for_output): ... this. Adjust.
7242 (terminal_ours): Rename to ...
7243 (child_terminal_ours): ... this.
7244 (terminal_ours_1): Rename to ...
7245 (child_terminal_ours_1): ... this. Adjust.
7246 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7247 * windows-nat.c (do_initial_windows_stuff): Adjust.
7248 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7249 (gnu_terminal_init): ... this. Adjust.
7250 (gnu_target): Adjust.
7251 * inf-child.c (inf_child_target): Adjust.
7252
7253 2014-03-13 Doug Evans <xdje42@gmail.com>
7254
7255 PR guile/16612
7256 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7257 new eq?-hashtab.
7258
7259 2014-03-13 Doug Evans <xdje42@gmail.com>
7260
7261 * value.c (record_latest_value): Call release_value_or_incref
7262 instead of release_value.
7263
7264 2014-03-13 Pedro Alves <palves@redhat.com>
7265
7266 * procfs.c (procfs_target): Don't override to_shortname,
7267 to_longname or to_doc.
7268
7269 2014-03-13 Pedro Alves <palves@redhat.com>
7270
7271 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7272 Unix in user visible strings.
7273
7274 2014-03-12 Stan Shebs <stan@codesourcery.com>
7275
7276 * gdbtypes.h: Annotate comments for Doxygen, add a page
7277 block comment with some general info.
7278
7279 2014-03-12 Pedro Alves <palves@redhat.com>
7280
7281 * infcmd.c (prepare_execution_command): New function, factored out
7282 from several execution commands.
7283 (run_command_1, continue_command, step_1, jump_command)
7284 (signal_command, until_command, advance_command, finish_command)
7285 (attach_command): Use prepare_execution_command.
7286
7287 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7288
7289 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7290 (MAX_BPTS): Define.
7291 (MAX_WPTS): Define.
7292 (struct arm_linux_thread_points): Removed.
7293 (struct arm_linux_process_info): New.
7294 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7295 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7296 (arm_linux_find_breakpoints_by_tid): Removed.
7297 (struct arch_lwp_info): New.
7298 (arm_linux_find_process_pid): New functions.
7299 (arm_linux_add_process): New functions.
7300 (arm_linux_process_info_get): New functions.
7301 (arm_linux_forget_process): New function.
7302 (arm_linux_get_debug_reg_state): New function.
7303 (struct update_registers_data): New.
7304 (update_registers_callback): New function.
7305 (arm_linux_insert_hw_breakpoint1): Updated.
7306 (arm_linux_remove_hw_breakpoint1): Updated.
7307 (arm_linux_insert_hw_breakpoint): Updated.
7308 (arm_linux_remove_hw_breakpoint): Updated.
7309 (arm_linux_insert_watchpoint): Updated.
7310 (arm_linux_remove_watchpoint): Updated.
7311 (arm_linux_new_thread): Updated.
7312 (arm_linux_prepare_to_resume): New function.
7313 (arm_linux_new_fork): New function.
7314 (_initialize_arm_linux_nat): Updated.
7315
7316 2014-03-12 Pedro Alves <palves@redhat.com>
7317
7318 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7319
7320 2014-03-12 Tom Tromey <tromey@redhat.com>
7321
7322 * inf-child.c (return_zero): New function.
7323 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7324 * aix-thread.c (aix_thread_inferior_created): New function.
7325 (aix_thread_attach): Remove.
7326 (init_aix_thread_ops): Don't set to_attach.
7327 (_initialize_aix_thread): Register inferior_created observer.
7328 * corelow.c (init_core_ops): Don't set to_attach or
7329 to_create_inferior.
7330 * exec.c (init_exec_ops): Don't set to_attach or
7331 to_create_inferior.
7332 * infcmd.c (run_command_1): Use find_run_target. Make direct
7333 target calls.
7334 (attach_command): Use find_attach_target. Make direct target
7335 calls.
7336 * record-btrace.c (init_record_btrace_ops): Don't set
7337 to_create_inferior.
7338 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7339 Remove.
7340 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7341 set to_create_inferior.
7342 * target.c (complete_target_initialization): Add assertion.
7343 (target_create_inferior): Remove.
7344 (find_default_attach, find_default_create_inferior): Remove.
7345 (find_attach_target, find_run_target): New functions.
7346 (find_default_is_async_p, find_default_can_async_p)
7347 (target_supports_non_stop, target_attach): Remove.
7348 (init_dummy_target): Don't set to_create_inferior or
7349 to_supports_non_stop.
7350 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7351 TARGET_DEFAULT_FUNC.
7352 <to_create_inferior>: Add comment.
7353 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7354 TARGET_DEFAULT_RETURN.
7355 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7356 (find_attach_target, find_run_target): Declare.
7357 (target_create_inferior): Remove.
7358 (target_has_execution_1): Update comment.
7359 (target_supports_non_stop): Remove.
7360 * target-delegates.c: Rebuild.
7361
7362 2014-03-12 Pedro Alves <palves@redhat.com>
7363
7364 * inf-child.h: Update comment to not mention Unix.
7365
7366 2014-03-12 Pedro Alves <palves@redhat.com>
7367
7368 * inf-child.c: Update top comment to not mention Unix. Add
7369 generic comment describing how this target is meant to be used.
7370 (inf_child_post_attach, inf_child_post_startup_inferior)
7371 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7372 Unix in comment.
7373
7374 2014-03-12 Pedro Alves <palves@redhat.com>
7375
7376 * nto-procfs.c: Include inf-child.h.
7377 (procfs_ops): Delete global.
7378 (procfs_can_run): Delete method.
7379 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7380 target pointer instead of referencing procfs_ops.
7381 (procfs_prepare_to_store): Delete.
7382 (init_procfs_ops): Delete function.
7383 (procfs_target): New function, based on init_procfs_ops, but
7384 inherit inf_child_target.
7385 (_initialize_procfs): Use procfs_target.
7386
7387 2014-03-12 Pedro Alves <palves@redhat.com>
7388
7389 * windows-nat.c: Include inf-child.h.
7390 (windows_ops): Delete global.
7391 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7392 methods.
7393 (init_windows_ops): Delete function.
7394 (windows_target): New function, based on init_windows_ops, but
7395 inherit inf_child_target.
7396 (_initialize_windows_nat): Use windows_target. Install x86
7397 specific target methods here.
7398
7399 2014-03-10 Doug Evans <xdje42@gmail.com>
7400
7401 * guile/guile.c (call_initialize_gdb_module): New function.
7402 (initialize_guile): Replace call to scm_init_guile with call to
7403 scm_with_guile.
7404
7405 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7406
7407 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7408 in call to TYPE_CODE macro.
7409
7410 2014-03-10 Jerome Guitton <guitton@adacore.com>
7411
7412 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7413 Resolve tagged types to full view.
7414
7415 2014-03-10 Hui Zhu <hui@codesourcery.com>
7416
7417 * target.h (target_insert_breakpoint): Remove "hardware" from its
7418 comments.
7419
7420 2014-03-07 Doug Evans <dje@google.com>
7421
7422 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7423
7424 2014-03-07 Doug Evans <dje@google.com>
7425
7426 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7427 Remove unused local comp_dir_attr. Assert exactly one of
7428 stub_comp_unit_die, stub_comp_dir is non-NULL.
7429
7430 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7431
7432 * target.h (complete_target_initialization, add_target):
7433 Add comment.
7434
7435 2014-03-07 Pedro Alves <palves@redhat.com>
7436
7437 * go32-nat.c: Include inf-child.h.
7438 (go32_ops): Delete global.
7439 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7440 Delete methods.
7441 (go32_create_inferior): Push the passed in target pointer instead
7442 of referencing go32_ops.
7443 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7444 (go32_target): New function, based on init_go32_ops, but inherit
7445 inf_child_target.
7446 (_initialize_go32_nat): Use go32_target. Move parts of
7447 init_go32_ops here.
7448
7449 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7450
7451 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7452 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7453 SYMBOL_VALUE_ADDRESS.
7454 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7455
7456 2014-03-06 Yao Qi <yao@codesourcery.com>
7457
7458 * breakpoint.c (get_tracepoint_by_number): Remove argument
7459 optional_p. All callers updated. Adjust comments. Update
7460 output message.
7461 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7462
7463 2014-03-06 Yao Qi <yao@codesourcery.com>
7464
7465 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7466 early if get_number returns zero. Use 'p' instead of 'args'.
7467
7468 2014-03-06 Yao Qi <yao@codesourcery.com>
7469
7470 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7471 message.
7472
7473 2014-03-06 Yao Qi <yao@codesourcery.com>
7474
7475 PR breakpoints/16508
7476 * tracepoint.c (check_trace_running): New function.
7477 (trace_find_command): Move code to check_trace_running and
7478 call check_trace_running.
7479 (trace_find_pc_command): Likewise.
7480 (trace_find_tracepoint_command): Likewise.
7481 (trace_find_line_command): Likewise.
7482 (trace_find_range_command): Likewise.
7483 * tracepoint.h (check_trace_running): Likewise.
7484 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7485
7486 2014-03-06 Yao Qi <yao@codesourcery.com>
7487
7488 * target.h (struct target_ops) <to_traceframe_info>: Use
7489 TARGET_DEFAULT_NORETURN (tcomplain ()).
7490 * target-delegates.c: Regenerated.
7491
7492 2014-03-05 Pedro Alves <palves@redhat.com>
7493
7494 PR gdb/16575
7495 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7496 void. Update comment.
7497 (dcache_xfer_memory): Delete.
7498 (dcache_read_memory_partial): New, based on the read bits of
7499 dcache_xfer_memory.
7500 (dcache_update): Add status parameter. Use ULONGEST for len, and
7501 adjust. Discard cache lines if the reason for the update was
7502 error.
7503 * dcache.h (dcache_xfer_memory): Delete declaration.
7504 (dcache_read_memory_partial): New declaration.
7505 (dcache_update): Update prototype.
7506 * target.c (raw_memory_xfer_partial): Update the dcache here.
7507 (memory_xfer_partial_1): Don't handle dcache writes here.
7508
7509 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7510
7511 * remote-sim.c (gdbsim_load): Add const to prog.
7512
7513 2014-03-03 Tom Tromey <tromey@redhat.com>
7514
7515 * elfread.c (probe_key): Change to bfd_data.
7516 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7517 now per-BFD, not per-objfile.
7518 * stap-probe.c (stap_probe_destroy): Update comment.
7519 (handle_stap_probe): Allocate on the per-BFD obstack.
7520
7521 2014-03-03 Tom Tromey <tromey@redhat.com>
7522
7523 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7524 * breakpoint.c (create_longjmp_master_breakpoint): Use
7525 get_probe_address.
7526 (add_location_to_breakpoint, bkpt_probe_insert_location)
7527 (bkpt_probe_remove_location): Update.
7528 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7529 * elfread.c (elf_symfile_relocate_probe): Remove.
7530 (elf_probe_fns): Update.
7531 (insert_exception_resume_breakpoint): Change type of "probe"
7532 parameter to bound_probe.
7533 (check_exception_resume): Update.
7534 * objfiles.c (objfile_relocate1): Don't relocate probes.
7535 * probe.c (bound_probe_s): New typedef.
7536 (parse_probes): Use get_probe_address. Set sal's objfile.
7537 (find_probe_by_pc): Return a bound_probe.
7538 (collect_probes): Return a VEC(bound_probe_s).
7539 (compare_probes): Update.
7540 (gen_ui_out_table_header_info): Change type of "probes"
7541 parameter. Update.
7542 (info_probes_for_ops): Update.
7543 (get_probe_address): New function.
7544 (probe_safe_evaluate_at_pc): Update.
7545 * probe.h (struct probe_ops) <get_probe_address>: New field.
7546 <set_semaphore, clear_semaphore>: Add objfile parameter.
7547 (struct probe) <objfile>: Remove field.
7548 <arch>: New field.
7549 <address>: Update comment.
7550 (struct bound_probe): New.
7551 (find_probe_by_pc): Return a bound_probe.
7552 (get_probe_address): Declare.
7553 * solib-svr4.c (struct probe_and_action) <address>: New field.
7554 (hash_probe_and_action, equal_probe_and_action): Update.
7555 (register_solib_event_probe): Add address parameter.
7556 (solib_event_probe_at): Update.
7557 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7558 get_probe_address.
7559 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7560 (stap_get_probe_address): New function.
7561 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7562 (compile_probe_arg): Update.
7563 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7564 address.
7565 (handle_stap_probe): Don't relocate the probe.
7566 (stap_relocate): Remove.
7567 (stap_gen_info_probes_table_values): Update.
7568 (stap_probe_ops): Remove stap_relocate.
7569 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7570 (debug_sym_probe_fns): Update.
7571 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7572 * symtab.c (init_sal): Use memset.
7573 * symtab.h (struct symtab_and_line) <objfile>: New field.
7574 * tracepoint.c (start_tracing, stop_tracing): Update.
7575
7576 2014-03-03 Tom Tromey <tromey@redhat.com>
7577
7578 * probe.h (parse_probes, find_probe_by_pc)
7579 (find_probes_in_objfile): Fix comments.
7580
7581 2014-03-02 Doug Evans <xdje42@gmail.com>
7582
7583 * infrun.c (handle_signal_stop): Replace test for
7584 TARGET_WAITKIND_STOPPED with an assert.
7585
7586 2014-03-02 Doug Evans <xdje42@gmail.com>
7587
7588 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7589
7590 2014-03-02 Doug Evans <xdje42@gmail.com>
7591
7592 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7593
7594 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7595
7596 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7597
7598 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7599
7600 * i386obsd-nat.c: Include "obsd-nat.h".
7601 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7602 add_target.
7603 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7604
7605 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7606
7607 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7608
7609 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7610
7611 * mips64obsd-nat.c: Include "obsd-nath".
7612 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7613 add_target
7614 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7615
7616 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7617
7618 * amd64obsd-nat.c: Include "obsd-nat,h.
7619 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7620 add_target.
7621 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7622
7623 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7624
7625 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7626 (find_overload_match): Update call to find_oload_champ.
7627 (find_oload_champ_namespace_loop): Likewise
7628
7629 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7630
7631 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7632
7633 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7634 * config/sparc/obsd64.mh: New file.
7635 * sparc64obsd-nat.c: New file.
7636
7637 * obsd-nat.h: New file.
7638 * obsd-nat.c: New file.
7639 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7640 (ALLDEPFILES): Add obsd-nat.c.
7641
7642 2014-02-28 Tom Tromey <tromey@redhat.com>
7643
7644 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7645 * cli-out.h (cli_ui_out_impl): Now const.
7646 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7647 * ui-out.c (struct ui_out) <impl>: Now const.
7648 (default_ui_out_impl): Now const.
7649 (ui_out_new): Make 'impl' parameter const.
7650 * ui-out.h (ui_out_new): Update.
7651
7652 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7653
7654 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7655
7656 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7657
7658 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7659
7660 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7661
7662 Additional PR 8882 fix.
7663 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7664
7665 2014-02-27 Pedro Alves <palves@redhat.com>
7666
7667 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7668 isn't set.
7669
7670 2014-02-27 Pedro Alves <palves@redhat.com>
7671
7672 PR 12702
7673 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7674 * nat/linux-waitpid.c: Include string.h.
7675 (status_to_str): Moved here and made extern.
7676 * nat/linux-waitpid.h (status_to_str): New declaration.
7677
7678 2014-02-27 Hui Zhu <hui@codesourcery.com>
7679
7680 PR 12702
7681 * infrun.c (ptid_match): Move ...
7682 * common/ptid.c (ptid_match): ... here.
7683 * inferior.h (ptid_match): Move ...
7684 * common/ptid.h (ptid_match): ... here.
7685
7686 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7687
7688 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7689 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7690 gdb_target_obs.
7691
7692 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7693
7694 * obsd-tdep.c (obsd_auxv_parse): New function.
7695 (obsd_init_abi): Set auxv_parse.
7696
7697 * gdbarch.sh (auxv_parse): New.
7698 * gdbarch.h: Regenerated.
7699 * gdbarch.c: Regenerated.
7700 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7701
7702 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7703
7704 * guile/scm-value.c (gdbscm_history_append_x): New function.
7705 (value_functions): Add it.
7706
7707 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7708
7709 * dwarf2read.c (attr_value_as_address): New function.
7710 (dwarf2_find_base_address, read_call_site_scope): Use
7711 attr_value_as_address in place of DW_ADDR.
7712 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7713 the low and high addresses. Slight rework of the handling
7714 of the high pc being a constant form, and limit it to
7715 DWARF verson 4 or higher.
7716 (dwarf2_record_block_ranges): Likewise.
7717 (read_partial_die): Likewise.
7718 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7719
7720 2014-02-26 Tom Tromey <tromey@redhat.com>
7721
7722 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7723
7724 2014-02-26 Tom Tromey <tromey@redhat.com>
7725
7726 * elfread.c (elf_read_minimal_symbols): Return early if
7727 minimal symbols have already been read. Add "ei" parameter.
7728 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7729 * minsyms.c (prim_record_minimal_symbol_full): Update.
7730 * objfiles.h (struct objstats) <n_minsyms>: Move...
7731 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7732 * symmisc.c (print_objfile_statistics): Update.
7733
7734 2014-02-26 Tom Tromey <tromey@redhat.com>
7735
7736 * elfread.c (elf_read_minimal_symbols): New function, from
7737 elf_symfile_read.
7738 (elf_symfile_read): Call it.
7739
7740 2014-02-26 Tom Tromey <tromey@redhat.com>
7741
7742 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7743 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7744 (lookup_minimal_symbol_solib_trampoline)
7745 (lookup_minimal_symbol_by_pc_section_1)
7746 (lookup_minimal_symbol_and_objfile): Update.
7747 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7748 Don't allocate a minimal symbol if minsyms have already been read.
7749 (build_minimal_symbol_hash_tables): Update.
7750 (install_minimal_symbols): Do nothing if minsyms already read.
7751 Use the per-BFD obstack.
7752 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7753 * objfiles.c (allocate_objfile): Call
7754 terminate_minimal_symbol_table later.
7755 (have_minimal_symbols): Update.
7756 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7757 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7758 Move from struct objfile.
7759 <minsyms_read>: New field.
7760 (struct objfile) <msymbols, minimal_symbol_count,
7761 msymbol_hash, msymbol_demangled_hash>: Move.
7762 (ALL_OBJFILE_MSYMBOLS): Update.
7763 * symfile.c (read_symbols): Set minsyms_read.
7764 (reread_symbols): Update.
7765 * symmisc.c (dump_objfile, dump_msymbols): Update.
7766
7767 2014-02-26 Tom Tromey <tromey@redhat.com>
7768
7769 * minsyms.c (msymbols_sort): Remove.
7770 * minsyms.h (msymbols_sort): Remove.
7771 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7772 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7773 * elfread.c (elf_symtab_read): Don't add section offsets.
7774 * xcoffread.c (record_minimal_symbol): Don't add section offset
7775 to minimal symbol address.
7776 * somread.c (text_offset, data_offset): Remove.
7777 (som_symtab_read): Don't add section offsets to minimal symbol
7778 addresses.
7779 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7780 Don't add section offsets to minimal symbols.
7781 * coffread.c (coff_symtab_read): Don't add section offsets
7782 to minimal symbol addresses.
7783 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7784 to minimal symbol addresses.
7785 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7786 section offset to minimal symbol addresses.
7787 * mdebugread.c (parse_partial_symbols): Don't add section
7788 offset to minimal symbol addresses.
7789 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7790 offset to minimal symbol addresses.
7791
7792 2014-02-26 Tom Tromey <tromey@redhat.com>
7793
7794 * ada-lang.c (ada_main_name): Update.
7795 (ada_add_standard_exceptions): Update.
7796 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7797 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7798 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7799 * auxv.c (ld_so_xfer_auxv): Update.
7800 * avr-tdep.c (avr_scan_prologue): Update.
7801 * ax-gdb.c (gen_var_ref): Update.
7802 * blockframe.c (get_pc_function_start)
7803 (find_pc_partial_function_gnu_ifunc): Update.
7804 * breakpoint.c (create_overlay_event_breakpoint)
7805 (create_longjmp_master_breakpoint)
7806 (create_std_terminate_master_breakpoint)
7807 (create_exception_master_breakpoint): Update.
7808 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7809 * c-valprint.c (c_val_print): Update.
7810 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7811 * common/agent.c (agent_look_up_symbols): Update.
7812 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7813 * dwarf2loc.c (call_site_to_target_addr): Update.
7814 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7815 * elfread.c (elf_gnu_ifunc_record_cache)
7816 (elf_gnu_ifunc_resolve_by_got): Update.
7817 * findvar.c (default_read_var_value): Update.
7818 * frame.c (inside_main_func): Update.
7819 * frv-tdep.c (frv_frame_this_id): Update.
7820 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7821 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7822 Update.
7823 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7824 (hppa_hpux_find_dummy_bpaddr): Update.
7825 * hppa-tdep.c (hppa_symbol_address): Update.
7826 * infcmd.c (until_next_command): Update.
7827 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7828 Update.
7829 * linespec.c (minsym_found, add_minsym): Update.
7830 * linux-nat.c (get_signo): Update.
7831 * linux-thread-db.c (inferior_has_bug): Update.
7832 * m32c-tdep.c (m32c_return_value)
7833 (m32c_m16c_address_to_pointer): Update.
7834 * m32r-tdep.c (m32r_frame_this_id): Update.
7835 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7836 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7837 * maint.c (maintenance_translate_address): Update.
7838 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7839 (frob_address): New function.
7840 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7841 frob_address. Rename parameter to "pc_in".
7842 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7843 addresses.
7844 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7845 Update.
7846 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7847 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7848 * objc-lang.c (find_objc_msgsend): Update.
7849 * objfiles.c (objfile_relocate1): Update.
7850 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7851 * p-valprint.c (pascal_val_print): Update.
7852 * parse.c (write_exp_msymbol): Update.
7853 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7854 (ppc_elfv2_skip_entrypoint): Update.
7855 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7856 * printcmd.c (build_address_symbolic, msym_info)
7857 (address_info): Update.
7858 * proc-service.c (ps_pglobal_lookup): Update.
7859 * psymtab.c (find_pc_sect_psymtab_closer)
7860 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7861 Change msymbol parameter to bound_minimal_symbol.
7862 * ravenscar-thread.c (get_running_thread_id): Update.
7863 * remote.c (remote_check_symbols): Update.
7864 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7865 address.
7866 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7867 * solib-dsbt.c (lm_base): Update.
7868 * solib-frv.c (lm_base, main_got): Update.
7869 * solib-irix.c (locate_base): Update.
7870 * solib-som.c (som_solib_create_inferior_hook)
7871 (link_map_start): Update.
7872 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7873 * solib-svr4.c (elf_locate_base, enable_break): Update.
7874 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7875 (flush_ea_cache): Update.
7876 * stabsread.c (define_symbol, scan_file_globals): Update.
7877 * stack.c (find_frame_funname): Update.
7878 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7879 (debug_qf_find_pc_sect_symtab): Update.
7880 * symfile.c (simple_read_overlay_table)
7881 (simple_overlay_update): Update.
7882 * symfile.h (struct quick_symbol_functions)
7883 <find_pc_sect_symtab>: Change type of msymbol to
7884 bound_minimal_symbol.
7885 * symmisc.c (dump_msymbols): Update.
7886 * symtab.c (find_pc_sect_symtab_via_partial)
7887 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7888 (search_symbols, print_msymbol_info): Update.
7889 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7890 (MSYMBOL_VALUE_ADDRESS): Redefine.
7891 (BMSYMBOL_VALUE_ADDRESS): New macro.
7892 * tracepoint.c (scope_info): Update.
7893 * tui/tui-disasm.c (tui_find_disassembly_address)
7894 (tui_get_begin_asm_address): Update.
7895 * valops.c (find_function_in_inferior): Update.
7896 * value.c (value_static_field, value_fn_field): Update.
7897
7898 2014-02-26 Tom Tromey <tromey@redhat.com>
7899
7900 * ada-lang.c (ada_update_initial_language): Update.
7901 (ada_main_name, ada_has_this_exception_support): Update.
7902 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7903 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7904 * arm-tdep.c (arm_skip_stub): Update.
7905 * auxv.c (ld_so_xfer_auxv): Update.
7906 * avr-tdep.c (avr_scan_prologue): Update.
7907 * ax-gdb.c (gen_var_ref): Update.
7908 * breakpoint.c (struct breakpoint_objfile_data)
7909 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7910 type to bound_minimal_symbol.
7911 (create_overlay_event_breakpoint)
7912 (create_longjmp_master_breakpoint)
7913 (create_std_terminate_master_breakpoint)
7914 (create_exception_master_breakpoint): Update.
7915 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7916 * c-exp.y (classify_name): Update.
7917 * coffread.c (coff_symfile_read): Update.
7918 * common/agent.c (agent_look_up_symbols): Update.
7919 * d-lang.c (d_main_name): Update.
7920 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7921 * dec-thread.c (enable_dec_thread): Update.
7922 * dwarf2loc.c (call_site_to_target_addr): Update.
7923 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7924 * eval.c (evaluate_subexp_standard): Update.
7925 * findvar.c (struct minsym_lookup_data) <result>: Change type
7926 to bound_minimal_symbol.
7927 <objfile>: Remove.
7928 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7929 * frame.c (inside_main_func): Update.
7930 * frv-tdep.c (frv_frame_this_id): Update.
7931 * gcore.c (call_target_sbrk): Update.
7932 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7933 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7934 Update.
7935 * go-lang.c (go_main_name): Update.
7936 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7937 (hppa_hpux_find_import_stub_for_addr): Update.
7938 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7939 Update. Change return type.
7940 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7941 type.
7942 * jit.c (jit_breakpoint_re_set_internal): Update.
7943 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7944 Update.
7945 * linux-nat.c (get_signo): Update.
7946 * linux-thread-db.c (inferior_has_bug): Update
7947 * m32c-tdep.c (m32c_return_value)
7948 (m32c_m16c_address_to_pointer): Update.
7949 * m32r-tdep.c (m32r_frame_this_id): Update.
7950 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7951 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7952 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7953 lookup_minimal_symbol. Change return type.
7954 (lookup_minimal_symbol): Remove.
7955 (lookup_bound_minimal_symbol): Update.
7956 (lookup_minimal_symbol_text): Change return type.
7957 (lookup_minimal_symbol_solib_trampoline): Change return type.
7958 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7959 (lookup_minimal_symbol_solib_trampoline): Change return type.
7960 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7961 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7962 (value_nsstring, find_imps): Update.
7963 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7964 * p-lang.c (pascal_main_name): Update.
7965 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7966 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7967 * proc-service.c (ps_pglobal_lookup): Update.
7968 * ravenscar-thread.c (get_running_thread_msymbol): Change
7969 return type.
7970 (has_ravenscar_runtime, get_running_thread_id): Update.
7971 * remote.c (remote_check_symbols): Update.
7972 * sol-thread.c (ps_pglobal_lookup): Update.
7973 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7974 * solib-dsbt.c (lm_base): Update.
7975 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7976 Update.
7977 * solib-irix.c (locate_base): Update.
7978 * solib-som.c (som_solib_create_inferior_hook)
7979 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7980 Update.
7981 * solib-spu.c (spu_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): Update.
7986 * symfile.c (simple_read_overlay_table): Update.
7987 * symtab.c (find_pc_sect_line): Update.
7988 * tracepoint.c (scope_info): Update.
7989 * tui-disasm.c (tui_get_begin_asm_address): Update.
7990 * value.c (value_static_field): Update.
7991
7992 2014-02-26 Tom Tromey <tromey@redhat.com>
7993
7994 * minsyms.c (prim_record_minimal_symbol_full): Use
7995 SET_MSYMBOL_VALUE_ADDRESS.
7996 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7997 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7998 SET_MSYMBOL_VALUE_ADDRESS.
7999 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8000 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8001
8002 2014-02-26 Tom Tromey <tromey@redhat.com>
8003
8004 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8005 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8006 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8007 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8008 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8009 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8010 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8011 * ada-lang.c (ada_main_name): Update.
8012 (ada_lookup_simple_minsym): Update.
8013 (ada_make_symbol_completion_list): Update.
8014 (ada_add_standard_exceptions): Update.
8015 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8016 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8017 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8018 * arm-tdep.c (skip_prologue_function): Update.
8019 (arm_skip_stack_protector, arm_skip_stub): Update.
8020 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8021 (arm_wince_skip_main_prologue): Update.
8022 * auxv.c (ld_so_xfer_auxv): Update.
8023 * avr-tdep.c (avr_scan_prologue): Update.
8024 * ax-gdb.c (gen_var_ref): Update.
8025 * block.c (call_site_for_pc): Update.
8026 * blockframe.c (get_pc_function_start): Update.
8027 (find_pc_partial_function_gnu_ifunc): Update.
8028 * breakpoint.c (create_overlay_event_breakpoint): Update.
8029 (create_longjmp_master_breakpoint): Update.
8030 (create_std_terminate_master_breakpoint): Update.
8031 (create_exception_master_breakpoint): Update.
8032 (resolve_sal_pc): Update.
8033 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8034 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8035 Update.
8036 * c-valprint.c (c_val_print): Update.
8037 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8038 * coffread.c (coff_symfile_read): Update.
8039 * common/agent.c (agent_look_up_symbols): Update.
8040 * dbxread.c (find_stab_function_addr): Update.
8041 (end_psymtab): Update.
8042 * dwarf2loc.c (call_site_to_target_addr): Update.
8043 (func_verify_no_selftailcall): Update.
8044 (tailcall_dump): Update.
8045 (call_site_find_chain_1): Update.
8046 (dwarf_expr_reg_to_entry_parameter): Update.
8047 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8048 (elf_gnu_ifunc_resolve_by_got): Update.
8049 * f-valprint.c (info_common_command): Update.
8050 * findvar.c (read_var_value): Update.
8051 * frame.c (get_prev_frame_1): Update.
8052 (inside_main_func): Update.
8053 * frv-tdep.c (frv_skip_main_prologue): Update.
8054 (frv_frame_this_id): Update.
8055 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8056 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8057 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8058 (gnuv3_skip_trampoline): Update.
8059 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8060 (hppa64_hpux_in_solib_call_trampoline): Update.
8061 (hppa_hpux_skip_trampoline_code): Update.
8062 (hppa64_hpux_search_dummy_call_sequence): Update.
8063 (hppa_hpux_find_import_stub_for_addr): Update.
8064 (hppa_hpux_find_dummy_bpaddr): Update.
8065 * hppa-tdep.c (hppa_symbol_address)
8066 (hppa_lookup_stub_minimal_symbol): Update.
8067 * i386-tdep.c (i386_skip_main_prologue): Update.
8068 (i386_pe_skip_trampoline_code): Update.
8069 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8070 * infcall.c (get_function_name): Update.
8071 * infcmd.c (until_next_command): Update.
8072 * jit.c (jit_breakpoint_re_set_internal): Update.
8073 (jit_inferior_init): Update.
8074 * linespec.c (minsym_found): Update.
8075 (add_minsym): Update.
8076 * linux-fork.c (info_checkpoints_command): Update.
8077 * linux-nat.c (get_signo): Update.
8078 * linux-thread-db.c (inferior_has_bug): Update.
8079 * m32c-tdep.c (m32c_return_value): Update.
8080 (m32c_m16c_address_to_pointer): Update.
8081 (m32c_m16c_pointer_to_address): Update.
8082 * m32r-tdep.c (m32r_frame_this_id): Update.
8083 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8084 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8085 * maint.c (maintenance_translate_address): Update.
8086 * minsyms.c (add_minsym_to_hash_table): Update.
8087 (add_minsym_to_demangled_hash_table): Update.
8088 (msymbol_objfile): Update.
8089 (lookup_minimal_symbol): Update.
8090 (iterate_over_minimal_symbols): Update.
8091 (lookup_minimal_symbol_text): Update.
8092 (lookup_minimal_symbol_by_pc_name): Update.
8093 (lookup_minimal_symbol_solib_trampoline): Update.
8094 (lookup_minimal_symbol_by_pc_section_1): Update.
8095 (lookup_minimal_symbol_and_objfile): Update.
8096 (prim_record_minimal_symbol_full): Update.
8097 (compare_minimal_symbols): Update.
8098 (compact_minimal_symbols): Update.
8099 (build_minimal_symbol_hash_tables): Update.
8100 (install_minimal_symbols): Update.
8101 (terminate_minimal_symbol_table): Update.
8102 (find_solib_trampoline_target): Update.
8103 (minimal_symbol_upper_bound): Update.
8104 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8105 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8106 (mips_skip_pic_trampoline_code): Update.
8107 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8108 * objc-lang.c (selectors_info): Update.
8109 (classes_info): Update.
8110 (find_methods): Update.
8111 (find_imps): Update.
8112 (find_objc_msgsend): Update.
8113 * objfiles.c (objfile_relocate1): Update.
8114 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8115 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8116 * p-valprint.c (pascal_val_print): Update.
8117 * parse.c (write_exp_msymbol): Update.
8118 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8119 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8120 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8121 * printcmd.c (build_address_symbolic): Update.
8122 (sym_info): Update.
8123 (address_info): Update.
8124 * proc-service.c (ps_pglobal_lookup): Update.
8125 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8126 (find_pc_sect_psymtab): Update.
8127 * python/py-framefilter.c (py_print_frame): Update.
8128 * ravenscar-thread.c (get_running_thread_id): Update.
8129 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8130 Update.
8131 * remote.c (remote_check_symbols): Update.
8132 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8133 (rs6000_skip_trampoline_code): Update.
8134 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8135 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8136 * solib-dsbt.c (lm_base): Update.
8137 * solib-frv.c (lm_base): Update.
8138 (main_got): Update.
8139 * solib-irix.c (locate_base): Update.
8140 * solib-som.c (som_solib_create_inferior_hook): Update.
8141 (som_solib_desire_dynamic_linker_symbols): Update.
8142 (link_map_start): Update.
8143 * solib-spu.c (spu_enable_break): Update.
8144 (ocl_enable_break): Update.
8145 * solib-svr4.c (elf_locate_base): Update.
8146 (enable_break): Update.
8147 * spu-tdep.c (spu_get_overlay_table): Update.
8148 (spu_catch_start): Update.
8149 (flush_ea_cache): Update.
8150 * stabsread.c (define_symbol): Update.
8151 (scan_file_globals): Update.
8152 * stack.c (find_frame_funname): Update.
8153 (frame_info): Update.
8154 * symfile.c (simple_read_overlay_table): Update.
8155 (simple_overlay_update): Update.
8156 * symmisc.c (dump_msymbols): Update.
8157 * symtab.c (fixup_section): Update.
8158 (find_pc_sect_line): Update.
8159 (skip_prologue_sal): Update.
8160 (search_symbols): Update.
8161 (print_msymbol_info): Update.
8162 (rbreak_command): Update.
8163 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8164 (completion_list_objc_symbol): Update.
8165 (default_make_symbol_completion_list_break_on): Update.
8166 * tracepoint.c (scope_info): Update.
8167 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8168 (tui_get_begin_asm_address): Update.
8169 * valops.c (find_function_in_inferior): Update.
8170 * value.c (value_static_field): Update.
8171 (value_fn_field): Update.
8172
8173 2014-02-26 Tom Tromey <tromey@redhat.com>
8174
8175 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8176 bound minimal symbols. Move code that knows about minsym
8177 table layout...
8178 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8179 function.
8180 * minsyms.h (minimal_symbol_upper_bound): Declare.
8181 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8182 minimal_symbol_upper_bound.
8183
8184 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8185
8186 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8187 Use the type's name if its basic type does not have a tag.
8188
8189 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8190
8191 * dwarf2read.c (read_subrange_type): Add comment.
8192
8193 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8194
8195 * dwarf2read.c (update_enumeration_type_from_children): New
8196 function, mostly extracted from process_structure_scope.
8197 (read_enumeration_type): Call update_enumeration_type_from_children.
8198 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8199 and flag_flag_enum fields.
8200
8201 2014-02-26 Pedro Alves <palves@redhat.com>
8202
8203 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8204 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8205 to_xfer_partial method.
8206
8207 2014-02-26 Pedro Alves <palves@redhat.com>
8208
8209 * target.c (complete_target_initialization): Don't install
8210 default_xfer_partial as to_xfer_partial hook.
8211 (nomemory): Delete.
8212 (update_current_target): Don't INHERIT nor de_fault
8213 deprecated_xfer_memory. Delete de_fault macro.
8214 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8215 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8216 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8217 field.
8218
8219 2014-02-26 Pedro Alves <palves@redhat.com>
8220
8221 * go32-nat.c (my_write_child): New function.
8222 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8223 (go32_xfer_partial): New function.
8224 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8225 Instead install a to_xfer_partial hook.
8226
8227 2014-02-26 Pedro Alves <palves@redhat.com>
8228
8229 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8230 to_xfer_partial helper. Rewrite.
8231 (procfs_xfer_partial): New function.
8232 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8233 Install a to_xfer_partial hook.
8234
8235 2014-02-26 Pedro Alves <palves@redhat.com>
8236
8237 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8238 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8239 (m32r_xfer_partial): New function.
8240 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8241 Install a to_xfer_partial hook.
8242
8243 2014-02-26 Pedro Alves <palves@redhat.com>
8244
8245 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8246 helper.
8247 (mips_xfer_partial): New function.
8248 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8249 hook. Install a to_xfer_partial hook.
8250
8251 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8252
8253 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8254 * gdbtypes.c (create_array_type_with_stride): New function,
8255 renaming create_array_type, but with an added parameter
8256 called "bit_stride".
8257 (create_array_type): Re-implement using
8258 create_array_type_with_stride.
8259 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8260 and DW_AT_bit_stride attributes.
8261
8262 2014-02-26 Pedro Alves <palves@redhat.com>
8263
8264 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8265 task-specific breakpoints.
8266
8267 2014-02-25 Pedro Alves <palves@redhat.com>
8268
8269 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8270 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8271
8272 2014-02-25 Stan Shebs <stan@codesourcery.com>
8273
8274 * defs.h: Annotate comments for Doxygen.
8275
8276 2014-02-25 Tom Tromey <tromey@redhat.com>
8277
8278 * target.h (target_ignore): Don't declare.
8279 * target.c (target_ignore): Remove.
8280
8281 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8282
8283 PR gdb/16626
8284 * auto-load.c (auto_load_objfile_script_1): Change filename to
8285 debugfile.
8286
8287 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8288
8289 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8290 documentation. Adjust prototype to match the target_ops
8291 to_xfer_partial method. Adjust implementation accordingly.
8292
8293 2014-02-25 Hui Zhu <hui@codesourcery.com>
8294
8295 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8296 to_traceframe_info.
8297
8298 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8299
8300 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8301 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8302 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8303 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8304 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8305 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8306 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8307 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8308 New constants.
8309 (rl78_register_type): Use a data pointer type for SP and
8310 new pseudo registers mentioned above. Use a 16 bit integer
8311 type for all other register pairs.
8312 (rl78_register_name, rl78_g10_register_name): Update for
8313 new pseudo registers.
8314 (rl78_pseudo_register_read): Likewise.
8315 (rl78_pseudo_register_write): Likewise.
8316 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8317 to the newly added pseudo registers.
8318
8319 2014-02-24 Doug Evans <dje@google.com>
8320
8321 * value.c (record_latest_value): Fix comment.
8322 * printcmd.c (print_command_1): Remove code to handle -1 return from
8323 record_latest_value.
8324
8325 2014-02-24 Pedro Alves <palves@redhat.com>
8326
8327 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8328 deprecated_xfer_memory hook.
8329 (procfs_xfer_partial): Call procfs_xfer_memory instead
8330 of the deprecated_xfer_memory target hook.
8331 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8332 helper.
8333
8334 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8335
8336 * windows-nat.c (windows_xfer_shared_libraries): Return
8337 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8338 requested object is TARGET_OBJECT_LIBRARIES.
8339
8340 2014-02-24 Yao Qi <yao@codesourcery.com>
8341
8342 * target.h (enum target_xfer_status)
8343 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8344 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8345 explicitly. New.
8346 * corefile.c (memory_error_message): User updated.
8347 * exec.c (section_table_read_available_memory): Likewise.
8348 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8349 * target.c (target_xfer_status_to_string): Likewise.
8350 (raw_memory_xfer_partial): Likewise.
8351 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8352 * valops.c (read_value_memory): Likewise.
8353 * exec.h: Update comments.
8354
8355 2014-02-24 Yao Qi <yao@codesourcery.com>
8356
8357 * target.c (target_xfer_status_to_string): Rename argument err
8358 to status.
8359 * target.h (target_xfer_status_to_string): Update declaration.
8360 Replace target_xfer_error_to_string with
8361 target_xfer_status_to_string in comment.
8362
8363 2014-02-24 Yao Qi <yao@codesourcery.com>
8364
8365 * mips-linux-nat.c (super_close): Update its type.
8366 (mips_linux_close): Pass 'self' to super_close.
8367
8368 2014-02-24 Yao Qi <yao@codesourcery.com>
8369
8370 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8371 * corefile.c (read_memory): Adjusted.
8372 * target.c (target_write_with_progress): Adjusted.
8373
8374 2014-02-23 Yao Qi <yao@codesourcery.com>
8375
8376 Revert two patches:
8377
8378 2013-10-25 Yao Qi <yao@codesourcery.com>
8379
8380 * remote.c (remote_traceframe_info): Return early if
8381 traceframe is not selected.
8382
8383 2013-07-19 Yao Qi <yao@codesourcery.com>
8384
8385 * target.c (update_current_target): Change the default action
8386 of 'to_traceframe_info' from tcomplain to return_zero.
8387 * target.h (struct target_ops) <to_traceframe_info>: Add more
8388 comments.
8389
8390 2014-02-23 Yao Qi <yao@codesourcery.com>
8391
8392 * valops.c (read_value_memory): Rewrite it. Call
8393 target_xfer_partial in a loop.
8394 * exec.h (section_table_available_memory): Remove declaration.
8395 Move comments to ...
8396 * exec.c (section_table_available_memory): ... here. Make it
8397 static.
8398
8399 2014-02-23 Yao Qi <yao@codesourcery.com>
8400
8401 * exec.c (section_table_read_available_memory): New function.
8402 * exec.h (section_table_read_available_memory): Declare.
8403 * ctf.c (ctf_xfer_partial): Call
8404 section_table_read_available_memory.
8405 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8406
8407 2014-02-23 Yao Qi <yao@codesourcery.com>
8408
8409 * ctf.c (ctf_xfer_partial): Move code to ...
8410 * exec.c (exec_read_partial_read_only): ... it. New function.
8411 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8412 * tracefile.c: Include "exec.h".
8413 * exec.h (exec_read_partial_read_only): Declare.
8414
8415 2014-02-23 Yao Qi <yao@codesourcery.com>
8416
8417 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8418 (tfile_has_memory): Remove.
8419 (init_tfile_ops): Don't set fields to_has_all_memory and
8420 to_has_memory of tfile_ops.
8421 * tracefile.c (tracefile_has_all_memory): New function.
8422 (tracefile_has_memory): New function.
8423 (init_tracefile_ops): Initialize fields to_has_all_memory and
8424 to_has_memory of 'ops'.
8425
8426 2014-02-23 Yao Qi <yao@codesourcery.com>
8427
8428 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8429 (ctf_thread_alive, ctf_get_trace_status): Remove.
8430 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8431 init_tracefile_ops.
8432 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8433 (tfile_has_stack, tfile_has_registers): Remove.
8434 (tfile_thread_alive): Remove.
8435 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8436 init_tracefile_ops.
8437 * tracefile.c (tracefile_has_stack): New function.
8438 (tracefile_has_registers): New function.
8439 (tracefile_thread_alive): New function.
8440 (tracefile_get_trace_status): New function.
8441 (init_tracefile_ops): New function.
8442 * tracefile.h (init_tracefile_ops): Declare.
8443
8444 2014-02-23 Yao Qi <yao@codesourcery.com>
8445
8446 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8447 (O_LARGEFILE): Likewise.
8448 (tfile_ops): Likewise.
8449 (TRACE_HEADER_SIZE): Likewise.
8450 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8451 (cur_data_size): Likewise.
8452 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8453 (tfile_close, tfile_files_info): Likewise.
8454 (tfile_get_trace_status): Likewise.
8455 (tfile_get_tracepoint_status): Likewise.
8456 (tfile_get_traceframe_address): Likewise.
8457 (tfile_trace_find, match_blocktype): Likewise.
8458 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8459 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8460 (tfile_get_trace_state_variable_value): Likewise.
8461 (tfile_has_all_memory, tfile_has_memory): Likewise.
8462 (tfile_has_stack, tfile_has_registers): Likewise.
8463 (tfile_thread_alive, build_traceframe_info): Likewise.
8464 (tfile_traceframe_info, init_tfile_ops): Likewise.
8465 (_initialize_tracepoint): Don't call init_tfile_ops
8466 and add_target_with_completer.
8467 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8468 exec.h, completer.h and filenames.h.
8469 (_initialize_tracefile_tfile): New function.
8470
8471 2014-02-23 Yao Qi <yao@codesourcery.com>
8472
8473 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8474 tracefile-tfile.o.
8475 (HFILES_NO_SRCDIR): Add tracefile.h.
8476 * ctf.c: Include "tracefile.h".
8477 * tracefile.h: New file.
8478 * tracefile.c: New file
8479 * tracefile-tfile.c: New file.
8480 * tracepoint.c: Include "tracefile.h".
8481 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8482 (stop_reason_names): Add const.
8483 (trace_file_writer_xfree): Move it to tracefile.c.
8484 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8485 (trace_save_ctf): Likewise.
8486 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8487 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8488 (tfile_write_header, tfile_write_regblock_type): Likewise.
8489 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8490 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8491 (tfile_write_raw_data, tfile_end): Likewise.
8492 (tfile_trace_file_writer_new): Likewise.
8493 (free_uploaded_tp): Make it extern.
8494 (free_uploaded_tsv): Make it extern.
8495 (_initialize_tracepoint): Move code to register command 'tsave'
8496 to tracefile.c.
8497 * tracepoint.h (stop_reason_names): Declare.
8498 (struct trace_frame_write_ops): Move it to tracefile.h.
8499 (struct trace_file_write_ops): Likewise.
8500 (struct trace_file_writer): Likewise.
8501 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8502
8503 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8504
8505 PR gdb/16594
8506 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8507 process name.
8508 (get_cores_used_by_process): New parameter num_cores, use it.
8509 (linux_xfer_osdata_processes): Pass num_cores to it.
8510 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8511 process name.
8512
8513 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8514
8515 * target.c (memory_xfer_partial): Fix length arg in call to
8516 breakpoint_xfer_memory.
8517
8518 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8519
8520 PR tdep/16397
8521 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8522 number comes after the + or - signs. Adjust length of register
8523 name to be extracted.
8524
8525 2014-02-20 Tom Tromey <tromey@redhat.com>
8526
8527 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8528 (ada_varobj_ops): Mark "extern".
8529
8530 2014-02-20 Tom Tromey <tromey@redhat.com>
8531
8532 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8533
8534 2014-02-20 Doug Evans <xdje42@gmail.com>
8535
8536 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8537 All callers updated.
8538 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8539 All callers updated.
8540 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8541 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8542
8543 2014-02-20 lin zuojian <manjian2006@gmail.com>
8544 Joel Brobecker <brobecker@adacore.com>
8545 Doug Evans <xdje42@gmail.com>
8546
8547 PR symtab/16581
8548 * dwarf2read.c (struct die_info): New member in_process.
8549 (reset_die_in_process): New function.
8550 (process_die): Set it at the start, reset when returning.
8551 (inherit_abstract_dies): Only call process_die if origin_child_die
8552 not already being processed.
8553
8554 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8555
8556 * windows-nat.c (handle_unload_dll): Add function documentation.
8557 (do_initial_windows_stuff): Add comment explaining why we wait
8558 until after inferior initialization has finished before
8559 processing all DLLs.
8560
8561 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8562
8563 * windows-nat.c (get_module_name): Delete.
8564 (windows_get_exec_module_filename): New function, mostly
8565 inspired from get_module_name.
8566 (windows_pid_to_exec_file): Replace call to get_module_name
8567 by call to windows_get_exec_module_filename.
8568
8569 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8570
8571 * windows-nat.c (handle_load_dll): Rewrite this function's
8572 introductory comment. Remove code using get_module_name
8573 to get the DLL's name.
8574
8575 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8576
8577 * windows-nat.c (get_windows_debug_event): Ignore
8578 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8579 if windows_initialization_done == 0.
8580 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8581 Adjust implementation to always load all DLLs.
8582 (do_initial_windows_stuff): Replace call to
8583 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8584
8585 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8586
8587 * windows-nat.c (_initialize_windows_nat): Deprecate the
8588 "dll-symbols" command. Turn the "add-shared-symbol-files"
8589 and "assf" aliases into commands, and deprecate them as well.
8590 * NEWS: Add entry explaining that "dll-symbols" and its two
8591 aliases are now deprecated.
8592
8593 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8594
8595 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8596 new-line in debug string. Remove trailing spaces.
8597
8598 2014-02-19 Stan Shebs <stan@codesourcery.com>
8599
8600 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8601
8602 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8603
8604 * NEWS: Add entry for the new feature
8605 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8606 and class values.
8607
8608 2014-02-19 Stan Shebs <stan@codesourcery.com>
8609
8610 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8611
8612 2014-02-19 Pedro Alves <palves@redhat.com>
8613
8614 * common/ptid.h (struct ptid): Mention that process_stratum
8615 targets should prefer ptid.lwp.
8616
8617 2014-02-19 Pedro Alves <palves@redhat.com>
8618
8619 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8620 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8621 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8622 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8623 store remote thread ids rather than ptid.tid.
8624 (_initialize_remote): Adjust.
8625
8626 2014-02-19 Tom Tromey <tromey@redhat.com>
8627
8628 * target.c (target_get_unwinder): Rewrite.
8629 (target_get_tailcall_unwinder): Rewrite.
8630 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8631 (record_btrace_to_get_tailcall_unwinder): New function.
8632 (init_record_btrace_ops): Update.
8633 * target.h (struct target_ops) <to_get_unwinder,
8634 to_get_tailcall_unwinder>: Now function pointers. Use
8635 TARGET_DEFAULT_RETURN.
8636
8637 2014-02-19 Tom Tromey <tromey@redhat.com>
8638
8639 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8640 argument.
8641 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8642
8643 2014-02-19 Tom Tromey <tromey@redhat.com>
8644
8645 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8646 directly.
8647 * target-delegates.c: Rebuild.
8648 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8649 TARGET_DEFAULT_FUNC.
8650 * target.c (default_target_decr_pc_after_break): Rename from
8651 forward_target_decr_pc_after_break. Simplify.
8652 (target_decr_pc_after_break): Rely on delegation.
8653
8654 2014-02-19 Tom Tromey <tromey@redhat.com>
8655
8656 * target.c (update_current_target): Do not INHERIT to_doc or
8657 to_magic. Do not de_fault to_open or to_close.
8658
8659 2014-02-19 Tom Tromey <tromey@redhat.com>
8660
8661 * gcore.h (objfile_find_memory_regions): Declare.
8662 * gcore.c (objfile_find_memory_regions): No longer static. Add
8663 "self" argument.
8664 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8665 * exec.c: Include gcore.h.
8666 (exec_set_find_memory_regions): Remove.
8667 (exec_find_memory_regions): Remove.
8668 (exec_do_find_memory_regions): Remove.
8669 (init_exec_ops): Update.
8670 * defs.h (exec_set_find_memory_regions): Remove.
8671
8672 2014-02-19 Tom Tromey <tromey@redhat.com>
8673
8674 * target-delegates.c: Rebuild.
8675 * target.h (struct target_ops) <to_extra_thread_info,
8676 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8677 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8678 not 0, in TARGET_DEFAULT_RETURN.
8679
8680 2014-02-19 Tom Tromey <tromey@redhat.com>
8681
8682 * target.c (complete_target_initialization): Remove casts. Use
8683 return_zero_has_execution.
8684 (return_zero): Add "ignore" argument.
8685 (return_zero_has_execution): New function.
8686 (init_dummy_target): Remove casts. Use
8687 return_zero_has_execution.
8688
8689 2014-02-19 Tom Tromey <tromey@redhat.com>
8690
8691 * target.c (update_current_target): Update comments. Do not
8692 INHERIT to_stratum.
8693
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8695
8696 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8697 needed.
8698 * corelow.c (core_read_description): Delegate when needed.
8699 * remote.c (remote_read_description): Delegate when needed.
8700 * target-delegates.c: Rebuild.
8701 * target.c (target_read_description): Rewrite.
8702 * target.h (struct target_ops) <to_read_description>: Update
8703 comment. Use TARGET_DEFAULT_RETURN.
8704
8705 2014-02-19 Tom Tromey <tromey@redhat.com>
8706
8707 * target-delegates.c: Rebuild.
8708 * target.c (update_current_target): Don't inherit or default
8709 to_can_run.
8710 (find_default_run_target): Check against delegate_can_run.
8711 * target.h (struct target_ops) <to_can_run>: Use
8712 TARGET_DEFAULT_RETURN.
8713
8714 2014-02-19 Tom Tromey <tromey@redhat.com>
8715
8716 * target-delegates.c: Rebuild.
8717 * target.c (target_disconnect): Unconditionally delegate.
8718 * target.h (struct target_ops) <to_disconnect>: Use
8719 TARGET_DEFAULT_NORETURN.
8720
8721 2014-02-19 Tom Tromey <tromey@redhat.com>
8722
8723 * record.c (record_stop): Unconditionally delegate.
8724 * target-delegates.c: Rebuild.
8725 * target.c (target_stop_recording): Unconditionally delegate.
8726 * target.h (struct target_ops) <to_stop_recording>: Use
8727 TARGET_DEFAULT_IGNORE.
8728
8729 2014-02-19 Tom Tromey <tromey@redhat.com>
8730
8731 * target-delegates.c: Rebuild.
8732 * target.c (target_enable_btrace): Unconditionally delegate.
8733 * target.h (struct target_ops) <to_enable_btrace>: Use
8734 TARGET_DEFAULT_NORETURN.
8735
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8737
8738 * target-delegates.c: Rebuild.
8739 * target.c (target_read_btrace): Unconditionally delegate.
8740 * target.h (struct target_ops) <to_read_btrace>: Use
8741 TARGET_DEFAULT_NORETURN.
8742
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8744
8745 * target-delegates.c: Rebuild.
8746 * target.c (target_teardown_btrace): Unconditionally delegate.
8747 * target.h (struct target_ops) <to_teardown_btrace>: Use
8748 TARGET_DEFAULT_NORETURN.
8749
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8751
8752 * target-delegates.c: Rebuild.
8753 * target.c (target_disable_btrace): Unconditionally delegate.
8754 * target.h (struct target_ops) <to_disable_btrace>: Use
8755 TARGET_DEFAULT_NORETURN.
8756
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target-delegates.c: Rebuild.
8760 * target.c (default_search_memory): New function.
8761 (simple_search_memory): Update comment.
8762 (target_search_memory): Unconditionally delegate.
8763 * target.h (struct target_ops) <to_search_memory>: Use
8764 TARGET_DEFAULT_FUNC.
8765
8766 2014-02-19 Tom Tromey <tromey@redhat.com>
8767
8768 * auxv.c (default_auxv_parse): No longer static.
8769 (target_auxv_parse): Unconditionally delegate.
8770 * auxv.h (default_auxv_parse): Declare.
8771 * target-delegates.c: Rebuild.
8772 * target.c: Include auxv.h.
8773 * target.h (struct target_ops) <to_auxv_parse>: Use
8774 TARGET_DEFAULT_FUNC.
8775
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8777
8778 * target-delegates.c: Rebuild.
8779 * target.c (target_memory_map): Unconditionally delegate.
8780 * target.h (struct target_ops) <to_memory_map>: Use
8781 TARGET_DEFAULT_RETURN.
8782
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8784
8785 * target-delegates.c: Rebuild.
8786 * target.c (target_thread_alive): Unconditionally delegate.
8787 * target.h (struct target_ops) <to_thread_alive>: Use
8788 TARGET_DEFAULT_RETURN.
8789
8790 2014-02-19 Tom Tromey <tromey@redhat.com>
8791
8792 * target-delegates.c: Rebuild.
8793 * target.c (target_save_record): Unconditionally delegate.
8794 * target.h (struct target_ops) <to_save_record>: Use
8795 TARGET_DEFAULT_NORETURN.
8796
8797 2014-02-19 Tom Tromey <tromey@redhat.com>
8798
8799 * target-delegates.c: Rebuild.
8800 * target.c (target_delete_record): Unconditionally delegate.
8801 * target.h (struct target_ops) <to_delete_record>: Use
8802 TARGET_DEFAULT_NORETURN.
8803
8804 2014-02-19 Tom Tromey <tromey@redhat.com>
8805
8806 * target-delegates.c: Rebuild.
8807 * target.c (target_record_is_replaying): Unconditionally
8808 delegate.
8809 * target.h (struct target_ops) <to_record_is_replaying>: Use
8810 TARGET_DEFAULT_RETURN.
8811
8812 2014-02-19 Tom Tromey <tromey@redhat.com>
8813
8814 * target-delegates.c: Rebuild.
8815 * target.c (target_goto_record_begin): Unconditionally delegate.
8816 * target.h (struct target_ops) <to_goto_record_begin>: Use
8817 TARGET_DEFAULT_NORETURN.
8818
8819 2014-02-19 Tom Tromey <tromey@redhat.com>
8820
8821 * target-delegates.c: Rebuild.
8822 * target.c (target_goto_record_end): Unconditionally delegate.
8823 * target.h (struct target_ops) <to_goto_record_end>: Use
8824 TARGET_DEFAULT_NORETURN.
8825
8826 2014-02-19 Tom Tromey <tromey@redhat.com>
8827
8828 * target-delegates.c: Rebuild.
8829 * target.c (target_goto_record): Unconditionally delegate.
8830 * target.h (struct target_ops) <to_goto_record>: Use
8831 TARGET_DEFAULT_NORETURN.
8832
8833 2014-02-19 Tom Tromey <tromey@redhat.com>
8834
8835 * target-delegates.c: Rebuild.
8836 * target.c (target_insn_history): Unconditionally delegate.
8837 * target.h (struct target_ops) <to_insn_history>: Use
8838 TARGET_DEFAULT_NORETURN.
8839
8840 2014-02-19 Tom Tromey <tromey@redhat.com>
8841
8842 * target-delegates.c: Rebuild.
8843 * target.c (target_insn_history_from): Unconditionally delegate.
8844 * target.h (struct target_ops) <to_insn_history_from>: Use
8845 TARGET_DEFAULT_NORETURN.
8846
8847 2014-02-19 Tom Tromey <tromey@redhat.com>
8848
8849 * target-delegates.c: Rebuild.
8850 * target.c (target_insn_history_range): Unconditionally delegate.
8851 * target.h (struct target_ops) <to_insn_history_range>: Use
8852 TARGET_DEFAULT_NORETURN.
8853
8854 2014-02-19 Tom Tromey <tromey@redhat.com>
8855
8856 * target-delegates.c: Rebuild.
8857 * target.c (target_call_history): Unconditionally delegate.
8858 * target.h (struct target_ops) <to_call_history>: Use
8859 TARGET_DEFAULT_NORETURN.
8860
8861 2014-02-19 Tom Tromey <tromey@redhat.com>
8862
8863 * target-delegates.c: Rebuild.
8864 * target.c (target_call_history_from): Unconditionally delegate.
8865 * target.h (struct target_ops) <to_call_history_from>: Use
8866 TARGET_DEFAULT_NORETURN.
8867
8868 2014-02-19 Tom Tromey <tromey@redhat.com>
8869
8870 * target-delegates.c: Rebuild.
8871 * target.c (target_call_history_range): Unconditionally delegate.
8872 * target.h (struct target_ops) <to_call_history_range>: Use
8873 TARGET_DEFAULT_NORETURN.
8874
8875 2014-02-19 Tom Tromey <tromey@redhat.com>
8876
8877 * target-delegates.c: Rebuild.
8878 * target.c (target_verify_memory): Unconditionally delegate.
8879 * target.h (struct target_ops) <to_verify_memory>: Use
8880 TARGET_DEFAULT_NORETURN.
8881
8882 2014-02-19 Tom Tromey <tromey@redhat.com>
8883
8884 * target-delegates.c: Rebuild.
8885 * target.c (target_core_of_thread): Unconditionally delegate.
8886 * target.h (struct target_ops) <to_core_of_thread>: Use
8887 TARGET_DEFAULT_RETURN.
8888
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8890
8891 * target-delegates.c: Rebuild.
8892 * target.c (target_flash_done): Unconditionally delegate.
8893 * target.h (struct target_ops) <to_flash_done>: Use
8894 TARGET_DEFAULT_NORETURN.
8895
8896 2014-02-19 Tom Tromey <tromey@redhat.com>
8897
8898 * target-delegates.c: Rebuild.
8899 * target.c (target_flash_erase): Unconditionally delegate.
8900 * target.h (struct target_ops) <to_flash_erase>: Use
8901 TARGET_DEFAULT_NORETURN.
8902
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * target-delegates.c: Rebuild.
8906 * target.c (target_get_section_table): Unconditionally delegate.
8907 * target.h (struct target_ops) <to_get_section_table>: Use
8908 TARGET_DEFAULT_RETURN.
8909
8910 2014-02-19 Tom Tromey <tromey@redhat.com>
8911
8912 * target-delegates.c: Rebuild.
8913 * target.c (target_pid_to_str): Unconditionally delegate.
8914 (init_dummy_target): Don't initialize to_pid_to_str.
8915 (default_pid_to_str): Rename from dummy_pid_to_str.
8916 * target.h (struct target_ops) <to_pid_to_str>: Use
8917 TARGET_DEFAULT_FUNC.
8918
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8920
8921 * target-delegates.c: Rebuild.
8922 * target.c (target_find_new_threads): Unconditionally delegate.
8923 * target.h (struct target_ops) <to_find_new_threads>: Use
8924 TARGET_DEFAULT_RETURN.
8925
8926 2014-02-19 Tom Tromey <tromey@redhat.com>
8927
8928 * target-delegates.c: Rebuild.
8929 * target.c (target_program_signals): Unconditionally delegate.
8930 * target.h (struct target_ops) <to_program_signals>: Use
8931 TARGET_DEFAULT_IGNORE.
8932
8933 2014-02-19 Tom Tromey <tromey@redhat.com>
8934
8935 * target-delegates.c: Rebuild.
8936 * target.c (target_pass_signals): Unconditionally delegate.
8937 * target.h (struct target_ops) <to_pass_signals>: Use
8938 TARGET_DEFAULT_IGNORE.
8939
8940 2014-02-19 Tom Tromey <tromey@redhat.com>
8941
8942 * target-delegates.c: Rebuild.
8943 * target.c (default_mourn_inferior): New function.
8944 (target_mourn_inferior): Unconditionally delegate.
8945 * target.h (struct target_ops) <to_mourn_inferior>: Use
8946 TARGET_DEFAULT_FUNC.
8947
8948 2014-02-19 Tom Tromey <tromey@redhat.com>
8949
8950 * target-delegates.c: Rebuild.
8951 * target.c (default_follow_fork): New function.
8952 (target_follow_fork): Unconditionally delegate.
8953 * target.h (struct target_ops) <to_follow_fork>: Use
8954 TARGET_DEFAULT_FUNC.
8955
8956 2014-02-19 Tom Tromey <tromey@redhat.com>
8957
8958 * target-delegates.c: Rebuild.
8959 * target.c (target_kill): Unconditionally delegate.
8960 * target.h (struct target_ops) <to_kill>: 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_masked_watch_num_registers): Unconditionally
8967 delegate.
8968 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8969 Use TARGET_DEFAULT_RETURN.
8970
8971 2014-02-19 Tom Tromey <tromey@redhat.com>
8972
8973 * target-delegates.c: Rebuild.
8974 * target.c (target_remove_mask_watchpoint): Unconditionally
8975 delegate.
8976 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8977 TARGET_DEFAULT_RETURN.
8978
8979 2014-02-19 Tom Tromey <tromey@redhat.com>
8980
8981 * target-delegates.c: Rebuild.
8982 * target.c (target_insert_mask_watchpoint): Unconditionally
8983 delegate.
8984 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8985 TARGET_DEFAULT_RETURN.
8986
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * target-delegates.c: Rebuild.
8990 * target.c (target_ranged_break_num_registers): Unconditionally
8991 delegate.
8992 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8993 Use TARGET_DEFAULT_RETURN.
8994
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8996
8997 * target-delegates.c: Rebuild.
8998 * target.c (target_fetch_registers): Unconditionally delegate.
8999 * target.h (struct target_ops) <to_fetch_registers>: Use
9000 TARGET_DEFAULT_NORETURN.
9001
9002 2014-02-19 Tom Tromey <tromey@redhat.com>
9003
9004 * target-delegates.c: Rebuild.
9005 * target.c (update_current_target): Don't inherit or default
9006 to_stop.
9007 * target.h (struct target_ops) <to_stop>: Use
9008 TARGET_DEFAULT_IGNORE.
9009
9010 2014-02-19 Tom Tromey <tromey@redhat.com>
9011
9012 * target-delegates.c: Rebuild.
9013 * target.c (update_current_target): Don't inherit or default
9014 to_can_run_breakpoint_commands.
9015 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9016 Use TARGET_DEFAULT_RETURN.
9017
9018 2014-02-19 Tom Tromey <tromey@redhat.com>
9019
9020 * target-delegates.c: Rebuild.
9021 * target.c (update_current_target): Don't inherit or default
9022 to_supports_evaluation_of_breakpoint_conditions.
9023 * target.h (struct target_ops)
9024 <to_supports_evaluation_of_breakpoint_conditions>: Use
9025 TARGET_DEFAULT_RETURN.
9026
9027 2014-02-19 Tom Tromey <tromey@redhat.com>
9028
9029 * target-delegates.c: Rebuild.
9030 * target.c (update_current_target): Don't inherit or default
9031 to_augmented_libraries_svr4_read.
9032 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9033 Use TARGET_DEFAULT_RETURN.
9034
9035 2014-02-19 Tom Tromey <tromey@redhat.com>
9036
9037 * target-delegates.c: Rebuild.
9038 * target.c (update_current_target): Don't inherit or default
9039 to_can_use_agent.
9040 * target.h (struct target_ops) <to_can_use_agent>: Use
9041 TARGET_DEFAULT_RETURN.
9042
9043 2014-02-19 Tom Tromey <tromey@redhat.com>
9044
9045 * target-delegates.c: Rebuild.
9046 * target.c (update_current_target): Don't inherit or default
9047 to_use_agent.
9048 * target.h (struct target_ops) <to_use_agent>: Use
9049 TARGET_DEFAULT_NORETURN.
9050
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * target-delegates.c: Rebuild.
9054 * target.c (update_current_target): Don't inherit or default
9055 to_traceframe_info.
9056 (return_null): Remove.
9057 * target.h (struct target_ops) <to_traceframe_info>: Use
9058 TARGET_DEFAULT_RETURN.
9059
9060 2014-02-19 Tom Tromey <tromey@redhat.com>
9061
9062 * target-delegates.c: Rebuild.
9063 * target.c (update_current_target): Don't inherit or default
9064 to_static_tracepoint_markers_by_strid.
9065 * target.h (struct target_ops)
9066 <to_static_tracepoint_markers_by_strid>: Use
9067 TARGET_DEFAULT_NORETURN.
9068
9069 2014-02-19 Tom Tromey <tromey@redhat.com>
9070
9071 * target-delegates.c: Rebuild.
9072 * target.c (update_current_target): Don't inherit or default
9073 to_static_tracepoint_marker_at.
9074 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9075 Use TARGET_DEFAULT_RETURN.
9076
9077 2014-02-19 Tom Tromey <tromey@redhat.com>
9078
9079 * target-delegates.c: Rebuild.
9080 * target.c (update_current_target): Don't inherit or default
9081 to_set_permissions.
9082 * target.h (struct target_ops) <to_set_permissions>: Use
9083 TARGET_DEFAULT_IGNORE.
9084
9085 2014-02-19 Tom Tromey <tromey@redhat.com>
9086
9087 * target-delegates.c: Rebuild.
9088 * target.c (update_current_target): Don't inherit or default
9089 to_get_tib_address.
9090 * target.h (struct target_ops) <to_get_tib_address>: Use
9091 TARGET_DEFAULT_NORETURN.
9092
9093 2014-02-19 Tom Tromey <tromey@redhat.com>
9094
9095 * target-delegates.c: Rebuild.
9096 * target.c (update_current_target): Don't inherit or default
9097 to_set_trace_notes.
9098 * target.h (struct target_ops) <to_set_trace_notes>: Use
9099 TARGET_DEFAULT_RETURN.
9100
9101 2014-02-19 Tom Tromey <tromey@redhat.com>
9102
9103 * target-delegates.c: Rebuild.
9104 * target.c (update_current_target): Don't initialize
9105 to_set_trace_buffer_size.
9106 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9107 TARGET_DEFAULT_IGNORE.
9108
9109 2014-02-19 Tom Tromey <tromey@redhat.com>
9110
9111 * target-delegates.c: Rebuild.
9112 * target.c (update_current_target): Don't inherit or default
9113 to_set_circular_trace_buffer.
9114 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9115 TARGET_DEFAULT_IGNORE.
9116
9117 2014-02-19 Tom Tromey <tromey@redhat.com>
9118
9119 * target-delegates.c: Rebuild.
9120 * target.c (update_current_target): Don't inherit or default
9121 to_set_disconnected_tracing.
9122 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9123 TARGET_DEFAULT_IGNORE.
9124
9125 2014-02-19 Tom Tromey <tromey@redhat.com>
9126
9127 * target-delegates.c: Rebuild.
9128 * target.c (update_current_target): Don't inherit or default
9129 to_get_min_fast_tracepoint_insn_len.
9130 (return_minus_one): Remove.
9131 * target.h (struct target_ops)
9132 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9133
9134 2014-02-19 Tom Tromey <tromey@redhat.com>
9135
9136 * target-delegates.c: Rebuild.
9137 * target.c (update_current_target): Don't inherit or default
9138 to_get_raw_trace_data.
9139 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9140 TARGET_DEFAULT_NORETURN.
9141
9142 2014-02-19 Tom Tromey <tromey@redhat.com>
9143
9144 * target-delegates.c: Rebuild.
9145 * target.c (update_current_target): Don't inherit or default
9146 to_upload_trace_state_variables.
9147 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9148 Use TARGET_DEFAULT_RETURN.
9149
9150 2014-02-19 Tom Tromey <tromey@redhat.com>
9151
9152 * target-delegates.c: Rebuild.
9153 * target.c (update_current_target): Don't inherit or default
9154 to_upload_tracepoints.
9155 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9156 TARGET_DEFAULT_RETURN.
9157
9158 2014-02-19 Tom Tromey <tromey@redhat.com>
9159
9160 * target-delegates.c: Rebuild.
9161 * target.c (update_current_target): Don't inherit or default
9162 to_save_trace_data.
9163 * target.h (struct target_ops) <to_save_trace_data>: Use
9164 TARGET_DEFAULT_NORETURN.
9165
9166 2014-02-19 Tom Tromey <tromey@redhat.com>
9167
9168 * target-delegates.c: Rebuild.
9169 * target.c (update_current_target): Don't inherit or default
9170 to_get_trace_state_variable_value.
9171 * target.h (struct target_ops)
9172 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9173
9174 2014-02-19 Tom Tromey <tromey@redhat.com>
9175
9176 * target-delegates.c: Rebuild.
9177 * target.c (update_current_target): Don't inherit or default
9178 to_trace_find.
9179 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9180
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9182
9183 * target-delegates.c: Rebuild.
9184 * target.c (update_current_target): Don't inherit or default
9185 to_trace_stop.
9186 * target.h (struct target_ops) <to_trace_stop>: Use
9187 TARGET_DEFAULT_NORETURN.
9188
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9190
9191 * target-delegates.c: Rebuild.
9192 * target.c (update_current_target): Don't inherit or default
9193 to_get_tracepoint_status.
9194 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9195 TARGET_DEFAULT_NORETURN.
9196
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9198
9199 * target-delegates.c: Rebuild.
9200 * target.c (update_current_target): Don't inherit or default
9201 to_get_trace_status.
9202 * target.h (struct target_ops) <to_get_trace_status>: Use
9203 TARGET_DEFAULT_RETURN.
9204
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9206
9207 * target-delegates.c: Rebuild.
9208 * target.c (update_current_target): Don't inherit or default
9209 to_trace_start.
9210 * target.h (struct target_ops) <to_trace_start>: Use
9211 TARGET_DEFAULT_NORETURN.
9212
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9214
9215 * target-delegates.c: Rebuild.
9216 * target.c (update_current_target): Don't inherit or default
9217 to_trace_set_readonly_regions.
9218 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9219 Use TARGET_DEFAULT_NORETURN.
9220
9221 2014-02-19 Tom Tromey <tromey@redhat.com>
9222
9223 * target-delegates.c: Rebuild.
9224 * target.c (update_current_target): Don't inherit or default
9225 to_disable_tracepoint.
9226 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9227 TARGET_DEFAULT_NORETURN.
9228
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * target-delegates.c: Rebuild.
9232 * target.c (update_current_target): Don't inherit or default
9233 to_enable_tracepoint.
9234 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9235 TARGET_DEFAULT_NORETURN.
9236
9237 2014-02-19 Tom Tromey <tromey@redhat.com>
9238
9239 * target-delegates.c: Rebuild.
9240 * target.c (update_current_target): Don't inherit or default
9241 to_download_trace_state_variable.
9242 * target.h (struct target_ops) <to_download_trace_state_variable>:
9243 Use TARGET_DEFAULT_NORETURN.
9244
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target-delegates.c: Rebuild.
9248 * target.c (update_current_target): Don't inherit or default
9249 to_can_download_tracepoint.
9250 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9251 TARGET_DEFAULT_RETURN.
9252
9253 2014-02-19 Tom Tromey <tromey@redhat.com>
9254
9255 * target-delegates.c: Rebuild.
9256 * target.c (update_current_target): Don't inherit or default
9257 to_download_tracepoint.
9258 * target.h (struct target_ops) <to_download_tracepoint>: Use
9259 TARGET_DEFAULT_NORETURN.
9260
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9262
9263 * target-delegates.c: Rebuild.
9264 * target.c (update_current_target): Don't inherit or default
9265 to_trace_init.
9266 * target.h (struct target_ops) <to_trace_init>: Use
9267 TARGET_DEFAULT_RETURN.
9268
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9270
9271 * target-delegates.c: Rebuild.
9272 * target.c (update_current_target): Don't inherit or default
9273 to_supports_string_tracing.
9274 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9275 TARGET_DEFAULT_RETURN.
9276
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9278
9279 * target-delegates.c: Rebuild.
9280 * target.c (update_current_target): Don't inherit or default
9281 to_supports_enable_disable_tracepoint.
9282 * target.h (struct target_ops)
9283 <to_supports_enable_disable_tracepoint>: Use
9284 TARGET_DEFAULT_RETURN.
9285
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9287
9288 * target-delegates.c: Rebuild.
9289 * target.c (update_current_target): Don't inherit or default
9290 to_supports_multi_process.
9291 * target.h (struct target_ops) <to_supports_multi_process>: Use
9292 TARGET_DEFAULT_RETURN.
9293
9294 2014-02-19 Tom Tromey <tromey@redhat.com>
9295
9296 * target-delegates.c: Rebuild.
9297 * target.c (update_current_target): Don't inherit or default
9298 to_get_ada_task_ptid.
9299 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9300 TARGET_DEFAULT_FUNC.
9301
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9303
9304 * target-delegates.c: Rebuild.
9305 * target.c (update_current_target): Don't inherit or default
9306 to_thread_architecture.
9307 * target.h (struct target_ops) <to_thread_architecture>: Use
9308 TARGET_DEFAULT_FUNC.
9309
9310 2014-02-19 Tom Tromey <tromey@redhat.com>
9311
9312 * target-delegates.c: Rebuild.
9313 * target.c (update_current_target): Don't inherit or default
9314 to_execution_direction.
9315 * target.h (struct target_ops) <to_execution_direction>: Use
9316 TARGET_DEFAULT_FUNC.
9317
9318 2014-02-19 Tom Tromey <tromey@redhat.com>
9319
9320 * target-delegates.c: Rebuild.
9321 * target.c (update_current_target): Don't inherit or default
9322 to_can_execute_reverse.
9323 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9324 TARGET_DEFAULT_RETURN.
9325 (target_can_execute_reverse): Unconditionally delegate.
9326
9327 2014-02-19 Tom Tromey <tromey@redhat.com>
9328
9329 * target-delegates.c: Rebuild.
9330 * target.c (update_current_target): Don't inherit or default
9331 to_goto_bookmark.
9332 (dummy_goto_bookmark): Remove.
9333 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9334 * target.h (struct target_ops) <to_goto_bookmark>: Use
9335 TARGET_DEFAULT_NORETURN.
9336
9337 2014-02-19 Tom Tromey <tromey@redhat.com>
9338
9339 * target-delegates.c: Rebuild.
9340 * target.c (update_current_target): Don't inherit or default
9341 to_get_bookmark.
9342 (dummy_get_bookmark): Remove.
9343 (init_dummy_target): Don't inherit or default to_get_bookmark.
9344 * target.h (struct target_ops) <to_get_bookmark>: Use
9345 TARGET_DEFAULT_NORETURN
9346
9347 2014-02-19 Tom Tromey <tromey@redhat.com>
9348
9349 * target-delegates.c: Rebuild.
9350 * target.c (update_current_target): Don't inherit or default
9351 to_make_corefile_notes.
9352 (init_dummy_target): Don't initialize to_make_corefile_notes.
9353 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9354 TARGET_DEFAULT_FUNC.
9355
9356 2014-02-19 Tom Tromey <tromey@redhat.com>
9357
9358 * target-delegates.c: Rebuild.
9359 * target.c (update_current_target): Don't inherit or default
9360 to_find_memory_regions.
9361 (init_dummy_target): Don't initialize to_find_memory_regions.
9362 * target.h (struct target_ops) <to_find_memory_regions>: Use
9363 TARGET_DEFAULT_FUNC.
9364
9365 2014-02-19 Tom Tromey <tromey@redhat.com>
9366
9367 * target-delegates.c: Rebuild.
9368 * target.c (update_current_target): Don't inherit or default
9369 to_log_command.
9370 * target.h (struct target_ops) <to_log_command>: Use
9371 TARGET_DEFAULT_IGNORE.
9372 (target_log_command): Unconditionally delegate.
9373
9374 2014-02-19 Tom Tromey <tromey@redhat.com>
9375
9376 * target-delegates.c: Rebuild.
9377 * target.c (update_current_target): Don't inherit or default
9378 to_pid_to_exec_file.
9379 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9380 TARGET_DEFAULT_RETURN.
9381
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * target-delegates.c: Rebuild.
9385 * target.c (update_current_target): Don't inherit or default
9386 to_thread_name.
9387 (target_thread_name): Unconditionally delegate.
9388 * target.h (struct target_ops) <to_thread_name>: Use
9389 TARGET_DEFAULT_RETURN.
9390
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9392
9393 * target-delegates.c: Rebuild.
9394 * target.c (update_current_target): Don't inherit or default
9395 to_extra_thread_info.
9396 * target.h (struct target_ops) <to_extra_thread_info>: Use
9397 TARGET_DEFAULT_RETURN.
9398
9399 2014-02-19 Tom Tromey <tromey@redhat.com>
9400
9401 * target-delegates.c: Rebuild.
9402 * target.c (update_current_target): Don't inherit or default
9403 to_has_exited.
9404 * target.h (struct target_ops) <to_has_exited>: Use
9405 TARGET_DEFAULT_RETURN..
9406
9407 2014-02-19 Tom Tromey <tromey@redhat.com>
9408
9409 * target-delegates.c: Rebuild.
9410 * target.c (update_current_target): Don't inherit or default
9411 to_set_syscall_catchpoint.
9412 (return_one): Remove.
9413 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9414 TARGET_DEFAULT_RETURN.
9415
9416 2014-02-19 Tom Tromey <tromey@redhat.com>
9417
9418 * target-delegates.c: Rebuild.
9419 * target.c (update_current_target): Don't inherit or default
9420 to_insert_exec_catchpoint.
9421 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9422 TARGET_DEFAULT_RETURN.
9423
9424 2014-01-08 Tom Tromey <tromey@redhat.com>
9425
9426 * target-delegates.c: Rebuild.
9427 * target.c (update_current_target): Don't inherit or default
9428 to_insert_exec_catchpoint.
9429 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9430 TARGET_DEFAULT_RETURN.
9431
9432 2014-02-19 Tom Tromey <tromey@redhat.com>
9433
9434 * target-delegates.c: Rebuild.
9435 * target.c (update_current_target): Don't inherit or default
9436 to_remove_vfork_catchpoint.
9437 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9438 TARGET_DEFAULT_RETURN.
9439
9440 2014-02-19 Tom Tromey <tromey@redhat.com>
9441
9442 * target-delegates.c: Rebuild.
9443 * target.c (update_current_target): Don't inherit or default
9444 to_insert_vfork_catchpoint.
9445 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9446 TARGET_DEFAULT_RETURN.
9447
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9449
9450 * target-delegates.c: Rebuild.
9451 * target.c (update_current_target): Don't inherit or default
9452 to_remove_fork_catchpoint.
9453 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9454 TARGET_DEFAULT_RETURN.
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_insert_fork_catchpoint.
9461 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9462 TARGET_DEFAULT_RETURN.
9463
9464 2014-02-19 Tom Tromey <tromey@redhat.com>
9465
9466 * target-delegates.c: Rebuild.
9467 * target.c (update_current_target): Don't inherit or default
9468 to_post_startup_inferior.
9469 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9470 TARGET_DEFAULT_IGNORE.
9471
9472 2014-02-19 Tom Tromey <tromey@redhat.com>
9473
9474 * target-delegates.c: Rebuild.
9475 * target.c (update_current_target): Don't inherit or default
9476 to_load.
9477 * target.h (struct target_ops) <to_load>: Use
9478 TARGET_DEFAULT_NORETURN.
9479
9480 2014-02-19 Tom Tromey <tromey@redhat.com>
9481
9482 * target-delegates.c: Rebuild.
9483 * target.c (update_current_target): Don't inherit or default
9484 to_terminal_info.
9485 * target.h (struct target_ops) <to_terminal_info>: Use
9486 TARGET_DEFAULT_FUNC.
9487
9488 2014-02-19 Tom Tromey <tromey@redhat.com>
9489
9490 * target-delegates.c: Rebuild.
9491 * target.c (update_current_target): Don't inherit or default
9492 to_terminal_save_ours.
9493 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9494 TARGET_DEFAULT_IGNORE.
9495
9496 2014-02-19 Tom Tromey <tromey@redhat.com>
9497
9498 * target-delegates.c: Rebuild.
9499 * target.c (update_current_target): Don't inherit or default
9500 to_terminal_ours.
9501 * target.h (struct target_ops) <to_terminal_ours>: Use
9502 TARGET_DEFAULT_IGNORE.
9503
9504 2014-02-19 Tom Tromey <tromey@redhat.com>
9505
9506 * target-delegates.c: Rebuild.
9507 * target.c (update_current_target): Don't inherit or default
9508 to_terminal_ours_for_output.
9509 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9510 TARGET_DEFAULT_IGNORE.
9511
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target-delegates.c: Rebuild.
9515 * target.c (update_current_target): Don't inherit or default
9516 to_terminal_inferior.
9517 * target.h (struct target_ops) <to_terminal_inferior>: Use
9518 TARGET_DEFAULT_IGNORE.
9519
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9521
9522 * target-delegates.c: Rebuild.
9523 * target.c (update_current_target): Don't inherit or default
9524 to_terminal_init.
9525 * target.h (struct target_ops) <to_terminal_init>: Use
9526 TARGET_DEFAULT_IGNORE.
9527
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9529
9530 * target-delegates.c: Rebuild.
9531 * target.c (update_current_target): Don't inherit or default
9532 to_can_accel_watchpoint_condition.
9533 * target.h (struct target_ops)
9534 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9535
9536 2014-02-19 Tom Tromey <tromey@redhat.com>
9537
9538 * target-delegates.c: Rebuild.
9539 * target.c (update_current_target): Don't inherit or default
9540 to_region_ok_for_hw_watchpoint.
9541 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9542 Use TARGET_DEFAULT_FUNC.
9543
9544 2014-02-19 Tom Tromey <tromey@redhat.com>
9545
9546 * target-delegates.c: Rebuild.
9547 * target.c (update_current_target): Don't inherit or default
9548 to_watchpoint_addr_within_range.
9549 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9550 Use TARGET_DEFAULT_FUNC.
9551
9552 2014-02-19 Tom Tromey <tromey@redhat.com>
9553
9554 * target-delegates.c: Rebuild.
9555 * target.c (update_current_target): Don't inherit or default
9556 to_remove_watchpoint.
9557 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9558 TARGET_DEFAULT_NORETURN.
9559
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9561
9562 * target-delegates.c: Rebuild.
9563 * target.c (update_current_target): Don't inherit or default
9564 to_insert_watchpoint.
9565 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9566 TARGET_DEFAULT_RETURN.
9567
9568 2014-02-19 Tom Tromey <tromey@redhat.com>
9569
9570 * target-delegates.c: Rebuild.
9571 * target.c (update_current_target): Don't inherit or default
9572 to_remove_hw_breakpoint.
9573 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9574 TARGET_DEFAULT_RETURN.
9575
9576 2014-02-19 Tom Tromey <tromey@redhat.com>
9577
9578 * target-delegates.c: Rebuild.
9579 * target.c (update_current_target): Don't inherit or default
9580 to_insert_hw_breakpoint.
9581 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9582 TARGET_DEFAULT_RETURN.
9583
9584 2014-02-19 Tom Tromey <tromey@redhat.com>
9585
9586 * target-delegates.c: Rebuild.
9587 * target.c (update_current_target): Don't inherit or default
9588 to_can_use_hw_breakpoint.
9589 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9590 TARGET_DEFAULT_RETURN.
9591
9592 2014-02-19 Tom Tromey <tromey@redhat.com>
9593
9594 * target-delegates.c: Rebuild.
9595 * target.c (update_current_target): Don't inherit or default
9596 to_files_info.
9597 * target.h (struct target_ops) <to_files_info>: Use
9598 TARGET_DEFAULT_IGNORE.
9599
9600 2014-02-19 Tom Tromey <tromey@redhat.com>
9601
9602 * target-delegates.c: Rebuild.
9603 * target.c (update_current_target): Don't inherit or default
9604 to_store.
9605 * target.h (struct target_ops) <to_store>: Use
9606 TARGET_DEFAULT_NORETURN.
9607
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9609
9610 * target-delegates.c: Rebuild.
9611 * target.c (update_current_target): Don't inherit or default
9612 to_post_attach.
9613 * target.h (struct target_ops) <to_post_attach>: Use
9614 TARGET_DEFAULT_IGNORE.
9615
9616 2014-02-19 Tom Tromey <tromey@redhat.com>
9617
9618 * target-delegates.c: Rebuild.
9619 * target.c (update_current_target): Don't inherit or default
9620 to_rcmd.
9621 (default_rcmd): New function.
9622 (do_monitor_command): Unconditionally delegate.
9623 * target.h (struct target_ops) <to_rmcd>: Use
9624 TARGET_DEFAULT_FUNC.
9625
9626 2014-02-19 Tom Tromey <tromey@redhat.com>
9627
9628 * target-delegates.c: Rebuild.
9629 * target.c (init_dummy_target): Don't initialize to_attach.
9630 (target_attach): Unconditionally delegate.
9631 * target.h (struct target_ops) <to_attach>: Use
9632 TARGET_DEFAULT_FUNC.
9633
9634 2014-02-19 Tom Tromey <tromey@redhat.com>
9635
9636 * target-delegates.c: Rebuild.
9637 * target.c (target_detach): Unconditionally delegate.
9638 (init_dummy_target): Don't initialize to_detach.
9639 * target.h (struct target_ops) <to_detach>: Use
9640 TARGET_DEFAULT_IGNORE.
9641
9642 2014-02-19 Tom Tromey <tromey@redhat.com>
9643
9644 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9645 Add argument.
9646 (target_augmented_libraries_svr4_read): Add argument.
9647 * target.c (update_current_target): Update.
9648 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9649 argument.
9650
9651 2014-02-19 Tom Tromey <tromey@redhat.com>
9652
9653 * target.h (struct target_ops) <to_call_history_range>: Add
9654 argument.
9655 * target.c (target_call_history_range): Add argument.
9656 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9657 argument.
9658 (record_btrace_call_history_from): Update.
9659
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9661
9662 * target.h (struct target_ops) <to_call_history_from>: Add
9663 argument.
9664 * target.c (target_call_history_from): Add argument.
9665 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9666 argument.
9667
9668 2014-02-19 Tom Tromey <tromey@redhat.com>
9669
9670 * target.h (struct target_ops) <to_call_history>: Add argument.
9671 * target.c (target_call_history): Add argument.
9672 * record-btrace.c (record_btrace_call_history): Add 'self'
9673 argument.
9674
9675 2014-02-19 Tom Tromey <tromey@redhat.com>
9676
9677 * target.h (struct target_ops) <to_insn_history_range>: Add
9678 argument.
9679 * target.c (target_insn_history_range): Add argument.
9680 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9681 argument.
9682 (record_btrace_insn_history_from): Update.
9683
9684 2014-02-19 Tom Tromey <tromey@redhat.com>
9685
9686 * target.h (struct target_ops) <to_insn_history_from>: Add
9687 argument.
9688 * target.c (target_insn_history_from): Add argument.
9689 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9690 argument.
9691
9692 2014-02-19 Tom Tromey <tromey@redhat.com>
9693
9694 * target.h (struct target_ops) <to_insn_history>: Add argument.
9695 * target.c (target_insn_history): Add argument.
9696 * record-btrace.c (record_btrace_insn_history): Add 'self'
9697 argument.
9698
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9700
9701 * target.h (struct target_ops) <to_goto_record>: Add argument.
9702 * target.c (target_goto_record): Add argument.
9703 * record-full.c (record_full_goto): Add 'self' argument.
9704 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9705
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9709 * target.c (target_goto_record_end): Add argument.
9710 * record-full.c (record_full_goto_end): Add 'self' argument.
9711 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9712
9713 2014-02-19 Tom Tromey <tromey@redhat.com>
9714
9715 * target.h (struct target_ops) <to_goto_record_begin>: Add
9716 argument.
9717 * target.c (target_goto_record_begin): Add argument.
9718 * record-full.c (record_full_goto_begin): Add 'self' argument.
9719 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9720 argument.
9721
9722 2014-02-19 Tom Tromey <tromey@redhat.com>
9723
9724 * target.h (struct target_ops) <to_record_is_replaying>: Add
9725 argument.
9726 * target.c (target_record_is_replaying): Add argument.
9727 * record-full.c (record_full_is_replaying): Add 'self' argument.
9728 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9729 argument.
9730 (record_btrace_xfer_partial, record_btrace_store_registers)
9731 (record_btrace_prepare_to_store, record_btrace_resume)
9732 (record_btrace_wait, record_btrace_decr_pc_after_break)
9733 (record_btrace_find_new_threads, record_btrace_thread_alive):
9734 Update.
9735
9736 2014-02-19 Tom Tromey <tromey@redhat.com>
9737
9738 * target.h (struct target_ops) <to_delete_record>: Add argument.
9739 * target.c (target_delete_record): Add argument.
9740 * record-full.c (record_full_delete): Add 'self' argument.
9741
9742 2014-02-19 Tom Tromey <tromey@redhat.com>
9743
9744 * target.h (struct target_ops) <to_save_record>: Add argument.
9745 * target.c (target_save_record): Add argument.
9746 * record-full.c (record_full_save): Add 'self' argument.
9747 (record_full_save): Add 'self' argument.
9748
9749 2014-02-19 Tom Tromey <tromey@redhat.com>
9750
9751 * target.h (struct target_ops) <to_info_record>: Add argument.
9752 * target.c (target_info_record): Add argument.
9753 * record.c (info_record_command): Add argument.
9754 * record-full.c (record_full_info): Add 'self' argument.
9755 * record-btrace.c (record_btrace_info): Add 'self' argument.
9756
9757 2014-02-19 Tom Tromey <tromey@redhat.com>
9758
9759 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9760 * target.c (target_stop_recording): Add argument.
9761 * record.c (record_stop): Add argument.
9762 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9763 argument.
9764
9765 2014-02-19 Tom Tromey <tromey@redhat.com>
9766
9767 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9768 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9769 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9770 argument.
9771 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9772 (_initialize_amd64_linux_nat): Use it.
9773 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9774 (_initialize_i386_linux_nat): Use it.
9775
9776 2014-02-19 Tom Tromey <tromey@redhat.com>
9777
9778 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9779 * target.c (target_teardown_btrace): Add argument.
9780 * remote.c (remote_teardown_btrace): Add 'self' argument.
9781 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9782 argument.
9783 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9784 argument.
9785
9786 2014-02-19 Tom Tromey <tromey@redhat.com>
9787
9788 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9789 * target.c (target_disable_btrace): Add argument.
9790 * remote.c (remote_disable_btrace): Add 'self' argument.
9791 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9792 argument.
9793 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9794 argument.
9795
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9797
9798 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9799 * target.c (target_enable_btrace): Add argument.
9800 * remote.c (remote_enable_btrace): Add 'self' argument.
9801 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9802 argument.
9803 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9804 argument.
9805
9806 2014-02-19 Tom Tromey <tromey@redhat.com>
9807
9808 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9809 (target_can_use_agent): Add argument.
9810 * target.c (update_current_target): Update.
9811 * remote.c (remote_can_use_agent): Add 'self' argument.
9812 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9813
9814 2014-02-19 Tom Tromey <tromey@redhat.com>
9815
9816 * target.h (struct target_ops) <to_use_agent>: Add argument.
9817 (target_use_agent): Add argument.
9818 * target.c (update_current_target): Update.
9819 * remote.c (remote_use_agent): Add 'self' argument.
9820 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9821
9822 2014-02-19 Tom Tromey <tromey@redhat.com>
9823
9824 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9825 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9826 (target_traceframe_info): Add argument.
9827 * target.c (update_current_target): Update.
9828 * remote.c (remote_traceframe_info): Add 'self' argument.
9829 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9830
9831 2014-02-19 Tom Tromey <tromey@redhat.com>
9832
9833 * target.h (target_static_tracepoint_markers_by_strid): Add
9834 argument.
9835 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9836 'self' argument.
9837 * target.c (update_current_target): Update.
9838 * remote.c (struct target_ops)
9839 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9840 * linux-nat.c (struct target_ops)
9841 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9842
9843 2014-02-19 Tom Tromey <tromey@redhat.com>
9844
9845 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9846 Add argument.
9847 (target_static_tracepoint_marker_at): Add argument.
9848 * target.c (update_current_target): Update.
9849 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9850 argument.
9851
9852 2014-02-19 Tom Tromey <tromey@redhat.com>
9853
9854 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9855 (target_set_permissions): Add argument.
9856 * target.c (update_current_target): Update.
9857 * remote.c (remote_set_permissions): Add 'self' argument.
9858 (remote_start_remote): Update.
9859
9860 2014-02-19 Tom Tromey <tromey@redhat.com>
9861
9862 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9863 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9864 (target_get_tib_address): Add argument.
9865 * target.c (update_current_target): Update.
9866 * remote.c (remote_get_tib_address): Add 'self' argument.
9867
9868 2014-02-19 Tom Tromey <tromey@redhat.com>
9869
9870 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9871 (target_set_trace_notes): Add argument.
9872 * target.c (update_current_target): Update.
9873 * remote.c (remote_set_trace_notes): Add 'self' argument.
9874
9875 2014-02-19 Tom Tromey <tromey@redhat.com>
9876
9877 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9878 argument.
9879 (target_set_trace_buffer_size): Add argument.
9880 * target.c (update_current_target): Update.
9881 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9882
9883 2014-02-19 Tom Tromey <tromey@redhat.com>
9884
9885 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9886 argument.
9887 (target_set_circular_trace_buffer): Add argument.
9888 * target.c (update_current_target): Update.
9889 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9890 argument.
9891
9892 2014-02-19 Tom Tromey <tromey@redhat.com>
9893
9894 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9895 argument.
9896 (target_set_disconnected_tracing): Add argument.
9897 * target.c (update_current_target): Update.
9898 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9899
9900 2014-02-19 Tom Tromey <tromey@redhat.com>
9901
9902 * target.h (struct target_ops)
9903 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9904 (target_get_min_fast_tracepoint_insn_len): Add argument.
9905 * target.c (update_current_target): Update.
9906 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9907 argument.
9908
9909 2014-02-19 Tom Tromey <tromey@redhat.com>
9910
9911 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9912 argument.
9913 (target_get_raw_trace_data): Add argument.
9914 * target.c (update_current_target): Update.
9915 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9916
9917 2014-02-19 Tom Tromey <tromey@redhat.com>
9918
9919 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9920 Add argument.
9921 (target_upload_trace_state_variables): Add argument.
9922 * target.c (update_current_target): Update.
9923 * remote.c (remote_upload_trace_state_variables): Add 'self'
9924 argument.
9925 (remote_start_remote): Update.
9926
9927 2014-02-19 Tom Tromey <tromey@redhat.com>
9928
9929 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9930 argument.
9931 (target_upload_tracepoints): Add argument.
9932 * target.c (update_current_target): Update.
9933 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9934 (remote_start_remote): Update.
9935
9936 2014-02-19 Tom Tromey <tromey@redhat.com>
9937
9938 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9939 (target_save_trace_data): Add argument.
9940 * target.c (update_current_target): Update.
9941 * remote.c (remote_save_trace_data): Add 'self' argument.
9942
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9944
9945 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9946 argument.
9947 * target.h (struct target_ops)
9948 <to_get_trace_state_variable_value>: Add argument.
9949 (target_get_trace_state_variable_value): Add argument.
9950 * target.c (update_current_target): Update.
9951 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9952 argument.
9953 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9954
9955 2014-02-19 Tom Tromey <tromey@redhat.com>
9956
9957 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9958 * target.h (struct target_ops) <to_trace_find>: Add argument.
9959 (target_trace_find): Add argument.
9960 * target.c (update_current_target): Update.
9961 * remote.c (remote_trace_find): Add 'self' argument.
9962 * ctf.c (ctf_trace_find): Add 'self' argument.
9963
9964 2014-02-19 Tom Tromey <tromey@redhat.com>
9965
9966 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9967 (target_trace_stop): Add argument.
9968 * target.c (update_current_target): Update.
9969 * remote.c (remote_trace_stop): Add 'self' argument.
9970
9971 2014-02-19 Tom Tromey <tromey@redhat.com>
9972
9973 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9974 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9975 argument.
9976 (target_get_tracepoint_status): Add argument.
9977 * target.c (update_current_target): Update.
9978 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9979
9980 2014-02-19 Tom Tromey <tromey@redhat.com>
9981
9982 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9983 * target.h (struct target_ops) <to_get_trace_status>: Add
9984 argument.
9985 (target_get_trace_status): Add argument.
9986 * target.c (update_current_target): Update.
9987 * remote.c (remote_get_trace_status): Add 'self' argument.
9988 (remote_start_remote, remote_can_download_tracepoint): Update.
9989 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9990
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9992
9993 * target.h (struct target_ops) <to_trace_start>: Add argument.
9994 (target_trace_start): Add argument.
9995 * target.c (update_current_target): Update.
9996 * remote.c (remote_trace_start): Add 'self' argument.
9997
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
9999
10000 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10001 Add argument.
10002 (target_trace_set_readonly_regions): Add argument.
10003 * target.c (update_current_target): Update.
10004 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10005 argument.
10006
10007 2014-02-19 Tom Tromey <tromey@redhat.com>
10008
10009 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10010 argument.
10011 (target_disable_tracepoint): Add argument.
10012 * target.c (update_current_target): Update.
10013 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10014
10015 2014-02-19 Tom Tromey <tromey@redhat.com>
10016
10017 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10018 argument.
10019 (target_enable_tracepoint): Add argument.
10020 * target.c (update_current_target): Update.
10021 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10022
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10024
10025 * target.h (struct target_ops) <to_download_trace_state_variable>:
10026 Add argument.
10027 (target_download_trace_state_variable): Add argument.
10028 * target.c (update_current_target): Update.
10029 * remote.c (remote_download_trace_state_variable): Add 'self'
10030 argument.
10031
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10035 argument.
10036 (target_can_download_tracepoint): Add argument.
10037 * target.c (update_current_target): Update.
10038 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10039
10040 2014-02-19 Tom Tromey <tromey@redhat.com>
10041
10042 * target.h (struct target_ops) <to_download_tracepoint>: Add
10043 argument.
10044 (target_download_tracepoint): Add argument.
10045 * target.c (update_current_target): Update.
10046 * remote.c (remote_download_tracepoint): Add 'self' argument.
10047
10048 2014-02-19 Tom Tromey <tromey@redhat.com>
10049
10050 * target.h (struct target_ops) <to_trace_init>: Add argument.
10051 (target_trace_init): Add argument.
10052 * target.c (update_current_target): Update.
10053 * remote.c (remote_trace_init): Add 'self' argument.
10054
10055 2014-02-19 Tom Tromey <tromey@redhat.com>
10056
10057 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10058 * target.c (target_fileio_readlink): Add argument.
10059 * remote.c (remote_hostio_readlink): Add 'self' argument.
10060 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10061
10062 2014-02-19 Tom Tromey <tromey@redhat.com>
10063
10064 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10065 * target.c (target_fileio_unlink): Add argument.
10066 * remote.c (remote_hostio_unlink): Add 'self' argument.
10067 (remote_file_delete): Update.
10068 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10069
10070 2014-02-19 Tom Tromey <tromey@redhat.com>
10071
10072 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10073 * target.c (target_fileio_close): Add argument.
10074 * remote.c (remote_hostio_close): Add 'self' argument.
10075 (remote_hostio_close_cleanup): Update.
10076 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10077 Update.
10078 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10079
10080 2014-02-19 Tom Tromey <tromey@redhat.com>
10081
10082 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10083 * target.c (target_fileio_pread): Add argument.
10084 * remote.c (remote_hostio_pread): Add 'self' argument.
10085 (remote_bfd_iovec_pread, remote_file_get): Update.
10086 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10087
10088 2014-02-19 Tom Tromey <tromey@redhat.com>
10089
10090 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10091 * target.c (target_fileio_pwrite): Add argument.
10092 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10093 (remote_file_put): Update.
10094 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10095
10096 2014-02-19 Tom Tromey <tromey@redhat.com>
10097
10098 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10099 * target.c (target_fileio_open): Add argument.
10100 * remote.c (remote_hostio_open): Add 'self' argument.
10101 (remote_bfd_iovec_open): Add 'self' argument.
10102 (remote_file_put): Add 'self' argument.
10103 (remote_file_get): Add 'self' argument.
10104 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10105
10106 2014-02-19 Tom Tromey <tromey@redhat.com>
10107
10108 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10109 Add argument.
10110 (target_can_run_breakpoint_commands): Add argument.
10111 * target.c (update_current_target): Update.
10112 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10113 argument.
10114 (remote_insert_breakpoint): Add 'self' argument.
10115 (remote_insert_hw_breakpoint): Add 'self' argument.
10116 (remote_can_run_breakpoint_commands): Add 'self' argument.
10117
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10119
10120 * target.h (struct target_ops)
10121 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10122 (target_supports_evaluation_of_breakpoint_conditions): Add
10123 argument.
10124 * target.c (update_current_target): Update.
10125 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10126 argument.
10127 (remote_insert_breakpoint): Add 'self' argument.
10128 (remote_insert_hw_breakpoint): Add 'self' argument.
10129 (remote_supports_cond_breakpoints): Add 'self' argument.
10130
10131 2014-02-19 Tom Tromey <tromey@redhat.com>
10132
10133 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10134 argument.
10135 (target_supports_string_tracing): Add argument.
10136 * target.c (update_current_target): Update.
10137 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10138
10139 2014-02-19 Tom Tromey <tromey@redhat.com>
10140
10141 * target.h (struct target_ops)
10142 <to_supports_disable_randomization>: Add argument.
10143 * target.c (find_default_supports_disable_randomization): Add
10144 argument.
10145 (target_supports_disable_randomization): Add argument.
10146 (find_default_supports_disable_randomization): Add 'self'
10147 argument.
10148 * remote.c (extended_remote_supports_disable_randomization): Add
10149 'self' argument.
10150 (remote_supports_disable_randomization): Add 'self' argument.
10151 (extended_remote_create_inferior): Update.
10152 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10153 'self' argument.
10154
10155 2014-02-19 Tom Tromey <tromey@redhat.com>
10156
10157 * target.h (struct target_ops)
10158 <to_supports_enable_disable_tracepoint>: Add argument.
10159 (target_supports_enable_disable_tracepoint): Add argument.
10160 * target.c (update_current_target): Update.
10161 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10162 argument.
10163
10164 2014-02-19 Tom Tromey <tromey@redhat.com>
10165
10166 * target.h (struct target_ops) <to_supports_multi_process>: Add
10167 argument.
10168 (target_supports_multi_process): Add argument.
10169 * target.c (update_current_target): Update.
10170 * remote.c (remote_supports_multi_process): Add 'self' argument.
10171 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10172 argument.
10173 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10174 argument.
10175
10176 2014-02-19 Tom Tromey <tromey@redhat.com>
10177
10178 * target.h (struct target_ops) <to_execution_direction>: Add
10179 argument.
10180 (target_execution_direction): Add argument.
10181 * target.c (default_execution_direction): Add 'self' argument.
10182 * record-full.c (record_full_execution_direction): Add 'self'
10183 argument.
10184
10185 2014-02-19 Tom Tromey <tromey@redhat.com>
10186
10187 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10188 argument.
10189 (target_can_execute_reverse): Add argument.
10190 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10191 * record-full.c (record_full_can_execute_reverse): Add 'self'
10192 argument.
10193 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10194 argument.
10195
10196 2014-02-19 Tom Tromey <tromey@redhat.com>
10197
10198 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10199 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10200 argument.
10201 (target_get_ada_task_ptid): Add argument.
10202 * target.c (update_current_target): Update.
10203 (default_get_ada_task_ptid): Add 'self' argument.
10204 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10205 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10206 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10207 argument.
10208 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10209 argument.
10210 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10211 argument.
10212 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10213 argument.
10214 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10215 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10216 argument.
10217
10218 2014-02-19 Tom Tromey <tromey@redhat.com>
10219
10220 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10221 (target_goto_bookmark): Add argument.
10222 * target.c (dummy_goto_bookmark): Add 'self' argument.
10223 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10224
10225 2014-02-19 Tom Tromey <tromey@redhat.com>
10226
10227 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10228 (target_get_bookmark): Add argument.
10229 * target.c (dummy_get_bookmark): Add 'self' argument.
10230 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10231
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10233
10234 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10235 argument.
10236 (target_make_corefile_notes): Add argument.
10237 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10238 * procfs.c (procfs_make_note_section): Add 'self' argument.
10239 (procfs_make_note_section): Add 'self' argument.
10240 (procfs_make_note_section): Add 'self' argument.
10241 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10242 argument.
10243 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10244 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10245 * exec.c (exec_make_note_section): Add 'self' argument.
10246 (exec_make_note_section): Add 'self' argument.
10247
10248 2014-02-19 Tom Tromey <tromey@redhat.com>
10249
10250 * target.h (struct target_ops) <to_find_memory_regions>: Add
10251 argument.
10252 (target_find_memory_regions): Add argument.
10253 * target.c (dummy_find_memory_regions): Add 'self' argument.
10254 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10255 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10256 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10257 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10258 * exec. (exec_do_find_memory_regions): New global.
10259 (exec_set_find_memory_regions): Rewrite.
10260 (exec_find_memory_regions): New function.
10261 (init_exec_ops): Use exec_find_memory_regions.
10262
10263 2014-02-19 Tom Tromey <tromey@redhat.com>
10264
10265 * target.h (struct target_ops) <to_supports_non_stop>: Add
10266 argument.
10267 * target.c (find_default_supports_non_stop): Add argument.
10268 (target_supports_non_stop): Add argument.
10269 (find_default_supports_non_stop): Add 'self' argument.
10270 * remote.c (remote_supports_non_stop): Add 'self' argument.
10271 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10272
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10274
10275 * target.h (struct target_ops) <to_log_command>: Add argument.
10276 (target_log_command): Add argument.
10277 * serial.h (serial_log_command): Add 'self' argument.
10278 * serial.c (serial_log_command): Add 'self' argument.
10279
10280 2014-02-19 Tom Tromey <tromey@redhat.com>
10281
10282 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10283 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10284 argument.
10285 (target_pid_to_exec_file): Add argument.
10286 * target.c (debug_to_pid_to_exec_file): Add argument.
10287 (update_current_target): Update.
10288 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10289 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10290 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10291 (linux_handle_extended_wait): Update.
10292 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10293 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10294 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10295 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10296
10297 2014-02-19 Tom Tromey <tromey@redhat.com>
10298
10299 * target.h (struct target_ops) <to_rcmd>: Add argument.
10300 (target_rcmd): Add argument.
10301 * target.c (debug_to_rcmd): Add argument.
10302 (update_current_target, do_monitor_command): Update.
10303 * remote.c (remote_rcmd): Add 'self' argument.
10304 * monitor.c (monitor_rcmd): Add 'self' argument.
10305
10306 2014-02-19 Tom Tromey <tromey@redhat.com>
10307
10308 * windows-nat.c (windows_stop): Add 'self' argument.
10309 * target.h (struct target_ops) <to_stop>: Add argument.
10310 * target.c (target_stop): Add argument.
10311 (debug_to_stop): Add argument.
10312 (update_current_target): Update.
10313 * remote.c (remote_stop): Add 'self' argument.
10314 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10315 (gdbsim_cntrl_c): Update.
10316 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10317 * procfs.c (procfs_stop): Add 'self' argument.
10318 * nto-procfs.c (procfs_stop): Add 'self' argument.
10319 * monitor.c (monitor_stop): Add 'self' argument.
10320 (monitor_open): Update.
10321 * linux-nat.c (linux_nat_stop): Add argument.
10322 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10323 * gnu-nat.c (gnu_stop): Add 'self' argument.
10324 * darwin-nat.c (darwin_stop): Add 'self' argument.
10325
10326 2014-02-19 Tom Tromey <tromey@redhat.com>
10327
10328 * target.h (struct target_ops) <to_thread_name>: Add argument.
10329 * target.c (target_thread_name): Add argument.
10330 (update_current_target): Update.
10331 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10332
10333 2014-02-19 Tom Tromey <tromey@redhat.com>
10334
10335 * target.h (struct target_ops) <to_extra_thread_info>: Add
10336 argument.
10337 (target_extra_thread_info): Add argument.
10338 * target.c (update_current_target): Update.
10339 * remote.c (remote_threads_extra_info): Add 'self' argument.
10340 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10341 argument.
10342 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10343 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10344 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10345 argument.
10346 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10347 argument.
10348 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10349 argument.
10350 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10351 argument.
10352
10353 2014-02-19 Tom Tromey <tromey@redhat.com>
10354
10355 * target.h (struct target_ops) <to_program_signals>: Add argument.
10356 * target.c (target_program_signals): Add argument.
10357 * remote.c (remote_program_signals): Add 'self' argument.
10358
10359 2014-02-19 Tom Tromey <tromey@redhat.com>
10360
10361 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10362 * target.c (target_pass_signals): Add argument.
10363 * remote.c (remote_pass_signals): Add 'self' argument.
10364 (remote_start_remote): Update.
10365 * procfs.c (procfs_pass_signals): Add 'self' argument.
10366 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10367 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10368 (linux_nat_create_inferior, linux_nat_attach): Update.
10369
10370 2014-02-19 Tom Tromey <tromey@redhat.com>
10371
10372 * windows-nat.c (windows_can_run): Add 'self' argument.
10373 * target.h (struct target_ops) <to_can_run>: Add argument.
10374 (target_can_run): Add argument.
10375 * target.c (debug_to_can_run): Add argument.
10376 (update_current_target): Update.
10377 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10378 * inf-child.c (inf_child_can_run): Add 'self' argument.
10379 * go32-nat.c (go32_can_run): Add 'self' argument.
10380
10381 2014-02-19 Tom Tromey <tromey@redhat.com>
10382
10383 * target.h (struct target_ops) <to_has_exited>: Add argument.
10384 (target_has_exited): Add argument.
10385 * target.c (debug_to_has_exited): Add argument.
10386 (update_current_target): Update.
10387
10388 2014-02-19 Tom Tromey <tromey@redhat.com>
10389
10390 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10391 argument.
10392 (target_set_syscall_catchpoint): Add argument.
10393 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10394 argument.
10395 * target.c (update_current_target): Update.
10396
10397 2014-02-19 Tom Tromey <tromey@redhat.com>
10398
10399 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10400 argument.
10401 (target_remove_exec_catchpoint): Add argument.
10402 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10403 (update_current_target): Update.
10404 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10405 argument.
10406
10407 2014-02-19 Tom Tromey <tromey@redhat.com>
10408
10409 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10410 argument.
10411 (target_insert_exec_catchpoint): Add argument.
10412 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10413 (update_current_target): Update.
10414 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10415 argument.
10416
10417 2014-02-19 Tom Tromey <tromey@redhat.com>
10418
10419 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10420 argument.
10421 (target_remove_vfork_catchpoint): Add argument.
10422 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10423 (update_current_target): Update.
10424 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10425 argument.
10426
10427 2014-02-19 Tom Tromey <tromey@redhat.com>
10428
10429 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10430 argument.
10431 (target_insert_vfork_catchpoint): Add argument.
10432 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10433 (update_current_target): Update.
10434 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10435 argument.
10436
10437 2014-02-19 Tom Tromey <tromey@redhat.com>
10438
10439 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10440 argument.
10441 (target_remove_fork_catchpoint): Add argument.
10442 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10443 (update_current_target): Update.
10444 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10445 argument.
10446
10447 2014-02-19 Tom Tromey <tromey@redhat.com>
10448
10449 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10450 argument.
10451 (target_insert_fork_catchpoint): Add argument.
10452 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10453 (update_current_target): Update.
10454 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10455 argument.
10456
10457 2014-02-19 Tom Tromey <tromey@redhat.com>
10458
10459 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10460 argument.
10461 (target_post_startup_inferior): Add argument.
10462 * target.c (debug_to_post_startup_inferior): Add argument.
10463 (update_current_target): Update.
10464 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10465 argument.
10466 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10467 argument.
10468 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10469 argument.
10470 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10471 argument.
10472 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10473 'self' argument.
10474 (super_post_startup_inferior): Likewise.
10475 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10476 'self' argument.
10477 (super_post_startup_inferior): Likewise.
10478 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10479 Add 'self' argument.
10480 (super_post_startup_inferior): Likewise.
10481
10482 2014-02-19 Tom Tromey <tromey@redhat.com>
10483
10484 * target.h (struct target_ops) <to_load>: Add argument.
10485 * target.c (target_load): Add argument.
10486 (debug_to_load): Add argument.
10487 (update_current_target): Update.
10488 * remote.c (remote_load): Add 'self' argument.
10489 * remote-sim.c (gdbsim_load): Add 'self' argument.
10490 * remote-mips.c (mips_load): Add 'self' argument.
10491 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10492 * monitor.c (monitor_load): Add 'self' argument.
10493 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10494
10495 2014-02-19 Tom Tromey <tromey@redhat.com>
10496
10497 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10498 (target_terminal_info): Add argument.
10499 * target.c (debug_to_terminal_info): Add argument.
10500 (default_terminal_info): Likewise.
10501 * inflow.c (child_terminal_info): Add 'self' argument.
10502 * inferior.h (child_terminal_info): Add 'self' argument.
10503 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10504
10505 2014-02-19 Tom Tromey <tromey@redhat.com>
10506
10507 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10508 argument.
10509 (target_terminal_save_ours): Add argument.
10510 * target.c (debug_to_terminal_save_ours): Add argument.
10511 (update_current_target): Update.
10512 * inflow.c (terminal_save_ours): Add 'self' argument.
10513 * inferior.h (terminal_save_ours): Add 'self' argument.
10514
10515 2014-02-19 Tom Tromey <tromey@redhat.com>
10516
10517 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10518 (target_terminal_ours): Add argument.
10519 * target.c (debug_to_terminal_ours): Add argument.
10520 (update_current_target): Update.
10521 * remote.c (remote_terminal_ours): Add 'self' argument.
10522 (remote_close): Update.
10523 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10524 * inflow.c (terminal_ours): Add 'self' argument.
10525 * inferior.h (terminal_ours): Add 'self' argument.
10526 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10527
10528 2014-02-19 Pedro Alves <palves@redhat.com>
10529 Tom Tromey <tromey@redhat.com>
10530
10531 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10532 argument.
10533 (target_terminal_ours_for_output): Add argument.
10534 * target.c (debug_to_terminal_ours_for_output): Add argument.
10535 (update_current_target): Update.
10536 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10537 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10538 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10539
10540 2014-02-19 Tom Tromey <tromey@redhat.com>
10541
10542 * target.h (struct target_ops) <to_terminal_inferior>: Add
10543 argument.
10544 * target.c (target_terminal_inferior): Add argument.
10545 (update_current_target): Update.
10546 * remote.c (remote_terminal_inferior): Add 'self' argument.
10547 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10548 * inflow.c (terminal_inferior): Add 'self' argument.
10549 * inferior.h (terminal_inferior): Add 'self' argument.
10550 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10551 (go32_terminal_inferior): Add 'self' argument.
10552
10553 2014-02-19 Tom Tromey <tromey@redhat.com>
10554
10555 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10556 (target_terminal_init): Add argument.
10557 * target.c (debug_to_terminal_init): Add argument.
10558 (update_current_target): Update.
10559 * inflow.c (terminal_init_inferior): Add 'self' argument.
10560 * inferior.h (terminal_init_inferior): Add 'self' argument.
10561 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10562 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10563
10564 2014-02-19 Tom Tromey <tromey@redhat.com>
10565
10566 * target.h (struct target_ops)
10567 <to_can_accel_watchpoint_condition>: Add argument.
10568 (target_can_accel_watchpoint_condition): Add argument.
10569 * target.c (debug_to_can_accel_watchpoint_condition): Add
10570 argument.
10571 (update_current_target): Update.
10572 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10573 'self' argument.
10574
10575 2014-02-19 Tom Tromey <tromey@redhat.com>
10576
10577 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10578 Add argument.
10579 (target_region_ok_for_hw_watchpoint): Add argument.
10580 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10581 (default_region_ok_for_hw_watchpoint): Add argument.
10582 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10583 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10584 argument.
10585 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10586 argument.
10587 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10588 argument.
10589 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10590 'self' argument.
10591 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10592 'self' argument.
10593 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10594 'self' argument.
10595 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10596 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10597 'self' argument.
10598 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10599 Add 'self' argument.
10600
10601 2014-02-19 Tom Tromey <tromey@redhat.com>
10602
10603 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10604 argument.
10605 (target_insert_watchpoint): Add argument.
10606 * target.c (debug_to_insert_watchpoint): Add argument.
10607 (update_current_target): Update.
10608 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10609 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10610 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10611 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10612 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10613 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10614 argument.
10615 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10616 (procfs_insert_hw_watchpoint): Add 'self' argument.
10617 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10618 argument.
10619 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10620 argument.
10621 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10622 argument.
10623 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10624 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10625 argument.
10626 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10627 'self' argument.
10628
10629 2014-02-19 Tom Tromey <tromey@redhat.com>
10630
10631 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10632 argument.
10633 (target_remove_watchpoint): Add argument.
10634 * target.c (debug_to_remove_watchpoint): Add argument.
10635 (update_current_target): Update.
10636 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10637 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10638 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10639 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10640 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10641 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10642 argument.
10643 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10644 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10645 argument.
10646 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10647 argument.
10648 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10649 argument.
10650 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10651 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10652 argument.
10653 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10654 'self' argument.
10655
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10657
10658 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10659 argument.
10660 (target_remove_hw_breakpoint): Add argument.
10661 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10662 (update_current_target): Update.
10663 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10664 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10665 argument.
10666 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10667 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10668 argument.
10669 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10670 'self' argument.
10671
10672 2014-02-19 Tom Tromey <tromey@redhat.com>
10673
10674 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10675 argument.
10676 (target_insert_hw_breakpoint): Add argument.
10677 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10678 (update_current_target): Update.
10679 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10680 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10681 argument.
10682 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10683 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10684 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10685 argument.
10686 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10687 'self' argument.
10688
10689 2014-02-19 Tom Tromey <tromey@redhat.com>
10690
10691 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10692 argument.
10693 (target_can_use_hardware_watchpoint): Add argument.
10694 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10695 (update_current_target): Update.
10696 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10697 argument.
10698 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10699 argument.
10700 * remote.c (remote_check_watch_resources): Add 'self' argument.
10701 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10702 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10703 argument.
10704 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10705 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10706 argument.
10707 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10708 argument.
10709 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10710 argument.
10711 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10712 argument.
10713 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10714 argument.
10715 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10716 argument.
10717 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10718 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10719 argument.
10720 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10721 'self' argument.
10722
10723 2014-02-19 Tom Tromey <tromey@redhat.com>
10724
10725 * target.h (struct target_ops) <to_post_attach>: Add argument.
10726 (target_post_attach): Add argument.
10727 * target.c (debug_to_post_attach): Add argument.
10728 (update_current_target): Update.
10729 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10730 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10731 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10732 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10733 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10734
10735 2014-02-19 Tom Tromey <tromey@redhat.com>
10736
10737 * windows-nat.c (windows_close): Add 'self' argument.
10738 * tracepoint.c (tfile_close): Add 'self' argument.
10739 * target.h (struct target_ops) <to_close>: Add argument.
10740 * target.c (target_close): Add argument.
10741 (update_current_target): Update.
10742 * remote.c (remote_close): Add 'self' argument.
10743 * remote-sim.c (gdbsim_close): Add 'self' argument.
10744 * remote-mips.c (mips_close): Add 'self' argument.
10745 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10746 * record-full.c (record_full_close): Add 'self' argument.
10747 * record-btrace.c (record_btrace_close): Add 'self' argument.
10748 * monitor.h (monitor_close): Add 'self' argument.
10749 * monitor.c (monitor_close): Add 'self' argument.
10750 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10751 * linux-nat.c (linux_nat_close): Add argument.
10752 * go32-nat.c (go32_close): Add 'self' argument.
10753 * exec.c (exec_close_1): Add 'self' argument.
10754 * ctf.c (ctf_close): Add 'self' argument.
10755 * corelow.c (core_close): Add 'self' argument.
10756 (core_close_cleanup): Update.
10757 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10758 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10759
10760 2014-02-19 Tom Tromey <tromey@redhat.com>
10761
10762 * remote.c (remote_load): New function.
10763 (init_remote_ops): Use it.
10764
10765 2014-02-19 Tom Tromey <tromey@redhat.com>
10766
10767 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10768 argument.
10769 * common/linux-btrace.h (linux_supports_btrace): Update.
10770 * remote.c (remote_supports_btrace): Add "self" argument.
10771 * target-delegates.c: Rebuild.
10772 * target.c (target_supports_btrace): Remove.
10773 * target.h (struct target_ops) <to_supports_btrace>: Add
10774 target_ops argument.
10775 (target_supports_btrace): New define.
10776
10777 2014-02-19 Tom Tromey <tromey@redhat.com>
10778
10779 * record-full.c (record_full_beneath_to_resume_ops)
10780 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10781 (record_full_beneath_to_wait)
10782 (record_full_beneath_to_store_registers_ops)
10783 (record_full_beneath_to_store_registers)
10784 (record_full_beneath_to_xfer_partial_ops)
10785 (record_full_beneath_to_xfer_partial)
10786 (record_full_beneath_to_insert_breakpoint_ops)
10787 (record_full_beneath_to_insert_breakpoint)
10788 (record_full_beneath_to_remove_breakpoint_ops)
10789 (record_full_beneath_to_remove_breakpoint)
10790 (record_full_beneath_to_stopped_by_watchpoint)
10791 (record_full_beneath_to_stopped_data_address)
10792 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10793 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10794 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10795 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10796 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10797 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10798 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10799 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10800 (record_full_resume, record_full_wait_1)
10801 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10802 (record_full_store_registers, record_full_xfer_partial)
10803 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10804 (record_full_async, record_full_core_xfer_partial): Use target
10805 delegation.
10806 * target-delegates.c: Rebuild.
10807 * target.c (current_xfer_partial): Remove.
10808 (update_current_target): Do not INHERIT or de_fault
10809 to_insert_breakpoint, to_remove_breakpoint,
10810 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10811 to_is_async_p, to_async. Do not set to_xfer_partial field.
10812 (default_xfer_partial): Simplify.
10813 (current_xfer_partial): Remove.
10814 (target_wait, target_resume): Simplify.
10815 (find_default_can_async_p, find_default_is_async_p): Update.
10816 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10817 to_xfer_partial, to_stopped_by_watchpoint,
10818 to_stopped_data_address.
10819 (target_store_registers): Simplify.
10820 (forward_target_remove_breakpoint)
10821 (forward_target_insert_breakpoint): Remove.
10822 (target_remove_breakpoint, target_insert_breakpoint)
10823 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10824 * target.h (struct target_ops) <to_resume, to_wait,
10825 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10826 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10827 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10828 markup.
10829 (forward_target_remove_breakpoint)
10830 (forward_target_insert_breakpoint): Remove.
10831 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10832 directly.
10833 (record_btrace_insert_breakpoint): Delegate directly.
10834
10835 2014-02-19 Tom Tromey <tromey@redhat.com>
10836
10837 PR build/7701:
10838 * target-delegates.c: New file.
10839 * target.c: Include target-delegates.c.
10840 (init_dummy_target): Call install_dummy_methods.
10841 (complete_target_initialization): Call install_delegators.
10842 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10843 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10844 * make-target-delegates: New file.
10845
10846 2014-02-19 Tom Tromey <tromey@redhat.com>
10847
10848 * record.c (find_record_target): Use find_target_at.
10849 * target.c (find_target_at): New function.
10850 * target.h (find_target_at): Declare.
10851
10852 2014-02-19 Tom Tromey <tromey@redhat.com>
10853
10854 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10855 Add 'ops' argument.
10856 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10857 'ops' argument.
10858 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10859 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10860 'ops' argument.
10861 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10862 argument.
10863 * linux-nat.c (save_sigtrap): Update.
10864 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10865 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10866 (linux_nat_close): Update.
10867 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10868 argument.
10869 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10870 argument.
10871 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10872 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10873 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10874 (tmp_to_async): Add 'ops' argument.
10875 (record_full_stopped_by_watchpoint, record_full_async)
10876 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10877 argument.
10878 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10879 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10880 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10881 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10882 (remote_is_async_p, remote_async): Add 'ops' argument.
10883 (remote_stopped_data_address): Update.
10884 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10885 * target.c (update_current_target)
10886 (find_default_can_async_p, find_default_is_async_p): Update.
10887 (init_dummy_target): Update.
10888 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10889 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10890 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10891 (target_can_async_p, target_is_async_p, target_async)
10892 (target_stopped_by_watchpoint): Update.
10893
10894 2014-02-19 Yao Qi <yao@codesourcery.com>
10895
10896 PR gdb/16220
10897 * gdbarch.sh: Remove startup_gdbarch.
10898 * gdbarch.c: Regenerated.
10899 * gdbarch.h: Likewise.
10900
10901 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10902
10903 * rl78-tdep.c (rl78_g10_register_name): New function.
10904 (rl78_return_value): Add g10 support.
10905 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10906 g10.
10907
10908 2014-02-17 Doug Evans <xdje42@gmail.com>
10909
10910 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10911 (SUBDIR_GUILE_SRCS): Ditto.
10912 (scm-gsmob.o): Ditto.
10913
10914 2014-02-17 Yao Qi <yao@codesourcery.com>
10915
10916 * gnu-nat.c (ILL_RPC): Declare defined function.
10917
10918 2014-02-17 Yao Qi <yao@codesourcery.com>
10919
10920 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10921 mach_msg_type_number_t.
10922 (gnu_write_inferior): Likewise.
10923
10924 2014-02-17 Yao Qi <yao@codesourcery.com>
10925
10926 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10927 in format string.
10928 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10929 (inf_validate_procs, inf_signal): Likewise.
10930 (S_exception_raise_request): Likewise.
10931 (do_mach_notify_dead_name): Likewise.
10932 (steal_exc_port): Likewise.
10933 (gnu_read_inferior): Change 'copy_count''s type to
10934 mach_msg_type_number_t.
10935 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10936 format string.
10937
10938 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10939
10940 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10941 flag. Adjust all users; in particular...
10942 (gnu_wait): ..., don't decrement its value in here...
10943 (gnu_create_inferior): ..., and instead set the flag in here,
10944 around the startup_inferior call, and call that one with
10945 START_INFERIOR_TRAPS_EXPECTED.
10946
10947 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10948 (ILL_RPC): ... new macro.
10949 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10950 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10951 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10952 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10953 functions with ILL_RPC macro.
10954 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10955 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10956 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10957 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10958 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10959 (S_proc_getlogin_reply, S_proc_getsid_reply)
10960 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10961 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10962 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10963 (S_proc_getnports_reply, S_proc_is_important_reply)
10964 (S_proc_get_code_reply): New stub functions, generated with
10965 ILL_RPC macro.
10966
10967 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10968 collected the type check structures.
10969
10970 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10971
10972 2014-02-14 Doug Evans <dje@google.com>
10973
10974 * target.c (target_write_partial): Fix result type.
10975
10976 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10977
10978 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10979 the proper offsets to access fpregset_t.
10980
10981 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10982
10983 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10984 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10985 * h8300-tdep.c (setmachinelist): Remove global.
10986 * hppa-tdep.c (hppa_sigtramp): Remove global.
10987 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10988 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10989 * ravenscar-thread.c (update_target_observer): Remove global.
10990 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10991
10992 2014-02-12 Tom Tromey <tromey@redhat.com>
10993
10994 * common/rsp-low.c: Update comments.
10995 * common/rsp-low.h: Update comments.
10996
10997 2014-02-12 Tom Tromey <tromey@redhat.com>
10998
10999 * common/rsp-low.c (convert_ascii_to_int): Remove.
11000 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11001
11002 2014-02-12 Tom Tromey <tromey@redhat.com>
11003
11004 * common/rsp-low.h (unhexify): Don't declare.
11005 * common/rsp-low.c (unhexify): Remove.
11006
11007 2014-02-12 Tom Tromey <tromey@redhat.com>
11008
11009 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11010 * common/rsp-low.c (convert_int_to_ascii): Remove.
11011
11012 2014-02-12 Tom Tromey <tromey@redhat.com>
11013
11014 * common/rsp-low.h (hexify): Don't declare.
11015 * common/rsp-low.c (hexify): Remove.
11016
11017 2014-02-12 Tom Tromey <tromey@redhat.com>
11018
11019 * common/rsp-low.c (hexify): Never take strlen of argument.
11020
11021 2014-02-12 Tom Tromey <tromey@redhat.com>
11022
11023 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11024 * remote.c (extended_remote_run, remote_rcmd)
11025 (remote_download_trace_state_variable, remote_save_trace_data)
11026 (remote_set_trace_notes): Update.
11027 * tracepoint.c (encode_source_string, tfile_write_status)
11028 (tfile_write_uploaded_tsv): Update.
11029
11030 2014-02-12 Tom Tromey <tromey@redhat.com>
11031
11032 * tracepoint.c: Include rsp-low.h.
11033 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11034 * remote.c: Include rsp-low.h.
11035 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11036 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11037 (remote_unescape_input): Move to common/rsp-low.c.
11038 * common/rsp-low.h: New file.
11039 * common/rsp-low.c: New file.
11040 * Makefile.in (SFILES): Add common/rsp-low.c.
11041 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11042 (COMMON_OBS): Add rsp-low.o.
11043 (rsp-low.o): New target.
11044
11045 2014-02-12 Tom Tromey <tromey@redhat.com>
11046
11047 * utils.h: Include print-utils.h.
11048 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11049 (int_string, core_addr_to_string, core_addr_to_string_nz)
11050 (hex_string, hex_string_custom): Don't declare.
11051 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11052 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11053 (hex_string_custom, int_string, core_addr_to_string)
11054 (core_addr_to_string_nz, host_address_to_string): Move to
11055 common/print-utils.c.
11056 * common/print-utils.h: New file.
11057 * common/print-utils.c: New file
11058 * Makefile.in (SFILES): Add common/print-utils.c.
11059 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11060 (COMMON_OBS): Add print-utils.o.
11061 (print-utils.o): New target.
11062
11063 2014-02-12 Tom Tromey <tromey@redhat.com>
11064
11065 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11066
11067 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11068
11069 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11070
11071 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11072
11073 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11074 if a PT_IO ptrace request returns sucessfully but indicates that 0
11075 bytes were transferred.
11076
11077 2014-02-12 Pedro Alves <palves@redhat.com>
11078 Kevin Buettner <kevinb@redhat.com>
11079
11080 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11081 TYPE_INSTANCE_FLAG_CODE_SPACE.
11082
11083 2014-02-12 Pedro Alves <palves@redhat.com>
11084
11085 * h8300-tdep.c (pseudo_from_raw_register)
11086 (raw_from_pseudo_register): New functions.
11087 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11088 them.
11089
11090 2014-02-12 Pedro Alves <palves@redhat.com>
11091
11092 * h8300-tdep.c (h8300_register_sim_regno): New function.
11093 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11094 gdbarch_register_sim_regno hook.
11095
11096 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11097
11098 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11099
11100 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11101
11102 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11103
11104 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11105
11106 * obsd-tdep.h (obsd_init_abi): New prototype.
11107 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11108 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11109 (obsd_init_abi): New functions.
11110 * i386obsd-tdep.c: Include "obsd-tdep.h".
11111 (i386obsd_init_abi): Call obsd_init_abi.
11112 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11113 (amd64obsd_init_abi): Call obsd_init_abi.
11114 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11115 obsd-tdep.c to gdb_target_obs.
11116
11117 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11118
11119 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11120 double float arguments to 16-byte in the argument slots.
11121
11122 2014-02-11 Doug Evans <xdje42@gmail.com>
11123
11124 * configure.ac: Don't crash if pkg-config is not found and guile
11125 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11126 in guile checks.
11127 * configure: Regenerate.
11128
11129 2014-02-11 Yao Qi <yao@codesourcery.com>
11130
11131 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11132 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11133 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11134 * gnu-nat.c (gnu_xfer_memory): Likewise.
11135 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11136 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11137 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11138 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11139
11140 2014-02-11 Yao Qi <yao@codesourcery.com>
11141
11142 * target.h (enum target_xfer_error): Rename to ...
11143 (enum target_xfer_status): ... it. New. All users updated.
11144 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11145 New.
11146 (TARGET_XFER_STATUS_ERROR_P): New macro.
11147 (target_xfer_error_to_string): Remove declaration.
11148 (target_xfer_status_to_string): Declare.
11149 (target_xfer_partial_ftype): Adjust it.
11150 (struct target_ops) <to_xfer_partial>: Return
11151 target_xfer_status. Add argument xfered_len. Update
11152 comments.
11153 * target.c (target_xfer_error_to_string): Rename to ...
11154 (target_xfer_status_to_string): ... it. New. All callers
11155 updated.
11156 (target_read_live_memory): Likewise. Call target_xfer_partial
11157 instead of target_read.
11158 (memory_xfer_live_readonly_partial): Return
11159 target_xfer_status. Add argument xfered_len.
11160 (raw_memory_xfer_partial): Likewise.
11161 (memory_xfer_partial_1): Likewise.
11162 (memory_xfer_partial): Likewise.
11163 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11164 properly. Update debug message.
11165 (default_xfer_partial, current_xfer_partial): Likewise.
11166 (target_write_partial): Likewise.
11167 (target_read_partial): Likewise. All callers updated.
11168 (read_whatever_is_readable): Likewise.
11169 (target_write_with_progress): Likewise.
11170 (target_read_alloc_1): Likewise.
11171
11172 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11173 * auxv.c (procfs_xfer_auxv): Likewise.
11174 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11175 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11176 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11177 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11178 * corefile.c (read_memory): Adjust.
11179 * corelow.c (core_xfer_partial): Likewise.
11180 * ctf.c (ctf_xfer_partial): Likewise.
11181 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11182 updated.
11183 (darwin_xfer_partial): Likewise.
11184 * exec.c (section_table_xfer_memory_partial): Likewise. All
11185 callers updated.
11186 (exec_xfer_partial): Likewise.
11187 * exec.h (section_table_xfer_memory_partial): Update
11188 declaration.
11189 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11190 negative.
11191 (gnu_xfer_partial): Likewise.
11192 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11193 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11194 (ia64_hpux_xfer_solib_got): Likewise.
11195 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11196 type of 'partial_len' to ULONGEST.
11197 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11198 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11199 (linux_nat_xfer_partial): Likewise.
11200 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11201 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11202 * monitor.c (monitor_xfer_memory): Likewise.
11203 (monitor_xfer_partial): Likewise.
11204 * procfs.c (procfs_xfer_partial): Likewise.
11205 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11206 * record-full.c (record_full_xfer_partial): Likewise.
11207 (record_full_core_xfer_partial): Likewise.
11208 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11209 (gdbsim_xfer_partial): Likewise.
11210 * remote.c (remote_write_bytes_aux): Likewise. All callers
11211 updated.
11212 (remote_write_bytes, remote_read_bytes): Likewise. All
11213 callers updated.
11214 (remote_flash_erase): Likewise. All callers updated.
11215 (remote_write_qxfer): Likewise. All callers updated.
11216 (remote_read_qxfer): Likewise. All callers updated.
11217 (remote_xfer_partial): Likewise.
11218 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11219 (rs6000_xfer_shared_libraries): Likewise.
11220 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11221 (sol_thread_xfer_partial): Likewise.
11222 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11223 (sparc_xfer_partial): Likewise.
11224 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11225 updated.
11226 (spu_xfer_partial): Likewise.
11227 * spu-multiarch.c (spu_xfer_partial): Likewise.
11228 * tracepoint.c (tfile_xfer_partial): Likewise.
11229 * windows-nat.c (windows_xfer_memory): Likewise.
11230 (windows_xfer_shared_libraries): Likewise.
11231 (windows_xfer_partial): Likewise.
11232 * valprint.c: Replace 'target_xfer_error' with
11233 'target_xfer_status' in comments.
11234
11235 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11236
11237 Checked in by Joel Brobecker <brobecker@adacore.com>.
11238 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11239
11240 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11241
11242 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11243 function parameters.
11244
11245 2014-02-10 Will Newton <will.newton@linaro.org>
11246
11247 * elfread.c (elf_rel_plt_read): Look for a .got section if
11248 looking up .got.plt fails.
11249 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11250 on address passed to elf_gnu_ifunc_record_cache.
11251 (elf_gnu_ifunc_resolve_addr): Likewise.
11252 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11253
11254 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11255
11256 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11257 (X_RETTURN): New macro.
11258 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11259
11260 * sparc64-tdep.c (sparc64_init_abi): Hook
11261 sparc_in_function_epilogue_p.
11262
11263 2014-02-10 Gary Benson <gbenson@redhat.com>
11264
11265 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11266 Rename name_matcher to symbol_matcher.
11267
11268 2014-02-10 Gary Benson <gbenson@redhat.com>
11269
11270 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11271 Use expand_symtabs_file_matcher_ftype and
11272 expand_symtabs_symbol_matcher_ftype.
11273
11274 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11275
11276 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11277 (struct ada_symbol_cache): New.
11278 (ada_free_symbol_cache): Forward declare.
11279 (struct ada_pspace_data): New.
11280 (ada_pspace_data_handle): New static global.
11281 (get_ada_pspace_data, ada_pspace_data_cleanup)
11282 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11283 (cache_space, cache): Delete, now folded inside struct
11284 ada_pspace_data.
11285 (ada_get_symbol_cache): New function.
11286 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11287 implementation.
11288 (_initialize_ada_language): Remove initialization of cache_space.
11289 Move call to observer_attach_inferior_exit up, grouping it
11290 with the other observer registrations inside this function.
11291 Rename command to be more general. Add call to
11292 register_program_space_data_with_cleanup.
11293
11294 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11295
11296 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11297 ada_new_objfile_observer.
11298 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11299 (_initialize_tasks): Update uses of ada_new_objfile_observer
11300 and ada_tasks_normal_stop_observer.
11301
11302 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11303
11304 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11305 returned by the 'Length attribute to integer.
11306
11307 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11308
11309 * ada-lang.c (_initialize_ada_language): Initialize
11310 cache_space obstack.
11311
11312 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11313
11314 * ada-lang.c (HASH_SIZE): New macro.
11315 (struct cache_entry): New type.
11316 (cache_space, cache): New static globals.
11317 (ada_clear_symbol_cache, find_entry): New functions.
11318 (lookup_cached_symbol, cache_symbol): Implement.
11319 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11320 (_initialize_ada_language): Attach ada_new_objfile_observer
11321 and ada_free_objfile_observer.
11322
11323 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11324
11325 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11326 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11327 struct block * parameter.
11328 (ada_lookup_symbol_list_worker): Constify local variable "block".
11329 Remove cast which is no longer necessary.
11330
11331 2014-02-10 Doug Evans <xdje42@gmail.com>
11332
11333 Add Guile as an extension language.
11334 * NEWS: Mention Guile scripting.
11335 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11336 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11337 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11338 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11339 (CLIBS): Add GUILE_LIBS.
11340 (install-guile): New rule.
11341 (guile.o): New rule.
11342 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11343 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11344 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11345 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11346 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11347 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11348 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11349 * configure.ac: New option --with-guile.
11350 * configure: Regenerate.
11351 * config.in: Regenerate.
11352 * auto-load.c: Remove #include "python/python.h". Add #include
11353 "gdb/section-scripts.h".
11354 (source_section_scripts): Handle Guile scripts.
11355 (_initialize_auto_load): Add name of Guile objfile script to
11356 scripts-directory help text.
11357 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11358 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11359 (struct breakpoint): New member scm_bp_object.
11360 * defs.h (enum command_control_type): New value guile_control.
11361 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11362 "extension.h".
11363 (show_user): Update comment.
11364 (_initialize_cli_cmds): Update help text for "show user". Update help
11365 text for max-user-call-depth.
11366 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11367 "extension.h".
11368 (multi_line_command_p): Add guile_control.
11369 (print_command_lines): Handle guile_control.
11370 (execute_control_command, recurse_read_control_structure): Ditto.
11371 (process_next_line): Recognize "guile" commands.
11372 * disasm.c (gdb_disassemble_info): Make non-static.
11373 * disasm.h: #include "dis-asm.h".
11374 (struct gdbarch): Add forward decl.
11375 (gdb_disassemble_info): Declare.
11376 * extension.c: #include "guile/guile.h".
11377 (extension_languages): Add guile.
11378 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11379 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11380 * gdbtypes.c (get_unsigned_type_max): New function.
11381 (get_signed_type_minmax): New function.
11382 * gdbtypes.h (get_unsigned_type_max): Declare.
11383 (get_signed_type_minmax): Declare.
11384 * guile/README: New file.
11385 * guile/guile-internal.h: New file.
11386 * guile/guile.c: New file.
11387 * guile/guile.h: New file.
11388 * guile/scm-arch.c: New file.
11389 * guile/scm-auto-load.c: New file.
11390 * guile/scm-block.c: New file.
11391 * guile/scm-breakpoint.c: New file.
11392 * guile/scm-disasm.c: New file.
11393 * guile/scm-exception.c: New file.
11394 * guile/scm-frame.c: New file.
11395 * guile/scm-gsmob.c: New file.
11396 * guile/scm-iterator.c: New file.
11397 * guile/scm-lazy-string.c: New file.
11398 * guile/scm-math.c: New file.
11399 * guile/scm-objfile.c: New file.
11400 * guile/scm-ports.c: New file.
11401 * guile/scm-pretty-print.c: New file.
11402 * guile/scm-safe-call.c: New file.
11403 * guile/scm-string.c: New file.
11404 * guile/scm-symbol.c: New file.
11405 * guile/scm-symtab.c: New file.
11406 * guile/scm-type.c: New file.
11407 * guile/scm-utils.c: New file.
11408 * guile/scm-value.c: New file.
11409 * guile/lib/gdb.scm: New file.
11410 * guile/lib/gdb/boot.scm: New file.
11411 * guile/lib/gdb/experimental.scm: New file.
11412 * guile/lib/gdb/init.scm: New file.
11413 * guile/lib/gdb/iterator.scm: New file.
11414 * guile/lib/gdb/printing.scm: New file.
11415 * guile/lib/gdb/types.scm: New file.
11416 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11417 (VPATH): Add $(GUILE_SRCDIR).
11418 (GUILE_DIR): New variable.
11419 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11420 (all): Add stamp-guile dependency.
11421 (stamp-guile): New rule.
11422 (clean-guile, install-guile, uninstall-guile): New rules.
11423 (install-only): Add install-guile dependency.
11424 (uninstall): Add uninstall-guile dependency.
11425 (clean): Add clean-guile dependency.
11426
11427 2014-02-09 Doug Evans <xdje42@gmail.com>
11428
11429 Revert this patch (which I approved, mea culpa).
11430
11431 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11432
11433 * Makefile.in (all-lib): Remove.
11434 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11435
11436 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11437
11438 Fix Python stack corruption.
11439 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11440 gdb_py_longest.
11441
11442 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11443
11444 * Makefile.in (all-lib): Remove.
11445 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11446
11447 2014-02-07 Doug Evans <dje@google.com>
11448
11449 * extension-priv.h (extension_language_script_ops): Add comment.
11450 (extension_language_ops): Add comment.
11451 (active_ext_lang_state): Fix typo in comment.
11452
11453 2014-02-07 Pedro Alves <palves@redhat.com>
11454
11455 PR breakpoints/16292
11456 * infrun.c (handle_signal_stop) <signal arrives while stepping
11457 over a breakpoint>: Switch back to the stepping thread.
11458
11459 2014-02-07 Yao Qi <yao@codesourcery.com>
11460
11461 * target.c (target_xfer_partial): Return zero if LEN is zero.
11462
11463 2014-02-07 Yao Qi <yao@codesourcery.com>
11464
11465 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11466 (ld_so_xfer_auxv): Likewise.
11467 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11468 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11469 * corelow.c (core_xfer_partial): Likewise.
11470 * ctf.c (ctf_xfer_partial): Likewise.
11471 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11472 (darwin_xfer_partial): Likewise.
11473 * exec.c (exec_xfer_partial): Likewise.
11474 * gnu-nat.c (gnu_xfer_partial): Likewise.
11475 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11476 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11477 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11478 * linux-nat.c (linux_xfer_siginfo): Likewise.
11479 (linux_proc_xfer_spu): Likewise.
11480 * procfs.c (procfs_xfer_partial): Likewise.
11481 * record-full.c (record_full_xfer_partial): Likewise.
11482 (record_full_core_xfer_partial): Likewise.
11483 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11484 * remote.c (remote_write_qxfer): Likewise.
11485 (remote_write_qxfer, remote_read_qxfer): Likewise.
11486 (remote_xfer_partial): Likewise.
11487 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11488 (rs6000_xfer_shared_libraries): Likewise.
11489 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11490 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11491 (spu_xfer_partial): Likewise.
11492 * target.c (memory_xfer_partial_1): Likewise.
11493 * tracepoint.c (tfile_xfer_partial): Likewise.
11494 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11495 (windows_xfer_partial): Likewise.
11496
11497 2014-02-07 Yao Qi <yao@codesourcery.com>
11498
11499 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11500 comments.
11501 (core_xfer_shared_libraries_aix): Likewise.
11502 * gdbarch.c, gdbarch.h: Regenerated.
11503 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11504 ULONGEST. Change 'len_avail' type to ULONGEST.
11505 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11506 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11507 declaration.
11508 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11509
11510 2014-02-07 Yao Qi <yao@codesourcery.com>
11511
11512 * corefile.c (memory_error): Get 'exception' from ERR and pass
11513 'exception' to throw_error.
11514
11515 2014-02-06 Doug Evans <xdje42@gmail.com>
11516
11517 * configure.ac (libpython checking): Remove all but python.o from
11518 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11519 * configure: Regenerate.
11520
11521 * Makefile.in (SFILES): Add extension.c.
11522 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11523 (COMMON_OBS): Add extension.o.
11524 * extension.h: New file.
11525 * extension-priv.h: New file.
11526 * extension.c: New file.
11527
11528 * python/python-internal.h: #include "extension.h".
11529 (gdbpy_auto_load_enabled): Declare.
11530 (gdbpy_apply_val_pretty_printer): Declare.
11531 (gdbpy_apply_frame_filter): Declare.
11532 (gdbpy_preserve_values): Declare.
11533 (gdbpy_breakpoint_cond_says_stop): Declare.
11534 (gdbpy_breakpoint_has_cond): Declare.
11535 (void source_python_script_for_objfile): Delete.
11536 * python/python.c: #include "extension-priv.h".
11537 Delete inclusion of "observer.h".
11538 (extension_language_python): Moved here and renamed from
11539 script_language_python in py-auto-load.c.
11540 Redefined to be of type extension_language_defn.
11541 (python_extension_script_ops): New global.
11542 (python_extension_ops): New global.
11543 (struct python_env): New member previous_active.
11544 (restore_python_env): Call restore_active_ext_lang.
11545 (ensure_python_env): Call set_active_ext_lang.
11546 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11547 New arg extlang.
11548 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11549 New arg extlang.
11550 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11551 New arg extlang.
11552 (gdbpy_eval_from_control_command): Renamed from
11553 eval_python_from_control_command, made static. New arg extlang.
11554 (gdbpy_source_script) Renamed from source_python_script, made static.
11555 New arg extlang.
11556 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11557 result to int. New arg extlang.
11558 (gdbpy_source_objfile_script): Renamed from
11559 source_python_script_for_objfile, made static. New arg extlang.
11560 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11561 static. New args extlang, extlang_printers. Change result type to
11562 "void".
11563 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11564 static. New arg extlang. Rename arg printers to extlang_printers
11565 and change type to ext_lang_type_printers *.
11566 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11567 static. Replace argument arg with extlang, extlang_printers.
11568 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11569 (!HAVE_PYTHON, source_python_script): Delete.
11570 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11571 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11572 (!HAVE_PYTHON, start_type_printers): Delete.
11573 (!HAVE_PYTHON, apply_type_printers): Delete.
11574 (!HAVE_PYTHON, free_type_printers): Delete.
11575 (_initialize_python): Delete call to observer_attach_before_prompt.
11576 (finalize_python): Set/restore active extension language.
11577 (gdbpy_finish_initialization) Renamed from
11578 finish_python_initialization, made static. New arg extlang.
11579 (gdbpy_initialized): New function.
11580 * python/python.h: #include "extension.h". Delete #include
11581 "value.h", "mi/mi-cmds.h".
11582 (extension_language_python): Declare.
11583 (GDBPY_AUTO_FILE_NAME): Delete.
11584 (enum py_bt_status): Moved to extension.h and renamed to
11585 ext_lang_bt_status.
11586 (enum frame_filter_flags): Moved to extension.h.
11587 (enum py_frame_args): Moved to extension.h and renamed to
11588 ext_lang_frame_args.
11589 (finish_python_initialization): Delete.
11590 (eval_python_from_control_command): Delete.
11591 (source_python_script): Delete.
11592 (apply_val_pretty_printer): Delete.
11593 (apply_frame_filter): Delete.
11594 (preserve_python_values): Delete.
11595 (gdbpy_script_language_defn): Delete.
11596 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11597 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11598
11599 * auto-load.c: #include "extension.h".
11600 (GDB_AUTO_FILE_NAME): Delete.
11601 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11602 (script_language_gdb): Delete, moved to extension.c and renamed to
11603 extension_language_gdb.
11604 (source_gdb_script_for_objfile): Delete.
11605 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11606 (loaded_script): Change type of language member to
11607 struct extension_language_defn *.
11608 (init_loaded_scripts_info): Initialize
11609 unsupported_script_warning_printed.
11610 (maybe_add_script): Make static. Change type of language arg to
11611 struct extension_language_defn *.
11612 (clear_section_scripts): Reset unsupported_script_warning_printed.
11613 (auto_load_objfile_script_1): Rewrite to use extension language API.
11614 (auto_load_objfile_script): Make public. Remove support-compiled-in
11615 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11616 (source_section_scripts): Rewrite to use extension language API.
11617 (load_auto_scripts_for_objfile): Rewrite to use
11618 auto_load_scripts_for_objfile.
11619 (collect_matching_scripts_data): Change type of language member to
11620 struct extension_language_defn *.
11621 (auto_load_info_scripts): Change type of language arg to
11622 struct extension_language_defn *.
11623 (unsupported_script_warning_print): New function.
11624 (script_not_found_warning_print): Make static.
11625 (_initialize_auto_load): Rewrite construction of scripts-directory
11626 help.
11627 * auto-load.h (struct objfile): Add forward decl.
11628 (struct script_language): Delete.
11629 (struct auto_load_pspace_info): Add forward decl.
11630 (struct extension_language_defn): Add forward decl.
11631 (maybe_add_script): Delete.
11632 (auto_load_objfile_script): Declare.
11633 (script_not_found_warning_print): Delete.
11634 (auto_load_info_scripts): Update prototype.
11635 (auto_load_gdb_scripts_enabled): Declare.
11636 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11637 auto_load_python_scripts_enabled and made public.
11638 (script_language_python): Delete, moved to python.c.
11639 (gdbpy_script_language_defn): Delete.
11640 (info_auto_load_python_scripts): Update to use
11641 extension_language_python.
11642
11643 * breakpoint.c (condition_command): Replace call to
11644 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11645 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11646 with call to breakpoint_ext_lang_cond_says_stop.
11647 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11648 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11649 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11650 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11651 New arg slang.
11652 (local_setattro): Print name of extension language with existing
11653 stop condition.
11654
11655 * valprint.c (val_print, value_print): Update to call
11656 apply_ext_lang_val_pretty_printer.
11657 * cp-valprint.c (cp_print_value): Update call to
11658 apply_ext_lang_val_pretty_printer.
11659 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11660 (gdbpy_apply_val_pretty_printer): Renamed from
11661 apply_val_pretty_printer. New arg extlang.
11662 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11663
11664 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11665 extension language API.
11666 * cli/cli-script.c (execute_control_command): Update to call
11667 eval_ext_lang_from_control_command.
11668
11669 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11670 enum ext_lang_bt_status values. Update call to
11671 apply_ext_lang_frame_filter.
11672 (mi_cmd_stack_list_locals): Ditto.
11673 (mi_cmd_stack_list_args): Ditto.
11674 (mi_cmd_stack_list_variables): Ditto.
11675 * mi/mi-main.c: Delete #include "python/python-internal.h".
11676 Add #include "extension.h".
11677 (mi_cmd_list_features): Replace reference to python internal variable
11678 gdb_python_initialized with call to ext_lang_initialized_p.
11679
11680 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11681 Update to use enum ext_lang_frame_args. Update to call
11682 apply_ext_lang_frame_filter.
11683 * python/py-framefilter.c (extract_sym): Update to use enum
11684 ext_lang_bt_status.
11685 (extract_value, py_print_type, py_print_value): Ditto.
11686 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11687 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11688 (py_print_frame): Ditto.
11689 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11690 New arg extlang. Update to use enum ext_lang_bt_status.
11691
11692 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11693 finish_python_initialization. Replace with call to
11694 finish_ext_lang_initialization.
11695
11696 * typeprint.c (do_free_global_table): Update to call
11697 free_ext_lang_type_printers.
11698 (create_global_typedef_table): Update to call
11699 start_ext_lang_type_printers.
11700 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11701 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11702 (type_print_options): Change type of global_printers from "void *"
11703 to "struct ext_lang_type_printers *".
11704
11705 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11706 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11707 (gdbpy_preserve_values): Renamed from preserve_python_values.
11708 New arg extlang.
11709 (!HAVE_PYTHON, preserve_python_values): Delete.
11710
11711 * utils.c (quit_flag): Delete, moved to extension.c.
11712 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11713 extension.c.
11714
11715 * eval.c: Delete #include "python/python.h".
11716 * main.c: Delete #include "python/python.h".
11717
11718 * defs.h: Update comment.
11719
11720 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11721
11722 GDB 7.7 released.
11723
11724 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11725
11726 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11727 defined.
11728
11729 2014-02-05 Yao Qi <yao@codesourcery.com>
11730
11731 * remote.c (remote_pass_signals): Remove local 'buf' and use
11732 rs->buf.
11733 (remote_program_signals): Likewise.
11734
11735 2014-02-05 Yao Qi <yao@codesourcery.com>
11736
11737 * ctf.c: Include "inferior.h" and "gdbthread.h".
11738 (CTF_PID): A new macro.
11739 (ctf_open): Call inferior_appeared and add_thread_silent.
11740 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11741 (ctf_thread_alive): New function.
11742 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11743
11744 2014-02-05 Yao Qi <yao@codesourcery.com>
11745
11746 Revert this patch:
11747
11748 2013-05-24 Yao Qi <yao@codesourcery.com>
11749
11750 * tracepoint.c (TFILE_PID): Remove.
11751 (tfile_open): Don't add thread and inferior.
11752 (tfile_close): Don't set 'inferior_ptid'. Don't call
11753 exit_inferior_silent.
11754 (tfile_thread_alive): Remove.
11755 (init_tfile_ops): Don't set field 'to_thread_alive' of
11756 tfile_ops.
11757
11758 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11759
11760 * remote.c (remote_start_remote): Call remote_check_symbols even
11761 if only symbol-file (not file) has been given.
11762
11763 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11764
11765 * gdbarch.sh (skip_entrypoint): New callback.
11766 * gdbarch.c, gdbarch.h: Regenerate.
11767 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11768 * infrun.c (fill_in_stop_func): Likewise.
11769 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11770 (ppc_elfv2_elf_make_msymbol_special): New function.
11771 (ppc_elfv2_skip_entrypoint): Likewise.
11772 (ppc_linux_init_abi): Install them for ELFv2.
11773
11774 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11775
11776 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11777 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11778 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11779 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11780 structures returned in GPRs.
11781
11782 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11783
11784 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11785 offset to the stack parameter list for the ELFv2 ABI.
11786
11787 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11788
11789 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11790 set_gdbarch_convert_from_func_ptr_addr and
11791 set_gdbarch_elf_make_msymbol_special for ELFv1.
11792 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11793 function descriptors on ELFv1.
11794 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11795 set up r12 at function entry.
11796
11797 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11798
11799 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11800 (struct gdbarch_tdep): New member elf_abi.
11801
11802 * rs6000-tdep.c: Include "elf/ppc64.h".
11803 (rs6000_gdbarch_init): Detect ELF ABI version.
11804
11805 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11806
11807 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11808 within a register pair holding a DFP 128-bit value on little-endian.
11809 (ppc64_sysv_abi_return_value_base): Likewise.
11810 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11811 (dfp_pseudo_register_write): Likewise.
11812
11813 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11814
11815 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11816 offset on little-endian when passing _Decimal32.
11817 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11818
11819 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11820
11821 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11822 of the overlapped FP register within the VSX register on little-
11823 endian platforms.
11824 (efpr_pseudo_register_write): Likewise.
11825
11826 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11827
11828 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11829 offset on little-endian when passing small structures.
11830
11831 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11832
11833 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11834 (struct ppc64_sysv_argpos): New data structure.
11835 (ppc64_sysv_abi_push_float): Remove.
11836 (ppc64_sysv_abi_push_val): New function.
11837 (ppc64_sysv_abi_push_integer): Likewise.
11838 (ppc64_sysv_abi_push_freg): Likewise.
11839 (ppc64_sysv_abi_push_vreg): Likewise.
11840 (ppc64_sysv_abi_push_param): Likewise.
11841 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11842 (ppc64_sysv_abi_return_value_base): New function.
11843 (ppc64_sysv_abi_return_value): Refactor to use it.
11844
11845 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11846
11847 * NEWS: Document new target powerpc64le-*-linux*.
11848
11849 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11850
11851 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11852 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11853 core dumps.
11854 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11855 register set used in ELF core dumps. Add floating-point register set.
11856
11857 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11858
11859 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11860 dwarf2_to_gdb[] table using symbolic constants. Adjust
11861 penultimate entry from number representing the PC register
11862 to symbolic constant representing the MDR register. Add
11863 constant for the PC register to the end of the table.
11864
11865 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11866
11867 * bsd-kvm.c: Include <sys/param.h>
11868
11869 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11870
11871 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11872
11873 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11874
11875 * ada-lang.h (clear_ada_sym_cache): Delete.
11876
11877 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11878
11879 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11880
11881 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11882
11883 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11884 the sigreturn register save area only if the syscall is
11885 sigreturn.
11886
11887 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11888
11889 * valops.c (value_slice): Minor reformatting.
11890
11891 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11892
11893 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11894
11895 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11896
11897 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11898 New static globals.
11899 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11900 (ada_ignore_descriptive_types_p): New static global.
11901 (find_parallel_type_by_descriptive_type): Return immediately
11902 if ada_ignore_descriptive_types_p is set.
11903 (_initialize_ada_language): Register new commands "maintenance
11904 set ada", "maintenance show ada", "maintenance set ada
11905 ignore-descriptive-types" and "maintenance show ada
11906 ignore-descriptive-types".
11907 * NEWS: Add entry for new "maint ada set/show
11908 ignore-descriptive-types" commands.
11909
11910 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11911
11912 * record-btrace.c (record_btrace_close): Call btrace_teardown
11913 for all threads.
11914
11915 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11916
11917 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11918 "ui-out.h".
11919
11920 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11921
11922 * ada-typeprint (type_is_full_subrange_of_target_type):
11923 New function.
11924 (print_range): Add parameter bounds_prefered_p. If not set,
11925 try printing range types using the name of their base type.
11926 (print_range_type): Add parameter bounds_prefered_p.
11927 Use it in call to print_range.
11928 (print_array_type, ada_print_type): Update calls to print_range
11929 and print_range_type.
11930
11931 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11932
11933 * ada-typeprint.c (print_array_type, print_choices, print_range)
11934 (print_range_bound, print_dynamic_range_bound, print_range_type):
11935 Remove declaration.
11936
11937 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11938
11939 * ada-typeprint.c (print_range): Add missing empty line
11940 after local declaration.
11941
11942 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11943
11944 * ada-valprint.c (print_optional_low_bound): Get index_type's
11945 target type for as long as it is a TYPE_CODE_RANGE.
11946
11947 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11948
11949 * procfs.c (procfs_make_note_section): Remove assertion and
11950 associated comment.
11951
11952 2014-01-24 Yao Qi <yao@codesourcery.com>
11953
11954 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11955 * corelow.c (get_core_siginfo): Likewise.
11956
11957 2014-01-24 Yao Qi <yao@codesourcery.com>
11958
11959 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11960 ULONGEST. Don't check 'len' is negative.
11961 (remote_write_bytes): Change type of 'len' to ULONGEST.
11962
11963 2014-01-23 Tom Tromey <tromey@redhat.com>
11964
11965 PR python/16485:
11966 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11967 Handle exception from frame.block.
11968 (FrameVars.fetch_frame_locals): Likewise.
11969
11970 2014-01-23 Tom Tromey <tromey@redhat.com>
11971
11972 PR python/16487:
11973 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11974 on a NULL pointer. Move "goto error" to correct place.
11975
11976 2014-01-23 Tom Tromey <tromey@redhat.com>
11977
11978 PR python/16491:
11979 * python/py-framefilter.c (apply_frame_filter): Call
11980 ensure_python_env after computing gdbarch.
11981
11982 2014-01-23 Yao Qi <yao@codesourcery.com>
11983
11984 * target.c (raw_memory_xfer_partial): Change argument type
11985 from void * to gdb_byte *.
11986 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11987
11988 2014-01-22 Doug Evans <dje@google.com>
11989
11990 New gdbserver option --debug-format=timestamp.
11991 * NEWS: Mention it.
11992
11993 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11994
11995 * syscalls/s390x-linux.xml: New file.
11996 * syscalls/s390-linux.xml: New file.
11997 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11998 (XML_SYSCALL_FILENAME_S390X): Likewise.
11999 (op_svc): New enum value for SVC opcode.
12000 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12001 (s390_linux_get_syscall_number): New function.
12002 (s390_gdbarch_init): Register '*get_syscall_number' and the
12003 syscall xml file name.
12004 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12005 "s390-linux.xml" and "s390x-linux.xml".
12006 * NEWS: Announce new feature.
12007
12008 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12009
12010 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12011
12012 2014-01-22 Pedro Alves <palves@redhat.com>
12013
12014 * xtensa-config.c: Include defs.h.
12015
12016 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12017
12018 * common/common-utils.h: Add "ARI:" comment beside __func__
12019 reference.
12020
12021 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12022
12023 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12024 documentation a bit.
12025
12026 2014-01-21 Roland McGrath <mcgrathr@google.com>
12027
12028 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12029 * configure: Regenerate.
12030 * aclocal.m4: Regenerate.
12031 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12032 New substituted variables.
12033 (install-strip): New target.
12034 (INSTALL_SCRIPT): New substituted variable.
12035 (FLAGS_TO_PASS): Add it.
12036 (install-only): Use $(INSTALL_SCRIPT) rather than
12037 $(INSTALL_PROGRAM) for gcore.
12038
12039 2014-01-20 Tom Tromey <tromey@redhat.com>
12040
12041 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12042 together.
12043
12044 2014-01-20 Tom Tromey <tromey@redhat.com>
12045
12046 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12047 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12048 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12049 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12050 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12051 (struct cmd_list_element) <flags>: Remove.
12052 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12053 doc_allocated>: New fields.
12054 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12055 bitfields.
12056 * maint.c (maintenance_do_deprecate): Update.
12057 * top.c (execute_command): Update.
12058
12059 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12060
12061 * xtensa-linux-nat.c: Include asm/ptrace.h.
12062
12063 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12064
12065 * Makefile.in (SFILES): Add d-support.c.
12066 (COMMON_OBS): Add d-support.o.
12067 * d-lang.h (d_parse_symbol): Add comment, now defined in
12068 d-support.c.
12069 * d-lang.c (parse_call_convention)
12070 (parse_attributes, parse_function_types)
12071 (parse_function_args, parse_type, parse_identifier)
12072 (call_convention_p, d_parse_symbol): Move functions to ...
12073 * d-support.c: ... New file.
12074
12075 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12076
12077 * d-lang.h (d_parse_symbol): Add declaration.
12078 * d-lang.c (extract_identifiers)
12079 (extract_type_info): Remove functions.
12080 (parse_call_convention, parse_attributes)
12081 (parse_function_types, parse_function_args)
12082 (parse_type, parse_identifier, call_convention_p)
12083 (d_parse_symbol): New functions.
12084 (d_demangle): Use d_parse_symbol to demangle D symbols.
12085
12086 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12087
12088 * d-lang.h (struct builtin_d_type): New data type.
12089 (builtin_d_type): Add declaration.
12090 * d-lang.c (d_language_arch_info, build_d_types)
12091 (builtin_d_type): New functions.
12092 (enum d_primitive_types): New data type.
12093 (d_language_defn): Change c_language_arch_info to
12094 d_language_arch_info.
12095 (d_type_data): New static variable.
12096 (_initialize_d_language): Initialize d_type_data.
12097
12098 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12099
12100 * d-lang.h (d_main_name): Add declaration.
12101 * d-lang.c (d_main_name): New function.
12102 * symtab.c (find_main_name): Add call to d_main_name.
12103
12104 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12105
12106 * d-lang.c (d_language_defn): Change macro_expansion_c to
12107 macro_expansion_no.
12108
12109 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12110
12111 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12112
12113 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12114
12115 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12116 gdb_exception" declaration.
12117 * remote.c (getpkt_or_notif_sane): Likewise.
12118
12119 2014-01-17 Doug Evans <dje@google.com>
12120
12121 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12122 function, contents of dirnames_to_char_ptr_vec_append moved here.
12123 (delim_string_to_char_ptr_vec): New function.
12124 (dirnames_to_char_ptr_vec_append): Rewrite.
12125 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12126
12127 2014-01-17 Doug Evans <dje@google.com>
12128
12129 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12130 and moved here ...
12131 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12132 #include "common-utils.h".
12133 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12134 * common/vec.h (VEC_ASSERT_PASS): Update.
12135 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12136 (MACH_CHECK_ERROR): Update.
12137
12138 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12139
12140 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12141 comments.
12142 * gdbarch.h: Regenerate.
12143
12144 2014-01-16 Tom Tromey <tromey@redhat.com>
12145
12146 * value.c (struct value) <regnum>: Move earlier.
12147
12148 2014-01-16 Tom Tromey <tromey@redhat.com>
12149
12150 * remote.c (extended_remote_create_inferior): Rename from
12151 extended_remote_create_inferior_1. Add "ops" argument. Remove
12152 old implementation.
12153
12154 2014-01-16 Pedro Alves <palves@redhat.com>
12155
12156 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12157 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12158 the backchain.
12159
12160 2014-01-16 Doug Evans <dje@google.com>
12161
12162 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12163
12164 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12165
12166 * btrace.h (btrace_thread_flag): New.
12167 (struct btrace_thread_info) <flags>: New.
12168 * record-btrace.c (record_btrace_resume_thread)
12169 (record_btrace_find_thread_to_move, btrace_step_no_history)
12170 (btrace_step_stopped, record_btrace_start_replaying)
12171 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12172 (record_btrace_find_resume_thread): New.
12173 (record_btrace_resume, record_btrace_wait): Extend.
12174 (record_btrace_can_execute_reverse): New.
12175 (record_btrace_open): Fail in non-stop mode.
12176 (record_btrace_set_replay): Split into this, ...
12177 (record_btrace_stop_replaying): ... this, ...
12178 (record_btrace_clear_histories): ... and this.
12179 (init_record_btrace_ops): Init to_can_execute_reverse.
12180 * NEWS: Announce it.
12181
12182 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12183
12184 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12185 (forward_target_decr_pc_after_break)
12186 (target_decr_pc_after_break): New.
12187 * target.c (forward_target_decr_pc_after_break)
12188 (target_decr_pc_after_break): New.
12189 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12190 instead of gdbarch_decr_pc_after_break.
12191 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12192 instead of gdbarch_decr_pc_after_break.
12193 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12194 instead of gdbarch_decr_pc_after_break.
12195 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12196 instead of gdbarch_decr_pc_after_break.
12197 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12198 instead of gdbarch_decr_pc_after_break.
12199 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12200 instead of gdbarch_decr_pc_after_break.
12201
12202 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12203
12204 * btrace.c: Include regcache.h.
12205 (btrace_add_pc): New.
12206 (btrace_enable): Call btrace_add_pc.
12207 (btrace_is_empty): New.
12208 * btrace.h (btrace_is_empty): New.
12209 * record-btrace.c (require_btrace, record_btrace_info): Call
12210 btrace_is_empty.
12211
12212 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12213
12214 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12215 Support delta reads.
12216 (linux_disable_btrace): Change return type.
12217 * common/linux-btrace.h (linux_read_btrace): Change parameters
12218 and return type to allow error reporting. Update users.
12219 (linux_disable_btrace): Change return type. Update users.
12220 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12221 New.
12222 (btrace_error): New.
12223 (btrace_block) <begin>: Comment on BEGIN == 0.
12224 * btrace.c (btrace_compute_ftrace): Start from the end of
12225 the current trace.
12226 (btrace_stitch_trace, btrace_clear_history): New.
12227 (btrace_fetch): Read delta trace, return if replaying.
12228 (btrace_clear): Move clear history code to btrace_clear_history.
12229 (parse_xml_btrace): Throw an error if parsing failed.
12230 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12231 and return type to allow error reporting.
12232 (target_read_btrace): Change parameters and return type to allow
12233 error reporting.
12234 * target.c (target_read_btrace): Update.
12235 * remote.c (remote_read_btrace): Support delta reads. Pass
12236 errors on.
12237 * NEWS: Announce it.
12238
12239 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12240
12241 * record.h (record_btrace_frame_unwind)
12242 (record_btrace_tailcall_frame_unwind): New declarations.
12243 * dwarf2-frame: Include record.h
12244 (dwarf2_frame_cfa): Throw an error for btrace frames.
12245 * record-btrace.c: Include hashtab.h.
12246 (btrace_get_bfun_name): New.
12247 (btrace_call_history): Call btrace_get_bfun_name.
12248 (struct btrace_frame_cache): New.
12249 (bfcache): New.
12250 (bfcache_hash, bfcache_eq, bfcache_new): New.
12251 (btrace_get_frame_function): New.
12252 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12253 (record_btrace_frame_this_id): Compute own id.
12254 (record_btrace_frame_prev_register): Provide PC, throw_error
12255 for all other registers.
12256 (record_btrace_frame_sniffer): Detect btrace frames.
12257 (record_btrace_tailcall_frame_sniffer): New.
12258 (record_btrace_frame_dealloc_cache): New.
12259 (record_btrace_frame_unwind): Add new functions.
12260 (record_btrace_tailcall_frame_unwind): New.
12261 (_initialize_record_btrace): Allocate cache.
12262 * btrace.c (btrace_clear): Call reinit_frame_cache.
12263 * NEWS: Announce it.
12264
12265 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12266
12267 * record-btrace.c (record_btrace_set_replay)
12268 (record_btrace_goto_begin, record_btrace_goto_end)
12269 (record_btrace_goto): New.
12270 (init_record_btrace_ops): Initialize them.
12271 * NEWS: Announce it.
12272
12273 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12274
12275 * record-btrace.c (record_btrace_find_new_threads)
12276 (record_btrace_thread_alive): New.
12277 (init_record_btrace_ops): Initialize to_find_new_threads and
12278 to_thread_alive.
12279
12280 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12281
12282 * record-btrace.c (record_btrace_resume): New.
12283 (record_btrace_wait): New.
12284 (init_record_btrace_ops): Initialize to_wait and to_resume.
12285
12286 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12287
12288 * record-btrace.c (record_btrace_xfer_partial)
12289 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12290 (record_btrace_allow_memory_access): New.
12291 (init_record_btrace_ops): Initialize new methods.
12292 * target.c (raw_memory_xfer_partial): Bail out if target reports
12293 that this memory is not available.
12294
12295 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12296
12297 * target.h (target_ops) <to_insert_breakpoint>
12298 <to_remove_breakpoint>: Add target_ops parameter.
12299 (forward_target_insert_breakpoint): New.
12300 (forward_target_remove_breakpoint): New.
12301 (memory_remove_breakpoint, memory_insert_breakpoint):
12302 Add target_ops parameter.
12303 * target.c (target_insert_breakpoint): Split into this and ...
12304 (forward_target_insert_breakpoint): ... this.
12305 (target_remove_breakpoint): Split into this and ...
12306 (forward_target_remove_breakpoint): ... this.
12307 (debug_to_insert_breakpoint): Add target_ops parameter.
12308 Call forward_target_insert_breakpoint.
12309 (debug_to_remove_breakpoint): Add target_ops parameter.
12310 Call forward_target_remove_breakpoint.
12311 (update_current_target): Do not inherit or default to_insert_breakpoint
12312 and to_remove_breakpoint.
12313 * corelow.c (ignore): Add target_ops parameter.
12314 * exec.c (ignore): Add target_ops parameter.
12315 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12316 Add target_ops parameter.
12317 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12318 Add target_ops parameter.
12319 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12320 Add target_ops parameter.
12321 * record-full.c (record_full_beneath_to_insert_breakpoint)
12322 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12323 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12324 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12325 (record_full_core_remove_breakpoint): Add target_ops parameter.
12326 Update users.
12327 (record_full_beneath_to_insert_breakpoint_ops)
12328 (record_full_beneath_to_remove_breakpoint_ops)
12329 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12330 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12331 tmp_to_remove_breakpoint_ops,
12332 record_full_beneath_to_insert_breakpoint_ops, and
12333 record_full_beneath_to_remove_breakpoint_ops.
12334 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12335 (m32r_remove_breakpoint): Add target_ops parameter.
12336 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12337 Add target_ops parameter.
12338 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12339 Add target_ops parameter.
12340
12341 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12342 Markus Metzger <markus.t.metzger@intel.com>
12343
12344 * record-btrace.c: Include frame-unwind.h.
12345 (record_btrace_frame_unwind_stop_reason)
12346 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12347 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12348 New.
12349 (init_record_btrace_ops): Install it.
12350
12351 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12352
12353 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12354 get_prev_frame_1.
12355
12356 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12357
12358 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12359 earlier.
12360
12361 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12362
12363 * frame-unwind.c: Include target.h.
12364 (frame_unwind_try_unwinder): New function with code from ...
12365 (frame_unwind_find_by_frame): ... here. New variable
12366 unwinder_from_target, call also target_get_unwinder)
12367 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12368 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12369 * target.h (struct target_ops): New fields to_get_unwinder and
12370 to_get_tailcall_unwinder.
12371 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12372
12373 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12374
12375 * record-btrace.c (record_btrace_fetch_registers)
12376 (record_btrace_store_registers)
12377 (record_btrace_to_prepare_to_store): New.
12378 (init_record_btrace_ops): Add the above.
12379
12380 2014-01-16 Tom Tromey <tromey@redhat.com>
12381
12382 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12383 * target.h (struct target_ops) <to_prepare_to_store>: Add
12384 argument.
12385 (target_prepare_to_store): Add argument.
12386 * target.c (debug_to_prepare_to_store): Add argument.
12387 (update_current_target): Update.
12388 * remote.c (remote_prepare_to_store): Add 'self' argument.
12389 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12390 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12391 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12392 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12393 argument.
12394 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12395 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12396 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12397 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12398 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12399
12400 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12401
12402 * btrace.h (replay) <replay>: New.
12403 (btrace_is_replaying): New.
12404 * btrace.c (btrace_clear): Free replay iterator.
12405 (btrace_is_replaying): New.
12406 * record-btrace.c (record_btrace_is_replaying): New.
12407 (record_btrace_info): Print insn number if replaying.
12408 (record_btrace_insn_history): Start at replay position.
12409 (record_btrace_call_history): Start at replay position.
12410 (init_record_btrace_ops): Init to_record_is_replaying.
12411
12412 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12413
12414 * record-btrace.c (record_btrace_insn_history_range): Include
12415 end.
12416 (record_btrace_insn_history_from): Adjust range.
12417 (record_btrace_call_history_range): Include
12418 end.
12419 (record_btrace_call_history_from): Adjust range.
12420 * NEWS: Announce changes.
12421
12422 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12423
12424 * record.h (enum record_print_flag)
12425 <record_print_indent_calls>: New.
12426 * record.c (get_call_history_modifiers): Recognize /c modifier.
12427 (_initialize_record): Document /c modifier.
12428 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12429 Reorder fields. Optionally indent the function name. Update
12430 all users.
12431 * NEWS: Announce changes.
12432
12433 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12434
12435 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12436
12437 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12438
12439 * btrace.c (ftrace_new_function): Start counting at one.
12440 * record-btrace.c (record_btrace_info): Adjust number of calls
12441 and insns.
12442 * NEWS: Announce it.
12443
12444 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12445
12446 * record-btrace.c (btrace_call_history_insn_range): Print
12447 insn range as [begin, end].
12448
12449 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12450
12451 * btrace.h (struct btrace_func_link): New.
12452 (enum btrace_function_flag): New.
12453 (struct btrace_inst): Rename to ...
12454 (struct btrace_insn): ...this. Update all users.
12455 (struct btrace_func) <ibegin, iend>: Remove.
12456 (struct btrace_func_link): New.
12457 (struct btrace_func): Rename to ...
12458 (struct btrace_function): ...this. Update all users.
12459 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12460 (number, level, flags>: New.
12461 (struct btrace_insn_iterator): Rename to ...
12462 (struct btrace_insn_history): ...this.
12463 Update all users.
12464 (struct btrace_insn_iterator, btrace_call_iterator): New.
12465 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12466 (struct btrace_target_info) <begin, end, level>
12467 <insn_history, call_history>: New.
12468 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12469 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12470 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12471 (btrace_call_number, btrace_call_begin, btrace_call_end)
12472 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12473 (btrace_find_function_by_number, btrace_set_insn_history)
12474 (btrace_set_call_history): New.
12475 * btrace.c (btrace_init_insn_iterator)
12476 (btrace_init_func_iterator, compute_itrace): Remove.
12477 (ftrace_print_function_name, ftrace_print_filename)
12478 (ftrace_skip_file): Change
12479 parameter to const.
12480 (ftrace_init_func): Remove.
12481 (ftrace_debug): Use new btrace_function fields.
12482 (ftrace_function_switched): Also consider gaining and
12483 losing symbol information).
12484 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12485 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12486 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12487 New.
12488 (ftrace_new_function): Move. Remove debug print.
12489 (ftrace_update_lines, ftrace_update_insns): New.
12490 (ftrace_update_function): Check for call, ret, and jump.
12491 (compute_ftrace): Renamed to ...
12492 (btrace_compute_ftrace): ...this. Rewritten to compute call
12493 stack.
12494 (btrace_fetch, btrace_clear): Updated.
12495 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12496 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12497 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12498 (btrace_call_number, btrace_call_begin, btrace_call_end)
12499 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12500 (btrace_find_function_by_number, btrace_set_insn_history)
12501 (btrace_set_call_history): New.
12502 * record-btrace.c (require_btrace): Use new btrace thread
12503 info fields.
12504 (record_btrace_info, btrace_insn_history)
12505 (record_btrace_insn_history, record_btrace_insn_history_range):
12506 Use new btrace thread info fields and new iterator.
12507 (btrace_func_history_src_line): Rename to ...
12508 (btrace_call_history_src_line): ...this. Use new btrace
12509 thread info fields.
12510 (btrace_func_history): Rename to ...
12511 (btrace_call_history): ...this. Use new btrace thread info
12512 fields and new iterator.
12513 (record_btrace_call_history, record_btrace_call_history_range):
12514 Use new btrace thread info fields and new iterator.
12515
12516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12517
12518 * frame.h (frame_id_build_unavailable_stack_special): New.
12519 * frame.c (frame_id_build_unavailable_stack_special): New.
12520
12521 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12522
12523 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12524 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12525 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12526 to gdbarch.
12527 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12528 (i386_insn_is_jump, i386_jmp_p): New.
12529 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12530 insn_is_jump to gdbarch.
12531 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12532 * gdbarch.h: Regenerated.
12533 * gdbarch.c: Regenerated.
12534 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12535 (default_insn_is_jump): New.
12536 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12537 (default_insn_is_jump): New.
12538
12539 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12540
12541 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12542 Change to ...
12543 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12544 (btrace_read_type) <btrace_read_new>: Change to ...
12545 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12546
12547 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12548
12549 * common/linux-btrace.c (linux_read_btrace): Free trace from
12550 previous iteration.
12551
12552 2014-01-15 Doug Evans <dje@google.com>
12553
12554 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12555 uint32_t.
12556
12557 2014-01-15 Tom Tromey <tromey@redhat.com>
12558
12559 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12560 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12561 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12562 (set_objfile_main_name): New function.
12563 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12564 language_of_main>: New fields.
12565 (set_objfile_main_name): Declare.
12566 * symtab.c (find_main_name): Loop over objfiles to find the main
12567 name and language.
12568 (set_main_name): Now static.
12569 (get_main_info): Add comment.
12570 * symtab.h (set_main_name): Don't declare.
12571
12572 2014-01-15 Tom Tromey <tromey@redhat.com>
12573
12574 * symtab.c (main_progspace_key): New global.
12575 (struct main_info): New.
12576 (name_of_main, language_of_main): Remove.
12577 (get_main_info, main_info_cleanup): New function.
12578 (set_main_name, main_name, main_language): Use get_main_info.
12579 (_initialize_symtab): Initialize main_progspace_key.
12580
12581 2014-01-15 Tom Tromey <tromey@redhat.com>
12582
12583 * dbxread.c (process_one_symbol): Update.
12584 * dwarf2read.c (read_partial_die): Update.
12585 * symfile.c (set_initial_language): Call main_language.
12586 * symtab.c (language_of_main): Now static.
12587 (set_main_name): Add 'lang' parameter.
12588 (find_main_name): Update.
12589 (main_language): New function.
12590 (symtab_observer_executable_changed): Update.
12591 * symtab.h (set_main_name): Update.
12592 (language_of_main): Remove.
12593 (main_language): Declare.
12594
12595 2014-01-15 Tom Tromey <tromey@redhat.com>
12596
12597 * symfile.c (init_entry_point_info): Use new "initialized" field.
12598 Update.
12599 * objfiles.h (struct entry_point) <initialized>: New field.
12600 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12601 (struct objfile) <ei>: ...here. Remove.
12602 * objfiles.c (entry_point_address_query): Update.
12603
12604 2014-01-15 Tom Tromey <tromey@redhat.com>
12605
12606 * objfiles.c (entry_point_address_query): Relocate entry point
12607 address.
12608 (objfile_relocate1): Do not relocate entry point address.
12609 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12610 <the_bfd_section_index>: New field.
12611 * symfile.c (init_entry_point_info): Find the entry point's
12612 section.
12613
12614 2014-01-15 Tom Tromey <tromey@redhat.com>
12615
12616 * solib-frv.c (enable_break): Use entry_point_address_query.
12617
12618 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12619
12620 * NEWS: Add note on improved process record-replay on
12621 arm*-linux* targets.
12622
12623 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12624
12625 * arm-tdep.c (enum arm_record_result): New enum.
12626 (arm_record_unsupported_insn): New function.
12627 (arm_record_coproc_data_proc): Removed.
12628 (thumb2_record_ld_st_multiple): New function.
12629 (thumb2_record_ld_st_dual_ex_tbb): New function.
12630 (thumb2_record_data_proc_sreg_mimm): New function.
12631 (thumb2_record_ps_dest_generic): New function.
12632 (thumb2_record_branch_misc_cntrl): New function.
12633 (thumb2_record_str_single_data): New function.
12634 (thumb2_record_ld_mem_hints): New function.
12635 (thumb2_record_ld_word): New function.
12636 (thumb2_record_lmul_lmla_div): New function.
12637 (thumb2_record_decode_insn_handler): New function.
12638 (decode_insn): Add thumb32 instruction handlers.
12639
12640 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12641
12642 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12643 (struct arm_linux_record_tdep): Declare.
12644 (arm_canonicalize_syscall): New function.
12645 (arm_all_but_pc_registers_record): New function.
12646 (arm_linux_syscall_record): New function.
12647 (arm_linux_init_abi): Add syscall recording constructs.
12648 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12649 decoding. (arm_record_coproc_data_proc): Update arm syscall
12650 decoding.
12651 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12652 <arm_syscall_record>: New field.
12653 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12654 gdb_target_obs.
12655
12656 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12657
12658 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12659 register for push instruction recording.
12660
12661 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12662
12663 * arm-tdep.c (thumb_record_misc): Update to correct logical
12664 error while recording ldm, ldmia and pop instructions.
12665
12666 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12667
12668 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12669
12670 2014-01-15 Pedro Alves <palves@redhat.com>
12671
12672 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12673 (go32_resume, go32_fetch_registers, store_register)
12674 (go32_store_registers, go32_prepare_to_store)
12675 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12676 (go32_create_inferior, go32_can_run, go32_terminal_init)
12677 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12678 declarations.
12679
12680 2014-01-15 Tom Tromey <tromey@redhat.com>
12681
12682 * target.h (async_callback_ftype): New typedef.
12683 (struct target_ops) <to_async>: Use it.
12684
12685 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12686
12687 * python/py-value.c (get_field_type): Remove unnecessary curly
12688 braces for single-statement if block.
12689
12690 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12691
12692 * python/py-type.c (convert_field): Add missing empty line
12693 after declarations.
12694
12695 2014-01-14 Doug Evans <dje@google.com>
12696
12697 * symfile.h (expand_symtabs_matching): Renamed from
12698 expand_partial_symbol_names. Update prototype.
12699 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12700 * symfile.c (expand_symtabs_matching): Renamed from
12701 expand_partial_symbol_names. New args file_matcher, kind.
12702 Rename arg fun to symbol_matcher.
12703 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12704 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12705 ada_expand_partial_symbol_name.
12706 (ada_make_symbol_completion_list): Update to call
12707 expand_symtabs_matching.
12708 (ada_add_global_exceptions): Call expand_symtabs_matching.
12709 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12710 call map_symbol_filenames.
12711 * symtab.c (sources_info): Update to call map_symbol_filenames.
12712 (search_symbols): Call expand_symtabs_matching.
12713 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12714 (default_make_symbol_completion_list_break_on): Update to call
12715 expand_symtabs_matching.
12716 (make_source_files_completion_list): Update to call
12717 map_symbol_filenames.
12718
12719 2014-01-14 Doug Evans <dje@google.com>
12720
12721 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12722 (expand_symtabs_symbol_matcher_ftype): New typedef.
12723 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12724 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12725 * symfile.c (expand_partial_symbol_names): Update to use
12726 expand_symtabs_symbol_matcher_ftype.
12727 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12728 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12729 Arg name_matcher renamed to symbol_matcher.
12730 * psymtab.c (recursively_search_psymtabs): Update to use
12731 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12732 sym_matcher.
12733 (expand_symtabs_matching_via_partial): Update to use
12734 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12735 Arg name_matcher renamed to symbol_matcher.
12736
12737 2014-01-14 Doug Evans <dje@google.com>
12738
12739 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12740 (map_partial_symbol_filenames): Ditto.
12741 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12742 (map_partial_symbol_filenames): Ditto.
12743 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12744 (map_partial_symbol_filenames): Ditto.
12745 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12746 (map_partial_symbol_filenames): Ditto.
12747 * symtab.c: Delete #include "psymtab.h".
12748
12749 2014-01-14 Pedro Alves <palves@redhat.com>
12750 Tom Tromey <tromey@redhat.com>
12751
12752 * infrun.c (use_displaced_stepping): Use find_record_target
12753 instead of RECORD_IS_USED.
12754 (adjust_pc_after_break): Use record_full_is_used instead of
12755 RECORD_IS_USED.
12756 * record-btrace.c (record_btrace_open): Call record_preopen
12757 instead of checking RECORD_IS_USED.
12758 * record-full.c (record_full_shortname)
12759 (record_full_core_shortname): New globals.
12760 (record_full_is_used): New function.
12761 (find_full_open): Call record_preopen instead of checking
12762 RECORD_IS_USED.
12763 (init_record_full_ops): Set the target's shortname to
12764 record_full_shortname.
12765 (init_record_full_core_ops): Set the target's shortname to
12766 record_full_core_shortname.
12767 * record-full.h (record_full_is_used): Declare.
12768 * record.c (find_record_target): Make extern.
12769 (record_preopen): New function.
12770 * record.h (RECORD_IS_USED): Delete macro.
12771 (find_record_target, record_preopen): Declare functions.
12772
12773 2014-01-14 Yao Qi <yao@codesourcery.com>
12774
12775 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12776 'len''s type to ULONGEST.
12777 (core_xfer_shared_libraries_aix): Likewise.
12778 * gdbarch.c, gdbarch.h: Regenerated.
12779 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12780 Change type of 'len' to ULONGEST.
12781 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12782 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12783
12784 2014-01-14 Yao Qi <yao@codesourcery.com>
12785
12786 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12787 type of 'len' to ULONGEST.
12788 (linux_xfer_osdata_processgroups): Likewise.
12789 (linux_xfer_osdata_threads): Likewise.
12790 (linux_xfer_osdata_fds): Likewise.
12791 (linux_xfer_osdata_isockets): Likewise.
12792 (linux_xfer_osdata_shm): Likewise.
12793 (linux_xfer_osdata_sem): Likewise.
12794 (linux_xfer_osdata_msg): Likewise.
12795 (linux_common_xfer_osdata): Likewise.
12796 (struct osdata_type) <getter>: Likewise.
12797 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12798 the declaration.
12799
12800 2014-01-14 Yao Qi <yao@codesourcery.com>
12801
12802 * target.h (target_xfer_partial_ftype): Update.
12803 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12804 ULONGEST.
12805 * aix-thread.c (aix_thread_xfer_partial): Change type of
12806 argument 'len' to ULONGEST.
12807 * auxv.c (procfs_xfer_auxv): Likewise.
12808 (ld_so_xfer_auxv): Likewise.
12809 (memory_xfer_auxv): Likewise.
12810 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12811 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12812 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12813 * corelow.c (core_xfer_partial): Likewise.
12814 * ctf.c (ctf_xfer_partial): Likewise.
12815 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12816 '%u'.
12817 (darwin_read_dyld_info): Likewise.
12818 (darwin_xfer_partial): Likewise.
12819 * exec.c (section_table_xfer_memory_partial): Likewise.
12820 (exec_xfer_partial): Likewise.
12821 * exec.h (section_table_xfer_memory_partial): Update
12822 declaration.
12823 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12824 instead of plongest.
12825 (gnu_xfer_partial): Likewise.
12826 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12827 (ia64_hpux_xfer_solib_got): Likewise.
12828 (ia64_hpux_xfer_partial): Likewise.
12829 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12830 * inf-ptrace.c (inf_ptrace_xfer_partial):
12831 * inf-ttrace.c (inf_ttrace_xfer_partial):
12832 * linux-nat.c (linux_xfer_siginfo): Likewise.
12833 (linux_nat_xfer_partial): Likewise.
12834 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12835 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12836 * monitor.c (monitor_xfer_memory): Likewise.
12837 (monitor_xfer_partial): Likewise.
12838 * procfs.c (procfs_xfer_partial): Likewise.
12839 * record-full.c (record_full_xfer_partial): Likewise.
12840 (record_full_core_xfer_partial): Likewise.
12841 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12842 instead of plongest.
12843 (gdbsim_xfer_partial): Likewise.
12844 * remote.c (remote_xfer_partial): Likewise.
12845 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12846 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12847 declaration.
12848 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12849 (rs6000_xfer_shared_libraries): Likewise.
12850 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12851 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12852 (sparc_xfer_partial): Likewise.
12853 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12854 (spu_xfer_partial): Likewise.
12855 * spu-multiarch.c (spu_xfer_partial): Likewise.
12856 * target.c (target_read_live_memory): Likewise.
12857 (memory_xfer_live_readonly_partial): Likewise.
12858 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12859 (target_xfer_partial, default_xfer_partial): Likewise.
12860 (current_xfer_partial): Likewise.
12861 * tracepoint.c (tfile_xfer_partial): Likewise.
12862 * windows-nat.c (windows_xfer_memory): Likewise. Call
12863 pulongest instead of plongest.
12864 (windows_xfer_partial): Likewise.
12865 (windows_xfer_shared_libraries): Likewise.
12866
12867 2014-01-14 Yao Qi <yao@codesourcery.com>
12868
12869 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12870 target_xfer_partial_ftype.
12871
12872 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12873
12874 PR python/15464
12875 PR python/16113
12876 * valops.c (value_struct_elt_bitpos): New function
12877 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12878 object to 'None' if the field name is an empty string ("").
12879 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12880 attribute to look for a field when 'name' is 'None'.
12881 (get_field_type): New function
12882
12883 2014-01-13 Doug Evans <dje@google.com>
12884
12885 PR symtab/16426
12886 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12887 (try_open_dwop_file): Ditto.
12888 * gdb_bfd.c: #include "vec.h".
12889 (bfdp): New typedef.
12890 (struct gdb_bfd_data): New member included_bfds.
12891 (gdb_bfd_unref): Unref all included bfds.
12892 (gdb_bfd_record_inclusion): New function.
12893 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12894
12895 2014-01-13 Tom Tromey <tromey@redhat.com>
12896
12897 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12898
12899 2014-01-13 Tom Tromey <tromey@redhat.com>
12900
12901 * defs.h (use_windows): Remove.
12902 * gdb.c (main): Update.
12903 * main.c (captured_main, gdb_main): Update.
12904 * main.h (struct captured_main_args) <use_windows>: Remove.
12905 * top.c (use_windows): Remove.
12906
12907 2014-01-13 Tom Tromey <tromey@redhat.com>
12908
12909 * defs.h (deprecated_flush_hook): Remove.
12910
12911 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12912
12913 PR threads/16216
12914 * linux-thread-db.c (try_thread_db_load): Add parameter
12915 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12916 (try_thread_db_load_from_pdir_1): Move it there from here.
12917 (try_thread_db_load_from_sdir): Update caller.
12918 (try_thread_db_load_from_dir): Move it there from here.
12919
12920 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12921
12922 * regformats/regdat.sh: Always rewrite the register file.
12923
12924 2014-01-13 Pedro Alves <palves@redhat.com>
12925
12926 * Makefile.in (CHECK_HEADERS): New variable.
12927 (check-headers:): New rule.
12928
12929 2014-01-13 Tom Tromey <tromey@redhat.com>
12930
12931 * cli/cli-setshow.c (do_set_command): Update.
12932 * defs.h (deprecated_set_hook): Remove.
12933 * top.c (deprecated_set_hook): Remove.
12934
12935 2014-01-13 Pedro Alves <palves@redhat.com>
12936
12937 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12938 the tracepoint if the PC is a pseudo-register.
12939
12940 2014-01-13 Tom Tromey <tromey@redhat.com>
12941
12942 * defs.h (XCALLOC): Remove.
12943 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12944 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12945 * dwarf2loc.c (allocate_piece_closure): Likewise.
12946 * elfread.c (elf_symfile_segments): Likewise.
12947 (elf_symfile_segments): Likewise.
12948 * gdbtypes.c (copy_type_recursive): Likewise.
12949 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12950 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12951 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12952 XCALLOC.
12953 * mt-tdep.c (mt_gdbarch_init): Likewise.
12954 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12955 XCALLOC.
12956 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12957 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12958 * registry.c (registry_alloc_data): Likewise.
12959 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12960 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12961 * serial.c (serial_fdopen_ops): Likewise.
12962 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12963 XCALLOC.
12964 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12965 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12966 not XCALLOC.
12967
12968 2014-01-13 Tom Tromey <tromey@redhat.com>
12969
12970 * defs.h (XMALLOC): Remove.
12971 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12972 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12973 * cli-out.c (struct ui_out *): Likewise.
12974 * cli/cli-dump.c (add_dump_command): Likewise.
12975 (add_dump_command): Likewise.
12976 * complaints.c (get_complaints): Likewise.
12977 (find_complaint): Likewise.
12978 * dwarf2-frame.c (execute_cfa_program): Likewise.
12979 * dwarf2read.c (abbrev_table_read_table): Likewise.
12980 * gdbarch.sh: Likewise.
12981 * gdbarch.c: Rebuild.
12982 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12983 * interps.c (interp_new): Likewise.
12984 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12985 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12986 * mi/mi-console.c (mi_console_file_new): Likewise.
12987 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12988 * mi/mi-out.c (mi_out_new): Likewise.
12989 * mi/mi-parse.c (mi_parse): Likewise.
12990 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12991 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12992 * observer.c (xalloc_observer_list_node): Likewise.
12993 * regcache.c (regcache_xmalloc_1): Likewise.
12994 * reggroups.c (reggroup_new): Likewise.
12995 (_initialize_reggroup): Likewise.
12996 * registry.c (register_data_with_cleanup): Likewise.
12997 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12998 * ser-base.c (serial_ttystate): Likewise.
12999 * ser-mingw.c (make_pipe_state): Likewise.
13000 * ser-pipe.c (pipe_open): Likewise.
13001 * serial.c (serial_open): Likewise.
13002 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13003 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13004 (tui_alloc_win_info): Likewise.
13005 (tui_add_content_elements): Likewise.
13006 * tui/tui-file.c (tui_file_new): Likewise.
13007 * tui/tui-out.c (tui_out_new): Likewise.
13008 * ui-file.c (mem_file_new): Likewise.
13009 * ui-out.c (push_level): Likewise.
13010 (make_cleanup_ui_out_end): Likewise.
13011 (append_header_to_list): Likewise.
13012 (ui_out_new): Likewise.
13013 * user-regs.c (user_reg_add_builtin): Likewise.
13014
13015 2014-01-13 Tom Tromey <tromey@redhat.com>
13016
13017 * defs.h (XZALLOC): Remove.
13018 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13019 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13020 (get_ada_tasks_inferior_data): Likewise.
13021 * auto-load.c (get_auto_load_pspace_data): Likewise.
13022 * auxv.c (get_auxv_inferior_data): Likewise.
13023 * bfd-target.c (target_bfd_reopen): Likewise.
13024 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13025 (deprecated_insert_raw_breakpoint): Likewise.
13026 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13027 * corelow.c (core_open): Likewise.
13028 * darwin-nat.c (darwin_check_new_threads): Likewise.
13029 (darwin_attach_pid): Likewise.
13030 * dummy-frame.c (dummy_frame_push): Likewise.
13031 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13032 * dwarf2loc.c (allocate_piece_closure): Likewise.
13033 * elfread.c (elf_symfile_segments): Likewise.
13034 * eval.c (ptrmath_type_p): Likewise.
13035 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13036 * gdbtypes.c (alloc_type_arch): Likewise.
13037 (alloc_type_instance): Likewise.
13038 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13039 * inf-child.c (inf_child_can_use_agent): Likewise.
13040 * inflow.c (get_inflow_inferior_data): Likewise.
13041 * infrun.c (save_infcall_suspend_state): Likewise.
13042 * jit.c (jit_reader_load): Likewise.
13043 (get_jit_objfile_data): Likewise.
13044 (get_jit_program_space_data): Likewise.
13045 (jit_object_open_impl): Likewise.
13046 (jit_symtab_open_impl): Likewise.
13047 (jit_block_open_impl): Likewise.
13048 (jit_frame_sniffer): Likewise.
13049 * linux-fork.c (add_fork): Likewise.
13050 * maint.c (make_command_stats_cleanup): Likewise.
13051 * objfiles.c (get_objfile_pspace_data): Likewise.
13052 * opencl-lang.c (struct lval_closure): Likewise.
13053 * osdata.c (osdata_start_osdata): Likewise.
13054 * progspace.c (new_address_space): Likewise.
13055 (add_program_space): Likewise.
13056 * remote-sim.c (get_sim_inferior_data): Likewise.
13057 * sh-tdep.c (sh_gdbarch_init): Likewise.
13058 * skip.c (Ignore): Likewise.
13059 (skip_delete_command): Likewise.
13060 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13061 (library_list_start_library): Likewise.
13062 (solib_aix_current_sos): Likewise.
13063 * solib-darwin.c (get_darwin_info): Likewise.
13064 (darwin_current_sos): Likewise.
13065 * solib-dsbt.c (get_dsbt_info): Likewise.
13066 * solib-ia64-hpux.c (new_so_list): Likewise.
13067 (ia64_hpux_get_solib_linkage_addr): Likewise.
13068 * solib-spu.c (append_ocl_sos): Likewise.
13069 (spu_current_sos): Likewise.
13070 * solib-svr4.c (get_svr4_info): Likewise.
13071 (svr4_keep_data_in_core): Likewise.
13072 (library_list_start_library): Likewise.
13073 (svr4_default_sos): Likewise.
13074 (svr4_read_so_list): Likewise.
13075 * solib-target.c (library_list_start_library): Likewise.
13076 (solib_target_current_sos): Likewise.
13077 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13078 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13079 * symfile.c (default_symfile_segments): Likewise.
13080 * target-descriptions.c (tdesc_data_init): Likewise.
13081 (tdesc_create_reg): Likewise.
13082 (struct tdesc_type *): Likewise.
13083 (tdesc_create_vector): Likewise.
13084 (tdesc_set_struct_size): Likewise.
13085 (struct tdesc_type *): Likewise.
13086 (tdesc_free_feature): Likewise.
13087 (tdesc_create_feature): Likewise.
13088 * windows-nat.c (windows_add_thread): Likewise.
13089 (windows_make_so): Likewise.
13090 * xml-support.c (gdb_xml_body_text): Likewise.
13091 (gdb_xml_create_parser_and_cleanup): Likewise.
13092 (xml_process_xincludes): Likewise.
13093 * xml-syscall.c (allocate_syscalls_info): Likewise.
13094 (syscall_create_syscall_desc): Likewise.
13095
13096 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13097
13098 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13099 function, with code from i386_stap_parse_special_token.
13100 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13101 (i386_stap_parse_special_token): Move code to the two functions
13102 above; simplify it.
13103
13104 2014-01-09 Pedro Alves <palves@redhat.com>
13105 Hui Zhu <hui@codesourcery.com>
13106
13107 PR gdb/16101
13108 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13109 bp_err_string. Don't mark the location shlib_disabled if the
13110 error thrown wasn't a generic or memory error. Catch errors
13111 thrown while inserting breakpoints in overlayed code. Output
13112 error message of software breakpoints.
13113 * remote.c (remote_insert_breakpoint): If this breakpoint has
13114 target-side commands but this stub doesn't support Z0 packets,
13115 throw NOT_SUPPORTED_ERROR error.
13116 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13117 * target.h (target_insert_breakpoint): Extend comment.
13118 (target_insert_hw_breakpoint): Add comment.
13119
13120 2014-01-08 Pedro Alves <palves@redhat.com>
13121
13122 * remote.c (remote_add_thread): Add threads silently if starting
13123 up.
13124 (remote_notice_new_inferior): If in all-stop, and starting up,
13125 don't call notice_new_inferior.
13126 (get_current_thread): New function, factored out from ...
13127 (add_current_inferior_and_thread): ... this. Adjust.
13128 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13129 found any thread, then select the remote's current thread as GDB's
13130 current thread too.
13131
13132 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13133
13134 * NEWS: Create a new section for the next release branch.
13135 Rename the section of the current branch, now that it has
13136 been cut.
13137
13138 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13139
13140 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13141 * version.in: Bump version to 7.7.50.DATE-cvs.
13142
13143 2014-01-08 Yao Qi <yao@codesourcery.com>
13144
13145 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13146 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13147 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13148
13149 2014-01-08 Yao Qi <yao@codesourcery.com>
13150
13151 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13152 return value of bfd_get_filename to symbol_file_add_from_bfd.
13153
13154 2014-01-08 Pierre Muller <muller@sourceware.org>
13155
13156 Fix PR16201.
13157 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13158 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13159 to prim_record_mininal_symbol_and_info.
13160 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13161 in call to prim_record_minimal_symbol_and_info.
13162 (read_pe_exported_syms): Set index field of section_data.
13163
13164 2014-01-07 Andrew Pinski <apinski@cavium.com>
13165
13166 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13167 * features/aarch64.c: Regenerate.
13168
13169 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13170
13171 * target.c (return_null): Define.
13172 (update_current_target): Use it instead of return_zero for
13173 functions that return a pointer.
13174
13175 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13176
13177 * source.c (add_path): Fix check for duplicated paths in the previously
13178 included paths.
13179
13180 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13181
13182 * ada-lang.c: Remove duplicated include statements.
13183 * alphabsd-nat.c: Ditto.
13184 * amd64-darwin-tdep.c: Ditto.
13185 * amd64fbsd-nat.c: Ditto.
13186 * auto-load.c: Ditto.
13187 * ax-gdb.c: Ditto.
13188 * breakpoint.c: Ditto.
13189 * dbxread.c: Ditto.
13190 * fork-child.c: Ditto.
13191 * gdb_usleep.c: Ditto.
13192 * i386-darwin-tdep.c: Ditto.
13193 * i386fbsd-nat.c: Ditto.
13194 * infcmd.c: Ditto.
13195 * inferior.c: Ditto.
13196 * jv-lang.c: Ditto.
13197 * linux-nat.c: Ditto.
13198 * linux-tdep.c: Ditto.
13199 * m68kbsd-nat.c: Ditto.
13200 * m68klinux-nat.c: Ditto.
13201 * microblaze-tdep.c: Ditto.
13202 * mips-linux-tdep.c: Ditto.
13203 * mn10300-tdep.c: Ditto.
13204 * nto-tdep.c: Ditto.
13205 * opencl-lang.c: Ditto.
13206 * osdata.c: Ditto.
13207 * printcmd.c: Ditto.
13208 * regcache.c: Ditto.
13209 * remote-m32r-sdi.c: Ditto.
13210 * remote.c: Ditto.
13211 * symfile.c: Ditto.
13212 * symtab.c: Ditto.
13213 * tilegx-linux-nat.c: Ditto.
13214 * tilegx-tdep.c: Ditto.
13215 * tracepoint.c: Ditto.
13216 * valops.c: Ditto.
13217 * vaxbsd-nat.c: Ditto.
13218 * windows-nat.c: Ditto.
13219 * xtensa-tdep.c: Ditto.
13220
13221 2014-01-07 Yao Qi <yao@codesourcery.com>
13222
13223 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13224
13225 2014-01-07 Yao Qi <yao@codesourcery.com>
13226 Joel Brobecker <brobecker@adacore.com>
13227
13228 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13229 (pdc_write_regs): Likewise.
13230 (fetch_regs_kernel_thread): Likewise.
13231 (store_regs_kernel_thread): Likewise.
13232
13233 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13234
13235 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13236 tagged type objects to their actual type.
13237
13238 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13239
13240 * ada-valprint.c (print_field_values): Add "language" parameter.
13241 Update calls to print_field_values and print_variant_part.
13242 Pass new parameter "language" in call to val_print instead
13243 of "current_language". Replace call to ada_val_print by call
13244 to val_print.
13245 (print_variant_part): Add "language" parameter.
13246 (ada_val_print_struct_union): Update call to print_field_values.
13247
13248 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13249
13250 * ada-valprint.c (ui_memcpy): Delete.
13251 (ada_print_floating): Update documentation. Add empty line
13252 between between function documentation and implementation.
13253 Delete variable "buffer". Use ui_file_xstrdup in place of
13254 ui_file_put. Minor adjustments following this change.
13255
13256 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13257
13258 * ada-valprint.c (ada_val_print_string): New function,
13259 extracted from ada_val_print_array.
13260 (ada_val_print_array): Replace extracted code by call
13261 to ada_val_print_string followed by a return. Move
13262 "else" branch to the function's top block.
13263
13264 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13265
13266 * ada-valprint.c (ada_val_print_array): Move implementation
13267 down. Rename parameter "offset" and "val" into "offset_aligned"
13268 and "original_value" respectively. Add parameter "offset".
13269
13270 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13271
13272 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13273 re-organizing the code. Change the "???" message printed
13274 when target type is a TYPE_CODE_UNDEF into
13275 "<ref to undefined type>".
13276
13277 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13278
13279 * ada-valprint.c (print_record): Delete, implementation inlined...
13280 (ada_val_print_struct_union): ... here. Remove call to
13281 ada_check_typedef in inlined implementation.
13282
13283 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13284
13285 * ada-valprint.c (ada_val_print_gnat_array): New function,
13286 extracted from ada_val_print_1;
13287 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13288 (ada_val_print_flt, ada_val_print_struct_union)
13289 (ada_val_print_ref): Likewise.
13290 (ada_val_print_1): Delete variables i and elttype.
13291 Replace extracted-out code by call to corresponding
13292 new functions.
13293
13294 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13295
13296 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13297
13298 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13299
13300 * ada-valprint.c (ada_val_print_1): Replace calls to
13301 ada_val_print_1 by calls to val_print.
13302
13303 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13304
13305 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13306 Update calls to self accordingly. Replace calls to c_val_print
13307 by calls to val_print.
13308
13309 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13310
13311 * ada-valprint.c (print_record): Delete declaration.
13312 (adjust_type_signedness, ada_val_print_1): Likewise.
13313 (ada_val_print): Move function implementation down.
13314 (print_variant_part, print_field_values, print_record):
13315 Move function implementation up.
13316
13317 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13318
13319 * python/py-type.c (typy_get_name): New function.
13320 (type_object_getset): Add entry for attribute "name".
13321 * NEWS: Add entry mentioning this new attribute.
13322
13323 2014-01-07 Yao Qi <yao@codesourcery.com>
13324
13325 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13326 statement.
13327
13328 2014-01-07 Yao Qi <yao@codesourcery.com>
13329
13330 * gnu-nat.c (info_port_rights): Add qualifier const to
13331 argument args.
13332
13333 2014-01-07 Yao Qi <yao@codesourcery.com>
13334
13335 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13336
13337 2014-01-07 Yao Qi <yao@codesourcery.com>
13338
13339 * gnu-nat.c (make_inf) Update declaration.
13340 (make_inf): Make it static.
13341 (inf_set_traced): Likewise.
13342 (inf_port_to_thread, inf_task_died_status): Likewise.
13343
13344 2014-01-07 Yao Qi <yao@codesourcery.com>
13345
13346 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13347
13348 2014-01-07 Yao Qi <yao@codesourcery.com>
13349
13350 * gnu-nat.c (_initialize_gnu_nat): Declare.
13351
13352 2014-01-07 Yao Qi <yao@codesourcery.com>
13353
13354 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13355 'enum bfd_endian'.
13356 (struct gdbarch_info) <byte_order>: Change type to
13357 'enum bfd_endian'.
13358 <byte_order_for_code>: Likewise.
13359 * gdbarch.c, gdbarch.h: Regenerated.
13360
13361 2014-01-06 Sasha Smundak <asmundak@google.com>
13362
13363 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13364
13365 2014-01-06 Tom Tromey <tromey@redhat.com>
13366
13367 * doublest.c (convert_doublest_to_floatformat): Use const, not
13368 CONST.
13369 * somread.c (som_symtab_read): Likewise.
13370
13371 2014-01-07 Hui Zhu <hui@codesourcery.com>
13372
13373 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13374 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13375 (gdb_bfd_fopen): Ditto.
13376 (gdb_bfd_openr): Ditto.
13377 (gdb_bfd_openw): Ditto.
13378 (gdb_bfd_openr_iovec): Ditto.
13379 (gdb_bfd_fdopenr): Ditto.
13380 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13381 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13382 with xstrdup.
13383 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13384 with xstrdup.
13385 * symfile-mem.c (symbol_file_add_from_memory): Removed
13386 gdb_bfd_stash_filename.
13387
13388 2014-01-03 Doug Evans <dje@google.com>
13389
13390 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13391 output.
13392
13393 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13394
13395 Update year range in copyright notice of all files.
13396
13397 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13398
13399 * top.c (print_gdb_version): Set copyright year to 2014.
13400
13401 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13402
13403 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13404
13405 For older changes see ChangeLog-2013.
13406 \f
13407 Local Variables:
13408 mode: change-log
13409 left-margin: 8
13410 fill-column: 74
13411 version-control: never
13412 coding: utf-8
13413 End:
This page took 0.292698 seconds and 5 git commands to generate.