X86: 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 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
4 (amd64obsd_iterate_over_regset_sections): New.
5 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
6 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7 Remove.
8 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
9 regset_from_core_section initialization.
10 * i386-tdep.c (i386_regset_from_core_section): Remove.
11 (i386_iterate_over_regset_sections): New.
12 (i386_gdbarch_init): Adjust gdbarch initialization.
13 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
14 (i386_iterate_over_regset_sections): New prototype.
15 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
16 Remove.
17 (i386obsd_aout_iterate_over_regset_sections): New.
18 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
19 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
20 targets.
21 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
22 (amd64fbsd_init_abi): Call fbsd_init_abi.
23 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
24 (i386fbsd4_init_abi): Call fbsd_init_abi.
25 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
26 target method 'make_corefile_notes'.
27 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
28
29 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
30
31 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
32 (hppa_hpux_iterate_over_regset_sections): New.
33 (hppa_hpux_init_abi): Adjust gdbarch initialization.
34 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
35 (hppa_linux_iterate_over_regset_sections): New.
36 (hppa_linux_init_abi): Adjust.
37 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
38 (hppanbsd_iterate_over_regset_sections): New.
39 (hppanbsd_init_abi): Adjust.
40 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
41 (hppaobsd_iterate_over_regset_sections): New.
42 (hppaobsd_init_abi): Adjust.
43
44 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
45
46 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
47 (frv_linux_iterate_over_regset_sections): New.
48 (frv_linux_init_abi): Adjust gdbarch initialization.
49
50 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
51
52 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
53 (armbsd_iterate_over_regset_sections): New prototype.
54 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
55 (armbsd_iterate_over_regset_sections): New.
56 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
57 initialization.
58
59 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
60
61 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
62 (alpha_linux_iterate_over_regset_sections): New.
63 (alpha_linux_init_abi): Adjust gdbarch initialization.
64 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
65 prototype.
66 (alphanbsd_iterate_over_regset_sections): New prototype.
67
68 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
69
70 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
71 Remove.
72 (aarch64_linux_iterate_over_regset_sections): New.
73 (aarch64_linux_init_abi): Adjust gdbarch initialization.
74
75 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
76
77 * fbsd-tdep.c: New file.
78 * fbsd-tdep.h: New file.
79 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
80 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
81 (ALLDEPFILES): Add fbsd-tdep.c.
82
83 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
84
85 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
86 parameter.
87 * gdbarch.h: Regenerate.
88 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
89 iterator.
90 (get_core_register_section): Add parameter 'regset' and use it, if
91 set. Add parameter 'min_size' and verify the bfd section size
92 against it.
93 (get_core_registers_cb): Add parameter 'regset' and pass it to
94 get_core_register section. For the "standard" register sections
95 ".reg" and ".reg2", set an appropriate default for human_name.
96 (get_core_registers): Don't abort when the gdbarch has an iterator
97 but no regset_from_core_section. Add NULL/0 for parameters
98 'regset'/'min_size' in calls to get_core_register_section.
99 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
100 'regset' and use it instead of calling the
101 regset_from_core_section gdbarch method.
102 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
103 * i386-tdep.c (i386_supply_xstateregset)
104 (i386_collect_xstateregset, i386_xstateregset): Moved to
105 i386-linux-tdep.c.
106 (i386_regset_from_core_section): Drop handling for .reg-xfp and
107 .reg-xstate.
108 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
109 core file support only if the regset iterator hasn't been set.
110 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
111 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
112 Moved from i386-tdep.c and renamed to *_linux*.
113 (i386_linux_iterate_over_regset_sections): Add regset parameter to
114 each callback invocation. Allow any .reg-xstate size when reading
115 from a core file.
116 * amd64-tdep.c (amd64_supply_xstateregset)
117 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
118 amd64-linux-tdep.c.
119 (amd64_regset_from_core_section): Remove.
120 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
121 install an amd64-specific regset_from_core_section gdbarch method.
122 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
123 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
124 Moved from amd64-tdep.c and renamed to *_linux*.
125 (amd64_linux_iterate_over_regset_sections): Add regset parameter
126 to each callback invocation. Allow any .reg-xstate size when
127 reading from a core file.
128 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
129 (arm_linux_iterate_over_regset_sections): Add regset parameter to
130 each callback invocation.
131 (arm_linux_init_abi): No longer set the regset_from_core_section
132 gdbarch method.
133 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
134 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
135 each callback invocation.
136 (ppc_linux_init_abi): No longer set the regset_from_core_section
137 gdbarch method.
138 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
139 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
140 (s390_regset_from_core_section): Remove.
141 (s390_iterate_over_regset_sections): Add regset parameter to each
142 callback invocation.
143 (s390_gdbarch_init): No longer set the regset_from_core_section
144 gdbarch method. Drop initialization of deleted tdep fields.
145
146 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
147
148 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
149 (amd64_linux_iterate_over_regset_sections): New.
150 (amd64_linux_init_abi_common): Don't install the regset section
151 list, but the new iterator in gdbarch.
152 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
153 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
154 (arm_linux_iterate_over_regset_sections): ...here. New function.
155 (arm_linux_init_abi): Set iterator instead of section list.
156 * corelow.c (get_core_registers_cb): New function, logic moved
157 from...
158 (get_core_registers): ...loop body here. Use new iterator method
159 instead of walking through the regset section list.
160 * gdbarch.sh: Remove 'core_regset_sections'. New method
161 'iterate_over_regset_sections'. New typedef
162 'iterate_over_regset_sections_cb'.
163 * gdbarch.c: Regenerate.
164 * gdbarch.h: Likewise.
165 * i386-linux-tdep.c (i386_linux_regset_sections)
166 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
167 Remove.
168 (i386_linux_iterate_over_regset_sections): New.
169 (i386_linux_init_abi): Don't choose a regset section list, but
170 install new iterator in gdbarch.
171 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
172 (linux_collect_regset_section_cb): New function, logic moved
173 from...
174 (linux_collect_thread_registers): ...loop body here. Use iterator
175 method instead of walking through list.
176 (linux_make_corefile_notes_1): Check for presence of iterator
177 method instead of regset section list.
178 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
179 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
180 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
181 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
182 (ppc_linux_iterate_over_regset_sections): ...here. New function.
183 (ppc_linux_init_abi): Don't choose from above regset section
184 lists, but install new iterator in gdbarch.
185 * regset.h (struct core_regset_section): Remove.
186 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
187 have_linux_v1, have_linux_v2, and have_tdb.
188 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
189 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
190 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
191 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
192 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
193 (s390_iterate_over_regset_sections): ...here. New function. Use
194 new tdep fields.
195 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
196 regset section lists, but install new iterator.
197
198 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
199
200 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
201
202 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
203
204 * progspace.c (print_program_space): Don't prune program spaces
205 before printing them.
206
207 2014-09-25 Pedro Alves <palves@redhat.com>
208
209 * infrun.c (user_visible_resume_ptid): Don't check
210 singlestep_breakpoints_inserted_p.
211
212 2014-09-25 Pedro Alves <palves@redhat.com>
213
214 * breakpoint.c (should_be_inserted): Add debug output.
215
216 2014-09-25 Pedro Alves <palves@redhat.com>
217
218 * infrun.c (stepping_past_instruction_at)
219 (clear_exit_convenience_vars): Point at infrun.h instead of
220 inferior.h.
221 (handle_signal_stop): Fix typo.
222
223 2014-09-24 Yao Qi <yao@codesourcery.com>
224
225 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
226 bitmask.
227
228 2014-09-22 Gary Benson <gbenson@redhat.com>
229
230 * target.c (target_stop): Updated comment.
231
232 2014-09-22 Gary Benson <gbenson@redhat.com>
233
234 * target/target.h (target_stop_ptid): Renamed as...
235 (target_stop_and_wait): New function. Updated comment.
236 All uses updated.
237 (target_continue_ptid): Renamed as...
238 (target_continue_no_signal): New function. Updated comment.
239 All uses updated.
240
241 2014-09-22 Pedro Alves <palves@redhat.com>
242
243 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
244 and "auto" merged.
245 * breakpoint.c (enum ugll_insert_mode): New enum.
246 (always_inserted_mode): Now a plain boolean.
247 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
248 (breakpoints_always_inserted_mode): Delete.
249 (breakpoints_should_be_inserted_now): New function.
250 (insert_breakpoints): Pass UGLL_INSERT to
251 update_global_location_list instead of calling
252 insert_breakpoint_locations manually.
253 (create_solib_event_breakpoint_1): New, factored out from ...
254 (create_solib_event_breakpoint): ... this.
255 (create_and_insert_solib_event_breakpoint): Use
256 create_solib_event_breakpoint_1 instead of calling
257 insert_breakpoint_locations manually.
258 (update_global_location_list): Change parameter type from boolean
259 to enum ugll_insert_mode. All callers adjusted. Adjust to use
260 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
261 (update_global_location_list_nothrow): Change parameter type from
262 boolean to enum ugll_insert_mode.
263 (_initialize_breakpoint): "breakpoint always-inserted" option is
264 now a boolean command. Update help text.
265 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
266 (breakpoints_should_be_inserted_now): New declaration.
267 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
268 Remove breakpoints_always_inserted_mode check.
269 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
270 * remote.c (remote_start_remote): Likewise.
271
272 2014-09-22 Pedro Alves <palves@redhat.com>
273
274 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
275 (insert_breakpoints): Don't call insert_breakpoint_locations here.
276 Instead, pass UGLL_INSERT to update_global_location_list.
277 (update_global_location_list): Change parameter type from boolean
278 to enum ugll_insert_mode. All callers adjusted. Adjust to use
279 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
280 (create_solib_event_breakpoint_1): New, factored out from ...
281 (create_solib_event_breakpoint): ... this.
282 (create_and_insert_solib_event_breakpoint): Use
283 create_solib_event_breakpoint_1 instead of calling
284 insert_breakpoint_locations manually.
285 (update_global_location_list): Handle UGLL_INSERT.
286
287 2014-09-22 Pedro Alves <palves@redhat.com>
288
289 * breakpoint.c (enum ugll_insert_mode): New enum.
290 (update_global_location_list)
291 (update_global_location_list_nothrow): Change parameter type from
292 boolean to enum ugll_insert_mode. All callers adjusted.
293
294 2014-09-19 Joel Brobecker <brobecker@adacore.com>
295
296 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
297 SystemTap support in GDB.
298
299 2014-09-19 Don Breazeal <donb@codesourcery.com>
300
301 * linux-nat.c (linux_handle_extended_wait): Call
302 linux_ptrace_get_extended_event.
303 (wait_lwp): Call linux_is_extended_waitstatus.
304 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
305 and linux_is_extended_waitstatus.
306 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
307 linux_ptrace_get_extended_event.
308 (linux_ptrace_get_extended_event): New function.
309 (linux_is_extended_waitstatus): New function.
310 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
311 (linux_is_extended_waitstatus): New declarations.
312
313 2014-09-19 Yao Qi <yao@codesourcery.com>
314
315 * dwarf2read.c (dwarf_decode_lines): Update declaration.
316 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
317 comments. Callers update.
318 (dwarf_decode_lines): Likewise.
319 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
320 comments. Skip the line table if 'lowpc' is greater than
321 'address'. Don't check
322 dwarf2_per_objfile->has_section_at_zero.
323
324 2014-09-18 Doug Evans <dje@google.com>
325
326 * NEWS: Mention new "producer" attribute of gdb.Symtab.
327 * python/py-symtab.c (stpy_get_producer): New function.
328 (symtab_object_getset): Add "producer" attribute.
329
330 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
331
332 PR gdb/17384
333 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
334 (do_captured_read_memory_integer): Remove.
335 (safe_read_memory_integer): Use target_read_memory directly instead
336 of catching errors in do_captured_read_memory_integer.
337
338 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
339
340 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
341 not gdb/doc.
342
343 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
344
345 * objc-lang.c (find_implementation_from_class): Remove dead code.
346
347 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
348
349 PR cli/7233
350 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
351 "fprintf_unfiltered (gdb_stdlog...)".
352
353 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
354
355 PR breakpoints/12526
356 * breakpoint.h (struct watchpoint): New fields val_bitpos and
357 val_bitsize.
358 * breakpoint.c (watch_command_1): Use these fields to retain
359 bitfield information.
360 (extract_bitfield_from_watchpoint_value): New function.
361 (watchpoint_check): Use it.
362 (update_watchpoint): Use it. Optimize the address and length of a
363 HW watchpoint pointing to a bitfield.
364 * value.h (unpack_value_bitfield): New prototype.
365 * value.c (unpack_value_bitfield): Make extern.
366
367 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
368
369 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
370 x86-dregs.o.
371 * gnu-nat.c (inf_threads): New function.
372 * gnu-nat.h (inf_threads_ftype): New typedef.
373 (inf_threads): New declaration.
374 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
375 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
376 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
377 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
378 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
379 (i386_gnu_dr_get_control): New functions.
380 (reg_addr): New structure.
381 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
382 i386 debugging register hooks.
383 * NEWS: Mention this.
384
385 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
386
387 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
388 vector data transfer instructions.
389 (arm_record_coproc_data_proc): Updated.
390
391 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
392
393 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
394 arm_record_exreg_ld_st_insn.
395 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
396 load/store insns.
397
398 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
399
400 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
401 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
402 processing instructions.
403
404 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
405
406 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
407 for advance SIMD struct ld/st insn.
408 (thumb2_record_decode_insn_handler): Replace stub handler with
409 thumb2_record_asimd_struct_ld_st.
410
411 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
412
413 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
414 for asimd, vfp and coprocessor insns.
415 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
416 and coprocessor insns.
417 (thumb2_record_coproc_insn): New function.
418 (thumb2_record_decode_insn_handler): Update coprocessor insns record
419 handlers.
420 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
421 opcode 110 insns.
422
423 2014-09-13 Doug Evans <xdje42@gmail.com>
424
425 * NEWS: Mention new "queue-signal" command.
426 * infcmd.c (queue_signal_command): New function.
427 (_initialize_infcmd): Add new queue-signal command.
428
429 2014-09-13 Doug Evans <xdje42@gmail.com>
430
431 * linux-nat.c (wait_lwp): Add debugging printf.
432 (linux_nat_wait_1): Ditto.
433
434 2014-09-12 Pedro Alves <palves@redhat.com>
435
436 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
437 (create_and_insert_solib_event_breakpoint): New functions.
438 * breakpoint.h (create_and_insert_solib_event_breakpoint)
439 (remove_solib_event_breakpoints_at_next_stop): New declarations.
440 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
441 (remove_dbx_link_breakpoint): Delete function.
442 (insert_dbx_link_bpt_in_file): Use
443 create_and_insert_solib_event_breakpoint instead of
444 deprecated_insert_raw_breakpoint.
445 (procfs_wait): Don't check whether we hit __dbx_link here.
446 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
447 here.
448 * solib-irix.c (base_breakpoint): Delete global.
449 (disable_break): Delete function.
450 (enable_break): Use create_solib_event_breakpoint
451 instead of deprecated_insert_raw_breakpoint.
452 (irix_solib_handle_event): New function.
453 (irix_solib_create_inferior_hook): Don't run the target or disable
454 the mapping-complete breakpoint here.
455 (_initialize_irix_solib): Install irix_solib_handle_event as
456 so_ops->handle_event hook.
457
458 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
459 Ulrich Weigand  <uweigand@de.ibm.com>
460
461 PR tdep/17379
462 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
463 instead of read_memory_unsigned_integer.
464
465 2014-09-12 Gary Benson <gbenson@redhat.com>
466
467 * nat/linux-waitpid.c: Include common-defs.h.
468 [GDBSERVER]: Add FIXME comment.
469 [!GDBSERVER]: Don't include defs.h or signal.h.
470 (linux_debug) [!GDBSERVER]: Remove empty block.
471
472 2014-09-12 Gary Benson <gbenson@redhat.com>
473
474 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
475 Don't include defs.h or server.h.
476
477 2014-09-12 Gary Benson <gbenson@redhat.com>
478
479 * nat/linux-btrace.c: Include common-defs.h.
480 Don't include defs.h, server.h or gdbthread.h.
481 * nat/linux-btrace.h (struct target_ops): New forward declaration.
482
483 2014-09-12 Gary Benson <gbenson@redhat.com>
484
485 * common/agent.c: Include common-defs.h.
486 Don't include defs.h or server.h.
487 * common/buffer.c: Likewise.
488 * common/common-debug.c: Likewise.
489 * common/common-utils.c: Likewise.
490 * common/errors.c: Likewise.
491 * common/filestuff.c: Likewise.
492 * common/format.c: Likewise.
493 * common/gdb_vecs.c: Likewise.
494 * common/print-utils.c: Likewise.
495 * common/ptid.c: Likewise.
496 * common/rsp-low.c: Likewise.
497 * common/signals.c: Likewise.
498 * common/vec.c: Likewise.
499 * common/xml-utils.c: Likewise.
500 * nat/linux-osdata.c: Likewise.
501 * nat/linux-procfs.c: Likewise.
502 * nat/linux-ptrace.c: Likewise.
503 * nat/mips-linux-watch.c: Likewise.
504 * target/waitstatus.c: Likewise.
505
506 2014-09-12 Tom Tromey <tromey@redhat.com>
507 Gary Benson <gbenson@redhat.com>
508
509 * common/common-regcache.h: New file.
510 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
511 * regcache.h: Include common-regcache.h.
512 (regcache_read_pc): Don't declare.
513 * regcache.c (get_thread_regcache_for_ptid): New function.
514 * nat/linux-btrace.c: Don't include regcache.h.
515 Include common-regcache.h.
516 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
517
518 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
519
520 * regcache.h (struct regset): Declare.
521
522 2014-09-11 Pedro Alves <palves@redhat.com>
523
524 PR gdb/17347
525 * main.c: Include "infrun.h".
526 (catch_command_errors, catch_command_errors_const): Wait for the
527 foreground command to complete.
528 * top.c (maybe_wait_sync_command_done): New function, factored out
529 from ...
530 (maybe_wait_sync_command_done): ... here.
531 * top.h (maybe_wait_sync_command_done): New declaration.
532
533 2014-09-11 Tom Tromey <tromey@redhat.com>
534 Gary Benson <gbenson@redhat.com>
535
536 * common/symbol.h: New file.
537 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
538 * minsyms.c (find_minimal_symbol_address): New function.
539 * common/agent.c: Include common/symbol.h.
540 [!GDBSERVER]: Don't include objfiles.h.
541 (agent_look_up_symbols): Use find_minimal_symbol_address.
542
543 2014-09-11 Gary Benson <gbenson@redhat.com>
544
545 * target/target.h (target_stop_ptid, target_continue_ptid):
546 Declare.
547 * target.c (target_stop_ptid, target_continue_ptid): New
548 functions.
549 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
550 (agent_run_command): Always use target_stop_ptid and
551 target_continue_ptid.
552
553 2014-09-11 Tom Tromey <tromey@redhat.com>
554 Gary Benson <gbenson@redhat.com>
555
556 * target/target.h: New file.
557 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
558 * target.h: Include target/target.h.
559 (target_read_memory, target_write_memory): Don't declare.
560 * target.c (target_read_uint32): New function.
561 * common/agent.c: Include target/target.h.
562 [!GDBSERVER]: Don't include target.h.
563 (helper_thread_id): Type changed to uint32_t.
564 (agent_get_helper_thread_id): Use target_read_uint32.
565 (agent_run_command): Always use target_read_memory and
566 target_write_memory.
567 (agent_capability): Type changed to uint32_t.
568 (agent_capability_check): Use target_read_uint32.
569
570 2014-09-11 Gary Benson <gbenson@redhat.com>
571
572 * common/common-debug.h (show_debug_regs): Declare.
573 * common/common-debug.c (show_debug_regs): Define.
574 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
575 all uses with show_debug_regs. Replace all uses that considered
576 debug_hw_points as a multi-value integer with straight boolean
577 uses.
578 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
579 with show_debug_regs.
580 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
581 all uses with show_debug_regs.
582 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
583 uses with show_debug_regs.
584
585 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
586
587 * findvar.c (address_from_register): Handle targets requiring
588 a special conversion routine even for plain pointer types.
589
590 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
591
592 * rs6000-nat.c (exec_one_dummy_insn): Remove.
593 (store_register): Do not call exec_one_dummy_insn.
594
595 2014-09-10 Joel Brobecker <brobecker@adacore.com>
596
597 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
598 dereference it first. Use value_enclosing_type instead of
599 value_type.
600 (ada_array_length): Likewise.
601
602 2014-09-10 Joel Brobecker <brobecker@adacore.com>
603
604 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
605 Adjust function implementation and documentation accordingly.
606 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
607 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
608 Update call to ada_value_ptr_subscript.
609
610 2014-09-10 Joel Brobecker <brobecker@adacore.com>
611
612 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
613 instead of VAL's type.
614
615 2014-09-10 Joel Brobecker <brobecker@adacore.com>
616
617 * amd64-linux-nat.c: Add <sys/uio.h> #include.
618
619 2014-09-09 Doug Evans <xdje42@gmail.com>
620
621 PR guile/17367
622 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
623 last parameter to pkg-config, not first.
624 * configure.ac: Pass --with-guile provided pkg-config path to
625 GDB_GUILE_PROGRAM_NAMES.
626 * configure: Regenerate.
627
628 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
629
630 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
631 Bertazi".
632
633 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
634
635 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
636 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
637 the list of sections determining GDB_OSABI_IRIX.
638
639 2014-09-09 James Hogan <james.hogan@imgtec.com>
640
641 * MAINTAINERS (Write After Approval): Add "James Hogan".
642
643 2014-09-09 James Hogan <james.hogan@imgtec.com>
644
645 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
646
647 2014-09-09 Joel Brobecker <brobecker@adacore.com>
648
649 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
650
651 2014-09-08 Doug Evans <xdje42@gmail.com>
652
653 PR 17247
654 * guile.c: #include <signal.h>.
655 (_initialize_guile): Block SIGCHLD while initializing Guile.
656
657 Replaces the following, which is reverted.
658
659 2014-07-26 Doug Evans <xdje42@gmail.com>
660
661 PR 17185
662 * configure.ac: Add check for header gc/gc.h.
663 Add check for function setenv.
664 * configure: Regenerate.
665 * config.in: Regenerate.
666 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
667
668 2014-09-08 Doug Evans <xdje42@gmail.com>
669
670 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
671 with named constant. Fix style of pointer comparison.
672 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
673
674 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
675
676 PR gdb/17035
677 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
678 decide whether we display the command on "show user".
679 * cli/cli-script.c (show_user_1): Only verify cmdlines after
680 printing command name.
681 * cli/cli-decode.h (cli_user_command_p): Declare new function.
682 * cli/cli-decode.c (cli_user_command_p): Create helper function
683 to verify whether cmd_list_element is a user-defined command.
684
685 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
686
687 PR python/17355
688 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
689 Fix goto out of TRY_CATCH.
690
691 2014-09-06 Doug Evans <xdje42@gmail.com>
692 Tom Tromey <tromey@redhat.com>
693
694 PR 15276
695 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
696 $_any_caller_matches.
697 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
698 * python/lib/gdb/function/caller_is.py: New file.
699
700 2014-09-06 Doug Evans <xdje42@gmail.com>
701
702 * infcmd.c (program_info): Fix typo.
703
704 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
705
706 PR gdb/17235
707 * stap-probe.c (stap_parse_single_operand): Delete unused variable
708 'number'. New variable 'has_digit'. Rewrite code to deal with
709 subexpressions on SDT probes.
710
711 2014-09-04 Pedro Alves <palves@redhat.com>
712
713 * c-exp.y (parse_number): Skip handling base-switching prefixes if
714 the input is only one character long.
715
716 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
717
718 PR fortran/17237
719 * f-valprint.c (f_val_print): Specify the correct print option to
720 use when printing integer values.
721
722 2014-09-04 Gary Benson <gbenson@redhat.com>
723
724 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
725 Remove code to cope with LWPs wrapped as PIDs.
726 Add assertions to ensure no wrapped LWPs are passed.
727
728 2014-09-04 Pedro Alves <palves@redhat.com>
729
730 * value.c (value_ranges_copy_adjusted): New function, factored out
731 from ...
732 (value_contents_copy_raw): ... here.
733 (unpack_value_bits_as_long_1): Rename back to ...
734 (unpack_bits_as_long): ... this. Remove 'original_value' and
735 'result' parameters. Change return type to LONGEST.
736 (unpack_value_bits_as_long): Delete.
737 (unpack_value_field_as_long_1): Delete.
738 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
739 (unpack_value_bitfield): New function.
740 (value_field_bitfield): Reimplement using unpack_value_bitfield.
741 (value_fetch_lazy): Use unpack_value_bitfield.
742 * value.h (unpack_value_bits_as_long): Delete declaration.
743
744 2014-09-03 Sasha Smundak <asmundak@google.com>
745
746 * python/py-frame.c (frapy_read_register): New function.
747
748 2014-09-03 James Hogan <james.hogan@imgtec.com>
749
750 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
751 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
752
753 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
754
755 PR python/16699
756 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
757 function.
758 (add_cmd): Set "completer_handle_brkchars" to NULL.
759 * cli/cli-decode.h (struct cmd_list_element)
760 <completer_handle_brkchars>: New field.
761 * command.h (completer_ftype_void): New typedef.
762 (set_cmd_completer_handle_brkchars): New prototype.
763 * completer.c (set_gdb_completion_word_break_characters): New
764 function.
765 (complete_line_internal): Call "completer_handle_brkchars"
766 callback from command.
767 * completer.h: Include "command.h".
768 (set_gdb_completion_word_break_characters): New prototype.
769 * python/py-cmd.c (cmdpy_completer_helper): New function.
770 (cmdpy_completer_handle_brkchars): New function.
771 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
772 (cmdpy_init): Set completer_handle_brkchars to
773 cmdpy_completer_handle_brkchars.
774
775 2014-09-03 Gary Benson <gbenson@redhat.com>
776
777 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
778 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
779 Loop conditions changed to equivalent form.
780 (struct x86_debug_reg_state): Updated dr_ref_count comment.
781 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
782 ALL_DEBUG_ADDRESS_REGISTERS.
783
784 2014-09-03 Joel Brobecker <brobecker@adacore.com>
785
786 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
787 description fix.
788
789 2014-09-02 Doug Evans <dje@google.com>
790
791 * typeprint.c (find_global_typedef): Fix comment.
792
793 2014-09-02 Gary Benson <gbenson@redhat.com>
794
795 * i386-nat.h: Renamed as...
796 * x86-nat.h: New file. All type, function and variable name
797 prefixes changed from "i386_" to "x86_". All references updated.
798 * i386-nat.c: Renamed as...
799 * x86-nat.c: New file. All type, function and variable name
800 prefixes changed from "i386_" to "x86_". All references updated.
801 * common/i386-xstate.h: Renamed as...
802 * common/x86-xstate.h: New file. All type, function and variable
803 name prefixes changed from "i386_" to "x86_". All references
804 updated.
805 * nat/i386-cpuid.h: Renamed as...
806 * nat/x86-cpuid.h: New file. All type, function and variable name
807 prefixes changed from "i386_" to "x86_". All references updated.
808 * nat/i386-gcc-cpuid.h: Renamed as...
809 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
810 name prefixes changed from "i386_" to "x86_". All references
811 updated.
812 * nat/i386-dregs.h: Renamed as...
813 * nat/x86-dregs.h: New file. All type, function and variable name
814 prefixes changed from "i386_" to "x86_". All references updated.
815 * nat/i386-dregs.c: Renamed as...
816 * nat/x86-dregs.c: New file. All type, function and variable name
817 prefixes changed from "i386_" to "x86_". All references updated.
818
819 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
820
821 * varobj.c (_initialize_varobj): Move to the end of file.
822
823 2014-08-29 Gary Benson <gbenson@redhat.com>
824
825 * common/common-exceptions.h: New file.
826 * common/common-exceptions.c: Likewise.
827 * Makefile.in (SFILES): Add common/common-exceptions.c.
828 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
829 (COMMON_OBS): Add common-exceptions.o.
830 (common-exceptions.o): New rule.
831 * exceptions.h (common-exceptions.h): Include.
832 (gdb_setjmp.h): Do not include.
833 (return_reason): Moved to common-exceptions.h.
834 (enum return_reason): Likewise.
835 (RETURN_MASK): Likewise.
836 (typedef return_mask): Likewise.
837 (enum errors): Likewise.
838 (struct gdb_exception): Likewise.
839 (exceptions_state_mc_init): Likewise.
840 (exceptions_state_mc_action_iter): Likewise.
841 (exceptions_state_mc_action_iter_1): Likewise.
842 (TRY_CATCH): Likewise.
843 (throw_exception): Likewise.
844 (throw_verror): Likewise.
845 (throw_vquit): Likewise.
846 (throw_error): Likewise.
847 (throw_quit): Likewise.
848 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
849 (enum catcher_action): Likewise.
850 (struct catcher): Likewise.
851 (current_catcher): Likewise.
852 (catcher_list_size): Likewise.
853 (exceptions_state_mc_init): Likewise.
854 (catcher_pop): Likewise.
855 (exceptions_state_mc): Likewise.
856 (exceptions_state_mc_action_iter): Likewise.
857 (exceptions_state_mc_action_iter_1): Likewise.
858 (throw_exception): Likewise.
859 (exception_messages): Likewise.
860 (exception_messages_size): Likewise.
861 (throw_it): Likewise.
862 (throw_verror): Likewise.
863 (throw_vquit): Likewise.
864 (throw_error): Likewise.
865 (throw_quit): Likewise.
866 (prepare_to_throw_exception): New function.
867
868 2014-08-29 Gary Benson <gbenson@redhat.com>
869
870 * common/gdb_setjmp.h: New file.
871 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
872 * configure.ac: Move sigsetjmp check...
873 * common/common.m4: ...here.
874 * configure: Regenerate.
875 * cp-support.c (SIGJMP_BUF): Delete.
876 (SIGSETJMP): Likewise.
877 (SIGLONGJMP): Likewise.
878 * exceptions.h (gdb_setjmp.h): Include.
879 (setjmp.h): Do not include.
880 (EXCEPTIONS_SIGJMP_BUF): Delete.
881 (EXCEPTIONS_SIGSETJMP): Likewise.
882 (EXCEPTIONS_SIGLONGJMP): Likewise.
883 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
884 from gdb_setjmp.h.
885 * exceptions.c: Likewise.
886
887 2014-08-29 Gary Benson <gbenson@redhat.com>
888
889 * cleanups.h: Moved to...
890 * common/cleanups.h: New file.
891 * cleanups.c: Moved to...
892 * common/cleanups.c: New file. Include common-defs.h and
893 cleanups.h. Do not include defs.h.
894 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
895 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
896 (cleanups.o): New rule.
897
898 2014-08-29 Gary Benson <gbenson@redhat.com>
899
900 * common/errors.h (internal_warning): New declaration.
901 (internal_vwarning): Likewise.
902 * common/errors.c (internal_warning): New function.
903 * utils.h (internal_warning): Don't declare.
904 (internal_vwarning): Likewise.
905 * utils.c (internal_warning): Removed.
906
907 2014-08-29 Gary Benson <gbenson@redhat.com>
908
909 * main.c (captured_main): Use warning during startup.
910 Prefix startup warning messages with command name.
911
912 2014-08-29 Gary Benson <gbenson@redhat.com>
913
914 * main.c (captured_main): Handle usage errors with error.
915
916 2014-08-29 Gary Benson <gbenson@redhat.com>
917
918 * go32-nat.c (go32_create_inferior): Replace a fprintf/
919 exit pair with a call to error. Wrap the message with _().
920
921 2014-08-29 Gary Benson <gbenson@redhat.com>
922
923 * main.c (captured_main): Replace a fprintf/exit
924 pair with a call to error. Wrap the message with _().
925
926 2014-08-29 Gary Benson <gbenson@redhat.com>
927
928 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
929 pairs with calls to error. Wrap the message with _().
930
931 2014-08-29 Gary Benson <gbenson@redhat.com>
932
933 * utils.c (vwarning): Protect calls to target_terminal_ours
934 and wrap_here.
935
936 2014-08-29 Gary Benson <gbenson@redhat.com>
937
938 * exceptions.c (print_flush): Protect calls to
939 target_terminal_ours and wrap_here.
940
941 2014-08-29 Gary Benson <gbenson@redhat.com>
942
943 * utils.h (filtered_printing_initialized): New declaration.
944 * utils.c (abort_with_message): New function.
945 (internal_vproblem): Use abort_with_message for first level
946 recursive internal problems, and if gdb_stderr is not set up.
947 Protect calls to target_terminal_ours, begin_line and query.
948
949 2014-08-28 Doug Evans <dje@google.com>
950
951 * symtab.c (in_prologue): Move definition to better spot.
952 (skip_prologue_using_sal): Ditto.
953
954 2014-08-28 Doug Evans <dje@google.com>
955
956 * symtab.c (find_function_start_sal): Move definition to better spot.
957
958 2014-08-28 Yao Qi <yao@codesourcery.com>
959
960 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
961 found_stack_adjust in forward scan. Remove condition check
962 on found_stack_adjust which is always true. Indent the code.
963
964 2014-08-28 Yao Qi <yao@codesourcery.com>
965
966 * dwarf2read.c (dwarf_decode_lines): Update declaration.
967 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
968 (dwarf_decode_lines): Remove argument
969 want_line_info. Remove condition check on want_line_info.
970 Callers update.
971
972 2014-08-27 Doug Evans <dje@google.com>
973
974 * dwarf2read.c (dwarf_record_line): Fix typo.
975
976 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
977
978 * target.h (struct target_ops::to_terminal_save_ours): Remove
979 declaration.
980 (target_terminal_save_ours): Remove macro.
981 * target-delegates.c: Regenerate.
982 * inf-child.c (inf_child_target): Don't set the nonexistent
983 field to_terminal_save_ours.
984 * inferior.h (child_terminal_save_ours): Remove declaration.
985 * terminal.h (gdb_save_tty_state): New declaration.
986 * inflow.c (child_terminal_save_ours): Rename to ...
987 (gdb_save_tty_state): ... this.
988 * tui/tui.c: Include terminal.h.
989 (tui_enable): Use gdb_save_tty_state instead of
990 target_terminal_save_ours.
991 (tui_disable): Likewise.
992
993 2014-08-25 Doug Evans <dje@google.com>
994
995 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
996 Pass NULL instead of 0 for context pointer.
997
998 2014-08-25 Yao Qi <yao@codesourcery.com>
999
1000 * dwarf2read.c: Fix grammatical error.
1001
1002 2014-08-24 Yao Qi <yao@codesourcery.com>
1003
1004 * dwarf2read.c (scan_partial_symbols): Update comments.
1005 Rename argument 'need_pc' with 'set_addrmap'.
1006 (add_partial_namespace): Rename argument 'need_pc' with
1007 'set_addrmap'.
1008 (add_partial_module): Likewise.
1009 (add_partial_subprogram): Likewise. Update comments.
1010 (dwarf2_name): Fix typo.
1011
1012 2014-08-22 Doug Evans <dje@google.com>
1013
1014 PR 17276
1015 * dwarf2read.c (dwarf_record_line_p): New function.
1016 (dwarf_decode_lines_1): Ignore subsequent line number entries
1017 for the same line if any entry had a non-zero discriminator.
1018
1019 2014-08-22 Doug Evans <dje@google.com>
1020
1021 * buildsym.h (record_line_ftype): New typedef.
1022 (record_line): Use it.
1023 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1024 (dwarf_decode_lines_1): Call them.
1025
1026 2014-08-22 Yao Qi <yao@codesourcery.com>
1027
1028 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1029 (ctf_end): Remove code.
1030
1031 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1032
1033 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1034 (linux_make_corefile_notes): call update_thread_list, protected against
1035 exceptions.
1036
1037 2014-08-21 Pedro Alves <palves@redhat.com>
1038
1039 * infcmd.c (attach_command): Remove comment.
1040
1041 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1042
1043 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1044 unsigned LONGEST to ULONGEST.
1045
1046 2014-08-20 Pedro Alves <palves@redhat.com>
1047
1048 * Makefile.in (check-read1): New rule.
1049
1050 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1051
1052 * value.c (value_from_contents_and_address): Strip resolved_type's
1053 typedef layers before checking its TYPE_DATA_LOCATION.
1054
1055 2014-08-20 Pedro Alves <palves@redhat.com>
1056
1057 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1058
1059 2014-08-20 Yao Qi <yao@codesourcery.com>
1060
1061 * amd64-tdep.c (amd64_classify): Add a blank line after the
1062 example. Move "*/" to a new line.
1063 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1064 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1065 * dwarf2read.c (psymtab_include_file_name): Likewise.
1066
1067 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1068 Pedro Alves <palves@redhat.com>
1069
1070 PR symtab/14604
1071 PR symtab/14605
1072 * ada-lang.c (coerce_unspec_val_to_type): Use
1073 value_contents_copy_raw.
1074 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1075 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1076 * cp-valprint.c (cp_print_value_fields): Let the common printing
1077 code handle optimized out values.
1078 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1079 * d-valprint.c (dynamic_array_type): Use
1080 value_bits_any_optimized_out.
1081 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1082 check_any_valid fields.
1083 (check_pieced_value_bits): Delete and inline ...
1084 (check_pieced_synthetic_pointer): ... here.
1085 (check_pieced_value_validity): Delete.
1086 (check_pieced_value_invalid): Delete.
1087 (pieced_value_funcs): Remove check_validity and check_any_valid
1088 fields.
1089 (read_pieced_value): Use mark_value_bits_optimized_out.
1090 (write_pieced_value): Switch to use
1091 mark_value_bytes_optimized_out.
1092 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1093 of assuming the whole value is optimized out.
1094 * findvar.c (read_frame_register_value): Remove special handling
1095 of optimized out registers.
1096 (value_from_register): Use mark_value_bytes_optimized_out.
1097 * frame-unwind.c (frame_unwind_got_optimized): Use
1098 mark_value_bytes_optimized_out.
1099 * jv-valprint.c (java_value_print): Adjust.
1100 (java_print_value_fields): Let the common printing code handle
1101 optimized out values.
1102 * mips-tdep.c (mips_print_register): Remove special handling of
1103 optimized out registers.
1104 * opencl-lang.c (lval_func_check_validity): Delete.
1105 (lval_func_check_any_valid): Delete.
1106 (opencl_value_funcs): Remove check_validity and check_any_valid
1107 fields.
1108 * p-valprint.c (pascal_object_print_value_fields): Let the common
1109 printing code handle optimized out values.
1110 * stack.c (read_frame_arg): Remove special handling of optimized
1111 out values. Fetch both VAL and ENTRYVAL before comparing
1112 contents. Adjust to value_available_contents_eq rename.
1113 * valprint.c (valprint_check_validity)
1114 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1115 (val_print_array_elements): Adjust.
1116 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1117 (value_bits_any_optimized_out): New function.
1118 (value_entirely_covered_by_range_vector): New function, factored
1119 out from value_entirely_unavailable.
1120 (value_entirely_unavailable): Reimplement.
1121 (value_entirely_optimized_out): New function.
1122 (insert_into_bit_range_vector): New function, factored out from
1123 mark_value_bits_unavailable.
1124 (mark_value_bits_unavailable): Reimplement.
1125 (struct ranges_and_idx): New struct.
1126 (find_first_range_overlap_and_match): New function, factored out
1127 from value_available_contents_bits_eq.
1128 (value_available_contents_bits_eq): Rename to ...
1129 (value_contents_bits_eq): ... this. Check both unavailable
1130 contents and optimized out contents.
1131 (value_available_contents_eq): Rename to ...
1132 (value_contents_eq): ... this.
1133 (allocate_value_lazy): Remove reference to the old optimized_out
1134 boolean.
1135 (allocate_optimized_out_value): Use
1136 mark_value_bytes_optimized_out.
1137 (require_not_optimized_out): Adjust to check whether the
1138 optimized_out vec is empty.
1139 (ranges_copy_adjusted): New function, factored out from
1140 value_contents_copy_raw.
1141 (value_contents_copy_raw): Also copy the optimized out ranges.
1142 Assert the destination ranges aren't optimized out.
1143 (value_contents_copy): Update comment, remove call to
1144 require_not_optimized_out.
1145 (value_contents_equal): Adjust to check whether the optimized_out
1146 vec is empty.
1147 (set_value_optimized_out, value_optimized_out_const): Delete.
1148 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1149 New functions.
1150 (value_entirely_optimized_out, value_bits_valid): Delete.
1151 (value_copy): Take a VEC copy of the 'optimized_out' field.
1152 (value_primitive_field): Remove special handling of optimized out.
1153 (value_fetch_lazy): Assert that lazy values have no unavailable
1154 regions. Use value_bits_any_optimized_out. Remove some special
1155 handling for optimized out values.
1156 * value.h: Add intro comment about <optimized out> and
1157 <unavailable>.
1158 (struct lval_funcs): Remove check_validity and check_any_valid
1159 fields.
1160 (set_value_optimized_out, value_optimized_out_const): Remove.
1161 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1162 New declarations.
1163 (value_bits_any_optimized_out): New declaration.
1164 (value_bits_valid): Delete declaration.
1165 (value_available_contents_eq): Rename to ...
1166 (value_contents_eq): ... this, and extend comments.
1167
1168 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1169
1170 Fix -fsanitize=address on unreadable inferior strings.
1171 * valprint.c (val_print_string): Fix access before BUFFER.
1172
1173 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1174
1175 * target.c (target_struct_size): Remove.
1176 (target_struct_allocsize): Remove.
1177 (DEFAULT_ALLOCSIZE): Remove.
1178 (target_ops_p): New typedef.
1179 (DEF_VEC_P (target_ops_p)): New vector type.
1180 (target_structs): Change type to VEC (target_ops_p).
1181 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1182 (find_default_run_target): Rewrite for loop following changes to
1183 target_structs.
1184
1185 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1186
1187 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1188 Adjust code accordingly. Adjust function description comment.
1189
1190 2014-08-19 Yao Qi <yao@codesourcery.com>
1191
1192 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1193 types.
1194
1195 2014-08-19 Alan Modra <amodra@gmail.com>
1196
1197 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1198 * config.in: Regenerate.
1199 * configure: Regenerate.
1200
1201 2014-08-19 Tom Tromey <tromey@redhat.com>
1202 Gary Benson <gbenson@redhat.com>
1203
1204 * common/common-debug.h: New file.
1205 * common/common-debug.c: Likewise.
1206 * debug.c: Likewise.
1207 * Makefile.in (SFILES): Add common/common-debug.c.
1208 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1209 (COMMON_OBS): Add common-debug.o and debug.o.
1210 (common-debug.o): New rule.
1211 * common/common-defs.h: Include common-debug.h.
1212 * common/agent.c (debug_agent_printf): New function.
1213 (DEBUG_AGENT): Redefine.
1214 * nat/i386-dregs.c (debug_printf): Undefine.
1215
1216 2014-08-19 Gary Benson <gbenson@redhat.com>
1217
1218 * common/common-defs.h: Include print-utils.h.
1219 * utils.h: Do not include print-utils.h.
1220
1221 2014-08-19 Tom Tromey <tromey@redhat.com>
1222 Gary Benson <gbenson@redhat.com>
1223
1224 * common/common-types.h: New file.
1225 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1226 * common/common-defs.h: Include common-types.h.
1227 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1228 (ULONGEST): Remove.
1229
1230 2014-08-19 Tom Tromey <tromey@redhat.com>
1231 Gary Benson <gbenson@redhat.com>
1232
1233 * common/errors.h: New file.
1234 * common/errors.c: Likewise.
1235 * Makefile.in (SFILES): Add common/errors.c.
1236 (HFILES_NO_SRCDIR): Add common/errors.h.
1237 (COMMON_OBS): Add errors.o.
1238 (errors.o): New rule.
1239 * common/common-defs.h: Include errors.h.
1240 * utils.h (perror_with_name, error, verror, warning, vwarning):
1241 Don't declare.
1242 * common/common-utils.h: (malloc_failure, internal_error):
1243 Likewise.
1244
1245 2014-08-19 Gary Benson <gbenson@redhat.com>
1246
1247 * utils.c (internal_vproblem): Always print the message.
1248
1249 2014-08-18 Doug Evans <dje@google.com>
1250
1251 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1252
1253 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1254
1255 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1256 Return 0 if TYPE is dynamic.
1257 (print_range): Add handling of dynamic ranges.
1258
1259 2014-08-18 Keven Boell <keven.boell@intel.com>
1260 Joel Brobecker <brobecker@adacore.com>
1261
1262 * gdbtypes.h (struct main_type): Add field "data_location".
1263 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1264 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1265 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1266 a dynamic data location.
1267 (resolve_dynamic_type): Add DW_AT_data_location handling.
1268 (copy_recursive, copy_type): Copy the data_location information
1269 when present.
1270 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1271 * value.c (value_from_contents_and_address): Add
1272 DW_AT_data_location handling.
1273
1274 2014-08-18 Keven Boell <keven.boell@intel.com>
1275 Joel Brobecker <brobecker@adacore.com>
1276
1277 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1278 field "get_object_address".
1279 * dwarf2expr.c (execute_stack_op): Add handling for
1280 DW_OP_push_object_address.
1281 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1282 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1283 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1284 (dwarf_expr_get_obj_addr): New function.
1285 (dwarf_expr_ctx_funcs): Add get_object_address field.
1286 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1287 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1288 (dwarf2_evaluate_property): Add parameter "address". Use it.
1289 (needs_get_obj_addr): New function.
1290 (needs_frame_ctx_funcs): Add get_object_address field.
1291 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1292 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1293 (resolve_dynamic_array): Likewise.
1294
1295 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1296
1297 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1298 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1299 fixed value for records and unions for which some GNAT encodings
1300 are present.
1301
1302 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1303
1304 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1305 rewrite to avoid "else if" and "else" constructs. Should be
1306 a no-op in practice.
1307
1308 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1309
1310 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1311 of lexical block.
1312
1313 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1314
1315 PR c++/17132
1316 * eval.c: Update all calls to find_overload_match.
1317 * valarith.c: Likewise.
1318 (value_user_defined_cpp_op, value_user_defined_op): New
1319 argument NOSIDE. Update all callers.
1320 * valops.c (find_overload_match): New argument NOSIDE.
1321 * value.h (find_overload_match): Update signature.
1322
1323 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1324
1325 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1326 'items' methods instead of 'iteritems' method on dictionaries.
1327
1328 2014-08-15 Doug Evans <dje@google.com>
1329
1330 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1331 closer to use.
1332
1333 2014-08-15 Doug Evans <dje@google.com>
1334
1335 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1336
1337 2014-08-15 Doug Evans <dje@google.com>
1338
1339 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1340
1341 2014-08-15 Doug Evans <dje@google.com>
1342
1343 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1344 unused.
1345
1346 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1347
1348 * dcache.h: Include target.h, to avoid compile time warnings.
1349
1350 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1351
1352 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1353 frame_info" partial declaration.
1354 * gdbarch.h: Regenerate.
1355
1356 2014-08-15 Yao Qi <yao@codesourcery.com>
1357
1358 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1359 Add parameter 'decode_for_pst_p'. Callers update.
1360
1361 2014-08-13 Yao Qi <yao@codesourcery.com>
1362
1363 PR build/17104
1364 * configure.ac: Use local variable 'pos'.
1365 * configure: Regenerated.
1366
1367 2014-08-11 Doug Evans <dje@google.com>
1368
1369 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1370 message, it is redundant with "Reading symbols from ..." message.
1371
1372 2014-08-10 Doug Evans <xdje42@gmail.com>
1373
1374 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1375
1376 2014-08-09 Yao Qi <yao@codesourcery.com>
1377
1378 PR remote/9053
1379 * remote.c (remote_xfer_partial): Remove dead code.
1380
1381 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1382
1383 * ia64-linux-tdep.c: Include "regset.h".
1384 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1385 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1386 (ia64_linux_supply_fpregset): New function.
1387 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1388 (ia64_linux_regset_from_core_section): New function.
1389 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1390 method.
1391
1392 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1393
1394 * m68klinux-tdep.c: Include "regset.h".
1395 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1396 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1397 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1398 (m68k_linux_regset_from_core_section): New function.
1399 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1400 method.
1401
1402 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1403
1404 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1405 function. Move logic to...
1406 (tilegx_linux_regmap): ... this new register map.
1407 (tilegx_linux_regset): Refer to register map, replace supply
1408 method by regcache_supply_regset, and add collect method.
1409 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1410 TILEGX_FIRST_EASY_REGNUM.
1411
1412 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1413
1414 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1415 that calls regcache_supply_regset and handles the EPC register
1416 separately. Move main logic to...
1417 (score7_linux_gregmap): ... this new register map.
1418 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1419 (score7_linux_gregset): Refer to register map. Add collect method.
1420 (score7_linux_regset_from_core_section): Replace
1421 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1422 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1423 (struct regset): Delete unused forward declaraction.
1424 (struct pt_regs): Delete structure definition.
1425 (elf_gregset_t): Delete typedef.
1426
1427 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1428
1429 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1430 (nios2_core_regset): Add collect method.
1431
1432 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1433
1434 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1435 platform-independent and don't write to read-only input buffer.
1436 (m32r_linux_collect_gregset): New function.
1437 (m32r_linux_gregset): Add collect method.
1438
1439 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1440
1441 * hppa-linux-tdep.c (greg_map): Rename to...
1442 (hppa_linux_gregmap): ... this. Also convert to
1443 regcache_map_entry format.
1444 (hppa_linux_supply_regset): Delete function.
1445 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1446 (hppa_linux_fpregmap): ... this new register map.
1447 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1448 register map, replace supply method by regcache_supply_regset, and
1449 add collect method regcache_collect_regset.
1450
1451 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1452
1453 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1454 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1455 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1456 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1457 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1458 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1459 (frv_linux_supply_gregset): Replace main logic by call to
1460 regcache_supply_regset, but keep clearing gr32-gr63.
1461 (frv_linux_supply_fpregset): Delete function.
1462 (frv_linux_gregset): Refer to appropriate register map and add
1463 regcache_collect_regset as the collect method.
1464 (frv_linux_fpregset): Likewise. Also exchange the supply method
1465 by regcache_supply_regset.
1466
1467 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1468
1469 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1470 by call to alpha_supply_int_regs.
1471 (alpha_linux_collect_gregset): New function.
1472 (alpha_linux_supply_fpregset): Replace logic by call to
1473 alpha_supply_fp_regs.
1474 (alpha_linux_collect_fpregset): New function.
1475 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1476
1477 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1478
1479 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1480 by call to regcache_collect_regset.
1481 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1482 instead of aarch64_linux_supply_gregset/_fpregset.
1483 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1484 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1485 header file instead.
1486 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1487 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1488 functions. Move logic to ...
1489 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1490 register maps.
1491 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1492 refer to new register maps, replace *_regset_from_core by
1493 regcache_supply_regset, and also use regcache_collect_regset.
1494 * aarch64-linux-tdep.h: Include "regset.h".
1495 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1496 Delete prototypes.
1497 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1498 macros, moved from C source file.
1499 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1500 variable declarations.
1501
1502 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1503
1504 * s390-linux-nat.c: Include "regset.h".
1505 (regmap_gregset): Delete macro.
1506 (s390_64_regmap_gregset): New register map for
1507 regcache_supply/_collect_regset.
1508 (s390_64_gregset): New regset.
1509 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1510 (regmap_fpregset): Delete macro.
1511 (s390_native_supply, s390_native_collect): Delete functions.
1512 (supply_gregset, fill_gregset): Replace s390-specific regmap
1513 handling by a call to regcache_supply/_collect_regset.
1514 (supply_fpregset, fill_fpregset): Call regcache_supply/
1515 _collect_regset instead of s390_native_supply/_collect.
1516 (fetch_regset, store_regset): Likewise. Also change the last
1517 parameter to a regset instead of a regmap.
1518 (s390_linux_fetch_inferior_registers)
1519 (390_linux_store_inferior_registers): Adjust last parameter in
1520 calls to fetch_regset and store_regset.
1521 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1522 (s390_gregmap): ... this. Also make static const and convert to
1523 regcache_map_entry format.
1524 (s390x_regmap_gregset): Delete.
1525 (s390_regmap_fpregset): Rename to...
1526 (s390_fpregmap): ... this. Make static const and convert to
1527 regcache_map_entry format.
1528 (s390_regmap_upper, s390_regmap_last_break)
1529 (s390x_regmap_last_break, s390_regmap_system_call)
1530 (s390_regmap_tdb): Likewise.
1531 (s390_supply_regset, s390_collect_regset): Remove functions.
1532 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1533 s390_supply_regset.
1534 (s390_gregset, s390_fpregset, s390_upper_regset)
1535 (s390_last_break_regset, s390x_last_break_regset)
1536 (s390_system_call_regset, s390_tdb_regset): Make global and
1537 replace s390_supply/_collect_regset by regcache_supply/
1538 _collect_regset.
1539 (s390x_gregset): Delete.
1540 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1541 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1542 (s390_regmap_fpregset, s390_regmap_last_break)
1543 (s390x_regmap_last_break, s390_regmap_system_call)
1544 (s390_regmap_tdb): Delete global variable declarations.
1545 (s390_gregset, s390_fpregset, s390_last_break_regset)
1546 (s390x_last_break_regset, s390_system_call_regset)
1547 (s390_tdb_regset): New global variable declarations.
1548
1549 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1550
1551 * regcache.c: Include "regset.h".
1552 (regcache_transfer_regset): New local function.
1553 (regcache_supply_regset, regcache_collect_regset): New functions.
1554 * regcache.h (struct regcache_map_entry): New structure.
1555 (REGCACHE_MAP_SKIP): New enum value.
1556 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1557
1558 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1559
1560 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1561 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1562 (ppc_linux_collect_gregset ): Likewise.
1563 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1564 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1565 (ppc_collect_vrregset): Likewise.
1566 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1567 Likewise.
1568
1569 2014-08-07 Yao Qi <yao@codesourcery.com>
1570
1571 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1572 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1573 * remote.c (remote_read_bytes): Likewise.
1574
1575 2014-08-07 Yao Qi <yao@codesourcery.com>
1576
1577 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1578
1579 2014-08-07 Yao Qi <yao@codesourcery.com>
1580
1581 PR remote/17230
1582 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1583 TARGET_XFER_OK instead of 0.
1584
1585 2014-08-07 Gary Benson <gbenson@redhat.com>
1586
1587 * common/common-defs.h: Include errno.h.
1588 * defs.h: Do not include errno.h.
1589 * ada-typeprint.c: Likewise.
1590 * c-typeprint.c: Likewise.
1591 * core-regset.c: Likewise.
1592 * corefile.c: Likewise.
1593 * corelow.c: Likewise.
1594 * event-loop.c: Likewise.
1595 * f-typeprint.c: Likewise.
1596 * gnu-nat.c: Likewise.
1597 * go32-nat.c: Likewise.
1598 * i386gnu-nat.c: Likewise.
1599 * m2-typeprint.c: Likewise.
1600 * nat/linux-btrace.c: Likewise.
1601 * p-typeprint.c: Likewise.
1602 * procfs.c: Likewise.
1603 * remote-sim.c: Likewise.
1604 * rs6000-nat.c: Likewise.
1605 * target.c: Likewise.
1606 * typeprint.c: Likewise.
1607 * ui-file.c: Likewise.
1608 * valops.c: Likewise.
1609 * valprint.c: Likewise.
1610
1611 2014-08-07 Gary Benson <gbenson@redhat.com>
1612
1613 * common/common-defs.h: Include string.h.
1614 * aarch64-tdep.c: Do not include string.h.
1615 * ada-exp.y: Likewise.
1616 * ada-lang.c: Likewise.
1617 * ada-lex.l: Likewise.
1618 * ada-typeprint.c: Likewise.
1619 * ada-valprint.c: Likewise.
1620 * aix-thread.c: Likewise.
1621 * alpha-linux-tdep.c: Likewise.
1622 * alpha-mdebug-tdep.c: Likewise.
1623 * alpha-nat.c: Likewise.
1624 * alpha-osf1-tdep.c: Likewise.
1625 * alpha-tdep.c: Likewise.
1626 * alphanbsd-tdep.c: Likewise.
1627 * amd64-dicos-tdep.c: Likewise.
1628 * amd64-linux-tdep.c: Likewise.
1629 * amd64-nat.c: Likewise.
1630 * amd64-sol2-tdep.c: Likewise.
1631 * amd64fbsd-tdep.c: Likewise.
1632 * amd64obsd-tdep.c: Likewise.
1633 * arch-utils.c: Likewise.
1634 * arm-linux-nat.c: Likewise.
1635 * arm-linux-tdep.c: Likewise.
1636 * arm-tdep.c: Likewise.
1637 * arm-wince-tdep.c: Likewise.
1638 * armbsd-tdep.c: Likewise.
1639 * armnbsd-nat.c: Likewise.
1640 * armnbsd-tdep.c: Likewise.
1641 * armobsd-tdep.c: Likewise.
1642 * avr-tdep.c: Likewise.
1643 * ax-gdb.c: Likewise.
1644 * ax-general.c: Likewise.
1645 * bcache.c: Likewise.
1646 * bfin-tdep.c: Likewise.
1647 * breakpoint.c: Likewise.
1648 * build-id.c: Likewise.
1649 * buildsym.c: Likewise.
1650 * c-exp.y: Likewise.
1651 * c-lang.c: Likewise.
1652 * c-typeprint.c: Likewise.
1653 * c-valprint.c: Likewise.
1654 * charset.c: Likewise.
1655 * cli-out.c: Likewise.
1656 * cli/cli-cmds.c: Likewise.
1657 * cli/cli-decode.c: Likewise.
1658 * cli/cli-dump.c: Likewise.
1659 * cli/cli-interp.c: Likewise.
1660 * cli/cli-logging.c: Likewise.
1661 * cli/cli-script.c: Likewise.
1662 * cli/cli-setshow.c: Likewise.
1663 * cli/cli-utils.c: Likewise.
1664 * coffread.c: Likewise.
1665 * common/agent.c: Likewise.
1666 * common/buffer.c: Likewise.
1667 * common/buffer.h: Likewise.
1668 * common/common-utils.c: Likewise.
1669 * common/filestuff.c: Likewise.
1670 * common/filestuff.c: Likewise.
1671 * common/format.c: Likewise.
1672 * common/print-utils.c: Likewise.
1673 * common/rsp-low.c: Likewise.
1674 * common/signals.c: Likewise.
1675 * common/vec.h: Likewise.
1676 * common/xml-utils.c: Likewise.
1677 * core-regset.c: Likewise.
1678 * corefile.c: Likewise.
1679 * corelow.c: Likewise.
1680 * cp-abi.c: Likewise.
1681 * cp-name-parser.y: Likewise.
1682 * cp-support.c: Likewise.
1683 * cp-valprint.c: Likewise.
1684 * cris-tdep.c: Likewise.
1685 * d-exp.y: Likewise.
1686 * darwin-nat.c: Likewise.
1687 * dbxread.c: Likewise.
1688 * dcache.c: Likewise.
1689 * demangle.c: Likewise.
1690 * dicos-tdep.c: Likewise.
1691 * disasm.c: Likewise.
1692 * doublest.c: Likewise.
1693 * dsrec.c: Likewise.
1694 * dummy-frame.c: Likewise.
1695 * dwarf2-frame.c: Likewise.
1696 * dwarf2loc.c: Likewise.
1697 * dwarf2read.c: Likewise.
1698 * elfread.c: Likewise.
1699 * environ.c: Likewise.
1700 * eval.c: Likewise.
1701 * event-loop.c: Likewise.
1702 * exceptions.c: Likewise.
1703 * exec.c: Likewise.
1704 * expprint.c: Likewise.
1705 * f-exp.y: Likewise.
1706 * f-lang.c: Likewise.
1707 * f-typeprint.c: Likewise.
1708 * f-valprint.c: Likewise.
1709 * fbsd-nat.c: Likewise.
1710 * findcmd.c: Likewise.
1711 * findvar.c: Likewise.
1712 * fork-child.c: Likewise.
1713 * frame.c: Likewise.
1714 * frv-linux-tdep.c: Likewise.
1715 * frv-tdep.c: Likewise.
1716 * gdb.c: Likewise.
1717 * gdb_bfd.c: Likewise.
1718 * gdbarch.c: Likewise.
1719 * gdbarch.sh: Likewise.
1720 * gdbtypes.c: Likewise.
1721 * gnu-nat.c: Likewise.
1722 * gnu-v2-abi.c: Likewise.
1723 * gnu-v3-abi.c: Likewise.
1724 * go-exp.y: Likewise.
1725 * go-lang.c: Likewise.
1726 * go32-nat.c: Likewise.
1727 * guile/guile.c: Likewise.
1728 * guile/scm-auto-load.c: Likewise.
1729 * hppa-hpux-tdep.c: Likewise.
1730 * hppa-linux-nat.c: Likewise.
1731 * hppanbsd-tdep.c: Likewise.
1732 * hppaobsd-tdep.c: Likewise.
1733 * i386-cygwin-tdep.c: Likewise.
1734 * i386-dicos-tdep.c: Likewise.
1735 * i386-linux-tdep.c: Likewise.
1736 * i386-nto-tdep.c: Likewise.
1737 * i386-sol2-tdep.c: Likewise.
1738 * i386-tdep.c: Likewise.
1739 * i386bsd-tdep.c: Likewise.
1740 * i386gnu-nat.c: Likewise.
1741 * i386nbsd-tdep.c: Likewise.
1742 * i386obsd-tdep.c: Likewise.
1743 * i387-tdep.c: Likewise.
1744 * ia64-libunwind-tdep.c: Likewise.
1745 * ia64-linux-nat.c: Likewise.
1746 * inf-child.c: Likewise.
1747 * inf-ptrace.c: Likewise.
1748 * inf-ttrace.c: Likewise.
1749 * infcall.c: Likewise.
1750 * infcmd.c: Likewise.
1751 * inflow.c: Likewise.
1752 * infrun.c: Likewise.
1753 * interps.c: Likewise.
1754 * iq2000-tdep.c: Likewise.
1755 * irix5-nat.c: Likewise.
1756 * jv-exp.y: Likewise.
1757 * jv-lang.c: Likewise.
1758 * jv-typeprint.c: Likewise.
1759 * jv-valprint.c: Likewise.
1760 * language.c: Likewise.
1761 * linux-fork.c: Likewise.
1762 * linux-nat.c: Likewise.
1763 * lm32-tdep.c: Likewise.
1764 * m2-exp.y: Likewise.
1765 * m2-typeprint.c: Likewise.
1766 * m32c-tdep.c: Likewise.
1767 * m32r-linux-nat.c: Likewise.
1768 * m32r-linux-tdep.c: Likewise.
1769 * m32r-rom.c: Likewise.
1770 * m32r-tdep.c: Likewise.
1771 * m68hc11-tdep.c: Likewise.
1772 * m68k-tdep.c: Likewise.
1773 * m68kbsd-tdep.c: Likewise.
1774 * m68klinux-nat.c: Likewise.
1775 * m68klinux-tdep.c: Likewise.
1776 * m88k-tdep.c: Likewise.
1777 * machoread.c: Likewise.
1778 * macrocmd.c: Likewise.
1779 * main.c: Likewise.
1780 * mdebugread.c: Likewise.
1781 * mem-break.c: Likewise.
1782 * memattr.c: Likewise.
1783 * memory-map.c: Likewise.
1784 * mep-tdep.c: Likewise.
1785 * mi/mi-cmd-break.c: Likewise.
1786 * mi/mi-cmd-disas.c: Likewise.
1787 * mi/mi-cmd-env.c: Likewise.
1788 * mi/mi-cmd-stack.c: Likewise.
1789 * mi/mi-cmd-var.c: Likewise.
1790 * mi/mi-cmds.c: Likewise.
1791 * mi/mi-console.c: Likewise.
1792 * mi/mi-getopt.c: Likewise.
1793 * mi/mi-interp.c: Likewise.
1794 * mi/mi-main.c: Likewise.
1795 * mi/mi-parse.c: Likewise.
1796 * microblaze-rom.c: Likewise.
1797 * microblaze-tdep.c: Likewise.
1798 * mingw-hdep.c: Likewise.
1799 * minidebug.c: Likewise.
1800 * minsyms.c: Likewise.
1801 * mips-irix-tdep.c: Likewise.
1802 * mips-linux-tdep.c: Likewise.
1803 * mips-tdep.c: Likewise.
1804 * mips64obsd-tdep.c: Likewise.
1805 * mipsnbsd-tdep.c: Likewise.
1806 * mipsread.c: Likewise.
1807 * mn10300-linux-tdep.c: Likewise.
1808 * mn10300-tdep.c: Likewise.
1809 * monitor.c: Likewise.
1810 * moxie-tdep.c: Likewise.
1811 * mt-tdep.c: Likewise.
1812 * nat/linux-btrace.c: Likewise.
1813 * nat/linux-osdata.c: Likewise.
1814 * nat/linux-procfs.c: Likewise.
1815 * nat/linux-ptrace.c: Likewise.
1816 * nat/linux-waitpid.c: Likewise.
1817 * nbsd-tdep.c: Likewise.
1818 * nios2-linux-tdep.c: Likewise.
1819 * nto-procfs.c: Likewise.
1820 * nto-tdep.c: Likewise.
1821 * objc-lang.c: Likewise.
1822 * objfiles.c: Likewise.
1823 * opencl-lang.c: Likewise.
1824 * osabi.c: Likewise.
1825 * osdata.c: Likewise.
1826 * p-exp.y: Likewise.
1827 * p-lang.c: Likewise.
1828 * p-typeprint.c: Likewise.
1829 * parse.c: Likewise.
1830 * posix-hdep.c: Likewise.
1831 * ppc-linux-nat.c: Likewise.
1832 * ppc-sysv-tdep.c: Likewise.
1833 * ppcfbsd-tdep.c: Likewise.
1834 * ppcnbsd-tdep.c: Likewise.
1835 * ppcobsd-tdep.c: Likewise.
1836 * printcmd.c: Likewise.
1837 * procfs.c: Likewise.
1838 * prologue-value.c: Likewise.
1839 * python/py-auto-load.c: Likewise.
1840 * python/py-gdb-readline.c: Likewise.
1841 * ravenscar-thread.c: Likewise.
1842 * regcache.c: Likewise.
1843 * registry.c: Likewise.
1844 * remote-fileio.c: Likewise.
1845 * remote-m32r-sdi.c: Likewise.
1846 * remote-mips.c: Likewise.
1847 * remote-notif.c: Likewise.
1848 * remote-sim.c: Likewise.
1849 * remote.c: Likewise.
1850 * reverse.c: Likewise.
1851 * rs6000-aix-tdep.c: Likewise.
1852 * ser-base.c: Likewise.
1853 * ser-go32.c: Likewise.
1854 * ser-mingw.c: Likewise.
1855 * ser-pipe.c: Likewise.
1856 * ser-tcp.c: Likewise.
1857 * ser-unix.c: Likewise.
1858 * serial.c: Likewise.
1859 * sh-tdep.c: Likewise.
1860 * sh64-tdep.c: Likewise.
1861 * shnbsd-tdep.c: Likewise.
1862 * skip.c: Likewise.
1863 * sol-thread.c: Likewise.
1864 * solib-dsbt.c: Likewise.
1865 * solib-frv.c: Likewise.
1866 * solib-osf.c: Likewise.
1867 * solib-som.c: Likewise.
1868 * solib-spu.c: Likewise.
1869 * solib-target.c: Likewise.
1870 * solib.c: Likewise.
1871 * somread.c: Likewise.
1872 * source.c: Likewise.
1873 * sparc-nat.c: Likewise.
1874 * sparc-sol2-tdep.c: Likewise.
1875 * sparc-tdep.c: Likewise.
1876 * sparc64-tdep.c: Likewise.
1877 * sparc64fbsd-tdep.c: Likewise.
1878 * sparc64nbsd-tdep.c: Likewise.
1879 * sparcnbsd-tdep.c: Likewise.
1880 * spu-linux-nat.c: Likewise.
1881 * spu-multiarch.c: Likewise.
1882 * spu-tdep.c: Likewise.
1883 * stabsread.c: Likewise.
1884 * stack.c: Likewise.
1885 * std-regs.c: Likewise.
1886 * symfile.c: Likewise.
1887 * symmisc.c: Likewise.
1888 * symtab.c: Likewise.
1889 * target.c: Likewise.
1890 * thread.c: Likewise.
1891 * tilegx-linux-nat.c: Likewise.
1892 * tilegx-tdep.c: Likewise.
1893 * top.c: Likewise.
1894 * tracepoint.c: Likewise.
1895 * tui/tui-command.c: Likewise.
1896 * tui/tui-data.c: Likewise.
1897 * tui/tui-disasm.c: Likewise.
1898 * tui/tui-file.c: Likewise.
1899 * tui/tui-layout.c: Likewise.
1900 * tui/tui-out.c: Likewise.
1901 * tui/tui-regs.c: Likewise.
1902 * tui/tui-source.c: Likewise.
1903 * tui/tui-stack.c: Likewise.
1904 * tui/tui-win.c: Likewise.
1905 * tui/tui-windata.c: Likewise.
1906 * tui/tui-winsource.c: Likewise.
1907 * typeprint.c: Likewise.
1908 * ui-file.c: Likewise.
1909 * ui-out.c: Likewise.
1910 * user-regs.c: Likewise.
1911 * utils.c: Likewise.
1912 * v850-tdep.c: Likewise.
1913 * valarith.c: Likewise.
1914 * valops.c: Likewise.
1915 * valprint.c: Likewise.
1916 * value.c: Likewise.
1917 * varobj.c: Likewise.
1918 * vax-tdep.c: Likewise.
1919 * vaxnbsd-tdep.c: Likewise.
1920 * vaxobsd-tdep.c: Likewise.
1921 * windows-nat.c: Likewise.
1922 * xcoffread.c: Likewise.
1923 * xml-support.c: Likewise.
1924 * xstormy16-tdep.c: Likewise.
1925 * xtensa-linux-nat.c: Likewise.
1926
1927 2014-08-07 Gary Benson <gbenson@redhat.com>
1928
1929 * common/common-defs.h: Include gdb_assert.h.
1930 * aarch64-tdep.c: Do not include gdb_assert.h.
1931 * addrmap.c: Likewise.
1932 * aix-thread.c: Likewise.
1933 * alpha-linux-tdep.c: Likewise.
1934 * alpha-mdebug-tdep.c: Likewise.
1935 * alphanbsd-tdep.c: Likewise.
1936 * amd64-nat.c: Likewise.
1937 * amd64-tdep.c: Likewise.
1938 * amd64bsd-nat.c: Likewise.
1939 * amd64fbsd-nat.c: Likewise.
1940 * amd64fbsd-tdep.c: Likewise.
1941 * amd64nbsd-nat.c: Likewise.
1942 * amd64nbsd-tdep.c: Likewise.
1943 * amd64obsd-nat.c: Likewise.
1944 * amd64obsd-tdep.c: Likewise.
1945 * arch-utils.c: Likewise.
1946 * arm-tdep.c: Likewise.
1947 * armbsd-tdep.c: Likewise.
1948 * auxv.c: Likewise.
1949 * bcache.c: Likewise.
1950 * bfin-tdep.c: Likewise.
1951 * blockframe.c: Likewise.
1952 * breakpoint.c: Likewise.
1953 * bsd-kvm.c: Likewise.
1954 * bsd-uthread.c: Likewise.
1955 * buildsym.c: Likewise.
1956 * c-exp.y: Likewise.
1957 * c-lang.c: Likewise.
1958 * charset.c: Likewise.
1959 * cleanups.c: Likewise.
1960 * cli-out.c: Likewise.
1961 * cli/cli-decode.c: Likewise.
1962 * cli/cli-dump.c: Likewise.
1963 * cli/cli-logging.c: Likewise.
1964 * cli/cli-script.c: Likewise.
1965 * cli/cli-utils.c: Likewise.
1966 * coffread.c: Likewise.
1967 * common/common-utils.c: Likewise.
1968 * common/queue.h: Likewise.
1969 * common/signals.c: Likewise.
1970 * common/vec.h: Likewise.
1971 * complaints.c: Likewise.
1972 * completer.c: Likewise.
1973 * corelow.c: Likewise.
1974 * cp-abi.c: Likewise.
1975 * cp-name-parser.y: Likewise.
1976 * cp-namespace.c: Likewise.
1977 * cp-support.c: Likewise.
1978 * cris-tdep.c: Likewise.
1979 * dbxread.c: Likewise.
1980 * dictionary.c: Likewise.
1981 * doublest.c: Likewise.
1982 * dsrec.c: Likewise.
1983 * dummy-frame.c: Likewise.
1984 * dwarf2-frame-tailcall.c: Likewise.
1985 * dwarf2-frame.c: Likewise.
1986 * dwarf2expr.c: Likewise.
1987 * dwarf2loc.c: Likewise.
1988 * dwarf2read.c: Likewise.
1989 * eval.c: Likewise.
1990 * event-loop.c: Likewise.
1991 * exceptions.c: Likewise.
1992 * expprint.c: Likewise.
1993 * f-valprint.c: Likewise.
1994 * fbsd-nat.c: Likewise.
1995 * findvar.c: Likewise.
1996 * frame-unwind.c: Likewise.
1997 * frame.c: Likewise.
1998 * frv-tdep.c: Likewise.
1999 * gcore.c: Likewise.
2000 * gdb-dlfcn.c: Likewise.
2001 * gdb_bfd.c: Likewise.
2002 * gdbarch.c: Likewise.
2003 * gdbarch.sh: Likewise.
2004 * gdbtypes.c: Likewise.
2005 * gnu-nat.c: Likewise.
2006 * gnu-v3-abi.c: Likewise.
2007 * go-lang.c: Likewise.
2008 * guile/scm-exception.c: Likewise.
2009 * guile/scm-gsmob.c: Likewise.
2010 * guile/scm-lazy-string.c: Likewise.
2011 * guile/scm-math.c: Likewise.
2012 * guile/scm-pretty-print.c: Likewise.
2013 * guile/scm-safe-call.c: Likewise.
2014 * guile/scm-utils.c: Likewise.
2015 * guile/scm-value.c: Likewise.
2016 * h8300-tdep.c: Likewise.
2017 * hppa-hpux-nat.c: Likewise.
2018 * hppa-tdep.c: Likewise.
2019 * hppanbsd-tdep.c: Likewise.
2020 * hppaobsd-tdep.c: Likewise.
2021 * i386-darwin-nat.c: Likewise.
2022 * i386-darwin-tdep.c: Likewise.
2023 * i386-nto-tdep.c: Likewise.
2024 * i386-tdep.c: Likewise.
2025 * i386bsd-nat.c: Likewise.
2026 * i386fbsd-tdep.c: Likewise.
2027 * i386gnu-nat.c: Likewise.
2028 * i386nbsd-tdep.c: Likewise.
2029 * i386obsd-tdep.c: Likewise.
2030 * i387-tdep.c: Likewise.
2031 * ia64-libunwind-tdep.c: Likewise.
2032 * ia64-tdep.c: Likewise.
2033 * inf-ptrace.c: Likewise.
2034 * inf-ttrace.c: Likewise.
2035 * infcall.c: Likewise.
2036 * infcmd.c: Likewise.
2037 * infrun.c: Likewise.
2038 * inline-frame.c: Likewise.
2039 * interps.c: Likewise.
2040 * jv-lang.c: Likewise.
2041 * jv-typeprint.c: Likewise.
2042 * linux-fork.c: Likewise.
2043 * linux-nat.c: Likewise.
2044 * linux-thread-db.c: Likewise.
2045 * m32c-tdep.c: Likewise.
2046 * m32r-linux-nat.c: Likewise.
2047 * m32r-tdep.c: Likewise.
2048 * m68k-tdep.c: Likewise.
2049 * m68kbsd-nat.c: Likewise.
2050 * m68kbsd-tdep.c: Likewise.
2051 * m88k-tdep.c: Likewise.
2052 * machoread.c: Likewise.
2053 * macroexp.c: Likewise.
2054 * macrotab.c: Likewise.
2055 * maint.c: Likewise.
2056 * mdebugread.c: Likewise.
2057 * memory-map.c: Likewise.
2058 * mep-tdep.c: Likewise.
2059 * mi/mi-common.c: Likewise.
2060 * microblaze-tdep.c: Likewise.
2061 * mingw-hdep.c: Likewise.
2062 * mips-linux-nat.c: Likewise.
2063 * mips-linux-tdep.c: Likewise.
2064 * mips-tdep.c: Likewise.
2065 * mips64obsd-tdep.c: Likewise.
2066 * mipsnbsd-tdep.c: Likewise.
2067 * mn10300-linux-tdep.c: Likewise.
2068 * mn10300-tdep.c: Likewise.
2069 * moxie-tdep.c: Likewise.
2070 * mt-tdep.c: Likewise.
2071 * nat/linux-btrace.c: Likewise.
2072 * nat/linux-osdata.c: Likewise.
2073 * nat/linux-ptrace.c: Likewise.
2074 * nat/mips-linux-watch.c: Likewise.
2075 * nios2-linux-tdep.c: Likewise.
2076 * nios2-tdep.c: Likewise.
2077 * objc-lang.c: Likewise.
2078 * objfiles.c: Likewise.
2079 * obsd-nat.c: Likewise.
2080 * opencl-lang.c: Likewise.
2081 * osabi.c: Likewise.
2082 * parse.c: Likewise.
2083 * ppc-linux-nat.c: Likewise.
2084 * ppc-sysv-tdep.c: Likewise.
2085 * ppcfbsd-nat.c: Likewise.
2086 * ppcfbsd-tdep.c: Likewise.
2087 * ppcnbsd-nat.c: Likewise.
2088 * ppcnbsd-tdep.c: Likewise.
2089 * ppcobsd-nat.c: Likewise.
2090 * ppcobsd-tdep.c: Likewise.
2091 * printcmd.c: Likewise.
2092 * procfs.c: Likewise.
2093 * prologue-value.c: Likewise.
2094 * psymtab.c: Likewise.
2095 * python/py-lazy-string.c: Likewise.
2096 * python/py-value.c: Likewise.
2097 * regcache.c: Likewise.
2098 * reggroups.c: Likewise.
2099 * registry.c: Likewise.
2100 * remote-sim.c: Likewise.
2101 * remote.c: Likewise.
2102 * rs6000-aix-tdep.c: Likewise.
2103 * rs6000-tdep.c: Likewise.
2104 * s390-linux-tdep.c: Likewise.
2105 * score-tdep.c: Likewise.
2106 * ser-base.c: Likewise.
2107 * ser-mingw.c: Likewise.
2108 * sh-tdep.c: Likewise.
2109 * sh64-tdep.c: Likewise.
2110 * solib-darwin.c: Likewise.
2111 * solib-spu.c: Likewise.
2112 * solib-svr4.c: Likewise.
2113 * source.c: Likewise.
2114 * sparc-nat.c: Likewise.
2115 * sparc-sol2-tdep.c: Likewise.
2116 * sparc-tdep.c: Likewise.
2117 * sparc64-sol2-tdep.c: Likewise.
2118 * sparc64-tdep.c: Likewise.
2119 * sparc64fbsd-tdep.c: Likewise.
2120 * sparc64nbsd-tdep.c: Likewise.
2121 * sparc64obsd-tdep.c: Likewise.
2122 * sparcnbsd-tdep.c: Likewise.
2123 * sparcobsd-tdep.c: Likewise.
2124 * spu-multiarch.c: Likewise.
2125 * spu-tdep.c: Likewise.
2126 * stabsread.c: Likewise.
2127 * stack.c: Likewise.
2128 * symfile.c: Likewise.
2129 * symtab.c: Likewise.
2130 * target-descriptions.c: Likewise.
2131 * target-memory.c: Likewise.
2132 * target.c: Likewise.
2133 * tic6x-linux-tdep.c: Likewise.
2134 * tic6x-tdep.c: Likewise.
2135 * tilegx-linux-nat.c: Likewise.
2136 * tilegx-tdep.c: Likewise.
2137 * top.c: Likewise.
2138 * tramp-frame.c: Likewise.
2139 * tui/tui-out.c: Likewise.
2140 * tui/tui-winsource.c: Likewise.
2141 * ui-out.c: Likewise.
2142 * user-regs.c: Likewise.
2143 * utils.c: Likewise.
2144 * v850-tdep.c: Likewise.
2145 * valops.c: Likewise.
2146 * value.c: Likewise.
2147 * varobj.c: Likewise.
2148 * vax-nat.c: Likewise.
2149 * xml-syscall.c: Likewise.
2150 * xml-tdesc.c: Likewise.
2151 * xstormy16-tdep.c: Likewise.
2152 * xtensa-linux-nat.c: Likewise.
2153 * xtensa-tdep.c: Likewise.
2154
2155 2014-08-07 Gary Benson <gbenson@redhat.com>
2156
2157 * common/common-defs.h: Include common-utils.h.
2158 * defs.h: Do not include common-utils.h.
2159 * common/gdb_assert.h: Likewise.
2160 * darwin-nat.h: Likewise.
2161 * nat/linux-btrace.c: Likewise.
2162 * target/waitstatus.h: Likewise.
2163
2164 2014-08-07 Gary Benson <gbenson@redhat.com>
2165
2166 * common/common-defs.h: Include ptid.h.
2167 * defs.h: Do not include ptid.h.
2168 * inferior.h: Likewise.
2169 * infrun.h: Likewise.
2170 * nat/linux-btrace.h: Likewise.
2171 * nat/linux-osdata.h: Likewise.
2172 * target/waitstatus.h: Likewise.
2173
2174 2014-08-07 Gary Benson <gbenson@redhat.com>
2175
2176 * common/common-defs.h: Include gdb_locale.h.
2177 * defs.h: Do not include gdb_locale.h.
2178
2179 2014-08-07 Gary Benson <gbenson@redhat.com>
2180
2181 * common/common-defs.h: Include gdb/signals.h.
2182 * defs.h: Do not include gdb/signals.h.
2183
2184 2014-08-07 Gary Benson <gbenson@redhat.com>
2185
2186 * common/common-defs.h: Include pathmax.h.
2187 * defs.h: Do not include pathmax.h.
2188
2189 2014-08-07 Gary Benson <gbenson@redhat.com>
2190
2191 * common/common-defs.h: Include libiberty.h.
2192 * defs.h: Do not include libiberty.h.
2193 * common/queue.h: Likewise.
2194 * cp-name-parser.y: Likewise.
2195 * mi/mi-cmd-catch.c: Likewise.
2196 * python/python.c: Likewise.
2197
2198 2014-08-07 Gary Benson <gbenson@redhat.com>
2199
2200 * common/common-defs.h: Include ansidecl.h.
2201 * defs.h: Do not include ansidecl.h.
2202 * common/buffer.h: Likewise.
2203 * common/common-utils.h: Likewise.
2204
2205 2014-08-07 Gary Benson <gbenson@redhat.com>
2206
2207 * common/common-defs.h: Include stddef.h.
2208 * defs.h: Do not include stddef.h.
2209 * common/common-utils.h: Likewise.
2210 * amd64fbsd-nat.c: Likewise.
2211 * bcache.c: Likewise.
2212 * charset.c: Likewise.
2213 * common/buffer.h: Likewise.
2214 * common/vec.h: Likewise.
2215 * i386bsd-nat.c: Likewise.
2216 * nat/linux-btrace.h: Likewise.
2217 * ppcfbsd-nat.c: Likewise.
2218 * ppcnbsd-tdep.h: Likewise.
2219 * ppcobsd-nat.c: Likewise.
2220 * ppcobsd-tdep.h: Likewise.
2221 * python/py-gdb-readline.c: Likewise.
2222
2223 2014-08-07 Gary Benson <gbenson@redhat.com>
2224
2225 * common/common-defs.h: Include stdarg.h.
2226 * defs.h: Do not include stdarg.h.
2227 * ada-lang.c: Likewise.
2228 * common/common-utils.h: Likewise.
2229 * guile/scm-string.c: Likewise.
2230 * guile/scm-utils.c: Likewise.
2231 * m32c-tdep.c: Likewise.
2232
2233 2014-08-07 Gary Benson <gbenson@redhat.com>
2234
2235 * common/common-defs.h: Include stdlib.h.
2236 * defs.h: Do not include stdlib.h.
2237 * addrmap.c: Likewise.
2238 * bcache.c: Likewise.
2239 * common/buffer.c: Likewise.
2240 * common/common-utils.c: Likewise.
2241 * cp-name-parser.y: Likewise.
2242 * go32-nat.c: Likewise.
2243 * mn10300-linux-tdep.c: Likewise.
2244 * nat/linux-osdata.c: Likewise.
2245 * tui/tui.c: Likewise.
2246 * windows-nat.c: Likewise.
2247
2248 2014-08-07 Gary Benson <gbenson@redhat.com>
2249
2250 * common/common-defs.h: Include stdio.h.
2251 * defs.h: Do not include stdio.h.
2252 * ada-lang.c: Likewise.
2253 * common/buffer.c: Likewise.
2254 * common/common-utils.c: Likewise.
2255 * cp-name-parser.y: Likewise.
2256 * gnu-nat.c: Likewise.
2257 * go32-nat.c: Likewise.
2258 * i386gnu-nat.c: Likewise.
2259 * proc-api.c: Likewise.
2260 * proc-events.c: Likewise.
2261 * proc-flags.c: Likewise.
2262 * proc-why.c: Likewise.
2263 * python/python-internal.h: Likewise.
2264 * target-memory.c: Likewise.
2265 * tui/tui-io.c: Likewise.
2266 * tui/tui.c: Likewise.
2267
2268 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2269
2270 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2271 (scan_dyntag_auxv): Same.
2272
2273 2014-08-06 Yao Qi <yao@codesourcery.com>
2274
2275 * amd64-linux-nat.c: Remove duplicated include
2276 "x86-linux-nat.h".
2277 * i386-linux-nat.c: Likewise.
2278
2279 2014-08-06 Yao Qi <yao@codesourcery.com>
2280
2281 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2282 operand" with "Special opcode" in comments.
2283
2284 2014-08-05 Gary Benson <gbenson@redhat.com>
2285
2286 * interps.c (initialize_interps): Remove prototype.
2287 (interpreter_initialized): Remove static global.
2288 (interp_add): Do not call initialize_interps.
2289 (initialize_interps): Remove function.
2290
2291 2014-08-05 Gary Benson <gbenson@redhat.com>
2292
2293 * utils.c (vwarning): Remove spurious va_end.
2294
2295 2014-08-05 Alan Modra <amodra@gmail.com>
2296
2297 * charset.c (convert_between_encodings): Cast result of obstack_base.
2298 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2299 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2300 (read_unwind_info): Use size_t for some locals.
2301 * jit.c (finalize_symtab): Likewise.
2302 * utils.c (hashtab_obstack_allocate): Likewise.
2303 * symmisc.c (print_objfile_statistics): Update format strings.
2304
2305 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2306
2307 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2308 (Changes in GDB 7.8): ... here.
2309
2310 2014-08-04 Tom Tromey <tromey@redhat.com>
2311
2312 * target.c (set_targetdebug): New function.
2313 (initialize_targets): Pass set_targetdebug when creating "set
2314 debug target".
2315
2316 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2317
2318 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2319 if detecting a variable-sized field that is not the last field.
2320 Fix struct type length computation.
2321
2322 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2323
2324 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2325 Add debug trace.
2326
2327 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2328
2329 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2330 Remove "+ 8" offset in computation of CHAIN_VMA.
2331
2332 2014-07-31 Doug Evans <dje@google.com>
2333
2334 * inflow.c (child_terminal_inferior): Add comment.
2335 (child_terminal_ours_for_output): Add comment.
2336 (child_terminal_ours): Add comment.
2337 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2338 (linux_nat_terminal_ours): Add comment.
2339
2340 2014-07-31 Gary Benson <gbenson@redhat.com>
2341
2342 * common/btrace-common.h: Do not include defs.h or server.h.
2343 * nat/mips-linux-watch.h: Likewise.
2344 * gdb-dlfcn.h: Do not include defs.h.
2345 * tracefile.h: Likewise.
2346
2347 2014-07-30 Roland McGrath <mcgrathr@google.com>
2348
2349 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2350
2351 2014-07-30 Tom Tromey <tromey@redhat.com>
2352
2353 * bsd-kvm.c (bsd_kvm_open): Constify.
2354 * corelow.c (core_open): Constify.
2355 * ctf.c (ctf_open): Constify.
2356 * dbug-rom.c (dbug_open): Constify.
2357 * exec.c (exec_open): Constify.
2358 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2359 * microblaze-rom.c (picobug_open): Constify.
2360 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2361 Constify.
2362 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2363 * record-btrace.c (record_btrace_open): Constify.
2364 * record-full.c (record_full_core_open_1, record_full_open_1)
2365 (record_full_open): Constify.
2366 * remote-m32r-sdi.c (m32r_open): Constify.
2367 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2368 (rockhopper_open, lsi_open): Constify.
2369 * remote-sim.c (gdbsim_open): Constify.
2370 * remote.c (remote_open, extended_remote_open, remote_open_1):
2371 Constify.
2372 * target.h (struct target_ops) <to_open>: Make "arg" const.
2373 * tracefile-tfile.c (tfile_open): Constify.
2374
2375 2014-07-30 Tom Tromey <tromey@redhat.com>
2376
2377 * breakpoint.c (map_breakpoint_numbers): Update.
2378 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2379 (get_number_const): New function.
2380 (get_number): Rewrite using get_number_const.
2381 (init_number_or_range): Make "string" const.
2382 (number_is_in_list): Make "list" const.
2383 * cli/cli-utils.h (get_number_const): Declare.
2384 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2385 (init_number_or_range, number_is_in_list): Update.
2386 * printcmd.c (map_display_numbers): Update.
2387 * value.c (value_from_history_ref): Constify.
2388 * value.h (value_from_history_ref): Update.
2389
2390 2014-07-30 Tom Tromey <tromey@redhat.com>
2391
2392 * corefile.c (hook_type, call_extra_exec_file_hooks)
2393 (specify_exec_file_hook): Constify.
2394 * exec.c (exec_file_attach): Make "filename" const.
2395 * gdbcore.h (deprecated_exec_file_display_hook)
2396 (specify_exec_file_hook, exec_file_attach): Constify.
2397 * main.c (captured_main): Use catch_command_errors_const.
2398
2399 2014-07-30 Tom Tromey <tromey@redhat.com>
2400
2401 * target.c (open_target): New function.
2402 (add_target_with_completer, add_deprecated_target_alias): Use
2403 set_cmd_sfunc, set_cmd_context.
2404 (debug_to_open): Remove.
2405 (setup_target_debug): Update.
2406
2407 2014-07-30 Yao Qi <yao@codesourcery.com>
2408
2409 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2410 comments.
2411 * parse.c (exp_iterate): Update comments.
2412
2413 2014-07-30 Gary Benson <gbenson@redhat.com>
2414
2415 * common/common-defs.h: New file.
2416 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2417 * defs.h: Include common-defs.h.
2418 Do not include config.h or build-gnulib/config.h.
2419
2420 2014-07-30 Gary Benson <gbenson@redhat.com>
2421
2422 * common/common-utils.h: Do not include config.h.
2423 * nat/linux-btrace.h: Likewise.
2424
2425 2014-07-30 Gary Benson <gbenson@redhat.com>
2426
2427 * btrace.c: Include defs.h.
2428 * common/ptid.c: Include defs.h or server.h as appropriate.
2429 * nat/mips-linux-watch.c: Likewise.
2430
2431 2014-07-29 Tom Tromey <tromey@redhat.com>
2432
2433 * target.c (target_is_pushed): Simplify.
2434
2435 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2436
2437 GDB 7.8 released.
2438
2439 2014-07-29 Yao Qi <yao@codesourcery.com>
2440
2441 PR gdb/17206
2442 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2443
2444 2014-07-28 Doug Evans <xdje42@gmail.com>
2445
2446 PR guile/17203
2447 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2448 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2449 parameters.
2450
2451 2014-07-28 Will Newton <will.newton@linaro.org>
2452
2453 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2454 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2455 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2456 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2457 (THUMB2_EABI_SYSCALL): Likewise.
2458 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2459 struct tramp_frame.
2460 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2461 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2462
2463 2014-07-27 Doug Evans <xdje42@gmail.com>
2464
2465 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2466
2467 2014-07-27 Doug Evans <xdje42@gmail.com>
2468
2469 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2470
2471 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2472 Doug Evans <xdje42@gmail.com>
2473
2474 PR guile/17146
2475 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2476 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2477 * configure.ac: Try to use guild to compile an scm file, if it fails
2478 then disable guile support.
2479 * configure: Regenerate.
2480 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2481 GUILE_FILE_LIST.
2482 (GUILE_COMPILED_FILES): New variable.
2483 (GUILE_FILES) Update.
2484 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2485 (stamp-guile): Compile scm files.
2486 * guile/guile.c (boot_guile_support): New function.
2487 (standard_throw_args_p): New function.
2488 (print_standard_throw_error, print_throw_error): New functions.
2489 (handle_boot_error): New function.
2490 (initialize_scheme_side): Rewrite to call boot_guile_support.
2491 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2492 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2493
2494 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2495 Doug Evans <xdje42@gmail.com>
2496
2497 PR guile/17146
2498 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2499 * guile/lib/gdb/support.scm: New file.
2500 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2501 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2502 All uses updated.
2503 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2504 All uses updated.
2505 (%assert-type): Ditto, and renamed to assert-type.
2506 (%exception-print-style): Delete.
2507
2508 2014-07-26 Doug Evans <xdje42@gmail.com>
2509
2510 PR build/17105
2511 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2512 * configure: Regenerate.
2513 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2514 PYTHON_FILES.
2515 (PYTHON_FILES): New variable.
2516 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2517 (GUILE_FILES): New variable.
2518 (stamp-python, install-python, uninstall-python): Handle empty
2519 file list.
2520 (stamp-guile, install-guile, uninstall-guile): Ditto.
2521
2522 2014-07-26 Doug Evans <xdje42@gmail.com>
2523
2524 PR guile/17177
2525 * guile/lib/gdb.scm (pretty-printers): Export.
2526 (set-pretty-printers!): Export.
2527 * guile/lib/gdb/printing.scm (gdb module): Update.
2528 (prepend-pretty-printer!, append-pretty-printer!): Update.
2529 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2530 (pretty_printer_list_var): Delete.
2531 (pretty_printer_list): New static global.
2532 (gdbscm_pretty_printers): New function.
2533 (gdbscm_set_pretty_printers_x): New function.
2534 (ppscm_find_pretty_printer_from_gdb): Update.
2535 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2536 (gdbscm_initialize_pretty_printers): Update.
2537
2538 2014-07-26 Doug Evans <xdje42@gmail.com>
2539
2540 PR 17185
2541 * configure.ac: Add check for header gc/gc.h.
2542 Add check for function setenv.
2543 * configure: Regenerate.
2544 * config.in: Regenerate.
2545 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2546
2547 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2548
2549 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2550 variation in gdbarch matching.
2551
2552 2014-07-25 Tom Tromey <tromey@redhat.com>
2553
2554 * exec.c (using_exec_ops): Remove.
2555 (exec_close_1): Update. Remove extraneous block, reindent.
2556 (add_target_sections): Use target_is_pushed.
2557
2558 2014-07-25 Pedro Alves <palves@redhat.com>
2559
2560 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2561 * monitor.c (monitor_create_inferior): Likewise.
2562 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2563 * remote-sim.c (gdbsim_create_inferior): Likewise.
2564 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2565 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2566 * windows-nat.c (do_initial_windows_stuff): Likewise.
2567
2568 2014-07-25 Pedro Alves <palves@redhat.com>
2569
2570 * NEWS: Mention signal passing and "signal" command changes.
2571 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2572 comment.
2573 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2574 call.
2575 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2576 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2577 (jump_command): Adjust clear_proceed_status call.
2578 (signal_command): Warn if other thread that are resumed have
2579 signals that will be delivered. Adjust clear_proceed_status call.
2580 (until_next_command, finish_command)
2581 (proceed_after_attach_callback, attach_command_post_wait)
2582 (attach_command): Adjust clear_proceed_status call.
2583 * infrun.c (proceed_after_vfork_done): Likewise.
2584 (proceed_after_attach_callback): Adjust comment.
2585 (clear_proceed_status_thread): Clear stop_signal if not in pass
2586 state.
2587 (clear_proceed_status_callback): Delete.
2588 (clear_proceed_status): New 'step' parameter. Only clear the
2589 proceed status of threads the command being prepared is about to
2590 resume.
2591 (proceed): If passed in an explicit signal, override stop_signal
2592 with it. Don't pass the last stop signal to the thread we're
2593 resuming.
2594 (init_wait_for_inferior): Adjust clear_proceed_status call.
2595 (switch_back_to_stepped_thread): Clear the signal if it should not
2596 be passed.
2597 * infrun.h (clear_proceed_status): New 'step' parameter.
2598 (user_visible_resume_ptid): Add comment.
2599 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2600 signal is in pass state.
2601 * remote.c (append_pending_thread_resumptions): Likewise.
2602 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2603
2604 2014-07-25 Tom Tromey <tromey@redhat.com>
2605
2606 * target.h (target_stopped_data_address)
2607 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2608 parentheses.
2609
2610 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2611
2612 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2613 comments.
2614 (avr_pointer_to_address): Likewise.
2615
2616 2014-07-24 Tom Tromey <tromey@redhat.com>
2617
2618 * monitor.c (compile_pattern): Update.
2619 * target.h (struct target_ops) <to_shortname, to_longname,
2620 to_doc>: Now const.
2621
2622 2014-07-24 Tom Tromey <tromey@redhat.com>
2623
2624 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2625 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2626 (add_info_alias, add_com): Make "doc" const.
2627 (print_doc_line): Make "str" const.
2628 (delete_cmd): Update.
2629 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2630 (print_doc_line): Update.
2631 * cli/cli-script.c (document_command): Update.
2632 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2633 (add_com, add_info, add_info_alias): Update.
2634 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2635 * python/py-cmd.c (cmdpy_destroyer): Update.
2636
2637 2014-07-24 Tom Tromey <tromey@redhat.com>
2638
2639 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2640 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2641 (help_cmd_list): Constify.
2642 (lookup_cmd): Update.
2643 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2644 const.
2645 (help_cmd_list, apropos_cmd): Update.
2646 * cli/cli-script.c (show_user): Update.
2647 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2648 * cli/cli-setshow.h (cmd_show_list): Update.
2649 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2650 (cmd_show_list): Update.
2651 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2652 * python/py-cmd.c (cmdpy_destroyer): Update.
2653
2654 2014-07-24 Tom Tromey <tromey@redhat.com>
2655
2656 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2657 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2658 const.
2659 * command.h (deprecate_cmd): Update.
2660 * maint.c (maintenance_do_deprecate): Add casts.
2661
2662 2014-07-24 Tom Tromey <tromey@redhat.com>
2663
2664 * cli/cli-decode.c (help_cmd): Make parameter "const".
2665 * cli/cli-decode.h (help_cmd): Update.
2666
2667 2014-07-24 Tom Tromey <tromey@redhat.com>
2668
2669 * stack.c (up_silently_base, down_silently_base): Make argument
2670 const.
2671
2672 2014-07-24 Tom Tromey <tromey@redhat.com>
2673
2674 * solib.c (solib_add): Make "pattern" const.
2675 * solib.h (solib_add): Update.
2676
2677 2014-07-24 Tom Tromey <tromey@redhat.com>
2678
2679 * remote.c (remote_serial_open, print_packet, putpkt)
2680 (putpkt_binary): Constify.
2681 * remote.h (putpkt): Update.
2682
2683 2014-07-24 Tom Tromey <tromey@redhat.com>
2684
2685 * monitor.c (monitor_open): Make "args" const.
2686 * monitor.h (monitor_open): Update.
2687
2688 2014-07-24 Tom Tromey <tromey@redhat.com>
2689
2690 * maint.c (match_bfd_flags): Make "string" const.
2691 (print_bfd_section_info): Remove casts.
2692 (print_objfile_section_info): Make "string" const.
2693
2694 2014-07-24 Tom Tromey <tromey@redhat.com>
2695
2696 * inf-child.c (inf_child_open_target): Make "arg" const.
2697 * inf-child.h (inf_child_open_target): Update.
2698
2699 2014-07-24 Tom Tromey <tromey@redhat.com>
2700
2701 * environ.c (unset_in_environ): Make "var" const.
2702 * environ.h (unset_in_environ): Update.
2703
2704 2014-07-24 Tom Tromey <tromey@redhat.com>
2705
2706 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2707 Make "cmd" const.
2708 (scan_filename_with_cleanup): Likewise.
2709 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2710 Make arguments const.
2711 (restore_command): Update.
2712
2713 2014-07-24 Pedro Alves <palves@redhat.com>
2714
2715 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2716
2717 2014-07-24 Tom Tromey <tromey@redhat.com>
2718 Gary Benson <gbenson@redhat.com>
2719
2720 * nat/linux-ptrace.c (additional_flags): New global.
2721 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2722 additional_flags; don't check GDBSERVER.
2723 (linux_ptrace_set_additional_flags): New function.
2724 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2725 Declare.
2726 * linux-nat.c (_initialize_linux_nat): Call
2727 linux_ptrace_set_additional_flags.
2728
2729 2014-07-24 Tom Tromey <tromey@redhat.com>
2730
2731 * make-target-delegates (munge_type, write_debugmethod): New
2732 functions.
2733 (debug_names): New global.
2734 ($TARGET_DEBUG_PRINTER): New global.
2735 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2736 name.
2737 Write debug methods. Generate init_debug_target.
2738 * target-debug.h: New file.
2739 * target-delegates.c: Rebuild.
2740 * target.c: Include target-debug.h.
2741 (debug_target): Hoist definition.
2742 (target_kill, target_get_section_table, target_memory_map)
2743 (target_flash_erase, target_flash_done, target_detach)
2744 (target_disconnect, target_wait, target_resume)
2745 (target_pass_signals, target_program_signals, target_follow_fork)
2746 (target_mourn_inferior, target_search_memory)
2747 (target_thread_address_space, target_close)
2748 (target_find_new_threads, target_core_of_thread)
2749 (target_verify_memory, target_insert_mask_watchpoint)
2750 (target_remove_mask_watchpoint): Remove targetdebug code.
2751 (debug_to_post_attach, debug_to_prepare_to_store)
2752 (debug_to_files_info, debug_to_insert_breakpoint)
2753 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2754 (debug_to_region_ok_for_hw_watchpoint)
2755 (debug_to_can_accel_watchpoint_condition)
2756 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2757 (debug_to_watchpoint_addr_within_range)
2758 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2759 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2760 (debug_to_terminal_init, debug_to_terminal_inferior)
2761 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2762 (debug_to_terminal_save_ours, debug_to_terminal_info)
2763 (debug_to_load, debug_to_post_startup_inferior)
2764 (debug_to_insert_fork_catchpoint)
2765 (debug_to_remove_fork_catchpoint)
2766 (debug_to_insert_vfork_catchpoint)
2767 (debug_to_remove_vfork_catchpoint)
2768 (debug_to_insert_exec_catchpoint)
2769 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2770 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2771 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2772 (setup_target_debug): Call init_debug_target.
2773 * target.h (TARGET_DEBUG_PRINTER): New macro.
2774 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2775 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2776
2777 2014-07-24 Gary Benson <gbenson@redhat.com>
2778
2779 * exceptions.h (throw_vfatal): Renamed to...
2780 (throw_vquit): New declaration.
2781 (throw_quit): Likewise.
2782 * exceptions.c (throw_vfatal): Renamed to...
2783 (throw_vquit): New function.
2784 (throw_quit): Likewise.
2785 (throw_error): Call throw_verror rather than throw_it.
2786 * utils.h (vfatal): Removed.
2787 (fatal): Likewise.
2788 * utils.c (vfatal): Removed.
2789 (fatal): Likewise.
2790 (internal_verror): Replaced call to fatal with call to throw_quit.
2791 (quit): Replaced calls to fatal with calls to throw_quit.
2792
2793 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2794
2795 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2796 target_read_code.
2797
2798 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2799
2800 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2801 less than zero in conditional expression.
2802
2803 2014-07-23 Tom Tromey <tromey@redhat.com>
2804
2805 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2806 ($INTRO_PART): Don't match whitespace.
2807 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2808 argument matching.
2809 ($METHOD): Add $METHOD_TRAILER.
2810 (trim): Rewrite.
2811 (scan_target_h): New sub.
2812 Change main loop not to collect state.
2813 * target-delegates.c: Rebuild.
2814
2815 2014-07-23 Gary Benson <gbenson@redhat.com>
2816
2817 * cp-support.c (gdb_demangle): Fix build on systems without
2818 sigaltstack.
2819
2820 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2821
2822 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2823 for reference entry value target data value.
2824
2825 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2826
2827 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2828 value_available_contents_eq.
2829
2830 2014-07-22 Pedro Alves <palves@redhat.com>
2831
2832 * value.c (allocate_optimized_out_value): Don't mark value as
2833 non-lazy.
2834
2835 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2836
2837 * MAINTAINERS (Write After Approval): Update my email address.
2838
2839 2014-07-20 Doug Evans <dje@google.com>
2840
2841 PR server/17147
2842 * remote.c (putpkt_binary): Add text to error message.
2843
2844 2014-07-20 Yao Qi <yao@codesourcery.com>
2845
2846 * eval.c: Remove "Chill" from comments.
2847 * gdbtypes.h: Likewise.
2848 * symtab.h: Likewise.
2849
2850 2014-07-20 Yao Qi <yao@codesourcery.com>
2851
2852 * std-operator.def: Update comments to TERNOP_SLICE.
2853
2854 2014-07-20 Yao Qi <yao@codesourcery.com>
2855
2856 * std-operator.def: Remove BINOP_RANGE.
2857 * breakpoint.c (watchpoint_exp_is_const): Update.
2858 * expprint.c (dump_subexp_body_standard): Likewise.
2859 * eval.c (init_array_element): Remove dead code.
2860 (evaluate_subexp_standard): Likewise.
2861
2862 2014-07-20 Yao Qi <yao@codesourcery.com>
2863
2864 * std-operator.def: Remove BINOP_IN.
2865 * breakpoint.c (watchpoint_exp_is_const): Update.
2866 * eval.c (evaluate_subexp_standard): Likewise.
2867 * expprint.c (dump_subexp_body_standard): Likewise.
2868
2869 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2870
2871 * microblaze-tdep.c (microblaze_register_names): Add
2872 the rshr and rslr register names.
2873 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2874 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2875 Use of tdesc_numbered_register. Use of
2876 microblaze_register_g_packet_guesses. Use of
2877 tdesc_use_registers. Use of set_gdbarch_register_type.
2878 (microblaze_register_g_packet_guesses): New.
2879 * microblaze-tdep.h (microblaze_reg_num): Add
2880 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2881 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2882 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2883 * features/microblaze-core.xml: New file.
2884 * features/microblaze-stack-protect.xml: New file.
2885 * features/microblaze-with-stack-protect.c: New file.
2886 * features/microblaze-with-stack-protect.xml: New file.
2887 * features/microblaze.xml: New file.
2888 * features/microblaze.c: New file.
2889 * features/Makefile (microblaze-with-stack-protect): Add
2890 microblaze-with-stack-protect microblaze and microblaze-expedite.
2891 * regformats/microblaze-with-stack-protect.dat: New file.
2892 * regformats/microblaze.dat: New file.
2893 * doc/gdb.texinfo (MicroBlaze Features): Added.
2894
2895 2014-07-18 Tom Tromey <tromey@redhat.com>
2896
2897 * exec.c (exec_ops): Now static.
2898 * exec.h (exec_ops): Don't declare.
2899
2900 2014-07-18 Tom Tromey <tromey@redhat.com>
2901
2902 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2903 to find_target_beneath.
2904 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2905 find_target_beneath.
2906 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2907
2908 2014-07-18 Tom Tromey <tromey@redhat.com>
2909
2910 PR gdb/17130:
2911 * utils.c (quit): Use target_supports_terminal_ours.
2912 * target.h (target_supports_terminal_ours): Declare.
2913 * target.c (target_supports_delete_record): Don't check
2914 to_delete_record against NULL.
2915 (target_supports_terminal_ours): New function.
2916
2917 2014-07-18 Tom Tromey <tromey@redhat.com>
2918
2919 PR gdb/17130:
2920 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2921 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2922 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2923 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2924 * windows-nat.c (windows_xfer_partial): Always delegate.
2925 * record-btrace.c (record_btrace_xfer_partial): Simplify
2926 delegation.
2927 (record_btrace_fetch_registers, record_btrace_store_registers)
2928 (record_btrace_prepare_to_store, record_btrace_resume)
2929 (record_btrace_wait, record_btrace_find_new_threads)
2930 (record_btrace_thread_alive): Likewise.
2931 * procfs.c (procfs_xfer_partial): Always delegate.
2932 * corelow.c (core_xfer_partial): Always delegate.
2933 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2934
2935 2014-07-18 Tom Tromey <tromey@redhat.com>
2936
2937 * exec.c (exec_make_note_section): Move earlier.
2938
2939 2014-07-17 Doug Evans <dje@google.com>
2940
2941 PR gdb/17170
2942 * maint.c (count_symtabs_and_blocks): Handle NULL
2943 current_program_space.
2944 (report_command_stats): Check global enabled flag in addition to
2945 recorded enabled flag.
2946 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2947
2948 2014-07-16 Pedro Alves <palves@redhat.com>
2949
2950 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2951
2952 2014-07-16 Tom Tromey <tromey@redhat.com>
2953
2954 * target.h (struct target_ops) <to_delete_record>: Reformat
2955 comment.
2956
2957 2014-07-16 Tom Tromey <tromey@redhat.com>
2958
2959 * target-delegates.c: Rebuild.
2960
2961 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2962
2963 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2964 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2965 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2966 (avr_pointer_to_address): Likewise.
2967 (avr_address_class_type_flags): New function.
2968 (avr_address_class_type_flags_to_name): Likewise.
2969 (avr_address_class_name_to_type_flags): Likewise.
2970 (avr_gdbarch_init): Set address_class_type_flags,
2971 address_class_type_flags_to_name and
2972 address_class_name_to_type_flags.
2973
2974 2014-07-15 Pedro Alves <palves@redhat.com>
2975
2976 * linux-nat.c (kill_callback): Save errno and work with saved
2977 copy.
2978
2979 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2980
2981 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2982
2983 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2984
2985 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2986 breakpoint support correctly.
2987
2988 2014-07-14 Pedro Alves <palves@redhat.com>
2989
2990 * utils.c (prompt_for_continue): Call target_terminal_ours.
2991
2992 2014-07-14 Pedro Alves <palves@redhat.com>
2993
2994 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2995 catch_errors. Don't re-enable stdin or notify observers where,
2996 and rethrow error.
2997 (fetch_inferior_event_wrapper): Delete.
2998
2999 2014-07-14 Pedro Alves <palves@redhat.com>
3000
3001 PR gdb/17072
3002 * top.c: Include "inf-loop.h".
3003 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3004 field.
3005 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3006 was async before.
3007 (gdb_readline_wrapper): Store whether the target is async, and
3008 make it sync.
3009
3010 2014-07-14 Pedro Alves <palves@redhat.com>
3011
3012 PR gdb/17072
3013 * top.c (gdb_readline_wrapper_line): Tweak comment.
3014 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3015 the input handler callback.
3016
3017 2014-07-14 Pedro Alves <palves@redhat.com>
3018
3019 PR gdb/17072
3020 * main.c: Include event-top.h.
3021 (handle_command_errors): New function.
3022 (catch_command_errors, catch_command_errors_const): Use it.
3023
3024 2014-07-14 Pedro Alves <palves@redhat.com>
3025
3026 * exceptions.c (catch_command_errors, catch_command_errors_const):
3027 Moved to main.c.
3028 * exceptions.h (catch_command_errors_ftype)
3029 (catch_command_errors_const_ftype): Moved to main.c.
3030 (catch_command_errors, catch_command_errors_const): Delete
3031 declarations.
3032 * main.c (catch_command_errors_ftype)
3033 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3034 (catch_command_errors, catch_command_errors_const)): Moved here
3035 from exceptions.c and make static.
3036
3037 2014-07-14 Pedro Alves <palves@redhat.com>
3038
3039 * exceptions.c (print_any_exception): Delete.
3040 (catch_exceptions_with_msg): Use exception_print instead of
3041 print_any_exception.
3042 (catch_errors): Use exception_fprintf instead of
3043 print_any_exception.
3044 (catch_command_errors, catch_command_errors_const): Use
3045 exception_print instead of print_any_exception.
3046
3047 2014-07-14 Pedro Alves <palves@redhat.com>
3048
3049 * infcall.c (run_inferior_call): Set 'sync_execution' while
3050 running the inferior call.
3051
3052 2014-07-14 Pedro Alves <palves@redhat.com>
3053
3054 * value.c (value_contents_equal): Delete function.
3055 * value.h (value_contents_equal): Delete declaration.
3056
3057 2014-07-14 Tom Tromey <tromey@redhat.com>
3058
3059 PR exp/17106:
3060 * gdbtypes.c (is_dynamic_type_internal): New function, from
3061 is_dynamic_type.
3062 (is_dynamic_type): Rewrite.
3063 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3064 (resolve_dynamic_struct): Likewise.
3065 (resolve_dynamic_type_internal): New function, from
3066 resolve_dynamic_type.
3067 (resolve_dynamic_type): Rewrite.
3068
3069 2014-07-14 Tom Tromey <tromey@redhat.com>
3070
3071 * target.c (target_require_runnable): Also check record_stratum.
3072 Update comment.
3073
3074 2014-07-11 Yao Qi <yao@codesourcery.com>
3075
3076 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3077 thumb_instruction_restores_sp return true.
3078
3079 2014-07-11 Yao Qi <yao@codesourcery.com>
3080
3081 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3082 (thumb_in_function_epilogue_p): Call
3083 thumb_instruction_restores_sp.
3084
3085 2014-07-11 Yao Qi <yao@codesourcery.com>
3086
3087 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3088 'add sp, #imm'.
3089 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3090
3091 2014-07-11 Gary Benson <gbenson@redhat.com>
3092
3093 * amd64-linux-nat.c (gdbcore.h): Remove include.
3094 (regset.h): Likewise.
3095 (nat/linux-btrace.h): Likewise.
3096 (btrace.h): Likewise.
3097 (gdb_assert.h): Likewise.
3098 (string.h): Likewise.
3099 (sys/uio.h): Likewise.
3100 (sys/debugreg.h): Likewise.
3101 (sys/syscall.h): Likewise.
3102 (sys/procfs.h): Likewise.
3103 (sys/user.h): Likewise.
3104 (asm/ptrace.h): Likewise.
3105 (i386-nat.h): Likewise.
3106 * i386-linux-nat.c (i386-nat.h): Likewise.
3107 (regset.h): Likewise.
3108 (target.h): Likewise.
3109 (linux-nat.h): Likewise.
3110 (nat/linux-btrace.h): Likewise.
3111 (btrace.h): Likewise.
3112 (gdb_assert.h): Likewise.
3113 (string.h): Likewise.
3114 (sys/uio.h): Likewise.
3115 (sys/user.h): Likewise.
3116 (sys/procfs.h): Likewise.
3117 (sys/reg.h): Likewise.
3118 (sys/debugreg.h): Likewise.
3119 (ORIG_EAX): Remove definition.
3120
3121 2014-07-11 Gary Benson <gbenson@redhat.com>
3122
3123 * i386-linux-nat.h: New file.
3124 * x86-linux-nat.h: Likewise.
3125 * x86-linux-nat.c: Likewise.
3126 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3127 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3128 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3129 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3130 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3131 (PTRACE_SETREGSET): Likewise.
3132 (arch_lwp_info): Now in x86-linux-nat.c.
3133 (have_ptrace_getregset): Now in x86-linux-nat.h.
3134 (x86_linux_dr_get): Now in x86-linux-nat.c.
3135 (x86_linux_dr_set): Likewise.
3136 (x86_linux_dr_get_addr): Likewise.
3137 (x86_linux_dr_get_control): Likewise.
3138 (x86_linux_dr_get_status): Likewise.
3139 (update_debug_registers_callback): Likewise.
3140 (x86_linux_dr_set_control): Likewise.
3141 (x86_linux_dr_set_addr): Likewise.
3142 (x86_linux_prepare_to_resume): Likewise.
3143 (x86_linux_new_thread): Likewise.
3144 (x86_linux_new_fork): Likewise.
3145 (x86_linux_get_thread_area): Likewise.
3146 (super_post_startup_inferior): Likewise.
3147 (x86_linux_child_post_startup_inferior): Likewise.
3148 (AMD64_LINUX_USER64_CS): Likewise.
3149 (AMD64_LINUX_X32_DS): Likewise.
3150 (x86_linux_read_description): Likewise.
3151 (x86_linux_enable_btrace): Likewise.
3152 (x86_linux_disable_btrace): Likewise.
3153 (x86_linux_teardown_btrace): Likewise.
3154 (x86_linux_read_btrace): Likewise.
3155 (x86_linux_create_target): Likewise.
3156 (x86_linux_add_target): Likewise.
3157 * i386-linux-nat.c (x86-linux-nat.h): New include.
3158 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3159 (PTRACE_SETREGSET): Likewise.
3160 (arch_lwp_info): Now in x86-linux-nat.c.
3161 (have_ptrace_getregset): Now in x86-linux-nat.h.
3162 (x86_linux_dr_get): Now in x86-linux-nat.c.
3163 (x86_linux_dr_set): Likewise.
3164 (x86_linux_dr_get_addr): Likewise.
3165 (x86_linux_dr_get_control): Likewise.
3166 (x86_linux_dr_get_status): Likewise.
3167 (update_debug_registers_callback): Likewise.
3168 (x86_linux_dr_set_control): Likewise.
3169 (x86_linux_dr_set_addr): Likewise.
3170 (x86_linux_prepare_to_resume): Likewise.
3171 (x86_linux_new_thread): Likewise.
3172 (x86_linux_new_fork): Likewise.
3173 (x86_linux_get_thread_area): Likewise.
3174 (super_post_startup_inferior): Likewise.
3175 (x86_linux_child_post_startup_inferior): Likewise.
3176 (AMD64_LINUX_USER64_CS): Likewise.
3177 (AMD64_LINUX_X32_DS): Likewise.
3178 (x86_linux_read_description): Likewise.
3179 (x86_linux_enable_btrace): Likewise.
3180 (x86_linux_disable_btrace): Likewise.
3181 (x86_linux_teardown_btrace): Likewise.
3182 (x86_linux_read_btrace): Likewise.
3183 (x86_linux_create_target): Likewise.
3184 (x86_linux_add_target): Likewise.
3185
3186 2014-07-11 Gary Benson <gbenson@redhat.com>
3187
3188 * amd64-linux-nat.c: Comment and whitespace changes.
3189 * i386-linux-nat.c: Comment and whitespace changes.
3190
3191 2014-07-11 Gary Benson <gbenson@redhat.com>
3192
3193 * amd64-linux-nat.c (x86_linux_create_target): New function.
3194 (x86_linux_add_target): Likewise.
3195 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3196 * i386-linux-nat.c (x86_linux_create_target): New function.
3197 (x86_linux_add_target): Likewise.
3198 (_initialize_i386_linux_nat): Delegate to the above new functions.
3199
3200 2014-07-11 Gary Benson <gbenson@redhat.com>
3201
3202 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3203 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3204 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3205 (ps_get_thread_area): Delegate to the above.
3206
3207 2014-07-11 Gary Benson <gbenson@redhat.com>
3208
3209 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3210 x86_linux_read_description. All uses updated. amd64-specific
3211 code conditionalized. Conditionalized i386-specific code added.
3212 Redundant cast removed.
3213 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3214 x86_linux_read_description. All uses updated. i386-specific
3215 code conditionalized. Conditionalized amd64-specific code added.
3216 One sizeof replaced with the actual type it is describing.
3217
3218 2014-07-11 Gary Benson <gbenson@redhat.com>
3219
3220 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3221 x86_linux_dr_get. All uses updated.
3222 (amd64_linux_dr_set): Renamed to
3223 x86_linux_dr_set. All uses updated.
3224 (amd64_linux_dr_get_addr): Renamed to
3225 x86_linux_dr_get_addr. All uses updated.
3226 (amd64_linux_dr_get_control): Renamed to
3227 x86_linux_dr_get_control. All uses updated.
3228 (amd64_linux_dr_get_status): Renamed to
3229 x86_linux_dr_get_status. All uses updated.
3230 (amd64_linux_dr_set_control): Renamed to
3231 x86_linux_dr_set_control. All uses updated.
3232 (amd64_linux_dr_set_addr): Renamed to
3233 x86_linux_dr_set_addr. All uses updated.
3234 (amd64_linux_prepare_to_resume): Renamed to
3235 x86_linux_prepare_to_resume. All uses updated.
3236 (amd64_linux_new_thread): Renamed to
3237 x86_linux_new_thread. All uses updated.
3238 (amd64_linux_new_fork): Renamed to
3239 x86_linux_new_fork. All uses updated.
3240 (amd64_linux_child_post_startup_inferior): Renamed to
3241 x86_linux_child_post_startup_inferior. All uses updated.
3242 (amd64_linux_enable_btrace): Renamed to
3243 x86_linux_enable_btrace. All uses updated.
3244 (amd64_linux_disable_btrace): Renamed to
3245 x86_linux_disable_btrace. All uses updated.
3246 (amd64_linux_teardown_btrace): Renamed to
3247 x86_linux_teardown_btrace. All uses updated.
3248 (amd64_linux_read_btrace): Renamed to
3249 x86_linux_read_btrace. All uses updated.
3250 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3251 x86_linux_dr_get. All uses updated.
3252 (i386_linux_dr_set): Renamed to
3253 x86_linux_dr_set. All uses updated.
3254 (i386_linux_dr_get_addr): Renamed to
3255 x86_linux_dr_get_addr. All uses updated.
3256 (i386_linux_dr_get_control): Renamed to
3257 x86_linux_dr_get_control. All uses updated.
3258 (i386_linux_dr_get_status): Renamed to
3259 x86_linux_dr_get_status. All uses updated.
3260 (i386_linux_dr_set_control): Renamed to
3261 x86_linux_dr_set_control. All uses updated.
3262 (i386_linux_dr_set_addr): Renamed to
3263 x86_linux_dr_set_addr. All uses updated.
3264 (i386_linux_prepare_to_resume): Renamed to
3265 x86_linux_prepare_to_resume. All uses updated.
3266 (i386_linux_new_thread): Renamed to
3267 x86_linux_new_thread. All uses updated.
3268 (i386_linux_new_fork): Renamed to
3269 x86_linux_new_fork. All uses updated.
3270 (i386_linux_child_post_startup_inferior): Renamed to
3271 x86_linux_child_post_startup_inferior. All uses updated.
3272 (i386_linux_enable_btrace): Renamed to
3273 x86_linux_enable_btrace. All uses updated.
3274 (i386_linux_disable_btrace): Renamed to
3275 x86_linux_disable_btrace. All uses updated.
3276 (i386_linux_teardown_btrace): Renamed to
3277 x86_linux_teardown_btrace. All uses updated.
3278 (i386_linux_read_btrace): Renamed to
3279 x86_linux_read_btrace. All uses updated.
3280
3281 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3282
3283 * remote.c (extended_remote_post_attach): New function.
3284 (init_extended_remote_ops): Install it as to_post_attach method.
3285
3286 2014-07-09 Pedro Alves <palves@redhat.com>
3287
3288 * infcmd.c (attach_command_post_wait): Don't call
3289 target_terminal_inferior here.
3290 (attach_command): Call it here instead.
3291
3292 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3293
3294 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3295 field.
3296 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3297 from varobj.c, with additional checks.
3298 (c_varobj_ops): Fill in is_path_expr_parent field.
3299 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3300 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3301 field.
3302 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3303 ops method.
3304 (varobj_default_is_path_expr_parent): New function.
3305 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3306 (varobj_default_is_path_expr_parent): Declare new function.
3307
3308 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3309
3310 * infcmd.c (finish_backward): Turn internal error into normal error.
3311
3312 2014-07-07 Pedro Alves <palves@redhat.com>
3313
3314 PR gdb/17096
3315 * remote.c (async_handle_remote_sigint)
3316 (async_handle_remote_sigint_twice): Call
3317 gdb_call_async_signal_handler instead of
3318 mark_async_signal_handler.
3319
3320 2014-07-07 Tom Tromey <tromey@redhat.com>
3321
3322 * target-delegates.c: Rebuild.
3323 * target.c (target_info_record): Remove.
3324 * record.c (info_record_command): Unconditionally call
3325 to_info_record.
3326 * target.h (struct target_ops) <to_info_record>: Use
3327 TARGET_DEFAULT_IGNORE.
3328 (target_info_record): Remove.
3329
3330 2014-07-07 Tom Tromey <tromey@redhat.com>
3331
3332 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3333 TARGET_DEFAULT_NORETURN.
3334 * target.c (generic_tls_error): New function.
3335 (target_translate_tls_address): Don't search target stack.
3336 * target-delegates.c: Rebuild.
3337 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3338 stack.
3339 * linux-thread-db.c (thread_db_get_thread_local_address):
3340 Unconditionally call beneath target.
3341
3342 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3343
3344 * cli/cli-logging.c (pop_output_files): Assign targerr to
3345 gdb_stdtargerr.
3346
3347 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3348
3349 * MAINTAINERS (Write After Approval): Update my email address.
3350
3351 2014-07-02 Gary Benson <gbenson@redhat.com>
3352
3353 * proc-service.c (ps_xfer_memory): Update comment.
3354 (ps_pstop): Remove unused function.
3355 (ps_pcontinue): Likewise.
3356 (ps_lstop): Likewise.
3357 (ps_lcontinue): Likewise.
3358 (ps_lgetxregsize): Likewise.
3359 (ps_lgetxregs): Likewise.
3360 (ps_lsetxregs): Likewise.
3361 (ps_plog): Likewise.
3362 (ps_ptread): Likewise.
3363 (ps_ptwrite): Likewise.
3364
3365 2014-07-01 Mark Wielaard <mjw@redhat.com>
3366
3367 * dwarf2read.c (add_array_cv_type): New function.
3368 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3369 (read_tag_volatile_type): Likewise.
3370
3371 2014-07-01 Tom Tromey <tromey@redhat.com>
3372
3373 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3374 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3375 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3376 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3377 * command.h (cmd_cfunc_ftype): Move earlier.
3378 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3379 (add_com, add_info): Use cmd_cfunc_ftype.
3380
3381 2014-06-30 Tom Tromey <tromey@redhat.com>
3382
3383 * symtab.c (operator_chars): Make parameters and return type
3384 const.
3385 (file_matches): Make "files" const.
3386 (struct search_symbols_data) <files>: Now const.
3387 (search_symbols): Make "regexp" and "files" parameters const.
3388 Update.
3389 (symtab_symbol_info): Remove cast.
3390 (rbreak_command): Update.
3391 * symtab.h (search_symbols): Update.
3392
3393 2014-06-27 Yao Qi <yao@codesourcery.com>
3394
3395 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3396 Change parameter type to 'struct thread_info *'. Caller
3397 updated.
3398 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3399 Update declaration.
3400 * dummy-frame.c (struct dummy_frame_id): New.
3401 (dummy_frame_id_eq): New function.
3402 (struct dummy_frame) <id>: Change its type to 'struct
3403 dummy_frame_id'.
3404 (dummy_frame_push): Add parameter ptid and save it in
3405 dummy_frame_id.
3406 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3407 inferior_ptid.
3408 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3409 to inferior_ptid.
3410 (lookup_dummy_frame): Change parameter type to 'struct
3411 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3412 instead of frame_id_eq.
3413 (dummy_frame_pop): Add parameter ptid. Callers updated.
3414 Update comments. Compose dummy_frame_id and pass it to
3415 lookup_dummy_frame.
3416 (dummy_frame_discard): Add parameter ptid.
3417 (dummy_frame_sniffer): Compose dummy_frame_id and call
3418 dummy_frame_id_eq instead of frame_id_eq.
3419 (fprint_dummy_frames): Print ptid.
3420 * dummy-frame.h: Remove comments.
3421 (dummy_frame_push): Add ptid in declaration.
3422 (dummy_frame_pop, dummy_frame_discard): Likewise.
3423
3424 2014-06-26 Tom Tromey <tromey@redhat.com>
3425
3426 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3427 * command.h (error_no_arg): Update.
3428
3429 2014-06-26 Tom Tromey <tromey@redhat.com>
3430
3431 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3432 (do_show_command): Make "arg" const.
3433 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3434
3435 2014-06-26 Tom Tromey <tromey@redhat.com>
3436
3437 * record-full.c (record_full_get_bookmark): Make "args" const.
3438 (record_full_goto_bookmark): Make "raw_bookmark" const.
3439 * record.c (record_goto): New function.
3440 (cmd_record_goto): Use it. Now static.
3441 * record.h (record_goto): Declare.
3442 (cmd_record_goto): Remove declaration.
3443 * target-delegates.c: Rebuild.
3444 * target.h (struct target_ops) <to_get_bookmark,
3445 to_goto_bookmark>: Make parameter const.
3446
3447 2014-06-26 Tom Tromey <tromey@redhat.com>
3448
3449 * defs.h (generic_load): Update.
3450 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3451 * monitor.c (monitor_load): Make "args" const.
3452 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3453 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3454 const.
3455 (mips_load): Make "file" const.
3456 * remote-sim.c (gdbsim_load): Make "args" const.
3457 * remote.c (remote_load): Make "name" const.
3458 * symfile.c (generic_load): Make "args" const.
3459 * target-delegates.c: Rebuild.
3460 * target.c (target_load): Make "arg" const.
3461 (debug_to_load): Make "args" const.
3462 * target.h (struct target_ops) <to_load>: Make parameter const.
3463 (target_load): Update.
3464
3465 2014-06-26 Tom Tromey <tromey@redhat.com>
3466
3467 PR symtab/16902:
3468 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3469 (dwarf2_physname, read_partial_die)
3470 (guess_partial_die_structure_name, fixup_partial_die)
3471 (guess_full_die_structure_name, anonymous_struct_prefix)
3472 (dwarf2_name): Use per-BFD obstack.
3473
3474 2014-06-26 Yao Qi <yao@codesourcery.com>
3475
3476 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3477 dummyframe and this_id into inner block below.
3478
3479 2014-06-26 Yao Qi <yao@codesourcery.com>
3480
3481 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3482 with "signal_pass[0]" in the initialization of signal_pass.
3483
3484 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3485
3486 * record-btrace.c (record_btrace_generating_corefile)
3487 (record_btrace_prepare_to_generate_core)
3488 (record_btrace_done_generating_core): New.
3489 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3490 (record_btrace_store_registers, record_btrace_prepare_to_store):
3491 Forward request when generating a core file.
3492 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3493 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3494 to_done_generating_core.
3495
3496 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3497
3498 * target.h (target_ops) <to_prepare_to_generate_core>
3499 <to_done_generating_core>: New.
3500 (target_prepare_to_generate_core, target_done_generating_core): New.
3501 * target.c (target_prepare_to_generate_core)
3502 (target_done_generating_core): New.
3503 * target-delegates.c: Regenerate.
3504 * gcore.c: (write_gcore_file): Rename to ...
3505 (write_gcore_file_1): ...this.
3506 (write_gcore_file): Call target_prepare_to_generate_core
3507 and target_done_generating_core.
3508
3509 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3510
3511 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3512 * gcore.c (write_gcore_file): Free memory returned from
3513 make_corefile_notes.
3514 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3515 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3516
3517 2014-06-24 Yao Qi <yao@codesourcery.com>
3518
3519 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3520 (arm_linux_init_abi): Set skip_trampoline_code with
3521 gdbarch_skip_trampoline_code instead of
3522 find_solib_trampoline_target.
3523
3524 2014-06-24 Yao Qi <yao@codesourcery.com>
3525
3526 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3527 arm_skip_bx_reg returns non-zero.
3528
3529 2014-06-24 Yao Qi <yao@codesourcery.com>
3530
3531 * arm-tdep.c (arm_skip_bx_reg): New function.
3532 (arm_skip_stub): Call arm_skip_bx_reg.
3533
3534 2014-06-23 Don Breazeal <donb@codesourcery.com>
3535
3536 * MAINTAINERS: Add myself as write-after-approval maintainer.
3537
3538 2014-06-23 Pedro Alves <palves@redhat.com>
3539
3540 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3541 DR_CONTROL before setting DR0..DR3.
3542 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3543 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3544 bits of DR_CONTROL related to the debug register slot being
3545 disabled. If all slots are vacant, clear local slowdown as well,
3546 and assert DR_CONTROL is 0.
3547
3548 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3549
3550 * python/lib/gdb/command/xmethods.py
3551 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3552 current progspace only if the string "progspace" matches LOCUS_RE.
3553
3554 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3555
3556 Fix --with-system-readline with readline-6.3 patch 5.
3557 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3558 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3559 types.
3560
3561 2014-06-20 Tom Tromey <tromey@redhat.com>
3562
3563 * dwarf2read.c (dw2_get_real_path): Use correct type in
3564 OBSTACK_CALLOC.
3565 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3566
3567 2014-06-20 Gary Benson <gbenson@redhat.com>
3568
3569 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3570 * common/glibc_thread_db.h: Likewise.
3571 * common/i386-cpuid.h: Likewise.
3572 * common/i386-gcc-cpuid.h: Likewise.
3573 * common/linux-btrace.h: Likewise.
3574 * common/linux-osdata.h: Likewise.
3575 * common/linux-procfs.h: Likewise.
3576 * common/linux-ptrace.h: Likewise.
3577 * common/mips-linux-watch.h: Likewise.
3578 * common/linux-btrace.c: Moved to nat.
3579 * common/linux-osdata.c: Likewise.
3580 * common/linux-procfs.c: Likewise.
3581 * common/linux-ptrace.c: Likewise.
3582 * common/mips-linux-watch.c: Likewise.
3583 * nat/gdb_thread_db.h: Moved from common.
3584 * nat/glibc_thread_db.h: Likewise.
3585 * nat/i386-cpuid.h: Likewise.
3586 * nat/i386-gcc-cpuid.h: Likewise.
3587 * nat/linux-btrace.c: Likewise.
3588 * nat/linux-btrace.h: Likewise.
3589 * nat/linux-osdata.c: Likewise.
3590 * nat/linux-osdata.h: Likewise.
3591 * nat/linux-procfs.c: Likewise.
3592 * nat/linux-procfs.h: Likewise.
3593 * nat/linux-ptrace.c: Likewise.
3594 * nat/linux-ptrace.h: Likewise.
3595 * nat/mips-linux-watch.c: Likewise.
3596 * nat/mips-linux-watch.h: Likewise.
3597 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3598 (object file files): Reordered.
3599 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3600 of glibc_thread_db.h.
3601
3602 2014-06-20 Gary Benson <gbenson@redhat.com>
3603
3604 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3605 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3606 (i386_dr_low): Likewise.
3607 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3608 (i386_dr_low_set_addr): Likewise.
3609 (i386_dr_low_get_addr): Likewise.
3610 (i386_dr_low_can_set_control): Likewise.
3611 (i386_dr_low_set_control): Likewise.
3612 (i386_dr_low_get_control): Likewise.
3613 (i386_dr_low_get_status): Likewise.
3614 (i386_get_debug_register_length): Likewise.
3615 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3616 (i386_dr_low): Likewise.
3617 * nat/i386-dregs.c (i386-low.h): Remove include.
3618 (i386-nat.h): Likewise.
3619 (nat/i386-dregs.h): New include.
3620 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3621 (i386_dr_low_set_addr): Likewise.
3622 (i386_dr_low_get_addr): Likewise.
3623 (i386_dr_low_can_set_control): Likewise.
3624 (i386_dr_low_set_control): Likewise.
3625 (i386_dr_low_get_control): Likewise.
3626 (i386_dr_low_get_status): Likewise.
3627 (i386_get_debug_register_length): Likewise.
3628 (debug_hw_points): Likewise.
3629
3630 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3631
3632 * Makefile.in (SFILES): Add d-exp.y.
3633 (YYFILES): Add d-exp.c.
3634 (YYOBJ): Add d-exp.o.
3635 (local-maintainer-clean): Delete d-exp.c.
3636 * d-exp.y: New file.
3637 * d-lang.h (d_parse): New declaration.
3638 (d_error): New declaration.
3639 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3640 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3641 PREC_ORDER operators.
3642 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3643
3644 2014-06-19 Yao Qi <yao@codesourcery.com>
3645
3646 * gdbthread.h (any_running): Remove the declaration.
3647 * thread.c (any_running): Remove.
3648
3649 2014-06-19 Yao Qi <yao@codesourcery.com>
3650
3651 * gdbthread.h (struct thread_info) <state>: Change its type to
3652 'enum thread_state'. Update comments.
3653
3654 2014-06-19 Pedro Alves <palves@redhat.com>
3655
3656 * gdbthread.h (ALL_THREADS): Delete.
3657 (ALL_NON_EXITED_THREADS): New macro.
3658 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3659 instead of ALL_THREADS.
3660 * infrun.c (find_thread_needs_step_over)
3661 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3662 instead of ALL_THREADS.
3663 * record-btrace.c (record_btrace_open)
3664 (record_btrace_stop_recording, record_btrace_close)
3665 (record_btrace_is_replaying, record_btrace_resume)
3666 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3667 * remote.c (append_pending_thread_resumptions): Likewise.
3668 * thread.c (thread_apply_all_command): Likewise.
3669
3670 2014-06-19 Gary Benson <gbenson@redhat.com>
3671
3672 * i386-nat.c (i386_stopped_by_watchpoint):
3673 Use i386_dr_stopped_by_watchpoint.
3674 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3675 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3676
3677 2014-06-19 Gary Benson <gbenson@redhat.com>
3678
3679 * nat/i386-dregs.c: New file.
3680 * Makefile.in (i386-dregs.o): New rule.
3681 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3682 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3683 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3684 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3685 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3686 * config/i386/go32.mh (NATDEPFILES): Likewise.
3687 * config/i386/linux.mh (NATDEPFILES): Likewise.
3688 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3689 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3690 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3691 * i386-nat.h (debug_hw_points): New declaration.
3692 * i386-nat.c (breakpoint.h): Remove include.
3693 (command.h): Likewise.
3694 (target.h): Likewise.
3695 (gdb_assert.h): Likewise.
3696 (debug_hw_points): Made nonstatic.
3697 (debug_printf): Now in i386-dregs.c.
3698 (TARGET_HAS_DR_LEN_8): Likewise.
3699 (DR_CONTROL_SHIFT): Likewise.
3700 (DR_CONTROL_SIZE): Likewise.
3701 (DR_RW_EXECUTE): Likewise.
3702 (DR_RW_WRITE): Likewise.
3703 (DR_RW_READ): Likewise.
3704 (DR_RW_IORW): Likewise.
3705 (DR_LEN_1): Likewise.
3706 (DR_LEN_2): Likewise.
3707 (DR_LEN_4): Likewise.
3708 (DR_LEN_8): Likewise.
3709 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3710 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3711 (DR_ENABLE_SIZE): Likewise.
3712 (DR_LOCAL_SLOWDOWN): Likewise.
3713 (DR_GLOBAL_SLOWDOWN): Likewise.
3714 (DR_CONTROL_RESERVED): Likewise.
3715 (I386_DR_CONTROL_MASK): Likewise.
3716 (I386_DR_VACANT): Likewise.
3717 (I386_DR_LOCAL_ENABLE): Likewise.
3718 (I386_DR_GLOBAL_ENABLE): Likewise.
3719 (I386_DR_DISABLE): Likewise.
3720 (I386_DR_SET_RW_LEN): Likewise.
3721 (I386_DR_GET_RW_LEN): Likewise.
3722 (I386_DR_WATCH_HIT): Likewise.
3723 (i386_wp_op_t): Likewise.
3724 (i386_show_dr): Likewise.
3725 (i386_length_and_rw_bits): Likewise.
3726 (i386_insert_aligned_watchpoint): Likewise.
3727 (i386_remove_aligned_watchpoint): Likewise.
3728 (i386_handle_nonaligned_watchpoint): Likewise.
3729 (i386_update_inferior_debug_regs): Likewise.
3730 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3731 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3732 (i386_region_ok_for_watchpoint):
3733 Use i386_dr_region_ok_for_watchpoint.
3734 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3735
3736 2014-06-19 Gary Benson <gbenson@redhat.com>
3737
3738 * i386-nat.c (i386_insert_hw_breakpoint): Use
3739 i386_insert_watchpoint.
3740 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3741
3742 2014-06-19 Gary Benson <gbenson@redhat.com>
3743
3744 * i386-nat.c (i386_dr_show): Renamed to
3745 i386_show_dr and made static. All uses updated.
3746 (i386_dr_length_and_rw_bits): Renamed to
3747 i386_length_and_rw_bits and made static.
3748 All uses updated.
3749 (i386_dr_insert_aligned_watchpoint): Renamed to
3750 i386_insert_aligned_watchpoint and made static.
3751 All uses updated.
3752 (i386_dr_remove_aligned_watchpoint): Renamed to
3753 i386_remove_aligned_watchpoint and made static.
3754 All uses updated.
3755 (i386_dr_update_inferior_debug_regs): Renamed to
3756 i386_update_inferior_debug_regs and made static.
3757 All uses updated.
3758 * nat/i386-dregs.h (i386_dr_show): Removed.
3759 (i386_dr_length_and_rw_bits): Likewise.
3760 (i386_dr_insert_aligned_watchpoint): Likewise.
3761 (i386_dr_remove_aligned_watchpoint): Likewise.
3762 (i386_dr_update_inferior_debug_regs): Likewise.
3763
3764 2014-06-19 Gary Benson <gbenson@redhat.com>
3765
3766 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3767 * configure: Regenerate.
3768 * config.in: Likewise.
3769 * main.c (signal.h): New include.
3770 (setup_alternate_signal_stack): New function.
3771 (captured_main): Call the above.
3772 * cp-support.c (signal.h): New include.
3773 (catch_demangler_crashes): New flag.
3774 (SIGJMP_BUF): New define.
3775 (SIGSETJMP): Likewise.
3776 (SIGLONGJMP): Likewise.
3777 (gdb_demangle_jmp_buf): New static global.
3778 (gdb_demangle_attempt_core_dump): Likewise.
3779 (gdb_demangle_signal_handler): New function.
3780 (gdb_demangle): If catch_demangler_crashes is set, install the
3781 above signal handler before calling bfd_demangle, and restore
3782 the original signal handler afterwards. Display the offending
3783 symbol and call demangler_warning the first time a segmentation
3784 fault is caught.
3785 (_initialize_cp_support): New maint set/show command.
3786
3787 2014-06-19 Gary Benson <gbenson@redhat.com>
3788
3789 * utils.h (resource_limit_kind): New enum.
3790 (can_dump_core): New declaration.
3791 (warn_cant_dump_core): Likewise.
3792 (dump_core): Likewise.
3793 * utils.c (dump_core): Made nonstatic. Added new
3794 parameter "limit_kind".
3795 (can_dump_core): Made nonstatic. Moved printing code to...
3796 (warn_cant_dump_core): New function.
3797 (can_dump_core_warn): Likewise.
3798 (internal_vproblem): Replace calls to can_dump_core with
3799 calls to can_dump_core_warn. Supply new argument to each.
3800
3801 2014-06-19 Gary Benson <gbenson@redhat.com>
3802
3803 * utils.h (demangler_vwarning): New declaration.
3804 (demangler_warning): Likewise.
3805 * utils.c (struct internal_problem)
3806 <user_settable_should_quit>: New field.
3807 <user_settable_should_dump_core>: Likewise
3808 (internal_error_problem): Add values for above new fields.
3809 (internal_warning_problem): Likewise.
3810 (demangler_warning_problem): New static global.
3811 (demangler_vwarning): New function.
3812 (demangler_warning): Likewise.
3813 (add_internal_problem_command): Selectively add commands.
3814 (_initialize_utils): New internal problem command.
3815 * maint.c (maintenance_demangler_warning): New function.
3816 (_initialize_maint_cmds): New command.
3817
3818 2014-06-18 Tom Tromey <tromey@redhat.com>
3819
3820 * f-valprint.c (info_common_command_for_block): Update.
3821 * symtab.h (struct general_symbol_info) <common_block>: Now
3822 const.
3823
3824 2014-06-18 Tom Tromey <tromey@redhat.com>
3825
3826 * symtab.h (struct symtab) <blockvector>: Now const.
3827 * ada-lang.c (ada_add_global_exceptions): Update.
3828 * buildsym.c (augment_type_symtab): Update.
3829 * dwarf2read.c (dw2_lookup_symbol): Update.
3830 * jit.c (finalize_symtab): Update.
3831 * jv-lang.c (add_class_symtab_symbol): Update.
3832 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3833 Update.
3834 * objfiles.c (objfile_relocate1): Update.
3835 * psymtab.c (lookup_symbol_aux_psymtabs)
3836 (maintenance_check_psymtabs): Update.
3837 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3838 Update.
3839 * spu-tdep.c (spu_catch_start): Update.
3840 * symmisc.c (dump_symtab_1): Update.
3841 * symtab.c (lookup_global_symbol_from_objfile)
3842 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3843 (basic_lookup_transparent_type_quick)
3844 (basic_lookup_transparent_type, find_pc_sect_symtab)
3845 (find_pc_sect_line, search_symbols): Update.
3846 * block.c (find_block_in_blockvector): Make "bl" const.
3847 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3848 const.
3849 (blockvector_contains_pc): Make "bv" const.
3850 (block_for_pc_sect): Update.
3851 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3852 (blockvector_contains_pc): Update.
3853 * breakpoint.c (resolve_sal_pc): Update.
3854 * inline-frame.c (block_starting_point_at): Update.
3855
3856 2014-06-18 Tom Tromey <tromey@redhat.com>
3857
3858 * completer.c (complete_line): Make "line_buffer" const.
3859 * completer.h (complete_line): Update.
3860
3861 2014-06-18 Tom Tromey <tromey@redhat.com>
3862
3863 * symtab.c (add_macro_name): Remove unneeded cast.
3864
3865 2014-06-18 Tom Tromey <tromey@redhat.com>
3866
3867 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3868 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3869
3870 2014-06-18 Tom Tromey <tromey@redhat.com>
3871
3872 * probe.c (info_probes_for_ops): Make "arg" const.
3873 * probe.h (info_probes_for_ops): Update.
3874
3875 2014-06-18 Tom Tromey <tromey@redhat.com>
3876
3877 * varobj.c (varobj_create): Update.
3878 * valops.c (value_of_this): Update.
3879 * tracepoint.c (add_local_symbols, scope_info): Update.
3880 * symtab.h (struct general_symbol_info) <block>: Now const.
3881 * symtab.c (skip_prologue_sal)
3882 (default_make_symbol_completion_list_break_on)
3883 (skip_prologue_using_sal): Update.
3884 * stack.h (iterate_over_block_locals)
3885 (iterate_over_block_local_vars): Update.
3886 * stack.c (print_frame_args): Update.
3887 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3888 parameter const.
3889 (get_selected_block): Make return type const.
3890 * python/py-frame.c (frapy_block): Update.
3891 * python/py-block.c (gdbpy_block_for_pc): Update.
3892 * p-exp.y (%union) <bval>: Now const.
3893 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3894 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3895 * m2-exp.y (%union) <bval>: Now const.
3896 * linespec.c (get_current_search_block): Make return type const.
3897 (create_sals_line_offset, find_label_symbols): Update.
3898 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3899 Update.
3900 (block_starting_point_at): Make "block" const.
3901 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3902 (check_exception_resume): Update.
3903 * guile/scm-frame.c (gdbscm_frame_block): Update.
3904 * guile/scm-block.c (gdbscm_lookup_block): Update.
3905 * frame.h (get_frame_block): Update.
3906 (get_selected_block): Make return type const.
3907 * frame.c (frame_id_inner): Update.
3908 * f-valprint.c (info_common_command_for_block)
3909 (info_common_command): Update.
3910 * dwarf2loc.c (dwarf2_find_location_expression)
3911 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3912 (locexpr_describe_location_piece): Update.
3913 * c-exp.y (%union) <bval>: Now const.
3914 * breakpoint.c (resolve_sal_pc): Update.
3915 * blockframe.c (get_frame_block):Make return type const.
3916 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3917 (block_innermost_frame): Update.
3918 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3919 (block_for_pc, block_for_pc_sect): Update.
3920 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3921 'pblock' const.
3922 (block_for_pc_sect, block_for_pc): Make return type const.
3923 * ax-gdb.c (gen_expr): Update.
3924 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3925 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3926 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3927 (ada_read_var_value): Update.
3928 * ada-exp.y (struct name_info) <block>: Now const.
3929 (%union): Likewise.
3930 (block_lookup): Constify.
3931
3932 2014-06-18 Gary Benson <gbenson@redhat.com>
3933
3934 * nat/i386-dregs.h: New file.
3935 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3936 * i386-nat.h (i386-dregs.h): New include.
3937 (DR_FIRSTADDR): Now in i386-dregs.h.
3938 (DR_LASTADDR): Likewise.
3939 (DR_NADDR): Likewise.
3940 (DR_STATUS): Likewise.
3941 (DR_CONTROL): Likewise.
3942 (i386_debug_reg_state): Likewise.
3943 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3944
3945 2014-06-18 Don Breazeal <donb@codesourcery.com>
3946
3947 * breakpoint.c (set_longjmp_breakpoint): Call
3948 momentary_breakpoint_from_master with additional argument.
3949 (set_longjmp_breakpoint_for_call_dummy): Call
3950 momentary_breakpoint_from_master with additional argument.
3951 (set_std_terminate_breakpoint): Call
3952 momentary_breakpoint_from_master with additional argument.
3953 (momentary_breakpoint_from_master): Add argument to function
3954 definition and use it to initialize structure member flag.
3955 (clone_momentary_breakpoint): Call
3956 momentary_breakpoint_from_master with additional argument.
3957 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3958 member flags set in momentary_breakpoint_from_master.
3959
3960 2014-06-18 Gary Benson <gbenson@redhat.com>
3961
3962 * i386-nat.c (i386_show_dr): Renamed to
3963 i386_dr_show and made nonstatic. All uses updated.
3964 (i386_length_and_rw_bits): Renamed to
3965 i386_dr_length_and_rw_bits and made nonstatic.
3966 All uses updated.
3967 (i386_insert_aligned_watchpoint): Renamed to
3968 i386_dr_insert_aligned_watchpoint and made nonstatic.
3969 All uses updated.
3970 (i386_remove_aligned_watchpoint): Renamed to
3971 i386_dr_remove_aligned_watchpoint and made nonstatic.
3972 All uses updated.
3973 (i386_update_inferior_debug_regs): Renamed to
3974 i386_dr_update_inferior_debug_regs and made nonstatic.
3975 All uses updated.
3976
3977 2014-06-18 Gary Benson <gbenson@redhat.com>
3978
3979 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3980 (i386_dr_low_can_set_control): Likewise.
3981 (i386_dr_low_set_addr): Likewise.
3982 (i386_dr_low_set_control): Likewise.
3983 (i386_dr_low_get_addr): Likewise.
3984 (i386_dr_low_get_status): Likewise.
3985 (i386_dr_low_get_control): Likewise.
3986 (i386_insert_aligned_watchpoint): Use new macros.
3987 (i386_update_inferior_debug_regs): Likewise.
3988 (i386_stopped_data_address): Likewise.
3989
3990 2014-06-18 Gary Benson <gbenson@redhat.com>
3991
3992 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3993 New parameter. All uses updated.
3994
3995 2014-06-18 Gary Benson <gbenson@redhat.com>
3996
3997 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3998 All uses updated.
3999
4000 2014-06-18 Gary Benson <gbenson@redhat.com>
4001
4002 * i386-nat.c (debug_printf): New macro.
4003 (i386_get_debug_register_length): Likewise.
4004 (TARGET_HAS_DR_LEN_8): Use above macro.
4005 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4006 and printf_unfiltered. Use phex to format values.
4007
4008 2014-06-18 Gary Benson <gbenson@redhat.com>
4009
4010 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4011 Make const.
4012
4013 2014-06-18 Gary Benson <gbenson@redhat.com>
4014
4015 * i386-nat.c: Comment changes.
4016
4017 2014-06-18 Gary Benson <gbenson@redhat.com>
4018
4019 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4020
4021 2014-06-18 Gary Benson <gbenson@redhat.com>
4022
4023 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4024 (i386_insert_aligned_watchpoint): Likewise.
4025 (i386_remove_aligned_watchpoint): Likewise.
4026 (i386_handle_nonaligned_watchpoint): Likewise.
4027
4028 2014-06-18 Gary Benson <gbenson@redhat.com>
4029
4030 * i386-nat.c: Whitespace changes.
4031
4032 2014-06-17 Samuel Bronson <naesten@gmail.com>
4033
4034 * MAINTAINERS: Update Roland McGrath's email address.
4035 Thanks to Sergio Durigan Junior for pointing out that he left
4036 Red Hat a while ago, and giving me a current address.
4037
4038 2014-06-17 Tom Tromey <tromey@redhat.com>
4039
4040 * utils.h (savestring): Remove declaration.
4041
4042 2014-06-17 Tom Tromey <tromey@redhat.com>
4043
4044 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4045
4046 2014-06-16 Keith Seitz <keiths@redhat.com>
4047
4048 PR mi/15863
4049 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4050 to update the varobj if inferior_ptid is null_ptid.
4051
4052 2014-06-16 Tom Tromey <tromey@redhat.com>
4053
4054 * target.h (struct target_ops) <to_info_proc>: Make parameter
4055 const.
4056 (target_info_proc): Update.
4057 * target.c (target_info_proc): Make "args" const.
4058 * procfs.c (procfs_info_proc): Update.
4059 * linux-tdep.c (linux_info_proc): Update.
4060 (linux_core_info_proc_mappings): Make "args" const.
4061 (linux_core_info_proc): Update.
4062 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4063 * gdbarch.c: Rebuild.
4064 * gdbarch.h: Rebuild.
4065 * corelow.c (core_info_proc): Update.
4066
4067 2014-06-16 Tom Tromey <tromey@redhat.com>
4068
4069 * target.h (struct target_ops) <to_disconnect>: Make parameter
4070 const.
4071 (target_disconnect): Update.
4072 * target.c (target_disconnect): Make "args" const.
4073 * target-delegates.c: Rebuild.
4074 * remote.c (remote_disconnect): Update.
4075 * record.h (record_disconnect): Update.
4076 * record.c (record_disconnect): Update.
4077 * inf-child.c (inf_child_disconnect): Update.
4078
4079 2014-06-16 Tom Tromey <tromey@redhat.com>
4080
4081 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4082 * target.c (debug_to_rcmd, default_rcmd): Update.
4083 * target-delegates.c: Rebuild.
4084 * remote.c (remote_rcmd): Update.
4085 * monitor.c (monitor_rcmd): Update.
4086
4087 2014-06-16 Pedro Alves <palves@redhat.com>
4088
4089 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4090 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4091 have OBJF_SHARED set.
4092 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4093 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4094 instead of OBJF_USERLOADED.
4095 * objfiles.h (OBJF_SHARED): Update comment.
4096 (userloaded_objfile_contains_address_p): Rename to ...
4097 (shared_objfile_contains_address_p): ... this, and update
4098 comments.
4099 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4100 new objfile.
4101 (remove_symbol_file_command): Skip objfiles that don't have
4102 OBJF_SHARED set.
4103
4104 2014-06-16 Tom Tromey <tromey@redhat.com>
4105
4106 * minsyms.h (prim_record_minimal_symbol)
4107 (prim_record_minimal_symbol_and_info): Update comments.
4108
4109 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4110
4111 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4112 or --without-guile, according to how GDB was built.
4113
4114 2014-06-13 Tom Tromey <tromey@redhat.com>
4115
4116 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4117 to help_list.
4118 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4119 to help_list.
4120 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4121 help_list.
4122 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4123 help_list.Pass all_commands, not -1, to help_list.
4124 * cli/cli-dump.c (dump_command, append_command)
4125 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4126 (binary_dump_command, binary_append_command): Pass all_commands,
4127 not -1, to help_list.
4128 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4129 -1, to help_list.
4130 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4131 -1, to help_list.
4132 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4133 help_list.
4134 * top.c (set_history): Pass all_commands, not -1, to help_list.
4135 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4136 all_commands, not -1, to help_list.
4137 * symfile.c (overlay_command): Pass all_commands, not -1, to
4138 help_list.
4139 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4140 help_list.
4141 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4142 help_list.
4143 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4144 -1, to help_list.
4145 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4146 not -1, to help_list.
4147 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4148 not -1, to help_list.
4149 * maint.c (maintenance_command, maintenance_info_command)
4150 (maintenance_print_command, maintenance_set_cmd): Pass
4151 all_commands, not -1, to help_list.
4152 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4153 help_list.
4154 * language.c (set_check): Pass all_commands, not -1, to help_list.
4155 * infcmd.c (unset_command): Pass all_commands, not -1, to
4156 help_list.
4157 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4158 help_list.
4159 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4160 help_list.
4161 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4162 help_list.
4163 * breakpoint.c (save_command): Pass all_commands, not -1, to
4164 help_list.
4165 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4166 all_commands, not -1, to help_list.
4167
4168 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4169
4170 * regcache.c (struct register_to_invalidate): New structure.
4171 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4172 functions.
4173 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4174
4175 2014-06-12 Yao Qi <yao@codesourcery.com>
4176
4177 * varobj.c (varobj_get_num_children): Call
4178 varobj_is_dynamic_p.
4179 (varobj_list_children): Likewise.
4180 (varobj_update): Likewise. Update comments.
4181
4182 2014-06-12 Yao Qi <yao@codesourcery.com>
4183
4184 * varobj.c (varobj_pretty_printed_p): Rename to ...
4185 (varobj_is_dynamic_p): ... this. New function.
4186 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4187 (varobj_is_dynamic_p): Declare.
4188 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4189 (mi_print_value_p, varobj_update_one): Likewise.
4190
4191 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4192 Yao Qi <yao@codesourcery.com>
4193
4194 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4195 (varobj_get_iterator): Wrap up code for pretty-printer by
4196 "#if HAVE_PYTHON" and "#endif".
4197 (update_dynamic_varobj_children): Likewise.
4198
4199 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4200 Yao Qi <yao@codesourcery.com>
4201
4202 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4203 gdb_python_initialized is false. Move some code from varobj.c.
4204 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4205 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4206 (struct varobj_item): Moved to varobj-iter.h".
4207 (varobj_clear_saved_item): New function.
4208 (update_dynamic_varobj_children): Move python-related code to
4209 py-varobj.c.
4210 (free_variable): Call varobj_clear_saved_item and
4211 varobj_iter_delete.
4212
4213 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4214 Yao Qi <yao@codesourcery.com>
4215
4216 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4217 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4218 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4219 (py-varobj.o): New rule.
4220 * python/py-varobj.c: New file.
4221 * python/python-internal.h (py_varobj_get_iterator): Declare.
4222 * varobj-iter.h: New file.
4223 * varobj.c: Include "varobj-iter.h"
4224 (struct varobj) <child_iter>: Change its type from "PyObject *"
4225 to "struct varobj_iter *".
4226 <saved_item>: Likewise.
4227 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4228 [HAVE_PYTHON] (varobj_get_iterator): New function.
4229 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4230 python-specific code to python/py-varobj.c.
4231 (install_visualizer): Call varobj_iter_delete instead of
4232 Py_XDECREF.
4233 * varobj.h (varobj_ensure_python_env): Declare.
4234
4235 2014-06-12 Yao Qi <yao@codesourcery.com>
4236
4237 * varobj.c (struct varobj_item): New structure.
4238 (create_child_with_value): Update declaration.
4239 (varobj_add_child): Replace arguments 'name' and 'value' with
4240 'item'. All callers updated.
4241 (install_dynamic_child): Likewise.
4242 (update_dynamic_varobj_children): Likewise.
4243 (varobj_add_child): Likewise.
4244 (create_child_with_value): Likewise.
4245
4246 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4247
4248 * NEWS: Create a new section for the next release branch.
4249 Rename the section of the current branch, now that it has
4250 been cut.
4251
4252 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4253
4254 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4255 * version.in: Bump version to 7.8.50.DATE-cvs.
4256
4257 2014-06-11 Pedro Alves <palves@redhat.com>
4258
4259 PR remote/17028
4260 * ser-mingw.c (net_windows_socket_check_pending): New function.
4261 (net_windows_select_thread): Ignore spurious wakeups. Use
4262 net_windows_socket_check_pending.
4263 (net_windows_wait_handle): Check for pending events with
4264 ioctlsocket, through net_windows_socket_check_pending, instead of
4265 checking the socket's event.
4266
4267 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4268
4269 * python/python-internal.h (gdb_PyObject_GetAttrString)
4270 (gdb_PyObject_HasAttrString): New inline function definitions.
4271 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4272 char * of the second argument to PyObject_GetAttrString.
4273
4274 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4275
4276 * serial.c (serial_write): Fix index of character to be printed
4277 in call to serial_logchar when serial debug traces are enabled.
4278
4279 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4280
4281 * gdbtypes (resolve_dynamic_range): Add function description.
4282
4283 2014-06-09 Pedro Alves <palves@redhat.com>
4284
4285 * linux-nat.c (linux_child_follow_fork): Initialize status with
4286 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4287 inner block. Only pass the signal to PTRACE_DETACH if in pass
4288 state.
4289
4290 2014-06-09 Gary Benson <gbenson@redhat.com>
4291
4292 * common/signals.c (gdb_signal_from_host): Reorder to separate
4293 the always-available ANSI-standard signals from the signals that
4294 require checking.
4295 (do_gdb_signal_to_host): Likewise.
4296 * proc-events.c (signal_table): Likewise.
4297
4298 2014-06-08 Hui Zhu <hui@codesourcery.com>
4299
4300 * common/linux-ptrace.c (linux_disable_event_reporting): New
4301 function.
4302 * common/linux-ptrace.h (linux_disable_event_reporting): New
4303 declaration.
4304 * linux-nat.c (linux_child_follow_fork): Do a single step before
4305 detach.
4306
4307 2014-06-07 Keith Seitz <keiths@redhat.com>
4308
4309 Revert:
4310 PR c++/16253
4311 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4312 from symbol_matches_domain in symtab.c. All local callers
4313 of symbol_matches_domain updated.
4314 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4315 search STRUCT_DOMAIN.
4316 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4317 independently. standard_lookup will do that automatically.
4318 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4319 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4320 (cp_lookup_symbol_in_namespace): Likewise.
4321 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4322 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4323 may return a STRUCT_DOMAIN match.
4324 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4325 * cp-support.c: Include language.h.
4326 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4327 VAR_DOMAIN.
4328 * psymtab.c (match_partial_symbol): Compare the requested
4329 domain with the symbol's domain directly.
4330 (lookup_partial_symbol): Likewise.
4331 * symtab.c (lookup_symbol_in_language): Explain when/why
4332 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4333 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4334 appropriate languages.
4335 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4336 and moved to ada-lang.c
4337 (lookup_block_symbol): Explain that this function only returns
4338 symbol matching the requested DOMAIN.
4339 Compare the requested domain with the symbol's domain directly.
4340 (iterate_over_symbols): Compare the requested domain with the
4341 symbol's domain directly.
4342 * symtab.h (symbol_matches_domain): Remove.
4343
4344 2014-06-06 Doug Evans <xdje42@gmail.com>
4345
4346 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4347 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4348 (gdbscm_guile_version_is_at_least): Declare.
4349 (gdbscm_scm_string_to_int): Declare.
4350 * guile/guile.c (gdbscm_guile_major_version): New global.
4351 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4352 (guile_datadir): New static global.
4353 (gdbscm_guile_data_directory): New function.
4354 (initialize_scheme_side): Update.
4355 (misc_guile_functions): Add guile-data-directory.
4356 (initialize_gdb_module): Fetch guile version number.
4357 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4358 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4359 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4360 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4361 comments.
4362 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4363 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4364 * guile/scm-value.c (gdbscm_value_to_string): Only call
4365 scm_port_conversion_strategy if Guile version >= 2.0.6.
4366
4367 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4368
4369 * main.c (print_gdb_help): Add -q and --silent.
4370
4371 2014-06-06 Gary Benson <gbenson@redhat.com>
4372
4373 * common/signals.c: Remove preprocessor conditionals for
4374 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4375 SIGSEGV and SIGTERM.
4376 * proc-events.c: Likewise.
4377
4378 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4379
4380 * symfile.c (symfile_free_objfile): Remove restriction to
4381 OBJF_USERLOADED.
4382 * symfile-mem.c (symbol_file_add_from_memory): Call
4383 add_target_sections_of_objfile.
4384
4385 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4386
4387 * guile/scm-value.c (gdbscm_history_append_x): Use
4388 'vlscm_get_value_smob_arg_unsafe' instead of
4389 'vlscm_scm_to_value'.
4390
4391 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4392
4393 PR mi/15806
4394 * utils.c (printchar): Don't escape at all if quoter is NUL.
4395 Update function documentation to clarify effect of parameter
4396 QUOTER.
4397 * remote.c (escape_buffer): Pass '\\' as the quoter to
4398 fputstrn_unfiltered.
4399 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4400 generate the output.
4401 (mi_solib_unloaded): Same.
4402
4403 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4404
4405 * development.sh: Delete.
4406 * Makefile.in (config.status): Adjust dependency on development.sh.
4407 * configure.ac: Adjust development.sh source call.
4408 * configure: Regenerate.
4409
4410 2014-06-04 Doug Evans <xdje42@gmail.com>
4411
4412 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4413 is_scheme_bkpt, spec.
4414 (bpscm_make_breakpoint_smob): Initialize new members.
4415 (gdbscm_create_breakpoint_x): Split into two ...
4416 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4417 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4418 (scheme_function breakpoint_functions): Update.
4419 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4420 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4421 register-breakpoint!.
4422
4423 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4424
4425 PR server/17023
4426 * mem-break.c (z_type_supported): Return zero if
4427 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4428
4429 2014-06-04 Tom Tromey <tromey@redhat.com>
4430
4431 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4432 value_from_contents_and_address_unresolved.
4433 (ada_template_to_fixed_record_type_1): Likewise.
4434 (ada_which_variant_applies): Likewise.
4435 * value.h (value_from_contents_and_address_unresolved): Declare.
4436 * value.c (value_from_contents_and_address_unresolved): New
4437 function.
4438 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4439 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4440 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4441
4442 2014-06-04 Tom Tromey <tromey@redhat.com>
4443
4444 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4445
4446 2014-06-04 Tom Tromey <tromey@redhat.com>
4447
4448 * procfs.c (procfs_attach): Make "args" const.
4449 * windows-nat.c (windows_attach): Make "args" const.
4450 * nto-procfs.c (procfs_attach): Make "args" const.
4451 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4452 * go32-nat.c (go32_attach): Make "args" const.
4453 * gnu-nat.c (gnu_attach): Make "args" const.
4454 * darwin-nat.c (darwin_attach): Make "args" const.
4455 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4456 * linux-nat.c (linux_nat_attach): Make "args" const.
4457 * remote.c (extended_remote_attach_1, extended_remote_attach):
4458 Make "args" const.
4459 * target.h (struct target_ops) <to_attach>: Make "args" const.
4460 (find_default_attach): Likewise.
4461 * utils.c (parse_pid_to_attach): Make "args" const.
4462 * utils.h (parse_pid_to_attach): Update.
4463
4464 2014-06-04 Tom Tromey <tromey@redhat.com>
4465
4466 * target-delegates.c: Rebuild.
4467 * target.c (default_thread_address_space): New function.
4468 (target_thread_address_space): Simplify.
4469 * target.h (struct target_ops) <to_thread_address_space>: Add
4470 TARGET_DEFAULT_FUNC.
4471
4472 2014-06-04 Doug Evans <xdje42@gmail.com>
4473
4474 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4475
4476 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4477
4478 * record-btrace.c: Include event-loop.h and inf-loop.h.
4479 (record_btrace_resume_exec_dir)
4480 (record_btrace_async_inferior_event_handler)
4481 (record_btrace_handle_async_inferior_event): New.
4482 (record_btrace_open): Create async event handler.
4483 (record_btrace_close): Delete async event handler.
4484 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4485 Mark async event handler.
4486 (record_btrace_execution_direction): New.
4487 (init_record_btrace_ops): Initialize to_execution_direction.
4488
4489 2014-06-03 Doug Evans <xdje42@gmail.com>
4490
4491 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4492 (gdbscm_make_parameter): Ditto.
4493
4494 2014-06-03 Doug Evans <dje@google.com>
4495
4496 * exec.c (exec_close_1): Call clear_section_table instead of
4497 resize_section_table.
4498 (clear_section_table): New function.
4499 (resize_section_table): Make static. Rename arg num_added to
4500 adjustment.
4501 * exec.h (clear_section_table): Declare.
4502 (resize_section_table): Delete.
4503 * progspace.c (release_program_space): Call clear_section_table
4504 instead of resize_section_table.
4505
4506 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4507
4508 * NEWS (Python Scripting): Add entry about the new xmethods
4509 feature.
4510
4511 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4512
4513 * python/py-xmethods.c: New file.
4514 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4515 (objfpy_dealloc): XDECREF on the new xmethods field.
4516 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4517 field.
4518 (objfpy_get_xmethods): New function.
4519 (objfile_getset): New entry 'xmethods'.
4520 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4521 (pspy_dealloc): XDECREF on the new xmethods field.
4522 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4523 field.
4524 (pspy_get_xmethods): New function.
4525 (pspace_getset): New entry 'xmethods'.
4526 * python/python-internal.h: Add declarations for new functions.
4527 * python/python.c (_initialize_python): Invoke
4528 gdbpy_initialize_xmethods.
4529 * python/lib/gdb/__init__.py (xmethods): New
4530 attribute.
4531 * python/lib/gdb/xmethod.py: New file.
4532 * python/lib/gdb/command/xmethods.py: New file.
4533
4534 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4535
4536 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4537 best match method returned by find_overload_match is an xmethod.
4538 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4539 the best matching operator returned by find_overload_match is an
4540 xmethod.
4541 * valops.c: #include "extension.h".
4542 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4543 Return void. The list of matching source methods is returned in
4544 "fn_list" and a vector of matching debug method workers is
4545 returned in "xm_worker_vec". Update all callers.
4546 (value_find_oload_method_list): Likewise.
4547 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4548 non-NULL, then the index of the best matching method in this
4549 vector is returned. Update all callers.
4550 (find_overload_match): Include xmethods while performing overload
4551 resolution.
4552
4553 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4554
4555 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4556 * extension-priv.h (struct extension_language_ops): Add the
4557 xmethod interface.
4558 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4559 get_matching_xmethod_workers, get_xmethod_argtypes,
4560 invoke_xmethod, free_xmethod_worker,
4561 free_xmethod_worker_vec): New functions.
4562 * extension.h: #include "common/vec.h".
4563 New function declarations.
4564 (struct xmethod_worker): New struct.
4565 (VEC (xmethod_worker_ptr)): New vector type.
4566 (xmethod_worker_ptr): New typedef.
4567 (xmethod_worker_vec): Likewise.
4568 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4569 builtin_type.
4570 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4571 (struct builtin_type): New field "xmethod".
4572 * valarith.c (value_ptradd): Assert that the value argument is not
4573 lval_xcallable.
4574 * valops.c (value_must_coerce_to_target): Return 0 for
4575 lval_xcallable values.
4576 * value.c (struct value): New field XM_WORKER in the field
4577 LOCATION.
4578 (value_address, value_raw_address): Return 0 for lval_xcallable
4579 values.
4580 (set_value_address): Assert that the value is not an
4581 lval_xcallable.
4582 (value_free): Free the associated xmethod worker when freeing
4583 lval_xcallable values.
4584 (set_value_component_location): Assert that the WHOLE value is not
4585 lval_xcallable.
4586 (value_of_xmethod, call_xmethod): New functions.
4587 * value.h: Declare "struct xmethod_worker".
4588 Declare new functions value_of_xmethod, call_xmethod.
4589
4590 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4591 Pedro Alves <palves@redhat.com>
4592
4593 PR breakpoints/17000
4594 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4595 New function, extracted from software_breakpoint_inserted_here_p.
4596 (software_breakpoint_inserted_here_p): Replace factored out code
4597 by call to find_non_raw_software_breakpoint_inserted_here.
4598 (bp_target_info_copy_insertion_state): New function.
4599 (bkpt_insert_location): Handle the case of a single-step
4600 breakpoint already inserted at the same address.
4601 (bkpt_remove_location): Handle the case of a single-step
4602 breakpoint still inserted at the same address.
4603 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4604 breakpoint already inserted at the same address.
4605 (deprecated_remove_raw_breakpoint): Handle the case of a
4606 non-raw breakpoint still inserted at the same address.
4607 (find_single_step_breakpoint): New function, extracted from
4608 single_step_breakpoint_inserted_here_p.
4609 (find_single_step_breakpoint): New function,
4610 factored out from single_step_breakpoint_inserted_here_p.
4611 (single_step_breakpoint_inserted_here_p): Reimplement.
4612
4613 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4614
4615 Pushed by Joel Brobecker <brobecker@adacore.com>
4616 * source.c (show_substitute_path_command): Fix display of matching
4617 substitution rules.
4618
4619 2014-06-03 Gary Benson <gbenson@redhat.com>
4620
4621 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4622
4623 2014-06-02 Doug Evans <xdje42@gmail.com>
4624
4625 Add parameter support for Guile.
4626 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4627 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4628 (scm-param.o): New rule.
4629 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4630 (gdbscm_misc_error): Declare.
4631 (gdbscm_canonicalize_command_name): Declare.
4632 (gdbscm_scm_to_host_string): Declare.
4633 (gdbscm_scm_from_host_string): Declare.
4634 (gdbscm_initialize_parameters): Declare.
4635 * guile/guile.c (initialize_gdb_module): Call
4636 gdbscm_initialize_parameters.
4637 * guile/lib/gdb.scm: Export parameter symbols.
4638 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4639 cmdscm_canonicalize_name and made public. All callers updated.
4640 * guile/scm-exception.c (gdbscm_misc_error): New function.
4641 * guile/scm-param.c: New file.
4642 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4643 (gdbscm_scm_to_host_string): New function.
4644 (gdbscm_scm_from_host_string): New function.
4645 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4646
4647 2014-06-02 Doug Evans <xdje42@gmail.com>
4648
4649 Add command support for Guile.
4650 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4651 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4652 (scm-cmd.o): New rule.
4653 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4654 (gdbscm_user_error_p): Declare.
4655 (gdbscm_parse_command_name): Declare.
4656 (gdbscm_valid_command_class_p): Declare.
4657 (gdbscm_initialize_commands): Declare.
4658 * guile/guile.c (initialize_gdb_module): Call
4659 gdbscm_initialize_commands.
4660 * guile/lib/gdb.scm: Export command symbols.
4661 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4662 (throw-user-error): New function.
4663 * guile/scm-cmd.c: New file.
4664 * guile/scm-exception.c (user_error_symbol): New static global.
4665 (gdbscm_user_error_p): New function.
4666 (gdbscm_initialize_exceptions): Set user_error_symbol.
4667 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4668
4669 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4670
4671 * top.c (command_loop): Handle comments here...
4672 (command_line_input): ... not here.
4673
4674 2014-06-02 Doug Evans <xdje42@gmail.com>
4675
4676 Add progspace support for Guile.
4677 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4678 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4679 (scm-progspace.o): New rule.
4680 * guile/guile-internal.h (pspace_smob): New typedef.
4681 (psscm_pspace_smob_pretty_printers): Declare.
4682 (psscm_pspace_smob_from_pspace): Declare.
4683 (psscm_scm_from_pspace): Declare.
4684 * guile/guile.c (initialize_gdb_module): Call
4685 gdbscm_initialize_pspaces.
4686 * guile/lib/gdb.scm: Export progspace symbols.
4687 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4688 support.
4689 (append-pretty-printer!): Ditto.
4690 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4691 Implement.
4692 * guile/scm-progspace.c: New file.
4693
4694 2014-06-03 Alan Modra <amodra@gmail.com>
4695
4696 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4697 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4698
4699 2014-06-02 Doug Evans <dje@google.com>
4700
4701 Add support for skeletonless type units.
4702 * dwarf2read.c (struct dwarf2_per_objfile): New member
4703 n_allocated_type_units.
4704 (struct dwarf2_per_objfile) <tu_stats>: New member
4705 nr_all_type_units_reallocs.
4706 (create_signatured_type_table_from_index): Initialize
4707 n_allocated_type_units
4708 (create_all_type_units): Ditto.
4709 (add_type_unit): Move up in file. New arg slot.
4710 All callers updated. Increase space for all_type_units more
4711 efficiently.
4712 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4713 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4714 (lookup_dwp_signatured_type): Ditto.
4715 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4716 All callers updated.
4717 (build_type_psymtabs_1): Leave type_unit_groups as
4718 NULL if no TUs present.
4719 (print_tu_stats): New function.
4720 (process_skeletonless_type_unit): New function.
4721 (process_dwo_file_for_skeletonless_type_units): New
4722 function.
4723 (process_skeletonless_type_units): New function.
4724 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4725 Call print tu_stats if debugging enabled.
4726
4727 2014-06-02 Pedro Alves <palves@redhat.com>
4728
4729 * breakpoint.c (build_target_command_list): Don't build a command
4730 list if we have any duplicate location that isn't a dprintf.
4731
4732 2014-06-02 Pedro Alves <palves@redhat.com>
4733
4734 * breakpoint.c (dprintf_breakpoint_hit): New function.
4735 (initialize_breakpoint_ops): Install it as dprintf's
4736 breakpoint_hit method.
4737
4738 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4739
4740 * source.c (substitute_path_rule_matches): Simplify using
4741 filename_ncmp instead of FILENAME_CMP.
4742
4743 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4744
4745 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4746
4747 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4748
4749 * configure.ac: When Guile is available, check for the
4750 availability of 'scm_new_smob'.
4751 * configure, config.h.in: Regenerate.
4752 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4753 function.
4754
4755 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4756
4757 * frame.c (struct frame_info): Add stop_string field.
4758 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4759 (get_prev_frame_always): Old content moved into
4760 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4761 TRY_CATCH, handle MEMORY_ERROR exceptions.
4762 (frame_stop_reason_string): New function definition.
4763 * frame.h (unwind_stop_reason_to_string): Extend comment to
4764 mention frame_stop_reason_string.
4765 (frame_stop_reason_string): New function declaration.
4766 * stack.c (frame_info): Switch to frame_stop_reason_string.
4767 (backtrace_command_1): Switch to frame_stop_reason_string.
4768 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4769 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4770 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4771
4772 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4773
4774 * frame.c (frame_stop_reason_string): Rename to ...
4775 (unwind_stop_reason_to_string): this.
4776 * frame.h (frame_stop_reason_string): Rename to ...
4777 (unwind_stop_reason_to_string): this.
4778 * stack.c (frame_info): Update call to frame_stop_reason_string.
4779 (backtrace_command_1): Likewise.
4780 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4781 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4782
4783 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4784
4785 * frame.c (remove_prev_frame): New function.
4786 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4787 remove_prev_frame.
4788
4789 2014-05-29 Pedro Alves <palves@redhat.com>
4790
4791 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4792 and make it const. When a single-step decays to a continue,
4793 clear 'step', not 'hw_step'. Pass whether the caller wanted
4794 to step to user_visible_resume_ptid, not what we ask the
4795 target to do.
4796
4797 2014-05-29 Pedro Alves <palves@redhat.com>
4798
4799 * infrun.c (process_event_stop_test, handle_step_into_function)
4800 (handle_step_into_function_backward): Adjust.
4801 Don't set the even thread's stop_step and call stop_waiting before
4802 calling end_stepping_range. Instead do that ...
4803 (end_stepping_range): ... here. Take an ecs pointer parameter.
4804
4805 2014-05-29 Pedro Alves <palves@redhat.com>
4806
4807 * infrun.c (stop_stepping): Rename to ...
4808 (stop_waiting): ... this.
4809 (proceed): Update comment.
4810 (process_event_stop_test, handle_inferior_event)
4811 (handle_signal_stop, handle_step_into_function)
4812 (handle_step_into_function_backward): Update.
4813
4814 2014-05-29 Pedro Alves <palves@redhat.com>
4815
4816 * infcall.c (run_inferior_call): Don't check whether the current
4817 thread is running after the proceed call.
4818
4819 2014-05-29 Pedro Alves <palves@redhat.com>
4820 Tom Tromey <tromey@redhat.com>
4821
4822 * NEWS: Mention "maint set target-async", "set mi-async", and that
4823 background execution commands are now always available.
4824 * target.h (target_async_permitted): Update comment.
4825 * target.c (target_async_permitted, target_async_permitted_1):
4826 Default to 1.
4827 (set_target_async_command): Rename to ...
4828 (maint_set_target_async_command): ... this.
4829 (show_target_async_command): Rename to ...
4830 (maint_show_target_async_command): ... this.
4831 (_initialize_target): Adjust.
4832 * infcmd.c (prepare_execution_command): Make extern.
4833 * inferior.h (prepare_execution_command): Declare.
4834 * infrun.c (set_observer_mode): Leave target async alone.
4835 * mi/mi-interp.c (mi_interpreter_init): Install
4836 mi_on_sync_execution_done as sync_execution_done observer.
4837 (mi_on_sync_execution_done): New function.
4838 (mi_execute_command_input_handler): Don't print the prompt if we
4839 just started a synchronous command with an async target.
4840 (mi_on_resume): Check sync_execution before printing prompt.
4841 * mi/mi-main.h (mi_async_p): Declare.
4842 * mi/mi-main.c: Include gdbcmd.h.
4843 (mi_async_p): New function.
4844 (mi_async, mi_async_1): New globals.
4845 (set_mi_async_command, show_mi_async_command, mi_async): New
4846 functions.
4847 (exec_continue): Call prepare_execution_command.
4848 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4849 (mi_execute_async_cli_command): Use mi_async_p.
4850 (_initialize_mi_main): Install "set mi-async". Make
4851 "target-async" a deprecated alias.
4852
4853 2014-05-29 Pedro Alves <palves@redhat.com>
4854
4855 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4856 (_initialize_cli_interp): Adjust.
4857 * event-loop.c: Include "observer.h".
4858 (start_event_loop): Notify 'command_error' observers instead of
4859 calling display_gdb_prompt. Remove FIXME comment.
4860 * event-top.c (display_gdb_prompt): Remove call into the
4861 interpreters.
4862 * inf-loop.c: Include "observer.h".
4863 (inferior_event_handler): Notify 'command_error' observers instead
4864 of calling display_gdb_prompt.
4865 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4866 observers instead of calling display_gdb_prompt.
4867 * interps.c (interp_set): Don't call display_gdb_prompt.
4868 (current_interp_display_prompt_p): Delete.
4869 * interps.h (interp_prompt_p): Delete declaration.
4870 (interp_prompt_p_ftype): Delete.
4871 (struct interp_procs) <prompt_proc_p>: Delete field.
4872 (current_interp_display_prompt_p): Delete declaration.
4873 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4874 (_initialize_mi_interp): Adjust.
4875 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4876 'command_error' observers.
4877 (tui_on_sync_execution_done, tui_on_command_error): New
4878 functions.
4879 (tui_display_prompt_p): Delete.
4880 (_initialize_tui_interp): Adjust.
4881
4882 2014-05-29 Pedro Alves <palves@redhat.com>
4883
4884 PR gdb/13860
4885 * cli/cli-interp.c: Include infrun.h and observer.h.
4886 (cli_uiout, cli_interp): New globals.
4887 (cli_on_signal_received, cli_on_end_stepping_range)
4888 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4889 functions.
4890 (cli_interpreter_init): Install them as 'end_stepping_range',
4891 'signal_received' 'signal_exited', 'exited' and 'no_history'
4892 observers.
4893 (_initialize_cli_interp): Remove cli_interp local.
4894 * infrun.c (handle_inferior_event): Call the several stop reason
4895 observers instead of printing the stop reason directly.
4896 (end_stepping_range): New function.
4897 (print_end_stepping_range_reason, print_signal_exited_reason)
4898 (print_exited_reason, print_signal_received_reason)
4899 (print_no_history_reason): Make static, and add an uiout
4900 parameter. Print to that instead of to CURRENT_UIOUT.
4901 * infrun.h (print_end_stepping_range_reason)
4902 (print_signal_exited_reason, print_exited_reason)
4903 (print_signal_received_reason print_no_history_reason): New
4904 declarations.
4905 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4906 'mi_uiout'.
4907 <cli_uiout>: New field.
4908 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4909 uiout for CLI output. Install 'signal_received',
4910 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4911 observers.
4912 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4913 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4914 (mi_on_no_history): New functions.
4915 (ui_out_free_cleanup): Delete function.
4916 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4917 instead use the one already stored in the MI interpreter data.
4918 (mi_ui_out): Adjust.
4919 * tui/tui-interp.c: Include infrun.h and observer.h.
4920 (tui_interp): New global.
4921 (tui_on_signal_received, tui_on_end_stepping_range)
4922 (tui_on_signal_exited, tui_on_exited)
4923 (tui_on_no_history): New functions.
4924 (tui_init): Install them as 'end_stepping_range',
4925 'signal_received' 'signal_exited', 'exited' and 'no_history'
4926 observers.
4927 (_initialize_tui_interp): Delete tui_interp local.
4928
4929 2014-05-29 Pedro Alves <palves@redhat.com>
4930
4931 PR gdb/15713
4932 * linux-nat.c (linux_nat_resume_callback): Rename the second
4933 parameter to 'except'. Skip LP if it points to EXCEPT.
4934 (linux_nat_resume): Don't mark the event lwp as not stopped
4935 before resuming sibling lwps. Instead ask
4936 linux_nat_resume_callback to skip the event lwp. Mark it as not
4937 stopped after actually resuming it.
4938 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4939 resuming it.
4940 (wait_lwp): Mark the lwp as stopped here.
4941 (stop_wait_callback): Mark the lwp as not stopped right after
4942 resuming it. Don't mark lwps as stopped here.
4943 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4944 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4945
4946 2014-05-29 Pedro Alves <palves@redhat.com>
4947
4948 PR PR15693
4949 * infrun.c (resume): Determine how much to resume depending on
4950 whether the caller wanted a step, not whether we can hardware step
4951 the target. Mark all threads that we intend to run as running,
4952 unless we're calling an inferior function.
4953 (normal_stop): If the thread is running an infcall, don't finish
4954 thread state.
4955 * target.c (target_resume): Don't mark threads as running here.
4956
4957 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4958
4959 * serial.c (_initialize_serial): Remove support for
4960 the "set remotebaud" and "show remotebaud" commands.
4961 * NEWS: Add entry documenting the removal of that command.
4962
4963 2014-05-28 Yao Qi <yao@codesourcery.com>
4964
4965 * charset.c: Fix typo in comments.
4966
4967 2014-05-27 Gary Benson <gbenson@redhat.com>
4968
4969 * utils.c (internal_vproblem): Prompt for a bug report.
4970
4971 2014-05-26 Andy Wingo <wingo@igalia.com>
4972
4973 * guile/scm-arch.c (arscm_mark_arch_smob):
4974 * guile/scm-block.c (bkscm_mark_block_smob)
4975 (bkscm_mark_block_syms_progress_smob):
4976 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4977 * guile/scm-exception.c (exscm_mark_exception_smob):
4978 * guile/scm-frame.c (frscm_mark_frame_smob):
4979 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4980 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4981 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4982 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4983 (ppscm_mark_pretty_printer_worker_smob):
4984 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4985 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4986 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4987 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4988 mark functions.
4989 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4990 function.
4991
4992 2014-05-26 Andy Wingo <wingo@igalia.com>
4993 Doug Evans <xdje42@gmail.com>
4994
4995 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4996 empty_base_class. All uses updated.
4997 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4998 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4999 Adapt all callers.
5000 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5001 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5002 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5003 (gdbscm_gsmob_has_property_p, add_property_name)
5004 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5005 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5006 (gdb-object-has-property?, gdb-object-properties): Remove.
5007 (gdb-object-kind): Renamed from gsmob-kind.
5008
5009 2014-05-26 Andy Wingo <wingo@igalia.com>
5010
5011 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5012 * configure: Regenerate.
5013
5014 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5015
5016 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5017
5018 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5019
5020 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5021 (replay_memory_access_read_only, replay_memory_access_read_write)
5022 (replay_memory_access_types, replay_memory_access)
5023 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5024 (cmd_set_record_btrace, cmd_show_record_btrace)
5025 (cmd_show_replay_memory_access): New.
5026 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5027 (record_btrace_remove_breakpoint): Replace
5028 record_btrace_allow_memory_access with replay_memory_access.
5029 (_initialize_record_btrace): Add commands.
5030 * NEWS: Announce it.
5031
5032 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5033
5034 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5035
5036 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5037
5038 * MAINTAINERS (Write After Approval): Move self back from
5039 paper trail.
5040
5041 2014-05-22 Pedro Alves <palves@redhat.com>
5042
5043 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5044 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5045 (disable_randomization, enum exec_direction_kind)
5046 (execution_direction, stop_registers, start_remote)
5047 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5048 (wait_for_inferior, normal_stop, get_last_target_status)
5049 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5050 (insert_step_resume_breakpoint_at_sal)
5051 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5052 (set_step_info, print_stop_event, signal_stop_state)
5053 (signal_print_state, signal_pass_state, signal_stop_update)
5054 (signal_print_update, signal_pass_update)
5055 (update_signals_program_target, clear_exit_convenience_vars)
5056 (displaced_step_dump_bytes, update_observer_mode)
5057 (signal_catch_update, gdb_signal_from_command): Move
5058 declarations ...
5059 * infrun.h: ... to this new file.
5060 * amd64-tdep.c: Include infrun.h.
5061 * annotate.c: Include infrun.h.
5062 * arch-utils.c: Include infrun.h.
5063 * arm-linux-tdep.c: Include infrun.h.
5064 * arm-tdep.c: Include infrun.h.
5065 * break-catch-sig.c: Include infrun.h.
5066 * breakpoint.c: Include infrun.h.
5067 * common/agent.c: Include infrun.h instead of inferior.h.
5068 * corelow.c: Include infrun.h.
5069 * event-top.c: Include infrun.h.
5070 * go32-nat.c: Include infrun.h.
5071 * i386-tdep.c: Include infrun.h.
5072 * inf-loop.c: Include infrun.h.
5073 * infcall.c: Include infrun.h.
5074 * infcmd.c: Include infrun.h.
5075 * infrun.c: Include infrun.h.
5076 * linux-fork.c: Include infrun.h.
5077 * linux-nat.c: Include infrun.h.
5078 * linux-thread-db.c: Include infrun.h.
5079 * monitor.c: Include infrun.h.
5080 * nto-tdep.c: Include infrun.h.
5081 * procfs.c: Include infrun.h.
5082 * record-btrace.c: Include infrun.h.
5083 * record-full.c: Include infrun.h.
5084 * remote-m32r-sdi.c: Include infrun.h.
5085 * remote-mips.c: Include infrun.h.
5086 * remote-notif.c: Include infrun.h.
5087 * remote-sim.c: Include infrun.h.
5088 * remote.c: Include infrun.h.
5089 * reverse.c: Include infrun.h.
5090 * rs6000-tdep.c: Include infrun.h.
5091 * s390-linux-tdep.c: Include infrun.h.
5092 * solib-irix.c: Include infrun.h.
5093 * solib-osf.c: Include infrun.h.
5094 * solib-svr4.c: Include infrun.h.
5095 * target.c: Include infrun.h.
5096 * top.c: Include infrun.h.
5097 * windows-nat.c: Include infrun.h.
5098 * mi/mi-interp.c: Include infrun.h.
5099 * mi/mi-main.c: Include infrun.h.
5100 * python/py-threadevent.c: Include infrun.h.
5101
5102 2014-05-22 Pedro Alves <palves@redhat.com>
5103
5104 * infrun.c (handle_inferior_event): Store the exit code for
5105 --return-child-result here, instead of ...
5106 (print_exited_reason): ... here.
5107
5108 2014-05-21 Pedro Alves <palves@redhat.com>
5109
5110 PR gdb/13860
5111 * gdbthread.h (struct thread_control_state): New field
5112 `command_interp'.
5113 * infrun.c (follow_fork): Copy the new thread control field to the
5114 child fork thread.
5115 (clear_proceed_status_thread): Clear the new thread control field.
5116 (proceed): Set the new thread control field.
5117 * interps.h (command_interp): Declare.
5118 * interps.c (command_interpreter): New global.
5119 (command_interp): New function.
5120 (interp_exec): Set `command_interpreter' while here.
5121 * cli-out.c (cli_uiout_dtor): New function.
5122 (cli_ui_out_impl): Install it.
5123 * mi/mi-interp.c: Include cli-out.h.
5124 (mi_cmd_interpreter_exec): Add comment.
5125 (restore_current_uiout_cleanup): New function.
5126 (ui_out_free_cleanup): New function.
5127 (mi_on_normal_stop): If finishing an execution command started by
5128 a CLI command, or any kind of breakpoint-like event triggered,
5129 print the stop event to the output (CLI) stream.
5130 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5131
5132 2014-05-21 Pedro Alves <palves@redhat.com>
5133
5134 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5135 current source line having changed.
5136 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5137 * infrun.c (normal_stop): Adjust call to
5138 set_current_sal_from_frame.
5139 * source.c (clear_lines_listed_range): New function.
5140 (set_current_source_symtab_and_line, identify_source_line): Clear
5141 the lines listed range.
5142 (line_info): Handle the first "info line" after the current source
5143 line having changed.
5144 * stack.c (print_stack_frame): Remove center handling.
5145 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5146 center sal.line.
5147
5148 2014-05-21 Pedro Alves <palves@redhat.com>
5149
5150 * inf-child.c (inf_child_mourn_inferior): New function.
5151 * inf-child.h (inf_child_mourn_inferior): New declaration.
5152 * darwin-nat.c (darwin_mourn_inferior): Use
5153 inf_child_mourn_inferior.
5154 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5155 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5156 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5157 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5158 * windows-nat.c (windows_mourn_inferior): Likewise.
5159
5160 2014-05-21 Doug Evans <xdje42@gmail.com>
5161
5162 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5163
5164 2014-05-21 Doug Evans <xdje42@gmail.com>
5165
5166 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5167 (gdbscm_out_of_range_error): Ditto.
5168 (gdbscm_memory_error): Ditto.
5169 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5170 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5171 (gdbscm_out_of_range_error): Update.
5172 (gdbscm_memory_error): Update.
5173 (gdbscm_scm_to_target_string_unsafe): Delete.
5174
5175 2014-05-21 Pedro Alves <palves@redhat.com>
5176
5177 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5178 globals.
5179 (inf_child_open_target): New function.
5180 (inf_child_open): Use inf_child_open_target to push the target
5181 instead of erroring out.
5182 (inf_child_disconnect, inf_child_close)
5183 (inf_child_maybe_unpush_target): New functions.
5184 (inf_child_target): Install inf_child_disconnect and
5185 inf_child_close. Store a pointer to the returned object.
5186 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5187 declarations.
5188 * target.c (auto_connect_native_target): New global.
5189 (show_default_run_target): New function.
5190 (find_default_run_target): Return NULL if automatically connecting
5191 to the native target is disabled.
5192 (_initialize_target): Install set/show auto-connect-native-target.
5193 * NEWS: Mention "set auto-connect-native-target", and "target
5194 native".
5195 * linux-nat.c (super_close): New global.
5196 (linux_nat_close): Call super_close.
5197 (linux_nat_add_target): Store a pointer to the base class's
5198 to_close method.
5199 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5200 inf_child_maybe_unpush.
5201 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5202 already pushed.
5203 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5204 the inferior. Use inf_child_maybe_unpush_target.
5205 (inf_ttrace_attach): Don't push the target if it is already
5206 pushed.
5207 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5208 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5209 after mourning the inferior. Use inf_child_maybe_unpush_target.
5210 (darwin_attach_pid): Don't push the target if it is already
5211 pushed.
5212 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5213 mourning the inferior. Use inf_child_maybe_unpush_target.
5214 (gnu_detach): Use inf_child_maybe_unpush_target.
5215 * go32-nat.c (go32_create_inferior): Don't push the target if it
5216 is already pushed.
5217 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5218 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5219 (procfs_open): Rename to ...
5220 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5221 comments. Can target_preopen before changing node. Call
5222 inf_child_open_target to push the target explicitly.
5223 (procfs_attach): Don't push the target if it is already pushed.
5224 (procfs_detach): Use inf_child_maybe_unpush_target.
5225 (procfs_create_inferior): Don't push the target if it is already
5226 pushed.
5227 (nto_native_ops): New global.
5228 (procfs_open): Reimplement.
5229 (procfs_native_open): New function.
5230 (init_procfs_targets): Install procfs_native_open as to_open of
5231 "target native". Store a pointer to the "native" target in
5232 nto_native_ops.
5233 * procfs.c (procfs_attach): Don't push the target if it is already
5234 pushed.
5235 (procfs_detach): Use inf_child_maybe_unpush_target.
5236 (procfs_mourn_inferior): Only unpush the target after mourning the
5237 inferior. Use inf_child_maybe_unpush_target.
5238 (procfs_init_inferior): Don't push the target if it is already
5239 pushed.
5240 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5241 if it is already pushed.
5242
5243 2014-05-21 Pedro Alves <palves@redhat.com>
5244
5245 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5246 and "procfs" targets are now called "native" instead.
5247
5248 2014-05-21 Pedro Alves <palves@redhat.com>
5249
5250 * go32-nat.c (go32_open): Delete.
5251 (go32_target): Don't override the to_open method.
5252
5253 2014-05-21 Pedro Alves <palves@redhat.com>
5254
5255 * nto-procfs.c (procfs_can_run): New function.
5256 (nto_procfs_ops): New global.
5257 (init_procfs_targets): New, based on procfs_target. Install
5258 "target native" in addition to "target procfs".
5259 (_initialize_procfs): Call init_procfs_targets instead of adding
5260 the target here.
5261
5262 2014-05-21 Pedro Alves <palves@redhat.com>
5263
5264 * windows-nat.c (windows_target): Don't override to_shortname,
5265 to_longname or to_doc.
5266
5267 2014-05-21 Pedro Alves <palves@redhat.com>
5268
5269 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5270 to_doc.
5271
5272 2014-05-21 Pedro Alves <palves@redhat.com>
5273
5274 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5275 to_shortname, to_longname or to_doc.
5276
5277 2014-05-21 Pedro Alves <palves@redhat.com>
5278
5279 * go32-nat.c (go32_target): Don't override to_shortname,
5280 to_longname or to_doc.
5281
5282 2014-05-21 Pedro Alves <palves@redhat.com>
5283
5284 * inf-child.c (inf_child_open): Remove mention of "child".
5285 (inf_child_target): Rename target to "native" instead of "child".
5286
5287 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5288
5289 * Makefile.in (SFILES): Delete "regset.c".
5290 (COMMON_OBS): Delete "regset.o".
5291 * regset.c: Remove.
5292 * regset.h (regset_alloc): Delete prototype.
5293
5294 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5295
5296 * sparc-linux-tdep.c (sparc32_linux_gregset)
5297 (sparc32_linux_fpregset): New static regset structures.
5298 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5299 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5300 'fpregset' fields.
5301 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5302 (sparc64_linux_fpregset): New static regset structures.
5303 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5304 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5305 New static regset structures.
5306 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5307 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5308 New static regset structures.
5309 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5310 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5311 New static regset structures.
5312 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5313 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5314 New static regset structures.
5315 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5316
5317 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5318
5319 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5320 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5321 register maps ("regmaps") from "*regset" to "*regmap". Do this
5322 for all regmap types and variables.
5323 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5324 (sparc32_linux_supply_core_gregset)
5325 (sparc32_linux_collect_core_gregset)
5326 (sparc32_linux_supply_core_fpregset)
5327 (sparc32_linux_collect_core_fpregset): Likewise.
5328 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5329 (sparc_gregmap, sparc_fpregmap): ... these.
5330 (sparc_supply_gregset, sparc_collect_gregset)
5331 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5332 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5333 (_initialize_sparc_nat): Rename regmaps.
5334 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5335 (sparc_gregmap, sparc_fpregmap): ... these.
5336 (sparc_supply_gregset, sparc_collect_gregset)
5337 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5338 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5339 Rename macros to...
5340 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5341 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5342 Likewise.
5343 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5344 Rename to...
5345 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5346 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5347 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5348 regmaps.
5349 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5350 (sparc32_bsd_fpregset): Rename to...
5351 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5352 (sparc32_bsd_fpregmap): ... these.
5353 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5354 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5355 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5356 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5357 (struct sparc_gregmap, struct sparc_fpregmap)
5358 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5359 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5360 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5361 (sparc32_supply_regset, sparc32_collect_gregset)
5362 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5363 prototypes.
5364 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5365 (sparc64_linux_ptrace_gregmap): ... this.
5366 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5367 (_initialize_sparc64_linux_nat): Rename regmaps.
5368 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5369 (sparc64_linux_core_gregmap): ... this.
5370 (sparc64_linux_supply_core_gregset)
5371 (sparc64_linux_collect_core_gregset)
5372 (sparc64_linux_supply_core_fpregset)
5373 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5374 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5375 (sparc64_sol2_fpregset): Rename to...
5376 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5377 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5378 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5379 regmaps.
5380 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5381 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5382 (sparc64_bsd_fpregset): Rename to...
5383 (struct sparc_gregmap, sparc64_sol2_gregmap)
5384 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5385 (sparc64_bsd_fpregmap): ... these.
5386 (sparc64_supply_gregset, sparc64_collect_gregset)
5387 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5388 prototypes.
5389 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5390 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5391 (sparc64fbsd_gregmap): ... this.
5392 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5393 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5394 Rename regmaps.
5395 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5396 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5397 (sparc64nbsd_collect_fpregset): Likewise.
5398 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5399 (sparc64nbsd_gregmap): ... this.
5400 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5401 regmaps.
5402 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5403 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5404 (sparc64obsd_gregmap): ... this.
5405 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5406 regmaps.
5407 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5408 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5409 (sparc32nbsd_gregmap): ... this.
5410 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5411 regmaps.
5412
5413 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5414
5415 * score-tdep.c (score7_linux_gregset): New static regset
5416 structure.
5417 (score7_linux_regset_from_core_section): Remove dynamic regset
5418 allocation.
5419 (score_gdbarch_init): Drop allocation of tdep structure.
5420 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5421
5422 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5423
5424 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5425 regset structures.
5426 (am33_regset_from_core_section): Remove dynamic regset
5427 allocations.
5428
5429 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5430
5431 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5432 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5433 structures.
5434 (mips_linux_regset_from_core_section): Remove dynamic regset
5435 allocations.
5436 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5437 'gregset64', 'fpregset', and 'fpregset64'.
5438 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5439 deleted tdep fields.
5440
5441 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5442
5443 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5444 regset structures.
5445 (amd64_regset_from_core_section): Remove dynamic regset
5446 allocations.
5447 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5448 structure.
5449 (amd64obsd_regset_from_core_section): Remove dynamic regset
5450 allocation.
5451 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5452 Likewise.
5453 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5454 x86-common regset supply function.
5455 * i386-tdep.c (i386_collect_gregset): Make static.
5456 (i386_gregset): New global regset structure.
5457 (i386_fpregset, i386_xstateregset): New static regset structures.
5458 (i386_regset_from_core_section): Remove dynamic regset
5459 allocations.
5460 (i386_gdbarch_init): Remove initialization of tdep fields
5461 'gregset', 'fpregset', and 'xstateregset'.
5462 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5463 'fpregset', and 'xstateregset'.
5464 (i386_collect_gregset): Remove prototype.
5465 (i386_gregset): New declaration.
5466 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5467 structure.
5468 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5469 allocation.
5470
5471 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5472
5473 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5474 (arm_linux_vfpregset): New static regset structures.
5475 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5476 regset structures.
5477 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5478 and 'vfpregset' fields.
5479
5480 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5481
5482 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5483 (aarch64_linux_fpregset): New static regset structures.
5484 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5485 of regset structures.
5486 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5487 'fpregset' fields.
5488
5489 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5490
5491 * regset.h (struct regset): Remove gdbarch field.
5492 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5493 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5494 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5495 Likewise.
5496 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5497 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5498 (ppc32_linux_vsxregset): Likewise.
5499 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5500 via the regcache instead of the regset.
5501 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5502 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5503 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5504 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5505 Likewise.
5506
5507 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5508
5509 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5510 Constify structures.
5511 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5512 (alphanbsd_aout_gregset): Likewise.
5513 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5514 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5515 Likewise.
5516 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5517 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5518 Likewise.
5519 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5520 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5521 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5522 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5523 * m88k-tdep.c (m88k_gregset): Likewise.
5524 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5525 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5526 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5527 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5528 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5529 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5530 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5531 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5532 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5533 Likewise.
5534 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5535 * sh-tdep.h (sh_corefile_gregset): Likewise.
5536 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5537 * vax-tdep.c (vax_gregset): Likewise.
5538
5539 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5540
5541 Fix TLS access for -static -pthread.
5542 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5543 (try_thread_db_load_1): Initialize it.
5544 (thread_db_get_thread_local_address): Call it if LM is zero.
5545 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5546 * target.h (struct target_ops) (to_get_thread_local_address): Add
5547 load_module_addr comment.
5548
5549 2014-05-21 Pedro Alves <palves@redhat.com>
5550
5551 * dcache.c (dcache_read_memory_partial): If reading the cache line
5552 fails, fallback to reading just the memory the caller wanted.
5553
5554 2014-05-20 Doug Evans <dje@google.com>
5555
5556 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5557 instead of get_current_arch.
5558
5559 2014-05-20 Pedro Alves <palves@redhat.com>
5560
5561 * NEWS: Mention that compare-sections now works with all targets.
5562
5563 * remote.c (PACKET_qCRC): New enum value.
5564 (remote_verify_memory): Don't send qCRC if the target has no
5565 execution. Use packet_support/packet_ok. If the target doesn't
5566 support the qCRC packet, fallback to a deep memory copy.
5567 (compare_sections_command): Say "target image" instead of "remote
5568 executable".
5569 (_initialize_remote): Add PACKET_qCRC to the list of config
5570 packets that have no associated command. Extend comment.
5571 * target.c (simple_verify_memory, default_verify_memory): New
5572 function.
5573 * target.h (struct target_ops) <to_verify_memory>: Default to
5574 default_verify_memory.
5575 (simple_verify_memory): New declaration.
5576 * target-delegates.c: Regenerate.
5577
5578 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5579
5580 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5581
5582 2014-05-20 Hui Zhu <hui@codesourcery.com>
5583 Yao Qi <yao@codesourcery.com>
5584
5585 PR backtrace/16558
5586 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5587 and change address of sp and pc.
5588
5589 2014-05-19 Tom Tromey <tromey@redhat.com>
5590
5591 * gdbtypes.c (rank_function): Use XNEWVEC.
5592 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5593
5594 2014-05-19 Doug Evans <dje@google.com>
5595
5596 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5597 build_type_unit_groups and moved closer to only caller. Remove
5598 arguments. All references updated. Remove outdated .gdb_index
5599 comment.
5600 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5601 build_type_psymtabs_1.
5602
5603 2014-05-19 Doug Evans <dje@google.com>
5604
5605 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5606 n_type_unit_groups, all_type_unit_groups. All uses removed.
5607 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5608 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5609 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5610 (add_type_unit_group_to_table): Delete.
5611
5612 2014-05-19 Doug Evans <dje@google.com>
5613
5614 * eval.c (evaluate_subexp_standard): Add some comments.
5615
5616 2014-05-17 Doug Evans <xdje42@gmail.com>
5617
5618 * progspace.c (remove_program_space): Delete, unused.
5619 * progspace.h (remove_program_space): Ditto.
5620
5621 2014-05-17 Doug Evans <xdje42@gmail.com>
5622
5623 * inferior.c (prune_inferiors): Fix comment.
5624 (remove_inferior_command): Call prune_program_spaces.
5625
5626 2014-05-16 Doug Evans <dje@google.com>
5627
5628 New command line option -D.
5629 * NEWS: Mention it.
5630 * main.c (set_gdb_data_directory): New function.
5631 (captured_main): Recognize -D. Flag error for --data-directory "".
5632 Call set_gdb_data_directory.
5633 (print_gdb_help): Print --data-directory, -D.
5634 * main.h (set_gdb_data_directory): Declare.
5635 * top.c (staged_gdb_datadir): New static global.
5636 (set_gdb_datadir): Call set_gdb_data_directory
5637 (show_gdb_datadir): New function.
5638 (init_main): Update init of data-directory parameter.
5639
5640 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5641
5642 Import the "dirfd" gnulib module.
5643 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5644 * gnulib/aclocal.m4: Update.
5645 * gnulib/config.in: Update.
5646 * gnulib/configure: Update.
5647 * gnulib/import/Makefile.am: Update.
5648 * gnulib/import/Makefile.in: Update.
5649 * gnulib/import/dirfd.c: New.
5650 * gnulib/import/m4/dirfd.m4: New.
5651 * gnulib/import/m4/gnulib-cache.m4: Update.
5652 * gnulib/import/m4/gnulib-comp.m4: Update.
5653
5654 2014-05-16 Pierre Muller <muller@sourceware.org>
5655 Yao Qi <yao@codesourcery.com>
5656
5657 * valprint.c (print_wchar): Move the code on checking whether
5658 W is a printable wide char to the default branch of switch
5659 statement below. Call wchar_printable instead of gdb_iswprint.
5660
5661 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5662
5663 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5664 ldr.w and ldrd instructions.
5665
5666 2014-05-15 Doug Evans <dje@google.com>
5667
5668 * dwarf2read.c (read_structure_type): Delete outdated comments.
5669
5670 2014-05-14 Tom Tromey <tromey@redhat.com>
5671
5672 * macrocmd.c (print_macro_definition): Reindent.
5673
5674 2014-05-13 Doug Evans <xdje42@gmail.com>
5675
5676 * python/py-cmd.c (cmdpy_completer): Add comment.
5677 (completers): Make const.
5678
5679 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5680
5681 * infrun.c (resume): Remove should_resume (unused). Move up
5682 declaration of resume_ptid.
5683
5684 2014-05-13 Tom Tromey <tromey@redhat.com>
5685
5686 * language.h (unop_type_check): Remove.
5687 (binop_type_check): Don't declare.
5688
5689 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5690
5691 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5692 call to regcache_raw_collect.
5693
5694 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5695
5696 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5697 mi_console->quote as the quoting character.
5698
5699 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5700
5701 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5702
5703 2014-04-29 Tom Tromey <tromey@redhat.com>
5704
5705 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5706 "show debug varobj".
5707
5708 2014-05-07 Kyle McMartin <kyle@redhat.com>
5709
5710 Pushed by Joel Brobecker <brobecker@adacore.com>.
5711 * aarch64-tdep.c (aarch64_software_single_step): New function.
5712 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5713 with aarch64_software_single_step.
5714
5715 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5716
5717 GDB 7.7.1 released.
5718
5719 2014-05-05 Keith Seitz <keiths@redhat.com>
5720
5721 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5722 variable or history value is successfully parsed.
5723
5724 2014-05-05 Yao Qi <yao@codesourcery.com>
5725 Pedro Alves <palves@redhat.com>
5726
5727 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5728 address of blocks that intersects the requested range. Trim
5729 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5730 sections.
5731 * ctf.c (ctf_xfer_partial): Likewise.
5732
5733 2014-05-05 Yao Qi <yao@codesourcery.com>
5734
5735 * printcmd.c (display_command): Remove the check to
5736 target_has_execution.
5737
5738 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5739
5740 * ppcobsd-nat.c: Include "obsd-nat.h".
5741 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5742 add_target.
5743 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5744
5745 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5746
5747 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5748 and 16-bit signed and unsigned arguments. Update comment.
5749 (stap_parse_probe_arguments): Extend code to handle such
5750 arguments. Use warning instead of complaint to notify about
5751 unrecognized bitness.
5752
5753 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5754
5755 PR breakpoints/16889
5756 * stap-probe.c (stap_parse_probe_arguments): Simplify
5757 check for non-prefixed probes (i.e., probes whose
5758 arguments do not start with "N@"). Always set the
5759 argument type to a sane value.
5760
5761 2014-05-01 David Taylor <dtaylor@emc.com>
5762
5763 * remote.c (compare_sections_command): Add -r option to compare
5764 all loadable read-only sections.
5765
5766 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5767
5768 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5769 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5770 Update all callers.
5771 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5772 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5773 Remove unused CORE_ADDR argument. Update all callers.
5774
5775 2014-04-29 Pedro Alves <palves@redhat.com>
5776
5777 * remote.c (struct packet_config) <detect>: Extend comment.
5778 (add_packet_config_cmd): Don't set the config's detect or support
5779 fields here.
5780 (init_all_packet_configs): Also initialize the config's 'detect'
5781 field.
5782 (reset_all_packet_configs_support): New function.
5783 (remote_open_1): Call reset_all_packet_configs_support instead of
5784 init_all_packet_configs.
5785 (_initialize_remote): Initialize all packet configs. Assert that
5786 all packets have an associated command, except a few known
5787 outliers.
5788
5789 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5790
5791 * dwarf2read.c (read_subrange_type): Handle dynamic
5792 DW_AT_lower_bound attributes.
5793
5794 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5795
5796 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5797 dynamic bounds before computing its upper bound.
5798 (ada_discrete_type_low_bound): Same as above with the lower bound.
5799
5800 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5801
5802 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5803 range types. Adjust the array handling implementation to
5804 take advantage of this change.
5805 (resolve_dynamic_range): New function, mostly extracted from
5806 resolve_dynamic_bounds.
5807 (resolve_dynamic_array): New function, mostly extracted from
5808 resolve_dynamic_bounds.
5809 (resolve_dynamic_bounds): Delete.
5810 (resolve_dynamic_type): Reimplement. Add handling of
5811 TYPE_CODE_RANGE types.
5812
5813 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5814
5815 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5816 handling of parallel ___XA types.
5817
5818 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5819
5820 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5821 unnecessary second call to static_unwrap_type.
5822
5823 2014-04-27 Hui Zhu <hui@codesourcery.com>
5824
5825 * stack.c (print_frame_info): Call do_gdb_disassembly with
5826 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5827
5828 2014-04-26 Doug Evans <xdje42@gmail.com>
5829
5830 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5831
5832 2014-04-25 Pedro Alves <palves@redhat.com>
5833
5834 PR server/16255
5835 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5836 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5837 and newline from built string.
5838 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5839 (linux_ptrace_attach_fail_reason): ... this.
5840 * linux-nat.c (linux_nat_attach): Adjust to use
5841 linux_ptrace_attach_fail_reason.
5842
5843 2014-04-25 Pedro Alves <palves@redhat.com>
5844
5845 * remote.c (struct remote_state): Remove multi_process_aware,
5846 non_stop_aware, cond_tracepoints, cond_breakpoints,
5847 breakpoint_commands, fast_tracepoints, static_tracepoints,
5848 install_in_trace, disconnected_tracing,
5849 enable_disable_tracepoints, string_tracing, and
5850 augmented_libraries_svr4_read fields.
5851 (remote_multi_process_p): Move further below in the file.
5852 (struct packet_config): Add comments.
5853 (update_packet_config): Delete function.
5854 (show_packet_config_cmd): Use packet_config_support.
5855 (add_packet_config_cmd): Use NULL as set callback.
5856 (packet_ok): "set remote foo-packet"-style commands no longer
5857 change config->supported -- adjust.
5858 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5859 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5860 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5861 (PACKET_QNonStop, PACKET_multiprocess_feature)
5862 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5863 (PACKET_DisconnectedTracing_feature)
5864 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5865 (set_remote_protocol_packet_cmd): Delete function.
5866 (packet_config_support, packet_support): New functions.
5867 (set_remote_protocol_Z_packet_cmd): Don't call
5868 update_packet_config.
5869 (remote_query_attached, remote_pass_signals)
5870 (remote_program_signals, remote_threads_info)
5871 (remote_threads_extra_info, remote_start_remote): Use
5872 packet_support.
5873 (remote_start_remote): Use packet_config_support and
5874 packet_support.
5875 (init_all_packet_configs): Set all packets to unknown support,
5876 instead of calling update_packet_config.
5877 (remote_check_symbols): Use packet_support.
5878 (remote_supported_packet): Unconditionally set the packet config's
5879 support status.
5880 (remote_multi_process_feature, remote_non_stop_feature)
5881 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5882 (remote_breakpoint_commands_feature)
5883 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5884 (remote_install_in_trace_feature)
5885 (remote_disconnected_tracing_feature)
5886 (remote_enable_disable_tracepoint_feature)
5887 (remote_string_tracing_feature)
5888 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5889 (remote_protocol_features): Adjust to use remote_supported_packet
5890 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5891 "ConditionalTracepoints", "ConditionalBreakpoints",
5892 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5893 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5894 "EnableDisableTracepoints", and "tracenz".
5895 (remote_query_supported): Use packet_support.
5896 (remote_open_1): Adjust.
5897 (extended_remote_attach_1): Use packet_support. Switch on the
5898 result of packet_ok instead of checking whether the packet ended
5899 up disabled.
5900 (remote_vcont_resume): Use packet_support.
5901 (remote_resume, remote_stop_ns, fetch_register_using_p)
5902 (remote_prepare_to_store, store_register_using_P)
5903 (check_binary_download, remote_write_bytes): Use packet_support.
5904 (remote_vkill): Use packet_support. Switch on the result of
5905 packet_ok instead of checking whether the packet ended up
5906 disabled.
5907 (extended_remote_supports_disable_randomization): Use
5908 packet_support.
5909 (extended_remote_run): Switch on the result of packet_ok instead
5910 of checking whether the packet ended up disabled.
5911 (remote_insert_breakpoint, remote_remove_breakpoint)
5912 (remote_insert_watchpoint, remote_remove_watchpoint)
5913 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5914 packet_support.
5915 (remote_search_memory): Use packet_config_support.
5916 (remote_get_thread_local_address, remote_get_tib_address)
5917 (remote_hostio_send_command, remote_can_execute_reverse): Use
5918 packet_support.
5919 (remote_supports_cond_tracepoints)
5920 (remote_supports_cond_breakpoints)
5921 (remote_supports_fast_tracepoints)
5922 (remote_supports_static_tracepoints)
5923 (remote_supports_install_in_trace)
5924 (remote_supports_enable_disable_tracepoint)
5925 (remote_supports_string_tracing)
5926 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5927 the packet config says the feature is enabled or disabled.
5928 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5929 (remote_get_trace_status): Use packet_support.
5930 (remote_set_disconnected_tracing): Adjust to check whether the
5931 feature is enabled with packet_support.
5932 (remote_set_trace_buffer_size, remote_use_agent)
5933 (remote_can_use_agent, remote_supports_btrace): Use
5934 packet_support.
5935 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5936 Use packet_config_support.
5937 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5938 the packet config says the feature is enabled or disabled.
5939 (set_range_stepping): Use packet_support.
5940
5941 2014-04-25 Tom Tromey <tromey@redhat.com>
5942
5943 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5944 argument.
5945
5946 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5947
5948 * NEWS: Mention support for C99 variable length arrays.
5949
5950 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5951
5952 * ada-lang.c (standard_exc): Expand introductory comment.
5953
5954 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5955 Walfred Tedeschi <walfred.tedeschi@intel.com>
5956
5957 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5958 AVX512 registers.
5959 (amd64_linux_read_description): Add code to handle AVX512 xstate
5960 mask and return respective tdesc.
5961 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5962 and features/i386/x32-avx512-linux.c.
5963 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5964 (amd64_linux_core_read_description): Add code to handle AVX512
5965 xstate mask and return respective tdesc.
5966 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5967 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5968 calculation.
5969 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5970 (tdesc_amd64_avx512_linux): New prototype.
5971 (tdesc_x32_avx512_linux): Likewise.
5972 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5973 features/i386/x32-avx512.c.
5974 (amd64_ymm_avx512_names): New register names for pseudo
5975 registers YMM16-31.
5976 (amd64_ymmh_avx512_names): New register names for raw registers
5977 YMMH16-31.
5978 (amd64_k_names): New register names for K registers.
5979 (amd64_zmmh_names): New register names for ZMM raw registers.
5980 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5981 (amd64_xmm_avx512_names): New register names for XMM16-31
5982 registers.
5983 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5984 registers.
5985 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5986 if feature is present.
5987 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5988 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5989 (AMD64_NUM_REGS): Adjust to new number of registers.
5990 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5991 registers supplied via XSTATE by AVX512 registers.
5992 (i386_linux_read_description): Add case for AVX512.
5993 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5994 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5995 (i386_linux_core_read_description): Add case for AVX512.
5996 (i386_linux_init_abi): Install supported register note section
5997 for AVX512.
5998 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5999 AVX512.
6000 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6001 registers to be number of zmm7h + 1.
6002 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6003 * i386-tdep.c: Include features/i386/i386-avx512.c.
6004 (i386_zmm_names): Add ZMM pseudo register names array.
6005 (i386_zmmh_names): Add ZMM raw register names array.
6006 (i386_k_names): Add K raw register names array.
6007 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6008 registers. AVX512 has 16 more ZMM registers than there are YMM
6009 registers.
6010 (i386_zmmh_regnum_p): Add function to look up register number of
6011 ZMM raw registers.
6012 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6013 (i386_k_regnum_p): Likewise for K raw registers.
6014 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6015 registers added by AVX512.
6016 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6017 registers added by AVX512.
6018 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6019 added by AVX512.
6020 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6021 (i386_pseudo_register_name): Add ZMM pseudo registers.
6022 (i386_zmm_type): Construct and return vector registers type for ZMM
6023 registers.
6024 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6025 ZMM0-31 pseudo registers and K registers.
6026 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6027 and YMM16-31 registers from register cache.
6028 (i386_pseudo_register_write): Add code to write K, ZMM and
6029 YMM16-31 registers.
6030 (i386_register_reggroup_p): Add code to include/exclude AVX512
6031 registers in/from respective register groups.
6032 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6033 registers if feature is present in xcr0.
6034 (i386_gdbarch_init): Add code to initialize AVX512 feature
6035 variables in tdep structure, wire in pseudo registers and call
6036 initialize_tdesc_i386_avx512.
6037 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6038 variables.
6039 (i386_regnum): Add AVX512 registers.
6040 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6041 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6042 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6043 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6044 512 bits wide.
6045 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6046 (i386_ymm_avx512_regnum_p): Likewise.
6047 (i386_k_regnum_p): Likewise.
6048 (i386_zmm_regnum_p): Likewise.
6049 (i386_zmmh_regnum_p): Likewise.
6050 * i387-tdep.c : Update year in copyright notice.
6051 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6052 XSAVE buffer.
6053 (XSAVE_YMM_AVX512_ADDR): New macro.
6054 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6055 XSAVE buffer.
6056 (XSAVE_XMM_AVX512_ADDR): New macro.
6057 (xsave_avx512_k_offset): New table for K register offsets in
6058 XSAVE buffer.
6059 (XSAVE_AVX512_K_ADDR): New macro.
6060 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6061 in XSAVE buffer.
6062 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6063 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6064 buffer.
6065 (i387_collect_xsave): Add code to collect AVX512 registers from
6066 XSAVE buffer.
6067 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6068 of XMM16-31 registers.
6069 (I387_NUM_K_REGS): New define for number of K registers.
6070 (I387_K0_REGNUM): New define for K0 register number.
6071 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6072 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6073 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6074 registers.
6075 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6076 (I387_XMM16_REGNUM): New define for XMM16 register number.
6077 (I387_YMM0_REGNUM): New define for YMM0 register number.
6078 (I387_KEND_REGNUM): New define for last K register number.
6079 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6080 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6081 number.
6082 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6083 number.
6084 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6085 size.
6086 * features/Makefile: Add AVX512 related files.
6087 * features/i386/32bit-avx512.xml: New file.
6088 * features/i386/64bit-avx512.xml: Likewise.
6089 * features/i386/amd64-avx512-linux.c: Likewise.
6090 * features/i386/amd64-avx512-linux.xml: Likewise.
6091 * features/i386/amd64-avx512.c: Likewise.
6092 * features/i386/amd64-avx512.xml: Likewise.
6093 * features/i386/i386-avx512-linux.c: Likewise.
6094 * features/i386/i386-avx512-linux.xml: Likewise.
6095 * features/i386/i386-avx512.c: Likewise.
6096 * features/i386/i386-avx512.xml: Likewise.
6097 * features/i386/x32-avx512-linux.c: Likewise.
6098 * features/i386/x32-avx512-linux.xml: Likewise.
6099 * features/i386/x32-avx512.c: Likewise.
6100 * features/i386/x32-avx512.xml: Likewise.
6101 * regformats/i386/amd64-avx512-linux.dat: New file.
6102 * regformats/i386/amd64-avx512.dat: Likewise.
6103 * regformats/i386/i386-avx512-linux.dat: Likewise.
6104 * regformats/i386/i386-avx512.dat: Likewise.
6105 * regformats/i386/x32-avx512-linux.dat: Likewise.
6106 * regformats/i386/x32-avx512.dat: Likewise.
6107 * NEWS: Add note about new support for AVX512.
6108
6109
6110 2014-04-23 Pedro Alves <palves@redhat.com>
6111
6112 * breakpoint.c (insert_bp_location): Tolerate errors if the
6113 breakpoint is set in a user-loaded objfile.
6114 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6115 location is marked shlib_disabled. If the breakpoint is set in a
6116 user-loaded objfile is a GDB-side memory breakpoint, validate it
6117 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6118 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6119 flag.
6120 * mem-break.c (memory_validate_breakpoint): New function.
6121 * objfiles.c (userloaded_objfile_contains_address_p): New
6122 function.
6123 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6124 * target.h (memory_validate_breakpoint): New declaration.
6125
6126 2014-04-23 Pedro Alves <palves@redhat.com>
6127
6128 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6129 the breakpoint is set in a shared library, only suppress
6130 errors for software breakpoints, not hardware breakpoints.
6131
6132 2014-04-22 Pedro Alves <palves@redhat.com>
6133
6134 * infrun.c (schedlock_applies): New function, factored out from
6135 find_thread_needs_step_over.
6136 (find_thread_needs_step_over): Use it.
6137 (switch_back_to_stepped_thread): Always clear trap_expected if the
6138 step over is finished. Return early if scheduler locking applies.
6139 Look for the stepping thread and a potential step-over thread with
6140 a single loop.
6141 (currently_stepping_or_nexting_callback): Delete.
6142
6143 2014-04-22 Nick Clifton <nickc@redhat.com>
6144
6145 * NEWS: Mention that ARM sim now supports tracing.
6146
6147 2014-04-22 Yao Qi <yao@codesourcery.com>
6148
6149 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6150 to ...
6151 * tracefile.c (tracefile_fetch_registers): ... it. New
6152 function.
6153 * tracefile.h (tracefile_fetch_registers): Declare.
6154 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6155 tracefile_fetch_registers.
6156
6157 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6158
6159 PR gdb/14018
6160 * windows-nat.c (thread_rec): Don't display a warning when
6161 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6162 fails for any reason, set th->suspended to -1, so that we don't
6163 try to resume such a thread. Also, don't return NULL in these
6164 cases, to avoid completely ruin the session due to "PC register is
6165 not available" error.
6166 (do_windows_fetch_inferior_registers): Check errors in
6167 GetThreadContext call.
6168 (windows_continue): Accept an additional argument KILLED; if not
6169 zero, ignore errors in the SetThreadContext call, since the
6170 inferior was killed and is shutting down.
6171 (windows_resume, get_windows_debug_event)
6172 (windows_create_inferior, windows_mourn_inferior)
6173 (windows_kill_inferior): All callers of windows_continue changed
6174 to adjust to its new calling sequence.
6175
6176 2014-04-19 Yao Qi <yao@codesourcery.com>
6177
6178 * ctf.c (ctf_open): Call post_create_inferior.
6179
6180 2014-04-19 Yao Qi <yao@codesourcery.com>
6181
6182 * ctf.c (handle_id): New static variable.
6183 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6184 value. Get the declaration of event "register" and get length
6185 of field "contents".
6186
6187 2014-04-19 Yao Qi <yao@codesourcery.com>
6188
6189 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6190
6191 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6192
6193 * valops.c (oload_method_static): Remove unnecessary argument
6194 METHOD. Update all callers.
6195
6196 2014-04-18 Pedro alves <palves@redhat.com>
6197 Tom Tromey <tromey@redhat.com>
6198
6199 PR backtrace/15558
6200 * frame.c (get_prev_frame_1): Rename to ...
6201 (get_prev_frame_always): ... this, and make extern. Adjust.
6202 (skip_artificial_frames): Use get_prev_frame_always.
6203 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6204 (get_frame_unwind_stop_reason): Adjust to rename.
6205 * frame.h (get_prev_frame_always): Declare.
6206 * inline-frame.c: Include frame.h.
6207 (inline_frame_this_id): Use get_prev_frame_always.
6208
6209 2014-04-18 Tristan Gingold <gingold@adacore.com>
6210
6211 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6212 code by using bfd_mach_o_get_base_address.
6213
6214 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6215
6216 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6217 (spu_ax_pseudo_register_collect): New function.
6218 (spu_ax_pseudo_register_push_stack): Likewise.
6219 (spu_dwarf_reg_to_regnum): Likewise.
6220 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6221
6222 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6223
6224 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6225 Replace FRAME argument with FRAME_ID.
6226 * gdbarch.c, gdbarch.h: Regenerate.
6227 * findvar.c (default_value_from_register): Add GDBARCH argument;
6228 replace FRAME by FRAME_ID. No longer call get_frame_id.
6229 (value_from_register): Update call to gdbarch_value_from_register.
6230 * value.h (default_value_from_register): Update prototype.
6231 * s390-linux-tdep.c (s390_value_from_register): Update interface
6232 and call to default_value_from_register.
6233 * spu-tdep.c (spu_value_from_register): Likewise.
6234
6235 * findvar.c (address_from_register): Remove TYPE argument.
6236 Do not call value_from_register; use gdbarch_value_from_register
6237 with null_frame_id instead.
6238 * value.h (address_from_register): Update prototype.
6239 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6240 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6241 address_from_register interface change.
6242
6243 2014-04-17 Yao Qi <yao@codesourcery.com>
6244
6245 * gdbtypes.h: Update comments to link to types and macros'
6246 definitions.
6247
6248 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6249
6250 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6251
6252 2014-04-16 Keith Seitz <keiths@redhat.com>
6253
6254 PR gdb/15827
6255 * dwarf2read.c (skip_one_die): Check that all relative-offset
6256 sibling DIEs fall within range of the current reader's buffer.
6257 (read_partial_die): Likewise.
6258
6259 2014-04-16 Keith Seitz <keiths@redhat.com>
6260
6261 PR c++/16597
6262 * cp-namespace.c (lookup_symbol_file): If the type name of
6263 `this' is NULL, return immediately.
6264
6265 2014-04-14 Keith Seitz <keiths@redhat.com>
6266
6267 PR c++/16253
6268 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6269 from symbol_matches_domain in symtab.c. All local callers
6270 of symbol_matches_domain updated.
6271 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6272 search STRUCT_DOMAIN.
6273 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6274 independently. standard_lookup will do that automatically.
6275 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6276 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6277 (cp_lookup_symbol_in_namespace): Likewise.
6278 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6279 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6280 may return a STRUCT_DOMAIN match.
6281 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6282 * cp-support.c: Include language.h.
6283 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6284 VAR_DOMAIN.
6285 * psymtab.c (match_partial_symbol): Compare the requested
6286 domain with the symbol's domain directly.
6287 (lookup_partial_symbol): Likewise.
6288 * symtab.c (lookup_symbol_in_language): Explain when/why
6289 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6290 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6291 appropriate languages.
6292 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6293 and moved to ada-lang.c
6294 (lookup_block_symbol): Explain that this function only returns
6295 symbol matching the requested DOMAIN.
6296 Compare the requested domain with the symbol's domain directly.
6297 (iterate_over_symbols): Compare the requested domain with the
6298 symbol's domain directly.
6299 * symtab.h (symbol_matches_domain): Remove.
6300
6301 2014-04-14 Tom Tromey <tromey@redhat.com>
6302
6303 PR c++/15246:
6304 * c-exp.y (type_aggregate_p): New function.
6305 (qualified_name, classify_inner_name): Use it.
6306 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6307 and TYPE_TARGET_TYPE of an enum type.
6308 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6309 an enum type.
6310 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6311 handle TYPE_DECLARED_CLASS.
6312 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6313 types.
6314 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6315 * valops.c (enum_constant_from_type): New function.
6316 (value_aggregate_elt): Use it.
6317 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6318 TYPE_CODE_ENUM.
6319
6320 2014-04-14 Tom Tromey <tromey@redhat.com>
6321
6322 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6323 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6324 const.
6325 * value.h (value_aggregate_elt): Update.
6326
6327 2014-04-14 Tom Tromey <tromey@redhat.com>
6328
6329 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6330
6331 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6332
6333 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6334 (evaluate_subexp_standard): Pass noside argument.
6335 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6336 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6337 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6338 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6339 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6340
6341 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6342
6343 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6344 points to a constant blob.
6345
6346 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6347
6348 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6349 property and store it as the high bound and flag the range accordingly.
6350 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6351 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6352 * gdbtypes.h (enum range_flags): New enum.
6353 (struct range_bounds): Add flags member.
6354
6355 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6356
6357 * c-typeprint.c (c_type_print_varspec_suffix): Added
6358 check for not yet resolved high bound. If unresolved, print
6359 "variable length" string to the console instead of random
6360 length.
6361
6362 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6363
6364 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6365 value.
6366 (ada_template_to_fixed_record_type_1): Likewise.
6367 (ada_to_fixed_type_1): Likewise.
6368 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6369 (cp_print_value): Likewise.
6370 * d-valprint.c (dynamic_array_type): Likewise.
6371 * findvar.c (address_of_variable): Likewise.
6372 * jv-valprint.c (java_value_print): Likewise.
6373 * valops.c (value_ind): Likewise.
6374 * value.c (coerce_ref): Likewise.
6375
6376 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6377
6378 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6379 value and retrieve the dynamic type size.
6380
6381 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6382
6383 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6384 passed to sizeof is dynamic evaluate the argument to compute the length.
6385
6386 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6387 Joel Brobecker <brobecker@adacore.com>
6388
6389 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6390 (dwarf2_evaluate_property): New function.
6391 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6392 * dwarf2read.c (attr_to_dynamic_prop): New function.
6393 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6394 attribute.
6395 * gdbtypes.c: Include dwarf2loc.h.
6396 (is_dynamic_type): New function.
6397 (resolve_dynamic_type): New function.
6398 (resolve_dynamic_bounds): New function.
6399 (get_type_length): New function.
6400 (check_typedef): Use get_type_length to compute type length.
6401 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6402 (TYPE_LOW_BOUND_KIND): New macro.
6403 (is_dynamic_type): New function prototype.
6404 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6405 to resolve dynamic properties of the type. Update comment.
6406 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6407
6408 2014-04-14 Richard Henderson <rth@redhat.com>
6409
6410 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6411
6412 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6413 Doug Evans <xdje42@gmail.com>
6414
6415 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6416 dereference TYPE_CODE_REF values.
6417
6418 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6419
6420 Revert the following changes due to regressions:
6421
6422 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6423 (dwarf2_evaluate_property): New function.
6424 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6425 * dwarf2read.c (attr_to_dynamic_prop): New function.
6426 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6427 attribute.
6428 * gdbtypes.c: Include dwarf2loc.h.
6429 (is_dynamic_type): New function.
6430 (resolve_dynamic_type): New function.
6431 (resolve_dynamic_bounds): New function.
6432 (get_type_length): New function.
6433 (check_typedef): Use get_type_length to compute type length.
6434 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6435 (TYPE_LOW_BOUND_KIND): New macro.
6436 (is_dynamic_type): New function prototype.
6437 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6438 to resolve dynamic properties of the type. Update comment.
6439 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6440
6441 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6442 passed to sizeof is dynamic evaluate the argument to compute the length.
6443
6444 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6445 value and retrieve the dynamic type size.
6446
6447 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6448 (ada_template_to_fixed_record_type_1): Likewise.
6449 (ada_to_fixed_type_1): Likewise.
6450 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6451 (cp_print_value): Likewise.
6452 * d-valprint.c (dynamic_array_type): Likewise.
6453 * eval.c (evaluate_subexp_with_coercion): Likewise.
6454 * findvar.c (address_of_variable): Likewise.
6455 * jv-valprint.c (java_value_print): Likewise.
6456 * valops.c (value_ind): Likewise.
6457 * value.c (coerce_ref): Likewise.
6458
6459 * c-typeprint.c (c_type_print_varspec_suffix): Added
6460 check for not yet resolved high bound. If unresolved, print
6461 "variable length" string to the console instead of random
6462 length.
6463
6464 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6465 property and store it as the high bound and flag the range accordingly.
6466 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6467 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6468 * gdbtypes.h (enum range_flags): New enum.
6469 (struct range_bounds): Add flags member.
6470
6471 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6472 points to a constant blob.
6473
6474 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6475 (evaluate_subexp_standard): Pass noside argument.
6476 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6477 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6478 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6479 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6480 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6481
6482 2014-04-11 Keith Seitz <keiths@redhat.com>
6483
6484 PR c++/16675
6485 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6486 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6487 reference types.
6488
6489 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6490
6491 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6492 (evaluate_subexp_standard): Pass noside argument.
6493 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6494 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6495 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6496 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6497 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6498
6499 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6500
6501 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6502 points to a constant blob.
6503
6504 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6505
6506 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6507 property and store it as the high bound and flag the range accordingly.
6508 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6509 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6510 * gdbtypes.h (enum range_flags): New enum.
6511 (struct range_bounds): Add flags member.
6512
6513 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6514
6515 * c-typeprint.c (c_type_print_varspec_suffix): Added
6516 check for not yet resolved high bound. If unresolved, print
6517 "variable length" string to the console instead of random
6518 length.
6519
6520 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6521
6522 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6523 (ada_template_to_fixed_record_type_1): Likewise.
6524 (ada_to_fixed_type_1): Likewise.
6525 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6526 (cp_print_value): Likewise.
6527 * d-valprint.c (dynamic_array_type): Likewise.
6528 * eval.c (evaluate_subexp_with_coercion): Likewise.
6529 * findvar.c (address_of_variable): Likewise.
6530 * jv-valprint.c (java_value_print): Likewise.
6531 * valops.c (value_ind): Likewise.
6532 * value.c (coerce_ref): Likewise.
6533
6534 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6535
6536 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6537 value and retrieve the dynamic type size.
6538
6539 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6540
6541 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6542 passed to sizeof is dynamic evaluate the argument to compute the length.
6543
6544 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6545
6546 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6547 (dwarf2_evaluate_property): New function.
6548 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6549 * dwarf2read.c (attr_to_dynamic_prop): New function.
6550 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6551 attribute.
6552 * gdbtypes.c: Include dwarf2loc.h.
6553 (is_dynamic_type): New function.
6554 (resolve_dynamic_type): New function.
6555 (resolve_dynamic_bounds): New function.
6556 (get_type_length): New function.
6557 (check_typedef): Use get_type_length to compute type length.
6558 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6559 (TYPE_LOW_BOUND_KIND): New macro.
6560 (is_dynamic_type): New function prototype.
6561 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6562 to resolve dynamic properties of the type. Update comment.
6563 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6564
6565 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6566
6567 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6568 declaring high/low bounds and change uses accordingly. Call
6569 create_range_type instead of create_static_range_type.
6570 * gdbtypes.c (create_range_type): New function.
6571 (create_range_type): Convert bounds into struct bound_prop and pass
6572 them to create_range_type.
6573 * gdbtypes.h (struct bound_prop): New struct.
6574 (create_range_type): New function prototype.
6575 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6576 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6577 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6578 part of the bound.
6579 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6580
6581 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6582
6583 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6584 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6585 * ada-lang.c: All uses of create_range_type updated.
6586 * coffread.c: All uses of create_range_type updated.
6587 * dwarf2read.c: All uses of create_range_type updated.
6588 * f-exp.y: All uses of create_range_type updated.
6589 * m2-valprint.c: All uses of create_range_type updated.
6590 * mdebugread.c: All uses of create_range_type updated.
6591 * stabsread.c: All uses of create_range_type updated.
6592 * valops.c: All uses of create_range_type updated.
6593 * valprint.c: All uses of create_range_type updated.
6594
6595 2014-04-10 Pedro Alves <palves@redhat.com>
6596
6597 * breakpoint.c (single_step_breakpoints)
6598 (single_step_gdbarch): Move up in the file.
6599 (one_breakpoint_xfer_memory): New function, factored out from ...
6600 (breakpoint_xfer_memory): ... here. Also process single-step
6601 breakpoints.
6602
6603 2014-04-09 Tristan Gingold <gingold@adacore.com>
6604
6605 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6606 comments.
6607 (darwin_decode_exception_message): Free port only after use.
6608
6609 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6610
6611 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6612 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6613 when setting the size of call_length.
6614
6615 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6616
6617 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6618 dereference TYPE_CODE_REF values.
6619
6620 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6621
6622 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6623 end of warning message.
6624
6625 2014-04-03 Doug Evans <dje@google.com>
6626
6627 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6628 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6629
6630 2014-04-02 Alan Modra <amodra@gmail.com>
6631
6632 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6633 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6634 (struct symbol_file_add_from_memory_args): Add size field.
6635 (find_vdso_size): New function.
6636 (add_vsyscall_page): Attempt to find vdso size.
6637
6638 2014-04-01 Doug Evans <dje@google.com>
6639
6640 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6641
6642 2014-04-01 Tristan Gingold <gingold@adacore.com>
6643
6644 * darwin-nat.c (darwin_encode_reply): Add prototype.
6645 (darwin_decode_exception_message): Reply to unknown inferiors.
6646 (darwin_decode_message): Handle message by id. Ignore message
6647 to unknown inferior.
6648 (darwin_wait): Discard unknown messages, add debug trace.
6649
6650 2014-03-31 Doug Evans <dje@google.com>
6651
6652 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6653 comp_dir_string.
6654
6655 2014-03-31 Doug Evans <dje@google.com>
6656
6657 New option "set print symbol-loading".
6658 * NEWS: Mention it.
6659 * solib.c (solib_read_symbols): Only print symbol loading messages
6660 if requested.
6661 (solib_add): If symbol loading is in "brief" mode, notify user
6662 symbols are being loaded.
6663 (reload_shared_libraries_1): Ditto.
6664 * symfile.c (print_symbol_loading_off): New static global.
6665 (print_symbol_loading_brief): New static global.
6666 (print_symbol_loading_full): New static global.
6667 (print_symbol_loading_enums): New static global.
6668 (print_symbol_loading): New static global.
6669 (print_symbol_loading_p): New function.
6670 (symbol_file_add_with_addrs): Only print symbol loading messages
6671 if requested.
6672 (_initialize_symfile): Register "print symbol-loading" set/show
6673 command.
6674 * symfile.h (print_symbol_loading_p): Declare.
6675
6676 2014-03-30 Doug Evans <xdje42@gmail.com>
6677
6678 * infrun.c (set_last_target_status): New function.
6679 (handle_inferior_event): Call it.
6680
6681 2014-03-30 Doug Evans <xdje42@gmail.com>
6682
6683 * inferior.h (enum stop_kind): Improve comment.
6684
6685 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6686
6687 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6688 a reference, strip the reference layer before calling
6689 the lang_ops value_has_mutated callback.
6690
6691 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6692
6693 Remove some globals from our parser.
6694 * language.c (unk_lang_parser): Add "struct parser_state"
6695 argument.
6696 * language.h (struct language_defn) <la_parser>: Likewise.
6697 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6698 (initialize_expout): Add "struct parser_state" argument.
6699 Rewrite function to use the parser state.
6700 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6701 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6702 write_exp_elt_longcst, write_exp_elt_dblcst,
6703 write_exp_elt_decfloatcst, write_exp_elt_type,
6704 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6705 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6706 write_dollar_variable): Likewise.
6707 (parse_exp_in_context_1): Use parser state.
6708 (insert_type_address_space): Add "struct parser_state" argument.
6709 Use parser state.
6710 (increase_expout_size): New function.
6711 * parser-defs.h: Forward declare "struct language_defn" and
6712 "struct parser_state".
6713 (expout, expout_size, expout_ptr): Remove extern declarations.
6714 (parse_gdbarch, parse_language): Rewrite macro declarations to
6715 accept the parser state.
6716 (struct parser_state): New struct.
6717 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6718 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6719 write_exp_elt_decfloatcst, write_exp_elt_type,
6720 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6721 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6722 write_exp_msymbol, write_dollar_variable,
6723 mark_struct_expression, insert_type_address_space): Add "struct
6724 parser_state" argument.
6725 (increase_expout_size): New function.
6726 * utils.c (do_clear_parser_state): New function.
6727 (make_cleanup_clear_parser_state): Likewise.
6728 * utils.h (make_cleanup_clear_parser_state): New function
6729 prototype.
6730 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6731 Update calls to write_exp* in order to pass the parser state.
6732 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6733 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6734 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6735 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6736 * stap-probe.c (stap_parse_register_operand): Likewise.
6737 (stap_parse_single_operand): Likewise.
6738 (stap_parse_argument_1): Likewise.
6739 (stap_parse_argument): Use parser state.
6740 * stap-probe.h: Include "parser-defs.h".
6741 (struct stap_parse_info) <pstate>: New field.
6742 * c-exp.y (parse_type): Rewrite to use parser state.
6743 (yyparse): Redefine to c_parse_internal.
6744 (pstate): New global variable.
6745 (parse_number): Add "struct parser_state" argument.
6746 (write_destructor_name): Likewise.
6747 (type_exp): Update calls to write_exp* and similars in order to
6748 use parser state.
6749 (exp1, exp, variable, qualified_name, space_identifier,
6750 typename, typebase): Likewise.
6751 (write_destructor_name, parse_number, lex_one_token,
6752 classify_name, classify_inner_name, c_parse): Add "struct
6753 parser_state" argument. Update function to use parser state.
6754 * c-lang.h: Forward declare "struct parser_state".
6755 (c_parse): Add "struct parser_state" argument.
6756 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6757 (yyparse): Redefine macro to ada_parse_internal.
6758 (pstate): New variable.
6759 (write_int, write_object_renaming, write_var_or_type,
6760 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6761 type_int, type_long, type_long_long, type_float, type_double,
6762 type_long_double, type_char, type_boolean, type_system_address):
6763 Add "struct parser_state" argument.
6764 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6765 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6766 var_or_type, aggregate, aggregate_component_list,
6767 positional_list, others, component_group,
6768 component_associations): Update calls to write_exp* and similar
6769 functions in order to use parser state.
6770 (ada_parse, write_var_from_sym, write_int,
6771 write_exp_op_with_string, write_object_renaming,
6772 find_primitive_type, write_selectors, write_ambiguous_var,
6773 write_var_or_type, write_name_assoc, type_int, type_long,
6774 type_long_long, type_float, type_double, type_long_double,
6775 type_char, type_boolean, type_system_address): Add "struct
6776 parser_state" argument. Adjust function to use parser state.
6777 * ada-lang.c (parse): Likewise.
6778 * ada-lang.h: Forward declare "struct parser_state".
6779 (ada_parse): Add "struct parser_state" argument.
6780 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6781 calls to both functions.
6782 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6783 parser state.
6784 (yyparse): Redefine macro to f_parse_internal.
6785 (pstate): New variable.
6786 (parse_number): Add "struct parser_state" argument.
6787 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6788 and similars in order to use parser state.
6789 (parse_number): Adjust code to use parser state.
6790 (yylex): Likewise.
6791 (f_parse): New function.
6792 * f-lang.h: Forward declare "struct parser_state".
6793 (f_parse): Add "struct parser_state" argument.
6794 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6795 parser state.
6796 (yyparse): Redefine macro for java_parse_internal.
6797 (pstate): New variable.
6798 (push_expression_name, push_expression_name, insert_exp): Add
6799 "struct parser_state" argument.
6800 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6801 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6802 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6803 PostIncrementExpression, PostDecrementExpression,
6804 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6805 UnaryExpressionNotPlusMinus, CastExpression,
6806 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6807 RelationalExpression, EqualityExpression, AndExpression,
6808 ExclusiveOrExpression, InclusiveOrExpression,
6809 ConditionalAndExpression, ConditionalOrExpression,
6810 ConditionalExpression, Assignment, LeftHandSide): Update
6811 calls to write_exp* and similars in order to use parser state.
6812 (parse_number): Ajust code to use parser state.
6813 (yylex): Likewise.
6814 (java_parse): New function.
6815 (push_variable): Add "struct parser_state" argument. Adjust
6816 code to user parser state.
6817 (push_fieldnames, push_qualified_expression_name,
6818 push_expression_name, insert_exp): Likewise.
6819 * jv-lang.h: Forward declare "struct parser_state".
6820 (java_parse): Add "struct parser_state" argument.
6821 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6822 parser state.
6823 (yyparse): Redefine macro to m2_parse_internal.
6824 (pstate): New variable.
6825 (type_exp, exp, fblock, variable, type): Update calls to
6826 write_exp* and similars to use parser state.
6827 (yylex): Likewise.
6828 (m2_parse): New function.
6829 * m2-lang.h: Forward declare "struct parser_state".
6830 (m2_parse): Add "struct parser_state" argument.
6831 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6832 * objc-lang.h: Forward declare "struct parser_state".
6833 (end_msglist): Add "struct parser_state" argument.
6834 * p-exp.y (parse_type): Rewrite macro to use parser state.
6835 (yyparse): Redefine macro to pascal_parse_internal.
6836 (pstate): New variable.
6837 (parse_number): Add "struct parser_state" argument.
6838 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6839 write_exp* and similars in order to use parser state.
6840 (parse_number, yylex): Adjust code to use parser state.
6841 (pascal_parse): New function.
6842 * p-lang.h: Forward declare "struct parser_state".
6843 (pascal_parse): Add "struct parser_state" argument.
6844 * go-exp.y (parse_type): Rewrite macro to use parser state.
6845 (yyparse): Redefine macro to go_parse_internal.
6846 (pstate): New variable.
6847 (parse_number): Add "struct parser_state" argument.
6848 (type_exp, exp1, exp, variable, type): Update calls to
6849 write_exp* and similars in order to use parser state.
6850 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6851 to use parser state.
6852 (go_parse): Likewise.
6853 * go-lang.h: Forward declare "struct parser_state".
6854 (go_parse): Add "struct parser_state" argument.
6855
6856 2014-03-27 Doug Evans <dje@google.com>
6857
6858 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6859
6860 2014-03-27 Doug Evans <dje@google.com>
6861
6862 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6863 Remove argument abbrev_section. All callers updated.
6864
6865 2014-03-27 Doug Evans <dje@google.com>
6866
6867 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6868 addr_base, ranges_base.
6869
6870 2014-03-26 Keith Seitz <keiths@redhat.com>
6871
6872 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6873 types, not VAR_DOMAIN.
6874
6875 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6876
6877 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6878 "ra" registers.
6879 * features/nios2-linux.c: Regenerated.
6880 * features/nios2.c: Regenerated.
6881
6882 2014-03-25 Pedro Alves <palves@redhat.com>
6883
6884 * cli/cli-script.c (script_from_file): Force the interpreter to
6885 sync mode.
6886
6887 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6888
6889 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6890 small stack allocation.
6891
6892 2014-03-24 Tristan Gingold <gingold@adacore.com>
6893
6894 * darwin-nat.c (exc_server): Remove unused prototype.
6895 (darwin_dump_message): Correctly display data on x86_64.
6896 (darwin_encode_reply): Fix style.
6897 Add comments and fix indentation.
6898
6899 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6900
6901 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6902
6903 2014-03-22 Doug Evans <xdje42@gmail.com>
6904
6905 * infcmd.c: Whitespace fixes.
6906 (interrupt_command): Merge two function comments into one.
6907
6908 2014-03-22 Doug Evans <xdje42@gmail.com>
6909
6910 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6911 All uses updated.
6912
6913 2014-03-22 Yao Qi <yao@codesourcery.com>
6914
6915 * remote.c (target_read_live_memory): Remove.
6916 (memory_xfer_live_readonly_partial): Rename it to
6917 remote_xfer_live_readonly_partial. Remove argument 'object'.
6918 All callers updated. Call remote_read_bytes_1
6919 instead of target_read_live_memory.
6920 * tracepoint.c (set_traceframe_number): Remove.
6921 (make_cleanup_restore_traceframe_number): Likewise .
6922 * tracepoint.h (set_traceframe_number): Remove declaration.
6923 (make_cleanup_restore_traceframe_number): Likewise.
6924
6925 2014-03-22 Yao Qi <yao@codesourcery.com>
6926
6927 * remote.c (remote_read_bytes): Move code on reading from the
6928 remote stub to ...
6929 (remote_read_bytes_1): ... here. New function.
6930
6931 2014-03-22 Yao Qi <yao@codesourcery.com>
6932
6933 * ctf.c (ctf_xfer_partial): Check the return value of
6934 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6935 return TARGET_XFER_UNAVAILABLE.
6936 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6937 * target.c (target_read_live_memory): Move it to remote.c.
6938 (memory_xfer_live_readonly_partial): Likewise.
6939 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6940 * remote.c (target_read_live_memory): Moved from target.c.
6941 (memory_xfer_live_readonly_partial): Likewise.
6942 (remote_read_bytes): Factored out from
6943 memory_xfer_partial_1.
6944
6945 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6946
6947 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6948 NULL pointer.
6949
6950 2014-03-21 Pedro Alves <palves@redhat.com>
6951
6952 * infrun.c (normal_stop): Extend comment.
6953
6954 2014-03-21 Hui Zhu <hui@codesourcery.com>
6955 Pedro Alves <palves@redhat.com>
6956
6957 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6958 static buffer.
6959 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6960 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6961 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6962
6963 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6964
6965 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6966 `z' formatted output modifier.
6967
6968 2014-03-20 Tom Tromey <tromey@redhat.com>
6969 Sergio Durigan Junior <sergiodj@redhat.com>
6970
6971 * probe.c (parse_probes): Turn assert into an ordinary error.
6972 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6973 exceptions when parsing probes. Rearrange the code for clarity.
6974
6975 2014-03-20 Tom Tromey <tromey@redhat.com>
6976
6977 PR gdb/14135
6978 * top.c (execute_command): Only dispatch events if the command
6979 started the target.
6980
6981 2014-03-20 Tom Tromey <tromey@redhat.com>
6982
6983 PR cli/15718
6984 * infcall.c: Include event-top.h.
6985 (run_inferior_call): Call async_disable_stdin if needed.
6986
6987 2014-03-20 Pedro Alves <palves@redhat.com>
6988
6989 * infrun.c (prepare_to_proceed): Delete.
6990 (thread_still_needs_step_over): New function.
6991 (find_thread_needs_step_over): New function.
6992 (proceed): If the current thread needs a step-over, set its
6993 steping_over_breakpoint flag. Adjust to use
6994 find_thread_needs_step_over instead of prepare_to_proceed.
6995 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6996 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6997 breakpoint.
6998 (switch_back_to_stepped_thread): Step over breakpoints of all
6999 threads not the stepping thread, before switching back to the
7000 stepping thread.
7001
7002 2014-03-20 Pedro Alves <palves@redhat.com>
7003
7004 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7005 extern.
7006 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7007 * infrun.c (saved_singlestep_ptid)
7008 (stepping_past_singlestep_breakpoint): Delete.
7009 (resume): Remove stepping_past_singlestep_breakpoint handling.
7010 (proceed): Store the prev_pc of the stepping thread too.
7011 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7012 singlestep_pc.
7013 (enum infwait_states): Delete infwait_thread_hop_state.
7014 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7015 field.
7016 (handle_inferior_event): Adjust.
7017 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7018 handling and the thread-hop code. Before removing single-step
7019 breakpoints, check whether the thread hit a single-step breakpoint
7020 of another thread. If it did, the trap is not a random signal.
7021 (switch_back_to_stepped_thread): If the event thread hit a
7022 single-step breakpoint, unblock it before switching to the
7023 stepping thread. Handle the case of the stepped thread having
7024 advanced already.
7025 (keep_going): Handle the case of the current thread moving past a
7026 single-step breakpoint.
7027
7028 2014-03-20 Pedro Alves <palves@redhat.com>
7029
7030 PR breakpoints/7143
7031 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7032 are being stepped over.
7033 (breakpoint_address_match): Make extern.
7034 * breakpoint.h (breakpoint_address_match): New declaration.
7035 * inferior.h (stepping_past_instruction_at): New declaration.
7036 * infrun.c (struct step_over_info): New type.
7037 (step_over_info): New global.
7038 (set_step_over_info, clear_step_over_info)
7039 (stepping_past_instruction_at): New functions.
7040 (handle_inferior_event): Clear the step-over info when
7041 trap_expected is cleared.
7042 (resume): Remove now stale comment.
7043 (clear_proceed_status): Clear step-over info.
7044 (proceed): Adjust step-over handling to set or clear the step-over
7045 info instead of removing all breakpoints.
7046 (handle_signal_stop): When setting up a thread-hop, don't remove
7047 breakpoints here.
7048 (stop_stepping): Clear step-over info.
7049 (keep_going): Adjust step-over handling to set or clear step-over
7050 info and then always inserting breakpoints, instead of removing
7051 all breakpoints when stepping over one.
7052
7053 2014-03-20 Pedro Alves <palves@redhat.com>
7054
7055 * infrun.c (previous_inferior_ptid): Adjust comment.
7056 (deferred_step_ptid): Delete.
7057 (infrun_thread_ptid_changed, prepare_to_proceed)
7058 (init_wait_for_inferior): Adjust.
7059 (handle_signal_stop): Delete deferred_step_ptid handling.
7060
7061 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7062
7063 PR gdb/15358
7064 * defs.h (sync_quit_force_run): New declaration.
7065 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7066 * event-top.c (async_sigterm_handler): New declaration.
7067 (async_sigterm_token): New variable.
7068 (async_init_signals): Create also async_sigterm_token.
7069 (async_sigterm_handler): New function.
7070 (sync_quit_force_run): New variable.
7071 (handle_sigterm): Replace quit_force call by other calls.
7072 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7073
7074 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7075
7076 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7077 offset into SPE pseudo registers.
7078
7079 2014-03-18 Pedro Alves <palves@redhat.com>
7080
7081 PR gdb/13860
7082 * inferior.h (print_stop_event): Declare.
7083 * infrun.c (print_stop_event): New, factored out from ...
7084 (normal_stop): ... this.
7085 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7086 of bpstat_print/print_stack_frame.
7087
7088 2014-03-17 Tom Tromey <tromey@redhat.com>
7089
7090 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7091
7092 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7093
7094 * ada-lang.c (decode_constrained_packed_array): Perform a
7095 minimal coercion for reference with coerce_ref instead of
7096 ada_coerce_ref.
7097
7098 2014-03-17 Tristan Gingold <gingold@adacore.com>
7099
7100 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7101 (darwin_solib_create_inferior_hook): Emit a warning if version
7102 is unhandled.
7103
7104 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7105
7106 * python/py-value.c (get_field_flag): Cast flag_name argument to
7107 PyObject_GetAttrString to support Python 2.4.
7108
7109 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7110
7111 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7112 (Global Maintainers): Remove Jan Kratochvil.
7113
7114 2014-03-14 Pedro Alves <palves@redhat.com>
7115
7116 * inferior.h (terminal_ours_for_output): Rename to ...
7117 (child_terminal_ours_for_output): ... this.
7118 (terminal_save_ours): Rename to ...
7119 (child_terminal_save_ours): ... this.
7120 (terminal_ours): Rename to ...
7121 (child_terminal_ours): ... this.
7122 (terminal_inferior): Rename to ...
7123 (child_terminal_inferior): ... this.
7124 (terminal_init_inferior): Rename to ...
7125 (child_terminal_init_inferior): ... this.
7126 (terminal_init_inferior_with_pgrp): Rename to ...
7127 (child_terminal_init_inferior_with_pgrp): ... this.
7128 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7129 (child_terminal_init_with_pgrp): ... this.
7130 (terminal_save_ours): Rename to ...
7131 (child_terminal_save_ours): ... this.
7132 (terminal_init_inferior): Rename to ...
7133 (child_terminal_init): ... this. Adjust.
7134 (terminal_inferior): Rename to ...
7135 (child_terminal_inferior): ... this.
7136 (terminal_ours_for_output): Rename to ...
7137 (child_terminal_ours_for_output): ... this. Adjust.
7138 (terminal_ours): Rename to ...
7139 (child_terminal_ours): ... this.
7140 (terminal_ours_1): Rename to ...
7141 (child_terminal_ours_1): ... this. Adjust.
7142 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7143 * windows-nat.c (do_initial_windows_stuff): Adjust.
7144 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7145 (gnu_terminal_init): ... this. Adjust.
7146 (gnu_target): Adjust.
7147 * inf-child.c (inf_child_target): Adjust.
7148
7149 2014-03-13 Doug Evans <xdje42@gmail.com>
7150
7151 PR guile/16612
7152 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7153 new eq?-hashtab.
7154
7155 2014-03-13 Doug Evans <xdje42@gmail.com>
7156
7157 * value.c (record_latest_value): Call release_value_or_incref
7158 instead of release_value.
7159
7160 2014-03-13 Pedro Alves <palves@redhat.com>
7161
7162 * procfs.c (procfs_target): Don't override to_shortname,
7163 to_longname or to_doc.
7164
7165 2014-03-13 Pedro Alves <palves@redhat.com>
7166
7167 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7168 Unix in user visible strings.
7169
7170 2014-03-12 Stan Shebs <stan@codesourcery.com>
7171
7172 * gdbtypes.h: Annotate comments for Doxygen, add a page
7173 block comment with some general info.
7174
7175 2014-03-12 Pedro Alves <palves@redhat.com>
7176
7177 * infcmd.c (prepare_execution_command): New function, factored out
7178 from several execution commands.
7179 (run_command_1, continue_command, step_1, jump_command)
7180 (signal_command, until_command, advance_command, finish_command)
7181 (attach_command): Use prepare_execution_command.
7182
7183 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7184
7185 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7186 (MAX_BPTS): Define.
7187 (MAX_WPTS): Define.
7188 (struct arm_linux_thread_points): Removed.
7189 (struct arm_linux_process_info): New.
7190 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7191 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7192 (arm_linux_find_breakpoints_by_tid): Removed.
7193 (struct arch_lwp_info): New.
7194 (arm_linux_find_process_pid): New functions.
7195 (arm_linux_add_process): New functions.
7196 (arm_linux_process_info_get): New functions.
7197 (arm_linux_forget_process): New function.
7198 (arm_linux_get_debug_reg_state): New function.
7199 (struct update_registers_data): New.
7200 (update_registers_callback): New function.
7201 (arm_linux_insert_hw_breakpoint1): Updated.
7202 (arm_linux_remove_hw_breakpoint1): Updated.
7203 (arm_linux_insert_hw_breakpoint): Updated.
7204 (arm_linux_remove_hw_breakpoint): Updated.
7205 (arm_linux_insert_watchpoint): Updated.
7206 (arm_linux_remove_watchpoint): Updated.
7207 (arm_linux_new_thread): Updated.
7208 (arm_linux_prepare_to_resume): New function.
7209 (arm_linux_new_fork): New function.
7210 (_initialize_arm_linux_nat): Updated.
7211
7212 2014-03-12 Pedro Alves <palves@redhat.com>
7213
7214 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7215
7216 2014-03-12 Tom Tromey <tromey@redhat.com>
7217
7218 * inf-child.c (return_zero): New function.
7219 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7220 * aix-thread.c (aix_thread_inferior_created): New function.
7221 (aix_thread_attach): Remove.
7222 (init_aix_thread_ops): Don't set to_attach.
7223 (_initialize_aix_thread): Register inferior_created observer.
7224 * corelow.c (init_core_ops): Don't set to_attach or
7225 to_create_inferior.
7226 * exec.c (init_exec_ops): Don't set to_attach or
7227 to_create_inferior.
7228 * infcmd.c (run_command_1): Use find_run_target. Make direct
7229 target calls.
7230 (attach_command): Use find_attach_target. Make direct target
7231 calls.
7232 * record-btrace.c (init_record_btrace_ops): Don't set
7233 to_create_inferior.
7234 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7235 Remove.
7236 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7237 set to_create_inferior.
7238 * target.c (complete_target_initialization): Add assertion.
7239 (target_create_inferior): Remove.
7240 (find_default_attach, find_default_create_inferior): Remove.
7241 (find_attach_target, find_run_target): New functions.
7242 (find_default_is_async_p, find_default_can_async_p)
7243 (target_supports_non_stop, target_attach): Remove.
7244 (init_dummy_target): Don't set to_create_inferior or
7245 to_supports_non_stop.
7246 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7247 TARGET_DEFAULT_FUNC.
7248 <to_create_inferior>: Add comment.
7249 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7250 TARGET_DEFAULT_RETURN.
7251 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7252 (find_attach_target, find_run_target): Declare.
7253 (target_create_inferior): Remove.
7254 (target_has_execution_1): Update comment.
7255 (target_supports_non_stop): Remove.
7256 * target-delegates.c: Rebuild.
7257
7258 2014-03-12 Pedro Alves <palves@redhat.com>
7259
7260 * inf-child.h: Update comment to not mention Unix.
7261
7262 2014-03-12 Pedro Alves <palves@redhat.com>
7263
7264 * inf-child.c: Update top comment to not mention Unix. Add
7265 generic comment describing how this target is meant to be used.
7266 (inf_child_post_attach, inf_child_post_startup_inferior)
7267 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7268 Unix in comment.
7269
7270 2014-03-12 Pedro Alves <palves@redhat.com>
7271
7272 * nto-procfs.c: Include inf-child.h.
7273 (procfs_ops): Delete global.
7274 (procfs_can_run): Delete method.
7275 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7276 target pointer instead of referencing procfs_ops.
7277 (procfs_prepare_to_store): Delete.
7278 (init_procfs_ops): Delete function.
7279 (procfs_target): New function, based on init_procfs_ops, but
7280 inherit inf_child_target.
7281 (_initialize_procfs): Use procfs_target.
7282
7283 2014-03-12 Pedro Alves <palves@redhat.com>
7284
7285 * windows-nat.c: Include inf-child.h.
7286 (windows_ops): Delete global.
7287 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7288 methods.
7289 (init_windows_ops): Delete function.
7290 (windows_target): New function, based on init_windows_ops, but
7291 inherit inf_child_target.
7292 (_initialize_windows_nat): Use windows_target. Install x86
7293 specific target methods here.
7294
7295 2014-03-10 Doug Evans <xdje42@gmail.com>
7296
7297 * guile/guile.c (call_initialize_gdb_module): New function.
7298 (initialize_guile): Replace call to scm_init_guile with call to
7299 scm_with_guile.
7300
7301 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7302
7303 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7304 in call to TYPE_CODE macro.
7305
7306 2014-03-10 Jerome Guitton <guitton@adacore.com>
7307
7308 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7309 Resolve tagged types to full view.
7310
7311 2014-03-10 Hui Zhu <hui@codesourcery.com>
7312
7313 * target.h (target_insert_breakpoint): Remove "hardware" from its
7314 comments.
7315
7316 2014-03-07 Doug Evans <dje@google.com>
7317
7318 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7319
7320 2014-03-07 Doug Evans <dje@google.com>
7321
7322 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7323 Remove unused local comp_dir_attr. Assert exactly one of
7324 stub_comp_unit_die, stub_comp_dir is non-NULL.
7325
7326 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7327
7328 * target.h (complete_target_initialization, add_target):
7329 Add comment.
7330
7331 2014-03-07 Pedro Alves <palves@redhat.com>
7332
7333 * go32-nat.c: Include inf-child.h.
7334 (go32_ops): Delete global.
7335 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7336 Delete methods.
7337 (go32_create_inferior): Push the passed in target pointer instead
7338 of referencing go32_ops.
7339 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7340 (go32_target): New function, based on init_go32_ops, but inherit
7341 inf_child_target.
7342 (_initialize_go32_nat): Use go32_target. Move parts of
7343 init_go32_ops here.
7344
7345 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7346
7347 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7348 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7349 SYMBOL_VALUE_ADDRESS.
7350 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7351
7352 2014-03-06 Yao Qi <yao@codesourcery.com>
7353
7354 * breakpoint.c (get_tracepoint_by_number): Remove argument
7355 optional_p. All callers updated. Adjust comments. Update
7356 output message.
7357 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7358
7359 2014-03-06 Yao Qi <yao@codesourcery.com>
7360
7361 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7362 early if get_number returns zero. Use 'p' instead of 'args'.
7363
7364 2014-03-06 Yao Qi <yao@codesourcery.com>
7365
7366 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7367 message.
7368
7369 2014-03-06 Yao Qi <yao@codesourcery.com>
7370
7371 PR breakpoints/16508
7372 * tracepoint.c (check_trace_running): New function.
7373 (trace_find_command): Move code to check_trace_running and
7374 call check_trace_running.
7375 (trace_find_pc_command): Likewise.
7376 (trace_find_tracepoint_command): Likewise.
7377 (trace_find_line_command): Likewise.
7378 (trace_find_range_command): Likewise.
7379 * tracepoint.h (check_trace_running): Likewise.
7380 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7381
7382 2014-03-06 Yao Qi <yao@codesourcery.com>
7383
7384 * target.h (struct target_ops) <to_traceframe_info>: Use
7385 TARGET_DEFAULT_NORETURN (tcomplain ()).
7386 * target-delegates.c: Regenerated.
7387
7388 2014-03-05 Pedro Alves <palves@redhat.com>
7389
7390 PR gdb/16575
7391 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7392 void. Update comment.
7393 (dcache_xfer_memory): Delete.
7394 (dcache_read_memory_partial): New, based on the read bits of
7395 dcache_xfer_memory.
7396 (dcache_update): Add status parameter. Use ULONGEST for len, and
7397 adjust. Discard cache lines if the reason for the update was
7398 error.
7399 * dcache.h (dcache_xfer_memory): Delete declaration.
7400 (dcache_read_memory_partial): New declaration.
7401 (dcache_update): Update prototype.
7402 * target.c (raw_memory_xfer_partial): Update the dcache here.
7403 (memory_xfer_partial_1): Don't handle dcache writes here.
7404
7405 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7406
7407 * remote-sim.c (gdbsim_load): Add const to prog.
7408
7409 2014-03-03 Tom Tromey <tromey@redhat.com>
7410
7411 * elfread.c (probe_key): Change to bfd_data.
7412 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7413 now per-BFD, not per-objfile.
7414 * stap-probe.c (stap_probe_destroy): Update comment.
7415 (handle_stap_probe): Allocate on the per-BFD obstack.
7416
7417 2014-03-03 Tom Tromey <tromey@redhat.com>
7418
7419 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7420 * breakpoint.c (create_longjmp_master_breakpoint): Use
7421 get_probe_address.
7422 (add_location_to_breakpoint, bkpt_probe_insert_location)
7423 (bkpt_probe_remove_location): Update.
7424 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7425 * elfread.c (elf_symfile_relocate_probe): Remove.
7426 (elf_probe_fns): Update.
7427 (insert_exception_resume_breakpoint): Change type of "probe"
7428 parameter to bound_probe.
7429 (check_exception_resume): Update.
7430 * objfiles.c (objfile_relocate1): Don't relocate probes.
7431 * probe.c (bound_probe_s): New typedef.
7432 (parse_probes): Use get_probe_address. Set sal's objfile.
7433 (find_probe_by_pc): Return a bound_probe.
7434 (collect_probes): Return a VEC(bound_probe_s).
7435 (compare_probes): Update.
7436 (gen_ui_out_table_header_info): Change type of "probes"
7437 parameter. Update.
7438 (info_probes_for_ops): Update.
7439 (get_probe_address): New function.
7440 (probe_safe_evaluate_at_pc): Update.
7441 * probe.h (struct probe_ops) <get_probe_address>: New field.
7442 <set_semaphore, clear_semaphore>: Add objfile parameter.
7443 (struct probe) <objfile>: Remove field.
7444 <arch>: New field.
7445 <address>: Update comment.
7446 (struct bound_probe): New.
7447 (find_probe_by_pc): Return a bound_probe.
7448 (get_probe_address): Declare.
7449 * solib-svr4.c (struct probe_and_action) <address>: New field.
7450 (hash_probe_and_action, equal_probe_and_action): Update.
7451 (register_solib_event_probe): Add address parameter.
7452 (solib_event_probe_at): Update.
7453 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7454 get_probe_address.
7455 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7456 (stap_get_probe_address): New function.
7457 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7458 (compile_probe_arg): Update.
7459 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7460 address.
7461 (handle_stap_probe): Don't relocate the probe.
7462 (stap_relocate): Remove.
7463 (stap_gen_info_probes_table_values): Update.
7464 (stap_probe_ops): Remove stap_relocate.
7465 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7466 (debug_sym_probe_fns): Update.
7467 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7468 * symtab.c (init_sal): Use memset.
7469 * symtab.h (struct symtab_and_line) <objfile>: New field.
7470 * tracepoint.c (start_tracing, stop_tracing): Update.
7471
7472 2014-03-03 Tom Tromey <tromey@redhat.com>
7473
7474 * probe.h (parse_probes, find_probe_by_pc)
7475 (find_probes_in_objfile): Fix comments.
7476
7477 2014-03-02 Doug Evans <xdje42@gmail.com>
7478
7479 * infrun.c (handle_signal_stop): Replace test for
7480 TARGET_WAITKIND_STOPPED with an assert.
7481
7482 2014-03-02 Doug Evans <xdje42@gmail.com>
7483
7484 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7485
7486 2014-03-02 Doug Evans <xdje42@gmail.com>
7487
7488 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7489
7490 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7491
7492 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7493
7494 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7495
7496 * i386obsd-nat.c: Include "obsd-nat.h".
7497 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7498 add_target.
7499 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7500
7501 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7502
7503 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7504
7505 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7506
7507 * mips64obsd-nat.c: Include "obsd-nath".
7508 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7509 add_target
7510 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7511
7512 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7513
7514 * amd64obsd-nat.c: Include "obsd-nat,h.
7515 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7516 add_target.
7517 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7518
7519 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7520
7521 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7522 (find_overload_match): Update call to find_oload_champ.
7523 (find_oload_champ_namespace_loop): Likewise
7524
7525 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7526
7527 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7528
7529 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7530 * config/sparc/obsd64.mh: New file.
7531 * sparc64obsd-nat.c: New file.
7532
7533 * obsd-nat.h: New file.
7534 * obsd-nat.c: New file.
7535 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7536 (ALLDEPFILES): Add obsd-nat.c.
7537
7538 2014-02-28 Tom Tromey <tromey@redhat.com>
7539
7540 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7541 * cli-out.h (cli_ui_out_impl): Now const.
7542 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7543 * ui-out.c (struct ui_out) <impl>: Now const.
7544 (default_ui_out_impl): Now const.
7545 (ui_out_new): Make 'impl' parameter const.
7546 * ui-out.h (ui_out_new): Update.
7547
7548 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7549
7550 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7551
7552 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7553
7554 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7555
7556 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7557
7558 Additional PR 8882 fix.
7559 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7560
7561 2014-02-27 Pedro Alves <palves@redhat.com>
7562
7563 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7564 isn't set.
7565
7566 2014-02-27 Pedro Alves <palves@redhat.com>
7567
7568 PR 12702
7569 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7570 * nat/linux-waitpid.c: Include string.h.
7571 (status_to_str): Moved here and made extern.
7572 * nat/linux-waitpid.h (status_to_str): New declaration.
7573
7574 2014-02-27 Hui Zhu <hui@codesourcery.com>
7575
7576 PR 12702
7577 * infrun.c (ptid_match): Move ...
7578 * common/ptid.c (ptid_match): ... here.
7579 * inferior.h (ptid_match): Move ...
7580 * common/ptid.h (ptid_match): ... here.
7581
7582 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7583
7584 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7585 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7586 gdb_target_obs.
7587
7588 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7589
7590 * obsd-tdep.c (obsd_auxv_parse): New function.
7591 (obsd_init_abi): Set auxv_parse.
7592
7593 * gdbarch.sh (auxv_parse): New.
7594 * gdbarch.h: Regenerated.
7595 * gdbarch.c: Regenerated.
7596 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7597
7598 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7599
7600 * guile/scm-value.c (gdbscm_history_append_x): New function.
7601 (value_functions): Add it.
7602
7603 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7604
7605 * dwarf2read.c (attr_value_as_address): New function.
7606 (dwarf2_find_base_address, read_call_site_scope): Use
7607 attr_value_as_address in place of DW_ADDR.
7608 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7609 the low and high addresses. Slight rework of the handling
7610 of the high pc being a constant form, and limit it to
7611 DWARF verson 4 or higher.
7612 (dwarf2_record_block_ranges): Likewise.
7613 (read_partial_die): Likewise.
7614 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7615
7616 2014-02-26 Tom Tromey <tromey@redhat.com>
7617
7618 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7619
7620 2014-02-26 Tom Tromey <tromey@redhat.com>
7621
7622 * elfread.c (elf_read_minimal_symbols): Return early if
7623 minimal symbols have already been read. Add "ei" parameter.
7624 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7625 * minsyms.c (prim_record_minimal_symbol_full): Update.
7626 * objfiles.h (struct objstats) <n_minsyms>: Move...
7627 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7628 * symmisc.c (print_objfile_statistics): Update.
7629
7630 2014-02-26 Tom Tromey <tromey@redhat.com>
7631
7632 * elfread.c (elf_read_minimal_symbols): New function, from
7633 elf_symfile_read.
7634 (elf_symfile_read): Call it.
7635
7636 2014-02-26 Tom Tromey <tromey@redhat.com>
7637
7638 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7639 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7640 (lookup_minimal_symbol_solib_trampoline)
7641 (lookup_minimal_symbol_by_pc_section_1)
7642 (lookup_minimal_symbol_and_objfile): Update.
7643 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7644 Don't allocate a minimal symbol if minsyms have already been read.
7645 (build_minimal_symbol_hash_tables): Update.
7646 (install_minimal_symbols): Do nothing if minsyms already read.
7647 Use the per-BFD obstack.
7648 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7649 * objfiles.c (allocate_objfile): Call
7650 terminate_minimal_symbol_table later.
7651 (have_minimal_symbols): Update.
7652 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7653 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7654 Move from struct objfile.
7655 <minsyms_read>: New field.
7656 (struct objfile) <msymbols, minimal_symbol_count,
7657 msymbol_hash, msymbol_demangled_hash>: Move.
7658 (ALL_OBJFILE_MSYMBOLS): Update.
7659 * symfile.c (read_symbols): Set minsyms_read.
7660 (reread_symbols): Update.
7661 * symmisc.c (dump_objfile, dump_msymbols): Update.
7662
7663 2014-02-26 Tom Tromey <tromey@redhat.com>
7664
7665 * minsyms.c (msymbols_sort): Remove.
7666 * minsyms.h (msymbols_sort): Remove.
7667 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7668 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7669 * elfread.c (elf_symtab_read): Don't add section offsets.
7670 * xcoffread.c (record_minimal_symbol): Don't add section offset
7671 to minimal symbol address.
7672 * somread.c (text_offset, data_offset): Remove.
7673 (som_symtab_read): Don't add section offsets to minimal symbol
7674 addresses.
7675 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7676 Don't add section offsets to minimal symbols.
7677 * coffread.c (coff_symtab_read): Don't add section offsets
7678 to minimal symbol addresses.
7679 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7680 to minimal symbol addresses.
7681 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7682 section offset to minimal symbol addresses.
7683 * mdebugread.c (parse_partial_symbols): Don't add section
7684 offset to minimal symbol addresses.
7685 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7686 offset to minimal symbol addresses.
7687
7688 2014-02-26 Tom Tromey <tromey@redhat.com>
7689
7690 * ada-lang.c (ada_main_name): Update.
7691 (ada_add_standard_exceptions): Update.
7692 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7693 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7694 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7695 * auxv.c (ld_so_xfer_auxv): Update.
7696 * avr-tdep.c (avr_scan_prologue): Update.
7697 * ax-gdb.c (gen_var_ref): Update.
7698 * blockframe.c (get_pc_function_start)
7699 (find_pc_partial_function_gnu_ifunc): Update.
7700 * breakpoint.c (create_overlay_event_breakpoint)
7701 (create_longjmp_master_breakpoint)
7702 (create_std_terminate_master_breakpoint)
7703 (create_exception_master_breakpoint): Update.
7704 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7705 * c-valprint.c (c_val_print): Update.
7706 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7707 * common/agent.c (agent_look_up_symbols): Update.
7708 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7709 * dwarf2loc.c (call_site_to_target_addr): Update.
7710 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7711 * elfread.c (elf_gnu_ifunc_record_cache)
7712 (elf_gnu_ifunc_resolve_by_got): Update.
7713 * findvar.c (default_read_var_value): Update.
7714 * frame.c (inside_main_func): Update.
7715 * frv-tdep.c (frv_frame_this_id): Update.
7716 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7717 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7718 Update.
7719 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7720 (hppa_hpux_find_dummy_bpaddr): Update.
7721 * hppa-tdep.c (hppa_symbol_address): Update.
7722 * infcmd.c (until_next_command): Update.
7723 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7724 Update.
7725 * linespec.c (minsym_found, add_minsym): Update.
7726 * linux-nat.c (get_signo): Update.
7727 * linux-thread-db.c (inferior_has_bug): Update.
7728 * m32c-tdep.c (m32c_return_value)
7729 (m32c_m16c_address_to_pointer): Update.
7730 * m32r-tdep.c (m32r_frame_this_id): Update.
7731 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7732 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7733 * maint.c (maintenance_translate_address): Update.
7734 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7735 (frob_address): New function.
7736 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7737 frob_address. Rename parameter to "pc_in".
7738 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7739 addresses.
7740 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7741 Update.
7742 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7743 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7744 * objc-lang.c (find_objc_msgsend): Update.
7745 * objfiles.c (objfile_relocate1): Update.
7746 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7747 * p-valprint.c (pascal_val_print): Update.
7748 * parse.c (write_exp_msymbol): Update.
7749 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7750 (ppc_elfv2_skip_entrypoint): Update.
7751 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7752 * printcmd.c (build_address_symbolic, msym_info)
7753 (address_info): Update.
7754 * proc-service.c (ps_pglobal_lookup): Update.
7755 * psymtab.c (find_pc_sect_psymtab_closer)
7756 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7757 Change msymbol parameter to bound_minimal_symbol.
7758 * ravenscar-thread.c (get_running_thread_id): Update.
7759 * remote.c (remote_check_symbols): Update.
7760 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7761 address.
7762 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7763 * solib-dsbt.c (lm_base): Update.
7764 * solib-frv.c (lm_base, main_got): Update.
7765 * solib-irix.c (locate_base): Update.
7766 * solib-som.c (som_solib_create_inferior_hook)
7767 (link_map_start): Update.
7768 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7769 * solib-svr4.c (elf_locate_base, enable_break): Update.
7770 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7771 (flush_ea_cache): Update.
7772 * stabsread.c (define_symbol, scan_file_globals): Update.
7773 * stack.c (find_frame_funname): Update.
7774 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7775 (debug_qf_find_pc_sect_symtab): Update.
7776 * symfile.c (simple_read_overlay_table)
7777 (simple_overlay_update): Update.
7778 * symfile.h (struct quick_symbol_functions)
7779 <find_pc_sect_symtab>: Change type of msymbol to
7780 bound_minimal_symbol.
7781 * symmisc.c (dump_msymbols): Update.
7782 * symtab.c (find_pc_sect_symtab_via_partial)
7783 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7784 (search_symbols, print_msymbol_info): Update.
7785 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7786 (MSYMBOL_VALUE_ADDRESS): Redefine.
7787 (BMSYMBOL_VALUE_ADDRESS): New macro.
7788 * tracepoint.c (scope_info): Update.
7789 * tui/tui-disasm.c (tui_find_disassembly_address)
7790 (tui_get_begin_asm_address): Update.
7791 * valops.c (find_function_in_inferior): Update.
7792 * value.c (value_static_field, value_fn_field): Update.
7793
7794 2014-02-26 Tom Tromey <tromey@redhat.com>
7795
7796 * ada-lang.c (ada_update_initial_language): Update.
7797 (ada_main_name, ada_has_this_exception_support): Update.
7798 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7799 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7800 * arm-tdep.c (arm_skip_stub): Update.
7801 * auxv.c (ld_so_xfer_auxv): Update.
7802 * avr-tdep.c (avr_scan_prologue): Update.
7803 * ax-gdb.c (gen_var_ref): Update.
7804 * breakpoint.c (struct breakpoint_objfile_data)
7805 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7806 type to bound_minimal_symbol.
7807 (create_overlay_event_breakpoint)
7808 (create_longjmp_master_breakpoint)
7809 (create_std_terminate_master_breakpoint)
7810 (create_exception_master_breakpoint): Update.
7811 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7812 * c-exp.y (classify_name): Update.
7813 * coffread.c (coff_symfile_read): Update.
7814 * common/agent.c (agent_look_up_symbols): Update.
7815 * d-lang.c (d_main_name): Update.
7816 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7817 * dec-thread.c (enable_dec_thread): Update.
7818 * dwarf2loc.c (call_site_to_target_addr): Update.
7819 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7820 * eval.c (evaluate_subexp_standard): Update.
7821 * findvar.c (struct minsym_lookup_data) <result>: Change type
7822 to bound_minimal_symbol.
7823 <objfile>: Remove.
7824 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7825 * frame.c (inside_main_func): Update.
7826 * frv-tdep.c (frv_frame_this_id): Update.
7827 * gcore.c (call_target_sbrk): Update.
7828 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7829 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7830 Update.
7831 * go-lang.c (go_main_name): Update.
7832 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7833 (hppa_hpux_find_import_stub_for_addr): Update.
7834 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7835 Update. Change return type.
7836 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7837 type.
7838 * jit.c (jit_breakpoint_re_set_internal): Update.
7839 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7840 Update.
7841 * linux-nat.c (get_signo): Update.
7842 * linux-thread-db.c (inferior_has_bug): Update
7843 * m32c-tdep.c (m32c_return_value)
7844 (m32c_m16c_address_to_pointer): Update.
7845 * m32r-tdep.c (m32r_frame_this_id): Update.
7846 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7847 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7848 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7849 lookup_minimal_symbol. Change return type.
7850 (lookup_minimal_symbol): Remove.
7851 (lookup_bound_minimal_symbol): Update.
7852 (lookup_minimal_symbol_text): Change return type.
7853 (lookup_minimal_symbol_solib_trampoline): Change return type.
7854 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7855 (lookup_minimal_symbol_solib_trampoline): Change return type.
7856 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7857 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7858 (value_nsstring, find_imps): Update.
7859 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7860 * p-lang.c (pascal_main_name): Update.
7861 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7862 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7863 * proc-service.c (ps_pglobal_lookup): Update.
7864 * ravenscar-thread.c (get_running_thread_msymbol): Change
7865 return type.
7866 (has_ravenscar_runtime, get_running_thread_id): Update.
7867 * remote.c (remote_check_symbols): Update.
7868 * sol-thread.c (ps_pglobal_lookup): Update.
7869 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7870 * solib-dsbt.c (lm_base): Update.
7871 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7872 Update.
7873 * solib-irix.c (locate_base): Update.
7874 * solib-som.c (som_solib_create_inferior_hook)
7875 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7876 Update.
7877 * solib-spu.c (spu_enable_break): Update.
7878 * solib-svr4.c (elf_locate_base, enable_break): Update.
7879 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7880 (flush_ea_cache): Update.
7881 * stabsread.c (define_symbol): Update.
7882 * symfile.c (simple_read_overlay_table): Update.
7883 * symtab.c (find_pc_sect_line): Update.
7884 * tracepoint.c (scope_info): Update.
7885 * tui-disasm.c (tui_get_begin_asm_address): Update.
7886 * value.c (value_static_field): Update.
7887
7888 2014-02-26 Tom Tromey <tromey@redhat.com>
7889
7890 * minsyms.c (prim_record_minimal_symbol_full): Use
7891 SET_MSYMBOL_VALUE_ADDRESS.
7892 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7893 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7894 SET_MSYMBOL_VALUE_ADDRESS.
7895 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7896 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7897
7898 2014-02-26 Tom Tromey <tromey@redhat.com>
7899
7900 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7901 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7902 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7903 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7904 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7905 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7906 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7907 * ada-lang.c (ada_main_name): Update.
7908 (ada_lookup_simple_minsym): Update.
7909 (ada_make_symbol_completion_list): Update.
7910 (ada_add_standard_exceptions): Update.
7911 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7912 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7913 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7914 * arm-tdep.c (skip_prologue_function): Update.
7915 (arm_skip_stack_protector, arm_skip_stub): Update.
7916 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7917 (arm_wince_skip_main_prologue): Update.
7918 * auxv.c (ld_so_xfer_auxv): Update.
7919 * avr-tdep.c (avr_scan_prologue): Update.
7920 * ax-gdb.c (gen_var_ref): Update.
7921 * block.c (call_site_for_pc): Update.
7922 * blockframe.c (get_pc_function_start): Update.
7923 (find_pc_partial_function_gnu_ifunc): Update.
7924 * breakpoint.c (create_overlay_event_breakpoint): Update.
7925 (create_longjmp_master_breakpoint): Update.
7926 (create_std_terminate_master_breakpoint): Update.
7927 (create_exception_master_breakpoint): Update.
7928 (resolve_sal_pc): Update.
7929 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7930 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7931 Update.
7932 * c-valprint.c (c_val_print): Update.
7933 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7934 * coffread.c (coff_symfile_read): Update.
7935 * common/agent.c (agent_look_up_symbols): Update.
7936 * dbxread.c (find_stab_function_addr): Update.
7937 (end_psymtab): Update.
7938 * dwarf2loc.c (call_site_to_target_addr): Update.
7939 (func_verify_no_selftailcall): Update.
7940 (tailcall_dump): Update.
7941 (call_site_find_chain_1): Update.
7942 (dwarf_expr_reg_to_entry_parameter): Update.
7943 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7944 (elf_gnu_ifunc_resolve_by_got): Update.
7945 * f-valprint.c (info_common_command): Update.
7946 * findvar.c (read_var_value): Update.
7947 * frame.c (get_prev_frame_1): Update.
7948 (inside_main_func): Update.
7949 * frv-tdep.c (frv_skip_main_prologue): Update.
7950 (frv_frame_this_id): Update.
7951 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7952 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7953 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7954 (gnuv3_skip_trampoline): Update.
7955 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7956 (hppa64_hpux_in_solib_call_trampoline): Update.
7957 (hppa_hpux_skip_trampoline_code): Update.
7958 (hppa64_hpux_search_dummy_call_sequence): Update.
7959 (hppa_hpux_find_import_stub_for_addr): Update.
7960 (hppa_hpux_find_dummy_bpaddr): Update.
7961 * hppa-tdep.c (hppa_symbol_address)
7962 (hppa_lookup_stub_minimal_symbol): Update.
7963 * i386-tdep.c (i386_skip_main_prologue): Update.
7964 (i386_pe_skip_trampoline_code): Update.
7965 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7966 * infcall.c (get_function_name): Update.
7967 * infcmd.c (until_next_command): Update.
7968 * jit.c (jit_breakpoint_re_set_internal): Update.
7969 (jit_inferior_init): Update.
7970 * linespec.c (minsym_found): Update.
7971 (add_minsym): Update.
7972 * linux-fork.c (info_checkpoints_command): Update.
7973 * linux-nat.c (get_signo): Update.
7974 * linux-thread-db.c (inferior_has_bug): Update.
7975 * m32c-tdep.c (m32c_return_value): Update.
7976 (m32c_m16c_address_to_pointer): Update.
7977 (m32c_m16c_pointer_to_address): Update.
7978 * m32r-tdep.c (m32r_frame_this_id): Update.
7979 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7980 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7981 * maint.c (maintenance_translate_address): Update.
7982 * minsyms.c (add_minsym_to_hash_table): Update.
7983 (add_minsym_to_demangled_hash_table): Update.
7984 (msymbol_objfile): Update.
7985 (lookup_minimal_symbol): Update.
7986 (iterate_over_minimal_symbols): Update.
7987 (lookup_minimal_symbol_text): Update.
7988 (lookup_minimal_symbol_by_pc_name): Update.
7989 (lookup_minimal_symbol_solib_trampoline): Update.
7990 (lookup_minimal_symbol_by_pc_section_1): Update.
7991 (lookup_minimal_symbol_and_objfile): Update.
7992 (prim_record_minimal_symbol_full): Update.
7993 (compare_minimal_symbols): Update.
7994 (compact_minimal_symbols): Update.
7995 (build_minimal_symbol_hash_tables): Update.
7996 (install_minimal_symbols): Update.
7997 (terminate_minimal_symbol_table): Update.
7998 (find_solib_trampoline_target): Update.
7999 (minimal_symbol_upper_bound): Update.
8000 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8001 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8002 (mips_skip_pic_trampoline_code): Update.
8003 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8004 * objc-lang.c (selectors_info): Update.
8005 (classes_info): Update.
8006 (find_methods): Update.
8007 (find_imps): Update.
8008 (find_objc_msgsend): Update.
8009 * objfiles.c (objfile_relocate1): Update.
8010 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8011 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8012 * p-valprint.c (pascal_val_print): Update.
8013 * parse.c (write_exp_msymbol): Update.
8014 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8015 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8016 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8017 * printcmd.c (build_address_symbolic): Update.
8018 (sym_info): Update.
8019 (address_info): Update.
8020 * proc-service.c (ps_pglobal_lookup): Update.
8021 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8022 (find_pc_sect_psymtab): Update.
8023 * python/py-framefilter.c (py_print_frame): Update.
8024 * ravenscar-thread.c (get_running_thread_id): Update.
8025 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8026 Update.
8027 * remote.c (remote_check_symbols): Update.
8028 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8029 (rs6000_skip_trampoline_code): Update.
8030 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8031 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8032 * solib-dsbt.c (lm_base): Update.
8033 * solib-frv.c (lm_base): Update.
8034 (main_got): Update.
8035 * solib-irix.c (locate_base): Update.
8036 * solib-som.c (som_solib_create_inferior_hook): Update.
8037 (som_solib_desire_dynamic_linker_symbols): Update.
8038 (link_map_start): Update.
8039 * solib-spu.c (spu_enable_break): Update.
8040 (ocl_enable_break): Update.
8041 * solib-svr4.c (elf_locate_base): Update.
8042 (enable_break): Update.
8043 * spu-tdep.c (spu_get_overlay_table): Update.
8044 (spu_catch_start): Update.
8045 (flush_ea_cache): Update.
8046 * stabsread.c (define_symbol): Update.
8047 (scan_file_globals): Update.
8048 * stack.c (find_frame_funname): Update.
8049 (frame_info): Update.
8050 * symfile.c (simple_read_overlay_table): Update.
8051 (simple_overlay_update): Update.
8052 * symmisc.c (dump_msymbols): Update.
8053 * symtab.c (fixup_section): Update.
8054 (find_pc_sect_line): Update.
8055 (skip_prologue_sal): Update.
8056 (search_symbols): Update.
8057 (print_msymbol_info): Update.
8058 (rbreak_command): Update.
8059 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8060 (completion_list_objc_symbol): Update.
8061 (default_make_symbol_completion_list_break_on): Update.
8062 * tracepoint.c (scope_info): Update.
8063 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8064 (tui_get_begin_asm_address): Update.
8065 * valops.c (find_function_in_inferior): Update.
8066 * value.c (value_static_field): Update.
8067 (value_fn_field): Update.
8068
8069 2014-02-26 Tom Tromey <tromey@redhat.com>
8070
8071 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8072 bound minimal symbols. Move code that knows about minsym
8073 table layout...
8074 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8075 function.
8076 * minsyms.h (minimal_symbol_upper_bound): Declare.
8077 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8078 minimal_symbol_upper_bound.
8079
8080 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8081
8082 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8083 Use the type's name if its basic type does not have a tag.
8084
8085 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8086
8087 * dwarf2read.c (read_subrange_type): Add comment.
8088
8089 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8090
8091 * dwarf2read.c (update_enumeration_type_from_children): New
8092 function, mostly extracted from process_structure_scope.
8093 (read_enumeration_type): Call update_enumeration_type_from_children.
8094 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8095 and flag_flag_enum fields.
8096
8097 2014-02-26 Pedro Alves <palves@redhat.com>
8098
8099 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8100 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8101 to_xfer_partial method.
8102
8103 2014-02-26 Pedro Alves <palves@redhat.com>
8104
8105 * target.c (complete_target_initialization): Don't install
8106 default_xfer_partial as to_xfer_partial hook.
8107 (nomemory): Delete.
8108 (update_current_target): Don't INHERIT nor de_fault
8109 deprecated_xfer_memory. Delete de_fault macro.
8110 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8111 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8112 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8113 field.
8114
8115 2014-02-26 Pedro Alves <palves@redhat.com>
8116
8117 * go32-nat.c (my_write_child): New function.
8118 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8119 (go32_xfer_partial): New function.
8120 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8121 Instead install a to_xfer_partial hook.
8122
8123 2014-02-26 Pedro Alves <palves@redhat.com>
8124
8125 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8126 to_xfer_partial helper. Rewrite.
8127 (procfs_xfer_partial): New function.
8128 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8129 Install a to_xfer_partial hook.
8130
8131 2014-02-26 Pedro Alves <palves@redhat.com>
8132
8133 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8134 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8135 (m32r_xfer_partial): New function.
8136 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8137 Install a to_xfer_partial hook.
8138
8139 2014-02-26 Pedro Alves <palves@redhat.com>
8140
8141 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8142 helper.
8143 (mips_xfer_partial): New function.
8144 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8145 hook. Install a to_xfer_partial hook.
8146
8147 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8148
8149 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8150 * gdbtypes.c (create_array_type_with_stride): New function,
8151 renaming create_array_type, but with an added parameter
8152 called "bit_stride".
8153 (create_array_type): Re-implement using
8154 create_array_type_with_stride.
8155 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8156 and DW_AT_bit_stride attributes.
8157
8158 2014-02-26 Pedro Alves <palves@redhat.com>
8159
8160 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8161 task-specific breakpoints.
8162
8163 2014-02-25 Pedro Alves <palves@redhat.com>
8164
8165 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8166 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8167
8168 2014-02-25 Stan Shebs <stan@codesourcery.com>
8169
8170 * defs.h: Annotate comments for Doxygen.
8171
8172 2014-02-25 Tom Tromey <tromey@redhat.com>
8173
8174 * target.h (target_ignore): Don't declare.
8175 * target.c (target_ignore): Remove.
8176
8177 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8178
8179 PR gdb/16626
8180 * auto-load.c (auto_load_objfile_script_1): Change filename to
8181 debugfile.
8182
8183 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8184
8185 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8186 documentation. Adjust prototype to match the target_ops
8187 to_xfer_partial method. Adjust implementation accordingly.
8188
8189 2014-02-25 Hui Zhu <hui@codesourcery.com>
8190
8191 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8192 to_traceframe_info.
8193
8194 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8195
8196 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8197 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8198 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8199 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8200 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8201 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8202 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8203 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8204 New constants.
8205 (rl78_register_type): Use a data pointer type for SP and
8206 new pseudo registers mentioned above. Use a 16 bit integer
8207 type for all other register pairs.
8208 (rl78_register_name, rl78_g10_register_name): Update for
8209 new pseudo registers.
8210 (rl78_pseudo_register_read): Likewise.
8211 (rl78_pseudo_register_write): Likewise.
8212 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8213 to the newly added pseudo registers.
8214
8215 2014-02-24 Doug Evans <dje@google.com>
8216
8217 * value.c (record_latest_value): Fix comment.
8218 * printcmd.c (print_command_1): Remove code to handle -1 return from
8219 record_latest_value.
8220
8221 2014-02-24 Pedro Alves <palves@redhat.com>
8222
8223 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8224 deprecated_xfer_memory hook.
8225 (procfs_xfer_partial): Call procfs_xfer_memory instead
8226 of the deprecated_xfer_memory target hook.
8227 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8228 helper.
8229
8230 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8231
8232 * windows-nat.c (windows_xfer_shared_libraries): Return
8233 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8234 requested object is TARGET_OBJECT_LIBRARIES.
8235
8236 2014-02-24 Yao Qi <yao@codesourcery.com>
8237
8238 * target.h (enum target_xfer_status)
8239 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8240 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8241 explicitly. New.
8242 * corefile.c (memory_error_message): User updated.
8243 * exec.c (section_table_read_available_memory): Likewise.
8244 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8245 * target.c (target_xfer_status_to_string): Likewise.
8246 (raw_memory_xfer_partial): Likewise.
8247 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8248 * valops.c (read_value_memory): Likewise.
8249 * exec.h: Update comments.
8250
8251 2014-02-24 Yao Qi <yao@codesourcery.com>
8252
8253 * target.c (target_xfer_status_to_string): Rename argument err
8254 to status.
8255 * target.h (target_xfer_status_to_string): Update declaration.
8256 Replace target_xfer_error_to_string with
8257 target_xfer_status_to_string in comment.
8258
8259 2014-02-24 Yao Qi <yao@codesourcery.com>
8260
8261 * mips-linux-nat.c (super_close): Update its type.
8262 (mips_linux_close): Pass 'self' to super_close.
8263
8264 2014-02-24 Yao Qi <yao@codesourcery.com>
8265
8266 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8267 * corefile.c (read_memory): Adjusted.
8268 * target.c (target_write_with_progress): Adjusted.
8269
8270 2014-02-23 Yao Qi <yao@codesourcery.com>
8271
8272 Revert two patches:
8273
8274 2013-10-25 Yao Qi <yao@codesourcery.com>
8275
8276 * remote.c (remote_traceframe_info): Return early if
8277 traceframe is not selected.
8278
8279 2013-07-19 Yao Qi <yao@codesourcery.com>
8280
8281 * target.c (update_current_target): Change the default action
8282 of 'to_traceframe_info' from tcomplain to return_zero.
8283 * target.h (struct target_ops) <to_traceframe_info>: Add more
8284 comments.
8285
8286 2014-02-23 Yao Qi <yao@codesourcery.com>
8287
8288 * valops.c (read_value_memory): Rewrite it. Call
8289 target_xfer_partial in a loop.
8290 * exec.h (section_table_available_memory): Remove declaration.
8291 Move comments to ...
8292 * exec.c (section_table_available_memory): ... here. Make it
8293 static.
8294
8295 2014-02-23 Yao Qi <yao@codesourcery.com>
8296
8297 * exec.c (section_table_read_available_memory): New function.
8298 * exec.h (section_table_read_available_memory): Declare.
8299 * ctf.c (ctf_xfer_partial): Call
8300 section_table_read_available_memory.
8301 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8302
8303 2014-02-23 Yao Qi <yao@codesourcery.com>
8304
8305 * ctf.c (ctf_xfer_partial): Move code to ...
8306 * exec.c (exec_read_partial_read_only): ... it. New function.
8307 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8308 * tracefile.c: Include "exec.h".
8309 * exec.h (exec_read_partial_read_only): Declare.
8310
8311 2014-02-23 Yao Qi <yao@codesourcery.com>
8312
8313 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8314 (tfile_has_memory): Remove.
8315 (init_tfile_ops): Don't set fields to_has_all_memory and
8316 to_has_memory of tfile_ops.
8317 * tracefile.c (tracefile_has_all_memory): New function.
8318 (tracefile_has_memory): New function.
8319 (init_tracefile_ops): Initialize fields to_has_all_memory and
8320 to_has_memory of 'ops'.
8321
8322 2014-02-23 Yao Qi <yao@codesourcery.com>
8323
8324 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8325 (ctf_thread_alive, ctf_get_trace_status): Remove.
8326 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8327 init_tracefile_ops.
8328 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8329 (tfile_has_stack, tfile_has_registers): Remove.
8330 (tfile_thread_alive): Remove.
8331 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8332 init_tracefile_ops.
8333 * tracefile.c (tracefile_has_stack): New function.
8334 (tracefile_has_registers): New function.
8335 (tracefile_thread_alive): New function.
8336 (tracefile_get_trace_status): New function.
8337 (init_tracefile_ops): New function.
8338 * tracefile.h (init_tracefile_ops): Declare.
8339
8340 2014-02-23 Yao Qi <yao@codesourcery.com>
8341
8342 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8343 (O_LARGEFILE): Likewise.
8344 (tfile_ops): Likewise.
8345 (TRACE_HEADER_SIZE): Likewise.
8346 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8347 (cur_data_size): Likewise.
8348 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8349 (tfile_close, tfile_files_info): Likewise.
8350 (tfile_get_trace_status): Likewise.
8351 (tfile_get_tracepoint_status): Likewise.
8352 (tfile_get_traceframe_address): Likewise.
8353 (tfile_trace_find, match_blocktype): Likewise.
8354 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8355 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8356 (tfile_get_trace_state_variable_value): Likewise.
8357 (tfile_has_all_memory, tfile_has_memory): Likewise.
8358 (tfile_has_stack, tfile_has_registers): Likewise.
8359 (tfile_thread_alive, build_traceframe_info): Likewise.
8360 (tfile_traceframe_info, init_tfile_ops): Likewise.
8361 (_initialize_tracepoint): Don't call init_tfile_ops
8362 and add_target_with_completer.
8363 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8364 exec.h, completer.h and filenames.h.
8365 (_initialize_tracefile_tfile): New function.
8366
8367 2014-02-23 Yao Qi <yao@codesourcery.com>
8368
8369 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8370 tracefile-tfile.o.
8371 (HFILES_NO_SRCDIR): Add tracefile.h.
8372 * ctf.c: Include "tracefile.h".
8373 * tracefile.h: New file.
8374 * tracefile.c: New file
8375 * tracefile-tfile.c: New file.
8376 * tracepoint.c: Include "tracefile.h".
8377 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8378 (stop_reason_names): Add const.
8379 (trace_file_writer_xfree): Move it to tracefile.c.
8380 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8381 (trace_save_ctf): Likewise.
8382 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8383 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8384 (tfile_write_header, tfile_write_regblock_type): Likewise.
8385 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8386 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8387 (tfile_write_raw_data, tfile_end): Likewise.
8388 (tfile_trace_file_writer_new): Likewise.
8389 (free_uploaded_tp): Make it extern.
8390 (free_uploaded_tsv): Make it extern.
8391 (_initialize_tracepoint): Move code to register command 'tsave'
8392 to tracefile.c.
8393 * tracepoint.h (stop_reason_names): Declare.
8394 (struct trace_frame_write_ops): Move it to tracefile.h.
8395 (struct trace_file_write_ops): Likewise.
8396 (struct trace_file_writer): Likewise.
8397 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8398
8399 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8400
8401 PR gdb/16594
8402 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8403 process name.
8404 (get_cores_used_by_process): New parameter num_cores, use it.
8405 (linux_xfer_osdata_processes): Pass num_cores to it.
8406 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8407 process name.
8408
8409 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8410
8411 * target.c (memory_xfer_partial): Fix length arg in call to
8412 breakpoint_xfer_memory.
8413
8414 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8415
8416 PR tdep/16397
8417 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8418 number comes after the + or - signs. Adjust length of register
8419 name to be extracted.
8420
8421 2014-02-20 Tom Tromey <tromey@redhat.com>
8422
8423 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8424 (ada_varobj_ops): Mark "extern".
8425
8426 2014-02-20 Tom Tromey <tromey@redhat.com>
8427
8428 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8429
8430 2014-02-20 Doug Evans <xdje42@gmail.com>
8431
8432 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8433 All callers updated.
8434 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8435 All callers updated.
8436 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8437 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8438
8439 2014-02-20 lin zuojian <manjian2006@gmail.com>
8440 Joel Brobecker <brobecker@adacore.com>
8441 Doug Evans <xdje42@gmail.com>
8442
8443 PR symtab/16581
8444 * dwarf2read.c (struct die_info): New member in_process.
8445 (reset_die_in_process): New function.
8446 (process_die): Set it at the start, reset when returning.
8447 (inherit_abstract_dies): Only call process_die if origin_child_die
8448 not already being processed.
8449
8450 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8451
8452 * windows-nat.c (handle_unload_dll): Add function documentation.
8453 (do_initial_windows_stuff): Add comment explaining why we wait
8454 until after inferior initialization has finished before
8455 processing all DLLs.
8456
8457 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8458
8459 * windows-nat.c (get_module_name): Delete.
8460 (windows_get_exec_module_filename): New function, mostly
8461 inspired from get_module_name.
8462 (windows_pid_to_exec_file): Replace call to get_module_name
8463 by call to windows_get_exec_module_filename.
8464
8465 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8466
8467 * windows-nat.c (handle_load_dll): Rewrite this function's
8468 introductory comment. Remove code using get_module_name
8469 to get the DLL's name.
8470
8471 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8472
8473 * windows-nat.c (get_windows_debug_event): Ignore
8474 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8475 if windows_initialization_done == 0.
8476 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8477 Adjust implementation to always load all DLLs.
8478 (do_initial_windows_stuff): Replace call to
8479 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8480
8481 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8482
8483 * windows-nat.c (_initialize_windows_nat): Deprecate the
8484 "dll-symbols" command. Turn the "add-shared-symbol-files"
8485 and "assf" aliases into commands, and deprecate them as well.
8486 * NEWS: Add entry explaining that "dll-symbols" and its two
8487 aliases are now deprecated.
8488
8489 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8490
8491 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8492 new-line in debug string. Remove trailing spaces.
8493
8494 2014-02-19 Stan Shebs <stan@codesourcery.com>
8495
8496 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8497
8498 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8499
8500 * NEWS: Add entry for the new feature
8501 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8502 and class values.
8503
8504 2014-02-19 Stan Shebs <stan@codesourcery.com>
8505
8506 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8507
8508 2014-02-19 Pedro Alves <palves@redhat.com>
8509
8510 * common/ptid.h (struct ptid): Mention that process_stratum
8511 targets should prefer ptid.lwp.
8512
8513 2014-02-19 Pedro Alves <palves@redhat.com>
8514
8515 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8516 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8517 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8518 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8519 store remote thread ids rather than ptid.tid.
8520 (_initialize_remote): Adjust.
8521
8522 2014-02-19 Tom Tromey <tromey@redhat.com>
8523
8524 * target.c (target_get_unwinder): Rewrite.
8525 (target_get_tailcall_unwinder): Rewrite.
8526 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8527 (record_btrace_to_get_tailcall_unwinder): New function.
8528 (init_record_btrace_ops): Update.
8529 * target.h (struct target_ops) <to_get_unwinder,
8530 to_get_tailcall_unwinder>: Now function pointers. Use
8531 TARGET_DEFAULT_RETURN.
8532
8533 2014-02-19 Tom Tromey <tromey@redhat.com>
8534
8535 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8536 argument.
8537 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8538
8539 2014-02-19 Tom Tromey <tromey@redhat.com>
8540
8541 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8542 directly.
8543 * target-delegates.c: Rebuild.
8544 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8545 TARGET_DEFAULT_FUNC.
8546 * target.c (default_target_decr_pc_after_break): Rename from
8547 forward_target_decr_pc_after_break. Simplify.
8548 (target_decr_pc_after_break): Rely on delegation.
8549
8550 2014-02-19 Tom Tromey <tromey@redhat.com>
8551
8552 * target.c (update_current_target): Do not INHERIT to_doc or
8553 to_magic. Do not de_fault to_open or to_close.
8554
8555 2014-02-19 Tom Tromey <tromey@redhat.com>
8556
8557 * gcore.h (objfile_find_memory_regions): Declare.
8558 * gcore.c (objfile_find_memory_regions): No longer static. Add
8559 "self" argument.
8560 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8561 * exec.c: Include gcore.h.
8562 (exec_set_find_memory_regions): Remove.
8563 (exec_find_memory_regions): Remove.
8564 (exec_do_find_memory_regions): Remove.
8565 (init_exec_ops): Update.
8566 * defs.h (exec_set_find_memory_regions): Remove.
8567
8568 2014-02-19 Tom Tromey <tromey@redhat.com>
8569
8570 * target-delegates.c: Rebuild.
8571 * target.h (struct target_ops) <to_extra_thread_info,
8572 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8573 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8574 not 0, in TARGET_DEFAULT_RETURN.
8575
8576 2014-02-19 Tom Tromey <tromey@redhat.com>
8577
8578 * target.c (complete_target_initialization): Remove casts. Use
8579 return_zero_has_execution.
8580 (return_zero): Add "ignore" argument.
8581 (return_zero_has_execution): New function.
8582 (init_dummy_target): Remove casts. Use
8583 return_zero_has_execution.
8584
8585 2014-02-19 Tom Tromey <tromey@redhat.com>
8586
8587 * target.c (update_current_target): Update comments. Do not
8588 INHERIT to_stratum.
8589
8590 2014-02-19 Tom Tromey <tromey@redhat.com>
8591
8592 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8593 needed.
8594 * corelow.c (core_read_description): Delegate when needed.
8595 * remote.c (remote_read_description): Delegate when needed.
8596 * target-delegates.c: Rebuild.
8597 * target.c (target_read_description): Rewrite.
8598 * target.h (struct target_ops) <to_read_description>: Update
8599 comment. Use TARGET_DEFAULT_RETURN.
8600
8601 2014-02-19 Tom Tromey <tromey@redhat.com>
8602
8603 * target-delegates.c: Rebuild.
8604 * target.c (update_current_target): Don't inherit or default
8605 to_can_run.
8606 (find_default_run_target): Check against delegate_can_run.
8607 * target.h (struct target_ops) <to_can_run>: Use
8608 TARGET_DEFAULT_RETURN.
8609
8610 2014-02-19 Tom Tromey <tromey@redhat.com>
8611
8612 * target-delegates.c: Rebuild.
8613 * target.c (target_disconnect): Unconditionally delegate.
8614 * target.h (struct target_ops) <to_disconnect>: Use
8615 TARGET_DEFAULT_NORETURN.
8616
8617 2014-02-19 Tom Tromey <tromey@redhat.com>
8618
8619 * record.c (record_stop): Unconditionally delegate.
8620 * target-delegates.c: Rebuild.
8621 * target.c (target_stop_recording): Unconditionally delegate.
8622 * target.h (struct target_ops) <to_stop_recording>: Use
8623 TARGET_DEFAULT_IGNORE.
8624
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8626
8627 * target-delegates.c: Rebuild.
8628 * target.c (target_enable_btrace): Unconditionally delegate.
8629 * target.h (struct target_ops) <to_enable_btrace>: Use
8630 TARGET_DEFAULT_NORETURN.
8631
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8633
8634 * target-delegates.c: Rebuild.
8635 * target.c (target_read_btrace): Unconditionally delegate.
8636 * target.h (struct target_ops) <to_read_btrace>: Use
8637 TARGET_DEFAULT_NORETURN.
8638
8639 2014-02-19 Tom Tromey <tromey@redhat.com>
8640
8641 * target-delegates.c: Rebuild.
8642 * target.c (target_teardown_btrace): Unconditionally delegate.
8643 * target.h (struct target_ops) <to_teardown_btrace>: Use
8644 TARGET_DEFAULT_NORETURN.
8645
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8647
8648 * target-delegates.c: Rebuild.
8649 * target.c (target_disable_btrace): Unconditionally delegate.
8650 * target.h (struct target_ops) <to_disable_btrace>: Use
8651 TARGET_DEFAULT_NORETURN.
8652
8653 2014-02-19 Tom Tromey <tromey@redhat.com>
8654
8655 * target-delegates.c: Rebuild.
8656 * target.c (default_search_memory): New function.
8657 (simple_search_memory): Update comment.
8658 (target_search_memory): Unconditionally delegate.
8659 * target.h (struct target_ops) <to_search_memory>: Use
8660 TARGET_DEFAULT_FUNC.
8661
8662 2014-02-19 Tom Tromey <tromey@redhat.com>
8663
8664 * auxv.c (default_auxv_parse): No longer static.
8665 (target_auxv_parse): Unconditionally delegate.
8666 * auxv.h (default_auxv_parse): Declare.
8667 * target-delegates.c: Rebuild.
8668 * target.c: Include auxv.h.
8669 * target.h (struct target_ops) <to_auxv_parse>: Use
8670 TARGET_DEFAULT_FUNC.
8671
8672 2014-02-19 Tom Tromey <tromey@redhat.com>
8673
8674 * target-delegates.c: Rebuild.
8675 * target.c (target_memory_map): Unconditionally delegate.
8676 * target.h (struct target_ops) <to_memory_map>: Use
8677 TARGET_DEFAULT_RETURN.
8678
8679 2014-02-19 Tom Tromey <tromey@redhat.com>
8680
8681 * target-delegates.c: Rebuild.
8682 * target.c (target_thread_alive): Unconditionally delegate.
8683 * target.h (struct target_ops) <to_thread_alive>: Use
8684 TARGET_DEFAULT_RETURN.
8685
8686 2014-02-19 Tom Tromey <tromey@redhat.com>
8687
8688 * target-delegates.c: Rebuild.
8689 * target.c (target_save_record): Unconditionally delegate.
8690 * target.h (struct target_ops) <to_save_record>: Use
8691 TARGET_DEFAULT_NORETURN.
8692
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8694
8695 * target-delegates.c: Rebuild.
8696 * target.c (target_delete_record): Unconditionally delegate.
8697 * target.h (struct target_ops) <to_delete_record>: Use
8698 TARGET_DEFAULT_NORETURN.
8699
8700 2014-02-19 Tom Tromey <tromey@redhat.com>
8701
8702 * target-delegates.c: Rebuild.
8703 * target.c (target_record_is_replaying): Unconditionally
8704 delegate.
8705 * target.h (struct target_ops) <to_record_is_replaying>: 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_goto_record_begin): Unconditionally delegate.
8712 * target.h (struct target_ops) <to_goto_record_begin>: 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_goto_record_end): Unconditionally delegate.
8719 * target.h (struct target_ops) <to_goto_record_end>: 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_goto_record): Unconditionally delegate.
8726 * target.h (struct target_ops) <to_goto_record>: Use
8727 TARGET_DEFAULT_NORETURN.
8728
8729 2014-02-19 Tom Tromey <tromey@redhat.com>
8730
8731 * target-delegates.c: Rebuild.
8732 * target.c (target_insn_history): Unconditionally delegate.
8733 * target.h (struct target_ops) <to_insn_history>: Use
8734 TARGET_DEFAULT_NORETURN.
8735
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8737
8738 * target-delegates.c: Rebuild.
8739 * target.c (target_insn_history_from): Unconditionally delegate.
8740 * target.h (struct target_ops) <to_insn_history_from>: Use
8741 TARGET_DEFAULT_NORETURN.
8742
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8744
8745 * target-delegates.c: Rebuild.
8746 * target.c (target_insn_history_range): Unconditionally delegate.
8747 * target.h (struct target_ops) <to_insn_history_range>: Use
8748 TARGET_DEFAULT_NORETURN.
8749
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8751
8752 * target-delegates.c: Rebuild.
8753 * target.c (target_call_history): Unconditionally delegate.
8754 * target.h (struct target_ops) <to_call_history>: Use
8755 TARGET_DEFAULT_NORETURN.
8756
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target-delegates.c: Rebuild.
8760 * target.c (target_call_history_from): Unconditionally delegate.
8761 * target.h (struct target_ops) <to_call_history_from>: Use
8762 TARGET_DEFAULT_NORETURN.
8763
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8765
8766 * target-delegates.c: Rebuild.
8767 * target.c (target_call_history_range): Unconditionally delegate.
8768 * target.h (struct target_ops) <to_call_history_range>: Use
8769 TARGET_DEFAULT_NORETURN.
8770
8771 2014-02-19 Tom Tromey <tromey@redhat.com>
8772
8773 * target-delegates.c: Rebuild.
8774 * target.c (target_verify_memory): Unconditionally delegate.
8775 * target.h (struct target_ops) <to_verify_memory>: Use
8776 TARGET_DEFAULT_NORETURN.
8777
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8779
8780 * target-delegates.c: Rebuild.
8781 * target.c (target_core_of_thread): Unconditionally delegate.
8782 * target.h (struct target_ops) <to_core_of_thread>: Use
8783 TARGET_DEFAULT_RETURN.
8784
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8786
8787 * target-delegates.c: Rebuild.
8788 * target.c (target_flash_done): Unconditionally delegate.
8789 * target.h (struct target_ops) <to_flash_done>: Use
8790 TARGET_DEFAULT_NORETURN.
8791
8792 2014-02-19 Tom Tromey <tromey@redhat.com>
8793
8794 * target-delegates.c: Rebuild.
8795 * target.c (target_flash_erase): Unconditionally delegate.
8796 * target.h (struct target_ops) <to_flash_erase>: Use
8797 TARGET_DEFAULT_NORETURN.
8798
8799 2014-02-19 Tom Tromey <tromey@redhat.com>
8800
8801 * target-delegates.c: Rebuild.
8802 * target.c (target_get_section_table): Unconditionally delegate.
8803 * target.h (struct target_ops) <to_get_section_table>: Use
8804 TARGET_DEFAULT_RETURN.
8805
8806 2014-02-19 Tom Tromey <tromey@redhat.com>
8807
8808 * target-delegates.c: Rebuild.
8809 * target.c (target_pid_to_str): Unconditionally delegate.
8810 (init_dummy_target): Don't initialize to_pid_to_str.
8811 (default_pid_to_str): Rename from dummy_pid_to_str.
8812 * target.h (struct target_ops) <to_pid_to_str>: Use
8813 TARGET_DEFAULT_FUNC.
8814
8815 2014-02-19 Tom Tromey <tromey@redhat.com>
8816
8817 * target-delegates.c: Rebuild.
8818 * target.c (target_find_new_threads): Unconditionally delegate.
8819 * target.h (struct target_ops) <to_find_new_threads>: Use
8820 TARGET_DEFAULT_RETURN.
8821
8822 2014-02-19 Tom Tromey <tromey@redhat.com>
8823
8824 * target-delegates.c: Rebuild.
8825 * target.c (target_program_signals): Unconditionally delegate.
8826 * target.h (struct target_ops) <to_program_signals>: Use
8827 TARGET_DEFAULT_IGNORE.
8828
8829 2014-02-19 Tom Tromey <tromey@redhat.com>
8830
8831 * target-delegates.c: Rebuild.
8832 * target.c (target_pass_signals): Unconditionally delegate.
8833 * target.h (struct target_ops) <to_pass_signals>: Use
8834 TARGET_DEFAULT_IGNORE.
8835
8836 2014-02-19 Tom Tromey <tromey@redhat.com>
8837
8838 * target-delegates.c: Rebuild.
8839 * target.c (default_mourn_inferior): New function.
8840 (target_mourn_inferior): Unconditionally delegate.
8841 * target.h (struct target_ops) <to_mourn_inferior>: Use
8842 TARGET_DEFAULT_FUNC.
8843
8844 2014-02-19 Tom Tromey <tromey@redhat.com>
8845
8846 * target-delegates.c: Rebuild.
8847 * target.c (default_follow_fork): New function.
8848 (target_follow_fork): Unconditionally delegate.
8849 * target.h (struct target_ops) <to_follow_fork>: Use
8850 TARGET_DEFAULT_FUNC.
8851
8852 2014-02-19 Tom Tromey <tromey@redhat.com>
8853
8854 * target-delegates.c: Rebuild.
8855 * target.c (target_kill): Unconditionally delegate.
8856 * target.h (struct target_ops) <to_kill>: Use
8857 TARGET_DEFAULT_NORETURN.
8858
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8860
8861 * target-delegates.c: Rebuild.
8862 * target.c (target_masked_watch_num_registers): Unconditionally
8863 delegate.
8864 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8865 Use TARGET_DEFAULT_RETURN.
8866
8867 2014-02-19 Tom Tromey <tromey@redhat.com>
8868
8869 * target-delegates.c: Rebuild.
8870 * target.c (target_remove_mask_watchpoint): Unconditionally
8871 delegate.
8872 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8873 TARGET_DEFAULT_RETURN.
8874
8875 2014-02-19 Tom Tromey <tromey@redhat.com>
8876
8877 * target-delegates.c: Rebuild.
8878 * target.c (target_insert_mask_watchpoint): Unconditionally
8879 delegate.
8880 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8881 TARGET_DEFAULT_RETURN.
8882
8883 2014-02-19 Tom Tromey <tromey@redhat.com>
8884
8885 * target-delegates.c: Rebuild.
8886 * target.c (target_ranged_break_num_registers): Unconditionally
8887 delegate.
8888 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8889 Use TARGET_DEFAULT_RETURN.
8890
8891 2014-02-19 Tom Tromey <tromey@redhat.com>
8892
8893 * target-delegates.c: Rebuild.
8894 * target.c (target_fetch_registers): Unconditionally delegate.
8895 * target.h (struct target_ops) <to_fetch_registers>: Use
8896 TARGET_DEFAULT_NORETURN.
8897
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8899
8900 * target-delegates.c: Rebuild.
8901 * target.c (update_current_target): Don't inherit or default
8902 to_stop.
8903 * target.h (struct target_ops) <to_stop>: Use
8904 TARGET_DEFAULT_IGNORE.
8905
8906 2014-02-19 Tom Tromey <tromey@redhat.com>
8907
8908 * target-delegates.c: Rebuild.
8909 * target.c (update_current_target): Don't inherit or default
8910 to_can_run_breakpoint_commands.
8911 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8912 Use TARGET_DEFAULT_RETURN.
8913
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8915
8916 * target-delegates.c: Rebuild.
8917 * target.c (update_current_target): Don't inherit or default
8918 to_supports_evaluation_of_breakpoint_conditions.
8919 * target.h (struct target_ops)
8920 <to_supports_evaluation_of_breakpoint_conditions>: Use
8921 TARGET_DEFAULT_RETURN.
8922
8923 2014-02-19 Tom Tromey <tromey@redhat.com>
8924
8925 * target-delegates.c: Rebuild.
8926 * target.c (update_current_target): Don't inherit or default
8927 to_augmented_libraries_svr4_read.
8928 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8929 Use TARGET_DEFAULT_RETURN.
8930
8931 2014-02-19 Tom Tromey <tromey@redhat.com>
8932
8933 * target-delegates.c: Rebuild.
8934 * target.c (update_current_target): Don't inherit or default
8935 to_can_use_agent.
8936 * target.h (struct target_ops) <to_can_use_agent>: Use
8937 TARGET_DEFAULT_RETURN.
8938
8939 2014-02-19 Tom Tromey <tromey@redhat.com>
8940
8941 * target-delegates.c: Rebuild.
8942 * target.c (update_current_target): Don't inherit or default
8943 to_use_agent.
8944 * target.h (struct target_ops) <to_use_agent>: Use
8945 TARGET_DEFAULT_NORETURN.
8946
8947 2014-02-19 Tom Tromey <tromey@redhat.com>
8948
8949 * target-delegates.c: Rebuild.
8950 * target.c (update_current_target): Don't inherit or default
8951 to_traceframe_info.
8952 (return_null): Remove.
8953 * target.h (struct target_ops) <to_traceframe_info>: Use
8954 TARGET_DEFAULT_RETURN.
8955
8956 2014-02-19 Tom Tromey <tromey@redhat.com>
8957
8958 * target-delegates.c: Rebuild.
8959 * target.c (update_current_target): Don't inherit or default
8960 to_static_tracepoint_markers_by_strid.
8961 * target.h (struct target_ops)
8962 <to_static_tracepoint_markers_by_strid>: Use
8963 TARGET_DEFAULT_NORETURN.
8964
8965 2014-02-19 Tom Tromey <tromey@redhat.com>
8966
8967 * target-delegates.c: Rebuild.
8968 * target.c (update_current_target): Don't inherit or default
8969 to_static_tracepoint_marker_at.
8970 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8971 Use TARGET_DEFAULT_RETURN.
8972
8973 2014-02-19 Tom Tromey <tromey@redhat.com>
8974
8975 * target-delegates.c: Rebuild.
8976 * target.c (update_current_target): Don't inherit or default
8977 to_set_permissions.
8978 * target.h (struct target_ops) <to_set_permissions>: Use
8979 TARGET_DEFAULT_IGNORE.
8980
8981 2014-02-19 Tom Tromey <tromey@redhat.com>
8982
8983 * target-delegates.c: Rebuild.
8984 * target.c (update_current_target): Don't inherit or default
8985 to_get_tib_address.
8986 * target.h (struct target_ops) <to_get_tib_address>: Use
8987 TARGET_DEFAULT_NORETURN.
8988
8989 2014-02-19 Tom Tromey <tromey@redhat.com>
8990
8991 * target-delegates.c: Rebuild.
8992 * target.c (update_current_target): Don't inherit or default
8993 to_set_trace_notes.
8994 * target.h (struct target_ops) <to_set_trace_notes>: Use
8995 TARGET_DEFAULT_RETURN.
8996
8997 2014-02-19 Tom Tromey <tromey@redhat.com>
8998
8999 * target-delegates.c: Rebuild.
9000 * target.c (update_current_target): Don't initialize
9001 to_set_trace_buffer_size.
9002 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9003 TARGET_DEFAULT_IGNORE.
9004
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9006
9007 * target-delegates.c: Rebuild.
9008 * target.c (update_current_target): Don't inherit or default
9009 to_set_circular_trace_buffer.
9010 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9011 TARGET_DEFAULT_IGNORE.
9012
9013 2014-02-19 Tom Tromey <tromey@redhat.com>
9014
9015 * target-delegates.c: Rebuild.
9016 * target.c (update_current_target): Don't inherit or default
9017 to_set_disconnected_tracing.
9018 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9019 TARGET_DEFAULT_IGNORE.
9020
9021 2014-02-19 Tom Tromey <tromey@redhat.com>
9022
9023 * target-delegates.c: Rebuild.
9024 * target.c (update_current_target): Don't inherit or default
9025 to_get_min_fast_tracepoint_insn_len.
9026 (return_minus_one): Remove.
9027 * target.h (struct target_ops)
9028 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9029
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9031
9032 * target-delegates.c: Rebuild.
9033 * target.c (update_current_target): Don't inherit or default
9034 to_get_raw_trace_data.
9035 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9036 TARGET_DEFAULT_NORETURN.
9037
9038 2014-02-19 Tom Tromey <tromey@redhat.com>
9039
9040 * target-delegates.c: Rebuild.
9041 * target.c (update_current_target): Don't inherit or default
9042 to_upload_trace_state_variables.
9043 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9044 Use TARGET_DEFAULT_RETURN.
9045
9046 2014-02-19 Tom Tromey <tromey@redhat.com>
9047
9048 * target-delegates.c: Rebuild.
9049 * target.c (update_current_target): Don't inherit or default
9050 to_upload_tracepoints.
9051 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9052 TARGET_DEFAULT_RETURN.
9053
9054 2014-02-19 Tom Tromey <tromey@redhat.com>
9055
9056 * target-delegates.c: Rebuild.
9057 * target.c (update_current_target): Don't inherit or default
9058 to_save_trace_data.
9059 * target.h (struct target_ops) <to_save_trace_data>: Use
9060 TARGET_DEFAULT_NORETURN.
9061
9062 2014-02-19 Tom Tromey <tromey@redhat.com>
9063
9064 * target-delegates.c: Rebuild.
9065 * target.c (update_current_target): Don't inherit or default
9066 to_get_trace_state_variable_value.
9067 * target.h (struct target_ops)
9068 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9069
9070 2014-02-19 Tom Tromey <tromey@redhat.com>
9071
9072 * target-delegates.c: Rebuild.
9073 * target.c (update_current_target): Don't inherit or default
9074 to_trace_find.
9075 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9076
9077 2014-02-19 Tom Tromey <tromey@redhat.com>
9078
9079 * target-delegates.c: Rebuild.
9080 * target.c (update_current_target): Don't inherit or default
9081 to_trace_stop.
9082 * target.h (struct target_ops) <to_trace_stop>: Use
9083 TARGET_DEFAULT_NORETURN.
9084
9085 2014-02-19 Tom Tromey <tromey@redhat.com>
9086
9087 * target-delegates.c: Rebuild.
9088 * target.c (update_current_target): Don't inherit or default
9089 to_get_tracepoint_status.
9090 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9091 TARGET_DEFAULT_NORETURN.
9092
9093 2014-02-19 Tom Tromey <tromey@redhat.com>
9094
9095 * target-delegates.c: Rebuild.
9096 * target.c (update_current_target): Don't inherit or default
9097 to_get_trace_status.
9098 * target.h (struct target_ops) <to_get_trace_status>: Use
9099 TARGET_DEFAULT_RETURN.
9100
9101 2014-02-19 Tom Tromey <tromey@redhat.com>
9102
9103 * target-delegates.c: Rebuild.
9104 * target.c (update_current_target): Don't inherit or default
9105 to_trace_start.
9106 * target.h (struct target_ops) <to_trace_start>: Use
9107 TARGET_DEFAULT_NORETURN.
9108
9109 2014-02-19 Tom Tromey <tromey@redhat.com>
9110
9111 * target-delegates.c: Rebuild.
9112 * target.c (update_current_target): Don't inherit or default
9113 to_trace_set_readonly_regions.
9114 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9115 Use TARGET_DEFAULT_NORETURN.
9116
9117 2014-02-19 Tom Tromey <tromey@redhat.com>
9118
9119 * target-delegates.c: Rebuild.
9120 * target.c (update_current_target): Don't inherit or default
9121 to_disable_tracepoint.
9122 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9123 TARGET_DEFAULT_NORETURN.
9124
9125 2014-02-19 Tom Tromey <tromey@redhat.com>
9126
9127 * target-delegates.c: Rebuild.
9128 * target.c (update_current_target): Don't inherit or default
9129 to_enable_tracepoint.
9130 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9131 TARGET_DEFAULT_NORETURN.
9132
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target-delegates.c: Rebuild.
9136 * target.c (update_current_target): Don't inherit or default
9137 to_download_trace_state_variable.
9138 * target.h (struct target_ops) <to_download_trace_state_variable>:
9139 Use TARGET_DEFAULT_NORETURN.
9140
9141 2014-02-19 Tom Tromey <tromey@redhat.com>
9142
9143 * target-delegates.c: Rebuild.
9144 * target.c (update_current_target): Don't inherit or default
9145 to_can_download_tracepoint.
9146 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9147 TARGET_DEFAULT_RETURN.
9148
9149 2014-02-19 Tom Tromey <tromey@redhat.com>
9150
9151 * target-delegates.c: Rebuild.
9152 * target.c (update_current_target): Don't inherit or default
9153 to_download_tracepoint.
9154 * target.h (struct target_ops) <to_download_tracepoint>: Use
9155 TARGET_DEFAULT_NORETURN.
9156
9157 2014-02-19 Tom Tromey <tromey@redhat.com>
9158
9159 * target-delegates.c: Rebuild.
9160 * target.c (update_current_target): Don't inherit or default
9161 to_trace_init.
9162 * target.h (struct target_ops) <to_trace_init>: Use
9163 TARGET_DEFAULT_RETURN.
9164
9165 2014-02-19 Tom Tromey <tromey@redhat.com>
9166
9167 * target-delegates.c: Rebuild.
9168 * target.c (update_current_target): Don't inherit or default
9169 to_supports_string_tracing.
9170 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9171 TARGET_DEFAULT_RETURN.
9172
9173 2014-02-19 Tom Tromey <tromey@redhat.com>
9174
9175 * target-delegates.c: Rebuild.
9176 * target.c (update_current_target): Don't inherit or default
9177 to_supports_enable_disable_tracepoint.
9178 * target.h (struct target_ops)
9179 <to_supports_enable_disable_tracepoint>: Use
9180 TARGET_DEFAULT_RETURN.
9181
9182 2014-02-19 Tom Tromey <tromey@redhat.com>
9183
9184 * target-delegates.c: Rebuild.
9185 * target.c (update_current_target): Don't inherit or default
9186 to_supports_multi_process.
9187 * target.h (struct target_ops) <to_supports_multi_process>: Use
9188 TARGET_DEFAULT_RETURN.
9189
9190 2014-02-19 Tom Tromey <tromey@redhat.com>
9191
9192 * target-delegates.c: Rebuild.
9193 * target.c (update_current_target): Don't inherit or default
9194 to_get_ada_task_ptid.
9195 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9196 TARGET_DEFAULT_FUNC.
9197
9198 2014-02-19 Tom Tromey <tromey@redhat.com>
9199
9200 * target-delegates.c: Rebuild.
9201 * target.c (update_current_target): Don't inherit or default
9202 to_thread_architecture.
9203 * target.h (struct target_ops) <to_thread_architecture>: Use
9204 TARGET_DEFAULT_FUNC.
9205
9206 2014-02-19 Tom Tromey <tromey@redhat.com>
9207
9208 * target-delegates.c: Rebuild.
9209 * target.c (update_current_target): Don't inherit or default
9210 to_execution_direction.
9211 * target.h (struct target_ops) <to_execution_direction>: Use
9212 TARGET_DEFAULT_FUNC.
9213
9214 2014-02-19 Tom Tromey <tromey@redhat.com>
9215
9216 * target-delegates.c: Rebuild.
9217 * target.c (update_current_target): Don't inherit or default
9218 to_can_execute_reverse.
9219 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9220 TARGET_DEFAULT_RETURN.
9221 (target_can_execute_reverse): Unconditionally delegate.
9222
9223 2014-02-19 Tom Tromey <tromey@redhat.com>
9224
9225 * target-delegates.c: Rebuild.
9226 * target.c (update_current_target): Don't inherit or default
9227 to_goto_bookmark.
9228 (dummy_goto_bookmark): Remove.
9229 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9230 * target.h (struct target_ops) <to_goto_bookmark>: Use
9231 TARGET_DEFAULT_NORETURN.
9232
9233 2014-02-19 Tom Tromey <tromey@redhat.com>
9234
9235 * target-delegates.c: Rebuild.
9236 * target.c (update_current_target): Don't inherit or default
9237 to_get_bookmark.
9238 (dummy_get_bookmark): Remove.
9239 (init_dummy_target): Don't inherit or default to_get_bookmark.
9240 * target.h (struct target_ops) <to_get_bookmark>: Use
9241 TARGET_DEFAULT_NORETURN
9242
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9244
9245 * target-delegates.c: Rebuild.
9246 * target.c (update_current_target): Don't inherit or default
9247 to_make_corefile_notes.
9248 (init_dummy_target): Don't initialize to_make_corefile_notes.
9249 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9250 TARGET_DEFAULT_FUNC.
9251
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9253
9254 * target-delegates.c: Rebuild.
9255 * target.c (update_current_target): Don't inherit or default
9256 to_find_memory_regions.
9257 (init_dummy_target): Don't initialize to_find_memory_regions.
9258 * target.h (struct target_ops) <to_find_memory_regions>: Use
9259 TARGET_DEFAULT_FUNC.
9260
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9262
9263 * target-delegates.c: Rebuild.
9264 * target.c (update_current_target): Don't inherit or default
9265 to_log_command.
9266 * target.h (struct target_ops) <to_log_command>: Use
9267 TARGET_DEFAULT_IGNORE.
9268 (target_log_command): Unconditionally delegate.
9269
9270 2014-02-19 Tom Tromey <tromey@redhat.com>
9271
9272 * target-delegates.c: Rebuild.
9273 * target.c (update_current_target): Don't inherit or default
9274 to_pid_to_exec_file.
9275 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9276 TARGET_DEFAULT_RETURN.
9277
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9279
9280 * target-delegates.c: Rebuild.
9281 * target.c (update_current_target): Don't inherit or default
9282 to_thread_name.
9283 (target_thread_name): Unconditionally delegate.
9284 * target.h (struct target_ops) <to_thread_name>: Use
9285 TARGET_DEFAULT_RETURN.
9286
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9288
9289 * target-delegates.c: Rebuild.
9290 * target.c (update_current_target): Don't inherit or default
9291 to_extra_thread_info.
9292 * target.h (struct target_ops) <to_extra_thread_info>: Use
9293 TARGET_DEFAULT_RETURN.
9294
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9296
9297 * target-delegates.c: Rebuild.
9298 * target.c (update_current_target): Don't inherit or default
9299 to_has_exited.
9300 * target.h (struct target_ops) <to_has_exited>: Use
9301 TARGET_DEFAULT_RETURN..
9302
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9304
9305 * target-delegates.c: Rebuild.
9306 * target.c (update_current_target): Don't inherit or default
9307 to_set_syscall_catchpoint.
9308 (return_one): Remove.
9309 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9310 TARGET_DEFAULT_RETURN.
9311
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9313
9314 * target-delegates.c: Rebuild.
9315 * target.c (update_current_target): Don't inherit or default
9316 to_insert_exec_catchpoint.
9317 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9318 TARGET_DEFAULT_RETURN.
9319
9320 2014-01-08 Tom Tromey <tromey@redhat.com>
9321
9322 * target-delegates.c: Rebuild.
9323 * target.c (update_current_target): Don't inherit or default
9324 to_insert_exec_catchpoint.
9325 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9326 TARGET_DEFAULT_RETURN.
9327
9328 2014-02-19 Tom Tromey <tromey@redhat.com>
9329
9330 * target-delegates.c: Rebuild.
9331 * target.c (update_current_target): Don't inherit or default
9332 to_remove_vfork_catchpoint.
9333 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9334 TARGET_DEFAULT_RETURN.
9335
9336 2014-02-19 Tom Tromey <tromey@redhat.com>
9337
9338 * target-delegates.c: Rebuild.
9339 * target.c (update_current_target): Don't inherit or default
9340 to_insert_vfork_catchpoint.
9341 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9342 TARGET_DEFAULT_RETURN.
9343
9344 2014-02-19 Tom Tromey <tromey@redhat.com>
9345
9346 * target-delegates.c: Rebuild.
9347 * target.c (update_current_target): Don't inherit or default
9348 to_remove_fork_catchpoint.
9349 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9350 TARGET_DEFAULT_RETURN.
9351
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9353
9354 * target-delegates.c: Rebuild.
9355 * target.c (update_current_target): Don't inherit or default
9356 to_insert_fork_catchpoint.
9357 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9358 TARGET_DEFAULT_RETURN.
9359
9360 2014-02-19 Tom Tromey <tromey@redhat.com>
9361
9362 * target-delegates.c: Rebuild.
9363 * target.c (update_current_target): Don't inherit or default
9364 to_post_startup_inferior.
9365 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9366 TARGET_DEFAULT_IGNORE.
9367
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9369
9370 * target-delegates.c: Rebuild.
9371 * target.c (update_current_target): Don't inherit or default
9372 to_load.
9373 * target.h (struct target_ops) <to_load>: Use
9374 TARGET_DEFAULT_NORETURN.
9375
9376 2014-02-19 Tom Tromey <tromey@redhat.com>
9377
9378 * target-delegates.c: Rebuild.
9379 * target.c (update_current_target): Don't inherit or default
9380 to_terminal_info.
9381 * target.h (struct target_ops) <to_terminal_info>: Use
9382 TARGET_DEFAULT_FUNC.
9383
9384 2014-02-19 Tom Tromey <tromey@redhat.com>
9385
9386 * target-delegates.c: Rebuild.
9387 * target.c (update_current_target): Don't inherit or default
9388 to_terminal_save_ours.
9389 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9390 TARGET_DEFAULT_IGNORE.
9391
9392 2014-02-19 Tom Tromey <tromey@redhat.com>
9393
9394 * target-delegates.c: Rebuild.
9395 * target.c (update_current_target): Don't inherit or default
9396 to_terminal_ours.
9397 * target.h (struct target_ops) <to_terminal_ours>: Use
9398 TARGET_DEFAULT_IGNORE.
9399
9400 2014-02-19 Tom Tromey <tromey@redhat.com>
9401
9402 * target-delegates.c: Rebuild.
9403 * target.c (update_current_target): Don't inherit or default
9404 to_terminal_ours_for_output.
9405 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9406 TARGET_DEFAULT_IGNORE.
9407
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9409
9410 * target-delegates.c: Rebuild.
9411 * target.c (update_current_target): Don't inherit or default
9412 to_terminal_inferior.
9413 * target.h (struct target_ops) <to_terminal_inferior>: Use
9414 TARGET_DEFAULT_IGNORE.
9415
9416 2014-02-19 Tom Tromey <tromey@redhat.com>
9417
9418 * target-delegates.c: Rebuild.
9419 * target.c (update_current_target): Don't inherit or default
9420 to_terminal_init.
9421 * target.h (struct target_ops) <to_terminal_init>: Use
9422 TARGET_DEFAULT_IGNORE.
9423
9424 2014-02-19 Tom Tromey <tromey@redhat.com>
9425
9426 * target-delegates.c: Rebuild.
9427 * target.c (update_current_target): Don't inherit or default
9428 to_can_accel_watchpoint_condition.
9429 * target.h (struct target_ops)
9430 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9431
9432 2014-02-19 Tom Tromey <tromey@redhat.com>
9433
9434 * target-delegates.c: Rebuild.
9435 * target.c (update_current_target): Don't inherit or default
9436 to_region_ok_for_hw_watchpoint.
9437 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9438 Use TARGET_DEFAULT_FUNC.
9439
9440 2014-02-19 Tom Tromey <tromey@redhat.com>
9441
9442 * target-delegates.c: Rebuild.
9443 * target.c (update_current_target): Don't inherit or default
9444 to_watchpoint_addr_within_range.
9445 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9446 Use TARGET_DEFAULT_FUNC.
9447
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9449
9450 * target-delegates.c: Rebuild.
9451 * target.c (update_current_target): Don't inherit or default
9452 to_remove_watchpoint.
9453 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9454 TARGET_DEFAULT_NORETURN.
9455
9456 2014-02-19 Tom Tromey <tromey@redhat.com>
9457
9458 * target-delegates.c: Rebuild.
9459 * target.c (update_current_target): Don't inherit or default
9460 to_insert_watchpoint.
9461 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9462 TARGET_DEFAULT_RETURN.
9463
9464 2014-02-19 Tom Tromey <tromey@redhat.com>
9465
9466 * target-delegates.c: Rebuild.
9467 * target.c (update_current_target): Don't inherit or default
9468 to_remove_hw_breakpoint.
9469 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9470 TARGET_DEFAULT_RETURN.
9471
9472 2014-02-19 Tom Tromey <tromey@redhat.com>
9473
9474 * target-delegates.c: Rebuild.
9475 * target.c (update_current_target): Don't inherit or default
9476 to_insert_hw_breakpoint.
9477 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9478 TARGET_DEFAULT_RETURN.
9479
9480 2014-02-19 Tom Tromey <tromey@redhat.com>
9481
9482 * target-delegates.c: Rebuild.
9483 * target.c (update_current_target): Don't inherit or default
9484 to_can_use_hw_breakpoint.
9485 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9486 TARGET_DEFAULT_RETURN.
9487
9488 2014-02-19 Tom Tromey <tromey@redhat.com>
9489
9490 * target-delegates.c: Rebuild.
9491 * target.c (update_current_target): Don't inherit or default
9492 to_files_info.
9493 * target.h (struct target_ops) <to_files_info>: Use
9494 TARGET_DEFAULT_IGNORE.
9495
9496 2014-02-19 Tom Tromey <tromey@redhat.com>
9497
9498 * target-delegates.c: Rebuild.
9499 * target.c (update_current_target): Don't inherit or default
9500 to_store.
9501 * target.h (struct target_ops) <to_store>: Use
9502 TARGET_DEFAULT_NORETURN.
9503
9504 2014-02-19 Tom Tromey <tromey@redhat.com>
9505
9506 * target-delegates.c: Rebuild.
9507 * target.c (update_current_target): Don't inherit or default
9508 to_post_attach.
9509 * target.h (struct target_ops) <to_post_attach>: Use
9510 TARGET_DEFAULT_IGNORE.
9511
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target-delegates.c: Rebuild.
9515 * target.c (update_current_target): Don't inherit or default
9516 to_rcmd.
9517 (default_rcmd): New function.
9518 (do_monitor_command): Unconditionally delegate.
9519 * target.h (struct target_ops) <to_rmcd>: Use
9520 TARGET_DEFAULT_FUNC.
9521
9522 2014-02-19 Tom Tromey <tromey@redhat.com>
9523
9524 * target-delegates.c: Rebuild.
9525 * target.c (init_dummy_target): Don't initialize to_attach.
9526 (target_attach): Unconditionally delegate.
9527 * target.h (struct target_ops) <to_attach>: Use
9528 TARGET_DEFAULT_FUNC.
9529
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9531
9532 * target-delegates.c: Rebuild.
9533 * target.c (target_detach): Unconditionally delegate.
9534 (init_dummy_target): Don't initialize to_detach.
9535 * target.h (struct target_ops) <to_detach>: Use
9536 TARGET_DEFAULT_IGNORE.
9537
9538 2014-02-19 Tom Tromey <tromey@redhat.com>
9539
9540 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9541 Add argument.
9542 (target_augmented_libraries_svr4_read): Add argument.
9543 * target.c (update_current_target): Update.
9544 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9545 argument.
9546
9547 2014-02-19 Tom Tromey <tromey@redhat.com>
9548
9549 * target.h (struct target_ops) <to_call_history_range>: Add
9550 argument.
9551 * target.c (target_call_history_range): Add argument.
9552 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9553 argument.
9554 (record_btrace_call_history_from): Update.
9555
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9557
9558 * target.h (struct target_ops) <to_call_history_from>: Add
9559 argument.
9560 * target.c (target_call_history_from): Add argument.
9561 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9562 argument.
9563
9564 2014-02-19 Tom Tromey <tromey@redhat.com>
9565
9566 * target.h (struct target_ops) <to_call_history>: Add argument.
9567 * target.c (target_call_history): Add argument.
9568 * record-btrace.c (record_btrace_call_history): Add 'self'
9569 argument.
9570
9571 2014-02-19 Tom Tromey <tromey@redhat.com>
9572
9573 * target.h (struct target_ops) <to_insn_history_range>: Add
9574 argument.
9575 * target.c (target_insn_history_range): Add argument.
9576 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9577 argument.
9578 (record_btrace_insn_history_from): Update.
9579
9580 2014-02-19 Tom Tromey <tromey@redhat.com>
9581
9582 * target.h (struct target_ops) <to_insn_history_from>: Add
9583 argument.
9584 * target.c (target_insn_history_from): Add argument.
9585 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9586 argument.
9587
9588 2014-02-19 Tom Tromey <tromey@redhat.com>
9589
9590 * target.h (struct target_ops) <to_insn_history>: Add argument.
9591 * target.c (target_insn_history): Add argument.
9592 * record-btrace.c (record_btrace_insn_history): Add 'self'
9593 argument.
9594
9595 2014-02-19 Tom Tromey <tromey@redhat.com>
9596
9597 * target.h (struct target_ops) <to_goto_record>: Add argument.
9598 * target.c (target_goto_record): Add argument.
9599 * record-full.c (record_full_goto): Add 'self' argument.
9600 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9601
9602 2014-02-19 Tom Tromey <tromey@redhat.com>
9603
9604 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9605 * target.c (target_goto_record_end): Add argument.
9606 * record-full.c (record_full_goto_end): Add 'self' argument.
9607 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9608
9609 2014-02-19 Tom Tromey <tromey@redhat.com>
9610
9611 * target.h (struct target_ops) <to_goto_record_begin>: Add
9612 argument.
9613 * target.c (target_goto_record_begin): Add argument.
9614 * record-full.c (record_full_goto_begin): Add 'self' argument.
9615 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9616 argument.
9617
9618 2014-02-19 Tom Tromey <tromey@redhat.com>
9619
9620 * target.h (struct target_ops) <to_record_is_replaying>: Add
9621 argument.
9622 * target.c (target_record_is_replaying): Add argument.
9623 * record-full.c (record_full_is_replaying): Add 'self' argument.
9624 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9625 argument.
9626 (record_btrace_xfer_partial, record_btrace_store_registers)
9627 (record_btrace_prepare_to_store, record_btrace_resume)
9628 (record_btrace_wait, record_btrace_decr_pc_after_break)
9629 (record_btrace_find_new_threads, record_btrace_thread_alive):
9630 Update.
9631
9632 2014-02-19 Tom Tromey <tromey@redhat.com>
9633
9634 * target.h (struct target_ops) <to_delete_record>: Add argument.
9635 * target.c (target_delete_record): Add argument.
9636 * record-full.c (record_full_delete): Add 'self' argument.
9637
9638 2014-02-19 Tom Tromey <tromey@redhat.com>
9639
9640 * target.h (struct target_ops) <to_save_record>: Add argument.
9641 * target.c (target_save_record): Add argument.
9642 * record-full.c (record_full_save): Add 'self' argument.
9643 (record_full_save): Add 'self' argument.
9644
9645 2014-02-19 Tom Tromey <tromey@redhat.com>
9646
9647 * target.h (struct target_ops) <to_info_record>: Add argument.
9648 * target.c (target_info_record): Add argument.
9649 * record.c (info_record_command): Add argument.
9650 * record-full.c (record_full_info): Add 'self' argument.
9651 * record-btrace.c (record_btrace_info): Add 'self' argument.
9652
9653 2014-02-19 Tom Tromey <tromey@redhat.com>
9654
9655 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9656 * target.c (target_stop_recording): Add argument.
9657 * record.c (record_stop): Add argument.
9658 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9659 argument.
9660
9661 2014-02-19 Tom Tromey <tromey@redhat.com>
9662
9663 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9664 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9665 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9666 argument.
9667 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9668 (_initialize_amd64_linux_nat): Use it.
9669 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9670 (_initialize_i386_linux_nat): Use it.
9671
9672 2014-02-19 Tom Tromey <tromey@redhat.com>
9673
9674 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9675 * target.c (target_teardown_btrace): Add argument.
9676 * remote.c (remote_teardown_btrace): Add 'self' argument.
9677 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9678 argument.
9679 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9680 argument.
9681
9682 2014-02-19 Tom Tromey <tromey@redhat.com>
9683
9684 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9685 * target.c (target_disable_btrace): Add argument.
9686 * remote.c (remote_disable_btrace): Add 'self' argument.
9687 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9688 argument.
9689 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9690 argument.
9691
9692 2014-02-19 Tom Tromey <tromey@redhat.com>
9693
9694 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9695 * target.c (target_enable_btrace): Add argument.
9696 * remote.c (remote_enable_btrace): Add 'self' argument.
9697 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9698 argument.
9699 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9700 argument.
9701
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9703
9704 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9705 (target_can_use_agent): Add argument.
9706 * target.c (update_current_target): Update.
9707 * remote.c (remote_can_use_agent): Add 'self' argument.
9708 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9709
9710 2014-02-19 Tom Tromey <tromey@redhat.com>
9711
9712 * target.h (struct target_ops) <to_use_agent>: Add argument.
9713 (target_use_agent): Add argument.
9714 * target.c (update_current_target): Update.
9715 * remote.c (remote_use_agent): Add 'self' argument.
9716 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9717
9718 2014-02-19 Tom Tromey <tromey@redhat.com>
9719
9720 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9721 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9722 (target_traceframe_info): Add argument.
9723 * target.c (update_current_target): Update.
9724 * remote.c (remote_traceframe_info): Add 'self' argument.
9725 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9726
9727 2014-02-19 Tom Tromey <tromey@redhat.com>
9728
9729 * target.h (target_static_tracepoint_markers_by_strid): Add
9730 argument.
9731 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9732 'self' argument.
9733 * target.c (update_current_target): Update.
9734 * remote.c (struct target_ops)
9735 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9736 * linux-nat.c (struct target_ops)
9737 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9738
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9740
9741 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9742 Add argument.
9743 (target_static_tracepoint_marker_at): Add argument.
9744 * target.c (update_current_target): Update.
9745 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9746 argument.
9747
9748 2014-02-19 Tom Tromey <tromey@redhat.com>
9749
9750 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9751 (target_set_permissions): Add argument.
9752 * target.c (update_current_target): Update.
9753 * remote.c (remote_set_permissions): Add 'self' argument.
9754 (remote_start_remote): Update.
9755
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9757
9758 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9759 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9760 (target_get_tib_address): Add argument.
9761 * target.c (update_current_target): Update.
9762 * remote.c (remote_get_tib_address): Add 'self' argument.
9763
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9765
9766 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9767 (target_set_trace_notes): Add argument.
9768 * target.c (update_current_target): Update.
9769 * remote.c (remote_set_trace_notes): Add 'self' argument.
9770
9771 2014-02-19 Tom Tromey <tromey@redhat.com>
9772
9773 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9774 argument.
9775 (target_set_trace_buffer_size): Add argument.
9776 * target.c (update_current_target): Update.
9777 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9778
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9782 argument.
9783 (target_set_circular_trace_buffer): Add argument.
9784 * target.c (update_current_target): Update.
9785 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9786 argument.
9787
9788 2014-02-19 Tom Tromey <tromey@redhat.com>
9789
9790 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9791 argument.
9792 (target_set_disconnected_tracing): Add argument.
9793 * target.c (update_current_target): Update.
9794 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9795
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9797
9798 * target.h (struct target_ops)
9799 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9800 (target_get_min_fast_tracepoint_insn_len): Add argument.
9801 * target.c (update_current_target): Update.
9802 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9803 argument.
9804
9805 2014-02-19 Tom Tromey <tromey@redhat.com>
9806
9807 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9808 argument.
9809 (target_get_raw_trace_data): Add argument.
9810 * target.c (update_current_target): Update.
9811 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9812
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9814
9815 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9816 Add argument.
9817 (target_upload_trace_state_variables): Add argument.
9818 * target.c (update_current_target): Update.
9819 * remote.c (remote_upload_trace_state_variables): Add 'self'
9820 argument.
9821 (remote_start_remote): Update.
9822
9823 2014-02-19 Tom Tromey <tromey@redhat.com>
9824
9825 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9826 argument.
9827 (target_upload_tracepoints): Add argument.
9828 * target.c (update_current_target): Update.
9829 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9830 (remote_start_remote): Update.
9831
9832 2014-02-19 Tom Tromey <tromey@redhat.com>
9833
9834 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9835 (target_save_trace_data): Add argument.
9836 * target.c (update_current_target): Update.
9837 * remote.c (remote_save_trace_data): Add 'self' argument.
9838
9839 2014-02-19 Tom Tromey <tromey@redhat.com>
9840
9841 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9842 argument.
9843 * target.h (struct target_ops)
9844 <to_get_trace_state_variable_value>: Add argument.
9845 (target_get_trace_state_variable_value): Add argument.
9846 * target.c (update_current_target): Update.
9847 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9848 argument.
9849 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9850
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9852
9853 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9854 * target.h (struct target_ops) <to_trace_find>: Add argument.
9855 (target_trace_find): Add argument.
9856 * target.c (update_current_target): Update.
9857 * remote.c (remote_trace_find): Add 'self' argument.
9858 * ctf.c (ctf_trace_find): Add 'self' argument.
9859
9860 2014-02-19 Tom Tromey <tromey@redhat.com>
9861
9862 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9863 (target_trace_stop): Add argument.
9864 * target.c (update_current_target): Update.
9865 * remote.c (remote_trace_stop): Add 'self' argument.
9866
9867 2014-02-19 Tom Tromey <tromey@redhat.com>
9868
9869 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9870 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9871 argument.
9872 (target_get_tracepoint_status): Add argument.
9873 * target.c (update_current_target): Update.
9874 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9875
9876 2014-02-19 Tom Tromey <tromey@redhat.com>
9877
9878 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9879 * target.h (struct target_ops) <to_get_trace_status>: Add
9880 argument.
9881 (target_get_trace_status): Add argument.
9882 * target.c (update_current_target): Update.
9883 * remote.c (remote_get_trace_status): Add 'self' argument.
9884 (remote_start_remote, remote_can_download_tracepoint): Update.
9885 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9886
9887 2014-02-19 Tom Tromey <tromey@redhat.com>
9888
9889 * target.h (struct target_ops) <to_trace_start>: Add argument.
9890 (target_trace_start): Add argument.
9891 * target.c (update_current_target): Update.
9892 * remote.c (remote_trace_start): Add 'self' argument.
9893
9894 2014-02-19 Tom Tromey <tromey@redhat.com>
9895
9896 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9897 Add argument.
9898 (target_trace_set_readonly_regions): Add argument.
9899 * target.c (update_current_target): Update.
9900 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9901 argument.
9902
9903 2014-02-19 Tom Tromey <tromey@redhat.com>
9904
9905 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9906 argument.
9907 (target_disable_tracepoint): Add argument.
9908 * target.c (update_current_target): Update.
9909 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9910
9911 2014-02-19 Tom Tromey <tromey@redhat.com>
9912
9913 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9914 argument.
9915 (target_enable_tracepoint): Add argument.
9916 * target.c (update_current_target): Update.
9917 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9918
9919 2014-02-19 Tom Tromey <tromey@redhat.com>
9920
9921 * target.h (struct target_ops) <to_download_trace_state_variable>:
9922 Add argument.
9923 (target_download_trace_state_variable): Add argument.
9924 * target.c (update_current_target): Update.
9925 * remote.c (remote_download_trace_state_variable): Add 'self'
9926 argument.
9927
9928 2014-02-19 Tom Tromey <tromey@redhat.com>
9929
9930 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9931 argument.
9932 (target_can_download_tracepoint): Add argument.
9933 * target.c (update_current_target): Update.
9934 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9935
9936 2014-02-19 Tom Tromey <tromey@redhat.com>
9937
9938 * target.h (struct target_ops) <to_download_tracepoint>: Add
9939 argument.
9940 (target_download_tracepoint): Add argument.
9941 * target.c (update_current_target): Update.
9942 * remote.c (remote_download_tracepoint): Add 'self' argument.
9943
9944 2014-02-19 Tom Tromey <tromey@redhat.com>
9945
9946 * target.h (struct target_ops) <to_trace_init>: Add argument.
9947 (target_trace_init): Add argument.
9948 * target.c (update_current_target): Update.
9949 * remote.c (remote_trace_init): Add 'self' argument.
9950
9951 2014-02-19 Tom Tromey <tromey@redhat.com>
9952
9953 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9954 * target.c (target_fileio_readlink): Add argument.
9955 * remote.c (remote_hostio_readlink): Add 'self' argument.
9956 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9957
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9959
9960 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9961 * target.c (target_fileio_unlink): Add argument.
9962 * remote.c (remote_hostio_unlink): Add 'self' argument.
9963 (remote_file_delete): Update.
9964 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9965
9966 2014-02-19 Tom Tromey <tromey@redhat.com>
9967
9968 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9969 * target.c (target_fileio_close): Add argument.
9970 * remote.c (remote_hostio_close): Add 'self' argument.
9971 (remote_hostio_close_cleanup): Update.
9972 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9973 Update.
9974 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9975
9976 2014-02-19 Tom Tromey <tromey@redhat.com>
9977
9978 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9979 * target.c (target_fileio_pread): Add argument.
9980 * remote.c (remote_hostio_pread): Add 'self' argument.
9981 (remote_bfd_iovec_pread, remote_file_get): Update.
9982 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9983
9984 2014-02-19 Tom Tromey <tromey@redhat.com>
9985
9986 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9987 * target.c (target_fileio_pwrite): Add argument.
9988 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9989 (remote_file_put): Update.
9990 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9991
9992 2014-02-19 Tom Tromey <tromey@redhat.com>
9993
9994 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9995 * target.c (target_fileio_open): Add argument.
9996 * remote.c (remote_hostio_open): Add 'self' argument.
9997 (remote_bfd_iovec_open): Add 'self' argument.
9998 (remote_file_put): Add 'self' argument.
9999 (remote_file_get): Add 'self' argument.
10000 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10001
10002 2014-02-19 Tom Tromey <tromey@redhat.com>
10003
10004 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10005 Add argument.
10006 (target_can_run_breakpoint_commands): Add argument.
10007 * target.c (update_current_target): Update.
10008 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10009 argument.
10010 (remote_insert_breakpoint): Add 'self' argument.
10011 (remote_insert_hw_breakpoint): Add 'self' argument.
10012 (remote_can_run_breakpoint_commands): Add 'self' argument.
10013
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target.h (struct target_ops)
10017 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10018 (target_supports_evaluation_of_breakpoint_conditions): Add
10019 argument.
10020 * target.c (update_current_target): Update.
10021 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10022 argument.
10023 (remote_insert_breakpoint): Add 'self' argument.
10024 (remote_insert_hw_breakpoint): Add 'self' argument.
10025 (remote_supports_cond_breakpoints): Add 'self' argument.
10026
10027 2014-02-19 Tom Tromey <tromey@redhat.com>
10028
10029 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10030 argument.
10031 (target_supports_string_tracing): Add argument.
10032 * target.c (update_current_target): Update.
10033 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10034
10035 2014-02-19 Tom Tromey <tromey@redhat.com>
10036
10037 * target.h (struct target_ops)
10038 <to_supports_disable_randomization>: Add argument.
10039 * target.c (find_default_supports_disable_randomization): Add
10040 argument.
10041 (target_supports_disable_randomization): Add argument.
10042 (find_default_supports_disable_randomization): Add 'self'
10043 argument.
10044 * remote.c (extended_remote_supports_disable_randomization): Add
10045 'self' argument.
10046 (remote_supports_disable_randomization): Add 'self' argument.
10047 (extended_remote_create_inferior): Update.
10048 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10049 'self' argument.
10050
10051 2014-02-19 Tom Tromey <tromey@redhat.com>
10052
10053 * target.h (struct target_ops)
10054 <to_supports_enable_disable_tracepoint>: Add argument.
10055 (target_supports_enable_disable_tracepoint): Add argument.
10056 * target.c (update_current_target): Update.
10057 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10058 argument.
10059
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10061
10062 * target.h (struct target_ops) <to_supports_multi_process>: Add
10063 argument.
10064 (target_supports_multi_process): Add argument.
10065 * target.c (update_current_target): Update.
10066 * remote.c (remote_supports_multi_process): Add 'self' argument.
10067 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10068 argument.
10069 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10070 argument.
10071
10072 2014-02-19 Tom Tromey <tromey@redhat.com>
10073
10074 * target.h (struct target_ops) <to_execution_direction>: Add
10075 argument.
10076 (target_execution_direction): Add argument.
10077 * target.c (default_execution_direction): Add 'self' argument.
10078 * record-full.c (record_full_execution_direction): Add 'self'
10079 argument.
10080
10081 2014-02-19 Tom Tromey <tromey@redhat.com>
10082
10083 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10084 argument.
10085 (target_can_execute_reverse): Add argument.
10086 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10087 * record-full.c (record_full_can_execute_reverse): Add 'self'
10088 argument.
10089 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10090 argument.
10091
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10093
10094 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10095 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10096 argument.
10097 (target_get_ada_task_ptid): Add argument.
10098 * target.c (update_current_target): Update.
10099 (default_get_ada_task_ptid): Add 'self' argument.
10100 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10101 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10102 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10103 argument.
10104 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10105 argument.
10106 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10107 argument.
10108 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10109 argument.
10110 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10111 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10112 argument.
10113
10114 2014-02-19 Tom Tromey <tromey@redhat.com>
10115
10116 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10117 (target_goto_bookmark): Add argument.
10118 * target.c (dummy_goto_bookmark): Add 'self' argument.
10119 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10120
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10122
10123 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10124 (target_get_bookmark): Add argument.
10125 * target.c (dummy_get_bookmark): Add 'self' argument.
10126 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10127
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10129
10130 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10131 argument.
10132 (target_make_corefile_notes): Add argument.
10133 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10134 * procfs.c (procfs_make_note_section): Add 'self' argument.
10135 (procfs_make_note_section): Add 'self' argument.
10136 (procfs_make_note_section): Add 'self' argument.
10137 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10138 argument.
10139 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10140 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10141 * exec.c (exec_make_note_section): Add 'self' argument.
10142 (exec_make_note_section): Add 'self' argument.
10143
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10145
10146 * target.h (struct target_ops) <to_find_memory_regions>: Add
10147 argument.
10148 (target_find_memory_regions): Add argument.
10149 * target.c (dummy_find_memory_regions): Add 'self' argument.
10150 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10151 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10152 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10153 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10154 * exec. (exec_do_find_memory_regions): New global.
10155 (exec_set_find_memory_regions): Rewrite.
10156 (exec_find_memory_regions): New function.
10157 (init_exec_ops): Use exec_find_memory_regions.
10158
10159 2014-02-19 Tom Tromey <tromey@redhat.com>
10160
10161 * target.h (struct target_ops) <to_supports_non_stop>: Add
10162 argument.
10163 * target.c (find_default_supports_non_stop): Add argument.
10164 (target_supports_non_stop): Add argument.
10165 (find_default_supports_non_stop): Add 'self' argument.
10166 * remote.c (remote_supports_non_stop): Add 'self' argument.
10167 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10168
10169 2014-02-19 Tom Tromey <tromey@redhat.com>
10170
10171 * target.h (struct target_ops) <to_log_command>: Add argument.
10172 (target_log_command): Add argument.
10173 * serial.h (serial_log_command): Add 'self' argument.
10174 * serial.c (serial_log_command): Add 'self' argument.
10175
10176 2014-02-19 Tom Tromey <tromey@redhat.com>
10177
10178 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10179 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10180 argument.
10181 (target_pid_to_exec_file): Add argument.
10182 * target.c (debug_to_pid_to_exec_file): Add argument.
10183 (update_current_target): Update.
10184 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10185 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10186 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10187 (linux_handle_extended_wait): Update.
10188 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10189 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10190 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10191 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10192
10193 2014-02-19 Tom Tromey <tromey@redhat.com>
10194
10195 * target.h (struct target_ops) <to_rcmd>: Add argument.
10196 (target_rcmd): Add argument.
10197 * target.c (debug_to_rcmd): Add argument.
10198 (update_current_target, do_monitor_command): Update.
10199 * remote.c (remote_rcmd): Add 'self' argument.
10200 * monitor.c (monitor_rcmd): Add 'self' argument.
10201
10202 2014-02-19 Tom Tromey <tromey@redhat.com>
10203
10204 * windows-nat.c (windows_stop): Add 'self' argument.
10205 * target.h (struct target_ops) <to_stop>: Add argument.
10206 * target.c (target_stop): Add argument.
10207 (debug_to_stop): Add argument.
10208 (update_current_target): Update.
10209 * remote.c (remote_stop): Add 'self' argument.
10210 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10211 (gdbsim_cntrl_c): Update.
10212 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10213 * procfs.c (procfs_stop): Add 'self' argument.
10214 * nto-procfs.c (procfs_stop): Add 'self' argument.
10215 * monitor.c (monitor_stop): Add 'self' argument.
10216 (monitor_open): Update.
10217 * linux-nat.c (linux_nat_stop): Add argument.
10218 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10219 * gnu-nat.c (gnu_stop): Add 'self' argument.
10220 * darwin-nat.c (darwin_stop): Add 'self' argument.
10221
10222 2014-02-19 Tom Tromey <tromey@redhat.com>
10223
10224 * target.h (struct target_ops) <to_thread_name>: Add argument.
10225 * target.c (target_thread_name): Add argument.
10226 (update_current_target): Update.
10227 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10228
10229 2014-02-19 Tom Tromey <tromey@redhat.com>
10230
10231 * target.h (struct target_ops) <to_extra_thread_info>: Add
10232 argument.
10233 (target_extra_thread_info): Add argument.
10234 * target.c (update_current_target): Update.
10235 * remote.c (remote_threads_extra_info): Add 'self' argument.
10236 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10237 argument.
10238 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10239 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10240 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10241 argument.
10242 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10243 argument.
10244 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10245 argument.
10246 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10247 argument.
10248
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10250
10251 * target.h (struct target_ops) <to_program_signals>: Add argument.
10252 * target.c (target_program_signals): Add argument.
10253 * remote.c (remote_program_signals): Add 'self' argument.
10254
10255 2014-02-19 Tom Tromey <tromey@redhat.com>
10256
10257 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10258 * target.c (target_pass_signals): Add argument.
10259 * remote.c (remote_pass_signals): Add 'self' argument.
10260 (remote_start_remote): Update.
10261 * procfs.c (procfs_pass_signals): Add 'self' argument.
10262 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10263 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10264 (linux_nat_create_inferior, linux_nat_attach): Update.
10265
10266 2014-02-19 Tom Tromey <tromey@redhat.com>
10267
10268 * windows-nat.c (windows_can_run): Add 'self' argument.
10269 * target.h (struct target_ops) <to_can_run>: Add argument.
10270 (target_can_run): Add argument.
10271 * target.c (debug_to_can_run): Add argument.
10272 (update_current_target): Update.
10273 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10274 * inf-child.c (inf_child_can_run): Add 'self' argument.
10275 * go32-nat.c (go32_can_run): Add 'self' argument.
10276
10277 2014-02-19 Tom Tromey <tromey@redhat.com>
10278
10279 * target.h (struct target_ops) <to_has_exited>: Add argument.
10280 (target_has_exited): Add argument.
10281 * target.c (debug_to_has_exited): Add argument.
10282 (update_current_target): Update.
10283
10284 2014-02-19 Tom Tromey <tromey@redhat.com>
10285
10286 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10287 argument.
10288 (target_set_syscall_catchpoint): Add argument.
10289 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10290 argument.
10291 * target.c (update_current_target): Update.
10292
10293 2014-02-19 Tom Tromey <tromey@redhat.com>
10294
10295 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10296 argument.
10297 (target_remove_exec_catchpoint): Add argument.
10298 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10299 (update_current_target): Update.
10300 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10301 argument.
10302
10303 2014-02-19 Tom Tromey <tromey@redhat.com>
10304
10305 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10306 argument.
10307 (target_insert_exec_catchpoint): Add argument.
10308 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10309 (update_current_target): Update.
10310 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10311 argument.
10312
10313 2014-02-19 Tom Tromey <tromey@redhat.com>
10314
10315 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10316 argument.
10317 (target_remove_vfork_catchpoint): Add argument.
10318 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10319 (update_current_target): Update.
10320 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10321 argument.
10322
10323 2014-02-19 Tom Tromey <tromey@redhat.com>
10324
10325 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10326 argument.
10327 (target_insert_vfork_catchpoint): Add argument.
10328 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10329 (update_current_target): Update.
10330 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10331 argument.
10332
10333 2014-02-19 Tom Tromey <tromey@redhat.com>
10334
10335 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10336 argument.
10337 (target_remove_fork_catchpoint): Add argument.
10338 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10339 (update_current_target): Update.
10340 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10341 argument.
10342
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10344
10345 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10346 argument.
10347 (target_insert_fork_catchpoint): Add argument.
10348 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10349 (update_current_target): Update.
10350 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10351 argument.
10352
10353 2014-02-19 Tom Tromey <tromey@redhat.com>
10354
10355 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10356 argument.
10357 (target_post_startup_inferior): Add argument.
10358 * target.c (debug_to_post_startup_inferior): Add argument.
10359 (update_current_target): Update.
10360 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10361 argument.
10362 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10363 argument.
10364 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10365 argument.
10366 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10367 argument.
10368 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10369 'self' argument.
10370 (super_post_startup_inferior): Likewise.
10371 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10372 'self' argument.
10373 (super_post_startup_inferior): Likewise.
10374 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10375 Add 'self' argument.
10376 (super_post_startup_inferior): Likewise.
10377
10378 2014-02-19 Tom Tromey <tromey@redhat.com>
10379
10380 * target.h (struct target_ops) <to_load>: Add argument.
10381 * target.c (target_load): Add argument.
10382 (debug_to_load): Add argument.
10383 (update_current_target): Update.
10384 * remote.c (remote_load): Add 'self' argument.
10385 * remote-sim.c (gdbsim_load): Add 'self' argument.
10386 * remote-mips.c (mips_load): Add 'self' argument.
10387 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10388 * monitor.c (monitor_load): Add 'self' argument.
10389 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10390
10391 2014-02-19 Tom Tromey <tromey@redhat.com>
10392
10393 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10394 (target_terminal_info): Add argument.
10395 * target.c (debug_to_terminal_info): Add argument.
10396 (default_terminal_info): Likewise.
10397 * inflow.c (child_terminal_info): Add 'self' argument.
10398 * inferior.h (child_terminal_info): Add 'self' argument.
10399 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10400
10401 2014-02-19 Tom Tromey <tromey@redhat.com>
10402
10403 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10404 argument.
10405 (target_terminal_save_ours): Add argument.
10406 * target.c (debug_to_terminal_save_ours): Add argument.
10407 (update_current_target): Update.
10408 * inflow.c (terminal_save_ours): Add 'self' argument.
10409 * inferior.h (terminal_save_ours): Add 'self' argument.
10410
10411 2014-02-19 Tom Tromey <tromey@redhat.com>
10412
10413 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10414 (target_terminal_ours): Add argument.
10415 * target.c (debug_to_terminal_ours): Add argument.
10416 (update_current_target): Update.
10417 * remote.c (remote_terminal_ours): Add 'self' argument.
10418 (remote_close): Update.
10419 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10420 * inflow.c (terminal_ours): Add 'self' argument.
10421 * inferior.h (terminal_ours): Add 'self' argument.
10422 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10423
10424 2014-02-19 Pedro Alves <palves@redhat.com>
10425 Tom Tromey <tromey@redhat.com>
10426
10427 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10428 argument.
10429 (target_terminal_ours_for_output): Add argument.
10430 * target.c (debug_to_terminal_ours_for_output): Add argument.
10431 (update_current_target): Update.
10432 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10433 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10434 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10435
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10437
10438 * target.h (struct target_ops) <to_terminal_inferior>: Add
10439 argument.
10440 * target.c (target_terminal_inferior): Add argument.
10441 (update_current_target): Update.
10442 * remote.c (remote_terminal_inferior): Add 'self' argument.
10443 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10444 * inflow.c (terminal_inferior): Add 'self' argument.
10445 * inferior.h (terminal_inferior): Add 'self' argument.
10446 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10447 (go32_terminal_inferior): Add 'self' argument.
10448
10449 2014-02-19 Tom Tromey <tromey@redhat.com>
10450
10451 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10452 (target_terminal_init): Add argument.
10453 * target.c (debug_to_terminal_init): Add argument.
10454 (update_current_target): Update.
10455 * inflow.c (terminal_init_inferior): Add 'self' argument.
10456 * inferior.h (terminal_init_inferior): Add 'self' argument.
10457 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10458 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10459
10460 2014-02-19 Tom Tromey <tromey@redhat.com>
10461
10462 * target.h (struct target_ops)
10463 <to_can_accel_watchpoint_condition>: Add argument.
10464 (target_can_accel_watchpoint_condition): Add argument.
10465 * target.c (debug_to_can_accel_watchpoint_condition): Add
10466 argument.
10467 (update_current_target): Update.
10468 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10469 'self' argument.
10470
10471 2014-02-19 Tom Tromey <tromey@redhat.com>
10472
10473 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10474 Add argument.
10475 (target_region_ok_for_hw_watchpoint): Add argument.
10476 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10477 (default_region_ok_for_hw_watchpoint): Add argument.
10478 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10479 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10480 argument.
10481 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10482 argument.
10483 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10484 argument.
10485 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10486 'self' argument.
10487 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10488 'self' argument.
10489 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10490 'self' argument.
10491 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10492 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10493 'self' argument.
10494 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10495 Add 'self' argument.
10496
10497 2014-02-19 Tom Tromey <tromey@redhat.com>
10498
10499 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10500 argument.
10501 (target_insert_watchpoint): Add argument.
10502 * target.c (debug_to_insert_watchpoint): Add argument.
10503 (update_current_target): Update.
10504 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10505 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10506 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10507 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10508 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10509 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10510 argument.
10511 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10512 (procfs_insert_hw_watchpoint): Add 'self' argument.
10513 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10514 argument.
10515 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10516 argument.
10517 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10518 argument.
10519 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10520 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10521 argument.
10522 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10523 'self' argument.
10524
10525 2014-02-19 Tom Tromey <tromey@redhat.com>
10526
10527 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10528 argument.
10529 (target_remove_watchpoint): Add argument.
10530 * target.c (debug_to_remove_watchpoint): Add argument.
10531 (update_current_target): Update.
10532 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10533 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10534 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10535 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10536 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10537 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10538 argument.
10539 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10540 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10541 argument.
10542 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10543 argument.
10544 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10545 argument.
10546 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10547 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10548 argument.
10549 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10550 'self' argument.
10551
10552 2014-02-19 Tom Tromey <tromey@redhat.com>
10553
10554 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10555 argument.
10556 (target_remove_hw_breakpoint): Add argument.
10557 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10558 (update_current_target): Update.
10559 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10560 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10561 argument.
10562 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10563 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10564 argument.
10565 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10566 'self' argument.
10567
10568 2014-02-19 Tom Tromey <tromey@redhat.com>
10569
10570 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10571 argument.
10572 (target_insert_hw_breakpoint): Add argument.
10573 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10574 (update_current_target): Update.
10575 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10576 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10577 argument.
10578 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10579 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10580 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10581 argument.
10582 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10583 'self' argument.
10584
10585 2014-02-19 Tom Tromey <tromey@redhat.com>
10586
10587 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10588 argument.
10589 (target_can_use_hardware_watchpoint): Add argument.
10590 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10591 (update_current_target): Update.
10592 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10593 argument.
10594 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10595 argument.
10596 * remote.c (remote_check_watch_resources): Add 'self' argument.
10597 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10598 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10599 argument.
10600 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10601 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10602 argument.
10603 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10604 argument.
10605 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10606 argument.
10607 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10608 argument.
10609 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10610 argument.
10611 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10612 argument.
10613 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10614 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10615 argument.
10616 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10617 'self' argument.
10618
10619 2014-02-19 Tom Tromey <tromey@redhat.com>
10620
10621 * target.h (struct target_ops) <to_post_attach>: Add argument.
10622 (target_post_attach): Add argument.
10623 * target.c (debug_to_post_attach): Add argument.
10624 (update_current_target): Update.
10625 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10626 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10627 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10628 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10629 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10630
10631 2014-02-19 Tom Tromey <tromey@redhat.com>
10632
10633 * windows-nat.c (windows_close): Add 'self' argument.
10634 * tracepoint.c (tfile_close): Add 'self' argument.
10635 * target.h (struct target_ops) <to_close>: Add argument.
10636 * target.c (target_close): Add argument.
10637 (update_current_target): Update.
10638 * remote.c (remote_close): Add 'self' argument.
10639 * remote-sim.c (gdbsim_close): Add 'self' argument.
10640 * remote-mips.c (mips_close): Add 'self' argument.
10641 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10642 * record-full.c (record_full_close): Add 'self' argument.
10643 * record-btrace.c (record_btrace_close): Add 'self' argument.
10644 * monitor.h (monitor_close): Add 'self' argument.
10645 * monitor.c (monitor_close): Add 'self' argument.
10646 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10647 * linux-nat.c (linux_nat_close): Add argument.
10648 * go32-nat.c (go32_close): Add 'self' argument.
10649 * exec.c (exec_close_1): Add 'self' argument.
10650 * ctf.c (ctf_close): Add 'self' argument.
10651 * corelow.c (core_close): Add 'self' argument.
10652 (core_close_cleanup): Update.
10653 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10654 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10655
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10657
10658 * remote.c (remote_load): New function.
10659 (init_remote_ops): Use it.
10660
10661 2014-02-19 Tom Tromey <tromey@redhat.com>
10662
10663 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10664 argument.
10665 * common/linux-btrace.h (linux_supports_btrace): Update.
10666 * remote.c (remote_supports_btrace): Add "self" argument.
10667 * target-delegates.c: Rebuild.
10668 * target.c (target_supports_btrace): Remove.
10669 * target.h (struct target_ops) <to_supports_btrace>: Add
10670 target_ops argument.
10671 (target_supports_btrace): New define.
10672
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10674
10675 * record-full.c (record_full_beneath_to_resume_ops)
10676 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10677 (record_full_beneath_to_wait)
10678 (record_full_beneath_to_store_registers_ops)
10679 (record_full_beneath_to_store_registers)
10680 (record_full_beneath_to_xfer_partial_ops)
10681 (record_full_beneath_to_xfer_partial)
10682 (record_full_beneath_to_insert_breakpoint_ops)
10683 (record_full_beneath_to_insert_breakpoint)
10684 (record_full_beneath_to_remove_breakpoint_ops)
10685 (record_full_beneath_to_remove_breakpoint)
10686 (record_full_beneath_to_stopped_by_watchpoint)
10687 (record_full_beneath_to_stopped_data_address)
10688 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10689 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10690 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10691 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10692 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10693 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10694 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10695 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10696 (record_full_resume, record_full_wait_1)
10697 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10698 (record_full_store_registers, record_full_xfer_partial)
10699 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10700 (record_full_async, record_full_core_xfer_partial): Use target
10701 delegation.
10702 * target-delegates.c: Rebuild.
10703 * target.c (current_xfer_partial): Remove.
10704 (update_current_target): Do not INHERIT or de_fault
10705 to_insert_breakpoint, to_remove_breakpoint,
10706 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10707 to_is_async_p, to_async. Do not set to_xfer_partial field.
10708 (default_xfer_partial): Simplify.
10709 (current_xfer_partial): Remove.
10710 (target_wait, target_resume): Simplify.
10711 (find_default_can_async_p, find_default_is_async_p): Update.
10712 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10713 to_xfer_partial, to_stopped_by_watchpoint,
10714 to_stopped_data_address.
10715 (target_store_registers): Simplify.
10716 (forward_target_remove_breakpoint)
10717 (forward_target_insert_breakpoint): Remove.
10718 (target_remove_breakpoint, target_insert_breakpoint)
10719 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10720 * target.h (struct target_ops) <to_resume, to_wait,
10721 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10722 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10723 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10724 markup.
10725 (forward_target_remove_breakpoint)
10726 (forward_target_insert_breakpoint): Remove.
10727 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10728 directly.
10729 (record_btrace_insert_breakpoint): Delegate directly.
10730
10731 2014-02-19 Tom Tromey <tromey@redhat.com>
10732
10733 PR build/7701:
10734 * target-delegates.c: New file.
10735 * target.c: Include target-delegates.c.
10736 (init_dummy_target): Call install_dummy_methods.
10737 (complete_target_initialization): Call install_delegators.
10738 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10739 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10740 * make-target-delegates: New file.
10741
10742 2014-02-19 Tom Tromey <tromey@redhat.com>
10743
10744 * record.c (find_record_target): Use find_target_at.
10745 * target.c (find_target_at): New function.
10746 * target.h (find_target_at): Declare.
10747
10748 2014-02-19 Tom Tromey <tromey@redhat.com>
10749
10750 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10751 Add 'ops' argument.
10752 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10753 'ops' argument.
10754 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10755 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10756 'ops' argument.
10757 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10758 argument.
10759 * linux-nat.c (save_sigtrap): Update.
10760 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10761 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10762 (linux_nat_close): Update.
10763 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10764 argument.
10765 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10766 argument.
10767 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10768 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10769 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10770 (tmp_to_async): Add 'ops' argument.
10771 (record_full_stopped_by_watchpoint, record_full_async)
10772 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10773 argument.
10774 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10775 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10776 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10777 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10778 (remote_is_async_p, remote_async): Add 'ops' argument.
10779 (remote_stopped_data_address): Update.
10780 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10781 * target.c (update_current_target)
10782 (find_default_can_async_p, find_default_is_async_p): Update.
10783 (init_dummy_target): Update.
10784 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10785 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10786 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10787 (target_can_async_p, target_is_async_p, target_async)
10788 (target_stopped_by_watchpoint): Update.
10789
10790 2014-02-19 Yao Qi <yao@codesourcery.com>
10791
10792 PR gdb/16220
10793 * gdbarch.sh: Remove startup_gdbarch.
10794 * gdbarch.c: Regenerated.
10795 * gdbarch.h: Likewise.
10796
10797 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10798
10799 * rl78-tdep.c (rl78_g10_register_name): New function.
10800 (rl78_return_value): Add g10 support.
10801 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10802 g10.
10803
10804 2014-02-17 Doug Evans <xdje42@gmail.com>
10805
10806 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10807 (SUBDIR_GUILE_SRCS): Ditto.
10808 (scm-gsmob.o): Ditto.
10809
10810 2014-02-17 Yao Qi <yao@codesourcery.com>
10811
10812 * gnu-nat.c (ILL_RPC): Declare defined function.
10813
10814 2014-02-17 Yao Qi <yao@codesourcery.com>
10815
10816 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10817 mach_msg_type_number_t.
10818 (gnu_write_inferior): Likewise.
10819
10820 2014-02-17 Yao Qi <yao@codesourcery.com>
10821
10822 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10823 in format string.
10824 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10825 (inf_validate_procs, inf_signal): Likewise.
10826 (S_exception_raise_request): Likewise.
10827 (do_mach_notify_dead_name): Likewise.
10828 (steal_exc_port): Likewise.
10829 (gnu_read_inferior): Change 'copy_count''s type to
10830 mach_msg_type_number_t.
10831 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10832 format string.
10833
10834 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10835
10836 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10837 flag. Adjust all users; in particular...
10838 (gnu_wait): ..., don't decrement its value in here...
10839 (gnu_create_inferior): ..., and instead set the flag in here,
10840 around the startup_inferior call, and call that one with
10841 START_INFERIOR_TRAPS_EXPECTED.
10842
10843 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10844 (ILL_RPC): ... new macro.
10845 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10846 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10847 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10848 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10849 functions with ILL_RPC macro.
10850 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10851 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10852 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10853 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10854 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10855 (S_proc_getlogin_reply, S_proc_getsid_reply)
10856 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10857 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10858 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10859 (S_proc_getnports_reply, S_proc_is_important_reply)
10860 (S_proc_get_code_reply): New stub functions, generated with
10861 ILL_RPC macro.
10862
10863 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10864 collected the type check structures.
10865
10866 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10867
10868 2014-02-14 Doug Evans <dje@google.com>
10869
10870 * target.c (target_write_partial): Fix result type.
10871
10872 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10873
10874 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10875 the proper offsets to access fpregset_t.
10876
10877 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10878
10879 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10880 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10881 * h8300-tdep.c (setmachinelist): Remove global.
10882 * hppa-tdep.c (hppa_sigtramp): Remove global.
10883 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10884 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10885 * ravenscar-thread.c (update_target_observer): Remove global.
10886 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10887
10888 2014-02-12 Tom Tromey <tromey@redhat.com>
10889
10890 * common/rsp-low.c: Update comments.
10891 * common/rsp-low.h: Update comments.
10892
10893 2014-02-12 Tom Tromey <tromey@redhat.com>
10894
10895 * common/rsp-low.c (convert_ascii_to_int): Remove.
10896 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10897
10898 2014-02-12 Tom Tromey <tromey@redhat.com>
10899
10900 * common/rsp-low.h (unhexify): Don't declare.
10901 * common/rsp-low.c (unhexify): Remove.
10902
10903 2014-02-12 Tom Tromey <tromey@redhat.com>
10904
10905 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10906 * common/rsp-low.c (convert_int_to_ascii): Remove.
10907
10908 2014-02-12 Tom Tromey <tromey@redhat.com>
10909
10910 * common/rsp-low.h (hexify): Don't declare.
10911 * common/rsp-low.c (hexify): Remove.
10912
10913 2014-02-12 Tom Tromey <tromey@redhat.com>
10914
10915 * common/rsp-low.c (hexify): Never take strlen of argument.
10916
10917 2014-02-12 Tom Tromey <tromey@redhat.com>
10918
10919 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10920 * remote.c (extended_remote_run, remote_rcmd)
10921 (remote_download_trace_state_variable, remote_save_trace_data)
10922 (remote_set_trace_notes): Update.
10923 * tracepoint.c (encode_source_string, tfile_write_status)
10924 (tfile_write_uploaded_tsv): Update.
10925
10926 2014-02-12 Tom Tromey <tromey@redhat.com>
10927
10928 * tracepoint.c: Include rsp-low.h.
10929 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10930 * remote.c: Include rsp-low.h.
10931 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10932 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10933 (remote_unescape_input): Move to common/rsp-low.c.
10934 * common/rsp-low.h: New file.
10935 * common/rsp-low.c: New file.
10936 * Makefile.in (SFILES): Add common/rsp-low.c.
10937 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10938 (COMMON_OBS): Add rsp-low.o.
10939 (rsp-low.o): New target.
10940
10941 2014-02-12 Tom Tromey <tromey@redhat.com>
10942
10943 * utils.h: Include print-utils.h.
10944 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10945 (int_string, core_addr_to_string, core_addr_to_string_nz)
10946 (hex_string, hex_string_custom): Don't declare.
10947 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10948 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10949 (hex_string_custom, int_string, core_addr_to_string)
10950 (core_addr_to_string_nz, host_address_to_string): Move to
10951 common/print-utils.c.
10952 * common/print-utils.h: New file.
10953 * common/print-utils.c: New file
10954 * Makefile.in (SFILES): Add common/print-utils.c.
10955 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10956 (COMMON_OBS): Add print-utils.o.
10957 (print-utils.o): New target.
10958
10959 2014-02-12 Tom Tromey <tromey@redhat.com>
10960
10961 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10962
10963 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10964
10965 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10966
10967 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10968
10969 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10970 if a PT_IO ptrace request returns sucessfully but indicates that 0
10971 bytes were transferred.
10972
10973 2014-02-12 Pedro Alves <palves@redhat.com>
10974 Kevin Buettner <kevinb@redhat.com>
10975
10976 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10977 TYPE_INSTANCE_FLAG_CODE_SPACE.
10978
10979 2014-02-12 Pedro Alves <palves@redhat.com>
10980
10981 * h8300-tdep.c (pseudo_from_raw_register)
10982 (raw_from_pseudo_register): New functions.
10983 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10984 them.
10985
10986 2014-02-12 Pedro Alves <palves@redhat.com>
10987
10988 * h8300-tdep.c (h8300_register_sim_regno): New function.
10989 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10990 gdbarch_register_sim_regno hook.
10991
10992 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10993
10994 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10995
10996 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10997
10998 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10999
11000 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11001
11002 * obsd-tdep.h (obsd_init_abi): New prototype.
11003 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11004 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11005 (obsd_init_abi): New functions.
11006 * i386obsd-tdep.c: Include "obsd-tdep.h".
11007 (i386obsd_init_abi): Call obsd_init_abi.
11008 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11009 (amd64obsd_init_abi): Call obsd_init_abi.
11010 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11011 obsd-tdep.c to gdb_target_obs.
11012
11013 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11014
11015 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11016 double float arguments to 16-byte in the argument slots.
11017
11018 2014-02-11 Doug Evans <xdje42@gmail.com>
11019
11020 * configure.ac: Don't crash if pkg-config is not found and guile
11021 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11022 in guile checks.
11023 * configure: Regenerate.
11024
11025 2014-02-11 Yao Qi <yao@codesourcery.com>
11026
11027 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11028 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11029 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11030 * gnu-nat.c (gnu_xfer_memory): Likewise.
11031 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11032 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11033 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11034 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11035
11036 2014-02-11 Yao Qi <yao@codesourcery.com>
11037
11038 * target.h (enum target_xfer_error): Rename to ...
11039 (enum target_xfer_status): ... it. New. All users updated.
11040 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11041 New.
11042 (TARGET_XFER_STATUS_ERROR_P): New macro.
11043 (target_xfer_error_to_string): Remove declaration.
11044 (target_xfer_status_to_string): Declare.
11045 (target_xfer_partial_ftype): Adjust it.
11046 (struct target_ops) <to_xfer_partial>: Return
11047 target_xfer_status. Add argument xfered_len. Update
11048 comments.
11049 * target.c (target_xfer_error_to_string): Rename to ...
11050 (target_xfer_status_to_string): ... it. New. All callers
11051 updated.
11052 (target_read_live_memory): Likewise. Call target_xfer_partial
11053 instead of target_read.
11054 (memory_xfer_live_readonly_partial): Return
11055 target_xfer_status. Add argument xfered_len.
11056 (raw_memory_xfer_partial): Likewise.
11057 (memory_xfer_partial_1): Likewise.
11058 (memory_xfer_partial): Likewise.
11059 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11060 properly. Update debug message.
11061 (default_xfer_partial, current_xfer_partial): Likewise.
11062 (target_write_partial): Likewise.
11063 (target_read_partial): Likewise. All callers updated.
11064 (read_whatever_is_readable): Likewise.
11065 (target_write_with_progress): Likewise.
11066 (target_read_alloc_1): Likewise.
11067
11068 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11069 * auxv.c (procfs_xfer_auxv): Likewise.
11070 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11071 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11072 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11073 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11074 * corefile.c (read_memory): Adjust.
11075 * corelow.c (core_xfer_partial): Likewise.
11076 * ctf.c (ctf_xfer_partial): Likewise.
11077 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11078 updated.
11079 (darwin_xfer_partial): Likewise.
11080 * exec.c (section_table_xfer_memory_partial): Likewise. All
11081 callers updated.
11082 (exec_xfer_partial): Likewise.
11083 * exec.h (section_table_xfer_memory_partial): Update
11084 declaration.
11085 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11086 negative.
11087 (gnu_xfer_partial): Likewise.
11088 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11089 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11090 (ia64_hpux_xfer_solib_got): Likewise.
11091 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11092 type of 'partial_len' to ULONGEST.
11093 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11094 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11095 (linux_nat_xfer_partial): Likewise.
11096 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11097 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11098 * monitor.c (monitor_xfer_memory): Likewise.
11099 (monitor_xfer_partial): Likewise.
11100 * procfs.c (procfs_xfer_partial): Likewise.
11101 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11102 * record-full.c (record_full_xfer_partial): Likewise.
11103 (record_full_core_xfer_partial): Likewise.
11104 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11105 (gdbsim_xfer_partial): Likewise.
11106 * remote.c (remote_write_bytes_aux): Likewise. All callers
11107 updated.
11108 (remote_write_bytes, remote_read_bytes): Likewise. All
11109 callers updated.
11110 (remote_flash_erase): Likewise. All callers updated.
11111 (remote_write_qxfer): Likewise. All callers updated.
11112 (remote_read_qxfer): Likewise. All callers updated.
11113 (remote_xfer_partial): Likewise.
11114 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11115 (rs6000_xfer_shared_libraries): Likewise.
11116 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11117 (sol_thread_xfer_partial): Likewise.
11118 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11119 (sparc_xfer_partial): Likewise.
11120 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11121 updated.
11122 (spu_xfer_partial): Likewise.
11123 * spu-multiarch.c (spu_xfer_partial): Likewise.
11124 * tracepoint.c (tfile_xfer_partial): Likewise.
11125 * windows-nat.c (windows_xfer_memory): Likewise.
11126 (windows_xfer_shared_libraries): Likewise.
11127 (windows_xfer_partial): Likewise.
11128 * valprint.c: Replace 'target_xfer_error' with
11129 'target_xfer_status' in comments.
11130
11131 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11132
11133 Checked in by Joel Brobecker <brobecker@adacore.com>.
11134 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11135
11136 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11137
11138 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11139 function parameters.
11140
11141 2014-02-10 Will Newton <will.newton@linaro.org>
11142
11143 * elfread.c (elf_rel_plt_read): Look for a .got section if
11144 looking up .got.plt fails.
11145 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11146 on address passed to elf_gnu_ifunc_record_cache.
11147 (elf_gnu_ifunc_resolve_addr): Likewise.
11148 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11149
11150 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11151
11152 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11153 (X_RETTURN): New macro.
11154 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11155
11156 * sparc64-tdep.c (sparc64_init_abi): Hook
11157 sparc_in_function_epilogue_p.
11158
11159 2014-02-10 Gary Benson <gbenson@redhat.com>
11160
11161 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11162 Rename name_matcher to symbol_matcher.
11163
11164 2014-02-10 Gary Benson <gbenson@redhat.com>
11165
11166 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11167 Use expand_symtabs_file_matcher_ftype and
11168 expand_symtabs_symbol_matcher_ftype.
11169
11170 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11171
11172 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11173 (struct ada_symbol_cache): New.
11174 (ada_free_symbol_cache): Forward declare.
11175 (struct ada_pspace_data): New.
11176 (ada_pspace_data_handle): New static global.
11177 (get_ada_pspace_data, ada_pspace_data_cleanup)
11178 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11179 (cache_space, cache): Delete, now folded inside struct
11180 ada_pspace_data.
11181 (ada_get_symbol_cache): New function.
11182 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11183 implementation.
11184 (_initialize_ada_language): Remove initialization of cache_space.
11185 Move call to observer_attach_inferior_exit up, grouping it
11186 with the other observer registrations inside this function.
11187 Rename command to be more general. Add call to
11188 register_program_space_data_with_cleanup.
11189
11190 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11191
11192 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11193 ada_new_objfile_observer.
11194 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11195 (_initialize_tasks): Update uses of ada_new_objfile_observer
11196 and ada_tasks_normal_stop_observer.
11197
11198 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11199
11200 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11201 returned by the 'Length attribute to integer.
11202
11203 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11204
11205 * ada-lang.c (_initialize_ada_language): Initialize
11206 cache_space obstack.
11207
11208 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11209
11210 * ada-lang.c (HASH_SIZE): New macro.
11211 (struct cache_entry): New type.
11212 (cache_space, cache): New static globals.
11213 (ada_clear_symbol_cache, find_entry): New functions.
11214 (lookup_cached_symbol, cache_symbol): Implement.
11215 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11216 (_initialize_ada_language): Attach ada_new_objfile_observer
11217 and ada_free_objfile_observer.
11218
11219 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11220
11221 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11222 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11223 struct block * parameter.
11224 (ada_lookup_symbol_list_worker): Constify local variable "block".
11225 Remove cast which is no longer necessary.
11226
11227 2014-02-10 Doug Evans <xdje42@gmail.com>
11228
11229 Add Guile as an extension language.
11230 * NEWS: Mention Guile scripting.
11231 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11232 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11233 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11234 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11235 (CLIBS): Add GUILE_LIBS.
11236 (install-guile): New rule.
11237 (guile.o): New rule.
11238 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11239 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11240 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11241 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11242 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11243 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11244 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11245 * configure.ac: New option --with-guile.
11246 * configure: Regenerate.
11247 * config.in: Regenerate.
11248 * auto-load.c: Remove #include "python/python.h". Add #include
11249 "gdb/section-scripts.h".
11250 (source_section_scripts): Handle Guile scripts.
11251 (_initialize_auto_load): Add name of Guile objfile script to
11252 scripts-directory help text.
11253 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11254 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11255 (struct breakpoint): New member scm_bp_object.
11256 * defs.h (enum command_control_type): New value guile_control.
11257 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11258 "extension.h".
11259 (show_user): Update comment.
11260 (_initialize_cli_cmds): Update help text for "show user". Update help
11261 text for max-user-call-depth.
11262 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11263 "extension.h".
11264 (multi_line_command_p): Add guile_control.
11265 (print_command_lines): Handle guile_control.
11266 (execute_control_command, recurse_read_control_structure): Ditto.
11267 (process_next_line): Recognize "guile" commands.
11268 * disasm.c (gdb_disassemble_info): Make non-static.
11269 * disasm.h: #include "dis-asm.h".
11270 (struct gdbarch): Add forward decl.
11271 (gdb_disassemble_info): Declare.
11272 * extension.c: #include "guile/guile.h".
11273 (extension_languages): Add guile.
11274 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11275 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11276 * gdbtypes.c (get_unsigned_type_max): New function.
11277 (get_signed_type_minmax): New function.
11278 * gdbtypes.h (get_unsigned_type_max): Declare.
11279 (get_signed_type_minmax): Declare.
11280 * guile/README: New file.
11281 * guile/guile-internal.h: New file.
11282 * guile/guile.c: New file.
11283 * guile/guile.h: New file.
11284 * guile/scm-arch.c: New file.
11285 * guile/scm-auto-load.c: New file.
11286 * guile/scm-block.c: New file.
11287 * guile/scm-breakpoint.c: New file.
11288 * guile/scm-disasm.c: New file.
11289 * guile/scm-exception.c: New file.
11290 * guile/scm-frame.c: New file.
11291 * guile/scm-gsmob.c: New file.
11292 * guile/scm-iterator.c: New file.
11293 * guile/scm-lazy-string.c: New file.
11294 * guile/scm-math.c: New file.
11295 * guile/scm-objfile.c: New file.
11296 * guile/scm-ports.c: New file.
11297 * guile/scm-pretty-print.c: New file.
11298 * guile/scm-safe-call.c: New file.
11299 * guile/scm-string.c: New file.
11300 * guile/scm-symbol.c: New file.
11301 * guile/scm-symtab.c: New file.
11302 * guile/scm-type.c: New file.
11303 * guile/scm-utils.c: New file.
11304 * guile/scm-value.c: New file.
11305 * guile/lib/gdb.scm: New file.
11306 * guile/lib/gdb/boot.scm: New file.
11307 * guile/lib/gdb/experimental.scm: New file.
11308 * guile/lib/gdb/init.scm: New file.
11309 * guile/lib/gdb/iterator.scm: New file.
11310 * guile/lib/gdb/printing.scm: New file.
11311 * guile/lib/gdb/types.scm: New file.
11312 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11313 (VPATH): Add $(GUILE_SRCDIR).
11314 (GUILE_DIR): New variable.
11315 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11316 (all): Add stamp-guile dependency.
11317 (stamp-guile): New rule.
11318 (clean-guile, install-guile, uninstall-guile): New rules.
11319 (install-only): Add install-guile dependency.
11320 (uninstall): Add uninstall-guile dependency.
11321 (clean): Add clean-guile dependency.
11322
11323 2014-02-09 Doug Evans <xdje42@gmail.com>
11324
11325 Revert this patch (which I approved, mea culpa).
11326
11327 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11328
11329 * Makefile.in (all-lib): Remove.
11330 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11331
11332 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11333
11334 Fix Python stack corruption.
11335 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11336 gdb_py_longest.
11337
11338 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11339
11340 * Makefile.in (all-lib): Remove.
11341 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11342
11343 2014-02-07 Doug Evans <dje@google.com>
11344
11345 * extension-priv.h (extension_language_script_ops): Add comment.
11346 (extension_language_ops): Add comment.
11347 (active_ext_lang_state): Fix typo in comment.
11348
11349 2014-02-07 Pedro Alves <palves@redhat.com>
11350
11351 PR breakpoints/16292
11352 * infrun.c (handle_signal_stop) <signal arrives while stepping
11353 over a breakpoint>: Switch back to the stepping thread.
11354
11355 2014-02-07 Yao Qi <yao@codesourcery.com>
11356
11357 * target.c (target_xfer_partial): Return zero if LEN is zero.
11358
11359 2014-02-07 Yao Qi <yao@codesourcery.com>
11360
11361 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11362 (ld_so_xfer_auxv): Likewise.
11363 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11364 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11365 * corelow.c (core_xfer_partial): Likewise.
11366 * ctf.c (ctf_xfer_partial): Likewise.
11367 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11368 (darwin_xfer_partial): Likewise.
11369 * exec.c (exec_xfer_partial): Likewise.
11370 * gnu-nat.c (gnu_xfer_partial): Likewise.
11371 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11372 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11373 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11374 * linux-nat.c (linux_xfer_siginfo): Likewise.
11375 (linux_proc_xfer_spu): Likewise.
11376 * procfs.c (procfs_xfer_partial): Likewise.
11377 * record-full.c (record_full_xfer_partial): Likewise.
11378 (record_full_core_xfer_partial): Likewise.
11379 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11380 * remote.c (remote_write_qxfer): Likewise.
11381 (remote_write_qxfer, remote_read_qxfer): Likewise.
11382 (remote_xfer_partial): Likewise.
11383 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11384 (rs6000_xfer_shared_libraries): Likewise.
11385 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11386 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11387 (spu_xfer_partial): Likewise.
11388 * target.c (memory_xfer_partial_1): Likewise.
11389 * tracepoint.c (tfile_xfer_partial): Likewise.
11390 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11391 (windows_xfer_partial): Likewise.
11392
11393 2014-02-07 Yao Qi <yao@codesourcery.com>
11394
11395 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11396 comments.
11397 (core_xfer_shared_libraries_aix): Likewise.
11398 * gdbarch.c, gdbarch.h: Regenerated.
11399 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11400 ULONGEST. Change 'len_avail' type to ULONGEST.
11401 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11402 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11403 declaration.
11404 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11405
11406 2014-02-07 Yao Qi <yao@codesourcery.com>
11407
11408 * corefile.c (memory_error): Get 'exception' from ERR and pass
11409 'exception' to throw_error.
11410
11411 2014-02-06 Doug Evans <xdje42@gmail.com>
11412
11413 * configure.ac (libpython checking): Remove all but python.o from
11414 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11415 * configure: Regenerate.
11416
11417 * Makefile.in (SFILES): Add extension.c.
11418 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11419 (COMMON_OBS): Add extension.o.
11420 * extension.h: New file.
11421 * extension-priv.h: New file.
11422 * extension.c: New file.
11423
11424 * python/python-internal.h: #include "extension.h".
11425 (gdbpy_auto_load_enabled): Declare.
11426 (gdbpy_apply_val_pretty_printer): Declare.
11427 (gdbpy_apply_frame_filter): Declare.
11428 (gdbpy_preserve_values): Declare.
11429 (gdbpy_breakpoint_cond_says_stop): Declare.
11430 (gdbpy_breakpoint_has_cond): Declare.
11431 (void source_python_script_for_objfile): Delete.
11432 * python/python.c: #include "extension-priv.h".
11433 Delete inclusion of "observer.h".
11434 (extension_language_python): Moved here and renamed from
11435 script_language_python in py-auto-load.c.
11436 Redefined to be of type extension_language_defn.
11437 (python_extension_script_ops): New global.
11438 (python_extension_ops): New global.
11439 (struct python_env): New member previous_active.
11440 (restore_python_env): Call restore_active_ext_lang.
11441 (ensure_python_env): Call set_active_ext_lang.
11442 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11443 New arg extlang.
11444 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11445 New arg extlang.
11446 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11447 New arg extlang.
11448 (gdbpy_eval_from_control_command): Renamed from
11449 eval_python_from_control_command, made static. New arg extlang.
11450 (gdbpy_source_script) Renamed from source_python_script, made static.
11451 New arg extlang.
11452 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11453 result to int. New arg extlang.
11454 (gdbpy_source_objfile_script): Renamed from
11455 source_python_script_for_objfile, made static. New arg extlang.
11456 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11457 static. New args extlang, extlang_printers. Change result type to
11458 "void".
11459 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11460 static. New arg extlang. Rename arg printers to extlang_printers
11461 and change type to ext_lang_type_printers *.
11462 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11463 static. Replace argument arg with extlang, extlang_printers.
11464 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11465 (!HAVE_PYTHON, source_python_script): Delete.
11466 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11467 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11468 (!HAVE_PYTHON, start_type_printers): Delete.
11469 (!HAVE_PYTHON, apply_type_printers): Delete.
11470 (!HAVE_PYTHON, free_type_printers): Delete.
11471 (_initialize_python): Delete call to observer_attach_before_prompt.
11472 (finalize_python): Set/restore active extension language.
11473 (gdbpy_finish_initialization) Renamed from
11474 finish_python_initialization, made static. New arg extlang.
11475 (gdbpy_initialized): New function.
11476 * python/python.h: #include "extension.h". Delete #include
11477 "value.h", "mi/mi-cmds.h".
11478 (extension_language_python): Declare.
11479 (GDBPY_AUTO_FILE_NAME): Delete.
11480 (enum py_bt_status): Moved to extension.h and renamed to
11481 ext_lang_bt_status.
11482 (enum frame_filter_flags): Moved to extension.h.
11483 (enum py_frame_args): Moved to extension.h and renamed to
11484 ext_lang_frame_args.
11485 (finish_python_initialization): Delete.
11486 (eval_python_from_control_command): Delete.
11487 (source_python_script): Delete.
11488 (apply_val_pretty_printer): Delete.
11489 (apply_frame_filter): Delete.
11490 (preserve_python_values): Delete.
11491 (gdbpy_script_language_defn): Delete.
11492 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11493 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11494
11495 * auto-load.c: #include "extension.h".
11496 (GDB_AUTO_FILE_NAME): Delete.
11497 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11498 (script_language_gdb): Delete, moved to extension.c and renamed to
11499 extension_language_gdb.
11500 (source_gdb_script_for_objfile): Delete.
11501 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11502 (loaded_script): Change type of language member to
11503 struct extension_language_defn *.
11504 (init_loaded_scripts_info): Initialize
11505 unsupported_script_warning_printed.
11506 (maybe_add_script): Make static. Change type of language arg to
11507 struct extension_language_defn *.
11508 (clear_section_scripts): Reset unsupported_script_warning_printed.
11509 (auto_load_objfile_script_1): Rewrite to use extension language API.
11510 (auto_load_objfile_script): Make public. Remove support-compiled-in
11511 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11512 (source_section_scripts): Rewrite to use extension language API.
11513 (load_auto_scripts_for_objfile): Rewrite to use
11514 auto_load_scripts_for_objfile.
11515 (collect_matching_scripts_data): Change type of language member to
11516 struct extension_language_defn *.
11517 (auto_load_info_scripts): Change type of language arg to
11518 struct extension_language_defn *.
11519 (unsupported_script_warning_print): New function.
11520 (script_not_found_warning_print): Make static.
11521 (_initialize_auto_load): Rewrite construction of scripts-directory
11522 help.
11523 * auto-load.h (struct objfile): Add forward decl.
11524 (struct script_language): Delete.
11525 (struct auto_load_pspace_info): Add forward decl.
11526 (struct extension_language_defn): Add forward decl.
11527 (maybe_add_script): Delete.
11528 (auto_load_objfile_script): Declare.
11529 (script_not_found_warning_print): Delete.
11530 (auto_load_info_scripts): Update prototype.
11531 (auto_load_gdb_scripts_enabled): Declare.
11532 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11533 auto_load_python_scripts_enabled and made public.
11534 (script_language_python): Delete, moved to python.c.
11535 (gdbpy_script_language_defn): Delete.
11536 (info_auto_load_python_scripts): Update to use
11537 extension_language_python.
11538
11539 * breakpoint.c (condition_command): Replace call to
11540 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11541 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11542 with call to breakpoint_ext_lang_cond_says_stop.
11543 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11544 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11545 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11546 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11547 New arg slang.
11548 (local_setattro): Print name of extension language with existing
11549 stop condition.
11550
11551 * valprint.c (val_print, value_print): Update to call
11552 apply_ext_lang_val_pretty_printer.
11553 * cp-valprint.c (cp_print_value): Update call to
11554 apply_ext_lang_val_pretty_printer.
11555 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11556 (gdbpy_apply_val_pretty_printer): Renamed from
11557 apply_val_pretty_printer. New arg extlang.
11558 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11559
11560 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11561 extension language API.
11562 * cli/cli-script.c (execute_control_command): Update to call
11563 eval_ext_lang_from_control_command.
11564
11565 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11566 enum ext_lang_bt_status values. Update call to
11567 apply_ext_lang_frame_filter.
11568 (mi_cmd_stack_list_locals): Ditto.
11569 (mi_cmd_stack_list_args): Ditto.
11570 (mi_cmd_stack_list_variables): Ditto.
11571 * mi/mi-main.c: Delete #include "python/python-internal.h".
11572 Add #include "extension.h".
11573 (mi_cmd_list_features): Replace reference to python internal variable
11574 gdb_python_initialized with call to ext_lang_initialized_p.
11575
11576 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11577 Update to use enum ext_lang_frame_args. Update to call
11578 apply_ext_lang_frame_filter.
11579 * python/py-framefilter.c (extract_sym): Update to use enum
11580 ext_lang_bt_status.
11581 (extract_value, py_print_type, py_print_value): Ditto.
11582 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11583 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11584 (py_print_frame): Ditto.
11585 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11586 New arg extlang. Update to use enum ext_lang_bt_status.
11587
11588 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11589 finish_python_initialization. Replace with call to
11590 finish_ext_lang_initialization.
11591
11592 * typeprint.c (do_free_global_table): Update to call
11593 free_ext_lang_type_printers.
11594 (create_global_typedef_table): Update to call
11595 start_ext_lang_type_printers.
11596 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11597 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11598 (type_print_options): Change type of global_printers from "void *"
11599 to "struct ext_lang_type_printers *".
11600
11601 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11602 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11603 (gdbpy_preserve_values): Renamed from preserve_python_values.
11604 New arg extlang.
11605 (!HAVE_PYTHON, preserve_python_values): Delete.
11606
11607 * utils.c (quit_flag): Delete, moved to extension.c.
11608 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11609 extension.c.
11610
11611 * eval.c: Delete #include "python/python.h".
11612 * main.c: Delete #include "python/python.h".
11613
11614 * defs.h: Update comment.
11615
11616 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11617
11618 GDB 7.7 released.
11619
11620 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11621
11622 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11623 defined.
11624
11625 2014-02-05 Yao Qi <yao@codesourcery.com>
11626
11627 * remote.c (remote_pass_signals): Remove local 'buf' and use
11628 rs->buf.
11629 (remote_program_signals): Likewise.
11630
11631 2014-02-05 Yao Qi <yao@codesourcery.com>
11632
11633 * ctf.c: Include "inferior.h" and "gdbthread.h".
11634 (CTF_PID): A new macro.
11635 (ctf_open): Call inferior_appeared and add_thread_silent.
11636 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11637 (ctf_thread_alive): New function.
11638 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11639
11640 2014-02-05 Yao Qi <yao@codesourcery.com>
11641
11642 Revert this patch:
11643
11644 2013-05-24 Yao Qi <yao@codesourcery.com>
11645
11646 * tracepoint.c (TFILE_PID): Remove.
11647 (tfile_open): Don't add thread and inferior.
11648 (tfile_close): Don't set 'inferior_ptid'. Don't call
11649 exit_inferior_silent.
11650 (tfile_thread_alive): Remove.
11651 (init_tfile_ops): Don't set field 'to_thread_alive' of
11652 tfile_ops.
11653
11654 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11655
11656 * remote.c (remote_start_remote): Call remote_check_symbols even
11657 if only symbol-file (not file) has been given.
11658
11659 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11660
11661 * gdbarch.sh (skip_entrypoint): New callback.
11662 * gdbarch.c, gdbarch.h: Regenerate.
11663 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11664 * infrun.c (fill_in_stop_func): Likewise.
11665 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11666 (ppc_elfv2_elf_make_msymbol_special): New function.
11667 (ppc_elfv2_skip_entrypoint): Likewise.
11668 (ppc_linux_init_abi): Install them for ELFv2.
11669
11670 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11671
11672 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11673 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11674 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11675 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11676 structures returned in GPRs.
11677
11678 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11679
11680 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11681 offset to the stack parameter list for the ELFv2 ABI.
11682
11683 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11684
11685 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11686 set_gdbarch_convert_from_func_ptr_addr and
11687 set_gdbarch_elf_make_msymbol_special for ELFv1.
11688 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11689 function descriptors on ELFv1.
11690 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11691 set up r12 at function entry.
11692
11693 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11694
11695 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11696 (struct gdbarch_tdep): New member elf_abi.
11697
11698 * rs6000-tdep.c: Include "elf/ppc64.h".
11699 (rs6000_gdbarch_init): Detect ELF ABI version.
11700
11701 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11702
11703 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11704 within a register pair holding a DFP 128-bit value on little-endian.
11705 (ppc64_sysv_abi_return_value_base): Likewise.
11706 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11707 (dfp_pseudo_register_write): Likewise.
11708
11709 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11710
11711 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11712 offset on little-endian when passing _Decimal32.
11713 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11714
11715 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11716
11717 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11718 of the overlapped FP register within the VSX register on little-
11719 endian platforms.
11720 (efpr_pseudo_register_write): Likewise.
11721
11722 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11723
11724 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11725 offset on little-endian when passing small structures.
11726
11727 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11728
11729 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11730 (struct ppc64_sysv_argpos): New data structure.
11731 (ppc64_sysv_abi_push_float): Remove.
11732 (ppc64_sysv_abi_push_val): New function.
11733 (ppc64_sysv_abi_push_integer): Likewise.
11734 (ppc64_sysv_abi_push_freg): Likewise.
11735 (ppc64_sysv_abi_push_vreg): Likewise.
11736 (ppc64_sysv_abi_push_param): Likewise.
11737 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11738 (ppc64_sysv_abi_return_value_base): New function.
11739 (ppc64_sysv_abi_return_value): Refactor to use it.
11740
11741 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11742
11743 * NEWS: Document new target powerpc64le-*-linux*.
11744
11745 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11746
11747 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11748 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11749 core dumps.
11750 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11751 register set used in ELF core dumps. Add floating-point register set.
11752
11753 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11754
11755 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11756 dwarf2_to_gdb[] table using symbolic constants. Adjust
11757 penultimate entry from number representing the PC register
11758 to symbolic constant representing the MDR register. Add
11759 constant for the PC register to the end of the table.
11760
11761 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11762
11763 * bsd-kvm.c: Include <sys/param.h>
11764
11765 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11766
11767 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11768
11769 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11770
11771 * ada-lang.h (clear_ada_sym_cache): Delete.
11772
11773 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11774
11775 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11776
11777 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11778
11779 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11780 the sigreturn register save area only if the syscall is
11781 sigreturn.
11782
11783 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11784
11785 * valops.c (value_slice): Minor reformatting.
11786
11787 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11788
11789 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11790
11791 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11792
11793 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11794 New static globals.
11795 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11796 (ada_ignore_descriptive_types_p): New static global.
11797 (find_parallel_type_by_descriptive_type): Return immediately
11798 if ada_ignore_descriptive_types_p is set.
11799 (_initialize_ada_language): Register new commands "maintenance
11800 set ada", "maintenance show ada", "maintenance set ada
11801 ignore-descriptive-types" and "maintenance show ada
11802 ignore-descriptive-types".
11803 * NEWS: Add entry for new "maint ada set/show
11804 ignore-descriptive-types" commands.
11805
11806 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11807
11808 * record-btrace.c (record_btrace_close): Call btrace_teardown
11809 for all threads.
11810
11811 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11812
11813 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11814 "ui-out.h".
11815
11816 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11817
11818 * ada-typeprint (type_is_full_subrange_of_target_type):
11819 New function.
11820 (print_range): Add parameter bounds_prefered_p. If not set,
11821 try printing range types using the name of their base type.
11822 (print_range_type): Add parameter bounds_prefered_p.
11823 Use it in call to print_range.
11824 (print_array_type, ada_print_type): Update calls to print_range
11825 and print_range_type.
11826
11827 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11828
11829 * ada-typeprint.c (print_array_type, print_choices, print_range)
11830 (print_range_bound, print_dynamic_range_bound, print_range_type):
11831 Remove declaration.
11832
11833 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11834
11835 * ada-typeprint.c (print_range): Add missing empty line
11836 after local declaration.
11837
11838 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11839
11840 * ada-valprint.c (print_optional_low_bound): Get index_type's
11841 target type for as long as it is a TYPE_CODE_RANGE.
11842
11843 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11844
11845 * procfs.c (procfs_make_note_section): Remove assertion and
11846 associated comment.
11847
11848 2014-01-24 Yao Qi <yao@codesourcery.com>
11849
11850 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11851 * corelow.c (get_core_siginfo): Likewise.
11852
11853 2014-01-24 Yao Qi <yao@codesourcery.com>
11854
11855 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11856 ULONGEST. Don't check 'len' is negative.
11857 (remote_write_bytes): Change type of 'len' to ULONGEST.
11858
11859 2014-01-23 Tom Tromey <tromey@redhat.com>
11860
11861 PR python/16485:
11862 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11863 Handle exception from frame.block.
11864 (FrameVars.fetch_frame_locals): Likewise.
11865
11866 2014-01-23 Tom Tromey <tromey@redhat.com>
11867
11868 PR python/16487:
11869 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11870 on a NULL pointer. Move "goto error" to correct place.
11871
11872 2014-01-23 Tom Tromey <tromey@redhat.com>
11873
11874 PR python/16491:
11875 * python/py-framefilter.c (apply_frame_filter): Call
11876 ensure_python_env after computing gdbarch.
11877
11878 2014-01-23 Yao Qi <yao@codesourcery.com>
11879
11880 * target.c (raw_memory_xfer_partial): Change argument type
11881 from void * to gdb_byte *.
11882 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11883
11884 2014-01-22 Doug Evans <dje@google.com>
11885
11886 New gdbserver option --debug-format=timestamp.
11887 * NEWS: Mention it.
11888
11889 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11890
11891 * syscalls/s390x-linux.xml: New file.
11892 * syscalls/s390-linux.xml: New file.
11893 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11894 (XML_SYSCALL_FILENAME_S390X): Likewise.
11895 (op_svc): New enum value for SVC opcode.
11896 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11897 (s390_linux_get_syscall_number): New function.
11898 (s390_gdbarch_init): Register '*get_syscall_number' and the
11899 syscall xml file name.
11900 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11901 "s390-linux.xml" and "s390x-linux.xml".
11902 * NEWS: Announce new feature.
11903
11904 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11905
11906 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11907
11908 2014-01-22 Pedro Alves <palves@redhat.com>
11909
11910 * xtensa-config.c: Include defs.h.
11911
11912 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11913
11914 * common/common-utils.h: Add "ARI:" comment beside __func__
11915 reference.
11916
11917 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11918
11919 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11920 documentation a bit.
11921
11922 2014-01-21 Roland McGrath <mcgrathr@google.com>
11923
11924 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11925 * configure: Regenerate.
11926 * aclocal.m4: Regenerate.
11927 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11928 New substituted variables.
11929 (install-strip): New target.
11930 (INSTALL_SCRIPT): New substituted variable.
11931 (FLAGS_TO_PASS): Add it.
11932 (install-only): Use $(INSTALL_SCRIPT) rather than
11933 $(INSTALL_PROGRAM) for gcore.
11934
11935 2014-01-20 Tom Tromey <tromey@redhat.com>
11936
11937 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11938 together.
11939
11940 2014-01-20 Tom Tromey <tromey@redhat.com>
11941
11942 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11943 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11944 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11945 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11946 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11947 (struct cmd_list_element) <flags>: Remove.
11948 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11949 doc_allocated>: New fields.
11950 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11951 bitfields.
11952 * maint.c (maintenance_do_deprecate): Update.
11953 * top.c (execute_command): Update.
11954
11955 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11956
11957 * xtensa-linux-nat.c: Include asm/ptrace.h.
11958
11959 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11960
11961 * Makefile.in (SFILES): Add d-support.c.
11962 (COMMON_OBS): Add d-support.o.
11963 * d-lang.h (d_parse_symbol): Add comment, now defined in
11964 d-support.c.
11965 * d-lang.c (parse_call_convention)
11966 (parse_attributes, parse_function_types)
11967 (parse_function_args, parse_type, parse_identifier)
11968 (call_convention_p, d_parse_symbol): Move functions to ...
11969 * d-support.c: ... New file.
11970
11971 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11972
11973 * d-lang.h (d_parse_symbol): Add declaration.
11974 * d-lang.c (extract_identifiers)
11975 (extract_type_info): Remove functions.
11976 (parse_call_convention, parse_attributes)
11977 (parse_function_types, parse_function_args)
11978 (parse_type, parse_identifier, call_convention_p)
11979 (d_parse_symbol): New functions.
11980 (d_demangle): Use d_parse_symbol to demangle D symbols.
11981
11982 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11983
11984 * d-lang.h (struct builtin_d_type): New data type.
11985 (builtin_d_type): Add declaration.
11986 * d-lang.c (d_language_arch_info, build_d_types)
11987 (builtin_d_type): New functions.
11988 (enum d_primitive_types): New data type.
11989 (d_language_defn): Change c_language_arch_info to
11990 d_language_arch_info.
11991 (d_type_data): New static variable.
11992 (_initialize_d_language): Initialize d_type_data.
11993
11994 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11995
11996 * d-lang.h (d_main_name): Add declaration.
11997 * d-lang.c (d_main_name): New function.
11998 * symtab.c (find_main_name): Add call to d_main_name.
11999
12000 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12001
12002 * d-lang.c (d_language_defn): Change macro_expansion_c to
12003 macro_expansion_no.
12004
12005 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12006
12007 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12008
12009 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12010
12011 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12012 gdb_exception" declaration.
12013 * remote.c (getpkt_or_notif_sane): Likewise.
12014
12015 2014-01-17 Doug Evans <dje@google.com>
12016
12017 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12018 function, contents of dirnames_to_char_ptr_vec_append moved here.
12019 (delim_string_to_char_ptr_vec): New function.
12020 (dirnames_to_char_ptr_vec_append): Rewrite.
12021 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12022
12023 2014-01-17 Doug Evans <dje@google.com>
12024
12025 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12026 and moved here ...
12027 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12028 #include "common-utils.h".
12029 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12030 * common/vec.h (VEC_ASSERT_PASS): Update.
12031 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12032 (MACH_CHECK_ERROR): Update.
12033
12034 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12035
12036 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12037 comments.
12038 * gdbarch.h: Regenerate.
12039
12040 2014-01-16 Tom Tromey <tromey@redhat.com>
12041
12042 * value.c (struct value) <regnum>: Move earlier.
12043
12044 2014-01-16 Tom Tromey <tromey@redhat.com>
12045
12046 * remote.c (extended_remote_create_inferior): Rename from
12047 extended_remote_create_inferior_1. Add "ops" argument. Remove
12048 old implementation.
12049
12050 2014-01-16 Pedro Alves <palves@redhat.com>
12051
12052 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12053 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12054 the backchain.
12055
12056 2014-01-16 Doug Evans <dje@google.com>
12057
12058 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12059
12060 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12061
12062 * btrace.h (btrace_thread_flag): New.
12063 (struct btrace_thread_info) <flags>: New.
12064 * record-btrace.c (record_btrace_resume_thread)
12065 (record_btrace_find_thread_to_move, btrace_step_no_history)
12066 (btrace_step_stopped, record_btrace_start_replaying)
12067 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12068 (record_btrace_find_resume_thread): New.
12069 (record_btrace_resume, record_btrace_wait): Extend.
12070 (record_btrace_can_execute_reverse): New.
12071 (record_btrace_open): Fail in non-stop mode.
12072 (record_btrace_set_replay): Split into this, ...
12073 (record_btrace_stop_replaying): ... this, ...
12074 (record_btrace_clear_histories): ... and this.
12075 (init_record_btrace_ops): Init to_can_execute_reverse.
12076 * NEWS: Announce it.
12077
12078 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12079
12080 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12081 (forward_target_decr_pc_after_break)
12082 (target_decr_pc_after_break): New.
12083 * target.c (forward_target_decr_pc_after_break)
12084 (target_decr_pc_after_break): New.
12085 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12086 instead of gdbarch_decr_pc_after_break.
12087 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12088 instead of gdbarch_decr_pc_after_break.
12089 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12090 instead of gdbarch_decr_pc_after_break.
12091 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12092 instead of gdbarch_decr_pc_after_break.
12093 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12094 instead of gdbarch_decr_pc_after_break.
12095 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12096 instead of gdbarch_decr_pc_after_break.
12097
12098 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12099
12100 * btrace.c: Include regcache.h.
12101 (btrace_add_pc): New.
12102 (btrace_enable): Call btrace_add_pc.
12103 (btrace_is_empty): New.
12104 * btrace.h (btrace_is_empty): New.
12105 * record-btrace.c (require_btrace, record_btrace_info): Call
12106 btrace_is_empty.
12107
12108 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12109
12110 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12111 Support delta reads.
12112 (linux_disable_btrace): Change return type.
12113 * common/linux-btrace.h (linux_read_btrace): Change parameters
12114 and return type to allow error reporting. Update users.
12115 (linux_disable_btrace): Change return type. Update users.
12116 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12117 New.
12118 (btrace_error): New.
12119 (btrace_block) <begin>: Comment on BEGIN == 0.
12120 * btrace.c (btrace_compute_ftrace): Start from the end of
12121 the current trace.
12122 (btrace_stitch_trace, btrace_clear_history): New.
12123 (btrace_fetch): Read delta trace, return if replaying.
12124 (btrace_clear): Move clear history code to btrace_clear_history.
12125 (parse_xml_btrace): Throw an error if parsing failed.
12126 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12127 and return type to allow error reporting.
12128 (target_read_btrace): Change parameters and return type to allow
12129 error reporting.
12130 * target.c (target_read_btrace): Update.
12131 * remote.c (remote_read_btrace): Support delta reads. Pass
12132 errors on.
12133 * NEWS: Announce it.
12134
12135 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12136
12137 * record.h (record_btrace_frame_unwind)
12138 (record_btrace_tailcall_frame_unwind): New declarations.
12139 * dwarf2-frame: Include record.h
12140 (dwarf2_frame_cfa): Throw an error for btrace frames.
12141 * record-btrace.c: Include hashtab.h.
12142 (btrace_get_bfun_name): New.
12143 (btrace_call_history): Call btrace_get_bfun_name.
12144 (struct btrace_frame_cache): New.
12145 (bfcache): New.
12146 (bfcache_hash, bfcache_eq, bfcache_new): New.
12147 (btrace_get_frame_function): New.
12148 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12149 (record_btrace_frame_this_id): Compute own id.
12150 (record_btrace_frame_prev_register): Provide PC, throw_error
12151 for all other registers.
12152 (record_btrace_frame_sniffer): Detect btrace frames.
12153 (record_btrace_tailcall_frame_sniffer): New.
12154 (record_btrace_frame_dealloc_cache): New.
12155 (record_btrace_frame_unwind): Add new functions.
12156 (record_btrace_tailcall_frame_unwind): New.
12157 (_initialize_record_btrace): Allocate cache.
12158 * btrace.c (btrace_clear): Call reinit_frame_cache.
12159 * NEWS: Announce it.
12160
12161 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12162
12163 * record-btrace.c (record_btrace_set_replay)
12164 (record_btrace_goto_begin, record_btrace_goto_end)
12165 (record_btrace_goto): New.
12166 (init_record_btrace_ops): Initialize them.
12167 * NEWS: Announce it.
12168
12169 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12170
12171 * record-btrace.c (record_btrace_find_new_threads)
12172 (record_btrace_thread_alive): New.
12173 (init_record_btrace_ops): Initialize to_find_new_threads and
12174 to_thread_alive.
12175
12176 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12177
12178 * record-btrace.c (record_btrace_resume): New.
12179 (record_btrace_wait): New.
12180 (init_record_btrace_ops): Initialize to_wait and to_resume.
12181
12182 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12183
12184 * record-btrace.c (record_btrace_xfer_partial)
12185 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12186 (record_btrace_allow_memory_access): New.
12187 (init_record_btrace_ops): Initialize new methods.
12188 * target.c (raw_memory_xfer_partial): Bail out if target reports
12189 that this memory is not available.
12190
12191 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12192
12193 * target.h (target_ops) <to_insert_breakpoint>
12194 <to_remove_breakpoint>: Add target_ops parameter.
12195 (forward_target_insert_breakpoint): New.
12196 (forward_target_remove_breakpoint): New.
12197 (memory_remove_breakpoint, memory_insert_breakpoint):
12198 Add target_ops parameter.
12199 * target.c (target_insert_breakpoint): Split into this and ...
12200 (forward_target_insert_breakpoint): ... this.
12201 (target_remove_breakpoint): Split into this and ...
12202 (forward_target_remove_breakpoint): ... this.
12203 (debug_to_insert_breakpoint): Add target_ops parameter.
12204 Call forward_target_insert_breakpoint.
12205 (debug_to_remove_breakpoint): Add target_ops parameter.
12206 Call forward_target_remove_breakpoint.
12207 (update_current_target): Do not inherit or default to_insert_breakpoint
12208 and to_remove_breakpoint.
12209 * corelow.c (ignore): Add target_ops parameter.
12210 * exec.c (ignore): Add target_ops parameter.
12211 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12212 Add target_ops parameter.
12213 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12214 Add target_ops parameter.
12215 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12216 Add target_ops parameter.
12217 * record-full.c (record_full_beneath_to_insert_breakpoint)
12218 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12219 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12220 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12221 (record_full_core_remove_breakpoint): Add target_ops parameter.
12222 Update users.
12223 (record_full_beneath_to_insert_breakpoint_ops)
12224 (record_full_beneath_to_remove_breakpoint_ops)
12225 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12226 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12227 tmp_to_remove_breakpoint_ops,
12228 record_full_beneath_to_insert_breakpoint_ops, and
12229 record_full_beneath_to_remove_breakpoint_ops.
12230 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12231 (m32r_remove_breakpoint): Add target_ops parameter.
12232 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12233 Add target_ops parameter.
12234 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12235 Add target_ops parameter.
12236
12237 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12238 Markus Metzger <markus.t.metzger@intel.com>
12239
12240 * record-btrace.c: Include frame-unwind.h.
12241 (record_btrace_frame_unwind_stop_reason)
12242 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12243 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12244 New.
12245 (init_record_btrace_ops): Install it.
12246
12247 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12248
12249 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12250 get_prev_frame_1.
12251
12252 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12253
12254 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12255 earlier.
12256
12257 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12258
12259 * frame-unwind.c: Include target.h.
12260 (frame_unwind_try_unwinder): New function with code from ...
12261 (frame_unwind_find_by_frame): ... here. New variable
12262 unwinder_from_target, call also target_get_unwinder)
12263 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12264 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12265 * target.h (struct target_ops): New fields to_get_unwinder and
12266 to_get_tailcall_unwinder.
12267 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12268
12269 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12270
12271 * record-btrace.c (record_btrace_fetch_registers)
12272 (record_btrace_store_registers)
12273 (record_btrace_to_prepare_to_store): New.
12274 (init_record_btrace_ops): Add the above.
12275
12276 2014-01-16 Tom Tromey <tromey@redhat.com>
12277
12278 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12279 * target.h (struct target_ops) <to_prepare_to_store>: Add
12280 argument.
12281 (target_prepare_to_store): Add argument.
12282 * target.c (debug_to_prepare_to_store): Add argument.
12283 (update_current_target): Update.
12284 * remote.c (remote_prepare_to_store): Add 'self' argument.
12285 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12286 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12287 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12288 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12289 argument.
12290 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12291 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12292 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12293 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12294 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12295
12296 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12297
12298 * btrace.h (replay) <replay>: New.
12299 (btrace_is_replaying): New.
12300 * btrace.c (btrace_clear): Free replay iterator.
12301 (btrace_is_replaying): New.
12302 * record-btrace.c (record_btrace_is_replaying): New.
12303 (record_btrace_info): Print insn number if replaying.
12304 (record_btrace_insn_history): Start at replay position.
12305 (record_btrace_call_history): Start at replay position.
12306 (init_record_btrace_ops): Init to_record_is_replaying.
12307
12308 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12309
12310 * record-btrace.c (record_btrace_insn_history_range): Include
12311 end.
12312 (record_btrace_insn_history_from): Adjust range.
12313 (record_btrace_call_history_range): Include
12314 end.
12315 (record_btrace_call_history_from): Adjust range.
12316 * NEWS: Announce changes.
12317
12318 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12319
12320 * record.h (enum record_print_flag)
12321 <record_print_indent_calls>: New.
12322 * record.c (get_call_history_modifiers): Recognize /c modifier.
12323 (_initialize_record): Document /c modifier.
12324 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12325 Reorder fields. Optionally indent the function name. Update
12326 all users.
12327 * NEWS: Announce changes.
12328
12329 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12330
12331 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12332
12333 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12334
12335 * btrace.c (ftrace_new_function): Start counting at one.
12336 * record-btrace.c (record_btrace_info): Adjust number of calls
12337 and insns.
12338 * NEWS: Announce it.
12339
12340 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12341
12342 * record-btrace.c (btrace_call_history_insn_range): Print
12343 insn range as [begin, end].
12344
12345 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12346
12347 * btrace.h (struct btrace_func_link): New.
12348 (enum btrace_function_flag): New.
12349 (struct btrace_inst): Rename to ...
12350 (struct btrace_insn): ...this. Update all users.
12351 (struct btrace_func) <ibegin, iend>: Remove.
12352 (struct btrace_func_link): New.
12353 (struct btrace_func): Rename to ...
12354 (struct btrace_function): ...this. Update all users.
12355 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12356 (number, level, flags>: New.
12357 (struct btrace_insn_iterator): Rename to ...
12358 (struct btrace_insn_history): ...this.
12359 Update all users.
12360 (struct btrace_insn_iterator, btrace_call_iterator): New.
12361 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12362 (struct btrace_target_info) <begin, end, level>
12363 <insn_history, call_history>: New.
12364 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12365 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12366 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12367 (btrace_call_number, btrace_call_begin, btrace_call_end)
12368 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12369 (btrace_find_function_by_number, btrace_set_insn_history)
12370 (btrace_set_call_history): New.
12371 * btrace.c (btrace_init_insn_iterator)
12372 (btrace_init_func_iterator, compute_itrace): Remove.
12373 (ftrace_print_function_name, ftrace_print_filename)
12374 (ftrace_skip_file): Change
12375 parameter to const.
12376 (ftrace_init_func): Remove.
12377 (ftrace_debug): Use new btrace_function fields.
12378 (ftrace_function_switched): Also consider gaining and
12379 losing symbol information).
12380 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12381 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12382 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12383 New.
12384 (ftrace_new_function): Move. Remove debug print.
12385 (ftrace_update_lines, ftrace_update_insns): New.
12386 (ftrace_update_function): Check for call, ret, and jump.
12387 (compute_ftrace): Renamed to ...
12388 (btrace_compute_ftrace): ...this. Rewritten to compute call
12389 stack.
12390 (btrace_fetch, btrace_clear): Updated.
12391 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12392 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12393 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12394 (btrace_call_number, btrace_call_begin, btrace_call_end)
12395 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12396 (btrace_find_function_by_number, btrace_set_insn_history)
12397 (btrace_set_call_history): New.
12398 * record-btrace.c (require_btrace): Use new btrace thread
12399 info fields.
12400 (record_btrace_info, btrace_insn_history)
12401 (record_btrace_insn_history, record_btrace_insn_history_range):
12402 Use new btrace thread info fields and new iterator.
12403 (btrace_func_history_src_line): Rename to ...
12404 (btrace_call_history_src_line): ...this. Use new btrace
12405 thread info fields.
12406 (btrace_func_history): Rename to ...
12407 (btrace_call_history): ...this. Use new btrace thread info
12408 fields and new iterator.
12409 (record_btrace_call_history, record_btrace_call_history_range):
12410 Use new btrace thread info fields and new iterator.
12411
12412 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12413
12414 * frame.h (frame_id_build_unavailable_stack_special): New.
12415 * frame.c (frame_id_build_unavailable_stack_special): New.
12416
12417 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12418
12419 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12420 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12421 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12422 to gdbarch.
12423 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12424 (i386_insn_is_jump, i386_jmp_p): New.
12425 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12426 insn_is_jump to gdbarch.
12427 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12428 * gdbarch.h: Regenerated.
12429 * gdbarch.c: Regenerated.
12430 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12431 (default_insn_is_jump): New.
12432 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12433 (default_insn_is_jump): New.
12434
12435 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12436
12437 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12438 Change to ...
12439 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12440 (btrace_read_type) <btrace_read_new>: Change to ...
12441 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12442
12443 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12444
12445 * common/linux-btrace.c (linux_read_btrace): Free trace from
12446 previous iteration.
12447
12448 2014-01-15 Doug Evans <dje@google.com>
12449
12450 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12451 uint32_t.
12452
12453 2014-01-15 Tom Tromey <tromey@redhat.com>
12454
12455 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12456 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12457 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12458 (set_objfile_main_name): New function.
12459 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12460 language_of_main>: New fields.
12461 (set_objfile_main_name): Declare.
12462 * symtab.c (find_main_name): Loop over objfiles to find the main
12463 name and language.
12464 (set_main_name): Now static.
12465 (get_main_info): Add comment.
12466 * symtab.h (set_main_name): Don't declare.
12467
12468 2014-01-15 Tom Tromey <tromey@redhat.com>
12469
12470 * symtab.c (main_progspace_key): New global.
12471 (struct main_info): New.
12472 (name_of_main, language_of_main): Remove.
12473 (get_main_info, main_info_cleanup): New function.
12474 (set_main_name, main_name, main_language): Use get_main_info.
12475 (_initialize_symtab): Initialize main_progspace_key.
12476
12477 2014-01-15 Tom Tromey <tromey@redhat.com>
12478
12479 * dbxread.c (process_one_symbol): Update.
12480 * dwarf2read.c (read_partial_die): Update.
12481 * symfile.c (set_initial_language): Call main_language.
12482 * symtab.c (language_of_main): Now static.
12483 (set_main_name): Add 'lang' parameter.
12484 (find_main_name): Update.
12485 (main_language): New function.
12486 (symtab_observer_executable_changed): Update.
12487 * symtab.h (set_main_name): Update.
12488 (language_of_main): Remove.
12489 (main_language): Declare.
12490
12491 2014-01-15 Tom Tromey <tromey@redhat.com>
12492
12493 * symfile.c (init_entry_point_info): Use new "initialized" field.
12494 Update.
12495 * objfiles.h (struct entry_point) <initialized>: New field.
12496 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12497 (struct objfile) <ei>: ...here. Remove.
12498 * objfiles.c (entry_point_address_query): Update.
12499
12500 2014-01-15 Tom Tromey <tromey@redhat.com>
12501
12502 * objfiles.c (entry_point_address_query): Relocate entry point
12503 address.
12504 (objfile_relocate1): Do not relocate entry point address.
12505 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12506 <the_bfd_section_index>: New field.
12507 * symfile.c (init_entry_point_info): Find the entry point's
12508 section.
12509
12510 2014-01-15 Tom Tromey <tromey@redhat.com>
12511
12512 * solib-frv.c (enable_break): Use entry_point_address_query.
12513
12514 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12515
12516 * NEWS: Add note on improved process record-replay on
12517 arm*-linux* targets.
12518
12519 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12520
12521 * arm-tdep.c (enum arm_record_result): New enum.
12522 (arm_record_unsupported_insn): New function.
12523 (arm_record_coproc_data_proc): Removed.
12524 (thumb2_record_ld_st_multiple): New function.
12525 (thumb2_record_ld_st_dual_ex_tbb): New function.
12526 (thumb2_record_data_proc_sreg_mimm): New function.
12527 (thumb2_record_ps_dest_generic): New function.
12528 (thumb2_record_branch_misc_cntrl): New function.
12529 (thumb2_record_str_single_data): New function.
12530 (thumb2_record_ld_mem_hints): New function.
12531 (thumb2_record_ld_word): New function.
12532 (thumb2_record_lmul_lmla_div): New function.
12533 (thumb2_record_decode_insn_handler): New function.
12534 (decode_insn): Add thumb32 instruction handlers.
12535
12536 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12537
12538 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12539 (struct arm_linux_record_tdep): Declare.
12540 (arm_canonicalize_syscall): New function.
12541 (arm_all_but_pc_registers_record): New function.
12542 (arm_linux_syscall_record): New function.
12543 (arm_linux_init_abi): Add syscall recording constructs.
12544 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12545 decoding. (arm_record_coproc_data_proc): Update arm syscall
12546 decoding.
12547 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12548 <arm_syscall_record>: New field.
12549 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12550 gdb_target_obs.
12551
12552 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12553
12554 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12555 register for push instruction recording.
12556
12557 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12558
12559 * arm-tdep.c (thumb_record_misc): Update to correct logical
12560 error while recording ldm, ldmia and pop instructions.
12561
12562 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12563
12564 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12565
12566 2014-01-15 Pedro Alves <palves@redhat.com>
12567
12568 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12569 (go32_resume, go32_fetch_registers, store_register)
12570 (go32_store_registers, go32_prepare_to_store)
12571 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12572 (go32_create_inferior, go32_can_run, go32_terminal_init)
12573 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12574 declarations.
12575
12576 2014-01-15 Tom Tromey <tromey@redhat.com>
12577
12578 * target.h (async_callback_ftype): New typedef.
12579 (struct target_ops) <to_async>: Use it.
12580
12581 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12582
12583 * python/py-value.c (get_field_type): Remove unnecessary curly
12584 braces for single-statement if block.
12585
12586 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12587
12588 * python/py-type.c (convert_field): Add missing empty line
12589 after declarations.
12590
12591 2014-01-14 Doug Evans <dje@google.com>
12592
12593 * symfile.h (expand_symtabs_matching): Renamed from
12594 expand_partial_symbol_names. Update prototype.
12595 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12596 * symfile.c (expand_symtabs_matching): Renamed from
12597 expand_partial_symbol_names. New args file_matcher, kind.
12598 Rename arg fun to symbol_matcher.
12599 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12600 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12601 ada_expand_partial_symbol_name.
12602 (ada_make_symbol_completion_list): Update to call
12603 expand_symtabs_matching.
12604 (ada_add_global_exceptions): Call expand_symtabs_matching.
12605 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12606 call map_symbol_filenames.
12607 * symtab.c (sources_info): Update to call map_symbol_filenames.
12608 (search_symbols): Call expand_symtabs_matching.
12609 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12610 (default_make_symbol_completion_list_break_on): Update to call
12611 expand_symtabs_matching.
12612 (make_source_files_completion_list): Update to call
12613 map_symbol_filenames.
12614
12615 2014-01-14 Doug Evans <dje@google.com>
12616
12617 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12618 (expand_symtabs_symbol_matcher_ftype): New typedef.
12619 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12620 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12621 * symfile.c (expand_partial_symbol_names): Update to use
12622 expand_symtabs_symbol_matcher_ftype.
12623 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12624 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12625 Arg name_matcher renamed to symbol_matcher.
12626 * psymtab.c (recursively_search_psymtabs): Update to use
12627 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12628 sym_matcher.
12629 (expand_symtabs_matching_via_partial): Update to use
12630 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12631 Arg name_matcher renamed to symbol_matcher.
12632
12633 2014-01-14 Doug Evans <dje@google.com>
12634
12635 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12636 (map_partial_symbol_filenames): Ditto.
12637 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12638 (map_partial_symbol_filenames): Ditto.
12639 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12640 (map_partial_symbol_filenames): Ditto.
12641 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12642 (map_partial_symbol_filenames): Ditto.
12643 * symtab.c: Delete #include "psymtab.h".
12644
12645 2014-01-14 Pedro Alves <palves@redhat.com>
12646 Tom Tromey <tromey@redhat.com>
12647
12648 * infrun.c (use_displaced_stepping): Use find_record_target
12649 instead of RECORD_IS_USED.
12650 (adjust_pc_after_break): Use record_full_is_used instead of
12651 RECORD_IS_USED.
12652 * record-btrace.c (record_btrace_open): Call record_preopen
12653 instead of checking RECORD_IS_USED.
12654 * record-full.c (record_full_shortname)
12655 (record_full_core_shortname): New globals.
12656 (record_full_is_used): New function.
12657 (find_full_open): Call record_preopen instead of checking
12658 RECORD_IS_USED.
12659 (init_record_full_ops): Set the target's shortname to
12660 record_full_shortname.
12661 (init_record_full_core_ops): Set the target's shortname to
12662 record_full_core_shortname.
12663 * record-full.h (record_full_is_used): Declare.
12664 * record.c (find_record_target): Make extern.
12665 (record_preopen): New function.
12666 * record.h (RECORD_IS_USED): Delete macro.
12667 (find_record_target, record_preopen): Declare functions.
12668
12669 2014-01-14 Yao Qi <yao@codesourcery.com>
12670
12671 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12672 'len''s type to ULONGEST.
12673 (core_xfer_shared_libraries_aix): Likewise.
12674 * gdbarch.c, gdbarch.h: Regenerated.
12675 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12676 Change type of 'len' to ULONGEST.
12677 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12678 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12679
12680 2014-01-14 Yao Qi <yao@codesourcery.com>
12681
12682 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12683 type of 'len' to ULONGEST.
12684 (linux_xfer_osdata_processgroups): Likewise.
12685 (linux_xfer_osdata_threads): Likewise.
12686 (linux_xfer_osdata_fds): Likewise.
12687 (linux_xfer_osdata_isockets): Likewise.
12688 (linux_xfer_osdata_shm): Likewise.
12689 (linux_xfer_osdata_sem): Likewise.
12690 (linux_xfer_osdata_msg): Likewise.
12691 (linux_common_xfer_osdata): Likewise.
12692 (struct osdata_type) <getter>: Likewise.
12693 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12694 the declaration.
12695
12696 2014-01-14 Yao Qi <yao@codesourcery.com>
12697
12698 * target.h (target_xfer_partial_ftype): Update.
12699 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12700 ULONGEST.
12701 * aix-thread.c (aix_thread_xfer_partial): Change type of
12702 argument 'len' to ULONGEST.
12703 * auxv.c (procfs_xfer_auxv): Likewise.
12704 (ld_so_xfer_auxv): Likewise.
12705 (memory_xfer_auxv): Likewise.
12706 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12707 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12708 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12709 * corelow.c (core_xfer_partial): Likewise.
12710 * ctf.c (ctf_xfer_partial): Likewise.
12711 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12712 '%u'.
12713 (darwin_read_dyld_info): Likewise.
12714 (darwin_xfer_partial): Likewise.
12715 * exec.c (section_table_xfer_memory_partial): Likewise.
12716 (exec_xfer_partial): Likewise.
12717 * exec.h (section_table_xfer_memory_partial): Update
12718 declaration.
12719 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12720 instead of plongest.
12721 (gnu_xfer_partial): Likewise.
12722 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12723 (ia64_hpux_xfer_solib_got): Likewise.
12724 (ia64_hpux_xfer_partial): Likewise.
12725 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12726 * inf-ptrace.c (inf_ptrace_xfer_partial):
12727 * inf-ttrace.c (inf_ttrace_xfer_partial):
12728 * linux-nat.c (linux_xfer_siginfo): Likewise.
12729 (linux_nat_xfer_partial): Likewise.
12730 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12731 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12732 * monitor.c (monitor_xfer_memory): Likewise.
12733 (monitor_xfer_partial): Likewise.
12734 * procfs.c (procfs_xfer_partial): Likewise.
12735 * record-full.c (record_full_xfer_partial): Likewise.
12736 (record_full_core_xfer_partial): Likewise.
12737 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12738 instead of plongest.
12739 (gdbsim_xfer_partial): Likewise.
12740 * remote.c (remote_xfer_partial): Likewise.
12741 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12742 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12743 declaration.
12744 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12745 (rs6000_xfer_shared_libraries): Likewise.
12746 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12747 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12748 (sparc_xfer_partial): Likewise.
12749 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12750 (spu_xfer_partial): Likewise.
12751 * spu-multiarch.c (spu_xfer_partial): Likewise.
12752 * target.c (target_read_live_memory): Likewise.
12753 (memory_xfer_live_readonly_partial): Likewise.
12754 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12755 (target_xfer_partial, default_xfer_partial): Likewise.
12756 (current_xfer_partial): Likewise.
12757 * tracepoint.c (tfile_xfer_partial): Likewise.
12758 * windows-nat.c (windows_xfer_memory): Likewise. Call
12759 pulongest instead of plongest.
12760 (windows_xfer_partial): Likewise.
12761 (windows_xfer_shared_libraries): Likewise.
12762
12763 2014-01-14 Yao Qi <yao@codesourcery.com>
12764
12765 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12766 target_xfer_partial_ftype.
12767
12768 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12769
12770 PR python/15464
12771 PR python/16113
12772 * valops.c (value_struct_elt_bitpos): New function
12773 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12774 object to 'None' if the field name is an empty string ("").
12775 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12776 attribute to look for a field when 'name' is 'None'.
12777 (get_field_type): New function
12778
12779 2014-01-13 Doug Evans <dje@google.com>
12780
12781 PR symtab/16426
12782 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12783 (try_open_dwop_file): Ditto.
12784 * gdb_bfd.c: #include "vec.h".
12785 (bfdp): New typedef.
12786 (struct gdb_bfd_data): New member included_bfds.
12787 (gdb_bfd_unref): Unref all included bfds.
12788 (gdb_bfd_record_inclusion): New function.
12789 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12790
12791 2014-01-13 Tom Tromey <tromey@redhat.com>
12792
12793 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12794
12795 2014-01-13 Tom Tromey <tromey@redhat.com>
12796
12797 * defs.h (use_windows): Remove.
12798 * gdb.c (main): Update.
12799 * main.c (captured_main, gdb_main): Update.
12800 * main.h (struct captured_main_args) <use_windows>: Remove.
12801 * top.c (use_windows): Remove.
12802
12803 2014-01-13 Tom Tromey <tromey@redhat.com>
12804
12805 * defs.h (deprecated_flush_hook): Remove.
12806
12807 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12808
12809 PR threads/16216
12810 * linux-thread-db.c (try_thread_db_load): Add parameter
12811 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12812 (try_thread_db_load_from_pdir_1): Move it there from here.
12813 (try_thread_db_load_from_sdir): Update caller.
12814 (try_thread_db_load_from_dir): Move it there from here.
12815
12816 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12817
12818 * regformats/regdat.sh: Always rewrite the register file.
12819
12820 2014-01-13 Pedro Alves <palves@redhat.com>
12821
12822 * Makefile.in (CHECK_HEADERS): New variable.
12823 (check-headers:): New rule.
12824
12825 2014-01-13 Tom Tromey <tromey@redhat.com>
12826
12827 * cli/cli-setshow.c (do_set_command): Update.
12828 * defs.h (deprecated_set_hook): Remove.
12829 * top.c (deprecated_set_hook): Remove.
12830
12831 2014-01-13 Pedro Alves <palves@redhat.com>
12832
12833 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12834 the tracepoint if the PC is a pseudo-register.
12835
12836 2014-01-13 Tom Tromey <tromey@redhat.com>
12837
12838 * defs.h (XCALLOC): Remove.
12839 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12840 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12841 * dwarf2loc.c (allocate_piece_closure): Likewise.
12842 * elfread.c (elf_symfile_segments): Likewise.
12843 (elf_symfile_segments): Likewise.
12844 * gdbtypes.c (copy_type_recursive): Likewise.
12845 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12846 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12847 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12848 XCALLOC.
12849 * mt-tdep.c (mt_gdbarch_init): Likewise.
12850 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12851 XCALLOC.
12852 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12853 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12854 * registry.c (registry_alloc_data): Likewise.
12855 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12856 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12857 * serial.c (serial_fdopen_ops): Likewise.
12858 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12859 XCALLOC.
12860 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12861 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12862 not XCALLOC.
12863
12864 2014-01-13 Tom Tromey <tromey@redhat.com>
12865
12866 * defs.h (XMALLOC): Remove.
12867 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12868 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12869 * cli-out.c (struct ui_out *): Likewise.
12870 * cli/cli-dump.c (add_dump_command): Likewise.
12871 (add_dump_command): Likewise.
12872 * complaints.c (get_complaints): Likewise.
12873 (find_complaint): Likewise.
12874 * dwarf2-frame.c (execute_cfa_program): Likewise.
12875 * dwarf2read.c (abbrev_table_read_table): Likewise.
12876 * gdbarch.sh: Likewise.
12877 * gdbarch.c: Rebuild.
12878 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12879 * interps.c (interp_new): Likewise.
12880 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12881 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12882 * mi/mi-console.c (mi_console_file_new): Likewise.
12883 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12884 * mi/mi-out.c (mi_out_new): Likewise.
12885 * mi/mi-parse.c (mi_parse): Likewise.
12886 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12887 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12888 * observer.c (xalloc_observer_list_node): Likewise.
12889 * regcache.c (regcache_xmalloc_1): Likewise.
12890 * reggroups.c (reggroup_new): Likewise.
12891 (_initialize_reggroup): Likewise.
12892 * registry.c (register_data_with_cleanup): Likewise.
12893 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12894 * ser-base.c (serial_ttystate): Likewise.
12895 * ser-mingw.c (make_pipe_state): Likewise.
12896 * ser-pipe.c (pipe_open): Likewise.
12897 * serial.c (serial_open): Likewise.
12898 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12899 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12900 (tui_alloc_win_info): Likewise.
12901 (tui_add_content_elements): Likewise.
12902 * tui/tui-file.c (tui_file_new): Likewise.
12903 * tui/tui-out.c (tui_out_new): Likewise.
12904 * ui-file.c (mem_file_new): Likewise.
12905 * ui-out.c (push_level): Likewise.
12906 (make_cleanup_ui_out_end): Likewise.
12907 (append_header_to_list): Likewise.
12908 (ui_out_new): Likewise.
12909 * user-regs.c (user_reg_add_builtin): Likewise.
12910
12911 2014-01-13 Tom Tromey <tromey@redhat.com>
12912
12913 * defs.h (XZALLOC): Remove.
12914 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12915 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12916 (get_ada_tasks_inferior_data): Likewise.
12917 * auto-load.c (get_auto_load_pspace_data): Likewise.
12918 * auxv.c (get_auxv_inferior_data): Likewise.
12919 * bfd-target.c (target_bfd_reopen): Likewise.
12920 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12921 (deprecated_insert_raw_breakpoint): Likewise.
12922 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12923 * corelow.c (core_open): Likewise.
12924 * darwin-nat.c (darwin_check_new_threads): Likewise.
12925 (darwin_attach_pid): Likewise.
12926 * dummy-frame.c (dummy_frame_push): Likewise.
12927 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12928 * dwarf2loc.c (allocate_piece_closure): Likewise.
12929 * elfread.c (elf_symfile_segments): Likewise.
12930 * eval.c (ptrmath_type_p): Likewise.
12931 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12932 * gdbtypes.c (alloc_type_arch): Likewise.
12933 (alloc_type_instance): Likewise.
12934 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12935 * inf-child.c (inf_child_can_use_agent): Likewise.
12936 * inflow.c (get_inflow_inferior_data): Likewise.
12937 * infrun.c (save_infcall_suspend_state): Likewise.
12938 * jit.c (jit_reader_load): Likewise.
12939 (get_jit_objfile_data): Likewise.
12940 (get_jit_program_space_data): Likewise.
12941 (jit_object_open_impl): Likewise.
12942 (jit_symtab_open_impl): Likewise.
12943 (jit_block_open_impl): Likewise.
12944 (jit_frame_sniffer): Likewise.
12945 * linux-fork.c (add_fork): Likewise.
12946 * maint.c (make_command_stats_cleanup): Likewise.
12947 * objfiles.c (get_objfile_pspace_data): Likewise.
12948 * opencl-lang.c (struct lval_closure): Likewise.
12949 * osdata.c (osdata_start_osdata): Likewise.
12950 * progspace.c (new_address_space): Likewise.
12951 (add_program_space): Likewise.
12952 * remote-sim.c (get_sim_inferior_data): Likewise.
12953 * sh-tdep.c (sh_gdbarch_init): Likewise.
12954 * skip.c (Ignore): Likewise.
12955 (skip_delete_command): Likewise.
12956 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12957 (library_list_start_library): Likewise.
12958 (solib_aix_current_sos): Likewise.
12959 * solib-darwin.c (get_darwin_info): Likewise.
12960 (darwin_current_sos): Likewise.
12961 * solib-dsbt.c (get_dsbt_info): Likewise.
12962 * solib-ia64-hpux.c (new_so_list): Likewise.
12963 (ia64_hpux_get_solib_linkage_addr): Likewise.
12964 * solib-spu.c (append_ocl_sos): Likewise.
12965 (spu_current_sos): Likewise.
12966 * solib-svr4.c (get_svr4_info): Likewise.
12967 (svr4_keep_data_in_core): Likewise.
12968 (library_list_start_library): Likewise.
12969 (svr4_default_sos): Likewise.
12970 (svr4_read_so_list): Likewise.
12971 * solib-target.c (library_list_start_library): Likewise.
12972 (solib_target_current_sos): Likewise.
12973 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12974 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12975 * symfile.c (default_symfile_segments): Likewise.
12976 * target-descriptions.c (tdesc_data_init): Likewise.
12977 (tdesc_create_reg): Likewise.
12978 (struct tdesc_type *): Likewise.
12979 (tdesc_create_vector): Likewise.
12980 (tdesc_set_struct_size): Likewise.
12981 (struct tdesc_type *): Likewise.
12982 (tdesc_free_feature): Likewise.
12983 (tdesc_create_feature): Likewise.
12984 * windows-nat.c (windows_add_thread): Likewise.
12985 (windows_make_so): Likewise.
12986 * xml-support.c (gdb_xml_body_text): Likewise.
12987 (gdb_xml_create_parser_and_cleanup): Likewise.
12988 (xml_process_xincludes): Likewise.
12989 * xml-syscall.c (allocate_syscalls_info): Likewise.
12990 (syscall_create_syscall_desc): Likewise.
12991
12992 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12993
12994 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12995 function, with code from i386_stap_parse_special_token.
12996 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12997 (i386_stap_parse_special_token): Move code to the two functions
12998 above; simplify it.
12999
13000 2014-01-09 Pedro Alves <palves@redhat.com>
13001 Hui Zhu <hui@codesourcery.com>
13002
13003 PR gdb/16101
13004 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13005 bp_err_string. Don't mark the location shlib_disabled if the
13006 error thrown wasn't a generic or memory error. Catch errors
13007 thrown while inserting breakpoints in overlayed code. Output
13008 error message of software breakpoints.
13009 * remote.c (remote_insert_breakpoint): If this breakpoint has
13010 target-side commands but this stub doesn't support Z0 packets,
13011 throw NOT_SUPPORTED_ERROR error.
13012 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13013 * target.h (target_insert_breakpoint): Extend comment.
13014 (target_insert_hw_breakpoint): Add comment.
13015
13016 2014-01-08 Pedro Alves <palves@redhat.com>
13017
13018 * remote.c (remote_add_thread): Add threads silently if starting
13019 up.
13020 (remote_notice_new_inferior): If in all-stop, and starting up,
13021 don't call notice_new_inferior.
13022 (get_current_thread): New function, factored out from ...
13023 (add_current_inferior_and_thread): ... this. Adjust.
13024 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13025 found any thread, then select the remote's current thread as GDB's
13026 current thread too.
13027
13028 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13029
13030 * NEWS: Create a new section for the next release branch.
13031 Rename the section of the current branch, now that it has
13032 been cut.
13033
13034 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13035
13036 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13037 * version.in: Bump version to 7.7.50.DATE-cvs.
13038
13039 2014-01-08 Yao Qi <yao@codesourcery.com>
13040
13041 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13042 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13043 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13044
13045 2014-01-08 Yao Qi <yao@codesourcery.com>
13046
13047 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13048 return value of bfd_get_filename to symbol_file_add_from_bfd.
13049
13050 2014-01-08 Pierre Muller <muller@sourceware.org>
13051
13052 Fix PR16201.
13053 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13054 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13055 to prim_record_mininal_symbol_and_info.
13056 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13057 in call to prim_record_minimal_symbol_and_info.
13058 (read_pe_exported_syms): Set index field of section_data.
13059
13060 2014-01-07 Andrew Pinski <apinski@cavium.com>
13061
13062 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13063 * features/aarch64.c: Regenerate.
13064
13065 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13066
13067 * target.c (return_null): Define.
13068 (update_current_target): Use it instead of return_zero for
13069 functions that return a pointer.
13070
13071 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13072
13073 * source.c (add_path): Fix check for duplicated paths in the previously
13074 included paths.
13075
13076 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13077
13078 * ada-lang.c: Remove duplicated include statements.
13079 * alphabsd-nat.c: Ditto.
13080 * amd64-darwin-tdep.c: Ditto.
13081 * amd64fbsd-nat.c: Ditto.
13082 * auto-load.c: Ditto.
13083 * ax-gdb.c: Ditto.
13084 * breakpoint.c: Ditto.
13085 * dbxread.c: Ditto.
13086 * fork-child.c: Ditto.
13087 * gdb_usleep.c: Ditto.
13088 * i386-darwin-tdep.c: Ditto.
13089 * i386fbsd-nat.c: Ditto.
13090 * infcmd.c: Ditto.
13091 * inferior.c: Ditto.
13092 * jv-lang.c: Ditto.
13093 * linux-nat.c: Ditto.
13094 * linux-tdep.c: Ditto.
13095 * m68kbsd-nat.c: Ditto.
13096 * m68klinux-nat.c: Ditto.
13097 * microblaze-tdep.c: Ditto.
13098 * mips-linux-tdep.c: Ditto.
13099 * mn10300-tdep.c: Ditto.
13100 * nto-tdep.c: Ditto.
13101 * opencl-lang.c: Ditto.
13102 * osdata.c: Ditto.
13103 * printcmd.c: Ditto.
13104 * regcache.c: Ditto.
13105 * remote-m32r-sdi.c: Ditto.
13106 * remote.c: Ditto.
13107 * symfile.c: Ditto.
13108 * symtab.c: Ditto.
13109 * tilegx-linux-nat.c: Ditto.
13110 * tilegx-tdep.c: Ditto.
13111 * tracepoint.c: Ditto.
13112 * valops.c: Ditto.
13113 * vaxbsd-nat.c: Ditto.
13114 * windows-nat.c: Ditto.
13115 * xtensa-tdep.c: Ditto.
13116
13117 2014-01-07 Yao Qi <yao@codesourcery.com>
13118
13119 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13120
13121 2014-01-07 Yao Qi <yao@codesourcery.com>
13122 Joel Brobecker <brobecker@adacore.com>
13123
13124 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13125 (pdc_write_regs): Likewise.
13126 (fetch_regs_kernel_thread): Likewise.
13127 (store_regs_kernel_thread): Likewise.
13128
13129 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13130
13131 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13132 tagged type objects to their actual type.
13133
13134 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13135
13136 * ada-valprint.c (print_field_values): Add "language" parameter.
13137 Update calls to print_field_values and print_variant_part.
13138 Pass new parameter "language" in call to val_print instead
13139 of "current_language". Replace call to ada_val_print by call
13140 to val_print.
13141 (print_variant_part): Add "language" parameter.
13142 (ada_val_print_struct_union): Update call to print_field_values.
13143
13144 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13145
13146 * ada-valprint.c (ui_memcpy): Delete.
13147 (ada_print_floating): Update documentation. Add empty line
13148 between between function documentation and implementation.
13149 Delete variable "buffer". Use ui_file_xstrdup in place of
13150 ui_file_put. Minor adjustments following this change.
13151
13152 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13153
13154 * ada-valprint.c (ada_val_print_string): New function,
13155 extracted from ada_val_print_array.
13156 (ada_val_print_array): Replace extracted code by call
13157 to ada_val_print_string followed by a return. Move
13158 "else" branch to the function's top block.
13159
13160 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13161
13162 * ada-valprint.c (ada_val_print_array): Move implementation
13163 down. Rename parameter "offset" and "val" into "offset_aligned"
13164 and "original_value" respectively. Add parameter "offset".
13165
13166 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13167
13168 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13169 re-organizing the code. Change the "???" message printed
13170 when target type is a TYPE_CODE_UNDEF into
13171 "<ref to undefined type>".
13172
13173 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13174
13175 * ada-valprint.c (print_record): Delete, implementation inlined...
13176 (ada_val_print_struct_union): ... here. Remove call to
13177 ada_check_typedef in inlined implementation.
13178
13179 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13180
13181 * ada-valprint.c (ada_val_print_gnat_array): New function,
13182 extracted from ada_val_print_1;
13183 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13184 (ada_val_print_flt, ada_val_print_struct_union)
13185 (ada_val_print_ref): Likewise.
13186 (ada_val_print_1): Delete variables i and elttype.
13187 Replace extracted-out code by call to corresponding
13188 new functions.
13189
13190 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13191
13192 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13193
13194 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13195
13196 * ada-valprint.c (ada_val_print_1): Replace calls to
13197 ada_val_print_1 by calls to val_print.
13198
13199 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13200
13201 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13202 Update calls to self accordingly. Replace calls to c_val_print
13203 by calls to val_print.
13204
13205 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13206
13207 * ada-valprint.c (print_record): Delete declaration.
13208 (adjust_type_signedness, ada_val_print_1): Likewise.
13209 (ada_val_print): Move function implementation down.
13210 (print_variant_part, print_field_values, print_record):
13211 Move function implementation up.
13212
13213 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13214
13215 * python/py-type.c (typy_get_name): New function.
13216 (type_object_getset): Add entry for attribute "name".
13217 * NEWS: Add entry mentioning this new attribute.
13218
13219 2014-01-07 Yao Qi <yao@codesourcery.com>
13220
13221 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13222 statement.
13223
13224 2014-01-07 Yao Qi <yao@codesourcery.com>
13225
13226 * gnu-nat.c (info_port_rights): Add qualifier const to
13227 argument args.
13228
13229 2014-01-07 Yao Qi <yao@codesourcery.com>
13230
13231 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13232
13233 2014-01-07 Yao Qi <yao@codesourcery.com>
13234
13235 * gnu-nat.c (make_inf) Update declaration.
13236 (make_inf): Make it static.
13237 (inf_set_traced): Likewise.
13238 (inf_port_to_thread, inf_task_died_status): Likewise.
13239
13240 2014-01-07 Yao Qi <yao@codesourcery.com>
13241
13242 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13243
13244 2014-01-07 Yao Qi <yao@codesourcery.com>
13245
13246 * gnu-nat.c (_initialize_gnu_nat): Declare.
13247
13248 2014-01-07 Yao Qi <yao@codesourcery.com>
13249
13250 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13251 'enum bfd_endian'.
13252 (struct gdbarch_info) <byte_order>: Change type to
13253 'enum bfd_endian'.
13254 <byte_order_for_code>: Likewise.
13255 * gdbarch.c, gdbarch.h: Regenerated.
13256
13257 2014-01-06 Sasha Smundak <asmundak@google.com>
13258
13259 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13260
13261 2014-01-06 Tom Tromey <tromey@redhat.com>
13262
13263 * doublest.c (convert_doublest_to_floatformat): Use const, not
13264 CONST.
13265 * somread.c (som_symtab_read): Likewise.
13266
13267 2014-01-07 Hui Zhu <hui@codesourcery.com>
13268
13269 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13270 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13271 (gdb_bfd_fopen): Ditto.
13272 (gdb_bfd_openr): Ditto.
13273 (gdb_bfd_openw): Ditto.
13274 (gdb_bfd_openr_iovec): Ditto.
13275 (gdb_bfd_fdopenr): Ditto.
13276 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13277 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13278 with xstrdup.
13279 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13280 with xstrdup.
13281 * symfile-mem.c (symbol_file_add_from_memory): Removed
13282 gdb_bfd_stash_filename.
13283
13284 2014-01-03 Doug Evans <dje@google.com>
13285
13286 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13287 output.
13288
13289 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13290
13291 Update year range in copyright notice of all files.
13292
13293 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13294
13295 * top.c (print_gdb_version): Set copyright year to 2014.
13296
13297 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13298
13299 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13300
13301 For older changes see ChangeLog-2013.
13302 \f
13303 Local Variables:
13304 mode: change-log
13305 left-margin: 8
13306 fill-column: 74
13307 version-control: never
13308 coding: utf-8
13309 End:
This page took 0.296823 seconds and 5 git commands to generate.