ALPHA: 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 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
4 (alpha_linux_iterate_over_regset_sections): New.
5 (alpha_linux_init_abi): Adjust gdbarch initialization.
6 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
7 prototype.
8 (alphanbsd_iterate_over_regset_sections): New prototype.
9
10 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
11
12 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
13 Remove.
14 (aarch64_linux_iterate_over_regset_sections): New.
15 (aarch64_linux_init_abi): Adjust gdbarch initialization.
16
17 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
18
19 * fbsd-tdep.c: New file.
20 * fbsd-tdep.h: New file.
21 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
22 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
23 (ALLDEPFILES): Add fbsd-tdep.c.
24
25 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
26
27 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
28 parameter.
29 * gdbarch.h: Regenerate.
30 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
31 iterator.
32 (get_core_register_section): Add parameter 'regset' and use it, if
33 set. Add parameter 'min_size' and verify the bfd section size
34 against it.
35 (get_core_registers_cb): Add parameter 'regset' and pass it to
36 get_core_register section. For the "standard" register sections
37 ".reg" and ".reg2", set an appropriate default for human_name.
38 (get_core_registers): Don't abort when the gdbarch has an iterator
39 but no regset_from_core_section. Add NULL/0 for parameters
40 'regset'/'min_size' in calls to get_core_register_section.
41 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
42 'regset' and use it instead of calling the
43 regset_from_core_section gdbarch method.
44 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
45 * i386-tdep.c (i386_supply_xstateregset)
46 (i386_collect_xstateregset, i386_xstateregset): Moved to
47 i386-linux-tdep.c.
48 (i386_regset_from_core_section): Drop handling for .reg-xfp and
49 .reg-xstate.
50 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
51 core file support only if the regset iterator hasn't been set.
52 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
53 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
54 Moved from i386-tdep.c and renamed to *_linux*.
55 (i386_linux_iterate_over_regset_sections): Add regset parameter to
56 each callback invocation. Allow any .reg-xstate size when reading
57 from a core file.
58 * amd64-tdep.c (amd64_supply_xstateregset)
59 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
60 amd64-linux-tdep.c.
61 (amd64_regset_from_core_section): Remove.
62 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
63 install an amd64-specific regset_from_core_section gdbarch method.
64 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
65 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
66 Moved from amd64-tdep.c and renamed to *_linux*.
67 (amd64_linux_iterate_over_regset_sections): Add regset parameter
68 to each callback invocation. Allow any .reg-xstate size when
69 reading from a core file.
70 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
71 (arm_linux_iterate_over_regset_sections): Add regset parameter to
72 each callback invocation.
73 (arm_linux_init_abi): No longer set the regset_from_core_section
74 gdbarch method.
75 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
76 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
77 each callback invocation.
78 (ppc_linux_init_abi): No longer set the regset_from_core_section
79 gdbarch method.
80 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
81 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
82 (s390_regset_from_core_section): Remove.
83 (s390_iterate_over_regset_sections): Add regset parameter to each
84 callback invocation.
85 (s390_gdbarch_init): No longer set the regset_from_core_section
86 gdbarch method. Drop initialization of deleted tdep fields.
87
88 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
89
90 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
91 (amd64_linux_iterate_over_regset_sections): New.
92 (amd64_linux_init_abi_common): Don't install the regset section
93 list, but the new iterator in gdbarch.
94 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
95 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
96 (arm_linux_iterate_over_regset_sections): ...here. New function.
97 (arm_linux_init_abi): Set iterator instead of section list.
98 * corelow.c (get_core_registers_cb): New function, logic moved
99 from...
100 (get_core_registers): ...loop body here. Use new iterator method
101 instead of walking through the regset section list.
102 * gdbarch.sh: Remove 'core_regset_sections'. New method
103 'iterate_over_regset_sections'. New typedef
104 'iterate_over_regset_sections_cb'.
105 * gdbarch.c: Regenerate.
106 * gdbarch.h: Likewise.
107 * i386-linux-tdep.c (i386_linux_regset_sections)
108 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
109 Remove.
110 (i386_linux_iterate_over_regset_sections): New.
111 (i386_linux_init_abi): Don't choose a regset section list, but
112 install new iterator in gdbarch.
113 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
114 (linux_collect_regset_section_cb): New function, logic moved
115 from...
116 (linux_collect_thread_registers): ...loop body here. Use iterator
117 method instead of walking through list.
118 (linux_make_corefile_notes_1): Check for presence of iterator
119 method instead of regset section list.
120 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
121 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
122 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
123 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
124 (ppc_linux_iterate_over_regset_sections): ...here. New function.
125 (ppc_linux_init_abi): Don't choose from above regset section
126 lists, but install new iterator in gdbarch.
127 * regset.h (struct core_regset_section): Remove.
128 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
129 have_linux_v1, have_linux_v2, and have_tdb.
130 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
131 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
132 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
133 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
134 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
135 (s390_iterate_over_regset_sections): ...here. New function. Use
136 new tdep fields.
137 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
138 regset section lists, but install new iterator.
139
140 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
141
142 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
143
144 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
145
146 * progspace.c (print_program_space): Don't prune program spaces
147 before printing them.
148
149 2014-09-25 Pedro Alves <palves@redhat.com>
150
151 * infrun.c (user_visible_resume_ptid): Don't check
152 singlestep_breakpoints_inserted_p.
153
154 2014-09-25 Pedro Alves <palves@redhat.com>
155
156 * breakpoint.c (should_be_inserted): Add debug output.
157
158 2014-09-25 Pedro Alves <palves@redhat.com>
159
160 * infrun.c (stepping_past_instruction_at)
161 (clear_exit_convenience_vars): Point at infrun.h instead of
162 inferior.h.
163 (handle_signal_stop): Fix typo.
164
165 2014-09-24 Yao Qi <yao@codesourcery.com>
166
167 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
168 bitmask.
169
170 2014-09-22 Gary Benson <gbenson@redhat.com>
171
172 * target.c (target_stop): Updated comment.
173
174 2014-09-22 Gary Benson <gbenson@redhat.com>
175
176 * target/target.h (target_stop_ptid): Renamed as...
177 (target_stop_and_wait): New function. Updated comment.
178 All uses updated.
179 (target_continue_ptid): Renamed as...
180 (target_continue_no_signal): New function. Updated comment.
181 All uses updated.
182
183 2014-09-22 Pedro Alves <palves@redhat.com>
184
185 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
186 and "auto" merged.
187 * breakpoint.c (enum ugll_insert_mode): New enum.
188 (always_inserted_mode): Now a plain boolean.
189 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
190 (breakpoints_always_inserted_mode): Delete.
191 (breakpoints_should_be_inserted_now): New function.
192 (insert_breakpoints): Pass UGLL_INSERT to
193 update_global_location_list instead of calling
194 insert_breakpoint_locations manually.
195 (create_solib_event_breakpoint_1): New, factored out from ...
196 (create_solib_event_breakpoint): ... this.
197 (create_and_insert_solib_event_breakpoint): Use
198 create_solib_event_breakpoint_1 instead of calling
199 insert_breakpoint_locations manually.
200 (update_global_location_list): Change parameter type from boolean
201 to enum ugll_insert_mode. All callers adjusted. Adjust to use
202 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
203 (update_global_location_list_nothrow): Change parameter type from
204 boolean to enum ugll_insert_mode.
205 (_initialize_breakpoint): "breakpoint always-inserted" option is
206 now a boolean command. Update help text.
207 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
208 (breakpoints_should_be_inserted_now): New declaration.
209 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
210 Remove breakpoints_always_inserted_mode check.
211 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
212 * remote.c (remote_start_remote): Likewise.
213
214 2014-09-22 Pedro Alves <palves@redhat.com>
215
216 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
217 (insert_breakpoints): Don't call insert_breakpoint_locations here.
218 Instead, pass UGLL_INSERT to update_global_location_list.
219 (update_global_location_list): Change parameter type from boolean
220 to enum ugll_insert_mode. All callers adjusted. Adjust to use
221 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
222 (create_solib_event_breakpoint_1): New, factored out from ...
223 (create_solib_event_breakpoint): ... this.
224 (create_and_insert_solib_event_breakpoint): Use
225 create_solib_event_breakpoint_1 instead of calling
226 insert_breakpoint_locations manually.
227 (update_global_location_list): Handle UGLL_INSERT.
228
229 2014-09-22 Pedro Alves <palves@redhat.com>
230
231 * breakpoint.c (enum ugll_insert_mode): New enum.
232 (update_global_location_list)
233 (update_global_location_list_nothrow): Change parameter type from
234 boolean to enum ugll_insert_mode. All callers adjusted.
235
236 2014-09-19 Joel Brobecker <brobecker@adacore.com>
237
238 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
239 SystemTap support in GDB.
240
241 2014-09-19 Don Breazeal <donb@codesourcery.com>
242
243 * linux-nat.c (linux_handle_extended_wait): Call
244 linux_ptrace_get_extended_event.
245 (wait_lwp): Call linux_is_extended_waitstatus.
246 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
247 and linux_is_extended_waitstatus.
248 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
249 linux_ptrace_get_extended_event.
250 (linux_ptrace_get_extended_event): New function.
251 (linux_is_extended_waitstatus): New function.
252 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
253 (linux_is_extended_waitstatus): New declarations.
254
255 2014-09-19 Yao Qi <yao@codesourcery.com>
256
257 * dwarf2read.c (dwarf_decode_lines): Update declaration.
258 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
259 comments. Callers update.
260 (dwarf_decode_lines): Likewise.
261 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
262 comments. Skip the line table if 'lowpc' is greater than
263 'address'. Don't check
264 dwarf2_per_objfile->has_section_at_zero.
265
266 2014-09-18 Doug Evans <dje@google.com>
267
268 * NEWS: Mention new "producer" attribute of gdb.Symtab.
269 * python/py-symtab.c (stpy_get_producer): New function.
270 (symtab_object_getset): Add "producer" attribute.
271
272 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
273
274 PR gdb/17384
275 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
276 (do_captured_read_memory_integer): Remove.
277 (safe_read_memory_integer): Use target_read_memory directly instead
278 of catching errors in do_captured_read_memory_integer.
279
280 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
281
282 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
283 not gdb/doc.
284
285 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
286
287 * objc-lang.c (find_implementation_from_class): Remove dead code.
288
289 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
290
291 PR cli/7233
292 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
293 "fprintf_unfiltered (gdb_stdlog...)".
294
295 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
296
297 PR breakpoints/12526
298 * breakpoint.h (struct watchpoint): New fields val_bitpos and
299 val_bitsize.
300 * breakpoint.c (watch_command_1): Use these fields to retain
301 bitfield information.
302 (extract_bitfield_from_watchpoint_value): New function.
303 (watchpoint_check): Use it.
304 (update_watchpoint): Use it. Optimize the address and length of a
305 HW watchpoint pointing to a bitfield.
306 * value.h (unpack_value_bitfield): New prototype.
307 * value.c (unpack_value_bitfield): Make extern.
308
309 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
310
311 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
312 x86-dregs.o.
313 * gnu-nat.c (inf_threads): New function.
314 * gnu-nat.h (inf_threads_ftype): New typedef.
315 (inf_threads): New declaration.
316 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
317 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
318 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
319 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
320 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
321 (i386_gnu_dr_get_control): New functions.
322 (reg_addr): New structure.
323 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
324 i386 debugging register hooks.
325 * NEWS: Mention this.
326
327 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
328
329 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
330 vector data transfer instructions.
331 (arm_record_coproc_data_proc): Updated.
332
333 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
334
335 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
336 arm_record_exreg_ld_st_insn.
337 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
338 load/store insns.
339
340 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
341
342 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
343 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
344 processing instructions.
345
346 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
347
348 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
349 for advance SIMD struct ld/st insn.
350 (thumb2_record_decode_insn_handler): Replace stub handler with
351 thumb2_record_asimd_struct_ld_st.
352
353 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
354
355 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
356 for asimd, vfp and coprocessor insns.
357 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
358 and coprocessor insns.
359 (thumb2_record_coproc_insn): New function.
360 (thumb2_record_decode_insn_handler): Update coprocessor insns record
361 handlers.
362 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
363 opcode 110 insns.
364
365 2014-09-13 Doug Evans <xdje42@gmail.com>
366
367 * NEWS: Mention new "queue-signal" command.
368 * infcmd.c (queue_signal_command): New function.
369 (_initialize_infcmd): Add new queue-signal command.
370
371 2014-09-13 Doug Evans <xdje42@gmail.com>
372
373 * linux-nat.c (wait_lwp): Add debugging printf.
374 (linux_nat_wait_1): Ditto.
375
376 2014-09-12 Pedro Alves <palves@redhat.com>
377
378 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
379 (create_and_insert_solib_event_breakpoint): New functions.
380 * breakpoint.h (create_and_insert_solib_event_breakpoint)
381 (remove_solib_event_breakpoints_at_next_stop): New declarations.
382 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
383 (remove_dbx_link_breakpoint): Delete function.
384 (insert_dbx_link_bpt_in_file): Use
385 create_and_insert_solib_event_breakpoint instead of
386 deprecated_insert_raw_breakpoint.
387 (procfs_wait): Don't check whether we hit __dbx_link here.
388 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
389 here.
390 * solib-irix.c (base_breakpoint): Delete global.
391 (disable_break): Delete function.
392 (enable_break): Use create_solib_event_breakpoint
393 instead of deprecated_insert_raw_breakpoint.
394 (irix_solib_handle_event): New function.
395 (irix_solib_create_inferior_hook): Don't run the target or disable
396 the mapping-complete breakpoint here.
397 (_initialize_irix_solib): Install irix_solib_handle_event as
398 so_ops->handle_event hook.
399
400 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
401 Ulrich Weigand  <uweigand@de.ibm.com>
402
403 PR tdep/17379
404 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
405 instead of read_memory_unsigned_integer.
406
407 2014-09-12 Gary Benson <gbenson@redhat.com>
408
409 * nat/linux-waitpid.c: Include common-defs.h.
410 [GDBSERVER]: Add FIXME comment.
411 [!GDBSERVER]: Don't include defs.h or signal.h.
412 (linux_debug) [!GDBSERVER]: Remove empty block.
413
414 2014-09-12 Gary Benson <gbenson@redhat.com>
415
416 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
417 Don't include defs.h or server.h.
418
419 2014-09-12 Gary Benson <gbenson@redhat.com>
420
421 * nat/linux-btrace.c: Include common-defs.h.
422 Don't include defs.h, server.h or gdbthread.h.
423 * nat/linux-btrace.h (struct target_ops): New forward declaration.
424
425 2014-09-12 Gary Benson <gbenson@redhat.com>
426
427 * common/agent.c: Include common-defs.h.
428 Don't include defs.h or server.h.
429 * common/buffer.c: Likewise.
430 * common/common-debug.c: Likewise.
431 * common/common-utils.c: Likewise.
432 * common/errors.c: Likewise.
433 * common/filestuff.c: Likewise.
434 * common/format.c: Likewise.
435 * common/gdb_vecs.c: Likewise.
436 * common/print-utils.c: Likewise.
437 * common/ptid.c: Likewise.
438 * common/rsp-low.c: Likewise.
439 * common/signals.c: Likewise.
440 * common/vec.c: Likewise.
441 * common/xml-utils.c: Likewise.
442 * nat/linux-osdata.c: Likewise.
443 * nat/linux-procfs.c: Likewise.
444 * nat/linux-ptrace.c: Likewise.
445 * nat/mips-linux-watch.c: Likewise.
446 * target/waitstatus.c: Likewise.
447
448 2014-09-12 Tom Tromey <tromey@redhat.com>
449 Gary Benson <gbenson@redhat.com>
450
451 * common/common-regcache.h: New file.
452 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
453 * regcache.h: Include common-regcache.h.
454 (regcache_read_pc): Don't declare.
455 * regcache.c (get_thread_regcache_for_ptid): New function.
456 * nat/linux-btrace.c: Don't include regcache.h.
457 Include common-regcache.h.
458 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
459
460 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
461
462 * regcache.h (struct regset): Declare.
463
464 2014-09-11 Pedro Alves <palves@redhat.com>
465
466 PR gdb/17347
467 * main.c: Include "infrun.h".
468 (catch_command_errors, catch_command_errors_const): Wait for the
469 foreground command to complete.
470 * top.c (maybe_wait_sync_command_done): New function, factored out
471 from ...
472 (maybe_wait_sync_command_done): ... here.
473 * top.h (maybe_wait_sync_command_done): New declaration.
474
475 2014-09-11 Tom Tromey <tromey@redhat.com>
476 Gary Benson <gbenson@redhat.com>
477
478 * common/symbol.h: New file.
479 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
480 * minsyms.c (find_minimal_symbol_address): New function.
481 * common/agent.c: Include common/symbol.h.
482 [!GDBSERVER]: Don't include objfiles.h.
483 (agent_look_up_symbols): Use find_minimal_symbol_address.
484
485 2014-09-11 Gary Benson <gbenson@redhat.com>
486
487 * target/target.h (target_stop_ptid, target_continue_ptid):
488 Declare.
489 * target.c (target_stop_ptid, target_continue_ptid): New
490 functions.
491 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
492 (agent_run_command): Always use target_stop_ptid and
493 target_continue_ptid.
494
495 2014-09-11 Tom Tromey <tromey@redhat.com>
496 Gary Benson <gbenson@redhat.com>
497
498 * target/target.h: New file.
499 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
500 * target.h: Include target/target.h.
501 (target_read_memory, target_write_memory): Don't declare.
502 * target.c (target_read_uint32): New function.
503 * common/agent.c: Include target/target.h.
504 [!GDBSERVER]: Don't include target.h.
505 (helper_thread_id): Type changed to uint32_t.
506 (agent_get_helper_thread_id): Use target_read_uint32.
507 (agent_run_command): Always use target_read_memory and
508 target_write_memory.
509 (agent_capability): Type changed to uint32_t.
510 (agent_capability_check): Use target_read_uint32.
511
512 2014-09-11 Gary Benson <gbenson@redhat.com>
513
514 * common/common-debug.h (show_debug_regs): Declare.
515 * common/common-debug.c (show_debug_regs): Define.
516 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
517 all uses with show_debug_regs. Replace all uses that considered
518 debug_hw_points as a multi-value integer with straight boolean
519 uses.
520 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
521 with show_debug_regs.
522 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
523 all uses with show_debug_regs.
524 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
525 uses with show_debug_regs.
526
527 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
528
529 * findvar.c (address_from_register): Handle targets requiring
530 a special conversion routine even for plain pointer types.
531
532 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
533
534 * rs6000-nat.c (exec_one_dummy_insn): Remove.
535 (store_register): Do not call exec_one_dummy_insn.
536
537 2014-09-10 Joel Brobecker <brobecker@adacore.com>
538
539 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
540 dereference it first. Use value_enclosing_type instead of
541 value_type.
542 (ada_array_length): Likewise.
543
544 2014-09-10 Joel Brobecker <brobecker@adacore.com>
545
546 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
547 Adjust function implementation and documentation accordingly.
548 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
549 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
550 Update call to ada_value_ptr_subscript.
551
552 2014-09-10 Joel Brobecker <brobecker@adacore.com>
553
554 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
555 instead of VAL's type.
556
557 2014-09-10 Joel Brobecker <brobecker@adacore.com>
558
559 * amd64-linux-nat.c: Add <sys/uio.h> #include.
560
561 2014-09-09 Doug Evans <xdje42@gmail.com>
562
563 PR guile/17367
564 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
565 last parameter to pkg-config, not first.
566 * configure.ac: Pass --with-guile provided pkg-config path to
567 GDB_GUILE_PROGRAM_NAMES.
568 * configure: Regenerate.
569
570 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
571
572 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
573 Bertazi".
574
575 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
576
577 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
578 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
579 the list of sections determining GDB_OSABI_IRIX.
580
581 2014-09-09 James Hogan <james.hogan@imgtec.com>
582
583 * MAINTAINERS (Write After Approval): Add "James Hogan".
584
585 2014-09-09 James Hogan <james.hogan@imgtec.com>
586
587 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
588
589 2014-09-09 Joel Brobecker <brobecker@adacore.com>
590
591 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
592
593 2014-09-08 Doug Evans <xdje42@gmail.com>
594
595 PR 17247
596 * guile.c: #include <signal.h>.
597 (_initialize_guile): Block SIGCHLD while initializing Guile.
598
599 Replaces the following, which is reverted.
600
601 2014-07-26 Doug Evans <xdje42@gmail.com>
602
603 PR 17185
604 * configure.ac: Add check for header gc/gc.h.
605 Add check for function setenv.
606 * configure: Regenerate.
607 * config.in: Regenerate.
608 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
609
610 2014-09-08 Doug Evans <xdje42@gmail.com>
611
612 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
613 with named constant. Fix style of pointer comparison.
614 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
615
616 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
617
618 PR gdb/17035
619 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
620 decide whether we display the command on "show user".
621 * cli/cli-script.c (show_user_1): Only verify cmdlines after
622 printing command name.
623 * cli/cli-decode.h (cli_user_command_p): Declare new function.
624 * cli/cli-decode.c (cli_user_command_p): Create helper function
625 to verify whether cmd_list_element is a user-defined command.
626
627 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
628
629 PR python/17355
630 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
631 Fix goto out of TRY_CATCH.
632
633 2014-09-06 Doug Evans <xdje42@gmail.com>
634 Tom Tromey <tromey@redhat.com>
635
636 PR 15276
637 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
638 $_any_caller_matches.
639 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
640 * python/lib/gdb/function/caller_is.py: New file.
641
642 2014-09-06 Doug Evans <xdje42@gmail.com>
643
644 * infcmd.c (program_info): Fix typo.
645
646 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
647
648 PR gdb/17235
649 * stap-probe.c (stap_parse_single_operand): Delete unused variable
650 'number'. New variable 'has_digit'. Rewrite code to deal with
651 subexpressions on SDT probes.
652
653 2014-09-04 Pedro Alves <palves@redhat.com>
654
655 * c-exp.y (parse_number): Skip handling base-switching prefixes if
656 the input is only one character long.
657
658 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
659
660 PR fortran/17237
661 * f-valprint.c (f_val_print): Specify the correct print option to
662 use when printing integer values.
663
664 2014-09-04 Gary Benson <gbenson@redhat.com>
665
666 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
667 Remove code to cope with LWPs wrapped as PIDs.
668 Add assertions to ensure no wrapped LWPs are passed.
669
670 2014-09-04 Pedro Alves <palves@redhat.com>
671
672 * value.c (value_ranges_copy_adjusted): New function, factored out
673 from ...
674 (value_contents_copy_raw): ... here.
675 (unpack_value_bits_as_long_1): Rename back to ...
676 (unpack_bits_as_long): ... this. Remove 'original_value' and
677 'result' parameters. Change return type to LONGEST.
678 (unpack_value_bits_as_long): Delete.
679 (unpack_value_field_as_long_1): Delete.
680 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
681 (unpack_value_bitfield): New function.
682 (value_field_bitfield): Reimplement using unpack_value_bitfield.
683 (value_fetch_lazy): Use unpack_value_bitfield.
684 * value.h (unpack_value_bits_as_long): Delete declaration.
685
686 2014-09-03 Sasha Smundak <asmundak@google.com>
687
688 * python/py-frame.c (frapy_read_register): New function.
689
690 2014-09-03 James Hogan <james.hogan@imgtec.com>
691
692 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
693 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
694
695 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
696
697 PR python/16699
698 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
699 function.
700 (add_cmd): Set "completer_handle_brkchars" to NULL.
701 * cli/cli-decode.h (struct cmd_list_element)
702 <completer_handle_brkchars>: New field.
703 * command.h (completer_ftype_void): New typedef.
704 (set_cmd_completer_handle_brkchars): New prototype.
705 * completer.c (set_gdb_completion_word_break_characters): New
706 function.
707 (complete_line_internal): Call "completer_handle_brkchars"
708 callback from command.
709 * completer.h: Include "command.h".
710 (set_gdb_completion_word_break_characters): New prototype.
711 * python/py-cmd.c (cmdpy_completer_helper): New function.
712 (cmdpy_completer_handle_brkchars): New function.
713 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
714 (cmdpy_init): Set completer_handle_brkchars to
715 cmdpy_completer_handle_brkchars.
716
717 2014-09-03 Gary Benson <gbenson@redhat.com>
718
719 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
720 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
721 Loop conditions changed to equivalent form.
722 (struct x86_debug_reg_state): Updated dr_ref_count comment.
723 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
724 ALL_DEBUG_ADDRESS_REGISTERS.
725
726 2014-09-03 Joel Brobecker <brobecker@adacore.com>
727
728 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
729 description fix.
730
731 2014-09-02 Doug Evans <dje@google.com>
732
733 * typeprint.c (find_global_typedef): Fix comment.
734
735 2014-09-02 Gary Benson <gbenson@redhat.com>
736
737 * i386-nat.h: Renamed as...
738 * x86-nat.h: New file. All type, function and variable name
739 prefixes changed from "i386_" to "x86_". All references updated.
740 * i386-nat.c: Renamed as...
741 * x86-nat.c: New file. All type, function and variable name
742 prefixes changed from "i386_" to "x86_". All references updated.
743 * common/i386-xstate.h: Renamed as...
744 * common/x86-xstate.h: New file. All type, function and variable
745 name prefixes changed from "i386_" to "x86_". All references
746 updated.
747 * nat/i386-cpuid.h: Renamed as...
748 * nat/x86-cpuid.h: New file. All type, function and variable name
749 prefixes changed from "i386_" to "x86_". All references updated.
750 * nat/i386-gcc-cpuid.h: Renamed as...
751 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
752 name prefixes changed from "i386_" to "x86_". All references
753 updated.
754 * nat/i386-dregs.h: Renamed as...
755 * nat/x86-dregs.h: New file. All type, function and variable name
756 prefixes changed from "i386_" to "x86_". All references updated.
757 * nat/i386-dregs.c: Renamed as...
758 * nat/x86-dregs.c: New file. All type, function and variable name
759 prefixes changed from "i386_" to "x86_". All references updated.
760
761 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
762
763 * varobj.c (_initialize_varobj): Move to the end of file.
764
765 2014-08-29 Gary Benson <gbenson@redhat.com>
766
767 * common/common-exceptions.h: New file.
768 * common/common-exceptions.c: Likewise.
769 * Makefile.in (SFILES): Add common/common-exceptions.c.
770 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
771 (COMMON_OBS): Add common-exceptions.o.
772 (common-exceptions.o): New rule.
773 * exceptions.h (common-exceptions.h): Include.
774 (gdb_setjmp.h): Do not include.
775 (return_reason): Moved to common-exceptions.h.
776 (enum return_reason): Likewise.
777 (RETURN_MASK): Likewise.
778 (typedef return_mask): Likewise.
779 (enum errors): Likewise.
780 (struct gdb_exception): Likewise.
781 (exceptions_state_mc_init): Likewise.
782 (exceptions_state_mc_action_iter): Likewise.
783 (exceptions_state_mc_action_iter_1): Likewise.
784 (TRY_CATCH): Likewise.
785 (throw_exception): Likewise.
786 (throw_verror): Likewise.
787 (throw_vquit): Likewise.
788 (throw_error): Likewise.
789 (throw_quit): Likewise.
790 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
791 (enum catcher_action): Likewise.
792 (struct catcher): Likewise.
793 (current_catcher): Likewise.
794 (catcher_list_size): Likewise.
795 (exceptions_state_mc_init): Likewise.
796 (catcher_pop): Likewise.
797 (exceptions_state_mc): Likewise.
798 (exceptions_state_mc_action_iter): Likewise.
799 (exceptions_state_mc_action_iter_1): Likewise.
800 (throw_exception): Likewise.
801 (exception_messages): Likewise.
802 (exception_messages_size): Likewise.
803 (throw_it): Likewise.
804 (throw_verror): Likewise.
805 (throw_vquit): Likewise.
806 (throw_error): Likewise.
807 (throw_quit): Likewise.
808 (prepare_to_throw_exception): New function.
809
810 2014-08-29 Gary Benson <gbenson@redhat.com>
811
812 * common/gdb_setjmp.h: New file.
813 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
814 * configure.ac: Move sigsetjmp check...
815 * common/common.m4: ...here.
816 * configure: Regenerate.
817 * cp-support.c (SIGJMP_BUF): Delete.
818 (SIGSETJMP): Likewise.
819 (SIGLONGJMP): Likewise.
820 * exceptions.h (gdb_setjmp.h): Include.
821 (setjmp.h): Do not include.
822 (EXCEPTIONS_SIGJMP_BUF): Delete.
823 (EXCEPTIONS_SIGSETJMP): Likewise.
824 (EXCEPTIONS_SIGLONGJMP): Likewise.
825 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
826 from gdb_setjmp.h.
827 * exceptions.c: Likewise.
828
829 2014-08-29 Gary Benson <gbenson@redhat.com>
830
831 * cleanups.h: Moved to...
832 * common/cleanups.h: New file.
833 * cleanups.c: Moved to...
834 * common/cleanups.c: New file. Include common-defs.h and
835 cleanups.h. Do not include defs.h.
836 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
837 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
838 (cleanups.o): New rule.
839
840 2014-08-29 Gary Benson <gbenson@redhat.com>
841
842 * common/errors.h (internal_warning): New declaration.
843 (internal_vwarning): Likewise.
844 * common/errors.c (internal_warning): New function.
845 * utils.h (internal_warning): Don't declare.
846 (internal_vwarning): Likewise.
847 * utils.c (internal_warning): Removed.
848
849 2014-08-29 Gary Benson <gbenson@redhat.com>
850
851 * main.c (captured_main): Use warning during startup.
852 Prefix startup warning messages with command name.
853
854 2014-08-29 Gary Benson <gbenson@redhat.com>
855
856 * main.c (captured_main): Handle usage errors with error.
857
858 2014-08-29 Gary Benson <gbenson@redhat.com>
859
860 * go32-nat.c (go32_create_inferior): Replace a fprintf/
861 exit pair with a call to error. Wrap the message with _().
862
863 2014-08-29 Gary Benson <gbenson@redhat.com>
864
865 * main.c (captured_main): Replace a fprintf/exit
866 pair with a call to error. Wrap the message with _().
867
868 2014-08-29 Gary Benson <gbenson@redhat.com>
869
870 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
871 pairs with calls to error. Wrap the message with _().
872
873 2014-08-29 Gary Benson <gbenson@redhat.com>
874
875 * utils.c (vwarning): Protect calls to target_terminal_ours
876 and wrap_here.
877
878 2014-08-29 Gary Benson <gbenson@redhat.com>
879
880 * exceptions.c (print_flush): Protect calls to
881 target_terminal_ours and wrap_here.
882
883 2014-08-29 Gary Benson <gbenson@redhat.com>
884
885 * utils.h (filtered_printing_initialized): New declaration.
886 * utils.c (abort_with_message): New function.
887 (internal_vproblem): Use abort_with_message for first level
888 recursive internal problems, and if gdb_stderr is not set up.
889 Protect calls to target_terminal_ours, begin_line and query.
890
891 2014-08-28 Doug Evans <dje@google.com>
892
893 * symtab.c (in_prologue): Move definition to better spot.
894 (skip_prologue_using_sal): Ditto.
895
896 2014-08-28 Doug Evans <dje@google.com>
897
898 * symtab.c (find_function_start_sal): Move definition to better spot.
899
900 2014-08-28 Yao Qi <yao@codesourcery.com>
901
902 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
903 found_stack_adjust in forward scan. Remove condition check
904 on found_stack_adjust which is always true. Indent the code.
905
906 2014-08-28 Yao Qi <yao@codesourcery.com>
907
908 * dwarf2read.c (dwarf_decode_lines): Update declaration.
909 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
910 (dwarf_decode_lines): Remove argument
911 want_line_info. Remove condition check on want_line_info.
912 Callers update.
913
914 2014-08-27 Doug Evans <dje@google.com>
915
916 * dwarf2read.c (dwarf_record_line): Fix typo.
917
918 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
919
920 * target.h (struct target_ops::to_terminal_save_ours): Remove
921 declaration.
922 (target_terminal_save_ours): Remove macro.
923 * target-delegates.c: Regenerate.
924 * inf-child.c (inf_child_target): Don't set the nonexistent
925 field to_terminal_save_ours.
926 * inferior.h (child_terminal_save_ours): Remove declaration.
927 * terminal.h (gdb_save_tty_state): New declaration.
928 * inflow.c (child_terminal_save_ours): Rename to ...
929 (gdb_save_tty_state): ... this.
930 * tui/tui.c: Include terminal.h.
931 (tui_enable): Use gdb_save_tty_state instead of
932 target_terminal_save_ours.
933 (tui_disable): Likewise.
934
935 2014-08-25 Doug Evans <dje@google.com>
936
937 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
938 Pass NULL instead of 0 for context pointer.
939
940 2014-08-25 Yao Qi <yao@codesourcery.com>
941
942 * dwarf2read.c: Fix grammatical error.
943
944 2014-08-24 Yao Qi <yao@codesourcery.com>
945
946 * dwarf2read.c (scan_partial_symbols): Update comments.
947 Rename argument 'need_pc' with 'set_addrmap'.
948 (add_partial_namespace): Rename argument 'need_pc' with
949 'set_addrmap'.
950 (add_partial_module): Likewise.
951 (add_partial_subprogram): Likewise. Update comments.
952 (dwarf2_name): Fix typo.
953
954 2014-08-22 Doug Evans <dje@google.com>
955
956 PR 17276
957 * dwarf2read.c (dwarf_record_line_p): New function.
958 (dwarf_decode_lines_1): Ignore subsequent line number entries
959 for the same line if any entry had a non-zero discriminator.
960
961 2014-08-22 Doug Evans <dje@google.com>
962
963 * buildsym.h (record_line_ftype): New typedef.
964 (record_line): Use it.
965 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
966 (dwarf_decode_lines_1): Call them.
967
968 2014-08-22 Yao Qi <yao@codesourcery.com>
969
970 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
971 (ctf_end): Remove code.
972
973 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
974
975 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
976 (linux_make_corefile_notes): call update_thread_list, protected against
977 exceptions.
978
979 2014-08-21 Pedro Alves <palves@redhat.com>
980
981 * infcmd.c (attach_command): Remove comment.
982
983 2014-08-21 Bin Cheng <bin.cheng@arm.com>
984
985 * aarch64-linux-nat.c (dr_changed_t): Change the type from
986 unsigned LONGEST to ULONGEST.
987
988 2014-08-20 Pedro Alves <palves@redhat.com>
989
990 * Makefile.in (check-read1): New rule.
991
992 2014-08-20 Joel Brobecker <brobecker@adacore.com>
993
994 * value.c (value_from_contents_and_address): Strip resolved_type's
995 typedef layers before checking its TYPE_DATA_LOCATION.
996
997 2014-08-20 Pedro Alves <palves@redhat.com>
998
999 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1000
1001 2014-08-20 Yao Qi <yao@codesourcery.com>
1002
1003 * amd64-tdep.c (amd64_classify): Add a blank line after the
1004 example. Move "*/" to a new line.
1005 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1006 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1007 * dwarf2read.c (psymtab_include_file_name): Likewise.
1008
1009 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1010 Pedro Alves <palves@redhat.com>
1011
1012 PR symtab/14604
1013 PR symtab/14605
1014 * ada-lang.c (coerce_unspec_val_to_type): Use
1015 value_contents_copy_raw.
1016 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1017 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1018 * cp-valprint.c (cp_print_value_fields): Let the common printing
1019 code handle optimized out values.
1020 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1021 * d-valprint.c (dynamic_array_type): Use
1022 value_bits_any_optimized_out.
1023 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1024 check_any_valid fields.
1025 (check_pieced_value_bits): Delete and inline ...
1026 (check_pieced_synthetic_pointer): ... here.
1027 (check_pieced_value_validity): Delete.
1028 (check_pieced_value_invalid): Delete.
1029 (pieced_value_funcs): Remove check_validity and check_any_valid
1030 fields.
1031 (read_pieced_value): Use mark_value_bits_optimized_out.
1032 (write_pieced_value): Switch to use
1033 mark_value_bytes_optimized_out.
1034 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1035 of assuming the whole value is optimized out.
1036 * findvar.c (read_frame_register_value): Remove special handling
1037 of optimized out registers.
1038 (value_from_register): Use mark_value_bytes_optimized_out.
1039 * frame-unwind.c (frame_unwind_got_optimized): Use
1040 mark_value_bytes_optimized_out.
1041 * jv-valprint.c (java_value_print): Adjust.
1042 (java_print_value_fields): Let the common printing code handle
1043 optimized out values.
1044 * mips-tdep.c (mips_print_register): Remove special handling of
1045 optimized out registers.
1046 * opencl-lang.c (lval_func_check_validity): Delete.
1047 (lval_func_check_any_valid): Delete.
1048 (opencl_value_funcs): Remove check_validity and check_any_valid
1049 fields.
1050 * p-valprint.c (pascal_object_print_value_fields): Let the common
1051 printing code handle optimized out values.
1052 * stack.c (read_frame_arg): Remove special handling of optimized
1053 out values. Fetch both VAL and ENTRYVAL before comparing
1054 contents. Adjust to value_available_contents_eq rename.
1055 * valprint.c (valprint_check_validity)
1056 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1057 (val_print_array_elements): Adjust.
1058 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1059 (value_bits_any_optimized_out): New function.
1060 (value_entirely_covered_by_range_vector): New function, factored
1061 out from value_entirely_unavailable.
1062 (value_entirely_unavailable): Reimplement.
1063 (value_entirely_optimized_out): New function.
1064 (insert_into_bit_range_vector): New function, factored out from
1065 mark_value_bits_unavailable.
1066 (mark_value_bits_unavailable): Reimplement.
1067 (struct ranges_and_idx): New struct.
1068 (find_first_range_overlap_and_match): New function, factored out
1069 from value_available_contents_bits_eq.
1070 (value_available_contents_bits_eq): Rename to ...
1071 (value_contents_bits_eq): ... this. Check both unavailable
1072 contents and optimized out contents.
1073 (value_available_contents_eq): Rename to ...
1074 (value_contents_eq): ... this.
1075 (allocate_value_lazy): Remove reference to the old optimized_out
1076 boolean.
1077 (allocate_optimized_out_value): Use
1078 mark_value_bytes_optimized_out.
1079 (require_not_optimized_out): Adjust to check whether the
1080 optimized_out vec is empty.
1081 (ranges_copy_adjusted): New function, factored out from
1082 value_contents_copy_raw.
1083 (value_contents_copy_raw): Also copy the optimized out ranges.
1084 Assert the destination ranges aren't optimized out.
1085 (value_contents_copy): Update comment, remove call to
1086 require_not_optimized_out.
1087 (value_contents_equal): Adjust to check whether the optimized_out
1088 vec is empty.
1089 (set_value_optimized_out, value_optimized_out_const): Delete.
1090 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1091 New functions.
1092 (value_entirely_optimized_out, value_bits_valid): Delete.
1093 (value_copy): Take a VEC copy of the 'optimized_out' field.
1094 (value_primitive_field): Remove special handling of optimized out.
1095 (value_fetch_lazy): Assert that lazy values have no unavailable
1096 regions. Use value_bits_any_optimized_out. Remove some special
1097 handling for optimized out values.
1098 * value.h: Add intro comment about <optimized out> and
1099 <unavailable>.
1100 (struct lval_funcs): Remove check_validity and check_any_valid
1101 fields.
1102 (set_value_optimized_out, value_optimized_out_const): Remove.
1103 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1104 New declarations.
1105 (value_bits_any_optimized_out): New declaration.
1106 (value_bits_valid): Delete declaration.
1107 (value_available_contents_eq): Rename to ...
1108 (value_contents_eq): ... this, and extend comments.
1109
1110 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1111
1112 Fix -fsanitize=address on unreadable inferior strings.
1113 * valprint.c (val_print_string): Fix access before BUFFER.
1114
1115 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1116
1117 * target.c (target_struct_size): Remove.
1118 (target_struct_allocsize): Remove.
1119 (DEFAULT_ALLOCSIZE): Remove.
1120 (target_ops_p): New typedef.
1121 (DEF_VEC_P (target_ops_p)): New vector type.
1122 (target_structs): Change type to VEC (target_ops_p).
1123 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1124 (find_default_run_target): Rewrite for loop following changes to
1125 target_structs.
1126
1127 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1128
1129 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1130 Adjust code accordingly. Adjust function description comment.
1131
1132 2014-08-19 Yao Qi <yao@codesourcery.com>
1133
1134 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1135 types.
1136
1137 2014-08-19 Alan Modra <amodra@gmail.com>
1138
1139 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1140 * config.in: Regenerate.
1141 * configure: Regenerate.
1142
1143 2014-08-19 Tom Tromey <tromey@redhat.com>
1144 Gary Benson <gbenson@redhat.com>
1145
1146 * common/common-debug.h: New file.
1147 * common/common-debug.c: Likewise.
1148 * debug.c: Likewise.
1149 * Makefile.in (SFILES): Add common/common-debug.c.
1150 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1151 (COMMON_OBS): Add common-debug.o and debug.o.
1152 (common-debug.o): New rule.
1153 * common/common-defs.h: Include common-debug.h.
1154 * common/agent.c (debug_agent_printf): New function.
1155 (DEBUG_AGENT): Redefine.
1156 * nat/i386-dregs.c (debug_printf): Undefine.
1157
1158 2014-08-19 Gary Benson <gbenson@redhat.com>
1159
1160 * common/common-defs.h: Include print-utils.h.
1161 * utils.h: Do not include print-utils.h.
1162
1163 2014-08-19 Tom Tromey <tromey@redhat.com>
1164 Gary Benson <gbenson@redhat.com>
1165
1166 * common/common-types.h: New file.
1167 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1168 * common/common-defs.h: Include common-types.h.
1169 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1170 (ULONGEST): Remove.
1171
1172 2014-08-19 Tom Tromey <tromey@redhat.com>
1173 Gary Benson <gbenson@redhat.com>
1174
1175 * common/errors.h: New file.
1176 * common/errors.c: Likewise.
1177 * Makefile.in (SFILES): Add common/errors.c.
1178 (HFILES_NO_SRCDIR): Add common/errors.h.
1179 (COMMON_OBS): Add errors.o.
1180 (errors.o): New rule.
1181 * common/common-defs.h: Include errors.h.
1182 * utils.h (perror_with_name, error, verror, warning, vwarning):
1183 Don't declare.
1184 * common/common-utils.h: (malloc_failure, internal_error):
1185 Likewise.
1186
1187 2014-08-19 Gary Benson <gbenson@redhat.com>
1188
1189 * utils.c (internal_vproblem): Always print the message.
1190
1191 2014-08-18 Doug Evans <dje@google.com>
1192
1193 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1194
1195 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1196
1197 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1198 Return 0 if TYPE is dynamic.
1199 (print_range): Add handling of dynamic ranges.
1200
1201 2014-08-18 Keven Boell <keven.boell@intel.com>
1202 Joel Brobecker <brobecker@adacore.com>
1203
1204 * gdbtypes.h (struct main_type): Add field "data_location".
1205 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1206 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1207 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1208 a dynamic data location.
1209 (resolve_dynamic_type): Add DW_AT_data_location handling.
1210 (copy_recursive, copy_type): Copy the data_location information
1211 when present.
1212 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1213 * value.c (value_from_contents_and_address): Add
1214 DW_AT_data_location handling.
1215
1216 2014-08-18 Keven Boell <keven.boell@intel.com>
1217 Joel Brobecker <brobecker@adacore.com>
1218
1219 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1220 field "get_object_address".
1221 * dwarf2expr.c (execute_stack_op): Add handling for
1222 DW_OP_push_object_address.
1223 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1224 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1225 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1226 (dwarf_expr_get_obj_addr): New function.
1227 (dwarf_expr_ctx_funcs): Add get_object_address field.
1228 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1229 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1230 (dwarf2_evaluate_property): Add parameter "address". Use it.
1231 (needs_get_obj_addr): New function.
1232 (needs_frame_ctx_funcs): Add get_object_address field.
1233 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1234 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1235 (resolve_dynamic_array): Likewise.
1236
1237 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1238
1239 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1240 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1241 fixed value for records and unions for which some GNAT encodings
1242 are present.
1243
1244 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1245
1246 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1247 rewrite to avoid "else if" and "else" constructs. Should be
1248 a no-op in practice.
1249
1250 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1251
1252 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1253 of lexical block.
1254
1255 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1256
1257 PR c++/17132
1258 * eval.c: Update all calls to find_overload_match.
1259 * valarith.c: Likewise.
1260 (value_user_defined_cpp_op, value_user_defined_op): New
1261 argument NOSIDE. Update all callers.
1262 * valops.c (find_overload_match): New argument NOSIDE.
1263 * value.h (find_overload_match): Update signature.
1264
1265 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1266
1267 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1268 'items' methods instead of 'iteritems' method on dictionaries.
1269
1270 2014-08-15 Doug Evans <dje@google.com>
1271
1272 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1273 closer to use.
1274
1275 2014-08-15 Doug Evans <dje@google.com>
1276
1277 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1278
1279 2014-08-15 Doug Evans <dje@google.com>
1280
1281 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1282
1283 2014-08-15 Doug Evans <dje@google.com>
1284
1285 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1286 unused.
1287
1288 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1289
1290 * dcache.h: Include target.h, to avoid compile time warnings.
1291
1292 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1293
1294 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1295 frame_info" partial declaration.
1296 * gdbarch.h: Regenerate.
1297
1298 2014-08-15 Yao Qi <yao@codesourcery.com>
1299
1300 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1301 Add parameter 'decode_for_pst_p'. Callers update.
1302
1303 2014-08-13 Yao Qi <yao@codesourcery.com>
1304
1305 PR build/17104
1306 * configure.ac: Use local variable 'pos'.
1307 * configure: Regenerated.
1308
1309 2014-08-11 Doug Evans <dje@google.com>
1310
1311 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1312 message, it is redundant with "Reading symbols from ..." message.
1313
1314 2014-08-10 Doug Evans <xdje42@gmail.com>
1315
1316 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1317
1318 2014-08-09 Yao Qi <yao@codesourcery.com>
1319
1320 PR remote/9053
1321 * remote.c (remote_xfer_partial): Remove dead code.
1322
1323 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1324
1325 * ia64-linux-tdep.c: Include "regset.h".
1326 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1327 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1328 (ia64_linux_supply_fpregset): New function.
1329 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1330 (ia64_linux_regset_from_core_section): New function.
1331 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1332 method.
1333
1334 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1335
1336 * m68klinux-tdep.c: Include "regset.h".
1337 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1338 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1339 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1340 (m68k_linux_regset_from_core_section): New function.
1341 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1342 method.
1343
1344 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1345
1346 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1347 function. Move logic to...
1348 (tilegx_linux_regmap): ... this new register map.
1349 (tilegx_linux_regset): Refer to register map, replace supply
1350 method by regcache_supply_regset, and add collect method.
1351 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1352 TILEGX_FIRST_EASY_REGNUM.
1353
1354 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1355
1356 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1357 that calls regcache_supply_regset and handles the EPC register
1358 separately. Move main logic to...
1359 (score7_linux_gregmap): ... this new register map.
1360 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1361 (score7_linux_gregset): Refer to register map. Add collect method.
1362 (score7_linux_regset_from_core_section): Replace
1363 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1364 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1365 (struct regset): Delete unused forward declaraction.
1366 (struct pt_regs): Delete structure definition.
1367 (elf_gregset_t): Delete typedef.
1368
1369 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1370
1371 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1372 (nios2_core_regset): Add collect method.
1373
1374 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1375
1376 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1377 platform-independent and don't write to read-only input buffer.
1378 (m32r_linux_collect_gregset): New function.
1379 (m32r_linux_gregset): Add collect method.
1380
1381 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1382
1383 * hppa-linux-tdep.c (greg_map): Rename to...
1384 (hppa_linux_gregmap): ... this. Also convert to
1385 regcache_map_entry format.
1386 (hppa_linux_supply_regset): Delete function.
1387 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1388 (hppa_linux_fpregmap): ... this new register map.
1389 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1390 register map, replace supply method by regcache_supply_regset, and
1391 add collect method regcache_collect_regset.
1392
1393 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1394
1395 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1396 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1397 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1398 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1399 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1400 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1401 (frv_linux_supply_gregset): Replace main logic by call to
1402 regcache_supply_regset, but keep clearing gr32-gr63.
1403 (frv_linux_supply_fpregset): Delete function.
1404 (frv_linux_gregset): Refer to appropriate register map and add
1405 regcache_collect_regset as the collect method.
1406 (frv_linux_fpregset): Likewise. Also exchange the supply method
1407 by regcache_supply_regset.
1408
1409 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1410
1411 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1412 by call to alpha_supply_int_regs.
1413 (alpha_linux_collect_gregset): New function.
1414 (alpha_linux_supply_fpregset): Replace logic by call to
1415 alpha_supply_fp_regs.
1416 (alpha_linux_collect_fpregset): New function.
1417 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1418
1419 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1420
1421 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1422 by call to regcache_collect_regset.
1423 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1424 instead of aarch64_linux_supply_gregset/_fpregset.
1425 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1426 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1427 header file instead.
1428 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1429 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1430 functions. Move logic to ...
1431 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1432 register maps.
1433 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1434 refer to new register maps, replace *_regset_from_core by
1435 regcache_supply_regset, and also use regcache_collect_regset.
1436 * aarch64-linux-tdep.h: Include "regset.h".
1437 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1438 Delete prototypes.
1439 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1440 macros, moved from C source file.
1441 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1442 variable declarations.
1443
1444 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1445
1446 * s390-linux-nat.c: Include "regset.h".
1447 (regmap_gregset): Delete macro.
1448 (s390_64_regmap_gregset): New register map for
1449 regcache_supply/_collect_regset.
1450 (s390_64_gregset): New regset.
1451 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1452 (regmap_fpregset): Delete macro.
1453 (s390_native_supply, s390_native_collect): Delete functions.
1454 (supply_gregset, fill_gregset): Replace s390-specific regmap
1455 handling by a call to regcache_supply/_collect_regset.
1456 (supply_fpregset, fill_fpregset): Call regcache_supply/
1457 _collect_regset instead of s390_native_supply/_collect.
1458 (fetch_regset, store_regset): Likewise. Also change the last
1459 parameter to a regset instead of a regmap.
1460 (s390_linux_fetch_inferior_registers)
1461 (390_linux_store_inferior_registers): Adjust last parameter in
1462 calls to fetch_regset and store_regset.
1463 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1464 (s390_gregmap): ... this. Also make static const and convert to
1465 regcache_map_entry format.
1466 (s390x_regmap_gregset): Delete.
1467 (s390_regmap_fpregset): Rename to...
1468 (s390_fpregmap): ... this. Make static const and convert to
1469 regcache_map_entry format.
1470 (s390_regmap_upper, s390_regmap_last_break)
1471 (s390x_regmap_last_break, s390_regmap_system_call)
1472 (s390_regmap_tdb): Likewise.
1473 (s390_supply_regset, s390_collect_regset): Remove functions.
1474 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1475 s390_supply_regset.
1476 (s390_gregset, s390_fpregset, s390_upper_regset)
1477 (s390_last_break_regset, s390x_last_break_regset)
1478 (s390_system_call_regset, s390_tdb_regset): Make global and
1479 replace s390_supply/_collect_regset by regcache_supply/
1480 _collect_regset.
1481 (s390x_gregset): Delete.
1482 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1483 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1484 (s390_regmap_fpregset, s390_regmap_last_break)
1485 (s390x_regmap_last_break, s390_regmap_system_call)
1486 (s390_regmap_tdb): Delete global variable declarations.
1487 (s390_gregset, s390_fpregset, s390_last_break_regset)
1488 (s390x_last_break_regset, s390_system_call_regset)
1489 (s390_tdb_regset): New global variable declarations.
1490
1491 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1492
1493 * regcache.c: Include "regset.h".
1494 (regcache_transfer_regset): New local function.
1495 (regcache_supply_regset, regcache_collect_regset): New functions.
1496 * regcache.h (struct regcache_map_entry): New structure.
1497 (REGCACHE_MAP_SKIP): New enum value.
1498 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1499
1500 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1501
1502 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1503 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1504 (ppc_linux_collect_gregset ): Likewise.
1505 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1506 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1507 (ppc_collect_vrregset): Likewise.
1508 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1509 Likewise.
1510
1511 2014-08-07 Yao Qi <yao@codesourcery.com>
1512
1513 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1514 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1515 * remote.c (remote_read_bytes): Likewise.
1516
1517 2014-08-07 Yao Qi <yao@codesourcery.com>
1518
1519 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1520
1521 2014-08-07 Yao Qi <yao@codesourcery.com>
1522
1523 PR remote/17230
1524 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1525 TARGET_XFER_OK instead of 0.
1526
1527 2014-08-07 Gary Benson <gbenson@redhat.com>
1528
1529 * common/common-defs.h: Include errno.h.
1530 * defs.h: Do not include errno.h.
1531 * ada-typeprint.c: Likewise.
1532 * c-typeprint.c: Likewise.
1533 * core-regset.c: Likewise.
1534 * corefile.c: Likewise.
1535 * corelow.c: Likewise.
1536 * event-loop.c: Likewise.
1537 * f-typeprint.c: Likewise.
1538 * gnu-nat.c: Likewise.
1539 * go32-nat.c: Likewise.
1540 * i386gnu-nat.c: Likewise.
1541 * m2-typeprint.c: Likewise.
1542 * nat/linux-btrace.c: Likewise.
1543 * p-typeprint.c: Likewise.
1544 * procfs.c: Likewise.
1545 * remote-sim.c: Likewise.
1546 * rs6000-nat.c: Likewise.
1547 * target.c: Likewise.
1548 * typeprint.c: Likewise.
1549 * ui-file.c: Likewise.
1550 * valops.c: Likewise.
1551 * valprint.c: Likewise.
1552
1553 2014-08-07 Gary Benson <gbenson@redhat.com>
1554
1555 * common/common-defs.h: Include string.h.
1556 * aarch64-tdep.c: Do not include string.h.
1557 * ada-exp.y: Likewise.
1558 * ada-lang.c: Likewise.
1559 * ada-lex.l: Likewise.
1560 * ada-typeprint.c: Likewise.
1561 * ada-valprint.c: Likewise.
1562 * aix-thread.c: Likewise.
1563 * alpha-linux-tdep.c: Likewise.
1564 * alpha-mdebug-tdep.c: Likewise.
1565 * alpha-nat.c: Likewise.
1566 * alpha-osf1-tdep.c: Likewise.
1567 * alpha-tdep.c: Likewise.
1568 * alphanbsd-tdep.c: Likewise.
1569 * amd64-dicos-tdep.c: Likewise.
1570 * amd64-linux-tdep.c: Likewise.
1571 * amd64-nat.c: Likewise.
1572 * amd64-sol2-tdep.c: Likewise.
1573 * amd64fbsd-tdep.c: Likewise.
1574 * amd64obsd-tdep.c: Likewise.
1575 * arch-utils.c: Likewise.
1576 * arm-linux-nat.c: Likewise.
1577 * arm-linux-tdep.c: Likewise.
1578 * arm-tdep.c: Likewise.
1579 * arm-wince-tdep.c: Likewise.
1580 * armbsd-tdep.c: Likewise.
1581 * armnbsd-nat.c: Likewise.
1582 * armnbsd-tdep.c: Likewise.
1583 * armobsd-tdep.c: Likewise.
1584 * avr-tdep.c: Likewise.
1585 * ax-gdb.c: Likewise.
1586 * ax-general.c: Likewise.
1587 * bcache.c: Likewise.
1588 * bfin-tdep.c: Likewise.
1589 * breakpoint.c: Likewise.
1590 * build-id.c: Likewise.
1591 * buildsym.c: Likewise.
1592 * c-exp.y: Likewise.
1593 * c-lang.c: Likewise.
1594 * c-typeprint.c: Likewise.
1595 * c-valprint.c: Likewise.
1596 * charset.c: Likewise.
1597 * cli-out.c: Likewise.
1598 * cli/cli-cmds.c: Likewise.
1599 * cli/cli-decode.c: Likewise.
1600 * cli/cli-dump.c: Likewise.
1601 * cli/cli-interp.c: Likewise.
1602 * cli/cli-logging.c: Likewise.
1603 * cli/cli-script.c: Likewise.
1604 * cli/cli-setshow.c: Likewise.
1605 * cli/cli-utils.c: Likewise.
1606 * coffread.c: Likewise.
1607 * common/agent.c: Likewise.
1608 * common/buffer.c: Likewise.
1609 * common/buffer.h: Likewise.
1610 * common/common-utils.c: Likewise.
1611 * common/filestuff.c: Likewise.
1612 * common/filestuff.c: Likewise.
1613 * common/format.c: Likewise.
1614 * common/print-utils.c: Likewise.
1615 * common/rsp-low.c: Likewise.
1616 * common/signals.c: Likewise.
1617 * common/vec.h: Likewise.
1618 * common/xml-utils.c: Likewise.
1619 * core-regset.c: Likewise.
1620 * corefile.c: Likewise.
1621 * corelow.c: Likewise.
1622 * cp-abi.c: Likewise.
1623 * cp-name-parser.y: Likewise.
1624 * cp-support.c: Likewise.
1625 * cp-valprint.c: Likewise.
1626 * cris-tdep.c: Likewise.
1627 * d-exp.y: Likewise.
1628 * darwin-nat.c: Likewise.
1629 * dbxread.c: Likewise.
1630 * dcache.c: Likewise.
1631 * demangle.c: Likewise.
1632 * dicos-tdep.c: Likewise.
1633 * disasm.c: Likewise.
1634 * doublest.c: Likewise.
1635 * dsrec.c: Likewise.
1636 * dummy-frame.c: Likewise.
1637 * dwarf2-frame.c: Likewise.
1638 * dwarf2loc.c: Likewise.
1639 * dwarf2read.c: Likewise.
1640 * elfread.c: Likewise.
1641 * environ.c: Likewise.
1642 * eval.c: Likewise.
1643 * event-loop.c: Likewise.
1644 * exceptions.c: Likewise.
1645 * exec.c: Likewise.
1646 * expprint.c: Likewise.
1647 * f-exp.y: Likewise.
1648 * f-lang.c: Likewise.
1649 * f-typeprint.c: Likewise.
1650 * f-valprint.c: Likewise.
1651 * fbsd-nat.c: Likewise.
1652 * findcmd.c: Likewise.
1653 * findvar.c: Likewise.
1654 * fork-child.c: Likewise.
1655 * frame.c: Likewise.
1656 * frv-linux-tdep.c: Likewise.
1657 * frv-tdep.c: Likewise.
1658 * gdb.c: Likewise.
1659 * gdb_bfd.c: Likewise.
1660 * gdbarch.c: Likewise.
1661 * gdbarch.sh: Likewise.
1662 * gdbtypes.c: Likewise.
1663 * gnu-nat.c: Likewise.
1664 * gnu-v2-abi.c: Likewise.
1665 * gnu-v3-abi.c: Likewise.
1666 * go-exp.y: Likewise.
1667 * go-lang.c: Likewise.
1668 * go32-nat.c: Likewise.
1669 * guile/guile.c: Likewise.
1670 * guile/scm-auto-load.c: Likewise.
1671 * hppa-hpux-tdep.c: Likewise.
1672 * hppa-linux-nat.c: Likewise.
1673 * hppanbsd-tdep.c: Likewise.
1674 * hppaobsd-tdep.c: Likewise.
1675 * i386-cygwin-tdep.c: Likewise.
1676 * i386-dicos-tdep.c: Likewise.
1677 * i386-linux-tdep.c: Likewise.
1678 * i386-nto-tdep.c: Likewise.
1679 * i386-sol2-tdep.c: Likewise.
1680 * i386-tdep.c: Likewise.
1681 * i386bsd-tdep.c: Likewise.
1682 * i386gnu-nat.c: Likewise.
1683 * i386nbsd-tdep.c: Likewise.
1684 * i386obsd-tdep.c: Likewise.
1685 * i387-tdep.c: Likewise.
1686 * ia64-libunwind-tdep.c: Likewise.
1687 * ia64-linux-nat.c: Likewise.
1688 * inf-child.c: Likewise.
1689 * inf-ptrace.c: Likewise.
1690 * inf-ttrace.c: Likewise.
1691 * infcall.c: Likewise.
1692 * infcmd.c: Likewise.
1693 * inflow.c: Likewise.
1694 * infrun.c: Likewise.
1695 * interps.c: Likewise.
1696 * iq2000-tdep.c: Likewise.
1697 * irix5-nat.c: Likewise.
1698 * jv-exp.y: Likewise.
1699 * jv-lang.c: Likewise.
1700 * jv-typeprint.c: Likewise.
1701 * jv-valprint.c: Likewise.
1702 * language.c: Likewise.
1703 * linux-fork.c: Likewise.
1704 * linux-nat.c: Likewise.
1705 * lm32-tdep.c: Likewise.
1706 * m2-exp.y: Likewise.
1707 * m2-typeprint.c: Likewise.
1708 * m32c-tdep.c: Likewise.
1709 * m32r-linux-nat.c: Likewise.
1710 * m32r-linux-tdep.c: Likewise.
1711 * m32r-rom.c: Likewise.
1712 * m32r-tdep.c: Likewise.
1713 * m68hc11-tdep.c: Likewise.
1714 * m68k-tdep.c: Likewise.
1715 * m68kbsd-tdep.c: Likewise.
1716 * m68klinux-nat.c: Likewise.
1717 * m68klinux-tdep.c: Likewise.
1718 * m88k-tdep.c: Likewise.
1719 * machoread.c: Likewise.
1720 * macrocmd.c: Likewise.
1721 * main.c: Likewise.
1722 * mdebugread.c: Likewise.
1723 * mem-break.c: Likewise.
1724 * memattr.c: Likewise.
1725 * memory-map.c: Likewise.
1726 * mep-tdep.c: Likewise.
1727 * mi/mi-cmd-break.c: Likewise.
1728 * mi/mi-cmd-disas.c: Likewise.
1729 * mi/mi-cmd-env.c: Likewise.
1730 * mi/mi-cmd-stack.c: Likewise.
1731 * mi/mi-cmd-var.c: Likewise.
1732 * mi/mi-cmds.c: Likewise.
1733 * mi/mi-console.c: Likewise.
1734 * mi/mi-getopt.c: Likewise.
1735 * mi/mi-interp.c: Likewise.
1736 * mi/mi-main.c: Likewise.
1737 * mi/mi-parse.c: Likewise.
1738 * microblaze-rom.c: Likewise.
1739 * microblaze-tdep.c: Likewise.
1740 * mingw-hdep.c: Likewise.
1741 * minidebug.c: Likewise.
1742 * minsyms.c: Likewise.
1743 * mips-irix-tdep.c: Likewise.
1744 * mips-linux-tdep.c: Likewise.
1745 * mips-tdep.c: Likewise.
1746 * mips64obsd-tdep.c: Likewise.
1747 * mipsnbsd-tdep.c: Likewise.
1748 * mipsread.c: Likewise.
1749 * mn10300-linux-tdep.c: Likewise.
1750 * mn10300-tdep.c: Likewise.
1751 * monitor.c: Likewise.
1752 * moxie-tdep.c: Likewise.
1753 * mt-tdep.c: Likewise.
1754 * nat/linux-btrace.c: Likewise.
1755 * nat/linux-osdata.c: Likewise.
1756 * nat/linux-procfs.c: Likewise.
1757 * nat/linux-ptrace.c: Likewise.
1758 * nat/linux-waitpid.c: Likewise.
1759 * nbsd-tdep.c: Likewise.
1760 * nios2-linux-tdep.c: Likewise.
1761 * nto-procfs.c: Likewise.
1762 * nto-tdep.c: Likewise.
1763 * objc-lang.c: Likewise.
1764 * objfiles.c: Likewise.
1765 * opencl-lang.c: Likewise.
1766 * osabi.c: Likewise.
1767 * osdata.c: Likewise.
1768 * p-exp.y: Likewise.
1769 * p-lang.c: Likewise.
1770 * p-typeprint.c: Likewise.
1771 * parse.c: Likewise.
1772 * posix-hdep.c: Likewise.
1773 * ppc-linux-nat.c: Likewise.
1774 * ppc-sysv-tdep.c: Likewise.
1775 * ppcfbsd-tdep.c: Likewise.
1776 * ppcnbsd-tdep.c: Likewise.
1777 * ppcobsd-tdep.c: Likewise.
1778 * printcmd.c: Likewise.
1779 * procfs.c: Likewise.
1780 * prologue-value.c: Likewise.
1781 * python/py-auto-load.c: Likewise.
1782 * python/py-gdb-readline.c: Likewise.
1783 * ravenscar-thread.c: Likewise.
1784 * regcache.c: Likewise.
1785 * registry.c: Likewise.
1786 * remote-fileio.c: Likewise.
1787 * remote-m32r-sdi.c: Likewise.
1788 * remote-mips.c: Likewise.
1789 * remote-notif.c: Likewise.
1790 * remote-sim.c: Likewise.
1791 * remote.c: Likewise.
1792 * reverse.c: Likewise.
1793 * rs6000-aix-tdep.c: Likewise.
1794 * ser-base.c: Likewise.
1795 * ser-go32.c: Likewise.
1796 * ser-mingw.c: Likewise.
1797 * ser-pipe.c: Likewise.
1798 * ser-tcp.c: Likewise.
1799 * ser-unix.c: Likewise.
1800 * serial.c: Likewise.
1801 * sh-tdep.c: Likewise.
1802 * sh64-tdep.c: Likewise.
1803 * shnbsd-tdep.c: Likewise.
1804 * skip.c: Likewise.
1805 * sol-thread.c: Likewise.
1806 * solib-dsbt.c: Likewise.
1807 * solib-frv.c: Likewise.
1808 * solib-osf.c: Likewise.
1809 * solib-som.c: Likewise.
1810 * solib-spu.c: Likewise.
1811 * solib-target.c: Likewise.
1812 * solib.c: Likewise.
1813 * somread.c: Likewise.
1814 * source.c: Likewise.
1815 * sparc-nat.c: Likewise.
1816 * sparc-sol2-tdep.c: Likewise.
1817 * sparc-tdep.c: Likewise.
1818 * sparc64-tdep.c: Likewise.
1819 * sparc64fbsd-tdep.c: Likewise.
1820 * sparc64nbsd-tdep.c: Likewise.
1821 * sparcnbsd-tdep.c: Likewise.
1822 * spu-linux-nat.c: Likewise.
1823 * spu-multiarch.c: Likewise.
1824 * spu-tdep.c: Likewise.
1825 * stabsread.c: Likewise.
1826 * stack.c: Likewise.
1827 * std-regs.c: Likewise.
1828 * symfile.c: Likewise.
1829 * symmisc.c: Likewise.
1830 * symtab.c: Likewise.
1831 * target.c: Likewise.
1832 * thread.c: Likewise.
1833 * tilegx-linux-nat.c: Likewise.
1834 * tilegx-tdep.c: Likewise.
1835 * top.c: Likewise.
1836 * tracepoint.c: Likewise.
1837 * tui/tui-command.c: Likewise.
1838 * tui/tui-data.c: Likewise.
1839 * tui/tui-disasm.c: Likewise.
1840 * tui/tui-file.c: Likewise.
1841 * tui/tui-layout.c: Likewise.
1842 * tui/tui-out.c: Likewise.
1843 * tui/tui-regs.c: Likewise.
1844 * tui/tui-source.c: Likewise.
1845 * tui/tui-stack.c: Likewise.
1846 * tui/tui-win.c: Likewise.
1847 * tui/tui-windata.c: Likewise.
1848 * tui/tui-winsource.c: Likewise.
1849 * typeprint.c: Likewise.
1850 * ui-file.c: Likewise.
1851 * ui-out.c: Likewise.
1852 * user-regs.c: Likewise.
1853 * utils.c: Likewise.
1854 * v850-tdep.c: Likewise.
1855 * valarith.c: Likewise.
1856 * valops.c: Likewise.
1857 * valprint.c: Likewise.
1858 * value.c: Likewise.
1859 * varobj.c: Likewise.
1860 * vax-tdep.c: Likewise.
1861 * vaxnbsd-tdep.c: Likewise.
1862 * vaxobsd-tdep.c: Likewise.
1863 * windows-nat.c: Likewise.
1864 * xcoffread.c: Likewise.
1865 * xml-support.c: Likewise.
1866 * xstormy16-tdep.c: Likewise.
1867 * xtensa-linux-nat.c: Likewise.
1868
1869 2014-08-07 Gary Benson <gbenson@redhat.com>
1870
1871 * common/common-defs.h: Include gdb_assert.h.
1872 * aarch64-tdep.c: Do not include gdb_assert.h.
1873 * addrmap.c: Likewise.
1874 * aix-thread.c: Likewise.
1875 * alpha-linux-tdep.c: Likewise.
1876 * alpha-mdebug-tdep.c: Likewise.
1877 * alphanbsd-tdep.c: Likewise.
1878 * amd64-nat.c: Likewise.
1879 * amd64-tdep.c: Likewise.
1880 * amd64bsd-nat.c: Likewise.
1881 * amd64fbsd-nat.c: Likewise.
1882 * amd64fbsd-tdep.c: Likewise.
1883 * amd64nbsd-nat.c: Likewise.
1884 * amd64nbsd-tdep.c: Likewise.
1885 * amd64obsd-nat.c: Likewise.
1886 * amd64obsd-tdep.c: Likewise.
1887 * arch-utils.c: Likewise.
1888 * arm-tdep.c: Likewise.
1889 * armbsd-tdep.c: Likewise.
1890 * auxv.c: Likewise.
1891 * bcache.c: Likewise.
1892 * bfin-tdep.c: Likewise.
1893 * blockframe.c: Likewise.
1894 * breakpoint.c: Likewise.
1895 * bsd-kvm.c: Likewise.
1896 * bsd-uthread.c: Likewise.
1897 * buildsym.c: Likewise.
1898 * c-exp.y: Likewise.
1899 * c-lang.c: Likewise.
1900 * charset.c: Likewise.
1901 * cleanups.c: Likewise.
1902 * cli-out.c: Likewise.
1903 * cli/cli-decode.c: Likewise.
1904 * cli/cli-dump.c: Likewise.
1905 * cli/cli-logging.c: Likewise.
1906 * cli/cli-script.c: Likewise.
1907 * cli/cli-utils.c: Likewise.
1908 * coffread.c: Likewise.
1909 * common/common-utils.c: Likewise.
1910 * common/queue.h: Likewise.
1911 * common/signals.c: Likewise.
1912 * common/vec.h: Likewise.
1913 * complaints.c: Likewise.
1914 * completer.c: Likewise.
1915 * corelow.c: Likewise.
1916 * cp-abi.c: Likewise.
1917 * cp-name-parser.y: Likewise.
1918 * cp-namespace.c: Likewise.
1919 * cp-support.c: Likewise.
1920 * cris-tdep.c: Likewise.
1921 * dbxread.c: Likewise.
1922 * dictionary.c: Likewise.
1923 * doublest.c: Likewise.
1924 * dsrec.c: Likewise.
1925 * dummy-frame.c: Likewise.
1926 * dwarf2-frame-tailcall.c: Likewise.
1927 * dwarf2-frame.c: Likewise.
1928 * dwarf2expr.c: Likewise.
1929 * dwarf2loc.c: Likewise.
1930 * dwarf2read.c: Likewise.
1931 * eval.c: Likewise.
1932 * event-loop.c: Likewise.
1933 * exceptions.c: Likewise.
1934 * expprint.c: Likewise.
1935 * f-valprint.c: Likewise.
1936 * fbsd-nat.c: Likewise.
1937 * findvar.c: Likewise.
1938 * frame-unwind.c: Likewise.
1939 * frame.c: Likewise.
1940 * frv-tdep.c: Likewise.
1941 * gcore.c: Likewise.
1942 * gdb-dlfcn.c: Likewise.
1943 * gdb_bfd.c: Likewise.
1944 * gdbarch.c: Likewise.
1945 * gdbarch.sh: Likewise.
1946 * gdbtypes.c: Likewise.
1947 * gnu-nat.c: Likewise.
1948 * gnu-v3-abi.c: Likewise.
1949 * go-lang.c: Likewise.
1950 * guile/scm-exception.c: Likewise.
1951 * guile/scm-gsmob.c: Likewise.
1952 * guile/scm-lazy-string.c: Likewise.
1953 * guile/scm-math.c: Likewise.
1954 * guile/scm-pretty-print.c: Likewise.
1955 * guile/scm-safe-call.c: Likewise.
1956 * guile/scm-utils.c: Likewise.
1957 * guile/scm-value.c: Likewise.
1958 * h8300-tdep.c: Likewise.
1959 * hppa-hpux-nat.c: Likewise.
1960 * hppa-tdep.c: Likewise.
1961 * hppanbsd-tdep.c: Likewise.
1962 * hppaobsd-tdep.c: Likewise.
1963 * i386-darwin-nat.c: Likewise.
1964 * i386-darwin-tdep.c: Likewise.
1965 * i386-nto-tdep.c: Likewise.
1966 * i386-tdep.c: Likewise.
1967 * i386bsd-nat.c: Likewise.
1968 * i386fbsd-tdep.c: Likewise.
1969 * i386gnu-nat.c: Likewise.
1970 * i386nbsd-tdep.c: Likewise.
1971 * i386obsd-tdep.c: Likewise.
1972 * i387-tdep.c: Likewise.
1973 * ia64-libunwind-tdep.c: Likewise.
1974 * ia64-tdep.c: Likewise.
1975 * inf-ptrace.c: Likewise.
1976 * inf-ttrace.c: Likewise.
1977 * infcall.c: Likewise.
1978 * infcmd.c: Likewise.
1979 * infrun.c: Likewise.
1980 * inline-frame.c: Likewise.
1981 * interps.c: Likewise.
1982 * jv-lang.c: Likewise.
1983 * jv-typeprint.c: Likewise.
1984 * linux-fork.c: Likewise.
1985 * linux-nat.c: Likewise.
1986 * linux-thread-db.c: Likewise.
1987 * m32c-tdep.c: Likewise.
1988 * m32r-linux-nat.c: Likewise.
1989 * m32r-tdep.c: Likewise.
1990 * m68k-tdep.c: Likewise.
1991 * m68kbsd-nat.c: Likewise.
1992 * m68kbsd-tdep.c: Likewise.
1993 * m88k-tdep.c: Likewise.
1994 * machoread.c: Likewise.
1995 * macroexp.c: Likewise.
1996 * macrotab.c: Likewise.
1997 * maint.c: Likewise.
1998 * mdebugread.c: Likewise.
1999 * memory-map.c: Likewise.
2000 * mep-tdep.c: Likewise.
2001 * mi/mi-common.c: Likewise.
2002 * microblaze-tdep.c: Likewise.
2003 * mingw-hdep.c: Likewise.
2004 * mips-linux-nat.c: Likewise.
2005 * mips-linux-tdep.c: Likewise.
2006 * mips-tdep.c: Likewise.
2007 * mips64obsd-tdep.c: Likewise.
2008 * mipsnbsd-tdep.c: Likewise.
2009 * mn10300-linux-tdep.c: Likewise.
2010 * mn10300-tdep.c: Likewise.
2011 * moxie-tdep.c: Likewise.
2012 * mt-tdep.c: Likewise.
2013 * nat/linux-btrace.c: Likewise.
2014 * nat/linux-osdata.c: Likewise.
2015 * nat/linux-ptrace.c: Likewise.
2016 * nat/mips-linux-watch.c: Likewise.
2017 * nios2-linux-tdep.c: Likewise.
2018 * nios2-tdep.c: Likewise.
2019 * objc-lang.c: Likewise.
2020 * objfiles.c: Likewise.
2021 * obsd-nat.c: Likewise.
2022 * opencl-lang.c: Likewise.
2023 * osabi.c: Likewise.
2024 * parse.c: Likewise.
2025 * ppc-linux-nat.c: Likewise.
2026 * ppc-sysv-tdep.c: Likewise.
2027 * ppcfbsd-nat.c: Likewise.
2028 * ppcfbsd-tdep.c: Likewise.
2029 * ppcnbsd-nat.c: Likewise.
2030 * ppcnbsd-tdep.c: Likewise.
2031 * ppcobsd-nat.c: Likewise.
2032 * ppcobsd-tdep.c: Likewise.
2033 * printcmd.c: Likewise.
2034 * procfs.c: Likewise.
2035 * prologue-value.c: Likewise.
2036 * psymtab.c: Likewise.
2037 * python/py-lazy-string.c: Likewise.
2038 * python/py-value.c: Likewise.
2039 * regcache.c: Likewise.
2040 * reggroups.c: Likewise.
2041 * registry.c: Likewise.
2042 * remote-sim.c: Likewise.
2043 * remote.c: Likewise.
2044 * rs6000-aix-tdep.c: Likewise.
2045 * rs6000-tdep.c: Likewise.
2046 * s390-linux-tdep.c: Likewise.
2047 * score-tdep.c: Likewise.
2048 * ser-base.c: Likewise.
2049 * ser-mingw.c: Likewise.
2050 * sh-tdep.c: Likewise.
2051 * sh64-tdep.c: Likewise.
2052 * solib-darwin.c: Likewise.
2053 * solib-spu.c: Likewise.
2054 * solib-svr4.c: Likewise.
2055 * source.c: Likewise.
2056 * sparc-nat.c: Likewise.
2057 * sparc-sol2-tdep.c: Likewise.
2058 * sparc-tdep.c: Likewise.
2059 * sparc64-sol2-tdep.c: Likewise.
2060 * sparc64-tdep.c: Likewise.
2061 * sparc64fbsd-tdep.c: Likewise.
2062 * sparc64nbsd-tdep.c: Likewise.
2063 * sparc64obsd-tdep.c: Likewise.
2064 * sparcnbsd-tdep.c: Likewise.
2065 * sparcobsd-tdep.c: Likewise.
2066 * spu-multiarch.c: Likewise.
2067 * spu-tdep.c: Likewise.
2068 * stabsread.c: Likewise.
2069 * stack.c: Likewise.
2070 * symfile.c: Likewise.
2071 * symtab.c: Likewise.
2072 * target-descriptions.c: Likewise.
2073 * target-memory.c: Likewise.
2074 * target.c: Likewise.
2075 * tic6x-linux-tdep.c: Likewise.
2076 * tic6x-tdep.c: Likewise.
2077 * tilegx-linux-nat.c: Likewise.
2078 * tilegx-tdep.c: Likewise.
2079 * top.c: Likewise.
2080 * tramp-frame.c: Likewise.
2081 * tui/tui-out.c: Likewise.
2082 * tui/tui-winsource.c: Likewise.
2083 * ui-out.c: Likewise.
2084 * user-regs.c: Likewise.
2085 * utils.c: Likewise.
2086 * v850-tdep.c: Likewise.
2087 * valops.c: Likewise.
2088 * value.c: Likewise.
2089 * varobj.c: Likewise.
2090 * vax-nat.c: Likewise.
2091 * xml-syscall.c: Likewise.
2092 * xml-tdesc.c: Likewise.
2093 * xstormy16-tdep.c: Likewise.
2094 * xtensa-linux-nat.c: Likewise.
2095 * xtensa-tdep.c: Likewise.
2096
2097 2014-08-07 Gary Benson <gbenson@redhat.com>
2098
2099 * common/common-defs.h: Include common-utils.h.
2100 * defs.h: Do not include common-utils.h.
2101 * common/gdb_assert.h: Likewise.
2102 * darwin-nat.h: Likewise.
2103 * nat/linux-btrace.c: Likewise.
2104 * target/waitstatus.h: Likewise.
2105
2106 2014-08-07 Gary Benson <gbenson@redhat.com>
2107
2108 * common/common-defs.h: Include ptid.h.
2109 * defs.h: Do not include ptid.h.
2110 * inferior.h: Likewise.
2111 * infrun.h: Likewise.
2112 * nat/linux-btrace.h: Likewise.
2113 * nat/linux-osdata.h: Likewise.
2114 * target/waitstatus.h: Likewise.
2115
2116 2014-08-07 Gary Benson <gbenson@redhat.com>
2117
2118 * common/common-defs.h: Include gdb_locale.h.
2119 * defs.h: Do not include gdb_locale.h.
2120
2121 2014-08-07 Gary Benson <gbenson@redhat.com>
2122
2123 * common/common-defs.h: Include gdb/signals.h.
2124 * defs.h: Do not include gdb/signals.h.
2125
2126 2014-08-07 Gary Benson <gbenson@redhat.com>
2127
2128 * common/common-defs.h: Include pathmax.h.
2129 * defs.h: Do not include pathmax.h.
2130
2131 2014-08-07 Gary Benson <gbenson@redhat.com>
2132
2133 * common/common-defs.h: Include libiberty.h.
2134 * defs.h: Do not include libiberty.h.
2135 * common/queue.h: Likewise.
2136 * cp-name-parser.y: Likewise.
2137 * mi/mi-cmd-catch.c: Likewise.
2138 * python/python.c: Likewise.
2139
2140 2014-08-07 Gary Benson <gbenson@redhat.com>
2141
2142 * common/common-defs.h: Include ansidecl.h.
2143 * defs.h: Do not include ansidecl.h.
2144 * common/buffer.h: Likewise.
2145 * common/common-utils.h: Likewise.
2146
2147 2014-08-07 Gary Benson <gbenson@redhat.com>
2148
2149 * common/common-defs.h: Include stddef.h.
2150 * defs.h: Do not include stddef.h.
2151 * common/common-utils.h: Likewise.
2152 * amd64fbsd-nat.c: Likewise.
2153 * bcache.c: Likewise.
2154 * charset.c: Likewise.
2155 * common/buffer.h: Likewise.
2156 * common/vec.h: Likewise.
2157 * i386bsd-nat.c: Likewise.
2158 * nat/linux-btrace.h: Likewise.
2159 * ppcfbsd-nat.c: Likewise.
2160 * ppcnbsd-tdep.h: Likewise.
2161 * ppcobsd-nat.c: Likewise.
2162 * ppcobsd-tdep.h: Likewise.
2163 * python/py-gdb-readline.c: Likewise.
2164
2165 2014-08-07 Gary Benson <gbenson@redhat.com>
2166
2167 * common/common-defs.h: Include stdarg.h.
2168 * defs.h: Do not include stdarg.h.
2169 * ada-lang.c: Likewise.
2170 * common/common-utils.h: Likewise.
2171 * guile/scm-string.c: Likewise.
2172 * guile/scm-utils.c: Likewise.
2173 * m32c-tdep.c: Likewise.
2174
2175 2014-08-07 Gary Benson <gbenson@redhat.com>
2176
2177 * common/common-defs.h: Include stdlib.h.
2178 * defs.h: Do not include stdlib.h.
2179 * addrmap.c: Likewise.
2180 * bcache.c: Likewise.
2181 * common/buffer.c: Likewise.
2182 * common/common-utils.c: Likewise.
2183 * cp-name-parser.y: Likewise.
2184 * go32-nat.c: Likewise.
2185 * mn10300-linux-tdep.c: Likewise.
2186 * nat/linux-osdata.c: Likewise.
2187 * tui/tui.c: Likewise.
2188 * windows-nat.c: Likewise.
2189
2190 2014-08-07 Gary Benson <gbenson@redhat.com>
2191
2192 * common/common-defs.h: Include stdio.h.
2193 * defs.h: Do not include stdio.h.
2194 * ada-lang.c: Likewise.
2195 * common/buffer.c: Likewise.
2196 * common/common-utils.c: Likewise.
2197 * cp-name-parser.y: Likewise.
2198 * gnu-nat.c: Likewise.
2199 * go32-nat.c: Likewise.
2200 * i386gnu-nat.c: Likewise.
2201 * proc-api.c: Likewise.
2202 * proc-events.c: Likewise.
2203 * proc-flags.c: Likewise.
2204 * proc-why.c: Likewise.
2205 * python/python-internal.h: Likewise.
2206 * target-memory.c: Likewise.
2207 * tui/tui-io.c: Likewise.
2208 * tui/tui.c: Likewise.
2209
2210 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2211
2212 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2213 (scan_dyntag_auxv): Same.
2214
2215 2014-08-06 Yao Qi <yao@codesourcery.com>
2216
2217 * amd64-linux-nat.c: Remove duplicated include
2218 "x86-linux-nat.h".
2219 * i386-linux-nat.c: Likewise.
2220
2221 2014-08-06 Yao Qi <yao@codesourcery.com>
2222
2223 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2224 operand" with "Special opcode" in comments.
2225
2226 2014-08-05 Gary Benson <gbenson@redhat.com>
2227
2228 * interps.c (initialize_interps): Remove prototype.
2229 (interpreter_initialized): Remove static global.
2230 (interp_add): Do not call initialize_interps.
2231 (initialize_interps): Remove function.
2232
2233 2014-08-05 Gary Benson <gbenson@redhat.com>
2234
2235 * utils.c (vwarning): Remove spurious va_end.
2236
2237 2014-08-05 Alan Modra <amodra@gmail.com>
2238
2239 * charset.c (convert_between_encodings): Cast result of obstack_base.
2240 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2241 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2242 (read_unwind_info): Use size_t for some locals.
2243 * jit.c (finalize_symtab): Likewise.
2244 * utils.c (hashtab_obstack_allocate): Likewise.
2245 * symmisc.c (print_objfile_statistics): Update format strings.
2246
2247 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2248
2249 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2250 (Changes in GDB 7.8): ... here.
2251
2252 2014-08-04 Tom Tromey <tromey@redhat.com>
2253
2254 * target.c (set_targetdebug): New function.
2255 (initialize_targets): Pass set_targetdebug when creating "set
2256 debug target".
2257
2258 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2259
2260 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2261 if detecting a variable-sized field that is not the last field.
2262 Fix struct type length computation.
2263
2264 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2265
2266 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2267 Add debug trace.
2268
2269 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2270
2271 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2272 Remove "+ 8" offset in computation of CHAIN_VMA.
2273
2274 2014-07-31 Doug Evans <dje@google.com>
2275
2276 * inflow.c (child_terminal_inferior): Add comment.
2277 (child_terminal_ours_for_output): Add comment.
2278 (child_terminal_ours): Add comment.
2279 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2280 (linux_nat_terminal_ours): Add comment.
2281
2282 2014-07-31 Gary Benson <gbenson@redhat.com>
2283
2284 * common/btrace-common.h: Do not include defs.h or server.h.
2285 * nat/mips-linux-watch.h: Likewise.
2286 * gdb-dlfcn.h: Do not include defs.h.
2287 * tracefile.h: Likewise.
2288
2289 2014-07-30 Roland McGrath <mcgrathr@google.com>
2290
2291 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2292
2293 2014-07-30 Tom Tromey <tromey@redhat.com>
2294
2295 * bsd-kvm.c (bsd_kvm_open): Constify.
2296 * corelow.c (core_open): Constify.
2297 * ctf.c (ctf_open): Constify.
2298 * dbug-rom.c (dbug_open): Constify.
2299 * exec.c (exec_open): Constify.
2300 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2301 * microblaze-rom.c (picobug_open): Constify.
2302 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2303 Constify.
2304 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2305 * record-btrace.c (record_btrace_open): Constify.
2306 * record-full.c (record_full_core_open_1, record_full_open_1)
2307 (record_full_open): Constify.
2308 * remote-m32r-sdi.c (m32r_open): Constify.
2309 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2310 (rockhopper_open, lsi_open): Constify.
2311 * remote-sim.c (gdbsim_open): Constify.
2312 * remote.c (remote_open, extended_remote_open, remote_open_1):
2313 Constify.
2314 * target.h (struct target_ops) <to_open>: Make "arg" const.
2315 * tracefile-tfile.c (tfile_open): Constify.
2316
2317 2014-07-30 Tom Tromey <tromey@redhat.com>
2318
2319 * breakpoint.c (map_breakpoint_numbers): Update.
2320 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2321 (get_number_const): New function.
2322 (get_number): Rewrite using get_number_const.
2323 (init_number_or_range): Make "string" const.
2324 (number_is_in_list): Make "list" const.
2325 * cli/cli-utils.h (get_number_const): Declare.
2326 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2327 (init_number_or_range, number_is_in_list): Update.
2328 * printcmd.c (map_display_numbers): Update.
2329 * value.c (value_from_history_ref): Constify.
2330 * value.h (value_from_history_ref): Update.
2331
2332 2014-07-30 Tom Tromey <tromey@redhat.com>
2333
2334 * corefile.c (hook_type, call_extra_exec_file_hooks)
2335 (specify_exec_file_hook): Constify.
2336 * exec.c (exec_file_attach): Make "filename" const.
2337 * gdbcore.h (deprecated_exec_file_display_hook)
2338 (specify_exec_file_hook, exec_file_attach): Constify.
2339 * main.c (captured_main): Use catch_command_errors_const.
2340
2341 2014-07-30 Tom Tromey <tromey@redhat.com>
2342
2343 * target.c (open_target): New function.
2344 (add_target_with_completer, add_deprecated_target_alias): Use
2345 set_cmd_sfunc, set_cmd_context.
2346 (debug_to_open): Remove.
2347 (setup_target_debug): Update.
2348
2349 2014-07-30 Yao Qi <yao@codesourcery.com>
2350
2351 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2352 comments.
2353 * parse.c (exp_iterate): Update comments.
2354
2355 2014-07-30 Gary Benson <gbenson@redhat.com>
2356
2357 * common/common-defs.h: New file.
2358 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2359 * defs.h: Include common-defs.h.
2360 Do not include config.h or build-gnulib/config.h.
2361
2362 2014-07-30 Gary Benson <gbenson@redhat.com>
2363
2364 * common/common-utils.h: Do not include config.h.
2365 * nat/linux-btrace.h: Likewise.
2366
2367 2014-07-30 Gary Benson <gbenson@redhat.com>
2368
2369 * btrace.c: Include defs.h.
2370 * common/ptid.c: Include defs.h or server.h as appropriate.
2371 * nat/mips-linux-watch.c: Likewise.
2372
2373 2014-07-29 Tom Tromey <tromey@redhat.com>
2374
2375 * target.c (target_is_pushed): Simplify.
2376
2377 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2378
2379 GDB 7.8 released.
2380
2381 2014-07-29 Yao Qi <yao@codesourcery.com>
2382
2383 PR gdb/17206
2384 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2385
2386 2014-07-28 Doug Evans <xdje42@gmail.com>
2387
2388 PR guile/17203
2389 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2390 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2391 parameters.
2392
2393 2014-07-28 Will Newton <will.newton@linaro.org>
2394
2395 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2396 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2397 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2398 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2399 (THUMB2_EABI_SYSCALL): Likewise.
2400 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2401 struct tramp_frame.
2402 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2403 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2404
2405 2014-07-27 Doug Evans <xdje42@gmail.com>
2406
2407 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2408
2409 2014-07-27 Doug Evans <xdje42@gmail.com>
2410
2411 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2412
2413 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2414 Doug Evans <xdje42@gmail.com>
2415
2416 PR guile/17146
2417 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2418 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2419 * configure.ac: Try to use guild to compile an scm file, if it fails
2420 then disable guile support.
2421 * configure: Regenerate.
2422 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2423 GUILE_FILE_LIST.
2424 (GUILE_COMPILED_FILES): New variable.
2425 (GUILE_FILES) Update.
2426 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2427 (stamp-guile): Compile scm files.
2428 * guile/guile.c (boot_guile_support): New function.
2429 (standard_throw_args_p): New function.
2430 (print_standard_throw_error, print_throw_error): New functions.
2431 (handle_boot_error): New function.
2432 (initialize_scheme_side): Rewrite to call boot_guile_support.
2433 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2434 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2435
2436 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2437 Doug Evans <xdje42@gmail.com>
2438
2439 PR guile/17146
2440 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2441 * guile/lib/gdb/support.scm: New file.
2442 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2443 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2444 All uses updated.
2445 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2446 All uses updated.
2447 (%assert-type): Ditto, and renamed to assert-type.
2448 (%exception-print-style): Delete.
2449
2450 2014-07-26 Doug Evans <xdje42@gmail.com>
2451
2452 PR build/17105
2453 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2454 * configure: Regenerate.
2455 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2456 PYTHON_FILES.
2457 (PYTHON_FILES): New variable.
2458 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2459 (GUILE_FILES): New variable.
2460 (stamp-python, install-python, uninstall-python): Handle empty
2461 file list.
2462 (stamp-guile, install-guile, uninstall-guile): Ditto.
2463
2464 2014-07-26 Doug Evans <xdje42@gmail.com>
2465
2466 PR guile/17177
2467 * guile/lib/gdb.scm (pretty-printers): Export.
2468 (set-pretty-printers!): Export.
2469 * guile/lib/gdb/printing.scm (gdb module): Update.
2470 (prepend-pretty-printer!, append-pretty-printer!): Update.
2471 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2472 (pretty_printer_list_var): Delete.
2473 (pretty_printer_list): New static global.
2474 (gdbscm_pretty_printers): New function.
2475 (gdbscm_set_pretty_printers_x): New function.
2476 (ppscm_find_pretty_printer_from_gdb): Update.
2477 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2478 (gdbscm_initialize_pretty_printers): Update.
2479
2480 2014-07-26 Doug Evans <xdje42@gmail.com>
2481
2482 PR 17185
2483 * configure.ac: Add check for header gc/gc.h.
2484 Add check for function setenv.
2485 * configure: Regenerate.
2486 * config.in: Regenerate.
2487 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2488
2489 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2490
2491 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2492 variation in gdbarch matching.
2493
2494 2014-07-25 Tom Tromey <tromey@redhat.com>
2495
2496 * exec.c (using_exec_ops): Remove.
2497 (exec_close_1): Update. Remove extraneous block, reindent.
2498 (add_target_sections): Use target_is_pushed.
2499
2500 2014-07-25 Pedro Alves <palves@redhat.com>
2501
2502 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2503 * monitor.c (monitor_create_inferior): Likewise.
2504 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2505 * remote-sim.c (gdbsim_create_inferior): Likewise.
2506 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2507 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2508 * windows-nat.c (do_initial_windows_stuff): Likewise.
2509
2510 2014-07-25 Pedro Alves <palves@redhat.com>
2511
2512 * NEWS: Mention signal passing and "signal" command changes.
2513 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2514 comment.
2515 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2516 call.
2517 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2518 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2519 (jump_command): Adjust clear_proceed_status call.
2520 (signal_command): Warn if other thread that are resumed have
2521 signals that will be delivered. Adjust clear_proceed_status call.
2522 (until_next_command, finish_command)
2523 (proceed_after_attach_callback, attach_command_post_wait)
2524 (attach_command): Adjust clear_proceed_status call.
2525 * infrun.c (proceed_after_vfork_done): Likewise.
2526 (proceed_after_attach_callback): Adjust comment.
2527 (clear_proceed_status_thread): Clear stop_signal if not in pass
2528 state.
2529 (clear_proceed_status_callback): Delete.
2530 (clear_proceed_status): New 'step' parameter. Only clear the
2531 proceed status of threads the command being prepared is about to
2532 resume.
2533 (proceed): If passed in an explicit signal, override stop_signal
2534 with it. Don't pass the last stop signal to the thread we're
2535 resuming.
2536 (init_wait_for_inferior): Adjust clear_proceed_status call.
2537 (switch_back_to_stepped_thread): Clear the signal if it should not
2538 be passed.
2539 * infrun.h (clear_proceed_status): New 'step' parameter.
2540 (user_visible_resume_ptid): Add comment.
2541 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2542 signal is in pass state.
2543 * remote.c (append_pending_thread_resumptions): Likewise.
2544 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2545
2546 2014-07-25 Tom Tromey <tromey@redhat.com>
2547
2548 * target.h (target_stopped_data_address)
2549 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2550 parentheses.
2551
2552 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2553
2554 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2555 comments.
2556 (avr_pointer_to_address): Likewise.
2557
2558 2014-07-24 Tom Tromey <tromey@redhat.com>
2559
2560 * monitor.c (compile_pattern): Update.
2561 * target.h (struct target_ops) <to_shortname, to_longname,
2562 to_doc>: Now const.
2563
2564 2014-07-24 Tom Tromey <tromey@redhat.com>
2565
2566 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2567 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2568 (add_info_alias, add_com): Make "doc" const.
2569 (print_doc_line): Make "str" const.
2570 (delete_cmd): Update.
2571 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2572 (print_doc_line): Update.
2573 * cli/cli-script.c (document_command): Update.
2574 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2575 (add_com, add_info, add_info_alias): Update.
2576 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2577 * python/py-cmd.c (cmdpy_destroyer): Update.
2578
2579 2014-07-24 Tom Tromey <tromey@redhat.com>
2580
2581 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2582 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2583 (help_cmd_list): Constify.
2584 (lookup_cmd): Update.
2585 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2586 const.
2587 (help_cmd_list, apropos_cmd): Update.
2588 * cli/cli-script.c (show_user): Update.
2589 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2590 * cli/cli-setshow.h (cmd_show_list): Update.
2591 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2592 (cmd_show_list): Update.
2593 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2594 * python/py-cmd.c (cmdpy_destroyer): Update.
2595
2596 2014-07-24 Tom Tromey <tromey@redhat.com>
2597
2598 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2599 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2600 const.
2601 * command.h (deprecate_cmd): Update.
2602 * maint.c (maintenance_do_deprecate): Add casts.
2603
2604 2014-07-24 Tom Tromey <tromey@redhat.com>
2605
2606 * cli/cli-decode.c (help_cmd): Make parameter "const".
2607 * cli/cli-decode.h (help_cmd): Update.
2608
2609 2014-07-24 Tom Tromey <tromey@redhat.com>
2610
2611 * stack.c (up_silently_base, down_silently_base): Make argument
2612 const.
2613
2614 2014-07-24 Tom Tromey <tromey@redhat.com>
2615
2616 * solib.c (solib_add): Make "pattern" const.
2617 * solib.h (solib_add): Update.
2618
2619 2014-07-24 Tom Tromey <tromey@redhat.com>
2620
2621 * remote.c (remote_serial_open, print_packet, putpkt)
2622 (putpkt_binary): Constify.
2623 * remote.h (putpkt): Update.
2624
2625 2014-07-24 Tom Tromey <tromey@redhat.com>
2626
2627 * monitor.c (monitor_open): Make "args" const.
2628 * monitor.h (monitor_open): Update.
2629
2630 2014-07-24 Tom Tromey <tromey@redhat.com>
2631
2632 * maint.c (match_bfd_flags): Make "string" const.
2633 (print_bfd_section_info): Remove casts.
2634 (print_objfile_section_info): Make "string" const.
2635
2636 2014-07-24 Tom Tromey <tromey@redhat.com>
2637
2638 * inf-child.c (inf_child_open_target): Make "arg" const.
2639 * inf-child.h (inf_child_open_target): Update.
2640
2641 2014-07-24 Tom Tromey <tromey@redhat.com>
2642
2643 * environ.c (unset_in_environ): Make "var" const.
2644 * environ.h (unset_in_environ): Update.
2645
2646 2014-07-24 Tom Tromey <tromey@redhat.com>
2647
2648 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2649 Make "cmd" const.
2650 (scan_filename_with_cleanup): Likewise.
2651 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2652 Make arguments const.
2653 (restore_command): Update.
2654
2655 2014-07-24 Pedro Alves <palves@redhat.com>
2656
2657 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2658
2659 2014-07-24 Tom Tromey <tromey@redhat.com>
2660 Gary Benson <gbenson@redhat.com>
2661
2662 * nat/linux-ptrace.c (additional_flags): New global.
2663 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2664 additional_flags; don't check GDBSERVER.
2665 (linux_ptrace_set_additional_flags): New function.
2666 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2667 Declare.
2668 * linux-nat.c (_initialize_linux_nat): Call
2669 linux_ptrace_set_additional_flags.
2670
2671 2014-07-24 Tom Tromey <tromey@redhat.com>
2672
2673 * make-target-delegates (munge_type, write_debugmethod): New
2674 functions.
2675 (debug_names): New global.
2676 ($TARGET_DEBUG_PRINTER): New global.
2677 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2678 name.
2679 Write debug methods. Generate init_debug_target.
2680 * target-debug.h: New file.
2681 * target-delegates.c: Rebuild.
2682 * target.c: Include target-debug.h.
2683 (debug_target): Hoist definition.
2684 (target_kill, target_get_section_table, target_memory_map)
2685 (target_flash_erase, target_flash_done, target_detach)
2686 (target_disconnect, target_wait, target_resume)
2687 (target_pass_signals, target_program_signals, target_follow_fork)
2688 (target_mourn_inferior, target_search_memory)
2689 (target_thread_address_space, target_close)
2690 (target_find_new_threads, target_core_of_thread)
2691 (target_verify_memory, target_insert_mask_watchpoint)
2692 (target_remove_mask_watchpoint): Remove targetdebug code.
2693 (debug_to_post_attach, debug_to_prepare_to_store)
2694 (debug_to_files_info, debug_to_insert_breakpoint)
2695 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2696 (debug_to_region_ok_for_hw_watchpoint)
2697 (debug_to_can_accel_watchpoint_condition)
2698 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2699 (debug_to_watchpoint_addr_within_range)
2700 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2701 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2702 (debug_to_terminal_init, debug_to_terminal_inferior)
2703 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2704 (debug_to_terminal_save_ours, debug_to_terminal_info)
2705 (debug_to_load, debug_to_post_startup_inferior)
2706 (debug_to_insert_fork_catchpoint)
2707 (debug_to_remove_fork_catchpoint)
2708 (debug_to_insert_vfork_catchpoint)
2709 (debug_to_remove_vfork_catchpoint)
2710 (debug_to_insert_exec_catchpoint)
2711 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2712 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2713 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2714 (setup_target_debug): Call init_debug_target.
2715 * target.h (TARGET_DEBUG_PRINTER): New macro.
2716 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2717 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2718
2719 2014-07-24 Gary Benson <gbenson@redhat.com>
2720
2721 * exceptions.h (throw_vfatal): Renamed to...
2722 (throw_vquit): New declaration.
2723 (throw_quit): Likewise.
2724 * exceptions.c (throw_vfatal): Renamed to...
2725 (throw_vquit): New function.
2726 (throw_quit): Likewise.
2727 (throw_error): Call throw_verror rather than throw_it.
2728 * utils.h (vfatal): Removed.
2729 (fatal): Likewise.
2730 * utils.c (vfatal): Removed.
2731 (fatal): Likewise.
2732 (internal_verror): Replaced call to fatal with call to throw_quit.
2733 (quit): Replaced calls to fatal with calls to throw_quit.
2734
2735 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2736
2737 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2738 target_read_code.
2739
2740 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2741
2742 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2743 less than zero in conditional expression.
2744
2745 2014-07-23 Tom Tromey <tromey@redhat.com>
2746
2747 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2748 ($INTRO_PART): Don't match whitespace.
2749 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2750 argument matching.
2751 ($METHOD): Add $METHOD_TRAILER.
2752 (trim): Rewrite.
2753 (scan_target_h): New sub.
2754 Change main loop not to collect state.
2755 * target-delegates.c: Rebuild.
2756
2757 2014-07-23 Gary Benson <gbenson@redhat.com>
2758
2759 * cp-support.c (gdb_demangle): Fix build on systems without
2760 sigaltstack.
2761
2762 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2763
2764 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2765 for reference entry value target data value.
2766
2767 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2768
2769 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2770 value_available_contents_eq.
2771
2772 2014-07-22 Pedro Alves <palves@redhat.com>
2773
2774 * value.c (allocate_optimized_out_value): Don't mark value as
2775 non-lazy.
2776
2777 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2778
2779 * MAINTAINERS (Write After Approval): Update my email address.
2780
2781 2014-07-20 Doug Evans <dje@google.com>
2782
2783 PR server/17147
2784 * remote.c (putpkt_binary): Add text to error message.
2785
2786 2014-07-20 Yao Qi <yao@codesourcery.com>
2787
2788 * eval.c: Remove "Chill" from comments.
2789 * gdbtypes.h: Likewise.
2790 * symtab.h: Likewise.
2791
2792 2014-07-20 Yao Qi <yao@codesourcery.com>
2793
2794 * std-operator.def: Update comments to TERNOP_SLICE.
2795
2796 2014-07-20 Yao Qi <yao@codesourcery.com>
2797
2798 * std-operator.def: Remove BINOP_RANGE.
2799 * breakpoint.c (watchpoint_exp_is_const): Update.
2800 * expprint.c (dump_subexp_body_standard): Likewise.
2801 * eval.c (init_array_element): Remove dead code.
2802 (evaluate_subexp_standard): Likewise.
2803
2804 2014-07-20 Yao Qi <yao@codesourcery.com>
2805
2806 * std-operator.def: Remove BINOP_IN.
2807 * breakpoint.c (watchpoint_exp_is_const): Update.
2808 * eval.c (evaluate_subexp_standard): Likewise.
2809 * expprint.c (dump_subexp_body_standard): Likewise.
2810
2811 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2812
2813 * microblaze-tdep.c (microblaze_register_names): Add
2814 the rshr and rslr register names.
2815 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2816 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2817 Use of tdesc_numbered_register. Use of
2818 microblaze_register_g_packet_guesses. Use of
2819 tdesc_use_registers. Use of set_gdbarch_register_type.
2820 (microblaze_register_g_packet_guesses): New.
2821 * microblaze-tdep.h (microblaze_reg_num): Add
2822 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2823 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2824 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2825 * features/microblaze-core.xml: New file.
2826 * features/microblaze-stack-protect.xml: New file.
2827 * features/microblaze-with-stack-protect.c: New file.
2828 * features/microblaze-with-stack-protect.xml: New file.
2829 * features/microblaze.xml: New file.
2830 * features/microblaze.c: New file.
2831 * features/Makefile (microblaze-with-stack-protect): Add
2832 microblaze-with-stack-protect microblaze and microblaze-expedite.
2833 * regformats/microblaze-with-stack-protect.dat: New file.
2834 * regformats/microblaze.dat: New file.
2835 * doc/gdb.texinfo (MicroBlaze Features): Added.
2836
2837 2014-07-18 Tom Tromey <tromey@redhat.com>
2838
2839 * exec.c (exec_ops): Now static.
2840 * exec.h (exec_ops): Don't declare.
2841
2842 2014-07-18 Tom Tromey <tromey@redhat.com>
2843
2844 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2845 to find_target_beneath.
2846 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2847 find_target_beneath.
2848 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2849
2850 2014-07-18 Tom Tromey <tromey@redhat.com>
2851
2852 PR gdb/17130:
2853 * utils.c (quit): Use target_supports_terminal_ours.
2854 * target.h (target_supports_terminal_ours): Declare.
2855 * target.c (target_supports_delete_record): Don't check
2856 to_delete_record against NULL.
2857 (target_supports_terminal_ours): New function.
2858
2859 2014-07-18 Tom Tromey <tromey@redhat.com>
2860
2861 PR gdb/17130:
2862 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2863 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2864 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2865 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2866 * windows-nat.c (windows_xfer_partial): Always delegate.
2867 * record-btrace.c (record_btrace_xfer_partial): Simplify
2868 delegation.
2869 (record_btrace_fetch_registers, record_btrace_store_registers)
2870 (record_btrace_prepare_to_store, record_btrace_resume)
2871 (record_btrace_wait, record_btrace_find_new_threads)
2872 (record_btrace_thread_alive): Likewise.
2873 * procfs.c (procfs_xfer_partial): Always delegate.
2874 * corelow.c (core_xfer_partial): Always delegate.
2875 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2876
2877 2014-07-18 Tom Tromey <tromey@redhat.com>
2878
2879 * exec.c (exec_make_note_section): Move earlier.
2880
2881 2014-07-17 Doug Evans <dje@google.com>
2882
2883 PR gdb/17170
2884 * maint.c (count_symtabs_and_blocks): Handle NULL
2885 current_program_space.
2886 (report_command_stats): Check global enabled flag in addition to
2887 recorded enabled flag.
2888 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2889
2890 2014-07-16 Pedro Alves <palves@redhat.com>
2891
2892 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2893
2894 2014-07-16 Tom Tromey <tromey@redhat.com>
2895
2896 * target.h (struct target_ops) <to_delete_record>: Reformat
2897 comment.
2898
2899 2014-07-16 Tom Tromey <tromey@redhat.com>
2900
2901 * target-delegates.c: Rebuild.
2902
2903 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2904
2905 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2906 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2907 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2908 (avr_pointer_to_address): Likewise.
2909 (avr_address_class_type_flags): New function.
2910 (avr_address_class_type_flags_to_name): Likewise.
2911 (avr_address_class_name_to_type_flags): Likewise.
2912 (avr_gdbarch_init): Set address_class_type_flags,
2913 address_class_type_flags_to_name and
2914 address_class_name_to_type_flags.
2915
2916 2014-07-15 Pedro Alves <palves@redhat.com>
2917
2918 * linux-nat.c (kill_callback): Save errno and work with saved
2919 copy.
2920
2921 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2922
2923 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2924
2925 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2926
2927 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2928 breakpoint support correctly.
2929
2930 2014-07-14 Pedro Alves <palves@redhat.com>
2931
2932 * utils.c (prompt_for_continue): Call target_terminal_ours.
2933
2934 2014-07-14 Pedro Alves <palves@redhat.com>
2935
2936 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2937 catch_errors. Don't re-enable stdin or notify observers where,
2938 and rethrow error.
2939 (fetch_inferior_event_wrapper): Delete.
2940
2941 2014-07-14 Pedro Alves <palves@redhat.com>
2942
2943 PR gdb/17072
2944 * top.c: Include "inf-loop.h".
2945 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2946 field.
2947 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2948 was async before.
2949 (gdb_readline_wrapper): Store whether the target is async, and
2950 make it sync.
2951
2952 2014-07-14 Pedro Alves <palves@redhat.com>
2953
2954 PR gdb/17072
2955 * top.c (gdb_readline_wrapper_line): Tweak comment.
2956 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2957 the input handler callback.
2958
2959 2014-07-14 Pedro Alves <palves@redhat.com>
2960
2961 PR gdb/17072
2962 * main.c: Include event-top.h.
2963 (handle_command_errors): New function.
2964 (catch_command_errors, catch_command_errors_const): Use it.
2965
2966 2014-07-14 Pedro Alves <palves@redhat.com>
2967
2968 * exceptions.c (catch_command_errors, catch_command_errors_const):
2969 Moved to main.c.
2970 * exceptions.h (catch_command_errors_ftype)
2971 (catch_command_errors_const_ftype): Moved to main.c.
2972 (catch_command_errors, catch_command_errors_const): Delete
2973 declarations.
2974 * main.c (catch_command_errors_ftype)
2975 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2976 (catch_command_errors, catch_command_errors_const)): Moved here
2977 from exceptions.c and make static.
2978
2979 2014-07-14 Pedro Alves <palves@redhat.com>
2980
2981 * exceptions.c (print_any_exception): Delete.
2982 (catch_exceptions_with_msg): Use exception_print instead of
2983 print_any_exception.
2984 (catch_errors): Use exception_fprintf instead of
2985 print_any_exception.
2986 (catch_command_errors, catch_command_errors_const): Use
2987 exception_print instead of print_any_exception.
2988
2989 2014-07-14 Pedro Alves <palves@redhat.com>
2990
2991 * infcall.c (run_inferior_call): Set 'sync_execution' while
2992 running the inferior call.
2993
2994 2014-07-14 Pedro Alves <palves@redhat.com>
2995
2996 * value.c (value_contents_equal): Delete function.
2997 * value.h (value_contents_equal): Delete declaration.
2998
2999 2014-07-14 Tom Tromey <tromey@redhat.com>
3000
3001 PR exp/17106:
3002 * gdbtypes.c (is_dynamic_type_internal): New function, from
3003 is_dynamic_type.
3004 (is_dynamic_type): Rewrite.
3005 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3006 (resolve_dynamic_struct): Likewise.
3007 (resolve_dynamic_type_internal): New function, from
3008 resolve_dynamic_type.
3009 (resolve_dynamic_type): Rewrite.
3010
3011 2014-07-14 Tom Tromey <tromey@redhat.com>
3012
3013 * target.c (target_require_runnable): Also check record_stratum.
3014 Update comment.
3015
3016 2014-07-11 Yao Qi <yao@codesourcery.com>
3017
3018 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3019 thumb_instruction_restores_sp return true.
3020
3021 2014-07-11 Yao Qi <yao@codesourcery.com>
3022
3023 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3024 (thumb_in_function_epilogue_p): Call
3025 thumb_instruction_restores_sp.
3026
3027 2014-07-11 Yao Qi <yao@codesourcery.com>
3028
3029 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3030 'add sp, #imm'.
3031 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3032
3033 2014-07-11 Gary Benson <gbenson@redhat.com>
3034
3035 * amd64-linux-nat.c (gdbcore.h): Remove include.
3036 (regset.h): Likewise.
3037 (nat/linux-btrace.h): Likewise.
3038 (btrace.h): Likewise.
3039 (gdb_assert.h): Likewise.
3040 (string.h): Likewise.
3041 (sys/uio.h): Likewise.
3042 (sys/debugreg.h): Likewise.
3043 (sys/syscall.h): Likewise.
3044 (sys/procfs.h): Likewise.
3045 (sys/user.h): Likewise.
3046 (asm/ptrace.h): Likewise.
3047 (i386-nat.h): Likewise.
3048 * i386-linux-nat.c (i386-nat.h): Likewise.
3049 (regset.h): Likewise.
3050 (target.h): Likewise.
3051 (linux-nat.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/user.h): Likewise.
3058 (sys/procfs.h): Likewise.
3059 (sys/reg.h): Likewise.
3060 (sys/debugreg.h): Likewise.
3061 (ORIG_EAX): Remove definition.
3062
3063 2014-07-11 Gary Benson <gbenson@redhat.com>
3064
3065 * i386-linux-nat.h: New file.
3066 * x86-linux-nat.h: Likewise.
3067 * x86-linux-nat.c: Likewise.
3068 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3069 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3070 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3071 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3072 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3073 (PTRACE_SETREGSET): Likewise.
3074 (arch_lwp_info): Now in x86-linux-nat.c.
3075 (have_ptrace_getregset): Now in x86-linux-nat.h.
3076 (x86_linux_dr_get): Now in x86-linux-nat.c.
3077 (x86_linux_dr_set): Likewise.
3078 (x86_linux_dr_get_addr): Likewise.
3079 (x86_linux_dr_get_control): Likewise.
3080 (x86_linux_dr_get_status): Likewise.
3081 (update_debug_registers_callback): Likewise.
3082 (x86_linux_dr_set_control): Likewise.
3083 (x86_linux_dr_set_addr): Likewise.
3084 (x86_linux_prepare_to_resume): Likewise.
3085 (x86_linux_new_thread): Likewise.
3086 (x86_linux_new_fork): Likewise.
3087 (x86_linux_get_thread_area): Likewise.
3088 (super_post_startup_inferior): Likewise.
3089 (x86_linux_child_post_startup_inferior): Likewise.
3090 (AMD64_LINUX_USER64_CS): Likewise.
3091 (AMD64_LINUX_X32_DS): Likewise.
3092 (x86_linux_read_description): Likewise.
3093 (x86_linux_enable_btrace): Likewise.
3094 (x86_linux_disable_btrace): Likewise.
3095 (x86_linux_teardown_btrace): Likewise.
3096 (x86_linux_read_btrace): Likewise.
3097 (x86_linux_create_target): Likewise.
3098 (x86_linux_add_target): Likewise.
3099 * i386-linux-nat.c (x86-linux-nat.h): New include.
3100 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3101 (PTRACE_SETREGSET): Likewise.
3102 (arch_lwp_info): Now in x86-linux-nat.c.
3103 (have_ptrace_getregset): Now in x86-linux-nat.h.
3104 (x86_linux_dr_get): Now in x86-linux-nat.c.
3105 (x86_linux_dr_set): Likewise.
3106 (x86_linux_dr_get_addr): Likewise.
3107 (x86_linux_dr_get_control): Likewise.
3108 (x86_linux_dr_get_status): Likewise.
3109 (update_debug_registers_callback): Likewise.
3110 (x86_linux_dr_set_control): Likewise.
3111 (x86_linux_dr_set_addr): Likewise.
3112 (x86_linux_prepare_to_resume): Likewise.
3113 (x86_linux_new_thread): Likewise.
3114 (x86_linux_new_fork): Likewise.
3115 (x86_linux_get_thread_area): Likewise.
3116 (super_post_startup_inferior): Likewise.
3117 (x86_linux_child_post_startup_inferior): Likewise.
3118 (AMD64_LINUX_USER64_CS): Likewise.
3119 (AMD64_LINUX_X32_DS): Likewise.
3120 (x86_linux_read_description): Likewise.
3121 (x86_linux_enable_btrace): Likewise.
3122 (x86_linux_disable_btrace): Likewise.
3123 (x86_linux_teardown_btrace): Likewise.
3124 (x86_linux_read_btrace): Likewise.
3125 (x86_linux_create_target): Likewise.
3126 (x86_linux_add_target): Likewise.
3127
3128 2014-07-11 Gary Benson <gbenson@redhat.com>
3129
3130 * amd64-linux-nat.c: Comment and whitespace changes.
3131 * i386-linux-nat.c: Comment and whitespace changes.
3132
3133 2014-07-11 Gary Benson <gbenson@redhat.com>
3134
3135 * amd64-linux-nat.c (x86_linux_create_target): New function.
3136 (x86_linux_add_target): Likewise.
3137 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3138 * i386-linux-nat.c (x86_linux_create_target): New function.
3139 (x86_linux_add_target): Likewise.
3140 (_initialize_i386_linux_nat): Delegate to the above new functions.
3141
3142 2014-07-11 Gary Benson <gbenson@redhat.com>
3143
3144 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3145 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3146 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3147 (ps_get_thread_area): Delegate to the above.
3148
3149 2014-07-11 Gary Benson <gbenson@redhat.com>
3150
3151 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3152 x86_linux_read_description. All uses updated. amd64-specific
3153 code conditionalized. Conditionalized i386-specific code added.
3154 Redundant cast removed.
3155 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3156 x86_linux_read_description. All uses updated. i386-specific
3157 code conditionalized. Conditionalized amd64-specific code added.
3158 One sizeof replaced with the actual type it is describing.
3159
3160 2014-07-11 Gary Benson <gbenson@redhat.com>
3161
3162 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3163 x86_linux_dr_get. All uses updated.
3164 (amd64_linux_dr_set): Renamed to
3165 x86_linux_dr_set. All uses updated.
3166 (amd64_linux_dr_get_addr): Renamed to
3167 x86_linux_dr_get_addr. All uses updated.
3168 (amd64_linux_dr_get_control): Renamed to
3169 x86_linux_dr_get_control. All uses updated.
3170 (amd64_linux_dr_get_status): Renamed to
3171 x86_linux_dr_get_status. All uses updated.
3172 (amd64_linux_dr_set_control): Renamed to
3173 x86_linux_dr_set_control. All uses updated.
3174 (amd64_linux_dr_set_addr): Renamed to
3175 x86_linux_dr_set_addr. All uses updated.
3176 (amd64_linux_prepare_to_resume): Renamed to
3177 x86_linux_prepare_to_resume. All uses updated.
3178 (amd64_linux_new_thread): Renamed to
3179 x86_linux_new_thread. All uses updated.
3180 (amd64_linux_new_fork): Renamed to
3181 x86_linux_new_fork. All uses updated.
3182 (amd64_linux_child_post_startup_inferior): Renamed to
3183 x86_linux_child_post_startup_inferior. All uses updated.
3184 (amd64_linux_enable_btrace): Renamed to
3185 x86_linux_enable_btrace. All uses updated.
3186 (amd64_linux_disable_btrace): Renamed to
3187 x86_linux_disable_btrace. All uses updated.
3188 (amd64_linux_teardown_btrace): Renamed to
3189 x86_linux_teardown_btrace. All uses updated.
3190 (amd64_linux_read_btrace): Renamed to
3191 x86_linux_read_btrace. All uses updated.
3192 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3193 x86_linux_dr_get. All uses updated.
3194 (i386_linux_dr_set): Renamed to
3195 x86_linux_dr_set. All uses updated.
3196 (i386_linux_dr_get_addr): Renamed to
3197 x86_linux_dr_get_addr. All uses updated.
3198 (i386_linux_dr_get_control): Renamed to
3199 x86_linux_dr_get_control. All uses updated.
3200 (i386_linux_dr_get_status): Renamed to
3201 x86_linux_dr_get_status. All uses updated.
3202 (i386_linux_dr_set_control): Renamed to
3203 x86_linux_dr_set_control. All uses updated.
3204 (i386_linux_dr_set_addr): Renamed to
3205 x86_linux_dr_set_addr. All uses updated.
3206 (i386_linux_prepare_to_resume): Renamed to
3207 x86_linux_prepare_to_resume. All uses updated.
3208 (i386_linux_new_thread): Renamed to
3209 x86_linux_new_thread. All uses updated.
3210 (i386_linux_new_fork): Renamed to
3211 x86_linux_new_fork. All uses updated.
3212 (i386_linux_child_post_startup_inferior): Renamed to
3213 x86_linux_child_post_startup_inferior. All uses updated.
3214 (i386_linux_enable_btrace): Renamed to
3215 x86_linux_enable_btrace. All uses updated.
3216 (i386_linux_disable_btrace): Renamed to
3217 x86_linux_disable_btrace. All uses updated.
3218 (i386_linux_teardown_btrace): Renamed to
3219 x86_linux_teardown_btrace. All uses updated.
3220 (i386_linux_read_btrace): Renamed to
3221 x86_linux_read_btrace. All uses updated.
3222
3223 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3224
3225 * remote.c (extended_remote_post_attach): New function.
3226 (init_extended_remote_ops): Install it as to_post_attach method.
3227
3228 2014-07-09 Pedro Alves <palves@redhat.com>
3229
3230 * infcmd.c (attach_command_post_wait): Don't call
3231 target_terminal_inferior here.
3232 (attach_command): Call it here instead.
3233
3234 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3235
3236 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3237 field.
3238 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3239 from varobj.c, with additional checks.
3240 (c_varobj_ops): Fill in is_path_expr_parent field.
3241 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3242 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3243 field.
3244 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3245 ops method.
3246 (varobj_default_is_path_expr_parent): New function.
3247 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3248 (varobj_default_is_path_expr_parent): Declare new function.
3249
3250 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3251
3252 * infcmd.c (finish_backward): Turn internal error into normal error.
3253
3254 2014-07-07 Pedro Alves <palves@redhat.com>
3255
3256 PR gdb/17096
3257 * remote.c (async_handle_remote_sigint)
3258 (async_handle_remote_sigint_twice): Call
3259 gdb_call_async_signal_handler instead of
3260 mark_async_signal_handler.
3261
3262 2014-07-07 Tom Tromey <tromey@redhat.com>
3263
3264 * target-delegates.c: Rebuild.
3265 * target.c (target_info_record): Remove.
3266 * record.c (info_record_command): Unconditionally call
3267 to_info_record.
3268 * target.h (struct target_ops) <to_info_record>: Use
3269 TARGET_DEFAULT_IGNORE.
3270 (target_info_record): Remove.
3271
3272 2014-07-07 Tom Tromey <tromey@redhat.com>
3273
3274 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3275 TARGET_DEFAULT_NORETURN.
3276 * target.c (generic_tls_error): New function.
3277 (target_translate_tls_address): Don't search target stack.
3278 * target-delegates.c: Rebuild.
3279 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3280 stack.
3281 * linux-thread-db.c (thread_db_get_thread_local_address):
3282 Unconditionally call beneath target.
3283
3284 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3285
3286 * cli/cli-logging.c (pop_output_files): Assign targerr to
3287 gdb_stdtargerr.
3288
3289 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3290
3291 * MAINTAINERS (Write After Approval): Update my email address.
3292
3293 2014-07-02 Gary Benson <gbenson@redhat.com>
3294
3295 * proc-service.c (ps_xfer_memory): Update comment.
3296 (ps_pstop): Remove unused function.
3297 (ps_pcontinue): Likewise.
3298 (ps_lstop): Likewise.
3299 (ps_lcontinue): Likewise.
3300 (ps_lgetxregsize): Likewise.
3301 (ps_lgetxregs): Likewise.
3302 (ps_lsetxregs): Likewise.
3303 (ps_plog): Likewise.
3304 (ps_ptread): Likewise.
3305 (ps_ptwrite): Likewise.
3306
3307 2014-07-01 Mark Wielaard <mjw@redhat.com>
3308
3309 * dwarf2read.c (add_array_cv_type): New function.
3310 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3311 (read_tag_volatile_type): Likewise.
3312
3313 2014-07-01 Tom Tromey <tromey@redhat.com>
3314
3315 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3316 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3317 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3318 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3319 * command.h (cmd_cfunc_ftype): Move earlier.
3320 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3321 (add_com, add_info): Use cmd_cfunc_ftype.
3322
3323 2014-06-30 Tom Tromey <tromey@redhat.com>
3324
3325 * symtab.c (operator_chars): Make parameters and return type
3326 const.
3327 (file_matches): Make "files" const.
3328 (struct search_symbols_data) <files>: Now const.
3329 (search_symbols): Make "regexp" and "files" parameters const.
3330 Update.
3331 (symtab_symbol_info): Remove cast.
3332 (rbreak_command): Update.
3333 * symtab.h (search_symbols): Update.
3334
3335 2014-06-27 Yao Qi <yao@codesourcery.com>
3336
3337 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3338 Change parameter type to 'struct thread_info *'. Caller
3339 updated.
3340 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3341 Update declaration.
3342 * dummy-frame.c (struct dummy_frame_id): New.
3343 (dummy_frame_id_eq): New function.
3344 (struct dummy_frame) <id>: Change its type to 'struct
3345 dummy_frame_id'.
3346 (dummy_frame_push): Add parameter ptid and save it in
3347 dummy_frame_id.
3348 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3349 inferior_ptid.
3350 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3351 to inferior_ptid.
3352 (lookup_dummy_frame): Change parameter type to 'struct
3353 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3354 instead of frame_id_eq.
3355 (dummy_frame_pop): Add parameter ptid. Callers updated.
3356 Update comments. Compose dummy_frame_id and pass it to
3357 lookup_dummy_frame.
3358 (dummy_frame_discard): Add parameter ptid.
3359 (dummy_frame_sniffer): Compose dummy_frame_id and call
3360 dummy_frame_id_eq instead of frame_id_eq.
3361 (fprint_dummy_frames): Print ptid.
3362 * dummy-frame.h: Remove comments.
3363 (dummy_frame_push): Add ptid in declaration.
3364 (dummy_frame_pop, dummy_frame_discard): Likewise.
3365
3366 2014-06-26 Tom Tromey <tromey@redhat.com>
3367
3368 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3369 * command.h (error_no_arg): Update.
3370
3371 2014-06-26 Tom Tromey <tromey@redhat.com>
3372
3373 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3374 (do_show_command): Make "arg" const.
3375 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3376
3377 2014-06-26 Tom Tromey <tromey@redhat.com>
3378
3379 * record-full.c (record_full_get_bookmark): Make "args" const.
3380 (record_full_goto_bookmark): Make "raw_bookmark" const.
3381 * record.c (record_goto): New function.
3382 (cmd_record_goto): Use it. Now static.
3383 * record.h (record_goto): Declare.
3384 (cmd_record_goto): Remove declaration.
3385 * target-delegates.c: Rebuild.
3386 * target.h (struct target_ops) <to_get_bookmark,
3387 to_goto_bookmark>: Make parameter const.
3388
3389 2014-06-26 Tom Tromey <tromey@redhat.com>
3390
3391 * defs.h (generic_load): Update.
3392 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3393 * monitor.c (monitor_load): Make "args" const.
3394 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3395 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3396 const.
3397 (mips_load): Make "file" const.
3398 * remote-sim.c (gdbsim_load): Make "args" const.
3399 * remote.c (remote_load): Make "name" const.
3400 * symfile.c (generic_load): Make "args" const.
3401 * target-delegates.c: Rebuild.
3402 * target.c (target_load): Make "arg" const.
3403 (debug_to_load): Make "args" const.
3404 * target.h (struct target_ops) <to_load>: Make parameter const.
3405 (target_load): Update.
3406
3407 2014-06-26 Tom Tromey <tromey@redhat.com>
3408
3409 PR symtab/16902:
3410 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3411 (dwarf2_physname, read_partial_die)
3412 (guess_partial_die_structure_name, fixup_partial_die)
3413 (guess_full_die_structure_name, anonymous_struct_prefix)
3414 (dwarf2_name): Use per-BFD obstack.
3415
3416 2014-06-26 Yao Qi <yao@codesourcery.com>
3417
3418 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3419 dummyframe and this_id into inner block below.
3420
3421 2014-06-26 Yao Qi <yao@codesourcery.com>
3422
3423 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3424 with "signal_pass[0]" in the initialization of signal_pass.
3425
3426 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3427
3428 * record-btrace.c (record_btrace_generating_corefile)
3429 (record_btrace_prepare_to_generate_core)
3430 (record_btrace_done_generating_core): New.
3431 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3432 (record_btrace_store_registers, record_btrace_prepare_to_store):
3433 Forward request when generating a core file.
3434 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3435 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3436 to_done_generating_core.
3437
3438 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3439
3440 * target.h (target_ops) <to_prepare_to_generate_core>
3441 <to_done_generating_core>: New.
3442 (target_prepare_to_generate_core, target_done_generating_core): New.
3443 * target.c (target_prepare_to_generate_core)
3444 (target_done_generating_core): New.
3445 * target-delegates.c: Regenerate.
3446 * gcore.c: (write_gcore_file): Rename to ...
3447 (write_gcore_file_1): ...this.
3448 (write_gcore_file): Call target_prepare_to_generate_core
3449 and target_done_generating_core.
3450
3451 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3452
3453 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3454 * gcore.c (write_gcore_file): Free memory returned from
3455 make_corefile_notes.
3456 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3457 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3458
3459 2014-06-24 Yao Qi <yao@codesourcery.com>
3460
3461 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3462 (arm_linux_init_abi): Set skip_trampoline_code with
3463 gdbarch_skip_trampoline_code instead of
3464 find_solib_trampoline_target.
3465
3466 2014-06-24 Yao Qi <yao@codesourcery.com>
3467
3468 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3469 arm_skip_bx_reg returns non-zero.
3470
3471 2014-06-24 Yao Qi <yao@codesourcery.com>
3472
3473 * arm-tdep.c (arm_skip_bx_reg): New function.
3474 (arm_skip_stub): Call arm_skip_bx_reg.
3475
3476 2014-06-23 Don Breazeal <donb@codesourcery.com>
3477
3478 * MAINTAINERS: Add myself as write-after-approval maintainer.
3479
3480 2014-06-23 Pedro Alves <palves@redhat.com>
3481
3482 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3483 DR_CONTROL before setting DR0..DR3.
3484 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3485 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3486 bits of DR_CONTROL related to the debug register slot being
3487 disabled. If all slots are vacant, clear local slowdown as well,
3488 and assert DR_CONTROL is 0.
3489
3490 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3491
3492 * python/lib/gdb/command/xmethods.py
3493 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3494 current progspace only if the string "progspace" matches LOCUS_RE.
3495
3496 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3497
3498 Fix --with-system-readline with readline-6.3 patch 5.
3499 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3500 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3501 types.
3502
3503 2014-06-20 Tom Tromey <tromey@redhat.com>
3504
3505 * dwarf2read.c (dw2_get_real_path): Use correct type in
3506 OBSTACK_CALLOC.
3507 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3508
3509 2014-06-20 Gary Benson <gbenson@redhat.com>
3510
3511 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3512 * common/glibc_thread_db.h: Likewise.
3513 * common/i386-cpuid.h: Likewise.
3514 * common/i386-gcc-cpuid.h: Likewise.
3515 * common/linux-btrace.h: Likewise.
3516 * common/linux-osdata.h: Likewise.
3517 * common/linux-procfs.h: Likewise.
3518 * common/linux-ptrace.h: Likewise.
3519 * common/mips-linux-watch.h: Likewise.
3520 * common/linux-btrace.c: Moved to nat.
3521 * common/linux-osdata.c: Likewise.
3522 * common/linux-procfs.c: Likewise.
3523 * common/linux-ptrace.c: Likewise.
3524 * common/mips-linux-watch.c: Likewise.
3525 * nat/gdb_thread_db.h: Moved from common.
3526 * nat/glibc_thread_db.h: Likewise.
3527 * nat/i386-cpuid.h: Likewise.
3528 * nat/i386-gcc-cpuid.h: Likewise.
3529 * nat/linux-btrace.c: Likewise.
3530 * nat/linux-btrace.h: Likewise.
3531 * nat/linux-osdata.c: Likewise.
3532 * nat/linux-osdata.h: Likewise.
3533 * nat/linux-procfs.c: Likewise.
3534 * nat/linux-procfs.h: Likewise.
3535 * nat/linux-ptrace.c: Likewise.
3536 * nat/linux-ptrace.h: Likewise.
3537 * nat/mips-linux-watch.c: Likewise.
3538 * nat/mips-linux-watch.h: Likewise.
3539 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3540 (object file files): Reordered.
3541 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3542 of glibc_thread_db.h.
3543
3544 2014-06-20 Gary Benson <gbenson@redhat.com>
3545
3546 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3547 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3548 (i386_dr_low): Likewise.
3549 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3550 (i386_dr_low_set_addr): Likewise.
3551 (i386_dr_low_get_addr): Likewise.
3552 (i386_dr_low_can_set_control): Likewise.
3553 (i386_dr_low_set_control): Likewise.
3554 (i386_dr_low_get_control): Likewise.
3555 (i386_dr_low_get_status): Likewise.
3556 (i386_get_debug_register_length): Likewise.
3557 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3558 (i386_dr_low): Likewise.
3559 * nat/i386-dregs.c (i386-low.h): Remove include.
3560 (i386-nat.h): Likewise.
3561 (nat/i386-dregs.h): New include.
3562 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3563 (i386_dr_low_set_addr): Likewise.
3564 (i386_dr_low_get_addr): Likewise.
3565 (i386_dr_low_can_set_control): Likewise.
3566 (i386_dr_low_set_control): Likewise.
3567 (i386_dr_low_get_control): Likewise.
3568 (i386_dr_low_get_status): Likewise.
3569 (i386_get_debug_register_length): Likewise.
3570 (debug_hw_points): Likewise.
3571
3572 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3573
3574 * Makefile.in (SFILES): Add d-exp.y.
3575 (YYFILES): Add d-exp.c.
3576 (YYOBJ): Add d-exp.o.
3577 (local-maintainer-clean): Delete d-exp.c.
3578 * d-exp.y: New file.
3579 * d-lang.h (d_parse): New declaration.
3580 (d_error): New declaration.
3581 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3582 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3583 PREC_ORDER operators.
3584 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3585
3586 2014-06-19 Yao Qi <yao@codesourcery.com>
3587
3588 * gdbthread.h (any_running): Remove the declaration.
3589 * thread.c (any_running): Remove.
3590
3591 2014-06-19 Yao Qi <yao@codesourcery.com>
3592
3593 * gdbthread.h (struct thread_info) <state>: Change its type to
3594 'enum thread_state'. Update comments.
3595
3596 2014-06-19 Pedro Alves <palves@redhat.com>
3597
3598 * gdbthread.h (ALL_THREADS): Delete.
3599 (ALL_NON_EXITED_THREADS): New macro.
3600 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3601 instead of ALL_THREADS.
3602 * infrun.c (find_thread_needs_step_over)
3603 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3604 instead of ALL_THREADS.
3605 * record-btrace.c (record_btrace_open)
3606 (record_btrace_stop_recording, record_btrace_close)
3607 (record_btrace_is_replaying, record_btrace_resume)
3608 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3609 * remote.c (append_pending_thread_resumptions): Likewise.
3610 * thread.c (thread_apply_all_command): Likewise.
3611
3612 2014-06-19 Gary Benson <gbenson@redhat.com>
3613
3614 * i386-nat.c (i386_stopped_by_watchpoint):
3615 Use i386_dr_stopped_by_watchpoint.
3616 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3617 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3618
3619 2014-06-19 Gary Benson <gbenson@redhat.com>
3620
3621 * nat/i386-dregs.c: New file.
3622 * Makefile.in (i386-dregs.o): New rule.
3623 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3624 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3625 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3626 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3627 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3628 * config/i386/go32.mh (NATDEPFILES): Likewise.
3629 * config/i386/linux.mh (NATDEPFILES): Likewise.
3630 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3631 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3632 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3633 * i386-nat.h (debug_hw_points): New declaration.
3634 * i386-nat.c (breakpoint.h): Remove include.
3635 (command.h): Likewise.
3636 (target.h): Likewise.
3637 (gdb_assert.h): Likewise.
3638 (debug_hw_points): Made nonstatic.
3639 (debug_printf): Now in i386-dregs.c.
3640 (TARGET_HAS_DR_LEN_8): Likewise.
3641 (DR_CONTROL_SHIFT): Likewise.
3642 (DR_CONTROL_SIZE): Likewise.
3643 (DR_RW_EXECUTE): Likewise.
3644 (DR_RW_WRITE): Likewise.
3645 (DR_RW_READ): Likewise.
3646 (DR_RW_IORW): Likewise.
3647 (DR_LEN_1): Likewise.
3648 (DR_LEN_2): Likewise.
3649 (DR_LEN_4): Likewise.
3650 (DR_LEN_8): Likewise.
3651 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3652 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3653 (DR_ENABLE_SIZE): Likewise.
3654 (DR_LOCAL_SLOWDOWN): Likewise.
3655 (DR_GLOBAL_SLOWDOWN): Likewise.
3656 (DR_CONTROL_RESERVED): Likewise.
3657 (I386_DR_CONTROL_MASK): Likewise.
3658 (I386_DR_VACANT): Likewise.
3659 (I386_DR_LOCAL_ENABLE): Likewise.
3660 (I386_DR_GLOBAL_ENABLE): Likewise.
3661 (I386_DR_DISABLE): Likewise.
3662 (I386_DR_SET_RW_LEN): Likewise.
3663 (I386_DR_GET_RW_LEN): Likewise.
3664 (I386_DR_WATCH_HIT): Likewise.
3665 (i386_wp_op_t): Likewise.
3666 (i386_show_dr): Likewise.
3667 (i386_length_and_rw_bits): Likewise.
3668 (i386_insert_aligned_watchpoint): Likewise.
3669 (i386_remove_aligned_watchpoint): Likewise.
3670 (i386_handle_nonaligned_watchpoint): Likewise.
3671 (i386_update_inferior_debug_regs): Likewise.
3672 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3673 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3674 (i386_region_ok_for_watchpoint):
3675 Use i386_dr_region_ok_for_watchpoint.
3676 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3677
3678 2014-06-19 Gary Benson <gbenson@redhat.com>
3679
3680 * i386-nat.c (i386_insert_hw_breakpoint): Use
3681 i386_insert_watchpoint.
3682 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3683
3684 2014-06-19 Gary Benson <gbenson@redhat.com>
3685
3686 * i386-nat.c (i386_dr_show): Renamed to
3687 i386_show_dr and made static. All uses updated.
3688 (i386_dr_length_and_rw_bits): Renamed to
3689 i386_length_and_rw_bits and made static.
3690 All uses updated.
3691 (i386_dr_insert_aligned_watchpoint): Renamed to
3692 i386_insert_aligned_watchpoint and made static.
3693 All uses updated.
3694 (i386_dr_remove_aligned_watchpoint): Renamed to
3695 i386_remove_aligned_watchpoint and made static.
3696 All uses updated.
3697 (i386_dr_update_inferior_debug_regs): Renamed to
3698 i386_update_inferior_debug_regs and made static.
3699 All uses updated.
3700 * nat/i386-dregs.h (i386_dr_show): Removed.
3701 (i386_dr_length_and_rw_bits): Likewise.
3702 (i386_dr_insert_aligned_watchpoint): Likewise.
3703 (i386_dr_remove_aligned_watchpoint): Likewise.
3704 (i386_dr_update_inferior_debug_regs): Likewise.
3705
3706 2014-06-19 Gary Benson <gbenson@redhat.com>
3707
3708 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3709 * configure: Regenerate.
3710 * config.in: Likewise.
3711 * main.c (signal.h): New include.
3712 (setup_alternate_signal_stack): New function.
3713 (captured_main): Call the above.
3714 * cp-support.c (signal.h): New include.
3715 (catch_demangler_crashes): New flag.
3716 (SIGJMP_BUF): New define.
3717 (SIGSETJMP): Likewise.
3718 (SIGLONGJMP): Likewise.
3719 (gdb_demangle_jmp_buf): New static global.
3720 (gdb_demangle_attempt_core_dump): Likewise.
3721 (gdb_demangle_signal_handler): New function.
3722 (gdb_demangle): If catch_demangler_crashes is set, install the
3723 above signal handler before calling bfd_demangle, and restore
3724 the original signal handler afterwards. Display the offending
3725 symbol and call demangler_warning the first time a segmentation
3726 fault is caught.
3727 (_initialize_cp_support): New maint set/show command.
3728
3729 2014-06-19 Gary Benson <gbenson@redhat.com>
3730
3731 * utils.h (resource_limit_kind): New enum.
3732 (can_dump_core): New declaration.
3733 (warn_cant_dump_core): Likewise.
3734 (dump_core): Likewise.
3735 * utils.c (dump_core): Made nonstatic. Added new
3736 parameter "limit_kind".
3737 (can_dump_core): Made nonstatic. Moved printing code to...
3738 (warn_cant_dump_core): New function.
3739 (can_dump_core_warn): Likewise.
3740 (internal_vproblem): Replace calls to can_dump_core with
3741 calls to can_dump_core_warn. Supply new argument to each.
3742
3743 2014-06-19 Gary Benson <gbenson@redhat.com>
3744
3745 * utils.h (demangler_vwarning): New declaration.
3746 (demangler_warning): Likewise.
3747 * utils.c (struct internal_problem)
3748 <user_settable_should_quit>: New field.
3749 <user_settable_should_dump_core>: Likewise
3750 (internal_error_problem): Add values for above new fields.
3751 (internal_warning_problem): Likewise.
3752 (demangler_warning_problem): New static global.
3753 (demangler_vwarning): New function.
3754 (demangler_warning): Likewise.
3755 (add_internal_problem_command): Selectively add commands.
3756 (_initialize_utils): New internal problem command.
3757 * maint.c (maintenance_demangler_warning): New function.
3758 (_initialize_maint_cmds): New command.
3759
3760 2014-06-18 Tom Tromey <tromey@redhat.com>
3761
3762 * f-valprint.c (info_common_command_for_block): Update.
3763 * symtab.h (struct general_symbol_info) <common_block>: Now
3764 const.
3765
3766 2014-06-18 Tom Tromey <tromey@redhat.com>
3767
3768 * symtab.h (struct symtab) <blockvector>: Now const.
3769 * ada-lang.c (ada_add_global_exceptions): Update.
3770 * buildsym.c (augment_type_symtab): Update.
3771 * dwarf2read.c (dw2_lookup_symbol): Update.
3772 * jit.c (finalize_symtab): Update.
3773 * jv-lang.c (add_class_symtab_symbol): Update.
3774 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3775 Update.
3776 * objfiles.c (objfile_relocate1): Update.
3777 * psymtab.c (lookup_symbol_aux_psymtabs)
3778 (maintenance_check_psymtabs): Update.
3779 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3780 Update.
3781 * spu-tdep.c (spu_catch_start): Update.
3782 * symmisc.c (dump_symtab_1): Update.
3783 * symtab.c (lookup_global_symbol_from_objfile)
3784 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3785 (basic_lookup_transparent_type_quick)
3786 (basic_lookup_transparent_type, find_pc_sect_symtab)
3787 (find_pc_sect_line, search_symbols): Update.
3788 * block.c (find_block_in_blockvector): Make "bl" const.
3789 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3790 const.
3791 (blockvector_contains_pc): Make "bv" const.
3792 (block_for_pc_sect): Update.
3793 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3794 (blockvector_contains_pc): Update.
3795 * breakpoint.c (resolve_sal_pc): Update.
3796 * inline-frame.c (block_starting_point_at): Update.
3797
3798 2014-06-18 Tom Tromey <tromey@redhat.com>
3799
3800 * completer.c (complete_line): Make "line_buffer" const.
3801 * completer.h (complete_line): Update.
3802
3803 2014-06-18 Tom Tromey <tromey@redhat.com>
3804
3805 * symtab.c (add_macro_name): Remove unneeded cast.
3806
3807 2014-06-18 Tom Tromey <tromey@redhat.com>
3808
3809 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3810 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3811
3812 2014-06-18 Tom Tromey <tromey@redhat.com>
3813
3814 * probe.c (info_probes_for_ops): Make "arg" const.
3815 * probe.h (info_probes_for_ops): Update.
3816
3817 2014-06-18 Tom Tromey <tromey@redhat.com>
3818
3819 * varobj.c (varobj_create): Update.
3820 * valops.c (value_of_this): Update.
3821 * tracepoint.c (add_local_symbols, scope_info): Update.
3822 * symtab.h (struct general_symbol_info) <block>: Now const.
3823 * symtab.c (skip_prologue_sal)
3824 (default_make_symbol_completion_list_break_on)
3825 (skip_prologue_using_sal): Update.
3826 * stack.h (iterate_over_block_locals)
3827 (iterate_over_block_local_vars): Update.
3828 * stack.c (print_frame_args): Update.
3829 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3830 parameter const.
3831 (get_selected_block): Make return type const.
3832 * python/py-frame.c (frapy_block): Update.
3833 * python/py-block.c (gdbpy_block_for_pc): Update.
3834 * p-exp.y (%union) <bval>: Now const.
3835 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3836 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3837 * m2-exp.y (%union) <bval>: Now const.
3838 * linespec.c (get_current_search_block): Make return type const.
3839 (create_sals_line_offset, find_label_symbols): Update.
3840 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3841 Update.
3842 (block_starting_point_at): Make "block" const.
3843 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3844 (check_exception_resume): Update.
3845 * guile/scm-frame.c (gdbscm_frame_block): Update.
3846 * guile/scm-block.c (gdbscm_lookup_block): Update.
3847 * frame.h (get_frame_block): Update.
3848 (get_selected_block): Make return type const.
3849 * frame.c (frame_id_inner): Update.
3850 * f-valprint.c (info_common_command_for_block)
3851 (info_common_command): Update.
3852 * dwarf2loc.c (dwarf2_find_location_expression)
3853 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3854 (locexpr_describe_location_piece): Update.
3855 * c-exp.y (%union) <bval>: Now const.
3856 * breakpoint.c (resolve_sal_pc): Update.
3857 * blockframe.c (get_frame_block):Make return type const.
3858 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3859 (block_innermost_frame): Update.
3860 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3861 (block_for_pc, block_for_pc_sect): Update.
3862 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3863 'pblock' const.
3864 (block_for_pc_sect, block_for_pc): Make return type const.
3865 * ax-gdb.c (gen_expr): Update.
3866 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3867 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3868 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3869 (ada_read_var_value): Update.
3870 * ada-exp.y (struct name_info) <block>: Now const.
3871 (%union): Likewise.
3872 (block_lookup): Constify.
3873
3874 2014-06-18 Gary Benson <gbenson@redhat.com>
3875
3876 * nat/i386-dregs.h: New file.
3877 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3878 * i386-nat.h (i386-dregs.h): New include.
3879 (DR_FIRSTADDR): Now in i386-dregs.h.
3880 (DR_LASTADDR): Likewise.
3881 (DR_NADDR): Likewise.
3882 (DR_STATUS): Likewise.
3883 (DR_CONTROL): Likewise.
3884 (i386_debug_reg_state): Likewise.
3885 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3886
3887 2014-06-18 Don Breazeal <donb@codesourcery.com>
3888
3889 * breakpoint.c (set_longjmp_breakpoint): Call
3890 momentary_breakpoint_from_master with additional argument.
3891 (set_longjmp_breakpoint_for_call_dummy): Call
3892 momentary_breakpoint_from_master with additional argument.
3893 (set_std_terminate_breakpoint): Call
3894 momentary_breakpoint_from_master with additional argument.
3895 (momentary_breakpoint_from_master): Add argument to function
3896 definition and use it to initialize structure member flag.
3897 (clone_momentary_breakpoint): Call
3898 momentary_breakpoint_from_master with additional argument.
3899 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3900 member flags set in momentary_breakpoint_from_master.
3901
3902 2014-06-18 Gary Benson <gbenson@redhat.com>
3903
3904 * i386-nat.c (i386_show_dr): Renamed to
3905 i386_dr_show and made nonstatic. All uses updated.
3906 (i386_length_and_rw_bits): Renamed to
3907 i386_dr_length_and_rw_bits and made nonstatic.
3908 All uses updated.
3909 (i386_insert_aligned_watchpoint): Renamed to
3910 i386_dr_insert_aligned_watchpoint and made nonstatic.
3911 All uses updated.
3912 (i386_remove_aligned_watchpoint): Renamed to
3913 i386_dr_remove_aligned_watchpoint and made nonstatic.
3914 All uses updated.
3915 (i386_update_inferior_debug_regs): Renamed to
3916 i386_dr_update_inferior_debug_regs and made nonstatic.
3917 All uses updated.
3918
3919 2014-06-18 Gary Benson <gbenson@redhat.com>
3920
3921 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3922 (i386_dr_low_can_set_control): Likewise.
3923 (i386_dr_low_set_addr): Likewise.
3924 (i386_dr_low_set_control): Likewise.
3925 (i386_dr_low_get_addr): Likewise.
3926 (i386_dr_low_get_status): Likewise.
3927 (i386_dr_low_get_control): Likewise.
3928 (i386_insert_aligned_watchpoint): Use new macros.
3929 (i386_update_inferior_debug_regs): Likewise.
3930 (i386_stopped_data_address): Likewise.
3931
3932 2014-06-18 Gary Benson <gbenson@redhat.com>
3933
3934 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3935 New parameter. All uses updated.
3936
3937 2014-06-18 Gary Benson <gbenson@redhat.com>
3938
3939 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3940 All uses updated.
3941
3942 2014-06-18 Gary Benson <gbenson@redhat.com>
3943
3944 * i386-nat.c (debug_printf): New macro.
3945 (i386_get_debug_register_length): Likewise.
3946 (TARGET_HAS_DR_LEN_8): Use above macro.
3947 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3948 and printf_unfiltered. Use phex to format values.
3949
3950 2014-06-18 Gary Benson <gbenson@redhat.com>
3951
3952 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3953 Make const.
3954
3955 2014-06-18 Gary Benson <gbenson@redhat.com>
3956
3957 * i386-nat.c: Comment changes.
3958
3959 2014-06-18 Gary Benson <gbenson@redhat.com>
3960
3961 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3962
3963 2014-06-18 Gary Benson <gbenson@redhat.com>
3964
3965 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3966 (i386_insert_aligned_watchpoint): Likewise.
3967 (i386_remove_aligned_watchpoint): Likewise.
3968 (i386_handle_nonaligned_watchpoint): Likewise.
3969
3970 2014-06-18 Gary Benson <gbenson@redhat.com>
3971
3972 * i386-nat.c: Whitespace changes.
3973
3974 2014-06-17 Samuel Bronson <naesten@gmail.com>
3975
3976 * MAINTAINERS: Update Roland McGrath's email address.
3977 Thanks to Sergio Durigan Junior for pointing out that he left
3978 Red Hat a while ago, and giving me a current address.
3979
3980 2014-06-17 Tom Tromey <tromey@redhat.com>
3981
3982 * utils.h (savestring): Remove declaration.
3983
3984 2014-06-17 Tom Tromey <tromey@redhat.com>
3985
3986 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3987
3988 2014-06-16 Keith Seitz <keiths@redhat.com>
3989
3990 PR mi/15863
3991 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3992 to update the varobj if inferior_ptid is null_ptid.
3993
3994 2014-06-16 Tom Tromey <tromey@redhat.com>
3995
3996 * target.h (struct target_ops) <to_info_proc>: Make parameter
3997 const.
3998 (target_info_proc): Update.
3999 * target.c (target_info_proc): Make "args" const.
4000 * procfs.c (procfs_info_proc): Update.
4001 * linux-tdep.c (linux_info_proc): Update.
4002 (linux_core_info_proc_mappings): Make "args" const.
4003 (linux_core_info_proc): Update.
4004 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4005 * gdbarch.c: Rebuild.
4006 * gdbarch.h: Rebuild.
4007 * corelow.c (core_info_proc): Update.
4008
4009 2014-06-16 Tom Tromey <tromey@redhat.com>
4010
4011 * target.h (struct target_ops) <to_disconnect>: Make parameter
4012 const.
4013 (target_disconnect): Update.
4014 * target.c (target_disconnect): Make "args" const.
4015 * target-delegates.c: Rebuild.
4016 * remote.c (remote_disconnect): Update.
4017 * record.h (record_disconnect): Update.
4018 * record.c (record_disconnect): Update.
4019 * inf-child.c (inf_child_disconnect): Update.
4020
4021 2014-06-16 Tom Tromey <tromey@redhat.com>
4022
4023 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4024 * target.c (debug_to_rcmd, default_rcmd): Update.
4025 * target-delegates.c: Rebuild.
4026 * remote.c (remote_rcmd): Update.
4027 * monitor.c (monitor_rcmd): Update.
4028
4029 2014-06-16 Pedro Alves <palves@redhat.com>
4030
4031 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4032 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4033 have OBJF_SHARED set.
4034 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4035 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4036 instead of OBJF_USERLOADED.
4037 * objfiles.h (OBJF_SHARED): Update comment.
4038 (userloaded_objfile_contains_address_p): Rename to ...
4039 (shared_objfile_contains_address_p): ... this, and update
4040 comments.
4041 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4042 new objfile.
4043 (remove_symbol_file_command): Skip objfiles that don't have
4044 OBJF_SHARED set.
4045
4046 2014-06-16 Tom Tromey <tromey@redhat.com>
4047
4048 * minsyms.h (prim_record_minimal_symbol)
4049 (prim_record_minimal_symbol_and_info): Update comments.
4050
4051 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4052
4053 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4054 or --without-guile, according to how GDB was built.
4055
4056 2014-06-13 Tom Tromey <tromey@redhat.com>
4057
4058 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4059 to help_list.
4060 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4061 to help_list.
4062 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4063 help_list.
4064 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4065 help_list.Pass all_commands, not -1, to help_list.
4066 * cli/cli-dump.c (dump_command, append_command)
4067 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4068 (binary_dump_command, binary_append_command): Pass all_commands,
4069 not -1, to help_list.
4070 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4071 -1, to help_list.
4072 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4073 -1, to help_list.
4074 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4075 help_list.
4076 * top.c (set_history): Pass all_commands, not -1, to help_list.
4077 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4078 all_commands, not -1, to help_list.
4079 * symfile.c (overlay_command): Pass all_commands, not -1, to
4080 help_list.
4081 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4082 help_list.
4083 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4084 help_list.
4085 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4086 -1, to help_list.
4087 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4088 not -1, to help_list.
4089 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4090 not -1, to help_list.
4091 * maint.c (maintenance_command, maintenance_info_command)
4092 (maintenance_print_command, maintenance_set_cmd): Pass
4093 all_commands, not -1, to help_list.
4094 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4095 help_list.
4096 * language.c (set_check): Pass all_commands, not -1, to help_list.
4097 * infcmd.c (unset_command): Pass all_commands, not -1, to
4098 help_list.
4099 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4100 help_list.
4101 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4102 help_list.
4103 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4104 help_list.
4105 * breakpoint.c (save_command): Pass all_commands, not -1, to
4106 help_list.
4107 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4108 all_commands, not -1, to help_list.
4109
4110 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4111
4112 * regcache.c (struct register_to_invalidate): New structure.
4113 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4114 functions.
4115 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4116
4117 2014-06-12 Yao Qi <yao@codesourcery.com>
4118
4119 * varobj.c (varobj_get_num_children): Call
4120 varobj_is_dynamic_p.
4121 (varobj_list_children): Likewise.
4122 (varobj_update): Likewise. Update comments.
4123
4124 2014-06-12 Yao Qi <yao@codesourcery.com>
4125
4126 * varobj.c (varobj_pretty_printed_p): Rename to ...
4127 (varobj_is_dynamic_p): ... this. New function.
4128 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4129 (varobj_is_dynamic_p): Declare.
4130 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4131 (mi_print_value_p, varobj_update_one): Likewise.
4132
4133 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4134 Yao Qi <yao@codesourcery.com>
4135
4136 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4137 (varobj_get_iterator): Wrap up code for pretty-printer by
4138 "#if HAVE_PYTHON" and "#endif".
4139 (update_dynamic_varobj_children): Likewise.
4140
4141 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4142 Yao Qi <yao@codesourcery.com>
4143
4144 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4145 gdb_python_initialized is false. Move some code from varobj.c.
4146 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4147 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4148 (struct varobj_item): Moved to varobj-iter.h".
4149 (varobj_clear_saved_item): New function.
4150 (update_dynamic_varobj_children): Move python-related code to
4151 py-varobj.c.
4152 (free_variable): Call varobj_clear_saved_item and
4153 varobj_iter_delete.
4154
4155 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4156 Yao Qi <yao@codesourcery.com>
4157
4158 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4159 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4160 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4161 (py-varobj.o): New rule.
4162 * python/py-varobj.c: New file.
4163 * python/python-internal.h (py_varobj_get_iterator): Declare.
4164 * varobj-iter.h: New file.
4165 * varobj.c: Include "varobj-iter.h"
4166 (struct varobj) <child_iter>: Change its type from "PyObject *"
4167 to "struct varobj_iter *".
4168 <saved_item>: Likewise.
4169 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4170 [HAVE_PYTHON] (varobj_get_iterator): New function.
4171 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4172 python-specific code to python/py-varobj.c.
4173 (install_visualizer): Call varobj_iter_delete instead of
4174 Py_XDECREF.
4175 * varobj.h (varobj_ensure_python_env): Declare.
4176
4177 2014-06-12 Yao Qi <yao@codesourcery.com>
4178
4179 * varobj.c (struct varobj_item): New structure.
4180 (create_child_with_value): Update declaration.
4181 (varobj_add_child): Replace arguments 'name' and 'value' with
4182 'item'. All callers updated.
4183 (install_dynamic_child): Likewise.
4184 (update_dynamic_varobj_children): Likewise.
4185 (varobj_add_child): Likewise.
4186 (create_child_with_value): Likewise.
4187
4188 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4189
4190 * NEWS: Create a new section for the next release branch.
4191 Rename the section of the current branch, now that it has
4192 been cut.
4193
4194 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4195
4196 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4197 * version.in: Bump version to 7.8.50.DATE-cvs.
4198
4199 2014-06-11 Pedro Alves <palves@redhat.com>
4200
4201 PR remote/17028
4202 * ser-mingw.c (net_windows_socket_check_pending): New function.
4203 (net_windows_select_thread): Ignore spurious wakeups. Use
4204 net_windows_socket_check_pending.
4205 (net_windows_wait_handle): Check for pending events with
4206 ioctlsocket, through net_windows_socket_check_pending, instead of
4207 checking the socket's event.
4208
4209 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4210
4211 * python/python-internal.h (gdb_PyObject_GetAttrString)
4212 (gdb_PyObject_HasAttrString): New inline function definitions.
4213 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4214 char * of the second argument to PyObject_GetAttrString.
4215
4216 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4217
4218 * serial.c (serial_write): Fix index of character to be printed
4219 in call to serial_logchar when serial debug traces are enabled.
4220
4221 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4222
4223 * gdbtypes (resolve_dynamic_range): Add function description.
4224
4225 2014-06-09 Pedro Alves <palves@redhat.com>
4226
4227 * linux-nat.c (linux_child_follow_fork): Initialize status with
4228 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4229 inner block. Only pass the signal to PTRACE_DETACH if in pass
4230 state.
4231
4232 2014-06-09 Gary Benson <gbenson@redhat.com>
4233
4234 * common/signals.c (gdb_signal_from_host): Reorder to separate
4235 the always-available ANSI-standard signals from the signals that
4236 require checking.
4237 (do_gdb_signal_to_host): Likewise.
4238 * proc-events.c (signal_table): Likewise.
4239
4240 2014-06-08 Hui Zhu <hui@codesourcery.com>
4241
4242 * common/linux-ptrace.c (linux_disable_event_reporting): New
4243 function.
4244 * common/linux-ptrace.h (linux_disable_event_reporting): New
4245 declaration.
4246 * linux-nat.c (linux_child_follow_fork): Do a single step before
4247 detach.
4248
4249 2014-06-07 Keith Seitz <keiths@redhat.com>
4250
4251 Revert:
4252 PR c++/16253
4253 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4254 from symbol_matches_domain in symtab.c. All local callers
4255 of symbol_matches_domain updated.
4256 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4257 search STRUCT_DOMAIN.
4258 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4259 independently. standard_lookup will do that automatically.
4260 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4261 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4262 (cp_lookup_symbol_in_namespace): Likewise.
4263 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4264 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4265 may return a STRUCT_DOMAIN match.
4266 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4267 * cp-support.c: Include language.h.
4268 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4269 VAR_DOMAIN.
4270 * psymtab.c (match_partial_symbol): Compare the requested
4271 domain with the symbol's domain directly.
4272 (lookup_partial_symbol): Likewise.
4273 * symtab.c (lookup_symbol_in_language): Explain when/why
4274 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4275 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4276 appropriate languages.
4277 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4278 and moved to ada-lang.c
4279 (lookup_block_symbol): Explain that this function only returns
4280 symbol matching the requested DOMAIN.
4281 Compare the requested domain with the symbol's domain directly.
4282 (iterate_over_symbols): Compare the requested domain with the
4283 symbol's domain directly.
4284 * symtab.h (symbol_matches_domain): Remove.
4285
4286 2014-06-06 Doug Evans <xdje42@gmail.com>
4287
4288 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4289 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4290 (gdbscm_guile_version_is_at_least): Declare.
4291 (gdbscm_scm_string_to_int): Declare.
4292 * guile/guile.c (gdbscm_guile_major_version): New global.
4293 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4294 (guile_datadir): New static global.
4295 (gdbscm_guile_data_directory): New function.
4296 (initialize_scheme_side): Update.
4297 (misc_guile_functions): Add guile-data-directory.
4298 (initialize_gdb_module): Fetch guile version number.
4299 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4300 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4301 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4302 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4303 comments.
4304 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4305 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4306 * guile/scm-value.c (gdbscm_value_to_string): Only call
4307 scm_port_conversion_strategy if Guile version >= 2.0.6.
4308
4309 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4310
4311 * main.c (print_gdb_help): Add -q and --silent.
4312
4313 2014-06-06 Gary Benson <gbenson@redhat.com>
4314
4315 * common/signals.c: Remove preprocessor conditionals for
4316 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4317 SIGSEGV and SIGTERM.
4318 * proc-events.c: Likewise.
4319
4320 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4321
4322 * symfile.c (symfile_free_objfile): Remove restriction to
4323 OBJF_USERLOADED.
4324 * symfile-mem.c (symbol_file_add_from_memory): Call
4325 add_target_sections_of_objfile.
4326
4327 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4328
4329 * guile/scm-value.c (gdbscm_history_append_x): Use
4330 'vlscm_get_value_smob_arg_unsafe' instead of
4331 'vlscm_scm_to_value'.
4332
4333 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4334
4335 PR mi/15806
4336 * utils.c (printchar): Don't escape at all if quoter is NUL.
4337 Update function documentation to clarify effect of parameter
4338 QUOTER.
4339 * remote.c (escape_buffer): Pass '\\' as the quoter to
4340 fputstrn_unfiltered.
4341 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4342 generate the output.
4343 (mi_solib_unloaded): Same.
4344
4345 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4346
4347 * development.sh: Delete.
4348 * Makefile.in (config.status): Adjust dependency on development.sh.
4349 * configure.ac: Adjust development.sh source call.
4350 * configure: Regenerate.
4351
4352 2014-06-04 Doug Evans <xdje42@gmail.com>
4353
4354 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4355 is_scheme_bkpt, spec.
4356 (bpscm_make_breakpoint_smob): Initialize new members.
4357 (gdbscm_create_breakpoint_x): Split into two ...
4358 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4359 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4360 (scheme_function breakpoint_functions): Update.
4361 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4362 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4363 register-breakpoint!.
4364
4365 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4366
4367 PR server/17023
4368 * mem-break.c (z_type_supported): Return zero if
4369 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4370
4371 2014-06-04 Tom Tromey <tromey@redhat.com>
4372
4373 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4374 value_from_contents_and_address_unresolved.
4375 (ada_template_to_fixed_record_type_1): Likewise.
4376 (ada_which_variant_applies): Likewise.
4377 * value.h (value_from_contents_and_address_unresolved): Declare.
4378 * value.c (value_from_contents_and_address_unresolved): New
4379 function.
4380 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4381 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4382 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4383
4384 2014-06-04 Tom Tromey <tromey@redhat.com>
4385
4386 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4387
4388 2014-06-04 Tom Tromey <tromey@redhat.com>
4389
4390 * procfs.c (procfs_attach): Make "args" const.
4391 * windows-nat.c (windows_attach): Make "args" const.
4392 * nto-procfs.c (procfs_attach): Make "args" const.
4393 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4394 * go32-nat.c (go32_attach): Make "args" const.
4395 * gnu-nat.c (gnu_attach): Make "args" const.
4396 * darwin-nat.c (darwin_attach): Make "args" const.
4397 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4398 * linux-nat.c (linux_nat_attach): Make "args" const.
4399 * remote.c (extended_remote_attach_1, extended_remote_attach):
4400 Make "args" const.
4401 * target.h (struct target_ops) <to_attach>: Make "args" const.
4402 (find_default_attach): Likewise.
4403 * utils.c (parse_pid_to_attach): Make "args" const.
4404 * utils.h (parse_pid_to_attach): Update.
4405
4406 2014-06-04 Tom Tromey <tromey@redhat.com>
4407
4408 * target-delegates.c: Rebuild.
4409 * target.c (default_thread_address_space): New function.
4410 (target_thread_address_space): Simplify.
4411 * target.h (struct target_ops) <to_thread_address_space>: Add
4412 TARGET_DEFAULT_FUNC.
4413
4414 2014-06-04 Doug Evans <xdje42@gmail.com>
4415
4416 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4417
4418 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4419
4420 * record-btrace.c: Include event-loop.h and inf-loop.h.
4421 (record_btrace_resume_exec_dir)
4422 (record_btrace_async_inferior_event_handler)
4423 (record_btrace_handle_async_inferior_event): New.
4424 (record_btrace_open): Create async event handler.
4425 (record_btrace_close): Delete async event handler.
4426 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4427 Mark async event handler.
4428 (record_btrace_execution_direction): New.
4429 (init_record_btrace_ops): Initialize to_execution_direction.
4430
4431 2014-06-03 Doug Evans <xdje42@gmail.com>
4432
4433 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4434 (gdbscm_make_parameter): Ditto.
4435
4436 2014-06-03 Doug Evans <dje@google.com>
4437
4438 * exec.c (exec_close_1): Call clear_section_table instead of
4439 resize_section_table.
4440 (clear_section_table): New function.
4441 (resize_section_table): Make static. Rename arg num_added to
4442 adjustment.
4443 * exec.h (clear_section_table): Declare.
4444 (resize_section_table): Delete.
4445 * progspace.c (release_program_space): Call clear_section_table
4446 instead of resize_section_table.
4447
4448 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4449
4450 * NEWS (Python Scripting): Add entry about the new xmethods
4451 feature.
4452
4453 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4454
4455 * python/py-xmethods.c: New file.
4456 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4457 (objfpy_dealloc): XDECREF on the new xmethods field.
4458 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4459 field.
4460 (objfpy_get_xmethods): New function.
4461 (objfile_getset): New entry 'xmethods'.
4462 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4463 (pspy_dealloc): XDECREF on the new xmethods field.
4464 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4465 field.
4466 (pspy_get_xmethods): New function.
4467 (pspace_getset): New entry 'xmethods'.
4468 * python/python-internal.h: Add declarations for new functions.
4469 * python/python.c (_initialize_python): Invoke
4470 gdbpy_initialize_xmethods.
4471 * python/lib/gdb/__init__.py (xmethods): New
4472 attribute.
4473 * python/lib/gdb/xmethod.py: New file.
4474 * python/lib/gdb/command/xmethods.py: New file.
4475
4476 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4477
4478 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4479 best match method returned by find_overload_match is an xmethod.
4480 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4481 the best matching operator returned by find_overload_match is an
4482 xmethod.
4483 * valops.c: #include "extension.h".
4484 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4485 Return void. The list of matching source methods is returned in
4486 "fn_list" and a vector of matching debug method workers is
4487 returned in "xm_worker_vec". Update all callers.
4488 (value_find_oload_method_list): Likewise.
4489 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4490 non-NULL, then the index of the best matching method in this
4491 vector is returned. Update all callers.
4492 (find_overload_match): Include xmethods while performing overload
4493 resolution.
4494
4495 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4496
4497 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4498 * extension-priv.h (struct extension_language_ops): Add the
4499 xmethod interface.
4500 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4501 get_matching_xmethod_workers, get_xmethod_argtypes,
4502 invoke_xmethod, free_xmethod_worker,
4503 free_xmethod_worker_vec): New functions.
4504 * extension.h: #include "common/vec.h".
4505 New function declarations.
4506 (struct xmethod_worker): New struct.
4507 (VEC (xmethod_worker_ptr)): New vector type.
4508 (xmethod_worker_ptr): New typedef.
4509 (xmethod_worker_vec): Likewise.
4510 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4511 builtin_type.
4512 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4513 (struct builtin_type): New field "xmethod".
4514 * valarith.c (value_ptradd): Assert that the value argument is not
4515 lval_xcallable.
4516 * valops.c (value_must_coerce_to_target): Return 0 for
4517 lval_xcallable values.
4518 * value.c (struct value): New field XM_WORKER in the field
4519 LOCATION.
4520 (value_address, value_raw_address): Return 0 for lval_xcallable
4521 values.
4522 (set_value_address): Assert that the value is not an
4523 lval_xcallable.
4524 (value_free): Free the associated xmethod worker when freeing
4525 lval_xcallable values.
4526 (set_value_component_location): Assert that the WHOLE value is not
4527 lval_xcallable.
4528 (value_of_xmethod, call_xmethod): New functions.
4529 * value.h: Declare "struct xmethod_worker".
4530 Declare new functions value_of_xmethod, call_xmethod.
4531
4532 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4533 Pedro Alves <palves@redhat.com>
4534
4535 PR breakpoints/17000
4536 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4537 New function, extracted from software_breakpoint_inserted_here_p.
4538 (software_breakpoint_inserted_here_p): Replace factored out code
4539 by call to find_non_raw_software_breakpoint_inserted_here.
4540 (bp_target_info_copy_insertion_state): New function.
4541 (bkpt_insert_location): Handle the case of a single-step
4542 breakpoint already inserted at the same address.
4543 (bkpt_remove_location): Handle the case of a single-step
4544 breakpoint still inserted at the same address.
4545 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4546 breakpoint already inserted at the same address.
4547 (deprecated_remove_raw_breakpoint): Handle the case of a
4548 non-raw breakpoint still inserted at the same address.
4549 (find_single_step_breakpoint): New function, extracted from
4550 single_step_breakpoint_inserted_here_p.
4551 (find_single_step_breakpoint): New function,
4552 factored out from single_step_breakpoint_inserted_here_p.
4553 (single_step_breakpoint_inserted_here_p): Reimplement.
4554
4555 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4556
4557 Pushed by Joel Brobecker <brobecker@adacore.com>
4558 * source.c (show_substitute_path_command): Fix display of matching
4559 substitution rules.
4560
4561 2014-06-03 Gary Benson <gbenson@redhat.com>
4562
4563 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4564
4565 2014-06-02 Doug Evans <xdje42@gmail.com>
4566
4567 Add parameter support for Guile.
4568 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4569 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4570 (scm-param.o): New rule.
4571 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4572 (gdbscm_misc_error): Declare.
4573 (gdbscm_canonicalize_command_name): Declare.
4574 (gdbscm_scm_to_host_string): Declare.
4575 (gdbscm_scm_from_host_string): Declare.
4576 (gdbscm_initialize_parameters): Declare.
4577 * guile/guile.c (initialize_gdb_module): Call
4578 gdbscm_initialize_parameters.
4579 * guile/lib/gdb.scm: Export parameter symbols.
4580 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4581 cmdscm_canonicalize_name and made public. All callers updated.
4582 * guile/scm-exception.c (gdbscm_misc_error): New function.
4583 * guile/scm-param.c: New file.
4584 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4585 (gdbscm_scm_to_host_string): New function.
4586 (gdbscm_scm_from_host_string): New function.
4587 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4588
4589 2014-06-02 Doug Evans <xdje42@gmail.com>
4590
4591 Add command support for Guile.
4592 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4593 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4594 (scm-cmd.o): New rule.
4595 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4596 (gdbscm_user_error_p): Declare.
4597 (gdbscm_parse_command_name): Declare.
4598 (gdbscm_valid_command_class_p): Declare.
4599 (gdbscm_initialize_commands): Declare.
4600 * guile/guile.c (initialize_gdb_module): Call
4601 gdbscm_initialize_commands.
4602 * guile/lib/gdb.scm: Export command symbols.
4603 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4604 (throw-user-error): New function.
4605 * guile/scm-cmd.c: New file.
4606 * guile/scm-exception.c (user_error_symbol): New static global.
4607 (gdbscm_user_error_p): New function.
4608 (gdbscm_initialize_exceptions): Set user_error_symbol.
4609 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4610
4611 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4612
4613 * top.c (command_loop): Handle comments here...
4614 (command_line_input): ... not here.
4615
4616 2014-06-02 Doug Evans <xdje42@gmail.com>
4617
4618 Add progspace support for Guile.
4619 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4620 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4621 (scm-progspace.o): New rule.
4622 * guile/guile-internal.h (pspace_smob): New typedef.
4623 (psscm_pspace_smob_pretty_printers): Declare.
4624 (psscm_pspace_smob_from_pspace): Declare.
4625 (psscm_scm_from_pspace): Declare.
4626 * guile/guile.c (initialize_gdb_module): Call
4627 gdbscm_initialize_pspaces.
4628 * guile/lib/gdb.scm: Export progspace symbols.
4629 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4630 support.
4631 (append-pretty-printer!): Ditto.
4632 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4633 Implement.
4634 * guile/scm-progspace.c: New file.
4635
4636 2014-06-03 Alan Modra <amodra@gmail.com>
4637
4638 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4639 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4640
4641 2014-06-02 Doug Evans <dje@google.com>
4642
4643 Add support for skeletonless type units.
4644 * dwarf2read.c (struct dwarf2_per_objfile): New member
4645 n_allocated_type_units.
4646 (struct dwarf2_per_objfile) <tu_stats>: New member
4647 nr_all_type_units_reallocs.
4648 (create_signatured_type_table_from_index): Initialize
4649 n_allocated_type_units
4650 (create_all_type_units): Ditto.
4651 (add_type_unit): Move up in file. New arg slot.
4652 All callers updated. Increase space for all_type_units more
4653 efficiently.
4654 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4655 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4656 (lookup_dwp_signatured_type): Ditto.
4657 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4658 All callers updated.
4659 (build_type_psymtabs_1): Leave type_unit_groups as
4660 NULL if no TUs present.
4661 (print_tu_stats): New function.
4662 (process_skeletonless_type_unit): New function.
4663 (process_dwo_file_for_skeletonless_type_units): New
4664 function.
4665 (process_skeletonless_type_units): New function.
4666 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4667 Call print tu_stats if debugging enabled.
4668
4669 2014-06-02 Pedro Alves <palves@redhat.com>
4670
4671 * breakpoint.c (build_target_command_list): Don't build a command
4672 list if we have any duplicate location that isn't a dprintf.
4673
4674 2014-06-02 Pedro Alves <palves@redhat.com>
4675
4676 * breakpoint.c (dprintf_breakpoint_hit): New function.
4677 (initialize_breakpoint_ops): Install it as dprintf's
4678 breakpoint_hit method.
4679
4680 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4681
4682 * source.c (substitute_path_rule_matches): Simplify using
4683 filename_ncmp instead of FILENAME_CMP.
4684
4685 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4686
4687 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4688
4689 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4690
4691 * configure.ac: When Guile is available, check for the
4692 availability of 'scm_new_smob'.
4693 * configure, config.h.in: Regenerate.
4694 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4695 function.
4696
4697 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4698
4699 * frame.c (struct frame_info): Add stop_string field.
4700 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4701 (get_prev_frame_always): Old content moved into
4702 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4703 TRY_CATCH, handle MEMORY_ERROR exceptions.
4704 (frame_stop_reason_string): New function definition.
4705 * frame.h (unwind_stop_reason_to_string): Extend comment to
4706 mention frame_stop_reason_string.
4707 (frame_stop_reason_string): New function declaration.
4708 * stack.c (frame_info): Switch to frame_stop_reason_string.
4709 (backtrace_command_1): Switch to frame_stop_reason_string.
4710 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4711 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4712 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4713
4714 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4715
4716 * frame.c (frame_stop_reason_string): Rename to ...
4717 (unwind_stop_reason_to_string): this.
4718 * frame.h (frame_stop_reason_string): Rename to ...
4719 (unwind_stop_reason_to_string): this.
4720 * stack.c (frame_info): Update call to frame_stop_reason_string.
4721 (backtrace_command_1): Likewise.
4722 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4723 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4724
4725 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4726
4727 * frame.c (remove_prev_frame): New function.
4728 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4729 remove_prev_frame.
4730
4731 2014-05-29 Pedro Alves <palves@redhat.com>
4732
4733 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4734 and make it const. When a single-step decays to a continue,
4735 clear 'step', not 'hw_step'. Pass whether the caller wanted
4736 to step to user_visible_resume_ptid, not what we ask the
4737 target to do.
4738
4739 2014-05-29 Pedro Alves <palves@redhat.com>
4740
4741 * infrun.c (process_event_stop_test, handle_step_into_function)
4742 (handle_step_into_function_backward): Adjust.
4743 Don't set the even thread's stop_step and call stop_waiting before
4744 calling end_stepping_range. Instead do that ...
4745 (end_stepping_range): ... here. Take an ecs pointer parameter.
4746
4747 2014-05-29 Pedro Alves <palves@redhat.com>
4748
4749 * infrun.c (stop_stepping): Rename to ...
4750 (stop_waiting): ... this.
4751 (proceed): Update comment.
4752 (process_event_stop_test, handle_inferior_event)
4753 (handle_signal_stop, handle_step_into_function)
4754 (handle_step_into_function_backward): Update.
4755
4756 2014-05-29 Pedro Alves <palves@redhat.com>
4757
4758 * infcall.c (run_inferior_call): Don't check whether the current
4759 thread is running after the proceed call.
4760
4761 2014-05-29 Pedro Alves <palves@redhat.com>
4762 Tom Tromey <tromey@redhat.com>
4763
4764 * NEWS: Mention "maint set target-async", "set mi-async", and that
4765 background execution commands are now always available.
4766 * target.h (target_async_permitted): Update comment.
4767 * target.c (target_async_permitted, target_async_permitted_1):
4768 Default to 1.
4769 (set_target_async_command): Rename to ...
4770 (maint_set_target_async_command): ... this.
4771 (show_target_async_command): Rename to ...
4772 (maint_show_target_async_command): ... this.
4773 (_initialize_target): Adjust.
4774 * infcmd.c (prepare_execution_command): Make extern.
4775 * inferior.h (prepare_execution_command): Declare.
4776 * infrun.c (set_observer_mode): Leave target async alone.
4777 * mi/mi-interp.c (mi_interpreter_init): Install
4778 mi_on_sync_execution_done as sync_execution_done observer.
4779 (mi_on_sync_execution_done): New function.
4780 (mi_execute_command_input_handler): Don't print the prompt if we
4781 just started a synchronous command with an async target.
4782 (mi_on_resume): Check sync_execution before printing prompt.
4783 * mi/mi-main.h (mi_async_p): Declare.
4784 * mi/mi-main.c: Include gdbcmd.h.
4785 (mi_async_p): New function.
4786 (mi_async, mi_async_1): New globals.
4787 (set_mi_async_command, show_mi_async_command, mi_async): New
4788 functions.
4789 (exec_continue): Call prepare_execution_command.
4790 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4791 (mi_execute_async_cli_command): Use mi_async_p.
4792 (_initialize_mi_main): Install "set mi-async". Make
4793 "target-async" a deprecated alias.
4794
4795 2014-05-29 Pedro Alves <palves@redhat.com>
4796
4797 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4798 (_initialize_cli_interp): Adjust.
4799 * event-loop.c: Include "observer.h".
4800 (start_event_loop): Notify 'command_error' observers instead of
4801 calling display_gdb_prompt. Remove FIXME comment.
4802 * event-top.c (display_gdb_prompt): Remove call into the
4803 interpreters.
4804 * inf-loop.c: Include "observer.h".
4805 (inferior_event_handler): Notify 'command_error' observers instead
4806 of calling display_gdb_prompt.
4807 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4808 observers instead of calling display_gdb_prompt.
4809 * interps.c (interp_set): Don't call display_gdb_prompt.
4810 (current_interp_display_prompt_p): Delete.
4811 * interps.h (interp_prompt_p): Delete declaration.
4812 (interp_prompt_p_ftype): Delete.
4813 (struct interp_procs) <prompt_proc_p>: Delete field.
4814 (current_interp_display_prompt_p): Delete declaration.
4815 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4816 (_initialize_mi_interp): Adjust.
4817 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4818 'command_error' observers.
4819 (tui_on_sync_execution_done, tui_on_command_error): New
4820 functions.
4821 (tui_display_prompt_p): Delete.
4822 (_initialize_tui_interp): Adjust.
4823
4824 2014-05-29 Pedro Alves <palves@redhat.com>
4825
4826 PR gdb/13860
4827 * cli/cli-interp.c: Include infrun.h and observer.h.
4828 (cli_uiout, cli_interp): New globals.
4829 (cli_on_signal_received, cli_on_end_stepping_range)
4830 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4831 functions.
4832 (cli_interpreter_init): Install them as 'end_stepping_range',
4833 'signal_received' 'signal_exited', 'exited' and 'no_history'
4834 observers.
4835 (_initialize_cli_interp): Remove cli_interp local.
4836 * infrun.c (handle_inferior_event): Call the several stop reason
4837 observers instead of printing the stop reason directly.
4838 (end_stepping_range): New function.
4839 (print_end_stepping_range_reason, print_signal_exited_reason)
4840 (print_exited_reason, print_signal_received_reason)
4841 (print_no_history_reason): Make static, and add an uiout
4842 parameter. Print to that instead of to CURRENT_UIOUT.
4843 * infrun.h (print_end_stepping_range_reason)
4844 (print_signal_exited_reason, print_exited_reason)
4845 (print_signal_received_reason print_no_history_reason): New
4846 declarations.
4847 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4848 'mi_uiout'.
4849 <cli_uiout>: New field.
4850 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4851 uiout for CLI output. Install 'signal_received',
4852 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4853 observers.
4854 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4855 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4856 (mi_on_no_history): New functions.
4857 (ui_out_free_cleanup): Delete function.
4858 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4859 instead use the one already stored in the MI interpreter data.
4860 (mi_ui_out): Adjust.
4861 * tui/tui-interp.c: Include infrun.h and observer.h.
4862 (tui_interp): New global.
4863 (tui_on_signal_received, tui_on_end_stepping_range)
4864 (tui_on_signal_exited, tui_on_exited)
4865 (tui_on_no_history): New functions.
4866 (tui_init): Install them as 'end_stepping_range',
4867 'signal_received' 'signal_exited', 'exited' and 'no_history'
4868 observers.
4869 (_initialize_tui_interp): Delete tui_interp local.
4870
4871 2014-05-29 Pedro Alves <palves@redhat.com>
4872
4873 PR gdb/15713
4874 * linux-nat.c (linux_nat_resume_callback): Rename the second
4875 parameter to 'except'. Skip LP if it points to EXCEPT.
4876 (linux_nat_resume): Don't mark the event lwp as not stopped
4877 before resuming sibling lwps. Instead ask
4878 linux_nat_resume_callback to skip the event lwp. Mark it as not
4879 stopped after actually resuming it.
4880 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4881 resuming it.
4882 (wait_lwp): Mark the lwp as stopped here.
4883 (stop_wait_callback): Mark the lwp as not stopped right after
4884 resuming it. Don't mark lwps as stopped here.
4885 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4886 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4887
4888 2014-05-29 Pedro Alves <palves@redhat.com>
4889
4890 PR PR15693
4891 * infrun.c (resume): Determine how much to resume depending on
4892 whether the caller wanted a step, not whether we can hardware step
4893 the target. Mark all threads that we intend to run as running,
4894 unless we're calling an inferior function.
4895 (normal_stop): If the thread is running an infcall, don't finish
4896 thread state.
4897 * target.c (target_resume): Don't mark threads as running here.
4898
4899 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4900
4901 * serial.c (_initialize_serial): Remove support for
4902 the "set remotebaud" and "show remotebaud" commands.
4903 * NEWS: Add entry documenting the removal of that command.
4904
4905 2014-05-28 Yao Qi <yao@codesourcery.com>
4906
4907 * charset.c: Fix typo in comments.
4908
4909 2014-05-27 Gary Benson <gbenson@redhat.com>
4910
4911 * utils.c (internal_vproblem): Prompt for a bug report.
4912
4913 2014-05-26 Andy Wingo <wingo@igalia.com>
4914
4915 * guile/scm-arch.c (arscm_mark_arch_smob):
4916 * guile/scm-block.c (bkscm_mark_block_smob)
4917 (bkscm_mark_block_syms_progress_smob):
4918 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4919 * guile/scm-exception.c (exscm_mark_exception_smob):
4920 * guile/scm-frame.c (frscm_mark_frame_smob):
4921 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4922 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4923 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4924 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4925 (ppscm_mark_pretty_printer_worker_smob):
4926 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4927 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4928 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4929 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4930 mark functions.
4931 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4932 function.
4933
4934 2014-05-26 Andy Wingo <wingo@igalia.com>
4935 Doug Evans <xdje42@gmail.com>
4936
4937 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4938 empty_base_class. All uses updated.
4939 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4940 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4941 Adapt all callers.
4942 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4943 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4944 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4945 (gdbscm_gsmob_has_property_p, add_property_name)
4946 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4947 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4948 (gdb-object-has-property?, gdb-object-properties): Remove.
4949 (gdb-object-kind): Renamed from gsmob-kind.
4950
4951 2014-05-26 Andy Wingo <wingo@igalia.com>
4952
4953 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4954 * configure: Regenerate.
4955
4956 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4957
4958 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4959
4960 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4961
4962 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4963 (replay_memory_access_read_only, replay_memory_access_read_write)
4964 (replay_memory_access_types, replay_memory_access)
4965 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4966 (cmd_set_record_btrace, cmd_show_record_btrace)
4967 (cmd_show_replay_memory_access): New.
4968 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4969 (record_btrace_remove_breakpoint): Replace
4970 record_btrace_allow_memory_access with replay_memory_access.
4971 (_initialize_record_btrace): Add commands.
4972 * NEWS: Announce it.
4973
4974 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4975
4976 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4977
4978 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4979
4980 * MAINTAINERS (Write After Approval): Move self back from
4981 paper trail.
4982
4983 2014-05-22 Pedro Alves <palves@redhat.com>
4984
4985 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4986 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4987 (disable_randomization, enum exec_direction_kind)
4988 (execution_direction, stop_registers, start_remote)
4989 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4990 (wait_for_inferior, normal_stop, get_last_target_status)
4991 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4992 (insert_step_resume_breakpoint_at_sal)
4993 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4994 (set_step_info, print_stop_event, signal_stop_state)
4995 (signal_print_state, signal_pass_state, signal_stop_update)
4996 (signal_print_update, signal_pass_update)
4997 (update_signals_program_target, clear_exit_convenience_vars)
4998 (displaced_step_dump_bytes, update_observer_mode)
4999 (signal_catch_update, gdb_signal_from_command): Move
5000 declarations ...
5001 * infrun.h: ... to this new file.
5002 * amd64-tdep.c: Include infrun.h.
5003 * annotate.c: Include infrun.h.
5004 * arch-utils.c: Include infrun.h.
5005 * arm-linux-tdep.c: Include infrun.h.
5006 * arm-tdep.c: Include infrun.h.
5007 * break-catch-sig.c: Include infrun.h.
5008 * breakpoint.c: Include infrun.h.
5009 * common/agent.c: Include infrun.h instead of inferior.h.
5010 * corelow.c: Include infrun.h.
5011 * event-top.c: Include infrun.h.
5012 * go32-nat.c: Include infrun.h.
5013 * i386-tdep.c: Include infrun.h.
5014 * inf-loop.c: Include infrun.h.
5015 * infcall.c: Include infrun.h.
5016 * infcmd.c: Include infrun.h.
5017 * infrun.c: Include infrun.h.
5018 * linux-fork.c: Include infrun.h.
5019 * linux-nat.c: Include infrun.h.
5020 * linux-thread-db.c: Include infrun.h.
5021 * monitor.c: Include infrun.h.
5022 * nto-tdep.c: Include infrun.h.
5023 * procfs.c: Include infrun.h.
5024 * record-btrace.c: Include infrun.h.
5025 * record-full.c: Include infrun.h.
5026 * remote-m32r-sdi.c: Include infrun.h.
5027 * remote-mips.c: Include infrun.h.
5028 * remote-notif.c: Include infrun.h.
5029 * remote-sim.c: Include infrun.h.
5030 * remote.c: Include infrun.h.
5031 * reverse.c: Include infrun.h.
5032 * rs6000-tdep.c: Include infrun.h.
5033 * s390-linux-tdep.c: Include infrun.h.
5034 * solib-irix.c: Include infrun.h.
5035 * solib-osf.c: Include infrun.h.
5036 * solib-svr4.c: Include infrun.h.
5037 * target.c: Include infrun.h.
5038 * top.c: Include infrun.h.
5039 * windows-nat.c: Include infrun.h.
5040 * mi/mi-interp.c: Include infrun.h.
5041 * mi/mi-main.c: Include infrun.h.
5042 * python/py-threadevent.c: Include infrun.h.
5043
5044 2014-05-22 Pedro Alves <palves@redhat.com>
5045
5046 * infrun.c (handle_inferior_event): Store the exit code for
5047 --return-child-result here, instead of ...
5048 (print_exited_reason): ... here.
5049
5050 2014-05-21 Pedro Alves <palves@redhat.com>
5051
5052 PR gdb/13860
5053 * gdbthread.h (struct thread_control_state): New field
5054 `command_interp'.
5055 * infrun.c (follow_fork): Copy the new thread control field to the
5056 child fork thread.
5057 (clear_proceed_status_thread): Clear the new thread control field.
5058 (proceed): Set the new thread control field.
5059 * interps.h (command_interp): Declare.
5060 * interps.c (command_interpreter): New global.
5061 (command_interp): New function.
5062 (interp_exec): Set `command_interpreter' while here.
5063 * cli-out.c (cli_uiout_dtor): New function.
5064 (cli_ui_out_impl): Install it.
5065 * mi/mi-interp.c: Include cli-out.h.
5066 (mi_cmd_interpreter_exec): Add comment.
5067 (restore_current_uiout_cleanup): New function.
5068 (ui_out_free_cleanup): New function.
5069 (mi_on_normal_stop): If finishing an execution command started by
5070 a CLI command, or any kind of breakpoint-like event triggered,
5071 print the stop event to the output (CLI) stream.
5072 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5073
5074 2014-05-21 Pedro Alves <palves@redhat.com>
5075
5076 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5077 current source line having changed.
5078 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5079 * infrun.c (normal_stop): Adjust call to
5080 set_current_sal_from_frame.
5081 * source.c (clear_lines_listed_range): New function.
5082 (set_current_source_symtab_and_line, identify_source_line): Clear
5083 the lines listed range.
5084 (line_info): Handle the first "info line" after the current source
5085 line having changed.
5086 * stack.c (print_stack_frame): Remove center handling.
5087 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5088 center sal.line.
5089
5090 2014-05-21 Pedro Alves <palves@redhat.com>
5091
5092 * inf-child.c (inf_child_mourn_inferior): New function.
5093 * inf-child.h (inf_child_mourn_inferior): New declaration.
5094 * darwin-nat.c (darwin_mourn_inferior): Use
5095 inf_child_mourn_inferior.
5096 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5097 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5098 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5099 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5100 * windows-nat.c (windows_mourn_inferior): Likewise.
5101
5102 2014-05-21 Doug Evans <xdje42@gmail.com>
5103
5104 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5105
5106 2014-05-21 Doug Evans <xdje42@gmail.com>
5107
5108 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5109 (gdbscm_out_of_range_error): Ditto.
5110 (gdbscm_memory_error): Ditto.
5111 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5112 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5113 (gdbscm_out_of_range_error): Update.
5114 (gdbscm_memory_error): Update.
5115 (gdbscm_scm_to_target_string_unsafe): Delete.
5116
5117 2014-05-21 Pedro Alves <palves@redhat.com>
5118
5119 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5120 globals.
5121 (inf_child_open_target): New function.
5122 (inf_child_open): Use inf_child_open_target to push the target
5123 instead of erroring out.
5124 (inf_child_disconnect, inf_child_close)
5125 (inf_child_maybe_unpush_target): New functions.
5126 (inf_child_target): Install inf_child_disconnect and
5127 inf_child_close. Store a pointer to the returned object.
5128 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5129 declarations.
5130 * target.c (auto_connect_native_target): New global.
5131 (show_default_run_target): New function.
5132 (find_default_run_target): Return NULL if automatically connecting
5133 to the native target is disabled.
5134 (_initialize_target): Install set/show auto-connect-native-target.
5135 * NEWS: Mention "set auto-connect-native-target", and "target
5136 native".
5137 * linux-nat.c (super_close): New global.
5138 (linux_nat_close): Call super_close.
5139 (linux_nat_add_target): Store a pointer to the base class's
5140 to_close method.
5141 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5142 inf_child_maybe_unpush.
5143 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5144 already pushed.
5145 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5146 the inferior. Use inf_child_maybe_unpush_target.
5147 (inf_ttrace_attach): Don't push the target if it is already
5148 pushed.
5149 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5150 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5151 after mourning the inferior. Use inf_child_maybe_unpush_target.
5152 (darwin_attach_pid): Don't push the target if it is already
5153 pushed.
5154 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5155 mourning the inferior. Use inf_child_maybe_unpush_target.
5156 (gnu_detach): Use inf_child_maybe_unpush_target.
5157 * go32-nat.c (go32_create_inferior): Don't push the target if it
5158 is already pushed.
5159 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5160 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5161 (procfs_open): Rename to ...
5162 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5163 comments. Can target_preopen before changing node. Call
5164 inf_child_open_target to push the target explicitly.
5165 (procfs_attach): Don't push the target if it is already pushed.
5166 (procfs_detach): Use inf_child_maybe_unpush_target.
5167 (procfs_create_inferior): Don't push the target if it is already
5168 pushed.
5169 (nto_native_ops): New global.
5170 (procfs_open): Reimplement.
5171 (procfs_native_open): New function.
5172 (init_procfs_targets): Install procfs_native_open as to_open of
5173 "target native". Store a pointer to the "native" target in
5174 nto_native_ops.
5175 * procfs.c (procfs_attach): Don't push the target if it is already
5176 pushed.
5177 (procfs_detach): Use inf_child_maybe_unpush_target.
5178 (procfs_mourn_inferior): Only unpush the target after mourning the
5179 inferior. Use inf_child_maybe_unpush_target.
5180 (procfs_init_inferior): Don't push the target if it is already
5181 pushed.
5182 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5183 if it is already pushed.
5184
5185 2014-05-21 Pedro Alves <palves@redhat.com>
5186
5187 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5188 and "procfs" targets are now called "native" instead.
5189
5190 2014-05-21 Pedro Alves <palves@redhat.com>
5191
5192 * go32-nat.c (go32_open): Delete.
5193 (go32_target): Don't override the to_open method.
5194
5195 2014-05-21 Pedro Alves <palves@redhat.com>
5196
5197 * nto-procfs.c (procfs_can_run): New function.
5198 (nto_procfs_ops): New global.
5199 (init_procfs_targets): New, based on procfs_target. Install
5200 "target native" in addition to "target procfs".
5201 (_initialize_procfs): Call init_procfs_targets instead of adding
5202 the target here.
5203
5204 2014-05-21 Pedro Alves <palves@redhat.com>
5205
5206 * windows-nat.c (windows_target): Don't override to_shortname,
5207 to_longname or to_doc.
5208
5209 2014-05-21 Pedro Alves <palves@redhat.com>
5210
5211 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5212 to_doc.
5213
5214 2014-05-21 Pedro Alves <palves@redhat.com>
5215
5216 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5217 to_shortname, to_longname or to_doc.
5218
5219 2014-05-21 Pedro Alves <palves@redhat.com>
5220
5221 * go32-nat.c (go32_target): Don't override to_shortname,
5222 to_longname or to_doc.
5223
5224 2014-05-21 Pedro Alves <palves@redhat.com>
5225
5226 * inf-child.c (inf_child_open): Remove mention of "child".
5227 (inf_child_target): Rename target to "native" instead of "child".
5228
5229 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5230
5231 * Makefile.in (SFILES): Delete "regset.c".
5232 (COMMON_OBS): Delete "regset.o".
5233 * regset.c: Remove.
5234 * regset.h (regset_alloc): Delete prototype.
5235
5236 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5237
5238 * sparc-linux-tdep.c (sparc32_linux_gregset)
5239 (sparc32_linux_fpregset): New static regset structures.
5240 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5241 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5242 'fpregset' fields.
5243 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5244 (sparc64_linux_fpregset): New static regset structures.
5245 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5246 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5247 New static regset structures.
5248 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5249 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5250 New static regset structures.
5251 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5252 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5253 New static regset structures.
5254 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5255 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5256 New static regset structures.
5257 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5258
5259 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5260
5261 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5262 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5263 register maps ("regmaps") from "*regset" to "*regmap". Do this
5264 for all regmap types and variables.
5265 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5266 (sparc32_linux_supply_core_gregset)
5267 (sparc32_linux_collect_core_gregset)
5268 (sparc32_linux_supply_core_fpregset)
5269 (sparc32_linux_collect_core_fpregset): Likewise.
5270 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5271 (sparc_gregmap, sparc_fpregmap): ... these.
5272 (sparc_supply_gregset, sparc_collect_gregset)
5273 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5274 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5275 (_initialize_sparc_nat): Rename regmaps.
5276 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5277 (sparc_gregmap, sparc_fpregmap): ... these.
5278 (sparc_supply_gregset, sparc_collect_gregset)
5279 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5280 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5281 Rename macros to...
5282 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5283 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5284 Likewise.
5285 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5286 Rename to...
5287 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5288 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5289 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5290 regmaps.
5291 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5292 (sparc32_bsd_fpregset): Rename to...
5293 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5294 (sparc32_bsd_fpregmap): ... these.
5295 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5296 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5297 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5298 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5299 (struct sparc_gregmap, struct sparc_fpregmap)
5300 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5301 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5302 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5303 (sparc32_supply_regset, sparc32_collect_gregset)
5304 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5305 prototypes.
5306 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5307 (sparc64_linux_ptrace_gregmap): ... this.
5308 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5309 (_initialize_sparc64_linux_nat): Rename regmaps.
5310 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5311 (sparc64_linux_core_gregmap): ... this.
5312 (sparc64_linux_supply_core_gregset)
5313 (sparc64_linux_collect_core_gregset)
5314 (sparc64_linux_supply_core_fpregset)
5315 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5316 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5317 (sparc64_sol2_fpregset): Rename to...
5318 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5319 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5320 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5321 regmaps.
5322 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5323 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5324 (sparc64_bsd_fpregset): Rename to...
5325 (struct sparc_gregmap, sparc64_sol2_gregmap)
5326 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5327 (sparc64_bsd_fpregmap): ... these.
5328 (sparc64_supply_gregset, sparc64_collect_gregset)
5329 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5330 prototypes.
5331 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5332 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5333 (sparc64fbsd_gregmap): ... this.
5334 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5335 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5336 Rename regmaps.
5337 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5338 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5339 (sparc64nbsd_collect_fpregset): Likewise.
5340 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5341 (sparc64nbsd_gregmap): ... this.
5342 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5343 regmaps.
5344 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5345 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5346 (sparc64obsd_gregmap): ... this.
5347 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5348 regmaps.
5349 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5350 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5351 (sparc32nbsd_gregmap): ... this.
5352 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5353 regmaps.
5354
5355 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5356
5357 * score-tdep.c (score7_linux_gregset): New static regset
5358 structure.
5359 (score7_linux_regset_from_core_section): Remove dynamic regset
5360 allocation.
5361 (score_gdbarch_init): Drop allocation of tdep structure.
5362 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5363
5364 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5365
5366 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5367 regset structures.
5368 (am33_regset_from_core_section): Remove dynamic regset
5369 allocations.
5370
5371 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5372
5373 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5374 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5375 structures.
5376 (mips_linux_regset_from_core_section): Remove dynamic regset
5377 allocations.
5378 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5379 'gregset64', 'fpregset', and 'fpregset64'.
5380 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5381 deleted tdep fields.
5382
5383 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5384
5385 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5386 regset structures.
5387 (amd64_regset_from_core_section): Remove dynamic regset
5388 allocations.
5389 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5390 structure.
5391 (amd64obsd_regset_from_core_section): Remove dynamic regset
5392 allocation.
5393 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5394 Likewise.
5395 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5396 x86-common regset supply function.
5397 * i386-tdep.c (i386_collect_gregset): Make static.
5398 (i386_gregset): New global regset structure.
5399 (i386_fpregset, i386_xstateregset): New static regset structures.
5400 (i386_regset_from_core_section): Remove dynamic regset
5401 allocations.
5402 (i386_gdbarch_init): Remove initialization of tdep fields
5403 'gregset', 'fpregset', and 'xstateregset'.
5404 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5405 'fpregset', and 'xstateregset'.
5406 (i386_collect_gregset): Remove prototype.
5407 (i386_gregset): New declaration.
5408 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5409 structure.
5410 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5411 allocation.
5412
5413 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5414
5415 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5416 (arm_linux_vfpregset): New static regset structures.
5417 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5418 regset structures.
5419 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5420 and 'vfpregset' fields.
5421
5422 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5423
5424 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5425 (aarch64_linux_fpregset): New static regset structures.
5426 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5427 of regset structures.
5428 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5429 'fpregset' fields.
5430
5431 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5432
5433 * regset.h (struct regset): Remove gdbarch field.
5434 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5435 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5436 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5437 Likewise.
5438 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5439 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5440 (ppc32_linux_vsxregset): Likewise.
5441 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5442 via the regcache instead of the regset.
5443 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5444 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5445 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5446 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5447 Likewise.
5448
5449 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5450
5451 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5452 Constify structures.
5453 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5454 (alphanbsd_aout_gregset): Likewise.
5455 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5456 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5457 Likewise.
5458 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5459 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5460 Likewise.
5461 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5462 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5463 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5464 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5465 * m88k-tdep.c (m88k_gregset): Likewise.
5466 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5467 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5468 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5469 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5470 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5471 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5472 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5473 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5474 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5475 Likewise.
5476 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5477 * sh-tdep.h (sh_corefile_gregset): Likewise.
5478 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5479 * vax-tdep.c (vax_gregset): Likewise.
5480
5481 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5482
5483 Fix TLS access for -static -pthread.
5484 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5485 (try_thread_db_load_1): Initialize it.
5486 (thread_db_get_thread_local_address): Call it if LM is zero.
5487 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5488 * target.h (struct target_ops) (to_get_thread_local_address): Add
5489 load_module_addr comment.
5490
5491 2014-05-21 Pedro Alves <palves@redhat.com>
5492
5493 * dcache.c (dcache_read_memory_partial): If reading the cache line
5494 fails, fallback to reading just the memory the caller wanted.
5495
5496 2014-05-20 Doug Evans <dje@google.com>
5497
5498 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5499 instead of get_current_arch.
5500
5501 2014-05-20 Pedro Alves <palves@redhat.com>
5502
5503 * NEWS: Mention that compare-sections now works with all targets.
5504
5505 * remote.c (PACKET_qCRC): New enum value.
5506 (remote_verify_memory): Don't send qCRC if the target has no
5507 execution. Use packet_support/packet_ok. If the target doesn't
5508 support the qCRC packet, fallback to a deep memory copy.
5509 (compare_sections_command): Say "target image" instead of "remote
5510 executable".
5511 (_initialize_remote): Add PACKET_qCRC to the list of config
5512 packets that have no associated command. Extend comment.
5513 * target.c (simple_verify_memory, default_verify_memory): New
5514 function.
5515 * target.h (struct target_ops) <to_verify_memory>: Default to
5516 default_verify_memory.
5517 (simple_verify_memory): New declaration.
5518 * target-delegates.c: Regenerate.
5519
5520 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5521
5522 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5523
5524 2014-05-20 Hui Zhu <hui@codesourcery.com>
5525 Yao Qi <yao@codesourcery.com>
5526
5527 PR backtrace/16558
5528 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5529 and change address of sp and pc.
5530
5531 2014-05-19 Tom Tromey <tromey@redhat.com>
5532
5533 * gdbtypes.c (rank_function): Use XNEWVEC.
5534 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5535
5536 2014-05-19 Doug Evans <dje@google.com>
5537
5538 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5539 build_type_unit_groups and moved closer to only caller. Remove
5540 arguments. All references updated. Remove outdated .gdb_index
5541 comment.
5542 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5543 build_type_psymtabs_1.
5544
5545 2014-05-19 Doug Evans <dje@google.com>
5546
5547 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5548 n_type_unit_groups, all_type_unit_groups. All uses removed.
5549 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5550 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5551 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5552 (add_type_unit_group_to_table): Delete.
5553
5554 2014-05-19 Doug Evans <dje@google.com>
5555
5556 * eval.c (evaluate_subexp_standard): Add some comments.
5557
5558 2014-05-17 Doug Evans <xdje42@gmail.com>
5559
5560 * progspace.c (remove_program_space): Delete, unused.
5561 * progspace.h (remove_program_space): Ditto.
5562
5563 2014-05-17 Doug Evans <xdje42@gmail.com>
5564
5565 * inferior.c (prune_inferiors): Fix comment.
5566 (remove_inferior_command): Call prune_program_spaces.
5567
5568 2014-05-16 Doug Evans <dje@google.com>
5569
5570 New command line option -D.
5571 * NEWS: Mention it.
5572 * main.c (set_gdb_data_directory): New function.
5573 (captured_main): Recognize -D. Flag error for --data-directory "".
5574 Call set_gdb_data_directory.
5575 (print_gdb_help): Print --data-directory, -D.
5576 * main.h (set_gdb_data_directory): Declare.
5577 * top.c (staged_gdb_datadir): New static global.
5578 (set_gdb_datadir): Call set_gdb_data_directory
5579 (show_gdb_datadir): New function.
5580 (init_main): Update init of data-directory parameter.
5581
5582 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5583
5584 Import the "dirfd" gnulib module.
5585 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5586 * gnulib/aclocal.m4: Update.
5587 * gnulib/config.in: Update.
5588 * gnulib/configure: Update.
5589 * gnulib/import/Makefile.am: Update.
5590 * gnulib/import/Makefile.in: Update.
5591 * gnulib/import/dirfd.c: New.
5592 * gnulib/import/m4/dirfd.m4: New.
5593 * gnulib/import/m4/gnulib-cache.m4: Update.
5594 * gnulib/import/m4/gnulib-comp.m4: Update.
5595
5596 2014-05-16 Pierre Muller <muller@sourceware.org>
5597 Yao Qi <yao@codesourcery.com>
5598
5599 * valprint.c (print_wchar): Move the code on checking whether
5600 W is a printable wide char to the default branch of switch
5601 statement below. Call wchar_printable instead of gdb_iswprint.
5602
5603 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5604
5605 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5606 ldr.w and ldrd instructions.
5607
5608 2014-05-15 Doug Evans <dje@google.com>
5609
5610 * dwarf2read.c (read_structure_type): Delete outdated comments.
5611
5612 2014-05-14 Tom Tromey <tromey@redhat.com>
5613
5614 * macrocmd.c (print_macro_definition): Reindent.
5615
5616 2014-05-13 Doug Evans <xdje42@gmail.com>
5617
5618 * python/py-cmd.c (cmdpy_completer): Add comment.
5619 (completers): Make const.
5620
5621 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5622
5623 * infrun.c (resume): Remove should_resume (unused). Move up
5624 declaration of resume_ptid.
5625
5626 2014-05-13 Tom Tromey <tromey@redhat.com>
5627
5628 * language.h (unop_type_check): Remove.
5629 (binop_type_check): Don't declare.
5630
5631 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5632
5633 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5634 call to regcache_raw_collect.
5635
5636 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5637
5638 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5639 mi_console->quote as the quoting character.
5640
5641 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5642
5643 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5644
5645 2014-04-29 Tom Tromey <tromey@redhat.com>
5646
5647 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5648 "show debug varobj".
5649
5650 2014-05-07 Kyle McMartin <kyle@redhat.com>
5651
5652 Pushed by Joel Brobecker <brobecker@adacore.com>.
5653 * aarch64-tdep.c (aarch64_software_single_step): New function.
5654 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5655 with aarch64_software_single_step.
5656
5657 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5658
5659 GDB 7.7.1 released.
5660
5661 2014-05-05 Keith Seitz <keiths@redhat.com>
5662
5663 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5664 variable or history value is successfully parsed.
5665
5666 2014-05-05 Yao Qi <yao@codesourcery.com>
5667 Pedro Alves <palves@redhat.com>
5668
5669 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5670 address of blocks that intersects the requested range. Trim
5671 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5672 sections.
5673 * ctf.c (ctf_xfer_partial): Likewise.
5674
5675 2014-05-05 Yao Qi <yao@codesourcery.com>
5676
5677 * printcmd.c (display_command): Remove the check to
5678 target_has_execution.
5679
5680 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5681
5682 * ppcobsd-nat.c: Include "obsd-nat.h".
5683 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5684 add_target.
5685 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5686
5687 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5688
5689 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5690 and 16-bit signed and unsigned arguments. Update comment.
5691 (stap_parse_probe_arguments): Extend code to handle such
5692 arguments. Use warning instead of complaint to notify about
5693 unrecognized bitness.
5694
5695 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5696
5697 PR breakpoints/16889
5698 * stap-probe.c (stap_parse_probe_arguments): Simplify
5699 check for non-prefixed probes (i.e., probes whose
5700 arguments do not start with "N@"). Always set the
5701 argument type to a sane value.
5702
5703 2014-05-01 David Taylor <dtaylor@emc.com>
5704
5705 * remote.c (compare_sections_command): Add -r option to compare
5706 all loadable read-only sections.
5707
5708 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5709
5710 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5711 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5712 Update all callers.
5713 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5714 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5715 Remove unused CORE_ADDR argument. Update all callers.
5716
5717 2014-04-29 Pedro Alves <palves@redhat.com>
5718
5719 * remote.c (struct packet_config) <detect>: Extend comment.
5720 (add_packet_config_cmd): Don't set the config's detect or support
5721 fields here.
5722 (init_all_packet_configs): Also initialize the config's 'detect'
5723 field.
5724 (reset_all_packet_configs_support): New function.
5725 (remote_open_1): Call reset_all_packet_configs_support instead of
5726 init_all_packet_configs.
5727 (_initialize_remote): Initialize all packet configs. Assert that
5728 all packets have an associated command, except a few known
5729 outliers.
5730
5731 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5732
5733 * dwarf2read.c (read_subrange_type): Handle dynamic
5734 DW_AT_lower_bound attributes.
5735
5736 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5737
5738 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5739 dynamic bounds before computing its upper bound.
5740 (ada_discrete_type_low_bound): Same as above with the lower bound.
5741
5742 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5743
5744 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5745 range types. Adjust the array handling implementation to
5746 take advantage of this change.
5747 (resolve_dynamic_range): New function, mostly extracted from
5748 resolve_dynamic_bounds.
5749 (resolve_dynamic_array): New function, mostly extracted from
5750 resolve_dynamic_bounds.
5751 (resolve_dynamic_bounds): Delete.
5752 (resolve_dynamic_type): Reimplement. Add handling of
5753 TYPE_CODE_RANGE types.
5754
5755 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5756
5757 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5758 handling of parallel ___XA types.
5759
5760 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5761
5762 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5763 unnecessary second call to static_unwrap_type.
5764
5765 2014-04-27 Hui Zhu <hui@codesourcery.com>
5766
5767 * stack.c (print_frame_info): Call do_gdb_disassembly with
5768 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5769
5770 2014-04-26 Doug Evans <xdje42@gmail.com>
5771
5772 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5773
5774 2014-04-25 Pedro Alves <palves@redhat.com>
5775
5776 PR server/16255
5777 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5778 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5779 and newline from built string.
5780 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5781 (linux_ptrace_attach_fail_reason): ... this.
5782 * linux-nat.c (linux_nat_attach): Adjust to use
5783 linux_ptrace_attach_fail_reason.
5784
5785 2014-04-25 Pedro Alves <palves@redhat.com>
5786
5787 * remote.c (struct remote_state): Remove multi_process_aware,
5788 non_stop_aware, cond_tracepoints, cond_breakpoints,
5789 breakpoint_commands, fast_tracepoints, static_tracepoints,
5790 install_in_trace, disconnected_tracing,
5791 enable_disable_tracepoints, string_tracing, and
5792 augmented_libraries_svr4_read fields.
5793 (remote_multi_process_p): Move further below in the file.
5794 (struct packet_config): Add comments.
5795 (update_packet_config): Delete function.
5796 (show_packet_config_cmd): Use packet_config_support.
5797 (add_packet_config_cmd): Use NULL as set callback.
5798 (packet_ok): "set remote foo-packet"-style commands no longer
5799 change config->supported -- adjust.
5800 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5801 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5802 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5803 (PACKET_QNonStop, PACKET_multiprocess_feature)
5804 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5805 (PACKET_DisconnectedTracing_feature)
5806 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5807 (set_remote_protocol_packet_cmd): Delete function.
5808 (packet_config_support, packet_support): New functions.
5809 (set_remote_protocol_Z_packet_cmd): Don't call
5810 update_packet_config.
5811 (remote_query_attached, remote_pass_signals)
5812 (remote_program_signals, remote_threads_info)
5813 (remote_threads_extra_info, remote_start_remote): Use
5814 packet_support.
5815 (remote_start_remote): Use packet_config_support and
5816 packet_support.
5817 (init_all_packet_configs): Set all packets to unknown support,
5818 instead of calling update_packet_config.
5819 (remote_check_symbols): Use packet_support.
5820 (remote_supported_packet): Unconditionally set the packet config's
5821 support status.
5822 (remote_multi_process_feature, remote_non_stop_feature)
5823 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5824 (remote_breakpoint_commands_feature)
5825 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5826 (remote_install_in_trace_feature)
5827 (remote_disconnected_tracing_feature)
5828 (remote_enable_disable_tracepoint_feature)
5829 (remote_string_tracing_feature)
5830 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5831 (remote_protocol_features): Adjust to use remote_supported_packet
5832 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5833 "ConditionalTracepoints", "ConditionalBreakpoints",
5834 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5835 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5836 "EnableDisableTracepoints", and "tracenz".
5837 (remote_query_supported): Use packet_support.
5838 (remote_open_1): Adjust.
5839 (extended_remote_attach_1): Use packet_support. Switch on the
5840 result of packet_ok instead of checking whether the packet ended
5841 up disabled.
5842 (remote_vcont_resume): Use packet_support.
5843 (remote_resume, remote_stop_ns, fetch_register_using_p)
5844 (remote_prepare_to_store, store_register_using_P)
5845 (check_binary_download, remote_write_bytes): Use packet_support.
5846 (remote_vkill): Use packet_support. Switch on the result of
5847 packet_ok instead of checking whether the packet ended up
5848 disabled.
5849 (extended_remote_supports_disable_randomization): Use
5850 packet_support.
5851 (extended_remote_run): Switch on the result of packet_ok instead
5852 of checking whether the packet ended up disabled.
5853 (remote_insert_breakpoint, remote_remove_breakpoint)
5854 (remote_insert_watchpoint, remote_remove_watchpoint)
5855 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5856 packet_support.
5857 (remote_search_memory): Use packet_config_support.
5858 (remote_get_thread_local_address, remote_get_tib_address)
5859 (remote_hostio_send_command, remote_can_execute_reverse): Use
5860 packet_support.
5861 (remote_supports_cond_tracepoints)
5862 (remote_supports_cond_breakpoints)
5863 (remote_supports_fast_tracepoints)
5864 (remote_supports_static_tracepoints)
5865 (remote_supports_install_in_trace)
5866 (remote_supports_enable_disable_tracepoint)
5867 (remote_supports_string_tracing)
5868 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5869 the packet config says the feature is enabled or disabled.
5870 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5871 (remote_get_trace_status): Use packet_support.
5872 (remote_set_disconnected_tracing): Adjust to check whether the
5873 feature is enabled with packet_support.
5874 (remote_set_trace_buffer_size, remote_use_agent)
5875 (remote_can_use_agent, remote_supports_btrace): Use
5876 packet_support.
5877 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5878 Use packet_config_support.
5879 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5880 the packet config says the feature is enabled or disabled.
5881 (set_range_stepping): Use packet_support.
5882
5883 2014-04-25 Tom Tromey <tromey@redhat.com>
5884
5885 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5886 argument.
5887
5888 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5889
5890 * NEWS: Mention support for C99 variable length arrays.
5891
5892 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5893
5894 * ada-lang.c (standard_exc): Expand introductory comment.
5895
5896 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5897 Walfred Tedeschi <walfred.tedeschi@intel.com>
5898
5899 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5900 AVX512 registers.
5901 (amd64_linux_read_description): Add code to handle AVX512 xstate
5902 mask and return respective tdesc.
5903 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5904 and features/i386/x32-avx512-linux.c.
5905 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5906 (amd64_linux_core_read_description): Add code to handle AVX512
5907 xstate mask and return respective tdesc.
5908 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5909 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5910 calculation.
5911 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5912 (tdesc_amd64_avx512_linux): New prototype.
5913 (tdesc_x32_avx512_linux): Likewise.
5914 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5915 features/i386/x32-avx512.c.
5916 (amd64_ymm_avx512_names): New register names for pseudo
5917 registers YMM16-31.
5918 (amd64_ymmh_avx512_names): New register names for raw registers
5919 YMMH16-31.
5920 (amd64_k_names): New register names for K registers.
5921 (amd64_zmmh_names): New register names for ZMM raw registers.
5922 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5923 (amd64_xmm_avx512_names): New register names for XMM16-31
5924 registers.
5925 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5926 registers.
5927 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5928 if feature is present.
5929 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5930 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5931 (AMD64_NUM_REGS): Adjust to new number of registers.
5932 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5933 registers supplied via XSTATE by AVX512 registers.
5934 (i386_linux_read_description): Add case for AVX512.
5935 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5936 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5937 (i386_linux_core_read_description): Add case for AVX512.
5938 (i386_linux_init_abi): Install supported register note section
5939 for AVX512.
5940 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5941 AVX512.
5942 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5943 registers to be number of zmm7h + 1.
5944 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5945 * i386-tdep.c: Include features/i386/i386-avx512.c.
5946 (i386_zmm_names): Add ZMM pseudo register names array.
5947 (i386_zmmh_names): Add ZMM raw register names array.
5948 (i386_k_names): Add K raw register names array.
5949 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5950 registers. AVX512 has 16 more ZMM registers than there are YMM
5951 registers.
5952 (i386_zmmh_regnum_p): Add function to look up register number of
5953 ZMM raw registers.
5954 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5955 (i386_k_regnum_p): Likewise for K raw registers.
5956 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5957 registers added by AVX512.
5958 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5959 registers added by AVX512.
5960 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5961 added by AVX512.
5962 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5963 (i386_pseudo_register_name): Add ZMM pseudo registers.
5964 (i386_zmm_type): Construct and return vector registers type for ZMM
5965 registers.
5966 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5967 ZMM0-31 pseudo registers and K registers.
5968 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5969 and YMM16-31 registers from register cache.
5970 (i386_pseudo_register_write): Add code to write K, ZMM and
5971 YMM16-31 registers.
5972 (i386_register_reggroup_p): Add code to include/exclude AVX512
5973 registers in/from respective register groups.
5974 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5975 registers if feature is present in xcr0.
5976 (i386_gdbarch_init): Add code to initialize AVX512 feature
5977 variables in tdep structure, wire in pseudo registers and call
5978 initialize_tdesc_i386_avx512.
5979 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5980 variables.
5981 (i386_regnum): Add AVX512 registers.
5982 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5983 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5984 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5985 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5986 512 bits wide.
5987 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5988 (i386_ymm_avx512_regnum_p): Likewise.
5989 (i386_k_regnum_p): Likewise.
5990 (i386_zmm_regnum_p): Likewise.
5991 (i386_zmmh_regnum_p): Likewise.
5992 * i387-tdep.c : Update year in copyright notice.
5993 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5994 XSAVE buffer.
5995 (XSAVE_YMM_AVX512_ADDR): New macro.
5996 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5997 XSAVE buffer.
5998 (XSAVE_XMM_AVX512_ADDR): New macro.
5999 (xsave_avx512_k_offset): New table for K register offsets in
6000 XSAVE buffer.
6001 (XSAVE_AVX512_K_ADDR): New macro.
6002 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6003 in XSAVE buffer.
6004 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6005 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6006 buffer.
6007 (i387_collect_xsave): Add code to collect AVX512 registers from
6008 XSAVE buffer.
6009 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6010 of XMM16-31 registers.
6011 (I387_NUM_K_REGS): New define for number of K registers.
6012 (I387_K0_REGNUM): New define for K0 register number.
6013 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6014 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6015 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6016 registers.
6017 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6018 (I387_XMM16_REGNUM): New define for XMM16 register number.
6019 (I387_YMM0_REGNUM): New define for YMM0 register number.
6020 (I387_KEND_REGNUM): New define for last K register number.
6021 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6022 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6023 number.
6024 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6025 number.
6026 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6027 size.
6028 * features/Makefile: Add AVX512 related files.
6029 * features/i386/32bit-avx512.xml: New file.
6030 * features/i386/64bit-avx512.xml: Likewise.
6031 * features/i386/amd64-avx512-linux.c: Likewise.
6032 * features/i386/amd64-avx512-linux.xml: Likewise.
6033 * features/i386/amd64-avx512.c: Likewise.
6034 * features/i386/amd64-avx512.xml: Likewise.
6035 * features/i386/i386-avx512-linux.c: Likewise.
6036 * features/i386/i386-avx512-linux.xml: Likewise.
6037 * features/i386/i386-avx512.c: Likewise.
6038 * features/i386/i386-avx512.xml: Likewise.
6039 * features/i386/x32-avx512-linux.c: Likewise.
6040 * features/i386/x32-avx512-linux.xml: Likewise.
6041 * features/i386/x32-avx512.c: Likewise.
6042 * features/i386/x32-avx512.xml: Likewise.
6043 * regformats/i386/amd64-avx512-linux.dat: New file.
6044 * regformats/i386/amd64-avx512.dat: Likewise.
6045 * regformats/i386/i386-avx512-linux.dat: Likewise.
6046 * regformats/i386/i386-avx512.dat: Likewise.
6047 * regformats/i386/x32-avx512-linux.dat: Likewise.
6048 * regformats/i386/x32-avx512.dat: Likewise.
6049 * NEWS: Add note about new support for AVX512.
6050
6051
6052 2014-04-23 Pedro Alves <palves@redhat.com>
6053
6054 * breakpoint.c (insert_bp_location): Tolerate errors if the
6055 breakpoint is set in a user-loaded objfile.
6056 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6057 location is marked shlib_disabled. If the breakpoint is set in a
6058 user-loaded objfile is a GDB-side memory breakpoint, validate it
6059 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6060 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6061 flag.
6062 * mem-break.c (memory_validate_breakpoint): New function.
6063 * objfiles.c (userloaded_objfile_contains_address_p): New
6064 function.
6065 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6066 * target.h (memory_validate_breakpoint): New declaration.
6067
6068 2014-04-23 Pedro Alves <palves@redhat.com>
6069
6070 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6071 the breakpoint is set in a shared library, only suppress
6072 errors for software breakpoints, not hardware breakpoints.
6073
6074 2014-04-22 Pedro Alves <palves@redhat.com>
6075
6076 * infrun.c (schedlock_applies): New function, factored out from
6077 find_thread_needs_step_over.
6078 (find_thread_needs_step_over): Use it.
6079 (switch_back_to_stepped_thread): Always clear trap_expected if the
6080 step over is finished. Return early if scheduler locking applies.
6081 Look for the stepping thread and a potential step-over thread with
6082 a single loop.
6083 (currently_stepping_or_nexting_callback): Delete.
6084
6085 2014-04-22 Nick Clifton <nickc@redhat.com>
6086
6087 * NEWS: Mention that ARM sim now supports tracing.
6088
6089 2014-04-22 Yao Qi <yao@codesourcery.com>
6090
6091 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6092 to ...
6093 * tracefile.c (tracefile_fetch_registers): ... it. New
6094 function.
6095 * tracefile.h (tracefile_fetch_registers): Declare.
6096 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6097 tracefile_fetch_registers.
6098
6099 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6100
6101 PR gdb/14018
6102 * windows-nat.c (thread_rec): Don't display a warning when
6103 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6104 fails for any reason, set th->suspended to -1, so that we don't
6105 try to resume such a thread. Also, don't return NULL in these
6106 cases, to avoid completely ruin the session due to "PC register is
6107 not available" error.
6108 (do_windows_fetch_inferior_registers): Check errors in
6109 GetThreadContext call.
6110 (windows_continue): Accept an additional argument KILLED; if not
6111 zero, ignore errors in the SetThreadContext call, since the
6112 inferior was killed and is shutting down.
6113 (windows_resume, get_windows_debug_event)
6114 (windows_create_inferior, windows_mourn_inferior)
6115 (windows_kill_inferior): All callers of windows_continue changed
6116 to adjust to its new calling sequence.
6117
6118 2014-04-19 Yao Qi <yao@codesourcery.com>
6119
6120 * ctf.c (ctf_open): Call post_create_inferior.
6121
6122 2014-04-19 Yao Qi <yao@codesourcery.com>
6123
6124 * ctf.c (handle_id): New static variable.
6125 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6126 value. Get the declaration of event "register" and get length
6127 of field "contents".
6128
6129 2014-04-19 Yao Qi <yao@codesourcery.com>
6130
6131 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6132
6133 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6134
6135 * valops.c (oload_method_static): Remove unnecessary argument
6136 METHOD. Update all callers.
6137
6138 2014-04-18 Pedro alves <palves@redhat.com>
6139 Tom Tromey <tromey@redhat.com>
6140
6141 PR backtrace/15558
6142 * frame.c (get_prev_frame_1): Rename to ...
6143 (get_prev_frame_always): ... this, and make extern. Adjust.
6144 (skip_artificial_frames): Use get_prev_frame_always.
6145 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6146 (get_frame_unwind_stop_reason): Adjust to rename.
6147 * frame.h (get_prev_frame_always): Declare.
6148 * inline-frame.c: Include frame.h.
6149 (inline_frame_this_id): Use get_prev_frame_always.
6150
6151 2014-04-18 Tristan Gingold <gingold@adacore.com>
6152
6153 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6154 code by using bfd_mach_o_get_base_address.
6155
6156 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6157
6158 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6159 (spu_ax_pseudo_register_collect): New function.
6160 (spu_ax_pseudo_register_push_stack): Likewise.
6161 (spu_dwarf_reg_to_regnum): Likewise.
6162 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6163
6164 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6165
6166 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6167 Replace FRAME argument with FRAME_ID.
6168 * gdbarch.c, gdbarch.h: Regenerate.
6169 * findvar.c (default_value_from_register): Add GDBARCH argument;
6170 replace FRAME by FRAME_ID. No longer call get_frame_id.
6171 (value_from_register): Update call to gdbarch_value_from_register.
6172 * value.h (default_value_from_register): Update prototype.
6173 * s390-linux-tdep.c (s390_value_from_register): Update interface
6174 and call to default_value_from_register.
6175 * spu-tdep.c (spu_value_from_register): Likewise.
6176
6177 * findvar.c (address_from_register): Remove TYPE argument.
6178 Do not call value_from_register; use gdbarch_value_from_register
6179 with null_frame_id instead.
6180 * value.h (address_from_register): Update prototype.
6181 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6182 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6183 address_from_register interface change.
6184
6185 2014-04-17 Yao Qi <yao@codesourcery.com>
6186
6187 * gdbtypes.h: Update comments to link to types and macros'
6188 definitions.
6189
6190 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6191
6192 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6193
6194 2014-04-16 Keith Seitz <keiths@redhat.com>
6195
6196 PR gdb/15827
6197 * dwarf2read.c (skip_one_die): Check that all relative-offset
6198 sibling DIEs fall within range of the current reader's buffer.
6199 (read_partial_die): Likewise.
6200
6201 2014-04-16 Keith Seitz <keiths@redhat.com>
6202
6203 PR c++/16597
6204 * cp-namespace.c (lookup_symbol_file): If the type name of
6205 `this' is NULL, return immediately.
6206
6207 2014-04-14 Keith Seitz <keiths@redhat.com>
6208
6209 PR c++/16253
6210 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6211 from symbol_matches_domain in symtab.c. All local callers
6212 of symbol_matches_domain updated.
6213 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6214 search STRUCT_DOMAIN.
6215 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6216 independently. standard_lookup will do that automatically.
6217 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6218 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6219 (cp_lookup_symbol_in_namespace): Likewise.
6220 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6221 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6222 may return a STRUCT_DOMAIN match.
6223 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6224 * cp-support.c: Include language.h.
6225 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6226 VAR_DOMAIN.
6227 * psymtab.c (match_partial_symbol): Compare the requested
6228 domain with the symbol's domain directly.
6229 (lookup_partial_symbol): Likewise.
6230 * symtab.c (lookup_symbol_in_language): Explain when/why
6231 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6232 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6233 appropriate languages.
6234 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6235 and moved to ada-lang.c
6236 (lookup_block_symbol): Explain that this function only returns
6237 symbol matching the requested DOMAIN.
6238 Compare the requested domain with the symbol's domain directly.
6239 (iterate_over_symbols): Compare the requested domain with the
6240 symbol's domain directly.
6241 * symtab.h (symbol_matches_domain): Remove.
6242
6243 2014-04-14 Tom Tromey <tromey@redhat.com>
6244
6245 PR c++/15246:
6246 * c-exp.y (type_aggregate_p): New function.
6247 (qualified_name, classify_inner_name): Use it.
6248 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6249 and TYPE_TARGET_TYPE of an enum type.
6250 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6251 an enum type.
6252 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6253 handle TYPE_DECLARED_CLASS.
6254 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6255 types.
6256 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6257 * valops.c (enum_constant_from_type): New function.
6258 (value_aggregate_elt): Use it.
6259 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6260 TYPE_CODE_ENUM.
6261
6262 2014-04-14 Tom Tromey <tromey@redhat.com>
6263
6264 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6265 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6266 const.
6267 * value.h (value_aggregate_elt): Update.
6268
6269 2014-04-14 Tom Tromey <tromey@redhat.com>
6270
6271 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6272
6273 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6274
6275 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6276 (evaluate_subexp_standard): Pass noside argument.
6277 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6278 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6279 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6280 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6281 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6282
6283 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6284
6285 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6286 points to a constant blob.
6287
6288 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6289
6290 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6291 property and store it as the high bound and flag the range accordingly.
6292 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6293 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6294 * gdbtypes.h (enum range_flags): New enum.
6295 (struct range_bounds): Add flags member.
6296
6297 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6298
6299 * c-typeprint.c (c_type_print_varspec_suffix): Added
6300 check for not yet resolved high bound. If unresolved, print
6301 "variable length" string to the console instead of random
6302 length.
6303
6304 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6305
6306 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6307 value.
6308 (ada_template_to_fixed_record_type_1): Likewise.
6309 (ada_to_fixed_type_1): Likewise.
6310 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6311 (cp_print_value): Likewise.
6312 * d-valprint.c (dynamic_array_type): Likewise.
6313 * findvar.c (address_of_variable): Likewise.
6314 * jv-valprint.c (java_value_print): Likewise.
6315 * valops.c (value_ind): Likewise.
6316 * value.c (coerce_ref): Likewise.
6317
6318 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6319
6320 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6321 value and retrieve the dynamic type size.
6322
6323 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6324
6325 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6326 passed to sizeof is dynamic evaluate the argument to compute the length.
6327
6328 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6329 Joel Brobecker <brobecker@adacore.com>
6330
6331 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6332 (dwarf2_evaluate_property): New function.
6333 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6334 * dwarf2read.c (attr_to_dynamic_prop): New function.
6335 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6336 attribute.
6337 * gdbtypes.c: Include dwarf2loc.h.
6338 (is_dynamic_type): New function.
6339 (resolve_dynamic_type): New function.
6340 (resolve_dynamic_bounds): New function.
6341 (get_type_length): New function.
6342 (check_typedef): Use get_type_length to compute type length.
6343 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6344 (TYPE_LOW_BOUND_KIND): New macro.
6345 (is_dynamic_type): New function prototype.
6346 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6347 to resolve dynamic properties of the type. Update comment.
6348 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6349
6350 2014-04-14 Richard Henderson <rth@redhat.com>
6351
6352 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6353
6354 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6355 Doug Evans <xdje42@gmail.com>
6356
6357 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6358 dereference TYPE_CODE_REF values.
6359
6360 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6361
6362 Revert the following changes due to regressions:
6363
6364 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6365 (dwarf2_evaluate_property): New function.
6366 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6367 * dwarf2read.c (attr_to_dynamic_prop): New function.
6368 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6369 attribute.
6370 * gdbtypes.c: Include dwarf2loc.h.
6371 (is_dynamic_type): New function.
6372 (resolve_dynamic_type): New function.
6373 (resolve_dynamic_bounds): New function.
6374 (get_type_length): New function.
6375 (check_typedef): Use get_type_length to compute type length.
6376 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6377 (TYPE_LOW_BOUND_KIND): New macro.
6378 (is_dynamic_type): New function prototype.
6379 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6380 to resolve dynamic properties of the type. Update comment.
6381 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6382
6383 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6384 passed to sizeof is dynamic evaluate the argument to compute the length.
6385
6386 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6387 value and retrieve the dynamic type size.
6388
6389 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6390 (ada_template_to_fixed_record_type_1): Likewise.
6391 (ada_to_fixed_type_1): Likewise.
6392 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6393 (cp_print_value): Likewise.
6394 * d-valprint.c (dynamic_array_type): Likewise.
6395 * eval.c (evaluate_subexp_with_coercion): Likewise.
6396 * findvar.c (address_of_variable): Likewise.
6397 * jv-valprint.c (java_value_print): Likewise.
6398 * valops.c (value_ind): Likewise.
6399 * value.c (coerce_ref): Likewise.
6400
6401 * c-typeprint.c (c_type_print_varspec_suffix): Added
6402 check for not yet resolved high bound. If unresolved, print
6403 "variable length" string to the console instead of random
6404 length.
6405
6406 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6407 property and store it as the high bound and flag the range accordingly.
6408 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6409 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6410 * gdbtypes.h (enum range_flags): New enum.
6411 (struct range_bounds): Add flags member.
6412
6413 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6414 points to a constant blob.
6415
6416 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6417 (evaluate_subexp_standard): Pass noside argument.
6418 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6419 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6420 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6421 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6422 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6423
6424 2014-04-11 Keith Seitz <keiths@redhat.com>
6425
6426 PR c++/16675
6427 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6428 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6429 reference types.
6430
6431 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6432
6433 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6434 (evaluate_subexp_standard): Pass noside argument.
6435 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6436 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6437 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6438 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6439 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6440
6441 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6442
6443 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6444 points to a constant blob.
6445
6446 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6447
6448 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6449 property and store it as the high bound and flag the range accordingly.
6450 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6451 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6452 * gdbtypes.h (enum range_flags): New enum.
6453 (struct range_bounds): Add flags member.
6454
6455 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6456
6457 * c-typeprint.c (c_type_print_varspec_suffix): Added
6458 check for not yet resolved high bound. If unresolved, print
6459 "variable length" string to the console instead of random
6460 length.
6461
6462 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6463
6464 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6465 (ada_template_to_fixed_record_type_1): Likewise.
6466 (ada_to_fixed_type_1): Likewise.
6467 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6468 (cp_print_value): Likewise.
6469 * d-valprint.c (dynamic_array_type): Likewise.
6470 * eval.c (evaluate_subexp_with_coercion): Likewise.
6471 * findvar.c (address_of_variable): Likewise.
6472 * jv-valprint.c (java_value_print): Likewise.
6473 * valops.c (value_ind): Likewise.
6474 * value.c (coerce_ref): Likewise.
6475
6476 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6477
6478 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6479 value and retrieve the dynamic type size.
6480
6481 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6482
6483 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6484 passed to sizeof is dynamic evaluate the argument to compute the length.
6485
6486 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6487
6488 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6489 (dwarf2_evaluate_property): New function.
6490 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6491 * dwarf2read.c (attr_to_dynamic_prop): New function.
6492 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6493 attribute.
6494 * gdbtypes.c: Include dwarf2loc.h.
6495 (is_dynamic_type): New function.
6496 (resolve_dynamic_type): New function.
6497 (resolve_dynamic_bounds): New function.
6498 (get_type_length): New function.
6499 (check_typedef): Use get_type_length to compute type length.
6500 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6501 (TYPE_LOW_BOUND_KIND): New macro.
6502 (is_dynamic_type): New function prototype.
6503 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6504 to resolve dynamic properties of the type. Update comment.
6505 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6506
6507 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6508
6509 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6510 declaring high/low bounds and change uses accordingly. Call
6511 create_range_type instead of create_static_range_type.
6512 * gdbtypes.c (create_range_type): New function.
6513 (create_range_type): Convert bounds into struct bound_prop and pass
6514 them to create_range_type.
6515 * gdbtypes.h (struct bound_prop): New struct.
6516 (create_range_type): New function prototype.
6517 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6518 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6519 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6520 part of the bound.
6521 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6522
6523 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6524
6525 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6526 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6527 * ada-lang.c: All uses of create_range_type updated.
6528 * coffread.c: All uses of create_range_type updated.
6529 * dwarf2read.c: All uses of create_range_type updated.
6530 * f-exp.y: All uses of create_range_type updated.
6531 * m2-valprint.c: All uses of create_range_type updated.
6532 * mdebugread.c: All uses of create_range_type updated.
6533 * stabsread.c: All uses of create_range_type updated.
6534 * valops.c: All uses of create_range_type updated.
6535 * valprint.c: All uses of create_range_type updated.
6536
6537 2014-04-10 Pedro Alves <palves@redhat.com>
6538
6539 * breakpoint.c (single_step_breakpoints)
6540 (single_step_gdbarch): Move up in the file.
6541 (one_breakpoint_xfer_memory): New function, factored out from ...
6542 (breakpoint_xfer_memory): ... here. Also process single-step
6543 breakpoints.
6544
6545 2014-04-09 Tristan Gingold <gingold@adacore.com>
6546
6547 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6548 comments.
6549 (darwin_decode_exception_message): Free port only after use.
6550
6551 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6552
6553 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6554 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6555 when setting the size of call_length.
6556
6557 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6558
6559 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6560 dereference TYPE_CODE_REF values.
6561
6562 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6563
6564 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6565 end of warning message.
6566
6567 2014-04-03 Doug Evans <dje@google.com>
6568
6569 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6570 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6571
6572 2014-04-02 Alan Modra <amodra@gmail.com>
6573
6574 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6575 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6576 (struct symbol_file_add_from_memory_args): Add size field.
6577 (find_vdso_size): New function.
6578 (add_vsyscall_page): Attempt to find vdso size.
6579
6580 2014-04-01 Doug Evans <dje@google.com>
6581
6582 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6583
6584 2014-04-01 Tristan Gingold <gingold@adacore.com>
6585
6586 * darwin-nat.c (darwin_encode_reply): Add prototype.
6587 (darwin_decode_exception_message): Reply to unknown inferiors.
6588 (darwin_decode_message): Handle message by id. Ignore message
6589 to unknown inferior.
6590 (darwin_wait): Discard unknown messages, add debug trace.
6591
6592 2014-03-31 Doug Evans <dje@google.com>
6593
6594 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6595 comp_dir_string.
6596
6597 2014-03-31 Doug Evans <dje@google.com>
6598
6599 New option "set print symbol-loading".
6600 * NEWS: Mention it.
6601 * solib.c (solib_read_symbols): Only print symbol loading messages
6602 if requested.
6603 (solib_add): If symbol loading is in "brief" mode, notify user
6604 symbols are being loaded.
6605 (reload_shared_libraries_1): Ditto.
6606 * symfile.c (print_symbol_loading_off): New static global.
6607 (print_symbol_loading_brief): New static global.
6608 (print_symbol_loading_full): New static global.
6609 (print_symbol_loading_enums): New static global.
6610 (print_symbol_loading): New static global.
6611 (print_symbol_loading_p): New function.
6612 (symbol_file_add_with_addrs): Only print symbol loading messages
6613 if requested.
6614 (_initialize_symfile): Register "print symbol-loading" set/show
6615 command.
6616 * symfile.h (print_symbol_loading_p): Declare.
6617
6618 2014-03-30 Doug Evans <xdje42@gmail.com>
6619
6620 * infrun.c (set_last_target_status): New function.
6621 (handle_inferior_event): Call it.
6622
6623 2014-03-30 Doug Evans <xdje42@gmail.com>
6624
6625 * inferior.h (enum stop_kind): Improve comment.
6626
6627 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6628
6629 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6630 a reference, strip the reference layer before calling
6631 the lang_ops value_has_mutated callback.
6632
6633 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6634
6635 Remove some globals from our parser.
6636 * language.c (unk_lang_parser): Add "struct parser_state"
6637 argument.
6638 * language.h (struct language_defn) <la_parser>: Likewise.
6639 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6640 (initialize_expout): Add "struct parser_state" argument.
6641 Rewrite function to use the parser state.
6642 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6643 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6644 write_exp_elt_longcst, write_exp_elt_dblcst,
6645 write_exp_elt_decfloatcst, write_exp_elt_type,
6646 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6647 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6648 write_dollar_variable): Likewise.
6649 (parse_exp_in_context_1): Use parser state.
6650 (insert_type_address_space): Add "struct parser_state" argument.
6651 Use parser state.
6652 (increase_expout_size): New function.
6653 * parser-defs.h: Forward declare "struct language_defn" and
6654 "struct parser_state".
6655 (expout, expout_size, expout_ptr): Remove extern declarations.
6656 (parse_gdbarch, parse_language): Rewrite macro declarations to
6657 accept the parser state.
6658 (struct parser_state): New struct.
6659 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6660 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6661 write_exp_elt_decfloatcst, write_exp_elt_type,
6662 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6663 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6664 write_exp_msymbol, write_dollar_variable,
6665 mark_struct_expression, insert_type_address_space): Add "struct
6666 parser_state" argument.
6667 (increase_expout_size): New function.
6668 * utils.c (do_clear_parser_state): New function.
6669 (make_cleanup_clear_parser_state): Likewise.
6670 * utils.h (make_cleanup_clear_parser_state): New function
6671 prototype.
6672 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6673 Update calls to write_exp* in order to pass the parser state.
6674 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6675 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6676 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6677 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6678 * stap-probe.c (stap_parse_register_operand): Likewise.
6679 (stap_parse_single_operand): Likewise.
6680 (stap_parse_argument_1): Likewise.
6681 (stap_parse_argument): Use parser state.
6682 * stap-probe.h: Include "parser-defs.h".
6683 (struct stap_parse_info) <pstate>: New field.
6684 * c-exp.y (parse_type): Rewrite to use parser state.
6685 (yyparse): Redefine to c_parse_internal.
6686 (pstate): New global variable.
6687 (parse_number): Add "struct parser_state" argument.
6688 (write_destructor_name): Likewise.
6689 (type_exp): Update calls to write_exp* and similars in order to
6690 use parser state.
6691 (exp1, exp, variable, qualified_name, space_identifier,
6692 typename, typebase): Likewise.
6693 (write_destructor_name, parse_number, lex_one_token,
6694 classify_name, classify_inner_name, c_parse): Add "struct
6695 parser_state" argument. Update function to use parser state.
6696 * c-lang.h: Forward declare "struct parser_state".
6697 (c_parse): Add "struct parser_state" argument.
6698 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6699 (yyparse): Redefine macro to ada_parse_internal.
6700 (pstate): New variable.
6701 (write_int, write_object_renaming, write_var_or_type,
6702 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6703 type_int, type_long, type_long_long, type_float, type_double,
6704 type_long_double, type_char, type_boolean, type_system_address):
6705 Add "struct parser_state" argument.
6706 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6707 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6708 var_or_type, aggregate, aggregate_component_list,
6709 positional_list, others, component_group,
6710 component_associations): Update calls to write_exp* and similar
6711 functions in order to use parser state.
6712 (ada_parse, write_var_from_sym, write_int,
6713 write_exp_op_with_string, write_object_renaming,
6714 find_primitive_type, write_selectors, write_ambiguous_var,
6715 write_var_or_type, write_name_assoc, type_int, type_long,
6716 type_long_long, type_float, type_double, type_long_double,
6717 type_char, type_boolean, type_system_address): Add "struct
6718 parser_state" argument. Adjust function to use parser state.
6719 * ada-lang.c (parse): Likewise.
6720 * ada-lang.h: Forward declare "struct parser_state".
6721 (ada_parse): Add "struct parser_state" argument.
6722 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6723 calls to both functions.
6724 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6725 parser state.
6726 (yyparse): Redefine macro to f_parse_internal.
6727 (pstate): New variable.
6728 (parse_number): Add "struct parser_state" argument.
6729 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6730 and similars in order to use parser state.
6731 (parse_number): Adjust code to use parser state.
6732 (yylex): Likewise.
6733 (f_parse): New function.
6734 * f-lang.h: Forward declare "struct parser_state".
6735 (f_parse): Add "struct parser_state" argument.
6736 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6737 parser state.
6738 (yyparse): Redefine macro for java_parse_internal.
6739 (pstate): New variable.
6740 (push_expression_name, push_expression_name, insert_exp): Add
6741 "struct parser_state" argument.
6742 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6743 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6744 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6745 PostIncrementExpression, PostDecrementExpression,
6746 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6747 UnaryExpressionNotPlusMinus, CastExpression,
6748 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6749 RelationalExpression, EqualityExpression, AndExpression,
6750 ExclusiveOrExpression, InclusiveOrExpression,
6751 ConditionalAndExpression, ConditionalOrExpression,
6752 ConditionalExpression, Assignment, LeftHandSide): Update
6753 calls to write_exp* and similars in order to use parser state.
6754 (parse_number): Ajust code to use parser state.
6755 (yylex): Likewise.
6756 (java_parse): New function.
6757 (push_variable): Add "struct parser_state" argument. Adjust
6758 code to user parser state.
6759 (push_fieldnames, push_qualified_expression_name,
6760 push_expression_name, insert_exp): Likewise.
6761 * jv-lang.h: Forward declare "struct parser_state".
6762 (java_parse): Add "struct parser_state" argument.
6763 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6764 parser state.
6765 (yyparse): Redefine macro to m2_parse_internal.
6766 (pstate): New variable.
6767 (type_exp, exp, fblock, variable, type): Update calls to
6768 write_exp* and similars to use parser state.
6769 (yylex): Likewise.
6770 (m2_parse): New function.
6771 * m2-lang.h: Forward declare "struct parser_state".
6772 (m2_parse): Add "struct parser_state" argument.
6773 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6774 * objc-lang.h: Forward declare "struct parser_state".
6775 (end_msglist): Add "struct parser_state" argument.
6776 * p-exp.y (parse_type): Rewrite macro to use parser state.
6777 (yyparse): Redefine macro to pascal_parse_internal.
6778 (pstate): New variable.
6779 (parse_number): Add "struct parser_state" argument.
6780 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6781 write_exp* and similars in order to use parser state.
6782 (parse_number, yylex): Adjust code to use parser state.
6783 (pascal_parse): New function.
6784 * p-lang.h: Forward declare "struct parser_state".
6785 (pascal_parse): Add "struct parser_state" argument.
6786 * go-exp.y (parse_type): Rewrite macro to use parser state.
6787 (yyparse): Redefine macro to go_parse_internal.
6788 (pstate): New variable.
6789 (parse_number): Add "struct parser_state" argument.
6790 (type_exp, exp1, exp, variable, type): Update calls to
6791 write_exp* and similars in order to use parser state.
6792 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6793 to use parser state.
6794 (go_parse): Likewise.
6795 * go-lang.h: Forward declare "struct parser_state".
6796 (go_parse): Add "struct parser_state" argument.
6797
6798 2014-03-27 Doug Evans <dje@google.com>
6799
6800 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6801
6802 2014-03-27 Doug Evans <dje@google.com>
6803
6804 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6805 Remove argument abbrev_section. All callers updated.
6806
6807 2014-03-27 Doug Evans <dje@google.com>
6808
6809 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6810 addr_base, ranges_base.
6811
6812 2014-03-26 Keith Seitz <keiths@redhat.com>
6813
6814 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6815 types, not VAR_DOMAIN.
6816
6817 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6818
6819 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6820 "ra" registers.
6821 * features/nios2-linux.c: Regenerated.
6822 * features/nios2.c: Regenerated.
6823
6824 2014-03-25 Pedro Alves <palves@redhat.com>
6825
6826 * cli/cli-script.c (script_from_file): Force the interpreter to
6827 sync mode.
6828
6829 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6830
6831 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6832 small stack allocation.
6833
6834 2014-03-24 Tristan Gingold <gingold@adacore.com>
6835
6836 * darwin-nat.c (exc_server): Remove unused prototype.
6837 (darwin_dump_message): Correctly display data on x86_64.
6838 (darwin_encode_reply): Fix style.
6839 Add comments and fix indentation.
6840
6841 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6842
6843 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6844
6845 2014-03-22 Doug Evans <xdje42@gmail.com>
6846
6847 * infcmd.c: Whitespace fixes.
6848 (interrupt_command): Merge two function comments into one.
6849
6850 2014-03-22 Doug Evans <xdje42@gmail.com>
6851
6852 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6853 All uses updated.
6854
6855 2014-03-22 Yao Qi <yao@codesourcery.com>
6856
6857 * remote.c (target_read_live_memory): Remove.
6858 (memory_xfer_live_readonly_partial): Rename it to
6859 remote_xfer_live_readonly_partial. Remove argument 'object'.
6860 All callers updated. Call remote_read_bytes_1
6861 instead of target_read_live_memory.
6862 * tracepoint.c (set_traceframe_number): Remove.
6863 (make_cleanup_restore_traceframe_number): Likewise .
6864 * tracepoint.h (set_traceframe_number): Remove declaration.
6865 (make_cleanup_restore_traceframe_number): Likewise.
6866
6867 2014-03-22 Yao Qi <yao@codesourcery.com>
6868
6869 * remote.c (remote_read_bytes): Move code on reading from the
6870 remote stub to ...
6871 (remote_read_bytes_1): ... here. New function.
6872
6873 2014-03-22 Yao Qi <yao@codesourcery.com>
6874
6875 * ctf.c (ctf_xfer_partial): Check the return value of
6876 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6877 return TARGET_XFER_UNAVAILABLE.
6878 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6879 * target.c (target_read_live_memory): Move it to remote.c.
6880 (memory_xfer_live_readonly_partial): Likewise.
6881 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6882 * remote.c (target_read_live_memory): Moved from target.c.
6883 (memory_xfer_live_readonly_partial): Likewise.
6884 (remote_read_bytes): Factored out from
6885 memory_xfer_partial_1.
6886
6887 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6888
6889 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6890 NULL pointer.
6891
6892 2014-03-21 Pedro Alves <palves@redhat.com>
6893
6894 * infrun.c (normal_stop): Extend comment.
6895
6896 2014-03-21 Hui Zhu <hui@codesourcery.com>
6897 Pedro Alves <palves@redhat.com>
6898
6899 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6900 static buffer.
6901 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6902 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6903 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6904
6905 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6906
6907 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6908 `z' formatted output modifier.
6909
6910 2014-03-20 Tom Tromey <tromey@redhat.com>
6911 Sergio Durigan Junior <sergiodj@redhat.com>
6912
6913 * probe.c (parse_probes): Turn assert into an ordinary error.
6914 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6915 exceptions when parsing probes. Rearrange the code for clarity.
6916
6917 2014-03-20 Tom Tromey <tromey@redhat.com>
6918
6919 PR gdb/14135
6920 * top.c (execute_command): Only dispatch events if the command
6921 started the target.
6922
6923 2014-03-20 Tom Tromey <tromey@redhat.com>
6924
6925 PR cli/15718
6926 * infcall.c: Include event-top.h.
6927 (run_inferior_call): Call async_disable_stdin if needed.
6928
6929 2014-03-20 Pedro Alves <palves@redhat.com>
6930
6931 * infrun.c (prepare_to_proceed): Delete.
6932 (thread_still_needs_step_over): New function.
6933 (find_thread_needs_step_over): New function.
6934 (proceed): If the current thread needs a step-over, set its
6935 steping_over_breakpoint flag. Adjust to use
6936 find_thread_needs_step_over instead of prepare_to_proceed.
6937 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6938 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6939 breakpoint.
6940 (switch_back_to_stepped_thread): Step over breakpoints of all
6941 threads not the stepping thread, before switching back to the
6942 stepping thread.
6943
6944 2014-03-20 Pedro Alves <palves@redhat.com>
6945
6946 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6947 extern.
6948 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6949 * infrun.c (saved_singlestep_ptid)
6950 (stepping_past_singlestep_breakpoint): Delete.
6951 (resume): Remove stepping_past_singlestep_breakpoint handling.
6952 (proceed): Store the prev_pc of the stepping thread too.
6953 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6954 singlestep_pc.
6955 (enum infwait_states): Delete infwait_thread_hop_state.
6956 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6957 field.
6958 (handle_inferior_event): Adjust.
6959 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6960 handling and the thread-hop code. Before removing single-step
6961 breakpoints, check whether the thread hit a single-step breakpoint
6962 of another thread. If it did, the trap is not a random signal.
6963 (switch_back_to_stepped_thread): If the event thread hit a
6964 single-step breakpoint, unblock it before switching to the
6965 stepping thread. Handle the case of the stepped thread having
6966 advanced already.
6967 (keep_going): Handle the case of the current thread moving past a
6968 single-step breakpoint.
6969
6970 2014-03-20 Pedro Alves <palves@redhat.com>
6971
6972 PR breakpoints/7143
6973 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6974 are being stepped over.
6975 (breakpoint_address_match): Make extern.
6976 * breakpoint.h (breakpoint_address_match): New declaration.
6977 * inferior.h (stepping_past_instruction_at): New declaration.
6978 * infrun.c (struct step_over_info): New type.
6979 (step_over_info): New global.
6980 (set_step_over_info, clear_step_over_info)
6981 (stepping_past_instruction_at): New functions.
6982 (handle_inferior_event): Clear the step-over info when
6983 trap_expected is cleared.
6984 (resume): Remove now stale comment.
6985 (clear_proceed_status): Clear step-over info.
6986 (proceed): Adjust step-over handling to set or clear the step-over
6987 info instead of removing all breakpoints.
6988 (handle_signal_stop): When setting up a thread-hop, don't remove
6989 breakpoints here.
6990 (stop_stepping): Clear step-over info.
6991 (keep_going): Adjust step-over handling to set or clear step-over
6992 info and then always inserting breakpoints, instead of removing
6993 all breakpoints when stepping over one.
6994
6995 2014-03-20 Pedro Alves <palves@redhat.com>
6996
6997 * infrun.c (previous_inferior_ptid): Adjust comment.
6998 (deferred_step_ptid): Delete.
6999 (infrun_thread_ptid_changed, prepare_to_proceed)
7000 (init_wait_for_inferior): Adjust.
7001 (handle_signal_stop): Delete deferred_step_ptid handling.
7002
7003 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7004
7005 PR gdb/15358
7006 * defs.h (sync_quit_force_run): New declaration.
7007 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7008 * event-top.c (async_sigterm_handler): New declaration.
7009 (async_sigterm_token): New variable.
7010 (async_init_signals): Create also async_sigterm_token.
7011 (async_sigterm_handler): New function.
7012 (sync_quit_force_run): New variable.
7013 (handle_sigterm): Replace quit_force call by other calls.
7014 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7015
7016 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7017
7018 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7019 offset into SPE pseudo registers.
7020
7021 2014-03-18 Pedro Alves <palves@redhat.com>
7022
7023 PR gdb/13860
7024 * inferior.h (print_stop_event): Declare.
7025 * infrun.c (print_stop_event): New, factored out from ...
7026 (normal_stop): ... this.
7027 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7028 of bpstat_print/print_stack_frame.
7029
7030 2014-03-17 Tom Tromey <tromey@redhat.com>
7031
7032 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7033
7034 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7035
7036 * ada-lang.c (decode_constrained_packed_array): Perform a
7037 minimal coercion for reference with coerce_ref instead of
7038 ada_coerce_ref.
7039
7040 2014-03-17 Tristan Gingold <gingold@adacore.com>
7041
7042 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7043 (darwin_solib_create_inferior_hook): Emit a warning if version
7044 is unhandled.
7045
7046 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7047
7048 * python/py-value.c (get_field_flag): Cast flag_name argument to
7049 PyObject_GetAttrString to support Python 2.4.
7050
7051 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7052
7053 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7054 (Global Maintainers): Remove Jan Kratochvil.
7055
7056 2014-03-14 Pedro Alves <palves@redhat.com>
7057
7058 * inferior.h (terminal_ours_for_output): Rename to ...
7059 (child_terminal_ours_for_output): ... this.
7060 (terminal_save_ours): Rename to ...
7061 (child_terminal_save_ours): ... this.
7062 (terminal_ours): Rename to ...
7063 (child_terminal_ours): ... this.
7064 (terminal_inferior): Rename to ...
7065 (child_terminal_inferior): ... this.
7066 (terminal_init_inferior): Rename to ...
7067 (child_terminal_init_inferior): ... this.
7068 (terminal_init_inferior_with_pgrp): Rename to ...
7069 (child_terminal_init_inferior_with_pgrp): ... this.
7070 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7071 (child_terminal_init_with_pgrp): ... this.
7072 (terminal_save_ours): Rename to ...
7073 (child_terminal_save_ours): ... this.
7074 (terminal_init_inferior): Rename to ...
7075 (child_terminal_init): ... this. Adjust.
7076 (terminal_inferior): Rename to ...
7077 (child_terminal_inferior): ... this.
7078 (terminal_ours_for_output): Rename to ...
7079 (child_terminal_ours_for_output): ... this. Adjust.
7080 (terminal_ours): Rename to ...
7081 (child_terminal_ours): ... this.
7082 (terminal_ours_1): Rename to ...
7083 (child_terminal_ours_1): ... this. Adjust.
7084 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7085 * windows-nat.c (do_initial_windows_stuff): Adjust.
7086 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7087 (gnu_terminal_init): ... this. Adjust.
7088 (gnu_target): Adjust.
7089 * inf-child.c (inf_child_target): Adjust.
7090
7091 2014-03-13 Doug Evans <xdje42@gmail.com>
7092
7093 PR guile/16612
7094 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7095 new eq?-hashtab.
7096
7097 2014-03-13 Doug Evans <xdje42@gmail.com>
7098
7099 * value.c (record_latest_value): Call release_value_or_incref
7100 instead of release_value.
7101
7102 2014-03-13 Pedro Alves <palves@redhat.com>
7103
7104 * procfs.c (procfs_target): Don't override to_shortname,
7105 to_longname or to_doc.
7106
7107 2014-03-13 Pedro Alves <palves@redhat.com>
7108
7109 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7110 Unix in user visible strings.
7111
7112 2014-03-12 Stan Shebs <stan@codesourcery.com>
7113
7114 * gdbtypes.h: Annotate comments for Doxygen, add a page
7115 block comment with some general info.
7116
7117 2014-03-12 Pedro Alves <palves@redhat.com>
7118
7119 * infcmd.c (prepare_execution_command): New function, factored out
7120 from several execution commands.
7121 (run_command_1, continue_command, step_1, jump_command)
7122 (signal_command, until_command, advance_command, finish_command)
7123 (attach_command): Use prepare_execution_command.
7124
7125 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7126
7127 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7128 (MAX_BPTS): Define.
7129 (MAX_WPTS): Define.
7130 (struct arm_linux_thread_points): Removed.
7131 (struct arm_linux_process_info): New.
7132 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7133 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7134 (arm_linux_find_breakpoints_by_tid): Removed.
7135 (struct arch_lwp_info): New.
7136 (arm_linux_find_process_pid): New functions.
7137 (arm_linux_add_process): New functions.
7138 (arm_linux_process_info_get): New functions.
7139 (arm_linux_forget_process): New function.
7140 (arm_linux_get_debug_reg_state): New function.
7141 (struct update_registers_data): New.
7142 (update_registers_callback): New function.
7143 (arm_linux_insert_hw_breakpoint1): Updated.
7144 (arm_linux_remove_hw_breakpoint1): Updated.
7145 (arm_linux_insert_hw_breakpoint): Updated.
7146 (arm_linux_remove_hw_breakpoint): Updated.
7147 (arm_linux_insert_watchpoint): Updated.
7148 (arm_linux_remove_watchpoint): Updated.
7149 (arm_linux_new_thread): Updated.
7150 (arm_linux_prepare_to_resume): New function.
7151 (arm_linux_new_fork): New function.
7152 (_initialize_arm_linux_nat): Updated.
7153
7154 2014-03-12 Pedro Alves <palves@redhat.com>
7155
7156 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7157
7158 2014-03-12 Tom Tromey <tromey@redhat.com>
7159
7160 * inf-child.c (return_zero): New function.
7161 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7162 * aix-thread.c (aix_thread_inferior_created): New function.
7163 (aix_thread_attach): Remove.
7164 (init_aix_thread_ops): Don't set to_attach.
7165 (_initialize_aix_thread): Register inferior_created observer.
7166 * corelow.c (init_core_ops): Don't set to_attach or
7167 to_create_inferior.
7168 * exec.c (init_exec_ops): Don't set to_attach or
7169 to_create_inferior.
7170 * infcmd.c (run_command_1): Use find_run_target. Make direct
7171 target calls.
7172 (attach_command): Use find_attach_target. Make direct target
7173 calls.
7174 * record-btrace.c (init_record_btrace_ops): Don't set
7175 to_create_inferior.
7176 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7177 Remove.
7178 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7179 set to_create_inferior.
7180 * target.c (complete_target_initialization): Add assertion.
7181 (target_create_inferior): Remove.
7182 (find_default_attach, find_default_create_inferior): Remove.
7183 (find_attach_target, find_run_target): New functions.
7184 (find_default_is_async_p, find_default_can_async_p)
7185 (target_supports_non_stop, target_attach): Remove.
7186 (init_dummy_target): Don't set to_create_inferior or
7187 to_supports_non_stop.
7188 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7189 TARGET_DEFAULT_FUNC.
7190 <to_create_inferior>: Add comment.
7191 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7192 TARGET_DEFAULT_RETURN.
7193 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7194 (find_attach_target, find_run_target): Declare.
7195 (target_create_inferior): Remove.
7196 (target_has_execution_1): Update comment.
7197 (target_supports_non_stop): Remove.
7198 * target-delegates.c: Rebuild.
7199
7200 2014-03-12 Pedro Alves <palves@redhat.com>
7201
7202 * inf-child.h: Update comment to not mention Unix.
7203
7204 2014-03-12 Pedro Alves <palves@redhat.com>
7205
7206 * inf-child.c: Update top comment to not mention Unix. Add
7207 generic comment describing how this target is meant to be used.
7208 (inf_child_post_attach, inf_child_post_startup_inferior)
7209 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7210 Unix in comment.
7211
7212 2014-03-12 Pedro Alves <palves@redhat.com>
7213
7214 * nto-procfs.c: Include inf-child.h.
7215 (procfs_ops): Delete global.
7216 (procfs_can_run): Delete method.
7217 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7218 target pointer instead of referencing procfs_ops.
7219 (procfs_prepare_to_store): Delete.
7220 (init_procfs_ops): Delete function.
7221 (procfs_target): New function, based on init_procfs_ops, but
7222 inherit inf_child_target.
7223 (_initialize_procfs): Use procfs_target.
7224
7225 2014-03-12 Pedro Alves <palves@redhat.com>
7226
7227 * windows-nat.c: Include inf-child.h.
7228 (windows_ops): Delete global.
7229 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7230 methods.
7231 (init_windows_ops): Delete function.
7232 (windows_target): New function, based on init_windows_ops, but
7233 inherit inf_child_target.
7234 (_initialize_windows_nat): Use windows_target. Install x86
7235 specific target methods here.
7236
7237 2014-03-10 Doug Evans <xdje42@gmail.com>
7238
7239 * guile/guile.c (call_initialize_gdb_module): New function.
7240 (initialize_guile): Replace call to scm_init_guile with call to
7241 scm_with_guile.
7242
7243 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7244
7245 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7246 in call to TYPE_CODE macro.
7247
7248 2014-03-10 Jerome Guitton <guitton@adacore.com>
7249
7250 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7251 Resolve tagged types to full view.
7252
7253 2014-03-10 Hui Zhu <hui@codesourcery.com>
7254
7255 * target.h (target_insert_breakpoint): Remove "hardware" from its
7256 comments.
7257
7258 2014-03-07 Doug Evans <dje@google.com>
7259
7260 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7261
7262 2014-03-07 Doug Evans <dje@google.com>
7263
7264 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7265 Remove unused local comp_dir_attr. Assert exactly one of
7266 stub_comp_unit_die, stub_comp_dir is non-NULL.
7267
7268 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7269
7270 * target.h (complete_target_initialization, add_target):
7271 Add comment.
7272
7273 2014-03-07 Pedro Alves <palves@redhat.com>
7274
7275 * go32-nat.c: Include inf-child.h.
7276 (go32_ops): Delete global.
7277 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7278 Delete methods.
7279 (go32_create_inferior): Push the passed in target pointer instead
7280 of referencing go32_ops.
7281 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7282 (go32_target): New function, based on init_go32_ops, but inherit
7283 inf_child_target.
7284 (_initialize_go32_nat): Use go32_target. Move parts of
7285 init_go32_ops here.
7286
7287 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7288
7289 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7290 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7291 SYMBOL_VALUE_ADDRESS.
7292 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7293
7294 2014-03-06 Yao Qi <yao@codesourcery.com>
7295
7296 * breakpoint.c (get_tracepoint_by_number): Remove argument
7297 optional_p. All callers updated. Adjust comments. Update
7298 output message.
7299 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7300
7301 2014-03-06 Yao Qi <yao@codesourcery.com>
7302
7303 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7304 early if get_number returns zero. Use 'p' instead of 'args'.
7305
7306 2014-03-06 Yao Qi <yao@codesourcery.com>
7307
7308 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7309 message.
7310
7311 2014-03-06 Yao Qi <yao@codesourcery.com>
7312
7313 PR breakpoints/16508
7314 * tracepoint.c (check_trace_running): New function.
7315 (trace_find_command): Move code to check_trace_running and
7316 call check_trace_running.
7317 (trace_find_pc_command): Likewise.
7318 (trace_find_tracepoint_command): Likewise.
7319 (trace_find_line_command): Likewise.
7320 (trace_find_range_command): Likewise.
7321 * tracepoint.h (check_trace_running): Likewise.
7322 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7323
7324 2014-03-06 Yao Qi <yao@codesourcery.com>
7325
7326 * target.h (struct target_ops) <to_traceframe_info>: Use
7327 TARGET_DEFAULT_NORETURN (tcomplain ()).
7328 * target-delegates.c: Regenerated.
7329
7330 2014-03-05 Pedro Alves <palves@redhat.com>
7331
7332 PR gdb/16575
7333 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7334 void. Update comment.
7335 (dcache_xfer_memory): Delete.
7336 (dcache_read_memory_partial): New, based on the read bits of
7337 dcache_xfer_memory.
7338 (dcache_update): Add status parameter. Use ULONGEST for len, and
7339 adjust. Discard cache lines if the reason for the update was
7340 error.
7341 * dcache.h (dcache_xfer_memory): Delete declaration.
7342 (dcache_read_memory_partial): New declaration.
7343 (dcache_update): Update prototype.
7344 * target.c (raw_memory_xfer_partial): Update the dcache here.
7345 (memory_xfer_partial_1): Don't handle dcache writes here.
7346
7347 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7348
7349 * remote-sim.c (gdbsim_load): Add const to prog.
7350
7351 2014-03-03 Tom Tromey <tromey@redhat.com>
7352
7353 * elfread.c (probe_key): Change to bfd_data.
7354 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7355 now per-BFD, not per-objfile.
7356 * stap-probe.c (stap_probe_destroy): Update comment.
7357 (handle_stap_probe): Allocate on the per-BFD obstack.
7358
7359 2014-03-03 Tom Tromey <tromey@redhat.com>
7360
7361 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7362 * breakpoint.c (create_longjmp_master_breakpoint): Use
7363 get_probe_address.
7364 (add_location_to_breakpoint, bkpt_probe_insert_location)
7365 (bkpt_probe_remove_location): Update.
7366 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7367 * elfread.c (elf_symfile_relocate_probe): Remove.
7368 (elf_probe_fns): Update.
7369 (insert_exception_resume_breakpoint): Change type of "probe"
7370 parameter to bound_probe.
7371 (check_exception_resume): Update.
7372 * objfiles.c (objfile_relocate1): Don't relocate probes.
7373 * probe.c (bound_probe_s): New typedef.
7374 (parse_probes): Use get_probe_address. Set sal's objfile.
7375 (find_probe_by_pc): Return a bound_probe.
7376 (collect_probes): Return a VEC(bound_probe_s).
7377 (compare_probes): Update.
7378 (gen_ui_out_table_header_info): Change type of "probes"
7379 parameter. Update.
7380 (info_probes_for_ops): Update.
7381 (get_probe_address): New function.
7382 (probe_safe_evaluate_at_pc): Update.
7383 * probe.h (struct probe_ops) <get_probe_address>: New field.
7384 <set_semaphore, clear_semaphore>: Add objfile parameter.
7385 (struct probe) <objfile>: Remove field.
7386 <arch>: New field.
7387 <address>: Update comment.
7388 (struct bound_probe): New.
7389 (find_probe_by_pc): Return a bound_probe.
7390 (get_probe_address): Declare.
7391 * solib-svr4.c (struct probe_and_action) <address>: New field.
7392 (hash_probe_and_action, equal_probe_and_action): Update.
7393 (register_solib_event_probe): Add address parameter.
7394 (solib_event_probe_at): Update.
7395 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7396 get_probe_address.
7397 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7398 (stap_get_probe_address): New function.
7399 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7400 (compile_probe_arg): Update.
7401 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7402 address.
7403 (handle_stap_probe): Don't relocate the probe.
7404 (stap_relocate): Remove.
7405 (stap_gen_info_probes_table_values): Update.
7406 (stap_probe_ops): Remove stap_relocate.
7407 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7408 (debug_sym_probe_fns): Update.
7409 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7410 * symtab.c (init_sal): Use memset.
7411 * symtab.h (struct symtab_and_line) <objfile>: New field.
7412 * tracepoint.c (start_tracing, stop_tracing): Update.
7413
7414 2014-03-03 Tom Tromey <tromey@redhat.com>
7415
7416 * probe.h (parse_probes, find_probe_by_pc)
7417 (find_probes_in_objfile): Fix comments.
7418
7419 2014-03-02 Doug Evans <xdje42@gmail.com>
7420
7421 * infrun.c (handle_signal_stop): Replace test for
7422 TARGET_WAITKIND_STOPPED with an assert.
7423
7424 2014-03-02 Doug Evans <xdje42@gmail.com>
7425
7426 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7427
7428 2014-03-02 Doug Evans <xdje42@gmail.com>
7429
7430 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7431
7432 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7433
7434 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7435
7436 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7437
7438 * i386obsd-nat.c: Include "obsd-nat.h".
7439 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7440 add_target.
7441 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7442
7443 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7444
7445 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7446
7447 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7448
7449 * mips64obsd-nat.c: Include "obsd-nath".
7450 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7451 add_target
7452 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7453
7454 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7455
7456 * amd64obsd-nat.c: Include "obsd-nat,h.
7457 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7458 add_target.
7459 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7460
7461 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7462
7463 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7464 (find_overload_match): Update call to find_oload_champ.
7465 (find_oload_champ_namespace_loop): Likewise
7466
7467 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7468
7469 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7470
7471 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7472 * config/sparc/obsd64.mh: New file.
7473 * sparc64obsd-nat.c: New file.
7474
7475 * obsd-nat.h: New file.
7476 * obsd-nat.c: New file.
7477 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7478 (ALLDEPFILES): Add obsd-nat.c.
7479
7480 2014-02-28 Tom Tromey <tromey@redhat.com>
7481
7482 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7483 * cli-out.h (cli_ui_out_impl): Now const.
7484 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7485 * ui-out.c (struct ui_out) <impl>: Now const.
7486 (default_ui_out_impl): Now const.
7487 (ui_out_new): Make 'impl' parameter const.
7488 * ui-out.h (ui_out_new): Update.
7489
7490 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7491
7492 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7493
7494 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7495
7496 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7497
7498 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7499
7500 Additional PR 8882 fix.
7501 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7502
7503 2014-02-27 Pedro Alves <palves@redhat.com>
7504
7505 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7506 isn't set.
7507
7508 2014-02-27 Pedro Alves <palves@redhat.com>
7509
7510 PR 12702
7511 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7512 * nat/linux-waitpid.c: Include string.h.
7513 (status_to_str): Moved here and made extern.
7514 * nat/linux-waitpid.h (status_to_str): New declaration.
7515
7516 2014-02-27 Hui Zhu <hui@codesourcery.com>
7517
7518 PR 12702
7519 * infrun.c (ptid_match): Move ...
7520 * common/ptid.c (ptid_match): ... here.
7521 * inferior.h (ptid_match): Move ...
7522 * common/ptid.h (ptid_match): ... here.
7523
7524 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7525
7526 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7527 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7528 gdb_target_obs.
7529
7530 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7531
7532 * obsd-tdep.c (obsd_auxv_parse): New function.
7533 (obsd_init_abi): Set auxv_parse.
7534
7535 * gdbarch.sh (auxv_parse): New.
7536 * gdbarch.h: Regenerated.
7537 * gdbarch.c: Regenerated.
7538 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7539
7540 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7541
7542 * guile/scm-value.c (gdbscm_history_append_x): New function.
7543 (value_functions): Add it.
7544
7545 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7546
7547 * dwarf2read.c (attr_value_as_address): New function.
7548 (dwarf2_find_base_address, read_call_site_scope): Use
7549 attr_value_as_address in place of DW_ADDR.
7550 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7551 the low and high addresses. Slight rework of the handling
7552 of the high pc being a constant form, and limit it to
7553 DWARF verson 4 or higher.
7554 (dwarf2_record_block_ranges): Likewise.
7555 (read_partial_die): Likewise.
7556 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7557
7558 2014-02-26 Tom Tromey <tromey@redhat.com>
7559
7560 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7561
7562 2014-02-26 Tom Tromey <tromey@redhat.com>
7563
7564 * elfread.c (elf_read_minimal_symbols): Return early if
7565 minimal symbols have already been read. Add "ei" parameter.
7566 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7567 * minsyms.c (prim_record_minimal_symbol_full): Update.
7568 * objfiles.h (struct objstats) <n_minsyms>: Move...
7569 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7570 * symmisc.c (print_objfile_statistics): Update.
7571
7572 2014-02-26 Tom Tromey <tromey@redhat.com>
7573
7574 * elfread.c (elf_read_minimal_symbols): New function, from
7575 elf_symfile_read.
7576 (elf_symfile_read): Call it.
7577
7578 2014-02-26 Tom Tromey <tromey@redhat.com>
7579
7580 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7581 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7582 (lookup_minimal_symbol_solib_trampoline)
7583 (lookup_minimal_symbol_by_pc_section_1)
7584 (lookup_minimal_symbol_and_objfile): Update.
7585 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7586 Don't allocate a minimal symbol if minsyms have already been read.
7587 (build_minimal_symbol_hash_tables): Update.
7588 (install_minimal_symbols): Do nothing if minsyms already read.
7589 Use the per-BFD obstack.
7590 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7591 * objfiles.c (allocate_objfile): Call
7592 terminate_minimal_symbol_table later.
7593 (have_minimal_symbols): Update.
7594 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7595 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7596 Move from struct objfile.
7597 <minsyms_read>: New field.
7598 (struct objfile) <msymbols, minimal_symbol_count,
7599 msymbol_hash, msymbol_demangled_hash>: Move.
7600 (ALL_OBJFILE_MSYMBOLS): Update.
7601 * symfile.c (read_symbols): Set minsyms_read.
7602 (reread_symbols): Update.
7603 * symmisc.c (dump_objfile, dump_msymbols): Update.
7604
7605 2014-02-26 Tom Tromey <tromey@redhat.com>
7606
7607 * minsyms.c (msymbols_sort): Remove.
7608 * minsyms.h (msymbols_sort): Remove.
7609 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7610 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7611 * elfread.c (elf_symtab_read): Don't add section offsets.
7612 * xcoffread.c (record_minimal_symbol): Don't add section offset
7613 to minimal symbol address.
7614 * somread.c (text_offset, data_offset): Remove.
7615 (som_symtab_read): Don't add section offsets to minimal symbol
7616 addresses.
7617 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7618 Don't add section offsets to minimal symbols.
7619 * coffread.c (coff_symtab_read): Don't add section offsets
7620 to minimal symbol addresses.
7621 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7622 to minimal symbol addresses.
7623 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7624 section offset to minimal symbol addresses.
7625 * mdebugread.c (parse_partial_symbols): Don't add section
7626 offset to minimal symbol addresses.
7627 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7628 offset to minimal symbol addresses.
7629
7630 2014-02-26 Tom Tromey <tromey@redhat.com>
7631
7632 * ada-lang.c (ada_main_name): Update.
7633 (ada_add_standard_exceptions): Update.
7634 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7635 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7636 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7637 * auxv.c (ld_so_xfer_auxv): Update.
7638 * avr-tdep.c (avr_scan_prologue): Update.
7639 * ax-gdb.c (gen_var_ref): Update.
7640 * blockframe.c (get_pc_function_start)
7641 (find_pc_partial_function_gnu_ifunc): Update.
7642 * breakpoint.c (create_overlay_event_breakpoint)
7643 (create_longjmp_master_breakpoint)
7644 (create_std_terminate_master_breakpoint)
7645 (create_exception_master_breakpoint): Update.
7646 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7647 * c-valprint.c (c_val_print): Update.
7648 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7649 * common/agent.c (agent_look_up_symbols): Update.
7650 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7651 * dwarf2loc.c (call_site_to_target_addr): Update.
7652 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7653 * elfread.c (elf_gnu_ifunc_record_cache)
7654 (elf_gnu_ifunc_resolve_by_got): Update.
7655 * findvar.c (default_read_var_value): Update.
7656 * frame.c (inside_main_func): Update.
7657 * frv-tdep.c (frv_frame_this_id): Update.
7658 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7659 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7660 Update.
7661 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7662 (hppa_hpux_find_dummy_bpaddr): Update.
7663 * hppa-tdep.c (hppa_symbol_address): Update.
7664 * infcmd.c (until_next_command): Update.
7665 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7666 Update.
7667 * linespec.c (minsym_found, add_minsym): Update.
7668 * linux-nat.c (get_signo): Update.
7669 * linux-thread-db.c (inferior_has_bug): Update.
7670 * m32c-tdep.c (m32c_return_value)
7671 (m32c_m16c_address_to_pointer): Update.
7672 * m32r-tdep.c (m32r_frame_this_id): Update.
7673 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7674 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7675 * maint.c (maintenance_translate_address): Update.
7676 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7677 (frob_address): New function.
7678 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7679 frob_address. Rename parameter to "pc_in".
7680 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7681 addresses.
7682 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7683 Update.
7684 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7685 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7686 * objc-lang.c (find_objc_msgsend): Update.
7687 * objfiles.c (objfile_relocate1): Update.
7688 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7689 * p-valprint.c (pascal_val_print): Update.
7690 * parse.c (write_exp_msymbol): Update.
7691 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7692 (ppc_elfv2_skip_entrypoint): Update.
7693 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7694 * printcmd.c (build_address_symbolic, msym_info)
7695 (address_info): Update.
7696 * proc-service.c (ps_pglobal_lookup): Update.
7697 * psymtab.c (find_pc_sect_psymtab_closer)
7698 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7699 Change msymbol parameter to bound_minimal_symbol.
7700 * ravenscar-thread.c (get_running_thread_id): Update.
7701 * remote.c (remote_check_symbols): Update.
7702 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7703 address.
7704 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7705 * solib-dsbt.c (lm_base): Update.
7706 * solib-frv.c (lm_base, main_got): Update.
7707 * solib-irix.c (locate_base): Update.
7708 * solib-som.c (som_solib_create_inferior_hook)
7709 (link_map_start): Update.
7710 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7711 * solib-svr4.c (elf_locate_base, enable_break): Update.
7712 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7713 (flush_ea_cache): Update.
7714 * stabsread.c (define_symbol, scan_file_globals): Update.
7715 * stack.c (find_frame_funname): Update.
7716 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7717 (debug_qf_find_pc_sect_symtab): Update.
7718 * symfile.c (simple_read_overlay_table)
7719 (simple_overlay_update): Update.
7720 * symfile.h (struct quick_symbol_functions)
7721 <find_pc_sect_symtab>: Change type of msymbol to
7722 bound_minimal_symbol.
7723 * symmisc.c (dump_msymbols): Update.
7724 * symtab.c (find_pc_sect_symtab_via_partial)
7725 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7726 (search_symbols, print_msymbol_info): Update.
7727 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7728 (MSYMBOL_VALUE_ADDRESS): Redefine.
7729 (BMSYMBOL_VALUE_ADDRESS): New macro.
7730 * tracepoint.c (scope_info): Update.
7731 * tui/tui-disasm.c (tui_find_disassembly_address)
7732 (tui_get_begin_asm_address): Update.
7733 * valops.c (find_function_in_inferior): Update.
7734 * value.c (value_static_field, value_fn_field): Update.
7735
7736 2014-02-26 Tom Tromey <tromey@redhat.com>
7737
7738 * ada-lang.c (ada_update_initial_language): Update.
7739 (ada_main_name, ada_has_this_exception_support): Update.
7740 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7741 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7742 * arm-tdep.c (arm_skip_stub): Update.
7743 * auxv.c (ld_so_xfer_auxv): Update.
7744 * avr-tdep.c (avr_scan_prologue): Update.
7745 * ax-gdb.c (gen_var_ref): Update.
7746 * breakpoint.c (struct breakpoint_objfile_data)
7747 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7748 type to bound_minimal_symbol.
7749 (create_overlay_event_breakpoint)
7750 (create_longjmp_master_breakpoint)
7751 (create_std_terminate_master_breakpoint)
7752 (create_exception_master_breakpoint): Update.
7753 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7754 * c-exp.y (classify_name): Update.
7755 * coffread.c (coff_symfile_read): Update.
7756 * common/agent.c (agent_look_up_symbols): Update.
7757 * d-lang.c (d_main_name): Update.
7758 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7759 * dec-thread.c (enable_dec_thread): Update.
7760 * dwarf2loc.c (call_site_to_target_addr): Update.
7761 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7762 * eval.c (evaluate_subexp_standard): Update.
7763 * findvar.c (struct minsym_lookup_data) <result>: Change type
7764 to bound_minimal_symbol.
7765 <objfile>: Remove.
7766 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7767 * frame.c (inside_main_func): Update.
7768 * frv-tdep.c (frv_frame_this_id): Update.
7769 * gcore.c (call_target_sbrk): Update.
7770 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7771 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7772 Update.
7773 * go-lang.c (go_main_name): Update.
7774 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7775 (hppa_hpux_find_import_stub_for_addr): Update.
7776 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7777 Update. Change return type.
7778 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7779 type.
7780 * jit.c (jit_breakpoint_re_set_internal): Update.
7781 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7782 Update.
7783 * linux-nat.c (get_signo): Update.
7784 * linux-thread-db.c (inferior_has_bug): Update
7785 * m32c-tdep.c (m32c_return_value)
7786 (m32c_m16c_address_to_pointer): Update.
7787 * m32r-tdep.c (m32r_frame_this_id): Update.
7788 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7789 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7790 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7791 lookup_minimal_symbol. Change return type.
7792 (lookup_minimal_symbol): Remove.
7793 (lookup_bound_minimal_symbol): Update.
7794 (lookup_minimal_symbol_text): Change return type.
7795 (lookup_minimal_symbol_solib_trampoline): Change return type.
7796 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7797 (lookup_minimal_symbol_solib_trampoline): Change return type.
7798 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7799 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7800 (value_nsstring, find_imps): Update.
7801 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7802 * p-lang.c (pascal_main_name): Update.
7803 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7804 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7805 * proc-service.c (ps_pglobal_lookup): Update.
7806 * ravenscar-thread.c (get_running_thread_msymbol): Change
7807 return type.
7808 (has_ravenscar_runtime, get_running_thread_id): Update.
7809 * remote.c (remote_check_symbols): Update.
7810 * sol-thread.c (ps_pglobal_lookup): Update.
7811 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7812 * solib-dsbt.c (lm_base): Update.
7813 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7814 Update.
7815 * solib-irix.c (locate_base): Update.
7816 * solib-som.c (som_solib_create_inferior_hook)
7817 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7818 Update.
7819 * solib-spu.c (spu_enable_break): Update.
7820 * solib-svr4.c (elf_locate_base, enable_break): Update.
7821 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7822 (flush_ea_cache): Update.
7823 * stabsread.c (define_symbol): Update.
7824 * symfile.c (simple_read_overlay_table): Update.
7825 * symtab.c (find_pc_sect_line): Update.
7826 * tracepoint.c (scope_info): Update.
7827 * tui-disasm.c (tui_get_begin_asm_address): Update.
7828 * value.c (value_static_field): Update.
7829
7830 2014-02-26 Tom Tromey <tromey@redhat.com>
7831
7832 * minsyms.c (prim_record_minimal_symbol_full): Use
7833 SET_MSYMBOL_VALUE_ADDRESS.
7834 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7835 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7836 SET_MSYMBOL_VALUE_ADDRESS.
7837 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7838 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7839
7840 2014-02-26 Tom Tromey <tromey@redhat.com>
7841
7842 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7843 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7844 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7845 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7846 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7847 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7848 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7849 * ada-lang.c (ada_main_name): Update.
7850 (ada_lookup_simple_minsym): Update.
7851 (ada_make_symbol_completion_list): Update.
7852 (ada_add_standard_exceptions): Update.
7853 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7854 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7855 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7856 * arm-tdep.c (skip_prologue_function): Update.
7857 (arm_skip_stack_protector, arm_skip_stub): Update.
7858 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7859 (arm_wince_skip_main_prologue): Update.
7860 * auxv.c (ld_so_xfer_auxv): Update.
7861 * avr-tdep.c (avr_scan_prologue): Update.
7862 * ax-gdb.c (gen_var_ref): Update.
7863 * block.c (call_site_for_pc): Update.
7864 * blockframe.c (get_pc_function_start): Update.
7865 (find_pc_partial_function_gnu_ifunc): Update.
7866 * breakpoint.c (create_overlay_event_breakpoint): Update.
7867 (create_longjmp_master_breakpoint): Update.
7868 (create_std_terminate_master_breakpoint): Update.
7869 (create_exception_master_breakpoint): Update.
7870 (resolve_sal_pc): Update.
7871 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7872 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7873 Update.
7874 * c-valprint.c (c_val_print): Update.
7875 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7876 * coffread.c (coff_symfile_read): Update.
7877 * common/agent.c (agent_look_up_symbols): Update.
7878 * dbxread.c (find_stab_function_addr): Update.
7879 (end_psymtab): Update.
7880 * dwarf2loc.c (call_site_to_target_addr): Update.
7881 (func_verify_no_selftailcall): Update.
7882 (tailcall_dump): Update.
7883 (call_site_find_chain_1): Update.
7884 (dwarf_expr_reg_to_entry_parameter): Update.
7885 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7886 (elf_gnu_ifunc_resolve_by_got): Update.
7887 * f-valprint.c (info_common_command): Update.
7888 * findvar.c (read_var_value): Update.
7889 * frame.c (get_prev_frame_1): Update.
7890 (inside_main_func): Update.
7891 * frv-tdep.c (frv_skip_main_prologue): Update.
7892 (frv_frame_this_id): Update.
7893 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7894 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7895 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7896 (gnuv3_skip_trampoline): Update.
7897 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7898 (hppa64_hpux_in_solib_call_trampoline): Update.
7899 (hppa_hpux_skip_trampoline_code): Update.
7900 (hppa64_hpux_search_dummy_call_sequence): Update.
7901 (hppa_hpux_find_import_stub_for_addr): Update.
7902 (hppa_hpux_find_dummy_bpaddr): Update.
7903 * hppa-tdep.c (hppa_symbol_address)
7904 (hppa_lookup_stub_minimal_symbol): Update.
7905 * i386-tdep.c (i386_skip_main_prologue): Update.
7906 (i386_pe_skip_trampoline_code): Update.
7907 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7908 * infcall.c (get_function_name): Update.
7909 * infcmd.c (until_next_command): Update.
7910 * jit.c (jit_breakpoint_re_set_internal): Update.
7911 (jit_inferior_init): Update.
7912 * linespec.c (minsym_found): Update.
7913 (add_minsym): Update.
7914 * linux-fork.c (info_checkpoints_command): Update.
7915 * linux-nat.c (get_signo): Update.
7916 * linux-thread-db.c (inferior_has_bug): Update.
7917 * m32c-tdep.c (m32c_return_value): Update.
7918 (m32c_m16c_address_to_pointer): Update.
7919 (m32c_m16c_pointer_to_address): Update.
7920 * m32r-tdep.c (m32r_frame_this_id): Update.
7921 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7922 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7923 * maint.c (maintenance_translate_address): Update.
7924 * minsyms.c (add_minsym_to_hash_table): Update.
7925 (add_minsym_to_demangled_hash_table): Update.
7926 (msymbol_objfile): Update.
7927 (lookup_minimal_symbol): Update.
7928 (iterate_over_minimal_symbols): Update.
7929 (lookup_minimal_symbol_text): Update.
7930 (lookup_minimal_symbol_by_pc_name): Update.
7931 (lookup_minimal_symbol_solib_trampoline): Update.
7932 (lookup_minimal_symbol_by_pc_section_1): Update.
7933 (lookup_minimal_symbol_and_objfile): Update.
7934 (prim_record_minimal_symbol_full): Update.
7935 (compare_minimal_symbols): Update.
7936 (compact_minimal_symbols): Update.
7937 (build_minimal_symbol_hash_tables): Update.
7938 (install_minimal_symbols): Update.
7939 (terminate_minimal_symbol_table): Update.
7940 (find_solib_trampoline_target): Update.
7941 (minimal_symbol_upper_bound): Update.
7942 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7943 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7944 (mips_skip_pic_trampoline_code): Update.
7945 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7946 * objc-lang.c (selectors_info): Update.
7947 (classes_info): Update.
7948 (find_methods): Update.
7949 (find_imps): Update.
7950 (find_objc_msgsend): Update.
7951 * objfiles.c (objfile_relocate1): Update.
7952 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7953 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7954 * p-valprint.c (pascal_val_print): Update.
7955 * parse.c (write_exp_msymbol): Update.
7956 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7957 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7958 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7959 * printcmd.c (build_address_symbolic): Update.
7960 (sym_info): Update.
7961 (address_info): Update.
7962 * proc-service.c (ps_pglobal_lookup): Update.
7963 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7964 (find_pc_sect_psymtab): Update.
7965 * python/py-framefilter.c (py_print_frame): Update.
7966 * ravenscar-thread.c (get_running_thread_id): Update.
7967 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7968 Update.
7969 * remote.c (remote_check_symbols): Update.
7970 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7971 (rs6000_skip_trampoline_code): Update.
7972 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7973 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7974 * solib-dsbt.c (lm_base): Update.
7975 * solib-frv.c (lm_base): Update.
7976 (main_got): Update.
7977 * solib-irix.c (locate_base): Update.
7978 * solib-som.c (som_solib_create_inferior_hook): Update.
7979 (som_solib_desire_dynamic_linker_symbols): Update.
7980 (link_map_start): Update.
7981 * solib-spu.c (spu_enable_break): Update.
7982 (ocl_enable_break): Update.
7983 * solib-svr4.c (elf_locate_base): Update.
7984 (enable_break): Update.
7985 * spu-tdep.c (spu_get_overlay_table): Update.
7986 (spu_catch_start): Update.
7987 (flush_ea_cache): Update.
7988 * stabsread.c (define_symbol): Update.
7989 (scan_file_globals): Update.
7990 * stack.c (find_frame_funname): Update.
7991 (frame_info): Update.
7992 * symfile.c (simple_read_overlay_table): Update.
7993 (simple_overlay_update): Update.
7994 * symmisc.c (dump_msymbols): Update.
7995 * symtab.c (fixup_section): Update.
7996 (find_pc_sect_line): Update.
7997 (skip_prologue_sal): Update.
7998 (search_symbols): Update.
7999 (print_msymbol_info): Update.
8000 (rbreak_command): Update.
8001 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8002 (completion_list_objc_symbol): Update.
8003 (default_make_symbol_completion_list_break_on): Update.
8004 * tracepoint.c (scope_info): Update.
8005 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8006 (tui_get_begin_asm_address): Update.
8007 * valops.c (find_function_in_inferior): Update.
8008 * value.c (value_static_field): Update.
8009 (value_fn_field): Update.
8010
8011 2014-02-26 Tom Tromey <tromey@redhat.com>
8012
8013 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8014 bound minimal symbols. Move code that knows about minsym
8015 table layout...
8016 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8017 function.
8018 * minsyms.h (minimal_symbol_upper_bound): Declare.
8019 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8020 minimal_symbol_upper_bound.
8021
8022 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8023
8024 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8025 Use the type's name if its basic type does not have a tag.
8026
8027 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8028
8029 * dwarf2read.c (read_subrange_type): Add comment.
8030
8031 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8032
8033 * dwarf2read.c (update_enumeration_type_from_children): New
8034 function, mostly extracted from process_structure_scope.
8035 (read_enumeration_type): Call update_enumeration_type_from_children.
8036 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8037 and flag_flag_enum fields.
8038
8039 2014-02-26 Pedro Alves <palves@redhat.com>
8040
8041 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8042 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8043 to_xfer_partial method.
8044
8045 2014-02-26 Pedro Alves <palves@redhat.com>
8046
8047 * target.c (complete_target_initialization): Don't install
8048 default_xfer_partial as to_xfer_partial hook.
8049 (nomemory): Delete.
8050 (update_current_target): Don't INHERIT nor de_fault
8051 deprecated_xfer_memory. Delete de_fault macro.
8052 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8053 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8054 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8055 field.
8056
8057 2014-02-26 Pedro Alves <palves@redhat.com>
8058
8059 * go32-nat.c (my_write_child): New function.
8060 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8061 (go32_xfer_partial): New function.
8062 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8063 Instead install a to_xfer_partial hook.
8064
8065 2014-02-26 Pedro Alves <palves@redhat.com>
8066
8067 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8068 to_xfer_partial helper. Rewrite.
8069 (procfs_xfer_partial): New function.
8070 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8071 Install a to_xfer_partial hook.
8072
8073 2014-02-26 Pedro Alves <palves@redhat.com>
8074
8075 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8076 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8077 (m32r_xfer_partial): New function.
8078 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8079 Install a to_xfer_partial hook.
8080
8081 2014-02-26 Pedro Alves <palves@redhat.com>
8082
8083 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8084 helper.
8085 (mips_xfer_partial): New function.
8086 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8087 hook. Install a to_xfer_partial hook.
8088
8089 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8090
8091 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8092 * gdbtypes.c (create_array_type_with_stride): New function,
8093 renaming create_array_type, but with an added parameter
8094 called "bit_stride".
8095 (create_array_type): Re-implement using
8096 create_array_type_with_stride.
8097 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8098 and DW_AT_bit_stride attributes.
8099
8100 2014-02-26 Pedro Alves <palves@redhat.com>
8101
8102 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8103 task-specific breakpoints.
8104
8105 2014-02-25 Pedro Alves <palves@redhat.com>
8106
8107 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8108 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8109
8110 2014-02-25 Stan Shebs <stan@codesourcery.com>
8111
8112 * defs.h: Annotate comments for Doxygen.
8113
8114 2014-02-25 Tom Tromey <tromey@redhat.com>
8115
8116 * target.h (target_ignore): Don't declare.
8117 * target.c (target_ignore): Remove.
8118
8119 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8120
8121 PR gdb/16626
8122 * auto-load.c (auto_load_objfile_script_1): Change filename to
8123 debugfile.
8124
8125 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8126
8127 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8128 documentation. Adjust prototype to match the target_ops
8129 to_xfer_partial method. Adjust implementation accordingly.
8130
8131 2014-02-25 Hui Zhu <hui@codesourcery.com>
8132
8133 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8134 to_traceframe_info.
8135
8136 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8137
8138 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8139 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8140 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8141 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8142 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8143 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8144 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8145 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8146 New constants.
8147 (rl78_register_type): Use a data pointer type for SP and
8148 new pseudo registers mentioned above. Use a 16 bit integer
8149 type for all other register pairs.
8150 (rl78_register_name, rl78_g10_register_name): Update for
8151 new pseudo registers.
8152 (rl78_pseudo_register_read): Likewise.
8153 (rl78_pseudo_register_write): Likewise.
8154 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8155 to the newly added pseudo registers.
8156
8157 2014-02-24 Doug Evans <dje@google.com>
8158
8159 * value.c (record_latest_value): Fix comment.
8160 * printcmd.c (print_command_1): Remove code to handle -1 return from
8161 record_latest_value.
8162
8163 2014-02-24 Pedro Alves <palves@redhat.com>
8164
8165 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8166 deprecated_xfer_memory hook.
8167 (procfs_xfer_partial): Call procfs_xfer_memory instead
8168 of the deprecated_xfer_memory target hook.
8169 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8170 helper.
8171
8172 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8173
8174 * windows-nat.c (windows_xfer_shared_libraries): Return
8175 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8176 requested object is TARGET_OBJECT_LIBRARIES.
8177
8178 2014-02-24 Yao Qi <yao@codesourcery.com>
8179
8180 * target.h (enum target_xfer_status)
8181 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8182 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8183 explicitly. New.
8184 * corefile.c (memory_error_message): User updated.
8185 * exec.c (section_table_read_available_memory): Likewise.
8186 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8187 * target.c (target_xfer_status_to_string): Likewise.
8188 (raw_memory_xfer_partial): Likewise.
8189 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8190 * valops.c (read_value_memory): Likewise.
8191 * exec.h: Update comments.
8192
8193 2014-02-24 Yao Qi <yao@codesourcery.com>
8194
8195 * target.c (target_xfer_status_to_string): Rename argument err
8196 to status.
8197 * target.h (target_xfer_status_to_string): Update declaration.
8198 Replace target_xfer_error_to_string with
8199 target_xfer_status_to_string in comment.
8200
8201 2014-02-24 Yao Qi <yao@codesourcery.com>
8202
8203 * mips-linux-nat.c (super_close): Update its type.
8204 (mips_linux_close): Pass 'self' to super_close.
8205
8206 2014-02-24 Yao Qi <yao@codesourcery.com>
8207
8208 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8209 * corefile.c (read_memory): Adjusted.
8210 * target.c (target_write_with_progress): Adjusted.
8211
8212 2014-02-23 Yao Qi <yao@codesourcery.com>
8213
8214 Revert two patches:
8215
8216 2013-10-25 Yao Qi <yao@codesourcery.com>
8217
8218 * remote.c (remote_traceframe_info): Return early if
8219 traceframe is not selected.
8220
8221 2013-07-19 Yao Qi <yao@codesourcery.com>
8222
8223 * target.c (update_current_target): Change the default action
8224 of 'to_traceframe_info' from tcomplain to return_zero.
8225 * target.h (struct target_ops) <to_traceframe_info>: Add more
8226 comments.
8227
8228 2014-02-23 Yao Qi <yao@codesourcery.com>
8229
8230 * valops.c (read_value_memory): Rewrite it. Call
8231 target_xfer_partial in a loop.
8232 * exec.h (section_table_available_memory): Remove declaration.
8233 Move comments to ...
8234 * exec.c (section_table_available_memory): ... here. Make it
8235 static.
8236
8237 2014-02-23 Yao Qi <yao@codesourcery.com>
8238
8239 * exec.c (section_table_read_available_memory): New function.
8240 * exec.h (section_table_read_available_memory): Declare.
8241 * ctf.c (ctf_xfer_partial): Call
8242 section_table_read_available_memory.
8243 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8244
8245 2014-02-23 Yao Qi <yao@codesourcery.com>
8246
8247 * ctf.c (ctf_xfer_partial): Move code to ...
8248 * exec.c (exec_read_partial_read_only): ... it. New function.
8249 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8250 * tracefile.c: Include "exec.h".
8251 * exec.h (exec_read_partial_read_only): Declare.
8252
8253 2014-02-23 Yao Qi <yao@codesourcery.com>
8254
8255 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8256 (tfile_has_memory): Remove.
8257 (init_tfile_ops): Don't set fields to_has_all_memory and
8258 to_has_memory of tfile_ops.
8259 * tracefile.c (tracefile_has_all_memory): New function.
8260 (tracefile_has_memory): New function.
8261 (init_tracefile_ops): Initialize fields to_has_all_memory and
8262 to_has_memory of 'ops'.
8263
8264 2014-02-23 Yao Qi <yao@codesourcery.com>
8265
8266 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8267 (ctf_thread_alive, ctf_get_trace_status): Remove.
8268 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8269 init_tracefile_ops.
8270 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8271 (tfile_has_stack, tfile_has_registers): Remove.
8272 (tfile_thread_alive): Remove.
8273 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8274 init_tracefile_ops.
8275 * tracefile.c (tracefile_has_stack): New function.
8276 (tracefile_has_registers): New function.
8277 (tracefile_thread_alive): New function.
8278 (tracefile_get_trace_status): New function.
8279 (init_tracefile_ops): New function.
8280 * tracefile.h (init_tracefile_ops): Declare.
8281
8282 2014-02-23 Yao Qi <yao@codesourcery.com>
8283
8284 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8285 (O_LARGEFILE): Likewise.
8286 (tfile_ops): Likewise.
8287 (TRACE_HEADER_SIZE): Likewise.
8288 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8289 (cur_data_size): Likewise.
8290 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8291 (tfile_close, tfile_files_info): Likewise.
8292 (tfile_get_trace_status): Likewise.
8293 (tfile_get_tracepoint_status): Likewise.
8294 (tfile_get_traceframe_address): Likewise.
8295 (tfile_trace_find, match_blocktype): Likewise.
8296 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8297 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8298 (tfile_get_trace_state_variable_value): Likewise.
8299 (tfile_has_all_memory, tfile_has_memory): Likewise.
8300 (tfile_has_stack, tfile_has_registers): Likewise.
8301 (tfile_thread_alive, build_traceframe_info): Likewise.
8302 (tfile_traceframe_info, init_tfile_ops): Likewise.
8303 (_initialize_tracepoint): Don't call init_tfile_ops
8304 and add_target_with_completer.
8305 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8306 exec.h, completer.h and filenames.h.
8307 (_initialize_tracefile_tfile): New function.
8308
8309 2014-02-23 Yao Qi <yao@codesourcery.com>
8310
8311 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8312 tracefile-tfile.o.
8313 (HFILES_NO_SRCDIR): Add tracefile.h.
8314 * ctf.c: Include "tracefile.h".
8315 * tracefile.h: New file.
8316 * tracefile.c: New file
8317 * tracefile-tfile.c: New file.
8318 * tracepoint.c: Include "tracefile.h".
8319 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8320 (stop_reason_names): Add const.
8321 (trace_file_writer_xfree): Move it to tracefile.c.
8322 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8323 (trace_save_ctf): Likewise.
8324 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8325 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8326 (tfile_write_header, tfile_write_regblock_type): Likewise.
8327 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8328 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8329 (tfile_write_raw_data, tfile_end): Likewise.
8330 (tfile_trace_file_writer_new): Likewise.
8331 (free_uploaded_tp): Make it extern.
8332 (free_uploaded_tsv): Make it extern.
8333 (_initialize_tracepoint): Move code to register command 'tsave'
8334 to tracefile.c.
8335 * tracepoint.h (stop_reason_names): Declare.
8336 (struct trace_frame_write_ops): Move it to tracefile.h.
8337 (struct trace_file_write_ops): Likewise.
8338 (struct trace_file_writer): Likewise.
8339 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8340
8341 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8342
8343 PR gdb/16594
8344 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8345 process name.
8346 (get_cores_used_by_process): New parameter num_cores, use it.
8347 (linux_xfer_osdata_processes): Pass num_cores to it.
8348 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8349 process name.
8350
8351 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8352
8353 * target.c (memory_xfer_partial): Fix length arg in call to
8354 breakpoint_xfer_memory.
8355
8356 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8357
8358 PR tdep/16397
8359 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8360 number comes after the + or - signs. Adjust length of register
8361 name to be extracted.
8362
8363 2014-02-20 Tom Tromey <tromey@redhat.com>
8364
8365 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8366 (ada_varobj_ops): Mark "extern".
8367
8368 2014-02-20 Tom Tromey <tromey@redhat.com>
8369
8370 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8371
8372 2014-02-20 Doug Evans <xdje42@gmail.com>
8373
8374 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8375 All callers updated.
8376 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8377 All callers updated.
8378 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8379 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8380
8381 2014-02-20 lin zuojian <manjian2006@gmail.com>
8382 Joel Brobecker <brobecker@adacore.com>
8383 Doug Evans <xdje42@gmail.com>
8384
8385 PR symtab/16581
8386 * dwarf2read.c (struct die_info): New member in_process.
8387 (reset_die_in_process): New function.
8388 (process_die): Set it at the start, reset when returning.
8389 (inherit_abstract_dies): Only call process_die if origin_child_die
8390 not already being processed.
8391
8392 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8393
8394 * windows-nat.c (handle_unload_dll): Add function documentation.
8395 (do_initial_windows_stuff): Add comment explaining why we wait
8396 until after inferior initialization has finished before
8397 processing all DLLs.
8398
8399 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8400
8401 * windows-nat.c (get_module_name): Delete.
8402 (windows_get_exec_module_filename): New function, mostly
8403 inspired from get_module_name.
8404 (windows_pid_to_exec_file): Replace call to get_module_name
8405 by call to windows_get_exec_module_filename.
8406
8407 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8408
8409 * windows-nat.c (handle_load_dll): Rewrite this function's
8410 introductory comment. Remove code using get_module_name
8411 to get the DLL's name.
8412
8413 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8414
8415 * windows-nat.c (get_windows_debug_event): Ignore
8416 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8417 if windows_initialization_done == 0.
8418 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8419 Adjust implementation to always load all DLLs.
8420 (do_initial_windows_stuff): Replace call to
8421 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8422
8423 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8424
8425 * windows-nat.c (_initialize_windows_nat): Deprecate the
8426 "dll-symbols" command. Turn the "add-shared-symbol-files"
8427 and "assf" aliases into commands, and deprecate them as well.
8428 * NEWS: Add entry explaining that "dll-symbols" and its two
8429 aliases are now deprecated.
8430
8431 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8432
8433 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8434 new-line in debug string. Remove trailing spaces.
8435
8436 2014-02-19 Stan Shebs <stan@codesourcery.com>
8437
8438 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8439
8440 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8441
8442 * NEWS: Add entry for the new feature
8443 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8444 and class values.
8445
8446 2014-02-19 Stan Shebs <stan@codesourcery.com>
8447
8448 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8449
8450 2014-02-19 Pedro Alves <palves@redhat.com>
8451
8452 * common/ptid.h (struct ptid): Mention that process_stratum
8453 targets should prefer ptid.lwp.
8454
8455 2014-02-19 Pedro Alves <palves@redhat.com>
8456
8457 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8458 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8459 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8460 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8461 store remote thread ids rather than ptid.tid.
8462 (_initialize_remote): Adjust.
8463
8464 2014-02-19 Tom Tromey <tromey@redhat.com>
8465
8466 * target.c (target_get_unwinder): Rewrite.
8467 (target_get_tailcall_unwinder): Rewrite.
8468 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8469 (record_btrace_to_get_tailcall_unwinder): New function.
8470 (init_record_btrace_ops): Update.
8471 * target.h (struct target_ops) <to_get_unwinder,
8472 to_get_tailcall_unwinder>: Now function pointers. Use
8473 TARGET_DEFAULT_RETURN.
8474
8475 2014-02-19 Tom Tromey <tromey@redhat.com>
8476
8477 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8478 argument.
8479 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8480
8481 2014-02-19 Tom Tromey <tromey@redhat.com>
8482
8483 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8484 directly.
8485 * target-delegates.c: Rebuild.
8486 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8487 TARGET_DEFAULT_FUNC.
8488 * target.c (default_target_decr_pc_after_break): Rename from
8489 forward_target_decr_pc_after_break. Simplify.
8490 (target_decr_pc_after_break): Rely on delegation.
8491
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8493
8494 * target.c (update_current_target): Do not INHERIT to_doc or
8495 to_magic. Do not de_fault to_open or to_close.
8496
8497 2014-02-19 Tom Tromey <tromey@redhat.com>
8498
8499 * gcore.h (objfile_find_memory_regions): Declare.
8500 * gcore.c (objfile_find_memory_regions): No longer static. Add
8501 "self" argument.
8502 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8503 * exec.c: Include gcore.h.
8504 (exec_set_find_memory_regions): Remove.
8505 (exec_find_memory_regions): Remove.
8506 (exec_do_find_memory_regions): Remove.
8507 (init_exec_ops): Update.
8508 * defs.h (exec_set_find_memory_regions): Remove.
8509
8510 2014-02-19 Tom Tromey <tromey@redhat.com>
8511
8512 * target-delegates.c: Rebuild.
8513 * target.h (struct target_ops) <to_extra_thread_info,
8514 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8515 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8516 not 0, in TARGET_DEFAULT_RETURN.
8517
8518 2014-02-19 Tom Tromey <tromey@redhat.com>
8519
8520 * target.c (complete_target_initialization): Remove casts. Use
8521 return_zero_has_execution.
8522 (return_zero): Add "ignore" argument.
8523 (return_zero_has_execution): New function.
8524 (init_dummy_target): Remove casts. Use
8525 return_zero_has_execution.
8526
8527 2014-02-19 Tom Tromey <tromey@redhat.com>
8528
8529 * target.c (update_current_target): Update comments. Do not
8530 INHERIT to_stratum.
8531
8532 2014-02-19 Tom Tromey <tromey@redhat.com>
8533
8534 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8535 needed.
8536 * corelow.c (core_read_description): Delegate when needed.
8537 * remote.c (remote_read_description): Delegate when needed.
8538 * target-delegates.c: Rebuild.
8539 * target.c (target_read_description): Rewrite.
8540 * target.h (struct target_ops) <to_read_description>: Update
8541 comment. Use TARGET_DEFAULT_RETURN.
8542
8543 2014-02-19 Tom Tromey <tromey@redhat.com>
8544
8545 * target-delegates.c: Rebuild.
8546 * target.c (update_current_target): Don't inherit or default
8547 to_can_run.
8548 (find_default_run_target): Check against delegate_can_run.
8549 * target.h (struct target_ops) <to_can_run>: Use
8550 TARGET_DEFAULT_RETURN.
8551
8552 2014-02-19 Tom Tromey <tromey@redhat.com>
8553
8554 * target-delegates.c: Rebuild.
8555 * target.c (target_disconnect): Unconditionally delegate.
8556 * target.h (struct target_ops) <to_disconnect>: Use
8557 TARGET_DEFAULT_NORETURN.
8558
8559 2014-02-19 Tom Tromey <tromey@redhat.com>
8560
8561 * record.c (record_stop): Unconditionally delegate.
8562 * target-delegates.c: Rebuild.
8563 * target.c (target_stop_recording): Unconditionally delegate.
8564 * target.h (struct target_ops) <to_stop_recording>: Use
8565 TARGET_DEFAULT_IGNORE.
8566
8567 2014-02-19 Tom Tromey <tromey@redhat.com>
8568
8569 * target-delegates.c: Rebuild.
8570 * target.c (target_enable_btrace): Unconditionally delegate.
8571 * target.h (struct target_ops) <to_enable_btrace>: Use
8572 TARGET_DEFAULT_NORETURN.
8573
8574 2014-02-19 Tom Tromey <tromey@redhat.com>
8575
8576 * target-delegates.c: Rebuild.
8577 * target.c (target_read_btrace): Unconditionally delegate.
8578 * target.h (struct target_ops) <to_read_btrace>: Use
8579 TARGET_DEFAULT_NORETURN.
8580
8581 2014-02-19 Tom Tromey <tromey@redhat.com>
8582
8583 * target-delegates.c: Rebuild.
8584 * target.c (target_teardown_btrace): Unconditionally delegate.
8585 * target.h (struct target_ops) <to_teardown_btrace>: Use
8586 TARGET_DEFAULT_NORETURN.
8587
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * target-delegates.c: Rebuild.
8591 * target.c (target_disable_btrace): Unconditionally delegate.
8592 * target.h (struct target_ops) <to_disable_btrace>: Use
8593 TARGET_DEFAULT_NORETURN.
8594
8595 2014-02-19 Tom Tromey <tromey@redhat.com>
8596
8597 * target-delegates.c: Rebuild.
8598 * target.c (default_search_memory): New function.
8599 (simple_search_memory): Update comment.
8600 (target_search_memory): Unconditionally delegate.
8601 * target.h (struct target_ops) <to_search_memory>: Use
8602 TARGET_DEFAULT_FUNC.
8603
8604 2014-02-19 Tom Tromey <tromey@redhat.com>
8605
8606 * auxv.c (default_auxv_parse): No longer static.
8607 (target_auxv_parse): Unconditionally delegate.
8608 * auxv.h (default_auxv_parse): Declare.
8609 * target-delegates.c: Rebuild.
8610 * target.c: Include auxv.h.
8611 * target.h (struct target_ops) <to_auxv_parse>: Use
8612 TARGET_DEFAULT_FUNC.
8613
8614 2014-02-19 Tom Tromey <tromey@redhat.com>
8615
8616 * target-delegates.c: Rebuild.
8617 * target.c (target_memory_map): Unconditionally delegate.
8618 * target.h (struct target_ops) <to_memory_map>: Use
8619 TARGET_DEFAULT_RETURN.
8620
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8622
8623 * target-delegates.c: Rebuild.
8624 * target.c (target_thread_alive): Unconditionally delegate.
8625 * target.h (struct target_ops) <to_thread_alive>: Use
8626 TARGET_DEFAULT_RETURN.
8627
8628 2014-02-19 Tom Tromey <tromey@redhat.com>
8629
8630 * target-delegates.c: Rebuild.
8631 * target.c (target_save_record): Unconditionally delegate.
8632 * target.h (struct target_ops) <to_save_record>: Use
8633 TARGET_DEFAULT_NORETURN.
8634
8635 2014-02-19 Tom Tromey <tromey@redhat.com>
8636
8637 * target-delegates.c: Rebuild.
8638 * target.c (target_delete_record): Unconditionally delegate.
8639 * target.h (struct target_ops) <to_delete_record>: Use
8640 TARGET_DEFAULT_NORETURN.
8641
8642 2014-02-19 Tom Tromey <tromey@redhat.com>
8643
8644 * target-delegates.c: Rebuild.
8645 * target.c (target_record_is_replaying): Unconditionally
8646 delegate.
8647 * target.h (struct target_ops) <to_record_is_replaying>: Use
8648 TARGET_DEFAULT_RETURN.
8649
8650 2014-02-19 Tom Tromey <tromey@redhat.com>
8651
8652 * target-delegates.c: Rebuild.
8653 * target.c (target_goto_record_begin): Unconditionally delegate.
8654 * target.h (struct target_ops) <to_goto_record_begin>: 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_goto_record_end): Unconditionally delegate.
8661 * target.h (struct target_ops) <to_goto_record_end>: Use
8662 TARGET_DEFAULT_NORETURN.
8663
8664 2014-02-19 Tom Tromey <tromey@redhat.com>
8665
8666 * target-delegates.c: Rebuild.
8667 * target.c (target_goto_record): Unconditionally delegate.
8668 * target.h (struct target_ops) <to_goto_record>: Use
8669 TARGET_DEFAULT_NORETURN.
8670
8671 2014-02-19 Tom Tromey <tromey@redhat.com>
8672
8673 * target-delegates.c: Rebuild.
8674 * target.c (target_insn_history): Unconditionally delegate.
8675 * target.h (struct target_ops) <to_insn_history>: Use
8676 TARGET_DEFAULT_NORETURN.
8677
8678 2014-02-19 Tom Tromey <tromey@redhat.com>
8679
8680 * target-delegates.c: Rebuild.
8681 * target.c (target_insn_history_from): Unconditionally delegate.
8682 * target.h (struct target_ops) <to_insn_history_from>: Use
8683 TARGET_DEFAULT_NORETURN.
8684
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8686
8687 * target-delegates.c: Rebuild.
8688 * target.c (target_insn_history_range): Unconditionally delegate.
8689 * target.h (struct target_ops) <to_insn_history_range>: Use
8690 TARGET_DEFAULT_NORETURN.
8691
8692 2014-02-19 Tom Tromey <tromey@redhat.com>
8693
8694 * target-delegates.c: Rebuild.
8695 * target.c (target_call_history): Unconditionally delegate.
8696 * target.h (struct target_ops) <to_call_history>: Use
8697 TARGET_DEFAULT_NORETURN.
8698
8699 2014-02-19 Tom Tromey <tromey@redhat.com>
8700
8701 * target-delegates.c: Rebuild.
8702 * target.c (target_call_history_from): Unconditionally delegate.
8703 * target.h (struct target_ops) <to_call_history_from>: Use
8704 TARGET_DEFAULT_NORETURN.
8705
8706 2014-02-19 Tom Tromey <tromey@redhat.com>
8707
8708 * target-delegates.c: Rebuild.
8709 * target.c (target_call_history_range): Unconditionally delegate.
8710 * target.h (struct target_ops) <to_call_history_range>: Use
8711 TARGET_DEFAULT_NORETURN.
8712
8713 2014-02-19 Tom Tromey <tromey@redhat.com>
8714
8715 * target-delegates.c: Rebuild.
8716 * target.c (target_verify_memory): Unconditionally delegate.
8717 * target.h (struct target_ops) <to_verify_memory>: Use
8718 TARGET_DEFAULT_NORETURN.
8719
8720 2014-02-19 Tom Tromey <tromey@redhat.com>
8721
8722 * target-delegates.c: Rebuild.
8723 * target.c (target_core_of_thread): Unconditionally delegate.
8724 * target.h (struct target_ops) <to_core_of_thread>: Use
8725 TARGET_DEFAULT_RETURN.
8726
8727 2014-02-19 Tom Tromey <tromey@redhat.com>
8728
8729 * target-delegates.c: Rebuild.
8730 * target.c (target_flash_done): Unconditionally delegate.
8731 * target.h (struct target_ops) <to_flash_done>: Use
8732 TARGET_DEFAULT_NORETURN.
8733
8734 2014-02-19 Tom Tromey <tromey@redhat.com>
8735
8736 * target-delegates.c: Rebuild.
8737 * target.c (target_flash_erase): Unconditionally delegate.
8738 * target.h (struct target_ops) <to_flash_erase>: Use
8739 TARGET_DEFAULT_NORETURN.
8740
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8742
8743 * target-delegates.c: Rebuild.
8744 * target.c (target_get_section_table): Unconditionally delegate.
8745 * target.h (struct target_ops) <to_get_section_table>: Use
8746 TARGET_DEFAULT_RETURN.
8747
8748 2014-02-19 Tom Tromey <tromey@redhat.com>
8749
8750 * target-delegates.c: Rebuild.
8751 * target.c (target_pid_to_str): Unconditionally delegate.
8752 (init_dummy_target): Don't initialize to_pid_to_str.
8753 (default_pid_to_str): Rename from dummy_pid_to_str.
8754 * target.h (struct target_ops) <to_pid_to_str>: Use
8755 TARGET_DEFAULT_FUNC.
8756
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target-delegates.c: Rebuild.
8760 * target.c (target_find_new_threads): Unconditionally delegate.
8761 * target.h (struct target_ops) <to_find_new_threads>: Use
8762 TARGET_DEFAULT_RETURN.
8763
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8765
8766 * target-delegates.c: Rebuild.
8767 * target.c (target_program_signals): Unconditionally delegate.
8768 * target.h (struct target_ops) <to_program_signals>: Use
8769 TARGET_DEFAULT_IGNORE.
8770
8771 2014-02-19 Tom Tromey <tromey@redhat.com>
8772
8773 * target-delegates.c: Rebuild.
8774 * target.c (target_pass_signals): Unconditionally delegate.
8775 * target.h (struct target_ops) <to_pass_signals>: Use
8776 TARGET_DEFAULT_IGNORE.
8777
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8779
8780 * target-delegates.c: Rebuild.
8781 * target.c (default_mourn_inferior): New function.
8782 (target_mourn_inferior): Unconditionally delegate.
8783 * target.h (struct target_ops) <to_mourn_inferior>: Use
8784 TARGET_DEFAULT_FUNC.
8785
8786 2014-02-19 Tom Tromey <tromey@redhat.com>
8787
8788 * target-delegates.c: Rebuild.
8789 * target.c (default_follow_fork): New function.
8790 (target_follow_fork): Unconditionally delegate.
8791 * target.h (struct target_ops) <to_follow_fork>: Use
8792 TARGET_DEFAULT_FUNC.
8793
8794 2014-02-19 Tom Tromey <tromey@redhat.com>
8795
8796 * target-delegates.c: Rebuild.
8797 * target.c (target_kill): Unconditionally delegate.
8798 * target.h (struct target_ops) <to_kill>: Use
8799 TARGET_DEFAULT_NORETURN.
8800
8801 2014-02-19 Tom Tromey <tromey@redhat.com>
8802
8803 * target-delegates.c: Rebuild.
8804 * target.c (target_masked_watch_num_registers): Unconditionally
8805 delegate.
8806 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8807 Use TARGET_DEFAULT_RETURN.
8808
8809 2014-02-19 Tom Tromey <tromey@redhat.com>
8810
8811 * target-delegates.c: Rebuild.
8812 * target.c (target_remove_mask_watchpoint): Unconditionally
8813 delegate.
8814 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8815 TARGET_DEFAULT_RETURN.
8816
8817 2014-02-19 Tom Tromey <tromey@redhat.com>
8818
8819 * target-delegates.c: Rebuild.
8820 * target.c (target_insert_mask_watchpoint): Unconditionally
8821 delegate.
8822 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8823 TARGET_DEFAULT_RETURN.
8824
8825 2014-02-19 Tom Tromey <tromey@redhat.com>
8826
8827 * target-delegates.c: Rebuild.
8828 * target.c (target_ranged_break_num_registers): Unconditionally
8829 delegate.
8830 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8831 Use TARGET_DEFAULT_RETURN.
8832
8833 2014-02-19 Tom Tromey <tromey@redhat.com>
8834
8835 * target-delegates.c: Rebuild.
8836 * target.c (target_fetch_registers): Unconditionally delegate.
8837 * target.h (struct target_ops) <to_fetch_registers>: Use
8838 TARGET_DEFAULT_NORETURN.
8839
8840 2014-02-19 Tom Tromey <tromey@redhat.com>
8841
8842 * target-delegates.c: Rebuild.
8843 * target.c (update_current_target): Don't inherit or default
8844 to_stop.
8845 * target.h (struct target_ops) <to_stop>: Use
8846 TARGET_DEFAULT_IGNORE.
8847
8848 2014-02-19 Tom Tromey <tromey@redhat.com>
8849
8850 * target-delegates.c: Rebuild.
8851 * target.c (update_current_target): Don't inherit or default
8852 to_can_run_breakpoint_commands.
8853 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8854 Use TARGET_DEFAULT_RETURN.
8855
8856 2014-02-19 Tom Tromey <tromey@redhat.com>
8857
8858 * target-delegates.c: Rebuild.
8859 * target.c (update_current_target): Don't inherit or default
8860 to_supports_evaluation_of_breakpoint_conditions.
8861 * target.h (struct target_ops)
8862 <to_supports_evaluation_of_breakpoint_conditions>: Use
8863 TARGET_DEFAULT_RETURN.
8864
8865 2014-02-19 Tom Tromey <tromey@redhat.com>
8866
8867 * target-delegates.c: Rebuild.
8868 * target.c (update_current_target): Don't inherit or default
8869 to_augmented_libraries_svr4_read.
8870 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8871 Use TARGET_DEFAULT_RETURN.
8872
8873 2014-02-19 Tom Tromey <tromey@redhat.com>
8874
8875 * target-delegates.c: Rebuild.
8876 * target.c (update_current_target): Don't inherit or default
8877 to_can_use_agent.
8878 * target.h (struct target_ops) <to_can_use_agent>: Use
8879 TARGET_DEFAULT_RETURN.
8880
8881 2014-02-19 Tom Tromey <tromey@redhat.com>
8882
8883 * target-delegates.c: Rebuild.
8884 * target.c (update_current_target): Don't inherit or default
8885 to_use_agent.
8886 * target.h (struct target_ops) <to_use_agent>: Use
8887 TARGET_DEFAULT_NORETURN.
8888
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8890
8891 * target-delegates.c: Rebuild.
8892 * target.c (update_current_target): Don't inherit or default
8893 to_traceframe_info.
8894 (return_null): Remove.
8895 * target.h (struct target_ops) <to_traceframe_info>: Use
8896 TARGET_DEFAULT_RETURN.
8897
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8899
8900 * target-delegates.c: Rebuild.
8901 * target.c (update_current_target): Don't inherit or default
8902 to_static_tracepoint_markers_by_strid.
8903 * target.h (struct target_ops)
8904 <to_static_tracepoint_markers_by_strid>: Use
8905 TARGET_DEFAULT_NORETURN.
8906
8907 2014-02-19 Tom Tromey <tromey@redhat.com>
8908
8909 * target-delegates.c: Rebuild.
8910 * target.c (update_current_target): Don't inherit or default
8911 to_static_tracepoint_marker_at.
8912 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8913 Use TARGET_DEFAULT_RETURN.
8914
8915 2014-02-19 Tom Tromey <tromey@redhat.com>
8916
8917 * target-delegates.c: Rebuild.
8918 * target.c (update_current_target): Don't inherit or default
8919 to_set_permissions.
8920 * target.h (struct target_ops) <to_set_permissions>: Use
8921 TARGET_DEFAULT_IGNORE.
8922
8923 2014-02-19 Tom Tromey <tromey@redhat.com>
8924
8925 * target-delegates.c: Rebuild.
8926 * target.c (update_current_target): Don't inherit or default
8927 to_get_tib_address.
8928 * target.h (struct target_ops) <to_get_tib_address>: Use
8929 TARGET_DEFAULT_NORETURN.
8930
8931 2014-02-19 Tom Tromey <tromey@redhat.com>
8932
8933 * target-delegates.c: Rebuild.
8934 * target.c (update_current_target): Don't inherit or default
8935 to_set_trace_notes.
8936 * target.h (struct target_ops) <to_set_trace_notes>: Use
8937 TARGET_DEFAULT_RETURN.
8938
8939 2014-02-19 Tom Tromey <tromey@redhat.com>
8940
8941 * target-delegates.c: Rebuild.
8942 * target.c (update_current_target): Don't initialize
8943 to_set_trace_buffer_size.
8944 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8945 TARGET_DEFAULT_IGNORE.
8946
8947 2014-02-19 Tom Tromey <tromey@redhat.com>
8948
8949 * target-delegates.c: Rebuild.
8950 * target.c (update_current_target): Don't inherit or default
8951 to_set_circular_trace_buffer.
8952 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8953 TARGET_DEFAULT_IGNORE.
8954
8955 2014-02-19 Tom Tromey <tromey@redhat.com>
8956
8957 * target-delegates.c: Rebuild.
8958 * target.c (update_current_target): Don't inherit or default
8959 to_set_disconnected_tracing.
8960 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8961 TARGET_DEFAULT_IGNORE.
8962
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8964
8965 * target-delegates.c: Rebuild.
8966 * target.c (update_current_target): Don't inherit or default
8967 to_get_min_fast_tracepoint_insn_len.
8968 (return_minus_one): Remove.
8969 * target.h (struct target_ops)
8970 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8971
8972 2014-02-19 Tom Tromey <tromey@redhat.com>
8973
8974 * target-delegates.c: Rebuild.
8975 * target.c (update_current_target): Don't inherit or default
8976 to_get_raw_trace_data.
8977 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8978 TARGET_DEFAULT_NORETURN.
8979
8980 2014-02-19 Tom Tromey <tromey@redhat.com>
8981
8982 * target-delegates.c: Rebuild.
8983 * target.c (update_current_target): Don't inherit or default
8984 to_upload_trace_state_variables.
8985 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8986 Use TARGET_DEFAULT_RETURN.
8987
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8989
8990 * target-delegates.c: Rebuild.
8991 * target.c (update_current_target): Don't inherit or default
8992 to_upload_tracepoints.
8993 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8994 TARGET_DEFAULT_RETURN.
8995
8996 2014-02-19 Tom Tromey <tromey@redhat.com>
8997
8998 * target-delegates.c: Rebuild.
8999 * target.c (update_current_target): Don't inherit or default
9000 to_save_trace_data.
9001 * target.h (struct target_ops) <to_save_trace_data>: Use
9002 TARGET_DEFAULT_NORETURN.
9003
9004 2014-02-19 Tom Tromey <tromey@redhat.com>
9005
9006 * target-delegates.c: Rebuild.
9007 * target.c (update_current_target): Don't inherit or default
9008 to_get_trace_state_variable_value.
9009 * target.h (struct target_ops)
9010 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9011
9012 2014-02-19 Tom Tromey <tromey@redhat.com>
9013
9014 * target-delegates.c: Rebuild.
9015 * target.c (update_current_target): Don't inherit or default
9016 to_trace_find.
9017 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9018
9019 2014-02-19 Tom Tromey <tromey@redhat.com>
9020
9021 * target-delegates.c: Rebuild.
9022 * target.c (update_current_target): Don't inherit or default
9023 to_trace_stop.
9024 * target.h (struct target_ops) <to_trace_stop>: Use
9025 TARGET_DEFAULT_NORETURN.
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_get_tracepoint_status.
9032 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9033 TARGET_DEFAULT_NORETURN.
9034
9035 2014-02-19 Tom Tromey <tromey@redhat.com>
9036
9037 * target-delegates.c: Rebuild.
9038 * target.c (update_current_target): Don't inherit or default
9039 to_get_trace_status.
9040 * target.h (struct target_ops) <to_get_trace_status>: Use
9041 TARGET_DEFAULT_RETURN.
9042
9043 2014-02-19 Tom Tromey <tromey@redhat.com>
9044
9045 * target-delegates.c: Rebuild.
9046 * target.c (update_current_target): Don't inherit or default
9047 to_trace_start.
9048 * target.h (struct target_ops) <to_trace_start>: Use
9049 TARGET_DEFAULT_NORETURN.
9050
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * target-delegates.c: Rebuild.
9054 * target.c (update_current_target): Don't inherit or default
9055 to_trace_set_readonly_regions.
9056 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9057 Use TARGET_DEFAULT_NORETURN.
9058
9059 2014-02-19 Tom Tromey <tromey@redhat.com>
9060
9061 * target-delegates.c: Rebuild.
9062 * target.c (update_current_target): Don't inherit or default
9063 to_disable_tracepoint.
9064 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9065 TARGET_DEFAULT_NORETURN.
9066
9067 2014-02-19 Tom Tromey <tromey@redhat.com>
9068
9069 * target-delegates.c: Rebuild.
9070 * target.c (update_current_target): Don't inherit or default
9071 to_enable_tracepoint.
9072 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9073 TARGET_DEFAULT_NORETURN.
9074
9075 2014-02-19 Tom Tromey <tromey@redhat.com>
9076
9077 * target-delegates.c: Rebuild.
9078 * target.c (update_current_target): Don't inherit or default
9079 to_download_trace_state_variable.
9080 * target.h (struct target_ops) <to_download_trace_state_variable>:
9081 Use TARGET_DEFAULT_NORETURN.
9082
9083 2014-02-19 Tom Tromey <tromey@redhat.com>
9084
9085 * target-delegates.c: Rebuild.
9086 * target.c (update_current_target): Don't inherit or default
9087 to_can_download_tracepoint.
9088 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9089 TARGET_DEFAULT_RETURN.
9090
9091 2014-02-19 Tom Tromey <tromey@redhat.com>
9092
9093 * target-delegates.c: Rebuild.
9094 * target.c (update_current_target): Don't inherit or default
9095 to_download_tracepoint.
9096 * target.h (struct target_ops) <to_download_tracepoint>: Use
9097 TARGET_DEFAULT_NORETURN.
9098
9099 2014-02-19 Tom Tromey <tromey@redhat.com>
9100
9101 * target-delegates.c: Rebuild.
9102 * target.c (update_current_target): Don't inherit or default
9103 to_trace_init.
9104 * target.h (struct target_ops) <to_trace_init>: Use
9105 TARGET_DEFAULT_RETURN.
9106
9107 2014-02-19 Tom Tromey <tromey@redhat.com>
9108
9109 * target-delegates.c: Rebuild.
9110 * target.c (update_current_target): Don't inherit or default
9111 to_supports_string_tracing.
9112 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9113 TARGET_DEFAULT_RETURN.
9114
9115 2014-02-19 Tom Tromey <tromey@redhat.com>
9116
9117 * target-delegates.c: Rebuild.
9118 * target.c (update_current_target): Don't inherit or default
9119 to_supports_enable_disable_tracepoint.
9120 * target.h (struct target_ops)
9121 <to_supports_enable_disable_tracepoint>: Use
9122 TARGET_DEFAULT_RETURN.
9123
9124 2014-02-19 Tom Tromey <tromey@redhat.com>
9125
9126 * target-delegates.c: Rebuild.
9127 * target.c (update_current_target): Don't inherit or default
9128 to_supports_multi_process.
9129 * target.h (struct target_ops) <to_supports_multi_process>: Use
9130 TARGET_DEFAULT_RETURN.
9131
9132 2014-02-19 Tom Tromey <tromey@redhat.com>
9133
9134 * target-delegates.c: Rebuild.
9135 * target.c (update_current_target): Don't inherit or default
9136 to_get_ada_task_ptid.
9137 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9138 TARGET_DEFAULT_FUNC.
9139
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9141
9142 * target-delegates.c: Rebuild.
9143 * target.c (update_current_target): Don't inherit or default
9144 to_thread_architecture.
9145 * target.h (struct target_ops) <to_thread_architecture>: Use
9146 TARGET_DEFAULT_FUNC.
9147
9148 2014-02-19 Tom Tromey <tromey@redhat.com>
9149
9150 * target-delegates.c: Rebuild.
9151 * target.c (update_current_target): Don't inherit or default
9152 to_execution_direction.
9153 * target.h (struct target_ops) <to_execution_direction>: Use
9154 TARGET_DEFAULT_FUNC.
9155
9156 2014-02-19 Tom Tromey <tromey@redhat.com>
9157
9158 * target-delegates.c: Rebuild.
9159 * target.c (update_current_target): Don't inherit or default
9160 to_can_execute_reverse.
9161 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9162 TARGET_DEFAULT_RETURN.
9163 (target_can_execute_reverse): Unconditionally delegate.
9164
9165 2014-02-19 Tom Tromey <tromey@redhat.com>
9166
9167 * target-delegates.c: Rebuild.
9168 * target.c (update_current_target): Don't inherit or default
9169 to_goto_bookmark.
9170 (dummy_goto_bookmark): Remove.
9171 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9172 * target.h (struct target_ops) <to_goto_bookmark>: Use
9173 TARGET_DEFAULT_NORETURN.
9174
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9176
9177 * target-delegates.c: Rebuild.
9178 * target.c (update_current_target): Don't inherit or default
9179 to_get_bookmark.
9180 (dummy_get_bookmark): Remove.
9181 (init_dummy_target): Don't inherit or default to_get_bookmark.
9182 * target.h (struct target_ops) <to_get_bookmark>: Use
9183 TARGET_DEFAULT_NORETURN
9184
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9186
9187 * target-delegates.c: Rebuild.
9188 * target.c (update_current_target): Don't inherit or default
9189 to_make_corefile_notes.
9190 (init_dummy_target): Don't initialize to_make_corefile_notes.
9191 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9192 TARGET_DEFAULT_FUNC.
9193
9194 2014-02-19 Tom Tromey <tromey@redhat.com>
9195
9196 * target-delegates.c: Rebuild.
9197 * target.c (update_current_target): Don't inherit or default
9198 to_find_memory_regions.
9199 (init_dummy_target): Don't initialize to_find_memory_regions.
9200 * target.h (struct target_ops) <to_find_memory_regions>: Use
9201 TARGET_DEFAULT_FUNC.
9202
9203 2014-02-19 Tom Tromey <tromey@redhat.com>
9204
9205 * target-delegates.c: Rebuild.
9206 * target.c (update_current_target): Don't inherit or default
9207 to_log_command.
9208 * target.h (struct target_ops) <to_log_command>: Use
9209 TARGET_DEFAULT_IGNORE.
9210 (target_log_command): Unconditionally delegate.
9211
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9213
9214 * target-delegates.c: Rebuild.
9215 * target.c (update_current_target): Don't inherit or default
9216 to_pid_to_exec_file.
9217 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9218 TARGET_DEFAULT_RETURN.
9219
9220 2014-02-19 Tom Tromey <tromey@redhat.com>
9221
9222 * target-delegates.c: Rebuild.
9223 * target.c (update_current_target): Don't inherit or default
9224 to_thread_name.
9225 (target_thread_name): Unconditionally delegate.
9226 * target.h (struct target_ops) <to_thread_name>: Use
9227 TARGET_DEFAULT_RETURN.
9228
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * target-delegates.c: Rebuild.
9232 * target.c (update_current_target): Don't inherit or default
9233 to_extra_thread_info.
9234 * target.h (struct target_ops) <to_extra_thread_info>: Use
9235 TARGET_DEFAULT_RETURN.
9236
9237 2014-02-19 Tom Tromey <tromey@redhat.com>
9238
9239 * target-delegates.c: Rebuild.
9240 * target.c (update_current_target): Don't inherit or default
9241 to_has_exited.
9242 * target.h (struct target_ops) <to_has_exited>: Use
9243 TARGET_DEFAULT_RETURN..
9244
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target-delegates.c: Rebuild.
9248 * target.c (update_current_target): Don't inherit or default
9249 to_set_syscall_catchpoint.
9250 (return_one): Remove.
9251 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9252 TARGET_DEFAULT_RETURN.
9253
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9255
9256 * target-delegates.c: Rebuild.
9257 * target.c (update_current_target): Don't inherit or default
9258 to_insert_exec_catchpoint.
9259 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9260 TARGET_DEFAULT_RETURN.
9261
9262 2014-01-08 Tom Tromey <tromey@redhat.com>
9263
9264 * target-delegates.c: Rebuild.
9265 * target.c (update_current_target): Don't inherit or default
9266 to_insert_exec_catchpoint.
9267 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9268 TARGET_DEFAULT_RETURN.
9269
9270 2014-02-19 Tom Tromey <tromey@redhat.com>
9271
9272 * target-delegates.c: Rebuild.
9273 * target.c (update_current_target): Don't inherit or default
9274 to_remove_vfork_catchpoint.
9275 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9276 TARGET_DEFAULT_RETURN.
9277
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9279
9280 * target-delegates.c: Rebuild.
9281 * target.c (update_current_target): Don't inherit or default
9282 to_insert_vfork_catchpoint.
9283 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9284 TARGET_DEFAULT_RETURN.
9285
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9287
9288 * target-delegates.c: Rebuild.
9289 * target.c (update_current_target): Don't inherit or default
9290 to_remove_fork_catchpoint.
9291 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9292 TARGET_DEFAULT_RETURN.
9293
9294 2014-02-19 Tom Tromey <tromey@redhat.com>
9295
9296 * target-delegates.c: Rebuild.
9297 * target.c (update_current_target): Don't inherit or default
9298 to_insert_fork_catchpoint.
9299 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9300 TARGET_DEFAULT_RETURN.
9301
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9303
9304 * target-delegates.c: Rebuild.
9305 * target.c (update_current_target): Don't inherit or default
9306 to_post_startup_inferior.
9307 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9308 TARGET_DEFAULT_IGNORE.
9309
9310 2014-02-19 Tom Tromey <tromey@redhat.com>
9311
9312 * target-delegates.c: Rebuild.
9313 * target.c (update_current_target): Don't inherit or default
9314 to_load.
9315 * target.h (struct target_ops) <to_load>: Use
9316 TARGET_DEFAULT_NORETURN.
9317
9318 2014-02-19 Tom Tromey <tromey@redhat.com>
9319
9320 * target-delegates.c: Rebuild.
9321 * target.c (update_current_target): Don't inherit or default
9322 to_terminal_info.
9323 * target.h (struct target_ops) <to_terminal_info>: Use
9324 TARGET_DEFAULT_FUNC.
9325
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9327
9328 * target-delegates.c: Rebuild.
9329 * target.c (update_current_target): Don't inherit or default
9330 to_terminal_save_ours.
9331 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9332 TARGET_DEFAULT_IGNORE.
9333
9334 2014-02-19 Tom Tromey <tromey@redhat.com>
9335
9336 * target-delegates.c: Rebuild.
9337 * target.c (update_current_target): Don't inherit or default
9338 to_terminal_ours.
9339 * target.h (struct target_ops) <to_terminal_ours>: Use
9340 TARGET_DEFAULT_IGNORE.
9341
9342 2014-02-19 Tom Tromey <tromey@redhat.com>
9343
9344 * target-delegates.c: Rebuild.
9345 * target.c (update_current_target): Don't inherit or default
9346 to_terminal_ours_for_output.
9347 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9348 TARGET_DEFAULT_IGNORE.
9349
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * target-delegates.c: Rebuild.
9353 * target.c (update_current_target): Don't inherit or default
9354 to_terminal_inferior.
9355 * target.h (struct target_ops) <to_terminal_inferior>: Use
9356 TARGET_DEFAULT_IGNORE.
9357
9358 2014-02-19 Tom Tromey <tromey@redhat.com>
9359
9360 * target-delegates.c: Rebuild.
9361 * target.c (update_current_target): Don't inherit or default
9362 to_terminal_init.
9363 * target.h (struct target_ops) <to_terminal_init>: Use
9364 TARGET_DEFAULT_IGNORE.
9365
9366 2014-02-19 Tom Tromey <tromey@redhat.com>
9367
9368 * target-delegates.c: Rebuild.
9369 * target.c (update_current_target): Don't inherit or default
9370 to_can_accel_watchpoint_condition.
9371 * target.h (struct target_ops)
9372 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9373
9374 2014-02-19 Tom Tromey <tromey@redhat.com>
9375
9376 * target-delegates.c: Rebuild.
9377 * target.c (update_current_target): Don't inherit or default
9378 to_region_ok_for_hw_watchpoint.
9379 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9380 Use TARGET_DEFAULT_FUNC.
9381
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * target-delegates.c: Rebuild.
9385 * target.c (update_current_target): Don't inherit or default
9386 to_watchpoint_addr_within_range.
9387 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9388 Use TARGET_DEFAULT_FUNC.
9389
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9391
9392 * target-delegates.c: Rebuild.
9393 * target.c (update_current_target): Don't inherit or default
9394 to_remove_watchpoint.
9395 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9396 TARGET_DEFAULT_NORETURN.
9397
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9399
9400 * target-delegates.c: Rebuild.
9401 * target.c (update_current_target): Don't inherit or default
9402 to_insert_watchpoint.
9403 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9404 TARGET_DEFAULT_RETURN.
9405
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9407
9408 * target-delegates.c: Rebuild.
9409 * target.c (update_current_target): Don't inherit or default
9410 to_remove_hw_breakpoint.
9411 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9412 TARGET_DEFAULT_RETURN.
9413
9414 2014-02-19 Tom Tromey <tromey@redhat.com>
9415
9416 * target-delegates.c: Rebuild.
9417 * target.c (update_current_target): Don't inherit or default
9418 to_insert_hw_breakpoint.
9419 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9420 TARGET_DEFAULT_RETURN.
9421
9422 2014-02-19 Tom Tromey <tromey@redhat.com>
9423
9424 * target-delegates.c: Rebuild.
9425 * target.c (update_current_target): Don't inherit or default
9426 to_can_use_hw_breakpoint.
9427 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9428 TARGET_DEFAULT_RETURN.
9429
9430 2014-02-19 Tom Tromey <tromey@redhat.com>
9431
9432 * target-delegates.c: Rebuild.
9433 * target.c (update_current_target): Don't inherit or default
9434 to_files_info.
9435 * target.h (struct target_ops) <to_files_info>: Use
9436 TARGET_DEFAULT_IGNORE.
9437
9438 2014-02-19 Tom Tromey <tromey@redhat.com>
9439
9440 * target-delegates.c: Rebuild.
9441 * target.c (update_current_target): Don't inherit or default
9442 to_store.
9443 * target.h (struct target_ops) <to_store>: Use
9444 TARGET_DEFAULT_NORETURN.
9445
9446 2014-02-19 Tom Tromey <tromey@redhat.com>
9447
9448 * target-delegates.c: Rebuild.
9449 * target.c (update_current_target): Don't inherit or default
9450 to_post_attach.
9451 * target.h (struct target_ops) <to_post_attach>: Use
9452 TARGET_DEFAULT_IGNORE.
9453
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9455
9456 * target-delegates.c: Rebuild.
9457 * target.c (update_current_target): Don't inherit or default
9458 to_rcmd.
9459 (default_rcmd): New function.
9460 (do_monitor_command): Unconditionally delegate.
9461 * target.h (struct target_ops) <to_rmcd>: Use
9462 TARGET_DEFAULT_FUNC.
9463
9464 2014-02-19 Tom Tromey <tromey@redhat.com>
9465
9466 * target-delegates.c: Rebuild.
9467 * target.c (init_dummy_target): Don't initialize to_attach.
9468 (target_attach): Unconditionally delegate.
9469 * target.h (struct target_ops) <to_attach>: Use
9470 TARGET_DEFAULT_FUNC.
9471
9472 2014-02-19 Tom Tromey <tromey@redhat.com>
9473
9474 * target-delegates.c: Rebuild.
9475 * target.c (target_detach): Unconditionally delegate.
9476 (init_dummy_target): Don't initialize to_detach.
9477 * target.h (struct target_ops) <to_detach>: Use
9478 TARGET_DEFAULT_IGNORE.
9479
9480 2014-02-19 Tom Tromey <tromey@redhat.com>
9481
9482 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9483 Add argument.
9484 (target_augmented_libraries_svr4_read): Add argument.
9485 * target.c (update_current_target): Update.
9486 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9487 argument.
9488
9489 2014-02-19 Tom Tromey <tromey@redhat.com>
9490
9491 * target.h (struct target_ops) <to_call_history_range>: Add
9492 argument.
9493 * target.c (target_call_history_range): Add argument.
9494 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9495 argument.
9496 (record_btrace_call_history_from): Update.
9497
9498 2014-02-19 Tom Tromey <tromey@redhat.com>
9499
9500 * target.h (struct target_ops) <to_call_history_from>: Add
9501 argument.
9502 * target.c (target_call_history_from): Add argument.
9503 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9504 argument.
9505
9506 2014-02-19 Tom Tromey <tromey@redhat.com>
9507
9508 * target.h (struct target_ops) <to_call_history>: Add argument.
9509 * target.c (target_call_history): Add argument.
9510 * record-btrace.c (record_btrace_call_history): Add 'self'
9511 argument.
9512
9513 2014-02-19 Tom Tromey <tromey@redhat.com>
9514
9515 * target.h (struct target_ops) <to_insn_history_range>: Add
9516 argument.
9517 * target.c (target_insn_history_range): Add argument.
9518 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9519 argument.
9520 (record_btrace_insn_history_from): Update.
9521
9522 2014-02-19 Tom Tromey <tromey@redhat.com>
9523
9524 * target.h (struct target_ops) <to_insn_history_from>: Add
9525 argument.
9526 * target.c (target_insn_history_from): Add argument.
9527 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9528 argument.
9529
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9531
9532 * target.h (struct target_ops) <to_insn_history>: Add argument.
9533 * target.c (target_insn_history): Add argument.
9534 * record-btrace.c (record_btrace_insn_history): Add 'self'
9535 argument.
9536
9537 2014-02-19 Tom Tromey <tromey@redhat.com>
9538
9539 * target.h (struct target_ops) <to_goto_record>: Add argument.
9540 * target.c (target_goto_record): Add argument.
9541 * record-full.c (record_full_goto): Add 'self' argument.
9542 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9543
9544 2014-02-19 Tom Tromey <tromey@redhat.com>
9545
9546 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9547 * target.c (target_goto_record_end): Add argument.
9548 * record-full.c (record_full_goto_end): Add 'self' argument.
9549 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9550
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9552
9553 * target.h (struct target_ops) <to_goto_record_begin>: Add
9554 argument.
9555 * target.c (target_goto_record_begin): Add argument.
9556 * record-full.c (record_full_goto_begin): Add 'self' argument.
9557 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9558 argument.
9559
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9561
9562 * target.h (struct target_ops) <to_record_is_replaying>: Add
9563 argument.
9564 * target.c (target_record_is_replaying): Add argument.
9565 * record-full.c (record_full_is_replaying): Add 'self' argument.
9566 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9567 argument.
9568 (record_btrace_xfer_partial, record_btrace_store_registers)
9569 (record_btrace_prepare_to_store, record_btrace_resume)
9570 (record_btrace_wait, record_btrace_decr_pc_after_break)
9571 (record_btrace_find_new_threads, record_btrace_thread_alive):
9572 Update.
9573
9574 2014-02-19 Tom Tromey <tromey@redhat.com>
9575
9576 * target.h (struct target_ops) <to_delete_record>: Add argument.
9577 * target.c (target_delete_record): Add argument.
9578 * record-full.c (record_full_delete): Add 'self' argument.
9579
9580 2014-02-19 Tom Tromey <tromey@redhat.com>
9581
9582 * target.h (struct target_ops) <to_save_record>: Add argument.
9583 * target.c (target_save_record): Add argument.
9584 * record-full.c (record_full_save): Add 'self' argument.
9585 (record_full_save): Add 'self' argument.
9586
9587 2014-02-19 Tom Tromey <tromey@redhat.com>
9588
9589 * target.h (struct target_ops) <to_info_record>: Add argument.
9590 * target.c (target_info_record): Add argument.
9591 * record.c (info_record_command): Add argument.
9592 * record-full.c (record_full_info): Add 'self' argument.
9593 * record-btrace.c (record_btrace_info): Add 'self' argument.
9594
9595 2014-02-19 Tom Tromey <tromey@redhat.com>
9596
9597 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9598 * target.c (target_stop_recording): Add argument.
9599 * record.c (record_stop): Add argument.
9600 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9601 argument.
9602
9603 2014-02-19 Tom Tromey <tromey@redhat.com>
9604
9605 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9606 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9607 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9608 argument.
9609 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9610 (_initialize_amd64_linux_nat): Use it.
9611 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9612 (_initialize_i386_linux_nat): Use it.
9613
9614 2014-02-19 Tom Tromey <tromey@redhat.com>
9615
9616 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9617 * target.c (target_teardown_btrace): Add argument.
9618 * remote.c (remote_teardown_btrace): Add 'self' argument.
9619 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9620 argument.
9621 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9622 argument.
9623
9624 2014-02-19 Tom Tromey <tromey@redhat.com>
9625
9626 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9627 * target.c (target_disable_btrace): Add argument.
9628 * remote.c (remote_disable_btrace): Add 'self' argument.
9629 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9630 argument.
9631 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9632 argument.
9633
9634 2014-02-19 Tom Tromey <tromey@redhat.com>
9635
9636 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9637 * target.c (target_enable_btrace): Add argument.
9638 * remote.c (remote_enable_btrace): Add 'self' argument.
9639 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9640 argument.
9641 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9642 argument.
9643
9644 2014-02-19 Tom Tromey <tromey@redhat.com>
9645
9646 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9647 (target_can_use_agent): Add argument.
9648 * target.c (update_current_target): Update.
9649 * remote.c (remote_can_use_agent): Add 'self' argument.
9650 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9651
9652 2014-02-19 Tom Tromey <tromey@redhat.com>
9653
9654 * target.h (struct target_ops) <to_use_agent>: Add argument.
9655 (target_use_agent): Add argument.
9656 * target.c (update_current_target): Update.
9657 * remote.c (remote_use_agent): Add 'self' argument.
9658 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9659
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9661
9662 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9663 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9664 (target_traceframe_info): Add argument.
9665 * target.c (update_current_target): Update.
9666 * remote.c (remote_traceframe_info): Add 'self' argument.
9667 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9668
9669 2014-02-19 Tom Tromey <tromey@redhat.com>
9670
9671 * target.h (target_static_tracepoint_markers_by_strid): Add
9672 argument.
9673 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9674 'self' argument.
9675 * target.c (update_current_target): Update.
9676 * remote.c (struct target_ops)
9677 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9678 * linux-nat.c (struct target_ops)
9679 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9680
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9682
9683 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9684 Add argument.
9685 (target_static_tracepoint_marker_at): Add argument.
9686 * target.c (update_current_target): Update.
9687 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9688 argument.
9689
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9691
9692 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9693 (target_set_permissions): Add argument.
9694 * target.c (update_current_target): Update.
9695 * remote.c (remote_set_permissions): Add 'self' argument.
9696 (remote_start_remote): Update.
9697
9698 2014-02-19 Tom Tromey <tromey@redhat.com>
9699
9700 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9701 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9702 (target_get_tib_address): Add argument.
9703 * target.c (update_current_target): Update.
9704 * remote.c (remote_get_tib_address): Add 'self' argument.
9705
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9709 (target_set_trace_notes): Add argument.
9710 * target.c (update_current_target): Update.
9711 * remote.c (remote_set_trace_notes): Add 'self' argument.
9712
9713 2014-02-19 Tom Tromey <tromey@redhat.com>
9714
9715 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9716 argument.
9717 (target_set_trace_buffer_size): Add argument.
9718 * target.c (update_current_target): Update.
9719 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9720
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9722
9723 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9724 argument.
9725 (target_set_circular_trace_buffer): Add argument.
9726 * target.c (update_current_target): Update.
9727 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9728 argument.
9729
9730 2014-02-19 Tom Tromey <tromey@redhat.com>
9731
9732 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9733 argument.
9734 (target_set_disconnected_tracing): Add argument.
9735 * target.c (update_current_target): Update.
9736 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9737
9738 2014-02-19 Tom Tromey <tromey@redhat.com>
9739
9740 * target.h (struct target_ops)
9741 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9742 (target_get_min_fast_tracepoint_insn_len): Add argument.
9743 * target.c (update_current_target): Update.
9744 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9745 argument.
9746
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9748
9749 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9750 argument.
9751 (target_get_raw_trace_data): Add argument.
9752 * target.c (update_current_target): Update.
9753 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9754
9755 2014-02-19 Tom Tromey <tromey@redhat.com>
9756
9757 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9758 Add argument.
9759 (target_upload_trace_state_variables): Add argument.
9760 * target.c (update_current_target): Update.
9761 * remote.c (remote_upload_trace_state_variables): Add 'self'
9762 argument.
9763 (remote_start_remote): Update.
9764
9765 2014-02-19 Tom Tromey <tromey@redhat.com>
9766
9767 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9768 argument.
9769 (target_upload_tracepoints): Add argument.
9770 * target.c (update_current_target): Update.
9771 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9772 (remote_start_remote): Update.
9773
9774 2014-02-19 Tom Tromey <tromey@redhat.com>
9775
9776 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9777 (target_save_trace_data): Add argument.
9778 * target.c (update_current_target): Update.
9779 * remote.c (remote_save_trace_data): Add 'self' argument.
9780
9781 2014-02-19 Tom Tromey <tromey@redhat.com>
9782
9783 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9784 argument.
9785 * target.h (struct target_ops)
9786 <to_get_trace_state_variable_value>: Add argument.
9787 (target_get_trace_state_variable_value): Add argument.
9788 * target.c (update_current_target): Update.
9789 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9790 argument.
9791 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9792
9793 2014-02-19 Tom Tromey <tromey@redhat.com>
9794
9795 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9796 * target.h (struct target_ops) <to_trace_find>: Add argument.
9797 (target_trace_find): Add argument.
9798 * target.c (update_current_target): Update.
9799 * remote.c (remote_trace_find): Add 'self' argument.
9800 * ctf.c (ctf_trace_find): Add 'self' argument.
9801
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9803
9804 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9805 (target_trace_stop): Add argument.
9806 * target.c (update_current_target): Update.
9807 * remote.c (remote_trace_stop): Add 'self' argument.
9808
9809 2014-02-19 Tom Tromey <tromey@redhat.com>
9810
9811 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9812 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9813 argument.
9814 (target_get_tracepoint_status): Add argument.
9815 * target.c (update_current_target): Update.
9816 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9817
9818 2014-02-19 Tom Tromey <tromey@redhat.com>
9819
9820 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9821 * target.h (struct target_ops) <to_get_trace_status>: Add
9822 argument.
9823 (target_get_trace_status): Add argument.
9824 * target.c (update_current_target): Update.
9825 * remote.c (remote_get_trace_status): Add 'self' argument.
9826 (remote_start_remote, remote_can_download_tracepoint): Update.
9827 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9828
9829 2014-02-19 Tom Tromey <tromey@redhat.com>
9830
9831 * target.h (struct target_ops) <to_trace_start>: Add argument.
9832 (target_trace_start): Add argument.
9833 * target.c (update_current_target): Update.
9834 * remote.c (remote_trace_start): Add 'self' argument.
9835
9836 2014-02-19 Tom Tromey <tromey@redhat.com>
9837
9838 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9839 Add argument.
9840 (target_trace_set_readonly_regions): Add argument.
9841 * target.c (update_current_target): Update.
9842 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9843 argument.
9844
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9846
9847 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9848 argument.
9849 (target_disable_tracepoint): Add argument.
9850 * target.c (update_current_target): Update.
9851 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9852
9853 2014-02-19 Tom Tromey <tromey@redhat.com>
9854
9855 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9856 argument.
9857 (target_enable_tracepoint): Add argument.
9858 * target.c (update_current_target): Update.
9859 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9860
9861 2014-02-19 Tom Tromey <tromey@redhat.com>
9862
9863 * target.h (struct target_ops) <to_download_trace_state_variable>:
9864 Add argument.
9865 (target_download_trace_state_variable): Add argument.
9866 * target.c (update_current_target): Update.
9867 * remote.c (remote_download_trace_state_variable): Add 'self'
9868 argument.
9869
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9873 argument.
9874 (target_can_download_tracepoint): Add argument.
9875 * target.c (update_current_target): Update.
9876 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9877
9878 2014-02-19 Tom Tromey <tromey@redhat.com>
9879
9880 * target.h (struct target_ops) <to_download_tracepoint>: Add
9881 argument.
9882 (target_download_tracepoint): Add argument.
9883 * target.c (update_current_target): Update.
9884 * remote.c (remote_download_tracepoint): Add 'self' argument.
9885
9886 2014-02-19 Tom Tromey <tromey@redhat.com>
9887
9888 * target.h (struct target_ops) <to_trace_init>: Add argument.
9889 (target_trace_init): Add argument.
9890 * target.c (update_current_target): Update.
9891 * remote.c (remote_trace_init): Add 'self' argument.
9892
9893 2014-02-19 Tom Tromey <tromey@redhat.com>
9894
9895 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9896 * target.c (target_fileio_readlink): Add argument.
9897 * remote.c (remote_hostio_readlink): Add 'self' argument.
9898 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9899
9900 2014-02-19 Tom Tromey <tromey@redhat.com>
9901
9902 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9903 * target.c (target_fileio_unlink): Add argument.
9904 * remote.c (remote_hostio_unlink): Add 'self' argument.
9905 (remote_file_delete): Update.
9906 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9907
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9909
9910 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9911 * target.c (target_fileio_close): Add argument.
9912 * remote.c (remote_hostio_close): Add 'self' argument.
9913 (remote_hostio_close_cleanup): Update.
9914 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9915 Update.
9916 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9917
9918 2014-02-19 Tom Tromey <tromey@redhat.com>
9919
9920 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9921 * target.c (target_fileio_pread): Add argument.
9922 * remote.c (remote_hostio_pread): Add 'self' argument.
9923 (remote_bfd_iovec_pread, remote_file_get): Update.
9924 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9925
9926 2014-02-19 Tom Tromey <tromey@redhat.com>
9927
9928 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9929 * target.c (target_fileio_pwrite): Add argument.
9930 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9931 (remote_file_put): Update.
9932 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9933
9934 2014-02-19 Tom Tromey <tromey@redhat.com>
9935
9936 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9937 * target.c (target_fileio_open): Add argument.
9938 * remote.c (remote_hostio_open): Add 'self' argument.
9939 (remote_bfd_iovec_open): Add 'self' argument.
9940 (remote_file_put): Add 'self' argument.
9941 (remote_file_get): Add 'self' argument.
9942 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9943
9944 2014-02-19 Tom Tromey <tromey@redhat.com>
9945
9946 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9947 Add argument.
9948 (target_can_run_breakpoint_commands): Add argument.
9949 * target.c (update_current_target): Update.
9950 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9951 argument.
9952 (remote_insert_breakpoint): Add 'self' argument.
9953 (remote_insert_hw_breakpoint): Add 'self' argument.
9954 (remote_can_run_breakpoint_commands): Add 'self' argument.
9955
9956 2014-02-19 Tom Tromey <tromey@redhat.com>
9957
9958 * target.h (struct target_ops)
9959 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9960 (target_supports_evaluation_of_breakpoint_conditions): Add
9961 argument.
9962 * target.c (update_current_target): Update.
9963 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9964 argument.
9965 (remote_insert_breakpoint): Add 'self' argument.
9966 (remote_insert_hw_breakpoint): Add 'self' argument.
9967 (remote_supports_cond_breakpoints): Add 'self' argument.
9968
9969 2014-02-19 Tom Tromey <tromey@redhat.com>
9970
9971 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9972 argument.
9973 (target_supports_string_tracing): Add argument.
9974 * target.c (update_current_target): Update.
9975 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9976
9977 2014-02-19 Tom Tromey <tromey@redhat.com>
9978
9979 * target.h (struct target_ops)
9980 <to_supports_disable_randomization>: Add argument.
9981 * target.c (find_default_supports_disable_randomization): Add
9982 argument.
9983 (target_supports_disable_randomization): Add argument.
9984 (find_default_supports_disable_randomization): Add 'self'
9985 argument.
9986 * remote.c (extended_remote_supports_disable_randomization): Add
9987 'self' argument.
9988 (remote_supports_disable_randomization): Add 'self' argument.
9989 (extended_remote_create_inferior): Update.
9990 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9991 'self' argument.
9992
9993 2014-02-19 Tom Tromey <tromey@redhat.com>
9994
9995 * target.h (struct target_ops)
9996 <to_supports_enable_disable_tracepoint>: Add argument.
9997 (target_supports_enable_disable_tracepoint): Add argument.
9998 * target.c (update_current_target): Update.
9999 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10000 argument.
10001
10002 2014-02-19 Tom Tromey <tromey@redhat.com>
10003
10004 * target.h (struct target_ops) <to_supports_multi_process>: Add
10005 argument.
10006 (target_supports_multi_process): Add argument.
10007 * target.c (update_current_target): Update.
10008 * remote.c (remote_supports_multi_process): Add 'self' argument.
10009 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10010 argument.
10011 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10012 argument.
10013
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target.h (struct target_ops) <to_execution_direction>: Add
10017 argument.
10018 (target_execution_direction): Add argument.
10019 * target.c (default_execution_direction): Add 'self' argument.
10020 * record-full.c (record_full_execution_direction): Add 'self'
10021 argument.
10022
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10024
10025 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10026 argument.
10027 (target_can_execute_reverse): Add argument.
10028 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10029 * record-full.c (record_full_can_execute_reverse): Add 'self'
10030 argument.
10031 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10032 argument.
10033
10034 2014-02-19 Tom Tromey <tromey@redhat.com>
10035
10036 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10037 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10038 argument.
10039 (target_get_ada_task_ptid): Add argument.
10040 * target.c (update_current_target): Update.
10041 (default_get_ada_task_ptid): Add 'self' argument.
10042 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10043 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10044 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10045 argument.
10046 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10047 argument.
10048 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10049 argument.
10050 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10051 argument.
10052 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10053 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10054 argument.
10055
10056 2014-02-19 Tom Tromey <tromey@redhat.com>
10057
10058 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10059 (target_goto_bookmark): Add argument.
10060 * target.c (dummy_goto_bookmark): Add 'self' argument.
10061 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10062
10063 2014-02-19 Tom Tromey <tromey@redhat.com>
10064
10065 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10066 (target_get_bookmark): Add argument.
10067 * target.c (dummy_get_bookmark): Add 'self' argument.
10068 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10069
10070 2014-02-19 Tom Tromey <tromey@redhat.com>
10071
10072 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10073 argument.
10074 (target_make_corefile_notes): Add argument.
10075 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10076 * procfs.c (procfs_make_note_section): Add 'self' argument.
10077 (procfs_make_note_section): Add 'self' argument.
10078 (procfs_make_note_section): Add 'self' argument.
10079 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10080 argument.
10081 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10082 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10083 * exec.c (exec_make_note_section): Add 'self' argument.
10084 (exec_make_note_section): Add 'self' argument.
10085
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10087
10088 * target.h (struct target_ops) <to_find_memory_regions>: Add
10089 argument.
10090 (target_find_memory_regions): Add argument.
10091 * target.c (dummy_find_memory_regions): Add 'self' argument.
10092 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10093 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10094 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10095 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10096 * exec. (exec_do_find_memory_regions): New global.
10097 (exec_set_find_memory_regions): Rewrite.
10098 (exec_find_memory_regions): New function.
10099 (init_exec_ops): Use exec_find_memory_regions.
10100
10101 2014-02-19 Tom Tromey <tromey@redhat.com>
10102
10103 * target.h (struct target_ops) <to_supports_non_stop>: Add
10104 argument.
10105 * target.c (find_default_supports_non_stop): Add argument.
10106 (target_supports_non_stop): Add argument.
10107 (find_default_supports_non_stop): Add 'self' argument.
10108 * remote.c (remote_supports_non_stop): Add 'self' argument.
10109 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10110
10111 2014-02-19 Tom Tromey <tromey@redhat.com>
10112
10113 * target.h (struct target_ops) <to_log_command>: Add argument.
10114 (target_log_command): Add argument.
10115 * serial.h (serial_log_command): Add 'self' argument.
10116 * serial.c (serial_log_command): Add 'self' argument.
10117
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10119
10120 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10121 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10122 argument.
10123 (target_pid_to_exec_file): Add argument.
10124 * target.c (debug_to_pid_to_exec_file): Add argument.
10125 (update_current_target): Update.
10126 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10127 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10128 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10129 (linux_handle_extended_wait): Update.
10130 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10131 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10132 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10133 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10134
10135 2014-02-19 Tom Tromey <tromey@redhat.com>
10136
10137 * target.h (struct target_ops) <to_rcmd>: Add argument.
10138 (target_rcmd): Add argument.
10139 * target.c (debug_to_rcmd): Add argument.
10140 (update_current_target, do_monitor_command): Update.
10141 * remote.c (remote_rcmd): Add 'self' argument.
10142 * monitor.c (monitor_rcmd): Add 'self' argument.
10143
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10145
10146 * windows-nat.c (windows_stop): Add 'self' argument.
10147 * target.h (struct target_ops) <to_stop>: Add argument.
10148 * target.c (target_stop): Add argument.
10149 (debug_to_stop): Add argument.
10150 (update_current_target): Update.
10151 * remote.c (remote_stop): Add 'self' argument.
10152 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10153 (gdbsim_cntrl_c): Update.
10154 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10155 * procfs.c (procfs_stop): Add 'self' argument.
10156 * nto-procfs.c (procfs_stop): Add 'self' argument.
10157 * monitor.c (monitor_stop): Add 'self' argument.
10158 (monitor_open): Update.
10159 * linux-nat.c (linux_nat_stop): Add argument.
10160 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10161 * gnu-nat.c (gnu_stop): Add 'self' argument.
10162 * darwin-nat.c (darwin_stop): Add 'self' argument.
10163
10164 2014-02-19 Tom Tromey <tromey@redhat.com>
10165
10166 * target.h (struct target_ops) <to_thread_name>: Add argument.
10167 * target.c (target_thread_name): Add argument.
10168 (update_current_target): Update.
10169 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10170
10171 2014-02-19 Tom Tromey <tromey@redhat.com>
10172
10173 * target.h (struct target_ops) <to_extra_thread_info>: Add
10174 argument.
10175 (target_extra_thread_info): Add argument.
10176 * target.c (update_current_target): Update.
10177 * remote.c (remote_threads_extra_info): Add 'self' argument.
10178 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10179 argument.
10180 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10181 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10182 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10183 argument.
10184 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10185 argument.
10186 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10187 argument.
10188 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10189 argument.
10190
10191 2014-02-19 Tom Tromey <tromey@redhat.com>
10192
10193 * target.h (struct target_ops) <to_program_signals>: Add argument.
10194 * target.c (target_program_signals): Add argument.
10195 * remote.c (remote_program_signals): Add 'self' argument.
10196
10197 2014-02-19 Tom Tromey <tromey@redhat.com>
10198
10199 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10200 * target.c (target_pass_signals): Add argument.
10201 * remote.c (remote_pass_signals): Add 'self' argument.
10202 (remote_start_remote): Update.
10203 * procfs.c (procfs_pass_signals): Add 'self' argument.
10204 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10205 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10206 (linux_nat_create_inferior, linux_nat_attach): Update.
10207
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10209
10210 * windows-nat.c (windows_can_run): Add 'self' argument.
10211 * target.h (struct target_ops) <to_can_run>: Add argument.
10212 (target_can_run): Add argument.
10213 * target.c (debug_to_can_run): Add argument.
10214 (update_current_target): Update.
10215 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10216 * inf-child.c (inf_child_can_run): Add 'self' argument.
10217 * go32-nat.c (go32_can_run): Add 'self' argument.
10218
10219 2014-02-19 Tom Tromey <tromey@redhat.com>
10220
10221 * target.h (struct target_ops) <to_has_exited>: Add argument.
10222 (target_has_exited): Add argument.
10223 * target.c (debug_to_has_exited): Add argument.
10224 (update_current_target): Update.
10225
10226 2014-02-19 Tom Tromey <tromey@redhat.com>
10227
10228 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10229 argument.
10230 (target_set_syscall_catchpoint): Add argument.
10231 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10232 argument.
10233 * target.c (update_current_target): Update.
10234
10235 2014-02-19 Tom Tromey <tromey@redhat.com>
10236
10237 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10238 argument.
10239 (target_remove_exec_catchpoint): Add argument.
10240 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10241 (update_current_target): Update.
10242 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10243 argument.
10244
10245 2014-02-19 Tom Tromey <tromey@redhat.com>
10246
10247 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10248 argument.
10249 (target_insert_exec_catchpoint): Add argument.
10250 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10251 (update_current_target): Update.
10252 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10253 argument.
10254
10255 2014-02-19 Tom Tromey <tromey@redhat.com>
10256
10257 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10258 argument.
10259 (target_remove_vfork_catchpoint): Add argument.
10260 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10261 (update_current_target): Update.
10262 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10263 argument.
10264
10265 2014-02-19 Tom Tromey <tromey@redhat.com>
10266
10267 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10268 argument.
10269 (target_insert_vfork_catchpoint): Add argument.
10270 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10271 (update_current_target): Update.
10272 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10273 argument.
10274
10275 2014-02-19 Tom Tromey <tromey@redhat.com>
10276
10277 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10278 argument.
10279 (target_remove_fork_catchpoint): Add argument.
10280 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10281 (update_current_target): Update.
10282 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10283 argument.
10284
10285 2014-02-19 Tom Tromey <tromey@redhat.com>
10286
10287 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10288 argument.
10289 (target_insert_fork_catchpoint): Add argument.
10290 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10291 (update_current_target): Update.
10292 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10293 argument.
10294
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10296
10297 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10298 argument.
10299 (target_post_startup_inferior): Add argument.
10300 * target.c (debug_to_post_startup_inferior): Add argument.
10301 (update_current_target): Update.
10302 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10303 argument.
10304 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10305 argument.
10306 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10307 argument.
10308 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10309 argument.
10310 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10311 'self' argument.
10312 (super_post_startup_inferior): Likewise.
10313 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10314 'self' argument.
10315 (super_post_startup_inferior): Likewise.
10316 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10317 Add 'self' argument.
10318 (super_post_startup_inferior): Likewise.
10319
10320 2014-02-19 Tom Tromey <tromey@redhat.com>
10321
10322 * target.h (struct target_ops) <to_load>: Add argument.
10323 * target.c (target_load): Add argument.
10324 (debug_to_load): Add argument.
10325 (update_current_target): Update.
10326 * remote.c (remote_load): Add 'self' argument.
10327 * remote-sim.c (gdbsim_load): Add 'self' argument.
10328 * remote-mips.c (mips_load): Add 'self' argument.
10329 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10330 * monitor.c (monitor_load): Add 'self' argument.
10331 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10332
10333 2014-02-19 Tom Tromey <tromey@redhat.com>
10334
10335 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10336 (target_terminal_info): Add argument.
10337 * target.c (debug_to_terminal_info): Add argument.
10338 (default_terminal_info): Likewise.
10339 * inflow.c (child_terminal_info): Add 'self' argument.
10340 * inferior.h (child_terminal_info): Add 'self' argument.
10341 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10342
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10344
10345 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10346 argument.
10347 (target_terminal_save_ours): Add argument.
10348 * target.c (debug_to_terminal_save_ours): Add argument.
10349 (update_current_target): Update.
10350 * inflow.c (terminal_save_ours): Add 'self' argument.
10351 * inferior.h (terminal_save_ours): Add 'self' argument.
10352
10353 2014-02-19 Tom Tromey <tromey@redhat.com>
10354
10355 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10356 (target_terminal_ours): Add argument.
10357 * target.c (debug_to_terminal_ours): Add argument.
10358 (update_current_target): Update.
10359 * remote.c (remote_terminal_ours): Add 'self' argument.
10360 (remote_close): Update.
10361 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10362 * inflow.c (terminal_ours): Add 'self' argument.
10363 * inferior.h (terminal_ours): Add 'self' argument.
10364 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10365
10366 2014-02-19 Pedro Alves <palves@redhat.com>
10367 Tom Tromey <tromey@redhat.com>
10368
10369 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10370 argument.
10371 (target_terminal_ours_for_output): Add argument.
10372 * target.c (debug_to_terminal_ours_for_output): Add argument.
10373 (update_current_target): Update.
10374 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10375 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10376 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10377
10378 2014-02-19 Tom Tromey <tromey@redhat.com>
10379
10380 * target.h (struct target_ops) <to_terminal_inferior>: Add
10381 argument.
10382 * target.c (target_terminal_inferior): Add argument.
10383 (update_current_target): Update.
10384 * remote.c (remote_terminal_inferior): Add 'self' argument.
10385 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10386 * inflow.c (terminal_inferior): Add 'self' argument.
10387 * inferior.h (terminal_inferior): Add 'self' argument.
10388 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10389 (go32_terminal_inferior): Add 'self' argument.
10390
10391 2014-02-19 Tom Tromey <tromey@redhat.com>
10392
10393 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10394 (target_terminal_init): Add argument.
10395 * target.c (debug_to_terminal_init): Add argument.
10396 (update_current_target): Update.
10397 * inflow.c (terminal_init_inferior): Add 'self' argument.
10398 * inferior.h (terminal_init_inferior): Add 'self' argument.
10399 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10400 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10401
10402 2014-02-19 Tom Tromey <tromey@redhat.com>
10403
10404 * target.h (struct target_ops)
10405 <to_can_accel_watchpoint_condition>: Add argument.
10406 (target_can_accel_watchpoint_condition): Add argument.
10407 * target.c (debug_to_can_accel_watchpoint_condition): Add
10408 argument.
10409 (update_current_target): Update.
10410 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10411 'self' argument.
10412
10413 2014-02-19 Tom Tromey <tromey@redhat.com>
10414
10415 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10416 Add argument.
10417 (target_region_ok_for_hw_watchpoint): Add argument.
10418 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10419 (default_region_ok_for_hw_watchpoint): Add argument.
10420 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10421 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10422 argument.
10423 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10424 argument.
10425 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10426 argument.
10427 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10428 'self' argument.
10429 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10430 'self' argument.
10431 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10432 'self' argument.
10433 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10434 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10435 'self' argument.
10436 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10437 Add 'self' argument.
10438
10439 2014-02-19 Tom Tromey <tromey@redhat.com>
10440
10441 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10442 argument.
10443 (target_insert_watchpoint): Add argument.
10444 * target.c (debug_to_insert_watchpoint): Add argument.
10445 (update_current_target): Update.
10446 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10447 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10448 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10449 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10450 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10451 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10452 argument.
10453 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10454 (procfs_insert_hw_watchpoint): Add 'self' argument.
10455 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10456 argument.
10457 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10458 argument.
10459 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10460 argument.
10461 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10462 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10463 argument.
10464 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10465 'self' argument.
10466
10467 2014-02-19 Tom Tromey <tromey@redhat.com>
10468
10469 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10470 argument.
10471 (target_remove_watchpoint): Add argument.
10472 * target.c (debug_to_remove_watchpoint): Add argument.
10473 (update_current_target): Update.
10474 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10475 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10476 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10477 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10478 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10479 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10480 argument.
10481 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10482 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10483 argument.
10484 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10485 argument.
10486 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10487 argument.
10488 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10489 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10490 argument.
10491 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10492 'self' argument.
10493
10494 2014-02-19 Tom Tromey <tromey@redhat.com>
10495
10496 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10497 argument.
10498 (target_remove_hw_breakpoint): Add argument.
10499 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10500 (update_current_target): Update.
10501 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10502 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10503 argument.
10504 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10505 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10506 argument.
10507 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10508 'self' argument.
10509
10510 2014-02-19 Tom Tromey <tromey@redhat.com>
10511
10512 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10513 argument.
10514 (target_insert_hw_breakpoint): Add argument.
10515 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10516 (update_current_target): Update.
10517 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10518 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10519 argument.
10520 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10521 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10522 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10523 argument.
10524 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10525 'self' argument.
10526
10527 2014-02-19 Tom Tromey <tromey@redhat.com>
10528
10529 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10530 argument.
10531 (target_can_use_hardware_watchpoint): Add argument.
10532 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10533 (update_current_target): Update.
10534 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10535 argument.
10536 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10537 argument.
10538 * remote.c (remote_check_watch_resources): Add 'self' argument.
10539 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10540 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10541 argument.
10542 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10543 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10544 argument.
10545 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10546 argument.
10547 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10548 argument.
10549 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10550 argument.
10551 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10552 argument.
10553 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10554 argument.
10555 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10556 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10557 argument.
10558 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10559 'self' argument.
10560
10561 2014-02-19 Tom Tromey <tromey@redhat.com>
10562
10563 * target.h (struct target_ops) <to_post_attach>: Add argument.
10564 (target_post_attach): Add argument.
10565 * target.c (debug_to_post_attach): Add argument.
10566 (update_current_target): Update.
10567 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10568 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10569 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10570 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10571 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10572
10573 2014-02-19 Tom Tromey <tromey@redhat.com>
10574
10575 * windows-nat.c (windows_close): Add 'self' argument.
10576 * tracepoint.c (tfile_close): Add 'self' argument.
10577 * target.h (struct target_ops) <to_close>: Add argument.
10578 * target.c (target_close): Add argument.
10579 (update_current_target): Update.
10580 * remote.c (remote_close): Add 'self' argument.
10581 * remote-sim.c (gdbsim_close): Add 'self' argument.
10582 * remote-mips.c (mips_close): Add 'self' argument.
10583 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10584 * record-full.c (record_full_close): Add 'self' argument.
10585 * record-btrace.c (record_btrace_close): Add 'self' argument.
10586 * monitor.h (monitor_close): Add 'self' argument.
10587 * monitor.c (monitor_close): Add 'self' argument.
10588 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10589 * linux-nat.c (linux_nat_close): Add argument.
10590 * go32-nat.c (go32_close): Add 'self' argument.
10591 * exec.c (exec_close_1): Add 'self' argument.
10592 * ctf.c (ctf_close): Add 'self' argument.
10593 * corelow.c (core_close): Add 'self' argument.
10594 (core_close_cleanup): Update.
10595 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10596 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10597
10598 2014-02-19 Tom Tromey <tromey@redhat.com>
10599
10600 * remote.c (remote_load): New function.
10601 (init_remote_ops): Use it.
10602
10603 2014-02-19 Tom Tromey <tromey@redhat.com>
10604
10605 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10606 argument.
10607 * common/linux-btrace.h (linux_supports_btrace): Update.
10608 * remote.c (remote_supports_btrace): Add "self" argument.
10609 * target-delegates.c: Rebuild.
10610 * target.c (target_supports_btrace): Remove.
10611 * target.h (struct target_ops) <to_supports_btrace>: Add
10612 target_ops argument.
10613 (target_supports_btrace): New define.
10614
10615 2014-02-19 Tom Tromey <tromey@redhat.com>
10616
10617 * record-full.c (record_full_beneath_to_resume_ops)
10618 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10619 (record_full_beneath_to_wait)
10620 (record_full_beneath_to_store_registers_ops)
10621 (record_full_beneath_to_store_registers)
10622 (record_full_beneath_to_xfer_partial_ops)
10623 (record_full_beneath_to_xfer_partial)
10624 (record_full_beneath_to_insert_breakpoint_ops)
10625 (record_full_beneath_to_insert_breakpoint)
10626 (record_full_beneath_to_remove_breakpoint_ops)
10627 (record_full_beneath_to_remove_breakpoint)
10628 (record_full_beneath_to_stopped_by_watchpoint)
10629 (record_full_beneath_to_stopped_data_address)
10630 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10631 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10632 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10633 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10634 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10635 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10636 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10637 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10638 (record_full_resume, record_full_wait_1)
10639 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10640 (record_full_store_registers, record_full_xfer_partial)
10641 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10642 (record_full_async, record_full_core_xfer_partial): Use target
10643 delegation.
10644 * target-delegates.c: Rebuild.
10645 * target.c (current_xfer_partial): Remove.
10646 (update_current_target): Do not INHERIT or de_fault
10647 to_insert_breakpoint, to_remove_breakpoint,
10648 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10649 to_is_async_p, to_async. Do not set to_xfer_partial field.
10650 (default_xfer_partial): Simplify.
10651 (current_xfer_partial): Remove.
10652 (target_wait, target_resume): Simplify.
10653 (find_default_can_async_p, find_default_is_async_p): Update.
10654 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10655 to_xfer_partial, to_stopped_by_watchpoint,
10656 to_stopped_data_address.
10657 (target_store_registers): Simplify.
10658 (forward_target_remove_breakpoint)
10659 (forward_target_insert_breakpoint): Remove.
10660 (target_remove_breakpoint, target_insert_breakpoint)
10661 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10662 * target.h (struct target_ops) <to_resume, to_wait,
10663 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10664 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10665 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10666 markup.
10667 (forward_target_remove_breakpoint)
10668 (forward_target_insert_breakpoint): Remove.
10669 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10670 directly.
10671 (record_btrace_insert_breakpoint): Delegate directly.
10672
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10674
10675 PR build/7701:
10676 * target-delegates.c: New file.
10677 * target.c: Include target-delegates.c.
10678 (init_dummy_target): Call install_dummy_methods.
10679 (complete_target_initialization): Call install_delegators.
10680 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10681 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10682 * make-target-delegates: New file.
10683
10684 2014-02-19 Tom Tromey <tromey@redhat.com>
10685
10686 * record.c (find_record_target): Use find_target_at.
10687 * target.c (find_target_at): New function.
10688 * target.h (find_target_at): Declare.
10689
10690 2014-02-19 Tom Tromey <tromey@redhat.com>
10691
10692 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10693 Add 'ops' argument.
10694 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10695 'ops' argument.
10696 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10697 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10698 'ops' argument.
10699 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10700 argument.
10701 * linux-nat.c (save_sigtrap): Update.
10702 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10703 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10704 (linux_nat_close): Update.
10705 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10706 argument.
10707 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10708 argument.
10709 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10710 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10711 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10712 (tmp_to_async): Add 'ops' argument.
10713 (record_full_stopped_by_watchpoint, record_full_async)
10714 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10715 argument.
10716 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10717 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10718 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10719 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10720 (remote_is_async_p, remote_async): Add 'ops' argument.
10721 (remote_stopped_data_address): Update.
10722 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10723 * target.c (update_current_target)
10724 (find_default_can_async_p, find_default_is_async_p): Update.
10725 (init_dummy_target): Update.
10726 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10727 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10728 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10729 (target_can_async_p, target_is_async_p, target_async)
10730 (target_stopped_by_watchpoint): Update.
10731
10732 2014-02-19 Yao Qi <yao@codesourcery.com>
10733
10734 PR gdb/16220
10735 * gdbarch.sh: Remove startup_gdbarch.
10736 * gdbarch.c: Regenerated.
10737 * gdbarch.h: Likewise.
10738
10739 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10740
10741 * rl78-tdep.c (rl78_g10_register_name): New function.
10742 (rl78_return_value): Add g10 support.
10743 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10744 g10.
10745
10746 2014-02-17 Doug Evans <xdje42@gmail.com>
10747
10748 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10749 (SUBDIR_GUILE_SRCS): Ditto.
10750 (scm-gsmob.o): Ditto.
10751
10752 2014-02-17 Yao Qi <yao@codesourcery.com>
10753
10754 * gnu-nat.c (ILL_RPC): Declare defined function.
10755
10756 2014-02-17 Yao Qi <yao@codesourcery.com>
10757
10758 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10759 mach_msg_type_number_t.
10760 (gnu_write_inferior): Likewise.
10761
10762 2014-02-17 Yao Qi <yao@codesourcery.com>
10763
10764 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10765 in format string.
10766 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10767 (inf_validate_procs, inf_signal): Likewise.
10768 (S_exception_raise_request): Likewise.
10769 (do_mach_notify_dead_name): Likewise.
10770 (steal_exc_port): Likewise.
10771 (gnu_read_inferior): Change 'copy_count''s type to
10772 mach_msg_type_number_t.
10773 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10774 format string.
10775
10776 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10777
10778 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10779 flag. Adjust all users; in particular...
10780 (gnu_wait): ..., don't decrement its value in here...
10781 (gnu_create_inferior): ..., and instead set the flag in here,
10782 around the startup_inferior call, and call that one with
10783 START_INFERIOR_TRAPS_EXPECTED.
10784
10785 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10786 (ILL_RPC): ... new macro.
10787 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10788 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10789 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10790 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10791 functions with ILL_RPC macro.
10792 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10793 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10794 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10795 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10796 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10797 (S_proc_getlogin_reply, S_proc_getsid_reply)
10798 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10799 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10800 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10801 (S_proc_getnports_reply, S_proc_is_important_reply)
10802 (S_proc_get_code_reply): New stub functions, generated with
10803 ILL_RPC macro.
10804
10805 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10806 collected the type check structures.
10807
10808 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10809
10810 2014-02-14 Doug Evans <dje@google.com>
10811
10812 * target.c (target_write_partial): Fix result type.
10813
10814 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10815
10816 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10817 the proper offsets to access fpregset_t.
10818
10819 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10820
10821 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10822 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10823 * h8300-tdep.c (setmachinelist): Remove global.
10824 * hppa-tdep.c (hppa_sigtramp): Remove global.
10825 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10826 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10827 * ravenscar-thread.c (update_target_observer): Remove global.
10828 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10829
10830 2014-02-12 Tom Tromey <tromey@redhat.com>
10831
10832 * common/rsp-low.c: Update comments.
10833 * common/rsp-low.h: Update comments.
10834
10835 2014-02-12 Tom Tromey <tromey@redhat.com>
10836
10837 * common/rsp-low.c (convert_ascii_to_int): Remove.
10838 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10839
10840 2014-02-12 Tom Tromey <tromey@redhat.com>
10841
10842 * common/rsp-low.h (unhexify): Don't declare.
10843 * common/rsp-low.c (unhexify): Remove.
10844
10845 2014-02-12 Tom Tromey <tromey@redhat.com>
10846
10847 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10848 * common/rsp-low.c (convert_int_to_ascii): Remove.
10849
10850 2014-02-12 Tom Tromey <tromey@redhat.com>
10851
10852 * common/rsp-low.h (hexify): Don't declare.
10853 * common/rsp-low.c (hexify): Remove.
10854
10855 2014-02-12 Tom Tromey <tromey@redhat.com>
10856
10857 * common/rsp-low.c (hexify): Never take strlen of argument.
10858
10859 2014-02-12 Tom Tromey <tromey@redhat.com>
10860
10861 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10862 * remote.c (extended_remote_run, remote_rcmd)
10863 (remote_download_trace_state_variable, remote_save_trace_data)
10864 (remote_set_trace_notes): Update.
10865 * tracepoint.c (encode_source_string, tfile_write_status)
10866 (tfile_write_uploaded_tsv): Update.
10867
10868 2014-02-12 Tom Tromey <tromey@redhat.com>
10869
10870 * tracepoint.c: Include rsp-low.h.
10871 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10872 * remote.c: Include rsp-low.h.
10873 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10874 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10875 (remote_unescape_input): Move to common/rsp-low.c.
10876 * common/rsp-low.h: New file.
10877 * common/rsp-low.c: New file.
10878 * Makefile.in (SFILES): Add common/rsp-low.c.
10879 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10880 (COMMON_OBS): Add rsp-low.o.
10881 (rsp-low.o): New target.
10882
10883 2014-02-12 Tom Tromey <tromey@redhat.com>
10884
10885 * utils.h: Include print-utils.h.
10886 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10887 (int_string, core_addr_to_string, core_addr_to_string_nz)
10888 (hex_string, hex_string_custom): Don't declare.
10889 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10890 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10891 (hex_string_custom, int_string, core_addr_to_string)
10892 (core_addr_to_string_nz, host_address_to_string): Move to
10893 common/print-utils.c.
10894 * common/print-utils.h: New file.
10895 * common/print-utils.c: New file
10896 * Makefile.in (SFILES): Add common/print-utils.c.
10897 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10898 (COMMON_OBS): Add print-utils.o.
10899 (print-utils.o): New target.
10900
10901 2014-02-12 Tom Tromey <tromey@redhat.com>
10902
10903 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10904
10905 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10906
10907 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10908
10909 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10910
10911 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10912 if a PT_IO ptrace request returns sucessfully but indicates that 0
10913 bytes were transferred.
10914
10915 2014-02-12 Pedro Alves <palves@redhat.com>
10916 Kevin Buettner <kevinb@redhat.com>
10917
10918 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10919 TYPE_INSTANCE_FLAG_CODE_SPACE.
10920
10921 2014-02-12 Pedro Alves <palves@redhat.com>
10922
10923 * h8300-tdep.c (pseudo_from_raw_register)
10924 (raw_from_pseudo_register): New functions.
10925 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10926 them.
10927
10928 2014-02-12 Pedro Alves <palves@redhat.com>
10929
10930 * h8300-tdep.c (h8300_register_sim_regno): New function.
10931 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10932 gdbarch_register_sim_regno hook.
10933
10934 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10935
10936 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10937
10938 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10939
10940 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10941
10942 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10943
10944 * obsd-tdep.h (obsd_init_abi): New prototype.
10945 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10946 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10947 (obsd_init_abi): New functions.
10948 * i386obsd-tdep.c: Include "obsd-tdep.h".
10949 (i386obsd_init_abi): Call obsd_init_abi.
10950 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10951 (amd64obsd_init_abi): Call obsd_init_abi.
10952 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10953 obsd-tdep.c to gdb_target_obs.
10954
10955 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10956
10957 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10958 double float arguments to 16-byte in the argument slots.
10959
10960 2014-02-11 Doug Evans <xdje42@gmail.com>
10961
10962 * configure.ac: Don't crash if pkg-config is not found and guile
10963 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10964 in guile checks.
10965 * configure: Regenerate.
10966
10967 2014-02-11 Yao Qi <yao@codesourcery.com>
10968
10969 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10970 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10971 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10972 * gnu-nat.c (gnu_xfer_memory): Likewise.
10973 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10974 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10975 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10976 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10977
10978 2014-02-11 Yao Qi <yao@codesourcery.com>
10979
10980 * target.h (enum target_xfer_error): Rename to ...
10981 (enum target_xfer_status): ... it. New. All users updated.
10982 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10983 New.
10984 (TARGET_XFER_STATUS_ERROR_P): New macro.
10985 (target_xfer_error_to_string): Remove declaration.
10986 (target_xfer_status_to_string): Declare.
10987 (target_xfer_partial_ftype): Adjust it.
10988 (struct target_ops) <to_xfer_partial>: Return
10989 target_xfer_status. Add argument xfered_len. Update
10990 comments.
10991 * target.c (target_xfer_error_to_string): Rename to ...
10992 (target_xfer_status_to_string): ... it. New. All callers
10993 updated.
10994 (target_read_live_memory): Likewise. Call target_xfer_partial
10995 instead of target_read.
10996 (memory_xfer_live_readonly_partial): Return
10997 target_xfer_status. Add argument xfered_len.
10998 (raw_memory_xfer_partial): Likewise.
10999 (memory_xfer_partial_1): Likewise.
11000 (memory_xfer_partial): Likewise.
11001 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11002 properly. Update debug message.
11003 (default_xfer_partial, current_xfer_partial): Likewise.
11004 (target_write_partial): Likewise.
11005 (target_read_partial): Likewise. All callers updated.
11006 (read_whatever_is_readable): Likewise.
11007 (target_write_with_progress): Likewise.
11008 (target_read_alloc_1): Likewise.
11009
11010 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11011 * auxv.c (procfs_xfer_auxv): Likewise.
11012 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11013 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11014 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11015 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11016 * corefile.c (read_memory): Adjust.
11017 * corelow.c (core_xfer_partial): Likewise.
11018 * ctf.c (ctf_xfer_partial): Likewise.
11019 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11020 updated.
11021 (darwin_xfer_partial): Likewise.
11022 * exec.c (section_table_xfer_memory_partial): Likewise. All
11023 callers updated.
11024 (exec_xfer_partial): Likewise.
11025 * exec.h (section_table_xfer_memory_partial): Update
11026 declaration.
11027 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11028 negative.
11029 (gnu_xfer_partial): Likewise.
11030 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11031 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11032 (ia64_hpux_xfer_solib_got): Likewise.
11033 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11034 type of 'partial_len' to ULONGEST.
11035 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11036 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11037 (linux_nat_xfer_partial): Likewise.
11038 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11039 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11040 * monitor.c (monitor_xfer_memory): Likewise.
11041 (monitor_xfer_partial): Likewise.
11042 * procfs.c (procfs_xfer_partial): Likewise.
11043 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11044 * record-full.c (record_full_xfer_partial): Likewise.
11045 (record_full_core_xfer_partial): Likewise.
11046 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11047 (gdbsim_xfer_partial): Likewise.
11048 * remote.c (remote_write_bytes_aux): Likewise. All callers
11049 updated.
11050 (remote_write_bytes, remote_read_bytes): Likewise. All
11051 callers updated.
11052 (remote_flash_erase): Likewise. All callers updated.
11053 (remote_write_qxfer): Likewise. All callers updated.
11054 (remote_read_qxfer): Likewise. All callers updated.
11055 (remote_xfer_partial): Likewise.
11056 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11057 (rs6000_xfer_shared_libraries): Likewise.
11058 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11059 (sol_thread_xfer_partial): Likewise.
11060 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11061 (sparc_xfer_partial): Likewise.
11062 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11063 updated.
11064 (spu_xfer_partial): Likewise.
11065 * spu-multiarch.c (spu_xfer_partial): Likewise.
11066 * tracepoint.c (tfile_xfer_partial): Likewise.
11067 * windows-nat.c (windows_xfer_memory): Likewise.
11068 (windows_xfer_shared_libraries): Likewise.
11069 (windows_xfer_partial): Likewise.
11070 * valprint.c: Replace 'target_xfer_error' with
11071 'target_xfer_status' in comments.
11072
11073 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11074
11075 Checked in by Joel Brobecker <brobecker@adacore.com>.
11076 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11077
11078 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11079
11080 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11081 function parameters.
11082
11083 2014-02-10 Will Newton <will.newton@linaro.org>
11084
11085 * elfread.c (elf_rel_plt_read): Look for a .got section if
11086 looking up .got.plt fails.
11087 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11088 on address passed to elf_gnu_ifunc_record_cache.
11089 (elf_gnu_ifunc_resolve_addr): Likewise.
11090 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11091
11092 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11093
11094 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11095 (X_RETTURN): New macro.
11096 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11097
11098 * sparc64-tdep.c (sparc64_init_abi): Hook
11099 sparc_in_function_epilogue_p.
11100
11101 2014-02-10 Gary Benson <gbenson@redhat.com>
11102
11103 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11104 Rename name_matcher to symbol_matcher.
11105
11106 2014-02-10 Gary Benson <gbenson@redhat.com>
11107
11108 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11109 Use expand_symtabs_file_matcher_ftype and
11110 expand_symtabs_symbol_matcher_ftype.
11111
11112 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11113
11114 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11115 (struct ada_symbol_cache): New.
11116 (ada_free_symbol_cache): Forward declare.
11117 (struct ada_pspace_data): New.
11118 (ada_pspace_data_handle): New static global.
11119 (get_ada_pspace_data, ada_pspace_data_cleanup)
11120 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11121 (cache_space, cache): Delete, now folded inside struct
11122 ada_pspace_data.
11123 (ada_get_symbol_cache): New function.
11124 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11125 implementation.
11126 (_initialize_ada_language): Remove initialization of cache_space.
11127 Move call to observer_attach_inferior_exit up, grouping it
11128 with the other observer registrations inside this function.
11129 Rename command to be more general. Add call to
11130 register_program_space_data_with_cleanup.
11131
11132 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11133
11134 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11135 ada_new_objfile_observer.
11136 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11137 (_initialize_tasks): Update uses of ada_new_objfile_observer
11138 and ada_tasks_normal_stop_observer.
11139
11140 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11141
11142 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11143 returned by the 'Length attribute to integer.
11144
11145 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11146
11147 * ada-lang.c (_initialize_ada_language): Initialize
11148 cache_space obstack.
11149
11150 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11151
11152 * ada-lang.c (HASH_SIZE): New macro.
11153 (struct cache_entry): New type.
11154 (cache_space, cache): New static globals.
11155 (ada_clear_symbol_cache, find_entry): New functions.
11156 (lookup_cached_symbol, cache_symbol): Implement.
11157 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11158 (_initialize_ada_language): Attach ada_new_objfile_observer
11159 and ada_free_objfile_observer.
11160
11161 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11162
11163 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11164 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11165 struct block * parameter.
11166 (ada_lookup_symbol_list_worker): Constify local variable "block".
11167 Remove cast which is no longer necessary.
11168
11169 2014-02-10 Doug Evans <xdje42@gmail.com>
11170
11171 Add Guile as an extension language.
11172 * NEWS: Mention Guile scripting.
11173 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11174 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11175 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11176 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11177 (CLIBS): Add GUILE_LIBS.
11178 (install-guile): New rule.
11179 (guile.o): New rule.
11180 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11181 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11182 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11183 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11184 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11185 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11186 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11187 * configure.ac: New option --with-guile.
11188 * configure: Regenerate.
11189 * config.in: Regenerate.
11190 * auto-load.c: Remove #include "python/python.h". Add #include
11191 "gdb/section-scripts.h".
11192 (source_section_scripts): Handle Guile scripts.
11193 (_initialize_auto_load): Add name of Guile objfile script to
11194 scripts-directory help text.
11195 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11196 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11197 (struct breakpoint): New member scm_bp_object.
11198 * defs.h (enum command_control_type): New value guile_control.
11199 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11200 "extension.h".
11201 (show_user): Update comment.
11202 (_initialize_cli_cmds): Update help text for "show user". Update help
11203 text for max-user-call-depth.
11204 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11205 "extension.h".
11206 (multi_line_command_p): Add guile_control.
11207 (print_command_lines): Handle guile_control.
11208 (execute_control_command, recurse_read_control_structure): Ditto.
11209 (process_next_line): Recognize "guile" commands.
11210 * disasm.c (gdb_disassemble_info): Make non-static.
11211 * disasm.h: #include "dis-asm.h".
11212 (struct gdbarch): Add forward decl.
11213 (gdb_disassemble_info): Declare.
11214 * extension.c: #include "guile/guile.h".
11215 (extension_languages): Add guile.
11216 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11217 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11218 * gdbtypes.c (get_unsigned_type_max): New function.
11219 (get_signed_type_minmax): New function.
11220 * gdbtypes.h (get_unsigned_type_max): Declare.
11221 (get_signed_type_minmax): Declare.
11222 * guile/README: New file.
11223 * guile/guile-internal.h: New file.
11224 * guile/guile.c: New file.
11225 * guile/guile.h: New file.
11226 * guile/scm-arch.c: New file.
11227 * guile/scm-auto-load.c: New file.
11228 * guile/scm-block.c: New file.
11229 * guile/scm-breakpoint.c: New file.
11230 * guile/scm-disasm.c: New file.
11231 * guile/scm-exception.c: New file.
11232 * guile/scm-frame.c: New file.
11233 * guile/scm-gsmob.c: New file.
11234 * guile/scm-iterator.c: New file.
11235 * guile/scm-lazy-string.c: New file.
11236 * guile/scm-math.c: New file.
11237 * guile/scm-objfile.c: New file.
11238 * guile/scm-ports.c: New file.
11239 * guile/scm-pretty-print.c: New file.
11240 * guile/scm-safe-call.c: New file.
11241 * guile/scm-string.c: New file.
11242 * guile/scm-symbol.c: New file.
11243 * guile/scm-symtab.c: New file.
11244 * guile/scm-type.c: New file.
11245 * guile/scm-utils.c: New file.
11246 * guile/scm-value.c: New file.
11247 * guile/lib/gdb.scm: New file.
11248 * guile/lib/gdb/boot.scm: New file.
11249 * guile/lib/gdb/experimental.scm: New file.
11250 * guile/lib/gdb/init.scm: New file.
11251 * guile/lib/gdb/iterator.scm: New file.
11252 * guile/lib/gdb/printing.scm: New file.
11253 * guile/lib/gdb/types.scm: New file.
11254 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11255 (VPATH): Add $(GUILE_SRCDIR).
11256 (GUILE_DIR): New variable.
11257 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11258 (all): Add stamp-guile dependency.
11259 (stamp-guile): New rule.
11260 (clean-guile, install-guile, uninstall-guile): New rules.
11261 (install-only): Add install-guile dependency.
11262 (uninstall): Add uninstall-guile dependency.
11263 (clean): Add clean-guile dependency.
11264
11265 2014-02-09 Doug Evans <xdje42@gmail.com>
11266
11267 Revert this patch (which I approved, mea culpa).
11268
11269 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11270
11271 * Makefile.in (all-lib): Remove.
11272 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11273
11274 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11275
11276 Fix Python stack corruption.
11277 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11278 gdb_py_longest.
11279
11280 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11281
11282 * Makefile.in (all-lib): Remove.
11283 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11284
11285 2014-02-07 Doug Evans <dje@google.com>
11286
11287 * extension-priv.h (extension_language_script_ops): Add comment.
11288 (extension_language_ops): Add comment.
11289 (active_ext_lang_state): Fix typo in comment.
11290
11291 2014-02-07 Pedro Alves <palves@redhat.com>
11292
11293 PR breakpoints/16292
11294 * infrun.c (handle_signal_stop) <signal arrives while stepping
11295 over a breakpoint>: Switch back to the stepping thread.
11296
11297 2014-02-07 Yao Qi <yao@codesourcery.com>
11298
11299 * target.c (target_xfer_partial): Return zero if LEN is zero.
11300
11301 2014-02-07 Yao Qi <yao@codesourcery.com>
11302
11303 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11304 (ld_so_xfer_auxv): Likewise.
11305 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11306 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11307 * corelow.c (core_xfer_partial): Likewise.
11308 * ctf.c (ctf_xfer_partial): Likewise.
11309 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11310 (darwin_xfer_partial): Likewise.
11311 * exec.c (exec_xfer_partial): Likewise.
11312 * gnu-nat.c (gnu_xfer_partial): Likewise.
11313 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11314 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11315 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11316 * linux-nat.c (linux_xfer_siginfo): Likewise.
11317 (linux_proc_xfer_spu): Likewise.
11318 * procfs.c (procfs_xfer_partial): Likewise.
11319 * record-full.c (record_full_xfer_partial): Likewise.
11320 (record_full_core_xfer_partial): Likewise.
11321 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11322 * remote.c (remote_write_qxfer): Likewise.
11323 (remote_write_qxfer, remote_read_qxfer): Likewise.
11324 (remote_xfer_partial): Likewise.
11325 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11326 (rs6000_xfer_shared_libraries): Likewise.
11327 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11328 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11329 (spu_xfer_partial): Likewise.
11330 * target.c (memory_xfer_partial_1): Likewise.
11331 * tracepoint.c (tfile_xfer_partial): Likewise.
11332 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11333 (windows_xfer_partial): Likewise.
11334
11335 2014-02-07 Yao Qi <yao@codesourcery.com>
11336
11337 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11338 comments.
11339 (core_xfer_shared_libraries_aix): Likewise.
11340 * gdbarch.c, gdbarch.h: Regenerated.
11341 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11342 ULONGEST. Change 'len_avail' type to ULONGEST.
11343 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11344 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11345 declaration.
11346 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11347
11348 2014-02-07 Yao Qi <yao@codesourcery.com>
11349
11350 * corefile.c (memory_error): Get 'exception' from ERR and pass
11351 'exception' to throw_error.
11352
11353 2014-02-06 Doug Evans <xdje42@gmail.com>
11354
11355 * configure.ac (libpython checking): Remove all but python.o from
11356 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11357 * configure: Regenerate.
11358
11359 * Makefile.in (SFILES): Add extension.c.
11360 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11361 (COMMON_OBS): Add extension.o.
11362 * extension.h: New file.
11363 * extension-priv.h: New file.
11364 * extension.c: New file.
11365
11366 * python/python-internal.h: #include "extension.h".
11367 (gdbpy_auto_load_enabled): Declare.
11368 (gdbpy_apply_val_pretty_printer): Declare.
11369 (gdbpy_apply_frame_filter): Declare.
11370 (gdbpy_preserve_values): Declare.
11371 (gdbpy_breakpoint_cond_says_stop): Declare.
11372 (gdbpy_breakpoint_has_cond): Declare.
11373 (void source_python_script_for_objfile): Delete.
11374 * python/python.c: #include "extension-priv.h".
11375 Delete inclusion of "observer.h".
11376 (extension_language_python): Moved here and renamed from
11377 script_language_python in py-auto-load.c.
11378 Redefined to be of type extension_language_defn.
11379 (python_extension_script_ops): New global.
11380 (python_extension_ops): New global.
11381 (struct python_env): New member previous_active.
11382 (restore_python_env): Call restore_active_ext_lang.
11383 (ensure_python_env): Call set_active_ext_lang.
11384 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11385 New arg extlang.
11386 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11387 New arg extlang.
11388 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11389 New arg extlang.
11390 (gdbpy_eval_from_control_command): Renamed from
11391 eval_python_from_control_command, made static. New arg extlang.
11392 (gdbpy_source_script) Renamed from source_python_script, made static.
11393 New arg extlang.
11394 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11395 result to int. New arg extlang.
11396 (gdbpy_source_objfile_script): Renamed from
11397 source_python_script_for_objfile, made static. New arg extlang.
11398 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11399 static. New args extlang, extlang_printers. Change result type to
11400 "void".
11401 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11402 static. New arg extlang. Rename arg printers to extlang_printers
11403 and change type to ext_lang_type_printers *.
11404 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11405 static. Replace argument arg with extlang, extlang_printers.
11406 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11407 (!HAVE_PYTHON, source_python_script): Delete.
11408 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11409 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11410 (!HAVE_PYTHON, start_type_printers): Delete.
11411 (!HAVE_PYTHON, apply_type_printers): Delete.
11412 (!HAVE_PYTHON, free_type_printers): Delete.
11413 (_initialize_python): Delete call to observer_attach_before_prompt.
11414 (finalize_python): Set/restore active extension language.
11415 (gdbpy_finish_initialization) Renamed from
11416 finish_python_initialization, made static. New arg extlang.
11417 (gdbpy_initialized): New function.
11418 * python/python.h: #include "extension.h". Delete #include
11419 "value.h", "mi/mi-cmds.h".
11420 (extension_language_python): Declare.
11421 (GDBPY_AUTO_FILE_NAME): Delete.
11422 (enum py_bt_status): Moved to extension.h and renamed to
11423 ext_lang_bt_status.
11424 (enum frame_filter_flags): Moved to extension.h.
11425 (enum py_frame_args): Moved to extension.h and renamed to
11426 ext_lang_frame_args.
11427 (finish_python_initialization): Delete.
11428 (eval_python_from_control_command): Delete.
11429 (source_python_script): Delete.
11430 (apply_val_pretty_printer): Delete.
11431 (apply_frame_filter): Delete.
11432 (preserve_python_values): Delete.
11433 (gdbpy_script_language_defn): Delete.
11434 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11435 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11436
11437 * auto-load.c: #include "extension.h".
11438 (GDB_AUTO_FILE_NAME): Delete.
11439 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11440 (script_language_gdb): Delete, moved to extension.c and renamed to
11441 extension_language_gdb.
11442 (source_gdb_script_for_objfile): Delete.
11443 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11444 (loaded_script): Change type of language member to
11445 struct extension_language_defn *.
11446 (init_loaded_scripts_info): Initialize
11447 unsupported_script_warning_printed.
11448 (maybe_add_script): Make static. Change type of language arg to
11449 struct extension_language_defn *.
11450 (clear_section_scripts): Reset unsupported_script_warning_printed.
11451 (auto_load_objfile_script_1): Rewrite to use extension language API.
11452 (auto_load_objfile_script): Make public. Remove support-compiled-in
11453 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11454 (source_section_scripts): Rewrite to use extension language API.
11455 (load_auto_scripts_for_objfile): Rewrite to use
11456 auto_load_scripts_for_objfile.
11457 (collect_matching_scripts_data): Change type of language member to
11458 struct extension_language_defn *.
11459 (auto_load_info_scripts): Change type of language arg to
11460 struct extension_language_defn *.
11461 (unsupported_script_warning_print): New function.
11462 (script_not_found_warning_print): Make static.
11463 (_initialize_auto_load): Rewrite construction of scripts-directory
11464 help.
11465 * auto-load.h (struct objfile): Add forward decl.
11466 (struct script_language): Delete.
11467 (struct auto_load_pspace_info): Add forward decl.
11468 (struct extension_language_defn): Add forward decl.
11469 (maybe_add_script): Delete.
11470 (auto_load_objfile_script): Declare.
11471 (script_not_found_warning_print): Delete.
11472 (auto_load_info_scripts): Update prototype.
11473 (auto_load_gdb_scripts_enabled): Declare.
11474 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11475 auto_load_python_scripts_enabled and made public.
11476 (script_language_python): Delete, moved to python.c.
11477 (gdbpy_script_language_defn): Delete.
11478 (info_auto_load_python_scripts): Update to use
11479 extension_language_python.
11480
11481 * breakpoint.c (condition_command): Replace call to
11482 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11483 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11484 with call to breakpoint_ext_lang_cond_says_stop.
11485 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11486 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11487 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11488 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11489 New arg slang.
11490 (local_setattro): Print name of extension language with existing
11491 stop condition.
11492
11493 * valprint.c (val_print, value_print): Update to call
11494 apply_ext_lang_val_pretty_printer.
11495 * cp-valprint.c (cp_print_value): Update call to
11496 apply_ext_lang_val_pretty_printer.
11497 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11498 (gdbpy_apply_val_pretty_printer): Renamed from
11499 apply_val_pretty_printer. New arg extlang.
11500 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11501
11502 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11503 extension language API.
11504 * cli/cli-script.c (execute_control_command): Update to call
11505 eval_ext_lang_from_control_command.
11506
11507 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11508 enum ext_lang_bt_status values. Update call to
11509 apply_ext_lang_frame_filter.
11510 (mi_cmd_stack_list_locals): Ditto.
11511 (mi_cmd_stack_list_args): Ditto.
11512 (mi_cmd_stack_list_variables): Ditto.
11513 * mi/mi-main.c: Delete #include "python/python-internal.h".
11514 Add #include "extension.h".
11515 (mi_cmd_list_features): Replace reference to python internal variable
11516 gdb_python_initialized with call to ext_lang_initialized_p.
11517
11518 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11519 Update to use enum ext_lang_frame_args. Update to call
11520 apply_ext_lang_frame_filter.
11521 * python/py-framefilter.c (extract_sym): Update to use enum
11522 ext_lang_bt_status.
11523 (extract_value, py_print_type, py_print_value): Ditto.
11524 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11525 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11526 (py_print_frame): Ditto.
11527 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11528 New arg extlang. Update to use enum ext_lang_bt_status.
11529
11530 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11531 finish_python_initialization. Replace with call to
11532 finish_ext_lang_initialization.
11533
11534 * typeprint.c (do_free_global_table): Update to call
11535 free_ext_lang_type_printers.
11536 (create_global_typedef_table): Update to call
11537 start_ext_lang_type_printers.
11538 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11539 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11540 (type_print_options): Change type of global_printers from "void *"
11541 to "struct ext_lang_type_printers *".
11542
11543 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11544 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11545 (gdbpy_preserve_values): Renamed from preserve_python_values.
11546 New arg extlang.
11547 (!HAVE_PYTHON, preserve_python_values): Delete.
11548
11549 * utils.c (quit_flag): Delete, moved to extension.c.
11550 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11551 extension.c.
11552
11553 * eval.c: Delete #include "python/python.h".
11554 * main.c: Delete #include "python/python.h".
11555
11556 * defs.h: Update comment.
11557
11558 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11559
11560 GDB 7.7 released.
11561
11562 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11563
11564 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11565 defined.
11566
11567 2014-02-05 Yao Qi <yao@codesourcery.com>
11568
11569 * remote.c (remote_pass_signals): Remove local 'buf' and use
11570 rs->buf.
11571 (remote_program_signals): Likewise.
11572
11573 2014-02-05 Yao Qi <yao@codesourcery.com>
11574
11575 * ctf.c: Include "inferior.h" and "gdbthread.h".
11576 (CTF_PID): A new macro.
11577 (ctf_open): Call inferior_appeared and add_thread_silent.
11578 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11579 (ctf_thread_alive): New function.
11580 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11581
11582 2014-02-05 Yao Qi <yao@codesourcery.com>
11583
11584 Revert this patch:
11585
11586 2013-05-24 Yao Qi <yao@codesourcery.com>
11587
11588 * tracepoint.c (TFILE_PID): Remove.
11589 (tfile_open): Don't add thread and inferior.
11590 (tfile_close): Don't set 'inferior_ptid'. Don't call
11591 exit_inferior_silent.
11592 (tfile_thread_alive): Remove.
11593 (init_tfile_ops): Don't set field 'to_thread_alive' of
11594 tfile_ops.
11595
11596 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11597
11598 * remote.c (remote_start_remote): Call remote_check_symbols even
11599 if only symbol-file (not file) has been given.
11600
11601 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11602
11603 * gdbarch.sh (skip_entrypoint): New callback.
11604 * gdbarch.c, gdbarch.h: Regenerate.
11605 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11606 * infrun.c (fill_in_stop_func): Likewise.
11607 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11608 (ppc_elfv2_elf_make_msymbol_special): New function.
11609 (ppc_elfv2_skip_entrypoint): Likewise.
11610 (ppc_linux_init_abi): Install them for ELFv2.
11611
11612 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11613
11614 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11615 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11616 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11617 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11618 structures returned in GPRs.
11619
11620 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11621
11622 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11623 offset to the stack parameter list for the ELFv2 ABI.
11624
11625 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11626
11627 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11628 set_gdbarch_convert_from_func_ptr_addr and
11629 set_gdbarch_elf_make_msymbol_special for ELFv1.
11630 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11631 function descriptors on ELFv1.
11632 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11633 set up r12 at function entry.
11634
11635 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11636
11637 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11638 (struct gdbarch_tdep): New member elf_abi.
11639
11640 * rs6000-tdep.c: Include "elf/ppc64.h".
11641 (rs6000_gdbarch_init): Detect ELF ABI version.
11642
11643 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11644
11645 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11646 within a register pair holding a DFP 128-bit value on little-endian.
11647 (ppc64_sysv_abi_return_value_base): Likewise.
11648 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11649 (dfp_pseudo_register_write): Likewise.
11650
11651 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11652
11653 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11654 offset on little-endian when passing _Decimal32.
11655 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11656
11657 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11658
11659 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11660 of the overlapped FP register within the VSX register on little-
11661 endian platforms.
11662 (efpr_pseudo_register_write): Likewise.
11663
11664 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11665
11666 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11667 offset on little-endian when passing small structures.
11668
11669 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11670
11671 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11672 (struct ppc64_sysv_argpos): New data structure.
11673 (ppc64_sysv_abi_push_float): Remove.
11674 (ppc64_sysv_abi_push_val): New function.
11675 (ppc64_sysv_abi_push_integer): Likewise.
11676 (ppc64_sysv_abi_push_freg): Likewise.
11677 (ppc64_sysv_abi_push_vreg): Likewise.
11678 (ppc64_sysv_abi_push_param): Likewise.
11679 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11680 (ppc64_sysv_abi_return_value_base): New function.
11681 (ppc64_sysv_abi_return_value): Refactor to use it.
11682
11683 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11684
11685 * NEWS: Document new target powerpc64le-*-linux*.
11686
11687 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11688
11689 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11690 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11691 core dumps.
11692 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11693 register set used in ELF core dumps. Add floating-point register set.
11694
11695 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11696
11697 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11698 dwarf2_to_gdb[] table using symbolic constants. Adjust
11699 penultimate entry from number representing the PC register
11700 to symbolic constant representing the MDR register. Add
11701 constant for the PC register to the end of the table.
11702
11703 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11704
11705 * bsd-kvm.c: Include <sys/param.h>
11706
11707 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11708
11709 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11710
11711 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11712
11713 * ada-lang.h (clear_ada_sym_cache): Delete.
11714
11715 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11716
11717 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11718
11719 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11720
11721 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11722 the sigreturn register save area only if the syscall is
11723 sigreturn.
11724
11725 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11726
11727 * valops.c (value_slice): Minor reformatting.
11728
11729 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11730
11731 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11732
11733 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11734
11735 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11736 New static globals.
11737 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11738 (ada_ignore_descriptive_types_p): New static global.
11739 (find_parallel_type_by_descriptive_type): Return immediately
11740 if ada_ignore_descriptive_types_p is set.
11741 (_initialize_ada_language): Register new commands "maintenance
11742 set ada", "maintenance show ada", "maintenance set ada
11743 ignore-descriptive-types" and "maintenance show ada
11744 ignore-descriptive-types".
11745 * NEWS: Add entry for new "maint ada set/show
11746 ignore-descriptive-types" commands.
11747
11748 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11749
11750 * record-btrace.c (record_btrace_close): Call btrace_teardown
11751 for all threads.
11752
11753 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11754
11755 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11756 "ui-out.h".
11757
11758 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11759
11760 * ada-typeprint (type_is_full_subrange_of_target_type):
11761 New function.
11762 (print_range): Add parameter bounds_prefered_p. If not set,
11763 try printing range types using the name of their base type.
11764 (print_range_type): Add parameter bounds_prefered_p.
11765 Use it in call to print_range.
11766 (print_array_type, ada_print_type): Update calls to print_range
11767 and print_range_type.
11768
11769 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11770
11771 * ada-typeprint.c (print_array_type, print_choices, print_range)
11772 (print_range_bound, print_dynamic_range_bound, print_range_type):
11773 Remove declaration.
11774
11775 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11776
11777 * ada-typeprint.c (print_range): Add missing empty line
11778 after local declaration.
11779
11780 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11781
11782 * ada-valprint.c (print_optional_low_bound): Get index_type's
11783 target type for as long as it is a TYPE_CODE_RANGE.
11784
11785 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11786
11787 * procfs.c (procfs_make_note_section): Remove assertion and
11788 associated comment.
11789
11790 2014-01-24 Yao Qi <yao@codesourcery.com>
11791
11792 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11793 * corelow.c (get_core_siginfo): Likewise.
11794
11795 2014-01-24 Yao Qi <yao@codesourcery.com>
11796
11797 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11798 ULONGEST. Don't check 'len' is negative.
11799 (remote_write_bytes): Change type of 'len' to ULONGEST.
11800
11801 2014-01-23 Tom Tromey <tromey@redhat.com>
11802
11803 PR python/16485:
11804 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11805 Handle exception from frame.block.
11806 (FrameVars.fetch_frame_locals): Likewise.
11807
11808 2014-01-23 Tom Tromey <tromey@redhat.com>
11809
11810 PR python/16487:
11811 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11812 on a NULL pointer. Move "goto error" to correct place.
11813
11814 2014-01-23 Tom Tromey <tromey@redhat.com>
11815
11816 PR python/16491:
11817 * python/py-framefilter.c (apply_frame_filter): Call
11818 ensure_python_env after computing gdbarch.
11819
11820 2014-01-23 Yao Qi <yao@codesourcery.com>
11821
11822 * target.c (raw_memory_xfer_partial): Change argument type
11823 from void * to gdb_byte *.
11824 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11825
11826 2014-01-22 Doug Evans <dje@google.com>
11827
11828 New gdbserver option --debug-format=timestamp.
11829 * NEWS: Mention it.
11830
11831 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11832
11833 * syscalls/s390x-linux.xml: New file.
11834 * syscalls/s390-linux.xml: New file.
11835 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11836 (XML_SYSCALL_FILENAME_S390X): Likewise.
11837 (op_svc): New enum value for SVC opcode.
11838 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11839 (s390_linux_get_syscall_number): New function.
11840 (s390_gdbarch_init): Register '*get_syscall_number' and the
11841 syscall xml file name.
11842 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11843 "s390-linux.xml" and "s390x-linux.xml".
11844 * NEWS: Announce new feature.
11845
11846 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11847
11848 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11849
11850 2014-01-22 Pedro Alves <palves@redhat.com>
11851
11852 * xtensa-config.c: Include defs.h.
11853
11854 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11855
11856 * common/common-utils.h: Add "ARI:" comment beside __func__
11857 reference.
11858
11859 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11860
11861 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11862 documentation a bit.
11863
11864 2014-01-21 Roland McGrath <mcgrathr@google.com>
11865
11866 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11867 * configure: Regenerate.
11868 * aclocal.m4: Regenerate.
11869 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11870 New substituted variables.
11871 (install-strip): New target.
11872 (INSTALL_SCRIPT): New substituted variable.
11873 (FLAGS_TO_PASS): Add it.
11874 (install-only): Use $(INSTALL_SCRIPT) rather than
11875 $(INSTALL_PROGRAM) for gcore.
11876
11877 2014-01-20 Tom Tromey <tromey@redhat.com>
11878
11879 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11880 together.
11881
11882 2014-01-20 Tom Tromey <tromey@redhat.com>
11883
11884 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11885 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11886 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11887 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11888 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11889 (struct cmd_list_element) <flags>: Remove.
11890 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11891 doc_allocated>: New fields.
11892 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11893 bitfields.
11894 * maint.c (maintenance_do_deprecate): Update.
11895 * top.c (execute_command): Update.
11896
11897 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11898
11899 * xtensa-linux-nat.c: Include asm/ptrace.h.
11900
11901 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11902
11903 * Makefile.in (SFILES): Add d-support.c.
11904 (COMMON_OBS): Add d-support.o.
11905 * d-lang.h (d_parse_symbol): Add comment, now defined in
11906 d-support.c.
11907 * d-lang.c (parse_call_convention)
11908 (parse_attributes, parse_function_types)
11909 (parse_function_args, parse_type, parse_identifier)
11910 (call_convention_p, d_parse_symbol): Move functions to ...
11911 * d-support.c: ... New file.
11912
11913 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11914
11915 * d-lang.h (d_parse_symbol): Add declaration.
11916 * d-lang.c (extract_identifiers)
11917 (extract_type_info): Remove functions.
11918 (parse_call_convention, parse_attributes)
11919 (parse_function_types, parse_function_args)
11920 (parse_type, parse_identifier, call_convention_p)
11921 (d_parse_symbol): New functions.
11922 (d_demangle): Use d_parse_symbol to demangle D symbols.
11923
11924 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11925
11926 * d-lang.h (struct builtin_d_type): New data type.
11927 (builtin_d_type): Add declaration.
11928 * d-lang.c (d_language_arch_info, build_d_types)
11929 (builtin_d_type): New functions.
11930 (enum d_primitive_types): New data type.
11931 (d_language_defn): Change c_language_arch_info to
11932 d_language_arch_info.
11933 (d_type_data): New static variable.
11934 (_initialize_d_language): Initialize d_type_data.
11935
11936 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11937
11938 * d-lang.h (d_main_name): Add declaration.
11939 * d-lang.c (d_main_name): New function.
11940 * symtab.c (find_main_name): Add call to d_main_name.
11941
11942 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11943
11944 * d-lang.c (d_language_defn): Change macro_expansion_c to
11945 macro_expansion_no.
11946
11947 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11948
11949 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11950
11951 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11952
11953 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11954 gdb_exception" declaration.
11955 * remote.c (getpkt_or_notif_sane): Likewise.
11956
11957 2014-01-17 Doug Evans <dje@google.com>
11958
11959 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11960 function, contents of dirnames_to_char_ptr_vec_append moved here.
11961 (delim_string_to_char_ptr_vec): New function.
11962 (dirnames_to_char_ptr_vec_append): Rewrite.
11963 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11964
11965 2014-01-17 Doug Evans <dje@google.com>
11966
11967 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11968 and moved here ...
11969 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11970 #include "common-utils.h".
11971 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11972 * common/vec.h (VEC_ASSERT_PASS): Update.
11973 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11974 (MACH_CHECK_ERROR): Update.
11975
11976 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11977
11978 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11979 comments.
11980 * gdbarch.h: Regenerate.
11981
11982 2014-01-16 Tom Tromey <tromey@redhat.com>
11983
11984 * value.c (struct value) <regnum>: Move earlier.
11985
11986 2014-01-16 Tom Tromey <tromey@redhat.com>
11987
11988 * remote.c (extended_remote_create_inferior): Rename from
11989 extended_remote_create_inferior_1. Add "ops" argument. Remove
11990 old implementation.
11991
11992 2014-01-16 Pedro Alves <palves@redhat.com>
11993
11994 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11995 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11996 the backchain.
11997
11998 2014-01-16 Doug Evans <dje@google.com>
11999
12000 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12001
12002 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12003
12004 * btrace.h (btrace_thread_flag): New.
12005 (struct btrace_thread_info) <flags>: New.
12006 * record-btrace.c (record_btrace_resume_thread)
12007 (record_btrace_find_thread_to_move, btrace_step_no_history)
12008 (btrace_step_stopped, record_btrace_start_replaying)
12009 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12010 (record_btrace_find_resume_thread): New.
12011 (record_btrace_resume, record_btrace_wait): Extend.
12012 (record_btrace_can_execute_reverse): New.
12013 (record_btrace_open): Fail in non-stop mode.
12014 (record_btrace_set_replay): Split into this, ...
12015 (record_btrace_stop_replaying): ... this, ...
12016 (record_btrace_clear_histories): ... and this.
12017 (init_record_btrace_ops): Init to_can_execute_reverse.
12018 * NEWS: Announce it.
12019
12020 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12021
12022 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12023 (forward_target_decr_pc_after_break)
12024 (target_decr_pc_after_break): New.
12025 * target.c (forward_target_decr_pc_after_break)
12026 (target_decr_pc_after_break): New.
12027 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12028 instead of gdbarch_decr_pc_after_break.
12029 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12030 instead of gdbarch_decr_pc_after_break.
12031 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12032 instead of gdbarch_decr_pc_after_break.
12033 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12034 instead of gdbarch_decr_pc_after_break.
12035 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12036 instead of gdbarch_decr_pc_after_break.
12037 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12038 instead of gdbarch_decr_pc_after_break.
12039
12040 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12041
12042 * btrace.c: Include regcache.h.
12043 (btrace_add_pc): New.
12044 (btrace_enable): Call btrace_add_pc.
12045 (btrace_is_empty): New.
12046 * btrace.h (btrace_is_empty): New.
12047 * record-btrace.c (require_btrace, record_btrace_info): Call
12048 btrace_is_empty.
12049
12050 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12051
12052 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12053 Support delta reads.
12054 (linux_disable_btrace): Change return type.
12055 * common/linux-btrace.h (linux_read_btrace): Change parameters
12056 and return type to allow error reporting. Update users.
12057 (linux_disable_btrace): Change return type. Update users.
12058 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12059 New.
12060 (btrace_error): New.
12061 (btrace_block) <begin>: Comment on BEGIN == 0.
12062 * btrace.c (btrace_compute_ftrace): Start from the end of
12063 the current trace.
12064 (btrace_stitch_trace, btrace_clear_history): New.
12065 (btrace_fetch): Read delta trace, return if replaying.
12066 (btrace_clear): Move clear history code to btrace_clear_history.
12067 (parse_xml_btrace): Throw an error if parsing failed.
12068 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12069 and return type to allow error reporting.
12070 (target_read_btrace): Change parameters and return type to allow
12071 error reporting.
12072 * target.c (target_read_btrace): Update.
12073 * remote.c (remote_read_btrace): Support delta reads. Pass
12074 errors on.
12075 * NEWS: Announce it.
12076
12077 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12078
12079 * record.h (record_btrace_frame_unwind)
12080 (record_btrace_tailcall_frame_unwind): New declarations.
12081 * dwarf2-frame: Include record.h
12082 (dwarf2_frame_cfa): Throw an error for btrace frames.
12083 * record-btrace.c: Include hashtab.h.
12084 (btrace_get_bfun_name): New.
12085 (btrace_call_history): Call btrace_get_bfun_name.
12086 (struct btrace_frame_cache): New.
12087 (bfcache): New.
12088 (bfcache_hash, bfcache_eq, bfcache_new): New.
12089 (btrace_get_frame_function): New.
12090 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12091 (record_btrace_frame_this_id): Compute own id.
12092 (record_btrace_frame_prev_register): Provide PC, throw_error
12093 for all other registers.
12094 (record_btrace_frame_sniffer): Detect btrace frames.
12095 (record_btrace_tailcall_frame_sniffer): New.
12096 (record_btrace_frame_dealloc_cache): New.
12097 (record_btrace_frame_unwind): Add new functions.
12098 (record_btrace_tailcall_frame_unwind): New.
12099 (_initialize_record_btrace): Allocate cache.
12100 * btrace.c (btrace_clear): Call reinit_frame_cache.
12101 * NEWS: Announce it.
12102
12103 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12104
12105 * record-btrace.c (record_btrace_set_replay)
12106 (record_btrace_goto_begin, record_btrace_goto_end)
12107 (record_btrace_goto): New.
12108 (init_record_btrace_ops): Initialize them.
12109 * NEWS: Announce it.
12110
12111 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12112
12113 * record-btrace.c (record_btrace_find_new_threads)
12114 (record_btrace_thread_alive): New.
12115 (init_record_btrace_ops): Initialize to_find_new_threads and
12116 to_thread_alive.
12117
12118 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12119
12120 * record-btrace.c (record_btrace_resume): New.
12121 (record_btrace_wait): New.
12122 (init_record_btrace_ops): Initialize to_wait and to_resume.
12123
12124 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12125
12126 * record-btrace.c (record_btrace_xfer_partial)
12127 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12128 (record_btrace_allow_memory_access): New.
12129 (init_record_btrace_ops): Initialize new methods.
12130 * target.c (raw_memory_xfer_partial): Bail out if target reports
12131 that this memory is not available.
12132
12133 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12134
12135 * target.h (target_ops) <to_insert_breakpoint>
12136 <to_remove_breakpoint>: Add target_ops parameter.
12137 (forward_target_insert_breakpoint): New.
12138 (forward_target_remove_breakpoint): New.
12139 (memory_remove_breakpoint, memory_insert_breakpoint):
12140 Add target_ops parameter.
12141 * target.c (target_insert_breakpoint): Split into this and ...
12142 (forward_target_insert_breakpoint): ... this.
12143 (target_remove_breakpoint): Split into this and ...
12144 (forward_target_remove_breakpoint): ... this.
12145 (debug_to_insert_breakpoint): Add target_ops parameter.
12146 Call forward_target_insert_breakpoint.
12147 (debug_to_remove_breakpoint): Add target_ops parameter.
12148 Call forward_target_remove_breakpoint.
12149 (update_current_target): Do not inherit or default to_insert_breakpoint
12150 and to_remove_breakpoint.
12151 * corelow.c (ignore): Add target_ops parameter.
12152 * exec.c (ignore): Add target_ops parameter.
12153 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12154 Add target_ops parameter.
12155 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12156 Add target_ops parameter.
12157 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12158 Add target_ops parameter.
12159 * record-full.c (record_full_beneath_to_insert_breakpoint)
12160 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12161 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12162 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12163 (record_full_core_remove_breakpoint): Add target_ops parameter.
12164 Update users.
12165 (record_full_beneath_to_insert_breakpoint_ops)
12166 (record_full_beneath_to_remove_breakpoint_ops)
12167 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12168 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12169 tmp_to_remove_breakpoint_ops,
12170 record_full_beneath_to_insert_breakpoint_ops, and
12171 record_full_beneath_to_remove_breakpoint_ops.
12172 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12173 (m32r_remove_breakpoint): Add target_ops parameter.
12174 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12175 Add target_ops parameter.
12176 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12177 Add target_ops parameter.
12178
12179 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12180 Markus Metzger <markus.t.metzger@intel.com>
12181
12182 * record-btrace.c: Include frame-unwind.h.
12183 (record_btrace_frame_unwind_stop_reason)
12184 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12185 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12186 New.
12187 (init_record_btrace_ops): Install it.
12188
12189 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12190
12191 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12192 get_prev_frame_1.
12193
12194 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12195
12196 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12197 earlier.
12198
12199 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12200
12201 * frame-unwind.c: Include target.h.
12202 (frame_unwind_try_unwinder): New function with code from ...
12203 (frame_unwind_find_by_frame): ... here. New variable
12204 unwinder_from_target, call also target_get_unwinder)
12205 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12206 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12207 * target.h (struct target_ops): New fields to_get_unwinder and
12208 to_get_tailcall_unwinder.
12209 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12210
12211 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12212
12213 * record-btrace.c (record_btrace_fetch_registers)
12214 (record_btrace_store_registers)
12215 (record_btrace_to_prepare_to_store): New.
12216 (init_record_btrace_ops): Add the above.
12217
12218 2014-01-16 Tom Tromey <tromey@redhat.com>
12219
12220 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12221 * target.h (struct target_ops) <to_prepare_to_store>: Add
12222 argument.
12223 (target_prepare_to_store): Add argument.
12224 * target.c (debug_to_prepare_to_store): Add argument.
12225 (update_current_target): Update.
12226 * remote.c (remote_prepare_to_store): Add 'self' argument.
12227 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12228 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12229 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12230 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12231 argument.
12232 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12233 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12234 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12235 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12236 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12237
12238 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12239
12240 * btrace.h (replay) <replay>: New.
12241 (btrace_is_replaying): New.
12242 * btrace.c (btrace_clear): Free replay iterator.
12243 (btrace_is_replaying): New.
12244 * record-btrace.c (record_btrace_is_replaying): New.
12245 (record_btrace_info): Print insn number if replaying.
12246 (record_btrace_insn_history): Start at replay position.
12247 (record_btrace_call_history): Start at replay position.
12248 (init_record_btrace_ops): Init to_record_is_replaying.
12249
12250 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12251
12252 * record-btrace.c (record_btrace_insn_history_range): Include
12253 end.
12254 (record_btrace_insn_history_from): Adjust range.
12255 (record_btrace_call_history_range): Include
12256 end.
12257 (record_btrace_call_history_from): Adjust range.
12258 * NEWS: Announce changes.
12259
12260 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12261
12262 * record.h (enum record_print_flag)
12263 <record_print_indent_calls>: New.
12264 * record.c (get_call_history_modifiers): Recognize /c modifier.
12265 (_initialize_record): Document /c modifier.
12266 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12267 Reorder fields. Optionally indent the function name. Update
12268 all users.
12269 * NEWS: Announce changes.
12270
12271 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12272
12273 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12274
12275 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12276
12277 * btrace.c (ftrace_new_function): Start counting at one.
12278 * record-btrace.c (record_btrace_info): Adjust number of calls
12279 and insns.
12280 * NEWS: Announce it.
12281
12282 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12283
12284 * record-btrace.c (btrace_call_history_insn_range): Print
12285 insn range as [begin, end].
12286
12287 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12288
12289 * btrace.h (struct btrace_func_link): New.
12290 (enum btrace_function_flag): New.
12291 (struct btrace_inst): Rename to ...
12292 (struct btrace_insn): ...this. Update all users.
12293 (struct btrace_func) <ibegin, iend>: Remove.
12294 (struct btrace_func_link): New.
12295 (struct btrace_func): Rename to ...
12296 (struct btrace_function): ...this. Update all users.
12297 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12298 (number, level, flags>: New.
12299 (struct btrace_insn_iterator): Rename to ...
12300 (struct btrace_insn_history): ...this.
12301 Update all users.
12302 (struct btrace_insn_iterator, btrace_call_iterator): New.
12303 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12304 (struct btrace_target_info) <begin, end, level>
12305 <insn_history, call_history>: New.
12306 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12307 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12308 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12309 (btrace_call_number, btrace_call_begin, btrace_call_end)
12310 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12311 (btrace_find_function_by_number, btrace_set_insn_history)
12312 (btrace_set_call_history): New.
12313 * btrace.c (btrace_init_insn_iterator)
12314 (btrace_init_func_iterator, compute_itrace): Remove.
12315 (ftrace_print_function_name, ftrace_print_filename)
12316 (ftrace_skip_file): Change
12317 parameter to const.
12318 (ftrace_init_func): Remove.
12319 (ftrace_debug): Use new btrace_function fields.
12320 (ftrace_function_switched): Also consider gaining and
12321 losing symbol information).
12322 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12323 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12324 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12325 New.
12326 (ftrace_new_function): Move. Remove debug print.
12327 (ftrace_update_lines, ftrace_update_insns): New.
12328 (ftrace_update_function): Check for call, ret, and jump.
12329 (compute_ftrace): Renamed to ...
12330 (btrace_compute_ftrace): ...this. Rewritten to compute call
12331 stack.
12332 (btrace_fetch, btrace_clear): Updated.
12333 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12334 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12335 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12336 (btrace_call_number, btrace_call_begin, btrace_call_end)
12337 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12338 (btrace_find_function_by_number, btrace_set_insn_history)
12339 (btrace_set_call_history): New.
12340 * record-btrace.c (require_btrace): Use new btrace thread
12341 info fields.
12342 (record_btrace_info, btrace_insn_history)
12343 (record_btrace_insn_history, record_btrace_insn_history_range):
12344 Use new btrace thread info fields and new iterator.
12345 (btrace_func_history_src_line): Rename to ...
12346 (btrace_call_history_src_line): ...this. Use new btrace
12347 thread info fields.
12348 (btrace_func_history): Rename to ...
12349 (btrace_call_history): ...this. Use new btrace thread info
12350 fields and new iterator.
12351 (record_btrace_call_history, record_btrace_call_history_range):
12352 Use new btrace thread info fields and new iterator.
12353
12354 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12355
12356 * frame.h (frame_id_build_unavailable_stack_special): New.
12357 * frame.c (frame_id_build_unavailable_stack_special): New.
12358
12359 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12360
12361 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12362 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12363 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12364 to gdbarch.
12365 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12366 (i386_insn_is_jump, i386_jmp_p): New.
12367 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12368 insn_is_jump to gdbarch.
12369 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12370 * gdbarch.h: Regenerated.
12371 * gdbarch.c: Regenerated.
12372 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12373 (default_insn_is_jump): New.
12374 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12375 (default_insn_is_jump): New.
12376
12377 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12378
12379 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12380 Change to ...
12381 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12382 (btrace_read_type) <btrace_read_new>: Change to ...
12383 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12384
12385 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12386
12387 * common/linux-btrace.c (linux_read_btrace): Free trace from
12388 previous iteration.
12389
12390 2014-01-15 Doug Evans <dje@google.com>
12391
12392 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12393 uint32_t.
12394
12395 2014-01-15 Tom Tromey <tromey@redhat.com>
12396
12397 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12398 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12399 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12400 (set_objfile_main_name): New function.
12401 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12402 language_of_main>: New fields.
12403 (set_objfile_main_name): Declare.
12404 * symtab.c (find_main_name): Loop over objfiles to find the main
12405 name and language.
12406 (set_main_name): Now static.
12407 (get_main_info): Add comment.
12408 * symtab.h (set_main_name): Don't declare.
12409
12410 2014-01-15 Tom Tromey <tromey@redhat.com>
12411
12412 * symtab.c (main_progspace_key): New global.
12413 (struct main_info): New.
12414 (name_of_main, language_of_main): Remove.
12415 (get_main_info, main_info_cleanup): New function.
12416 (set_main_name, main_name, main_language): Use get_main_info.
12417 (_initialize_symtab): Initialize main_progspace_key.
12418
12419 2014-01-15 Tom Tromey <tromey@redhat.com>
12420
12421 * dbxread.c (process_one_symbol): Update.
12422 * dwarf2read.c (read_partial_die): Update.
12423 * symfile.c (set_initial_language): Call main_language.
12424 * symtab.c (language_of_main): Now static.
12425 (set_main_name): Add 'lang' parameter.
12426 (find_main_name): Update.
12427 (main_language): New function.
12428 (symtab_observer_executable_changed): Update.
12429 * symtab.h (set_main_name): Update.
12430 (language_of_main): Remove.
12431 (main_language): Declare.
12432
12433 2014-01-15 Tom Tromey <tromey@redhat.com>
12434
12435 * symfile.c (init_entry_point_info): Use new "initialized" field.
12436 Update.
12437 * objfiles.h (struct entry_point) <initialized>: New field.
12438 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12439 (struct objfile) <ei>: ...here. Remove.
12440 * objfiles.c (entry_point_address_query): Update.
12441
12442 2014-01-15 Tom Tromey <tromey@redhat.com>
12443
12444 * objfiles.c (entry_point_address_query): Relocate entry point
12445 address.
12446 (objfile_relocate1): Do not relocate entry point address.
12447 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12448 <the_bfd_section_index>: New field.
12449 * symfile.c (init_entry_point_info): Find the entry point's
12450 section.
12451
12452 2014-01-15 Tom Tromey <tromey@redhat.com>
12453
12454 * solib-frv.c (enable_break): Use entry_point_address_query.
12455
12456 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12457
12458 * NEWS: Add note on improved process record-replay on
12459 arm*-linux* targets.
12460
12461 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12462
12463 * arm-tdep.c (enum arm_record_result): New enum.
12464 (arm_record_unsupported_insn): New function.
12465 (arm_record_coproc_data_proc): Removed.
12466 (thumb2_record_ld_st_multiple): New function.
12467 (thumb2_record_ld_st_dual_ex_tbb): New function.
12468 (thumb2_record_data_proc_sreg_mimm): New function.
12469 (thumb2_record_ps_dest_generic): New function.
12470 (thumb2_record_branch_misc_cntrl): New function.
12471 (thumb2_record_str_single_data): New function.
12472 (thumb2_record_ld_mem_hints): New function.
12473 (thumb2_record_ld_word): New function.
12474 (thumb2_record_lmul_lmla_div): New function.
12475 (thumb2_record_decode_insn_handler): New function.
12476 (decode_insn): Add thumb32 instruction handlers.
12477
12478 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12479
12480 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12481 (struct arm_linux_record_tdep): Declare.
12482 (arm_canonicalize_syscall): New function.
12483 (arm_all_but_pc_registers_record): New function.
12484 (arm_linux_syscall_record): New function.
12485 (arm_linux_init_abi): Add syscall recording constructs.
12486 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12487 decoding. (arm_record_coproc_data_proc): Update arm syscall
12488 decoding.
12489 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12490 <arm_syscall_record>: New field.
12491 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12492 gdb_target_obs.
12493
12494 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12495
12496 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12497 register for push instruction recording.
12498
12499 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12500
12501 * arm-tdep.c (thumb_record_misc): Update to correct logical
12502 error while recording ldm, ldmia and pop instructions.
12503
12504 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12505
12506 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12507
12508 2014-01-15 Pedro Alves <palves@redhat.com>
12509
12510 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12511 (go32_resume, go32_fetch_registers, store_register)
12512 (go32_store_registers, go32_prepare_to_store)
12513 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12514 (go32_create_inferior, go32_can_run, go32_terminal_init)
12515 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12516 declarations.
12517
12518 2014-01-15 Tom Tromey <tromey@redhat.com>
12519
12520 * target.h (async_callback_ftype): New typedef.
12521 (struct target_ops) <to_async>: Use it.
12522
12523 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12524
12525 * python/py-value.c (get_field_type): Remove unnecessary curly
12526 braces for single-statement if block.
12527
12528 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12529
12530 * python/py-type.c (convert_field): Add missing empty line
12531 after declarations.
12532
12533 2014-01-14 Doug Evans <dje@google.com>
12534
12535 * symfile.h (expand_symtabs_matching): Renamed from
12536 expand_partial_symbol_names. Update prototype.
12537 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12538 * symfile.c (expand_symtabs_matching): Renamed from
12539 expand_partial_symbol_names. New args file_matcher, kind.
12540 Rename arg fun to symbol_matcher.
12541 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12542 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12543 ada_expand_partial_symbol_name.
12544 (ada_make_symbol_completion_list): Update to call
12545 expand_symtabs_matching.
12546 (ada_add_global_exceptions): Call expand_symtabs_matching.
12547 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12548 call map_symbol_filenames.
12549 * symtab.c (sources_info): Update to call map_symbol_filenames.
12550 (search_symbols): Call expand_symtabs_matching.
12551 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12552 (default_make_symbol_completion_list_break_on): Update to call
12553 expand_symtabs_matching.
12554 (make_source_files_completion_list): Update to call
12555 map_symbol_filenames.
12556
12557 2014-01-14 Doug Evans <dje@google.com>
12558
12559 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12560 (expand_symtabs_symbol_matcher_ftype): New typedef.
12561 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12562 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12563 * symfile.c (expand_partial_symbol_names): Update to use
12564 expand_symtabs_symbol_matcher_ftype.
12565 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12566 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12567 Arg name_matcher renamed to symbol_matcher.
12568 * psymtab.c (recursively_search_psymtabs): Update to use
12569 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12570 sym_matcher.
12571 (expand_symtabs_matching_via_partial): Update to use
12572 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12573 Arg name_matcher renamed to symbol_matcher.
12574
12575 2014-01-14 Doug Evans <dje@google.com>
12576
12577 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12578 (map_partial_symbol_filenames): Ditto.
12579 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12580 (map_partial_symbol_filenames): Ditto.
12581 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12582 (map_partial_symbol_filenames): Ditto.
12583 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12584 (map_partial_symbol_filenames): Ditto.
12585 * symtab.c: Delete #include "psymtab.h".
12586
12587 2014-01-14 Pedro Alves <palves@redhat.com>
12588 Tom Tromey <tromey@redhat.com>
12589
12590 * infrun.c (use_displaced_stepping): Use find_record_target
12591 instead of RECORD_IS_USED.
12592 (adjust_pc_after_break): Use record_full_is_used instead of
12593 RECORD_IS_USED.
12594 * record-btrace.c (record_btrace_open): Call record_preopen
12595 instead of checking RECORD_IS_USED.
12596 * record-full.c (record_full_shortname)
12597 (record_full_core_shortname): New globals.
12598 (record_full_is_used): New function.
12599 (find_full_open): Call record_preopen instead of checking
12600 RECORD_IS_USED.
12601 (init_record_full_ops): Set the target's shortname to
12602 record_full_shortname.
12603 (init_record_full_core_ops): Set the target's shortname to
12604 record_full_core_shortname.
12605 * record-full.h (record_full_is_used): Declare.
12606 * record.c (find_record_target): Make extern.
12607 (record_preopen): New function.
12608 * record.h (RECORD_IS_USED): Delete macro.
12609 (find_record_target, record_preopen): Declare functions.
12610
12611 2014-01-14 Yao Qi <yao@codesourcery.com>
12612
12613 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12614 'len''s type to ULONGEST.
12615 (core_xfer_shared_libraries_aix): Likewise.
12616 * gdbarch.c, gdbarch.h: Regenerated.
12617 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12618 Change type of 'len' to ULONGEST.
12619 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12620 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12621
12622 2014-01-14 Yao Qi <yao@codesourcery.com>
12623
12624 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12625 type of 'len' to ULONGEST.
12626 (linux_xfer_osdata_processgroups): Likewise.
12627 (linux_xfer_osdata_threads): Likewise.
12628 (linux_xfer_osdata_fds): Likewise.
12629 (linux_xfer_osdata_isockets): Likewise.
12630 (linux_xfer_osdata_shm): Likewise.
12631 (linux_xfer_osdata_sem): Likewise.
12632 (linux_xfer_osdata_msg): Likewise.
12633 (linux_common_xfer_osdata): Likewise.
12634 (struct osdata_type) <getter>: Likewise.
12635 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12636 the declaration.
12637
12638 2014-01-14 Yao Qi <yao@codesourcery.com>
12639
12640 * target.h (target_xfer_partial_ftype): Update.
12641 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12642 ULONGEST.
12643 * aix-thread.c (aix_thread_xfer_partial): Change type of
12644 argument 'len' to ULONGEST.
12645 * auxv.c (procfs_xfer_auxv): Likewise.
12646 (ld_so_xfer_auxv): Likewise.
12647 (memory_xfer_auxv): Likewise.
12648 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12649 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12650 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12651 * corelow.c (core_xfer_partial): Likewise.
12652 * ctf.c (ctf_xfer_partial): Likewise.
12653 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12654 '%u'.
12655 (darwin_read_dyld_info): Likewise.
12656 (darwin_xfer_partial): Likewise.
12657 * exec.c (section_table_xfer_memory_partial): Likewise.
12658 (exec_xfer_partial): Likewise.
12659 * exec.h (section_table_xfer_memory_partial): Update
12660 declaration.
12661 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12662 instead of plongest.
12663 (gnu_xfer_partial): Likewise.
12664 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12665 (ia64_hpux_xfer_solib_got): Likewise.
12666 (ia64_hpux_xfer_partial): Likewise.
12667 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12668 * inf-ptrace.c (inf_ptrace_xfer_partial):
12669 * inf-ttrace.c (inf_ttrace_xfer_partial):
12670 * linux-nat.c (linux_xfer_siginfo): Likewise.
12671 (linux_nat_xfer_partial): Likewise.
12672 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12673 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12674 * monitor.c (monitor_xfer_memory): Likewise.
12675 (monitor_xfer_partial): Likewise.
12676 * procfs.c (procfs_xfer_partial): Likewise.
12677 * record-full.c (record_full_xfer_partial): Likewise.
12678 (record_full_core_xfer_partial): Likewise.
12679 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12680 instead of plongest.
12681 (gdbsim_xfer_partial): Likewise.
12682 * remote.c (remote_xfer_partial): Likewise.
12683 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12684 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12685 declaration.
12686 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12687 (rs6000_xfer_shared_libraries): Likewise.
12688 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12689 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12690 (sparc_xfer_partial): Likewise.
12691 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12692 (spu_xfer_partial): Likewise.
12693 * spu-multiarch.c (spu_xfer_partial): Likewise.
12694 * target.c (target_read_live_memory): Likewise.
12695 (memory_xfer_live_readonly_partial): Likewise.
12696 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12697 (target_xfer_partial, default_xfer_partial): Likewise.
12698 (current_xfer_partial): Likewise.
12699 * tracepoint.c (tfile_xfer_partial): Likewise.
12700 * windows-nat.c (windows_xfer_memory): Likewise. Call
12701 pulongest instead of plongest.
12702 (windows_xfer_partial): Likewise.
12703 (windows_xfer_shared_libraries): Likewise.
12704
12705 2014-01-14 Yao Qi <yao@codesourcery.com>
12706
12707 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12708 target_xfer_partial_ftype.
12709
12710 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12711
12712 PR python/15464
12713 PR python/16113
12714 * valops.c (value_struct_elt_bitpos): New function
12715 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12716 object to 'None' if the field name is an empty string ("").
12717 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12718 attribute to look for a field when 'name' is 'None'.
12719 (get_field_type): New function
12720
12721 2014-01-13 Doug Evans <dje@google.com>
12722
12723 PR symtab/16426
12724 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12725 (try_open_dwop_file): Ditto.
12726 * gdb_bfd.c: #include "vec.h".
12727 (bfdp): New typedef.
12728 (struct gdb_bfd_data): New member included_bfds.
12729 (gdb_bfd_unref): Unref all included bfds.
12730 (gdb_bfd_record_inclusion): New function.
12731 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12732
12733 2014-01-13 Tom Tromey <tromey@redhat.com>
12734
12735 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12736
12737 2014-01-13 Tom Tromey <tromey@redhat.com>
12738
12739 * defs.h (use_windows): Remove.
12740 * gdb.c (main): Update.
12741 * main.c (captured_main, gdb_main): Update.
12742 * main.h (struct captured_main_args) <use_windows>: Remove.
12743 * top.c (use_windows): Remove.
12744
12745 2014-01-13 Tom Tromey <tromey@redhat.com>
12746
12747 * defs.h (deprecated_flush_hook): Remove.
12748
12749 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12750
12751 PR threads/16216
12752 * linux-thread-db.c (try_thread_db_load): Add parameter
12753 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12754 (try_thread_db_load_from_pdir_1): Move it there from here.
12755 (try_thread_db_load_from_sdir): Update caller.
12756 (try_thread_db_load_from_dir): Move it there from here.
12757
12758 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12759
12760 * regformats/regdat.sh: Always rewrite the register file.
12761
12762 2014-01-13 Pedro Alves <palves@redhat.com>
12763
12764 * Makefile.in (CHECK_HEADERS): New variable.
12765 (check-headers:): New rule.
12766
12767 2014-01-13 Tom Tromey <tromey@redhat.com>
12768
12769 * cli/cli-setshow.c (do_set_command): Update.
12770 * defs.h (deprecated_set_hook): Remove.
12771 * top.c (deprecated_set_hook): Remove.
12772
12773 2014-01-13 Pedro Alves <palves@redhat.com>
12774
12775 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12776 the tracepoint if the PC is a pseudo-register.
12777
12778 2014-01-13 Tom Tromey <tromey@redhat.com>
12779
12780 * defs.h (XCALLOC): Remove.
12781 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12782 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12783 * dwarf2loc.c (allocate_piece_closure): Likewise.
12784 * elfread.c (elf_symfile_segments): Likewise.
12785 (elf_symfile_segments): Likewise.
12786 * gdbtypes.c (copy_type_recursive): Likewise.
12787 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12788 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12789 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12790 XCALLOC.
12791 * mt-tdep.c (mt_gdbarch_init): Likewise.
12792 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12793 XCALLOC.
12794 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12795 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12796 * registry.c (registry_alloc_data): Likewise.
12797 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12798 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12799 * serial.c (serial_fdopen_ops): Likewise.
12800 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12801 XCALLOC.
12802 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12803 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12804 not XCALLOC.
12805
12806 2014-01-13 Tom Tromey <tromey@redhat.com>
12807
12808 * defs.h (XMALLOC): Remove.
12809 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12810 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12811 * cli-out.c (struct ui_out *): Likewise.
12812 * cli/cli-dump.c (add_dump_command): Likewise.
12813 (add_dump_command): Likewise.
12814 * complaints.c (get_complaints): Likewise.
12815 (find_complaint): Likewise.
12816 * dwarf2-frame.c (execute_cfa_program): Likewise.
12817 * dwarf2read.c (abbrev_table_read_table): Likewise.
12818 * gdbarch.sh: Likewise.
12819 * gdbarch.c: Rebuild.
12820 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12821 * interps.c (interp_new): Likewise.
12822 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12823 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12824 * mi/mi-console.c (mi_console_file_new): Likewise.
12825 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12826 * mi/mi-out.c (mi_out_new): Likewise.
12827 * mi/mi-parse.c (mi_parse): Likewise.
12828 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12829 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12830 * observer.c (xalloc_observer_list_node): Likewise.
12831 * regcache.c (regcache_xmalloc_1): Likewise.
12832 * reggroups.c (reggroup_new): Likewise.
12833 (_initialize_reggroup): Likewise.
12834 * registry.c (register_data_with_cleanup): Likewise.
12835 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12836 * ser-base.c (serial_ttystate): Likewise.
12837 * ser-mingw.c (make_pipe_state): Likewise.
12838 * ser-pipe.c (pipe_open): Likewise.
12839 * serial.c (serial_open): Likewise.
12840 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12841 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12842 (tui_alloc_win_info): Likewise.
12843 (tui_add_content_elements): Likewise.
12844 * tui/tui-file.c (tui_file_new): Likewise.
12845 * tui/tui-out.c (tui_out_new): Likewise.
12846 * ui-file.c (mem_file_new): Likewise.
12847 * ui-out.c (push_level): Likewise.
12848 (make_cleanup_ui_out_end): Likewise.
12849 (append_header_to_list): Likewise.
12850 (ui_out_new): Likewise.
12851 * user-regs.c (user_reg_add_builtin): Likewise.
12852
12853 2014-01-13 Tom Tromey <tromey@redhat.com>
12854
12855 * defs.h (XZALLOC): Remove.
12856 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12857 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12858 (get_ada_tasks_inferior_data): Likewise.
12859 * auto-load.c (get_auto_load_pspace_data): Likewise.
12860 * auxv.c (get_auxv_inferior_data): Likewise.
12861 * bfd-target.c (target_bfd_reopen): Likewise.
12862 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12863 (deprecated_insert_raw_breakpoint): Likewise.
12864 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12865 * corelow.c (core_open): Likewise.
12866 * darwin-nat.c (darwin_check_new_threads): Likewise.
12867 (darwin_attach_pid): Likewise.
12868 * dummy-frame.c (dummy_frame_push): Likewise.
12869 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12870 * dwarf2loc.c (allocate_piece_closure): Likewise.
12871 * elfread.c (elf_symfile_segments): Likewise.
12872 * eval.c (ptrmath_type_p): Likewise.
12873 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12874 * gdbtypes.c (alloc_type_arch): Likewise.
12875 (alloc_type_instance): Likewise.
12876 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12877 * inf-child.c (inf_child_can_use_agent): Likewise.
12878 * inflow.c (get_inflow_inferior_data): Likewise.
12879 * infrun.c (save_infcall_suspend_state): Likewise.
12880 * jit.c (jit_reader_load): Likewise.
12881 (get_jit_objfile_data): Likewise.
12882 (get_jit_program_space_data): Likewise.
12883 (jit_object_open_impl): Likewise.
12884 (jit_symtab_open_impl): Likewise.
12885 (jit_block_open_impl): Likewise.
12886 (jit_frame_sniffer): Likewise.
12887 * linux-fork.c (add_fork): Likewise.
12888 * maint.c (make_command_stats_cleanup): Likewise.
12889 * objfiles.c (get_objfile_pspace_data): Likewise.
12890 * opencl-lang.c (struct lval_closure): Likewise.
12891 * osdata.c (osdata_start_osdata): Likewise.
12892 * progspace.c (new_address_space): Likewise.
12893 (add_program_space): Likewise.
12894 * remote-sim.c (get_sim_inferior_data): Likewise.
12895 * sh-tdep.c (sh_gdbarch_init): Likewise.
12896 * skip.c (Ignore): Likewise.
12897 (skip_delete_command): Likewise.
12898 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12899 (library_list_start_library): Likewise.
12900 (solib_aix_current_sos): Likewise.
12901 * solib-darwin.c (get_darwin_info): Likewise.
12902 (darwin_current_sos): Likewise.
12903 * solib-dsbt.c (get_dsbt_info): Likewise.
12904 * solib-ia64-hpux.c (new_so_list): Likewise.
12905 (ia64_hpux_get_solib_linkage_addr): Likewise.
12906 * solib-spu.c (append_ocl_sos): Likewise.
12907 (spu_current_sos): Likewise.
12908 * solib-svr4.c (get_svr4_info): Likewise.
12909 (svr4_keep_data_in_core): Likewise.
12910 (library_list_start_library): Likewise.
12911 (svr4_default_sos): Likewise.
12912 (svr4_read_so_list): Likewise.
12913 * solib-target.c (library_list_start_library): Likewise.
12914 (solib_target_current_sos): Likewise.
12915 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12916 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12917 * symfile.c (default_symfile_segments): Likewise.
12918 * target-descriptions.c (tdesc_data_init): Likewise.
12919 (tdesc_create_reg): Likewise.
12920 (struct tdesc_type *): Likewise.
12921 (tdesc_create_vector): Likewise.
12922 (tdesc_set_struct_size): Likewise.
12923 (struct tdesc_type *): Likewise.
12924 (tdesc_free_feature): Likewise.
12925 (tdesc_create_feature): Likewise.
12926 * windows-nat.c (windows_add_thread): Likewise.
12927 (windows_make_so): Likewise.
12928 * xml-support.c (gdb_xml_body_text): Likewise.
12929 (gdb_xml_create_parser_and_cleanup): Likewise.
12930 (xml_process_xincludes): Likewise.
12931 * xml-syscall.c (allocate_syscalls_info): Likewise.
12932 (syscall_create_syscall_desc): Likewise.
12933
12934 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12935
12936 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12937 function, with code from i386_stap_parse_special_token.
12938 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12939 (i386_stap_parse_special_token): Move code to the two functions
12940 above; simplify it.
12941
12942 2014-01-09 Pedro Alves <palves@redhat.com>
12943 Hui Zhu <hui@codesourcery.com>
12944
12945 PR gdb/16101
12946 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12947 bp_err_string. Don't mark the location shlib_disabled if the
12948 error thrown wasn't a generic or memory error. Catch errors
12949 thrown while inserting breakpoints in overlayed code. Output
12950 error message of software breakpoints.
12951 * remote.c (remote_insert_breakpoint): If this breakpoint has
12952 target-side commands but this stub doesn't support Z0 packets,
12953 throw NOT_SUPPORTED_ERROR error.
12954 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12955 * target.h (target_insert_breakpoint): Extend comment.
12956 (target_insert_hw_breakpoint): Add comment.
12957
12958 2014-01-08 Pedro Alves <palves@redhat.com>
12959
12960 * remote.c (remote_add_thread): Add threads silently if starting
12961 up.
12962 (remote_notice_new_inferior): If in all-stop, and starting up,
12963 don't call notice_new_inferior.
12964 (get_current_thread): New function, factored out from ...
12965 (add_current_inferior_and_thread): ... this. Adjust.
12966 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12967 found any thread, then select the remote's current thread as GDB's
12968 current thread too.
12969
12970 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12971
12972 * NEWS: Create a new section for the next release branch.
12973 Rename the section of the current branch, now that it has
12974 been cut.
12975
12976 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12977
12978 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12979 * version.in: Bump version to 7.7.50.DATE-cvs.
12980
12981 2014-01-08 Yao Qi <yao@codesourcery.com>
12982
12983 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12984 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12985 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12986
12987 2014-01-08 Yao Qi <yao@codesourcery.com>
12988
12989 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12990 return value of bfd_get_filename to symbol_file_add_from_bfd.
12991
12992 2014-01-08 Pierre Muller <muller@sourceware.org>
12993
12994 Fix PR16201.
12995 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12996 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12997 to prim_record_mininal_symbol_and_info.
12998 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12999 in call to prim_record_minimal_symbol_and_info.
13000 (read_pe_exported_syms): Set index field of section_data.
13001
13002 2014-01-07 Andrew Pinski <apinski@cavium.com>
13003
13004 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13005 * features/aarch64.c: Regenerate.
13006
13007 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13008
13009 * target.c (return_null): Define.
13010 (update_current_target): Use it instead of return_zero for
13011 functions that return a pointer.
13012
13013 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13014
13015 * source.c (add_path): Fix check for duplicated paths in the previously
13016 included paths.
13017
13018 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13019
13020 * ada-lang.c: Remove duplicated include statements.
13021 * alphabsd-nat.c: Ditto.
13022 * amd64-darwin-tdep.c: Ditto.
13023 * amd64fbsd-nat.c: Ditto.
13024 * auto-load.c: Ditto.
13025 * ax-gdb.c: Ditto.
13026 * breakpoint.c: Ditto.
13027 * dbxread.c: Ditto.
13028 * fork-child.c: Ditto.
13029 * gdb_usleep.c: Ditto.
13030 * i386-darwin-tdep.c: Ditto.
13031 * i386fbsd-nat.c: Ditto.
13032 * infcmd.c: Ditto.
13033 * inferior.c: Ditto.
13034 * jv-lang.c: Ditto.
13035 * linux-nat.c: Ditto.
13036 * linux-tdep.c: Ditto.
13037 * m68kbsd-nat.c: Ditto.
13038 * m68klinux-nat.c: Ditto.
13039 * microblaze-tdep.c: Ditto.
13040 * mips-linux-tdep.c: Ditto.
13041 * mn10300-tdep.c: Ditto.
13042 * nto-tdep.c: Ditto.
13043 * opencl-lang.c: Ditto.
13044 * osdata.c: Ditto.
13045 * printcmd.c: Ditto.
13046 * regcache.c: Ditto.
13047 * remote-m32r-sdi.c: Ditto.
13048 * remote.c: Ditto.
13049 * symfile.c: Ditto.
13050 * symtab.c: Ditto.
13051 * tilegx-linux-nat.c: Ditto.
13052 * tilegx-tdep.c: Ditto.
13053 * tracepoint.c: Ditto.
13054 * valops.c: Ditto.
13055 * vaxbsd-nat.c: Ditto.
13056 * windows-nat.c: Ditto.
13057 * xtensa-tdep.c: Ditto.
13058
13059 2014-01-07 Yao Qi <yao@codesourcery.com>
13060
13061 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13062
13063 2014-01-07 Yao Qi <yao@codesourcery.com>
13064 Joel Brobecker <brobecker@adacore.com>
13065
13066 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13067 (pdc_write_regs): Likewise.
13068 (fetch_regs_kernel_thread): Likewise.
13069 (store_regs_kernel_thread): Likewise.
13070
13071 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13072
13073 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13074 tagged type objects to their actual type.
13075
13076 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13077
13078 * ada-valprint.c (print_field_values): Add "language" parameter.
13079 Update calls to print_field_values and print_variant_part.
13080 Pass new parameter "language" in call to val_print instead
13081 of "current_language". Replace call to ada_val_print by call
13082 to val_print.
13083 (print_variant_part): Add "language" parameter.
13084 (ada_val_print_struct_union): Update call to print_field_values.
13085
13086 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13087
13088 * ada-valprint.c (ui_memcpy): Delete.
13089 (ada_print_floating): Update documentation. Add empty line
13090 between between function documentation and implementation.
13091 Delete variable "buffer". Use ui_file_xstrdup in place of
13092 ui_file_put. Minor adjustments following this change.
13093
13094 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13095
13096 * ada-valprint.c (ada_val_print_string): New function,
13097 extracted from ada_val_print_array.
13098 (ada_val_print_array): Replace extracted code by call
13099 to ada_val_print_string followed by a return. Move
13100 "else" branch to the function's top block.
13101
13102 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13103
13104 * ada-valprint.c (ada_val_print_array): Move implementation
13105 down. Rename parameter "offset" and "val" into "offset_aligned"
13106 and "original_value" respectively. Add parameter "offset".
13107
13108 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13109
13110 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13111 re-organizing the code. Change the "???" message printed
13112 when target type is a TYPE_CODE_UNDEF into
13113 "<ref to undefined type>".
13114
13115 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13116
13117 * ada-valprint.c (print_record): Delete, implementation inlined...
13118 (ada_val_print_struct_union): ... here. Remove call to
13119 ada_check_typedef in inlined implementation.
13120
13121 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13122
13123 * ada-valprint.c (ada_val_print_gnat_array): New function,
13124 extracted from ada_val_print_1;
13125 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13126 (ada_val_print_flt, ada_val_print_struct_union)
13127 (ada_val_print_ref): Likewise.
13128 (ada_val_print_1): Delete variables i and elttype.
13129 Replace extracted-out code by call to corresponding
13130 new functions.
13131
13132 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13133
13134 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13135
13136 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13137
13138 * ada-valprint.c (ada_val_print_1): Replace calls to
13139 ada_val_print_1 by calls to val_print.
13140
13141 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13142
13143 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13144 Update calls to self accordingly. Replace calls to c_val_print
13145 by calls to val_print.
13146
13147 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13148
13149 * ada-valprint.c (print_record): Delete declaration.
13150 (adjust_type_signedness, ada_val_print_1): Likewise.
13151 (ada_val_print): Move function implementation down.
13152 (print_variant_part, print_field_values, print_record):
13153 Move function implementation up.
13154
13155 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13156
13157 * python/py-type.c (typy_get_name): New function.
13158 (type_object_getset): Add entry for attribute "name".
13159 * NEWS: Add entry mentioning this new attribute.
13160
13161 2014-01-07 Yao Qi <yao@codesourcery.com>
13162
13163 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13164 statement.
13165
13166 2014-01-07 Yao Qi <yao@codesourcery.com>
13167
13168 * gnu-nat.c (info_port_rights): Add qualifier const to
13169 argument args.
13170
13171 2014-01-07 Yao Qi <yao@codesourcery.com>
13172
13173 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13174
13175 2014-01-07 Yao Qi <yao@codesourcery.com>
13176
13177 * gnu-nat.c (make_inf) Update declaration.
13178 (make_inf): Make it static.
13179 (inf_set_traced): Likewise.
13180 (inf_port_to_thread, inf_task_died_status): Likewise.
13181
13182 2014-01-07 Yao Qi <yao@codesourcery.com>
13183
13184 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13185
13186 2014-01-07 Yao Qi <yao@codesourcery.com>
13187
13188 * gnu-nat.c (_initialize_gnu_nat): Declare.
13189
13190 2014-01-07 Yao Qi <yao@codesourcery.com>
13191
13192 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13193 'enum bfd_endian'.
13194 (struct gdbarch_info) <byte_order>: Change type to
13195 'enum bfd_endian'.
13196 <byte_order_for_code>: Likewise.
13197 * gdbarch.c, gdbarch.h: Regenerated.
13198
13199 2014-01-06 Sasha Smundak <asmundak@google.com>
13200
13201 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13202
13203 2014-01-06 Tom Tromey <tromey@redhat.com>
13204
13205 * doublest.c (convert_doublest_to_floatformat): Use const, not
13206 CONST.
13207 * somread.c (som_symtab_read): Likewise.
13208
13209 2014-01-07 Hui Zhu <hui@codesourcery.com>
13210
13211 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13212 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13213 (gdb_bfd_fopen): Ditto.
13214 (gdb_bfd_openr): Ditto.
13215 (gdb_bfd_openw): Ditto.
13216 (gdb_bfd_openr_iovec): Ditto.
13217 (gdb_bfd_fdopenr): Ditto.
13218 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13219 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13220 with xstrdup.
13221 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13222 with xstrdup.
13223 * symfile-mem.c (symbol_file_add_from_memory): Removed
13224 gdb_bfd_stash_filename.
13225
13226 2014-01-03 Doug Evans <dje@google.com>
13227
13228 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13229 output.
13230
13231 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13232
13233 Update year range in copyright notice of all files.
13234
13235 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13236
13237 * top.c (print_gdb_version): Set copyright year to 2014.
13238
13239 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13240
13241 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13242
13243 For older changes see ChangeLog-2013.
13244 \f
13245 Local Variables:
13246 mode: change-log
13247 left-margin: 8
13248 fill-column: 74
13249 version-control: never
13250 coding: utf-8
13251 End:
This page took 0.305424 seconds and 4 git commands to generate.