IA64: 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 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
4 (ia64_linux_iterate_over_regset_sections): New.
5 (ia64_linux_init_abi): Adjust gdbarch initialization.
6
7 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
8
9 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
10 (m68kbsd_iterate_over_regset_sections): New.
11 (m68kbsd_init_abi): Adjust gdbarch initialization.
12 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
13 (m68k_linux_iterate_over_regset_sections): New.
14 (m68k_linux_init_abi): Adjust gdbarch initialization.
15
16 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
17
18 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
19 (m32r_linux_regset_from_core_section): Remove.
20 (m32r_linux_iterate_over_regset_sections): New.
21 (m32r_linux_init_abi): Adjust gdbarch initialization.
22
23 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
24
25 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
26 (amd64obsd_iterate_over_regset_sections): New.
27 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
28 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
29 Remove.
30 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
31 regset_from_core_section initialization.
32 * i386-tdep.c (i386_regset_from_core_section): Remove.
33 (i386_iterate_over_regset_sections): New.
34 (i386_gdbarch_init): Adjust gdbarch initialization.
35 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
36 (i386_iterate_over_regset_sections): New prototype.
37 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
38 Remove.
39 (i386obsd_aout_iterate_over_regset_sections): New.
40 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
41 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
42 targets.
43 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
44 (amd64fbsd_init_abi): Call fbsd_init_abi.
45 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
46 (i386fbsd4_init_abi): Call fbsd_init_abi.
47 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
48 target method 'make_corefile_notes'.
49 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
50
51 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
52
53 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
54 (hppa_hpux_iterate_over_regset_sections): New.
55 (hppa_hpux_init_abi): Adjust gdbarch initialization.
56 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
57 (hppa_linux_iterate_over_regset_sections): New.
58 (hppa_linux_init_abi): Adjust.
59 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
60 (hppanbsd_iterate_over_regset_sections): New.
61 (hppanbsd_init_abi): Adjust.
62 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
63 (hppaobsd_iterate_over_regset_sections): New.
64 (hppaobsd_init_abi): Adjust.
65
66 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
67
68 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
69 (frv_linux_iterate_over_regset_sections): New.
70 (frv_linux_init_abi): Adjust gdbarch initialization.
71
72 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
73
74 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
75 (armbsd_iterate_over_regset_sections): New prototype.
76 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
77 (armbsd_iterate_over_regset_sections): New.
78 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
79 initialization.
80
81 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
82
83 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
84 (alpha_linux_iterate_over_regset_sections): New.
85 (alpha_linux_init_abi): Adjust gdbarch initialization.
86 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
87 prototype.
88 (alphanbsd_iterate_over_regset_sections): New prototype.
89
90 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
91
92 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
93 Remove.
94 (aarch64_linux_iterate_over_regset_sections): New.
95 (aarch64_linux_init_abi): Adjust gdbarch initialization.
96
97 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
98
99 * fbsd-tdep.c: New file.
100 * fbsd-tdep.h: New file.
101 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
102 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
103 (ALLDEPFILES): Add fbsd-tdep.c.
104
105 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
106
107 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
108 parameter.
109 * gdbarch.h: Regenerate.
110 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
111 iterator.
112 (get_core_register_section): Add parameter 'regset' and use it, if
113 set. Add parameter 'min_size' and verify the bfd section size
114 against it.
115 (get_core_registers_cb): Add parameter 'regset' and pass it to
116 get_core_register section. For the "standard" register sections
117 ".reg" and ".reg2", set an appropriate default for human_name.
118 (get_core_registers): Don't abort when the gdbarch has an iterator
119 but no regset_from_core_section. Add NULL/0 for parameters
120 'regset'/'min_size' in calls to get_core_register_section.
121 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
122 'regset' and use it instead of calling the
123 regset_from_core_section gdbarch method.
124 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
125 * i386-tdep.c (i386_supply_xstateregset)
126 (i386_collect_xstateregset, i386_xstateregset): Moved to
127 i386-linux-tdep.c.
128 (i386_regset_from_core_section): Drop handling for .reg-xfp and
129 .reg-xstate.
130 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
131 core file support only if the regset iterator hasn't been set.
132 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
133 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
134 Moved from i386-tdep.c and renamed to *_linux*.
135 (i386_linux_iterate_over_regset_sections): Add regset parameter to
136 each callback invocation. Allow any .reg-xstate size when reading
137 from a core file.
138 * amd64-tdep.c (amd64_supply_xstateregset)
139 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
140 amd64-linux-tdep.c.
141 (amd64_regset_from_core_section): Remove.
142 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
143 install an amd64-specific regset_from_core_section gdbarch method.
144 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
145 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
146 Moved from amd64-tdep.c and renamed to *_linux*.
147 (amd64_linux_iterate_over_regset_sections): Add regset parameter
148 to each callback invocation. Allow any .reg-xstate size when
149 reading from a core file.
150 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
151 (arm_linux_iterate_over_regset_sections): Add regset parameter to
152 each callback invocation.
153 (arm_linux_init_abi): No longer set the regset_from_core_section
154 gdbarch method.
155 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
156 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
157 each callback invocation.
158 (ppc_linux_init_abi): No longer set the regset_from_core_section
159 gdbarch method.
160 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
161 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
162 (s390_regset_from_core_section): Remove.
163 (s390_iterate_over_regset_sections): Add regset parameter to each
164 callback invocation.
165 (s390_gdbarch_init): No longer set the regset_from_core_section
166 gdbarch method. Drop initialization of deleted tdep fields.
167
168 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
169
170 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
171 (amd64_linux_iterate_over_regset_sections): New.
172 (amd64_linux_init_abi_common): Don't install the regset section
173 list, but the new iterator in gdbarch.
174 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
175 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
176 (arm_linux_iterate_over_regset_sections): ...here. New function.
177 (arm_linux_init_abi): Set iterator instead of section list.
178 * corelow.c (get_core_registers_cb): New function, logic moved
179 from...
180 (get_core_registers): ...loop body here. Use new iterator method
181 instead of walking through the regset section list.
182 * gdbarch.sh: Remove 'core_regset_sections'. New method
183 'iterate_over_regset_sections'. New typedef
184 'iterate_over_regset_sections_cb'.
185 * gdbarch.c: Regenerate.
186 * gdbarch.h: Likewise.
187 * i386-linux-tdep.c (i386_linux_regset_sections)
188 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
189 Remove.
190 (i386_linux_iterate_over_regset_sections): New.
191 (i386_linux_init_abi): Don't choose a regset section list, but
192 install new iterator in gdbarch.
193 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
194 (linux_collect_regset_section_cb): New function, logic moved
195 from...
196 (linux_collect_thread_registers): ...loop body here. Use iterator
197 method instead of walking through list.
198 (linux_make_corefile_notes_1): Check for presence of iterator
199 method instead of regset section list.
200 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
201 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
202 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
203 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
204 (ppc_linux_iterate_over_regset_sections): ...here. New function.
205 (ppc_linux_init_abi): Don't choose from above regset section
206 lists, but install new iterator in gdbarch.
207 * regset.h (struct core_regset_section): Remove.
208 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
209 have_linux_v1, have_linux_v2, and have_tdb.
210 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
211 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
212 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
213 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
214 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
215 (s390_iterate_over_regset_sections): ...here. New function. Use
216 new tdep fields.
217 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
218 regset section lists, but install new iterator.
219
220 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
221
222 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
223
224 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
225
226 * progspace.c (print_program_space): Don't prune program spaces
227 before printing them.
228
229 2014-09-25 Pedro Alves <palves@redhat.com>
230
231 * infrun.c (user_visible_resume_ptid): Don't check
232 singlestep_breakpoints_inserted_p.
233
234 2014-09-25 Pedro Alves <palves@redhat.com>
235
236 * breakpoint.c (should_be_inserted): Add debug output.
237
238 2014-09-25 Pedro Alves <palves@redhat.com>
239
240 * infrun.c (stepping_past_instruction_at)
241 (clear_exit_convenience_vars): Point at infrun.h instead of
242 inferior.h.
243 (handle_signal_stop): Fix typo.
244
245 2014-09-24 Yao Qi <yao@codesourcery.com>
246
247 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
248 bitmask.
249
250 2014-09-22 Gary Benson <gbenson@redhat.com>
251
252 * target.c (target_stop): Updated comment.
253
254 2014-09-22 Gary Benson <gbenson@redhat.com>
255
256 * target/target.h (target_stop_ptid): Renamed as...
257 (target_stop_and_wait): New function. Updated comment.
258 All uses updated.
259 (target_continue_ptid): Renamed as...
260 (target_continue_no_signal): New function. Updated comment.
261 All uses updated.
262
263 2014-09-22 Pedro Alves <palves@redhat.com>
264
265 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
266 and "auto" merged.
267 * breakpoint.c (enum ugll_insert_mode): New enum.
268 (always_inserted_mode): Now a plain boolean.
269 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
270 (breakpoints_always_inserted_mode): Delete.
271 (breakpoints_should_be_inserted_now): New function.
272 (insert_breakpoints): Pass UGLL_INSERT to
273 update_global_location_list instead of calling
274 insert_breakpoint_locations manually.
275 (create_solib_event_breakpoint_1): New, factored out from ...
276 (create_solib_event_breakpoint): ... this.
277 (create_and_insert_solib_event_breakpoint): Use
278 create_solib_event_breakpoint_1 instead of calling
279 insert_breakpoint_locations manually.
280 (update_global_location_list): Change parameter type from boolean
281 to enum ugll_insert_mode. All callers adjusted. Adjust to use
282 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
283 (update_global_location_list_nothrow): Change parameter type from
284 boolean to enum ugll_insert_mode.
285 (_initialize_breakpoint): "breakpoint always-inserted" option is
286 now a boolean command. Update help text.
287 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
288 (breakpoints_should_be_inserted_now): New declaration.
289 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
290 Remove breakpoints_always_inserted_mode check.
291 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
292 * remote.c (remote_start_remote): Likewise.
293
294 2014-09-22 Pedro Alves <palves@redhat.com>
295
296 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
297 (insert_breakpoints): Don't call insert_breakpoint_locations here.
298 Instead, pass UGLL_INSERT to update_global_location_list.
299 (update_global_location_list): Change parameter type from boolean
300 to enum ugll_insert_mode. All callers adjusted. Adjust to use
301 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
302 (create_solib_event_breakpoint_1): New, factored out from ...
303 (create_solib_event_breakpoint): ... this.
304 (create_and_insert_solib_event_breakpoint): Use
305 create_solib_event_breakpoint_1 instead of calling
306 insert_breakpoint_locations manually.
307 (update_global_location_list): Handle UGLL_INSERT.
308
309 2014-09-22 Pedro Alves <palves@redhat.com>
310
311 * breakpoint.c (enum ugll_insert_mode): New enum.
312 (update_global_location_list)
313 (update_global_location_list_nothrow): Change parameter type from
314 boolean to enum ugll_insert_mode. All callers adjusted.
315
316 2014-09-19 Joel Brobecker <brobecker@adacore.com>
317
318 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
319 SystemTap support in GDB.
320
321 2014-09-19 Don Breazeal <donb@codesourcery.com>
322
323 * linux-nat.c (linux_handle_extended_wait): Call
324 linux_ptrace_get_extended_event.
325 (wait_lwp): Call linux_is_extended_waitstatus.
326 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
327 and linux_is_extended_waitstatus.
328 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
329 linux_ptrace_get_extended_event.
330 (linux_ptrace_get_extended_event): New function.
331 (linux_is_extended_waitstatus): New function.
332 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
333 (linux_is_extended_waitstatus): New declarations.
334
335 2014-09-19 Yao Qi <yao@codesourcery.com>
336
337 * dwarf2read.c (dwarf_decode_lines): Update declaration.
338 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
339 comments. Callers update.
340 (dwarf_decode_lines): Likewise.
341 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
342 comments. Skip the line table if 'lowpc' is greater than
343 'address'. Don't check
344 dwarf2_per_objfile->has_section_at_zero.
345
346 2014-09-18 Doug Evans <dje@google.com>
347
348 * NEWS: Mention new "producer" attribute of gdb.Symtab.
349 * python/py-symtab.c (stpy_get_producer): New function.
350 (symtab_object_getset): Add "producer" attribute.
351
352 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
353
354 PR gdb/17384
355 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
356 (do_captured_read_memory_integer): Remove.
357 (safe_read_memory_integer): Use target_read_memory directly instead
358 of catching errors in do_captured_read_memory_integer.
359
360 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
361
362 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
363 not gdb/doc.
364
365 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
366
367 * objc-lang.c (find_implementation_from_class): Remove dead code.
368
369 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
370
371 PR cli/7233
372 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
373 "fprintf_unfiltered (gdb_stdlog...)".
374
375 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
376
377 PR breakpoints/12526
378 * breakpoint.h (struct watchpoint): New fields val_bitpos and
379 val_bitsize.
380 * breakpoint.c (watch_command_1): Use these fields to retain
381 bitfield information.
382 (extract_bitfield_from_watchpoint_value): New function.
383 (watchpoint_check): Use it.
384 (update_watchpoint): Use it. Optimize the address and length of a
385 HW watchpoint pointing to a bitfield.
386 * value.h (unpack_value_bitfield): New prototype.
387 * value.c (unpack_value_bitfield): Make extern.
388
389 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
390
391 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
392 x86-dregs.o.
393 * gnu-nat.c (inf_threads): New function.
394 * gnu-nat.h (inf_threads_ftype): New typedef.
395 (inf_threads): New declaration.
396 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
397 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
398 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
399 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
400 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
401 (i386_gnu_dr_get_control): New functions.
402 (reg_addr): New structure.
403 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
404 i386 debugging register hooks.
405 * NEWS: Mention this.
406
407 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
408
409 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
410 vector data transfer instructions.
411 (arm_record_coproc_data_proc): Updated.
412
413 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
414
415 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
416 arm_record_exreg_ld_st_insn.
417 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
418 load/store insns.
419
420 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
421
422 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
423 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
424 processing instructions.
425
426 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
427
428 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
429 for advance SIMD struct ld/st insn.
430 (thumb2_record_decode_insn_handler): Replace stub handler with
431 thumb2_record_asimd_struct_ld_st.
432
433 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
434
435 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
436 for asimd, vfp and coprocessor insns.
437 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
438 and coprocessor insns.
439 (thumb2_record_coproc_insn): New function.
440 (thumb2_record_decode_insn_handler): Update coprocessor insns record
441 handlers.
442 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
443 opcode 110 insns.
444
445 2014-09-13 Doug Evans <xdje42@gmail.com>
446
447 * NEWS: Mention new "queue-signal" command.
448 * infcmd.c (queue_signal_command): New function.
449 (_initialize_infcmd): Add new queue-signal command.
450
451 2014-09-13 Doug Evans <xdje42@gmail.com>
452
453 * linux-nat.c (wait_lwp): Add debugging printf.
454 (linux_nat_wait_1): Ditto.
455
456 2014-09-12 Pedro Alves <palves@redhat.com>
457
458 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
459 (create_and_insert_solib_event_breakpoint): New functions.
460 * breakpoint.h (create_and_insert_solib_event_breakpoint)
461 (remove_solib_event_breakpoints_at_next_stop): New declarations.
462 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
463 (remove_dbx_link_breakpoint): Delete function.
464 (insert_dbx_link_bpt_in_file): Use
465 create_and_insert_solib_event_breakpoint instead of
466 deprecated_insert_raw_breakpoint.
467 (procfs_wait): Don't check whether we hit __dbx_link here.
468 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
469 here.
470 * solib-irix.c (base_breakpoint): Delete global.
471 (disable_break): Delete function.
472 (enable_break): Use create_solib_event_breakpoint
473 instead of deprecated_insert_raw_breakpoint.
474 (irix_solib_handle_event): New function.
475 (irix_solib_create_inferior_hook): Don't run the target or disable
476 the mapping-complete breakpoint here.
477 (_initialize_irix_solib): Install irix_solib_handle_event as
478 so_ops->handle_event hook.
479
480 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
481 Ulrich Weigand  <uweigand@de.ibm.com>
482
483 PR tdep/17379
484 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
485 instead of read_memory_unsigned_integer.
486
487 2014-09-12 Gary Benson <gbenson@redhat.com>
488
489 * nat/linux-waitpid.c: Include common-defs.h.
490 [GDBSERVER]: Add FIXME comment.
491 [!GDBSERVER]: Don't include defs.h or signal.h.
492 (linux_debug) [!GDBSERVER]: Remove empty block.
493
494 2014-09-12 Gary Benson <gbenson@redhat.com>
495
496 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
497 Don't include defs.h or server.h.
498
499 2014-09-12 Gary Benson <gbenson@redhat.com>
500
501 * nat/linux-btrace.c: Include common-defs.h.
502 Don't include defs.h, server.h or gdbthread.h.
503 * nat/linux-btrace.h (struct target_ops): New forward declaration.
504
505 2014-09-12 Gary Benson <gbenson@redhat.com>
506
507 * common/agent.c: Include common-defs.h.
508 Don't include defs.h or server.h.
509 * common/buffer.c: Likewise.
510 * common/common-debug.c: Likewise.
511 * common/common-utils.c: Likewise.
512 * common/errors.c: Likewise.
513 * common/filestuff.c: Likewise.
514 * common/format.c: Likewise.
515 * common/gdb_vecs.c: Likewise.
516 * common/print-utils.c: Likewise.
517 * common/ptid.c: Likewise.
518 * common/rsp-low.c: Likewise.
519 * common/signals.c: Likewise.
520 * common/vec.c: Likewise.
521 * common/xml-utils.c: Likewise.
522 * nat/linux-osdata.c: Likewise.
523 * nat/linux-procfs.c: Likewise.
524 * nat/linux-ptrace.c: Likewise.
525 * nat/mips-linux-watch.c: Likewise.
526 * target/waitstatus.c: Likewise.
527
528 2014-09-12 Tom Tromey <tromey@redhat.com>
529 Gary Benson <gbenson@redhat.com>
530
531 * common/common-regcache.h: New file.
532 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
533 * regcache.h: Include common-regcache.h.
534 (regcache_read_pc): Don't declare.
535 * regcache.c (get_thread_regcache_for_ptid): New function.
536 * nat/linux-btrace.c: Don't include regcache.h.
537 Include common-regcache.h.
538 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
539
540 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
541
542 * regcache.h (struct regset): Declare.
543
544 2014-09-11 Pedro Alves <palves@redhat.com>
545
546 PR gdb/17347
547 * main.c: Include "infrun.h".
548 (catch_command_errors, catch_command_errors_const): Wait for the
549 foreground command to complete.
550 * top.c (maybe_wait_sync_command_done): New function, factored out
551 from ...
552 (maybe_wait_sync_command_done): ... here.
553 * top.h (maybe_wait_sync_command_done): New declaration.
554
555 2014-09-11 Tom Tromey <tromey@redhat.com>
556 Gary Benson <gbenson@redhat.com>
557
558 * common/symbol.h: New file.
559 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
560 * minsyms.c (find_minimal_symbol_address): New function.
561 * common/agent.c: Include common/symbol.h.
562 [!GDBSERVER]: Don't include objfiles.h.
563 (agent_look_up_symbols): Use find_minimal_symbol_address.
564
565 2014-09-11 Gary Benson <gbenson@redhat.com>
566
567 * target/target.h (target_stop_ptid, target_continue_ptid):
568 Declare.
569 * target.c (target_stop_ptid, target_continue_ptid): New
570 functions.
571 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
572 (agent_run_command): Always use target_stop_ptid and
573 target_continue_ptid.
574
575 2014-09-11 Tom Tromey <tromey@redhat.com>
576 Gary Benson <gbenson@redhat.com>
577
578 * target/target.h: New file.
579 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
580 * target.h: Include target/target.h.
581 (target_read_memory, target_write_memory): Don't declare.
582 * target.c (target_read_uint32): New function.
583 * common/agent.c: Include target/target.h.
584 [!GDBSERVER]: Don't include target.h.
585 (helper_thread_id): Type changed to uint32_t.
586 (agent_get_helper_thread_id): Use target_read_uint32.
587 (agent_run_command): Always use target_read_memory and
588 target_write_memory.
589 (agent_capability): Type changed to uint32_t.
590 (agent_capability_check): Use target_read_uint32.
591
592 2014-09-11 Gary Benson <gbenson@redhat.com>
593
594 * common/common-debug.h (show_debug_regs): Declare.
595 * common/common-debug.c (show_debug_regs): Define.
596 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
597 all uses with show_debug_regs. Replace all uses that considered
598 debug_hw_points as a multi-value integer with straight boolean
599 uses.
600 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
601 with show_debug_regs.
602 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
603 all uses with show_debug_regs.
604 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
605 uses with show_debug_regs.
606
607 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
608
609 * findvar.c (address_from_register): Handle targets requiring
610 a special conversion routine even for plain pointer types.
611
612 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
613
614 * rs6000-nat.c (exec_one_dummy_insn): Remove.
615 (store_register): Do not call exec_one_dummy_insn.
616
617 2014-09-10 Joel Brobecker <brobecker@adacore.com>
618
619 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
620 dereference it first. Use value_enclosing_type instead of
621 value_type.
622 (ada_array_length): Likewise.
623
624 2014-09-10 Joel Brobecker <brobecker@adacore.com>
625
626 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
627 Adjust function implementation and documentation accordingly.
628 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
629 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
630 Update call to ada_value_ptr_subscript.
631
632 2014-09-10 Joel Brobecker <brobecker@adacore.com>
633
634 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
635 instead of VAL's type.
636
637 2014-09-10 Joel Brobecker <brobecker@adacore.com>
638
639 * amd64-linux-nat.c: Add <sys/uio.h> #include.
640
641 2014-09-09 Doug Evans <xdje42@gmail.com>
642
643 PR guile/17367
644 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
645 last parameter to pkg-config, not first.
646 * configure.ac: Pass --with-guile provided pkg-config path to
647 GDB_GUILE_PROGRAM_NAMES.
648 * configure: Regenerate.
649
650 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
651
652 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
653 Bertazi".
654
655 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
656
657 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
658 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
659 the list of sections determining GDB_OSABI_IRIX.
660
661 2014-09-09 James Hogan <james.hogan@imgtec.com>
662
663 * MAINTAINERS (Write After Approval): Add "James Hogan".
664
665 2014-09-09 James Hogan <james.hogan@imgtec.com>
666
667 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
668
669 2014-09-09 Joel Brobecker <brobecker@adacore.com>
670
671 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
672
673 2014-09-08 Doug Evans <xdje42@gmail.com>
674
675 PR 17247
676 * guile.c: #include <signal.h>.
677 (_initialize_guile): Block SIGCHLD while initializing Guile.
678
679 Replaces the following, which is reverted.
680
681 2014-07-26 Doug Evans <xdje42@gmail.com>
682
683 PR 17185
684 * configure.ac: Add check for header gc/gc.h.
685 Add check for function setenv.
686 * configure: Regenerate.
687 * config.in: Regenerate.
688 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
689
690 2014-09-08 Doug Evans <xdje42@gmail.com>
691
692 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
693 with named constant. Fix style of pointer comparison.
694 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
695
696 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
697
698 PR gdb/17035
699 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
700 decide whether we display the command on "show user".
701 * cli/cli-script.c (show_user_1): Only verify cmdlines after
702 printing command name.
703 * cli/cli-decode.h (cli_user_command_p): Declare new function.
704 * cli/cli-decode.c (cli_user_command_p): Create helper function
705 to verify whether cmd_list_element is a user-defined command.
706
707 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
708
709 PR python/17355
710 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
711 Fix goto out of TRY_CATCH.
712
713 2014-09-06 Doug Evans <xdje42@gmail.com>
714 Tom Tromey <tromey@redhat.com>
715
716 PR 15276
717 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
718 $_any_caller_matches.
719 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
720 * python/lib/gdb/function/caller_is.py: New file.
721
722 2014-09-06 Doug Evans <xdje42@gmail.com>
723
724 * infcmd.c (program_info): Fix typo.
725
726 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
727
728 PR gdb/17235
729 * stap-probe.c (stap_parse_single_operand): Delete unused variable
730 'number'. New variable 'has_digit'. Rewrite code to deal with
731 subexpressions on SDT probes.
732
733 2014-09-04 Pedro Alves <palves@redhat.com>
734
735 * c-exp.y (parse_number): Skip handling base-switching prefixes if
736 the input is only one character long.
737
738 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
739
740 PR fortran/17237
741 * f-valprint.c (f_val_print): Specify the correct print option to
742 use when printing integer values.
743
744 2014-09-04 Gary Benson <gbenson@redhat.com>
745
746 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
747 Remove code to cope with LWPs wrapped as PIDs.
748 Add assertions to ensure no wrapped LWPs are passed.
749
750 2014-09-04 Pedro Alves <palves@redhat.com>
751
752 * value.c (value_ranges_copy_adjusted): New function, factored out
753 from ...
754 (value_contents_copy_raw): ... here.
755 (unpack_value_bits_as_long_1): Rename back to ...
756 (unpack_bits_as_long): ... this. Remove 'original_value' and
757 'result' parameters. Change return type to LONGEST.
758 (unpack_value_bits_as_long): Delete.
759 (unpack_value_field_as_long_1): Delete.
760 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
761 (unpack_value_bitfield): New function.
762 (value_field_bitfield): Reimplement using unpack_value_bitfield.
763 (value_fetch_lazy): Use unpack_value_bitfield.
764 * value.h (unpack_value_bits_as_long): Delete declaration.
765
766 2014-09-03 Sasha Smundak <asmundak@google.com>
767
768 * python/py-frame.c (frapy_read_register): New function.
769
770 2014-09-03 James Hogan <james.hogan@imgtec.com>
771
772 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
773 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
774
775 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
776
777 PR python/16699
778 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
779 function.
780 (add_cmd): Set "completer_handle_brkchars" to NULL.
781 * cli/cli-decode.h (struct cmd_list_element)
782 <completer_handle_brkchars>: New field.
783 * command.h (completer_ftype_void): New typedef.
784 (set_cmd_completer_handle_brkchars): New prototype.
785 * completer.c (set_gdb_completion_word_break_characters): New
786 function.
787 (complete_line_internal): Call "completer_handle_brkchars"
788 callback from command.
789 * completer.h: Include "command.h".
790 (set_gdb_completion_word_break_characters): New prototype.
791 * python/py-cmd.c (cmdpy_completer_helper): New function.
792 (cmdpy_completer_handle_brkchars): New function.
793 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
794 (cmdpy_init): Set completer_handle_brkchars to
795 cmdpy_completer_handle_brkchars.
796
797 2014-09-03 Gary Benson <gbenson@redhat.com>
798
799 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
800 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
801 Loop conditions changed to equivalent form.
802 (struct x86_debug_reg_state): Updated dr_ref_count comment.
803 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
804 ALL_DEBUG_ADDRESS_REGISTERS.
805
806 2014-09-03 Joel Brobecker <brobecker@adacore.com>
807
808 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
809 description fix.
810
811 2014-09-02 Doug Evans <dje@google.com>
812
813 * typeprint.c (find_global_typedef): Fix comment.
814
815 2014-09-02 Gary Benson <gbenson@redhat.com>
816
817 * i386-nat.h: Renamed as...
818 * x86-nat.h: New file. All type, function and variable name
819 prefixes changed from "i386_" to "x86_". All references updated.
820 * i386-nat.c: Renamed as...
821 * x86-nat.c: New file. All type, function and variable name
822 prefixes changed from "i386_" to "x86_". All references updated.
823 * common/i386-xstate.h: Renamed as...
824 * common/x86-xstate.h: New file. All type, function and variable
825 name prefixes changed from "i386_" to "x86_". All references
826 updated.
827 * nat/i386-cpuid.h: Renamed as...
828 * nat/x86-cpuid.h: New file. All type, function and variable name
829 prefixes changed from "i386_" to "x86_". All references updated.
830 * nat/i386-gcc-cpuid.h: Renamed as...
831 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
832 name prefixes changed from "i386_" to "x86_". All references
833 updated.
834 * nat/i386-dregs.h: Renamed as...
835 * nat/x86-dregs.h: New file. All type, function and variable name
836 prefixes changed from "i386_" to "x86_". All references updated.
837 * nat/i386-dregs.c: Renamed as...
838 * nat/x86-dregs.c: New file. All type, function and variable name
839 prefixes changed from "i386_" to "x86_". All references updated.
840
841 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
842
843 * varobj.c (_initialize_varobj): Move to the end of file.
844
845 2014-08-29 Gary Benson <gbenson@redhat.com>
846
847 * common/common-exceptions.h: New file.
848 * common/common-exceptions.c: Likewise.
849 * Makefile.in (SFILES): Add common/common-exceptions.c.
850 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
851 (COMMON_OBS): Add common-exceptions.o.
852 (common-exceptions.o): New rule.
853 * exceptions.h (common-exceptions.h): Include.
854 (gdb_setjmp.h): Do not include.
855 (return_reason): Moved to common-exceptions.h.
856 (enum return_reason): Likewise.
857 (RETURN_MASK): Likewise.
858 (typedef return_mask): Likewise.
859 (enum errors): Likewise.
860 (struct gdb_exception): Likewise.
861 (exceptions_state_mc_init): Likewise.
862 (exceptions_state_mc_action_iter): Likewise.
863 (exceptions_state_mc_action_iter_1): Likewise.
864 (TRY_CATCH): Likewise.
865 (throw_exception): Likewise.
866 (throw_verror): Likewise.
867 (throw_vquit): Likewise.
868 (throw_error): Likewise.
869 (throw_quit): Likewise.
870 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
871 (enum catcher_action): Likewise.
872 (struct catcher): Likewise.
873 (current_catcher): Likewise.
874 (catcher_list_size): Likewise.
875 (exceptions_state_mc_init): Likewise.
876 (catcher_pop): Likewise.
877 (exceptions_state_mc): Likewise.
878 (exceptions_state_mc_action_iter): Likewise.
879 (exceptions_state_mc_action_iter_1): Likewise.
880 (throw_exception): Likewise.
881 (exception_messages): Likewise.
882 (exception_messages_size): Likewise.
883 (throw_it): Likewise.
884 (throw_verror): Likewise.
885 (throw_vquit): Likewise.
886 (throw_error): Likewise.
887 (throw_quit): Likewise.
888 (prepare_to_throw_exception): New function.
889
890 2014-08-29 Gary Benson <gbenson@redhat.com>
891
892 * common/gdb_setjmp.h: New file.
893 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
894 * configure.ac: Move sigsetjmp check...
895 * common/common.m4: ...here.
896 * configure: Regenerate.
897 * cp-support.c (SIGJMP_BUF): Delete.
898 (SIGSETJMP): Likewise.
899 (SIGLONGJMP): Likewise.
900 * exceptions.h (gdb_setjmp.h): Include.
901 (setjmp.h): Do not include.
902 (EXCEPTIONS_SIGJMP_BUF): Delete.
903 (EXCEPTIONS_SIGSETJMP): Likewise.
904 (EXCEPTIONS_SIGLONGJMP): Likewise.
905 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
906 from gdb_setjmp.h.
907 * exceptions.c: Likewise.
908
909 2014-08-29 Gary Benson <gbenson@redhat.com>
910
911 * cleanups.h: Moved to...
912 * common/cleanups.h: New file.
913 * cleanups.c: Moved to...
914 * common/cleanups.c: New file. Include common-defs.h and
915 cleanups.h. Do not include defs.h.
916 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
917 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
918 (cleanups.o): New rule.
919
920 2014-08-29 Gary Benson <gbenson@redhat.com>
921
922 * common/errors.h (internal_warning): New declaration.
923 (internal_vwarning): Likewise.
924 * common/errors.c (internal_warning): New function.
925 * utils.h (internal_warning): Don't declare.
926 (internal_vwarning): Likewise.
927 * utils.c (internal_warning): Removed.
928
929 2014-08-29 Gary Benson <gbenson@redhat.com>
930
931 * main.c (captured_main): Use warning during startup.
932 Prefix startup warning messages with command name.
933
934 2014-08-29 Gary Benson <gbenson@redhat.com>
935
936 * main.c (captured_main): Handle usage errors with error.
937
938 2014-08-29 Gary Benson <gbenson@redhat.com>
939
940 * go32-nat.c (go32_create_inferior): Replace a fprintf/
941 exit pair with a call to error. Wrap the message with _().
942
943 2014-08-29 Gary Benson <gbenson@redhat.com>
944
945 * main.c (captured_main): Replace a fprintf/exit
946 pair with a call to error. Wrap the message with _().
947
948 2014-08-29 Gary Benson <gbenson@redhat.com>
949
950 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
951 pairs with calls to error. Wrap the message with _().
952
953 2014-08-29 Gary Benson <gbenson@redhat.com>
954
955 * utils.c (vwarning): Protect calls to target_terminal_ours
956 and wrap_here.
957
958 2014-08-29 Gary Benson <gbenson@redhat.com>
959
960 * exceptions.c (print_flush): Protect calls to
961 target_terminal_ours and wrap_here.
962
963 2014-08-29 Gary Benson <gbenson@redhat.com>
964
965 * utils.h (filtered_printing_initialized): New declaration.
966 * utils.c (abort_with_message): New function.
967 (internal_vproblem): Use abort_with_message for first level
968 recursive internal problems, and if gdb_stderr is not set up.
969 Protect calls to target_terminal_ours, begin_line and query.
970
971 2014-08-28 Doug Evans <dje@google.com>
972
973 * symtab.c (in_prologue): Move definition to better spot.
974 (skip_prologue_using_sal): Ditto.
975
976 2014-08-28 Doug Evans <dje@google.com>
977
978 * symtab.c (find_function_start_sal): Move definition to better spot.
979
980 2014-08-28 Yao Qi <yao@codesourcery.com>
981
982 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
983 found_stack_adjust in forward scan. Remove condition check
984 on found_stack_adjust which is always true. Indent the code.
985
986 2014-08-28 Yao Qi <yao@codesourcery.com>
987
988 * dwarf2read.c (dwarf_decode_lines): Update declaration.
989 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
990 (dwarf_decode_lines): Remove argument
991 want_line_info. Remove condition check on want_line_info.
992 Callers update.
993
994 2014-08-27 Doug Evans <dje@google.com>
995
996 * dwarf2read.c (dwarf_record_line): Fix typo.
997
998 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
999
1000 * target.h (struct target_ops::to_terminal_save_ours): Remove
1001 declaration.
1002 (target_terminal_save_ours): Remove macro.
1003 * target-delegates.c: Regenerate.
1004 * inf-child.c (inf_child_target): Don't set the nonexistent
1005 field to_terminal_save_ours.
1006 * inferior.h (child_terminal_save_ours): Remove declaration.
1007 * terminal.h (gdb_save_tty_state): New declaration.
1008 * inflow.c (child_terminal_save_ours): Rename to ...
1009 (gdb_save_tty_state): ... this.
1010 * tui/tui.c: Include terminal.h.
1011 (tui_enable): Use gdb_save_tty_state instead of
1012 target_terminal_save_ours.
1013 (tui_disable): Likewise.
1014
1015 2014-08-25 Doug Evans <dje@google.com>
1016
1017 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1018 Pass NULL instead of 0 for context pointer.
1019
1020 2014-08-25 Yao Qi <yao@codesourcery.com>
1021
1022 * dwarf2read.c: Fix grammatical error.
1023
1024 2014-08-24 Yao Qi <yao@codesourcery.com>
1025
1026 * dwarf2read.c (scan_partial_symbols): Update comments.
1027 Rename argument 'need_pc' with 'set_addrmap'.
1028 (add_partial_namespace): Rename argument 'need_pc' with
1029 'set_addrmap'.
1030 (add_partial_module): Likewise.
1031 (add_partial_subprogram): Likewise. Update comments.
1032 (dwarf2_name): Fix typo.
1033
1034 2014-08-22 Doug Evans <dje@google.com>
1035
1036 PR 17276
1037 * dwarf2read.c (dwarf_record_line_p): New function.
1038 (dwarf_decode_lines_1): Ignore subsequent line number entries
1039 for the same line if any entry had a non-zero discriminator.
1040
1041 2014-08-22 Doug Evans <dje@google.com>
1042
1043 * buildsym.h (record_line_ftype): New typedef.
1044 (record_line): Use it.
1045 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1046 (dwarf_decode_lines_1): Call them.
1047
1048 2014-08-22 Yao Qi <yao@codesourcery.com>
1049
1050 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1051 (ctf_end): Remove code.
1052
1053 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1054
1055 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1056 (linux_make_corefile_notes): call update_thread_list, protected against
1057 exceptions.
1058
1059 2014-08-21 Pedro Alves <palves@redhat.com>
1060
1061 * infcmd.c (attach_command): Remove comment.
1062
1063 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1064
1065 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1066 unsigned LONGEST to ULONGEST.
1067
1068 2014-08-20 Pedro Alves <palves@redhat.com>
1069
1070 * Makefile.in (check-read1): New rule.
1071
1072 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1073
1074 * value.c (value_from_contents_and_address): Strip resolved_type's
1075 typedef layers before checking its TYPE_DATA_LOCATION.
1076
1077 2014-08-20 Pedro Alves <palves@redhat.com>
1078
1079 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1080
1081 2014-08-20 Yao Qi <yao@codesourcery.com>
1082
1083 * amd64-tdep.c (amd64_classify): Add a blank line after the
1084 example. Move "*/" to a new line.
1085 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1086 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1087 * dwarf2read.c (psymtab_include_file_name): Likewise.
1088
1089 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1090 Pedro Alves <palves@redhat.com>
1091
1092 PR symtab/14604
1093 PR symtab/14605
1094 * ada-lang.c (coerce_unspec_val_to_type): Use
1095 value_contents_copy_raw.
1096 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1097 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1098 * cp-valprint.c (cp_print_value_fields): Let the common printing
1099 code handle optimized out values.
1100 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1101 * d-valprint.c (dynamic_array_type): Use
1102 value_bits_any_optimized_out.
1103 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1104 check_any_valid fields.
1105 (check_pieced_value_bits): Delete and inline ...
1106 (check_pieced_synthetic_pointer): ... here.
1107 (check_pieced_value_validity): Delete.
1108 (check_pieced_value_invalid): Delete.
1109 (pieced_value_funcs): Remove check_validity and check_any_valid
1110 fields.
1111 (read_pieced_value): Use mark_value_bits_optimized_out.
1112 (write_pieced_value): Switch to use
1113 mark_value_bytes_optimized_out.
1114 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1115 of assuming the whole value is optimized out.
1116 * findvar.c (read_frame_register_value): Remove special handling
1117 of optimized out registers.
1118 (value_from_register): Use mark_value_bytes_optimized_out.
1119 * frame-unwind.c (frame_unwind_got_optimized): Use
1120 mark_value_bytes_optimized_out.
1121 * jv-valprint.c (java_value_print): Adjust.
1122 (java_print_value_fields): Let the common printing code handle
1123 optimized out values.
1124 * mips-tdep.c (mips_print_register): Remove special handling of
1125 optimized out registers.
1126 * opencl-lang.c (lval_func_check_validity): Delete.
1127 (lval_func_check_any_valid): Delete.
1128 (opencl_value_funcs): Remove check_validity and check_any_valid
1129 fields.
1130 * p-valprint.c (pascal_object_print_value_fields): Let the common
1131 printing code handle optimized out values.
1132 * stack.c (read_frame_arg): Remove special handling of optimized
1133 out values. Fetch both VAL and ENTRYVAL before comparing
1134 contents. Adjust to value_available_contents_eq rename.
1135 * valprint.c (valprint_check_validity)
1136 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1137 (val_print_array_elements): Adjust.
1138 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1139 (value_bits_any_optimized_out): New function.
1140 (value_entirely_covered_by_range_vector): New function, factored
1141 out from value_entirely_unavailable.
1142 (value_entirely_unavailable): Reimplement.
1143 (value_entirely_optimized_out): New function.
1144 (insert_into_bit_range_vector): New function, factored out from
1145 mark_value_bits_unavailable.
1146 (mark_value_bits_unavailable): Reimplement.
1147 (struct ranges_and_idx): New struct.
1148 (find_first_range_overlap_and_match): New function, factored out
1149 from value_available_contents_bits_eq.
1150 (value_available_contents_bits_eq): Rename to ...
1151 (value_contents_bits_eq): ... this. Check both unavailable
1152 contents and optimized out contents.
1153 (value_available_contents_eq): Rename to ...
1154 (value_contents_eq): ... this.
1155 (allocate_value_lazy): Remove reference to the old optimized_out
1156 boolean.
1157 (allocate_optimized_out_value): Use
1158 mark_value_bytes_optimized_out.
1159 (require_not_optimized_out): Adjust to check whether the
1160 optimized_out vec is empty.
1161 (ranges_copy_adjusted): New function, factored out from
1162 value_contents_copy_raw.
1163 (value_contents_copy_raw): Also copy the optimized out ranges.
1164 Assert the destination ranges aren't optimized out.
1165 (value_contents_copy): Update comment, remove call to
1166 require_not_optimized_out.
1167 (value_contents_equal): Adjust to check whether the optimized_out
1168 vec is empty.
1169 (set_value_optimized_out, value_optimized_out_const): Delete.
1170 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1171 New functions.
1172 (value_entirely_optimized_out, value_bits_valid): Delete.
1173 (value_copy): Take a VEC copy of the 'optimized_out' field.
1174 (value_primitive_field): Remove special handling of optimized out.
1175 (value_fetch_lazy): Assert that lazy values have no unavailable
1176 regions. Use value_bits_any_optimized_out. Remove some special
1177 handling for optimized out values.
1178 * value.h: Add intro comment about <optimized out> and
1179 <unavailable>.
1180 (struct lval_funcs): Remove check_validity and check_any_valid
1181 fields.
1182 (set_value_optimized_out, value_optimized_out_const): Remove.
1183 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1184 New declarations.
1185 (value_bits_any_optimized_out): New declaration.
1186 (value_bits_valid): Delete declaration.
1187 (value_available_contents_eq): Rename to ...
1188 (value_contents_eq): ... this, and extend comments.
1189
1190 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1191
1192 Fix -fsanitize=address on unreadable inferior strings.
1193 * valprint.c (val_print_string): Fix access before BUFFER.
1194
1195 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1196
1197 * target.c (target_struct_size): Remove.
1198 (target_struct_allocsize): Remove.
1199 (DEFAULT_ALLOCSIZE): Remove.
1200 (target_ops_p): New typedef.
1201 (DEF_VEC_P (target_ops_p)): New vector type.
1202 (target_structs): Change type to VEC (target_ops_p).
1203 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1204 (find_default_run_target): Rewrite for loop following changes to
1205 target_structs.
1206
1207 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1208
1209 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1210 Adjust code accordingly. Adjust function description comment.
1211
1212 2014-08-19 Yao Qi <yao@codesourcery.com>
1213
1214 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1215 types.
1216
1217 2014-08-19 Alan Modra <amodra@gmail.com>
1218
1219 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1220 * config.in: Regenerate.
1221 * configure: Regenerate.
1222
1223 2014-08-19 Tom Tromey <tromey@redhat.com>
1224 Gary Benson <gbenson@redhat.com>
1225
1226 * common/common-debug.h: New file.
1227 * common/common-debug.c: Likewise.
1228 * debug.c: Likewise.
1229 * Makefile.in (SFILES): Add common/common-debug.c.
1230 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1231 (COMMON_OBS): Add common-debug.o and debug.o.
1232 (common-debug.o): New rule.
1233 * common/common-defs.h: Include common-debug.h.
1234 * common/agent.c (debug_agent_printf): New function.
1235 (DEBUG_AGENT): Redefine.
1236 * nat/i386-dregs.c (debug_printf): Undefine.
1237
1238 2014-08-19 Gary Benson <gbenson@redhat.com>
1239
1240 * common/common-defs.h: Include print-utils.h.
1241 * utils.h: Do not include print-utils.h.
1242
1243 2014-08-19 Tom Tromey <tromey@redhat.com>
1244 Gary Benson <gbenson@redhat.com>
1245
1246 * common/common-types.h: New file.
1247 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1248 * common/common-defs.h: Include common-types.h.
1249 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1250 (ULONGEST): Remove.
1251
1252 2014-08-19 Tom Tromey <tromey@redhat.com>
1253 Gary Benson <gbenson@redhat.com>
1254
1255 * common/errors.h: New file.
1256 * common/errors.c: Likewise.
1257 * Makefile.in (SFILES): Add common/errors.c.
1258 (HFILES_NO_SRCDIR): Add common/errors.h.
1259 (COMMON_OBS): Add errors.o.
1260 (errors.o): New rule.
1261 * common/common-defs.h: Include errors.h.
1262 * utils.h (perror_with_name, error, verror, warning, vwarning):
1263 Don't declare.
1264 * common/common-utils.h: (malloc_failure, internal_error):
1265 Likewise.
1266
1267 2014-08-19 Gary Benson <gbenson@redhat.com>
1268
1269 * utils.c (internal_vproblem): Always print the message.
1270
1271 2014-08-18 Doug Evans <dje@google.com>
1272
1273 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1274
1275 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1276
1277 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1278 Return 0 if TYPE is dynamic.
1279 (print_range): Add handling of dynamic ranges.
1280
1281 2014-08-18 Keven Boell <keven.boell@intel.com>
1282 Joel Brobecker <brobecker@adacore.com>
1283
1284 * gdbtypes.h (struct main_type): Add field "data_location".
1285 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1286 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1287 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1288 a dynamic data location.
1289 (resolve_dynamic_type): Add DW_AT_data_location handling.
1290 (copy_recursive, copy_type): Copy the data_location information
1291 when present.
1292 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1293 * value.c (value_from_contents_and_address): Add
1294 DW_AT_data_location handling.
1295
1296 2014-08-18 Keven Boell <keven.boell@intel.com>
1297 Joel Brobecker <brobecker@adacore.com>
1298
1299 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1300 field "get_object_address".
1301 * dwarf2expr.c (execute_stack_op): Add handling for
1302 DW_OP_push_object_address.
1303 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1304 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1305 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1306 (dwarf_expr_get_obj_addr): New function.
1307 (dwarf_expr_ctx_funcs): Add get_object_address field.
1308 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1309 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1310 (dwarf2_evaluate_property): Add parameter "address". Use it.
1311 (needs_get_obj_addr): New function.
1312 (needs_frame_ctx_funcs): Add get_object_address field.
1313 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1314 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1315 (resolve_dynamic_array): Likewise.
1316
1317 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1318
1319 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1320 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1321 fixed value for records and unions for which some GNAT encodings
1322 are present.
1323
1324 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1325
1326 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1327 rewrite to avoid "else if" and "else" constructs. Should be
1328 a no-op in practice.
1329
1330 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1331
1332 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1333 of lexical block.
1334
1335 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1336
1337 PR c++/17132
1338 * eval.c: Update all calls to find_overload_match.
1339 * valarith.c: Likewise.
1340 (value_user_defined_cpp_op, value_user_defined_op): New
1341 argument NOSIDE. Update all callers.
1342 * valops.c (find_overload_match): New argument NOSIDE.
1343 * value.h (find_overload_match): Update signature.
1344
1345 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1346
1347 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1348 'items' methods instead of 'iteritems' method on dictionaries.
1349
1350 2014-08-15 Doug Evans <dje@google.com>
1351
1352 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1353 closer to use.
1354
1355 2014-08-15 Doug Evans <dje@google.com>
1356
1357 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1358
1359 2014-08-15 Doug Evans <dje@google.com>
1360
1361 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1362
1363 2014-08-15 Doug Evans <dje@google.com>
1364
1365 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1366 unused.
1367
1368 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1369
1370 * dcache.h: Include target.h, to avoid compile time warnings.
1371
1372 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1373
1374 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1375 frame_info" partial declaration.
1376 * gdbarch.h: Regenerate.
1377
1378 2014-08-15 Yao Qi <yao@codesourcery.com>
1379
1380 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1381 Add parameter 'decode_for_pst_p'. Callers update.
1382
1383 2014-08-13 Yao Qi <yao@codesourcery.com>
1384
1385 PR build/17104
1386 * configure.ac: Use local variable 'pos'.
1387 * configure: Regenerated.
1388
1389 2014-08-11 Doug Evans <dje@google.com>
1390
1391 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1392 message, it is redundant with "Reading symbols from ..." message.
1393
1394 2014-08-10 Doug Evans <xdje42@gmail.com>
1395
1396 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1397
1398 2014-08-09 Yao Qi <yao@codesourcery.com>
1399
1400 PR remote/9053
1401 * remote.c (remote_xfer_partial): Remove dead code.
1402
1403 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1404
1405 * ia64-linux-tdep.c: Include "regset.h".
1406 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1407 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1408 (ia64_linux_supply_fpregset): New function.
1409 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1410 (ia64_linux_regset_from_core_section): New function.
1411 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1412 method.
1413
1414 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1415
1416 * m68klinux-tdep.c: Include "regset.h".
1417 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1418 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1419 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1420 (m68k_linux_regset_from_core_section): New function.
1421 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1422 method.
1423
1424 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1425
1426 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1427 function. Move logic to...
1428 (tilegx_linux_regmap): ... this new register map.
1429 (tilegx_linux_regset): Refer to register map, replace supply
1430 method by regcache_supply_regset, and add collect method.
1431 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1432 TILEGX_FIRST_EASY_REGNUM.
1433
1434 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1435
1436 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1437 that calls regcache_supply_regset and handles the EPC register
1438 separately. Move main logic to...
1439 (score7_linux_gregmap): ... this new register map.
1440 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1441 (score7_linux_gregset): Refer to register map. Add collect method.
1442 (score7_linux_regset_from_core_section): Replace
1443 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1444 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1445 (struct regset): Delete unused forward declaraction.
1446 (struct pt_regs): Delete structure definition.
1447 (elf_gregset_t): Delete typedef.
1448
1449 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1450
1451 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1452 (nios2_core_regset): Add collect method.
1453
1454 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1455
1456 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1457 platform-independent and don't write to read-only input buffer.
1458 (m32r_linux_collect_gregset): New function.
1459 (m32r_linux_gregset): Add collect method.
1460
1461 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1462
1463 * hppa-linux-tdep.c (greg_map): Rename to...
1464 (hppa_linux_gregmap): ... this. Also convert to
1465 regcache_map_entry format.
1466 (hppa_linux_supply_regset): Delete function.
1467 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1468 (hppa_linux_fpregmap): ... this new register map.
1469 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1470 register map, replace supply method by regcache_supply_regset, and
1471 add collect method regcache_collect_regset.
1472
1473 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1474
1475 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1476 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1477 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1478 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1479 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1480 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1481 (frv_linux_supply_gregset): Replace main logic by call to
1482 regcache_supply_regset, but keep clearing gr32-gr63.
1483 (frv_linux_supply_fpregset): Delete function.
1484 (frv_linux_gregset): Refer to appropriate register map and add
1485 regcache_collect_regset as the collect method.
1486 (frv_linux_fpregset): Likewise. Also exchange the supply method
1487 by regcache_supply_regset.
1488
1489 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1490
1491 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1492 by call to alpha_supply_int_regs.
1493 (alpha_linux_collect_gregset): New function.
1494 (alpha_linux_supply_fpregset): Replace logic by call to
1495 alpha_supply_fp_regs.
1496 (alpha_linux_collect_fpregset): New function.
1497 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1498
1499 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1500
1501 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1502 by call to regcache_collect_regset.
1503 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1504 instead of aarch64_linux_supply_gregset/_fpregset.
1505 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1506 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1507 header file instead.
1508 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1509 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1510 functions. Move logic to ...
1511 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1512 register maps.
1513 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1514 refer to new register maps, replace *_regset_from_core by
1515 regcache_supply_regset, and also use regcache_collect_regset.
1516 * aarch64-linux-tdep.h: Include "regset.h".
1517 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1518 Delete prototypes.
1519 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1520 macros, moved from C source file.
1521 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1522 variable declarations.
1523
1524 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1525
1526 * s390-linux-nat.c: Include "regset.h".
1527 (regmap_gregset): Delete macro.
1528 (s390_64_regmap_gregset): New register map for
1529 regcache_supply/_collect_regset.
1530 (s390_64_gregset): New regset.
1531 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1532 (regmap_fpregset): Delete macro.
1533 (s390_native_supply, s390_native_collect): Delete functions.
1534 (supply_gregset, fill_gregset): Replace s390-specific regmap
1535 handling by a call to regcache_supply/_collect_regset.
1536 (supply_fpregset, fill_fpregset): Call regcache_supply/
1537 _collect_regset instead of s390_native_supply/_collect.
1538 (fetch_regset, store_regset): Likewise. Also change the last
1539 parameter to a regset instead of a regmap.
1540 (s390_linux_fetch_inferior_registers)
1541 (390_linux_store_inferior_registers): Adjust last parameter in
1542 calls to fetch_regset and store_regset.
1543 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1544 (s390_gregmap): ... this. Also make static const and convert to
1545 regcache_map_entry format.
1546 (s390x_regmap_gregset): Delete.
1547 (s390_regmap_fpregset): Rename to...
1548 (s390_fpregmap): ... this. Make static const and convert to
1549 regcache_map_entry format.
1550 (s390_regmap_upper, s390_regmap_last_break)
1551 (s390x_regmap_last_break, s390_regmap_system_call)
1552 (s390_regmap_tdb): Likewise.
1553 (s390_supply_regset, s390_collect_regset): Remove functions.
1554 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1555 s390_supply_regset.
1556 (s390_gregset, s390_fpregset, s390_upper_regset)
1557 (s390_last_break_regset, s390x_last_break_regset)
1558 (s390_system_call_regset, s390_tdb_regset): Make global and
1559 replace s390_supply/_collect_regset by regcache_supply/
1560 _collect_regset.
1561 (s390x_gregset): Delete.
1562 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1563 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1564 (s390_regmap_fpregset, s390_regmap_last_break)
1565 (s390x_regmap_last_break, s390_regmap_system_call)
1566 (s390_regmap_tdb): Delete global variable declarations.
1567 (s390_gregset, s390_fpregset, s390_last_break_regset)
1568 (s390x_last_break_regset, s390_system_call_regset)
1569 (s390_tdb_regset): New global variable declarations.
1570
1571 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1572
1573 * regcache.c: Include "regset.h".
1574 (regcache_transfer_regset): New local function.
1575 (regcache_supply_regset, regcache_collect_regset): New functions.
1576 * regcache.h (struct regcache_map_entry): New structure.
1577 (REGCACHE_MAP_SKIP): New enum value.
1578 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1579
1580 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1581
1582 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1583 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1584 (ppc_linux_collect_gregset ): Likewise.
1585 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1586 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1587 (ppc_collect_vrregset): Likewise.
1588 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1589 Likewise.
1590
1591 2014-08-07 Yao Qi <yao@codesourcery.com>
1592
1593 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1594 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1595 * remote.c (remote_read_bytes): Likewise.
1596
1597 2014-08-07 Yao Qi <yao@codesourcery.com>
1598
1599 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1600
1601 2014-08-07 Yao Qi <yao@codesourcery.com>
1602
1603 PR remote/17230
1604 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1605 TARGET_XFER_OK instead of 0.
1606
1607 2014-08-07 Gary Benson <gbenson@redhat.com>
1608
1609 * common/common-defs.h: Include errno.h.
1610 * defs.h: Do not include errno.h.
1611 * ada-typeprint.c: Likewise.
1612 * c-typeprint.c: Likewise.
1613 * core-regset.c: Likewise.
1614 * corefile.c: Likewise.
1615 * corelow.c: Likewise.
1616 * event-loop.c: Likewise.
1617 * f-typeprint.c: Likewise.
1618 * gnu-nat.c: Likewise.
1619 * go32-nat.c: Likewise.
1620 * i386gnu-nat.c: Likewise.
1621 * m2-typeprint.c: Likewise.
1622 * nat/linux-btrace.c: Likewise.
1623 * p-typeprint.c: Likewise.
1624 * procfs.c: Likewise.
1625 * remote-sim.c: Likewise.
1626 * rs6000-nat.c: Likewise.
1627 * target.c: Likewise.
1628 * typeprint.c: Likewise.
1629 * ui-file.c: Likewise.
1630 * valops.c: Likewise.
1631 * valprint.c: Likewise.
1632
1633 2014-08-07 Gary Benson <gbenson@redhat.com>
1634
1635 * common/common-defs.h: Include string.h.
1636 * aarch64-tdep.c: Do not include string.h.
1637 * ada-exp.y: Likewise.
1638 * ada-lang.c: Likewise.
1639 * ada-lex.l: Likewise.
1640 * ada-typeprint.c: Likewise.
1641 * ada-valprint.c: Likewise.
1642 * aix-thread.c: Likewise.
1643 * alpha-linux-tdep.c: Likewise.
1644 * alpha-mdebug-tdep.c: Likewise.
1645 * alpha-nat.c: Likewise.
1646 * alpha-osf1-tdep.c: Likewise.
1647 * alpha-tdep.c: Likewise.
1648 * alphanbsd-tdep.c: Likewise.
1649 * amd64-dicos-tdep.c: Likewise.
1650 * amd64-linux-tdep.c: Likewise.
1651 * amd64-nat.c: Likewise.
1652 * amd64-sol2-tdep.c: Likewise.
1653 * amd64fbsd-tdep.c: Likewise.
1654 * amd64obsd-tdep.c: Likewise.
1655 * arch-utils.c: Likewise.
1656 * arm-linux-nat.c: Likewise.
1657 * arm-linux-tdep.c: Likewise.
1658 * arm-tdep.c: Likewise.
1659 * arm-wince-tdep.c: Likewise.
1660 * armbsd-tdep.c: Likewise.
1661 * armnbsd-nat.c: Likewise.
1662 * armnbsd-tdep.c: Likewise.
1663 * armobsd-tdep.c: Likewise.
1664 * avr-tdep.c: Likewise.
1665 * ax-gdb.c: Likewise.
1666 * ax-general.c: Likewise.
1667 * bcache.c: Likewise.
1668 * bfin-tdep.c: Likewise.
1669 * breakpoint.c: Likewise.
1670 * build-id.c: Likewise.
1671 * buildsym.c: Likewise.
1672 * c-exp.y: Likewise.
1673 * c-lang.c: Likewise.
1674 * c-typeprint.c: Likewise.
1675 * c-valprint.c: Likewise.
1676 * charset.c: Likewise.
1677 * cli-out.c: Likewise.
1678 * cli/cli-cmds.c: Likewise.
1679 * cli/cli-decode.c: Likewise.
1680 * cli/cli-dump.c: Likewise.
1681 * cli/cli-interp.c: Likewise.
1682 * cli/cli-logging.c: Likewise.
1683 * cli/cli-script.c: Likewise.
1684 * cli/cli-setshow.c: Likewise.
1685 * cli/cli-utils.c: Likewise.
1686 * coffread.c: Likewise.
1687 * common/agent.c: Likewise.
1688 * common/buffer.c: Likewise.
1689 * common/buffer.h: Likewise.
1690 * common/common-utils.c: Likewise.
1691 * common/filestuff.c: Likewise.
1692 * common/filestuff.c: Likewise.
1693 * common/format.c: Likewise.
1694 * common/print-utils.c: Likewise.
1695 * common/rsp-low.c: Likewise.
1696 * common/signals.c: Likewise.
1697 * common/vec.h: Likewise.
1698 * common/xml-utils.c: Likewise.
1699 * core-regset.c: Likewise.
1700 * corefile.c: Likewise.
1701 * corelow.c: Likewise.
1702 * cp-abi.c: Likewise.
1703 * cp-name-parser.y: Likewise.
1704 * cp-support.c: Likewise.
1705 * cp-valprint.c: Likewise.
1706 * cris-tdep.c: Likewise.
1707 * d-exp.y: Likewise.
1708 * darwin-nat.c: Likewise.
1709 * dbxread.c: Likewise.
1710 * dcache.c: Likewise.
1711 * demangle.c: Likewise.
1712 * dicos-tdep.c: Likewise.
1713 * disasm.c: Likewise.
1714 * doublest.c: Likewise.
1715 * dsrec.c: Likewise.
1716 * dummy-frame.c: Likewise.
1717 * dwarf2-frame.c: Likewise.
1718 * dwarf2loc.c: Likewise.
1719 * dwarf2read.c: Likewise.
1720 * elfread.c: Likewise.
1721 * environ.c: Likewise.
1722 * eval.c: Likewise.
1723 * event-loop.c: Likewise.
1724 * exceptions.c: Likewise.
1725 * exec.c: Likewise.
1726 * expprint.c: Likewise.
1727 * f-exp.y: Likewise.
1728 * f-lang.c: Likewise.
1729 * f-typeprint.c: Likewise.
1730 * f-valprint.c: Likewise.
1731 * fbsd-nat.c: Likewise.
1732 * findcmd.c: Likewise.
1733 * findvar.c: Likewise.
1734 * fork-child.c: Likewise.
1735 * frame.c: Likewise.
1736 * frv-linux-tdep.c: Likewise.
1737 * frv-tdep.c: Likewise.
1738 * gdb.c: Likewise.
1739 * gdb_bfd.c: Likewise.
1740 * gdbarch.c: Likewise.
1741 * gdbarch.sh: Likewise.
1742 * gdbtypes.c: Likewise.
1743 * gnu-nat.c: Likewise.
1744 * gnu-v2-abi.c: Likewise.
1745 * gnu-v3-abi.c: Likewise.
1746 * go-exp.y: Likewise.
1747 * go-lang.c: Likewise.
1748 * go32-nat.c: Likewise.
1749 * guile/guile.c: Likewise.
1750 * guile/scm-auto-load.c: Likewise.
1751 * hppa-hpux-tdep.c: Likewise.
1752 * hppa-linux-nat.c: Likewise.
1753 * hppanbsd-tdep.c: Likewise.
1754 * hppaobsd-tdep.c: Likewise.
1755 * i386-cygwin-tdep.c: Likewise.
1756 * i386-dicos-tdep.c: Likewise.
1757 * i386-linux-tdep.c: Likewise.
1758 * i386-nto-tdep.c: Likewise.
1759 * i386-sol2-tdep.c: Likewise.
1760 * i386-tdep.c: Likewise.
1761 * i386bsd-tdep.c: Likewise.
1762 * i386gnu-nat.c: Likewise.
1763 * i386nbsd-tdep.c: Likewise.
1764 * i386obsd-tdep.c: Likewise.
1765 * i387-tdep.c: Likewise.
1766 * ia64-libunwind-tdep.c: Likewise.
1767 * ia64-linux-nat.c: Likewise.
1768 * inf-child.c: Likewise.
1769 * inf-ptrace.c: Likewise.
1770 * inf-ttrace.c: Likewise.
1771 * infcall.c: Likewise.
1772 * infcmd.c: Likewise.
1773 * inflow.c: Likewise.
1774 * infrun.c: Likewise.
1775 * interps.c: Likewise.
1776 * iq2000-tdep.c: Likewise.
1777 * irix5-nat.c: Likewise.
1778 * jv-exp.y: Likewise.
1779 * jv-lang.c: Likewise.
1780 * jv-typeprint.c: Likewise.
1781 * jv-valprint.c: Likewise.
1782 * language.c: Likewise.
1783 * linux-fork.c: Likewise.
1784 * linux-nat.c: Likewise.
1785 * lm32-tdep.c: Likewise.
1786 * m2-exp.y: Likewise.
1787 * m2-typeprint.c: Likewise.
1788 * m32c-tdep.c: Likewise.
1789 * m32r-linux-nat.c: Likewise.
1790 * m32r-linux-tdep.c: Likewise.
1791 * m32r-rom.c: Likewise.
1792 * m32r-tdep.c: Likewise.
1793 * m68hc11-tdep.c: Likewise.
1794 * m68k-tdep.c: Likewise.
1795 * m68kbsd-tdep.c: Likewise.
1796 * m68klinux-nat.c: Likewise.
1797 * m68klinux-tdep.c: Likewise.
1798 * m88k-tdep.c: Likewise.
1799 * machoread.c: Likewise.
1800 * macrocmd.c: Likewise.
1801 * main.c: Likewise.
1802 * mdebugread.c: Likewise.
1803 * mem-break.c: Likewise.
1804 * memattr.c: Likewise.
1805 * memory-map.c: Likewise.
1806 * mep-tdep.c: Likewise.
1807 * mi/mi-cmd-break.c: Likewise.
1808 * mi/mi-cmd-disas.c: Likewise.
1809 * mi/mi-cmd-env.c: Likewise.
1810 * mi/mi-cmd-stack.c: Likewise.
1811 * mi/mi-cmd-var.c: Likewise.
1812 * mi/mi-cmds.c: Likewise.
1813 * mi/mi-console.c: Likewise.
1814 * mi/mi-getopt.c: Likewise.
1815 * mi/mi-interp.c: Likewise.
1816 * mi/mi-main.c: Likewise.
1817 * mi/mi-parse.c: Likewise.
1818 * microblaze-rom.c: Likewise.
1819 * microblaze-tdep.c: Likewise.
1820 * mingw-hdep.c: Likewise.
1821 * minidebug.c: Likewise.
1822 * minsyms.c: Likewise.
1823 * mips-irix-tdep.c: Likewise.
1824 * mips-linux-tdep.c: Likewise.
1825 * mips-tdep.c: Likewise.
1826 * mips64obsd-tdep.c: Likewise.
1827 * mipsnbsd-tdep.c: Likewise.
1828 * mipsread.c: Likewise.
1829 * mn10300-linux-tdep.c: Likewise.
1830 * mn10300-tdep.c: Likewise.
1831 * monitor.c: Likewise.
1832 * moxie-tdep.c: Likewise.
1833 * mt-tdep.c: Likewise.
1834 * nat/linux-btrace.c: Likewise.
1835 * nat/linux-osdata.c: Likewise.
1836 * nat/linux-procfs.c: Likewise.
1837 * nat/linux-ptrace.c: Likewise.
1838 * nat/linux-waitpid.c: Likewise.
1839 * nbsd-tdep.c: Likewise.
1840 * nios2-linux-tdep.c: Likewise.
1841 * nto-procfs.c: Likewise.
1842 * nto-tdep.c: Likewise.
1843 * objc-lang.c: Likewise.
1844 * objfiles.c: Likewise.
1845 * opencl-lang.c: Likewise.
1846 * osabi.c: Likewise.
1847 * osdata.c: Likewise.
1848 * p-exp.y: Likewise.
1849 * p-lang.c: Likewise.
1850 * p-typeprint.c: Likewise.
1851 * parse.c: Likewise.
1852 * posix-hdep.c: Likewise.
1853 * ppc-linux-nat.c: Likewise.
1854 * ppc-sysv-tdep.c: Likewise.
1855 * ppcfbsd-tdep.c: Likewise.
1856 * ppcnbsd-tdep.c: Likewise.
1857 * ppcobsd-tdep.c: Likewise.
1858 * printcmd.c: Likewise.
1859 * procfs.c: Likewise.
1860 * prologue-value.c: Likewise.
1861 * python/py-auto-load.c: Likewise.
1862 * python/py-gdb-readline.c: Likewise.
1863 * ravenscar-thread.c: Likewise.
1864 * regcache.c: Likewise.
1865 * registry.c: Likewise.
1866 * remote-fileio.c: Likewise.
1867 * remote-m32r-sdi.c: Likewise.
1868 * remote-mips.c: Likewise.
1869 * remote-notif.c: Likewise.
1870 * remote-sim.c: Likewise.
1871 * remote.c: Likewise.
1872 * reverse.c: Likewise.
1873 * rs6000-aix-tdep.c: Likewise.
1874 * ser-base.c: Likewise.
1875 * ser-go32.c: Likewise.
1876 * ser-mingw.c: Likewise.
1877 * ser-pipe.c: Likewise.
1878 * ser-tcp.c: Likewise.
1879 * ser-unix.c: Likewise.
1880 * serial.c: Likewise.
1881 * sh-tdep.c: Likewise.
1882 * sh64-tdep.c: Likewise.
1883 * shnbsd-tdep.c: Likewise.
1884 * skip.c: Likewise.
1885 * sol-thread.c: Likewise.
1886 * solib-dsbt.c: Likewise.
1887 * solib-frv.c: Likewise.
1888 * solib-osf.c: Likewise.
1889 * solib-som.c: Likewise.
1890 * solib-spu.c: Likewise.
1891 * solib-target.c: Likewise.
1892 * solib.c: Likewise.
1893 * somread.c: Likewise.
1894 * source.c: Likewise.
1895 * sparc-nat.c: Likewise.
1896 * sparc-sol2-tdep.c: Likewise.
1897 * sparc-tdep.c: Likewise.
1898 * sparc64-tdep.c: Likewise.
1899 * sparc64fbsd-tdep.c: Likewise.
1900 * sparc64nbsd-tdep.c: Likewise.
1901 * sparcnbsd-tdep.c: Likewise.
1902 * spu-linux-nat.c: Likewise.
1903 * spu-multiarch.c: Likewise.
1904 * spu-tdep.c: Likewise.
1905 * stabsread.c: Likewise.
1906 * stack.c: Likewise.
1907 * std-regs.c: Likewise.
1908 * symfile.c: Likewise.
1909 * symmisc.c: Likewise.
1910 * symtab.c: Likewise.
1911 * target.c: Likewise.
1912 * thread.c: Likewise.
1913 * tilegx-linux-nat.c: Likewise.
1914 * tilegx-tdep.c: Likewise.
1915 * top.c: Likewise.
1916 * tracepoint.c: Likewise.
1917 * tui/tui-command.c: Likewise.
1918 * tui/tui-data.c: Likewise.
1919 * tui/tui-disasm.c: Likewise.
1920 * tui/tui-file.c: Likewise.
1921 * tui/tui-layout.c: Likewise.
1922 * tui/tui-out.c: Likewise.
1923 * tui/tui-regs.c: Likewise.
1924 * tui/tui-source.c: Likewise.
1925 * tui/tui-stack.c: Likewise.
1926 * tui/tui-win.c: Likewise.
1927 * tui/tui-windata.c: Likewise.
1928 * tui/tui-winsource.c: Likewise.
1929 * typeprint.c: Likewise.
1930 * ui-file.c: Likewise.
1931 * ui-out.c: Likewise.
1932 * user-regs.c: Likewise.
1933 * utils.c: Likewise.
1934 * v850-tdep.c: Likewise.
1935 * valarith.c: Likewise.
1936 * valops.c: Likewise.
1937 * valprint.c: Likewise.
1938 * value.c: Likewise.
1939 * varobj.c: Likewise.
1940 * vax-tdep.c: Likewise.
1941 * vaxnbsd-tdep.c: Likewise.
1942 * vaxobsd-tdep.c: Likewise.
1943 * windows-nat.c: Likewise.
1944 * xcoffread.c: Likewise.
1945 * xml-support.c: Likewise.
1946 * xstormy16-tdep.c: Likewise.
1947 * xtensa-linux-nat.c: Likewise.
1948
1949 2014-08-07 Gary Benson <gbenson@redhat.com>
1950
1951 * common/common-defs.h: Include gdb_assert.h.
1952 * aarch64-tdep.c: Do not include gdb_assert.h.
1953 * addrmap.c: Likewise.
1954 * aix-thread.c: Likewise.
1955 * alpha-linux-tdep.c: Likewise.
1956 * alpha-mdebug-tdep.c: Likewise.
1957 * alphanbsd-tdep.c: Likewise.
1958 * amd64-nat.c: Likewise.
1959 * amd64-tdep.c: Likewise.
1960 * amd64bsd-nat.c: Likewise.
1961 * amd64fbsd-nat.c: Likewise.
1962 * amd64fbsd-tdep.c: Likewise.
1963 * amd64nbsd-nat.c: Likewise.
1964 * amd64nbsd-tdep.c: Likewise.
1965 * amd64obsd-nat.c: Likewise.
1966 * amd64obsd-tdep.c: Likewise.
1967 * arch-utils.c: Likewise.
1968 * arm-tdep.c: Likewise.
1969 * armbsd-tdep.c: Likewise.
1970 * auxv.c: Likewise.
1971 * bcache.c: Likewise.
1972 * bfin-tdep.c: Likewise.
1973 * blockframe.c: Likewise.
1974 * breakpoint.c: Likewise.
1975 * bsd-kvm.c: Likewise.
1976 * bsd-uthread.c: Likewise.
1977 * buildsym.c: Likewise.
1978 * c-exp.y: Likewise.
1979 * c-lang.c: Likewise.
1980 * charset.c: Likewise.
1981 * cleanups.c: Likewise.
1982 * cli-out.c: Likewise.
1983 * cli/cli-decode.c: Likewise.
1984 * cli/cli-dump.c: Likewise.
1985 * cli/cli-logging.c: Likewise.
1986 * cli/cli-script.c: Likewise.
1987 * cli/cli-utils.c: Likewise.
1988 * coffread.c: Likewise.
1989 * common/common-utils.c: Likewise.
1990 * common/queue.h: Likewise.
1991 * common/signals.c: Likewise.
1992 * common/vec.h: Likewise.
1993 * complaints.c: Likewise.
1994 * completer.c: Likewise.
1995 * corelow.c: Likewise.
1996 * cp-abi.c: Likewise.
1997 * cp-name-parser.y: Likewise.
1998 * cp-namespace.c: Likewise.
1999 * cp-support.c: Likewise.
2000 * cris-tdep.c: Likewise.
2001 * dbxread.c: Likewise.
2002 * dictionary.c: Likewise.
2003 * doublest.c: Likewise.
2004 * dsrec.c: Likewise.
2005 * dummy-frame.c: Likewise.
2006 * dwarf2-frame-tailcall.c: Likewise.
2007 * dwarf2-frame.c: Likewise.
2008 * dwarf2expr.c: Likewise.
2009 * dwarf2loc.c: Likewise.
2010 * dwarf2read.c: Likewise.
2011 * eval.c: Likewise.
2012 * event-loop.c: Likewise.
2013 * exceptions.c: Likewise.
2014 * expprint.c: Likewise.
2015 * f-valprint.c: Likewise.
2016 * fbsd-nat.c: Likewise.
2017 * findvar.c: Likewise.
2018 * frame-unwind.c: Likewise.
2019 * frame.c: Likewise.
2020 * frv-tdep.c: Likewise.
2021 * gcore.c: Likewise.
2022 * gdb-dlfcn.c: Likewise.
2023 * gdb_bfd.c: Likewise.
2024 * gdbarch.c: Likewise.
2025 * gdbarch.sh: Likewise.
2026 * gdbtypes.c: Likewise.
2027 * gnu-nat.c: Likewise.
2028 * gnu-v3-abi.c: Likewise.
2029 * go-lang.c: Likewise.
2030 * guile/scm-exception.c: Likewise.
2031 * guile/scm-gsmob.c: Likewise.
2032 * guile/scm-lazy-string.c: Likewise.
2033 * guile/scm-math.c: Likewise.
2034 * guile/scm-pretty-print.c: Likewise.
2035 * guile/scm-safe-call.c: Likewise.
2036 * guile/scm-utils.c: Likewise.
2037 * guile/scm-value.c: Likewise.
2038 * h8300-tdep.c: Likewise.
2039 * hppa-hpux-nat.c: Likewise.
2040 * hppa-tdep.c: Likewise.
2041 * hppanbsd-tdep.c: Likewise.
2042 * hppaobsd-tdep.c: Likewise.
2043 * i386-darwin-nat.c: Likewise.
2044 * i386-darwin-tdep.c: Likewise.
2045 * i386-nto-tdep.c: Likewise.
2046 * i386-tdep.c: Likewise.
2047 * i386bsd-nat.c: Likewise.
2048 * i386fbsd-tdep.c: Likewise.
2049 * i386gnu-nat.c: Likewise.
2050 * i386nbsd-tdep.c: Likewise.
2051 * i386obsd-tdep.c: Likewise.
2052 * i387-tdep.c: Likewise.
2053 * ia64-libunwind-tdep.c: Likewise.
2054 * ia64-tdep.c: Likewise.
2055 * inf-ptrace.c: Likewise.
2056 * inf-ttrace.c: Likewise.
2057 * infcall.c: Likewise.
2058 * infcmd.c: Likewise.
2059 * infrun.c: Likewise.
2060 * inline-frame.c: Likewise.
2061 * interps.c: Likewise.
2062 * jv-lang.c: Likewise.
2063 * jv-typeprint.c: Likewise.
2064 * linux-fork.c: Likewise.
2065 * linux-nat.c: Likewise.
2066 * linux-thread-db.c: Likewise.
2067 * m32c-tdep.c: Likewise.
2068 * m32r-linux-nat.c: Likewise.
2069 * m32r-tdep.c: Likewise.
2070 * m68k-tdep.c: Likewise.
2071 * m68kbsd-nat.c: Likewise.
2072 * m68kbsd-tdep.c: Likewise.
2073 * m88k-tdep.c: Likewise.
2074 * machoread.c: Likewise.
2075 * macroexp.c: Likewise.
2076 * macrotab.c: Likewise.
2077 * maint.c: Likewise.
2078 * mdebugread.c: Likewise.
2079 * memory-map.c: Likewise.
2080 * mep-tdep.c: Likewise.
2081 * mi/mi-common.c: Likewise.
2082 * microblaze-tdep.c: Likewise.
2083 * mingw-hdep.c: Likewise.
2084 * mips-linux-nat.c: Likewise.
2085 * mips-linux-tdep.c: Likewise.
2086 * mips-tdep.c: Likewise.
2087 * mips64obsd-tdep.c: Likewise.
2088 * mipsnbsd-tdep.c: Likewise.
2089 * mn10300-linux-tdep.c: Likewise.
2090 * mn10300-tdep.c: Likewise.
2091 * moxie-tdep.c: Likewise.
2092 * mt-tdep.c: Likewise.
2093 * nat/linux-btrace.c: Likewise.
2094 * nat/linux-osdata.c: Likewise.
2095 * nat/linux-ptrace.c: Likewise.
2096 * nat/mips-linux-watch.c: Likewise.
2097 * nios2-linux-tdep.c: Likewise.
2098 * nios2-tdep.c: Likewise.
2099 * objc-lang.c: Likewise.
2100 * objfiles.c: Likewise.
2101 * obsd-nat.c: Likewise.
2102 * opencl-lang.c: Likewise.
2103 * osabi.c: Likewise.
2104 * parse.c: Likewise.
2105 * ppc-linux-nat.c: Likewise.
2106 * ppc-sysv-tdep.c: Likewise.
2107 * ppcfbsd-nat.c: Likewise.
2108 * ppcfbsd-tdep.c: Likewise.
2109 * ppcnbsd-nat.c: Likewise.
2110 * ppcnbsd-tdep.c: Likewise.
2111 * ppcobsd-nat.c: Likewise.
2112 * ppcobsd-tdep.c: Likewise.
2113 * printcmd.c: Likewise.
2114 * procfs.c: Likewise.
2115 * prologue-value.c: Likewise.
2116 * psymtab.c: Likewise.
2117 * python/py-lazy-string.c: Likewise.
2118 * python/py-value.c: Likewise.
2119 * regcache.c: Likewise.
2120 * reggroups.c: Likewise.
2121 * registry.c: Likewise.
2122 * remote-sim.c: Likewise.
2123 * remote.c: Likewise.
2124 * rs6000-aix-tdep.c: Likewise.
2125 * rs6000-tdep.c: Likewise.
2126 * s390-linux-tdep.c: Likewise.
2127 * score-tdep.c: Likewise.
2128 * ser-base.c: Likewise.
2129 * ser-mingw.c: Likewise.
2130 * sh-tdep.c: Likewise.
2131 * sh64-tdep.c: Likewise.
2132 * solib-darwin.c: Likewise.
2133 * solib-spu.c: Likewise.
2134 * solib-svr4.c: Likewise.
2135 * source.c: Likewise.
2136 * sparc-nat.c: Likewise.
2137 * sparc-sol2-tdep.c: Likewise.
2138 * sparc-tdep.c: Likewise.
2139 * sparc64-sol2-tdep.c: Likewise.
2140 * sparc64-tdep.c: Likewise.
2141 * sparc64fbsd-tdep.c: Likewise.
2142 * sparc64nbsd-tdep.c: Likewise.
2143 * sparc64obsd-tdep.c: Likewise.
2144 * sparcnbsd-tdep.c: Likewise.
2145 * sparcobsd-tdep.c: Likewise.
2146 * spu-multiarch.c: Likewise.
2147 * spu-tdep.c: Likewise.
2148 * stabsread.c: Likewise.
2149 * stack.c: Likewise.
2150 * symfile.c: Likewise.
2151 * symtab.c: Likewise.
2152 * target-descriptions.c: Likewise.
2153 * target-memory.c: Likewise.
2154 * target.c: Likewise.
2155 * tic6x-linux-tdep.c: Likewise.
2156 * tic6x-tdep.c: Likewise.
2157 * tilegx-linux-nat.c: Likewise.
2158 * tilegx-tdep.c: Likewise.
2159 * top.c: Likewise.
2160 * tramp-frame.c: Likewise.
2161 * tui/tui-out.c: Likewise.
2162 * tui/tui-winsource.c: Likewise.
2163 * ui-out.c: Likewise.
2164 * user-regs.c: Likewise.
2165 * utils.c: Likewise.
2166 * v850-tdep.c: Likewise.
2167 * valops.c: Likewise.
2168 * value.c: Likewise.
2169 * varobj.c: Likewise.
2170 * vax-nat.c: Likewise.
2171 * xml-syscall.c: Likewise.
2172 * xml-tdesc.c: Likewise.
2173 * xstormy16-tdep.c: Likewise.
2174 * xtensa-linux-nat.c: Likewise.
2175 * xtensa-tdep.c: Likewise.
2176
2177 2014-08-07 Gary Benson <gbenson@redhat.com>
2178
2179 * common/common-defs.h: Include common-utils.h.
2180 * defs.h: Do not include common-utils.h.
2181 * common/gdb_assert.h: Likewise.
2182 * darwin-nat.h: Likewise.
2183 * nat/linux-btrace.c: Likewise.
2184 * target/waitstatus.h: Likewise.
2185
2186 2014-08-07 Gary Benson <gbenson@redhat.com>
2187
2188 * common/common-defs.h: Include ptid.h.
2189 * defs.h: Do not include ptid.h.
2190 * inferior.h: Likewise.
2191 * infrun.h: Likewise.
2192 * nat/linux-btrace.h: Likewise.
2193 * nat/linux-osdata.h: Likewise.
2194 * target/waitstatus.h: Likewise.
2195
2196 2014-08-07 Gary Benson <gbenson@redhat.com>
2197
2198 * common/common-defs.h: Include gdb_locale.h.
2199 * defs.h: Do not include gdb_locale.h.
2200
2201 2014-08-07 Gary Benson <gbenson@redhat.com>
2202
2203 * common/common-defs.h: Include gdb/signals.h.
2204 * defs.h: Do not include gdb/signals.h.
2205
2206 2014-08-07 Gary Benson <gbenson@redhat.com>
2207
2208 * common/common-defs.h: Include pathmax.h.
2209 * defs.h: Do not include pathmax.h.
2210
2211 2014-08-07 Gary Benson <gbenson@redhat.com>
2212
2213 * common/common-defs.h: Include libiberty.h.
2214 * defs.h: Do not include libiberty.h.
2215 * common/queue.h: Likewise.
2216 * cp-name-parser.y: Likewise.
2217 * mi/mi-cmd-catch.c: Likewise.
2218 * python/python.c: Likewise.
2219
2220 2014-08-07 Gary Benson <gbenson@redhat.com>
2221
2222 * common/common-defs.h: Include ansidecl.h.
2223 * defs.h: Do not include ansidecl.h.
2224 * common/buffer.h: Likewise.
2225 * common/common-utils.h: Likewise.
2226
2227 2014-08-07 Gary Benson <gbenson@redhat.com>
2228
2229 * common/common-defs.h: Include stddef.h.
2230 * defs.h: Do not include stddef.h.
2231 * common/common-utils.h: Likewise.
2232 * amd64fbsd-nat.c: Likewise.
2233 * bcache.c: Likewise.
2234 * charset.c: Likewise.
2235 * common/buffer.h: Likewise.
2236 * common/vec.h: Likewise.
2237 * i386bsd-nat.c: Likewise.
2238 * nat/linux-btrace.h: Likewise.
2239 * ppcfbsd-nat.c: Likewise.
2240 * ppcnbsd-tdep.h: Likewise.
2241 * ppcobsd-nat.c: Likewise.
2242 * ppcobsd-tdep.h: Likewise.
2243 * python/py-gdb-readline.c: Likewise.
2244
2245 2014-08-07 Gary Benson <gbenson@redhat.com>
2246
2247 * common/common-defs.h: Include stdarg.h.
2248 * defs.h: Do not include stdarg.h.
2249 * ada-lang.c: Likewise.
2250 * common/common-utils.h: Likewise.
2251 * guile/scm-string.c: Likewise.
2252 * guile/scm-utils.c: Likewise.
2253 * m32c-tdep.c: Likewise.
2254
2255 2014-08-07 Gary Benson <gbenson@redhat.com>
2256
2257 * common/common-defs.h: Include stdlib.h.
2258 * defs.h: Do not include stdlib.h.
2259 * addrmap.c: Likewise.
2260 * bcache.c: Likewise.
2261 * common/buffer.c: Likewise.
2262 * common/common-utils.c: Likewise.
2263 * cp-name-parser.y: Likewise.
2264 * go32-nat.c: Likewise.
2265 * mn10300-linux-tdep.c: Likewise.
2266 * nat/linux-osdata.c: Likewise.
2267 * tui/tui.c: Likewise.
2268 * windows-nat.c: Likewise.
2269
2270 2014-08-07 Gary Benson <gbenson@redhat.com>
2271
2272 * common/common-defs.h: Include stdio.h.
2273 * defs.h: Do not include stdio.h.
2274 * ada-lang.c: Likewise.
2275 * common/buffer.c: Likewise.
2276 * common/common-utils.c: Likewise.
2277 * cp-name-parser.y: Likewise.
2278 * gnu-nat.c: Likewise.
2279 * go32-nat.c: Likewise.
2280 * i386gnu-nat.c: Likewise.
2281 * proc-api.c: Likewise.
2282 * proc-events.c: Likewise.
2283 * proc-flags.c: Likewise.
2284 * proc-why.c: Likewise.
2285 * python/python-internal.h: Likewise.
2286 * target-memory.c: Likewise.
2287 * tui/tui-io.c: Likewise.
2288 * tui/tui.c: Likewise.
2289
2290 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2291
2292 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2293 (scan_dyntag_auxv): Same.
2294
2295 2014-08-06 Yao Qi <yao@codesourcery.com>
2296
2297 * amd64-linux-nat.c: Remove duplicated include
2298 "x86-linux-nat.h".
2299 * i386-linux-nat.c: Likewise.
2300
2301 2014-08-06 Yao Qi <yao@codesourcery.com>
2302
2303 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2304 operand" with "Special opcode" in comments.
2305
2306 2014-08-05 Gary Benson <gbenson@redhat.com>
2307
2308 * interps.c (initialize_interps): Remove prototype.
2309 (interpreter_initialized): Remove static global.
2310 (interp_add): Do not call initialize_interps.
2311 (initialize_interps): Remove function.
2312
2313 2014-08-05 Gary Benson <gbenson@redhat.com>
2314
2315 * utils.c (vwarning): Remove spurious va_end.
2316
2317 2014-08-05 Alan Modra <amodra@gmail.com>
2318
2319 * charset.c (convert_between_encodings): Cast result of obstack_base.
2320 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2321 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2322 (read_unwind_info): Use size_t for some locals.
2323 * jit.c (finalize_symtab): Likewise.
2324 * utils.c (hashtab_obstack_allocate): Likewise.
2325 * symmisc.c (print_objfile_statistics): Update format strings.
2326
2327 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2328
2329 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2330 (Changes in GDB 7.8): ... here.
2331
2332 2014-08-04 Tom Tromey <tromey@redhat.com>
2333
2334 * target.c (set_targetdebug): New function.
2335 (initialize_targets): Pass set_targetdebug when creating "set
2336 debug target".
2337
2338 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2339
2340 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2341 if detecting a variable-sized field that is not the last field.
2342 Fix struct type length computation.
2343
2344 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2345
2346 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2347 Add debug trace.
2348
2349 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2350
2351 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2352 Remove "+ 8" offset in computation of CHAIN_VMA.
2353
2354 2014-07-31 Doug Evans <dje@google.com>
2355
2356 * inflow.c (child_terminal_inferior): Add comment.
2357 (child_terminal_ours_for_output): Add comment.
2358 (child_terminal_ours): Add comment.
2359 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2360 (linux_nat_terminal_ours): Add comment.
2361
2362 2014-07-31 Gary Benson <gbenson@redhat.com>
2363
2364 * common/btrace-common.h: Do not include defs.h or server.h.
2365 * nat/mips-linux-watch.h: Likewise.
2366 * gdb-dlfcn.h: Do not include defs.h.
2367 * tracefile.h: Likewise.
2368
2369 2014-07-30 Roland McGrath <mcgrathr@google.com>
2370
2371 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2372
2373 2014-07-30 Tom Tromey <tromey@redhat.com>
2374
2375 * bsd-kvm.c (bsd_kvm_open): Constify.
2376 * corelow.c (core_open): Constify.
2377 * ctf.c (ctf_open): Constify.
2378 * dbug-rom.c (dbug_open): Constify.
2379 * exec.c (exec_open): Constify.
2380 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2381 * microblaze-rom.c (picobug_open): Constify.
2382 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2383 Constify.
2384 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2385 * record-btrace.c (record_btrace_open): Constify.
2386 * record-full.c (record_full_core_open_1, record_full_open_1)
2387 (record_full_open): Constify.
2388 * remote-m32r-sdi.c (m32r_open): Constify.
2389 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2390 (rockhopper_open, lsi_open): Constify.
2391 * remote-sim.c (gdbsim_open): Constify.
2392 * remote.c (remote_open, extended_remote_open, remote_open_1):
2393 Constify.
2394 * target.h (struct target_ops) <to_open>: Make "arg" const.
2395 * tracefile-tfile.c (tfile_open): Constify.
2396
2397 2014-07-30 Tom Tromey <tromey@redhat.com>
2398
2399 * breakpoint.c (map_breakpoint_numbers): Update.
2400 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2401 (get_number_const): New function.
2402 (get_number): Rewrite using get_number_const.
2403 (init_number_or_range): Make "string" const.
2404 (number_is_in_list): Make "list" const.
2405 * cli/cli-utils.h (get_number_const): Declare.
2406 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2407 (init_number_or_range, number_is_in_list): Update.
2408 * printcmd.c (map_display_numbers): Update.
2409 * value.c (value_from_history_ref): Constify.
2410 * value.h (value_from_history_ref): Update.
2411
2412 2014-07-30 Tom Tromey <tromey@redhat.com>
2413
2414 * corefile.c (hook_type, call_extra_exec_file_hooks)
2415 (specify_exec_file_hook): Constify.
2416 * exec.c (exec_file_attach): Make "filename" const.
2417 * gdbcore.h (deprecated_exec_file_display_hook)
2418 (specify_exec_file_hook, exec_file_attach): Constify.
2419 * main.c (captured_main): Use catch_command_errors_const.
2420
2421 2014-07-30 Tom Tromey <tromey@redhat.com>
2422
2423 * target.c (open_target): New function.
2424 (add_target_with_completer, add_deprecated_target_alias): Use
2425 set_cmd_sfunc, set_cmd_context.
2426 (debug_to_open): Remove.
2427 (setup_target_debug): Update.
2428
2429 2014-07-30 Yao Qi <yao@codesourcery.com>
2430
2431 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2432 comments.
2433 * parse.c (exp_iterate): Update comments.
2434
2435 2014-07-30 Gary Benson <gbenson@redhat.com>
2436
2437 * common/common-defs.h: New file.
2438 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2439 * defs.h: Include common-defs.h.
2440 Do not include config.h or build-gnulib/config.h.
2441
2442 2014-07-30 Gary Benson <gbenson@redhat.com>
2443
2444 * common/common-utils.h: Do not include config.h.
2445 * nat/linux-btrace.h: Likewise.
2446
2447 2014-07-30 Gary Benson <gbenson@redhat.com>
2448
2449 * btrace.c: Include defs.h.
2450 * common/ptid.c: Include defs.h or server.h as appropriate.
2451 * nat/mips-linux-watch.c: Likewise.
2452
2453 2014-07-29 Tom Tromey <tromey@redhat.com>
2454
2455 * target.c (target_is_pushed): Simplify.
2456
2457 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2458
2459 GDB 7.8 released.
2460
2461 2014-07-29 Yao Qi <yao@codesourcery.com>
2462
2463 PR gdb/17206
2464 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2465
2466 2014-07-28 Doug Evans <xdje42@gmail.com>
2467
2468 PR guile/17203
2469 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2470 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2471 parameters.
2472
2473 2014-07-28 Will Newton <will.newton@linaro.org>
2474
2475 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2476 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2477 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2478 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2479 (THUMB2_EABI_SYSCALL): Likewise.
2480 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2481 struct tramp_frame.
2482 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2483 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2484
2485 2014-07-27 Doug Evans <xdje42@gmail.com>
2486
2487 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2488
2489 2014-07-27 Doug Evans <xdje42@gmail.com>
2490
2491 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2492
2493 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2494 Doug Evans <xdje42@gmail.com>
2495
2496 PR guile/17146
2497 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2498 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2499 * configure.ac: Try to use guild to compile an scm file, if it fails
2500 then disable guile support.
2501 * configure: Regenerate.
2502 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2503 GUILE_FILE_LIST.
2504 (GUILE_COMPILED_FILES): New variable.
2505 (GUILE_FILES) Update.
2506 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2507 (stamp-guile): Compile scm files.
2508 * guile/guile.c (boot_guile_support): New function.
2509 (standard_throw_args_p): New function.
2510 (print_standard_throw_error, print_throw_error): New functions.
2511 (handle_boot_error): New function.
2512 (initialize_scheme_side): Rewrite to call boot_guile_support.
2513 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2514 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2515
2516 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2517 Doug Evans <xdje42@gmail.com>
2518
2519 PR guile/17146
2520 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2521 * guile/lib/gdb/support.scm: New file.
2522 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2523 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2524 All uses updated.
2525 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2526 All uses updated.
2527 (%assert-type): Ditto, and renamed to assert-type.
2528 (%exception-print-style): Delete.
2529
2530 2014-07-26 Doug Evans <xdje42@gmail.com>
2531
2532 PR build/17105
2533 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2534 * configure: Regenerate.
2535 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2536 PYTHON_FILES.
2537 (PYTHON_FILES): New variable.
2538 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2539 (GUILE_FILES): New variable.
2540 (stamp-python, install-python, uninstall-python): Handle empty
2541 file list.
2542 (stamp-guile, install-guile, uninstall-guile): Ditto.
2543
2544 2014-07-26 Doug Evans <xdje42@gmail.com>
2545
2546 PR guile/17177
2547 * guile/lib/gdb.scm (pretty-printers): Export.
2548 (set-pretty-printers!): Export.
2549 * guile/lib/gdb/printing.scm (gdb module): Update.
2550 (prepend-pretty-printer!, append-pretty-printer!): Update.
2551 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2552 (pretty_printer_list_var): Delete.
2553 (pretty_printer_list): New static global.
2554 (gdbscm_pretty_printers): New function.
2555 (gdbscm_set_pretty_printers_x): New function.
2556 (ppscm_find_pretty_printer_from_gdb): Update.
2557 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2558 (gdbscm_initialize_pretty_printers): Update.
2559
2560 2014-07-26 Doug Evans <xdje42@gmail.com>
2561
2562 PR 17185
2563 * configure.ac: Add check for header gc/gc.h.
2564 Add check for function setenv.
2565 * configure: Regenerate.
2566 * config.in: Regenerate.
2567 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2568
2569 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2570
2571 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2572 variation in gdbarch matching.
2573
2574 2014-07-25 Tom Tromey <tromey@redhat.com>
2575
2576 * exec.c (using_exec_ops): Remove.
2577 (exec_close_1): Update. Remove extraneous block, reindent.
2578 (add_target_sections): Use target_is_pushed.
2579
2580 2014-07-25 Pedro Alves <palves@redhat.com>
2581
2582 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2583 * monitor.c (monitor_create_inferior): Likewise.
2584 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2585 * remote-sim.c (gdbsim_create_inferior): Likewise.
2586 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2587 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2588 * windows-nat.c (do_initial_windows_stuff): Likewise.
2589
2590 2014-07-25 Pedro Alves <palves@redhat.com>
2591
2592 * NEWS: Mention signal passing and "signal" command changes.
2593 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2594 comment.
2595 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2596 call.
2597 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2598 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2599 (jump_command): Adjust clear_proceed_status call.
2600 (signal_command): Warn if other thread that are resumed have
2601 signals that will be delivered. Adjust clear_proceed_status call.
2602 (until_next_command, finish_command)
2603 (proceed_after_attach_callback, attach_command_post_wait)
2604 (attach_command): Adjust clear_proceed_status call.
2605 * infrun.c (proceed_after_vfork_done): Likewise.
2606 (proceed_after_attach_callback): Adjust comment.
2607 (clear_proceed_status_thread): Clear stop_signal if not in pass
2608 state.
2609 (clear_proceed_status_callback): Delete.
2610 (clear_proceed_status): New 'step' parameter. Only clear the
2611 proceed status of threads the command being prepared is about to
2612 resume.
2613 (proceed): If passed in an explicit signal, override stop_signal
2614 with it. Don't pass the last stop signal to the thread we're
2615 resuming.
2616 (init_wait_for_inferior): Adjust clear_proceed_status call.
2617 (switch_back_to_stepped_thread): Clear the signal if it should not
2618 be passed.
2619 * infrun.h (clear_proceed_status): New 'step' parameter.
2620 (user_visible_resume_ptid): Add comment.
2621 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2622 signal is in pass state.
2623 * remote.c (append_pending_thread_resumptions): Likewise.
2624 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2625
2626 2014-07-25 Tom Tromey <tromey@redhat.com>
2627
2628 * target.h (target_stopped_data_address)
2629 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2630 parentheses.
2631
2632 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2633
2634 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2635 comments.
2636 (avr_pointer_to_address): Likewise.
2637
2638 2014-07-24 Tom Tromey <tromey@redhat.com>
2639
2640 * monitor.c (compile_pattern): Update.
2641 * target.h (struct target_ops) <to_shortname, to_longname,
2642 to_doc>: Now const.
2643
2644 2014-07-24 Tom Tromey <tromey@redhat.com>
2645
2646 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2647 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2648 (add_info_alias, add_com): Make "doc" const.
2649 (print_doc_line): Make "str" const.
2650 (delete_cmd): Update.
2651 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2652 (print_doc_line): Update.
2653 * cli/cli-script.c (document_command): Update.
2654 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2655 (add_com, add_info, add_info_alias): Update.
2656 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2657 * python/py-cmd.c (cmdpy_destroyer): Update.
2658
2659 2014-07-24 Tom Tromey <tromey@redhat.com>
2660
2661 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2662 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2663 (help_cmd_list): Constify.
2664 (lookup_cmd): Update.
2665 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2666 const.
2667 (help_cmd_list, apropos_cmd): Update.
2668 * cli/cli-script.c (show_user): Update.
2669 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2670 * cli/cli-setshow.h (cmd_show_list): Update.
2671 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2672 (cmd_show_list): Update.
2673 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2674 * python/py-cmd.c (cmdpy_destroyer): Update.
2675
2676 2014-07-24 Tom Tromey <tromey@redhat.com>
2677
2678 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2679 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2680 const.
2681 * command.h (deprecate_cmd): Update.
2682 * maint.c (maintenance_do_deprecate): Add casts.
2683
2684 2014-07-24 Tom Tromey <tromey@redhat.com>
2685
2686 * cli/cli-decode.c (help_cmd): Make parameter "const".
2687 * cli/cli-decode.h (help_cmd): Update.
2688
2689 2014-07-24 Tom Tromey <tromey@redhat.com>
2690
2691 * stack.c (up_silently_base, down_silently_base): Make argument
2692 const.
2693
2694 2014-07-24 Tom Tromey <tromey@redhat.com>
2695
2696 * solib.c (solib_add): Make "pattern" const.
2697 * solib.h (solib_add): Update.
2698
2699 2014-07-24 Tom Tromey <tromey@redhat.com>
2700
2701 * remote.c (remote_serial_open, print_packet, putpkt)
2702 (putpkt_binary): Constify.
2703 * remote.h (putpkt): Update.
2704
2705 2014-07-24 Tom Tromey <tromey@redhat.com>
2706
2707 * monitor.c (monitor_open): Make "args" const.
2708 * monitor.h (monitor_open): Update.
2709
2710 2014-07-24 Tom Tromey <tromey@redhat.com>
2711
2712 * maint.c (match_bfd_flags): Make "string" const.
2713 (print_bfd_section_info): Remove casts.
2714 (print_objfile_section_info): Make "string" const.
2715
2716 2014-07-24 Tom Tromey <tromey@redhat.com>
2717
2718 * inf-child.c (inf_child_open_target): Make "arg" const.
2719 * inf-child.h (inf_child_open_target): Update.
2720
2721 2014-07-24 Tom Tromey <tromey@redhat.com>
2722
2723 * environ.c (unset_in_environ): Make "var" const.
2724 * environ.h (unset_in_environ): Update.
2725
2726 2014-07-24 Tom Tromey <tromey@redhat.com>
2727
2728 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2729 Make "cmd" const.
2730 (scan_filename_with_cleanup): Likewise.
2731 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2732 Make arguments const.
2733 (restore_command): Update.
2734
2735 2014-07-24 Pedro Alves <palves@redhat.com>
2736
2737 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2738
2739 2014-07-24 Tom Tromey <tromey@redhat.com>
2740 Gary Benson <gbenson@redhat.com>
2741
2742 * nat/linux-ptrace.c (additional_flags): New global.
2743 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2744 additional_flags; don't check GDBSERVER.
2745 (linux_ptrace_set_additional_flags): New function.
2746 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2747 Declare.
2748 * linux-nat.c (_initialize_linux_nat): Call
2749 linux_ptrace_set_additional_flags.
2750
2751 2014-07-24 Tom Tromey <tromey@redhat.com>
2752
2753 * make-target-delegates (munge_type, write_debugmethod): New
2754 functions.
2755 (debug_names): New global.
2756 ($TARGET_DEBUG_PRINTER): New global.
2757 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2758 name.
2759 Write debug methods. Generate init_debug_target.
2760 * target-debug.h: New file.
2761 * target-delegates.c: Rebuild.
2762 * target.c: Include target-debug.h.
2763 (debug_target): Hoist definition.
2764 (target_kill, target_get_section_table, target_memory_map)
2765 (target_flash_erase, target_flash_done, target_detach)
2766 (target_disconnect, target_wait, target_resume)
2767 (target_pass_signals, target_program_signals, target_follow_fork)
2768 (target_mourn_inferior, target_search_memory)
2769 (target_thread_address_space, target_close)
2770 (target_find_new_threads, target_core_of_thread)
2771 (target_verify_memory, target_insert_mask_watchpoint)
2772 (target_remove_mask_watchpoint): Remove targetdebug code.
2773 (debug_to_post_attach, debug_to_prepare_to_store)
2774 (debug_to_files_info, debug_to_insert_breakpoint)
2775 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2776 (debug_to_region_ok_for_hw_watchpoint)
2777 (debug_to_can_accel_watchpoint_condition)
2778 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2779 (debug_to_watchpoint_addr_within_range)
2780 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2781 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2782 (debug_to_terminal_init, debug_to_terminal_inferior)
2783 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2784 (debug_to_terminal_save_ours, debug_to_terminal_info)
2785 (debug_to_load, debug_to_post_startup_inferior)
2786 (debug_to_insert_fork_catchpoint)
2787 (debug_to_remove_fork_catchpoint)
2788 (debug_to_insert_vfork_catchpoint)
2789 (debug_to_remove_vfork_catchpoint)
2790 (debug_to_insert_exec_catchpoint)
2791 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2792 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2793 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2794 (setup_target_debug): Call init_debug_target.
2795 * target.h (TARGET_DEBUG_PRINTER): New macro.
2796 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2797 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2798
2799 2014-07-24 Gary Benson <gbenson@redhat.com>
2800
2801 * exceptions.h (throw_vfatal): Renamed to...
2802 (throw_vquit): New declaration.
2803 (throw_quit): Likewise.
2804 * exceptions.c (throw_vfatal): Renamed to...
2805 (throw_vquit): New function.
2806 (throw_quit): Likewise.
2807 (throw_error): Call throw_verror rather than throw_it.
2808 * utils.h (vfatal): Removed.
2809 (fatal): Likewise.
2810 * utils.c (vfatal): Removed.
2811 (fatal): Likewise.
2812 (internal_verror): Replaced call to fatal with call to throw_quit.
2813 (quit): Replaced calls to fatal with calls to throw_quit.
2814
2815 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2816
2817 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2818 target_read_code.
2819
2820 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2821
2822 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2823 less than zero in conditional expression.
2824
2825 2014-07-23 Tom Tromey <tromey@redhat.com>
2826
2827 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2828 ($INTRO_PART): Don't match whitespace.
2829 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2830 argument matching.
2831 ($METHOD): Add $METHOD_TRAILER.
2832 (trim): Rewrite.
2833 (scan_target_h): New sub.
2834 Change main loop not to collect state.
2835 * target-delegates.c: Rebuild.
2836
2837 2014-07-23 Gary Benson <gbenson@redhat.com>
2838
2839 * cp-support.c (gdb_demangle): Fix build on systems without
2840 sigaltstack.
2841
2842 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2843
2844 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2845 for reference entry value target data value.
2846
2847 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2848
2849 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2850 value_available_contents_eq.
2851
2852 2014-07-22 Pedro Alves <palves@redhat.com>
2853
2854 * value.c (allocate_optimized_out_value): Don't mark value as
2855 non-lazy.
2856
2857 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2858
2859 * MAINTAINERS (Write After Approval): Update my email address.
2860
2861 2014-07-20 Doug Evans <dje@google.com>
2862
2863 PR server/17147
2864 * remote.c (putpkt_binary): Add text to error message.
2865
2866 2014-07-20 Yao Qi <yao@codesourcery.com>
2867
2868 * eval.c: Remove "Chill" from comments.
2869 * gdbtypes.h: Likewise.
2870 * symtab.h: Likewise.
2871
2872 2014-07-20 Yao Qi <yao@codesourcery.com>
2873
2874 * std-operator.def: Update comments to TERNOP_SLICE.
2875
2876 2014-07-20 Yao Qi <yao@codesourcery.com>
2877
2878 * std-operator.def: Remove BINOP_RANGE.
2879 * breakpoint.c (watchpoint_exp_is_const): Update.
2880 * expprint.c (dump_subexp_body_standard): Likewise.
2881 * eval.c (init_array_element): Remove dead code.
2882 (evaluate_subexp_standard): Likewise.
2883
2884 2014-07-20 Yao Qi <yao@codesourcery.com>
2885
2886 * std-operator.def: Remove BINOP_IN.
2887 * breakpoint.c (watchpoint_exp_is_const): Update.
2888 * eval.c (evaluate_subexp_standard): Likewise.
2889 * expprint.c (dump_subexp_body_standard): Likewise.
2890
2891 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2892
2893 * microblaze-tdep.c (microblaze_register_names): Add
2894 the rshr and rslr register names.
2895 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2896 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2897 Use of tdesc_numbered_register. Use of
2898 microblaze_register_g_packet_guesses. Use of
2899 tdesc_use_registers. Use of set_gdbarch_register_type.
2900 (microblaze_register_g_packet_guesses): New.
2901 * microblaze-tdep.h (microblaze_reg_num): Add
2902 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2903 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2904 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2905 * features/microblaze-core.xml: New file.
2906 * features/microblaze-stack-protect.xml: New file.
2907 * features/microblaze-with-stack-protect.c: New file.
2908 * features/microblaze-with-stack-protect.xml: New file.
2909 * features/microblaze.xml: New file.
2910 * features/microblaze.c: New file.
2911 * features/Makefile (microblaze-with-stack-protect): Add
2912 microblaze-with-stack-protect microblaze and microblaze-expedite.
2913 * regformats/microblaze-with-stack-protect.dat: New file.
2914 * regformats/microblaze.dat: New file.
2915 * doc/gdb.texinfo (MicroBlaze Features): Added.
2916
2917 2014-07-18 Tom Tromey <tromey@redhat.com>
2918
2919 * exec.c (exec_ops): Now static.
2920 * exec.h (exec_ops): Don't declare.
2921
2922 2014-07-18 Tom Tromey <tromey@redhat.com>
2923
2924 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2925 to find_target_beneath.
2926 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2927 find_target_beneath.
2928 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2929
2930 2014-07-18 Tom Tromey <tromey@redhat.com>
2931
2932 PR gdb/17130:
2933 * utils.c (quit): Use target_supports_terminal_ours.
2934 * target.h (target_supports_terminal_ours): Declare.
2935 * target.c (target_supports_delete_record): Don't check
2936 to_delete_record against NULL.
2937 (target_supports_terminal_ours): New function.
2938
2939 2014-07-18 Tom Tromey <tromey@redhat.com>
2940
2941 PR gdb/17130:
2942 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2943 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2944 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2945 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2946 * windows-nat.c (windows_xfer_partial): Always delegate.
2947 * record-btrace.c (record_btrace_xfer_partial): Simplify
2948 delegation.
2949 (record_btrace_fetch_registers, record_btrace_store_registers)
2950 (record_btrace_prepare_to_store, record_btrace_resume)
2951 (record_btrace_wait, record_btrace_find_new_threads)
2952 (record_btrace_thread_alive): Likewise.
2953 * procfs.c (procfs_xfer_partial): Always delegate.
2954 * corelow.c (core_xfer_partial): Always delegate.
2955 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2956
2957 2014-07-18 Tom Tromey <tromey@redhat.com>
2958
2959 * exec.c (exec_make_note_section): Move earlier.
2960
2961 2014-07-17 Doug Evans <dje@google.com>
2962
2963 PR gdb/17170
2964 * maint.c (count_symtabs_and_blocks): Handle NULL
2965 current_program_space.
2966 (report_command_stats): Check global enabled flag in addition to
2967 recorded enabled flag.
2968 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2969
2970 2014-07-16 Pedro Alves <palves@redhat.com>
2971
2972 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2973
2974 2014-07-16 Tom Tromey <tromey@redhat.com>
2975
2976 * target.h (struct target_ops) <to_delete_record>: Reformat
2977 comment.
2978
2979 2014-07-16 Tom Tromey <tromey@redhat.com>
2980
2981 * target-delegates.c: Rebuild.
2982
2983 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2984
2985 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2986 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2987 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2988 (avr_pointer_to_address): Likewise.
2989 (avr_address_class_type_flags): New function.
2990 (avr_address_class_type_flags_to_name): Likewise.
2991 (avr_address_class_name_to_type_flags): Likewise.
2992 (avr_gdbarch_init): Set address_class_type_flags,
2993 address_class_type_flags_to_name and
2994 address_class_name_to_type_flags.
2995
2996 2014-07-15 Pedro Alves <palves@redhat.com>
2997
2998 * linux-nat.c (kill_callback): Save errno and work with saved
2999 copy.
3000
3001 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3002
3003 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3004
3005 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3006
3007 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3008 breakpoint support correctly.
3009
3010 2014-07-14 Pedro Alves <palves@redhat.com>
3011
3012 * utils.c (prompt_for_continue): Call target_terminal_ours.
3013
3014 2014-07-14 Pedro Alves <palves@redhat.com>
3015
3016 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3017 catch_errors. Don't re-enable stdin or notify observers where,
3018 and rethrow error.
3019 (fetch_inferior_event_wrapper): Delete.
3020
3021 2014-07-14 Pedro Alves <palves@redhat.com>
3022
3023 PR gdb/17072
3024 * top.c: Include "inf-loop.h".
3025 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3026 field.
3027 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3028 was async before.
3029 (gdb_readline_wrapper): Store whether the target is async, and
3030 make it sync.
3031
3032 2014-07-14 Pedro Alves <palves@redhat.com>
3033
3034 PR gdb/17072
3035 * top.c (gdb_readline_wrapper_line): Tweak comment.
3036 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3037 the input handler callback.
3038
3039 2014-07-14 Pedro Alves <palves@redhat.com>
3040
3041 PR gdb/17072
3042 * main.c: Include event-top.h.
3043 (handle_command_errors): New function.
3044 (catch_command_errors, catch_command_errors_const): Use it.
3045
3046 2014-07-14 Pedro Alves <palves@redhat.com>
3047
3048 * exceptions.c (catch_command_errors, catch_command_errors_const):
3049 Moved to main.c.
3050 * exceptions.h (catch_command_errors_ftype)
3051 (catch_command_errors_const_ftype): Moved to main.c.
3052 (catch_command_errors, catch_command_errors_const): Delete
3053 declarations.
3054 * main.c (catch_command_errors_ftype)
3055 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3056 (catch_command_errors, catch_command_errors_const)): Moved here
3057 from exceptions.c and make static.
3058
3059 2014-07-14 Pedro Alves <palves@redhat.com>
3060
3061 * exceptions.c (print_any_exception): Delete.
3062 (catch_exceptions_with_msg): Use exception_print instead of
3063 print_any_exception.
3064 (catch_errors): Use exception_fprintf instead of
3065 print_any_exception.
3066 (catch_command_errors, catch_command_errors_const): Use
3067 exception_print instead of print_any_exception.
3068
3069 2014-07-14 Pedro Alves <palves@redhat.com>
3070
3071 * infcall.c (run_inferior_call): Set 'sync_execution' while
3072 running the inferior call.
3073
3074 2014-07-14 Pedro Alves <palves@redhat.com>
3075
3076 * value.c (value_contents_equal): Delete function.
3077 * value.h (value_contents_equal): Delete declaration.
3078
3079 2014-07-14 Tom Tromey <tromey@redhat.com>
3080
3081 PR exp/17106:
3082 * gdbtypes.c (is_dynamic_type_internal): New function, from
3083 is_dynamic_type.
3084 (is_dynamic_type): Rewrite.
3085 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3086 (resolve_dynamic_struct): Likewise.
3087 (resolve_dynamic_type_internal): New function, from
3088 resolve_dynamic_type.
3089 (resolve_dynamic_type): Rewrite.
3090
3091 2014-07-14 Tom Tromey <tromey@redhat.com>
3092
3093 * target.c (target_require_runnable): Also check record_stratum.
3094 Update comment.
3095
3096 2014-07-11 Yao Qi <yao@codesourcery.com>
3097
3098 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3099 thumb_instruction_restores_sp return true.
3100
3101 2014-07-11 Yao Qi <yao@codesourcery.com>
3102
3103 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3104 (thumb_in_function_epilogue_p): Call
3105 thumb_instruction_restores_sp.
3106
3107 2014-07-11 Yao Qi <yao@codesourcery.com>
3108
3109 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3110 'add sp, #imm'.
3111 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3112
3113 2014-07-11 Gary Benson <gbenson@redhat.com>
3114
3115 * amd64-linux-nat.c (gdbcore.h): Remove include.
3116 (regset.h): Likewise.
3117 (nat/linux-btrace.h): Likewise.
3118 (btrace.h): Likewise.
3119 (gdb_assert.h): Likewise.
3120 (string.h): Likewise.
3121 (sys/uio.h): Likewise.
3122 (sys/debugreg.h): Likewise.
3123 (sys/syscall.h): Likewise.
3124 (sys/procfs.h): Likewise.
3125 (sys/user.h): Likewise.
3126 (asm/ptrace.h): Likewise.
3127 (i386-nat.h): Likewise.
3128 * i386-linux-nat.c (i386-nat.h): Likewise.
3129 (regset.h): Likewise.
3130 (target.h): Likewise.
3131 (linux-nat.h): Likewise.
3132 (nat/linux-btrace.h): Likewise.
3133 (btrace.h): Likewise.
3134 (gdb_assert.h): Likewise.
3135 (string.h): Likewise.
3136 (sys/uio.h): Likewise.
3137 (sys/user.h): Likewise.
3138 (sys/procfs.h): Likewise.
3139 (sys/reg.h): Likewise.
3140 (sys/debugreg.h): Likewise.
3141 (ORIG_EAX): Remove definition.
3142
3143 2014-07-11 Gary Benson <gbenson@redhat.com>
3144
3145 * i386-linux-nat.h: New file.
3146 * x86-linux-nat.h: Likewise.
3147 * x86-linux-nat.c: Likewise.
3148 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3149 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3150 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3151 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3152 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3153 (PTRACE_SETREGSET): Likewise.
3154 (arch_lwp_info): Now in x86-linux-nat.c.
3155 (have_ptrace_getregset): Now in x86-linux-nat.h.
3156 (x86_linux_dr_get): Now in x86-linux-nat.c.
3157 (x86_linux_dr_set): Likewise.
3158 (x86_linux_dr_get_addr): Likewise.
3159 (x86_linux_dr_get_control): Likewise.
3160 (x86_linux_dr_get_status): Likewise.
3161 (update_debug_registers_callback): Likewise.
3162 (x86_linux_dr_set_control): Likewise.
3163 (x86_linux_dr_set_addr): Likewise.
3164 (x86_linux_prepare_to_resume): Likewise.
3165 (x86_linux_new_thread): Likewise.
3166 (x86_linux_new_fork): Likewise.
3167 (x86_linux_get_thread_area): Likewise.
3168 (super_post_startup_inferior): Likewise.
3169 (x86_linux_child_post_startup_inferior): Likewise.
3170 (AMD64_LINUX_USER64_CS): Likewise.
3171 (AMD64_LINUX_X32_DS): Likewise.
3172 (x86_linux_read_description): Likewise.
3173 (x86_linux_enable_btrace): Likewise.
3174 (x86_linux_disable_btrace): Likewise.
3175 (x86_linux_teardown_btrace): Likewise.
3176 (x86_linux_read_btrace): Likewise.
3177 (x86_linux_create_target): Likewise.
3178 (x86_linux_add_target): Likewise.
3179 * i386-linux-nat.c (x86-linux-nat.h): New include.
3180 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3181 (PTRACE_SETREGSET): Likewise.
3182 (arch_lwp_info): Now in x86-linux-nat.c.
3183 (have_ptrace_getregset): Now in x86-linux-nat.h.
3184 (x86_linux_dr_get): Now in x86-linux-nat.c.
3185 (x86_linux_dr_set): Likewise.
3186 (x86_linux_dr_get_addr): Likewise.
3187 (x86_linux_dr_get_control): Likewise.
3188 (x86_linux_dr_get_status): Likewise.
3189 (update_debug_registers_callback): Likewise.
3190 (x86_linux_dr_set_control): Likewise.
3191 (x86_linux_dr_set_addr): Likewise.
3192 (x86_linux_prepare_to_resume): Likewise.
3193 (x86_linux_new_thread): Likewise.
3194 (x86_linux_new_fork): Likewise.
3195 (x86_linux_get_thread_area): Likewise.
3196 (super_post_startup_inferior): Likewise.
3197 (x86_linux_child_post_startup_inferior): Likewise.
3198 (AMD64_LINUX_USER64_CS): Likewise.
3199 (AMD64_LINUX_X32_DS): Likewise.
3200 (x86_linux_read_description): Likewise.
3201 (x86_linux_enable_btrace): Likewise.
3202 (x86_linux_disable_btrace): Likewise.
3203 (x86_linux_teardown_btrace): Likewise.
3204 (x86_linux_read_btrace): Likewise.
3205 (x86_linux_create_target): Likewise.
3206 (x86_linux_add_target): Likewise.
3207
3208 2014-07-11 Gary Benson <gbenson@redhat.com>
3209
3210 * amd64-linux-nat.c: Comment and whitespace changes.
3211 * i386-linux-nat.c: Comment and whitespace changes.
3212
3213 2014-07-11 Gary Benson <gbenson@redhat.com>
3214
3215 * amd64-linux-nat.c (x86_linux_create_target): New function.
3216 (x86_linux_add_target): Likewise.
3217 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3218 * i386-linux-nat.c (x86_linux_create_target): New function.
3219 (x86_linux_add_target): Likewise.
3220 (_initialize_i386_linux_nat): Delegate to the above new functions.
3221
3222 2014-07-11 Gary Benson <gbenson@redhat.com>
3223
3224 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3225 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3226 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3227 (ps_get_thread_area): Delegate to the above.
3228
3229 2014-07-11 Gary Benson <gbenson@redhat.com>
3230
3231 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3232 x86_linux_read_description. All uses updated. amd64-specific
3233 code conditionalized. Conditionalized i386-specific code added.
3234 Redundant cast removed.
3235 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3236 x86_linux_read_description. All uses updated. i386-specific
3237 code conditionalized. Conditionalized amd64-specific code added.
3238 One sizeof replaced with the actual type it is describing.
3239
3240 2014-07-11 Gary Benson <gbenson@redhat.com>
3241
3242 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3243 x86_linux_dr_get. All uses updated.
3244 (amd64_linux_dr_set): Renamed to
3245 x86_linux_dr_set. All uses updated.
3246 (amd64_linux_dr_get_addr): Renamed to
3247 x86_linux_dr_get_addr. All uses updated.
3248 (amd64_linux_dr_get_control): Renamed to
3249 x86_linux_dr_get_control. All uses updated.
3250 (amd64_linux_dr_get_status): Renamed to
3251 x86_linux_dr_get_status. All uses updated.
3252 (amd64_linux_dr_set_control): Renamed to
3253 x86_linux_dr_set_control. All uses updated.
3254 (amd64_linux_dr_set_addr): Renamed to
3255 x86_linux_dr_set_addr. All uses updated.
3256 (amd64_linux_prepare_to_resume): Renamed to
3257 x86_linux_prepare_to_resume. All uses updated.
3258 (amd64_linux_new_thread): Renamed to
3259 x86_linux_new_thread. All uses updated.
3260 (amd64_linux_new_fork): Renamed to
3261 x86_linux_new_fork. All uses updated.
3262 (amd64_linux_child_post_startup_inferior): Renamed to
3263 x86_linux_child_post_startup_inferior. All uses updated.
3264 (amd64_linux_enable_btrace): Renamed to
3265 x86_linux_enable_btrace. All uses updated.
3266 (amd64_linux_disable_btrace): Renamed to
3267 x86_linux_disable_btrace. All uses updated.
3268 (amd64_linux_teardown_btrace): Renamed to
3269 x86_linux_teardown_btrace. All uses updated.
3270 (amd64_linux_read_btrace): Renamed to
3271 x86_linux_read_btrace. All uses updated.
3272 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3273 x86_linux_dr_get. All uses updated.
3274 (i386_linux_dr_set): Renamed to
3275 x86_linux_dr_set. All uses updated.
3276 (i386_linux_dr_get_addr): Renamed to
3277 x86_linux_dr_get_addr. All uses updated.
3278 (i386_linux_dr_get_control): Renamed to
3279 x86_linux_dr_get_control. All uses updated.
3280 (i386_linux_dr_get_status): Renamed to
3281 x86_linux_dr_get_status. All uses updated.
3282 (i386_linux_dr_set_control): Renamed to
3283 x86_linux_dr_set_control. All uses updated.
3284 (i386_linux_dr_set_addr): Renamed to
3285 x86_linux_dr_set_addr. All uses updated.
3286 (i386_linux_prepare_to_resume): Renamed to
3287 x86_linux_prepare_to_resume. All uses updated.
3288 (i386_linux_new_thread): Renamed to
3289 x86_linux_new_thread. All uses updated.
3290 (i386_linux_new_fork): Renamed to
3291 x86_linux_new_fork. All uses updated.
3292 (i386_linux_child_post_startup_inferior): Renamed to
3293 x86_linux_child_post_startup_inferior. All uses updated.
3294 (i386_linux_enable_btrace): Renamed to
3295 x86_linux_enable_btrace. All uses updated.
3296 (i386_linux_disable_btrace): Renamed to
3297 x86_linux_disable_btrace. All uses updated.
3298 (i386_linux_teardown_btrace): Renamed to
3299 x86_linux_teardown_btrace. All uses updated.
3300 (i386_linux_read_btrace): Renamed to
3301 x86_linux_read_btrace. All uses updated.
3302
3303 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3304
3305 * remote.c (extended_remote_post_attach): New function.
3306 (init_extended_remote_ops): Install it as to_post_attach method.
3307
3308 2014-07-09 Pedro Alves <palves@redhat.com>
3309
3310 * infcmd.c (attach_command_post_wait): Don't call
3311 target_terminal_inferior here.
3312 (attach_command): Call it here instead.
3313
3314 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3315
3316 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3317 field.
3318 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3319 from varobj.c, with additional checks.
3320 (c_varobj_ops): Fill in is_path_expr_parent field.
3321 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3322 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3323 field.
3324 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3325 ops method.
3326 (varobj_default_is_path_expr_parent): New function.
3327 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3328 (varobj_default_is_path_expr_parent): Declare new function.
3329
3330 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3331
3332 * infcmd.c (finish_backward): Turn internal error into normal error.
3333
3334 2014-07-07 Pedro Alves <palves@redhat.com>
3335
3336 PR gdb/17096
3337 * remote.c (async_handle_remote_sigint)
3338 (async_handle_remote_sigint_twice): Call
3339 gdb_call_async_signal_handler instead of
3340 mark_async_signal_handler.
3341
3342 2014-07-07 Tom Tromey <tromey@redhat.com>
3343
3344 * target-delegates.c: Rebuild.
3345 * target.c (target_info_record): Remove.
3346 * record.c (info_record_command): Unconditionally call
3347 to_info_record.
3348 * target.h (struct target_ops) <to_info_record>: Use
3349 TARGET_DEFAULT_IGNORE.
3350 (target_info_record): Remove.
3351
3352 2014-07-07 Tom Tromey <tromey@redhat.com>
3353
3354 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3355 TARGET_DEFAULT_NORETURN.
3356 * target.c (generic_tls_error): New function.
3357 (target_translate_tls_address): Don't search target stack.
3358 * target-delegates.c: Rebuild.
3359 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3360 stack.
3361 * linux-thread-db.c (thread_db_get_thread_local_address):
3362 Unconditionally call beneath target.
3363
3364 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3365
3366 * cli/cli-logging.c (pop_output_files): Assign targerr to
3367 gdb_stdtargerr.
3368
3369 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3370
3371 * MAINTAINERS (Write After Approval): Update my email address.
3372
3373 2014-07-02 Gary Benson <gbenson@redhat.com>
3374
3375 * proc-service.c (ps_xfer_memory): Update comment.
3376 (ps_pstop): Remove unused function.
3377 (ps_pcontinue): Likewise.
3378 (ps_lstop): Likewise.
3379 (ps_lcontinue): Likewise.
3380 (ps_lgetxregsize): Likewise.
3381 (ps_lgetxregs): Likewise.
3382 (ps_lsetxregs): Likewise.
3383 (ps_plog): Likewise.
3384 (ps_ptread): Likewise.
3385 (ps_ptwrite): Likewise.
3386
3387 2014-07-01 Mark Wielaard <mjw@redhat.com>
3388
3389 * dwarf2read.c (add_array_cv_type): New function.
3390 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3391 (read_tag_volatile_type): Likewise.
3392
3393 2014-07-01 Tom Tromey <tromey@redhat.com>
3394
3395 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3396 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3397 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3398 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3399 * command.h (cmd_cfunc_ftype): Move earlier.
3400 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3401 (add_com, add_info): Use cmd_cfunc_ftype.
3402
3403 2014-06-30 Tom Tromey <tromey@redhat.com>
3404
3405 * symtab.c (operator_chars): Make parameters and return type
3406 const.
3407 (file_matches): Make "files" const.
3408 (struct search_symbols_data) <files>: Now const.
3409 (search_symbols): Make "regexp" and "files" parameters const.
3410 Update.
3411 (symtab_symbol_info): Remove cast.
3412 (rbreak_command): Update.
3413 * symtab.h (search_symbols): Update.
3414
3415 2014-06-27 Yao Qi <yao@codesourcery.com>
3416
3417 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3418 Change parameter type to 'struct thread_info *'. Caller
3419 updated.
3420 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3421 Update declaration.
3422 * dummy-frame.c (struct dummy_frame_id): New.
3423 (dummy_frame_id_eq): New function.
3424 (struct dummy_frame) <id>: Change its type to 'struct
3425 dummy_frame_id'.
3426 (dummy_frame_push): Add parameter ptid and save it in
3427 dummy_frame_id.
3428 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3429 inferior_ptid.
3430 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3431 to inferior_ptid.
3432 (lookup_dummy_frame): Change parameter type to 'struct
3433 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3434 instead of frame_id_eq.
3435 (dummy_frame_pop): Add parameter ptid. Callers updated.
3436 Update comments. Compose dummy_frame_id and pass it to
3437 lookup_dummy_frame.
3438 (dummy_frame_discard): Add parameter ptid.
3439 (dummy_frame_sniffer): Compose dummy_frame_id and call
3440 dummy_frame_id_eq instead of frame_id_eq.
3441 (fprint_dummy_frames): Print ptid.
3442 * dummy-frame.h: Remove comments.
3443 (dummy_frame_push): Add ptid in declaration.
3444 (dummy_frame_pop, dummy_frame_discard): Likewise.
3445
3446 2014-06-26 Tom Tromey <tromey@redhat.com>
3447
3448 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3449 * command.h (error_no_arg): Update.
3450
3451 2014-06-26 Tom Tromey <tromey@redhat.com>
3452
3453 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3454 (do_show_command): Make "arg" const.
3455 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3456
3457 2014-06-26 Tom Tromey <tromey@redhat.com>
3458
3459 * record-full.c (record_full_get_bookmark): Make "args" const.
3460 (record_full_goto_bookmark): Make "raw_bookmark" const.
3461 * record.c (record_goto): New function.
3462 (cmd_record_goto): Use it. Now static.
3463 * record.h (record_goto): Declare.
3464 (cmd_record_goto): Remove declaration.
3465 * target-delegates.c: Rebuild.
3466 * target.h (struct target_ops) <to_get_bookmark,
3467 to_goto_bookmark>: Make parameter const.
3468
3469 2014-06-26 Tom Tromey <tromey@redhat.com>
3470
3471 * defs.h (generic_load): Update.
3472 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3473 * monitor.c (monitor_load): Make "args" const.
3474 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3475 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3476 const.
3477 (mips_load): Make "file" const.
3478 * remote-sim.c (gdbsim_load): Make "args" const.
3479 * remote.c (remote_load): Make "name" const.
3480 * symfile.c (generic_load): Make "args" const.
3481 * target-delegates.c: Rebuild.
3482 * target.c (target_load): Make "arg" const.
3483 (debug_to_load): Make "args" const.
3484 * target.h (struct target_ops) <to_load>: Make parameter const.
3485 (target_load): Update.
3486
3487 2014-06-26 Tom Tromey <tromey@redhat.com>
3488
3489 PR symtab/16902:
3490 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3491 (dwarf2_physname, read_partial_die)
3492 (guess_partial_die_structure_name, fixup_partial_die)
3493 (guess_full_die_structure_name, anonymous_struct_prefix)
3494 (dwarf2_name): Use per-BFD obstack.
3495
3496 2014-06-26 Yao Qi <yao@codesourcery.com>
3497
3498 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3499 dummyframe and this_id into inner block below.
3500
3501 2014-06-26 Yao Qi <yao@codesourcery.com>
3502
3503 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3504 with "signal_pass[0]" in the initialization of signal_pass.
3505
3506 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3507
3508 * record-btrace.c (record_btrace_generating_corefile)
3509 (record_btrace_prepare_to_generate_core)
3510 (record_btrace_done_generating_core): New.
3511 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3512 (record_btrace_store_registers, record_btrace_prepare_to_store):
3513 Forward request when generating a core file.
3514 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3515 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3516 to_done_generating_core.
3517
3518 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3519
3520 * target.h (target_ops) <to_prepare_to_generate_core>
3521 <to_done_generating_core>: New.
3522 (target_prepare_to_generate_core, target_done_generating_core): New.
3523 * target.c (target_prepare_to_generate_core)
3524 (target_done_generating_core): New.
3525 * target-delegates.c: Regenerate.
3526 * gcore.c: (write_gcore_file): Rename to ...
3527 (write_gcore_file_1): ...this.
3528 (write_gcore_file): Call target_prepare_to_generate_core
3529 and target_done_generating_core.
3530
3531 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3532
3533 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3534 * gcore.c (write_gcore_file): Free memory returned from
3535 make_corefile_notes.
3536 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3537 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3538
3539 2014-06-24 Yao Qi <yao@codesourcery.com>
3540
3541 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3542 (arm_linux_init_abi): Set skip_trampoline_code with
3543 gdbarch_skip_trampoline_code instead of
3544 find_solib_trampoline_target.
3545
3546 2014-06-24 Yao Qi <yao@codesourcery.com>
3547
3548 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3549 arm_skip_bx_reg returns non-zero.
3550
3551 2014-06-24 Yao Qi <yao@codesourcery.com>
3552
3553 * arm-tdep.c (arm_skip_bx_reg): New function.
3554 (arm_skip_stub): Call arm_skip_bx_reg.
3555
3556 2014-06-23 Don Breazeal <donb@codesourcery.com>
3557
3558 * MAINTAINERS: Add myself as write-after-approval maintainer.
3559
3560 2014-06-23 Pedro Alves <palves@redhat.com>
3561
3562 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3563 DR_CONTROL before setting DR0..DR3.
3564 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3565 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3566 bits of DR_CONTROL related to the debug register slot being
3567 disabled. If all slots are vacant, clear local slowdown as well,
3568 and assert DR_CONTROL is 0.
3569
3570 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3571
3572 * python/lib/gdb/command/xmethods.py
3573 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3574 current progspace only if the string "progspace" matches LOCUS_RE.
3575
3576 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3577
3578 Fix --with-system-readline with readline-6.3 patch 5.
3579 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3580 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3581 types.
3582
3583 2014-06-20 Tom Tromey <tromey@redhat.com>
3584
3585 * dwarf2read.c (dw2_get_real_path): Use correct type in
3586 OBSTACK_CALLOC.
3587 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3588
3589 2014-06-20 Gary Benson <gbenson@redhat.com>
3590
3591 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3592 * common/glibc_thread_db.h: Likewise.
3593 * common/i386-cpuid.h: Likewise.
3594 * common/i386-gcc-cpuid.h: Likewise.
3595 * common/linux-btrace.h: Likewise.
3596 * common/linux-osdata.h: Likewise.
3597 * common/linux-procfs.h: Likewise.
3598 * common/linux-ptrace.h: Likewise.
3599 * common/mips-linux-watch.h: Likewise.
3600 * common/linux-btrace.c: Moved to nat.
3601 * common/linux-osdata.c: Likewise.
3602 * common/linux-procfs.c: Likewise.
3603 * common/linux-ptrace.c: Likewise.
3604 * common/mips-linux-watch.c: Likewise.
3605 * nat/gdb_thread_db.h: Moved from common.
3606 * nat/glibc_thread_db.h: Likewise.
3607 * nat/i386-cpuid.h: Likewise.
3608 * nat/i386-gcc-cpuid.h: Likewise.
3609 * nat/linux-btrace.c: Likewise.
3610 * nat/linux-btrace.h: Likewise.
3611 * nat/linux-osdata.c: Likewise.
3612 * nat/linux-osdata.h: Likewise.
3613 * nat/linux-procfs.c: Likewise.
3614 * nat/linux-procfs.h: Likewise.
3615 * nat/linux-ptrace.c: Likewise.
3616 * nat/linux-ptrace.h: Likewise.
3617 * nat/mips-linux-watch.c: Likewise.
3618 * nat/mips-linux-watch.h: Likewise.
3619 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3620 (object file files): Reordered.
3621 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3622 of glibc_thread_db.h.
3623
3624 2014-06-20 Gary Benson <gbenson@redhat.com>
3625
3626 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3627 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3628 (i386_dr_low): Likewise.
3629 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3630 (i386_dr_low_set_addr): Likewise.
3631 (i386_dr_low_get_addr): Likewise.
3632 (i386_dr_low_can_set_control): Likewise.
3633 (i386_dr_low_set_control): Likewise.
3634 (i386_dr_low_get_control): Likewise.
3635 (i386_dr_low_get_status): Likewise.
3636 (i386_get_debug_register_length): Likewise.
3637 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3638 (i386_dr_low): Likewise.
3639 * nat/i386-dregs.c (i386-low.h): Remove include.
3640 (i386-nat.h): Likewise.
3641 (nat/i386-dregs.h): New include.
3642 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3643 (i386_dr_low_set_addr): Likewise.
3644 (i386_dr_low_get_addr): Likewise.
3645 (i386_dr_low_can_set_control): Likewise.
3646 (i386_dr_low_set_control): Likewise.
3647 (i386_dr_low_get_control): Likewise.
3648 (i386_dr_low_get_status): Likewise.
3649 (i386_get_debug_register_length): Likewise.
3650 (debug_hw_points): Likewise.
3651
3652 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3653
3654 * Makefile.in (SFILES): Add d-exp.y.
3655 (YYFILES): Add d-exp.c.
3656 (YYOBJ): Add d-exp.o.
3657 (local-maintainer-clean): Delete d-exp.c.
3658 * d-exp.y: New file.
3659 * d-lang.h (d_parse): New declaration.
3660 (d_error): New declaration.
3661 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3662 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3663 PREC_ORDER operators.
3664 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3665
3666 2014-06-19 Yao Qi <yao@codesourcery.com>
3667
3668 * gdbthread.h (any_running): Remove the declaration.
3669 * thread.c (any_running): Remove.
3670
3671 2014-06-19 Yao Qi <yao@codesourcery.com>
3672
3673 * gdbthread.h (struct thread_info) <state>: Change its type to
3674 'enum thread_state'. Update comments.
3675
3676 2014-06-19 Pedro Alves <palves@redhat.com>
3677
3678 * gdbthread.h (ALL_THREADS): Delete.
3679 (ALL_NON_EXITED_THREADS): New macro.
3680 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3681 instead of ALL_THREADS.
3682 * infrun.c (find_thread_needs_step_over)
3683 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3684 instead of ALL_THREADS.
3685 * record-btrace.c (record_btrace_open)
3686 (record_btrace_stop_recording, record_btrace_close)
3687 (record_btrace_is_replaying, record_btrace_resume)
3688 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3689 * remote.c (append_pending_thread_resumptions): Likewise.
3690 * thread.c (thread_apply_all_command): Likewise.
3691
3692 2014-06-19 Gary Benson <gbenson@redhat.com>
3693
3694 * i386-nat.c (i386_stopped_by_watchpoint):
3695 Use i386_dr_stopped_by_watchpoint.
3696 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3697 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3698
3699 2014-06-19 Gary Benson <gbenson@redhat.com>
3700
3701 * nat/i386-dregs.c: New file.
3702 * Makefile.in (i386-dregs.o): New rule.
3703 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3704 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3705 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3706 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3707 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3708 * config/i386/go32.mh (NATDEPFILES): Likewise.
3709 * config/i386/linux.mh (NATDEPFILES): Likewise.
3710 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3711 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3712 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3713 * i386-nat.h (debug_hw_points): New declaration.
3714 * i386-nat.c (breakpoint.h): Remove include.
3715 (command.h): Likewise.
3716 (target.h): Likewise.
3717 (gdb_assert.h): Likewise.
3718 (debug_hw_points): Made nonstatic.
3719 (debug_printf): Now in i386-dregs.c.
3720 (TARGET_HAS_DR_LEN_8): Likewise.
3721 (DR_CONTROL_SHIFT): Likewise.
3722 (DR_CONTROL_SIZE): Likewise.
3723 (DR_RW_EXECUTE): Likewise.
3724 (DR_RW_WRITE): Likewise.
3725 (DR_RW_READ): Likewise.
3726 (DR_RW_IORW): Likewise.
3727 (DR_LEN_1): Likewise.
3728 (DR_LEN_2): Likewise.
3729 (DR_LEN_4): Likewise.
3730 (DR_LEN_8): Likewise.
3731 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3732 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3733 (DR_ENABLE_SIZE): Likewise.
3734 (DR_LOCAL_SLOWDOWN): Likewise.
3735 (DR_GLOBAL_SLOWDOWN): Likewise.
3736 (DR_CONTROL_RESERVED): Likewise.
3737 (I386_DR_CONTROL_MASK): Likewise.
3738 (I386_DR_VACANT): Likewise.
3739 (I386_DR_LOCAL_ENABLE): Likewise.
3740 (I386_DR_GLOBAL_ENABLE): Likewise.
3741 (I386_DR_DISABLE): Likewise.
3742 (I386_DR_SET_RW_LEN): Likewise.
3743 (I386_DR_GET_RW_LEN): Likewise.
3744 (I386_DR_WATCH_HIT): Likewise.
3745 (i386_wp_op_t): Likewise.
3746 (i386_show_dr): Likewise.
3747 (i386_length_and_rw_bits): Likewise.
3748 (i386_insert_aligned_watchpoint): Likewise.
3749 (i386_remove_aligned_watchpoint): Likewise.
3750 (i386_handle_nonaligned_watchpoint): Likewise.
3751 (i386_update_inferior_debug_regs): Likewise.
3752 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3753 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3754 (i386_region_ok_for_watchpoint):
3755 Use i386_dr_region_ok_for_watchpoint.
3756 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3757
3758 2014-06-19 Gary Benson <gbenson@redhat.com>
3759
3760 * i386-nat.c (i386_insert_hw_breakpoint): Use
3761 i386_insert_watchpoint.
3762 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3763
3764 2014-06-19 Gary Benson <gbenson@redhat.com>
3765
3766 * i386-nat.c (i386_dr_show): Renamed to
3767 i386_show_dr and made static. All uses updated.
3768 (i386_dr_length_and_rw_bits): Renamed to
3769 i386_length_and_rw_bits and made static.
3770 All uses updated.
3771 (i386_dr_insert_aligned_watchpoint): Renamed to
3772 i386_insert_aligned_watchpoint and made static.
3773 All uses updated.
3774 (i386_dr_remove_aligned_watchpoint): Renamed to
3775 i386_remove_aligned_watchpoint and made static.
3776 All uses updated.
3777 (i386_dr_update_inferior_debug_regs): Renamed to
3778 i386_update_inferior_debug_regs and made static.
3779 All uses updated.
3780 * nat/i386-dregs.h (i386_dr_show): Removed.
3781 (i386_dr_length_and_rw_bits): Likewise.
3782 (i386_dr_insert_aligned_watchpoint): Likewise.
3783 (i386_dr_remove_aligned_watchpoint): Likewise.
3784 (i386_dr_update_inferior_debug_regs): Likewise.
3785
3786 2014-06-19 Gary Benson <gbenson@redhat.com>
3787
3788 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3789 * configure: Regenerate.
3790 * config.in: Likewise.
3791 * main.c (signal.h): New include.
3792 (setup_alternate_signal_stack): New function.
3793 (captured_main): Call the above.
3794 * cp-support.c (signal.h): New include.
3795 (catch_demangler_crashes): New flag.
3796 (SIGJMP_BUF): New define.
3797 (SIGSETJMP): Likewise.
3798 (SIGLONGJMP): Likewise.
3799 (gdb_demangle_jmp_buf): New static global.
3800 (gdb_demangle_attempt_core_dump): Likewise.
3801 (gdb_demangle_signal_handler): New function.
3802 (gdb_demangle): If catch_demangler_crashes is set, install the
3803 above signal handler before calling bfd_demangle, and restore
3804 the original signal handler afterwards. Display the offending
3805 symbol and call demangler_warning the first time a segmentation
3806 fault is caught.
3807 (_initialize_cp_support): New maint set/show command.
3808
3809 2014-06-19 Gary Benson <gbenson@redhat.com>
3810
3811 * utils.h (resource_limit_kind): New enum.
3812 (can_dump_core): New declaration.
3813 (warn_cant_dump_core): Likewise.
3814 (dump_core): Likewise.
3815 * utils.c (dump_core): Made nonstatic. Added new
3816 parameter "limit_kind".
3817 (can_dump_core): Made nonstatic. Moved printing code to...
3818 (warn_cant_dump_core): New function.
3819 (can_dump_core_warn): Likewise.
3820 (internal_vproblem): Replace calls to can_dump_core with
3821 calls to can_dump_core_warn. Supply new argument to each.
3822
3823 2014-06-19 Gary Benson <gbenson@redhat.com>
3824
3825 * utils.h (demangler_vwarning): New declaration.
3826 (demangler_warning): Likewise.
3827 * utils.c (struct internal_problem)
3828 <user_settable_should_quit>: New field.
3829 <user_settable_should_dump_core>: Likewise
3830 (internal_error_problem): Add values for above new fields.
3831 (internal_warning_problem): Likewise.
3832 (demangler_warning_problem): New static global.
3833 (demangler_vwarning): New function.
3834 (demangler_warning): Likewise.
3835 (add_internal_problem_command): Selectively add commands.
3836 (_initialize_utils): New internal problem command.
3837 * maint.c (maintenance_demangler_warning): New function.
3838 (_initialize_maint_cmds): New command.
3839
3840 2014-06-18 Tom Tromey <tromey@redhat.com>
3841
3842 * f-valprint.c (info_common_command_for_block): Update.
3843 * symtab.h (struct general_symbol_info) <common_block>: Now
3844 const.
3845
3846 2014-06-18 Tom Tromey <tromey@redhat.com>
3847
3848 * symtab.h (struct symtab) <blockvector>: Now const.
3849 * ada-lang.c (ada_add_global_exceptions): Update.
3850 * buildsym.c (augment_type_symtab): Update.
3851 * dwarf2read.c (dw2_lookup_symbol): Update.
3852 * jit.c (finalize_symtab): Update.
3853 * jv-lang.c (add_class_symtab_symbol): Update.
3854 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3855 Update.
3856 * objfiles.c (objfile_relocate1): Update.
3857 * psymtab.c (lookup_symbol_aux_psymtabs)
3858 (maintenance_check_psymtabs): Update.
3859 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3860 Update.
3861 * spu-tdep.c (spu_catch_start): Update.
3862 * symmisc.c (dump_symtab_1): Update.
3863 * symtab.c (lookup_global_symbol_from_objfile)
3864 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3865 (basic_lookup_transparent_type_quick)
3866 (basic_lookup_transparent_type, find_pc_sect_symtab)
3867 (find_pc_sect_line, search_symbols): Update.
3868 * block.c (find_block_in_blockvector): Make "bl" const.
3869 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3870 const.
3871 (blockvector_contains_pc): Make "bv" const.
3872 (block_for_pc_sect): Update.
3873 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3874 (blockvector_contains_pc): Update.
3875 * breakpoint.c (resolve_sal_pc): Update.
3876 * inline-frame.c (block_starting_point_at): Update.
3877
3878 2014-06-18 Tom Tromey <tromey@redhat.com>
3879
3880 * completer.c (complete_line): Make "line_buffer" const.
3881 * completer.h (complete_line): Update.
3882
3883 2014-06-18 Tom Tromey <tromey@redhat.com>
3884
3885 * symtab.c (add_macro_name): Remove unneeded cast.
3886
3887 2014-06-18 Tom Tromey <tromey@redhat.com>
3888
3889 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3890 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3891
3892 2014-06-18 Tom Tromey <tromey@redhat.com>
3893
3894 * probe.c (info_probes_for_ops): Make "arg" const.
3895 * probe.h (info_probes_for_ops): Update.
3896
3897 2014-06-18 Tom Tromey <tromey@redhat.com>
3898
3899 * varobj.c (varobj_create): Update.
3900 * valops.c (value_of_this): Update.
3901 * tracepoint.c (add_local_symbols, scope_info): Update.
3902 * symtab.h (struct general_symbol_info) <block>: Now const.
3903 * symtab.c (skip_prologue_sal)
3904 (default_make_symbol_completion_list_break_on)
3905 (skip_prologue_using_sal): Update.
3906 * stack.h (iterate_over_block_locals)
3907 (iterate_over_block_local_vars): Update.
3908 * stack.c (print_frame_args): Update.
3909 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3910 parameter const.
3911 (get_selected_block): Make return type const.
3912 * python/py-frame.c (frapy_block): Update.
3913 * python/py-block.c (gdbpy_block_for_pc): Update.
3914 * p-exp.y (%union) <bval>: Now const.
3915 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3916 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3917 * m2-exp.y (%union) <bval>: Now const.
3918 * linespec.c (get_current_search_block): Make return type const.
3919 (create_sals_line_offset, find_label_symbols): Update.
3920 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3921 Update.
3922 (block_starting_point_at): Make "block" const.
3923 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3924 (check_exception_resume): Update.
3925 * guile/scm-frame.c (gdbscm_frame_block): Update.
3926 * guile/scm-block.c (gdbscm_lookup_block): Update.
3927 * frame.h (get_frame_block): Update.
3928 (get_selected_block): Make return type const.
3929 * frame.c (frame_id_inner): Update.
3930 * f-valprint.c (info_common_command_for_block)
3931 (info_common_command): Update.
3932 * dwarf2loc.c (dwarf2_find_location_expression)
3933 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3934 (locexpr_describe_location_piece): Update.
3935 * c-exp.y (%union) <bval>: Now const.
3936 * breakpoint.c (resolve_sal_pc): Update.
3937 * blockframe.c (get_frame_block):Make return type const.
3938 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3939 (block_innermost_frame): Update.
3940 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3941 (block_for_pc, block_for_pc_sect): Update.
3942 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3943 'pblock' const.
3944 (block_for_pc_sect, block_for_pc): Make return type const.
3945 * ax-gdb.c (gen_expr): Update.
3946 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3947 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3948 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3949 (ada_read_var_value): Update.
3950 * ada-exp.y (struct name_info) <block>: Now const.
3951 (%union): Likewise.
3952 (block_lookup): Constify.
3953
3954 2014-06-18 Gary Benson <gbenson@redhat.com>
3955
3956 * nat/i386-dregs.h: New file.
3957 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3958 * i386-nat.h (i386-dregs.h): New include.
3959 (DR_FIRSTADDR): Now in i386-dregs.h.
3960 (DR_LASTADDR): Likewise.
3961 (DR_NADDR): Likewise.
3962 (DR_STATUS): Likewise.
3963 (DR_CONTROL): Likewise.
3964 (i386_debug_reg_state): Likewise.
3965 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3966
3967 2014-06-18 Don Breazeal <donb@codesourcery.com>
3968
3969 * breakpoint.c (set_longjmp_breakpoint): Call
3970 momentary_breakpoint_from_master with additional argument.
3971 (set_longjmp_breakpoint_for_call_dummy): Call
3972 momentary_breakpoint_from_master with additional argument.
3973 (set_std_terminate_breakpoint): Call
3974 momentary_breakpoint_from_master with additional argument.
3975 (momentary_breakpoint_from_master): Add argument to function
3976 definition and use it to initialize structure member flag.
3977 (clone_momentary_breakpoint): Call
3978 momentary_breakpoint_from_master with additional argument.
3979 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3980 member flags set in momentary_breakpoint_from_master.
3981
3982 2014-06-18 Gary Benson <gbenson@redhat.com>
3983
3984 * i386-nat.c (i386_show_dr): Renamed to
3985 i386_dr_show and made nonstatic. All uses updated.
3986 (i386_length_and_rw_bits): Renamed to
3987 i386_dr_length_and_rw_bits and made nonstatic.
3988 All uses updated.
3989 (i386_insert_aligned_watchpoint): Renamed to
3990 i386_dr_insert_aligned_watchpoint and made nonstatic.
3991 All uses updated.
3992 (i386_remove_aligned_watchpoint): Renamed to
3993 i386_dr_remove_aligned_watchpoint and made nonstatic.
3994 All uses updated.
3995 (i386_update_inferior_debug_regs): Renamed to
3996 i386_dr_update_inferior_debug_regs and made nonstatic.
3997 All uses updated.
3998
3999 2014-06-18 Gary Benson <gbenson@redhat.com>
4000
4001 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4002 (i386_dr_low_can_set_control): Likewise.
4003 (i386_dr_low_set_addr): Likewise.
4004 (i386_dr_low_set_control): Likewise.
4005 (i386_dr_low_get_addr): Likewise.
4006 (i386_dr_low_get_status): Likewise.
4007 (i386_dr_low_get_control): Likewise.
4008 (i386_insert_aligned_watchpoint): Use new macros.
4009 (i386_update_inferior_debug_regs): Likewise.
4010 (i386_stopped_data_address): Likewise.
4011
4012 2014-06-18 Gary Benson <gbenson@redhat.com>
4013
4014 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4015 New parameter. All uses updated.
4016
4017 2014-06-18 Gary Benson <gbenson@redhat.com>
4018
4019 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4020 All uses updated.
4021
4022 2014-06-18 Gary Benson <gbenson@redhat.com>
4023
4024 * i386-nat.c (debug_printf): New macro.
4025 (i386_get_debug_register_length): Likewise.
4026 (TARGET_HAS_DR_LEN_8): Use above macro.
4027 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4028 and printf_unfiltered. Use phex to format values.
4029
4030 2014-06-18 Gary Benson <gbenson@redhat.com>
4031
4032 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4033 Make const.
4034
4035 2014-06-18 Gary Benson <gbenson@redhat.com>
4036
4037 * i386-nat.c: Comment changes.
4038
4039 2014-06-18 Gary Benson <gbenson@redhat.com>
4040
4041 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4042
4043 2014-06-18 Gary Benson <gbenson@redhat.com>
4044
4045 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4046 (i386_insert_aligned_watchpoint): Likewise.
4047 (i386_remove_aligned_watchpoint): Likewise.
4048 (i386_handle_nonaligned_watchpoint): Likewise.
4049
4050 2014-06-18 Gary Benson <gbenson@redhat.com>
4051
4052 * i386-nat.c: Whitespace changes.
4053
4054 2014-06-17 Samuel Bronson <naesten@gmail.com>
4055
4056 * MAINTAINERS: Update Roland McGrath's email address.
4057 Thanks to Sergio Durigan Junior for pointing out that he left
4058 Red Hat a while ago, and giving me a current address.
4059
4060 2014-06-17 Tom Tromey <tromey@redhat.com>
4061
4062 * utils.h (savestring): Remove declaration.
4063
4064 2014-06-17 Tom Tromey <tromey@redhat.com>
4065
4066 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4067
4068 2014-06-16 Keith Seitz <keiths@redhat.com>
4069
4070 PR mi/15863
4071 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4072 to update the varobj if inferior_ptid is null_ptid.
4073
4074 2014-06-16 Tom Tromey <tromey@redhat.com>
4075
4076 * target.h (struct target_ops) <to_info_proc>: Make parameter
4077 const.
4078 (target_info_proc): Update.
4079 * target.c (target_info_proc): Make "args" const.
4080 * procfs.c (procfs_info_proc): Update.
4081 * linux-tdep.c (linux_info_proc): Update.
4082 (linux_core_info_proc_mappings): Make "args" const.
4083 (linux_core_info_proc): Update.
4084 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4085 * gdbarch.c: Rebuild.
4086 * gdbarch.h: Rebuild.
4087 * corelow.c (core_info_proc): Update.
4088
4089 2014-06-16 Tom Tromey <tromey@redhat.com>
4090
4091 * target.h (struct target_ops) <to_disconnect>: Make parameter
4092 const.
4093 (target_disconnect): Update.
4094 * target.c (target_disconnect): Make "args" const.
4095 * target-delegates.c: Rebuild.
4096 * remote.c (remote_disconnect): Update.
4097 * record.h (record_disconnect): Update.
4098 * record.c (record_disconnect): Update.
4099 * inf-child.c (inf_child_disconnect): Update.
4100
4101 2014-06-16 Tom Tromey <tromey@redhat.com>
4102
4103 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4104 * target.c (debug_to_rcmd, default_rcmd): Update.
4105 * target-delegates.c: Rebuild.
4106 * remote.c (remote_rcmd): Update.
4107 * monitor.c (monitor_rcmd): Update.
4108
4109 2014-06-16 Pedro Alves <palves@redhat.com>
4110
4111 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4112 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4113 have OBJF_SHARED set.
4114 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4115 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4116 instead of OBJF_USERLOADED.
4117 * objfiles.h (OBJF_SHARED): Update comment.
4118 (userloaded_objfile_contains_address_p): Rename to ...
4119 (shared_objfile_contains_address_p): ... this, and update
4120 comments.
4121 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4122 new objfile.
4123 (remove_symbol_file_command): Skip objfiles that don't have
4124 OBJF_SHARED set.
4125
4126 2014-06-16 Tom Tromey <tromey@redhat.com>
4127
4128 * minsyms.h (prim_record_minimal_symbol)
4129 (prim_record_minimal_symbol_and_info): Update comments.
4130
4131 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4132
4133 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4134 or --without-guile, according to how GDB was built.
4135
4136 2014-06-13 Tom Tromey <tromey@redhat.com>
4137
4138 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4139 to help_list.
4140 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4141 to help_list.
4142 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4143 help_list.
4144 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4145 help_list.Pass all_commands, not -1, to help_list.
4146 * cli/cli-dump.c (dump_command, append_command)
4147 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4148 (binary_dump_command, binary_append_command): Pass all_commands,
4149 not -1, to help_list.
4150 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4151 -1, to help_list.
4152 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4153 -1, to help_list.
4154 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4155 help_list.
4156 * top.c (set_history): Pass all_commands, not -1, to help_list.
4157 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4158 all_commands, not -1, to help_list.
4159 * symfile.c (overlay_command): Pass all_commands, not -1, to
4160 help_list.
4161 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4162 help_list.
4163 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4164 help_list.
4165 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4166 -1, to help_list.
4167 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4168 not -1, to help_list.
4169 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4170 not -1, to help_list.
4171 * maint.c (maintenance_command, maintenance_info_command)
4172 (maintenance_print_command, maintenance_set_cmd): Pass
4173 all_commands, not -1, to help_list.
4174 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4175 help_list.
4176 * language.c (set_check): Pass all_commands, not -1, to help_list.
4177 * infcmd.c (unset_command): Pass all_commands, not -1, to
4178 help_list.
4179 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4180 help_list.
4181 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4182 help_list.
4183 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4184 help_list.
4185 * breakpoint.c (save_command): Pass all_commands, not -1, to
4186 help_list.
4187 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4188 all_commands, not -1, to help_list.
4189
4190 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4191
4192 * regcache.c (struct register_to_invalidate): New structure.
4193 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4194 functions.
4195 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4196
4197 2014-06-12 Yao Qi <yao@codesourcery.com>
4198
4199 * varobj.c (varobj_get_num_children): Call
4200 varobj_is_dynamic_p.
4201 (varobj_list_children): Likewise.
4202 (varobj_update): Likewise. Update comments.
4203
4204 2014-06-12 Yao Qi <yao@codesourcery.com>
4205
4206 * varobj.c (varobj_pretty_printed_p): Rename to ...
4207 (varobj_is_dynamic_p): ... this. New function.
4208 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4209 (varobj_is_dynamic_p): Declare.
4210 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4211 (mi_print_value_p, varobj_update_one): Likewise.
4212
4213 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4214 Yao Qi <yao@codesourcery.com>
4215
4216 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4217 (varobj_get_iterator): Wrap up code for pretty-printer by
4218 "#if HAVE_PYTHON" and "#endif".
4219 (update_dynamic_varobj_children): Likewise.
4220
4221 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4222 Yao Qi <yao@codesourcery.com>
4223
4224 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4225 gdb_python_initialized is false. Move some code from varobj.c.
4226 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4227 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4228 (struct varobj_item): Moved to varobj-iter.h".
4229 (varobj_clear_saved_item): New function.
4230 (update_dynamic_varobj_children): Move python-related code to
4231 py-varobj.c.
4232 (free_variable): Call varobj_clear_saved_item and
4233 varobj_iter_delete.
4234
4235 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4236 Yao Qi <yao@codesourcery.com>
4237
4238 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4239 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4240 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4241 (py-varobj.o): New rule.
4242 * python/py-varobj.c: New file.
4243 * python/python-internal.h (py_varobj_get_iterator): Declare.
4244 * varobj-iter.h: New file.
4245 * varobj.c: Include "varobj-iter.h"
4246 (struct varobj) <child_iter>: Change its type from "PyObject *"
4247 to "struct varobj_iter *".
4248 <saved_item>: Likewise.
4249 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4250 [HAVE_PYTHON] (varobj_get_iterator): New function.
4251 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4252 python-specific code to python/py-varobj.c.
4253 (install_visualizer): Call varobj_iter_delete instead of
4254 Py_XDECREF.
4255 * varobj.h (varobj_ensure_python_env): Declare.
4256
4257 2014-06-12 Yao Qi <yao@codesourcery.com>
4258
4259 * varobj.c (struct varobj_item): New structure.
4260 (create_child_with_value): Update declaration.
4261 (varobj_add_child): Replace arguments 'name' and 'value' with
4262 'item'. All callers updated.
4263 (install_dynamic_child): Likewise.
4264 (update_dynamic_varobj_children): Likewise.
4265 (varobj_add_child): Likewise.
4266 (create_child_with_value): Likewise.
4267
4268 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4269
4270 * NEWS: Create a new section for the next release branch.
4271 Rename the section of the current branch, now that it has
4272 been cut.
4273
4274 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4275
4276 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4277 * version.in: Bump version to 7.8.50.DATE-cvs.
4278
4279 2014-06-11 Pedro Alves <palves@redhat.com>
4280
4281 PR remote/17028
4282 * ser-mingw.c (net_windows_socket_check_pending): New function.
4283 (net_windows_select_thread): Ignore spurious wakeups. Use
4284 net_windows_socket_check_pending.
4285 (net_windows_wait_handle): Check for pending events with
4286 ioctlsocket, through net_windows_socket_check_pending, instead of
4287 checking the socket's event.
4288
4289 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4290
4291 * python/python-internal.h (gdb_PyObject_GetAttrString)
4292 (gdb_PyObject_HasAttrString): New inline function definitions.
4293 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4294 char * of the second argument to PyObject_GetAttrString.
4295
4296 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4297
4298 * serial.c (serial_write): Fix index of character to be printed
4299 in call to serial_logchar when serial debug traces are enabled.
4300
4301 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4302
4303 * gdbtypes (resolve_dynamic_range): Add function description.
4304
4305 2014-06-09 Pedro Alves <palves@redhat.com>
4306
4307 * linux-nat.c (linux_child_follow_fork): Initialize status with
4308 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4309 inner block. Only pass the signal to PTRACE_DETACH if in pass
4310 state.
4311
4312 2014-06-09 Gary Benson <gbenson@redhat.com>
4313
4314 * common/signals.c (gdb_signal_from_host): Reorder to separate
4315 the always-available ANSI-standard signals from the signals that
4316 require checking.
4317 (do_gdb_signal_to_host): Likewise.
4318 * proc-events.c (signal_table): Likewise.
4319
4320 2014-06-08 Hui Zhu <hui@codesourcery.com>
4321
4322 * common/linux-ptrace.c (linux_disable_event_reporting): New
4323 function.
4324 * common/linux-ptrace.h (linux_disable_event_reporting): New
4325 declaration.
4326 * linux-nat.c (linux_child_follow_fork): Do a single step before
4327 detach.
4328
4329 2014-06-07 Keith Seitz <keiths@redhat.com>
4330
4331 Revert:
4332 PR c++/16253
4333 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4334 from symbol_matches_domain in symtab.c. All local callers
4335 of symbol_matches_domain updated.
4336 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4337 search STRUCT_DOMAIN.
4338 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4339 independently. standard_lookup will do that automatically.
4340 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4341 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4342 (cp_lookup_symbol_in_namespace): Likewise.
4343 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4344 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4345 may return a STRUCT_DOMAIN match.
4346 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4347 * cp-support.c: Include language.h.
4348 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4349 VAR_DOMAIN.
4350 * psymtab.c (match_partial_symbol): Compare the requested
4351 domain with the symbol's domain directly.
4352 (lookup_partial_symbol): Likewise.
4353 * symtab.c (lookup_symbol_in_language): Explain when/why
4354 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4355 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4356 appropriate languages.
4357 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4358 and moved to ada-lang.c
4359 (lookup_block_symbol): Explain that this function only returns
4360 symbol matching the requested DOMAIN.
4361 Compare the requested domain with the symbol's domain directly.
4362 (iterate_over_symbols): Compare the requested domain with the
4363 symbol's domain directly.
4364 * symtab.h (symbol_matches_domain): Remove.
4365
4366 2014-06-06 Doug Evans <xdje42@gmail.com>
4367
4368 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4369 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4370 (gdbscm_guile_version_is_at_least): Declare.
4371 (gdbscm_scm_string_to_int): Declare.
4372 * guile/guile.c (gdbscm_guile_major_version): New global.
4373 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4374 (guile_datadir): New static global.
4375 (gdbscm_guile_data_directory): New function.
4376 (initialize_scheme_side): Update.
4377 (misc_guile_functions): Add guile-data-directory.
4378 (initialize_gdb_module): Fetch guile version number.
4379 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4380 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4381 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4382 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4383 comments.
4384 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4385 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4386 * guile/scm-value.c (gdbscm_value_to_string): Only call
4387 scm_port_conversion_strategy if Guile version >= 2.0.6.
4388
4389 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4390
4391 * main.c (print_gdb_help): Add -q and --silent.
4392
4393 2014-06-06 Gary Benson <gbenson@redhat.com>
4394
4395 * common/signals.c: Remove preprocessor conditionals for
4396 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4397 SIGSEGV and SIGTERM.
4398 * proc-events.c: Likewise.
4399
4400 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4401
4402 * symfile.c (symfile_free_objfile): Remove restriction to
4403 OBJF_USERLOADED.
4404 * symfile-mem.c (symbol_file_add_from_memory): Call
4405 add_target_sections_of_objfile.
4406
4407 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4408
4409 * guile/scm-value.c (gdbscm_history_append_x): Use
4410 'vlscm_get_value_smob_arg_unsafe' instead of
4411 'vlscm_scm_to_value'.
4412
4413 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4414
4415 PR mi/15806
4416 * utils.c (printchar): Don't escape at all if quoter is NUL.
4417 Update function documentation to clarify effect of parameter
4418 QUOTER.
4419 * remote.c (escape_buffer): Pass '\\' as the quoter to
4420 fputstrn_unfiltered.
4421 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4422 generate the output.
4423 (mi_solib_unloaded): Same.
4424
4425 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4426
4427 * development.sh: Delete.
4428 * Makefile.in (config.status): Adjust dependency on development.sh.
4429 * configure.ac: Adjust development.sh source call.
4430 * configure: Regenerate.
4431
4432 2014-06-04 Doug Evans <xdje42@gmail.com>
4433
4434 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4435 is_scheme_bkpt, spec.
4436 (bpscm_make_breakpoint_smob): Initialize new members.
4437 (gdbscm_create_breakpoint_x): Split into two ...
4438 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4439 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4440 (scheme_function breakpoint_functions): Update.
4441 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4442 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4443 register-breakpoint!.
4444
4445 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4446
4447 PR server/17023
4448 * mem-break.c (z_type_supported): Return zero if
4449 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4450
4451 2014-06-04 Tom Tromey <tromey@redhat.com>
4452
4453 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4454 value_from_contents_and_address_unresolved.
4455 (ada_template_to_fixed_record_type_1): Likewise.
4456 (ada_which_variant_applies): Likewise.
4457 * value.h (value_from_contents_and_address_unresolved): Declare.
4458 * value.c (value_from_contents_and_address_unresolved): New
4459 function.
4460 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4461 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4462 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4463
4464 2014-06-04 Tom Tromey <tromey@redhat.com>
4465
4466 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4467
4468 2014-06-04 Tom Tromey <tromey@redhat.com>
4469
4470 * procfs.c (procfs_attach): Make "args" const.
4471 * windows-nat.c (windows_attach): Make "args" const.
4472 * nto-procfs.c (procfs_attach): Make "args" const.
4473 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4474 * go32-nat.c (go32_attach): Make "args" const.
4475 * gnu-nat.c (gnu_attach): Make "args" const.
4476 * darwin-nat.c (darwin_attach): Make "args" const.
4477 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4478 * linux-nat.c (linux_nat_attach): Make "args" const.
4479 * remote.c (extended_remote_attach_1, extended_remote_attach):
4480 Make "args" const.
4481 * target.h (struct target_ops) <to_attach>: Make "args" const.
4482 (find_default_attach): Likewise.
4483 * utils.c (parse_pid_to_attach): Make "args" const.
4484 * utils.h (parse_pid_to_attach): Update.
4485
4486 2014-06-04 Tom Tromey <tromey@redhat.com>
4487
4488 * target-delegates.c: Rebuild.
4489 * target.c (default_thread_address_space): New function.
4490 (target_thread_address_space): Simplify.
4491 * target.h (struct target_ops) <to_thread_address_space>: Add
4492 TARGET_DEFAULT_FUNC.
4493
4494 2014-06-04 Doug Evans <xdje42@gmail.com>
4495
4496 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4497
4498 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4499
4500 * record-btrace.c: Include event-loop.h and inf-loop.h.
4501 (record_btrace_resume_exec_dir)
4502 (record_btrace_async_inferior_event_handler)
4503 (record_btrace_handle_async_inferior_event): New.
4504 (record_btrace_open): Create async event handler.
4505 (record_btrace_close): Delete async event handler.
4506 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4507 Mark async event handler.
4508 (record_btrace_execution_direction): New.
4509 (init_record_btrace_ops): Initialize to_execution_direction.
4510
4511 2014-06-03 Doug Evans <xdje42@gmail.com>
4512
4513 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4514 (gdbscm_make_parameter): Ditto.
4515
4516 2014-06-03 Doug Evans <dje@google.com>
4517
4518 * exec.c (exec_close_1): Call clear_section_table instead of
4519 resize_section_table.
4520 (clear_section_table): New function.
4521 (resize_section_table): Make static. Rename arg num_added to
4522 adjustment.
4523 * exec.h (clear_section_table): Declare.
4524 (resize_section_table): Delete.
4525 * progspace.c (release_program_space): Call clear_section_table
4526 instead of resize_section_table.
4527
4528 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4529
4530 * NEWS (Python Scripting): Add entry about the new xmethods
4531 feature.
4532
4533 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4534
4535 * python/py-xmethods.c: New file.
4536 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4537 (objfpy_dealloc): XDECREF on the new xmethods field.
4538 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4539 field.
4540 (objfpy_get_xmethods): New function.
4541 (objfile_getset): New entry 'xmethods'.
4542 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4543 (pspy_dealloc): XDECREF on the new xmethods field.
4544 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4545 field.
4546 (pspy_get_xmethods): New function.
4547 (pspace_getset): New entry 'xmethods'.
4548 * python/python-internal.h: Add declarations for new functions.
4549 * python/python.c (_initialize_python): Invoke
4550 gdbpy_initialize_xmethods.
4551 * python/lib/gdb/__init__.py (xmethods): New
4552 attribute.
4553 * python/lib/gdb/xmethod.py: New file.
4554 * python/lib/gdb/command/xmethods.py: New file.
4555
4556 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4557
4558 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4559 best match method returned by find_overload_match is an xmethod.
4560 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4561 the best matching operator returned by find_overload_match is an
4562 xmethod.
4563 * valops.c: #include "extension.h".
4564 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4565 Return void. The list of matching source methods is returned in
4566 "fn_list" and a vector of matching debug method workers is
4567 returned in "xm_worker_vec". Update all callers.
4568 (value_find_oload_method_list): Likewise.
4569 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4570 non-NULL, then the index of the best matching method in this
4571 vector is returned. Update all callers.
4572 (find_overload_match): Include xmethods while performing overload
4573 resolution.
4574
4575 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4576
4577 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4578 * extension-priv.h (struct extension_language_ops): Add the
4579 xmethod interface.
4580 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4581 get_matching_xmethod_workers, get_xmethod_argtypes,
4582 invoke_xmethod, free_xmethod_worker,
4583 free_xmethod_worker_vec): New functions.
4584 * extension.h: #include "common/vec.h".
4585 New function declarations.
4586 (struct xmethod_worker): New struct.
4587 (VEC (xmethod_worker_ptr)): New vector type.
4588 (xmethod_worker_ptr): New typedef.
4589 (xmethod_worker_vec): Likewise.
4590 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4591 builtin_type.
4592 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4593 (struct builtin_type): New field "xmethod".
4594 * valarith.c (value_ptradd): Assert that the value argument is not
4595 lval_xcallable.
4596 * valops.c (value_must_coerce_to_target): Return 0 for
4597 lval_xcallable values.
4598 * value.c (struct value): New field XM_WORKER in the field
4599 LOCATION.
4600 (value_address, value_raw_address): Return 0 for lval_xcallable
4601 values.
4602 (set_value_address): Assert that the value is not an
4603 lval_xcallable.
4604 (value_free): Free the associated xmethod worker when freeing
4605 lval_xcallable values.
4606 (set_value_component_location): Assert that the WHOLE value is not
4607 lval_xcallable.
4608 (value_of_xmethod, call_xmethod): New functions.
4609 * value.h: Declare "struct xmethod_worker".
4610 Declare new functions value_of_xmethod, call_xmethod.
4611
4612 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4613 Pedro Alves <palves@redhat.com>
4614
4615 PR breakpoints/17000
4616 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4617 New function, extracted from software_breakpoint_inserted_here_p.
4618 (software_breakpoint_inserted_here_p): Replace factored out code
4619 by call to find_non_raw_software_breakpoint_inserted_here.
4620 (bp_target_info_copy_insertion_state): New function.
4621 (bkpt_insert_location): Handle the case of a single-step
4622 breakpoint already inserted at the same address.
4623 (bkpt_remove_location): Handle the case of a single-step
4624 breakpoint still inserted at the same address.
4625 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4626 breakpoint already inserted at the same address.
4627 (deprecated_remove_raw_breakpoint): Handle the case of a
4628 non-raw breakpoint still inserted at the same address.
4629 (find_single_step_breakpoint): New function, extracted from
4630 single_step_breakpoint_inserted_here_p.
4631 (find_single_step_breakpoint): New function,
4632 factored out from single_step_breakpoint_inserted_here_p.
4633 (single_step_breakpoint_inserted_here_p): Reimplement.
4634
4635 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4636
4637 Pushed by Joel Brobecker <brobecker@adacore.com>
4638 * source.c (show_substitute_path_command): Fix display of matching
4639 substitution rules.
4640
4641 2014-06-03 Gary Benson <gbenson@redhat.com>
4642
4643 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4644
4645 2014-06-02 Doug Evans <xdje42@gmail.com>
4646
4647 Add parameter support for Guile.
4648 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4649 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4650 (scm-param.o): New rule.
4651 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4652 (gdbscm_misc_error): Declare.
4653 (gdbscm_canonicalize_command_name): Declare.
4654 (gdbscm_scm_to_host_string): Declare.
4655 (gdbscm_scm_from_host_string): Declare.
4656 (gdbscm_initialize_parameters): Declare.
4657 * guile/guile.c (initialize_gdb_module): Call
4658 gdbscm_initialize_parameters.
4659 * guile/lib/gdb.scm: Export parameter symbols.
4660 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4661 cmdscm_canonicalize_name and made public. All callers updated.
4662 * guile/scm-exception.c (gdbscm_misc_error): New function.
4663 * guile/scm-param.c: New file.
4664 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4665 (gdbscm_scm_to_host_string): New function.
4666 (gdbscm_scm_from_host_string): New function.
4667 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4668
4669 2014-06-02 Doug Evans <xdje42@gmail.com>
4670
4671 Add command support for Guile.
4672 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4673 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4674 (scm-cmd.o): New rule.
4675 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4676 (gdbscm_user_error_p): Declare.
4677 (gdbscm_parse_command_name): Declare.
4678 (gdbscm_valid_command_class_p): Declare.
4679 (gdbscm_initialize_commands): Declare.
4680 * guile/guile.c (initialize_gdb_module): Call
4681 gdbscm_initialize_commands.
4682 * guile/lib/gdb.scm: Export command symbols.
4683 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4684 (throw-user-error): New function.
4685 * guile/scm-cmd.c: New file.
4686 * guile/scm-exception.c (user_error_symbol): New static global.
4687 (gdbscm_user_error_p): New function.
4688 (gdbscm_initialize_exceptions): Set user_error_symbol.
4689 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4690
4691 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4692
4693 * top.c (command_loop): Handle comments here...
4694 (command_line_input): ... not here.
4695
4696 2014-06-02 Doug Evans <xdje42@gmail.com>
4697
4698 Add progspace support for Guile.
4699 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4700 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4701 (scm-progspace.o): New rule.
4702 * guile/guile-internal.h (pspace_smob): New typedef.
4703 (psscm_pspace_smob_pretty_printers): Declare.
4704 (psscm_pspace_smob_from_pspace): Declare.
4705 (psscm_scm_from_pspace): Declare.
4706 * guile/guile.c (initialize_gdb_module): Call
4707 gdbscm_initialize_pspaces.
4708 * guile/lib/gdb.scm: Export progspace symbols.
4709 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4710 support.
4711 (append-pretty-printer!): Ditto.
4712 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4713 Implement.
4714 * guile/scm-progspace.c: New file.
4715
4716 2014-06-03 Alan Modra <amodra@gmail.com>
4717
4718 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4719 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4720
4721 2014-06-02 Doug Evans <dje@google.com>
4722
4723 Add support for skeletonless type units.
4724 * dwarf2read.c (struct dwarf2_per_objfile): New member
4725 n_allocated_type_units.
4726 (struct dwarf2_per_objfile) <tu_stats>: New member
4727 nr_all_type_units_reallocs.
4728 (create_signatured_type_table_from_index): Initialize
4729 n_allocated_type_units
4730 (create_all_type_units): Ditto.
4731 (add_type_unit): Move up in file. New arg slot.
4732 All callers updated. Increase space for all_type_units more
4733 efficiently.
4734 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4735 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4736 (lookup_dwp_signatured_type): Ditto.
4737 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4738 All callers updated.
4739 (build_type_psymtabs_1): Leave type_unit_groups as
4740 NULL if no TUs present.
4741 (print_tu_stats): New function.
4742 (process_skeletonless_type_unit): New function.
4743 (process_dwo_file_for_skeletonless_type_units): New
4744 function.
4745 (process_skeletonless_type_units): New function.
4746 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4747 Call print tu_stats if debugging enabled.
4748
4749 2014-06-02 Pedro Alves <palves@redhat.com>
4750
4751 * breakpoint.c (build_target_command_list): Don't build a command
4752 list if we have any duplicate location that isn't a dprintf.
4753
4754 2014-06-02 Pedro Alves <palves@redhat.com>
4755
4756 * breakpoint.c (dprintf_breakpoint_hit): New function.
4757 (initialize_breakpoint_ops): Install it as dprintf's
4758 breakpoint_hit method.
4759
4760 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4761
4762 * source.c (substitute_path_rule_matches): Simplify using
4763 filename_ncmp instead of FILENAME_CMP.
4764
4765 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4766
4767 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4768
4769 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4770
4771 * configure.ac: When Guile is available, check for the
4772 availability of 'scm_new_smob'.
4773 * configure, config.h.in: Regenerate.
4774 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4775 function.
4776
4777 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4778
4779 * frame.c (struct frame_info): Add stop_string field.
4780 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4781 (get_prev_frame_always): Old content moved into
4782 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4783 TRY_CATCH, handle MEMORY_ERROR exceptions.
4784 (frame_stop_reason_string): New function definition.
4785 * frame.h (unwind_stop_reason_to_string): Extend comment to
4786 mention frame_stop_reason_string.
4787 (frame_stop_reason_string): New function declaration.
4788 * stack.c (frame_info): Switch to frame_stop_reason_string.
4789 (backtrace_command_1): Switch to frame_stop_reason_string.
4790 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4791 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4792 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4793
4794 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4795
4796 * frame.c (frame_stop_reason_string): Rename to ...
4797 (unwind_stop_reason_to_string): this.
4798 * frame.h (frame_stop_reason_string): Rename to ...
4799 (unwind_stop_reason_to_string): this.
4800 * stack.c (frame_info): Update call to frame_stop_reason_string.
4801 (backtrace_command_1): Likewise.
4802 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4803 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4804
4805 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4806
4807 * frame.c (remove_prev_frame): New function.
4808 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4809 remove_prev_frame.
4810
4811 2014-05-29 Pedro Alves <palves@redhat.com>
4812
4813 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4814 and make it const. When a single-step decays to a continue,
4815 clear 'step', not 'hw_step'. Pass whether the caller wanted
4816 to step to user_visible_resume_ptid, not what we ask the
4817 target to do.
4818
4819 2014-05-29 Pedro Alves <palves@redhat.com>
4820
4821 * infrun.c (process_event_stop_test, handle_step_into_function)
4822 (handle_step_into_function_backward): Adjust.
4823 Don't set the even thread's stop_step and call stop_waiting before
4824 calling end_stepping_range. Instead do that ...
4825 (end_stepping_range): ... here. Take an ecs pointer parameter.
4826
4827 2014-05-29 Pedro Alves <palves@redhat.com>
4828
4829 * infrun.c (stop_stepping): Rename to ...
4830 (stop_waiting): ... this.
4831 (proceed): Update comment.
4832 (process_event_stop_test, handle_inferior_event)
4833 (handle_signal_stop, handle_step_into_function)
4834 (handle_step_into_function_backward): Update.
4835
4836 2014-05-29 Pedro Alves <palves@redhat.com>
4837
4838 * infcall.c (run_inferior_call): Don't check whether the current
4839 thread is running after the proceed call.
4840
4841 2014-05-29 Pedro Alves <palves@redhat.com>
4842 Tom Tromey <tromey@redhat.com>
4843
4844 * NEWS: Mention "maint set target-async", "set mi-async", and that
4845 background execution commands are now always available.
4846 * target.h (target_async_permitted): Update comment.
4847 * target.c (target_async_permitted, target_async_permitted_1):
4848 Default to 1.
4849 (set_target_async_command): Rename to ...
4850 (maint_set_target_async_command): ... this.
4851 (show_target_async_command): Rename to ...
4852 (maint_show_target_async_command): ... this.
4853 (_initialize_target): Adjust.
4854 * infcmd.c (prepare_execution_command): Make extern.
4855 * inferior.h (prepare_execution_command): Declare.
4856 * infrun.c (set_observer_mode): Leave target async alone.
4857 * mi/mi-interp.c (mi_interpreter_init): Install
4858 mi_on_sync_execution_done as sync_execution_done observer.
4859 (mi_on_sync_execution_done): New function.
4860 (mi_execute_command_input_handler): Don't print the prompt if we
4861 just started a synchronous command with an async target.
4862 (mi_on_resume): Check sync_execution before printing prompt.
4863 * mi/mi-main.h (mi_async_p): Declare.
4864 * mi/mi-main.c: Include gdbcmd.h.
4865 (mi_async_p): New function.
4866 (mi_async, mi_async_1): New globals.
4867 (set_mi_async_command, show_mi_async_command, mi_async): New
4868 functions.
4869 (exec_continue): Call prepare_execution_command.
4870 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4871 (mi_execute_async_cli_command): Use mi_async_p.
4872 (_initialize_mi_main): Install "set mi-async". Make
4873 "target-async" a deprecated alias.
4874
4875 2014-05-29 Pedro Alves <palves@redhat.com>
4876
4877 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4878 (_initialize_cli_interp): Adjust.
4879 * event-loop.c: Include "observer.h".
4880 (start_event_loop): Notify 'command_error' observers instead of
4881 calling display_gdb_prompt. Remove FIXME comment.
4882 * event-top.c (display_gdb_prompt): Remove call into the
4883 interpreters.
4884 * inf-loop.c: Include "observer.h".
4885 (inferior_event_handler): Notify 'command_error' observers instead
4886 of calling display_gdb_prompt.
4887 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4888 observers instead of calling display_gdb_prompt.
4889 * interps.c (interp_set): Don't call display_gdb_prompt.
4890 (current_interp_display_prompt_p): Delete.
4891 * interps.h (interp_prompt_p): Delete declaration.
4892 (interp_prompt_p_ftype): Delete.
4893 (struct interp_procs) <prompt_proc_p>: Delete field.
4894 (current_interp_display_prompt_p): Delete declaration.
4895 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4896 (_initialize_mi_interp): Adjust.
4897 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4898 'command_error' observers.
4899 (tui_on_sync_execution_done, tui_on_command_error): New
4900 functions.
4901 (tui_display_prompt_p): Delete.
4902 (_initialize_tui_interp): Adjust.
4903
4904 2014-05-29 Pedro Alves <palves@redhat.com>
4905
4906 PR gdb/13860
4907 * cli/cli-interp.c: Include infrun.h and observer.h.
4908 (cli_uiout, cli_interp): New globals.
4909 (cli_on_signal_received, cli_on_end_stepping_range)
4910 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4911 functions.
4912 (cli_interpreter_init): Install them as 'end_stepping_range',
4913 'signal_received' 'signal_exited', 'exited' and 'no_history'
4914 observers.
4915 (_initialize_cli_interp): Remove cli_interp local.
4916 * infrun.c (handle_inferior_event): Call the several stop reason
4917 observers instead of printing the stop reason directly.
4918 (end_stepping_range): New function.
4919 (print_end_stepping_range_reason, print_signal_exited_reason)
4920 (print_exited_reason, print_signal_received_reason)
4921 (print_no_history_reason): Make static, and add an uiout
4922 parameter. Print to that instead of to CURRENT_UIOUT.
4923 * infrun.h (print_end_stepping_range_reason)
4924 (print_signal_exited_reason, print_exited_reason)
4925 (print_signal_received_reason print_no_history_reason): New
4926 declarations.
4927 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4928 'mi_uiout'.
4929 <cli_uiout>: New field.
4930 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4931 uiout for CLI output. Install 'signal_received',
4932 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4933 observers.
4934 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4935 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4936 (mi_on_no_history): New functions.
4937 (ui_out_free_cleanup): Delete function.
4938 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4939 instead use the one already stored in the MI interpreter data.
4940 (mi_ui_out): Adjust.
4941 * tui/tui-interp.c: Include infrun.h and observer.h.
4942 (tui_interp): New global.
4943 (tui_on_signal_received, tui_on_end_stepping_range)
4944 (tui_on_signal_exited, tui_on_exited)
4945 (tui_on_no_history): New functions.
4946 (tui_init): Install them as 'end_stepping_range',
4947 'signal_received' 'signal_exited', 'exited' and 'no_history'
4948 observers.
4949 (_initialize_tui_interp): Delete tui_interp local.
4950
4951 2014-05-29 Pedro Alves <palves@redhat.com>
4952
4953 PR gdb/15713
4954 * linux-nat.c (linux_nat_resume_callback): Rename the second
4955 parameter to 'except'. Skip LP if it points to EXCEPT.
4956 (linux_nat_resume): Don't mark the event lwp as not stopped
4957 before resuming sibling lwps. Instead ask
4958 linux_nat_resume_callback to skip the event lwp. Mark it as not
4959 stopped after actually resuming it.
4960 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4961 resuming it.
4962 (wait_lwp): Mark the lwp as stopped here.
4963 (stop_wait_callback): Mark the lwp as not stopped right after
4964 resuming it. Don't mark lwps as stopped here.
4965 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4966 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4967
4968 2014-05-29 Pedro Alves <palves@redhat.com>
4969
4970 PR PR15693
4971 * infrun.c (resume): Determine how much to resume depending on
4972 whether the caller wanted a step, not whether we can hardware step
4973 the target. Mark all threads that we intend to run as running,
4974 unless we're calling an inferior function.
4975 (normal_stop): If the thread is running an infcall, don't finish
4976 thread state.
4977 * target.c (target_resume): Don't mark threads as running here.
4978
4979 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4980
4981 * serial.c (_initialize_serial): Remove support for
4982 the "set remotebaud" and "show remotebaud" commands.
4983 * NEWS: Add entry documenting the removal of that command.
4984
4985 2014-05-28 Yao Qi <yao@codesourcery.com>
4986
4987 * charset.c: Fix typo in comments.
4988
4989 2014-05-27 Gary Benson <gbenson@redhat.com>
4990
4991 * utils.c (internal_vproblem): Prompt for a bug report.
4992
4993 2014-05-26 Andy Wingo <wingo@igalia.com>
4994
4995 * guile/scm-arch.c (arscm_mark_arch_smob):
4996 * guile/scm-block.c (bkscm_mark_block_smob)
4997 (bkscm_mark_block_syms_progress_smob):
4998 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4999 * guile/scm-exception.c (exscm_mark_exception_smob):
5000 * guile/scm-frame.c (frscm_mark_frame_smob):
5001 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5002 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5003 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5004 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5005 (ppscm_mark_pretty_printer_worker_smob):
5006 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5007 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5008 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5009 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5010 mark functions.
5011 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5012 function.
5013
5014 2014-05-26 Andy Wingo <wingo@igalia.com>
5015 Doug Evans <xdje42@gmail.com>
5016
5017 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5018 empty_base_class. All uses updated.
5019 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5020 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5021 Adapt all callers.
5022 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5023 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5024 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5025 (gdbscm_gsmob_has_property_p, add_property_name)
5026 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5027 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5028 (gdb-object-has-property?, gdb-object-properties): Remove.
5029 (gdb-object-kind): Renamed from gsmob-kind.
5030
5031 2014-05-26 Andy Wingo <wingo@igalia.com>
5032
5033 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5034 * configure: Regenerate.
5035
5036 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5037
5038 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5039
5040 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5041
5042 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5043 (replay_memory_access_read_only, replay_memory_access_read_write)
5044 (replay_memory_access_types, replay_memory_access)
5045 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5046 (cmd_set_record_btrace, cmd_show_record_btrace)
5047 (cmd_show_replay_memory_access): New.
5048 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5049 (record_btrace_remove_breakpoint): Replace
5050 record_btrace_allow_memory_access with replay_memory_access.
5051 (_initialize_record_btrace): Add commands.
5052 * NEWS: Announce it.
5053
5054 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5055
5056 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5057
5058 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5059
5060 * MAINTAINERS (Write After Approval): Move self back from
5061 paper trail.
5062
5063 2014-05-22 Pedro Alves <palves@redhat.com>
5064
5065 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5066 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5067 (disable_randomization, enum exec_direction_kind)
5068 (execution_direction, stop_registers, start_remote)
5069 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5070 (wait_for_inferior, normal_stop, get_last_target_status)
5071 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5072 (insert_step_resume_breakpoint_at_sal)
5073 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5074 (set_step_info, print_stop_event, signal_stop_state)
5075 (signal_print_state, signal_pass_state, signal_stop_update)
5076 (signal_print_update, signal_pass_update)
5077 (update_signals_program_target, clear_exit_convenience_vars)
5078 (displaced_step_dump_bytes, update_observer_mode)
5079 (signal_catch_update, gdb_signal_from_command): Move
5080 declarations ...
5081 * infrun.h: ... to this new file.
5082 * amd64-tdep.c: Include infrun.h.
5083 * annotate.c: Include infrun.h.
5084 * arch-utils.c: Include infrun.h.
5085 * arm-linux-tdep.c: Include infrun.h.
5086 * arm-tdep.c: Include infrun.h.
5087 * break-catch-sig.c: Include infrun.h.
5088 * breakpoint.c: Include infrun.h.
5089 * common/agent.c: Include infrun.h instead of inferior.h.
5090 * corelow.c: Include infrun.h.
5091 * event-top.c: Include infrun.h.
5092 * go32-nat.c: Include infrun.h.
5093 * i386-tdep.c: Include infrun.h.
5094 * inf-loop.c: Include infrun.h.
5095 * infcall.c: Include infrun.h.
5096 * infcmd.c: Include infrun.h.
5097 * infrun.c: Include infrun.h.
5098 * linux-fork.c: Include infrun.h.
5099 * linux-nat.c: Include infrun.h.
5100 * linux-thread-db.c: Include infrun.h.
5101 * monitor.c: Include infrun.h.
5102 * nto-tdep.c: Include infrun.h.
5103 * procfs.c: Include infrun.h.
5104 * record-btrace.c: Include infrun.h.
5105 * record-full.c: Include infrun.h.
5106 * remote-m32r-sdi.c: Include infrun.h.
5107 * remote-mips.c: Include infrun.h.
5108 * remote-notif.c: Include infrun.h.
5109 * remote-sim.c: Include infrun.h.
5110 * remote.c: Include infrun.h.
5111 * reverse.c: Include infrun.h.
5112 * rs6000-tdep.c: Include infrun.h.
5113 * s390-linux-tdep.c: Include infrun.h.
5114 * solib-irix.c: Include infrun.h.
5115 * solib-osf.c: Include infrun.h.
5116 * solib-svr4.c: Include infrun.h.
5117 * target.c: Include infrun.h.
5118 * top.c: Include infrun.h.
5119 * windows-nat.c: Include infrun.h.
5120 * mi/mi-interp.c: Include infrun.h.
5121 * mi/mi-main.c: Include infrun.h.
5122 * python/py-threadevent.c: Include infrun.h.
5123
5124 2014-05-22 Pedro Alves <palves@redhat.com>
5125
5126 * infrun.c (handle_inferior_event): Store the exit code for
5127 --return-child-result here, instead of ...
5128 (print_exited_reason): ... here.
5129
5130 2014-05-21 Pedro Alves <palves@redhat.com>
5131
5132 PR gdb/13860
5133 * gdbthread.h (struct thread_control_state): New field
5134 `command_interp'.
5135 * infrun.c (follow_fork): Copy the new thread control field to the
5136 child fork thread.
5137 (clear_proceed_status_thread): Clear the new thread control field.
5138 (proceed): Set the new thread control field.
5139 * interps.h (command_interp): Declare.
5140 * interps.c (command_interpreter): New global.
5141 (command_interp): New function.
5142 (interp_exec): Set `command_interpreter' while here.
5143 * cli-out.c (cli_uiout_dtor): New function.
5144 (cli_ui_out_impl): Install it.
5145 * mi/mi-interp.c: Include cli-out.h.
5146 (mi_cmd_interpreter_exec): Add comment.
5147 (restore_current_uiout_cleanup): New function.
5148 (ui_out_free_cleanup): New function.
5149 (mi_on_normal_stop): If finishing an execution command started by
5150 a CLI command, or any kind of breakpoint-like event triggered,
5151 print the stop event to the output (CLI) stream.
5152 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5153
5154 2014-05-21 Pedro Alves <palves@redhat.com>
5155
5156 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5157 current source line having changed.
5158 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5159 * infrun.c (normal_stop): Adjust call to
5160 set_current_sal_from_frame.
5161 * source.c (clear_lines_listed_range): New function.
5162 (set_current_source_symtab_and_line, identify_source_line): Clear
5163 the lines listed range.
5164 (line_info): Handle the first "info line" after the current source
5165 line having changed.
5166 * stack.c (print_stack_frame): Remove center handling.
5167 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5168 center sal.line.
5169
5170 2014-05-21 Pedro Alves <palves@redhat.com>
5171
5172 * inf-child.c (inf_child_mourn_inferior): New function.
5173 * inf-child.h (inf_child_mourn_inferior): New declaration.
5174 * darwin-nat.c (darwin_mourn_inferior): Use
5175 inf_child_mourn_inferior.
5176 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5177 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5178 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5179 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5180 * windows-nat.c (windows_mourn_inferior): Likewise.
5181
5182 2014-05-21 Doug Evans <xdje42@gmail.com>
5183
5184 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5185
5186 2014-05-21 Doug Evans <xdje42@gmail.com>
5187
5188 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5189 (gdbscm_out_of_range_error): Ditto.
5190 (gdbscm_memory_error): Ditto.
5191 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5192 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5193 (gdbscm_out_of_range_error): Update.
5194 (gdbscm_memory_error): Update.
5195 (gdbscm_scm_to_target_string_unsafe): Delete.
5196
5197 2014-05-21 Pedro Alves <palves@redhat.com>
5198
5199 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5200 globals.
5201 (inf_child_open_target): New function.
5202 (inf_child_open): Use inf_child_open_target to push the target
5203 instead of erroring out.
5204 (inf_child_disconnect, inf_child_close)
5205 (inf_child_maybe_unpush_target): New functions.
5206 (inf_child_target): Install inf_child_disconnect and
5207 inf_child_close. Store a pointer to the returned object.
5208 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5209 declarations.
5210 * target.c (auto_connect_native_target): New global.
5211 (show_default_run_target): New function.
5212 (find_default_run_target): Return NULL if automatically connecting
5213 to the native target is disabled.
5214 (_initialize_target): Install set/show auto-connect-native-target.
5215 * NEWS: Mention "set auto-connect-native-target", and "target
5216 native".
5217 * linux-nat.c (super_close): New global.
5218 (linux_nat_close): Call super_close.
5219 (linux_nat_add_target): Store a pointer to the base class's
5220 to_close method.
5221 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5222 inf_child_maybe_unpush.
5223 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5224 already pushed.
5225 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5226 the inferior. Use inf_child_maybe_unpush_target.
5227 (inf_ttrace_attach): Don't push the target if it is already
5228 pushed.
5229 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5230 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5231 after mourning the inferior. Use inf_child_maybe_unpush_target.
5232 (darwin_attach_pid): Don't push the target if it is already
5233 pushed.
5234 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5235 mourning the inferior. Use inf_child_maybe_unpush_target.
5236 (gnu_detach): Use inf_child_maybe_unpush_target.
5237 * go32-nat.c (go32_create_inferior): Don't push the target if it
5238 is already pushed.
5239 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5240 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5241 (procfs_open): Rename to ...
5242 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5243 comments. Can target_preopen before changing node. Call
5244 inf_child_open_target to push the target explicitly.
5245 (procfs_attach): Don't push the target if it is already pushed.
5246 (procfs_detach): Use inf_child_maybe_unpush_target.
5247 (procfs_create_inferior): Don't push the target if it is already
5248 pushed.
5249 (nto_native_ops): New global.
5250 (procfs_open): Reimplement.
5251 (procfs_native_open): New function.
5252 (init_procfs_targets): Install procfs_native_open as to_open of
5253 "target native". Store a pointer to the "native" target in
5254 nto_native_ops.
5255 * procfs.c (procfs_attach): Don't push the target if it is already
5256 pushed.
5257 (procfs_detach): Use inf_child_maybe_unpush_target.
5258 (procfs_mourn_inferior): Only unpush the target after mourning the
5259 inferior. Use inf_child_maybe_unpush_target.
5260 (procfs_init_inferior): Don't push the target if it is already
5261 pushed.
5262 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5263 if it is already pushed.
5264
5265 2014-05-21 Pedro Alves <palves@redhat.com>
5266
5267 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5268 and "procfs" targets are now called "native" instead.
5269
5270 2014-05-21 Pedro Alves <palves@redhat.com>
5271
5272 * go32-nat.c (go32_open): Delete.
5273 (go32_target): Don't override the to_open method.
5274
5275 2014-05-21 Pedro Alves <palves@redhat.com>
5276
5277 * nto-procfs.c (procfs_can_run): New function.
5278 (nto_procfs_ops): New global.
5279 (init_procfs_targets): New, based on procfs_target. Install
5280 "target native" in addition to "target procfs".
5281 (_initialize_procfs): Call init_procfs_targets instead of adding
5282 the target here.
5283
5284 2014-05-21 Pedro Alves <palves@redhat.com>
5285
5286 * windows-nat.c (windows_target): Don't override to_shortname,
5287 to_longname or to_doc.
5288
5289 2014-05-21 Pedro Alves <palves@redhat.com>
5290
5291 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5292 to_doc.
5293
5294 2014-05-21 Pedro Alves <palves@redhat.com>
5295
5296 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5297 to_shortname, to_longname or to_doc.
5298
5299 2014-05-21 Pedro Alves <palves@redhat.com>
5300
5301 * go32-nat.c (go32_target): Don't override to_shortname,
5302 to_longname or to_doc.
5303
5304 2014-05-21 Pedro Alves <palves@redhat.com>
5305
5306 * inf-child.c (inf_child_open): Remove mention of "child".
5307 (inf_child_target): Rename target to "native" instead of "child".
5308
5309 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5310
5311 * Makefile.in (SFILES): Delete "regset.c".
5312 (COMMON_OBS): Delete "regset.o".
5313 * regset.c: Remove.
5314 * regset.h (regset_alloc): Delete prototype.
5315
5316 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5317
5318 * sparc-linux-tdep.c (sparc32_linux_gregset)
5319 (sparc32_linux_fpregset): New static regset structures.
5320 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5321 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5322 'fpregset' fields.
5323 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5324 (sparc64_linux_fpregset): New static regset structures.
5325 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5326 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5327 New static regset structures.
5328 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5329 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5330 New static regset structures.
5331 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5332 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5333 New static regset structures.
5334 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5335 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5336 New static regset structures.
5337 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5338
5339 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5340
5341 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5342 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5343 register maps ("regmaps") from "*regset" to "*regmap". Do this
5344 for all regmap types and variables.
5345 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5346 (sparc32_linux_supply_core_gregset)
5347 (sparc32_linux_collect_core_gregset)
5348 (sparc32_linux_supply_core_fpregset)
5349 (sparc32_linux_collect_core_fpregset): Likewise.
5350 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5351 (sparc_gregmap, sparc_fpregmap): ... these.
5352 (sparc_supply_gregset, sparc_collect_gregset)
5353 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5354 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5355 (_initialize_sparc_nat): Rename regmaps.
5356 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5357 (sparc_gregmap, sparc_fpregmap): ... these.
5358 (sparc_supply_gregset, sparc_collect_gregset)
5359 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5360 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5361 Rename macros to...
5362 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5363 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5364 Likewise.
5365 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5366 Rename to...
5367 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5368 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5369 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5370 regmaps.
5371 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5372 (sparc32_bsd_fpregset): Rename to...
5373 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5374 (sparc32_bsd_fpregmap): ... these.
5375 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5376 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5377 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5378 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5379 (struct sparc_gregmap, struct sparc_fpregmap)
5380 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5381 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5382 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5383 (sparc32_supply_regset, sparc32_collect_gregset)
5384 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5385 prototypes.
5386 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5387 (sparc64_linux_ptrace_gregmap): ... this.
5388 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5389 (_initialize_sparc64_linux_nat): Rename regmaps.
5390 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5391 (sparc64_linux_core_gregmap): ... this.
5392 (sparc64_linux_supply_core_gregset)
5393 (sparc64_linux_collect_core_gregset)
5394 (sparc64_linux_supply_core_fpregset)
5395 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5396 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5397 (sparc64_sol2_fpregset): Rename to...
5398 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5399 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5400 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5401 regmaps.
5402 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5403 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5404 (sparc64_bsd_fpregset): Rename to...
5405 (struct sparc_gregmap, sparc64_sol2_gregmap)
5406 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5407 (sparc64_bsd_fpregmap): ... these.
5408 (sparc64_supply_gregset, sparc64_collect_gregset)
5409 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5410 prototypes.
5411 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5412 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5413 (sparc64fbsd_gregmap): ... this.
5414 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5415 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5416 Rename regmaps.
5417 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5418 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5419 (sparc64nbsd_collect_fpregset): Likewise.
5420 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5421 (sparc64nbsd_gregmap): ... this.
5422 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5423 regmaps.
5424 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5425 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5426 (sparc64obsd_gregmap): ... this.
5427 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5428 regmaps.
5429 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5430 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5431 (sparc32nbsd_gregmap): ... this.
5432 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5433 regmaps.
5434
5435 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5436
5437 * score-tdep.c (score7_linux_gregset): New static regset
5438 structure.
5439 (score7_linux_regset_from_core_section): Remove dynamic regset
5440 allocation.
5441 (score_gdbarch_init): Drop allocation of tdep structure.
5442 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5443
5444 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5445
5446 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5447 regset structures.
5448 (am33_regset_from_core_section): Remove dynamic regset
5449 allocations.
5450
5451 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5452
5453 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5454 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5455 structures.
5456 (mips_linux_regset_from_core_section): Remove dynamic regset
5457 allocations.
5458 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5459 'gregset64', 'fpregset', and 'fpregset64'.
5460 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5461 deleted tdep fields.
5462
5463 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5464
5465 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5466 regset structures.
5467 (amd64_regset_from_core_section): Remove dynamic regset
5468 allocations.
5469 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5470 structure.
5471 (amd64obsd_regset_from_core_section): Remove dynamic regset
5472 allocation.
5473 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5474 Likewise.
5475 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5476 x86-common regset supply function.
5477 * i386-tdep.c (i386_collect_gregset): Make static.
5478 (i386_gregset): New global regset structure.
5479 (i386_fpregset, i386_xstateregset): New static regset structures.
5480 (i386_regset_from_core_section): Remove dynamic regset
5481 allocations.
5482 (i386_gdbarch_init): Remove initialization of tdep fields
5483 'gregset', 'fpregset', and 'xstateregset'.
5484 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5485 'fpregset', and 'xstateregset'.
5486 (i386_collect_gregset): Remove prototype.
5487 (i386_gregset): New declaration.
5488 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5489 structure.
5490 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5491 allocation.
5492
5493 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5494
5495 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5496 (arm_linux_vfpregset): New static regset structures.
5497 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5498 regset structures.
5499 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5500 and 'vfpregset' fields.
5501
5502 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5503
5504 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5505 (aarch64_linux_fpregset): New static regset structures.
5506 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5507 of regset structures.
5508 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5509 'fpregset' fields.
5510
5511 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5512
5513 * regset.h (struct regset): Remove gdbarch field.
5514 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5515 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5516 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5517 Likewise.
5518 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5519 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5520 (ppc32_linux_vsxregset): Likewise.
5521 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5522 via the regcache instead of the regset.
5523 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5524 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5525 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5526 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5527 Likewise.
5528
5529 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5530
5531 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5532 Constify structures.
5533 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5534 (alphanbsd_aout_gregset): Likewise.
5535 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5536 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5537 Likewise.
5538 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5539 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5540 Likewise.
5541 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5542 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5543 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5544 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5545 * m88k-tdep.c (m88k_gregset): Likewise.
5546 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5547 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5548 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5549 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5550 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5551 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5552 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5553 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5554 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5555 Likewise.
5556 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5557 * sh-tdep.h (sh_corefile_gregset): Likewise.
5558 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5559 * vax-tdep.c (vax_gregset): Likewise.
5560
5561 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5562
5563 Fix TLS access for -static -pthread.
5564 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5565 (try_thread_db_load_1): Initialize it.
5566 (thread_db_get_thread_local_address): Call it if LM is zero.
5567 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5568 * target.h (struct target_ops) (to_get_thread_local_address): Add
5569 load_module_addr comment.
5570
5571 2014-05-21 Pedro Alves <palves@redhat.com>
5572
5573 * dcache.c (dcache_read_memory_partial): If reading the cache line
5574 fails, fallback to reading just the memory the caller wanted.
5575
5576 2014-05-20 Doug Evans <dje@google.com>
5577
5578 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5579 instead of get_current_arch.
5580
5581 2014-05-20 Pedro Alves <palves@redhat.com>
5582
5583 * NEWS: Mention that compare-sections now works with all targets.
5584
5585 * remote.c (PACKET_qCRC): New enum value.
5586 (remote_verify_memory): Don't send qCRC if the target has no
5587 execution. Use packet_support/packet_ok. If the target doesn't
5588 support the qCRC packet, fallback to a deep memory copy.
5589 (compare_sections_command): Say "target image" instead of "remote
5590 executable".
5591 (_initialize_remote): Add PACKET_qCRC to the list of config
5592 packets that have no associated command. Extend comment.
5593 * target.c (simple_verify_memory, default_verify_memory): New
5594 function.
5595 * target.h (struct target_ops) <to_verify_memory>: Default to
5596 default_verify_memory.
5597 (simple_verify_memory): New declaration.
5598 * target-delegates.c: Regenerate.
5599
5600 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5601
5602 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5603
5604 2014-05-20 Hui Zhu <hui@codesourcery.com>
5605 Yao Qi <yao@codesourcery.com>
5606
5607 PR backtrace/16558
5608 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5609 and change address of sp and pc.
5610
5611 2014-05-19 Tom Tromey <tromey@redhat.com>
5612
5613 * gdbtypes.c (rank_function): Use XNEWVEC.
5614 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5615
5616 2014-05-19 Doug Evans <dje@google.com>
5617
5618 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5619 build_type_unit_groups and moved closer to only caller. Remove
5620 arguments. All references updated. Remove outdated .gdb_index
5621 comment.
5622 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5623 build_type_psymtabs_1.
5624
5625 2014-05-19 Doug Evans <dje@google.com>
5626
5627 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5628 n_type_unit_groups, all_type_unit_groups. All uses removed.
5629 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5630 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5631 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5632 (add_type_unit_group_to_table): Delete.
5633
5634 2014-05-19 Doug Evans <dje@google.com>
5635
5636 * eval.c (evaluate_subexp_standard): Add some comments.
5637
5638 2014-05-17 Doug Evans <xdje42@gmail.com>
5639
5640 * progspace.c (remove_program_space): Delete, unused.
5641 * progspace.h (remove_program_space): Ditto.
5642
5643 2014-05-17 Doug Evans <xdje42@gmail.com>
5644
5645 * inferior.c (prune_inferiors): Fix comment.
5646 (remove_inferior_command): Call prune_program_spaces.
5647
5648 2014-05-16 Doug Evans <dje@google.com>
5649
5650 New command line option -D.
5651 * NEWS: Mention it.
5652 * main.c (set_gdb_data_directory): New function.
5653 (captured_main): Recognize -D. Flag error for --data-directory "".
5654 Call set_gdb_data_directory.
5655 (print_gdb_help): Print --data-directory, -D.
5656 * main.h (set_gdb_data_directory): Declare.
5657 * top.c (staged_gdb_datadir): New static global.
5658 (set_gdb_datadir): Call set_gdb_data_directory
5659 (show_gdb_datadir): New function.
5660 (init_main): Update init of data-directory parameter.
5661
5662 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5663
5664 Import the "dirfd" gnulib module.
5665 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5666 * gnulib/aclocal.m4: Update.
5667 * gnulib/config.in: Update.
5668 * gnulib/configure: Update.
5669 * gnulib/import/Makefile.am: Update.
5670 * gnulib/import/Makefile.in: Update.
5671 * gnulib/import/dirfd.c: New.
5672 * gnulib/import/m4/dirfd.m4: New.
5673 * gnulib/import/m4/gnulib-cache.m4: Update.
5674 * gnulib/import/m4/gnulib-comp.m4: Update.
5675
5676 2014-05-16 Pierre Muller <muller@sourceware.org>
5677 Yao Qi <yao@codesourcery.com>
5678
5679 * valprint.c (print_wchar): Move the code on checking whether
5680 W is a printable wide char to the default branch of switch
5681 statement below. Call wchar_printable instead of gdb_iswprint.
5682
5683 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5684
5685 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5686 ldr.w and ldrd instructions.
5687
5688 2014-05-15 Doug Evans <dje@google.com>
5689
5690 * dwarf2read.c (read_structure_type): Delete outdated comments.
5691
5692 2014-05-14 Tom Tromey <tromey@redhat.com>
5693
5694 * macrocmd.c (print_macro_definition): Reindent.
5695
5696 2014-05-13 Doug Evans <xdje42@gmail.com>
5697
5698 * python/py-cmd.c (cmdpy_completer): Add comment.
5699 (completers): Make const.
5700
5701 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5702
5703 * infrun.c (resume): Remove should_resume (unused). Move up
5704 declaration of resume_ptid.
5705
5706 2014-05-13 Tom Tromey <tromey@redhat.com>
5707
5708 * language.h (unop_type_check): Remove.
5709 (binop_type_check): Don't declare.
5710
5711 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5712
5713 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5714 call to regcache_raw_collect.
5715
5716 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5717
5718 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5719 mi_console->quote as the quoting character.
5720
5721 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5722
5723 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5724
5725 2014-04-29 Tom Tromey <tromey@redhat.com>
5726
5727 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5728 "show debug varobj".
5729
5730 2014-05-07 Kyle McMartin <kyle@redhat.com>
5731
5732 Pushed by Joel Brobecker <brobecker@adacore.com>.
5733 * aarch64-tdep.c (aarch64_software_single_step): New function.
5734 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5735 with aarch64_software_single_step.
5736
5737 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5738
5739 GDB 7.7.1 released.
5740
5741 2014-05-05 Keith Seitz <keiths@redhat.com>
5742
5743 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5744 variable or history value is successfully parsed.
5745
5746 2014-05-05 Yao Qi <yao@codesourcery.com>
5747 Pedro Alves <palves@redhat.com>
5748
5749 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5750 address of blocks that intersects the requested range. Trim
5751 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5752 sections.
5753 * ctf.c (ctf_xfer_partial): Likewise.
5754
5755 2014-05-05 Yao Qi <yao@codesourcery.com>
5756
5757 * printcmd.c (display_command): Remove the check to
5758 target_has_execution.
5759
5760 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5761
5762 * ppcobsd-nat.c: Include "obsd-nat.h".
5763 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5764 add_target.
5765 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5766
5767 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5768
5769 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5770 and 16-bit signed and unsigned arguments. Update comment.
5771 (stap_parse_probe_arguments): Extend code to handle such
5772 arguments. Use warning instead of complaint to notify about
5773 unrecognized bitness.
5774
5775 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5776
5777 PR breakpoints/16889
5778 * stap-probe.c (stap_parse_probe_arguments): Simplify
5779 check for non-prefixed probes (i.e., probes whose
5780 arguments do not start with "N@"). Always set the
5781 argument type to a sane value.
5782
5783 2014-05-01 David Taylor <dtaylor@emc.com>
5784
5785 * remote.c (compare_sections_command): Add -r option to compare
5786 all loadable read-only sections.
5787
5788 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5789
5790 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5791 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5792 Update all callers.
5793 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5794 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5795 Remove unused CORE_ADDR argument. Update all callers.
5796
5797 2014-04-29 Pedro Alves <palves@redhat.com>
5798
5799 * remote.c (struct packet_config) <detect>: Extend comment.
5800 (add_packet_config_cmd): Don't set the config's detect or support
5801 fields here.
5802 (init_all_packet_configs): Also initialize the config's 'detect'
5803 field.
5804 (reset_all_packet_configs_support): New function.
5805 (remote_open_1): Call reset_all_packet_configs_support instead of
5806 init_all_packet_configs.
5807 (_initialize_remote): Initialize all packet configs. Assert that
5808 all packets have an associated command, except a few known
5809 outliers.
5810
5811 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5812
5813 * dwarf2read.c (read_subrange_type): Handle dynamic
5814 DW_AT_lower_bound attributes.
5815
5816 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5817
5818 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5819 dynamic bounds before computing its upper bound.
5820 (ada_discrete_type_low_bound): Same as above with the lower bound.
5821
5822 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5823
5824 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5825 range types. Adjust the array handling implementation to
5826 take advantage of this change.
5827 (resolve_dynamic_range): New function, mostly extracted from
5828 resolve_dynamic_bounds.
5829 (resolve_dynamic_array): New function, mostly extracted from
5830 resolve_dynamic_bounds.
5831 (resolve_dynamic_bounds): Delete.
5832 (resolve_dynamic_type): Reimplement. Add handling of
5833 TYPE_CODE_RANGE types.
5834
5835 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5836
5837 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5838 handling of parallel ___XA types.
5839
5840 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5841
5842 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5843 unnecessary second call to static_unwrap_type.
5844
5845 2014-04-27 Hui Zhu <hui@codesourcery.com>
5846
5847 * stack.c (print_frame_info): Call do_gdb_disassembly with
5848 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5849
5850 2014-04-26 Doug Evans <xdje42@gmail.com>
5851
5852 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5853
5854 2014-04-25 Pedro Alves <palves@redhat.com>
5855
5856 PR server/16255
5857 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5858 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5859 and newline from built string.
5860 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5861 (linux_ptrace_attach_fail_reason): ... this.
5862 * linux-nat.c (linux_nat_attach): Adjust to use
5863 linux_ptrace_attach_fail_reason.
5864
5865 2014-04-25 Pedro Alves <palves@redhat.com>
5866
5867 * remote.c (struct remote_state): Remove multi_process_aware,
5868 non_stop_aware, cond_tracepoints, cond_breakpoints,
5869 breakpoint_commands, fast_tracepoints, static_tracepoints,
5870 install_in_trace, disconnected_tracing,
5871 enable_disable_tracepoints, string_tracing, and
5872 augmented_libraries_svr4_read fields.
5873 (remote_multi_process_p): Move further below in the file.
5874 (struct packet_config): Add comments.
5875 (update_packet_config): Delete function.
5876 (show_packet_config_cmd): Use packet_config_support.
5877 (add_packet_config_cmd): Use NULL as set callback.
5878 (packet_ok): "set remote foo-packet"-style commands no longer
5879 change config->supported -- adjust.
5880 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5881 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5882 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5883 (PACKET_QNonStop, PACKET_multiprocess_feature)
5884 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5885 (PACKET_DisconnectedTracing_feature)
5886 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5887 (set_remote_protocol_packet_cmd): Delete function.
5888 (packet_config_support, packet_support): New functions.
5889 (set_remote_protocol_Z_packet_cmd): Don't call
5890 update_packet_config.
5891 (remote_query_attached, remote_pass_signals)
5892 (remote_program_signals, remote_threads_info)
5893 (remote_threads_extra_info, remote_start_remote): Use
5894 packet_support.
5895 (remote_start_remote): Use packet_config_support and
5896 packet_support.
5897 (init_all_packet_configs): Set all packets to unknown support,
5898 instead of calling update_packet_config.
5899 (remote_check_symbols): Use packet_support.
5900 (remote_supported_packet): Unconditionally set the packet config's
5901 support status.
5902 (remote_multi_process_feature, remote_non_stop_feature)
5903 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5904 (remote_breakpoint_commands_feature)
5905 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5906 (remote_install_in_trace_feature)
5907 (remote_disconnected_tracing_feature)
5908 (remote_enable_disable_tracepoint_feature)
5909 (remote_string_tracing_feature)
5910 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5911 (remote_protocol_features): Adjust to use remote_supported_packet
5912 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5913 "ConditionalTracepoints", "ConditionalBreakpoints",
5914 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5915 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5916 "EnableDisableTracepoints", and "tracenz".
5917 (remote_query_supported): Use packet_support.
5918 (remote_open_1): Adjust.
5919 (extended_remote_attach_1): Use packet_support. Switch on the
5920 result of packet_ok instead of checking whether the packet ended
5921 up disabled.
5922 (remote_vcont_resume): Use packet_support.
5923 (remote_resume, remote_stop_ns, fetch_register_using_p)
5924 (remote_prepare_to_store, store_register_using_P)
5925 (check_binary_download, remote_write_bytes): Use packet_support.
5926 (remote_vkill): Use packet_support. Switch on the result of
5927 packet_ok instead of checking whether the packet ended up
5928 disabled.
5929 (extended_remote_supports_disable_randomization): Use
5930 packet_support.
5931 (extended_remote_run): Switch on the result of packet_ok instead
5932 of checking whether the packet ended up disabled.
5933 (remote_insert_breakpoint, remote_remove_breakpoint)
5934 (remote_insert_watchpoint, remote_remove_watchpoint)
5935 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5936 packet_support.
5937 (remote_search_memory): Use packet_config_support.
5938 (remote_get_thread_local_address, remote_get_tib_address)
5939 (remote_hostio_send_command, remote_can_execute_reverse): Use
5940 packet_support.
5941 (remote_supports_cond_tracepoints)
5942 (remote_supports_cond_breakpoints)
5943 (remote_supports_fast_tracepoints)
5944 (remote_supports_static_tracepoints)
5945 (remote_supports_install_in_trace)
5946 (remote_supports_enable_disable_tracepoint)
5947 (remote_supports_string_tracing)
5948 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5949 the packet config says the feature is enabled or disabled.
5950 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5951 (remote_get_trace_status): Use packet_support.
5952 (remote_set_disconnected_tracing): Adjust to check whether the
5953 feature is enabled with packet_support.
5954 (remote_set_trace_buffer_size, remote_use_agent)
5955 (remote_can_use_agent, remote_supports_btrace): Use
5956 packet_support.
5957 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5958 Use packet_config_support.
5959 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5960 the packet config says the feature is enabled or disabled.
5961 (set_range_stepping): Use packet_support.
5962
5963 2014-04-25 Tom Tromey <tromey@redhat.com>
5964
5965 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5966 argument.
5967
5968 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5969
5970 * NEWS: Mention support for C99 variable length arrays.
5971
5972 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5973
5974 * ada-lang.c (standard_exc): Expand introductory comment.
5975
5976 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5977 Walfred Tedeschi <walfred.tedeschi@intel.com>
5978
5979 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5980 AVX512 registers.
5981 (amd64_linux_read_description): Add code to handle AVX512 xstate
5982 mask and return respective tdesc.
5983 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5984 and features/i386/x32-avx512-linux.c.
5985 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5986 (amd64_linux_core_read_description): Add code to handle AVX512
5987 xstate mask and return respective tdesc.
5988 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5989 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5990 calculation.
5991 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5992 (tdesc_amd64_avx512_linux): New prototype.
5993 (tdesc_x32_avx512_linux): Likewise.
5994 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5995 features/i386/x32-avx512.c.
5996 (amd64_ymm_avx512_names): New register names for pseudo
5997 registers YMM16-31.
5998 (amd64_ymmh_avx512_names): New register names for raw registers
5999 YMMH16-31.
6000 (amd64_k_names): New register names for K registers.
6001 (amd64_zmmh_names): New register names for ZMM raw registers.
6002 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6003 (amd64_xmm_avx512_names): New register names for XMM16-31
6004 registers.
6005 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6006 registers.
6007 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6008 if feature is present.
6009 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6010 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6011 (AMD64_NUM_REGS): Adjust to new number of registers.
6012 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6013 registers supplied via XSTATE by AVX512 registers.
6014 (i386_linux_read_description): Add case for AVX512.
6015 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6016 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6017 (i386_linux_core_read_description): Add case for AVX512.
6018 (i386_linux_init_abi): Install supported register note section
6019 for AVX512.
6020 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6021 AVX512.
6022 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6023 registers to be number of zmm7h + 1.
6024 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6025 * i386-tdep.c: Include features/i386/i386-avx512.c.
6026 (i386_zmm_names): Add ZMM pseudo register names array.
6027 (i386_zmmh_names): Add ZMM raw register names array.
6028 (i386_k_names): Add K raw register names array.
6029 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6030 registers. AVX512 has 16 more ZMM registers than there are YMM
6031 registers.
6032 (i386_zmmh_regnum_p): Add function to look up register number of
6033 ZMM raw registers.
6034 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6035 (i386_k_regnum_p): Likewise for K raw registers.
6036 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6037 registers added by AVX512.
6038 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6039 registers added by AVX512.
6040 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6041 added by AVX512.
6042 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6043 (i386_pseudo_register_name): Add ZMM pseudo registers.
6044 (i386_zmm_type): Construct and return vector registers type for ZMM
6045 registers.
6046 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6047 ZMM0-31 pseudo registers and K registers.
6048 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6049 and YMM16-31 registers from register cache.
6050 (i386_pseudo_register_write): Add code to write K, ZMM and
6051 YMM16-31 registers.
6052 (i386_register_reggroup_p): Add code to include/exclude AVX512
6053 registers in/from respective register groups.
6054 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6055 registers if feature is present in xcr0.
6056 (i386_gdbarch_init): Add code to initialize AVX512 feature
6057 variables in tdep structure, wire in pseudo registers and call
6058 initialize_tdesc_i386_avx512.
6059 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6060 variables.
6061 (i386_regnum): Add AVX512 registers.
6062 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6063 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6064 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6065 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6066 512 bits wide.
6067 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6068 (i386_ymm_avx512_regnum_p): Likewise.
6069 (i386_k_regnum_p): Likewise.
6070 (i386_zmm_regnum_p): Likewise.
6071 (i386_zmmh_regnum_p): Likewise.
6072 * i387-tdep.c : Update year in copyright notice.
6073 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6074 XSAVE buffer.
6075 (XSAVE_YMM_AVX512_ADDR): New macro.
6076 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6077 XSAVE buffer.
6078 (XSAVE_XMM_AVX512_ADDR): New macro.
6079 (xsave_avx512_k_offset): New table for K register offsets in
6080 XSAVE buffer.
6081 (XSAVE_AVX512_K_ADDR): New macro.
6082 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6083 in XSAVE buffer.
6084 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6085 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6086 buffer.
6087 (i387_collect_xsave): Add code to collect AVX512 registers from
6088 XSAVE buffer.
6089 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6090 of XMM16-31 registers.
6091 (I387_NUM_K_REGS): New define for number of K registers.
6092 (I387_K0_REGNUM): New define for K0 register number.
6093 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6094 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6095 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6096 registers.
6097 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6098 (I387_XMM16_REGNUM): New define for XMM16 register number.
6099 (I387_YMM0_REGNUM): New define for YMM0 register number.
6100 (I387_KEND_REGNUM): New define for last K register number.
6101 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6102 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6103 number.
6104 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6105 number.
6106 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6107 size.
6108 * features/Makefile: Add AVX512 related files.
6109 * features/i386/32bit-avx512.xml: New file.
6110 * features/i386/64bit-avx512.xml: Likewise.
6111 * features/i386/amd64-avx512-linux.c: Likewise.
6112 * features/i386/amd64-avx512-linux.xml: Likewise.
6113 * features/i386/amd64-avx512.c: Likewise.
6114 * features/i386/amd64-avx512.xml: Likewise.
6115 * features/i386/i386-avx512-linux.c: Likewise.
6116 * features/i386/i386-avx512-linux.xml: Likewise.
6117 * features/i386/i386-avx512.c: Likewise.
6118 * features/i386/i386-avx512.xml: Likewise.
6119 * features/i386/x32-avx512-linux.c: Likewise.
6120 * features/i386/x32-avx512-linux.xml: Likewise.
6121 * features/i386/x32-avx512.c: Likewise.
6122 * features/i386/x32-avx512.xml: Likewise.
6123 * regformats/i386/amd64-avx512-linux.dat: New file.
6124 * regformats/i386/amd64-avx512.dat: Likewise.
6125 * regformats/i386/i386-avx512-linux.dat: Likewise.
6126 * regformats/i386/i386-avx512.dat: Likewise.
6127 * regformats/i386/x32-avx512-linux.dat: Likewise.
6128 * regformats/i386/x32-avx512.dat: Likewise.
6129 * NEWS: Add note about new support for AVX512.
6130
6131
6132 2014-04-23 Pedro Alves <palves@redhat.com>
6133
6134 * breakpoint.c (insert_bp_location): Tolerate errors if the
6135 breakpoint is set in a user-loaded objfile.
6136 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6137 location is marked shlib_disabled. If the breakpoint is set in a
6138 user-loaded objfile is a GDB-side memory breakpoint, validate it
6139 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6140 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6141 flag.
6142 * mem-break.c (memory_validate_breakpoint): New function.
6143 * objfiles.c (userloaded_objfile_contains_address_p): New
6144 function.
6145 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6146 * target.h (memory_validate_breakpoint): New declaration.
6147
6148 2014-04-23 Pedro Alves <palves@redhat.com>
6149
6150 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6151 the breakpoint is set in a shared library, only suppress
6152 errors for software breakpoints, not hardware breakpoints.
6153
6154 2014-04-22 Pedro Alves <palves@redhat.com>
6155
6156 * infrun.c (schedlock_applies): New function, factored out from
6157 find_thread_needs_step_over.
6158 (find_thread_needs_step_over): Use it.
6159 (switch_back_to_stepped_thread): Always clear trap_expected if the
6160 step over is finished. Return early if scheduler locking applies.
6161 Look for the stepping thread and a potential step-over thread with
6162 a single loop.
6163 (currently_stepping_or_nexting_callback): Delete.
6164
6165 2014-04-22 Nick Clifton <nickc@redhat.com>
6166
6167 * NEWS: Mention that ARM sim now supports tracing.
6168
6169 2014-04-22 Yao Qi <yao@codesourcery.com>
6170
6171 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6172 to ...
6173 * tracefile.c (tracefile_fetch_registers): ... it. New
6174 function.
6175 * tracefile.h (tracefile_fetch_registers): Declare.
6176 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6177 tracefile_fetch_registers.
6178
6179 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6180
6181 PR gdb/14018
6182 * windows-nat.c (thread_rec): Don't display a warning when
6183 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6184 fails for any reason, set th->suspended to -1, so that we don't
6185 try to resume such a thread. Also, don't return NULL in these
6186 cases, to avoid completely ruin the session due to "PC register is
6187 not available" error.
6188 (do_windows_fetch_inferior_registers): Check errors in
6189 GetThreadContext call.
6190 (windows_continue): Accept an additional argument KILLED; if not
6191 zero, ignore errors in the SetThreadContext call, since the
6192 inferior was killed and is shutting down.
6193 (windows_resume, get_windows_debug_event)
6194 (windows_create_inferior, windows_mourn_inferior)
6195 (windows_kill_inferior): All callers of windows_continue changed
6196 to adjust to its new calling sequence.
6197
6198 2014-04-19 Yao Qi <yao@codesourcery.com>
6199
6200 * ctf.c (ctf_open): Call post_create_inferior.
6201
6202 2014-04-19 Yao Qi <yao@codesourcery.com>
6203
6204 * ctf.c (handle_id): New static variable.
6205 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6206 value. Get the declaration of event "register" and get length
6207 of field "contents".
6208
6209 2014-04-19 Yao Qi <yao@codesourcery.com>
6210
6211 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6212
6213 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6214
6215 * valops.c (oload_method_static): Remove unnecessary argument
6216 METHOD. Update all callers.
6217
6218 2014-04-18 Pedro alves <palves@redhat.com>
6219 Tom Tromey <tromey@redhat.com>
6220
6221 PR backtrace/15558
6222 * frame.c (get_prev_frame_1): Rename to ...
6223 (get_prev_frame_always): ... this, and make extern. Adjust.
6224 (skip_artificial_frames): Use get_prev_frame_always.
6225 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6226 (get_frame_unwind_stop_reason): Adjust to rename.
6227 * frame.h (get_prev_frame_always): Declare.
6228 * inline-frame.c: Include frame.h.
6229 (inline_frame_this_id): Use get_prev_frame_always.
6230
6231 2014-04-18 Tristan Gingold <gingold@adacore.com>
6232
6233 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6234 code by using bfd_mach_o_get_base_address.
6235
6236 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6237
6238 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6239 (spu_ax_pseudo_register_collect): New function.
6240 (spu_ax_pseudo_register_push_stack): Likewise.
6241 (spu_dwarf_reg_to_regnum): Likewise.
6242 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6243
6244 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6245
6246 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6247 Replace FRAME argument with FRAME_ID.
6248 * gdbarch.c, gdbarch.h: Regenerate.
6249 * findvar.c (default_value_from_register): Add GDBARCH argument;
6250 replace FRAME by FRAME_ID. No longer call get_frame_id.
6251 (value_from_register): Update call to gdbarch_value_from_register.
6252 * value.h (default_value_from_register): Update prototype.
6253 * s390-linux-tdep.c (s390_value_from_register): Update interface
6254 and call to default_value_from_register.
6255 * spu-tdep.c (spu_value_from_register): Likewise.
6256
6257 * findvar.c (address_from_register): Remove TYPE argument.
6258 Do not call value_from_register; use gdbarch_value_from_register
6259 with null_frame_id instead.
6260 * value.h (address_from_register): Update prototype.
6261 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6262 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6263 address_from_register interface change.
6264
6265 2014-04-17 Yao Qi <yao@codesourcery.com>
6266
6267 * gdbtypes.h: Update comments to link to types and macros'
6268 definitions.
6269
6270 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6271
6272 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6273
6274 2014-04-16 Keith Seitz <keiths@redhat.com>
6275
6276 PR gdb/15827
6277 * dwarf2read.c (skip_one_die): Check that all relative-offset
6278 sibling DIEs fall within range of the current reader's buffer.
6279 (read_partial_die): Likewise.
6280
6281 2014-04-16 Keith Seitz <keiths@redhat.com>
6282
6283 PR c++/16597
6284 * cp-namespace.c (lookup_symbol_file): If the type name of
6285 `this' is NULL, return immediately.
6286
6287 2014-04-14 Keith Seitz <keiths@redhat.com>
6288
6289 PR c++/16253
6290 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6291 from symbol_matches_domain in symtab.c. All local callers
6292 of symbol_matches_domain updated.
6293 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6294 search STRUCT_DOMAIN.
6295 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6296 independently. standard_lookup will do that automatically.
6297 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6298 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6299 (cp_lookup_symbol_in_namespace): Likewise.
6300 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6301 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6302 may return a STRUCT_DOMAIN match.
6303 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6304 * cp-support.c: Include language.h.
6305 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6306 VAR_DOMAIN.
6307 * psymtab.c (match_partial_symbol): Compare the requested
6308 domain with the symbol's domain directly.
6309 (lookup_partial_symbol): Likewise.
6310 * symtab.c (lookup_symbol_in_language): Explain when/why
6311 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6312 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6313 appropriate languages.
6314 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6315 and moved to ada-lang.c
6316 (lookup_block_symbol): Explain that this function only returns
6317 symbol matching the requested DOMAIN.
6318 Compare the requested domain with the symbol's domain directly.
6319 (iterate_over_symbols): Compare the requested domain with the
6320 symbol's domain directly.
6321 * symtab.h (symbol_matches_domain): Remove.
6322
6323 2014-04-14 Tom Tromey <tromey@redhat.com>
6324
6325 PR c++/15246:
6326 * c-exp.y (type_aggregate_p): New function.
6327 (qualified_name, classify_inner_name): Use it.
6328 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6329 and TYPE_TARGET_TYPE of an enum type.
6330 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6331 an enum type.
6332 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6333 handle TYPE_DECLARED_CLASS.
6334 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6335 types.
6336 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6337 * valops.c (enum_constant_from_type): New function.
6338 (value_aggregate_elt): Use it.
6339 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6340 TYPE_CODE_ENUM.
6341
6342 2014-04-14 Tom Tromey <tromey@redhat.com>
6343
6344 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6345 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6346 const.
6347 * value.h (value_aggregate_elt): Update.
6348
6349 2014-04-14 Tom Tromey <tromey@redhat.com>
6350
6351 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6352
6353 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6354
6355 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6356 (evaluate_subexp_standard): Pass noside argument.
6357 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6358 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6359 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6360 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6361 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6362
6363 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6364
6365 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6366 points to a constant blob.
6367
6368 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6369
6370 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6371 property and store it as the high bound and flag the range accordingly.
6372 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6373 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6374 * gdbtypes.h (enum range_flags): New enum.
6375 (struct range_bounds): Add flags member.
6376
6377 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6378
6379 * c-typeprint.c (c_type_print_varspec_suffix): Added
6380 check for not yet resolved high bound. If unresolved, print
6381 "variable length" string to the console instead of random
6382 length.
6383
6384 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6385
6386 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6387 value.
6388 (ada_template_to_fixed_record_type_1): Likewise.
6389 (ada_to_fixed_type_1): Likewise.
6390 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6391 (cp_print_value): Likewise.
6392 * d-valprint.c (dynamic_array_type): Likewise.
6393 * findvar.c (address_of_variable): Likewise.
6394 * jv-valprint.c (java_value_print): Likewise.
6395 * valops.c (value_ind): Likewise.
6396 * value.c (coerce_ref): Likewise.
6397
6398 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6399
6400 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6401 value and retrieve the dynamic type size.
6402
6403 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6404
6405 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6406 passed to sizeof is dynamic evaluate the argument to compute the length.
6407
6408 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6409 Joel Brobecker <brobecker@adacore.com>
6410
6411 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6412 (dwarf2_evaluate_property): New function.
6413 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6414 * dwarf2read.c (attr_to_dynamic_prop): New function.
6415 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6416 attribute.
6417 * gdbtypes.c: Include dwarf2loc.h.
6418 (is_dynamic_type): New function.
6419 (resolve_dynamic_type): New function.
6420 (resolve_dynamic_bounds): New function.
6421 (get_type_length): New function.
6422 (check_typedef): Use get_type_length to compute type length.
6423 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6424 (TYPE_LOW_BOUND_KIND): New macro.
6425 (is_dynamic_type): New function prototype.
6426 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6427 to resolve dynamic properties of the type. Update comment.
6428 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6429
6430 2014-04-14 Richard Henderson <rth@redhat.com>
6431
6432 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6433
6434 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6435 Doug Evans <xdje42@gmail.com>
6436
6437 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6438 dereference TYPE_CODE_REF values.
6439
6440 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6441
6442 Revert the following changes due to regressions:
6443
6444 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6445 (dwarf2_evaluate_property): New function.
6446 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6447 * dwarf2read.c (attr_to_dynamic_prop): New function.
6448 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6449 attribute.
6450 * gdbtypes.c: Include dwarf2loc.h.
6451 (is_dynamic_type): New function.
6452 (resolve_dynamic_type): New function.
6453 (resolve_dynamic_bounds): New function.
6454 (get_type_length): New function.
6455 (check_typedef): Use get_type_length to compute type length.
6456 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6457 (TYPE_LOW_BOUND_KIND): New macro.
6458 (is_dynamic_type): New function prototype.
6459 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6460 to resolve dynamic properties of the type. Update comment.
6461 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6462
6463 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6464 passed to sizeof is dynamic evaluate the argument to compute the length.
6465
6466 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6467 value and retrieve the dynamic type size.
6468
6469 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from 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 * eval.c (evaluate_subexp_with_coercion): Likewise.
6476 * findvar.c (address_of_variable): Likewise.
6477 * jv-valprint.c (java_value_print): Likewise.
6478 * valops.c (value_ind): Likewise.
6479 * value.c (coerce_ref): Likewise.
6480
6481 * c-typeprint.c (c_type_print_varspec_suffix): Added
6482 check for not yet resolved high bound. If unresolved, print
6483 "variable length" string to the console instead of random
6484 length.
6485
6486 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6487 property and store it as the high bound and flag the range accordingly.
6488 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6489 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6490 * gdbtypes.h (enum range_flags): New enum.
6491 (struct range_bounds): Add flags member.
6492
6493 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6494 points to a constant blob.
6495
6496 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6497 (evaluate_subexp_standard): Pass noside argument.
6498 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6499 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6500 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6501 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6502 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6503
6504 2014-04-11 Keith Seitz <keiths@redhat.com>
6505
6506 PR c++/16675
6507 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6508 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6509 reference types.
6510
6511 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6512
6513 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6514 (evaluate_subexp_standard): Pass noside argument.
6515 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6516 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6517 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6518 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6519 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6520
6521 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6522
6523 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6524 points to a constant blob.
6525
6526 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6527
6528 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6529 property and store it as the high bound and flag the range accordingly.
6530 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6531 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6532 * gdbtypes.h (enum range_flags): New enum.
6533 (struct range_bounds): Add flags member.
6534
6535 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6536
6537 * c-typeprint.c (c_type_print_varspec_suffix): Added
6538 check for not yet resolved high bound. If unresolved, print
6539 "variable length" string to the console instead of random
6540 length.
6541
6542 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6543
6544 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6545 (ada_template_to_fixed_record_type_1): Likewise.
6546 (ada_to_fixed_type_1): Likewise.
6547 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6548 (cp_print_value): Likewise.
6549 * d-valprint.c (dynamic_array_type): Likewise.
6550 * eval.c (evaluate_subexp_with_coercion): Likewise.
6551 * findvar.c (address_of_variable): Likewise.
6552 * jv-valprint.c (java_value_print): Likewise.
6553 * valops.c (value_ind): Likewise.
6554 * value.c (coerce_ref): Likewise.
6555
6556 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6557
6558 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6559 value and retrieve the dynamic type size.
6560
6561 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6562
6563 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6564 passed to sizeof is dynamic evaluate the argument to compute the length.
6565
6566 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6567
6568 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6569 (dwarf2_evaluate_property): New function.
6570 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6571 * dwarf2read.c (attr_to_dynamic_prop): New function.
6572 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6573 attribute.
6574 * gdbtypes.c: Include dwarf2loc.h.
6575 (is_dynamic_type): New function.
6576 (resolve_dynamic_type): New function.
6577 (resolve_dynamic_bounds): New function.
6578 (get_type_length): New function.
6579 (check_typedef): Use get_type_length to compute type length.
6580 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6581 (TYPE_LOW_BOUND_KIND): New macro.
6582 (is_dynamic_type): New function prototype.
6583 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6584 to resolve dynamic properties of the type. Update comment.
6585 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6586
6587 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6588
6589 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6590 declaring high/low bounds and change uses accordingly. Call
6591 create_range_type instead of create_static_range_type.
6592 * gdbtypes.c (create_range_type): New function.
6593 (create_range_type): Convert bounds into struct bound_prop and pass
6594 them to create_range_type.
6595 * gdbtypes.h (struct bound_prop): New struct.
6596 (create_range_type): New function prototype.
6597 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6598 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6599 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6600 part of the bound.
6601 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6602
6603 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6604
6605 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6606 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6607 * ada-lang.c: All uses of create_range_type updated.
6608 * coffread.c: All uses of create_range_type updated.
6609 * dwarf2read.c: All uses of create_range_type updated.
6610 * f-exp.y: All uses of create_range_type updated.
6611 * m2-valprint.c: All uses of create_range_type updated.
6612 * mdebugread.c: All uses of create_range_type updated.
6613 * stabsread.c: All uses of create_range_type updated.
6614 * valops.c: All uses of create_range_type updated.
6615 * valprint.c: All uses of create_range_type updated.
6616
6617 2014-04-10 Pedro Alves <palves@redhat.com>
6618
6619 * breakpoint.c (single_step_breakpoints)
6620 (single_step_gdbarch): Move up in the file.
6621 (one_breakpoint_xfer_memory): New function, factored out from ...
6622 (breakpoint_xfer_memory): ... here. Also process single-step
6623 breakpoints.
6624
6625 2014-04-09 Tristan Gingold <gingold@adacore.com>
6626
6627 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6628 comments.
6629 (darwin_decode_exception_message): Free port only after use.
6630
6631 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6632
6633 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6634 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6635 when setting the size of call_length.
6636
6637 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6638
6639 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6640 dereference TYPE_CODE_REF values.
6641
6642 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6643
6644 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6645 end of warning message.
6646
6647 2014-04-03 Doug Evans <dje@google.com>
6648
6649 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6650 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6651
6652 2014-04-02 Alan Modra <amodra@gmail.com>
6653
6654 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6655 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6656 (struct symbol_file_add_from_memory_args): Add size field.
6657 (find_vdso_size): New function.
6658 (add_vsyscall_page): Attempt to find vdso size.
6659
6660 2014-04-01 Doug Evans <dje@google.com>
6661
6662 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6663
6664 2014-04-01 Tristan Gingold <gingold@adacore.com>
6665
6666 * darwin-nat.c (darwin_encode_reply): Add prototype.
6667 (darwin_decode_exception_message): Reply to unknown inferiors.
6668 (darwin_decode_message): Handle message by id. Ignore message
6669 to unknown inferior.
6670 (darwin_wait): Discard unknown messages, add debug trace.
6671
6672 2014-03-31 Doug Evans <dje@google.com>
6673
6674 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6675 comp_dir_string.
6676
6677 2014-03-31 Doug Evans <dje@google.com>
6678
6679 New option "set print symbol-loading".
6680 * NEWS: Mention it.
6681 * solib.c (solib_read_symbols): Only print symbol loading messages
6682 if requested.
6683 (solib_add): If symbol loading is in "brief" mode, notify user
6684 symbols are being loaded.
6685 (reload_shared_libraries_1): Ditto.
6686 * symfile.c (print_symbol_loading_off): New static global.
6687 (print_symbol_loading_brief): New static global.
6688 (print_symbol_loading_full): New static global.
6689 (print_symbol_loading_enums): New static global.
6690 (print_symbol_loading): New static global.
6691 (print_symbol_loading_p): New function.
6692 (symbol_file_add_with_addrs): Only print symbol loading messages
6693 if requested.
6694 (_initialize_symfile): Register "print symbol-loading" set/show
6695 command.
6696 * symfile.h (print_symbol_loading_p): Declare.
6697
6698 2014-03-30 Doug Evans <xdje42@gmail.com>
6699
6700 * infrun.c (set_last_target_status): New function.
6701 (handle_inferior_event): Call it.
6702
6703 2014-03-30 Doug Evans <xdje42@gmail.com>
6704
6705 * inferior.h (enum stop_kind): Improve comment.
6706
6707 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6708
6709 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6710 a reference, strip the reference layer before calling
6711 the lang_ops value_has_mutated callback.
6712
6713 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6714
6715 Remove some globals from our parser.
6716 * language.c (unk_lang_parser): Add "struct parser_state"
6717 argument.
6718 * language.h (struct language_defn) <la_parser>: Likewise.
6719 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6720 (initialize_expout): Add "struct parser_state" argument.
6721 Rewrite function to use the parser state.
6722 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6723 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6724 write_exp_elt_longcst, write_exp_elt_dblcst,
6725 write_exp_elt_decfloatcst, write_exp_elt_type,
6726 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6727 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6728 write_dollar_variable): Likewise.
6729 (parse_exp_in_context_1): Use parser state.
6730 (insert_type_address_space): Add "struct parser_state" argument.
6731 Use parser state.
6732 (increase_expout_size): New function.
6733 * parser-defs.h: Forward declare "struct language_defn" and
6734 "struct parser_state".
6735 (expout, expout_size, expout_ptr): Remove extern declarations.
6736 (parse_gdbarch, parse_language): Rewrite macro declarations to
6737 accept the parser state.
6738 (struct parser_state): New struct.
6739 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6740 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6741 write_exp_elt_decfloatcst, write_exp_elt_type,
6742 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6743 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6744 write_exp_msymbol, write_dollar_variable,
6745 mark_struct_expression, insert_type_address_space): Add "struct
6746 parser_state" argument.
6747 (increase_expout_size): New function.
6748 * utils.c (do_clear_parser_state): New function.
6749 (make_cleanup_clear_parser_state): Likewise.
6750 * utils.h (make_cleanup_clear_parser_state): New function
6751 prototype.
6752 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6753 Update calls to write_exp* in order to pass the parser state.
6754 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6755 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6756 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6757 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6758 * stap-probe.c (stap_parse_register_operand): Likewise.
6759 (stap_parse_single_operand): Likewise.
6760 (stap_parse_argument_1): Likewise.
6761 (stap_parse_argument): Use parser state.
6762 * stap-probe.h: Include "parser-defs.h".
6763 (struct stap_parse_info) <pstate>: New field.
6764 * c-exp.y (parse_type): Rewrite to use parser state.
6765 (yyparse): Redefine to c_parse_internal.
6766 (pstate): New global variable.
6767 (parse_number): Add "struct parser_state" argument.
6768 (write_destructor_name): Likewise.
6769 (type_exp): Update calls to write_exp* and similars in order to
6770 use parser state.
6771 (exp1, exp, variable, qualified_name, space_identifier,
6772 typename, typebase): Likewise.
6773 (write_destructor_name, parse_number, lex_one_token,
6774 classify_name, classify_inner_name, c_parse): Add "struct
6775 parser_state" argument. Update function to use parser state.
6776 * c-lang.h: Forward declare "struct parser_state".
6777 (c_parse): Add "struct parser_state" argument.
6778 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6779 (yyparse): Redefine macro to ada_parse_internal.
6780 (pstate): New variable.
6781 (write_int, write_object_renaming, write_var_or_type,
6782 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6783 type_int, type_long, type_long_long, type_float, type_double,
6784 type_long_double, type_char, type_boolean, type_system_address):
6785 Add "struct parser_state" argument.
6786 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6787 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6788 var_or_type, aggregate, aggregate_component_list,
6789 positional_list, others, component_group,
6790 component_associations): Update calls to write_exp* and similar
6791 functions in order to use parser state.
6792 (ada_parse, write_var_from_sym, write_int,
6793 write_exp_op_with_string, write_object_renaming,
6794 find_primitive_type, write_selectors, write_ambiguous_var,
6795 write_var_or_type, write_name_assoc, type_int, type_long,
6796 type_long_long, type_float, type_double, type_long_double,
6797 type_char, type_boolean, type_system_address): Add "struct
6798 parser_state" argument. Adjust function to use parser state.
6799 * ada-lang.c (parse): Likewise.
6800 * ada-lang.h: Forward declare "struct parser_state".
6801 (ada_parse): Add "struct parser_state" argument.
6802 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6803 calls to both functions.
6804 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6805 parser state.
6806 (yyparse): Redefine macro to f_parse_internal.
6807 (pstate): New variable.
6808 (parse_number): Add "struct parser_state" argument.
6809 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6810 and similars in order to use parser state.
6811 (parse_number): Adjust code to use parser state.
6812 (yylex): Likewise.
6813 (f_parse): New function.
6814 * f-lang.h: Forward declare "struct parser_state".
6815 (f_parse): Add "struct parser_state" argument.
6816 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6817 parser state.
6818 (yyparse): Redefine macro for java_parse_internal.
6819 (pstate): New variable.
6820 (push_expression_name, push_expression_name, insert_exp): Add
6821 "struct parser_state" argument.
6822 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6823 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6824 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6825 PostIncrementExpression, PostDecrementExpression,
6826 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6827 UnaryExpressionNotPlusMinus, CastExpression,
6828 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6829 RelationalExpression, EqualityExpression, AndExpression,
6830 ExclusiveOrExpression, InclusiveOrExpression,
6831 ConditionalAndExpression, ConditionalOrExpression,
6832 ConditionalExpression, Assignment, LeftHandSide): Update
6833 calls to write_exp* and similars in order to use parser state.
6834 (parse_number): Ajust code to use parser state.
6835 (yylex): Likewise.
6836 (java_parse): New function.
6837 (push_variable): Add "struct parser_state" argument. Adjust
6838 code to user parser state.
6839 (push_fieldnames, push_qualified_expression_name,
6840 push_expression_name, insert_exp): Likewise.
6841 * jv-lang.h: Forward declare "struct parser_state".
6842 (java_parse): Add "struct parser_state" argument.
6843 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6844 parser state.
6845 (yyparse): Redefine macro to m2_parse_internal.
6846 (pstate): New variable.
6847 (type_exp, exp, fblock, variable, type): Update calls to
6848 write_exp* and similars to use parser state.
6849 (yylex): Likewise.
6850 (m2_parse): New function.
6851 * m2-lang.h: Forward declare "struct parser_state".
6852 (m2_parse): Add "struct parser_state" argument.
6853 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6854 * objc-lang.h: Forward declare "struct parser_state".
6855 (end_msglist): Add "struct parser_state" argument.
6856 * p-exp.y (parse_type): Rewrite macro to use parser state.
6857 (yyparse): Redefine macro to pascal_parse_internal.
6858 (pstate): New variable.
6859 (parse_number): Add "struct parser_state" argument.
6860 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6861 write_exp* and similars in order to use parser state.
6862 (parse_number, yylex): Adjust code to use parser state.
6863 (pascal_parse): New function.
6864 * p-lang.h: Forward declare "struct parser_state".
6865 (pascal_parse): Add "struct parser_state" argument.
6866 * go-exp.y (parse_type): Rewrite macro to use parser state.
6867 (yyparse): Redefine macro to go_parse_internal.
6868 (pstate): New variable.
6869 (parse_number): Add "struct parser_state" argument.
6870 (type_exp, exp1, exp, variable, type): Update calls to
6871 write_exp* and similars in order to use parser state.
6872 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6873 to use parser state.
6874 (go_parse): Likewise.
6875 * go-lang.h: Forward declare "struct parser_state".
6876 (go_parse): Add "struct parser_state" argument.
6877
6878 2014-03-27 Doug Evans <dje@google.com>
6879
6880 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6881
6882 2014-03-27 Doug Evans <dje@google.com>
6883
6884 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6885 Remove argument abbrev_section. All callers updated.
6886
6887 2014-03-27 Doug Evans <dje@google.com>
6888
6889 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6890 addr_base, ranges_base.
6891
6892 2014-03-26 Keith Seitz <keiths@redhat.com>
6893
6894 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6895 types, not VAR_DOMAIN.
6896
6897 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6898
6899 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6900 "ra" registers.
6901 * features/nios2-linux.c: Regenerated.
6902 * features/nios2.c: Regenerated.
6903
6904 2014-03-25 Pedro Alves <palves@redhat.com>
6905
6906 * cli/cli-script.c (script_from_file): Force the interpreter to
6907 sync mode.
6908
6909 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6910
6911 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6912 small stack allocation.
6913
6914 2014-03-24 Tristan Gingold <gingold@adacore.com>
6915
6916 * darwin-nat.c (exc_server): Remove unused prototype.
6917 (darwin_dump_message): Correctly display data on x86_64.
6918 (darwin_encode_reply): Fix style.
6919 Add comments and fix indentation.
6920
6921 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6922
6923 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6924
6925 2014-03-22 Doug Evans <xdje42@gmail.com>
6926
6927 * infcmd.c: Whitespace fixes.
6928 (interrupt_command): Merge two function comments into one.
6929
6930 2014-03-22 Doug Evans <xdje42@gmail.com>
6931
6932 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6933 All uses updated.
6934
6935 2014-03-22 Yao Qi <yao@codesourcery.com>
6936
6937 * remote.c (target_read_live_memory): Remove.
6938 (memory_xfer_live_readonly_partial): Rename it to
6939 remote_xfer_live_readonly_partial. Remove argument 'object'.
6940 All callers updated. Call remote_read_bytes_1
6941 instead of target_read_live_memory.
6942 * tracepoint.c (set_traceframe_number): Remove.
6943 (make_cleanup_restore_traceframe_number): Likewise .
6944 * tracepoint.h (set_traceframe_number): Remove declaration.
6945 (make_cleanup_restore_traceframe_number): Likewise.
6946
6947 2014-03-22 Yao Qi <yao@codesourcery.com>
6948
6949 * remote.c (remote_read_bytes): Move code on reading from the
6950 remote stub to ...
6951 (remote_read_bytes_1): ... here. New function.
6952
6953 2014-03-22 Yao Qi <yao@codesourcery.com>
6954
6955 * ctf.c (ctf_xfer_partial): Check the return value of
6956 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6957 return TARGET_XFER_UNAVAILABLE.
6958 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6959 * target.c (target_read_live_memory): Move it to remote.c.
6960 (memory_xfer_live_readonly_partial): Likewise.
6961 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6962 * remote.c (target_read_live_memory): Moved from target.c.
6963 (memory_xfer_live_readonly_partial): Likewise.
6964 (remote_read_bytes): Factored out from
6965 memory_xfer_partial_1.
6966
6967 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6968
6969 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6970 NULL pointer.
6971
6972 2014-03-21 Pedro Alves <palves@redhat.com>
6973
6974 * infrun.c (normal_stop): Extend comment.
6975
6976 2014-03-21 Hui Zhu <hui@codesourcery.com>
6977 Pedro Alves <palves@redhat.com>
6978
6979 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6980 static buffer.
6981 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6982 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6983 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6984
6985 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6986
6987 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6988 `z' formatted output modifier.
6989
6990 2014-03-20 Tom Tromey <tromey@redhat.com>
6991 Sergio Durigan Junior <sergiodj@redhat.com>
6992
6993 * probe.c (parse_probes): Turn assert into an ordinary error.
6994 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6995 exceptions when parsing probes. Rearrange the code for clarity.
6996
6997 2014-03-20 Tom Tromey <tromey@redhat.com>
6998
6999 PR gdb/14135
7000 * top.c (execute_command): Only dispatch events if the command
7001 started the target.
7002
7003 2014-03-20 Tom Tromey <tromey@redhat.com>
7004
7005 PR cli/15718
7006 * infcall.c: Include event-top.h.
7007 (run_inferior_call): Call async_disable_stdin if needed.
7008
7009 2014-03-20 Pedro Alves <palves@redhat.com>
7010
7011 * infrun.c (prepare_to_proceed): Delete.
7012 (thread_still_needs_step_over): New function.
7013 (find_thread_needs_step_over): New function.
7014 (proceed): If the current thread needs a step-over, set its
7015 steping_over_breakpoint flag. Adjust to use
7016 find_thread_needs_step_over instead of prepare_to_proceed.
7017 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7018 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7019 breakpoint.
7020 (switch_back_to_stepped_thread): Step over breakpoints of all
7021 threads not the stepping thread, before switching back to the
7022 stepping thread.
7023
7024 2014-03-20 Pedro Alves <palves@redhat.com>
7025
7026 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7027 extern.
7028 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7029 * infrun.c (saved_singlestep_ptid)
7030 (stepping_past_singlestep_breakpoint): Delete.
7031 (resume): Remove stepping_past_singlestep_breakpoint handling.
7032 (proceed): Store the prev_pc of the stepping thread too.
7033 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7034 singlestep_pc.
7035 (enum infwait_states): Delete infwait_thread_hop_state.
7036 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7037 field.
7038 (handle_inferior_event): Adjust.
7039 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7040 handling and the thread-hop code. Before removing single-step
7041 breakpoints, check whether the thread hit a single-step breakpoint
7042 of another thread. If it did, the trap is not a random signal.
7043 (switch_back_to_stepped_thread): If the event thread hit a
7044 single-step breakpoint, unblock it before switching to the
7045 stepping thread. Handle the case of the stepped thread having
7046 advanced already.
7047 (keep_going): Handle the case of the current thread moving past a
7048 single-step breakpoint.
7049
7050 2014-03-20 Pedro Alves <palves@redhat.com>
7051
7052 PR breakpoints/7143
7053 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7054 are being stepped over.
7055 (breakpoint_address_match): Make extern.
7056 * breakpoint.h (breakpoint_address_match): New declaration.
7057 * inferior.h (stepping_past_instruction_at): New declaration.
7058 * infrun.c (struct step_over_info): New type.
7059 (step_over_info): New global.
7060 (set_step_over_info, clear_step_over_info)
7061 (stepping_past_instruction_at): New functions.
7062 (handle_inferior_event): Clear the step-over info when
7063 trap_expected is cleared.
7064 (resume): Remove now stale comment.
7065 (clear_proceed_status): Clear step-over info.
7066 (proceed): Adjust step-over handling to set or clear the step-over
7067 info instead of removing all breakpoints.
7068 (handle_signal_stop): When setting up a thread-hop, don't remove
7069 breakpoints here.
7070 (stop_stepping): Clear step-over info.
7071 (keep_going): Adjust step-over handling to set or clear step-over
7072 info and then always inserting breakpoints, instead of removing
7073 all breakpoints when stepping over one.
7074
7075 2014-03-20 Pedro Alves <palves@redhat.com>
7076
7077 * infrun.c (previous_inferior_ptid): Adjust comment.
7078 (deferred_step_ptid): Delete.
7079 (infrun_thread_ptid_changed, prepare_to_proceed)
7080 (init_wait_for_inferior): Adjust.
7081 (handle_signal_stop): Delete deferred_step_ptid handling.
7082
7083 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7084
7085 PR gdb/15358
7086 * defs.h (sync_quit_force_run): New declaration.
7087 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7088 * event-top.c (async_sigterm_handler): New declaration.
7089 (async_sigterm_token): New variable.
7090 (async_init_signals): Create also async_sigterm_token.
7091 (async_sigterm_handler): New function.
7092 (sync_quit_force_run): New variable.
7093 (handle_sigterm): Replace quit_force call by other calls.
7094 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7095
7096 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7097
7098 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7099 offset into SPE pseudo registers.
7100
7101 2014-03-18 Pedro Alves <palves@redhat.com>
7102
7103 PR gdb/13860
7104 * inferior.h (print_stop_event): Declare.
7105 * infrun.c (print_stop_event): New, factored out from ...
7106 (normal_stop): ... this.
7107 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7108 of bpstat_print/print_stack_frame.
7109
7110 2014-03-17 Tom Tromey <tromey@redhat.com>
7111
7112 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7113
7114 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7115
7116 * ada-lang.c (decode_constrained_packed_array): Perform a
7117 minimal coercion for reference with coerce_ref instead of
7118 ada_coerce_ref.
7119
7120 2014-03-17 Tristan Gingold <gingold@adacore.com>
7121
7122 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7123 (darwin_solib_create_inferior_hook): Emit a warning if version
7124 is unhandled.
7125
7126 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7127
7128 * python/py-value.c (get_field_flag): Cast flag_name argument to
7129 PyObject_GetAttrString to support Python 2.4.
7130
7131 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7132
7133 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7134 (Global Maintainers): Remove Jan Kratochvil.
7135
7136 2014-03-14 Pedro Alves <palves@redhat.com>
7137
7138 * inferior.h (terminal_ours_for_output): Rename to ...
7139 (child_terminal_ours_for_output): ... this.
7140 (terminal_save_ours): Rename to ...
7141 (child_terminal_save_ours): ... this.
7142 (terminal_ours): Rename to ...
7143 (child_terminal_ours): ... this.
7144 (terminal_inferior): Rename to ...
7145 (child_terminal_inferior): ... this.
7146 (terminal_init_inferior): Rename to ...
7147 (child_terminal_init_inferior): ... this.
7148 (terminal_init_inferior_with_pgrp): Rename to ...
7149 (child_terminal_init_inferior_with_pgrp): ... this.
7150 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7151 (child_terminal_init_with_pgrp): ... this.
7152 (terminal_save_ours): Rename to ...
7153 (child_terminal_save_ours): ... this.
7154 (terminal_init_inferior): Rename to ...
7155 (child_terminal_init): ... this. Adjust.
7156 (terminal_inferior): Rename to ...
7157 (child_terminal_inferior): ... this.
7158 (terminal_ours_for_output): Rename to ...
7159 (child_terminal_ours_for_output): ... this. Adjust.
7160 (terminal_ours): Rename to ...
7161 (child_terminal_ours): ... this.
7162 (terminal_ours_1): Rename to ...
7163 (child_terminal_ours_1): ... this. Adjust.
7164 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7165 * windows-nat.c (do_initial_windows_stuff): Adjust.
7166 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7167 (gnu_terminal_init): ... this. Adjust.
7168 (gnu_target): Adjust.
7169 * inf-child.c (inf_child_target): Adjust.
7170
7171 2014-03-13 Doug Evans <xdje42@gmail.com>
7172
7173 PR guile/16612
7174 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7175 new eq?-hashtab.
7176
7177 2014-03-13 Doug Evans <xdje42@gmail.com>
7178
7179 * value.c (record_latest_value): Call release_value_or_incref
7180 instead of release_value.
7181
7182 2014-03-13 Pedro Alves <palves@redhat.com>
7183
7184 * procfs.c (procfs_target): Don't override to_shortname,
7185 to_longname or to_doc.
7186
7187 2014-03-13 Pedro Alves <palves@redhat.com>
7188
7189 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7190 Unix in user visible strings.
7191
7192 2014-03-12 Stan Shebs <stan@codesourcery.com>
7193
7194 * gdbtypes.h: Annotate comments for Doxygen, add a page
7195 block comment with some general info.
7196
7197 2014-03-12 Pedro Alves <palves@redhat.com>
7198
7199 * infcmd.c (prepare_execution_command): New function, factored out
7200 from several execution commands.
7201 (run_command_1, continue_command, step_1, jump_command)
7202 (signal_command, until_command, advance_command, finish_command)
7203 (attach_command): Use prepare_execution_command.
7204
7205 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7206
7207 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7208 (MAX_BPTS): Define.
7209 (MAX_WPTS): Define.
7210 (struct arm_linux_thread_points): Removed.
7211 (struct arm_linux_process_info): New.
7212 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7213 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7214 (arm_linux_find_breakpoints_by_tid): Removed.
7215 (struct arch_lwp_info): New.
7216 (arm_linux_find_process_pid): New functions.
7217 (arm_linux_add_process): New functions.
7218 (arm_linux_process_info_get): New functions.
7219 (arm_linux_forget_process): New function.
7220 (arm_linux_get_debug_reg_state): New function.
7221 (struct update_registers_data): New.
7222 (update_registers_callback): New function.
7223 (arm_linux_insert_hw_breakpoint1): Updated.
7224 (arm_linux_remove_hw_breakpoint1): Updated.
7225 (arm_linux_insert_hw_breakpoint): Updated.
7226 (arm_linux_remove_hw_breakpoint): Updated.
7227 (arm_linux_insert_watchpoint): Updated.
7228 (arm_linux_remove_watchpoint): Updated.
7229 (arm_linux_new_thread): Updated.
7230 (arm_linux_prepare_to_resume): New function.
7231 (arm_linux_new_fork): New function.
7232 (_initialize_arm_linux_nat): Updated.
7233
7234 2014-03-12 Pedro Alves <palves@redhat.com>
7235
7236 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7237
7238 2014-03-12 Tom Tromey <tromey@redhat.com>
7239
7240 * inf-child.c (return_zero): New function.
7241 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7242 * aix-thread.c (aix_thread_inferior_created): New function.
7243 (aix_thread_attach): Remove.
7244 (init_aix_thread_ops): Don't set to_attach.
7245 (_initialize_aix_thread): Register inferior_created observer.
7246 * corelow.c (init_core_ops): Don't set to_attach or
7247 to_create_inferior.
7248 * exec.c (init_exec_ops): Don't set to_attach or
7249 to_create_inferior.
7250 * infcmd.c (run_command_1): Use find_run_target. Make direct
7251 target calls.
7252 (attach_command): Use find_attach_target. Make direct target
7253 calls.
7254 * record-btrace.c (init_record_btrace_ops): Don't set
7255 to_create_inferior.
7256 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7257 Remove.
7258 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7259 set to_create_inferior.
7260 * target.c (complete_target_initialization): Add assertion.
7261 (target_create_inferior): Remove.
7262 (find_default_attach, find_default_create_inferior): Remove.
7263 (find_attach_target, find_run_target): New functions.
7264 (find_default_is_async_p, find_default_can_async_p)
7265 (target_supports_non_stop, target_attach): Remove.
7266 (init_dummy_target): Don't set to_create_inferior or
7267 to_supports_non_stop.
7268 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7269 TARGET_DEFAULT_FUNC.
7270 <to_create_inferior>: Add comment.
7271 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7272 TARGET_DEFAULT_RETURN.
7273 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7274 (find_attach_target, find_run_target): Declare.
7275 (target_create_inferior): Remove.
7276 (target_has_execution_1): Update comment.
7277 (target_supports_non_stop): Remove.
7278 * target-delegates.c: Rebuild.
7279
7280 2014-03-12 Pedro Alves <palves@redhat.com>
7281
7282 * inf-child.h: Update comment to not mention Unix.
7283
7284 2014-03-12 Pedro Alves <palves@redhat.com>
7285
7286 * inf-child.c: Update top comment to not mention Unix. Add
7287 generic comment describing how this target is meant to be used.
7288 (inf_child_post_attach, inf_child_post_startup_inferior)
7289 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7290 Unix in comment.
7291
7292 2014-03-12 Pedro Alves <palves@redhat.com>
7293
7294 * nto-procfs.c: Include inf-child.h.
7295 (procfs_ops): Delete global.
7296 (procfs_can_run): Delete method.
7297 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7298 target pointer instead of referencing procfs_ops.
7299 (procfs_prepare_to_store): Delete.
7300 (init_procfs_ops): Delete function.
7301 (procfs_target): New function, based on init_procfs_ops, but
7302 inherit inf_child_target.
7303 (_initialize_procfs): Use procfs_target.
7304
7305 2014-03-12 Pedro Alves <palves@redhat.com>
7306
7307 * windows-nat.c: Include inf-child.h.
7308 (windows_ops): Delete global.
7309 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7310 methods.
7311 (init_windows_ops): Delete function.
7312 (windows_target): New function, based on init_windows_ops, but
7313 inherit inf_child_target.
7314 (_initialize_windows_nat): Use windows_target. Install x86
7315 specific target methods here.
7316
7317 2014-03-10 Doug Evans <xdje42@gmail.com>
7318
7319 * guile/guile.c (call_initialize_gdb_module): New function.
7320 (initialize_guile): Replace call to scm_init_guile with call to
7321 scm_with_guile.
7322
7323 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7324
7325 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7326 in call to TYPE_CODE macro.
7327
7328 2014-03-10 Jerome Guitton <guitton@adacore.com>
7329
7330 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7331 Resolve tagged types to full view.
7332
7333 2014-03-10 Hui Zhu <hui@codesourcery.com>
7334
7335 * target.h (target_insert_breakpoint): Remove "hardware" from its
7336 comments.
7337
7338 2014-03-07 Doug Evans <dje@google.com>
7339
7340 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7341
7342 2014-03-07 Doug Evans <dje@google.com>
7343
7344 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7345 Remove unused local comp_dir_attr. Assert exactly one of
7346 stub_comp_unit_die, stub_comp_dir is non-NULL.
7347
7348 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7349
7350 * target.h (complete_target_initialization, add_target):
7351 Add comment.
7352
7353 2014-03-07 Pedro Alves <palves@redhat.com>
7354
7355 * go32-nat.c: Include inf-child.h.
7356 (go32_ops): Delete global.
7357 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7358 Delete methods.
7359 (go32_create_inferior): Push the passed in target pointer instead
7360 of referencing go32_ops.
7361 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7362 (go32_target): New function, based on init_go32_ops, but inherit
7363 inf_child_target.
7364 (_initialize_go32_nat): Use go32_target. Move parts of
7365 init_go32_ops here.
7366
7367 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7368
7369 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7370 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7371 SYMBOL_VALUE_ADDRESS.
7372 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7373
7374 2014-03-06 Yao Qi <yao@codesourcery.com>
7375
7376 * breakpoint.c (get_tracepoint_by_number): Remove argument
7377 optional_p. All callers updated. Adjust comments. Update
7378 output message.
7379 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7380
7381 2014-03-06 Yao Qi <yao@codesourcery.com>
7382
7383 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7384 early if get_number returns zero. Use 'p' instead of 'args'.
7385
7386 2014-03-06 Yao Qi <yao@codesourcery.com>
7387
7388 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7389 message.
7390
7391 2014-03-06 Yao Qi <yao@codesourcery.com>
7392
7393 PR breakpoints/16508
7394 * tracepoint.c (check_trace_running): New function.
7395 (trace_find_command): Move code to check_trace_running and
7396 call check_trace_running.
7397 (trace_find_pc_command): Likewise.
7398 (trace_find_tracepoint_command): Likewise.
7399 (trace_find_line_command): Likewise.
7400 (trace_find_range_command): Likewise.
7401 * tracepoint.h (check_trace_running): Likewise.
7402 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7403
7404 2014-03-06 Yao Qi <yao@codesourcery.com>
7405
7406 * target.h (struct target_ops) <to_traceframe_info>: Use
7407 TARGET_DEFAULT_NORETURN (tcomplain ()).
7408 * target-delegates.c: Regenerated.
7409
7410 2014-03-05 Pedro Alves <palves@redhat.com>
7411
7412 PR gdb/16575
7413 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7414 void. Update comment.
7415 (dcache_xfer_memory): Delete.
7416 (dcache_read_memory_partial): New, based on the read bits of
7417 dcache_xfer_memory.
7418 (dcache_update): Add status parameter. Use ULONGEST for len, and
7419 adjust. Discard cache lines if the reason for the update was
7420 error.
7421 * dcache.h (dcache_xfer_memory): Delete declaration.
7422 (dcache_read_memory_partial): New declaration.
7423 (dcache_update): Update prototype.
7424 * target.c (raw_memory_xfer_partial): Update the dcache here.
7425 (memory_xfer_partial_1): Don't handle dcache writes here.
7426
7427 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7428
7429 * remote-sim.c (gdbsim_load): Add const to prog.
7430
7431 2014-03-03 Tom Tromey <tromey@redhat.com>
7432
7433 * elfread.c (probe_key): Change to bfd_data.
7434 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7435 now per-BFD, not per-objfile.
7436 * stap-probe.c (stap_probe_destroy): Update comment.
7437 (handle_stap_probe): Allocate on the per-BFD obstack.
7438
7439 2014-03-03 Tom Tromey <tromey@redhat.com>
7440
7441 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7442 * breakpoint.c (create_longjmp_master_breakpoint): Use
7443 get_probe_address.
7444 (add_location_to_breakpoint, bkpt_probe_insert_location)
7445 (bkpt_probe_remove_location): Update.
7446 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7447 * elfread.c (elf_symfile_relocate_probe): Remove.
7448 (elf_probe_fns): Update.
7449 (insert_exception_resume_breakpoint): Change type of "probe"
7450 parameter to bound_probe.
7451 (check_exception_resume): Update.
7452 * objfiles.c (objfile_relocate1): Don't relocate probes.
7453 * probe.c (bound_probe_s): New typedef.
7454 (parse_probes): Use get_probe_address. Set sal's objfile.
7455 (find_probe_by_pc): Return a bound_probe.
7456 (collect_probes): Return a VEC(bound_probe_s).
7457 (compare_probes): Update.
7458 (gen_ui_out_table_header_info): Change type of "probes"
7459 parameter. Update.
7460 (info_probes_for_ops): Update.
7461 (get_probe_address): New function.
7462 (probe_safe_evaluate_at_pc): Update.
7463 * probe.h (struct probe_ops) <get_probe_address>: New field.
7464 <set_semaphore, clear_semaphore>: Add objfile parameter.
7465 (struct probe) <objfile>: Remove field.
7466 <arch>: New field.
7467 <address>: Update comment.
7468 (struct bound_probe): New.
7469 (find_probe_by_pc): Return a bound_probe.
7470 (get_probe_address): Declare.
7471 * solib-svr4.c (struct probe_and_action) <address>: New field.
7472 (hash_probe_and_action, equal_probe_and_action): Update.
7473 (register_solib_event_probe): Add address parameter.
7474 (solib_event_probe_at): Update.
7475 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7476 get_probe_address.
7477 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7478 (stap_get_probe_address): New function.
7479 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7480 (compile_probe_arg): Update.
7481 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7482 address.
7483 (handle_stap_probe): Don't relocate the probe.
7484 (stap_relocate): Remove.
7485 (stap_gen_info_probes_table_values): Update.
7486 (stap_probe_ops): Remove stap_relocate.
7487 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7488 (debug_sym_probe_fns): Update.
7489 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7490 * symtab.c (init_sal): Use memset.
7491 * symtab.h (struct symtab_and_line) <objfile>: New field.
7492 * tracepoint.c (start_tracing, stop_tracing): Update.
7493
7494 2014-03-03 Tom Tromey <tromey@redhat.com>
7495
7496 * probe.h (parse_probes, find_probe_by_pc)
7497 (find_probes_in_objfile): Fix comments.
7498
7499 2014-03-02 Doug Evans <xdje42@gmail.com>
7500
7501 * infrun.c (handle_signal_stop): Replace test for
7502 TARGET_WAITKIND_STOPPED with an assert.
7503
7504 2014-03-02 Doug Evans <xdje42@gmail.com>
7505
7506 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7507
7508 2014-03-02 Doug Evans <xdje42@gmail.com>
7509
7510 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7511
7512 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7513
7514 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7515
7516 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7517
7518 * i386obsd-nat.c: Include "obsd-nat.h".
7519 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7520 add_target.
7521 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7522
7523 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7524
7525 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7526
7527 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7528
7529 * mips64obsd-nat.c: Include "obsd-nath".
7530 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7531 add_target
7532 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7533
7534 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7535
7536 * amd64obsd-nat.c: Include "obsd-nat,h.
7537 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7538 add_target.
7539 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7540
7541 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7542
7543 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7544 (find_overload_match): Update call to find_oload_champ.
7545 (find_oload_champ_namespace_loop): Likewise
7546
7547 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7548
7549 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7550
7551 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7552 * config/sparc/obsd64.mh: New file.
7553 * sparc64obsd-nat.c: New file.
7554
7555 * obsd-nat.h: New file.
7556 * obsd-nat.c: New file.
7557 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7558 (ALLDEPFILES): Add obsd-nat.c.
7559
7560 2014-02-28 Tom Tromey <tromey@redhat.com>
7561
7562 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7563 * cli-out.h (cli_ui_out_impl): Now const.
7564 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7565 * ui-out.c (struct ui_out) <impl>: Now const.
7566 (default_ui_out_impl): Now const.
7567 (ui_out_new): Make 'impl' parameter const.
7568 * ui-out.h (ui_out_new): Update.
7569
7570 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7571
7572 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7573
7574 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7575
7576 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7577
7578 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7579
7580 Additional PR 8882 fix.
7581 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7582
7583 2014-02-27 Pedro Alves <palves@redhat.com>
7584
7585 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7586 isn't set.
7587
7588 2014-02-27 Pedro Alves <palves@redhat.com>
7589
7590 PR 12702
7591 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7592 * nat/linux-waitpid.c: Include string.h.
7593 (status_to_str): Moved here and made extern.
7594 * nat/linux-waitpid.h (status_to_str): New declaration.
7595
7596 2014-02-27 Hui Zhu <hui@codesourcery.com>
7597
7598 PR 12702
7599 * infrun.c (ptid_match): Move ...
7600 * common/ptid.c (ptid_match): ... here.
7601 * inferior.h (ptid_match): Move ...
7602 * common/ptid.h (ptid_match): ... here.
7603
7604 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7605
7606 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7607 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7608 gdb_target_obs.
7609
7610 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7611
7612 * obsd-tdep.c (obsd_auxv_parse): New function.
7613 (obsd_init_abi): Set auxv_parse.
7614
7615 * gdbarch.sh (auxv_parse): New.
7616 * gdbarch.h: Regenerated.
7617 * gdbarch.c: Regenerated.
7618 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7619
7620 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7621
7622 * guile/scm-value.c (gdbscm_history_append_x): New function.
7623 (value_functions): Add it.
7624
7625 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7626
7627 * dwarf2read.c (attr_value_as_address): New function.
7628 (dwarf2_find_base_address, read_call_site_scope): Use
7629 attr_value_as_address in place of DW_ADDR.
7630 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7631 the low and high addresses. Slight rework of the handling
7632 of the high pc being a constant form, and limit it to
7633 DWARF verson 4 or higher.
7634 (dwarf2_record_block_ranges): Likewise.
7635 (read_partial_die): Likewise.
7636 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7637
7638 2014-02-26 Tom Tromey <tromey@redhat.com>
7639
7640 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7641
7642 2014-02-26 Tom Tromey <tromey@redhat.com>
7643
7644 * elfread.c (elf_read_minimal_symbols): Return early if
7645 minimal symbols have already been read. Add "ei" parameter.
7646 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7647 * minsyms.c (prim_record_minimal_symbol_full): Update.
7648 * objfiles.h (struct objstats) <n_minsyms>: Move...
7649 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7650 * symmisc.c (print_objfile_statistics): Update.
7651
7652 2014-02-26 Tom Tromey <tromey@redhat.com>
7653
7654 * elfread.c (elf_read_minimal_symbols): New function, from
7655 elf_symfile_read.
7656 (elf_symfile_read): Call it.
7657
7658 2014-02-26 Tom Tromey <tromey@redhat.com>
7659
7660 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7661 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7662 (lookup_minimal_symbol_solib_trampoline)
7663 (lookup_minimal_symbol_by_pc_section_1)
7664 (lookup_minimal_symbol_and_objfile): Update.
7665 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7666 Don't allocate a minimal symbol if minsyms have already been read.
7667 (build_minimal_symbol_hash_tables): Update.
7668 (install_minimal_symbols): Do nothing if minsyms already read.
7669 Use the per-BFD obstack.
7670 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7671 * objfiles.c (allocate_objfile): Call
7672 terminate_minimal_symbol_table later.
7673 (have_minimal_symbols): Update.
7674 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7675 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7676 Move from struct objfile.
7677 <minsyms_read>: New field.
7678 (struct objfile) <msymbols, minimal_symbol_count,
7679 msymbol_hash, msymbol_demangled_hash>: Move.
7680 (ALL_OBJFILE_MSYMBOLS): Update.
7681 * symfile.c (read_symbols): Set minsyms_read.
7682 (reread_symbols): Update.
7683 * symmisc.c (dump_objfile, dump_msymbols): Update.
7684
7685 2014-02-26 Tom Tromey <tromey@redhat.com>
7686
7687 * minsyms.c (msymbols_sort): Remove.
7688 * minsyms.h (msymbols_sort): Remove.
7689 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7690 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7691 * elfread.c (elf_symtab_read): Don't add section offsets.
7692 * xcoffread.c (record_minimal_symbol): Don't add section offset
7693 to minimal symbol address.
7694 * somread.c (text_offset, data_offset): Remove.
7695 (som_symtab_read): Don't add section offsets to minimal symbol
7696 addresses.
7697 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7698 Don't add section offsets to minimal symbols.
7699 * coffread.c (coff_symtab_read): Don't add section offsets
7700 to minimal symbol addresses.
7701 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7702 to minimal symbol addresses.
7703 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7704 section offset to minimal symbol addresses.
7705 * mdebugread.c (parse_partial_symbols): Don't add section
7706 offset to minimal symbol addresses.
7707 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7708 offset to minimal symbol addresses.
7709
7710 2014-02-26 Tom Tromey <tromey@redhat.com>
7711
7712 * ada-lang.c (ada_main_name): Update.
7713 (ada_add_standard_exceptions): Update.
7714 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7715 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7716 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7717 * auxv.c (ld_so_xfer_auxv): Update.
7718 * avr-tdep.c (avr_scan_prologue): Update.
7719 * ax-gdb.c (gen_var_ref): Update.
7720 * blockframe.c (get_pc_function_start)
7721 (find_pc_partial_function_gnu_ifunc): Update.
7722 * breakpoint.c (create_overlay_event_breakpoint)
7723 (create_longjmp_master_breakpoint)
7724 (create_std_terminate_master_breakpoint)
7725 (create_exception_master_breakpoint): Update.
7726 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7727 * c-valprint.c (c_val_print): Update.
7728 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7729 * common/agent.c (agent_look_up_symbols): Update.
7730 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7731 * dwarf2loc.c (call_site_to_target_addr): Update.
7732 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7733 * elfread.c (elf_gnu_ifunc_record_cache)
7734 (elf_gnu_ifunc_resolve_by_got): Update.
7735 * findvar.c (default_read_var_value): Update.
7736 * frame.c (inside_main_func): Update.
7737 * frv-tdep.c (frv_frame_this_id): Update.
7738 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7739 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7740 Update.
7741 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7742 (hppa_hpux_find_dummy_bpaddr): Update.
7743 * hppa-tdep.c (hppa_symbol_address): Update.
7744 * infcmd.c (until_next_command): Update.
7745 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7746 Update.
7747 * linespec.c (minsym_found, add_minsym): Update.
7748 * linux-nat.c (get_signo): Update.
7749 * linux-thread-db.c (inferior_has_bug): Update.
7750 * m32c-tdep.c (m32c_return_value)
7751 (m32c_m16c_address_to_pointer): Update.
7752 * m32r-tdep.c (m32r_frame_this_id): Update.
7753 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7754 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7755 * maint.c (maintenance_translate_address): Update.
7756 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7757 (frob_address): New function.
7758 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7759 frob_address. Rename parameter to "pc_in".
7760 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7761 addresses.
7762 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7763 Update.
7764 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7765 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7766 * objc-lang.c (find_objc_msgsend): Update.
7767 * objfiles.c (objfile_relocate1): Update.
7768 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7769 * p-valprint.c (pascal_val_print): Update.
7770 * parse.c (write_exp_msymbol): Update.
7771 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7772 (ppc_elfv2_skip_entrypoint): Update.
7773 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7774 * printcmd.c (build_address_symbolic, msym_info)
7775 (address_info): Update.
7776 * proc-service.c (ps_pglobal_lookup): Update.
7777 * psymtab.c (find_pc_sect_psymtab_closer)
7778 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7779 Change msymbol parameter to bound_minimal_symbol.
7780 * ravenscar-thread.c (get_running_thread_id): Update.
7781 * remote.c (remote_check_symbols): Update.
7782 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7783 address.
7784 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7785 * solib-dsbt.c (lm_base): Update.
7786 * solib-frv.c (lm_base, main_got): Update.
7787 * solib-irix.c (locate_base): Update.
7788 * solib-som.c (som_solib_create_inferior_hook)
7789 (link_map_start): Update.
7790 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7791 * solib-svr4.c (elf_locate_base, enable_break): Update.
7792 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7793 (flush_ea_cache): Update.
7794 * stabsread.c (define_symbol, scan_file_globals): Update.
7795 * stack.c (find_frame_funname): Update.
7796 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7797 (debug_qf_find_pc_sect_symtab): Update.
7798 * symfile.c (simple_read_overlay_table)
7799 (simple_overlay_update): Update.
7800 * symfile.h (struct quick_symbol_functions)
7801 <find_pc_sect_symtab>: Change type of msymbol to
7802 bound_minimal_symbol.
7803 * symmisc.c (dump_msymbols): Update.
7804 * symtab.c (find_pc_sect_symtab_via_partial)
7805 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7806 (search_symbols, print_msymbol_info): Update.
7807 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7808 (MSYMBOL_VALUE_ADDRESS): Redefine.
7809 (BMSYMBOL_VALUE_ADDRESS): New macro.
7810 * tracepoint.c (scope_info): Update.
7811 * tui/tui-disasm.c (tui_find_disassembly_address)
7812 (tui_get_begin_asm_address): Update.
7813 * valops.c (find_function_in_inferior): Update.
7814 * value.c (value_static_field, value_fn_field): Update.
7815
7816 2014-02-26 Tom Tromey <tromey@redhat.com>
7817
7818 * ada-lang.c (ada_update_initial_language): Update.
7819 (ada_main_name, ada_has_this_exception_support): Update.
7820 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7821 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7822 * arm-tdep.c (arm_skip_stub): Update.
7823 * auxv.c (ld_so_xfer_auxv): Update.
7824 * avr-tdep.c (avr_scan_prologue): Update.
7825 * ax-gdb.c (gen_var_ref): Update.
7826 * breakpoint.c (struct breakpoint_objfile_data)
7827 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7828 type to bound_minimal_symbol.
7829 (create_overlay_event_breakpoint)
7830 (create_longjmp_master_breakpoint)
7831 (create_std_terminate_master_breakpoint)
7832 (create_exception_master_breakpoint): Update.
7833 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7834 * c-exp.y (classify_name): Update.
7835 * coffread.c (coff_symfile_read): Update.
7836 * common/agent.c (agent_look_up_symbols): Update.
7837 * d-lang.c (d_main_name): Update.
7838 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7839 * dec-thread.c (enable_dec_thread): Update.
7840 * dwarf2loc.c (call_site_to_target_addr): Update.
7841 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7842 * eval.c (evaluate_subexp_standard): Update.
7843 * findvar.c (struct minsym_lookup_data) <result>: Change type
7844 to bound_minimal_symbol.
7845 <objfile>: Remove.
7846 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7847 * frame.c (inside_main_func): Update.
7848 * frv-tdep.c (frv_frame_this_id): Update.
7849 * gcore.c (call_target_sbrk): Update.
7850 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7851 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7852 Update.
7853 * go-lang.c (go_main_name): Update.
7854 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7855 (hppa_hpux_find_import_stub_for_addr): Update.
7856 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7857 Update. Change return type.
7858 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7859 type.
7860 * jit.c (jit_breakpoint_re_set_internal): Update.
7861 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7862 Update.
7863 * linux-nat.c (get_signo): Update.
7864 * linux-thread-db.c (inferior_has_bug): Update
7865 * m32c-tdep.c (m32c_return_value)
7866 (m32c_m16c_address_to_pointer): Update.
7867 * m32r-tdep.c (m32r_frame_this_id): Update.
7868 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7869 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7870 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7871 lookup_minimal_symbol. Change return type.
7872 (lookup_minimal_symbol): Remove.
7873 (lookup_bound_minimal_symbol): Update.
7874 (lookup_minimal_symbol_text): Change return type.
7875 (lookup_minimal_symbol_solib_trampoline): Change return type.
7876 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7877 (lookup_minimal_symbol_solib_trampoline): Change return type.
7878 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7879 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7880 (value_nsstring, find_imps): Update.
7881 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7882 * p-lang.c (pascal_main_name): Update.
7883 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7884 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7885 * proc-service.c (ps_pglobal_lookup): Update.
7886 * ravenscar-thread.c (get_running_thread_msymbol): Change
7887 return type.
7888 (has_ravenscar_runtime, get_running_thread_id): Update.
7889 * remote.c (remote_check_symbols): Update.
7890 * sol-thread.c (ps_pglobal_lookup): Update.
7891 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7892 * solib-dsbt.c (lm_base): Update.
7893 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7894 Update.
7895 * solib-irix.c (locate_base): Update.
7896 * solib-som.c (som_solib_create_inferior_hook)
7897 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7898 Update.
7899 * solib-spu.c (spu_enable_break): Update.
7900 * solib-svr4.c (elf_locate_base, enable_break): Update.
7901 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7902 (flush_ea_cache): Update.
7903 * stabsread.c (define_symbol): Update.
7904 * symfile.c (simple_read_overlay_table): Update.
7905 * symtab.c (find_pc_sect_line): Update.
7906 * tracepoint.c (scope_info): Update.
7907 * tui-disasm.c (tui_get_begin_asm_address): Update.
7908 * value.c (value_static_field): Update.
7909
7910 2014-02-26 Tom Tromey <tromey@redhat.com>
7911
7912 * minsyms.c (prim_record_minimal_symbol_full): Use
7913 SET_MSYMBOL_VALUE_ADDRESS.
7914 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7915 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7916 SET_MSYMBOL_VALUE_ADDRESS.
7917 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7918 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7919
7920 2014-02-26 Tom Tromey <tromey@redhat.com>
7921
7922 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7923 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7924 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7925 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7926 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7927 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7928 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7929 * ada-lang.c (ada_main_name): Update.
7930 (ada_lookup_simple_minsym): Update.
7931 (ada_make_symbol_completion_list): Update.
7932 (ada_add_standard_exceptions): Update.
7933 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7934 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7935 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7936 * arm-tdep.c (skip_prologue_function): Update.
7937 (arm_skip_stack_protector, arm_skip_stub): Update.
7938 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7939 (arm_wince_skip_main_prologue): Update.
7940 * auxv.c (ld_so_xfer_auxv): Update.
7941 * avr-tdep.c (avr_scan_prologue): Update.
7942 * ax-gdb.c (gen_var_ref): Update.
7943 * block.c (call_site_for_pc): Update.
7944 * blockframe.c (get_pc_function_start): Update.
7945 (find_pc_partial_function_gnu_ifunc): Update.
7946 * breakpoint.c (create_overlay_event_breakpoint): Update.
7947 (create_longjmp_master_breakpoint): Update.
7948 (create_std_terminate_master_breakpoint): Update.
7949 (create_exception_master_breakpoint): Update.
7950 (resolve_sal_pc): Update.
7951 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7952 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7953 Update.
7954 * c-valprint.c (c_val_print): Update.
7955 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7956 * coffread.c (coff_symfile_read): Update.
7957 * common/agent.c (agent_look_up_symbols): Update.
7958 * dbxread.c (find_stab_function_addr): Update.
7959 (end_psymtab): Update.
7960 * dwarf2loc.c (call_site_to_target_addr): Update.
7961 (func_verify_no_selftailcall): Update.
7962 (tailcall_dump): Update.
7963 (call_site_find_chain_1): Update.
7964 (dwarf_expr_reg_to_entry_parameter): Update.
7965 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7966 (elf_gnu_ifunc_resolve_by_got): Update.
7967 * f-valprint.c (info_common_command): Update.
7968 * findvar.c (read_var_value): Update.
7969 * frame.c (get_prev_frame_1): Update.
7970 (inside_main_func): Update.
7971 * frv-tdep.c (frv_skip_main_prologue): Update.
7972 (frv_frame_this_id): Update.
7973 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7974 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7975 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7976 (gnuv3_skip_trampoline): Update.
7977 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7978 (hppa64_hpux_in_solib_call_trampoline): Update.
7979 (hppa_hpux_skip_trampoline_code): Update.
7980 (hppa64_hpux_search_dummy_call_sequence): Update.
7981 (hppa_hpux_find_import_stub_for_addr): Update.
7982 (hppa_hpux_find_dummy_bpaddr): Update.
7983 * hppa-tdep.c (hppa_symbol_address)
7984 (hppa_lookup_stub_minimal_symbol): Update.
7985 * i386-tdep.c (i386_skip_main_prologue): Update.
7986 (i386_pe_skip_trampoline_code): Update.
7987 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7988 * infcall.c (get_function_name): Update.
7989 * infcmd.c (until_next_command): Update.
7990 * jit.c (jit_breakpoint_re_set_internal): Update.
7991 (jit_inferior_init): Update.
7992 * linespec.c (minsym_found): Update.
7993 (add_minsym): Update.
7994 * linux-fork.c (info_checkpoints_command): Update.
7995 * linux-nat.c (get_signo): Update.
7996 * linux-thread-db.c (inferior_has_bug): Update.
7997 * m32c-tdep.c (m32c_return_value): Update.
7998 (m32c_m16c_address_to_pointer): Update.
7999 (m32c_m16c_pointer_to_address): Update.
8000 * m32r-tdep.c (m32r_frame_this_id): Update.
8001 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8002 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8003 * maint.c (maintenance_translate_address): Update.
8004 * minsyms.c (add_minsym_to_hash_table): Update.
8005 (add_minsym_to_demangled_hash_table): Update.
8006 (msymbol_objfile): Update.
8007 (lookup_minimal_symbol): Update.
8008 (iterate_over_minimal_symbols): Update.
8009 (lookup_minimal_symbol_text): Update.
8010 (lookup_minimal_symbol_by_pc_name): Update.
8011 (lookup_minimal_symbol_solib_trampoline): Update.
8012 (lookup_minimal_symbol_by_pc_section_1): Update.
8013 (lookup_minimal_symbol_and_objfile): Update.
8014 (prim_record_minimal_symbol_full): Update.
8015 (compare_minimal_symbols): Update.
8016 (compact_minimal_symbols): Update.
8017 (build_minimal_symbol_hash_tables): Update.
8018 (install_minimal_symbols): Update.
8019 (terminate_minimal_symbol_table): Update.
8020 (find_solib_trampoline_target): Update.
8021 (minimal_symbol_upper_bound): Update.
8022 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8023 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8024 (mips_skip_pic_trampoline_code): Update.
8025 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8026 * objc-lang.c (selectors_info): Update.
8027 (classes_info): Update.
8028 (find_methods): Update.
8029 (find_imps): Update.
8030 (find_objc_msgsend): Update.
8031 * objfiles.c (objfile_relocate1): Update.
8032 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8033 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8034 * p-valprint.c (pascal_val_print): Update.
8035 * parse.c (write_exp_msymbol): Update.
8036 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8037 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8038 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8039 * printcmd.c (build_address_symbolic): Update.
8040 (sym_info): Update.
8041 (address_info): Update.
8042 * proc-service.c (ps_pglobal_lookup): Update.
8043 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8044 (find_pc_sect_psymtab): Update.
8045 * python/py-framefilter.c (py_print_frame): Update.
8046 * ravenscar-thread.c (get_running_thread_id): Update.
8047 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8048 Update.
8049 * remote.c (remote_check_symbols): Update.
8050 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8051 (rs6000_skip_trampoline_code): Update.
8052 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8053 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8054 * solib-dsbt.c (lm_base): Update.
8055 * solib-frv.c (lm_base): Update.
8056 (main_got): Update.
8057 * solib-irix.c (locate_base): Update.
8058 * solib-som.c (som_solib_create_inferior_hook): Update.
8059 (som_solib_desire_dynamic_linker_symbols): Update.
8060 (link_map_start): Update.
8061 * solib-spu.c (spu_enable_break): Update.
8062 (ocl_enable_break): Update.
8063 * solib-svr4.c (elf_locate_base): Update.
8064 (enable_break): Update.
8065 * spu-tdep.c (spu_get_overlay_table): Update.
8066 (spu_catch_start): Update.
8067 (flush_ea_cache): Update.
8068 * stabsread.c (define_symbol): Update.
8069 (scan_file_globals): Update.
8070 * stack.c (find_frame_funname): Update.
8071 (frame_info): Update.
8072 * symfile.c (simple_read_overlay_table): Update.
8073 (simple_overlay_update): Update.
8074 * symmisc.c (dump_msymbols): Update.
8075 * symtab.c (fixup_section): Update.
8076 (find_pc_sect_line): Update.
8077 (skip_prologue_sal): Update.
8078 (search_symbols): Update.
8079 (print_msymbol_info): Update.
8080 (rbreak_command): Update.
8081 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8082 (completion_list_objc_symbol): Update.
8083 (default_make_symbol_completion_list_break_on): Update.
8084 * tracepoint.c (scope_info): Update.
8085 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8086 (tui_get_begin_asm_address): Update.
8087 * valops.c (find_function_in_inferior): Update.
8088 * value.c (value_static_field): Update.
8089 (value_fn_field): Update.
8090
8091 2014-02-26 Tom Tromey <tromey@redhat.com>
8092
8093 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8094 bound minimal symbols. Move code that knows about minsym
8095 table layout...
8096 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8097 function.
8098 * minsyms.h (minimal_symbol_upper_bound): Declare.
8099 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8100 minimal_symbol_upper_bound.
8101
8102 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8103
8104 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8105 Use the type's name if its basic type does not have a tag.
8106
8107 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8108
8109 * dwarf2read.c (read_subrange_type): Add comment.
8110
8111 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8112
8113 * dwarf2read.c (update_enumeration_type_from_children): New
8114 function, mostly extracted from process_structure_scope.
8115 (read_enumeration_type): Call update_enumeration_type_from_children.
8116 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8117 and flag_flag_enum fields.
8118
8119 2014-02-26 Pedro Alves <palves@redhat.com>
8120
8121 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8122 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8123 to_xfer_partial method.
8124
8125 2014-02-26 Pedro Alves <palves@redhat.com>
8126
8127 * target.c (complete_target_initialization): Don't install
8128 default_xfer_partial as to_xfer_partial hook.
8129 (nomemory): Delete.
8130 (update_current_target): Don't INHERIT nor de_fault
8131 deprecated_xfer_memory. Delete de_fault macro.
8132 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8133 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8134 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8135 field.
8136
8137 2014-02-26 Pedro Alves <palves@redhat.com>
8138
8139 * go32-nat.c (my_write_child): New function.
8140 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8141 (go32_xfer_partial): New function.
8142 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8143 Instead install a to_xfer_partial hook.
8144
8145 2014-02-26 Pedro Alves <palves@redhat.com>
8146
8147 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8148 to_xfer_partial helper. Rewrite.
8149 (procfs_xfer_partial): New function.
8150 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8151 Install a to_xfer_partial hook.
8152
8153 2014-02-26 Pedro Alves <palves@redhat.com>
8154
8155 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8156 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8157 (m32r_xfer_partial): New function.
8158 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8159 Install a to_xfer_partial hook.
8160
8161 2014-02-26 Pedro Alves <palves@redhat.com>
8162
8163 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8164 helper.
8165 (mips_xfer_partial): New function.
8166 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8167 hook. Install a to_xfer_partial hook.
8168
8169 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8170
8171 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8172 * gdbtypes.c (create_array_type_with_stride): New function,
8173 renaming create_array_type, but with an added parameter
8174 called "bit_stride".
8175 (create_array_type): Re-implement using
8176 create_array_type_with_stride.
8177 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8178 and DW_AT_bit_stride attributes.
8179
8180 2014-02-26 Pedro Alves <palves@redhat.com>
8181
8182 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8183 task-specific breakpoints.
8184
8185 2014-02-25 Pedro Alves <palves@redhat.com>
8186
8187 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8188 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8189
8190 2014-02-25 Stan Shebs <stan@codesourcery.com>
8191
8192 * defs.h: Annotate comments for Doxygen.
8193
8194 2014-02-25 Tom Tromey <tromey@redhat.com>
8195
8196 * target.h (target_ignore): Don't declare.
8197 * target.c (target_ignore): Remove.
8198
8199 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8200
8201 PR gdb/16626
8202 * auto-load.c (auto_load_objfile_script_1): Change filename to
8203 debugfile.
8204
8205 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8206
8207 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8208 documentation. Adjust prototype to match the target_ops
8209 to_xfer_partial method. Adjust implementation accordingly.
8210
8211 2014-02-25 Hui Zhu <hui@codesourcery.com>
8212
8213 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8214 to_traceframe_info.
8215
8216 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8217
8218 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8219 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8220 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8221 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8222 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8223 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8224 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8225 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8226 New constants.
8227 (rl78_register_type): Use a data pointer type for SP and
8228 new pseudo registers mentioned above. Use a 16 bit integer
8229 type for all other register pairs.
8230 (rl78_register_name, rl78_g10_register_name): Update for
8231 new pseudo registers.
8232 (rl78_pseudo_register_read): Likewise.
8233 (rl78_pseudo_register_write): Likewise.
8234 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8235 to the newly added pseudo registers.
8236
8237 2014-02-24 Doug Evans <dje@google.com>
8238
8239 * value.c (record_latest_value): Fix comment.
8240 * printcmd.c (print_command_1): Remove code to handle -1 return from
8241 record_latest_value.
8242
8243 2014-02-24 Pedro Alves <palves@redhat.com>
8244
8245 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8246 deprecated_xfer_memory hook.
8247 (procfs_xfer_partial): Call procfs_xfer_memory instead
8248 of the deprecated_xfer_memory target hook.
8249 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8250 helper.
8251
8252 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8253
8254 * windows-nat.c (windows_xfer_shared_libraries): Return
8255 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8256 requested object is TARGET_OBJECT_LIBRARIES.
8257
8258 2014-02-24 Yao Qi <yao@codesourcery.com>
8259
8260 * target.h (enum target_xfer_status)
8261 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8262 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8263 explicitly. New.
8264 * corefile.c (memory_error_message): User updated.
8265 * exec.c (section_table_read_available_memory): Likewise.
8266 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8267 * target.c (target_xfer_status_to_string): Likewise.
8268 (raw_memory_xfer_partial): Likewise.
8269 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8270 * valops.c (read_value_memory): Likewise.
8271 * exec.h: Update comments.
8272
8273 2014-02-24 Yao Qi <yao@codesourcery.com>
8274
8275 * target.c (target_xfer_status_to_string): Rename argument err
8276 to status.
8277 * target.h (target_xfer_status_to_string): Update declaration.
8278 Replace target_xfer_error_to_string with
8279 target_xfer_status_to_string in comment.
8280
8281 2014-02-24 Yao Qi <yao@codesourcery.com>
8282
8283 * mips-linux-nat.c (super_close): Update its type.
8284 (mips_linux_close): Pass 'self' to super_close.
8285
8286 2014-02-24 Yao Qi <yao@codesourcery.com>
8287
8288 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8289 * corefile.c (read_memory): Adjusted.
8290 * target.c (target_write_with_progress): Adjusted.
8291
8292 2014-02-23 Yao Qi <yao@codesourcery.com>
8293
8294 Revert two patches:
8295
8296 2013-10-25 Yao Qi <yao@codesourcery.com>
8297
8298 * remote.c (remote_traceframe_info): Return early if
8299 traceframe is not selected.
8300
8301 2013-07-19 Yao Qi <yao@codesourcery.com>
8302
8303 * target.c (update_current_target): Change the default action
8304 of 'to_traceframe_info' from tcomplain to return_zero.
8305 * target.h (struct target_ops) <to_traceframe_info>: Add more
8306 comments.
8307
8308 2014-02-23 Yao Qi <yao@codesourcery.com>
8309
8310 * valops.c (read_value_memory): Rewrite it. Call
8311 target_xfer_partial in a loop.
8312 * exec.h (section_table_available_memory): Remove declaration.
8313 Move comments to ...
8314 * exec.c (section_table_available_memory): ... here. Make it
8315 static.
8316
8317 2014-02-23 Yao Qi <yao@codesourcery.com>
8318
8319 * exec.c (section_table_read_available_memory): New function.
8320 * exec.h (section_table_read_available_memory): Declare.
8321 * ctf.c (ctf_xfer_partial): Call
8322 section_table_read_available_memory.
8323 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8324
8325 2014-02-23 Yao Qi <yao@codesourcery.com>
8326
8327 * ctf.c (ctf_xfer_partial): Move code to ...
8328 * exec.c (exec_read_partial_read_only): ... it. New function.
8329 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8330 * tracefile.c: Include "exec.h".
8331 * exec.h (exec_read_partial_read_only): Declare.
8332
8333 2014-02-23 Yao Qi <yao@codesourcery.com>
8334
8335 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8336 (tfile_has_memory): Remove.
8337 (init_tfile_ops): Don't set fields to_has_all_memory and
8338 to_has_memory of tfile_ops.
8339 * tracefile.c (tracefile_has_all_memory): New function.
8340 (tracefile_has_memory): New function.
8341 (init_tracefile_ops): Initialize fields to_has_all_memory and
8342 to_has_memory of 'ops'.
8343
8344 2014-02-23 Yao Qi <yao@codesourcery.com>
8345
8346 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8347 (ctf_thread_alive, ctf_get_trace_status): Remove.
8348 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8349 init_tracefile_ops.
8350 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8351 (tfile_has_stack, tfile_has_registers): Remove.
8352 (tfile_thread_alive): Remove.
8353 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8354 init_tracefile_ops.
8355 * tracefile.c (tracefile_has_stack): New function.
8356 (tracefile_has_registers): New function.
8357 (tracefile_thread_alive): New function.
8358 (tracefile_get_trace_status): New function.
8359 (init_tracefile_ops): New function.
8360 * tracefile.h (init_tracefile_ops): Declare.
8361
8362 2014-02-23 Yao Qi <yao@codesourcery.com>
8363
8364 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8365 (O_LARGEFILE): Likewise.
8366 (tfile_ops): Likewise.
8367 (TRACE_HEADER_SIZE): Likewise.
8368 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8369 (cur_data_size): Likewise.
8370 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8371 (tfile_close, tfile_files_info): Likewise.
8372 (tfile_get_trace_status): Likewise.
8373 (tfile_get_tracepoint_status): Likewise.
8374 (tfile_get_traceframe_address): Likewise.
8375 (tfile_trace_find, match_blocktype): Likewise.
8376 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8377 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8378 (tfile_get_trace_state_variable_value): Likewise.
8379 (tfile_has_all_memory, tfile_has_memory): Likewise.
8380 (tfile_has_stack, tfile_has_registers): Likewise.
8381 (tfile_thread_alive, build_traceframe_info): Likewise.
8382 (tfile_traceframe_info, init_tfile_ops): Likewise.
8383 (_initialize_tracepoint): Don't call init_tfile_ops
8384 and add_target_with_completer.
8385 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8386 exec.h, completer.h and filenames.h.
8387 (_initialize_tracefile_tfile): New function.
8388
8389 2014-02-23 Yao Qi <yao@codesourcery.com>
8390
8391 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8392 tracefile-tfile.o.
8393 (HFILES_NO_SRCDIR): Add tracefile.h.
8394 * ctf.c: Include "tracefile.h".
8395 * tracefile.h: New file.
8396 * tracefile.c: New file
8397 * tracefile-tfile.c: New file.
8398 * tracepoint.c: Include "tracefile.h".
8399 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8400 (stop_reason_names): Add const.
8401 (trace_file_writer_xfree): Move it to tracefile.c.
8402 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8403 (trace_save_ctf): Likewise.
8404 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8405 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8406 (tfile_write_header, tfile_write_regblock_type): Likewise.
8407 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8408 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8409 (tfile_write_raw_data, tfile_end): Likewise.
8410 (tfile_trace_file_writer_new): Likewise.
8411 (free_uploaded_tp): Make it extern.
8412 (free_uploaded_tsv): Make it extern.
8413 (_initialize_tracepoint): Move code to register command 'tsave'
8414 to tracefile.c.
8415 * tracepoint.h (stop_reason_names): Declare.
8416 (struct trace_frame_write_ops): Move it to tracefile.h.
8417 (struct trace_file_write_ops): Likewise.
8418 (struct trace_file_writer): Likewise.
8419 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8420
8421 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8422
8423 PR gdb/16594
8424 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8425 process name.
8426 (get_cores_used_by_process): New parameter num_cores, use it.
8427 (linux_xfer_osdata_processes): Pass num_cores to it.
8428 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8429 process name.
8430
8431 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8432
8433 * target.c (memory_xfer_partial): Fix length arg in call to
8434 breakpoint_xfer_memory.
8435
8436 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8437
8438 PR tdep/16397
8439 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8440 number comes after the + or - signs. Adjust length of register
8441 name to be extracted.
8442
8443 2014-02-20 Tom Tromey <tromey@redhat.com>
8444
8445 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8446 (ada_varobj_ops): Mark "extern".
8447
8448 2014-02-20 Tom Tromey <tromey@redhat.com>
8449
8450 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8451
8452 2014-02-20 Doug Evans <xdje42@gmail.com>
8453
8454 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8455 All callers updated.
8456 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8457 All callers updated.
8458 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8459 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8460
8461 2014-02-20 lin zuojian <manjian2006@gmail.com>
8462 Joel Brobecker <brobecker@adacore.com>
8463 Doug Evans <xdje42@gmail.com>
8464
8465 PR symtab/16581
8466 * dwarf2read.c (struct die_info): New member in_process.
8467 (reset_die_in_process): New function.
8468 (process_die): Set it at the start, reset when returning.
8469 (inherit_abstract_dies): Only call process_die if origin_child_die
8470 not already being processed.
8471
8472 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8473
8474 * windows-nat.c (handle_unload_dll): Add function documentation.
8475 (do_initial_windows_stuff): Add comment explaining why we wait
8476 until after inferior initialization has finished before
8477 processing all DLLs.
8478
8479 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8480
8481 * windows-nat.c (get_module_name): Delete.
8482 (windows_get_exec_module_filename): New function, mostly
8483 inspired from get_module_name.
8484 (windows_pid_to_exec_file): Replace call to get_module_name
8485 by call to windows_get_exec_module_filename.
8486
8487 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8488
8489 * windows-nat.c (handle_load_dll): Rewrite this function's
8490 introductory comment. Remove code using get_module_name
8491 to get the DLL's name.
8492
8493 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8494
8495 * windows-nat.c (get_windows_debug_event): Ignore
8496 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8497 if windows_initialization_done == 0.
8498 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8499 Adjust implementation to always load all DLLs.
8500 (do_initial_windows_stuff): Replace call to
8501 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8502
8503 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8504
8505 * windows-nat.c (_initialize_windows_nat): Deprecate the
8506 "dll-symbols" command. Turn the "add-shared-symbol-files"
8507 and "assf" aliases into commands, and deprecate them as well.
8508 * NEWS: Add entry explaining that "dll-symbols" and its two
8509 aliases are now deprecated.
8510
8511 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8512
8513 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8514 new-line in debug string. Remove trailing spaces.
8515
8516 2014-02-19 Stan Shebs <stan@codesourcery.com>
8517
8518 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8519
8520 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8521
8522 * NEWS: Add entry for the new feature
8523 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8524 and class values.
8525
8526 2014-02-19 Stan Shebs <stan@codesourcery.com>
8527
8528 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8529
8530 2014-02-19 Pedro Alves <palves@redhat.com>
8531
8532 * common/ptid.h (struct ptid): Mention that process_stratum
8533 targets should prefer ptid.lwp.
8534
8535 2014-02-19 Pedro Alves <palves@redhat.com>
8536
8537 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8538 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8539 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8540 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8541 store remote thread ids rather than ptid.tid.
8542 (_initialize_remote): Adjust.
8543
8544 2014-02-19 Tom Tromey <tromey@redhat.com>
8545
8546 * target.c (target_get_unwinder): Rewrite.
8547 (target_get_tailcall_unwinder): Rewrite.
8548 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8549 (record_btrace_to_get_tailcall_unwinder): New function.
8550 (init_record_btrace_ops): Update.
8551 * target.h (struct target_ops) <to_get_unwinder,
8552 to_get_tailcall_unwinder>: Now function pointers. Use
8553 TARGET_DEFAULT_RETURN.
8554
8555 2014-02-19 Tom Tromey <tromey@redhat.com>
8556
8557 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8558 argument.
8559 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8560
8561 2014-02-19 Tom Tromey <tromey@redhat.com>
8562
8563 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8564 directly.
8565 * target-delegates.c: Rebuild.
8566 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8567 TARGET_DEFAULT_FUNC.
8568 * target.c (default_target_decr_pc_after_break): Rename from
8569 forward_target_decr_pc_after_break. Simplify.
8570 (target_decr_pc_after_break): Rely on delegation.
8571
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8573
8574 * target.c (update_current_target): Do not INHERIT to_doc or
8575 to_magic. Do not de_fault to_open or to_close.
8576
8577 2014-02-19 Tom Tromey <tromey@redhat.com>
8578
8579 * gcore.h (objfile_find_memory_regions): Declare.
8580 * gcore.c (objfile_find_memory_regions): No longer static. Add
8581 "self" argument.
8582 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8583 * exec.c: Include gcore.h.
8584 (exec_set_find_memory_regions): Remove.
8585 (exec_find_memory_regions): Remove.
8586 (exec_do_find_memory_regions): Remove.
8587 (init_exec_ops): Update.
8588 * defs.h (exec_set_find_memory_regions): Remove.
8589
8590 2014-02-19 Tom Tromey <tromey@redhat.com>
8591
8592 * target-delegates.c: Rebuild.
8593 * target.h (struct target_ops) <to_extra_thread_info,
8594 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8595 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8596 not 0, in TARGET_DEFAULT_RETURN.
8597
8598 2014-02-19 Tom Tromey <tromey@redhat.com>
8599
8600 * target.c (complete_target_initialization): Remove casts. Use
8601 return_zero_has_execution.
8602 (return_zero): Add "ignore" argument.
8603 (return_zero_has_execution): New function.
8604 (init_dummy_target): Remove casts. Use
8605 return_zero_has_execution.
8606
8607 2014-02-19 Tom Tromey <tromey@redhat.com>
8608
8609 * target.c (update_current_target): Update comments. Do not
8610 INHERIT to_stratum.
8611
8612 2014-02-19 Tom Tromey <tromey@redhat.com>
8613
8614 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8615 needed.
8616 * corelow.c (core_read_description): Delegate when needed.
8617 * remote.c (remote_read_description): Delegate when needed.
8618 * target-delegates.c: Rebuild.
8619 * target.c (target_read_description): Rewrite.
8620 * target.h (struct target_ops) <to_read_description>: Update
8621 comment. Use TARGET_DEFAULT_RETURN.
8622
8623 2014-02-19 Tom Tromey <tromey@redhat.com>
8624
8625 * target-delegates.c: Rebuild.
8626 * target.c (update_current_target): Don't inherit or default
8627 to_can_run.
8628 (find_default_run_target): Check against delegate_can_run.
8629 * target.h (struct target_ops) <to_can_run>: Use
8630 TARGET_DEFAULT_RETURN.
8631
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8633
8634 * target-delegates.c: Rebuild.
8635 * target.c (target_disconnect): Unconditionally delegate.
8636 * target.h (struct target_ops) <to_disconnect>: Use
8637 TARGET_DEFAULT_NORETURN.
8638
8639 2014-02-19 Tom Tromey <tromey@redhat.com>
8640
8641 * record.c (record_stop): Unconditionally delegate.
8642 * target-delegates.c: Rebuild.
8643 * target.c (target_stop_recording): Unconditionally delegate.
8644 * target.h (struct target_ops) <to_stop_recording>: Use
8645 TARGET_DEFAULT_IGNORE.
8646
8647 2014-02-19 Tom Tromey <tromey@redhat.com>
8648
8649 * target-delegates.c: Rebuild.
8650 * target.c (target_enable_btrace): Unconditionally delegate.
8651 * target.h (struct target_ops) <to_enable_btrace>: Use
8652 TARGET_DEFAULT_NORETURN.
8653
8654 2014-02-19 Tom Tromey <tromey@redhat.com>
8655
8656 * target-delegates.c: Rebuild.
8657 * target.c (target_read_btrace): Unconditionally delegate.
8658 * target.h (struct target_ops) <to_read_btrace>: Use
8659 TARGET_DEFAULT_NORETURN.
8660
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * target-delegates.c: Rebuild.
8664 * target.c (target_teardown_btrace): Unconditionally delegate.
8665 * target.h (struct target_ops) <to_teardown_btrace>: Use
8666 TARGET_DEFAULT_NORETURN.
8667
8668 2014-02-19 Tom Tromey <tromey@redhat.com>
8669
8670 * target-delegates.c: Rebuild.
8671 * target.c (target_disable_btrace): Unconditionally delegate.
8672 * target.h (struct target_ops) <to_disable_btrace>: Use
8673 TARGET_DEFAULT_NORETURN.
8674
8675 2014-02-19 Tom Tromey <tromey@redhat.com>
8676
8677 * target-delegates.c: Rebuild.
8678 * target.c (default_search_memory): New function.
8679 (simple_search_memory): Update comment.
8680 (target_search_memory): Unconditionally delegate.
8681 * target.h (struct target_ops) <to_search_memory>: Use
8682 TARGET_DEFAULT_FUNC.
8683
8684 2014-02-19 Tom Tromey <tromey@redhat.com>
8685
8686 * auxv.c (default_auxv_parse): No longer static.
8687 (target_auxv_parse): Unconditionally delegate.
8688 * auxv.h (default_auxv_parse): Declare.
8689 * target-delegates.c: Rebuild.
8690 * target.c: Include auxv.h.
8691 * target.h (struct target_ops) <to_auxv_parse>: Use
8692 TARGET_DEFAULT_FUNC.
8693
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8695
8696 * target-delegates.c: Rebuild.
8697 * target.c (target_memory_map): Unconditionally delegate.
8698 * target.h (struct target_ops) <to_memory_map>: Use
8699 TARGET_DEFAULT_RETURN.
8700
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8702
8703 * target-delegates.c: Rebuild.
8704 * target.c (target_thread_alive): Unconditionally delegate.
8705 * target.h (struct target_ops) <to_thread_alive>: Use
8706 TARGET_DEFAULT_RETURN.
8707
8708 2014-02-19 Tom Tromey <tromey@redhat.com>
8709
8710 * target-delegates.c: Rebuild.
8711 * target.c (target_save_record): Unconditionally delegate.
8712 * target.h (struct target_ops) <to_save_record>: Use
8713 TARGET_DEFAULT_NORETURN.
8714
8715 2014-02-19 Tom Tromey <tromey@redhat.com>
8716
8717 * target-delegates.c: Rebuild.
8718 * target.c (target_delete_record): Unconditionally delegate.
8719 * target.h (struct target_ops) <to_delete_record>: Use
8720 TARGET_DEFAULT_NORETURN.
8721
8722 2014-02-19 Tom Tromey <tromey@redhat.com>
8723
8724 * target-delegates.c: Rebuild.
8725 * target.c (target_record_is_replaying): Unconditionally
8726 delegate.
8727 * target.h (struct target_ops) <to_record_is_replaying>: Use
8728 TARGET_DEFAULT_RETURN.
8729
8730 2014-02-19 Tom Tromey <tromey@redhat.com>
8731
8732 * target-delegates.c: Rebuild.
8733 * target.c (target_goto_record_begin): Unconditionally delegate.
8734 * target.h (struct target_ops) <to_goto_record_begin>: Use
8735 TARGET_DEFAULT_NORETURN.
8736
8737 2014-02-19 Tom Tromey <tromey@redhat.com>
8738
8739 * target-delegates.c: Rebuild.
8740 * target.c (target_goto_record_end): Unconditionally delegate.
8741 * target.h (struct target_ops) <to_goto_record_end>: Use
8742 TARGET_DEFAULT_NORETURN.
8743
8744 2014-02-19 Tom Tromey <tromey@redhat.com>
8745
8746 * target-delegates.c: Rebuild.
8747 * target.c (target_goto_record): Unconditionally delegate.
8748 * target.h (struct target_ops) <to_goto_record>: Use
8749 TARGET_DEFAULT_NORETURN.
8750
8751 2014-02-19 Tom Tromey <tromey@redhat.com>
8752
8753 * target-delegates.c: Rebuild.
8754 * target.c (target_insn_history): Unconditionally delegate.
8755 * target.h (struct target_ops) <to_insn_history>: Use
8756 TARGET_DEFAULT_NORETURN.
8757
8758 2014-02-19 Tom Tromey <tromey@redhat.com>
8759
8760 * target-delegates.c: Rebuild.
8761 * target.c (target_insn_history_from): Unconditionally delegate.
8762 * target.h (struct target_ops) <to_insn_history_from>: Use
8763 TARGET_DEFAULT_NORETURN.
8764
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8766
8767 * target-delegates.c: Rebuild.
8768 * target.c (target_insn_history_range): Unconditionally delegate.
8769 * target.h (struct target_ops) <to_insn_history_range>: Use
8770 TARGET_DEFAULT_NORETURN.
8771
8772 2014-02-19 Tom Tromey <tromey@redhat.com>
8773
8774 * target-delegates.c: Rebuild.
8775 * target.c (target_call_history): Unconditionally delegate.
8776 * target.h (struct target_ops) <to_call_history>: Use
8777 TARGET_DEFAULT_NORETURN.
8778
8779 2014-02-19 Tom Tromey <tromey@redhat.com>
8780
8781 * target-delegates.c: Rebuild.
8782 * target.c (target_call_history_from): Unconditionally delegate.
8783 * target.h (struct target_ops) <to_call_history_from>: Use
8784 TARGET_DEFAULT_NORETURN.
8785
8786 2014-02-19 Tom Tromey <tromey@redhat.com>
8787
8788 * target-delegates.c: Rebuild.
8789 * target.c (target_call_history_range): Unconditionally delegate.
8790 * target.h (struct target_ops) <to_call_history_range>: Use
8791 TARGET_DEFAULT_NORETURN.
8792
8793 2014-02-19 Tom Tromey <tromey@redhat.com>
8794
8795 * target-delegates.c: Rebuild.
8796 * target.c (target_verify_memory): Unconditionally delegate.
8797 * target.h (struct target_ops) <to_verify_memory>: Use
8798 TARGET_DEFAULT_NORETURN.
8799
8800 2014-02-19 Tom Tromey <tromey@redhat.com>
8801
8802 * target-delegates.c: Rebuild.
8803 * target.c (target_core_of_thread): Unconditionally delegate.
8804 * target.h (struct target_ops) <to_core_of_thread>: Use
8805 TARGET_DEFAULT_RETURN.
8806
8807 2014-02-19 Tom Tromey <tromey@redhat.com>
8808
8809 * target-delegates.c: Rebuild.
8810 * target.c (target_flash_done): Unconditionally delegate.
8811 * target.h (struct target_ops) <to_flash_done>: Use
8812 TARGET_DEFAULT_NORETURN.
8813
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8815
8816 * target-delegates.c: Rebuild.
8817 * target.c (target_flash_erase): Unconditionally delegate.
8818 * target.h (struct target_ops) <to_flash_erase>: Use
8819 TARGET_DEFAULT_NORETURN.
8820
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8822
8823 * target-delegates.c: Rebuild.
8824 * target.c (target_get_section_table): Unconditionally delegate.
8825 * target.h (struct target_ops) <to_get_section_table>: Use
8826 TARGET_DEFAULT_RETURN.
8827
8828 2014-02-19 Tom Tromey <tromey@redhat.com>
8829
8830 * target-delegates.c: Rebuild.
8831 * target.c (target_pid_to_str): Unconditionally delegate.
8832 (init_dummy_target): Don't initialize to_pid_to_str.
8833 (default_pid_to_str): Rename from dummy_pid_to_str.
8834 * target.h (struct target_ops) <to_pid_to_str>: Use
8835 TARGET_DEFAULT_FUNC.
8836
8837 2014-02-19 Tom Tromey <tromey@redhat.com>
8838
8839 * target-delegates.c: Rebuild.
8840 * target.c (target_find_new_threads): Unconditionally delegate.
8841 * target.h (struct target_ops) <to_find_new_threads>: Use
8842 TARGET_DEFAULT_RETURN.
8843
8844 2014-02-19 Tom Tromey <tromey@redhat.com>
8845
8846 * target-delegates.c: Rebuild.
8847 * target.c (target_program_signals): Unconditionally delegate.
8848 * target.h (struct target_ops) <to_program_signals>: Use
8849 TARGET_DEFAULT_IGNORE.
8850
8851 2014-02-19 Tom Tromey <tromey@redhat.com>
8852
8853 * target-delegates.c: Rebuild.
8854 * target.c (target_pass_signals): Unconditionally delegate.
8855 * target.h (struct target_ops) <to_pass_signals>: Use
8856 TARGET_DEFAULT_IGNORE.
8857
8858 2014-02-19 Tom Tromey <tromey@redhat.com>
8859
8860 * target-delegates.c: Rebuild.
8861 * target.c (default_mourn_inferior): New function.
8862 (target_mourn_inferior): Unconditionally delegate.
8863 * target.h (struct target_ops) <to_mourn_inferior>: Use
8864 TARGET_DEFAULT_FUNC.
8865
8866 2014-02-19 Tom Tromey <tromey@redhat.com>
8867
8868 * target-delegates.c: Rebuild.
8869 * target.c (default_follow_fork): New function.
8870 (target_follow_fork): Unconditionally delegate.
8871 * target.h (struct target_ops) <to_follow_fork>: Use
8872 TARGET_DEFAULT_FUNC.
8873
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8875
8876 * target-delegates.c: Rebuild.
8877 * target.c (target_kill): Unconditionally delegate.
8878 * target.h (struct target_ops) <to_kill>: Use
8879 TARGET_DEFAULT_NORETURN.
8880
8881 2014-02-19 Tom Tromey <tromey@redhat.com>
8882
8883 * target-delegates.c: Rebuild.
8884 * target.c (target_masked_watch_num_registers): Unconditionally
8885 delegate.
8886 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8887 Use TARGET_DEFAULT_RETURN.
8888
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8890
8891 * target-delegates.c: Rebuild.
8892 * target.c (target_remove_mask_watchpoint): Unconditionally
8893 delegate.
8894 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8895 TARGET_DEFAULT_RETURN.
8896
8897 2014-02-19 Tom Tromey <tromey@redhat.com>
8898
8899 * target-delegates.c: Rebuild.
8900 * target.c (target_insert_mask_watchpoint): Unconditionally
8901 delegate.
8902 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8903 TARGET_DEFAULT_RETURN.
8904
8905 2014-02-19 Tom Tromey <tromey@redhat.com>
8906
8907 * target-delegates.c: Rebuild.
8908 * target.c (target_ranged_break_num_registers): Unconditionally
8909 delegate.
8910 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8911 Use TARGET_DEFAULT_RETURN.
8912
8913 2014-02-19 Tom Tromey <tromey@redhat.com>
8914
8915 * target-delegates.c: Rebuild.
8916 * target.c (target_fetch_registers): Unconditionally delegate.
8917 * target.h (struct target_ops) <to_fetch_registers>: Use
8918 TARGET_DEFAULT_NORETURN.
8919
8920 2014-02-19 Tom Tromey <tromey@redhat.com>
8921
8922 * target-delegates.c: Rebuild.
8923 * target.c (update_current_target): Don't inherit or default
8924 to_stop.
8925 * target.h (struct target_ops) <to_stop>: Use
8926 TARGET_DEFAULT_IGNORE.
8927
8928 2014-02-19 Tom Tromey <tromey@redhat.com>
8929
8930 * target-delegates.c: Rebuild.
8931 * target.c (update_current_target): Don't inherit or default
8932 to_can_run_breakpoint_commands.
8933 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8934 Use TARGET_DEFAULT_RETURN.
8935
8936 2014-02-19 Tom Tromey <tromey@redhat.com>
8937
8938 * target-delegates.c: Rebuild.
8939 * target.c (update_current_target): Don't inherit or default
8940 to_supports_evaluation_of_breakpoint_conditions.
8941 * target.h (struct target_ops)
8942 <to_supports_evaluation_of_breakpoint_conditions>: Use
8943 TARGET_DEFAULT_RETURN.
8944
8945 2014-02-19 Tom Tromey <tromey@redhat.com>
8946
8947 * target-delegates.c: Rebuild.
8948 * target.c (update_current_target): Don't inherit or default
8949 to_augmented_libraries_svr4_read.
8950 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8951 Use TARGET_DEFAULT_RETURN.
8952
8953 2014-02-19 Tom Tromey <tromey@redhat.com>
8954
8955 * target-delegates.c: Rebuild.
8956 * target.c (update_current_target): Don't inherit or default
8957 to_can_use_agent.
8958 * target.h (struct target_ops) <to_can_use_agent>: Use
8959 TARGET_DEFAULT_RETURN.
8960
8961 2014-02-19 Tom Tromey <tromey@redhat.com>
8962
8963 * target-delegates.c: Rebuild.
8964 * target.c (update_current_target): Don't inherit or default
8965 to_use_agent.
8966 * target.h (struct target_ops) <to_use_agent>: Use
8967 TARGET_DEFAULT_NORETURN.
8968
8969 2014-02-19 Tom Tromey <tromey@redhat.com>
8970
8971 * target-delegates.c: Rebuild.
8972 * target.c (update_current_target): Don't inherit or default
8973 to_traceframe_info.
8974 (return_null): Remove.
8975 * target.h (struct target_ops) <to_traceframe_info>: Use
8976 TARGET_DEFAULT_RETURN.
8977
8978 2014-02-19 Tom Tromey <tromey@redhat.com>
8979
8980 * target-delegates.c: Rebuild.
8981 * target.c (update_current_target): Don't inherit or default
8982 to_static_tracepoint_markers_by_strid.
8983 * target.h (struct target_ops)
8984 <to_static_tracepoint_markers_by_strid>: Use
8985 TARGET_DEFAULT_NORETURN.
8986
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * target-delegates.c: Rebuild.
8990 * target.c (update_current_target): Don't inherit or default
8991 to_static_tracepoint_marker_at.
8992 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8993 Use TARGET_DEFAULT_RETURN.
8994
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8996
8997 * target-delegates.c: Rebuild.
8998 * target.c (update_current_target): Don't inherit or default
8999 to_set_permissions.
9000 * target.h (struct target_ops) <to_set_permissions>: Use
9001 TARGET_DEFAULT_IGNORE.
9002
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9004
9005 * target-delegates.c: Rebuild.
9006 * target.c (update_current_target): Don't inherit or default
9007 to_get_tib_address.
9008 * target.h (struct target_ops) <to_get_tib_address>: Use
9009 TARGET_DEFAULT_NORETURN.
9010
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9012
9013 * target-delegates.c: Rebuild.
9014 * target.c (update_current_target): Don't inherit or default
9015 to_set_trace_notes.
9016 * target.h (struct target_ops) <to_set_trace_notes>: Use
9017 TARGET_DEFAULT_RETURN.
9018
9019 2014-02-19 Tom Tromey <tromey@redhat.com>
9020
9021 * target-delegates.c: Rebuild.
9022 * target.c (update_current_target): Don't initialize
9023 to_set_trace_buffer_size.
9024 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9025 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
9032 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9033 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
9040 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9041 TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
9048 (return_minus_one): Remove.
9049 * target.h (struct target_ops)
9050 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9051
9052 2014-02-19 Tom Tromey <tromey@redhat.com>
9053
9054 * target-delegates.c: Rebuild.
9055 * target.c (update_current_target): Don't inherit or default
9056 to_get_raw_trace_data.
9057 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9058 TARGET_DEFAULT_NORETURN.
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_upload_trace_state_variables.
9065 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9066 Use TARGET_DEFAULT_RETURN.
9067
9068 2014-02-19 Tom Tromey <tromey@redhat.com>
9069
9070 * target-delegates.c: Rebuild.
9071 * target.c (update_current_target): Don't inherit or default
9072 to_upload_tracepoints.
9073 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9074 TARGET_DEFAULT_RETURN.
9075
9076 2014-02-19 Tom Tromey <tromey@redhat.com>
9077
9078 * target-delegates.c: Rebuild.
9079 * target.c (update_current_target): Don't inherit or default
9080 to_save_trace_data.
9081 * target.h (struct target_ops) <to_save_trace_data>: Use
9082 TARGET_DEFAULT_NORETURN.
9083
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9085
9086 * target-delegates.c: Rebuild.
9087 * target.c (update_current_target): Don't inherit or default
9088 to_get_trace_state_variable_value.
9089 * target.h (struct target_ops)
9090 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9091
9092 2014-02-19 Tom Tromey <tromey@redhat.com>
9093
9094 * target-delegates.c: Rebuild.
9095 * target.c (update_current_target): Don't inherit or default
9096 to_trace_find.
9097 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9098
9099 2014-02-19 Tom Tromey <tromey@redhat.com>
9100
9101 * target-delegates.c: Rebuild.
9102 * target.c (update_current_target): Don't inherit or default
9103 to_trace_stop.
9104 * target.h (struct target_ops) <to_trace_stop>: Use
9105 TARGET_DEFAULT_NORETURN.
9106
9107 2014-02-19 Tom Tromey <tromey@redhat.com>
9108
9109 * target-delegates.c: Rebuild.
9110 * target.c (update_current_target): Don't inherit or default
9111 to_get_tracepoint_status.
9112 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9113 TARGET_DEFAULT_NORETURN.
9114
9115 2014-02-19 Tom Tromey <tromey@redhat.com>
9116
9117 * target-delegates.c: Rebuild.
9118 * target.c (update_current_target): Don't inherit or default
9119 to_get_trace_status.
9120 * target.h (struct target_ops) <to_get_trace_status>: Use
9121 TARGET_DEFAULT_RETURN.
9122
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9124
9125 * target-delegates.c: Rebuild.
9126 * target.c (update_current_target): Don't inherit or default
9127 to_trace_start.
9128 * target.h (struct target_ops) <to_trace_start>: Use
9129 TARGET_DEFAULT_NORETURN.
9130
9131 2014-02-19 Tom Tromey <tromey@redhat.com>
9132
9133 * target-delegates.c: Rebuild.
9134 * target.c (update_current_target): Don't inherit or default
9135 to_trace_set_readonly_regions.
9136 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9137 Use TARGET_DEFAULT_NORETURN.
9138
9139 2014-02-19 Tom Tromey <tromey@redhat.com>
9140
9141 * target-delegates.c: Rebuild.
9142 * target.c (update_current_target): Don't inherit or default
9143 to_disable_tracepoint.
9144 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9145 TARGET_DEFAULT_NORETURN.
9146
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9148
9149 * target-delegates.c: Rebuild.
9150 * target.c (update_current_target): Don't inherit or default
9151 to_enable_tracepoint.
9152 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9153 TARGET_DEFAULT_NORETURN.
9154
9155 2014-02-19 Tom Tromey <tromey@redhat.com>
9156
9157 * target-delegates.c: Rebuild.
9158 * target.c (update_current_target): Don't inherit or default
9159 to_download_trace_state_variable.
9160 * target.h (struct target_ops) <to_download_trace_state_variable>:
9161 Use TARGET_DEFAULT_NORETURN.
9162
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9164
9165 * target-delegates.c: Rebuild.
9166 * target.c (update_current_target): Don't inherit or default
9167 to_can_download_tracepoint.
9168 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9169 TARGET_DEFAULT_RETURN.
9170
9171 2014-02-19 Tom Tromey <tromey@redhat.com>
9172
9173 * target-delegates.c: Rebuild.
9174 * target.c (update_current_target): Don't inherit or default
9175 to_download_tracepoint.
9176 * target.h (struct target_ops) <to_download_tracepoint>: Use
9177 TARGET_DEFAULT_NORETURN.
9178
9179 2014-02-19 Tom Tromey <tromey@redhat.com>
9180
9181 * target-delegates.c: Rebuild.
9182 * target.c (update_current_target): Don't inherit or default
9183 to_trace_init.
9184 * target.h (struct target_ops) <to_trace_init>: Use
9185 TARGET_DEFAULT_RETURN.
9186
9187 2014-02-19 Tom Tromey <tromey@redhat.com>
9188
9189 * target-delegates.c: Rebuild.
9190 * target.c (update_current_target): Don't inherit or default
9191 to_supports_string_tracing.
9192 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9193 TARGET_DEFAULT_RETURN.
9194
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9196
9197 * target-delegates.c: Rebuild.
9198 * target.c (update_current_target): Don't inherit or default
9199 to_supports_enable_disable_tracepoint.
9200 * target.h (struct target_ops)
9201 <to_supports_enable_disable_tracepoint>: Use
9202 TARGET_DEFAULT_RETURN.
9203
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9205
9206 * target-delegates.c: Rebuild.
9207 * target.c (update_current_target): Don't inherit or default
9208 to_supports_multi_process.
9209 * target.h (struct target_ops) <to_supports_multi_process>: Use
9210 TARGET_DEFAULT_RETURN.
9211
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9213
9214 * target-delegates.c: Rebuild.
9215 * target.c (update_current_target): Don't inherit or default
9216 to_get_ada_task_ptid.
9217 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9218 TARGET_DEFAULT_FUNC.
9219
9220 2014-02-19 Tom Tromey <tromey@redhat.com>
9221
9222 * target-delegates.c: Rebuild.
9223 * target.c (update_current_target): Don't inherit or default
9224 to_thread_architecture.
9225 * target.h (struct target_ops) <to_thread_architecture>: Use
9226 TARGET_DEFAULT_FUNC.
9227
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9229
9230 * target-delegates.c: Rebuild.
9231 * target.c (update_current_target): Don't inherit or default
9232 to_execution_direction.
9233 * target.h (struct target_ops) <to_execution_direction>: Use
9234 TARGET_DEFAULT_FUNC.
9235
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9237
9238 * target-delegates.c: Rebuild.
9239 * target.c (update_current_target): Don't inherit or default
9240 to_can_execute_reverse.
9241 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9242 TARGET_DEFAULT_RETURN.
9243 (target_can_execute_reverse): Unconditionally delegate.
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_goto_bookmark.
9250 (dummy_goto_bookmark): Remove.
9251 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9252 * target.h (struct target_ops) <to_goto_bookmark>: Use
9253 TARGET_DEFAULT_NORETURN.
9254
9255 2014-02-19 Tom Tromey <tromey@redhat.com>
9256
9257 * target-delegates.c: Rebuild.
9258 * target.c (update_current_target): Don't inherit or default
9259 to_get_bookmark.
9260 (dummy_get_bookmark): Remove.
9261 (init_dummy_target): Don't inherit or default to_get_bookmark.
9262 * target.h (struct target_ops) <to_get_bookmark>: Use
9263 TARGET_DEFAULT_NORETURN
9264
9265 2014-02-19 Tom Tromey <tromey@redhat.com>
9266
9267 * target-delegates.c: Rebuild.
9268 * target.c (update_current_target): Don't inherit or default
9269 to_make_corefile_notes.
9270 (init_dummy_target): Don't initialize to_make_corefile_notes.
9271 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9272 TARGET_DEFAULT_FUNC.
9273
9274 2014-02-19 Tom Tromey <tromey@redhat.com>
9275
9276 * target-delegates.c: Rebuild.
9277 * target.c (update_current_target): Don't inherit or default
9278 to_find_memory_regions.
9279 (init_dummy_target): Don't initialize to_find_memory_regions.
9280 * target.h (struct target_ops) <to_find_memory_regions>: Use
9281 TARGET_DEFAULT_FUNC.
9282
9283 2014-02-19 Tom Tromey <tromey@redhat.com>
9284
9285 * target-delegates.c: Rebuild.
9286 * target.c (update_current_target): Don't inherit or default
9287 to_log_command.
9288 * target.h (struct target_ops) <to_log_command>: Use
9289 TARGET_DEFAULT_IGNORE.
9290 (target_log_command): Unconditionally delegate.
9291
9292 2014-02-19 Tom Tromey <tromey@redhat.com>
9293
9294 * target-delegates.c: Rebuild.
9295 * target.c (update_current_target): Don't inherit or default
9296 to_pid_to_exec_file.
9297 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9298 TARGET_DEFAULT_RETURN.
9299
9300 2014-02-19 Tom Tromey <tromey@redhat.com>
9301
9302 * target-delegates.c: Rebuild.
9303 * target.c (update_current_target): Don't inherit or default
9304 to_thread_name.
9305 (target_thread_name): Unconditionally delegate.
9306 * target.h (struct target_ops) <to_thread_name>: Use
9307 TARGET_DEFAULT_RETURN.
9308
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * target-delegates.c: Rebuild.
9312 * target.c (update_current_target): Don't inherit or default
9313 to_extra_thread_info.
9314 * target.h (struct target_ops) <to_extra_thread_info>: Use
9315 TARGET_DEFAULT_RETURN.
9316
9317 2014-02-19 Tom Tromey <tromey@redhat.com>
9318
9319 * target-delegates.c: Rebuild.
9320 * target.c (update_current_target): Don't inherit or default
9321 to_has_exited.
9322 * target.h (struct target_ops) <to_has_exited>: Use
9323 TARGET_DEFAULT_RETURN..
9324
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target-delegates.c: Rebuild.
9328 * target.c (update_current_target): Don't inherit or default
9329 to_set_syscall_catchpoint.
9330 (return_one): Remove.
9331 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9332 TARGET_DEFAULT_RETURN.
9333
9334 2014-02-19 Tom Tromey <tromey@redhat.com>
9335
9336 * target-delegates.c: Rebuild.
9337 * target.c (update_current_target): Don't inherit or default
9338 to_insert_exec_catchpoint.
9339 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9340 TARGET_DEFAULT_RETURN.
9341
9342 2014-01-08 Tom Tromey <tromey@redhat.com>
9343
9344 * target-delegates.c: Rebuild.
9345 * target.c (update_current_target): Don't inherit or default
9346 to_insert_exec_catchpoint.
9347 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9348 TARGET_DEFAULT_RETURN.
9349
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * target-delegates.c: Rebuild.
9353 * target.c (update_current_target): Don't inherit or default
9354 to_remove_vfork_catchpoint.
9355 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9356 TARGET_DEFAULT_RETURN.
9357
9358 2014-02-19 Tom Tromey <tromey@redhat.com>
9359
9360 * target-delegates.c: Rebuild.
9361 * target.c (update_current_target): Don't inherit or default
9362 to_insert_vfork_catchpoint.
9363 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9364 TARGET_DEFAULT_RETURN.
9365
9366 2014-02-19 Tom Tromey <tromey@redhat.com>
9367
9368 * target-delegates.c: Rebuild.
9369 * target.c (update_current_target): Don't inherit or default
9370 to_remove_fork_catchpoint.
9371 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9372 TARGET_DEFAULT_RETURN.
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_insert_fork_catchpoint.
9379 * target.h (struct target_ops) <to_insert_fork_catchpoint>: 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_post_startup_inferior.
9387 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9388 TARGET_DEFAULT_IGNORE.
9389
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9391
9392 * target-delegates.c: Rebuild.
9393 * target.c (update_current_target): Don't inherit or default
9394 to_load.
9395 * target.h (struct target_ops) <to_load>: Use
9396 TARGET_DEFAULT_NORETURN.
9397
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9399
9400 * target-delegates.c: Rebuild.
9401 * target.c (update_current_target): Don't inherit or default
9402 to_terminal_info.
9403 * target.h (struct target_ops) <to_terminal_info>: Use
9404 TARGET_DEFAULT_FUNC.
9405
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9407
9408 * target-delegates.c: Rebuild.
9409 * target.c (update_current_target): Don't inherit or default
9410 to_terminal_save_ours.
9411 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9412 TARGET_DEFAULT_IGNORE.
9413
9414 2014-02-19 Tom Tromey <tromey@redhat.com>
9415
9416 * target-delegates.c: Rebuild.
9417 * target.c (update_current_target): Don't inherit or default
9418 to_terminal_ours.
9419 * target.h (struct target_ops) <to_terminal_ours>: Use
9420 TARGET_DEFAULT_IGNORE.
9421
9422 2014-02-19 Tom Tromey <tromey@redhat.com>
9423
9424 * target-delegates.c: Rebuild.
9425 * target.c (update_current_target): Don't inherit or default
9426 to_terminal_ours_for_output.
9427 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9428 TARGET_DEFAULT_IGNORE.
9429
9430 2014-02-19 Tom Tromey <tromey@redhat.com>
9431
9432 * target-delegates.c: Rebuild.
9433 * target.c (update_current_target): Don't inherit or default
9434 to_terminal_inferior.
9435 * target.h (struct target_ops) <to_terminal_inferior>: Use
9436 TARGET_DEFAULT_IGNORE.
9437
9438 2014-02-19 Tom Tromey <tromey@redhat.com>
9439
9440 * target-delegates.c: Rebuild.
9441 * target.c (update_current_target): Don't inherit or default
9442 to_terminal_init.
9443 * target.h (struct target_ops) <to_terminal_init>: Use
9444 TARGET_DEFAULT_IGNORE.
9445
9446 2014-02-19 Tom Tromey <tromey@redhat.com>
9447
9448 * target-delegates.c: Rebuild.
9449 * target.c (update_current_target): Don't inherit or default
9450 to_can_accel_watchpoint_condition.
9451 * target.h (struct target_ops)
9452 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9453
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9455
9456 * target-delegates.c: Rebuild.
9457 * target.c (update_current_target): Don't inherit or default
9458 to_region_ok_for_hw_watchpoint.
9459 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9460 Use TARGET_DEFAULT_FUNC.
9461
9462 2014-02-19 Tom Tromey <tromey@redhat.com>
9463
9464 * target-delegates.c: Rebuild.
9465 * target.c (update_current_target): Don't inherit or default
9466 to_watchpoint_addr_within_range.
9467 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9468 Use TARGET_DEFAULT_FUNC.
9469
9470 2014-02-19 Tom Tromey <tromey@redhat.com>
9471
9472 * target-delegates.c: Rebuild.
9473 * target.c (update_current_target): Don't inherit or default
9474 to_remove_watchpoint.
9475 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9476 TARGET_DEFAULT_NORETURN.
9477
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9479
9480 * target-delegates.c: Rebuild.
9481 * target.c (update_current_target): Don't inherit or default
9482 to_insert_watchpoint.
9483 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9484 TARGET_DEFAULT_RETURN.
9485
9486 2014-02-19 Tom Tromey <tromey@redhat.com>
9487
9488 * target-delegates.c: Rebuild.
9489 * target.c (update_current_target): Don't inherit or default
9490 to_remove_hw_breakpoint.
9491 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9492 TARGET_DEFAULT_RETURN.
9493
9494 2014-02-19 Tom Tromey <tromey@redhat.com>
9495
9496 * target-delegates.c: Rebuild.
9497 * target.c (update_current_target): Don't inherit or default
9498 to_insert_hw_breakpoint.
9499 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9500 TARGET_DEFAULT_RETURN.
9501
9502 2014-02-19 Tom Tromey <tromey@redhat.com>
9503
9504 * target-delegates.c: Rebuild.
9505 * target.c (update_current_target): Don't inherit or default
9506 to_can_use_hw_breakpoint.
9507 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9508 TARGET_DEFAULT_RETURN.
9509
9510 2014-02-19 Tom Tromey <tromey@redhat.com>
9511
9512 * target-delegates.c: Rebuild.
9513 * target.c (update_current_target): Don't inherit or default
9514 to_files_info.
9515 * target.h (struct target_ops) <to_files_info>: Use
9516 TARGET_DEFAULT_IGNORE.
9517
9518 2014-02-19 Tom Tromey <tromey@redhat.com>
9519
9520 * target-delegates.c: Rebuild.
9521 * target.c (update_current_target): Don't inherit or default
9522 to_store.
9523 * target.h (struct target_ops) <to_store>: Use
9524 TARGET_DEFAULT_NORETURN.
9525
9526 2014-02-19 Tom Tromey <tromey@redhat.com>
9527
9528 * target-delegates.c: Rebuild.
9529 * target.c (update_current_target): Don't inherit or default
9530 to_post_attach.
9531 * target.h (struct target_ops) <to_post_attach>: Use
9532 TARGET_DEFAULT_IGNORE.
9533
9534 2014-02-19 Tom Tromey <tromey@redhat.com>
9535
9536 * target-delegates.c: Rebuild.
9537 * target.c (update_current_target): Don't inherit or default
9538 to_rcmd.
9539 (default_rcmd): New function.
9540 (do_monitor_command): Unconditionally delegate.
9541 * target.h (struct target_ops) <to_rmcd>: Use
9542 TARGET_DEFAULT_FUNC.
9543
9544 2014-02-19 Tom Tromey <tromey@redhat.com>
9545
9546 * target-delegates.c: Rebuild.
9547 * target.c (init_dummy_target): Don't initialize to_attach.
9548 (target_attach): Unconditionally delegate.
9549 * target.h (struct target_ops) <to_attach>: Use
9550 TARGET_DEFAULT_FUNC.
9551
9552 2014-02-19 Tom Tromey <tromey@redhat.com>
9553
9554 * target-delegates.c: Rebuild.
9555 * target.c (target_detach): Unconditionally delegate.
9556 (init_dummy_target): Don't initialize to_detach.
9557 * target.h (struct target_ops) <to_detach>: Use
9558 TARGET_DEFAULT_IGNORE.
9559
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9561
9562 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9563 Add argument.
9564 (target_augmented_libraries_svr4_read): Add argument.
9565 * target.c (update_current_target): Update.
9566 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9567 argument.
9568
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9570
9571 * target.h (struct target_ops) <to_call_history_range>: Add
9572 argument.
9573 * target.c (target_call_history_range): Add argument.
9574 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9575 argument.
9576 (record_btrace_call_history_from): Update.
9577
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9579
9580 * target.h (struct target_ops) <to_call_history_from>: Add
9581 argument.
9582 * target.c (target_call_history_from): Add argument.
9583 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9584 argument.
9585
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9587
9588 * target.h (struct target_ops) <to_call_history>: Add argument.
9589 * target.c (target_call_history): Add argument.
9590 * record-btrace.c (record_btrace_call_history): Add 'self'
9591 argument.
9592
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9594
9595 * target.h (struct target_ops) <to_insn_history_range>: Add
9596 argument.
9597 * target.c (target_insn_history_range): Add argument.
9598 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9599 argument.
9600 (record_btrace_insn_history_from): Update.
9601
9602 2014-02-19 Tom Tromey <tromey@redhat.com>
9603
9604 * target.h (struct target_ops) <to_insn_history_from>: Add
9605 argument.
9606 * target.c (target_insn_history_from): Add argument.
9607 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9608 argument.
9609
9610 2014-02-19 Tom Tromey <tromey@redhat.com>
9611
9612 * target.h (struct target_ops) <to_insn_history>: Add argument.
9613 * target.c (target_insn_history): Add argument.
9614 * record-btrace.c (record_btrace_insn_history): Add 'self'
9615 argument.
9616
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9618
9619 * target.h (struct target_ops) <to_goto_record>: Add argument.
9620 * target.c (target_goto_record): Add argument.
9621 * record-full.c (record_full_goto): Add 'self' argument.
9622 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9623
9624 2014-02-19 Tom Tromey <tromey@redhat.com>
9625
9626 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9627 * target.c (target_goto_record_end): Add argument.
9628 * record-full.c (record_full_goto_end): Add 'self' argument.
9629 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9630
9631 2014-02-19 Tom Tromey <tromey@redhat.com>
9632
9633 * target.h (struct target_ops) <to_goto_record_begin>: Add
9634 argument.
9635 * target.c (target_goto_record_begin): Add argument.
9636 * record-full.c (record_full_goto_begin): Add 'self' argument.
9637 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9638 argument.
9639
9640 2014-02-19 Tom Tromey <tromey@redhat.com>
9641
9642 * target.h (struct target_ops) <to_record_is_replaying>: Add
9643 argument.
9644 * target.c (target_record_is_replaying): Add argument.
9645 * record-full.c (record_full_is_replaying): Add 'self' argument.
9646 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9647 argument.
9648 (record_btrace_xfer_partial, record_btrace_store_registers)
9649 (record_btrace_prepare_to_store, record_btrace_resume)
9650 (record_btrace_wait, record_btrace_decr_pc_after_break)
9651 (record_btrace_find_new_threads, record_btrace_thread_alive):
9652 Update.
9653
9654 2014-02-19 Tom Tromey <tromey@redhat.com>
9655
9656 * target.h (struct target_ops) <to_delete_record>: Add argument.
9657 * target.c (target_delete_record): Add argument.
9658 * record-full.c (record_full_delete): Add 'self' argument.
9659
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9661
9662 * target.h (struct target_ops) <to_save_record>: Add argument.
9663 * target.c (target_save_record): Add argument.
9664 * record-full.c (record_full_save): Add 'self' argument.
9665 (record_full_save): Add 'self' argument.
9666
9667 2014-02-19 Tom Tromey <tromey@redhat.com>
9668
9669 * target.h (struct target_ops) <to_info_record>: Add argument.
9670 * target.c (target_info_record): Add argument.
9671 * record.c (info_record_command): Add argument.
9672 * record-full.c (record_full_info): Add 'self' argument.
9673 * record-btrace.c (record_btrace_info): Add 'self' argument.
9674
9675 2014-02-19 Tom Tromey <tromey@redhat.com>
9676
9677 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9678 * target.c (target_stop_recording): Add argument.
9679 * record.c (record_stop): Add argument.
9680 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9681 argument.
9682
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9684
9685 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9686 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9687 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9688 argument.
9689 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9690 (_initialize_amd64_linux_nat): Use it.
9691 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9692 (_initialize_i386_linux_nat): Use it.
9693
9694 2014-02-19 Tom Tromey <tromey@redhat.com>
9695
9696 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9697 * target.c (target_teardown_btrace): Add argument.
9698 * remote.c (remote_teardown_btrace): Add 'self' argument.
9699 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9700 argument.
9701 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9702 argument.
9703
9704 2014-02-19 Tom Tromey <tromey@redhat.com>
9705
9706 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9707 * target.c (target_disable_btrace): Add argument.
9708 * remote.c (remote_disable_btrace): Add 'self' argument.
9709 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9710 argument.
9711 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9712 argument.
9713
9714 2014-02-19 Tom Tromey <tromey@redhat.com>
9715
9716 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9717 * target.c (target_enable_btrace): Add argument.
9718 * remote.c (remote_enable_btrace): Add 'self' argument.
9719 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9720 argument.
9721 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9722 argument.
9723
9724 2014-02-19 Tom Tromey <tromey@redhat.com>
9725
9726 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9727 (target_can_use_agent): Add argument.
9728 * target.c (update_current_target): Update.
9729 * remote.c (remote_can_use_agent): Add 'self' argument.
9730 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9731
9732 2014-02-19 Tom Tromey <tromey@redhat.com>
9733
9734 * target.h (struct target_ops) <to_use_agent>: Add argument.
9735 (target_use_agent): Add argument.
9736 * target.c (update_current_target): Update.
9737 * remote.c (remote_use_agent): Add 'self' argument.
9738 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9739
9740 2014-02-19 Tom Tromey <tromey@redhat.com>
9741
9742 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9743 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9744 (target_traceframe_info): Add argument.
9745 * target.c (update_current_target): Update.
9746 * remote.c (remote_traceframe_info): Add 'self' argument.
9747 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9748
9749 2014-02-19 Tom Tromey <tromey@redhat.com>
9750
9751 * target.h (target_static_tracepoint_markers_by_strid): Add
9752 argument.
9753 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9754 'self' argument.
9755 * target.c (update_current_target): Update.
9756 * remote.c (struct target_ops)
9757 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9758 * linux-nat.c (struct target_ops)
9759 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9760
9761 2014-02-19 Tom Tromey <tromey@redhat.com>
9762
9763 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9764 Add argument.
9765 (target_static_tracepoint_marker_at): Add argument.
9766 * target.c (update_current_target): Update.
9767 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9768 argument.
9769
9770 2014-02-19 Tom Tromey <tromey@redhat.com>
9771
9772 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9773 (target_set_permissions): Add argument.
9774 * target.c (update_current_target): Update.
9775 * remote.c (remote_set_permissions): Add 'self' argument.
9776 (remote_start_remote): Update.
9777
9778 2014-02-19 Tom Tromey <tromey@redhat.com>
9779
9780 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9781 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9782 (target_get_tib_address): Add argument.
9783 * target.c (update_current_target): Update.
9784 * remote.c (remote_get_tib_address): Add 'self' argument.
9785
9786 2014-02-19 Tom Tromey <tromey@redhat.com>
9787
9788 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9789 (target_set_trace_notes): Add argument.
9790 * target.c (update_current_target): Update.
9791 * remote.c (remote_set_trace_notes): Add 'self' argument.
9792
9793 2014-02-19 Tom Tromey <tromey@redhat.com>
9794
9795 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9796 argument.
9797 (target_set_trace_buffer_size): Add argument.
9798 * target.c (update_current_target): Update.
9799 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9800
9801 2014-02-19 Tom Tromey <tromey@redhat.com>
9802
9803 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9804 argument.
9805 (target_set_circular_trace_buffer): Add argument.
9806 * target.c (update_current_target): Update.
9807 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9808 argument.
9809
9810 2014-02-19 Tom Tromey <tromey@redhat.com>
9811
9812 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9813 argument.
9814 (target_set_disconnected_tracing): Add argument.
9815 * target.c (update_current_target): Update.
9816 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9817
9818 2014-02-19 Tom Tromey <tromey@redhat.com>
9819
9820 * target.h (struct target_ops)
9821 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9822 (target_get_min_fast_tracepoint_insn_len): Add argument.
9823 * target.c (update_current_target): Update.
9824 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9825 argument.
9826
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9828
9829 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9830 argument.
9831 (target_get_raw_trace_data): Add argument.
9832 * target.c (update_current_target): Update.
9833 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9834
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9836
9837 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9838 Add argument.
9839 (target_upload_trace_state_variables): Add argument.
9840 * target.c (update_current_target): Update.
9841 * remote.c (remote_upload_trace_state_variables): Add 'self'
9842 argument.
9843 (remote_start_remote): Update.
9844
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9846
9847 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9848 argument.
9849 (target_upload_tracepoints): Add argument.
9850 * target.c (update_current_target): Update.
9851 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9852 (remote_start_remote): Update.
9853
9854 2014-02-19 Tom Tromey <tromey@redhat.com>
9855
9856 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9857 (target_save_trace_data): Add argument.
9858 * target.c (update_current_target): Update.
9859 * remote.c (remote_save_trace_data): Add 'self' argument.
9860
9861 2014-02-19 Tom Tromey <tromey@redhat.com>
9862
9863 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9864 argument.
9865 * target.h (struct target_ops)
9866 <to_get_trace_state_variable_value>: Add argument.
9867 (target_get_trace_state_variable_value): Add argument.
9868 * target.c (update_current_target): Update.
9869 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9870 argument.
9871 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9872
9873 2014-02-19 Tom Tromey <tromey@redhat.com>
9874
9875 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9876 * target.h (struct target_ops) <to_trace_find>: Add argument.
9877 (target_trace_find): Add argument.
9878 * target.c (update_current_target): Update.
9879 * remote.c (remote_trace_find): Add 'self' argument.
9880 * ctf.c (ctf_trace_find): Add 'self' argument.
9881
9882 2014-02-19 Tom Tromey <tromey@redhat.com>
9883
9884 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9885 (target_trace_stop): Add argument.
9886 * target.c (update_current_target): Update.
9887 * remote.c (remote_trace_stop): Add 'self' argument.
9888
9889 2014-02-19 Tom Tromey <tromey@redhat.com>
9890
9891 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9892 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9893 argument.
9894 (target_get_tracepoint_status): Add argument.
9895 * target.c (update_current_target): Update.
9896 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9897
9898 2014-02-19 Tom Tromey <tromey@redhat.com>
9899
9900 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9901 * target.h (struct target_ops) <to_get_trace_status>: Add
9902 argument.
9903 (target_get_trace_status): Add argument.
9904 * target.c (update_current_target): Update.
9905 * remote.c (remote_get_trace_status): Add 'self' argument.
9906 (remote_start_remote, remote_can_download_tracepoint): Update.
9907 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9908
9909 2014-02-19 Tom Tromey <tromey@redhat.com>
9910
9911 * target.h (struct target_ops) <to_trace_start>: Add argument.
9912 (target_trace_start): Add argument.
9913 * target.c (update_current_target): Update.
9914 * remote.c (remote_trace_start): Add 'self' argument.
9915
9916 2014-02-19 Tom Tromey <tromey@redhat.com>
9917
9918 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9919 Add argument.
9920 (target_trace_set_readonly_regions): Add argument.
9921 * target.c (update_current_target): Update.
9922 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9923 argument.
9924
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9926
9927 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9928 argument.
9929 (target_disable_tracepoint): Add argument.
9930 * target.c (update_current_target): Update.
9931 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9932
9933 2014-02-19 Tom Tromey <tromey@redhat.com>
9934
9935 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9936 argument.
9937 (target_enable_tracepoint): Add argument.
9938 * target.c (update_current_target): Update.
9939 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9940
9941 2014-02-19 Tom Tromey <tromey@redhat.com>
9942
9943 * target.h (struct target_ops) <to_download_trace_state_variable>:
9944 Add argument.
9945 (target_download_trace_state_variable): Add argument.
9946 * target.c (update_current_target): Update.
9947 * remote.c (remote_download_trace_state_variable): Add 'self'
9948 argument.
9949
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9951
9952 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9953 argument.
9954 (target_can_download_tracepoint): Add argument.
9955 * target.c (update_current_target): Update.
9956 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9957
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9959
9960 * target.h (struct target_ops) <to_download_tracepoint>: Add
9961 argument.
9962 (target_download_tracepoint): Add argument.
9963 * target.c (update_current_target): Update.
9964 * remote.c (remote_download_tracepoint): Add 'self' argument.
9965
9966 2014-02-19 Tom Tromey <tromey@redhat.com>
9967
9968 * target.h (struct target_ops) <to_trace_init>: Add argument.
9969 (target_trace_init): Add argument.
9970 * target.c (update_current_target): Update.
9971 * remote.c (remote_trace_init): Add 'self' argument.
9972
9973 2014-02-19 Tom Tromey <tromey@redhat.com>
9974
9975 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9976 * target.c (target_fileio_readlink): Add argument.
9977 * remote.c (remote_hostio_readlink): Add 'self' argument.
9978 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9979
9980 2014-02-19 Tom Tromey <tromey@redhat.com>
9981
9982 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9983 * target.c (target_fileio_unlink): Add argument.
9984 * remote.c (remote_hostio_unlink): Add 'self' argument.
9985 (remote_file_delete): Update.
9986 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9987
9988 2014-02-19 Tom Tromey <tromey@redhat.com>
9989
9990 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9991 * target.c (target_fileio_close): Add argument.
9992 * remote.c (remote_hostio_close): Add 'self' argument.
9993 (remote_hostio_close_cleanup): Update.
9994 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9995 Update.
9996 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9997
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
9999
10000 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10001 * target.c (target_fileio_pread): Add argument.
10002 * remote.c (remote_hostio_pread): Add 'self' argument.
10003 (remote_bfd_iovec_pread, remote_file_get): Update.
10004 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10005
10006 2014-02-19 Tom Tromey <tromey@redhat.com>
10007
10008 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10009 * target.c (target_fileio_pwrite): Add argument.
10010 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10011 (remote_file_put): Update.
10012 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10013
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10017 * target.c (target_fileio_open): Add argument.
10018 * remote.c (remote_hostio_open): Add 'self' argument.
10019 (remote_bfd_iovec_open): Add 'self' argument.
10020 (remote_file_put): Add 'self' argument.
10021 (remote_file_get): Add 'self' argument.
10022 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10023
10024 2014-02-19 Tom Tromey <tromey@redhat.com>
10025
10026 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10027 Add argument.
10028 (target_can_run_breakpoint_commands): Add argument.
10029 * target.c (update_current_target): Update.
10030 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10031 argument.
10032 (remote_insert_breakpoint): Add 'self' argument.
10033 (remote_insert_hw_breakpoint): Add 'self' argument.
10034 (remote_can_run_breakpoint_commands): Add 'self' argument.
10035
10036 2014-02-19 Tom Tromey <tromey@redhat.com>
10037
10038 * target.h (struct target_ops)
10039 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10040 (target_supports_evaluation_of_breakpoint_conditions): Add
10041 argument.
10042 * target.c (update_current_target): Update.
10043 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10044 argument.
10045 (remote_insert_breakpoint): Add 'self' argument.
10046 (remote_insert_hw_breakpoint): Add 'self' argument.
10047 (remote_supports_cond_breakpoints): Add 'self' argument.
10048
10049 2014-02-19 Tom Tromey <tromey@redhat.com>
10050
10051 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10052 argument.
10053 (target_supports_string_tracing): Add argument.
10054 * target.c (update_current_target): Update.
10055 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10056
10057 2014-02-19 Tom Tromey <tromey@redhat.com>
10058
10059 * target.h (struct target_ops)
10060 <to_supports_disable_randomization>: Add argument.
10061 * target.c (find_default_supports_disable_randomization): Add
10062 argument.
10063 (target_supports_disable_randomization): Add argument.
10064 (find_default_supports_disable_randomization): Add 'self'
10065 argument.
10066 * remote.c (extended_remote_supports_disable_randomization): Add
10067 'self' argument.
10068 (remote_supports_disable_randomization): Add 'self' argument.
10069 (extended_remote_create_inferior): Update.
10070 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10071 'self' argument.
10072
10073 2014-02-19 Tom Tromey <tromey@redhat.com>
10074
10075 * target.h (struct target_ops)
10076 <to_supports_enable_disable_tracepoint>: Add argument.
10077 (target_supports_enable_disable_tracepoint): Add argument.
10078 * target.c (update_current_target): Update.
10079 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10080 argument.
10081
10082 2014-02-19 Tom Tromey <tromey@redhat.com>
10083
10084 * target.h (struct target_ops) <to_supports_multi_process>: Add
10085 argument.
10086 (target_supports_multi_process): Add argument.
10087 * target.c (update_current_target): Update.
10088 * remote.c (remote_supports_multi_process): Add 'self' argument.
10089 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10090 argument.
10091 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10092 argument.
10093
10094 2014-02-19 Tom Tromey <tromey@redhat.com>
10095
10096 * target.h (struct target_ops) <to_execution_direction>: Add
10097 argument.
10098 (target_execution_direction): Add argument.
10099 * target.c (default_execution_direction): Add 'self' argument.
10100 * record-full.c (record_full_execution_direction): Add 'self'
10101 argument.
10102
10103 2014-02-19 Tom Tromey <tromey@redhat.com>
10104
10105 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10106 argument.
10107 (target_can_execute_reverse): Add argument.
10108 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10109 * record-full.c (record_full_can_execute_reverse): Add 'self'
10110 argument.
10111 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10112 argument.
10113
10114 2014-02-19 Tom Tromey <tromey@redhat.com>
10115
10116 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10117 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10118 argument.
10119 (target_get_ada_task_ptid): Add argument.
10120 * target.c (update_current_target): Update.
10121 (default_get_ada_task_ptid): Add 'self' argument.
10122 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10123 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10124 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10125 argument.
10126 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10127 argument.
10128 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10129 argument.
10130 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10131 argument.
10132 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10133 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10134 argument.
10135
10136 2014-02-19 Tom Tromey <tromey@redhat.com>
10137
10138 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10139 (target_goto_bookmark): Add argument.
10140 * target.c (dummy_goto_bookmark): Add 'self' argument.
10141 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10142
10143 2014-02-19 Tom Tromey <tromey@redhat.com>
10144
10145 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10146 (target_get_bookmark): Add argument.
10147 * target.c (dummy_get_bookmark): Add 'self' argument.
10148 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10149
10150 2014-02-19 Tom Tromey <tromey@redhat.com>
10151
10152 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10153 argument.
10154 (target_make_corefile_notes): Add argument.
10155 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10156 * procfs.c (procfs_make_note_section): Add 'self' argument.
10157 (procfs_make_note_section): Add 'self' argument.
10158 (procfs_make_note_section): Add 'self' argument.
10159 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10160 argument.
10161 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10162 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10163 * exec.c (exec_make_note_section): Add 'self' argument.
10164 (exec_make_note_section): Add 'self' argument.
10165
10166 2014-02-19 Tom Tromey <tromey@redhat.com>
10167
10168 * target.h (struct target_ops) <to_find_memory_regions>: Add
10169 argument.
10170 (target_find_memory_regions): Add argument.
10171 * target.c (dummy_find_memory_regions): Add 'self' argument.
10172 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10173 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10174 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10175 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10176 * exec. (exec_do_find_memory_regions): New global.
10177 (exec_set_find_memory_regions): Rewrite.
10178 (exec_find_memory_regions): New function.
10179 (init_exec_ops): Use exec_find_memory_regions.
10180
10181 2014-02-19 Tom Tromey <tromey@redhat.com>
10182
10183 * target.h (struct target_ops) <to_supports_non_stop>: Add
10184 argument.
10185 * target.c (find_default_supports_non_stop): Add argument.
10186 (target_supports_non_stop): Add argument.
10187 (find_default_supports_non_stop): Add 'self' argument.
10188 * remote.c (remote_supports_non_stop): Add 'self' argument.
10189 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10190
10191 2014-02-19 Tom Tromey <tromey@redhat.com>
10192
10193 * target.h (struct target_ops) <to_log_command>: Add argument.
10194 (target_log_command): Add argument.
10195 * serial.h (serial_log_command): Add 'self' argument.
10196 * serial.c (serial_log_command): Add 'self' argument.
10197
10198 2014-02-19 Tom Tromey <tromey@redhat.com>
10199
10200 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10201 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10202 argument.
10203 (target_pid_to_exec_file): Add argument.
10204 * target.c (debug_to_pid_to_exec_file): Add argument.
10205 (update_current_target): Update.
10206 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10207 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10208 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10209 (linux_handle_extended_wait): Update.
10210 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10211 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10212 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10213 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10214
10215 2014-02-19 Tom Tromey <tromey@redhat.com>
10216
10217 * target.h (struct target_ops) <to_rcmd>: Add argument.
10218 (target_rcmd): Add argument.
10219 * target.c (debug_to_rcmd): Add argument.
10220 (update_current_target, do_monitor_command): Update.
10221 * remote.c (remote_rcmd): Add 'self' argument.
10222 * monitor.c (monitor_rcmd): Add 'self' argument.
10223
10224 2014-02-19 Tom Tromey <tromey@redhat.com>
10225
10226 * windows-nat.c (windows_stop): Add 'self' argument.
10227 * target.h (struct target_ops) <to_stop>: Add argument.
10228 * target.c (target_stop): Add argument.
10229 (debug_to_stop): Add argument.
10230 (update_current_target): Update.
10231 * remote.c (remote_stop): Add 'self' argument.
10232 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10233 (gdbsim_cntrl_c): Update.
10234 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10235 * procfs.c (procfs_stop): Add 'self' argument.
10236 * nto-procfs.c (procfs_stop): Add 'self' argument.
10237 * monitor.c (monitor_stop): Add 'self' argument.
10238 (monitor_open): Update.
10239 * linux-nat.c (linux_nat_stop): Add argument.
10240 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10241 * gnu-nat.c (gnu_stop): Add 'self' argument.
10242 * darwin-nat.c (darwin_stop): Add 'self' argument.
10243
10244 2014-02-19 Tom Tromey <tromey@redhat.com>
10245
10246 * target.h (struct target_ops) <to_thread_name>: Add argument.
10247 * target.c (target_thread_name): Add argument.
10248 (update_current_target): Update.
10249 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10250
10251 2014-02-19 Tom Tromey <tromey@redhat.com>
10252
10253 * target.h (struct target_ops) <to_extra_thread_info>: Add
10254 argument.
10255 (target_extra_thread_info): Add argument.
10256 * target.c (update_current_target): Update.
10257 * remote.c (remote_threads_extra_info): Add 'self' argument.
10258 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10259 argument.
10260 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10261 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10262 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10263 argument.
10264 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10265 argument.
10266 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10267 argument.
10268 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10269 argument.
10270
10271 2014-02-19 Tom Tromey <tromey@redhat.com>
10272
10273 * target.h (struct target_ops) <to_program_signals>: Add argument.
10274 * target.c (target_program_signals): Add argument.
10275 * remote.c (remote_program_signals): Add 'self' argument.
10276
10277 2014-02-19 Tom Tromey <tromey@redhat.com>
10278
10279 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10280 * target.c (target_pass_signals): Add argument.
10281 * remote.c (remote_pass_signals): Add 'self' argument.
10282 (remote_start_remote): Update.
10283 * procfs.c (procfs_pass_signals): Add 'self' argument.
10284 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10285 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10286 (linux_nat_create_inferior, linux_nat_attach): Update.
10287
10288 2014-02-19 Tom Tromey <tromey@redhat.com>
10289
10290 * windows-nat.c (windows_can_run): Add 'self' argument.
10291 * target.h (struct target_ops) <to_can_run>: Add argument.
10292 (target_can_run): Add argument.
10293 * target.c (debug_to_can_run): Add argument.
10294 (update_current_target): Update.
10295 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10296 * inf-child.c (inf_child_can_run): Add 'self' argument.
10297 * go32-nat.c (go32_can_run): Add 'self' argument.
10298
10299 2014-02-19 Tom Tromey <tromey@redhat.com>
10300
10301 * target.h (struct target_ops) <to_has_exited>: Add argument.
10302 (target_has_exited): Add argument.
10303 * target.c (debug_to_has_exited): Add argument.
10304 (update_current_target): Update.
10305
10306 2014-02-19 Tom Tromey <tromey@redhat.com>
10307
10308 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10309 argument.
10310 (target_set_syscall_catchpoint): Add argument.
10311 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10312 argument.
10313 * target.c (update_current_target): Update.
10314
10315 2014-02-19 Tom Tromey <tromey@redhat.com>
10316
10317 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10318 argument.
10319 (target_remove_exec_catchpoint): Add argument.
10320 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10321 (update_current_target): Update.
10322 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10323 argument.
10324
10325 2014-02-19 Tom Tromey <tromey@redhat.com>
10326
10327 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10328 argument.
10329 (target_insert_exec_catchpoint): Add argument.
10330 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10331 (update_current_target): Update.
10332 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10333 argument.
10334
10335 2014-02-19 Tom Tromey <tromey@redhat.com>
10336
10337 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10338 argument.
10339 (target_remove_vfork_catchpoint): Add argument.
10340 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10341 (update_current_target): Update.
10342 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10343 argument.
10344
10345 2014-02-19 Tom Tromey <tromey@redhat.com>
10346
10347 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10348 argument.
10349 (target_insert_vfork_catchpoint): Add argument.
10350 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10351 (update_current_target): Update.
10352 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10353 argument.
10354
10355 2014-02-19 Tom Tromey <tromey@redhat.com>
10356
10357 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10358 argument.
10359 (target_remove_fork_catchpoint): Add argument.
10360 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10361 (update_current_target): Update.
10362 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10363 argument.
10364
10365 2014-02-19 Tom Tromey <tromey@redhat.com>
10366
10367 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10368 argument.
10369 (target_insert_fork_catchpoint): Add argument.
10370 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10371 (update_current_target): Update.
10372 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10373 argument.
10374
10375 2014-02-19 Tom Tromey <tromey@redhat.com>
10376
10377 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10378 argument.
10379 (target_post_startup_inferior): Add argument.
10380 * target.c (debug_to_post_startup_inferior): Add argument.
10381 (update_current_target): Update.
10382 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10383 argument.
10384 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10385 argument.
10386 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10387 argument.
10388 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10389 argument.
10390 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10391 'self' argument.
10392 (super_post_startup_inferior): Likewise.
10393 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10394 'self' argument.
10395 (super_post_startup_inferior): Likewise.
10396 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10397 Add 'self' argument.
10398 (super_post_startup_inferior): Likewise.
10399
10400 2014-02-19 Tom Tromey <tromey@redhat.com>
10401
10402 * target.h (struct target_ops) <to_load>: Add argument.
10403 * target.c (target_load): Add argument.
10404 (debug_to_load): Add argument.
10405 (update_current_target): Update.
10406 * remote.c (remote_load): Add 'self' argument.
10407 * remote-sim.c (gdbsim_load): Add 'self' argument.
10408 * remote-mips.c (mips_load): Add 'self' argument.
10409 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10410 * monitor.c (monitor_load): Add 'self' argument.
10411 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10412
10413 2014-02-19 Tom Tromey <tromey@redhat.com>
10414
10415 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10416 (target_terminal_info): Add argument.
10417 * target.c (debug_to_terminal_info): Add argument.
10418 (default_terminal_info): Likewise.
10419 * inflow.c (child_terminal_info): Add 'self' argument.
10420 * inferior.h (child_terminal_info): Add 'self' argument.
10421 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10422
10423 2014-02-19 Tom Tromey <tromey@redhat.com>
10424
10425 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10426 argument.
10427 (target_terminal_save_ours): Add argument.
10428 * target.c (debug_to_terminal_save_ours): Add argument.
10429 (update_current_target): Update.
10430 * inflow.c (terminal_save_ours): Add 'self' argument.
10431 * inferior.h (terminal_save_ours): Add 'self' argument.
10432
10433 2014-02-19 Tom Tromey <tromey@redhat.com>
10434
10435 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10436 (target_terminal_ours): Add argument.
10437 * target.c (debug_to_terminal_ours): Add argument.
10438 (update_current_target): Update.
10439 * remote.c (remote_terminal_ours): Add 'self' argument.
10440 (remote_close): Update.
10441 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10442 * inflow.c (terminal_ours): Add 'self' argument.
10443 * inferior.h (terminal_ours): Add 'self' argument.
10444 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10445
10446 2014-02-19 Pedro Alves <palves@redhat.com>
10447 Tom Tromey <tromey@redhat.com>
10448
10449 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10450 argument.
10451 (target_terminal_ours_for_output): Add argument.
10452 * target.c (debug_to_terminal_ours_for_output): Add argument.
10453 (update_current_target): Update.
10454 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10455 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10456 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10457
10458 2014-02-19 Tom Tromey <tromey@redhat.com>
10459
10460 * target.h (struct target_ops) <to_terminal_inferior>: Add
10461 argument.
10462 * target.c (target_terminal_inferior): Add argument.
10463 (update_current_target): Update.
10464 * remote.c (remote_terminal_inferior): Add 'self' argument.
10465 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10466 * inflow.c (terminal_inferior): Add 'self' argument.
10467 * inferior.h (terminal_inferior): Add 'self' argument.
10468 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10469 (go32_terminal_inferior): Add 'self' argument.
10470
10471 2014-02-19 Tom Tromey <tromey@redhat.com>
10472
10473 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10474 (target_terminal_init): Add argument.
10475 * target.c (debug_to_terminal_init): Add argument.
10476 (update_current_target): Update.
10477 * inflow.c (terminal_init_inferior): Add 'self' argument.
10478 * inferior.h (terminal_init_inferior): Add 'self' argument.
10479 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10480 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10481
10482 2014-02-19 Tom Tromey <tromey@redhat.com>
10483
10484 * target.h (struct target_ops)
10485 <to_can_accel_watchpoint_condition>: Add argument.
10486 (target_can_accel_watchpoint_condition): Add argument.
10487 * target.c (debug_to_can_accel_watchpoint_condition): Add
10488 argument.
10489 (update_current_target): Update.
10490 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10491 'self' argument.
10492
10493 2014-02-19 Tom Tromey <tromey@redhat.com>
10494
10495 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10496 Add argument.
10497 (target_region_ok_for_hw_watchpoint): Add argument.
10498 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10499 (default_region_ok_for_hw_watchpoint): Add argument.
10500 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10501 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10502 argument.
10503 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10504 argument.
10505 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10506 argument.
10507 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10508 'self' argument.
10509 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10510 'self' argument.
10511 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10512 'self' argument.
10513 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10514 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10515 'self' argument.
10516 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10517 Add 'self' argument.
10518
10519 2014-02-19 Tom Tromey <tromey@redhat.com>
10520
10521 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10522 argument.
10523 (target_insert_watchpoint): Add argument.
10524 * target.c (debug_to_insert_watchpoint): Add argument.
10525 (update_current_target): Update.
10526 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10527 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10528 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10529 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10530 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10531 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10532 argument.
10533 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10534 (procfs_insert_hw_watchpoint): Add 'self' argument.
10535 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10536 argument.
10537 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10538 argument.
10539 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10540 argument.
10541 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10542 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10543 argument.
10544 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10545 'self' argument.
10546
10547 2014-02-19 Tom Tromey <tromey@redhat.com>
10548
10549 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10550 argument.
10551 (target_remove_watchpoint): Add argument.
10552 * target.c (debug_to_remove_watchpoint): Add argument.
10553 (update_current_target): Update.
10554 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10555 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10556 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10557 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10558 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10559 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10560 argument.
10561 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10562 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10563 argument.
10564 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10565 argument.
10566 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10567 argument.
10568 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10569 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10570 argument.
10571 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10572 'self' argument.
10573
10574 2014-02-19 Tom Tromey <tromey@redhat.com>
10575
10576 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10577 argument.
10578 (target_remove_hw_breakpoint): Add argument.
10579 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10580 (update_current_target): Update.
10581 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10582 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10583 argument.
10584 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10585 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10586 argument.
10587 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10588 'self' argument.
10589
10590 2014-02-19 Tom Tromey <tromey@redhat.com>
10591
10592 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10593 argument.
10594 (target_insert_hw_breakpoint): Add argument.
10595 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10596 (update_current_target): Update.
10597 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10598 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10599 argument.
10600 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10601 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10602 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10603 argument.
10604 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10605 'self' argument.
10606
10607 2014-02-19 Tom Tromey <tromey@redhat.com>
10608
10609 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10610 argument.
10611 (target_can_use_hardware_watchpoint): Add argument.
10612 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10613 (update_current_target): Update.
10614 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10615 argument.
10616 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10617 argument.
10618 * remote.c (remote_check_watch_resources): Add 'self' argument.
10619 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10620 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10621 argument.
10622 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10623 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10624 argument.
10625 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10626 argument.
10627 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10628 argument.
10629 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10630 argument.
10631 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10632 argument.
10633 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10634 argument.
10635 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10636 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10637 argument.
10638 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10639 'self' argument.
10640
10641 2014-02-19 Tom Tromey <tromey@redhat.com>
10642
10643 * target.h (struct target_ops) <to_post_attach>: Add argument.
10644 (target_post_attach): Add argument.
10645 * target.c (debug_to_post_attach): Add argument.
10646 (update_current_target): Update.
10647 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10648 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10649 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10650 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10651 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10652
10653 2014-02-19 Tom Tromey <tromey@redhat.com>
10654
10655 * windows-nat.c (windows_close): Add 'self' argument.
10656 * tracepoint.c (tfile_close): Add 'self' argument.
10657 * target.h (struct target_ops) <to_close>: Add argument.
10658 * target.c (target_close): Add argument.
10659 (update_current_target): Update.
10660 * remote.c (remote_close): Add 'self' argument.
10661 * remote-sim.c (gdbsim_close): Add 'self' argument.
10662 * remote-mips.c (mips_close): Add 'self' argument.
10663 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10664 * record-full.c (record_full_close): Add 'self' argument.
10665 * record-btrace.c (record_btrace_close): Add 'self' argument.
10666 * monitor.h (monitor_close): Add 'self' argument.
10667 * monitor.c (monitor_close): Add 'self' argument.
10668 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10669 * linux-nat.c (linux_nat_close): Add argument.
10670 * go32-nat.c (go32_close): Add 'self' argument.
10671 * exec.c (exec_close_1): Add 'self' argument.
10672 * ctf.c (ctf_close): Add 'self' argument.
10673 * corelow.c (core_close): Add 'self' argument.
10674 (core_close_cleanup): Update.
10675 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10676 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10677
10678 2014-02-19 Tom Tromey <tromey@redhat.com>
10679
10680 * remote.c (remote_load): New function.
10681 (init_remote_ops): Use it.
10682
10683 2014-02-19 Tom Tromey <tromey@redhat.com>
10684
10685 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10686 argument.
10687 * common/linux-btrace.h (linux_supports_btrace): Update.
10688 * remote.c (remote_supports_btrace): Add "self" argument.
10689 * target-delegates.c: Rebuild.
10690 * target.c (target_supports_btrace): Remove.
10691 * target.h (struct target_ops) <to_supports_btrace>: Add
10692 target_ops argument.
10693 (target_supports_btrace): New define.
10694
10695 2014-02-19 Tom Tromey <tromey@redhat.com>
10696
10697 * record-full.c (record_full_beneath_to_resume_ops)
10698 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10699 (record_full_beneath_to_wait)
10700 (record_full_beneath_to_store_registers_ops)
10701 (record_full_beneath_to_store_registers)
10702 (record_full_beneath_to_xfer_partial_ops)
10703 (record_full_beneath_to_xfer_partial)
10704 (record_full_beneath_to_insert_breakpoint_ops)
10705 (record_full_beneath_to_insert_breakpoint)
10706 (record_full_beneath_to_remove_breakpoint_ops)
10707 (record_full_beneath_to_remove_breakpoint)
10708 (record_full_beneath_to_stopped_by_watchpoint)
10709 (record_full_beneath_to_stopped_data_address)
10710 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10711 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10712 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10713 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10714 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10715 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10716 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10717 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10718 (record_full_resume, record_full_wait_1)
10719 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10720 (record_full_store_registers, record_full_xfer_partial)
10721 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10722 (record_full_async, record_full_core_xfer_partial): Use target
10723 delegation.
10724 * target-delegates.c: Rebuild.
10725 * target.c (current_xfer_partial): Remove.
10726 (update_current_target): Do not INHERIT or de_fault
10727 to_insert_breakpoint, to_remove_breakpoint,
10728 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10729 to_is_async_p, to_async. Do not set to_xfer_partial field.
10730 (default_xfer_partial): Simplify.
10731 (current_xfer_partial): Remove.
10732 (target_wait, target_resume): Simplify.
10733 (find_default_can_async_p, find_default_is_async_p): Update.
10734 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10735 to_xfer_partial, to_stopped_by_watchpoint,
10736 to_stopped_data_address.
10737 (target_store_registers): Simplify.
10738 (forward_target_remove_breakpoint)
10739 (forward_target_insert_breakpoint): Remove.
10740 (target_remove_breakpoint, target_insert_breakpoint)
10741 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10742 * target.h (struct target_ops) <to_resume, to_wait,
10743 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10744 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10745 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10746 markup.
10747 (forward_target_remove_breakpoint)
10748 (forward_target_insert_breakpoint): Remove.
10749 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10750 directly.
10751 (record_btrace_insert_breakpoint): Delegate directly.
10752
10753 2014-02-19 Tom Tromey <tromey@redhat.com>
10754
10755 PR build/7701:
10756 * target-delegates.c: New file.
10757 * target.c: Include target-delegates.c.
10758 (init_dummy_target): Call install_dummy_methods.
10759 (complete_target_initialization): Call install_delegators.
10760 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10761 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10762 * make-target-delegates: New file.
10763
10764 2014-02-19 Tom Tromey <tromey@redhat.com>
10765
10766 * record.c (find_record_target): Use find_target_at.
10767 * target.c (find_target_at): New function.
10768 * target.h (find_target_at): Declare.
10769
10770 2014-02-19 Tom Tromey <tromey@redhat.com>
10771
10772 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10773 Add 'ops' argument.
10774 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10775 'ops' argument.
10776 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10777 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10778 'ops' argument.
10779 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10780 argument.
10781 * linux-nat.c (save_sigtrap): Update.
10782 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10783 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10784 (linux_nat_close): Update.
10785 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10786 argument.
10787 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10788 argument.
10789 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10790 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10791 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10792 (tmp_to_async): Add 'ops' argument.
10793 (record_full_stopped_by_watchpoint, record_full_async)
10794 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10795 argument.
10796 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10797 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10798 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10799 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10800 (remote_is_async_p, remote_async): Add 'ops' argument.
10801 (remote_stopped_data_address): Update.
10802 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10803 * target.c (update_current_target)
10804 (find_default_can_async_p, find_default_is_async_p): Update.
10805 (init_dummy_target): Update.
10806 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10807 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10808 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10809 (target_can_async_p, target_is_async_p, target_async)
10810 (target_stopped_by_watchpoint): Update.
10811
10812 2014-02-19 Yao Qi <yao@codesourcery.com>
10813
10814 PR gdb/16220
10815 * gdbarch.sh: Remove startup_gdbarch.
10816 * gdbarch.c: Regenerated.
10817 * gdbarch.h: Likewise.
10818
10819 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10820
10821 * rl78-tdep.c (rl78_g10_register_name): New function.
10822 (rl78_return_value): Add g10 support.
10823 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10824 g10.
10825
10826 2014-02-17 Doug Evans <xdje42@gmail.com>
10827
10828 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10829 (SUBDIR_GUILE_SRCS): Ditto.
10830 (scm-gsmob.o): Ditto.
10831
10832 2014-02-17 Yao Qi <yao@codesourcery.com>
10833
10834 * gnu-nat.c (ILL_RPC): Declare defined function.
10835
10836 2014-02-17 Yao Qi <yao@codesourcery.com>
10837
10838 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10839 mach_msg_type_number_t.
10840 (gnu_write_inferior): Likewise.
10841
10842 2014-02-17 Yao Qi <yao@codesourcery.com>
10843
10844 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10845 in format string.
10846 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10847 (inf_validate_procs, inf_signal): Likewise.
10848 (S_exception_raise_request): Likewise.
10849 (do_mach_notify_dead_name): Likewise.
10850 (steal_exc_port): Likewise.
10851 (gnu_read_inferior): Change 'copy_count''s type to
10852 mach_msg_type_number_t.
10853 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10854 format string.
10855
10856 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10857
10858 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10859 flag. Adjust all users; in particular...
10860 (gnu_wait): ..., don't decrement its value in here...
10861 (gnu_create_inferior): ..., and instead set the flag in here,
10862 around the startup_inferior call, and call that one with
10863 START_INFERIOR_TRAPS_EXPECTED.
10864
10865 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10866 (ILL_RPC): ... new macro.
10867 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10868 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10869 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10870 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10871 functions with ILL_RPC macro.
10872 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10873 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10874 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10875 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10876 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10877 (S_proc_getlogin_reply, S_proc_getsid_reply)
10878 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10879 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10880 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10881 (S_proc_getnports_reply, S_proc_is_important_reply)
10882 (S_proc_get_code_reply): New stub functions, generated with
10883 ILL_RPC macro.
10884
10885 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10886 collected the type check structures.
10887
10888 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10889
10890 2014-02-14 Doug Evans <dje@google.com>
10891
10892 * target.c (target_write_partial): Fix result type.
10893
10894 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10895
10896 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10897 the proper offsets to access fpregset_t.
10898
10899 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10900
10901 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10902 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10903 * h8300-tdep.c (setmachinelist): Remove global.
10904 * hppa-tdep.c (hppa_sigtramp): Remove global.
10905 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10906 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10907 * ravenscar-thread.c (update_target_observer): Remove global.
10908 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10909
10910 2014-02-12 Tom Tromey <tromey@redhat.com>
10911
10912 * common/rsp-low.c: Update comments.
10913 * common/rsp-low.h: Update comments.
10914
10915 2014-02-12 Tom Tromey <tromey@redhat.com>
10916
10917 * common/rsp-low.c (convert_ascii_to_int): Remove.
10918 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10919
10920 2014-02-12 Tom Tromey <tromey@redhat.com>
10921
10922 * common/rsp-low.h (unhexify): Don't declare.
10923 * common/rsp-low.c (unhexify): Remove.
10924
10925 2014-02-12 Tom Tromey <tromey@redhat.com>
10926
10927 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10928 * common/rsp-low.c (convert_int_to_ascii): Remove.
10929
10930 2014-02-12 Tom Tromey <tromey@redhat.com>
10931
10932 * common/rsp-low.h (hexify): Don't declare.
10933 * common/rsp-low.c (hexify): Remove.
10934
10935 2014-02-12 Tom Tromey <tromey@redhat.com>
10936
10937 * common/rsp-low.c (hexify): Never take strlen of argument.
10938
10939 2014-02-12 Tom Tromey <tromey@redhat.com>
10940
10941 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10942 * remote.c (extended_remote_run, remote_rcmd)
10943 (remote_download_trace_state_variable, remote_save_trace_data)
10944 (remote_set_trace_notes): Update.
10945 * tracepoint.c (encode_source_string, tfile_write_status)
10946 (tfile_write_uploaded_tsv): Update.
10947
10948 2014-02-12 Tom Tromey <tromey@redhat.com>
10949
10950 * tracepoint.c: Include rsp-low.h.
10951 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10952 * remote.c: Include rsp-low.h.
10953 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10954 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10955 (remote_unescape_input): Move to common/rsp-low.c.
10956 * common/rsp-low.h: New file.
10957 * common/rsp-low.c: New file.
10958 * Makefile.in (SFILES): Add common/rsp-low.c.
10959 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10960 (COMMON_OBS): Add rsp-low.o.
10961 (rsp-low.o): New target.
10962
10963 2014-02-12 Tom Tromey <tromey@redhat.com>
10964
10965 * utils.h: Include print-utils.h.
10966 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10967 (int_string, core_addr_to_string, core_addr_to_string_nz)
10968 (hex_string, hex_string_custom): Don't declare.
10969 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10970 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10971 (hex_string_custom, int_string, core_addr_to_string)
10972 (core_addr_to_string_nz, host_address_to_string): Move to
10973 common/print-utils.c.
10974 * common/print-utils.h: New file.
10975 * common/print-utils.c: New file
10976 * Makefile.in (SFILES): Add common/print-utils.c.
10977 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10978 (COMMON_OBS): Add print-utils.o.
10979 (print-utils.o): New target.
10980
10981 2014-02-12 Tom Tromey <tromey@redhat.com>
10982
10983 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10984
10985 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10986
10987 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10988
10989 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10990
10991 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10992 if a PT_IO ptrace request returns sucessfully but indicates that 0
10993 bytes were transferred.
10994
10995 2014-02-12 Pedro Alves <palves@redhat.com>
10996 Kevin Buettner <kevinb@redhat.com>
10997
10998 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10999 TYPE_INSTANCE_FLAG_CODE_SPACE.
11000
11001 2014-02-12 Pedro Alves <palves@redhat.com>
11002
11003 * h8300-tdep.c (pseudo_from_raw_register)
11004 (raw_from_pseudo_register): New functions.
11005 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11006 them.
11007
11008 2014-02-12 Pedro Alves <palves@redhat.com>
11009
11010 * h8300-tdep.c (h8300_register_sim_regno): New function.
11011 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11012 gdbarch_register_sim_regno hook.
11013
11014 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11015
11016 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11017
11018 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11019
11020 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11021
11022 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11023
11024 * obsd-tdep.h (obsd_init_abi): New prototype.
11025 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11026 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11027 (obsd_init_abi): New functions.
11028 * i386obsd-tdep.c: Include "obsd-tdep.h".
11029 (i386obsd_init_abi): Call obsd_init_abi.
11030 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11031 (amd64obsd_init_abi): Call obsd_init_abi.
11032 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11033 obsd-tdep.c to gdb_target_obs.
11034
11035 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11036
11037 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11038 double float arguments to 16-byte in the argument slots.
11039
11040 2014-02-11 Doug Evans <xdje42@gmail.com>
11041
11042 * configure.ac: Don't crash if pkg-config is not found and guile
11043 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11044 in guile checks.
11045 * configure: Regenerate.
11046
11047 2014-02-11 Yao Qi <yao@codesourcery.com>
11048
11049 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11050 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11051 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11052 * gnu-nat.c (gnu_xfer_memory): Likewise.
11053 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11054 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11055 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11056 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11057
11058 2014-02-11 Yao Qi <yao@codesourcery.com>
11059
11060 * target.h (enum target_xfer_error): Rename to ...
11061 (enum target_xfer_status): ... it. New. All users updated.
11062 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11063 New.
11064 (TARGET_XFER_STATUS_ERROR_P): New macro.
11065 (target_xfer_error_to_string): Remove declaration.
11066 (target_xfer_status_to_string): Declare.
11067 (target_xfer_partial_ftype): Adjust it.
11068 (struct target_ops) <to_xfer_partial>: Return
11069 target_xfer_status. Add argument xfered_len. Update
11070 comments.
11071 * target.c (target_xfer_error_to_string): Rename to ...
11072 (target_xfer_status_to_string): ... it. New. All callers
11073 updated.
11074 (target_read_live_memory): Likewise. Call target_xfer_partial
11075 instead of target_read.
11076 (memory_xfer_live_readonly_partial): Return
11077 target_xfer_status. Add argument xfered_len.
11078 (raw_memory_xfer_partial): Likewise.
11079 (memory_xfer_partial_1): Likewise.
11080 (memory_xfer_partial): Likewise.
11081 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11082 properly. Update debug message.
11083 (default_xfer_partial, current_xfer_partial): Likewise.
11084 (target_write_partial): Likewise.
11085 (target_read_partial): Likewise. All callers updated.
11086 (read_whatever_is_readable): Likewise.
11087 (target_write_with_progress): Likewise.
11088 (target_read_alloc_1): Likewise.
11089
11090 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11091 * auxv.c (procfs_xfer_auxv): Likewise.
11092 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11093 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11094 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11095 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11096 * corefile.c (read_memory): Adjust.
11097 * corelow.c (core_xfer_partial): Likewise.
11098 * ctf.c (ctf_xfer_partial): Likewise.
11099 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11100 updated.
11101 (darwin_xfer_partial): Likewise.
11102 * exec.c (section_table_xfer_memory_partial): Likewise. All
11103 callers updated.
11104 (exec_xfer_partial): Likewise.
11105 * exec.h (section_table_xfer_memory_partial): Update
11106 declaration.
11107 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11108 negative.
11109 (gnu_xfer_partial): Likewise.
11110 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11111 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11112 (ia64_hpux_xfer_solib_got): Likewise.
11113 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11114 type of 'partial_len' to ULONGEST.
11115 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11116 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11117 (linux_nat_xfer_partial): Likewise.
11118 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11119 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11120 * monitor.c (monitor_xfer_memory): Likewise.
11121 (monitor_xfer_partial): Likewise.
11122 * procfs.c (procfs_xfer_partial): Likewise.
11123 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11124 * record-full.c (record_full_xfer_partial): Likewise.
11125 (record_full_core_xfer_partial): Likewise.
11126 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11127 (gdbsim_xfer_partial): Likewise.
11128 * remote.c (remote_write_bytes_aux): Likewise. All callers
11129 updated.
11130 (remote_write_bytes, remote_read_bytes): Likewise. All
11131 callers updated.
11132 (remote_flash_erase): Likewise. All callers updated.
11133 (remote_write_qxfer): Likewise. All callers updated.
11134 (remote_read_qxfer): Likewise. All callers updated.
11135 (remote_xfer_partial): Likewise.
11136 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11137 (rs6000_xfer_shared_libraries): Likewise.
11138 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11139 (sol_thread_xfer_partial): Likewise.
11140 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11141 (sparc_xfer_partial): Likewise.
11142 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11143 updated.
11144 (spu_xfer_partial): Likewise.
11145 * spu-multiarch.c (spu_xfer_partial): Likewise.
11146 * tracepoint.c (tfile_xfer_partial): Likewise.
11147 * windows-nat.c (windows_xfer_memory): Likewise.
11148 (windows_xfer_shared_libraries): Likewise.
11149 (windows_xfer_partial): Likewise.
11150 * valprint.c: Replace 'target_xfer_error' with
11151 'target_xfer_status' in comments.
11152
11153 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11154
11155 Checked in by Joel Brobecker <brobecker@adacore.com>.
11156 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11157
11158 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11159
11160 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11161 function parameters.
11162
11163 2014-02-10 Will Newton <will.newton@linaro.org>
11164
11165 * elfread.c (elf_rel_plt_read): Look for a .got section if
11166 looking up .got.plt fails.
11167 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11168 on address passed to elf_gnu_ifunc_record_cache.
11169 (elf_gnu_ifunc_resolve_addr): Likewise.
11170 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11171
11172 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11173
11174 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11175 (X_RETTURN): New macro.
11176 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11177
11178 * sparc64-tdep.c (sparc64_init_abi): Hook
11179 sparc_in_function_epilogue_p.
11180
11181 2014-02-10 Gary Benson <gbenson@redhat.com>
11182
11183 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11184 Rename name_matcher to symbol_matcher.
11185
11186 2014-02-10 Gary Benson <gbenson@redhat.com>
11187
11188 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11189 Use expand_symtabs_file_matcher_ftype and
11190 expand_symtabs_symbol_matcher_ftype.
11191
11192 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11193
11194 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11195 (struct ada_symbol_cache): New.
11196 (ada_free_symbol_cache): Forward declare.
11197 (struct ada_pspace_data): New.
11198 (ada_pspace_data_handle): New static global.
11199 (get_ada_pspace_data, ada_pspace_data_cleanup)
11200 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11201 (cache_space, cache): Delete, now folded inside struct
11202 ada_pspace_data.
11203 (ada_get_symbol_cache): New function.
11204 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11205 implementation.
11206 (_initialize_ada_language): Remove initialization of cache_space.
11207 Move call to observer_attach_inferior_exit up, grouping it
11208 with the other observer registrations inside this function.
11209 Rename command to be more general. Add call to
11210 register_program_space_data_with_cleanup.
11211
11212 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11213
11214 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11215 ada_new_objfile_observer.
11216 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11217 (_initialize_tasks): Update uses of ada_new_objfile_observer
11218 and ada_tasks_normal_stop_observer.
11219
11220 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11221
11222 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11223 returned by the 'Length attribute to integer.
11224
11225 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11226
11227 * ada-lang.c (_initialize_ada_language): Initialize
11228 cache_space obstack.
11229
11230 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11231
11232 * ada-lang.c (HASH_SIZE): New macro.
11233 (struct cache_entry): New type.
11234 (cache_space, cache): New static globals.
11235 (ada_clear_symbol_cache, find_entry): New functions.
11236 (lookup_cached_symbol, cache_symbol): Implement.
11237 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11238 (_initialize_ada_language): Attach ada_new_objfile_observer
11239 and ada_free_objfile_observer.
11240
11241 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11242
11243 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11244 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11245 struct block * parameter.
11246 (ada_lookup_symbol_list_worker): Constify local variable "block".
11247 Remove cast which is no longer necessary.
11248
11249 2014-02-10 Doug Evans <xdje42@gmail.com>
11250
11251 Add Guile as an extension language.
11252 * NEWS: Mention Guile scripting.
11253 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11254 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11255 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11256 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11257 (CLIBS): Add GUILE_LIBS.
11258 (install-guile): New rule.
11259 (guile.o): New rule.
11260 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11261 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11262 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11263 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11264 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11265 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11266 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11267 * configure.ac: New option --with-guile.
11268 * configure: Regenerate.
11269 * config.in: Regenerate.
11270 * auto-load.c: Remove #include "python/python.h". Add #include
11271 "gdb/section-scripts.h".
11272 (source_section_scripts): Handle Guile scripts.
11273 (_initialize_auto_load): Add name of Guile objfile script to
11274 scripts-directory help text.
11275 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11276 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11277 (struct breakpoint): New member scm_bp_object.
11278 * defs.h (enum command_control_type): New value guile_control.
11279 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11280 "extension.h".
11281 (show_user): Update comment.
11282 (_initialize_cli_cmds): Update help text for "show user". Update help
11283 text for max-user-call-depth.
11284 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11285 "extension.h".
11286 (multi_line_command_p): Add guile_control.
11287 (print_command_lines): Handle guile_control.
11288 (execute_control_command, recurse_read_control_structure): Ditto.
11289 (process_next_line): Recognize "guile" commands.
11290 * disasm.c (gdb_disassemble_info): Make non-static.
11291 * disasm.h: #include "dis-asm.h".
11292 (struct gdbarch): Add forward decl.
11293 (gdb_disassemble_info): Declare.
11294 * extension.c: #include "guile/guile.h".
11295 (extension_languages): Add guile.
11296 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11297 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11298 * gdbtypes.c (get_unsigned_type_max): New function.
11299 (get_signed_type_minmax): New function.
11300 * gdbtypes.h (get_unsigned_type_max): Declare.
11301 (get_signed_type_minmax): Declare.
11302 * guile/README: New file.
11303 * guile/guile-internal.h: New file.
11304 * guile/guile.c: New file.
11305 * guile/guile.h: New file.
11306 * guile/scm-arch.c: New file.
11307 * guile/scm-auto-load.c: New file.
11308 * guile/scm-block.c: New file.
11309 * guile/scm-breakpoint.c: New file.
11310 * guile/scm-disasm.c: New file.
11311 * guile/scm-exception.c: New file.
11312 * guile/scm-frame.c: New file.
11313 * guile/scm-gsmob.c: New file.
11314 * guile/scm-iterator.c: New file.
11315 * guile/scm-lazy-string.c: New file.
11316 * guile/scm-math.c: New file.
11317 * guile/scm-objfile.c: New file.
11318 * guile/scm-ports.c: New file.
11319 * guile/scm-pretty-print.c: New file.
11320 * guile/scm-safe-call.c: New file.
11321 * guile/scm-string.c: New file.
11322 * guile/scm-symbol.c: New file.
11323 * guile/scm-symtab.c: New file.
11324 * guile/scm-type.c: New file.
11325 * guile/scm-utils.c: New file.
11326 * guile/scm-value.c: New file.
11327 * guile/lib/gdb.scm: New file.
11328 * guile/lib/gdb/boot.scm: New file.
11329 * guile/lib/gdb/experimental.scm: New file.
11330 * guile/lib/gdb/init.scm: New file.
11331 * guile/lib/gdb/iterator.scm: New file.
11332 * guile/lib/gdb/printing.scm: New file.
11333 * guile/lib/gdb/types.scm: New file.
11334 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11335 (VPATH): Add $(GUILE_SRCDIR).
11336 (GUILE_DIR): New variable.
11337 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11338 (all): Add stamp-guile dependency.
11339 (stamp-guile): New rule.
11340 (clean-guile, install-guile, uninstall-guile): New rules.
11341 (install-only): Add install-guile dependency.
11342 (uninstall): Add uninstall-guile dependency.
11343 (clean): Add clean-guile dependency.
11344
11345 2014-02-09 Doug Evans <xdje42@gmail.com>
11346
11347 Revert this patch (which I approved, mea culpa).
11348
11349 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11350
11351 * Makefile.in (all-lib): Remove.
11352 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11353
11354 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11355
11356 Fix Python stack corruption.
11357 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11358 gdb_py_longest.
11359
11360 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11361
11362 * Makefile.in (all-lib): Remove.
11363 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11364
11365 2014-02-07 Doug Evans <dje@google.com>
11366
11367 * extension-priv.h (extension_language_script_ops): Add comment.
11368 (extension_language_ops): Add comment.
11369 (active_ext_lang_state): Fix typo in comment.
11370
11371 2014-02-07 Pedro Alves <palves@redhat.com>
11372
11373 PR breakpoints/16292
11374 * infrun.c (handle_signal_stop) <signal arrives while stepping
11375 over a breakpoint>: Switch back to the stepping thread.
11376
11377 2014-02-07 Yao Qi <yao@codesourcery.com>
11378
11379 * target.c (target_xfer_partial): Return zero if LEN is zero.
11380
11381 2014-02-07 Yao Qi <yao@codesourcery.com>
11382
11383 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11384 (ld_so_xfer_auxv): Likewise.
11385 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11386 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11387 * corelow.c (core_xfer_partial): Likewise.
11388 * ctf.c (ctf_xfer_partial): Likewise.
11389 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11390 (darwin_xfer_partial): Likewise.
11391 * exec.c (exec_xfer_partial): Likewise.
11392 * gnu-nat.c (gnu_xfer_partial): Likewise.
11393 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11394 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11395 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11396 * linux-nat.c (linux_xfer_siginfo): Likewise.
11397 (linux_proc_xfer_spu): Likewise.
11398 * procfs.c (procfs_xfer_partial): Likewise.
11399 * record-full.c (record_full_xfer_partial): Likewise.
11400 (record_full_core_xfer_partial): Likewise.
11401 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11402 * remote.c (remote_write_qxfer): Likewise.
11403 (remote_write_qxfer, remote_read_qxfer): Likewise.
11404 (remote_xfer_partial): Likewise.
11405 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11406 (rs6000_xfer_shared_libraries): Likewise.
11407 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11408 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11409 (spu_xfer_partial): Likewise.
11410 * target.c (memory_xfer_partial_1): Likewise.
11411 * tracepoint.c (tfile_xfer_partial): Likewise.
11412 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11413 (windows_xfer_partial): Likewise.
11414
11415 2014-02-07 Yao Qi <yao@codesourcery.com>
11416
11417 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11418 comments.
11419 (core_xfer_shared_libraries_aix): Likewise.
11420 * gdbarch.c, gdbarch.h: Regenerated.
11421 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11422 ULONGEST. Change 'len_avail' type to ULONGEST.
11423 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11424 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11425 declaration.
11426 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11427
11428 2014-02-07 Yao Qi <yao@codesourcery.com>
11429
11430 * corefile.c (memory_error): Get 'exception' from ERR and pass
11431 'exception' to throw_error.
11432
11433 2014-02-06 Doug Evans <xdje42@gmail.com>
11434
11435 * configure.ac (libpython checking): Remove all but python.o from
11436 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11437 * configure: Regenerate.
11438
11439 * Makefile.in (SFILES): Add extension.c.
11440 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11441 (COMMON_OBS): Add extension.o.
11442 * extension.h: New file.
11443 * extension-priv.h: New file.
11444 * extension.c: New file.
11445
11446 * python/python-internal.h: #include "extension.h".
11447 (gdbpy_auto_load_enabled): Declare.
11448 (gdbpy_apply_val_pretty_printer): Declare.
11449 (gdbpy_apply_frame_filter): Declare.
11450 (gdbpy_preserve_values): Declare.
11451 (gdbpy_breakpoint_cond_says_stop): Declare.
11452 (gdbpy_breakpoint_has_cond): Declare.
11453 (void source_python_script_for_objfile): Delete.
11454 * python/python.c: #include "extension-priv.h".
11455 Delete inclusion of "observer.h".
11456 (extension_language_python): Moved here and renamed from
11457 script_language_python in py-auto-load.c.
11458 Redefined to be of type extension_language_defn.
11459 (python_extension_script_ops): New global.
11460 (python_extension_ops): New global.
11461 (struct python_env): New member previous_active.
11462 (restore_python_env): Call restore_active_ext_lang.
11463 (ensure_python_env): Call set_active_ext_lang.
11464 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11465 New arg extlang.
11466 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11467 New arg extlang.
11468 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11469 New arg extlang.
11470 (gdbpy_eval_from_control_command): Renamed from
11471 eval_python_from_control_command, made static. New arg extlang.
11472 (gdbpy_source_script) Renamed from source_python_script, made static.
11473 New arg extlang.
11474 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11475 result to int. New arg extlang.
11476 (gdbpy_source_objfile_script): Renamed from
11477 source_python_script_for_objfile, made static. New arg extlang.
11478 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11479 static. New args extlang, extlang_printers. Change result type to
11480 "void".
11481 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11482 static. New arg extlang. Rename arg printers to extlang_printers
11483 and change type to ext_lang_type_printers *.
11484 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11485 static. Replace argument arg with extlang, extlang_printers.
11486 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11487 (!HAVE_PYTHON, source_python_script): Delete.
11488 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11489 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11490 (!HAVE_PYTHON, start_type_printers): Delete.
11491 (!HAVE_PYTHON, apply_type_printers): Delete.
11492 (!HAVE_PYTHON, free_type_printers): Delete.
11493 (_initialize_python): Delete call to observer_attach_before_prompt.
11494 (finalize_python): Set/restore active extension language.
11495 (gdbpy_finish_initialization) Renamed from
11496 finish_python_initialization, made static. New arg extlang.
11497 (gdbpy_initialized): New function.
11498 * python/python.h: #include "extension.h". Delete #include
11499 "value.h", "mi/mi-cmds.h".
11500 (extension_language_python): Declare.
11501 (GDBPY_AUTO_FILE_NAME): Delete.
11502 (enum py_bt_status): Moved to extension.h and renamed to
11503 ext_lang_bt_status.
11504 (enum frame_filter_flags): Moved to extension.h.
11505 (enum py_frame_args): Moved to extension.h and renamed to
11506 ext_lang_frame_args.
11507 (finish_python_initialization): Delete.
11508 (eval_python_from_control_command): Delete.
11509 (source_python_script): Delete.
11510 (apply_val_pretty_printer): Delete.
11511 (apply_frame_filter): Delete.
11512 (preserve_python_values): Delete.
11513 (gdbpy_script_language_defn): Delete.
11514 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11515 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11516
11517 * auto-load.c: #include "extension.h".
11518 (GDB_AUTO_FILE_NAME): Delete.
11519 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11520 (script_language_gdb): Delete, moved to extension.c and renamed to
11521 extension_language_gdb.
11522 (source_gdb_script_for_objfile): Delete.
11523 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11524 (loaded_script): Change type of language member to
11525 struct extension_language_defn *.
11526 (init_loaded_scripts_info): Initialize
11527 unsupported_script_warning_printed.
11528 (maybe_add_script): Make static. Change type of language arg to
11529 struct extension_language_defn *.
11530 (clear_section_scripts): Reset unsupported_script_warning_printed.
11531 (auto_load_objfile_script_1): Rewrite to use extension language API.
11532 (auto_load_objfile_script): Make public. Remove support-compiled-in
11533 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11534 (source_section_scripts): Rewrite to use extension language API.
11535 (load_auto_scripts_for_objfile): Rewrite to use
11536 auto_load_scripts_for_objfile.
11537 (collect_matching_scripts_data): Change type of language member to
11538 struct extension_language_defn *.
11539 (auto_load_info_scripts): Change type of language arg to
11540 struct extension_language_defn *.
11541 (unsupported_script_warning_print): New function.
11542 (script_not_found_warning_print): Make static.
11543 (_initialize_auto_load): Rewrite construction of scripts-directory
11544 help.
11545 * auto-load.h (struct objfile): Add forward decl.
11546 (struct script_language): Delete.
11547 (struct auto_load_pspace_info): Add forward decl.
11548 (struct extension_language_defn): Add forward decl.
11549 (maybe_add_script): Delete.
11550 (auto_load_objfile_script): Declare.
11551 (script_not_found_warning_print): Delete.
11552 (auto_load_info_scripts): Update prototype.
11553 (auto_load_gdb_scripts_enabled): Declare.
11554 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11555 auto_load_python_scripts_enabled and made public.
11556 (script_language_python): Delete, moved to python.c.
11557 (gdbpy_script_language_defn): Delete.
11558 (info_auto_load_python_scripts): Update to use
11559 extension_language_python.
11560
11561 * breakpoint.c (condition_command): Replace call to
11562 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11563 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11564 with call to breakpoint_ext_lang_cond_says_stop.
11565 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11566 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11567 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11568 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11569 New arg slang.
11570 (local_setattro): Print name of extension language with existing
11571 stop condition.
11572
11573 * valprint.c (val_print, value_print): Update to call
11574 apply_ext_lang_val_pretty_printer.
11575 * cp-valprint.c (cp_print_value): Update call to
11576 apply_ext_lang_val_pretty_printer.
11577 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11578 (gdbpy_apply_val_pretty_printer): Renamed from
11579 apply_val_pretty_printer. New arg extlang.
11580 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11581
11582 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11583 extension language API.
11584 * cli/cli-script.c (execute_control_command): Update to call
11585 eval_ext_lang_from_control_command.
11586
11587 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11588 enum ext_lang_bt_status values. Update call to
11589 apply_ext_lang_frame_filter.
11590 (mi_cmd_stack_list_locals): Ditto.
11591 (mi_cmd_stack_list_args): Ditto.
11592 (mi_cmd_stack_list_variables): Ditto.
11593 * mi/mi-main.c: Delete #include "python/python-internal.h".
11594 Add #include "extension.h".
11595 (mi_cmd_list_features): Replace reference to python internal variable
11596 gdb_python_initialized with call to ext_lang_initialized_p.
11597
11598 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11599 Update to use enum ext_lang_frame_args. Update to call
11600 apply_ext_lang_frame_filter.
11601 * python/py-framefilter.c (extract_sym): Update to use enum
11602 ext_lang_bt_status.
11603 (extract_value, py_print_type, py_print_value): Ditto.
11604 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11605 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11606 (py_print_frame): Ditto.
11607 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11608 New arg extlang. Update to use enum ext_lang_bt_status.
11609
11610 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11611 finish_python_initialization. Replace with call to
11612 finish_ext_lang_initialization.
11613
11614 * typeprint.c (do_free_global_table): Update to call
11615 free_ext_lang_type_printers.
11616 (create_global_typedef_table): Update to call
11617 start_ext_lang_type_printers.
11618 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11619 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11620 (type_print_options): Change type of global_printers from "void *"
11621 to "struct ext_lang_type_printers *".
11622
11623 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11624 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11625 (gdbpy_preserve_values): Renamed from preserve_python_values.
11626 New arg extlang.
11627 (!HAVE_PYTHON, preserve_python_values): Delete.
11628
11629 * utils.c (quit_flag): Delete, moved to extension.c.
11630 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11631 extension.c.
11632
11633 * eval.c: Delete #include "python/python.h".
11634 * main.c: Delete #include "python/python.h".
11635
11636 * defs.h: Update comment.
11637
11638 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11639
11640 GDB 7.7 released.
11641
11642 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11643
11644 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11645 defined.
11646
11647 2014-02-05 Yao Qi <yao@codesourcery.com>
11648
11649 * remote.c (remote_pass_signals): Remove local 'buf' and use
11650 rs->buf.
11651 (remote_program_signals): Likewise.
11652
11653 2014-02-05 Yao Qi <yao@codesourcery.com>
11654
11655 * ctf.c: Include "inferior.h" and "gdbthread.h".
11656 (CTF_PID): A new macro.
11657 (ctf_open): Call inferior_appeared and add_thread_silent.
11658 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11659 (ctf_thread_alive): New function.
11660 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11661
11662 2014-02-05 Yao Qi <yao@codesourcery.com>
11663
11664 Revert this patch:
11665
11666 2013-05-24 Yao Qi <yao@codesourcery.com>
11667
11668 * tracepoint.c (TFILE_PID): Remove.
11669 (tfile_open): Don't add thread and inferior.
11670 (tfile_close): Don't set 'inferior_ptid'. Don't call
11671 exit_inferior_silent.
11672 (tfile_thread_alive): Remove.
11673 (init_tfile_ops): Don't set field 'to_thread_alive' of
11674 tfile_ops.
11675
11676 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11677
11678 * remote.c (remote_start_remote): Call remote_check_symbols even
11679 if only symbol-file (not file) has been given.
11680
11681 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11682
11683 * gdbarch.sh (skip_entrypoint): New callback.
11684 * gdbarch.c, gdbarch.h: Regenerate.
11685 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11686 * infrun.c (fill_in_stop_func): Likewise.
11687 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11688 (ppc_elfv2_elf_make_msymbol_special): New function.
11689 (ppc_elfv2_skip_entrypoint): Likewise.
11690 (ppc_linux_init_abi): Install them for ELFv2.
11691
11692 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11693
11694 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11695 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11696 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11697 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11698 structures returned in GPRs.
11699
11700 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11701
11702 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11703 offset to the stack parameter list for the ELFv2 ABI.
11704
11705 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11706
11707 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11708 set_gdbarch_convert_from_func_ptr_addr and
11709 set_gdbarch_elf_make_msymbol_special for ELFv1.
11710 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11711 function descriptors on ELFv1.
11712 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11713 set up r12 at function entry.
11714
11715 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11716
11717 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11718 (struct gdbarch_tdep): New member elf_abi.
11719
11720 * rs6000-tdep.c: Include "elf/ppc64.h".
11721 (rs6000_gdbarch_init): Detect ELF ABI version.
11722
11723 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11724
11725 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11726 within a register pair holding a DFP 128-bit value on little-endian.
11727 (ppc64_sysv_abi_return_value_base): Likewise.
11728 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11729 (dfp_pseudo_register_write): Likewise.
11730
11731 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11732
11733 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11734 offset on little-endian when passing _Decimal32.
11735 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11736
11737 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11738
11739 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11740 of the overlapped FP register within the VSX register on little-
11741 endian platforms.
11742 (efpr_pseudo_register_write): Likewise.
11743
11744 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11745
11746 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11747 offset on little-endian when passing small structures.
11748
11749 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11750
11751 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11752 (struct ppc64_sysv_argpos): New data structure.
11753 (ppc64_sysv_abi_push_float): Remove.
11754 (ppc64_sysv_abi_push_val): New function.
11755 (ppc64_sysv_abi_push_integer): Likewise.
11756 (ppc64_sysv_abi_push_freg): Likewise.
11757 (ppc64_sysv_abi_push_vreg): Likewise.
11758 (ppc64_sysv_abi_push_param): Likewise.
11759 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11760 (ppc64_sysv_abi_return_value_base): New function.
11761 (ppc64_sysv_abi_return_value): Refactor to use it.
11762
11763 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11764
11765 * NEWS: Document new target powerpc64le-*-linux*.
11766
11767 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11768
11769 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11770 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11771 core dumps.
11772 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11773 register set used in ELF core dumps. Add floating-point register set.
11774
11775 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11776
11777 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11778 dwarf2_to_gdb[] table using symbolic constants. Adjust
11779 penultimate entry from number representing the PC register
11780 to symbolic constant representing the MDR register. Add
11781 constant for the PC register to the end of the table.
11782
11783 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11784
11785 * bsd-kvm.c: Include <sys/param.h>
11786
11787 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11788
11789 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11790
11791 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11792
11793 * ada-lang.h (clear_ada_sym_cache): Delete.
11794
11795 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11796
11797 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11798
11799 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11800
11801 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11802 the sigreturn register save area only if the syscall is
11803 sigreturn.
11804
11805 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11806
11807 * valops.c (value_slice): Minor reformatting.
11808
11809 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11810
11811 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11812
11813 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11814
11815 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11816 New static globals.
11817 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11818 (ada_ignore_descriptive_types_p): New static global.
11819 (find_parallel_type_by_descriptive_type): Return immediately
11820 if ada_ignore_descriptive_types_p is set.
11821 (_initialize_ada_language): Register new commands "maintenance
11822 set ada", "maintenance show ada", "maintenance set ada
11823 ignore-descriptive-types" and "maintenance show ada
11824 ignore-descriptive-types".
11825 * NEWS: Add entry for new "maint ada set/show
11826 ignore-descriptive-types" commands.
11827
11828 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11829
11830 * record-btrace.c (record_btrace_close): Call btrace_teardown
11831 for all threads.
11832
11833 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11834
11835 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11836 "ui-out.h".
11837
11838 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11839
11840 * ada-typeprint (type_is_full_subrange_of_target_type):
11841 New function.
11842 (print_range): Add parameter bounds_prefered_p. If not set,
11843 try printing range types using the name of their base type.
11844 (print_range_type): Add parameter bounds_prefered_p.
11845 Use it in call to print_range.
11846 (print_array_type, ada_print_type): Update calls to print_range
11847 and print_range_type.
11848
11849 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11850
11851 * ada-typeprint.c (print_array_type, print_choices, print_range)
11852 (print_range_bound, print_dynamic_range_bound, print_range_type):
11853 Remove declaration.
11854
11855 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11856
11857 * ada-typeprint.c (print_range): Add missing empty line
11858 after local declaration.
11859
11860 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11861
11862 * ada-valprint.c (print_optional_low_bound): Get index_type's
11863 target type for as long as it is a TYPE_CODE_RANGE.
11864
11865 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11866
11867 * procfs.c (procfs_make_note_section): Remove assertion and
11868 associated comment.
11869
11870 2014-01-24 Yao Qi <yao@codesourcery.com>
11871
11872 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11873 * corelow.c (get_core_siginfo): Likewise.
11874
11875 2014-01-24 Yao Qi <yao@codesourcery.com>
11876
11877 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11878 ULONGEST. Don't check 'len' is negative.
11879 (remote_write_bytes): Change type of 'len' to ULONGEST.
11880
11881 2014-01-23 Tom Tromey <tromey@redhat.com>
11882
11883 PR python/16485:
11884 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11885 Handle exception from frame.block.
11886 (FrameVars.fetch_frame_locals): Likewise.
11887
11888 2014-01-23 Tom Tromey <tromey@redhat.com>
11889
11890 PR python/16487:
11891 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11892 on a NULL pointer. Move "goto error" to correct place.
11893
11894 2014-01-23 Tom Tromey <tromey@redhat.com>
11895
11896 PR python/16491:
11897 * python/py-framefilter.c (apply_frame_filter): Call
11898 ensure_python_env after computing gdbarch.
11899
11900 2014-01-23 Yao Qi <yao@codesourcery.com>
11901
11902 * target.c (raw_memory_xfer_partial): Change argument type
11903 from void * to gdb_byte *.
11904 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11905
11906 2014-01-22 Doug Evans <dje@google.com>
11907
11908 New gdbserver option --debug-format=timestamp.
11909 * NEWS: Mention it.
11910
11911 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11912
11913 * syscalls/s390x-linux.xml: New file.
11914 * syscalls/s390-linux.xml: New file.
11915 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11916 (XML_SYSCALL_FILENAME_S390X): Likewise.
11917 (op_svc): New enum value for SVC opcode.
11918 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11919 (s390_linux_get_syscall_number): New function.
11920 (s390_gdbarch_init): Register '*get_syscall_number' and the
11921 syscall xml file name.
11922 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11923 "s390-linux.xml" and "s390x-linux.xml".
11924 * NEWS: Announce new feature.
11925
11926 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11927
11928 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11929
11930 2014-01-22 Pedro Alves <palves@redhat.com>
11931
11932 * xtensa-config.c: Include defs.h.
11933
11934 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11935
11936 * common/common-utils.h: Add "ARI:" comment beside __func__
11937 reference.
11938
11939 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11940
11941 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11942 documentation a bit.
11943
11944 2014-01-21 Roland McGrath <mcgrathr@google.com>
11945
11946 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11947 * configure: Regenerate.
11948 * aclocal.m4: Regenerate.
11949 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11950 New substituted variables.
11951 (install-strip): New target.
11952 (INSTALL_SCRIPT): New substituted variable.
11953 (FLAGS_TO_PASS): Add it.
11954 (install-only): Use $(INSTALL_SCRIPT) rather than
11955 $(INSTALL_PROGRAM) for gcore.
11956
11957 2014-01-20 Tom Tromey <tromey@redhat.com>
11958
11959 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11960 together.
11961
11962 2014-01-20 Tom Tromey <tromey@redhat.com>
11963
11964 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11965 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11966 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11967 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11968 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11969 (struct cmd_list_element) <flags>: Remove.
11970 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11971 doc_allocated>: New fields.
11972 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11973 bitfields.
11974 * maint.c (maintenance_do_deprecate): Update.
11975 * top.c (execute_command): Update.
11976
11977 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11978
11979 * xtensa-linux-nat.c: Include asm/ptrace.h.
11980
11981 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11982
11983 * Makefile.in (SFILES): Add d-support.c.
11984 (COMMON_OBS): Add d-support.o.
11985 * d-lang.h (d_parse_symbol): Add comment, now defined in
11986 d-support.c.
11987 * d-lang.c (parse_call_convention)
11988 (parse_attributes, parse_function_types)
11989 (parse_function_args, parse_type, parse_identifier)
11990 (call_convention_p, d_parse_symbol): Move functions to ...
11991 * d-support.c: ... New file.
11992
11993 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11994
11995 * d-lang.h (d_parse_symbol): Add declaration.
11996 * d-lang.c (extract_identifiers)
11997 (extract_type_info): Remove functions.
11998 (parse_call_convention, parse_attributes)
11999 (parse_function_types, parse_function_args)
12000 (parse_type, parse_identifier, call_convention_p)
12001 (d_parse_symbol): New functions.
12002 (d_demangle): Use d_parse_symbol to demangle D symbols.
12003
12004 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12005
12006 * d-lang.h (struct builtin_d_type): New data type.
12007 (builtin_d_type): Add declaration.
12008 * d-lang.c (d_language_arch_info, build_d_types)
12009 (builtin_d_type): New functions.
12010 (enum d_primitive_types): New data type.
12011 (d_language_defn): Change c_language_arch_info to
12012 d_language_arch_info.
12013 (d_type_data): New static variable.
12014 (_initialize_d_language): Initialize d_type_data.
12015
12016 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12017
12018 * d-lang.h (d_main_name): Add declaration.
12019 * d-lang.c (d_main_name): New function.
12020 * symtab.c (find_main_name): Add call to d_main_name.
12021
12022 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12023
12024 * d-lang.c (d_language_defn): Change macro_expansion_c to
12025 macro_expansion_no.
12026
12027 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12028
12029 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12030
12031 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12032
12033 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12034 gdb_exception" declaration.
12035 * remote.c (getpkt_or_notif_sane): Likewise.
12036
12037 2014-01-17 Doug Evans <dje@google.com>
12038
12039 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12040 function, contents of dirnames_to_char_ptr_vec_append moved here.
12041 (delim_string_to_char_ptr_vec): New function.
12042 (dirnames_to_char_ptr_vec_append): Rewrite.
12043 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12044
12045 2014-01-17 Doug Evans <dje@google.com>
12046
12047 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12048 and moved here ...
12049 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12050 #include "common-utils.h".
12051 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12052 * common/vec.h (VEC_ASSERT_PASS): Update.
12053 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12054 (MACH_CHECK_ERROR): Update.
12055
12056 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12057
12058 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12059 comments.
12060 * gdbarch.h: Regenerate.
12061
12062 2014-01-16 Tom Tromey <tromey@redhat.com>
12063
12064 * value.c (struct value) <regnum>: Move earlier.
12065
12066 2014-01-16 Tom Tromey <tromey@redhat.com>
12067
12068 * remote.c (extended_remote_create_inferior): Rename from
12069 extended_remote_create_inferior_1. Add "ops" argument. Remove
12070 old implementation.
12071
12072 2014-01-16 Pedro Alves <palves@redhat.com>
12073
12074 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12075 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12076 the backchain.
12077
12078 2014-01-16 Doug Evans <dje@google.com>
12079
12080 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12081
12082 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12083
12084 * btrace.h (btrace_thread_flag): New.
12085 (struct btrace_thread_info) <flags>: New.
12086 * record-btrace.c (record_btrace_resume_thread)
12087 (record_btrace_find_thread_to_move, btrace_step_no_history)
12088 (btrace_step_stopped, record_btrace_start_replaying)
12089 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12090 (record_btrace_find_resume_thread): New.
12091 (record_btrace_resume, record_btrace_wait): Extend.
12092 (record_btrace_can_execute_reverse): New.
12093 (record_btrace_open): Fail in non-stop mode.
12094 (record_btrace_set_replay): Split into this, ...
12095 (record_btrace_stop_replaying): ... this, ...
12096 (record_btrace_clear_histories): ... and this.
12097 (init_record_btrace_ops): Init to_can_execute_reverse.
12098 * NEWS: Announce it.
12099
12100 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12101
12102 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12103 (forward_target_decr_pc_after_break)
12104 (target_decr_pc_after_break): New.
12105 * target.c (forward_target_decr_pc_after_break)
12106 (target_decr_pc_after_break): New.
12107 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12108 instead of gdbarch_decr_pc_after_break.
12109 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12110 instead of gdbarch_decr_pc_after_break.
12111 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12112 instead of gdbarch_decr_pc_after_break.
12113 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12114 instead of gdbarch_decr_pc_after_break.
12115 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12116 instead of gdbarch_decr_pc_after_break.
12117 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12118 instead of gdbarch_decr_pc_after_break.
12119
12120 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12121
12122 * btrace.c: Include regcache.h.
12123 (btrace_add_pc): New.
12124 (btrace_enable): Call btrace_add_pc.
12125 (btrace_is_empty): New.
12126 * btrace.h (btrace_is_empty): New.
12127 * record-btrace.c (require_btrace, record_btrace_info): Call
12128 btrace_is_empty.
12129
12130 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12131
12132 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12133 Support delta reads.
12134 (linux_disable_btrace): Change return type.
12135 * common/linux-btrace.h (linux_read_btrace): Change parameters
12136 and return type to allow error reporting. Update users.
12137 (linux_disable_btrace): Change return type. Update users.
12138 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12139 New.
12140 (btrace_error): New.
12141 (btrace_block) <begin>: Comment on BEGIN == 0.
12142 * btrace.c (btrace_compute_ftrace): Start from the end of
12143 the current trace.
12144 (btrace_stitch_trace, btrace_clear_history): New.
12145 (btrace_fetch): Read delta trace, return if replaying.
12146 (btrace_clear): Move clear history code to btrace_clear_history.
12147 (parse_xml_btrace): Throw an error if parsing failed.
12148 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12149 and return type to allow error reporting.
12150 (target_read_btrace): Change parameters and return type to allow
12151 error reporting.
12152 * target.c (target_read_btrace): Update.
12153 * remote.c (remote_read_btrace): Support delta reads. Pass
12154 errors on.
12155 * NEWS: Announce it.
12156
12157 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12158
12159 * record.h (record_btrace_frame_unwind)
12160 (record_btrace_tailcall_frame_unwind): New declarations.
12161 * dwarf2-frame: Include record.h
12162 (dwarf2_frame_cfa): Throw an error for btrace frames.
12163 * record-btrace.c: Include hashtab.h.
12164 (btrace_get_bfun_name): New.
12165 (btrace_call_history): Call btrace_get_bfun_name.
12166 (struct btrace_frame_cache): New.
12167 (bfcache): New.
12168 (bfcache_hash, bfcache_eq, bfcache_new): New.
12169 (btrace_get_frame_function): New.
12170 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12171 (record_btrace_frame_this_id): Compute own id.
12172 (record_btrace_frame_prev_register): Provide PC, throw_error
12173 for all other registers.
12174 (record_btrace_frame_sniffer): Detect btrace frames.
12175 (record_btrace_tailcall_frame_sniffer): New.
12176 (record_btrace_frame_dealloc_cache): New.
12177 (record_btrace_frame_unwind): Add new functions.
12178 (record_btrace_tailcall_frame_unwind): New.
12179 (_initialize_record_btrace): Allocate cache.
12180 * btrace.c (btrace_clear): Call reinit_frame_cache.
12181 * NEWS: Announce it.
12182
12183 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12184
12185 * record-btrace.c (record_btrace_set_replay)
12186 (record_btrace_goto_begin, record_btrace_goto_end)
12187 (record_btrace_goto): New.
12188 (init_record_btrace_ops): Initialize them.
12189 * NEWS: Announce it.
12190
12191 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12192
12193 * record-btrace.c (record_btrace_find_new_threads)
12194 (record_btrace_thread_alive): New.
12195 (init_record_btrace_ops): Initialize to_find_new_threads and
12196 to_thread_alive.
12197
12198 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12199
12200 * record-btrace.c (record_btrace_resume): New.
12201 (record_btrace_wait): New.
12202 (init_record_btrace_ops): Initialize to_wait and to_resume.
12203
12204 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12205
12206 * record-btrace.c (record_btrace_xfer_partial)
12207 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12208 (record_btrace_allow_memory_access): New.
12209 (init_record_btrace_ops): Initialize new methods.
12210 * target.c (raw_memory_xfer_partial): Bail out if target reports
12211 that this memory is not available.
12212
12213 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12214
12215 * target.h (target_ops) <to_insert_breakpoint>
12216 <to_remove_breakpoint>: Add target_ops parameter.
12217 (forward_target_insert_breakpoint): New.
12218 (forward_target_remove_breakpoint): New.
12219 (memory_remove_breakpoint, memory_insert_breakpoint):
12220 Add target_ops parameter.
12221 * target.c (target_insert_breakpoint): Split into this and ...
12222 (forward_target_insert_breakpoint): ... this.
12223 (target_remove_breakpoint): Split into this and ...
12224 (forward_target_remove_breakpoint): ... this.
12225 (debug_to_insert_breakpoint): Add target_ops parameter.
12226 Call forward_target_insert_breakpoint.
12227 (debug_to_remove_breakpoint): Add target_ops parameter.
12228 Call forward_target_remove_breakpoint.
12229 (update_current_target): Do not inherit or default to_insert_breakpoint
12230 and to_remove_breakpoint.
12231 * corelow.c (ignore): Add target_ops parameter.
12232 * exec.c (ignore): Add target_ops parameter.
12233 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12234 Add target_ops parameter.
12235 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12236 Add target_ops parameter.
12237 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12238 Add target_ops parameter.
12239 * record-full.c (record_full_beneath_to_insert_breakpoint)
12240 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12241 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12242 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12243 (record_full_core_remove_breakpoint): Add target_ops parameter.
12244 Update users.
12245 (record_full_beneath_to_insert_breakpoint_ops)
12246 (record_full_beneath_to_remove_breakpoint_ops)
12247 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12248 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12249 tmp_to_remove_breakpoint_ops,
12250 record_full_beneath_to_insert_breakpoint_ops, and
12251 record_full_beneath_to_remove_breakpoint_ops.
12252 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12253 (m32r_remove_breakpoint): Add target_ops parameter.
12254 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12255 Add target_ops parameter.
12256 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12257 Add target_ops parameter.
12258
12259 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12260 Markus Metzger <markus.t.metzger@intel.com>
12261
12262 * record-btrace.c: Include frame-unwind.h.
12263 (record_btrace_frame_unwind_stop_reason)
12264 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12265 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12266 New.
12267 (init_record_btrace_ops): Install it.
12268
12269 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12270
12271 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12272 get_prev_frame_1.
12273
12274 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12275
12276 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12277 earlier.
12278
12279 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12280
12281 * frame-unwind.c: Include target.h.
12282 (frame_unwind_try_unwinder): New function with code from ...
12283 (frame_unwind_find_by_frame): ... here. New variable
12284 unwinder_from_target, call also target_get_unwinder)
12285 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12286 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12287 * target.h (struct target_ops): New fields to_get_unwinder and
12288 to_get_tailcall_unwinder.
12289 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12290
12291 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12292
12293 * record-btrace.c (record_btrace_fetch_registers)
12294 (record_btrace_store_registers)
12295 (record_btrace_to_prepare_to_store): New.
12296 (init_record_btrace_ops): Add the above.
12297
12298 2014-01-16 Tom Tromey <tromey@redhat.com>
12299
12300 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12301 * target.h (struct target_ops) <to_prepare_to_store>: Add
12302 argument.
12303 (target_prepare_to_store): Add argument.
12304 * target.c (debug_to_prepare_to_store): Add argument.
12305 (update_current_target): Update.
12306 * remote.c (remote_prepare_to_store): Add 'self' argument.
12307 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12308 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12309 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12310 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12311 argument.
12312 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12313 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12314 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12315 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12316 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12317
12318 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12319
12320 * btrace.h (replay) <replay>: New.
12321 (btrace_is_replaying): New.
12322 * btrace.c (btrace_clear): Free replay iterator.
12323 (btrace_is_replaying): New.
12324 * record-btrace.c (record_btrace_is_replaying): New.
12325 (record_btrace_info): Print insn number if replaying.
12326 (record_btrace_insn_history): Start at replay position.
12327 (record_btrace_call_history): Start at replay position.
12328 (init_record_btrace_ops): Init to_record_is_replaying.
12329
12330 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12331
12332 * record-btrace.c (record_btrace_insn_history_range): Include
12333 end.
12334 (record_btrace_insn_history_from): Adjust range.
12335 (record_btrace_call_history_range): Include
12336 end.
12337 (record_btrace_call_history_from): Adjust range.
12338 * NEWS: Announce changes.
12339
12340 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12341
12342 * record.h (enum record_print_flag)
12343 <record_print_indent_calls>: New.
12344 * record.c (get_call_history_modifiers): Recognize /c modifier.
12345 (_initialize_record): Document /c modifier.
12346 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12347 Reorder fields. Optionally indent the function name. Update
12348 all users.
12349 * NEWS: Announce changes.
12350
12351 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12352
12353 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12354
12355 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12356
12357 * btrace.c (ftrace_new_function): Start counting at one.
12358 * record-btrace.c (record_btrace_info): Adjust number of calls
12359 and insns.
12360 * NEWS: Announce it.
12361
12362 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12363
12364 * record-btrace.c (btrace_call_history_insn_range): Print
12365 insn range as [begin, end].
12366
12367 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12368
12369 * btrace.h (struct btrace_func_link): New.
12370 (enum btrace_function_flag): New.
12371 (struct btrace_inst): Rename to ...
12372 (struct btrace_insn): ...this. Update all users.
12373 (struct btrace_func) <ibegin, iend>: Remove.
12374 (struct btrace_func_link): New.
12375 (struct btrace_func): Rename to ...
12376 (struct btrace_function): ...this. Update all users.
12377 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12378 (number, level, flags>: New.
12379 (struct btrace_insn_iterator): Rename to ...
12380 (struct btrace_insn_history): ...this.
12381 Update all users.
12382 (struct btrace_insn_iterator, btrace_call_iterator): New.
12383 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12384 (struct btrace_target_info) <begin, end, level>
12385 <insn_history, call_history>: New.
12386 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12387 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12388 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12389 (btrace_call_number, btrace_call_begin, btrace_call_end)
12390 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12391 (btrace_find_function_by_number, btrace_set_insn_history)
12392 (btrace_set_call_history): New.
12393 * btrace.c (btrace_init_insn_iterator)
12394 (btrace_init_func_iterator, compute_itrace): Remove.
12395 (ftrace_print_function_name, ftrace_print_filename)
12396 (ftrace_skip_file): Change
12397 parameter to const.
12398 (ftrace_init_func): Remove.
12399 (ftrace_debug): Use new btrace_function fields.
12400 (ftrace_function_switched): Also consider gaining and
12401 losing symbol information).
12402 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12403 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12404 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12405 New.
12406 (ftrace_new_function): Move. Remove debug print.
12407 (ftrace_update_lines, ftrace_update_insns): New.
12408 (ftrace_update_function): Check for call, ret, and jump.
12409 (compute_ftrace): Renamed to ...
12410 (btrace_compute_ftrace): ...this. Rewritten to compute call
12411 stack.
12412 (btrace_fetch, btrace_clear): Updated.
12413 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12414 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12415 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12416 (btrace_call_number, btrace_call_begin, btrace_call_end)
12417 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12418 (btrace_find_function_by_number, btrace_set_insn_history)
12419 (btrace_set_call_history): New.
12420 * record-btrace.c (require_btrace): Use new btrace thread
12421 info fields.
12422 (record_btrace_info, btrace_insn_history)
12423 (record_btrace_insn_history, record_btrace_insn_history_range):
12424 Use new btrace thread info fields and new iterator.
12425 (btrace_func_history_src_line): Rename to ...
12426 (btrace_call_history_src_line): ...this. Use new btrace
12427 thread info fields.
12428 (btrace_func_history): Rename to ...
12429 (btrace_call_history): ...this. Use new btrace thread info
12430 fields and new iterator.
12431 (record_btrace_call_history, record_btrace_call_history_range):
12432 Use new btrace thread info fields and new iterator.
12433
12434 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12435
12436 * frame.h (frame_id_build_unavailable_stack_special): New.
12437 * frame.c (frame_id_build_unavailable_stack_special): New.
12438
12439 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12440
12441 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12442 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12443 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12444 to gdbarch.
12445 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12446 (i386_insn_is_jump, i386_jmp_p): New.
12447 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12448 insn_is_jump to gdbarch.
12449 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12450 * gdbarch.h: Regenerated.
12451 * gdbarch.c: Regenerated.
12452 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12453 (default_insn_is_jump): New.
12454 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12455 (default_insn_is_jump): New.
12456
12457 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12458
12459 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12460 Change to ...
12461 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12462 (btrace_read_type) <btrace_read_new>: Change to ...
12463 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12464
12465 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12466
12467 * common/linux-btrace.c (linux_read_btrace): Free trace from
12468 previous iteration.
12469
12470 2014-01-15 Doug Evans <dje@google.com>
12471
12472 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12473 uint32_t.
12474
12475 2014-01-15 Tom Tromey <tromey@redhat.com>
12476
12477 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12478 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12479 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12480 (set_objfile_main_name): New function.
12481 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12482 language_of_main>: New fields.
12483 (set_objfile_main_name): Declare.
12484 * symtab.c (find_main_name): Loop over objfiles to find the main
12485 name and language.
12486 (set_main_name): Now static.
12487 (get_main_info): Add comment.
12488 * symtab.h (set_main_name): Don't declare.
12489
12490 2014-01-15 Tom Tromey <tromey@redhat.com>
12491
12492 * symtab.c (main_progspace_key): New global.
12493 (struct main_info): New.
12494 (name_of_main, language_of_main): Remove.
12495 (get_main_info, main_info_cleanup): New function.
12496 (set_main_name, main_name, main_language): Use get_main_info.
12497 (_initialize_symtab): Initialize main_progspace_key.
12498
12499 2014-01-15 Tom Tromey <tromey@redhat.com>
12500
12501 * dbxread.c (process_one_symbol): Update.
12502 * dwarf2read.c (read_partial_die): Update.
12503 * symfile.c (set_initial_language): Call main_language.
12504 * symtab.c (language_of_main): Now static.
12505 (set_main_name): Add 'lang' parameter.
12506 (find_main_name): Update.
12507 (main_language): New function.
12508 (symtab_observer_executable_changed): Update.
12509 * symtab.h (set_main_name): Update.
12510 (language_of_main): Remove.
12511 (main_language): Declare.
12512
12513 2014-01-15 Tom Tromey <tromey@redhat.com>
12514
12515 * symfile.c (init_entry_point_info): Use new "initialized" field.
12516 Update.
12517 * objfiles.h (struct entry_point) <initialized>: New field.
12518 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12519 (struct objfile) <ei>: ...here. Remove.
12520 * objfiles.c (entry_point_address_query): Update.
12521
12522 2014-01-15 Tom Tromey <tromey@redhat.com>
12523
12524 * objfiles.c (entry_point_address_query): Relocate entry point
12525 address.
12526 (objfile_relocate1): Do not relocate entry point address.
12527 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12528 <the_bfd_section_index>: New field.
12529 * symfile.c (init_entry_point_info): Find the entry point's
12530 section.
12531
12532 2014-01-15 Tom Tromey <tromey@redhat.com>
12533
12534 * solib-frv.c (enable_break): Use entry_point_address_query.
12535
12536 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12537
12538 * NEWS: Add note on improved process record-replay on
12539 arm*-linux* targets.
12540
12541 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12542
12543 * arm-tdep.c (enum arm_record_result): New enum.
12544 (arm_record_unsupported_insn): New function.
12545 (arm_record_coproc_data_proc): Removed.
12546 (thumb2_record_ld_st_multiple): New function.
12547 (thumb2_record_ld_st_dual_ex_tbb): New function.
12548 (thumb2_record_data_proc_sreg_mimm): New function.
12549 (thumb2_record_ps_dest_generic): New function.
12550 (thumb2_record_branch_misc_cntrl): New function.
12551 (thumb2_record_str_single_data): New function.
12552 (thumb2_record_ld_mem_hints): New function.
12553 (thumb2_record_ld_word): New function.
12554 (thumb2_record_lmul_lmla_div): New function.
12555 (thumb2_record_decode_insn_handler): New function.
12556 (decode_insn): Add thumb32 instruction handlers.
12557
12558 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12559
12560 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12561 (struct arm_linux_record_tdep): Declare.
12562 (arm_canonicalize_syscall): New function.
12563 (arm_all_but_pc_registers_record): New function.
12564 (arm_linux_syscall_record): New function.
12565 (arm_linux_init_abi): Add syscall recording constructs.
12566 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12567 decoding. (arm_record_coproc_data_proc): Update arm syscall
12568 decoding.
12569 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12570 <arm_syscall_record>: New field.
12571 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12572 gdb_target_obs.
12573
12574 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12575
12576 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12577 register for push instruction recording.
12578
12579 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12580
12581 * arm-tdep.c (thumb_record_misc): Update to correct logical
12582 error while recording ldm, ldmia and pop instructions.
12583
12584 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12585
12586 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12587
12588 2014-01-15 Pedro Alves <palves@redhat.com>
12589
12590 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12591 (go32_resume, go32_fetch_registers, store_register)
12592 (go32_store_registers, go32_prepare_to_store)
12593 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12594 (go32_create_inferior, go32_can_run, go32_terminal_init)
12595 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12596 declarations.
12597
12598 2014-01-15 Tom Tromey <tromey@redhat.com>
12599
12600 * target.h (async_callback_ftype): New typedef.
12601 (struct target_ops) <to_async>: Use it.
12602
12603 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12604
12605 * python/py-value.c (get_field_type): Remove unnecessary curly
12606 braces for single-statement if block.
12607
12608 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12609
12610 * python/py-type.c (convert_field): Add missing empty line
12611 after declarations.
12612
12613 2014-01-14 Doug Evans <dje@google.com>
12614
12615 * symfile.h (expand_symtabs_matching): Renamed from
12616 expand_partial_symbol_names. Update prototype.
12617 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12618 * symfile.c (expand_symtabs_matching): Renamed from
12619 expand_partial_symbol_names. New args file_matcher, kind.
12620 Rename arg fun to symbol_matcher.
12621 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12622 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12623 ada_expand_partial_symbol_name.
12624 (ada_make_symbol_completion_list): Update to call
12625 expand_symtabs_matching.
12626 (ada_add_global_exceptions): Call expand_symtabs_matching.
12627 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12628 call map_symbol_filenames.
12629 * symtab.c (sources_info): Update to call map_symbol_filenames.
12630 (search_symbols): Call expand_symtabs_matching.
12631 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12632 (default_make_symbol_completion_list_break_on): Update to call
12633 expand_symtabs_matching.
12634 (make_source_files_completion_list): Update to call
12635 map_symbol_filenames.
12636
12637 2014-01-14 Doug Evans <dje@google.com>
12638
12639 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12640 (expand_symtabs_symbol_matcher_ftype): New typedef.
12641 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12642 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12643 * symfile.c (expand_partial_symbol_names): Update to use
12644 expand_symtabs_symbol_matcher_ftype.
12645 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12646 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12647 Arg name_matcher renamed to symbol_matcher.
12648 * psymtab.c (recursively_search_psymtabs): Update to use
12649 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12650 sym_matcher.
12651 (expand_symtabs_matching_via_partial): Update to use
12652 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12653 Arg name_matcher renamed to symbol_matcher.
12654
12655 2014-01-14 Doug Evans <dje@google.com>
12656
12657 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12658 (map_partial_symbol_filenames): Ditto.
12659 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12660 (map_partial_symbol_filenames): Ditto.
12661 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12662 (map_partial_symbol_filenames): Ditto.
12663 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12664 (map_partial_symbol_filenames): Ditto.
12665 * symtab.c: Delete #include "psymtab.h".
12666
12667 2014-01-14 Pedro Alves <palves@redhat.com>
12668 Tom Tromey <tromey@redhat.com>
12669
12670 * infrun.c (use_displaced_stepping): Use find_record_target
12671 instead of RECORD_IS_USED.
12672 (adjust_pc_after_break): Use record_full_is_used instead of
12673 RECORD_IS_USED.
12674 * record-btrace.c (record_btrace_open): Call record_preopen
12675 instead of checking RECORD_IS_USED.
12676 * record-full.c (record_full_shortname)
12677 (record_full_core_shortname): New globals.
12678 (record_full_is_used): New function.
12679 (find_full_open): Call record_preopen instead of checking
12680 RECORD_IS_USED.
12681 (init_record_full_ops): Set the target's shortname to
12682 record_full_shortname.
12683 (init_record_full_core_ops): Set the target's shortname to
12684 record_full_core_shortname.
12685 * record-full.h (record_full_is_used): Declare.
12686 * record.c (find_record_target): Make extern.
12687 (record_preopen): New function.
12688 * record.h (RECORD_IS_USED): Delete macro.
12689 (find_record_target, record_preopen): Declare functions.
12690
12691 2014-01-14 Yao Qi <yao@codesourcery.com>
12692
12693 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12694 'len''s type to ULONGEST.
12695 (core_xfer_shared_libraries_aix): Likewise.
12696 * gdbarch.c, gdbarch.h: Regenerated.
12697 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12698 Change type of 'len' to ULONGEST.
12699 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12700 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12701
12702 2014-01-14 Yao Qi <yao@codesourcery.com>
12703
12704 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12705 type of 'len' to ULONGEST.
12706 (linux_xfer_osdata_processgroups): Likewise.
12707 (linux_xfer_osdata_threads): Likewise.
12708 (linux_xfer_osdata_fds): Likewise.
12709 (linux_xfer_osdata_isockets): Likewise.
12710 (linux_xfer_osdata_shm): Likewise.
12711 (linux_xfer_osdata_sem): Likewise.
12712 (linux_xfer_osdata_msg): Likewise.
12713 (linux_common_xfer_osdata): Likewise.
12714 (struct osdata_type) <getter>: Likewise.
12715 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12716 the declaration.
12717
12718 2014-01-14 Yao Qi <yao@codesourcery.com>
12719
12720 * target.h (target_xfer_partial_ftype): Update.
12721 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12722 ULONGEST.
12723 * aix-thread.c (aix_thread_xfer_partial): Change type of
12724 argument 'len' to ULONGEST.
12725 * auxv.c (procfs_xfer_auxv): Likewise.
12726 (ld_so_xfer_auxv): Likewise.
12727 (memory_xfer_auxv): Likewise.
12728 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12729 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12730 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12731 * corelow.c (core_xfer_partial): Likewise.
12732 * ctf.c (ctf_xfer_partial): Likewise.
12733 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12734 '%u'.
12735 (darwin_read_dyld_info): Likewise.
12736 (darwin_xfer_partial): Likewise.
12737 * exec.c (section_table_xfer_memory_partial): Likewise.
12738 (exec_xfer_partial): Likewise.
12739 * exec.h (section_table_xfer_memory_partial): Update
12740 declaration.
12741 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12742 instead of plongest.
12743 (gnu_xfer_partial): Likewise.
12744 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12745 (ia64_hpux_xfer_solib_got): Likewise.
12746 (ia64_hpux_xfer_partial): Likewise.
12747 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12748 * inf-ptrace.c (inf_ptrace_xfer_partial):
12749 * inf-ttrace.c (inf_ttrace_xfer_partial):
12750 * linux-nat.c (linux_xfer_siginfo): Likewise.
12751 (linux_nat_xfer_partial): Likewise.
12752 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12753 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12754 * monitor.c (monitor_xfer_memory): Likewise.
12755 (monitor_xfer_partial): Likewise.
12756 * procfs.c (procfs_xfer_partial): Likewise.
12757 * record-full.c (record_full_xfer_partial): Likewise.
12758 (record_full_core_xfer_partial): Likewise.
12759 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12760 instead of plongest.
12761 (gdbsim_xfer_partial): Likewise.
12762 * remote.c (remote_xfer_partial): Likewise.
12763 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12764 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12765 declaration.
12766 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12767 (rs6000_xfer_shared_libraries): Likewise.
12768 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12769 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12770 (sparc_xfer_partial): Likewise.
12771 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12772 (spu_xfer_partial): Likewise.
12773 * spu-multiarch.c (spu_xfer_partial): Likewise.
12774 * target.c (target_read_live_memory): Likewise.
12775 (memory_xfer_live_readonly_partial): Likewise.
12776 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12777 (target_xfer_partial, default_xfer_partial): Likewise.
12778 (current_xfer_partial): Likewise.
12779 * tracepoint.c (tfile_xfer_partial): Likewise.
12780 * windows-nat.c (windows_xfer_memory): Likewise. Call
12781 pulongest instead of plongest.
12782 (windows_xfer_partial): Likewise.
12783 (windows_xfer_shared_libraries): Likewise.
12784
12785 2014-01-14 Yao Qi <yao@codesourcery.com>
12786
12787 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12788 target_xfer_partial_ftype.
12789
12790 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12791
12792 PR python/15464
12793 PR python/16113
12794 * valops.c (value_struct_elt_bitpos): New function
12795 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12796 object to 'None' if the field name is an empty string ("").
12797 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12798 attribute to look for a field when 'name' is 'None'.
12799 (get_field_type): New function
12800
12801 2014-01-13 Doug Evans <dje@google.com>
12802
12803 PR symtab/16426
12804 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12805 (try_open_dwop_file): Ditto.
12806 * gdb_bfd.c: #include "vec.h".
12807 (bfdp): New typedef.
12808 (struct gdb_bfd_data): New member included_bfds.
12809 (gdb_bfd_unref): Unref all included bfds.
12810 (gdb_bfd_record_inclusion): New function.
12811 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12812
12813 2014-01-13 Tom Tromey <tromey@redhat.com>
12814
12815 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12816
12817 2014-01-13 Tom Tromey <tromey@redhat.com>
12818
12819 * defs.h (use_windows): Remove.
12820 * gdb.c (main): Update.
12821 * main.c (captured_main, gdb_main): Update.
12822 * main.h (struct captured_main_args) <use_windows>: Remove.
12823 * top.c (use_windows): Remove.
12824
12825 2014-01-13 Tom Tromey <tromey@redhat.com>
12826
12827 * defs.h (deprecated_flush_hook): Remove.
12828
12829 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12830
12831 PR threads/16216
12832 * linux-thread-db.c (try_thread_db_load): Add parameter
12833 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12834 (try_thread_db_load_from_pdir_1): Move it there from here.
12835 (try_thread_db_load_from_sdir): Update caller.
12836 (try_thread_db_load_from_dir): Move it there from here.
12837
12838 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12839
12840 * regformats/regdat.sh: Always rewrite the register file.
12841
12842 2014-01-13 Pedro Alves <palves@redhat.com>
12843
12844 * Makefile.in (CHECK_HEADERS): New variable.
12845 (check-headers:): New rule.
12846
12847 2014-01-13 Tom Tromey <tromey@redhat.com>
12848
12849 * cli/cli-setshow.c (do_set_command): Update.
12850 * defs.h (deprecated_set_hook): Remove.
12851 * top.c (deprecated_set_hook): Remove.
12852
12853 2014-01-13 Pedro Alves <palves@redhat.com>
12854
12855 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12856 the tracepoint if the PC is a pseudo-register.
12857
12858 2014-01-13 Tom Tromey <tromey@redhat.com>
12859
12860 * defs.h (XCALLOC): Remove.
12861 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12862 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12863 * dwarf2loc.c (allocate_piece_closure): Likewise.
12864 * elfread.c (elf_symfile_segments): Likewise.
12865 (elf_symfile_segments): Likewise.
12866 * gdbtypes.c (copy_type_recursive): Likewise.
12867 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12868 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12869 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12870 XCALLOC.
12871 * mt-tdep.c (mt_gdbarch_init): Likewise.
12872 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12873 XCALLOC.
12874 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12875 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12876 * registry.c (registry_alloc_data): Likewise.
12877 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12878 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12879 * serial.c (serial_fdopen_ops): Likewise.
12880 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12881 XCALLOC.
12882 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12883 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12884 not XCALLOC.
12885
12886 2014-01-13 Tom Tromey <tromey@redhat.com>
12887
12888 * defs.h (XMALLOC): Remove.
12889 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12890 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12891 * cli-out.c (struct ui_out *): Likewise.
12892 * cli/cli-dump.c (add_dump_command): Likewise.
12893 (add_dump_command): Likewise.
12894 * complaints.c (get_complaints): Likewise.
12895 (find_complaint): Likewise.
12896 * dwarf2-frame.c (execute_cfa_program): Likewise.
12897 * dwarf2read.c (abbrev_table_read_table): Likewise.
12898 * gdbarch.sh: Likewise.
12899 * gdbarch.c: Rebuild.
12900 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12901 * interps.c (interp_new): Likewise.
12902 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12903 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12904 * mi/mi-console.c (mi_console_file_new): Likewise.
12905 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12906 * mi/mi-out.c (mi_out_new): Likewise.
12907 * mi/mi-parse.c (mi_parse): Likewise.
12908 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12909 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12910 * observer.c (xalloc_observer_list_node): Likewise.
12911 * regcache.c (regcache_xmalloc_1): Likewise.
12912 * reggroups.c (reggroup_new): Likewise.
12913 (_initialize_reggroup): Likewise.
12914 * registry.c (register_data_with_cleanup): Likewise.
12915 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12916 * ser-base.c (serial_ttystate): Likewise.
12917 * ser-mingw.c (make_pipe_state): Likewise.
12918 * ser-pipe.c (pipe_open): Likewise.
12919 * serial.c (serial_open): Likewise.
12920 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12921 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12922 (tui_alloc_win_info): Likewise.
12923 (tui_add_content_elements): Likewise.
12924 * tui/tui-file.c (tui_file_new): Likewise.
12925 * tui/tui-out.c (tui_out_new): Likewise.
12926 * ui-file.c (mem_file_new): Likewise.
12927 * ui-out.c (push_level): Likewise.
12928 (make_cleanup_ui_out_end): Likewise.
12929 (append_header_to_list): Likewise.
12930 (ui_out_new): Likewise.
12931 * user-regs.c (user_reg_add_builtin): Likewise.
12932
12933 2014-01-13 Tom Tromey <tromey@redhat.com>
12934
12935 * defs.h (XZALLOC): Remove.
12936 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12937 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12938 (get_ada_tasks_inferior_data): Likewise.
12939 * auto-load.c (get_auto_load_pspace_data): Likewise.
12940 * auxv.c (get_auxv_inferior_data): Likewise.
12941 * bfd-target.c (target_bfd_reopen): Likewise.
12942 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12943 (deprecated_insert_raw_breakpoint): Likewise.
12944 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12945 * corelow.c (core_open): Likewise.
12946 * darwin-nat.c (darwin_check_new_threads): Likewise.
12947 (darwin_attach_pid): Likewise.
12948 * dummy-frame.c (dummy_frame_push): Likewise.
12949 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12950 * dwarf2loc.c (allocate_piece_closure): Likewise.
12951 * elfread.c (elf_symfile_segments): Likewise.
12952 * eval.c (ptrmath_type_p): Likewise.
12953 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12954 * gdbtypes.c (alloc_type_arch): Likewise.
12955 (alloc_type_instance): Likewise.
12956 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12957 * inf-child.c (inf_child_can_use_agent): Likewise.
12958 * inflow.c (get_inflow_inferior_data): Likewise.
12959 * infrun.c (save_infcall_suspend_state): Likewise.
12960 * jit.c (jit_reader_load): Likewise.
12961 (get_jit_objfile_data): Likewise.
12962 (get_jit_program_space_data): Likewise.
12963 (jit_object_open_impl): Likewise.
12964 (jit_symtab_open_impl): Likewise.
12965 (jit_block_open_impl): Likewise.
12966 (jit_frame_sniffer): Likewise.
12967 * linux-fork.c (add_fork): Likewise.
12968 * maint.c (make_command_stats_cleanup): Likewise.
12969 * objfiles.c (get_objfile_pspace_data): Likewise.
12970 * opencl-lang.c (struct lval_closure): Likewise.
12971 * osdata.c (osdata_start_osdata): Likewise.
12972 * progspace.c (new_address_space): Likewise.
12973 (add_program_space): Likewise.
12974 * remote-sim.c (get_sim_inferior_data): Likewise.
12975 * sh-tdep.c (sh_gdbarch_init): Likewise.
12976 * skip.c (Ignore): Likewise.
12977 (skip_delete_command): Likewise.
12978 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12979 (library_list_start_library): Likewise.
12980 (solib_aix_current_sos): Likewise.
12981 * solib-darwin.c (get_darwin_info): Likewise.
12982 (darwin_current_sos): Likewise.
12983 * solib-dsbt.c (get_dsbt_info): Likewise.
12984 * solib-ia64-hpux.c (new_so_list): Likewise.
12985 (ia64_hpux_get_solib_linkage_addr): Likewise.
12986 * solib-spu.c (append_ocl_sos): Likewise.
12987 (spu_current_sos): Likewise.
12988 * solib-svr4.c (get_svr4_info): Likewise.
12989 (svr4_keep_data_in_core): Likewise.
12990 (library_list_start_library): Likewise.
12991 (svr4_default_sos): Likewise.
12992 (svr4_read_so_list): Likewise.
12993 * solib-target.c (library_list_start_library): Likewise.
12994 (solib_target_current_sos): Likewise.
12995 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12996 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12997 * symfile.c (default_symfile_segments): Likewise.
12998 * target-descriptions.c (tdesc_data_init): Likewise.
12999 (tdesc_create_reg): Likewise.
13000 (struct tdesc_type *): Likewise.
13001 (tdesc_create_vector): Likewise.
13002 (tdesc_set_struct_size): Likewise.
13003 (struct tdesc_type *): Likewise.
13004 (tdesc_free_feature): Likewise.
13005 (tdesc_create_feature): Likewise.
13006 * windows-nat.c (windows_add_thread): Likewise.
13007 (windows_make_so): Likewise.
13008 * xml-support.c (gdb_xml_body_text): Likewise.
13009 (gdb_xml_create_parser_and_cleanup): Likewise.
13010 (xml_process_xincludes): Likewise.
13011 * xml-syscall.c (allocate_syscalls_info): Likewise.
13012 (syscall_create_syscall_desc): Likewise.
13013
13014 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13015
13016 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13017 function, with code from i386_stap_parse_special_token.
13018 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13019 (i386_stap_parse_special_token): Move code to the two functions
13020 above; simplify it.
13021
13022 2014-01-09 Pedro Alves <palves@redhat.com>
13023 Hui Zhu <hui@codesourcery.com>
13024
13025 PR gdb/16101
13026 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13027 bp_err_string. Don't mark the location shlib_disabled if the
13028 error thrown wasn't a generic or memory error. Catch errors
13029 thrown while inserting breakpoints in overlayed code. Output
13030 error message of software breakpoints.
13031 * remote.c (remote_insert_breakpoint): If this breakpoint has
13032 target-side commands but this stub doesn't support Z0 packets,
13033 throw NOT_SUPPORTED_ERROR error.
13034 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13035 * target.h (target_insert_breakpoint): Extend comment.
13036 (target_insert_hw_breakpoint): Add comment.
13037
13038 2014-01-08 Pedro Alves <palves@redhat.com>
13039
13040 * remote.c (remote_add_thread): Add threads silently if starting
13041 up.
13042 (remote_notice_new_inferior): If in all-stop, and starting up,
13043 don't call notice_new_inferior.
13044 (get_current_thread): New function, factored out from ...
13045 (add_current_inferior_and_thread): ... this. Adjust.
13046 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13047 found any thread, then select the remote's current thread as GDB's
13048 current thread too.
13049
13050 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13051
13052 * NEWS: Create a new section for the next release branch.
13053 Rename the section of the current branch, now that it has
13054 been cut.
13055
13056 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13057
13058 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13059 * version.in: Bump version to 7.7.50.DATE-cvs.
13060
13061 2014-01-08 Yao Qi <yao@codesourcery.com>
13062
13063 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13064 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13065 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13066
13067 2014-01-08 Yao Qi <yao@codesourcery.com>
13068
13069 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13070 return value of bfd_get_filename to symbol_file_add_from_bfd.
13071
13072 2014-01-08 Pierre Muller <muller@sourceware.org>
13073
13074 Fix PR16201.
13075 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13076 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13077 to prim_record_mininal_symbol_and_info.
13078 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13079 in call to prim_record_minimal_symbol_and_info.
13080 (read_pe_exported_syms): Set index field of section_data.
13081
13082 2014-01-07 Andrew Pinski <apinski@cavium.com>
13083
13084 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13085 * features/aarch64.c: Regenerate.
13086
13087 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13088
13089 * target.c (return_null): Define.
13090 (update_current_target): Use it instead of return_zero for
13091 functions that return a pointer.
13092
13093 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13094
13095 * source.c (add_path): Fix check for duplicated paths in the previously
13096 included paths.
13097
13098 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13099
13100 * ada-lang.c: Remove duplicated include statements.
13101 * alphabsd-nat.c: Ditto.
13102 * amd64-darwin-tdep.c: Ditto.
13103 * amd64fbsd-nat.c: Ditto.
13104 * auto-load.c: Ditto.
13105 * ax-gdb.c: Ditto.
13106 * breakpoint.c: Ditto.
13107 * dbxread.c: Ditto.
13108 * fork-child.c: Ditto.
13109 * gdb_usleep.c: Ditto.
13110 * i386-darwin-tdep.c: Ditto.
13111 * i386fbsd-nat.c: Ditto.
13112 * infcmd.c: Ditto.
13113 * inferior.c: Ditto.
13114 * jv-lang.c: Ditto.
13115 * linux-nat.c: Ditto.
13116 * linux-tdep.c: Ditto.
13117 * m68kbsd-nat.c: Ditto.
13118 * m68klinux-nat.c: Ditto.
13119 * microblaze-tdep.c: Ditto.
13120 * mips-linux-tdep.c: Ditto.
13121 * mn10300-tdep.c: Ditto.
13122 * nto-tdep.c: Ditto.
13123 * opencl-lang.c: Ditto.
13124 * osdata.c: Ditto.
13125 * printcmd.c: Ditto.
13126 * regcache.c: Ditto.
13127 * remote-m32r-sdi.c: Ditto.
13128 * remote.c: Ditto.
13129 * symfile.c: Ditto.
13130 * symtab.c: Ditto.
13131 * tilegx-linux-nat.c: Ditto.
13132 * tilegx-tdep.c: Ditto.
13133 * tracepoint.c: Ditto.
13134 * valops.c: Ditto.
13135 * vaxbsd-nat.c: Ditto.
13136 * windows-nat.c: Ditto.
13137 * xtensa-tdep.c: Ditto.
13138
13139 2014-01-07 Yao Qi <yao@codesourcery.com>
13140
13141 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13142
13143 2014-01-07 Yao Qi <yao@codesourcery.com>
13144 Joel Brobecker <brobecker@adacore.com>
13145
13146 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13147 (pdc_write_regs): Likewise.
13148 (fetch_regs_kernel_thread): Likewise.
13149 (store_regs_kernel_thread): Likewise.
13150
13151 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13152
13153 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13154 tagged type objects to their actual type.
13155
13156 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13157
13158 * ada-valprint.c (print_field_values): Add "language" parameter.
13159 Update calls to print_field_values and print_variant_part.
13160 Pass new parameter "language" in call to val_print instead
13161 of "current_language". Replace call to ada_val_print by call
13162 to val_print.
13163 (print_variant_part): Add "language" parameter.
13164 (ada_val_print_struct_union): Update call to print_field_values.
13165
13166 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13167
13168 * ada-valprint.c (ui_memcpy): Delete.
13169 (ada_print_floating): Update documentation. Add empty line
13170 between between function documentation and implementation.
13171 Delete variable "buffer". Use ui_file_xstrdup in place of
13172 ui_file_put. Minor adjustments following this change.
13173
13174 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13175
13176 * ada-valprint.c (ada_val_print_string): New function,
13177 extracted from ada_val_print_array.
13178 (ada_val_print_array): Replace extracted code by call
13179 to ada_val_print_string followed by a return. Move
13180 "else" branch to the function's top block.
13181
13182 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13183
13184 * ada-valprint.c (ada_val_print_array): Move implementation
13185 down. Rename parameter "offset" and "val" into "offset_aligned"
13186 and "original_value" respectively. Add parameter "offset".
13187
13188 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13189
13190 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13191 re-organizing the code. Change the "???" message printed
13192 when target type is a TYPE_CODE_UNDEF into
13193 "<ref to undefined type>".
13194
13195 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13196
13197 * ada-valprint.c (print_record): Delete, implementation inlined...
13198 (ada_val_print_struct_union): ... here. Remove call to
13199 ada_check_typedef in inlined implementation.
13200
13201 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13202
13203 * ada-valprint.c (ada_val_print_gnat_array): New function,
13204 extracted from ada_val_print_1;
13205 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13206 (ada_val_print_flt, ada_val_print_struct_union)
13207 (ada_val_print_ref): Likewise.
13208 (ada_val_print_1): Delete variables i and elttype.
13209 Replace extracted-out code by call to corresponding
13210 new functions.
13211
13212 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13213
13214 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13215
13216 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13217
13218 * ada-valprint.c (ada_val_print_1): Replace calls to
13219 ada_val_print_1 by calls to val_print.
13220
13221 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13222
13223 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13224 Update calls to self accordingly. Replace calls to c_val_print
13225 by calls to val_print.
13226
13227 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13228
13229 * ada-valprint.c (print_record): Delete declaration.
13230 (adjust_type_signedness, ada_val_print_1): Likewise.
13231 (ada_val_print): Move function implementation down.
13232 (print_variant_part, print_field_values, print_record):
13233 Move function implementation up.
13234
13235 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13236
13237 * python/py-type.c (typy_get_name): New function.
13238 (type_object_getset): Add entry for attribute "name".
13239 * NEWS: Add entry mentioning this new attribute.
13240
13241 2014-01-07 Yao Qi <yao@codesourcery.com>
13242
13243 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13244 statement.
13245
13246 2014-01-07 Yao Qi <yao@codesourcery.com>
13247
13248 * gnu-nat.c (info_port_rights): Add qualifier const to
13249 argument args.
13250
13251 2014-01-07 Yao Qi <yao@codesourcery.com>
13252
13253 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13254
13255 2014-01-07 Yao Qi <yao@codesourcery.com>
13256
13257 * gnu-nat.c (make_inf) Update declaration.
13258 (make_inf): Make it static.
13259 (inf_set_traced): Likewise.
13260 (inf_port_to_thread, inf_task_died_status): Likewise.
13261
13262 2014-01-07 Yao Qi <yao@codesourcery.com>
13263
13264 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13265
13266 2014-01-07 Yao Qi <yao@codesourcery.com>
13267
13268 * gnu-nat.c (_initialize_gnu_nat): Declare.
13269
13270 2014-01-07 Yao Qi <yao@codesourcery.com>
13271
13272 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13273 'enum bfd_endian'.
13274 (struct gdbarch_info) <byte_order>: Change type to
13275 'enum bfd_endian'.
13276 <byte_order_for_code>: Likewise.
13277 * gdbarch.c, gdbarch.h: Regenerated.
13278
13279 2014-01-06 Sasha Smundak <asmundak@google.com>
13280
13281 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13282
13283 2014-01-06 Tom Tromey <tromey@redhat.com>
13284
13285 * doublest.c (convert_doublest_to_floatformat): Use const, not
13286 CONST.
13287 * somread.c (som_symtab_read): Likewise.
13288
13289 2014-01-07 Hui Zhu <hui@codesourcery.com>
13290
13291 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13292 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13293 (gdb_bfd_fopen): Ditto.
13294 (gdb_bfd_openr): Ditto.
13295 (gdb_bfd_openw): Ditto.
13296 (gdb_bfd_openr_iovec): Ditto.
13297 (gdb_bfd_fdopenr): Ditto.
13298 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13299 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13300 with xstrdup.
13301 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13302 with xstrdup.
13303 * symfile-mem.c (symbol_file_add_from_memory): Removed
13304 gdb_bfd_stash_filename.
13305
13306 2014-01-03 Doug Evans <dje@google.com>
13307
13308 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13309 output.
13310
13311 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13312
13313 Update year range in copyright notice of all files.
13314
13315 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13316
13317 * top.c (print_gdb_version): Set copyright year to 2014.
13318
13319 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13320
13321 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13322
13323 For older changes see ChangeLog-2013.
13324 \f
13325 Local Variables:
13326 mode: change-log
13327 left-margin: 8
13328 fill-column: 74
13329 version-control: never
13330 coding: utf-8
13331 End:
This page took 0.305716 seconds and 5 git commands to generate.