9b822b457f48ad68609cbeeaf7b05ccb8d65f8b8
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
4 (m32r_linux_regset_from_core_section): Remove.
5 (m32r_linux_iterate_over_regset_sections): New.
6 (m32r_linux_init_abi): Adjust gdbarch initialization.
7
8 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
9
10 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
11 (amd64obsd_iterate_over_regset_sections): New.
12 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
13 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
14 Remove.
15 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
16 regset_from_core_section initialization.
17 * i386-tdep.c (i386_regset_from_core_section): Remove.
18 (i386_iterate_over_regset_sections): New.
19 (i386_gdbarch_init): Adjust gdbarch initialization.
20 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
21 (i386_iterate_over_regset_sections): New prototype.
22 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
23 Remove.
24 (i386obsd_aout_iterate_over_regset_sections): New.
25 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
26 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
27 targets.
28 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
29 (amd64fbsd_init_abi): Call fbsd_init_abi.
30 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
31 (i386fbsd4_init_abi): Call fbsd_init_abi.
32 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
33 target method 'make_corefile_notes'.
34 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
35
36 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
37
38 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
39 (hppa_hpux_iterate_over_regset_sections): New.
40 (hppa_hpux_init_abi): Adjust gdbarch initialization.
41 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
42 (hppa_linux_iterate_over_regset_sections): New.
43 (hppa_linux_init_abi): Adjust.
44 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
45 (hppanbsd_iterate_over_regset_sections): New.
46 (hppanbsd_init_abi): Adjust.
47 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
48 (hppaobsd_iterate_over_regset_sections): New.
49 (hppaobsd_init_abi): Adjust.
50
51 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
52
53 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
54 (frv_linux_iterate_over_regset_sections): New.
55 (frv_linux_init_abi): Adjust gdbarch initialization.
56
57 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
58
59 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
60 (armbsd_iterate_over_regset_sections): New prototype.
61 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
62 (armbsd_iterate_over_regset_sections): New.
63 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
64 initialization.
65
66 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
67
68 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
69 (alpha_linux_iterate_over_regset_sections): New.
70 (alpha_linux_init_abi): Adjust gdbarch initialization.
71 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
72 prototype.
73 (alphanbsd_iterate_over_regset_sections): New prototype.
74
75 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
76
77 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
78 Remove.
79 (aarch64_linux_iterate_over_regset_sections): New.
80 (aarch64_linux_init_abi): Adjust gdbarch initialization.
81
82 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
83
84 * fbsd-tdep.c: New file.
85 * fbsd-tdep.h: New file.
86 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
87 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
88 (ALLDEPFILES): Add fbsd-tdep.c.
89
90 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
91
92 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
93 parameter.
94 * gdbarch.h: Regenerate.
95 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
96 iterator.
97 (get_core_register_section): Add parameter 'regset' and use it, if
98 set. Add parameter 'min_size' and verify the bfd section size
99 against it.
100 (get_core_registers_cb): Add parameter 'regset' and pass it to
101 get_core_register section. For the "standard" register sections
102 ".reg" and ".reg2", set an appropriate default for human_name.
103 (get_core_registers): Don't abort when the gdbarch has an iterator
104 but no regset_from_core_section. Add NULL/0 for parameters
105 'regset'/'min_size' in calls to get_core_register_section.
106 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
107 'regset' and use it instead of calling the
108 regset_from_core_section gdbarch method.
109 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
110 * i386-tdep.c (i386_supply_xstateregset)
111 (i386_collect_xstateregset, i386_xstateregset): Moved to
112 i386-linux-tdep.c.
113 (i386_regset_from_core_section): Drop handling for .reg-xfp and
114 .reg-xstate.
115 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
116 core file support only if the regset iterator hasn't been set.
117 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
118 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
119 Moved from i386-tdep.c and renamed to *_linux*.
120 (i386_linux_iterate_over_regset_sections): Add regset parameter to
121 each callback invocation. Allow any .reg-xstate size when reading
122 from a core file.
123 * amd64-tdep.c (amd64_supply_xstateregset)
124 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
125 amd64-linux-tdep.c.
126 (amd64_regset_from_core_section): Remove.
127 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
128 install an amd64-specific regset_from_core_section gdbarch method.
129 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
130 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
131 Moved from amd64-tdep.c and renamed to *_linux*.
132 (amd64_linux_iterate_over_regset_sections): Add regset parameter
133 to each callback invocation. Allow any .reg-xstate size when
134 reading from a core file.
135 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
136 (arm_linux_iterate_over_regset_sections): Add regset parameter to
137 each callback invocation.
138 (arm_linux_init_abi): No longer set the regset_from_core_section
139 gdbarch method.
140 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
141 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
142 each callback invocation.
143 (ppc_linux_init_abi): No longer set the regset_from_core_section
144 gdbarch method.
145 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
146 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
147 (s390_regset_from_core_section): Remove.
148 (s390_iterate_over_regset_sections): Add regset parameter to each
149 callback invocation.
150 (s390_gdbarch_init): No longer set the regset_from_core_section
151 gdbarch method. Drop initialization of deleted tdep fields.
152
153 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
154
155 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
156 (amd64_linux_iterate_over_regset_sections): New.
157 (amd64_linux_init_abi_common): Don't install the regset section
158 list, but the new iterator in gdbarch.
159 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
160 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
161 (arm_linux_iterate_over_regset_sections): ...here. New function.
162 (arm_linux_init_abi): Set iterator instead of section list.
163 * corelow.c (get_core_registers_cb): New function, logic moved
164 from...
165 (get_core_registers): ...loop body here. Use new iterator method
166 instead of walking through the regset section list.
167 * gdbarch.sh: Remove 'core_regset_sections'. New method
168 'iterate_over_regset_sections'. New typedef
169 'iterate_over_regset_sections_cb'.
170 * gdbarch.c: Regenerate.
171 * gdbarch.h: Likewise.
172 * i386-linux-tdep.c (i386_linux_regset_sections)
173 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
174 Remove.
175 (i386_linux_iterate_over_regset_sections): New.
176 (i386_linux_init_abi): Don't choose a regset section list, but
177 install new iterator in gdbarch.
178 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
179 (linux_collect_regset_section_cb): New function, logic moved
180 from...
181 (linux_collect_thread_registers): ...loop body here. Use iterator
182 method instead of walking through list.
183 (linux_make_corefile_notes_1): Check for presence of iterator
184 method instead of regset section list.
185 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
186 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
187 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
188 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
189 (ppc_linux_iterate_over_regset_sections): ...here. New function.
190 (ppc_linux_init_abi): Don't choose from above regset section
191 lists, but install new iterator in gdbarch.
192 * regset.h (struct core_regset_section): Remove.
193 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
194 have_linux_v1, have_linux_v2, and have_tdb.
195 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
196 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
197 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
198 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
199 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
200 (s390_iterate_over_regset_sections): ...here. New function. Use
201 new tdep fields.
202 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
203 regset section lists, but install new iterator.
204
205 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
206
207 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
208
209 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
210
211 * progspace.c (print_program_space): Don't prune program spaces
212 before printing them.
213
214 2014-09-25 Pedro Alves <palves@redhat.com>
215
216 * infrun.c (user_visible_resume_ptid): Don't check
217 singlestep_breakpoints_inserted_p.
218
219 2014-09-25 Pedro Alves <palves@redhat.com>
220
221 * breakpoint.c (should_be_inserted): Add debug output.
222
223 2014-09-25 Pedro Alves <palves@redhat.com>
224
225 * infrun.c (stepping_past_instruction_at)
226 (clear_exit_convenience_vars): Point at infrun.h instead of
227 inferior.h.
228 (handle_signal_stop): Fix typo.
229
230 2014-09-24 Yao Qi <yao@codesourcery.com>
231
232 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
233 bitmask.
234
235 2014-09-22 Gary Benson <gbenson@redhat.com>
236
237 * target.c (target_stop): Updated comment.
238
239 2014-09-22 Gary Benson <gbenson@redhat.com>
240
241 * target/target.h (target_stop_ptid): Renamed as...
242 (target_stop_and_wait): New function. Updated comment.
243 All uses updated.
244 (target_continue_ptid): Renamed as...
245 (target_continue_no_signal): New function. Updated comment.
246 All uses updated.
247
248 2014-09-22 Pedro Alves <palves@redhat.com>
249
250 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
251 and "auto" merged.
252 * breakpoint.c (enum ugll_insert_mode): New enum.
253 (always_inserted_mode): Now a plain boolean.
254 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
255 (breakpoints_always_inserted_mode): Delete.
256 (breakpoints_should_be_inserted_now): New function.
257 (insert_breakpoints): Pass UGLL_INSERT to
258 update_global_location_list instead of calling
259 insert_breakpoint_locations manually.
260 (create_solib_event_breakpoint_1): New, factored out from ...
261 (create_solib_event_breakpoint): ... this.
262 (create_and_insert_solib_event_breakpoint): Use
263 create_solib_event_breakpoint_1 instead of calling
264 insert_breakpoint_locations manually.
265 (update_global_location_list): Change parameter type from boolean
266 to enum ugll_insert_mode. All callers adjusted. Adjust to use
267 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
268 (update_global_location_list_nothrow): Change parameter type from
269 boolean to enum ugll_insert_mode.
270 (_initialize_breakpoint): "breakpoint always-inserted" option is
271 now a boolean command. Update help text.
272 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
273 (breakpoints_should_be_inserted_now): New declaration.
274 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
275 Remove breakpoints_always_inserted_mode check.
276 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
277 * remote.c (remote_start_remote): Likewise.
278
279 2014-09-22 Pedro Alves <palves@redhat.com>
280
281 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
282 (insert_breakpoints): Don't call insert_breakpoint_locations here.
283 Instead, pass UGLL_INSERT to update_global_location_list.
284 (update_global_location_list): Change parameter type from boolean
285 to enum ugll_insert_mode. All callers adjusted. Adjust to use
286 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
287 (create_solib_event_breakpoint_1): New, factored out from ...
288 (create_solib_event_breakpoint): ... this.
289 (create_and_insert_solib_event_breakpoint): Use
290 create_solib_event_breakpoint_1 instead of calling
291 insert_breakpoint_locations manually.
292 (update_global_location_list): Handle UGLL_INSERT.
293
294 2014-09-22 Pedro Alves <palves@redhat.com>
295
296 * breakpoint.c (enum ugll_insert_mode): New enum.
297 (update_global_location_list)
298 (update_global_location_list_nothrow): Change parameter type from
299 boolean to enum ugll_insert_mode. All callers adjusted.
300
301 2014-09-19 Joel Brobecker <brobecker@adacore.com>
302
303 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
304 SystemTap support in GDB.
305
306 2014-09-19 Don Breazeal <donb@codesourcery.com>
307
308 * linux-nat.c (linux_handle_extended_wait): Call
309 linux_ptrace_get_extended_event.
310 (wait_lwp): Call linux_is_extended_waitstatus.
311 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
312 and linux_is_extended_waitstatus.
313 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
314 linux_ptrace_get_extended_event.
315 (linux_ptrace_get_extended_event): New function.
316 (linux_is_extended_waitstatus): New function.
317 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
318 (linux_is_extended_waitstatus): New declarations.
319
320 2014-09-19 Yao Qi <yao@codesourcery.com>
321
322 * dwarf2read.c (dwarf_decode_lines): Update declaration.
323 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
324 comments. Callers update.
325 (dwarf_decode_lines): Likewise.
326 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
327 comments. Skip the line table if 'lowpc' is greater than
328 'address'. Don't check
329 dwarf2_per_objfile->has_section_at_zero.
330
331 2014-09-18 Doug Evans <dje@google.com>
332
333 * NEWS: Mention new "producer" attribute of gdb.Symtab.
334 * python/py-symtab.c (stpy_get_producer): New function.
335 (symtab_object_getset): Add "producer" attribute.
336
337 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
338
339 PR gdb/17384
340 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
341 (do_captured_read_memory_integer): Remove.
342 (safe_read_memory_integer): Use target_read_memory directly instead
343 of catching errors in do_captured_read_memory_integer.
344
345 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
346
347 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
348 not gdb/doc.
349
350 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
351
352 * objc-lang.c (find_implementation_from_class): Remove dead code.
353
354 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
355
356 PR cli/7233
357 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
358 "fprintf_unfiltered (gdb_stdlog...)".
359
360 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
361
362 PR breakpoints/12526
363 * breakpoint.h (struct watchpoint): New fields val_bitpos and
364 val_bitsize.
365 * breakpoint.c (watch_command_1): Use these fields to retain
366 bitfield information.
367 (extract_bitfield_from_watchpoint_value): New function.
368 (watchpoint_check): Use it.
369 (update_watchpoint): Use it. Optimize the address and length of a
370 HW watchpoint pointing to a bitfield.
371 * value.h (unpack_value_bitfield): New prototype.
372 * value.c (unpack_value_bitfield): Make extern.
373
374 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
375
376 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
377 x86-dregs.o.
378 * gnu-nat.c (inf_threads): New function.
379 * gnu-nat.h (inf_threads_ftype): New typedef.
380 (inf_threads): New declaration.
381 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
382 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
383 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
384 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
385 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
386 (i386_gnu_dr_get_control): New functions.
387 (reg_addr): New structure.
388 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
389 i386 debugging register hooks.
390 * NEWS: Mention this.
391
392 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
393
394 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
395 vector data transfer instructions.
396 (arm_record_coproc_data_proc): Updated.
397
398 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
399
400 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
401 arm_record_exreg_ld_st_insn.
402 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
403 load/store insns.
404
405 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
406
407 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
408 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
409 processing instructions.
410
411 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
412
413 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
414 for advance SIMD struct ld/st insn.
415 (thumb2_record_decode_insn_handler): Replace stub handler with
416 thumb2_record_asimd_struct_ld_st.
417
418 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
419
420 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
421 for asimd, vfp and coprocessor insns.
422 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
423 and coprocessor insns.
424 (thumb2_record_coproc_insn): New function.
425 (thumb2_record_decode_insn_handler): Update coprocessor insns record
426 handlers.
427 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
428 opcode 110 insns.
429
430 2014-09-13 Doug Evans <xdje42@gmail.com>
431
432 * NEWS: Mention new "queue-signal" command.
433 * infcmd.c (queue_signal_command): New function.
434 (_initialize_infcmd): Add new queue-signal command.
435
436 2014-09-13 Doug Evans <xdje42@gmail.com>
437
438 * linux-nat.c (wait_lwp): Add debugging printf.
439 (linux_nat_wait_1): Ditto.
440
441 2014-09-12 Pedro Alves <palves@redhat.com>
442
443 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
444 (create_and_insert_solib_event_breakpoint): New functions.
445 * breakpoint.h (create_and_insert_solib_event_breakpoint)
446 (remove_solib_event_breakpoints_at_next_stop): New declarations.
447 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
448 (remove_dbx_link_breakpoint): Delete function.
449 (insert_dbx_link_bpt_in_file): Use
450 create_and_insert_solib_event_breakpoint instead of
451 deprecated_insert_raw_breakpoint.
452 (procfs_wait): Don't check whether we hit __dbx_link here.
453 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
454 here.
455 * solib-irix.c (base_breakpoint): Delete global.
456 (disable_break): Delete function.
457 (enable_break): Use create_solib_event_breakpoint
458 instead of deprecated_insert_raw_breakpoint.
459 (irix_solib_handle_event): New function.
460 (irix_solib_create_inferior_hook): Don't run the target or disable
461 the mapping-complete breakpoint here.
462 (_initialize_irix_solib): Install irix_solib_handle_event as
463 so_ops->handle_event hook.
464
465 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
466 Ulrich Weigand  <uweigand@de.ibm.com>
467
468 PR tdep/17379
469 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
470 instead of read_memory_unsigned_integer.
471
472 2014-09-12 Gary Benson <gbenson@redhat.com>
473
474 * nat/linux-waitpid.c: Include common-defs.h.
475 [GDBSERVER]: Add FIXME comment.
476 [!GDBSERVER]: Don't include defs.h or signal.h.
477 (linux_debug) [!GDBSERVER]: Remove empty block.
478
479 2014-09-12 Gary Benson <gbenson@redhat.com>
480
481 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
482 Don't include defs.h or server.h.
483
484 2014-09-12 Gary Benson <gbenson@redhat.com>
485
486 * nat/linux-btrace.c: Include common-defs.h.
487 Don't include defs.h, server.h or gdbthread.h.
488 * nat/linux-btrace.h (struct target_ops): New forward declaration.
489
490 2014-09-12 Gary Benson <gbenson@redhat.com>
491
492 * common/agent.c: Include common-defs.h.
493 Don't include defs.h or server.h.
494 * common/buffer.c: Likewise.
495 * common/common-debug.c: Likewise.
496 * common/common-utils.c: Likewise.
497 * common/errors.c: Likewise.
498 * common/filestuff.c: Likewise.
499 * common/format.c: Likewise.
500 * common/gdb_vecs.c: Likewise.
501 * common/print-utils.c: Likewise.
502 * common/ptid.c: Likewise.
503 * common/rsp-low.c: Likewise.
504 * common/signals.c: Likewise.
505 * common/vec.c: Likewise.
506 * common/xml-utils.c: Likewise.
507 * nat/linux-osdata.c: Likewise.
508 * nat/linux-procfs.c: Likewise.
509 * nat/linux-ptrace.c: Likewise.
510 * nat/mips-linux-watch.c: Likewise.
511 * target/waitstatus.c: Likewise.
512
513 2014-09-12 Tom Tromey <tromey@redhat.com>
514 Gary Benson <gbenson@redhat.com>
515
516 * common/common-regcache.h: New file.
517 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
518 * regcache.h: Include common-regcache.h.
519 (regcache_read_pc): Don't declare.
520 * regcache.c (get_thread_regcache_for_ptid): New function.
521 * nat/linux-btrace.c: Don't include regcache.h.
522 Include common-regcache.h.
523 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
524
525 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
526
527 * regcache.h (struct regset): Declare.
528
529 2014-09-11 Pedro Alves <palves@redhat.com>
530
531 PR gdb/17347
532 * main.c: Include "infrun.h".
533 (catch_command_errors, catch_command_errors_const): Wait for the
534 foreground command to complete.
535 * top.c (maybe_wait_sync_command_done): New function, factored out
536 from ...
537 (maybe_wait_sync_command_done): ... here.
538 * top.h (maybe_wait_sync_command_done): New declaration.
539
540 2014-09-11 Tom Tromey <tromey@redhat.com>
541 Gary Benson <gbenson@redhat.com>
542
543 * common/symbol.h: New file.
544 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
545 * minsyms.c (find_minimal_symbol_address): New function.
546 * common/agent.c: Include common/symbol.h.
547 [!GDBSERVER]: Don't include objfiles.h.
548 (agent_look_up_symbols): Use find_minimal_symbol_address.
549
550 2014-09-11 Gary Benson <gbenson@redhat.com>
551
552 * target/target.h (target_stop_ptid, target_continue_ptid):
553 Declare.
554 * target.c (target_stop_ptid, target_continue_ptid): New
555 functions.
556 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
557 (agent_run_command): Always use target_stop_ptid and
558 target_continue_ptid.
559
560 2014-09-11 Tom Tromey <tromey@redhat.com>
561 Gary Benson <gbenson@redhat.com>
562
563 * target/target.h: New file.
564 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
565 * target.h: Include target/target.h.
566 (target_read_memory, target_write_memory): Don't declare.
567 * target.c (target_read_uint32): New function.
568 * common/agent.c: Include target/target.h.
569 [!GDBSERVER]: Don't include target.h.
570 (helper_thread_id): Type changed to uint32_t.
571 (agent_get_helper_thread_id): Use target_read_uint32.
572 (agent_run_command): Always use target_read_memory and
573 target_write_memory.
574 (agent_capability): Type changed to uint32_t.
575 (agent_capability_check): Use target_read_uint32.
576
577 2014-09-11 Gary Benson <gbenson@redhat.com>
578
579 * common/common-debug.h (show_debug_regs): Declare.
580 * common/common-debug.c (show_debug_regs): Define.
581 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
582 all uses with show_debug_regs. Replace all uses that considered
583 debug_hw_points as a multi-value integer with straight boolean
584 uses.
585 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
586 with show_debug_regs.
587 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
588 all uses with show_debug_regs.
589 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
590 uses with show_debug_regs.
591
592 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
593
594 * findvar.c (address_from_register): Handle targets requiring
595 a special conversion routine even for plain pointer types.
596
597 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
598
599 * rs6000-nat.c (exec_one_dummy_insn): Remove.
600 (store_register): Do not call exec_one_dummy_insn.
601
602 2014-09-10 Joel Brobecker <brobecker@adacore.com>
603
604 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
605 dereference it first. Use value_enclosing_type instead of
606 value_type.
607 (ada_array_length): Likewise.
608
609 2014-09-10 Joel Brobecker <brobecker@adacore.com>
610
611 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
612 Adjust function implementation and documentation accordingly.
613 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
614 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
615 Update call to ada_value_ptr_subscript.
616
617 2014-09-10 Joel Brobecker <brobecker@adacore.com>
618
619 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
620 instead of VAL's type.
621
622 2014-09-10 Joel Brobecker <brobecker@adacore.com>
623
624 * amd64-linux-nat.c: Add <sys/uio.h> #include.
625
626 2014-09-09 Doug Evans <xdje42@gmail.com>
627
628 PR guile/17367
629 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
630 last parameter to pkg-config, not first.
631 * configure.ac: Pass --with-guile provided pkg-config path to
632 GDB_GUILE_PROGRAM_NAMES.
633 * configure: Regenerate.
634
635 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
636
637 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
638 Bertazi".
639
640 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
641
642 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
643 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
644 the list of sections determining GDB_OSABI_IRIX.
645
646 2014-09-09 James Hogan <james.hogan@imgtec.com>
647
648 * MAINTAINERS (Write After Approval): Add "James Hogan".
649
650 2014-09-09 James Hogan <james.hogan@imgtec.com>
651
652 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
653
654 2014-09-09 Joel Brobecker <brobecker@adacore.com>
655
656 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
657
658 2014-09-08 Doug Evans <xdje42@gmail.com>
659
660 PR 17247
661 * guile.c: #include <signal.h>.
662 (_initialize_guile): Block SIGCHLD while initializing Guile.
663
664 Replaces the following, which is reverted.
665
666 2014-07-26 Doug Evans <xdje42@gmail.com>
667
668 PR 17185
669 * configure.ac: Add check for header gc/gc.h.
670 Add check for function setenv.
671 * configure: Regenerate.
672 * config.in: Regenerate.
673 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
674
675 2014-09-08 Doug Evans <xdje42@gmail.com>
676
677 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
678 with named constant. Fix style of pointer comparison.
679 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
680
681 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
682
683 PR gdb/17035
684 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
685 decide whether we display the command on "show user".
686 * cli/cli-script.c (show_user_1): Only verify cmdlines after
687 printing command name.
688 * cli/cli-decode.h (cli_user_command_p): Declare new function.
689 * cli/cli-decode.c (cli_user_command_p): Create helper function
690 to verify whether cmd_list_element is a user-defined command.
691
692 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
693
694 PR python/17355
695 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
696 Fix goto out of TRY_CATCH.
697
698 2014-09-06 Doug Evans <xdje42@gmail.com>
699 Tom Tromey <tromey@redhat.com>
700
701 PR 15276
702 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
703 $_any_caller_matches.
704 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
705 * python/lib/gdb/function/caller_is.py: New file.
706
707 2014-09-06 Doug Evans <xdje42@gmail.com>
708
709 * infcmd.c (program_info): Fix typo.
710
711 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
712
713 PR gdb/17235
714 * stap-probe.c (stap_parse_single_operand): Delete unused variable
715 'number'. New variable 'has_digit'. Rewrite code to deal with
716 subexpressions on SDT probes.
717
718 2014-09-04 Pedro Alves <palves@redhat.com>
719
720 * c-exp.y (parse_number): Skip handling base-switching prefixes if
721 the input is only one character long.
722
723 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
724
725 PR fortran/17237
726 * f-valprint.c (f_val_print): Specify the correct print option to
727 use when printing integer values.
728
729 2014-09-04 Gary Benson <gbenson@redhat.com>
730
731 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
732 Remove code to cope with LWPs wrapped as PIDs.
733 Add assertions to ensure no wrapped LWPs are passed.
734
735 2014-09-04 Pedro Alves <palves@redhat.com>
736
737 * value.c (value_ranges_copy_adjusted): New function, factored out
738 from ...
739 (value_contents_copy_raw): ... here.
740 (unpack_value_bits_as_long_1): Rename back to ...
741 (unpack_bits_as_long): ... this. Remove 'original_value' and
742 'result' parameters. Change return type to LONGEST.
743 (unpack_value_bits_as_long): Delete.
744 (unpack_value_field_as_long_1): Delete.
745 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
746 (unpack_value_bitfield): New function.
747 (value_field_bitfield): Reimplement using unpack_value_bitfield.
748 (value_fetch_lazy): Use unpack_value_bitfield.
749 * value.h (unpack_value_bits_as_long): Delete declaration.
750
751 2014-09-03 Sasha Smundak <asmundak@google.com>
752
753 * python/py-frame.c (frapy_read_register): New function.
754
755 2014-09-03 James Hogan <james.hogan@imgtec.com>
756
757 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
758 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
759
760 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
761
762 PR python/16699
763 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
764 function.
765 (add_cmd): Set "completer_handle_brkchars" to NULL.
766 * cli/cli-decode.h (struct cmd_list_element)
767 <completer_handle_brkchars>: New field.
768 * command.h (completer_ftype_void): New typedef.
769 (set_cmd_completer_handle_brkchars): New prototype.
770 * completer.c (set_gdb_completion_word_break_characters): New
771 function.
772 (complete_line_internal): Call "completer_handle_brkchars"
773 callback from command.
774 * completer.h: Include "command.h".
775 (set_gdb_completion_word_break_characters): New prototype.
776 * python/py-cmd.c (cmdpy_completer_helper): New function.
777 (cmdpy_completer_handle_brkchars): New function.
778 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
779 (cmdpy_init): Set completer_handle_brkchars to
780 cmdpy_completer_handle_brkchars.
781
782 2014-09-03 Gary Benson <gbenson@redhat.com>
783
784 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
785 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
786 Loop conditions changed to equivalent form.
787 (struct x86_debug_reg_state): Updated dr_ref_count comment.
788 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
789 ALL_DEBUG_ADDRESS_REGISTERS.
790
791 2014-09-03 Joel Brobecker <brobecker@adacore.com>
792
793 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
794 description fix.
795
796 2014-09-02 Doug Evans <dje@google.com>
797
798 * typeprint.c (find_global_typedef): Fix comment.
799
800 2014-09-02 Gary Benson <gbenson@redhat.com>
801
802 * i386-nat.h: Renamed as...
803 * x86-nat.h: New file. All type, function and variable name
804 prefixes changed from "i386_" to "x86_". All references updated.
805 * i386-nat.c: Renamed as...
806 * x86-nat.c: New file. All type, function and variable name
807 prefixes changed from "i386_" to "x86_". All references updated.
808 * common/i386-xstate.h: Renamed as...
809 * common/x86-xstate.h: New file. All type, function and variable
810 name prefixes changed from "i386_" to "x86_". All references
811 updated.
812 * nat/i386-cpuid.h: Renamed as...
813 * nat/x86-cpuid.h: New file. All type, function and variable name
814 prefixes changed from "i386_" to "x86_". All references updated.
815 * nat/i386-gcc-cpuid.h: Renamed as...
816 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
817 name prefixes changed from "i386_" to "x86_". All references
818 updated.
819 * nat/i386-dregs.h: Renamed as...
820 * nat/x86-dregs.h: New file. All type, function and variable name
821 prefixes changed from "i386_" to "x86_". All references updated.
822 * nat/i386-dregs.c: Renamed as...
823 * nat/x86-dregs.c: New file. All type, function and variable name
824 prefixes changed from "i386_" to "x86_". All references updated.
825
826 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
827
828 * varobj.c (_initialize_varobj): Move to the end of file.
829
830 2014-08-29 Gary Benson <gbenson@redhat.com>
831
832 * common/common-exceptions.h: New file.
833 * common/common-exceptions.c: Likewise.
834 * Makefile.in (SFILES): Add common/common-exceptions.c.
835 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
836 (COMMON_OBS): Add common-exceptions.o.
837 (common-exceptions.o): New rule.
838 * exceptions.h (common-exceptions.h): Include.
839 (gdb_setjmp.h): Do not include.
840 (return_reason): Moved to common-exceptions.h.
841 (enum return_reason): Likewise.
842 (RETURN_MASK): Likewise.
843 (typedef return_mask): Likewise.
844 (enum errors): Likewise.
845 (struct gdb_exception): Likewise.
846 (exceptions_state_mc_init): Likewise.
847 (exceptions_state_mc_action_iter): Likewise.
848 (exceptions_state_mc_action_iter_1): Likewise.
849 (TRY_CATCH): Likewise.
850 (throw_exception): Likewise.
851 (throw_verror): Likewise.
852 (throw_vquit): Likewise.
853 (throw_error): Likewise.
854 (throw_quit): Likewise.
855 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
856 (enum catcher_action): Likewise.
857 (struct catcher): Likewise.
858 (current_catcher): Likewise.
859 (catcher_list_size): Likewise.
860 (exceptions_state_mc_init): Likewise.
861 (catcher_pop): Likewise.
862 (exceptions_state_mc): Likewise.
863 (exceptions_state_mc_action_iter): Likewise.
864 (exceptions_state_mc_action_iter_1): Likewise.
865 (throw_exception): Likewise.
866 (exception_messages): Likewise.
867 (exception_messages_size): Likewise.
868 (throw_it): Likewise.
869 (throw_verror): Likewise.
870 (throw_vquit): Likewise.
871 (throw_error): Likewise.
872 (throw_quit): Likewise.
873 (prepare_to_throw_exception): New function.
874
875 2014-08-29 Gary Benson <gbenson@redhat.com>
876
877 * common/gdb_setjmp.h: New file.
878 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
879 * configure.ac: Move sigsetjmp check...
880 * common/common.m4: ...here.
881 * configure: Regenerate.
882 * cp-support.c (SIGJMP_BUF): Delete.
883 (SIGSETJMP): Likewise.
884 (SIGLONGJMP): Likewise.
885 * exceptions.h (gdb_setjmp.h): Include.
886 (setjmp.h): Do not include.
887 (EXCEPTIONS_SIGJMP_BUF): Delete.
888 (EXCEPTIONS_SIGSETJMP): Likewise.
889 (EXCEPTIONS_SIGLONGJMP): Likewise.
890 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
891 from gdb_setjmp.h.
892 * exceptions.c: Likewise.
893
894 2014-08-29 Gary Benson <gbenson@redhat.com>
895
896 * cleanups.h: Moved to...
897 * common/cleanups.h: New file.
898 * cleanups.c: Moved to...
899 * common/cleanups.c: New file. Include common-defs.h and
900 cleanups.h. Do not include defs.h.
901 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
902 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
903 (cleanups.o): New rule.
904
905 2014-08-29 Gary Benson <gbenson@redhat.com>
906
907 * common/errors.h (internal_warning): New declaration.
908 (internal_vwarning): Likewise.
909 * common/errors.c (internal_warning): New function.
910 * utils.h (internal_warning): Don't declare.
911 (internal_vwarning): Likewise.
912 * utils.c (internal_warning): Removed.
913
914 2014-08-29 Gary Benson <gbenson@redhat.com>
915
916 * main.c (captured_main): Use warning during startup.
917 Prefix startup warning messages with command name.
918
919 2014-08-29 Gary Benson <gbenson@redhat.com>
920
921 * main.c (captured_main): Handle usage errors with error.
922
923 2014-08-29 Gary Benson <gbenson@redhat.com>
924
925 * go32-nat.c (go32_create_inferior): Replace a fprintf/
926 exit pair with a call to error. Wrap the message with _().
927
928 2014-08-29 Gary Benson <gbenson@redhat.com>
929
930 * main.c (captured_main): Replace a fprintf/exit
931 pair with a call to error. Wrap the message with _().
932
933 2014-08-29 Gary Benson <gbenson@redhat.com>
934
935 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
936 pairs with calls to error. Wrap the message with _().
937
938 2014-08-29 Gary Benson <gbenson@redhat.com>
939
940 * utils.c (vwarning): Protect calls to target_terminal_ours
941 and wrap_here.
942
943 2014-08-29 Gary Benson <gbenson@redhat.com>
944
945 * exceptions.c (print_flush): Protect calls to
946 target_terminal_ours and wrap_here.
947
948 2014-08-29 Gary Benson <gbenson@redhat.com>
949
950 * utils.h (filtered_printing_initialized): New declaration.
951 * utils.c (abort_with_message): New function.
952 (internal_vproblem): Use abort_with_message for first level
953 recursive internal problems, and if gdb_stderr is not set up.
954 Protect calls to target_terminal_ours, begin_line and query.
955
956 2014-08-28 Doug Evans <dje@google.com>
957
958 * symtab.c (in_prologue): Move definition to better spot.
959 (skip_prologue_using_sal): Ditto.
960
961 2014-08-28 Doug Evans <dje@google.com>
962
963 * symtab.c (find_function_start_sal): Move definition to better spot.
964
965 2014-08-28 Yao Qi <yao@codesourcery.com>
966
967 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
968 found_stack_adjust in forward scan. Remove condition check
969 on found_stack_adjust which is always true. Indent the code.
970
971 2014-08-28 Yao Qi <yao@codesourcery.com>
972
973 * dwarf2read.c (dwarf_decode_lines): Update declaration.
974 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
975 (dwarf_decode_lines): Remove argument
976 want_line_info. Remove condition check on want_line_info.
977 Callers update.
978
979 2014-08-27 Doug Evans <dje@google.com>
980
981 * dwarf2read.c (dwarf_record_line): Fix typo.
982
983 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
984
985 * target.h (struct target_ops::to_terminal_save_ours): Remove
986 declaration.
987 (target_terminal_save_ours): Remove macro.
988 * target-delegates.c: Regenerate.
989 * inf-child.c (inf_child_target): Don't set the nonexistent
990 field to_terminal_save_ours.
991 * inferior.h (child_terminal_save_ours): Remove declaration.
992 * terminal.h (gdb_save_tty_state): New declaration.
993 * inflow.c (child_terminal_save_ours): Rename to ...
994 (gdb_save_tty_state): ... this.
995 * tui/tui.c: Include terminal.h.
996 (tui_enable): Use gdb_save_tty_state instead of
997 target_terminal_save_ours.
998 (tui_disable): Likewise.
999
1000 2014-08-25 Doug Evans <dje@google.com>
1001
1002 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1003 Pass NULL instead of 0 for context pointer.
1004
1005 2014-08-25 Yao Qi <yao@codesourcery.com>
1006
1007 * dwarf2read.c: Fix grammatical error.
1008
1009 2014-08-24 Yao Qi <yao@codesourcery.com>
1010
1011 * dwarf2read.c (scan_partial_symbols): Update comments.
1012 Rename argument 'need_pc' with 'set_addrmap'.
1013 (add_partial_namespace): Rename argument 'need_pc' with
1014 'set_addrmap'.
1015 (add_partial_module): Likewise.
1016 (add_partial_subprogram): Likewise. Update comments.
1017 (dwarf2_name): Fix typo.
1018
1019 2014-08-22 Doug Evans <dje@google.com>
1020
1021 PR 17276
1022 * dwarf2read.c (dwarf_record_line_p): New function.
1023 (dwarf_decode_lines_1): Ignore subsequent line number entries
1024 for the same line if any entry had a non-zero discriminator.
1025
1026 2014-08-22 Doug Evans <dje@google.com>
1027
1028 * buildsym.h (record_line_ftype): New typedef.
1029 (record_line): Use it.
1030 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1031 (dwarf_decode_lines_1): Call them.
1032
1033 2014-08-22 Yao Qi <yao@codesourcery.com>
1034
1035 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1036 (ctf_end): Remove code.
1037
1038 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1039
1040 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1041 (linux_make_corefile_notes): call update_thread_list, protected against
1042 exceptions.
1043
1044 2014-08-21 Pedro Alves <palves@redhat.com>
1045
1046 * infcmd.c (attach_command): Remove comment.
1047
1048 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1049
1050 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1051 unsigned LONGEST to ULONGEST.
1052
1053 2014-08-20 Pedro Alves <palves@redhat.com>
1054
1055 * Makefile.in (check-read1): New rule.
1056
1057 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1058
1059 * value.c (value_from_contents_and_address): Strip resolved_type's
1060 typedef layers before checking its TYPE_DATA_LOCATION.
1061
1062 2014-08-20 Pedro Alves <palves@redhat.com>
1063
1064 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1065
1066 2014-08-20 Yao Qi <yao@codesourcery.com>
1067
1068 * amd64-tdep.c (amd64_classify): Add a blank line after the
1069 example. Move "*/" to a new line.
1070 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1071 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1072 * dwarf2read.c (psymtab_include_file_name): Likewise.
1073
1074 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1075 Pedro Alves <palves@redhat.com>
1076
1077 PR symtab/14604
1078 PR symtab/14605
1079 * ada-lang.c (coerce_unspec_val_to_type): Use
1080 value_contents_copy_raw.
1081 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1082 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1083 * cp-valprint.c (cp_print_value_fields): Let the common printing
1084 code handle optimized out values.
1085 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1086 * d-valprint.c (dynamic_array_type): Use
1087 value_bits_any_optimized_out.
1088 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1089 check_any_valid fields.
1090 (check_pieced_value_bits): Delete and inline ...
1091 (check_pieced_synthetic_pointer): ... here.
1092 (check_pieced_value_validity): Delete.
1093 (check_pieced_value_invalid): Delete.
1094 (pieced_value_funcs): Remove check_validity and check_any_valid
1095 fields.
1096 (read_pieced_value): Use mark_value_bits_optimized_out.
1097 (write_pieced_value): Switch to use
1098 mark_value_bytes_optimized_out.
1099 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1100 of assuming the whole value is optimized out.
1101 * findvar.c (read_frame_register_value): Remove special handling
1102 of optimized out registers.
1103 (value_from_register): Use mark_value_bytes_optimized_out.
1104 * frame-unwind.c (frame_unwind_got_optimized): Use
1105 mark_value_bytes_optimized_out.
1106 * jv-valprint.c (java_value_print): Adjust.
1107 (java_print_value_fields): Let the common printing code handle
1108 optimized out values.
1109 * mips-tdep.c (mips_print_register): Remove special handling of
1110 optimized out registers.
1111 * opencl-lang.c (lval_func_check_validity): Delete.
1112 (lval_func_check_any_valid): Delete.
1113 (opencl_value_funcs): Remove check_validity and check_any_valid
1114 fields.
1115 * p-valprint.c (pascal_object_print_value_fields): Let the common
1116 printing code handle optimized out values.
1117 * stack.c (read_frame_arg): Remove special handling of optimized
1118 out values. Fetch both VAL and ENTRYVAL before comparing
1119 contents. Adjust to value_available_contents_eq rename.
1120 * valprint.c (valprint_check_validity)
1121 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1122 (val_print_array_elements): Adjust.
1123 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1124 (value_bits_any_optimized_out): New function.
1125 (value_entirely_covered_by_range_vector): New function, factored
1126 out from value_entirely_unavailable.
1127 (value_entirely_unavailable): Reimplement.
1128 (value_entirely_optimized_out): New function.
1129 (insert_into_bit_range_vector): New function, factored out from
1130 mark_value_bits_unavailable.
1131 (mark_value_bits_unavailable): Reimplement.
1132 (struct ranges_and_idx): New struct.
1133 (find_first_range_overlap_and_match): New function, factored out
1134 from value_available_contents_bits_eq.
1135 (value_available_contents_bits_eq): Rename to ...
1136 (value_contents_bits_eq): ... this. Check both unavailable
1137 contents and optimized out contents.
1138 (value_available_contents_eq): Rename to ...
1139 (value_contents_eq): ... this.
1140 (allocate_value_lazy): Remove reference to the old optimized_out
1141 boolean.
1142 (allocate_optimized_out_value): Use
1143 mark_value_bytes_optimized_out.
1144 (require_not_optimized_out): Adjust to check whether the
1145 optimized_out vec is empty.
1146 (ranges_copy_adjusted): New function, factored out from
1147 value_contents_copy_raw.
1148 (value_contents_copy_raw): Also copy the optimized out ranges.
1149 Assert the destination ranges aren't optimized out.
1150 (value_contents_copy): Update comment, remove call to
1151 require_not_optimized_out.
1152 (value_contents_equal): Adjust to check whether the optimized_out
1153 vec is empty.
1154 (set_value_optimized_out, value_optimized_out_const): Delete.
1155 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1156 New functions.
1157 (value_entirely_optimized_out, value_bits_valid): Delete.
1158 (value_copy): Take a VEC copy of the 'optimized_out' field.
1159 (value_primitive_field): Remove special handling of optimized out.
1160 (value_fetch_lazy): Assert that lazy values have no unavailable
1161 regions. Use value_bits_any_optimized_out. Remove some special
1162 handling for optimized out values.
1163 * value.h: Add intro comment about <optimized out> and
1164 <unavailable>.
1165 (struct lval_funcs): Remove check_validity and check_any_valid
1166 fields.
1167 (set_value_optimized_out, value_optimized_out_const): Remove.
1168 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1169 New declarations.
1170 (value_bits_any_optimized_out): New declaration.
1171 (value_bits_valid): Delete declaration.
1172 (value_available_contents_eq): Rename to ...
1173 (value_contents_eq): ... this, and extend comments.
1174
1175 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1176
1177 Fix -fsanitize=address on unreadable inferior strings.
1178 * valprint.c (val_print_string): Fix access before BUFFER.
1179
1180 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1181
1182 * target.c (target_struct_size): Remove.
1183 (target_struct_allocsize): Remove.
1184 (DEFAULT_ALLOCSIZE): Remove.
1185 (target_ops_p): New typedef.
1186 (DEF_VEC_P (target_ops_p)): New vector type.
1187 (target_structs): Change type to VEC (target_ops_p).
1188 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1189 (find_default_run_target): Rewrite for loop following changes to
1190 target_structs.
1191
1192 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1193
1194 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1195 Adjust code accordingly. Adjust function description comment.
1196
1197 2014-08-19 Yao Qi <yao@codesourcery.com>
1198
1199 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1200 types.
1201
1202 2014-08-19 Alan Modra <amodra@gmail.com>
1203
1204 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1205 * config.in: Regenerate.
1206 * configure: Regenerate.
1207
1208 2014-08-19 Tom Tromey <tromey@redhat.com>
1209 Gary Benson <gbenson@redhat.com>
1210
1211 * common/common-debug.h: New file.
1212 * common/common-debug.c: Likewise.
1213 * debug.c: Likewise.
1214 * Makefile.in (SFILES): Add common/common-debug.c.
1215 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1216 (COMMON_OBS): Add common-debug.o and debug.o.
1217 (common-debug.o): New rule.
1218 * common/common-defs.h: Include common-debug.h.
1219 * common/agent.c (debug_agent_printf): New function.
1220 (DEBUG_AGENT): Redefine.
1221 * nat/i386-dregs.c (debug_printf): Undefine.
1222
1223 2014-08-19 Gary Benson <gbenson@redhat.com>
1224
1225 * common/common-defs.h: Include print-utils.h.
1226 * utils.h: Do not include print-utils.h.
1227
1228 2014-08-19 Tom Tromey <tromey@redhat.com>
1229 Gary Benson <gbenson@redhat.com>
1230
1231 * common/common-types.h: New file.
1232 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1233 * common/common-defs.h: Include common-types.h.
1234 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1235 (ULONGEST): Remove.
1236
1237 2014-08-19 Tom Tromey <tromey@redhat.com>
1238 Gary Benson <gbenson@redhat.com>
1239
1240 * common/errors.h: New file.
1241 * common/errors.c: Likewise.
1242 * Makefile.in (SFILES): Add common/errors.c.
1243 (HFILES_NO_SRCDIR): Add common/errors.h.
1244 (COMMON_OBS): Add errors.o.
1245 (errors.o): New rule.
1246 * common/common-defs.h: Include errors.h.
1247 * utils.h (perror_with_name, error, verror, warning, vwarning):
1248 Don't declare.
1249 * common/common-utils.h: (malloc_failure, internal_error):
1250 Likewise.
1251
1252 2014-08-19 Gary Benson <gbenson@redhat.com>
1253
1254 * utils.c (internal_vproblem): Always print the message.
1255
1256 2014-08-18 Doug Evans <dje@google.com>
1257
1258 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1259
1260 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1261
1262 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1263 Return 0 if TYPE is dynamic.
1264 (print_range): Add handling of dynamic ranges.
1265
1266 2014-08-18 Keven Boell <keven.boell@intel.com>
1267 Joel Brobecker <brobecker@adacore.com>
1268
1269 * gdbtypes.h (struct main_type): Add field "data_location".
1270 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1271 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1272 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1273 a dynamic data location.
1274 (resolve_dynamic_type): Add DW_AT_data_location handling.
1275 (copy_recursive, copy_type): Copy the data_location information
1276 when present.
1277 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1278 * value.c (value_from_contents_and_address): Add
1279 DW_AT_data_location handling.
1280
1281 2014-08-18 Keven Boell <keven.boell@intel.com>
1282 Joel Brobecker <brobecker@adacore.com>
1283
1284 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1285 field "get_object_address".
1286 * dwarf2expr.c (execute_stack_op): Add handling for
1287 DW_OP_push_object_address.
1288 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1289 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1290 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1291 (dwarf_expr_get_obj_addr): New function.
1292 (dwarf_expr_ctx_funcs): Add get_object_address field.
1293 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1294 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1295 (dwarf2_evaluate_property): Add parameter "address". Use it.
1296 (needs_get_obj_addr): New function.
1297 (needs_frame_ctx_funcs): Add get_object_address field.
1298 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1299 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1300 (resolve_dynamic_array): Likewise.
1301
1302 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1303
1304 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1305 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1306 fixed value for records and unions for which some GNAT encodings
1307 are present.
1308
1309 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1310
1311 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1312 rewrite to avoid "else if" and "else" constructs. Should be
1313 a no-op in practice.
1314
1315 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1316
1317 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1318 of lexical block.
1319
1320 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1321
1322 PR c++/17132
1323 * eval.c: Update all calls to find_overload_match.
1324 * valarith.c: Likewise.
1325 (value_user_defined_cpp_op, value_user_defined_op): New
1326 argument NOSIDE. Update all callers.
1327 * valops.c (find_overload_match): New argument NOSIDE.
1328 * value.h (find_overload_match): Update signature.
1329
1330 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1331
1332 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1333 'items' methods instead of 'iteritems' method on dictionaries.
1334
1335 2014-08-15 Doug Evans <dje@google.com>
1336
1337 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1338 closer to use.
1339
1340 2014-08-15 Doug Evans <dje@google.com>
1341
1342 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1343
1344 2014-08-15 Doug Evans <dje@google.com>
1345
1346 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1347
1348 2014-08-15 Doug Evans <dje@google.com>
1349
1350 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1351 unused.
1352
1353 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1354
1355 * dcache.h: Include target.h, to avoid compile time warnings.
1356
1357 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1358
1359 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1360 frame_info" partial declaration.
1361 * gdbarch.h: Regenerate.
1362
1363 2014-08-15 Yao Qi <yao@codesourcery.com>
1364
1365 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1366 Add parameter 'decode_for_pst_p'. Callers update.
1367
1368 2014-08-13 Yao Qi <yao@codesourcery.com>
1369
1370 PR build/17104
1371 * configure.ac: Use local variable 'pos'.
1372 * configure: Regenerated.
1373
1374 2014-08-11 Doug Evans <dje@google.com>
1375
1376 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1377 message, it is redundant with "Reading symbols from ..." message.
1378
1379 2014-08-10 Doug Evans <xdje42@gmail.com>
1380
1381 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1382
1383 2014-08-09 Yao Qi <yao@codesourcery.com>
1384
1385 PR remote/9053
1386 * remote.c (remote_xfer_partial): Remove dead code.
1387
1388 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1389
1390 * ia64-linux-tdep.c: Include "regset.h".
1391 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1392 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1393 (ia64_linux_supply_fpregset): New function.
1394 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1395 (ia64_linux_regset_from_core_section): New function.
1396 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1397 method.
1398
1399 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1400
1401 * m68klinux-tdep.c: Include "regset.h".
1402 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1403 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1404 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1405 (m68k_linux_regset_from_core_section): New function.
1406 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1407 method.
1408
1409 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1410
1411 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1412 function. Move logic to...
1413 (tilegx_linux_regmap): ... this new register map.
1414 (tilegx_linux_regset): Refer to register map, replace supply
1415 method by regcache_supply_regset, and add collect method.
1416 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1417 TILEGX_FIRST_EASY_REGNUM.
1418
1419 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1420
1421 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1422 that calls regcache_supply_regset and handles the EPC register
1423 separately. Move main logic to...
1424 (score7_linux_gregmap): ... this new register map.
1425 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1426 (score7_linux_gregset): Refer to register map. Add collect method.
1427 (score7_linux_regset_from_core_section): Replace
1428 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1429 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1430 (struct regset): Delete unused forward declaraction.
1431 (struct pt_regs): Delete structure definition.
1432 (elf_gregset_t): Delete typedef.
1433
1434 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1435
1436 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1437 (nios2_core_regset): Add collect method.
1438
1439 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1440
1441 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1442 platform-independent and don't write to read-only input buffer.
1443 (m32r_linux_collect_gregset): New function.
1444 (m32r_linux_gregset): Add collect method.
1445
1446 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1447
1448 * hppa-linux-tdep.c (greg_map): Rename to...
1449 (hppa_linux_gregmap): ... this. Also convert to
1450 regcache_map_entry format.
1451 (hppa_linux_supply_regset): Delete function.
1452 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1453 (hppa_linux_fpregmap): ... this new register map.
1454 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1455 register map, replace supply method by regcache_supply_regset, and
1456 add collect method regcache_collect_regset.
1457
1458 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1459
1460 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1461 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1462 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1463 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1464 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1465 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1466 (frv_linux_supply_gregset): Replace main logic by call to
1467 regcache_supply_regset, but keep clearing gr32-gr63.
1468 (frv_linux_supply_fpregset): Delete function.
1469 (frv_linux_gregset): Refer to appropriate register map and add
1470 regcache_collect_regset as the collect method.
1471 (frv_linux_fpregset): Likewise. Also exchange the supply method
1472 by regcache_supply_regset.
1473
1474 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1475
1476 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1477 by call to alpha_supply_int_regs.
1478 (alpha_linux_collect_gregset): New function.
1479 (alpha_linux_supply_fpregset): Replace logic by call to
1480 alpha_supply_fp_regs.
1481 (alpha_linux_collect_fpregset): New function.
1482 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1483
1484 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1485
1486 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1487 by call to regcache_collect_regset.
1488 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1489 instead of aarch64_linux_supply_gregset/_fpregset.
1490 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1491 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1492 header file instead.
1493 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1494 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1495 functions. Move logic to ...
1496 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1497 register maps.
1498 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1499 refer to new register maps, replace *_regset_from_core by
1500 regcache_supply_regset, and also use regcache_collect_regset.
1501 * aarch64-linux-tdep.h: Include "regset.h".
1502 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1503 Delete prototypes.
1504 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1505 macros, moved from C source file.
1506 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1507 variable declarations.
1508
1509 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1510
1511 * s390-linux-nat.c: Include "regset.h".
1512 (regmap_gregset): Delete macro.
1513 (s390_64_regmap_gregset): New register map for
1514 regcache_supply/_collect_regset.
1515 (s390_64_gregset): New regset.
1516 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1517 (regmap_fpregset): Delete macro.
1518 (s390_native_supply, s390_native_collect): Delete functions.
1519 (supply_gregset, fill_gregset): Replace s390-specific regmap
1520 handling by a call to regcache_supply/_collect_regset.
1521 (supply_fpregset, fill_fpregset): Call regcache_supply/
1522 _collect_regset instead of s390_native_supply/_collect.
1523 (fetch_regset, store_regset): Likewise. Also change the last
1524 parameter to a regset instead of a regmap.
1525 (s390_linux_fetch_inferior_registers)
1526 (390_linux_store_inferior_registers): Adjust last parameter in
1527 calls to fetch_regset and store_regset.
1528 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1529 (s390_gregmap): ... this. Also make static const and convert to
1530 regcache_map_entry format.
1531 (s390x_regmap_gregset): Delete.
1532 (s390_regmap_fpregset): Rename to...
1533 (s390_fpregmap): ... this. Make static const and convert to
1534 regcache_map_entry format.
1535 (s390_regmap_upper, s390_regmap_last_break)
1536 (s390x_regmap_last_break, s390_regmap_system_call)
1537 (s390_regmap_tdb): Likewise.
1538 (s390_supply_regset, s390_collect_regset): Remove functions.
1539 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1540 s390_supply_regset.
1541 (s390_gregset, s390_fpregset, s390_upper_regset)
1542 (s390_last_break_regset, s390x_last_break_regset)
1543 (s390_system_call_regset, s390_tdb_regset): Make global and
1544 replace s390_supply/_collect_regset by regcache_supply/
1545 _collect_regset.
1546 (s390x_gregset): Delete.
1547 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1548 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1549 (s390_regmap_fpregset, s390_regmap_last_break)
1550 (s390x_regmap_last_break, s390_regmap_system_call)
1551 (s390_regmap_tdb): Delete global variable declarations.
1552 (s390_gregset, s390_fpregset, s390_last_break_regset)
1553 (s390x_last_break_regset, s390_system_call_regset)
1554 (s390_tdb_regset): New global variable declarations.
1555
1556 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1557
1558 * regcache.c: Include "regset.h".
1559 (regcache_transfer_regset): New local function.
1560 (regcache_supply_regset, regcache_collect_regset): New functions.
1561 * regcache.h (struct regcache_map_entry): New structure.
1562 (REGCACHE_MAP_SKIP): New enum value.
1563 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1564
1565 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1566
1567 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1568 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1569 (ppc_linux_collect_gregset ): Likewise.
1570 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1571 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1572 (ppc_collect_vrregset): Likewise.
1573 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1574 Likewise.
1575
1576 2014-08-07 Yao Qi <yao@codesourcery.com>
1577
1578 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1579 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1580 * remote.c (remote_read_bytes): Likewise.
1581
1582 2014-08-07 Yao Qi <yao@codesourcery.com>
1583
1584 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1585
1586 2014-08-07 Yao Qi <yao@codesourcery.com>
1587
1588 PR remote/17230
1589 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1590 TARGET_XFER_OK instead of 0.
1591
1592 2014-08-07 Gary Benson <gbenson@redhat.com>
1593
1594 * common/common-defs.h: Include errno.h.
1595 * defs.h: Do not include errno.h.
1596 * ada-typeprint.c: Likewise.
1597 * c-typeprint.c: Likewise.
1598 * core-regset.c: Likewise.
1599 * corefile.c: Likewise.
1600 * corelow.c: Likewise.
1601 * event-loop.c: Likewise.
1602 * f-typeprint.c: Likewise.
1603 * gnu-nat.c: Likewise.
1604 * go32-nat.c: Likewise.
1605 * i386gnu-nat.c: Likewise.
1606 * m2-typeprint.c: Likewise.
1607 * nat/linux-btrace.c: Likewise.
1608 * p-typeprint.c: Likewise.
1609 * procfs.c: Likewise.
1610 * remote-sim.c: Likewise.
1611 * rs6000-nat.c: Likewise.
1612 * target.c: Likewise.
1613 * typeprint.c: Likewise.
1614 * ui-file.c: Likewise.
1615 * valops.c: Likewise.
1616 * valprint.c: Likewise.
1617
1618 2014-08-07 Gary Benson <gbenson@redhat.com>
1619
1620 * common/common-defs.h: Include string.h.
1621 * aarch64-tdep.c: Do not include string.h.
1622 * ada-exp.y: Likewise.
1623 * ada-lang.c: Likewise.
1624 * ada-lex.l: Likewise.
1625 * ada-typeprint.c: Likewise.
1626 * ada-valprint.c: Likewise.
1627 * aix-thread.c: Likewise.
1628 * alpha-linux-tdep.c: Likewise.
1629 * alpha-mdebug-tdep.c: Likewise.
1630 * alpha-nat.c: Likewise.
1631 * alpha-osf1-tdep.c: Likewise.
1632 * alpha-tdep.c: Likewise.
1633 * alphanbsd-tdep.c: Likewise.
1634 * amd64-dicos-tdep.c: Likewise.
1635 * amd64-linux-tdep.c: Likewise.
1636 * amd64-nat.c: Likewise.
1637 * amd64-sol2-tdep.c: Likewise.
1638 * amd64fbsd-tdep.c: Likewise.
1639 * amd64obsd-tdep.c: Likewise.
1640 * arch-utils.c: Likewise.
1641 * arm-linux-nat.c: Likewise.
1642 * arm-linux-tdep.c: Likewise.
1643 * arm-tdep.c: Likewise.
1644 * arm-wince-tdep.c: Likewise.
1645 * armbsd-tdep.c: Likewise.
1646 * armnbsd-nat.c: Likewise.
1647 * armnbsd-tdep.c: Likewise.
1648 * armobsd-tdep.c: Likewise.
1649 * avr-tdep.c: Likewise.
1650 * ax-gdb.c: Likewise.
1651 * ax-general.c: Likewise.
1652 * bcache.c: Likewise.
1653 * bfin-tdep.c: Likewise.
1654 * breakpoint.c: Likewise.
1655 * build-id.c: Likewise.
1656 * buildsym.c: Likewise.
1657 * c-exp.y: Likewise.
1658 * c-lang.c: Likewise.
1659 * c-typeprint.c: Likewise.
1660 * c-valprint.c: Likewise.
1661 * charset.c: Likewise.
1662 * cli-out.c: Likewise.
1663 * cli/cli-cmds.c: Likewise.
1664 * cli/cli-decode.c: Likewise.
1665 * cli/cli-dump.c: Likewise.
1666 * cli/cli-interp.c: Likewise.
1667 * cli/cli-logging.c: Likewise.
1668 * cli/cli-script.c: Likewise.
1669 * cli/cli-setshow.c: Likewise.
1670 * cli/cli-utils.c: Likewise.
1671 * coffread.c: Likewise.
1672 * common/agent.c: Likewise.
1673 * common/buffer.c: Likewise.
1674 * common/buffer.h: Likewise.
1675 * common/common-utils.c: Likewise.
1676 * common/filestuff.c: Likewise.
1677 * common/filestuff.c: Likewise.
1678 * common/format.c: Likewise.
1679 * common/print-utils.c: Likewise.
1680 * common/rsp-low.c: Likewise.
1681 * common/signals.c: Likewise.
1682 * common/vec.h: Likewise.
1683 * common/xml-utils.c: Likewise.
1684 * core-regset.c: Likewise.
1685 * corefile.c: Likewise.
1686 * corelow.c: Likewise.
1687 * cp-abi.c: Likewise.
1688 * cp-name-parser.y: Likewise.
1689 * cp-support.c: Likewise.
1690 * cp-valprint.c: Likewise.
1691 * cris-tdep.c: Likewise.
1692 * d-exp.y: Likewise.
1693 * darwin-nat.c: Likewise.
1694 * dbxread.c: Likewise.
1695 * dcache.c: Likewise.
1696 * demangle.c: Likewise.
1697 * dicos-tdep.c: Likewise.
1698 * disasm.c: Likewise.
1699 * doublest.c: Likewise.
1700 * dsrec.c: Likewise.
1701 * dummy-frame.c: Likewise.
1702 * dwarf2-frame.c: Likewise.
1703 * dwarf2loc.c: Likewise.
1704 * dwarf2read.c: Likewise.
1705 * elfread.c: Likewise.
1706 * environ.c: Likewise.
1707 * eval.c: Likewise.
1708 * event-loop.c: Likewise.
1709 * exceptions.c: Likewise.
1710 * exec.c: Likewise.
1711 * expprint.c: Likewise.
1712 * f-exp.y: Likewise.
1713 * f-lang.c: Likewise.
1714 * f-typeprint.c: Likewise.
1715 * f-valprint.c: Likewise.
1716 * fbsd-nat.c: Likewise.
1717 * findcmd.c: Likewise.
1718 * findvar.c: Likewise.
1719 * fork-child.c: Likewise.
1720 * frame.c: Likewise.
1721 * frv-linux-tdep.c: Likewise.
1722 * frv-tdep.c: Likewise.
1723 * gdb.c: Likewise.
1724 * gdb_bfd.c: Likewise.
1725 * gdbarch.c: Likewise.
1726 * gdbarch.sh: Likewise.
1727 * gdbtypes.c: Likewise.
1728 * gnu-nat.c: Likewise.
1729 * gnu-v2-abi.c: Likewise.
1730 * gnu-v3-abi.c: Likewise.
1731 * go-exp.y: Likewise.
1732 * go-lang.c: Likewise.
1733 * go32-nat.c: Likewise.
1734 * guile/guile.c: Likewise.
1735 * guile/scm-auto-load.c: Likewise.
1736 * hppa-hpux-tdep.c: Likewise.
1737 * hppa-linux-nat.c: Likewise.
1738 * hppanbsd-tdep.c: Likewise.
1739 * hppaobsd-tdep.c: Likewise.
1740 * i386-cygwin-tdep.c: Likewise.
1741 * i386-dicos-tdep.c: Likewise.
1742 * i386-linux-tdep.c: Likewise.
1743 * i386-nto-tdep.c: Likewise.
1744 * i386-sol2-tdep.c: Likewise.
1745 * i386-tdep.c: Likewise.
1746 * i386bsd-tdep.c: Likewise.
1747 * i386gnu-nat.c: Likewise.
1748 * i386nbsd-tdep.c: Likewise.
1749 * i386obsd-tdep.c: Likewise.
1750 * i387-tdep.c: Likewise.
1751 * ia64-libunwind-tdep.c: Likewise.
1752 * ia64-linux-nat.c: Likewise.
1753 * inf-child.c: Likewise.
1754 * inf-ptrace.c: Likewise.
1755 * inf-ttrace.c: Likewise.
1756 * infcall.c: Likewise.
1757 * infcmd.c: Likewise.
1758 * inflow.c: Likewise.
1759 * infrun.c: Likewise.
1760 * interps.c: Likewise.
1761 * iq2000-tdep.c: Likewise.
1762 * irix5-nat.c: Likewise.
1763 * jv-exp.y: Likewise.
1764 * jv-lang.c: Likewise.
1765 * jv-typeprint.c: Likewise.
1766 * jv-valprint.c: Likewise.
1767 * language.c: Likewise.
1768 * linux-fork.c: Likewise.
1769 * linux-nat.c: Likewise.
1770 * lm32-tdep.c: Likewise.
1771 * m2-exp.y: Likewise.
1772 * m2-typeprint.c: Likewise.
1773 * m32c-tdep.c: Likewise.
1774 * m32r-linux-nat.c: Likewise.
1775 * m32r-linux-tdep.c: Likewise.
1776 * m32r-rom.c: Likewise.
1777 * m32r-tdep.c: Likewise.
1778 * m68hc11-tdep.c: Likewise.
1779 * m68k-tdep.c: Likewise.
1780 * m68kbsd-tdep.c: Likewise.
1781 * m68klinux-nat.c: Likewise.
1782 * m68klinux-tdep.c: Likewise.
1783 * m88k-tdep.c: Likewise.
1784 * machoread.c: Likewise.
1785 * macrocmd.c: Likewise.
1786 * main.c: Likewise.
1787 * mdebugread.c: Likewise.
1788 * mem-break.c: Likewise.
1789 * memattr.c: Likewise.
1790 * memory-map.c: Likewise.
1791 * mep-tdep.c: Likewise.
1792 * mi/mi-cmd-break.c: Likewise.
1793 * mi/mi-cmd-disas.c: Likewise.
1794 * mi/mi-cmd-env.c: Likewise.
1795 * mi/mi-cmd-stack.c: Likewise.
1796 * mi/mi-cmd-var.c: Likewise.
1797 * mi/mi-cmds.c: Likewise.
1798 * mi/mi-console.c: Likewise.
1799 * mi/mi-getopt.c: Likewise.
1800 * mi/mi-interp.c: Likewise.
1801 * mi/mi-main.c: Likewise.
1802 * mi/mi-parse.c: Likewise.
1803 * microblaze-rom.c: Likewise.
1804 * microblaze-tdep.c: Likewise.
1805 * mingw-hdep.c: Likewise.
1806 * minidebug.c: Likewise.
1807 * minsyms.c: Likewise.
1808 * mips-irix-tdep.c: Likewise.
1809 * mips-linux-tdep.c: Likewise.
1810 * mips-tdep.c: Likewise.
1811 * mips64obsd-tdep.c: Likewise.
1812 * mipsnbsd-tdep.c: Likewise.
1813 * mipsread.c: Likewise.
1814 * mn10300-linux-tdep.c: Likewise.
1815 * mn10300-tdep.c: Likewise.
1816 * monitor.c: Likewise.
1817 * moxie-tdep.c: Likewise.
1818 * mt-tdep.c: Likewise.
1819 * nat/linux-btrace.c: Likewise.
1820 * nat/linux-osdata.c: Likewise.
1821 * nat/linux-procfs.c: Likewise.
1822 * nat/linux-ptrace.c: Likewise.
1823 * nat/linux-waitpid.c: Likewise.
1824 * nbsd-tdep.c: Likewise.
1825 * nios2-linux-tdep.c: Likewise.
1826 * nto-procfs.c: Likewise.
1827 * nto-tdep.c: Likewise.
1828 * objc-lang.c: Likewise.
1829 * objfiles.c: Likewise.
1830 * opencl-lang.c: Likewise.
1831 * osabi.c: Likewise.
1832 * osdata.c: Likewise.
1833 * p-exp.y: Likewise.
1834 * p-lang.c: Likewise.
1835 * p-typeprint.c: Likewise.
1836 * parse.c: Likewise.
1837 * posix-hdep.c: Likewise.
1838 * ppc-linux-nat.c: Likewise.
1839 * ppc-sysv-tdep.c: Likewise.
1840 * ppcfbsd-tdep.c: Likewise.
1841 * ppcnbsd-tdep.c: Likewise.
1842 * ppcobsd-tdep.c: Likewise.
1843 * printcmd.c: Likewise.
1844 * procfs.c: Likewise.
1845 * prologue-value.c: Likewise.
1846 * python/py-auto-load.c: Likewise.
1847 * python/py-gdb-readline.c: Likewise.
1848 * ravenscar-thread.c: Likewise.
1849 * regcache.c: Likewise.
1850 * registry.c: Likewise.
1851 * remote-fileio.c: Likewise.
1852 * remote-m32r-sdi.c: Likewise.
1853 * remote-mips.c: Likewise.
1854 * remote-notif.c: Likewise.
1855 * remote-sim.c: Likewise.
1856 * remote.c: Likewise.
1857 * reverse.c: Likewise.
1858 * rs6000-aix-tdep.c: Likewise.
1859 * ser-base.c: Likewise.
1860 * ser-go32.c: Likewise.
1861 * ser-mingw.c: Likewise.
1862 * ser-pipe.c: Likewise.
1863 * ser-tcp.c: Likewise.
1864 * ser-unix.c: Likewise.
1865 * serial.c: Likewise.
1866 * sh-tdep.c: Likewise.
1867 * sh64-tdep.c: Likewise.
1868 * shnbsd-tdep.c: Likewise.
1869 * skip.c: Likewise.
1870 * sol-thread.c: Likewise.
1871 * solib-dsbt.c: Likewise.
1872 * solib-frv.c: Likewise.
1873 * solib-osf.c: Likewise.
1874 * solib-som.c: Likewise.
1875 * solib-spu.c: Likewise.
1876 * solib-target.c: Likewise.
1877 * solib.c: Likewise.
1878 * somread.c: Likewise.
1879 * source.c: Likewise.
1880 * sparc-nat.c: Likewise.
1881 * sparc-sol2-tdep.c: Likewise.
1882 * sparc-tdep.c: Likewise.
1883 * sparc64-tdep.c: Likewise.
1884 * sparc64fbsd-tdep.c: Likewise.
1885 * sparc64nbsd-tdep.c: Likewise.
1886 * sparcnbsd-tdep.c: Likewise.
1887 * spu-linux-nat.c: Likewise.
1888 * spu-multiarch.c: Likewise.
1889 * spu-tdep.c: Likewise.
1890 * stabsread.c: Likewise.
1891 * stack.c: Likewise.
1892 * std-regs.c: Likewise.
1893 * symfile.c: Likewise.
1894 * symmisc.c: Likewise.
1895 * symtab.c: Likewise.
1896 * target.c: Likewise.
1897 * thread.c: Likewise.
1898 * tilegx-linux-nat.c: Likewise.
1899 * tilegx-tdep.c: Likewise.
1900 * top.c: Likewise.
1901 * tracepoint.c: Likewise.
1902 * tui/tui-command.c: Likewise.
1903 * tui/tui-data.c: Likewise.
1904 * tui/tui-disasm.c: Likewise.
1905 * tui/tui-file.c: Likewise.
1906 * tui/tui-layout.c: Likewise.
1907 * tui/tui-out.c: Likewise.
1908 * tui/tui-regs.c: Likewise.
1909 * tui/tui-source.c: Likewise.
1910 * tui/tui-stack.c: Likewise.
1911 * tui/tui-win.c: Likewise.
1912 * tui/tui-windata.c: Likewise.
1913 * tui/tui-winsource.c: Likewise.
1914 * typeprint.c: Likewise.
1915 * ui-file.c: Likewise.
1916 * ui-out.c: Likewise.
1917 * user-regs.c: Likewise.
1918 * utils.c: Likewise.
1919 * v850-tdep.c: Likewise.
1920 * valarith.c: Likewise.
1921 * valops.c: Likewise.
1922 * valprint.c: Likewise.
1923 * value.c: Likewise.
1924 * varobj.c: Likewise.
1925 * vax-tdep.c: Likewise.
1926 * vaxnbsd-tdep.c: Likewise.
1927 * vaxobsd-tdep.c: Likewise.
1928 * windows-nat.c: Likewise.
1929 * xcoffread.c: Likewise.
1930 * xml-support.c: Likewise.
1931 * xstormy16-tdep.c: Likewise.
1932 * xtensa-linux-nat.c: Likewise.
1933
1934 2014-08-07 Gary Benson <gbenson@redhat.com>
1935
1936 * common/common-defs.h: Include gdb_assert.h.
1937 * aarch64-tdep.c: Do not include gdb_assert.h.
1938 * addrmap.c: Likewise.
1939 * aix-thread.c: Likewise.
1940 * alpha-linux-tdep.c: Likewise.
1941 * alpha-mdebug-tdep.c: Likewise.
1942 * alphanbsd-tdep.c: Likewise.
1943 * amd64-nat.c: Likewise.
1944 * amd64-tdep.c: Likewise.
1945 * amd64bsd-nat.c: Likewise.
1946 * amd64fbsd-nat.c: Likewise.
1947 * amd64fbsd-tdep.c: Likewise.
1948 * amd64nbsd-nat.c: Likewise.
1949 * amd64nbsd-tdep.c: Likewise.
1950 * amd64obsd-nat.c: Likewise.
1951 * amd64obsd-tdep.c: Likewise.
1952 * arch-utils.c: Likewise.
1953 * arm-tdep.c: Likewise.
1954 * armbsd-tdep.c: Likewise.
1955 * auxv.c: Likewise.
1956 * bcache.c: Likewise.
1957 * bfin-tdep.c: Likewise.
1958 * blockframe.c: Likewise.
1959 * breakpoint.c: Likewise.
1960 * bsd-kvm.c: Likewise.
1961 * bsd-uthread.c: Likewise.
1962 * buildsym.c: Likewise.
1963 * c-exp.y: Likewise.
1964 * c-lang.c: Likewise.
1965 * charset.c: Likewise.
1966 * cleanups.c: Likewise.
1967 * cli-out.c: Likewise.
1968 * cli/cli-decode.c: Likewise.
1969 * cli/cli-dump.c: Likewise.
1970 * cli/cli-logging.c: Likewise.
1971 * cli/cli-script.c: Likewise.
1972 * cli/cli-utils.c: Likewise.
1973 * coffread.c: Likewise.
1974 * common/common-utils.c: Likewise.
1975 * common/queue.h: Likewise.
1976 * common/signals.c: Likewise.
1977 * common/vec.h: Likewise.
1978 * complaints.c: Likewise.
1979 * completer.c: Likewise.
1980 * corelow.c: Likewise.
1981 * cp-abi.c: Likewise.
1982 * cp-name-parser.y: Likewise.
1983 * cp-namespace.c: Likewise.
1984 * cp-support.c: Likewise.
1985 * cris-tdep.c: Likewise.
1986 * dbxread.c: Likewise.
1987 * dictionary.c: Likewise.
1988 * doublest.c: Likewise.
1989 * dsrec.c: Likewise.
1990 * dummy-frame.c: Likewise.
1991 * dwarf2-frame-tailcall.c: Likewise.
1992 * dwarf2-frame.c: Likewise.
1993 * dwarf2expr.c: Likewise.
1994 * dwarf2loc.c: Likewise.
1995 * dwarf2read.c: Likewise.
1996 * eval.c: Likewise.
1997 * event-loop.c: Likewise.
1998 * exceptions.c: Likewise.
1999 * expprint.c: Likewise.
2000 * f-valprint.c: Likewise.
2001 * fbsd-nat.c: Likewise.
2002 * findvar.c: Likewise.
2003 * frame-unwind.c: Likewise.
2004 * frame.c: Likewise.
2005 * frv-tdep.c: Likewise.
2006 * gcore.c: Likewise.
2007 * gdb-dlfcn.c: Likewise.
2008 * gdb_bfd.c: Likewise.
2009 * gdbarch.c: Likewise.
2010 * gdbarch.sh: Likewise.
2011 * gdbtypes.c: Likewise.
2012 * gnu-nat.c: Likewise.
2013 * gnu-v3-abi.c: Likewise.
2014 * go-lang.c: Likewise.
2015 * guile/scm-exception.c: Likewise.
2016 * guile/scm-gsmob.c: Likewise.
2017 * guile/scm-lazy-string.c: Likewise.
2018 * guile/scm-math.c: Likewise.
2019 * guile/scm-pretty-print.c: Likewise.
2020 * guile/scm-safe-call.c: Likewise.
2021 * guile/scm-utils.c: Likewise.
2022 * guile/scm-value.c: Likewise.
2023 * h8300-tdep.c: Likewise.
2024 * hppa-hpux-nat.c: Likewise.
2025 * hppa-tdep.c: Likewise.
2026 * hppanbsd-tdep.c: Likewise.
2027 * hppaobsd-tdep.c: Likewise.
2028 * i386-darwin-nat.c: Likewise.
2029 * i386-darwin-tdep.c: Likewise.
2030 * i386-nto-tdep.c: Likewise.
2031 * i386-tdep.c: Likewise.
2032 * i386bsd-nat.c: Likewise.
2033 * i386fbsd-tdep.c: Likewise.
2034 * i386gnu-nat.c: Likewise.
2035 * i386nbsd-tdep.c: Likewise.
2036 * i386obsd-tdep.c: Likewise.
2037 * i387-tdep.c: Likewise.
2038 * ia64-libunwind-tdep.c: Likewise.
2039 * ia64-tdep.c: Likewise.
2040 * inf-ptrace.c: Likewise.
2041 * inf-ttrace.c: Likewise.
2042 * infcall.c: Likewise.
2043 * infcmd.c: Likewise.
2044 * infrun.c: Likewise.
2045 * inline-frame.c: Likewise.
2046 * interps.c: Likewise.
2047 * jv-lang.c: Likewise.
2048 * jv-typeprint.c: Likewise.
2049 * linux-fork.c: Likewise.
2050 * linux-nat.c: Likewise.
2051 * linux-thread-db.c: Likewise.
2052 * m32c-tdep.c: Likewise.
2053 * m32r-linux-nat.c: Likewise.
2054 * m32r-tdep.c: Likewise.
2055 * m68k-tdep.c: Likewise.
2056 * m68kbsd-nat.c: Likewise.
2057 * m68kbsd-tdep.c: Likewise.
2058 * m88k-tdep.c: Likewise.
2059 * machoread.c: Likewise.
2060 * macroexp.c: Likewise.
2061 * macrotab.c: Likewise.
2062 * maint.c: Likewise.
2063 * mdebugread.c: Likewise.
2064 * memory-map.c: Likewise.
2065 * mep-tdep.c: Likewise.
2066 * mi/mi-common.c: Likewise.
2067 * microblaze-tdep.c: Likewise.
2068 * mingw-hdep.c: Likewise.
2069 * mips-linux-nat.c: Likewise.
2070 * mips-linux-tdep.c: Likewise.
2071 * mips-tdep.c: Likewise.
2072 * mips64obsd-tdep.c: Likewise.
2073 * mipsnbsd-tdep.c: Likewise.
2074 * mn10300-linux-tdep.c: Likewise.
2075 * mn10300-tdep.c: Likewise.
2076 * moxie-tdep.c: Likewise.
2077 * mt-tdep.c: Likewise.
2078 * nat/linux-btrace.c: Likewise.
2079 * nat/linux-osdata.c: Likewise.
2080 * nat/linux-ptrace.c: Likewise.
2081 * nat/mips-linux-watch.c: Likewise.
2082 * nios2-linux-tdep.c: Likewise.
2083 * nios2-tdep.c: Likewise.
2084 * objc-lang.c: Likewise.
2085 * objfiles.c: Likewise.
2086 * obsd-nat.c: Likewise.
2087 * opencl-lang.c: Likewise.
2088 * osabi.c: Likewise.
2089 * parse.c: Likewise.
2090 * ppc-linux-nat.c: Likewise.
2091 * ppc-sysv-tdep.c: Likewise.
2092 * ppcfbsd-nat.c: Likewise.
2093 * ppcfbsd-tdep.c: Likewise.
2094 * ppcnbsd-nat.c: Likewise.
2095 * ppcnbsd-tdep.c: Likewise.
2096 * ppcobsd-nat.c: Likewise.
2097 * ppcobsd-tdep.c: Likewise.
2098 * printcmd.c: Likewise.
2099 * procfs.c: Likewise.
2100 * prologue-value.c: Likewise.
2101 * psymtab.c: Likewise.
2102 * python/py-lazy-string.c: Likewise.
2103 * python/py-value.c: Likewise.
2104 * regcache.c: Likewise.
2105 * reggroups.c: Likewise.
2106 * registry.c: Likewise.
2107 * remote-sim.c: Likewise.
2108 * remote.c: Likewise.
2109 * rs6000-aix-tdep.c: Likewise.
2110 * rs6000-tdep.c: Likewise.
2111 * s390-linux-tdep.c: Likewise.
2112 * score-tdep.c: Likewise.
2113 * ser-base.c: Likewise.
2114 * ser-mingw.c: Likewise.
2115 * sh-tdep.c: Likewise.
2116 * sh64-tdep.c: Likewise.
2117 * solib-darwin.c: Likewise.
2118 * solib-spu.c: Likewise.
2119 * solib-svr4.c: Likewise.
2120 * source.c: Likewise.
2121 * sparc-nat.c: Likewise.
2122 * sparc-sol2-tdep.c: Likewise.
2123 * sparc-tdep.c: Likewise.
2124 * sparc64-sol2-tdep.c: Likewise.
2125 * sparc64-tdep.c: Likewise.
2126 * sparc64fbsd-tdep.c: Likewise.
2127 * sparc64nbsd-tdep.c: Likewise.
2128 * sparc64obsd-tdep.c: Likewise.
2129 * sparcnbsd-tdep.c: Likewise.
2130 * sparcobsd-tdep.c: Likewise.
2131 * spu-multiarch.c: Likewise.
2132 * spu-tdep.c: Likewise.
2133 * stabsread.c: Likewise.
2134 * stack.c: Likewise.
2135 * symfile.c: Likewise.
2136 * symtab.c: Likewise.
2137 * target-descriptions.c: Likewise.
2138 * target-memory.c: Likewise.
2139 * target.c: Likewise.
2140 * tic6x-linux-tdep.c: Likewise.
2141 * tic6x-tdep.c: Likewise.
2142 * tilegx-linux-nat.c: Likewise.
2143 * tilegx-tdep.c: Likewise.
2144 * top.c: Likewise.
2145 * tramp-frame.c: Likewise.
2146 * tui/tui-out.c: Likewise.
2147 * tui/tui-winsource.c: Likewise.
2148 * ui-out.c: Likewise.
2149 * user-regs.c: Likewise.
2150 * utils.c: Likewise.
2151 * v850-tdep.c: Likewise.
2152 * valops.c: Likewise.
2153 * value.c: Likewise.
2154 * varobj.c: Likewise.
2155 * vax-nat.c: Likewise.
2156 * xml-syscall.c: Likewise.
2157 * xml-tdesc.c: Likewise.
2158 * xstormy16-tdep.c: Likewise.
2159 * xtensa-linux-nat.c: Likewise.
2160 * xtensa-tdep.c: Likewise.
2161
2162 2014-08-07 Gary Benson <gbenson@redhat.com>
2163
2164 * common/common-defs.h: Include common-utils.h.
2165 * defs.h: Do not include common-utils.h.
2166 * common/gdb_assert.h: Likewise.
2167 * darwin-nat.h: Likewise.
2168 * nat/linux-btrace.c: Likewise.
2169 * target/waitstatus.h: Likewise.
2170
2171 2014-08-07 Gary Benson <gbenson@redhat.com>
2172
2173 * common/common-defs.h: Include ptid.h.
2174 * defs.h: Do not include ptid.h.
2175 * inferior.h: Likewise.
2176 * infrun.h: Likewise.
2177 * nat/linux-btrace.h: Likewise.
2178 * nat/linux-osdata.h: Likewise.
2179 * target/waitstatus.h: Likewise.
2180
2181 2014-08-07 Gary Benson <gbenson@redhat.com>
2182
2183 * common/common-defs.h: Include gdb_locale.h.
2184 * defs.h: Do not include gdb_locale.h.
2185
2186 2014-08-07 Gary Benson <gbenson@redhat.com>
2187
2188 * common/common-defs.h: Include gdb/signals.h.
2189 * defs.h: Do not include gdb/signals.h.
2190
2191 2014-08-07 Gary Benson <gbenson@redhat.com>
2192
2193 * common/common-defs.h: Include pathmax.h.
2194 * defs.h: Do not include pathmax.h.
2195
2196 2014-08-07 Gary Benson <gbenson@redhat.com>
2197
2198 * common/common-defs.h: Include libiberty.h.
2199 * defs.h: Do not include libiberty.h.
2200 * common/queue.h: Likewise.
2201 * cp-name-parser.y: Likewise.
2202 * mi/mi-cmd-catch.c: Likewise.
2203 * python/python.c: Likewise.
2204
2205 2014-08-07 Gary Benson <gbenson@redhat.com>
2206
2207 * common/common-defs.h: Include ansidecl.h.
2208 * defs.h: Do not include ansidecl.h.
2209 * common/buffer.h: Likewise.
2210 * common/common-utils.h: Likewise.
2211
2212 2014-08-07 Gary Benson <gbenson@redhat.com>
2213
2214 * common/common-defs.h: Include stddef.h.
2215 * defs.h: Do not include stddef.h.
2216 * common/common-utils.h: Likewise.
2217 * amd64fbsd-nat.c: Likewise.
2218 * bcache.c: Likewise.
2219 * charset.c: Likewise.
2220 * common/buffer.h: Likewise.
2221 * common/vec.h: Likewise.
2222 * i386bsd-nat.c: Likewise.
2223 * nat/linux-btrace.h: Likewise.
2224 * ppcfbsd-nat.c: Likewise.
2225 * ppcnbsd-tdep.h: Likewise.
2226 * ppcobsd-nat.c: Likewise.
2227 * ppcobsd-tdep.h: Likewise.
2228 * python/py-gdb-readline.c: Likewise.
2229
2230 2014-08-07 Gary Benson <gbenson@redhat.com>
2231
2232 * common/common-defs.h: Include stdarg.h.
2233 * defs.h: Do not include stdarg.h.
2234 * ada-lang.c: Likewise.
2235 * common/common-utils.h: Likewise.
2236 * guile/scm-string.c: Likewise.
2237 * guile/scm-utils.c: Likewise.
2238 * m32c-tdep.c: Likewise.
2239
2240 2014-08-07 Gary Benson <gbenson@redhat.com>
2241
2242 * common/common-defs.h: Include stdlib.h.
2243 * defs.h: Do not include stdlib.h.
2244 * addrmap.c: Likewise.
2245 * bcache.c: Likewise.
2246 * common/buffer.c: Likewise.
2247 * common/common-utils.c: Likewise.
2248 * cp-name-parser.y: Likewise.
2249 * go32-nat.c: Likewise.
2250 * mn10300-linux-tdep.c: Likewise.
2251 * nat/linux-osdata.c: Likewise.
2252 * tui/tui.c: Likewise.
2253 * windows-nat.c: Likewise.
2254
2255 2014-08-07 Gary Benson <gbenson@redhat.com>
2256
2257 * common/common-defs.h: Include stdio.h.
2258 * defs.h: Do not include stdio.h.
2259 * ada-lang.c: Likewise.
2260 * common/buffer.c: Likewise.
2261 * common/common-utils.c: Likewise.
2262 * cp-name-parser.y: Likewise.
2263 * gnu-nat.c: Likewise.
2264 * go32-nat.c: Likewise.
2265 * i386gnu-nat.c: Likewise.
2266 * proc-api.c: Likewise.
2267 * proc-events.c: Likewise.
2268 * proc-flags.c: Likewise.
2269 * proc-why.c: Likewise.
2270 * python/python-internal.h: Likewise.
2271 * target-memory.c: Likewise.
2272 * tui/tui-io.c: Likewise.
2273 * tui/tui.c: Likewise.
2274
2275 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2276
2277 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2278 (scan_dyntag_auxv): Same.
2279
2280 2014-08-06 Yao Qi <yao@codesourcery.com>
2281
2282 * amd64-linux-nat.c: Remove duplicated include
2283 "x86-linux-nat.h".
2284 * i386-linux-nat.c: Likewise.
2285
2286 2014-08-06 Yao Qi <yao@codesourcery.com>
2287
2288 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2289 operand" with "Special opcode" in comments.
2290
2291 2014-08-05 Gary Benson <gbenson@redhat.com>
2292
2293 * interps.c (initialize_interps): Remove prototype.
2294 (interpreter_initialized): Remove static global.
2295 (interp_add): Do not call initialize_interps.
2296 (initialize_interps): Remove function.
2297
2298 2014-08-05 Gary Benson <gbenson@redhat.com>
2299
2300 * utils.c (vwarning): Remove spurious va_end.
2301
2302 2014-08-05 Alan Modra <amodra@gmail.com>
2303
2304 * charset.c (convert_between_encodings): Cast result of obstack_base.
2305 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2306 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2307 (read_unwind_info): Use size_t for some locals.
2308 * jit.c (finalize_symtab): Likewise.
2309 * utils.c (hashtab_obstack_allocate): Likewise.
2310 * symmisc.c (print_objfile_statistics): Update format strings.
2311
2312 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2313
2314 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2315 (Changes in GDB 7.8): ... here.
2316
2317 2014-08-04 Tom Tromey <tromey@redhat.com>
2318
2319 * target.c (set_targetdebug): New function.
2320 (initialize_targets): Pass set_targetdebug when creating "set
2321 debug target".
2322
2323 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2324
2325 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2326 if detecting a variable-sized field that is not the last field.
2327 Fix struct type length computation.
2328
2329 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2330
2331 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2332 Add debug trace.
2333
2334 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2335
2336 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2337 Remove "+ 8" offset in computation of CHAIN_VMA.
2338
2339 2014-07-31 Doug Evans <dje@google.com>
2340
2341 * inflow.c (child_terminal_inferior): Add comment.
2342 (child_terminal_ours_for_output): Add comment.
2343 (child_terminal_ours): Add comment.
2344 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2345 (linux_nat_terminal_ours): Add comment.
2346
2347 2014-07-31 Gary Benson <gbenson@redhat.com>
2348
2349 * common/btrace-common.h: Do not include defs.h or server.h.
2350 * nat/mips-linux-watch.h: Likewise.
2351 * gdb-dlfcn.h: Do not include defs.h.
2352 * tracefile.h: Likewise.
2353
2354 2014-07-30 Roland McGrath <mcgrathr@google.com>
2355
2356 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2357
2358 2014-07-30 Tom Tromey <tromey@redhat.com>
2359
2360 * bsd-kvm.c (bsd_kvm_open): Constify.
2361 * corelow.c (core_open): Constify.
2362 * ctf.c (ctf_open): Constify.
2363 * dbug-rom.c (dbug_open): Constify.
2364 * exec.c (exec_open): Constify.
2365 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2366 * microblaze-rom.c (picobug_open): Constify.
2367 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2368 Constify.
2369 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2370 * record-btrace.c (record_btrace_open): Constify.
2371 * record-full.c (record_full_core_open_1, record_full_open_1)
2372 (record_full_open): Constify.
2373 * remote-m32r-sdi.c (m32r_open): Constify.
2374 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2375 (rockhopper_open, lsi_open): Constify.
2376 * remote-sim.c (gdbsim_open): Constify.
2377 * remote.c (remote_open, extended_remote_open, remote_open_1):
2378 Constify.
2379 * target.h (struct target_ops) <to_open>: Make "arg" const.
2380 * tracefile-tfile.c (tfile_open): Constify.
2381
2382 2014-07-30 Tom Tromey <tromey@redhat.com>
2383
2384 * breakpoint.c (map_breakpoint_numbers): Update.
2385 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2386 (get_number_const): New function.
2387 (get_number): Rewrite using get_number_const.
2388 (init_number_or_range): Make "string" const.
2389 (number_is_in_list): Make "list" const.
2390 * cli/cli-utils.h (get_number_const): Declare.
2391 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2392 (init_number_or_range, number_is_in_list): Update.
2393 * printcmd.c (map_display_numbers): Update.
2394 * value.c (value_from_history_ref): Constify.
2395 * value.h (value_from_history_ref): Update.
2396
2397 2014-07-30 Tom Tromey <tromey@redhat.com>
2398
2399 * corefile.c (hook_type, call_extra_exec_file_hooks)
2400 (specify_exec_file_hook): Constify.
2401 * exec.c (exec_file_attach): Make "filename" const.
2402 * gdbcore.h (deprecated_exec_file_display_hook)
2403 (specify_exec_file_hook, exec_file_attach): Constify.
2404 * main.c (captured_main): Use catch_command_errors_const.
2405
2406 2014-07-30 Tom Tromey <tromey@redhat.com>
2407
2408 * target.c (open_target): New function.
2409 (add_target_with_completer, add_deprecated_target_alias): Use
2410 set_cmd_sfunc, set_cmd_context.
2411 (debug_to_open): Remove.
2412 (setup_target_debug): Update.
2413
2414 2014-07-30 Yao Qi <yao@codesourcery.com>
2415
2416 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2417 comments.
2418 * parse.c (exp_iterate): Update comments.
2419
2420 2014-07-30 Gary Benson <gbenson@redhat.com>
2421
2422 * common/common-defs.h: New file.
2423 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2424 * defs.h: Include common-defs.h.
2425 Do not include config.h or build-gnulib/config.h.
2426
2427 2014-07-30 Gary Benson <gbenson@redhat.com>
2428
2429 * common/common-utils.h: Do not include config.h.
2430 * nat/linux-btrace.h: Likewise.
2431
2432 2014-07-30 Gary Benson <gbenson@redhat.com>
2433
2434 * btrace.c: Include defs.h.
2435 * common/ptid.c: Include defs.h or server.h as appropriate.
2436 * nat/mips-linux-watch.c: Likewise.
2437
2438 2014-07-29 Tom Tromey <tromey@redhat.com>
2439
2440 * target.c (target_is_pushed): Simplify.
2441
2442 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2443
2444 GDB 7.8 released.
2445
2446 2014-07-29 Yao Qi <yao@codesourcery.com>
2447
2448 PR gdb/17206
2449 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2450
2451 2014-07-28 Doug Evans <xdje42@gmail.com>
2452
2453 PR guile/17203
2454 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2455 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2456 parameters.
2457
2458 2014-07-28 Will Newton <will.newton@linaro.org>
2459
2460 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2461 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2462 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2463 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2464 (THUMB2_EABI_SYSCALL): Likewise.
2465 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2466 struct tramp_frame.
2467 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2468 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2469
2470 2014-07-27 Doug Evans <xdje42@gmail.com>
2471
2472 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2473
2474 2014-07-27 Doug Evans <xdje42@gmail.com>
2475
2476 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2477
2478 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2479 Doug Evans <xdje42@gmail.com>
2480
2481 PR guile/17146
2482 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2483 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2484 * configure.ac: Try to use guild to compile an scm file, if it fails
2485 then disable guile support.
2486 * configure: Regenerate.
2487 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2488 GUILE_FILE_LIST.
2489 (GUILE_COMPILED_FILES): New variable.
2490 (GUILE_FILES) Update.
2491 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2492 (stamp-guile): Compile scm files.
2493 * guile/guile.c (boot_guile_support): New function.
2494 (standard_throw_args_p): New function.
2495 (print_standard_throw_error, print_throw_error): New functions.
2496 (handle_boot_error): New function.
2497 (initialize_scheme_side): Rewrite to call boot_guile_support.
2498 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2499 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2500
2501 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2502 Doug Evans <xdje42@gmail.com>
2503
2504 PR guile/17146
2505 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2506 * guile/lib/gdb/support.scm: New file.
2507 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2508 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2509 All uses updated.
2510 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2511 All uses updated.
2512 (%assert-type): Ditto, and renamed to assert-type.
2513 (%exception-print-style): Delete.
2514
2515 2014-07-26 Doug Evans <xdje42@gmail.com>
2516
2517 PR build/17105
2518 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2519 * configure: Regenerate.
2520 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2521 PYTHON_FILES.
2522 (PYTHON_FILES): New variable.
2523 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2524 (GUILE_FILES): New variable.
2525 (stamp-python, install-python, uninstall-python): Handle empty
2526 file list.
2527 (stamp-guile, install-guile, uninstall-guile): Ditto.
2528
2529 2014-07-26 Doug Evans <xdje42@gmail.com>
2530
2531 PR guile/17177
2532 * guile/lib/gdb.scm (pretty-printers): Export.
2533 (set-pretty-printers!): Export.
2534 * guile/lib/gdb/printing.scm (gdb module): Update.
2535 (prepend-pretty-printer!, append-pretty-printer!): Update.
2536 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2537 (pretty_printer_list_var): Delete.
2538 (pretty_printer_list): New static global.
2539 (gdbscm_pretty_printers): New function.
2540 (gdbscm_set_pretty_printers_x): New function.
2541 (ppscm_find_pretty_printer_from_gdb): Update.
2542 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2543 (gdbscm_initialize_pretty_printers): Update.
2544
2545 2014-07-26 Doug Evans <xdje42@gmail.com>
2546
2547 PR 17185
2548 * configure.ac: Add check for header gc/gc.h.
2549 Add check for function setenv.
2550 * configure: Regenerate.
2551 * config.in: Regenerate.
2552 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2553
2554 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2555
2556 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2557 variation in gdbarch matching.
2558
2559 2014-07-25 Tom Tromey <tromey@redhat.com>
2560
2561 * exec.c (using_exec_ops): Remove.
2562 (exec_close_1): Update. Remove extraneous block, reindent.
2563 (add_target_sections): Use target_is_pushed.
2564
2565 2014-07-25 Pedro Alves <palves@redhat.com>
2566
2567 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2568 * monitor.c (monitor_create_inferior): Likewise.
2569 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2570 * remote-sim.c (gdbsim_create_inferior): Likewise.
2571 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2572 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2573 * windows-nat.c (do_initial_windows_stuff): Likewise.
2574
2575 2014-07-25 Pedro Alves <palves@redhat.com>
2576
2577 * NEWS: Mention signal passing and "signal" command changes.
2578 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2579 comment.
2580 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2581 call.
2582 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2583 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2584 (jump_command): Adjust clear_proceed_status call.
2585 (signal_command): Warn if other thread that are resumed have
2586 signals that will be delivered. Adjust clear_proceed_status call.
2587 (until_next_command, finish_command)
2588 (proceed_after_attach_callback, attach_command_post_wait)
2589 (attach_command): Adjust clear_proceed_status call.
2590 * infrun.c (proceed_after_vfork_done): Likewise.
2591 (proceed_after_attach_callback): Adjust comment.
2592 (clear_proceed_status_thread): Clear stop_signal if not in pass
2593 state.
2594 (clear_proceed_status_callback): Delete.
2595 (clear_proceed_status): New 'step' parameter. Only clear the
2596 proceed status of threads the command being prepared is about to
2597 resume.
2598 (proceed): If passed in an explicit signal, override stop_signal
2599 with it. Don't pass the last stop signal to the thread we're
2600 resuming.
2601 (init_wait_for_inferior): Adjust clear_proceed_status call.
2602 (switch_back_to_stepped_thread): Clear the signal if it should not
2603 be passed.
2604 * infrun.h (clear_proceed_status): New 'step' parameter.
2605 (user_visible_resume_ptid): Add comment.
2606 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2607 signal is in pass state.
2608 * remote.c (append_pending_thread_resumptions): Likewise.
2609 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2610
2611 2014-07-25 Tom Tromey <tromey@redhat.com>
2612
2613 * target.h (target_stopped_data_address)
2614 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2615 parentheses.
2616
2617 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2618
2619 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2620 comments.
2621 (avr_pointer_to_address): Likewise.
2622
2623 2014-07-24 Tom Tromey <tromey@redhat.com>
2624
2625 * monitor.c (compile_pattern): Update.
2626 * target.h (struct target_ops) <to_shortname, to_longname,
2627 to_doc>: Now const.
2628
2629 2014-07-24 Tom Tromey <tromey@redhat.com>
2630
2631 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2632 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2633 (add_info_alias, add_com): Make "doc" const.
2634 (print_doc_line): Make "str" const.
2635 (delete_cmd): Update.
2636 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2637 (print_doc_line): Update.
2638 * cli/cli-script.c (document_command): Update.
2639 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2640 (add_com, add_info, add_info_alias): Update.
2641 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2642 * python/py-cmd.c (cmdpy_destroyer): Update.
2643
2644 2014-07-24 Tom Tromey <tromey@redhat.com>
2645
2646 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2647 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2648 (help_cmd_list): Constify.
2649 (lookup_cmd): Update.
2650 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2651 const.
2652 (help_cmd_list, apropos_cmd): Update.
2653 * cli/cli-script.c (show_user): Update.
2654 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2655 * cli/cli-setshow.h (cmd_show_list): Update.
2656 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2657 (cmd_show_list): Update.
2658 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2659 * python/py-cmd.c (cmdpy_destroyer): Update.
2660
2661 2014-07-24 Tom Tromey <tromey@redhat.com>
2662
2663 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2664 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2665 const.
2666 * command.h (deprecate_cmd): Update.
2667 * maint.c (maintenance_do_deprecate): Add casts.
2668
2669 2014-07-24 Tom Tromey <tromey@redhat.com>
2670
2671 * cli/cli-decode.c (help_cmd): Make parameter "const".
2672 * cli/cli-decode.h (help_cmd): Update.
2673
2674 2014-07-24 Tom Tromey <tromey@redhat.com>
2675
2676 * stack.c (up_silently_base, down_silently_base): Make argument
2677 const.
2678
2679 2014-07-24 Tom Tromey <tromey@redhat.com>
2680
2681 * solib.c (solib_add): Make "pattern" const.
2682 * solib.h (solib_add): Update.
2683
2684 2014-07-24 Tom Tromey <tromey@redhat.com>
2685
2686 * remote.c (remote_serial_open, print_packet, putpkt)
2687 (putpkt_binary): Constify.
2688 * remote.h (putpkt): Update.
2689
2690 2014-07-24 Tom Tromey <tromey@redhat.com>
2691
2692 * monitor.c (monitor_open): Make "args" const.
2693 * monitor.h (monitor_open): Update.
2694
2695 2014-07-24 Tom Tromey <tromey@redhat.com>
2696
2697 * maint.c (match_bfd_flags): Make "string" const.
2698 (print_bfd_section_info): Remove casts.
2699 (print_objfile_section_info): Make "string" const.
2700
2701 2014-07-24 Tom Tromey <tromey@redhat.com>
2702
2703 * inf-child.c (inf_child_open_target): Make "arg" const.
2704 * inf-child.h (inf_child_open_target): Update.
2705
2706 2014-07-24 Tom Tromey <tromey@redhat.com>
2707
2708 * environ.c (unset_in_environ): Make "var" const.
2709 * environ.h (unset_in_environ): Update.
2710
2711 2014-07-24 Tom Tromey <tromey@redhat.com>
2712
2713 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2714 Make "cmd" const.
2715 (scan_filename_with_cleanup): Likewise.
2716 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2717 Make arguments const.
2718 (restore_command): Update.
2719
2720 2014-07-24 Pedro Alves <palves@redhat.com>
2721
2722 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2723
2724 2014-07-24 Tom Tromey <tromey@redhat.com>
2725 Gary Benson <gbenson@redhat.com>
2726
2727 * nat/linux-ptrace.c (additional_flags): New global.
2728 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2729 additional_flags; don't check GDBSERVER.
2730 (linux_ptrace_set_additional_flags): New function.
2731 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2732 Declare.
2733 * linux-nat.c (_initialize_linux_nat): Call
2734 linux_ptrace_set_additional_flags.
2735
2736 2014-07-24 Tom Tromey <tromey@redhat.com>
2737
2738 * make-target-delegates (munge_type, write_debugmethod): New
2739 functions.
2740 (debug_names): New global.
2741 ($TARGET_DEBUG_PRINTER): New global.
2742 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2743 name.
2744 Write debug methods. Generate init_debug_target.
2745 * target-debug.h: New file.
2746 * target-delegates.c: Rebuild.
2747 * target.c: Include target-debug.h.
2748 (debug_target): Hoist definition.
2749 (target_kill, target_get_section_table, target_memory_map)
2750 (target_flash_erase, target_flash_done, target_detach)
2751 (target_disconnect, target_wait, target_resume)
2752 (target_pass_signals, target_program_signals, target_follow_fork)
2753 (target_mourn_inferior, target_search_memory)
2754 (target_thread_address_space, target_close)
2755 (target_find_new_threads, target_core_of_thread)
2756 (target_verify_memory, target_insert_mask_watchpoint)
2757 (target_remove_mask_watchpoint): Remove targetdebug code.
2758 (debug_to_post_attach, debug_to_prepare_to_store)
2759 (debug_to_files_info, debug_to_insert_breakpoint)
2760 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2761 (debug_to_region_ok_for_hw_watchpoint)
2762 (debug_to_can_accel_watchpoint_condition)
2763 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2764 (debug_to_watchpoint_addr_within_range)
2765 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2766 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2767 (debug_to_terminal_init, debug_to_terminal_inferior)
2768 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2769 (debug_to_terminal_save_ours, debug_to_terminal_info)
2770 (debug_to_load, debug_to_post_startup_inferior)
2771 (debug_to_insert_fork_catchpoint)
2772 (debug_to_remove_fork_catchpoint)
2773 (debug_to_insert_vfork_catchpoint)
2774 (debug_to_remove_vfork_catchpoint)
2775 (debug_to_insert_exec_catchpoint)
2776 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2777 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2778 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2779 (setup_target_debug): Call init_debug_target.
2780 * target.h (TARGET_DEBUG_PRINTER): New macro.
2781 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2782 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2783
2784 2014-07-24 Gary Benson <gbenson@redhat.com>
2785
2786 * exceptions.h (throw_vfatal): Renamed to...
2787 (throw_vquit): New declaration.
2788 (throw_quit): Likewise.
2789 * exceptions.c (throw_vfatal): Renamed to...
2790 (throw_vquit): New function.
2791 (throw_quit): Likewise.
2792 (throw_error): Call throw_verror rather than throw_it.
2793 * utils.h (vfatal): Removed.
2794 (fatal): Likewise.
2795 * utils.c (vfatal): Removed.
2796 (fatal): Likewise.
2797 (internal_verror): Replaced call to fatal with call to throw_quit.
2798 (quit): Replaced calls to fatal with calls to throw_quit.
2799
2800 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2801
2802 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2803 target_read_code.
2804
2805 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2806
2807 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2808 less than zero in conditional expression.
2809
2810 2014-07-23 Tom Tromey <tromey@redhat.com>
2811
2812 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2813 ($INTRO_PART): Don't match whitespace.
2814 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2815 argument matching.
2816 ($METHOD): Add $METHOD_TRAILER.
2817 (trim): Rewrite.
2818 (scan_target_h): New sub.
2819 Change main loop not to collect state.
2820 * target-delegates.c: Rebuild.
2821
2822 2014-07-23 Gary Benson <gbenson@redhat.com>
2823
2824 * cp-support.c (gdb_demangle): Fix build on systems without
2825 sigaltstack.
2826
2827 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2828
2829 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2830 for reference entry value target data value.
2831
2832 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2833
2834 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2835 value_available_contents_eq.
2836
2837 2014-07-22 Pedro Alves <palves@redhat.com>
2838
2839 * value.c (allocate_optimized_out_value): Don't mark value as
2840 non-lazy.
2841
2842 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2843
2844 * MAINTAINERS (Write After Approval): Update my email address.
2845
2846 2014-07-20 Doug Evans <dje@google.com>
2847
2848 PR server/17147
2849 * remote.c (putpkt_binary): Add text to error message.
2850
2851 2014-07-20 Yao Qi <yao@codesourcery.com>
2852
2853 * eval.c: Remove "Chill" from comments.
2854 * gdbtypes.h: Likewise.
2855 * symtab.h: Likewise.
2856
2857 2014-07-20 Yao Qi <yao@codesourcery.com>
2858
2859 * std-operator.def: Update comments to TERNOP_SLICE.
2860
2861 2014-07-20 Yao Qi <yao@codesourcery.com>
2862
2863 * std-operator.def: Remove BINOP_RANGE.
2864 * breakpoint.c (watchpoint_exp_is_const): Update.
2865 * expprint.c (dump_subexp_body_standard): Likewise.
2866 * eval.c (init_array_element): Remove dead code.
2867 (evaluate_subexp_standard): Likewise.
2868
2869 2014-07-20 Yao Qi <yao@codesourcery.com>
2870
2871 * std-operator.def: Remove BINOP_IN.
2872 * breakpoint.c (watchpoint_exp_is_const): Update.
2873 * eval.c (evaluate_subexp_standard): Likewise.
2874 * expprint.c (dump_subexp_body_standard): Likewise.
2875
2876 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2877
2878 * microblaze-tdep.c (microblaze_register_names): Add
2879 the rshr and rslr register names.
2880 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2881 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2882 Use of tdesc_numbered_register. Use of
2883 microblaze_register_g_packet_guesses. Use of
2884 tdesc_use_registers. Use of set_gdbarch_register_type.
2885 (microblaze_register_g_packet_guesses): New.
2886 * microblaze-tdep.h (microblaze_reg_num): Add
2887 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2888 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2889 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2890 * features/microblaze-core.xml: New file.
2891 * features/microblaze-stack-protect.xml: New file.
2892 * features/microblaze-with-stack-protect.c: New file.
2893 * features/microblaze-with-stack-protect.xml: New file.
2894 * features/microblaze.xml: New file.
2895 * features/microblaze.c: New file.
2896 * features/Makefile (microblaze-with-stack-protect): Add
2897 microblaze-with-stack-protect microblaze and microblaze-expedite.
2898 * regformats/microblaze-with-stack-protect.dat: New file.
2899 * regformats/microblaze.dat: New file.
2900 * doc/gdb.texinfo (MicroBlaze Features): Added.
2901
2902 2014-07-18 Tom Tromey <tromey@redhat.com>
2903
2904 * exec.c (exec_ops): Now static.
2905 * exec.h (exec_ops): Don't declare.
2906
2907 2014-07-18 Tom Tromey <tromey@redhat.com>
2908
2909 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2910 to find_target_beneath.
2911 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2912 find_target_beneath.
2913 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2914
2915 2014-07-18 Tom Tromey <tromey@redhat.com>
2916
2917 PR gdb/17130:
2918 * utils.c (quit): Use target_supports_terminal_ours.
2919 * target.h (target_supports_terminal_ours): Declare.
2920 * target.c (target_supports_delete_record): Don't check
2921 to_delete_record against NULL.
2922 (target_supports_terminal_ours): New function.
2923
2924 2014-07-18 Tom Tromey <tromey@redhat.com>
2925
2926 PR gdb/17130:
2927 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2928 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2929 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2930 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2931 * windows-nat.c (windows_xfer_partial): Always delegate.
2932 * record-btrace.c (record_btrace_xfer_partial): Simplify
2933 delegation.
2934 (record_btrace_fetch_registers, record_btrace_store_registers)
2935 (record_btrace_prepare_to_store, record_btrace_resume)
2936 (record_btrace_wait, record_btrace_find_new_threads)
2937 (record_btrace_thread_alive): Likewise.
2938 * procfs.c (procfs_xfer_partial): Always delegate.
2939 * corelow.c (core_xfer_partial): Always delegate.
2940 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2941
2942 2014-07-18 Tom Tromey <tromey@redhat.com>
2943
2944 * exec.c (exec_make_note_section): Move earlier.
2945
2946 2014-07-17 Doug Evans <dje@google.com>
2947
2948 PR gdb/17170
2949 * maint.c (count_symtabs_and_blocks): Handle NULL
2950 current_program_space.
2951 (report_command_stats): Check global enabled flag in addition to
2952 recorded enabled flag.
2953 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2954
2955 2014-07-16 Pedro Alves <palves@redhat.com>
2956
2957 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2958
2959 2014-07-16 Tom Tromey <tromey@redhat.com>
2960
2961 * target.h (struct target_ops) <to_delete_record>: Reformat
2962 comment.
2963
2964 2014-07-16 Tom Tromey <tromey@redhat.com>
2965
2966 * target-delegates.c: Rebuild.
2967
2968 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2969
2970 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2971 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2972 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2973 (avr_pointer_to_address): Likewise.
2974 (avr_address_class_type_flags): New function.
2975 (avr_address_class_type_flags_to_name): Likewise.
2976 (avr_address_class_name_to_type_flags): Likewise.
2977 (avr_gdbarch_init): Set address_class_type_flags,
2978 address_class_type_flags_to_name and
2979 address_class_name_to_type_flags.
2980
2981 2014-07-15 Pedro Alves <palves@redhat.com>
2982
2983 * linux-nat.c (kill_callback): Save errno and work with saved
2984 copy.
2985
2986 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2987
2988 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2989
2990 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2991
2992 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2993 breakpoint support correctly.
2994
2995 2014-07-14 Pedro Alves <palves@redhat.com>
2996
2997 * utils.c (prompt_for_continue): Call target_terminal_ours.
2998
2999 2014-07-14 Pedro Alves <palves@redhat.com>
3000
3001 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3002 catch_errors. Don't re-enable stdin or notify observers where,
3003 and rethrow error.
3004 (fetch_inferior_event_wrapper): Delete.
3005
3006 2014-07-14 Pedro Alves <palves@redhat.com>
3007
3008 PR gdb/17072
3009 * top.c: Include "inf-loop.h".
3010 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3011 field.
3012 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3013 was async before.
3014 (gdb_readline_wrapper): Store whether the target is async, and
3015 make it sync.
3016
3017 2014-07-14 Pedro Alves <palves@redhat.com>
3018
3019 PR gdb/17072
3020 * top.c (gdb_readline_wrapper_line): Tweak comment.
3021 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3022 the input handler callback.
3023
3024 2014-07-14 Pedro Alves <palves@redhat.com>
3025
3026 PR gdb/17072
3027 * main.c: Include event-top.h.
3028 (handle_command_errors): New function.
3029 (catch_command_errors, catch_command_errors_const): Use it.
3030
3031 2014-07-14 Pedro Alves <palves@redhat.com>
3032
3033 * exceptions.c (catch_command_errors, catch_command_errors_const):
3034 Moved to main.c.
3035 * exceptions.h (catch_command_errors_ftype)
3036 (catch_command_errors_const_ftype): Moved to main.c.
3037 (catch_command_errors, catch_command_errors_const): Delete
3038 declarations.
3039 * main.c (catch_command_errors_ftype)
3040 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3041 (catch_command_errors, catch_command_errors_const)): Moved here
3042 from exceptions.c and make static.
3043
3044 2014-07-14 Pedro Alves <palves@redhat.com>
3045
3046 * exceptions.c (print_any_exception): Delete.
3047 (catch_exceptions_with_msg): Use exception_print instead of
3048 print_any_exception.
3049 (catch_errors): Use exception_fprintf instead of
3050 print_any_exception.
3051 (catch_command_errors, catch_command_errors_const): Use
3052 exception_print instead of print_any_exception.
3053
3054 2014-07-14 Pedro Alves <palves@redhat.com>
3055
3056 * infcall.c (run_inferior_call): Set 'sync_execution' while
3057 running the inferior call.
3058
3059 2014-07-14 Pedro Alves <palves@redhat.com>
3060
3061 * value.c (value_contents_equal): Delete function.
3062 * value.h (value_contents_equal): Delete declaration.
3063
3064 2014-07-14 Tom Tromey <tromey@redhat.com>
3065
3066 PR exp/17106:
3067 * gdbtypes.c (is_dynamic_type_internal): New function, from
3068 is_dynamic_type.
3069 (is_dynamic_type): Rewrite.
3070 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3071 (resolve_dynamic_struct): Likewise.
3072 (resolve_dynamic_type_internal): New function, from
3073 resolve_dynamic_type.
3074 (resolve_dynamic_type): Rewrite.
3075
3076 2014-07-14 Tom Tromey <tromey@redhat.com>
3077
3078 * target.c (target_require_runnable): Also check record_stratum.
3079 Update comment.
3080
3081 2014-07-11 Yao Qi <yao@codesourcery.com>
3082
3083 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3084 thumb_instruction_restores_sp return true.
3085
3086 2014-07-11 Yao Qi <yao@codesourcery.com>
3087
3088 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3089 (thumb_in_function_epilogue_p): Call
3090 thumb_instruction_restores_sp.
3091
3092 2014-07-11 Yao Qi <yao@codesourcery.com>
3093
3094 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3095 'add sp, #imm'.
3096 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3097
3098 2014-07-11 Gary Benson <gbenson@redhat.com>
3099
3100 * amd64-linux-nat.c (gdbcore.h): Remove include.
3101 (regset.h): Likewise.
3102 (nat/linux-btrace.h): Likewise.
3103 (btrace.h): Likewise.
3104 (gdb_assert.h): Likewise.
3105 (string.h): Likewise.
3106 (sys/uio.h): Likewise.
3107 (sys/debugreg.h): Likewise.
3108 (sys/syscall.h): Likewise.
3109 (sys/procfs.h): Likewise.
3110 (sys/user.h): Likewise.
3111 (asm/ptrace.h): Likewise.
3112 (i386-nat.h): Likewise.
3113 * i386-linux-nat.c (i386-nat.h): Likewise.
3114 (regset.h): Likewise.
3115 (target.h): Likewise.
3116 (linux-nat.h): Likewise.
3117 (nat/linux-btrace.h): Likewise.
3118 (btrace.h): Likewise.
3119 (gdb_assert.h): Likewise.
3120 (string.h): Likewise.
3121 (sys/uio.h): Likewise.
3122 (sys/user.h): Likewise.
3123 (sys/procfs.h): Likewise.
3124 (sys/reg.h): Likewise.
3125 (sys/debugreg.h): Likewise.
3126 (ORIG_EAX): Remove definition.
3127
3128 2014-07-11 Gary Benson <gbenson@redhat.com>
3129
3130 * i386-linux-nat.h: New file.
3131 * x86-linux-nat.h: Likewise.
3132 * x86-linux-nat.c: Likewise.
3133 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3134 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3135 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3136 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3137 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3138 (PTRACE_SETREGSET): Likewise.
3139 (arch_lwp_info): Now in x86-linux-nat.c.
3140 (have_ptrace_getregset): Now in x86-linux-nat.h.
3141 (x86_linux_dr_get): Now in x86-linux-nat.c.
3142 (x86_linux_dr_set): Likewise.
3143 (x86_linux_dr_get_addr): Likewise.
3144 (x86_linux_dr_get_control): Likewise.
3145 (x86_linux_dr_get_status): Likewise.
3146 (update_debug_registers_callback): Likewise.
3147 (x86_linux_dr_set_control): Likewise.
3148 (x86_linux_dr_set_addr): Likewise.
3149 (x86_linux_prepare_to_resume): Likewise.
3150 (x86_linux_new_thread): Likewise.
3151 (x86_linux_new_fork): Likewise.
3152 (x86_linux_get_thread_area): Likewise.
3153 (super_post_startup_inferior): Likewise.
3154 (x86_linux_child_post_startup_inferior): Likewise.
3155 (AMD64_LINUX_USER64_CS): Likewise.
3156 (AMD64_LINUX_X32_DS): Likewise.
3157 (x86_linux_read_description): Likewise.
3158 (x86_linux_enable_btrace): Likewise.
3159 (x86_linux_disable_btrace): Likewise.
3160 (x86_linux_teardown_btrace): Likewise.
3161 (x86_linux_read_btrace): Likewise.
3162 (x86_linux_create_target): Likewise.
3163 (x86_linux_add_target): Likewise.
3164 * i386-linux-nat.c (x86-linux-nat.h): New include.
3165 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3166 (PTRACE_SETREGSET): Likewise.
3167 (arch_lwp_info): Now in x86-linux-nat.c.
3168 (have_ptrace_getregset): Now in x86-linux-nat.h.
3169 (x86_linux_dr_get): Now in x86-linux-nat.c.
3170 (x86_linux_dr_set): Likewise.
3171 (x86_linux_dr_get_addr): Likewise.
3172 (x86_linux_dr_get_control): Likewise.
3173 (x86_linux_dr_get_status): Likewise.
3174 (update_debug_registers_callback): Likewise.
3175 (x86_linux_dr_set_control): Likewise.
3176 (x86_linux_dr_set_addr): Likewise.
3177 (x86_linux_prepare_to_resume): Likewise.
3178 (x86_linux_new_thread): Likewise.
3179 (x86_linux_new_fork): Likewise.
3180 (x86_linux_get_thread_area): Likewise.
3181 (super_post_startup_inferior): Likewise.
3182 (x86_linux_child_post_startup_inferior): Likewise.
3183 (AMD64_LINUX_USER64_CS): Likewise.
3184 (AMD64_LINUX_X32_DS): Likewise.
3185 (x86_linux_read_description): Likewise.
3186 (x86_linux_enable_btrace): Likewise.
3187 (x86_linux_disable_btrace): Likewise.
3188 (x86_linux_teardown_btrace): Likewise.
3189 (x86_linux_read_btrace): Likewise.
3190 (x86_linux_create_target): Likewise.
3191 (x86_linux_add_target): Likewise.
3192
3193 2014-07-11 Gary Benson <gbenson@redhat.com>
3194
3195 * amd64-linux-nat.c: Comment and whitespace changes.
3196 * i386-linux-nat.c: Comment and whitespace changes.
3197
3198 2014-07-11 Gary Benson <gbenson@redhat.com>
3199
3200 * amd64-linux-nat.c (x86_linux_create_target): New function.
3201 (x86_linux_add_target): Likewise.
3202 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3203 * i386-linux-nat.c (x86_linux_create_target): New function.
3204 (x86_linux_add_target): Likewise.
3205 (_initialize_i386_linux_nat): Delegate to the above new functions.
3206
3207 2014-07-11 Gary Benson <gbenson@redhat.com>
3208
3209 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3210 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3211 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3212 (ps_get_thread_area): Delegate to the above.
3213
3214 2014-07-11 Gary Benson <gbenson@redhat.com>
3215
3216 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3217 x86_linux_read_description. All uses updated. amd64-specific
3218 code conditionalized. Conditionalized i386-specific code added.
3219 Redundant cast removed.
3220 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3221 x86_linux_read_description. All uses updated. i386-specific
3222 code conditionalized. Conditionalized amd64-specific code added.
3223 One sizeof replaced with the actual type it is describing.
3224
3225 2014-07-11 Gary Benson <gbenson@redhat.com>
3226
3227 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3228 x86_linux_dr_get. All uses updated.
3229 (amd64_linux_dr_set): Renamed to
3230 x86_linux_dr_set. All uses updated.
3231 (amd64_linux_dr_get_addr): Renamed to
3232 x86_linux_dr_get_addr. All uses updated.
3233 (amd64_linux_dr_get_control): Renamed to
3234 x86_linux_dr_get_control. All uses updated.
3235 (amd64_linux_dr_get_status): Renamed to
3236 x86_linux_dr_get_status. All uses updated.
3237 (amd64_linux_dr_set_control): Renamed to
3238 x86_linux_dr_set_control. All uses updated.
3239 (amd64_linux_dr_set_addr): Renamed to
3240 x86_linux_dr_set_addr. All uses updated.
3241 (amd64_linux_prepare_to_resume): Renamed to
3242 x86_linux_prepare_to_resume. All uses updated.
3243 (amd64_linux_new_thread): Renamed to
3244 x86_linux_new_thread. All uses updated.
3245 (amd64_linux_new_fork): Renamed to
3246 x86_linux_new_fork. All uses updated.
3247 (amd64_linux_child_post_startup_inferior): Renamed to
3248 x86_linux_child_post_startup_inferior. All uses updated.
3249 (amd64_linux_enable_btrace): Renamed to
3250 x86_linux_enable_btrace. All uses updated.
3251 (amd64_linux_disable_btrace): Renamed to
3252 x86_linux_disable_btrace. All uses updated.
3253 (amd64_linux_teardown_btrace): Renamed to
3254 x86_linux_teardown_btrace. All uses updated.
3255 (amd64_linux_read_btrace): Renamed to
3256 x86_linux_read_btrace. All uses updated.
3257 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3258 x86_linux_dr_get. All uses updated.
3259 (i386_linux_dr_set): Renamed to
3260 x86_linux_dr_set. All uses updated.
3261 (i386_linux_dr_get_addr): Renamed to
3262 x86_linux_dr_get_addr. All uses updated.
3263 (i386_linux_dr_get_control): Renamed to
3264 x86_linux_dr_get_control. All uses updated.
3265 (i386_linux_dr_get_status): Renamed to
3266 x86_linux_dr_get_status. All uses updated.
3267 (i386_linux_dr_set_control): Renamed to
3268 x86_linux_dr_set_control. All uses updated.
3269 (i386_linux_dr_set_addr): Renamed to
3270 x86_linux_dr_set_addr. All uses updated.
3271 (i386_linux_prepare_to_resume): Renamed to
3272 x86_linux_prepare_to_resume. All uses updated.
3273 (i386_linux_new_thread): Renamed to
3274 x86_linux_new_thread. All uses updated.
3275 (i386_linux_new_fork): Renamed to
3276 x86_linux_new_fork. All uses updated.
3277 (i386_linux_child_post_startup_inferior): Renamed to
3278 x86_linux_child_post_startup_inferior. All uses updated.
3279 (i386_linux_enable_btrace): Renamed to
3280 x86_linux_enable_btrace. All uses updated.
3281 (i386_linux_disable_btrace): Renamed to
3282 x86_linux_disable_btrace. All uses updated.
3283 (i386_linux_teardown_btrace): Renamed to
3284 x86_linux_teardown_btrace. All uses updated.
3285 (i386_linux_read_btrace): Renamed to
3286 x86_linux_read_btrace. All uses updated.
3287
3288 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3289
3290 * remote.c (extended_remote_post_attach): New function.
3291 (init_extended_remote_ops): Install it as to_post_attach method.
3292
3293 2014-07-09 Pedro Alves <palves@redhat.com>
3294
3295 * infcmd.c (attach_command_post_wait): Don't call
3296 target_terminal_inferior here.
3297 (attach_command): Call it here instead.
3298
3299 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3300
3301 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3302 field.
3303 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3304 from varobj.c, with additional checks.
3305 (c_varobj_ops): Fill in is_path_expr_parent field.
3306 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3307 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3308 field.
3309 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3310 ops method.
3311 (varobj_default_is_path_expr_parent): New function.
3312 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3313 (varobj_default_is_path_expr_parent): Declare new function.
3314
3315 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3316
3317 * infcmd.c (finish_backward): Turn internal error into normal error.
3318
3319 2014-07-07 Pedro Alves <palves@redhat.com>
3320
3321 PR gdb/17096
3322 * remote.c (async_handle_remote_sigint)
3323 (async_handle_remote_sigint_twice): Call
3324 gdb_call_async_signal_handler instead of
3325 mark_async_signal_handler.
3326
3327 2014-07-07 Tom Tromey <tromey@redhat.com>
3328
3329 * target-delegates.c: Rebuild.
3330 * target.c (target_info_record): Remove.
3331 * record.c (info_record_command): Unconditionally call
3332 to_info_record.
3333 * target.h (struct target_ops) <to_info_record>: Use
3334 TARGET_DEFAULT_IGNORE.
3335 (target_info_record): Remove.
3336
3337 2014-07-07 Tom Tromey <tromey@redhat.com>
3338
3339 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3340 TARGET_DEFAULT_NORETURN.
3341 * target.c (generic_tls_error): New function.
3342 (target_translate_tls_address): Don't search target stack.
3343 * target-delegates.c: Rebuild.
3344 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3345 stack.
3346 * linux-thread-db.c (thread_db_get_thread_local_address):
3347 Unconditionally call beneath target.
3348
3349 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3350
3351 * cli/cli-logging.c (pop_output_files): Assign targerr to
3352 gdb_stdtargerr.
3353
3354 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3355
3356 * MAINTAINERS (Write After Approval): Update my email address.
3357
3358 2014-07-02 Gary Benson <gbenson@redhat.com>
3359
3360 * proc-service.c (ps_xfer_memory): Update comment.
3361 (ps_pstop): Remove unused function.
3362 (ps_pcontinue): Likewise.
3363 (ps_lstop): Likewise.
3364 (ps_lcontinue): Likewise.
3365 (ps_lgetxregsize): Likewise.
3366 (ps_lgetxregs): Likewise.
3367 (ps_lsetxregs): Likewise.
3368 (ps_plog): Likewise.
3369 (ps_ptread): Likewise.
3370 (ps_ptwrite): Likewise.
3371
3372 2014-07-01 Mark Wielaard <mjw@redhat.com>
3373
3374 * dwarf2read.c (add_array_cv_type): New function.
3375 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3376 (read_tag_volatile_type): Likewise.
3377
3378 2014-07-01 Tom Tromey <tromey@redhat.com>
3379
3380 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3381 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3382 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3383 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3384 * command.h (cmd_cfunc_ftype): Move earlier.
3385 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3386 (add_com, add_info): Use cmd_cfunc_ftype.
3387
3388 2014-06-30 Tom Tromey <tromey@redhat.com>
3389
3390 * symtab.c (operator_chars): Make parameters and return type
3391 const.
3392 (file_matches): Make "files" const.
3393 (struct search_symbols_data) <files>: Now const.
3394 (search_symbols): Make "regexp" and "files" parameters const.
3395 Update.
3396 (symtab_symbol_info): Remove cast.
3397 (rbreak_command): Update.
3398 * symtab.h (search_symbols): Update.
3399
3400 2014-06-27 Yao Qi <yao@codesourcery.com>
3401
3402 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3403 Change parameter type to 'struct thread_info *'. Caller
3404 updated.
3405 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3406 Update declaration.
3407 * dummy-frame.c (struct dummy_frame_id): New.
3408 (dummy_frame_id_eq): New function.
3409 (struct dummy_frame) <id>: Change its type to 'struct
3410 dummy_frame_id'.
3411 (dummy_frame_push): Add parameter ptid and save it in
3412 dummy_frame_id.
3413 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3414 inferior_ptid.
3415 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3416 to inferior_ptid.
3417 (lookup_dummy_frame): Change parameter type to 'struct
3418 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3419 instead of frame_id_eq.
3420 (dummy_frame_pop): Add parameter ptid. Callers updated.
3421 Update comments. Compose dummy_frame_id and pass it to
3422 lookup_dummy_frame.
3423 (dummy_frame_discard): Add parameter ptid.
3424 (dummy_frame_sniffer): Compose dummy_frame_id and call
3425 dummy_frame_id_eq instead of frame_id_eq.
3426 (fprint_dummy_frames): Print ptid.
3427 * dummy-frame.h: Remove comments.
3428 (dummy_frame_push): Add ptid in declaration.
3429 (dummy_frame_pop, dummy_frame_discard): Likewise.
3430
3431 2014-06-26 Tom Tromey <tromey@redhat.com>
3432
3433 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3434 * command.h (error_no_arg): Update.
3435
3436 2014-06-26 Tom Tromey <tromey@redhat.com>
3437
3438 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3439 (do_show_command): Make "arg" const.
3440 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3441
3442 2014-06-26 Tom Tromey <tromey@redhat.com>
3443
3444 * record-full.c (record_full_get_bookmark): Make "args" const.
3445 (record_full_goto_bookmark): Make "raw_bookmark" const.
3446 * record.c (record_goto): New function.
3447 (cmd_record_goto): Use it. Now static.
3448 * record.h (record_goto): Declare.
3449 (cmd_record_goto): Remove declaration.
3450 * target-delegates.c: Rebuild.
3451 * target.h (struct target_ops) <to_get_bookmark,
3452 to_goto_bookmark>: Make parameter const.
3453
3454 2014-06-26 Tom Tromey <tromey@redhat.com>
3455
3456 * defs.h (generic_load): Update.
3457 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3458 * monitor.c (monitor_load): Make "args" const.
3459 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3460 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3461 const.
3462 (mips_load): Make "file" const.
3463 * remote-sim.c (gdbsim_load): Make "args" const.
3464 * remote.c (remote_load): Make "name" const.
3465 * symfile.c (generic_load): Make "args" const.
3466 * target-delegates.c: Rebuild.
3467 * target.c (target_load): Make "arg" const.
3468 (debug_to_load): Make "args" const.
3469 * target.h (struct target_ops) <to_load>: Make parameter const.
3470 (target_load): Update.
3471
3472 2014-06-26 Tom Tromey <tromey@redhat.com>
3473
3474 PR symtab/16902:
3475 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3476 (dwarf2_physname, read_partial_die)
3477 (guess_partial_die_structure_name, fixup_partial_die)
3478 (guess_full_die_structure_name, anonymous_struct_prefix)
3479 (dwarf2_name): Use per-BFD obstack.
3480
3481 2014-06-26 Yao Qi <yao@codesourcery.com>
3482
3483 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3484 dummyframe and this_id into inner block below.
3485
3486 2014-06-26 Yao Qi <yao@codesourcery.com>
3487
3488 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3489 with "signal_pass[0]" in the initialization of signal_pass.
3490
3491 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3492
3493 * record-btrace.c (record_btrace_generating_corefile)
3494 (record_btrace_prepare_to_generate_core)
3495 (record_btrace_done_generating_core): New.
3496 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3497 (record_btrace_store_registers, record_btrace_prepare_to_store):
3498 Forward request when generating a core file.
3499 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3500 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3501 to_done_generating_core.
3502
3503 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3504
3505 * target.h (target_ops) <to_prepare_to_generate_core>
3506 <to_done_generating_core>: New.
3507 (target_prepare_to_generate_core, target_done_generating_core): New.
3508 * target.c (target_prepare_to_generate_core)
3509 (target_done_generating_core): New.
3510 * target-delegates.c: Regenerate.
3511 * gcore.c: (write_gcore_file): Rename to ...
3512 (write_gcore_file_1): ...this.
3513 (write_gcore_file): Call target_prepare_to_generate_core
3514 and target_done_generating_core.
3515
3516 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3517
3518 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3519 * gcore.c (write_gcore_file): Free memory returned from
3520 make_corefile_notes.
3521 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3522 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3523
3524 2014-06-24 Yao Qi <yao@codesourcery.com>
3525
3526 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3527 (arm_linux_init_abi): Set skip_trampoline_code with
3528 gdbarch_skip_trampoline_code instead of
3529 find_solib_trampoline_target.
3530
3531 2014-06-24 Yao Qi <yao@codesourcery.com>
3532
3533 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3534 arm_skip_bx_reg returns non-zero.
3535
3536 2014-06-24 Yao Qi <yao@codesourcery.com>
3537
3538 * arm-tdep.c (arm_skip_bx_reg): New function.
3539 (arm_skip_stub): Call arm_skip_bx_reg.
3540
3541 2014-06-23 Don Breazeal <donb@codesourcery.com>
3542
3543 * MAINTAINERS: Add myself as write-after-approval maintainer.
3544
3545 2014-06-23 Pedro Alves <palves@redhat.com>
3546
3547 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3548 DR_CONTROL before setting DR0..DR3.
3549 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3550 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3551 bits of DR_CONTROL related to the debug register slot being
3552 disabled. If all slots are vacant, clear local slowdown as well,
3553 and assert DR_CONTROL is 0.
3554
3555 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3556
3557 * python/lib/gdb/command/xmethods.py
3558 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3559 current progspace only if the string "progspace" matches LOCUS_RE.
3560
3561 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3562
3563 Fix --with-system-readline with readline-6.3 patch 5.
3564 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3565 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3566 types.
3567
3568 2014-06-20 Tom Tromey <tromey@redhat.com>
3569
3570 * dwarf2read.c (dw2_get_real_path): Use correct type in
3571 OBSTACK_CALLOC.
3572 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3573
3574 2014-06-20 Gary Benson <gbenson@redhat.com>
3575
3576 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3577 * common/glibc_thread_db.h: Likewise.
3578 * common/i386-cpuid.h: Likewise.
3579 * common/i386-gcc-cpuid.h: Likewise.
3580 * common/linux-btrace.h: Likewise.
3581 * common/linux-osdata.h: Likewise.
3582 * common/linux-procfs.h: Likewise.
3583 * common/linux-ptrace.h: Likewise.
3584 * common/mips-linux-watch.h: Likewise.
3585 * common/linux-btrace.c: Moved to nat.
3586 * common/linux-osdata.c: Likewise.
3587 * common/linux-procfs.c: Likewise.
3588 * common/linux-ptrace.c: Likewise.
3589 * common/mips-linux-watch.c: Likewise.
3590 * nat/gdb_thread_db.h: Moved from common.
3591 * nat/glibc_thread_db.h: Likewise.
3592 * nat/i386-cpuid.h: Likewise.
3593 * nat/i386-gcc-cpuid.h: Likewise.
3594 * nat/linux-btrace.c: Likewise.
3595 * nat/linux-btrace.h: Likewise.
3596 * nat/linux-osdata.c: Likewise.
3597 * nat/linux-osdata.h: Likewise.
3598 * nat/linux-procfs.c: Likewise.
3599 * nat/linux-procfs.h: Likewise.
3600 * nat/linux-ptrace.c: Likewise.
3601 * nat/linux-ptrace.h: Likewise.
3602 * nat/mips-linux-watch.c: Likewise.
3603 * nat/mips-linux-watch.h: Likewise.
3604 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3605 (object file files): Reordered.
3606 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3607 of glibc_thread_db.h.
3608
3609 2014-06-20 Gary Benson <gbenson@redhat.com>
3610
3611 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3612 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3613 (i386_dr_low): Likewise.
3614 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3615 (i386_dr_low_set_addr): Likewise.
3616 (i386_dr_low_get_addr): Likewise.
3617 (i386_dr_low_can_set_control): Likewise.
3618 (i386_dr_low_set_control): Likewise.
3619 (i386_dr_low_get_control): Likewise.
3620 (i386_dr_low_get_status): Likewise.
3621 (i386_get_debug_register_length): Likewise.
3622 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3623 (i386_dr_low): Likewise.
3624 * nat/i386-dregs.c (i386-low.h): Remove include.
3625 (i386-nat.h): Likewise.
3626 (nat/i386-dregs.h): New include.
3627 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3628 (i386_dr_low_set_addr): Likewise.
3629 (i386_dr_low_get_addr): Likewise.
3630 (i386_dr_low_can_set_control): Likewise.
3631 (i386_dr_low_set_control): Likewise.
3632 (i386_dr_low_get_control): Likewise.
3633 (i386_dr_low_get_status): Likewise.
3634 (i386_get_debug_register_length): Likewise.
3635 (debug_hw_points): Likewise.
3636
3637 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3638
3639 * Makefile.in (SFILES): Add d-exp.y.
3640 (YYFILES): Add d-exp.c.
3641 (YYOBJ): Add d-exp.o.
3642 (local-maintainer-clean): Delete d-exp.c.
3643 * d-exp.y: New file.
3644 * d-lang.h (d_parse): New declaration.
3645 (d_error): New declaration.
3646 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3647 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3648 PREC_ORDER operators.
3649 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3650
3651 2014-06-19 Yao Qi <yao@codesourcery.com>
3652
3653 * gdbthread.h (any_running): Remove the declaration.
3654 * thread.c (any_running): Remove.
3655
3656 2014-06-19 Yao Qi <yao@codesourcery.com>
3657
3658 * gdbthread.h (struct thread_info) <state>: Change its type to
3659 'enum thread_state'. Update comments.
3660
3661 2014-06-19 Pedro Alves <palves@redhat.com>
3662
3663 * gdbthread.h (ALL_THREADS): Delete.
3664 (ALL_NON_EXITED_THREADS): New macro.
3665 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3666 instead of ALL_THREADS.
3667 * infrun.c (find_thread_needs_step_over)
3668 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3669 instead of ALL_THREADS.
3670 * record-btrace.c (record_btrace_open)
3671 (record_btrace_stop_recording, record_btrace_close)
3672 (record_btrace_is_replaying, record_btrace_resume)
3673 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3674 * remote.c (append_pending_thread_resumptions): Likewise.
3675 * thread.c (thread_apply_all_command): Likewise.
3676
3677 2014-06-19 Gary Benson <gbenson@redhat.com>
3678
3679 * i386-nat.c (i386_stopped_by_watchpoint):
3680 Use i386_dr_stopped_by_watchpoint.
3681 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3682 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3683
3684 2014-06-19 Gary Benson <gbenson@redhat.com>
3685
3686 * nat/i386-dregs.c: New file.
3687 * Makefile.in (i386-dregs.o): New rule.
3688 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3689 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3690 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3691 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3692 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3693 * config/i386/go32.mh (NATDEPFILES): Likewise.
3694 * config/i386/linux.mh (NATDEPFILES): Likewise.
3695 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3696 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3697 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3698 * i386-nat.h (debug_hw_points): New declaration.
3699 * i386-nat.c (breakpoint.h): Remove include.
3700 (command.h): Likewise.
3701 (target.h): Likewise.
3702 (gdb_assert.h): Likewise.
3703 (debug_hw_points): Made nonstatic.
3704 (debug_printf): Now in i386-dregs.c.
3705 (TARGET_HAS_DR_LEN_8): Likewise.
3706 (DR_CONTROL_SHIFT): Likewise.
3707 (DR_CONTROL_SIZE): Likewise.
3708 (DR_RW_EXECUTE): Likewise.
3709 (DR_RW_WRITE): Likewise.
3710 (DR_RW_READ): Likewise.
3711 (DR_RW_IORW): Likewise.
3712 (DR_LEN_1): Likewise.
3713 (DR_LEN_2): Likewise.
3714 (DR_LEN_4): Likewise.
3715 (DR_LEN_8): Likewise.
3716 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3717 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3718 (DR_ENABLE_SIZE): Likewise.
3719 (DR_LOCAL_SLOWDOWN): Likewise.
3720 (DR_GLOBAL_SLOWDOWN): Likewise.
3721 (DR_CONTROL_RESERVED): Likewise.
3722 (I386_DR_CONTROL_MASK): Likewise.
3723 (I386_DR_VACANT): Likewise.
3724 (I386_DR_LOCAL_ENABLE): Likewise.
3725 (I386_DR_GLOBAL_ENABLE): Likewise.
3726 (I386_DR_DISABLE): Likewise.
3727 (I386_DR_SET_RW_LEN): Likewise.
3728 (I386_DR_GET_RW_LEN): Likewise.
3729 (I386_DR_WATCH_HIT): Likewise.
3730 (i386_wp_op_t): Likewise.
3731 (i386_show_dr): Likewise.
3732 (i386_length_and_rw_bits): Likewise.
3733 (i386_insert_aligned_watchpoint): Likewise.
3734 (i386_remove_aligned_watchpoint): Likewise.
3735 (i386_handle_nonaligned_watchpoint): Likewise.
3736 (i386_update_inferior_debug_regs): Likewise.
3737 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3738 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3739 (i386_region_ok_for_watchpoint):
3740 Use i386_dr_region_ok_for_watchpoint.
3741 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3742
3743 2014-06-19 Gary Benson <gbenson@redhat.com>
3744
3745 * i386-nat.c (i386_insert_hw_breakpoint): Use
3746 i386_insert_watchpoint.
3747 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3748
3749 2014-06-19 Gary Benson <gbenson@redhat.com>
3750
3751 * i386-nat.c (i386_dr_show): Renamed to
3752 i386_show_dr and made static. All uses updated.
3753 (i386_dr_length_and_rw_bits): Renamed to
3754 i386_length_and_rw_bits and made static.
3755 All uses updated.
3756 (i386_dr_insert_aligned_watchpoint): Renamed to
3757 i386_insert_aligned_watchpoint and made static.
3758 All uses updated.
3759 (i386_dr_remove_aligned_watchpoint): Renamed to
3760 i386_remove_aligned_watchpoint and made static.
3761 All uses updated.
3762 (i386_dr_update_inferior_debug_regs): Renamed to
3763 i386_update_inferior_debug_regs and made static.
3764 All uses updated.
3765 * nat/i386-dregs.h (i386_dr_show): Removed.
3766 (i386_dr_length_and_rw_bits): Likewise.
3767 (i386_dr_insert_aligned_watchpoint): Likewise.
3768 (i386_dr_remove_aligned_watchpoint): Likewise.
3769 (i386_dr_update_inferior_debug_regs): Likewise.
3770
3771 2014-06-19 Gary Benson <gbenson@redhat.com>
3772
3773 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3774 * configure: Regenerate.
3775 * config.in: Likewise.
3776 * main.c (signal.h): New include.
3777 (setup_alternate_signal_stack): New function.
3778 (captured_main): Call the above.
3779 * cp-support.c (signal.h): New include.
3780 (catch_demangler_crashes): New flag.
3781 (SIGJMP_BUF): New define.
3782 (SIGSETJMP): Likewise.
3783 (SIGLONGJMP): Likewise.
3784 (gdb_demangle_jmp_buf): New static global.
3785 (gdb_demangle_attempt_core_dump): Likewise.
3786 (gdb_demangle_signal_handler): New function.
3787 (gdb_demangle): If catch_demangler_crashes is set, install the
3788 above signal handler before calling bfd_demangle, and restore
3789 the original signal handler afterwards. Display the offending
3790 symbol and call demangler_warning the first time a segmentation
3791 fault is caught.
3792 (_initialize_cp_support): New maint set/show command.
3793
3794 2014-06-19 Gary Benson <gbenson@redhat.com>
3795
3796 * utils.h (resource_limit_kind): New enum.
3797 (can_dump_core): New declaration.
3798 (warn_cant_dump_core): Likewise.
3799 (dump_core): Likewise.
3800 * utils.c (dump_core): Made nonstatic. Added new
3801 parameter "limit_kind".
3802 (can_dump_core): Made nonstatic. Moved printing code to...
3803 (warn_cant_dump_core): New function.
3804 (can_dump_core_warn): Likewise.
3805 (internal_vproblem): Replace calls to can_dump_core with
3806 calls to can_dump_core_warn. Supply new argument to each.
3807
3808 2014-06-19 Gary Benson <gbenson@redhat.com>
3809
3810 * utils.h (demangler_vwarning): New declaration.
3811 (demangler_warning): Likewise.
3812 * utils.c (struct internal_problem)
3813 <user_settable_should_quit>: New field.
3814 <user_settable_should_dump_core>: Likewise
3815 (internal_error_problem): Add values for above new fields.
3816 (internal_warning_problem): Likewise.
3817 (demangler_warning_problem): New static global.
3818 (demangler_vwarning): New function.
3819 (demangler_warning): Likewise.
3820 (add_internal_problem_command): Selectively add commands.
3821 (_initialize_utils): New internal problem command.
3822 * maint.c (maintenance_demangler_warning): New function.
3823 (_initialize_maint_cmds): New command.
3824
3825 2014-06-18 Tom Tromey <tromey@redhat.com>
3826
3827 * f-valprint.c (info_common_command_for_block): Update.
3828 * symtab.h (struct general_symbol_info) <common_block>: Now
3829 const.
3830
3831 2014-06-18 Tom Tromey <tromey@redhat.com>
3832
3833 * symtab.h (struct symtab) <blockvector>: Now const.
3834 * ada-lang.c (ada_add_global_exceptions): Update.
3835 * buildsym.c (augment_type_symtab): Update.
3836 * dwarf2read.c (dw2_lookup_symbol): Update.
3837 * jit.c (finalize_symtab): Update.
3838 * jv-lang.c (add_class_symtab_symbol): Update.
3839 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3840 Update.
3841 * objfiles.c (objfile_relocate1): Update.
3842 * psymtab.c (lookup_symbol_aux_psymtabs)
3843 (maintenance_check_psymtabs): Update.
3844 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3845 Update.
3846 * spu-tdep.c (spu_catch_start): Update.
3847 * symmisc.c (dump_symtab_1): Update.
3848 * symtab.c (lookup_global_symbol_from_objfile)
3849 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3850 (basic_lookup_transparent_type_quick)
3851 (basic_lookup_transparent_type, find_pc_sect_symtab)
3852 (find_pc_sect_line, search_symbols): Update.
3853 * block.c (find_block_in_blockvector): Make "bl" const.
3854 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3855 const.
3856 (blockvector_contains_pc): Make "bv" const.
3857 (block_for_pc_sect): Update.
3858 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3859 (blockvector_contains_pc): Update.
3860 * breakpoint.c (resolve_sal_pc): Update.
3861 * inline-frame.c (block_starting_point_at): Update.
3862
3863 2014-06-18 Tom Tromey <tromey@redhat.com>
3864
3865 * completer.c (complete_line): Make "line_buffer" const.
3866 * completer.h (complete_line): Update.
3867
3868 2014-06-18 Tom Tromey <tromey@redhat.com>
3869
3870 * symtab.c (add_macro_name): Remove unneeded cast.
3871
3872 2014-06-18 Tom Tromey <tromey@redhat.com>
3873
3874 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3875 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3876
3877 2014-06-18 Tom Tromey <tromey@redhat.com>
3878
3879 * probe.c (info_probes_for_ops): Make "arg" const.
3880 * probe.h (info_probes_for_ops): Update.
3881
3882 2014-06-18 Tom Tromey <tromey@redhat.com>
3883
3884 * varobj.c (varobj_create): Update.
3885 * valops.c (value_of_this): Update.
3886 * tracepoint.c (add_local_symbols, scope_info): Update.
3887 * symtab.h (struct general_symbol_info) <block>: Now const.
3888 * symtab.c (skip_prologue_sal)
3889 (default_make_symbol_completion_list_break_on)
3890 (skip_prologue_using_sal): Update.
3891 * stack.h (iterate_over_block_locals)
3892 (iterate_over_block_local_vars): Update.
3893 * stack.c (print_frame_args): Update.
3894 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3895 parameter const.
3896 (get_selected_block): Make return type const.
3897 * python/py-frame.c (frapy_block): Update.
3898 * python/py-block.c (gdbpy_block_for_pc): Update.
3899 * p-exp.y (%union) <bval>: Now const.
3900 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3901 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3902 * m2-exp.y (%union) <bval>: Now const.
3903 * linespec.c (get_current_search_block): Make return type const.
3904 (create_sals_line_offset, find_label_symbols): Update.
3905 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3906 Update.
3907 (block_starting_point_at): Make "block" const.
3908 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3909 (check_exception_resume): Update.
3910 * guile/scm-frame.c (gdbscm_frame_block): Update.
3911 * guile/scm-block.c (gdbscm_lookup_block): Update.
3912 * frame.h (get_frame_block): Update.
3913 (get_selected_block): Make return type const.
3914 * frame.c (frame_id_inner): Update.
3915 * f-valprint.c (info_common_command_for_block)
3916 (info_common_command): Update.
3917 * dwarf2loc.c (dwarf2_find_location_expression)
3918 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3919 (locexpr_describe_location_piece): Update.
3920 * c-exp.y (%union) <bval>: Now const.
3921 * breakpoint.c (resolve_sal_pc): Update.
3922 * blockframe.c (get_frame_block):Make return type const.
3923 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3924 (block_innermost_frame): Update.
3925 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3926 (block_for_pc, block_for_pc_sect): Update.
3927 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3928 'pblock' const.
3929 (block_for_pc_sect, block_for_pc): Make return type const.
3930 * ax-gdb.c (gen_expr): Update.
3931 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3932 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3933 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3934 (ada_read_var_value): Update.
3935 * ada-exp.y (struct name_info) <block>: Now const.
3936 (%union): Likewise.
3937 (block_lookup): Constify.
3938
3939 2014-06-18 Gary Benson <gbenson@redhat.com>
3940
3941 * nat/i386-dregs.h: New file.
3942 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3943 * i386-nat.h (i386-dregs.h): New include.
3944 (DR_FIRSTADDR): Now in i386-dregs.h.
3945 (DR_LASTADDR): Likewise.
3946 (DR_NADDR): Likewise.
3947 (DR_STATUS): Likewise.
3948 (DR_CONTROL): Likewise.
3949 (i386_debug_reg_state): Likewise.
3950 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3951
3952 2014-06-18 Don Breazeal <donb@codesourcery.com>
3953
3954 * breakpoint.c (set_longjmp_breakpoint): Call
3955 momentary_breakpoint_from_master with additional argument.
3956 (set_longjmp_breakpoint_for_call_dummy): Call
3957 momentary_breakpoint_from_master with additional argument.
3958 (set_std_terminate_breakpoint): Call
3959 momentary_breakpoint_from_master with additional argument.
3960 (momentary_breakpoint_from_master): Add argument to function
3961 definition and use it to initialize structure member flag.
3962 (clone_momentary_breakpoint): Call
3963 momentary_breakpoint_from_master with additional argument.
3964 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3965 member flags set in momentary_breakpoint_from_master.
3966
3967 2014-06-18 Gary Benson <gbenson@redhat.com>
3968
3969 * i386-nat.c (i386_show_dr): Renamed to
3970 i386_dr_show and made nonstatic. All uses updated.
3971 (i386_length_and_rw_bits): Renamed to
3972 i386_dr_length_and_rw_bits and made nonstatic.
3973 All uses updated.
3974 (i386_insert_aligned_watchpoint): Renamed to
3975 i386_dr_insert_aligned_watchpoint and made nonstatic.
3976 All uses updated.
3977 (i386_remove_aligned_watchpoint): Renamed to
3978 i386_dr_remove_aligned_watchpoint and made nonstatic.
3979 All uses updated.
3980 (i386_update_inferior_debug_regs): Renamed to
3981 i386_dr_update_inferior_debug_regs and made nonstatic.
3982 All uses updated.
3983
3984 2014-06-18 Gary Benson <gbenson@redhat.com>
3985
3986 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3987 (i386_dr_low_can_set_control): Likewise.
3988 (i386_dr_low_set_addr): Likewise.
3989 (i386_dr_low_set_control): Likewise.
3990 (i386_dr_low_get_addr): Likewise.
3991 (i386_dr_low_get_status): Likewise.
3992 (i386_dr_low_get_control): Likewise.
3993 (i386_insert_aligned_watchpoint): Use new macros.
3994 (i386_update_inferior_debug_regs): Likewise.
3995 (i386_stopped_data_address): Likewise.
3996
3997 2014-06-18 Gary Benson <gbenson@redhat.com>
3998
3999 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4000 New parameter. All uses updated.
4001
4002 2014-06-18 Gary Benson <gbenson@redhat.com>
4003
4004 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4005 All uses updated.
4006
4007 2014-06-18 Gary Benson <gbenson@redhat.com>
4008
4009 * i386-nat.c (debug_printf): New macro.
4010 (i386_get_debug_register_length): Likewise.
4011 (TARGET_HAS_DR_LEN_8): Use above macro.
4012 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4013 and printf_unfiltered. Use phex to format values.
4014
4015 2014-06-18 Gary Benson <gbenson@redhat.com>
4016
4017 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4018 Make const.
4019
4020 2014-06-18 Gary Benson <gbenson@redhat.com>
4021
4022 * i386-nat.c: Comment changes.
4023
4024 2014-06-18 Gary Benson <gbenson@redhat.com>
4025
4026 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4027
4028 2014-06-18 Gary Benson <gbenson@redhat.com>
4029
4030 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4031 (i386_insert_aligned_watchpoint): Likewise.
4032 (i386_remove_aligned_watchpoint): Likewise.
4033 (i386_handle_nonaligned_watchpoint): Likewise.
4034
4035 2014-06-18 Gary Benson <gbenson@redhat.com>
4036
4037 * i386-nat.c: Whitespace changes.
4038
4039 2014-06-17 Samuel Bronson <naesten@gmail.com>
4040
4041 * MAINTAINERS: Update Roland McGrath's email address.
4042 Thanks to Sergio Durigan Junior for pointing out that he left
4043 Red Hat a while ago, and giving me a current address.
4044
4045 2014-06-17 Tom Tromey <tromey@redhat.com>
4046
4047 * utils.h (savestring): Remove declaration.
4048
4049 2014-06-17 Tom Tromey <tromey@redhat.com>
4050
4051 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4052
4053 2014-06-16 Keith Seitz <keiths@redhat.com>
4054
4055 PR mi/15863
4056 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4057 to update the varobj if inferior_ptid is null_ptid.
4058
4059 2014-06-16 Tom Tromey <tromey@redhat.com>
4060
4061 * target.h (struct target_ops) <to_info_proc>: Make parameter
4062 const.
4063 (target_info_proc): Update.
4064 * target.c (target_info_proc): Make "args" const.
4065 * procfs.c (procfs_info_proc): Update.
4066 * linux-tdep.c (linux_info_proc): Update.
4067 (linux_core_info_proc_mappings): Make "args" const.
4068 (linux_core_info_proc): Update.
4069 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4070 * gdbarch.c: Rebuild.
4071 * gdbarch.h: Rebuild.
4072 * corelow.c (core_info_proc): Update.
4073
4074 2014-06-16 Tom Tromey <tromey@redhat.com>
4075
4076 * target.h (struct target_ops) <to_disconnect>: Make parameter
4077 const.
4078 (target_disconnect): Update.
4079 * target.c (target_disconnect): Make "args" const.
4080 * target-delegates.c: Rebuild.
4081 * remote.c (remote_disconnect): Update.
4082 * record.h (record_disconnect): Update.
4083 * record.c (record_disconnect): Update.
4084 * inf-child.c (inf_child_disconnect): Update.
4085
4086 2014-06-16 Tom Tromey <tromey@redhat.com>
4087
4088 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4089 * target.c (debug_to_rcmd, default_rcmd): Update.
4090 * target-delegates.c: Rebuild.
4091 * remote.c (remote_rcmd): Update.
4092 * monitor.c (monitor_rcmd): Update.
4093
4094 2014-06-16 Pedro Alves <palves@redhat.com>
4095
4096 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4097 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4098 have OBJF_SHARED set.
4099 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4100 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4101 instead of OBJF_USERLOADED.
4102 * objfiles.h (OBJF_SHARED): Update comment.
4103 (userloaded_objfile_contains_address_p): Rename to ...
4104 (shared_objfile_contains_address_p): ... this, and update
4105 comments.
4106 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4107 new objfile.
4108 (remove_symbol_file_command): Skip objfiles that don't have
4109 OBJF_SHARED set.
4110
4111 2014-06-16 Tom Tromey <tromey@redhat.com>
4112
4113 * minsyms.h (prim_record_minimal_symbol)
4114 (prim_record_minimal_symbol_and_info): Update comments.
4115
4116 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4117
4118 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4119 or --without-guile, according to how GDB was built.
4120
4121 2014-06-13 Tom Tromey <tromey@redhat.com>
4122
4123 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4124 to help_list.
4125 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4126 to help_list.
4127 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4128 help_list.
4129 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4130 help_list.Pass all_commands, not -1, to help_list.
4131 * cli/cli-dump.c (dump_command, append_command)
4132 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4133 (binary_dump_command, binary_append_command): Pass all_commands,
4134 not -1, to help_list.
4135 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4136 -1, to help_list.
4137 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4138 -1, to help_list.
4139 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4140 help_list.
4141 * top.c (set_history): Pass all_commands, not -1, to help_list.
4142 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4143 all_commands, not -1, to help_list.
4144 * symfile.c (overlay_command): Pass all_commands, not -1, to
4145 help_list.
4146 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4147 help_list.
4148 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4149 help_list.
4150 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4151 -1, to help_list.
4152 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4153 not -1, to help_list.
4154 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4155 not -1, to help_list.
4156 * maint.c (maintenance_command, maintenance_info_command)
4157 (maintenance_print_command, maintenance_set_cmd): Pass
4158 all_commands, not -1, to help_list.
4159 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4160 help_list.
4161 * language.c (set_check): Pass all_commands, not -1, to help_list.
4162 * infcmd.c (unset_command): Pass all_commands, not -1, to
4163 help_list.
4164 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4165 help_list.
4166 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4167 help_list.
4168 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4169 help_list.
4170 * breakpoint.c (save_command): Pass all_commands, not -1, to
4171 help_list.
4172 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4173 all_commands, not -1, to help_list.
4174
4175 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4176
4177 * regcache.c (struct register_to_invalidate): New structure.
4178 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4179 functions.
4180 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4181
4182 2014-06-12 Yao Qi <yao@codesourcery.com>
4183
4184 * varobj.c (varobj_get_num_children): Call
4185 varobj_is_dynamic_p.
4186 (varobj_list_children): Likewise.
4187 (varobj_update): Likewise. Update comments.
4188
4189 2014-06-12 Yao Qi <yao@codesourcery.com>
4190
4191 * varobj.c (varobj_pretty_printed_p): Rename to ...
4192 (varobj_is_dynamic_p): ... this. New function.
4193 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4194 (varobj_is_dynamic_p): Declare.
4195 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4196 (mi_print_value_p, varobj_update_one): Likewise.
4197
4198 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4199 Yao Qi <yao@codesourcery.com>
4200
4201 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4202 (varobj_get_iterator): Wrap up code for pretty-printer by
4203 "#if HAVE_PYTHON" and "#endif".
4204 (update_dynamic_varobj_children): Likewise.
4205
4206 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4207 Yao Qi <yao@codesourcery.com>
4208
4209 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4210 gdb_python_initialized is false. Move some code from varobj.c.
4211 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4212 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4213 (struct varobj_item): Moved to varobj-iter.h".
4214 (varobj_clear_saved_item): New function.
4215 (update_dynamic_varobj_children): Move python-related code to
4216 py-varobj.c.
4217 (free_variable): Call varobj_clear_saved_item and
4218 varobj_iter_delete.
4219
4220 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4221 Yao Qi <yao@codesourcery.com>
4222
4223 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4224 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4225 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4226 (py-varobj.o): New rule.
4227 * python/py-varobj.c: New file.
4228 * python/python-internal.h (py_varobj_get_iterator): Declare.
4229 * varobj-iter.h: New file.
4230 * varobj.c: Include "varobj-iter.h"
4231 (struct varobj) <child_iter>: Change its type from "PyObject *"
4232 to "struct varobj_iter *".
4233 <saved_item>: Likewise.
4234 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4235 [HAVE_PYTHON] (varobj_get_iterator): New function.
4236 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4237 python-specific code to python/py-varobj.c.
4238 (install_visualizer): Call varobj_iter_delete instead of
4239 Py_XDECREF.
4240 * varobj.h (varobj_ensure_python_env): Declare.
4241
4242 2014-06-12 Yao Qi <yao@codesourcery.com>
4243
4244 * varobj.c (struct varobj_item): New structure.
4245 (create_child_with_value): Update declaration.
4246 (varobj_add_child): Replace arguments 'name' and 'value' with
4247 'item'. All callers updated.
4248 (install_dynamic_child): Likewise.
4249 (update_dynamic_varobj_children): Likewise.
4250 (varobj_add_child): Likewise.
4251 (create_child_with_value): Likewise.
4252
4253 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4254
4255 * NEWS: Create a new section for the next release branch.
4256 Rename the section of the current branch, now that it has
4257 been cut.
4258
4259 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4260
4261 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4262 * version.in: Bump version to 7.8.50.DATE-cvs.
4263
4264 2014-06-11 Pedro Alves <palves@redhat.com>
4265
4266 PR remote/17028
4267 * ser-mingw.c (net_windows_socket_check_pending): New function.
4268 (net_windows_select_thread): Ignore spurious wakeups. Use
4269 net_windows_socket_check_pending.
4270 (net_windows_wait_handle): Check for pending events with
4271 ioctlsocket, through net_windows_socket_check_pending, instead of
4272 checking the socket's event.
4273
4274 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4275
4276 * python/python-internal.h (gdb_PyObject_GetAttrString)
4277 (gdb_PyObject_HasAttrString): New inline function definitions.
4278 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4279 char * of the second argument to PyObject_GetAttrString.
4280
4281 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4282
4283 * serial.c (serial_write): Fix index of character to be printed
4284 in call to serial_logchar when serial debug traces are enabled.
4285
4286 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4287
4288 * gdbtypes (resolve_dynamic_range): Add function description.
4289
4290 2014-06-09 Pedro Alves <palves@redhat.com>
4291
4292 * linux-nat.c (linux_child_follow_fork): Initialize status with
4293 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4294 inner block. Only pass the signal to PTRACE_DETACH if in pass
4295 state.
4296
4297 2014-06-09 Gary Benson <gbenson@redhat.com>
4298
4299 * common/signals.c (gdb_signal_from_host): Reorder to separate
4300 the always-available ANSI-standard signals from the signals that
4301 require checking.
4302 (do_gdb_signal_to_host): Likewise.
4303 * proc-events.c (signal_table): Likewise.
4304
4305 2014-06-08 Hui Zhu <hui@codesourcery.com>
4306
4307 * common/linux-ptrace.c (linux_disable_event_reporting): New
4308 function.
4309 * common/linux-ptrace.h (linux_disable_event_reporting): New
4310 declaration.
4311 * linux-nat.c (linux_child_follow_fork): Do a single step before
4312 detach.
4313
4314 2014-06-07 Keith Seitz <keiths@redhat.com>
4315
4316 Revert:
4317 PR c++/16253
4318 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4319 from symbol_matches_domain in symtab.c. All local callers
4320 of symbol_matches_domain updated.
4321 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4322 search STRUCT_DOMAIN.
4323 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4324 independently. standard_lookup will do that automatically.
4325 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4326 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4327 (cp_lookup_symbol_in_namespace): Likewise.
4328 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4329 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4330 may return a STRUCT_DOMAIN match.
4331 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4332 * cp-support.c: Include language.h.
4333 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4334 VAR_DOMAIN.
4335 * psymtab.c (match_partial_symbol): Compare the requested
4336 domain with the symbol's domain directly.
4337 (lookup_partial_symbol): Likewise.
4338 * symtab.c (lookup_symbol_in_language): Explain when/why
4339 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4340 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4341 appropriate languages.
4342 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4343 and moved to ada-lang.c
4344 (lookup_block_symbol): Explain that this function only returns
4345 symbol matching the requested DOMAIN.
4346 Compare the requested domain with the symbol's domain directly.
4347 (iterate_over_symbols): Compare the requested domain with the
4348 symbol's domain directly.
4349 * symtab.h (symbol_matches_domain): Remove.
4350
4351 2014-06-06 Doug Evans <xdje42@gmail.com>
4352
4353 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4354 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4355 (gdbscm_guile_version_is_at_least): Declare.
4356 (gdbscm_scm_string_to_int): Declare.
4357 * guile/guile.c (gdbscm_guile_major_version): New global.
4358 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4359 (guile_datadir): New static global.
4360 (gdbscm_guile_data_directory): New function.
4361 (initialize_scheme_side): Update.
4362 (misc_guile_functions): Add guile-data-directory.
4363 (initialize_gdb_module): Fetch guile version number.
4364 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4365 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4366 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4367 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4368 comments.
4369 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4370 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4371 * guile/scm-value.c (gdbscm_value_to_string): Only call
4372 scm_port_conversion_strategy if Guile version >= 2.0.6.
4373
4374 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4375
4376 * main.c (print_gdb_help): Add -q and --silent.
4377
4378 2014-06-06 Gary Benson <gbenson@redhat.com>
4379
4380 * common/signals.c: Remove preprocessor conditionals for
4381 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4382 SIGSEGV and SIGTERM.
4383 * proc-events.c: Likewise.
4384
4385 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4386
4387 * symfile.c (symfile_free_objfile): Remove restriction to
4388 OBJF_USERLOADED.
4389 * symfile-mem.c (symbol_file_add_from_memory): Call
4390 add_target_sections_of_objfile.
4391
4392 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4393
4394 * guile/scm-value.c (gdbscm_history_append_x): Use
4395 'vlscm_get_value_smob_arg_unsafe' instead of
4396 'vlscm_scm_to_value'.
4397
4398 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4399
4400 PR mi/15806
4401 * utils.c (printchar): Don't escape at all if quoter is NUL.
4402 Update function documentation to clarify effect of parameter
4403 QUOTER.
4404 * remote.c (escape_buffer): Pass '\\' as the quoter to
4405 fputstrn_unfiltered.
4406 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4407 generate the output.
4408 (mi_solib_unloaded): Same.
4409
4410 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4411
4412 * development.sh: Delete.
4413 * Makefile.in (config.status): Adjust dependency on development.sh.
4414 * configure.ac: Adjust development.sh source call.
4415 * configure: Regenerate.
4416
4417 2014-06-04 Doug Evans <xdje42@gmail.com>
4418
4419 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4420 is_scheme_bkpt, spec.
4421 (bpscm_make_breakpoint_smob): Initialize new members.
4422 (gdbscm_create_breakpoint_x): Split into two ...
4423 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4424 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4425 (scheme_function breakpoint_functions): Update.
4426 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4427 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4428 register-breakpoint!.
4429
4430 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4431
4432 PR server/17023
4433 * mem-break.c (z_type_supported): Return zero if
4434 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4435
4436 2014-06-04 Tom Tromey <tromey@redhat.com>
4437
4438 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4439 value_from_contents_and_address_unresolved.
4440 (ada_template_to_fixed_record_type_1): Likewise.
4441 (ada_which_variant_applies): Likewise.
4442 * value.h (value_from_contents_and_address_unresolved): Declare.
4443 * value.c (value_from_contents_and_address_unresolved): New
4444 function.
4445 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4446 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4447 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4448
4449 2014-06-04 Tom Tromey <tromey@redhat.com>
4450
4451 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4452
4453 2014-06-04 Tom Tromey <tromey@redhat.com>
4454
4455 * procfs.c (procfs_attach): Make "args" const.
4456 * windows-nat.c (windows_attach): Make "args" const.
4457 * nto-procfs.c (procfs_attach): Make "args" const.
4458 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4459 * go32-nat.c (go32_attach): Make "args" const.
4460 * gnu-nat.c (gnu_attach): Make "args" const.
4461 * darwin-nat.c (darwin_attach): Make "args" const.
4462 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4463 * linux-nat.c (linux_nat_attach): Make "args" const.
4464 * remote.c (extended_remote_attach_1, extended_remote_attach):
4465 Make "args" const.
4466 * target.h (struct target_ops) <to_attach>: Make "args" const.
4467 (find_default_attach): Likewise.
4468 * utils.c (parse_pid_to_attach): Make "args" const.
4469 * utils.h (parse_pid_to_attach): Update.
4470
4471 2014-06-04 Tom Tromey <tromey@redhat.com>
4472
4473 * target-delegates.c: Rebuild.
4474 * target.c (default_thread_address_space): New function.
4475 (target_thread_address_space): Simplify.
4476 * target.h (struct target_ops) <to_thread_address_space>: Add
4477 TARGET_DEFAULT_FUNC.
4478
4479 2014-06-04 Doug Evans <xdje42@gmail.com>
4480
4481 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4482
4483 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4484
4485 * record-btrace.c: Include event-loop.h and inf-loop.h.
4486 (record_btrace_resume_exec_dir)
4487 (record_btrace_async_inferior_event_handler)
4488 (record_btrace_handle_async_inferior_event): New.
4489 (record_btrace_open): Create async event handler.
4490 (record_btrace_close): Delete async event handler.
4491 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4492 Mark async event handler.
4493 (record_btrace_execution_direction): New.
4494 (init_record_btrace_ops): Initialize to_execution_direction.
4495
4496 2014-06-03 Doug Evans <xdje42@gmail.com>
4497
4498 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4499 (gdbscm_make_parameter): Ditto.
4500
4501 2014-06-03 Doug Evans <dje@google.com>
4502
4503 * exec.c (exec_close_1): Call clear_section_table instead of
4504 resize_section_table.
4505 (clear_section_table): New function.
4506 (resize_section_table): Make static. Rename arg num_added to
4507 adjustment.
4508 * exec.h (clear_section_table): Declare.
4509 (resize_section_table): Delete.
4510 * progspace.c (release_program_space): Call clear_section_table
4511 instead of resize_section_table.
4512
4513 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4514
4515 * NEWS (Python Scripting): Add entry about the new xmethods
4516 feature.
4517
4518 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4519
4520 * python/py-xmethods.c: New file.
4521 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4522 (objfpy_dealloc): XDECREF on the new xmethods field.
4523 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4524 field.
4525 (objfpy_get_xmethods): New function.
4526 (objfile_getset): New entry 'xmethods'.
4527 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4528 (pspy_dealloc): XDECREF on the new xmethods field.
4529 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4530 field.
4531 (pspy_get_xmethods): New function.
4532 (pspace_getset): New entry 'xmethods'.
4533 * python/python-internal.h: Add declarations for new functions.
4534 * python/python.c (_initialize_python): Invoke
4535 gdbpy_initialize_xmethods.
4536 * python/lib/gdb/__init__.py (xmethods): New
4537 attribute.
4538 * python/lib/gdb/xmethod.py: New file.
4539 * python/lib/gdb/command/xmethods.py: New file.
4540
4541 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4542
4543 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4544 best match method returned by find_overload_match is an xmethod.
4545 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4546 the best matching operator returned by find_overload_match is an
4547 xmethod.
4548 * valops.c: #include "extension.h".
4549 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4550 Return void. The list of matching source methods is returned in
4551 "fn_list" and a vector of matching debug method workers is
4552 returned in "xm_worker_vec". Update all callers.
4553 (value_find_oload_method_list): Likewise.
4554 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4555 non-NULL, then the index of the best matching method in this
4556 vector is returned. Update all callers.
4557 (find_overload_match): Include xmethods while performing overload
4558 resolution.
4559
4560 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4561
4562 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4563 * extension-priv.h (struct extension_language_ops): Add the
4564 xmethod interface.
4565 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4566 get_matching_xmethod_workers, get_xmethod_argtypes,
4567 invoke_xmethod, free_xmethod_worker,
4568 free_xmethod_worker_vec): New functions.
4569 * extension.h: #include "common/vec.h".
4570 New function declarations.
4571 (struct xmethod_worker): New struct.
4572 (VEC (xmethod_worker_ptr)): New vector type.
4573 (xmethod_worker_ptr): New typedef.
4574 (xmethod_worker_vec): Likewise.
4575 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4576 builtin_type.
4577 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4578 (struct builtin_type): New field "xmethod".
4579 * valarith.c (value_ptradd): Assert that the value argument is not
4580 lval_xcallable.
4581 * valops.c (value_must_coerce_to_target): Return 0 for
4582 lval_xcallable values.
4583 * value.c (struct value): New field XM_WORKER in the field
4584 LOCATION.
4585 (value_address, value_raw_address): Return 0 for lval_xcallable
4586 values.
4587 (set_value_address): Assert that the value is not an
4588 lval_xcallable.
4589 (value_free): Free the associated xmethod worker when freeing
4590 lval_xcallable values.
4591 (set_value_component_location): Assert that the WHOLE value is not
4592 lval_xcallable.
4593 (value_of_xmethod, call_xmethod): New functions.
4594 * value.h: Declare "struct xmethod_worker".
4595 Declare new functions value_of_xmethod, call_xmethod.
4596
4597 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4598 Pedro Alves <palves@redhat.com>
4599
4600 PR breakpoints/17000
4601 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4602 New function, extracted from software_breakpoint_inserted_here_p.
4603 (software_breakpoint_inserted_here_p): Replace factored out code
4604 by call to find_non_raw_software_breakpoint_inserted_here.
4605 (bp_target_info_copy_insertion_state): New function.
4606 (bkpt_insert_location): Handle the case of a single-step
4607 breakpoint already inserted at the same address.
4608 (bkpt_remove_location): Handle the case of a single-step
4609 breakpoint still inserted at the same address.
4610 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4611 breakpoint already inserted at the same address.
4612 (deprecated_remove_raw_breakpoint): Handle the case of a
4613 non-raw breakpoint still inserted at the same address.
4614 (find_single_step_breakpoint): New function, extracted from
4615 single_step_breakpoint_inserted_here_p.
4616 (find_single_step_breakpoint): New function,
4617 factored out from single_step_breakpoint_inserted_here_p.
4618 (single_step_breakpoint_inserted_here_p): Reimplement.
4619
4620 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4621
4622 Pushed by Joel Brobecker <brobecker@adacore.com>
4623 * source.c (show_substitute_path_command): Fix display of matching
4624 substitution rules.
4625
4626 2014-06-03 Gary Benson <gbenson@redhat.com>
4627
4628 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4629
4630 2014-06-02 Doug Evans <xdje42@gmail.com>
4631
4632 Add parameter support for Guile.
4633 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4634 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4635 (scm-param.o): New rule.
4636 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4637 (gdbscm_misc_error): Declare.
4638 (gdbscm_canonicalize_command_name): Declare.
4639 (gdbscm_scm_to_host_string): Declare.
4640 (gdbscm_scm_from_host_string): Declare.
4641 (gdbscm_initialize_parameters): Declare.
4642 * guile/guile.c (initialize_gdb_module): Call
4643 gdbscm_initialize_parameters.
4644 * guile/lib/gdb.scm: Export parameter symbols.
4645 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4646 cmdscm_canonicalize_name and made public. All callers updated.
4647 * guile/scm-exception.c (gdbscm_misc_error): New function.
4648 * guile/scm-param.c: New file.
4649 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4650 (gdbscm_scm_to_host_string): New function.
4651 (gdbscm_scm_from_host_string): New function.
4652 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4653
4654 2014-06-02 Doug Evans <xdje42@gmail.com>
4655
4656 Add command support for Guile.
4657 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4658 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4659 (scm-cmd.o): New rule.
4660 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4661 (gdbscm_user_error_p): Declare.
4662 (gdbscm_parse_command_name): Declare.
4663 (gdbscm_valid_command_class_p): Declare.
4664 (gdbscm_initialize_commands): Declare.
4665 * guile/guile.c (initialize_gdb_module): Call
4666 gdbscm_initialize_commands.
4667 * guile/lib/gdb.scm: Export command symbols.
4668 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4669 (throw-user-error): New function.
4670 * guile/scm-cmd.c: New file.
4671 * guile/scm-exception.c (user_error_symbol): New static global.
4672 (gdbscm_user_error_p): New function.
4673 (gdbscm_initialize_exceptions): Set user_error_symbol.
4674 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4675
4676 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4677
4678 * top.c (command_loop): Handle comments here...
4679 (command_line_input): ... not here.
4680
4681 2014-06-02 Doug Evans <xdje42@gmail.com>
4682
4683 Add progspace support for Guile.
4684 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4685 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4686 (scm-progspace.o): New rule.
4687 * guile/guile-internal.h (pspace_smob): New typedef.
4688 (psscm_pspace_smob_pretty_printers): Declare.
4689 (psscm_pspace_smob_from_pspace): Declare.
4690 (psscm_scm_from_pspace): Declare.
4691 * guile/guile.c (initialize_gdb_module): Call
4692 gdbscm_initialize_pspaces.
4693 * guile/lib/gdb.scm: Export progspace symbols.
4694 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4695 support.
4696 (append-pretty-printer!): Ditto.
4697 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4698 Implement.
4699 * guile/scm-progspace.c: New file.
4700
4701 2014-06-03 Alan Modra <amodra@gmail.com>
4702
4703 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4704 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4705
4706 2014-06-02 Doug Evans <dje@google.com>
4707
4708 Add support for skeletonless type units.
4709 * dwarf2read.c (struct dwarf2_per_objfile): New member
4710 n_allocated_type_units.
4711 (struct dwarf2_per_objfile) <tu_stats>: New member
4712 nr_all_type_units_reallocs.
4713 (create_signatured_type_table_from_index): Initialize
4714 n_allocated_type_units
4715 (create_all_type_units): Ditto.
4716 (add_type_unit): Move up in file. New arg slot.
4717 All callers updated. Increase space for all_type_units more
4718 efficiently.
4719 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4720 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4721 (lookup_dwp_signatured_type): Ditto.
4722 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4723 All callers updated.
4724 (build_type_psymtabs_1): Leave type_unit_groups as
4725 NULL if no TUs present.
4726 (print_tu_stats): New function.
4727 (process_skeletonless_type_unit): New function.
4728 (process_dwo_file_for_skeletonless_type_units): New
4729 function.
4730 (process_skeletonless_type_units): New function.
4731 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4732 Call print tu_stats if debugging enabled.
4733
4734 2014-06-02 Pedro Alves <palves@redhat.com>
4735
4736 * breakpoint.c (build_target_command_list): Don't build a command
4737 list if we have any duplicate location that isn't a dprintf.
4738
4739 2014-06-02 Pedro Alves <palves@redhat.com>
4740
4741 * breakpoint.c (dprintf_breakpoint_hit): New function.
4742 (initialize_breakpoint_ops): Install it as dprintf's
4743 breakpoint_hit method.
4744
4745 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4746
4747 * source.c (substitute_path_rule_matches): Simplify using
4748 filename_ncmp instead of FILENAME_CMP.
4749
4750 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4751
4752 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4753
4754 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4755
4756 * configure.ac: When Guile is available, check for the
4757 availability of 'scm_new_smob'.
4758 * configure, config.h.in: Regenerate.
4759 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4760 function.
4761
4762 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4763
4764 * frame.c (struct frame_info): Add stop_string field.
4765 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4766 (get_prev_frame_always): Old content moved into
4767 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4768 TRY_CATCH, handle MEMORY_ERROR exceptions.
4769 (frame_stop_reason_string): New function definition.
4770 * frame.h (unwind_stop_reason_to_string): Extend comment to
4771 mention frame_stop_reason_string.
4772 (frame_stop_reason_string): New function declaration.
4773 * stack.c (frame_info): Switch to frame_stop_reason_string.
4774 (backtrace_command_1): Switch to frame_stop_reason_string.
4775 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4776 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4777 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4778
4779 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4780
4781 * frame.c (frame_stop_reason_string): Rename to ...
4782 (unwind_stop_reason_to_string): this.
4783 * frame.h (frame_stop_reason_string): Rename to ...
4784 (unwind_stop_reason_to_string): this.
4785 * stack.c (frame_info): Update call to frame_stop_reason_string.
4786 (backtrace_command_1): Likewise.
4787 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4788 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4789
4790 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4791
4792 * frame.c (remove_prev_frame): New function.
4793 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4794 remove_prev_frame.
4795
4796 2014-05-29 Pedro Alves <palves@redhat.com>
4797
4798 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4799 and make it const. When a single-step decays to a continue,
4800 clear 'step', not 'hw_step'. Pass whether the caller wanted
4801 to step to user_visible_resume_ptid, not what we ask the
4802 target to do.
4803
4804 2014-05-29 Pedro Alves <palves@redhat.com>
4805
4806 * infrun.c (process_event_stop_test, handle_step_into_function)
4807 (handle_step_into_function_backward): Adjust.
4808 Don't set the even thread's stop_step and call stop_waiting before
4809 calling end_stepping_range. Instead do that ...
4810 (end_stepping_range): ... here. Take an ecs pointer parameter.
4811
4812 2014-05-29 Pedro Alves <palves@redhat.com>
4813
4814 * infrun.c (stop_stepping): Rename to ...
4815 (stop_waiting): ... this.
4816 (proceed): Update comment.
4817 (process_event_stop_test, handle_inferior_event)
4818 (handle_signal_stop, handle_step_into_function)
4819 (handle_step_into_function_backward): Update.
4820
4821 2014-05-29 Pedro Alves <palves@redhat.com>
4822
4823 * infcall.c (run_inferior_call): Don't check whether the current
4824 thread is running after the proceed call.
4825
4826 2014-05-29 Pedro Alves <palves@redhat.com>
4827 Tom Tromey <tromey@redhat.com>
4828
4829 * NEWS: Mention "maint set target-async", "set mi-async", and that
4830 background execution commands are now always available.
4831 * target.h (target_async_permitted): Update comment.
4832 * target.c (target_async_permitted, target_async_permitted_1):
4833 Default to 1.
4834 (set_target_async_command): Rename to ...
4835 (maint_set_target_async_command): ... this.
4836 (show_target_async_command): Rename to ...
4837 (maint_show_target_async_command): ... this.
4838 (_initialize_target): Adjust.
4839 * infcmd.c (prepare_execution_command): Make extern.
4840 * inferior.h (prepare_execution_command): Declare.
4841 * infrun.c (set_observer_mode): Leave target async alone.
4842 * mi/mi-interp.c (mi_interpreter_init): Install
4843 mi_on_sync_execution_done as sync_execution_done observer.
4844 (mi_on_sync_execution_done): New function.
4845 (mi_execute_command_input_handler): Don't print the prompt if we
4846 just started a synchronous command with an async target.
4847 (mi_on_resume): Check sync_execution before printing prompt.
4848 * mi/mi-main.h (mi_async_p): Declare.
4849 * mi/mi-main.c: Include gdbcmd.h.
4850 (mi_async_p): New function.
4851 (mi_async, mi_async_1): New globals.
4852 (set_mi_async_command, show_mi_async_command, mi_async): New
4853 functions.
4854 (exec_continue): Call prepare_execution_command.
4855 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4856 (mi_execute_async_cli_command): Use mi_async_p.
4857 (_initialize_mi_main): Install "set mi-async". Make
4858 "target-async" a deprecated alias.
4859
4860 2014-05-29 Pedro Alves <palves@redhat.com>
4861
4862 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4863 (_initialize_cli_interp): Adjust.
4864 * event-loop.c: Include "observer.h".
4865 (start_event_loop): Notify 'command_error' observers instead of
4866 calling display_gdb_prompt. Remove FIXME comment.
4867 * event-top.c (display_gdb_prompt): Remove call into the
4868 interpreters.
4869 * inf-loop.c: Include "observer.h".
4870 (inferior_event_handler): Notify 'command_error' observers instead
4871 of calling display_gdb_prompt.
4872 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4873 observers instead of calling display_gdb_prompt.
4874 * interps.c (interp_set): Don't call display_gdb_prompt.
4875 (current_interp_display_prompt_p): Delete.
4876 * interps.h (interp_prompt_p): Delete declaration.
4877 (interp_prompt_p_ftype): Delete.
4878 (struct interp_procs) <prompt_proc_p>: Delete field.
4879 (current_interp_display_prompt_p): Delete declaration.
4880 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4881 (_initialize_mi_interp): Adjust.
4882 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4883 'command_error' observers.
4884 (tui_on_sync_execution_done, tui_on_command_error): New
4885 functions.
4886 (tui_display_prompt_p): Delete.
4887 (_initialize_tui_interp): Adjust.
4888
4889 2014-05-29 Pedro Alves <palves@redhat.com>
4890
4891 PR gdb/13860
4892 * cli/cli-interp.c: Include infrun.h and observer.h.
4893 (cli_uiout, cli_interp): New globals.
4894 (cli_on_signal_received, cli_on_end_stepping_range)
4895 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4896 functions.
4897 (cli_interpreter_init): Install them as 'end_stepping_range',
4898 'signal_received' 'signal_exited', 'exited' and 'no_history'
4899 observers.
4900 (_initialize_cli_interp): Remove cli_interp local.
4901 * infrun.c (handle_inferior_event): Call the several stop reason
4902 observers instead of printing the stop reason directly.
4903 (end_stepping_range): New function.
4904 (print_end_stepping_range_reason, print_signal_exited_reason)
4905 (print_exited_reason, print_signal_received_reason)
4906 (print_no_history_reason): Make static, and add an uiout
4907 parameter. Print to that instead of to CURRENT_UIOUT.
4908 * infrun.h (print_end_stepping_range_reason)
4909 (print_signal_exited_reason, print_exited_reason)
4910 (print_signal_received_reason print_no_history_reason): New
4911 declarations.
4912 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4913 'mi_uiout'.
4914 <cli_uiout>: New field.
4915 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4916 uiout for CLI output. Install 'signal_received',
4917 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4918 observers.
4919 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4920 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4921 (mi_on_no_history): New functions.
4922 (ui_out_free_cleanup): Delete function.
4923 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4924 instead use the one already stored in the MI interpreter data.
4925 (mi_ui_out): Adjust.
4926 * tui/tui-interp.c: Include infrun.h and observer.h.
4927 (tui_interp): New global.
4928 (tui_on_signal_received, tui_on_end_stepping_range)
4929 (tui_on_signal_exited, tui_on_exited)
4930 (tui_on_no_history): New functions.
4931 (tui_init): Install them as 'end_stepping_range',
4932 'signal_received' 'signal_exited', 'exited' and 'no_history'
4933 observers.
4934 (_initialize_tui_interp): Delete tui_interp local.
4935
4936 2014-05-29 Pedro Alves <palves@redhat.com>
4937
4938 PR gdb/15713
4939 * linux-nat.c (linux_nat_resume_callback): Rename the second
4940 parameter to 'except'. Skip LP if it points to EXCEPT.
4941 (linux_nat_resume): Don't mark the event lwp as not stopped
4942 before resuming sibling lwps. Instead ask
4943 linux_nat_resume_callback to skip the event lwp. Mark it as not
4944 stopped after actually resuming it.
4945 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4946 resuming it.
4947 (wait_lwp): Mark the lwp as stopped here.
4948 (stop_wait_callback): Mark the lwp as not stopped right after
4949 resuming it. Don't mark lwps as stopped here.
4950 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4951 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4952
4953 2014-05-29 Pedro Alves <palves@redhat.com>
4954
4955 PR PR15693
4956 * infrun.c (resume): Determine how much to resume depending on
4957 whether the caller wanted a step, not whether we can hardware step
4958 the target. Mark all threads that we intend to run as running,
4959 unless we're calling an inferior function.
4960 (normal_stop): If the thread is running an infcall, don't finish
4961 thread state.
4962 * target.c (target_resume): Don't mark threads as running here.
4963
4964 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4965
4966 * serial.c (_initialize_serial): Remove support for
4967 the "set remotebaud" and "show remotebaud" commands.
4968 * NEWS: Add entry documenting the removal of that command.
4969
4970 2014-05-28 Yao Qi <yao@codesourcery.com>
4971
4972 * charset.c: Fix typo in comments.
4973
4974 2014-05-27 Gary Benson <gbenson@redhat.com>
4975
4976 * utils.c (internal_vproblem): Prompt for a bug report.
4977
4978 2014-05-26 Andy Wingo <wingo@igalia.com>
4979
4980 * guile/scm-arch.c (arscm_mark_arch_smob):
4981 * guile/scm-block.c (bkscm_mark_block_smob)
4982 (bkscm_mark_block_syms_progress_smob):
4983 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4984 * guile/scm-exception.c (exscm_mark_exception_smob):
4985 * guile/scm-frame.c (frscm_mark_frame_smob):
4986 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4987 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4988 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4989 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4990 (ppscm_mark_pretty_printer_worker_smob):
4991 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4992 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4993 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4994 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4995 mark functions.
4996 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4997 function.
4998
4999 2014-05-26 Andy Wingo <wingo@igalia.com>
5000 Doug Evans <xdje42@gmail.com>
5001
5002 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5003 empty_base_class. All uses updated.
5004 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5005 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5006 Adapt all callers.
5007 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5008 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5009 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5010 (gdbscm_gsmob_has_property_p, add_property_name)
5011 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5012 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5013 (gdb-object-has-property?, gdb-object-properties): Remove.
5014 (gdb-object-kind): Renamed from gsmob-kind.
5015
5016 2014-05-26 Andy Wingo <wingo@igalia.com>
5017
5018 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5019 * configure: Regenerate.
5020
5021 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5022
5023 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5024
5025 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5026
5027 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5028 (replay_memory_access_read_only, replay_memory_access_read_write)
5029 (replay_memory_access_types, replay_memory_access)
5030 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5031 (cmd_set_record_btrace, cmd_show_record_btrace)
5032 (cmd_show_replay_memory_access): New.
5033 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5034 (record_btrace_remove_breakpoint): Replace
5035 record_btrace_allow_memory_access with replay_memory_access.
5036 (_initialize_record_btrace): Add commands.
5037 * NEWS: Announce it.
5038
5039 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5040
5041 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5042
5043 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5044
5045 * MAINTAINERS (Write After Approval): Move self back from
5046 paper trail.
5047
5048 2014-05-22 Pedro Alves <palves@redhat.com>
5049
5050 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5051 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5052 (disable_randomization, enum exec_direction_kind)
5053 (execution_direction, stop_registers, start_remote)
5054 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5055 (wait_for_inferior, normal_stop, get_last_target_status)
5056 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5057 (insert_step_resume_breakpoint_at_sal)
5058 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5059 (set_step_info, print_stop_event, signal_stop_state)
5060 (signal_print_state, signal_pass_state, signal_stop_update)
5061 (signal_print_update, signal_pass_update)
5062 (update_signals_program_target, clear_exit_convenience_vars)
5063 (displaced_step_dump_bytes, update_observer_mode)
5064 (signal_catch_update, gdb_signal_from_command): Move
5065 declarations ...
5066 * infrun.h: ... to this new file.
5067 * amd64-tdep.c: Include infrun.h.
5068 * annotate.c: Include infrun.h.
5069 * arch-utils.c: Include infrun.h.
5070 * arm-linux-tdep.c: Include infrun.h.
5071 * arm-tdep.c: Include infrun.h.
5072 * break-catch-sig.c: Include infrun.h.
5073 * breakpoint.c: Include infrun.h.
5074 * common/agent.c: Include infrun.h instead of inferior.h.
5075 * corelow.c: Include infrun.h.
5076 * event-top.c: Include infrun.h.
5077 * go32-nat.c: Include infrun.h.
5078 * i386-tdep.c: Include infrun.h.
5079 * inf-loop.c: Include infrun.h.
5080 * infcall.c: Include infrun.h.
5081 * infcmd.c: Include infrun.h.
5082 * infrun.c: Include infrun.h.
5083 * linux-fork.c: Include infrun.h.
5084 * linux-nat.c: Include infrun.h.
5085 * linux-thread-db.c: Include infrun.h.
5086 * monitor.c: Include infrun.h.
5087 * nto-tdep.c: Include infrun.h.
5088 * procfs.c: Include infrun.h.
5089 * record-btrace.c: Include infrun.h.
5090 * record-full.c: Include infrun.h.
5091 * remote-m32r-sdi.c: Include infrun.h.
5092 * remote-mips.c: Include infrun.h.
5093 * remote-notif.c: Include infrun.h.
5094 * remote-sim.c: Include infrun.h.
5095 * remote.c: Include infrun.h.
5096 * reverse.c: Include infrun.h.
5097 * rs6000-tdep.c: Include infrun.h.
5098 * s390-linux-tdep.c: Include infrun.h.
5099 * solib-irix.c: Include infrun.h.
5100 * solib-osf.c: Include infrun.h.
5101 * solib-svr4.c: Include infrun.h.
5102 * target.c: Include infrun.h.
5103 * top.c: Include infrun.h.
5104 * windows-nat.c: Include infrun.h.
5105 * mi/mi-interp.c: Include infrun.h.
5106 * mi/mi-main.c: Include infrun.h.
5107 * python/py-threadevent.c: Include infrun.h.
5108
5109 2014-05-22 Pedro Alves <palves@redhat.com>
5110
5111 * infrun.c (handle_inferior_event): Store the exit code for
5112 --return-child-result here, instead of ...
5113 (print_exited_reason): ... here.
5114
5115 2014-05-21 Pedro Alves <palves@redhat.com>
5116
5117 PR gdb/13860
5118 * gdbthread.h (struct thread_control_state): New field
5119 `command_interp'.
5120 * infrun.c (follow_fork): Copy the new thread control field to the
5121 child fork thread.
5122 (clear_proceed_status_thread): Clear the new thread control field.
5123 (proceed): Set the new thread control field.
5124 * interps.h (command_interp): Declare.
5125 * interps.c (command_interpreter): New global.
5126 (command_interp): New function.
5127 (interp_exec): Set `command_interpreter' while here.
5128 * cli-out.c (cli_uiout_dtor): New function.
5129 (cli_ui_out_impl): Install it.
5130 * mi/mi-interp.c: Include cli-out.h.
5131 (mi_cmd_interpreter_exec): Add comment.
5132 (restore_current_uiout_cleanup): New function.
5133 (ui_out_free_cleanup): New function.
5134 (mi_on_normal_stop): If finishing an execution command started by
5135 a CLI command, or any kind of breakpoint-like event triggered,
5136 print the stop event to the output (CLI) stream.
5137 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5138
5139 2014-05-21 Pedro Alves <palves@redhat.com>
5140
5141 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5142 current source line having changed.
5143 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5144 * infrun.c (normal_stop): Adjust call to
5145 set_current_sal_from_frame.
5146 * source.c (clear_lines_listed_range): New function.
5147 (set_current_source_symtab_and_line, identify_source_line): Clear
5148 the lines listed range.
5149 (line_info): Handle the first "info line" after the current source
5150 line having changed.
5151 * stack.c (print_stack_frame): Remove center handling.
5152 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5153 center sal.line.
5154
5155 2014-05-21 Pedro Alves <palves@redhat.com>
5156
5157 * inf-child.c (inf_child_mourn_inferior): New function.
5158 * inf-child.h (inf_child_mourn_inferior): New declaration.
5159 * darwin-nat.c (darwin_mourn_inferior): Use
5160 inf_child_mourn_inferior.
5161 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5162 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5163 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5164 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5165 * windows-nat.c (windows_mourn_inferior): Likewise.
5166
5167 2014-05-21 Doug Evans <xdje42@gmail.com>
5168
5169 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5170
5171 2014-05-21 Doug Evans <xdje42@gmail.com>
5172
5173 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5174 (gdbscm_out_of_range_error): Ditto.
5175 (gdbscm_memory_error): Ditto.
5176 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5177 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5178 (gdbscm_out_of_range_error): Update.
5179 (gdbscm_memory_error): Update.
5180 (gdbscm_scm_to_target_string_unsafe): Delete.
5181
5182 2014-05-21 Pedro Alves <palves@redhat.com>
5183
5184 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5185 globals.
5186 (inf_child_open_target): New function.
5187 (inf_child_open): Use inf_child_open_target to push the target
5188 instead of erroring out.
5189 (inf_child_disconnect, inf_child_close)
5190 (inf_child_maybe_unpush_target): New functions.
5191 (inf_child_target): Install inf_child_disconnect and
5192 inf_child_close. Store a pointer to the returned object.
5193 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5194 declarations.
5195 * target.c (auto_connect_native_target): New global.
5196 (show_default_run_target): New function.
5197 (find_default_run_target): Return NULL if automatically connecting
5198 to the native target is disabled.
5199 (_initialize_target): Install set/show auto-connect-native-target.
5200 * NEWS: Mention "set auto-connect-native-target", and "target
5201 native".
5202 * linux-nat.c (super_close): New global.
5203 (linux_nat_close): Call super_close.
5204 (linux_nat_add_target): Store a pointer to the base class's
5205 to_close method.
5206 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5207 inf_child_maybe_unpush.
5208 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5209 already pushed.
5210 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5211 the inferior. Use inf_child_maybe_unpush_target.
5212 (inf_ttrace_attach): Don't push the target if it is already
5213 pushed.
5214 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5215 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5216 after mourning the inferior. Use inf_child_maybe_unpush_target.
5217 (darwin_attach_pid): Don't push the target if it is already
5218 pushed.
5219 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5220 mourning the inferior. Use inf_child_maybe_unpush_target.
5221 (gnu_detach): Use inf_child_maybe_unpush_target.
5222 * go32-nat.c (go32_create_inferior): Don't push the target if it
5223 is already pushed.
5224 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5225 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5226 (procfs_open): Rename to ...
5227 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5228 comments. Can target_preopen before changing node. Call
5229 inf_child_open_target to push the target explicitly.
5230 (procfs_attach): Don't push the target if it is already pushed.
5231 (procfs_detach): Use inf_child_maybe_unpush_target.
5232 (procfs_create_inferior): Don't push the target if it is already
5233 pushed.
5234 (nto_native_ops): New global.
5235 (procfs_open): Reimplement.
5236 (procfs_native_open): New function.
5237 (init_procfs_targets): Install procfs_native_open as to_open of
5238 "target native". Store a pointer to the "native" target in
5239 nto_native_ops.
5240 * procfs.c (procfs_attach): Don't push the target if it is already
5241 pushed.
5242 (procfs_detach): Use inf_child_maybe_unpush_target.
5243 (procfs_mourn_inferior): Only unpush the target after mourning the
5244 inferior. Use inf_child_maybe_unpush_target.
5245 (procfs_init_inferior): Don't push the target if it is already
5246 pushed.
5247 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5248 if it is already pushed.
5249
5250 2014-05-21 Pedro Alves <palves@redhat.com>
5251
5252 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5253 and "procfs" targets are now called "native" instead.
5254
5255 2014-05-21 Pedro Alves <palves@redhat.com>
5256
5257 * go32-nat.c (go32_open): Delete.
5258 (go32_target): Don't override the to_open method.
5259
5260 2014-05-21 Pedro Alves <palves@redhat.com>
5261
5262 * nto-procfs.c (procfs_can_run): New function.
5263 (nto_procfs_ops): New global.
5264 (init_procfs_targets): New, based on procfs_target. Install
5265 "target native" in addition to "target procfs".
5266 (_initialize_procfs): Call init_procfs_targets instead of adding
5267 the target here.
5268
5269 2014-05-21 Pedro Alves <palves@redhat.com>
5270
5271 * windows-nat.c (windows_target): Don't override to_shortname,
5272 to_longname or to_doc.
5273
5274 2014-05-21 Pedro Alves <palves@redhat.com>
5275
5276 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5277 to_doc.
5278
5279 2014-05-21 Pedro Alves <palves@redhat.com>
5280
5281 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5282 to_shortname, to_longname or to_doc.
5283
5284 2014-05-21 Pedro Alves <palves@redhat.com>
5285
5286 * go32-nat.c (go32_target): Don't override to_shortname,
5287 to_longname or to_doc.
5288
5289 2014-05-21 Pedro Alves <palves@redhat.com>
5290
5291 * inf-child.c (inf_child_open): Remove mention of "child".
5292 (inf_child_target): Rename target to "native" instead of "child".
5293
5294 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5295
5296 * Makefile.in (SFILES): Delete "regset.c".
5297 (COMMON_OBS): Delete "regset.o".
5298 * regset.c: Remove.
5299 * regset.h (regset_alloc): Delete prototype.
5300
5301 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5302
5303 * sparc-linux-tdep.c (sparc32_linux_gregset)
5304 (sparc32_linux_fpregset): New static regset structures.
5305 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5306 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5307 'fpregset' fields.
5308 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5309 (sparc64_linux_fpregset): New static regset structures.
5310 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5311 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5312 New static regset structures.
5313 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5314 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5315 New static regset structures.
5316 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5317 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5318 New static regset structures.
5319 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5320 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5321 New static regset structures.
5322 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5323
5324 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5325
5326 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5327 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5328 register maps ("regmaps") from "*regset" to "*regmap". Do this
5329 for all regmap types and variables.
5330 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5331 (sparc32_linux_supply_core_gregset)
5332 (sparc32_linux_collect_core_gregset)
5333 (sparc32_linux_supply_core_fpregset)
5334 (sparc32_linux_collect_core_fpregset): Likewise.
5335 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5336 (sparc_gregmap, sparc_fpregmap): ... these.
5337 (sparc_supply_gregset, sparc_collect_gregset)
5338 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5339 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5340 (_initialize_sparc_nat): Rename regmaps.
5341 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5342 (sparc_gregmap, sparc_fpregmap): ... these.
5343 (sparc_supply_gregset, sparc_collect_gregset)
5344 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5345 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5346 Rename macros to...
5347 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5348 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5349 Likewise.
5350 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5351 Rename to...
5352 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5353 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5354 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5355 regmaps.
5356 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5357 (sparc32_bsd_fpregset): Rename to...
5358 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5359 (sparc32_bsd_fpregmap): ... these.
5360 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5361 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5362 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5363 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5364 (struct sparc_gregmap, struct sparc_fpregmap)
5365 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5366 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5367 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5368 (sparc32_supply_regset, sparc32_collect_gregset)
5369 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5370 prototypes.
5371 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5372 (sparc64_linux_ptrace_gregmap): ... this.
5373 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5374 (_initialize_sparc64_linux_nat): Rename regmaps.
5375 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5376 (sparc64_linux_core_gregmap): ... this.
5377 (sparc64_linux_supply_core_gregset)
5378 (sparc64_linux_collect_core_gregset)
5379 (sparc64_linux_supply_core_fpregset)
5380 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5381 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5382 (sparc64_sol2_fpregset): Rename to...
5383 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5384 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5385 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5386 regmaps.
5387 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5388 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5389 (sparc64_bsd_fpregset): Rename to...
5390 (struct sparc_gregmap, sparc64_sol2_gregmap)
5391 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5392 (sparc64_bsd_fpregmap): ... these.
5393 (sparc64_supply_gregset, sparc64_collect_gregset)
5394 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5395 prototypes.
5396 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5397 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5398 (sparc64fbsd_gregmap): ... this.
5399 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5400 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5401 Rename regmaps.
5402 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5403 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5404 (sparc64nbsd_collect_fpregset): Likewise.
5405 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5406 (sparc64nbsd_gregmap): ... this.
5407 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5408 regmaps.
5409 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5410 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5411 (sparc64obsd_gregmap): ... this.
5412 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5413 regmaps.
5414 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5415 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5416 (sparc32nbsd_gregmap): ... this.
5417 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5418 regmaps.
5419
5420 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5421
5422 * score-tdep.c (score7_linux_gregset): New static regset
5423 structure.
5424 (score7_linux_regset_from_core_section): Remove dynamic regset
5425 allocation.
5426 (score_gdbarch_init): Drop allocation of tdep structure.
5427 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5428
5429 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5430
5431 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5432 regset structures.
5433 (am33_regset_from_core_section): Remove dynamic regset
5434 allocations.
5435
5436 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5437
5438 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5439 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5440 structures.
5441 (mips_linux_regset_from_core_section): Remove dynamic regset
5442 allocations.
5443 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5444 'gregset64', 'fpregset', and 'fpregset64'.
5445 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5446 deleted tdep fields.
5447
5448 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5449
5450 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5451 regset structures.
5452 (amd64_regset_from_core_section): Remove dynamic regset
5453 allocations.
5454 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5455 structure.
5456 (amd64obsd_regset_from_core_section): Remove dynamic regset
5457 allocation.
5458 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5459 Likewise.
5460 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5461 x86-common regset supply function.
5462 * i386-tdep.c (i386_collect_gregset): Make static.
5463 (i386_gregset): New global regset structure.
5464 (i386_fpregset, i386_xstateregset): New static regset structures.
5465 (i386_regset_from_core_section): Remove dynamic regset
5466 allocations.
5467 (i386_gdbarch_init): Remove initialization of tdep fields
5468 'gregset', 'fpregset', and 'xstateregset'.
5469 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5470 'fpregset', and 'xstateregset'.
5471 (i386_collect_gregset): Remove prototype.
5472 (i386_gregset): New declaration.
5473 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5474 structure.
5475 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5476 allocation.
5477
5478 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5479
5480 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5481 (arm_linux_vfpregset): New static regset structures.
5482 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5483 regset structures.
5484 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5485 and 'vfpregset' fields.
5486
5487 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5488
5489 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5490 (aarch64_linux_fpregset): New static regset structures.
5491 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5492 of regset structures.
5493 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5494 'fpregset' fields.
5495
5496 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5497
5498 * regset.h (struct regset): Remove gdbarch field.
5499 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5500 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5501 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5502 Likewise.
5503 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5504 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5505 (ppc32_linux_vsxregset): Likewise.
5506 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5507 via the regcache instead of the regset.
5508 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5509 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5510 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5511 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5512 Likewise.
5513
5514 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5515
5516 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5517 Constify structures.
5518 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5519 (alphanbsd_aout_gregset): Likewise.
5520 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5521 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5522 Likewise.
5523 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5524 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5525 Likewise.
5526 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5527 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5528 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5529 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5530 * m88k-tdep.c (m88k_gregset): Likewise.
5531 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5532 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5533 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5534 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5535 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5536 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5537 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5538 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5539 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5540 Likewise.
5541 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5542 * sh-tdep.h (sh_corefile_gregset): Likewise.
5543 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5544 * vax-tdep.c (vax_gregset): Likewise.
5545
5546 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5547
5548 Fix TLS access for -static -pthread.
5549 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5550 (try_thread_db_load_1): Initialize it.
5551 (thread_db_get_thread_local_address): Call it if LM is zero.
5552 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5553 * target.h (struct target_ops) (to_get_thread_local_address): Add
5554 load_module_addr comment.
5555
5556 2014-05-21 Pedro Alves <palves@redhat.com>
5557
5558 * dcache.c (dcache_read_memory_partial): If reading the cache line
5559 fails, fallback to reading just the memory the caller wanted.
5560
5561 2014-05-20 Doug Evans <dje@google.com>
5562
5563 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5564 instead of get_current_arch.
5565
5566 2014-05-20 Pedro Alves <palves@redhat.com>
5567
5568 * NEWS: Mention that compare-sections now works with all targets.
5569
5570 * remote.c (PACKET_qCRC): New enum value.
5571 (remote_verify_memory): Don't send qCRC if the target has no
5572 execution. Use packet_support/packet_ok. If the target doesn't
5573 support the qCRC packet, fallback to a deep memory copy.
5574 (compare_sections_command): Say "target image" instead of "remote
5575 executable".
5576 (_initialize_remote): Add PACKET_qCRC to the list of config
5577 packets that have no associated command. Extend comment.
5578 * target.c (simple_verify_memory, default_verify_memory): New
5579 function.
5580 * target.h (struct target_ops) <to_verify_memory>: Default to
5581 default_verify_memory.
5582 (simple_verify_memory): New declaration.
5583 * target-delegates.c: Regenerate.
5584
5585 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5586
5587 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5588
5589 2014-05-20 Hui Zhu <hui@codesourcery.com>
5590 Yao Qi <yao@codesourcery.com>
5591
5592 PR backtrace/16558
5593 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5594 and change address of sp and pc.
5595
5596 2014-05-19 Tom Tromey <tromey@redhat.com>
5597
5598 * gdbtypes.c (rank_function): Use XNEWVEC.
5599 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5600
5601 2014-05-19 Doug Evans <dje@google.com>
5602
5603 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5604 build_type_unit_groups and moved closer to only caller. Remove
5605 arguments. All references updated. Remove outdated .gdb_index
5606 comment.
5607 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5608 build_type_psymtabs_1.
5609
5610 2014-05-19 Doug Evans <dje@google.com>
5611
5612 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5613 n_type_unit_groups, all_type_unit_groups. All uses removed.
5614 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5615 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5616 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5617 (add_type_unit_group_to_table): Delete.
5618
5619 2014-05-19 Doug Evans <dje@google.com>
5620
5621 * eval.c (evaluate_subexp_standard): Add some comments.
5622
5623 2014-05-17 Doug Evans <xdje42@gmail.com>
5624
5625 * progspace.c (remove_program_space): Delete, unused.
5626 * progspace.h (remove_program_space): Ditto.
5627
5628 2014-05-17 Doug Evans <xdje42@gmail.com>
5629
5630 * inferior.c (prune_inferiors): Fix comment.
5631 (remove_inferior_command): Call prune_program_spaces.
5632
5633 2014-05-16 Doug Evans <dje@google.com>
5634
5635 New command line option -D.
5636 * NEWS: Mention it.
5637 * main.c (set_gdb_data_directory): New function.
5638 (captured_main): Recognize -D. Flag error for --data-directory "".
5639 Call set_gdb_data_directory.
5640 (print_gdb_help): Print --data-directory, -D.
5641 * main.h (set_gdb_data_directory): Declare.
5642 * top.c (staged_gdb_datadir): New static global.
5643 (set_gdb_datadir): Call set_gdb_data_directory
5644 (show_gdb_datadir): New function.
5645 (init_main): Update init of data-directory parameter.
5646
5647 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5648
5649 Import the "dirfd" gnulib module.
5650 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5651 * gnulib/aclocal.m4: Update.
5652 * gnulib/config.in: Update.
5653 * gnulib/configure: Update.
5654 * gnulib/import/Makefile.am: Update.
5655 * gnulib/import/Makefile.in: Update.
5656 * gnulib/import/dirfd.c: New.
5657 * gnulib/import/m4/dirfd.m4: New.
5658 * gnulib/import/m4/gnulib-cache.m4: Update.
5659 * gnulib/import/m4/gnulib-comp.m4: Update.
5660
5661 2014-05-16 Pierre Muller <muller@sourceware.org>
5662 Yao Qi <yao@codesourcery.com>
5663
5664 * valprint.c (print_wchar): Move the code on checking whether
5665 W is a printable wide char to the default branch of switch
5666 statement below. Call wchar_printable instead of gdb_iswprint.
5667
5668 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5669
5670 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5671 ldr.w and ldrd instructions.
5672
5673 2014-05-15 Doug Evans <dje@google.com>
5674
5675 * dwarf2read.c (read_structure_type): Delete outdated comments.
5676
5677 2014-05-14 Tom Tromey <tromey@redhat.com>
5678
5679 * macrocmd.c (print_macro_definition): Reindent.
5680
5681 2014-05-13 Doug Evans <xdje42@gmail.com>
5682
5683 * python/py-cmd.c (cmdpy_completer): Add comment.
5684 (completers): Make const.
5685
5686 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5687
5688 * infrun.c (resume): Remove should_resume (unused). Move up
5689 declaration of resume_ptid.
5690
5691 2014-05-13 Tom Tromey <tromey@redhat.com>
5692
5693 * language.h (unop_type_check): Remove.
5694 (binop_type_check): Don't declare.
5695
5696 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5697
5698 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5699 call to regcache_raw_collect.
5700
5701 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5702
5703 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5704 mi_console->quote as the quoting character.
5705
5706 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5707
5708 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5709
5710 2014-04-29 Tom Tromey <tromey@redhat.com>
5711
5712 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5713 "show debug varobj".
5714
5715 2014-05-07 Kyle McMartin <kyle@redhat.com>
5716
5717 Pushed by Joel Brobecker <brobecker@adacore.com>.
5718 * aarch64-tdep.c (aarch64_software_single_step): New function.
5719 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5720 with aarch64_software_single_step.
5721
5722 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5723
5724 GDB 7.7.1 released.
5725
5726 2014-05-05 Keith Seitz <keiths@redhat.com>
5727
5728 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5729 variable or history value is successfully parsed.
5730
5731 2014-05-05 Yao Qi <yao@codesourcery.com>
5732 Pedro Alves <palves@redhat.com>
5733
5734 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5735 address of blocks that intersects the requested range. Trim
5736 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5737 sections.
5738 * ctf.c (ctf_xfer_partial): Likewise.
5739
5740 2014-05-05 Yao Qi <yao@codesourcery.com>
5741
5742 * printcmd.c (display_command): Remove the check to
5743 target_has_execution.
5744
5745 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5746
5747 * ppcobsd-nat.c: Include "obsd-nat.h".
5748 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5749 add_target.
5750 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5751
5752 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5753
5754 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5755 and 16-bit signed and unsigned arguments. Update comment.
5756 (stap_parse_probe_arguments): Extend code to handle such
5757 arguments. Use warning instead of complaint to notify about
5758 unrecognized bitness.
5759
5760 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5761
5762 PR breakpoints/16889
5763 * stap-probe.c (stap_parse_probe_arguments): Simplify
5764 check for non-prefixed probes (i.e., probes whose
5765 arguments do not start with "N@"). Always set the
5766 argument type to a sane value.
5767
5768 2014-05-01 David Taylor <dtaylor@emc.com>
5769
5770 * remote.c (compare_sections_command): Add -r option to compare
5771 all loadable read-only sections.
5772
5773 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5774
5775 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5776 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5777 Update all callers.
5778 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5779 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5780 Remove unused CORE_ADDR argument. Update all callers.
5781
5782 2014-04-29 Pedro Alves <palves@redhat.com>
5783
5784 * remote.c (struct packet_config) <detect>: Extend comment.
5785 (add_packet_config_cmd): Don't set the config's detect or support
5786 fields here.
5787 (init_all_packet_configs): Also initialize the config's 'detect'
5788 field.
5789 (reset_all_packet_configs_support): New function.
5790 (remote_open_1): Call reset_all_packet_configs_support instead of
5791 init_all_packet_configs.
5792 (_initialize_remote): Initialize all packet configs. Assert that
5793 all packets have an associated command, except a few known
5794 outliers.
5795
5796 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5797
5798 * dwarf2read.c (read_subrange_type): Handle dynamic
5799 DW_AT_lower_bound attributes.
5800
5801 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5802
5803 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5804 dynamic bounds before computing its upper bound.
5805 (ada_discrete_type_low_bound): Same as above with the lower bound.
5806
5807 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5808
5809 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5810 range types. Adjust the array handling implementation to
5811 take advantage of this change.
5812 (resolve_dynamic_range): New function, mostly extracted from
5813 resolve_dynamic_bounds.
5814 (resolve_dynamic_array): New function, mostly extracted from
5815 resolve_dynamic_bounds.
5816 (resolve_dynamic_bounds): Delete.
5817 (resolve_dynamic_type): Reimplement. Add handling of
5818 TYPE_CODE_RANGE types.
5819
5820 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5821
5822 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5823 handling of parallel ___XA types.
5824
5825 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5826
5827 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5828 unnecessary second call to static_unwrap_type.
5829
5830 2014-04-27 Hui Zhu <hui@codesourcery.com>
5831
5832 * stack.c (print_frame_info): Call do_gdb_disassembly with
5833 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5834
5835 2014-04-26 Doug Evans <xdje42@gmail.com>
5836
5837 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5838
5839 2014-04-25 Pedro Alves <palves@redhat.com>
5840
5841 PR server/16255
5842 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5843 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5844 and newline from built string.
5845 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5846 (linux_ptrace_attach_fail_reason): ... this.
5847 * linux-nat.c (linux_nat_attach): Adjust to use
5848 linux_ptrace_attach_fail_reason.
5849
5850 2014-04-25 Pedro Alves <palves@redhat.com>
5851
5852 * remote.c (struct remote_state): Remove multi_process_aware,
5853 non_stop_aware, cond_tracepoints, cond_breakpoints,
5854 breakpoint_commands, fast_tracepoints, static_tracepoints,
5855 install_in_trace, disconnected_tracing,
5856 enable_disable_tracepoints, string_tracing, and
5857 augmented_libraries_svr4_read fields.
5858 (remote_multi_process_p): Move further below in the file.
5859 (struct packet_config): Add comments.
5860 (update_packet_config): Delete function.
5861 (show_packet_config_cmd): Use packet_config_support.
5862 (add_packet_config_cmd): Use NULL as set callback.
5863 (packet_ok): "set remote foo-packet"-style commands no longer
5864 change config->supported -- adjust.
5865 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5866 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5867 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5868 (PACKET_QNonStop, PACKET_multiprocess_feature)
5869 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5870 (PACKET_DisconnectedTracing_feature)
5871 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5872 (set_remote_protocol_packet_cmd): Delete function.
5873 (packet_config_support, packet_support): New functions.
5874 (set_remote_protocol_Z_packet_cmd): Don't call
5875 update_packet_config.
5876 (remote_query_attached, remote_pass_signals)
5877 (remote_program_signals, remote_threads_info)
5878 (remote_threads_extra_info, remote_start_remote): Use
5879 packet_support.
5880 (remote_start_remote): Use packet_config_support and
5881 packet_support.
5882 (init_all_packet_configs): Set all packets to unknown support,
5883 instead of calling update_packet_config.
5884 (remote_check_symbols): Use packet_support.
5885 (remote_supported_packet): Unconditionally set the packet config's
5886 support status.
5887 (remote_multi_process_feature, remote_non_stop_feature)
5888 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5889 (remote_breakpoint_commands_feature)
5890 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5891 (remote_install_in_trace_feature)
5892 (remote_disconnected_tracing_feature)
5893 (remote_enable_disable_tracepoint_feature)
5894 (remote_string_tracing_feature)
5895 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5896 (remote_protocol_features): Adjust to use remote_supported_packet
5897 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5898 "ConditionalTracepoints", "ConditionalBreakpoints",
5899 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5900 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5901 "EnableDisableTracepoints", and "tracenz".
5902 (remote_query_supported): Use packet_support.
5903 (remote_open_1): Adjust.
5904 (extended_remote_attach_1): Use packet_support. Switch on the
5905 result of packet_ok instead of checking whether the packet ended
5906 up disabled.
5907 (remote_vcont_resume): Use packet_support.
5908 (remote_resume, remote_stop_ns, fetch_register_using_p)
5909 (remote_prepare_to_store, store_register_using_P)
5910 (check_binary_download, remote_write_bytes): Use packet_support.
5911 (remote_vkill): Use packet_support. Switch on the result of
5912 packet_ok instead of checking whether the packet ended up
5913 disabled.
5914 (extended_remote_supports_disable_randomization): Use
5915 packet_support.
5916 (extended_remote_run): Switch on the result of packet_ok instead
5917 of checking whether the packet ended up disabled.
5918 (remote_insert_breakpoint, remote_remove_breakpoint)
5919 (remote_insert_watchpoint, remote_remove_watchpoint)
5920 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5921 packet_support.
5922 (remote_search_memory): Use packet_config_support.
5923 (remote_get_thread_local_address, remote_get_tib_address)
5924 (remote_hostio_send_command, remote_can_execute_reverse): Use
5925 packet_support.
5926 (remote_supports_cond_tracepoints)
5927 (remote_supports_cond_breakpoints)
5928 (remote_supports_fast_tracepoints)
5929 (remote_supports_static_tracepoints)
5930 (remote_supports_install_in_trace)
5931 (remote_supports_enable_disable_tracepoint)
5932 (remote_supports_string_tracing)
5933 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5934 the packet config says the feature is enabled or disabled.
5935 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5936 (remote_get_trace_status): Use packet_support.
5937 (remote_set_disconnected_tracing): Adjust to check whether the
5938 feature is enabled with packet_support.
5939 (remote_set_trace_buffer_size, remote_use_agent)
5940 (remote_can_use_agent, remote_supports_btrace): Use
5941 packet_support.
5942 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5943 Use packet_config_support.
5944 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5945 the packet config says the feature is enabled or disabled.
5946 (set_range_stepping): Use packet_support.
5947
5948 2014-04-25 Tom Tromey <tromey@redhat.com>
5949
5950 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5951 argument.
5952
5953 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5954
5955 * NEWS: Mention support for C99 variable length arrays.
5956
5957 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5958
5959 * ada-lang.c (standard_exc): Expand introductory comment.
5960
5961 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5962 Walfred Tedeschi <walfred.tedeschi@intel.com>
5963
5964 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5965 AVX512 registers.
5966 (amd64_linux_read_description): Add code to handle AVX512 xstate
5967 mask and return respective tdesc.
5968 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5969 and features/i386/x32-avx512-linux.c.
5970 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5971 (amd64_linux_core_read_description): Add code to handle AVX512
5972 xstate mask and return respective tdesc.
5973 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5974 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5975 calculation.
5976 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5977 (tdesc_amd64_avx512_linux): New prototype.
5978 (tdesc_x32_avx512_linux): Likewise.
5979 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5980 features/i386/x32-avx512.c.
5981 (amd64_ymm_avx512_names): New register names for pseudo
5982 registers YMM16-31.
5983 (amd64_ymmh_avx512_names): New register names for raw registers
5984 YMMH16-31.
5985 (amd64_k_names): New register names for K registers.
5986 (amd64_zmmh_names): New register names for ZMM raw registers.
5987 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5988 (amd64_xmm_avx512_names): New register names for XMM16-31
5989 registers.
5990 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5991 registers.
5992 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5993 if feature is present.
5994 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5995 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5996 (AMD64_NUM_REGS): Adjust to new number of registers.
5997 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5998 registers supplied via XSTATE by AVX512 registers.
5999 (i386_linux_read_description): Add case for AVX512.
6000 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6001 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6002 (i386_linux_core_read_description): Add case for AVX512.
6003 (i386_linux_init_abi): Install supported register note section
6004 for AVX512.
6005 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6006 AVX512.
6007 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6008 registers to be number of zmm7h + 1.
6009 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6010 * i386-tdep.c: Include features/i386/i386-avx512.c.
6011 (i386_zmm_names): Add ZMM pseudo register names array.
6012 (i386_zmmh_names): Add ZMM raw register names array.
6013 (i386_k_names): Add K raw register names array.
6014 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6015 registers. AVX512 has 16 more ZMM registers than there are YMM
6016 registers.
6017 (i386_zmmh_regnum_p): Add function to look up register number of
6018 ZMM raw registers.
6019 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6020 (i386_k_regnum_p): Likewise for K raw registers.
6021 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6022 registers added by AVX512.
6023 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6024 registers added by AVX512.
6025 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6026 added by AVX512.
6027 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6028 (i386_pseudo_register_name): Add ZMM pseudo registers.
6029 (i386_zmm_type): Construct and return vector registers type for ZMM
6030 registers.
6031 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6032 ZMM0-31 pseudo registers and K registers.
6033 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6034 and YMM16-31 registers from register cache.
6035 (i386_pseudo_register_write): Add code to write K, ZMM and
6036 YMM16-31 registers.
6037 (i386_register_reggroup_p): Add code to include/exclude AVX512
6038 registers in/from respective register groups.
6039 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6040 registers if feature is present in xcr0.
6041 (i386_gdbarch_init): Add code to initialize AVX512 feature
6042 variables in tdep structure, wire in pseudo registers and call
6043 initialize_tdesc_i386_avx512.
6044 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6045 variables.
6046 (i386_regnum): Add AVX512 registers.
6047 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6048 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6049 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6050 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6051 512 bits wide.
6052 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6053 (i386_ymm_avx512_regnum_p): Likewise.
6054 (i386_k_regnum_p): Likewise.
6055 (i386_zmm_regnum_p): Likewise.
6056 (i386_zmmh_regnum_p): Likewise.
6057 * i387-tdep.c : Update year in copyright notice.
6058 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6059 XSAVE buffer.
6060 (XSAVE_YMM_AVX512_ADDR): New macro.
6061 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6062 XSAVE buffer.
6063 (XSAVE_XMM_AVX512_ADDR): New macro.
6064 (xsave_avx512_k_offset): New table for K register offsets in
6065 XSAVE buffer.
6066 (XSAVE_AVX512_K_ADDR): New macro.
6067 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6068 in XSAVE buffer.
6069 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6070 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6071 buffer.
6072 (i387_collect_xsave): Add code to collect AVX512 registers from
6073 XSAVE buffer.
6074 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6075 of XMM16-31 registers.
6076 (I387_NUM_K_REGS): New define for number of K registers.
6077 (I387_K0_REGNUM): New define for K0 register number.
6078 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6079 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6080 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6081 registers.
6082 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6083 (I387_XMM16_REGNUM): New define for XMM16 register number.
6084 (I387_YMM0_REGNUM): New define for YMM0 register number.
6085 (I387_KEND_REGNUM): New define for last K register number.
6086 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6087 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6088 number.
6089 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6090 number.
6091 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6092 size.
6093 * features/Makefile: Add AVX512 related files.
6094 * features/i386/32bit-avx512.xml: New file.
6095 * features/i386/64bit-avx512.xml: Likewise.
6096 * features/i386/amd64-avx512-linux.c: Likewise.
6097 * features/i386/amd64-avx512-linux.xml: Likewise.
6098 * features/i386/amd64-avx512.c: Likewise.
6099 * features/i386/amd64-avx512.xml: Likewise.
6100 * features/i386/i386-avx512-linux.c: Likewise.
6101 * features/i386/i386-avx512-linux.xml: Likewise.
6102 * features/i386/i386-avx512.c: Likewise.
6103 * features/i386/i386-avx512.xml: Likewise.
6104 * features/i386/x32-avx512-linux.c: Likewise.
6105 * features/i386/x32-avx512-linux.xml: Likewise.
6106 * features/i386/x32-avx512.c: Likewise.
6107 * features/i386/x32-avx512.xml: Likewise.
6108 * regformats/i386/amd64-avx512-linux.dat: New file.
6109 * regformats/i386/amd64-avx512.dat: Likewise.
6110 * regformats/i386/i386-avx512-linux.dat: Likewise.
6111 * regformats/i386/i386-avx512.dat: Likewise.
6112 * regformats/i386/x32-avx512-linux.dat: Likewise.
6113 * regformats/i386/x32-avx512.dat: Likewise.
6114 * NEWS: Add note about new support for AVX512.
6115
6116
6117 2014-04-23 Pedro Alves <palves@redhat.com>
6118
6119 * breakpoint.c (insert_bp_location): Tolerate errors if the
6120 breakpoint is set in a user-loaded objfile.
6121 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6122 location is marked shlib_disabled. If the breakpoint is set in a
6123 user-loaded objfile is a GDB-side memory breakpoint, validate it
6124 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6125 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6126 flag.
6127 * mem-break.c (memory_validate_breakpoint): New function.
6128 * objfiles.c (userloaded_objfile_contains_address_p): New
6129 function.
6130 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6131 * target.h (memory_validate_breakpoint): New declaration.
6132
6133 2014-04-23 Pedro Alves <palves@redhat.com>
6134
6135 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6136 the breakpoint is set in a shared library, only suppress
6137 errors for software breakpoints, not hardware breakpoints.
6138
6139 2014-04-22 Pedro Alves <palves@redhat.com>
6140
6141 * infrun.c (schedlock_applies): New function, factored out from
6142 find_thread_needs_step_over.
6143 (find_thread_needs_step_over): Use it.
6144 (switch_back_to_stepped_thread): Always clear trap_expected if the
6145 step over is finished. Return early if scheduler locking applies.
6146 Look for the stepping thread and a potential step-over thread with
6147 a single loop.
6148 (currently_stepping_or_nexting_callback): Delete.
6149
6150 2014-04-22 Nick Clifton <nickc@redhat.com>
6151
6152 * NEWS: Mention that ARM sim now supports tracing.
6153
6154 2014-04-22 Yao Qi <yao@codesourcery.com>
6155
6156 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6157 to ...
6158 * tracefile.c (tracefile_fetch_registers): ... it. New
6159 function.
6160 * tracefile.h (tracefile_fetch_registers): Declare.
6161 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6162 tracefile_fetch_registers.
6163
6164 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6165
6166 PR gdb/14018
6167 * windows-nat.c (thread_rec): Don't display a warning when
6168 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6169 fails for any reason, set th->suspended to -1, so that we don't
6170 try to resume such a thread. Also, don't return NULL in these
6171 cases, to avoid completely ruin the session due to "PC register is
6172 not available" error.
6173 (do_windows_fetch_inferior_registers): Check errors in
6174 GetThreadContext call.
6175 (windows_continue): Accept an additional argument KILLED; if not
6176 zero, ignore errors in the SetThreadContext call, since the
6177 inferior was killed and is shutting down.
6178 (windows_resume, get_windows_debug_event)
6179 (windows_create_inferior, windows_mourn_inferior)
6180 (windows_kill_inferior): All callers of windows_continue changed
6181 to adjust to its new calling sequence.
6182
6183 2014-04-19 Yao Qi <yao@codesourcery.com>
6184
6185 * ctf.c (ctf_open): Call post_create_inferior.
6186
6187 2014-04-19 Yao Qi <yao@codesourcery.com>
6188
6189 * ctf.c (handle_id): New static variable.
6190 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6191 value. Get the declaration of event "register" and get length
6192 of field "contents".
6193
6194 2014-04-19 Yao Qi <yao@codesourcery.com>
6195
6196 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6197
6198 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6199
6200 * valops.c (oload_method_static): Remove unnecessary argument
6201 METHOD. Update all callers.
6202
6203 2014-04-18 Pedro alves <palves@redhat.com>
6204 Tom Tromey <tromey@redhat.com>
6205
6206 PR backtrace/15558
6207 * frame.c (get_prev_frame_1): Rename to ...
6208 (get_prev_frame_always): ... this, and make extern. Adjust.
6209 (skip_artificial_frames): Use get_prev_frame_always.
6210 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6211 (get_frame_unwind_stop_reason): Adjust to rename.
6212 * frame.h (get_prev_frame_always): Declare.
6213 * inline-frame.c: Include frame.h.
6214 (inline_frame_this_id): Use get_prev_frame_always.
6215
6216 2014-04-18 Tristan Gingold <gingold@adacore.com>
6217
6218 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6219 code by using bfd_mach_o_get_base_address.
6220
6221 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6222
6223 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6224 (spu_ax_pseudo_register_collect): New function.
6225 (spu_ax_pseudo_register_push_stack): Likewise.
6226 (spu_dwarf_reg_to_regnum): Likewise.
6227 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6228
6229 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6230
6231 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6232 Replace FRAME argument with FRAME_ID.
6233 * gdbarch.c, gdbarch.h: Regenerate.
6234 * findvar.c (default_value_from_register): Add GDBARCH argument;
6235 replace FRAME by FRAME_ID. No longer call get_frame_id.
6236 (value_from_register): Update call to gdbarch_value_from_register.
6237 * value.h (default_value_from_register): Update prototype.
6238 * s390-linux-tdep.c (s390_value_from_register): Update interface
6239 and call to default_value_from_register.
6240 * spu-tdep.c (spu_value_from_register): Likewise.
6241
6242 * findvar.c (address_from_register): Remove TYPE argument.
6243 Do not call value_from_register; use gdbarch_value_from_register
6244 with null_frame_id instead.
6245 * value.h (address_from_register): Update prototype.
6246 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6247 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6248 address_from_register interface change.
6249
6250 2014-04-17 Yao Qi <yao@codesourcery.com>
6251
6252 * gdbtypes.h: Update comments to link to types and macros'
6253 definitions.
6254
6255 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6256
6257 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6258
6259 2014-04-16 Keith Seitz <keiths@redhat.com>
6260
6261 PR gdb/15827
6262 * dwarf2read.c (skip_one_die): Check that all relative-offset
6263 sibling DIEs fall within range of the current reader's buffer.
6264 (read_partial_die): Likewise.
6265
6266 2014-04-16 Keith Seitz <keiths@redhat.com>
6267
6268 PR c++/16597
6269 * cp-namespace.c (lookup_symbol_file): If the type name of
6270 `this' is NULL, return immediately.
6271
6272 2014-04-14 Keith Seitz <keiths@redhat.com>
6273
6274 PR c++/16253
6275 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6276 from symbol_matches_domain in symtab.c. All local callers
6277 of symbol_matches_domain updated.
6278 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6279 search STRUCT_DOMAIN.
6280 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6281 independently. standard_lookup will do that automatically.
6282 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6283 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6284 (cp_lookup_symbol_in_namespace): Likewise.
6285 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6286 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6287 may return a STRUCT_DOMAIN match.
6288 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6289 * cp-support.c: Include language.h.
6290 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6291 VAR_DOMAIN.
6292 * psymtab.c (match_partial_symbol): Compare the requested
6293 domain with the symbol's domain directly.
6294 (lookup_partial_symbol): Likewise.
6295 * symtab.c (lookup_symbol_in_language): Explain when/why
6296 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6297 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6298 appropriate languages.
6299 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6300 and moved to ada-lang.c
6301 (lookup_block_symbol): Explain that this function only returns
6302 symbol matching the requested DOMAIN.
6303 Compare the requested domain with the symbol's domain directly.
6304 (iterate_over_symbols): Compare the requested domain with the
6305 symbol's domain directly.
6306 * symtab.h (symbol_matches_domain): Remove.
6307
6308 2014-04-14 Tom Tromey <tromey@redhat.com>
6309
6310 PR c++/15246:
6311 * c-exp.y (type_aggregate_p): New function.
6312 (qualified_name, classify_inner_name): Use it.
6313 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6314 and TYPE_TARGET_TYPE of an enum type.
6315 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6316 an enum type.
6317 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6318 handle TYPE_DECLARED_CLASS.
6319 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6320 types.
6321 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6322 * valops.c (enum_constant_from_type): New function.
6323 (value_aggregate_elt): Use it.
6324 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6325 TYPE_CODE_ENUM.
6326
6327 2014-04-14 Tom Tromey <tromey@redhat.com>
6328
6329 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6330 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6331 const.
6332 * value.h (value_aggregate_elt): Update.
6333
6334 2014-04-14 Tom Tromey <tromey@redhat.com>
6335
6336 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6337
6338 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6339
6340 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6341 (evaluate_subexp_standard): Pass noside argument.
6342 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6343 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6344 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6345 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6346 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6347
6348 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6349
6350 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6351 points to a constant blob.
6352
6353 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6354
6355 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6356 property and store it as the high bound and flag the range accordingly.
6357 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6358 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6359 * gdbtypes.h (enum range_flags): New enum.
6360 (struct range_bounds): Add flags member.
6361
6362 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6363
6364 * c-typeprint.c (c_type_print_varspec_suffix): Added
6365 check for not yet resolved high bound. If unresolved, print
6366 "variable length" string to the console instead of random
6367 length.
6368
6369 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6370
6371 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6372 value.
6373 (ada_template_to_fixed_record_type_1): Likewise.
6374 (ada_to_fixed_type_1): Likewise.
6375 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6376 (cp_print_value): Likewise.
6377 * d-valprint.c (dynamic_array_type): Likewise.
6378 * findvar.c (address_of_variable): Likewise.
6379 * jv-valprint.c (java_value_print): Likewise.
6380 * valops.c (value_ind): Likewise.
6381 * value.c (coerce_ref): Likewise.
6382
6383 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6384
6385 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6386 value and retrieve the dynamic type size.
6387
6388 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6389
6390 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6391 passed to sizeof is dynamic evaluate the argument to compute the length.
6392
6393 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6394 Joel Brobecker <brobecker@adacore.com>
6395
6396 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6397 (dwarf2_evaluate_property): New function.
6398 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6399 * dwarf2read.c (attr_to_dynamic_prop): New function.
6400 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6401 attribute.
6402 * gdbtypes.c: Include dwarf2loc.h.
6403 (is_dynamic_type): New function.
6404 (resolve_dynamic_type): New function.
6405 (resolve_dynamic_bounds): New function.
6406 (get_type_length): New function.
6407 (check_typedef): Use get_type_length to compute type length.
6408 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6409 (TYPE_LOW_BOUND_KIND): New macro.
6410 (is_dynamic_type): New function prototype.
6411 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6412 to resolve dynamic properties of the type. Update comment.
6413 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6414
6415 2014-04-14 Richard Henderson <rth@redhat.com>
6416
6417 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6418
6419 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6420 Doug Evans <xdje42@gmail.com>
6421
6422 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6423 dereference TYPE_CODE_REF values.
6424
6425 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6426
6427 Revert the following changes due to regressions:
6428
6429 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6430 (dwarf2_evaluate_property): New function.
6431 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6432 * dwarf2read.c (attr_to_dynamic_prop): New function.
6433 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6434 attribute.
6435 * gdbtypes.c: Include dwarf2loc.h.
6436 (is_dynamic_type): New function.
6437 (resolve_dynamic_type): New function.
6438 (resolve_dynamic_bounds): New function.
6439 (get_type_length): New function.
6440 (check_typedef): Use get_type_length to compute type length.
6441 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6442 (TYPE_LOW_BOUND_KIND): New macro.
6443 (is_dynamic_type): New function prototype.
6444 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6445 to resolve dynamic properties of the type. Update comment.
6446 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6447
6448 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6449 passed to sizeof is dynamic evaluate the argument to compute the length.
6450
6451 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6452 value and retrieve the dynamic type size.
6453
6454 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6455 (ada_template_to_fixed_record_type_1): Likewise.
6456 (ada_to_fixed_type_1): Likewise.
6457 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6458 (cp_print_value): Likewise.
6459 * d-valprint.c (dynamic_array_type): Likewise.
6460 * eval.c (evaluate_subexp_with_coercion): Likewise.
6461 * findvar.c (address_of_variable): Likewise.
6462 * jv-valprint.c (java_value_print): Likewise.
6463 * valops.c (value_ind): Likewise.
6464 * value.c (coerce_ref): Likewise.
6465
6466 * c-typeprint.c (c_type_print_varspec_suffix): Added
6467 check for not yet resolved high bound. If unresolved, print
6468 "variable length" string to the console instead of random
6469 length.
6470
6471 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6472 property and store it as the high bound and flag the range accordingly.
6473 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6474 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6475 * gdbtypes.h (enum range_flags): New enum.
6476 (struct range_bounds): Add flags member.
6477
6478 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6479 points to a constant blob.
6480
6481 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6482 (evaluate_subexp_standard): Pass noside argument.
6483 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6484 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6485 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6486 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6487 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6488
6489 2014-04-11 Keith Seitz <keiths@redhat.com>
6490
6491 PR c++/16675
6492 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6493 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6494 reference types.
6495
6496 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6497
6498 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6499 (evaluate_subexp_standard): Pass noside argument.
6500 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6501 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6502 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6503 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6504 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6505
6506 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6507
6508 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6509 points to a constant blob.
6510
6511 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6512
6513 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6514 property and store it as the high bound and flag the range accordingly.
6515 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6516 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6517 * gdbtypes.h (enum range_flags): New enum.
6518 (struct range_bounds): Add flags member.
6519
6520 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6521
6522 * c-typeprint.c (c_type_print_varspec_suffix): Added
6523 check for not yet resolved high bound. If unresolved, print
6524 "variable length" string to the console instead of random
6525 length.
6526
6527 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6528
6529 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6530 (ada_template_to_fixed_record_type_1): Likewise.
6531 (ada_to_fixed_type_1): Likewise.
6532 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6533 (cp_print_value): Likewise.
6534 * d-valprint.c (dynamic_array_type): Likewise.
6535 * eval.c (evaluate_subexp_with_coercion): Likewise.
6536 * findvar.c (address_of_variable): Likewise.
6537 * jv-valprint.c (java_value_print): Likewise.
6538 * valops.c (value_ind): Likewise.
6539 * value.c (coerce_ref): Likewise.
6540
6541 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6542
6543 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6544 value and retrieve the dynamic type size.
6545
6546 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6547
6548 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6549 passed to sizeof is dynamic evaluate the argument to compute the length.
6550
6551 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6552
6553 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6554 (dwarf2_evaluate_property): New function.
6555 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6556 * dwarf2read.c (attr_to_dynamic_prop): New function.
6557 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6558 attribute.
6559 * gdbtypes.c: Include dwarf2loc.h.
6560 (is_dynamic_type): New function.
6561 (resolve_dynamic_type): New function.
6562 (resolve_dynamic_bounds): New function.
6563 (get_type_length): New function.
6564 (check_typedef): Use get_type_length to compute type length.
6565 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6566 (TYPE_LOW_BOUND_KIND): New macro.
6567 (is_dynamic_type): New function prototype.
6568 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6569 to resolve dynamic properties of the type. Update comment.
6570 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6571
6572 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6573
6574 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6575 declaring high/low bounds and change uses accordingly. Call
6576 create_range_type instead of create_static_range_type.
6577 * gdbtypes.c (create_range_type): New function.
6578 (create_range_type): Convert bounds into struct bound_prop and pass
6579 them to create_range_type.
6580 * gdbtypes.h (struct bound_prop): New struct.
6581 (create_range_type): New function prototype.
6582 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6583 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6584 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6585 part of the bound.
6586 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6587
6588 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6589
6590 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6591 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6592 * ada-lang.c: All uses of create_range_type updated.
6593 * coffread.c: All uses of create_range_type updated.
6594 * dwarf2read.c: All uses of create_range_type updated.
6595 * f-exp.y: All uses of create_range_type updated.
6596 * m2-valprint.c: All uses of create_range_type updated.
6597 * mdebugread.c: All uses of create_range_type updated.
6598 * stabsread.c: All uses of create_range_type updated.
6599 * valops.c: All uses of create_range_type updated.
6600 * valprint.c: All uses of create_range_type updated.
6601
6602 2014-04-10 Pedro Alves <palves@redhat.com>
6603
6604 * breakpoint.c (single_step_breakpoints)
6605 (single_step_gdbarch): Move up in the file.
6606 (one_breakpoint_xfer_memory): New function, factored out from ...
6607 (breakpoint_xfer_memory): ... here. Also process single-step
6608 breakpoints.
6609
6610 2014-04-09 Tristan Gingold <gingold@adacore.com>
6611
6612 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6613 comments.
6614 (darwin_decode_exception_message): Free port only after use.
6615
6616 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6617
6618 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6619 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6620 when setting the size of call_length.
6621
6622 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6623
6624 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6625 dereference TYPE_CODE_REF values.
6626
6627 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6628
6629 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6630 end of warning message.
6631
6632 2014-04-03 Doug Evans <dje@google.com>
6633
6634 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6635 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6636
6637 2014-04-02 Alan Modra <amodra@gmail.com>
6638
6639 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6640 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6641 (struct symbol_file_add_from_memory_args): Add size field.
6642 (find_vdso_size): New function.
6643 (add_vsyscall_page): Attempt to find vdso size.
6644
6645 2014-04-01 Doug Evans <dje@google.com>
6646
6647 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6648
6649 2014-04-01 Tristan Gingold <gingold@adacore.com>
6650
6651 * darwin-nat.c (darwin_encode_reply): Add prototype.
6652 (darwin_decode_exception_message): Reply to unknown inferiors.
6653 (darwin_decode_message): Handle message by id. Ignore message
6654 to unknown inferior.
6655 (darwin_wait): Discard unknown messages, add debug trace.
6656
6657 2014-03-31 Doug Evans <dje@google.com>
6658
6659 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6660 comp_dir_string.
6661
6662 2014-03-31 Doug Evans <dje@google.com>
6663
6664 New option "set print symbol-loading".
6665 * NEWS: Mention it.
6666 * solib.c (solib_read_symbols): Only print symbol loading messages
6667 if requested.
6668 (solib_add): If symbol loading is in "brief" mode, notify user
6669 symbols are being loaded.
6670 (reload_shared_libraries_1): Ditto.
6671 * symfile.c (print_symbol_loading_off): New static global.
6672 (print_symbol_loading_brief): New static global.
6673 (print_symbol_loading_full): New static global.
6674 (print_symbol_loading_enums): New static global.
6675 (print_symbol_loading): New static global.
6676 (print_symbol_loading_p): New function.
6677 (symbol_file_add_with_addrs): Only print symbol loading messages
6678 if requested.
6679 (_initialize_symfile): Register "print symbol-loading" set/show
6680 command.
6681 * symfile.h (print_symbol_loading_p): Declare.
6682
6683 2014-03-30 Doug Evans <xdje42@gmail.com>
6684
6685 * infrun.c (set_last_target_status): New function.
6686 (handle_inferior_event): Call it.
6687
6688 2014-03-30 Doug Evans <xdje42@gmail.com>
6689
6690 * inferior.h (enum stop_kind): Improve comment.
6691
6692 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6693
6694 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6695 a reference, strip the reference layer before calling
6696 the lang_ops value_has_mutated callback.
6697
6698 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6699
6700 Remove some globals from our parser.
6701 * language.c (unk_lang_parser): Add "struct parser_state"
6702 argument.
6703 * language.h (struct language_defn) <la_parser>: Likewise.
6704 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6705 (initialize_expout): Add "struct parser_state" argument.
6706 Rewrite function to use the parser state.
6707 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6708 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6709 write_exp_elt_longcst, write_exp_elt_dblcst,
6710 write_exp_elt_decfloatcst, write_exp_elt_type,
6711 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6712 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6713 write_dollar_variable): Likewise.
6714 (parse_exp_in_context_1): Use parser state.
6715 (insert_type_address_space): Add "struct parser_state" argument.
6716 Use parser state.
6717 (increase_expout_size): New function.
6718 * parser-defs.h: Forward declare "struct language_defn" and
6719 "struct parser_state".
6720 (expout, expout_size, expout_ptr): Remove extern declarations.
6721 (parse_gdbarch, parse_language): Rewrite macro declarations to
6722 accept the parser state.
6723 (struct parser_state): New struct.
6724 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6725 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6726 write_exp_elt_decfloatcst, write_exp_elt_type,
6727 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6728 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6729 write_exp_msymbol, write_dollar_variable,
6730 mark_struct_expression, insert_type_address_space): Add "struct
6731 parser_state" argument.
6732 (increase_expout_size): New function.
6733 * utils.c (do_clear_parser_state): New function.
6734 (make_cleanup_clear_parser_state): Likewise.
6735 * utils.h (make_cleanup_clear_parser_state): New function
6736 prototype.
6737 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6738 Update calls to write_exp* in order to pass the parser state.
6739 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6740 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6741 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6742 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6743 * stap-probe.c (stap_parse_register_operand): Likewise.
6744 (stap_parse_single_operand): Likewise.
6745 (stap_parse_argument_1): Likewise.
6746 (stap_parse_argument): Use parser state.
6747 * stap-probe.h: Include "parser-defs.h".
6748 (struct stap_parse_info) <pstate>: New field.
6749 * c-exp.y (parse_type): Rewrite to use parser state.
6750 (yyparse): Redefine to c_parse_internal.
6751 (pstate): New global variable.
6752 (parse_number): Add "struct parser_state" argument.
6753 (write_destructor_name): Likewise.
6754 (type_exp): Update calls to write_exp* and similars in order to
6755 use parser state.
6756 (exp1, exp, variable, qualified_name, space_identifier,
6757 typename, typebase): Likewise.
6758 (write_destructor_name, parse_number, lex_one_token,
6759 classify_name, classify_inner_name, c_parse): Add "struct
6760 parser_state" argument. Update function to use parser state.
6761 * c-lang.h: Forward declare "struct parser_state".
6762 (c_parse): Add "struct parser_state" argument.
6763 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6764 (yyparse): Redefine macro to ada_parse_internal.
6765 (pstate): New variable.
6766 (write_int, write_object_renaming, write_var_or_type,
6767 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6768 type_int, type_long, type_long_long, type_float, type_double,
6769 type_long_double, type_char, type_boolean, type_system_address):
6770 Add "struct parser_state" argument.
6771 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6772 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6773 var_or_type, aggregate, aggregate_component_list,
6774 positional_list, others, component_group,
6775 component_associations): Update calls to write_exp* and similar
6776 functions in order to use parser state.
6777 (ada_parse, write_var_from_sym, write_int,
6778 write_exp_op_with_string, write_object_renaming,
6779 find_primitive_type, write_selectors, write_ambiguous_var,
6780 write_var_or_type, write_name_assoc, type_int, type_long,
6781 type_long_long, type_float, type_double, type_long_double,
6782 type_char, type_boolean, type_system_address): Add "struct
6783 parser_state" argument. Adjust function to use parser state.
6784 * ada-lang.c (parse): Likewise.
6785 * ada-lang.h: Forward declare "struct parser_state".
6786 (ada_parse): Add "struct parser_state" argument.
6787 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6788 calls to both functions.
6789 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6790 parser state.
6791 (yyparse): Redefine macro to f_parse_internal.
6792 (pstate): New variable.
6793 (parse_number): Add "struct parser_state" argument.
6794 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6795 and similars in order to use parser state.
6796 (parse_number): Adjust code to use parser state.
6797 (yylex): Likewise.
6798 (f_parse): New function.
6799 * f-lang.h: Forward declare "struct parser_state".
6800 (f_parse): Add "struct parser_state" argument.
6801 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6802 parser state.
6803 (yyparse): Redefine macro for java_parse_internal.
6804 (pstate): New variable.
6805 (push_expression_name, push_expression_name, insert_exp): Add
6806 "struct parser_state" argument.
6807 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6808 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6809 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6810 PostIncrementExpression, PostDecrementExpression,
6811 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6812 UnaryExpressionNotPlusMinus, CastExpression,
6813 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6814 RelationalExpression, EqualityExpression, AndExpression,
6815 ExclusiveOrExpression, InclusiveOrExpression,
6816 ConditionalAndExpression, ConditionalOrExpression,
6817 ConditionalExpression, Assignment, LeftHandSide): Update
6818 calls to write_exp* and similars in order to use parser state.
6819 (parse_number): Ajust code to use parser state.
6820 (yylex): Likewise.
6821 (java_parse): New function.
6822 (push_variable): Add "struct parser_state" argument. Adjust
6823 code to user parser state.
6824 (push_fieldnames, push_qualified_expression_name,
6825 push_expression_name, insert_exp): Likewise.
6826 * jv-lang.h: Forward declare "struct parser_state".
6827 (java_parse): Add "struct parser_state" argument.
6828 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6829 parser state.
6830 (yyparse): Redefine macro to m2_parse_internal.
6831 (pstate): New variable.
6832 (type_exp, exp, fblock, variable, type): Update calls to
6833 write_exp* and similars to use parser state.
6834 (yylex): Likewise.
6835 (m2_parse): New function.
6836 * m2-lang.h: Forward declare "struct parser_state".
6837 (m2_parse): Add "struct parser_state" argument.
6838 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6839 * objc-lang.h: Forward declare "struct parser_state".
6840 (end_msglist): Add "struct parser_state" argument.
6841 * p-exp.y (parse_type): Rewrite macro to use parser state.
6842 (yyparse): Redefine macro to pascal_parse_internal.
6843 (pstate): New variable.
6844 (parse_number): Add "struct parser_state" argument.
6845 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6846 write_exp* and similars in order to use parser state.
6847 (parse_number, yylex): Adjust code to use parser state.
6848 (pascal_parse): New function.
6849 * p-lang.h: Forward declare "struct parser_state".
6850 (pascal_parse): Add "struct parser_state" argument.
6851 * go-exp.y (parse_type): Rewrite macro to use parser state.
6852 (yyparse): Redefine macro to go_parse_internal.
6853 (pstate): New variable.
6854 (parse_number): Add "struct parser_state" argument.
6855 (type_exp, exp1, exp, variable, type): Update calls to
6856 write_exp* and similars in order to use parser state.
6857 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6858 to use parser state.
6859 (go_parse): Likewise.
6860 * go-lang.h: Forward declare "struct parser_state".
6861 (go_parse): Add "struct parser_state" argument.
6862
6863 2014-03-27 Doug Evans <dje@google.com>
6864
6865 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6866
6867 2014-03-27 Doug Evans <dje@google.com>
6868
6869 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6870 Remove argument abbrev_section. All callers updated.
6871
6872 2014-03-27 Doug Evans <dje@google.com>
6873
6874 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6875 addr_base, ranges_base.
6876
6877 2014-03-26 Keith Seitz <keiths@redhat.com>
6878
6879 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6880 types, not VAR_DOMAIN.
6881
6882 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6883
6884 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6885 "ra" registers.
6886 * features/nios2-linux.c: Regenerated.
6887 * features/nios2.c: Regenerated.
6888
6889 2014-03-25 Pedro Alves <palves@redhat.com>
6890
6891 * cli/cli-script.c (script_from_file): Force the interpreter to
6892 sync mode.
6893
6894 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6895
6896 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6897 small stack allocation.
6898
6899 2014-03-24 Tristan Gingold <gingold@adacore.com>
6900
6901 * darwin-nat.c (exc_server): Remove unused prototype.
6902 (darwin_dump_message): Correctly display data on x86_64.
6903 (darwin_encode_reply): Fix style.
6904 Add comments and fix indentation.
6905
6906 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6907
6908 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6909
6910 2014-03-22 Doug Evans <xdje42@gmail.com>
6911
6912 * infcmd.c: Whitespace fixes.
6913 (interrupt_command): Merge two function comments into one.
6914
6915 2014-03-22 Doug Evans <xdje42@gmail.com>
6916
6917 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6918 All uses updated.
6919
6920 2014-03-22 Yao Qi <yao@codesourcery.com>
6921
6922 * remote.c (target_read_live_memory): Remove.
6923 (memory_xfer_live_readonly_partial): Rename it to
6924 remote_xfer_live_readonly_partial. Remove argument 'object'.
6925 All callers updated. Call remote_read_bytes_1
6926 instead of target_read_live_memory.
6927 * tracepoint.c (set_traceframe_number): Remove.
6928 (make_cleanup_restore_traceframe_number): Likewise .
6929 * tracepoint.h (set_traceframe_number): Remove declaration.
6930 (make_cleanup_restore_traceframe_number): Likewise.
6931
6932 2014-03-22 Yao Qi <yao@codesourcery.com>
6933
6934 * remote.c (remote_read_bytes): Move code on reading from the
6935 remote stub to ...
6936 (remote_read_bytes_1): ... here. New function.
6937
6938 2014-03-22 Yao Qi <yao@codesourcery.com>
6939
6940 * ctf.c (ctf_xfer_partial): Check the return value of
6941 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6942 return TARGET_XFER_UNAVAILABLE.
6943 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6944 * target.c (target_read_live_memory): Move it to remote.c.
6945 (memory_xfer_live_readonly_partial): Likewise.
6946 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6947 * remote.c (target_read_live_memory): Moved from target.c.
6948 (memory_xfer_live_readonly_partial): Likewise.
6949 (remote_read_bytes): Factored out from
6950 memory_xfer_partial_1.
6951
6952 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6953
6954 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6955 NULL pointer.
6956
6957 2014-03-21 Pedro Alves <palves@redhat.com>
6958
6959 * infrun.c (normal_stop): Extend comment.
6960
6961 2014-03-21 Hui Zhu <hui@codesourcery.com>
6962 Pedro Alves <palves@redhat.com>
6963
6964 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6965 static buffer.
6966 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6967 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6968 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6969
6970 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6971
6972 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6973 `z' formatted output modifier.
6974
6975 2014-03-20 Tom Tromey <tromey@redhat.com>
6976 Sergio Durigan Junior <sergiodj@redhat.com>
6977
6978 * probe.c (parse_probes): Turn assert into an ordinary error.
6979 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6980 exceptions when parsing probes. Rearrange the code for clarity.
6981
6982 2014-03-20 Tom Tromey <tromey@redhat.com>
6983
6984 PR gdb/14135
6985 * top.c (execute_command): Only dispatch events if the command
6986 started the target.
6987
6988 2014-03-20 Tom Tromey <tromey@redhat.com>
6989
6990 PR cli/15718
6991 * infcall.c: Include event-top.h.
6992 (run_inferior_call): Call async_disable_stdin if needed.
6993
6994 2014-03-20 Pedro Alves <palves@redhat.com>
6995
6996 * infrun.c (prepare_to_proceed): Delete.
6997 (thread_still_needs_step_over): New function.
6998 (find_thread_needs_step_over): New function.
6999 (proceed): If the current thread needs a step-over, set its
7000 steping_over_breakpoint flag. Adjust to use
7001 find_thread_needs_step_over instead of prepare_to_proceed.
7002 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7003 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7004 breakpoint.
7005 (switch_back_to_stepped_thread): Step over breakpoints of all
7006 threads not the stepping thread, before switching back to the
7007 stepping thread.
7008
7009 2014-03-20 Pedro Alves <palves@redhat.com>
7010
7011 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7012 extern.
7013 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7014 * infrun.c (saved_singlestep_ptid)
7015 (stepping_past_singlestep_breakpoint): Delete.
7016 (resume): Remove stepping_past_singlestep_breakpoint handling.
7017 (proceed): Store the prev_pc of the stepping thread too.
7018 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7019 singlestep_pc.
7020 (enum infwait_states): Delete infwait_thread_hop_state.
7021 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7022 field.
7023 (handle_inferior_event): Adjust.
7024 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7025 handling and the thread-hop code. Before removing single-step
7026 breakpoints, check whether the thread hit a single-step breakpoint
7027 of another thread. If it did, the trap is not a random signal.
7028 (switch_back_to_stepped_thread): If the event thread hit a
7029 single-step breakpoint, unblock it before switching to the
7030 stepping thread. Handle the case of the stepped thread having
7031 advanced already.
7032 (keep_going): Handle the case of the current thread moving past a
7033 single-step breakpoint.
7034
7035 2014-03-20 Pedro Alves <palves@redhat.com>
7036
7037 PR breakpoints/7143
7038 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7039 are being stepped over.
7040 (breakpoint_address_match): Make extern.
7041 * breakpoint.h (breakpoint_address_match): New declaration.
7042 * inferior.h (stepping_past_instruction_at): New declaration.
7043 * infrun.c (struct step_over_info): New type.
7044 (step_over_info): New global.
7045 (set_step_over_info, clear_step_over_info)
7046 (stepping_past_instruction_at): New functions.
7047 (handle_inferior_event): Clear the step-over info when
7048 trap_expected is cleared.
7049 (resume): Remove now stale comment.
7050 (clear_proceed_status): Clear step-over info.
7051 (proceed): Adjust step-over handling to set or clear the step-over
7052 info instead of removing all breakpoints.
7053 (handle_signal_stop): When setting up a thread-hop, don't remove
7054 breakpoints here.
7055 (stop_stepping): Clear step-over info.
7056 (keep_going): Adjust step-over handling to set or clear step-over
7057 info and then always inserting breakpoints, instead of removing
7058 all breakpoints when stepping over one.
7059
7060 2014-03-20 Pedro Alves <palves@redhat.com>
7061
7062 * infrun.c (previous_inferior_ptid): Adjust comment.
7063 (deferred_step_ptid): Delete.
7064 (infrun_thread_ptid_changed, prepare_to_proceed)
7065 (init_wait_for_inferior): Adjust.
7066 (handle_signal_stop): Delete deferred_step_ptid handling.
7067
7068 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7069
7070 PR gdb/15358
7071 * defs.h (sync_quit_force_run): New declaration.
7072 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7073 * event-top.c (async_sigterm_handler): New declaration.
7074 (async_sigterm_token): New variable.
7075 (async_init_signals): Create also async_sigterm_token.
7076 (async_sigterm_handler): New function.
7077 (sync_quit_force_run): New variable.
7078 (handle_sigterm): Replace quit_force call by other calls.
7079 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7080
7081 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7082
7083 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7084 offset into SPE pseudo registers.
7085
7086 2014-03-18 Pedro Alves <palves@redhat.com>
7087
7088 PR gdb/13860
7089 * inferior.h (print_stop_event): Declare.
7090 * infrun.c (print_stop_event): New, factored out from ...
7091 (normal_stop): ... this.
7092 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7093 of bpstat_print/print_stack_frame.
7094
7095 2014-03-17 Tom Tromey <tromey@redhat.com>
7096
7097 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7098
7099 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7100
7101 * ada-lang.c (decode_constrained_packed_array): Perform a
7102 minimal coercion for reference with coerce_ref instead of
7103 ada_coerce_ref.
7104
7105 2014-03-17 Tristan Gingold <gingold@adacore.com>
7106
7107 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7108 (darwin_solib_create_inferior_hook): Emit a warning if version
7109 is unhandled.
7110
7111 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7112
7113 * python/py-value.c (get_field_flag): Cast flag_name argument to
7114 PyObject_GetAttrString to support Python 2.4.
7115
7116 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7117
7118 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7119 (Global Maintainers): Remove Jan Kratochvil.
7120
7121 2014-03-14 Pedro Alves <palves@redhat.com>
7122
7123 * inferior.h (terminal_ours_for_output): Rename to ...
7124 (child_terminal_ours_for_output): ... this.
7125 (terminal_save_ours): Rename to ...
7126 (child_terminal_save_ours): ... this.
7127 (terminal_ours): Rename to ...
7128 (child_terminal_ours): ... this.
7129 (terminal_inferior): Rename to ...
7130 (child_terminal_inferior): ... this.
7131 (terminal_init_inferior): Rename to ...
7132 (child_terminal_init_inferior): ... this.
7133 (terminal_init_inferior_with_pgrp): Rename to ...
7134 (child_terminal_init_inferior_with_pgrp): ... this.
7135 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7136 (child_terminal_init_with_pgrp): ... this.
7137 (terminal_save_ours): Rename to ...
7138 (child_terminal_save_ours): ... this.
7139 (terminal_init_inferior): Rename to ...
7140 (child_terminal_init): ... this. Adjust.
7141 (terminal_inferior): Rename to ...
7142 (child_terminal_inferior): ... this.
7143 (terminal_ours_for_output): Rename to ...
7144 (child_terminal_ours_for_output): ... this. Adjust.
7145 (terminal_ours): Rename to ...
7146 (child_terminal_ours): ... this.
7147 (terminal_ours_1): Rename to ...
7148 (child_terminal_ours_1): ... this. Adjust.
7149 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7150 * windows-nat.c (do_initial_windows_stuff): Adjust.
7151 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7152 (gnu_terminal_init): ... this. Adjust.
7153 (gnu_target): Adjust.
7154 * inf-child.c (inf_child_target): Adjust.
7155
7156 2014-03-13 Doug Evans <xdje42@gmail.com>
7157
7158 PR guile/16612
7159 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7160 new eq?-hashtab.
7161
7162 2014-03-13 Doug Evans <xdje42@gmail.com>
7163
7164 * value.c (record_latest_value): Call release_value_or_incref
7165 instead of release_value.
7166
7167 2014-03-13 Pedro Alves <palves@redhat.com>
7168
7169 * procfs.c (procfs_target): Don't override to_shortname,
7170 to_longname or to_doc.
7171
7172 2014-03-13 Pedro Alves <palves@redhat.com>
7173
7174 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7175 Unix in user visible strings.
7176
7177 2014-03-12 Stan Shebs <stan@codesourcery.com>
7178
7179 * gdbtypes.h: Annotate comments for Doxygen, add a page
7180 block comment with some general info.
7181
7182 2014-03-12 Pedro Alves <palves@redhat.com>
7183
7184 * infcmd.c (prepare_execution_command): New function, factored out
7185 from several execution commands.
7186 (run_command_1, continue_command, step_1, jump_command)
7187 (signal_command, until_command, advance_command, finish_command)
7188 (attach_command): Use prepare_execution_command.
7189
7190 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7191
7192 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7193 (MAX_BPTS): Define.
7194 (MAX_WPTS): Define.
7195 (struct arm_linux_thread_points): Removed.
7196 (struct arm_linux_process_info): New.
7197 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7198 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7199 (arm_linux_find_breakpoints_by_tid): Removed.
7200 (struct arch_lwp_info): New.
7201 (arm_linux_find_process_pid): New functions.
7202 (arm_linux_add_process): New functions.
7203 (arm_linux_process_info_get): New functions.
7204 (arm_linux_forget_process): New function.
7205 (arm_linux_get_debug_reg_state): New function.
7206 (struct update_registers_data): New.
7207 (update_registers_callback): New function.
7208 (arm_linux_insert_hw_breakpoint1): Updated.
7209 (arm_linux_remove_hw_breakpoint1): Updated.
7210 (arm_linux_insert_hw_breakpoint): Updated.
7211 (arm_linux_remove_hw_breakpoint): Updated.
7212 (arm_linux_insert_watchpoint): Updated.
7213 (arm_linux_remove_watchpoint): Updated.
7214 (arm_linux_new_thread): Updated.
7215 (arm_linux_prepare_to_resume): New function.
7216 (arm_linux_new_fork): New function.
7217 (_initialize_arm_linux_nat): Updated.
7218
7219 2014-03-12 Pedro Alves <palves@redhat.com>
7220
7221 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7222
7223 2014-03-12 Tom Tromey <tromey@redhat.com>
7224
7225 * inf-child.c (return_zero): New function.
7226 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7227 * aix-thread.c (aix_thread_inferior_created): New function.
7228 (aix_thread_attach): Remove.
7229 (init_aix_thread_ops): Don't set to_attach.
7230 (_initialize_aix_thread): Register inferior_created observer.
7231 * corelow.c (init_core_ops): Don't set to_attach or
7232 to_create_inferior.
7233 * exec.c (init_exec_ops): Don't set to_attach or
7234 to_create_inferior.
7235 * infcmd.c (run_command_1): Use find_run_target. Make direct
7236 target calls.
7237 (attach_command): Use find_attach_target. Make direct target
7238 calls.
7239 * record-btrace.c (init_record_btrace_ops): Don't set
7240 to_create_inferior.
7241 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7242 Remove.
7243 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7244 set to_create_inferior.
7245 * target.c (complete_target_initialization): Add assertion.
7246 (target_create_inferior): Remove.
7247 (find_default_attach, find_default_create_inferior): Remove.
7248 (find_attach_target, find_run_target): New functions.
7249 (find_default_is_async_p, find_default_can_async_p)
7250 (target_supports_non_stop, target_attach): Remove.
7251 (init_dummy_target): Don't set to_create_inferior or
7252 to_supports_non_stop.
7253 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7254 TARGET_DEFAULT_FUNC.
7255 <to_create_inferior>: Add comment.
7256 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7257 TARGET_DEFAULT_RETURN.
7258 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7259 (find_attach_target, find_run_target): Declare.
7260 (target_create_inferior): Remove.
7261 (target_has_execution_1): Update comment.
7262 (target_supports_non_stop): Remove.
7263 * target-delegates.c: Rebuild.
7264
7265 2014-03-12 Pedro Alves <palves@redhat.com>
7266
7267 * inf-child.h: Update comment to not mention Unix.
7268
7269 2014-03-12 Pedro Alves <palves@redhat.com>
7270
7271 * inf-child.c: Update top comment to not mention Unix. Add
7272 generic comment describing how this target is meant to be used.
7273 (inf_child_post_attach, inf_child_post_startup_inferior)
7274 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7275 Unix in comment.
7276
7277 2014-03-12 Pedro Alves <palves@redhat.com>
7278
7279 * nto-procfs.c: Include inf-child.h.
7280 (procfs_ops): Delete global.
7281 (procfs_can_run): Delete method.
7282 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7283 target pointer instead of referencing procfs_ops.
7284 (procfs_prepare_to_store): Delete.
7285 (init_procfs_ops): Delete function.
7286 (procfs_target): New function, based on init_procfs_ops, but
7287 inherit inf_child_target.
7288 (_initialize_procfs): Use procfs_target.
7289
7290 2014-03-12 Pedro Alves <palves@redhat.com>
7291
7292 * windows-nat.c: Include inf-child.h.
7293 (windows_ops): Delete global.
7294 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7295 methods.
7296 (init_windows_ops): Delete function.
7297 (windows_target): New function, based on init_windows_ops, but
7298 inherit inf_child_target.
7299 (_initialize_windows_nat): Use windows_target. Install x86
7300 specific target methods here.
7301
7302 2014-03-10 Doug Evans <xdje42@gmail.com>
7303
7304 * guile/guile.c (call_initialize_gdb_module): New function.
7305 (initialize_guile): Replace call to scm_init_guile with call to
7306 scm_with_guile.
7307
7308 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7309
7310 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7311 in call to TYPE_CODE macro.
7312
7313 2014-03-10 Jerome Guitton <guitton@adacore.com>
7314
7315 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7316 Resolve tagged types to full view.
7317
7318 2014-03-10 Hui Zhu <hui@codesourcery.com>
7319
7320 * target.h (target_insert_breakpoint): Remove "hardware" from its
7321 comments.
7322
7323 2014-03-07 Doug Evans <dje@google.com>
7324
7325 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7326
7327 2014-03-07 Doug Evans <dje@google.com>
7328
7329 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7330 Remove unused local comp_dir_attr. Assert exactly one of
7331 stub_comp_unit_die, stub_comp_dir is non-NULL.
7332
7333 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7334
7335 * target.h (complete_target_initialization, add_target):
7336 Add comment.
7337
7338 2014-03-07 Pedro Alves <palves@redhat.com>
7339
7340 * go32-nat.c: Include inf-child.h.
7341 (go32_ops): Delete global.
7342 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7343 Delete methods.
7344 (go32_create_inferior): Push the passed in target pointer instead
7345 of referencing go32_ops.
7346 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7347 (go32_target): New function, based on init_go32_ops, but inherit
7348 inf_child_target.
7349 (_initialize_go32_nat): Use go32_target. Move parts of
7350 init_go32_ops here.
7351
7352 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7353
7354 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7355 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7356 SYMBOL_VALUE_ADDRESS.
7357 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7358
7359 2014-03-06 Yao Qi <yao@codesourcery.com>
7360
7361 * breakpoint.c (get_tracepoint_by_number): Remove argument
7362 optional_p. All callers updated. Adjust comments. Update
7363 output message.
7364 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7365
7366 2014-03-06 Yao Qi <yao@codesourcery.com>
7367
7368 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7369 early if get_number returns zero. Use 'p' instead of 'args'.
7370
7371 2014-03-06 Yao Qi <yao@codesourcery.com>
7372
7373 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7374 message.
7375
7376 2014-03-06 Yao Qi <yao@codesourcery.com>
7377
7378 PR breakpoints/16508
7379 * tracepoint.c (check_trace_running): New function.
7380 (trace_find_command): Move code to check_trace_running and
7381 call check_trace_running.
7382 (trace_find_pc_command): Likewise.
7383 (trace_find_tracepoint_command): Likewise.
7384 (trace_find_line_command): Likewise.
7385 (trace_find_range_command): Likewise.
7386 * tracepoint.h (check_trace_running): Likewise.
7387 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7388
7389 2014-03-06 Yao Qi <yao@codesourcery.com>
7390
7391 * target.h (struct target_ops) <to_traceframe_info>: Use
7392 TARGET_DEFAULT_NORETURN (tcomplain ()).
7393 * target-delegates.c: Regenerated.
7394
7395 2014-03-05 Pedro Alves <palves@redhat.com>
7396
7397 PR gdb/16575
7398 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7399 void. Update comment.
7400 (dcache_xfer_memory): Delete.
7401 (dcache_read_memory_partial): New, based on the read bits of
7402 dcache_xfer_memory.
7403 (dcache_update): Add status parameter. Use ULONGEST for len, and
7404 adjust. Discard cache lines if the reason for the update was
7405 error.
7406 * dcache.h (dcache_xfer_memory): Delete declaration.
7407 (dcache_read_memory_partial): New declaration.
7408 (dcache_update): Update prototype.
7409 * target.c (raw_memory_xfer_partial): Update the dcache here.
7410 (memory_xfer_partial_1): Don't handle dcache writes here.
7411
7412 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7413
7414 * remote-sim.c (gdbsim_load): Add const to prog.
7415
7416 2014-03-03 Tom Tromey <tromey@redhat.com>
7417
7418 * elfread.c (probe_key): Change to bfd_data.
7419 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7420 now per-BFD, not per-objfile.
7421 * stap-probe.c (stap_probe_destroy): Update comment.
7422 (handle_stap_probe): Allocate on the per-BFD obstack.
7423
7424 2014-03-03 Tom Tromey <tromey@redhat.com>
7425
7426 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7427 * breakpoint.c (create_longjmp_master_breakpoint): Use
7428 get_probe_address.
7429 (add_location_to_breakpoint, bkpt_probe_insert_location)
7430 (bkpt_probe_remove_location): Update.
7431 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7432 * elfread.c (elf_symfile_relocate_probe): Remove.
7433 (elf_probe_fns): Update.
7434 (insert_exception_resume_breakpoint): Change type of "probe"
7435 parameter to bound_probe.
7436 (check_exception_resume): Update.
7437 * objfiles.c (objfile_relocate1): Don't relocate probes.
7438 * probe.c (bound_probe_s): New typedef.
7439 (parse_probes): Use get_probe_address. Set sal's objfile.
7440 (find_probe_by_pc): Return a bound_probe.
7441 (collect_probes): Return a VEC(bound_probe_s).
7442 (compare_probes): Update.
7443 (gen_ui_out_table_header_info): Change type of "probes"
7444 parameter. Update.
7445 (info_probes_for_ops): Update.
7446 (get_probe_address): New function.
7447 (probe_safe_evaluate_at_pc): Update.
7448 * probe.h (struct probe_ops) <get_probe_address>: New field.
7449 <set_semaphore, clear_semaphore>: Add objfile parameter.
7450 (struct probe) <objfile>: Remove field.
7451 <arch>: New field.
7452 <address>: Update comment.
7453 (struct bound_probe): New.
7454 (find_probe_by_pc): Return a bound_probe.
7455 (get_probe_address): Declare.
7456 * solib-svr4.c (struct probe_and_action) <address>: New field.
7457 (hash_probe_and_action, equal_probe_and_action): Update.
7458 (register_solib_event_probe): Add address parameter.
7459 (solib_event_probe_at): Update.
7460 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7461 get_probe_address.
7462 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7463 (stap_get_probe_address): New function.
7464 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7465 (compile_probe_arg): Update.
7466 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7467 address.
7468 (handle_stap_probe): Don't relocate the probe.
7469 (stap_relocate): Remove.
7470 (stap_gen_info_probes_table_values): Update.
7471 (stap_probe_ops): Remove stap_relocate.
7472 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7473 (debug_sym_probe_fns): Update.
7474 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7475 * symtab.c (init_sal): Use memset.
7476 * symtab.h (struct symtab_and_line) <objfile>: New field.
7477 * tracepoint.c (start_tracing, stop_tracing): Update.
7478
7479 2014-03-03 Tom Tromey <tromey@redhat.com>
7480
7481 * probe.h (parse_probes, find_probe_by_pc)
7482 (find_probes_in_objfile): Fix comments.
7483
7484 2014-03-02 Doug Evans <xdje42@gmail.com>
7485
7486 * infrun.c (handle_signal_stop): Replace test for
7487 TARGET_WAITKIND_STOPPED with an assert.
7488
7489 2014-03-02 Doug Evans <xdje42@gmail.com>
7490
7491 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7492
7493 2014-03-02 Doug Evans <xdje42@gmail.com>
7494
7495 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7496
7497 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7498
7499 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7500
7501 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7502
7503 * i386obsd-nat.c: Include "obsd-nat.h".
7504 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7505 add_target.
7506 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7507
7508 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7509
7510 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7511
7512 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7513
7514 * mips64obsd-nat.c: Include "obsd-nath".
7515 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7516 add_target
7517 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7518
7519 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7520
7521 * amd64obsd-nat.c: Include "obsd-nat,h.
7522 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7523 add_target.
7524 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7525
7526 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7527
7528 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7529 (find_overload_match): Update call to find_oload_champ.
7530 (find_oload_champ_namespace_loop): Likewise
7531
7532 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7533
7534 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7535
7536 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7537 * config/sparc/obsd64.mh: New file.
7538 * sparc64obsd-nat.c: New file.
7539
7540 * obsd-nat.h: New file.
7541 * obsd-nat.c: New file.
7542 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7543 (ALLDEPFILES): Add obsd-nat.c.
7544
7545 2014-02-28 Tom Tromey <tromey@redhat.com>
7546
7547 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7548 * cli-out.h (cli_ui_out_impl): Now const.
7549 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7550 * ui-out.c (struct ui_out) <impl>: Now const.
7551 (default_ui_out_impl): Now const.
7552 (ui_out_new): Make 'impl' parameter const.
7553 * ui-out.h (ui_out_new): Update.
7554
7555 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7556
7557 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7558
7559 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7560
7561 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7562
7563 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7564
7565 Additional PR 8882 fix.
7566 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7567
7568 2014-02-27 Pedro Alves <palves@redhat.com>
7569
7570 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7571 isn't set.
7572
7573 2014-02-27 Pedro Alves <palves@redhat.com>
7574
7575 PR 12702
7576 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7577 * nat/linux-waitpid.c: Include string.h.
7578 (status_to_str): Moved here and made extern.
7579 * nat/linux-waitpid.h (status_to_str): New declaration.
7580
7581 2014-02-27 Hui Zhu <hui@codesourcery.com>
7582
7583 PR 12702
7584 * infrun.c (ptid_match): Move ...
7585 * common/ptid.c (ptid_match): ... here.
7586 * inferior.h (ptid_match): Move ...
7587 * common/ptid.h (ptid_match): ... here.
7588
7589 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7590
7591 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7592 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7593 gdb_target_obs.
7594
7595 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7596
7597 * obsd-tdep.c (obsd_auxv_parse): New function.
7598 (obsd_init_abi): Set auxv_parse.
7599
7600 * gdbarch.sh (auxv_parse): New.
7601 * gdbarch.h: Regenerated.
7602 * gdbarch.c: Regenerated.
7603 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7604
7605 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7606
7607 * guile/scm-value.c (gdbscm_history_append_x): New function.
7608 (value_functions): Add it.
7609
7610 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7611
7612 * dwarf2read.c (attr_value_as_address): New function.
7613 (dwarf2_find_base_address, read_call_site_scope): Use
7614 attr_value_as_address in place of DW_ADDR.
7615 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7616 the low and high addresses. Slight rework of the handling
7617 of the high pc being a constant form, and limit it to
7618 DWARF verson 4 or higher.
7619 (dwarf2_record_block_ranges): Likewise.
7620 (read_partial_die): Likewise.
7621 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7622
7623 2014-02-26 Tom Tromey <tromey@redhat.com>
7624
7625 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7626
7627 2014-02-26 Tom Tromey <tromey@redhat.com>
7628
7629 * elfread.c (elf_read_minimal_symbols): Return early if
7630 minimal symbols have already been read. Add "ei" parameter.
7631 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7632 * minsyms.c (prim_record_minimal_symbol_full): Update.
7633 * objfiles.h (struct objstats) <n_minsyms>: Move...
7634 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7635 * symmisc.c (print_objfile_statistics): Update.
7636
7637 2014-02-26 Tom Tromey <tromey@redhat.com>
7638
7639 * elfread.c (elf_read_minimal_symbols): New function, from
7640 elf_symfile_read.
7641 (elf_symfile_read): Call it.
7642
7643 2014-02-26 Tom Tromey <tromey@redhat.com>
7644
7645 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7646 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7647 (lookup_minimal_symbol_solib_trampoline)
7648 (lookup_minimal_symbol_by_pc_section_1)
7649 (lookup_minimal_symbol_and_objfile): Update.
7650 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7651 Don't allocate a minimal symbol if minsyms have already been read.
7652 (build_minimal_symbol_hash_tables): Update.
7653 (install_minimal_symbols): Do nothing if minsyms already read.
7654 Use the per-BFD obstack.
7655 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7656 * objfiles.c (allocate_objfile): Call
7657 terminate_minimal_symbol_table later.
7658 (have_minimal_symbols): Update.
7659 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7660 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7661 Move from struct objfile.
7662 <minsyms_read>: New field.
7663 (struct objfile) <msymbols, minimal_symbol_count,
7664 msymbol_hash, msymbol_demangled_hash>: Move.
7665 (ALL_OBJFILE_MSYMBOLS): Update.
7666 * symfile.c (read_symbols): Set minsyms_read.
7667 (reread_symbols): Update.
7668 * symmisc.c (dump_objfile, dump_msymbols): Update.
7669
7670 2014-02-26 Tom Tromey <tromey@redhat.com>
7671
7672 * minsyms.c (msymbols_sort): Remove.
7673 * minsyms.h (msymbols_sort): Remove.
7674 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7675 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7676 * elfread.c (elf_symtab_read): Don't add section offsets.
7677 * xcoffread.c (record_minimal_symbol): Don't add section offset
7678 to minimal symbol address.
7679 * somread.c (text_offset, data_offset): Remove.
7680 (som_symtab_read): Don't add section offsets to minimal symbol
7681 addresses.
7682 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7683 Don't add section offsets to minimal symbols.
7684 * coffread.c (coff_symtab_read): Don't add section offsets
7685 to minimal symbol addresses.
7686 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7687 to minimal symbol addresses.
7688 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7689 section offset to minimal symbol addresses.
7690 * mdebugread.c (parse_partial_symbols): Don't add section
7691 offset to minimal symbol addresses.
7692 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7693 offset to minimal symbol addresses.
7694
7695 2014-02-26 Tom Tromey <tromey@redhat.com>
7696
7697 * ada-lang.c (ada_main_name): Update.
7698 (ada_add_standard_exceptions): Update.
7699 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7700 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7701 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7702 * auxv.c (ld_so_xfer_auxv): Update.
7703 * avr-tdep.c (avr_scan_prologue): Update.
7704 * ax-gdb.c (gen_var_ref): Update.
7705 * blockframe.c (get_pc_function_start)
7706 (find_pc_partial_function_gnu_ifunc): Update.
7707 * breakpoint.c (create_overlay_event_breakpoint)
7708 (create_longjmp_master_breakpoint)
7709 (create_std_terminate_master_breakpoint)
7710 (create_exception_master_breakpoint): Update.
7711 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7712 * c-valprint.c (c_val_print): Update.
7713 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7714 * common/agent.c (agent_look_up_symbols): Update.
7715 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7716 * dwarf2loc.c (call_site_to_target_addr): Update.
7717 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7718 * elfread.c (elf_gnu_ifunc_record_cache)
7719 (elf_gnu_ifunc_resolve_by_got): Update.
7720 * findvar.c (default_read_var_value): Update.
7721 * frame.c (inside_main_func): Update.
7722 * frv-tdep.c (frv_frame_this_id): Update.
7723 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7724 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7725 Update.
7726 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7727 (hppa_hpux_find_dummy_bpaddr): Update.
7728 * hppa-tdep.c (hppa_symbol_address): Update.
7729 * infcmd.c (until_next_command): Update.
7730 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7731 Update.
7732 * linespec.c (minsym_found, add_minsym): Update.
7733 * linux-nat.c (get_signo): Update.
7734 * linux-thread-db.c (inferior_has_bug): Update.
7735 * m32c-tdep.c (m32c_return_value)
7736 (m32c_m16c_address_to_pointer): Update.
7737 * m32r-tdep.c (m32r_frame_this_id): Update.
7738 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7739 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7740 * maint.c (maintenance_translate_address): Update.
7741 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7742 (frob_address): New function.
7743 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7744 frob_address. Rename parameter to "pc_in".
7745 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7746 addresses.
7747 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7748 Update.
7749 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7750 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7751 * objc-lang.c (find_objc_msgsend): Update.
7752 * objfiles.c (objfile_relocate1): Update.
7753 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7754 * p-valprint.c (pascal_val_print): Update.
7755 * parse.c (write_exp_msymbol): Update.
7756 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7757 (ppc_elfv2_skip_entrypoint): Update.
7758 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7759 * printcmd.c (build_address_symbolic, msym_info)
7760 (address_info): Update.
7761 * proc-service.c (ps_pglobal_lookup): Update.
7762 * psymtab.c (find_pc_sect_psymtab_closer)
7763 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7764 Change msymbol parameter to bound_minimal_symbol.
7765 * ravenscar-thread.c (get_running_thread_id): Update.
7766 * remote.c (remote_check_symbols): Update.
7767 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7768 address.
7769 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7770 * solib-dsbt.c (lm_base): Update.
7771 * solib-frv.c (lm_base, main_got): Update.
7772 * solib-irix.c (locate_base): Update.
7773 * solib-som.c (som_solib_create_inferior_hook)
7774 (link_map_start): Update.
7775 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7776 * solib-svr4.c (elf_locate_base, enable_break): Update.
7777 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7778 (flush_ea_cache): Update.
7779 * stabsread.c (define_symbol, scan_file_globals): Update.
7780 * stack.c (find_frame_funname): Update.
7781 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7782 (debug_qf_find_pc_sect_symtab): Update.
7783 * symfile.c (simple_read_overlay_table)
7784 (simple_overlay_update): Update.
7785 * symfile.h (struct quick_symbol_functions)
7786 <find_pc_sect_symtab>: Change type of msymbol to
7787 bound_minimal_symbol.
7788 * symmisc.c (dump_msymbols): Update.
7789 * symtab.c (find_pc_sect_symtab_via_partial)
7790 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7791 (search_symbols, print_msymbol_info): Update.
7792 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7793 (MSYMBOL_VALUE_ADDRESS): Redefine.
7794 (BMSYMBOL_VALUE_ADDRESS): New macro.
7795 * tracepoint.c (scope_info): Update.
7796 * tui/tui-disasm.c (tui_find_disassembly_address)
7797 (tui_get_begin_asm_address): Update.
7798 * valops.c (find_function_in_inferior): Update.
7799 * value.c (value_static_field, value_fn_field): Update.
7800
7801 2014-02-26 Tom Tromey <tromey@redhat.com>
7802
7803 * ada-lang.c (ada_update_initial_language): Update.
7804 (ada_main_name, ada_has_this_exception_support): Update.
7805 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7806 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7807 * arm-tdep.c (arm_skip_stub): Update.
7808 * auxv.c (ld_so_xfer_auxv): Update.
7809 * avr-tdep.c (avr_scan_prologue): Update.
7810 * ax-gdb.c (gen_var_ref): Update.
7811 * breakpoint.c (struct breakpoint_objfile_data)
7812 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7813 type to bound_minimal_symbol.
7814 (create_overlay_event_breakpoint)
7815 (create_longjmp_master_breakpoint)
7816 (create_std_terminate_master_breakpoint)
7817 (create_exception_master_breakpoint): Update.
7818 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7819 * c-exp.y (classify_name): Update.
7820 * coffread.c (coff_symfile_read): Update.
7821 * common/agent.c (agent_look_up_symbols): Update.
7822 * d-lang.c (d_main_name): Update.
7823 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7824 * dec-thread.c (enable_dec_thread): Update.
7825 * dwarf2loc.c (call_site_to_target_addr): Update.
7826 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7827 * eval.c (evaluate_subexp_standard): Update.
7828 * findvar.c (struct minsym_lookup_data) <result>: Change type
7829 to bound_minimal_symbol.
7830 <objfile>: Remove.
7831 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7832 * frame.c (inside_main_func): Update.
7833 * frv-tdep.c (frv_frame_this_id): Update.
7834 * gcore.c (call_target_sbrk): Update.
7835 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7836 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7837 Update.
7838 * go-lang.c (go_main_name): Update.
7839 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7840 (hppa_hpux_find_import_stub_for_addr): Update.
7841 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7842 Update. Change return type.
7843 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7844 type.
7845 * jit.c (jit_breakpoint_re_set_internal): Update.
7846 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7847 Update.
7848 * linux-nat.c (get_signo): Update.
7849 * linux-thread-db.c (inferior_has_bug): Update
7850 * m32c-tdep.c (m32c_return_value)
7851 (m32c_m16c_address_to_pointer): Update.
7852 * m32r-tdep.c (m32r_frame_this_id): Update.
7853 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7854 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7855 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7856 lookup_minimal_symbol. Change return type.
7857 (lookup_minimal_symbol): Remove.
7858 (lookup_bound_minimal_symbol): Update.
7859 (lookup_minimal_symbol_text): Change return type.
7860 (lookup_minimal_symbol_solib_trampoline): Change return type.
7861 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7862 (lookup_minimal_symbol_solib_trampoline): Change return type.
7863 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7864 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7865 (value_nsstring, find_imps): Update.
7866 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7867 * p-lang.c (pascal_main_name): Update.
7868 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7869 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7870 * proc-service.c (ps_pglobal_lookup): Update.
7871 * ravenscar-thread.c (get_running_thread_msymbol): Change
7872 return type.
7873 (has_ravenscar_runtime, get_running_thread_id): Update.
7874 * remote.c (remote_check_symbols): Update.
7875 * sol-thread.c (ps_pglobal_lookup): Update.
7876 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7877 * solib-dsbt.c (lm_base): Update.
7878 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7879 Update.
7880 * solib-irix.c (locate_base): Update.
7881 * solib-som.c (som_solib_create_inferior_hook)
7882 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7883 Update.
7884 * solib-spu.c (spu_enable_break): Update.
7885 * solib-svr4.c (elf_locate_base, enable_break): Update.
7886 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7887 (flush_ea_cache): Update.
7888 * stabsread.c (define_symbol): Update.
7889 * symfile.c (simple_read_overlay_table): Update.
7890 * symtab.c (find_pc_sect_line): Update.
7891 * tracepoint.c (scope_info): Update.
7892 * tui-disasm.c (tui_get_begin_asm_address): Update.
7893 * value.c (value_static_field): Update.
7894
7895 2014-02-26 Tom Tromey <tromey@redhat.com>
7896
7897 * minsyms.c (prim_record_minimal_symbol_full): Use
7898 SET_MSYMBOL_VALUE_ADDRESS.
7899 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7900 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7901 SET_MSYMBOL_VALUE_ADDRESS.
7902 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7903 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7904
7905 2014-02-26 Tom Tromey <tromey@redhat.com>
7906
7907 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7908 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7909 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7910 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7911 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7912 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7913 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7914 * ada-lang.c (ada_main_name): Update.
7915 (ada_lookup_simple_minsym): Update.
7916 (ada_make_symbol_completion_list): Update.
7917 (ada_add_standard_exceptions): Update.
7918 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7919 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7920 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7921 * arm-tdep.c (skip_prologue_function): Update.
7922 (arm_skip_stack_protector, arm_skip_stub): Update.
7923 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7924 (arm_wince_skip_main_prologue): Update.
7925 * auxv.c (ld_so_xfer_auxv): Update.
7926 * avr-tdep.c (avr_scan_prologue): Update.
7927 * ax-gdb.c (gen_var_ref): Update.
7928 * block.c (call_site_for_pc): Update.
7929 * blockframe.c (get_pc_function_start): Update.
7930 (find_pc_partial_function_gnu_ifunc): Update.
7931 * breakpoint.c (create_overlay_event_breakpoint): Update.
7932 (create_longjmp_master_breakpoint): Update.
7933 (create_std_terminate_master_breakpoint): Update.
7934 (create_exception_master_breakpoint): Update.
7935 (resolve_sal_pc): Update.
7936 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7937 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7938 Update.
7939 * c-valprint.c (c_val_print): Update.
7940 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7941 * coffread.c (coff_symfile_read): Update.
7942 * common/agent.c (agent_look_up_symbols): Update.
7943 * dbxread.c (find_stab_function_addr): Update.
7944 (end_psymtab): Update.
7945 * dwarf2loc.c (call_site_to_target_addr): Update.
7946 (func_verify_no_selftailcall): Update.
7947 (tailcall_dump): Update.
7948 (call_site_find_chain_1): Update.
7949 (dwarf_expr_reg_to_entry_parameter): Update.
7950 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7951 (elf_gnu_ifunc_resolve_by_got): Update.
7952 * f-valprint.c (info_common_command): Update.
7953 * findvar.c (read_var_value): Update.
7954 * frame.c (get_prev_frame_1): Update.
7955 (inside_main_func): Update.
7956 * frv-tdep.c (frv_skip_main_prologue): Update.
7957 (frv_frame_this_id): Update.
7958 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7959 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7960 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7961 (gnuv3_skip_trampoline): Update.
7962 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7963 (hppa64_hpux_in_solib_call_trampoline): Update.
7964 (hppa_hpux_skip_trampoline_code): Update.
7965 (hppa64_hpux_search_dummy_call_sequence): Update.
7966 (hppa_hpux_find_import_stub_for_addr): Update.
7967 (hppa_hpux_find_dummy_bpaddr): Update.
7968 * hppa-tdep.c (hppa_symbol_address)
7969 (hppa_lookup_stub_minimal_symbol): Update.
7970 * i386-tdep.c (i386_skip_main_prologue): Update.
7971 (i386_pe_skip_trampoline_code): Update.
7972 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7973 * infcall.c (get_function_name): Update.
7974 * infcmd.c (until_next_command): Update.
7975 * jit.c (jit_breakpoint_re_set_internal): Update.
7976 (jit_inferior_init): Update.
7977 * linespec.c (minsym_found): Update.
7978 (add_minsym): Update.
7979 * linux-fork.c (info_checkpoints_command): Update.
7980 * linux-nat.c (get_signo): Update.
7981 * linux-thread-db.c (inferior_has_bug): Update.
7982 * m32c-tdep.c (m32c_return_value): Update.
7983 (m32c_m16c_address_to_pointer): Update.
7984 (m32c_m16c_pointer_to_address): Update.
7985 * m32r-tdep.c (m32r_frame_this_id): Update.
7986 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7987 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7988 * maint.c (maintenance_translate_address): Update.
7989 * minsyms.c (add_minsym_to_hash_table): Update.
7990 (add_minsym_to_demangled_hash_table): Update.
7991 (msymbol_objfile): Update.
7992 (lookup_minimal_symbol): Update.
7993 (iterate_over_minimal_symbols): Update.
7994 (lookup_minimal_symbol_text): Update.
7995 (lookup_minimal_symbol_by_pc_name): Update.
7996 (lookup_minimal_symbol_solib_trampoline): Update.
7997 (lookup_minimal_symbol_by_pc_section_1): Update.
7998 (lookup_minimal_symbol_and_objfile): Update.
7999 (prim_record_minimal_symbol_full): Update.
8000 (compare_minimal_symbols): Update.
8001 (compact_minimal_symbols): Update.
8002 (build_minimal_symbol_hash_tables): Update.
8003 (install_minimal_symbols): Update.
8004 (terminate_minimal_symbol_table): Update.
8005 (find_solib_trampoline_target): Update.
8006 (minimal_symbol_upper_bound): Update.
8007 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8008 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8009 (mips_skip_pic_trampoline_code): Update.
8010 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8011 * objc-lang.c (selectors_info): Update.
8012 (classes_info): Update.
8013 (find_methods): Update.
8014 (find_imps): Update.
8015 (find_objc_msgsend): Update.
8016 * objfiles.c (objfile_relocate1): Update.
8017 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8018 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8019 * p-valprint.c (pascal_val_print): Update.
8020 * parse.c (write_exp_msymbol): Update.
8021 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8022 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8023 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8024 * printcmd.c (build_address_symbolic): Update.
8025 (sym_info): Update.
8026 (address_info): Update.
8027 * proc-service.c (ps_pglobal_lookup): Update.
8028 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8029 (find_pc_sect_psymtab): Update.
8030 * python/py-framefilter.c (py_print_frame): Update.
8031 * ravenscar-thread.c (get_running_thread_id): Update.
8032 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8033 Update.
8034 * remote.c (remote_check_symbols): Update.
8035 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8036 (rs6000_skip_trampoline_code): Update.
8037 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8038 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8039 * solib-dsbt.c (lm_base): Update.
8040 * solib-frv.c (lm_base): Update.
8041 (main_got): Update.
8042 * solib-irix.c (locate_base): Update.
8043 * solib-som.c (som_solib_create_inferior_hook): Update.
8044 (som_solib_desire_dynamic_linker_symbols): Update.
8045 (link_map_start): Update.
8046 * solib-spu.c (spu_enable_break): Update.
8047 (ocl_enable_break): Update.
8048 * solib-svr4.c (elf_locate_base): Update.
8049 (enable_break): Update.
8050 * spu-tdep.c (spu_get_overlay_table): Update.
8051 (spu_catch_start): Update.
8052 (flush_ea_cache): Update.
8053 * stabsread.c (define_symbol): Update.
8054 (scan_file_globals): Update.
8055 * stack.c (find_frame_funname): Update.
8056 (frame_info): Update.
8057 * symfile.c (simple_read_overlay_table): Update.
8058 (simple_overlay_update): Update.
8059 * symmisc.c (dump_msymbols): Update.
8060 * symtab.c (fixup_section): Update.
8061 (find_pc_sect_line): Update.
8062 (skip_prologue_sal): Update.
8063 (search_symbols): Update.
8064 (print_msymbol_info): Update.
8065 (rbreak_command): Update.
8066 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8067 (completion_list_objc_symbol): Update.
8068 (default_make_symbol_completion_list_break_on): Update.
8069 * tracepoint.c (scope_info): Update.
8070 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8071 (tui_get_begin_asm_address): Update.
8072 * valops.c (find_function_in_inferior): Update.
8073 * value.c (value_static_field): Update.
8074 (value_fn_field): Update.
8075
8076 2014-02-26 Tom Tromey <tromey@redhat.com>
8077
8078 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8079 bound minimal symbols. Move code that knows about minsym
8080 table layout...
8081 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8082 function.
8083 * minsyms.h (minimal_symbol_upper_bound): Declare.
8084 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8085 minimal_symbol_upper_bound.
8086
8087 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8088
8089 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8090 Use the type's name if its basic type does not have a tag.
8091
8092 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8093
8094 * dwarf2read.c (read_subrange_type): Add comment.
8095
8096 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8097
8098 * dwarf2read.c (update_enumeration_type_from_children): New
8099 function, mostly extracted from process_structure_scope.
8100 (read_enumeration_type): Call update_enumeration_type_from_children.
8101 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8102 and flag_flag_enum fields.
8103
8104 2014-02-26 Pedro Alves <palves@redhat.com>
8105
8106 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8107 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8108 to_xfer_partial method.
8109
8110 2014-02-26 Pedro Alves <palves@redhat.com>
8111
8112 * target.c (complete_target_initialization): Don't install
8113 default_xfer_partial as to_xfer_partial hook.
8114 (nomemory): Delete.
8115 (update_current_target): Don't INHERIT nor de_fault
8116 deprecated_xfer_memory. Delete de_fault macro.
8117 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8118 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8119 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8120 field.
8121
8122 2014-02-26 Pedro Alves <palves@redhat.com>
8123
8124 * go32-nat.c (my_write_child): New function.
8125 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8126 (go32_xfer_partial): New function.
8127 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8128 Instead install a to_xfer_partial hook.
8129
8130 2014-02-26 Pedro Alves <palves@redhat.com>
8131
8132 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8133 to_xfer_partial helper. Rewrite.
8134 (procfs_xfer_partial): New function.
8135 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8136 Install a to_xfer_partial hook.
8137
8138 2014-02-26 Pedro Alves <palves@redhat.com>
8139
8140 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8141 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8142 (m32r_xfer_partial): New function.
8143 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8144 Install a to_xfer_partial hook.
8145
8146 2014-02-26 Pedro Alves <palves@redhat.com>
8147
8148 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8149 helper.
8150 (mips_xfer_partial): New function.
8151 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8152 hook. Install a to_xfer_partial hook.
8153
8154 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8155
8156 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8157 * gdbtypes.c (create_array_type_with_stride): New function,
8158 renaming create_array_type, but with an added parameter
8159 called "bit_stride".
8160 (create_array_type): Re-implement using
8161 create_array_type_with_stride.
8162 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8163 and DW_AT_bit_stride attributes.
8164
8165 2014-02-26 Pedro Alves <palves@redhat.com>
8166
8167 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8168 task-specific breakpoints.
8169
8170 2014-02-25 Pedro Alves <palves@redhat.com>
8171
8172 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8173 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8174
8175 2014-02-25 Stan Shebs <stan@codesourcery.com>
8176
8177 * defs.h: Annotate comments for Doxygen.
8178
8179 2014-02-25 Tom Tromey <tromey@redhat.com>
8180
8181 * target.h (target_ignore): Don't declare.
8182 * target.c (target_ignore): Remove.
8183
8184 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8185
8186 PR gdb/16626
8187 * auto-load.c (auto_load_objfile_script_1): Change filename to
8188 debugfile.
8189
8190 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8191
8192 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8193 documentation. Adjust prototype to match the target_ops
8194 to_xfer_partial method. Adjust implementation accordingly.
8195
8196 2014-02-25 Hui Zhu <hui@codesourcery.com>
8197
8198 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8199 to_traceframe_info.
8200
8201 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8202
8203 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8204 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8205 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8206 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8207 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8208 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8209 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8210 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8211 New constants.
8212 (rl78_register_type): Use a data pointer type for SP and
8213 new pseudo registers mentioned above. Use a 16 bit integer
8214 type for all other register pairs.
8215 (rl78_register_name, rl78_g10_register_name): Update for
8216 new pseudo registers.
8217 (rl78_pseudo_register_read): Likewise.
8218 (rl78_pseudo_register_write): Likewise.
8219 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8220 to the newly added pseudo registers.
8221
8222 2014-02-24 Doug Evans <dje@google.com>
8223
8224 * value.c (record_latest_value): Fix comment.
8225 * printcmd.c (print_command_1): Remove code to handle -1 return from
8226 record_latest_value.
8227
8228 2014-02-24 Pedro Alves <palves@redhat.com>
8229
8230 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8231 deprecated_xfer_memory hook.
8232 (procfs_xfer_partial): Call procfs_xfer_memory instead
8233 of the deprecated_xfer_memory target hook.
8234 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8235 helper.
8236
8237 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8238
8239 * windows-nat.c (windows_xfer_shared_libraries): Return
8240 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8241 requested object is TARGET_OBJECT_LIBRARIES.
8242
8243 2014-02-24 Yao Qi <yao@codesourcery.com>
8244
8245 * target.h (enum target_xfer_status)
8246 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8247 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8248 explicitly. New.
8249 * corefile.c (memory_error_message): User updated.
8250 * exec.c (section_table_read_available_memory): Likewise.
8251 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8252 * target.c (target_xfer_status_to_string): Likewise.
8253 (raw_memory_xfer_partial): Likewise.
8254 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8255 * valops.c (read_value_memory): Likewise.
8256 * exec.h: Update comments.
8257
8258 2014-02-24 Yao Qi <yao@codesourcery.com>
8259
8260 * target.c (target_xfer_status_to_string): Rename argument err
8261 to status.
8262 * target.h (target_xfer_status_to_string): Update declaration.
8263 Replace target_xfer_error_to_string with
8264 target_xfer_status_to_string in comment.
8265
8266 2014-02-24 Yao Qi <yao@codesourcery.com>
8267
8268 * mips-linux-nat.c (super_close): Update its type.
8269 (mips_linux_close): Pass 'self' to super_close.
8270
8271 2014-02-24 Yao Qi <yao@codesourcery.com>
8272
8273 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8274 * corefile.c (read_memory): Adjusted.
8275 * target.c (target_write_with_progress): Adjusted.
8276
8277 2014-02-23 Yao Qi <yao@codesourcery.com>
8278
8279 Revert two patches:
8280
8281 2013-10-25 Yao Qi <yao@codesourcery.com>
8282
8283 * remote.c (remote_traceframe_info): Return early if
8284 traceframe is not selected.
8285
8286 2013-07-19 Yao Qi <yao@codesourcery.com>
8287
8288 * target.c (update_current_target): Change the default action
8289 of 'to_traceframe_info' from tcomplain to return_zero.
8290 * target.h (struct target_ops) <to_traceframe_info>: Add more
8291 comments.
8292
8293 2014-02-23 Yao Qi <yao@codesourcery.com>
8294
8295 * valops.c (read_value_memory): Rewrite it. Call
8296 target_xfer_partial in a loop.
8297 * exec.h (section_table_available_memory): Remove declaration.
8298 Move comments to ...
8299 * exec.c (section_table_available_memory): ... here. Make it
8300 static.
8301
8302 2014-02-23 Yao Qi <yao@codesourcery.com>
8303
8304 * exec.c (section_table_read_available_memory): New function.
8305 * exec.h (section_table_read_available_memory): Declare.
8306 * ctf.c (ctf_xfer_partial): Call
8307 section_table_read_available_memory.
8308 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8309
8310 2014-02-23 Yao Qi <yao@codesourcery.com>
8311
8312 * ctf.c (ctf_xfer_partial): Move code to ...
8313 * exec.c (exec_read_partial_read_only): ... it. New function.
8314 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8315 * tracefile.c: Include "exec.h".
8316 * exec.h (exec_read_partial_read_only): Declare.
8317
8318 2014-02-23 Yao Qi <yao@codesourcery.com>
8319
8320 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8321 (tfile_has_memory): Remove.
8322 (init_tfile_ops): Don't set fields to_has_all_memory and
8323 to_has_memory of tfile_ops.
8324 * tracefile.c (tracefile_has_all_memory): New function.
8325 (tracefile_has_memory): New function.
8326 (init_tracefile_ops): Initialize fields to_has_all_memory and
8327 to_has_memory of 'ops'.
8328
8329 2014-02-23 Yao Qi <yao@codesourcery.com>
8330
8331 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8332 (ctf_thread_alive, ctf_get_trace_status): Remove.
8333 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8334 init_tracefile_ops.
8335 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8336 (tfile_has_stack, tfile_has_registers): Remove.
8337 (tfile_thread_alive): Remove.
8338 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8339 init_tracefile_ops.
8340 * tracefile.c (tracefile_has_stack): New function.
8341 (tracefile_has_registers): New function.
8342 (tracefile_thread_alive): New function.
8343 (tracefile_get_trace_status): New function.
8344 (init_tracefile_ops): New function.
8345 * tracefile.h (init_tracefile_ops): Declare.
8346
8347 2014-02-23 Yao Qi <yao@codesourcery.com>
8348
8349 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8350 (O_LARGEFILE): Likewise.
8351 (tfile_ops): Likewise.
8352 (TRACE_HEADER_SIZE): Likewise.
8353 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8354 (cur_data_size): Likewise.
8355 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8356 (tfile_close, tfile_files_info): Likewise.
8357 (tfile_get_trace_status): Likewise.
8358 (tfile_get_tracepoint_status): Likewise.
8359 (tfile_get_traceframe_address): Likewise.
8360 (tfile_trace_find, match_blocktype): Likewise.
8361 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8362 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8363 (tfile_get_trace_state_variable_value): Likewise.
8364 (tfile_has_all_memory, tfile_has_memory): Likewise.
8365 (tfile_has_stack, tfile_has_registers): Likewise.
8366 (tfile_thread_alive, build_traceframe_info): Likewise.
8367 (tfile_traceframe_info, init_tfile_ops): Likewise.
8368 (_initialize_tracepoint): Don't call init_tfile_ops
8369 and add_target_with_completer.
8370 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8371 exec.h, completer.h and filenames.h.
8372 (_initialize_tracefile_tfile): New function.
8373
8374 2014-02-23 Yao Qi <yao@codesourcery.com>
8375
8376 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8377 tracefile-tfile.o.
8378 (HFILES_NO_SRCDIR): Add tracefile.h.
8379 * ctf.c: Include "tracefile.h".
8380 * tracefile.h: New file.
8381 * tracefile.c: New file
8382 * tracefile-tfile.c: New file.
8383 * tracepoint.c: Include "tracefile.h".
8384 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8385 (stop_reason_names): Add const.
8386 (trace_file_writer_xfree): Move it to tracefile.c.
8387 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8388 (trace_save_ctf): Likewise.
8389 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8390 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8391 (tfile_write_header, tfile_write_regblock_type): Likewise.
8392 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8393 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8394 (tfile_write_raw_data, tfile_end): Likewise.
8395 (tfile_trace_file_writer_new): Likewise.
8396 (free_uploaded_tp): Make it extern.
8397 (free_uploaded_tsv): Make it extern.
8398 (_initialize_tracepoint): Move code to register command 'tsave'
8399 to tracefile.c.
8400 * tracepoint.h (stop_reason_names): Declare.
8401 (struct trace_frame_write_ops): Move it to tracefile.h.
8402 (struct trace_file_write_ops): Likewise.
8403 (struct trace_file_writer): Likewise.
8404 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8405
8406 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8407
8408 PR gdb/16594
8409 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8410 process name.
8411 (get_cores_used_by_process): New parameter num_cores, use it.
8412 (linux_xfer_osdata_processes): Pass num_cores to it.
8413 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8414 process name.
8415
8416 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8417
8418 * target.c (memory_xfer_partial): Fix length arg in call to
8419 breakpoint_xfer_memory.
8420
8421 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8422
8423 PR tdep/16397
8424 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8425 number comes after the + or - signs. Adjust length of register
8426 name to be extracted.
8427
8428 2014-02-20 Tom Tromey <tromey@redhat.com>
8429
8430 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8431 (ada_varobj_ops): Mark "extern".
8432
8433 2014-02-20 Tom Tromey <tromey@redhat.com>
8434
8435 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8436
8437 2014-02-20 Doug Evans <xdje42@gmail.com>
8438
8439 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8440 All callers updated.
8441 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8442 All callers updated.
8443 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8444 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8445
8446 2014-02-20 lin zuojian <manjian2006@gmail.com>
8447 Joel Brobecker <brobecker@adacore.com>
8448 Doug Evans <xdje42@gmail.com>
8449
8450 PR symtab/16581
8451 * dwarf2read.c (struct die_info): New member in_process.
8452 (reset_die_in_process): New function.
8453 (process_die): Set it at the start, reset when returning.
8454 (inherit_abstract_dies): Only call process_die if origin_child_die
8455 not already being processed.
8456
8457 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8458
8459 * windows-nat.c (handle_unload_dll): Add function documentation.
8460 (do_initial_windows_stuff): Add comment explaining why we wait
8461 until after inferior initialization has finished before
8462 processing all DLLs.
8463
8464 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8465
8466 * windows-nat.c (get_module_name): Delete.
8467 (windows_get_exec_module_filename): New function, mostly
8468 inspired from get_module_name.
8469 (windows_pid_to_exec_file): Replace call to get_module_name
8470 by call to windows_get_exec_module_filename.
8471
8472 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8473
8474 * windows-nat.c (handle_load_dll): Rewrite this function's
8475 introductory comment. Remove code using get_module_name
8476 to get the DLL's name.
8477
8478 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8479
8480 * windows-nat.c (get_windows_debug_event): Ignore
8481 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8482 if windows_initialization_done == 0.
8483 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8484 Adjust implementation to always load all DLLs.
8485 (do_initial_windows_stuff): Replace call to
8486 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8487
8488 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8489
8490 * windows-nat.c (_initialize_windows_nat): Deprecate the
8491 "dll-symbols" command. Turn the "add-shared-symbol-files"
8492 and "assf" aliases into commands, and deprecate them as well.
8493 * NEWS: Add entry explaining that "dll-symbols" and its two
8494 aliases are now deprecated.
8495
8496 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8497
8498 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8499 new-line in debug string. Remove trailing spaces.
8500
8501 2014-02-19 Stan Shebs <stan@codesourcery.com>
8502
8503 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8504
8505 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8506
8507 * NEWS: Add entry for the new feature
8508 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8509 and class values.
8510
8511 2014-02-19 Stan Shebs <stan@codesourcery.com>
8512
8513 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8514
8515 2014-02-19 Pedro Alves <palves@redhat.com>
8516
8517 * common/ptid.h (struct ptid): Mention that process_stratum
8518 targets should prefer ptid.lwp.
8519
8520 2014-02-19 Pedro Alves <palves@redhat.com>
8521
8522 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8523 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8524 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8525 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8526 store remote thread ids rather than ptid.tid.
8527 (_initialize_remote): Adjust.
8528
8529 2014-02-19 Tom Tromey <tromey@redhat.com>
8530
8531 * target.c (target_get_unwinder): Rewrite.
8532 (target_get_tailcall_unwinder): Rewrite.
8533 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8534 (record_btrace_to_get_tailcall_unwinder): New function.
8535 (init_record_btrace_ops): Update.
8536 * target.h (struct target_ops) <to_get_unwinder,
8537 to_get_tailcall_unwinder>: Now function pointers. Use
8538 TARGET_DEFAULT_RETURN.
8539
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8541
8542 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8543 argument.
8544 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8545
8546 2014-02-19 Tom Tromey <tromey@redhat.com>
8547
8548 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8549 directly.
8550 * target-delegates.c: Rebuild.
8551 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8552 TARGET_DEFAULT_FUNC.
8553 * target.c (default_target_decr_pc_after_break): Rename from
8554 forward_target_decr_pc_after_break. Simplify.
8555 (target_decr_pc_after_break): Rely on delegation.
8556
8557 2014-02-19 Tom Tromey <tromey@redhat.com>
8558
8559 * target.c (update_current_target): Do not INHERIT to_doc or
8560 to_magic. Do not de_fault to_open or to_close.
8561
8562 2014-02-19 Tom Tromey <tromey@redhat.com>
8563
8564 * gcore.h (objfile_find_memory_regions): Declare.
8565 * gcore.c (objfile_find_memory_regions): No longer static. Add
8566 "self" argument.
8567 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8568 * exec.c: Include gcore.h.
8569 (exec_set_find_memory_regions): Remove.
8570 (exec_find_memory_regions): Remove.
8571 (exec_do_find_memory_regions): Remove.
8572 (init_exec_ops): Update.
8573 * defs.h (exec_set_find_memory_regions): Remove.
8574
8575 2014-02-19 Tom Tromey <tromey@redhat.com>
8576
8577 * target-delegates.c: Rebuild.
8578 * target.h (struct target_ops) <to_extra_thread_info,
8579 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8580 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8581 not 0, in TARGET_DEFAULT_RETURN.
8582
8583 2014-02-19 Tom Tromey <tromey@redhat.com>
8584
8585 * target.c (complete_target_initialization): Remove casts. Use
8586 return_zero_has_execution.
8587 (return_zero): Add "ignore" argument.
8588 (return_zero_has_execution): New function.
8589 (init_dummy_target): Remove casts. Use
8590 return_zero_has_execution.
8591
8592 2014-02-19 Tom Tromey <tromey@redhat.com>
8593
8594 * target.c (update_current_target): Update comments. Do not
8595 INHERIT to_stratum.
8596
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8598
8599 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8600 needed.
8601 * corelow.c (core_read_description): Delegate when needed.
8602 * remote.c (remote_read_description): Delegate when needed.
8603 * target-delegates.c: Rebuild.
8604 * target.c (target_read_description): Rewrite.
8605 * target.h (struct target_ops) <to_read_description>: Update
8606 comment. Use TARGET_DEFAULT_RETURN.
8607
8608 2014-02-19 Tom Tromey <tromey@redhat.com>
8609
8610 * target-delegates.c: Rebuild.
8611 * target.c (update_current_target): Don't inherit or default
8612 to_can_run.
8613 (find_default_run_target): Check against delegate_can_run.
8614 * target.h (struct target_ops) <to_can_run>: Use
8615 TARGET_DEFAULT_RETURN.
8616
8617 2014-02-19 Tom Tromey <tromey@redhat.com>
8618
8619 * target-delegates.c: Rebuild.
8620 * target.c (target_disconnect): Unconditionally delegate.
8621 * target.h (struct target_ops) <to_disconnect>: Use
8622 TARGET_DEFAULT_NORETURN.
8623
8624 2014-02-19 Tom Tromey <tromey@redhat.com>
8625
8626 * record.c (record_stop): Unconditionally delegate.
8627 * target-delegates.c: Rebuild.
8628 * target.c (target_stop_recording): Unconditionally delegate.
8629 * target.h (struct target_ops) <to_stop_recording>: Use
8630 TARGET_DEFAULT_IGNORE.
8631
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8633
8634 * target-delegates.c: Rebuild.
8635 * target.c (target_enable_btrace): Unconditionally delegate.
8636 * target.h (struct target_ops) <to_enable_btrace>: Use
8637 TARGET_DEFAULT_NORETURN.
8638
8639 2014-02-19 Tom Tromey <tromey@redhat.com>
8640
8641 * target-delegates.c: Rebuild.
8642 * target.c (target_read_btrace): Unconditionally delegate.
8643 * target.h (struct target_ops) <to_read_btrace>: Use
8644 TARGET_DEFAULT_NORETURN.
8645
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8647
8648 * target-delegates.c: Rebuild.
8649 * target.c (target_teardown_btrace): Unconditionally delegate.
8650 * target.h (struct target_ops) <to_teardown_btrace>: Use
8651 TARGET_DEFAULT_NORETURN.
8652
8653 2014-02-19 Tom Tromey <tromey@redhat.com>
8654
8655 * target-delegates.c: Rebuild.
8656 * target.c (target_disable_btrace): Unconditionally delegate.
8657 * target.h (struct target_ops) <to_disable_btrace>: Use
8658 TARGET_DEFAULT_NORETURN.
8659
8660 2014-02-19 Tom Tromey <tromey@redhat.com>
8661
8662 * target-delegates.c: Rebuild.
8663 * target.c (default_search_memory): New function.
8664 (simple_search_memory): Update comment.
8665 (target_search_memory): Unconditionally delegate.
8666 * target.h (struct target_ops) <to_search_memory>: Use
8667 TARGET_DEFAULT_FUNC.
8668
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8670
8671 * auxv.c (default_auxv_parse): No longer static.
8672 (target_auxv_parse): Unconditionally delegate.
8673 * auxv.h (default_auxv_parse): Declare.
8674 * target-delegates.c: Rebuild.
8675 * target.c: Include auxv.h.
8676 * target.h (struct target_ops) <to_auxv_parse>: Use
8677 TARGET_DEFAULT_FUNC.
8678
8679 2014-02-19 Tom Tromey <tromey@redhat.com>
8680
8681 * target-delegates.c: Rebuild.
8682 * target.c (target_memory_map): Unconditionally delegate.
8683 * target.h (struct target_ops) <to_memory_map>: Use
8684 TARGET_DEFAULT_RETURN.
8685
8686 2014-02-19 Tom Tromey <tromey@redhat.com>
8687
8688 * target-delegates.c: Rebuild.
8689 * target.c (target_thread_alive): Unconditionally delegate.
8690 * target.h (struct target_ops) <to_thread_alive>: Use
8691 TARGET_DEFAULT_RETURN.
8692
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8694
8695 * target-delegates.c: Rebuild.
8696 * target.c (target_save_record): Unconditionally delegate.
8697 * target.h (struct target_ops) <to_save_record>: Use
8698 TARGET_DEFAULT_NORETURN.
8699
8700 2014-02-19 Tom Tromey <tromey@redhat.com>
8701
8702 * target-delegates.c: Rebuild.
8703 * target.c (target_delete_record): Unconditionally delegate.
8704 * target.h (struct target_ops) <to_delete_record>: Use
8705 TARGET_DEFAULT_NORETURN.
8706
8707 2014-02-19 Tom Tromey <tromey@redhat.com>
8708
8709 * target-delegates.c: Rebuild.
8710 * target.c (target_record_is_replaying): Unconditionally
8711 delegate.
8712 * target.h (struct target_ops) <to_record_is_replaying>: Use
8713 TARGET_DEFAULT_RETURN.
8714
8715 2014-02-19 Tom Tromey <tromey@redhat.com>
8716
8717 * target-delegates.c: Rebuild.
8718 * target.c (target_goto_record_begin): Unconditionally delegate.
8719 * target.h (struct target_ops) <to_goto_record_begin>: Use
8720 TARGET_DEFAULT_NORETURN.
8721
8722 2014-02-19 Tom Tromey <tromey@redhat.com>
8723
8724 * target-delegates.c: Rebuild.
8725 * target.c (target_goto_record_end): Unconditionally delegate.
8726 * target.h (struct target_ops) <to_goto_record_end>: Use
8727 TARGET_DEFAULT_NORETURN.
8728
8729 2014-02-19 Tom Tromey <tromey@redhat.com>
8730
8731 * target-delegates.c: Rebuild.
8732 * target.c (target_goto_record): Unconditionally delegate.
8733 * target.h (struct target_ops) <to_goto_record>: Use
8734 TARGET_DEFAULT_NORETURN.
8735
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8737
8738 * target-delegates.c: Rebuild.
8739 * target.c (target_insn_history): Unconditionally delegate.
8740 * target.h (struct target_ops) <to_insn_history>: Use
8741 TARGET_DEFAULT_NORETURN.
8742
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8744
8745 * target-delegates.c: Rebuild.
8746 * target.c (target_insn_history_from): Unconditionally delegate.
8747 * target.h (struct target_ops) <to_insn_history_from>: Use
8748 TARGET_DEFAULT_NORETURN.
8749
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8751
8752 * target-delegates.c: Rebuild.
8753 * target.c (target_insn_history_range): Unconditionally delegate.
8754 * target.h (struct target_ops) <to_insn_history_range>: Use
8755 TARGET_DEFAULT_NORETURN.
8756
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target-delegates.c: Rebuild.
8760 * target.c (target_call_history): Unconditionally delegate.
8761 * target.h (struct target_ops) <to_call_history>: Use
8762 TARGET_DEFAULT_NORETURN.
8763
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8765
8766 * target-delegates.c: Rebuild.
8767 * target.c (target_call_history_from): Unconditionally delegate.
8768 * target.h (struct target_ops) <to_call_history_from>: Use
8769 TARGET_DEFAULT_NORETURN.
8770
8771 2014-02-19 Tom Tromey <tromey@redhat.com>
8772
8773 * target-delegates.c: Rebuild.
8774 * target.c (target_call_history_range): Unconditionally delegate.
8775 * target.h (struct target_ops) <to_call_history_range>: Use
8776 TARGET_DEFAULT_NORETURN.
8777
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8779
8780 * target-delegates.c: Rebuild.
8781 * target.c (target_verify_memory): Unconditionally delegate.
8782 * target.h (struct target_ops) <to_verify_memory>: Use
8783 TARGET_DEFAULT_NORETURN.
8784
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8786
8787 * target-delegates.c: Rebuild.
8788 * target.c (target_core_of_thread): Unconditionally delegate.
8789 * target.h (struct target_ops) <to_core_of_thread>: Use
8790 TARGET_DEFAULT_RETURN.
8791
8792 2014-02-19 Tom Tromey <tromey@redhat.com>
8793
8794 * target-delegates.c: Rebuild.
8795 * target.c (target_flash_done): Unconditionally delegate.
8796 * target.h (struct target_ops) <to_flash_done>: Use
8797 TARGET_DEFAULT_NORETURN.
8798
8799 2014-02-19 Tom Tromey <tromey@redhat.com>
8800
8801 * target-delegates.c: Rebuild.
8802 * target.c (target_flash_erase): Unconditionally delegate.
8803 * target.h (struct target_ops) <to_flash_erase>: Use
8804 TARGET_DEFAULT_NORETURN.
8805
8806 2014-02-19 Tom Tromey <tromey@redhat.com>
8807
8808 * target-delegates.c: Rebuild.
8809 * target.c (target_get_section_table): Unconditionally delegate.
8810 * target.h (struct target_ops) <to_get_section_table>: Use
8811 TARGET_DEFAULT_RETURN.
8812
8813 2014-02-19 Tom Tromey <tromey@redhat.com>
8814
8815 * target-delegates.c: Rebuild.
8816 * target.c (target_pid_to_str): Unconditionally delegate.
8817 (init_dummy_target): Don't initialize to_pid_to_str.
8818 (default_pid_to_str): Rename from dummy_pid_to_str.
8819 * target.h (struct target_ops) <to_pid_to_str>: Use
8820 TARGET_DEFAULT_FUNC.
8821
8822 2014-02-19 Tom Tromey <tromey@redhat.com>
8823
8824 * target-delegates.c: Rebuild.
8825 * target.c (target_find_new_threads): Unconditionally delegate.
8826 * target.h (struct target_ops) <to_find_new_threads>: Use
8827 TARGET_DEFAULT_RETURN.
8828
8829 2014-02-19 Tom Tromey <tromey@redhat.com>
8830
8831 * target-delegates.c: Rebuild.
8832 * target.c (target_program_signals): Unconditionally delegate.
8833 * target.h (struct target_ops) <to_program_signals>: Use
8834 TARGET_DEFAULT_IGNORE.
8835
8836 2014-02-19 Tom Tromey <tromey@redhat.com>
8837
8838 * target-delegates.c: Rebuild.
8839 * target.c (target_pass_signals): Unconditionally delegate.
8840 * target.h (struct target_ops) <to_pass_signals>: Use
8841 TARGET_DEFAULT_IGNORE.
8842
8843 2014-02-19 Tom Tromey <tromey@redhat.com>
8844
8845 * target-delegates.c: Rebuild.
8846 * target.c (default_mourn_inferior): New function.
8847 (target_mourn_inferior): Unconditionally delegate.
8848 * target.h (struct target_ops) <to_mourn_inferior>: Use
8849 TARGET_DEFAULT_FUNC.
8850
8851 2014-02-19 Tom Tromey <tromey@redhat.com>
8852
8853 * target-delegates.c: Rebuild.
8854 * target.c (default_follow_fork): New function.
8855 (target_follow_fork): Unconditionally delegate.
8856 * target.h (struct target_ops) <to_follow_fork>: Use
8857 TARGET_DEFAULT_FUNC.
8858
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8860
8861 * target-delegates.c: Rebuild.
8862 * target.c (target_kill): Unconditionally delegate.
8863 * target.h (struct target_ops) <to_kill>: Use
8864 TARGET_DEFAULT_NORETURN.
8865
8866 2014-02-19 Tom Tromey <tromey@redhat.com>
8867
8868 * target-delegates.c: Rebuild.
8869 * target.c (target_masked_watch_num_registers): Unconditionally
8870 delegate.
8871 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8872 Use TARGET_DEFAULT_RETURN.
8873
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8875
8876 * target-delegates.c: Rebuild.
8877 * target.c (target_remove_mask_watchpoint): Unconditionally
8878 delegate.
8879 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8880 TARGET_DEFAULT_RETURN.
8881
8882 2014-02-19 Tom Tromey <tromey@redhat.com>
8883
8884 * target-delegates.c: Rebuild.
8885 * target.c (target_insert_mask_watchpoint): Unconditionally
8886 delegate.
8887 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8888 TARGET_DEFAULT_RETURN.
8889
8890 2014-02-19 Tom Tromey <tromey@redhat.com>
8891
8892 * target-delegates.c: Rebuild.
8893 * target.c (target_ranged_break_num_registers): Unconditionally
8894 delegate.
8895 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8896 Use TARGET_DEFAULT_RETURN.
8897
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8899
8900 * target-delegates.c: Rebuild.
8901 * target.c (target_fetch_registers): Unconditionally delegate.
8902 * target.h (struct target_ops) <to_fetch_registers>: Use
8903 TARGET_DEFAULT_NORETURN.
8904
8905 2014-02-19 Tom Tromey <tromey@redhat.com>
8906
8907 * target-delegates.c: Rebuild.
8908 * target.c (update_current_target): Don't inherit or default
8909 to_stop.
8910 * target.h (struct target_ops) <to_stop>: Use
8911 TARGET_DEFAULT_IGNORE.
8912
8913 2014-02-19 Tom Tromey <tromey@redhat.com>
8914
8915 * target-delegates.c: Rebuild.
8916 * target.c (update_current_target): Don't inherit or default
8917 to_can_run_breakpoint_commands.
8918 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8919 Use TARGET_DEFAULT_RETURN.
8920
8921 2014-02-19 Tom Tromey <tromey@redhat.com>
8922
8923 * target-delegates.c: Rebuild.
8924 * target.c (update_current_target): Don't inherit or default
8925 to_supports_evaluation_of_breakpoint_conditions.
8926 * target.h (struct target_ops)
8927 <to_supports_evaluation_of_breakpoint_conditions>: Use
8928 TARGET_DEFAULT_RETURN.
8929
8930 2014-02-19 Tom Tromey <tromey@redhat.com>
8931
8932 * target-delegates.c: Rebuild.
8933 * target.c (update_current_target): Don't inherit or default
8934 to_augmented_libraries_svr4_read.
8935 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8936 Use TARGET_DEFAULT_RETURN.
8937
8938 2014-02-19 Tom Tromey <tromey@redhat.com>
8939
8940 * target-delegates.c: Rebuild.
8941 * target.c (update_current_target): Don't inherit or default
8942 to_can_use_agent.
8943 * target.h (struct target_ops) <to_can_use_agent>: Use
8944 TARGET_DEFAULT_RETURN.
8945
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8947
8948 * target-delegates.c: Rebuild.
8949 * target.c (update_current_target): Don't inherit or default
8950 to_use_agent.
8951 * target.h (struct target_ops) <to_use_agent>: Use
8952 TARGET_DEFAULT_NORETURN.
8953
8954 2014-02-19 Tom Tromey <tromey@redhat.com>
8955
8956 * target-delegates.c: Rebuild.
8957 * target.c (update_current_target): Don't inherit or default
8958 to_traceframe_info.
8959 (return_null): Remove.
8960 * target.h (struct target_ops) <to_traceframe_info>: Use
8961 TARGET_DEFAULT_RETURN.
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_static_tracepoint_markers_by_strid.
8968 * target.h (struct target_ops)
8969 <to_static_tracepoint_markers_by_strid>: Use
8970 TARGET_DEFAULT_NORETURN.
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_static_tracepoint_marker_at.
8977 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8978 Use TARGET_DEFAULT_RETURN.
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_set_permissions.
8985 * target.h (struct target_ops) <to_set_permissions>: Use
8986 TARGET_DEFAULT_IGNORE.
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_get_tib_address.
8993 * target.h (struct target_ops) <to_get_tib_address>: Use
8994 TARGET_DEFAULT_NORETURN.
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_set_trace_notes.
9001 * target.h (struct target_ops) <to_set_trace_notes>: Use
9002 TARGET_DEFAULT_RETURN.
9003
9004 2014-02-19 Tom Tromey <tromey@redhat.com>
9005
9006 * target-delegates.c: Rebuild.
9007 * target.c (update_current_target): Don't initialize
9008 to_set_trace_buffer_size.
9009 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9010 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
9017 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9018 TARGET_DEFAULT_IGNORE.
9019
9020 2014-02-19 Tom Tromey <tromey@redhat.com>
9021
9022 * target-delegates.c: Rebuild.
9023 * target.c (update_current_target): Don't inherit or default
9024 to_set_disconnected_tracing.
9025 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9026 TARGET_DEFAULT_IGNORE.
9027
9028 2014-02-19 Tom Tromey <tromey@redhat.com>
9029
9030 * target-delegates.c: Rebuild.
9031 * target.c (update_current_target): Don't inherit or default
9032 to_get_min_fast_tracepoint_insn_len.
9033 (return_minus_one): Remove.
9034 * target.h (struct target_ops)
9035 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9036
9037 2014-02-19 Tom Tromey <tromey@redhat.com>
9038
9039 * target-delegates.c: Rebuild.
9040 * target.c (update_current_target): Don't inherit or default
9041 to_get_raw_trace_data.
9042 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9043 TARGET_DEFAULT_NORETURN.
9044
9045 2014-02-19 Tom Tromey <tromey@redhat.com>
9046
9047 * target-delegates.c: Rebuild.
9048 * target.c (update_current_target): Don't inherit or default
9049 to_upload_trace_state_variables.
9050 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9051 Use TARGET_DEFAULT_RETURN.
9052
9053 2014-02-19 Tom Tromey <tromey@redhat.com>
9054
9055 * target-delegates.c: Rebuild.
9056 * target.c (update_current_target): Don't inherit or default
9057 to_upload_tracepoints.
9058 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9059 TARGET_DEFAULT_RETURN.
9060
9061 2014-02-19 Tom Tromey <tromey@redhat.com>
9062
9063 * target-delegates.c: Rebuild.
9064 * target.c (update_current_target): Don't inherit or default
9065 to_save_trace_data.
9066 * target.h (struct target_ops) <to_save_trace_data>: Use
9067 TARGET_DEFAULT_NORETURN.
9068
9069 2014-02-19 Tom Tromey <tromey@redhat.com>
9070
9071 * target-delegates.c: Rebuild.
9072 * target.c (update_current_target): Don't inherit or default
9073 to_get_trace_state_variable_value.
9074 * target.h (struct target_ops)
9075 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9076
9077 2014-02-19 Tom Tromey <tromey@redhat.com>
9078
9079 * target-delegates.c: Rebuild.
9080 * target.c (update_current_target): Don't inherit or default
9081 to_trace_find.
9082 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9083
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9085
9086 * target-delegates.c: Rebuild.
9087 * target.c (update_current_target): Don't inherit or default
9088 to_trace_stop.
9089 * target.h (struct target_ops) <to_trace_stop>: Use
9090 TARGET_DEFAULT_NORETURN.
9091
9092 2014-02-19 Tom Tromey <tromey@redhat.com>
9093
9094 * target-delegates.c: Rebuild.
9095 * target.c (update_current_target): Don't inherit or default
9096 to_get_tracepoint_status.
9097 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9098 TARGET_DEFAULT_NORETURN.
9099
9100 2014-02-19 Tom Tromey <tromey@redhat.com>
9101
9102 * target-delegates.c: Rebuild.
9103 * target.c (update_current_target): Don't inherit or default
9104 to_get_trace_status.
9105 * target.h (struct target_ops) <to_get_trace_status>: Use
9106 TARGET_DEFAULT_RETURN.
9107
9108 2014-02-19 Tom Tromey <tromey@redhat.com>
9109
9110 * target-delegates.c: Rebuild.
9111 * target.c (update_current_target): Don't inherit or default
9112 to_trace_start.
9113 * target.h (struct target_ops) <to_trace_start>: Use
9114 TARGET_DEFAULT_NORETURN.
9115
9116 2014-02-19 Tom Tromey <tromey@redhat.com>
9117
9118 * target-delegates.c: Rebuild.
9119 * target.c (update_current_target): Don't inherit or default
9120 to_trace_set_readonly_regions.
9121 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9122 Use TARGET_DEFAULT_NORETURN.
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_disable_tracepoint.
9129 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9130 TARGET_DEFAULT_NORETURN.
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_enable_tracepoint.
9137 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9138 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
9145 * target.h (struct target_ops) <to_download_trace_state_variable>:
9146 Use TARGET_DEFAULT_NORETURN.
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_can_download_tracepoint.
9153 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9154 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
9161 * target.h (struct target_ops) <to_download_tracepoint>: Use
9162 TARGET_DEFAULT_NORETURN.
9163
9164 2014-02-19 Tom Tromey <tromey@redhat.com>
9165
9166 * target-delegates.c: Rebuild.
9167 * target.c (update_current_target): Don't inherit or default
9168 to_trace_init.
9169 * target.h (struct target_ops) <to_trace_init>: Use
9170 TARGET_DEFAULT_RETURN.
9171
9172 2014-02-19 Tom Tromey <tromey@redhat.com>
9173
9174 * target-delegates.c: Rebuild.
9175 * target.c (update_current_target): Don't inherit or default
9176 to_supports_string_tracing.
9177 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9178 TARGET_DEFAULT_RETURN.
9179
9180 2014-02-19 Tom Tromey <tromey@redhat.com>
9181
9182 * target-delegates.c: Rebuild.
9183 * target.c (update_current_target): Don't inherit or default
9184 to_supports_enable_disable_tracepoint.
9185 * target.h (struct target_ops)
9186 <to_supports_enable_disable_tracepoint>: Use
9187 TARGET_DEFAULT_RETURN.
9188
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9190
9191 * target-delegates.c: Rebuild.
9192 * target.c (update_current_target): Don't inherit or default
9193 to_supports_multi_process.
9194 * target.h (struct target_ops) <to_supports_multi_process>: Use
9195 TARGET_DEFAULT_RETURN.
9196
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9198
9199 * target-delegates.c: Rebuild.
9200 * target.c (update_current_target): Don't inherit or default
9201 to_get_ada_task_ptid.
9202 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9203 TARGET_DEFAULT_FUNC.
9204
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9206
9207 * target-delegates.c: Rebuild.
9208 * target.c (update_current_target): Don't inherit or default
9209 to_thread_architecture.
9210 * target.h (struct target_ops) <to_thread_architecture>: Use
9211 TARGET_DEFAULT_FUNC.
9212
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9214
9215 * target-delegates.c: Rebuild.
9216 * target.c (update_current_target): Don't inherit or default
9217 to_execution_direction.
9218 * target.h (struct target_ops) <to_execution_direction>: Use
9219 TARGET_DEFAULT_FUNC.
9220
9221 2014-02-19 Tom Tromey <tromey@redhat.com>
9222
9223 * target-delegates.c: Rebuild.
9224 * target.c (update_current_target): Don't inherit or default
9225 to_can_execute_reverse.
9226 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9227 TARGET_DEFAULT_RETURN.
9228 (target_can_execute_reverse): Unconditionally delegate.
9229
9230 2014-02-19 Tom Tromey <tromey@redhat.com>
9231
9232 * target-delegates.c: Rebuild.
9233 * target.c (update_current_target): Don't inherit or default
9234 to_goto_bookmark.
9235 (dummy_goto_bookmark): Remove.
9236 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9237 * target.h (struct target_ops) <to_goto_bookmark>: Use
9238 TARGET_DEFAULT_NORETURN.
9239
9240 2014-02-19 Tom Tromey <tromey@redhat.com>
9241
9242 * target-delegates.c: Rebuild.
9243 * target.c (update_current_target): Don't inherit or default
9244 to_get_bookmark.
9245 (dummy_get_bookmark): Remove.
9246 (init_dummy_target): Don't inherit or default to_get_bookmark.
9247 * target.h (struct target_ops) <to_get_bookmark>: Use
9248 TARGET_DEFAULT_NORETURN
9249
9250 2014-02-19 Tom Tromey <tromey@redhat.com>
9251
9252 * target-delegates.c: Rebuild.
9253 * target.c (update_current_target): Don't inherit or default
9254 to_make_corefile_notes.
9255 (init_dummy_target): Don't initialize to_make_corefile_notes.
9256 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9257 TARGET_DEFAULT_FUNC.
9258
9259 2014-02-19 Tom Tromey <tromey@redhat.com>
9260
9261 * target-delegates.c: Rebuild.
9262 * target.c (update_current_target): Don't inherit or default
9263 to_find_memory_regions.
9264 (init_dummy_target): Don't initialize to_find_memory_regions.
9265 * target.h (struct target_ops) <to_find_memory_regions>: Use
9266 TARGET_DEFAULT_FUNC.
9267
9268 2014-02-19 Tom Tromey <tromey@redhat.com>
9269
9270 * target-delegates.c: Rebuild.
9271 * target.c (update_current_target): Don't inherit or default
9272 to_log_command.
9273 * target.h (struct target_ops) <to_log_command>: Use
9274 TARGET_DEFAULT_IGNORE.
9275 (target_log_command): Unconditionally delegate.
9276
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9278
9279 * target-delegates.c: Rebuild.
9280 * target.c (update_current_target): Don't inherit or default
9281 to_pid_to_exec_file.
9282 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9283 TARGET_DEFAULT_RETURN.
9284
9285 2014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * target-delegates.c: Rebuild.
9288 * target.c (update_current_target): Don't inherit or default
9289 to_thread_name.
9290 (target_thread_name): Unconditionally delegate.
9291 * target.h (struct target_ops) <to_thread_name>: 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_extra_thread_info.
9299 * target.h (struct target_ops) <to_extra_thread_info>: 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_has_exited.
9307 * target.h (struct target_ops) <to_has_exited>: Use
9308 TARGET_DEFAULT_RETURN..
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_set_syscall_catchpoint.
9315 (return_one): Remove.
9316 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9317 TARGET_DEFAULT_RETURN.
9318
9319 2014-02-19 Tom Tromey <tromey@redhat.com>
9320
9321 * target-delegates.c: Rebuild.
9322 * target.c (update_current_target): Don't inherit or default
9323 to_insert_exec_catchpoint.
9324 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9325 TARGET_DEFAULT_RETURN.
9326
9327 2014-01-08 Tom Tromey <tromey@redhat.com>
9328
9329 * target-delegates.c: Rebuild.
9330 * target.c (update_current_target): Don't inherit or default
9331 to_insert_exec_catchpoint.
9332 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9333 TARGET_DEFAULT_RETURN.
9334
9335 2014-02-19 Tom Tromey <tromey@redhat.com>
9336
9337 * target-delegates.c: Rebuild.
9338 * target.c (update_current_target): Don't inherit or default
9339 to_remove_vfork_catchpoint.
9340 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9341 TARGET_DEFAULT_RETURN.
9342
9343 2014-02-19 Tom Tromey <tromey@redhat.com>
9344
9345 * target-delegates.c: Rebuild.
9346 * target.c (update_current_target): Don't inherit or default
9347 to_insert_vfork_catchpoint.
9348 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9349 TARGET_DEFAULT_RETURN.
9350
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9352
9353 * target-delegates.c: Rebuild.
9354 * target.c (update_current_target): Don't inherit or default
9355 to_remove_fork_catchpoint.
9356 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9357 TARGET_DEFAULT_RETURN.
9358
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9360
9361 * target-delegates.c: Rebuild.
9362 * target.c (update_current_target): Don't inherit or default
9363 to_insert_fork_catchpoint.
9364 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9365 TARGET_DEFAULT_RETURN.
9366
9367 2014-02-19 Tom Tromey <tromey@redhat.com>
9368
9369 * target-delegates.c: Rebuild.
9370 * target.c (update_current_target): Don't inherit or default
9371 to_post_startup_inferior.
9372 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9373 TARGET_DEFAULT_IGNORE.
9374
9375 2014-02-19 Tom Tromey <tromey@redhat.com>
9376
9377 * target-delegates.c: Rebuild.
9378 * target.c (update_current_target): Don't inherit or default
9379 to_load.
9380 * target.h (struct target_ops) <to_load>: Use
9381 TARGET_DEFAULT_NORETURN.
9382
9383 2014-02-19 Tom Tromey <tromey@redhat.com>
9384
9385 * target-delegates.c: Rebuild.
9386 * target.c (update_current_target): Don't inherit or default
9387 to_terminal_info.
9388 * target.h (struct target_ops) <to_terminal_info>: Use
9389 TARGET_DEFAULT_FUNC.
9390
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9392
9393 * target-delegates.c: Rebuild.
9394 * target.c (update_current_target): Don't inherit or default
9395 to_terminal_save_ours.
9396 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9397 TARGET_DEFAULT_IGNORE.
9398
9399 2014-02-19 Tom Tromey <tromey@redhat.com>
9400
9401 * target-delegates.c: Rebuild.
9402 * target.c (update_current_target): Don't inherit or default
9403 to_terminal_ours.
9404 * target.h (struct target_ops) <to_terminal_ours>: Use
9405 TARGET_DEFAULT_IGNORE.
9406
9407 2014-02-19 Tom Tromey <tromey@redhat.com>
9408
9409 * target-delegates.c: Rebuild.
9410 * target.c (update_current_target): Don't inherit or default
9411 to_terminal_ours_for_output.
9412 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9413 TARGET_DEFAULT_IGNORE.
9414
9415 2014-02-19 Tom Tromey <tromey@redhat.com>
9416
9417 * target-delegates.c: Rebuild.
9418 * target.c (update_current_target): Don't inherit or default
9419 to_terminal_inferior.
9420 * target.h (struct target_ops) <to_terminal_inferior>: Use
9421 TARGET_DEFAULT_IGNORE.
9422
9423 2014-02-19 Tom Tromey <tromey@redhat.com>
9424
9425 * target-delegates.c: Rebuild.
9426 * target.c (update_current_target): Don't inherit or default
9427 to_terminal_init.
9428 * target.h (struct target_ops) <to_terminal_init>: Use
9429 TARGET_DEFAULT_IGNORE.
9430
9431 2014-02-19 Tom Tromey <tromey@redhat.com>
9432
9433 * target-delegates.c: Rebuild.
9434 * target.c (update_current_target): Don't inherit or default
9435 to_can_accel_watchpoint_condition.
9436 * target.h (struct target_ops)
9437 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9438
9439 2014-02-19 Tom Tromey <tromey@redhat.com>
9440
9441 * target-delegates.c: Rebuild.
9442 * target.c (update_current_target): Don't inherit or default
9443 to_region_ok_for_hw_watchpoint.
9444 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9445 Use TARGET_DEFAULT_FUNC.
9446
9447 2014-02-19 Tom Tromey <tromey@redhat.com>
9448
9449 * target-delegates.c: Rebuild.
9450 * target.c (update_current_target): Don't inherit or default
9451 to_watchpoint_addr_within_range.
9452 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9453 Use TARGET_DEFAULT_FUNC.
9454
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9456
9457 * target-delegates.c: Rebuild.
9458 * target.c (update_current_target): Don't inherit or default
9459 to_remove_watchpoint.
9460 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9461 TARGET_DEFAULT_NORETURN.
9462
9463 2014-02-19 Tom Tromey <tromey@redhat.com>
9464
9465 * target-delegates.c: Rebuild.
9466 * target.c (update_current_target): Don't inherit or default
9467 to_insert_watchpoint.
9468 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9469 TARGET_DEFAULT_RETURN.
9470
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9472
9473 * target-delegates.c: Rebuild.
9474 * target.c (update_current_target): Don't inherit or default
9475 to_remove_hw_breakpoint.
9476 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9477 TARGET_DEFAULT_RETURN.
9478
9479 2014-02-19 Tom Tromey <tromey@redhat.com>
9480
9481 * target-delegates.c: Rebuild.
9482 * target.c (update_current_target): Don't inherit or default
9483 to_insert_hw_breakpoint.
9484 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9485 TARGET_DEFAULT_RETURN.
9486
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9488
9489 * target-delegates.c: Rebuild.
9490 * target.c (update_current_target): Don't inherit or default
9491 to_can_use_hw_breakpoint.
9492 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9493 TARGET_DEFAULT_RETURN.
9494
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9496
9497 * target-delegates.c: Rebuild.
9498 * target.c (update_current_target): Don't inherit or default
9499 to_files_info.
9500 * target.h (struct target_ops) <to_files_info>: Use
9501 TARGET_DEFAULT_IGNORE.
9502
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9504
9505 * target-delegates.c: Rebuild.
9506 * target.c (update_current_target): Don't inherit or default
9507 to_store.
9508 * target.h (struct target_ops) <to_store>: Use
9509 TARGET_DEFAULT_NORETURN.
9510
9511 2014-02-19 Tom Tromey <tromey@redhat.com>
9512
9513 * target-delegates.c: Rebuild.
9514 * target.c (update_current_target): Don't inherit or default
9515 to_post_attach.
9516 * target.h (struct target_ops) <to_post_attach>: Use
9517 TARGET_DEFAULT_IGNORE.
9518
9519 2014-02-19 Tom Tromey <tromey@redhat.com>
9520
9521 * target-delegates.c: Rebuild.
9522 * target.c (update_current_target): Don't inherit or default
9523 to_rcmd.
9524 (default_rcmd): New function.
9525 (do_monitor_command): Unconditionally delegate.
9526 * target.h (struct target_ops) <to_rmcd>: Use
9527 TARGET_DEFAULT_FUNC.
9528
9529 2014-02-19 Tom Tromey <tromey@redhat.com>
9530
9531 * target-delegates.c: Rebuild.
9532 * target.c (init_dummy_target): Don't initialize to_attach.
9533 (target_attach): Unconditionally delegate.
9534 * target.h (struct target_ops) <to_attach>: Use
9535 TARGET_DEFAULT_FUNC.
9536
9537 2014-02-19 Tom Tromey <tromey@redhat.com>
9538
9539 * target-delegates.c: Rebuild.
9540 * target.c (target_detach): Unconditionally delegate.
9541 (init_dummy_target): Don't initialize to_detach.
9542 * target.h (struct target_ops) <to_detach>: Use
9543 TARGET_DEFAULT_IGNORE.
9544
9545 2014-02-19 Tom Tromey <tromey@redhat.com>
9546
9547 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9548 Add argument.
9549 (target_augmented_libraries_svr4_read): Add argument.
9550 * target.c (update_current_target): Update.
9551 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9552 argument.
9553
9554 2014-02-19 Tom Tromey <tromey@redhat.com>
9555
9556 * target.h (struct target_ops) <to_call_history_range>: Add
9557 argument.
9558 * target.c (target_call_history_range): Add argument.
9559 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9560 argument.
9561 (record_btrace_call_history_from): Update.
9562
9563 2014-02-19 Tom Tromey <tromey@redhat.com>
9564
9565 * target.h (struct target_ops) <to_call_history_from>: Add
9566 argument.
9567 * target.c (target_call_history_from): Add argument.
9568 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9569 argument.
9570
9571 2014-02-19 Tom Tromey <tromey@redhat.com>
9572
9573 * target.h (struct target_ops) <to_call_history>: Add argument.
9574 * target.c (target_call_history): Add argument.
9575 * record-btrace.c (record_btrace_call_history): Add 'self'
9576 argument.
9577
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9579
9580 * target.h (struct target_ops) <to_insn_history_range>: Add
9581 argument.
9582 * target.c (target_insn_history_range): Add argument.
9583 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9584 argument.
9585 (record_btrace_insn_history_from): Update.
9586
9587 2014-02-19 Tom Tromey <tromey@redhat.com>
9588
9589 * target.h (struct target_ops) <to_insn_history_from>: Add
9590 argument.
9591 * target.c (target_insn_history_from): Add argument.
9592 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9593 argument.
9594
9595 2014-02-19 Tom Tromey <tromey@redhat.com>
9596
9597 * target.h (struct target_ops) <to_insn_history>: Add argument.
9598 * target.c (target_insn_history): Add argument.
9599 * record-btrace.c (record_btrace_insn_history): Add 'self'
9600 argument.
9601
9602 2014-02-19 Tom Tromey <tromey@redhat.com>
9603
9604 * target.h (struct target_ops) <to_goto_record>: Add argument.
9605 * target.c (target_goto_record): Add argument.
9606 * record-full.c (record_full_goto): Add 'self' argument.
9607 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9608
9609 2014-02-19 Tom Tromey <tromey@redhat.com>
9610
9611 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9612 * target.c (target_goto_record_end): Add argument.
9613 * record-full.c (record_full_goto_end): Add 'self' argument.
9614 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9615
9616 2014-02-19 Tom Tromey <tromey@redhat.com>
9617
9618 * target.h (struct target_ops) <to_goto_record_begin>: Add
9619 argument.
9620 * target.c (target_goto_record_begin): Add argument.
9621 * record-full.c (record_full_goto_begin): Add 'self' argument.
9622 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9623 argument.
9624
9625 2014-02-19 Tom Tromey <tromey@redhat.com>
9626
9627 * target.h (struct target_ops) <to_record_is_replaying>: Add
9628 argument.
9629 * target.c (target_record_is_replaying): Add argument.
9630 * record-full.c (record_full_is_replaying): Add 'self' argument.
9631 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9632 argument.
9633 (record_btrace_xfer_partial, record_btrace_store_registers)
9634 (record_btrace_prepare_to_store, record_btrace_resume)
9635 (record_btrace_wait, record_btrace_decr_pc_after_break)
9636 (record_btrace_find_new_threads, record_btrace_thread_alive):
9637 Update.
9638
9639 2014-02-19 Tom Tromey <tromey@redhat.com>
9640
9641 * target.h (struct target_ops) <to_delete_record>: Add argument.
9642 * target.c (target_delete_record): Add argument.
9643 * record-full.c (record_full_delete): Add 'self' argument.
9644
9645 2014-02-19 Tom Tromey <tromey@redhat.com>
9646
9647 * target.h (struct target_ops) <to_save_record>: Add argument.
9648 * target.c (target_save_record): Add argument.
9649 * record-full.c (record_full_save): Add 'self' argument.
9650 (record_full_save): Add 'self' argument.
9651
9652 2014-02-19 Tom Tromey <tromey@redhat.com>
9653
9654 * target.h (struct target_ops) <to_info_record>: Add argument.
9655 * target.c (target_info_record): Add argument.
9656 * record.c (info_record_command): Add argument.
9657 * record-full.c (record_full_info): Add 'self' argument.
9658 * record-btrace.c (record_btrace_info): Add 'self' argument.
9659
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9661
9662 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9663 * target.c (target_stop_recording): Add argument.
9664 * record.c (record_stop): Add argument.
9665 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9666 argument.
9667
9668 2014-02-19 Tom Tromey <tromey@redhat.com>
9669
9670 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9671 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9672 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9673 argument.
9674 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9675 (_initialize_amd64_linux_nat): Use it.
9676 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9677 (_initialize_i386_linux_nat): Use it.
9678
9679 2014-02-19 Tom Tromey <tromey@redhat.com>
9680
9681 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9682 * target.c (target_teardown_btrace): Add argument.
9683 * remote.c (remote_teardown_btrace): Add 'self' argument.
9684 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9685 argument.
9686 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9687 argument.
9688
9689 2014-02-19 Tom Tromey <tromey@redhat.com>
9690
9691 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9692 * target.c (target_disable_btrace): Add argument.
9693 * remote.c (remote_disable_btrace): Add 'self' argument.
9694 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9695 argument.
9696 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9697 argument.
9698
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9700
9701 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9702 * target.c (target_enable_btrace): Add argument.
9703 * remote.c (remote_enable_btrace): Add 'self' argument.
9704 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9705 argument.
9706 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9707 argument.
9708
9709 2014-02-19 Tom Tromey <tromey@redhat.com>
9710
9711 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9712 (target_can_use_agent): Add argument.
9713 * target.c (update_current_target): Update.
9714 * remote.c (remote_can_use_agent): Add 'self' argument.
9715 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9716
9717 2014-02-19 Tom Tromey <tromey@redhat.com>
9718
9719 * target.h (struct target_ops) <to_use_agent>: Add argument.
9720 (target_use_agent): Add argument.
9721 * target.c (update_current_target): Update.
9722 * remote.c (remote_use_agent): Add 'self' argument.
9723 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9724
9725 2014-02-19 Tom Tromey <tromey@redhat.com>
9726
9727 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9728 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9729 (target_traceframe_info): Add argument.
9730 * target.c (update_current_target): Update.
9731 * remote.c (remote_traceframe_info): Add 'self' argument.
9732 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9733
9734 2014-02-19 Tom Tromey <tromey@redhat.com>
9735
9736 * target.h (target_static_tracepoint_markers_by_strid): Add
9737 argument.
9738 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9739 'self' argument.
9740 * target.c (update_current_target): Update.
9741 * remote.c (struct target_ops)
9742 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9743 * linux-nat.c (struct target_ops)
9744 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9745
9746 2014-02-19 Tom Tromey <tromey@redhat.com>
9747
9748 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9749 Add argument.
9750 (target_static_tracepoint_marker_at): Add argument.
9751 * target.c (update_current_target): Update.
9752 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9753 argument.
9754
9755 2014-02-19 Tom Tromey <tromey@redhat.com>
9756
9757 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9758 (target_set_permissions): Add argument.
9759 * target.c (update_current_target): Update.
9760 * remote.c (remote_set_permissions): Add 'self' argument.
9761 (remote_start_remote): Update.
9762
9763 2014-02-19 Tom Tromey <tromey@redhat.com>
9764
9765 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9766 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9767 (target_get_tib_address): Add argument.
9768 * target.c (update_current_target): Update.
9769 * remote.c (remote_get_tib_address): Add 'self' argument.
9770
9771 2014-02-19 Tom Tromey <tromey@redhat.com>
9772
9773 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9774 (target_set_trace_notes): Add argument.
9775 * target.c (update_current_target): Update.
9776 * remote.c (remote_set_trace_notes): Add 'self' argument.
9777
9778 2014-02-19 Tom Tromey <tromey@redhat.com>
9779
9780 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9781 argument.
9782 (target_set_trace_buffer_size): Add argument.
9783 * target.c (update_current_target): Update.
9784 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9785
9786 2014-02-19 Tom Tromey <tromey@redhat.com>
9787
9788 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9789 argument.
9790 (target_set_circular_trace_buffer): Add argument.
9791 * target.c (update_current_target): Update.
9792 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9793 argument.
9794
9795 2014-02-19 Tom Tromey <tromey@redhat.com>
9796
9797 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9798 argument.
9799 (target_set_disconnected_tracing): Add argument.
9800 * target.c (update_current_target): Update.
9801 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9802
9803 2014-02-19 Tom Tromey <tromey@redhat.com>
9804
9805 * target.h (struct target_ops)
9806 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9807 (target_get_min_fast_tracepoint_insn_len): Add argument.
9808 * target.c (update_current_target): Update.
9809 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9810 argument.
9811
9812 2014-02-19 Tom Tromey <tromey@redhat.com>
9813
9814 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9815 argument.
9816 (target_get_raw_trace_data): Add argument.
9817 * target.c (update_current_target): Update.
9818 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9819
9820 2014-02-19 Tom Tromey <tromey@redhat.com>
9821
9822 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9823 Add argument.
9824 (target_upload_trace_state_variables): Add argument.
9825 * target.c (update_current_target): Update.
9826 * remote.c (remote_upload_trace_state_variables): Add 'self'
9827 argument.
9828 (remote_start_remote): Update.
9829
9830 2014-02-19 Tom Tromey <tromey@redhat.com>
9831
9832 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9833 argument.
9834 (target_upload_tracepoints): Add argument.
9835 * target.c (update_current_target): Update.
9836 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9837 (remote_start_remote): Update.
9838
9839 2014-02-19 Tom Tromey <tromey@redhat.com>
9840
9841 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9842 (target_save_trace_data): Add argument.
9843 * target.c (update_current_target): Update.
9844 * remote.c (remote_save_trace_data): Add 'self' argument.
9845
9846 2014-02-19 Tom Tromey <tromey@redhat.com>
9847
9848 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9849 argument.
9850 * target.h (struct target_ops)
9851 <to_get_trace_state_variable_value>: Add argument.
9852 (target_get_trace_state_variable_value): Add argument.
9853 * target.c (update_current_target): Update.
9854 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9855 argument.
9856 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9857
9858 2014-02-19 Tom Tromey <tromey@redhat.com>
9859
9860 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9861 * target.h (struct target_ops) <to_trace_find>: Add argument.
9862 (target_trace_find): Add argument.
9863 * target.c (update_current_target): Update.
9864 * remote.c (remote_trace_find): Add 'self' argument.
9865 * ctf.c (ctf_trace_find): Add 'self' argument.
9866
9867 2014-02-19 Tom Tromey <tromey@redhat.com>
9868
9869 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9870 (target_trace_stop): Add argument.
9871 * target.c (update_current_target): Update.
9872 * remote.c (remote_trace_stop): Add 'self' argument.
9873
9874 2014-02-19 Tom Tromey <tromey@redhat.com>
9875
9876 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9877 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9878 argument.
9879 (target_get_tracepoint_status): Add argument.
9880 * target.c (update_current_target): Update.
9881 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9882
9883 2014-02-19 Tom Tromey <tromey@redhat.com>
9884
9885 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9886 * target.h (struct target_ops) <to_get_trace_status>: Add
9887 argument.
9888 (target_get_trace_status): Add argument.
9889 * target.c (update_current_target): Update.
9890 * remote.c (remote_get_trace_status): Add 'self' argument.
9891 (remote_start_remote, remote_can_download_tracepoint): Update.
9892 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9893
9894 2014-02-19 Tom Tromey <tromey@redhat.com>
9895
9896 * target.h (struct target_ops) <to_trace_start>: Add argument.
9897 (target_trace_start): Add argument.
9898 * target.c (update_current_target): Update.
9899 * remote.c (remote_trace_start): Add 'self' argument.
9900
9901 2014-02-19 Tom Tromey <tromey@redhat.com>
9902
9903 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9904 Add argument.
9905 (target_trace_set_readonly_regions): Add argument.
9906 * target.c (update_current_target): Update.
9907 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9908 argument.
9909
9910 2014-02-19 Tom Tromey <tromey@redhat.com>
9911
9912 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9913 argument.
9914 (target_disable_tracepoint): Add argument.
9915 * target.c (update_current_target): Update.
9916 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9917
9918 2014-02-19 Tom Tromey <tromey@redhat.com>
9919
9920 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9921 argument.
9922 (target_enable_tracepoint): Add argument.
9923 * target.c (update_current_target): Update.
9924 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9925
9926 2014-02-19 Tom Tromey <tromey@redhat.com>
9927
9928 * target.h (struct target_ops) <to_download_trace_state_variable>:
9929 Add argument.
9930 (target_download_trace_state_variable): Add argument.
9931 * target.c (update_current_target): Update.
9932 * remote.c (remote_download_trace_state_variable): Add 'self'
9933 argument.
9934
9935 2014-02-19 Tom Tromey <tromey@redhat.com>
9936
9937 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9938 argument.
9939 (target_can_download_tracepoint): Add argument.
9940 * target.c (update_current_target): Update.
9941 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9942
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9944
9945 * target.h (struct target_ops) <to_download_tracepoint>: Add
9946 argument.
9947 (target_download_tracepoint): Add argument.
9948 * target.c (update_current_target): Update.
9949 * remote.c (remote_download_tracepoint): Add 'self' argument.
9950
9951 2014-02-19 Tom Tromey <tromey@redhat.com>
9952
9953 * target.h (struct target_ops) <to_trace_init>: Add argument.
9954 (target_trace_init): Add argument.
9955 * target.c (update_current_target): Update.
9956 * remote.c (remote_trace_init): Add 'self' argument.
9957
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9959
9960 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9961 * target.c (target_fileio_readlink): Add argument.
9962 * remote.c (remote_hostio_readlink): Add 'self' argument.
9963 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9964
9965 2014-02-19 Tom Tromey <tromey@redhat.com>
9966
9967 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9968 * target.c (target_fileio_unlink): Add argument.
9969 * remote.c (remote_hostio_unlink): Add 'self' argument.
9970 (remote_file_delete): Update.
9971 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9972
9973 2014-02-19 Tom Tromey <tromey@redhat.com>
9974
9975 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9976 * target.c (target_fileio_close): Add argument.
9977 * remote.c (remote_hostio_close): Add 'self' argument.
9978 (remote_hostio_close_cleanup): Update.
9979 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9980 Update.
9981 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9982
9983 2014-02-19 Tom Tromey <tromey@redhat.com>
9984
9985 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9986 * target.c (target_fileio_pread): Add argument.
9987 * remote.c (remote_hostio_pread): Add 'self' argument.
9988 (remote_bfd_iovec_pread, remote_file_get): Update.
9989 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9990
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9992
9993 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9994 * target.c (target_fileio_pwrite): Add argument.
9995 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9996 (remote_file_put): Update.
9997 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9998
9999 2014-02-19 Tom Tromey <tromey@redhat.com>
10000
10001 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10002 * target.c (target_fileio_open): Add argument.
10003 * remote.c (remote_hostio_open): Add 'self' argument.
10004 (remote_bfd_iovec_open): Add 'self' argument.
10005 (remote_file_put): Add 'self' argument.
10006 (remote_file_get): Add 'self' argument.
10007 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10008
10009 2014-02-19 Tom Tromey <tromey@redhat.com>
10010
10011 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10012 Add argument.
10013 (target_can_run_breakpoint_commands): Add argument.
10014 * target.c (update_current_target): Update.
10015 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10016 argument.
10017 (remote_insert_breakpoint): Add 'self' argument.
10018 (remote_insert_hw_breakpoint): Add 'self' argument.
10019 (remote_can_run_breakpoint_commands): Add 'self' argument.
10020
10021 2014-02-19 Tom Tromey <tromey@redhat.com>
10022
10023 * target.h (struct target_ops)
10024 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10025 (target_supports_evaluation_of_breakpoint_conditions): Add
10026 argument.
10027 * target.c (update_current_target): Update.
10028 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10029 argument.
10030 (remote_insert_breakpoint): Add 'self' argument.
10031 (remote_insert_hw_breakpoint): Add 'self' argument.
10032 (remote_supports_cond_breakpoints): Add 'self' argument.
10033
10034 2014-02-19 Tom Tromey <tromey@redhat.com>
10035
10036 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10037 argument.
10038 (target_supports_string_tracing): Add argument.
10039 * target.c (update_current_target): Update.
10040 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10041
10042 2014-02-19 Tom Tromey <tromey@redhat.com>
10043
10044 * target.h (struct target_ops)
10045 <to_supports_disable_randomization>: Add argument.
10046 * target.c (find_default_supports_disable_randomization): Add
10047 argument.
10048 (target_supports_disable_randomization): Add argument.
10049 (find_default_supports_disable_randomization): Add 'self'
10050 argument.
10051 * remote.c (extended_remote_supports_disable_randomization): Add
10052 'self' argument.
10053 (remote_supports_disable_randomization): Add 'self' argument.
10054 (extended_remote_create_inferior): Update.
10055 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10056 'self' argument.
10057
10058 2014-02-19 Tom Tromey <tromey@redhat.com>
10059
10060 * target.h (struct target_ops)
10061 <to_supports_enable_disable_tracepoint>: Add argument.
10062 (target_supports_enable_disable_tracepoint): Add argument.
10063 * target.c (update_current_target): Update.
10064 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10065 argument.
10066
10067 2014-02-19 Tom Tromey <tromey@redhat.com>
10068
10069 * target.h (struct target_ops) <to_supports_multi_process>: Add
10070 argument.
10071 (target_supports_multi_process): Add argument.
10072 * target.c (update_current_target): Update.
10073 * remote.c (remote_supports_multi_process): Add 'self' argument.
10074 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10075 argument.
10076 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10077 argument.
10078
10079 2014-02-19 Tom Tromey <tromey@redhat.com>
10080
10081 * target.h (struct target_ops) <to_execution_direction>: Add
10082 argument.
10083 (target_execution_direction): Add argument.
10084 * target.c (default_execution_direction): Add 'self' argument.
10085 * record-full.c (record_full_execution_direction): Add 'self'
10086 argument.
10087
10088 2014-02-19 Tom Tromey <tromey@redhat.com>
10089
10090 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10091 argument.
10092 (target_can_execute_reverse): Add argument.
10093 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10094 * record-full.c (record_full_can_execute_reverse): Add 'self'
10095 argument.
10096 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10097 argument.
10098
10099 2014-02-19 Tom Tromey <tromey@redhat.com>
10100
10101 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10102 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10103 argument.
10104 (target_get_ada_task_ptid): Add argument.
10105 * target.c (update_current_target): Update.
10106 (default_get_ada_task_ptid): Add 'self' argument.
10107 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10108 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10109 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10110 argument.
10111 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10112 argument.
10113 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10114 argument.
10115 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10116 argument.
10117 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10118 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10119 argument.
10120
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10122
10123 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10124 (target_goto_bookmark): Add argument.
10125 * target.c (dummy_goto_bookmark): Add 'self' argument.
10126 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10127
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10129
10130 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10131 (target_get_bookmark): Add argument.
10132 * target.c (dummy_get_bookmark): Add 'self' argument.
10133 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10134
10135 2014-02-19 Tom Tromey <tromey@redhat.com>
10136
10137 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10138 argument.
10139 (target_make_corefile_notes): Add argument.
10140 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10141 * procfs.c (procfs_make_note_section): Add 'self' argument.
10142 (procfs_make_note_section): Add 'self' argument.
10143 (procfs_make_note_section): Add 'self' argument.
10144 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10145 argument.
10146 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10147 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10148 * exec.c (exec_make_note_section): Add 'self' argument.
10149 (exec_make_note_section): Add 'self' argument.
10150
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10152
10153 * target.h (struct target_ops) <to_find_memory_regions>: Add
10154 argument.
10155 (target_find_memory_regions): Add argument.
10156 * target.c (dummy_find_memory_regions): Add 'self' argument.
10157 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10158 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10159 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10160 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10161 * exec. (exec_do_find_memory_regions): New global.
10162 (exec_set_find_memory_regions): Rewrite.
10163 (exec_find_memory_regions): New function.
10164 (init_exec_ops): Use exec_find_memory_regions.
10165
10166 2014-02-19 Tom Tromey <tromey@redhat.com>
10167
10168 * target.h (struct target_ops) <to_supports_non_stop>: Add
10169 argument.
10170 * target.c (find_default_supports_non_stop): Add argument.
10171 (target_supports_non_stop): Add argument.
10172 (find_default_supports_non_stop): Add 'self' argument.
10173 * remote.c (remote_supports_non_stop): Add 'self' argument.
10174 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10175
10176 2014-02-19 Tom Tromey <tromey@redhat.com>
10177
10178 * target.h (struct target_ops) <to_log_command>: Add argument.
10179 (target_log_command): Add argument.
10180 * serial.h (serial_log_command): Add 'self' argument.
10181 * serial.c (serial_log_command): Add 'self' argument.
10182
10183 2014-02-19 Tom Tromey <tromey@redhat.com>
10184
10185 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10186 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10187 argument.
10188 (target_pid_to_exec_file): Add argument.
10189 * target.c (debug_to_pid_to_exec_file): Add argument.
10190 (update_current_target): Update.
10191 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10192 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10193 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10194 (linux_handle_extended_wait): Update.
10195 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10196 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10197 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10198 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10199
10200 2014-02-19 Tom Tromey <tromey@redhat.com>
10201
10202 * target.h (struct target_ops) <to_rcmd>: Add argument.
10203 (target_rcmd): Add argument.
10204 * target.c (debug_to_rcmd): Add argument.
10205 (update_current_target, do_monitor_command): Update.
10206 * remote.c (remote_rcmd): Add 'self' argument.
10207 * monitor.c (monitor_rcmd): Add 'self' argument.
10208
10209 2014-02-19 Tom Tromey <tromey@redhat.com>
10210
10211 * windows-nat.c (windows_stop): Add 'self' argument.
10212 * target.h (struct target_ops) <to_stop>: Add argument.
10213 * target.c (target_stop): Add argument.
10214 (debug_to_stop): Add argument.
10215 (update_current_target): Update.
10216 * remote.c (remote_stop): Add 'self' argument.
10217 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10218 (gdbsim_cntrl_c): Update.
10219 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10220 * procfs.c (procfs_stop): Add 'self' argument.
10221 * nto-procfs.c (procfs_stop): Add 'self' argument.
10222 * monitor.c (monitor_stop): Add 'self' argument.
10223 (monitor_open): Update.
10224 * linux-nat.c (linux_nat_stop): Add argument.
10225 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10226 * gnu-nat.c (gnu_stop): Add 'self' argument.
10227 * darwin-nat.c (darwin_stop): Add 'self' argument.
10228
10229 2014-02-19 Tom Tromey <tromey@redhat.com>
10230
10231 * target.h (struct target_ops) <to_thread_name>: Add argument.
10232 * target.c (target_thread_name): Add argument.
10233 (update_current_target): Update.
10234 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10235
10236 2014-02-19 Tom Tromey <tromey@redhat.com>
10237
10238 * target.h (struct target_ops) <to_extra_thread_info>: Add
10239 argument.
10240 (target_extra_thread_info): Add argument.
10241 * target.c (update_current_target): Update.
10242 * remote.c (remote_threads_extra_info): Add 'self' argument.
10243 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10244 argument.
10245 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10246 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10247 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10248 argument.
10249 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10250 argument.
10251 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10252 argument.
10253 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10254 argument.
10255
10256 2014-02-19 Tom Tromey <tromey@redhat.com>
10257
10258 * target.h (struct target_ops) <to_program_signals>: Add argument.
10259 * target.c (target_program_signals): Add argument.
10260 * remote.c (remote_program_signals): Add 'self' argument.
10261
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10263
10264 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10265 * target.c (target_pass_signals): Add argument.
10266 * remote.c (remote_pass_signals): Add 'self' argument.
10267 (remote_start_remote): Update.
10268 * procfs.c (procfs_pass_signals): Add 'self' argument.
10269 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10270 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10271 (linux_nat_create_inferior, linux_nat_attach): Update.
10272
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10274
10275 * windows-nat.c (windows_can_run): Add 'self' argument.
10276 * target.h (struct target_ops) <to_can_run>: Add argument.
10277 (target_can_run): Add argument.
10278 * target.c (debug_to_can_run): Add argument.
10279 (update_current_target): Update.
10280 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10281 * inf-child.c (inf_child_can_run): Add 'self' argument.
10282 * go32-nat.c (go32_can_run): Add 'self' argument.
10283
10284 2014-02-19 Tom Tromey <tromey@redhat.com>
10285
10286 * target.h (struct target_ops) <to_has_exited>: Add argument.
10287 (target_has_exited): Add argument.
10288 * target.c (debug_to_has_exited): Add argument.
10289 (update_current_target): Update.
10290
10291 2014-02-19 Tom Tromey <tromey@redhat.com>
10292
10293 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10294 argument.
10295 (target_set_syscall_catchpoint): Add argument.
10296 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10297 argument.
10298 * target.c (update_current_target): Update.
10299
10300 2014-02-19 Tom Tromey <tromey@redhat.com>
10301
10302 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10303 argument.
10304 (target_remove_exec_catchpoint): Add argument.
10305 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10306 (update_current_target): Update.
10307 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10308 argument.
10309
10310 2014-02-19 Tom Tromey <tromey@redhat.com>
10311
10312 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10313 argument.
10314 (target_insert_exec_catchpoint): Add argument.
10315 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10316 (update_current_target): Update.
10317 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10318 argument.
10319
10320 2014-02-19 Tom Tromey <tromey@redhat.com>
10321
10322 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10323 argument.
10324 (target_remove_vfork_catchpoint): Add argument.
10325 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10326 (update_current_target): Update.
10327 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10328 argument.
10329
10330 2014-02-19 Tom Tromey <tromey@redhat.com>
10331
10332 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10333 argument.
10334 (target_insert_vfork_catchpoint): Add argument.
10335 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10336 (update_current_target): Update.
10337 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10338 argument.
10339
10340 2014-02-19 Tom Tromey <tromey@redhat.com>
10341
10342 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10343 argument.
10344 (target_remove_fork_catchpoint): Add argument.
10345 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10346 (update_current_target): Update.
10347 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10348 argument.
10349
10350 2014-02-19 Tom Tromey <tromey@redhat.com>
10351
10352 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10353 argument.
10354 (target_insert_fork_catchpoint): Add argument.
10355 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10356 (update_current_target): Update.
10357 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10358 argument.
10359
10360 2014-02-19 Tom Tromey <tromey@redhat.com>
10361
10362 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10363 argument.
10364 (target_post_startup_inferior): Add argument.
10365 * target.c (debug_to_post_startup_inferior): Add argument.
10366 (update_current_target): Update.
10367 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10368 argument.
10369 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10370 argument.
10371 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10372 argument.
10373 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10374 argument.
10375 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10376 'self' argument.
10377 (super_post_startup_inferior): Likewise.
10378 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10379 'self' argument.
10380 (super_post_startup_inferior): Likewise.
10381 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10382 Add 'self' argument.
10383 (super_post_startup_inferior): Likewise.
10384
10385 2014-02-19 Tom Tromey <tromey@redhat.com>
10386
10387 * target.h (struct target_ops) <to_load>: Add argument.
10388 * target.c (target_load): Add argument.
10389 (debug_to_load): Add argument.
10390 (update_current_target): Update.
10391 * remote.c (remote_load): Add 'self' argument.
10392 * remote-sim.c (gdbsim_load): Add 'self' argument.
10393 * remote-mips.c (mips_load): Add 'self' argument.
10394 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10395 * monitor.c (monitor_load): Add 'self' argument.
10396 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10397
10398 2014-02-19 Tom Tromey <tromey@redhat.com>
10399
10400 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10401 (target_terminal_info): Add argument.
10402 * target.c (debug_to_terminal_info): Add argument.
10403 (default_terminal_info): Likewise.
10404 * inflow.c (child_terminal_info): Add 'self' argument.
10405 * inferior.h (child_terminal_info): Add 'self' argument.
10406 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10407
10408 2014-02-19 Tom Tromey <tromey@redhat.com>
10409
10410 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10411 argument.
10412 (target_terminal_save_ours): Add argument.
10413 * target.c (debug_to_terminal_save_ours): Add argument.
10414 (update_current_target): Update.
10415 * inflow.c (terminal_save_ours): Add 'self' argument.
10416 * inferior.h (terminal_save_ours): Add 'self' argument.
10417
10418 2014-02-19 Tom Tromey <tromey@redhat.com>
10419
10420 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10421 (target_terminal_ours): Add argument.
10422 * target.c (debug_to_terminal_ours): Add argument.
10423 (update_current_target): Update.
10424 * remote.c (remote_terminal_ours): Add 'self' argument.
10425 (remote_close): Update.
10426 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10427 * inflow.c (terminal_ours): Add 'self' argument.
10428 * inferior.h (terminal_ours): Add 'self' argument.
10429 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10430
10431 2014-02-19 Pedro Alves <palves@redhat.com>
10432 Tom Tromey <tromey@redhat.com>
10433
10434 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10435 argument.
10436 (target_terminal_ours_for_output): Add argument.
10437 * target.c (debug_to_terminal_ours_for_output): Add argument.
10438 (update_current_target): Update.
10439 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10440 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10441 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10442
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10444
10445 * target.h (struct target_ops) <to_terminal_inferior>: Add
10446 argument.
10447 * target.c (target_terminal_inferior): Add argument.
10448 (update_current_target): Update.
10449 * remote.c (remote_terminal_inferior): Add 'self' argument.
10450 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10451 * inflow.c (terminal_inferior): Add 'self' argument.
10452 * inferior.h (terminal_inferior): Add 'self' argument.
10453 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10454 (go32_terminal_inferior): Add 'self' argument.
10455
10456 2014-02-19 Tom Tromey <tromey@redhat.com>
10457
10458 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10459 (target_terminal_init): Add argument.
10460 * target.c (debug_to_terminal_init): Add argument.
10461 (update_current_target): Update.
10462 * inflow.c (terminal_init_inferior): Add 'self' argument.
10463 * inferior.h (terminal_init_inferior): Add 'self' argument.
10464 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10465 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10466
10467 2014-02-19 Tom Tromey <tromey@redhat.com>
10468
10469 * target.h (struct target_ops)
10470 <to_can_accel_watchpoint_condition>: Add argument.
10471 (target_can_accel_watchpoint_condition): Add argument.
10472 * target.c (debug_to_can_accel_watchpoint_condition): Add
10473 argument.
10474 (update_current_target): Update.
10475 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10476 'self' argument.
10477
10478 2014-02-19 Tom Tromey <tromey@redhat.com>
10479
10480 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10481 Add argument.
10482 (target_region_ok_for_hw_watchpoint): Add argument.
10483 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10484 (default_region_ok_for_hw_watchpoint): Add argument.
10485 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10486 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10487 argument.
10488 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10489 argument.
10490 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10491 argument.
10492 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10493 'self' argument.
10494 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10495 'self' argument.
10496 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10497 'self' argument.
10498 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10499 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10500 'self' argument.
10501 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10502 Add 'self' argument.
10503
10504 2014-02-19 Tom Tromey <tromey@redhat.com>
10505
10506 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10507 argument.
10508 (target_insert_watchpoint): Add argument.
10509 * target.c (debug_to_insert_watchpoint): Add argument.
10510 (update_current_target): Update.
10511 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10512 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10513 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10514 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10515 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10516 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10517 argument.
10518 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10519 (procfs_insert_hw_watchpoint): Add 'self' argument.
10520 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10521 argument.
10522 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10523 argument.
10524 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10525 argument.
10526 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10527 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10528 argument.
10529 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10530 'self' argument.
10531
10532 2014-02-19 Tom Tromey <tromey@redhat.com>
10533
10534 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10535 argument.
10536 (target_remove_watchpoint): Add argument.
10537 * target.c (debug_to_remove_watchpoint): Add argument.
10538 (update_current_target): Update.
10539 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10540 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10541 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10542 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10543 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10544 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10545 argument.
10546 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10547 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10548 argument.
10549 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10550 argument.
10551 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10552 argument.
10553 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10554 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10555 argument.
10556 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10557 'self' argument.
10558
10559 2014-02-19 Tom Tromey <tromey@redhat.com>
10560
10561 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10562 argument.
10563 (target_remove_hw_breakpoint): Add argument.
10564 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10565 (update_current_target): Update.
10566 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10567 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10568 argument.
10569 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10570 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10571 argument.
10572 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10573 'self' argument.
10574
10575 2014-02-19 Tom Tromey <tromey@redhat.com>
10576
10577 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10578 argument.
10579 (target_insert_hw_breakpoint): Add argument.
10580 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10581 (update_current_target): Update.
10582 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10583 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10584 argument.
10585 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10586 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10587 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10588 argument.
10589 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10590 'self' argument.
10591
10592 2014-02-19 Tom Tromey <tromey@redhat.com>
10593
10594 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10595 argument.
10596 (target_can_use_hardware_watchpoint): Add argument.
10597 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10598 (update_current_target): Update.
10599 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10600 argument.
10601 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10602 argument.
10603 * remote.c (remote_check_watch_resources): Add 'self' argument.
10604 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10605 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10606 argument.
10607 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10608 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10609 argument.
10610 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10611 argument.
10612 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10613 argument.
10614 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10615 argument.
10616 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10617 argument.
10618 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10619 argument.
10620 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10621 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10622 argument.
10623 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10624 'self' argument.
10625
10626 2014-02-19 Tom Tromey <tromey@redhat.com>
10627
10628 * target.h (struct target_ops) <to_post_attach>: Add argument.
10629 (target_post_attach): Add argument.
10630 * target.c (debug_to_post_attach): Add argument.
10631 (update_current_target): Update.
10632 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10633 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10634 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10635 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10636 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10637
10638 2014-02-19 Tom Tromey <tromey@redhat.com>
10639
10640 * windows-nat.c (windows_close): Add 'self' argument.
10641 * tracepoint.c (tfile_close): Add 'self' argument.
10642 * target.h (struct target_ops) <to_close>: Add argument.
10643 * target.c (target_close): Add argument.
10644 (update_current_target): Update.
10645 * remote.c (remote_close): Add 'self' argument.
10646 * remote-sim.c (gdbsim_close): Add 'self' argument.
10647 * remote-mips.c (mips_close): Add 'self' argument.
10648 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10649 * record-full.c (record_full_close): Add 'self' argument.
10650 * record-btrace.c (record_btrace_close): Add 'self' argument.
10651 * monitor.h (monitor_close): Add 'self' argument.
10652 * monitor.c (monitor_close): Add 'self' argument.
10653 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10654 * linux-nat.c (linux_nat_close): Add argument.
10655 * go32-nat.c (go32_close): Add 'self' argument.
10656 * exec.c (exec_close_1): Add 'self' argument.
10657 * ctf.c (ctf_close): Add 'self' argument.
10658 * corelow.c (core_close): Add 'self' argument.
10659 (core_close_cleanup): Update.
10660 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10661 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10662
10663 2014-02-19 Tom Tromey <tromey@redhat.com>
10664
10665 * remote.c (remote_load): New function.
10666 (init_remote_ops): Use it.
10667
10668 2014-02-19 Tom Tromey <tromey@redhat.com>
10669
10670 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10671 argument.
10672 * common/linux-btrace.h (linux_supports_btrace): Update.
10673 * remote.c (remote_supports_btrace): Add "self" argument.
10674 * target-delegates.c: Rebuild.
10675 * target.c (target_supports_btrace): Remove.
10676 * target.h (struct target_ops) <to_supports_btrace>: Add
10677 target_ops argument.
10678 (target_supports_btrace): New define.
10679
10680 2014-02-19 Tom Tromey <tromey@redhat.com>
10681
10682 * record-full.c (record_full_beneath_to_resume_ops)
10683 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10684 (record_full_beneath_to_wait)
10685 (record_full_beneath_to_store_registers_ops)
10686 (record_full_beneath_to_store_registers)
10687 (record_full_beneath_to_xfer_partial_ops)
10688 (record_full_beneath_to_xfer_partial)
10689 (record_full_beneath_to_insert_breakpoint_ops)
10690 (record_full_beneath_to_insert_breakpoint)
10691 (record_full_beneath_to_remove_breakpoint_ops)
10692 (record_full_beneath_to_remove_breakpoint)
10693 (record_full_beneath_to_stopped_by_watchpoint)
10694 (record_full_beneath_to_stopped_data_address)
10695 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10696 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10697 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10698 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10699 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10700 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10701 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10702 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10703 (record_full_resume, record_full_wait_1)
10704 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10705 (record_full_store_registers, record_full_xfer_partial)
10706 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10707 (record_full_async, record_full_core_xfer_partial): Use target
10708 delegation.
10709 * target-delegates.c: Rebuild.
10710 * target.c (current_xfer_partial): Remove.
10711 (update_current_target): Do not INHERIT or de_fault
10712 to_insert_breakpoint, to_remove_breakpoint,
10713 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10714 to_is_async_p, to_async. Do not set to_xfer_partial field.
10715 (default_xfer_partial): Simplify.
10716 (current_xfer_partial): Remove.
10717 (target_wait, target_resume): Simplify.
10718 (find_default_can_async_p, find_default_is_async_p): Update.
10719 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10720 to_xfer_partial, to_stopped_by_watchpoint,
10721 to_stopped_data_address.
10722 (target_store_registers): Simplify.
10723 (forward_target_remove_breakpoint)
10724 (forward_target_insert_breakpoint): Remove.
10725 (target_remove_breakpoint, target_insert_breakpoint)
10726 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10727 * target.h (struct target_ops) <to_resume, to_wait,
10728 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10729 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10730 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10731 markup.
10732 (forward_target_remove_breakpoint)
10733 (forward_target_insert_breakpoint): Remove.
10734 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10735 directly.
10736 (record_btrace_insert_breakpoint): Delegate directly.
10737
10738 2014-02-19 Tom Tromey <tromey@redhat.com>
10739
10740 PR build/7701:
10741 * target-delegates.c: New file.
10742 * target.c: Include target-delegates.c.
10743 (init_dummy_target): Call install_dummy_methods.
10744 (complete_target_initialization): Call install_delegators.
10745 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10746 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10747 * make-target-delegates: New file.
10748
10749 2014-02-19 Tom Tromey <tromey@redhat.com>
10750
10751 * record.c (find_record_target): Use find_target_at.
10752 * target.c (find_target_at): New function.
10753 * target.h (find_target_at): Declare.
10754
10755 2014-02-19 Tom Tromey <tromey@redhat.com>
10756
10757 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10758 Add 'ops' argument.
10759 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10760 'ops' argument.
10761 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10762 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10763 'ops' argument.
10764 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10765 argument.
10766 * linux-nat.c (save_sigtrap): Update.
10767 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10768 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10769 (linux_nat_close): Update.
10770 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10771 argument.
10772 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10773 argument.
10774 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10775 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10776 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10777 (tmp_to_async): Add 'ops' argument.
10778 (record_full_stopped_by_watchpoint, record_full_async)
10779 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10780 argument.
10781 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10782 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10783 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10784 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10785 (remote_is_async_p, remote_async): Add 'ops' argument.
10786 (remote_stopped_data_address): Update.
10787 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10788 * target.c (update_current_target)
10789 (find_default_can_async_p, find_default_is_async_p): Update.
10790 (init_dummy_target): Update.
10791 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10792 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10793 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10794 (target_can_async_p, target_is_async_p, target_async)
10795 (target_stopped_by_watchpoint): Update.
10796
10797 2014-02-19 Yao Qi <yao@codesourcery.com>
10798
10799 PR gdb/16220
10800 * gdbarch.sh: Remove startup_gdbarch.
10801 * gdbarch.c: Regenerated.
10802 * gdbarch.h: Likewise.
10803
10804 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10805
10806 * rl78-tdep.c (rl78_g10_register_name): New function.
10807 (rl78_return_value): Add g10 support.
10808 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10809 g10.
10810
10811 2014-02-17 Doug Evans <xdje42@gmail.com>
10812
10813 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10814 (SUBDIR_GUILE_SRCS): Ditto.
10815 (scm-gsmob.o): Ditto.
10816
10817 2014-02-17 Yao Qi <yao@codesourcery.com>
10818
10819 * gnu-nat.c (ILL_RPC): Declare defined function.
10820
10821 2014-02-17 Yao Qi <yao@codesourcery.com>
10822
10823 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10824 mach_msg_type_number_t.
10825 (gnu_write_inferior): Likewise.
10826
10827 2014-02-17 Yao Qi <yao@codesourcery.com>
10828
10829 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10830 in format string.
10831 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10832 (inf_validate_procs, inf_signal): Likewise.
10833 (S_exception_raise_request): Likewise.
10834 (do_mach_notify_dead_name): Likewise.
10835 (steal_exc_port): Likewise.
10836 (gnu_read_inferior): Change 'copy_count''s type to
10837 mach_msg_type_number_t.
10838 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10839 format string.
10840
10841 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10842
10843 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10844 flag. Adjust all users; in particular...
10845 (gnu_wait): ..., don't decrement its value in here...
10846 (gnu_create_inferior): ..., and instead set the flag in here,
10847 around the startup_inferior call, and call that one with
10848 START_INFERIOR_TRAPS_EXPECTED.
10849
10850 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10851 (ILL_RPC): ... new macro.
10852 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10853 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10854 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10855 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10856 functions with ILL_RPC macro.
10857 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10858 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10859 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10860 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10861 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10862 (S_proc_getlogin_reply, S_proc_getsid_reply)
10863 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10864 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10865 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10866 (S_proc_getnports_reply, S_proc_is_important_reply)
10867 (S_proc_get_code_reply): New stub functions, generated with
10868 ILL_RPC macro.
10869
10870 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10871 collected the type check structures.
10872
10873 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10874
10875 2014-02-14 Doug Evans <dje@google.com>
10876
10877 * target.c (target_write_partial): Fix result type.
10878
10879 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10880
10881 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10882 the proper offsets to access fpregset_t.
10883
10884 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10885
10886 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10887 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10888 * h8300-tdep.c (setmachinelist): Remove global.
10889 * hppa-tdep.c (hppa_sigtramp): Remove global.
10890 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10891 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10892 * ravenscar-thread.c (update_target_observer): Remove global.
10893 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10894
10895 2014-02-12 Tom Tromey <tromey@redhat.com>
10896
10897 * common/rsp-low.c: Update comments.
10898 * common/rsp-low.h: Update comments.
10899
10900 2014-02-12 Tom Tromey <tromey@redhat.com>
10901
10902 * common/rsp-low.c (convert_ascii_to_int): Remove.
10903 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10904
10905 2014-02-12 Tom Tromey <tromey@redhat.com>
10906
10907 * common/rsp-low.h (unhexify): Don't declare.
10908 * common/rsp-low.c (unhexify): Remove.
10909
10910 2014-02-12 Tom Tromey <tromey@redhat.com>
10911
10912 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10913 * common/rsp-low.c (convert_int_to_ascii): Remove.
10914
10915 2014-02-12 Tom Tromey <tromey@redhat.com>
10916
10917 * common/rsp-low.h (hexify): Don't declare.
10918 * common/rsp-low.c (hexify): Remove.
10919
10920 2014-02-12 Tom Tromey <tromey@redhat.com>
10921
10922 * common/rsp-low.c (hexify): Never take strlen of argument.
10923
10924 2014-02-12 Tom Tromey <tromey@redhat.com>
10925
10926 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10927 * remote.c (extended_remote_run, remote_rcmd)
10928 (remote_download_trace_state_variable, remote_save_trace_data)
10929 (remote_set_trace_notes): Update.
10930 * tracepoint.c (encode_source_string, tfile_write_status)
10931 (tfile_write_uploaded_tsv): Update.
10932
10933 2014-02-12 Tom Tromey <tromey@redhat.com>
10934
10935 * tracepoint.c: Include rsp-low.h.
10936 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10937 * remote.c: Include rsp-low.h.
10938 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10939 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10940 (remote_unescape_input): Move to common/rsp-low.c.
10941 * common/rsp-low.h: New file.
10942 * common/rsp-low.c: New file.
10943 * Makefile.in (SFILES): Add common/rsp-low.c.
10944 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10945 (COMMON_OBS): Add rsp-low.o.
10946 (rsp-low.o): New target.
10947
10948 2014-02-12 Tom Tromey <tromey@redhat.com>
10949
10950 * utils.h: Include print-utils.h.
10951 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10952 (int_string, core_addr_to_string, core_addr_to_string_nz)
10953 (hex_string, hex_string_custom): Don't declare.
10954 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10955 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10956 (hex_string_custom, int_string, core_addr_to_string)
10957 (core_addr_to_string_nz, host_address_to_string): Move to
10958 common/print-utils.c.
10959 * common/print-utils.h: New file.
10960 * common/print-utils.c: New file
10961 * Makefile.in (SFILES): Add common/print-utils.c.
10962 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10963 (COMMON_OBS): Add print-utils.o.
10964 (print-utils.o): New target.
10965
10966 2014-02-12 Tom Tromey <tromey@redhat.com>
10967
10968 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10969
10970 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10971
10972 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10973
10974 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10975
10976 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10977 if a PT_IO ptrace request returns sucessfully but indicates that 0
10978 bytes were transferred.
10979
10980 2014-02-12 Pedro Alves <palves@redhat.com>
10981 Kevin Buettner <kevinb@redhat.com>
10982
10983 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10984 TYPE_INSTANCE_FLAG_CODE_SPACE.
10985
10986 2014-02-12 Pedro Alves <palves@redhat.com>
10987
10988 * h8300-tdep.c (pseudo_from_raw_register)
10989 (raw_from_pseudo_register): New functions.
10990 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10991 them.
10992
10993 2014-02-12 Pedro Alves <palves@redhat.com>
10994
10995 * h8300-tdep.c (h8300_register_sim_regno): New function.
10996 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10997 gdbarch_register_sim_regno hook.
10998
10999 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11000
11001 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11002
11003 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11004
11005 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11006
11007 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11008
11009 * obsd-tdep.h (obsd_init_abi): New prototype.
11010 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11011 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11012 (obsd_init_abi): New functions.
11013 * i386obsd-tdep.c: Include "obsd-tdep.h".
11014 (i386obsd_init_abi): Call obsd_init_abi.
11015 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11016 (amd64obsd_init_abi): Call obsd_init_abi.
11017 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11018 obsd-tdep.c to gdb_target_obs.
11019
11020 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11021
11022 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11023 double float arguments to 16-byte in the argument slots.
11024
11025 2014-02-11 Doug Evans <xdje42@gmail.com>
11026
11027 * configure.ac: Don't crash if pkg-config is not found and guile
11028 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11029 in guile checks.
11030 * configure: Regenerate.
11031
11032 2014-02-11 Yao Qi <yao@codesourcery.com>
11033
11034 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11035 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11036 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11037 * gnu-nat.c (gnu_xfer_memory): Likewise.
11038 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11039 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11040 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11041 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11042
11043 2014-02-11 Yao Qi <yao@codesourcery.com>
11044
11045 * target.h (enum target_xfer_error): Rename to ...
11046 (enum target_xfer_status): ... it. New. All users updated.
11047 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11048 New.
11049 (TARGET_XFER_STATUS_ERROR_P): New macro.
11050 (target_xfer_error_to_string): Remove declaration.
11051 (target_xfer_status_to_string): Declare.
11052 (target_xfer_partial_ftype): Adjust it.
11053 (struct target_ops) <to_xfer_partial>: Return
11054 target_xfer_status. Add argument xfered_len. Update
11055 comments.
11056 * target.c (target_xfer_error_to_string): Rename to ...
11057 (target_xfer_status_to_string): ... it. New. All callers
11058 updated.
11059 (target_read_live_memory): Likewise. Call target_xfer_partial
11060 instead of target_read.
11061 (memory_xfer_live_readonly_partial): Return
11062 target_xfer_status. Add argument xfered_len.
11063 (raw_memory_xfer_partial): Likewise.
11064 (memory_xfer_partial_1): Likewise.
11065 (memory_xfer_partial): Likewise.
11066 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11067 properly. Update debug message.
11068 (default_xfer_partial, current_xfer_partial): Likewise.
11069 (target_write_partial): Likewise.
11070 (target_read_partial): Likewise. All callers updated.
11071 (read_whatever_is_readable): Likewise.
11072 (target_write_with_progress): Likewise.
11073 (target_read_alloc_1): Likewise.
11074
11075 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11076 * auxv.c (procfs_xfer_auxv): Likewise.
11077 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11078 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11079 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11080 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11081 * corefile.c (read_memory): Adjust.
11082 * corelow.c (core_xfer_partial): Likewise.
11083 * ctf.c (ctf_xfer_partial): Likewise.
11084 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11085 updated.
11086 (darwin_xfer_partial): Likewise.
11087 * exec.c (section_table_xfer_memory_partial): Likewise. All
11088 callers updated.
11089 (exec_xfer_partial): Likewise.
11090 * exec.h (section_table_xfer_memory_partial): Update
11091 declaration.
11092 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11093 negative.
11094 (gnu_xfer_partial): Likewise.
11095 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11096 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11097 (ia64_hpux_xfer_solib_got): Likewise.
11098 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11099 type of 'partial_len' to ULONGEST.
11100 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11101 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11102 (linux_nat_xfer_partial): Likewise.
11103 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11104 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11105 * monitor.c (monitor_xfer_memory): Likewise.
11106 (monitor_xfer_partial): Likewise.
11107 * procfs.c (procfs_xfer_partial): Likewise.
11108 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11109 * record-full.c (record_full_xfer_partial): Likewise.
11110 (record_full_core_xfer_partial): Likewise.
11111 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11112 (gdbsim_xfer_partial): Likewise.
11113 * remote.c (remote_write_bytes_aux): Likewise. All callers
11114 updated.
11115 (remote_write_bytes, remote_read_bytes): Likewise. All
11116 callers updated.
11117 (remote_flash_erase): Likewise. All callers updated.
11118 (remote_write_qxfer): Likewise. All callers updated.
11119 (remote_read_qxfer): Likewise. All callers updated.
11120 (remote_xfer_partial): Likewise.
11121 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11122 (rs6000_xfer_shared_libraries): Likewise.
11123 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11124 (sol_thread_xfer_partial): Likewise.
11125 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11126 (sparc_xfer_partial): Likewise.
11127 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11128 updated.
11129 (spu_xfer_partial): Likewise.
11130 * spu-multiarch.c (spu_xfer_partial): Likewise.
11131 * tracepoint.c (tfile_xfer_partial): Likewise.
11132 * windows-nat.c (windows_xfer_memory): Likewise.
11133 (windows_xfer_shared_libraries): Likewise.
11134 (windows_xfer_partial): Likewise.
11135 * valprint.c: Replace 'target_xfer_error' with
11136 'target_xfer_status' in comments.
11137
11138 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11139
11140 Checked in by Joel Brobecker <brobecker@adacore.com>.
11141 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11142
11143 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11144
11145 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11146 function parameters.
11147
11148 2014-02-10 Will Newton <will.newton@linaro.org>
11149
11150 * elfread.c (elf_rel_plt_read): Look for a .got section if
11151 looking up .got.plt fails.
11152 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11153 on address passed to elf_gnu_ifunc_record_cache.
11154 (elf_gnu_ifunc_resolve_addr): Likewise.
11155 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11156
11157 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11158
11159 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11160 (X_RETTURN): New macro.
11161 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11162
11163 * sparc64-tdep.c (sparc64_init_abi): Hook
11164 sparc_in_function_epilogue_p.
11165
11166 2014-02-10 Gary Benson <gbenson@redhat.com>
11167
11168 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11169 Rename name_matcher to symbol_matcher.
11170
11171 2014-02-10 Gary Benson <gbenson@redhat.com>
11172
11173 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11174 Use expand_symtabs_file_matcher_ftype and
11175 expand_symtabs_symbol_matcher_ftype.
11176
11177 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11178
11179 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11180 (struct ada_symbol_cache): New.
11181 (ada_free_symbol_cache): Forward declare.
11182 (struct ada_pspace_data): New.
11183 (ada_pspace_data_handle): New static global.
11184 (get_ada_pspace_data, ada_pspace_data_cleanup)
11185 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11186 (cache_space, cache): Delete, now folded inside struct
11187 ada_pspace_data.
11188 (ada_get_symbol_cache): New function.
11189 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11190 implementation.
11191 (_initialize_ada_language): Remove initialization of cache_space.
11192 Move call to observer_attach_inferior_exit up, grouping it
11193 with the other observer registrations inside this function.
11194 Rename command to be more general. Add call to
11195 register_program_space_data_with_cleanup.
11196
11197 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11198
11199 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11200 ada_new_objfile_observer.
11201 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11202 (_initialize_tasks): Update uses of ada_new_objfile_observer
11203 and ada_tasks_normal_stop_observer.
11204
11205 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11206
11207 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11208 returned by the 'Length attribute to integer.
11209
11210 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11211
11212 * ada-lang.c (_initialize_ada_language): Initialize
11213 cache_space obstack.
11214
11215 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11216
11217 * ada-lang.c (HASH_SIZE): New macro.
11218 (struct cache_entry): New type.
11219 (cache_space, cache): New static globals.
11220 (ada_clear_symbol_cache, find_entry): New functions.
11221 (lookup_cached_symbol, cache_symbol): Implement.
11222 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11223 (_initialize_ada_language): Attach ada_new_objfile_observer
11224 and ada_free_objfile_observer.
11225
11226 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11227
11228 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11229 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11230 struct block * parameter.
11231 (ada_lookup_symbol_list_worker): Constify local variable "block".
11232 Remove cast which is no longer necessary.
11233
11234 2014-02-10 Doug Evans <xdje42@gmail.com>
11235
11236 Add Guile as an extension language.
11237 * NEWS: Mention Guile scripting.
11238 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11239 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11240 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11241 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11242 (CLIBS): Add GUILE_LIBS.
11243 (install-guile): New rule.
11244 (guile.o): New rule.
11245 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11246 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11247 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11248 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11249 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11250 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11251 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11252 * configure.ac: New option --with-guile.
11253 * configure: Regenerate.
11254 * config.in: Regenerate.
11255 * auto-load.c: Remove #include "python/python.h". Add #include
11256 "gdb/section-scripts.h".
11257 (source_section_scripts): Handle Guile scripts.
11258 (_initialize_auto_load): Add name of Guile objfile script to
11259 scripts-directory help text.
11260 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11261 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11262 (struct breakpoint): New member scm_bp_object.
11263 * defs.h (enum command_control_type): New value guile_control.
11264 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11265 "extension.h".
11266 (show_user): Update comment.
11267 (_initialize_cli_cmds): Update help text for "show user". Update help
11268 text for max-user-call-depth.
11269 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11270 "extension.h".
11271 (multi_line_command_p): Add guile_control.
11272 (print_command_lines): Handle guile_control.
11273 (execute_control_command, recurse_read_control_structure): Ditto.
11274 (process_next_line): Recognize "guile" commands.
11275 * disasm.c (gdb_disassemble_info): Make non-static.
11276 * disasm.h: #include "dis-asm.h".
11277 (struct gdbarch): Add forward decl.
11278 (gdb_disassemble_info): Declare.
11279 * extension.c: #include "guile/guile.h".
11280 (extension_languages): Add guile.
11281 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11282 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11283 * gdbtypes.c (get_unsigned_type_max): New function.
11284 (get_signed_type_minmax): New function.
11285 * gdbtypes.h (get_unsigned_type_max): Declare.
11286 (get_signed_type_minmax): Declare.
11287 * guile/README: New file.
11288 * guile/guile-internal.h: New file.
11289 * guile/guile.c: New file.
11290 * guile/guile.h: New file.
11291 * guile/scm-arch.c: New file.
11292 * guile/scm-auto-load.c: New file.
11293 * guile/scm-block.c: New file.
11294 * guile/scm-breakpoint.c: New file.
11295 * guile/scm-disasm.c: New file.
11296 * guile/scm-exception.c: New file.
11297 * guile/scm-frame.c: New file.
11298 * guile/scm-gsmob.c: New file.
11299 * guile/scm-iterator.c: New file.
11300 * guile/scm-lazy-string.c: New file.
11301 * guile/scm-math.c: New file.
11302 * guile/scm-objfile.c: New file.
11303 * guile/scm-ports.c: New file.
11304 * guile/scm-pretty-print.c: New file.
11305 * guile/scm-safe-call.c: New file.
11306 * guile/scm-string.c: New file.
11307 * guile/scm-symbol.c: New file.
11308 * guile/scm-symtab.c: New file.
11309 * guile/scm-type.c: New file.
11310 * guile/scm-utils.c: New file.
11311 * guile/scm-value.c: New file.
11312 * guile/lib/gdb.scm: New file.
11313 * guile/lib/gdb/boot.scm: New file.
11314 * guile/lib/gdb/experimental.scm: New file.
11315 * guile/lib/gdb/init.scm: New file.
11316 * guile/lib/gdb/iterator.scm: New file.
11317 * guile/lib/gdb/printing.scm: New file.
11318 * guile/lib/gdb/types.scm: New file.
11319 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11320 (VPATH): Add $(GUILE_SRCDIR).
11321 (GUILE_DIR): New variable.
11322 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11323 (all): Add stamp-guile dependency.
11324 (stamp-guile): New rule.
11325 (clean-guile, install-guile, uninstall-guile): New rules.
11326 (install-only): Add install-guile dependency.
11327 (uninstall): Add uninstall-guile dependency.
11328 (clean): Add clean-guile dependency.
11329
11330 2014-02-09 Doug Evans <xdje42@gmail.com>
11331
11332 Revert this patch (which I approved, mea culpa).
11333
11334 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11335
11336 * Makefile.in (all-lib): Remove.
11337 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11338
11339 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11340
11341 Fix Python stack corruption.
11342 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11343 gdb_py_longest.
11344
11345 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11346
11347 * Makefile.in (all-lib): Remove.
11348 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11349
11350 2014-02-07 Doug Evans <dje@google.com>
11351
11352 * extension-priv.h (extension_language_script_ops): Add comment.
11353 (extension_language_ops): Add comment.
11354 (active_ext_lang_state): Fix typo in comment.
11355
11356 2014-02-07 Pedro Alves <palves@redhat.com>
11357
11358 PR breakpoints/16292
11359 * infrun.c (handle_signal_stop) <signal arrives while stepping
11360 over a breakpoint>: Switch back to the stepping thread.
11361
11362 2014-02-07 Yao Qi <yao@codesourcery.com>
11363
11364 * target.c (target_xfer_partial): Return zero if LEN is zero.
11365
11366 2014-02-07 Yao Qi <yao@codesourcery.com>
11367
11368 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11369 (ld_so_xfer_auxv): Likewise.
11370 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11371 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11372 * corelow.c (core_xfer_partial): Likewise.
11373 * ctf.c (ctf_xfer_partial): Likewise.
11374 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11375 (darwin_xfer_partial): Likewise.
11376 * exec.c (exec_xfer_partial): Likewise.
11377 * gnu-nat.c (gnu_xfer_partial): Likewise.
11378 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11379 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11380 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11381 * linux-nat.c (linux_xfer_siginfo): Likewise.
11382 (linux_proc_xfer_spu): Likewise.
11383 * procfs.c (procfs_xfer_partial): Likewise.
11384 * record-full.c (record_full_xfer_partial): Likewise.
11385 (record_full_core_xfer_partial): Likewise.
11386 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11387 * remote.c (remote_write_qxfer): Likewise.
11388 (remote_write_qxfer, remote_read_qxfer): Likewise.
11389 (remote_xfer_partial): Likewise.
11390 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11391 (rs6000_xfer_shared_libraries): Likewise.
11392 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11393 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11394 (spu_xfer_partial): Likewise.
11395 * target.c (memory_xfer_partial_1): Likewise.
11396 * tracepoint.c (tfile_xfer_partial): Likewise.
11397 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11398 (windows_xfer_partial): Likewise.
11399
11400 2014-02-07 Yao Qi <yao@codesourcery.com>
11401
11402 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11403 comments.
11404 (core_xfer_shared_libraries_aix): Likewise.
11405 * gdbarch.c, gdbarch.h: Regenerated.
11406 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11407 ULONGEST. Change 'len_avail' type to ULONGEST.
11408 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11409 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11410 declaration.
11411 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11412
11413 2014-02-07 Yao Qi <yao@codesourcery.com>
11414
11415 * corefile.c (memory_error): Get 'exception' from ERR and pass
11416 'exception' to throw_error.
11417
11418 2014-02-06 Doug Evans <xdje42@gmail.com>
11419
11420 * configure.ac (libpython checking): Remove all but python.o from
11421 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11422 * configure: Regenerate.
11423
11424 * Makefile.in (SFILES): Add extension.c.
11425 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11426 (COMMON_OBS): Add extension.o.
11427 * extension.h: New file.
11428 * extension-priv.h: New file.
11429 * extension.c: New file.
11430
11431 * python/python-internal.h: #include "extension.h".
11432 (gdbpy_auto_load_enabled): Declare.
11433 (gdbpy_apply_val_pretty_printer): Declare.
11434 (gdbpy_apply_frame_filter): Declare.
11435 (gdbpy_preserve_values): Declare.
11436 (gdbpy_breakpoint_cond_says_stop): Declare.
11437 (gdbpy_breakpoint_has_cond): Declare.
11438 (void source_python_script_for_objfile): Delete.
11439 * python/python.c: #include "extension-priv.h".
11440 Delete inclusion of "observer.h".
11441 (extension_language_python): Moved here and renamed from
11442 script_language_python in py-auto-load.c.
11443 Redefined to be of type extension_language_defn.
11444 (python_extension_script_ops): New global.
11445 (python_extension_ops): New global.
11446 (struct python_env): New member previous_active.
11447 (restore_python_env): Call restore_active_ext_lang.
11448 (ensure_python_env): Call set_active_ext_lang.
11449 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11450 New arg extlang.
11451 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11452 New arg extlang.
11453 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11454 New arg extlang.
11455 (gdbpy_eval_from_control_command): Renamed from
11456 eval_python_from_control_command, made static. New arg extlang.
11457 (gdbpy_source_script) Renamed from source_python_script, made static.
11458 New arg extlang.
11459 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11460 result to int. New arg extlang.
11461 (gdbpy_source_objfile_script): Renamed from
11462 source_python_script_for_objfile, made static. New arg extlang.
11463 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11464 static. New args extlang, extlang_printers. Change result type to
11465 "void".
11466 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11467 static. New arg extlang. Rename arg printers to extlang_printers
11468 and change type to ext_lang_type_printers *.
11469 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11470 static. Replace argument arg with extlang, extlang_printers.
11471 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11472 (!HAVE_PYTHON, source_python_script): Delete.
11473 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11474 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11475 (!HAVE_PYTHON, start_type_printers): Delete.
11476 (!HAVE_PYTHON, apply_type_printers): Delete.
11477 (!HAVE_PYTHON, free_type_printers): Delete.
11478 (_initialize_python): Delete call to observer_attach_before_prompt.
11479 (finalize_python): Set/restore active extension language.
11480 (gdbpy_finish_initialization) Renamed from
11481 finish_python_initialization, made static. New arg extlang.
11482 (gdbpy_initialized): New function.
11483 * python/python.h: #include "extension.h". Delete #include
11484 "value.h", "mi/mi-cmds.h".
11485 (extension_language_python): Declare.
11486 (GDBPY_AUTO_FILE_NAME): Delete.
11487 (enum py_bt_status): Moved to extension.h and renamed to
11488 ext_lang_bt_status.
11489 (enum frame_filter_flags): Moved to extension.h.
11490 (enum py_frame_args): Moved to extension.h and renamed to
11491 ext_lang_frame_args.
11492 (finish_python_initialization): Delete.
11493 (eval_python_from_control_command): Delete.
11494 (source_python_script): Delete.
11495 (apply_val_pretty_printer): Delete.
11496 (apply_frame_filter): Delete.
11497 (preserve_python_values): Delete.
11498 (gdbpy_script_language_defn): Delete.
11499 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11500 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11501
11502 * auto-load.c: #include "extension.h".
11503 (GDB_AUTO_FILE_NAME): Delete.
11504 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11505 (script_language_gdb): Delete, moved to extension.c and renamed to
11506 extension_language_gdb.
11507 (source_gdb_script_for_objfile): Delete.
11508 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11509 (loaded_script): Change type of language member to
11510 struct extension_language_defn *.
11511 (init_loaded_scripts_info): Initialize
11512 unsupported_script_warning_printed.
11513 (maybe_add_script): Make static. Change type of language arg to
11514 struct extension_language_defn *.
11515 (clear_section_scripts): Reset unsupported_script_warning_printed.
11516 (auto_load_objfile_script_1): Rewrite to use extension language API.
11517 (auto_load_objfile_script): Make public. Remove support-compiled-in
11518 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11519 (source_section_scripts): Rewrite to use extension language API.
11520 (load_auto_scripts_for_objfile): Rewrite to use
11521 auto_load_scripts_for_objfile.
11522 (collect_matching_scripts_data): Change type of language member to
11523 struct extension_language_defn *.
11524 (auto_load_info_scripts): Change type of language arg to
11525 struct extension_language_defn *.
11526 (unsupported_script_warning_print): New function.
11527 (script_not_found_warning_print): Make static.
11528 (_initialize_auto_load): Rewrite construction of scripts-directory
11529 help.
11530 * auto-load.h (struct objfile): Add forward decl.
11531 (struct script_language): Delete.
11532 (struct auto_load_pspace_info): Add forward decl.
11533 (struct extension_language_defn): Add forward decl.
11534 (maybe_add_script): Delete.
11535 (auto_load_objfile_script): Declare.
11536 (script_not_found_warning_print): Delete.
11537 (auto_load_info_scripts): Update prototype.
11538 (auto_load_gdb_scripts_enabled): Declare.
11539 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11540 auto_load_python_scripts_enabled and made public.
11541 (script_language_python): Delete, moved to python.c.
11542 (gdbpy_script_language_defn): Delete.
11543 (info_auto_load_python_scripts): Update to use
11544 extension_language_python.
11545
11546 * breakpoint.c (condition_command): Replace call to
11547 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11548 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11549 with call to breakpoint_ext_lang_cond_says_stop.
11550 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11551 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11552 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11553 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11554 New arg slang.
11555 (local_setattro): Print name of extension language with existing
11556 stop condition.
11557
11558 * valprint.c (val_print, value_print): Update to call
11559 apply_ext_lang_val_pretty_printer.
11560 * cp-valprint.c (cp_print_value): Update call to
11561 apply_ext_lang_val_pretty_printer.
11562 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11563 (gdbpy_apply_val_pretty_printer): Renamed from
11564 apply_val_pretty_printer. New arg extlang.
11565 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11566
11567 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11568 extension language API.
11569 * cli/cli-script.c (execute_control_command): Update to call
11570 eval_ext_lang_from_control_command.
11571
11572 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11573 enum ext_lang_bt_status values. Update call to
11574 apply_ext_lang_frame_filter.
11575 (mi_cmd_stack_list_locals): Ditto.
11576 (mi_cmd_stack_list_args): Ditto.
11577 (mi_cmd_stack_list_variables): Ditto.
11578 * mi/mi-main.c: Delete #include "python/python-internal.h".
11579 Add #include "extension.h".
11580 (mi_cmd_list_features): Replace reference to python internal variable
11581 gdb_python_initialized with call to ext_lang_initialized_p.
11582
11583 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11584 Update to use enum ext_lang_frame_args. Update to call
11585 apply_ext_lang_frame_filter.
11586 * python/py-framefilter.c (extract_sym): Update to use enum
11587 ext_lang_bt_status.
11588 (extract_value, py_print_type, py_print_value): Ditto.
11589 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11590 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11591 (py_print_frame): Ditto.
11592 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11593 New arg extlang. Update to use enum ext_lang_bt_status.
11594
11595 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11596 finish_python_initialization. Replace with call to
11597 finish_ext_lang_initialization.
11598
11599 * typeprint.c (do_free_global_table): Update to call
11600 free_ext_lang_type_printers.
11601 (create_global_typedef_table): Update to call
11602 start_ext_lang_type_printers.
11603 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11604 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11605 (type_print_options): Change type of global_printers from "void *"
11606 to "struct ext_lang_type_printers *".
11607
11608 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11609 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11610 (gdbpy_preserve_values): Renamed from preserve_python_values.
11611 New arg extlang.
11612 (!HAVE_PYTHON, preserve_python_values): Delete.
11613
11614 * utils.c (quit_flag): Delete, moved to extension.c.
11615 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11616 extension.c.
11617
11618 * eval.c: Delete #include "python/python.h".
11619 * main.c: Delete #include "python/python.h".
11620
11621 * defs.h: Update comment.
11622
11623 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11624
11625 GDB 7.7 released.
11626
11627 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11628
11629 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11630 defined.
11631
11632 2014-02-05 Yao Qi <yao@codesourcery.com>
11633
11634 * remote.c (remote_pass_signals): Remove local 'buf' and use
11635 rs->buf.
11636 (remote_program_signals): Likewise.
11637
11638 2014-02-05 Yao Qi <yao@codesourcery.com>
11639
11640 * ctf.c: Include "inferior.h" and "gdbthread.h".
11641 (CTF_PID): A new macro.
11642 (ctf_open): Call inferior_appeared and add_thread_silent.
11643 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11644 (ctf_thread_alive): New function.
11645 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11646
11647 2014-02-05 Yao Qi <yao@codesourcery.com>
11648
11649 Revert this patch:
11650
11651 2013-05-24 Yao Qi <yao@codesourcery.com>
11652
11653 * tracepoint.c (TFILE_PID): Remove.
11654 (tfile_open): Don't add thread and inferior.
11655 (tfile_close): Don't set 'inferior_ptid'. Don't call
11656 exit_inferior_silent.
11657 (tfile_thread_alive): Remove.
11658 (init_tfile_ops): Don't set field 'to_thread_alive' of
11659 tfile_ops.
11660
11661 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11662
11663 * remote.c (remote_start_remote): Call remote_check_symbols even
11664 if only symbol-file (not file) has been given.
11665
11666 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11667
11668 * gdbarch.sh (skip_entrypoint): New callback.
11669 * gdbarch.c, gdbarch.h: Regenerate.
11670 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11671 * infrun.c (fill_in_stop_func): Likewise.
11672 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11673 (ppc_elfv2_elf_make_msymbol_special): New function.
11674 (ppc_elfv2_skip_entrypoint): Likewise.
11675 (ppc_linux_init_abi): Install them for ELFv2.
11676
11677 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11678
11679 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11680 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11681 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11682 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11683 structures returned in GPRs.
11684
11685 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11686
11687 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11688 offset to the stack parameter list for the ELFv2 ABI.
11689
11690 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11691
11692 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11693 set_gdbarch_convert_from_func_ptr_addr and
11694 set_gdbarch_elf_make_msymbol_special for ELFv1.
11695 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11696 function descriptors on ELFv1.
11697 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11698 set up r12 at function entry.
11699
11700 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11701
11702 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11703 (struct gdbarch_tdep): New member elf_abi.
11704
11705 * rs6000-tdep.c: Include "elf/ppc64.h".
11706 (rs6000_gdbarch_init): Detect ELF ABI version.
11707
11708 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11709
11710 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11711 within a register pair holding a DFP 128-bit value on little-endian.
11712 (ppc64_sysv_abi_return_value_base): Likewise.
11713 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11714 (dfp_pseudo_register_write): Likewise.
11715
11716 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11717
11718 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11719 offset on little-endian when passing _Decimal32.
11720 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11721
11722 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11723
11724 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11725 of the overlapped FP register within the VSX register on little-
11726 endian platforms.
11727 (efpr_pseudo_register_write): Likewise.
11728
11729 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11730
11731 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11732 offset on little-endian when passing small structures.
11733
11734 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11735
11736 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11737 (struct ppc64_sysv_argpos): New data structure.
11738 (ppc64_sysv_abi_push_float): Remove.
11739 (ppc64_sysv_abi_push_val): New function.
11740 (ppc64_sysv_abi_push_integer): Likewise.
11741 (ppc64_sysv_abi_push_freg): Likewise.
11742 (ppc64_sysv_abi_push_vreg): Likewise.
11743 (ppc64_sysv_abi_push_param): Likewise.
11744 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11745 (ppc64_sysv_abi_return_value_base): New function.
11746 (ppc64_sysv_abi_return_value): Refactor to use it.
11747
11748 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11749
11750 * NEWS: Document new target powerpc64le-*-linux*.
11751
11752 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11753
11754 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11755 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11756 core dumps.
11757 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11758 register set used in ELF core dumps. Add floating-point register set.
11759
11760 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11761
11762 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11763 dwarf2_to_gdb[] table using symbolic constants. Adjust
11764 penultimate entry from number representing the PC register
11765 to symbolic constant representing the MDR register. Add
11766 constant for the PC register to the end of the table.
11767
11768 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11769
11770 * bsd-kvm.c: Include <sys/param.h>
11771
11772 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11773
11774 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11775
11776 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11777
11778 * ada-lang.h (clear_ada_sym_cache): Delete.
11779
11780 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11781
11782 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11783
11784 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11785
11786 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11787 the sigreturn register save area only if the syscall is
11788 sigreturn.
11789
11790 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11791
11792 * valops.c (value_slice): Minor reformatting.
11793
11794 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11795
11796 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11797
11798 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11799
11800 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11801 New static globals.
11802 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11803 (ada_ignore_descriptive_types_p): New static global.
11804 (find_parallel_type_by_descriptive_type): Return immediately
11805 if ada_ignore_descriptive_types_p is set.
11806 (_initialize_ada_language): Register new commands "maintenance
11807 set ada", "maintenance show ada", "maintenance set ada
11808 ignore-descriptive-types" and "maintenance show ada
11809 ignore-descriptive-types".
11810 * NEWS: Add entry for new "maint ada set/show
11811 ignore-descriptive-types" commands.
11812
11813 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11814
11815 * record-btrace.c (record_btrace_close): Call btrace_teardown
11816 for all threads.
11817
11818 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11819
11820 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11821 "ui-out.h".
11822
11823 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11824
11825 * ada-typeprint (type_is_full_subrange_of_target_type):
11826 New function.
11827 (print_range): Add parameter bounds_prefered_p. If not set,
11828 try printing range types using the name of their base type.
11829 (print_range_type): Add parameter bounds_prefered_p.
11830 Use it in call to print_range.
11831 (print_array_type, ada_print_type): Update calls to print_range
11832 and print_range_type.
11833
11834 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11835
11836 * ada-typeprint.c (print_array_type, print_choices, print_range)
11837 (print_range_bound, print_dynamic_range_bound, print_range_type):
11838 Remove declaration.
11839
11840 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11841
11842 * ada-typeprint.c (print_range): Add missing empty line
11843 after local declaration.
11844
11845 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11846
11847 * ada-valprint.c (print_optional_low_bound): Get index_type's
11848 target type for as long as it is a TYPE_CODE_RANGE.
11849
11850 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11851
11852 * procfs.c (procfs_make_note_section): Remove assertion and
11853 associated comment.
11854
11855 2014-01-24 Yao Qi <yao@codesourcery.com>
11856
11857 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11858 * corelow.c (get_core_siginfo): Likewise.
11859
11860 2014-01-24 Yao Qi <yao@codesourcery.com>
11861
11862 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11863 ULONGEST. Don't check 'len' is negative.
11864 (remote_write_bytes): Change type of 'len' to ULONGEST.
11865
11866 2014-01-23 Tom Tromey <tromey@redhat.com>
11867
11868 PR python/16485:
11869 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11870 Handle exception from frame.block.
11871 (FrameVars.fetch_frame_locals): Likewise.
11872
11873 2014-01-23 Tom Tromey <tromey@redhat.com>
11874
11875 PR python/16487:
11876 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11877 on a NULL pointer. Move "goto error" to correct place.
11878
11879 2014-01-23 Tom Tromey <tromey@redhat.com>
11880
11881 PR python/16491:
11882 * python/py-framefilter.c (apply_frame_filter): Call
11883 ensure_python_env after computing gdbarch.
11884
11885 2014-01-23 Yao Qi <yao@codesourcery.com>
11886
11887 * target.c (raw_memory_xfer_partial): Change argument type
11888 from void * to gdb_byte *.
11889 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11890
11891 2014-01-22 Doug Evans <dje@google.com>
11892
11893 New gdbserver option --debug-format=timestamp.
11894 * NEWS: Mention it.
11895
11896 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11897
11898 * syscalls/s390x-linux.xml: New file.
11899 * syscalls/s390-linux.xml: New file.
11900 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11901 (XML_SYSCALL_FILENAME_S390X): Likewise.
11902 (op_svc): New enum value for SVC opcode.
11903 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11904 (s390_linux_get_syscall_number): New function.
11905 (s390_gdbarch_init): Register '*get_syscall_number' and the
11906 syscall xml file name.
11907 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11908 "s390-linux.xml" and "s390x-linux.xml".
11909 * NEWS: Announce new feature.
11910
11911 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11912
11913 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11914
11915 2014-01-22 Pedro Alves <palves@redhat.com>
11916
11917 * xtensa-config.c: Include defs.h.
11918
11919 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11920
11921 * common/common-utils.h: Add "ARI:" comment beside __func__
11922 reference.
11923
11924 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11925
11926 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11927 documentation a bit.
11928
11929 2014-01-21 Roland McGrath <mcgrathr@google.com>
11930
11931 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11932 * configure: Regenerate.
11933 * aclocal.m4: Regenerate.
11934 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11935 New substituted variables.
11936 (install-strip): New target.
11937 (INSTALL_SCRIPT): New substituted variable.
11938 (FLAGS_TO_PASS): Add it.
11939 (install-only): Use $(INSTALL_SCRIPT) rather than
11940 $(INSTALL_PROGRAM) for gcore.
11941
11942 2014-01-20 Tom Tromey <tromey@redhat.com>
11943
11944 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11945 together.
11946
11947 2014-01-20 Tom Tromey <tromey@redhat.com>
11948
11949 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11950 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11951 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11952 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11953 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11954 (struct cmd_list_element) <flags>: Remove.
11955 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11956 doc_allocated>: New fields.
11957 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11958 bitfields.
11959 * maint.c (maintenance_do_deprecate): Update.
11960 * top.c (execute_command): Update.
11961
11962 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11963
11964 * xtensa-linux-nat.c: Include asm/ptrace.h.
11965
11966 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11967
11968 * Makefile.in (SFILES): Add d-support.c.
11969 (COMMON_OBS): Add d-support.o.
11970 * d-lang.h (d_parse_symbol): Add comment, now defined in
11971 d-support.c.
11972 * d-lang.c (parse_call_convention)
11973 (parse_attributes, parse_function_types)
11974 (parse_function_args, parse_type, parse_identifier)
11975 (call_convention_p, d_parse_symbol): Move functions to ...
11976 * d-support.c: ... New file.
11977
11978 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11979
11980 * d-lang.h (d_parse_symbol): Add declaration.
11981 * d-lang.c (extract_identifiers)
11982 (extract_type_info): Remove functions.
11983 (parse_call_convention, parse_attributes)
11984 (parse_function_types, parse_function_args)
11985 (parse_type, parse_identifier, call_convention_p)
11986 (d_parse_symbol): New functions.
11987 (d_demangle): Use d_parse_symbol to demangle D symbols.
11988
11989 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11990
11991 * d-lang.h (struct builtin_d_type): New data type.
11992 (builtin_d_type): Add declaration.
11993 * d-lang.c (d_language_arch_info, build_d_types)
11994 (builtin_d_type): New functions.
11995 (enum d_primitive_types): New data type.
11996 (d_language_defn): Change c_language_arch_info to
11997 d_language_arch_info.
11998 (d_type_data): New static variable.
11999 (_initialize_d_language): Initialize d_type_data.
12000
12001 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12002
12003 * d-lang.h (d_main_name): Add declaration.
12004 * d-lang.c (d_main_name): New function.
12005 * symtab.c (find_main_name): Add call to d_main_name.
12006
12007 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12008
12009 * d-lang.c (d_language_defn): Change macro_expansion_c to
12010 macro_expansion_no.
12011
12012 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12013
12014 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12015
12016 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12017
12018 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12019 gdb_exception" declaration.
12020 * remote.c (getpkt_or_notif_sane): Likewise.
12021
12022 2014-01-17 Doug Evans <dje@google.com>
12023
12024 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12025 function, contents of dirnames_to_char_ptr_vec_append moved here.
12026 (delim_string_to_char_ptr_vec): New function.
12027 (dirnames_to_char_ptr_vec_append): Rewrite.
12028 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12029
12030 2014-01-17 Doug Evans <dje@google.com>
12031
12032 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12033 and moved here ...
12034 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12035 #include "common-utils.h".
12036 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12037 * common/vec.h (VEC_ASSERT_PASS): Update.
12038 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12039 (MACH_CHECK_ERROR): Update.
12040
12041 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12042
12043 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12044 comments.
12045 * gdbarch.h: Regenerate.
12046
12047 2014-01-16 Tom Tromey <tromey@redhat.com>
12048
12049 * value.c (struct value) <regnum>: Move earlier.
12050
12051 2014-01-16 Tom Tromey <tromey@redhat.com>
12052
12053 * remote.c (extended_remote_create_inferior): Rename from
12054 extended_remote_create_inferior_1. Add "ops" argument. Remove
12055 old implementation.
12056
12057 2014-01-16 Pedro Alves <palves@redhat.com>
12058
12059 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12060 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12061 the backchain.
12062
12063 2014-01-16 Doug Evans <dje@google.com>
12064
12065 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12066
12067 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12068
12069 * btrace.h (btrace_thread_flag): New.
12070 (struct btrace_thread_info) <flags>: New.
12071 * record-btrace.c (record_btrace_resume_thread)
12072 (record_btrace_find_thread_to_move, btrace_step_no_history)
12073 (btrace_step_stopped, record_btrace_start_replaying)
12074 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12075 (record_btrace_find_resume_thread): New.
12076 (record_btrace_resume, record_btrace_wait): Extend.
12077 (record_btrace_can_execute_reverse): New.
12078 (record_btrace_open): Fail in non-stop mode.
12079 (record_btrace_set_replay): Split into this, ...
12080 (record_btrace_stop_replaying): ... this, ...
12081 (record_btrace_clear_histories): ... and this.
12082 (init_record_btrace_ops): Init to_can_execute_reverse.
12083 * NEWS: Announce it.
12084
12085 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12086
12087 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12088 (forward_target_decr_pc_after_break)
12089 (target_decr_pc_after_break): New.
12090 * target.c (forward_target_decr_pc_after_break)
12091 (target_decr_pc_after_break): New.
12092 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12093 instead of gdbarch_decr_pc_after_break.
12094 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12095 instead of gdbarch_decr_pc_after_break.
12096 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12097 instead of gdbarch_decr_pc_after_break.
12098 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12099 instead of gdbarch_decr_pc_after_break.
12100 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12101 instead of gdbarch_decr_pc_after_break.
12102 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12103 instead of gdbarch_decr_pc_after_break.
12104
12105 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12106
12107 * btrace.c: Include regcache.h.
12108 (btrace_add_pc): New.
12109 (btrace_enable): Call btrace_add_pc.
12110 (btrace_is_empty): New.
12111 * btrace.h (btrace_is_empty): New.
12112 * record-btrace.c (require_btrace, record_btrace_info): Call
12113 btrace_is_empty.
12114
12115 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12116
12117 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12118 Support delta reads.
12119 (linux_disable_btrace): Change return type.
12120 * common/linux-btrace.h (linux_read_btrace): Change parameters
12121 and return type to allow error reporting. Update users.
12122 (linux_disable_btrace): Change return type. Update users.
12123 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12124 New.
12125 (btrace_error): New.
12126 (btrace_block) <begin>: Comment on BEGIN == 0.
12127 * btrace.c (btrace_compute_ftrace): Start from the end of
12128 the current trace.
12129 (btrace_stitch_trace, btrace_clear_history): New.
12130 (btrace_fetch): Read delta trace, return if replaying.
12131 (btrace_clear): Move clear history code to btrace_clear_history.
12132 (parse_xml_btrace): Throw an error if parsing failed.
12133 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12134 and return type to allow error reporting.
12135 (target_read_btrace): Change parameters and return type to allow
12136 error reporting.
12137 * target.c (target_read_btrace): Update.
12138 * remote.c (remote_read_btrace): Support delta reads. Pass
12139 errors on.
12140 * NEWS: Announce it.
12141
12142 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12143
12144 * record.h (record_btrace_frame_unwind)
12145 (record_btrace_tailcall_frame_unwind): New declarations.
12146 * dwarf2-frame: Include record.h
12147 (dwarf2_frame_cfa): Throw an error for btrace frames.
12148 * record-btrace.c: Include hashtab.h.
12149 (btrace_get_bfun_name): New.
12150 (btrace_call_history): Call btrace_get_bfun_name.
12151 (struct btrace_frame_cache): New.
12152 (bfcache): New.
12153 (bfcache_hash, bfcache_eq, bfcache_new): New.
12154 (btrace_get_frame_function): New.
12155 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12156 (record_btrace_frame_this_id): Compute own id.
12157 (record_btrace_frame_prev_register): Provide PC, throw_error
12158 for all other registers.
12159 (record_btrace_frame_sniffer): Detect btrace frames.
12160 (record_btrace_tailcall_frame_sniffer): New.
12161 (record_btrace_frame_dealloc_cache): New.
12162 (record_btrace_frame_unwind): Add new functions.
12163 (record_btrace_tailcall_frame_unwind): New.
12164 (_initialize_record_btrace): Allocate cache.
12165 * btrace.c (btrace_clear): Call reinit_frame_cache.
12166 * NEWS: Announce it.
12167
12168 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12169
12170 * record-btrace.c (record_btrace_set_replay)
12171 (record_btrace_goto_begin, record_btrace_goto_end)
12172 (record_btrace_goto): New.
12173 (init_record_btrace_ops): Initialize them.
12174 * NEWS: Announce it.
12175
12176 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12177
12178 * record-btrace.c (record_btrace_find_new_threads)
12179 (record_btrace_thread_alive): New.
12180 (init_record_btrace_ops): Initialize to_find_new_threads and
12181 to_thread_alive.
12182
12183 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12184
12185 * record-btrace.c (record_btrace_resume): New.
12186 (record_btrace_wait): New.
12187 (init_record_btrace_ops): Initialize to_wait and to_resume.
12188
12189 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12190
12191 * record-btrace.c (record_btrace_xfer_partial)
12192 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12193 (record_btrace_allow_memory_access): New.
12194 (init_record_btrace_ops): Initialize new methods.
12195 * target.c (raw_memory_xfer_partial): Bail out if target reports
12196 that this memory is not available.
12197
12198 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12199
12200 * target.h (target_ops) <to_insert_breakpoint>
12201 <to_remove_breakpoint>: Add target_ops parameter.
12202 (forward_target_insert_breakpoint): New.
12203 (forward_target_remove_breakpoint): New.
12204 (memory_remove_breakpoint, memory_insert_breakpoint):
12205 Add target_ops parameter.
12206 * target.c (target_insert_breakpoint): Split into this and ...
12207 (forward_target_insert_breakpoint): ... this.
12208 (target_remove_breakpoint): Split into this and ...
12209 (forward_target_remove_breakpoint): ... this.
12210 (debug_to_insert_breakpoint): Add target_ops parameter.
12211 Call forward_target_insert_breakpoint.
12212 (debug_to_remove_breakpoint): Add target_ops parameter.
12213 Call forward_target_remove_breakpoint.
12214 (update_current_target): Do not inherit or default to_insert_breakpoint
12215 and to_remove_breakpoint.
12216 * corelow.c (ignore): Add target_ops parameter.
12217 * exec.c (ignore): Add target_ops parameter.
12218 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12219 Add target_ops parameter.
12220 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12221 Add target_ops parameter.
12222 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12223 Add target_ops parameter.
12224 * record-full.c (record_full_beneath_to_insert_breakpoint)
12225 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12226 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12227 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12228 (record_full_core_remove_breakpoint): Add target_ops parameter.
12229 Update users.
12230 (record_full_beneath_to_insert_breakpoint_ops)
12231 (record_full_beneath_to_remove_breakpoint_ops)
12232 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12233 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12234 tmp_to_remove_breakpoint_ops,
12235 record_full_beneath_to_insert_breakpoint_ops, and
12236 record_full_beneath_to_remove_breakpoint_ops.
12237 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12238 (m32r_remove_breakpoint): Add target_ops parameter.
12239 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12240 Add target_ops parameter.
12241 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12242 Add target_ops parameter.
12243
12244 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12245 Markus Metzger <markus.t.metzger@intel.com>
12246
12247 * record-btrace.c: Include frame-unwind.h.
12248 (record_btrace_frame_unwind_stop_reason)
12249 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12250 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12251 New.
12252 (init_record_btrace_ops): Install it.
12253
12254 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12255
12256 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12257 get_prev_frame_1.
12258
12259 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12260
12261 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12262 earlier.
12263
12264 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12265
12266 * frame-unwind.c: Include target.h.
12267 (frame_unwind_try_unwinder): New function with code from ...
12268 (frame_unwind_find_by_frame): ... here. New variable
12269 unwinder_from_target, call also target_get_unwinder)
12270 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12271 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12272 * target.h (struct target_ops): New fields to_get_unwinder and
12273 to_get_tailcall_unwinder.
12274 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12275
12276 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12277
12278 * record-btrace.c (record_btrace_fetch_registers)
12279 (record_btrace_store_registers)
12280 (record_btrace_to_prepare_to_store): New.
12281 (init_record_btrace_ops): Add the above.
12282
12283 2014-01-16 Tom Tromey <tromey@redhat.com>
12284
12285 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12286 * target.h (struct target_ops) <to_prepare_to_store>: Add
12287 argument.
12288 (target_prepare_to_store): Add argument.
12289 * target.c (debug_to_prepare_to_store): Add argument.
12290 (update_current_target): Update.
12291 * remote.c (remote_prepare_to_store): Add 'self' argument.
12292 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12293 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12294 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12295 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12296 argument.
12297 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12298 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12299 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12300 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12301 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12302
12303 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12304
12305 * btrace.h (replay) <replay>: New.
12306 (btrace_is_replaying): New.
12307 * btrace.c (btrace_clear): Free replay iterator.
12308 (btrace_is_replaying): New.
12309 * record-btrace.c (record_btrace_is_replaying): New.
12310 (record_btrace_info): Print insn number if replaying.
12311 (record_btrace_insn_history): Start at replay position.
12312 (record_btrace_call_history): Start at replay position.
12313 (init_record_btrace_ops): Init to_record_is_replaying.
12314
12315 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12316
12317 * record-btrace.c (record_btrace_insn_history_range): Include
12318 end.
12319 (record_btrace_insn_history_from): Adjust range.
12320 (record_btrace_call_history_range): Include
12321 end.
12322 (record_btrace_call_history_from): Adjust range.
12323 * NEWS: Announce changes.
12324
12325 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12326
12327 * record.h (enum record_print_flag)
12328 <record_print_indent_calls>: New.
12329 * record.c (get_call_history_modifiers): Recognize /c modifier.
12330 (_initialize_record): Document /c modifier.
12331 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12332 Reorder fields. Optionally indent the function name. Update
12333 all users.
12334 * NEWS: Announce changes.
12335
12336 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12337
12338 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12339
12340 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12341
12342 * btrace.c (ftrace_new_function): Start counting at one.
12343 * record-btrace.c (record_btrace_info): Adjust number of calls
12344 and insns.
12345 * NEWS: Announce it.
12346
12347 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12348
12349 * record-btrace.c (btrace_call_history_insn_range): Print
12350 insn range as [begin, end].
12351
12352 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12353
12354 * btrace.h (struct btrace_func_link): New.
12355 (enum btrace_function_flag): New.
12356 (struct btrace_inst): Rename to ...
12357 (struct btrace_insn): ...this. Update all users.
12358 (struct btrace_func) <ibegin, iend>: Remove.
12359 (struct btrace_func_link): New.
12360 (struct btrace_func): Rename to ...
12361 (struct btrace_function): ...this. Update all users.
12362 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12363 (number, level, flags>: New.
12364 (struct btrace_insn_iterator): Rename to ...
12365 (struct btrace_insn_history): ...this.
12366 Update all users.
12367 (struct btrace_insn_iterator, btrace_call_iterator): New.
12368 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12369 (struct btrace_target_info) <begin, end, level>
12370 <insn_history, call_history>: New.
12371 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12372 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12373 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12374 (btrace_call_number, btrace_call_begin, btrace_call_end)
12375 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12376 (btrace_find_function_by_number, btrace_set_insn_history)
12377 (btrace_set_call_history): New.
12378 * btrace.c (btrace_init_insn_iterator)
12379 (btrace_init_func_iterator, compute_itrace): Remove.
12380 (ftrace_print_function_name, ftrace_print_filename)
12381 (ftrace_skip_file): Change
12382 parameter to const.
12383 (ftrace_init_func): Remove.
12384 (ftrace_debug): Use new btrace_function fields.
12385 (ftrace_function_switched): Also consider gaining and
12386 losing symbol information).
12387 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12388 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12389 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12390 New.
12391 (ftrace_new_function): Move. Remove debug print.
12392 (ftrace_update_lines, ftrace_update_insns): New.
12393 (ftrace_update_function): Check for call, ret, and jump.
12394 (compute_ftrace): Renamed to ...
12395 (btrace_compute_ftrace): ...this. Rewritten to compute call
12396 stack.
12397 (btrace_fetch, btrace_clear): Updated.
12398 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12399 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12400 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12401 (btrace_call_number, btrace_call_begin, btrace_call_end)
12402 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12403 (btrace_find_function_by_number, btrace_set_insn_history)
12404 (btrace_set_call_history): New.
12405 * record-btrace.c (require_btrace): Use new btrace thread
12406 info fields.
12407 (record_btrace_info, btrace_insn_history)
12408 (record_btrace_insn_history, record_btrace_insn_history_range):
12409 Use new btrace thread info fields and new iterator.
12410 (btrace_func_history_src_line): Rename to ...
12411 (btrace_call_history_src_line): ...this. Use new btrace
12412 thread info fields.
12413 (btrace_func_history): Rename to ...
12414 (btrace_call_history): ...this. Use new btrace thread info
12415 fields and new iterator.
12416 (record_btrace_call_history, record_btrace_call_history_range):
12417 Use new btrace thread info fields and new iterator.
12418
12419 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12420
12421 * frame.h (frame_id_build_unavailable_stack_special): New.
12422 * frame.c (frame_id_build_unavailable_stack_special): New.
12423
12424 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12425
12426 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12427 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12428 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12429 to gdbarch.
12430 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12431 (i386_insn_is_jump, i386_jmp_p): New.
12432 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12433 insn_is_jump to gdbarch.
12434 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12435 * gdbarch.h: Regenerated.
12436 * gdbarch.c: Regenerated.
12437 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12438 (default_insn_is_jump): New.
12439 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12440 (default_insn_is_jump): New.
12441
12442 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12443
12444 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12445 Change to ...
12446 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12447 (btrace_read_type) <btrace_read_new>: Change to ...
12448 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12449
12450 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12451
12452 * common/linux-btrace.c (linux_read_btrace): Free trace from
12453 previous iteration.
12454
12455 2014-01-15 Doug Evans <dje@google.com>
12456
12457 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12458 uint32_t.
12459
12460 2014-01-15 Tom Tromey <tromey@redhat.com>
12461
12462 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12463 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12464 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12465 (set_objfile_main_name): New function.
12466 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12467 language_of_main>: New fields.
12468 (set_objfile_main_name): Declare.
12469 * symtab.c (find_main_name): Loop over objfiles to find the main
12470 name and language.
12471 (set_main_name): Now static.
12472 (get_main_info): Add comment.
12473 * symtab.h (set_main_name): Don't declare.
12474
12475 2014-01-15 Tom Tromey <tromey@redhat.com>
12476
12477 * symtab.c (main_progspace_key): New global.
12478 (struct main_info): New.
12479 (name_of_main, language_of_main): Remove.
12480 (get_main_info, main_info_cleanup): New function.
12481 (set_main_name, main_name, main_language): Use get_main_info.
12482 (_initialize_symtab): Initialize main_progspace_key.
12483
12484 2014-01-15 Tom Tromey <tromey@redhat.com>
12485
12486 * dbxread.c (process_one_symbol): Update.
12487 * dwarf2read.c (read_partial_die): Update.
12488 * symfile.c (set_initial_language): Call main_language.
12489 * symtab.c (language_of_main): Now static.
12490 (set_main_name): Add 'lang' parameter.
12491 (find_main_name): Update.
12492 (main_language): New function.
12493 (symtab_observer_executable_changed): Update.
12494 * symtab.h (set_main_name): Update.
12495 (language_of_main): Remove.
12496 (main_language): Declare.
12497
12498 2014-01-15 Tom Tromey <tromey@redhat.com>
12499
12500 * symfile.c (init_entry_point_info): Use new "initialized" field.
12501 Update.
12502 * objfiles.h (struct entry_point) <initialized>: New field.
12503 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12504 (struct objfile) <ei>: ...here. Remove.
12505 * objfiles.c (entry_point_address_query): Update.
12506
12507 2014-01-15 Tom Tromey <tromey@redhat.com>
12508
12509 * objfiles.c (entry_point_address_query): Relocate entry point
12510 address.
12511 (objfile_relocate1): Do not relocate entry point address.
12512 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12513 <the_bfd_section_index>: New field.
12514 * symfile.c (init_entry_point_info): Find the entry point's
12515 section.
12516
12517 2014-01-15 Tom Tromey <tromey@redhat.com>
12518
12519 * solib-frv.c (enable_break): Use entry_point_address_query.
12520
12521 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12522
12523 * NEWS: Add note on improved process record-replay on
12524 arm*-linux* targets.
12525
12526 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12527
12528 * arm-tdep.c (enum arm_record_result): New enum.
12529 (arm_record_unsupported_insn): New function.
12530 (arm_record_coproc_data_proc): Removed.
12531 (thumb2_record_ld_st_multiple): New function.
12532 (thumb2_record_ld_st_dual_ex_tbb): New function.
12533 (thumb2_record_data_proc_sreg_mimm): New function.
12534 (thumb2_record_ps_dest_generic): New function.
12535 (thumb2_record_branch_misc_cntrl): New function.
12536 (thumb2_record_str_single_data): New function.
12537 (thumb2_record_ld_mem_hints): New function.
12538 (thumb2_record_ld_word): New function.
12539 (thumb2_record_lmul_lmla_div): New function.
12540 (thumb2_record_decode_insn_handler): New function.
12541 (decode_insn): Add thumb32 instruction handlers.
12542
12543 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12544
12545 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12546 (struct arm_linux_record_tdep): Declare.
12547 (arm_canonicalize_syscall): New function.
12548 (arm_all_but_pc_registers_record): New function.
12549 (arm_linux_syscall_record): New function.
12550 (arm_linux_init_abi): Add syscall recording constructs.
12551 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12552 decoding. (arm_record_coproc_data_proc): Update arm syscall
12553 decoding.
12554 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12555 <arm_syscall_record>: New field.
12556 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12557 gdb_target_obs.
12558
12559 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12560
12561 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12562 register for push instruction recording.
12563
12564 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12565
12566 * arm-tdep.c (thumb_record_misc): Update to correct logical
12567 error while recording ldm, ldmia and pop instructions.
12568
12569 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12570
12571 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12572
12573 2014-01-15 Pedro Alves <palves@redhat.com>
12574
12575 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12576 (go32_resume, go32_fetch_registers, store_register)
12577 (go32_store_registers, go32_prepare_to_store)
12578 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12579 (go32_create_inferior, go32_can_run, go32_terminal_init)
12580 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12581 declarations.
12582
12583 2014-01-15 Tom Tromey <tromey@redhat.com>
12584
12585 * target.h (async_callback_ftype): New typedef.
12586 (struct target_ops) <to_async>: Use it.
12587
12588 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12589
12590 * python/py-value.c (get_field_type): Remove unnecessary curly
12591 braces for single-statement if block.
12592
12593 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12594
12595 * python/py-type.c (convert_field): Add missing empty line
12596 after declarations.
12597
12598 2014-01-14 Doug Evans <dje@google.com>
12599
12600 * symfile.h (expand_symtabs_matching): Renamed from
12601 expand_partial_symbol_names. Update prototype.
12602 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12603 * symfile.c (expand_symtabs_matching): Renamed from
12604 expand_partial_symbol_names. New args file_matcher, kind.
12605 Rename arg fun to symbol_matcher.
12606 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12607 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12608 ada_expand_partial_symbol_name.
12609 (ada_make_symbol_completion_list): Update to call
12610 expand_symtabs_matching.
12611 (ada_add_global_exceptions): Call expand_symtabs_matching.
12612 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12613 call map_symbol_filenames.
12614 * symtab.c (sources_info): Update to call map_symbol_filenames.
12615 (search_symbols): Call expand_symtabs_matching.
12616 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12617 (default_make_symbol_completion_list_break_on): Update to call
12618 expand_symtabs_matching.
12619 (make_source_files_completion_list): Update to call
12620 map_symbol_filenames.
12621
12622 2014-01-14 Doug Evans <dje@google.com>
12623
12624 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12625 (expand_symtabs_symbol_matcher_ftype): New typedef.
12626 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12627 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12628 * symfile.c (expand_partial_symbol_names): Update to use
12629 expand_symtabs_symbol_matcher_ftype.
12630 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12631 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12632 Arg name_matcher renamed to symbol_matcher.
12633 * psymtab.c (recursively_search_psymtabs): Update to use
12634 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12635 sym_matcher.
12636 (expand_symtabs_matching_via_partial): Update to use
12637 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12638 Arg name_matcher renamed to symbol_matcher.
12639
12640 2014-01-14 Doug Evans <dje@google.com>
12641
12642 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12643 (map_partial_symbol_filenames): Ditto.
12644 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12645 (map_partial_symbol_filenames): Ditto.
12646 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12647 (map_partial_symbol_filenames): Ditto.
12648 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12649 (map_partial_symbol_filenames): Ditto.
12650 * symtab.c: Delete #include "psymtab.h".
12651
12652 2014-01-14 Pedro Alves <palves@redhat.com>
12653 Tom Tromey <tromey@redhat.com>
12654
12655 * infrun.c (use_displaced_stepping): Use find_record_target
12656 instead of RECORD_IS_USED.
12657 (adjust_pc_after_break): Use record_full_is_used instead of
12658 RECORD_IS_USED.
12659 * record-btrace.c (record_btrace_open): Call record_preopen
12660 instead of checking RECORD_IS_USED.
12661 * record-full.c (record_full_shortname)
12662 (record_full_core_shortname): New globals.
12663 (record_full_is_used): New function.
12664 (find_full_open): Call record_preopen instead of checking
12665 RECORD_IS_USED.
12666 (init_record_full_ops): Set the target's shortname to
12667 record_full_shortname.
12668 (init_record_full_core_ops): Set the target's shortname to
12669 record_full_core_shortname.
12670 * record-full.h (record_full_is_used): Declare.
12671 * record.c (find_record_target): Make extern.
12672 (record_preopen): New function.
12673 * record.h (RECORD_IS_USED): Delete macro.
12674 (find_record_target, record_preopen): Declare functions.
12675
12676 2014-01-14 Yao Qi <yao@codesourcery.com>
12677
12678 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12679 'len''s type to ULONGEST.
12680 (core_xfer_shared_libraries_aix): Likewise.
12681 * gdbarch.c, gdbarch.h: Regenerated.
12682 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12683 Change type of 'len' to ULONGEST.
12684 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12685 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12686
12687 2014-01-14 Yao Qi <yao@codesourcery.com>
12688
12689 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12690 type of 'len' to ULONGEST.
12691 (linux_xfer_osdata_processgroups): Likewise.
12692 (linux_xfer_osdata_threads): Likewise.
12693 (linux_xfer_osdata_fds): Likewise.
12694 (linux_xfer_osdata_isockets): Likewise.
12695 (linux_xfer_osdata_shm): Likewise.
12696 (linux_xfer_osdata_sem): Likewise.
12697 (linux_xfer_osdata_msg): Likewise.
12698 (linux_common_xfer_osdata): Likewise.
12699 (struct osdata_type) <getter>: Likewise.
12700 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12701 the declaration.
12702
12703 2014-01-14 Yao Qi <yao@codesourcery.com>
12704
12705 * target.h (target_xfer_partial_ftype): Update.
12706 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12707 ULONGEST.
12708 * aix-thread.c (aix_thread_xfer_partial): Change type of
12709 argument 'len' to ULONGEST.
12710 * auxv.c (procfs_xfer_auxv): Likewise.
12711 (ld_so_xfer_auxv): Likewise.
12712 (memory_xfer_auxv): Likewise.
12713 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12714 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12715 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12716 * corelow.c (core_xfer_partial): Likewise.
12717 * ctf.c (ctf_xfer_partial): Likewise.
12718 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12719 '%u'.
12720 (darwin_read_dyld_info): Likewise.
12721 (darwin_xfer_partial): Likewise.
12722 * exec.c (section_table_xfer_memory_partial): Likewise.
12723 (exec_xfer_partial): Likewise.
12724 * exec.h (section_table_xfer_memory_partial): Update
12725 declaration.
12726 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12727 instead of plongest.
12728 (gnu_xfer_partial): Likewise.
12729 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12730 (ia64_hpux_xfer_solib_got): Likewise.
12731 (ia64_hpux_xfer_partial): Likewise.
12732 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12733 * inf-ptrace.c (inf_ptrace_xfer_partial):
12734 * inf-ttrace.c (inf_ttrace_xfer_partial):
12735 * linux-nat.c (linux_xfer_siginfo): Likewise.
12736 (linux_nat_xfer_partial): Likewise.
12737 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12738 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12739 * monitor.c (monitor_xfer_memory): Likewise.
12740 (monitor_xfer_partial): Likewise.
12741 * procfs.c (procfs_xfer_partial): Likewise.
12742 * record-full.c (record_full_xfer_partial): Likewise.
12743 (record_full_core_xfer_partial): Likewise.
12744 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12745 instead of plongest.
12746 (gdbsim_xfer_partial): Likewise.
12747 * remote.c (remote_xfer_partial): Likewise.
12748 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12749 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12750 declaration.
12751 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12752 (rs6000_xfer_shared_libraries): Likewise.
12753 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12754 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12755 (sparc_xfer_partial): Likewise.
12756 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12757 (spu_xfer_partial): Likewise.
12758 * spu-multiarch.c (spu_xfer_partial): Likewise.
12759 * target.c (target_read_live_memory): Likewise.
12760 (memory_xfer_live_readonly_partial): Likewise.
12761 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12762 (target_xfer_partial, default_xfer_partial): Likewise.
12763 (current_xfer_partial): Likewise.
12764 * tracepoint.c (tfile_xfer_partial): Likewise.
12765 * windows-nat.c (windows_xfer_memory): Likewise. Call
12766 pulongest instead of plongest.
12767 (windows_xfer_partial): Likewise.
12768 (windows_xfer_shared_libraries): Likewise.
12769
12770 2014-01-14 Yao Qi <yao@codesourcery.com>
12771
12772 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12773 target_xfer_partial_ftype.
12774
12775 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12776
12777 PR python/15464
12778 PR python/16113
12779 * valops.c (value_struct_elt_bitpos): New function
12780 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12781 object to 'None' if the field name is an empty string ("").
12782 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12783 attribute to look for a field when 'name' is 'None'.
12784 (get_field_type): New function
12785
12786 2014-01-13 Doug Evans <dje@google.com>
12787
12788 PR symtab/16426
12789 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12790 (try_open_dwop_file): Ditto.
12791 * gdb_bfd.c: #include "vec.h".
12792 (bfdp): New typedef.
12793 (struct gdb_bfd_data): New member included_bfds.
12794 (gdb_bfd_unref): Unref all included bfds.
12795 (gdb_bfd_record_inclusion): New function.
12796 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12797
12798 2014-01-13 Tom Tromey <tromey@redhat.com>
12799
12800 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12801
12802 2014-01-13 Tom Tromey <tromey@redhat.com>
12803
12804 * defs.h (use_windows): Remove.
12805 * gdb.c (main): Update.
12806 * main.c (captured_main, gdb_main): Update.
12807 * main.h (struct captured_main_args) <use_windows>: Remove.
12808 * top.c (use_windows): Remove.
12809
12810 2014-01-13 Tom Tromey <tromey@redhat.com>
12811
12812 * defs.h (deprecated_flush_hook): Remove.
12813
12814 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12815
12816 PR threads/16216
12817 * linux-thread-db.c (try_thread_db_load): Add parameter
12818 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12819 (try_thread_db_load_from_pdir_1): Move it there from here.
12820 (try_thread_db_load_from_sdir): Update caller.
12821 (try_thread_db_load_from_dir): Move it there from here.
12822
12823 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12824
12825 * regformats/regdat.sh: Always rewrite the register file.
12826
12827 2014-01-13 Pedro Alves <palves@redhat.com>
12828
12829 * Makefile.in (CHECK_HEADERS): New variable.
12830 (check-headers:): New rule.
12831
12832 2014-01-13 Tom Tromey <tromey@redhat.com>
12833
12834 * cli/cli-setshow.c (do_set_command): Update.
12835 * defs.h (deprecated_set_hook): Remove.
12836 * top.c (deprecated_set_hook): Remove.
12837
12838 2014-01-13 Pedro Alves <palves@redhat.com>
12839
12840 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12841 the tracepoint if the PC is a pseudo-register.
12842
12843 2014-01-13 Tom Tromey <tromey@redhat.com>
12844
12845 * defs.h (XCALLOC): Remove.
12846 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12847 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12848 * dwarf2loc.c (allocate_piece_closure): Likewise.
12849 * elfread.c (elf_symfile_segments): Likewise.
12850 (elf_symfile_segments): Likewise.
12851 * gdbtypes.c (copy_type_recursive): Likewise.
12852 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12853 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12854 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12855 XCALLOC.
12856 * mt-tdep.c (mt_gdbarch_init): Likewise.
12857 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12858 XCALLOC.
12859 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12860 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12861 * registry.c (registry_alloc_data): Likewise.
12862 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12863 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12864 * serial.c (serial_fdopen_ops): Likewise.
12865 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12866 XCALLOC.
12867 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12868 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12869 not XCALLOC.
12870
12871 2014-01-13 Tom Tromey <tromey@redhat.com>
12872
12873 * defs.h (XMALLOC): Remove.
12874 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12875 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12876 * cli-out.c (struct ui_out *): Likewise.
12877 * cli/cli-dump.c (add_dump_command): Likewise.
12878 (add_dump_command): Likewise.
12879 * complaints.c (get_complaints): Likewise.
12880 (find_complaint): Likewise.
12881 * dwarf2-frame.c (execute_cfa_program): Likewise.
12882 * dwarf2read.c (abbrev_table_read_table): Likewise.
12883 * gdbarch.sh: Likewise.
12884 * gdbarch.c: Rebuild.
12885 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12886 * interps.c (interp_new): Likewise.
12887 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12888 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12889 * mi/mi-console.c (mi_console_file_new): Likewise.
12890 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12891 * mi/mi-out.c (mi_out_new): Likewise.
12892 * mi/mi-parse.c (mi_parse): Likewise.
12893 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12894 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12895 * observer.c (xalloc_observer_list_node): Likewise.
12896 * regcache.c (regcache_xmalloc_1): Likewise.
12897 * reggroups.c (reggroup_new): Likewise.
12898 (_initialize_reggroup): Likewise.
12899 * registry.c (register_data_with_cleanup): Likewise.
12900 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12901 * ser-base.c (serial_ttystate): Likewise.
12902 * ser-mingw.c (make_pipe_state): Likewise.
12903 * ser-pipe.c (pipe_open): Likewise.
12904 * serial.c (serial_open): Likewise.
12905 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12906 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12907 (tui_alloc_win_info): Likewise.
12908 (tui_add_content_elements): Likewise.
12909 * tui/tui-file.c (tui_file_new): Likewise.
12910 * tui/tui-out.c (tui_out_new): Likewise.
12911 * ui-file.c (mem_file_new): Likewise.
12912 * ui-out.c (push_level): Likewise.
12913 (make_cleanup_ui_out_end): Likewise.
12914 (append_header_to_list): Likewise.
12915 (ui_out_new): Likewise.
12916 * user-regs.c (user_reg_add_builtin): Likewise.
12917
12918 2014-01-13 Tom Tromey <tromey@redhat.com>
12919
12920 * defs.h (XZALLOC): Remove.
12921 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12922 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12923 (get_ada_tasks_inferior_data): Likewise.
12924 * auto-load.c (get_auto_load_pspace_data): Likewise.
12925 * auxv.c (get_auxv_inferior_data): Likewise.
12926 * bfd-target.c (target_bfd_reopen): Likewise.
12927 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12928 (deprecated_insert_raw_breakpoint): Likewise.
12929 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12930 * corelow.c (core_open): Likewise.
12931 * darwin-nat.c (darwin_check_new_threads): Likewise.
12932 (darwin_attach_pid): Likewise.
12933 * dummy-frame.c (dummy_frame_push): Likewise.
12934 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12935 * dwarf2loc.c (allocate_piece_closure): Likewise.
12936 * elfread.c (elf_symfile_segments): Likewise.
12937 * eval.c (ptrmath_type_p): Likewise.
12938 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12939 * gdbtypes.c (alloc_type_arch): Likewise.
12940 (alloc_type_instance): Likewise.
12941 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12942 * inf-child.c (inf_child_can_use_agent): Likewise.
12943 * inflow.c (get_inflow_inferior_data): Likewise.
12944 * infrun.c (save_infcall_suspend_state): Likewise.
12945 * jit.c (jit_reader_load): Likewise.
12946 (get_jit_objfile_data): Likewise.
12947 (get_jit_program_space_data): Likewise.
12948 (jit_object_open_impl): Likewise.
12949 (jit_symtab_open_impl): Likewise.
12950 (jit_block_open_impl): Likewise.
12951 (jit_frame_sniffer): Likewise.
12952 * linux-fork.c (add_fork): Likewise.
12953 * maint.c (make_command_stats_cleanup): Likewise.
12954 * objfiles.c (get_objfile_pspace_data): Likewise.
12955 * opencl-lang.c (struct lval_closure): Likewise.
12956 * osdata.c (osdata_start_osdata): Likewise.
12957 * progspace.c (new_address_space): Likewise.
12958 (add_program_space): Likewise.
12959 * remote-sim.c (get_sim_inferior_data): Likewise.
12960 * sh-tdep.c (sh_gdbarch_init): Likewise.
12961 * skip.c (Ignore): Likewise.
12962 (skip_delete_command): Likewise.
12963 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12964 (library_list_start_library): Likewise.
12965 (solib_aix_current_sos): Likewise.
12966 * solib-darwin.c (get_darwin_info): Likewise.
12967 (darwin_current_sos): Likewise.
12968 * solib-dsbt.c (get_dsbt_info): Likewise.
12969 * solib-ia64-hpux.c (new_so_list): Likewise.
12970 (ia64_hpux_get_solib_linkage_addr): Likewise.
12971 * solib-spu.c (append_ocl_sos): Likewise.
12972 (spu_current_sos): Likewise.
12973 * solib-svr4.c (get_svr4_info): Likewise.
12974 (svr4_keep_data_in_core): Likewise.
12975 (library_list_start_library): Likewise.
12976 (svr4_default_sos): Likewise.
12977 (svr4_read_so_list): Likewise.
12978 * solib-target.c (library_list_start_library): Likewise.
12979 (solib_target_current_sos): Likewise.
12980 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12981 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12982 * symfile.c (default_symfile_segments): Likewise.
12983 * target-descriptions.c (tdesc_data_init): Likewise.
12984 (tdesc_create_reg): Likewise.
12985 (struct tdesc_type *): Likewise.
12986 (tdesc_create_vector): Likewise.
12987 (tdesc_set_struct_size): Likewise.
12988 (struct tdesc_type *): Likewise.
12989 (tdesc_free_feature): Likewise.
12990 (tdesc_create_feature): Likewise.
12991 * windows-nat.c (windows_add_thread): Likewise.
12992 (windows_make_so): Likewise.
12993 * xml-support.c (gdb_xml_body_text): Likewise.
12994 (gdb_xml_create_parser_and_cleanup): Likewise.
12995 (xml_process_xincludes): Likewise.
12996 * xml-syscall.c (allocate_syscalls_info): Likewise.
12997 (syscall_create_syscall_desc): Likewise.
12998
12999 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13000
13001 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13002 function, with code from i386_stap_parse_special_token.
13003 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13004 (i386_stap_parse_special_token): Move code to the two functions
13005 above; simplify it.
13006
13007 2014-01-09 Pedro Alves <palves@redhat.com>
13008 Hui Zhu <hui@codesourcery.com>
13009
13010 PR gdb/16101
13011 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13012 bp_err_string. Don't mark the location shlib_disabled if the
13013 error thrown wasn't a generic or memory error. Catch errors
13014 thrown while inserting breakpoints in overlayed code. Output
13015 error message of software breakpoints.
13016 * remote.c (remote_insert_breakpoint): If this breakpoint has
13017 target-side commands but this stub doesn't support Z0 packets,
13018 throw NOT_SUPPORTED_ERROR error.
13019 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13020 * target.h (target_insert_breakpoint): Extend comment.
13021 (target_insert_hw_breakpoint): Add comment.
13022
13023 2014-01-08 Pedro Alves <palves@redhat.com>
13024
13025 * remote.c (remote_add_thread): Add threads silently if starting
13026 up.
13027 (remote_notice_new_inferior): If in all-stop, and starting up,
13028 don't call notice_new_inferior.
13029 (get_current_thread): New function, factored out from ...
13030 (add_current_inferior_and_thread): ... this. Adjust.
13031 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13032 found any thread, then select the remote's current thread as GDB's
13033 current thread too.
13034
13035 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13036
13037 * NEWS: Create a new section for the next release branch.
13038 Rename the section of the current branch, now that it has
13039 been cut.
13040
13041 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13042
13043 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13044 * version.in: Bump version to 7.7.50.DATE-cvs.
13045
13046 2014-01-08 Yao Qi <yao@codesourcery.com>
13047
13048 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13049 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13050 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13051
13052 2014-01-08 Yao Qi <yao@codesourcery.com>
13053
13054 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13055 return value of bfd_get_filename to symbol_file_add_from_bfd.
13056
13057 2014-01-08 Pierre Muller <muller@sourceware.org>
13058
13059 Fix PR16201.
13060 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13061 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13062 to prim_record_mininal_symbol_and_info.
13063 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13064 in call to prim_record_minimal_symbol_and_info.
13065 (read_pe_exported_syms): Set index field of section_data.
13066
13067 2014-01-07 Andrew Pinski <apinski@cavium.com>
13068
13069 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13070 * features/aarch64.c: Regenerate.
13071
13072 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13073
13074 * target.c (return_null): Define.
13075 (update_current_target): Use it instead of return_zero for
13076 functions that return a pointer.
13077
13078 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13079
13080 * source.c (add_path): Fix check for duplicated paths in the previously
13081 included paths.
13082
13083 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13084
13085 * ada-lang.c: Remove duplicated include statements.
13086 * alphabsd-nat.c: Ditto.
13087 * amd64-darwin-tdep.c: Ditto.
13088 * amd64fbsd-nat.c: Ditto.
13089 * auto-load.c: Ditto.
13090 * ax-gdb.c: Ditto.
13091 * breakpoint.c: Ditto.
13092 * dbxread.c: Ditto.
13093 * fork-child.c: Ditto.
13094 * gdb_usleep.c: Ditto.
13095 * i386-darwin-tdep.c: Ditto.
13096 * i386fbsd-nat.c: Ditto.
13097 * infcmd.c: Ditto.
13098 * inferior.c: Ditto.
13099 * jv-lang.c: Ditto.
13100 * linux-nat.c: Ditto.
13101 * linux-tdep.c: Ditto.
13102 * m68kbsd-nat.c: Ditto.
13103 * m68klinux-nat.c: Ditto.
13104 * microblaze-tdep.c: Ditto.
13105 * mips-linux-tdep.c: Ditto.
13106 * mn10300-tdep.c: Ditto.
13107 * nto-tdep.c: Ditto.
13108 * opencl-lang.c: Ditto.
13109 * osdata.c: Ditto.
13110 * printcmd.c: Ditto.
13111 * regcache.c: Ditto.
13112 * remote-m32r-sdi.c: Ditto.
13113 * remote.c: Ditto.
13114 * symfile.c: Ditto.
13115 * symtab.c: Ditto.
13116 * tilegx-linux-nat.c: Ditto.
13117 * tilegx-tdep.c: Ditto.
13118 * tracepoint.c: Ditto.
13119 * valops.c: Ditto.
13120 * vaxbsd-nat.c: Ditto.
13121 * windows-nat.c: Ditto.
13122 * xtensa-tdep.c: Ditto.
13123
13124 2014-01-07 Yao Qi <yao@codesourcery.com>
13125
13126 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13127
13128 2014-01-07 Yao Qi <yao@codesourcery.com>
13129 Joel Brobecker <brobecker@adacore.com>
13130
13131 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13132 (pdc_write_regs): Likewise.
13133 (fetch_regs_kernel_thread): Likewise.
13134 (store_regs_kernel_thread): Likewise.
13135
13136 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13137
13138 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13139 tagged type objects to their actual type.
13140
13141 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13142
13143 * ada-valprint.c (print_field_values): Add "language" parameter.
13144 Update calls to print_field_values and print_variant_part.
13145 Pass new parameter "language" in call to val_print instead
13146 of "current_language". Replace call to ada_val_print by call
13147 to val_print.
13148 (print_variant_part): Add "language" parameter.
13149 (ada_val_print_struct_union): Update call to print_field_values.
13150
13151 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13152
13153 * ada-valprint.c (ui_memcpy): Delete.
13154 (ada_print_floating): Update documentation. Add empty line
13155 between between function documentation and implementation.
13156 Delete variable "buffer". Use ui_file_xstrdup in place of
13157 ui_file_put. Minor adjustments following this change.
13158
13159 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13160
13161 * ada-valprint.c (ada_val_print_string): New function,
13162 extracted from ada_val_print_array.
13163 (ada_val_print_array): Replace extracted code by call
13164 to ada_val_print_string followed by a return. Move
13165 "else" branch to the function's top block.
13166
13167 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13168
13169 * ada-valprint.c (ada_val_print_array): Move implementation
13170 down. Rename parameter "offset" and "val" into "offset_aligned"
13171 and "original_value" respectively. Add parameter "offset".
13172
13173 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13174
13175 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13176 re-organizing the code. Change the "???" message printed
13177 when target type is a TYPE_CODE_UNDEF into
13178 "<ref to undefined type>".
13179
13180 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13181
13182 * ada-valprint.c (print_record): Delete, implementation inlined...
13183 (ada_val_print_struct_union): ... here. Remove call to
13184 ada_check_typedef in inlined implementation.
13185
13186 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13187
13188 * ada-valprint.c (ada_val_print_gnat_array): New function,
13189 extracted from ada_val_print_1;
13190 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13191 (ada_val_print_flt, ada_val_print_struct_union)
13192 (ada_val_print_ref): Likewise.
13193 (ada_val_print_1): Delete variables i and elttype.
13194 Replace extracted-out code by call to corresponding
13195 new functions.
13196
13197 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13198
13199 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13200
13201 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13202
13203 * ada-valprint.c (ada_val_print_1): Replace calls to
13204 ada_val_print_1 by calls to val_print.
13205
13206 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13207
13208 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13209 Update calls to self accordingly. Replace calls to c_val_print
13210 by calls to val_print.
13211
13212 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13213
13214 * ada-valprint.c (print_record): Delete declaration.
13215 (adjust_type_signedness, ada_val_print_1): Likewise.
13216 (ada_val_print): Move function implementation down.
13217 (print_variant_part, print_field_values, print_record):
13218 Move function implementation up.
13219
13220 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13221
13222 * python/py-type.c (typy_get_name): New function.
13223 (type_object_getset): Add entry for attribute "name".
13224 * NEWS: Add entry mentioning this new attribute.
13225
13226 2014-01-07 Yao Qi <yao@codesourcery.com>
13227
13228 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13229 statement.
13230
13231 2014-01-07 Yao Qi <yao@codesourcery.com>
13232
13233 * gnu-nat.c (info_port_rights): Add qualifier const to
13234 argument args.
13235
13236 2014-01-07 Yao Qi <yao@codesourcery.com>
13237
13238 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13239
13240 2014-01-07 Yao Qi <yao@codesourcery.com>
13241
13242 * gnu-nat.c (make_inf) Update declaration.
13243 (make_inf): Make it static.
13244 (inf_set_traced): Likewise.
13245 (inf_port_to_thread, inf_task_died_status): Likewise.
13246
13247 2014-01-07 Yao Qi <yao@codesourcery.com>
13248
13249 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13250
13251 2014-01-07 Yao Qi <yao@codesourcery.com>
13252
13253 * gnu-nat.c (_initialize_gnu_nat): Declare.
13254
13255 2014-01-07 Yao Qi <yao@codesourcery.com>
13256
13257 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13258 'enum bfd_endian'.
13259 (struct gdbarch_info) <byte_order>: Change type to
13260 'enum bfd_endian'.
13261 <byte_order_for_code>: Likewise.
13262 * gdbarch.c, gdbarch.h: Regenerated.
13263
13264 2014-01-06 Sasha Smundak <asmundak@google.com>
13265
13266 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13267
13268 2014-01-06 Tom Tromey <tromey@redhat.com>
13269
13270 * doublest.c (convert_doublest_to_floatformat): Use const, not
13271 CONST.
13272 * somread.c (som_symtab_read): Likewise.
13273
13274 2014-01-07 Hui Zhu <hui@codesourcery.com>
13275
13276 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13277 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13278 (gdb_bfd_fopen): Ditto.
13279 (gdb_bfd_openr): Ditto.
13280 (gdb_bfd_openw): Ditto.
13281 (gdb_bfd_openr_iovec): Ditto.
13282 (gdb_bfd_fdopenr): Ditto.
13283 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13284 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13285 with xstrdup.
13286 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13287 with xstrdup.
13288 * symfile-mem.c (symbol_file_add_from_memory): Removed
13289 gdb_bfd_stash_filename.
13290
13291 2014-01-03 Doug Evans <dje@google.com>
13292
13293 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13294 output.
13295
13296 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13297
13298 Update year range in copyright notice of all files.
13299
13300 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13301
13302 * top.c (print_gdb_version): Set copyright year to 2014.
13303
13304 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13305
13306 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13307
13308 For older changes see ChangeLog-2013.
13309 \f
13310 Local Variables:
13311 mode: change-log
13312 left-margin: 8
13313 fill-column: 74
13314 version-control: never
13315 coding: utf-8
13316 End:
This page took 0.327516 seconds and 4 git commands to generate.