PPC: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
4 FreeBSD targets.
5 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
6 method 'make_corefile_notes'.
7 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
8 (ppcfbsd_regset_from_core_section): Remove.
9 (ppcfbsd_iterate_over_regset_sections): New.
10 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
11 initialization.
12 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
13 (ppcnbsd_iterate_over_regset_sections): New.
14 (ppcnbsd_init_abi): Adjust.
15 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
16 (ppcobsd_iterate_over_regset_sections): New.
17 (ppcobsd_init_abi): Adjust.
18 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
19 (rs6000_aix_iterate_over_regset_sections): New.
20 (rs6000_aix_init_osabi): Adjust.
21
22 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
23
24 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
25 (nios2_regset_from_core_section): Remove.
26 (nios2_iterate_over_regset_sections): New.
27 (nios2_linux_init_abi): Adjust gdbarch initialization.
28
29 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
30
31 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
32 (am33_iterate_over_regset_sections): New.
33 (am33_linux_init_osabi): Adjust gdbarch initialization.
34
35 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
36
37 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
38 (mips_linux_iterate_over_regset_sections): New.
39 (mips_linux_init_abi): Adjust gdbarch initialization.
40 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
41 (mips64obsd_iterate_over_regset_sections): New.
42 (mips64obsd_init_abi): Adjust.
43 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
44 (mipsnbsd_iterate_over_regset_sections): New.
45 (mipsnbsd_init_abi): Adjust.
46
47 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
48
49 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
50 (m88k_iterate_over_regset_sections): New.
51 (m88k_gdbarch_init): Adjust gdbarch initialization.
52
53 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
54
55 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
56 (ia64_linux_iterate_over_regset_sections): New.
57 (ia64_linux_init_abi): Adjust gdbarch initialization.
58
59 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
60
61 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
62 (m68kbsd_iterate_over_regset_sections): New.
63 (m68kbsd_init_abi): Adjust gdbarch initialization.
64 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
65 (m68k_linux_iterate_over_regset_sections): New.
66 (m68k_linux_init_abi): Adjust gdbarch initialization.
67
68 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
69
70 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
71 (m32r_linux_regset_from_core_section): Remove.
72 (m32r_linux_iterate_over_regset_sections): New.
73 (m32r_linux_init_abi): Adjust gdbarch initialization.
74
75 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
76
77 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
78 (amd64obsd_iterate_over_regset_sections): New.
79 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
80 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
81 Remove.
82 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
83 regset_from_core_section initialization.
84 * i386-tdep.c (i386_regset_from_core_section): Remove.
85 (i386_iterate_over_regset_sections): New.
86 (i386_gdbarch_init): Adjust gdbarch initialization.
87 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
88 (i386_iterate_over_regset_sections): New prototype.
89 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
90 Remove.
91 (i386obsd_aout_iterate_over_regset_sections): New.
92 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
93 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
94 targets.
95 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
96 (amd64fbsd_init_abi): Call fbsd_init_abi.
97 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
98 (i386fbsd4_init_abi): Call fbsd_init_abi.
99 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
100 target method 'make_corefile_notes'.
101 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
102
103 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
104
105 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
106 (hppa_hpux_iterate_over_regset_sections): New.
107 (hppa_hpux_init_abi): Adjust gdbarch initialization.
108 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
109 (hppa_linux_iterate_over_regset_sections): New.
110 (hppa_linux_init_abi): Adjust.
111 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
112 (hppanbsd_iterate_over_regset_sections): New.
113 (hppanbsd_init_abi): Adjust.
114 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
115 (hppaobsd_iterate_over_regset_sections): New.
116 (hppaobsd_init_abi): Adjust.
117
118 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
119
120 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
121 (frv_linux_iterate_over_regset_sections): New.
122 (frv_linux_init_abi): Adjust gdbarch initialization.
123
124 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
125
126 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
127 (armbsd_iterate_over_regset_sections): New prototype.
128 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
129 (armbsd_iterate_over_regset_sections): New.
130 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
131 initialization.
132
133 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
134
135 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
136 (alpha_linux_iterate_over_regset_sections): New.
137 (alpha_linux_init_abi): Adjust gdbarch initialization.
138 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
139 prototype.
140 (alphanbsd_iterate_over_regset_sections): New prototype.
141
142 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
143
144 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
145 Remove.
146 (aarch64_linux_iterate_over_regset_sections): New.
147 (aarch64_linux_init_abi): Adjust gdbarch initialization.
148
149 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
150
151 * fbsd-tdep.c: New file.
152 * fbsd-tdep.h: New file.
153 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
154 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
155 (ALLDEPFILES): Add fbsd-tdep.c.
156
157 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
158
159 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
160 parameter.
161 * gdbarch.h: Regenerate.
162 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
163 iterator.
164 (get_core_register_section): Add parameter 'regset' and use it, if
165 set. Add parameter 'min_size' and verify the bfd section size
166 against it.
167 (get_core_registers_cb): Add parameter 'regset' and pass it to
168 get_core_register section. For the "standard" register sections
169 ".reg" and ".reg2", set an appropriate default for human_name.
170 (get_core_registers): Don't abort when the gdbarch has an iterator
171 but no regset_from_core_section. Add NULL/0 for parameters
172 'regset'/'min_size' in calls to get_core_register_section.
173 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
174 'regset' and use it instead of calling the
175 regset_from_core_section gdbarch method.
176 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
177 * i386-tdep.c (i386_supply_xstateregset)
178 (i386_collect_xstateregset, i386_xstateregset): Moved to
179 i386-linux-tdep.c.
180 (i386_regset_from_core_section): Drop handling for .reg-xfp and
181 .reg-xstate.
182 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
183 core file support only if the regset iterator hasn't been set.
184 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
185 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
186 Moved from i386-tdep.c and renamed to *_linux*.
187 (i386_linux_iterate_over_regset_sections): Add regset parameter to
188 each callback invocation. Allow any .reg-xstate size when reading
189 from a core file.
190 * amd64-tdep.c (amd64_supply_xstateregset)
191 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
192 amd64-linux-tdep.c.
193 (amd64_regset_from_core_section): Remove.
194 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
195 install an amd64-specific regset_from_core_section gdbarch method.
196 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
197 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
198 Moved from amd64-tdep.c and renamed to *_linux*.
199 (amd64_linux_iterate_over_regset_sections): Add regset parameter
200 to each callback invocation. Allow any .reg-xstate size when
201 reading from a core file.
202 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
203 (arm_linux_iterate_over_regset_sections): Add regset parameter to
204 each callback invocation.
205 (arm_linux_init_abi): No longer set the regset_from_core_section
206 gdbarch method.
207 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
208 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
209 each callback invocation.
210 (ppc_linux_init_abi): No longer set the regset_from_core_section
211 gdbarch method.
212 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
213 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
214 (s390_regset_from_core_section): Remove.
215 (s390_iterate_over_regset_sections): Add regset parameter to each
216 callback invocation.
217 (s390_gdbarch_init): No longer set the regset_from_core_section
218 gdbarch method. Drop initialization of deleted tdep fields.
219
220 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
221
222 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
223 (amd64_linux_iterate_over_regset_sections): New.
224 (amd64_linux_init_abi_common): Don't install the regset section
225 list, but the new iterator in gdbarch.
226 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
227 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
228 (arm_linux_iterate_over_regset_sections): ...here. New function.
229 (arm_linux_init_abi): Set iterator instead of section list.
230 * corelow.c (get_core_registers_cb): New function, logic moved
231 from...
232 (get_core_registers): ...loop body here. Use new iterator method
233 instead of walking through the regset section list.
234 * gdbarch.sh: Remove 'core_regset_sections'. New method
235 'iterate_over_regset_sections'. New typedef
236 'iterate_over_regset_sections_cb'.
237 * gdbarch.c: Regenerate.
238 * gdbarch.h: Likewise.
239 * i386-linux-tdep.c (i386_linux_regset_sections)
240 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
241 Remove.
242 (i386_linux_iterate_over_regset_sections): New.
243 (i386_linux_init_abi): Don't choose a regset section list, but
244 install new iterator in gdbarch.
245 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
246 (linux_collect_regset_section_cb): New function, logic moved
247 from...
248 (linux_collect_thread_registers): ...loop body here. Use iterator
249 method instead of walking through list.
250 (linux_make_corefile_notes_1): Check for presence of iterator
251 method instead of regset section list.
252 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
253 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
254 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
255 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
256 (ppc_linux_iterate_over_regset_sections): ...here. New function.
257 (ppc_linux_init_abi): Don't choose from above regset section
258 lists, but install new iterator in gdbarch.
259 * regset.h (struct core_regset_section): Remove.
260 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
261 have_linux_v1, have_linux_v2, and have_tdb.
262 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
263 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
264 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
265 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
266 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
267 (s390_iterate_over_regset_sections): ...here. New function. Use
268 new tdep fields.
269 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
270 regset section lists, but install new iterator.
271
272 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
273
274 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
275
276 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
277
278 * progspace.c (print_program_space): Don't prune program spaces
279 before printing them.
280
281 2014-09-25 Pedro Alves <palves@redhat.com>
282
283 * infrun.c (user_visible_resume_ptid): Don't check
284 singlestep_breakpoints_inserted_p.
285
286 2014-09-25 Pedro Alves <palves@redhat.com>
287
288 * breakpoint.c (should_be_inserted): Add debug output.
289
290 2014-09-25 Pedro Alves <palves@redhat.com>
291
292 * infrun.c (stepping_past_instruction_at)
293 (clear_exit_convenience_vars): Point at infrun.h instead of
294 inferior.h.
295 (handle_signal_stop): Fix typo.
296
297 2014-09-24 Yao Qi <yao@codesourcery.com>
298
299 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
300 bitmask.
301
302 2014-09-22 Gary Benson <gbenson@redhat.com>
303
304 * target.c (target_stop): Updated comment.
305
306 2014-09-22 Gary Benson <gbenson@redhat.com>
307
308 * target/target.h (target_stop_ptid): Renamed as...
309 (target_stop_and_wait): New function. Updated comment.
310 All uses updated.
311 (target_continue_ptid): Renamed as...
312 (target_continue_no_signal): New function. Updated comment.
313 All uses updated.
314
315 2014-09-22 Pedro Alves <palves@redhat.com>
316
317 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
318 and "auto" merged.
319 * breakpoint.c (enum ugll_insert_mode): New enum.
320 (always_inserted_mode): Now a plain boolean.
321 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
322 (breakpoints_always_inserted_mode): Delete.
323 (breakpoints_should_be_inserted_now): New function.
324 (insert_breakpoints): Pass UGLL_INSERT to
325 update_global_location_list instead of calling
326 insert_breakpoint_locations manually.
327 (create_solib_event_breakpoint_1): New, factored out from ...
328 (create_solib_event_breakpoint): ... this.
329 (create_and_insert_solib_event_breakpoint): Use
330 create_solib_event_breakpoint_1 instead of calling
331 insert_breakpoint_locations manually.
332 (update_global_location_list): Change parameter type from boolean
333 to enum ugll_insert_mode. All callers adjusted. Adjust to use
334 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
335 (update_global_location_list_nothrow): Change parameter type from
336 boolean to enum ugll_insert_mode.
337 (_initialize_breakpoint): "breakpoint always-inserted" option is
338 now a boolean command. Update help text.
339 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
340 (breakpoints_should_be_inserted_now): New declaration.
341 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
342 Remove breakpoints_always_inserted_mode check.
343 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
344 * remote.c (remote_start_remote): Likewise.
345
346 2014-09-22 Pedro Alves <palves@redhat.com>
347
348 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
349 (insert_breakpoints): Don't call insert_breakpoint_locations here.
350 Instead, pass UGLL_INSERT to update_global_location_list.
351 (update_global_location_list): Change parameter type from boolean
352 to enum ugll_insert_mode. All callers adjusted. Adjust to use
353 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
354 (create_solib_event_breakpoint_1): New, factored out from ...
355 (create_solib_event_breakpoint): ... this.
356 (create_and_insert_solib_event_breakpoint): Use
357 create_solib_event_breakpoint_1 instead of calling
358 insert_breakpoint_locations manually.
359 (update_global_location_list): Handle UGLL_INSERT.
360
361 2014-09-22 Pedro Alves <palves@redhat.com>
362
363 * breakpoint.c (enum ugll_insert_mode): New enum.
364 (update_global_location_list)
365 (update_global_location_list_nothrow): Change parameter type from
366 boolean to enum ugll_insert_mode. All callers adjusted.
367
368 2014-09-19 Joel Brobecker <brobecker@adacore.com>
369
370 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
371 SystemTap support in GDB.
372
373 2014-09-19 Don Breazeal <donb@codesourcery.com>
374
375 * linux-nat.c (linux_handle_extended_wait): Call
376 linux_ptrace_get_extended_event.
377 (wait_lwp): Call linux_is_extended_waitstatus.
378 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
379 and linux_is_extended_waitstatus.
380 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
381 linux_ptrace_get_extended_event.
382 (linux_ptrace_get_extended_event): New function.
383 (linux_is_extended_waitstatus): New function.
384 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
385 (linux_is_extended_waitstatus): New declarations.
386
387 2014-09-19 Yao Qi <yao@codesourcery.com>
388
389 * dwarf2read.c (dwarf_decode_lines): Update declaration.
390 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
391 comments. Callers update.
392 (dwarf_decode_lines): Likewise.
393 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
394 comments. Skip the line table if 'lowpc' is greater than
395 'address'. Don't check
396 dwarf2_per_objfile->has_section_at_zero.
397
398 2014-09-18 Doug Evans <dje@google.com>
399
400 * NEWS: Mention new "producer" attribute of gdb.Symtab.
401 * python/py-symtab.c (stpy_get_producer): New function.
402 (symtab_object_getset): Add "producer" attribute.
403
404 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
405
406 PR gdb/17384
407 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
408 (do_captured_read_memory_integer): Remove.
409 (safe_read_memory_integer): Use target_read_memory directly instead
410 of catching errors in do_captured_read_memory_integer.
411
412 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
413
414 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
415 not gdb/doc.
416
417 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
418
419 * objc-lang.c (find_implementation_from_class): Remove dead code.
420
421 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
422
423 PR cli/7233
424 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
425 "fprintf_unfiltered (gdb_stdlog...)".
426
427 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
428
429 PR breakpoints/12526
430 * breakpoint.h (struct watchpoint): New fields val_bitpos and
431 val_bitsize.
432 * breakpoint.c (watch_command_1): Use these fields to retain
433 bitfield information.
434 (extract_bitfield_from_watchpoint_value): New function.
435 (watchpoint_check): Use it.
436 (update_watchpoint): Use it. Optimize the address and length of a
437 HW watchpoint pointing to a bitfield.
438 * value.h (unpack_value_bitfield): New prototype.
439 * value.c (unpack_value_bitfield): Make extern.
440
441 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
442
443 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
444 x86-dregs.o.
445 * gnu-nat.c (inf_threads): New function.
446 * gnu-nat.h (inf_threads_ftype): New typedef.
447 (inf_threads): New declaration.
448 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
449 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
450 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
451 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
452 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
453 (i386_gnu_dr_get_control): New functions.
454 (reg_addr): New structure.
455 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
456 i386 debugging register hooks.
457 * NEWS: Mention this.
458
459 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
460
461 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
462 vector data transfer instructions.
463 (arm_record_coproc_data_proc): Updated.
464
465 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
466
467 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
468 arm_record_exreg_ld_st_insn.
469 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
470 load/store insns.
471
472 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
473
474 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
475 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
476 processing instructions.
477
478 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
479
480 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
481 for advance SIMD struct ld/st insn.
482 (thumb2_record_decode_insn_handler): Replace stub handler with
483 thumb2_record_asimd_struct_ld_st.
484
485 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
486
487 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
488 for asimd, vfp and coprocessor insns.
489 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
490 and coprocessor insns.
491 (thumb2_record_coproc_insn): New function.
492 (thumb2_record_decode_insn_handler): Update coprocessor insns record
493 handlers.
494 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
495 opcode 110 insns.
496
497 2014-09-13 Doug Evans <xdje42@gmail.com>
498
499 * NEWS: Mention new "queue-signal" command.
500 * infcmd.c (queue_signal_command): New function.
501 (_initialize_infcmd): Add new queue-signal command.
502
503 2014-09-13 Doug Evans <xdje42@gmail.com>
504
505 * linux-nat.c (wait_lwp): Add debugging printf.
506 (linux_nat_wait_1): Ditto.
507
508 2014-09-12 Pedro Alves <palves@redhat.com>
509
510 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
511 (create_and_insert_solib_event_breakpoint): New functions.
512 * breakpoint.h (create_and_insert_solib_event_breakpoint)
513 (remove_solib_event_breakpoints_at_next_stop): New declarations.
514 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
515 (remove_dbx_link_breakpoint): Delete function.
516 (insert_dbx_link_bpt_in_file): Use
517 create_and_insert_solib_event_breakpoint instead of
518 deprecated_insert_raw_breakpoint.
519 (procfs_wait): Don't check whether we hit __dbx_link here.
520 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
521 here.
522 * solib-irix.c (base_breakpoint): Delete global.
523 (disable_break): Delete function.
524 (enable_break): Use create_solib_event_breakpoint
525 instead of deprecated_insert_raw_breakpoint.
526 (irix_solib_handle_event): New function.
527 (irix_solib_create_inferior_hook): Don't run the target or disable
528 the mapping-complete breakpoint here.
529 (_initialize_irix_solib): Install irix_solib_handle_event as
530 so_ops->handle_event hook.
531
532 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
533 Ulrich Weigand  <uweigand@de.ibm.com>
534
535 PR tdep/17379
536 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
537 instead of read_memory_unsigned_integer.
538
539 2014-09-12 Gary Benson <gbenson@redhat.com>
540
541 * nat/linux-waitpid.c: Include common-defs.h.
542 [GDBSERVER]: Add FIXME comment.
543 [!GDBSERVER]: Don't include defs.h or signal.h.
544 (linux_debug) [!GDBSERVER]: Remove empty block.
545
546 2014-09-12 Gary Benson <gbenson@redhat.com>
547
548 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
549 Don't include defs.h or server.h.
550
551 2014-09-12 Gary Benson <gbenson@redhat.com>
552
553 * nat/linux-btrace.c: Include common-defs.h.
554 Don't include defs.h, server.h or gdbthread.h.
555 * nat/linux-btrace.h (struct target_ops): New forward declaration.
556
557 2014-09-12 Gary Benson <gbenson@redhat.com>
558
559 * common/agent.c: Include common-defs.h.
560 Don't include defs.h or server.h.
561 * common/buffer.c: Likewise.
562 * common/common-debug.c: Likewise.
563 * common/common-utils.c: Likewise.
564 * common/errors.c: Likewise.
565 * common/filestuff.c: Likewise.
566 * common/format.c: Likewise.
567 * common/gdb_vecs.c: Likewise.
568 * common/print-utils.c: Likewise.
569 * common/ptid.c: Likewise.
570 * common/rsp-low.c: Likewise.
571 * common/signals.c: Likewise.
572 * common/vec.c: Likewise.
573 * common/xml-utils.c: Likewise.
574 * nat/linux-osdata.c: Likewise.
575 * nat/linux-procfs.c: Likewise.
576 * nat/linux-ptrace.c: Likewise.
577 * nat/mips-linux-watch.c: Likewise.
578 * target/waitstatus.c: Likewise.
579
580 2014-09-12 Tom Tromey <tromey@redhat.com>
581 Gary Benson <gbenson@redhat.com>
582
583 * common/common-regcache.h: New file.
584 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
585 * regcache.h: Include common-regcache.h.
586 (regcache_read_pc): Don't declare.
587 * regcache.c (get_thread_regcache_for_ptid): New function.
588 * nat/linux-btrace.c: Don't include regcache.h.
589 Include common-regcache.h.
590 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
591
592 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
593
594 * regcache.h (struct regset): Declare.
595
596 2014-09-11 Pedro Alves <palves@redhat.com>
597
598 PR gdb/17347
599 * main.c: Include "infrun.h".
600 (catch_command_errors, catch_command_errors_const): Wait for the
601 foreground command to complete.
602 * top.c (maybe_wait_sync_command_done): New function, factored out
603 from ...
604 (maybe_wait_sync_command_done): ... here.
605 * top.h (maybe_wait_sync_command_done): New declaration.
606
607 2014-09-11 Tom Tromey <tromey@redhat.com>
608 Gary Benson <gbenson@redhat.com>
609
610 * common/symbol.h: New file.
611 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
612 * minsyms.c (find_minimal_symbol_address): New function.
613 * common/agent.c: Include common/symbol.h.
614 [!GDBSERVER]: Don't include objfiles.h.
615 (agent_look_up_symbols): Use find_minimal_symbol_address.
616
617 2014-09-11 Gary Benson <gbenson@redhat.com>
618
619 * target/target.h (target_stop_ptid, target_continue_ptid):
620 Declare.
621 * target.c (target_stop_ptid, target_continue_ptid): New
622 functions.
623 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
624 (agent_run_command): Always use target_stop_ptid and
625 target_continue_ptid.
626
627 2014-09-11 Tom Tromey <tromey@redhat.com>
628 Gary Benson <gbenson@redhat.com>
629
630 * target/target.h: New file.
631 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
632 * target.h: Include target/target.h.
633 (target_read_memory, target_write_memory): Don't declare.
634 * target.c (target_read_uint32): New function.
635 * common/agent.c: Include target/target.h.
636 [!GDBSERVER]: Don't include target.h.
637 (helper_thread_id): Type changed to uint32_t.
638 (agent_get_helper_thread_id): Use target_read_uint32.
639 (agent_run_command): Always use target_read_memory and
640 target_write_memory.
641 (agent_capability): Type changed to uint32_t.
642 (agent_capability_check): Use target_read_uint32.
643
644 2014-09-11 Gary Benson <gbenson@redhat.com>
645
646 * common/common-debug.h (show_debug_regs): Declare.
647 * common/common-debug.c (show_debug_regs): Define.
648 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
649 all uses with show_debug_regs. Replace all uses that considered
650 debug_hw_points as a multi-value integer with straight boolean
651 uses.
652 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
653 with show_debug_regs.
654 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
655 all uses with show_debug_regs.
656 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
657 uses with show_debug_regs.
658
659 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
660
661 * findvar.c (address_from_register): Handle targets requiring
662 a special conversion routine even for plain pointer types.
663
664 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
665
666 * rs6000-nat.c (exec_one_dummy_insn): Remove.
667 (store_register): Do not call exec_one_dummy_insn.
668
669 2014-09-10 Joel Brobecker <brobecker@adacore.com>
670
671 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
672 dereference it first. Use value_enclosing_type instead of
673 value_type.
674 (ada_array_length): Likewise.
675
676 2014-09-10 Joel Brobecker <brobecker@adacore.com>
677
678 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
679 Adjust function implementation and documentation accordingly.
680 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
681 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
682 Update call to ada_value_ptr_subscript.
683
684 2014-09-10 Joel Brobecker <brobecker@adacore.com>
685
686 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
687 instead of VAL's type.
688
689 2014-09-10 Joel Brobecker <brobecker@adacore.com>
690
691 * amd64-linux-nat.c: Add <sys/uio.h> #include.
692
693 2014-09-09 Doug Evans <xdje42@gmail.com>
694
695 PR guile/17367
696 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
697 last parameter to pkg-config, not first.
698 * configure.ac: Pass --with-guile provided pkg-config path to
699 GDB_GUILE_PROGRAM_NAMES.
700 * configure: Regenerate.
701
702 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
703
704 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
705 Bertazi".
706
707 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
708
709 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
710 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
711 the list of sections determining GDB_OSABI_IRIX.
712
713 2014-09-09 James Hogan <james.hogan@imgtec.com>
714
715 * MAINTAINERS (Write After Approval): Add "James Hogan".
716
717 2014-09-09 James Hogan <james.hogan@imgtec.com>
718
719 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
720
721 2014-09-09 Joel Brobecker <brobecker@adacore.com>
722
723 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
724
725 2014-09-08 Doug Evans <xdje42@gmail.com>
726
727 PR 17247
728 * guile.c: #include <signal.h>.
729 (_initialize_guile): Block SIGCHLD while initializing Guile.
730
731 Replaces the following, which is reverted.
732
733 2014-07-26 Doug Evans <xdje42@gmail.com>
734
735 PR 17185
736 * configure.ac: Add check for header gc/gc.h.
737 Add check for function setenv.
738 * configure: Regenerate.
739 * config.in: Regenerate.
740 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
741
742 2014-09-08 Doug Evans <xdje42@gmail.com>
743
744 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
745 with named constant. Fix style of pointer comparison.
746 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
747
748 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
749
750 PR gdb/17035
751 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
752 decide whether we display the command on "show user".
753 * cli/cli-script.c (show_user_1): Only verify cmdlines after
754 printing command name.
755 * cli/cli-decode.h (cli_user_command_p): Declare new function.
756 * cli/cli-decode.c (cli_user_command_p): Create helper function
757 to verify whether cmd_list_element is a user-defined command.
758
759 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
760
761 PR python/17355
762 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
763 Fix goto out of TRY_CATCH.
764
765 2014-09-06 Doug Evans <xdje42@gmail.com>
766 Tom Tromey <tromey@redhat.com>
767
768 PR 15276
769 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
770 $_any_caller_matches.
771 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
772 * python/lib/gdb/function/caller_is.py: New file.
773
774 2014-09-06 Doug Evans <xdje42@gmail.com>
775
776 * infcmd.c (program_info): Fix typo.
777
778 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
779
780 PR gdb/17235
781 * stap-probe.c (stap_parse_single_operand): Delete unused variable
782 'number'. New variable 'has_digit'. Rewrite code to deal with
783 subexpressions on SDT probes.
784
785 2014-09-04 Pedro Alves <palves@redhat.com>
786
787 * c-exp.y (parse_number): Skip handling base-switching prefixes if
788 the input is only one character long.
789
790 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
791
792 PR fortran/17237
793 * f-valprint.c (f_val_print): Specify the correct print option to
794 use when printing integer values.
795
796 2014-09-04 Gary Benson <gbenson@redhat.com>
797
798 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
799 Remove code to cope with LWPs wrapped as PIDs.
800 Add assertions to ensure no wrapped LWPs are passed.
801
802 2014-09-04 Pedro Alves <palves@redhat.com>
803
804 * value.c (value_ranges_copy_adjusted): New function, factored out
805 from ...
806 (value_contents_copy_raw): ... here.
807 (unpack_value_bits_as_long_1): Rename back to ...
808 (unpack_bits_as_long): ... this. Remove 'original_value' and
809 'result' parameters. Change return type to LONGEST.
810 (unpack_value_bits_as_long): Delete.
811 (unpack_value_field_as_long_1): Delete.
812 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
813 (unpack_value_bitfield): New function.
814 (value_field_bitfield): Reimplement using unpack_value_bitfield.
815 (value_fetch_lazy): Use unpack_value_bitfield.
816 * value.h (unpack_value_bits_as_long): Delete declaration.
817
818 2014-09-03 Sasha Smundak <asmundak@google.com>
819
820 * python/py-frame.c (frapy_read_register): New function.
821
822 2014-09-03 James Hogan <james.hogan@imgtec.com>
823
824 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
825 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
826
827 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
828
829 PR python/16699
830 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
831 function.
832 (add_cmd): Set "completer_handle_brkchars" to NULL.
833 * cli/cli-decode.h (struct cmd_list_element)
834 <completer_handle_brkchars>: New field.
835 * command.h (completer_ftype_void): New typedef.
836 (set_cmd_completer_handle_brkchars): New prototype.
837 * completer.c (set_gdb_completion_word_break_characters): New
838 function.
839 (complete_line_internal): Call "completer_handle_brkchars"
840 callback from command.
841 * completer.h: Include "command.h".
842 (set_gdb_completion_word_break_characters): New prototype.
843 * python/py-cmd.c (cmdpy_completer_helper): New function.
844 (cmdpy_completer_handle_brkchars): New function.
845 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
846 (cmdpy_init): Set completer_handle_brkchars to
847 cmdpy_completer_handle_brkchars.
848
849 2014-09-03 Gary Benson <gbenson@redhat.com>
850
851 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
852 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
853 Loop conditions changed to equivalent form.
854 (struct x86_debug_reg_state): Updated dr_ref_count comment.
855 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
856 ALL_DEBUG_ADDRESS_REGISTERS.
857
858 2014-09-03 Joel Brobecker <brobecker@adacore.com>
859
860 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
861 description fix.
862
863 2014-09-02 Doug Evans <dje@google.com>
864
865 * typeprint.c (find_global_typedef): Fix comment.
866
867 2014-09-02 Gary Benson <gbenson@redhat.com>
868
869 * i386-nat.h: Renamed as...
870 * x86-nat.h: New file. All type, function and variable name
871 prefixes changed from "i386_" to "x86_". All references updated.
872 * i386-nat.c: Renamed as...
873 * x86-nat.c: New file. All type, function and variable name
874 prefixes changed from "i386_" to "x86_". All references updated.
875 * common/i386-xstate.h: Renamed as...
876 * common/x86-xstate.h: New file. All type, function and variable
877 name prefixes changed from "i386_" to "x86_". All references
878 updated.
879 * nat/i386-cpuid.h: Renamed as...
880 * nat/x86-cpuid.h: New file. All type, function and variable name
881 prefixes changed from "i386_" to "x86_". All references updated.
882 * nat/i386-gcc-cpuid.h: Renamed as...
883 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
884 name prefixes changed from "i386_" to "x86_". All references
885 updated.
886 * nat/i386-dregs.h: Renamed as...
887 * nat/x86-dregs.h: New file. All type, function and variable name
888 prefixes changed from "i386_" to "x86_". All references updated.
889 * nat/i386-dregs.c: Renamed as...
890 * nat/x86-dregs.c: New file. All type, function and variable name
891 prefixes changed from "i386_" to "x86_". All references updated.
892
893 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
894
895 * varobj.c (_initialize_varobj): Move to the end of file.
896
897 2014-08-29 Gary Benson <gbenson@redhat.com>
898
899 * common/common-exceptions.h: New file.
900 * common/common-exceptions.c: Likewise.
901 * Makefile.in (SFILES): Add common/common-exceptions.c.
902 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
903 (COMMON_OBS): Add common-exceptions.o.
904 (common-exceptions.o): New rule.
905 * exceptions.h (common-exceptions.h): Include.
906 (gdb_setjmp.h): Do not include.
907 (return_reason): Moved to common-exceptions.h.
908 (enum return_reason): Likewise.
909 (RETURN_MASK): Likewise.
910 (typedef return_mask): Likewise.
911 (enum errors): Likewise.
912 (struct gdb_exception): Likewise.
913 (exceptions_state_mc_init): Likewise.
914 (exceptions_state_mc_action_iter): Likewise.
915 (exceptions_state_mc_action_iter_1): Likewise.
916 (TRY_CATCH): Likewise.
917 (throw_exception): Likewise.
918 (throw_verror): Likewise.
919 (throw_vquit): Likewise.
920 (throw_error): Likewise.
921 (throw_quit): Likewise.
922 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
923 (enum catcher_action): Likewise.
924 (struct catcher): Likewise.
925 (current_catcher): Likewise.
926 (catcher_list_size): Likewise.
927 (exceptions_state_mc_init): Likewise.
928 (catcher_pop): Likewise.
929 (exceptions_state_mc): Likewise.
930 (exceptions_state_mc_action_iter): Likewise.
931 (exceptions_state_mc_action_iter_1): Likewise.
932 (throw_exception): Likewise.
933 (exception_messages): Likewise.
934 (exception_messages_size): Likewise.
935 (throw_it): Likewise.
936 (throw_verror): Likewise.
937 (throw_vquit): Likewise.
938 (throw_error): Likewise.
939 (throw_quit): Likewise.
940 (prepare_to_throw_exception): New function.
941
942 2014-08-29 Gary Benson <gbenson@redhat.com>
943
944 * common/gdb_setjmp.h: New file.
945 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
946 * configure.ac: Move sigsetjmp check...
947 * common/common.m4: ...here.
948 * configure: Regenerate.
949 * cp-support.c (SIGJMP_BUF): Delete.
950 (SIGSETJMP): Likewise.
951 (SIGLONGJMP): Likewise.
952 * exceptions.h (gdb_setjmp.h): Include.
953 (setjmp.h): Do not include.
954 (EXCEPTIONS_SIGJMP_BUF): Delete.
955 (EXCEPTIONS_SIGSETJMP): Likewise.
956 (EXCEPTIONS_SIGLONGJMP): Likewise.
957 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
958 from gdb_setjmp.h.
959 * exceptions.c: Likewise.
960
961 2014-08-29 Gary Benson <gbenson@redhat.com>
962
963 * cleanups.h: Moved to...
964 * common/cleanups.h: New file.
965 * cleanups.c: Moved to...
966 * common/cleanups.c: New file. Include common-defs.h and
967 cleanups.h. Do not include defs.h.
968 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
969 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
970 (cleanups.o): New rule.
971
972 2014-08-29 Gary Benson <gbenson@redhat.com>
973
974 * common/errors.h (internal_warning): New declaration.
975 (internal_vwarning): Likewise.
976 * common/errors.c (internal_warning): New function.
977 * utils.h (internal_warning): Don't declare.
978 (internal_vwarning): Likewise.
979 * utils.c (internal_warning): Removed.
980
981 2014-08-29 Gary Benson <gbenson@redhat.com>
982
983 * main.c (captured_main): Use warning during startup.
984 Prefix startup warning messages with command name.
985
986 2014-08-29 Gary Benson <gbenson@redhat.com>
987
988 * main.c (captured_main): Handle usage errors with error.
989
990 2014-08-29 Gary Benson <gbenson@redhat.com>
991
992 * go32-nat.c (go32_create_inferior): Replace a fprintf/
993 exit pair with a call to error. Wrap the message with _().
994
995 2014-08-29 Gary Benson <gbenson@redhat.com>
996
997 * main.c (captured_main): Replace a fprintf/exit
998 pair with a call to error. Wrap the message with _().
999
1000 2014-08-29 Gary Benson <gbenson@redhat.com>
1001
1002 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1003 pairs with calls to error. Wrap the message with _().
1004
1005 2014-08-29 Gary Benson <gbenson@redhat.com>
1006
1007 * utils.c (vwarning): Protect calls to target_terminal_ours
1008 and wrap_here.
1009
1010 2014-08-29 Gary Benson <gbenson@redhat.com>
1011
1012 * exceptions.c (print_flush): Protect calls to
1013 target_terminal_ours and wrap_here.
1014
1015 2014-08-29 Gary Benson <gbenson@redhat.com>
1016
1017 * utils.h (filtered_printing_initialized): New declaration.
1018 * utils.c (abort_with_message): New function.
1019 (internal_vproblem): Use abort_with_message for first level
1020 recursive internal problems, and if gdb_stderr is not set up.
1021 Protect calls to target_terminal_ours, begin_line and query.
1022
1023 2014-08-28 Doug Evans <dje@google.com>
1024
1025 * symtab.c (in_prologue): Move definition to better spot.
1026 (skip_prologue_using_sal): Ditto.
1027
1028 2014-08-28 Doug Evans <dje@google.com>
1029
1030 * symtab.c (find_function_start_sal): Move definition to better spot.
1031
1032 2014-08-28 Yao Qi <yao@codesourcery.com>
1033
1034 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1035 found_stack_adjust in forward scan. Remove condition check
1036 on found_stack_adjust which is always true. Indent the code.
1037
1038 2014-08-28 Yao Qi <yao@codesourcery.com>
1039
1040 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1041 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1042 (dwarf_decode_lines): Remove argument
1043 want_line_info. Remove condition check on want_line_info.
1044 Callers update.
1045
1046 2014-08-27 Doug Evans <dje@google.com>
1047
1048 * dwarf2read.c (dwarf_record_line): Fix typo.
1049
1050 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1051
1052 * target.h (struct target_ops::to_terminal_save_ours): Remove
1053 declaration.
1054 (target_terminal_save_ours): Remove macro.
1055 * target-delegates.c: Regenerate.
1056 * inf-child.c (inf_child_target): Don't set the nonexistent
1057 field to_terminal_save_ours.
1058 * inferior.h (child_terminal_save_ours): Remove declaration.
1059 * terminal.h (gdb_save_tty_state): New declaration.
1060 * inflow.c (child_terminal_save_ours): Rename to ...
1061 (gdb_save_tty_state): ... this.
1062 * tui/tui.c: Include terminal.h.
1063 (tui_enable): Use gdb_save_tty_state instead of
1064 target_terminal_save_ours.
1065 (tui_disable): Likewise.
1066
1067 2014-08-25 Doug Evans <dje@google.com>
1068
1069 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1070 Pass NULL instead of 0 for context pointer.
1071
1072 2014-08-25 Yao Qi <yao@codesourcery.com>
1073
1074 * dwarf2read.c: Fix grammatical error.
1075
1076 2014-08-24 Yao Qi <yao@codesourcery.com>
1077
1078 * dwarf2read.c (scan_partial_symbols): Update comments.
1079 Rename argument 'need_pc' with 'set_addrmap'.
1080 (add_partial_namespace): Rename argument 'need_pc' with
1081 'set_addrmap'.
1082 (add_partial_module): Likewise.
1083 (add_partial_subprogram): Likewise. Update comments.
1084 (dwarf2_name): Fix typo.
1085
1086 2014-08-22 Doug Evans <dje@google.com>
1087
1088 PR 17276
1089 * dwarf2read.c (dwarf_record_line_p): New function.
1090 (dwarf_decode_lines_1): Ignore subsequent line number entries
1091 for the same line if any entry had a non-zero discriminator.
1092
1093 2014-08-22 Doug Evans <dje@google.com>
1094
1095 * buildsym.h (record_line_ftype): New typedef.
1096 (record_line): Use it.
1097 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1098 (dwarf_decode_lines_1): Call them.
1099
1100 2014-08-22 Yao Qi <yao@codesourcery.com>
1101
1102 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1103 (ctf_end): Remove code.
1104
1105 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1106
1107 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1108 (linux_make_corefile_notes): call update_thread_list, protected against
1109 exceptions.
1110
1111 2014-08-21 Pedro Alves <palves@redhat.com>
1112
1113 * infcmd.c (attach_command): Remove comment.
1114
1115 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1116
1117 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1118 unsigned LONGEST to ULONGEST.
1119
1120 2014-08-20 Pedro Alves <palves@redhat.com>
1121
1122 * Makefile.in (check-read1): New rule.
1123
1124 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1125
1126 * value.c (value_from_contents_and_address): Strip resolved_type's
1127 typedef layers before checking its TYPE_DATA_LOCATION.
1128
1129 2014-08-20 Pedro Alves <palves@redhat.com>
1130
1131 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1132
1133 2014-08-20 Yao Qi <yao@codesourcery.com>
1134
1135 * amd64-tdep.c (amd64_classify): Add a blank line after the
1136 example. Move "*/" to a new line.
1137 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1138 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1139 * dwarf2read.c (psymtab_include_file_name): Likewise.
1140
1141 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1142 Pedro Alves <palves@redhat.com>
1143
1144 PR symtab/14604
1145 PR symtab/14605
1146 * ada-lang.c (coerce_unspec_val_to_type): Use
1147 value_contents_copy_raw.
1148 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1149 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1150 * cp-valprint.c (cp_print_value_fields): Let the common printing
1151 code handle optimized out values.
1152 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1153 * d-valprint.c (dynamic_array_type): Use
1154 value_bits_any_optimized_out.
1155 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1156 check_any_valid fields.
1157 (check_pieced_value_bits): Delete and inline ...
1158 (check_pieced_synthetic_pointer): ... here.
1159 (check_pieced_value_validity): Delete.
1160 (check_pieced_value_invalid): Delete.
1161 (pieced_value_funcs): Remove check_validity and check_any_valid
1162 fields.
1163 (read_pieced_value): Use mark_value_bits_optimized_out.
1164 (write_pieced_value): Switch to use
1165 mark_value_bytes_optimized_out.
1166 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1167 of assuming the whole value is optimized out.
1168 * findvar.c (read_frame_register_value): Remove special handling
1169 of optimized out registers.
1170 (value_from_register): Use mark_value_bytes_optimized_out.
1171 * frame-unwind.c (frame_unwind_got_optimized): Use
1172 mark_value_bytes_optimized_out.
1173 * jv-valprint.c (java_value_print): Adjust.
1174 (java_print_value_fields): Let the common printing code handle
1175 optimized out values.
1176 * mips-tdep.c (mips_print_register): Remove special handling of
1177 optimized out registers.
1178 * opencl-lang.c (lval_func_check_validity): Delete.
1179 (lval_func_check_any_valid): Delete.
1180 (opencl_value_funcs): Remove check_validity and check_any_valid
1181 fields.
1182 * p-valprint.c (pascal_object_print_value_fields): Let the common
1183 printing code handle optimized out values.
1184 * stack.c (read_frame_arg): Remove special handling of optimized
1185 out values. Fetch both VAL and ENTRYVAL before comparing
1186 contents. Adjust to value_available_contents_eq rename.
1187 * valprint.c (valprint_check_validity)
1188 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1189 (val_print_array_elements): Adjust.
1190 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1191 (value_bits_any_optimized_out): New function.
1192 (value_entirely_covered_by_range_vector): New function, factored
1193 out from value_entirely_unavailable.
1194 (value_entirely_unavailable): Reimplement.
1195 (value_entirely_optimized_out): New function.
1196 (insert_into_bit_range_vector): New function, factored out from
1197 mark_value_bits_unavailable.
1198 (mark_value_bits_unavailable): Reimplement.
1199 (struct ranges_and_idx): New struct.
1200 (find_first_range_overlap_and_match): New function, factored out
1201 from value_available_contents_bits_eq.
1202 (value_available_contents_bits_eq): Rename to ...
1203 (value_contents_bits_eq): ... this. Check both unavailable
1204 contents and optimized out contents.
1205 (value_available_contents_eq): Rename to ...
1206 (value_contents_eq): ... this.
1207 (allocate_value_lazy): Remove reference to the old optimized_out
1208 boolean.
1209 (allocate_optimized_out_value): Use
1210 mark_value_bytes_optimized_out.
1211 (require_not_optimized_out): Adjust to check whether the
1212 optimized_out vec is empty.
1213 (ranges_copy_adjusted): New function, factored out from
1214 value_contents_copy_raw.
1215 (value_contents_copy_raw): Also copy the optimized out ranges.
1216 Assert the destination ranges aren't optimized out.
1217 (value_contents_copy): Update comment, remove call to
1218 require_not_optimized_out.
1219 (value_contents_equal): Adjust to check whether the optimized_out
1220 vec is empty.
1221 (set_value_optimized_out, value_optimized_out_const): Delete.
1222 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1223 New functions.
1224 (value_entirely_optimized_out, value_bits_valid): Delete.
1225 (value_copy): Take a VEC copy of the 'optimized_out' field.
1226 (value_primitive_field): Remove special handling of optimized out.
1227 (value_fetch_lazy): Assert that lazy values have no unavailable
1228 regions. Use value_bits_any_optimized_out. Remove some special
1229 handling for optimized out values.
1230 * value.h: Add intro comment about <optimized out> and
1231 <unavailable>.
1232 (struct lval_funcs): Remove check_validity and check_any_valid
1233 fields.
1234 (set_value_optimized_out, value_optimized_out_const): Remove.
1235 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1236 New declarations.
1237 (value_bits_any_optimized_out): New declaration.
1238 (value_bits_valid): Delete declaration.
1239 (value_available_contents_eq): Rename to ...
1240 (value_contents_eq): ... this, and extend comments.
1241
1242 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1243
1244 Fix -fsanitize=address on unreadable inferior strings.
1245 * valprint.c (val_print_string): Fix access before BUFFER.
1246
1247 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1248
1249 * target.c (target_struct_size): Remove.
1250 (target_struct_allocsize): Remove.
1251 (DEFAULT_ALLOCSIZE): Remove.
1252 (target_ops_p): New typedef.
1253 (DEF_VEC_P (target_ops_p)): New vector type.
1254 (target_structs): Change type to VEC (target_ops_p).
1255 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1256 (find_default_run_target): Rewrite for loop following changes to
1257 target_structs.
1258
1259 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1260
1261 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1262 Adjust code accordingly. Adjust function description comment.
1263
1264 2014-08-19 Yao Qi <yao@codesourcery.com>
1265
1266 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1267 types.
1268
1269 2014-08-19 Alan Modra <amodra@gmail.com>
1270
1271 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1272 * config.in: Regenerate.
1273 * configure: Regenerate.
1274
1275 2014-08-19 Tom Tromey <tromey@redhat.com>
1276 Gary Benson <gbenson@redhat.com>
1277
1278 * common/common-debug.h: New file.
1279 * common/common-debug.c: Likewise.
1280 * debug.c: Likewise.
1281 * Makefile.in (SFILES): Add common/common-debug.c.
1282 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1283 (COMMON_OBS): Add common-debug.o and debug.o.
1284 (common-debug.o): New rule.
1285 * common/common-defs.h: Include common-debug.h.
1286 * common/agent.c (debug_agent_printf): New function.
1287 (DEBUG_AGENT): Redefine.
1288 * nat/i386-dregs.c (debug_printf): Undefine.
1289
1290 2014-08-19 Gary Benson <gbenson@redhat.com>
1291
1292 * common/common-defs.h: Include print-utils.h.
1293 * utils.h: Do not include print-utils.h.
1294
1295 2014-08-19 Tom Tromey <tromey@redhat.com>
1296 Gary Benson <gbenson@redhat.com>
1297
1298 * common/common-types.h: New file.
1299 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1300 * common/common-defs.h: Include common-types.h.
1301 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1302 (ULONGEST): Remove.
1303
1304 2014-08-19 Tom Tromey <tromey@redhat.com>
1305 Gary Benson <gbenson@redhat.com>
1306
1307 * common/errors.h: New file.
1308 * common/errors.c: Likewise.
1309 * Makefile.in (SFILES): Add common/errors.c.
1310 (HFILES_NO_SRCDIR): Add common/errors.h.
1311 (COMMON_OBS): Add errors.o.
1312 (errors.o): New rule.
1313 * common/common-defs.h: Include errors.h.
1314 * utils.h (perror_with_name, error, verror, warning, vwarning):
1315 Don't declare.
1316 * common/common-utils.h: (malloc_failure, internal_error):
1317 Likewise.
1318
1319 2014-08-19 Gary Benson <gbenson@redhat.com>
1320
1321 * utils.c (internal_vproblem): Always print the message.
1322
1323 2014-08-18 Doug Evans <dje@google.com>
1324
1325 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1326
1327 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1328
1329 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1330 Return 0 if TYPE is dynamic.
1331 (print_range): Add handling of dynamic ranges.
1332
1333 2014-08-18 Keven Boell <keven.boell@intel.com>
1334 Joel Brobecker <brobecker@adacore.com>
1335
1336 * gdbtypes.h (struct main_type): Add field "data_location".
1337 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1338 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1339 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1340 a dynamic data location.
1341 (resolve_dynamic_type): Add DW_AT_data_location handling.
1342 (copy_recursive, copy_type): Copy the data_location information
1343 when present.
1344 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1345 * value.c (value_from_contents_and_address): Add
1346 DW_AT_data_location handling.
1347
1348 2014-08-18 Keven Boell <keven.boell@intel.com>
1349 Joel Brobecker <brobecker@adacore.com>
1350
1351 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1352 field "get_object_address".
1353 * dwarf2expr.c (execute_stack_op): Add handling for
1354 DW_OP_push_object_address.
1355 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1356 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1357 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1358 (dwarf_expr_get_obj_addr): New function.
1359 (dwarf_expr_ctx_funcs): Add get_object_address field.
1360 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1361 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1362 (dwarf2_evaluate_property): Add parameter "address". Use it.
1363 (needs_get_obj_addr): New function.
1364 (needs_frame_ctx_funcs): Add get_object_address field.
1365 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1366 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1367 (resolve_dynamic_array): Likewise.
1368
1369 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1370
1371 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1372 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1373 fixed value for records and unions for which some GNAT encodings
1374 are present.
1375
1376 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1377
1378 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1379 rewrite to avoid "else if" and "else" constructs. Should be
1380 a no-op in practice.
1381
1382 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1383
1384 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1385 of lexical block.
1386
1387 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1388
1389 PR c++/17132
1390 * eval.c: Update all calls to find_overload_match.
1391 * valarith.c: Likewise.
1392 (value_user_defined_cpp_op, value_user_defined_op): New
1393 argument NOSIDE. Update all callers.
1394 * valops.c (find_overload_match): New argument NOSIDE.
1395 * value.h (find_overload_match): Update signature.
1396
1397 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1398
1399 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1400 'items' methods instead of 'iteritems' method on dictionaries.
1401
1402 2014-08-15 Doug Evans <dje@google.com>
1403
1404 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1405 closer to use.
1406
1407 2014-08-15 Doug Evans <dje@google.com>
1408
1409 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1410
1411 2014-08-15 Doug Evans <dje@google.com>
1412
1413 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1414
1415 2014-08-15 Doug Evans <dje@google.com>
1416
1417 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1418 unused.
1419
1420 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1421
1422 * dcache.h: Include target.h, to avoid compile time warnings.
1423
1424 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1425
1426 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1427 frame_info" partial declaration.
1428 * gdbarch.h: Regenerate.
1429
1430 2014-08-15 Yao Qi <yao@codesourcery.com>
1431
1432 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1433 Add parameter 'decode_for_pst_p'. Callers update.
1434
1435 2014-08-13 Yao Qi <yao@codesourcery.com>
1436
1437 PR build/17104
1438 * configure.ac: Use local variable 'pos'.
1439 * configure: Regenerated.
1440
1441 2014-08-11 Doug Evans <dje@google.com>
1442
1443 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1444 message, it is redundant with "Reading symbols from ..." message.
1445
1446 2014-08-10 Doug Evans <xdje42@gmail.com>
1447
1448 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1449
1450 2014-08-09 Yao Qi <yao@codesourcery.com>
1451
1452 PR remote/9053
1453 * remote.c (remote_xfer_partial): Remove dead code.
1454
1455 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1456
1457 * ia64-linux-tdep.c: Include "regset.h".
1458 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1459 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1460 (ia64_linux_supply_fpregset): New function.
1461 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1462 (ia64_linux_regset_from_core_section): New function.
1463 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1464 method.
1465
1466 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1467
1468 * m68klinux-tdep.c: Include "regset.h".
1469 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1470 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1471 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1472 (m68k_linux_regset_from_core_section): New function.
1473 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1474 method.
1475
1476 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1477
1478 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1479 function. Move logic to...
1480 (tilegx_linux_regmap): ... this new register map.
1481 (tilegx_linux_regset): Refer to register map, replace supply
1482 method by regcache_supply_regset, and add collect method.
1483 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1484 TILEGX_FIRST_EASY_REGNUM.
1485
1486 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1487
1488 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1489 that calls regcache_supply_regset and handles the EPC register
1490 separately. Move main logic to...
1491 (score7_linux_gregmap): ... this new register map.
1492 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1493 (score7_linux_gregset): Refer to register map. Add collect method.
1494 (score7_linux_regset_from_core_section): Replace
1495 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1496 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1497 (struct regset): Delete unused forward declaraction.
1498 (struct pt_regs): Delete structure definition.
1499 (elf_gregset_t): Delete typedef.
1500
1501 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1502
1503 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1504 (nios2_core_regset): Add collect method.
1505
1506 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1507
1508 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1509 platform-independent and don't write to read-only input buffer.
1510 (m32r_linux_collect_gregset): New function.
1511 (m32r_linux_gregset): Add collect method.
1512
1513 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1514
1515 * hppa-linux-tdep.c (greg_map): Rename to...
1516 (hppa_linux_gregmap): ... this. Also convert to
1517 regcache_map_entry format.
1518 (hppa_linux_supply_regset): Delete function.
1519 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1520 (hppa_linux_fpregmap): ... this new register map.
1521 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1522 register map, replace supply method by regcache_supply_regset, and
1523 add collect method regcache_collect_regset.
1524
1525 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1526
1527 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1528 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1529 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1530 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1531 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1532 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1533 (frv_linux_supply_gregset): Replace main logic by call to
1534 regcache_supply_regset, but keep clearing gr32-gr63.
1535 (frv_linux_supply_fpregset): Delete function.
1536 (frv_linux_gregset): Refer to appropriate register map and add
1537 regcache_collect_regset as the collect method.
1538 (frv_linux_fpregset): Likewise. Also exchange the supply method
1539 by regcache_supply_regset.
1540
1541 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1542
1543 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1544 by call to alpha_supply_int_regs.
1545 (alpha_linux_collect_gregset): New function.
1546 (alpha_linux_supply_fpregset): Replace logic by call to
1547 alpha_supply_fp_regs.
1548 (alpha_linux_collect_fpregset): New function.
1549 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1550
1551 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1552
1553 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1554 by call to regcache_collect_regset.
1555 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1556 instead of aarch64_linux_supply_gregset/_fpregset.
1557 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1558 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1559 header file instead.
1560 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1561 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1562 functions. Move logic to ...
1563 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1564 register maps.
1565 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1566 refer to new register maps, replace *_regset_from_core by
1567 regcache_supply_regset, and also use regcache_collect_regset.
1568 * aarch64-linux-tdep.h: Include "regset.h".
1569 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1570 Delete prototypes.
1571 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1572 macros, moved from C source file.
1573 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1574 variable declarations.
1575
1576 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1577
1578 * s390-linux-nat.c: Include "regset.h".
1579 (regmap_gregset): Delete macro.
1580 (s390_64_regmap_gregset): New register map for
1581 regcache_supply/_collect_regset.
1582 (s390_64_gregset): New regset.
1583 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1584 (regmap_fpregset): Delete macro.
1585 (s390_native_supply, s390_native_collect): Delete functions.
1586 (supply_gregset, fill_gregset): Replace s390-specific regmap
1587 handling by a call to regcache_supply/_collect_regset.
1588 (supply_fpregset, fill_fpregset): Call regcache_supply/
1589 _collect_regset instead of s390_native_supply/_collect.
1590 (fetch_regset, store_regset): Likewise. Also change the last
1591 parameter to a regset instead of a regmap.
1592 (s390_linux_fetch_inferior_registers)
1593 (390_linux_store_inferior_registers): Adjust last parameter in
1594 calls to fetch_regset and store_regset.
1595 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1596 (s390_gregmap): ... this. Also make static const and convert to
1597 regcache_map_entry format.
1598 (s390x_regmap_gregset): Delete.
1599 (s390_regmap_fpregset): Rename to...
1600 (s390_fpregmap): ... this. Make static const and convert to
1601 regcache_map_entry format.
1602 (s390_regmap_upper, s390_regmap_last_break)
1603 (s390x_regmap_last_break, s390_regmap_system_call)
1604 (s390_regmap_tdb): Likewise.
1605 (s390_supply_regset, s390_collect_regset): Remove functions.
1606 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1607 s390_supply_regset.
1608 (s390_gregset, s390_fpregset, s390_upper_regset)
1609 (s390_last_break_regset, s390x_last_break_regset)
1610 (s390_system_call_regset, s390_tdb_regset): Make global and
1611 replace s390_supply/_collect_regset by regcache_supply/
1612 _collect_regset.
1613 (s390x_gregset): Delete.
1614 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1615 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1616 (s390_regmap_fpregset, s390_regmap_last_break)
1617 (s390x_regmap_last_break, s390_regmap_system_call)
1618 (s390_regmap_tdb): Delete global variable declarations.
1619 (s390_gregset, s390_fpregset, s390_last_break_regset)
1620 (s390x_last_break_regset, s390_system_call_regset)
1621 (s390_tdb_regset): New global variable declarations.
1622
1623 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1624
1625 * regcache.c: Include "regset.h".
1626 (regcache_transfer_regset): New local function.
1627 (regcache_supply_regset, regcache_collect_regset): New functions.
1628 * regcache.h (struct regcache_map_entry): New structure.
1629 (REGCACHE_MAP_SKIP): New enum value.
1630 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1631
1632 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1633
1634 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1635 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1636 (ppc_linux_collect_gregset ): Likewise.
1637 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1638 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1639 (ppc_collect_vrregset): Likewise.
1640 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1641 Likewise.
1642
1643 2014-08-07 Yao Qi <yao@codesourcery.com>
1644
1645 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1646 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1647 * remote.c (remote_read_bytes): Likewise.
1648
1649 2014-08-07 Yao Qi <yao@codesourcery.com>
1650
1651 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1652
1653 2014-08-07 Yao Qi <yao@codesourcery.com>
1654
1655 PR remote/17230
1656 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1657 TARGET_XFER_OK instead of 0.
1658
1659 2014-08-07 Gary Benson <gbenson@redhat.com>
1660
1661 * common/common-defs.h: Include errno.h.
1662 * defs.h: Do not include errno.h.
1663 * ada-typeprint.c: Likewise.
1664 * c-typeprint.c: Likewise.
1665 * core-regset.c: Likewise.
1666 * corefile.c: Likewise.
1667 * corelow.c: Likewise.
1668 * event-loop.c: Likewise.
1669 * f-typeprint.c: Likewise.
1670 * gnu-nat.c: Likewise.
1671 * go32-nat.c: Likewise.
1672 * i386gnu-nat.c: Likewise.
1673 * m2-typeprint.c: Likewise.
1674 * nat/linux-btrace.c: Likewise.
1675 * p-typeprint.c: Likewise.
1676 * procfs.c: Likewise.
1677 * remote-sim.c: Likewise.
1678 * rs6000-nat.c: Likewise.
1679 * target.c: Likewise.
1680 * typeprint.c: Likewise.
1681 * ui-file.c: Likewise.
1682 * valops.c: Likewise.
1683 * valprint.c: Likewise.
1684
1685 2014-08-07 Gary Benson <gbenson@redhat.com>
1686
1687 * common/common-defs.h: Include string.h.
1688 * aarch64-tdep.c: Do not include string.h.
1689 * ada-exp.y: Likewise.
1690 * ada-lang.c: Likewise.
1691 * ada-lex.l: Likewise.
1692 * ada-typeprint.c: Likewise.
1693 * ada-valprint.c: Likewise.
1694 * aix-thread.c: Likewise.
1695 * alpha-linux-tdep.c: Likewise.
1696 * alpha-mdebug-tdep.c: Likewise.
1697 * alpha-nat.c: Likewise.
1698 * alpha-osf1-tdep.c: Likewise.
1699 * alpha-tdep.c: Likewise.
1700 * alphanbsd-tdep.c: Likewise.
1701 * amd64-dicos-tdep.c: Likewise.
1702 * amd64-linux-tdep.c: Likewise.
1703 * amd64-nat.c: Likewise.
1704 * amd64-sol2-tdep.c: Likewise.
1705 * amd64fbsd-tdep.c: Likewise.
1706 * amd64obsd-tdep.c: Likewise.
1707 * arch-utils.c: Likewise.
1708 * arm-linux-nat.c: Likewise.
1709 * arm-linux-tdep.c: Likewise.
1710 * arm-tdep.c: Likewise.
1711 * arm-wince-tdep.c: Likewise.
1712 * armbsd-tdep.c: Likewise.
1713 * armnbsd-nat.c: Likewise.
1714 * armnbsd-tdep.c: Likewise.
1715 * armobsd-tdep.c: Likewise.
1716 * avr-tdep.c: Likewise.
1717 * ax-gdb.c: Likewise.
1718 * ax-general.c: Likewise.
1719 * bcache.c: Likewise.
1720 * bfin-tdep.c: Likewise.
1721 * breakpoint.c: Likewise.
1722 * build-id.c: Likewise.
1723 * buildsym.c: Likewise.
1724 * c-exp.y: Likewise.
1725 * c-lang.c: Likewise.
1726 * c-typeprint.c: Likewise.
1727 * c-valprint.c: Likewise.
1728 * charset.c: Likewise.
1729 * cli-out.c: Likewise.
1730 * cli/cli-cmds.c: Likewise.
1731 * cli/cli-decode.c: Likewise.
1732 * cli/cli-dump.c: Likewise.
1733 * cli/cli-interp.c: Likewise.
1734 * cli/cli-logging.c: Likewise.
1735 * cli/cli-script.c: Likewise.
1736 * cli/cli-setshow.c: Likewise.
1737 * cli/cli-utils.c: Likewise.
1738 * coffread.c: Likewise.
1739 * common/agent.c: Likewise.
1740 * common/buffer.c: Likewise.
1741 * common/buffer.h: Likewise.
1742 * common/common-utils.c: Likewise.
1743 * common/filestuff.c: Likewise.
1744 * common/filestuff.c: Likewise.
1745 * common/format.c: Likewise.
1746 * common/print-utils.c: Likewise.
1747 * common/rsp-low.c: Likewise.
1748 * common/signals.c: Likewise.
1749 * common/vec.h: Likewise.
1750 * common/xml-utils.c: Likewise.
1751 * core-regset.c: Likewise.
1752 * corefile.c: Likewise.
1753 * corelow.c: Likewise.
1754 * cp-abi.c: Likewise.
1755 * cp-name-parser.y: Likewise.
1756 * cp-support.c: Likewise.
1757 * cp-valprint.c: Likewise.
1758 * cris-tdep.c: Likewise.
1759 * d-exp.y: Likewise.
1760 * darwin-nat.c: Likewise.
1761 * dbxread.c: Likewise.
1762 * dcache.c: Likewise.
1763 * demangle.c: Likewise.
1764 * dicos-tdep.c: Likewise.
1765 * disasm.c: Likewise.
1766 * doublest.c: Likewise.
1767 * dsrec.c: Likewise.
1768 * dummy-frame.c: Likewise.
1769 * dwarf2-frame.c: Likewise.
1770 * dwarf2loc.c: Likewise.
1771 * dwarf2read.c: Likewise.
1772 * elfread.c: Likewise.
1773 * environ.c: Likewise.
1774 * eval.c: Likewise.
1775 * event-loop.c: Likewise.
1776 * exceptions.c: Likewise.
1777 * exec.c: Likewise.
1778 * expprint.c: Likewise.
1779 * f-exp.y: Likewise.
1780 * f-lang.c: Likewise.
1781 * f-typeprint.c: Likewise.
1782 * f-valprint.c: Likewise.
1783 * fbsd-nat.c: Likewise.
1784 * findcmd.c: Likewise.
1785 * findvar.c: Likewise.
1786 * fork-child.c: Likewise.
1787 * frame.c: Likewise.
1788 * frv-linux-tdep.c: Likewise.
1789 * frv-tdep.c: Likewise.
1790 * gdb.c: Likewise.
1791 * gdb_bfd.c: Likewise.
1792 * gdbarch.c: Likewise.
1793 * gdbarch.sh: Likewise.
1794 * gdbtypes.c: Likewise.
1795 * gnu-nat.c: Likewise.
1796 * gnu-v2-abi.c: Likewise.
1797 * gnu-v3-abi.c: Likewise.
1798 * go-exp.y: Likewise.
1799 * go-lang.c: Likewise.
1800 * go32-nat.c: Likewise.
1801 * guile/guile.c: Likewise.
1802 * guile/scm-auto-load.c: Likewise.
1803 * hppa-hpux-tdep.c: Likewise.
1804 * hppa-linux-nat.c: Likewise.
1805 * hppanbsd-tdep.c: Likewise.
1806 * hppaobsd-tdep.c: Likewise.
1807 * i386-cygwin-tdep.c: Likewise.
1808 * i386-dicos-tdep.c: Likewise.
1809 * i386-linux-tdep.c: Likewise.
1810 * i386-nto-tdep.c: Likewise.
1811 * i386-sol2-tdep.c: Likewise.
1812 * i386-tdep.c: Likewise.
1813 * i386bsd-tdep.c: Likewise.
1814 * i386gnu-nat.c: Likewise.
1815 * i386nbsd-tdep.c: Likewise.
1816 * i386obsd-tdep.c: Likewise.
1817 * i387-tdep.c: Likewise.
1818 * ia64-libunwind-tdep.c: Likewise.
1819 * ia64-linux-nat.c: Likewise.
1820 * inf-child.c: Likewise.
1821 * inf-ptrace.c: Likewise.
1822 * inf-ttrace.c: Likewise.
1823 * infcall.c: Likewise.
1824 * infcmd.c: Likewise.
1825 * inflow.c: Likewise.
1826 * infrun.c: Likewise.
1827 * interps.c: Likewise.
1828 * iq2000-tdep.c: Likewise.
1829 * irix5-nat.c: Likewise.
1830 * jv-exp.y: Likewise.
1831 * jv-lang.c: Likewise.
1832 * jv-typeprint.c: Likewise.
1833 * jv-valprint.c: Likewise.
1834 * language.c: Likewise.
1835 * linux-fork.c: Likewise.
1836 * linux-nat.c: Likewise.
1837 * lm32-tdep.c: Likewise.
1838 * m2-exp.y: Likewise.
1839 * m2-typeprint.c: Likewise.
1840 * m32c-tdep.c: Likewise.
1841 * m32r-linux-nat.c: Likewise.
1842 * m32r-linux-tdep.c: Likewise.
1843 * m32r-rom.c: Likewise.
1844 * m32r-tdep.c: Likewise.
1845 * m68hc11-tdep.c: Likewise.
1846 * m68k-tdep.c: Likewise.
1847 * m68kbsd-tdep.c: Likewise.
1848 * m68klinux-nat.c: Likewise.
1849 * m68klinux-tdep.c: Likewise.
1850 * m88k-tdep.c: Likewise.
1851 * machoread.c: Likewise.
1852 * macrocmd.c: Likewise.
1853 * main.c: Likewise.
1854 * mdebugread.c: Likewise.
1855 * mem-break.c: Likewise.
1856 * memattr.c: Likewise.
1857 * memory-map.c: Likewise.
1858 * mep-tdep.c: Likewise.
1859 * mi/mi-cmd-break.c: Likewise.
1860 * mi/mi-cmd-disas.c: Likewise.
1861 * mi/mi-cmd-env.c: Likewise.
1862 * mi/mi-cmd-stack.c: Likewise.
1863 * mi/mi-cmd-var.c: Likewise.
1864 * mi/mi-cmds.c: Likewise.
1865 * mi/mi-console.c: Likewise.
1866 * mi/mi-getopt.c: Likewise.
1867 * mi/mi-interp.c: Likewise.
1868 * mi/mi-main.c: Likewise.
1869 * mi/mi-parse.c: Likewise.
1870 * microblaze-rom.c: Likewise.
1871 * microblaze-tdep.c: Likewise.
1872 * mingw-hdep.c: Likewise.
1873 * minidebug.c: Likewise.
1874 * minsyms.c: Likewise.
1875 * mips-irix-tdep.c: Likewise.
1876 * mips-linux-tdep.c: Likewise.
1877 * mips-tdep.c: Likewise.
1878 * mips64obsd-tdep.c: Likewise.
1879 * mipsnbsd-tdep.c: Likewise.
1880 * mipsread.c: Likewise.
1881 * mn10300-linux-tdep.c: Likewise.
1882 * mn10300-tdep.c: Likewise.
1883 * monitor.c: Likewise.
1884 * moxie-tdep.c: Likewise.
1885 * mt-tdep.c: Likewise.
1886 * nat/linux-btrace.c: Likewise.
1887 * nat/linux-osdata.c: Likewise.
1888 * nat/linux-procfs.c: Likewise.
1889 * nat/linux-ptrace.c: Likewise.
1890 * nat/linux-waitpid.c: Likewise.
1891 * nbsd-tdep.c: Likewise.
1892 * nios2-linux-tdep.c: Likewise.
1893 * nto-procfs.c: Likewise.
1894 * nto-tdep.c: Likewise.
1895 * objc-lang.c: Likewise.
1896 * objfiles.c: Likewise.
1897 * opencl-lang.c: Likewise.
1898 * osabi.c: Likewise.
1899 * osdata.c: Likewise.
1900 * p-exp.y: Likewise.
1901 * p-lang.c: Likewise.
1902 * p-typeprint.c: Likewise.
1903 * parse.c: Likewise.
1904 * posix-hdep.c: Likewise.
1905 * ppc-linux-nat.c: Likewise.
1906 * ppc-sysv-tdep.c: Likewise.
1907 * ppcfbsd-tdep.c: Likewise.
1908 * ppcnbsd-tdep.c: Likewise.
1909 * ppcobsd-tdep.c: Likewise.
1910 * printcmd.c: Likewise.
1911 * procfs.c: Likewise.
1912 * prologue-value.c: Likewise.
1913 * python/py-auto-load.c: Likewise.
1914 * python/py-gdb-readline.c: Likewise.
1915 * ravenscar-thread.c: Likewise.
1916 * regcache.c: Likewise.
1917 * registry.c: Likewise.
1918 * remote-fileio.c: Likewise.
1919 * remote-m32r-sdi.c: Likewise.
1920 * remote-mips.c: Likewise.
1921 * remote-notif.c: Likewise.
1922 * remote-sim.c: Likewise.
1923 * remote.c: Likewise.
1924 * reverse.c: Likewise.
1925 * rs6000-aix-tdep.c: Likewise.
1926 * ser-base.c: Likewise.
1927 * ser-go32.c: Likewise.
1928 * ser-mingw.c: Likewise.
1929 * ser-pipe.c: Likewise.
1930 * ser-tcp.c: Likewise.
1931 * ser-unix.c: Likewise.
1932 * serial.c: Likewise.
1933 * sh-tdep.c: Likewise.
1934 * sh64-tdep.c: Likewise.
1935 * shnbsd-tdep.c: Likewise.
1936 * skip.c: Likewise.
1937 * sol-thread.c: Likewise.
1938 * solib-dsbt.c: Likewise.
1939 * solib-frv.c: Likewise.
1940 * solib-osf.c: Likewise.
1941 * solib-som.c: Likewise.
1942 * solib-spu.c: Likewise.
1943 * solib-target.c: Likewise.
1944 * solib.c: Likewise.
1945 * somread.c: Likewise.
1946 * source.c: Likewise.
1947 * sparc-nat.c: Likewise.
1948 * sparc-sol2-tdep.c: Likewise.
1949 * sparc-tdep.c: Likewise.
1950 * sparc64-tdep.c: Likewise.
1951 * sparc64fbsd-tdep.c: Likewise.
1952 * sparc64nbsd-tdep.c: Likewise.
1953 * sparcnbsd-tdep.c: Likewise.
1954 * spu-linux-nat.c: Likewise.
1955 * spu-multiarch.c: Likewise.
1956 * spu-tdep.c: Likewise.
1957 * stabsread.c: Likewise.
1958 * stack.c: Likewise.
1959 * std-regs.c: Likewise.
1960 * symfile.c: Likewise.
1961 * symmisc.c: Likewise.
1962 * symtab.c: Likewise.
1963 * target.c: Likewise.
1964 * thread.c: Likewise.
1965 * tilegx-linux-nat.c: Likewise.
1966 * tilegx-tdep.c: Likewise.
1967 * top.c: Likewise.
1968 * tracepoint.c: Likewise.
1969 * tui/tui-command.c: Likewise.
1970 * tui/tui-data.c: Likewise.
1971 * tui/tui-disasm.c: Likewise.
1972 * tui/tui-file.c: Likewise.
1973 * tui/tui-layout.c: Likewise.
1974 * tui/tui-out.c: Likewise.
1975 * tui/tui-regs.c: Likewise.
1976 * tui/tui-source.c: Likewise.
1977 * tui/tui-stack.c: Likewise.
1978 * tui/tui-win.c: Likewise.
1979 * tui/tui-windata.c: Likewise.
1980 * tui/tui-winsource.c: Likewise.
1981 * typeprint.c: Likewise.
1982 * ui-file.c: Likewise.
1983 * ui-out.c: Likewise.
1984 * user-regs.c: Likewise.
1985 * utils.c: Likewise.
1986 * v850-tdep.c: Likewise.
1987 * valarith.c: Likewise.
1988 * valops.c: Likewise.
1989 * valprint.c: Likewise.
1990 * value.c: Likewise.
1991 * varobj.c: Likewise.
1992 * vax-tdep.c: Likewise.
1993 * vaxnbsd-tdep.c: Likewise.
1994 * vaxobsd-tdep.c: Likewise.
1995 * windows-nat.c: Likewise.
1996 * xcoffread.c: Likewise.
1997 * xml-support.c: Likewise.
1998 * xstormy16-tdep.c: Likewise.
1999 * xtensa-linux-nat.c: Likewise.
2000
2001 2014-08-07 Gary Benson <gbenson@redhat.com>
2002
2003 * common/common-defs.h: Include gdb_assert.h.
2004 * aarch64-tdep.c: Do not include gdb_assert.h.
2005 * addrmap.c: Likewise.
2006 * aix-thread.c: Likewise.
2007 * alpha-linux-tdep.c: Likewise.
2008 * alpha-mdebug-tdep.c: Likewise.
2009 * alphanbsd-tdep.c: Likewise.
2010 * amd64-nat.c: Likewise.
2011 * amd64-tdep.c: Likewise.
2012 * amd64bsd-nat.c: Likewise.
2013 * amd64fbsd-nat.c: Likewise.
2014 * amd64fbsd-tdep.c: Likewise.
2015 * amd64nbsd-nat.c: Likewise.
2016 * amd64nbsd-tdep.c: Likewise.
2017 * amd64obsd-nat.c: Likewise.
2018 * amd64obsd-tdep.c: Likewise.
2019 * arch-utils.c: Likewise.
2020 * arm-tdep.c: Likewise.
2021 * armbsd-tdep.c: Likewise.
2022 * auxv.c: Likewise.
2023 * bcache.c: Likewise.
2024 * bfin-tdep.c: Likewise.
2025 * blockframe.c: Likewise.
2026 * breakpoint.c: Likewise.
2027 * bsd-kvm.c: Likewise.
2028 * bsd-uthread.c: Likewise.
2029 * buildsym.c: Likewise.
2030 * c-exp.y: Likewise.
2031 * c-lang.c: Likewise.
2032 * charset.c: Likewise.
2033 * cleanups.c: Likewise.
2034 * cli-out.c: Likewise.
2035 * cli/cli-decode.c: Likewise.
2036 * cli/cli-dump.c: Likewise.
2037 * cli/cli-logging.c: Likewise.
2038 * cli/cli-script.c: Likewise.
2039 * cli/cli-utils.c: Likewise.
2040 * coffread.c: Likewise.
2041 * common/common-utils.c: Likewise.
2042 * common/queue.h: Likewise.
2043 * common/signals.c: Likewise.
2044 * common/vec.h: Likewise.
2045 * complaints.c: Likewise.
2046 * completer.c: Likewise.
2047 * corelow.c: Likewise.
2048 * cp-abi.c: Likewise.
2049 * cp-name-parser.y: Likewise.
2050 * cp-namespace.c: Likewise.
2051 * cp-support.c: Likewise.
2052 * cris-tdep.c: Likewise.
2053 * dbxread.c: Likewise.
2054 * dictionary.c: Likewise.
2055 * doublest.c: Likewise.
2056 * dsrec.c: Likewise.
2057 * dummy-frame.c: Likewise.
2058 * dwarf2-frame-tailcall.c: Likewise.
2059 * dwarf2-frame.c: Likewise.
2060 * dwarf2expr.c: Likewise.
2061 * dwarf2loc.c: Likewise.
2062 * dwarf2read.c: Likewise.
2063 * eval.c: Likewise.
2064 * event-loop.c: Likewise.
2065 * exceptions.c: Likewise.
2066 * expprint.c: Likewise.
2067 * f-valprint.c: Likewise.
2068 * fbsd-nat.c: Likewise.
2069 * findvar.c: Likewise.
2070 * frame-unwind.c: Likewise.
2071 * frame.c: Likewise.
2072 * frv-tdep.c: Likewise.
2073 * gcore.c: Likewise.
2074 * gdb-dlfcn.c: Likewise.
2075 * gdb_bfd.c: Likewise.
2076 * gdbarch.c: Likewise.
2077 * gdbarch.sh: Likewise.
2078 * gdbtypes.c: Likewise.
2079 * gnu-nat.c: Likewise.
2080 * gnu-v3-abi.c: Likewise.
2081 * go-lang.c: Likewise.
2082 * guile/scm-exception.c: Likewise.
2083 * guile/scm-gsmob.c: Likewise.
2084 * guile/scm-lazy-string.c: Likewise.
2085 * guile/scm-math.c: Likewise.
2086 * guile/scm-pretty-print.c: Likewise.
2087 * guile/scm-safe-call.c: Likewise.
2088 * guile/scm-utils.c: Likewise.
2089 * guile/scm-value.c: Likewise.
2090 * h8300-tdep.c: Likewise.
2091 * hppa-hpux-nat.c: Likewise.
2092 * hppa-tdep.c: Likewise.
2093 * hppanbsd-tdep.c: Likewise.
2094 * hppaobsd-tdep.c: Likewise.
2095 * i386-darwin-nat.c: Likewise.
2096 * i386-darwin-tdep.c: Likewise.
2097 * i386-nto-tdep.c: Likewise.
2098 * i386-tdep.c: Likewise.
2099 * i386bsd-nat.c: Likewise.
2100 * i386fbsd-tdep.c: Likewise.
2101 * i386gnu-nat.c: Likewise.
2102 * i386nbsd-tdep.c: Likewise.
2103 * i386obsd-tdep.c: Likewise.
2104 * i387-tdep.c: Likewise.
2105 * ia64-libunwind-tdep.c: Likewise.
2106 * ia64-tdep.c: Likewise.
2107 * inf-ptrace.c: Likewise.
2108 * inf-ttrace.c: Likewise.
2109 * infcall.c: Likewise.
2110 * infcmd.c: Likewise.
2111 * infrun.c: Likewise.
2112 * inline-frame.c: Likewise.
2113 * interps.c: Likewise.
2114 * jv-lang.c: Likewise.
2115 * jv-typeprint.c: Likewise.
2116 * linux-fork.c: Likewise.
2117 * linux-nat.c: Likewise.
2118 * linux-thread-db.c: Likewise.
2119 * m32c-tdep.c: Likewise.
2120 * m32r-linux-nat.c: Likewise.
2121 * m32r-tdep.c: Likewise.
2122 * m68k-tdep.c: Likewise.
2123 * m68kbsd-nat.c: Likewise.
2124 * m68kbsd-tdep.c: Likewise.
2125 * m88k-tdep.c: Likewise.
2126 * machoread.c: Likewise.
2127 * macroexp.c: Likewise.
2128 * macrotab.c: Likewise.
2129 * maint.c: Likewise.
2130 * mdebugread.c: Likewise.
2131 * memory-map.c: Likewise.
2132 * mep-tdep.c: Likewise.
2133 * mi/mi-common.c: Likewise.
2134 * microblaze-tdep.c: Likewise.
2135 * mingw-hdep.c: Likewise.
2136 * mips-linux-nat.c: Likewise.
2137 * mips-linux-tdep.c: Likewise.
2138 * mips-tdep.c: Likewise.
2139 * mips64obsd-tdep.c: Likewise.
2140 * mipsnbsd-tdep.c: Likewise.
2141 * mn10300-linux-tdep.c: Likewise.
2142 * mn10300-tdep.c: Likewise.
2143 * moxie-tdep.c: Likewise.
2144 * mt-tdep.c: Likewise.
2145 * nat/linux-btrace.c: Likewise.
2146 * nat/linux-osdata.c: Likewise.
2147 * nat/linux-ptrace.c: Likewise.
2148 * nat/mips-linux-watch.c: Likewise.
2149 * nios2-linux-tdep.c: Likewise.
2150 * nios2-tdep.c: Likewise.
2151 * objc-lang.c: Likewise.
2152 * objfiles.c: Likewise.
2153 * obsd-nat.c: Likewise.
2154 * opencl-lang.c: Likewise.
2155 * osabi.c: Likewise.
2156 * parse.c: Likewise.
2157 * ppc-linux-nat.c: Likewise.
2158 * ppc-sysv-tdep.c: Likewise.
2159 * ppcfbsd-nat.c: Likewise.
2160 * ppcfbsd-tdep.c: Likewise.
2161 * ppcnbsd-nat.c: Likewise.
2162 * ppcnbsd-tdep.c: Likewise.
2163 * ppcobsd-nat.c: Likewise.
2164 * ppcobsd-tdep.c: Likewise.
2165 * printcmd.c: Likewise.
2166 * procfs.c: Likewise.
2167 * prologue-value.c: Likewise.
2168 * psymtab.c: Likewise.
2169 * python/py-lazy-string.c: Likewise.
2170 * python/py-value.c: Likewise.
2171 * regcache.c: Likewise.
2172 * reggroups.c: Likewise.
2173 * registry.c: Likewise.
2174 * remote-sim.c: Likewise.
2175 * remote.c: Likewise.
2176 * rs6000-aix-tdep.c: Likewise.
2177 * rs6000-tdep.c: Likewise.
2178 * s390-linux-tdep.c: Likewise.
2179 * score-tdep.c: Likewise.
2180 * ser-base.c: Likewise.
2181 * ser-mingw.c: Likewise.
2182 * sh-tdep.c: Likewise.
2183 * sh64-tdep.c: Likewise.
2184 * solib-darwin.c: Likewise.
2185 * solib-spu.c: Likewise.
2186 * solib-svr4.c: Likewise.
2187 * source.c: Likewise.
2188 * sparc-nat.c: Likewise.
2189 * sparc-sol2-tdep.c: Likewise.
2190 * sparc-tdep.c: Likewise.
2191 * sparc64-sol2-tdep.c: Likewise.
2192 * sparc64-tdep.c: Likewise.
2193 * sparc64fbsd-tdep.c: Likewise.
2194 * sparc64nbsd-tdep.c: Likewise.
2195 * sparc64obsd-tdep.c: Likewise.
2196 * sparcnbsd-tdep.c: Likewise.
2197 * sparcobsd-tdep.c: Likewise.
2198 * spu-multiarch.c: Likewise.
2199 * spu-tdep.c: Likewise.
2200 * stabsread.c: Likewise.
2201 * stack.c: Likewise.
2202 * symfile.c: Likewise.
2203 * symtab.c: Likewise.
2204 * target-descriptions.c: Likewise.
2205 * target-memory.c: Likewise.
2206 * target.c: Likewise.
2207 * tic6x-linux-tdep.c: Likewise.
2208 * tic6x-tdep.c: Likewise.
2209 * tilegx-linux-nat.c: Likewise.
2210 * tilegx-tdep.c: Likewise.
2211 * top.c: Likewise.
2212 * tramp-frame.c: Likewise.
2213 * tui/tui-out.c: Likewise.
2214 * tui/tui-winsource.c: Likewise.
2215 * ui-out.c: Likewise.
2216 * user-regs.c: Likewise.
2217 * utils.c: Likewise.
2218 * v850-tdep.c: Likewise.
2219 * valops.c: Likewise.
2220 * value.c: Likewise.
2221 * varobj.c: Likewise.
2222 * vax-nat.c: Likewise.
2223 * xml-syscall.c: Likewise.
2224 * xml-tdesc.c: Likewise.
2225 * xstormy16-tdep.c: Likewise.
2226 * xtensa-linux-nat.c: Likewise.
2227 * xtensa-tdep.c: Likewise.
2228
2229 2014-08-07 Gary Benson <gbenson@redhat.com>
2230
2231 * common/common-defs.h: Include common-utils.h.
2232 * defs.h: Do not include common-utils.h.
2233 * common/gdb_assert.h: Likewise.
2234 * darwin-nat.h: Likewise.
2235 * nat/linux-btrace.c: Likewise.
2236 * target/waitstatus.h: Likewise.
2237
2238 2014-08-07 Gary Benson <gbenson@redhat.com>
2239
2240 * common/common-defs.h: Include ptid.h.
2241 * defs.h: Do not include ptid.h.
2242 * inferior.h: Likewise.
2243 * infrun.h: Likewise.
2244 * nat/linux-btrace.h: Likewise.
2245 * nat/linux-osdata.h: Likewise.
2246 * target/waitstatus.h: Likewise.
2247
2248 2014-08-07 Gary Benson <gbenson@redhat.com>
2249
2250 * common/common-defs.h: Include gdb_locale.h.
2251 * defs.h: Do not include gdb_locale.h.
2252
2253 2014-08-07 Gary Benson <gbenson@redhat.com>
2254
2255 * common/common-defs.h: Include gdb/signals.h.
2256 * defs.h: Do not include gdb/signals.h.
2257
2258 2014-08-07 Gary Benson <gbenson@redhat.com>
2259
2260 * common/common-defs.h: Include pathmax.h.
2261 * defs.h: Do not include pathmax.h.
2262
2263 2014-08-07 Gary Benson <gbenson@redhat.com>
2264
2265 * common/common-defs.h: Include libiberty.h.
2266 * defs.h: Do not include libiberty.h.
2267 * common/queue.h: Likewise.
2268 * cp-name-parser.y: Likewise.
2269 * mi/mi-cmd-catch.c: Likewise.
2270 * python/python.c: Likewise.
2271
2272 2014-08-07 Gary Benson <gbenson@redhat.com>
2273
2274 * common/common-defs.h: Include ansidecl.h.
2275 * defs.h: Do not include ansidecl.h.
2276 * common/buffer.h: Likewise.
2277 * common/common-utils.h: Likewise.
2278
2279 2014-08-07 Gary Benson <gbenson@redhat.com>
2280
2281 * common/common-defs.h: Include stddef.h.
2282 * defs.h: Do not include stddef.h.
2283 * common/common-utils.h: Likewise.
2284 * amd64fbsd-nat.c: Likewise.
2285 * bcache.c: Likewise.
2286 * charset.c: Likewise.
2287 * common/buffer.h: Likewise.
2288 * common/vec.h: Likewise.
2289 * i386bsd-nat.c: Likewise.
2290 * nat/linux-btrace.h: Likewise.
2291 * ppcfbsd-nat.c: Likewise.
2292 * ppcnbsd-tdep.h: Likewise.
2293 * ppcobsd-nat.c: Likewise.
2294 * ppcobsd-tdep.h: Likewise.
2295 * python/py-gdb-readline.c: Likewise.
2296
2297 2014-08-07 Gary Benson <gbenson@redhat.com>
2298
2299 * common/common-defs.h: Include stdarg.h.
2300 * defs.h: Do not include stdarg.h.
2301 * ada-lang.c: Likewise.
2302 * common/common-utils.h: Likewise.
2303 * guile/scm-string.c: Likewise.
2304 * guile/scm-utils.c: Likewise.
2305 * m32c-tdep.c: Likewise.
2306
2307 2014-08-07 Gary Benson <gbenson@redhat.com>
2308
2309 * common/common-defs.h: Include stdlib.h.
2310 * defs.h: Do not include stdlib.h.
2311 * addrmap.c: Likewise.
2312 * bcache.c: Likewise.
2313 * common/buffer.c: Likewise.
2314 * common/common-utils.c: Likewise.
2315 * cp-name-parser.y: Likewise.
2316 * go32-nat.c: Likewise.
2317 * mn10300-linux-tdep.c: Likewise.
2318 * nat/linux-osdata.c: Likewise.
2319 * tui/tui.c: Likewise.
2320 * windows-nat.c: Likewise.
2321
2322 2014-08-07 Gary Benson <gbenson@redhat.com>
2323
2324 * common/common-defs.h: Include stdio.h.
2325 * defs.h: Do not include stdio.h.
2326 * ada-lang.c: Likewise.
2327 * common/buffer.c: Likewise.
2328 * common/common-utils.c: Likewise.
2329 * cp-name-parser.y: Likewise.
2330 * gnu-nat.c: Likewise.
2331 * go32-nat.c: Likewise.
2332 * i386gnu-nat.c: Likewise.
2333 * proc-api.c: Likewise.
2334 * proc-events.c: Likewise.
2335 * proc-flags.c: Likewise.
2336 * proc-why.c: Likewise.
2337 * python/python-internal.h: Likewise.
2338 * target-memory.c: Likewise.
2339 * tui/tui-io.c: Likewise.
2340 * tui/tui.c: Likewise.
2341
2342 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2343
2344 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2345 (scan_dyntag_auxv): Same.
2346
2347 2014-08-06 Yao Qi <yao@codesourcery.com>
2348
2349 * amd64-linux-nat.c: Remove duplicated include
2350 "x86-linux-nat.h".
2351 * i386-linux-nat.c: Likewise.
2352
2353 2014-08-06 Yao Qi <yao@codesourcery.com>
2354
2355 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2356 operand" with "Special opcode" in comments.
2357
2358 2014-08-05 Gary Benson <gbenson@redhat.com>
2359
2360 * interps.c (initialize_interps): Remove prototype.
2361 (interpreter_initialized): Remove static global.
2362 (interp_add): Do not call initialize_interps.
2363 (initialize_interps): Remove function.
2364
2365 2014-08-05 Gary Benson <gbenson@redhat.com>
2366
2367 * utils.c (vwarning): Remove spurious va_end.
2368
2369 2014-08-05 Alan Modra <amodra@gmail.com>
2370
2371 * charset.c (convert_between_encodings): Cast result of obstack_base.
2372 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2373 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2374 (read_unwind_info): Use size_t for some locals.
2375 * jit.c (finalize_symtab): Likewise.
2376 * utils.c (hashtab_obstack_allocate): Likewise.
2377 * symmisc.c (print_objfile_statistics): Update format strings.
2378
2379 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2380
2381 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2382 (Changes in GDB 7.8): ... here.
2383
2384 2014-08-04 Tom Tromey <tromey@redhat.com>
2385
2386 * target.c (set_targetdebug): New function.
2387 (initialize_targets): Pass set_targetdebug when creating "set
2388 debug target".
2389
2390 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2391
2392 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2393 if detecting a variable-sized field that is not the last field.
2394 Fix struct type length computation.
2395
2396 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2397
2398 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2399 Add debug trace.
2400
2401 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2402
2403 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2404 Remove "+ 8" offset in computation of CHAIN_VMA.
2405
2406 2014-07-31 Doug Evans <dje@google.com>
2407
2408 * inflow.c (child_terminal_inferior): Add comment.
2409 (child_terminal_ours_for_output): Add comment.
2410 (child_terminal_ours): Add comment.
2411 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2412 (linux_nat_terminal_ours): Add comment.
2413
2414 2014-07-31 Gary Benson <gbenson@redhat.com>
2415
2416 * common/btrace-common.h: Do not include defs.h or server.h.
2417 * nat/mips-linux-watch.h: Likewise.
2418 * gdb-dlfcn.h: Do not include defs.h.
2419 * tracefile.h: Likewise.
2420
2421 2014-07-30 Roland McGrath <mcgrathr@google.com>
2422
2423 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2424
2425 2014-07-30 Tom Tromey <tromey@redhat.com>
2426
2427 * bsd-kvm.c (bsd_kvm_open): Constify.
2428 * corelow.c (core_open): Constify.
2429 * ctf.c (ctf_open): Constify.
2430 * dbug-rom.c (dbug_open): Constify.
2431 * exec.c (exec_open): Constify.
2432 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2433 * microblaze-rom.c (picobug_open): Constify.
2434 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2435 Constify.
2436 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2437 * record-btrace.c (record_btrace_open): Constify.
2438 * record-full.c (record_full_core_open_1, record_full_open_1)
2439 (record_full_open): Constify.
2440 * remote-m32r-sdi.c (m32r_open): Constify.
2441 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2442 (rockhopper_open, lsi_open): Constify.
2443 * remote-sim.c (gdbsim_open): Constify.
2444 * remote.c (remote_open, extended_remote_open, remote_open_1):
2445 Constify.
2446 * target.h (struct target_ops) <to_open>: Make "arg" const.
2447 * tracefile-tfile.c (tfile_open): Constify.
2448
2449 2014-07-30 Tom Tromey <tromey@redhat.com>
2450
2451 * breakpoint.c (map_breakpoint_numbers): Update.
2452 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2453 (get_number_const): New function.
2454 (get_number): Rewrite using get_number_const.
2455 (init_number_or_range): Make "string" const.
2456 (number_is_in_list): Make "list" const.
2457 * cli/cli-utils.h (get_number_const): Declare.
2458 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2459 (init_number_or_range, number_is_in_list): Update.
2460 * printcmd.c (map_display_numbers): Update.
2461 * value.c (value_from_history_ref): Constify.
2462 * value.h (value_from_history_ref): Update.
2463
2464 2014-07-30 Tom Tromey <tromey@redhat.com>
2465
2466 * corefile.c (hook_type, call_extra_exec_file_hooks)
2467 (specify_exec_file_hook): Constify.
2468 * exec.c (exec_file_attach): Make "filename" const.
2469 * gdbcore.h (deprecated_exec_file_display_hook)
2470 (specify_exec_file_hook, exec_file_attach): Constify.
2471 * main.c (captured_main): Use catch_command_errors_const.
2472
2473 2014-07-30 Tom Tromey <tromey@redhat.com>
2474
2475 * target.c (open_target): New function.
2476 (add_target_with_completer, add_deprecated_target_alias): Use
2477 set_cmd_sfunc, set_cmd_context.
2478 (debug_to_open): Remove.
2479 (setup_target_debug): Update.
2480
2481 2014-07-30 Yao Qi <yao@codesourcery.com>
2482
2483 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2484 comments.
2485 * parse.c (exp_iterate): Update comments.
2486
2487 2014-07-30 Gary Benson <gbenson@redhat.com>
2488
2489 * common/common-defs.h: New file.
2490 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2491 * defs.h: Include common-defs.h.
2492 Do not include config.h or build-gnulib/config.h.
2493
2494 2014-07-30 Gary Benson <gbenson@redhat.com>
2495
2496 * common/common-utils.h: Do not include config.h.
2497 * nat/linux-btrace.h: Likewise.
2498
2499 2014-07-30 Gary Benson <gbenson@redhat.com>
2500
2501 * btrace.c: Include defs.h.
2502 * common/ptid.c: Include defs.h or server.h as appropriate.
2503 * nat/mips-linux-watch.c: Likewise.
2504
2505 2014-07-29 Tom Tromey <tromey@redhat.com>
2506
2507 * target.c (target_is_pushed): Simplify.
2508
2509 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2510
2511 GDB 7.8 released.
2512
2513 2014-07-29 Yao Qi <yao@codesourcery.com>
2514
2515 PR gdb/17206
2516 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2517
2518 2014-07-28 Doug Evans <xdje42@gmail.com>
2519
2520 PR guile/17203
2521 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2522 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2523 parameters.
2524
2525 2014-07-28 Will Newton <will.newton@linaro.org>
2526
2527 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2528 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2529 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2530 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2531 (THUMB2_EABI_SYSCALL): Likewise.
2532 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2533 struct tramp_frame.
2534 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2535 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2536
2537 2014-07-27 Doug Evans <xdje42@gmail.com>
2538
2539 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2540
2541 2014-07-27 Doug Evans <xdje42@gmail.com>
2542
2543 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2544
2545 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2546 Doug Evans <xdje42@gmail.com>
2547
2548 PR guile/17146
2549 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2550 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2551 * configure.ac: Try to use guild to compile an scm file, if it fails
2552 then disable guile support.
2553 * configure: Regenerate.
2554 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2555 GUILE_FILE_LIST.
2556 (GUILE_COMPILED_FILES): New variable.
2557 (GUILE_FILES) Update.
2558 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2559 (stamp-guile): Compile scm files.
2560 * guile/guile.c (boot_guile_support): New function.
2561 (standard_throw_args_p): New function.
2562 (print_standard_throw_error, print_throw_error): New functions.
2563 (handle_boot_error): New function.
2564 (initialize_scheme_side): Rewrite to call boot_guile_support.
2565 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2566 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2567
2568 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2569 Doug Evans <xdje42@gmail.com>
2570
2571 PR guile/17146
2572 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2573 * guile/lib/gdb/support.scm: New file.
2574 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2575 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2576 All uses updated.
2577 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2578 All uses updated.
2579 (%assert-type): Ditto, and renamed to assert-type.
2580 (%exception-print-style): Delete.
2581
2582 2014-07-26 Doug Evans <xdje42@gmail.com>
2583
2584 PR build/17105
2585 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2586 * configure: Regenerate.
2587 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2588 PYTHON_FILES.
2589 (PYTHON_FILES): New variable.
2590 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2591 (GUILE_FILES): New variable.
2592 (stamp-python, install-python, uninstall-python): Handle empty
2593 file list.
2594 (stamp-guile, install-guile, uninstall-guile): Ditto.
2595
2596 2014-07-26 Doug Evans <xdje42@gmail.com>
2597
2598 PR guile/17177
2599 * guile/lib/gdb.scm (pretty-printers): Export.
2600 (set-pretty-printers!): Export.
2601 * guile/lib/gdb/printing.scm (gdb module): Update.
2602 (prepend-pretty-printer!, append-pretty-printer!): Update.
2603 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2604 (pretty_printer_list_var): Delete.
2605 (pretty_printer_list): New static global.
2606 (gdbscm_pretty_printers): New function.
2607 (gdbscm_set_pretty_printers_x): New function.
2608 (ppscm_find_pretty_printer_from_gdb): Update.
2609 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2610 (gdbscm_initialize_pretty_printers): Update.
2611
2612 2014-07-26 Doug Evans <xdje42@gmail.com>
2613
2614 PR 17185
2615 * configure.ac: Add check for header gc/gc.h.
2616 Add check for function setenv.
2617 * configure: Regenerate.
2618 * config.in: Regenerate.
2619 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2620
2621 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2622
2623 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2624 variation in gdbarch matching.
2625
2626 2014-07-25 Tom Tromey <tromey@redhat.com>
2627
2628 * exec.c (using_exec_ops): Remove.
2629 (exec_close_1): Update. Remove extraneous block, reindent.
2630 (add_target_sections): Use target_is_pushed.
2631
2632 2014-07-25 Pedro Alves <palves@redhat.com>
2633
2634 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2635 * monitor.c (monitor_create_inferior): Likewise.
2636 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2637 * remote-sim.c (gdbsim_create_inferior): Likewise.
2638 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2639 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2640 * windows-nat.c (do_initial_windows_stuff): Likewise.
2641
2642 2014-07-25 Pedro Alves <palves@redhat.com>
2643
2644 * NEWS: Mention signal passing and "signal" command changes.
2645 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2646 comment.
2647 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2648 call.
2649 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2650 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2651 (jump_command): Adjust clear_proceed_status call.
2652 (signal_command): Warn if other thread that are resumed have
2653 signals that will be delivered. Adjust clear_proceed_status call.
2654 (until_next_command, finish_command)
2655 (proceed_after_attach_callback, attach_command_post_wait)
2656 (attach_command): Adjust clear_proceed_status call.
2657 * infrun.c (proceed_after_vfork_done): Likewise.
2658 (proceed_after_attach_callback): Adjust comment.
2659 (clear_proceed_status_thread): Clear stop_signal if not in pass
2660 state.
2661 (clear_proceed_status_callback): Delete.
2662 (clear_proceed_status): New 'step' parameter. Only clear the
2663 proceed status of threads the command being prepared is about to
2664 resume.
2665 (proceed): If passed in an explicit signal, override stop_signal
2666 with it. Don't pass the last stop signal to the thread we're
2667 resuming.
2668 (init_wait_for_inferior): Adjust clear_proceed_status call.
2669 (switch_back_to_stepped_thread): Clear the signal if it should not
2670 be passed.
2671 * infrun.h (clear_proceed_status): New 'step' parameter.
2672 (user_visible_resume_ptid): Add comment.
2673 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2674 signal is in pass state.
2675 * remote.c (append_pending_thread_resumptions): Likewise.
2676 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2677
2678 2014-07-25 Tom Tromey <tromey@redhat.com>
2679
2680 * target.h (target_stopped_data_address)
2681 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2682 parentheses.
2683
2684 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2685
2686 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2687 comments.
2688 (avr_pointer_to_address): Likewise.
2689
2690 2014-07-24 Tom Tromey <tromey@redhat.com>
2691
2692 * monitor.c (compile_pattern): Update.
2693 * target.h (struct target_ops) <to_shortname, to_longname,
2694 to_doc>: Now const.
2695
2696 2014-07-24 Tom Tromey <tromey@redhat.com>
2697
2698 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2699 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2700 (add_info_alias, add_com): Make "doc" const.
2701 (print_doc_line): Make "str" const.
2702 (delete_cmd): Update.
2703 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2704 (print_doc_line): Update.
2705 * cli/cli-script.c (document_command): Update.
2706 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2707 (add_com, add_info, add_info_alias): Update.
2708 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2709 * python/py-cmd.c (cmdpy_destroyer): Update.
2710
2711 2014-07-24 Tom Tromey <tromey@redhat.com>
2712
2713 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2714 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2715 (help_cmd_list): Constify.
2716 (lookup_cmd): Update.
2717 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2718 const.
2719 (help_cmd_list, apropos_cmd): Update.
2720 * cli/cli-script.c (show_user): Update.
2721 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2722 * cli/cli-setshow.h (cmd_show_list): Update.
2723 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2724 (cmd_show_list): Update.
2725 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2726 * python/py-cmd.c (cmdpy_destroyer): Update.
2727
2728 2014-07-24 Tom Tromey <tromey@redhat.com>
2729
2730 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2731 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2732 const.
2733 * command.h (deprecate_cmd): Update.
2734 * maint.c (maintenance_do_deprecate): Add casts.
2735
2736 2014-07-24 Tom Tromey <tromey@redhat.com>
2737
2738 * cli/cli-decode.c (help_cmd): Make parameter "const".
2739 * cli/cli-decode.h (help_cmd): Update.
2740
2741 2014-07-24 Tom Tromey <tromey@redhat.com>
2742
2743 * stack.c (up_silently_base, down_silently_base): Make argument
2744 const.
2745
2746 2014-07-24 Tom Tromey <tromey@redhat.com>
2747
2748 * solib.c (solib_add): Make "pattern" const.
2749 * solib.h (solib_add): Update.
2750
2751 2014-07-24 Tom Tromey <tromey@redhat.com>
2752
2753 * remote.c (remote_serial_open, print_packet, putpkt)
2754 (putpkt_binary): Constify.
2755 * remote.h (putpkt): Update.
2756
2757 2014-07-24 Tom Tromey <tromey@redhat.com>
2758
2759 * monitor.c (monitor_open): Make "args" const.
2760 * monitor.h (monitor_open): Update.
2761
2762 2014-07-24 Tom Tromey <tromey@redhat.com>
2763
2764 * maint.c (match_bfd_flags): Make "string" const.
2765 (print_bfd_section_info): Remove casts.
2766 (print_objfile_section_info): Make "string" const.
2767
2768 2014-07-24 Tom Tromey <tromey@redhat.com>
2769
2770 * inf-child.c (inf_child_open_target): Make "arg" const.
2771 * inf-child.h (inf_child_open_target): Update.
2772
2773 2014-07-24 Tom Tromey <tromey@redhat.com>
2774
2775 * environ.c (unset_in_environ): Make "var" const.
2776 * environ.h (unset_in_environ): Update.
2777
2778 2014-07-24 Tom Tromey <tromey@redhat.com>
2779
2780 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2781 Make "cmd" const.
2782 (scan_filename_with_cleanup): Likewise.
2783 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2784 Make arguments const.
2785 (restore_command): Update.
2786
2787 2014-07-24 Pedro Alves <palves@redhat.com>
2788
2789 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2790
2791 2014-07-24 Tom Tromey <tromey@redhat.com>
2792 Gary Benson <gbenson@redhat.com>
2793
2794 * nat/linux-ptrace.c (additional_flags): New global.
2795 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2796 additional_flags; don't check GDBSERVER.
2797 (linux_ptrace_set_additional_flags): New function.
2798 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2799 Declare.
2800 * linux-nat.c (_initialize_linux_nat): Call
2801 linux_ptrace_set_additional_flags.
2802
2803 2014-07-24 Tom Tromey <tromey@redhat.com>
2804
2805 * make-target-delegates (munge_type, write_debugmethod): New
2806 functions.
2807 (debug_names): New global.
2808 ($TARGET_DEBUG_PRINTER): New global.
2809 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2810 name.
2811 Write debug methods. Generate init_debug_target.
2812 * target-debug.h: New file.
2813 * target-delegates.c: Rebuild.
2814 * target.c: Include target-debug.h.
2815 (debug_target): Hoist definition.
2816 (target_kill, target_get_section_table, target_memory_map)
2817 (target_flash_erase, target_flash_done, target_detach)
2818 (target_disconnect, target_wait, target_resume)
2819 (target_pass_signals, target_program_signals, target_follow_fork)
2820 (target_mourn_inferior, target_search_memory)
2821 (target_thread_address_space, target_close)
2822 (target_find_new_threads, target_core_of_thread)
2823 (target_verify_memory, target_insert_mask_watchpoint)
2824 (target_remove_mask_watchpoint): Remove targetdebug code.
2825 (debug_to_post_attach, debug_to_prepare_to_store)
2826 (debug_to_files_info, debug_to_insert_breakpoint)
2827 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2828 (debug_to_region_ok_for_hw_watchpoint)
2829 (debug_to_can_accel_watchpoint_condition)
2830 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2831 (debug_to_watchpoint_addr_within_range)
2832 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2833 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2834 (debug_to_terminal_init, debug_to_terminal_inferior)
2835 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2836 (debug_to_terminal_save_ours, debug_to_terminal_info)
2837 (debug_to_load, debug_to_post_startup_inferior)
2838 (debug_to_insert_fork_catchpoint)
2839 (debug_to_remove_fork_catchpoint)
2840 (debug_to_insert_vfork_catchpoint)
2841 (debug_to_remove_vfork_catchpoint)
2842 (debug_to_insert_exec_catchpoint)
2843 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2844 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2845 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2846 (setup_target_debug): Call init_debug_target.
2847 * target.h (TARGET_DEBUG_PRINTER): New macro.
2848 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2849 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2850
2851 2014-07-24 Gary Benson <gbenson@redhat.com>
2852
2853 * exceptions.h (throw_vfatal): Renamed to...
2854 (throw_vquit): New declaration.
2855 (throw_quit): Likewise.
2856 * exceptions.c (throw_vfatal): Renamed to...
2857 (throw_vquit): New function.
2858 (throw_quit): Likewise.
2859 (throw_error): Call throw_verror rather than throw_it.
2860 * utils.h (vfatal): Removed.
2861 (fatal): Likewise.
2862 * utils.c (vfatal): Removed.
2863 (fatal): Likewise.
2864 (internal_verror): Replaced call to fatal with call to throw_quit.
2865 (quit): Replaced calls to fatal with calls to throw_quit.
2866
2867 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2868
2869 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2870 target_read_code.
2871
2872 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2873
2874 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2875 less than zero in conditional expression.
2876
2877 2014-07-23 Tom Tromey <tromey@redhat.com>
2878
2879 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2880 ($INTRO_PART): Don't match whitespace.
2881 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2882 argument matching.
2883 ($METHOD): Add $METHOD_TRAILER.
2884 (trim): Rewrite.
2885 (scan_target_h): New sub.
2886 Change main loop not to collect state.
2887 * target-delegates.c: Rebuild.
2888
2889 2014-07-23 Gary Benson <gbenson@redhat.com>
2890
2891 * cp-support.c (gdb_demangle): Fix build on systems without
2892 sigaltstack.
2893
2894 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2895
2896 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2897 for reference entry value target data value.
2898
2899 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2900
2901 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2902 value_available_contents_eq.
2903
2904 2014-07-22 Pedro Alves <palves@redhat.com>
2905
2906 * value.c (allocate_optimized_out_value): Don't mark value as
2907 non-lazy.
2908
2909 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2910
2911 * MAINTAINERS (Write After Approval): Update my email address.
2912
2913 2014-07-20 Doug Evans <dje@google.com>
2914
2915 PR server/17147
2916 * remote.c (putpkt_binary): Add text to error message.
2917
2918 2014-07-20 Yao Qi <yao@codesourcery.com>
2919
2920 * eval.c: Remove "Chill" from comments.
2921 * gdbtypes.h: Likewise.
2922 * symtab.h: Likewise.
2923
2924 2014-07-20 Yao Qi <yao@codesourcery.com>
2925
2926 * std-operator.def: Update comments to TERNOP_SLICE.
2927
2928 2014-07-20 Yao Qi <yao@codesourcery.com>
2929
2930 * std-operator.def: Remove BINOP_RANGE.
2931 * breakpoint.c (watchpoint_exp_is_const): Update.
2932 * expprint.c (dump_subexp_body_standard): Likewise.
2933 * eval.c (init_array_element): Remove dead code.
2934 (evaluate_subexp_standard): Likewise.
2935
2936 2014-07-20 Yao Qi <yao@codesourcery.com>
2937
2938 * std-operator.def: Remove BINOP_IN.
2939 * breakpoint.c (watchpoint_exp_is_const): Update.
2940 * eval.c (evaluate_subexp_standard): Likewise.
2941 * expprint.c (dump_subexp_body_standard): Likewise.
2942
2943 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2944
2945 * microblaze-tdep.c (microblaze_register_names): Add
2946 the rshr and rslr register names.
2947 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2948 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2949 Use of tdesc_numbered_register. Use of
2950 microblaze_register_g_packet_guesses. Use of
2951 tdesc_use_registers. Use of set_gdbarch_register_type.
2952 (microblaze_register_g_packet_guesses): New.
2953 * microblaze-tdep.h (microblaze_reg_num): Add
2954 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2955 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2956 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2957 * features/microblaze-core.xml: New file.
2958 * features/microblaze-stack-protect.xml: New file.
2959 * features/microblaze-with-stack-protect.c: New file.
2960 * features/microblaze-with-stack-protect.xml: New file.
2961 * features/microblaze.xml: New file.
2962 * features/microblaze.c: New file.
2963 * features/Makefile (microblaze-with-stack-protect): Add
2964 microblaze-with-stack-protect microblaze and microblaze-expedite.
2965 * regformats/microblaze-with-stack-protect.dat: New file.
2966 * regformats/microblaze.dat: New file.
2967 * doc/gdb.texinfo (MicroBlaze Features): Added.
2968
2969 2014-07-18 Tom Tromey <tromey@redhat.com>
2970
2971 * exec.c (exec_ops): Now static.
2972 * exec.h (exec_ops): Don't declare.
2973
2974 2014-07-18 Tom Tromey <tromey@redhat.com>
2975
2976 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2977 to find_target_beneath.
2978 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2979 find_target_beneath.
2980 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2981
2982 2014-07-18 Tom Tromey <tromey@redhat.com>
2983
2984 PR gdb/17130:
2985 * utils.c (quit): Use target_supports_terminal_ours.
2986 * target.h (target_supports_terminal_ours): Declare.
2987 * target.c (target_supports_delete_record): Don't check
2988 to_delete_record against NULL.
2989 (target_supports_terminal_ours): New function.
2990
2991 2014-07-18 Tom Tromey <tromey@redhat.com>
2992
2993 PR gdb/17130:
2994 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2995 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2996 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2997 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2998 * windows-nat.c (windows_xfer_partial): Always delegate.
2999 * record-btrace.c (record_btrace_xfer_partial): Simplify
3000 delegation.
3001 (record_btrace_fetch_registers, record_btrace_store_registers)
3002 (record_btrace_prepare_to_store, record_btrace_resume)
3003 (record_btrace_wait, record_btrace_find_new_threads)
3004 (record_btrace_thread_alive): Likewise.
3005 * procfs.c (procfs_xfer_partial): Always delegate.
3006 * corelow.c (core_xfer_partial): Always delegate.
3007 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3008
3009 2014-07-18 Tom Tromey <tromey@redhat.com>
3010
3011 * exec.c (exec_make_note_section): Move earlier.
3012
3013 2014-07-17 Doug Evans <dje@google.com>
3014
3015 PR gdb/17170
3016 * maint.c (count_symtabs_and_blocks): Handle NULL
3017 current_program_space.
3018 (report_command_stats): Check global enabled flag in addition to
3019 recorded enabled flag.
3020 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3021
3022 2014-07-16 Pedro Alves <palves@redhat.com>
3023
3024 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3025
3026 2014-07-16 Tom Tromey <tromey@redhat.com>
3027
3028 * target.h (struct target_ops) <to_delete_record>: Reformat
3029 comment.
3030
3031 2014-07-16 Tom Tromey <tromey@redhat.com>
3032
3033 * target-delegates.c: Rebuild.
3034
3035 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3036
3037 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3038 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3039 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3040 (avr_pointer_to_address): Likewise.
3041 (avr_address_class_type_flags): New function.
3042 (avr_address_class_type_flags_to_name): Likewise.
3043 (avr_address_class_name_to_type_flags): Likewise.
3044 (avr_gdbarch_init): Set address_class_type_flags,
3045 address_class_type_flags_to_name and
3046 address_class_name_to_type_flags.
3047
3048 2014-07-15 Pedro Alves <palves@redhat.com>
3049
3050 * linux-nat.c (kill_callback): Save errno and work with saved
3051 copy.
3052
3053 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3054
3055 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3056
3057 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3058
3059 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3060 breakpoint support correctly.
3061
3062 2014-07-14 Pedro Alves <palves@redhat.com>
3063
3064 * utils.c (prompt_for_continue): Call target_terminal_ours.
3065
3066 2014-07-14 Pedro Alves <palves@redhat.com>
3067
3068 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3069 catch_errors. Don't re-enable stdin or notify observers where,
3070 and rethrow error.
3071 (fetch_inferior_event_wrapper): Delete.
3072
3073 2014-07-14 Pedro Alves <palves@redhat.com>
3074
3075 PR gdb/17072
3076 * top.c: Include "inf-loop.h".
3077 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3078 field.
3079 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3080 was async before.
3081 (gdb_readline_wrapper): Store whether the target is async, and
3082 make it sync.
3083
3084 2014-07-14 Pedro Alves <palves@redhat.com>
3085
3086 PR gdb/17072
3087 * top.c (gdb_readline_wrapper_line): Tweak comment.
3088 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3089 the input handler callback.
3090
3091 2014-07-14 Pedro Alves <palves@redhat.com>
3092
3093 PR gdb/17072
3094 * main.c: Include event-top.h.
3095 (handle_command_errors): New function.
3096 (catch_command_errors, catch_command_errors_const): Use it.
3097
3098 2014-07-14 Pedro Alves <palves@redhat.com>
3099
3100 * exceptions.c (catch_command_errors, catch_command_errors_const):
3101 Moved to main.c.
3102 * exceptions.h (catch_command_errors_ftype)
3103 (catch_command_errors_const_ftype): Moved to main.c.
3104 (catch_command_errors, catch_command_errors_const): Delete
3105 declarations.
3106 * main.c (catch_command_errors_ftype)
3107 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3108 (catch_command_errors, catch_command_errors_const)): Moved here
3109 from exceptions.c and make static.
3110
3111 2014-07-14 Pedro Alves <palves@redhat.com>
3112
3113 * exceptions.c (print_any_exception): Delete.
3114 (catch_exceptions_with_msg): Use exception_print instead of
3115 print_any_exception.
3116 (catch_errors): Use exception_fprintf instead of
3117 print_any_exception.
3118 (catch_command_errors, catch_command_errors_const): Use
3119 exception_print instead of print_any_exception.
3120
3121 2014-07-14 Pedro Alves <palves@redhat.com>
3122
3123 * infcall.c (run_inferior_call): Set 'sync_execution' while
3124 running the inferior call.
3125
3126 2014-07-14 Pedro Alves <palves@redhat.com>
3127
3128 * value.c (value_contents_equal): Delete function.
3129 * value.h (value_contents_equal): Delete declaration.
3130
3131 2014-07-14 Tom Tromey <tromey@redhat.com>
3132
3133 PR exp/17106:
3134 * gdbtypes.c (is_dynamic_type_internal): New function, from
3135 is_dynamic_type.
3136 (is_dynamic_type): Rewrite.
3137 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3138 (resolve_dynamic_struct): Likewise.
3139 (resolve_dynamic_type_internal): New function, from
3140 resolve_dynamic_type.
3141 (resolve_dynamic_type): Rewrite.
3142
3143 2014-07-14 Tom Tromey <tromey@redhat.com>
3144
3145 * target.c (target_require_runnable): Also check record_stratum.
3146 Update comment.
3147
3148 2014-07-11 Yao Qi <yao@codesourcery.com>
3149
3150 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3151 thumb_instruction_restores_sp return true.
3152
3153 2014-07-11 Yao Qi <yao@codesourcery.com>
3154
3155 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3156 (thumb_in_function_epilogue_p): Call
3157 thumb_instruction_restores_sp.
3158
3159 2014-07-11 Yao Qi <yao@codesourcery.com>
3160
3161 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3162 'add sp, #imm'.
3163 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3164
3165 2014-07-11 Gary Benson <gbenson@redhat.com>
3166
3167 * amd64-linux-nat.c (gdbcore.h): Remove include.
3168 (regset.h): Likewise.
3169 (nat/linux-btrace.h): Likewise.
3170 (btrace.h): Likewise.
3171 (gdb_assert.h): Likewise.
3172 (string.h): Likewise.
3173 (sys/uio.h): Likewise.
3174 (sys/debugreg.h): Likewise.
3175 (sys/syscall.h): Likewise.
3176 (sys/procfs.h): Likewise.
3177 (sys/user.h): Likewise.
3178 (asm/ptrace.h): Likewise.
3179 (i386-nat.h): Likewise.
3180 * i386-linux-nat.c (i386-nat.h): Likewise.
3181 (regset.h): Likewise.
3182 (target.h): Likewise.
3183 (linux-nat.h): Likewise.
3184 (nat/linux-btrace.h): Likewise.
3185 (btrace.h): Likewise.
3186 (gdb_assert.h): Likewise.
3187 (string.h): Likewise.
3188 (sys/uio.h): Likewise.
3189 (sys/user.h): Likewise.
3190 (sys/procfs.h): Likewise.
3191 (sys/reg.h): Likewise.
3192 (sys/debugreg.h): Likewise.
3193 (ORIG_EAX): Remove definition.
3194
3195 2014-07-11 Gary Benson <gbenson@redhat.com>
3196
3197 * i386-linux-nat.h: New file.
3198 * x86-linux-nat.h: Likewise.
3199 * x86-linux-nat.c: Likewise.
3200 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3201 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3202 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3203 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3204 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3205 (PTRACE_SETREGSET): Likewise.
3206 (arch_lwp_info): Now in x86-linux-nat.c.
3207 (have_ptrace_getregset): Now in x86-linux-nat.h.
3208 (x86_linux_dr_get): Now in x86-linux-nat.c.
3209 (x86_linux_dr_set): Likewise.
3210 (x86_linux_dr_get_addr): Likewise.
3211 (x86_linux_dr_get_control): Likewise.
3212 (x86_linux_dr_get_status): Likewise.
3213 (update_debug_registers_callback): Likewise.
3214 (x86_linux_dr_set_control): Likewise.
3215 (x86_linux_dr_set_addr): Likewise.
3216 (x86_linux_prepare_to_resume): Likewise.
3217 (x86_linux_new_thread): Likewise.
3218 (x86_linux_new_fork): Likewise.
3219 (x86_linux_get_thread_area): Likewise.
3220 (super_post_startup_inferior): Likewise.
3221 (x86_linux_child_post_startup_inferior): Likewise.
3222 (AMD64_LINUX_USER64_CS): Likewise.
3223 (AMD64_LINUX_X32_DS): Likewise.
3224 (x86_linux_read_description): Likewise.
3225 (x86_linux_enable_btrace): Likewise.
3226 (x86_linux_disable_btrace): Likewise.
3227 (x86_linux_teardown_btrace): Likewise.
3228 (x86_linux_read_btrace): Likewise.
3229 (x86_linux_create_target): Likewise.
3230 (x86_linux_add_target): Likewise.
3231 * i386-linux-nat.c (x86-linux-nat.h): New include.
3232 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3233 (PTRACE_SETREGSET): Likewise.
3234 (arch_lwp_info): Now in x86-linux-nat.c.
3235 (have_ptrace_getregset): Now in x86-linux-nat.h.
3236 (x86_linux_dr_get): Now in x86-linux-nat.c.
3237 (x86_linux_dr_set): Likewise.
3238 (x86_linux_dr_get_addr): Likewise.
3239 (x86_linux_dr_get_control): Likewise.
3240 (x86_linux_dr_get_status): Likewise.
3241 (update_debug_registers_callback): Likewise.
3242 (x86_linux_dr_set_control): Likewise.
3243 (x86_linux_dr_set_addr): Likewise.
3244 (x86_linux_prepare_to_resume): Likewise.
3245 (x86_linux_new_thread): Likewise.
3246 (x86_linux_new_fork): Likewise.
3247 (x86_linux_get_thread_area): Likewise.
3248 (super_post_startup_inferior): Likewise.
3249 (x86_linux_child_post_startup_inferior): Likewise.
3250 (AMD64_LINUX_USER64_CS): Likewise.
3251 (AMD64_LINUX_X32_DS): Likewise.
3252 (x86_linux_read_description): Likewise.
3253 (x86_linux_enable_btrace): Likewise.
3254 (x86_linux_disable_btrace): Likewise.
3255 (x86_linux_teardown_btrace): Likewise.
3256 (x86_linux_read_btrace): Likewise.
3257 (x86_linux_create_target): Likewise.
3258 (x86_linux_add_target): Likewise.
3259
3260 2014-07-11 Gary Benson <gbenson@redhat.com>
3261
3262 * amd64-linux-nat.c: Comment and whitespace changes.
3263 * i386-linux-nat.c: Comment and whitespace changes.
3264
3265 2014-07-11 Gary Benson <gbenson@redhat.com>
3266
3267 * amd64-linux-nat.c (x86_linux_create_target): New function.
3268 (x86_linux_add_target): Likewise.
3269 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3270 * i386-linux-nat.c (x86_linux_create_target): New function.
3271 (x86_linux_add_target): Likewise.
3272 (_initialize_i386_linux_nat): Delegate to the above new functions.
3273
3274 2014-07-11 Gary Benson <gbenson@redhat.com>
3275
3276 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3277 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3278 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3279 (ps_get_thread_area): Delegate to the above.
3280
3281 2014-07-11 Gary Benson <gbenson@redhat.com>
3282
3283 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3284 x86_linux_read_description. All uses updated. amd64-specific
3285 code conditionalized. Conditionalized i386-specific code added.
3286 Redundant cast removed.
3287 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3288 x86_linux_read_description. All uses updated. i386-specific
3289 code conditionalized. Conditionalized amd64-specific code added.
3290 One sizeof replaced with the actual type it is describing.
3291
3292 2014-07-11 Gary Benson <gbenson@redhat.com>
3293
3294 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3295 x86_linux_dr_get. All uses updated.
3296 (amd64_linux_dr_set): Renamed to
3297 x86_linux_dr_set. All uses updated.
3298 (amd64_linux_dr_get_addr): Renamed to
3299 x86_linux_dr_get_addr. All uses updated.
3300 (amd64_linux_dr_get_control): Renamed to
3301 x86_linux_dr_get_control. All uses updated.
3302 (amd64_linux_dr_get_status): Renamed to
3303 x86_linux_dr_get_status. All uses updated.
3304 (amd64_linux_dr_set_control): Renamed to
3305 x86_linux_dr_set_control. All uses updated.
3306 (amd64_linux_dr_set_addr): Renamed to
3307 x86_linux_dr_set_addr. All uses updated.
3308 (amd64_linux_prepare_to_resume): Renamed to
3309 x86_linux_prepare_to_resume. All uses updated.
3310 (amd64_linux_new_thread): Renamed to
3311 x86_linux_new_thread. All uses updated.
3312 (amd64_linux_new_fork): Renamed to
3313 x86_linux_new_fork. All uses updated.
3314 (amd64_linux_child_post_startup_inferior): Renamed to
3315 x86_linux_child_post_startup_inferior. All uses updated.
3316 (amd64_linux_enable_btrace): Renamed to
3317 x86_linux_enable_btrace. All uses updated.
3318 (amd64_linux_disable_btrace): Renamed to
3319 x86_linux_disable_btrace. All uses updated.
3320 (amd64_linux_teardown_btrace): Renamed to
3321 x86_linux_teardown_btrace. All uses updated.
3322 (amd64_linux_read_btrace): Renamed to
3323 x86_linux_read_btrace. All uses updated.
3324 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3325 x86_linux_dr_get. All uses updated.
3326 (i386_linux_dr_set): Renamed to
3327 x86_linux_dr_set. All uses updated.
3328 (i386_linux_dr_get_addr): Renamed to
3329 x86_linux_dr_get_addr. All uses updated.
3330 (i386_linux_dr_get_control): Renamed to
3331 x86_linux_dr_get_control. All uses updated.
3332 (i386_linux_dr_get_status): Renamed to
3333 x86_linux_dr_get_status. All uses updated.
3334 (i386_linux_dr_set_control): Renamed to
3335 x86_linux_dr_set_control. All uses updated.
3336 (i386_linux_dr_set_addr): Renamed to
3337 x86_linux_dr_set_addr. All uses updated.
3338 (i386_linux_prepare_to_resume): Renamed to
3339 x86_linux_prepare_to_resume. All uses updated.
3340 (i386_linux_new_thread): Renamed to
3341 x86_linux_new_thread. All uses updated.
3342 (i386_linux_new_fork): Renamed to
3343 x86_linux_new_fork. All uses updated.
3344 (i386_linux_child_post_startup_inferior): Renamed to
3345 x86_linux_child_post_startup_inferior. All uses updated.
3346 (i386_linux_enable_btrace): Renamed to
3347 x86_linux_enable_btrace. All uses updated.
3348 (i386_linux_disable_btrace): Renamed to
3349 x86_linux_disable_btrace. All uses updated.
3350 (i386_linux_teardown_btrace): Renamed to
3351 x86_linux_teardown_btrace. All uses updated.
3352 (i386_linux_read_btrace): Renamed to
3353 x86_linux_read_btrace. All uses updated.
3354
3355 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3356
3357 * remote.c (extended_remote_post_attach): New function.
3358 (init_extended_remote_ops): Install it as to_post_attach method.
3359
3360 2014-07-09 Pedro Alves <palves@redhat.com>
3361
3362 * infcmd.c (attach_command_post_wait): Don't call
3363 target_terminal_inferior here.
3364 (attach_command): Call it here instead.
3365
3366 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3367
3368 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3369 field.
3370 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3371 from varobj.c, with additional checks.
3372 (c_varobj_ops): Fill in is_path_expr_parent field.
3373 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3374 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3375 field.
3376 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3377 ops method.
3378 (varobj_default_is_path_expr_parent): New function.
3379 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3380 (varobj_default_is_path_expr_parent): Declare new function.
3381
3382 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3383
3384 * infcmd.c (finish_backward): Turn internal error into normal error.
3385
3386 2014-07-07 Pedro Alves <palves@redhat.com>
3387
3388 PR gdb/17096
3389 * remote.c (async_handle_remote_sigint)
3390 (async_handle_remote_sigint_twice): Call
3391 gdb_call_async_signal_handler instead of
3392 mark_async_signal_handler.
3393
3394 2014-07-07 Tom Tromey <tromey@redhat.com>
3395
3396 * target-delegates.c: Rebuild.
3397 * target.c (target_info_record): Remove.
3398 * record.c (info_record_command): Unconditionally call
3399 to_info_record.
3400 * target.h (struct target_ops) <to_info_record>: Use
3401 TARGET_DEFAULT_IGNORE.
3402 (target_info_record): Remove.
3403
3404 2014-07-07 Tom Tromey <tromey@redhat.com>
3405
3406 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3407 TARGET_DEFAULT_NORETURN.
3408 * target.c (generic_tls_error): New function.
3409 (target_translate_tls_address): Don't search target stack.
3410 * target-delegates.c: Rebuild.
3411 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3412 stack.
3413 * linux-thread-db.c (thread_db_get_thread_local_address):
3414 Unconditionally call beneath target.
3415
3416 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3417
3418 * cli/cli-logging.c (pop_output_files): Assign targerr to
3419 gdb_stdtargerr.
3420
3421 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3422
3423 * MAINTAINERS (Write After Approval): Update my email address.
3424
3425 2014-07-02 Gary Benson <gbenson@redhat.com>
3426
3427 * proc-service.c (ps_xfer_memory): Update comment.
3428 (ps_pstop): Remove unused function.
3429 (ps_pcontinue): Likewise.
3430 (ps_lstop): Likewise.
3431 (ps_lcontinue): Likewise.
3432 (ps_lgetxregsize): Likewise.
3433 (ps_lgetxregs): Likewise.
3434 (ps_lsetxregs): Likewise.
3435 (ps_plog): Likewise.
3436 (ps_ptread): Likewise.
3437 (ps_ptwrite): Likewise.
3438
3439 2014-07-01 Mark Wielaard <mjw@redhat.com>
3440
3441 * dwarf2read.c (add_array_cv_type): New function.
3442 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3443 (read_tag_volatile_type): Likewise.
3444
3445 2014-07-01 Tom Tromey <tromey@redhat.com>
3446
3447 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3448 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3449 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3450 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3451 * command.h (cmd_cfunc_ftype): Move earlier.
3452 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3453 (add_com, add_info): Use cmd_cfunc_ftype.
3454
3455 2014-06-30 Tom Tromey <tromey@redhat.com>
3456
3457 * symtab.c (operator_chars): Make parameters and return type
3458 const.
3459 (file_matches): Make "files" const.
3460 (struct search_symbols_data) <files>: Now const.
3461 (search_symbols): Make "regexp" and "files" parameters const.
3462 Update.
3463 (symtab_symbol_info): Remove cast.
3464 (rbreak_command): Update.
3465 * symtab.h (search_symbols): Update.
3466
3467 2014-06-27 Yao Qi <yao@codesourcery.com>
3468
3469 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3470 Change parameter type to 'struct thread_info *'. Caller
3471 updated.
3472 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3473 Update declaration.
3474 * dummy-frame.c (struct dummy_frame_id): New.
3475 (dummy_frame_id_eq): New function.
3476 (struct dummy_frame) <id>: Change its type to 'struct
3477 dummy_frame_id'.
3478 (dummy_frame_push): Add parameter ptid and save it in
3479 dummy_frame_id.
3480 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3481 inferior_ptid.
3482 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3483 to inferior_ptid.
3484 (lookup_dummy_frame): Change parameter type to 'struct
3485 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3486 instead of frame_id_eq.
3487 (dummy_frame_pop): Add parameter ptid. Callers updated.
3488 Update comments. Compose dummy_frame_id and pass it to
3489 lookup_dummy_frame.
3490 (dummy_frame_discard): Add parameter ptid.
3491 (dummy_frame_sniffer): Compose dummy_frame_id and call
3492 dummy_frame_id_eq instead of frame_id_eq.
3493 (fprint_dummy_frames): Print ptid.
3494 * dummy-frame.h: Remove comments.
3495 (dummy_frame_push): Add ptid in declaration.
3496 (dummy_frame_pop, dummy_frame_discard): Likewise.
3497
3498 2014-06-26 Tom Tromey <tromey@redhat.com>
3499
3500 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3501 * command.h (error_no_arg): Update.
3502
3503 2014-06-26 Tom Tromey <tromey@redhat.com>
3504
3505 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3506 (do_show_command): Make "arg" const.
3507 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3508
3509 2014-06-26 Tom Tromey <tromey@redhat.com>
3510
3511 * record-full.c (record_full_get_bookmark): Make "args" const.
3512 (record_full_goto_bookmark): Make "raw_bookmark" const.
3513 * record.c (record_goto): New function.
3514 (cmd_record_goto): Use it. Now static.
3515 * record.h (record_goto): Declare.
3516 (cmd_record_goto): Remove declaration.
3517 * target-delegates.c: Rebuild.
3518 * target.h (struct target_ops) <to_get_bookmark,
3519 to_goto_bookmark>: Make parameter const.
3520
3521 2014-06-26 Tom Tromey <tromey@redhat.com>
3522
3523 * defs.h (generic_load): Update.
3524 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3525 * monitor.c (monitor_load): Make "args" const.
3526 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3527 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3528 const.
3529 (mips_load): Make "file" const.
3530 * remote-sim.c (gdbsim_load): Make "args" const.
3531 * remote.c (remote_load): Make "name" const.
3532 * symfile.c (generic_load): Make "args" const.
3533 * target-delegates.c: Rebuild.
3534 * target.c (target_load): Make "arg" const.
3535 (debug_to_load): Make "args" const.
3536 * target.h (struct target_ops) <to_load>: Make parameter const.
3537 (target_load): Update.
3538
3539 2014-06-26 Tom Tromey <tromey@redhat.com>
3540
3541 PR symtab/16902:
3542 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3543 (dwarf2_physname, read_partial_die)
3544 (guess_partial_die_structure_name, fixup_partial_die)
3545 (guess_full_die_structure_name, anonymous_struct_prefix)
3546 (dwarf2_name): Use per-BFD obstack.
3547
3548 2014-06-26 Yao Qi <yao@codesourcery.com>
3549
3550 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3551 dummyframe and this_id into inner block below.
3552
3553 2014-06-26 Yao Qi <yao@codesourcery.com>
3554
3555 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3556 with "signal_pass[0]" in the initialization of signal_pass.
3557
3558 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3559
3560 * record-btrace.c (record_btrace_generating_corefile)
3561 (record_btrace_prepare_to_generate_core)
3562 (record_btrace_done_generating_core): New.
3563 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3564 (record_btrace_store_registers, record_btrace_prepare_to_store):
3565 Forward request when generating a core file.
3566 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3567 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3568 to_done_generating_core.
3569
3570 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3571
3572 * target.h (target_ops) <to_prepare_to_generate_core>
3573 <to_done_generating_core>: New.
3574 (target_prepare_to_generate_core, target_done_generating_core): New.
3575 * target.c (target_prepare_to_generate_core)
3576 (target_done_generating_core): New.
3577 * target-delegates.c: Regenerate.
3578 * gcore.c: (write_gcore_file): Rename to ...
3579 (write_gcore_file_1): ...this.
3580 (write_gcore_file): Call target_prepare_to_generate_core
3581 and target_done_generating_core.
3582
3583 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3584
3585 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3586 * gcore.c (write_gcore_file): Free memory returned from
3587 make_corefile_notes.
3588 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3589 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3590
3591 2014-06-24 Yao Qi <yao@codesourcery.com>
3592
3593 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3594 (arm_linux_init_abi): Set skip_trampoline_code with
3595 gdbarch_skip_trampoline_code instead of
3596 find_solib_trampoline_target.
3597
3598 2014-06-24 Yao Qi <yao@codesourcery.com>
3599
3600 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3601 arm_skip_bx_reg returns non-zero.
3602
3603 2014-06-24 Yao Qi <yao@codesourcery.com>
3604
3605 * arm-tdep.c (arm_skip_bx_reg): New function.
3606 (arm_skip_stub): Call arm_skip_bx_reg.
3607
3608 2014-06-23 Don Breazeal <donb@codesourcery.com>
3609
3610 * MAINTAINERS: Add myself as write-after-approval maintainer.
3611
3612 2014-06-23 Pedro Alves <palves@redhat.com>
3613
3614 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3615 DR_CONTROL before setting DR0..DR3.
3616 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3617 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3618 bits of DR_CONTROL related to the debug register slot being
3619 disabled. If all slots are vacant, clear local slowdown as well,
3620 and assert DR_CONTROL is 0.
3621
3622 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3623
3624 * python/lib/gdb/command/xmethods.py
3625 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3626 current progspace only if the string "progspace" matches LOCUS_RE.
3627
3628 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3629
3630 Fix --with-system-readline with readline-6.3 patch 5.
3631 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3632 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3633 types.
3634
3635 2014-06-20 Tom Tromey <tromey@redhat.com>
3636
3637 * dwarf2read.c (dw2_get_real_path): Use correct type in
3638 OBSTACK_CALLOC.
3639 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3640
3641 2014-06-20 Gary Benson <gbenson@redhat.com>
3642
3643 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3644 * common/glibc_thread_db.h: Likewise.
3645 * common/i386-cpuid.h: Likewise.
3646 * common/i386-gcc-cpuid.h: Likewise.
3647 * common/linux-btrace.h: Likewise.
3648 * common/linux-osdata.h: Likewise.
3649 * common/linux-procfs.h: Likewise.
3650 * common/linux-ptrace.h: Likewise.
3651 * common/mips-linux-watch.h: Likewise.
3652 * common/linux-btrace.c: Moved to nat.
3653 * common/linux-osdata.c: Likewise.
3654 * common/linux-procfs.c: Likewise.
3655 * common/linux-ptrace.c: Likewise.
3656 * common/mips-linux-watch.c: Likewise.
3657 * nat/gdb_thread_db.h: Moved from common.
3658 * nat/glibc_thread_db.h: Likewise.
3659 * nat/i386-cpuid.h: Likewise.
3660 * nat/i386-gcc-cpuid.h: Likewise.
3661 * nat/linux-btrace.c: Likewise.
3662 * nat/linux-btrace.h: Likewise.
3663 * nat/linux-osdata.c: Likewise.
3664 * nat/linux-osdata.h: Likewise.
3665 * nat/linux-procfs.c: Likewise.
3666 * nat/linux-procfs.h: Likewise.
3667 * nat/linux-ptrace.c: Likewise.
3668 * nat/linux-ptrace.h: Likewise.
3669 * nat/mips-linux-watch.c: Likewise.
3670 * nat/mips-linux-watch.h: Likewise.
3671 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3672 (object file files): Reordered.
3673 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3674 of glibc_thread_db.h.
3675
3676 2014-06-20 Gary Benson <gbenson@redhat.com>
3677
3678 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3679 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3680 (i386_dr_low): Likewise.
3681 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3682 (i386_dr_low_set_addr): Likewise.
3683 (i386_dr_low_get_addr): Likewise.
3684 (i386_dr_low_can_set_control): Likewise.
3685 (i386_dr_low_set_control): Likewise.
3686 (i386_dr_low_get_control): Likewise.
3687 (i386_dr_low_get_status): Likewise.
3688 (i386_get_debug_register_length): Likewise.
3689 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3690 (i386_dr_low): Likewise.
3691 * nat/i386-dregs.c (i386-low.h): Remove include.
3692 (i386-nat.h): Likewise.
3693 (nat/i386-dregs.h): New include.
3694 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3695 (i386_dr_low_set_addr): Likewise.
3696 (i386_dr_low_get_addr): Likewise.
3697 (i386_dr_low_can_set_control): Likewise.
3698 (i386_dr_low_set_control): Likewise.
3699 (i386_dr_low_get_control): Likewise.
3700 (i386_dr_low_get_status): Likewise.
3701 (i386_get_debug_register_length): Likewise.
3702 (debug_hw_points): Likewise.
3703
3704 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3705
3706 * Makefile.in (SFILES): Add d-exp.y.
3707 (YYFILES): Add d-exp.c.
3708 (YYOBJ): Add d-exp.o.
3709 (local-maintainer-clean): Delete d-exp.c.
3710 * d-exp.y: New file.
3711 * d-lang.h (d_parse): New declaration.
3712 (d_error): New declaration.
3713 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3714 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3715 PREC_ORDER operators.
3716 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3717
3718 2014-06-19 Yao Qi <yao@codesourcery.com>
3719
3720 * gdbthread.h (any_running): Remove the declaration.
3721 * thread.c (any_running): Remove.
3722
3723 2014-06-19 Yao Qi <yao@codesourcery.com>
3724
3725 * gdbthread.h (struct thread_info) <state>: Change its type to
3726 'enum thread_state'. Update comments.
3727
3728 2014-06-19 Pedro Alves <palves@redhat.com>
3729
3730 * gdbthread.h (ALL_THREADS): Delete.
3731 (ALL_NON_EXITED_THREADS): New macro.
3732 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3733 instead of ALL_THREADS.
3734 * infrun.c (find_thread_needs_step_over)
3735 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3736 instead of ALL_THREADS.
3737 * record-btrace.c (record_btrace_open)
3738 (record_btrace_stop_recording, record_btrace_close)
3739 (record_btrace_is_replaying, record_btrace_resume)
3740 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3741 * remote.c (append_pending_thread_resumptions): Likewise.
3742 * thread.c (thread_apply_all_command): Likewise.
3743
3744 2014-06-19 Gary Benson <gbenson@redhat.com>
3745
3746 * i386-nat.c (i386_stopped_by_watchpoint):
3747 Use i386_dr_stopped_by_watchpoint.
3748 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3749 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3750
3751 2014-06-19 Gary Benson <gbenson@redhat.com>
3752
3753 * nat/i386-dregs.c: New file.
3754 * Makefile.in (i386-dregs.o): New rule.
3755 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3756 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3757 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3758 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3759 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3760 * config/i386/go32.mh (NATDEPFILES): Likewise.
3761 * config/i386/linux.mh (NATDEPFILES): Likewise.
3762 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3763 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3764 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3765 * i386-nat.h (debug_hw_points): New declaration.
3766 * i386-nat.c (breakpoint.h): Remove include.
3767 (command.h): Likewise.
3768 (target.h): Likewise.
3769 (gdb_assert.h): Likewise.
3770 (debug_hw_points): Made nonstatic.
3771 (debug_printf): Now in i386-dregs.c.
3772 (TARGET_HAS_DR_LEN_8): Likewise.
3773 (DR_CONTROL_SHIFT): Likewise.
3774 (DR_CONTROL_SIZE): Likewise.
3775 (DR_RW_EXECUTE): Likewise.
3776 (DR_RW_WRITE): Likewise.
3777 (DR_RW_READ): Likewise.
3778 (DR_RW_IORW): Likewise.
3779 (DR_LEN_1): Likewise.
3780 (DR_LEN_2): Likewise.
3781 (DR_LEN_4): Likewise.
3782 (DR_LEN_8): Likewise.
3783 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3784 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3785 (DR_ENABLE_SIZE): Likewise.
3786 (DR_LOCAL_SLOWDOWN): Likewise.
3787 (DR_GLOBAL_SLOWDOWN): Likewise.
3788 (DR_CONTROL_RESERVED): Likewise.
3789 (I386_DR_CONTROL_MASK): Likewise.
3790 (I386_DR_VACANT): Likewise.
3791 (I386_DR_LOCAL_ENABLE): Likewise.
3792 (I386_DR_GLOBAL_ENABLE): Likewise.
3793 (I386_DR_DISABLE): Likewise.
3794 (I386_DR_SET_RW_LEN): Likewise.
3795 (I386_DR_GET_RW_LEN): Likewise.
3796 (I386_DR_WATCH_HIT): Likewise.
3797 (i386_wp_op_t): Likewise.
3798 (i386_show_dr): Likewise.
3799 (i386_length_and_rw_bits): Likewise.
3800 (i386_insert_aligned_watchpoint): Likewise.
3801 (i386_remove_aligned_watchpoint): Likewise.
3802 (i386_handle_nonaligned_watchpoint): Likewise.
3803 (i386_update_inferior_debug_regs): Likewise.
3804 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3805 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3806 (i386_region_ok_for_watchpoint):
3807 Use i386_dr_region_ok_for_watchpoint.
3808 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3809
3810 2014-06-19 Gary Benson <gbenson@redhat.com>
3811
3812 * i386-nat.c (i386_insert_hw_breakpoint): Use
3813 i386_insert_watchpoint.
3814 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3815
3816 2014-06-19 Gary Benson <gbenson@redhat.com>
3817
3818 * i386-nat.c (i386_dr_show): Renamed to
3819 i386_show_dr and made static. All uses updated.
3820 (i386_dr_length_and_rw_bits): Renamed to
3821 i386_length_and_rw_bits and made static.
3822 All uses updated.
3823 (i386_dr_insert_aligned_watchpoint): Renamed to
3824 i386_insert_aligned_watchpoint and made static.
3825 All uses updated.
3826 (i386_dr_remove_aligned_watchpoint): Renamed to
3827 i386_remove_aligned_watchpoint and made static.
3828 All uses updated.
3829 (i386_dr_update_inferior_debug_regs): Renamed to
3830 i386_update_inferior_debug_regs and made static.
3831 All uses updated.
3832 * nat/i386-dregs.h (i386_dr_show): Removed.
3833 (i386_dr_length_and_rw_bits): Likewise.
3834 (i386_dr_insert_aligned_watchpoint): Likewise.
3835 (i386_dr_remove_aligned_watchpoint): Likewise.
3836 (i386_dr_update_inferior_debug_regs): Likewise.
3837
3838 2014-06-19 Gary Benson <gbenson@redhat.com>
3839
3840 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3841 * configure: Regenerate.
3842 * config.in: Likewise.
3843 * main.c (signal.h): New include.
3844 (setup_alternate_signal_stack): New function.
3845 (captured_main): Call the above.
3846 * cp-support.c (signal.h): New include.
3847 (catch_demangler_crashes): New flag.
3848 (SIGJMP_BUF): New define.
3849 (SIGSETJMP): Likewise.
3850 (SIGLONGJMP): Likewise.
3851 (gdb_demangle_jmp_buf): New static global.
3852 (gdb_demangle_attempt_core_dump): Likewise.
3853 (gdb_demangle_signal_handler): New function.
3854 (gdb_demangle): If catch_demangler_crashes is set, install the
3855 above signal handler before calling bfd_demangle, and restore
3856 the original signal handler afterwards. Display the offending
3857 symbol and call demangler_warning the first time a segmentation
3858 fault is caught.
3859 (_initialize_cp_support): New maint set/show command.
3860
3861 2014-06-19 Gary Benson <gbenson@redhat.com>
3862
3863 * utils.h (resource_limit_kind): New enum.
3864 (can_dump_core): New declaration.
3865 (warn_cant_dump_core): Likewise.
3866 (dump_core): Likewise.
3867 * utils.c (dump_core): Made nonstatic. Added new
3868 parameter "limit_kind".
3869 (can_dump_core): Made nonstatic. Moved printing code to...
3870 (warn_cant_dump_core): New function.
3871 (can_dump_core_warn): Likewise.
3872 (internal_vproblem): Replace calls to can_dump_core with
3873 calls to can_dump_core_warn. Supply new argument to each.
3874
3875 2014-06-19 Gary Benson <gbenson@redhat.com>
3876
3877 * utils.h (demangler_vwarning): New declaration.
3878 (demangler_warning): Likewise.
3879 * utils.c (struct internal_problem)
3880 <user_settable_should_quit>: New field.
3881 <user_settable_should_dump_core>: Likewise
3882 (internal_error_problem): Add values for above new fields.
3883 (internal_warning_problem): Likewise.
3884 (demangler_warning_problem): New static global.
3885 (demangler_vwarning): New function.
3886 (demangler_warning): Likewise.
3887 (add_internal_problem_command): Selectively add commands.
3888 (_initialize_utils): New internal problem command.
3889 * maint.c (maintenance_demangler_warning): New function.
3890 (_initialize_maint_cmds): New command.
3891
3892 2014-06-18 Tom Tromey <tromey@redhat.com>
3893
3894 * f-valprint.c (info_common_command_for_block): Update.
3895 * symtab.h (struct general_symbol_info) <common_block>: Now
3896 const.
3897
3898 2014-06-18 Tom Tromey <tromey@redhat.com>
3899
3900 * symtab.h (struct symtab) <blockvector>: Now const.
3901 * ada-lang.c (ada_add_global_exceptions): Update.
3902 * buildsym.c (augment_type_symtab): Update.
3903 * dwarf2read.c (dw2_lookup_symbol): Update.
3904 * jit.c (finalize_symtab): Update.
3905 * jv-lang.c (add_class_symtab_symbol): Update.
3906 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3907 Update.
3908 * objfiles.c (objfile_relocate1): Update.
3909 * psymtab.c (lookup_symbol_aux_psymtabs)
3910 (maintenance_check_psymtabs): Update.
3911 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3912 Update.
3913 * spu-tdep.c (spu_catch_start): Update.
3914 * symmisc.c (dump_symtab_1): Update.
3915 * symtab.c (lookup_global_symbol_from_objfile)
3916 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3917 (basic_lookup_transparent_type_quick)
3918 (basic_lookup_transparent_type, find_pc_sect_symtab)
3919 (find_pc_sect_line, search_symbols): Update.
3920 * block.c (find_block_in_blockvector): Make "bl" const.
3921 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3922 const.
3923 (blockvector_contains_pc): Make "bv" const.
3924 (block_for_pc_sect): Update.
3925 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3926 (blockvector_contains_pc): Update.
3927 * breakpoint.c (resolve_sal_pc): Update.
3928 * inline-frame.c (block_starting_point_at): Update.
3929
3930 2014-06-18 Tom Tromey <tromey@redhat.com>
3931
3932 * completer.c (complete_line): Make "line_buffer" const.
3933 * completer.h (complete_line): Update.
3934
3935 2014-06-18 Tom Tromey <tromey@redhat.com>
3936
3937 * symtab.c (add_macro_name): Remove unneeded cast.
3938
3939 2014-06-18 Tom Tromey <tromey@redhat.com>
3940
3941 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3942 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3943
3944 2014-06-18 Tom Tromey <tromey@redhat.com>
3945
3946 * probe.c (info_probes_for_ops): Make "arg" const.
3947 * probe.h (info_probes_for_ops): Update.
3948
3949 2014-06-18 Tom Tromey <tromey@redhat.com>
3950
3951 * varobj.c (varobj_create): Update.
3952 * valops.c (value_of_this): Update.
3953 * tracepoint.c (add_local_symbols, scope_info): Update.
3954 * symtab.h (struct general_symbol_info) <block>: Now const.
3955 * symtab.c (skip_prologue_sal)
3956 (default_make_symbol_completion_list_break_on)
3957 (skip_prologue_using_sal): Update.
3958 * stack.h (iterate_over_block_locals)
3959 (iterate_over_block_local_vars): Update.
3960 * stack.c (print_frame_args): Update.
3961 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3962 parameter const.
3963 (get_selected_block): Make return type const.
3964 * python/py-frame.c (frapy_block): Update.
3965 * python/py-block.c (gdbpy_block_for_pc): Update.
3966 * p-exp.y (%union) <bval>: Now const.
3967 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3968 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3969 * m2-exp.y (%union) <bval>: Now const.
3970 * linespec.c (get_current_search_block): Make return type const.
3971 (create_sals_line_offset, find_label_symbols): Update.
3972 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3973 Update.
3974 (block_starting_point_at): Make "block" const.
3975 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3976 (check_exception_resume): Update.
3977 * guile/scm-frame.c (gdbscm_frame_block): Update.
3978 * guile/scm-block.c (gdbscm_lookup_block): Update.
3979 * frame.h (get_frame_block): Update.
3980 (get_selected_block): Make return type const.
3981 * frame.c (frame_id_inner): Update.
3982 * f-valprint.c (info_common_command_for_block)
3983 (info_common_command): Update.
3984 * dwarf2loc.c (dwarf2_find_location_expression)
3985 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3986 (locexpr_describe_location_piece): Update.
3987 * c-exp.y (%union) <bval>: Now const.
3988 * breakpoint.c (resolve_sal_pc): Update.
3989 * blockframe.c (get_frame_block):Make return type const.
3990 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3991 (block_innermost_frame): Update.
3992 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3993 (block_for_pc, block_for_pc_sect): Update.
3994 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3995 'pblock' const.
3996 (block_for_pc_sect, block_for_pc): Make return type const.
3997 * ax-gdb.c (gen_expr): Update.
3998 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3999 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4000 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4001 (ada_read_var_value): Update.
4002 * ada-exp.y (struct name_info) <block>: Now const.
4003 (%union): Likewise.
4004 (block_lookup): Constify.
4005
4006 2014-06-18 Gary Benson <gbenson@redhat.com>
4007
4008 * nat/i386-dregs.h: New file.
4009 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4010 * i386-nat.h (i386-dregs.h): New include.
4011 (DR_FIRSTADDR): Now in i386-dregs.h.
4012 (DR_LASTADDR): Likewise.
4013 (DR_NADDR): Likewise.
4014 (DR_STATUS): Likewise.
4015 (DR_CONTROL): Likewise.
4016 (i386_debug_reg_state): Likewise.
4017 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4018
4019 2014-06-18 Don Breazeal <donb@codesourcery.com>
4020
4021 * breakpoint.c (set_longjmp_breakpoint): Call
4022 momentary_breakpoint_from_master with additional argument.
4023 (set_longjmp_breakpoint_for_call_dummy): Call
4024 momentary_breakpoint_from_master with additional argument.
4025 (set_std_terminate_breakpoint): Call
4026 momentary_breakpoint_from_master with additional argument.
4027 (momentary_breakpoint_from_master): Add argument to function
4028 definition and use it to initialize structure member flag.
4029 (clone_momentary_breakpoint): Call
4030 momentary_breakpoint_from_master with additional argument.
4031 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4032 member flags set in momentary_breakpoint_from_master.
4033
4034 2014-06-18 Gary Benson <gbenson@redhat.com>
4035
4036 * i386-nat.c (i386_show_dr): Renamed to
4037 i386_dr_show and made nonstatic. All uses updated.
4038 (i386_length_and_rw_bits): Renamed to
4039 i386_dr_length_and_rw_bits and made nonstatic.
4040 All uses updated.
4041 (i386_insert_aligned_watchpoint): Renamed to
4042 i386_dr_insert_aligned_watchpoint and made nonstatic.
4043 All uses updated.
4044 (i386_remove_aligned_watchpoint): Renamed to
4045 i386_dr_remove_aligned_watchpoint and made nonstatic.
4046 All uses updated.
4047 (i386_update_inferior_debug_regs): Renamed to
4048 i386_dr_update_inferior_debug_regs and made nonstatic.
4049 All uses updated.
4050
4051 2014-06-18 Gary Benson <gbenson@redhat.com>
4052
4053 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4054 (i386_dr_low_can_set_control): Likewise.
4055 (i386_dr_low_set_addr): Likewise.
4056 (i386_dr_low_set_control): Likewise.
4057 (i386_dr_low_get_addr): Likewise.
4058 (i386_dr_low_get_status): Likewise.
4059 (i386_dr_low_get_control): Likewise.
4060 (i386_insert_aligned_watchpoint): Use new macros.
4061 (i386_update_inferior_debug_regs): Likewise.
4062 (i386_stopped_data_address): Likewise.
4063
4064 2014-06-18 Gary Benson <gbenson@redhat.com>
4065
4066 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4067 New parameter. All uses updated.
4068
4069 2014-06-18 Gary Benson <gbenson@redhat.com>
4070
4071 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4072 All uses updated.
4073
4074 2014-06-18 Gary Benson <gbenson@redhat.com>
4075
4076 * i386-nat.c (debug_printf): New macro.
4077 (i386_get_debug_register_length): Likewise.
4078 (TARGET_HAS_DR_LEN_8): Use above macro.
4079 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4080 and printf_unfiltered. Use phex to format values.
4081
4082 2014-06-18 Gary Benson <gbenson@redhat.com>
4083
4084 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4085 Make const.
4086
4087 2014-06-18 Gary Benson <gbenson@redhat.com>
4088
4089 * i386-nat.c: Comment changes.
4090
4091 2014-06-18 Gary Benson <gbenson@redhat.com>
4092
4093 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4094
4095 2014-06-18 Gary Benson <gbenson@redhat.com>
4096
4097 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4098 (i386_insert_aligned_watchpoint): Likewise.
4099 (i386_remove_aligned_watchpoint): Likewise.
4100 (i386_handle_nonaligned_watchpoint): Likewise.
4101
4102 2014-06-18 Gary Benson <gbenson@redhat.com>
4103
4104 * i386-nat.c: Whitespace changes.
4105
4106 2014-06-17 Samuel Bronson <naesten@gmail.com>
4107
4108 * MAINTAINERS: Update Roland McGrath's email address.
4109 Thanks to Sergio Durigan Junior for pointing out that he left
4110 Red Hat a while ago, and giving me a current address.
4111
4112 2014-06-17 Tom Tromey <tromey@redhat.com>
4113
4114 * utils.h (savestring): Remove declaration.
4115
4116 2014-06-17 Tom Tromey <tromey@redhat.com>
4117
4118 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4119
4120 2014-06-16 Keith Seitz <keiths@redhat.com>
4121
4122 PR mi/15863
4123 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4124 to update the varobj if inferior_ptid is null_ptid.
4125
4126 2014-06-16 Tom Tromey <tromey@redhat.com>
4127
4128 * target.h (struct target_ops) <to_info_proc>: Make parameter
4129 const.
4130 (target_info_proc): Update.
4131 * target.c (target_info_proc): Make "args" const.
4132 * procfs.c (procfs_info_proc): Update.
4133 * linux-tdep.c (linux_info_proc): Update.
4134 (linux_core_info_proc_mappings): Make "args" const.
4135 (linux_core_info_proc): Update.
4136 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4137 * gdbarch.c: Rebuild.
4138 * gdbarch.h: Rebuild.
4139 * corelow.c (core_info_proc): Update.
4140
4141 2014-06-16 Tom Tromey <tromey@redhat.com>
4142
4143 * target.h (struct target_ops) <to_disconnect>: Make parameter
4144 const.
4145 (target_disconnect): Update.
4146 * target.c (target_disconnect): Make "args" const.
4147 * target-delegates.c: Rebuild.
4148 * remote.c (remote_disconnect): Update.
4149 * record.h (record_disconnect): Update.
4150 * record.c (record_disconnect): Update.
4151 * inf-child.c (inf_child_disconnect): Update.
4152
4153 2014-06-16 Tom Tromey <tromey@redhat.com>
4154
4155 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4156 * target.c (debug_to_rcmd, default_rcmd): Update.
4157 * target-delegates.c: Rebuild.
4158 * remote.c (remote_rcmd): Update.
4159 * monitor.c (monitor_rcmd): Update.
4160
4161 2014-06-16 Pedro Alves <palves@redhat.com>
4162
4163 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4164 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4165 have OBJF_SHARED set.
4166 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4167 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4168 instead of OBJF_USERLOADED.
4169 * objfiles.h (OBJF_SHARED): Update comment.
4170 (userloaded_objfile_contains_address_p): Rename to ...
4171 (shared_objfile_contains_address_p): ... this, and update
4172 comments.
4173 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4174 new objfile.
4175 (remove_symbol_file_command): Skip objfiles that don't have
4176 OBJF_SHARED set.
4177
4178 2014-06-16 Tom Tromey <tromey@redhat.com>
4179
4180 * minsyms.h (prim_record_minimal_symbol)
4181 (prim_record_minimal_symbol_and_info): Update comments.
4182
4183 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4184
4185 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4186 or --without-guile, according to how GDB was built.
4187
4188 2014-06-13 Tom Tromey <tromey@redhat.com>
4189
4190 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4191 to help_list.
4192 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4193 to help_list.
4194 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4195 help_list.
4196 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4197 help_list.Pass all_commands, not -1, to help_list.
4198 * cli/cli-dump.c (dump_command, append_command)
4199 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4200 (binary_dump_command, binary_append_command): Pass all_commands,
4201 not -1, to help_list.
4202 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4203 -1, to help_list.
4204 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4205 -1, to help_list.
4206 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4207 help_list.
4208 * top.c (set_history): Pass all_commands, not -1, to help_list.
4209 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4210 all_commands, not -1, to help_list.
4211 * symfile.c (overlay_command): Pass all_commands, not -1, to
4212 help_list.
4213 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4214 help_list.
4215 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4216 help_list.
4217 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4218 -1, to help_list.
4219 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4220 not -1, to help_list.
4221 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4222 not -1, to help_list.
4223 * maint.c (maintenance_command, maintenance_info_command)
4224 (maintenance_print_command, maintenance_set_cmd): Pass
4225 all_commands, not -1, to help_list.
4226 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4227 help_list.
4228 * language.c (set_check): Pass all_commands, not -1, to help_list.
4229 * infcmd.c (unset_command): Pass all_commands, not -1, to
4230 help_list.
4231 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4232 help_list.
4233 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4234 help_list.
4235 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4236 help_list.
4237 * breakpoint.c (save_command): Pass all_commands, not -1, to
4238 help_list.
4239 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4240 all_commands, not -1, to help_list.
4241
4242 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4243
4244 * regcache.c (struct register_to_invalidate): New structure.
4245 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4246 functions.
4247 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4248
4249 2014-06-12 Yao Qi <yao@codesourcery.com>
4250
4251 * varobj.c (varobj_get_num_children): Call
4252 varobj_is_dynamic_p.
4253 (varobj_list_children): Likewise.
4254 (varobj_update): Likewise. Update comments.
4255
4256 2014-06-12 Yao Qi <yao@codesourcery.com>
4257
4258 * varobj.c (varobj_pretty_printed_p): Rename to ...
4259 (varobj_is_dynamic_p): ... this. New function.
4260 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4261 (varobj_is_dynamic_p): Declare.
4262 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4263 (mi_print_value_p, varobj_update_one): Likewise.
4264
4265 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4266 Yao Qi <yao@codesourcery.com>
4267
4268 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4269 (varobj_get_iterator): Wrap up code for pretty-printer by
4270 "#if HAVE_PYTHON" and "#endif".
4271 (update_dynamic_varobj_children): Likewise.
4272
4273 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4274 Yao Qi <yao@codesourcery.com>
4275
4276 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4277 gdb_python_initialized is false. Move some code from varobj.c.
4278 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4279 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4280 (struct varobj_item): Moved to varobj-iter.h".
4281 (varobj_clear_saved_item): New function.
4282 (update_dynamic_varobj_children): Move python-related code to
4283 py-varobj.c.
4284 (free_variable): Call varobj_clear_saved_item and
4285 varobj_iter_delete.
4286
4287 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4288 Yao Qi <yao@codesourcery.com>
4289
4290 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4291 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4292 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4293 (py-varobj.o): New rule.
4294 * python/py-varobj.c: New file.
4295 * python/python-internal.h (py_varobj_get_iterator): Declare.
4296 * varobj-iter.h: New file.
4297 * varobj.c: Include "varobj-iter.h"
4298 (struct varobj) <child_iter>: Change its type from "PyObject *"
4299 to "struct varobj_iter *".
4300 <saved_item>: Likewise.
4301 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4302 [HAVE_PYTHON] (varobj_get_iterator): New function.
4303 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4304 python-specific code to python/py-varobj.c.
4305 (install_visualizer): Call varobj_iter_delete instead of
4306 Py_XDECREF.
4307 * varobj.h (varobj_ensure_python_env): Declare.
4308
4309 2014-06-12 Yao Qi <yao@codesourcery.com>
4310
4311 * varobj.c (struct varobj_item): New structure.
4312 (create_child_with_value): Update declaration.
4313 (varobj_add_child): Replace arguments 'name' and 'value' with
4314 'item'. All callers updated.
4315 (install_dynamic_child): Likewise.
4316 (update_dynamic_varobj_children): Likewise.
4317 (varobj_add_child): Likewise.
4318 (create_child_with_value): Likewise.
4319
4320 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4321
4322 * NEWS: Create a new section for the next release branch.
4323 Rename the section of the current branch, now that it has
4324 been cut.
4325
4326 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4327
4328 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4329 * version.in: Bump version to 7.8.50.DATE-cvs.
4330
4331 2014-06-11 Pedro Alves <palves@redhat.com>
4332
4333 PR remote/17028
4334 * ser-mingw.c (net_windows_socket_check_pending): New function.
4335 (net_windows_select_thread): Ignore spurious wakeups. Use
4336 net_windows_socket_check_pending.
4337 (net_windows_wait_handle): Check for pending events with
4338 ioctlsocket, through net_windows_socket_check_pending, instead of
4339 checking the socket's event.
4340
4341 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4342
4343 * python/python-internal.h (gdb_PyObject_GetAttrString)
4344 (gdb_PyObject_HasAttrString): New inline function definitions.
4345 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4346 char * of the second argument to PyObject_GetAttrString.
4347
4348 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4349
4350 * serial.c (serial_write): Fix index of character to be printed
4351 in call to serial_logchar when serial debug traces are enabled.
4352
4353 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4354
4355 * gdbtypes (resolve_dynamic_range): Add function description.
4356
4357 2014-06-09 Pedro Alves <palves@redhat.com>
4358
4359 * linux-nat.c (linux_child_follow_fork): Initialize status with
4360 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4361 inner block. Only pass the signal to PTRACE_DETACH if in pass
4362 state.
4363
4364 2014-06-09 Gary Benson <gbenson@redhat.com>
4365
4366 * common/signals.c (gdb_signal_from_host): Reorder to separate
4367 the always-available ANSI-standard signals from the signals that
4368 require checking.
4369 (do_gdb_signal_to_host): Likewise.
4370 * proc-events.c (signal_table): Likewise.
4371
4372 2014-06-08 Hui Zhu <hui@codesourcery.com>
4373
4374 * common/linux-ptrace.c (linux_disable_event_reporting): New
4375 function.
4376 * common/linux-ptrace.h (linux_disable_event_reporting): New
4377 declaration.
4378 * linux-nat.c (linux_child_follow_fork): Do a single step before
4379 detach.
4380
4381 2014-06-07 Keith Seitz <keiths@redhat.com>
4382
4383 Revert:
4384 PR c++/16253
4385 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4386 from symbol_matches_domain in symtab.c. All local callers
4387 of symbol_matches_domain updated.
4388 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4389 search STRUCT_DOMAIN.
4390 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4391 independently. standard_lookup will do that automatically.
4392 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4393 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4394 (cp_lookup_symbol_in_namespace): Likewise.
4395 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4396 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4397 may return a STRUCT_DOMAIN match.
4398 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4399 * cp-support.c: Include language.h.
4400 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4401 VAR_DOMAIN.
4402 * psymtab.c (match_partial_symbol): Compare the requested
4403 domain with the symbol's domain directly.
4404 (lookup_partial_symbol): Likewise.
4405 * symtab.c (lookup_symbol_in_language): Explain when/why
4406 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4407 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4408 appropriate languages.
4409 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4410 and moved to ada-lang.c
4411 (lookup_block_symbol): Explain that this function only returns
4412 symbol matching the requested DOMAIN.
4413 Compare the requested domain with the symbol's domain directly.
4414 (iterate_over_symbols): Compare the requested domain with the
4415 symbol's domain directly.
4416 * symtab.h (symbol_matches_domain): Remove.
4417
4418 2014-06-06 Doug Evans <xdje42@gmail.com>
4419
4420 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4421 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4422 (gdbscm_guile_version_is_at_least): Declare.
4423 (gdbscm_scm_string_to_int): Declare.
4424 * guile/guile.c (gdbscm_guile_major_version): New global.
4425 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4426 (guile_datadir): New static global.
4427 (gdbscm_guile_data_directory): New function.
4428 (initialize_scheme_side): Update.
4429 (misc_guile_functions): Add guile-data-directory.
4430 (initialize_gdb_module): Fetch guile version number.
4431 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4432 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4433 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4434 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4435 comments.
4436 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4437 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4438 * guile/scm-value.c (gdbscm_value_to_string): Only call
4439 scm_port_conversion_strategy if Guile version >= 2.0.6.
4440
4441 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4442
4443 * main.c (print_gdb_help): Add -q and --silent.
4444
4445 2014-06-06 Gary Benson <gbenson@redhat.com>
4446
4447 * common/signals.c: Remove preprocessor conditionals for
4448 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4449 SIGSEGV and SIGTERM.
4450 * proc-events.c: Likewise.
4451
4452 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4453
4454 * symfile.c (symfile_free_objfile): Remove restriction to
4455 OBJF_USERLOADED.
4456 * symfile-mem.c (symbol_file_add_from_memory): Call
4457 add_target_sections_of_objfile.
4458
4459 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4460
4461 * guile/scm-value.c (gdbscm_history_append_x): Use
4462 'vlscm_get_value_smob_arg_unsafe' instead of
4463 'vlscm_scm_to_value'.
4464
4465 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4466
4467 PR mi/15806
4468 * utils.c (printchar): Don't escape at all if quoter is NUL.
4469 Update function documentation to clarify effect of parameter
4470 QUOTER.
4471 * remote.c (escape_buffer): Pass '\\' as the quoter to
4472 fputstrn_unfiltered.
4473 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4474 generate the output.
4475 (mi_solib_unloaded): Same.
4476
4477 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4478
4479 * development.sh: Delete.
4480 * Makefile.in (config.status): Adjust dependency on development.sh.
4481 * configure.ac: Adjust development.sh source call.
4482 * configure: Regenerate.
4483
4484 2014-06-04 Doug Evans <xdje42@gmail.com>
4485
4486 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4487 is_scheme_bkpt, spec.
4488 (bpscm_make_breakpoint_smob): Initialize new members.
4489 (gdbscm_create_breakpoint_x): Split into two ...
4490 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4491 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4492 (scheme_function breakpoint_functions): Update.
4493 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4494 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4495 register-breakpoint!.
4496
4497 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4498
4499 PR server/17023
4500 * mem-break.c (z_type_supported): Return zero if
4501 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4502
4503 2014-06-04 Tom Tromey <tromey@redhat.com>
4504
4505 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4506 value_from_contents_and_address_unresolved.
4507 (ada_template_to_fixed_record_type_1): Likewise.
4508 (ada_which_variant_applies): Likewise.
4509 * value.h (value_from_contents_and_address_unresolved): Declare.
4510 * value.c (value_from_contents_and_address_unresolved): New
4511 function.
4512 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4513 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4514 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4515
4516 2014-06-04 Tom Tromey <tromey@redhat.com>
4517
4518 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4519
4520 2014-06-04 Tom Tromey <tromey@redhat.com>
4521
4522 * procfs.c (procfs_attach): Make "args" const.
4523 * windows-nat.c (windows_attach): Make "args" const.
4524 * nto-procfs.c (procfs_attach): Make "args" const.
4525 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4526 * go32-nat.c (go32_attach): Make "args" const.
4527 * gnu-nat.c (gnu_attach): Make "args" const.
4528 * darwin-nat.c (darwin_attach): Make "args" const.
4529 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4530 * linux-nat.c (linux_nat_attach): Make "args" const.
4531 * remote.c (extended_remote_attach_1, extended_remote_attach):
4532 Make "args" const.
4533 * target.h (struct target_ops) <to_attach>: Make "args" const.
4534 (find_default_attach): Likewise.
4535 * utils.c (parse_pid_to_attach): Make "args" const.
4536 * utils.h (parse_pid_to_attach): Update.
4537
4538 2014-06-04 Tom Tromey <tromey@redhat.com>
4539
4540 * target-delegates.c: Rebuild.
4541 * target.c (default_thread_address_space): New function.
4542 (target_thread_address_space): Simplify.
4543 * target.h (struct target_ops) <to_thread_address_space>: Add
4544 TARGET_DEFAULT_FUNC.
4545
4546 2014-06-04 Doug Evans <xdje42@gmail.com>
4547
4548 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4549
4550 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4551
4552 * record-btrace.c: Include event-loop.h and inf-loop.h.
4553 (record_btrace_resume_exec_dir)
4554 (record_btrace_async_inferior_event_handler)
4555 (record_btrace_handle_async_inferior_event): New.
4556 (record_btrace_open): Create async event handler.
4557 (record_btrace_close): Delete async event handler.
4558 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4559 Mark async event handler.
4560 (record_btrace_execution_direction): New.
4561 (init_record_btrace_ops): Initialize to_execution_direction.
4562
4563 2014-06-03 Doug Evans <xdje42@gmail.com>
4564
4565 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4566 (gdbscm_make_parameter): Ditto.
4567
4568 2014-06-03 Doug Evans <dje@google.com>
4569
4570 * exec.c (exec_close_1): Call clear_section_table instead of
4571 resize_section_table.
4572 (clear_section_table): New function.
4573 (resize_section_table): Make static. Rename arg num_added to
4574 adjustment.
4575 * exec.h (clear_section_table): Declare.
4576 (resize_section_table): Delete.
4577 * progspace.c (release_program_space): Call clear_section_table
4578 instead of resize_section_table.
4579
4580 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4581
4582 * NEWS (Python Scripting): Add entry about the new xmethods
4583 feature.
4584
4585 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4586
4587 * python/py-xmethods.c: New file.
4588 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4589 (objfpy_dealloc): XDECREF on the new xmethods field.
4590 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4591 field.
4592 (objfpy_get_xmethods): New function.
4593 (objfile_getset): New entry 'xmethods'.
4594 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4595 (pspy_dealloc): XDECREF on the new xmethods field.
4596 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4597 field.
4598 (pspy_get_xmethods): New function.
4599 (pspace_getset): New entry 'xmethods'.
4600 * python/python-internal.h: Add declarations for new functions.
4601 * python/python.c (_initialize_python): Invoke
4602 gdbpy_initialize_xmethods.
4603 * python/lib/gdb/__init__.py (xmethods): New
4604 attribute.
4605 * python/lib/gdb/xmethod.py: New file.
4606 * python/lib/gdb/command/xmethods.py: New file.
4607
4608 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4609
4610 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4611 best match method returned by find_overload_match is an xmethod.
4612 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4613 the best matching operator returned by find_overload_match is an
4614 xmethod.
4615 * valops.c: #include "extension.h".
4616 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4617 Return void. The list of matching source methods is returned in
4618 "fn_list" and a vector of matching debug method workers is
4619 returned in "xm_worker_vec". Update all callers.
4620 (value_find_oload_method_list): Likewise.
4621 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4622 non-NULL, then the index of the best matching method in this
4623 vector is returned. Update all callers.
4624 (find_overload_match): Include xmethods while performing overload
4625 resolution.
4626
4627 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4628
4629 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4630 * extension-priv.h (struct extension_language_ops): Add the
4631 xmethod interface.
4632 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4633 get_matching_xmethod_workers, get_xmethod_argtypes,
4634 invoke_xmethod, free_xmethod_worker,
4635 free_xmethod_worker_vec): New functions.
4636 * extension.h: #include "common/vec.h".
4637 New function declarations.
4638 (struct xmethod_worker): New struct.
4639 (VEC (xmethod_worker_ptr)): New vector type.
4640 (xmethod_worker_ptr): New typedef.
4641 (xmethod_worker_vec): Likewise.
4642 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4643 builtin_type.
4644 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4645 (struct builtin_type): New field "xmethod".
4646 * valarith.c (value_ptradd): Assert that the value argument is not
4647 lval_xcallable.
4648 * valops.c (value_must_coerce_to_target): Return 0 for
4649 lval_xcallable values.
4650 * value.c (struct value): New field XM_WORKER in the field
4651 LOCATION.
4652 (value_address, value_raw_address): Return 0 for lval_xcallable
4653 values.
4654 (set_value_address): Assert that the value is not an
4655 lval_xcallable.
4656 (value_free): Free the associated xmethod worker when freeing
4657 lval_xcallable values.
4658 (set_value_component_location): Assert that the WHOLE value is not
4659 lval_xcallable.
4660 (value_of_xmethod, call_xmethod): New functions.
4661 * value.h: Declare "struct xmethod_worker".
4662 Declare new functions value_of_xmethod, call_xmethod.
4663
4664 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4665 Pedro Alves <palves@redhat.com>
4666
4667 PR breakpoints/17000
4668 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4669 New function, extracted from software_breakpoint_inserted_here_p.
4670 (software_breakpoint_inserted_here_p): Replace factored out code
4671 by call to find_non_raw_software_breakpoint_inserted_here.
4672 (bp_target_info_copy_insertion_state): New function.
4673 (bkpt_insert_location): Handle the case of a single-step
4674 breakpoint already inserted at the same address.
4675 (bkpt_remove_location): Handle the case of a single-step
4676 breakpoint still inserted at the same address.
4677 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4678 breakpoint already inserted at the same address.
4679 (deprecated_remove_raw_breakpoint): Handle the case of a
4680 non-raw breakpoint still inserted at the same address.
4681 (find_single_step_breakpoint): New function, extracted from
4682 single_step_breakpoint_inserted_here_p.
4683 (find_single_step_breakpoint): New function,
4684 factored out from single_step_breakpoint_inserted_here_p.
4685 (single_step_breakpoint_inserted_here_p): Reimplement.
4686
4687 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4688
4689 Pushed by Joel Brobecker <brobecker@adacore.com>
4690 * source.c (show_substitute_path_command): Fix display of matching
4691 substitution rules.
4692
4693 2014-06-03 Gary Benson <gbenson@redhat.com>
4694
4695 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4696
4697 2014-06-02 Doug Evans <xdje42@gmail.com>
4698
4699 Add parameter support for Guile.
4700 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4701 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4702 (scm-param.o): New rule.
4703 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4704 (gdbscm_misc_error): Declare.
4705 (gdbscm_canonicalize_command_name): Declare.
4706 (gdbscm_scm_to_host_string): Declare.
4707 (gdbscm_scm_from_host_string): Declare.
4708 (gdbscm_initialize_parameters): Declare.
4709 * guile/guile.c (initialize_gdb_module): Call
4710 gdbscm_initialize_parameters.
4711 * guile/lib/gdb.scm: Export parameter symbols.
4712 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4713 cmdscm_canonicalize_name and made public. All callers updated.
4714 * guile/scm-exception.c (gdbscm_misc_error): New function.
4715 * guile/scm-param.c: New file.
4716 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4717 (gdbscm_scm_to_host_string): New function.
4718 (gdbscm_scm_from_host_string): New function.
4719 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4720
4721 2014-06-02 Doug Evans <xdje42@gmail.com>
4722
4723 Add command support for Guile.
4724 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4725 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4726 (scm-cmd.o): New rule.
4727 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4728 (gdbscm_user_error_p): Declare.
4729 (gdbscm_parse_command_name): Declare.
4730 (gdbscm_valid_command_class_p): Declare.
4731 (gdbscm_initialize_commands): Declare.
4732 * guile/guile.c (initialize_gdb_module): Call
4733 gdbscm_initialize_commands.
4734 * guile/lib/gdb.scm: Export command symbols.
4735 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4736 (throw-user-error): New function.
4737 * guile/scm-cmd.c: New file.
4738 * guile/scm-exception.c (user_error_symbol): New static global.
4739 (gdbscm_user_error_p): New function.
4740 (gdbscm_initialize_exceptions): Set user_error_symbol.
4741 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4742
4743 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4744
4745 * top.c (command_loop): Handle comments here...
4746 (command_line_input): ... not here.
4747
4748 2014-06-02 Doug Evans <xdje42@gmail.com>
4749
4750 Add progspace support for Guile.
4751 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4752 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4753 (scm-progspace.o): New rule.
4754 * guile/guile-internal.h (pspace_smob): New typedef.
4755 (psscm_pspace_smob_pretty_printers): Declare.
4756 (psscm_pspace_smob_from_pspace): Declare.
4757 (psscm_scm_from_pspace): Declare.
4758 * guile/guile.c (initialize_gdb_module): Call
4759 gdbscm_initialize_pspaces.
4760 * guile/lib/gdb.scm: Export progspace symbols.
4761 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4762 support.
4763 (append-pretty-printer!): Ditto.
4764 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4765 Implement.
4766 * guile/scm-progspace.c: New file.
4767
4768 2014-06-03 Alan Modra <amodra@gmail.com>
4769
4770 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4771 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4772
4773 2014-06-02 Doug Evans <dje@google.com>
4774
4775 Add support for skeletonless type units.
4776 * dwarf2read.c (struct dwarf2_per_objfile): New member
4777 n_allocated_type_units.
4778 (struct dwarf2_per_objfile) <tu_stats>: New member
4779 nr_all_type_units_reallocs.
4780 (create_signatured_type_table_from_index): Initialize
4781 n_allocated_type_units
4782 (create_all_type_units): Ditto.
4783 (add_type_unit): Move up in file. New arg slot.
4784 All callers updated. Increase space for all_type_units more
4785 efficiently.
4786 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4787 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4788 (lookup_dwp_signatured_type): Ditto.
4789 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4790 All callers updated.
4791 (build_type_psymtabs_1): Leave type_unit_groups as
4792 NULL if no TUs present.
4793 (print_tu_stats): New function.
4794 (process_skeletonless_type_unit): New function.
4795 (process_dwo_file_for_skeletonless_type_units): New
4796 function.
4797 (process_skeletonless_type_units): New function.
4798 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4799 Call print tu_stats if debugging enabled.
4800
4801 2014-06-02 Pedro Alves <palves@redhat.com>
4802
4803 * breakpoint.c (build_target_command_list): Don't build a command
4804 list if we have any duplicate location that isn't a dprintf.
4805
4806 2014-06-02 Pedro Alves <palves@redhat.com>
4807
4808 * breakpoint.c (dprintf_breakpoint_hit): New function.
4809 (initialize_breakpoint_ops): Install it as dprintf's
4810 breakpoint_hit method.
4811
4812 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4813
4814 * source.c (substitute_path_rule_matches): Simplify using
4815 filename_ncmp instead of FILENAME_CMP.
4816
4817 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4818
4819 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4820
4821 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4822
4823 * configure.ac: When Guile is available, check for the
4824 availability of 'scm_new_smob'.
4825 * configure, config.h.in: Regenerate.
4826 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4827 function.
4828
4829 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4830
4831 * frame.c (struct frame_info): Add stop_string field.
4832 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4833 (get_prev_frame_always): Old content moved into
4834 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4835 TRY_CATCH, handle MEMORY_ERROR exceptions.
4836 (frame_stop_reason_string): New function definition.
4837 * frame.h (unwind_stop_reason_to_string): Extend comment to
4838 mention frame_stop_reason_string.
4839 (frame_stop_reason_string): New function declaration.
4840 * stack.c (frame_info): Switch to frame_stop_reason_string.
4841 (backtrace_command_1): Switch to frame_stop_reason_string.
4842 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4843 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4844 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4845
4846 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4847
4848 * frame.c (frame_stop_reason_string): Rename to ...
4849 (unwind_stop_reason_to_string): this.
4850 * frame.h (frame_stop_reason_string): Rename to ...
4851 (unwind_stop_reason_to_string): this.
4852 * stack.c (frame_info): Update call to frame_stop_reason_string.
4853 (backtrace_command_1): Likewise.
4854 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4855 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4856
4857 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4858
4859 * frame.c (remove_prev_frame): New function.
4860 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4861 remove_prev_frame.
4862
4863 2014-05-29 Pedro Alves <palves@redhat.com>
4864
4865 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4866 and make it const. When a single-step decays to a continue,
4867 clear 'step', not 'hw_step'. Pass whether the caller wanted
4868 to step to user_visible_resume_ptid, not what we ask the
4869 target to do.
4870
4871 2014-05-29 Pedro Alves <palves@redhat.com>
4872
4873 * infrun.c (process_event_stop_test, handle_step_into_function)
4874 (handle_step_into_function_backward): Adjust.
4875 Don't set the even thread's stop_step and call stop_waiting before
4876 calling end_stepping_range. Instead do that ...
4877 (end_stepping_range): ... here. Take an ecs pointer parameter.
4878
4879 2014-05-29 Pedro Alves <palves@redhat.com>
4880
4881 * infrun.c (stop_stepping): Rename to ...
4882 (stop_waiting): ... this.
4883 (proceed): Update comment.
4884 (process_event_stop_test, handle_inferior_event)
4885 (handle_signal_stop, handle_step_into_function)
4886 (handle_step_into_function_backward): Update.
4887
4888 2014-05-29 Pedro Alves <palves@redhat.com>
4889
4890 * infcall.c (run_inferior_call): Don't check whether the current
4891 thread is running after the proceed call.
4892
4893 2014-05-29 Pedro Alves <palves@redhat.com>
4894 Tom Tromey <tromey@redhat.com>
4895
4896 * NEWS: Mention "maint set target-async", "set mi-async", and that
4897 background execution commands are now always available.
4898 * target.h (target_async_permitted): Update comment.
4899 * target.c (target_async_permitted, target_async_permitted_1):
4900 Default to 1.
4901 (set_target_async_command): Rename to ...
4902 (maint_set_target_async_command): ... this.
4903 (show_target_async_command): Rename to ...
4904 (maint_show_target_async_command): ... this.
4905 (_initialize_target): Adjust.
4906 * infcmd.c (prepare_execution_command): Make extern.
4907 * inferior.h (prepare_execution_command): Declare.
4908 * infrun.c (set_observer_mode): Leave target async alone.
4909 * mi/mi-interp.c (mi_interpreter_init): Install
4910 mi_on_sync_execution_done as sync_execution_done observer.
4911 (mi_on_sync_execution_done): New function.
4912 (mi_execute_command_input_handler): Don't print the prompt if we
4913 just started a synchronous command with an async target.
4914 (mi_on_resume): Check sync_execution before printing prompt.
4915 * mi/mi-main.h (mi_async_p): Declare.
4916 * mi/mi-main.c: Include gdbcmd.h.
4917 (mi_async_p): New function.
4918 (mi_async, mi_async_1): New globals.
4919 (set_mi_async_command, show_mi_async_command, mi_async): New
4920 functions.
4921 (exec_continue): Call prepare_execution_command.
4922 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4923 (mi_execute_async_cli_command): Use mi_async_p.
4924 (_initialize_mi_main): Install "set mi-async". Make
4925 "target-async" a deprecated alias.
4926
4927 2014-05-29 Pedro Alves <palves@redhat.com>
4928
4929 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4930 (_initialize_cli_interp): Adjust.
4931 * event-loop.c: Include "observer.h".
4932 (start_event_loop): Notify 'command_error' observers instead of
4933 calling display_gdb_prompt. Remove FIXME comment.
4934 * event-top.c (display_gdb_prompt): Remove call into the
4935 interpreters.
4936 * inf-loop.c: Include "observer.h".
4937 (inferior_event_handler): Notify 'command_error' observers instead
4938 of calling display_gdb_prompt.
4939 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4940 observers instead of calling display_gdb_prompt.
4941 * interps.c (interp_set): Don't call display_gdb_prompt.
4942 (current_interp_display_prompt_p): Delete.
4943 * interps.h (interp_prompt_p): Delete declaration.
4944 (interp_prompt_p_ftype): Delete.
4945 (struct interp_procs) <prompt_proc_p>: Delete field.
4946 (current_interp_display_prompt_p): Delete declaration.
4947 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4948 (_initialize_mi_interp): Adjust.
4949 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4950 'command_error' observers.
4951 (tui_on_sync_execution_done, tui_on_command_error): New
4952 functions.
4953 (tui_display_prompt_p): Delete.
4954 (_initialize_tui_interp): Adjust.
4955
4956 2014-05-29 Pedro Alves <palves@redhat.com>
4957
4958 PR gdb/13860
4959 * cli/cli-interp.c: Include infrun.h and observer.h.
4960 (cli_uiout, cli_interp): New globals.
4961 (cli_on_signal_received, cli_on_end_stepping_range)
4962 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4963 functions.
4964 (cli_interpreter_init): Install them as 'end_stepping_range',
4965 'signal_received' 'signal_exited', 'exited' and 'no_history'
4966 observers.
4967 (_initialize_cli_interp): Remove cli_interp local.
4968 * infrun.c (handle_inferior_event): Call the several stop reason
4969 observers instead of printing the stop reason directly.
4970 (end_stepping_range): New function.
4971 (print_end_stepping_range_reason, print_signal_exited_reason)
4972 (print_exited_reason, print_signal_received_reason)
4973 (print_no_history_reason): Make static, and add an uiout
4974 parameter. Print to that instead of to CURRENT_UIOUT.
4975 * infrun.h (print_end_stepping_range_reason)
4976 (print_signal_exited_reason, print_exited_reason)
4977 (print_signal_received_reason print_no_history_reason): New
4978 declarations.
4979 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4980 'mi_uiout'.
4981 <cli_uiout>: New field.
4982 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4983 uiout for CLI output. Install 'signal_received',
4984 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4985 observers.
4986 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4987 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4988 (mi_on_no_history): New functions.
4989 (ui_out_free_cleanup): Delete function.
4990 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4991 instead use the one already stored in the MI interpreter data.
4992 (mi_ui_out): Adjust.
4993 * tui/tui-interp.c: Include infrun.h and observer.h.
4994 (tui_interp): New global.
4995 (tui_on_signal_received, tui_on_end_stepping_range)
4996 (tui_on_signal_exited, tui_on_exited)
4997 (tui_on_no_history): New functions.
4998 (tui_init): Install them as 'end_stepping_range',
4999 'signal_received' 'signal_exited', 'exited' and 'no_history'
5000 observers.
5001 (_initialize_tui_interp): Delete tui_interp local.
5002
5003 2014-05-29 Pedro Alves <palves@redhat.com>
5004
5005 PR gdb/15713
5006 * linux-nat.c (linux_nat_resume_callback): Rename the second
5007 parameter to 'except'. Skip LP if it points to EXCEPT.
5008 (linux_nat_resume): Don't mark the event lwp as not stopped
5009 before resuming sibling lwps. Instead ask
5010 linux_nat_resume_callback to skip the event lwp. Mark it as not
5011 stopped after actually resuming it.
5012 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5013 resuming it.
5014 (wait_lwp): Mark the lwp as stopped here.
5015 (stop_wait_callback): Mark the lwp as not stopped right after
5016 resuming it. Don't mark lwps as stopped here.
5017 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5018 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5019
5020 2014-05-29 Pedro Alves <palves@redhat.com>
5021
5022 PR PR15693
5023 * infrun.c (resume): Determine how much to resume depending on
5024 whether the caller wanted a step, not whether we can hardware step
5025 the target. Mark all threads that we intend to run as running,
5026 unless we're calling an inferior function.
5027 (normal_stop): If the thread is running an infcall, don't finish
5028 thread state.
5029 * target.c (target_resume): Don't mark threads as running here.
5030
5031 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5032
5033 * serial.c (_initialize_serial): Remove support for
5034 the "set remotebaud" and "show remotebaud" commands.
5035 * NEWS: Add entry documenting the removal of that command.
5036
5037 2014-05-28 Yao Qi <yao@codesourcery.com>
5038
5039 * charset.c: Fix typo in comments.
5040
5041 2014-05-27 Gary Benson <gbenson@redhat.com>
5042
5043 * utils.c (internal_vproblem): Prompt for a bug report.
5044
5045 2014-05-26 Andy Wingo <wingo@igalia.com>
5046
5047 * guile/scm-arch.c (arscm_mark_arch_smob):
5048 * guile/scm-block.c (bkscm_mark_block_smob)
5049 (bkscm_mark_block_syms_progress_smob):
5050 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5051 * guile/scm-exception.c (exscm_mark_exception_smob):
5052 * guile/scm-frame.c (frscm_mark_frame_smob):
5053 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5054 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5055 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5056 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5057 (ppscm_mark_pretty_printer_worker_smob):
5058 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5059 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5060 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5061 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5062 mark functions.
5063 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5064 function.
5065
5066 2014-05-26 Andy Wingo <wingo@igalia.com>
5067 Doug Evans <xdje42@gmail.com>
5068
5069 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5070 empty_base_class. All uses updated.
5071 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5072 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5073 Adapt all callers.
5074 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5075 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5076 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5077 (gdbscm_gsmob_has_property_p, add_property_name)
5078 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5079 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5080 (gdb-object-has-property?, gdb-object-properties): Remove.
5081 (gdb-object-kind): Renamed from gsmob-kind.
5082
5083 2014-05-26 Andy Wingo <wingo@igalia.com>
5084
5085 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5086 * configure: Regenerate.
5087
5088 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5089
5090 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5091
5092 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5093
5094 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5095 (replay_memory_access_read_only, replay_memory_access_read_write)
5096 (replay_memory_access_types, replay_memory_access)
5097 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5098 (cmd_set_record_btrace, cmd_show_record_btrace)
5099 (cmd_show_replay_memory_access): New.
5100 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5101 (record_btrace_remove_breakpoint): Replace
5102 record_btrace_allow_memory_access with replay_memory_access.
5103 (_initialize_record_btrace): Add commands.
5104 * NEWS: Announce it.
5105
5106 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5107
5108 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5109
5110 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5111
5112 * MAINTAINERS (Write After Approval): Move self back from
5113 paper trail.
5114
5115 2014-05-22 Pedro Alves <palves@redhat.com>
5116
5117 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5118 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5119 (disable_randomization, enum exec_direction_kind)
5120 (execution_direction, stop_registers, start_remote)
5121 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5122 (wait_for_inferior, normal_stop, get_last_target_status)
5123 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5124 (insert_step_resume_breakpoint_at_sal)
5125 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5126 (set_step_info, print_stop_event, signal_stop_state)
5127 (signal_print_state, signal_pass_state, signal_stop_update)
5128 (signal_print_update, signal_pass_update)
5129 (update_signals_program_target, clear_exit_convenience_vars)
5130 (displaced_step_dump_bytes, update_observer_mode)
5131 (signal_catch_update, gdb_signal_from_command): Move
5132 declarations ...
5133 * infrun.h: ... to this new file.
5134 * amd64-tdep.c: Include infrun.h.
5135 * annotate.c: Include infrun.h.
5136 * arch-utils.c: Include infrun.h.
5137 * arm-linux-tdep.c: Include infrun.h.
5138 * arm-tdep.c: Include infrun.h.
5139 * break-catch-sig.c: Include infrun.h.
5140 * breakpoint.c: Include infrun.h.
5141 * common/agent.c: Include infrun.h instead of inferior.h.
5142 * corelow.c: Include infrun.h.
5143 * event-top.c: Include infrun.h.
5144 * go32-nat.c: Include infrun.h.
5145 * i386-tdep.c: Include infrun.h.
5146 * inf-loop.c: Include infrun.h.
5147 * infcall.c: Include infrun.h.
5148 * infcmd.c: Include infrun.h.
5149 * infrun.c: Include infrun.h.
5150 * linux-fork.c: Include infrun.h.
5151 * linux-nat.c: Include infrun.h.
5152 * linux-thread-db.c: Include infrun.h.
5153 * monitor.c: Include infrun.h.
5154 * nto-tdep.c: Include infrun.h.
5155 * procfs.c: Include infrun.h.
5156 * record-btrace.c: Include infrun.h.
5157 * record-full.c: Include infrun.h.
5158 * remote-m32r-sdi.c: Include infrun.h.
5159 * remote-mips.c: Include infrun.h.
5160 * remote-notif.c: Include infrun.h.
5161 * remote-sim.c: Include infrun.h.
5162 * remote.c: Include infrun.h.
5163 * reverse.c: Include infrun.h.
5164 * rs6000-tdep.c: Include infrun.h.
5165 * s390-linux-tdep.c: Include infrun.h.
5166 * solib-irix.c: Include infrun.h.
5167 * solib-osf.c: Include infrun.h.
5168 * solib-svr4.c: Include infrun.h.
5169 * target.c: Include infrun.h.
5170 * top.c: Include infrun.h.
5171 * windows-nat.c: Include infrun.h.
5172 * mi/mi-interp.c: Include infrun.h.
5173 * mi/mi-main.c: Include infrun.h.
5174 * python/py-threadevent.c: Include infrun.h.
5175
5176 2014-05-22 Pedro Alves <palves@redhat.com>
5177
5178 * infrun.c (handle_inferior_event): Store the exit code for
5179 --return-child-result here, instead of ...
5180 (print_exited_reason): ... here.
5181
5182 2014-05-21 Pedro Alves <palves@redhat.com>
5183
5184 PR gdb/13860
5185 * gdbthread.h (struct thread_control_state): New field
5186 `command_interp'.
5187 * infrun.c (follow_fork): Copy the new thread control field to the
5188 child fork thread.
5189 (clear_proceed_status_thread): Clear the new thread control field.
5190 (proceed): Set the new thread control field.
5191 * interps.h (command_interp): Declare.
5192 * interps.c (command_interpreter): New global.
5193 (command_interp): New function.
5194 (interp_exec): Set `command_interpreter' while here.
5195 * cli-out.c (cli_uiout_dtor): New function.
5196 (cli_ui_out_impl): Install it.
5197 * mi/mi-interp.c: Include cli-out.h.
5198 (mi_cmd_interpreter_exec): Add comment.
5199 (restore_current_uiout_cleanup): New function.
5200 (ui_out_free_cleanup): New function.
5201 (mi_on_normal_stop): If finishing an execution command started by
5202 a CLI command, or any kind of breakpoint-like event triggered,
5203 print the stop event to the output (CLI) stream.
5204 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5205
5206 2014-05-21 Pedro Alves <palves@redhat.com>
5207
5208 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5209 current source line having changed.
5210 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5211 * infrun.c (normal_stop): Adjust call to
5212 set_current_sal_from_frame.
5213 * source.c (clear_lines_listed_range): New function.
5214 (set_current_source_symtab_and_line, identify_source_line): Clear
5215 the lines listed range.
5216 (line_info): Handle the first "info line" after the current source
5217 line having changed.
5218 * stack.c (print_stack_frame): Remove center handling.
5219 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5220 center sal.line.
5221
5222 2014-05-21 Pedro Alves <palves@redhat.com>
5223
5224 * inf-child.c (inf_child_mourn_inferior): New function.
5225 * inf-child.h (inf_child_mourn_inferior): New declaration.
5226 * darwin-nat.c (darwin_mourn_inferior): Use
5227 inf_child_mourn_inferior.
5228 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5229 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5230 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5231 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5232 * windows-nat.c (windows_mourn_inferior): Likewise.
5233
5234 2014-05-21 Doug Evans <xdje42@gmail.com>
5235
5236 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5237
5238 2014-05-21 Doug Evans <xdje42@gmail.com>
5239
5240 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5241 (gdbscm_out_of_range_error): Ditto.
5242 (gdbscm_memory_error): Ditto.
5243 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5244 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5245 (gdbscm_out_of_range_error): Update.
5246 (gdbscm_memory_error): Update.
5247 (gdbscm_scm_to_target_string_unsafe): Delete.
5248
5249 2014-05-21 Pedro Alves <palves@redhat.com>
5250
5251 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5252 globals.
5253 (inf_child_open_target): New function.
5254 (inf_child_open): Use inf_child_open_target to push the target
5255 instead of erroring out.
5256 (inf_child_disconnect, inf_child_close)
5257 (inf_child_maybe_unpush_target): New functions.
5258 (inf_child_target): Install inf_child_disconnect and
5259 inf_child_close. Store a pointer to the returned object.
5260 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5261 declarations.
5262 * target.c (auto_connect_native_target): New global.
5263 (show_default_run_target): New function.
5264 (find_default_run_target): Return NULL if automatically connecting
5265 to the native target is disabled.
5266 (_initialize_target): Install set/show auto-connect-native-target.
5267 * NEWS: Mention "set auto-connect-native-target", and "target
5268 native".
5269 * linux-nat.c (super_close): New global.
5270 (linux_nat_close): Call super_close.
5271 (linux_nat_add_target): Store a pointer to the base class's
5272 to_close method.
5273 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5274 inf_child_maybe_unpush.
5275 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5276 already pushed.
5277 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5278 the inferior. Use inf_child_maybe_unpush_target.
5279 (inf_ttrace_attach): Don't push the target if it is already
5280 pushed.
5281 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5282 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5283 after mourning the inferior. Use inf_child_maybe_unpush_target.
5284 (darwin_attach_pid): Don't push the target if it is already
5285 pushed.
5286 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5287 mourning the inferior. Use inf_child_maybe_unpush_target.
5288 (gnu_detach): Use inf_child_maybe_unpush_target.
5289 * go32-nat.c (go32_create_inferior): Don't push the target if it
5290 is already pushed.
5291 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5292 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5293 (procfs_open): Rename to ...
5294 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5295 comments. Can target_preopen before changing node. Call
5296 inf_child_open_target to push the target explicitly.
5297 (procfs_attach): Don't push the target if it is already pushed.
5298 (procfs_detach): Use inf_child_maybe_unpush_target.
5299 (procfs_create_inferior): Don't push the target if it is already
5300 pushed.
5301 (nto_native_ops): New global.
5302 (procfs_open): Reimplement.
5303 (procfs_native_open): New function.
5304 (init_procfs_targets): Install procfs_native_open as to_open of
5305 "target native". Store a pointer to the "native" target in
5306 nto_native_ops.
5307 * procfs.c (procfs_attach): Don't push the target if it is already
5308 pushed.
5309 (procfs_detach): Use inf_child_maybe_unpush_target.
5310 (procfs_mourn_inferior): Only unpush the target after mourning the
5311 inferior. Use inf_child_maybe_unpush_target.
5312 (procfs_init_inferior): Don't push the target if it is already
5313 pushed.
5314 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5315 if it is already pushed.
5316
5317 2014-05-21 Pedro Alves <palves@redhat.com>
5318
5319 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5320 and "procfs" targets are now called "native" instead.
5321
5322 2014-05-21 Pedro Alves <palves@redhat.com>
5323
5324 * go32-nat.c (go32_open): Delete.
5325 (go32_target): Don't override the to_open method.
5326
5327 2014-05-21 Pedro Alves <palves@redhat.com>
5328
5329 * nto-procfs.c (procfs_can_run): New function.
5330 (nto_procfs_ops): New global.
5331 (init_procfs_targets): New, based on procfs_target. Install
5332 "target native" in addition to "target procfs".
5333 (_initialize_procfs): Call init_procfs_targets instead of adding
5334 the target here.
5335
5336 2014-05-21 Pedro Alves <palves@redhat.com>
5337
5338 * windows-nat.c (windows_target): Don't override to_shortname,
5339 to_longname or to_doc.
5340
5341 2014-05-21 Pedro Alves <palves@redhat.com>
5342
5343 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5344 to_doc.
5345
5346 2014-05-21 Pedro Alves <palves@redhat.com>
5347
5348 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5349 to_shortname, to_longname or to_doc.
5350
5351 2014-05-21 Pedro Alves <palves@redhat.com>
5352
5353 * go32-nat.c (go32_target): Don't override to_shortname,
5354 to_longname or to_doc.
5355
5356 2014-05-21 Pedro Alves <palves@redhat.com>
5357
5358 * inf-child.c (inf_child_open): Remove mention of "child".
5359 (inf_child_target): Rename target to "native" instead of "child".
5360
5361 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5362
5363 * Makefile.in (SFILES): Delete "regset.c".
5364 (COMMON_OBS): Delete "regset.o".
5365 * regset.c: Remove.
5366 * regset.h (regset_alloc): Delete prototype.
5367
5368 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5369
5370 * sparc-linux-tdep.c (sparc32_linux_gregset)
5371 (sparc32_linux_fpregset): New static regset structures.
5372 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5373 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5374 'fpregset' fields.
5375 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5376 (sparc64_linux_fpregset): New static regset structures.
5377 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5378 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5379 New static regset structures.
5380 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5381 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5382 New static regset structures.
5383 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5384 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5385 New static regset structures.
5386 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5387 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5388 New static regset structures.
5389 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5390
5391 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5392
5393 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5394 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5395 register maps ("regmaps") from "*regset" to "*regmap". Do this
5396 for all regmap types and variables.
5397 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5398 (sparc32_linux_supply_core_gregset)
5399 (sparc32_linux_collect_core_gregset)
5400 (sparc32_linux_supply_core_fpregset)
5401 (sparc32_linux_collect_core_fpregset): Likewise.
5402 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5403 (sparc_gregmap, sparc_fpregmap): ... these.
5404 (sparc_supply_gregset, sparc_collect_gregset)
5405 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5406 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5407 (_initialize_sparc_nat): Rename regmaps.
5408 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5409 (sparc_gregmap, sparc_fpregmap): ... these.
5410 (sparc_supply_gregset, sparc_collect_gregset)
5411 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5412 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5413 Rename macros to...
5414 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5415 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5416 Likewise.
5417 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5418 Rename to...
5419 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5420 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5421 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5422 regmaps.
5423 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5424 (sparc32_bsd_fpregset): Rename to...
5425 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5426 (sparc32_bsd_fpregmap): ... these.
5427 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5428 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5429 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5430 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5431 (struct sparc_gregmap, struct sparc_fpregmap)
5432 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5433 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5434 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5435 (sparc32_supply_regset, sparc32_collect_gregset)
5436 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5437 prototypes.
5438 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5439 (sparc64_linux_ptrace_gregmap): ... this.
5440 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5441 (_initialize_sparc64_linux_nat): Rename regmaps.
5442 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5443 (sparc64_linux_core_gregmap): ... this.
5444 (sparc64_linux_supply_core_gregset)
5445 (sparc64_linux_collect_core_gregset)
5446 (sparc64_linux_supply_core_fpregset)
5447 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5448 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5449 (sparc64_sol2_fpregset): Rename to...
5450 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5451 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5452 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5453 regmaps.
5454 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5455 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5456 (sparc64_bsd_fpregset): Rename to...
5457 (struct sparc_gregmap, sparc64_sol2_gregmap)
5458 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5459 (sparc64_bsd_fpregmap): ... these.
5460 (sparc64_supply_gregset, sparc64_collect_gregset)
5461 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5462 prototypes.
5463 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5464 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5465 (sparc64fbsd_gregmap): ... this.
5466 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5467 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5468 Rename regmaps.
5469 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5470 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5471 (sparc64nbsd_collect_fpregset): Likewise.
5472 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5473 (sparc64nbsd_gregmap): ... this.
5474 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5475 regmaps.
5476 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5477 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5478 (sparc64obsd_gregmap): ... this.
5479 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5480 regmaps.
5481 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5482 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5483 (sparc32nbsd_gregmap): ... this.
5484 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5485 regmaps.
5486
5487 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5488
5489 * score-tdep.c (score7_linux_gregset): New static regset
5490 structure.
5491 (score7_linux_regset_from_core_section): Remove dynamic regset
5492 allocation.
5493 (score_gdbarch_init): Drop allocation of tdep structure.
5494 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5495
5496 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5497
5498 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5499 regset structures.
5500 (am33_regset_from_core_section): Remove dynamic regset
5501 allocations.
5502
5503 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5504
5505 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5506 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5507 structures.
5508 (mips_linux_regset_from_core_section): Remove dynamic regset
5509 allocations.
5510 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5511 'gregset64', 'fpregset', and 'fpregset64'.
5512 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5513 deleted tdep fields.
5514
5515 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5516
5517 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5518 regset structures.
5519 (amd64_regset_from_core_section): Remove dynamic regset
5520 allocations.
5521 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5522 structure.
5523 (amd64obsd_regset_from_core_section): Remove dynamic regset
5524 allocation.
5525 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5526 Likewise.
5527 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5528 x86-common regset supply function.
5529 * i386-tdep.c (i386_collect_gregset): Make static.
5530 (i386_gregset): New global regset structure.
5531 (i386_fpregset, i386_xstateregset): New static regset structures.
5532 (i386_regset_from_core_section): Remove dynamic regset
5533 allocations.
5534 (i386_gdbarch_init): Remove initialization of tdep fields
5535 'gregset', 'fpregset', and 'xstateregset'.
5536 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5537 'fpregset', and 'xstateregset'.
5538 (i386_collect_gregset): Remove prototype.
5539 (i386_gregset): New declaration.
5540 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5541 structure.
5542 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5543 allocation.
5544
5545 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5546
5547 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5548 (arm_linux_vfpregset): New static regset structures.
5549 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5550 regset structures.
5551 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5552 and 'vfpregset' fields.
5553
5554 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5555
5556 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5557 (aarch64_linux_fpregset): New static regset structures.
5558 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5559 of regset structures.
5560 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5561 'fpregset' fields.
5562
5563 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5564
5565 * regset.h (struct regset): Remove gdbarch field.
5566 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5567 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5568 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5569 Likewise.
5570 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5571 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5572 (ppc32_linux_vsxregset): Likewise.
5573 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5574 via the regcache instead of the regset.
5575 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5576 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5577 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5578 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5579 Likewise.
5580
5581 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5582
5583 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5584 Constify structures.
5585 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5586 (alphanbsd_aout_gregset): Likewise.
5587 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5588 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5589 Likewise.
5590 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5591 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5592 Likewise.
5593 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5594 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5595 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5596 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5597 * m88k-tdep.c (m88k_gregset): Likewise.
5598 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5599 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5600 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5601 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5602 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5603 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5604 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5605 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5606 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5607 Likewise.
5608 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5609 * sh-tdep.h (sh_corefile_gregset): Likewise.
5610 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5611 * vax-tdep.c (vax_gregset): Likewise.
5612
5613 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5614
5615 Fix TLS access for -static -pthread.
5616 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5617 (try_thread_db_load_1): Initialize it.
5618 (thread_db_get_thread_local_address): Call it if LM is zero.
5619 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5620 * target.h (struct target_ops) (to_get_thread_local_address): Add
5621 load_module_addr comment.
5622
5623 2014-05-21 Pedro Alves <palves@redhat.com>
5624
5625 * dcache.c (dcache_read_memory_partial): If reading the cache line
5626 fails, fallback to reading just the memory the caller wanted.
5627
5628 2014-05-20 Doug Evans <dje@google.com>
5629
5630 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5631 instead of get_current_arch.
5632
5633 2014-05-20 Pedro Alves <palves@redhat.com>
5634
5635 * NEWS: Mention that compare-sections now works with all targets.
5636
5637 * remote.c (PACKET_qCRC): New enum value.
5638 (remote_verify_memory): Don't send qCRC if the target has no
5639 execution. Use packet_support/packet_ok. If the target doesn't
5640 support the qCRC packet, fallback to a deep memory copy.
5641 (compare_sections_command): Say "target image" instead of "remote
5642 executable".
5643 (_initialize_remote): Add PACKET_qCRC to the list of config
5644 packets that have no associated command. Extend comment.
5645 * target.c (simple_verify_memory, default_verify_memory): New
5646 function.
5647 * target.h (struct target_ops) <to_verify_memory>: Default to
5648 default_verify_memory.
5649 (simple_verify_memory): New declaration.
5650 * target-delegates.c: Regenerate.
5651
5652 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5653
5654 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5655
5656 2014-05-20 Hui Zhu <hui@codesourcery.com>
5657 Yao Qi <yao@codesourcery.com>
5658
5659 PR backtrace/16558
5660 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5661 and change address of sp and pc.
5662
5663 2014-05-19 Tom Tromey <tromey@redhat.com>
5664
5665 * gdbtypes.c (rank_function): Use XNEWVEC.
5666 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5667
5668 2014-05-19 Doug Evans <dje@google.com>
5669
5670 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5671 build_type_unit_groups and moved closer to only caller. Remove
5672 arguments. All references updated. Remove outdated .gdb_index
5673 comment.
5674 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5675 build_type_psymtabs_1.
5676
5677 2014-05-19 Doug Evans <dje@google.com>
5678
5679 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5680 n_type_unit_groups, all_type_unit_groups. All uses removed.
5681 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5682 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5683 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5684 (add_type_unit_group_to_table): Delete.
5685
5686 2014-05-19 Doug Evans <dje@google.com>
5687
5688 * eval.c (evaluate_subexp_standard): Add some comments.
5689
5690 2014-05-17 Doug Evans <xdje42@gmail.com>
5691
5692 * progspace.c (remove_program_space): Delete, unused.
5693 * progspace.h (remove_program_space): Ditto.
5694
5695 2014-05-17 Doug Evans <xdje42@gmail.com>
5696
5697 * inferior.c (prune_inferiors): Fix comment.
5698 (remove_inferior_command): Call prune_program_spaces.
5699
5700 2014-05-16 Doug Evans <dje@google.com>
5701
5702 New command line option -D.
5703 * NEWS: Mention it.
5704 * main.c (set_gdb_data_directory): New function.
5705 (captured_main): Recognize -D. Flag error for --data-directory "".
5706 Call set_gdb_data_directory.
5707 (print_gdb_help): Print --data-directory, -D.
5708 * main.h (set_gdb_data_directory): Declare.
5709 * top.c (staged_gdb_datadir): New static global.
5710 (set_gdb_datadir): Call set_gdb_data_directory
5711 (show_gdb_datadir): New function.
5712 (init_main): Update init of data-directory parameter.
5713
5714 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5715
5716 Import the "dirfd" gnulib module.
5717 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5718 * gnulib/aclocal.m4: Update.
5719 * gnulib/config.in: Update.
5720 * gnulib/configure: Update.
5721 * gnulib/import/Makefile.am: Update.
5722 * gnulib/import/Makefile.in: Update.
5723 * gnulib/import/dirfd.c: New.
5724 * gnulib/import/m4/dirfd.m4: New.
5725 * gnulib/import/m4/gnulib-cache.m4: Update.
5726 * gnulib/import/m4/gnulib-comp.m4: Update.
5727
5728 2014-05-16 Pierre Muller <muller@sourceware.org>
5729 Yao Qi <yao@codesourcery.com>
5730
5731 * valprint.c (print_wchar): Move the code on checking whether
5732 W is a printable wide char to the default branch of switch
5733 statement below. Call wchar_printable instead of gdb_iswprint.
5734
5735 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5736
5737 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5738 ldr.w and ldrd instructions.
5739
5740 2014-05-15 Doug Evans <dje@google.com>
5741
5742 * dwarf2read.c (read_structure_type): Delete outdated comments.
5743
5744 2014-05-14 Tom Tromey <tromey@redhat.com>
5745
5746 * macrocmd.c (print_macro_definition): Reindent.
5747
5748 2014-05-13 Doug Evans <xdje42@gmail.com>
5749
5750 * python/py-cmd.c (cmdpy_completer): Add comment.
5751 (completers): Make const.
5752
5753 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5754
5755 * infrun.c (resume): Remove should_resume (unused). Move up
5756 declaration of resume_ptid.
5757
5758 2014-05-13 Tom Tromey <tromey@redhat.com>
5759
5760 * language.h (unop_type_check): Remove.
5761 (binop_type_check): Don't declare.
5762
5763 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5764
5765 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5766 call to regcache_raw_collect.
5767
5768 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5769
5770 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5771 mi_console->quote as the quoting character.
5772
5773 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5774
5775 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5776
5777 2014-04-29 Tom Tromey <tromey@redhat.com>
5778
5779 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5780 "show debug varobj".
5781
5782 2014-05-07 Kyle McMartin <kyle@redhat.com>
5783
5784 Pushed by Joel Brobecker <brobecker@adacore.com>.
5785 * aarch64-tdep.c (aarch64_software_single_step): New function.
5786 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5787 with aarch64_software_single_step.
5788
5789 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5790
5791 GDB 7.7.1 released.
5792
5793 2014-05-05 Keith Seitz <keiths@redhat.com>
5794
5795 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5796 variable or history value is successfully parsed.
5797
5798 2014-05-05 Yao Qi <yao@codesourcery.com>
5799 Pedro Alves <palves@redhat.com>
5800
5801 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5802 address of blocks that intersects the requested range. Trim
5803 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5804 sections.
5805 * ctf.c (ctf_xfer_partial): Likewise.
5806
5807 2014-05-05 Yao Qi <yao@codesourcery.com>
5808
5809 * printcmd.c (display_command): Remove the check to
5810 target_has_execution.
5811
5812 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5813
5814 * ppcobsd-nat.c: Include "obsd-nat.h".
5815 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5816 add_target.
5817 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5818
5819 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5820
5821 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5822 and 16-bit signed and unsigned arguments. Update comment.
5823 (stap_parse_probe_arguments): Extend code to handle such
5824 arguments. Use warning instead of complaint to notify about
5825 unrecognized bitness.
5826
5827 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5828
5829 PR breakpoints/16889
5830 * stap-probe.c (stap_parse_probe_arguments): Simplify
5831 check for non-prefixed probes (i.e., probes whose
5832 arguments do not start with "N@"). Always set the
5833 argument type to a sane value.
5834
5835 2014-05-01 David Taylor <dtaylor@emc.com>
5836
5837 * remote.c (compare_sections_command): Add -r option to compare
5838 all loadable read-only sections.
5839
5840 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5841
5842 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5843 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5844 Update all callers.
5845 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5846 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5847 Remove unused CORE_ADDR argument. Update all callers.
5848
5849 2014-04-29 Pedro Alves <palves@redhat.com>
5850
5851 * remote.c (struct packet_config) <detect>: Extend comment.
5852 (add_packet_config_cmd): Don't set the config's detect or support
5853 fields here.
5854 (init_all_packet_configs): Also initialize the config's 'detect'
5855 field.
5856 (reset_all_packet_configs_support): New function.
5857 (remote_open_1): Call reset_all_packet_configs_support instead of
5858 init_all_packet_configs.
5859 (_initialize_remote): Initialize all packet configs. Assert that
5860 all packets have an associated command, except a few known
5861 outliers.
5862
5863 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5864
5865 * dwarf2read.c (read_subrange_type): Handle dynamic
5866 DW_AT_lower_bound attributes.
5867
5868 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5869
5870 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5871 dynamic bounds before computing its upper bound.
5872 (ada_discrete_type_low_bound): Same as above with the lower bound.
5873
5874 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5875
5876 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5877 range types. Adjust the array handling implementation to
5878 take advantage of this change.
5879 (resolve_dynamic_range): New function, mostly extracted from
5880 resolve_dynamic_bounds.
5881 (resolve_dynamic_array): New function, mostly extracted from
5882 resolve_dynamic_bounds.
5883 (resolve_dynamic_bounds): Delete.
5884 (resolve_dynamic_type): Reimplement. Add handling of
5885 TYPE_CODE_RANGE types.
5886
5887 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5888
5889 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5890 handling of parallel ___XA types.
5891
5892 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5893
5894 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5895 unnecessary second call to static_unwrap_type.
5896
5897 2014-04-27 Hui Zhu <hui@codesourcery.com>
5898
5899 * stack.c (print_frame_info): Call do_gdb_disassembly with
5900 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5901
5902 2014-04-26 Doug Evans <xdje42@gmail.com>
5903
5904 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5905
5906 2014-04-25 Pedro Alves <palves@redhat.com>
5907
5908 PR server/16255
5909 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5910 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5911 and newline from built string.
5912 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5913 (linux_ptrace_attach_fail_reason): ... this.
5914 * linux-nat.c (linux_nat_attach): Adjust to use
5915 linux_ptrace_attach_fail_reason.
5916
5917 2014-04-25 Pedro Alves <palves@redhat.com>
5918
5919 * remote.c (struct remote_state): Remove multi_process_aware,
5920 non_stop_aware, cond_tracepoints, cond_breakpoints,
5921 breakpoint_commands, fast_tracepoints, static_tracepoints,
5922 install_in_trace, disconnected_tracing,
5923 enable_disable_tracepoints, string_tracing, and
5924 augmented_libraries_svr4_read fields.
5925 (remote_multi_process_p): Move further below in the file.
5926 (struct packet_config): Add comments.
5927 (update_packet_config): Delete function.
5928 (show_packet_config_cmd): Use packet_config_support.
5929 (add_packet_config_cmd): Use NULL as set callback.
5930 (packet_ok): "set remote foo-packet"-style commands no longer
5931 change config->supported -- adjust.
5932 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5933 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5934 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5935 (PACKET_QNonStop, PACKET_multiprocess_feature)
5936 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5937 (PACKET_DisconnectedTracing_feature)
5938 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5939 (set_remote_protocol_packet_cmd): Delete function.
5940 (packet_config_support, packet_support): New functions.
5941 (set_remote_protocol_Z_packet_cmd): Don't call
5942 update_packet_config.
5943 (remote_query_attached, remote_pass_signals)
5944 (remote_program_signals, remote_threads_info)
5945 (remote_threads_extra_info, remote_start_remote): Use
5946 packet_support.
5947 (remote_start_remote): Use packet_config_support and
5948 packet_support.
5949 (init_all_packet_configs): Set all packets to unknown support,
5950 instead of calling update_packet_config.
5951 (remote_check_symbols): Use packet_support.
5952 (remote_supported_packet): Unconditionally set the packet config's
5953 support status.
5954 (remote_multi_process_feature, remote_non_stop_feature)
5955 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5956 (remote_breakpoint_commands_feature)
5957 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5958 (remote_install_in_trace_feature)
5959 (remote_disconnected_tracing_feature)
5960 (remote_enable_disable_tracepoint_feature)
5961 (remote_string_tracing_feature)
5962 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5963 (remote_protocol_features): Adjust to use remote_supported_packet
5964 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5965 "ConditionalTracepoints", "ConditionalBreakpoints",
5966 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5967 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5968 "EnableDisableTracepoints", and "tracenz".
5969 (remote_query_supported): Use packet_support.
5970 (remote_open_1): Adjust.
5971 (extended_remote_attach_1): Use packet_support. Switch on the
5972 result of packet_ok instead of checking whether the packet ended
5973 up disabled.
5974 (remote_vcont_resume): Use packet_support.
5975 (remote_resume, remote_stop_ns, fetch_register_using_p)
5976 (remote_prepare_to_store, store_register_using_P)
5977 (check_binary_download, remote_write_bytes): Use packet_support.
5978 (remote_vkill): Use packet_support. Switch on the result of
5979 packet_ok instead of checking whether the packet ended up
5980 disabled.
5981 (extended_remote_supports_disable_randomization): Use
5982 packet_support.
5983 (extended_remote_run): Switch on the result of packet_ok instead
5984 of checking whether the packet ended up disabled.
5985 (remote_insert_breakpoint, remote_remove_breakpoint)
5986 (remote_insert_watchpoint, remote_remove_watchpoint)
5987 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5988 packet_support.
5989 (remote_search_memory): Use packet_config_support.
5990 (remote_get_thread_local_address, remote_get_tib_address)
5991 (remote_hostio_send_command, remote_can_execute_reverse): Use
5992 packet_support.
5993 (remote_supports_cond_tracepoints)
5994 (remote_supports_cond_breakpoints)
5995 (remote_supports_fast_tracepoints)
5996 (remote_supports_static_tracepoints)
5997 (remote_supports_install_in_trace)
5998 (remote_supports_enable_disable_tracepoint)
5999 (remote_supports_string_tracing)
6000 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6001 the packet config says the feature is enabled or disabled.
6002 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6003 (remote_get_trace_status): Use packet_support.
6004 (remote_set_disconnected_tracing): Adjust to check whether the
6005 feature is enabled with packet_support.
6006 (remote_set_trace_buffer_size, remote_use_agent)
6007 (remote_can_use_agent, remote_supports_btrace): Use
6008 packet_support.
6009 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6010 Use packet_config_support.
6011 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6012 the packet config says the feature is enabled or disabled.
6013 (set_range_stepping): Use packet_support.
6014
6015 2014-04-25 Tom Tromey <tromey@redhat.com>
6016
6017 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6018 argument.
6019
6020 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6021
6022 * NEWS: Mention support for C99 variable length arrays.
6023
6024 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6025
6026 * ada-lang.c (standard_exc): Expand introductory comment.
6027
6028 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6029 Walfred Tedeschi <walfred.tedeschi@intel.com>
6030
6031 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6032 AVX512 registers.
6033 (amd64_linux_read_description): Add code to handle AVX512 xstate
6034 mask and return respective tdesc.
6035 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6036 and features/i386/x32-avx512-linux.c.
6037 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6038 (amd64_linux_core_read_description): Add code to handle AVX512
6039 xstate mask and return respective tdesc.
6040 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6041 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6042 calculation.
6043 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6044 (tdesc_amd64_avx512_linux): New prototype.
6045 (tdesc_x32_avx512_linux): Likewise.
6046 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6047 features/i386/x32-avx512.c.
6048 (amd64_ymm_avx512_names): New register names for pseudo
6049 registers YMM16-31.
6050 (amd64_ymmh_avx512_names): New register names for raw registers
6051 YMMH16-31.
6052 (amd64_k_names): New register names for K registers.
6053 (amd64_zmmh_names): New register names for ZMM raw registers.
6054 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6055 (amd64_xmm_avx512_names): New register names for XMM16-31
6056 registers.
6057 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6058 registers.
6059 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6060 if feature is present.
6061 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6062 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6063 (AMD64_NUM_REGS): Adjust to new number of registers.
6064 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6065 registers supplied via XSTATE by AVX512 registers.
6066 (i386_linux_read_description): Add case for AVX512.
6067 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6068 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6069 (i386_linux_core_read_description): Add case for AVX512.
6070 (i386_linux_init_abi): Install supported register note section
6071 for AVX512.
6072 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6073 AVX512.
6074 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6075 registers to be number of zmm7h + 1.
6076 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6077 * i386-tdep.c: Include features/i386/i386-avx512.c.
6078 (i386_zmm_names): Add ZMM pseudo register names array.
6079 (i386_zmmh_names): Add ZMM raw register names array.
6080 (i386_k_names): Add K raw register names array.
6081 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6082 registers. AVX512 has 16 more ZMM registers than there are YMM
6083 registers.
6084 (i386_zmmh_regnum_p): Add function to look up register number of
6085 ZMM raw registers.
6086 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6087 (i386_k_regnum_p): Likewise for K raw registers.
6088 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6089 registers added by AVX512.
6090 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6091 registers added by AVX512.
6092 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6093 added by AVX512.
6094 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6095 (i386_pseudo_register_name): Add ZMM pseudo registers.
6096 (i386_zmm_type): Construct and return vector registers type for ZMM
6097 registers.
6098 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6099 ZMM0-31 pseudo registers and K registers.
6100 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6101 and YMM16-31 registers from register cache.
6102 (i386_pseudo_register_write): Add code to write K, ZMM and
6103 YMM16-31 registers.
6104 (i386_register_reggroup_p): Add code to include/exclude AVX512
6105 registers in/from respective register groups.
6106 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6107 registers if feature is present in xcr0.
6108 (i386_gdbarch_init): Add code to initialize AVX512 feature
6109 variables in tdep structure, wire in pseudo registers and call
6110 initialize_tdesc_i386_avx512.
6111 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6112 variables.
6113 (i386_regnum): Add AVX512 registers.
6114 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6115 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6116 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6117 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6118 512 bits wide.
6119 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6120 (i386_ymm_avx512_regnum_p): Likewise.
6121 (i386_k_regnum_p): Likewise.
6122 (i386_zmm_regnum_p): Likewise.
6123 (i386_zmmh_regnum_p): Likewise.
6124 * i387-tdep.c : Update year in copyright notice.
6125 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6126 XSAVE buffer.
6127 (XSAVE_YMM_AVX512_ADDR): New macro.
6128 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6129 XSAVE buffer.
6130 (XSAVE_XMM_AVX512_ADDR): New macro.
6131 (xsave_avx512_k_offset): New table for K register offsets in
6132 XSAVE buffer.
6133 (XSAVE_AVX512_K_ADDR): New macro.
6134 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6135 in XSAVE buffer.
6136 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6137 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6138 buffer.
6139 (i387_collect_xsave): Add code to collect AVX512 registers from
6140 XSAVE buffer.
6141 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6142 of XMM16-31 registers.
6143 (I387_NUM_K_REGS): New define for number of K registers.
6144 (I387_K0_REGNUM): New define for K0 register number.
6145 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6146 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6147 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6148 registers.
6149 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6150 (I387_XMM16_REGNUM): New define for XMM16 register number.
6151 (I387_YMM0_REGNUM): New define for YMM0 register number.
6152 (I387_KEND_REGNUM): New define for last K register number.
6153 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6154 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6155 number.
6156 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6157 number.
6158 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6159 size.
6160 * features/Makefile: Add AVX512 related files.
6161 * features/i386/32bit-avx512.xml: New file.
6162 * features/i386/64bit-avx512.xml: Likewise.
6163 * features/i386/amd64-avx512-linux.c: Likewise.
6164 * features/i386/amd64-avx512-linux.xml: Likewise.
6165 * features/i386/amd64-avx512.c: Likewise.
6166 * features/i386/amd64-avx512.xml: Likewise.
6167 * features/i386/i386-avx512-linux.c: Likewise.
6168 * features/i386/i386-avx512-linux.xml: Likewise.
6169 * features/i386/i386-avx512.c: Likewise.
6170 * features/i386/i386-avx512.xml: Likewise.
6171 * features/i386/x32-avx512-linux.c: Likewise.
6172 * features/i386/x32-avx512-linux.xml: Likewise.
6173 * features/i386/x32-avx512.c: Likewise.
6174 * features/i386/x32-avx512.xml: Likewise.
6175 * regformats/i386/amd64-avx512-linux.dat: New file.
6176 * regformats/i386/amd64-avx512.dat: Likewise.
6177 * regformats/i386/i386-avx512-linux.dat: Likewise.
6178 * regformats/i386/i386-avx512.dat: Likewise.
6179 * regformats/i386/x32-avx512-linux.dat: Likewise.
6180 * regformats/i386/x32-avx512.dat: Likewise.
6181 * NEWS: Add note about new support for AVX512.
6182
6183
6184 2014-04-23 Pedro Alves <palves@redhat.com>
6185
6186 * breakpoint.c (insert_bp_location): Tolerate errors if the
6187 breakpoint is set in a user-loaded objfile.
6188 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6189 location is marked shlib_disabled. If the breakpoint is set in a
6190 user-loaded objfile is a GDB-side memory breakpoint, validate it
6191 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6192 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6193 flag.
6194 * mem-break.c (memory_validate_breakpoint): New function.
6195 * objfiles.c (userloaded_objfile_contains_address_p): New
6196 function.
6197 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6198 * target.h (memory_validate_breakpoint): New declaration.
6199
6200 2014-04-23 Pedro Alves <palves@redhat.com>
6201
6202 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6203 the breakpoint is set in a shared library, only suppress
6204 errors for software breakpoints, not hardware breakpoints.
6205
6206 2014-04-22 Pedro Alves <palves@redhat.com>
6207
6208 * infrun.c (schedlock_applies): New function, factored out from
6209 find_thread_needs_step_over.
6210 (find_thread_needs_step_over): Use it.
6211 (switch_back_to_stepped_thread): Always clear trap_expected if the
6212 step over is finished. Return early if scheduler locking applies.
6213 Look for the stepping thread and a potential step-over thread with
6214 a single loop.
6215 (currently_stepping_or_nexting_callback): Delete.
6216
6217 2014-04-22 Nick Clifton <nickc@redhat.com>
6218
6219 * NEWS: Mention that ARM sim now supports tracing.
6220
6221 2014-04-22 Yao Qi <yao@codesourcery.com>
6222
6223 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6224 to ...
6225 * tracefile.c (tracefile_fetch_registers): ... it. New
6226 function.
6227 * tracefile.h (tracefile_fetch_registers): Declare.
6228 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6229 tracefile_fetch_registers.
6230
6231 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6232
6233 PR gdb/14018
6234 * windows-nat.c (thread_rec): Don't display a warning when
6235 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6236 fails for any reason, set th->suspended to -1, so that we don't
6237 try to resume such a thread. Also, don't return NULL in these
6238 cases, to avoid completely ruin the session due to "PC register is
6239 not available" error.
6240 (do_windows_fetch_inferior_registers): Check errors in
6241 GetThreadContext call.
6242 (windows_continue): Accept an additional argument KILLED; if not
6243 zero, ignore errors in the SetThreadContext call, since the
6244 inferior was killed and is shutting down.
6245 (windows_resume, get_windows_debug_event)
6246 (windows_create_inferior, windows_mourn_inferior)
6247 (windows_kill_inferior): All callers of windows_continue changed
6248 to adjust to its new calling sequence.
6249
6250 2014-04-19 Yao Qi <yao@codesourcery.com>
6251
6252 * ctf.c (ctf_open): Call post_create_inferior.
6253
6254 2014-04-19 Yao Qi <yao@codesourcery.com>
6255
6256 * ctf.c (handle_id): New static variable.
6257 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6258 value. Get the declaration of event "register" and get length
6259 of field "contents".
6260
6261 2014-04-19 Yao Qi <yao@codesourcery.com>
6262
6263 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6264
6265 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6266
6267 * valops.c (oload_method_static): Remove unnecessary argument
6268 METHOD. Update all callers.
6269
6270 2014-04-18 Pedro alves <palves@redhat.com>
6271 Tom Tromey <tromey@redhat.com>
6272
6273 PR backtrace/15558
6274 * frame.c (get_prev_frame_1): Rename to ...
6275 (get_prev_frame_always): ... this, and make extern. Adjust.
6276 (skip_artificial_frames): Use get_prev_frame_always.
6277 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6278 (get_frame_unwind_stop_reason): Adjust to rename.
6279 * frame.h (get_prev_frame_always): Declare.
6280 * inline-frame.c: Include frame.h.
6281 (inline_frame_this_id): Use get_prev_frame_always.
6282
6283 2014-04-18 Tristan Gingold <gingold@adacore.com>
6284
6285 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6286 code by using bfd_mach_o_get_base_address.
6287
6288 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6289
6290 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6291 (spu_ax_pseudo_register_collect): New function.
6292 (spu_ax_pseudo_register_push_stack): Likewise.
6293 (spu_dwarf_reg_to_regnum): Likewise.
6294 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6295
6296 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6297
6298 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6299 Replace FRAME argument with FRAME_ID.
6300 * gdbarch.c, gdbarch.h: Regenerate.
6301 * findvar.c (default_value_from_register): Add GDBARCH argument;
6302 replace FRAME by FRAME_ID. No longer call get_frame_id.
6303 (value_from_register): Update call to gdbarch_value_from_register.
6304 * value.h (default_value_from_register): Update prototype.
6305 * s390-linux-tdep.c (s390_value_from_register): Update interface
6306 and call to default_value_from_register.
6307 * spu-tdep.c (spu_value_from_register): Likewise.
6308
6309 * findvar.c (address_from_register): Remove TYPE argument.
6310 Do not call value_from_register; use gdbarch_value_from_register
6311 with null_frame_id instead.
6312 * value.h (address_from_register): Update prototype.
6313 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6314 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6315 address_from_register interface change.
6316
6317 2014-04-17 Yao Qi <yao@codesourcery.com>
6318
6319 * gdbtypes.h: Update comments to link to types and macros'
6320 definitions.
6321
6322 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6323
6324 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6325
6326 2014-04-16 Keith Seitz <keiths@redhat.com>
6327
6328 PR gdb/15827
6329 * dwarf2read.c (skip_one_die): Check that all relative-offset
6330 sibling DIEs fall within range of the current reader's buffer.
6331 (read_partial_die): Likewise.
6332
6333 2014-04-16 Keith Seitz <keiths@redhat.com>
6334
6335 PR c++/16597
6336 * cp-namespace.c (lookup_symbol_file): If the type name of
6337 `this' is NULL, return immediately.
6338
6339 2014-04-14 Keith Seitz <keiths@redhat.com>
6340
6341 PR c++/16253
6342 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6343 from symbol_matches_domain in symtab.c. All local callers
6344 of symbol_matches_domain updated.
6345 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6346 search STRUCT_DOMAIN.
6347 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6348 independently. standard_lookup will do that automatically.
6349 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6350 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6351 (cp_lookup_symbol_in_namespace): Likewise.
6352 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6353 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6354 may return a STRUCT_DOMAIN match.
6355 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6356 * cp-support.c: Include language.h.
6357 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6358 VAR_DOMAIN.
6359 * psymtab.c (match_partial_symbol): Compare the requested
6360 domain with the symbol's domain directly.
6361 (lookup_partial_symbol): Likewise.
6362 * symtab.c (lookup_symbol_in_language): Explain when/why
6363 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6364 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6365 appropriate languages.
6366 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6367 and moved to ada-lang.c
6368 (lookup_block_symbol): Explain that this function only returns
6369 symbol matching the requested DOMAIN.
6370 Compare the requested domain with the symbol's domain directly.
6371 (iterate_over_symbols): Compare the requested domain with the
6372 symbol's domain directly.
6373 * symtab.h (symbol_matches_domain): Remove.
6374
6375 2014-04-14 Tom Tromey <tromey@redhat.com>
6376
6377 PR c++/15246:
6378 * c-exp.y (type_aggregate_p): New function.
6379 (qualified_name, classify_inner_name): Use it.
6380 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6381 and TYPE_TARGET_TYPE of an enum type.
6382 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6383 an enum type.
6384 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6385 handle TYPE_DECLARED_CLASS.
6386 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6387 types.
6388 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6389 * valops.c (enum_constant_from_type): New function.
6390 (value_aggregate_elt): Use it.
6391 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6392 TYPE_CODE_ENUM.
6393
6394 2014-04-14 Tom Tromey <tromey@redhat.com>
6395
6396 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6397 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6398 const.
6399 * value.h (value_aggregate_elt): Update.
6400
6401 2014-04-14 Tom Tromey <tromey@redhat.com>
6402
6403 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6404
6405 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6406
6407 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6408 (evaluate_subexp_standard): Pass noside argument.
6409 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6410 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6411 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6412 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6413 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6414
6415 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6416
6417 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6418 points to a constant blob.
6419
6420 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6421
6422 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6423 property and store it as the high bound and flag the range accordingly.
6424 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6425 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6426 * gdbtypes.h (enum range_flags): New enum.
6427 (struct range_bounds): Add flags member.
6428
6429 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6430
6431 * c-typeprint.c (c_type_print_varspec_suffix): Added
6432 check for not yet resolved high bound. If unresolved, print
6433 "variable length" string to the console instead of random
6434 length.
6435
6436 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6437
6438 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6439 value.
6440 (ada_template_to_fixed_record_type_1): Likewise.
6441 (ada_to_fixed_type_1): Likewise.
6442 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6443 (cp_print_value): Likewise.
6444 * d-valprint.c (dynamic_array_type): Likewise.
6445 * findvar.c (address_of_variable): Likewise.
6446 * jv-valprint.c (java_value_print): Likewise.
6447 * valops.c (value_ind): Likewise.
6448 * value.c (coerce_ref): Likewise.
6449
6450 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6451
6452 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6453 value and retrieve the dynamic type size.
6454
6455 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6456
6457 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6458 passed to sizeof is dynamic evaluate the argument to compute the length.
6459
6460 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6461 Joel Brobecker <brobecker@adacore.com>
6462
6463 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6464 (dwarf2_evaluate_property): New function.
6465 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6466 * dwarf2read.c (attr_to_dynamic_prop): New function.
6467 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6468 attribute.
6469 * gdbtypes.c: Include dwarf2loc.h.
6470 (is_dynamic_type): New function.
6471 (resolve_dynamic_type): New function.
6472 (resolve_dynamic_bounds): New function.
6473 (get_type_length): New function.
6474 (check_typedef): Use get_type_length to compute type length.
6475 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6476 (TYPE_LOW_BOUND_KIND): New macro.
6477 (is_dynamic_type): New function prototype.
6478 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6479 to resolve dynamic properties of the type. Update comment.
6480 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6481
6482 2014-04-14 Richard Henderson <rth@redhat.com>
6483
6484 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6485
6486 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6487 Doug Evans <xdje42@gmail.com>
6488
6489 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6490 dereference TYPE_CODE_REF values.
6491
6492 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6493
6494 Revert the following changes due to regressions:
6495
6496 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6497 (dwarf2_evaluate_property): New function.
6498 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6499 * dwarf2read.c (attr_to_dynamic_prop): New function.
6500 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6501 attribute.
6502 * gdbtypes.c: Include dwarf2loc.h.
6503 (is_dynamic_type): New function.
6504 (resolve_dynamic_type): New function.
6505 (resolve_dynamic_bounds): New function.
6506 (get_type_length): New function.
6507 (check_typedef): Use get_type_length to compute type length.
6508 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6509 (TYPE_LOW_BOUND_KIND): New macro.
6510 (is_dynamic_type): New function prototype.
6511 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6512 to resolve dynamic properties of the type. Update comment.
6513 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6514
6515 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6516 passed to sizeof is dynamic evaluate the argument to compute the length.
6517
6518 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6519 value and retrieve the dynamic type size.
6520
6521 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6522 (ada_template_to_fixed_record_type_1): Likewise.
6523 (ada_to_fixed_type_1): Likewise.
6524 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6525 (cp_print_value): Likewise.
6526 * d-valprint.c (dynamic_array_type): Likewise.
6527 * eval.c (evaluate_subexp_with_coercion): Likewise.
6528 * findvar.c (address_of_variable): Likewise.
6529 * jv-valprint.c (java_value_print): Likewise.
6530 * valops.c (value_ind): Likewise.
6531 * value.c (coerce_ref): Likewise.
6532
6533 * c-typeprint.c (c_type_print_varspec_suffix): Added
6534 check for not yet resolved high bound. If unresolved, print
6535 "variable length" string to the console instead of random
6536 length.
6537
6538 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6539 property and store it as the high bound and flag the range accordingly.
6540 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6541 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6542 * gdbtypes.h (enum range_flags): New enum.
6543 (struct range_bounds): Add flags member.
6544
6545 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6546 points to a constant blob.
6547
6548 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6549 (evaluate_subexp_standard): Pass noside argument.
6550 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6551 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6552 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6553 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6554 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6555
6556 2014-04-11 Keith Seitz <keiths@redhat.com>
6557
6558 PR c++/16675
6559 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6560 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6561 reference types.
6562
6563 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6564
6565 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6566 (evaluate_subexp_standard): Pass noside argument.
6567 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6568 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6569 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6570 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6571 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6572
6573 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6574
6575 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6576 points to a constant blob.
6577
6578 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6579
6580 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6581 property and store it as the high bound and flag the range accordingly.
6582 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6583 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6584 * gdbtypes.h (enum range_flags): New enum.
6585 (struct range_bounds): Add flags member.
6586
6587 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6588
6589 * c-typeprint.c (c_type_print_varspec_suffix): Added
6590 check for not yet resolved high bound. If unresolved, print
6591 "variable length" string to the console instead of random
6592 length.
6593
6594 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6595
6596 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6597 (ada_template_to_fixed_record_type_1): Likewise.
6598 (ada_to_fixed_type_1): Likewise.
6599 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6600 (cp_print_value): Likewise.
6601 * d-valprint.c (dynamic_array_type): Likewise.
6602 * eval.c (evaluate_subexp_with_coercion): Likewise.
6603 * findvar.c (address_of_variable): Likewise.
6604 * jv-valprint.c (java_value_print): Likewise.
6605 * valops.c (value_ind): Likewise.
6606 * value.c (coerce_ref): Likewise.
6607
6608 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6609
6610 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6611 value and retrieve the dynamic type size.
6612
6613 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6614
6615 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6616 passed to sizeof is dynamic evaluate the argument to compute the length.
6617
6618 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6619
6620 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6621 (dwarf2_evaluate_property): New function.
6622 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6623 * dwarf2read.c (attr_to_dynamic_prop): New function.
6624 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6625 attribute.
6626 * gdbtypes.c: Include dwarf2loc.h.
6627 (is_dynamic_type): New function.
6628 (resolve_dynamic_type): New function.
6629 (resolve_dynamic_bounds): New function.
6630 (get_type_length): New function.
6631 (check_typedef): Use get_type_length to compute type length.
6632 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6633 (TYPE_LOW_BOUND_KIND): New macro.
6634 (is_dynamic_type): New function prototype.
6635 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6636 to resolve dynamic properties of the type. Update comment.
6637 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6638
6639 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6640
6641 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6642 declaring high/low bounds and change uses accordingly. Call
6643 create_range_type instead of create_static_range_type.
6644 * gdbtypes.c (create_range_type): New function.
6645 (create_range_type): Convert bounds into struct bound_prop and pass
6646 them to create_range_type.
6647 * gdbtypes.h (struct bound_prop): New struct.
6648 (create_range_type): New function prototype.
6649 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6650 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6651 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6652 part of the bound.
6653 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6654
6655 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6656
6657 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6658 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6659 * ada-lang.c: All uses of create_range_type updated.
6660 * coffread.c: All uses of create_range_type updated.
6661 * dwarf2read.c: All uses of create_range_type updated.
6662 * f-exp.y: All uses of create_range_type updated.
6663 * m2-valprint.c: All uses of create_range_type updated.
6664 * mdebugread.c: All uses of create_range_type updated.
6665 * stabsread.c: All uses of create_range_type updated.
6666 * valops.c: All uses of create_range_type updated.
6667 * valprint.c: All uses of create_range_type updated.
6668
6669 2014-04-10 Pedro Alves <palves@redhat.com>
6670
6671 * breakpoint.c (single_step_breakpoints)
6672 (single_step_gdbarch): Move up in the file.
6673 (one_breakpoint_xfer_memory): New function, factored out from ...
6674 (breakpoint_xfer_memory): ... here. Also process single-step
6675 breakpoints.
6676
6677 2014-04-09 Tristan Gingold <gingold@adacore.com>
6678
6679 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6680 comments.
6681 (darwin_decode_exception_message): Free port only after use.
6682
6683 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6684
6685 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6686 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6687 when setting the size of call_length.
6688
6689 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6690
6691 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6692 dereference TYPE_CODE_REF values.
6693
6694 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6695
6696 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6697 end of warning message.
6698
6699 2014-04-03 Doug Evans <dje@google.com>
6700
6701 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6702 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6703
6704 2014-04-02 Alan Modra <amodra@gmail.com>
6705
6706 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6707 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6708 (struct symbol_file_add_from_memory_args): Add size field.
6709 (find_vdso_size): New function.
6710 (add_vsyscall_page): Attempt to find vdso size.
6711
6712 2014-04-01 Doug Evans <dje@google.com>
6713
6714 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6715
6716 2014-04-01 Tristan Gingold <gingold@adacore.com>
6717
6718 * darwin-nat.c (darwin_encode_reply): Add prototype.
6719 (darwin_decode_exception_message): Reply to unknown inferiors.
6720 (darwin_decode_message): Handle message by id. Ignore message
6721 to unknown inferior.
6722 (darwin_wait): Discard unknown messages, add debug trace.
6723
6724 2014-03-31 Doug Evans <dje@google.com>
6725
6726 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6727 comp_dir_string.
6728
6729 2014-03-31 Doug Evans <dje@google.com>
6730
6731 New option "set print symbol-loading".
6732 * NEWS: Mention it.
6733 * solib.c (solib_read_symbols): Only print symbol loading messages
6734 if requested.
6735 (solib_add): If symbol loading is in "brief" mode, notify user
6736 symbols are being loaded.
6737 (reload_shared_libraries_1): Ditto.
6738 * symfile.c (print_symbol_loading_off): New static global.
6739 (print_symbol_loading_brief): New static global.
6740 (print_symbol_loading_full): New static global.
6741 (print_symbol_loading_enums): New static global.
6742 (print_symbol_loading): New static global.
6743 (print_symbol_loading_p): New function.
6744 (symbol_file_add_with_addrs): Only print symbol loading messages
6745 if requested.
6746 (_initialize_symfile): Register "print symbol-loading" set/show
6747 command.
6748 * symfile.h (print_symbol_loading_p): Declare.
6749
6750 2014-03-30 Doug Evans <xdje42@gmail.com>
6751
6752 * infrun.c (set_last_target_status): New function.
6753 (handle_inferior_event): Call it.
6754
6755 2014-03-30 Doug Evans <xdje42@gmail.com>
6756
6757 * inferior.h (enum stop_kind): Improve comment.
6758
6759 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6760
6761 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6762 a reference, strip the reference layer before calling
6763 the lang_ops value_has_mutated callback.
6764
6765 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6766
6767 Remove some globals from our parser.
6768 * language.c (unk_lang_parser): Add "struct parser_state"
6769 argument.
6770 * language.h (struct language_defn) <la_parser>: Likewise.
6771 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6772 (initialize_expout): Add "struct parser_state" argument.
6773 Rewrite function to use the parser state.
6774 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6775 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6776 write_exp_elt_longcst, write_exp_elt_dblcst,
6777 write_exp_elt_decfloatcst, write_exp_elt_type,
6778 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6779 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6780 write_dollar_variable): Likewise.
6781 (parse_exp_in_context_1): Use parser state.
6782 (insert_type_address_space): Add "struct parser_state" argument.
6783 Use parser state.
6784 (increase_expout_size): New function.
6785 * parser-defs.h: Forward declare "struct language_defn" and
6786 "struct parser_state".
6787 (expout, expout_size, expout_ptr): Remove extern declarations.
6788 (parse_gdbarch, parse_language): Rewrite macro declarations to
6789 accept the parser state.
6790 (struct parser_state): New struct.
6791 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6792 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6793 write_exp_elt_decfloatcst, write_exp_elt_type,
6794 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6795 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6796 write_exp_msymbol, write_dollar_variable,
6797 mark_struct_expression, insert_type_address_space): Add "struct
6798 parser_state" argument.
6799 (increase_expout_size): New function.
6800 * utils.c (do_clear_parser_state): New function.
6801 (make_cleanup_clear_parser_state): Likewise.
6802 * utils.h (make_cleanup_clear_parser_state): New function
6803 prototype.
6804 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6805 Update calls to write_exp* in order to pass the parser state.
6806 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6807 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6808 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6809 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6810 * stap-probe.c (stap_parse_register_operand): Likewise.
6811 (stap_parse_single_operand): Likewise.
6812 (stap_parse_argument_1): Likewise.
6813 (stap_parse_argument): Use parser state.
6814 * stap-probe.h: Include "parser-defs.h".
6815 (struct stap_parse_info) <pstate>: New field.
6816 * c-exp.y (parse_type): Rewrite to use parser state.
6817 (yyparse): Redefine to c_parse_internal.
6818 (pstate): New global variable.
6819 (parse_number): Add "struct parser_state" argument.
6820 (write_destructor_name): Likewise.
6821 (type_exp): Update calls to write_exp* and similars in order to
6822 use parser state.
6823 (exp1, exp, variable, qualified_name, space_identifier,
6824 typename, typebase): Likewise.
6825 (write_destructor_name, parse_number, lex_one_token,
6826 classify_name, classify_inner_name, c_parse): Add "struct
6827 parser_state" argument. Update function to use parser state.
6828 * c-lang.h: Forward declare "struct parser_state".
6829 (c_parse): Add "struct parser_state" argument.
6830 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6831 (yyparse): Redefine macro to ada_parse_internal.
6832 (pstate): New variable.
6833 (write_int, write_object_renaming, write_var_or_type,
6834 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6835 type_int, type_long, type_long_long, type_float, type_double,
6836 type_long_double, type_char, type_boolean, type_system_address):
6837 Add "struct parser_state" argument.
6838 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6839 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6840 var_or_type, aggregate, aggregate_component_list,
6841 positional_list, others, component_group,
6842 component_associations): Update calls to write_exp* and similar
6843 functions in order to use parser state.
6844 (ada_parse, write_var_from_sym, write_int,
6845 write_exp_op_with_string, write_object_renaming,
6846 find_primitive_type, write_selectors, write_ambiguous_var,
6847 write_var_or_type, write_name_assoc, type_int, type_long,
6848 type_long_long, type_float, type_double, type_long_double,
6849 type_char, type_boolean, type_system_address): Add "struct
6850 parser_state" argument. Adjust function to use parser state.
6851 * ada-lang.c (parse): Likewise.
6852 * ada-lang.h: Forward declare "struct parser_state".
6853 (ada_parse): Add "struct parser_state" argument.
6854 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6855 calls to both functions.
6856 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6857 parser state.
6858 (yyparse): Redefine macro to f_parse_internal.
6859 (pstate): New variable.
6860 (parse_number): Add "struct parser_state" argument.
6861 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6862 and similars in order to use parser state.
6863 (parse_number): Adjust code to use parser state.
6864 (yylex): Likewise.
6865 (f_parse): New function.
6866 * f-lang.h: Forward declare "struct parser_state".
6867 (f_parse): Add "struct parser_state" argument.
6868 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6869 parser state.
6870 (yyparse): Redefine macro for java_parse_internal.
6871 (pstate): New variable.
6872 (push_expression_name, push_expression_name, insert_exp): Add
6873 "struct parser_state" argument.
6874 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6875 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6876 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6877 PostIncrementExpression, PostDecrementExpression,
6878 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6879 UnaryExpressionNotPlusMinus, CastExpression,
6880 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6881 RelationalExpression, EqualityExpression, AndExpression,
6882 ExclusiveOrExpression, InclusiveOrExpression,
6883 ConditionalAndExpression, ConditionalOrExpression,
6884 ConditionalExpression, Assignment, LeftHandSide): Update
6885 calls to write_exp* and similars in order to use parser state.
6886 (parse_number): Ajust code to use parser state.
6887 (yylex): Likewise.
6888 (java_parse): New function.
6889 (push_variable): Add "struct parser_state" argument. Adjust
6890 code to user parser state.
6891 (push_fieldnames, push_qualified_expression_name,
6892 push_expression_name, insert_exp): Likewise.
6893 * jv-lang.h: Forward declare "struct parser_state".
6894 (java_parse): Add "struct parser_state" argument.
6895 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6896 parser state.
6897 (yyparse): Redefine macro to m2_parse_internal.
6898 (pstate): New variable.
6899 (type_exp, exp, fblock, variable, type): Update calls to
6900 write_exp* and similars to use parser state.
6901 (yylex): Likewise.
6902 (m2_parse): New function.
6903 * m2-lang.h: Forward declare "struct parser_state".
6904 (m2_parse): Add "struct parser_state" argument.
6905 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6906 * objc-lang.h: Forward declare "struct parser_state".
6907 (end_msglist): Add "struct parser_state" argument.
6908 * p-exp.y (parse_type): Rewrite macro to use parser state.
6909 (yyparse): Redefine macro to pascal_parse_internal.
6910 (pstate): New variable.
6911 (parse_number): Add "struct parser_state" argument.
6912 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6913 write_exp* and similars in order to use parser state.
6914 (parse_number, yylex): Adjust code to use parser state.
6915 (pascal_parse): New function.
6916 * p-lang.h: Forward declare "struct parser_state".
6917 (pascal_parse): Add "struct parser_state" argument.
6918 * go-exp.y (parse_type): Rewrite macro to use parser state.
6919 (yyparse): Redefine macro to go_parse_internal.
6920 (pstate): New variable.
6921 (parse_number): Add "struct parser_state" argument.
6922 (type_exp, exp1, exp, variable, type): Update calls to
6923 write_exp* and similars in order to use parser state.
6924 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6925 to use parser state.
6926 (go_parse): Likewise.
6927 * go-lang.h: Forward declare "struct parser_state".
6928 (go_parse): Add "struct parser_state" argument.
6929
6930 2014-03-27 Doug Evans <dje@google.com>
6931
6932 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6933
6934 2014-03-27 Doug Evans <dje@google.com>
6935
6936 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6937 Remove argument abbrev_section. All callers updated.
6938
6939 2014-03-27 Doug Evans <dje@google.com>
6940
6941 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6942 addr_base, ranges_base.
6943
6944 2014-03-26 Keith Seitz <keiths@redhat.com>
6945
6946 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6947 types, not VAR_DOMAIN.
6948
6949 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6950
6951 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6952 "ra" registers.
6953 * features/nios2-linux.c: Regenerated.
6954 * features/nios2.c: Regenerated.
6955
6956 2014-03-25 Pedro Alves <palves@redhat.com>
6957
6958 * cli/cli-script.c (script_from_file): Force the interpreter to
6959 sync mode.
6960
6961 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6962
6963 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6964 small stack allocation.
6965
6966 2014-03-24 Tristan Gingold <gingold@adacore.com>
6967
6968 * darwin-nat.c (exc_server): Remove unused prototype.
6969 (darwin_dump_message): Correctly display data on x86_64.
6970 (darwin_encode_reply): Fix style.
6971 Add comments and fix indentation.
6972
6973 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6974
6975 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6976
6977 2014-03-22 Doug Evans <xdje42@gmail.com>
6978
6979 * infcmd.c: Whitespace fixes.
6980 (interrupt_command): Merge two function comments into one.
6981
6982 2014-03-22 Doug Evans <xdje42@gmail.com>
6983
6984 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6985 All uses updated.
6986
6987 2014-03-22 Yao Qi <yao@codesourcery.com>
6988
6989 * remote.c (target_read_live_memory): Remove.
6990 (memory_xfer_live_readonly_partial): Rename it to
6991 remote_xfer_live_readonly_partial. Remove argument 'object'.
6992 All callers updated. Call remote_read_bytes_1
6993 instead of target_read_live_memory.
6994 * tracepoint.c (set_traceframe_number): Remove.
6995 (make_cleanup_restore_traceframe_number): Likewise .
6996 * tracepoint.h (set_traceframe_number): Remove declaration.
6997 (make_cleanup_restore_traceframe_number): Likewise.
6998
6999 2014-03-22 Yao Qi <yao@codesourcery.com>
7000
7001 * remote.c (remote_read_bytes): Move code on reading from the
7002 remote stub to ...
7003 (remote_read_bytes_1): ... here. New function.
7004
7005 2014-03-22 Yao Qi <yao@codesourcery.com>
7006
7007 * ctf.c (ctf_xfer_partial): Check the return value of
7008 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7009 return TARGET_XFER_UNAVAILABLE.
7010 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7011 * target.c (target_read_live_memory): Move it to remote.c.
7012 (memory_xfer_live_readonly_partial): Likewise.
7013 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7014 * remote.c (target_read_live_memory): Moved from target.c.
7015 (memory_xfer_live_readonly_partial): Likewise.
7016 (remote_read_bytes): Factored out from
7017 memory_xfer_partial_1.
7018
7019 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7020
7021 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7022 NULL pointer.
7023
7024 2014-03-21 Pedro Alves <palves@redhat.com>
7025
7026 * infrun.c (normal_stop): Extend comment.
7027
7028 2014-03-21 Hui Zhu <hui@codesourcery.com>
7029 Pedro Alves <palves@redhat.com>
7030
7031 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7032 static buffer.
7033 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7034 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7035 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7036
7037 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7038
7039 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7040 `z' formatted output modifier.
7041
7042 2014-03-20 Tom Tromey <tromey@redhat.com>
7043 Sergio Durigan Junior <sergiodj@redhat.com>
7044
7045 * probe.c (parse_probes): Turn assert into an ordinary error.
7046 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7047 exceptions when parsing probes. Rearrange the code for clarity.
7048
7049 2014-03-20 Tom Tromey <tromey@redhat.com>
7050
7051 PR gdb/14135
7052 * top.c (execute_command): Only dispatch events if the command
7053 started the target.
7054
7055 2014-03-20 Tom Tromey <tromey@redhat.com>
7056
7057 PR cli/15718
7058 * infcall.c: Include event-top.h.
7059 (run_inferior_call): Call async_disable_stdin if needed.
7060
7061 2014-03-20 Pedro Alves <palves@redhat.com>
7062
7063 * infrun.c (prepare_to_proceed): Delete.
7064 (thread_still_needs_step_over): New function.
7065 (find_thread_needs_step_over): New function.
7066 (proceed): If the current thread needs a step-over, set its
7067 steping_over_breakpoint flag. Adjust to use
7068 find_thread_needs_step_over instead of prepare_to_proceed.
7069 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7070 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7071 breakpoint.
7072 (switch_back_to_stepped_thread): Step over breakpoints of all
7073 threads not the stepping thread, before switching back to the
7074 stepping thread.
7075
7076 2014-03-20 Pedro Alves <palves@redhat.com>
7077
7078 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7079 extern.
7080 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7081 * infrun.c (saved_singlestep_ptid)
7082 (stepping_past_singlestep_breakpoint): Delete.
7083 (resume): Remove stepping_past_singlestep_breakpoint handling.
7084 (proceed): Store the prev_pc of the stepping thread too.
7085 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7086 singlestep_pc.
7087 (enum infwait_states): Delete infwait_thread_hop_state.
7088 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7089 field.
7090 (handle_inferior_event): Adjust.
7091 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7092 handling and the thread-hop code. Before removing single-step
7093 breakpoints, check whether the thread hit a single-step breakpoint
7094 of another thread. If it did, the trap is not a random signal.
7095 (switch_back_to_stepped_thread): If the event thread hit a
7096 single-step breakpoint, unblock it before switching to the
7097 stepping thread. Handle the case of the stepped thread having
7098 advanced already.
7099 (keep_going): Handle the case of the current thread moving past a
7100 single-step breakpoint.
7101
7102 2014-03-20 Pedro Alves <palves@redhat.com>
7103
7104 PR breakpoints/7143
7105 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7106 are being stepped over.
7107 (breakpoint_address_match): Make extern.
7108 * breakpoint.h (breakpoint_address_match): New declaration.
7109 * inferior.h (stepping_past_instruction_at): New declaration.
7110 * infrun.c (struct step_over_info): New type.
7111 (step_over_info): New global.
7112 (set_step_over_info, clear_step_over_info)
7113 (stepping_past_instruction_at): New functions.
7114 (handle_inferior_event): Clear the step-over info when
7115 trap_expected is cleared.
7116 (resume): Remove now stale comment.
7117 (clear_proceed_status): Clear step-over info.
7118 (proceed): Adjust step-over handling to set or clear the step-over
7119 info instead of removing all breakpoints.
7120 (handle_signal_stop): When setting up a thread-hop, don't remove
7121 breakpoints here.
7122 (stop_stepping): Clear step-over info.
7123 (keep_going): Adjust step-over handling to set or clear step-over
7124 info and then always inserting breakpoints, instead of removing
7125 all breakpoints when stepping over one.
7126
7127 2014-03-20 Pedro Alves <palves@redhat.com>
7128
7129 * infrun.c (previous_inferior_ptid): Adjust comment.
7130 (deferred_step_ptid): Delete.
7131 (infrun_thread_ptid_changed, prepare_to_proceed)
7132 (init_wait_for_inferior): Adjust.
7133 (handle_signal_stop): Delete deferred_step_ptid handling.
7134
7135 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7136
7137 PR gdb/15358
7138 * defs.h (sync_quit_force_run): New declaration.
7139 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7140 * event-top.c (async_sigterm_handler): New declaration.
7141 (async_sigterm_token): New variable.
7142 (async_init_signals): Create also async_sigterm_token.
7143 (async_sigterm_handler): New function.
7144 (sync_quit_force_run): New variable.
7145 (handle_sigterm): Replace quit_force call by other calls.
7146 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7147
7148 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7149
7150 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7151 offset into SPE pseudo registers.
7152
7153 2014-03-18 Pedro Alves <palves@redhat.com>
7154
7155 PR gdb/13860
7156 * inferior.h (print_stop_event): Declare.
7157 * infrun.c (print_stop_event): New, factored out from ...
7158 (normal_stop): ... this.
7159 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7160 of bpstat_print/print_stack_frame.
7161
7162 2014-03-17 Tom Tromey <tromey@redhat.com>
7163
7164 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7165
7166 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7167
7168 * ada-lang.c (decode_constrained_packed_array): Perform a
7169 minimal coercion for reference with coerce_ref instead of
7170 ada_coerce_ref.
7171
7172 2014-03-17 Tristan Gingold <gingold@adacore.com>
7173
7174 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7175 (darwin_solib_create_inferior_hook): Emit a warning if version
7176 is unhandled.
7177
7178 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7179
7180 * python/py-value.c (get_field_flag): Cast flag_name argument to
7181 PyObject_GetAttrString to support Python 2.4.
7182
7183 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7184
7185 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7186 (Global Maintainers): Remove Jan Kratochvil.
7187
7188 2014-03-14 Pedro Alves <palves@redhat.com>
7189
7190 * inferior.h (terminal_ours_for_output): Rename to ...
7191 (child_terminal_ours_for_output): ... this.
7192 (terminal_save_ours): Rename to ...
7193 (child_terminal_save_ours): ... this.
7194 (terminal_ours): Rename to ...
7195 (child_terminal_ours): ... this.
7196 (terminal_inferior): Rename to ...
7197 (child_terminal_inferior): ... this.
7198 (terminal_init_inferior): Rename to ...
7199 (child_terminal_init_inferior): ... this.
7200 (terminal_init_inferior_with_pgrp): Rename to ...
7201 (child_terminal_init_inferior_with_pgrp): ... this.
7202 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7203 (child_terminal_init_with_pgrp): ... this.
7204 (terminal_save_ours): Rename to ...
7205 (child_terminal_save_ours): ... this.
7206 (terminal_init_inferior): Rename to ...
7207 (child_terminal_init): ... this. Adjust.
7208 (terminal_inferior): Rename to ...
7209 (child_terminal_inferior): ... this.
7210 (terminal_ours_for_output): Rename to ...
7211 (child_terminal_ours_for_output): ... this. Adjust.
7212 (terminal_ours): Rename to ...
7213 (child_terminal_ours): ... this.
7214 (terminal_ours_1): Rename to ...
7215 (child_terminal_ours_1): ... this. Adjust.
7216 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7217 * windows-nat.c (do_initial_windows_stuff): Adjust.
7218 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7219 (gnu_terminal_init): ... this. Adjust.
7220 (gnu_target): Adjust.
7221 * inf-child.c (inf_child_target): Adjust.
7222
7223 2014-03-13 Doug Evans <xdje42@gmail.com>
7224
7225 PR guile/16612
7226 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7227 new eq?-hashtab.
7228
7229 2014-03-13 Doug Evans <xdje42@gmail.com>
7230
7231 * value.c (record_latest_value): Call release_value_or_incref
7232 instead of release_value.
7233
7234 2014-03-13 Pedro Alves <palves@redhat.com>
7235
7236 * procfs.c (procfs_target): Don't override to_shortname,
7237 to_longname or to_doc.
7238
7239 2014-03-13 Pedro Alves <palves@redhat.com>
7240
7241 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7242 Unix in user visible strings.
7243
7244 2014-03-12 Stan Shebs <stan@codesourcery.com>
7245
7246 * gdbtypes.h: Annotate comments for Doxygen, add a page
7247 block comment with some general info.
7248
7249 2014-03-12 Pedro Alves <palves@redhat.com>
7250
7251 * infcmd.c (prepare_execution_command): New function, factored out
7252 from several execution commands.
7253 (run_command_1, continue_command, step_1, jump_command)
7254 (signal_command, until_command, advance_command, finish_command)
7255 (attach_command): Use prepare_execution_command.
7256
7257 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7258
7259 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7260 (MAX_BPTS): Define.
7261 (MAX_WPTS): Define.
7262 (struct arm_linux_thread_points): Removed.
7263 (struct arm_linux_process_info): New.
7264 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7265 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7266 (arm_linux_find_breakpoints_by_tid): Removed.
7267 (struct arch_lwp_info): New.
7268 (arm_linux_find_process_pid): New functions.
7269 (arm_linux_add_process): New functions.
7270 (arm_linux_process_info_get): New functions.
7271 (arm_linux_forget_process): New function.
7272 (arm_linux_get_debug_reg_state): New function.
7273 (struct update_registers_data): New.
7274 (update_registers_callback): New function.
7275 (arm_linux_insert_hw_breakpoint1): Updated.
7276 (arm_linux_remove_hw_breakpoint1): Updated.
7277 (arm_linux_insert_hw_breakpoint): Updated.
7278 (arm_linux_remove_hw_breakpoint): Updated.
7279 (arm_linux_insert_watchpoint): Updated.
7280 (arm_linux_remove_watchpoint): Updated.
7281 (arm_linux_new_thread): Updated.
7282 (arm_linux_prepare_to_resume): New function.
7283 (arm_linux_new_fork): New function.
7284 (_initialize_arm_linux_nat): Updated.
7285
7286 2014-03-12 Pedro Alves <palves@redhat.com>
7287
7288 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7289
7290 2014-03-12 Tom Tromey <tromey@redhat.com>
7291
7292 * inf-child.c (return_zero): New function.
7293 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7294 * aix-thread.c (aix_thread_inferior_created): New function.
7295 (aix_thread_attach): Remove.
7296 (init_aix_thread_ops): Don't set to_attach.
7297 (_initialize_aix_thread): Register inferior_created observer.
7298 * corelow.c (init_core_ops): Don't set to_attach or
7299 to_create_inferior.
7300 * exec.c (init_exec_ops): Don't set to_attach or
7301 to_create_inferior.
7302 * infcmd.c (run_command_1): Use find_run_target. Make direct
7303 target calls.
7304 (attach_command): Use find_attach_target. Make direct target
7305 calls.
7306 * record-btrace.c (init_record_btrace_ops): Don't set
7307 to_create_inferior.
7308 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7309 Remove.
7310 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7311 set to_create_inferior.
7312 * target.c (complete_target_initialization): Add assertion.
7313 (target_create_inferior): Remove.
7314 (find_default_attach, find_default_create_inferior): Remove.
7315 (find_attach_target, find_run_target): New functions.
7316 (find_default_is_async_p, find_default_can_async_p)
7317 (target_supports_non_stop, target_attach): Remove.
7318 (init_dummy_target): Don't set to_create_inferior or
7319 to_supports_non_stop.
7320 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7321 TARGET_DEFAULT_FUNC.
7322 <to_create_inferior>: Add comment.
7323 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7324 TARGET_DEFAULT_RETURN.
7325 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7326 (find_attach_target, find_run_target): Declare.
7327 (target_create_inferior): Remove.
7328 (target_has_execution_1): Update comment.
7329 (target_supports_non_stop): Remove.
7330 * target-delegates.c: Rebuild.
7331
7332 2014-03-12 Pedro Alves <palves@redhat.com>
7333
7334 * inf-child.h: Update comment to not mention Unix.
7335
7336 2014-03-12 Pedro Alves <palves@redhat.com>
7337
7338 * inf-child.c: Update top comment to not mention Unix. Add
7339 generic comment describing how this target is meant to be used.
7340 (inf_child_post_attach, inf_child_post_startup_inferior)
7341 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7342 Unix in comment.
7343
7344 2014-03-12 Pedro Alves <palves@redhat.com>
7345
7346 * nto-procfs.c: Include inf-child.h.
7347 (procfs_ops): Delete global.
7348 (procfs_can_run): Delete method.
7349 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7350 target pointer instead of referencing procfs_ops.
7351 (procfs_prepare_to_store): Delete.
7352 (init_procfs_ops): Delete function.
7353 (procfs_target): New function, based on init_procfs_ops, but
7354 inherit inf_child_target.
7355 (_initialize_procfs): Use procfs_target.
7356
7357 2014-03-12 Pedro Alves <palves@redhat.com>
7358
7359 * windows-nat.c: Include inf-child.h.
7360 (windows_ops): Delete global.
7361 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7362 methods.
7363 (init_windows_ops): Delete function.
7364 (windows_target): New function, based on init_windows_ops, but
7365 inherit inf_child_target.
7366 (_initialize_windows_nat): Use windows_target. Install x86
7367 specific target methods here.
7368
7369 2014-03-10 Doug Evans <xdje42@gmail.com>
7370
7371 * guile/guile.c (call_initialize_gdb_module): New function.
7372 (initialize_guile): Replace call to scm_init_guile with call to
7373 scm_with_guile.
7374
7375 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7376
7377 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7378 in call to TYPE_CODE macro.
7379
7380 2014-03-10 Jerome Guitton <guitton@adacore.com>
7381
7382 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7383 Resolve tagged types to full view.
7384
7385 2014-03-10 Hui Zhu <hui@codesourcery.com>
7386
7387 * target.h (target_insert_breakpoint): Remove "hardware" from its
7388 comments.
7389
7390 2014-03-07 Doug Evans <dje@google.com>
7391
7392 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7393
7394 2014-03-07 Doug Evans <dje@google.com>
7395
7396 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7397 Remove unused local comp_dir_attr. Assert exactly one of
7398 stub_comp_unit_die, stub_comp_dir is non-NULL.
7399
7400 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7401
7402 * target.h (complete_target_initialization, add_target):
7403 Add comment.
7404
7405 2014-03-07 Pedro Alves <palves@redhat.com>
7406
7407 * go32-nat.c: Include inf-child.h.
7408 (go32_ops): Delete global.
7409 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7410 Delete methods.
7411 (go32_create_inferior): Push the passed in target pointer instead
7412 of referencing go32_ops.
7413 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7414 (go32_target): New function, based on init_go32_ops, but inherit
7415 inf_child_target.
7416 (_initialize_go32_nat): Use go32_target. Move parts of
7417 init_go32_ops here.
7418
7419 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7420
7421 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7422 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7423 SYMBOL_VALUE_ADDRESS.
7424 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7425
7426 2014-03-06 Yao Qi <yao@codesourcery.com>
7427
7428 * breakpoint.c (get_tracepoint_by_number): Remove argument
7429 optional_p. All callers updated. Adjust comments. Update
7430 output message.
7431 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7432
7433 2014-03-06 Yao Qi <yao@codesourcery.com>
7434
7435 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7436 early if get_number returns zero. Use 'p' instead of 'args'.
7437
7438 2014-03-06 Yao Qi <yao@codesourcery.com>
7439
7440 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7441 message.
7442
7443 2014-03-06 Yao Qi <yao@codesourcery.com>
7444
7445 PR breakpoints/16508
7446 * tracepoint.c (check_trace_running): New function.
7447 (trace_find_command): Move code to check_trace_running and
7448 call check_trace_running.
7449 (trace_find_pc_command): Likewise.
7450 (trace_find_tracepoint_command): Likewise.
7451 (trace_find_line_command): Likewise.
7452 (trace_find_range_command): Likewise.
7453 * tracepoint.h (check_trace_running): Likewise.
7454 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7455
7456 2014-03-06 Yao Qi <yao@codesourcery.com>
7457
7458 * target.h (struct target_ops) <to_traceframe_info>: Use
7459 TARGET_DEFAULT_NORETURN (tcomplain ()).
7460 * target-delegates.c: Regenerated.
7461
7462 2014-03-05 Pedro Alves <palves@redhat.com>
7463
7464 PR gdb/16575
7465 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7466 void. Update comment.
7467 (dcache_xfer_memory): Delete.
7468 (dcache_read_memory_partial): New, based on the read bits of
7469 dcache_xfer_memory.
7470 (dcache_update): Add status parameter. Use ULONGEST for len, and
7471 adjust. Discard cache lines if the reason for the update was
7472 error.
7473 * dcache.h (dcache_xfer_memory): Delete declaration.
7474 (dcache_read_memory_partial): New declaration.
7475 (dcache_update): Update prototype.
7476 * target.c (raw_memory_xfer_partial): Update the dcache here.
7477 (memory_xfer_partial_1): Don't handle dcache writes here.
7478
7479 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7480
7481 * remote-sim.c (gdbsim_load): Add const to prog.
7482
7483 2014-03-03 Tom Tromey <tromey@redhat.com>
7484
7485 * elfread.c (probe_key): Change to bfd_data.
7486 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7487 now per-BFD, not per-objfile.
7488 * stap-probe.c (stap_probe_destroy): Update comment.
7489 (handle_stap_probe): Allocate on the per-BFD obstack.
7490
7491 2014-03-03 Tom Tromey <tromey@redhat.com>
7492
7493 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7494 * breakpoint.c (create_longjmp_master_breakpoint): Use
7495 get_probe_address.
7496 (add_location_to_breakpoint, bkpt_probe_insert_location)
7497 (bkpt_probe_remove_location): Update.
7498 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7499 * elfread.c (elf_symfile_relocate_probe): Remove.
7500 (elf_probe_fns): Update.
7501 (insert_exception_resume_breakpoint): Change type of "probe"
7502 parameter to bound_probe.
7503 (check_exception_resume): Update.
7504 * objfiles.c (objfile_relocate1): Don't relocate probes.
7505 * probe.c (bound_probe_s): New typedef.
7506 (parse_probes): Use get_probe_address. Set sal's objfile.
7507 (find_probe_by_pc): Return a bound_probe.
7508 (collect_probes): Return a VEC(bound_probe_s).
7509 (compare_probes): Update.
7510 (gen_ui_out_table_header_info): Change type of "probes"
7511 parameter. Update.
7512 (info_probes_for_ops): Update.
7513 (get_probe_address): New function.
7514 (probe_safe_evaluate_at_pc): Update.
7515 * probe.h (struct probe_ops) <get_probe_address>: New field.
7516 <set_semaphore, clear_semaphore>: Add objfile parameter.
7517 (struct probe) <objfile>: Remove field.
7518 <arch>: New field.
7519 <address>: Update comment.
7520 (struct bound_probe): New.
7521 (find_probe_by_pc): Return a bound_probe.
7522 (get_probe_address): Declare.
7523 * solib-svr4.c (struct probe_and_action) <address>: New field.
7524 (hash_probe_and_action, equal_probe_and_action): Update.
7525 (register_solib_event_probe): Add address parameter.
7526 (solib_event_probe_at): Update.
7527 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7528 get_probe_address.
7529 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7530 (stap_get_probe_address): New function.
7531 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7532 (compile_probe_arg): Update.
7533 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7534 address.
7535 (handle_stap_probe): Don't relocate the probe.
7536 (stap_relocate): Remove.
7537 (stap_gen_info_probes_table_values): Update.
7538 (stap_probe_ops): Remove stap_relocate.
7539 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7540 (debug_sym_probe_fns): Update.
7541 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7542 * symtab.c (init_sal): Use memset.
7543 * symtab.h (struct symtab_and_line) <objfile>: New field.
7544 * tracepoint.c (start_tracing, stop_tracing): Update.
7545
7546 2014-03-03 Tom Tromey <tromey@redhat.com>
7547
7548 * probe.h (parse_probes, find_probe_by_pc)
7549 (find_probes_in_objfile): Fix comments.
7550
7551 2014-03-02 Doug Evans <xdje42@gmail.com>
7552
7553 * infrun.c (handle_signal_stop): Replace test for
7554 TARGET_WAITKIND_STOPPED with an assert.
7555
7556 2014-03-02 Doug Evans <xdje42@gmail.com>
7557
7558 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7559
7560 2014-03-02 Doug Evans <xdje42@gmail.com>
7561
7562 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7563
7564 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7565
7566 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7567
7568 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7569
7570 * i386obsd-nat.c: Include "obsd-nat.h".
7571 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7572 add_target.
7573 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7574
7575 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7576
7577 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7578
7579 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7580
7581 * mips64obsd-nat.c: Include "obsd-nath".
7582 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7583 add_target
7584 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7585
7586 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7587
7588 * amd64obsd-nat.c: Include "obsd-nat,h.
7589 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7590 add_target.
7591 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7592
7593 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7594
7595 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7596 (find_overload_match): Update call to find_oload_champ.
7597 (find_oload_champ_namespace_loop): Likewise
7598
7599 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7600
7601 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7602
7603 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7604 * config/sparc/obsd64.mh: New file.
7605 * sparc64obsd-nat.c: New file.
7606
7607 * obsd-nat.h: New file.
7608 * obsd-nat.c: New file.
7609 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7610 (ALLDEPFILES): Add obsd-nat.c.
7611
7612 2014-02-28 Tom Tromey <tromey@redhat.com>
7613
7614 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7615 * cli-out.h (cli_ui_out_impl): Now const.
7616 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7617 * ui-out.c (struct ui_out) <impl>: Now const.
7618 (default_ui_out_impl): Now const.
7619 (ui_out_new): Make 'impl' parameter const.
7620 * ui-out.h (ui_out_new): Update.
7621
7622 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7623
7624 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7625
7626 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7627
7628 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7629
7630 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7631
7632 Additional PR 8882 fix.
7633 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7634
7635 2014-02-27 Pedro Alves <palves@redhat.com>
7636
7637 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7638 isn't set.
7639
7640 2014-02-27 Pedro Alves <palves@redhat.com>
7641
7642 PR 12702
7643 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7644 * nat/linux-waitpid.c: Include string.h.
7645 (status_to_str): Moved here and made extern.
7646 * nat/linux-waitpid.h (status_to_str): New declaration.
7647
7648 2014-02-27 Hui Zhu <hui@codesourcery.com>
7649
7650 PR 12702
7651 * infrun.c (ptid_match): Move ...
7652 * common/ptid.c (ptid_match): ... here.
7653 * inferior.h (ptid_match): Move ...
7654 * common/ptid.h (ptid_match): ... here.
7655
7656 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7657
7658 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7659 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7660 gdb_target_obs.
7661
7662 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7663
7664 * obsd-tdep.c (obsd_auxv_parse): New function.
7665 (obsd_init_abi): Set auxv_parse.
7666
7667 * gdbarch.sh (auxv_parse): New.
7668 * gdbarch.h: Regenerated.
7669 * gdbarch.c: Regenerated.
7670 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7671
7672 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7673
7674 * guile/scm-value.c (gdbscm_history_append_x): New function.
7675 (value_functions): Add it.
7676
7677 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7678
7679 * dwarf2read.c (attr_value_as_address): New function.
7680 (dwarf2_find_base_address, read_call_site_scope): Use
7681 attr_value_as_address in place of DW_ADDR.
7682 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7683 the low and high addresses. Slight rework of the handling
7684 of the high pc being a constant form, and limit it to
7685 DWARF verson 4 or higher.
7686 (dwarf2_record_block_ranges): Likewise.
7687 (read_partial_die): Likewise.
7688 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7689
7690 2014-02-26 Tom Tromey <tromey@redhat.com>
7691
7692 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7693
7694 2014-02-26 Tom Tromey <tromey@redhat.com>
7695
7696 * elfread.c (elf_read_minimal_symbols): Return early if
7697 minimal symbols have already been read. Add "ei" parameter.
7698 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7699 * minsyms.c (prim_record_minimal_symbol_full): Update.
7700 * objfiles.h (struct objstats) <n_minsyms>: Move...
7701 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7702 * symmisc.c (print_objfile_statistics): Update.
7703
7704 2014-02-26 Tom Tromey <tromey@redhat.com>
7705
7706 * elfread.c (elf_read_minimal_symbols): New function, from
7707 elf_symfile_read.
7708 (elf_symfile_read): Call it.
7709
7710 2014-02-26 Tom Tromey <tromey@redhat.com>
7711
7712 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7713 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7714 (lookup_minimal_symbol_solib_trampoline)
7715 (lookup_minimal_symbol_by_pc_section_1)
7716 (lookup_minimal_symbol_and_objfile): Update.
7717 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7718 Don't allocate a minimal symbol if minsyms have already been read.
7719 (build_minimal_symbol_hash_tables): Update.
7720 (install_minimal_symbols): Do nothing if minsyms already read.
7721 Use the per-BFD obstack.
7722 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7723 * objfiles.c (allocate_objfile): Call
7724 terminate_minimal_symbol_table later.
7725 (have_minimal_symbols): Update.
7726 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7727 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7728 Move from struct objfile.
7729 <minsyms_read>: New field.
7730 (struct objfile) <msymbols, minimal_symbol_count,
7731 msymbol_hash, msymbol_demangled_hash>: Move.
7732 (ALL_OBJFILE_MSYMBOLS): Update.
7733 * symfile.c (read_symbols): Set minsyms_read.
7734 (reread_symbols): Update.
7735 * symmisc.c (dump_objfile, dump_msymbols): Update.
7736
7737 2014-02-26 Tom Tromey <tromey@redhat.com>
7738
7739 * minsyms.c (msymbols_sort): Remove.
7740 * minsyms.h (msymbols_sort): Remove.
7741 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7742 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7743 * elfread.c (elf_symtab_read): Don't add section offsets.
7744 * xcoffread.c (record_minimal_symbol): Don't add section offset
7745 to minimal symbol address.
7746 * somread.c (text_offset, data_offset): Remove.
7747 (som_symtab_read): Don't add section offsets to minimal symbol
7748 addresses.
7749 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7750 Don't add section offsets to minimal symbols.
7751 * coffread.c (coff_symtab_read): Don't add section offsets
7752 to minimal symbol addresses.
7753 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7754 to minimal symbol addresses.
7755 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7756 section offset to minimal symbol addresses.
7757 * mdebugread.c (parse_partial_symbols): Don't add section
7758 offset to minimal symbol addresses.
7759 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7760 offset to minimal symbol addresses.
7761
7762 2014-02-26 Tom Tromey <tromey@redhat.com>
7763
7764 * ada-lang.c (ada_main_name): Update.
7765 (ada_add_standard_exceptions): Update.
7766 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7767 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7768 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7769 * auxv.c (ld_so_xfer_auxv): Update.
7770 * avr-tdep.c (avr_scan_prologue): Update.
7771 * ax-gdb.c (gen_var_ref): Update.
7772 * blockframe.c (get_pc_function_start)
7773 (find_pc_partial_function_gnu_ifunc): Update.
7774 * breakpoint.c (create_overlay_event_breakpoint)
7775 (create_longjmp_master_breakpoint)
7776 (create_std_terminate_master_breakpoint)
7777 (create_exception_master_breakpoint): Update.
7778 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7779 * c-valprint.c (c_val_print): Update.
7780 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7781 * common/agent.c (agent_look_up_symbols): Update.
7782 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7783 * dwarf2loc.c (call_site_to_target_addr): Update.
7784 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7785 * elfread.c (elf_gnu_ifunc_record_cache)
7786 (elf_gnu_ifunc_resolve_by_got): Update.
7787 * findvar.c (default_read_var_value): Update.
7788 * frame.c (inside_main_func): Update.
7789 * frv-tdep.c (frv_frame_this_id): Update.
7790 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7791 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7792 Update.
7793 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7794 (hppa_hpux_find_dummy_bpaddr): Update.
7795 * hppa-tdep.c (hppa_symbol_address): Update.
7796 * infcmd.c (until_next_command): Update.
7797 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7798 Update.
7799 * linespec.c (minsym_found, add_minsym): Update.
7800 * linux-nat.c (get_signo): Update.
7801 * linux-thread-db.c (inferior_has_bug): Update.
7802 * m32c-tdep.c (m32c_return_value)
7803 (m32c_m16c_address_to_pointer): Update.
7804 * m32r-tdep.c (m32r_frame_this_id): Update.
7805 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7806 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7807 * maint.c (maintenance_translate_address): Update.
7808 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7809 (frob_address): New function.
7810 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7811 frob_address. Rename parameter to "pc_in".
7812 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7813 addresses.
7814 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7815 Update.
7816 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7817 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7818 * objc-lang.c (find_objc_msgsend): Update.
7819 * objfiles.c (objfile_relocate1): Update.
7820 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7821 * p-valprint.c (pascal_val_print): Update.
7822 * parse.c (write_exp_msymbol): Update.
7823 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7824 (ppc_elfv2_skip_entrypoint): Update.
7825 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7826 * printcmd.c (build_address_symbolic, msym_info)
7827 (address_info): Update.
7828 * proc-service.c (ps_pglobal_lookup): Update.
7829 * psymtab.c (find_pc_sect_psymtab_closer)
7830 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7831 Change msymbol parameter to bound_minimal_symbol.
7832 * ravenscar-thread.c (get_running_thread_id): Update.
7833 * remote.c (remote_check_symbols): Update.
7834 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7835 address.
7836 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7837 * solib-dsbt.c (lm_base): Update.
7838 * solib-frv.c (lm_base, main_got): Update.
7839 * solib-irix.c (locate_base): Update.
7840 * solib-som.c (som_solib_create_inferior_hook)
7841 (link_map_start): Update.
7842 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7843 * solib-svr4.c (elf_locate_base, enable_break): Update.
7844 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7845 (flush_ea_cache): Update.
7846 * stabsread.c (define_symbol, scan_file_globals): Update.
7847 * stack.c (find_frame_funname): Update.
7848 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7849 (debug_qf_find_pc_sect_symtab): Update.
7850 * symfile.c (simple_read_overlay_table)
7851 (simple_overlay_update): Update.
7852 * symfile.h (struct quick_symbol_functions)
7853 <find_pc_sect_symtab>: Change type of msymbol to
7854 bound_minimal_symbol.
7855 * symmisc.c (dump_msymbols): Update.
7856 * symtab.c (find_pc_sect_symtab_via_partial)
7857 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7858 (search_symbols, print_msymbol_info): Update.
7859 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7860 (MSYMBOL_VALUE_ADDRESS): Redefine.
7861 (BMSYMBOL_VALUE_ADDRESS): New macro.
7862 * tracepoint.c (scope_info): Update.
7863 * tui/tui-disasm.c (tui_find_disassembly_address)
7864 (tui_get_begin_asm_address): Update.
7865 * valops.c (find_function_in_inferior): Update.
7866 * value.c (value_static_field, value_fn_field): Update.
7867
7868 2014-02-26 Tom Tromey <tromey@redhat.com>
7869
7870 * ada-lang.c (ada_update_initial_language): Update.
7871 (ada_main_name, ada_has_this_exception_support): Update.
7872 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7873 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7874 * arm-tdep.c (arm_skip_stub): Update.
7875 * auxv.c (ld_so_xfer_auxv): Update.
7876 * avr-tdep.c (avr_scan_prologue): Update.
7877 * ax-gdb.c (gen_var_ref): Update.
7878 * breakpoint.c (struct breakpoint_objfile_data)
7879 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7880 type to bound_minimal_symbol.
7881 (create_overlay_event_breakpoint)
7882 (create_longjmp_master_breakpoint)
7883 (create_std_terminate_master_breakpoint)
7884 (create_exception_master_breakpoint): Update.
7885 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7886 * c-exp.y (classify_name): Update.
7887 * coffread.c (coff_symfile_read): Update.
7888 * common/agent.c (agent_look_up_symbols): Update.
7889 * d-lang.c (d_main_name): Update.
7890 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7891 * dec-thread.c (enable_dec_thread): Update.
7892 * dwarf2loc.c (call_site_to_target_addr): Update.
7893 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7894 * eval.c (evaluate_subexp_standard): Update.
7895 * findvar.c (struct minsym_lookup_data) <result>: Change type
7896 to bound_minimal_symbol.
7897 <objfile>: Remove.
7898 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7899 * frame.c (inside_main_func): Update.
7900 * frv-tdep.c (frv_frame_this_id): Update.
7901 * gcore.c (call_target_sbrk): Update.
7902 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7903 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7904 Update.
7905 * go-lang.c (go_main_name): Update.
7906 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7907 (hppa_hpux_find_import_stub_for_addr): Update.
7908 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7909 Update. Change return type.
7910 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7911 type.
7912 * jit.c (jit_breakpoint_re_set_internal): Update.
7913 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7914 Update.
7915 * linux-nat.c (get_signo): Update.
7916 * linux-thread-db.c (inferior_has_bug): Update
7917 * m32c-tdep.c (m32c_return_value)
7918 (m32c_m16c_address_to_pointer): Update.
7919 * m32r-tdep.c (m32r_frame_this_id): Update.
7920 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7921 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7922 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7923 lookup_minimal_symbol. Change return type.
7924 (lookup_minimal_symbol): Remove.
7925 (lookup_bound_minimal_symbol): Update.
7926 (lookup_minimal_symbol_text): Change return type.
7927 (lookup_minimal_symbol_solib_trampoline): Change return type.
7928 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7929 (lookup_minimal_symbol_solib_trampoline): Change return type.
7930 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7931 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7932 (value_nsstring, find_imps): Update.
7933 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7934 * p-lang.c (pascal_main_name): Update.
7935 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7936 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7937 * proc-service.c (ps_pglobal_lookup): Update.
7938 * ravenscar-thread.c (get_running_thread_msymbol): Change
7939 return type.
7940 (has_ravenscar_runtime, get_running_thread_id): Update.
7941 * remote.c (remote_check_symbols): Update.
7942 * sol-thread.c (ps_pglobal_lookup): Update.
7943 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7944 * solib-dsbt.c (lm_base): Update.
7945 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7946 Update.
7947 * solib-irix.c (locate_base): Update.
7948 * solib-som.c (som_solib_create_inferior_hook)
7949 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7950 Update.
7951 * solib-spu.c (spu_enable_break): Update.
7952 * solib-svr4.c (elf_locate_base, enable_break): Update.
7953 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7954 (flush_ea_cache): Update.
7955 * stabsread.c (define_symbol): Update.
7956 * symfile.c (simple_read_overlay_table): Update.
7957 * symtab.c (find_pc_sect_line): Update.
7958 * tracepoint.c (scope_info): Update.
7959 * tui-disasm.c (tui_get_begin_asm_address): Update.
7960 * value.c (value_static_field): Update.
7961
7962 2014-02-26 Tom Tromey <tromey@redhat.com>
7963
7964 * minsyms.c (prim_record_minimal_symbol_full): Use
7965 SET_MSYMBOL_VALUE_ADDRESS.
7966 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7967 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7968 SET_MSYMBOL_VALUE_ADDRESS.
7969 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7970 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7971
7972 2014-02-26 Tom Tromey <tromey@redhat.com>
7973
7974 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7975 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7976 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7977 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7978 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7979 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7980 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7981 * ada-lang.c (ada_main_name): Update.
7982 (ada_lookup_simple_minsym): Update.
7983 (ada_make_symbol_completion_list): Update.
7984 (ada_add_standard_exceptions): Update.
7985 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7986 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7987 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7988 * arm-tdep.c (skip_prologue_function): Update.
7989 (arm_skip_stack_protector, arm_skip_stub): Update.
7990 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7991 (arm_wince_skip_main_prologue): Update.
7992 * auxv.c (ld_so_xfer_auxv): Update.
7993 * avr-tdep.c (avr_scan_prologue): Update.
7994 * ax-gdb.c (gen_var_ref): Update.
7995 * block.c (call_site_for_pc): Update.
7996 * blockframe.c (get_pc_function_start): Update.
7997 (find_pc_partial_function_gnu_ifunc): Update.
7998 * breakpoint.c (create_overlay_event_breakpoint): Update.
7999 (create_longjmp_master_breakpoint): Update.
8000 (create_std_terminate_master_breakpoint): Update.
8001 (create_exception_master_breakpoint): Update.
8002 (resolve_sal_pc): Update.
8003 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8004 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8005 Update.
8006 * c-valprint.c (c_val_print): Update.
8007 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8008 * coffread.c (coff_symfile_read): Update.
8009 * common/agent.c (agent_look_up_symbols): Update.
8010 * dbxread.c (find_stab_function_addr): Update.
8011 (end_psymtab): Update.
8012 * dwarf2loc.c (call_site_to_target_addr): Update.
8013 (func_verify_no_selftailcall): Update.
8014 (tailcall_dump): Update.
8015 (call_site_find_chain_1): Update.
8016 (dwarf_expr_reg_to_entry_parameter): Update.
8017 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8018 (elf_gnu_ifunc_resolve_by_got): Update.
8019 * f-valprint.c (info_common_command): Update.
8020 * findvar.c (read_var_value): Update.
8021 * frame.c (get_prev_frame_1): Update.
8022 (inside_main_func): Update.
8023 * frv-tdep.c (frv_skip_main_prologue): Update.
8024 (frv_frame_this_id): Update.
8025 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8026 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8027 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8028 (gnuv3_skip_trampoline): Update.
8029 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8030 (hppa64_hpux_in_solib_call_trampoline): Update.
8031 (hppa_hpux_skip_trampoline_code): Update.
8032 (hppa64_hpux_search_dummy_call_sequence): Update.
8033 (hppa_hpux_find_import_stub_for_addr): Update.
8034 (hppa_hpux_find_dummy_bpaddr): Update.
8035 * hppa-tdep.c (hppa_symbol_address)
8036 (hppa_lookup_stub_minimal_symbol): Update.
8037 * i386-tdep.c (i386_skip_main_prologue): Update.
8038 (i386_pe_skip_trampoline_code): Update.
8039 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8040 * infcall.c (get_function_name): Update.
8041 * infcmd.c (until_next_command): Update.
8042 * jit.c (jit_breakpoint_re_set_internal): Update.
8043 (jit_inferior_init): Update.
8044 * linespec.c (minsym_found): Update.
8045 (add_minsym): Update.
8046 * linux-fork.c (info_checkpoints_command): Update.
8047 * linux-nat.c (get_signo): Update.
8048 * linux-thread-db.c (inferior_has_bug): Update.
8049 * m32c-tdep.c (m32c_return_value): Update.
8050 (m32c_m16c_address_to_pointer): Update.
8051 (m32c_m16c_pointer_to_address): Update.
8052 * m32r-tdep.c (m32r_frame_this_id): Update.
8053 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8054 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8055 * maint.c (maintenance_translate_address): Update.
8056 * minsyms.c (add_minsym_to_hash_table): Update.
8057 (add_minsym_to_demangled_hash_table): Update.
8058 (msymbol_objfile): Update.
8059 (lookup_minimal_symbol): Update.
8060 (iterate_over_minimal_symbols): Update.
8061 (lookup_minimal_symbol_text): Update.
8062 (lookup_minimal_symbol_by_pc_name): Update.
8063 (lookup_minimal_symbol_solib_trampoline): Update.
8064 (lookup_minimal_symbol_by_pc_section_1): Update.
8065 (lookup_minimal_symbol_and_objfile): Update.
8066 (prim_record_minimal_symbol_full): Update.
8067 (compare_minimal_symbols): Update.
8068 (compact_minimal_symbols): Update.
8069 (build_minimal_symbol_hash_tables): Update.
8070 (install_minimal_symbols): Update.
8071 (terminate_minimal_symbol_table): Update.
8072 (find_solib_trampoline_target): Update.
8073 (minimal_symbol_upper_bound): Update.
8074 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8075 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8076 (mips_skip_pic_trampoline_code): Update.
8077 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8078 * objc-lang.c (selectors_info): Update.
8079 (classes_info): Update.
8080 (find_methods): Update.
8081 (find_imps): Update.
8082 (find_objc_msgsend): Update.
8083 * objfiles.c (objfile_relocate1): Update.
8084 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8085 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8086 * p-valprint.c (pascal_val_print): Update.
8087 * parse.c (write_exp_msymbol): Update.
8088 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8089 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8090 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8091 * printcmd.c (build_address_symbolic): Update.
8092 (sym_info): Update.
8093 (address_info): Update.
8094 * proc-service.c (ps_pglobal_lookup): Update.
8095 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8096 (find_pc_sect_psymtab): Update.
8097 * python/py-framefilter.c (py_print_frame): Update.
8098 * ravenscar-thread.c (get_running_thread_id): Update.
8099 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8100 Update.
8101 * remote.c (remote_check_symbols): Update.
8102 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8103 (rs6000_skip_trampoline_code): Update.
8104 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8105 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8106 * solib-dsbt.c (lm_base): Update.
8107 * solib-frv.c (lm_base): Update.
8108 (main_got): Update.
8109 * solib-irix.c (locate_base): Update.
8110 * solib-som.c (som_solib_create_inferior_hook): Update.
8111 (som_solib_desire_dynamic_linker_symbols): Update.
8112 (link_map_start): Update.
8113 * solib-spu.c (spu_enable_break): Update.
8114 (ocl_enable_break): Update.
8115 * solib-svr4.c (elf_locate_base): Update.
8116 (enable_break): Update.
8117 * spu-tdep.c (spu_get_overlay_table): Update.
8118 (spu_catch_start): Update.
8119 (flush_ea_cache): Update.
8120 * stabsread.c (define_symbol): Update.
8121 (scan_file_globals): Update.
8122 * stack.c (find_frame_funname): Update.
8123 (frame_info): Update.
8124 * symfile.c (simple_read_overlay_table): Update.
8125 (simple_overlay_update): Update.
8126 * symmisc.c (dump_msymbols): Update.
8127 * symtab.c (fixup_section): Update.
8128 (find_pc_sect_line): Update.
8129 (skip_prologue_sal): Update.
8130 (search_symbols): Update.
8131 (print_msymbol_info): Update.
8132 (rbreak_command): Update.
8133 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8134 (completion_list_objc_symbol): Update.
8135 (default_make_symbol_completion_list_break_on): Update.
8136 * tracepoint.c (scope_info): Update.
8137 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8138 (tui_get_begin_asm_address): Update.
8139 * valops.c (find_function_in_inferior): Update.
8140 * value.c (value_static_field): Update.
8141 (value_fn_field): Update.
8142
8143 2014-02-26 Tom Tromey <tromey@redhat.com>
8144
8145 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8146 bound minimal symbols. Move code that knows about minsym
8147 table layout...
8148 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8149 function.
8150 * minsyms.h (minimal_symbol_upper_bound): Declare.
8151 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8152 minimal_symbol_upper_bound.
8153
8154 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8155
8156 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8157 Use the type's name if its basic type does not have a tag.
8158
8159 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8160
8161 * dwarf2read.c (read_subrange_type): Add comment.
8162
8163 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8164
8165 * dwarf2read.c (update_enumeration_type_from_children): New
8166 function, mostly extracted from process_structure_scope.
8167 (read_enumeration_type): Call update_enumeration_type_from_children.
8168 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8169 and flag_flag_enum fields.
8170
8171 2014-02-26 Pedro Alves <palves@redhat.com>
8172
8173 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8174 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8175 to_xfer_partial method.
8176
8177 2014-02-26 Pedro Alves <palves@redhat.com>
8178
8179 * target.c (complete_target_initialization): Don't install
8180 default_xfer_partial as to_xfer_partial hook.
8181 (nomemory): Delete.
8182 (update_current_target): Don't INHERIT nor de_fault
8183 deprecated_xfer_memory. Delete de_fault macro.
8184 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8185 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8186 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8187 field.
8188
8189 2014-02-26 Pedro Alves <palves@redhat.com>
8190
8191 * go32-nat.c (my_write_child): New function.
8192 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8193 (go32_xfer_partial): New function.
8194 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8195 Instead install a to_xfer_partial hook.
8196
8197 2014-02-26 Pedro Alves <palves@redhat.com>
8198
8199 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8200 to_xfer_partial helper. Rewrite.
8201 (procfs_xfer_partial): New function.
8202 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8203 Install a to_xfer_partial hook.
8204
8205 2014-02-26 Pedro Alves <palves@redhat.com>
8206
8207 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8208 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8209 (m32r_xfer_partial): New function.
8210 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8211 Install a to_xfer_partial hook.
8212
8213 2014-02-26 Pedro Alves <palves@redhat.com>
8214
8215 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8216 helper.
8217 (mips_xfer_partial): New function.
8218 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8219 hook. Install a to_xfer_partial hook.
8220
8221 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8222
8223 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8224 * gdbtypes.c (create_array_type_with_stride): New function,
8225 renaming create_array_type, but with an added parameter
8226 called "bit_stride".
8227 (create_array_type): Re-implement using
8228 create_array_type_with_stride.
8229 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8230 and DW_AT_bit_stride attributes.
8231
8232 2014-02-26 Pedro Alves <palves@redhat.com>
8233
8234 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8235 task-specific breakpoints.
8236
8237 2014-02-25 Pedro Alves <palves@redhat.com>
8238
8239 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8240 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8241
8242 2014-02-25 Stan Shebs <stan@codesourcery.com>
8243
8244 * defs.h: Annotate comments for Doxygen.
8245
8246 2014-02-25 Tom Tromey <tromey@redhat.com>
8247
8248 * target.h (target_ignore): Don't declare.
8249 * target.c (target_ignore): Remove.
8250
8251 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8252
8253 PR gdb/16626
8254 * auto-load.c (auto_load_objfile_script_1): Change filename to
8255 debugfile.
8256
8257 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8258
8259 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8260 documentation. Adjust prototype to match the target_ops
8261 to_xfer_partial method. Adjust implementation accordingly.
8262
8263 2014-02-25 Hui Zhu <hui@codesourcery.com>
8264
8265 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8266 to_traceframe_info.
8267
8268 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8269
8270 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8271 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8272 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8273 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8274 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8275 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8276 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8277 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8278 New constants.
8279 (rl78_register_type): Use a data pointer type for SP and
8280 new pseudo registers mentioned above. Use a 16 bit integer
8281 type for all other register pairs.
8282 (rl78_register_name, rl78_g10_register_name): Update for
8283 new pseudo registers.
8284 (rl78_pseudo_register_read): Likewise.
8285 (rl78_pseudo_register_write): Likewise.
8286 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8287 to the newly added pseudo registers.
8288
8289 2014-02-24 Doug Evans <dje@google.com>
8290
8291 * value.c (record_latest_value): Fix comment.
8292 * printcmd.c (print_command_1): Remove code to handle -1 return from
8293 record_latest_value.
8294
8295 2014-02-24 Pedro Alves <palves@redhat.com>
8296
8297 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8298 deprecated_xfer_memory hook.
8299 (procfs_xfer_partial): Call procfs_xfer_memory instead
8300 of the deprecated_xfer_memory target hook.
8301 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8302 helper.
8303
8304 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8305
8306 * windows-nat.c (windows_xfer_shared_libraries): Return
8307 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8308 requested object is TARGET_OBJECT_LIBRARIES.
8309
8310 2014-02-24 Yao Qi <yao@codesourcery.com>
8311
8312 * target.h (enum target_xfer_status)
8313 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8314 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8315 explicitly. New.
8316 * corefile.c (memory_error_message): User updated.
8317 * exec.c (section_table_read_available_memory): Likewise.
8318 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8319 * target.c (target_xfer_status_to_string): Likewise.
8320 (raw_memory_xfer_partial): Likewise.
8321 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8322 * valops.c (read_value_memory): Likewise.
8323 * exec.h: Update comments.
8324
8325 2014-02-24 Yao Qi <yao@codesourcery.com>
8326
8327 * target.c (target_xfer_status_to_string): Rename argument err
8328 to status.
8329 * target.h (target_xfer_status_to_string): Update declaration.
8330 Replace target_xfer_error_to_string with
8331 target_xfer_status_to_string in comment.
8332
8333 2014-02-24 Yao Qi <yao@codesourcery.com>
8334
8335 * mips-linux-nat.c (super_close): Update its type.
8336 (mips_linux_close): Pass 'self' to super_close.
8337
8338 2014-02-24 Yao Qi <yao@codesourcery.com>
8339
8340 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8341 * corefile.c (read_memory): Adjusted.
8342 * target.c (target_write_with_progress): Adjusted.
8343
8344 2014-02-23 Yao Qi <yao@codesourcery.com>
8345
8346 Revert two patches:
8347
8348 2013-10-25 Yao Qi <yao@codesourcery.com>
8349
8350 * remote.c (remote_traceframe_info): Return early if
8351 traceframe is not selected.
8352
8353 2013-07-19 Yao Qi <yao@codesourcery.com>
8354
8355 * target.c (update_current_target): Change the default action
8356 of 'to_traceframe_info' from tcomplain to return_zero.
8357 * target.h (struct target_ops) <to_traceframe_info>: Add more
8358 comments.
8359
8360 2014-02-23 Yao Qi <yao@codesourcery.com>
8361
8362 * valops.c (read_value_memory): Rewrite it. Call
8363 target_xfer_partial in a loop.
8364 * exec.h (section_table_available_memory): Remove declaration.
8365 Move comments to ...
8366 * exec.c (section_table_available_memory): ... here. Make it
8367 static.
8368
8369 2014-02-23 Yao Qi <yao@codesourcery.com>
8370
8371 * exec.c (section_table_read_available_memory): New function.
8372 * exec.h (section_table_read_available_memory): Declare.
8373 * ctf.c (ctf_xfer_partial): Call
8374 section_table_read_available_memory.
8375 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8376
8377 2014-02-23 Yao Qi <yao@codesourcery.com>
8378
8379 * ctf.c (ctf_xfer_partial): Move code to ...
8380 * exec.c (exec_read_partial_read_only): ... it. New function.
8381 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8382 * tracefile.c: Include "exec.h".
8383 * exec.h (exec_read_partial_read_only): Declare.
8384
8385 2014-02-23 Yao Qi <yao@codesourcery.com>
8386
8387 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8388 (tfile_has_memory): Remove.
8389 (init_tfile_ops): Don't set fields to_has_all_memory and
8390 to_has_memory of tfile_ops.
8391 * tracefile.c (tracefile_has_all_memory): New function.
8392 (tracefile_has_memory): New function.
8393 (init_tracefile_ops): Initialize fields to_has_all_memory and
8394 to_has_memory of 'ops'.
8395
8396 2014-02-23 Yao Qi <yao@codesourcery.com>
8397
8398 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8399 (ctf_thread_alive, ctf_get_trace_status): Remove.
8400 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8401 init_tracefile_ops.
8402 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8403 (tfile_has_stack, tfile_has_registers): Remove.
8404 (tfile_thread_alive): Remove.
8405 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8406 init_tracefile_ops.
8407 * tracefile.c (tracefile_has_stack): New function.
8408 (tracefile_has_registers): New function.
8409 (tracefile_thread_alive): New function.
8410 (tracefile_get_trace_status): New function.
8411 (init_tracefile_ops): New function.
8412 * tracefile.h (init_tracefile_ops): Declare.
8413
8414 2014-02-23 Yao Qi <yao@codesourcery.com>
8415
8416 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8417 (O_LARGEFILE): Likewise.
8418 (tfile_ops): Likewise.
8419 (TRACE_HEADER_SIZE): Likewise.
8420 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8421 (cur_data_size): Likewise.
8422 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8423 (tfile_close, tfile_files_info): Likewise.
8424 (tfile_get_trace_status): Likewise.
8425 (tfile_get_tracepoint_status): Likewise.
8426 (tfile_get_traceframe_address): Likewise.
8427 (tfile_trace_find, match_blocktype): Likewise.
8428 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8429 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8430 (tfile_get_trace_state_variable_value): Likewise.
8431 (tfile_has_all_memory, tfile_has_memory): Likewise.
8432 (tfile_has_stack, tfile_has_registers): Likewise.
8433 (tfile_thread_alive, build_traceframe_info): Likewise.
8434 (tfile_traceframe_info, init_tfile_ops): Likewise.
8435 (_initialize_tracepoint): Don't call init_tfile_ops
8436 and add_target_with_completer.
8437 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8438 exec.h, completer.h and filenames.h.
8439 (_initialize_tracefile_tfile): New function.
8440
8441 2014-02-23 Yao Qi <yao@codesourcery.com>
8442
8443 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8444 tracefile-tfile.o.
8445 (HFILES_NO_SRCDIR): Add tracefile.h.
8446 * ctf.c: Include "tracefile.h".
8447 * tracefile.h: New file.
8448 * tracefile.c: New file
8449 * tracefile-tfile.c: New file.
8450 * tracepoint.c: Include "tracefile.h".
8451 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8452 (stop_reason_names): Add const.
8453 (trace_file_writer_xfree): Move it to tracefile.c.
8454 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8455 (trace_save_ctf): Likewise.
8456 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8457 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8458 (tfile_write_header, tfile_write_regblock_type): Likewise.
8459 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8460 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8461 (tfile_write_raw_data, tfile_end): Likewise.
8462 (tfile_trace_file_writer_new): Likewise.
8463 (free_uploaded_tp): Make it extern.
8464 (free_uploaded_tsv): Make it extern.
8465 (_initialize_tracepoint): Move code to register command 'tsave'
8466 to tracefile.c.
8467 * tracepoint.h (stop_reason_names): Declare.
8468 (struct trace_frame_write_ops): Move it to tracefile.h.
8469 (struct trace_file_write_ops): Likewise.
8470 (struct trace_file_writer): Likewise.
8471 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8472
8473 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8474
8475 PR gdb/16594
8476 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8477 process name.
8478 (get_cores_used_by_process): New parameter num_cores, use it.
8479 (linux_xfer_osdata_processes): Pass num_cores to it.
8480 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8481 process name.
8482
8483 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8484
8485 * target.c (memory_xfer_partial): Fix length arg in call to
8486 breakpoint_xfer_memory.
8487
8488 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8489
8490 PR tdep/16397
8491 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8492 number comes after the + or - signs. Adjust length of register
8493 name to be extracted.
8494
8495 2014-02-20 Tom Tromey <tromey@redhat.com>
8496
8497 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8498 (ada_varobj_ops): Mark "extern".
8499
8500 2014-02-20 Tom Tromey <tromey@redhat.com>
8501
8502 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8503
8504 2014-02-20 Doug Evans <xdje42@gmail.com>
8505
8506 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8507 All callers updated.
8508 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8509 All callers updated.
8510 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8511 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8512
8513 2014-02-20 lin zuojian <manjian2006@gmail.com>
8514 Joel Brobecker <brobecker@adacore.com>
8515 Doug Evans <xdje42@gmail.com>
8516
8517 PR symtab/16581
8518 * dwarf2read.c (struct die_info): New member in_process.
8519 (reset_die_in_process): New function.
8520 (process_die): Set it at the start, reset when returning.
8521 (inherit_abstract_dies): Only call process_die if origin_child_die
8522 not already being processed.
8523
8524 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8525
8526 * windows-nat.c (handle_unload_dll): Add function documentation.
8527 (do_initial_windows_stuff): Add comment explaining why we wait
8528 until after inferior initialization has finished before
8529 processing all DLLs.
8530
8531 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8532
8533 * windows-nat.c (get_module_name): Delete.
8534 (windows_get_exec_module_filename): New function, mostly
8535 inspired from get_module_name.
8536 (windows_pid_to_exec_file): Replace call to get_module_name
8537 by call to windows_get_exec_module_filename.
8538
8539 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8540
8541 * windows-nat.c (handle_load_dll): Rewrite this function's
8542 introductory comment. Remove code using get_module_name
8543 to get the DLL's name.
8544
8545 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8546
8547 * windows-nat.c (get_windows_debug_event): Ignore
8548 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8549 if windows_initialization_done == 0.
8550 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8551 Adjust implementation to always load all DLLs.
8552 (do_initial_windows_stuff): Replace call to
8553 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8554
8555 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8556
8557 * windows-nat.c (_initialize_windows_nat): Deprecate the
8558 "dll-symbols" command. Turn the "add-shared-symbol-files"
8559 and "assf" aliases into commands, and deprecate them as well.
8560 * NEWS: Add entry explaining that "dll-symbols" and its two
8561 aliases are now deprecated.
8562
8563 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8564
8565 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8566 new-line in debug string. Remove trailing spaces.
8567
8568 2014-02-19 Stan Shebs <stan@codesourcery.com>
8569
8570 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8571
8572 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8573
8574 * NEWS: Add entry for the new feature
8575 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8576 and class values.
8577
8578 2014-02-19 Stan Shebs <stan@codesourcery.com>
8579
8580 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8581
8582 2014-02-19 Pedro Alves <palves@redhat.com>
8583
8584 * common/ptid.h (struct ptid): Mention that process_stratum
8585 targets should prefer ptid.lwp.
8586
8587 2014-02-19 Pedro Alves <palves@redhat.com>
8588
8589 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8590 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8591 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8592 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8593 store remote thread ids rather than ptid.tid.
8594 (_initialize_remote): Adjust.
8595
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target.c (target_get_unwinder): Rewrite.
8599 (target_get_tailcall_unwinder): Rewrite.
8600 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8601 (record_btrace_to_get_tailcall_unwinder): New function.
8602 (init_record_btrace_ops): Update.
8603 * target.h (struct target_ops) <to_get_unwinder,
8604 to_get_tailcall_unwinder>: Now function pointers. Use
8605 TARGET_DEFAULT_RETURN.
8606
8607 2014-02-19 Tom Tromey <tromey@redhat.com>
8608
8609 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8610 argument.
8611 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8612
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8616 directly.
8617 * target-delegates.c: Rebuild.
8618 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8619 TARGET_DEFAULT_FUNC.
8620 * target.c (default_target_decr_pc_after_break): Rename from
8621 forward_target_decr_pc_after_break. Simplify.
8622 (target_decr_pc_after_break): Rely on delegation.
8623
8624 2014-02-19 Tom Tromey <tromey@redhat.com>
8625
8626 * target.c (update_current_target): Do not INHERIT to_doc or
8627 to_magic. Do not de_fault to_open or to_close.
8628
8629 2014-02-19 Tom Tromey <tromey@redhat.com>
8630
8631 * gcore.h (objfile_find_memory_regions): Declare.
8632 * gcore.c (objfile_find_memory_regions): No longer static. Add
8633 "self" argument.
8634 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8635 * exec.c: Include gcore.h.
8636 (exec_set_find_memory_regions): Remove.
8637 (exec_find_memory_regions): Remove.
8638 (exec_do_find_memory_regions): Remove.
8639 (init_exec_ops): Update.
8640 * defs.h (exec_set_find_memory_regions): Remove.
8641
8642 2014-02-19 Tom Tromey <tromey@redhat.com>
8643
8644 * target-delegates.c: Rebuild.
8645 * target.h (struct target_ops) <to_extra_thread_info,
8646 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8647 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8648 not 0, in TARGET_DEFAULT_RETURN.
8649
8650 2014-02-19 Tom Tromey <tromey@redhat.com>
8651
8652 * target.c (complete_target_initialization): Remove casts. Use
8653 return_zero_has_execution.
8654 (return_zero): Add "ignore" argument.
8655 (return_zero_has_execution): New function.
8656 (init_dummy_target): Remove casts. Use
8657 return_zero_has_execution.
8658
8659 2014-02-19 Tom Tromey <tromey@redhat.com>
8660
8661 * target.c (update_current_target): Update comments. Do not
8662 INHERIT to_stratum.
8663
8664 2014-02-19 Tom Tromey <tromey@redhat.com>
8665
8666 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8667 needed.
8668 * corelow.c (core_read_description): Delegate when needed.
8669 * remote.c (remote_read_description): Delegate when needed.
8670 * target-delegates.c: Rebuild.
8671 * target.c (target_read_description): Rewrite.
8672 * target.h (struct target_ops) <to_read_description>: Update
8673 comment. Use TARGET_DEFAULT_RETURN.
8674
8675 2014-02-19 Tom Tromey <tromey@redhat.com>
8676
8677 * target-delegates.c: Rebuild.
8678 * target.c (update_current_target): Don't inherit or default
8679 to_can_run.
8680 (find_default_run_target): Check against delegate_can_run.
8681 * target.h (struct target_ops) <to_can_run>: Use
8682 TARGET_DEFAULT_RETURN.
8683
8684 2014-02-19 Tom Tromey <tromey@redhat.com>
8685
8686 * target-delegates.c: Rebuild.
8687 * target.c (target_disconnect): Unconditionally delegate.
8688 * target.h (struct target_ops) <to_disconnect>: Use
8689 TARGET_DEFAULT_NORETURN.
8690
8691 2014-02-19 Tom Tromey <tromey@redhat.com>
8692
8693 * record.c (record_stop): Unconditionally delegate.
8694 * target-delegates.c: Rebuild.
8695 * target.c (target_stop_recording): Unconditionally delegate.
8696 * target.h (struct target_ops) <to_stop_recording>: Use
8697 TARGET_DEFAULT_IGNORE.
8698
8699 2014-02-19 Tom Tromey <tromey@redhat.com>
8700
8701 * target-delegates.c: Rebuild.
8702 * target.c (target_enable_btrace): Unconditionally delegate.
8703 * target.h (struct target_ops) <to_enable_btrace>: Use
8704 TARGET_DEFAULT_NORETURN.
8705
8706 2014-02-19 Tom Tromey <tromey@redhat.com>
8707
8708 * target-delegates.c: Rebuild.
8709 * target.c (target_read_btrace): Unconditionally delegate.
8710 * target.h (struct target_ops) <to_read_btrace>: Use
8711 TARGET_DEFAULT_NORETURN.
8712
8713 2014-02-19 Tom Tromey <tromey@redhat.com>
8714
8715 * target-delegates.c: Rebuild.
8716 * target.c (target_teardown_btrace): Unconditionally delegate.
8717 * target.h (struct target_ops) <to_teardown_btrace>: Use
8718 TARGET_DEFAULT_NORETURN.
8719
8720 2014-02-19 Tom Tromey <tromey@redhat.com>
8721
8722 * target-delegates.c: Rebuild.
8723 * target.c (target_disable_btrace): Unconditionally delegate.
8724 * target.h (struct target_ops) <to_disable_btrace>: Use
8725 TARGET_DEFAULT_NORETURN.
8726
8727 2014-02-19 Tom Tromey <tromey@redhat.com>
8728
8729 * target-delegates.c: Rebuild.
8730 * target.c (default_search_memory): New function.
8731 (simple_search_memory): Update comment.
8732 (target_search_memory): Unconditionally delegate.
8733 * target.h (struct target_ops) <to_search_memory>: Use
8734 TARGET_DEFAULT_FUNC.
8735
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8737
8738 * auxv.c (default_auxv_parse): No longer static.
8739 (target_auxv_parse): Unconditionally delegate.
8740 * auxv.h (default_auxv_parse): Declare.
8741 * target-delegates.c: Rebuild.
8742 * target.c: Include auxv.h.
8743 * target.h (struct target_ops) <to_auxv_parse>: Use
8744 TARGET_DEFAULT_FUNC.
8745
8746 2014-02-19 Tom Tromey <tromey@redhat.com>
8747
8748 * target-delegates.c: Rebuild.
8749 * target.c (target_memory_map): Unconditionally delegate.
8750 * target.h (struct target_ops) <to_memory_map>: Use
8751 TARGET_DEFAULT_RETURN.
8752
8753 2014-02-19 Tom Tromey <tromey@redhat.com>
8754
8755 * target-delegates.c: Rebuild.
8756 * target.c (target_thread_alive): Unconditionally delegate.
8757 * target.h (struct target_ops) <to_thread_alive>: Use
8758 TARGET_DEFAULT_RETURN.
8759
8760 2014-02-19 Tom Tromey <tromey@redhat.com>
8761
8762 * target-delegates.c: Rebuild.
8763 * target.c (target_save_record): Unconditionally delegate.
8764 * target.h (struct target_ops) <to_save_record>: Use
8765 TARGET_DEFAULT_NORETURN.
8766
8767 2014-02-19 Tom Tromey <tromey@redhat.com>
8768
8769 * target-delegates.c: Rebuild.
8770 * target.c (target_delete_record): Unconditionally delegate.
8771 * target.h (struct target_ops) <to_delete_record>: Use
8772 TARGET_DEFAULT_NORETURN.
8773
8774 2014-02-19 Tom Tromey <tromey@redhat.com>
8775
8776 * target-delegates.c: Rebuild.
8777 * target.c (target_record_is_replaying): Unconditionally
8778 delegate.
8779 * target.h (struct target_ops) <to_record_is_replaying>: Use
8780 TARGET_DEFAULT_RETURN.
8781
8782 2014-02-19 Tom Tromey <tromey@redhat.com>
8783
8784 * target-delegates.c: Rebuild.
8785 * target.c (target_goto_record_begin): Unconditionally delegate.
8786 * target.h (struct target_ops) <to_goto_record_begin>: Use
8787 TARGET_DEFAULT_NORETURN.
8788
8789 2014-02-19 Tom Tromey <tromey@redhat.com>
8790
8791 * target-delegates.c: Rebuild.
8792 * target.c (target_goto_record_end): Unconditionally delegate.
8793 * target.h (struct target_ops) <to_goto_record_end>: Use
8794 TARGET_DEFAULT_NORETURN.
8795
8796 2014-02-19 Tom Tromey <tromey@redhat.com>
8797
8798 * target-delegates.c: Rebuild.
8799 * target.c (target_goto_record): Unconditionally delegate.
8800 * target.h (struct target_ops) <to_goto_record>: Use
8801 TARGET_DEFAULT_NORETURN.
8802
8803 2014-02-19 Tom Tromey <tromey@redhat.com>
8804
8805 * target-delegates.c: Rebuild.
8806 * target.c (target_insn_history): Unconditionally delegate.
8807 * target.h (struct target_ops) <to_insn_history>: Use
8808 TARGET_DEFAULT_NORETURN.
8809
8810 2014-02-19 Tom Tromey <tromey@redhat.com>
8811
8812 * target-delegates.c: Rebuild.
8813 * target.c (target_insn_history_from): Unconditionally delegate.
8814 * target.h (struct target_ops) <to_insn_history_from>: Use
8815 TARGET_DEFAULT_NORETURN.
8816
8817 2014-02-19 Tom Tromey <tromey@redhat.com>
8818
8819 * target-delegates.c: Rebuild.
8820 * target.c (target_insn_history_range): Unconditionally delegate.
8821 * target.h (struct target_ops) <to_insn_history_range>: Use
8822 TARGET_DEFAULT_NORETURN.
8823
8824 2014-02-19 Tom Tromey <tromey@redhat.com>
8825
8826 * target-delegates.c: Rebuild.
8827 * target.c (target_call_history): Unconditionally delegate.
8828 * target.h (struct target_ops) <to_call_history>: Use
8829 TARGET_DEFAULT_NORETURN.
8830
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * target-delegates.c: Rebuild.
8834 * target.c (target_call_history_from): Unconditionally delegate.
8835 * target.h (struct target_ops) <to_call_history_from>: Use
8836 TARGET_DEFAULT_NORETURN.
8837
8838 2014-02-19 Tom Tromey <tromey@redhat.com>
8839
8840 * target-delegates.c: Rebuild.
8841 * target.c (target_call_history_range): Unconditionally delegate.
8842 * target.h (struct target_ops) <to_call_history_range>: Use
8843 TARGET_DEFAULT_NORETURN.
8844
8845 2014-02-19 Tom Tromey <tromey@redhat.com>
8846
8847 * target-delegates.c: Rebuild.
8848 * target.c (target_verify_memory): Unconditionally delegate.
8849 * target.h (struct target_ops) <to_verify_memory>: Use
8850 TARGET_DEFAULT_NORETURN.
8851
8852 2014-02-19 Tom Tromey <tromey@redhat.com>
8853
8854 * target-delegates.c: Rebuild.
8855 * target.c (target_core_of_thread): Unconditionally delegate.
8856 * target.h (struct target_ops) <to_core_of_thread>: Use
8857 TARGET_DEFAULT_RETURN.
8858
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8860
8861 * target-delegates.c: Rebuild.
8862 * target.c (target_flash_done): Unconditionally delegate.
8863 * target.h (struct target_ops) <to_flash_done>: 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_flash_erase): Unconditionally delegate.
8870 * target.h (struct target_ops) <to_flash_erase>: Use
8871 TARGET_DEFAULT_NORETURN.
8872
8873 2014-02-19 Tom Tromey <tromey@redhat.com>
8874
8875 * target-delegates.c: Rebuild.
8876 * target.c (target_get_section_table): Unconditionally delegate.
8877 * target.h (struct target_ops) <to_get_section_table>: Use
8878 TARGET_DEFAULT_RETURN.
8879
8880 2014-02-19 Tom Tromey <tromey@redhat.com>
8881
8882 * target-delegates.c: Rebuild.
8883 * target.c (target_pid_to_str): Unconditionally delegate.
8884 (init_dummy_target): Don't initialize to_pid_to_str.
8885 (default_pid_to_str): Rename from dummy_pid_to_str.
8886 * target.h (struct target_ops) <to_pid_to_str>: Use
8887 TARGET_DEFAULT_FUNC.
8888
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8890
8891 * target-delegates.c: Rebuild.
8892 * target.c (target_find_new_threads): Unconditionally delegate.
8893 * target.h (struct target_ops) <to_find_new_threads>: Use
8894 TARGET_DEFAULT_RETURN.
8895
8896 2014-02-19 Tom Tromey <tromey@redhat.com>
8897
8898 * target-delegates.c: Rebuild.
8899 * target.c (target_program_signals): Unconditionally delegate.
8900 * target.h (struct target_ops) <to_program_signals>: Use
8901 TARGET_DEFAULT_IGNORE.
8902
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * target-delegates.c: Rebuild.
8906 * target.c (target_pass_signals): Unconditionally delegate.
8907 * target.h (struct target_ops) <to_pass_signals>: Use
8908 TARGET_DEFAULT_IGNORE.
8909
8910 2014-02-19 Tom Tromey <tromey@redhat.com>
8911
8912 * target-delegates.c: Rebuild.
8913 * target.c (default_mourn_inferior): New function.
8914 (target_mourn_inferior): Unconditionally delegate.
8915 * target.h (struct target_ops) <to_mourn_inferior>: Use
8916 TARGET_DEFAULT_FUNC.
8917
8918 2014-02-19 Tom Tromey <tromey@redhat.com>
8919
8920 * target-delegates.c: Rebuild.
8921 * target.c (default_follow_fork): New function.
8922 (target_follow_fork): Unconditionally delegate.
8923 * target.h (struct target_ops) <to_follow_fork>: Use
8924 TARGET_DEFAULT_FUNC.
8925
8926 2014-02-19 Tom Tromey <tromey@redhat.com>
8927
8928 * target-delegates.c: Rebuild.
8929 * target.c (target_kill): Unconditionally delegate.
8930 * target.h (struct target_ops) <to_kill>: Use
8931 TARGET_DEFAULT_NORETURN.
8932
8933 2014-02-19 Tom Tromey <tromey@redhat.com>
8934
8935 * target-delegates.c: Rebuild.
8936 * target.c (target_masked_watch_num_registers): Unconditionally
8937 delegate.
8938 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8939 Use TARGET_DEFAULT_RETURN.
8940
8941 2014-02-19 Tom Tromey <tromey@redhat.com>
8942
8943 * target-delegates.c: Rebuild.
8944 * target.c (target_remove_mask_watchpoint): Unconditionally
8945 delegate.
8946 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8947 TARGET_DEFAULT_RETURN.
8948
8949 2014-02-19 Tom Tromey <tromey@redhat.com>
8950
8951 * target-delegates.c: Rebuild.
8952 * target.c (target_insert_mask_watchpoint): Unconditionally
8953 delegate.
8954 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8955 TARGET_DEFAULT_RETURN.
8956
8957 2014-02-19 Tom Tromey <tromey@redhat.com>
8958
8959 * target-delegates.c: Rebuild.
8960 * target.c (target_ranged_break_num_registers): Unconditionally
8961 delegate.
8962 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8963 Use TARGET_DEFAULT_RETURN.
8964
8965 2014-02-19 Tom Tromey <tromey@redhat.com>
8966
8967 * target-delegates.c: Rebuild.
8968 * target.c (target_fetch_registers): Unconditionally delegate.
8969 * target.h (struct target_ops) <to_fetch_registers>: 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_stop.
8977 * target.h (struct target_ops) <to_stop>: Use
8978 TARGET_DEFAULT_IGNORE.
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_can_run_breakpoint_commands.
8985 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8986 Use TARGET_DEFAULT_RETURN.
8987
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8989
8990 * target-delegates.c: Rebuild.
8991 * target.c (update_current_target): Don't inherit or default
8992 to_supports_evaluation_of_breakpoint_conditions.
8993 * target.h (struct target_ops)
8994 <to_supports_evaluation_of_breakpoint_conditions>: Use
8995 TARGET_DEFAULT_RETURN.
8996
8997 2014-02-19 Tom Tromey <tromey@redhat.com>
8998
8999 * target-delegates.c: Rebuild.
9000 * target.c (update_current_target): Don't inherit or default
9001 to_augmented_libraries_svr4_read.
9002 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9003 Use TARGET_DEFAULT_RETURN.
9004
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9006
9007 * target-delegates.c: Rebuild.
9008 * target.c (update_current_target): Don't inherit or default
9009 to_can_use_agent.
9010 * target.h (struct target_ops) <to_can_use_agent>: Use
9011 TARGET_DEFAULT_RETURN.
9012
9013 2014-02-19 Tom Tromey <tromey@redhat.com>
9014
9015 * target-delegates.c: Rebuild.
9016 * target.c (update_current_target): Don't inherit or default
9017 to_use_agent.
9018 * target.h (struct target_ops) <to_use_agent>: Use
9019 TARGET_DEFAULT_NORETURN.
9020
9021 2014-02-19 Tom Tromey <tromey@redhat.com>
9022
9023 * target-delegates.c: Rebuild.
9024 * target.c (update_current_target): Don't inherit or default
9025 to_traceframe_info.
9026 (return_null): Remove.
9027 * target.h (struct target_ops) <to_traceframe_info>: Use
9028 TARGET_DEFAULT_RETURN.
9029
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9031
9032 * target-delegates.c: Rebuild.
9033 * target.c (update_current_target): Don't inherit or default
9034 to_static_tracepoint_markers_by_strid.
9035 * target.h (struct target_ops)
9036 <to_static_tracepoint_markers_by_strid>: Use
9037 TARGET_DEFAULT_NORETURN.
9038
9039 2014-02-19 Tom Tromey <tromey@redhat.com>
9040
9041 * target-delegates.c: Rebuild.
9042 * target.c (update_current_target): Don't inherit or default
9043 to_static_tracepoint_marker_at.
9044 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9045 Use TARGET_DEFAULT_RETURN.
9046
9047 2014-02-19 Tom Tromey <tromey@redhat.com>
9048
9049 * target-delegates.c: Rebuild.
9050 * target.c (update_current_target): Don't inherit or default
9051 to_set_permissions.
9052 * target.h (struct target_ops) <to_set_permissions>: Use
9053 TARGET_DEFAULT_IGNORE.
9054
9055 2014-02-19 Tom Tromey <tromey@redhat.com>
9056
9057 * target-delegates.c: Rebuild.
9058 * target.c (update_current_target): Don't inherit or default
9059 to_get_tib_address.
9060 * target.h (struct target_ops) <to_get_tib_address>: Use
9061 TARGET_DEFAULT_NORETURN.
9062
9063 2014-02-19 Tom Tromey <tromey@redhat.com>
9064
9065 * target-delegates.c: Rebuild.
9066 * target.c (update_current_target): Don't inherit or default
9067 to_set_trace_notes.
9068 * target.h (struct target_ops) <to_set_trace_notes>: Use
9069 TARGET_DEFAULT_RETURN.
9070
9071 2014-02-19 Tom Tromey <tromey@redhat.com>
9072
9073 * target-delegates.c: Rebuild.
9074 * target.c (update_current_target): Don't initialize
9075 to_set_trace_buffer_size.
9076 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9077 TARGET_DEFAULT_IGNORE.
9078
9079 2014-02-19 Tom Tromey <tromey@redhat.com>
9080
9081 * target-delegates.c: Rebuild.
9082 * target.c (update_current_target): Don't inherit or default
9083 to_set_circular_trace_buffer.
9084 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9085 TARGET_DEFAULT_IGNORE.
9086
9087 2014-02-19 Tom Tromey <tromey@redhat.com>
9088
9089 * target-delegates.c: Rebuild.
9090 * target.c (update_current_target): Don't inherit or default
9091 to_set_disconnected_tracing.
9092 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9093 TARGET_DEFAULT_IGNORE.
9094
9095 2014-02-19 Tom Tromey <tromey@redhat.com>
9096
9097 * target-delegates.c: Rebuild.
9098 * target.c (update_current_target): Don't inherit or default
9099 to_get_min_fast_tracepoint_insn_len.
9100 (return_minus_one): Remove.
9101 * target.h (struct target_ops)
9102 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9103
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9105
9106 * target-delegates.c: Rebuild.
9107 * target.c (update_current_target): Don't inherit or default
9108 to_get_raw_trace_data.
9109 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9110 TARGET_DEFAULT_NORETURN.
9111
9112 2014-02-19 Tom Tromey <tromey@redhat.com>
9113
9114 * target-delegates.c: Rebuild.
9115 * target.c (update_current_target): Don't inherit or default
9116 to_upload_trace_state_variables.
9117 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9118 Use TARGET_DEFAULT_RETURN.
9119
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9121
9122 * target-delegates.c: Rebuild.
9123 * target.c (update_current_target): Don't inherit or default
9124 to_upload_tracepoints.
9125 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9126 TARGET_DEFAULT_RETURN.
9127
9128 2014-02-19 Tom Tromey <tromey@redhat.com>
9129
9130 * target-delegates.c: Rebuild.
9131 * target.c (update_current_target): Don't inherit or default
9132 to_save_trace_data.
9133 * target.h (struct target_ops) <to_save_trace_data>: Use
9134 TARGET_DEFAULT_NORETURN.
9135
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9137
9138 * target-delegates.c: Rebuild.
9139 * target.c (update_current_target): Don't inherit or default
9140 to_get_trace_state_variable_value.
9141 * target.h (struct target_ops)
9142 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9143
9144 2014-02-19 Tom Tromey <tromey@redhat.com>
9145
9146 * target-delegates.c: Rebuild.
9147 * target.c (update_current_target): Don't inherit or default
9148 to_trace_find.
9149 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9150
9151 2014-02-19 Tom Tromey <tromey@redhat.com>
9152
9153 * target-delegates.c: Rebuild.
9154 * target.c (update_current_target): Don't inherit or default
9155 to_trace_stop.
9156 * target.h (struct target_ops) <to_trace_stop>: Use
9157 TARGET_DEFAULT_NORETURN.
9158
9159 2014-02-19 Tom Tromey <tromey@redhat.com>
9160
9161 * target-delegates.c: Rebuild.
9162 * target.c (update_current_target): Don't inherit or default
9163 to_get_tracepoint_status.
9164 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9165 TARGET_DEFAULT_NORETURN.
9166
9167 2014-02-19 Tom Tromey <tromey@redhat.com>
9168
9169 * target-delegates.c: Rebuild.
9170 * target.c (update_current_target): Don't inherit or default
9171 to_get_trace_status.
9172 * target.h (struct target_ops) <to_get_trace_status>: Use
9173 TARGET_DEFAULT_RETURN.
9174
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9176
9177 * target-delegates.c: Rebuild.
9178 * target.c (update_current_target): Don't inherit or default
9179 to_trace_start.
9180 * target.h (struct target_ops) <to_trace_start>: Use
9181 TARGET_DEFAULT_NORETURN.
9182
9183 2014-02-19 Tom Tromey <tromey@redhat.com>
9184
9185 * target-delegates.c: Rebuild.
9186 * target.c (update_current_target): Don't inherit or default
9187 to_trace_set_readonly_regions.
9188 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9189 Use TARGET_DEFAULT_NORETURN.
9190
9191 2014-02-19 Tom Tromey <tromey@redhat.com>
9192
9193 * target-delegates.c: Rebuild.
9194 * target.c (update_current_target): Don't inherit or default
9195 to_disable_tracepoint.
9196 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9197 TARGET_DEFAULT_NORETURN.
9198
9199 2014-02-19 Tom Tromey <tromey@redhat.com>
9200
9201 * target-delegates.c: Rebuild.
9202 * target.c (update_current_target): Don't inherit or default
9203 to_enable_tracepoint.
9204 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9205 TARGET_DEFAULT_NORETURN.
9206
9207 2014-02-19 Tom Tromey <tromey@redhat.com>
9208
9209 * target-delegates.c: Rebuild.
9210 * target.c (update_current_target): Don't inherit or default
9211 to_download_trace_state_variable.
9212 * target.h (struct target_ops) <to_download_trace_state_variable>:
9213 Use TARGET_DEFAULT_NORETURN.
9214
9215 2014-02-19 Tom Tromey <tromey@redhat.com>
9216
9217 * target-delegates.c: Rebuild.
9218 * target.c (update_current_target): Don't inherit or default
9219 to_can_download_tracepoint.
9220 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9221 TARGET_DEFAULT_RETURN.
9222
9223 2014-02-19 Tom Tromey <tromey@redhat.com>
9224
9225 * target-delegates.c: Rebuild.
9226 * target.c (update_current_target): Don't inherit or default
9227 to_download_tracepoint.
9228 * target.h (struct target_ops) <to_download_tracepoint>: Use
9229 TARGET_DEFAULT_NORETURN.
9230
9231 2014-02-19 Tom Tromey <tromey@redhat.com>
9232
9233 * target-delegates.c: Rebuild.
9234 * target.c (update_current_target): Don't inherit or default
9235 to_trace_init.
9236 * target.h (struct target_ops) <to_trace_init>: Use
9237 TARGET_DEFAULT_RETURN.
9238
9239 2014-02-19 Tom Tromey <tromey@redhat.com>
9240
9241 * target-delegates.c: Rebuild.
9242 * target.c (update_current_target): Don't inherit or default
9243 to_supports_string_tracing.
9244 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9245 TARGET_DEFAULT_RETURN.
9246
9247 2014-02-19 Tom Tromey <tromey@redhat.com>
9248
9249 * target-delegates.c: Rebuild.
9250 * target.c (update_current_target): Don't inherit or default
9251 to_supports_enable_disable_tracepoint.
9252 * target.h (struct target_ops)
9253 <to_supports_enable_disable_tracepoint>: Use
9254 TARGET_DEFAULT_RETURN.
9255
9256 2014-02-19 Tom Tromey <tromey@redhat.com>
9257
9258 * target-delegates.c: Rebuild.
9259 * target.c (update_current_target): Don't inherit or default
9260 to_supports_multi_process.
9261 * target.h (struct target_ops) <to_supports_multi_process>: Use
9262 TARGET_DEFAULT_RETURN.
9263
9264 2014-02-19 Tom Tromey <tromey@redhat.com>
9265
9266 * target-delegates.c: Rebuild.
9267 * target.c (update_current_target): Don't inherit or default
9268 to_get_ada_task_ptid.
9269 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9270 TARGET_DEFAULT_FUNC.
9271
9272 2014-02-19 Tom Tromey <tromey@redhat.com>
9273
9274 * target-delegates.c: Rebuild.
9275 * target.c (update_current_target): Don't inherit or default
9276 to_thread_architecture.
9277 * target.h (struct target_ops) <to_thread_architecture>: Use
9278 TARGET_DEFAULT_FUNC.
9279
9280 2014-02-19 Tom Tromey <tromey@redhat.com>
9281
9282 * target-delegates.c: Rebuild.
9283 * target.c (update_current_target): Don't inherit or default
9284 to_execution_direction.
9285 * target.h (struct target_ops) <to_execution_direction>: Use
9286 TARGET_DEFAULT_FUNC.
9287
9288 2014-02-19 Tom Tromey <tromey@redhat.com>
9289
9290 * target-delegates.c: Rebuild.
9291 * target.c (update_current_target): Don't inherit or default
9292 to_can_execute_reverse.
9293 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9294 TARGET_DEFAULT_RETURN.
9295 (target_can_execute_reverse): Unconditionally delegate.
9296
9297 2014-02-19 Tom Tromey <tromey@redhat.com>
9298
9299 * target-delegates.c: Rebuild.
9300 * target.c (update_current_target): Don't inherit or default
9301 to_goto_bookmark.
9302 (dummy_goto_bookmark): Remove.
9303 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9304 * target.h (struct target_ops) <to_goto_bookmark>: Use
9305 TARGET_DEFAULT_NORETURN.
9306
9307 2014-02-19 Tom Tromey <tromey@redhat.com>
9308
9309 * target-delegates.c: Rebuild.
9310 * target.c (update_current_target): Don't inherit or default
9311 to_get_bookmark.
9312 (dummy_get_bookmark): Remove.
9313 (init_dummy_target): Don't inherit or default to_get_bookmark.
9314 * target.h (struct target_ops) <to_get_bookmark>: Use
9315 TARGET_DEFAULT_NORETURN
9316
9317 2014-02-19 Tom Tromey <tromey@redhat.com>
9318
9319 * target-delegates.c: Rebuild.
9320 * target.c (update_current_target): Don't inherit or default
9321 to_make_corefile_notes.
9322 (init_dummy_target): Don't initialize to_make_corefile_notes.
9323 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9324 TARGET_DEFAULT_FUNC.
9325
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9327
9328 * target-delegates.c: Rebuild.
9329 * target.c (update_current_target): Don't inherit or default
9330 to_find_memory_regions.
9331 (init_dummy_target): Don't initialize to_find_memory_regions.
9332 * target.h (struct target_ops) <to_find_memory_regions>: Use
9333 TARGET_DEFAULT_FUNC.
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_log_command.
9340 * target.h (struct target_ops) <to_log_command>: Use
9341 TARGET_DEFAULT_IGNORE.
9342 (target_log_command): Unconditionally delegate.
9343
9344 2014-02-19 Tom Tromey <tromey@redhat.com>
9345
9346 * target-delegates.c: Rebuild.
9347 * target.c (update_current_target): Don't inherit or default
9348 to_pid_to_exec_file.
9349 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9350 TARGET_DEFAULT_RETURN.
9351
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9353
9354 * target-delegates.c: Rebuild.
9355 * target.c (update_current_target): Don't inherit or default
9356 to_thread_name.
9357 (target_thread_name): Unconditionally delegate.
9358 * target.h (struct target_ops) <to_thread_name>: Use
9359 TARGET_DEFAULT_RETURN.
9360
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9362
9363 * target-delegates.c: Rebuild.
9364 * target.c (update_current_target): Don't inherit or default
9365 to_extra_thread_info.
9366 * target.h (struct target_ops) <to_extra_thread_info>: Use
9367 TARGET_DEFAULT_RETURN.
9368
9369 2014-02-19 Tom Tromey <tromey@redhat.com>
9370
9371 * target-delegates.c: Rebuild.
9372 * target.c (update_current_target): Don't inherit or default
9373 to_has_exited.
9374 * target.h (struct target_ops) <to_has_exited>: Use
9375 TARGET_DEFAULT_RETURN..
9376
9377 2014-02-19 Tom Tromey <tromey@redhat.com>
9378
9379 * target-delegates.c: Rebuild.
9380 * target.c (update_current_target): Don't inherit or default
9381 to_set_syscall_catchpoint.
9382 (return_one): Remove.
9383 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9384 TARGET_DEFAULT_RETURN.
9385
9386 2014-02-19 Tom Tromey <tromey@redhat.com>
9387
9388 * target-delegates.c: Rebuild.
9389 * target.c (update_current_target): Don't inherit or default
9390 to_insert_exec_catchpoint.
9391 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9392 TARGET_DEFAULT_RETURN.
9393
9394 2014-01-08 Tom Tromey <tromey@redhat.com>
9395
9396 * target-delegates.c: Rebuild.
9397 * target.c (update_current_target): Don't inherit or default
9398 to_insert_exec_catchpoint.
9399 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9400 TARGET_DEFAULT_RETURN.
9401
9402 2014-02-19 Tom Tromey <tromey@redhat.com>
9403
9404 * target-delegates.c: Rebuild.
9405 * target.c (update_current_target): Don't inherit or default
9406 to_remove_vfork_catchpoint.
9407 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9408 TARGET_DEFAULT_RETURN.
9409
9410 2014-02-19 Tom Tromey <tromey@redhat.com>
9411
9412 * target-delegates.c: Rebuild.
9413 * target.c (update_current_target): Don't inherit or default
9414 to_insert_vfork_catchpoint.
9415 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9416 TARGET_DEFAULT_RETURN.
9417
9418 2014-02-19 Tom Tromey <tromey@redhat.com>
9419
9420 * target-delegates.c: Rebuild.
9421 * target.c (update_current_target): Don't inherit or default
9422 to_remove_fork_catchpoint.
9423 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9424 TARGET_DEFAULT_RETURN.
9425
9426 2014-02-19 Tom Tromey <tromey@redhat.com>
9427
9428 * target-delegates.c: Rebuild.
9429 * target.c (update_current_target): Don't inherit or default
9430 to_insert_fork_catchpoint.
9431 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9432 TARGET_DEFAULT_RETURN.
9433
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9435
9436 * target-delegates.c: Rebuild.
9437 * target.c (update_current_target): Don't inherit or default
9438 to_post_startup_inferior.
9439 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9440 TARGET_DEFAULT_IGNORE.
9441
9442 2014-02-19 Tom Tromey <tromey@redhat.com>
9443
9444 * target-delegates.c: Rebuild.
9445 * target.c (update_current_target): Don't inherit or default
9446 to_load.
9447 * target.h (struct target_ops) <to_load>: Use
9448 TARGET_DEFAULT_NORETURN.
9449
9450 2014-02-19 Tom Tromey <tromey@redhat.com>
9451
9452 * target-delegates.c: Rebuild.
9453 * target.c (update_current_target): Don't inherit or default
9454 to_terminal_info.
9455 * target.h (struct target_ops) <to_terminal_info>: Use
9456 TARGET_DEFAULT_FUNC.
9457
9458 2014-02-19 Tom Tromey <tromey@redhat.com>
9459
9460 * target-delegates.c: Rebuild.
9461 * target.c (update_current_target): Don't inherit or default
9462 to_terminal_save_ours.
9463 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9464 TARGET_DEFAULT_IGNORE.
9465
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9467
9468 * target-delegates.c: Rebuild.
9469 * target.c (update_current_target): Don't inherit or default
9470 to_terminal_ours.
9471 * target.h (struct target_ops) <to_terminal_ours>: Use
9472 TARGET_DEFAULT_IGNORE.
9473
9474 2014-02-19 Tom Tromey <tromey@redhat.com>
9475
9476 * target-delegates.c: Rebuild.
9477 * target.c (update_current_target): Don't inherit or default
9478 to_terminal_ours_for_output.
9479 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9480 TARGET_DEFAULT_IGNORE.
9481
9482 2014-02-19 Tom Tromey <tromey@redhat.com>
9483
9484 * target-delegates.c: Rebuild.
9485 * target.c (update_current_target): Don't inherit or default
9486 to_terminal_inferior.
9487 * target.h (struct target_ops) <to_terminal_inferior>: Use
9488 TARGET_DEFAULT_IGNORE.
9489
9490 2014-02-19 Tom Tromey <tromey@redhat.com>
9491
9492 * target-delegates.c: Rebuild.
9493 * target.c (update_current_target): Don't inherit or default
9494 to_terminal_init.
9495 * target.h (struct target_ops) <to_terminal_init>: Use
9496 TARGET_DEFAULT_IGNORE.
9497
9498 2014-02-19 Tom Tromey <tromey@redhat.com>
9499
9500 * target-delegates.c: Rebuild.
9501 * target.c (update_current_target): Don't inherit or default
9502 to_can_accel_watchpoint_condition.
9503 * target.h (struct target_ops)
9504 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9505
9506 2014-02-19 Tom Tromey <tromey@redhat.com>
9507
9508 * target-delegates.c: Rebuild.
9509 * target.c (update_current_target): Don't inherit or default
9510 to_region_ok_for_hw_watchpoint.
9511 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9512 Use TARGET_DEFAULT_FUNC.
9513
9514 2014-02-19 Tom Tromey <tromey@redhat.com>
9515
9516 * target-delegates.c: Rebuild.
9517 * target.c (update_current_target): Don't inherit or default
9518 to_watchpoint_addr_within_range.
9519 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9520 Use TARGET_DEFAULT_FUNC.
9521
9522 2014-02-19 Tom Tromey <tromey@redhat.com>
9523
9524 * target-delegates.c: Rebuild.
9525 * target.c (update_current_target): Don't inherit or default
9526 to_remove_watchpoint.
9527 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9528 TARGET_DEFAULT_NORETURN.
9529
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9531
9532 * target-delegates.c: Rebuild.
9533 * target.c (update_current_target): Don't inherit or default
9534 to_insert_watchpoint.
9535 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9536 TARGET_DEFAULT_RETURN.
9537
9538 2014-02-19 Tom Tromey <tromey@redhat.com>
9539
9540 * target-delegates.c: Rebuild.
9541 * target.c (update_current_target): Don't inherit or default
9542 to_remove_hw_breakpoint.
9543 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9544 TARGET_DEFAULT_RETURN.
9545
9546 2014-02-19 Tom Tromey <tromey@redhat.com>
9547
9548 * target-delegates.c: Rebuild.
9549 * target.c (update_current_target): Don't inherit or default
9550 to_insert_hw_breakpoint.
9551 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9552 TARGET_DEFAULT_RETURN.
9553
9554 2014-02-19 Tom Tromey <tromey@redhat.com>
9555
9556 * target-delegates.c: Rebuild.
9557 * target.c (update_current_target): Don't inherit or default
9558 to_can_use_hw_breakpoint.
9559 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9560 TARGET_DEFAULT_RETURN.
9561
9562 2014-02-19 Tom Tromey <tromey@redhat.com>
9563
9564 * target-delegates.c: Rebuild.
9565 * target.c (update_current_target): Don't inherit or default
9566 to_files_info.
9567 * target.h (struct target_ops) <to_files_info>: Use
9568 TARGET_DEFAULT_IGNORE.
9569
9570 2014-02-19 Tom Tromey <tromey@redhat.com>
9571
9572 * target-delegates.c: Rebuild.
9573 * target.c (update_current_target): Don't inherit or default
9574 to_store.
9575 * target.h (struct target_ops) <to_store>: Use
9576 TARGET_DEFAULT_NORETURN.
9577
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9579
9580 * target-delegates.c: Rebuild.
9581 * target.c (update_current_target): Don't inherit or default
9582 to_post_attach.
9583 * target.h (struct target_ops) <to_post_attach>: Use
9584 TARGET_DEFAULT_IGNORE.
9585
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9587
9588 * target-delegates.c: Rebuild.
9589 * target.c (update_current_target): Don't inherit or default
9590 to_rcmd.
9591 (default_rcmd): New function.
9592 (do_monitor_command): Unconditionally delegate.
9593 * target.h (struct target_ops) <to_rmcd>: Use
9594 TARGET_DEFAULT_FUNC.
9595
9596 2014-02-19 Tom Tromey <tromey@redhat.com>
9597
9598 * target-delegates.c: Rebuild.
9599 * target.c (init_dummy_target): Don't initialize to_attach.
9600 (target_attach): Unconditionally delegate.
9601 * target.h (struct target_ops) <to_attach>: Use
9602 TARGET_DEFAULT_FUNC.
9603
9604 2014-02-19 Tom Tromey <tromey@redhat.com>
9605
9606 * target-delegates.c: Rebuild.
9607 * target.c (target_detach): Unconditionally delegate.
9608 (init_dummy_target): Don't initialize to_detach.
9609 * target.h (struct target_ops) <to_detach>: Use
9610 TARGET_DEFAULT_IGNORE.
9611
9612 2014-02-19 Tom Tromey <tromey@redhat.com>
9613
9614 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9615 Add argument.
9616 (target_augmented_libraries_svr4_read): Add argument.
9617 * target.c (update_current_target): Update.
9618 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9619 argument.
9620
9621 2014-02-19 Tom Tromey <tromey@redhat.com>
9622
9623 * target.h (struct target_ops) <to_call_history_range>: Add
9624 argument.
9625 * target.c (target_call_history_range): Add argument.
9626 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9627 argument.
9628 (record_btrace_call_history_from): Update.
9629
9630 2014-02-19 Tom Tromey <tromey@redhat.com>
9631
9632 * target.h (struct target_ops) <to_call_history_from>: Add
9633 argument.
9634 * target.c (target_call_history_from): Add argument.
9635 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9636 argument.
9637
9638 2014-02-19 Tom Tromey <tromey@redhat.com>
9639
9640 * target.h (struct target_ops) <to_call_history>: Add argument.
9641 * target.c (target_call_history): Add argument.
9642 * record-btrace.c (record_btrace_call_history): Add 'self'
9643 argument.
9644
9645 2014-02-19 Tom Tromey <tromey@redhat.com>
9646
9647 * target.h (struct target_ops) <to_insn_history_range>: Add
9648 argument.
9649 * target.c (target_insn_history_range): Add argument.
9650 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9651 argument.
9652 (record_btrace_insn_history_from): Update.
9653
9654 2014-02-19 Tom Tromey <tromey@redhat.com>
9655
9656 * target.h (struct target_ops) <to_insn_history_from>: Add
9657 argument.
9658 * target.c (target_insn_history_from): Add argument.
9659 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9660 argument.
9661
9662 2014-02-19 Tom Tromey <tromey@redhat.com>
9663
9664 * target.h (struct target_ops) <to_insn_history>: Add argument.
9665 * target.c (target_insn_history): Add argument.
9666 * record-btrace.c (record_btrace_insn_history): Add 'self'
9667 argument.
9668
9669 2014-02-19 Tom Tromey <tromey@redhat.com>
9670
9671 * target.h (struct target_ops) <to_goto_record>: Add argument.
9672 * target.c (target_goto_record): Add argument.
9673 * record-full.c (record_full_goto): Add 'self' argument.
9674 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9675
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9677
9678 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9679 * target.c (target_goto_record_end): Add argument.
9680 * record-full.c (record_full_goto_end): Add 'self' argument.
9681 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9682
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9684
9685 * target.h (struct target_ops) <to_goto_record_begin>: Add
9686 argument.
9687 * target.c (target_goto_record_begin): Add argument.
9688 * record-full.c (record_full_goto_begin): Add 'self' argument.
9689 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9690 argument.
9691
9692 2014-02-19 Tom Tromey <tromey@redhat.com>
9693
9694 * target.h (struct target_ops) <to_record_is_replaying>: Add
9695 argument.
9696 * target.c (target_record_is_replaying): Add argument.
9697 * record-full.c (record_full_is_replaying): Add 'self' argument.
9698 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9699 argument.
9700 (record_btrace_xfer_partial, record_btrace_store_registers)
9701 (record_btrace_prepare_to_store, record_btrace_resume)
9702 (record_btrace_wait, record_btrace_decr_pc_after_break)
9703 (record_btrace_find_new_threads, record_btrace_thread_alive):
9704 Update.
9705
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 * target.h (struct target_ops) <to_delete_record>: Add argument.
9709 * target.c (target_delete_record): Add argument.
9710 * record-full.c (record_full_delete): Add 'self' argument.
9711
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9713
9714 * target.h (struct target_ops) <to_save_record>: Add argument.
9715 * target.c (target_save_record): Add argument.
9716 * record-full.c (record_full_save): Add 'self' argument.
9717 (record_full_save): Add 'self' argument.
9718
9719 2014-02-19 Tom Tromey <tromey@redhat.com>
9720
9721 * target.h (struct target_ops) <to_info_record>: Add argument.
9722 * target.c (target_info_record): Add argument.
9723 * record.c (info_record_command): Add argument.
9724 * record-full.c (record_full_info): Add 'self' argument.
9725 * record-btrace.c (record_btrace_info): Add 'self' argument.
9726
9727 2014-02-19 Tom Tromey <tromey@redhat.com>
9728
9729 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9730 * target.c (target_stop_recording): Add argument.
9731 * record.c (record_stop): Add argument.
9732 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9733 argument.
9734
9735 2014-02-19 Tom Tromey <tromey@redhat.com>
9736
9737 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9738 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9739 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9740 argument.
9741 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9742 (_initialize_amd64_linux_nat): Use it.
9743 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9744 (_initialize_i386_linux_nat): Use it.
9745
9746 2014-02-19 Tom Tromey <tromey@redhat.com>
9747
9748 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9749 * target.c (target_teardown_btrace): Add argument.
9750 * remote.c (remote_teardown_btrace): Add 'self' argument.
9751 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9752 argument.
9753 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9754 argument.
9755
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9757
9758 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9759 * target.c (target_disable_btrace): Add argument.
9760 * remote.c (remote_disable_btrace): Add 'self' argument.
9761 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9762 argument.
9763 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9764 argument.
9765
9766 2014-02-19 Tom Tromey <tromey@redhat.com>
9767
9768 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9769 * target.c (target_enable_btrace): Add argument.
9770 * remote.c (remote_enable_btrace): Add 'self' argument.
9771 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9772 argument.
9773 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9774 argument.
9775
9776 2014-02-19 Tom Tromey <tromey@redhat.com>
9777
9778 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9779 (target_can_use_agent): Add argument.
9780 * target.c (update_current_target): Update.
9781 * remote.c (remote_can_use_agent): Add 'self' argument.
9782 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9783
9784 2014-02-19 Tom Tromey <tromey@redhat.com>
9785
9786 * target.h (struct target_ops) <to_use_agent>: Add argument.
9787 (target_use_agent): Add argument.
9788 * target.c (update_current_target): Update.
9789 * remote.c (remote_use_agent): Add 'self' argument.
9790 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9791
9792 2014-02-19 Tom Tromey <tromey@redhat.com>
9793
9794 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9795 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9796 (target_traceframe_info): Add argument.
9797 * target.c (update_current_target): Update.
9798 * remote.c (remote_traceframe_info): Add 'self' argument.
9799 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9800
9801 2014-02-19 Tom Tromey <tromey@redhat.com>
9802
9803 * target.h (target_static_tracepoint_markers_by_strid): Add
9804 argument.
9805 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9806 'self' argument.
9807 * target.c (update_current_target): Update.
9808 * remote.c (struct target_ops)
9809 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9810 * linux-nat.c (struct target_ops)
9811 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9812
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9814
9815 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9816 Add argument.
9817 (target_static_tracepoint_marker_at): Add argument.
9818 * target.c (update_current_target): Update.
9819 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9820 argument.
9821
9822 2014-02-19 Tom Tromey <tromey@redhat.com>
9823
9824 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9825 (target_set_permissions): Add argument.
9826 * target.c (update_current_target): Update.
9827 * remote.c (remote_set_permissions): Add 'self' argument.
9828 (remote_start_remote): Update.
9829
9830 2014-02-19 Tom Tromey <tromey@redhat.com>
9831
9832 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9833 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9834 (target_get_tib_address): Add argument.
9835 * target.c (update_current_target): Update.
9836 * remote.c (remote_get_tib_address): Add 'self' argument.
9837
9838 2014-02-19 Tom Tromey <tromey@redhat.com>
9839
9840 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9841 (target_set_trace_notes): Add argument.
9842 * target.c (update_current_target): Update.
9843 * remote.c (remote_set_trace_notes): Add 'self' argument.
9844
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9846
9847 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9848 argument.
9849 (target_set_trace_buffer_size): Add argument.
9850 * target.c (update_current_target): Update.
9851 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9852
9853 2014-02-19 Tom Tromey <tromey@redhat.com>
9854
9855 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9856 argument.
9857 (target_set_circular_trace_buffer): Add argument.
9858 * target.c (update_current_target): Update.
9859 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9860 argument.
9861
9862 2014-02-19 Tom Tromey <tromey@redhat.com>
9863
9864 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9865 argument.
9866 (target_set_disconnected_tracing): Add argument.
9867 * target.c (update_current_target): Update.
9868 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9869
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * target.h (struct target_ops)
9873 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9874 (target_get_min_fast_tracepoint_insn_len): Add argument.
9875 * target.c (update_current_target): Update.
9876 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9877 argument.
9878
9879 2014-02-19 Tom Tromey <tromey@redhat.com>
9880
9881 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9882 argument.
9883 (target_get_raw_trace_data): Add argument.
9884 * target.c (update_current_target): Update.
9885 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9886
9887 2014-02-19 Tom Tromey <tromey@redhat.com>
9888
9889 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9890 Add argument.
9891 (target_upload_trace_state_variables): Add argument.
9892 * target.c (update_current_target): Update.
9893 * remote.c (remote_upload_trace_state_variables): Add 'self'
9894 argument.
9895 (remote_start_remote): Update.
9896
9897 2014-02-19 Tom Tromey <tromey@redhat.com>
9898
9899 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9900 argument.
9901 (target_upload_tracepoints): Add argument.
9902 * target.c (update_current_target): Update.
9903 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9904 (remote_start_remote): Update.
9905
9906 2014-02-19 Tom Tromey <tromey@redhat.com>
9907
9908 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9909 (target_save_trace_data): Add argument.
9910 * target.c (update_current_target): Update.
9911 * remote.c (remote_save_trace_data): Add 'self' argument.
9912
9913 2014-02-19 Tom Tromey <tromey@redhat.com>
9914
9915 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9916 argument.
9917 * target.h (struct target_ops)
9918 <to_get_trace_state_variable_value>: Add argument.
9919 (target_get_trace_state_variable_value): Add argument.
9920 * target.c (update_current_target): Update.
9921 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9922 argument.
9923 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9924
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9926
9927 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9928 * target.h (struct target_ops) <to_trace_find>: Add argument.
9929 (target_trace_find): Add argument.
9930 * target.c (update_current_target): Update.
9931 * remote.c (remote_trace_find): Add 'self' argument.
9932 * ctf.c (ctf_trace_find): Add 'self' argument.
9933
9934 2014-02-19 Tom Tromey <tromey@redhat.com>
9935
9936 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9937 (target_trace_stop): Add argument.
9938 * target.c (update_current_target): Update.
9939 * remote.c (remote_trace_stop): Add 'self' argument.
9940
9941 2014-02-19 Tom Tromey <tromey@redhat.com>
9942
9943 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9944 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9945 argument.
9946 (target_get_tracepoint_status): Add argument.
9947 * target.c (update_current_target): Update.
9948 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9949
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9951
9952 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9953 * target.h (struct target_ops) <to_get_trace_status>: Add
9954 argument.
9955 (target_get_trace_status): Add argument.
9956 * target.c (update_current_target): Update.
9957 * remote.c (remote_get_trace_status): Add 'self' argument.
9958 (remote_start_remote, remote_can_download_tracepoint): Update.
9959 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9960
9961 2014-02-19 Tom Tromey <tromey@redhat.com>
9962
9963 * target.h (struct target_ops) <to_trace_start>: Add argument.
9964 (target_trace_start): Add argument.
9965 * target.c (update_current_target): Update.
9966 * remote.c (remote_trace_start): Add 'self' argument.
9967
9968 2014-02-19 Tom Tromey <tromey@redhat.com>
9969
9970 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9971 Add argument.
9972 (target_trace_set_readonly_regions): Add argument.
9973 * target.c (update_current_target): Update.
9974 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9975 argument.
9976
9977 2014-02-19 Tom Tromey <tromey@redhat.com>
9978
9979 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9980 argument.
9981 (target_disable_tracepoint): Add argument.
9982 * target.c (update_current_target): Update.
9983 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9984
9985 2014-02-19 Tom Tromey <tromey@redhat.com>
9986
9987 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9988 argument.
9989 (target_enable_tracepoint): Add argument.
9990 * target.c (update_current_target): Update.
9991 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9992
9993 2014-02-19 Tom Tromey <tromey@redhat.com>
9994
9995 * target.h (struct target_ops) <to_download_trace_state_variable>:
9996 Add argument.
9997 (target_download_trace_state_variable): Add argument.
9998 * target.c (update_current_target): Update.
9999 * remote.c (remote_download_trace_state_variable): Add 'self'
10000 argument.
10001
10002 2014-02-19 Tom Tromey <tromey@redhat.com>
10003
10004 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10005 argument.
10006 (target_can_download_tracepoint): Add argument.
10007 * target.c (update_current_target): Update.
10008 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10009
10010 2014-02-19 Tom Tromey <tromey@redhat.com>
10011
10012 * target.h (struct target_ops) <to_download_tracepoint>: Add
10013 argument.
10014 (target_download_tracepoint): Add argument.
10015 * target.c (update_current_target): Update.
10016 * remote.c (remote_download_tracepoint): Add 'self' argument.
10017
10018 2014-02-19 Tom Tromey <tromey@redhat.com>
10019
10020 * target.h (struct target_ops) <to_trace_init>: Add argument.
10021 (target_trace_init): Add argument.
10022 * target.c (update_current_target): Update.
10023 * remote.c (remote_trace_init): Add 'self' argument.
10024
10025 2014-02-19 Tom Tromey <tromey@redhat.com>
10026
10027 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10028 * target.c (target_fileio_readlink): Add argument.
10029 * remote.c (remote_hostio_readlink): Add 'self' argument.
10030 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10031
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10035 * target.c (target_fileio_unlink): Add argument.
10036 * remote.c (remote_hostio_unlink): Add 'self' argument.
10037 (remote_file_delete): Update.
10038 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10039
10040 2014-02-19 Tom Tromey <tromey@redhat.com>
10041
10042 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10043 * target.c (target_fileio_close): Add argument.
10044 * remote.c (remote_hostio_close): Add 'self' argument.
10045 (remote_hostio_close_cleanup): Update.
10046 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10047 Update.
10048 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10049
10050 2014-02-19 Tom Tromey <tromey@redhat.com>
10051
10052 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10053 * target.c (target_fileio_pread): Add argument.
10054 * remote.c (remote_hostio_pread): Add 'self' argument.
10055 (remote_bfd_iovec_pread, remote_file_get): Update.
10056 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10057
10058 2014-02-19 Tom Tromey <tromey@redhat.com>
10059
10060 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10061 * target.c (target_fileio_pwrite): Add argument.
10062 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10063 (remote_file_put): Update.
10064 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10065
10066 2014-02-19 Tom Tromey <tromey@redhat.com>
10067
10068 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10069 * target.c (target_fileio_open): Add argument.
10070 * remote.c (remote_hostio_open): Add 'self' argument.
10071 (remote_bfd_iovec_open): Add 'self' argument.
10072 (remote_file_put): Add 'self' argument.
10073 (remote_file_get): Add 'self' argument.
10074 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10075
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10077
10078 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10079 Add argument.
10080 (target_can_run_breakpoint_commands): Add argument.
10081 * target.c (update_current_target): Update.
10082 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10083 argument.
10084 (remote_insert_breakpoint): Add 'self' argument.
10085 (remote_insert_hw_breakpoint): Add 'self' argument.
10086 (remote_can_run_breakpoint_commands): Add 'self' argument.
10087
10088 2014-02-19 Tom Tromey <tromey@redhat.com>
10089
10090 * target.h (struct target_ops)
10091 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10092 (target_supports_evaluation_of_breakpoint_conditions): Add
10093 argument.
10094 * target.c (update_current_target): Update.
10095 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10096 argument.
10097 (remote_insert_breakpoint): Add 'self' argument.
10098 (remote_insert_hw_breakpoint): Add 'self' argument.
10099 (remote_supports_cond_breakpoints): Add 'self' argument.
10100
10101 2014-02-19 Tom Tromey <tromey@redhat.com>
10102
10103 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10104 argument.
10105 (target_supports_string_tracing): Add argument.
10106 * target.c (update_current_target): Update.
10107 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10108
10109 2014-02-19 Tom Tromey <tromey@redhat.com>
10110
10111 * target.h (struct target_ops)
10112 <to_supports_disable_randomization>: Add argument.
10113 * target.c (find_default_supports_disable_randomization): Add
10114 argument.
10115 (target_supports_disable_randomization): Add argument.
10116 (find_default_supports_disable_randomization): Add 'self'
10117 argument.
10118 * remote.c (extended_remote_supports_disable_randomization): Add
10119 'self' argument.
10120 (remote_supports_disable_randomization): Add 'self' argument.
10121 (extended_remote_create_inferior): Update.
10122 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10123 'self' argument.
10124
10125 2014-02-19 Tom Tromey <tromey@redhat.com>
10126
10127 * target.h (struct target_ops)
10128 <to_supports_enable_disable_tracepoint>: Add argument.
10129 (target_supports_enable_disable_tracepoint): Add argument.
10130 * target.c (update_current_target): Update.
10131 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10132 argument.
10133
10134 2014-02-19 Tom Tromey <tromey@redhat.com>
10135
10136 * target.h (struct target_ops) <to_supports_multi_process>: Add
10137 argument.
10138 (target_supports_multi_process): Add argument.
10139 * target.c (update_current_target): Update.
10140 * remote.c (remote_supports_multi_process): Add 'self' argument.
10141 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10142 argument.
10143 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10144 argument.
10145
10146 2014-02-19 Tom Tromey <tromey@redhat.com>
10147
10148 * target.h (struct target_ops) <to_execution_direction>: Add
10149 argument.
10150 (target_execution_direction): Add argument.
10151 * target.c (default_execution_direction): Add 'self' argument.
10152 * record-full.c (record_full_execution_direction): Add 'self'
10153 argument.
10154
10155 2014-02-19 Tom Tromey <tromey@redhat.com>
10156
10157 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10158 argument.
10159 (target_can_execute_reverse): Add argument.
10160 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10161 * record-full.c (record_full_can_execute_reverse): Add 'self'
10162 argument.
10163 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10164 argument.
10165
10166 2014-02-19 Tom Tromey <tromey@redhat.com>
10167
10168 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10169 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10170 argument.
10171 (target_get_ada_task_ptid): Add argument.
10172 * target.c (update_current_target): Update.
10173 (default_get_ada_task_ptid): Add 'self' argument.
10174 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10175 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10176 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10177 argument.
10178 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10179 argument.
10180 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10181 argument.
10182 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10183 argument.
10184 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10185 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10186 argument.
10187
10188 2014-02-19 Tom Tromey <tromey@redhat.com>
10189
10190 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10191 (target_goto_bookmark): Add argument.
10192 * target.c (dummy_goto_bookmark): Add 'self' argument.
10193 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10194
10195 2014-02-19 Tom Tromey <tromey@redhat.com>
10196
10197 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10198 (target_get_bookmark): Add argument.
10199 * target.c (dummy_get_bookmark): Add 'self' argument.
10200 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10201
10202 2014-02-19 Tom Tromey <tromey@redhat.com>
10203
10204 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10205 argument.
10206 (target_make_corefile_notes): Add argument.
10207 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10208 * procfs.c (procfs_make_note_section): Add 'self' argument.
10209 (procfs_make_note_section): Add 'self' argument.
10210 (procfs_make_note_section): Add 'self' argument.
10211 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10212 argument.
10213 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10214 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10215 * exec.c (exec_make_note_section): Add 'self' argument.
10216 (exec_make_note_section): Add 'self' argument.
10217
10218 2014-02-19 Tom Tromey <tromey@redhat.com>
10219
10220 * target.h (struct target_ops) <to_find_memory_regions>: Add
10221 argument.
10222 (target_find_memory_regions): Add argument.
10223 * target.c (dummy_find_memory_regions): Add 'self' argument.
10224 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10225 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10226 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10227 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10228 * exec. (exec_do_find_memory_regions): New global.
10229 (exec_set_find_memory_regions): Rewrite.
10230 (exec_find_memory_regions): New function.
10231 (init_exec_ops): Use exec_find_memory_regions.
10232
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10234
10235 * target.h (struct target_ops) <to_supports_non_stop>: Add
10236 argument.
10237 * target.c (find_default_supports_non_stop): Add argument.
10238 (target_supports_non_stop): Add argument.
10239 (find_default_supports_non_stop): Add 'self' argument.
10240 * remote.c (remote_supports_non_stop): Add 'self' argument.
10241 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10242
10243 2014-02-19 Tom Tromey <tromey@redhat.com>
10244
10245 * target.h (struct target_ops) <to_log_command>: Add argument.
10246 (target_log_command): Add argument.
10247 * serial.h (serial_log_command): Add 'self' argument.
10248 * serial.c (serial_log_command): Add 'self' argument.
10249
10250 2014-02-19 Tom Tromey <tromey@redhat.com>
10251
10252 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10253 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10254 argument.
10255 (target_pid_to_exec_file): Add argument.
10256 * target.c (debug_to_pid_to_exec_file): Add argument.
10257 (update_current_target): Update.
10258 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10259 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10260 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10261 (linux_handle_extended_wait): Update.
10262 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10263 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10264 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10265 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10266
10267 2014-02-19 Tom Tromey <tromey@redhat.com>
10268
10269 * target.h (struct target_ops) <to_rcmd>: Add argument.
10270 (target_rcmd): Add argument.
10271 * target.c (debug_to_rcmd): Add argument.
10272 (update_current_target, do_monitor_command): Update.
10273 * remote.c (remote_rcmd): Add 'self' argument.
10274 * monitor.c (monitor_rcmd): Add 'self' argument.
10275
10276 2014-02-19 Tom Tromey <tromey@redhat.com>
10277
10278 * windows-nat.c (windows_stop): Add 'self' argument.
10279 * target.h (struct target_ops) <to_stop>: Add argument.
10280 * target.c (target_stop): Add argument.
10281 (debug_to_stop): Add argument.
10282 (update_current_target): Update.
10283 * remote.c (remote_stop): Add 'self' argument.
10284 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10285 (gdbsim_cntrl_c): Update.
10286 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10287 * procfs.c (procfs_stop): Add 'self' argument.
10288 * nto-procfs.c (procfs_stop): Add 'self' argument.
10289 * monitor.c (monitor_stop): Add 'self' argument.
10290 (monitor_open): Update.
10291 * linux-nat.c (linux_nat_stop): Add argument.
10292 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10293 * gnu-nat.c (gnu_stop): Add 'self' argument.
10294 * darwin-nat.c (darwin_stop): Add 'self' argument.
10295
10296 2014-02-19 Tom Tromey <tromey@redhat.com>
10297
10298 * target.h (struct target_ops) <to_thread_name>: Add argument.
10299 * target.c (target_thread_name): Add argument.
10300 (update_current_target): Update.
10301 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10302
10303 2014-02-19 Tom Tromey <tromey@redhat.com>
10304
10305 * target.h (struct target_ops) <to_extra_thread_info>: Add
10306 argument.
10307 (target_extra_thread_info): Add argument.
10308 * target.c (update_current_target): Update.
10309 * remote.c (remote_threads_extra_info): Add 'self' argument.
10310 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10311 argument.
10312 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10313 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10314 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10315 argument.
10316 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10317 argument.
10318 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10319 argument.
10320 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10321 argument.
10322
10323 2014-02-19 Tom Tromey <tromey@redhat.com>
10324
10325 * target.h (struct target_ops) <to_program_signals>: Add argument.
10326 * target.c (target_program_signals): Add argument.
10327 * remote.c (remote_program_signals): Add 'self' argument.
10328
10329 2014-02-19 Tom Tromey <tromey@redhat.com>
10330
10331 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10332 * target.c (target_pass_signals): Add argument.
10333 * remote.c (remote_pass_signals): Add 'self' argument.
10334 (remote_start_remote): Update.
10335 * procfs.c (procfs_pass_signals): Add 'self' argument.
10336 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10337 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10338 (linux_nat_create_inferior, linux_nat_attach): Update.
10339
10340 2014-02-19 Tom Tromey <tromey@redhat.com>
10341
10342 * windows-nat.c (windows_can_run): Add 'self' argument.
10343 * target.h (struct target_ops) <to_can_run>: Add argument.
10344 (target_can_run): Add argument.
10345 * target.c (debug_to_can_run): Add argument.
10346 (update_current_target): Update.
10347 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10348 * inf-child.c (inf_child_can_run): Add 'self' argument.
10349 * go32-nat.c (go32_can_run): Add 'self' argument.
10350
10351 2014-02-19 Tom Tromey <tromey@redhat.com>
10352
10353 * target.h (struct target_ops) <to_has_exited>: Add argument.
10354 (target_has_exited): Add argument.
10355 * target.c (debug_to_has_exited): Add argument.
10356 (update_current_target): Update.
10357
10358 2014-02-19 Tom Tromey <tromey@redhat.com>
10359
10360 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10361 argument.
10362 (target_set_syscall_catchpoint): Add argument.
10363 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10364 argument.
10365 * target.c (update_current_target): Update.
10366
10367 2014-02-19 Tom Tromey <tromey@redhat.com>
10368
10369 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10370 argument.
10371 (target_remove_exec_catchpoint): Add argument.
10372 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10373 (update_current_target): Update.
10374 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10375 argument.
10376
10377 2014-02-19 Tom Tromey <tromey@redhat.com>
10378
10379 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10380 argument.
10381 (target_insert_exec_catchpoint): Add argument.
10382 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10383 (update_current_target): Update.
10384 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10385 argument.
10386
10387 2014-02-19 Tom Tromey <tromey@redhat.com>
10388
10389 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10390 argument.
10391 (target_remove_vfork_catchpoint): Add argument.
10392 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10393 (update_current_target): Update.
10394 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10395 argument.
10396
10397 2014-02-19 Tom Tromey <tromey@redhat.com>
10398
10399 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10400 argument.
10401 (target_insert_vfork_catchpoint): Add argument.
10402 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10403 (update_current_target): Update.
10404 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10405 argument.
10406
10407 2014-02-19 Tom Tromey <tromey@redhat.com>
10408
10409 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10410 argument.
10411 (target_remove_fork_catchpoint): Add argument.
10412 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10413 (update_current_target): Update.
10414 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10415 argument.
10416
10417 2014-02-19 Tom Tromey <tromey@redhat.com>
10418
10419 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10420 argument.
10421 (target_insert_fork_catchpoint): Add argument.
10422 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10423 (update_current_target): Update.
10424 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10425 argument.
10426
10427 2014-02-19 Tom Tromey <tromey@redhat.com>
10428
10429 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10430 argument.
10431 (target_post_startup_inferior): Add argument.
10432 * target.c (debug_to_post_startup_inferior): Add argument.
10433 (update_current_target): Update.
10434 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10435 argument.
10436 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10437 argument.
10438 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10439 argument.
10440 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10441 argument.
10442 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10443 'self' argument.
10444 (super_post_startup_inferior): Likewise.
10445 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10446 'self' argument.
10447 (super_post_startup_inferior): Likewise.
10448 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10449 Add 'self' argument.
10450 (super_post_startup_inferior): Likewise.
10451
10452 2014-02-19 Tom Tromey <tromey@redhat.com>
10453
10454 * target.h (struct target_ops) <to_load>: Add argument.
10455 * target.c (target_load): Add argument.
10456 (debug_to_load): Add argument.
10457 (update_current_target): Update.
10458 * remote.c (remote_load): Add 'self' argument.
10459 * remote-sim.c (gdbsim_load): Add 'self' argument.
10460 * remote-mips.c (mips_load): Add 'self' argument.
10461 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10462 * monitor.c (monitor_load): Add 'self' argument.
10463 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10464
10465 2014-02-19 Tom Tromey <tromey@redhat.com>
10466
10467 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10468 (target_terminal_info): Add argument.
10469 * target.c (debug_to_terminal_info): Add argument.
10470 (default_terminal_info): Likewise.
10471 * inflow.c (child_terminal_info): Add 'self' argument.
10472 * inferior.h (child_terminal_info): Add 'self' argument.
10473 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10474
10475 2014-02-19 Tom Tromey <tromey@redhat.com>
10476
10477 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10478 argument.
10479 (target_terminal_save_ours): Add argument.
10480 * target.c (debug_to_terminal_save_ours): Add argument.
10481 (update_current_target): Update.
10482 * inflow.c (terminal_save_ours): Add 'self' argument.
10483 * inferior.h (terminal_save_ours): Add 'self' argument.
10484
10485 2014-02-19 Tom Tromey <tromey@redhat.com>
10486
10487 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10488 (target_terminal_ours): Add argument.
10489 * target.c (debug_to_terminal_ours): Add argument.
10490 (update_current_target): Update.
10491 * remote.c (remote_terminal_ours): Add 'self' argument.
10492 (remote_close): Update.
10493 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10494 * inflow.c (terminal_ours): Add 'self' argument.
10495 * inferior.h (terminal_ours): Add 'self' argument.
10496 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10497
10498 2014-02-19 Pedro Alves <palves@redhat.com>
10499 Tom Tromey <tromey@redhat.com>
10500
10501 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10502 argument.
10503 (target_terminal_ours_for_output): Add argument.
10504 * target.c (debug_to_terminal_ours_for_output): Add argument.
10505 (update_current_target): Update.
10506 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10507 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10508 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10509
10510 2014-02-19 Tom Tromey <tromey@redhat.com>
10511
10512 * target.h (struct target_ops) <to_terminal_inferior>: Add
10513 argument.
10514 * target.c (target_terminal_inferior): Add argument.
10515 (update_current_target): Update.
10516 * remote.c (remote_terminal_inferior): Add 'self' argument.
10517 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10518 * inflow.c (terminal_inferior): Add 'self' argument.
10519 * inferior.h (terminal_inferior): Add 'self' argument.
10520 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10521 (go32_terminal_inferior): Add 'self' argument.
10522
10523 2014-02-19 Tom Tromey <tromey@redhat.com>
10524
10525 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10526 (target_terminal_init): Add argument.
10527 * target.c (debug_to_terminal_init): Add argument.
10528 (update_current_target): Update.
10529 * inflow.c (terminal_init_inferior): Add 'self' argument.
10530 * inferior.h (terminal_init_inferior): Add 'self' argument.
10531 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10532 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10533
10534 2014-02-19 Tom Tromey <tromey@redhat.com>
10535
10536 * target.h (struct target_ops)
10537 <to_can_accel_watchpoint_condition>: Add argument.
10538 (target_can_accel_watchpoint_condition): Add argument.
10539 * target.c (debug_to_can_accel_watchpoint_condition): Add
10540 argument.
10541 (update_current_target): Update.
10542 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10543 'self' argument.
10544
10545 2014-02-19 Tom Tromey <tromey@redhat.com>
10546
10547 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10548 Add argument.
10549 (target_region_ok_for_hw_watchpoint): Add argument.
10550 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10551 (default_region_ok_for_hw_watchpoint): Add argument.
10552 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10553 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10554 argument.
10555 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10556 argument.
10557 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10558 argument.
10559 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10560 'self' argument.
10561 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10562 'self' argument.
10563 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10564 'self' argument.
10565 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10566 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10567 'self' argument.
10568 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10569 Add 'self' argument.
10570
10571 2014-02-19 Tom Tromey <tromey@redhat.com>
10572
10573 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10574 argument.
10575 (target_insert_watchpoint): Add argument.
10576 * target.c (debug_to_insert_watchpoint): Add argument.
10577 (update_current_target): Update.
10578 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10579 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10580 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10581 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10582 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10583 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10584 argument.
10585 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10586 (procfs_insert_hw_watchpoint): Add 'self' argument.
10587 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10588 argument.
10589 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10590 argument.
10591 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10592 argument.
10593 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10594 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10595 argument.
10596 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10597 'self' argument.
10598
10599 2014-02-19 Tom Tromey <tromey@redhat.com>
10600
10601 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10602 argument.
10603 (target_remove_watchpoint): Add argument.
10604 * target.c (debug_to_remove_watchpoint): Add argument.
10605 (update_current_target): Update.
10606 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10607 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10608 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10609 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10610 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10611 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10612 argument.
10613 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10614 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10615 argument.
10616 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10617 argument.
10618 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10619 argument.
10620 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10621 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10622 argument.
10623 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10624 'self' argument.
10625
10626 2014-02-19 Tom Tromey <tromey@redhat.com>
10627
10628 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10629 argument.
10630 (target_remove_hw_breakpoint): Add argument.
10631 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10632 (update_current_target): Update.
10633 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10634 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10635 argument.
10636 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10637 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10638 argument.
10639 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10640 'self' argument.
10641
10642 2014-02-19 Tom Tromey <tromey@redhat.com>
10643
10644 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10645 argument.
10646 (target_insert_hw_breakpoint): Add argument.
10647 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10648 (update_current_target): Update.
10649 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10650 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10651 argument.
10652 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10653 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10654 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10655 argument.
10656 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10657 'self' argument.
10658
10659 2014-02-19 Tom Tromey <tromey@redhat.com>
10660
10661 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10662 argument.
10663 (target_can_use_hardware_watchpoint): Add argument.
10664 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10665 (update_current_target): Update.
10666 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10667 argument.
10668 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10669 argument.
10670 * remote.c (remote_check_watch_resources): Add 'self' argument.
10671 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10672 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10673 argument.
10674 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10675 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10676 argument.
10677 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10678 argument.
10679 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10680 argument.
10681 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10682 argument.
10683 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10684 argument.
10685 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10686 argument.
10687 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10688 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10689 argument.
10690 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10691 'self' argument.
10692
10693 2014-02-19 Tom Tromey <tromey@redhat.com>
10694
10695 * target.h (struct target_ops) <to_post_attach>: Add argument.
10696 (target_post_attach): Add argument.
10697 * target.c (debug_to_post_attach): Add argument.
10698 (update_current_target): Update.
10699 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10700 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10701 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10702 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10703 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10704
10705 2014-02-19 Tom Tromey <tromey@redhat.com>
10706
10707 * windows-nat.c (windows_close): Add 'self' argument.
10708 * tracepoint.c (tfile_close): Add 'self' argument.
10709 * target.h (struct target_ops) <to_close>: Add argument.
10710 * target.c (target_close): Add argument.
10711 (update_current_target): Update.
10712 * remote.c (remote_close): Add 'self' argument.
10713 * remote-sim.c (gdbsim_close): Add 'self' argument.
10714 * remote-mips.c (mips_close): Add 'self' argument.
10715 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10716 * record-full.c (record_full_close): Add 'self' argument.
10717 * record-btrace.c (record_btrace_close): Add 'self' argument.
10718 * monitor.h (monitor_close): Add 'self' argument.
10719 * monitor.c (monitor_close): Add 'self' argument.
10720 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10721 * linux-nat.c (linux_nat_close): Add argument.
10722 * go32-nat.c (go32_close): Add 'self' argument.
10723 * exec.c (exec_close_1): Add 'self' argument.
10724 * ctf.c (ctf_close): Add 'self' argument.
10725 * corelow.c (core_close): Add 'self' argument.
10726 (core_close_cleanup): Update.
10727 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10728 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10729
10730 2014-02-19 Tom Tromey <tromey@redhat.com>
10731
10732 * remote.c (remote_load): New function.
10733 (init_remote_ops): Use it.
10734
10735 2014-02-19 Tom Tromey <tromey@redhat.com>
10736
10737 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10738 argument.
10739 * common/linux-btrace.h (linux_supports_btrace): Update.
10740 * remote.c (remote_supports_btrace): Add "self" argument.
10741 * target-delegates.c: Rebuild.
10742 * target.c (target_supports_btrace): Remove.
10743 * target.h (struct target_ops) <to_supports_btrace>: Add
10744 target_ops argument.
10745 (target_supports_btrace): New define.
10746
10747 2014-02-19 Tom Tromey <tromey@redhat.com>
10748
10749 * record-full.c (record_full_beneath_to_resume_ops)
10750 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10751 (record_full_beneath_to_wait)
10752 (record_full_beneath_to_store_registers_ops)
10753 (record_full_beneath_to_store_registers)
10754 (record_full_beneath_to_xfer_partial_ops)
10755 (record_full_beneath_to_xfer_partial)
10756 (record_full_beneath_to_insert_breakpoint_ops)
10757 (record_full_beneath_to_insert_breakpoint)
10758 (record_full_beneath_to_remove_breakpoint_ops)
10759 (record_full_beneath_to_remove_breakpoint)
10760 (record_full_beneath_to_stopped_by_watchpoint)
10761 (record_full_beneath_to_stopped_data_address)
10762 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10763 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10764 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10765 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10766 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10767 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10768 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10769 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10770 (record_full_resume, record_full_wait_1)
10771 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10772 (record_full_store_registers, record_full_xfer_partial)
10773 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10774 (record_full_async, record_full_core_xfer_partial): Use target
10775 delegation.
10776 * target-delegates.c: Rebuild.
10777 * target.c (current_xfer_partial): Remove.
10778 (update_current_target): Do not INHERIT or de_fault
10779 to_insert_breakpoint, to_remove_breakpoint,
10780 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10781 to_is_async_p, to_async. Do not set to_xfer_partial field.
10782 (default_xfer_partial): Simplify.
10783 (current_xfer_partial): Remove.
10784 (target_wait, target_resume): Simplify.
10785 (find_default_can_async_p, find_default_is_async_p): Update.
10786 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10787 to_xfer_partial, to_stopped_by_watchpoint,
10788 to_stopped_data_address.
10789 (target_store_registers): Simplify.
10790 (forward_target_remove_breakpoint)
10791 (forward_target_insert_breakpoint): Remove.
10792 (target_remove_breakpoint, target_insert_breakpoint)
10793 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10794 * target.h (struct target_ops) <to_resume, to_wait,
10795 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10796 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10797 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10798 markup.
10799 (forward_target_remove_breakpoint)
10800 (forward_target_insert_breakpoint): Remove.
10801 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10802 directly.
10803 (record_btrace_insert_breakpoint): Delegate directly.
10804
10805 2014-02-19 Tom Tromey <tromey@redhat.com>
10806
10807 PR build/7701:
10808 * target-delegates.c: New file.
10809 * target.c: Include target-delegates.c.
10810 (init_dummy_target): Call install_dummy_methods.
10811 (complete_target_initialization): Call install_delegators.
10812 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10813 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10814 * make-target-delegates: New file.
10815
10816 2014-02-19 Tom Tromey <tromey@redhat.com>
10817
10818 * record.c (find_record_target): Use find_target_at.
10819 * target.c (find_target_at): New function.
10820 * target.h (find_target_at): Declare.
10821
10822 2014-02-19 Tom Tromey <tromey@redhat.com>
10823
10824 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10825 Add 'ops' argument.
10826 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10827 'ops' argument.
10828 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10829 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10830 'ops' argument.
10831 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10832 argument.
10833 * linux-nat.c (save_sigtrap): Update.
10834 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10835 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10836 (linux_nat_close): Update.
10837 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10838 argument.
10839 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10840 argument.
10841 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10842 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10843 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10844 (tmp_to_async): Add 'ops' argument.
10845 (record_full_stopped_by_watchpoint, record_full_async)
10846 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10847 argument.
10848 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10849 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10850 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10851 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10852 (remote_is_async_p, remote_async): Add 'ops' argument.
10853 (remote_stopped_data_address): Update.
10854 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10855 * target.c (update_current_target)
10856 (find_default_can_async_p, find_default_is_async_p): Update.
10857 (init_dummy_target): Update.
10858 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10859 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10860 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10861 (target_can_async_p, target_is_async_p, target_async)
10862 (target_stopped_by_watchpoint): Update.
10863
10864 2014-02-19 Yao Qi <yao@codesourcery.com>
10865
10866 PR gdb/16220
10867 * gdbarch.sh: Remove startup_gdbarch.
10868 * gdbarch.c: Regenerated.
10869 * gdbarch.h: Likewise.
10870
10871 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10872
10873 * rl78-tdep.c (rl78_g10_register_name): New function.
10874 (rl78_return_value): Add g10 support.
10875 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10876 g10.
10877
10878 2014-02-17 Doug Evans <xdje42@gmail.com>
10879
10880 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10881 (SUBDIR_GUILE_SRCS): Ditto.
10882 (scm-gsmob.o): Ditto.
10883
10884 2014-02-17 Yao Qi <yao@codesourcery.com>
10885
10886 * gnu-nat.c (ILL_RPC): Declare defined function.
10887
10888 2014-02-17 Yao Qi <yao@codesourcery.com>
10889
10890 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10891 mach_msg_type_number_t.
10892 (gnu_write_inferior): Likewise.
10893
10894 2014-02-17 Yao Qi <yao@codesourcery.com>
10895
10896 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10897 in format string.
10898 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10899 (inf_validate_procs, inf_signal): Likewise.
10900 (S_exception_raise_request): Likewise.
10901 (do_mach_notify_dead_name): Likewise.
10902 (steal_exc_port): Likewise.
10903 (gnu_read_inferior): Change 'copy_count''s type to
10904 mach_msg_type_number_t.
10905 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10906 format string.
10907
10908 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10909
10910 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10911 flag. Adjust all users; in particular...
10912 (gnu_wait): ..., don't decrement its value in here...
10913 (gnu_create_inferior): ..., and instead set the flag in here,
10914 around the startup_inferior call, and call that one with
10915 START_INFERIOR_TRAPS_EXPECTED.
10916
10917 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10918 (ILL_RPC): ... new macro.
10919 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10920 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10921 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10922 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10923 functions with ILL_RPC macro.
10924 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10925 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10926 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10927 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10928 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10929 (S_proc_getlogin_reply, S_proc_getsid_reply)
10930 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10931 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10932 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10933 (S_proc_getnports_reply, S_proc_is_important_reply)
10934 (S_proc_get_code_reply): New stub functions, generated with
10935 ILL_RPC macro.
10936
10937 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10938 collected the type check structures.
10939
10940 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10941
10942 2014-02-14 Doug Evans <dje@google.com>
10943
10944 * target.c (target_write_partial): Fix result type.
10945
10946 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10947
10948 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10949 the proper offsets to access fpregset_t.
10950
10951 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10952
10953 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10954 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10955 * h8300-tdep.c (setmachinelist): Remove global.
10956 * hppa-tdep.c (hppa_sigtramp): Remove global.
10957 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10958 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10959 * ravenscar-thread.c (update_target_observer): Remove global.
10960 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10961
10962 2014-02-12 Tom Tromey <tromey@redhat.com>
10963
10964 * common/rsp-low.c: Update comments.
10965 * common/rsp-low.h: Update comments.
10966
10967 2014-02-12 Tom Tromey <tromey@redhat.com>
10968
10969 * common/rsp-low.c (convert_ascii_to_int): Remove.
10970 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10971
10972 2014-02-12 Tom Tromey <tromey@redhat.com>
10973
10974 * common/rsp-low.h (unhexify): Don't declare.
10975 * common/rsp-low.c (unhexify): Remove.
10976
10977 2014-02-12 Tom Tromey <tromey@redhat.com>
10978
10979 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10980 * common/rsp-low.c (convert_int_to_ascii): Remove.
10981
10982 2014-02-12 Tom Tromey <tromey@redhat.com>
10983
10984 * common/rsp-low.h (hexify): Don't declare.
10985 * common/rsp-low.c (hexify): Remove.
10986
10987 2014-02-12 Tom Tromey <tromey@redhat.com>
10988
10989 * common/rsp-low.c (hexify): Never take strlen of argument.
10990
10991 2014-02-12 Tom Tromey <tromey@redhat.com>
10992
10993 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10994 * remote.c (extended_remote_run, remote_rcmd)
10995 (remote_download_trace_state_variable, remote_save_trace_data)
10996 (remote_set_trace_notes): Update.
10997 * tracepoint.c (encode_source_string, tfile_write_status)
10998 (tfile_write_uploaded_tsv): Update.
10999
11000 2014-02-12 Tom Tromey <tromey@redhat.com>
11001
11002 * tracepoint.c: Include rsp-low.h.
11003 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11004 * remote.c: Include rsp-low.h.
11005 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11006 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11007 (remote_unescape_input): Move to common/rsp-low.c.
11008 * common/rsp-low.h: New file.
11009 * common/rsp-low.c: New file.
11010 * Makefile.in (SFILES): Add common/rsp-low.c.
11011 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11012 (COMMON_OBS): Add rsp-low.o.
11013 (rsp-low.o): New target.
11014
11015 2014-02-12 Tom Tromey <tromey@redhat.com>
11016
11017 * utils.h: Include print-utils.h.
11018 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11019 (int_string, core_addr_to_string, core_addr_to_string_nz)
11020 (hex_string, hex_string_custom): Don't declare.
11021 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11022 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11023 (hex_string_custom, int_string, core_addr_to_string)
11024 (core_addr_to_string_nz, host_address_to_string): Move to
11025 common/print-utils.c.
11026 * common/print-utils.h: New file.
11027 * common/print-utils.c: New file
11028 * Makefile.in (SFILES): Add common/print-utils.c.
11029 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11030 (COMMON_OBS): Add print-utils.o.
11031 (print-utils.o): New target.
11032
11033 2014-02-12 Tom Tromey <tromey@redhat.com>
11034
11035 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11036
11037 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11038
11039 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11040
11041 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11042
11043 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11044 if a PT_IO ptrace request returns sucessfully but indicates that 0
11045 bytes were transferred.
11046
11047 2014-02-12 Pedro Alves <palves@redhat.com>
11048 Kevin Buettner <kevinb@redhat.com>
11049
11050 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11051 TYPE_INSTANCE_FLAG_CODE_SPACE.
11052
11053 2014-02-12 Pedro Alves <palves@redhat.com>
11054
11055 * h8300-tdep.c (pseudo_from_raw_register)
11056 (raw_from_pseudo_register): New functions.
11057 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11058 them.
11059
11060 2014-02-12 Pedro Alves <palves@redhat.com>
11061
11062 * h8300-tdep.c (h8300_register_sim_regno): New function.
11063 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11064 gdbarch_register_sim_regno hook.
11065
11066 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11067
11068 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11069
11070 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11071
11072 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11073
11074 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11075
11076 * obsd-tdep.h (obsd_init_abi): New prototype.
11077 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11078 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11079 (obsd_init_abi): New functions.
11080 * i386obsd-tdep.c: Include "obsd-tdep.h".
11081 (i386obsd_init_abi): Call obsd_init_abi.
11082 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11083 (amd64obsd_init_abi): Call obsd_init_abi.
11084 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11085 obsd-tdep.c to gdb_target_obs.
11086
11087 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11088
11089 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11090 double float arguments to 16-byte in the argument slots.
11091
11092 2014-02-11 Doug Evans <xdje42@gmail.com>
11093
11094 * configure.ac: Don't crash if pkg-config is not found and guile
11095 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11096 in guile checks.
11097 * configure: Regenerate.
11098
11099 2014-02-11 Yao Qi <yao@codesourcery.com>
11100
11101 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11102 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11103 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11104 * gnu-nat.c (gnu_xfer_memory): Likewise.
11105 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11106 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11107 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11108 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11109
11110 2014-02-11 Yao Qi <yao@codesourcery.com>
11111
11112 * target.h (enum target_xfer_error): Rename to ...
11113 (enum target_xfer_status): ... it. New. All users updated.
11114 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11115 New.
11116 (TARGET_XFER_STATUS_ERROR_P): New macro.
11117 (target_xfer_error_to_string): Remove declaration.
11118 (target_xfer_status_to_string): Declare.
11119 (target_xfer_partial_ftype): Adjust it.
11120 (struct target_ops) <to_xfer_partial>: Return
11121 target_xfer_status. Add argument xfered_len. Update
11122 comments.
11123 * target.c (target_xfer_error_to_string): Rename to ...
11124 (target_xfer_status_to_string): ... it. New. All callers
11125 updated.
11126 (target_read_live_memory): Likewise. Call target_xfer_partial
11127 instead of target_read.
11128 (memory_xfer_live_readonly_partial): Return
11129 target_xfer_status. Add argument xfered_len.
11130 (raw_memory_xfer_partial): Likewise.
11131 (memory_xfer_partial_1): Likewise.
11132 (memory_xfer_partial): Likewise.
11133 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11134 properly. Update debug message.
11135 (default_xfer_partial, current_xfer_partial): Likewise.
11136 (target_write_partial): Likewise.
11137 (target_read_partial): Likewise. All callers updated.
11138 (read_whatever_is_readable): Likewise.
11139 (target_write_with_progress): Likewise.
11140 (target_read_alloc_1): Likewise.
11141
11142 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11143 * auxv.c (procfs_xfer_auxv): Likewise.
11144 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11145 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11146 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11147 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11148 * corefile.c (read_memory): Adjust.
11149 * corelow.c (core_xfer_partial): Likewise.
11150 * ctf.c (ctf_xfer_partial): Likewise.
11151 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11152 updated.
11153 (darwin_xfer_partial): Likewise.
11154 * exec.c (section_table_xfer_memory_partial): Likewise. All
11155 callers updated.
11156 (exec_xfer_partial): Likewise.
11157 * exec.h (section_table_xfer_memory_partial): Update
11158 declaration.
11159 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11160 negative.
11161 (gnu_xfer_partial): Likewise.
11162 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11163 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11164 (ia64_hpux_xfer_solib_got): Likewise.
11165 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11166 type of 'partial_len' to ULONGEST.
11167 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11168 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11169 (linux_nat_xfer_partial): Likewise.
11170 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11171 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11172 * monitor.c (monitor_xfer_memory): Likewise.
11173 (monitor_xfer_partial): Likewise.
11174 * procfs.c (procfs_xfer_partial): Likewise.
11175 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11176 * record-full.c (record_full_xfer_partial): Likewise.
11177 (record_full_core_xfer_partial): Likewise.
11178 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11179 (gdbsim_xfer_partial): Likewise.
11180 * remote.c (remote_write_bytes_aux): Likewise. All callers
11181 updated.
11182 (remote_write_bytes, remote_read_bytes): Likewise. All
11183 callers updated.
11184 (remote_flash_erase): Likewise. All callers updated.
11185 (remote_write_qxfer): Likewise. All callers updated.
11186 (remote_read_qxfer): Likewise. All callers updated.
11187 (remote_xfer_partial): Likewise.
11188 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11189 (rs6000_xfer_shared_libraries): Likewise.
11190 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11191 (sol_thread_xfer_partial): Likewise.
11192 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11193 (sparc_xfer_partial): Likewise.
11194 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11195 updated.
11196 (spu_xfer_partial): Likewise.
11197 * spu-multiarch.c (spu_xfer_partial): Likewise.
11198 * tracepoint.c (tfile_xfer_partial): Likewise.
11199 * windows-nat.c (windows_xfer_memory): Likewise.
11200 (windows_xfer_shared_libraries): Likewise.
11201 (windows_xfer_partial): Likewise.
11202 * valprint.c: Replace 'target_xfer_error' with
11203 'target_xfer_status' in comments.
11204
11205 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11206
11207 Checked in by Joel Brobecker <brobecker@adacore.com>.
11208 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11209
11210 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11211
11212 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11213 function parameters.
11214
11215 2014-02-10 Will Newton <will.newton@linaro.org>
11216
11217 * elfread.c (elf_rel_plt_read): Look for a .got section if
11218 looking up .got.plt fails.
11219 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11220 on address passed to elf_gnu_ifunc_record_cache.
11221 (elf_gnu_ifunc_resolve_addr): Likewise.
11222 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11223
11224 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11225
11226 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11227 (X_RETTURN): New macro.
11228 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11229
11230 * sparc64-tdep.c (sparc64_init_abi): Hook
11231 sparc_in_function_epilogue_p.
11232
11233 2014-02-10 Gary Benson <gbenson@redhat.com>
11234
11235 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11236 Rename name_matcher to symbol_matcher.
11237
11238 2014-02-10 Gary Benson <gbenson@redhat.com>
11239
11240 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11241 Use expand_symtabs_file_matcher_ftype and
11242 expand_symtabs_symbol_matcher_ftype.
11243
11244 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11245
11246 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11247 (struct ada_symbol_cache): New.
11248 (ada_free_symbol_cache): Forward declare.
11249 (struct ada_pspace_data): New.
11250 (ada_pspace_data_handle): New static global.
11251 (get_ada_pspace_data, ada_pspace_data_cleanup)
11252 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11253 (cache_space, cache): Delete, now folded inside struct
11254 ada_pspace_data.
11255 (ada_get_symbol_cache): New function.
11256 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11257 implementation.
11258 (_initialize_ada_language): Remove initialization of cache_space.
11259 Move call to observer_attach_inferior_exit up, grouping it
11260 with the other observer registrations inside this function.
11261 Rename command to be more general. Add call to
11262 register_program_space_data_with_cleanup.
11263
11264 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11265
11266 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11267 ada_new_objfile_observer.
11268 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11269 (_initialize_tasks): Update uses of ada_new_objfile_observer
11270 and ada_tasks_normal_stop_observer.
11271
11272 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11273
11274 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11275 returned by the 'Length attribute to integer.
11276
11277 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11278
11279 * ada-lang.c (_initialize_ada_language): Initialize
11280 cache_space obstack.
11281
11282 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11283
11284 * ada-lang.c (HASH_SIZE): New macro.
11285 (struct cache_entry): New type.
11286 (cache_space, cache): New static globals.
11287 (ada_clear_symbol_cache, find_entry): New functions.
11288 (lookup_cached_symbol, cache_symbol): Implement.
11289 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11290 (_initialize_ada_language): Attach ada_new_objfile_observer
11291 and ada_free_objfile_observer.
11292
11293 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11294
11295 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11296 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11297 struct block * parameter.
11298 (ada_lookup_symbol_list_worker): Constify local variable "block".
11299 Remove cast which is no longer necessary.
11300
11301 2014-02-10 Doug Evans <xdje42@gmail.com>
11302
11303 Add Guile as an extension language.
11304 * NEWS: Mention Guile scripting.
11305 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11306 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11307 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11308 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11309 (CLIBS): Add GUILE_LIBS.
11310 (install-guile): New rule.
11311 (guile.o): New rule.
11312 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11313 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11314 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11315 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11316 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11317 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11318 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11319 * configure.ac: New option --with-guile.
11320 * configure: Regenerate.
11321 * config.in: Regenerate.
11322 * auto-load.c: Remove #include "python/python.h". Add #include
11323 "gdb/section-scripts.h".
11324 (source_section_scripts): Handle Guile scripts.
11325 (_initialize_auto_load): Add name of Guile objfile script to
11326 scripts-directory help text.
11327 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11328 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11329 (struct breakpoint): New member scm_bp_object.
11330 * defs.h (enum command_control_type): New value guile_control.
11331 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11332 "extension.h".
11333 (show_user): Update comment.
11334 (_initialize_cli_cmds): Update help text for "show user". Update help
11335 text for max-user-call-depth.
11336 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11337 "extension.h".
11338 (multi_line_command_p): Add guile_control.
11339 (print_command_lines): Handle guile_control.
11340 (execute_control_command, recurse_read_control_structure): Ditto.
11341 (process_next_line): Recognize "guile" commands.
11342 * disasm.c (gdb_disassemble_info): Make non-static.
11343 * disasm.h: #include "dis-asm.h".
11344 (struct gdbarch): Add forward decl.
11345 (gdb_disassemble_info): Declare.
11346 * extension.c: #include "guile/guile.h".
11347 (extension_languages): Add guile.
11348 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11349 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11350 * gdbtypes.c (get_unsigned_type_max): New function.
11351 (get_signed_type_minmax): New function.
11352 * gdbtypes.h (get_unsigned_type_max): Declare.
11353 (get_signed_type_minmax): Declare.
11354 * guile/README: New file.
11355 * guile/guile-internal.h: New file.
11356 * guile/guile.c: New file.
11357 * guile/guile.h: New file.
11358 * guile/scm-arch.c: New file.
11359 * guile/scm-auto-load.c: New file.
11360 * guile/scm-block.c: New file.
11361 * guile/scm-breakpoint.c: New file.
11362 * guile/scm-disasm.c: New file.
11363 * guile/scm-exception.c: New file.
11364 * guile/scm-frame.c: New file.
11365 * guile/scm-gsmob.c: New file.
11366 * guile/scm-iterator.c: New file.
11367 * guile/scm-lazy-string.c: New file.
11368 * guile/scm-math.c: New file.
11369 * guile/scm-objfile.c: New file.
11370 * guile/scm-ports.c: New file.
11371 * guile/scm-pretty-print.c: New file.
11372 * guile/scm-safe-call.c: New file.
11373 * guile/scm-string.c: New file.
11374 * guile/scm-symbol.c: New file.
11375 * guile/scm-symtab.c: New file.
11376 * guile/scm-type.c: New file.
11377 * guile/scm-utils.c: New file.
11378 * guile/scm-value.c: New file.
11379 * guile/lib/gdb.scm: New file.
11380 * guile/lib/gdb/boot.scm: New file.
11381 * guile/lib/gdb/experimental.scm: New file.
11382 * guile/lib/gdb/init.scm: New file.
11383 * guile/lib/gdb/iterator.scm: New file.
11384 * guile/lib/gdb/printing.scm: New file.
11385 * guile/lib/gdb/types.scm: New file.
11386 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11387 (VPATH): Add $(GUILE_SRCDIR).
11388 (GUILE_DIR): New variable.
11389 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11390 (all): Add stamp-guile dependency.
11391 (stamp-guile): New rule.
11392 (clean-guile, install-guile, uninstall-guile): New rules.
11393 (install-only): Add install-guile dependency.
11394 (uninstall): Add uninstall-guile dependency.
11395 (clean): Add clean-guile dependency.
11396
11397 2014-02-09 Doug Evans <xdje42@gmail.com>
11398
11399 Revert this patch (which I approved, mea culpa).
11400
11401 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11402
11403 * Makefile.in (all-lib): Remove.
11404 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11405
11406 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11407
11408 Fix Python stack corruption.
11409 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11410 gdb_py_longest.
11411
11412 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11413
11414 * Makefile.in (all-lib): Remove.
11415 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11416
11417 2014-02-07 Doug Evans <dje@google.com>
11418
11419 * extension-priv.h (extension_language_script_ops): Add comment.
11420 (extension_language_ops): Add comment.
11421 (active_ext_lang_state): Fix typo in comment.
11422
11423 2014-02-07 Pedro Alves <palves@redhat.com>
11424
11425 PR breakpoints/16292
11426 * infrun.c (handle_signal_stop) <signal arrives while stepping
11427 over a breakpoint>: Switch back to the stepping thread.
11428
11429 2014-02-07 Yao Qi <yao@codesourcery.com>
11430
11431 * target.c (target_xfer_partial): Return zero if LEN is zero.
11432
11433 2014-02-07 Yao Qi <yao@codesourcery.com>
11434
11435 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11436 (ld_so_xfer_auxv): Likewise.
11437 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11438 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11439 * corelow.c (core_xfer_partial): Likewise.
11440 * ctf.c (ctf_xfer_partial): Likewise.
11441 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11442 (darwin_xfer_partial): Likewise.
11443 * exec.c (exec_xfer_partial): Likewise.
11444 * gnu-nat.c (gnu_xfer_partial): Likewise.
11445 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11446 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11447 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11448 * linux-nat.c (linux_xfer_siginfo): Likewise.
11449 (linux_proc_xfer_spu): Likewise.
11450 * procfs.c (procfs_xfer_partial): Likewise.
11451 * record-full.c (record_full_xfer_partial): Likewise.
11452 (record_full_core_xfer_partial): Likewise.
11453 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11454 * remote.c (remote_write_qxfer): Likewise.
11455 (remote_write_qxfer, remote_read_qxfer): Likewise.
11456 (remote_xfer_partial): Likewise.
11457 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11458 (rs6000_xfer_shared_libraries): Likewise.
11459 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11460 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11461 (spu_xfer_partial): Likewise.
11462 * target.c (memory_xfer_partial_1): Likewise.
11463 * tracepoint.c (tfile_xfer_partial): Likewise.
11464 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11465 (windows_xfer_partial): Likewise.
11466
11467 2014-02-07 Yao Qi <yao@codesourcery.com>
11468
11469 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11470 comments.
11471 (core_xfer_shared_libraries_aix): Likewise.
11472 * gdbarch.c, gdbarch.h: Regenerated.
11473 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11474 ULONGEST. Change 'len_avail' type to ULONGEST.
11475 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11476 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11477 declaration.
11478 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11479
11480 2014-02-07 Yao Qi <yao@codesourcery.com>
11481
11482 * corefile.c (memory_error): Get 'exception' from ERR and pass
11483 'exception' to throw_error.
11484
11485 2014-02-06 Doug Evans <xdje42@gmail.com>
11486
11487 * configure.ac (libpython checking): Remove all but python.o from
11488 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11489 * configure: Regenerate.
11490
11491 * Makefile.in (SFILES): Add extension.c.
11492 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11493 (COMMON_OBS): Add extension.o.
11494 * extension.h: New file.
11495 * extension-priv.h: New file.
11496 * extension.c: New file.
11497
11498 * python/python-internal.h: #include "extension.h".
11499 (gdbpy_auto_load_enabled): Declare.
11500 (gdbpy_apply_val_pretty_printer): Declare.
11501 (gdbpy_apply_frame_filter): Declare.
11502 (gdbpy_preserve_values): Declare.
11503 (gdbpy_breakpoint_cond_says_stop): Declare.
11504 (gdbpy_breakpoint_has_cond): Declare.
11505 (void source_python_script_for_objfile): Delete.
11506 * python/python.c: #include "extension-priv.h".
11507 Delete inclusion of "observer.h".
11508 (extension_language_python): Moved here and renamed from
11509 script_language_python in py-auto-load.c.
11510 Redefined to be of type extension_language_defn.
11511 (python_extension_script_ops): New global.
11512 (python_extension_ops): New global.
11513 (struct python_env): New member previous_active.
11514 (restore_python_env): Call restore_active_ext_lang.
11515 (ensure_python_env): Call set_active_ext_lang.
11516 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11517 New arg extlang.
11518 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11519 New arg extlang.
11520 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11521 New arg extlang.
11522 (gdbpy_eval_from_control_command): Renamed from
11523 eval_python_from_control_command, made static. New arg extlang.
11524 (gdbpy_source_script) Renamed from source_python_script, made static.
11525 New arg extlang.
11526 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11527 result to int. New arg extlang.
11528 (gdbpy_source_objfile_script): Renamed from
11529 source_python_script_for_objfile, made static. New arg extlang.
11530 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11531 static. New args extlang, extlang_printers. Change result type to
11532 "void".
11533 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11534 static. New arg extlang. Rename arg printers to extlang_printers
11535 and change type to ext_lang_type_printers *.
11536 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11537 static. Replace argument arg with extlang, extlang_printers.
11538 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11539 (!HAVE_PYTHON, source_python_script): Delete.
11540 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11541 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11542 (!HAVE_PYTHON, start_type_printers): Delete.
11543 (!HAVE_PYTHON, apply_type_printers): Delete.
11544 (!HAVE_PYTHON, free_type_printers): Delete.
11545 (_initialize_python): Delete call to observer_attach_before_prompt.
11546 (finalize_python): Set/restore active extension language.
11547 (gdbpy_finish_initialization) Renamed from
11548 finish_python_initialization, made static. New arg extlang.
11549 (gdbpy_initialized): New function.
11550 * python/python.h: #include "extension.h". Delete #include
11551 "value.h", "mi/mi-cmds.h".
11552 (extension_language_python): Declare.
11553 (GDBPY_AUTO_FILE_NAME): Delete.
11554 (enum py_bt_status): Moved to extension.h and renamed to
11555 ext_lang_bt_status.
11556 (enum frame_filter_flags): Moved to extension.h.
11557 (enum py_frame_args): Moved to extension.h and renamed to
11558 ext_lang_frame_args.
11559 (finish_python_initialization): Delete.
11560 (eval_python_from_control_command): Delete.
11561 (source_python_script): Delete.
11562 (apply_val_pretty_printer): Delete.
11563 (apply_frame_filter): Delete.
11564 (preserve_python_values): Delete.
11565 (gdbpy_script_language_defn): Delete.
11566 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11567 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11568
11569 * auto-load.c: #include "extension.h".
11570 (GDB_AUTO_FILE_NAME): Delete.
11571 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11572 (script_language_gdb): Delete, moved to extension.c and renamed to
11573 extension_language_gdb.
11574 (source_gdb_script_for_objfile): Delete.
11575 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11576 (loaded_script): Change type of language member to
11577 struct extension_language_defn *.
11578 (init_loaded_scripts_info): Initialize
11579 unsupported_script_warning_printed.
11580 (maybe_add_script): Make static. Change type of language arg to
11581 struct extension_language_defn *.
11582 (clear_section_scripts): Reset unsupported_script_warning_printed.
11583 (auto_load_objfile_script_1): Rewrite to use extension language API.
11584 (auto_load_objfile_script): Make public. Remove support-compiled-in
11585 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11586 (source_section_scripts): Rewrite to use extension language API.
11587 (load_auto_scripts_for_objfile): Rewrite to use
11588 auto_load_scripts_for_objfile.
11589 (collect_matching_scripts_data): Change type of language member to
11590 struct extension_language_defn *.
11591 (auto_load_info_scripts): Change type of language arg to
11592 struct extension_language_defn *.
11593 (unsupported_script_warning_print): New function.
11594 (script_not_found_warning_print): Make static.
11595 (_initialize_auto_load): Rewrite construction of scripts-directory
11596 help.
11597 * auto-load.h (struct objfile): Add forward decl.
11598 (struct script_language): Delete.
11599 (struct auto_load_pspace_info): Add forward decl.
11600 (struct extension_language_defn): Add forward decl.
11601 (maybe_add_script): Delete.
11602 (auto_load_objfile_script): Declare.
11603 (script_not_found_warning_print): Delete.
11604 (auto_load_info_scripts): Update prototype.
11605 (auto_load_gdb_scripts_enabled): Declare.
11606 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11607 auto_load_python_scripts_enabled and made public.
11608 (script_language_python): Delete, moved to python.c.
11609 (gdbpy_script_language_defn): Delete.
11610 (info_auto_load_python_scripts): Update to use
11611 extension_language_python.
11612
11613 * breakpoint.c (condition_command): Replace call to
11614 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11615 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11616 with call to breakpoint_ext_lang_cond_says_stop.
11617 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11618 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11619 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11620 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11621 New arg slang.
11622 (local_setattro): Print name of extension language with existing
11623 stop condition.
11624
11625 * valprint.c (val_print, value_print): Update to call
11626 apply_ext_lang_val_pretty_printer.
11627 * cp-valprint.c (cp_print_value): Update call to
11628 apply_ext_lang_val_pretty_printer.
11629 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11630 (gdbpy_apply_val_pretty_printer): Renamed from
11631 apply_val_pretty_printer. New arg extlang.
11632 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11633
11634 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11635 extension language API.
11636 * cli/cli-script.c (execute_control_command): Update to call
11637 eval_ext_lang_from_control_command.
11638
11639 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11640 enum ext_lang_bt_status values. Update call to
11641 apply_ext_lang_frame_filter.
11642 (mi_cmd_stack_list_locals): Ditto.
11643 (mi_cmd_stack_list_args): Ditto.
11644 (mi_cmd_stack_list_variables): Ditto.
11645 * mi/mi-main.c: Delete #include "python/python-internal.h".
11646 Add #include "extension.h".
11647 (mi_cmd_list_features): Replace reference to python internal variable
11648 gdb_python_initialized with call to ext_lang_initialized_p.
11649
11650 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11651 Update to use enum ext_lang_frame_args. Update to call
11652 apply_ext_lang_frame_filter.
11653 * python/py-framefilter.c (extract_sym): Update to use enum
11654 ext_lang_bt_status.
11655 (extract_value, py_print_type, py_print_value): Ditto.
11656 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11657 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11658 (py_print_frame): Ditto.
11659 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11660 New arg extlang. Update to use enum ext_lang_bt_status.
11661
11662 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11663 finish_python_initialization. Replace with call to
11664 finish_ext_lang_initialization.
11665
11666 * typeprint.c (do_free_global_table): Update to call
11667 free_ext_lang_type_printers.
11668 (create_global_typedef_table): Update to call
11669 start_ext_lang_type_printers.
11670 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11671 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11672 (type_print_options): Change type of global_printers from "void *"
11673 to "struct ext_lang_type_printers *".
11674
11675 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11676 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11677 (gdbpy_preserve_values): Renamed from preserve_python_values.
11678 New arg extlang.
11679 (!HAVE_PYTHON, preserve_python_values): Delete.
11680
11681 * utils.c (quit_flag): Delete, moved to extension.c.
11682 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11683 extension.c.
11684
11685 * eval.c: Delete #include "python/python.h".
11686 * main.c: Delete #include "python/python.h".
11687
11688 * defs.h: Update comment.
11689
11690 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11691
11692 GDB 7.7 released.
11693
11694 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11695
11696 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11697 defined.
11698
11699 2014-02-05 Yao Qi <yao@codesourcery.com>
11700
11701 * remote.c (remote_pass_signals): Remove local 'buf' and use
11702 rs->buf.
11703 (remote_program_signals): Likewise.
11704
11705 2014-02-05 Yao Qi <yao@codesourcery.com>
11706
11707 * ctf.c: Include "inferior.h" and "gdbthread.h".
11708 (CTF_PID): A new macro.
11709 (ctf_open): Call inferior_appeared and add_thread_silent.
11710 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11711 (ctf_thread_alive): New function.
11712 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11713
11714 2014-02-05 Yao Qi <yao@codesourcery.com>
11715
11716 Revert this patch:
11717
11718 2013-05-24 Yao Qi <yao@codesourcery.com>
11719
11720 * tracepoint.c (TFILE_PID): Remove.
11721 (tfile_open): Don't add thread and inferior.
11722 (tfile_close): Don't set 'inferior_ptid'. Don't call
11723 exit_inferior_silent.
11724 (tfile_thread_alive): Remove.
11725 (init_tfile_ops): Don't set field 'to_thread_alive' of
11726 tfile_ops.
11727
11728 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11729
11730 * remote.c (remote_start_remote): Call remote_check_symbols even
11731 if only symbol-file (not file) has been given.
11732
11733 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11734
11735 * gdbarch.sh (skip_entrypoint): New callback.
11736 * gdbarch.c, gdbarch.h: Regenerate.
11737 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11738 * infrun.c (fill_in_stop_func): Likewise.
11739 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11740 (ppc_elfv2_elf_make_msymbol_special): New function.
11741 (ppc_elfv2_skip_entrypoint): Likewise.
11742 (ppc_linux_init_abi): Install them for ELFv2.
11743
11744 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11745
11746 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11747 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11748 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11749 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11750 structures returned in GPRs.
11751
11752 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11753
11754 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11755 offset to the stack parameter list for the ELFv2 ABI.
11756
11757 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11758
11759 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11760 set_gdbarch_convert_from_func_ptr_addr and
11761 set_gdbarch_elf_make_msymbol_special for ELFv1.
11762 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11763 function descriptors on ELFv1.
11764 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11765 set up r12 at function entry.
11766
11767 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11768
11769 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11770 (struct gdbarch_tdep): New member elf_abi.
11771
11772 * rs6000-tdep.c: Include "elf/ppc64.h".
11773 (rs6000_gdbarch_init): Detect ELF ABI version.
11774
11775 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11776
11777 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11778 within a register pair holding a DFP 128-bit value on little-endian.
11779 (ppc64_sysv_abi_return_value_base): Likewise.
11780 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11781 (dfp_pseudo_register_write): Likewise.
11782
11783 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11784
11785 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11786 offset on little-endian when passing _Decimal32.
11787 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11788
11789 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11790
11791 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11792 of the overlapped FP register within the VSX register on little-
11793 endian platforms.
11794 (efpr_pseudo_register_write): Likewise.
11795
11796 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11797
11798 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11799 offset on little-endian when passing small structures.
11800
11801 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11802
11803 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11804 (struct ppc64_sysv_argpos): New data structure.
11805 (ppc64_sysv_abi_push_float): Remove.
11806 (ppc64_sysv_abi_push_val): New function.
11807 (ppc64_sysv_abi_push_integer): Likewise.
11808 (ppc64_sysv_abi_push_freg): Likewise.
11809 (ppc64_sysv_abi_push_vreg): Likewise.
11810 (ppc64_sysv_abi_push_param): Likewise.
11811 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11812 (ppc64_sysv_abi_return_value_base): New function.
11813 (ppc64_sysv_abi_return_value): Refactor to use it.
11814
11815 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11816
11817 * NEWS: Document new target powerpc64le-*-linux*.
11818
11819 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11820
11821 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11822 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11823 core dumps.
11824 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11825 register set used in ELF core dumps. Add floating-point register set.
11826
11827 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11828
11829 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11830 dwarf2_to_gdb[] table using symbolic constants. Adjust
11831 penultimate entry from number representing the PC register
11832 to symbolic constant representing the MDR register. Add
11833 constant for the PC register to the end of the table.
11834
11835 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11836
11837 * bsd-kvm.c: Include <sys/param.h>
11838
11839 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11840
11841 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11842
11843 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11844
11845 * ada-lang.h (clear_ada_sym_cache): Delete.
11846
11847 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11848
11849 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11850
11851 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11852
11853 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11854 the sigreturn register save area only if the syscall is
11855 sigreturn.
11856
11857 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11858
11859 * valops.c (value_slice): Minor reformatting.
11860
11861 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11862
11863 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11864
11865 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11866
11867 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11868 New static globals.
11869 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11870 (ada_ignore_descriptive_types_p): New static global.
11871 (find_parallel_type_by_descriptive_type): Return immediately
11872 if ada_ignore_descriptive_types_p is set.
11873 (_initialize_ada_language): Register new commands "maintenance
11874 set ada", "maintenance show ada", "maintenance set ada
11875 ignore-descriptive-types" and "maintenance show ada
11876 ignore-descriptive-types".
11877 * NEWS: Add entry for new "maint ada set/show
11878 ignore-descriptive-types" commands.
11879
11880 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11881
11882 * record-btrace.c (record_btrace_close): Call btrace_teardown
11883 for all threads.
11884
11885 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11886
11887 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11888 "ui-out.h".
11889
11890 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11891
11892 * ada-typeprint (type_is_full_subrange_of_target_type):
11893 New function.
11894 (print_range): Add parameter bounds_prefered_p. If not set,
11895 try printing range types using the name of their base type.
11896 (print_range_type): Add parameter bounds_prefered_p.
11897 Use it in call to print_range.
11898 (print_array_type, ada_print_type): Update calls to print_range
11899 and print_range_type.
11900
11901 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11902
11903 * ada-typeprint.c (print_array_type, print_choices, print_range)
11904 (print_range_bound, print_dynamic_range_bound, print_range_type):
11905 Remove declaration.
11906
11907 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11908
11909 * ada-typeprint.c (print_range): Add missing empty line
11910 after local declaration.
11911
11912 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11913
11914 * ada-valprint.c (print_optional_low_bound): Get index_type's
11915 target type for as long as it is a TYPE_CODE_RANGE.
11916
11917 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11918
11919 * procfs.c (procfs_make_note_section): Remove assertion and
11920 associated comment.
11921
11922 2014-01-24 Yao Qi <yao@codesourcery.com>
11923
11924 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11925 * corelow.c (get_core_siginfo): Likewise.
11926
11927 2014-01-24 Yao Qi <yao@codesourcery.com>
11928
11929 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11930 ULONGEST. Don't check 'len' is negative.
11931 (remote_write_bytes): Change type of 'len' to ULONGEST.
11932
11933 2014-01-23 Tom Tromey <tromey@redhat.com>
11934
11935 PR python/16485:
11936 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11937 Handle exception from frame.block.
11938 (FrameVars.fetch_frame_locals): Likewise.
11939
11940 2014-01-23 Tom Tromey <tromey@redhat.com>
11941
11942 PR python/16487:
11943 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11944 on a NULL pointer. Move "goto error" to correct place.
11945
11946 2014-01-23 Tom Tromey <tromey@redhat.com>
11947
11948 PR python/16491:
11949 * python/py-framefilter.c (apply_frame_filter): Call
11950 ensure_python_env after computing gdbarch.
11951
11952 2014-01-23 Yao Qi <yao@codesourcery.com>
11953
11954 * target.c (raw_memory_xfer_partial): Change argument type
11955 from void * to gdb_byte *.
11956 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11957
11958 2014-01-22 Doug Evans <dje@google.com>
11959
11960 New gdbserver option --debug-format=timestamp.
11961 * NEWS: Mention it.
11962
11963 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11964
11965 * syscalls/s390x-linux.xml: New file.
11966 * syscalls/s390-linux.xml: New file.
11967 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11968 (XML_SYSCALL_FILENAME_S390X): Likewise.
11969 (op_svc): New enum value for SVC opcode.
11970 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11971 (s390_linux_get_syscall_number): New function.
11972 (s390_gdbarch_init): Register '*get_syscall_number' and the
11973 syscall xml file name.
11974 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11975 "s390-linux.xml" and "s390x-linux.xml".
11976 * NEWS: Announce new feature.
11977
11978 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11979
11980 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11981
11982 2014-01-22 Pedro Alves <palves@redhat.com>
11983
11984 * xtensa-config.c: Include defs.h.
11985
11986 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11987
11988 * common/common-utils.h: Add "ARI:" comment beside __func__
11989 reference.
11990
11991 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11992
11993 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11994 documentation a bit.
11995
11996 2014-01-21 Roland McGrath <mcgrathr@google.com>
11997
11998 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11999 * configure: Regenerate.
12000 * aclocal.m4: Regenerate.
12001 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12002 New substituted variables.
12003 (install-strip): New target.
12004 (INSTALL_SCRIPT): New substituted variable.
12005 (FLAGS_TO_PASS): Add it.
12006 (install-only): Use $(INSTALL_SCRIPT) rather than
12007 $(INSTALL_PROGRAM) for gcore.
12008
12009 2014-01-20 Tom Tromey <tromey@redhat.com>
12010
12011 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12012 together.
12013
12014 2014-01-20 Tom Tromey <tromey@redhat.com>
12015
12016 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12017 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12018 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12019 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12020 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12021 (struct cmd_list_element) <flags>: Remove.
12022 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12023 doc_allocated>: New fields.
12024 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12025 bitfields.
12026 * maint.c (maintenance_do_deprecate): Update.
12027 * top.c (execute_command): Update.
12028
12029 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12030
12031 * xtensa-linux-nat.c: Include asm/ptrace.h.
12032
12033 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12034
12035 * Makefile.in (SFILES): Add d-support.c.
12036 (COMMON_OBS): Add d-support.o.
12037 * d-lang.h (d_parse_symbol): Add comment, now defined in
12038 d-support.c.
12039 * d-lang.c (parse_call_convention)
12040 (parse_attributes, parse_function_types)
12041 (parse_function_args, parse_type, parse_identifier)
12042 (call_convention_p, d_parse_symbol): Move functions to ...
12043 * d-support.c: ... New file.
12044
12045 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12046
12047 * d-lang.h (d_parse_symbol): Add declaration.
12048 * d-lang.c (extract_identifiers)
12049 (extract_type_info): Remove functions.
12050 (parse_call_convention, parse_attributes)
12051 (parse_function_types, parse_function_args)
12052 (parse_type, parse_identifier, call_convention_p)
12053 (d_parse_symbol): New functions.
12054 (d_demangle): Use d_parse_symbol to demangle D symbols.
12055
12056 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12057
12058 * d-lang.h (struct builtin_d_type): New data type.
12059 (builtin_d_type): Add declaration.
12060 * d-lang.c (d_language_arch_info, build_d_types)
12061 (builtin_d_type): New functions.
12062 (enum d_primitive_types): New data type.
12063 (d_language_defn): Change c_language_arch_info to
12064 d_language_arch_info.
12065 (d_type_data): New static variable.
12066 (_initialize_d_language): Initialize d_type_data.
12067
12068 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12069
12070 * d-lang.h (d_main_name): Add declaration.
12071 * d-lang.c (d_main_name): New function.
12072 * symtab.c (find_main_name): Add call to d_main_name.
12073
12074 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12075
12076 * d-lang.c (d_language_defn): Change macro_expansion_c to
12077 macro_expansion_no.
12078
12079 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12080
12081 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12082
12083 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12084
12085 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12086 gdb_exception" declaration.
12087 * remote.c (getpkt_or_notif_sane): Likewise.
12088
12089 2014-01-17 Doug Evans <dje@google.com>
12090
12091 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12092 function, contents of dirnames_to_char_ptr_vec_append moved here.
12093 (delim_string_to_char_ptr_vec): New function.
12094 (dirnames_to_char_ptr_vec_append): Rewrite.
12095 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12096
12097 2014-01-17 Doug Evans <dje@google.com>
12098
12099 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12100 and moved here ...
12101 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12102 #include "common-utils.h".
12103 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12104 * common/vec.h (VEC_ASSERT_PASS): Update.
12105 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12106 (MACH_CHECK_ERROR): Update.
12107
12108 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12109
12110 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12111 comments.
12112 * gdbarch.h: Regenerate.
12113
12114 2014-01-16 Tom Tromey <tromey@redhat.com>
12115
12116 * value.c (struct value) <regnum>: Move earlier.
12117
12118 2014-01-16 Tom Tromey <tromey@redhat.com>
12119
12120 * remote.c (extended_remote_create_inferior): Rename from
12121 extended_remote_create_inferior_1. Add "ops" argument. Remove
12122 old implementation.
12123
12124 2014-01-16 Pedro Alves <palves@redhat.com>
12125
12126 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12127 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12128 the backchain.
12129
12130 2014-01-16 Doug Evans <dje@google.com>
12131
12132 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12133
12134 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12135
12136 * btrace.h (btrace_thread_flag): New.
12137 (struct btrace_thread_info) <flags>: New.
12138 * record-btrace.c (record_btrace_resume_thread)
12139 (record_btrace_find_thread_to_move, btrace_step_no_history)
12140 (btrace_step_stopped, record_btrace_start_replaying)
12141 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12142 (record_btrace_find_resume_thread): New.
12143 (record_btrace_resume, record_btrace_wait): Extend.
12144 (record_btrace_can_execute_reverse): New.
12145 (record_btrace_open): Fail in non-stop mode.
12146 (record_btrace_set_replay): Split into this, ...
12147 (record_btrace_stop_replaying): ... this, ...
12148 (record_btrace_clear_histories): ... and this.
12149 (init_record_btrace_ops): Init to_can_execute_reverse.
12150 * NEWS: Announce it.
12151
12152 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12153
12154 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12155 (forward_target_decr_pc_after_break)
12156 (target_decr_pc_after_break): New.
12157 * target.c (forward_target_decr_pc_after_break)
12158 (target_decr_pc_after_break): New.
12159 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12160 instead of gdbarch_decr_pc_after_break.
12161 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12162 instead of gdbarch_decr_pc_after_break.
12163 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12164 instead of gdbarch_decr_pc_after_break.
12165 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12166 instead of gdbarch_decr_pc_after_break.
12167 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12168 instead of gdbarch_decr_pc_after_break.
12169 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12170 instead of gdbarch_decr_pc_after_break.
12171
12172 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12173
12174 * btrace.c: Include regcache.h.
12175 (btrace_add_pc): New.
12176 (btrace_enable): Call btrace_add_pc.
12177 (btrace_is_empty): New.
12178 * btrace.h (btrace_is_empty): New.
12179 * record-btrace.c (require_btrace, record_btrace_info): Call
12180 btrace_is_empty.
12181
12182 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12183
12184 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12185 Support delta reads.
12186 (linux_disable_btrace): Change return type.
12187 * common/linux-btrace.h (linux_read_btrace): Change parameters
12188 and return type to allow error reporting. Update users.
12189 (linux_disable_btrace): Change return type. Update users.
12190 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12191 New.
12192 (btrace_error): New.
12193 (btrace_block) <begin>: Comment on BEGIN == 0.
12194 * btrace.c (btrace_compute_ftrace): Start from the end of
12195 the current trace.
12196 (btrace_stitch_trace, btrace_clear_history): New.
12197 (btrace_fetch): Read delta trace, return if replaying.
12198 (btrace_clear): Move clear history code to btrace_clear_history.
12199 (parse_xml_btrace): Throw an error if parsing failed.
12200 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12201 and return type to allow error reporting.
12202 (target_read_btrace): Change parameters and return type to allow
12203 error reporting.
12204 * target.c (target_read_btrace): Update.
12205 * remote.c (remote_read_btrace): Support delta reads. Pass
12206 errors on.
12207 * NEWS: Announce it.
12208
12209 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12210
12211 * record.h (record_btrace_frame_unwind)
12212 (record_btrace_tailcall_frame_unwind): New declarations.
12213 * dwarf2-frame: Include record.h
12214 (dwarf2_frame_cfa): Throw an error for btrace frames.
12215 * record-btrace.c: Include hashtab.h.
12216 (btrace_get_bfun_name): New.
12217 (btrace_call_history): Call btrace_get_bfun_name.
12218 (struct btrace_frame_cache): New.
12219 (bfcache): New.
12220 (bfcache_hash, bfcache_eq, bfcache_new): New.
12221 (btrace_get_frame_function): New.
12222 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12223 (record_btrace_frame_this_id): Compute own id.
12224 (record_btrace_frame_prev_register): Provide PC, throw_error
12225 for all other registers.
12226 (record_btrace_frame_sniffer): Detect btrace frames.
12227 (record_btrace_tailcall_frame_sniffer): New.
12228 (record_btrace_frame_dealloc_cache): New.
12229 (record_btrace_frame_unwind): Add new functions.
12230 (record_btrace_tailcall_frame_unwind): New.
12231 (_initialize_record_btrace): Allocate cache.
12232 * btrace.c (btrace_clear): Call reinit_frame_cache.
12233 * NEWS: Announce it.
12234
12235 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12236
12237 * record-btrace.c (record_btrace_set_replay)
12238 (record_btrace_goto_begin, record_btrace_goto_end)
12239 (record_btrace_goto): New.
12240 (init_record_btrace_ops): Initialize them.
12241 * NEWS: Announce it.
12242
12243 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12244
12245 * record-btrace.c (record_btrace_find_new_threads)
12246 (record_btrace_thread_alive): New.
12247 (init_record_btrace_ops): Initialize to_find_new_threads and
12248 to_thread_alive.
12249
12250 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12251
12252 * record-btrace.c (record_btrace_resume): New.
12253 (record_btrace_wait): New.
12254 (init_record_btrace_ops): Initialize to_wait and to_resume.
12255
12256 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12257
12258 * record-btrace.c (record_btrace_xfer_partial)
12259 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12260 (record_btrace_allow_memory_access): New.
12261 (init_record_btrace_ops): Initialize new methods.
12262 * target.c (raw_memory_xfer_partial): Bail out if target reports
12263 that this memory is not available.
12264
12265 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12266
12267 * target.h (target_ops) <to_insert_breakpoint>
12268 <to_remove_breakpoint>: Add target_ops parameter.
12269 (forward_target_insert_breakpoint): New.
12270 (forward_target_remove_breakpoint): New.
12271 (memory_remove_breakpoint, memory_insert_breakpoint):
12272 Add target_ops parameter.
12273 * target.c (target_insert_breakpoint): Split into this and ...
12274 (forward_target_insert_breakpoint): ... this.
12275 (target_remove_breakpoint): Split into this and ...
12276 (forward_target_remove_breakpoint): ... this.
12277 (debug_to_insert_breakpoint): Add target_ops parameter.
12278 Call forward_target_insert_breakpoint.
12279 (debug_to_remove_breakpoint): Add target_ops parameter.
12280 Call forward_target_remove_breakpoint.
12281 (update_current_target): Do not inherit or default to_insert_breakpoint
12282 and to_remove_breakpoint.
12283 * corelow.c (ignore): Add target_ops parameter.
12284 * exec.c (ignore): Add target_ops parameter.
12285 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12286 Add target_ops parameter.
12287 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12288 Add target_ops parameter.
12289 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12290 Add target_ops parameter.
12291 * record-full.c (record_full_beneath_to_insert_breakpoint)
12292 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12293 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12294 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12295 (record_full_core_remove_breakpoint): Add target_ops parameter.
12296 Update users.
12297 (record_full_beneath_to_insert_breakpoint_ops)
12298 (record_full_beneath_to_remove_breakpoint_ops)
12299 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12300 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12301 tmp_to_remove_breakpoint_ops,
12302 record_full_beneath_to_insert_breakpoint_ops, and
12303 record_full_beneath_to_remove_breakpoint_ops.
12304 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12305 (m32r_remove_breakpoint): Add target_ops parameter.
12306 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12307 Add target_ops parameter.
12308 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12309 Add target_ops parameter.
12310
12311 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12312 Markus Metzger <markus.t.metzger@intel.com>
12313
12314 * record-btrace.c: Include frame-unwind.h.
12315 (record_btrace_frame_unwind_stop_reason)
12316 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12317 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12318 New.
12319 (init_record_btrace_ops): Install it.
12320
12321 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12322
12323 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12324 get_prev_frame_1.
12325
12326 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12327
12328 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12329 earlier.
12330
12331 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12332
12333 * frame-unwind.c: Include target.h.
12334 (frame_unwind_try_unwinder): New function with code from ...
12335 (frame_unwind_find_by_frame): ... here. New variable
12336 unwinder_from_target, call also target_get_unwinder)
12337 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12338 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12339 * target.h (struct target_ops): New fields to_get_unwinder and
12340 to_get_tailcall_unwinder.
12341 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12342
12343 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12344
12345 * record-btrace.c (record_btrace_fetch_registers)
12346 (record_btrace_store_registers)
12347 (record_btrace_to_prepare_to_store): New.
12348 (init_record_btrace_ops): Add the above.
12349
12350 2014-01-16 Tom Tromey <tromey@redhat.com>
12351
12352 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12353 * target.h (struct target_ops) <to_prepare_to_store>: Add
12354 argument.
12355 (target_prepare_to_store): Add argument.
12356 * target.c (debug_to_prepare_to_store): Add argument.
12357 (update_current_target): Update.
12358 * remote.c (remote_prepare_to_store): Add 'self' argument.
12359 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12360 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12361 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12362 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12363 argument.
12364 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12365 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12366 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12367 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12368 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12369
12370 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12371
12372 * btrace.h (replay) <replay>: New.
12373 (btrace_is_replaying): New.
12374 * btrace.c (btrace_clear): Free replay iterator.
12375 (btrace_is_replaying): New.
12376 * record-btrace.c (record_btrace_is_replaying): New.
12377 (record_btrace_info): Print insn number if replaying.
12378 (record_btrace_insn_history): Start at replay position.
12379 (record_btrace_call_history): Start at replay position.
12380 (init_record_btrace_ops): Init to_record_is_replaying.
12381
12382 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12383
12384 * record-btrace.c (record_btrace_insn_history_range): Include
12385 end.
12386 (record_btrace_insn_history_from): Adjust range.
12387 (record_btrace_call_history_range): Include
12388 end.
12389 (record_btrace_call_history_from): Adjust range.
12390 * NEWS: Announce changes.
12391
12392 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12393
12394 * record.h (enum record_print_flag)
12395 <record_print_indent_calls>: New.
12396 * record.c (get_call_history_modifiers): Recognize /c modifier.
12397 (_initialize_record): Document /c modifier.
12398 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12399 Reorder fields. Optionally indent the function name. Update
12400 all users.
12401 * NEWS: Announce changes.
12402
12403 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12404
12405 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12406
12407 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12408
12409 * btrace.c (ftrace_new_function): Start counting at one.
12410 * record-btrace.c (record_btrace_info): Adjust number of calls
12411 and insns.
12412 * NEWS: Announce it.
12413
12414 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12415
12416 * record-btrace.c (btrace_call_history_insn_range): Print
12417 insn range as [begin, end].
12418
12419 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12420
12421 * btrace.h (struct btrace_func_link): New.
12422 (enum btrace_function_flag): New.
12423 (struct btrace_inst): Rename to ...
12424 (struct btrace_insn): ...this. Update all users.
12425 (struct btrace_func) <ibegin, iend>: Remove.
12426 (struct btrace_func_link): New.
12427 (struct btrace_func): Rename to ...
12428 (struct btrace_function): ...this. Update all users.
12429 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12430 (number, level, flags>: New.
12431 (struct btrace_insn_iterator): Rename to ...
12432 (struct btrace_insn_history): ...this.
12433 Update all users.
12434 (struct btrace_insn_iterator, btrace_call_iterator): New.
12435 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12436 (struct btrace_target_info) <begin, end, level>
12437 <insn_history, call_history>: New.
12438 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12439 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12440 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12441 (btrace_call_number, btrace_call_begin, btrace_call_end)
12442 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12443 (btrace_find_function_by_number, btrace_set_insn_history)
12444 (btrace_set_call_history): New.
12445 * btrace.c (btrace_init_insn_iterator)
12446 (btrace_init_func_iterator, compute_itrace): Remove.
12447 (ftrace_print_function_name, ftrace_print_filename)
12448 (ftrace_skip_file): Change
12449 parameter to const.
12450 (ftrace_init_func): Remove.
12451 (ftrace_debug): Use new btrace_function fields.
12452 (ftrace_function_switched): Also consider gaining and
12453 losing symbol information).
12454 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12455 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12456 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12457 New.
12458 (ftrace_new_function): Move. Remove debug print.
12459 (ftrace_update_lines, ftrace_update_insns): New.
12460 (ftrace_update_function): Check for call, ret, and jump.
12461 (compute_ftrace): Renamed to ...
12462 (btrace_compute_ftrace): ...this. Rewritten to compute call
12463 stack.
12464 (btrace_fetch, btrace_clear): Updated.
12465 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12466 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12467 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12468 (btrace_call_number, btrace_call_begin, btrace_call_end)
12469 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12470 (btrace_find_function_by_number, btrace_set_insn_history)
12471 (btrace_set_call_history): New.
12472 * record-btrace.c (require_btrace): Use new btrace thread
12473 info fields.
12474 (record_btrace_info, btrace_insn_history)
12475 (record_btrace_insn_history, record_btrace_insn_history_range):
12476 Use new btrace thread info fields and new iterator.
12477 (btrace_func_history_src_line): Rename to ...
12478 (btrace_call_history_src_line): ...this. Use new btrace
12479 thread info fields.
12480 (btrace_func_history): Rename to ...
12481 (btrace_call_history): ...this. Use new btrace thread info
12482 fields and new iterator.
12483 (record_btrace_call_history, record_btrace_call_history_range):
12484 Use new btrace thread info fields and new iterator.
12485
12486 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12487
12488 * frame.h (frame_id_build_unavailable_stack_special): New.
12489 * frame.c (frame_id_build_unavailable_stack_special): New.
12490
12491 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12492
12493 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12494 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12495 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12496 to gdbarch.
12497 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12498 (i386_insn_is_jump, i386_jmp_p): New.
12499 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12500 insn_is_jump to gdbarch.
12501 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12502 * gdbarch.h: Regenerated.
12503 * gdbarch.c: Regenerated.
12504 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12505 (default_insn_is_jump): New.
12506 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12507 (default_insn_is_jump): New.
12508
12509 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12510
12511 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12512 Change to ...
12513 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12514 (btrace_read_type) <btrace_read_new>: Change to ...
12515 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12516
12517 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12518
12519 * common/linux-btrace.c (linux_read_btrace): Free trace from
12520 previous iteration.
12521
12522 2014-01-15 Doug Evans <dje@google.com>
12523
12524 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12525 uint32_t.
12526
12527 2014-01-15 Tom Tromey <tromey@redhat.com>
12528
12529 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12530 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12531 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12532 (set_objfile_main_name): New function.
12533 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12534 language_of_main>: New fields.
12535 (set_objfile_main_name): Declare.
12536 * symtab.c (find_main_name): Loop over objfiles to find the main
12537 name and language.
12538 (set_main_name): Now static.
12539 (get_main_info): Add comment.
12540 * symtab.h (set_main_name): Don't declare.
12541
12542 2014-01-15 Tom Tromey <tromey@redhat.com>
12543
12544 * symtab.c (main_progspace_key): New global.
12545 (struct main_info): New.
12546 (name_of_main, language_of_main): Remove.
12547 (get_main_info, main_info_cleanup): New function.
12548 (set_main_name, main_name, main_language): Use get_main_info.
12549 (_initialize_symtab): Initialize main_progspace_key.
12550
12551 2014-01-15 Tom Tromey <tromey@redhat.com>
12552
12553 * dbxread.c (process_one_symbol): Update.
12554 * dwarf2read.c (read_partial_die): Update.
12555 * symfile.c (set_initial_language): Call main_language.
12556 * symtab.c (language_of_main): Now static.
12557 (set_main_name): Add 'lang' parameter.
12558 (find_main_name): Update.
12559 (main_language): New function.
12560 (symtab_observer_executable_changed): Update.
12561 * symtab.h (set_main_name): Update.
12562 (language_of_main): Remove.
12563 (main_language): Declare.
12564
12565 2014-01-15 Tom Tromey <tromey@redhat.com>
12566
12567 * symfile.c (init_entry_point_info): Use new "initialized" field.
12568 Update.
12569 * objfiles.h (struct entry_point) <initialized>: New field.
12570 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12571 (struct objfile) <ei>: ...here. Remove.
12572 * objfiles.c (entry_point_address_query): Update.
12573
12574 2014-01-15 Tom Tromey <tromey@redhat.com>
12575
12576 * objfiles.c (entry_point_address_query): Relocate entry point
12577 address.
12578 (objfile_relocate1): Do not relocate entry point address.
12579 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12580 <the_bfd_section_index>: New field.
12581 * symfile.c (init_entry_point_info): Find the entry point's
12582 section.
12583
12584 2014-01-15 Tom Tromey <tromey@redhat.com>
12585
12586 * solib-frv.c (enable_break): Use entry_point_address_query.
12587
12588 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12589
12590 * NEWS: Add note on improved process record-replay on
12591 arm*-linux* targets.
12592
12593 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12594
12595 * arm-tdep.c (enum arm_record_result): New enum.
12596 (arm_record_unsupported_insn): New function.
12597 (arm_record_coproc_data_proc): Removed.
12598 (thumb2_record_ld_st_multiple): New function.
12599 (thumb2_record_ld_st_dual_ex_tbb): New function.
12600 (thumb2_record_data_proc_sreg_mimm): New function.
12601 (thumb2_record_ps_dest_generic): New function.
12602 (thumb2_record_branch_misc_cntrl): New function.
12603 (thumb2_record_str_single_data): New function.
12604 (thumb2_record_ld_mem_hints): New function.
12605 (thumb2_record_ld_word): New function.
12606 (thumb2_record_lmul_lmla_div): New function.
12607 (thumb2_record_decode_insn_handler): New function.
12608 (decode_insn): Add thumb32 instruction handlers.
12609
12610 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12611
12612 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12613 (struct arm_linux_record_tdep): Declare.
12614 (arm_canonicalize_syscall): New function.
12615 (arm_all_but_pc_registers_record): New function.
12616 (arm_linux_syscall_record): New function.
12617 (arm_linux_init_abi): Add syscall recording constructs.
12618 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12619 decoding. (arm_record_coproc_data_proc): Update arm syscall
12620 decoding.
12621 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12622 <arm_syscall_record>: New field.
12623 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12624 gdb_target_obs.
12625
12626 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12627
12628 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12629 register for push instruction recording.
12630
12631 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12632
12633 * arm-tdep.c (thumb_record_misc): Update to correct logical
12634 error while recording ldm, ldmia and pop instructions.
12635
12636 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12637
12638 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12639
12640 2014-01-15 Pedro Alves <palves@redhat.com>
12641
12642 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12643 (go32_resume, go32_fetch_registers, store_register)
12644 (go32_store_registers, go32_prepare_to_store)
12645 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12646 (go32_create_inferior, go32_can_run, go32_terminal_init)
12647 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12648 declarations.
12649
12650 2014-01-15 Tom Tromey <tromey@redhat.com>
12651
12652 * target.h (async_callback_ftype): New typedef.
12653 (struct target_ops) <to_async>: Use it.
12654
12655 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12656
12657 * python/py-value.c (get_field_type): Remove unnecessary curly
12658 braces for single-statement if block.
12659
12660 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12661
12662 * python/py-type.c (convert_field): Add missing empty line
12663 after declarations.
12664
12665 2014-01-14 Doug Evans <dje@google.com>
12666
12667 * symfile.h (expand_symtabs_matching): Renamed from
12668 expand_partial_symbol_names. Update prototype.
12669 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12670 * symfile.c (expand_symtabs_matching): Renamed from
12671 expand_partial_symbol_names. New args file_matcher, kind.
12672 Rename arg fun to symbol_matcher.
12673 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12674 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12675 ada_expand_partial_symbol_name.
12676 (ada_make_symbol_completion_list): Update to call
12677 expand_symtabs_matching.
12678 (ada_add_global_exceptions): Call expand_symtabs_matching.
12679 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12680 call map_symbol_filenames.
12681 * symtab.c (sources_info): Update to call map_symbol_filenames.
12682 (search_symbols): Call expand_symtabs_matching.
12683 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12684 (default_make_symbol_completion_list_break_on): Update to call
12685 expand_symtabs_matching.
12686 (make_source_files_completion_list): Update to call
12687 map_symbol_filenames.
12688
12689 2014-01-14 Doug Evans <dje@google.com>
12690
12691 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12692 (expand_symtabs_symbol_matcher_ftype): New typedef.
12693 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12694 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12695 * symfile.c (expand_partial_symbol_names): Update to use
12696 expand_symtabs_symbol_matcher_ftype.
12697 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12698 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12699 Arg name_matcher renamed to symbol_matcher.
12700 * psymtab.c (recursively_search_psymtabs): Update to use
12701 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12702 sym_matcher.
12703 (expand_symtabs_matching_via_partial): Update to use
12704 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12705 Arg name_matcher renamed to symbol_matcher.
12706
12707 2014-01-14 Doug Evans <dje@google.com>
12708
12709 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12710 (map_partial_symbol_filenames): Ditto.
12711 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12712 (map_partial_symbol_filenames): Ditto.
12713 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12714 (map_partial_symbol_filenames): Ditto.
12715 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12716 (map_partial_symbol_filenames): Ditto.
12717 * symtab.c: Delete #include "psymtab.h".
12718
12719 2014-01-14 Pedro Alves <palves@redhat.com>
12720 Tom Tromey <tromey@redhat.com>
12721
12722 * infrun.c (use_displaced_stepping): Use find_record_target
12723 instead of RECORD_IS_USED.
12724 (adjust_pc_after_break): Use record_full_is_used instead of
12725 RECORD_IS_USED.
12726 * record-btrace.c (record_btrace_open): Call record_preopen
12727 instead of checking RECORD_IS_USED.
12728 * record-full.c (record_full_shortname)
12729 (record_full_core_shortname): New globals.
12730 (record_full_is_used): New function.
12731 (find_full_open): Call record_preopen instead of checking
12732 RECORD_IS_USED.
12733 (init_record_full_ops): Set the target's shortname to
12734 record_full_shortname.
12735 (init_record_full_core_ops): Set the target's shortname to
12736 record_full_core_shortname.
12737 * record-full.h (record_full_is_used): Declare.
12738 * record.c (find_record_target): Make extern.
12739 (record_preopen): New function.
12740 * record.h (RECORD_IS_USED): Delete macro.
12741 (find_record_target, record_preopen): Declare functions.
12742
12743 2014-01-14 Yao Qi <yao@codesourcery.com>
12744
12745 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12746 'len''s type to ULONGEST.
12747 (core_xfer_shared_libraries_aix): Likewise.
12748 * gdbarch.c, gdbarch.h: Regenerated.
12749 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12750 Change type of 'len' to ULONGEST.
12751 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12752 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12753
12754 2014-01-14 Yao Qi <yao@codesourcery.com>
12755
12756 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12757 type of 'len' to ULONGEST.
12758 (linux_xfer_osdata_processgroups): Likewise.
12759 (linux_xfer_osdata_threads): Likewise.
12760 (linux_xfer_osdata_fds): Likewise.
12761 (linux_xfer_osdata_isockets): Likewise.
12762 (linux_xfer_osdata_shm): Likewise.
12763 (linux_xfer_osdata_sem): Likewise.
12764 (linux_xfer_osdata_msg): Likewise.
12765 (linux_common_xfer_osdata): Likewise.
12766 (struct osdata_type) <getter>: Likewise.
12767 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12768 the declaration.
12769
12770 2014-01-14 Yao Qi <yao@codesourcery.com>
12771
12772 * target.h (target_xfer_partial_ftype): Update.
12773 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12774 ULONGEST.
12775 * aix-thread.c (aix_thread_xfer_partial): Change type of
12776 argument 'len' to ULONGEST.
12777 * auxv.c (procfs_xfer_auxv): Likewise.
12778 (ld_so_xfer_auxv): Likewise.
12779 (memory_xfer_auxv): Likewise.
12780 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12781 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12782 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12783 * corelow.c (core_xfer_partial): Likewise.
12784 * ctf.c (ctf_xfer_partial): Likewise.
12785 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12786 '%u'.
12787 (darwin_read_dyld_info): Likewise.
12788 (darwin_xfer_partial): Likewise.
12789 * exec.c (section_table_xfer_memory_partial): Likewise.
12790 (exec_xfer_partial): Likewise.
12791 * exec.h (section_table_xfer_memory_partial): Update
12792 declaration.
12793 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12794 instead of plongest.
12795 (gnu_xfer_partial): Likewise.
12796 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12797 (ia64_hpux_xfer_solib_got): Likewise.
12798 (ia64_hpux_xfer_partial): Likewise.
12799 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12800 * inf-ptrace.c (inf_ptrace_xfer_partial):
12801 * inf-ttrace.c (inf_ttrace_xfer_partial):
12802 * linux-nat.c (linux_xfer_siginfo): Likewise.
12803 (linux_nat_xfer_partial): Likewise.
12804 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12805 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12806 * monitor.c (monitor_xfer_memory): Likewise.
12807 (monitor_xfer_partial): Likewise.
12808 * procfs.c (procfs_xfer_partial): Likewise.
12809 * record-full.c (record_full_xfer_partial): Likewise.
12810 (record_full_core_xfer_partial): Likewise.
12811 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12812 instead of plongest.
12813 (gdbsim_xfer_partial): Likewise.
12814 * remote.c (remote_xfer_partial): Likewise.
12815 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12816 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12817 declaration.
12818 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12819 (rs6000_xfer_shared_libraries): Likewise.
12820 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12821 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12822 (sparc_xfer_partial): Likewise.
12823 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12824 (spu_xfer_partial): Likewise.
12825 * spu-multiarch.c (spu_xfer_partial): Likewise.
12826 * target.c (target_read_live_memory): Likewise.
12827 (memory_xfer_live_readonly_partial): Likewise.
12828 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12829 (target_xfer_partial, default_xfer_partial): Likewise.
12830 (current_xfer_partial): Likewise.
12831 * tracepoint.c (tfile_xfer_partial): Likewise.
12832 * windows-nat.c (windows_xfer_memory): Likewise. Call
12833 pulongest instead of plongest.
12834 (windows_xfer_partial): Likewise.
12835 (windows_xfer_shared_libraries): Likewise.
12836
12837 2014-01-14 Yao Qi <yao@codesourcery.com>
12838
12839 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12840 target_xfer_partial_ftype.
12841
12842 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12843
12844 PR python/15464
12845 PR python/16113
12846 * valops.c (value_struct_elt_bitpos): New function
12847 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12848 object to 'None' if the field name is an empty string ("").
12849 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12850 attribute to look for a field when 'name' is 'None'.
12851 (get_field_type): New function
12852
12853 2014-01-13 Doug Evans <dje@google.com>
12854
12855 PR symtab/16426
12856 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12857 (try_open_dwop_file): Ditto.
12858 * gdb_bfd.c: #include "vec.h".
12859 (bfdp): New typedef.
12860 (struct gdb_bfd_data): New member included_bfds.
12861 (gdb_bfd_unref): Unref all included bfds.
12862 (gdb_bfd_record_inclusion): New function.
12863 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12864
12865 2014-01-13 Tom Tromey <tromey@redhat.com>
12866
12867 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12868
12869 2014-01-13 Tom Tromey <tromey@redhat.com>
12870
12871 * defs.h (use_windows): Remove.
12872 * gdb.c (main): Update.
12873 * main.c (captured_main, gdb_main): Update.
12874 * main.h (struct captured_main_args) <use_windows>: Remove.
12875 * top.c (use_windows): Remove.
12876
12877 2014-01-13 Tom Tromey <tromey@redhat.com>
12878
12879 * defs.h (deprecated_flush_hook): Remove.
12880
12881 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12882
12883 PR threads/16216
12884 * linux-thread-db.c (try_thread_db_load): Add parameter
12885 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12886 (try_thread_db_load_from_pdir_1): Move it there from here.
12887 (try_thread_db_load_from_sdir): Update caller.
12888 (try_thread_db_load_from_dir): Move it there from here.
12889
12890 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12891
12892 * regformats/regdat.sh: Always rewrite the register file.
12893
12894 2014-01-13 Pedro Alves <palves@redhat.com>
12895
12896 * Makefile.in (CHECK_HEADERS): New variable.
12897 (check-headers:): New rule.
12898
12899 2014-01-13 Tom Tromey <tromey@redhat.com>
12900
12901 * cli/cli-setshow.c (do_set_command): Update.
12902 * defs.h (deprecated_set_hook): Remove.
12903 * top.c (deprecated_set_hook): Remove.
12904
12905 2014-01-13 Pedro Alves <palves@redhat.com>
12906
12907 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12908 the tracepoint if the PC is a pseudo-register.
12909
12910 2014-01-13 Tom Tromey <tromey@redhat.com>
12911
12912 * defs.h (XCALLOC): Remove.
12913 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12914 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12915 * dwarf2loc.c (allocate_piece_closure): Likewise.
12916 * elfread.c (elf_symfile_segments): Likewise.
12917 (elf_symfile_segments): Likewise.
12918 * gdbtypes.c (copy_type_recursive): Likewise.
12919 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12920 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12921 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12922 XCALLOC.
12923 * mt-tdep.c (mt_gdbarch_init): Likewise.
12924 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12925 XCALLOC.
12926 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12927 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12928 * registry.c (registry_alloc_data): Likewise.
12929 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12930 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12931 * serial.c (serial_fdopen_ops): Likewise.
12932 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12933 XCALLOC.
12934 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12935 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12936 not XCALLOC.
12937
12938 2014-01-13 Tom Tromey <tromey@redhat.com>
12939
12940 * defs.h (XMALLOC): Remove.
12941 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12942 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12943 * cli-out.c (struct ui_out *): Likewise.
12944 * cli/cli-dump.c (add_dump_command): Likewise.
12945 (add_dump_command): Likewise.
12946 * complaints.c (get_complaints): Likewise.
12947 (find_complaint): Likewise.
12948 * dwarf2-frame.c (execute_cfa_program): Likewise.
12949 * dwarf2read.c (abbrev_table_read_table): Likewise.
12950 * gdbarch.sh: Likewise.
12951 * gdbarch.c: Rebuild.
12952 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12953 * interps.c (interp_new): Likewise.
12954 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12955 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12956 * mi/mi-console.c (mi_console_file_new): Likewise.
12957 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12958 * mi/mi-out.c (mi_out_new): Likewise.
12959 * mi/mi-parse.c (mi_parse): Likewise.
12960 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12961 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12962 * observer.c (xalloc_observer_list_node): Likewise.
12963 * regcache.c (regcache_xmalloc_1): Likewise.
12964 * reggroups.c (reggroup_new): Likewise.
12965 (_initialize_reggroup): Likewise.
12966 * registry.c (register_data_with_cleanup): Likewise.
12967 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12968 * ser-base.c (serial_ttystate): Likewise.
12969 * ser-mingw.c (make_pipe_state): Likewise.
12970 * ser-pipe.c (pipe_open): Likewise.
12971 * serial.c (serial_open): Likewise.
12972 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12973 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12974 (tui_alloc_win_info): Likewise.
12975 (tui_add_content_elements): Likewise.
12976 * tui/tui-file.c (tui_file_new): Likewise.
12977 * tui/tui-out.c (tui_out_new): Likewise.
12978 * ui-file.c (mem_file_new): Likewise.
12979 * ui-out.c (push_level): Likewise.
12980 (make_cleanup_ui_out_end): Likewise.
12981 (append_header_to_list): Likewise.
12982 (ui_out_new): Likewise.
12983 * user-regs.c (user_reg_add_builtin): Likewise.
12984
12985 2014-01-13 Tom Tromey <tromey@redhat.com>
12986
12987 * defs.h (XZALLOC): Remove.
12988 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12989 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12990 (get_ada_tasks_inferior_data): Likewise.
12991 * auto-load.c (get_auto_load_pspace_data): Likewise.
12992 * auxv.c (get_auxv_inferior_data): Likewise.
12993 * bfd-target.c (target_bfd_reopen): Likewise.
12994 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12995 (deprecated_insert_raw_breakpoint): Likewise.
12996 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12997 * corelow.c (core_open): Likewise.
12998 * darwin-nat.c (darwin_check_new_threads): Likewise.
12999 (darwin_attach_pid): Likewise.
13000 * dummy-frame.c (dummy_frame_push): Likewise.
13001 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13002 * dwarf2loc.c (allocate_piece_closure): Likewise.
13003 * elfread.c (elf_symfile_segments): Likewise.
13004 * eval.c (ptrmath_type_p): Likewise.
13005 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13006 * gdbtypes.c (alloc_type_arch): Likewise.
13007 (alloc_type_instance): Likewise.
13008 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13009 * inf-child.c (inf_child_can_use_agent): Likewise.
13010 * inflow.c (get_inflow_inferior_data): Likewise.
13011 * infrun.c (save_infcall_suspend_state): Likewise.
13012 * jit.c (jit_reader_load): Likewise.
13013 (get_jit_objfile_data): Likewise.
13014 (get_jit_program_space_data): Likewise.
13015 (jit_object_open_impl): Likewise.
13016 (jit_symtab_open_impl): Likewise.
13017 (jit_block_open_impl): Likewise.
13018 (jit_frame_sniffer): Likewise.
13019 * linux-fork.c (add_fork): Likewise.
13020 * maint.c (make_command_stats_cleanup): Likewise.
13021 * objfiles.c (get_objfile_pspace_data): Likewise.
13022 * opencl-lang.c (struct lval_closure): Likewise.
13023 * osdata.c (osdata_start_osdata): Likewise.
13024 * progspace.c (new_address_space): Likewise.
13025 (add_program_space): Likewise.
13026 * remote-sim.c (get_sim_inferior_data): Likewise.
13027 * sh-tdep.c (sh_gdbarch_init): Likewise.
13028 * skip.c (Ignore): Likewise.
13029 (skip_delete_command): Likewise.
13030 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13031 (library_list_start_library): Likewise.
13032 (solib_aix_current_sos): Likewise.
13033 * solib-darwin.c (get_darwin_info): Likewise.
13034 (darwin_current_sos): Likewise.
13035 * solib-dsbt.c (get_dsbt_info): Likewise.
13036 * solib-ia64-hpux.c (new_so_list): Likewise.
13037 (ia64_hpux_get_solib_linkage_addr): Likewise.
13038 * solib-spu.c (append_ocl_sos): Likewise.
13039 (spu_current_sos): Likewise.
13040 * solib-svr4.c (get_svr4_info): Likewise.
13041 (svr4_keep_data_in_core): Likewise.
13042 (library_list_start_library): Likewise.
13043 (svr4_default_sos): Likewise.
13044 (svr4_read_so_list): Likewise.
13045 * solib-target.c (library_list_start_library): Likewise.
13046 (solib_target_current_sos): Likewise.
13047 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13048 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13049 * symfile.c (default_symfile_segments): Likewise.
13050 * target-descriptions.c (tdesc_data_init): Likewise.
13051 (tdesc_create_reg): Likewise.
13052 (struct tdesc_type *): Likewise.
13053 (tdesc_create_vector): Likewise.
13054 (tdesc_set_struct_size): Likewise.
13055 (struct tdesc_type *): Likewise.
13056 (tdesc_free_feature): Likewise.
13057 (tdesc_create_feature): Likewise.
13058 * windows-nat.c (windows_add_thread): Likewise.
13059 (windows_make_so): Likewise.
13060 * xml-support.c (gdb_xml_body_text): Likewise.
13061 (gdb_xml_create_parser_and_cleanup): Likewise.
13062 (xml_process_xincludes): Likewise.
13063 * xml-syscall.c (allocate_syscalls_info): Likewise.
13064 (syscall_create_syscall_desc): Likewise.
13065
13066 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13067
13068 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13069 function, with code from i386_stap_parse_special_token.
13070 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13071 (i386_stap_parse_special_token): Move code to the two functions
13072 above; simplify it.
13073
13074 2014-01-09 Pedro Alves <palves@redhat.com>
13075 Hui Zhu <hui@codesourcery.com>
13076
13077 PR gdb/16101
13078 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13079 bp_err_string. Don't mark the location shlib_disabled if the
13080 error thrown wasn't a generic or memory error. Catch errors
13081 thrown while inserting breakpoints in overlayed code. Output
13082 error message of software breakpoints.
13083 * remote.c (remote_insert_breakpoint): If this breakpoint has
13084 target-side commands but this stub doesn't support Z0 packets,
13085 throw NOT_SUPPORTED_ERROR error.
13086 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13087 * target.h (target_insert_breakpoint): Extend comment.
13088 (target_insert_hw_breakpoint): Add comment.
13089
13090 2014-01-08 Pedro Alves <palves@redhat.com>
13091
13092 * remote.c (remote_add_thread): Add threads silently if starting
13093 up.
13094 (remote_notice_new_inferior): If in all-stop, and starting up,
13095 don't call notice_new_inferior.
13096 (get_current_thread): New function, factored out from ...
13097 (add_current_inferior_and_thread): ... this. Adjust.
13098 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13099 found any thread, then select the remote's current thread as GDB's
13100 current thread too.
13101
13102 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13103
13104 * NEWS: Create a new section for the next release branch.
13105 Rename the section of the current branch, now that it has
13106 been cut.
13107
13108 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13109
13110 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13111 * version.in: Bump version to 7.7.50.DATE-cvs.
13112
13113 2014-01-08 Yao Qi <yao@codesourcery.com>
13114
13115 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13116 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13117 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13118
13119 2014-01-08 Yao Qi <yao@codesourcery.com>
13120
13121 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13122 return value of bfd_get_filename to symbol_file_add_from_bfd.
13123
13124 2014-01-08 Pierre Muller <muller@sourceware.org>
13125
13126 Fix PR16201.
13127 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13128 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13129 to prim_record_mininal_symbol_and_info.
13130 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13131 in call to prim_record_minimal_symbol_and_info.
13132 (read_pe_exported_syms): Set index field of section_data.
13133
13134 2014-01-07 Andrew Pinski <apinski@cavium.com>
13135
13136 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13137 * features/aarch64.c: Regenerate.
13138
13139 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13140
13141 * target.c (return_null): Define.
13142 (update_current_target): Use it instead of return_zero for
13143 functions that return a pointer.
13144
13145 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13146
13147 * source.c (add_path): Fix check for duplicated paths in the previously
13148 included paths.
13149
13150 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13151
13152 * ada-lang.c: Remove duplicated include statements.
13153 * alphabsd-nat.c: Ditto.
13154 * amd64-darwin-tdep.c: Ditto.
13155 * amd64fbsd-nat.c: Ditto.
13156 * auto-load.c: Ditto.
13157 * ax-gdb.c: Ditto.
13158 * breakpoint.c: Ditto.
13159 * dbxread.c: Ditto.
13160 * fork-child.c: Ditto.
13161 * gdb_usleep.c: Ditto.
13162 * i386-darwin-tdep.c: Ditto.
13163 * i386fbsd-nat.c: Ditto.
13164 * infcmd.c: Ditto.
13165 * inferior.c: Ditto.
13166 * jv-lang.c: Ditto.
13167 * linux-nat.c: Ditto.
13168 * linux-tdep.c: Ditto.
13169 * m68kbsd-nat.c: Ditto.
13170 * m68klinux-nat.c: Ditto.
13171 * microblaze-tdep.c: Ditto.
13172 * mips-linux-tdep.c: Ditto.
13173 * mn10300-tdep.c: Ditto.
13174 * nto-tdep.c: Ditto.
13175 * opencl-lang.c: Ditto.
13176 * osdata.c: Ditto.
13177 * printcmd.c: Ditto.
13178 * regcache.c: Ditto.
13179 * remote-m32r-sdi.c: Ditto.
13180 * remote.c: Ditto.
13181 * symfile.c: Ditto.
13182 * symtab.c: Ditto.
13183 * tilegx-linux-nat.c: Ditto.
13184 * tilegx-tdep.c: Ditto.
13185 * tracepoint.c: Ditto.
13186 * valops.c: Ditto.
13187 * vaxbsd-nat.c: Ditto.
13188 * windows-nat.c: Ditto.
13189 * xtensa-tdep.c: Ditto.
13190
13191 2014-01-07 Yao Qi <yao@codesourcery.com>
13192
13193 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13194
13195 2014-01-07 Yao Qi <yao@codesourcery.com>
13196 Joel Brobecker <brobecker@adacore.com>
13197
13198 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13199 (pdc_write_regs): Likewise.
13200 (fetch_regs_kernel_thread): Likewise.
13201 (store_regs_kernel_thread): Likewise.
13202
13203 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13204
13205 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13206 tagged type objects to their actual type.
13207
13208 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13209
13210 * ada-valprint.c (print_field_values): Add "language" parameter.
13211 Update calls to print_field_values and print_variant_part.
13212 Pass new parameter "language" in call to val_print instead
13213 of "current_language". Replace call to ada_val_print by call
13214 to val_print.
13215 (print_variant_part): Add "language" parameter.
13216 (ada_val_print_struct_union): Update call to print_field_values.
13217
13218 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13219
13220 * ada-valprint.c (ui_memcpy): Delete.
13221 (ada_print_floating): Update documentation. Add empty line
13222 between between function documentation and implementation.
13223 Delete variable "buffer". Use ui_file_xstrdup in place of
13224 ui_file_put. Minor adjustments following this change.
13225
13226 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13227
13228 * ada-valprint.c (ada_val_print_string): New function,
13229 extracted from ada_val_print_array.
13230 (ada_val_print_array): Replace extracted code by call
13231 to ada_val_print_string followed by a return. Move
13232 "else" branch to the function's top block.
13233
13234 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13235
13236 * ada-valprint.c (ada_val_print_array): Move implementation
13237 down. Rename parameter "offset" and "val" into "offset_aligned"
13238 and "original_value" respectively. Add parameter "offset".
13239
13240 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13241
13242 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13243 re-organizing the code. Change the "???" message printed
13244 when target type is a TYPE_CODE_UNDEF into
13245 "<ref to undefined type>".
13246
13247 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13248
13249 * ada-valprint.c (print_record): Delete, implementation inlined...
13250 (ada_val_print_struct_union): ... here. Remove call to
13251 ada_check_typedef in inlined implementation.
13252
13253 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13254
13255 * ada-valprint.c (ada_val_print_gnat_array): New function,
13256 extracted from ada_val_print_1;
13257 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13258 (ada_val_print_flt, ada_val_print_struct_union)
13259 (ada_val_print_ref): Likewise.
13260 (ada_val_print_1): Delete variables i and elttype.
13261 Replace extracted-out code by call to corresponding
13262 new functions.
13263
13264 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13265
13266 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13267
13268 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13269
13270 * ada-valprint.c (ada_val_print_1): Replace calls to
13271 ada_val_print_1 by calls to val_print.
13272
13273 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13274
13275 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13276 Update calls to self accordingly. Replace calls to c_val_print
13277 by calls to val_print.
13278
13279 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13280
13281 * ada-valprint.c (print_record): Delete declaration.
13282 (adjust_type_signedness, ada_val_print_1): Likewise.
13283 (ada_val_print): Move function implementation down.
13284 (print_variant_part, print_field_values, print_record):
13285 Move function implementation up.
13286
13287 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13288
13289 * python/py-type.c (typy_get_name): New function.
13290 (type_object_getset): Add entry for attribute "name".
13291 * NEWS: Add entry mentioning this new attribute.
13292
13293 2014-01-07 Yao Qi <yao@codesourcery.com>
13294
13295 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13296 statement.
13297
13298 2014-01-07 Yao Qi <yao@codesourcery.com>
13299
13300 * gnu-nat.c (info_port_rights): Add qualifier const to
13301 argument args.
13302
13303 2014-01-07 Yao Qi <yao@codesourcery.com>
13304
13305 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13306
13307 2014-01-07 Yao Qi <yao@codesourcery.com>
13308
13309 * gnu-nat.c (make_inf) Update declaration.
13310 (make_inf): Make it static.
13311 (inf_set_traced): Likewise.
13312 (inf_port_to_thread, inf_task_died_status): Likewise.
13313
13314 2014-01-07 Yao Qi <yao@codesourcery.com>
13315
13316 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13317
13318 2014-01-07 Yao Qi <yao@codesourcery.com>
13319
13320 * gnu-nat.c (_initialize_gnu_nat): Declare.
13321
13322 2014-01-07 Yao Qi <yao@codesourcery.com>
13323
13324 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13325 'enum bfd_endian'.
13326 (struct gdbarch_info) <byte_order>: Change type to
13327 'enum bfd_endian'.
13328 <byte_order_for_code>: Likewise.
13329 * gdbarch.c, gdbarch.h: Regenerated.
13330
13331 2014-01-06 Sasha Smundak <asmundak@google.com>
13332
13333 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13334
13335 2014-01-06 Tom Tromey <tromey@redhat.com>
13336
13337 * doublest.c (convert_doublest_to_floatformat): Use const, not
13338 CONST.
13339 * somread.c (som_symtab_read): Likewise.
13340
13341 2014-01-07 Hui Zhu <hui@codesourcery.com>
13342
13343 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13344 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13345 (gdb_bfd_fopen): Ditto.
13346 (gdb_bfd_openr): Ditto.
13347 (gdb_bfd_openw): Ditto.
13348 (gdb_bfd_openr_iovec): Ditto.
13349 (gdb_bfd_fdopenr): Ditto.
13350 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13351 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13352 with xstrdup.
13353 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13354 with xstrdup.
13355 * symfile-mem.c (symbol_file_add_from_memory): Removed
13356 gdb_bfd_stash_filename.
13357
13358 2014-01-03 Doug Evans <dje@google.com>
13359
13360 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13361 output.
13362
13363 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13364
13365 Update year range in copyright notice of all files.
13366
13367 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13368
13369 * top.c (print_gdb_version): Set copyright year to 2014.
13370
13371 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13372
13373 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13374
13375 For older changes see ChangeLog-2013.
13376 \f
13377 Local Variables:
13378 mode: change-log
13379 left-margin: 8
13380 fill-column: 74
13381 version-control: never
13382 coding: utf-8
13383 End:
This page took 0.336995 seconds and 4 git commands to generate.