FRV: 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 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
4 (frv_linux_iterate_over_regset_sections): New.
5 (frv_linux_init_abi): Adjust gdbarch initialization.
6
7 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
8
9 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
10 (armbsd_iterate_over_regset_sections): New prototype.
11 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
12 (armbsd_iterate_over_regset_sections): New.
13 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
14 initialization.
15
16 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
17
18 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
19 (alpha_linux_iterate_over_regset_sections): New.
20 (alpha_linux_init_abi): Adjust gdbarch initialization.
21 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
22 prototype.
23 (alphanbsd_iterate_over_regset_sections): New prototype.
24
25 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
26
27 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
28 Remove.
29 (aarch64_linux_iterate_over_regset_sections): New.
30 (aarch64_linux_init_abi): Adjust gdbarch initialization.
31
32 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
33
34 * fbsd-tdep.c: New file.
35 * fbsd-tdep.h: New file.
36 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
37 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
38 (ALLDEPFILES): Add fbsd-tdep.c.
39
40 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
41
42 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
43 parameter.
44 * gdbarch.h: Regenerate.
45 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
46 iterator.
47 (get_core_register_section): Add parameter 'regset' and use it, if
48 set. Add parameter 'min_size' and verify the bfd section size
49 against it.
50 (get_core_registers_cb): Add parameter 'regset' and pass it to
51 get_core_register section. For the "standard" register sections
52 ".reg" and ".reg2", set an appropriate default for human_name.
53 (get_core_registers): Don't abort when the gdbarch has an iterator
54 but no regset_from_core_section. Add NULL/0 for parameters
55 'regset'/'min_size' in calls to get_core_register_section.
56 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
57 'regset' and use it instead of calling the
58 regset_from_core_section gdbarch method.
59 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
60 * i386-tdep.c (i386_supply_xstateregset)
61 (i386_collect_xstateregset, i386_xstateregset): Moved to
62 i386-linux-tdep.c.
63 (i386_regset_from_core_section): Drop handling for .reg-xfp and
64 .reg-xstate.
65 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
66 core file support only if the regset iterator hasn't been set.
67 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
68 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
69 Moved from i386-tdep.c and renamed to *_linux*.
70 (i386_linux_iterate_over_regset_sections): Add regset parameter to
71 each callback invocation. Allow any .reg-xstate size when reading
72 from a core file.
73 * amd64-tdep.c (amd64_supply_xstateregset)
74 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
75 amd64-linux-tdep.c.
76 (amd64_regset_from_core_section): Remove.
77 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
78 install an amd64-specific regset_from_core_section gdbarch method.
79 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
80 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
81 Moved from amd64-tdep.c and renamed to *_linux*.
82 (amd64_linux_iterate_over_regset_sections): Add regset parameter
83 to each callback invocation. Allow any .reg-xstate size when
84 reading from a core file.
85 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
86 (arm_linux_iterate_over_regset_sections): Add regset parameter to
87 each callback invocation.
88 (arm_linux_init_abi): No longer set the regset_from_core_section
89 gdbarch method.
90 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
91 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
92 each callback invocation.
93 (ppc_linux_init_abi): No longer set the regset_from_core_section
94 gdbarch method.
95 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
96 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
97 (s390_regset_from_core_section): Remove.
98 (s390_iterate_over_regset_sections): Add regset parameter to each
99 callback invocation.
100 (s390_gdbarch_init): No longer set the regset_from_core_section
101 gdbarch method. Drop initialization of deleted tdep fields.
102
103 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
104
105 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
106 (amd64_linux_iterate_over_regset_sections): New.
107 (amd64_linux_init_abi_common): Don't install the regset section
108 list, but the new iterator in gdbarch.
109 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
110 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
111 (arm_linux_iterate_over_regset_sections): ...here. New function.
112 (arm_linux_init_abi): Set iterator instead of section list.
113 * corelow.c (get_core_registers_cb): New function, logic moved
114 from...
115 (get_core_registers): ...loop body here. Use new iterator method
116 instead of walking through the regset section list.
117 * gdbarch.sh: Remove 'core_regset_sections'. New method
118 'iterate_over_regset_sections'. New typedef
119 'iterate_over_regset_sections_cb'.
120 * gdbarch.c: Regenerate.
121 * gdbarch.h: Likewise.
122 * i386-linux-tdep.c (i386_linux_regset_sections)
123 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
124 Remove.
125 (i386_linux_iterate_over_regset_sections): New.
126 (i386_linux_init_abi): Don't choose a regset section list, but
127 install new iterator in gdbarch.
128 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
129 (linux_collect_regset_section_cb): New function, logic moved
130 from...
131 (linux_collect_thread_registers): ...loop body here. Use iterator
132 method instead of walking through list.
133 (linux_make_corefile_notes_1): Check for presence of iterator
134 method instead of regset section list.
135 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
136 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
137 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
138 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
139 (ppc_linux_iterate_over_regset_sections): ...here. New function.
140 (ppc_linux_init_abi): Don't choose from above regset section
141 lists, but install new iterator in gdbarch.
142 * regset.h (struct core_regset_section): Remove.
143 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
144 have_linux_v1, have_linux_v2, and have_tdb.
145 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
146 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
147 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
148 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
149 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
150 (s390_iterate_over_regset_sections): ...here. New function. Use
151 new tdep fields.
152 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
153 regset section lists, but install new iterator.
154
155 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
156
157 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
158
159 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
160
161 * progspace.c (print_program_space): Don't prune program spaces
162 before printing them.
163
164 2014-09-25 Pedro Alves <palves@redhat.com>
165
166 * infrun.c (user_visible_resume_ptid): Don't check
167 singlestep_breakpoints_inserted_p.
168
169 2014-09-25 Pedro Alves <palves@redhat.com>
170
171 * breakpoint.c (should_be_inserted): Add debug output.
172
173 2014-09-25 Pedro Alves <palves@redhat.com>
174
175 * infrun.c (stepping_past_instruction_at)
176 (clear_exit_convenience_vars): Point at infrun.h instead of
177 inferior.h.
178 (handle_signal_stop): Fix typo.
179
180 2014-09-24 Yao Qi <yao@codesourcery.com>
181
182 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
183 bitmask.
184
185 2014-09-22 Gary Benson <gbenson@redhat.com>
186
187 * target.c (target_stop): Updated comment.
188
189 2014-09-22 Gary Benson <gbenson@redhat.com>
190
191 * target/target.h (target_stop_ptid): Renamed as...
192 (target_stop_and_wait): New function. Updated comment.
193 All uses updated.
194 (target_continue_ptid): Renamed as...
195 (target_continue_no_signal): New function. Updated comment.
196 All uses updated.
197
198 2014-09-22 Pedro Alves <palves@redhat.com>
199
200 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
201 and "auto" merged.
202 * breakpoint.c (enum ugll_insert_mode): New enum.
203 (always_inserted_mode): Now a plain boolean.
204 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
205 (breakpoints_always_inserted_mode): Delete.
206 (breakpoints_should_be_inserted_now): New function.
207 (insert_breakpoints): Pass UGLL_INSERT to
208 update_global_location_list instead of calling
209 insert_breakpoint_locations manually.
210 (create_solib_event_breakpoint_1): New, factored out from ...
211 (create_solib_event_breakpoint): ... this.
212 (create_and_insert_solib_event_breakpoint): Use
213 create_solib_event_breakpoint_1 instead of calling
214 insert_breakpoint_locations manually.
215 (update_global_location_list): Change parameter type from boolean
216 to enum ugll_insert_mode. All callers adjusted. Adjust to use
217 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
218 (update_global_location_list_nothrow): Change parameter type from
219 boolean to enum ugll_insert_mode.
220 (_initialize_breakpoint): "breakpoint always-inserted" option is
221 now a boolean command. Update help text.
222 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
223 (breakpoints_should_be_inserted_now): New declaration.
224 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
225 Remove breakpoints_always_inserted_mode check.
226 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
227 * remote.c (remote_start_remote): Likewise.
228
229 2014-09-22 Pedro Alves <palves@redhat.com>
230
231 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
232 (insert_breakpoints): Don't call insert_breakpoint_locations here.
233 Instead, pass UGLL_INSERT to update_global_location_list.
234 (update_global_location_list): Change parameter type from boolean
235 to enum ugll_insert_mode. All callers adjusted. Adjust to use
236 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
237 (create_solib_event_breakpoint_1): New, factored out from ...
238 (create_solib_event_breakpoint): ... this.
239 (create_and_insert_solib_event_breakpoint): Use
240 create_solib_event_breakpoint_1 instead of calling
241 insert_breakpoint_locations manually.
242 (update_global_location_list): Handle UGLL_INSERT.
243
244 2014-09-22 Pedro Alves <palves@redhat.com>
245
246 * breakpoint.c (enum ugll_insert_mode): New enum.
247 (update_global_location_list)
248 (update_global_location_list_nothrow): Change parameter type from
249 boolean to enum ugll_insert_mode. All callers adjusted.
250
251 2014-09-19 Joel Brobecker <brobecker@adacore.com>
252
253 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
254 SystemTap support in GDB.
255
256 2014-09-19 Don Breazeal <donb@codesourcery.com>
257
258 * linux-nat.c (linux_handle_extended_wait): Call
259 linux_ptrace_get_extended_event.
260 (wait_lwp): Call linux_is_extended_waitstatus.
261 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
262 and linux_is_extended_waitstatus.
263 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
264 linux_ptrace_get_extended_event.
265 (linux_ptrace_get_extended_event): New function.
266 (linux_is_extended_waitstatus): New function.
267 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
268 (linux_is_extended_waitstatus): New declarations.
269
270 2014-09-19 Yao Qi <yao@codesourcery.com>
271
272 * dwarf2read.c (dwarf_decode_lines): Update declaration.
273 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
274 comments. Callers update.
275 (dwarf_decode_lines): Likewise.
276 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
277 comments. Skip the line table if 'lowpc' is greater than
278 'address'. Don't check
279 dwarf2_per_objfile->has_section_at_zero.
280
281 2014-09-18 Doug Evans <dje@google.com>
282
283 * NEWS: Mention new "producer" attribute of gdb.Symtab.
284 * python/py-symtab.c (stpy_get_producer): New function.
285 (symtab_object_getset): Add "producer" attribute.
286
287 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
288
289 PR gdb/17384
290 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
291 (do_captured_read_memory_integer): Remove.
292 (safe_read_memory_integer): Use target_read_memory directly instead
293 of catching errors in do_captured_read_memory_integer.
294
295 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
296
297 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
298 not gdb/doc.
299
300 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
301
302 * objc-lang.c (find_implementation_from_class): Remove dead code.
303
304 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
305
306 PR cli/7233
307 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
308 "fprintf_unfiltered (gdb_stdlog...)".
309
310 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
311
312 PR breakpoints/12526
313 * breakpoint.h (struct watchpoint): New fields val_bitpos and
314 val_bitsize.
315 * breakpoint.c (watch_command_1): Use these fields to retain
316 bitfield information.
317 (extract_bitfield_from_watchpoint_value): New function.
318 (watchpoint_check): Use it.
319 (update_watchpoint): Use it. Optimize the address and length of a
320 HW watchpoint pointing to a bitfield.
321 * value.h (unpack_value_bitfield): New prototype.
322 * value.c (unpack_value_bitfield): Make extern.
323
324 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
325
326 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
327 x86-dregs.o.
328 * gnu-nat.c (inf_threads): New function.
329 * gnu-nat.h (inf_threads_ftype): New typedef.
330 (inf_threads): New declaration.
331 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
332 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
333 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
334 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
335 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
336 (i386_gnu_dr_get_control): New functions.
337 (reg_addr): New structure.
338 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
339 i386 debugging register hooks.
340 * NEWS: Mention this.
341
342 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
343
344 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
345 vector data transfer instructions.
346 (arm_record_coproc_data_proc): Updated.
347
348 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
349
350 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
351 arm_record_exreg_ld_st_insn.
352 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
353 load/store insns.
354
355 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
356
357 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
358 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
359 processing instructions.
360
361 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
362
363 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
364 for advance SIMD struct ld/st insn.
365 (thumb2_record_decode_insn_handler): Replace stub handler with
366 thumb2_record_asimd_struct_ld_st.
367
368 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
369
370 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
371 for asimd, vfp and coprocessor insns.
372 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
373 and coprocessor insns.
374 (thumb2_record_coproc_insn): New function.
375 (thumb2_record_decode_insn_handler): Update coprocessor insns record
376 handlers.
377 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
378 opcode 110 insns.
379
380 2014-09-13 Doug Evans <xdje42@gmail.com>
381
382 * NEWS: Mention new "queue-signal" command.
383 * infcmd.c (queue_signal_command): New function.
384 (_initialize_infcmd): Add new queue-signal command.
385
386 2014-09-13 Doug Evans <xdje42@gmail.com>
387
388 * linux-nat.c (wait_lwp): Add debugging printf.
389 (linux_nat_wait_1): Ditto.
390
391 2014-09-12 Pedro Alves <palves@redhat.com>
392
393 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
394 (create_and_insert_solib_event_breakpoint): New functions.
395 * breakpoint.h (create_and_insert_solib_event_breakpoint)
396 (remove_solib_event_breakpoints_at_next_stop): New declarations.
397 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
398 (remove_dbx_link_breakpoint): Delete function.
399 (insert_dbx_link_bpt_in_file): Use
400 create_and_insert_solib_event_breakpoint instead of
401 deprecated_insert_raw_breakpoint.
402 (procfs_wait): Don't check whether we hit __dbx_link here.
403 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
404 here.
405 * solib-irix.c (base_breakpoint): Delete global.
406 (disable_break): Delete function.
407 (enable_break): Use create_solib_event_breakpoint
408 instead of deprecated_insert_raw_breakpoint.
409 (irix_solib_handle_event): New function.
410 (irix_solib_create_inferior_hook): Don't run the target or disable
411 the mapping-complete breakpoint here.
412 (_initialize_irix_solib): Install irix_solib_handle_event as
413 so_ops->handle_event hook.
414
415 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
416 Ulrich Weigand  <uweigand@de.ibm.com>
417
418 PR tdep/17379
419 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
420 instead of read_memory_unsigned_integer.
421
422 2014-09-12 Gary Benson <gbenson@redhat.com>
423
424 * nat/linux-waitpid.c: Include common-defs.h.
425 [GDBSERVER]: Add FIXME comment.
426 [!GDBSERVER]: Don't include defs.h or signal.h.
427 (linux_debug) [!GDBSERVER]: Remove empty block.
428
429 2014-09-12 Gary Benson <gbenson@redhat.com>
430
431 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
432 Don't include defs.h or server.h.
433
434 2014-09-12 Gary Benson <gbenson@redhat.com>
435
436 * nat/linux-btrace.c: Include common-defs.h.
437 Don't include defs.h, server.h or gdbthread.h.
438 * nat/linux-btrace.h (struct target_ops): New forward declaration.
439
440 2014-09-12 Gary Benson <gbenson@redhat.com>
441
442 * common/agent.c: Include common-defs.h.
443 Don't include defs.h or server.h.
444 * common/buffer.c: Likewise.
445 * common/common-debug.c: Likewise.
446 * common/common-utils.c: Likewise.
447 * common/errors.c: Likewise.
448 * common/filestuff.c: Likewise.
449 * common/format.c: Likewise.
450 * common/gdb_vecs.c: Likewise.
451 * common/print-utils.c: Likewise.
452 * common/ptid.c: Likewise.
453 * common/rsp-low.c: Likewise.
454 * common/signals.c: Likewise.
455 * common/vec.c: Likewise.
456 * common/xml-utils.c: Likewise.
457 * nat/linux-osdata.c: Likewise.
458 * nat/linux-procfs.c: Likewise.
459 * nat/linux-ptrace.c: Likewise.
460 * nat/mips-linux-watch.c: Likewise.
461 * target/waitstatus.c: Likewise.
462
463 2014-09-12 Tom Tromey <tromey@redhat.com>
464 Gary Benson <gbenson@redhat.com>
465
466 * common/common-regcache.h: New file.
467 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
468 * regcache.h: Include common-regcache.h.
469 (regcache_read_pc): Don't declare.
470 * regcache.c (get_thread_regcache_for_ptid): New function.
471 * nat/linux-btrace.c: Don't include regcache.h.
472 Include common-regcache.h.
473 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
474
475 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
476
477 * regcache.h (struct regset): Declare.
478
479 2014-09-11 Pedro Alves <palves@redhat.com>
480
481 PR gdb/17347
482 * main.c: Include "infrun.h".
483 (catch_command_errors, catch_command_errors_const): Wait for the
484 foreground command to complete.
485 * top.c (maybe_wait_sync_command_done): New function, factored out
486 from ...
487 (maybe_wait_sync_command_done): ... here.
488 * top.h (maybe_wait_sync_command_done): New declaration.
489
490 2014-09-11 Tom Tromey <tromey@redhat.com>
491 Gary Benson <gbenson@redhat.com>
492
493 * common/symbol.h: New file.
494 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
495 * minsyms.c (find_minimal_symbol_address): New function.
496 * common/agent.c: Include common/symbol.h.
497 [!GDBSERVER]: Don't include objfiles.h.
498 (agent_look_up_symbols): Use find_minimal_symbol_address.
499
500 2014-09-11 Gary Benson <gbenson@redhat.com>
501
502 * target/target.h (target_stop_ptid, target_continue_ptid):
503 Declare.
504 * target.c (target_stop_ptid, target_continue_ptid): New
505 functions.
506 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
507 (agent_run_command): Always use target_stop_ptid and
508 target_continue_ptid.
509
510 2014-09-11 Tom Tromey <tromey@redhat.com>
511 Gary Benson <gbenson@redhat.com>
512
513 * target/target.h: New file.
514 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
515 * target.h: Include target/target.h.
516 (target_read_memory, target_write_memory): Don't declare.
517 * target.c (target_read_uint32): New function.
518 * common/agent.c: Include target/target.h.
519 [!GDBSERVER]: Don't include target.h.
520 (helper_thread_id): Type changed to uint32_t.
521 (agent_get_helper_thread_id): Use target_read_uint32.
522 (agent_run_command): Always use target_read_memory and
523 target_write_memory.
524 (agent_capability): Type changed to uint32_t.
525 (agent_capability_check): Use target_read_uint32.
526
527 2014-09-11 Gary Benson <gbenson@redhat.com>
528
529 * common/common-debug.h (show_debug_regs): Declare.
530 * common/common-debug.c (show_debug_regs): Define.
531 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
532 all uses with show_debug_regs. Replace all uses that considered
533 debug_hw_points as a multi-value integer with straight boolean
534 uses.
535 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
536 with show_debug_regs.
537 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
538 all uses with show_debug_regs.
539 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
540 uses with show_debug_regs.
541
542 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
543
544 * findvar.c (address_from_register): Handle targets requiring
545 a special conversion routine even for plain pointer types.
546
547 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
548
549 * rs6000-nat.c (exec_one_dummy_insn): Remove.
550 (store_register): Do not call exec_one_dummy_insn.
551
552 2014-09-10 Joel Brobecker <brobecker@adacore.com>
553
554 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
555 dereference it first. Use value_enclosing_type instead of
556 value_type.
557 (ada_array_length): Likewise.
558
559 2014-09-10 Joel Brobecker <brobecker@adacore.com>
560
561 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
562 Adjust function implementation and documentation accordingly.
563 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
564 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
565 Update call to ada_value_ptr_subscript.
566
567 2014-09-10 Joel Brobecker <brobecker@adacore.com>
568
569 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
570 instead of VAL's type.
571
572 2014-09-10 Joel Brobecker <brobecker@adacore.com>
573
574 * amd64-linux-nat.c: Add <sys/uio.h> #include.
575
576 2014-09-09 Doug Evans <xdje42@gmail.com>
577
578 PR guile/17367
579 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
580 last parameter to pkg-config, not first.
581 * configure.ac: Pass --with-guile provided pkg-config path to
582 GDB_GUILE_PROGRAM_NAMES.
583 * configure: Regenerate.
584
585 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
586
587 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
588 Bertazi".
589
590 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
591
592 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
593 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
594 the list of sections determining GDB_OSABI_IRIX.
595
596 2014-09-09 James Hogan <james.hogan@imgtec.com>
597
598 * MAINTAINERS (Write After Approval): Add "James Hogan".
599
600 2014-09-09 James Hogan <james.hogan@imgtec.com>
601
602 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
603
604 2014-09-09 Joel Brobecker <brobecker@adacore.com>
605
606 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
607
608 2014-09-08 Doug Evans <xdje42@gmail.com>
609
610 PR 17247
611 * guile.c: #include <signal.h>.
612 (_initialize_guile): Block SIGCHLD while initializing Guile.
613
614 Replaces the following, which is reverted.
615
616 2014-07-26 Doug Evans <xdje42@gmail.com>
617
618 PR 17185
619 * configure.ac: Add check for header gc/gc.h.
620 Add check for function setenv.
621 * configure: Regenerate.
622 * config.in: Regenerate.
623 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
624
625 2014-09-08 Doug Evans <xdje42@gmail.com>
626
627 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
628 with named constant. Fix style of pointer comparison.
629 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
630
631 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
632
633 PR gdb/17035
634 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
635 decide whether we display the command on "show user".
636 * cli/cli-script.c (show_user_1): Only verify cmdlines after
637 printing command name.
638 * cli/cli-decode.h (cli_user_command_p): Declare new function.
639 * cli/cli-decode.c (cli_user_command_p): Create helper function
640 to verify whether cmd_list_element is a user-defined command.
641
642 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
643
644 PR python/17355
645 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
646 Fix goto out of TRY_CATCH.
647
648 2014-09-06 Doug Evans <xdje42@gmail.com>
649 Tom Tromey <tromey@redhat.com>
650
651 PR 15276
652 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
653 $_any_caller_matches.
654 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
655 * python/lib/gdb/function/caller_is.py: New file.
656
657 2014-09-06 Doug Evans <xdje42@gmail.com>
658
659 * infcmd.c (program_info): Fix typo.
660
661 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
662
663 PR gdb/17235
664 * stap-probe.c (stap_parse_single_operand): Delete unused variable
665 'number'. New variable 'has_digit'. Rewrite code to deal with
666 subexpressions on SDT probes.
667
668 2014-09-04 Pedro Alves <palves@redhat.com>
669
670 * c-exp.y (parse_number): Skip handling base-switching prefixes if
671 the input is only one character long.
672
673 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
674
675 PR fortran/17237
676 * f-valprint.c (f_val_print): Specify the correct print option to
677 use when printing integer values.
678
679 2014-09-04 Gary Benson <gbenson@redhat.com>
680
681 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
682 Remove code to cope with LWPs wrapped as PIDs.
683 Add assertions to ensure no wrapped LWPs are passed.
684
685 2014-09-04 Pedro Alves <palves@redhat.com>
686
687 * value.c (value_ranges_copy_adjusted): New function, factored out
688 from ...
689 (value_contents_copy_raw): ... here.
690 (unpack_value_bits_as_long_1): Rename back to ...
691 (unpack_bits_as_long): ... this. Remove 'original_value' and
692 'result' parameters. Change return type to LONGEST.
693 (unpack_value_bits_as_long): Delete.
694 (unpack_value_field_as_long_1): Delete.
695 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
696 (unpack_value_bitfield): New function.
697 (value_field_bitfield): Reimplement using unpack_value_bitfield.
698 (value_fetch_lazy): Use unpack_value_bitfield.
699 * value.h (unpack_value_bits_as_long): Delete declaration.
700
701 2014-09-03 Sasha Smundak <asmundak@google.com>
702
703 * python/py-frame.c (frapy_read_register): New function.
704
705 2014-09-03 James Hogan <james.hogan@imgtec.com>
706
707 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
708 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
709
710 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
711
712 PR python/16699
713 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
714 function.
715 (add_cmd): Set "completer_handle_brkchars" to NULL.
716 * cli/cli-decode.h (struct cmd_list_element)
717 <completer_handle_brkchars>: New field.
718 * command.h (completer_ftype_void): New typedef.
719 (set_cmd_completer_handle_brkchars): New prototype.
720 * completer.c (set_gdb_completion_word_break_characters): New
721 function.
722 (complete_line_internal): Call "completer_handle_brkchars"
723 callback from command.
724 * completer.h: Include "command.h".
725 (set_gdb_completion_word_break_characters): New prototype.
726 * python/py-cmd.c (cmdpy_completer_helper): New function.
727 (cmdpy_completer_handle_brkchars): New function.
728 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
729 (cmdpy_init): Set completer_handle_brkchars to
730 cmdpy_completer_handle_brkchars.
731
732 2014-09-03 Gary Benson <gbenson@redhat.com>
733
734 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
735 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
736 Loop conditions changed to equivalent form.
737 (struct x86_debug_reg_state): Updated dr_ref_count comment.
738 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
739 ALL_DEBUG_ADDRESS_REGISTERS.
740
741 2014-09-03 Joel Brobecker <brobecker@adacore.com>
742
743 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
744 description fix.
745
746 2014-09-02 Doug Evans <dje@google.com>
747
748 * typeprint.c (find_global_typedef): Fix comment.
749
750 2014-09-02 Gary Benson <gbenson@redhat.com>
751
752 * i386-nat.h: Renamed as...
753 * x86-nat.h: New file. All type, function and variable name
754 prefixes changed from "i386_" to "x86_". All references updated.
755 * i386-nat.c: Renamed as...
756 * x86-nat.c: New file. All type, function and variable name
757 prefixes changed from "i386_" to "x86_". All references updated.
758 * common/i386-xstate.h: Renamed as...
759 * common/x86-xstate.h: New file. All type, function and variable
760 name prefixes changed from "i386_" to "x86_". All references
761 updated.
762 * nat/i386-cpuid.h: Renamed as...
763 * nat/x86-cpuid.h: New file. All type, function and variable name
764 prefixes changed from "i386_" to "x86_". All references updated.
765 * nat/i386-gcc-cpuid.h: Renamed as...
766 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
767 name prefixes changed from "i386_" to "x86_". All references
768 updated.
769 * nat/i386-dregs.h: Renamed as...
770 * nat/x86-dregs.h: New file. All type, function and variable name
771 prefixes changed from "i386_" to "x86_". All references updated.
772 * nat/i386-dregs.c: Renamed as...
773 * nat/x86-dregs.c: New file. All type, function and variable name
774 prefixes changed from "i386_" to "x86_". All references updated.
775
776 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
777
778 * varobj.c (_initialize_varobj): Move to the end of file.
779
780 2014-08-29 Gary Benson <gbenson@redhat.com>
781
782 * common/common-exceptions.h: New file.
783 * common/common-exceptions.c: Likewise.
784 * Makefile.in (SFILES): Add common/common-exceptions.c.
785 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
786 (COMMON_OBS): Add common-exceptions.o.
787 (common-exceptions.o): New rule.
788 * exceptions.h (common-exceptions.h): Include.
789 (gdb_setjmp.h): Do not include.
790 (return_reason): Moved to common-exceptions.h.
791 (enum return_reason): Likewise.
792 (RETURN_MASK): Likewise.
793 (typedef return_mask): Likewise.
794 (enum errors): Likewise.
795 (struct gdb_exception): Likewise.
796 (exceptions_state_mc_init): Likewise.
797 (exceptions_state_mc_action_iter): Likewise.
798 (exceptions_state_mc_action_iter_1): Likewise.
799 (TRY_CATCH): Likewise.
800 (throw_exception): Likewise.
801 (throw_verror): Likewise.
802 (throw_vquit): Likewise.
803 (throw_error): Likewise.
804 (throw_quit): Likewise.
805 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
806 (enum catcher_action): Likewise.
807 (struct catcher): Likewise.
808 (current_catcher): Likewise.
809 (catcher_list_size): Likewise.
810 (exceptions_state_mc_init): Likewise.
811 (catcher_pop): Likewise.
812 (exceptions_state_mc): Likewise.
813 (exceptions_state_mc_action_iter): Likewise.
814 (exceptions_state_mc_action_iter_1): Likewise.
815 (throw_exception): Likewise.
816 (exception_messages): Likewise.
817 (exception_messages_size): Likewise.
818 (throw_it): Likewise.
819 (throw_verror): Likewise.
820 (throw_vquit): Likewise.
821 (throw_error): Likewise.
822 (throw_quit): Likewise.
823 (prepare_to_throw_exception): New function.
824
825 2014-08-29 Gary Benson <gbenson@redhat.com>
826
827 * common/gdb_setjmp.h: New file.
828 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
829 * configure.ac: Move sigsetjmp check...
830 * common/common.m4: ...here.
831 * configure: Regenerate.
832 * cp-support.c (SIGJMP_BUF): Delete.
833 (SIGSETJMP): Likewise.
834 (SIGLONGJMP): Likewise.
835 * exceptions.h (gdb_setjmp.h): Include.
836 (setjmp.h): Do not include.
837 (EXCEPTIONS_SIGJMP_BUF): Delete.
838 (EXCEPTIONS_SIGSETJMP): Likewise.
839 (EXCEPTIONS_SIGLONGJMP): Likewise.
840 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
841 from gdb_setjmp.h.
842 * exceptions.c: Likewise.
843
844 2014-08-29 Gary Benson <gbenson@redhat.com>
845
846 * cleanups.h: Moved to...
847 * common/cleanups.h: New file.
848 * cleanups.c: Moved to...
849 * common/cleanups.c: New file. Include common-defs.h and
850 cleanups.h. Do not include defs.h.
851 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
852 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
853 (cleanups.o): New rule.
854
855 2014-08-29 Gary Benson <gbenson@redhat.com>
856
857 * common/errors.h (internal_warning): New declaration.
858 (internal_vwarning): Likewise.
859 * common/errors.c (internal_warning): New function.
860 * utils.h (internal_warning): Don't declare.
861 (internal_vwarning): Likewise.
862 * utils.c (internal_warning): Removed.
863
864 2014-08-29 Gary Benson <gbenson@redhat.com>
865
866 * main.c (captured_main): Use warning during startup.
867 Prefix startup warning messages with command name.
868
869 2014-08-29 Gary Benson <gbenson@redhat.com>
870
871 * main.c (captured_main): Handle usage errors with error.
872
873 2014-08-29 Gary Benson <gbenson@redhat.com>
874
875 * go32-nat.c (go32_create_inferior): Replace a fprintf/
876 exit pair with a call to error. Wrap the message with _().
877
878 2014-08-29 Gary Benson <gbenson@redhat.com>
879
880 * main.c (captured_main): Replace a fprintf/exit
881 pair with a call to error. Wrap the message with _().
882
883 2014-08-29 Gary Benson <gbenson@redhat.com>
884
885 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
886 pairs with calls to error. Wrap the message with _().
887
888 2014-08-29 Gary Benson <gbenson@redhat.com>
889
890 * utils.c (vwarning): Protect calls to target_terminal_ours
891 and wrap_here.
892
893 2014-08-29 Gary Benson <gbenson@redhat.com>
894
895 * exceptions.c (print_flush): Protect calls to
896 target_terminal_ours and wrap_here.
897
898 2014-08-29 Gary Benson <gbenson@redhat.com>
899
900 * utils.h (filtered_printing_initialized): New declaration.
901 * utils.c (abort_with_message): New function.
902 (internal_vproblem): Use abort_with_message for first level
903 recursive internal problems, and if gdb_stderr is not set up.
904 Protect calls to target_terminal_ours, begin_line and query.
905
906 2014-08-28 Doug Evans <dje@google.com>
907
908 * symtab.c (in_prologue): Move definition to better spot.
909 (skip_prologue_using_sal): Ditto.
910
911 2014-08-28 Doug Evans <dje@google.com>
912
913 * symtab.c (find_function_start_sal): Move definition to better spot.
914
915 2014-08-28 Yao Qi <yao@codesourcery.com>
916
917 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
918 found_stack_adjust in forward scan. Remove condition check
919 on found_stack_adjust which is always true. Indent the code.
920
921 2014-08-28 Yao Qi <yao@codesourcery.com>
922
923 * dwarf2read.c (dwarf_decode_lines): Update declaration.
924 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
925 (dwarf_decode_lines): Remove argument
926 want_line_info. Remove condition check on want_line_info.
927 Callers update.
928
929 2014-08-27 Doug Evans <dje@google.com>
930
931 * dwarf2read.c (dwarf_record_line): Fix typo.
932
933 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
934
935 * target.h (struct target_ops::to_terminal_save_ours): Remove
936 declaration.
937 (target_terminal_save_ours): Remove macro.
938 * target-delegates.c: Regenerate.
939 * inf-child.c (inf_child_target): Don't set the nonexistent
940 field to_terminal_save_ours.
941 * inferior.h (child_terminal_save_ours): Remove declaration.
942 * terminal.h (gdb_save_tty_state): New declaration.
943 * inflow.c (child_terminal_save_ours): Rename to ...
944 (gdb_save_tty_state): ... this.
945 * tui/tui.c: Include terminal.h.
946 (tui_enable): Use gdb_save_tty_state instead of
947 target_terminal_save_ours.
948 (tui_disable): Likewise.
949
950 2014-08-25 Doug Evans <dje@google.com>
951
952 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
953 Pass NULL instead of 0 for context pointer.
954
955 2014-08-25 Yao Qi <yao@codesourcery.com>
956
957 * dwarf2read.c: Fix grammatical error.
958
959 2014-08-24 Yao Qi <yao@codesourcery.com>
960
961 * dwarf2read.c (scan_partial_symbols): Update comments.
962 Rename argument 'need_pc' with 'set_addrmap'.
963 (add_partial_namespace): Rename argument 'need_pc' with
964 'set_addrmap'.
965 (add_partial_module): Likewise.
966 (add_partial_subprogram): Likewise. Update comments.
967 (dwarf2_name): Fix typo.
968
969 2014-08-22 Doug Evans <dje@google.com>
970
971 PR 17276
972 * dwarf2read.c (dwarf_record_line_p): New function.
973 (dwarf_decode_lines_1): Ignore subsequent line number entries
974 for the same line if any entry had a non-zero discriminator.
975
976 2014-08-22 Doug Evans <dje@google.com>
977
978 * buildsym.h (record_line_ftype): New typedef.
979 (record_line): Use it.
980 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
981 (dwarf_decode_lines_1): Call them.
982
983 2014-08-22 Yao Qi <yao@codesourcery.com>
984
985 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
986 (ctf_end): Remove code.
987
988 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
989
990 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
991 (linux_make_corefile_notes): call update_thread_list, protected against
992 exceptions.
993
994 2014-08-21 Pedro Alves <palves@redhat.com>
995
996 * infcmd.c (attach_command): Remove comment.
997
998 2014-08-21 Bin Cheng <bin.cheng@arm.com>
999
1000 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1001 unsigned LONGEST to ULONGEST.
1002
1003 2014-08-20 Pedro Alves <palves@redhat.com>
1004
1005 * Makefile.in (check-read1): New rule.
1006
1007 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1008
1009 * value.c (value_from_contents_and_address): Strip resolved_type's
1010 typedef layers before checking its TYPE_DATA_LOCATION.
1011
1012 2014-08-20 Pedro Alves <palves@redhat.com>
1013
1014 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1015
1016 2014-08-20 Yao Qi <yao@codesourcery.com>
1017
1018 * amd64-tdep.c (amd64_classify): Add a blank line after the
1019 example. Move "*/" to a new line.
1020 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1021 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1022 * dwarf2read.c (psymtab_include_file_name): Likewise.
1023
1024 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1025 Pedro Alves <palves@redhat.com>
1026
1027 PR symtab/14604
1028 PR symtab/14605
1029 * ada-lang.c (coerce_unspec_val_to_type): Use
1030 value_contents_copy_raw.
1031 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1032 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1033 * cp-valprint.c (cp_print_value_fields): Let the common printing
1034 code handle optimized out values.
1035 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1036 * d-valprint.c (dynamic_array_type): Use
1037 value_bits_any_optimized_out.
1038 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1039 check_any_valid fields.
1040 (check_pieced_value_bits): Delete and inline ...
1041 (check_pieced_synthetic_pointer): ... here.
1042 (check_pieced_value_validity): Delete.
1043 (check_pieced_value_invalid): Delete.
1044 (pieced_value_funcs): Remove check_validity and check_any_valid
1045 fields.
1046 (read_pieced_value): Use mark_value_bits_optimized_out.
1047 (write_pieced_value): Switch to use
1048 mark_value_bytes_optimized_out.
1049 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1050 of assuming the whole value is optimized out.
1051 * findvar.c (read_frame_register_value): Remove special handling
1052 of optimized out registers.
1053 (value_from_register): Use mark_value_bytes_optimized_out.
1054 * frame-unwind.c (frame_unwind_got_optimized): Use
1055 mark_value_bytes_optimized_out.
1056 * jv-valprint.c (java_value_print): Adjust.
1057 (java_print_value_fields): Let the common printing code handle
1058 optimized out values.
1059 * mips-tdep.c (mips_print_register): Remove special handling of
1060 optimized out registers.
1061 * opencl-lang.c (lval_func_check_validity): Delete.
1062 (lval_func_check_any_valid): Delete.
1063 (opencl_value_funcs): Remove check_validity and check_any_valid
1064 fields.
1065 * p-valprint.c (pascal_object_print_value_fields): Let the common
1066 printing code handle optimized out values.
1067 * stack.c (read_frame_arg): Remove special handling of optimized
1068 out values. Fetch both VAL and ENTRYVAL before comparing
1069 contents. Adjust to value_available_contents_eq rename.
1070 * valprint.c (valprint_check_validity)
1071 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1072 (val_print_array_elements): Adjust.
1073 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1074 (value_bits_any_optimized_out): New function.
1075 (value_entirely_covered_by_range_vector): New function, factored
1076 out from value_entirely_unavailable.
1077 (value_entirely_unavailable): Reimplement.
1078 (value_entirely_optimized_out): New function.
1079 (insert_into_bit_range_vector): New function, factored out from
1080 mark_value_bits_unavailable.
1081 (mark_value_bits_unavailable): Reimplement.
1082 (struct ranges_and_idx): New struct.
1083 (find_first_range_overlap_and_match): New function, factored out
1084 from value_available_contents_bits_eq.
1085 (value_available_contents_bits_eq): Rename to ...
1086 (value_contents_bits_eq): ... this. Check both unavailable
1087 contents and optimized out contents.
1088 (value_available_contents_eq): Rename to ...
1089 (value_contents_eq): ... this.
1090 (allocate_value_lazy): Remove reference to the old optimized_out
1091 boolean.
1092 (allocate_optimized_out_value): Use
1093 mark_value_bytes_optimized_out.
1094 (require_not_optimized_out): Adjust to check whether the
1095 optimized_out vec is empty.
1096 (ranges_copy_adjusted): New function, factored out from
1097 value_contents_copy_raw.
1098 (value_contents_copy_raw): Also copy the optimized out ranges.
1099 Assert the destination ranges aren't optimized out.
1100 (value_contents_copy): Update comment, remove call to
1101 require_not_optimized_out.
1102 (value_contents_equal): Adjust to check whether the optimized_out
1103 vec is empty.
1104 (set_value_optimized_out, value_optimized_out_const): Delete.
1105 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1106 New functions.
1107 (value_entirely_optimized_out, value_bits_valid): Delete.
1108 (value_copy): Take a VEC copy of the 'optimized_out' field.
1109 (value_primitive_field): Remove special handling of optimized out.
1110 (value_fetch_lazy): Assert that lazy values have no unavailable
1111 regions. Use value_bits_any_optimized_out. Remove some special
1112 handling for optimized out values.
1113 * value.h: Add intro comment about <optimized out> and
1114 <unavailable>.
1115 (struct lval_funcs): Remove check_validity and check_any_valid
1116 fields.
1117 (set_value_optimized_out, value_optimized_out_const): Remove.
1118 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1119 New declarations.
1120 (value_bits_any_optimized_out): New declaration.
1121 (value_bits_valid): Delete declaration.
1122 (value_available_contents_eq): Rename to ...
1123 (value_contents_eq): ... this, and extend comments.
1124
1125 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1126
1127 Fix -fsanitize=address on unreadable inferior strings.
1128 * valprint.c (val_print_string): Fix access before BUFFER.
1129
1130 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1131
1132 * target.c (target_struct_size): Remove.
1133 (target_struct_allocsize): Remove.
1134 (DEFAULT_ALLOCSIZE): Remove.
1135 (target_ops_p): New typedef.
1136 (DEF_VEC_P (target_ops_p)): New vector type.
1137 (target_structs): Change type to VEC (target_ops_p).
1138 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1139 (find_default_run_target): Rewrite for loop following changes to
1140 target_structs.
1141
1142 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1143
1144 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1145 Adjust code accordingly. Adjust function description comment.
1146
1147 2014-08-19 Yao Qi <yao@codesourcery.com>
1148
1149 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1150 types.
1151
1152 2014-08-19 Alan Modra <amodra@gmail.com>
1153
1154 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1155 * config.in: Regenerate.
1156 * configure: Regenerate.
1157
1158 2014-08-19 Tom Tromey <tromey@redhat.com>
1159 Gary Benson <gbenson@redhat.com>
1160
1161 * common/common-debug.h: New file.
1162 * common/common-debug.c: Likewise.
1163 * debug.c: Likewise.
1164 * Makefile.in (SFILES): Add common/common-debug.c.
1165 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1166 (COMMON_OBS): Add common-debug.o and debug.o.
1167 (common-debug.o): New rule.
1168 * common/common-defs.h: Include common-debug.h.
1169 * common/agent.c (debug_agent_printf): New function.
1170 (DEBUG_AGENT): Redefine.
1171 * nat/i386-dregs.c (debug_printf): Undefine.
1172
1173 2014-08-19 Gary Benson <gbenson@redhat.com>
1174
1175 * common/common-defs.h: Include print-utils.h.
1176 * utils.h: Do not include print-utils.h.
1177
1178 2014-08-19 Tom Tromey <tromey@redhat.com>
1179 Gary Benson <gbenson@redhat.com>
1180
1181 * common/common-types.h: New file.
1182 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1183 * common/common-defs.h: Include common-types.h.
1184 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1185 (ULONGEST): Remove.
1186
1187 2014-08-19 Tom Tromey <tromey@redhat.com>
1188 Gary Benson <gbenson@redhat.com>
1189
1190 * common/errors.h: New file.
1191 * common/errors.c: Likewise.
1192 * Makefile.in (SFILES): Add common/errors.c.
1193 (HFILES_NO_SRCDIR): Add common/errors.h.
1194 (COMMON_OBS): Add errors.o.
1195 (errors.o): New rule.
1196 * common/common-defs.h: Include errors.h.
1197 * utils.h (perror_with_name, error, verror, warning, vwarning):
1198 Don't declare.
1199 * common/common-utils.h: (malloc_failure, internal_error):
1200 Likewise.
1201
1202 2014-08-19 Gary Benson <gbenson@redhat.com>
1203
1204 * utils.c (internal_vproblem): Always print the message.
1205
1206 2014-08-18 Doug Evans <dje@google.com>
1207
1208 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1209
1210 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1211
1212 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1213 Return 0 if TYPE is dynamic.
1214 (print_range): Add handling of dynamic ranges.
1215
1216 2014-08-18 Keven Boell <keven.boell@intel.com>
1217 Joel Brobecker <brobecker@adacore.com>
1218
1219 * gdbtypes.h (struct main_type): Add field "data_location".
1220 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1221 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1222 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1223 a dynamic data location.
1224 (resolve_dynamic_type): Add DW_AT_data_location handling.
1225 (copy_recursive, copy_type): Copy the data_location information
1226 when present.
1227 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1228 * value.c (value_from_contents_and_address): Add
1229 DW_AT_data_location handling.
1230
1231 2014-08-18 Keven Boell <keven.boell@intel.com>
1232 Joel Brobecker <brobecker@adacore.com>
1233
1234 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1235 field "get_object_address".
1236 * dwarf2expr.c (execute_stack_op): Add handling for
1237 DW_OP_push_object_address.
1238 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1239 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1240 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1241 (dwarf_expr_get_obj_addr): New function.
1242 (dwarf_expr_ctx_funcs): Add get_object_address field.
1243 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1244 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1245 (dwarf2_evaluate_property): Add parameter "address". Use it.
1246 (needs_get_obj_addr): New function.
1247 (needs_frame_ctx_funcs): Add get_object_address field.
1248 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1249 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1250 (resolve_dynamic_array): Likewise.
1251
1252 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1253
1254 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1255 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1256 fixed value for records and unions for which some GNAT encodings
1257 are present.
1258
1259 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1260
1261 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1262 rewrite to avoid "else if" and "else" constructs. Should be
1263 a no-op in practice.
1264
1265 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1266
1267 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1268 of lexical block.
1269
1270 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1271
1272 PR c++/17132
1273 * eval.c: Update all calls to find_overload_match.
1274 * valarith.c: Likewise.
1275 (value_user_defined_cpp_op, value_user_defined_op): New
1276 argument NOSIDE. Update all callers.
1277 * valops.c (find_overload_match): New argument NOSIDE.
1278 * value.h (find_overload_match): Update signature.
1279
1280 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1281
1282 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1283 'items' methods instead of 'iteritems' method on dictionaries.
1284
1285 2014-08-15 Doug Evans <dje@google.com>
1286
1287 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1288 closer to use.
1289
1290 2014-08-15 Doug Evans <dje@google.com>
1291
1292 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1293
1294 2014-08-15 Doug Evans <dje@google.com>
1295
1296 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1297
1298 2014-08-15 Doug Evans <dje@google.com>
1299
1300 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1301 unused.
1302
1303 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1304
1305 * dcache.h: Include target.h, to avoid compile time warnings.
1306
1307 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1308
1309 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1310 frame_info" partial declaration.
1311 * gdbarch.h: Regenerate.
1312
1313 2014-08-15 Yao Qi <yao@codesourcery.com>
1314
1315 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1316 Add parameter 'decode_for_pst_p'. Callers update.
1317
1318 2014-08-13 Yao Qi <yao@codesourcery.com>
1319
1320 PR build/17104
1321 * configure.ac: Use local variable 'pos'.
1322 * configure: Regenerated.
1323
1324 2014-08-11 Doug Evans <dje@google.com>
1325
1326 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1327 message, it is redundant with "Reading symbols from ..." message.
1328
1329 2014-08-10 Doug Evans <xdje42@gmail.com>
1330
1331 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1332
1333 2014-08-09 Yao Qi <yao@codesourcery.com>
1334
1335 PR remote/9053
1336 * remote.c (remote_xfer_partial): Remove dead code.
1337
1338 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1339
1340 * ia64-linux-tdep.c: Include "regset.h".
1341 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1342 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1343 (ia64_linux_supply_fpregset): New function.
1344 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1345 (ia64_linux_regset_from_core_section): New function.
1346 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1347 method.
1348
1349 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1350
1351 * m68klinux-tdep.c: Include "regset.h".
1352 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1353 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1354 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1355 (m68k_linux_regset_from_core_section): New function.
1356 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1357 method.
1358
1359 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1360
1361 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1362 function. Move logic to...
1363 (tilegx_linux_regmap): ... this new register map.
1364 (tilegx_linux_regset): Refer to register map, replace supply
1365 method by regcache_supply_regset, and add collect method.
1366 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1367 TILEGX_FIRST_EASY_REGNUM.
1368
1369 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1370
1371 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1372 that calls regcache_supply_regset and handles the EPC register
1373 separately. Move main logic to...
1374 (score7_linux_gregmap): ... this new register map.
1375 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1376 (score7_linux_gregset): Refer to register map. Add collect method.
1377 (score7_linux_regset_from_core_section): Replace
1378 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1379 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1380 (struct regset): Delete unused forward declaraction.
1381 (struct pt_regs): Delete structure definition.
1382 (elf_gregset_t): Delete typedef.
1383
1384 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1385
1386 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1387 (nios2_core_regset): Add collect method.
1388
1389 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1390
1391 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1392 platform-independent and don't write to read-only input buffer.
1393 (m32r_linux_collect_gregset): New function.
1394 (m32r_linux_gregset): Add collect method.
1395
1396 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1397
1398 * hppa-linux-tdep.c (greg_map): Rename to...
1399 (hppa_linux_gregmap): ... this. Also convert to
1400 regcache_map_entry format.
1401 (hppa_linux_supply_regset): Delete function.
1402 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1403 (hppa_linux_fpregmap): ... this new register map.
1404 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1405 register map, replace supply method by regcache_supply_regset, and
1406 add collect method regcache_collect_regset.
1407
1408 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1409
1410 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1411 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1412 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1413 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1414 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1415 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1416 (frv_linux_supply_gregset): Replace main logic by call to
1417 regcache_supply_regset, but keep clearing gr32-gr63.
1418 (frv_linux_supply_fpregset): Delete function.
1419 (frv_linux_gregset): Refer to appropriate register map and add
1420 regcache_collect_regset as the collect method.
1421 (frv_linux_fpregset): Likewise. Also exchange the supply method
1422 by regcache_supply_regset.
1423
1424 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1425
1426 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1427 by call to alpha_supply_int_regs.
1428 (alpha_linux_collect_gregset): New function.
1429 (alpha_linux_supply_fpregset): Replace logic by call to
1430 alpha_supply_fp_regs.
1431 (alpha_linux_collect_fpregset): New function.
1432 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1433
1434 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1435
1436 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1437 by call to regcache_collect_regset.
1438 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1439 instead of aarch64_linux_supply_gregset/_fpregset.
1440 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1441 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1442 header file instead.
1443 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1444 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1445 functions. Move logic to ...
1446 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1447 register maps.
1448 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1449 refer to new register maps, replace *_regset_from_core by
1450 regcache_supply_regset, and also use regcache_collect_regset.
1451 * aarch64-linux-tdep.h: Include "regset.h".
1452 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1453 Delete prototypes.
1454 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1455 macros, moved from C source file.
1456 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1457 variable declarations.
1458
1459 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1460
1461 * s390-linux-nat.c: Include "regset.h".
1462 (regmap_gregset): Delete macro.
1463 (s390_64_regmap_gregset): New register map for
1464 regcache_supply/_collect_regset.
1465 (s390_64_gregset): New regset.
1466 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1467 (regmap_fpregset): Delete macro.
1468 (s390_native_supply, s390_native_collect): Delete functions.
1469 (supply_gregset, fill_gregset): Replace s390-specific regmap
1470 handling by a call to regcache_supply/_collect_regset.
1471 (supply_fpregset, fill_fpregset): Call regcache_supply/
1472 _collect_regset instead of s390_native_supply/_collect.
1473 (fetch_regset, store_regset): Likewise. Also change the last
1474 parameter to a regset instead of a regmap.
1475 (s390_linux_fetch_inferior_registers)
1476 (390_linux_store_inferior_registers): Adjust last parameter in
1477 calls to fetch_regset and store_regset.
1478 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1479 (s390_gregmap): ... this. Also make static const and convert to
1480 regcache_map_entry format.
1481 (s390x_regmap_gregset): Delete.
1482 (s390_regmap_fpregset): Rename to...
1483 (s390_fpregmap): ... this. Make static const and convert to
1484 regcache_map_entry format.
1485 (s390_regmap_upper, s390_regmap_last_break)
1486 (s390x_regmap_last_break, s390_regmap_system_call)
1487 (s390_regmap_tdb): Likewise.
1488 (s390_supply_regset, s390_collect_regset): Remove functions.
1489 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1490 s390_supply_regset.
1491 (s390_gregset, s390_fpregset, s390_upper_regset)
1492 (s390_last_break_regset, s390x_last_break_regset)
1493 (s390_system_call_regset, s390_tdb_regset): Make global and
1494 replace s390_supply/_collect_regset by regcache_supply/
1495 _collect_regset.
1496 (s390x_gregset): Delete.
1497 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1498 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1499 (s390_regmap_fpregset, s390_regmap_last_break)
1500 (s390x_regmap_last_break, s390_regmap_system_call)
1501 (s390_regmap_tdb): Delete global variable declarations.
1502 (s390_gregset, s390_fpregset, s390_last_break_regset)
1503 (s390x_last_break_regset, s390_system_call_regset)
1504 (s390_tdb_regset): New global variable declarations.
1505
1506 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1507
1508 * regcache.c: Include "regset.h".
1509 (regcache_transfer_regset): New local function.
1510 (regcache_supply_regset, regcache_collect_regset): New functions.
1511 * regcache.h (struct regcache_map_entry): New structure.
1512 (REGCACHE_MAP_SKIP): New enum value.
1513 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1514
1515 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1516
1517 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1518 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1519 (ppc_linux_collect_gregset ): Likewise.
1520 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1521 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1522 (ppc_collect_vrregset): Likewise.
1523 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1524 Likewise.
1525
1526 2014-08-07 Yao Qi <yao@codesourcery.com>
1527
1528 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1529 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1530 * remote.c (remote_read_bytes): Likewise.
1531
1532 2014-08-07 Yao Qi <yao@codesourcery.com>
1533
1534 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1535
1536 2014-08-07 Yao Qi <yao@codesourcery.com>
1537
1538 PR remote/17230
1539 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1540 TARGET_XFER_OK instead of 0.
1541
1542 2014-08-07 Gary Benson <gbenson@redhat.com>
1543
1544 * common/common-defs.h: Include errno.h.
1545 * defs.h: Do not include errno.h.
1546 * ada-typeprint.c: Likewise.
1547 * c-typeprint.c: Likewise.
1548 * core-regset.c: Likewise.
1549 * corefile.c: Likewise.
1550 * corelow.c: Likewise.
1551 * event-loop.c: Likewise.
1552 * f-typeprint.c: Likewise.
1553 * gnu-nat.c: Likewise.
1554 * go32-nat.c: Likewise.
1555 * i386gnu-nat.c: Likewise.
1556 * m2-typeprint.c: Likewise.
1557 * nat/linux-btrace.c: Likewise.
1558 * p-typeprint.c: Likewise.
1559 * procfs.c: Likewise.
1560 * remote-sim.c: Likewise.
1561 * rs6000-nat.c: Likewise.
1562 * target.c: Likewise.
1563 * typeprint.c: Likewise.
1564 * ui-file.c: Likewise.
1565 * valops.c: Likewise.
1566 * valprint.c: Likewise.
1567
1568 2014-08-07 Gary Benson <gbenson@redhat.com>
1569
1570 * common/common-defs.h: Include string.h.
1571 * aarch64-tdep.c: Do not include string.h.
1572 * ada-exp.y: Likewise.
1573 * ada-lang.c: Likewise.
1574 * ada-lex.l: Likewise.
1575 * ada-typeprint.c: Likewise.
1576 * ada-valprint.c: Likewise.
1577 * aix-thread.c: Likewise.
1578 * alpha-linux-tdep.c: Likewise.
1579 * alpha-mdebug-tdep.c: Likewise.
1580 * alpha-nat.c: Likewise.
1581 * alpha-osf1-tdep.c: Likewise.
1582 * alpha-tdep.c: Likewise.
1583 * alphanbsd-tdep.c: Likewise.
1584 * amd64-dicos-tdep.c: Likewise.
1585 * amd64-linux-tdep.c: Likewise.
1586 * amd64-nat.c: Likewise.
1587 * amd64-sol2-tdep.c: Likewise.
1588 * amd64fbsd-tdep.c: Likewise.
1589 * amd64obsd-tdep.c: Likewise.
1590 * arch-utils.c: Likewise.
1591 * arm-linux-nat.c: Likewise.
1592 * arm-linux-tdep.c: Likewise.
1593 * arm-tdep.c: Likewise.
1594 * arm-wince-tdep.c: Likewise.
1595 * armbsd-tdep.c: Likewise.
1596 * armnbsd-nat.c: Likewise.
1597 * armnbsd-tdep.c: Likewise.
1598 * armobsd-tdep.c: Likewise.
1599 * avr-tdep.c: Likewise.
1600 * ax-gdb.c: Likewise.
1601 * ax-general.c: Likewise.
1602 * bcache.c: Likewise.
1603 * bfin-tdep.c: Likewise.
1604 * breakpoint.c: Likewise.
1605 * build-id.c: Likewise.
1606 * buildsym.c: Likewise.
1607 * c-exp.y: Likewise.
1608 * c-lang.c: Likewise.
1609 * c-typeprint.c: Likewise.
1610 * c-valprint.c: Likewise.
1611 * charset.c: Likewise.
1612 * cli-out.c: Likewise.
1613 * cli/cli-cmds.c: Likewise.
1614 * cli/cli-decode.c: Likewise.
1615 * cli/cli-dump.c: Likewise.
1616 * cli/cli-interp.c: Likewise.
1617 * cli/cli-logging.c: Likewise.
1618 * cli/cli-script.c: Likewise.
1619 * cli/cli-setshow.c: Likewise.
1620 * cli/cli-utils.c: Likewise.
1621 * coffread.c: Likewise.
1622 * common/agent.c: Likewise.
1623 * common/buffer.c: Likewise.
1624 * common/buffer.h: Likewise.
1625 * common/common-utils.c: Likewise.
1626 * common/filestuff.c: Likewise.
1627 * common/filestuff.c: Likewise.
1628 * common/format.c: Likewise.
1629 * common/print-utils.c: Likewise.
1630 * common/rsp-low.c: Likewise.
1631 * common/signals.c: Likewise.
1632 * common/vec.h: Likewise.
1633 * common/xml-utils.c: Likewise.
1634 * core-regset.c: Likewise.
1635 * corefile.c: Likewise.
1636 * corelow.c: Likewise.
1637 * cp-abi.c: Likewise.
1638 * cp-name-parser.y: Likewise.
1639 * cp-support.c: Likewise.
1640 * cp-valprint.c: Likewise.
1641 * cris-tdep.c: Likewise.
1642 * d-exp.y: Likewise.
1643 * darwin-nat.c: Likewise.
1644 * dbxread.c: Likewise.
1645 * dcache.c: Likewise.
1646 * demangle.c: Likewise.
1647 * dicos-tdep.c: Likewise.
1648 * disasm.c: Likewise.
1649 * doublest.c: Likewise.
1650 * dsrec.c: Likewise.
1651 * dummy-frame.c: Likewise.
1652 * dwarf2-frame.c: Likewise.
1653 * dwarf2loc.c: Likewise.
1654 * dwarf2read.c: Likewise.
1655 * elfread.c: Likewise.
1656 * environ.c: Likewise.
1657 * eval.c: Likewise.
1658 * event-loop.c: Likewise.
1659 * exceptions.c: Likewise.
1660 * exec.c: Likewise.
1661 * expprint.c: Likewise.
1662 * f-exp.y: Likewise.
1663 * f-lang.c: Likewise.
1664 * f-typeprint.c: Likewise.
1665 * f-valprint.c: Likewise.
1666 * fbsd-nat.c: Likewise.
1667 * findcmd.c: Likewise.
1668 * findvar.c: Likewise.
1669 * fork-child.c: Likewise.
1670 * frame.c: Likewise.
1671 * frv-linux-tdep.c: Likewise.
1672 * frv-tdep.c: Likewise.
1673 * gdb.c: Likewise.
1674 * gdb_bfd.c: Likewise.
1675 * gdbarch.c: Likewise.
1676 * gdbarch.sh: Likewise.
1677 * gdbtypes.c: Likewise.
1678 * gnu-nat.c: Likewise.
1679 * gnu-v2-abi.c: Likewise.
1680 * gnu-v3-abi.c: Likewise.
1681 * go-exp.y: Likewise.
1682 * go-lang.c: Likewise.
1683 * go32-nat.c: Likewise.
1684 * guile/guile.c: Likewise.
1685 * guile/scm-auto-load.c: Likewise.
1686 * hppa-hpux-tdep.c: Likewise.
1687 * hppa-linux-nat.c: Likewise.
1688 * hppanbsd-tdep.c: Likewise.
1689 * hppaobsd-tdep.c: Likewise.
1690 * i386-cygwin-tdep.c: Likewise.
1691 * i386-dicos-tdep.c: Likewise.
1692 * i386-linux-tdep.c: Likewise.
1693 * i386-nto-tdep.c: Likewise.
1694 * i386-sol2-tdep.c: Likewise.
1695 * i386-tdep.c: Likewise.
1696 * i386bsd-tdep.c: Likewise.
1697 * i386gnu-nat.c: Likewise.
1698 * i386nbsd-tdep.c: Likewise.
1699 * i386obsd-tdep.c: Likewise.
1700 * i387-tdep.c: Likewise.
1701 * ia64-libunwind-tdep.c: Likewise.
1702 * ia64-linux-nat.c: Likewise.
1703 * inf-child.c: Likewise.
1704 * inf-ptrace.c: Likewise.
1705 * inf-ttrace.c: Likewise.
1706 * infcall.c: Likewise.
1707 * infcmd.c: Likewise.
1708 * inflow.c: Likewise.
1709 * infrun.c: Likewise.
1710 * interps.c: Likewise.
1711 * iq2000-tdep.c: Likewise.
1712 * irix5-nat.c: Likewise.
1713 * jv-exp.y: Likewise.
1714 * jv-lang.c: Likewise.
1715 * jv-typeprint.c: Likewise.
1716 * jv-valprint.c: Likewise.
1717 * language.c: Likewise.
1718 * linux-fork.c: Likewise.
1719 * linux-nat.c: Likewise.
1720 * lm32-tdep.c: Likewise.
1721 * m2-exp.y: Likewise.
1722 * m2-typeprint.c: Likewise.
1723 * m32c-tdep.c: Likewise.
1724 * m32r-linux-nat.c: Likewise.
1725 * m32r-linux-tdep.c: Likewise.
1726 * m32r-rom.c: Likewise.
1727 * m32r-tdep.c: Likewise.
1728 * m68hc11-tdep.c: Likewise.
1729 * m68k-tdep.c: Likewise.
1730 * m68kbsd-tdep.c: Likewise.
1731 * m68klinux-nat.c: Likewise.
1732 * m68klinux-tdep.c: Likewise.
1733 * m88k-tdep.c: Likewise.
1734 * machoread.c: Likewise.
1735 * macrocmd.c: Likewise.
1736 * main.c: Likewise.
1737 * mdebugread.c: Likewise.
1738 * mem-break.c: Likewise.
1739 * memattr.c: Likewise.
1740 * memory-map.c: Likewise.
1741 * mep-tdep.c: Likewise.
1742 * mi/mi-cmd-break.c: Likewise.
1743 * mi/mi-cmd-disas.c: Likewise.
1744 * mi/mi-cmd-env.c: Likewise.
1745 * mi/mi-cmd-stack.c: Likewise.
1746 * mi/mi-cmd-var.c: Likewise.
1747 * mi/mi-cmds.c: Likewise.
1748 * mi/mi-console.c: Likewise.
1749 * mi/mi-getopt.c: Likewise.
1750 * mi/mi-interp.c: Likewise.
1751 * mi/mi-main.c: Likewise.
1752 * mi/mi-parse.c: Likewise.
1753 * microblaze-rom.c: Likewise.
1754 * microblaze-tdep.c: Likewise.
1755 * mingw-hdep.c: Likewise.
1756 * minidebug.c: Likewise.
1757 * minsyms.c: Likewise.
1758 * mips-irix-tdep.c: Likewise.
1759 * mips-linux-tdep.c: Likewise.
1760 * mips-tdep.c: Likewise.
1761 * mips64obsd-tdep.c: Likewise.
1762 * mipsnbsd-tdep.c: Likewise.
1763 * mipsread.c: Likewise.
1764 * mn10300-linux-tdep.c: Likewise.
1765 * mn10300-tdep.c: Likewise.
1766 * monitor.c: Likewise.
1767 * moxie-tdep.c: Likewise.
1768 * mt-tdep.c: Likewise.
1769 * nat/linux-btrace.c: Likewise.
1770 * nat/linux-osdata.c: Likewise.
1771 * nat/linux-procfs.c: Likewise.
1772 * nat/linux-ptrace.c: Likewise.
1773 * nat/linux-waitpid.c: Likewise.
1774 * nbsd-tdep.c: Likewise.
1775 * nios2-linux-tdep.c: Likewise.
1776 * nto-procfs.c: Likewise.
1777 * nto-tdep.c: Likewise.
1778 * objc-lang.c: Likewise.
1779 * objfiles.c: Likewise.
1780 * opencl-lang.c: Likewise.
1781 * osabi.c: Likewise.
1782 * osdata.c: Likewise.
1783 * p-exp.y: Likewise.
1784 * p-lang.c: Likewise.
1785 * p-typeprint.c: Likewise.
1786 * parse.c: Likewise.
1787 * posix-hdep.c: Likewise.
1788 * ppc-linux-nat.c: Likewise.
1789 * ppc-sysv-tdep.c: Likewise.
1790 * ppcfbsd-tdep.c: Likewise.
1791 * ppcnbsd-tdep.c: Likewise.
1792 * ppcobsd-tdep.c: Likewise.
1793 * printcmd.c: Likewise.
1794 * procfs.c: Likewise.
1795 * prologue-value.c: Likewise.
1796 * python/py-auto-load.c: Likewise.
1797 * python/py-gdb-readline.c: Likewise.
1798 * ravenscar-thread.c: Likewise.
1799 * regcache.c: Likewise.
1800 * registry.c: Likewise.
1801 * remote-fileio.c: Likewise.
1802 * remote-m32r-sdi.c: Likewise.
1803 * remote-mips.c: Likewise.
1804 * remote-notif.c: Likewise.
1805 * remote-sim.c: Likewise.
1806 * remote.c: Likewise.
1807 * reverse.c: Likewise.
1808 * rs6000-aix-tdep.c: Likewise.
1809 * ser-base.c: Likewise.
1810 * ser-go32.c: Likewise.
1811 * ser-mingw.c: Likewise.
1812 * ser-pipe.c: Likewise.
1813 * ser-tcp.c: Likewise.
1814 * ser-unix.c: Likewise.
1815 * serial.c: Likewise.
1816 * sh-tdep.c: Likewise.
1817 * sh64-tdep.c: Likewise.
1818 * shnbsd-tdep.c: Likewise.
1819 * skip.c: Likewise.
1820 * sol-thread.c: Likewise.
1821 * solib-dsbt.c: Likewise.
1822 * solib-frv.c: Likewise.
1823 * solib-osf.c: Likewise.
1824 * solib-som.c: Likewise.
1825 * solib-spu.c: Likewise.
1826 * solib-target.c: Likewise.
1827 * solib.c: Likewise.
1828 * somread.c: Likewise.
1829 * source.c: Likewise.
1830 * sparc-nat.c: Likewise.
1831 * sparc-sol2-tdep.c: Likewise.
1832 * sparc-tdep.c: Likewise.
1833 * sparc64-tdep.c: Likewise.
1834 * sparc64fbsd-tdep.c: Likewise.
1835 * sparc64nbsd-tdep.c: Likewise.
1836 * sparcnbsd-tdep.c: Likewise.
1837 * spu-linux-nat.c: Likewise.
1838 * spu-multiarch.c: Likewise.
1839 * spu-tdep.c: Likewise.
1840 * stabsread.c: Likewise.
1841 * stack.c: Likewise.
1842 * std-regs.c: Likewise.
1843 * symfile.c: Likewise.
1844 * symmisc.c: Likewise.
1845 * symtab.c: Likewise.
1846 * target.c: Likewise.
1847 * thread.c: Likewise.
1848 * tilegx-linux-nat.c: Likewise.
1849 * tilegx-tdep.c: Likewise.
1850 * top.c: Likewise.
1851 * tracepoint.c: Likewise.
1852 * tui/tui-command.c: Likewise.
1853 * tui/tui-data.c: Likewise.
1854 * tui/tui-disasm.c: Likewise.
1855 * tui/tui-file.c: Likewise.
1856 * tui/tui-layout.c: Likewise.
1857 * tui/tui-out.c: Likewise.
1858 * tui/tui-regs.c: Likewise.
1859 * tui/tui-source.c: Likewise.
1860 * tui/tui-stack.c: Likewise.
1861 * tui/tui-win.c: Likewise.
1862 * tui/tui-windata.c: Likewise.
1863 * tui/tui-winsource.c: Likewise.
1864 * typeprint.c: Likewise.
1865 * ui-file.c: Likewise.
1866 * ui-out.c: Likewise.
1867 * user-regs.c: Likewise.
1868 * utils.c: Likewise.
1869 * v850-tdep.c: Likewise.
1870 * valarith.c: Likewise.
1871 * valops.c: Likewise.
1872 * valprint.c: Likewise.
1873 * value.c: Likewise.
1874 * varobj.c: Likewise.
1875 * vax-tdep.c: Likewise.
1876 * vaxnbsd-tdep.c: Likewise.
1877 * vaxobsd-tdep.c: Likewise.
1878 * windows-nat.c: Likewise.
1879 * xcoffread.c: Likewise.
1880 * xml-support.c: Likewise.
1881 * xstormy16-tdep.c: Likewise.
1882 * xtensa-linux-nat.c: Likewise.
1883
1884 2014-08-07 Gary Benson <gbenson@redhat.com>
1885
1886 * common/common-defs.h: Include gdb_assert.h.
1887 * aarch64-tdep.c: Do not include gdb_assert.h.
1888 * addrmap.c: Likewise.
1889 * aix-thread.c: Likewise.
1890 * alpha-linux-tdep.c: Likewise.
1891 * alpha-mdebug-tdep.c: Likewise.
1892 * alphanbsd-tdep.c: Likewise.
1893 * amd64-nat.c: Likewise.
1894 * amd64-tdep.c: Likewise.
1895 * amd64bsd-nat.c: Likewise.
1896 * amd64fbsd-nat.c: Likewise.
1897 * amd64fbsd-tdep.c: Likewise.
1898 * amd64nbsd-nat.c: Likewise.
1899 * amd64nbsd-tdep.c: Likewise.
1900 * amd64obsd-nat.c: Likewise.
1901 * amd64obsd-tdep.c: Likewise.
1902 * arch-utils.c: Likewise.
1903 * arm-tdep.c: Likewise.
1904 * armbsd-tdep.c: Likewise.
1905 * auxv.c: Likewise.
1906 * bcache.c: Likewise.
1907 * bfin-tdep.c: Likewise.
1908 * blockframe.c: Likewise.
1909 * breakpoint.c: Likewise.
1910 * bsd-kvm.c: Likewise.
1911 * bsd-uthread.c: Likewise.
1912 * buildsym.c: Likewise.
1913 * c-exp.y: Likewise.
1914 * c-lang.c: Likewise.
1915 * charset.c: Likewise.
1916 * cleanups.c: Likewise.
1917 * cli-out.c: Likewise.
1918 * cli/cli-decode.c: Likewise.
1919 * cli/cli-dump.c: Likewise.
1920 * cli/cli-logging.c: Likewise.
1921 * cli/cli-script.c: Likewise.
1922 * cli/cli-utils.c: Likewise.
1923 * coffread.c: Likewise.
1924 * common/common-utils.c: Likewise.
1925 * common/queue.h: Likewise.
1926 * common/signals.c: Likewise.
1927 * common/vec.h: Likewise.
1928 * complaints.c: Likewise.
1929 * completer.c: Likewise.
1930 * corelow.c: Likewise.
1931 * cp-abi.c: Likewise.
1932 * cp-name-parser.y: Likewise.
1933 * cp-namespace.c: Likewise.
1934 * cp-support.c: Likewise.
1935 * cris-tdep.c: Likewise.
1936 * dbxread.c: Likewise.
1937 * dictionary.c: Likewise.
1938 * doublest.c: Likewise.
1939 * dsrec.c: Likewise.
1940 * dummy-frame.c: Likewise.
1941 * dwarf2-frame-tailcall.c: Likewise.
1942 * dwarf2-frame.c: Likewise.
1943 * dwarf2expr.c: Likewise.
1944 * dwarf2loc.c: Likewise.
1945 * dwarf2read.c: Likewise.
1946 * eval.c: Likewise.
1947 * event-loop.c: Likewise.
1948 * exceptions.c: Likewise.
1949 * expprint.c: Likewise.
1950 * f-valprint.c: Likewise.
1951 * fbsd-nat.c: Likewise.
1952 * findvar.c: Likewise.
1953 * frame-unwind.c: Likewise.
1954 * frame.c: Likewise.
1955 * frv-tdep.c: Likewise.
1956 * gcore.c: Likewise.
1957 * gdb-dlfcn.c: Likewise.
1958 * gdb_bfd.c: Likewise.
1959 * gdbarch.c: Likewise.
1960 * gdbarch.sh: Likewise.
1961 * gdbtypes.c: Likewise.
1962 * gnu-nat.c: Likewise.
1963 * gnu-v3-abi.c: Likewise.
1964 * go-lang.c: Likewise.
1965 * guile/scm-exception.c: Likewise.
1966 * guile/scm-gsmob.c: Likewise.
1967 * guile/scm-lazy-string.c: Likewise.
1968 * guile/scm-math.c: Likewise.
1969 * guile/scm-pretty-print.c: Likewise.
1970 * guile/scm-safe-call.c: Likewise.
1971 * guile/scm-utils.c: Likewise.
1972 * guile/scm-value.c: Likewise.
1973 * h8300-tdep.c: Likewise.
1974 * hppa-hpux-nat.c: Likewise.
1975 * hppa-tdep.c: Likewise.
1976 * hppanbsd-tdep.c: Likewise.
1977 * hppaobsd-tdep.c: Likewise.
1978 * i386-darwin-nat.c: Likewise.
1979 * i386-darwin-tdep.c: Likewise.
1980 * i386-nto-tdep.c: Likewise.
1981 * i386-tdep.c: Likewise.
1982 * i386bsd-nat.c: Likewise.
1983 * i386fbsd-tdep.c: Likewise.
1984 * i386gnu-nat.c: Likewise.
1985 * i386nbsd-tdep.c: Likewise.
1986 * i386obsd-tdep.c: Likewise.
1987 * i387-tdep.c: Likewise.
1988 * ia64-libunwind-tdep.c: Likewise.
1989 * ia64-tdep.c: Likewise.
1990 * inf-ptrace.c: Likewise.
1991 * inf-ttrace.c: Likewise.
1992 * infcall.c: Likewise.
1993 * infcmd.c: Likewise.
1994 * infrun.c: Likewise.
1995 * inline-frame.c: Likewise.
1996 * interps.c: Likewise.
1997 * jv-lang.c: Likewise.
1998 * jv-typeprint.c: Likewise.
1999 * linux-fork.c: Likewise.
2000 * linux-nat.c: Likewise.
2001 * linux-thread-db.c: Likewise.
2002 * m32c-tdep.c: Likewise.
2003 * m32r-linux-nat.c: Likewise.
2004 * m32r-tdep.c: Likewise.
2005 * m68k-tdep.c: Likewise.
2006 * m68kbsd-nat.c: Likewise.
2007 * m68kbsd-tdep.c: Likewise.
2008 * m88k-tdep.c: Likewise.
2009 * machoread.c: Likewise.
2010 * macroexp.c: Likewise.
2011 * macrotab.c: Likewise.
2012 * maint.c: Likewise.
2013 * mdebugread.c: Likewise.
2014 * memory-map.c: Likewise.
2015 * mep-tdep.c: Likewise.
2016 * mi/mi-common.c: Likewise.
2017 * microblaze-tdep.c: Likewise.
2018 * mingw-hdep.c: Likewise.
2019 * mips-linux-nat.c: Likewise.
2020 * mips-linux-tdep.c: Likewise.
2021 * mips-tdep.c: Likewise.
2022 * mips64obsd-tdep.c: Likewise.
2023 * mipsnbsd-tdep.c: Likewise.
2024 * mn10300-linux-tdep.c: Likewise.
2025 * mn10300-tdep.c: Likewise.
2026 * moxie-tdep.c: Likewise.
2027 * mt-tdep.c: Likewise.
2028 * nat/linux-btrace.c: Likewise.
2029 * nat/linux-osdata.c: Likewise.
2030 * nat/linux-ptrace.c: Likewise.
2031 * nat/mips-linux-watch.c: Likewise.
2032 * nios2-linux-tdep.c: Likewise.
2033 * nios2-tdep.c: Likewise.
2034 * objc-lang.c: Likewise.
2035 * objfiles.c: Likewise.
2036 * obsd-nat.c: Likewise.
2037 * opencl-lang.c: Likewise.
2038 * osabi.c: Likewise.
2039 * parse.c: Likewise.
2040 * ppc-linux-nat.c: Likewise.
2041 * ppc-sysv-tdep.c: Likewise.
2042 * ppcfbsd-nat.c: Likewise.
2043 * ppcfbsd-tdep.c: Likewise.
2044 * ppcnbsd-nat.c: Likewise.
2045 * ppcnbsd-tdep.c: Likewise.
2046 * ppcobsd-nat.c: Likewise.
2047 * ppcobsd-tdep.c: Likewise.
2048 * printcmd.c: Likewise.
2049 * procfs.c: Likewise.
2050 * prologue-value.c: Likewise.
2051 * psymtab.c: Likewise.
2052 * python/py-lazy-string.c: Likewise.
2053 * python/py-value.c: Likewise.
2054 * regcache.c: Likewise.
2055 * reggroups.c: Likewise.
2056 * registry.c: Likewise.
2057 * remote-sim.c: Likewise.
2058 * remote.c: Likewise.
2059 * rs6000-aix-tdep.c: Likewise.
2060 * rs6000-tdep.c: Likewise.
2061 * s390-linux-tdep.c: Likewise.
2062 * score-tdep.c: Likewise.
2063 * ser-base.c: Likewise.
2064 * ser-mingw.c: Likewise.
2065 * sh-tdep.c: Likewise.
2066 * sh64-tdep.c: Likewise.
2067 * solib-darwin.c: Likewise.
2068 * solib-spu.c: Likewise.
2069 * solib-svr4.c: Likewise.
2070 * source.c: Likewise.
2071 * sparc-nat.c: Likewise.
2072 * sparc-sol2-tdep.c: Likewise.
2073 * sparc-tdep.c: Likewise.
2074 * sparc64-sol2-tdep.c: Likewise.
2075 * sparc64-tdep.c: Likewise.
2076 * sparc64fbsd-tdep.c: Likewise.
2077 * sparc64nbsd-tdep.c: Likewise.
2078 * sparc64obsd-tdep.c: Likewise.
2079 * sparcnbsd-tdep.c: Likewise.
2080 * sparcobsd-tdep.c: Likewise.
2081 * spu-multiarch.c: Likewise.
2082 * spu-tdep.c: Likewise.
2083 * stabsread.c: Likewise.
2084 * stack.c: Likewise.
2085 * symfile.c: Likewise.
2086 * symtab.c: Likewise.
2087 * target-descriptions.c: Likewise.
2088 * target-memory.c: Likewise.
2089 * target.c: Likewise.
2090 * tic6x-linux-tdep.c: Likewise.
2091 * tic6x-tdep.c: Likewise.
2092 * tilegx-linux-nat.c: Likewise.
2093 * tilegx-tdep.c: Likewise.
2094 * top.c: Likewise.
2095 * tramp-frame.c: Likewise.
2096 * tui/tui-out.c: Likewise.
2097 * tui/tui-winsource.c: Likewise.
2098 * ui-out.c: Likewise.
2099 * user-regs.c: Likewise.
2100 * utils.c: Likewise.
2101 * v850-tdep.c: Likewise.
2102 * valops.c: Likewise.
2103 * value.c: Likewise.
2104 * varobj.c: Likewise.
2105 * vax-nat.c: Likewise.
2106 * xml-syscall.c: Likewise.
2107 * xml-tdesc.c: Likewise.
2108 * xstormy16-tdep.c: Likewise.
2109 * xtensa-linux-nat.c: Likewise.
2110 * xtensa-tdep.c: Likewise.
2111
2112 2014-08-07 Gary Benson <gbenson@redhat.com>
2113
2114 * common/common-defs.h: Include common-utils.h.
2115 * defs.h: Do not include common-utils.h.
2116 * common/gdb_assert.h: Likewise.
2117 * darwin-nat.h: Likewise.
2118 * nat/linux-btrace.c: Likewise.
2119 * target/waitstatus.h: Likewise.
2120
2121 2014-08-07 Gary Benson <gbenson@redhat.com>
2122
2123 * common/common-defs.h: Include ptid.h.
2124 * defs.h: Do not include ptid.h.
2125 * inferior.h: Likewise.
2126 * infrun.h: Likewise.
2127 * nat/linux-btrace.h: Likewise.
2128 * nat/linux-osdata.h: Likewise.
2129 * target/waitstatus.h: Likewise.
2130
2131 2014-08-07 Gary Benson <gbenson@redhat.com>
2132
2133 * common/common-defs.h: Include gdb_locale.h.
2134 * defs.h: Do not include gdb_locale.h.
2135
2136 2014-08-07 Gary Benson <gbenson@redhat.com>
2137
2138 * common/common-defs.h: Include gdb/signals.h.
2139 * defs.h: Do not include gdb/signals.h.
2140
2141 2014-08-07 Gary Benson <gbenson@redhat.com>
2142
2143 * common/common-defs.h: Include pathmax.h.
2144 * defs.h: Do not include pathmax.h.
2145
2146 2014-08-07 Gary Benson <gbenson@redhat.com>
2147
2148 * common/common-defs.h: Include libiberty.h.
2149 * defs.h: Do not include libiberty.h.
2150 * common/queue.h: Likewise.
2151 * cp-name-parser.y: Likewise.
2152 * mi/mi-cmd-catch.c: Likewise.
2153 * python/python.c: Likewise.
2154
2155 2014-08-07 Gary Benson <gbenson@redhat.com>
2156
2157 * common/common-defs.h: Include ansidecl.h.
2158 * defs.h: Do not include ansidecl.h.
2159 * common/buffer.h: Likewise.
2160 * common/common-utils.h: Likewise.
2161
2162 2014-08-07 Gary Benson <gbenson@redhat.com>
2163
2164 * common/common-defs.h: Include stddef.h.
2165 * defs.h: Do not include stddef.h.
2166 * common/common-utils.h: Likewise.
2167 * amd64fbsd-nat.c: Likewise.
2168 * bcache.c: Likewise.
2169 * charset.c: Likewise.
2170 * common/buffer.h: Likewise.
2171 * common/vec.h: Likewise.
2172 * i386bsd-nat.c: Likewise.
2173 * nat/linux-btrace.h: Likewise.
2174 * ppcfbsd-nat.c: Likewise.
2175 * ppcnbsd-tdep.h: Likewise.
2176 * ppcobsd-nat.c: Likewise.
2177 * ppcobsd-tdep.h: Likewise.
2178 * python/py-gdb-readline.c: Likewise.
2179
2180 2014-08-07 Gary Benson <gbenson@redhat.com>
2181
2182 * common/common-defs.h: Include stdarg.h.
2183 * defs.h: Do not include stdarg.h.
2184 * ada-lang.c: Likewise.
2185 * common/common-utils.h: Likewise.
2186 * guile/scm-string.c: Likewise.
2187 * guile/scm-utils.c: Likewise.
2188 * m32c-tdep.c: Likewise.
2189
2190 2014-08-07 Gary Benson <gbenson@redhat.com>
2191
2192 * common/common-defs.h: Include stdlib.h.
2193 * defs.h: Do not include stdlib.h.
2194 * addrmap.c: Likewise.
2195 * bcache.c: Likewise.
2196 * common/buffer.c: Likewise.
2197 * common/common-utils.c: Likewise.
2198 * cp-name-parser.y: Likewise.
2199 * go32-nat.c: Likewise.
2200 * mn10300-linux-tdep.c: Likewise.
2201 * nat/linux-osdata.c: Likewise.
2202 * tui/tui.c: Likewise.
2203 * windows-nat.c: Likewise.
2204
2205 2014-08-07 Gary Benson <gbenson@redhat.com>
2206
2207 * common/common-defs.h: Include stdio.h.
2208 * defs.h: Do not include stdio.h.
2209 * ada-lang.c: Likewise.
2210 * common/buffer.c: Likewise.
2211 * common/common-utils.c: Likewise.
2212 * cp-name-parser.y: Likewise.
2213 * gnu-nat.c: Likewise.
2214 * go32-nat.c: Likewise.
2215 * i386gnu-nat.c: Likewise.
2216 * proc-api.c: Likewise.
2217 * proc-events.c: Likewise.
2218 * proc-flags.c: Likewise.
2219 * proc-why.c: Likewise.
2220 * python/python-internal.h: Likewise.
2221 * target-memory.c: Likewise.
2222 * tui/tui-io.c: Likewise.
2223 * tui/tui.c: Likewise.
2224
2225 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2226
2227 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2228 (scan_dyntag_auxv): Same.
2229
2230 2014-08-06 Yao Qi <yao@codesourcery.com>
2231
2232 * amd64-linux-nat.c: Remove duplicated include
2233 "x86-linux-nat.h".
2234 * i386-linux-nat.c: Likewise.
2235
2236 2014-08-06 Yao Qi <yao@codesourcery.com>
2237
2238 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2239 operand" with "Special opcode" in comments.
2240
2241 2014-08-05 Gary Benson <gbenson@redhat.com>
2242
2243 * interps.c (initialize_interps): Remove prototype.
2244 (interpreter_initialized): Remove static global.
2245 (interp_add): Do not call initialize_interps.
2246 (initialize_interps): Remove function.
2247
2248 2014-08-05 Gary Benson <gbenson@redhat.com>
2249
2250 * utils.c (vwarning): Remove spurious va_end.
2251
2252 2014-08-05 Alan Modra <amodra@gmail.com>
2253
2254 * charset.c (convert_between_encodings): Cast result of obstack_base.
2255 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2256 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2257 (read_unwind_info): Use size_t for some locals.
2258 * jit.c (finalize_symtab): Likewise.
2259 * utils.c (hashtab_obstack_allocate): Likewise.
2260 * symmisc.c (print_objfile_statistics): Update format strings.
2261
2262 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2263
2264 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2265 (Changes in GDB 7.8): ... here.
2266
2267 2014-08-04 Tom Tromey <tromey@redhat.com>
2268
2269 * target.c (set_targetdebug): New function.
2270 (initialize_targets): Pass set_targetdebug when creating "set
2271 debug target".
2272
2273 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2274
2275 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2276 if detecting a variable-sized field that is not the last field.
2277 Fix struct type length computation.
2278
2279 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2280
2281 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2282 Add debug trace.
2283
2284 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2285
2286 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2287 Remove "+ 8" offset in computation of CHAIN_VMA.
2288
2289 2014-07-31 Doug Evans <dje@google.com>
2290
2291 * inflow.c (child_terminal_inferior): Add comment.
2292 (child_terminal_ours_for_output): Add comment.
2293 (child_terminal_ours): Add comment.
2294 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2295 (linux_nat_terminal_ours): Add comment.
2296
2297 2014-07-31 Gary Benson <gbenson@redhat.com>
2298
2299 * common/btrace-common.h: Do not include defs.h or server.h.
2300 * nat/mips-linux-watch.h: Likewise.
2301 * gdb-dlfcn.h: Do not include defs.h.
2302 * tracefile.h: Likewise.
2303
2304 2014-07-30 Roland McGrath <mcgrathr@google.com>
2305
2306 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2307
2308 2014-07-30 Tom Tromey <tromey@redhat.com>
2309
2310 * bsd-kvm.c (bsd_kvm_open): Constify.
2311 * corelow.c (core_open): Constify.
2312 * ctf.c (ctf_open): Constify.
2313 * dbug-rom.c (dbug_open): Constify.
2314 * exec.c (exec_open): Constify.
2315 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2316 * microblaze-rom.c (picobug_open): Constify.
2317 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2318 Constify.
2319 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2320 * record-btrace.c (record_btrace_open): Constify.
2321 * record-full.c (record_full_core_open_1, record_full_open_1)
2322 (record_full_open): Constify.
2323 * remote-m32r-sdi.c (m32r_open): Constify.
2324 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2325 (rockhopper_open, lsi_open): Constify.
2326 * remote-sim.c (gdbsim_open): Constify.
2327 * remote.c (remote_open, extended_remote_open, remote_open_1):
2328 Constify.
2329 * target.h (struct target_ops) <to_open>: Make "arg" const.
2330 * tracefile-tfile.c (tfile_open): Constify.
2331
2332 2014-07-30 Tom Tromey <tromey@redhat.com>
2333
2334 * breakpoint.c (map_breakpoint_numbers): Update.
2335 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2336 (get_number_const): New function.
2337 (get_number): Rewrite using get_number_const.
2338 (init_number_or_range): Make "string" const.
2339 (number_is_in_list): Make "list" const.
2340 * cli/cli-utils.h (get_number_const): Declare.
2341 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2342 (init_number_or_range, number_is_in_list): Update.
2343 * printcmd.c (map_display_numbers): Update.
2344 * value.c (value_from_history_ref): Constify.
2345 * value.h (value_from_history_ref): Update.
2346
2347 2014-07-30 Tom Tromey <tromey@redhat.com>
2348
2349 * corefile.c (hook_type, call_extra_exec_file_hooks)
2350 (specify_exec_file_hook): Constify.
2351 * exec.c (exec_file_attach): Make "filename" const.
2352 * gdbcore.h (deprecated_exec_file_display_hook)
2353 (specify_exec_file_hook, exec_file_attach): Constify.
2354 * main.c (captured_main): Use catch_command_errors_const.
2355
2356 2014-07-30 Tom Tromey <tromey@redhat.com>
2357
2358 * target.c (open_target): New function.
2359 (add_target_with_completer, add_deprecated_target_alias): Use
2360 set_cmd_sfunc, set_cmd_context.
2361 (debug_to_open): Remove.
2362 (setup_target_debug): Update.
2363
2364 2014-07-30 Yao Qi <yao@codesourcery.com>
2365
2366 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2367 comments.
2368 * parse.c (exp_iterate): Update comments.
2369
2370 2014-07-30 Gary Benson <gbenson@redhat.com>
2371
2372 * common/common-defs.h: New file.
2373 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2374 * defs.h: Include common-defs.h.
2375 Do not include config.h or build-gnulib/config.h.
2376
2377 2014-07-30 Gary Benson <gbenson@redhat.com>
2378
2379 * common/common-utils.h: Do not include config.h.
2380 * nat/linux-btrace.h: Likewise.
2381
2382 2014-07-30 Gary Benson <gbenson@redhat.com>
2383
2384 * btrace.c: Include defs.h.
2385 * common/ptid.c: Include defs.h or server.h as appropriate.
2386 * nat/mips-linux-watch.c: Likewise.
2387
2388 2014-07-29 Tom Tromey <tromey@redhat.com>
2389
2390 * target.c (target_is_pushed): Simplify.
2391
2392 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2393
2394 GDB 7.8 released.
2395
2396 2014-07-29 Yao Qi <yao@codesourcery.com>
2397
2398 PR gdb/17206
2399 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2400
2401 2014-07-28 Doug Evans <xdje42@gmail.com>
2402
2403 PR guile/17203
2404 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2405 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2406 parameters.
2407
2408 2014-07-28 Will Newton <will.newton@linaro.org>
2409
2410 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2411 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2412 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2413 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2414 (THUMB2_EABI_SYSCALL): Likewise.
2415 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2416 struct tramp_frame.
2417 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2418 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2419
2420 2014-07-27 Doug Evans <xdje42@gmail.com>
2421
2422 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2423
2424 2014-07-27 Doug Evans <xdje42@gmail.com>
2425
2426 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2427
2428 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2429 Doug Evans <xdje42@gmail.com>
2430
2431 PR guile/17146
2432 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2433 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2434 * configure.ac: Try to use guild to compile an scm file, if it fails
2435 then disable guile support.
2436 * configure: Regenerate.
2437 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2438 GUILE_FILE_LIST.
2439 (GUILE_COMPILED_FILES): New variable.
2440 (GUILE_FILES) Update.
2441 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2442 (stamp-guile): Compile scm files.
2443 * guile/guile.c (boot_guile_support): New function.
2444 (standard_throw_args_p): New function.
2445 (print_standard_throw_error, print_throw_error): New functions.
2446 (handle_boot_error): New function.
2447 (initialize_scheme_side): Rewrite to call boot_guile_support.
2448 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2449 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2450
2451 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2452 Doug Evans <xdje42@gmail.com>
2453
2454 PR guile/17146
2455 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2456 * guile/lib/gdb/support.scm: New file.
2457 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2458 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2459 All uses updated.
2460 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2461 All uses updated.
2462 (%assert-type): Ditto, and renamed to assert-type.
2463 (%exception-print-style): Delete.
2464
2465 2014-07-26 Doug Evans <xdje42@gmail.com>
2466
2467 PR build/17105
2468 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2469 * configure: Regenerate.
2470 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2471 PYTHON_FILES.
2472 (PYTHON_FILES): New variable.
2473 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2474 (GUILE_FILES): New variable.
2475 (stamp-python, install-python, uninstall-python): Handle empty
2476 file list.
2477 (stamp-guile, install-guile, uninstall-guile): Ditto.
2478
2479 2014-07-26 Doug Evans <xdje42@gmail.com>
2480
2481 PR guile/17177
2482 * guile/lib/gdb.scm (pretty-printers): Export.
2483 (set-pretty-printers!): Export.
2484 * guile/lib/gdb/printing.scm (gdb module): Update.
2485 (prepend-pretty-printer!, append-pretty-printer!): Update.
2486 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2487 (pretty_printer_list_var): Delete.
2488 (pretty_printer_list): New static global.
2489 (gdbscm_pretty_printers): New function.
2490 (gdbscm_set_pretty_printers_x): New function.
2491 (ppscm_find_pretty_printer_from_gdb): Update.
2492 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2493 (gdbscm_initialize_pretty_printers): Update.
2494
2495 2014-07-26 Doug Evans <xdje42@gmail.com>
2496
2497 PR 17185
2498 * configure.ac: Add check for header gc/gc.h.
2499 Add check for function setenv.
2500 * configure: Regenerate.
2501 * config.in: Regenerate.
2502 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2503
2504 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2505
2506 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2507 variation in gdbarch matching.
2508
2509 2014-07-25 Tom Tromey <tromey@redhat.com>
2510
2511 * exec.c (using_exec_ops): Remove.
2512 (exec_close_1): Update. Remove extraneous block, reindent.
2513 (add_target_sections): Use target_is_pushed.
2514
2515 2014-07-25 Pedro Alves <palves@redhat.com>
2516
2517 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2518 * monitor.c (monitor_create_inferior): Likewise.
2519 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2520 * remote-sim.c (gdbsim_create_inferior): Likewise.
2521 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2522 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2523 * windows-nat.c (do_initial_windows_stuff): Likewise.
2524
2525 2014-07-25 Pedro Alves <palves@redhat.com>
2526
2527 * NEWS: Mention signal passing and "signal" command changes.
2528 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2529 comment.
2530 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2531 call.
2532 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2533 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2534 (jump_command): Adjust clear_proceed_status call.
2535 (signal_command): Warn if other thread that are resumed have
2536 signals that will be delivered. Adjust clear_proceed_status call.
2537 (until_next_command, finish_command)
2538 (proceed_after_attach_callback, attach_command_post_wait)
2539 (attach_command): Adjust clear_proceed_status call.
2540 * infrun.c (proceed_after_vfork_done): Likewise.
2541 (proceed_after_attach_callback): Adjust comment.
2542 (clear_proceed_status_thread): Clear stop_signal if not in pass
2543 state.
2544 (clear_proceed_status_callback): Delete.
2545 (clear_proceed_status): New 'step' parameter. Only clear the
2546 proceed status of threads the command being prepared is about to
2547 resume.
2548 (proceed): If passed in an explicit signal, override stop_signal
2549 with it. Don't pass the last stop signal to the thread we're
2550 resuming.
2551 (init_wait_for_inferior): Adjust clear_proceed_status call.
2552 (switch_back_to_stepped_thread): Clear the signal if it should not
2553 be passed.
2554 * infrun.h (clear_proceed_status): New 'step' parameter.
2555 (user_visible_resume_ptid): Add comment.
2556 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2557 signal is in pass state.
2558 * remote.c (append_pending_thread_resumptions): Likewise.
2559 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2560
2561 2014-07-25 Tom Tromey <tromey@redhat.com>
2562
2563 * target.h (target_stopped_data_address)
2564 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2565 parentheses.
2566
2567 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2568
2569 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2570 comments.
2571 (avr_pointer_to_address): Likewise.
2572
2573 2014-07-24 Tom Tromey <tromey@redhat.com>
2574
2575 * monitor.c (compile_pattern): Update.
2576 * target.h (struct target_ops) <to_shortname, to_longname,
2577 to_doc>: Now const.
2578
2579 2014-07-24 Tom Tromey <tromey@redhat.com>
2580
2581 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2582 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2583 (add_info_alias, add_com): Make "doc" const.
2584 (print_doc_line): Make "str" const.
2585 (delete_cmd): Update.
2586 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2587 (print_doc_line): Update.
2588 * cli/cli-script.c (document_command): Update.
2589 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2590 (add_com, add_info, add_info_alias): Update.
2591 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2592 * python/py-cmd.c (cmdpy_destroyer): Update.
2593
2594 2014-07-24 Tom Tromey <tromey@redhat.com>
2595
2596 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2597 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2598 (help_cmd_list): Constify.
2599 (lookup_cmd): Update.
2600 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2601 const.
2602 (help_cmd_list, apropos_cmd): Update.
2603 * cli/cli-script.c (show_user): Update.
2604 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2605 * cli/cli-setshow.h (cmd_show_list): Update.
2606 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2607 (cmd_show_list): Update.
2608 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2609 * python/py-cmd.c (cmdpy_destroyer): Update.
2610
2611 2014-07-24 Tom Tromey <tromey@redhat.com>
2612
2613 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2614 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2615 const.
2616 * command.h (deprecate_cmd): Update.
2617 * maint.c (maintenance_do_deprecate): Add casts.
2618
2619 2014-07-24 Tom Tromey <tromey@redhat.com>
2620
2621 * cli/cli-decode.c (help_cmd): Make parameter "const".
2622 * cli/cli-decode.h (help_cmd): Update.
2623
2624 2014-07-24 Tom Tromey <tromey@redhat.com>
2625
2626 * stack.c (up_silently_base, down_silently_base): Make argument
2627 const.
2628
2629 2014-07-24 Tom Tromey <tromey@redhat.com>
2630
2631 * solib.c (solib_add): Make "pattern" const.
2632 * solib.h (solib_add): Update.
2633
2634 2014-07-24 Tom Tromey <tromey@redhat.com>
2635
2636 * remote.c (remote_serial_open, print_packet, putpkt)
2637 (putpkt_binary): Constify.
2638 * remote.h (putpkt): Update.
2639
2640 2014-07-24 Tom Tromey <tromey@redhat.com>
2641
2642 * monitor.c (monitor_open): Make "args" const.
2643 * monitor.h (monitor_open): Update.
2644
2645 2014-07-24 Tom Tromey <tromey@redhat.com>
2646
2647 * maint.c (match_bfd_flags): Make "string" const.
2648 (print_bfd_section_info): Remove casts.
2649 (print_objfile_section_info): Make "string" const.
2650
2651 2014-07-24 Tom Tromey <tromey@redhat.com>
2652
2653 * inf-child.c (inf_child_open_target): Make "arg" const.
2654 * inf-child.h (inf_child_open_target): Update.
2655
2656 2014-07-24 Tom Tromey <tromey@redhat.com>
2657
2658 * environ.c (unset_in_environ): Make "var" const.
2659 * environ.h (unset_in_environ): Update.
2660
2661 2014-07-24 Tom Tromey <tromey@redhat.com>
2662
2663 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2664 Make "cmd" const.
2665 (scan_filename_with_cleanup): Likewise.
2666 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2667 Make arguments const.
2668 (restore_command): Update.
2669
2670 2014-07-24 Pedro Alves <palves@redhat.com>
2671
2672 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2673
2674 2014-07-24 Tom Tromey <tromey@redhat.com>
2675 Gary Benson <gbenson@redhat.com>
2676
2677 * nat/linux-ptrace.c (additional_flags): New global.
2678 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2679 additional_flags; don't check GDBSERVER.
2680 (linux_ptrace_set_additional_flags): New function.
2681 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2682 Declare.
2683 * linux-nat.c (_initialize_linux_nat): Call
2684 linux_ptrace_set_additional_flags.
2685
2686 2014-07-24 Tom Tromey <tromey@redhat.com>
2687
2688 * make-target-delegates (munge_type, write_debugmethod): New
2689 functions.
2690 (debug_names): New global.
2691 ($TARGET_DEBUG_PRINTER): New global.
2692 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2693 name.
2694 Write debug methods. Generate init_debug_target.
2695 * target-debug.h: New file.
2696 * target-delegates.c: Rebuild.
2697 * target.c: Include target-debug.h.
2698 (debug_target): Hoist definition.
2699 (target_kill, target_get_section_table, target_memory_map)
2700 (target_flash_erase, target_flash_done, target_detach)
2701 (target_disconnect, target_wait, target_resume)
2702 (target_pass_signals, target_program_signals, target_follow_fork)
2703 (target_mourn_inferior, target_search_memory)
2704 (target_thread_address_space, target_close)
2705 (target_find_new_threads, target_core_of_thread)
2706 (target_verify_memory, target_insert_mask_watchpoint)
2707 (target_remove_mask_watchpoint): Remove targetdebug code.
2708 (debug_to_post_attach, debug_to_prepare_to_store)
2709 (debug_to_files_info, debug_to_insert_breakpoint)
2710 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2711 (debug_to_region_ok_for_hw_watchpoint)
2712 (debug_to_can_accel_watchpoint_condition)
2713 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2714 (debug_to_watchpoint_addr_within_range)
2715 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2716 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2717 (debug_to_terminal_init, debug_to_terminal_inferior)
2718 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2719 (debug_to_terminal_save_ours, debug_to_terminal_info)
2720 (debug_to_load, debug_to_post_startup_inferior)
2721 (debug_to_insert_fork_catchpoint)
2722 (debug_to_remove_fork_catchpoint)
2723 (debug_to_insert_vfork_catchpoint)
2724 (debug_to_remove_vfork_catchpoint)
2725 (debug_to_insert_exec_catchpoint)
2726 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2727 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2728 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2729 (setup_target_debug): Call init_debug_target.
2730 * target.h (TARGET_DEBUG_PRINTER): New macro.
2731 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2732 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2733
2734 2014-07-24 Gary Benson <gbenson@redhat.com>
2735
2736 * exceptions.h (throw_vfatal): Renamed to...
2737 (throw_vquit): New declaration.
2738 (throw_quit): Likewise.
2739 * exceptions.c (throw_vfatal): Renamed to...
2740 (throw_vquit): New function.
2741 (throw_quit): Likewise.
2742 (throw_error): Call throw_verror rather than throw_it.
2743 * utils.h (vfatal): Removed.
2744 (fatal): Likewise.
2745 * utils.c (vfatal): Removed.
2746 (fatal): Likewise.
2747 (internal_verror): Replaced call to fatal with call to throw_quit.
2748 (quit): Replaced calls to fatal with calls to throw_quit.
2749
2750 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2751
2752 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2753 target_read_code.
2754
2755 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2756
2757 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2758 less than zero in conditional expression.
2759
2760 2014-07-23 Tom Tromey <tromey@redhat.com>
2761
2762 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2763 ($INTRO_PART): Don't match whitespace.
2764 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2765 argument matching.
2766 ($METHOD): Add $METHOD_TRAILER.
2767 (trim): Rewrite.
2768 (scan_target_h): New sub.
2769 Change main loop not to collect state.
2770 * target-delegates.c: Rebuild.
2771
2772 2014-07-23 Gary Benson <gbenson@redhat.com>
2773
2774 * cp-support.c (gdb_demangle): Fix build on systems without
2775 sigaltstack.
2776
2777 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2778
2779 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2780 for reference entry value target data value.
2781
2782 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2783
2784 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2785 value_available_contents_eq.
2786
2787 2014-07-22 Pedro Alves <palves@redhat.com>
2788
2789 * value.c (allocate_optimized_out_value): Don't mark value as
2790 non-lazy.
2791
2792 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2793
2794 * MAINTAINERS (Write After Approval): Update my email address.
2795
2796 2014-07-20 Doug Evans <dje@google.com>
2797
2798 PR server/17147
2799 * remote.c (putpkt_binary): Add text to error message.
2800
2801 2014-07-20 Yao Qi <yao@codesourcery.com>
2802
2803 * eval.c: Remove "Chill" from comments.
2804 * gdbtypes.h: Likewise.
2805 * symtab.h: Likewise.
2806
2807 2014-07-20 Yao Qi <yao@codesourcery.com>
2808
2809 * std-operator.def: Update comments to TERNOP_SLICE.
2810
2811 2014-07-20 Yao Qi <yao@codesourcery.com>
2812
2813 * std-operator.def: Remove BINOP_RANGE.
2814 * breakpoint.c (watchpoint_exp_is_const): Update.
2815 * expprint.c (dump_subexp_body_standard): Likewise.
2816 * eval.c (init_array_element): Remove dead code.
2817 (evaluate_subexp_standard): Likewise.
2818
2819 2014-07-20 Yao Qi <yao@codesourcery.com>
2820
2821 * std-operator.def: Remove BINOP_IN.
2822 * breakpoint.c (watchpoint_exp_is_const): Update.
2823 * eval.c (evaluate_subexp_standard): Likewise.
2824 * expprint.c (dump_subexp_body_standard): Likewise.
2825
2826 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2827
2828 * microblaze-tdep.c (microblaze_register_names): Add
2829 the rshr and rslr register names.
2830 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2831 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2832 Use of tdesc_numbered_register. Use of
2833 microblaze_register_g_packet_guesses. Use of
2834 tdesc_use_registers. Use of set_gdbarch_register_type.
2835 (microblaze_register_g_packet_guesses): New.
2836 * microblaze-tdep.h (microblaze_reg_num): Add
2837 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2838 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2839 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2840 * features/microblaze-core.xml: New file.
2841 * features/microblaze-stack-protect.xml: New file.
2842 * features/microblaze-with-stack-protect.c: New file.
2843 * features/microblaze-with-stack-protect.xml: New file.
2844 * features/microblaze.xml: New file.
2845 * features/microblaze.c: New file.
2846 * features/Makefile (microblaze-with-stack-protect): Add
2847 microblaze-with-stack-protect microblaze and microblaze-expedite.
2848 * regformats/microblaze-with-stack-protect.dat: New file.
2849 * regformats/microblaze.dat: New file.
2850 * doc/gdb.texinfo (MicroBlaze Features): Added.
2851
2852 2014-07-18 Tom Tromey <tromey@redhat.com>
2853
2854 * exec.c (exec_ops): Now static.
2855 * exec.h (exec_ops): Don't declare.
2856
2857 2014-07-18 Tom Tromey <tromey@redhat.com>
2858
2859 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2860 to find_target_beneath.
2861 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2862 find_target_beneath.
2863 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2864
2865 2014-07-18 Tom Tromey <tromey@redhat.com>
2866
2867 PR gdb/17130:
2868 * utils.c (quit): Use target_supports_terminal_ours.
2869 * target.h (target_supports_terminal_ours): Declare.
2870 * target.c (target_supports_delete_record): Don't check
2871 to_delete_record against NULL.
2872 (target_supports_terminal_ours): New function.
2873
2874 2014-07-18 Tom Tromey <tromey@redhat.com>
2875
2876 PR gdb/17130:
2877 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2878 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2879 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2880 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2881 * windows-nat.c (windows_xfer_partial): Always delegate.
2882 * record-btrace.c (record_btrace_xfer_partial): Simplify
2883 delegation.
2884 (record_btrace_fetch_registers, record_btrace_store_registers)
2885 (record_btrace_prepare_to_store, record_btrace_resume)
2886 (record_btrace_wait, record_btrace_find_new_threads)
2887 (record_btrace_thread_alive): Likewise.
2888 * procfs.c (procfs_xfer_partial): Always delegate.
2889 * corelow.c (core_xfer_partial): Always delegate.
2890 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2891
2892 2014-07-18 Tom Tromey <tromey@redhat.com>
2893
2894 * exec.c (exec_make_note_section): Move earlier.
2895
2896 2014-07-17 Doug Evans <dje@google.com>
2897
2898 PR gdb/17170
2899 * maint.c (count_symtabs_and_blocks): Handle NULL
2900 current_program_space.
2901 (report_command_stats): Check global enabled flag in addition to
2902 recorded enabled flag.
2903 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2904
2905 2014-07-16 Pedro Alves <palves@redhat.com>
2906
2907 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2908
2909 2014-07-16 Tom Tromey <tromey@redhat.com>
2910
2911 * target.h (struct target_ops) <to_delete_record>: Reformat
2912 comment.
2913
2914 2014-07-16 Tom Tromey <tromey@redhat.com>
2915
2916 * target-delegates.c: Rebuild.
2917
2918 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2919
2920 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2921 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2922 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2923 (avr_pointer_to_address): Likewise.
2924 (avr_address_class_type_flags): New function.
2925 (avr_address_class_type_flags_to_name): Likewise.
2926 (avr_address_class_name_to_type_flags): Likewise.
2927 (avr_gdbarch_init): Set address_class_type_flags,
2928 address_class_type_flags_to_name and
2929 address_class_name_to_type_flags.
2930
2931 2014-07-15 Pedro Alves <palves@redhat.com>
2932
2933 * linux-nat.c (kill_callback): Save errno and work with saved
2934 copy.
2935
2936 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2937
2938 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2939
2940 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2941
2942 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2943 breakpoint support correctly.
2944
2945 2014-07-14 Pedro Alves <palves@redhat.com>
2946
2947 * utils.c (prompt_for_continue): Call target_terminal_ours.
2948
2949 2014-07-14 Pedro Alves <palves@redhat.com>
2950
2951 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2952 catch_errors. Don't re-enable stdin or notify observers where,
2953 and rethrow error.
2954 (fetch_inferior_event_wrapper): Delete.
2955
2956 2014-07-14 Pedro Alves <palves@redhat.com>
2957
2958 PR gdb/17072
2959 * top.c: Include "inf-loop.h".
2960 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2961 field.
2962 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2963 was async before.
2964 (gdb_readline_wrapper): Store whether the target is async, and
2965 make it sync.
2966
2967 2014-07-14 Pedro Alves <palves@redhat.com>
2968
2969 PR gdb/17072
2970 * top.c (gdb_readline_wrapper_line): Tweak comment.
2971 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2972 the input handler callback.
2973
2974 2014-07-14 Pedro Alves <palves@redhat.com>
2975
2976 PR gdb/17072
2977 * main.c: Include event-top.h.
2978 (handle_command_errors): New function.
2979 (catch_command_errors, catch_command_errors_const): Use it.
2980
2981 2014-07-14 Pedro Alves <palves@redhat.com>
2982
2983 * exceptions.c (catch_command_errors, catch_command_errors_const):
2984 Moved to main.c.
2985 * exceptions.h (catch_command_errors_ftype)
2986 (catch_command_errors_const_ftype): Moved to main.c.
2987 (catch_command_errors, catch_command_errors_const): Delete
2988 declarations.
2989 * main.c (catch_command_errors_ftype)
2990 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2991 (catch_command_errors, catch_command_errors_const)): Moved here
2992 from exceptions.c and make static.
2993
2994 2014-07-14 Pedro Alves <palves@redhat.com>
2995
2996 * exceptions.c (print_any_exception): Delete.
2997 (catch_exceptions_with_msg): Use exception_print instead of
2998 print_any_exception.
2999 (catch_errors): Use exception_fprintf instead of
3000 print_any_exception.
3001 (catch_command_errors, catch_command_errors_const): Use
3002 exception_print instead of print_any_exception.
3003
3004 2014-07-14 Pedro Alves <palves@redhat.com>
3005
3006 * infcall.c (run_inferior_call): Set 'sync_execution' while
3007 running the inferior call.
3008
3009 2014-07-14 Pedro Alves <palves@redhat.com>
3010
3011 * value.c (value_contents_equal): Delete function.
3012 * value.h (value_contents_equal): Delete declaration.
3013
3014 2014-07-14 Tom Tromey <tromey@redhat.com>
3015
3016 PR exp/17106:
3017 * gdbtypes.c (is_dynamic_type_internal): New function, from
3018 is_dynamic_type.
3019 (is_dynamic_type): Rewrite.
3020 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3021 (resolve_dynamic_struct): Likewise.
3022 (resolve_dynamic_type_internal): New function, from
3023 resolve_dynamic_type.
3024 (resolve_dynamic_type): Rewrite.
3025
3026 2014-07-14 Tom Tromey <tromey@redhat.com>
3027
3028 * target.c (target_require_runnable): Also check record_stratum.
3029 Update comment.
3030
3031 2014-07-11 Yao Qi <yao@codesourcery.com>
3032
3033 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3034 thumb_instruction_restores_sp return true.
3035
3036 2014-07-11 Yao Qi <yao@codesourcery.com>
3037
3038 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3039 (thumb_in_function_epilogue_p): Call
3040 thumb_instruction_restores_sp.
3041
3042 2014-07-11 Yao Qi <yao@codesourcery.com>
3043
3044 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3045 'add sp, #imm'.
3046 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3047
3048 2014-07-11 Gary Benson <gbenson@redhat.com>
3049
3050 * amd64-linux-nat.c (gdbcore.h): Remove include.
3051 (regset.h): Likewise.
3052 (nat/linux-btrace.h): Likewise.
3053 (btrace.h): Likewise.
3054 (gdb_assert.h): Likewise.
3055 (string.h): Likewise.
3056 (sys/uio.h): Likewise.
3057 (sys/debugreg.h): Likewise.
3058 (sys/syscall.h): Likewise.
3059 (sys/procfs.h): Likewise.
3060 (sys/user.h): Likewise.
3061 (asm/ptrace.h): Likewise.
3062 (i386-nat.h): Likewise.
3063 * i386-linux-nat.c (i386-nat.h): Likewise.
3064 (regset.h): Likewise.
3065 (target.h): Likewise.
3066 (linux-nat.h): Likewise.
3067 (nat/linux-btrace.h): Likewise.
3068 (btrace.h): Likewise.
3069 (gdb_assert.h): Likewise.
3070 (string.h): Likewise.
3071 (sys/uio.h): Likewise.
3072 (sys/user.h): Likewise.
3073 (sys/procfs.h): Likewise.
3074 (sys/reg.h): Likewise.
3075 (sys/debugreg.h): Likewise.
3076 (ORIG_EAX): Remove definition.
3077
3078 2014-07-11 Gary Benson <gbenson@redhat.com>
3079
3080 * i386-linux-nat.h: New file.
3081 * x86-linux-nat.h: Likewise.
3082 * x86-linux-nat.c: Likewise.
3083 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3084 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3085 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3086 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3087 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3088 (PTRACE_SETREGSET): Likewise.
3089 (arch_lwp_info): Now in x86-linux-nat.c.
3090 (have_ptrace_getregset): Now in x86-linux-nat.h.
3091 (x86_linux_dr_get): Now in x86-linux-nat.c.
3092 (x86_linux_dr_set): Likewise.
3093 (x86_linux_dr_get_addr): Likewise.
3094 (x86_linux_dr_get_control): Likewise.
3095 (x86_linux_dr_get_status): Likewise.
3096 (update_debug_registers_callback): Likewise.
3097 (x86_linux_dr_set_control): Likewise.
3098 (x86_linux_dr_set_addr): Likewise.
3099 (x86_linux_prepare_to_resume): Likewise.
3100 (x86_linux_new_thread): Likewise.
3101 (x86_linux_new_fork): Likewise.
3102 (x86_linux_get_thread_area): Likewise.
3103 (super_post_startup_inferior): Likewise.
3104 (x86_linux_child_post_startup_inferior): Likewise.
3105 (AMD64_LINUX_USER64_CS): Likewise.
3106 (AMD64_LINUX_X32_DS): Likewise.
3107 (x86_linux_read_description): Likewise.
3108 (x86_linux_enable_btrace): Likewise.
3109 (x86_linux_disable_btrace): Likewise.
3110 (x86_linux_teardown_btrace): Likewise.
3111 (x86_linux_read_btrace): Likewise.
3112 (x86_linux_create_target): Likewise.
3113 (x86_linux_add_target): Likewise.
3114 * i386-linux-nat.c (x86-linux-nat.h): New include.
3115 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3116 (PTRACE_SETREGSET): Likewise.
3117 (arch_lwp_info): Now in x86-linux-nat.c.
3118 (have_ptrace_getregset): Now in x86-linux-nat.h.
3119 (x86_linux_dr_get): Now in x86-linux-nat.c.
3120 (x86_linux_dr_set): Likewise.
3121 (x86_linux_dr_get_addr): Likewise.
3122 (x86_linux_dr_get_control): Likewise.
3123 (x86_linux_dr_get_status): Likewise.
3124 (update_debug_registers_callback): Likewise.
3125 (x86_linux_dr_set_control): Likewise.
3126 (x86_linux_dr_set_addr): Likewise.
3127 (x86_linux_prepare_to_resume): Likewise.
3128 (x86_linux_new_thread): Likewise.
3129 (x86_linux_new_fork): Likewise.
3130 (x86_linux_get_thread_area): Likewise.
3131 (super_post_startup_inferior): Likewise.
3132 (x86_linux_child_post_startup_inferior): Likewise.
3133 (AMD64_LINUX_USER64_CS): Likewise.
3134 (AMD64_LINUX_X32_DS): Likewise.
3135 (x86_linux_read_description): Likewise.
3136 (x86_linux_enable_btrace): Likewise.
3137 (x86_linux_disable_btrace): Likewise.
3138 (x86_linux_teardown_btrace): Likewise.
3139 (x86_linux_read_btrace): Likewise.
3140 (x86_linux_create_target): Likewise.
3141 (x86_linux_add_target): Likewise.
3142
3143 2014-07-11 Gary Benson <gbenson@redhat.com>
3144
3145 * amd64-linux-nat.c: Comment and whitespace changes.
3146 * i386-linux-nat.c: Comment and whitespace changes.
3147
3148 2014-07-11 Gary Benson <gbenson@redhat.com>
3149
3150 * amd64-linux-nat.c (x86_linux_create_target): New function.
3151 (x86_linux_add_target): Likewise.
3152 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3153 * i386-linux-nat.c (x86_linux_create_target): New function.
3154 (x86_linux_add_target): Likewise.
3155 (_initialize_i386_linux_nat): Delegate to the above new functions.
3156
3157 2014-07-11 Gary Benson <gbenson@redhat.com>
3158
3159 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3160 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3161 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3162 (ps_get_thread_area): Delegate to the above.
3163
3164 2014-07-11 Gary Benson <gbenson@redhat.com>
3165
3166 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3167 x86_linux_read_description. All uses updated. amd64-specific
3168 code conditionalized. Conditionalized i386-specific code added.
3169 Redundant cast removed.
3170 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3171 x86_linux_read_description. All uses updated. i386-specific
3172 code conditionalized. Conditionalized amd64-specific code added.
3173 One sizeof replaced with the actual type it is describing.
3174
3175 2014-07-11 Gary Benson <gbenson@redhat.com>
3176
3177 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3178 x86_linux_dr_get. All uses updated.
3179 (amd64_linux_dr_set): Renamed to
3180 x86_linux_dr_set. All uses updated.
3181 (amd64_linux_dr_get_addr): Renamed to
3182 x86_linux_dr_get_addr. All uses updated.
3183 (amd64_linux_dr_get_control): Renamed to
3184 x86_linux_dr_get_control. All uses updated.
3185 (amd64_linux_dr_get_status): Renamed to
3186 x86_linux_dr_get_status. All uses updated.
3187 (amd64_linux_dr_set_control): Renamed to
3188 x86_linux_dr_set_control. All uses updated.
3189 (amd64_linux_dr_set_addr): Renamed to
3190 x86_linux_dr_set_addr. All uses updated.
3191 (amd64_linux_prepare_to_resume): Renamed to
3192 x86_linux_prepare_to_resume. All uses updated.
3193 (amd64_linux_new_thread): Renamed to
3194 x86_linux_new_thread. All uses updated.
3195 (amd64_linux_new_fork): Renamed to
3196 x86_linux_new_fork. All uses updated.
3197 (amd64_linux_child_post_startup_inferior): Renamed to
3198 x86_linux_child_post_startup_inferior. All uses updated.
3199 (amd64_linux_enable_btrace): Renamed to
3200 x86_linux_enable_btrace. All uses updated.
3201 (amd64_linux_disable_btrace): Renamed to
3202 x86_linux_disable_btrace. All uses updated.
3203 (amd64_linux_teardown_btrace): Renamed to
3204 x86_linux_teardown_btrace. All uses updated.
3205 (amd64_linux_read_btrace): Renamed to
3206 x86_linux_read_btrace. All uses updated.
3207 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3208 x86_linux_dr_get. All uses updated.
3209 (i386_linux_dr_set): Renamed to
3210 x86_linux_dr_set. All uses updated.
3211 (i386_linux_dr_get_addr): Renamed to
3212 x86_linux_dr_get_addr. All uses updated.
3213 (i386_linux_dr_get_control): Renamed to
3214 x86_linux_dr_get_control. All uses updated.
3215 (i386_linux_dr_get_status): Renamed to
3216 x86_linux_dr_get_status. All uses updated.
3217 (i386_linux_dr_set_control): Renamed to
3218 x86_linux_dr_set_control. All uses updated.
3219 (i386_linux_dr_set_addr): Renamed to
3220 x86_linux_dr_set_addr. All uses updated.
3221 (i386_linux_prepare_to_resume): Renamed to
3222 x86_linux_prepare_to_resume. All uses updated.
3223 (i386_linux_new_thread): Renamed to
3224 x86_linux_new_thread. All uses updated.
3225 (i386_linux_new_fork): Renamed to
3226 x86_linux_new_fork. All uses updated.
3227 (i386_linux_child_post_startup_inferior): Renamed to
3228 x86_linux_child_post_startup_inferior. All uses updated.
3229 (i386_linux_enable_btrace): Renamed to
3230 x86_linux_enable_btrace. All uses updated.
3231 (i386_linux_disable_btrace): Renamed to
3232 x86_linux_disable_btrace. All uses updated.
3233 (i386_linux_teardown_btrace): Renamed to
3234 x86_linux_teardown_btrace. All uses updated.
3235 (i386_linux_read_btrace): Renamed to
3236 x86_linux_read_btrace. All uses updated.
3237
3238 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3239
3240 * remote.c (extended_remote_post_attach): New function.
3241 (init_extended_remote_ops): Install it as to_post_attach method.
3242
3243 2014-07-09 Pedro Alves <palves@redhat.com>
3244
3245 * infcmd.c (attach_command_post_wait): Don't call
3246 target_terminal_inferior here.
3247 (attach_command): Call it here instead.
3248
3249 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3250
3251 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3252 field.
3253 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3254 from varobj.c, with additional checks.
3255 (c_varobj_ops): Fill in is_path_expr_parent field.
3256 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3257 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3258 field.
3259 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3260 ops method.
3261 (varobj_default_is_path_expr_parent): New function.
3262 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3263 (varobj_default_is_path_expr_parent): Declare new function.
3264
3265 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3266
3267 * infcmd.c (finish_backward): Turn internal error into normal error.
3268
3269 2014-07-07 Pedro Alves <palves@redhat.com>
3270
3271 PR gdb/17096
3272 * remote.c (async_handle_remote_sigint)
3273 (async_handle_remote_sigint_twice): Call
3274 gdb_call_async_signal_handler instead of
3275 mark_async_signal_handler.
3276
3277 2014-07-07 Tom Tromey <tromey@redhat.com>
3278
3279 * target-delegates.c: Rebuild.
3280 * target.c (target_info_record): Remove.
3281 * record.c (info_record_command): Unconditionally call
3282 to_info_record.
3283 * target.h (struct target_ops) <to_info_record>: Use
3284 TARGET_DEFAULT_IGNORE.
3285 (target_info_record): Remove.
3286
3287 2014-07-07 Tom Tromey <tromey@redhat.com>
3288
3289 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3290 TARGET_DEFAULT_NORETURN.
3291 * target.c (generic_tls_error): New function.
3292 (target_translate_tls_address): Don't search target stack.
3293 * target-delegates.c: Rebuild.
3294 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3295 stack.
3296 * linux-thread-db.c (thread_db_get_thread_local_address):
3297 Unconditionally call beneath target.
3298
3299 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3300
3301 * cli/cli-logging.c (pop_output_files): Assign targerr to
3302 gdb_stdtargerr.
3303
3304 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3305
3306 * MAINTAINERS (Write After Approval): Update my email address.
3307
3308 2014-07-02 Gary Benson <gbenson@redhat.com>
3309
3310 * proc-service.c (ps_xfer_memory): Update comment.
3311 (ps_pstop): Remove unused function.
3312 (ps_pcontinue): Likewise.
3313 (ps_lstop): Likewise.
3314 (ps_lcontinue): Likewise.
3315 (ps_lgetxregsize): Likewise.
3316 (ps_lgetxregs): Likewise.
3317 (ps_lsetxregs): Likewise.
3318 (ps_plog): Likewise.
3319 (ps_ptread): Likewise.
3320 (ps_ptwrite): Likewise.
3321
3322 2014-07-01 Mark Wielaard <mjw@redhat.com>
3323
3324 * dwarf2read.c (add_array_cv_type): New function.
3325 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3326 (read_tag_volatile_type): Likewise.
3327
3328 2014-07-01 Tom Tromey <tromey@redhat.com>
3329
3330 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3331 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3332 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3333 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3334 * command.h (cmd_cfunc_ftype): Move earlier.
3335 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3336 (add_com, add_info): Use cmd_cfunc_ftype.
3337
3338 2014-06-30 Tom Tromey <tromey@redhat.com>
3339
3340 * symtab.c (operator_chars): Make parameters and return type
3341 const.
3342 (file_matches): Make "files" const.
3343 (struct search_symbols_data) <files>: Now const.
3344 (search_symbols): Make "regexp" and "files" parameters const.
3345 Update.
3346 (symtab_symbol_info): Remove cast.
3347 (rbreak_command): Update.
3348 * symtab.h (search_symbols): Update.
3349
3350 2014-06-27 Yao Qi <yao@codesourcery.com>
3351
3352 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3353 Change parameter type to 'struct thread_info *'. Caller
3354 updated.
3355 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3356 Update declaration.
3357 * dummy-frame.c (struct dummy_frame_id): New.
3358 (dummy_frame_id_eq): New function.
3359 (struct dummy_frame) <id>: Change its type to 'struct
3360 dummy_frame_id'.
3361 (dummy_frame_push): Add parameter ptid and save it in
3362 dummy_frame_id.
3363 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3364 inferior_ptid.
3365 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3366 to inferior_ptid.
3367 (lookup_dummy_frame): Change parameter type to 'struct
3368 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3369 instead of frame_id_eq.
3370 (dummy_frame_pop): Add parameter ptid. Callers updated.
3371 Update comments. Compose dummy_frame_id and pass it to
3372 lookup_dummy_frame.
3373 (dummy_frame_discard): Add parameter ptid.
3374 (dummy_frame_sniffer): Compose dummy_frame_id and call
3375 dummy_frame_id_eq instead of frame_id_eq.
3376 (fprint_dummy_frames): Print ptid.
3377 * dummy-frame.h: Remove comments.
3378 (dummy_frame_push): Add ptid in declaration.
3379 (dummy_frame_pop, dummy_frame_discard): Likewise.
3380
3381 2014-06-26 Tom Tromey <tromey@redhat.com>
3382
3383 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3384 * command.h (error_no_arg): Update.
3385
3386 2014-06-26 Tom Tromey <tromey@redhat.com>
3387
3388 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3389 (do_show_command): Make "arg" const.
3390 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3391
3392 2014-06-26 Tom Tromey <tromey@redhat.com>
3393
3394 * record-full.c (record_full_get_bookmark): Make "args" const.
3395 (record_full_goto_bookmark): Make "raw_bookmark" const.
3396 * record.c (record_goto): New function.
3397 (cmd_record_goto): Use it. Now static.
3398 * record.h (record_goto): Declare.
3399 (cmd_record_goto): Remove declaration.
3400 * target-delegates.c: Rebuild.
3401 * target.h (struct target_ops) <to_get_bookmark,
3402 to_goto_bookmark>: Make parameter const.
3403
3404 2014-06-26 Tom Tromey <tromey@redhat.com>
3405
3406 * defs.h (generic_load): Update.
3407 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3408 * monitor.c (monitor_load): Make "args" const.
3409 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3410 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3411 const.
3412 (mips_load): Make "file" const.
3413 * remote-sim.c (gdbsim_load): Make "args" const.
3414 * remote.c (remote_load): Make "name" const.
3415 * symfile.c (generic_load): Make "args" const.
3416 * target-delegates.c: Rebuild.
3417 * target.c (target_load): Make "arg" const.
3418 (debug_to_load): Make "args" const.
3419 * target.h (struct target_ops) <to_load>: Make parameter const.
3420 (target_load): Update.
3421
3422 2014-06-26 Tom Tromey <tromey@redhat.com>
3423
3424 PR symtab/16902:
3425 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3426 (dwarf2_physname, read_partial_die)
3427 (guess_partial_die_structure_name, fixup_partial_die)
3428 (guess_full_die_structure_name, anonymous_struct_prefix)
3429 (dwarf2_name): Use per-BFD obstack.
3430
3431 2014-06-26 Yao Qi <yao@codesourcery.com>
3432
3433 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3434 dummyframe and this_id into inner block below.
3435
3436 2014-06-26 Yao Qi <yao@codesourcery.com>
3437
3438 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3439 with "signal_pass[0]" in the initialization of signal_pass.
3440
3441 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3442
3443 * record-btrace.c (record_btrace_generating_corefile)
3444 (record_btrace_prepare_to_generate_core)
3445 (record_btrace_done_generating_core): New.
3446 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3447 (record_btrace_store_registers, record_btrace_prepare_to_store):
3448 Forward request when generating a core file.
3449 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3450 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3451 to_done_generating_core.
3452
3453 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3454
3455 * target.h (target_ops) <to_prepare_to_generate_core>
3456 <to_done_generating_core>: New.
3457 (target_prepare_to_generate_core, target_done_generating_core): New.
3458 * target.c (target_prepare_to_generate_core)
3459 (target_done_generating_core): New.
3460 * target-delegates.c: Regenerate.
3461 * gcore.c: (write_gcore_file): Rename to ...
3462 (write_gcore_file_1): ...this.
3463 (write_gcore_file): Call target_prepare_to_generate_core
3464 and target_done_generating_core.
3465
3466 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3467
3468 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3469 * gcore.c (write_gcore_file): Free memory returned from
3470 make_corefile_notes.
3471 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3472 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3473
3474 2014-06-24 Yao Qi <yao@codesourcery.com>
3475
3476 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3477 (arm_linux_init_abi): Set skip_trampoline_code with
3478 gdbarch_skip_trampoline_code instead of
3479 find_solib_trampoline_target.
3480
3481 2014-06-24 Yao Qi <yao@codesourcery.com>
3482
3483 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3484 arm_skip_bx_reg returns non-zero.
3485
3486 2014-06-24 Yao Qi <yao@codesourcery.com>
3487
3488 * arm-tdep.c (arm_skip_bx_reg): New function.
3489 (arm_skip_stub): Call arm_skip_bx_reg.
3490
3491 2014-06-23 Don Breazeal <donb@codesourcery.com>
3492
3493 * MAINTAINERS: Add myself as write-after-approval maintainer.
3494
3495 2014-06-23 Pedro Alves <palves@redhat.com>
3496
3497 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3498 DR_CONTROL before setting DR0..DR3.
3499 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3500 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3501 bits of DR_CONTROL related to the debug register slot being
3502 disabled. If all slots are vacant, clear local slowdown as well,
3503 and assert DR_CONTROL is 0.
3504
3505 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3506
3507 * python/lib/gdb/command/xmethods.py
3508 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3509 current progspace only if the string "progspace" matches LOCUS_RE.
3510
3511 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3512
3513 Fix --with-system-readline with readline-6.3 patch 5.
3514 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3515 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3516 types.
3517
3518 2014-06-20 Tom Tromey <tromey@redhat.com>
3519
3520 * dwarf2read.c (dw2_get_real_path): Use correct type in
3521 OBSTACK_CALLOC.
3522 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3523
3524 2014-06-20 Gary Benson <gbenson@redhat.com>
3525
3526 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3527 * common/glibc_thread_db.h: Likewise.
3528 * common/i386-cpuid.h: Likewise.
3529 * common/i386-gcc-cpuid.h: Likewise.
3530 * common/linux-btrace.h: Likewise.
3531 * common/linux-osdata.h: Likewise.
3532 * common/linux-procfs.h: Likewise.
3533 * common/linux-ptrace.h: Likewise.
3534 * common/mips-linux-watch.h: Likewise.
3535 * common/linux-btrace.c: Moved to nat.
3536 * common/linux-osdata.c: Likewise.
3537 * common/linux-procfs.c: Likewise.
3538 * common/linux-ptrace.c: Likewise.
3539 * common/mips-linux-watch.c: Likewise.
3540 * nat/gdb_thread_db.h: Moved from common.
3541 * nat/glibc_thread_db.h: Likewise.
3542 * nat/i386-cpuid.h: Likewise.
3543 * nat/i386-gcc-cpuid.h: Likewise.
3544 * nat/linux-btrace.c: Likewise.
3545 * nat/linux-btrace.h: Likewise.
3546 * nat/linux-osdata.c: Likewise.
3547 * nat/linux-osdata.h: Likewise.
3548 * nat/linux-procfs.c: Likewise.
3549 * nat/linux-procfs.h: Likewise.
3550 * nat/linux-ptrace.c: Likewise.
3551 * nat/linux-ptrace.h: Likewise.
3552 * nat/mips-linux-watch.c: Likewise.
3553 * nat/mips-linux-watch.h: Likewise.
3554 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3555 (object file files): Reordered.
3556 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3557 of glibc_thread_db.h.
3558
3559 2014-06-20 Gary Benson <gbenson@redhat.com>
3560
3561 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3562 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3563 (i386_dr_low): Likewise.
3564 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3565 (i386_dr_low_set_addr): Likewise.
3566 (i386_dr_low_get_addr): Likewise.
3567 (i386_dr_low_can_set_control): Likewise.
3568 (i386_dr_low_set_control): Likewise.
3569 (i386_dr_low_get_control): Likewise.
3570 (i386_dr_low_get_status): Likewise.
3571 (i386_get_debug_register_length): Likewise.
3572 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3573 (i386_dr_low): Likewise.
3574 * nat/i386-dregs.c (i386-low.h): Remove include.
3575 (i386-nat.h): Likewise.
3576 (nat/i386-dregs.h): New include.
3577 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3578 (i386_dr_low_set_addr): Likewise.
3579 (i386_dr_low_get_addr): Likewise.
3580 (i386_dr_low_can_set_control): Likewise.
3581 (i386_dr_low_set_control): Likewise.
3582 (i386_dr_low_get_control): Likewise.
3583 (i386_dr_low_get_status): Likewise.
3584 (i386_get_debug_register_length): Likewise.
3585 (debug_hw_points): Likewise.
3586
3587 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3588
3589 * Makefile.in (SFILES): Add d-exp.y.
3590 (YYFILES): Add d-exp.c.
3591 (YYOBJ): Add d-exp.o.
3592 (local-maintainer-clean): Delete d-exp.c.
3593 * d-exp.y: New file.
3594 * d-lang.h (d_parse): New declaration.
3595 (d_error): New declaration.
3596 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3597 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3598 PREC_ORDER operators.
3599 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3600
3601 2014-06-19 Yao Qi <yao@codesourcery.com>
3602
3603 * gdbthread.h (any_running): Remove the declaration.
3604 * thread.c (any_running): Remove.
3605
3606 2014-06-19 Yao Qi <yao@codesourcery.com>
3607
3608 * gdbthread.h (struct thread_info) <state>: Change its type to
3609 'enum thread_state'. Update comments.
3610
3611 2014-06-19 Pedro Alves <palves@redhat.com>
3612
3613 * gdbthread.h (ALL_THREADS): Delete.
3614 (ALL_NON_EXITED_THREADS): New macro.
3615 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3616 instead of ALL_THREADS.
3617 * infrun.c (find_thread_needs_step_over)
3618 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3619 instead of ALL_THREADS.
3620 * record-btrace.c (record_btrace_open)
3621 (record_btrace_stop_recording, record_btrace_close)
3622 (record_btrace_is_replaying, record_btrace_resume)
3623 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3624 * remote.c (append_pending_thread_resumptions): Likewise.
3625 * thread.c (thread_apply_all_command): Likewise.
3626
3627 2014-06-19 Gary Benson <gbenson@redhat.com>
3628
3629 * i386-nat.c (i386_stopped_by_watchpoint):
3630 Use i386_dr_stopped_by_watchpoint.
3631 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3632 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3633
3634 2014-06-19 Gary Benson <gbenson@redhat.com>
3635
3636 * nat/i386-dregs.c: New file.
3637 * Makefile.in (i386-dregs.o): New rule.
3638 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3639 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3640 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3641 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3642 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3643 * config/i386/go32.mh (NATDEPFILES): Likewise.
3644 * config/i386/linux.mh (NATDEPFILES): Likewise.
3645 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3646 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3647 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3648 * i386-nat.h (debug_hw_points): New declaration.
3649 * i386-nat.c (breakpoint.h): Remove include.
3650 (command.h): Likewise.
3651 (target.h): Likewise.
3652 (gdb_assert.h): Likewise.
3653 (debug_hw_points): Made nonstatic.
3654 (debug_printf): Now in i386-dregs.c.
3655 (TARGET_HAS_DR_LEN_8): Likewise.
3656 (DR_CONTROL_SHIFT): Likewise.
3657 (DR_CONTROL_SIZE): Likewise.
3658 (DR_RW_EXECUTE): Likewise.
3659 (DR_RW_WRITE): Likewise.
3660 (DR_RW_READ): Likewise.
3661 (DR_RW_IORW): Likewise.
3662 (DR_LEN_1): Likewise.
3663 (DR_LEN_2): Likewise.
3664 (DR_LEN_4): Likewise.
3665 (DR_LEN_8): Likewise.
3666 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3667 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3668 (DR_ENABLE_SIZE): Likewise.
3669 (DR_LOCAL_SLOWDOWN): Likewise.
3670 (DR_GLOBAL_SLOWDOWN): Likewise.
3671 (DR_CONTROL_RESERVED): Likewise.
3672 (I386_DR_CONTROL_MASK): Likewise.
3673 (I386_DR_VACANT): Likewise.
3674 (I386_DR_LOCAL_ENABLE): Likewise.
3675 (I386_DR_GLOBAL_ENABLE): Likewise.
3676 (I386_DR_DISABLE): Likewise.
3677 (I386_DR_SET_RW_LEN): Likewise.
3678 (I386_DR_GET_RW_LEN): Likewise.
3679 (I386_DR_WATCH_HIT): Likewise.
3680 (i386_wp_op_t): Likewise.
3681 (i386_show_dr): Likewise.
3682 (i386_length_and_rw_bits): Likewise.
3683 (i386_insert_aligned_watchpoint): Likewise.
3684 (i386_remove_aligned_watchpoint): Likewise.
3685 (i386_handle_nonaligned_watchpoint): Likewise.
3686 (i386_update_inferior_debug_regs): Likewise.
3687 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3688 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3689 (i386_region_ok_for_watchpoint):
3690 Use i386_dr_region_ok_for_watchpoint.
3691 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3692
3693 2014-06-19 Gary Benson <gbenson@redhat.com>
3694
3695 * i386-nat.c (i386_insert_hw_breakpoint): Use
3696 i386_insert_watchpoint.
3697 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3698
3699 2014-06-19 Gary Benson <gbenson@redhat.com>
3700
3701 * i386-nat.c (i386_dr_show): Renamed to
3702 i386_show_dr and made static. All uses updated.
3703 (i386_dr_length_and_rw_bits): Renamed to
3704 i386_length_and_rw_bits and made static.
3705 All uses updated.
3706 (i386_dr_insert_aligned_watchpoint): Renamed to
3707 i386_insert_aligned_watchpoint and made static.
3708 All uses updated.
3709 (i386_dr_remove_aligned_watchpoint): Renamed to
3710 i386_remove_aligned_watchpoint and made static.
3711 All uses updated.
3712 (i386_dr_update_inferior_debug_regs): Renamed to
3713 i386_update_inferior_debug_regs and made static.
3714 All uses updated.
3715 * nat/i386-dregs.h (i386_dr_show): Removed.
3716 (i386_dr_length_and_rw_bits): Likewise.
3717 (i386_dr_insert_aligned_watchpoint): Likewise.
3718 (i386_dr_remove_aligned_watchpoint): Likewise.
3719 (i386_dr_update_inferior_debug_regs): Likewise.
3720
3721 2014-06-19 Gary Benson <gbenson@redhat.com>
3722
3723 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3724 * configure: Regenerate.
3725 * config.in: Likewise.
3726 * main.c (signal.h): New include.
3727 (setup_alternate_signal_stack): New function.
3728 (captured_main): Call the above.
3729 * cp-support.c (signal.h): New include.
3730 (catch_demangler_crashes): New flag.
3731 (SIGJMP_BUF): New define.
3732 (SIGSETJMP): Likewise.
3733 (SIGLONGJMP): Likewise.
3734 (gdb_demangle_jmp_buf): New static global.
3735 (gdb_demangle_attempt_core_dump): Likewise.
3736 (gdb_demangle_signal_handler): New function.
3737 (gdb_demangle): If catch_demangler_crashes is set, install the
3738 above signal handler before calling bfd_demangle, and restore
3739 the original signal handler afterwards. Display the offending
3740 symbol and call demangler_warning the first time a segmentation
3741 fault is caught.
3742 (_initialize_cp_support): New maint set/show command.
3743
3744 2014-06-19 Gary Benson <gbenson@redhat.com>
3745
3746 * utils.h (resource_limit_kind): New enum.
3747 (can_dump_core): New declaration.
3748 (warn_cant_dump_core): Likewise.
3749 (dump_core): Likewise.
3750 * utils.c (dump_core): Made nonstatic. Added new
3751 parameter "limit_kind".
3752 (can_dump_core): Made nonstatic. Moved printing code to...
3753 (warn_cant_dump_core): New function.
3754 (can_dump_core_warn): Likewise.
3755 (internal_vproblem): Replace calls to can_dump_core with
3756 calls to can_dump_core_warn. Supply new argument to each.
3757
3758 2014-06-19 Gary Benson <gbenson@redhat.com>
3759
3760 * utils.h (demangler_vwarning): New declaration.
3761 (demangler_warning): Likewise.
3762 * utils.c (struct internal_problem)
3763 <user_settable_should_quit>: New field.
3764 <user_settable_should_dump_core>: Likewise
3765 (internal_error_problem): Add values for above new fields.
3766 (internal_warning_problem): Likewise.
3767 (demangler_warning_problem): New static global.
3768 (demangler_vwarning): New function.
3769 (demangler_warning): Likewise.
3770 (add_internal_problem_command): Selectively add commands.
3771 (_initialize_utils): New internal problem command.
3772 * maint.c (maintenance_demangler_warning): New function.
3773 (_initialize_maint_cmds): New command.
3774
3775 2014-06-18 Tom Tromey <tromey@redhat.com>
3776
3777 * f-valprint.c (info_common_command_for_block): Update.
3778 * symtab.h (struct general_symbol_info) <common_block>: Now
3779 const.
3780
3781 2014-06-18 Tom Tromey <tromey@redhat.com>
3782
3783 * symtab.h (struct symtab) <blockvector>: Now const.
3784 * ada-lang.c (ada_add_global_exceptions): Update.
3785 * buildsym.c (augment_type_symtab): Update.
3786 * dwarf2read.c (dw2_lookup_symbol): Update.
3787 * jit.c (finalize_symtab): Update.
3788 * jv-lang.c (add_class_symtab_symbol): Update.
3789 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3790 Update.
3791 * objfiles.c (objfile_relocate1): Update.
3792 * psymtab.c (lookup_symbol_aux_psymtabs)
3793 (maintenance_check_psymtabs): Update.
3794 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3795 Update.
3796 * spu-tdep.c (spu_catch_start): Update.
3797 * symmisc.c (dump_symtab_1): Update.
3798 * symtab.c (lookup_global_symbol_from_objfile)
3799 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3800 (basic_lookup_transparent_type_quick)
3801 (basic_lookup_transparent_type, find_pc_sect_symtab)
3802 (find_pc_sect_line, search_symbols): Update.
3803 * block.c (find_block_in_blockvector): Make "bl" const.
3804 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3805 const.
3806 (blockvector_contains_pc): Make "bv" const.
3807 (block_for_pc_sect): Update.
3808 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3809 (blockvector_contains_pc): Update.
3810 * breakpoint.c (resolve_sal_pc): Update.
3811 * inline-frame.c (block_starting_point_at): Update.
3812
3813 2014-06-18 Tom Tromey <tromey@redhat.com>
3814
3815 * completer.c (complete_line): Make "line_buffer" const.
3816 * completer.h (complete_line): Update.
3817
3818 2014-06-18 Tom Tromey <tromey@redhat.com>
3819
3820 * symtab.c (add_macro_name): Remove unneeded cast.
3821
3822 2014-06-18 Tom Tromey <tromey@redhat.com>
3823
3824 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3825 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3826
3827 2014-06-18 Tom Tromey <tromey@redhat.com>
3828
3829 * probe.c (info_probes_for_ops): Make "arg" const.
3830 * probe.h (info_probes_for_ops): Update.
3831
3832 2014-06-18 Tom Tromey <tromey@redhat.com>
3833
3834 * varobj.c (varobj_create): Update.
3835 * valops.c (value_of_this): Update.
3836 * tracepoint.c (add_local_symbols, scope_info): Update.
3837 * symtab.h (struct general_symbol_info) <block>: Now const.
3838 * symtab.c (skip_prologue_sal)
3839 (default_make_symbol_completion_list_break_on)
3840 (skip_prologue_using_sal): Update.
3841 * stack.h (iterate_over_block_locals)
3842 (iterate_over_block_local_vars): Update.
3843 * stack.c (print_frame_args): Update.
3844 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3845 parameter const.
3846 (get_selected_block): Make return type const.
3847 * python/py-frame.c (frapy_block): Update.
3848 * python/py-block.c (gdbpy_block_for_pc): Update.
3849 * p-exp.y (%union) <bval>: Now const.
3850 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3851 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3852 * m2-exp.y (%union) <bval>: Now const.
3853 * linespec.c (get_current_search_block): Make return type const.
3854 (create_sals_line_offset, find_label_symbols): Update.
3855 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3856 Update.
3857 (block_starting_point_at): Make "block" const.
3858 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3859 (check_exception_resume): Update.
3860 * guile/scm-frame.c (gdbscm_frame_block): Update.
3861 * guile/scm-block.c (gdbscm_lookup_block): Update.
3862 * frame.h (get_frame_block): Update.
3863 (get_selected_block): Make return type const.
3864 * frame.c (frame_id_inner): Update.
3865 * f-valprint.c (info_common_command_for_block)
3866 (info_common_command): Update.
3867 * dwarf2loc.c (dwarf2_find_location_expression)
3868 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3869 (locexpr_describe_location_piece): Update.
3870 * c-exp.y (%union) <bval>: Now const.
3871 * breakpoint.c (resolve_sal_pc): Update.
3872 * blockframe.c (get_frame_block):Make return type const.
3873 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3874 (block_innermost_frame): Update.
3875 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3876 (block_for_pc, block_for_pc_sect): Update.
3877 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3878 'pblock' const.
3879 (block_for_pc_sect, block_for_pc): Make return type const.
3880 * ax-gdb.c (gen_expr): Update.
3881 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3882 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3883 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3884 (ada_read_var_value): Update.
3885 * ada-exp.y (struct name_info) <block>: Now const.
3886 (%union): Likewise.
3887 (block_lookup): Constify.
3888
3889 2014-06-18 Gary Benson <gbenson@redhat.com>
3890
3891 * nat/i386-dregs.h: New file.
3892 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3893 * i386-nat.h (i386-dregs.h): New include.
3894 (DR_FIRSTADDR): Now in i386-dregs.h.
3895 (DR_LASTADDR): Likewise.
3896 (DR_NADDR): Likewise.
3897 (DR_STATUS): Likewise.
3898 (DR_CONTROL): Likewise.
3899 (i386_debug_reg_state): Likewise.
3900 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3901
3902 2014-06-18 Don Breazeal <donb@codesourcery.com>
3903
3904 * breakpoint.c (set_longjmp_breakpoint): Call
3905 momentary_breakpoint_from_master with additional argument.
3906 (set_longjmp_breakpoint_for_call_dummy): Call
3907 momentary_breakpoint_from_master with additional argument.
3908 (set_std_terminate_breakpoint): Call
3909 momentary_breakpoint_from_master with additional argument.
3910 (momentary_breakpoint_from_master): Add argument to function
3911 definition and use it to initialize structure member flag.
3912 (clone_momentary_breakpoint): Call
3913 momentary_breakpoint_from_master with additional argument.
3914 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3915 member flags set in momentary_breakpoint_from_master.
3916
3917 2014-06-18 Gary Benson <gbenson@redhat.com>
3918
3919 * i386-nat.c (i386_show_dr): Renamed to
3920 i386_dr_show and made nonstatic. All uses updated.
3921 (i386_length_and_rw_bits): Renamed to
3922 i386_dr_length_and_rw_bits and made nonstatic.
3923 All uses updated.
3924 (i386_insert_aligned_watchpoint): Renamed to
3925 i386_dr_insert_aligned_watchpoint and made nonstatic.
3926 All uses updated.
3927 (i386_remove_aligned_watchpoint): Renamed to
3928 i386_dr_remove_aligned_watchpoint and made nonstatic.
3929 All uses updated.
3930 (i386_update_inferior_debug_regs): Renamed to
3931 i386_dr_update_inferior_debug_regs and made nonstatic.
3932 All uses updated.
3933
3934 2014-06-18 Gary Benson <gbenson@redhat.com>
3935
3936 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3937 (i386_dr_low_can_set_control): Likewise.
3938 (i386_dr_low_set_addr): Likewise.
3939 (i386_dr_low_set_control): Likewise.
3940 (i386_dr_low_get_addr): Likewise.
3941 (i386_dr_low_get_status): Likewise.
3942 (i386_dr_low_get_control): Likewise.
3943 (i386_insert_aligned_watchpoint): Use new macros.
3944 (i386_update_inferior_debug_regs): Likewise.
3945 (i386_stopped_data_address): Likewise.
3946
3947 2014-06-18 Gary Benson <gbenson@redhat.com>
3948
3949 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3950 New parameter. All uses updated.
3951
3952 2014-06-18 Gary Benson <gbenson@redhat.com>
3953
3954 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3955 All uses updated.
3956
3957 2014-06-18 Gary Benson <gbenson@redhat.com>
3958
3959 * i386-nat.c (debug_printf): New macro.
3960 (i386_get_debug_register_length): Likewise.
3961 (TARGET_HAS_DR_LEN_8): Use above macro.
3962 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3963 and printf_unfiltered. Use phex to format values.
3964
3965 2014-06-18 Gary Benson <gbenson@redhat.com>
3966
3967 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3968 Make const.
3969
3970 2014-06-18 Gary Benson <gbenson@redhat.com>
3971
3972 * i386-nat.c: Comment changes.
3973
3974 2014-06-18 Gary Benson <gbenson@redhat.com>
3975
3976 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3977
3978 2014-06-18 Gary Benson <gbenson@redhat.com>
3979
3980 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3981 (i386_insert_aligned_watchpoint): Likewise.
3982 (i386_remove_aligned_watchpoint): Likewise.
3983 (i386_handle_nonaligned_watchpoint): Likewise.
3984
3985 2014-06-18 Gary Benson <gbenson@redhat.com>
3986
3987 * i386-nat.c: Whitespace changes.
3988
3989 2014-06-17 Samuel Bronson <naesten@gmail.com>
3990
3991 * MAINTAINERS: Update Roland McGrath's email address.
3992 Thanks to Sergio Durigan Junior for pointing out that he left
3993 Red Hat a while ago, and giving me a current address.
3994
3995 2014-06-17 Tom Tromey <tromey@redhat.com>
3996
3997 * utils.h (savestring): Remove declaration.
3998
3999 2014-06-17 Tom Tromey <tromey@redhat.com>
4000
4001 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4002
4003 2014-06-16 Keith Seitz <keiths@redhat.com>
4004
4005 PR mi/15863
4006 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4007 to update the varobj if inferior_ptid is null_ptid.
4008
4009 2014-06-16 Tom Tromey <tromey@redhat.com>
4010
4011 * target.h (struct target_ops) <to_info_proc>: Make parameter
4012 const.
4013 (target_info_proc): Update.
4014 * target.c (target_info_proc): Make "args" const.
4015 * procfs.c (procfs_info_proc): Update.
4016 * linux-tdep.c (linux_info_proc): Update.
4017 (linux_core_info_proc_mappings): Make "args" const.
4018 (linux_core_info_proc): Update.
4019 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4020 * gdbarch.c: Rebuild.
4021 * gdbarch.h: Rebuild.
4022 * corelow.c (core_info_proc): Update.
4023
4024 2014-06-16 Tom Tromey <tromey@redhat.com>
4025
4026 * target.h (struct target_ops) <to_disconnect>: Make parameter
4027 const.
4028 (target_disconnect): Update.
4029 * target.c (target_disconnect): Make "args" const.
4030 * target-delegates.c: Rebuild.
4031 * remote.c (remote_disconnect): Update.
4032 * record.h (record_disconnect): Update.
4033 * record.c (record_disconnect): Update.
4034 * inf-child.c (inf_child_disconnect): Update.
4035
4036 2014-06-16 Tom Tromey <tromey@redhat.com>
4037
4038 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4039 * target.c (debug_to_rcmd, default_rcmd): Update.
4040 * target-delegates.c: Rebuild.
4041 * remote.c (remote_rcmd): Update.
4042 * monitor.c (monitor_rcmd): Update.
4043
4044 2014-06-16 Pedro Alves <palves@redhat.com>
4045
4046 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4047 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4048 have OBJF_SHARED set.
4049 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4050 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4051 instead of OBJF_USERLOADED.
4052 * objfiles.h (OBJF_SHARED): Update comment.
4053 (userloaded_objfile_contains_address_p): Rename to ...
4054 (shared_objfile_contains_address_p): ... this, and update
4055 comments.
4056 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4057 new objfile.
4058 (remove_symbol_file_command): Skip objfiles that don't have
4059 OBJF_SHARED set.
4060
4061 2014-06-16 Tom Tromey <tromey@redhat.com>
4062
4063 * minsyms.h (prim_record_minimal_symbol)
4064 (prim_record_minimal_symbol_and_info): Update comments.
4065
4066 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4067
4068 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4069 or --without-guile, according to how GDB was built.
4070
4071 2014-06-13 Tom Tromey <tromey@redhat.com>
4072
4073 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4074 to help_list.
4075 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4076 to help_list.
4077 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4078 help_list.
4079 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4080 help_list.Pass all_commands, not -1, to help_list.
4081 * cli/cli-dump.c (dump_command, append_command)
4082 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4083 (binary_dump_command, binary_append_command): Pass all_commands,
4084 not -1, to help_list.
4085 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4086 -1, to help_list.
4087 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4088 -1, to help_list.
4089 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4090 help_list.
4091 * top.c (set_history): Pass all_commands, not -1, to help_list.
4092 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4093 all_commands, not -1, to help_list.
4094 * symfile.c (overlay_command): Pass all_commands, not -1, to
4095 help_list.
4096 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4097 help_list.
4098 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4099 help_list.
4100 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4101 -1, to help_list.
4102 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4103 not -1, to help_list.
4104 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4105 not -1, to help_list.
4106 * maint.c (maintenance_command, maintenance_info_command)
4107 (maintenance_print_command, maintenance_set_cmd): Pass
4108 all_commands, not -1, to help_list.
4109 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4110 help_list.
4111 * language.c (set_check): Pass all_commands, not -1, to help_list.
4112 * infcmd.c (unset_command): Pass all_commands, not -1, to
4113 help_list.
4114 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4115 help_list.
4116 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4117 help_list.
4118 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4119 help_list.
4120 * breakpoint.c (save_command): Pass all_commands, not -1, to
4121 help_list.
4122 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4123 all_commands, not -1, to help_list.
4124
4125 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4126
4127 * regcache.c (struct register_to_invalidate): New structure.
4128 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4129 functions.
4130 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4131
4132 2014-06-12 Yao Qi <yao@codesourcery.com>
4133
4134 * varobj.c (varobj_get_num_children): Call
4135 varobj_is_dynamic_p.
4136 (varobj_list_children): Likewise.
4137 (varobj_update): Likewise. Update comments.
4138
4139 2014-06-12 Yao Qi <yao@codesourcery.com>
4140
4141 * varobj.c (varobj_pretty_printed_p): Rename to ...
4142 (varobj_is_dynamic_p): ... this. New function.
4143 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4144 (varobj_is_dynamic_p): Declare.
4145 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4146 (mi_print_value_p, varobj_update_one): Likewise.
4147
4148 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4149 Yao Qi <yao@codesourcery.com>
4150
4151 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4152 (varobj_get_iterator): Wrap up code for pretty-printer by
4153 "#if HAVE_PYTHON" and "#endif".
4154 (update_dynamic_varobj_children): Likewise.
4155
4156 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4157 Yao Qi <yao@codesourcery.com>
4158
4159 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4160 gdb_python_initialized is false. Move some code from varobj.c.
4161 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4162 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4163 (struct varobj_item): Moved to varobj-iter.h".
4164 (varobj_clear_saved_item): New function.
4165 (update_dynamic_varobj_children): Move python-related code to
4166 py-varobj.c.
4167 (free_variable): Call varobj_clear_saved_item and
4168 varobj_iter_delete.
4169
4170 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4171 Yao Qi <yao@codesourcery.com>
4172
4173 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4174 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4175 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4176 (py-varobj.o): New rule.
4177 * python/py-varobj.c: New file.
4178 * python/python-internal.h (py_varobj_get_iterator): Declare.
4179 * varobj-iter.h: New file.
4180 * varobj.c: Include "varobj-iter.h"
4181 (struct varobj) <child_iter>: Change its type from "PyObject *"
4182 to "struct varobj_iter *".
4183 <saved_item>: Likewise.
4184 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4185 [HAVE_PYTHON] (varobj_get_iterator): New function.
4186 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4187 python-specific code to python/py-varobj.c.
4188 (install_visualizer): Call varobj_iter_delete instead of
4189 Py_XDECREF.
4190 * varobj.h (varobj_ensure_python_env): Declare.
4191
4192 2014-06-12 Yao Qi <yao@codesourcery.com>
4193
4194 * varobj.c (struct varobj_item): New structure.
4195 (create_child_with_value): Update declaration.
4196 (varobj_add_child): Replace arguments 'name' and 'value' with
4197 'item'. All callers updated.
4198 (install_dynamic_child): Likewise.
4199 (update_dynamic_varobj_children): Likewise.
4200 (varobj_add_child): Likewise.
4201 (create_child_with_value): Likewise.
4202
4203 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4204
4205 * NEWS: Create a new section for the next release branch.
4206 Rename the section of the current branch, now that it has
4207 been cut.
4208
4209 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4210
4211 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4212 * version.in: Bump version to 7.8.50.DATE-cvs.
4213
4214 2014-06-11 Pedro Alves <palves@redhat.com>
4215
4216 PR remote/17028
4217 * ser-mingw.c (net_windows_socket_check_pending): New function.
4218 (net_windows_select_thread): Ignore spurious wakeups. Use
4219 net_windows_socket_check_pending.
4220 (net_windows_wait_handle): Check for pending events with
4221 ioctlsocket, through net_windows_socket_check_pending, instead of
4222 checking the socket's event.
4223
4224 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4225
4226 * python/python-internal.h (gdb_PyObject_GetAttrString)
4227 (gdb_PyObject_HasAttrString): New inline function definitions.
4228 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4229 char * of the second argument to PyObject_GetAttrString.
4230
4231 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4232
4233 * serial.c (serial_write): Fix index of character to be printed
4234 in call to serial_logchar when serial debug traces are enabled.
4235
4236 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4237
4238 * gdbtypes (resolve_dynamic_range): Add function description.
4239
4240 2014-06-09 Pedro Alves <palves@redhat.com>
4241
4242 * linux-nat.c (linux_child_follow_fork): Initialize status with
4243 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4244 inner block. Only pass the signal to PTRACE_DETACH if in pass
4245 state.
4246
4247 2014-06-09 Gary Benson <gbenson@redhat.com>
4248
4249 * common/signals.c (gdb_signal_from_host): Reorder to separate
4250 the always-available ANSI-standard signals from the signals that
4251 require checking.
4252 (do_gdb_signal_to_host): Likewise.
4253 * proc-events.c (signal_table): Likewise.
4254
4255 2014-06-08 Hui Zhu <hui@codesourcery.com>
4256
4257 * common/linux-ptrace.c (linux_disable_event_reporting): New
4258 function.
4259 * common/linux-ptrace.h (linux_disable_event_reporting): New
4260 declaration.
4261 * linux-nat.c (linux_child_follow_fork): Do a single step before
4262 detach.
4263
4264 2014-06-07 Keith Seitz <keiths@redhat.com>
4265
4266 Revert:
4267 PR c++/16253
4268 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4269 from symbol_matches_domain in symtab.c. All local callers
4270 of symbol_matches_domain updated.
4271 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4272 search STRUCT_DOMAIN.
4273 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4274 independently. standard_lookup will do that automatically.
4275 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4276 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4277 (cp_lookup_symbol_in_namespace): Likewise.
4278 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4279 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4280 may return a STRUCT_DOMAIN match.
4281 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4282 * cp-support.c: Include language.h.
4283 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4284 VAR_DOMAIN.
4285 * psymtab.c (match_partial_symbol): Compare the requested
4286 domain with the symbol's domain directly.
4287 (lookup_partial_symbol): Likewise.
4288 * symtab.c (lookup_symbol_in_language): Explain when/why
4289 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4290 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4291 appropriate languages.
4292 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4293 and moved to ada-lang.c
4294 (lookup_block_symbol): Explain that this function only returns
4295 symbol matching the requested DOMAIN.
4296 Compare the requested domain with the symbol's domain directly.
4297 (iterate_over_symbols): Compare the requested domain with the
4298 symbol's domain directly.
4299 * symtab.h (symbol_matches_domain): Remove.
4300
4301 2014-06-06 Doug Evans <xdje42@gmail.com>
4302
4303 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4304 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4305 (gdbscm_guile_version_is_at_least): Declare.
4306 (gdbscm_scm_string_to_int): Declare.
4307 * guile/guile.c (gdbscm_guile_major_version): New global.
4308 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4309 (guile_datadir): New static global.
4310 (gdbscm_guile_data_directory): New function.
4311 (initialize_scheme_side): Update.
4312 (misc_guile_functions): Add guile-data-directory.
4313 (initialize_gdb_module): Fetch guile version number.
4314 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4315 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4316 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4317 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4318 comments.
4319 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4320 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4321 * guile/scm-value.c (gdbscm_value_to_string): Only call
4322 scm_port_conversion_strategy if Guile version >= 2.0.6.
4323
4324 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4325
4326 * main.c (print_gdb_help): Add -q and --silent.
4327
4328 2014-06-06 Gary Benson <gbenson@redhat.com>
4329
4330 * common/signals.c: Remove preprocessor conditionals for
4331 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4332 SIGSEGV and SIGTERM.
4333 * proc-events.c: Likewise.
4334
4335 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4336
4337 * symfile.c (symfile_free_objfile): Remove restriction to
4338 OBJF_USERLOADED.
4339 * symfile-mem.c (symbol_file_add_from_memory): Call
4340 add_target_sections_of_objfile.
4341
4342 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4343
4344 * guile/scm-value.c (gdbscm_history_append_x): Use
4345 'vlscm_get_value_smob_arg_unsafe' instead of
4346 'vlscm_scm_to_value'.
4347
4348 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4349
4350 PR mi/15806
4351 * utils.c (printchar): Don't escape at all if quoter is NUL.
4352 Update function documentation to clarify effect of parameter
4353 QUOTER.
4354 * remote.c (escape_buffer): Pass '\\' as the quoter to
4355 fputstrn_unfiltered.
4356 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4357 generate the output.
4358 (mi_solib_unloaded): Same.
4359
4360 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4361
4362 * development.sh: Delete.
4363 * Makefile.in (config.status): Adjust dependency on development.sh.
4364 * configure.ac: Adjust development.sh source call.
4365 * configure: Regenerate.
4366
4367 2014-06-04 Doug Evans <xdje42@gmail.com>
4368
4369 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4370 is_scheme_bkpt, spec.
4371 (bpscm_make_breakpoint_smob): Initialize new members.
4372 (gdbscm_create_breakpoint_x): Split into two ...
4373 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4374 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4375 (scheme_function breakpoint_functions): Update.
4376 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4377 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4378 register-breakpoint!.
4379
4380 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4381
4382 PR server/17023
4383 * mem-break.c (z_type_supported): Return zero if
4384 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4385
4386 2014-06-04 Tom Tromey <tromey@redhat.com>
4387
4388 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4389 value_from_contents_and_address_unresolved.
4390 (ada_template_to_fixed_record_type_1): Likewise.
4391 (ada_which_variant_applies): Likewise.
4392 * value.h (value_from_contents_and_address_unresolved): Declare.
4393 * value.c (value_from_contents_and_address_unresolved): New
4394 function.
4395 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4396 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4397 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4398
4399 2014-06-04 Tom Tromey <tromey@redhat.com>
4400
4401 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4402
4403 2014-06-04 Tom Tromey <tromey@redhat.com>
4404
4405 * procfs.c (procfs_attach): Make "args" const.
4406 * windows-nat.c (windows_attach): Make "args" const.
4407 * nto-procfs.c (procfs_attach): Make "args" const.
4408 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4409 * go32-nat.c (go32_attach): Make "args" const.
4410 * gnu-nat.c (gnu_attach): Make "args" const.
4411 * darwin-nat.c (darwin_attach): Make "args" const.
4412 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4413 * linux-nat.c (linux_nat_attach): Make "args" const.
4414 * remote.c (extended_remote_attach_1, extended_remote_attach):
4415 Make "args" const.
4416 * target.h (struct target_ops) <to_attach>: Make "args" const.
4417 (find_default_attach): Likewise.
4418 * utils.c (parse_pid_to_attach): Make "args" const.
4419 * utils.h (parse_pid_to_attach): Update.
4420
4421 2014-06-04 Tom Tromey <tromey@redhat.com>
4422
4423 * target-delegates.c: Rebuild.
4424 * target.c (default_thread_address_space): New function.
4425 (target_thread_address_space): Simplify.
4426 * target.h (struct target_ops) <to_thread_address_space>: Add
4427 TARGET_DEFAULT_FUNC.
4428
4429 2014-06-04 Doug Evans <xdje42@gmail.com>
4430
4431 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4432
4433 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4434
4435 * record-btrace.c: Include event-loop.h and inf-loop.h.
4436 (record_btrace_resume_exec_dir)
4437 (record_btrace_async_inferior_event_handler)
4438 (record_btrace_handle_async_inferior_event): New.
4439 (record_btrace_open): Create async event handler.
4440 (record_btrace_close): Delete async event handler.
4441 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4442 Mark async event handler.
4443 (record_btrace_execution_direction): New.
4444 (init_record_btrace_ops): Initialize to_execution_direction.
4445
4446 2014-06-03 Doug Evans <xdje42@gmail.com>
4447
4448 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4449 (gdbscm_make_parameter): Ditto.
4450
4451 2014-06-03 Doug Evans <dje@google.com>
4452
4453 * exec.c (exec_close_1): Call clear_section_table instead of
4454 resize_section_table.
4455 (clear_section_table): New function.
4456 (resize_section_table): Make static. Rename arg num_added to
4457 adjustment.
4458 * exec.h (clear_section_table): Declare.
4459 (resize_section_table): Delete.
4460 * progspace.c (release_program_space): Call clear_section_table
4461 instead of resize_section_table.
4462
4463 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4464
4465 * NEWS (Python Scripting): Add entry about the new xmethods
4466 feature.
4467
4468 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4469
4470 * python/py-xmethods.c: New file.
4471 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4472 (objfpy_dealloc): XDECREF on the new xmethods field.
4473 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4474 field.
4475 (objfpy_get_xmethods): New function.
4476 (objfile_getset): New entry 'xmethods'.
4477 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4478 (pspy_dealloc): XDECREF on the new xmethods field.
4479 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4480 field.
4481 (pspy_get_xmethods): New function.
4482 (pspace_getset): New entry 'xmethods'.
4483 * python/python-internal.h: Add declarations for new functions.
4484 * python/python.c (_initialize_python): Invoke
4485 gdbpy_initialize_xmethods.
4486 * python/lib/gdb/__init__.py (xmethods): New
4487 attribute.
4488 * python/lib/gdb/xmethod.py: New file.
4489 * python/lib/gdb/command/xmethods.py: New file.
4490
4491 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4492
4493 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4494 best match method returned by find_overload_match is an xmethod.
4495 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4496 the best matching operator returned by find_overload_match is an
4497 xmethod.
4498 * valops.c: #include "extension.h".
4499 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4500 Return void. The list of matching source methods is returned in
4501 "fn_list" and a vector of matching debug method workers is
4502 returned in "xm_worker_vec". Update all callers.
4503 (value_find_oload_method_list): Likewise.
4504 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4505 non-NULL, then the index of the best matching method in this
4506 vector is returned. Update all callers.
4507 (find_overload_match): Include xmethods while performing overload
4508 resolution.
4509
4510 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4511
4512 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4513 * extension-priv.h (struct extension_language_ops): Add the
4514 xmethod interface.
4515 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4516 get_matching_xmethod_workers, get_xmethod_argtypes,
4517 invoke_xmethod, free_xmethod_worker,
4518 free_xmethod_worker_vec): New functions.
4519 * extension.h: #include "common/vec.h".
4520 New function declarations.
4521 (struct xmethod_worker): New struct.
4522 (VEC (xmethod_worker_ptr)): New vector type.
4523 (xmethod_worker_ptr): New typedef.
4524 (xmethod_worker_vec): Likewise.
4525 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4526 builtin_type.
4527 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4528 (struct builtin_type): New field "xmethod".
4529 * valarith.c (value_ptradd): Assert that the value argument is not
4530 lval_xcallable.
4531 * valops.c (value_must_coerce_to_target): Return 0 for
4532 lval_xcallable values.
4533 * value.c (struct value): New field XM_WORKER in the field
4534 LOCATION.
4535 (value_address, value_raw_address): Return 0 for lval_xcallable
4536 values.
4537 (set_value_address): Assert that the value is not an
4538 lval_xcallable.
4539 (value_free): Free the associated xmethod worker when freeing
4540 lval_xcallable values.
4541 (set_value_component_location): Assert that the WHOLE value is not
4542 lval_xcallable.
4543 (value_of_xmethod, call_xmethod): New functions.
4544 * value.h: Declare "struct xmethod_worker".
4545 Declare new functions value_of_xmethod, call_xmethod.
4546
4547 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4548 Pedro Alves <palves@redhat.com>
4549
4550 PR breakpoints/17000
4551 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4552 New function, extracted from software_breakpoint_inserted_here_p.
4553 (software_breakpoint_inserted_here_p): Replace factored out code
4554 by call to find_non_raw_software_breakpoint_inserted_here.
4555 (bp_target_info_copy_insertion_state): New function.
4556 (bkpt_insert_location): Handle the case of a single-step
4557 breakpoint already inserted at the same address.
4558 (bkpt_remove_location): Handle the case of a single-step
4559 breakpoint still inserted at the same address.
4560 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4561 breakpoint already inserted at the same address.
4562 (deprecated_remove_raw_breakpoint): Handle the case of a
4563 non-raw breakpoint still inserted at the same address.
4564 (find_single_step_breakpoint): New function, extracted from
4565 single_step_breakpoint_inserted_here_p.
4566 (find_single_step_breakpoint): New function,
4567 factored out from single_step_breakpoint_inserted_here_p.
4568 (single_step_breakpoint_inserted_here_p): Reimplement.
4569
4570 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4571
4572 Pushed by Joel Brobecker <brobecker@adacore.com>
4573 * source.c (show_substitute_path_command): Fix display of matching
4574 substitution rules.
4575
4576 2014-06-03 Gary Benson <gbenson@redhat.com>
4577
4578 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4579
4580 2014-06-02 Doug Evans <xdje42@gmail.com>
4581
4582 Add parameter support for Guile.
4583 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4584 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4585 (scm-param.o): New rule.
4586 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4587 (gdbscm_misc_error): Declare.
4588 (gdbscm_canonicalize_command_name): Declare.
4589 (gdbscm_scm_to_host_string): Declare.
4590 (gdbscm_scm_from_host_string): Declare.
4591 (gdbscm_initialize_parameters): Declare.
4592 * guile/guile.c (initialize_gdb_module): Call
4593 gdbscm_initialize_parameters.
4594 * guile/lib/gdb.scm: Export parameter symbols.
4595 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4596 cmdscm_canonicalize_name and made public. All callers updated.
4597 * guile/scm-exception.c (gdbscm_misc_error): New function.
4598 * guile/scm-param.c: New file.
4599 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4600 (gdbscm_scm_to_host_string): New function.
4601 (gdbscm_scm_from_host_string): New function.
4602 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4603
4604 2014-06-02 Doug Evans <xdje42@gmail.com>
4605
4606 Add command support for Guile.
4607 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4608 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4609 (scm-cmd.o): New rule.
4610 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4611 (gdbscm_user_error_p): Declare.
4612 (gdbscm_parse_command_name): Declare.
4613 (gdbscm_valid_command_class_p): Declare.
4614 (gdbscm_initialize_commands): Declare.
4615 * guile/guile.c (initialize_gdb_module): Call
4616 gdbscm_initialize_commands.
4617 * guile/lib/gdb.scm: Export command symbols.
4618 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4619 (throw-user-error): New function.
4620 * guile/scm-cmd.c: New file.
4621 * guile/scm-exception.c (user_error_symbol): New static global.
4622 (gdbscm_user_error_p): New function.
4623 (gdbscm_initialize_exceptions): Set user_error_symbol.
4624 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4625
4626 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4627
4628 * top.c (command_loop): Handle comments here...
4629 (command_line_input): ... not here.
4630
4631 2014-06-02 Doug Evans <xdje42@gmail.com>
4632
4633 Add progspace support for Guile.
4634 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4635 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4636 (scm-progspace.o): New rule.
4637 * guile/guile-internal.h (pspace_smob): New typedef.
4638 (psscm_pspace_smob_pretty_printers): Declare.
4639 (psscm_pspace_smob_from_pspace): Declare.
4640 (psscm_scm_from_pspace): Declare.
4641 * guile/guile.c (initialize_gdb_module): Call
4642 gdbscm_initialize_pspaces.
4643 * guile/lib/gdb.scm: Export progspace symbols.
4644 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4645 support.
4646 (append-pretty-printer!): Ditto.
4647 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4648 Implement.
4649 * guile/scm-progspace.c: New file.
4650
4651 2014-06-03 Alan Modra <amodra@gmail.com>
4652
4653 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4654 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4655
4656 2014-06-02 Doug Evans <dje@google.com>
4657
4658 Add support for skeletonless type units.
4659 * dwarf2read.c (struct dwarf2_per_objfile): New member
4660 n_allocated_type_units.
4661 (struct dwarf2_per_objfile) <tu_stats>: New member
4662 nr_all_type_units_reallocs.
4663 (create_signatured_type_table_from_index): Initialize
4664 n_allocated_type_units
4665 (create_all_type_units): Ditto.
4666 (add_type_unit): Move up in file. New arg slot.
4667 All callers updated. Increase space for all_type_units more
4668 efficiently.
4669 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4670 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4671 (lookup_dwp_signatured_type): Ditto.
4672 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4673 All callers updated.
4674 (build_type_psymtabs_1): Leave type_unit_groups as
4675 NULL if no TUs present.
4676 (print_tu_stats): New function.
4677 (process_skeletonless_type_unit): New function.
4678 (process_dwo_file_for_skeletonless_type_units): New
4679 function.
4680 (process_skeletonless_type_units): New function.
4681 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4682 Call print tu_stats if debugging enabled.
4683
4684 2014-06-02 Pedro Alves <palves@redhat.com>
4685
4686 * breakpoint.c (build_target_command_list): Don't build a command
4687 list if we have any duplicate location that isn't a dprintf.
4688
4689 2014-06-02 Pedro Alves <palves@redhat.com>
4690
4691 * breakpoint.c (dprintf_breakpoint_hit): New function.
4692 (initialize_breakpoint_ops): Install it as dprintf's
4693 breakpoint_hit method.
4694
4695 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4696
4697 * source.c (substitute_path_rule_matches): Simplify using
4698 filename_ncmp instead of FILENAME_CMP.
4699
4700 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4701
4702 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4703
4704 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4705
4706 * configure.ac: When Guile is available, check for the
4707 availability of 'scm_new_smob'.
4708 * configure, config.h.in: Regenerate.
4709 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4710 function.
4711
4712 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4713
4714 * frame.c (struct frame_info): Add stop_string field.
4715 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4716 (get_prev_frame_always): Old content moved into
4717 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4718 TRY_CATCH, handle MEMORY_ERROR exceptions.
4719 (frame_stop_reason_string): New function definition.
4720 * frame.h (unwind_stop_reason_to_string): Extend comment to
4721 mention frame_stop_reason_string.
4722 (frame_stop_reason_string): New function declaration.
4723 * stack.c (frame_info): Switch to frame_stop_reason_string.
4724 (backtrace_command_1): Switch to frame_stop_reason_string.
4725 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4726 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4727 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4728
4729 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4730
4731 * frame.c (frame_stop_reason_string): Rename to ...
4732 (unwind_stop_reason_to_string): this.
4733 * frame.h (frame_stop_reason_string): Rename to ...
4734 (unwind_stop_reason_to_string): this.
4735 * stack.c (frame_info): Update call to frame_stop_reason_string.
4736 (backtrace_command_1): Likewise.
4737 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4738 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4739
4740 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4741
4742 * frame.c (remove_prev_frame): New function.
4743 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4744 remove_prev_frame.
4745
4746 2014-05-29 Pedro Alves <palves@redhat.com>
4747
4748 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4749 and make it const. When a single-step decays to a continue,
4750 clear 'step', not 'hw_step'. Pass whether the caller wanted
4751 to step to user_visible_resume_ptid, not what we ask the
4752 target to do.
4753
4754 2014-05-29 Pedro Alves <palves@redhat.com>
4755
4756 * infrun.c (process_event_stop_test, handle_step_into_function)
4757 (handle_step_into_function_backward): Adjust.
4758 Don't set the even thread's stop_step and call stop_waiting before
4759 calling end_stepping_range. Instead do that ...
4760 (end_stepping_range): ... here. Take an ecs pointer parameter.
4761
4762 2014-05-29 Pedro Alves <palves@redhat.com>
4763
4764 * infrun.c (stop_stepping): Rename to ...
4765 (stop_waiting): ... this.
4766 (proceed): Update comment.
4767 (process_event_stop_test, handle_inferior_event)
4768 (handle_signal_stop, handle_step_into_function)
4769 (handle_step_into_function_backward): Update.
4770
4771 2014-05-29 Pedro Alves <palves@redhat.com>
4772
4773 * infcall.c (run_inferior_call): Don't check whether the current
4774 thread is running after the proceed call.
4775
4776 2014-05-29 Pedro Alves <palves@redhat.com>
4777 Tom Tromey <tromey@redhat.com>
4778
4779 * NEWS: Mention "maint set target-async", "set mi-async", and that
4780 background execution commands are now always available.
4781 * target.h (target_async_permitted): Update comment.
4782 * target.c (target_async_permitted, target_async_permitted_1):
4783 Default to 1.
4784 (set_target_async_command): Rename to ...
4785 (maint_set_target_async_command): ... this.
4786 (show_target_async_command): Rename to ...
4787 (maint_show_target_async_command): ... this.
4788 (_initialize_target): Adjust.
4789 * infcmd.c (prepare_execution_command): Make extern.
4790 * inferior.h (prepare_execution_command): Declare.
4791 * infrun.c (set_observer_mode): Leave target async alone.
4792 * mi/mi-interp.c (mi_interpreter_init): Install
4793 mi_on_sync_execution_done as sync_execution_done observer.
4794 (mi_on_sync_execution_done): New function.
4795 (mi_execute_command_input_handler): Don't print the prompt if we
4796 just started a synchronous command with an async target.
4797 (mi_on_resume): Check sync_execution before printing prompt.
4798 * mi/mi-main.h (mi_async_p): Declare.
4799 * mi/mi-main.c: Include gdbcmd.h.
4800 (mi_async_p): New function.
4801 (mi_async, mi_async_1): New globals.
4802 (set_mi_async_command, show_mi_async_command, mi_async): New
4803 functions.
4804 (exec_continue): Call prepare_execution_command.
4805 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4806 (mi_execute_async_cli_command): Use mi_async_p.
4807 (_initialize_mi_main): Install "set mi-async". Make
4808 "target-async" a deprecated alias.
4809
4810 2014-05-29 Pedro Alves <palves@redhat.com>
4811
4812 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4813 (_initialize_cli_interp): Adjust.
4814 * event-loop.c: Include "observer.h".
4815 (start_event_loop): Notify 'command_error' observers instead of
4816 calling display_gdb_prompt. Remove FIXME comment.
4817 * event-top.c (display_gdb_prompt): Remove call into the
4818 interpreters.
4819 * inf-loop.c: Include "observer.h".
4820 (inferior_event_handler): Notify 'command_error' observers instead
4821 of calling display_gdb_prompt.
4822 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4823 observers instead of calling display_gdb_prompt.
4824 * interps.c (interp_set): Don't call display_gdb_prompt.
4825 (current_interp_display_prompt_p): Delete.
4826 * interps.h (interp_prompt_p): Delete declaration.
4827 (interp_prompt_p_ftype): Delete.
4828 (struct interp_procs) <prompt_proc_p>: Delete field.
4829 (current_interp_display_prompt_p): Delete declaration.
4830 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4831 (_initialize_mi_interp): Adjust.
4832 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4833 'command_error' observers.
4834 (tui_on_sync_execution_done, tui_on_command_error): New
4835 functions.
4836 (tui_display_prompt_p): Delete.
4837 (_initialize_tui_interp): Adjust.
4838
4839 2014-05-29 Pedro Alves <palves@redhat.com>
4840
4841 PR gdb/13860
4842 * cli/cli-interp.c: Include infrun.h and observer.h.
4843 (cli_uiout, cli_interp): New globals.
4844 (cli_on_signal_received, cli_on_end_stepping_range)
4845 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4846 functions.
4847 (cli_interpreter_init): Install them as 'end_stepping_range',
4848 'signal_received' 'signal_exited', 'exited' and 'no_history'
4849 observers.
4850 (_initialize_cli_interp): Remove cli_interp local.
4851 * infrun.c (handle_inferior_event): Call the several stop reason
4852 observers instead of printing the stop reason directly.
4853 (end_stepping_range): New function.
4854 (print_end_stepping_range_reason, print_signal_exited_reason)
4855 (print_exited_reason, print_signal_received_reason)
4856 (print_no_history_reason): Make static, and add an uiout
4857 parameter. Print to that instead of to CURRENT_UIOUT.
4858 * infrun.h (print_end_stepping_range_reason)
4859 (print_signal_exited_reason, print_exited_reason)
4860 (print_signal_received_reason print_no_history_reason): New
4861 declarations.
4862 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4863 'mi_uiout'.
4864 <cli_uiout>: New field.
4865 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4866 uiout for CLI output. Install 'signal_received',
4867 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4868 observers.
4869 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4870 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4871 (mi_on_no_history): New functions.
4872 (ui_out_free_cleanup): Delete function.
4873 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4874 instead use the one already stored in the MI interpreter data.
4875 (mi_ui_out): Adjust.
4876 * tui/tui-interp.c: Include infrun.h and observer.h.
4877 (tui_interp): New global.
4878 (tui_on_signal_received, tui_on_end_stepping_range)
4879 (tui_on_signal_exited, tui_on_exited)
4880 (tui_on_no_history): New functions.
4881 (tui_init): Install them as 'end_stepping_range',
4882 'signal_received' 'signal_exited', 'exited' and 'no_history'
4883 observers.
4884 (_initialize_tui_interp): Delete tui_interp local.
4885
4886 2014-05-29 Pedro Alves <palves@redhat.com>
4887
4888 PR gdb/15713
4889 * linux-nat.c (linux_nat_resume_callback): Rename the second
4890 parameter to 'except'. Skip LP if it points to EXCEPT.
4891 (linux_nat_resume): Don't mark the event lwp as not stopped
4892 before resuming sibling lwps. Instead ask
4893 linux_nat_resume_callback to skip the event lwp. Mark it as not
4894 stopped after actually resuming it.
4895 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4896 resuming it.
4897 (wait_lwp): Mark the lwp as stopped here.
4898 (stop_wait_callback): Mark the lwp as not stopped right after
4899 resuming it. Don't mark lwps as stopped here.
4900 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4901 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4902
4903 2014-05-29 Pedro Alves <palves@redhat.com>
4904
4905 PR PR15693
4906 * infrun.c (resume): Determine how much to resume depending on
4907 whether the caller wanted a step, not whether we can hardware step
4908 the target. Mark all threads that we intend to run as running,
4909 unless we're calling an inferior function.
4910 (normal_stop): If the thread is running an infcall, don't finish
4911 thread state.
4912 * target.c (target_resume): Don't mark threads as running here.
4913
4914 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4915
4916 * serial.c (_initialize_serial): Remove support for
4917 the "set remotebaud" and "show remotebaud" commands.
4918 * NEWS: Add entry documenting the removal of that command.
4919
4920 2014-05-28 Yao Qi <yao@codesourcery.com>
4921
4922 * charset.c: Fix typo in comments.
4923
4924 2014-05-27 Gary Benson <gbenson@redhat.com>
4925
4926 * utils.c (internal_vproblem): Prompt for a bug report.
4927
4928 2014-05-26 Andy Wingo <wingo@igalia.com>
4929
4930 * guile/scm-arch.c (arscm_mark_arch_smob):
4931 * guile/scm-block.c (bkscm_mark_block_smob)
4932 (bkscm_mark_block_syms_progress_smob):
4933 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4934 * guile/scm-exception.c (exscm_mark_exception_smob):
4935 * guile/scm-frame.c (frscm_mark_frame_smob):
4936 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4937 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4938 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4939 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4940 (ppscm_mark_pretty_printer_worker_smob):
4941 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4942 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4943 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4944 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4945 mark functions.
4946 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4947 function.
4948
4949 2014-05-26 Andy Wingo <wingo@igalia.com>
4950 Doug Evans <xdje42@gmail.com>
4951
4952 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4953 empty_base_class. All uses updated.
4954 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4955 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4956 Adapt all callers.
4957 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4958 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4959 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4960 (gdbscm_gsmob_has_property_p, add_property_name)
4961 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4962 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4963 (gdb-object-has-property?, gdb-object-properties): Remove.
4964 (gdb-object-kind): Renamed from gsmob-kind.
4965
4966 2014-05-26 Andy Wingo <wingo@igalia.com>
4967
4968 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4969 * configure: Regenerate.
4970
4971 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4972
4973 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4974
4975 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4976
4977 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4978 (replay_memory_access_read_only, replay_memory_access_read_write)
4979 (replay_memory_access_types, replay_memory_access)
4980 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4981 (cmd_set_record_btrace, cmd_show_record_btrace)
4982 (cmd_show_replay_memory_access): New.
4983 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4984 (record_btrace_remove_breakpoint): Replace
4985 record_btrace_allow_memory_access with replay_memory_access.
4986 (_initialize_record_btrace): Add commands.
4987 * NEWS: Announce it.
4988
4989 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4990
4991 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4992
4993 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4994
4995 * MAINTAINERS (Write After Approval): Move self back from
4996 paper trail.
4997
4998 2014-05-22 Pedro Alves <palves@redhat.com>
4999
5000 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5001 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5002 (disable_randomization, enum exec_direction_kind)
5003 (execution_direction, stop_registers, start_remote)
5004 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5005 (wait_for_inferior, normal_stop, get_last_target_status)
5006 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5007 (insert_step_resume_breakpoint_at_sal)
5008 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5009 (set_step_info, print_stop_event, signal_stop_state)
5010 (signal_print_state, signal_pass_state, signal_stop_update)
5011 (signal_print_update, signal_pass_update)
5012 (update_signals_program_target, clear_exit_convenience_vars)
5013 (displaced_step_dump_bytes, update_observer_mode)
5014 (signal_catch_update, gdb_signal_from_command): Move
5015 declarations ...
5016 * infrun.h: ... to this new file.
5017 * amd64-tdep.c: Include infrun.h.
5018 * annotate.c: Include infrun.h.
5019 * arch-utils.c: Include infrun.h.
5020 * arm-linux-tdep.c: Include infrun.h.
5021 * arm-tdep.c: Include infrun.h.
5022 * break-catch-sig.c: Include infrun.h.
5023 * breakpoint.c: Include infrun.h.
5024 * common/agent.c: Include infrun.h instead of inferior.h.
5025 * corelow.c: Include infrun.h.
5026 * event-top.c: Include infrun.h.
5027 * go32-nat.c: Include infrun.h.
5028 * i386-tdep.c: Include infrun.h.
5029 * inf-loop.c: Include infrun.h.
5030 * infcall.c: Include infrun.h.
5031 * infcmd.c: Include infrun.h.
5032 * infrun.c: Include infrun.h.
5033 * linux-fork.c: Include infrun.h.
5034 * linux-nat.c: Include infrun.h.
5035 * linux-thread-db.c: Include infrun.h.
5036 * monitor.c: Include infrun.h.
5037 * nto-tdep.c: Include infrun.h.
5038 * procfs.c: Include infrun.h.
5039 * record-btrace.c: Include infrun.h.
5040 * record-full.c: Include infrun.h.
5041 * remote-m32r-sdi.c: Include infrun.h.
5042 * remote-mips.c: Include infrun.h.
5043 * remote-notif.c: Include infrun.h.
5044 * remote-sim.c: Include infrun.h.
5045 * remote.c: Include infrun.h.
5046 * reverse.c: Include infrun.h.
5047 * rs6000-tdep.c: Include infrun.h.
5048 * s390-linux-tdep.c: Include infrun.h.
5049 * solib-irix.c: Include infrun.h.
5050 * solib-osf.c: Include infrun.h.
5051 * solib-svr4.c: Include infrun.h.
5052 * target.c: Include infrun.h.
5053 * top.c: Include infrun.h.
5054 * windows-nat.c: Include infrun.h.
5055 * mi/mi-interp.c: Include infrun.h.
5056 * mi/mi-main.c: Include infrun.h.
5057 * python/py-threadevent.c: Include infrun.h.
5058
5059 2014-05-22 Pedro Alves <palves@redhat.com>
5060
5061 * infrun.c (handle_inferior_event): Store the exit code for
5062 --return-child-result here, instead of ...
5063 (print_exited_reason): ... here.
5064
5065 2014-05-21 Pedro Alves <palves@redhat.com>
5066
5067 PR gdb/13860
5068 * gdbthread.h (struct thread_control_state): New field
5069 `command_interp'.
5070 * infrun.c (follow_fork): Copy the new thread control field to the
5071 child fork thread.
5072 (clear_proceed_status_thread): Clear the new thread control field.
5073 (proceed): Set the new thread control field.
5074 * interps.h (command_interp): Declare.
5075 * interps.c (command_interpreter): New global.
5076 (command_interp): New function.
5077 (interp_exec): Set `command_interpreter' while here.
5078 * cli-out.c (cli_uiout_dtor): New function.
5079 (cli_ui_out_impl): Install it.
5080 * mi/mi-interp.c: Include cli-out.h.
5081 (mi_cmd_interpreter_exec): Add comment.
5082 (restore_current_uiout_cleanup): New function.
5083 (ui_out_free_cleanup): New function.
5084 (mi_on_normal_stop): If finishing an execution command started by
5085 a CLI command, or any kind of breakpoint-like event triggered,
5086 print the stop event to the output (CLI) stream.
5087 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5088
5089 2014-05-21 Pedro Alves <palves@redhat.com>
5090
5091 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5092 current source line having changed.
5093 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5094 * infrun.c (normal_stop): Adjust call to
5095 set_current_sal_from_frame.
5096 * source.c (clear_lines_listed_range): New function.
5097 (set_current_source_symtab_and_line, identify_source_line): Clear
5098 the lines listed range.
5099 (line_info): Handle the first "info line" after the current source
5100 line having changed.
5101 * stack.c (print_stack_frame): Remove center handling.
5102 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5103 center sal.line.
5104
5105 2014-05-21 Pedro Alves <palves@redhat.com>
5106
5107 * inf-child.c (inf_child_mourn_inferior): New function.
5108 * inf-child.h (inf_child_mourn_inferior): New declaration.
5109 * darwin-nat.c (darwin_mourn_inferior): Use
5110 inf_child_mourn_inferior.
5111 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5112 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5113 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5114 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5115 * windows-nat.c (windows_mourn_inferior): Likewise.
5116
5117 2014-05-21 Doug Evans <xdje42@gmail.com>
5118
5119 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5120
5121 2014-05-21 Doug Evans <xdje42@gmail.com>
5122
5123 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5124 (gdbscm_out_of_range_error): Ditto.
5125 (gdbscm_memory_error): Ditto.
5126 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5127 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5128 (gdbscm_out_of_range_error): Update.
5129 (gdbscm_memory_error): Update.
5130 (gdbscm_scm_to_target_string_unsafe): Delete.
5131
5132 2014-05-21 Pedro Alves <palves@redhat.com>
5133
5134 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5135 globals.
5136 (inf_child_open_target): New function.
5137 (inf_child_open): Use inf_child_open_target to push the target
5138 instead of erroring out.
5139 (inf_child_disconnect, inf_child_close)
5140 (inf_child_maybe_unpush_target): New functions.
5141 (inf_child_target): Install inf_child_disconnect and
5142 inf_child_close. Store a pointer to the returned object.
5143 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5144 declarations.
5145 * target.c (auto_connect_native_target): New global.
5146 (show_default_run_target): New function.
5147 (find_default_run_target): Return NULL if automatically connecting
5148 to the native target is disabled.
5149 (_initialize_target): Install set/show auto-connect-native-target.
5150 * NEWS: Mention "set auto-connect-native-target", and "target
5151 native".
5152 * linux-nat.c (super_close): New global.
5153 (linux_nat_close): Call super_close.
5154 (linux_nat_add_target): Store a pointer to the base class's
5155 to_close method.
5156 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5157 inf_child_maybe_unpush.
5158 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5159 already pushed.
5160 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5161 the inferior. Use inf_child_maybe_unpush_target.
5162 (inf_ttrace_attach): Don't push the target if it is already
5163 pushed.
5164 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5165 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5166 after mourning the inferior. Use inf_child_maybe_unpush_target.
5167 (darwin_attach_pid): Don't push the target if it is already
5168 pushed.
5169 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5170 mourning the inferior. Use inf_child_maybe_unpush_target.
5171 (gnu_detach): Use inf_child_maybe_unpush_target.
5172 * go32-nat.c (go32_create_inferior): Don't push the target if it
5173 is already pushed.
5174 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5175 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5176 (procfs_open): Rename to ...
5177 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5178 comments. Can target_preopen before changing node. Call
5179 inf_child_open_target to push the target explicitly.
5180 (procfs_attach): Don't push the target if it is already pushed.
5181 (procfs_detach): Use inf_child_maybe_unpush_target.
5182 (procfs_create_inferior): Don't push the target if it is already
5183 pushed.
5184 (nto_native_ops): New global.
5185 (procfs_open): Reimplement.
5186 (procfs_native_open): New function.
5187 (init_procfs_targets): Install procfs_native_open as to_open of
5188 "target native". Store a pointer to the "native" target in
5189 nto_native_ops.
5190 * procfs.c (procfs_attach): Don't push the target if it is already
5191 pushed.
5192 (procfs_detach): Use inf_child_maybe_unpush_target.
5193 (procfs_mourn_inferior): Only unpush the target after mourning the
5194 inferior. Use inf_child_maybe_unpush_target.
5195 (procfs_init_inferior): Don't push the target if it is already
5196 pushed.
5197 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5198 if it is already pushed.
5199
5200 2014-05-21 Pedro Alves <palves@redhat.com>
5201
5202 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5203 and "procfs" targets are now called "native" instead.
5204
5205 2014-05-21 Pedro Alves <palves@redhat.com>
5206
5207 * go32-nat.c (go32_open): Delete.
5208 (go32_target): Don't override the to_open method.
5209
5210 2014-05-21 Pedro Alves <palves@redhat.com>
5211
5212 * nto-procfs.c (procfs_can_run): New function.
5213 (nto_procfs_ops): New global.
5214 (init_procfs_targets): New, based on procfs_target. Install
5215 "target native" in addition to "target procfs".
5216 (_initialize_procfs): Call init_procfs_targets instead of adding
5217 the target here.
5218
5219 2014-05-21 Pedro Alves <palves@redhat.com>
5220
5221 * windows-nat.c (windows_target): Don't override to_shortname,
5222 to_longname or to_doc.
5223
5224 2014-05-21 Pedro Alves <palves@redhat.com>
5225
5226 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5227 to_doc.
5228
5229 2014-05-21 Pedro Alves <palves@redhat.com>
5230
5231 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5232 to_shortname, to_longname or to_doc.
5233
5234 2014-05-21 Pedro Alves <palves@redhat.com>
5235
5236 * go32-nat.c (go32_target): Don't override to_shortname,
5237 to_longname or to_doc.
5238
5239 2014-05-21 Pedro Alves <palves@redhat.com>
5240
5241 * inf-child.c (inf_child_open): Remove mention of "child".
5242 (inf_child_target): Rename target to "native" instead of "child".
5243
5244 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5245
5246 * Makefile.in (SFILES): Delete "regset.c".
5247 (COMMON_OBS): Delete "regset.o".
5248 * regset.c: Remove.
5249 * regset.h (regset_alloc): Delete prototype.
5250
5251 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5252
5253 * sparc-linux-tdep.c (sparc32_linux_gregset)
5254 (sparc32_linux_fpregset): New static regset structures.
5255 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5256 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5257 'fpregset' fields.
5258 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5259 (sparc64_linux_fpregset): New static regset structures.
5260 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5261 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5262 New static regset structures.
5263 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5264 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5265 New static regset structures.
5266 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5267 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5268 New static regset structures.
5269 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5270 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5271 New static regset structures.
5272 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5273
5274 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5275
5276 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5277 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5278 register maps ("regmaps") from "*regset" to "*regmap". Do this
5279 for all regmap types and variables.
5280 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5281 (sparc32_linux_supply_core_gregset)
5282 (sparc32_linux_collect_core_gregset)
5283 (sparc32_linux_supply_core_fpregset)
5284 (sparc32_linux_collect_core_fpregset): Likewise.
5285 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5286 (sparc_gregmap, sparc_fpregmap): ... these.
5287 (sparc_supply_gregset, sparc_collect_gregset)
5288 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5289 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5290 (_initialize_sparc_nat): Rename regmaps.
5291 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5292 (sparc_gregmap, sparc_fpregmap): ... these.
5293 (sparc_supply_gregset, sparc_collect_gregset)
5294 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5295 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5296 Rename macros to...
5297 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5298 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5299 Likewise.
5300 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5301 Rename to...
5302 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5303 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5304 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5305 regmaps.
5306 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5307 (sparc32_bsd_fpregset): Rename to...
5308 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5309 (sparc32_bsd_fpregmap): ... these.
5310 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5311 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5312 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5313 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5314 (struct sparc_gregmap, struct sparc_fpregmap)
5315 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5316 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5317 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5318 (sparc32_supply_regset, sparc32_collect_gregset)
5319 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5320 prototypes.
5321 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5322 (sparc64_linux_ptrace_gregmap): ... this.
5323 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5324 (_initialize_sparc64_linux_nat): Rename regmaps.
5325 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5326 (sparc64_linux_core_gregmap): ... this.
5327 (sparc64_linux_supply_core_gregset)
5328 (sparc64_linux_collect_core_gregset)
5329 (sparc64_linux_supply_core_fpregset)
5330 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5331 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5332 (sparc64_sol2_fpregset): Rename to...
5333 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5334 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5335 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5336 regmaps.
5337 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5338 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5339 (sparc64_bsd_fpregset): Rename to...
5340 (struct sparc_gregmap, sparc64_sol2_gregmap)
5341 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5342 (sparc64_bsd_fpregmap): ... these.
5343 (sparc64_supply_gregset, sparc64_collect_gregset)
5344 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5345 prototypes.
5346 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5347 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5348 (sparc64fbsd_gregmap): ... this.
5349 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5350 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5351 Rename regmaps.
5352 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5353 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5354 (sparc64nbsd_collect_fpregset): Likewise.
5355 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5356 (sparc64nbsd_gregmap): ... this.
5357 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5358 regmaps.
5359 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5360 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5361 (sparc64obsd_gregmap): ... this.
5362 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5363 regmaps.
5364 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5365 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5366 (sparc32nbsd_gregmap): ... this.
5367 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5368 regmaps.
5369
5370 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5371
5372 * score-tdep.c (score7_linux_gregset): New static regset
5373 structure.
5374 (score7_linux_regset_from_core_section): Remove dynamic regset
5375 allocation.
5376 (score_gdbarch_init): Drop allocation of tdep structure.
5377 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5378
5379 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5380
5381 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5382 regset structures.
5383 (am33_regset_from_core_section): Remove dynamic regset
5384 allocations.
5385
5386 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5387
5388 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5389 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5390 structures.
5391 (mips_linux_regset_from_core_section): Remove dynamic regset
5392 allocations.
5393 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5394 'gregset64', 'fpregset', and 'fpregset64'.
5395 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5396 deleted tdep fields.
5397
5398 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5399
5400 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5401 regset structures.
5402 (amd64_regset_from_core_section): Remove dynamic regset
5403 allocations.
5404 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5405 structure.
5406 (amd64obsd_regset_from_core_section): Remove dynamic regset
5407 allocation.
5408 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5409 Likewise.
5410 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5411 x86-common regset supply function.
5412 * i386-tdep.c (i386_collect_gregset): Make static.
5413 (i386_gregset): New global regset structure.
5414 (i386_fpregset, i386_xstateregset): New static regset structures.
5415 (i386_regset_from_core_section): Remove dynamic regset
5416 allocations.
5417 (i386_gdbarch_init): Remove initialization of tdep fields
5418 'gregset', 'fpregset', and 'xstateregset'.
5419 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5420 'fpregset', and 'xstateregset'.
5421 (i386_collect_gregset): Remove prototype.
5422 (i386_gregset): New declaration.
5423 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5424 structure.
5425 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5426 allocation.
5427
5428 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5429
5430 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5431 (arm_linux_vfpregset): New static regset structures.
5432 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5433 regset structures.
5434 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5435 and 'vfpregset' fields.
5436
5437 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5438
5439 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5440 (aarch64_linux_fpregset): New static regset structures.
5441 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5442 of regset structures.
5443 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5444 'fpregset' fields.
5445
5446 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5447
5448 * regset.h (struct regset): Remove gdbarch field.
5449 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5450 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5451 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5452 Likewise.
5453 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5454 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5455 (ppc32_linux_vsxregset): Likewise.
5456 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5457 via the regcache instead of the regset.
5458 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5459 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5460 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5461 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5462 Likewise.
5463
5464 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5465
5466 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5467 Constify structures.
5468 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5469 (alphanbsd_aout_gregset): Likewise.
5470 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5471 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5472 Likewise.
5473 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5474 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5475 Likewise.
5476 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5477 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5478 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5479 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5480 * m88k-tdep.c (m88k_gregset): Likewise.
5481 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5482 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5483 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5484 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5485 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5486 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5487 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5488 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5489 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5490 Likewise.
5491 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5492 * sh-tdep.h (sh_corefile_gregset): Likewise.
5493 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5494 * vax-tdep.c (vax_gregset): Likewise.
5495
5496 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5497
5498 Fix TLS access for -static -pthread.
5499 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5500 (try_thread_db_load_1): Initialize it.
5501 (thread_db_get_thread_local_address): Call it if LM is zero.
5502 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5503 * target.h (struct target_ops) (to_get_thread_local_address): Add
5504 load_module_addr comment.
5505
5506 2014-05-21 Pedro Alves <palves@redhat.com>
5507
5508 * dcache.c (dcache_read_memory_partial): If reading the cache line
5509 fails, fallback to reading just the memory the caller wanted.
5510
5511 2014-05-20 Doug Evans <dje@google.com>
5512
5513 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5514 instead of get_current_arch.
5515
5516 2014-05-20 Pedro Alves <palves@redhat.com>
5517
5518 * NEWS: Mention that compare-sections now works with all targets.
5519
5520 * remote.c (PACKET_qCRC): New enum value.
5521 (remote_verify_memory): Don't send qCRC if the target has no
5522 execution. Use packet_support/packet_ok. If the target doesn't
5523 support the qCRC packet, fallback to a deep memory copy.
5524 (compare_sections_command): Say "target image" instead of "remote
5525 executable".
5526 (_initialize_remote): Add PACKET_qCRC to the list of config
5527 packets that have no associated command. Extend comment.
5528 * target.c (simple_verify_memory, default_verify_memory): New
5529 function.
5530 * target.h (struct target_ops) <to_verify_memory>: Default to
5531 default_verify_memory.
5532 (simple_verify_memory): New declaration.
5533 * target-delegates.c: Regenerate.
5534
5535 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5536
5537 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5538
5539 2014-05-20 Hui Zhu <hui@codesourcery.com>
5540 Yao Qi <yao@codesourcery.com>
5541
5542 PR backtrace/16558
5543 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5544 and change address of sp and pc.
5545
5546 2014-05-19 Tom Tromey <tromey@redhat.com>
5547
5548 * gdbtypes.c (rank_function): Use XNEWVEC.
5549 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5550
5551 2014-05-19 Doug Evans <dje@google.com>
5552
5553 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5554 build_type_unit_groups and moved closer to only caller. Remove
5555 arguments. All references updated. Remove outdated .gdb_index
5556 comment.
5557 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5558 build_type_psymtabs_1.
5559
5560 2014-05-19 Doug Evans <dje@google.com>
5561
5562 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5563 n_type_unit_groups, all_type_unit_groups. All uses removed.
5564 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5565 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5566 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5567 (add_type_unit_group_to_table): Delete.
5568
5569 2014-05-19 Doug Evans <dje@google.com>
5570
5571 * eval.c (evaluate_subexp_standard): Add some comments.
5572
5573 2014-05-17 Doug Evans <xdje42@gmail.com>
5574
5575 * progspace.c (remove_program_space): Delete, unused.
5576 * progspace.h (remove_program_space): Ditto.
5577
5578 2014-05-17 Doug Evans <xdje42@gmail.com>
5579
5580 * inferior.c (prune_inferiors): Fix comment.
5581 (remove_inferior_command): Call prune_program_spaces.
5582
5583 2014-05-16 Doug Evans <dje@google.com>
5584
5585 New command line option -D.
5586 * NEWS: Mention it.
5587 * main.c (set_gdb_data_directory): New function.
5588 (captured_main): Recognize -D. Flag error for --data-directory "".
5589 Call set_gdb_data_directory.
5590 (print_gdb_help): Print --data-directory, -D.
5591 * main.h (set_gdb_data_directory): Declare.
5592 * top.c (staged_gdb_datadir): New static global.
5593 (set_gdb_datadir): Call set_gdb_data_directory
5594 (show_gdb_datadir): New function.
5595 (init_main): Update init of data-directory parameter.
5596
5597 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5598
5599 Import the "dirfd" gnulib module.
5600 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5601 * gnulib/aclocal.m4: Update.
5602 * gnulib/config.in: Update.
5603 * gnulib/configure: Update.
5604 * gnulib/import/Makefile.am: Update.
5605 * gnulib/import/Makefile.in: Update.
5606 * gnulib/import/dirfd.c: New.
5607 * gnulib/import/m4/dirfd.m4: New.
5608 * gnulib/import/m4/gnulib-cache.m4: Update.
5609 * gnulib/import/m4/gnulib-comp.m4: Update.
5610
5611 2014-05-16 Pierre Muller <muller@sourceware.org>
5612 Yao Qi <yao@codesourcery.com>
5613
5614 * valprint.c (print_wchar): Move the code on checking whether
5615 W is a printable wide char to the default branch of switch
5616 statement below. Call wchar_printable instead of gdb_iswprint.
5617
5618 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5619
5620 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5621 ldr.w and ldrd instructions.
5622
5623 2014-05-15 Doug Evans <dje@google.com>
5624
5625 * dwarf2read.c (read_structure_type): Delete outdated comments.
5626
5627 2014-05-14 Tom Tromey <tromey@redhat.com>
5628
5629 * macrocmd.c (print_macro_definition): Reindent.
5630
5631 2014-05-13 Doug Evans <xdje42@gmail.com>
5632
5633 * python/py-cmd.c (cmdpy_completer): Add comment.
5634 (completers): Make const.
5635
5636 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5637
5638 * infrun.c (resume): Remove should_resume (unused). Move up
5639 declaration of resume_ptid.
5640
5641 2014-05-13 Tom Tromey <tromey@redhat.com>
5642
5643 * language.h (unop_type_check): Remove.
5644 (binop_type_check): Don't declare.
5645
5646 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5647
5648 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5649 call to regcache_raw_collect.
5650
5651 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5652
5653 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5654 mi_console->quote as the quoting character.
5655
5656 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5657
5658 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5659
5660 2014-04-29 Tom Tromey <tromey@redhat.com>
5661
5662 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5663 "show debug varobj".
5664
5665 2014-05-07 Kyle McMartin <kyle@redhat.com>
5666
5667 Pushed by Joel Brobecker <brobecker@adacore.com>.
5668 * aarch64-tdep.c (aarch64_software_single_step): New function.
5669 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5670 with aarch64_software_single_step.
5671
5672 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5673
5674 GDB 7.7.1 released.
5675
5676 2014-05-05 Keith Seitz <keiths@redhat.com>
5677
5678 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5679 variable or history value is successfully parsed.
5680
5681 2014-05-05 Yao Qi <yao@codesourcery.com>
5682 Pedro Alves <palves@redhat.com>
5683
5684 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5685 address of blocks that intersects the requested range. Trim
5686 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5687 sections.
5688 * ctf.c (ctf_xfer_partial): Likewise.
5689
5690 2014-05-05 Yao Qi <yao@codesourcery.com>
5691
5692 * printcmd.c (display_command): Remove the check to
5693 target_has_execution.
5694
5695 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5696
5697 * ppcobsd-nat.c: Include "obsd-nat.h".
5698 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5699 add_target.
5700 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5701
5702 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5703
5704 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5705 and 16-bit signed and unsigned arguments. Update comment.
5706 (stap_parse_probe_arguments): Extend code to handle such
5707 arguments. Use warning instead of complaint to notify about
5708 unrecognized bitness.
5709
5710 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5711
5712 PR breakpoints/16889
5713 * stap-probe.c (stap_parse_probe_arguments): Simplify
5714 check for non-prefixed probes (i.e., probes whose
5715 arguments do not start with "N@"). Always set the
5716 argument type to a sane value.
5717
5718 2014-05-01 David Taylor <dtaylor@emc.com>
5719
5720 * remote.c (compare_sections_command): Add -r option to compare
5721 all loadable read-only sections.
5722
5723 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5724
5725 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5726 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5727 Update all callers.
5728 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5729 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5730 Remove unused CORE_ADDR argument. Update all callers.
5731
5732 2014-04-29 Pedro Alves <palves@redhat.com>
5733
5734 * remote.c (struct packet_config) <detect>: Extend comment.
5735 (add_packet_config_cmd): Don't set the config's detect or support
5736 fields here.
5737 (init_all_packet_configs): Also initialize the config's 'detect'
5738 field.
5739 (reset_all_packet_configs_support): New function.
5740 (remote_open_1): Call reset_all_packet_configs_support instead of
5741 init_all_packet_configs.
5742 (_initialize_remote): Initialize all packet configs. Assert that
5743 all packets have an associated command, except a few known
5744 outliers.
5745
5746 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5747
5748 * dwarf2read.c (read_subrange_type): Handle dynamic
5749 DW_AT_lower_bound attributes.
5750
5751 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5752
5753 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5754 dynamic bounds before computing its upper bound.
5755 (ada_discrete_type_low_bound): Same as above with the lower bound.
5756
5757 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5758
5759 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5760 range types. Adjust the array handling implementation to
5761 take advantage of this change.
5762 (resolve_dynamic_range): New function, mostly extracted from
5763 resolve_dynamic_bounds.
5764 (resolve_dynamic_array): New function, mostly extracted from
5765 resolve_dynamic_bounds.
5766 (resolve_dynamic_bounds): Delete.
5767 (resolve_dynamic_type): Reimplement. Add handling of
5768 TYPE_CODE_RANGE types.
5769
5770 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5771
5772 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5773 handling of parallel ___XA types.
5774
5775 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5776
5777 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5778 unnecessary second call to static_unwrap_type.
5779
5780 2014-04-27 Hui Zhu <hui@codesourcery.com>
5781
5782 * stack.c (print_frame_info): Call do_gdb_disassembly with
5783 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5784
5785 2014-04-26 Doug Evans <xdje42@gmail.com>
5786
5787 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5788
5789 2014-04-25 Pedro Alves <palves@redhat.com>
5790
5791 PR server/16255
5792 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5793 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5794 and newline from built string.
5795 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5796 (linux_ptrace_attach_fail_reason): ... this.
5797 * linux-nat.c (linux_nat_attach): Adjust to use
5798 linux_ptrace_attach_fail_reason.
5799
5800 2014-04-25 Pedro Alves <palves@redhat.com>
5801
5802 * remote.c (struct remote_state): Remove multi_process_aware,
5803 non_stop_aware, cond_tracepoints, cond_breakpoints,
5804 breakpoint_commands, fast_tracepoints, static_tracepoints,
5805 install_in_trace, disconnected_tracing,
5806 enable_disable_tracepoints, string_tracing, and
5807 augmented_libraries_svr4_read fields.
5808 (remote_multi_process_p): Move further below in the file.
5809 (struct packet_config): Add comments.
5810 (update_packet_config): Delete function.
5811 (show_packet_config_cmd): Use packet_config_support.
5812 (add_packet_config_cmd): Use NULL as set callback.
5813 (packet_ok): "set remote foo-packet"-style commands no longer
5814 change config->supported -- adjust.
5815 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5816 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5817 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5818 (PACKET_QNonStop, PACKET_multiprocess_feature)
5819 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5820 (PACKET_DisconnectedTracing_feature)
5821 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5822 (set_remote_protocol_packet_cmd): Delete function.
5823 (packet_config_support, packet_support): New functions.
5824 (set_remote_protocol_Z_packet_cmd): Don't call
5825 update_packet_config.
5826 (remote_query_attached, remote_pass_signals)
5827 (remote_program_signals, remote_threads_info)
5828 (remote_threads_extra_info, remote_start_remote): Use
5829 packet_support.
5830 (remote_start_remote): Use packet_config_support and
5831 packet_support.
5832 (init_all_packet_configs): Set all packets to unknown support,
5833 instead of calling update_packet_config.
5834 (remote_check_symbols): Use packet_support.
5835 (remote_supported_packet): Unconditionally set the packet config's
5836 support status.
5837 (remote_multi_process_feature, remote_non_stop_feature)
5838 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5839 (remote_breakpoint_commands_feature)
5840 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5841 (remote_install_in_trace_feature)
5842 (remote_disconnected_tracing_feature)
5843 (remote_enable_disable_tracepoint_feature)
5844 (remote_string_tracing_feature)
5845 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5846 (remote_protocol_features): Adjust to use remote_supported_packet
5847 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5848 "ConditionalTracepoints", "ConditionalBreakpoints",
5849 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5850 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5851 "EnableDisableTracepoints", and "tracenz".
5852 (remote_query_supported): Use packet_support.
5853 (remote_open_1): Adjust.
5854 (extended_remote_attach_1): Use packet_support. Switch on the
5855 result of packet_ok instead of checking whether the packet ended
5856 up disabled.
5857 (remote_vcont_resume): Use packet_support.
5858 (remote_resume, remote_stop_ns, fetch_register_using_p)
5859 (remote_prepare_to_store, store_register_using_P)
5860 (check_binary_download, remote_write_bytes): Use packet_support.
5861 (remote_vkill): Use packet_support. Switch on the result of
5862 packet_ok instead of checking whether the packet ended up
5863 disabled.
5864 (extended_remote_supports_disable_randomization): Use
5865 packet_support.
5866 (extended_remote_run): Switch on the result of packet_ok instead
5867 of checking whether the packet ended up disabled.
5868 (remote_insert_breakpoint, remote_remove_breakpoint)
5869 (remote_insert_watchpoint, remote_remove_watchpoint)
5870 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5871 packet_support.
5872 (remote_search_memory): Use packet_config_support.
5873 (remote_get_thread_local_address, remote_get_tib_address)
5874 (remote_hostio_send_command, remote_can_execute_reverse): Use
5875 packet_support.
5876 (remote_supports_cond_tracepoints)
5877 (remote_supports_cond_breakpoints)
5878 (remote_supports_fast_tracepoints)
5879 (remote_supports_static_tracepoints)
5880 (remote_supports_install_in_trace)
5881 (remote_supports_enable_disable_tracepoint)
5882 (remote_supports_string_tracing)
5883 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5884 the packet config says the feature is enabled or disabled.
5885 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5886 (remote_get_trace_status): Use packet_support.
5887 (remote_set_disconnected_tracing): Adjust to check whether the
5888 feature is enabled with packet_support.
5889 (remote_set_trace_buffer_size, remote_use_agent)
5890 (remote_can_use_agent, remote_supports_btrace): Use
5891 packet_support.
5892 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5893 Use packet_config_support.
5894 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5895 the packet config says the feature is enabled or disabled.
5896 (set_range_stepping): Use packet_support.
5897
5898 2014-04-25 Tom Tromey <tromey@redhat.com>
5899
5900 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5901 argument.
5902
5903 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5904
5905 * NEWS: Mention support for C99 variable length arrays.
5906
5907 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5908
5909 * ada-lang.c (standard_exc): Expand introductory comment.
5910
5911 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5912 Walfred Tedeschi <walfred.tedeschi@intel.com>
5913
5914 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5915 AVX512 registers.
5916 (amd64_linux_read_description): Add code to handle AVX512 xstate
5917 mask and return respective tdesc.
5918 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5919 and features/i386/x32-avx512-linux.c.
5920 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5921 (amd64_linux_core_read_description): Add code to handle AVX512
5922 xstate mask and return respective tdesc.
5923 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5924 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5925 calculation.
5926 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5927 (tdesc_amd64_avx512_linux): New prototype.
5928 (tdesc_x32_avx512_linux): Likewise.
5929 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5930 features/i386/x32-avx512.c.
5931 (amd64_ymm_avx512_names): New register names for pseudo
5932 registers YMM16-31.
5933 (amd64_ymmh_avx512_names): New register names for raw registers
5934 YMMH16-31.
5935 (amd64_k_names): New register names for K registers.
5936 (amd64_zmmh_names): New register names for ZMM raw registers.
5937 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5938 (amd64_xmm_avx512_names): New register names for XMM16-31
5939 registers.
5940 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5941 registers.
5942 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5943 if feature is present.
5944 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5945 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5946 (AMD64_NUM_REGS): Adjust to new number of registers.
5947 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5948 registers supplied via XSTATE by AVX512 registers.
5949 (i386_linux_read_description): Add case for AVX512.
5950 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5951 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5952 (i386_linux_core_read_description): Add case for AVX512.
5953 (i386_linux_init_abi): Install supported register note section
5954 for AVX512.
5955 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5956 AVX512.
5957 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5958 registers to be number of zmm7h + 1.
5959 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5960 * i386-tdep.c: Include features/i386/i386-avx512.c.
5961 (i386_zmm_names): Add ZMM pseudo register names array.
5962 (i386_zmmh_names): Add ZMM raw register names array.
5963 (i386_k_names): Add K raw register names array.
5964 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5965 registers. AVX512 has 16 more ZMM registers than there are YMM
5966 registers.
5967 (i386_zmmh_regnum_p): Add function to look up register number of
5968 ZMM raw registers.
5969 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5970 (i386_k_regnum_p): Likewise for K raw registers.
5971 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5972 registers added by AVX512.
5973 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5974 registers added by AVX512.
5975 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5976 added by AVX512.
5977 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5978 (i386_pseudo_register_name): Add ZMM pseudo registers.
5979 (i386_zmm_type): Construct and return vector registers type for ZMM
5980 registers.
5981 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5982 ZMM0-31 pseudo registers and K registers.
5983 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5984 and YMM16-31 registers from register cache.
5985 (i386_pseudo_register_write): Add code to write K, ZMM and
5986 YMM16-31 registers.
5987 (i386_register_reggroup_p): Add code to include/exclude AVX512
5988 registers in/from respective register groups.
5989 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5990 registers if feature is present in xcr0.
5991 (i386_gdbarch_init): Add code to initialize AVX512 feature
5992 variables in tdep structure, wire in pseudo registers and call
5993 initialize_tdesc_i386_avx512.
5994 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5995 variables.
5996 (i386_regnum): Add AVX512 registers.
5997 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5998 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5999 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6000 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6001 512 bits wide.
6002 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6003 (i386_ymm_avx512_regnum_p): Likewise.
6004 (i386_k_regnum_p): Likewise.
6005 (i386_zmm_regnum_p): Likewise.
6006 (i386_zmmh_regnum_p): Likewise.
6007 * i387-tdep.c : Update year in copyright notice.
6008 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6009 XSAVE buffer.
6010 (XSAVE_YMM_AVX512_ADDR): New macro.
6011 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6012 XSAVE buffer.
6013 (XSAVE_XMM_AVX512_ADDR): New macro.
6014 (xsave_avx512_k_offset): New table for K register offsets in
6015 XSAVE buffer.
6016 (XSAVE_AVX512_K_ADDR): New macro.
6017 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6018 in XSAVE buffer.
6019 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6020 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6021 buffer.
6022 (i387_collect_xsave): Add code to collect AVX512 registers from
6023 XSAVE buffer.
6024 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6025 of XMM16-31 registers.
6026 (I387_NUM_K_REGS): New define for number of K registers.
6027 (I387_K0_REGNUM): New define for K0 register number.
6028 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6029 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6030 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6031 registers.
6032 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6033 (I387_XMM16_REGNUM): New define for XMM16 register number.
6034 (I387_YMM0_REGNUM): New define for YMM0 register number.
6035 (I387_KEND_REGNUM): New define for last K register number.
6036 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6037 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6038 number.
6039 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6040 number.
6041 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6042 size.
6043 * features/Makefile: Add AVX512 related files.
6044 * features/i386/32bit-avx512.xml: New file.
6045 * features/i386/64bit-avx512.xml: Likewise.
6046 * features/i386/amd64-avx512-linux.c: Likewise.
6047 * features/i386/amd64-avx512-linux.xml: Likewise.
6048 * features/i386/amd64-avx512.c: Likewise.
6049 * features/i386/amd64-avx512.xml: Likewise.
6050 * features/i386/i386-avx512-linux.c: Likewise.
6051 * features/i386/i386-avx512-linux.xml: Likewise.
6052 * features/i386/i386-avx512.c: Likewise.
6053 * features/i386/i386-avx512.xml: Likewise.
6054 * features/i386/x32-avx512-linux.c: Likewise.
6055 * features/i386/x32-avx512-linux.xml: Likewise.
6056 * features/i386/x32-avx512.c: Likewise.
6057 * features/i386/x32-avx512.xml: Likewise.
6058 * regformats/i386/amd64-avx512-linux.dat: New file.
6059 * regformats/i386/amd64-avx512.dat: Likewise.
6060 * regformats/i386/i386-avx512-linux.dat: Likewise.
6061 * regformats/i386/i386-avx512.dat: Likewise.
6062 * regformats/i386/x32-avx512-linux.dat: Likewise.
6063 * regformats/i386/x32-avx512.dat: Likewise.
6064 * NEWS: Add note about new support for AVX512.
6065
6066
6067 2014-04-23 Pedro Alves <palves@redhat.com>
6068
6069 * breakpoint.c (insert_bp_location): Tolerate errors if the
6070 breakpoint is set in a user-loaded objfile.
6071 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6072 location is marked shlib_disabled. If the breakpoint is set in a
6073 user-loaded objfile is a GDB-side memory breakpoint, validate it
6074 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6075 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6076 flag.
6077 * mem-break.c (memory_validate_breakpoint): New function.
6078 * objfiles.c (userloaded_objfile_contains_address_p): New
6079 function.
6080 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6081 * target.h (memory_validate_breakpoint): New declaration.
6082
6083 2014-04-23 Pedro Alves <palves@redhat.com>
6084
6085 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6086 the breakpoint is set in a shared library, only suppress
6087 errors for software breakpoints, not hardware breakpoints.
6088
6089 2014-04-22 Pedro Alves <palves@redhat.com>
6090
6091 * infrun.c (schedlock_applies): New function, factored out from
6092 find_thread_needs_step_over.
6093 (find_thread_needs_step_over): Use it.
6094 (switch_back_to_stepped_thread): Always clear trap_expected if the
6095 step over is finished. Return early if scheduler locking applies.
6096 Look for the stepping thread and a potential step-over thread with
6097 a single loop.
6098 (currently_stepping_or_nexting_callback): Delete.
6099
6100 2014-04-22 Nick Clifton <nickc@redhat.com>
6101
6102 * NEWS: Mention that ARM sim now supports tracing.
6103
6104 2014-04-22 Yao Qi <yao@codesourcery.com>
6105
6106 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6107 to ...
6108 * tracefile.c (tracefile_fetch_registers): ... it. New
6109 function.
6110 * tracefile.h (tracefile_fetch_registers): Declare.
6111 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6112 tracefile_fetch_registers.
6113
6114 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6115
6116 PR gdb/14018
6117 * windows-nat.c (thread_rec): Don't display a warning when
6118 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6119 fails for any reason, set th->suspended to -1, so that we don't
6120 try to resume such a thread. Also, don't return NULL in these
6121 cases, to avoid completely ruin the session due to "PC register is
6122 not available" error.
6123 (do_windows_fetch_inferior_registers): Check errors in
6124 GetThreadContext call.
6125 (windows_continue): Accept an additional argument KILLED; if not
6126 zero, ignore errors in the SetThreadContext call, since the
6127 inferior was killed and is shutting down.
6128 (windows_resume, get_windows_debug_event)
6129 (windows_create_inferior, windows_mourn_inferior)
6130 (windows_kill_inferior): All callers of windows_continue changed
6131 to adjust to its new calling sequence.
6132
6133 2014-04-19 Yao Qi <yao@codesourcery.com>
6134
6135 * ctf.c (ctf_open): Call post_create_inferior.
6136
6137 2014-04-19 Yao Qi <yao@codesourcery.com>
6138
6139 * ctf.c (handle_id): New static variable.
6140 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6141 value. Get the declaration of event "register" and get length
6142 of field "contents".
6143
6144 2014-04-19 Yao Qi <yao@codesourcery.com>
6145
6146 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6147
6148 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6149
6150 * valops.c (oload_method_static): Remove unnecessary argument
6151 METHOD. Update all callers.
6152
6153 2014-04-18 Pedro alves <palves@redhat.com>
6154 Tom Tromey <tromey@redhat.com>
6155
6156 PR backtrace/15558
6157 * frame.c (get_prev_frame_1): Rename to ...
6158 (get_prev_frame_always): ... this, and make extern. Adjust.
6159 (skip_artificial_frames): Use get_prev_frame_always.
6160 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6161 (get_frame_unwind_stop_reason): Adjust to rename.
6162 * frame.h (get_prev_frame_always): Declare.
6163 * inline-frame.c: Include frame.h.
6164 (inline_frame_this_id): Use get_prev_frame_always.
6165
6166 2014-04-18 Tristan Gingold <gingold@adacore.com>
6167
6168 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6169 code by using bfd_mach_o_get_base_address.
6170
6171 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6172
6173 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6174 (spu_ax_pseudo_register_collect): New function.
6175 (spu_ax_pseudo_register_push_stack): Likewise.
6176 (spu_dwarf_reg_to_regnum): Likewise.
6177 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6178
6179 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6180
6181 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6182 Replace FRAME argument with FRAME_ID.
6183 * gdbarch.c, gdbarch.h: Regenerate.
6184 * findvar.c (default_value_from_register): Add GDBARCH argument;
6185 replace FRAME by FRAME_ID. No longer call get_frame_id.
6186 (value_from_register): Update call to gdbarch_value_from_register.
6187 * value.h (default_value_from_register): Update prototype.
6188 * s390-linux-tdep.c (s390_value_from_register): Update interface
6189 and call to default_value_from_register.
6190 * spu-tdep.c (spu_value_from_register): Likewise.
6191
6192 * findvar.c (address_from_register): Remove TYPE argument.
6193 Do not call value_from_register; use gdbarch_value_from_register
6194 with null_frame_id instead.
6195 * value.h (address_from_register): Update prototype.
6196 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6197 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6198 address_from_register interface change.
6199
6200 2014-04-17 Yao Qi <yao@codesourcery.com>
6201
6202 * gdbtypes.h: Update comments to link to types and macros'
6203 definitions.
6204
6205 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6206
6207 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6208
6209 2014-04-16 Keith Seitz <keiths@redhat.com>
6210
6211 PR gdb/15827
6212 * dwarf2read.c (skip_one_die): Check that all relative-offset
6213 sibling DIEs fall within range of the current reader's buffer.
6214 (read_partial_die): Likewise.
6215
6216 2014-04-16 Keith Seitz <keiths@redhat.com>
6217
6218 PR c++/16597
6219 * cp-namespace.c (lookup_symbol_file): If the type name of
6220 `this' is NULL, return immediately.
6221
6222 2014-04-14 Keith Seitz <keiths@redhat.com>
6223
6224 PR c++/16253
6225 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6226 from symbol_matches_domain in symtab.c. All local callers
6227 of symbol_matches_domain updated.
6228 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6229 search STRUCT_DOMAIN.
6230 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6231 independently. standard_lookup will do that automatically.
6232 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6233 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6234 (cp_lookup_symbol_in_namespace): Likewise.
6235 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6236 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6237 may return a STRUCT_DOMAIN match.
6238 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6239 * cp-support.c: Include language.h.
6240 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6241 VAR_DOMAIN.
6242 * psymtab.c (match_partial_symbol): Compare the requested
6243 domain with the symbol's domain directly.
6244 (lookup_partial_symbol): Likewise.
6245 * symtab.c (lookup_symbol_in_language): Explain when/why
6246 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6247 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6248 appropriate languages.
6249 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6250 and moved to ada-lang.c
6251 (lookup_block_symbol): Explain that this function only returns
6252 symbol matching the requested DOMAIN.
6253 Compare the requested domain with the symbol's domain directly.
6254 (iterate_over_symbols): Compare the requested domain with the
6255 symbol's domain directly.
6256 * symtab.h (symbol_matches_domain): Remove.
6257
6258 2014-04-14 Tom Tromey <tromey@redhat.com>
6259
6260 PR c++/15246:
6261 * c-exp.y (type_aggregate_p): New function.
6262 (qualified_name, classify_inner_name): Use it.
6263 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6264 and TYPE_TARGET_TYPE of an enum type.
6265 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6266 an enum type.
6267 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6268 handle TYPE_DECLARED_CLASS.
6269 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6270 types.
6271 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6272 * valops.c (enum_constant_from_type): New function.
6273 (value_aggregate_elt): Use it.
6274 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6275 TYPE_CODE_ENUM.
6276
6277 2014-04-14 Tom Tromey <tromey@redhat.com>
6278
6279 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6280 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6281 const.
6282 * value.h (value_aggregate_elt): Update.
6283
6284 2014-04-14 Tom Tromey <tromey@redhat.com>
6285
6286 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6287
6288 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6289
6290 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6291 (evaluate_subexp_standard): Pass noside argument.
6292 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6293 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6294 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6295 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6296 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6297
6298 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6299
6300 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6301 points to a constant blob.
6302
6303 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6304
6305 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6306 property and store it as the high bound and flag the range accordingly.
6307 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6308 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6309 * gdbtypes.h (enum range_flags): New enum.
6310 (struct range_bounds): Add flags member.
6311
6312 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6313
6314 * c-typeprint.c (c_type_print_varspec_suffix): Added
6315 check for not yet resolved high bound. If unresolved, print
6316 "variable length" string to the console instead of random
6317 length.
6318
6319 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6320
6321 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6322 value.
6323 (ada_template_to_fixed_record_type_1): Likewise.
6324 (ada_to_fixed_type_1): Likewise.
6325 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6326 (cp_print_value): Likewise.
6327 * d-valprint.c (dynamic_array_type): Likewise.
6328 * findvar.c (address_of_variable): Likewise.
6329 * jv-valprint.c (java_value_print): Likewise.
6330 * valops.c (value_ind): Likewise.
6331 * value.c (coerce_ref): Likewise.
6332
6333 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6334
6335 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6336 value and retrieve the dynamic type size.
6337
6338 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6339
6340 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6341 passed to sizeof is dynamic evaluate the argument to compute the length.
6342
6343 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6344 Joel Brobecker <brobecker@adacore.com>
6345
6346 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6347 (dwarf2_evaluate_property): New function.
6348 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6349 * dwarf2read.c (attr_to_dynamic_prop): New function.
6350 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6351 attribute.
6352 * gdbtypes.c: Include dwarf2loc.h.
6353 (is_dynamic_type): New function.
6354 (resolve_dynamic_type): New function.
6355 (resolve_dynamic_bounds): New function.
6356 (get_type_length): New function.
6357 (check_typedef): Use get_type_length to compute type length.
6358 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6359 (TYPE_LOW_BOUND_KIND): New macro.
6360 (is_dynamic_type): New function prototype.
6361 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6362 to resolve dynamic properties of the type. Update comment.
6363 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6364
6365 2014-04-14 Richard Henderson <rth@redhat.com>
6366
6367 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6368
6369 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6370 Doug Evans <xdje42@gmail.com>
6371
6372 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6373 dereference TYPE_CODE_REF values.
6374
6375 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6376
6377 Revert the following changes due to regressions:
6378
6379 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6380 (dwarf2_evaluate_property): New function.
6381 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6382 * dwarf2read.c (attr_to_dynamic_prop): New function.
6383 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6384 attribute.
6385 * gdbtypes.c: Include dwarf2loc.h.
6386 (is_dynamic_type): New function.
6387 (resolve_dynamic_type): New function.
6388 (resolve_dynamic_bounds): New function.
6389 (get_type_length): New function.
6390 (check_typedef): Use get_type_length to compute type length.
6391 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6392 (TYPE_LOW_BOUND_KIND): New macro.
6393 (is_dynamic_type): New function prototype.
6394 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6395 to resolve dynamic properties of the type. Update comment.
6396 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6397
6398 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6399 passed to sizeof is dynamic evaluate the argument to compute the length.
6400
6401 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6402 value and retrieve the dynamic type size.
6403
6404 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6405 (ada_template_to_fixed_record_type_1): Likewise.
6406 (ada_to_fixed_type_1): Likewise.
6407 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6408 (cp_print_value): Likewise.
6409 * d-valprint.c (dynamic_array_type): Likewise.
6410 * eval.c (evaluate_subexp_with_coercion): Likewise.
6411 * findvar.c (address_of_variable): Likewise.
6412 * jv-valprint.c (java_value_print): Likewise.
6413 * valops.c (value_ind): Likewise.
6414 * value.c (coerce_ref): Likewise.
6415
6416 * c-typeprint.c (c_type_print_varspec_suffix): Added
6417 check for not yet resolved high bound. If unresolved, print
6418 "variable length" string to the console instead of random
6419 length.
6420
6421 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6422 property and store it as the high bound and flag the range accordingly.
6423 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6424 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6425 * gdbtypes.h (enum range_flags): New enum.
6426 (struct range_bounds): Add flags member.
6427
6428 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6429 points to a constant blob.
6430
6431 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6432 (evaluate_subexp_standard): Pass noside argument.
6433 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6434 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6435 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6436 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6437 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6438
6439 2014-04-11 Keith Seitz <keiths@redhat.com>
6440
6441 PR c++/16675
6442 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6443 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6444 reference types.
6445
6446 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6447
6448 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6449 (evaluate_subexp_standard): Pass noside argument.
6450 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6451 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6452 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6453 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6454 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6455
6456 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6457
6458 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6459 points to a constant blob.
6460
6461 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6462
6463 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6464 property and store it as the high bound and flag the range accordingly.
6465 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6466 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6467 * gdbtypes.h (enum range_flags): New enum.
6468 (struct range_bounds): Add flags member.
6469
6470 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6471
6472 * c-typeprint.c (c_type_print_varspec_suffix): Added
6473 check for not yet resolved high bound. If unresolved, print
6474 "variable length" string to the console instead of random
6475 length.
6476
6477 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6478
6479 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6480 (ada_template_to_fixed_record_type_1): Likewise.
6481 (ada_to_fixed_type_1): Likewise.
6482 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6483 (cp_print_value): Likewise.
6484 * d-valprint.c (dynamic_array_type): Likewise.
6485 * eval.c (evaluate_subexp_with_coercion): Likewise.
6486 * findvar.c (address_of_variable): Likewise.
6487 * jv-valprint.c (java_value_print): Likewise.
6488 * valops.c (value_ind): Likewise.
6489 * value.c (coerce_ref): Likewise.
6490
6491 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6492
6493 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6494 value and retrieve the dynamic type size.
6495
6496 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6497
6498 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6499 passed to sizeof is dynamic evaluate the argument to compute the length.
6500
6501 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6502
6503 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6504 (dwarf2_evaluate_property): New function.
6505 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6506 * dwarf2read.c (attr_to_dynamic_prop): New function.
6507 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6508 attribute.
6509 * gdbtypes.c: Include dwarf2loc.h.
6510 (is_dynamic_type): New function.
6511 (resolve_dynamic_type): New function.
6512 (resolve_dynamic_bounds): New function.
6513 (get_type_length): New function.
6514 (check_typedef): Use get_type_length to compute type length.
6515 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6516 (TYPE_LOW_BOUND_KIND): New macro.
6517 (is_dynamic_type): New function prototype.
6518 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6519 to resolve dynamic properties of the type. Update comment.
6520 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6521
6522 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6523
6524 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6525 declaring high/low bounds and change uses accordingly. Call
6526 create_range_type instead of create_static_range_type.
6527 * gdbtypes.c (create_range_type): New function.
6528 (create_range_type): Convert bounds into struct bound_prop and pass
6529 them to create_range_type.
6530 * gdbtypes.h (struct bound_prop): New struct.
6531 (create_range_type): New function prototype.
6532 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6533 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6534 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6535 part of the bound.
6536 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6537
6538 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6539
6540 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6541 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6542 * ada-lang.c: All uses of create_range_type updated.
6543 * coffread.c: All uses of create_range_type updated.
6544 * dwarf2read.c: All uses of create_range_type updated.
6545 * f-exp.y: All uses of create_range_type updated.
6546 * m2-valprint.c: All uses of create_range_type updated.
6547 * mdebugread.c: All uses of create_range_type updated.
6548 * stabsread.c: All uses of create_range_type updated.
6549 * valops.c: All uses of create_range_type updated.
6550 * valprint.c: All uses of create_range_type updated.
6551
6552 2014-04-10 Pedro Alves <palves@redhat.com>
6553
6554 * breakpoint.c (single_step_breakpoints)
6555 (single_step_gdbarch): Move up in the file.
6556 (one_breakpoint_xfer_memory): New function, factored out from ...
6557 (breakpoint_xfer_memory): ... here. Also process single-step
6558 breakpoints.
6559
6560 2014-04-09 Tristan Gingold <gingold@adacore.com>
6561
6562 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6563 comments.
6564 (darwin_decode_exception_message): Free port only after use.
6565
6566 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6567
6568 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6569 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6570 when setting the size of call_length.
6571
6572 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6573
6574 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6575 dereference TYPE_CODE_REF values.
6576
6577 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6578
6579 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6580 end of warning message.
6581
6582 2014-04-03 Doug Evans <dje@google.com>
6583
6584 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6585 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6586
6587 2014-04-02 Alan Modra <amodra@gmail.com>
6588
6589 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6590 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6591 (struct symbol_file_add_from_memory_args): Add size field.
6592 (find_vdso_size): New function.
6593 (add_vsyscall_page): Attempt to find vdso size.
6594
6595 2014-04-01 Doug Evans <dje@google.com>
6596
6597 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6598
6599 2014-04-01 Tristan Gingold <gingold@adacore.com>
6600
6601 * darwin-nat.c (darwin_encode_reply): Add prototype.
6602 (darwin_decode_exception_message): Reply to unknown inferiors.
6603 (darwin_decode_message): Handle message by id. Ignore message
6604 to unknown inferior.
6605 (darwin_wait): Discard unknown messages, add debug trace.
6606
6607 2014-03-31 Doug Evans <dje@google.com>
6608
6609 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6610 comp_dir_string.
6611
6612 2014-03-31 Doug Evans <dje@google.com>
6613
6614 New option "set print symbol-loading".
6615 * NEWS: Mention it.
6616 * solib.c (solib_read_symbols): Only print symbol loading messages
6617 if requested.
6618 (solib_add): If symbol loading is in "brief" mode, notify user
6619 symbols are being loaded.
6620 (reload_shared_libraries_1): Ditto.
6621 * symfile.c (print_symbol_loading_off): New static global.
6622 (print_symbol_loading_brief): New static global.
6623 (print_symbol_loading_full): New static global.
6624 (print_symbol_loading_enums): New static global.
6625 (print_symbol_loading): New static global.
6626 (print_symbol_loading_p): New function.
6627 (symbol_file_add_with_addrs): Only print symbol loading messages
6628 if requested.
6629 (_initialize_symfile): Register "print symbol-loading" set/show
6630 command.
6631 * symfile.h (print_symbol_loading_p): Declare.
6632
6633 2014-03-30 Doug Evans <xdje42@gmail.com>
6634
6635 * infrun.c (set_last_target_status): New function.
6636 (handle_inferior_event): Call it.
6637
6638 2014-03-30 Doug Evans <xdje42@gmail.com>
6639
6640 * inferior.h (enum stop_kind): Improve comment.
6641
6642 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6643
6644 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6645 a reference, strip the reference layer before calling
6646 the lang_ops value_has_mutated callback.
6647
6648 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6649
6650 Remove some globals from our parser.
6651 * language.c (unk_lang_parser): Add "struct parser_state"
6652 argument.
6653 * language.h (struct language_defn) <la_parser>: Likewise.
6654 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6655 (initialize_expout): Add "struct parser_state" argument.
6656 Rewrite function to use the parser state.
6657 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6658 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6659 write_exp_elt_longcst, write_exp_elt_dblcst,
6660 write_exp_elt_decfloatcst, write_exp_elt_type,
6661 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6662 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6663 write_dollar_variable): Likewise.
6664 (parse_exp_in_context_1): Use parser state.
6665 (insert_type_address_space): Add "struct parser_state" argument.
6666 Use parser state.
6667 (increase_expout_size): New function.
6668 * parser-defs.h: Forward declare "struct language_defn" and
6669 "struct parser_state".
6670 (expout, expout_size, expout_ptr): Remove extern declarations.
6671 (parse_gdbarch, parse_language): Rewrite macro declarations to
6672 accept the parser state.
6673 (struct parser_state): New struct.
6674 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6675 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6676 write_exp_elt_decfloatcst, write_exp_elt_type,
6677 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6678 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6679 write_exp_msymbol, write_dollar_variable,
6680 mark_struct_expression, insert_type_address_space): Add "struct
6681 parser_state" argument.
6682 (increase_expout_size): New function.
6683 * utils.c (do_clear_parser_state): New function.
6684 (make_cleanup_clear_parser_state): Likewise.
6685 * utils.h (make_cleanup_clear_parser_state): New function
6686 prototype.
6687 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6688 Update calls to write_exp* in order to pass the parser state.
6689 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6690 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6691 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6692 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6693 * stap-probe.c (stap_parse_register_operand): Likewise.
6694 (stap_parse_single_operand): Likewise.
6695 (stap_parse_argument_1): Likewise.
6696 (stap_parse_argument): Use parser state.
6697 * stap-probe.h: Include "parser-defs.h".
6698 (struct stap_parse_info) <pstate>: New field.
6699 * c-exp.y (parse_type): Rewrite to use parser state.
6700 (yyparse): Redefine to c_parse_internal.
6701 (pstate): New global variable.
6702 (parse_number): Add "struct parser_state" argument.
6703 (write_destructor_name): Likewise.
6704 (type_exp): Update calls to write_exp* and similars in order to
6705 use parser state.
6706 (exp1, exp, variable, qualified_name, space_identifier,
6707 typename, typebase): Likewise.
6708 (write_destructor_name, parse_number, lex_one_token,
6709 classify_name, classify_inner_name, c_parse): Add "struct
6710 parser_state" argument. Update function to use parser state.
6711 * c-lang.h: Forward declare "struct parser_state".
6712 (c_parse): Add "struct parser_state" argument.
6713 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6714 (yyparse): Redefine macro to ada_parse_internal.
6715 (pstate): New variable.
6716 (write_int, write_object_renaming, write_var_or_type,
6717 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6718 type_int, type_long, type_long_long, type_float, type_double,
6719 type_long_double, type_char, type_boolean, type_system_address):
6720 Add "struct parser_state" argument.
6721 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6722 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6723 var_or_type, aggregate, aggregate_component_list,
6724 positional_list, others, component_group,
6725 component_associations): Update calls to write_exp* and similar
6726 functions in order to use parser state.
6727 (ada_parse, write_var_from_sym, write_int,
6728 write_exp_op_with_string, write_object_renaming,
6729 find_primitive_type, write_selectors, write_ambiguous_var,
6730 write_var_or_type, write_name_assoc, type_int, type_long,
6731 type_long_long, type_float, type_double, type_long_double,
6732 type_char, type_boolean, type_system_address): Add "struct
6733 parser_state" argument. Adjust function to use parser state.
6734 * ada-lang.c (parse): Likewise.
6735 * ada-lang.h: Forward declare "struct parser_state".
6736 (ada_parse): Add "struct parser_state" argument.
6737 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6738 calls to both functions.
6739 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6740 parser state.
6741 (yyparse): Redefine macro to f_parse_internal.
6742 (pstate): New variable.
6743 (parse_number): Add "struct parser_state" argument.
6744 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6745 and similars in order to use parser state.
6746 (parse_number): Adjust code to use parser state.
6747 (yylex): Likewise.
6748 (f_parse): New function.
6749 * f-lang.h: Forward declare "struct parser_state".
6750 (f_parse): Add "struct parser_state" argument.
6751 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6752 parser state.
6753 (yyparse): Redefine macro for java_parse_internal.
6754 (pstate): New variable.
6755 (push_expression_name, push_expression_name, insert_exp): Add
6756 "struct parser_state" argument.
6757 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6758 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6759 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6760 PostIncrementExpression, PostDecrementExpression,
6761 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6762 UnaryExpressionNotPlusMinus, CastExpression,
6763 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6764 RelationalExpression, EqualityExpression, AndExpression,
6765 ExclusiveOrExpression, InclusiveOrExpression,
6766 ConditionalAndExpression, ConditionalOrExpression,
6767 ConditionalExpression, Assignment, LeftHandSide): Update
6768 calls to write_exp* and similars in order to use parser state.
6769 (parse_number): Ajust code to use parser state.
6770 (yylex): Likewise.
6771 (java_parse): New function.
6772 (push_variable): Add "struct parser_state" argument. Adjust
6773 code to user parser state.
6774 (push_fieldnames, push_qualified_expression_name,
6775 push_expression_name, insert_exp): Likewise.
6776 * jv-lang.h: Forward declare "struct parser_state".
6777 (java_parse): Add "struct parser_state" argument.
6778 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6779 parser state.
6780 (yyparse): Redefine macro to m2_parse_internal.
6781 (pstate): New variable.
6782 (type_exp, exp, fblock, variable, type): Update calls to
6783 write_exp* and similars to use parser state.
6784 (yylex): Likewise.
6785 (m2_parse): New function.
6786 * m2-lang.h: Forward declare "struct parser_state".
6787 (m2_parse): Add "struct parser_state" argument.
6788 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6789 * objc-lang.h: Forward declare "struct parser_state".
6790 (end_msglist): Add "struct parser_state" argument.
6791 * p-exp.y (parse_type): Rewrite macro to use parser state.
6792 (yyparse): Redefine macro to pascal_parse_internal.
6793 (pstate): New variable.
6794 (parse_number): Add "struct parser_state" argument.
6795 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6796 write_exp* and similars in order to use parser state.
6797 (parse_number, yylex): Adjust code to use parser state.
6798 (pascal_parse): New function.
6799 * p-lang.h: Forward declare "struct parser_state".
6800 (pascal_parse): Add "struct parser_state" argument.
6801 * go-exp.y (parse_type): Rewrite macro to use parser state.
6802 (yyparse): Redefine macro to go_parse_internal.
6803 (pstate): New variable.
6804 (parse_number): Add "struct parser_state" argument.
6805 (type_exp, exp1, exp, variable, type): Update calls to
6806 write_exp* and similars in order to use parser state.
6807 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6808 to use parser state.
6809 (go_parse): Likewise.
6810 * go-lang.h: Forward declare "struct parser_state".
6811 (go_parse): Add "struct parser_state" argument.
6812
6813 2014-03-27 Doug Evans <dje@google.com>
6814
6815 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6816
6817 2014-03-27 Doug Evans <dje@google.com>
6818
6819 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6820 Remove argument abbrev_section. All callers updated.
6821
6822 2014-03-27 Doug Evans <dje@google.com>
6823
6824 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6825 addr_base, ranges_base.
6826
6827 2014-03-26 Keith Seitz <keiths@redhat.com>
6828
6829 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6830 types, not VAR_DOMAIN.
6831
6832 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6833
6834 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6835 "ra" registers.
6836 * features/nios2-linux.c: Regenerated.
6837 * features/nios2.c: Regenerated.
6838
6839 2014-03-25 Pedro Alves <palves@redhat.com>
6840
6841 * cli/cli-script.c (script_from_file): Force the interpreter to
6842 sync mode.
6843
6844 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6845
6846 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6847 small stack allocation.
6848
6849 2014-03-24 Tristan Gingold <gingold@adacore.com>
6850
6851 * darwin-nat.c (exc_server): Remove unused prototype.
6852 (darwin_dump_message): Correctly display data on x86_64.
6853 (darwin_encode_reply): Fix style.
6854 Add comments and fix indentation.
6855
6856 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6857
6858 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6859
6860 2014-03-22 Doug Evans <xdje42@gmail.com>
6861
6862 * infcmd.c: Whitespace fixes.
6863 (interrupt_command): Merge two function comments into one.
6864
6865 2014-03-22 Doug Evans <xdje42@gmail.com>
6866
6867 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6868 All uses updated.
6869
6870 2014-03-22 Yao Qi <yao@codesourcery.com>
6871
6872 * remote.c (target_read_live_memory): Remove.
6873 (memory_xfer_live_readonly_partial): Rename it to
6874 remote_xfer_live_readonly_partial. Remove argument 'object'.
6875 All callers updated. Call remote_read_bytes_1
6876 instead of target_read_live_memory.
6877 * tracepoint.c (set_traceframe_number): Remove.
6878 (make_cleanup_restore_traceframe_number): Likewise .
6879 * tracepoint.h (set_traceframe_number): Remove declaration.
6880 (make_cleanup_restore_traceframe_number): Likewise.
6881
6882 2014-03-22 Yao Qi <yao@codesourcery.com>
6883
6884 * remote.c (remote_read_bytes): Move code on reading from the
6885 remote stub to ...
6886 (remote_read_bytes_1): ... here. New function.
6887
6888 2014-03-22 Yao Qi <yao@codesourcery.com>
6889
6890 * ctf.c (ctf_xfer_partial): Check the return value of
6891 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6892 return TARGET_XFER_UNAVAILABLE.
6893 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6894 * target.c (target_read_live_memory): Move it to remote.c.
6895 (memory_xfer_live_readonly_partial): Likewise.
6896 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6897 * remote.c (target_read_live_memory): Moved from target.c.
6898 (memory_xfer_live_readonly_partial): Likewise.
6899 (remote_read_bytes): Factored out from
6900 memory_xfer_partial_1.
6901
6902 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6903
6904 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6905 NULL pointer.
6906
6907 2014-03-21 Pedro Alves <palves@redhat.com>
6908
6909 * infrun.c (normal_stop): Extend comment.
6910
6911 2014-03-21 Hui Zhu <hui@codesourcery.com>
6912 Pedro Alves <palves@redhat.com>
6913
6914 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6915 static buffer.
6916 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6917 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6918 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6919
6920 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6921
6922 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6923 `z' formatted output modifier.
6924
6925 2014-03-20 Tom Tromey <tromey@redhat.com>
6926 Sergio Durigan Junior <sergiodj@redhat.com>
6927
6928 * probe.c (parse_probes): Turn assert into an ordinary error.
6929 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6930 exceptions when parsing probes. Rearrange the code for clarity.
6931
6932 2014-03-20 Tom Tromey <tromey@redhat.com>
6933
6934 PR gdb/14135
6935 * top.c (execute_command): Only dispatch events if the command
6936 started the target.
6937
6938 2014-03-20 Tom Tromey <tromey@redhat.com>
6939
6940 PR cli/15718
6941 * infcall.c: Include event-top.h.
6942 (run_inferior_call): Call async_disable_stdin if needed.
6943
6944 2014-03-20 Pedro Alves <palves@redhat.com>
6945
6946 * infrun.c (prepare_to_proceed): Delete.
6947 (thread_still_needs_step_over): New function.
6948 (find_thread_needs_step_over): New function.
6949 (proceed): If the current thread needs a step-over, set its
6950 steping_over_breakpoint flag. Adjust to use
6951 find_thread_needs_step_over instead of prepare_to_proceed.
6952 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6953 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6954 breakpoint.
6955 (switch_back_to_stepped_thread): Step over breakpoints of all
6956 threads not the stepping thread, before switching back to the
6957 stepping thread.
6958
6959 2014-03-20 Pedro Alves <palves@redhat.com>
6960
6961 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6962 extern.
6963 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6964 * infrun.c (saved_singlestep_ptid)
6965 (stepping_past_singlestep_breakpoint): Delete.
6966 (resume): Remove stepping_past_singlestep_breakpoint handling.
6967 (proceed): Store the prev_pc of the stepping thread too.
6968 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6969 singlestep_pc.
6970 (enum infwait_states): Delete infwait_thread_hop_state.
6971 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6972 field.
6973 (handle_inferior_event): Adjust.
6974 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6975 handling and the thread-hop code. Before removing single-step
6976 breakpoints, check whether the thread hit a single-step breakpoint
6977 of another thread. If it did, the trap is not a random signal.
6978 (switch_back_to_stepped_thread): If the event thread hit a
6979 single-step breakpoint, unblock it before switching to the
6980 stepping thread. Handle the case of the stepped thread having
6981 advanced already.
6982 (keep_going): Handle the case of the current thread moving past a
6983 single-step breakpoint.
6984
6985 2014-03-20 Pedro Alves <palves@redhat.com>
6986
6987 PR breakpoints/7143
6988 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6989 are being stepped over.
6990 (breakpoint_address_match): Make extern.
6991 * breakpoint.h (breakpoint_address_match): New declaration.
6992 * inferior.h (stepping_past_instruction_at): New declaration.
6993 * infrun.c (struct step_over_info): New type.
6994 (step_over_info): New global.
6995 (set_step_over_info, clear_step_over_info)
6996 (stepping_past_instruction_at): New functions.
6997 (handle_inferior_event): Clear the step-over info when
6998 trap_expected is cleared.
6999 (resume): Remove now stale comment.
7000 (clear_proceed_status): Clear step-over info.
7001 (proceed): Adjust step-over handling to set or clear the step-over
7002 info instead of removing all breakpoints.
7003 (handle_signal_stop): When setting up a thread-hop, don't remove
7004 breakpoints here.
7005 (stop_stepping): Clear step-over info.
7006 (keep_going): Adjust step-over handling to set or clear step-over
7007 info and then always inserting breakpoints, instead of removing
7008 all breakpoints when stepping over one.
7009
7010 2014-03-20 Pedro Alves <palves@redhat.com>
7011
7012 * infrun.c (previous_inferior_ptid): Adjust comment.
7013 (deferred_step_ptid): Delete.
7014 (infrun_thread_ptid_changed, prepare_to_proceed)
7015 (init_wait_for_inferior): Adjust.
7016 (handle_signal_stop): Delete deferred_step_ptid handling.
7017
7018 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7019
7020 PR gdb/15358
7021 * defs.h (sync_quit_force_run): New declaration.
7022 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7023 * event-top.c (async_sigterm_handler): New declaration.
7024 (async_sigterm_token): New variable.
7025 (async_init_signals): Create also async_sigterm_token.
7026 (async_sigterm_handler): New function.
7027 (sync_quit_force_run): New variable.
7028 (handle_sigterm): Replace quit_force call by other calls.
7029 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7030
7031 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7032
7033 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7034 offset into SPE pseudo registers.
7035
7036 2014-03-18 Pedro Alves <palves@redhat.com>
7037
7038 PR gdb/13860
7039 * inferior.h (print_stop_event): Declare.
7040 * infrun.c (print_stop_event): New, factored out from ...
7041 (normal_stop): ... this.
7042 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7043 of bpstat_print/print_stack_frame.
7044
7045 2014-03-17 Tom Tromey <tromey@redhat.com>
7046
7047 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7048
7049 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7050
7051 * ada-lang.c (decode_constrained_packed_array): Perform a
7052 minimal coercion for reference with coerce_ref instead of
7053 ada_coerce_ref.
7054
7055 2014-03-17 Tristan Gingold <gingold@adacore.com>
7056
7057 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7058 (darwin_solib_create_inferior_hook): Emit a warning if version
7059 is unhandled.
7060
7061 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7062
7063 * python/py-value.c (get_field_flag): Cast flag_name argument to
7064 PyObject_GetAttrString to support Python 2.4.
7065
7066 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7067
7068 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7069 (Global Maintainers): Remove Jan Kratochvil.
7070
7071 2014-03-14 Pedro Alves <palves@redhat.com>
7072
7073 * inferior.h (terminal_ours_for_output): Rename to ...
7074 (child_terminal_ours_for_output): ... this.
7075 (terminal_save_ours): Rename to ...
7076 (child_terminal_save_ours): ... this.
7077 (terminal_ours): Rename to ...
7078 (child_terminal_ours): ... this.
7079 (terminal_inferior): Rename to ...
7080 (child_terminal_inferior): ... this.
7081 (terminal_init_inferior): Rename to ...
7082 (child_terminal_init_inferior): ... this.
7083 (terminal_init_inferior_with_pgrp): Rename to ...
7084 (child_terminal_init_inferior_with_pgrp): ... this.
7085 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7086 (child_terminal_init_with_pgrp): ... this.
7087 (terminal_save_ours): Rename to ...
7088 (child_terminal_save_ours): ... this.
7089 (terminal_init_inferior): Rename to ...
7090 (child_terminal_init): ... this. Adjust.
7091 (terminal_inferior): Rename to ...
7092 (child_terminal_inferior): ... this.
7093 (terminal_ours_for_output): Rename to ...
7094 (child_terminal_ours_for_output): ... this. Adjust.
7095 (terminal_ours): Rename to ...
7096 (child_terminal_ours): ... this.
7097 (terminal_ours_1): Rename to ...
7098 (child_terminal_ours_1): ... this. Adjust.
7099 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7100 * windows-nat.c (do_initial_windows_stuff): Adjust.
7101 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7102 (gnu_terminal_init): ... this. Adjust.
7103 (gnu_target): Adjust.
7104 * inf-child.c (inf_child_target): Adjust.
7105
7106 2014-03-13 Doug Evans <xdje42@gmail.com>
7107
7108 PR guile/16612
7109 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7110 new eq?-hashtab.
7111
7112 2014-03-13 Doug Evans <xdje42@gmail.com>
7113
7114 * value.c (record_latest_value): Call release_value_or_incref
7115 instead of release_value.
7116
7117 2014-03-13 Pedro Alves <palves@redhat.com>
7118
7119 * procfs.c (procfs_target): Don't override to_shortname,
7120 to_longname or to_doc.
7121
7122 2014-03-13 Pedro Alves <palves@redhat.com>
7123
7124 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7125 Unix in user visible strings.
7126
7127 2014-03-12 Stan Shebs <stan@codesourcery.com>
7128
7129 * gdbtypes.h: Annotate comments for Doxygen, add a page
7130 block comment with some general info.
7131
7132 2014-03-12 Pedro Alves <palves@redhat.com>
7133
7134 * infcmd.c (prepare_execution_command): New function, factored out
7135 from several execution commands.
7136 (run_command_1, continue_command, step_1, jump_command)
7137 (signal_command, until_command, advance_command, finish_command)
7138 (attach_command): Use prepare_execution_command.
7139
7140 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7141
7142 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7143 (MAX_BPTS): Define.
7144 (MAX_WPTS): Define.
7145 (struct arm_linux_thread_points): Removed.
7146 (struct arm_linux_process_info): New.
7147 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7148 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7149 (arm_linux_find_breakpoints_by_tid): Removed.
7150 (struct arch_lwp_info): New.
7151 (arm_linux_find_process_pid): New functions.
7152 (arm_linux_add_process): New functions.
7153 (arm_linux_process_info_get): New functions.
7154 (arm_linux_forget_process): New function.
7155 (arm_linux_get_debug_reg_state): New function.
7156 (struct update_registers_data): New.
7157 (update_registers_callback): New function.
7158 (arm_linux_insert_hw_breakpoint1): Updated.
7159 (arm_linux_remove_hw_breakpoint1): Updated.
7160 (arm_linux_insert_hw_breakpoint): Updated.
7161 (arm_linux_remove_hw_breakpoint): Updated.
7162 (arm_linux_insert_watchpoint): Updated.
7163 (arm_linux_remove_watchpoint): Updated.
7164 (arm_linux_new_thread): Updated.
7165 (arm_linux_prepare_to_resume): New function.
7166 (arm_linux_new_fork): New function.
7167 (_initialize_arm_linux_nat): Updated.
7168
7169 2014-03-12 Pedro Alves <palves@redhat.com>
7170
7171 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7172
7173 2014-03-12 Tom Tromey <tromey@redhat.com>
7174
7175 * inf-child.c (return_zero): New function.
7176 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7177 * aix-thread.c (aix_thread_inferior_created): New function.
7178 (aix_thread_attach): Remove.
7179 (init_aix_thread_ops): Don't set to_attach.
7180 (_initialize_aix_thread): Register inferior_created observer.
7181 * corelow.c (init_core_ops): Don't set to_attach or
7182 to_create_inferior.
7183 * exec.c (init_exec_ops): Don't set to_attach or
7184 to_create_inferior.
7185 * infcmd.c (run_command_1): Use find_run_target. Make direct
7186 target calls.
7187 (attach_command): Use find_attach_target. Make direct target
7188 calls.
7189 * record-btrace.c (init_record_btrace_ops): Don't set
7190 to_create_inferior.
7191 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7192 Remove.
7193 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7194 set to_create_inferior.
7195 * target.c (complete_target_initialization): Add assertion.
7196 (target_create_inferior): Remove.
7197 (find_default_attach, find_default_create_inferior): Remove.
7198 (find_attach_target, find_run_target): New functions.
7199 (find_default_is_async_p, find_default_can_async_p)
7200 (target_supports_non_stop, target_attach): Remove.
7201 (init_dummy_target): Don't set to_create_inferior or
7202 to_supports_non_stop.
7203 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7204 TARGET_DEFAULT_FUNC.
7205 <to_create_inferior>: Add comment.
7206 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7207 TARGET_DEFAULT_RETURN.
7208 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7209 (find_attach_target, find_run_target): Declare.
7210 (target_create_inferior): Remove.
7211 (target_has_execution_1): Update comment.
7212 (target_supports_non_stop): Remove.
7213 * target-delegates.c: Rebuild.
7214
7215 2014-03-12 Pedro Alves <palves@redhat.com>
7216
7217 * inf-child.h: Update comment to not mention Unix.
7218
7219 2014-03-12 Pedro Alves <palves@redhat.com>
7220
7221 * inf-child.c: Update top comment to not mention Unix. Add
7222 generic comment describing how this target is meant to be used.
7223 (inf_child_post_attach, inf_child_post_startup_inferior)
7224 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7225 Unix in comment.
7226
7227 2014-03-12 Pedro Alves <palves@redhat.com>
7228
7229 * nto-procfs.c: Include inf-child.h.
7230 (procfs_ops): Delete global.
7231 (procfs_can_run): Delete method.
7232 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7233 target pointer instead of referencing procfs_ops.
7234 (procfs_prepare_to_store): Delete.
7235 (init_procfs_ops): Delete function.
7236 (procfs_target): New function, based on init_procfs_ops, but
7237 inherit inf_child_target.
7238 (_initialize_procfs): Use procfs_target.
7239
7240 2014-03-12 Pedro Alves <palves@redhat.com>
7241
7242 * windows-nat.c: Include inf-child.h.
7243 (windows_ops): Delete global.
7244 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7245 methods.
7246 (init_windows_ops): Delete function.
7247 (windows_target): New function, based on init_windows_ops, but
7248 inherit inf_child_target.
7249 (_initialize_windows_nat): Use windows_target. Install x86
7250 specific target methods here.
7251
7252 2014-03-10 Doug Evans <xdje42@gmail.com>
7253
7254 * guile/guile.c (call_initialize_gdb_module): New function.
7255 (initialize_guile): Replace call to scm_init_guile with call to
7256 scm_with_guile.
7257
7258 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7259
7260 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7261 in call to TYPE_CODE macro.
7262
7263 2014-03-10 Jerome Guitton <guitton@adacore.com>
7264
7265 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7266 Resolve tagged types to full view.
7267
7268 2014-03-10 Hui Zhu <hui@codesourcery.com>
7269
7270 * target.h (target_insert_breakpoint): Remove "hardware" from its
7271 comments.
7272
7273 2014-03-07 Doug Evans <dje@google.com>
7274
7275 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7276
7277 2014-03-07 Doug Evans <dje@google.com>
7278
7279 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7280 Remove unused local comp_dir_attr. Assert exactly one of
7281 stub_comp_unit_die, stub_comp_dir is non-NULL.
7282
7283 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7284
7285 * target.h (complete_target_initialization, add_target):
7286 Add comment.
7287
7288 2014-03-07 Pedro Alves <palves@redhat.com>
7289
7290 * go32-nat.c: Include inf-child.h.
7291 (go32_ops): Delete global.
7292 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7293 Delete methods.
7294 (go32_create_inferior): Push the passed in target pointer instead
7295 of referencing go32_ops.
7296 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7297 (go32_target): New function, based on init_go32_ops, but inherit
7298 inf_child_target.
7299 (_initialize_go32_nat): Use go32_target. Move parts of
7300 init_go32_ops here.
7301
7302 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7303
7304 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7305 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7306 SYMBOL_VALUE_ADDRESS.
7307 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7308
7309 2014-03-06 Yao Qi <yao@codesourcery.com>
7310
7311 * breakpoint.c (get_tracepoint_by_number): Remove argument
7312 optional_p. All callers updated. Adjust comments. Update
7313 output message.
7314 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7315
7316 2014-03-06 Yao Qi <yao@codesourcery.com>
7317
7318 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7319 early if get_number returns zero. Use 'p' instead of 'args'.
7320
7321 2014-03-06 Yao Qi <yao@codesourcery.com>
7322
7323 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7324 message.
7325
7326 2014-03-06 Yao Qi <yao@codesourcery.com>
7327
7328 PR breakpoints/16508
7329 * tracepoint.c (check_trace_running): New function.
7330 (trace_find_command): Move code to check_trace_running and
7331 call check_trace_running.
7332 (trace_find_pc_command): Likewise.
7333 (trace_find_tracepoint_command): Likewise.
7334 (trace_find_line_command): Likewise.
7335 (trace_find_range_command): Likewise.
7336 * tracepoint.h (check_trace_running): Likewise.
7337 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7338
7339 2014-03-06 Yao Qi <yao@codesourcery.com>
7340
7341 * target.h (struct target_ops) <to_traceframe_info>: Use
7342 TARGET_DEFAULT_NORETURN (tcomplain ()).
7343 * target-delegates.c: Regenerated.
7344
7345 2014-03-05 Pedro Alves <palves@redhat.com>
7346
7347 PR gdb/16575
7348 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7349 void. Update comment.
7350 (dcache_xfer_memory): Delete.
7351 (dcache_read_memory_partial): New, based on the read bits of
7352 dcache_xfer_memory.
7353 (dcache_update): Add status parameter. Use ULONGEST for len, and
7354 adjust. Discard cache lines if the reason for the update was
7355 error.
7356 * dcache.h (dcache_xfer_memory): Delete declaration.
7357 (dcache_read_memory_partial): New declaration.
7358 (dcache_update): Update prototype.
7359 * target.c (raw_memory_xfer_partial): Update the dcache here.
7360 (memory_xfer_partial_1): Don't handle dcache writes here.
7361
7362 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7363
7364 * remote-sim.c (gdbsim_load): Add const to prog.
7365
7366 2014-03-03 Tom Tromey <tromey@redhat.com>
7367
7368 * elfread.c (probe_key): Change to bfd_data.
7369 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7370 now per-BFD, not per-objfile.
7371 * stap-probe.c (stap_probe_destroy): Update comment.
7372 (handle_stap_probe): Allocate on the per-BFD obstack.
7373
7374 2014-03-03 Tom Tromey <tromey@redhat.com>
7375
7376 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7377 * breakpoint.c (create_longjmp_master_breakpoint): Use
7378 get_probe_address.
7379 (add_location_to_breakpoint, bkpt_probe_insert_location)
7380 (bkpt_probe_remove_location): Update.
7381 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7382 * elfread.c (elf_symfile_relocate_probe): Remove.
7383 (elf_probe_fns): Update.
7384 (insert_exception_resume_breakpoint): Change type of "probe"
7385 parameter to bound_probe.
7386 (check_exception_resume): Update.
7387 * objfiles.c (objfile_relocate1): Don't relocate probes.
7388 * probe.c (bound_probe_s): New typedef.
7389 (parse_probes): Use get_probe_address. Set sal's objfile.
7390 (find_probe_by_pc): Return a bound_probe.
7391 (collect_probes): Return a VEC(bound_probe_s).
7392 (compare_probes): Update.
7393 (gen_ui_out_table_header_info): Change type of "probes"
7394 parameter. Update.
7395 (info_probes_for_ops): Update.
7396 (get_probe_address): New function.
7397 (probe_safe_evaluate_at_pc): Update.
7398 * probe.h (struct probe_ops) <get_probe_address>: New field.
7399 <set_semaphore, clear_semaphore>: Add objfile parameter.
7400 (struct probe) <objfile>: Remove field.
7401 <arch>: New field.
7402 <address>: Update comment.
7403 (struct bound_probe): New.
7404 (find_probe_by_pc): Return a bound_probe.
7405 (get_probe_address): Declare.
7406 * solib-svr4.c (struct probe_and_action) <address>: New field.
7407 (hash_probe_and_action, equal_probe_and_action): Update.
7408 (register_solib_event_probe): Add address parameter.
7409 (solib_event_probe_at): Update.
7410 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7411 get_probe_address.
7412 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7413 (stap_get_probe_address): New function.
7414 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7415 (compile_probe_arg): Update.
7416 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7417 address.
7418 (handle_stap_probe): Don't relocate the probe.
7419 (stap_relocate): Remove.
7420 (stap_gen_info_probes_table_values): Update.
7421 (stap_probe_ops): Remove stap_relocate.
7422 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7423 (debug_sym_probe_fns): Update.
7424 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7425 * symtab.c (init_sal): Use memset.
7426 * symtab.h (struct symtab_and_line) <objfile>: New field.
7427 * tracepoint.c (start_tracing, stop_tracing): Update.
7428
7429 2014-03-03 Tom Tromey <tromey@redhat.com>
7430
7431 * probe.h (parse_probes, find_probe_by_pc)
7432 (find_probes_in_objfile): Fix comments.
7433
7434 2014-03-02 Doug Evans <xdje42@gmail.com>
7435
7436 * infrun.c (handle_signal_stop): Replace test for
7437 TARGET_WAITKIND_STOPPED with an assert.
7438
7439 2014-03-02 Doug Evans <xdje42@gmail.com>
7440
7441 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7442
7443 2014-03-02 Doug Evans <xdje42@gmail.com>
7444
7445 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7446
7447 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7448
7449 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7450
7451 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7452
7453 * i386obsd-nat.c: Include "obsd-nat.h".
7454 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7455 add_target.
7456 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7457
7458 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7459
7460 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7461
7462 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7463
7464 * mips64obsd-nat.c: Include "obsd-nath".
7465 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7466 add_target
7467 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7468
7469 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7470
7471 * amd64obsd-nat.c: Include "obsd-nat,h.
7472 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7473 add_target.
7474 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7475
7476 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7477
7478 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7479 (find_overload_match): Update call to find_oload_champ.
7480 (find_oload_champ_namespace_loop): Likewise
7481
7482 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7483
7484 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7485
7486 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7487 * config/sparc/obsd64.mh: New file.
7488 * sparc64obsd-nat.c: New file.
7489
7490 * obsd-nat.h: New file.
7491 * obsd-nat.c: New file.
7492 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7493 (ALLDEPFILES): Add obsd-nat.c.
7494
7495 2014-02-28 Tom Tromey <tromey@redhat.com>
7496
7497 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7498 * cli-out.h (cli_ui_out_impl): Now const.
7499 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7500 * ui-out.c (struct ui_out) <impl>: Now const.
7501 (default_ui_out_impl): Now const.
7502 (ui_out_new): Make 'impl' parameter const.
7503 * ui-out.h (ui_out_new): Update.
7504
7505 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7506
7507 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7508
7509 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7510
7511 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7512
7513 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7514
7515 Additional PR 8882 fix.
7516 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7517
7518 2014-02-27 Pedro Alves <palves@redhat.com>
7519
7520 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7521 isn't set.
7522
7523 2014-02-27 Pedro Alves <palves@redhat.com>
7524
7525 PR 12702
7526 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7527 * nat/linux-waitpid.c: Include string.h.
7528 (status_to_str): Moved here and made extern.
7529 * nat/linux-waitpid.h (status_to_str): New declaration.
7530
7531 2014-02-27 Hui Zhu <hui@codesourcery.com>
7532
7533 PR 12702
7534 * infrun.c (ptid_match): Move ...
7535 * common/ptid.c (ptid_match): ... here.
7536 * inferior.h (ptid_match): Move ...
7537 * common/ptid.h (ptid_match): ... here.
7538
7539 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7540
7541 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7542 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7543 gdb_target_obs.
7544
7545 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7546
7547 * obsd-tdep.c (obsd_auxv_parse): New function.
7548 (obsd_init_abi): Set auxv_parse.
7549
7550 * gdbarch.sh (auxv_parse): New.
7551 * gdbarch.h: Regenerated.
7552 * gdbarch.c: Regenerated.
7553 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7554
7555 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7556
7557 * guile/scm-value.c (gdbscm_history_append_x): New function.
7558 (value_functions): Add it.
7559
7560 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7561
7562 * dwarf2read.c (attr_value_as_address): New function.
7563 (dwarf2_find_base_address, read_call_site_scope): Use
7564 attr_value_as_address in place of DW_ADDR.
7565 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7566 the low and high addresses. Slight rework of the handling
7567 of the high pc being a constant form, and limit it to
7568 DWARF verson 4 or higher.
7569 (dwarf2_record_block_ranges): Likewise.
7570 (read_partial_die): Likewise.
7571 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7572
7573 2014-02-26 Tom Tromey <tromey@redhat.com>
7574
7575 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7576
7577 2014-02-26 Tom Tromey <tromey@redhat.com>
7578
7579 * elfread.c (elf_read_minimal_symbols): Return early if
7580 minimal symbols have already been read. Add "ei" parameter.
7581 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7582 * minsyms.c (prim_record_minimal_symbol_full): Update.
7583 * objfiles.h (struct objstats) <n_minsyms>: Move...
7584 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7585 * symmisc.c (print_objfile_statistics): Update.
7586
7587 2014-02-26 Tom Tromey <tromey@redhat.com>
7588
7589 * elfread.c (elf_read_minimal_symbols): New function, from
7590 elf_symfile_read.
7591 (elf_symfile_read): Call it.
7592
7593 2014-02-26 Tom Tromey <tromey@redhat.com>
7594
7595 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7596 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7597 (lookup_minimal_symbol_solib_trampoline)
7598 (lookup_minimal_symbol_by_pc_section_1)
7599 (lookup_minimal_symbol_and_objfile): Update.
7600 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7601 Don't allocate a minimal symbol if minsyms have already been read.
7602 (build_minimal_symbol_hash_tables): Update.
7603 (install_minimal_symbols): Do nothing if minsyms already read.
7604 Use the per-BFD obstack.
7605 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7606 * objfiles.c (allocate_objfile): Call
7607 terminate_minimal_symbol_table later.
7608 (have_minimal_symbols): Update.
7609 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7610 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7611 Move from struct objfile.
7612 <minsyms_read>: New field.
7613 (struct objfile) <msymbols, minimal_symbol_count,
7614 msymbol_hash, msymbol_demangled_hash>: Move.
7615 (ALL_OBJFILE_MSYMBOLS): Update.
7616 * symfile.c (read_symbols): Set minsyms_read.
7617 (reread_symbols): Update.
7618 * symmisc.c (dump_objfile, dump_msymbols): Update.
7619
7620 2014-02-26 Tom Tromey <tromey@redhat.com>
7621
7622 * minsyms.c (msymbols_sort): Remove.
7623 * minsyms.h (msymbols_sort): Remove.
7624 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7625 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7626 * elfread.c (elf_symtab_read): Don't add section offsets.
7627 * xcoffread.c (record_minimal_symbol): Don't add section offset
7628 to minimal symbol address.
7629 * somread.c (text_offset, data_offset): Remove.
7630 (som_symtab_read): Don't add section offsets to minimal symbol
7631 addresses.
7632 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7633 Don't add section offsets to minimal symbols.
7634 * coffread.c (coff_symtab_read): Don't add section offsets
7635 to minimal symbol addresses.
7636 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7637 to minimal symbol addresses.
7638 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7639 section offset to minimal symbol addresses.
7640 * mdebugread.c (parse_partial_symbols): Don't add section
7641 offset to minimal symbol addresses.
7642 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7643 offset to minimal symbol addresses.
7644
7645 2014-02-26 Tom Tromey <tromey@redhat.com>
7646
7647 * ada-lang.c (ada_main_name): Update.
7648 (ada_add_standard_exceptions): Update.
7649 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7650 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7651 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7652 * auxv.c (ld_so_xfer_auxv): Update.
7653 * avr-tdep.c (avr_scan_prologue): Update.
7654 * ax-gdb.c (gen_var_ref): Update.
7655 * blockframe.c (get_pc_function_start)
7656 (find_pc_partial_function_gnu_ifunc): Update.
7657 * breakpoint.c (create_overlay_event_breakpoint)
7658 (create_longjmp_master_breakpoint)
7659 (create_std_terminate_master_breakpoint)
7660 (create_exception_master_breakpoint): Update.
7661 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7662 * c-valprint.c (c_val_print): Update.
7663 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7664 * common/agent.c (agent_look_up_symbols): Update.
7665 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7666 * dwarf2loc.c (call_site_to_target_addr): Update.
7667 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7668 * elfread.c (elf_gnu_ifunc_record_cache)
7669 (elf_gnu_ifunc_resolve_by_got): Update.
7670 * findvar.c (default_read_var_value): Update.
7671 * frame.c (inside_main_func): Update.
7672 * frv-tdep.c (frv_frame_this_id): Update.
7673 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7674 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7675 Update.
7676 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7677 (hppa_hpux_find_dummy_bpaddr): Update.
7678 * hppa-tdep.c (hppa_symbol_address): Update.
7679 * infcmd.c (until_next_command): Update.
7680 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7681 Update.
7682 * linespec.c (minsym_found, add_minsym): Update.
7683 * linux-nat.c (get_signo): Update.
7684 * linux-thread-db.c (inferior_has_bug): Update.
7685 * m32c-tdep.c (m32c_return_value)
7686 (m32c_m16c_address_to_pointer): Update.
7687 * m32r-tdep.c (m32r_frame_this_id): Update.
7688 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7689 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7690 * maint.c (maintenance_translate_address): Update.
7691 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7692 (frob_address): New function.
7693 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7694 frob_address. Rename parameter to "pc_in".
7695 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7696 addresses.
7697 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7698 Update.
7699 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7700 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7701 * objc-lang.c (find_objc_msgsend): Update.
7702 * objfiles.c (objfile_relocate1): Update.
7703 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7704 * p-valprint.c (pascal_val_print): Update.
7705 * parse.c (write_exp_msymbol): Update.
7706 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7707 (ppc_elfv2_skip_entrypoint): Update.
7708 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7709 * printcmd.c (build_address_symbolic, msym_info)
7710 (address_info): Update.
7711 * proc-service.c (ps_pglobal_lookup): Update.
7712 * psymtab.c (find_pc_sect_psymtab_closer)
7713 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7714 Change msymbol parameter to bound_minimal_symbol.
7715 * ravenscar-thread.c (get_running_thread_id): Update.
7716 * remote.c (remote_check_symbols): Update.
7717 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7718 address.
7719 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7720 * solib-dsbt.c (lm_base): Update.
7721 * solib-frv.c (lm_base, main_got): Update.
7722 * solib-irix.c (locate_base): Update.
7723 * solib-som.c (som_solib_create_inferior_hook)
7724 (link_map_start): Update.
7725 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7726 * solib-svr4.c (elf_locate_base, enable_break): Update.
7727 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7728 (flush_ea_cache): Update.
7729 * stabsread.c (define_symbol, scan_file_globals): Update.
7730 * stack.c (find_frame_funname): Update.
7731 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7732 (debug_qf_find_pc_sect_symtab): Update.
7733 * symfile.c (simple_read_overlay_table)
7734 (simple_overlay_update): Update.
7735 * symfile.h (struct quick_symbol_functions)
7736 <find_pc_sect_symtab>: Change type of msymbol to
7737 bound_minimal_symbol.
7738 * symmisc.c (dump_msymbols): Update.
7739 * symtab.c (find_pc_sect_symtab_via_partial)
7740 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7741 (search_symbols, print_msymbol_info): Update.
7742 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7743 (MSYMBOL_VALUE_ADDRESS): Redefine.
7744 (BMSYMBOL_VALUE_ADDRESS): New macro.
7745 * tracepoint.c (scope_info): Update.
7746 * tui/tui-disasm.c (tui_find_disassembly_address)
7747 (tui_get_begin_asm_address): Update.
7748 * valops.c (find_function_in_inferior): Update.
7749 * value.c (value_static_field, value_fn_field): Update.
7750
7751 2014-02-26 Tom Tromey <tromey@redhat.com>
7752
7753 * ada-lang.c (ada_update_initial_language): Update.
7754 (ada_main_name, ada_has_this_exception_support): Update.
7755 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7756 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7757 * arm-tdep.c (arm_skip_stub): Update.
7758 * auxv.c (ld_so_xfer_auxv): Update.
7759 * avr-tdep.c (avr_scan_prologue): Update.
7760 * ax-gdb.c (gen_var_ref): Update.
7761 * breakpoint.c (struct breakpoint_objfile_data)
7762 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7763 type to bound_minimal_symbol.
7764 (create_overlay_event_breakpoint)
7765 (create_longjmp_master_breakpoint)
7766 (create_std_terminate_master_breakpoint)
7767 (create_exception_master_breakpoint): Update.
7768 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7769 * c-exp.y (classify_name): Update.
7770 * coffread.c (coff_symfile_read): Update.
7771 * common/agent.c (agent_look_up_symbols): Update.
7772 * d-lang.c (d_main_name): Update.
7773 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7774 * dec-thread.c (enable_dec_thread): Update.
7775 * dwarf2loc.c (call_site_to_target_addr): Update.
7776 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7777 * eval.c (evaluate_subexp_standard): Update.
7778 * findvar.c (struct minsym_lookup_data) <result>: Change type
7779 to bound_minimal_symbol.
7780 <objfile>: Remove.
7781 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7782 * frame.c (inside_main_func): Update.
7783 * frv-tdep.c (frv_frame_this_id): Update.
7784 * gcore.c (call_target_sbrk): Update.
7785 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7786 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7787 Update.
7788 * go-lang.c (go_main_name): Update.
7789 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7790 (hppa_hpux_find_import_stub_for_addr): Update.
7791 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7792 Update. Change return type.
7793 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7794 type.
7795 * jit.c (jit_breakpoint_re_set_internal): Update.
7796 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7797 Update.
7798 * linux-nat.c (get_signo): Update.
7799 * linux-thread-db.c (inferior_has_bug): Update
7800 * m32c-tdep.c (m32c_return_value)
7801 (m32c_m16c_address_to_pointer): Update.
7802 * m32r-tdep.c (m32r_frame_this_id): Update.
7803 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7804 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7805 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7806 lookup_minimal_symbol. Change return type.
7807 (lookup_minimal_symbol): Remove.
7808 (lookup_bound_minimal_symbol): Update.
7809 (lookup_minimal_symbol_text): Change return type.
7810 (lookup_minimal_symbol_solib_trampoline): Change return type.
7811 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7812 (lookup_minimal_symbol_solib_trampoline): Change return type.
7813 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7814 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7815 (value_nsstring, find_imps): Update.
7816 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7817 * p-lang.c (pascal_main_name): Update.
7818 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7819 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7820 * proc-service.c (ps_pglobal_lookup): Update.
7821 * ravenscar-thread.c (get_running_thread_msymbol): Change
7822 return type.
7823 (has_ravenscar_runtime, get_running_thread_id): Update.
7824 * remote.c (remote_check_symbols): Update.
7825 * sol-thread.c (ps_pglobal_lookup): Update.
7826 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7827 * solib-dsbt.c (lm_base): Update.
7828 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7829 Update.
7830 * solib-irix.c (locate_base): Update.
7831 * solib-som.c (som_solib_create_inferior_hook)
7832 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7833 Update.
7834 * solib-spu.c (spu_enable_break): Update.
7835 * solib-svr4.c (elf_locate_base, enable_break): Update.
7836 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7837 (flush_ea_cache): Update.
7838 * stabsread.c (define_symbol): Update.
7839 * symfile.c (simple_read_overlay_table): Update.
7840 * symtab.c (find_pc_sect_line): Update.
7841 * tracepoint.c (scope_info): Update.
7842 * tui-disasm.c (tui_get_begin_asm_address): Update.
7843 * value.c (value_static_field): Update.
7844
7845 2014-02-26 Tom Tromey <tromey@redhat.com>
7846
7847 * minsyms.c (prim_record_minimal_symbol_full): Use
7848 SET_MSYMBOL_VALUE_ADDRESS.
7849 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7850 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7851 SET_MSYMBOL_VALUE_ADDRESS.
7852 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7853 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7854
7855 2014-02-26 Tom Tromey <tromey@redhat.com>
7856
7857 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7858 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7859 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7860 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7861 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7862 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7863 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7864 * ada-lang.c (ada_main_name): Update.
7865 (ada_lookup_simple_minsym): Update.
7866 (ada_make_symbol_completion_list): Update.
7867 (ada_add_standard_exceptions): Update.
7868 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7869 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7870 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7871 * arm-tdep.c (skip_prologue_function): Update.
7872 (arm_skip_stack_protector, arm_skip_stub): Update.
7873 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7874 (arm_wince_skip_main_prologue): Update.
7875 * auxv.c (ld_so_xfer_auxv): Update.
7876 * avr-tdep.c (avr_scan_prologue): Update.
7877 * ax-gdb.c (gen_var_ref): Update.
7878 * block.c (call_site_for_pc): Update.
7879 * blockframe.c (get_pc_function_start): Update.
7880 (find_pc_partial_function_gnu_ifunc): Update.
7881 * breakpoint.c (create_overlay_event_breakpoint): Update.
7882 (create_longjmp_master_breakpoint): Update.
7883 (create_std_terminate_master_breakpoint): Update.
7884 (create_exception_master_breakpoint): Update.
7885 (resolve_sal_pc): Update.
7886 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7887 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7888 Update.
7889 * c-valprint.c (c_val_print): Update.
7890 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7891 * coffread.c (coff_symfile_read): Update.
7892 * common/agent.c (agent_look_up_symbols): Update.
7893 * dbxread.c (find_stab_function_addr): Update.
7894 (end_psymtab): Update.
7895 * dwarf2loc.c (call_site_to_target_addr): Update.
7896 (func_verify_no_selftailcall): Update.
7897 (tailcall_dump): Update.
7898 (call_site_find_chain_1): Update.
7899 (dwarf_expr_reg_to_entry_parameter): Update.
7900 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7901 (elf_gnu_ifunc_resolve_by_got): Update.
7902 * f-valprint.c (info_common_command): Update.
7903 * findvar.c (read_var_value): Update.
7904 * frame.c (get_prev_frame_1): Update.
7905 (inside_main_func): Update.
7906 * frv-tdep.c (frv_skip_main_prologue): Update.
7907 (frv_frame_this_id): Update.
7908 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7909 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7910 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7911 (gnuv3_skip_trampoline): Update.
7912 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7913 (hppa64_hpux_in_solib_call_trampoline): Update.
7914 (hppa_hpux_skip_trampoline_code): Update.
7915 (hppa64_hpux_search_dummy_call_sequence): Update.
7916 (hppa_hpux_find_import_stub_for_addr): Update.
7917 (hppa_hpux_find_dummy_bpaddr): Update.
7918 * hppa-tdep.c (hppa_symbol_address)
7919 (hppa_lookup_stub_minimal_symbol): Update.
7920 * i386-tdep.c (i386_skip_main_prologue): Update.
7921 (i386_pe_skip_trampoline_code): Update.
7922 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7923 * infcall.c (get_function_name): Update.
7924 * infcmd.c (until_next_command): Update.
7925 * jit.c (jit_breakpoint_re_set_internal): Update.
7926 (jit_inferior_init): Update.
7927 * linespec.c (minsym_found): Update.
7928 (add_minsym): Update.
7929 * linux-fork.c (info_checkpoints_command): Update.
7930 * linux-nat.c (get_signo): Update.
7931 * linux-thread-db.c (inferior_has_bug): Update.
7932 * m32c-tdep.c (m32c_return_value): Update.
7933 (m32c_m16c_address_to_pointer): Update.
7934 (m32c_m16c_pointer_to_address): Update.
7935 * m32r-tdep.c (m32r_frame_this_id): Update.
7936 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7937 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7938 * maint.c (maintenance_translate_address): Update.
7939 * minsyms.c (add_minsym_to_hash_table): Update.
7940 (add_minsym_to_demangled_hash_table): Update.
7941 (msymbol_objfile): Update.
7942 (lookup_minimal_symbol): Update.
7943 (iterate_over_minimal_symbols): Update.
7944 (lookup_minimal_symbol_text): Update.
7945 (lookup_minimal_symbol_by_pc_name): Update.
7946 (lookup_minimal_symbol_solib_trampoline): Update.
7947 (lookup_minimal_symbol_by_pc_section_1): Update.
7948 (lookup_minimal_symbol_and_objfile): Update.
7949 (prim_record_minimal_symbol_full): Update.
7950 (compare_minimal_symbols): Update.
7951 (compact_minimal_symbols): Update.
7952 (build_minimal_symbol_hash_tables): Update.
7953 (install_minimal_symbols): Update.
7954 (terminate_minimal_symbol_table): Update.
7955 (find_solib_trampoline_target): Update.
7956 (minimal_symbol_upper_bound): Update.
7957 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7958 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7959 (mips_skip_pic_trampoline_code): Update.
7960 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7961 * objc-lang.c (selectors_info): Update.
7962 (classes_info): Update.
7963 (find_methods): Update.
7964 (find_imps): Update.
7965 (find_objc_msgsend): Update.
7966 * objfiles.c (objfile_relocate1): Update.
7967 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7968 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7969 * p-valprint.c (pascal_val_print): Update.
7970 * parse.c (write_exp_msymbol): Update.
7971 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7972 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7973 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7974 * printcmd.c (build_address_symbolic): Update.
7975 (sym_info): Update.
7976 (address_info): Update.
7977 * proc-service.c (ps_pglobal_lookup): Update.
7978 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7979 (find_pc_sect_psymtab): Update.
7980 * python/py-framefilter.c (py_print_frame): Update.
7981 * ravenscar-thread.c (get_running_thread_id): Update.
7982 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7983 Update.
7984 * remote.c (remote_check_symbols): Update.
7985 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7986 (rs6000_skip_trampoline_code): Update.
7987 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7988 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7989 * solib-dsbt.c (lm_base): Update.
7990 * solib-frv.c (lm_base): Update.
7991 (main_got): Update.
7992 * solib-irix.c (locate_base): Update.
7993 * solib-som.c (som_solib_create_inferior_hook): Update.
7994 (som_solib_desire_dynamic_linker_symbols): Update.
7995 (link_map_start): Update.
7996 * solib-spu.c (spu_enable_break): Update.
7997 (ocl_enable_break): Update.
7998 * solib-svr4.c (elf_locate_base): Update.
7999 (enable_break): Update.
8000 * spu-tdep.c (spu_get_overlay_table): Update.
8001 (spu_catch_start): Update.
8002 (flush_ea_cache): Update.
8003 * stabsread.c (define_symbol): Update.
8004 (scan_file_globals): Update.
8005 * stack.c (find_frame_funname): Update.
8006 (frame_info): Update.
8007 * symfile.c (simple_read_overlay_table): Update.
8008 (simple_overlay_update): Update.
8009 * symmisc.c (dump_msymbols): Update.
8010 * symtab.c (fixup_section): Update.
8011 (find_pc_sect_line): Update.
8012 (skip_prologue_sal): Update.
8013 (search_symbols): Update.
8014 (print_msymbol_info): Update.
8015 (rbreak_command): Update.
8016 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8017 (completion_list_objc_symbol): Update.
8018 (default_make_symbol_completion_list_break_on): Update.
8019 * tracepoint.c (scope_info): Update.
8020 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8021 (tui_get_begin_asm_address): Update.
8022 * valops.c (find_function_in_inferior): Update.
8023 * value.c (value_static_field): Update.
8024 (value_fn_field): Update.
8025
8026 2014-02-26 Tom Tromey <tromey@redhat.com>
8027
8028 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8029 bound minimal symbols. Move code that knows about minsym
8030 table layout...
8031 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8032 function.
8033 * minsyms.h (minimal_symbol_upper_bound): Declare.
8034 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8035 minimal_symbol_upper_bound.
8036
8037 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8038
8039 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8040 Use the type's name if its basic type does not have a tag.
8041
8042 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8043
8044 * dwarf2read.c (read_subrange_type): Add comment.
8045
8046 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8047
8048 * dwarf2read.c (update_enumeration_type_from_children): New
8049 function, mostly extracted from process_structure_scope.
8050 (read_enumeration_type): Call update_enumeration_type_from_children.
8051 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8052 and flag_flag_enum fields.
8053
8054 2014-02-26 Pedro Alves <palves@redhat.com>
8055
8056 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8057 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8058 to_xfer_partial method.
8059
8060 2014-02-26 Pedro Alves <palves@redhat.com>
8061
8062 * target.c (complete_target_initialization): Don't install
8063 default_xfer_partial as to_xfer_partial hook.
8064 (nomemory): Delete.
8065 (update_current_target): Don't INHERIT nor de_fault
8066 deprecated_xfer_memory. Delete de_fault macro.
8067 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8068 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8069 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8070 field.
8071
8072 2014-02-26 Pedro Alves <palves@redhat.com>
8073
8074 * go32-nat.c (my_write_child): New function.
8075 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8076 (go32_xfer_partial): New function.
8077 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8078 Instead install a to_xfer_partial hook.
8079
8080 2014-02-26 Pedro Alves <palves@redhat.com>
8081
8082 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8083 to_xfer_partial helper. Rewrite.
8084 (procfs_xfer_partial): New function.
8085 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8086 Install a to_xfer_partial hook.
8087
8088 2014-02-26 Pedro Alves <palves@redhat.com>
8089
8090 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8091 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8092 (m32r_xfer_partial): New function.
8093 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8094 Install a to_xfer_partial hook.
8095
8096 2014-02-26 Pedro Alves <palves@redhat.com>
8097
8098 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8099 helper.
8100 (mips_xfer_partial): New function.
8101 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8102 hook. Install a to_xfer_partial hook.
8103
8104 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8105
8106 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8107 * gdbtypes.c (create_array_type_with_stride): New function,
8108 renaming create_array_type, but with an added parameter
8109 called "bit_stride".
8110 (create_array_type): Re-implement using
8111 create_array_type_with_stride.
8112 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8113 and DW_AT_bit_stride attributes.
8114
8115 2014-02-26 Pedro Alves <palves@redhat.com>
8116
8117 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8118 task-specific breakpoints.
8119
8120 2014-02-25 Pedro Alves <palves@redhat.com>
8121
8122 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8123 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8124
8125 2014-02-25 Stan Shebs <stan@codesourcery.com>
8126
8127 * defs.h: Annotate comments for Doxygen.
8128
8129 2014-02-25 Tom Tromey <tromey@redhat.com>
8130
8131 * target.h (target_ignore): Don't declare.
8132 * target.c (target_ignore): Remove.
8133
8134 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8135
8136 PR gdb/16626
8137 * auto-load.c (auto_load_objfile_script_1): Change filename to
8138 debugfile.
8139
8140 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8141
8142 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8143 documentation. Adjust prototype to match the target_ops
8144 to_xfer_partial method. Adjust implementation accordingly.
8145
8146 2014-02-25 Hui Zhu <hui@codesourcery.com>
8147
8148 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8149 to_traceframe_info.
8150
8151 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8152
8153 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8154 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8155 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8156 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8157 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8158 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8159 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8160 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8161 New constants.
8162 (rl78_register_type): Use a data pointer type for SP and
8163 new pseudo registers mentioned above. Use a 16 bit integer
8164 type for all other register pairs.
8165 (rl78_register_name, rl78_g10_register_name): Update for
8166 new pseudo registers.
8167 (rl78_pseudo_register_read): Likewise.
8168 (rl78_pseudo_register_write): Likewise.
8169 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8170 to the newly added pseudo registers.
8171
8172 2014-02-24 Doug Evans <dje@google.com>
8173
8174 * value.c (record_latest_value): Fix comment.
8175 * printcmd.c (print_command_1): Remove code to handle -1 return from
8176 record_latest_value.
8177
8178 2014-02-24 Pedro Alves <palves@redhat.com>
8179
8180 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8181 deprecated_xfer_memory hook.
8182 (procfs_xfer_partial): Call procfs_xfer_memory instead
8183 of the deprecated_xfer_memory target hook.
8184 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8185 helper.
8186
8187 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8188
8189 * windows-nat.c (windows_xfer_shared_libraries): Return
8190 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8191 requested object is TARGET_OBJECT_LIBRARIES.
8192
8193 2014-02-24 Yao Qi <yao@codesourcery.com>
8194
8195 * target.h (enum target_xfer_status)
8196 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8197 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8198 explicitly. New.
8199 * corefile.c (memory_error_message): User updated.
8200 * exec.c (section_table_read_available_memory): Likewise.
8201 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8202 * target.c (target_xfer_status_to_string): Likewise.
8203 (raw_memory_xfer_partial): Likewise.
8204 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8205 * valops.c (read_value_memory): Likewise.
8206 * exec.h: Update comments.
8207
8208 2014-02-24 Yao Qi <yao@codesourcery.com>
8209
8210 * target.c (target_xfer_status_to_string): Rename argument err
8211 to status.
8212 * target.h (target_xfer_status_to_string): Update declaration.
8213 Replace target_xfer_error_to_string with
8214 target_xfer_status_to_string in comment.
8215
8216 2014-02-24 Yao Qi <yao@codesourcery.com>
8217
8218 * mips-linux-nat.c (super_close): Update its type.
8219 (mips_linux_close): Pass 'self' to super_close.
8220
8221 2014-02-24 Yao Qi <yao@codesourcery.com>
8222
8223 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8224 * corefile.c (read_memory): Adjusted.
8225 * target.c (target_write_with_progress): Adjusted.
8226
8227 2014-02-23 Yao Qi <yao@codesourcery.com>
8228
8229 Revert two patches:
8230
8231 2013-10-25 Yao Qi <yao@codesourcery.com>
8232
8233 * remote.c (remote_traceframe_info): Return early if
8234 traceframe is not selected.
8235
8236 2013-07-19 Yao Qi <yao@codesourcery.com>
8237
8238 * target.c (update_current_target): Change the default action
8239 of 'to_traceframe_info' from tcomplain to return_zero.
8240 * target.h (struct target_ops) <to_traceframe_info>: Add more
8241 comments.
8242
8243 2014-02-23 Yao Qi <yao@codesourcery.com>
8244
8245 * valops.c (read_value_memory): Rewrite it. Call
8246 target_xfer_partial in a loop.
8247 * exec.h (section_table_available_memory): Remove declaration.
8248 Move comments to ...
8249 * exec.c (section_table_available_memory): ... here. Make it
8250 static.
8251
8252 2014-02-23 Yao Qi <yao@codesourcery.com>
8253
8254 * exec.c (section_table_read_available_memory): New function.
8255 * exec.h (section_table_read_available_memory): Declare.
8256 * ctf.c (ctf_xfer_partial): Call
8257 section_table_read_available_memory.
8258 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8259
8260 2014-02-23 Yao Qi <yao@codesourcery.com>
8261
8262 * ctf.c (ctf_xfer_partial): Move code to ...
8263 * exec.c (exec_read_partial_read_only): ... it. New function.
8264 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8265 * tracefile.c: Include "exec.h".
8266 * exec.h (exec_read_partial_read_only): Declare.
8267
8268 2014-02-23 Yao Qi <yao@codesourcery.com>
8269
8270 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8271 (tfile_has_memory): Remove.
8272 (init_tfile_ops): Don't set fields to_has_all_memory and
8273 to_has_memory of tfile_ops.
8274 * tracefile.c (tracefile_has_all_memory): New function.
8275 (tracefile_has_memory): New function.
8276 (init_tracefile_ops): Initialize fields to_has_all_memory and
8277 to_has_memory of 'ops'.
8278
8279 2014-02-23 Yao Qi <yao@codesourcery.com>
8280
8281 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8282 (ctf_thread_alive, ctf_get_trace_status): Remove.
8283 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8284 init_tracefile_ops.
8285 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8286 (tfile_has_stack, tfile_has_registers): Remove.
8287 (tfile_thread_alive): Remove.
8288 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8289 init_tracefile_ops.
8290 * tracefile.c (tracefile_has_stack): New function.
8291 (tracefile_has_registers): New function.
8292 (tracefile_thread_alive): New function.
8293 (tracefile_get_trace_status): New function.
8294 (init_tracefile_ops): New function.
8295 * tracefile.h (init_tracefile_ops): Declare.
8296
8297 2014-02-23 Yao Qi <yao@codesourcery.com>
8298
8299 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8300 (O_LARGEFILE): Likewise.
8301 (tfile_ops): Likewise.
8302 (TRACE_HEADER_SIZE): Likewise.
8303 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8304 (cur_data_size): Likewise.
8305 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8306 (tfile_close, tfile_files_info): Likewise.
8307 (tfile_get_trace_status): Likewise.
8308 (tfile_get_tracepoint_status): Likewise.
8309 (tfile_get_traceframe_address): Likewise.
8310 (tfile_trace_find, match_blocktype): Likewise.
8311 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8312 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8313 (tfile_get_trace_state_variable_value): Likewise.
8314 (tfile_has_all_memory, tfile_has_memory): Likewise.
8315 (tfile_has_stack, tfile_has_registers): Likewise.
8316 (tfile_thread_alive, build_traceframe_info): Likewise.
8317 (tfile_traceframe_info, init_tfile_ops): Likewise.
8318 (_initialize_tracepoint): Don't call init_tfile_ops
8319 and add_target_with_completer.
8320 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8321 exec.h, completer.h and filenames.h.
8322 (_initialize_tracefile_tfile): New function.
8323
8324 2014-02-23 Yao Qi <yao@codesourcery.com>
8325
8326 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8327 tracefile-tfile.o.
8328 (HFILES_NO_SRCDIR): Add tracefile.h.
8329 * ctf.c: Include "tracefile.h".
8330 * tracefile.h: New file.
8331 * tracefile.c: New file
8332 * tracefile-tfile.c: New file.
8333 * tracepoint.c: Include "tracefile.h".
8334 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8335 (stop_reason_names): Add const.
8336 (trace_file_writer_xfree): Move it to tracefile.c.
8337 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8338 (trace_save_ctf): Likewise.
8339 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8340 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8341 (tfile_write_header, tfile_write_regblock_type): Likewise.
8342 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8343 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8344 (tfile_write_raw_data, tfile_end): Likewise.
8345 (tfile_trace_file_writer_new): Likewise.
8346 (free_uploaded_tp): Make it extern.
8347 (free_uploaded_tsv): Make it extern.
8348 (_initialize_tracepoint): Move code to register command 'tsave'
8349 to tracefile.c.
8350 * tracepoint.h (stop_reason_names): Declare.
8351 (struct trace_frame_write_ops): Move it to tracefile.h.
8352 (struct trace_file_write_ops): Likewise.
8353 (struct trace_file_writer): Likewise.
8354 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8355
8356 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8357
8358 PR gdb/16594
8359 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8360 process name.
8361 (get_cores_used_by_process): New parameter num_cores, use it.
8362 (linux_xfer_osdata_processes): Pass num_cores to it.
8363 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8364 process name.
8365
8366 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8367
8368 * target.c (memory_xfer_partial): Fix length arg in call to
8369 breakpoint_xfer_memory.
8370
8371 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8372
8373 PR tdep/16397
8374 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8375 number comes after the + or - signs. Adjust length of register
8376 name to be extracted.
8377
8378 2014-02-20 Tom Tromey <tromey@redhat.com>
8379
8380 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8381 (ada_varobj_ops): Mark "extern".
8382
8383 2014-02-20 Tom Tromey <tromey@redhat.com>
8384
8385 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8386
8387 2014-02-20 Doug Evans <xdje42@gmail.com>
8388
8389 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8390 All callers updated.
8391 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8392 All callers updated.
8393 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8394 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8395
8396 2014-02-20 lin zuojian <manjian2006@gmail.com>
8397 Joel Brobecker <brobecker@adacore.com>
8398 Doug Evans <xdje42@gmail.com>
8399
8400 PR symtab/16581
8401 * dwarf2read.c (struct die_info): New member in_process.
8402 (reset_die_in_process): New function.
8403 (process_die): Set it at the start, reset when returning.
8404 (inherit_abstract_dies): Only call process_die if origin_child_die
8405 not already being processed.
8406
8407 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8408
8409 * windows-nat.c (handle_unload_dll): Add function documentation.
8410 (do_initial_windows_stuff): Add comment explaining why we wait
8411 until after inferior initialization has finished before
8412 processing all DLLs.
8413
8414 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8415
8416 * windows-nat.c (get_module_name): Delete.
8417 (windows_get_exec_module_filename): New function, mostly
8418 inspired from get_module_name.
8419 (windows_pid_to_exec_file): Replace call to get_module_name
8420 by call to windows_get_exec_module_filename.
8421
8422 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8423
8424 * windows-nat.c (handle_load_dll): Rewrite this function's
8425 introductory comment. Remove code using get_module_name
8426 to get the DLL's name.
8427
8428 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8429
8430 * windows-nat.c (get_windows_debug_event): Ignore
8431 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8432 if windows_initialization_done == 0.
8433 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8434 Adjust implementation to always load all DLLs.
8435 (do_initial_windows_stuff): Replace call to
8436 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8437
8438 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8439
8440 * windows-nat.c (_initialize_windows_nat): Deprecate the
8441 "dll-symbols" command. Turn the "add-shared-symbol-files"
8442 and "assf" aliases into commands, and deprecate them as well.
8443 * NEWS: Add entry explaining that "dll-symbols" and its two
8444 aliases are now deprecated.
8445
8446 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8447
8448 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8449 new-line in debug string. Remove trailing spaces.
8450
8451 2014-02-19 Stan Shebs <stan@codesourcery.com>
8452
8453 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8454
8455 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8456
8457 * NEWS: Add entry for the new feature
8458 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8459 and class values.
8460
8461 2014-02-19 Stan Shebs <stan@codesourcery.com>
8462
8463 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8464
8465 2014-02-19 Pedro Alves <palves@redhat.com>
8466
8467 * common/ptid.h (struct ptid): Mention that process_stratum
8468 targets should prefer ptid.lwp.
8469
8470 2014-02-19 Pedro Alves <palves@redhat.com>
8471
8472 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8473 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8474 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8475 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8476 store remote thread ids rather than ptid.tid.
8477 (_initialize_remote): Adjust.
8478
8479 2014-02-19 Tom Tromey <tromey@redhat.com>
8480
8481 * target.c (target_get_unwinder): Rewrite.
8482 (target_get_tailcall_unwinder): Rewrite.
8483 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8484 (record_btrace_to_get_tailcall_unwinder): New function.
8485 (init_record_btrace_ops): Update.
8486 * target.h (struct target_ops) <to_get_unwinder,
8487 to_get_tailcall_unwinder>: Now function pointers. Use
8488 TARGET_DEFAULT_RETURN.
8489
8490 2014-02-19 Tom Tromey <tromey@redhat.com>
8491
8492 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8493 argument.
8494 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8495
8496 2014-02-19 Tom Tromey <tromey@redhat.com>
8497
8498 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8499 directly.
8500 * target-delegates.c: Rebuild.
8501 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8502 TARGET_DEFAULT_FUNC.
8503 * target.c (default_target_decr_pc_after_break): Rename from
8504 forward_target_decr_pc_after_break. Simplify.
8505 (target_decr_pc_after_break): Rely on delegation.
8506
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8508
8509 * target.c (update_current_target): Do not INHERIT to_doc or
8510 to_magic. Do not de_fault to_open or to_close.
8511
8512 2014-02-19 Tom Tromey <tromey@redhat.com>
8513
8514 * gcore.h (objfile_find_memory_regions): Declare.
8515 * gcore.c (objfile_find_memory_regions): No longer static. Add
8516 "self" argument.
8517 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8518 * exec.c: Include gcore.h.
8519 (exec_set_find_memory_regions): Remove.
8520 (exec_find_memory_regions): Remove.
8521 (exec_do_find_memory_regions): Remove.
8522 (init_exec_ops): Update.
8523 * defs.h (exec_set_find_memory_regions): Remove.
8524
8525 2014-02-19 Tom Tromey <tromey@redhat.com>
8526
8527 * target-delegates.c: Rebuild.
8528 * target.h (struct target_ops) <to_extra_thread_info,
8529 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8530 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8531 not 0, in TARGET_DEFAULT_RETURN.
8532
8533 2014-02-19 Tom Tromey <tromey@redhat.com>
8534
8535 * target.c (complete_target_initialization): Remove casts. Use
8536 return_zero_has_execution.
8537 (return_zero): Add "ignore" argument.
8538 (return_zero_has_execution): New function.
8539 (init_dummy_target): Remove casts. Use
8540 return_zero_has_execution.
8541
8542 2014-02-19 Tom Tromey <tromey@redhat.com>
8543
8544 * target.c (update_current_target): Update comments. Do not
8545 INHERIT to_stratum.
8546
8547 2014-02-19 Tom Tromey <tromey@redhat.com>
8548
8549 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8550 needed.
8551 * corelow.c (core_read_description): Delegate when needed.
8552 * remote.c (remote_read_description): Delegate when needed.
8553 * target-delegates.c: Rebuild.
8554 * target.c (target_read_description): Rewrite.
8555 * target.h (struct target_ops) <to_read_description>: Update
8556 comment. Use TARGET_DEFAULT_RETURN.
8557
8558 2014-02-19 Tom Tromey <tromey@redhat.com>
8559
8560 * target-delegates.c: Rebuild.
8561 * target.c (update_current_target): Don't inherit or default
8562 to_can_run.
8563 (find_default_run_target): Check against delegate_can_run.
8564 * target.h (struct target_ops) <to_can_run>: Use
8565 TARGET_DEFAULT_RETURN.
8566
8567 2014-02-19 Tom Tromey <tromey@redhat.com>
8568
8569 * target-delegates.c: Rebuild.
8570 * target.c (target_disconnect): Unconditionally delegate.
8571 * target.h (struct target_ops) <to_disconnect>: Use
8572 TARGET_DEFAULT_NORETURN.
8573
8574 2014-02-19 Tom Tromey <tromey@redhat.com>
8575
8576 * record.c (record_stop): Unconditionally delegate.
8577 * target-delegates.c: Rebuild.
8578 * target.c (target_stop_recording): Unconditionally delegate.
8579 * target.h (struct target_ops) <to_stop_recording>: Use
8580 TARGET_DEFAULT_IGNORE.
8581
8582 2014-02-19 Tom Tromey <tromey@redhat.com>
8583
8584 * target-delegates.c: Rebuild.
8585 * target.c (target_enable_btrace): Unconditionally delegate.
8586 * target.h (struct target_ops) <to_enable_btrace>: Use
8587 TARGET_DEFAULT_NORETURN.
8588
8589 2014-02-19 Tom Tromey <tromey@redhat.com>
8590
8591 * target-delegates.c: Rebuild.
8592 * target.c (target_read_btrace): Unconditionally delegate.
8593 * target.h (struct target_ops) <to_read_btrace>: Use
8594 TARGET_DEFAULT_NORETURN.
8595
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target-delegates.c: Rebuild.
8599 * target.c (target_teardown_btrace): Unconditionally delegate.
8600 * target.h (struct target_ops) <to_teardown_btrace>: Use
8601 TARGET_DEFAULT_NORETURN.
8602
8603 2014-02-19 Tom Tromey <tromey@redhat.com>
8604
8605 * target-delegates.c: Rebuild.
8606 * target.c (target_disable_btrace): Unconditionally delegate.
8607 * target.h (struct target_ops) <to_disable_btrace>: Use
8608 TARGET_DEFAULT_NORETURN.
8609
8610 2014-02-19 Tom Tromey <tromey@redhat.com>
8611
8612 * target-delegates.c: Rebuild.
8613 * target.c (default_search_memory): New function.
8614 (simple_search_memory): Update comment.
8615 (target_search_memory): Unconditionally delegate.
8616 * target.h (struct target_ops) <to_search_memory>: Use
8617 TARGET_DEFAULT_FUNC.
8618
8619 2014-02-19 Tom Tromey <tromey@redhat.com>
8620
8621 * auxv.c (default_auxv_parse): No longer static.
8622 (target_auxv_parse): Unconditionally delegate.
8623 * auxv.h (default_auxv_parse): Declare.
8624 * target-delegates.c: Rebuild.
8625 * target.c: Include auxv.h.
8626 * target.h (struct target_ops) <to_auxv_parse>: Use
8627 TARGET_DEFAULT_FUNC.
8628
8629 2014-02-19 Tom Tromey <tromey@redhat.com>
8630
8631 * target-delegates.c: Rebuild.
8632 * target.c (target_memory_map): Unconditionally delegate.
8633 * target.h (struct target_ops) <to_memory_map>: Use
8634 TARGET_DEFAULT_RETURN.
8635
8636 2014-02-19 Tom Tromey <tromey@redhat.com>
8637
8638 * target-delegates.c: Rebuild.
8639 * target.c (target_thread_alive): Unconditionally delegate.
8640 * target.h (struct target_ops) <to_thread_alive>: Use
8641 TARGET_DEFAULT_RETURN.
8642
8643 2014-02-19 Tom Tromey <tromey@redhat.com>
8644
8645 * target-delegates.c: Rebuild.
8646 * target.c (target_save_record): Unconditionally delegate.
8647 * target.h (struct target_ops) <to_save_record>: Use
8648 TARGET_DEFAULT_NORETURN.
8649
8650 2014-02-19 Tom Tromey <tromey@redhat.com>
8651
8652 * target-delegates.c: Rebuild.
8653 * target.c (target_delete_record): Unconditionally delegate.
8654 * target.h (struct target_ops) <to_delete_record>: Use
8655 TARGET_DEFAULT_NORETURN.
8656
8657 2014-02-19 Tom Tromey <tromey@redhat.com>
8658
8659 * target-delegates.c: Rebuild.
8660 * target.c (target_record_is_replaying): Unconditionally
8661 delegate.
8662 * target.h (struct target_ops) <to_record_is_replaying>: Use
8663 TARGET_DEFAULT_RETURN.
8664
8665 2014-02-19 Tom Tromey <tromey@redhat.com>
8666
8667 * target-delegates.c: Rebuild.
8668 * target.c (target_goto_record_begin): Unconditionally delegate.
8669 * target.h (struct target_ops) <to_goto_record_begin>: Use
8670 TARGET_DEFAULT_NORETURN.
8671
8672 2014-02-19 Tom Tromey <tromey@redhat.com>
8673
8674 * target-delegates.c: Rebuild.
8675 * target.c (target_goto_record_end): Unconditionally delegate.
8676 * target.h (struct target_ops) <to_goto_record_end>: Use
8677 TARGET_DEFAULT_NORETURN.
8678
8679 2014-02-19 Tom Tromey <tromey@redhat.com>
8680
8681 * target-delegates.c: Rebuild.
8682 * target.c (target_goto_record): Unconditionally delegate.
8683 * target.h (struct target_ops) <to_goto_record>: Use
8684 TARGET_DEFAULT_NORETURN.
8685
8686 2014-02-19 Tom Tromey <tromey@redhat.com>
8687
8688 * target-delegates.c: Rebuild.
8689 * target.c (target_insn_history): Unconditionally delegate.
8690 * target.h (struct target_ops) <to_insn_history>: 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_insn_history_from): Unconditionally delegate.
8697 * target.h (struct target_ops) <to_insn_history_from>: 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_insn_history_range): Unconditionally delegate.
8704 * target.h (struct target_ops) <to_insn_history_range>: Use
8705 TARGET_DEFAULT_NORETURN.
8706
8707 2014-02-19 Tom Tromey <tromey@redhat.com>
8708
8709 * target-delegates.c: Rebuild.
8710 * target.c (target_call_history): Unconditionally delegate.
8711 * target.h (struct target_ops) <to_call_history>: Use
8712 TARGET_DEFAULT_NORETURN.
8713
8714 2014-02-19 Tom Tromey <tromey@redhat.com>
8715
8716 * target-delegates.c: Rebuild.
8717 * target.c (target_call_history_from): Unconditionally delegate.
8718 * target.h (struct target_ops) <to_call_history_from>: Use
8719 TARGET_DEFAULT_NORETURN.
8720
8721 2014-02-19 Tom Tromey <tromey@redhat.com>
8722
8723 * target-delegates.c: Rebuild.
8724 * target.c (target_call_history_range): Unconditionally delegate.
8725 * target.h (struct target_ops) <to_call_history_range>: Use
8726 TARGET_DEFAULT_NORETURN.
8727
8728 2014-02-19 Tom Tromey <tromey@redhat.com>
8729
8730 * target-delegates.c: Rebuild.
8731 * target.c (target_verify_memory): Unconditionally delegate.
8732 * target.h (struct target_ops) <to_verify_memory>: Use
8733 TARGET_DEFAULT_NORETURN.
8734
8735 2014-02-19 Tom Tromey <tromey@redhat.com>
8736
8737 * target-delegates.c: Rebuild.
8738 * target.c (target_core_of_thread): Unconditionally delegate.
8739 * target.h (struct target_ops) <to_core_of_thread>: Use
8740 TARGET_DEFAULT_RETURN.
8741
8742 2014-02-19 Tom Tromey <tromey@redhat.com>
8743
8744 * target-delegates.c: Rebuild.
8745 * target.c (target_flash_done): Unconditionally delegate.
8746 * target.h (struct target_ops) <to_flash_done>: Use
8747 TARGET_DEFAULT_NORETURN.
8748
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8750
8751 * target-delegates.c: Rebuild.
8752 * target.c (target_flash_erase): Unconditionally delegate.
8753 * target.h (struct target_ops) <to_flash_erase>: Use
8754 TARGET_DEFAULT_NORETURN.
8755
8756 2014-02-19 Tom Tromey <tromey@redhat.com>
8757
8758 * target-delegates.c: Rebuild.
8759 * target.c (target_get_section_table): Unconditionally delegate.
8760 * target.h (struct target_ops) <to_get_section_table>: Use
8761 TARGET_DEFAULT_RETURN.
8762
8763 2014-02-19 Tom Tromey <tromey@redhat.com>
8764
8765 * target-delegates.c: Rebuild.
8766 * target.c (target_pid_to_str): Unconditionally delegate.
8767 (init_dummy_target): Don't initialize to_pid_to_str.
8768 (default_pid_to_str): Rename from dummy_pid_to_str.
8769 * target.h (struct target_ops) <to_pid_to_str>: Use
8770 TARGET_DEFAULT_FUNC.
8771
8772 2014-02-19 Tom Tromey <tromey@redhat.com>
8773
8774 * target-delegates.c: Rebuild.
8775 * target.c (target_find_new_threads): Unconditionally delegate.
8776 * target.h (struct target_ops) <to_find_new_threads>: Use
8777 TARGET_DEFAULT_RETURN.
8778
8779 2014-02-19 Tom Tromey <tromey@redhat.com>
8780
8781 * target-delegates.c: Rebuild.
8782 * target.c (target_program_signals): Unconditionally delegate.
8783 * target.h (struct target_ops) <to_program_signals>: Use
8784 TARGET_DEFAULT_IGNORE.
8785
8786 2014-02-19 Tom Tromey <tromey@redhat.com>
8787
8788 * target-delegates.c: Rebuild.
8789 * target.c (target_pass_signals): Unconditionally delegate.
8790 * target.h (struct target_ops) <to_pass_signals>: Use
8791 TARGET_DEFAULT_IGNORE.
8792
8793 2014-02-19 Tom Tromey <tromey@redhat.com>
8794
8795 * target-delegates.c: Rebuild.
8796 * target.c (default_mourn_inferior): New function.
8797 (target_mourn_inferior): Unconditionally delegate.
8798 * target.h (struct target_ops) <to_mourn_inferior>: Use
8799 TARGET_DEFAULT_FUNC.
8800
8801 2014-02-19 Tom Tromey <tromey@redhat.com>
8802
8803 * target-delegates.c: Rebuild.
8804 * target.c (default_follow_fork): New function.
8805 (target_follow_fork): Unconditionally delegate.
8806 * target.h (struct target_ops) <to_follow_fork>: Use
8807 TARGET_DEFAULT_FUNC.
8808
8809 2014-02-19 Tom Tromey <tromey@redhat.com>
8810
8811 * target-delegates.c: Rebuild.
8812 * target.c (target_kill): Unconditionally delegate.
8813 * target.h (struct target_ops) <to_kill>: Use
8814 TARGET_DEFAULT_NORETURN.
8815
8816 2014-02-19 Tom Tromey <tromey@redhat.com>
8817
8818 * target-delegates.c: Rebuild.
8819 * target.c (target_masked_watch_num_registers): Unconditionally
8820 delegate.
8821 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8822 Use TARGET_DEFAULT_RETURN.
8823
8824 2014-02-19 Tom Tromey <tromey@redhat.com>
8825
8826 * target-delegates.c: Rebuild.
8827 * target.c (target_remove_mask_watchpoint): Unconditionally
8828 delegate.
8829 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8830 TARGET_DEFAULT_RETURN.
8831
8832 2014-02-19 Tom Tromey <tromey@redhat.com>
8833
8834 * target-delegates.c: Rebuild.
8835 * target.c (target_insert_mask_watchpoint): Unconditionally
8836 delegate.
8837 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8838 TARGET_DEFAULT_RETURN.
8839
8840 2014-02-19 Tom Tromey <tromey@redhat.com>
8841
8842 * target-delegates.c: Rebuild.
8843 * target.c (target_ranged_break_num_registers): Unconditionally
8844 delegate.
8845 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8846 Use TARGET_DEFAULT_RETURN.
8847
8848 2014-02-19 Tom Tromey <tromey@redhat.com>
8849
8850 * target-delegates.c: Rebuild.
8851 * target.c (target_fetch_registers): Unconditionally delegate.
8852 * target.h (struct target_ops) <to_fetch_registers>: Use
8853 TARGET_DEFAULT_NORETURN.
8854
8855 2014-02-19 Tom Tromey <tromey@redhat.com>
8856
8857 * target-delegates.c: Rebuild.
8858 * target.c (update_current_target): Don't inherit or default
8859 to_stop.
8860 * target.h (struct target_ops) <to_stop>: Use
8861 TARGET_DEFAULT_IGNORE.
8862
8863 2014-02-19 Tom Tromey <tromey@redhat.com>
8864
8865 * target-delegates.c: Rebuild.
8866 * target.c (update_current_target): Don't inherit or default
8867 to_can_run_breakpoint_commands.
8868 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8869 Use TARGET_DEFAULT_RETURN.
8870
8871 2014-02-19 Tom Tromey <tromey@redhat.com>
8872
8873 * target-delegates.c: Rebuild.
8874 * target.c (update_current_target): Don't inherit or default
8875 to_supports_evaluation_of_breakpoint_conditions.
8876 * target.h (struct target_ops)
8877 <to_supports_evaluation_of_breakpoint_conditions>: Use
8878 TARGET_DEFAULT_RETURN.
8879
8880 2014-02-19 Tom Tromey <tromey@redhat.com>
8881
8882 * target-delegates.c: Rebuild.
8883 * target.c (update_current_target): Don't inherit or default
8884 to_augmented_libraries_svr4_read.
8885 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8886 Use TARGET_DEFAULT_RETURN.
8887
8888 2014-02-19 Tom Tromey <tromey@redhat.com>
8889
8890 * target-delegates.c: Rebuild.
8891 * target.c (update_current_target): Don't inherit or default
8892 to_can_use_agent.
8893 * target.h (struct target_ops) <to_can_use_agent>: Use
8894 TARGET_DEFAULT_RETURN.
8895
8896 2014-02-19 Tom Tromey <tromey@redhat.com>
8897
8898 * target-delegates.c: Rebuild.
8899 * target.c (update_current_target): Don't inherit or default
8900 to_use_agent.
8901 * target.h (struct target_ops) <to_use_agent>: Use
8902 TARGET_DEFAULT_NORETURN.
8903
8904 2014-02-19 Tom Tromey <tromey@redhat.com>
8905
8906 * target-delegates.c: Rebuild.
8907 * target.c (update_current_target): Don't inherit or default
8908 to_traceframe_info.
8909 (return_null): Remove.
8910 * target.h (struct target_ops) <to_traceframe_info>: Use
8911 TARGET_DEFAULT_RETURN.
8912
8913 2014-02-19 Tom Tromey <tromey@redhat.com>
8914
8915 * target-delegates.c: Rebuild.
8916 * target.c (update_current_target): Don't inherit or default
8917 to_static_tracepoint_markers_by_strid.
8918 * target.h (struct target_ops)
8919 <to_static_tracepoint_markers_by_strid>: Use
8920 TARGET_DEFAULT_NORETURN.
8921
8922 2014-02-19 Tom Tromey <tromey@redhat.com>
8923
8924 * target-delegates.c: Rebuild.
8925 * target.c (update_current_target): Don't inherit or default
8926 to_static_tracepoint_marker_at.
8927 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8928 Use TARGET_DEFAULT_RETURN.
8929
8930 2014-02-19 Tom Tromey <tromey@redhat.com>
8931
8932 * target-delegates.c: Rebuild.
8933 * target.c (update_current_target): Don't inherit or default
8934 to_set_permissions.
8935 * target.h (struct target_ops) <to_set_permissions>: Use
8936 TARGET_DEFAULT_IGNORE.
8937
8938 2014-02-19 Tom Tromey <tromey@redhat.com>
8939
8940 * target-delegates.c: Rebuild.
8941 * target.c (update_current_target): Don't inherit or default
8942 to_get_tib_address.
8943 * target.h (struct target_ops) <to_get_tib_address>: Use
8944 TARGET_DEFAULT_NORETURN.
8945
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8947
8948 * target-delegates.c: Rebuild.
8949 * target.c (update_current_target): Don't inherit or default
8950 to_set_trace_notes.
8951 * target.h (struct target_ops) <to_set_trace_notes>: Use
8952 TARGET_DEFAULT_RETURN.
8953
8954 2014-02-19 Tom Tromey <tromey@redhat.com>
8955
8956 * target-delegates.c: Rebuild.
8957 * target.c (update_current_target): Don't initialize
8958 to_set_trace_buffer_size.
8959 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8960 TARGET_DEFAULT_IGNORE.
8961
8962 2014-02-19 Tom Tromey <tromey@redhat.com>
8963
8964 * target-delegates.c: Rebuild.
8965 * target.c (update_current_target): Don't inherit or default
8966 to_set_circular_trace_buffer.
8967 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8968 TARGET_DEFAULT_IGNORE.
8969
8970 2014-02-19 Tom Tromey <tromey@redhat.com>
8971
8972 * target-delegates.c: Rebuild.
8973 * target.c (update_current_target): Don't inherit or default
8974 to_set_disconnected_tracing.
8975 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8976 TARGET_DEFAULT_IGNORE.
8977
8978 2014-02-19 Tom Tromey <tromey@redhat.com>
8979
8980 * target-delegates.c: Rebuild.
8981 * target.c (update_current_target): Don't inherit or default
8982 to_get_min_fast_tracepoint_insn_len.
8983 (return_minus_one): Remove.
8984 * target.h (struct target_ops)
8985 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8986
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * target-delegates.c: Rebuild.
8990 * target.c (update_current_target): Don't inherit or default
8991 to_get_raw_trace_data.
8992 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8993 TARGET_DEFAULT_NORETURN.
8994
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8996
8997 * target-delegates.c: Rebuild.
8998 * target.c (update_current_target): Don't inherit or default
8999 to_upload_trace_state_variables.
9000 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9001 Use TARGET_DEFAULT_RETURN.
9002
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9004
9005 * target-delegates.c: Rebuild.
9006 * target.c (update_current_target): Don't inherit or default
9007 to_upload_tracepoints.
9008 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9009 TARGET_DEFAULT_RETURN.
9010
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9012
9013 * target-delegates.c: Rebuild.
9014 * target.c (update_current_target): Don't inherit or default
9015 to_save_trace_data.
9016 * target.h (struct target_ops) <to_save_trace_data>: Use
9017 TARGET_DEFAULT_NORETURN.
9018
9019 2014-02-19 Tom Tromey <tromey@redhat.com>
9020
9021 * target-delegates.c: Rebuild.
9022 * target.c (update_current_target): Don't inherit or default
9023 to_get_trace_state_variable_value.
9024 * target.h (struct target_ops)
9025 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9026
9027 2014-02-19 Tom Tromey <tromey@redhat.com>
9028
9029 * target-delegates.c: Rebuild.
9030 * target.c (update_current_target): Don't inherit or default
9031 to_trace_find.
9032 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9033
9034 2014-02-19 Tom Tromey <tromey@redhat.com>
9035
9036 * target-delegates.c: Rebuild.
9037 * target.c (update_current_target): Don't inherit or default
9038 to_trace_stop.
9039 * target.h (struct target_ops) <to_trace_stop>: Use
9040 TARGET_DEFAULT_NORETURN.
9041
9042 2014-02-19 Tom Tromey <tromey@redhat.com>
9043
9044 * target-delegates.c: Rebuild.
9045 * target.c (update_current_target): Don't inherit or default
9046 to_get_tracepoint_status.
9047 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9048 TARGET_DEFAULT_NORETURN.
9049
9050 2014-02-19 Tom Tromey <tromey@redhat.com>
9051
9052 * target-delegates.c: Rebuild.
9053 * target.c (update_current_target): Don't inherit or default
9054 to_get_trace_status.
9055 * target.h (struct target_ops) <to_get_trace_status>: Use
9056 TARGET_DEFAULT_RETURN.
9057
9058 2014-02-19 Tom Tromey <tromey@redhat.com>
9059
9060 * target-delegates.c: Rebuild.
9061 * target.c (update_current_target): Don't inherit or default
9062 to_trace_start.
9063 * target.h (struct target_ops) <to_trace_start>: Use
9064 TARGET_DEFAULT_NORETURN.
9065
9066 2014-02-19 Tom Tromey <tromey@redhat.com>
9067
9068 * target-delegates.c: Rebuild.
9069 * target.c (update_current_target): Don't inherit or default
9070 to_trace_set_readonly_regions.
9071 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9072 Use TARGET_DEFAULT_NORETURN.
9073
9074 2014-02-19 Tom Tromey <tromey@redhat.com>
9075
9076 * target-delegates.c: Rebuild.
9077 * target.c (update_current_target): Don't inherit or default
9078 to_disable_tracepoint.
9079 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9080 TARGET_DEFAULT_NORETURN.
9081
9082 2014-02-19 Tom Tromey <tromey@redhat.com>
9083
9084 * target-delegates.c: Rebuild.
9085 * target.c (update_current_target): Don't inherit or default
9086 to_enable_tracepoint.
9087 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9088 TARGET_DEFAULT_NORETURN.
9089
9090 2014-02-19 Tom Tromey <tromey@redhat.com>
9091
9092 * target-delegates.c: Rebuild.
9093 * target.c (update_current_target): Don't inherit or default
9094 to_download_trace_state_variable.
9095 * target.h (struct target_ops) <to_download_trace_state_variable>:
9096 Use TARGET_DEFAULT_NORETURN.
9097
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9099
9100 * target-delegates.c: Rebuild.
9101 * target.c (update_current_target): Don't inherit or default
9102 to_can_download_tracepoint.
9103 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9104 TARGET_DEFAULT_RETURN.
9105
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9107
9108 * target-delegates.c: Rebuild.
9109 * target.c (update_current_target): Don't inherit or default
9110 to_download_tracepoint.
9111 * target.h (struct target_ops) <to_download_tracepoint>: Use
9112 TARGET_DEFAULT_NORETURN.
9113
9114 2014-02-19 Tom Tromey <tromey@redhat.com>
9115
9116 * target-delegates.c: Rebuild.
9117 * target.c (update_current_target): Don't inherit or default
9118 to_trace_init.
9119 * target.h (struct target_ops) <to_trace_init>: Use
9120 TARGET_DEFAULT_RETURN.
9121
9122 2014-02-19 Tom Tromey <tromey@redhat.com>
9123
9124 * target-delegates.c: Rebuild.
9125 * target.c (update_current_target): Don't inherit or default
9126 to_supports_string_tracing.
9127 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9128 TARGET_DEFAULT_RETURN.
9129
9130 2014-02-19 Tom Tromey <tromey@redhat.com>
9131
9132 * target-delegates.c: Rebuild.
9133 * target.c (update_current_target): Don't inherit or default
9134 to_supports_enable_disable_tracepoint.
9135 * target.h (struct target_ops)
9136 <to_supports_enable_disable_tracepoint>: Use
9137 TARGET_DEFAULT_RETURN.
9138
9139 2014-02-19 Tom Tromey <tromey@redhat.com>
9140
9141 * target-delegates.c: Rebuild.
9142 * target.c (update_current_target): Don't inherit or default
9143 to_supports_multi_process.
9144 * target.h (struct target_ops) <to_supports_multi_process>: Use
9145 TARGET_DEFAULT_RETURN.
9146
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9148
9149 * target-delegates.c: Rebuild.
9150 * target.c (update_current_target): Don't inherit or default
9151 to_get_ada_task_ptid.
9152 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9153 TARGET_DEFAULT_FUNC.
9154
9155 2014-02-19 Tom Tromey <tromey@redhat.com>
9156
9157 * target-delegates.c: Rebuild.
9158 * target.c (update_current_target): Don't inherit or default
9159 to_thread_architecture.
9160 * target.h (struct target_ops) <to_thread_architecture>: Use
9161 TARGET_DEFAULT_FUNC.
9162
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9164
9165 * target-delegates.c: Rebuild.
9166 * target.c (update_current_target): Don't inherit or default
9167 to_execution_direction.
9168 * target.h (struct target_ops) <to_execution_direction>: Use
9169 TARGET_DEFAULT_FUNC.
9170
9171 2014-02-19 Tom Tromey <tromey@redhat.com>
9172
9173 * target-delegates.c: Rebuild.
9174 * target.c (update_current_target): Don't inherit or default
9175 to_can_execute_reverse.
9176 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9177 TARGET_DEFAULT_RETURN.
9178 (target_can_execute_reverse): Unconditionally delegate.
9179
9180 2014-02-19 Tom Tromey <tromey@redhat.com>
9181
9182 * target-delegates.c: Rebuild.
9183 * target.c (update_current_target): Don't inherit or default
9184 to_goto_bookmark.
9185 (dummy_goto_bookmark): Remove.
9186 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9187 * target.h (struct target_ops) <to_goto_bookmark>: Use
9188 TARGET_DEFAULT_NORETURN.
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_bookmark.
9195 (dummy_get_bookmark): Remove.
9196 (init_dummy_target): Don't inherit or default to_get_bookmark.
9197 * target.h (struct target_ops) <to_get_bookmark>: Use
9198 TARGET_DEFAULT_NORETURN
9199
9200 2014-02-19 Tom Tromey <tromey@redhat.com>
9201
9202 * target-delegates.c: Rebuild.
9203 * target.c (update_current_target): Don't inherit or default
9204 to_make_corefile_notes.
9205 (init_dummy_target): Don't initialize to_make_corefile_notes.
9206 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9207 TARGET_DEFAULT_FUNC.
9208
9209 2014-02-19 Tom Tromey <tromey@redhat.com>
9210
9211 * target-delegates.c: Rebuild.
9212 * target.c (update_current_target): Don't inherit or default
9213 to_find_memory_regions.
9214 (init_dummy_target): Don't initialize to_find_memory_regions.
9215 * target.h (struct target_ops) <to_find_memory_regions>: Use
9216 TARGET_DEFAULT_FUNC.
9217
9218 2014-02-19 Tom Tromey <tromey@redhat.com>
9219
9220 * target-delegates.c: Rebuild.
9221 * target.c (update_current_target): Don't inherit or default
9222 to_log_command.
9223 * target.h (struct target_ops) <to_log_command>: Use
9224 TARGET_DEFAULT_IGNORE.
9225 (target_log_command): Unconditionally delegate.
9226
9227 2014-02-19 Tom Tromey <tromey@redhat.com>
9228
9229 * target-delegates.c: Rebuild.
9230 * target.c (update_current_target): Don't inherit or default
9231 to_pid_to_exec_file.
9232 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9233 TARGET_DEFAULT_RETURN.
9234
9235 2014-02-19 Tom Tromey <tromey@redhat.com>
9236
9237 * target-delegates.c: Rebuild.
9238 * target.c (update_current_target): Don't inherit or default
9239 to_thread_name.
9240 (target_thread_name): Unconditionally delegate.
9241 * target.h (struct target_ops) <to_thread_name>: Use
9242 TARGET_DEFAULT_RETURN.
9243
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9245
9246 * target-delegates.c: Rebuild.
9247 * target.c (update_current_target): Don't inherit or default
9248 to_extra_thread_info.
9249 * target.h (struct target_ops) <to_extra_thread_info>: Use
9250 TARGET_DEFAULT_RETURN.
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_has_exited.
9257 * target.h (struct target_ops) <to_has_exited>: Use
9258 TARGET_DEFAULT_RETURN..
9259
9260 2014-02-19 Tom Tromey <tromey@redhat.com>
9261
9262 * target-delegates.c: Rebuild.
9263 * target.c (update_current_target): Don't inherit or default
9264 to_set_syscall_catchpoint.
9265 (return_one): Remove.
9266 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9267 TARGET_DEFAULT_RETURN.
9268
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9270
9271 * target-delegates.c: Rebuild.
9272 * target.c (update_current_target): Don't inherit or default
9273 to_insert_exec_catchpoint.
9274 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9275 TARGET_DEFAULT_RETURN.
9276
9277 2014-01-08 Tom Tromey <tromey@redhat.com>
9278
9279 * target-delegates.c: Rebuild.
9280 * target.c (update_current_target): Don't inherit or default
9281 to_insert_exec_catchpoint.
9282 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9283 TARGET_DEFAULT_RETURN.
9284
9285 2014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * target-delegates.c: Rebuild.
9288 * target.c (update_current_target): Don't inherit or default
9289 to_remove_vfork_catchpoint.
9290 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9291 TARGET_DEFAULT_RETURN.
9292
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9294
9295 * target-delegates.c: Rebuild.
9296 * target.c (update_current_target): Don't inherit or default
9297 to_insert_vfork_catchpoint.
9298 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9299 TARGET_DEFAULT_RETURN.
9300
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9302
9303 * target-delegates.c: Rebuild.
9304 * target.c (update_current_target): Don't inherit or default
9305 to_remove_fork_catchpoint.
9306 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9307 TARGET_DEFAULT_RETURN.
9308
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * target-delegates.c: Rebuild.
9312 * target.c (update_current_target): Don't inherit or default
9313 to_insert_fork_catchpoint.
9314 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9315 TARGET_DEFAULT_RETURN.
9316
9317 2014-02-19 Tom Tromey <tromey@redhat.com>
9318
9319 * target-delegates.c: Rebuild.
9320 * target.c (update_current_target): Don't inherit or default
9321 to_post_startup_inferior.
9322 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9323 TARGET_DEFAULT_IGNORE.
9324
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target-delegates.c: Rebuild.
9328 * target.c (update_current_target): Don't inherit or default
9329 to_load.
9330 * target.h (struct target_ops) <to_load>: Use
9331 TARGET_DEFAULT_NORETURN.
9332
9333 2014-02-19 Tom Tromey <tromey@redhat.com>
9334
9335 * target-delegates.c: Rebuild.
9336 * target.c (update_current_target): Don't inherit or default
9337 to_terminal_info.
9338 * target.h (struct target_ops) <to_terminal_info>: Use
9339 TARGET_DEFAULT_FUNC.
9340
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9342
9343 * target-delegates.c: Rebuild.
9344 * target.c (update_current_target): Don't inherit or default
9345 to_terminal_save_ours.
9346 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9347 TARGET_DEFAULT_IGNORE.
9348
9349 2014-02-19 Tom Tromey <tromey@redhat.com>
9350
9351 * target-delegates.c: Rebuild.
9352 * target.c (update_current_target): Don't inherit or default
9353 to_terminal_ours.
9354 * target.h (struct target_ops) <to_terminal_ours>: Use
9355 TARGET_DEFAULT_IGNORE.
9356
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9358
9359 * target-delegates.c: Rebuild.
9360 * target.c (update_current_target): Don't inherit or default
9361 to_terminal_ours_for_output.
9362 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9363 TARGET_DEFAULT_IGNORE.
9364
9365 2014-02-19 Tom Tromey <tromey@redhat.com>
9366
9367 * target-delegates.c: Rebuild.
9368 * target.c (update_current_target): Don't inherit or default
9369 to_terminal_inferior.
9370 * target.h (struct target_ops) <to_terminal_inferior>: Use
9371 TARGET_DEFAULT_IGNORE.
9372
9373 2014-02-19 Tom Tromey <tromey@redhat.com>
9374
9375 * target-delegates.c: Rebuild.
9376 * target.c (update_current_target): Don't inherit or default
9377 to_terminal_init.
9378 * target.h (struct target_ops) <to_terminal_init>: Use
9379 TARGET_DEFAULT_IGNORE.
9380
9381 2014-02-19 Tom Tromey <tromey@redhat.com>
9382
9383 * target-delegates.c: Rebuild.
9384 * target.c (update_current_target): Don't inherit or default
9385 to_can_accel_watchpoint_condition.
9386 * target.h (struct target_ops)
9387 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9388
9389 2014-02-19 Tom Tromey <tromey@redhat.com>
9390
9391 * target-delegates.c: Rebuild.
9392 * target.c (update_current_target): Don't inherit or default
9393 to_region_ok_for_hw_watchpoint.
9394 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9395 Use TARGET_DEFAULT_FUNC.
9396
9397 2014-02-19 Tom Tromey <tromey@redhat.com>
9398
9399 * target-delegates.c: Rebuild.
9400 * target.c (update_current_target): Don't inherit or default
9401 to_watchpoint_addr_within_range.
9402 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9403 Use TARGET_DEFAULT_FUNC.
9404
9405 2014-02-19 Tom Tromey <tromey@redhat.com>
9406
9407 * target-delegates.c: Rebuild.
9408 * target.c (update_current_target): Don't inherit or default
9409 to_remove_watchpoint.
9410 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9411 TARGET_DEFAULT_NORETURN.
9412
9413 2014-02-19 Tom Tromey <tromey@redhat.com>
9414
9415 * target-delegates.c: Rebuild.
9416 * target.c (update_current_target): Don't inherit or default
9417 to_insert_watchpoint.
9418 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9419 TARGET_DEFAULT_RETURN.
9420
9421 2014-02-19 Tom Tromey <tromey@redhat.com>
9422
9423 * target-delegates.c: Rebuild.
9424 * target.c (update_current_target): Don't inherit or default
9425 to_remove_hw_breakpoint.
9426 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9427 TARGET_DEFAULT_RETURN.
9428
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9430
9431 * target-delegates.c: Rebuild.
9432 * target.c (update_current_target): Don't inherit or default
9433 to_insert_hw_breakpoint.
9434 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9435 TARGET_DEFAULT_RETURN.
9436
9437 2014-02-19 Tom Tromey <tromey@redhat.com>
9438
9439 * target-delegates.c: Rebuild.
9440 * target.c (update_current_target): Don't inherit or default
9441 to_can_use_hw_breakpoint.
9442 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9443 TARGET_DEFAULT_RETURN.
9444
9445 2014-02-19 Tom Tromey <tromey@redhat.com>
9446
9447 * target-delegates.c: Rebuild.
9448 * target.c (update_current_target): Don't inherit or default
9449 to_files_info.
9450 * target.h (struct target_ops) <to_files_info>: Use
9451 TARGET_DEFAULT_IGNORE.
9452
9453 2014-02-19 Tom Tromey <tromey@redhat.com>
9454
9455 * target-delegates.c: Rebuild.
9456 * target.c (update_current_target): Don't inherit or default
9457 to_store.
9458 * target.h (struct target_ops) <to_store>: Use
9459 TARGET_DEFAULT_NORETURN.
9460
9461 2014-02-19 Tom Tromey <tromey@redhat.com>
9462
9463 * target-delegates.c: Rebuild.
9464 * target.c (update_current_target): Don't inherit or default
9465 to_post_attach.
9466 * target.h (struct target_ops) <to_post_attach>: Use
9467 TARGET_DEFAULT_IGNORE.
9468
9469 2014-02-19 Tom Tromey <tromey@redhat.com>
9470
9471 * target-delegates.c: Rebuild.
9472 * target.c (update_current_target): Don't inherit or default
9473 to_rcmd.
9474 (default_rcmd): New function.
9475 (do_monitor_command): Unconditionally delegate.
9476 * target.h (struct target_ops) <to_rmcd>: Use
9477 TARGET_DEFAULT_FUNC.
9478
9479 2014-02-19 Tom Tromey <tromey@redhat.com>
9480
9481 * target-delegates.c: Rebuild.
9482 * target.c (init_dummy_target): Don't initialize to_attach.
9483 (target_attach): Unconditionally delegate.
9484 * target.h (struct target_ops) <to_attach>: Use
9485 TARGET_DEFAULT_FUNC.
9486
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9488
9489 * target-delegates.c: Rebuild.
9490 * target.c (target_detach): Unconditionally delegate.
9491 (init_dummy_target): Don't initialize to_detach.
9492 * target.h (struct target_ops) <to_detach>: Use
9493 TARGET_DEFAULT_IGNORE.
9494
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9496
9497 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9498 Add argument.
9499 (target_augmented_libraries_svr4_read): Add argument.
9500 * target.c (update_current_target): Update.
9501 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9502 argument.
9503
9504 2014-02-19 Tom Tromey <tromey@redhat.com>
9505
9506 * target.h (struct target_ops) <to_call_history_range>: Add
9507 argument.
9508 * target.c (target_call_history_range): Add argument.
9509 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9510 argument.
9511 (record_btrace_call_history_from): Update.
9512
9513 2014-02-19 Tom Tromey <tromey@redhat.com>
9514
9515 * target.h (struct target_ops) <to_call_history_from>: Add
9516 argument.
9517 * target.c (target_call_history_from): Add argument.
9518 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9519 argument.
9520
9521 2014-02-19 Tom Tromey <tromey@redhat.com>
9522
9523 * target.h (struct target_ops) <to_call_history>: Add argument.
9524 * target.c (target_call_history): Add argument.
9525 * record-btrace.c (record_btrace_call_history): Add 'self'
9526 argument.
9527
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9529
9530 * target.h (struct target_ops) <to_insn_history_range>: Add
9531 argument.
9532 * target.c (target_insn_history_range): Add argument.
9533 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9534 argument.
9535 (record_btrace_insn_history_from): Update.
9536
9537 2014-02-19 Tom Tromey <tromey@redhat.com>
9538
9539 * target.h (struct target_ops) <to_insn_history_from>: Add
9540 argument.
9541 * target.c (target_insn_history_from): Add argument.
9542 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9543 argument.
9544
9545 2014-02-19 Tom Tromey <tromey@redhat.com>
9546
9547 * target.h (struct target_ops) <to_insn_history>: Add argument.
9548 * target.c (target_insn_history): Add argument.
9549 * record-btrace.c (record_btrace_insn_history): Add 'self'
9550 argument.
9551
9552 2014-02-19 Tom Tromey <tromey@redhat.com>
9553
9554 * target.h (struct target_ops) <to_goto_record>: Add argument.
9555 * target.c (target_goto_record): Add argument.
9556 * record-full.c (record_full_goto): Add 'self' argument.
9557 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9558
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9560
9561 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9562 * target.c (target_goto_record_end): Add argument.
9563 * record-full.c (record_full_goto_end): Add 'self' argument.
9564 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9565
9566 2014-02-19 Tom Tromey <tromey@redhat.com>
9567
9568 * target.h (struct target_ops) <to_goto_record_begin>: Add
9569 argument.
9570 * target.c (target_goto_record_begin): Add argument.
9571 * record-full.c (record_full_goto_begin): Add 'self' argument.
9572 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9573 argument.
9574
9575 2014-02-19 Tom Tromey <tromey@redhat.com>
9576
9577 * target.h (struct target_ops) <to_record_is_replaying>: Add
9578 argument.
9579 * target.c (target_record_is_replaying): Add argument.
9580 * record-full.c (record_full_is_replaying): Add 'self' argument.
9581 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9582 argument.
9583 (record_btrace_xfer_partial, record_btrace_store_registers)
9584 (record_btrace_prepare_to_store, record_btrace_resume)
9585 (record_btrace_wait, record_btrace_decr_pc_after_break)
9586 (record_btrace_find_new_threads, record_btrace_thread_alive):
9587 Update.
9588
9589 2014-02-19 Tom Tromey <tromey@redhat.com>
9590
9591 * target.h (struct target_ops) <to_delete_record>: Add argument.
9592 * target.c (target_delete_record): Add argument.
9593 * record-full.c (record_full_delete): Add 'self' argument.
9594
9595 2014-02-19 Tom Tromey <tromey@redhat.com>
9596
9597 * target.h (struct target_ops) <to_save_record>: Add argument.
9598 * target.c (target_save_record): Add argument.
9599 * record-full.c (record_full_save): Add 'self' argument.
9600 (record_full_save): Add 'self' argument.
9601
9602 2014-02-19 Tom Tromey <tromey@redhat.com>
9603
9604 * target.h (struct target_ops) <to_info_record>: Add argument.
9605 * target.c (target_info_record): Add argument.
9606 * record.c (info_record_command): Add argument.
9607 * record-full.c (record_full_info): Add 'self' argument.
9608 * record-btrace.c (record_btrace_info): Add 'self' argument.
9609
9610 2014-02-19 Tom Tromey <tromey@redhat.com>
9611
9612 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9613 * target.c (target_stop_recording): Add argument.
9614 * record.c (record_stop): Add argument.
9615 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9616 argument.
9617
9618 2014-02-19 Tom Tromey <tromey@redhat.com>
9619
9620 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9621 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9622 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9623 argument.
9624 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9625 (_initialize_amd64_linux_nat): Use it.
9626 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9627 (_initialize_i386_linux_nat): Use it.
9628
9629 2014-02-19 Tom Tromey <tromey@redhat.com>
9630
9631 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9632 * target.c (target_teardown_btrace): Add argument.
9633 * remote.c (remote_teardown_btrace): Add 'self' argument.
9634 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9635 argument.
9636 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9637 argument.
9638
9639 2014-02-19 Tom Tromey <tromey@redhat.com>
9640
9641 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9642 * target.c (target_disable_btrace): Add argument.
9643 * remote.c (remote_disable_btrace): Add 'self' argument.
9644 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9645 argument.
9646 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9647 argument.
9648
9649 2014-02-19 Tom Tromey <tromey@redhat.com>
9650
9651 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9652 * target.c (target_enable_btrace): Add argument.
9653 * remote.c (remote_enable_btrace): Add 'self' argument.
9654 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9655 argument.
9656 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9657 argument.
9658
9659 2014-02-19 Tom Tromey <tromey@redhat.com>
9660
9661 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9662 (target_can_use_agent): Add argument.
9663 * target.c (update_current_target): Update.
9664 * remote.c (remote_can_use_agent): Add 'self' argument.
9665 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9666
9667 2014-02-19 Tom Tromey <tromey@redhat.com>
9668
9669 * target.h (struct target_ops) <to_use_agent>: Add argument.
9670 (target_use_agent): Add argument.
9671 * target.c (update_current_target): Update.
9672 * remote.c (remote_use_agent): Add 'self' argument.
9673 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9674
9675 2014-02-19 Tom Tromey <tromey@redhat.com>
9676
9677 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9678 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9679 (target_traceframe_info): Add argument.
9680 * target.c (update_current_target): Update.
9681 * remote.c (remote_traceframe_info): Add 'self' argument.
9682 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9683
9684 2014-02-19 Tom Tromey <tromey@redhat.com>
9685
9686 * target.h (target_static_tracepoint_markers_by_strid): Add
9687 argument.
9688 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9689 'self' argument.
9690 * target.c (update_current_target): Update.
9691 * remote.c (struct target_ops)
9692 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9693 * linux-nat.c (struct target_ops)
9694 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9695
9696 2014-02-19 Tom Tromey <tromey@redhat.com>
9697
9698 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9699 Add argument.
9700 (target_static_tracepoint_marker_at): Add argument.
9701 * target.c (update_current_target): Update.
9702 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9703 argument.
9704
9705 2014-02-19 Tom Tromey <tromey@redhat.com>
9706
9707 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9708 (target_set_permissions): Add argument.
9709 * target.c (update_current_target): Update.
9710 * remote.c (remote_set_permissions): Add 'self' argument.
9711 (remote_start_remote): Update.
9712
9713 2014-02-19 Tom Tromey <tromey@redhat.com>
9714
9715 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9716 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9717 (target_get_tib_address): Add argument.
9718 * target.c (update_current_target): Update.
9719 * remote.c (remote_get_tib_address): Add 'self' argument.
9720
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9722
9723 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9724 (target_set_trace_notes): Add argument.
9725 * target.c (update_current_target): Update.
9726 * remote.c (remote_set_trace_notes): Add 'self' argument.
9727
9728 2014-02-19 Tom Tromey <tromey@redhat.com>
9729
9730 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9731 argument.
9732 (target_set_trace_buffer_size): Add argument.
9733 * target.c (update_current_target): Update.
9734 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9735
9736 2014-02-19 Tom Tromey <tromey@redhat.com>
9737
9738 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9739 argument.
9740 (target_set_circular_trace_buffer): Add argument.
9741 * target.c (update_current_target): Update.
9742 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9743 argument.
9744
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9746
9747 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9748 argument.
9749 (target_set_disconnected_tracing): Add argument.
9750 * target.c (update_current_target): Update.
9751 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9752
9753 2014-02-19 Tom Tromey <tromey@redhat.com>
9754
9755 * target.h (struct target_ops)
9756 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9757 (target_get_min_fast_tracepoint_insn_len): Add argument.
9758 * target.c (update_current_target): Update.
9759 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9760 argument.
9761
9762 2014-02-19 Tom Tromey <tromey@redhat.com>
9763
9764 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9765 argument.
9766 (target_get_raw_trace_data): Add argument.
9767 * target.c (update_current_target): Update.
9768 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9769
9770 2014-02-19 Tom Tromey <tromey@redhat.com>
9771
9772 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9773 Add argument.
9774 (target_upload_trace_state_variables): Add argument.
9775 * target.c (update_current_target): Update.
9776 * remote.c (remote_upload_trace_state_variables): Add 'self'
9777 argument.
9778 (remote_start_remote): Update.
9779
9780 2014-02-19 Tom Tromey <tromey@redhat.com>
9781
9782 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9783 argument.
9784 (target_upload_tracepoints): Add argument.
9785 * target.c (update_current_target): Update.
9786 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9787 (remote_start_remote): Update.
9788
9789 2014-02-19 Tom Tromey <tromey@redhat.com>
9790
9791 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9792 (target_save_trace_data): Add argument.
9793 * target.c (update_current_target): Update.
9794 * remote.c (remote_save_trace_data): Add 'self' argument.
9795
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9797
9798 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9799 argument.
9800 * target.h (struct target_ops)
9801 <to_get_trace_state_variable_value>: Add argument.
9802 (target_get_trace_state_variable_value): Add argument.
9803 * target.c (update_current_target): Update.
9804 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9805 argument.
9806 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9807
9808 2014-02-19 Tom Tromey <tromey@redhat.com>
9809
9810 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9811 * target.h (struct target_ops) <to_trace_find>: Add argument.
9812 (target_trace_find): Add argument.
9813 * target.c (update_current_target): Update.
9814 * remote.c (remote_trace_find): Add 'self' argument.
9815 * ctf.c (ctf_trace_find): Add 'self' argument.
9816
9817 2014-02-19 Tom Tromey <tromey@redhat.com>
9818
9819 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9820 (target_trace_stop): Add argument.
9821 * target.c (update_current_target): Update.
9822 * remote.c (remote_trace_stop): Add 'self' argument.
9823
9824 2014-02-19 Tom Tromey <tromey@redhat.com>
9825
9826 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9827 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9828 argument.
9829 (target_get_tracepoint_status): Add argument.
9830 * target.c (update_current_target): Update.
9831 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9832
9833 2014-02-19 Tom Tromey <tromey@redhat.com>
9834
9835 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9836 * target.h (struct target_ops) <to_get_trace_status>: Add
9837 argument.
9838 (target_get_trace_status): Add argument.
9839 * target.c (update_current_target): Update.
9840 * remote.c (remote_get_trace_status): Add 'self' argument.
9841 (remote_start_remote, remote_can_download_tracepoint): Update.
9842 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9843
9844 2014-02-19 Tom Tromey <tromey@redhat.com>
9845
9846 * target.h (struct target_ops) <to_trace_start>: Add argument.
9847 (target_trace_start): Add argument.
9848 * target.c (update_current_target): Update.
9849 * remote.c (remote_trace_start): Add 'self' argument.
9850
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9852
9853 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9854 Add argument.
9855 (target_trace_set_readonly_regions): Add argument.
9856 * target.c (update_current_target): Update.
9857 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9858 argument.
9859
9860 2014-02-19 Tom Tromey <tromey@redhat.com>
9861
9862 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9863 argument.
9864 (target_disable_tracepoint): Add argument.
9865 * target.c (update_current_target): Update.
9866 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9867
9868 2014-02-19 Tom Tromey <tromey@redhat.com>
9869
9870 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9871 argument.
9872 (target_enable_tracepoint): Add argument.
9873 * target.c (update_current_target): Update.
9874 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9875
9876 2014-02-19 Tom Tromey <tromey@redhat.com>
9877
9878 * target.h (struct target_ops) <to_download_trace_state_variable>:
9879 Add argument.
9880 (target_download_trace_state_variable): Add argument.
9881 * target.c (update_current_target): Update.
9882 * remote.c (remote_download_trace_state_variable): Add 'self'
9883 argument.
9884
9885 2014-02-19 Tom Tromey <tromey@redhat.com>
9886
9887 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9888 argument.
9889 (target_can_download_tracepoint): Add argument.
9890 * target.c (update_current_target): Update.
9891 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9892
9893 2014-02-19 Tom Tromey <tromey@redhat.com>
9894
9895 * target.h (struct target_ops) <to_download_tracepoint>: Add
9896 argument.
9897 (target_download_tracepoint): Add argument.
9898 * target.c (update_current_target): Update.
9899 * remote.c (remote_download_tracepoint): Add 'self' argument.
9900
9901 2014-02-19 Tom Tromey <tromey@redhat.com>
9902
9903 * target.h (struct target_ops) <to_trace_init>: Add argument.
9904 (target_trace_init): Add argument.
9905 * target.c (update_current_target): Update.
9906 * remote.c (remote_trace_init): Add 'self' argument.
9907
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9909
9910 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9911 * target.c (target_fileio_readlink): Add argument.
9912 * remote.c (remote_hostio_readlink): Add 'self' argument.
9913 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9914
9915 2014-02-19 Tom Tromey <tromey@redhat.com>
9916
9917 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9918 * target.c (target_fileio_unlink): Add argument.
9919 * remote.c (remote_hostio_unlink): Add 'self' argument.
9920 (remote_file_delete): Update.
9921 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9922
9923 2014-02-19 Tom Tromey <tromey@redhat.com>
9924
9925 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9926 * target.c (target_fileio_close): Add argument.
9927 * remote.c (remote_hostio_close): Add 'self' argument.
9928 (remote_hostio_close_cleanup): Update.
9929 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9930 Update.
9931 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9932
9933 2014-02-19 Tom Tromey <tromey@redhat.com>
9934
9935 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9936 * target.c (target_fileio_pread): Add argument.
9937 * remote.c (remote_hostio_pread): Add 'self' argument.
9938 (remote_bfd_iovec_pread, remote_file_get): Update.
9939 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9940
9941 2014-02-19 Tom Tromey <tromey@redhat.com>
9942
9943 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9944 * target.c (target_fileio_pwrite): Add argument.
9945 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9946 (remote_file_put): Update.
9947 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9948
9949 2014-02-19 Tom Tromey <tromey@redhat.com>
9950
9951 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9952 * target.c (target_fileio_open): Add argument.
9953 * remote.c (remote_hostio_open): Add 'self' argument.
9954 (remote_bfd_iovec_open): Add 'self' argument.
9955 (remote_file_put): Add 'self' argument.
9956 (remote_file_get): Add 'self' argument.
9957 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9958
9959 2014-02-19 Tom Tromey <tromey@redhat.com>
9960
9961 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9962 Add argument.
9963 (target_can_run_breakpoint_commands): Add argument.
9964 * target.c (update_current_target): Update.
9965 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9966 argument.
9967 (remote_insert_breakpoint): Add 'self' argument.
9968 (remote_insert_hw_breakpoint): Add 'self' argument.
9969 (remote_can_run_breakpoint_commands): Add 'self' argument.
9970
9971 2014-02-19 Tom Tromey <tromey@redhat.com>
9972
9973 * target.h (struct target_ops)
9974 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9975 (target_supports_evaluation_of_breakpoint_conditions): Add
9976 argument.
9977 * target.c (update_current_target): Update.
9978 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9979 argument.
9980 (remote_insert_breakpoint): Add 'self' argument.
9981 (remote_insert_hw_breakpoint): Add 'self' argument.
9982 (remote_supports_cond_breakpoints): Add 'self' argument.
9983
9984 2014-02-19 Tom Tromey <tromey@redhat.com>
9985
9986 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9987 argument.
9988 (target_supports_string_tracing): Add argument.
9989 * target.c (update_current_target): Update.
9990 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9991
9992 2014-02-19 Tom Tromey <tromey@redhat.com>
9993
9994 * target.h (struct target_ops)
9995 <to_supports_disable_randomization>: Add argument.
9996 * target.c (find_default_supports_disable_randomization): Add
9997 argument.
9998 (target_supports_disable_randomization): Add argument.
9999 (find_default_supports_disable_randomization): Add 'self'
10000 argument.
10001 * remote.c (extended_remote_supports_disable_randomization): Add
10002 'self' argument.
10003 (remote_supports_disable_randomization): Add 'self' argument.
10004 (extended_remote_create_inferior): Update.
10005 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10006 'self' argument.
10007
10008 2014-02-19 Tom Tromey <tromey@redhat.com>
10009
10010 * target.h (struct target_ops)
10011 <to_supports_enable_disable_tracepoint>: Add argument.
10012 (target_supports_enable_disable_tracepoint): Add argument.
10013 * target.c (update_current_target): Update.
10014 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10015 argument.
10016
10017 2014-02-19 Tom Tromey <tromey@redhat.com>
10018
10019 * target.h (struct target_ops) <to_supports_multi_process>: Add
10020 argument.
10021 (target_supports_multi_process): Add argument.
10022 * target.c (update_current_target): Update.
10023 * remote.c (remote_supports_multi_process): Add 'self' argument.
10024 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10025 argument.
10026 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10027 argument.
10028
10029 2014-02-19 Tom Tromey <tromey@redhat.com>
10030
10031 * target.h (struct target_ops) <to_execution_direction>: Add
10032 argument.
10033 (target_execution_direction): Add argument.
10034 * target.c (default_execution_direction): Add 'self' argument.
10035 * record-full.c (record_full_execution_direction): Add 'self'
10036 argument.
10037
10038 2014-02-19 Tom Tromey <tromey@redhat.com>
10039
10040 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10041 argument.
10042 (target_can_execute_reverse): Add argument.
10043 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10044 * record-full.c (record_full_can_execute_reverse): Add 'self'
10045 argument.
10046 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10047 argument.
10048
10049 2014-02-19 Tom Tromey <tromey@redhat.com>
10050
10051 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10052 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10053 argument.
10054 (target_get_ada_task_ptid): Add argument.
10055 * target.c (update_current_target): Update.
10056 (default_get_ada_task_ptid): Add 'self' argument.
10057 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10058 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10059 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10060 argument.
10061 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10062 argument.
10063 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10064 argument.
10065 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10066 argument.
10067 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10068 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10069 argument.
10070
10071 2014-02-19 Tom Tromey <tromey@redhat.com>
10072
10073 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10074 (target_goto_bookmark): Add argument.
10075 * target.c (dummy_goto_bookmark): Add 'self' argument.
10076 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10077
10078 2014-02-19 Tom Tromey <tromey@redhat.com>
10079
10080 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10081 (target_get_bookmark): Add argument.
10082 * target.c (dummy_get_bookmark): Add 'self' argument.
10083 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10084
10085 2014-02-19 Tom Tromey <tromey@redhat.com>
10086
10087 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10088 argument.
10089 (target_make_corefile_notes): Add argument.
10090 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10091 * procfs.c (procfs_make_note_section): Add 'self' argument.
10092 (procfs_make_note_section): Add 'self' argument.
10093 (procfs_make_note_section): Add 'self' argument.
10094 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10095 argument.
10096 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10097 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10098 * exec.c (exec_make_note_section): Add 'self' argument.
10099 (exec_make_note_section): Add 'self' argument.
10100
10101 2014-02-19 Tom Tromey <tromey@redhat.com>
10102
10103 * target.h (struct target_ops) <to_find_memory_regions>: Add
10104 argument.
10105 (target_find_memory_regions): Add argument.
10106 * target.c (dummy_find_memory_regions): Add 'self' argument.
10107 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10108 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10109 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10110 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10111 * exec. (exec_do_find_memory_regions): New global.
10112 (exec_set_find_memory_regions): Rewrite.
10113 (exec_find_memory_regions): New function.
10114 (init_exec_ops): Use exec_find_memory_regions.
10115
10116 2014-02-19 Tom Tromey <tromey@redhat.com>
10117
10118 * target.h (struct target_ops) <to_supports_non_stop>: Add
10119 argument.
10120 * target.c (find_default_supports_non_stop): Add argument.
10121 (target_supports_non_stop): Add argument.
10122 (find_default_supports_non_stop): Add 'self' argument.
10123 * remote.c (remote_supports_non_stop): Add 'self' argument.
10124 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10125
10126 2014-02-19 Tom Tromey <tromey@redhat.com>
10127
10128 * target.h (struct target_ops) <to_log_command>: Add argument.
10129 (target_log_command): Add argument.
10130 * serial.h (serial_log_command): Add 'self' argument.
10131 * serial.c (serial_log_command): Add 'self' argument.
10132
10133 2014-02-19 Tom Tromey <tromey@redhat.com>
10134
10135 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10136 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10137 argument.
10138 (target_pid_to_exec_file): Add argument.
10139 * target.c (debug_to_pid_to_exec_file): Add argument.
10140 (update_current_target): Update.
10141 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10142 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10143 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10144 (linux_handle_extended_wait): Update.
10145 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10146 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10147 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10148 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10149
10150 2014-02-19 Tom Tromey <tromey@redhat.com>
10151
10152 * target.h (struct target_ops) <to_rcmd>: Add argument.
10153 (target_rcmd): Add argument.
10154 * target.c (debug_to_rcmd): Add argument.
10155 (update_current_target, do_monitor_command): Update.
10156 * remote.c (remote_rcmd): Add 'self' argument.
10157 * monitor.c (monitor_rcmd): Add 'self' argument.
10158
10159 2014-02-19 Tom Tromey <tromey@redhat.com>
10160
10161 * windows-nat.c (windows_stop): Add 'self' argument.
10162 * target.h (struct target_ops) <to_stop>: Add argument.
10163 * target.c (target_stop): Add argument.
10164 (debug_to_stop): Add argument.
10165 (update_current_target): Update.
10166 * remote.c (remote_stop): Add 'self' argument.
10167 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10168 (gdbsim_cntrl_c): Update.
10169 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10170 * procfs.c (procfs_stop): Add 'self' argument.
10171 * nto-procfs.c (procfs_stop): Add 'self' argument.
10172 * monitor.c (monitor_stop): Add 'self' argument.
10173 (monitor_open): Update.
10174 * linux-nat.c (linux_nat_stop): Add argument.
10175 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10176 * gnu-nat.c (gnu_stop): Add 'self' argument.
10177 * darwin-nat.c (darwin_stop): Add 'self' argument.
10178
10179 2014-02-19 Tom Tromey <tromey@redhat.com>
10180
10181 * target.h (struct target_ops) <to_thread_name>: Add argument.
10182 * target.c (target_thread_name): Add argument.
10183 (update_current_target): Update.
10184 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10185
10186 2014-02-19 Tom Tromey <tromey@redhat.com>
10187
10188 * target.h (struct target_ops) <to_extra_thread_info>: Add
10189 argument.
10190 (target_extra_thread_info): Add argument.
10191 * target.c (update_current_target): Update.
10192 * remote.c (remote_threads_extra_info): Add 'self' argument.
10193 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10194 argument.
10195 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10196 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10197 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10198 argument.
10199 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10200 argument.
10201 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10202 argument.
10203 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10204 argument.
10205
10206 2014-02-19 Tom Tromey <tromey@redhat.com>
10207
10208 * target.h (struct target_ops) <to_program_signals>: Add argument.
10209 * target.c (target_program_signals): Add argument.
10210 * remote.c (remote_program_signals): Add 'self' argument.
10211
10212 2014-02-19 Tom Tromey <tromey@redhat.com>
10213
10214 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10215 * target.c (target_pass_signals): Add argument.
10216 * remote.c (remote_pass_signals): Add 'self' argument.
10217 (remote_start_remote): Update.
10218 * procfs.c (procfs_pass_signals): Add 'self' argument.
10219 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10220 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10221 (linux_nat_create_inferior, linux_nat_attach): Update.
10222
10223 2014-02-19 Tom Tromey <tromey@redhat.com>
10224
10225 * windows-nat.c (windows_can_run): Add 'self' argument.
10226 * target.h (struct target_ops) <to_can_run>: Add argument.
10227 (target_can_run): Add argument.
10228 * target.c (debug_to_can_run): Add argument.
10229 (update_current_target): Update.
10230 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10231 * inf-child.c (inf_child_can_run): Add 'self' argument.
10232 * go32-nat.c (go32_can_run): Add 'self' argument.
10233
10234 2014-02-19 Tom Tromey <tromey@redhat.com>
10235
10236 * target.h (struct target_ops) <to_has_exited>: Add argument.
10237 (target_has_exited): Add argument.
10238 * target.c (debug_to_has_exited): Add argument.
10239 (update_current_target): Update.
10240
10241 2014-02-19 Tom Tromey <tromey@redhat.com>
10242
10243 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10244 argument.
10245 (target_set_syscall_catchpoint): Add argument.
10246 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10247 argument.
10248 * target.c (update_current_target): Update.
10249
10250 2014-02-19 Tom Tromey <tromey@redhat.com>
10251
10252 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10253 argument.
10254 (target_remove_exec_catchpoint): Add argument.
10255 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10256 (update_current_target): Update.
10257 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10258 argument.
10259
10260 2014-02-19 Tom Tromey <tromey@redhat.com>
10261
10262 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10263 argument.
10264 (target_insert_exec_catchpoint): Add argument.
10265 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10266 (update_current_target): Update.
10267 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10268 argument.
10269
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10271
10272 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10273 argument.
10274 (target_remove_vfork_catchpoint): Add argument.
10275 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10276 (update_current_target): Update.
10277 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10278 argument.
10279
10280 2014-02-19 Tom Tromey <tromey@redhat.com>
10281
10282 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10283 argument.
10284 (target_insert_vfork_catchpoint): Add argument.
10285 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10286 (update_current_target): Update.
10287 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10288 argument.
10289
10290 2014-02-19 Tom Tromey <tromey@redhat.com>
10291
10292 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10293 argument.
10294 (target_remove_fork_catchpoint): Add argument.
10295 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10296 (update_current_target): Update.
10297 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10298 argument.
10299
10300 2014-02-19 Tom Tromey <tromey@redhat.com>
10301
10302 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10303 argument.
10304 (target_insert_fork_catchpoint): Add argument.
10305 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10306 (update_current_target): Update.
10307 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10308 argument.
10309
10310 2014-02-19 Tom Tromey <tromey@redhat.com>
10311
10312 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10313 argument.
10314 (target_post_startup_inferior): Add argument.
10315 * target.c (debug_to_post_startup_inferior): Add argument.
10316 (update_current_target): Update.
10317 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10318 argument.
10319 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10320 argument.
10321 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10322 argument.
10323 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10324 argument.
10325 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10326 'self' argument.
10327 (super_post_startup_inferior): Likewise.
10328 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10329 'self' argument.
10330 (super_post_startup_inferior): Likewise.
10331 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10332 Add 'self' argument.
10333 (super_post_startup_inferior): Likewise.
10334
10335 2014-02-19 Tom Tromey <tromey@redhat.com>
10336
10337 * target.h (struct target_ops) <to_load>: Add argument.
10338 * target.c (target_load): Add argument.
10339 (debug_to_load): Add argument.
10340 (update_current_target): Update.
10341 * remote.c (remote_load): Add 'self' argument.
10342 * remote-sim.c (gdbsim_load): Add 'self' argument.
10343 * remote-mips.c (mips_load): Add 'self' argument.
10344 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10345 * monitor.c (monitor_load): Add 'self' argument.
10346 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10347
10348 2014-02-19 Tom Tromey <tromey@redhat.com>
10349
10350 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10351 (target_terminal_info): Add argument.
10352 * target.c (debug_to_terminal_info): Add argument.
10353 (default_terminal_info): Likewise.
10354 * inflow.c (child_terminal_info): Add 'self' argument.
10355 * inferior.h (child_terminal_info): Add 'self' argument.
10356 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10357
10358 2014-02-19 Tom Tromey <tromey@redhat.com>
10359
10360 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10361 argument.
10362 (target_terminal_save_ours): Add argument.
10363 * target.c (debug_to_terminal_save_ours): Add argument.
10364 (update_current_target): Update.
10365 * inflow.c (terminal_save_ours): Add 'self' argument.
10366 * inferior.h (terminal_save_ours): Add 'self' argument.
10367
10368 2014-02-19 Tom Tromey <tromey@redhat.com>
10369
10370 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10371 (target_terminal_ours): Add argument.
10372 * target.c (debug_to_terminal_ours): Add argument.
10373 (update_current_target): Update.
10374 * remote.c (remote_terminal_ours): Add 'self' argument.
10375 (remote_close): Update.
10376 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10377 * inflow.c (terminal_ours): Add 'self' argument.
10378 * inferior.h (terminal_ours): Add 'self' argument.
10379 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10380
10381 2014-02-19 Pedro Alves <palves@redhat.com>
10382 Tom Tromey <tromey@redhat.com>
10383
10384 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10385 argument.
10386 (target_terminal_ours_for_output): Add argument.
10387 * target.c (debug_to_terminal_ours_for_output): Add argument.
10388 (update_current_target): Update.
10389 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10390 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10391 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10392
10393 2014-02-19 Tom Tromey <tromey@redhat.com>
10394
10395 * target.h (struct target_ops) <to_terminal_inferior>: Add
10396 argument.
10397 * target.c (target_terminal_inferior): Add argument.
10398 (update_current_target): Update.
10399 * remote.c (remote_terminal_inferior): Add 'self' argument.
10400 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10401 * inflow.c (terminal_inferior): Add 'self' argument.
10402 * inferior.h (terminal_inferior): Add 'self' argument.
10403 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10404 (go32_terminal_inferior): Add 'self' argument.
10405
10406 2014-02-19 Tom Tromey <tromey@redhat.com>
10407
10408 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10409 (target_terminal_init): Add argument.
10410 * target.c (debug_to_terminal_init): Add argument.
10411 (update_current_target): Update.
10412 * inflow.c (terminal_init_inferior): Add 'self' argument.
10413 * inferior.h (terminal_init_inferior): Add 'self' argument.
10414 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10415 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10416
10417 2014-02-19 Tom Tromey <tromey@redhat.com>
10418
10419 * target.h (struct target_ops)
10420 <to_can_accel_watchpoint_condition>: Add argument.
10421 (target_can_accel_watchpoint_condition): Add argument.
10422 * target.c (debug_to_can_accel_watchpoint_condition): Add
10423 argument.
10424 (update_current_target): Update.
10425 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10426 'self' argument.
10427
10428 2014-02-19 Tom Tromey <tromey@redhat.com>
10429
10430 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10431 Add argument.
10432 (target_region_ok_for_hw_watchpoint): Add argument.
10433 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10434 (default_region_ok_for_hw_watchpoint): Add argument.
10435 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10436 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10437 argument.
10438 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10439 argument.
10440 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10441 argument.
10442 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10443 'self' argument.
10444 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10445 'self' argument.
10446 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10447 'self' argument.
10448 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10449 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10450 'self' argument.
10451 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10452 Add 'self' argument.
10453
10454 2014-02-19 Tom Tromey <tromey@redhat.com>
10455
10456 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10457 argument.
10458 (target_insert_watchpoint): Add argument.
10459 * target.c (debug_to_insert_watchpoint): Add argument.
10460 (update_current_target): Update.
10461 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10462 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10463 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10464 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10465 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10466 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10467 argument.
10468 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10469 (procfs_insert_hw_watchpoint): Add 'self' argument.
10470 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10471 argument.
10472 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10473 argument.
10474 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10475 argument.
10476 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10477 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10478 argument.
10479 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10480 'self' argument.
10481
10482 2014-02-19 Tom Tromey <tromey@redhat.com>
10483
10484 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10485 argument.
10486 (target_remove_watchpoint): Add argument.
10487 * target.c (debug_to_remove_watchpoint): Add argument.
10488 (update_current_target): Update.
10489 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10490 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10491 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10492 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10493 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10494 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10495 argument.
10496 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10497 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10498 argument.
10499 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10500 argument.
10501 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10502 argument.
10503 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10504 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10505 argument.
10506 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10507 'self' argument.
10508
10509 2014-02-19 Tom Tromey <tromey@redhat.com>
10510
10511 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10512 argument.
10513 (target_remove_hw_breakpoint): Add argument.
10514 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10515 (update_current_target): Update.
10516 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10517 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10518 argument.
10519 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10520 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10521 argument.
10522 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10523 'self' argument.
10524
10525 2014-02-19 Tom Tromey <tromey@redhat.com>
10526
10527 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10528 argument.
10529 (target_insert_hw_breakpoint): Add argument.
10530 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10531 (update_current_target): Update.
10532 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10533 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10534 argument.
10535 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10536 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10537 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10538 argument.
10539 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10540 'self' argument.
10541
10542 2014-02-19 Tom Tromey <tromey@redhat.com>
10543
10544 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10545 argument.
10546 (target_can_use_hardware_watchpoint): Add argument.
10547 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10548 (update_current_target): Update.
10549 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10550 argument.
10551 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10552 argument.
10553 * remote.c (remote_check_watch_resources): Add 'self' argument.
10554 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10555 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10556 argument.
10557 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10558 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10559 argument.
10560 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10561 argument.
10562 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10563 argument.
10564 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10565 argument.
10566 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10567 argument.
10568 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10569 argument.
10570 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10571 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10572 argument.
10573 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10574 'self' argument.
10575
10576 2014-02-19 Tom Tromey <tromey@redhat.com>
10577
10578 * target.h (struct target_ops) <to_post_attach>: Add argument.
10579 (target_post_attach): Add argument.
10580 * target.c (debug_to_post_attach): Add argument.
10581 (update_current_target): Update.
10582 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10583 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10584 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10585 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10586 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10587
10588 2014-02-19 Tom Tromey <tromey@redhat.com>
10589
10590 * windows-nat.c (windows_close): Add 'self' argument.
10591 * tracepoint.c (tfile_close): Add 'self' argument.
10592 * target.h (struct target_ops) <to_close>: Add argument.
10593 * target.c (target_close): Add argument.
10594 (update_current_target): Update.
10595 * remote.c (remote_close): Add 'self' argument.
10596 * remote-sim.c (gdbsim_close): Add 'self' argument.
10597 * remote-mips.c (mips_close): Add 'self' argument.
10598 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10599 * record-full.c (record_full_close): Add 'self' argument.
10600 * record-btrace.c (record_btrace_close): Add 'self' argument.
10601 * monitor.h (monitor_close): Add 'self' argument.
10602 * monitor.c (monitor_close): Add 'self' argument.
10603 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10604 * linux-nat.c (linux_nat_close): Add argument.
10605 * go32-nat.c (go32_close): Add 'self' argument.
10606 * exec.c (exec_close_1): Add 'self' argument.
10607 * ctf.c (ctf_close): Add 'self' argument.
10608 * corelow.c (core_close): Add 'self' argument.
10609 (core_close_cleanup): Update.
10610 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10611 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10612
10613 2014-02-19 Tom Tromey <tromey@redhat.com>
10614
10615 * remote.c (remote_load): New function.
10616 (init_remote_ops): Use it.
10617
10618 2014-02-19 Tom Tromey <tromey@redhat.com>
10619
10620 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10621 argument.
10622 * common/linux-btrace.h (linux_supports_btrace): Update.
10623 * remote.c (remote_supports_btrace): Add "self" argument.
10624 * target-delegates.c: Rebuild.
10625 * target.c (target_supports_btrace): Remove.
10626 * target.h (struct target_ops) <to_supports_btrace>: Add
10627 target_ops argument.
10628 (target_supports_btrace): New define.
10629
10630 2014-02-19 Tom Tromey <tromey@redhat.com>
10631
10632 * record-full.c (record_full_beneath_to_resume_ops)
10633 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10634 (record_full_beneath_to_wait)
10635 (record_full_beneath_to_store_registers_ops)
10636 (record_full_beneath_to_store_registers)
10637 (record_full_beneath_to_xfer_partial_ops)
10638 (record_full_beneath_to_xfer_partial)
10639 (record_full_beneath_to_insert_breakpoint_ops)
10640 (record_full_beneath_to_insert_breakpoint)
10641 (record_full_beneath_to_remove_breakpoint_ops)
10642 (record_full_beneath_to_remove_breakpoint)
10643 (record_full_beneath_to_stopped_by_watchpoint)
10644 (record_full_beneath_to_stopped_data_address)
10645 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10646 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10647 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10648 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10649 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10650 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10651 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10652 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10653 (record_full_resume, record_full_wait_1)
10654 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10655 (record_full_store_registers, record_full_xfer_partial)
10656 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10657 (record_full_async, record_full_core_xfer_partial): Use target
10658 delegation.
10659 * target-delegates.c: Rebuild.
10660 * target.c (current_xfer_partial): Remove.
10661 (update_current_target): Do not INHERIT or de_fault
10662 to_insert_breakpoint, to_remove_breakpoint,
10663 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10664 to_is_async_p, to_async. Do not set to_xfer_partial field.
10665 (default_xfer_partial): Simplify.
10666 (current_xfer_partial): Remove.
10667 (target_wait, target_resume): Simplify.
10668 (find_default_can_async_p, find_default_is_async_p): Update.
10669 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10670 to_xfer_partial, to_stopped_by_watchpoint,
10671 to_stopped_data_address.
10672 (target_store_registers): Simplify.
10673 (forward_target_remove_breakpoint)
10674 (forward_target_insert_breakpoint): Remove.
10675 (target_remove_breakpoint, target_insert_breakpoint)
10676 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10677 * target.h (struct target_ops) <to_resume, to_wait,
10678 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10679 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10680 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10681 markup.
10682 (forward_target_remove_breakpoint)
10683 (forward_target_insert_breakpoint): Remove.
10684 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10685 directly.
10686 (record_btrace_insert_breakpoint): Delegate directly.
10687
10688 2014-02-19 Tom Tromey <tromey@redhat.com>
10689
10690 PR build/7701:
10691 * target-delegates.c: New file.
10692 * target.c: Include target-delegates.c.
10693 (init_dummy_target): Call install_dummy_methods.
10694 (complete_target_initialization): Call install_delegators.
10695 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10696 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10697 * make-target-delegates: New file.
10698
10699 2014-02-19 Tom Tromey <tromey@redhat.com>
10700
10701 * record.c (find_record_target): Use find_target_at.
10702 * target.c (find_target_at): New function.
10703 * target.h (find_target_at): Declare.
10704
10705 2014-02-19 Tom Tromey <tromey@redhat.com>
10706
10707 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10708 Add 'ops' argument.
10709 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10710 'ops' argument.
10711 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10712 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10713 'ops' argument.
10714 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10715 argument.
10716 * linux-nat.c (save_sigtrap): Update.
10717 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10718 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10719 (linux_nat_close): Update.
10720 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10721 argument.
10722 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10723 argument.
10724 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10725 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10726 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10727 (tmp_to_async): Add 'ops' argument.
10728 (record_full_stopped_by_watchpoint, record_full_async)
10729 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10730 argument.
10731 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10732 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10733 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10734 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10735 (remote_is_async_p, remote_async): Add 'ops' argument.
10736 (remote_stopped_data_address): Update.
10737 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10738 * target.c (update_current_target)
10739 (find_default_can_async_p, find_default_is_async_p): Update.
10740 (init_dummy_target): Update.
10741 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10742 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10743 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10744 (target_can_async_p, target_is_async_p, target_async)
10745 (target_stopped_by_watchpoint): Update.
10746
10747 2014-02-19 Yao Qi <yao@codesourcery.com>
10748
10749 PR gdb/16220
10750 * gdbarch.sh: Remove startup_gdbarch.
10751 * gdbarch.c: Regenerated.
10752 * gdbarch.h: Likewise.
10753
10754 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10755
10756 * rl78-tdep.c (rl78_g10_register_name): New function.
10757 (rl78_return_value): Add g10 support.
10758 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10759 g10.
10760
10761 2014-02-17 Doug Evans <xdje42@gmail.com>
10762
10763 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10764 (SUBDIR_GUILE_SRCS): Ditto.
10765 (scm-gsmob.o): Ditto.
10766
10767 2014-02-17 Yao Qi <yao@codesourcery.com>
10768
10769 * gnu-nat.c (ILL_RPC): Declare defined function.
10770
10771 2014-02-17 Yao Qi <yao@codesourcery.com>
10772
10773 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10774 mach_msg_type_number_t.
10775 (gnu_write_inferior): Likewise.
10776
10777 2014-02-17 Yao Qi <yao@codesourcery.com>
10778
10779 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10780 in format string.
10781 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10782 (inf_validate_procs, inf_signal): Likewise.
10783 (S_exception_raise_request): Likewise.
10784 (do_mach_notify_dead_name): Likewise.
10785 (steal_exc_port): Likewise.
10786 (gnu_read_inferior): Change 'copy_count''s type to
10787 mach_msg_type_number_t.
10788 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10789 format string.
10790
10791 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10792
10793 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10794 flag. Adjust all users; in particular...
10795 (gnu_wait): ..., don't decrement its value in here...
10796 (gnu_create_inferior): ..., and instead set the flag in here,
10797 around the startup_inferior call, and call that one with
10798 START_INFERIOR_TRAPS_EXPECTED.
10799
10800 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10801 (ILL_RPC): ... new macro.
10802 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10803 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10804 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10805 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10806 functions with ILL_RPC macro.
10807 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10808 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10809 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10810 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10811 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10812 (S_proc_getlogin_reply, S_proc_getsid_reply)
10813 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10814 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10815 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10816 (S_proc_getnports_reply, S_proc_is_important_reply)
10817 (S_proc_get_code_reply): New stub functions, generated with
10818 ILL_RPC macro.
10819
10820 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10821 collected the type check structures.
10822
10823 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10824
10825 2014-02-14 Doug Evans <dje@google.com>
10826
10827 * target.c (target_write_partial): Fix result type.
10828
10829 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10830
10831 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10832 the proper offsets to access fpregset_t.
10833
10834 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10835
10836 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10837 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10838 * h8300-tdep.c (setmachinelist): Remove global.
10839 * hppa-tdep.c (hppa_sigtramp): Remove global.
10840 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10841 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10842 * ravenscar-thread.c (update_target_observer): Remove global.
10843 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10844
10845 2014-02-12 Tom Tromey <tromey@redhat.com>
10846
10847 * common/rsp-low.c: Update comments.
10848 * common/rsp-low.h: Update comments.
10849
10850 2014-02-12 Tom Tromey <tromey@redhat.com>
10851
10852 * common/rsp-low.c (convert_ascii_to_int): Remove.
10853 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10854
10855 2014-02-12 Tom Tromey <tromey@redhat.com>
10856
10857 * common/rsp-low.h (unhexify): Don't declare.
10858 * common/rsp-low.c (unhexify): Remove.
10859
10860 2014-02-12 Tom Tromey <tromey@redhat.com>
10861
10862 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10863 * common/rsp-low.c (convert_int_to_ascii): Remove.
10864
10865 2014-02-12 Tom Tromey <tromey@redhat.com>
10866
10867 * common/rsp-low.h (hexify): Don't declare.
10868 * common/rsp-low.c (hexify): Remove.
10869
10870 2014-02-12 Tom Tromey <tromey@redhat.com>
10871
10872 * common/rsp-low.c (hexify): Never take strlen of argument.
10873
10874 2014-02-12 Tom Tromey <tromey@redhat.com>
10875
10876 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10877 * remote.c (extended_remote_run, remote_rcmd)
10878 (remote_download_trace_state_variable, remote_save_trace_data)
10879 (remote_set_trace_notes): Update.
10880 * tracepoint.c (encode_source_string, tfile_write_status)
10881 (tfile_write_uploaded_tsv): Update.
10882
10883 2014-02-12 Tom Tromey <tromey@redhat.com>
10884
10885 * tracepoint.c: Include rsp-low.h.
10886 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10887 * remote.c: Include rsp-low.h.
10888 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10889 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10890 (remote_unescape_input): Move to common/rsp-low.c.
10891 * common/rsp-low.h: New file.
10892 * common/rsp-low.c: New file.
10893 * Makefile.in (SFILES): Add common/rsp-low.c.
10894 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10895 (COMMON_OBS): Add rsp-low.o.
10896 (rsp-low.o): New target.
10897
10898 2014-02-12 Tom Tromey <tromey@redhat.com>
10899
10900 * utils.h: Include print-utils.h.
10901 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10902 (int_string, core_addr_to_string, core_addr_to_string_nz)
10903 (hex_string, hex_string_custom): Don't declare.
10904 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10905 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10906 (hex_string_custom, int_string, core_addr_to_string)
10907 (core_addr_to_string_nz, host_address_to_string): Move to
10908 common/print-utils.c.
10909 * common/print-utils.h: New file.
10910 * common/print-utils.c: New file
10911 * Makefile.in (SFILES): Add common/print-utils.c.
10912 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10913 (COMMON_OBS): Add print-utils.o.
10914 (print-utils.o): New target.
10915
10916 2014-02-12 Tom Tromey <tromey@redhat.com>
10917
10918 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10919
10920 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10921
10922 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10923
10924 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10925
10926 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10927 if a PT_IO ptrace request returns sucessfully but indicates that 0
10928 bytes were transferred.
10929
10930 2014-02-12 Pedro Alves <palves@redhat.com>
10931 Kevin Buettner <kevinb@redhat.com>
10932
10933 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10934 TYPE_INSTANCE_FLAG_CODE_SPACE.
10935
10936 2014-02-12 Pedro Alves <palves@redhat.com>
10937
10938 * h8300-tdep.c (pseudo_from_raw_register)
10939 (raw_from_pseudo_register): New functions.
10940 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10941 them.
10942
10943 2014-02-12 Pedro Alves <palves@redhat.com>
10944
10945 * h8300-tdep.c (h8300_register_sim_regno): New function.
10946 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10947 gdbarch_register_sim_regno hook.
10948
10949 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10950
10951 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10952
10953 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10954
10955 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10956
10957 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10958
10959 * obsd-tdep.h (obsd_init_abi): New prototype.
10960 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10961 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10962 (obsd_init_abi): New functions.
10963 * i386obsd-tdep.c: Include "obsd-tdep.h".
10964 (i386obsd_init_abi): Call obsd_init_abi.
10965 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10966 (amd64obsd_init_abi): Call obsd_init_abi.
10967 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10968 obsd-tdep.c to gdb_target_obs.
10969
10970 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10971
10972 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10973 double float arguments to 16-byte in the argument slots.
10974
10975 2014-02-11 Doug Evans <xdje42@gmail.com>
10976
10977 * configure.ac: Don't crash if pkg-config is not found and guile
10978 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10979 in guile checks.
10980 * configure: Regenerate.
10981
10982 2014-02-11 Yao Qi <yao@codesourcery.com>
10983
10984 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10985 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10986 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10987 * gnu-nat.c (gnu_xfer_memory): Likewise.
10988 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10989 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10990 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10991 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10992
10993 2014-02-11 Yao Qi <yao@codesourcery.com>
10994
10995 * target.h (enum target_xfer_error): Rename to ...
10996 (enum target_xfer_status): ... it. New. All users updated.
10997 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10998 New.
10999 (TARGET_XFER_STATUS_ERROR_P): New macro.
11000 (target_xfer_error_to_string): Remove declaration.
11001 (target_xfer_status_to_string): Declare.
11002 (target_xfer_partial_ftype): Adjust it.
11003 (struct target_ops) <to_xfer_partial>: Return
11004 target_xfer_status. Add argument xfered_len. Update
11005 comments.
11006 * target.c (target_xfer_error_to_string): Rename to ...
11007 (target_xfer_status_to_string): ... it. New. All callers
11008 updated.
11009 (target_read_live_memory): Likewise. Call target_xfer_partial
11010 instead of target_read.
11011 (memory_xfer_live_readonly_partial): Return
11012 target_xfer_status. Add argument xfered_len.
11013 (raw_memory_xfer_partial): Likewise.
11014 (memory_xfer_partial_1): Likewise.
11015 (memory_xfer_partial): Likewise.
11016 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11017 properly. Update debug message.
11018 (default_xfer_partial, current_xfer_partial): Likewise.
11019 (target_write_partial): Likewise.
11020 (target_read_partial): Likewise. All callers updated.
11021 (read_whatever_is_readable): Likewise.
11022 (target_write_with_progress): Likewise.
11023 (target_read_alloc_1): Likewise.
11024
11025 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11026 * auxv.c (procfs_xfer_auxv): Likewise.
11027 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11028 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11029 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11030 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11031 * corefile.c (read_memory): Adjust.
11032 * corelow.c (core_xfer_partial): Likewise.
11033 * ctf.c (ctf_xfer_partial): Likewise.
11034 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11035 updated.
11036 (darwin_xfer_partial): Likewise.
11037 * exec.c (section_table_xfer_memory_partial): Likewise. All
11038 callers updated.
11039 (exec_xfer_partial): Likewise.
11040 * exec.h (section_table_xfer_memory_partial): Update
11041 declaration.
11042 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11043 negative.
11044 (gnu_xfer_partial): Likewise.
11045 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11046 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11047 (ia64_hpux_xfer_solib_got): Likewise.
11048 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11049 type of 'partial_len' to ULONGEST.
11050 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11051 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11052 (linux_nat_xfer_partial): Likewise.
11053 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11054 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11055 * monitor.c (monitor_xfer_memory): Likewise.
11056 (monitor_xfer_partial): Likewise.
11057 * procfs.c (procfs_xfer_partial): Likewise.
11058 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11059 * record-full.c (record_full_xfer_partial): Likewise.
11060 (record_full_core_xfer_partial): Likewise.
11061 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11062 (gdbsim_xfer_partial): Likewise.
11063 * remote.c (remote_write_bytes_aux): Likewise. All callers
11064 updated.
11065 (remote_write_bytes, remote_read_bytes): Likewise. All
11066 callers updated.
11067 (remote_flash_erase): Likewise. All callers updated.
11068 (remote_write_qxfer): Likewise. All callers updated.
11069 (remote_read_qxfer): Likewise. All callers updated.
11070 (remote_xfer_partial): Likewise.
11071 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11072 (rs6000_xfer_shared_libraries): Likewise.
11073 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11074 (sol_thread_xfer_partial): Likewise.
11075 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11076 (sparc_xfer_partial): Likewise.
11077 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11078 updated.
11079 (spu_xfer_partial): Likewise.
11080 * spu-multiarch.c (spu_xfer_partial): Likewise.
11081 * tracepoint.c (tfile_xfer_partial): Likewise.
11082 * windows-nat.c (windows_xfer_memory): Likewise.
11083 (windows_xfer_shared_libraries): Likewise.
11084 (windows_xfer_partial): Likewise.
11085 * valprint.c: Replace 'target_xfer_error' with
11086 'target_xfer_status' in comments.
11087
11088 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11089
11090 Checked in by Joel Brobecker <brobecker@adacore.com>.
11091 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11092
11093 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11094
11095 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11096 function parameters.
11097
11098 2014-02-10 Will Newton <will.newton@linaro.org>
11099
11100 * elfread.c (elf_rel_plt_read): Look for a .got section if
11101 looking up .got.plt fails.
11102 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11103 on address passed to elf_gnu_ifunc_record_cache.
11104 (elf_gnu_ifunc_resolve_addr): Likewise.
11105 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11106
11107 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11108
11109 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11110 (X_RETTURN): New macro.
11111 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11112
11113 * sparc64-tdep.c (sparc64_init_abi): Hook
11114 sparc_in_function_epilogue_p.
11115
11116 2014-02-10 Gary Benson <gbenson@redhat.com>
11117
11118 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11119 Rename name_matcher to symbol_matcher.
11120
11121 2014-02-10 Gary Benson <gbenson@redhat.com>
11122
11123 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11124 Use expand_symtabs_file_matcher_ftype and
11125 expand_symtabs_symbol_matcher_ftype.
11126
11127 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11128
11129 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11130 (struct ada_symbol_cache): New.
11131 (ada_free_symbol_cache): Forward declare.
11132 (struct ada_pspace_data): New.
11133 (ada_pspace_data_handle): New static global.
11134 (get_ada_pspace_data, ada_pspace_data_cleanup)
11135 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11136 (cache_space, cache): Delete, now folded inside struct
11137 ada_pspace_data.
11138 (ada_get_symbol_cache): New function.
11139 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11140 implementation.
11141 (_initialize_ada_language): Remove initialization of cache_space.
11142 Move call to observer_attach_inferior_exit up, grouping it
11143 with the other observer registrations inside this function.
11144 Rename command to be more general. Add call to
11145 register_program_space_data_with_cleanup.
11146
11147 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11148
11149 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11150 ada_new_objfile_observer.
11151 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11152 (_initialize_tasks): Update uses of ada_new_objfile_observer
11153 and ada_tasks_normal_stop_observer.
11154
11155 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11156
11157 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11158 returned by the 'Length attribute to integer.
11159
11160 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11161
11162 * ada-lang.c (_initialize_ada_language): Initialize
11163 cache_space obstack.
11164
11165 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11166
11167 * ada-lang.c (HASH_SIZE): New macro.
11168 (struct cache_entry): New type.
11169 (cache_space, cache): New static globals.
11170 (ada_clear_symbol_cache, find_entry): New functions.
11171 (lookup_cached_symbol, cache_symbol): Implement.
11172 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11173 (_initialize_ada_language): Attach ada_new_objfile_observer
11174 and ada_free_objfile_observer.
11175
11176 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11177
11178 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11179 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11180 struct block * parameter.
11181 (ada_lookup_symbol_list_worker): Constify local variable "block".
11182 Remove cast which is no longer necessary.
11183
11184 2014-02-10 Doug Evans <xdje42@gmail.com>
11185
11186 Add Guile as an extension language.
11187 * NEWS: Mention Guile scripting.
11188 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11189 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11190 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11191 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11192 (CLIBS): Add GUILE_LIBS.
11193 (install-guile): New rule.
11194 (guile.o): New rule.
11195 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11196 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11197 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11198 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11199 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11200 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11201 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11202 * configure.ac: New option --with-guile.
11203 * configure: Regenerate.
11204 * config.in: Regenerate.
11205 * auto-load.c: Remove #include "python/python.h". Add #include
11206 "gdb/section-scripts.h".
11207 (source_section_scripts): Handle Guile scripts.
11208 (_initialize_auto_load): Add name of Guile objfile script to
11209 scripts-directory help text.
11210 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11211 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11212 (struct breakpoint): New member scm_bp_object.
11213 * defs.h (enum command_control_type): New value guile_control.
11214 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11215 "extension.h".
11216 (show_user): Update comment.
11217 (_initialize_cli_cmds): Update help text for "show user". Update help
11218 text for max-user-call-depth.
11219 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11220 "extension.h".
11221 (multi_line_command_p): Add guile_control.
11222 (print_command_lines): Handle guile_control.
11223 (execute_control_command, recurse_read_control_structure): Ditto.
11224 (process_next_line): Recognize "guile" commands.
11225 * disasm.c (gdb_disassemble_info): Make non-static.
11226 * disasm.h: #include "dis-asm.h".
11227 (struct gdbarch): Add forward decl.
11228 (gdb_disassemble_info): Declare.
11229 * extension.c: #include "guile/guile.h".
11230 (extension_languages): Add guile.
11231 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11232 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11233 * gdbtypes.c (get_unsigned_type_max): New function.
11234 (get_signed_type_minmax): New function.
11235 * gdbtypes.h (get_unsigned_type_max): Declare.
11236 (get_signed_type_minmax): Declare.
11237 * guile/README: New file.
11238 * guile/guile-internal.h: New file.
11239 * guile/guile.c: New file.
11240 * guile/guile.h: New file.
11241 * guile/scm-arch.c: New file.
11242 * guile/scm-auto-load.c: New file.
11243 * guile/scm-block.c: New file.
11244 * guile/scm-breakpoint.c: New file.
11245 * guile/scm-disasm.c: New file.
11246 * guile/scm-exception.c: New file.
11247 * guile/scm-frame.c: New file.
11248 * guile/scm-gsmob.c: New file.
11249 * guile/scm-iterator.c: New file.
11250 * guile/scm-lazy-string.c: New file.
11251 * guile/scm-math.c: New file.
11252 * guile/scm-objfile.c: New file.
11253 * guile/scm-ports.c: New file.
11254 * guile/scm-pretty-print.c: New file.
11255 * guile/scm-safe-call.c: New file.
11256 * guile/scm-string.c: New file.
11257 * guile/scm-symbol.c: New file.
11258 * guile/scm-symtab.c: New file.
11259 * guile/scm-type.c: New file.
11260 * guile/scm-utils.c: New file.
11261 * guile/scm-value.c: New file.
11262 * guile/lib/gdb.scm: New file.
11263 * guile/lib/gdb/boot.scm: New file.
11264 * guile/lib/gdb/experimental.scm: New file.
11265 * guile/lib/gdb/init.scm: New file.
11266 * guile/lib/gdb/iterator.scm: New file.
11267 * guile/lib/gdb/printing.scm: New file.
11268 * guile/lib/gdb/types.scm: New file.
11269 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11270 (VPATH): Add $(GUILE_SRCDIR).
11271 (GUILE_DIR): New variable.
11272 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11273 (all): Add stamp-guile dependency.
11274 (stamp-guile): New rule.
11275 (clean-guile, install-guile, uninstall-guile): New rules.
11276 (install-only): Add install-guile dependency.
11277 (uninstall): Add uninstall-guile dependency.
11278 (clean): Add clean-guile dependency.
11279
11280 2014-02-09 Doug Evans <xdje42@gmail.com>
11281
11282 Revert this patch (which I approved, mea culpa).
11283
11284 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11285
11286 * Makefile.in (all-lib): Remove.
11287 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11288
11289 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11290
11291 Fix Python stack corruption.
11292 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11293 gdb_py_longest.
11294
11295 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11296
11297 * Makefile.in (all-lib): Remove.
11298 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11299
11300 2014-02-07 Doug Evans <dje@google.com>
11301
11302 * extension-priv.h (extension_language_script_ops): Add comment.
11303 (extension_language_ops): Add comment.
11304 (active_ext_lang_state): Fix typo in comment.
11305
11306 2014-02-07 Pedro Alves <palves@redhat.com>
11307
11308 PR breakpoints/16292
11309 * infrun.c (handle_signal_stop) <signal arrives while stepping
11310 over a breakpoint>: Switch back to the stepping thread.
11311
11312 2014-02-07 Yao Qi <yao@codesourcery.com>
11313
11314 * target.c (target_xfer_partial): Return zero if LEN is zero.
11315
11316 2014-02-07 Yao Qi <yao@codesourcery.com>
11317
11318 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11319 (ld_so_xfer_auxv): Likewise.
11320 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11321 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11322 * corelow.c (core_xfer_partial): Likewise.
11323 * ctf.c (ctf_xfer_partial): Likewise.
11324 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11325 (darwin_xfer_partial): Likewise.
11326 * exec.c (exec_xfer_partial): Likewise.
11327 * gnu-nat.c (gnu_xfer_partial): Likewise.
11328 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11329 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11330 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11331 * linux-nat.c (linux_xfer_siginfo): Likewise.
11332 (linux_proc_xfer_spu): Likewise.
11333 * procfs.c (procfs_xfer_partial): Likewise.
11334 * record-full.c (record_full_xfer_partial): Likewise.
11335 (record_full_core_xfer_partial): Likewise.
11336 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11337 * remote.c (remote_write_qxfer): Likewise.
11338 (remote_write_qxfer, remote_read_qxfer): Likewise.
11339 (remote_xfer_partial): Likewise.
11340 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11341 (rs6000_xfer_shared_libraries): Likewise.
11342 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11343 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11344 (spu_xfer_partial): Likewise.
11345 * target.c (memory_xfer_partial_1): Likewise.
11346 * tracepoint.c (tfile_xfer_partial): Likewise.
11347 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11348 (windows_xfer_partial): Likewise.
11349
11350 2014-02-07 Yao Qi <yao@codesourcery.com>
11351
11352 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11353 comments.
11354 (core_xfer_shared_libraries_aix): Likewise.
11355 * gdbarch.c, gdbarch.h: Regenerated.
11356 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11357 ULONGEST. Change 'len_avail' type to ULONGEST.
11358 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11359 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11360 declaration.
11361 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11362
11363 2014-02-07 Yao Qi <yao@codesourcery.com>
11364
11365 * corefile.c (memory_error): Get 'exception' from ERR and pass
11366 'exception' to throw_error.
11367
11368 2014-02-06 Doug Evans <xdje42@gmail.com>
11369
11370 * configure.ac (libpython checking): Remove all but python.o from
11371 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11372 * configure: Regenerate.
11373
11374 * Makefile.in (SFILES): Add extension.c.
11375 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11376 (COMMON_OBS): Add extension.o.
11377 * extension.h: New file.
11378 * extension-priv.h: New file.
11379 * extension.c: New file.
11380
11381 * python/python-internal.h: #include "extension.h".
11382 (gdbpy_auto_load_enabled): Declare.
11383 (gdbpy_apply_val_pretty_printer): Declare.
11384 (gdbpy_apply_frame_filter): Declare.
11385 (gdbpy_preserve_values): Declare.
11386 (gdbpy_breakpoint_cond_says_stop): Declare.
11387 (gdbpy_breakpoint_has_cond): Declare.
11388 (void source_python_script_for_objfile): Delete.
11389 * python/python.c: #include "extension-priv.h".
11390 Delete inclusion of "observer.h".
11391 (extension_language_python): Moved here and renamed from
11392 script_language_python in py-auto-load.c.
11393 Redefined to be of type extension_language_defn.
11394 (python_extension_script_ops): New global.
11395 (python_extension_ops): New global.
11396 (struct python_env): New member previous_active.
11397 (restore_python_env): Call restore_active_ext_lang.
11398 (ensure_python_env): Call set_active_ext_lang.
11399 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11400 New arg extlang.
11401 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11402 New arg extlang.
11403 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11404 New arg extlang.
11405 (gdbpy_eval_from_control_command): Renamed from
11406 eval_python_from_control_command, made static. New arg extlang.
11407 (gdbpy_source_script) Renamed from source_python_script, made static.
11408 New arg extlang.
11409 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11410 result to int. New arg extlang.
11411 (gdbpy_source_objfile_script): Renamed from
11412 source_python_script_for_objfile, made static. New arg extlang.
11413 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11414 static. New args extlang, extlang_printers. Change result type to
11415 "void".
11416 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11417 static. New arg extlang. Rename arg printers to extlang_printers
11418 and change type to ext_lang_type_printers *.
11419 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11420 static. Replace argument arg with extlang, extlang_printers.
11421 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11422 (!HAVE_PYTHON, source_python_script): Delete.
11423 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11424 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11425 (!HAVE_PYTHON, start_type_printers): Delete.
11426 (!HAVE_PYTHON, apply_type_printers): Delete.
11427 (!HAVE_PYTHON, free_type_printers): Delete.
11428 (_initialize_python): Delete call to observer_attach_before_prompt.
11429 (finalize_python): Set/restore active extension language.
11430 (gdbpy_finish_initialization) Renamed from
11431 finish_python_initialization, made static. New arg extlang.
11432 (gdbpy_initialized): New function.
11433 * python/python.h: #include "extension.h". Delete #include
11434 "value.h", "mi/mi-cmds.h".
11435 (extension_language_python): Declare.
11436 (GDBPY_AUTO_FILE_NAME): Delete.
11437 (enum py_bt_status): Moved to extension.h and renamed to
11438 ext_lang_bt_status.
11439 (enum frame_filter_flags): Moved to extension.h.
11440 (enum py_frame_args): Moved to extension.h and renamed to
11441 ext_lang_frame_args.
11442 (finish_python_initialization): Delete.
11443 (eval_python_from_control_command): Delete.
11444 (source_python_script): Delete.
11445 (apply_val_pretty_printer): Delete.
11446 (apply_frame_filter): Delete.
11447 (preserve_python_values): Delete.
11448 (gdbpy_script_language_defn): Delete.
11449 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11450 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11451
11452 * auto-load.c: #include "extension.h".
11453 (GDB_AUTO_FILE_NAME): Delete.
11454 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11455 (script_language_gdb): Delete, moved to extension.c and renamed to
11456 extension_language_gdb.
11457 (source_gdb_script_for_objfile): Delete.
11458 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11459 (loaded_script): Change type of language member to
11460 struct extension_language_defn *.
11461 (init_loaded_scripts_info): Initialize
11462 unsupported_script_warning_printed.
11463 (maybe_add_script): Make static. Change type of language arg to
11464 struct extension_language_defn *.
11465 (clear_section_scripts): Reset unsupported_script_warning_printed.
11466 (auto_load_objfile_script_1): Rewrite to use extension language API.
11467 (auto_load_objfile_script): Make public. Remove support-compiled-in
11468 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11469 (source_section_scripts): Rewrite to use extension language API.
11470 (load_auto_scripts_for_objfile): Rewrite to use
11471 auto_load_scripts_for_objfile.
11472 (collect_matching_scripts_data): Change type of language member to
11473 struct extension_language_defn *.
11474 (auto_load_info_scripts): Change type of language arg to
11475 struct extension_language_defn *.
11476 (unsupported_script_warning_print): New function.
11477 (script_not_found_warning_print): Make static.
11478 (_initialize_auto_load): Rewrite construction of scripts-directory
11479 help.
11480 * auto-load.h (struct objfile): Add forward decl.
11481 (struct script_language): Delete.
11482 (struct auto_load_pspace_info): Add forward decl.
11483 (struct extension_language_defn): Add forward decl.
11484 (maybe_add_script): Delete.
11485 (auto_load_objfile_script): Declare.
11486 (script_not_found_warning_print): Delete.
11487 (auto_load_info_scripts): Update prototype.
11488 (auto_load_gdb_scripts_enabled): Declare.
11489 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11490 auto_load_python_scripts_enabled and made public.
11491 (script_language_python): Delete, moved to python.c.
11492 (gdbpy_script_language_defn): Delete.
11493 (info_auto_load_python_scripts): Update to use
11494 extension_language_python.
11495
11496 * breakpoint.c (condition_command): Replace call to
11497 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11498 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11499 with call to breakpoint_ext_lang_cond_says_stop.
11500 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11501 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11502 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11503 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11504 New arg slang.
11505 (local_setattro): Print name of extension language with existing
11506 stop condition.
11507
11508 * valprint.c (val_print, value_print): Update to call
11509 apply_ext_lang_val_pretty_printer.
11510 * cp-valprint.c (cp_print_value): Update call to
11511 apply_ext_lang_val_pretty_printer.
11512 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11513 (gdbpy_apply_val_pretty_printer): Renamed from
11514 apply_val_pretty_printer. New arg extlang.
11515 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11516
11517 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11518 extension language API.
11519 * cli/cli-script.c (execute_control_command): Update to call
11520 eval_ext_lang_from_control_command.
11521
11522 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11523 enum ext_lang_bt_status values. Update call to
11524 apply_ext_lang_frame_filter.
11525 (mi_cmd_stack_list_locals): Ditto.
11526 (mi_cmd_stack_list_args): Ditto.
11527 (mi_cmd_stack_list_variables): Ditto.
11528 * mi/mi-main.c: Delete #include "python/python-internal.h".
11529 Add #include "extension.h".
11530 (mi_cmd_list_features): Replace reference to python internal variable
11531 gdb_python_initialized with call to ext_lang_initialized_p.
11532
11533 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11534 Update to use enum ext_lang_frame_args. Update to call
11535 apply_ext_lang_frame_filter.
11536 * python/py-framefilter.c (extract_sym): Update to use enum
11537 ext_lang_bt_status.
11538 (extract_value, py_print_type, py_print_value): Ditto.
11539 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11540 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11541 (py_print_frame): Ditto.
11542 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11543 New arg extlang. Update to use enum ext_lang_bt_status.
11544
11545 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11546 finish_python_initialization. Replace with call to
11547 finish_ext_lang_initialization.
11548
11549 * typeprint.c (do_free_global_table): Update to call
11550 free_ext_lang_type_printers.
11551 (create_global_typedef_table): Update to call
11552 start_ext_lang_type_printers.
11553 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11554 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11555 (type_print_options): Change type of global_printers from "void *"
11556 to "struct ext_lang_type_printers *".
11557
11558 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11559 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11560 (gdbpy_preserve_values): Renamed from preserve_python_values.
11561 New arg extlang.
11562 (!HAVE_PYTHON, preserve_python_values): Delete.
11563
11564 * utils.c (quit_flag): Delete, moved to extension.c.
11565 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11566 extension.c.
11567
11568 * eval.c: Delete #include "python/python.h".
11569 * main.c: Delete #include "python/python.h".
11570
11571 * defs.h: Update comment.
11572
11573 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11574
11575 GDB 7.7 released.
11576
11577 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11578
11579 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11580 defined.
11581
11582 2014-02-05 Yao Qi <yao@codesourcery.com>
11583
11584 * remote.c (remote_pass_signals): Remove local 'buf' and use
11585 rs->buf.
11586 (remote_program_signals): Likewise.
11587
11588 2014-02-05 Yao Qi <yao@codesourcery.com>
11589
11590 * ctf.c: Include "inferior.h" and "gdbthread.h".
11591 (CTF_PID): A new macro.
11592 (ctf_open): Call inferior_appeared and add_thread_silent.
11593 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11594 (ctf_thread_alive): New function.
11595 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11596
11597 2014-02-05 Yao Qi <yao@codesourcery.com>
11598
11599 Revert this patch:
11600
11601 2013-05-24 Yao Qi <yao@codesourcery.com>
11602
11603 * tracepoint.c (TFILE_PID): Remove.
11604 (tfile_open): Don't add thread and inferior.
11605 (tfile_close): Don't set 'inferior_ptid'. Don't call
11606 exit_inferior_silent.
11607 (tfile_thread_alive): Remove.
11608 (init_tfile_ops): Don't set field 'to_thread_alive' of
11609 tfile_ops.
11610
11611 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11612
11613 * remote.c (remote_start_remote): Call remote_check_symbols even
11614 if only symbol-file (not file) has been given.
11615
11616 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11617
11618 * gdbarch.sh (skip_entrypoint): New callback.
11619 * gdbarch.c, gdbarch.h: Regenerate.
11620 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11621 * infrun.c (fill_in_stop_func): Likewise.
11622 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11623 (ppc_elfv2_elf_make_msymbol_special): New function.
11624 (ppc_elfv2_skip_entrypoint): Likewise.
11625 (ppc_linux_init_abi): Install them for ELFv2.
11626
11627 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11628
11629 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11630 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11631 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11632 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11633 structures returned in GPRs.
11634
11635 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11636
11637 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11638 offset to the stack parameter list for the ELFv2 ABI.
11639
11640 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11641
11642 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11643 set_gdbarch_convert_from_func_ptr_addr and
11644 set_gdbarch_elf_make_msymbol_special for ELFv1.
11645 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11646 function descriptors on ELFv1.
11647 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11648 set up r12 at function entry.
11649
11650 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11651
11652 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11653 (struct gdbarch_tdep): New member elf_abi.
11654
11655 * rs6000-tdep.c: Include "elf/ppc64.h".
11656 (rs6000_gdbarch_init): Detect ELF ABI version.
11657
11658 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11659
11660 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11661 within a register pair holding a DFP 128-bit value on little-endian.
11662 (ppc64_sysv_abi_return_value_base): Likewise.
11663 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11664 (dfp_pseudo_register_write): Likewise.
11665
11666 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11667
11668 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11669 offset on little-endian when passing _Decimal32.
11670 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11671
11672 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11673
11674 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11675 of the overlapped FP register within the VSX register on little-
11676 endian platforms.
11677 (efpr_pseudo_register_write): Likewise.
11678
11679 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11680
11681 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11682 offset on little-endian when passing small structures.
11683
11684 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11685
11686 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11687 (struct ppc64_sysv_argpos): New data structure.
11688 (ppc64_sysv_abi_push_float): Remove.
11689 (ppc64_sysv_abi_push_val): New function.
11690 (ppc64_sysv_abi_push_integer): Likewise.
11691 (ppc64_sysv_abi_push_freg): Likewise.
11692 (ppc64_sysv_abi_push_vreg): Likewise.
11693 (ppc64_sysv_abi_push_param): Likewise.
11694 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11695 (ppc64_sysv_abi_return_value_base): New function.
11696 (ppc64_sysv_abi_return_value): Refactor to use it.
11697
11698 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11699
11700 * NEWS: Document new target powerpc64le-*-linux*.
11701
11702 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11703
11704 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11705 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11706 core dumps.
11707 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11708 register set used in ELF core dumps. Add floating-point register set.
11709
11710 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11711
11712 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11713 dwarf2_to_gdb[] table using symbolic constants. Adjust
11714 penultimate entry from number representing the PC register
11715 to symbolic constant representing the MDR register. Add
11716 constant for the PC register to the end of the table.
11717
11718 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11719
11720 * bsd-kvm.c: Include <sys/param.h>
11721
11722 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11723
11724 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11725
11726 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11727
11728 * ada-lang.h (clear_ada_sym_cache): Delete.
11729
11730 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11731
11732 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11733
11734 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11735
11736 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11737 the sigreturn register save area only if the syscall is
11738 sigreturn.
11739
11740 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11741
11742 * valops.c (value_slice): Minor reformatting.
11743
11744 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11745
11746 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11747
11748 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11749
11750 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11751 New static globals.
11752 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11753 (ada_ignore_descriptive_types_p): New static global.
11754 (find_parallel_type_by_descriptive_type): Return immediately
11755 if ada_ignore_descriptive_types_p is set.
11756 (_initialize_ada_language): Register new commands "maintenance
11757 set ada", "maintenance show ada", "maintenance set ada
11758 ignore-descriptive-types" and "maintenance show ada
11759 ignore-descriptive-types".
11760 * NEWS: Add entry for new "maint ada set/show
11761 ignore-descriptive-types" commands.
11762
11763 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11764
11765 * record-btrace.c (record_btrace_close): Call btrace_teardown
11766 for all threads.
11767
11768 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11769
11770 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11771 "ui-out.h".
11772
11773 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11774
11775 * ada-typeprint (type_is_full_subrange_of_target_type):
11776 New function.
11777 (print_range): Add parameter bounds_prefered_p. If not set,
11778 try printing range types using the name of their base type.
11779 (print_range_type): Add parameter bounds_prefered_p.
11780 Use it in call to print_range.
11781 (print_array_type, ada_print_type): Update calls to print_range
11782 and print_range_type.
11783
11784 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11785
11786 * ada-typeprint.c (print_array_type, print_choices, print_range)
11787 (print_range_bound, print_dynamic_range_bound, print_range_type):
11788 Remove declaration.
11789
11790 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11791
11792 * ada-typeprint.c (print_range): Add missing empty line
11793 after local declaration.
11794
11795 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11796
11797 * ada-valprint.c (print_optional_low_bound): Get index_type's
11798 target type for as long as it is a TYPE_CODE_RANGE.
11799
11800 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11801
11802 * procfs.c (procfs_make_note_section): Remove assertion and
11803 associated comment.
11804
11805 2014-01-24 Yao Qi <yao@codesourcery.com>
11806
11807 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11808 * corelow.c (get_core_siginfo): Likewise.
11809
11810 2014-01-24 Yao Qi <yao@codesourcery.com>
11811
11812 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11813 ULONGEST. Don't check 'len' is negative.
11814 (remote_write_bytes): Change type of 'len' to ULONGEST.
11815
11816 2014-01-23 Tom Tromey <tromey@redhat.com>
11817
11818 PR python/16485:
11819 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11820 Handle exception from frame.block.
11821 (FrameVars.fetch_frame_locals): Likewise.
11822
11823 2014-01-23 Tom Tromey <tromey@redhat.com>
11824
11825 PR python/16487:
11826 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11827 on a NULL pointer. Move "goto error" to correct place.
11828
11829 2014-01-23 Tom Tromey <tromey@redhat.com>
11830
11831 PR python/16491:
11832 * python/py-framefilter.c (apply_frame_filter): Call
11833 ensure_python_env after computing gdbarch.
11834
11835 2014-01-23 Yao Qi <yao@codesourcery.com>
11836
11837 * target.c (raw_memory_xfer_partial): Change argument type
11838 from void * to gdb_byte *.
11839 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11840
11841 2014-01-22 Doug Evans <dje@google.com>
11842
11843 New gdbserver option --debug-format=timestamp.
11844 * NEWS: Mention it.
11845
11846 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11847
11848 * syscalls/s390x-linux.xml: New file.
11849 * syscalls/s390-linux.xml: New file.
11850 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11851 (XML_SYSCALL_FILENAME_S390X): Likewise.
11852 (op_svc): New enum value for SVC opcode.
11853 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11854 (s390_linux_get_syscall_number): New function.
11855 (s390_gdbarch_init): Register '*get_syscall_number' and the
11856 syscall xml file name.
11857 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11858 "s390-linux.xml" and "s390x-linux.xml".
11859 * NEWS: Announce new feature.
11860
11861 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11862
11863 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11864
11865 2014-01-22 Pedro Alves <palves@redhat.com>
11866
11867 * xtensa-config.c: Include defs.h.
11868
11869 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11870
11871 * common/common-utils.h: Add "ARI:" comment beside __func__
11872 reference.
11873
11874 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11875
11876 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11877 documentation a bit.
11878
11879 2014-01-21 Roland McGrath <mcgrathr@google.com>
11880
11881 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11882 * configure: Regenerate.
11883 * aclocal.m4: Regenerate.
11884 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11885 New substituted variables.
11886 (install-strip): New target.
11887 (INSTALL_SCRIPT): New substituted variable.
11888 (FLAGS_TO_PASS): Add it.
11889 (install-only): Use $(INSTALL_SCRIPT) rather than
11890 $(INSTALL_PROGRAM) for gcore.
11891
11892 2014-01-20 Tom Tromey <tromey@redhat.com>
11893
11894 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11895 together.
11896
11897 2014-01-20 Tom Tromey <tromey@redhat.com>
11898
11899 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11900 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11901 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11902 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11903 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11904 (struct cmd_list_element) <flags>: Remove.
11905 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11906 doc_allocated>: New fields.
11907 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11908 bitfields.
11909 * maint.c (maintenance_do_deprecate): Update.
11910 * top.c (execute_command): Update.
11911
11912 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11913
11914 * xtensa-linux-nat.c: Include asm/ptrace.h.
11915
11916 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11917
11918 * Makefile.in (SFILES): Add d-support.c.
11919 (COMMON_OBS): Add d-support.o.
11920 * d-lang.h (d_parse_symbol): Add comment, now defined in
11921 d-support.c.
11922 * d-lang.c (parse_call_convention)
11923 (parse_attributes, parse_function_types)
11924 (parse_function_args, parse_type, parse_identifier)
11925 (call_convention_p, d_parse_symbol): Move functions to ...
11926 * d-support.c: ... New file.
11927
11928 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11929
11930 * d-lang.h (d_parse_symbol): Add declaration.
11931 * d-lang.c (extract_identifiers)
11932 (extract_type_info): Remove functions.
11933 (parse_call_convention, parse_attributes)
11934 (parse_function_types, parse_function_args)
11935 (parse_type, parse_identifier, call_convention_p)
11936 (d_parse_symbol): New functions.
11937 (d_demangle): Use d_parse_symbol to demangle D symbols.
11938
11939 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11940
11941 * d-lang.h (struct builtin_d_type): New data type.
11942 (builtin_d_type): Add declaration.
11943 * d-lang.c (d_language_arch_info, build_d_types)
11944 (builtin_d_type): New functions.
11945 (enum d_primitive_types): New data type.
11946 (d_language_defn): Change c_language_arch_info to
11947 d_language_arch_info.
11948 (d_type_data): New static variable.
11949 (_initialize_d_language): Initialize d_type_data.
11950
11951 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11952
11953 * d-lang.h (d_main_name): Add declaration.
11954 * d-lang.c (d_main_name): New function.
11955 * symtab.c (find_main_name): Add call to d_main_name.
11956
11957 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11958
11959 * d-lang.c (d_language_defn): Change macro_expansion_c to
11960 macro_expansion_no.
11961
11962 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11963
11964 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11965
11966 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11967
11968 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11969 gdb_exception" declaration.
11970 * remote.c (getpkt_or_notif_sane): Likewise.
11971
11972 2014-01-17 Doug Evans <dje@google.com>
11973
11974 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11975 function, contents of dirnames_to_char_ptr_vec_append moved here.
11976 (delim_string_to_char_ptr_vec): New function.
11977 (dirnames_to_char_ptr_vec_append): Rewrite.
11978 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11979
11980 2014-01-17 Doug Evans <dje@google.com>
11981
11982 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11983 and moved here ...
11984 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11985 #include "common-utils.h".
11986 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11987 * common/vec.h (VEC_ASSERT_PASS): Update.
11988 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11989 (MACH_CHECK_ERROR): Update.
11990
11991 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11992
11993 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11994 comments.
11995 * gdbarch.h: Regenerate.
11996
11997 2014-01-16 Tom Tromey <tromey@redhat.com>
11998
11999 * value.c (struct value) <regnum>: Move earlier.
12000
12001 2014-01-16 Tom Tromey <tromey@redhat.com>
12002
12003 * remote.c (extended_remote_create_inferior): Rename from
12004 extended_remote_create_inferior_1. Add "ops" argument. Remove
12005 old implementation.
12006
12007 2014-01-16 Pedro Alves <palves@redhat.com>
12008
12009 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12010 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12011 the backchain.
12012
12013 2014-01-16 Doug Evans <dje@google.com>
12014
12015 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12016
12017 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12018
12019 * btrace.h (btrace_thread_flag): New.
12020 (struct btrace_thread_info) <flags>: New.
12021 * record-btrace.c (record_btrace_resume_thread)
12022 (record_btrace_find_thread_to_move, btrace_step_no_history)
12023 (btrace_step_stopped, record_btrace_start_replaying)
12024 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12025 (record_btrace_find_resume_thread): New.
12026 (record_btrace_resume, record_btrace_wait): Extend.
12027 (record_btrace_can_execute_reverse): New.
12028 (record_btrace_open): Fail in non-stop mode.
12029 (record_btrace_set_replay): Split into this, ...
12030 (record_btrace_stop_replaying): ... this, ...
12031 (record_btrace_clear_histories): ... and this.
12032 (init_record_btrace_ops): Init to_can_execute_reverse.
12033 * NEWS: Announce it.
12034
12035 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12036
12037 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12038 (forward_target_decr_pc_after_break)
12039 (target_decr_pc_after_break): New.
12040 * target.c (forward_target_decr_pc_after_break)
12041 (target_decr_pc_after_break): New.
12042 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12043 instead of gdbarch_decr_pc_after_break.
12044 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12045 instead of gdbarch_decr_pc_after_break.
12046 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12047 instead of gdbarch_decr_pc_after_break.
12048 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12049 instead of gdbarch_decr_pc_after_break.
12050 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12051 instead of gdbarch_decr_pc_after_break.
12052 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12053 instead of gdbarch_decr_pc_after_break.
12054
12055 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12056
12057 * btrace.c: Include regcache.h.
12058 (btrace_add_pc): New.
12059 (btrace_enable): Call btrace_add_pc.
12060 (btrace_is_empty): New.
12061 * btrace.h (btrace_is_empty): New.
12062 * record-btrace.c (require_btrace, record_btrace_info): Call
12063 btrace_is_empty.
12064
12065 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12066
12067 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12068 Support delta reads.
12069 (linux_disable_btrace): Change return type.
12070 * common/linux-btrace.h (linux_read_btrace): Change parameters
12071 and return type to allow error reporting. Update users.
12072 (linux_disable_btrace): Change return type. Update users.
12073 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12074 New.
12075 (btrace_error): New.
12076 (btrace_block) <begin>: Comment on BEGIN == 0.
12077 * btrace.c (btrace_compute_ftrace): Start from the end of
12078 the current trace.
12079 (btrace_stitch_trace, btrace_clear_history): New.
12080 (btrace_fetch): Read delta trace, return if replaying.
12081 (btrace_clear): Move clear history code to btrace_clear_history.
12082 (parse_xml_btrace): Throw an error if parsing failed.
12083 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12084 and return type to allow error reporting.
12085 (target_read_btrace): Change parameters and return type to allow
12086 error reporting.
12087 * target.c (target_read_btrace): Update.
12088 * remote.c (remote_read_btrace): Support delta reads. Pass
12089 errors on.
12090 * NEWS: Announce it.
12091
12092 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12093
12094 * record.h (record_btrace_frame_unwind)
12095 (record_btrace_tailcall_frame_unwind): New declarations.
12096 * dwarf2-frame: Include record.h
12097 (dwarf2_frame_cfa): Throw an error for btrace frames.
12098 * record-btrace.c: Include hashtab.h.
12099 (btrace_get_bfun_name): New.
12100 (btrace_call_history): Call btrace_get_bfun_name.
12101 (struct btrace_frame_cache): New.
12102 (bfcache): New.
12103 (bfcache_hash, bfcache_eq, bfcache_new): New.
12104 (btrace_get_frame_function): New.
12105 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12106 (record_btrace_frame_this_id): Compute own id.
12107 (record_btrace_frame_prev_register): Provide PC, throw_error
12108 for all other registers.
12109 (record_btrace_frame_sniffer): Detect btrace frames.
12110 (record_btrace_tailcall_frame_sniffer): New.
12111 (record_btrace_frame_dealloc_cache): New.
12112 (record_btrace_frame_unwind): Add new functions.
12113 (record_btrace_tailcall_frame_unwind): New.
12114 (_initialize_record_btrace): Allocate cache.
12115 * btrace.c (btrace_clear): Call reinit_frame_cache.
12116 * NEWS: Announce it.
12117
12118 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12119
12120 * record-btrace.c (record_btrace_set_replay)
12121 (record_btrace_goto_begin, record_btrace_goto_end)
12122 (record_btrace_goto): New.
12123 (init_record_btrace_ops): Initialize them.
12124 * NEWS: Announce it.
12125
12126 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12127
12128 * record-btrace.c (record_btrace_find_new_threads)
12129 (record_btrace_thread_alive): New.
12130 (init_record_btrace_ops): Initialize to_find_new_threads and
12131 to_thread_alive.
12132
12133 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12134
12135 * record-btrace.c (record_btrace_resume): New.
12136 (record_btrace_wait): New.
12137 (init_record_btrace_ops): Initialize to_wait and to_resume.
12138
12139 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12140
12141 * record-btrace.c (record_btrace_xfer_partial)
12142 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12143 (record_btrace_allow_memory_access): New.
12144 (init_record_btrace_ops): Initialize new methods.
12145 * target.c (raw_memory_xfer_partial): Bail out if target reports
12146 that this memory is not available.
12147
12148 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12149
12150 * target.h (target_ops) <to_insert_breakpoint>
12151 <to_remove_breakpoint>: Add target_ops parameter.
12152 (forward_target_insert_breakpoint): New.
12153 (forward_target_remove_breakpoint): New.
12154 (memory_remove_breakpoint, memory_insert_breakpoint):
12155 Add target_ops parameter.
12156 * target.c (target_insert_breakpoint): Split into this and ...
12157 (forward_target_insert_breakpoint): ... this.
12158 (target_remove_breakpoint): Split into this and ...
12159 (forward_target_remove_breakpoint): ... this.
12160 (debug_to_insert_breakpoint): Add target_ops parameter.
12161 Call forward_target_insert_breakpoint.
12162 (debug_to_remove_breakpoint): Add target_ops parameter.
12163 Call forward_target_remove_breakpoint.
12164 (update_current_target): Do not inherit or default to_insert_breakpoint
12165 and to_remove_breakpoint.
12166 * corelow.c (ignore): Add target_ops parameter.
12167 * exec.c (ignore): Add target_ops parameter.
12168 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12169 Add target_ops parameter.
12170 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12171 Add target_ops parameter.
12172 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12173 Add target_ops parameter.
12174 * record-full.c (record_full_beneath_to_insert_breakpoint)
12175 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12176 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12177 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12178 (record_full_core_remove_breakpoint): Add target_ops parameter.
12179 Update users.
12180 (record_full_beneath_to_insert_breakpoint_ops)
12181 (record_full_beneath_to_remove_breakpoint_ops)
12182 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12183 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12184 tmp_to_remove_breakpoint_ops,
12185 record_full_beneath_to_insert_breakpoint_ops, and
12186 record_full_beneath_to_remove_breakpoint_ops.
12187 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12188 (m32r_remove_breakpoint): Add target_ops parameter.
12189 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12190 Add target_ops parameter.
12191 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12192 Add target_ops parameter.
12193
12194 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12195 Markus Metzger <markus.t.metzger@intel.com>
12196
12197 * record-btrace.c: Include frame-unwind.h.
12198 (record_btrace_frame_unwind_stop_reason)
12199 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12200 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12201 New.
12202 (init_record_btrace_ops): Install it.
12203
12204 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12205
12206 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12207 get_prev_frame_1.
12208
12209 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12210
12211 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12212 earlier.
12213
12214 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12215
12216 * frame-unwind.c: Include target.h.
12217 (frame_unwind_try_unwinder): New function with code from ...
12218 (frame_unwind_find_by_frame): ... here. New variable
12219 unwinder_from_target, call also target_get_unwinder)
12220 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12221 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12222 * target.h (struct target_ops): New fields to_get_unwinder and
12223 to_get_tailcall_unwinder.
12224 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12225
12226 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12227
12228 * record-btrace.c (record_btrace_fetch_registers)
12229 (record_btrace_store_registers)
12230 (record_btrace_to_prepare_to_store): New.
12231 (init_record_btrace_ops): Add the above.
12232
12233 2014-01-16 Tom Tromey <tromey@redhat.com>
12234
12235 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12236 * target.h (struct target_ops) <to_prepare_to_store>: Add
12237 argument.
12238 (target_prepare_to_store): Add argument.
12239 * target.c (debug_to_prepare_to_store): Add argument.
12240 (update_current_target): Update.
12241 * remote.c (remote_prepare_to_store): Add 'self' argument.
12242 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12243 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12244 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12245 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12246 argument.
12247 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12248 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12249 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12250 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12251 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12252
12253 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12254
12255 * btrace.h (replay) <replay>: New.
12256 (btrace_is_replaying): New.
12257 * btrace.c (btrace_clear): Free replay iterator.
12258 (btrace_is_replaying): New.
12259 * record-btrace.c (record_btrace_is_replaying): New.
12260 (record_btrace_info): Print insn number if replaying.
12261 (record_btrace_insn_history): Start at replay position.
12262 (record_btrace_call_history): Start at replay position.
12263 (init_record_btrace_ops): Init to_record_is_replaying.
12264
12265 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12266
12267 * record-btrace.c (record_btrace_insn_history_range): Include
12268 end.
12269 (record_btrace_insn_history_from): Adjust range.
12270 (record_btrace_call_history_range): Include
12271 end.
12272 (record_btrace_call_history_from): Adjust range.
12273 * NEWS: Announce changes.
12274
12275 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12276
12277 * record.h (enum record_print_flag)
12278 <record_print_indent_calls>: New.
12279 * record.c (get_call_history_modifiers): Recognize /c modifier.
12280 (_initialize_record): Document /c modifier.
12281 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12282 Reorder fields. Optionally indent the function name. Update
12283 all users.
12284 * NEWS: Announce changes.
12285
12286 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12287
12288 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12289
12290 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12291
12292 * btrace.c (ftrace_new_function): Start counting at one.
12293 * record-btrace.c (record_btrace_info): Adjust number of calls
12294 and insns.
12295 * NEWS: Announce it.
12296
12297 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12298
12299 * record-btrace.c (btrace_call_history_insn_range): Print
12300 insn range as [begin, end].
12301
12302 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12303
12304 * btrace.h (struct btrace_func_link): New.
12305 (enum btrace_function_flag): New.
12306 (struct btrace_inst): Rename to ...
12307 (struct btrace_insn): ...this. Update all users.
12308 (struct btrace_func) <ibegin, iend>: Remove.
12309 (struct btrace_func_link): New.
12310 (struct btrace_func): Rename to ...
12311 (struct btrace_function): ...this. Update all users.
12312 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12313 (number, level, flags>: New.
12314 (struct btrace_insn_iterator): Rename to ...
12315 (struct btrace_insn_history): ...this.
12316 Update all users.
12317 (struct btrace_insn_iterator, btrace_call_iterator): New.
12318 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12319 (struct btrace_target_info) <begin, end, level>
12320 <insn_history, call_history>: New.
12321 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12322 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12323 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12324 (btrace_call_number, btrace_call_begin, btrace_call_end)
12325 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12326 (btrace_find_function_by_number, btrace_set_insn_history)
12327 (btrace_set_call_history): New.
12328 * btrace.c (btrace_init_insn_iterator)
12329 (btrace_init_func_iterator, compute_itrace): Remove.
12330 (ftrace_print_function_name, ftrace_print_filename)
12331 (ftrace_skip_file): Change
12332 parameter to const.
12333 (ftrace_init_func): Remove.
12334 (ftrace_debug): Use new btrace_function fields.
12335 (ftrace_function_switched): Also consider gaining and
12336 losing symbol information).
12337 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12338 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12339 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12340 New.
12341 (ftrace_new_function): Move. Remove debug print.
12342 (ftrace_update_lines, ftrace_update_insns): New.
12343 (ftrace_update_function): Check for call, ret, and jump.
12344 (compute_ftrace): Renamed to ...
12345 (btrace_compute_ftrace): ...this. Rewritten to compute call
12346 stack.
12347 (btrace_fetch, btrace_clear): Updated.
12348 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12349 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12350 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12351 (btrace_call_number, btrace_call_begin, btrace_call_end)
12352 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12353 (btrace_find_function_by_number, btrace_set_insn_history)
12354 (btrace_set_call_history): New.
12355 * record-btrace.c (require_btrace): Use new btrace thread
12356 info fields.
12357 (record_btrace_info, btrace_insn_history)
12358 (record_btrace_insn_history, record_btrace_insn_history_range):
12359 Use new btrace thread info fields and new iterator.
12360 (btrace_func_history_src_line): Rename to ...
12361 (btrace_call_history_src_line): ...this. Use new btrace
12362 thread info fields.
12363 (btrace_func_history): Rename to ...
12364 (btrace_call_history): ...this. Use new btrace thread info
12365 fields and new iterator.
12366 (record_btrace_call_history, record_btrace_call_history_range):
12367 Use new btrace thread info fields and new iterator.
12368
12369 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12370
12371 * frame.h (frame_id_build_unavailable_stack_special): New.
12372 * frame.c (frame_id_build_unavailable_stack_special): New.
12373
12374 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12375
12376 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12377 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12378 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12379 to gdbarch.
12380 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12381 (i386_insn_is_jump, i386_jmp_p): New.
12382 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12383 insn_is_jump to gdbarch.
12384 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12385 * gdbarch.h: Regenerated.
12386 * gdbarch.c: Regenerated.
12387 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12388 (default_insn_is_jump): New.
12389 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12390 (default_insn_is_jump): New.
12391
12392 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12393
12394 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12395 Change to ...
12396 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12397 (btrace_read_type) <btrace_read_new>: Change to ...
12398 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12399
12400 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12401
12402 * common/linux-btrace.c (linux_read_btrace): Free trace from
12403 previous iteration.
12404
12405 2014-01-15 Doug Evans <dje@google.com>
12406
12407 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12408 uint32_t.
12409
12410 2014-01-15 Tom Tromey <tromey@redhat.com>
12411
12412 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12413 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12414 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12415 (set_objfile_main_name): New function.
12416 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12417 language_of_main>: New fields.
12418 (set_objfile_main_name): Declare.
12419 * symtab.c (find_main_name): Loop over objfiles to find the main
12420 name and language.
12421 (set_main_name): Now static.
12422 (get_main_info): Add comment.
12423 * symtab.h (set_main_name): Don't declare.
12424
12425 2014-01-15 Tom Tromey <tromey@redhat.com>
12426
12427 * symtab.c (main_progspace_key): New global.
12428 (struct main_info): New.
12429 (name_of_main, language_of_main): Remove.
12430 (get_main_info, main_info_cleanup): New function.
12431 (set_main_name, main_name, main_language): Use get_main_info.
12432 (_initialize_symtab): Initialize main_progspace_key.
12433
12434 2014-01-15 Tom Tromey <tromey@redhat.com>
12435
12436 * dbxread.c (process_one_symbol): Update.
12437 * dwarf2read.c (read_partial_die): Update.
12438 * symfile.c (set_initial_language): Call main_language.
12439 * symtab.c (language_of_main): Now static.
12440 (set_main_name): Add 'lang' parameter.
12441 (find_main_name): Update.
12442 (main_language): New function.
12443 (symtab_observer_executable_changed): Update.
12444 * symtab.h (set_main_name): Update.
12445 (language_of_main): Remove.
12446 (main_language): Declare.
12447
12448 2014-01-15 Tom Tromey <tromey@redhat.com>
12449
12450 * symfile.c (init_entry_point_info): Use new "initialized" field.
12451 Update.
12452 * objfiles.h (struct entry_point) <initialized>: New field.
12453 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12454 (struct objfile) <ei>: ...here. Remove.
12455 * objfiles.c (entry_point_address_query): Update.
12456
12457 2014-01-15 Tom Tromey <tromey@redhat.com>
12458
12459 * objfiles.c (entry_point_address_query): Relocate entry point
12460 address.
12461 (objfile_relocate1): Do not relocate entry point address.
12462 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12463 <the_bfd_section_index>: New field.
12464 * symfile.c (init_entry_point_info): Find the entry point's
12465 section.
12466
12467 2014-01-15 Tom Tromey <tromey@redhat.com>
12468
12469 * solib-frv.c (enable_break): Use entry_point_address_query.
12470
12471 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12472
12473 * NEWS: Add note on improved process record-replay on
12474 arm*-linux* targets.
12475
12476 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12477
12478 * arm-tdep.c (enum arm_record_result): New enum.
12479 (arm_record_unsupported_insn): New function.
12480 (arm_record_coproc_data_proc): Removed.
12481 (thumb2_record_ld_st_multiple): New function.
12482 (thumb2_record_ld_st_dual_ex_tbb): New function.
12483 (thumb2_record_data_proc_sreg_mimm): New function.
12484 (thumb2_record_ps_dest_generic): New function.
12485 (thumb2_record_branch_misc_cntrl): New function.
12486 (thumb2_record_str_single_data): New function.
12487 (thumb2_record_ld_mem_hints): New function.
12488 (thumb2_record_ld_word): New function.
12489 (thumb2_record_lmul_lmla_div): New function.
12490 (thumb2_record_decode_insn_handler): New function.
12491 (decode_insn): Add thumb32 instruction handlers.
12492
12493 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12494
12495 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12496 (struct arm_linux_record_tdep): Declare.
12497 (arm_canonicalize_syscall): New function.
12498 (arm_all_but_pc_registers_record): New function.
12499 (arm_linux_syscall_record): New function.
12500 (arm_linux_init_abi): Add syscall recording constructs.
12501 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12502 decoding. (arm_record_coproc_data_proc): Update arm syscall
12503 decoding.
12504 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12505 <arm_syscall_record>: New field.
12506 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12507 gdb_target_obs.
12508
12509 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12510
12511 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12512 register for push instruction recording.
12513
12514 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12515
12516 * arm-tdep.c (thumb_record_misc): Update to correct logical
12517 error while recording ldm, ldmia and pop instructions.
12518
12519 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12520
12521 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12522
12523 2014-01-15 Pedro Alves <palves@redhat.com>
12524
12525 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12526 (go32_resume, go32_fetch_registers, store_register)
12527 (go32_store_registers, go32_prepare_to_store)
12528 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12529 (go32_create_inferior, go32_can_run, go32_terminal_init)
12530 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12531 declarations.
12532
12533 2014-01-15 Tom Tromey <tromey@redhat.com>
12534
12535 * target.h (async_callback_ftype): New typedef.
12536 (struct target_ops) <to_async>: Use it.
12537
12538 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12539
12540 * python/py-value.c (get_field_type): Remove unnecessary curly
12541 braces for single-statement if block.
12542
12543 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12544
12545 * python/py-type.c (convert_field): Add missing empty line
12546 after declarations.
12547
12548 2014-01-14 Doug Evans <dje@google.com>
12549
12550 * symfile.h (expand_symtabs_matching): Renamed from
12551 expand_partial_symbol_names. Update prototype.
12552 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12553 * symfile.c (expand_symtabs_matching): Renamed from
12554 expand_partial_symbol_names. New args file_matcher, kind.
12555 Rename arg fun to symbol_matcher.
12556 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12557 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12558 ada_expand_partial_symbol_name.
12559 (ada_make_symbol_completion_list): Update to call
12560 expand_symtabs_matching.
12561 (ada_add_global_exceptions): Call expand_symtabs_matching.
12562 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12563 call map_symbol_filenames.
12564 * symtab.c (sources_info): Update to call map_symbol_filenames.
12565 (search_symbols): Call expand_symtabs_matching.
12566 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12567 (default_make_symbol_completion_list_break_on): Update to call
12568 expand_symtabs_matching.
12569 (make_source_files_completion_list): Update to call
12570 map_symbol_filenames.
12571
12572 2014-01-14 Doug Evans <dje@google.com>
12573
12574 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12575 (expand_symtabs_symbol_matcher_ftype): New typedef.
12576 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12577 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12578 * symfile.c (expand_partial_symbol_names): Update to use
12579 expand_symtabs_symbol_matcher_ftype.
12580 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12581 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12582 Arg name_matcher renamed to symbol_matcher.
12583 * psymtab.c (recursively_search_psymtabs): Update to use
12584 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12585 sym_matcher.
12586 (expand_symtabs_matching_via_partial): Update to use
12587 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12588 Arg name_matcher renamed to symbol_matcher.
12589
12590 2014-01-14 Doug Evans <dje@google.com>
12591
12592 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12593 (map_partial_symbol_filenames): Ditto.
12594 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12595 (map_partial_symbol_filenames): Ditto.
12596 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12597 (map_partial_symbol_filenames): Ditto.
12598 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12599 (map_partial_symbol_filenames): Ditto.
12600 * symtab.c: Delete #include "psymtab.h".
12601
12602 2014-01-14 Pedro Alves <palves@redhat.com>
12603 Tom Tromey <tromey@redhat.com>
12604
12605 * infrun.c (use_displaced_stepping): Use find_record_target
12606 instead of RECORD_IS_USED.
12607 (adjust_pc_after_break): Use record_full_is_used instead of
12608 RECORD_IS_USED.
12609 * record-btrace.c (record_btrace_open): Call record_preopen
12610 instead of checking RECORD_IS_USED.
12611 * record-full.c (record_full_shortname)
12612 (record_full_core_shortname): New globals.
12613 (record_full_is_used): New function.
12614 (find_full_open): Call record_preopen instead of checking
12615 RECORD_IS_USED.
12616 (init_record_full_ops): Set the target's shortname to
12617 record_full_shortname.
12618 (init_record_full_core_ops): Set the target's shortname to
12619 record_full_core_shortname.
12620 * record-full.h (record_full_is_used): Declare.
12621 * record.c (find_record_target): Make extern.
12622 (record_preopen): New function.
12623 * record.h (RECORD_IS_USED): Delete macro.
12624 (find_record_target, record_preopen): Declare functions.
12625
12626 2014-01-14 Yao Qi <yao@codesourcery.com>
12627
12628 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12629 'len''s type to ULONGEST.
12630 (core_xfer_shared_libraries_aix): Likewise.
12631 * gdbarch.c, gdbarch.h: Regenerated.
12632 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12633 Change type of 'len' to ULONGEST.
12634 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12635 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12636
12637 2014-01-14 Yao Qi <yao@codesourcery.com>
12638
12639 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12640 type of 'len' to ULONGEST.
12641 (linux_xfer_osdata_processgroups): Likewise.
12642 (linux_xfer_osdata_threads): Likewise.
12643 (linux_xfer_osdata_fds): Likewise.
12644 (linux_xfer_osdata_isockets): Likewise.
12645 (linux_xfer_osdata_shm): Likewise.
12646 (linux_xfer_osdata_sem): Likewise.
12647 (linux_xfer_osdata_msg): Likewise.
12648 (linux_common_xfer_osdata): Likewise.
12649 (struct osdata_type) <getter>: Likewise.
12650 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12651 the declaration.
12652
12653 2014-01-14 Yao Qi <yao@codesourcery.com>
12654
12655 * target.h (target_xfer_partial_ftype): Update.
12656 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12657 ULONGEST.
12658 * aix-thread.c (aix_thread_xfer_partial): Change type of
12659 argument 'len' to ULONGEST.
12660 * auxv.c (procfs_xfer_auxv): Likewise.
12661 (ld_so_xfer_auxv): Likewise.
12662 (memory_xfer_auxv): Likewise.
12663 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12664 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12665 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12666 * corelow.c (core_xfer_partial): Likewise.
12667 * ctf.c (ctf_xfer_partial): Likewise.
12668 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12669 '%u'.
12670 (darwin_read_dyld_info): Likewise.
12671 (darwin_xfer_partial): Likewise.
12672 * exec.c (section_table_xfer_memory_partial): Likewise.
12673 (exec_xfer_partial): Likewise.
12674 * exec.h (section_table_xfer_memory_partial): Update
12675 declaration.
12676 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12677 instead of plongest.
12678 (gnu_xfer_partial): Likewise.
12679 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12680 (ia64_hpux_xfer_solib_got): Likewise.
12681 (ia64_hpux_xfer_partial): Likewise.
12682 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12683 * inf-ptrace.c (inf_ptrace_xfer_partial):
12684 * inf-ttrace.c (inf_ttrace_xfer_partial):
12685 * linux-nat.c (linux_xfer_siginfo): Likewise.
12686 (linux_nat_xfer_partial): Likewise.
12687 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12688 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12689 * monitor.c (monitor_xfer_memory): Likewise.
12690 (monitor_xfer_partial): Likewise.
12691 * procfs.c (procfs_xfer_partial): Likewise.
12692 * record-full.c (record_full_xfer_partial): Likewise.
12693 (record_full_core_xfer_partial): Likewise.
12694 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12695 instead of plongest.
12696 (gdbsim_xfer_partial): Likewise.
12697 * remote.c (remote_xfer_partial): Likewise.
12698 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12699 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12700 declaration.
12701 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12702 (rs6000_xfer_shared_libraries): Likewise.
12703 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12704 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12705 (sparc_xfer_partial): Likewise.
12706 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12707 (spu_xfer_partial): Likewise.
12708 * spu-multiarch.c (spu_xfer_partial): Likewise.
12709 * target.c (target_read_live_memory): Likewise.
12710 (memory_xfer_live_readonly_partial): Likewise.
12711 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12712 (target_xfer_partial, default_xfer_partial): Likewise.
12713 (current_xfer_partial): Likewise.
12714 * tracepoint.c (tfile_xfer_partial): Likewise.
12715 * windows-nat.c (windows_xfer_memory): Likewise. Call
12716 pulongest instead of plongest.
12717 (windows_xfer_partial): Likewise.
12718 (windows_xfer_shared_libraries): Likewise.
12719
12720 2014-01-14 Yao Qi <yao@codesourcery.com>
12721
12722 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12723 target_xfer_partial_ftype.
12724
12725 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12726
12727 PR python/15464
12728 PR python/16113
12729 * valops.c (value_struct_elt_bitpos): New function
12730 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12731 object to 'None' if the field name is an empty string ("").
12732 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12733 attribute to look for a field when 'name' is 'None'.
12734 (get_field_type): New function
12735
12736 2014-01-13 Doug Evans <dje@google.com>
12737
12738 PR symtab/16426
12739 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12740 (try_open_dwop_file): Ditto.
12741 * gdb_bfd.c: #include "vec.h".
12742 (bfdp): New typedef.
12743 (struct gdb_bfd_data): New member included_bfds.
12744 (gdb_bfd_unref): Unref all included bfds.
12745 (gdb_bfd_record_inclusion): New function.
12746 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12747
12748 2014-01-13 Tom Tromey <tromey@redhat.com>
12749
12750 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12751
12752 2014-01-13 Tom Tromey <tromey@redhat.com>
12753
12754 * defs.h (use_windows): Remove.
12755 * gdb.c (main): Update.
12756 * main.c (captured_main, gdb_main): Update.
12757 * main.h (struct captured_main_args) <use_windows>: Remove.
12758 * top.c (use_windows): Remove.
12759
12760 2014-01-13 Tom Tromey <tromey@redhat.com>
12761
12762 * defs.h (deprecated_flush_hook): Remove.
12763
12764 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12765
12766 PR threads/16216
12767 * linux-thread-db.c (try_thread_db_load): Add parameter
12768 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12769 (try_thread_db_load_from_pdir_1): Move it there from here.
12770 (try_thread_db_load_from_sdir): Update caller.
12771 (try_thread_db_load_from_dir): Move it there from here.
12772
12773 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12774
12775 * regformats/regdat.sh: Always rewrite the register file.
12776
12777 2014-01-13 Pedro Alves <palves@redhat.com>
12778
12779 * Makefile.in (CHECK_HEADERS): New variable.
12780 (check-headers:): New rule.
12781
12782 2014-01-13 Tom Tromey <tromey@redhat.com>
12783
12784 * cli/cli-setshow.c (do_set_command): Update.
12785 * defs.h (deprecated_set_hook): Remove.
12786 * top.c (deprecated_set_hook): Remove.
12787
12788 2014-01-13 Pedro Alves <palves@redhat.com>
12789
12790 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12791 the tracepoint if the PC is a pseudo-register.
12792
12793 2014-01-13 Tom Tromey <tromey@redhat.com>
12794
12795 * defs.h (XCALLOC): Remove.
12796 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12797 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12798 * dwarf2loc.c (allocate_piece_closure): Likewise.
12799 * elfread.c (elf_symfile_segments): Likewise.
12800 (elf_symfile_segments): Likewise.
12801 * gdbtypes.c (copy_type_recursive): Likewise.
12802 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12803 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12804 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12805 XCALLOC.
12806 * mt-tdep.c (mt_gdbarch_init): Likewise.
12807 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12808 XCALLOC.
12809 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12810 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12811 * registry.c (registry_alloc_data): Likewise.
12812 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12813 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12814 * serial.c (serial_fdopen_ops): Likewise.
12815 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12816 XCALLOC.
12817 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12818 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12819 not XCALLOC.
12820
12821 2014-01-13 Tom Tromey <tromey@redhat.com>
12822
12823 * defs.h (XMALLOC): Remove.
12824 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12825 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12826 * cli-out.c (struct ui_out *): Likewise.
12827 * cli/cli-dump.c (add_dump_command): Likewise.
12828 (add_dump_command): Likewise.
12829 * complaints.c (get_complaints): Likewise.
12830 (find_complaint): Likewise.
12831 * dwarf2-frame.c (execute_cfa_program): Likewise.
12832 * dwarf2read.c (abbrev_table_read_table): Likewise.
12833 * gdbarch.sh: Likewise.
12834 * gdbarch.c: Rebuild.
12835 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12836 * interps.c (interp_new): Likewise.
12837 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12838 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12839 * mi/mi-console.c (mi_console_file_new): Likewise.
12840 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12841 * mi/mi-out.c (mi_out_new): Likewise.
12842 * mi/mi-parse.c (mi_parse): Likewise.
12843 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12844 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12845 * observer.c (xalloc_observer_list_node): Likewise.
12846 * regcache.c (regcache_xmalloc_1): Likewise.
12847 * reggroups.c (reggroup_new): Likewise.
12848 (_initialize_reggroup): Likewise.
12849 * registry.c (register_data_with_cleanup): Likewise.
12850 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12851 * ser-base.c (serial_ttystate): Likewise.
12852 * ser-mingw.c (make_pipe_state): Likewise.
12853 * ser-pipe.c (pipe_open): Likewise.
12854 * serial.c (serial_open): Likewise.
12855 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12856 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12857 (tui_alloc_win_info): Likewise.
12858 (tui_add_content_elements): Likewise.
12859 * tui/tui-file.c (tui_file_new): Likewise.
12860 * tui/tui-out.c (tui_out_new): Likewise.
12861 * ui-file.c (mem_file_new): Likewise.
12862 * ui-out.c (push_level): Likewise.
12863 (make_cleanup_ui_out_end): Likewise.
12864 (append_header_to_list): Likewise.
12865 (ui_out_new): Likewise.
12866 * user-regs.c (user_reg_add_builtin): Likewise.
12867
12868 2014-01-13 Tom Tromey <tromey@redhat.com>
12869
12870 * defs.h (XZALLOC): Remove.
12871 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12872 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12873 (get_ada_tasks_inferior_data): Likewise.
12874 * auto-load.c (get_auto_load_pspace_data): Likewise.
12875 * auxv.c (get_auxv_inferior_data): Likewise.
12876 * bfd-target.c (target_bfd_reopen): Likewise.
12877 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12878 (deprecated_insert_raw_breakpoint): Likewise.
12879 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12880 * corelow.c (core_open): Likewise.
12881 * darwin-nat.c (darwin_check_new_threads): Likewise.
12882 (darwin_attach_pid): Likewise.
12883 * dummy-frame.c (dummy_frame_push): Likewise.
12884 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12885 * dwarf2loc.c (allocate_piece_closure): Likewise.
12886 * elfread.c (elf_symfile_segments): Likewise.
12887 * eval.c (ptrmath_type_p): Likewise.
12888 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12889 * gdbtypes.c (alloc_type_arch): Likewise.
12890 (alloc_type_instance): Likewise.
12891 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12892 * inf-child.c (inf_child_can_use_agent): Likewise.
12893 * inflow.c (get_inflow_inferior_data): Likewise.
12894 * infrun.c (save_infcall_suspend_state): Likewise.
12895 * jit.c (jit_reader_load): Likewise.
12896 (get_jit_objfile_data): Likewise.
12897 (get_jit_program_space_data): Likewise.
12898 (jit_object_open_impl): Likewise.
12899 (jit_symtab_open_impl): Likewise.
12900 (jit_block_open_impl): Likewise.
12901 (jit_frame_sniffer): Likewise.
12902 * linux-fork.c (add_fork): Likewise.
12903 * maint.c (make_command_stats_cleanup): Likewise.
12904 * objfiles.c (get_objfile_pspace_data): Likewise.
12905 * opencl-lang.c (struct lval_closure): Likewise.
12906 * osdata.c (osdata_start_osdata): Likewise.
12907 * progspace.c (new_address_space): Likewise.
12908 (add_program_space): Likewise.
12909 * remote-sim.c (get_sim_inferior_data): Likewise.
12910 * sh-tdep.c (sh_gdbarch_init): Likewise.
12911 * skip.c (Ignore): Likewise.
12912 (skip_delete_command): Likewise.
12913 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12914 (library_list_start_library): Likewise.
12915 (solib_aix_current_sos): Likewise.
12916 * solib-darwin.c (get_darwin_info): Likewise.
12917 (darwin_current_sos): Likewise.
12918 * solib-dsbt.c (get_dsbt_info): Likewise.
12919 * solib-ia64-hpux.c (new_so_list): Likewise.
12920 (ia64_hpux_get_solib_linkage_addr): Likewise.
12921 * solib-spu.c (append_ocl_sos): Likewise.
12922 (spu_current_sos): Likewise.
12923 * solib-svr4.c (get_svr4_info): Likewise.
12924 (svr4_keep_data_in_core): Likewise.
12925 (library_list_start_library): Likewise.
12926 (svr4_default_sos): Likewise.
12927 (svr4_read_so_list): Likewise.
12928 * solib-target.c (library_list_start_library): Likewise.
12929 (solib_target_current_sos): Likewise.
12930 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12931 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12932 * symfile.c (default_symfile_segments): Likewise.
12933 * target-descriptions.c (tdesc_data_init): Likewise.
12934 (tdesc_create_reg): Likewise.
12935 (struct tdesc_type *): Likewise.
12936 (tdesc_create_vector): Likewise.
12937 (tdesc_set_struct_size): Likewise.
12938 (struct tdesc_type *): Likewise.
12939 (tdesc_free_feature): Likewise.
12940 (tdesc_create_feature): Likewise.
12941 * windows-nat.c (windows_add_thread): Likewise.
12942 (windows_make_so): Likewise.
12943 * xml-support.c (gdb_xml_body_text): Likewise.
12944 (gdb_xml_create_parser_and_cleanup): Likewise.
12945 (xml_process_xincludes): Likewise.
12946 * xml-syscall.c (allocate_syscalls_info): Likewise.
12947 (syscall_create_syscall_desc): Likewise.
12948
12949 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12950
12951 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12952 function, with code from i386_stap_parse_special_token.
12953 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12954 (i386_stap_parse_special_token): Move code to the two functions
12955 above; simplify it.
12956
12957 2014-01-09 Pedro Alves <palves@redhat.com>
12958 Hui Zhu <hui@codesourcery.com>
12959
12960 PR gdb/16101
12961 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12962 bp_err_string. Don't mark the location shlib_disabled if the
12963 error thrown wasn't a generic or memory error. Catch errors
12964 thrown while inserting breakpoints in overlayed code. Output
12965 error message of software breakpoints.
12966 * remote.c (remote_insert_breakpoint): If this breakpoint has
12967 target-side commands but this stub doesn't support Z0 packets,
12968 throw NOT_SUPPORTED_ERROR error.
12969 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12970 * target.h (target_insert_breakpoint): Extend comment.
12971 (target_insert_hw_breakpoint): Add comment.
12972
12973 2014-01-08 Pedro Alves <palves@redhat.com>
12974
12975 * remote.c (remote_add_thread): Add threads silently if starting
12976 up.
12977 (remote_notice_new_inferior): If in all-stop, and starting up,
12978 don't call notice_new_inferior.
12979 (get_current_thread): New function, factored out from ...
12980 (add_current_inferior_and_thread): ... this. Adjust.
12981 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12982 found any thread, then select the remote's current thread as GDB's
12983 current thread too.
12984
12985 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12986
12987 * NEWS: Create a new section for the next release branch.
12988 Rename the section of the current branch, now that it has
12989 been cut.
12990
12991 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12992
12993 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12994 * version.in: Bump version to 7.7.50.DATE-cvs.
12995
12996 2014-01-08 Yao Qi <yao@codesourcery.com>
12997
12998 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12999 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13000 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13001
13002 2014-01-08 Yao Qi <yao@codesourcery.com>
13003
13004 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13005 return value of bfd_get_filename to symbol_file_add_from_bfd.
13006
13007 2014-01-08 Pierre Muller <muller@sourceware.org>
13008
13009 Fix PR16201.
13010 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13011 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13012 to prim_record_mininal_symbol_and_info.
13013 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13014 in call to prim_record_minimal_symbol_and_info.
13015 (read_pe_exported_syms): Set index field of section_data.
13016
13017 2014-01-07 Andrew Pinski <apinski@cavium.com>
13018
13019 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13020 * features/aarch64.c: Regenerate.
13021
13022 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13023
13024 * target.c (return_null): Define.
13025 (update_current_target): Use it instead of return_zero for
13026 functions that return a pointer.
13027
13028 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13029
13030 * source.c (add_path): Fix check for duplicated paths in the previously
13031 included paths.
13032
13033 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13034
13035 * ada-lang.c: Remove duplicated include statements.
13036 * alphabsd-nat.c: Ditto.
13037 * amd64-darwin-tdep.c: Ditto.
13038 * amd64fbsd-nat.c: Ditto.
13039 * auto-load.c: Ditto.
13040 * ax-gdb.c: Ditto.
13041 * breakpoint.c: Ditto.
13042 * dbxread.c: Ditto.
13043 * fork-child.c: Ditto.
13044 * gdb_usleep.c: Ditto.
13045 * i386-darwin-tdep.c: Ditto.
13046 * i386fbsd-nat.c: Ditto.
13047 * infcmd.c: Ditto.
13048 * inferior.c: Ditto.
13049 * jv-lang.c: Ditto.
13050 * linux-nat.c: Ditto.
13051 * linux-tdep.c: Ditto.
13052 * m68kbsd-nat.c: Ditto.
13053 * m68klinux-nat.c: Ditto.
13054 * microblaze-tdep.c: Ditto.
13055 * mips-linux-tdep.c: Ditto.
13056 * mn10300-tdep.c: Ditto.
13057 * nto-tdep.c: Ditto.
13058 * opencl-lang.c: Ditto.
13059 * osdata.c: Ditto.
13060 * printcmd.c: Ditto.
13061 * regcache.c: Ditto.
13062 * remote-m32r-sdi.c: Ditto.
13063 * remote.c: Ditto.
13064 * symfile.c: Ditto.
13065 * symtab.c: Ditto.
13066 * tilegx-linux-nat.c: Ditto.
13067 * tilegx-tdep.c: Ditto.
13068 * tracepoint.c: Ditto.
13069 * valops.c: Ditto.
13070 * vaxbsd-nat.c: Ditto.
13071 * windows-nat.c: Ditto.
13072 * xtensa-tdep.c: Ditto.
13073
13074 2014-01-07 Yao Qi <yao@codesourcery.com>
13075
13076 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13077
13078 2014-01-07 Yao Qi <yao@codesourcery.com>
13079 Joel Brobecker <brobecker@adacore.com>
13080
13081 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13082 (pdc_write_regs): Likewise.
13083 (fetch_regs_kernel_thread): Likewise.
13084 (store_regs_kernel_thread): Likewise.
13085
13086 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13087
13088 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13089 tagged type objects to their actual type.
13090
13091 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13092
13093 * ada-valprint.c (print_field_values): Add "language" parameter.
13094 Update calls to print_field_values and print_variant_part.
13095 Pass new parameter "language" in call to val_print instead
13096 of "current_language". Replace call to ada_val_print by call
13097 to val_print.
13098 (print_variant_part): Add "language" parameter.
13099 (ada_val_print_struct_union): Update call to print_field_values.
13100
13101 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13102
13103 * ada-valprint.c (ui_memcpy): Delete.
13104 (ada_print_floating): Update documentation. Add empty line
13105 between between function documentation and implementation.
13106 Delete variable "buffer". Use ui_file_xstrdup in place of
13107 ui_file_put. Minor adjustments following this change.
13108
13109 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13110
13111 * ada-valprint.c (ada_val_print_string): New function,
13112 extracted from ada_val_print_array.
13113 (ada_val_print_array): Replace extracted code by call
13114 to ada_val_print_string followed by a return. Move
13115 "else" branch to the function's top block.
13116
13117 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13118
13119 * ada-valprint.c (ada_val_print_array): Move implementation
13120 down. Rename parameter "offset" and "val" into "offset_aligned"
13121 and "original_value" respectively. Add parameter "offset".
13122
13123 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13124
13125 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13126 re-organizing the code. Change the "???" message printed
13127 when target type is a TYPE_CODE_UNDEF into
13128 "<ref to undefined type>".
13129
13130 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13131
13132 * ada-valprint.c (print_record): Delete, implementation inlined...
13133 (ada_val_print_struct_union): ... here. Remove call to
13134 ada_check_typedef in inlined implementation.
13135
13136 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13137
13138 * ada-valprint.c (ada_val_print_gnat_array): New function,
13139 extracted from ada_val_print_1;
13140 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13141 (ada_val_print_flt, ada_val_print_struct_union)
13142 (ada_val_print_ref): Likewise.
13143 (ada_val_print_1): Delete variables i and elttype.
13144 Replace extracted-out code by call to corresponding
13145 new functions.
13146
13147 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13148
13149 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13150
13151 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13152
13153 * ada-valprint.c (ada_val_print_1): Replace calls to
13154 ada_val_print_1 by calls to val_print.
13155
13156 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13157
13158 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13159 Update calls to self accordingly. Replace calls to c_val_print
13160 by calls to val_print.
13161
13162 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13163
13164 * ada-valprint.c (print_record): Delete declaration.
13165 (adjust_type_signedness, ada_val_print_1): Likewise.
13166 (ada_val_print): Move function implementation down.
13167 (print_variant_part, print_field_values, print_record):
13168 Move function implementation up.
13169
13170 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13171
13172 * python/py-type.c (typy_get_name): New function.
13173 (type_object_getset): Add entry for attribute "name".
13174 * NEWS: Add entry mentioning this new attribute.
13175
13176 2014-01-07 Yao Qi <yao@codesourcery.com>
13177
13178 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13179 statement.
13180
13181 2014-01-07 Yao Qi <yao@codesourcery.com>
13182
13183 * gnu-nat.c (info_port_rights): Add qualifier const to
13184 argument args.
13185
13186 2014-01-07 Yao Qi <yao@codesourcery.com>
13187
13188 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13189
13190 2014-01-07 Yao Qi <yao@codesourcery.com>
13191
13192 * gnu-nat.c (make_inf) Update declaration.
13193 (make_inf): Make it static.
13194 (inf_set_traced): Likewise.
13195 (inf_port_to_thread, inf_task_died_status): Likewise.
13196
13197 2014-01-07 Yao Qi <yao@codesourcery.com>
13198
13199 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13200
13201 2014-01-07 Yao Qi <yao@codesourcery.com>
13202
13203 * gnu-nat.c (_initialize_gnu_nat): Declare.
13204
13205 2014-01-07 Yao Qi <yao@codesourcery.com>
13206
13207 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13208 'enum bfd_endian'.
13209 (struct gdbarch_info) <byte_order>: Change type to
13210 'enum bfd_endian'.
13211 <byte_order_for_code>: Likewise.
13212 * gdbarch.c, gdbarch.h: Regenerated.
13213
13214 2014-01-06 Sasha Smundak <asmundak@google.com>
13215
13216 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13217
13218 2014-01-06 Tom Tromey <tromey@redhat.com>
13219
13220 * doublest.c (convert_doublest_to_floatformat): Use const, not
13221 CONST.
13222 * somread.c (som_symtab_read): Likewise.
13223
13224 2014-01-07 Hui Zhu <hui@codesourcery.com>
13225
13226 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13227 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13228 (gdb_bfd_fopen): Ditto.
13229 (gdb_bfd_openr): Ditto.
13230 (gdb_bfd_openw): Ditto.
13231 (gdb_bfd_openr_iovec): Ditto.
13232 (gdb_bfd_fdopenr): Ditto.
13233 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13234 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13235 with xstrdup.
13236 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13237 with xstrdup.
13238 * symfile-mem.c (symbol_file_add_from_memory): Removed
13239 gdb_bfd_stash_filename.
13240
13241 2014-01-03 Doug Evans <dje@google.com>
13242
13243 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13244 output.
13245
13246 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13247
13248 Update year range in copyright notice of all files.
13249
13250 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13251
13252 * top.c (print_gdb_version): Set copyright year to 2014.
13253
13254 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13255
13256 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13257
13258 For older changes see ChangeLog-2013.
13259 \f
13260 Local Variables:
13261 mode: change-log
13262 left-margin: 8
13263 fill-column: 74
13264 version-control: never
13265 coding: utf-8
13266 End:
This page took 0.422527 seconds and 4 git commands to generate.