MIPS: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d4036235
AA
12014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
4 (mips_linux_iterate_over_regset_sections): New.
5 (mips_linux_init_abi): Adjust gdbarch initialization.
6 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
7 (mips64obsd_iterate_over_regset_sections): New.
8 (mips64obsd_init_abi): Adjust.
9 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
10 (mipsnbsd_iterate_over_regset_sections): New.
11 (mipsnbsd_init_abi): Adjust.
12
b61ddd6e
AA
132014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
14
15 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
16 (m88k_iterate_over_regset_sections): New.
17 (m88k_gdbarch_init): Adjust gdbarch initialization.
18
55a2906a
AA
192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
20
21 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
22 (ia64_linux_iterate_over_regset_sections): New.
23 (ia64_linux_init_abi): Adjust gdbarch initialization.
24
022c98ab
AA
252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
26
27 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
28 (m68kbsd_iterate_over_regset_sections): New.
29 (m68kbsd_init_abi): Adjust gdbarch initialization.
30 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
31 (m68k_linux_iterate_over_regset_sections): New.
32 (m68k_linux_init_abi): Adjust gdbarch initialization.
33
5fac247f
AA
342014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
35
36 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
37 (m32r_linux_regset_from_core_section): Remove.
38 (m32r_linux_iterate_over_regset_sections): New.
39 (m32r_linux_init_abi): Adjust gdbarch initialization.
40
490496c3
AA
412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
42
43 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
44 (amd64obsd_iterate_over_regset_sections): New.
45 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
46 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
47 Remove.
48 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
49 regset_from_core_section initialization.
50 * i386-tdep.c (i386_regset_from_core_section): Remove.
51 (i386_iterate_over_regset_sections): New.
52 (i386_gdbarch_init): Adjust gdbarch initialization.
53 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
54 (i386_iterate_over_regset_sections): New prototype.
55 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
56 Remove.
57 (i386obsd_aout_iterate_over_regset_sections): New.
58 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
59 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
60 targets.
61 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
62 (amd64fbsd_init_abi): Call fbsd_init_abi.
63 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
64 (i386fbsd4_init_abi): Call fbsd_init_abi.
65 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
66 target method 'make_corefile_notes'.
67 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
68
50c5eb53
AA
692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
70
71 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
72 (hppa_hpux_iterate_over_regset_sections): New.
73 (hppa_hpux_init_abi): Adjust gdbarch initialization.
74 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
75 (hppa_linux_iterate_over_regset_sections): New.
76 (hppa_linux_init_abi): Adjust.
77 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
78 (hppanbsd_iterate_over_regset_sections): New.
79 (hppanbsd_init_abi): Adjust.
80 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
81 (hppaobsd_iterate_over_regset_sections): New.
82 (hppaobsd_init_abi): Adjust.
83
66afae4f
AA
842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
85
86 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
87 (frv_linux_iterate_over_regset_sections): New.
88 (frv_linux_init_abi): Adjust gdbarch initialization.
89
ed09174e
AA
902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
91
92 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
93 (armbsd_iterate_over_regset_sections): New prototype.
94 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
95 (armbsd_iterate_over_regset_sections): New.
96 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
97 initialization.
98
dff2166e
AA
992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
100
101 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
102 (alpha_linux_iterate_over_regset_sections): New.
103 (alpha_linux_init_abi): Adjust gdbarch initialization.
104 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
105 prototype.
106 (alphanbsd_iterate_over_regset_sections): New prototype.
107
4108500a
AA
1082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
109
110 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
111 Remove.
112 (aarch64_linux_iterate_over_regset_sections): New.
113 (aarch64_linux_init_abi): Adjust gdbarch initialization.
114
a904c024
AA
1152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
116
117 * fbsd-tdep.c: New file.
118 * fbsd-tdep.h: New file.
119 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
120 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
121 (ALLDEPFILES): Add fbsd-tdep.c.
122
8f0435f7
AA
1232014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
124
125 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
126 parameter.
127 * gdbarch.h: Regenerate.
128 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
129 iterator.
130 (get_core_register_section): Add parameter 'regset' and use it, if
131 set. Add parameter 'min_size' and verify the bfd section size
132 against it.
133 (get_core_registers_cb): Add parameter 'regset' and pass it to
134 get_core_register section. For the "standard" register sections
135 ".reg" and ".reg2", set an appropriate default for human_name.
136 (get_core_registers): Don't abort when the gdbarch has an iterator
137 but no regset_from_core_section. Add NULL/0 for parameters
138 'regset'/'min_size' in calls to get_core_register_section.
139 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
140 'regset' and use it instead of calling the
141 regset_from_core_section gdbarch method.
142 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
143 * i386-tdep.c (i386_supply_xstateregset)
144 (i386_collect_xstateregset, i386_xstateregset): Moved to
145 i386-linux-tdep.c.
146 (i386_regset_from_core_section): Drop handling for .reg-xfp and
147 .reg-xstate.
148 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
149 core file support only if the regset iterator hasn't been set.
150 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
151 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
152 Moved from i386-tdep.c and renamed to *_linux*.
153 (i386_linux_iterate_over_regset_sections): Add regset parameter to
154 each callback invocation. Allow any .reg-xstate size when reading
155 from a core file.
156 * amd64-tdep.c (amd64_supply_xstateregset)
157 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
158 amd64-linux-tdep.c.
159 (amd64_regset_from_core_section): Remove.
160 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
161 install an amd64-specific regset_from_core_section gdbarch method.
162 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
163 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
164 Moved from amd64-tdep.c and renamed to *_linux*.
165 (amd64_linux_iterate_over_regset_sections): Add regset parameter
166 to each callback invocation. Allow any .reg-xstate size when
167 reading from a core file.
168 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
169 (arm_linux_iterate_over_regset_sections): Add regset parameter to
170 each callback invocation.
171 (arm_linux_init_abi): No longer set the regset_from_core_section
172 gdbarch method.
173 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
174 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
175 each callback invocation.
176 (ppc_linux_init_abi): No longer set the regset_from_core_section
177 gdbarch method.
178 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
179 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
180 (s390_regset_from_core_section): Remove.
181 (s390_iterate_over_regset_sections): Add regset parameter to each
182 callback invocation.
183 (s390_gdbarch_init): No longer set the regset_from_core_section
184 gdbarch method. Drop initialization of deleted tdep fields.
185
5aa82d05
AA
1862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
187
188 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
189 (amd64_linux_iterate_over_regset_sections): New.
190 (amd64_linux_init_abi_common): Don't install the regset section
191 list, but the new iterator in gdbarch.
192 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
193 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
194 (arm_linux_iterate_over_regset_sections): ...here. New function.
195 (arm_linux_init_abi): Set iterator instead of section list.
196 * corelow.c (get_core_registers_cb): New function, logic moved
197 from...
198 (get_core_registers): ...loop body here. Use new iterator method
199 instead of walking through the regset section list.
200 * gdbarch.sh: Remove 'core_regset_sections'. New method
201 'iterate_over_regset_sections'. New typedef
202 'iterate_over_regset_sections_cb'.
203 * gdbarch.c: Regenerate.
204 * gdbarch.h: Likewise.
205 * i386-linux-tdep.c (i386_linux_regset_sections)
206 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
207 Remove.
208 (i386_linux_iterate_over_regset_sections): New.
209 (i386_linux_init_abi): Don't choose a regset section list, but
210 install new iterator in gdbarch.
211 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
212 (linux_collect_regset_section_cb): New function, logic moved
213 from...
214 (linux_collect_thread_registers): ...loop body here. Use iterator
215 method instead of walking through list.
216 (linux_make_corefile_notes_1): Check for presence of iterator
217 method instead of regset section list.
218 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
219 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
220 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
221 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
222 (ppc_linux_iterate_over_regset_sections): ...here. New function.
223 (ppc_linux_init_abi): Don't choose from above regset section
224 lists, but install new iterator in gdbarch.
225 * regset.h (struct core_regset_section): Remove.
226 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
227 have_linux_v1, have_linux_v2, and have_tdb.
228 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
229 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
230 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
231 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
232 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
233 (s390_iterate_over_regset_sections): ...here. New function. Use
234 new tdep fields.
235 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
236 regset section lists, but install new iterator.
237
2eca4a8d
JK
2382014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
239
240 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
241
a73c2b56
SM
2422014-09-26 Simon Marchi <simon.marchi@ericsson.com>
243
244 * progspace.c (print_program_space): Don't prune program spaces
245 before printing them.
246
03d46957
PA
2472014-09-25 Pedro Alves <palves@redhat.com>
248
249 * infrun.c (user_visible_resume_ptid): Don't check
250 singlestep_breakpoints_inserted_p.
251
e558d7c1
PA
2522014-09-25 Pedro Alves <palves@redhat.com>
253
254 * breakpoint.c (should_be_inserted): Add debug output.
255
7f89fd65
PA
2562014-09-25 Pedro Alves <palves@redhat.com>
257
258 * infrun.c (stepping_past_instruction_at)
259 (clear_exit_convenience_vars): Point at infrun.h instead of
260 inferior.h.
261 (handle_signal_stop): Fix typo.
262
b7576e5c
YQ
2632014-09-24 Yao Qi <yao@codesourcery.com>
264
265 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
266 bitmask.
267
9a6cf368
GB
2682014-09-22 Gary Benson <gbenson@redhat.com>
269
270 * target.c (target_stop): Updated comment.
271
03f4463b
GB
2722014-09-22 Gary Benson <gbenson@redhat.com>
273
274 * target/target.h (target_stop_ptid): Renamed as...
275 (target_stop_and_wait): New function. Updated comment.
276 All uses updated.
277 (target_continue_ptid): Renamed as...
278 (target_continue_no_signal): New function. Updated comment.
279 All uses updated.
280
a25a5a45
PA
2812014-09-22 Pedro Alves <palves@redhat.com>
282
283 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
284 and "auto" merged.
285 * breakpoint.c (enum ugll_insert_mode): New enum.
286 (always_inserted_mode): Now a plain boolean.
287 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
288 (breakpoints_always_inserted_mode): Delete.
289 (breakpoints_should_be_inserted_now): New function.
290 (insert_breakpoints): Pass UGLL_INSERT to
291 update_global_location_list instead of calling
292 insert_breakpoint_locations manually.
293 (create_solib_event_breakpoint_1): New, factored out from ...
294 (create_solib_event_breakpoint): ... this.
295 (create_and_insert_solib_event_breakpoint): Use
296 create_solib_event_breakpoint_1 instead of calling
297 insert_breakpoint_locations manually.
298 (update_global_location_list): Change parameter type from boolean
299 to enum ugll_insert_mode. All callers adjusted. Adjust to use
300 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
301 (update_global_location_list_nothrow): Change parameter type from
302 boolean to enum ugll_insert_mode.
303 (_initialize_breakpoint): "breakpoint always-inserted" option is
304 now a boolean command. Update help text.
305 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
306 (breakpoints_should_be_inserted_now): New declaration.
307 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
308 Remove breakpoints_always_inserted_mode check.
309 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
310 * remote.c (remote_start_remote): Likewise.
311
04086b45
PA
3122014-09-22 Pedro Alves <palves@redhat.com>
313
314 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
315 (insert_breakpoints): Don't call insert_breakpoint_locations here.
316 Instead, pass UGLL_INSERT to update_global_location_list.
317 (update_global_location_list): Change parameter type from boolean
318 to enum ugll_insert_mode. All callers adjusted. Adjust to use
319 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
320 (create_solib_event_breakpoint_1): New, factored out from ...
321 (create_solib_event_breakpoint): ... this.
322 (create_and_insert_solib_event_breakpoint): Use
323 create_solib_event_breakpoint_1 instead of calling
324 insert_breakpoint_locations manually.
325 (update_global_location_list): Handle UGLL_INSERT.
326
44702360
PA
3272014-09-22 Pedro Alves <palves@redhat.com>
328
329 * breakpoint.c (enum ugll_insert_mode): New enum.
330 (update_global_location_list)
331 (update_global_location_list_nothrow): Change parameter type from
332 boolean to enum ugll_insert_mode. All callers adjusted.
333
93c6145a
JB
3342014-09-19 Joel Brobecker <brobecker@adacore.com>
335
336 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
337 SystemTap support in GDB.
338
89a5711c
DB
3392014-09-19 Don Breazeal <donb@codesourcery.com>
340
341 * linux-nat.c (linux_handle_extended_wait): Call
342 linux_ptrace_get_extended_event.
343 (wait_lwp): Call linux_is_extended_waitstatus.
344 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
345 and linux_is_extended_waitstatus.
346 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
347 linux_ptrace_get_extended_event.
348 (linux_ptrace_get_extended_event): New function.
349 (linux_is_extended_waitstatus): New function.
350 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
351 (linux_is_extended_waitstatus): New declarations.
352
c3b7b696
YQ
3532014-09-19 Yao Qi <yao@codesourcery.com>
354
355 * dwarf2read.c (dwarf_decode_lines): Update declaration.
356 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
357 comments. Callers update.
358 (dwarf_decode_lines): Likewise.
359 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
360 comments. Skip the line table if 'lowpc' is greater than
361 'address'. Don't check
362 dwarf2_per_objfile->has_section_at_zero.
363
2b4fd423
DE
3642014-09-18 Doug Evans <dje@google.com>
365
366 * NEWS: Mention new "producer" attribute of gdb.Symtab.
367 * python/py-symtab.c (stpy_get_producer): New function.
368 (symtab_object_getset): Add "producer" attribute.
369
5e43d467
UW
3702014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
371
372 PR gdb/17384
373 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
374 (do_captured_read_memory_integer): Remove.
375 (safe_read_memory_integer): Use target_read_memory directly instead
376 of catching errors in do_captured_read_memory_integer.
377
04e79979
MR
3782014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
379
380 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
381 not gdb/doc.
382
76aeec5b
SDJ
3832014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
384
385 * objc-lang.c (find_implementation_from_class): Remove dead code.
386
2f693f9d
SDJ
3872014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
388
389 PR cli/7233
390 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
391 "fprintf_unfiltered (gdb_stdlog...)".
392
bb9d5f81
PP
3932014-09-16 Patrick Palka <patrick@parcs.ath.cx>
394
395 PR breakpoints/12526
396 * breakpoint.h (struct watchpoint): New fields val_bitpos and
397 val_bitsize.
398 * breakpoint.c (watch_command_1): Use these fields to retain
399 bitfield information.
400 (extract_bitfield_from_watchpoint_value): New function.
401 (watchpoint_check): Use it.
402 (update_watchpoint): Use it. Optimize the address and length of a
403 HW watchpoint pointing to a bitfield.
404 * value.h (unpack_value_bitfield): New prototype.
405 * value.c (unpack_value_bitfield): Make extern.
406
05db5edd
ST
4072014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
408
409 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
410 x86-dregs.o.
411 * gnu-nat.c (inf_threads): New function.
412 * gnu-nat.h (inf_threads_ftype): New typedef.
413 (inf_threads): New declaration.
414 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
415 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
416 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
417 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
418 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
419 (i386_gnu_dr_get_control): New functions.
420 (reg_addr): New structure.
421 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
422 i386 debugging register hooks.
423 * NEWS: Mention this.
424
5a578da5
OJ
4252014-08-13 Omair Javaid <omair.javaid@linaro.org>
426
427 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
428 vector data transfer instructions.
429 (arm_record_coproc_data_proc): Updated.
430
f20f80dd
OJ
4312014-08-13 Omair Javaid <omair.javaid@linaro.org>
432
433 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
434 arm_record_exreg_ld_st_insn.
435 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
436 load/store insns.
437
851f26ae
OJ
4382014-08-13 Omair Javaid <omair.javaid@linaro.org>
439
440 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
441 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
442 processing instructions.
443
1e1b6563
OJ
4442014-08-13 Omair Javaid <omair.javaid@linaro.org>
445
446 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
447 for advance SIMD struct ld/st insn.
448 (thumb2_record_decode_insn_handler): Replace stub handler with
449 thumb2_record_asimd_struct_ld_st.
450
60cc5e93
OJ
4512014-08-13 Omair Javaid <omair.javaid@linaro.org>
452
453 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
454 for asimd, vfp and coprocessor insns.
455 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
456 and coprocessor insns.
457 (thumb2_record_coproc_insn): New function.
458 (thumb2_record_decode_insn_handler): Update coprocessor insns record
459 handlers.
460 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
461 opcode 110 insns.
462
81219e53
DE
4632014-09-13 Doug Evans <xdje42@gmail.com>
464
465 * NEWS: Mention new "queue-signal" command.
466 * infcmd.c (queue_signal_command): New function.
467 (_initialize_infcmd): Add new queue-signal command.
468
d36bf488
DE
4692014-09-13 Doug Evans <xdje42@gmail.com>
470
471 * linux-nat.c (wait_lwp): Add debugging printf.
472 (linux_nat_wait_1): Ditto.
473
f37f681c
PA
4742014-09-12 Pedro Alves <palves@redhat.com>
475
476 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
477 (create_and_insert_solib_event_breakpoint): New functions.
478 * breakpoint.h (create_and_insert_solib_event_breakpoint)
479 (remove_solib_event_breakpoints_at_next_stop): New declarations.
480 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
481 (remove_dbx_link_breakpoint): Delete function.
482 (insert_dbx_link_bpt_in_file): Use
483 create_and_insert_solib_event_breakpoint instead of
484 deprecated_insert_raw_breakpoint.
485 (procfs_wait): Don't check whether we hit __dbx_link here.
486 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
487 here.
488 * solib-irix.c (base_breakpoint): Delete global.
489 (disable_break): Delete function.
490 (enable_break): Use create_solib_event_breakpoint
491 instead of deprecated_insert_raw_breakpoint.
492 (irix_solib_handle_event): New function.
493 (irix_solib_create_inferior_hook): Don't run the target or disable
494 the mapping-complete breakpoint here.
495 (_initialize_irix_solib): Install irix_solib_handle_event as
496 so_ops->handle_event hook.
497
9d9bf2df
EBM
4982014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
499 Ulrich Weigand  <uweigand@de.ibm.com>
500
501 PR tdep/17379
502 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
503 instead of read_memory_unsigned_integer.
504
b006a80e
GB
5052014-09-12 Gary Benson <gbenson@redhat.com>
506
507 * nat/linux-waitpid.c: Include common-defs.h.
508 [GDBSERVER]: Add FIXME comment.
509 [!GDBSERVER]: Don't include defs.h or signal.h.
510 (linux_debug) [!GDBSERVER]: Remove empty block.
511
296b1496
GB
5122014-09-12 Gary Benson <gbenson@redhat.com>
513
514 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
515 Don't include defs.h or server.h.
516
53f81362
GB
5172014-09-12 Gary Benson <gbenson@redhat.com>
518
519 * nat/linux-btrace.c: Include common-defs.h.
520 Don't include defs.h, server.h or gdbthread.h.
521 * nat/linux-btrace.h (struct target_ops): New forward declaration.
522
727605ca
GB
5232014-09-12 Gary Benson <gbenson@redhat.com>
524
525 * common/agent.c: Include common-defs.h.
526 Don't include defs.h or server.h.
527 * common/buffer.c: Likewise.
528 * common/common-debug.c: Likewise.
529 * common/common-utils.c: Likewise.
530 * common/errors.c: Likewise.
531 * common/filestuff.c: Likewise.
532 * common/format.c: Likewise.
533 * common/gdb_vecs.c: Likewise.
534 * common/print-utils.c: Likewise.
535 * common/ptid.c: Likewise.
536 * common/rsp-low.c: Likewise.
537 * common/signals.c: Likewise.
538 * common/vec.c: Likewise.
539 * common/xml-utils.c: Likewise.
540 * nat/linux-osdata.c: Likewise.
541 * nat/linux-procfs.c: Likewise.
542 * nat/linux-ptrace.c: Likewise.
543 * nat/mips-linux-watch.c: Likewise.
544 * target/waitstatus.c: Likewise.
545
361c8ade
GB
5462014-09-12 Tom Tromey <tromey@redhat.com>
547 Gary Benson <gbenson@redhat.com>
548
549 * common/common-regcache.h: New file.
550 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
551 * regcache.h: Include common-regcache.h.
552 (regcache_read_pc): Don't declare.
553 * regcache.c (get_thread_regcache_for_ptid): New function.
554 * nat/linux-btrace.c: Don't include regcache.h.
555 Include common-regcache.h.
556 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
557
a01cbb49
TS
5582014-09-11 Thomas Schwinge <thomas@codesourcery.com>
559
560 * regcache.h (struct regset): Declare.
561
98880d46
PA
5622014-09-11 Pedro Alves <palves@redhat.com>
563
564 PR gdb/17347
565 * main.c: Include "infrun.h".
566 (catch_command_errors, catch_command_errors_const): Wait for the
567 foreground command to complete.
568 * top.c (maybe_wait_sync_command_done): New function, factored out
569 from ...
570 (maybe_wait_sync_command_done): ... here.
571 * top.h (maybe_wait_sync_command_done): New declaration.
572
bd9269f7
GB
5732014-09-11 Tom Tromey <tromey@redhat.com>
574 Gary Benson <gbenson@redhat.com>
575
576 * common/symbol.h: New file.
577 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
578 * minsyms.c (find_minimal_symbol_address): New function.
579 * common/agent.c: Include common/symbol.h.
580 [!GDBSERVER]: Don't include objfiles.h.
581 (agent_look_up_symbols): Use find_minimal_symbol_address.
582
f8c1d06b
GB
5832014-09-11 Gary Benson <gbenson@redhat.com>
584
585 * target/target.h (target_stop_ptid, target_continue_ptid):
586 Declare.
587 * target.c (target_stop_ptid, target_continue_ptid): New
588 functions.
589 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
590 (agent_run_command): Always use target_stop_ptid and
591 target_continue_ptid.
592
721ec300
GB
5932014-09-11 Tom Tromey <tromey@redhat.com>
594 Gary Benson <gbenson@redhat.com>
595
596 * target/target.h: New file.
597 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
598 * target.h: Include target/target.h.
599 (target_read_memory, target_write_memory): Don't declare.
600 * target.c (target_read_uint32): New function.
601 * common/agent.c: Include target/target.h.
602 [!GDBSERVER]: Don't include target.h.
603 (helper_thread_id): Type changed to uint32_t.
604 (agent_get_helper_thread_id): Use target_read_uint32.
605 (agent_run_command): Always use target_read_memory and
606 target_write_memory.
607 (agent_capability): Type changed to uint32_t.
608 (agent_capability_check): Use target_read_uint32.
609
c5e92cca
GB
6102014-09-11 Gary Benson <gbenson@redhat.com>
611
612 * common/common-debug.h (show_debug_regs): Declare.
613 * common/common-debug.c (show_debug_regs): Define.
614 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
615 all uses with show_debug_regs. Replace all uses that considered
616 debug_hw_points as a multi-value integer with straight boolean
617 uses.
618 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
619 with show_debug_regs.
620 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
621 all uses with show_debug_regs.
622 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
623 uses with show_debug_regs.
624
eeef931a
UW
6252014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
626
627 * findvar.c (address_from_register): Handle targets requiring
628 a special conversion routine even for plain pointer types.
629
8efa9855
UW
6302014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
631
632 * rs6000-nat.c (exec_one_dummy_insn): Remove.
633 (store_register): Do not call exec_one_dummy_insn.
634
eb479039
JB
6352014-09-10 Joel Brobecker <brobecker@adacore.com>
636
637 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
638 dereference it first. Use value_enclosing_type instead of
639 value_type.
640 (ada_array_length): Likewise.
641
deede10c
JB
6422014-09-10 Joel Brobecker <brobecker@adacore.com>
643
644 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
645 Adjust function implementation and documentation accordingly.
646 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
647 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
648 Update call to ada_value_ptr_subscript.
649
7828a5f5
JB
6502014-09-10 Joel Brobecker <brobecker@adacore.com>
651
652 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
653 instead of VAL's type.
654
35782f14
JB
6552014-09-10 Joel Brobecker <brobecker@adacore.com>
656
657 * amd64-linux-nat.c: Add <sys/uio.h> #include.
658
d342a0da
DE
6592014-09-09 Doug Evans <xdje42@gmail.com>
660
661 PR guile/17367
662 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
663 last parameter to pkg-config, not first.
664 * configure.ac: Pass --with-guile provided pkg-config path to
665 GDB_GUILE_PROGRAM_NAMES.
666 * configure: Regenerate.
667
b4a3d263
GKB
6682014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
669
670 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
671 Bertazi".
672
6e466374
MR
6732014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
674
675 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
676 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
677 the list of sections determining GDB_OSABI_IRIX.
678
a1ada89a
JH
6792014-09-09 James Hogan <james.hogan@imgtec.com>
680
681 * MAINTAINERS (Write After Approval): Add "James Hogan".
682
86db008d
JH
6832014-09-09 James Hogan <james.hogan@imgtec.com>
684
685 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
686
72fde3df
JB
6872014-09-09 Joel Brobecker <brobecker@adacore.com>
688
689 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
690
92d8d229
DE
6912014-09-08 Doug Evans <xdje42@gmail.com>
692
693 PR 17247
694 * guile.c: #include <signal.h>.
695 (_initialize_guile): Block SIGCHLD while initializing Guile.
696
697 Replaces the following, which is reverted.
698
699 2014-07-26 Doug Evans <xdje42@gmail.com>
700
701 PR 17185
702 * configure.ac: Add check for header gc/gc.h.
703 Add check for function setenv.
704 * configure: Regenerate.
705 * config.in: Regenerate.
706 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
707
d81412aa
DE
7082014-09-08 Doug Evans <xdje42@gmail.com>
709
710 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
711 with named constant. Fix style of pointer comparison.
712 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
713
a9f116cb
GKB
7142014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
715
716 PR gdb/17035
717 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
718 decide whether we display the command on "show user".
719 * cli/cli-script.c (show_user_1): Only verify cmdlines after
720 printing command name.
721 * cli/cli-decode.h (cli_user_command_p): Declare new function.
722 * cli/cli-decode.c (cli_user_command_p): Create helper function
723 to verify whether cmd_list_element is a user-defined command.
724
c75bd3a2
JK
7252014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
726
727 PR python/17355
728 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
729 Fix goto out of TRY_CATCH.
730
faa42425 7312014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 732 Tom Tromey <tromey@redhat.com>
faa42425
DE
733
734 PR 15276
735 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
736 $_any_caller_matches.
737 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
738 * python/lib/gdb/function/caller_is.py: New file.
739
0d41ba00
DE
7402014-09-06 Doug Evans <xdje42@gmail.com>
741
742 * infcmd.c (program_info): Fix typo.
743
474ca4f6
SDJ
7442014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
745
746 PR gdb/17235
747 * stap-probe.c (stap_parse_single_operand): Delete unused variable
748 'number'. New variable 'has_digit'. Rewrite code to deal with
749 subexpressions on SDT probes.
750
ebf13736
PA
7512014-09-04 Pedro Alves <palves@redhat.com>
752
753 * c-exp.y (parse_number): Skip handling base-switching prefixes if
754 the input is only one character long.
755
eb0b0463
SDJ
7562014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
757
758 PR fortran/17237
759 * f-valprint.c (f_val_print): Specify the correct print option to
760 use when printing integer values.
761
5ee44bfa
GB
7622014-09-04 Gary Benson <gbenson@redhat.com>
763
764 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
765 Remove code to cope with LWPs wrapped as PIDs.
766 Add assertions to ensure no wrapped LWPs are passed.
767
4875ffdb
PA
7682014-09-04 Pedro Alves <palves@redhat.com>
769
770 * value.c (value_ranges_copy_adjusted): New function, factored out
771 from ...
772 (value_contents_copy_raw): ... here.
773 (unpack_value_bits_as_long_1): Rename back to ...
774 (unpack_bits_as_long): ... this. Remove 'original_value' and
775 'result' parameters. Change return type to LONGEST.
776 (unpack_value_bits_as_long): Delete.
777 (unpack_value_field_as_long_1): Delete.
778 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
779 (unpack_value_bitfield): New function.
780 (value_field_bitfield): Reimplement using unpack_value_bitfield.
781 (value_fetch_lazy): Use unpack_value_bitfield.
782 * value.h (unpack_value_bits_as_long): Delete declaration.
783
5f3b99cf
SS
7842014-09-03 Sasha Smundak <asmundak@google.com>
785
786 * python/py-frame.c (frapy_read_register): New function.
787
ac740bc7
JH
7882014-09-03 James Hogan <james.hogan@imgtec.com>
789
790 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
791 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
792
7d793aa9
SDJ
7932014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
794
795 PR python/16699
796 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
797 function.
798 (add_cmd): Set "completer_handle_brkchars" to NULL.
799 * cli/cli-decode.h (struct cmd_list_element)
800 <completer_handle_brkchars>: New field.
801 * command.h (completer_ftype_void): New typedef.
802 (set_cmd_completer_handle_brkchars): New prototype.
803 * completer.c (set_gdb_completion_word_break_characters): New
804 function.
805 (complete_line_internal): Call "completer_handle_brkchars"
806 callback from command.
807 * completer.h: Include "command.h".
808 (set_gdb_completion_word_break_characters): New prototype.
809 * python/py-cmd.c (cmdpy_completer_helper): New function.
810 (cmdpy_completer_handle_brkchars): New function.
811 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
812 (cmdpy_init): Set completer_handle_brkchars to
813 cmdpy_completer_handle_brkchars.
814
97ea6506
GB
8152014-09-03 Gary Benson <gbenson@redhat.com>
816
817 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
818 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
819 Loop conditions changed to equivalent form.
820 (struct x86_debug_reg_state): Updated dr_ref_count comment.
821 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
822 ALL_DEBUG_ADDRESS_REGISTERS.
823
d1437815
JB
8242014-09-03 Joel Brobecker <brobecker@adacore.com>
825
826 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
827 description fix.
828
9b94fcf1
DE
8292014-09-02 Doug Evans <dje@google.com>
830
831 * typeprint.c (find_global_typedef): Fix comment.
832
df7e5265
GB
8332014-09-02 Gary Benson <gbenson@redhat.com>
834
835 * i386-nat.h: Renamed as...
836 * x86-nat.h: New file. All type, function and variable name
837 prefixes changed from "i386_" to "x86_". All references updated.
838 * i386-nat.c: Renamed as...
839 * x86-nat.c: New file. All type, function and variable name
840 prefixes changed from "i386_" to "x86_". All references updated.
841 * common/i386-xstate.h: Renamed as...
842 * common/x86-xstate.h: New file. All type, function and variable
843 name prefixes changed from "i386_" to "x86_". All references
844 updated.
845 * nat/i386-cpuid.h: Renamed as...
846 * nat/x86-cpuid.h: New file. All type, function and variable name
847 prefixes changed from "i386_" to "x86_". All references updated.
848 * nat/i386-gcc-cpuid.h: Renamed as...
849 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
850 name prefixes changed from "i386_" to "x86_". All references
851 updated.
852 * nat/i386-dregs.h: Renamed as...
853 * nat/x86-dregs.h: New file. All type, function and variable name
854 prefixes changed from "i386_" to "x86_". All references updated.
855 * nat/i386-dregs.c: Renamed as...
856 * nat/x86-dregs.c: New file. All type, function and variable name
857 prefixes changed from "i386_" to "x86_". All references updated.
858
1c3569d4
MR
8592014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
860
861 * varobj.c (_initialize_varobj): Move to the end of file.
862
ff55e1b5
GB
8632014-08-29 Gary Benson <gbenson@redhat.com>
864
865 * common/common-exceptions.h: New file.
866 * common/common-exceptions.c: Likewise.
867 * Makefile.in (SFILES): Add common/common-exceptions.c.
868 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
869 (COMMON_OBS): Add common-exceptions.o.
870 (common-exceptions.o): New rule.
871 * exceptions.h (common-exceptions.h): Include.
872 (gdb_setjmp.h): Do not include.
873 (return_reason): Moved to common-exceptions.h.
874 (enum return_reason): Likewise.
875 (RETURN_MASK): Likewise.
876 (typedef return_mask): Likewise.
877 (enum errors): Likewise.
878 (struct gdb_exception): Likewise.
879 (exceptions_state_mc_init): Likewise.
880 (exceptions_state_mc_action_iter): Likewise.
881 (exceptions_state_mc_action_iter_1): Likewise.
882 (TRY_CATCH): Likewise.
883 (throw_exception): Likewise.
884 (throw_verror): Likewise.
885 (throw_vquit): Likewise.
886 (throw_error): Likewise.
887 (throw_quit): Likewise.
888 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
889 (enum catcher_action): Likewise.
890 (struct catcher): Likewise.
891 (current_catcher): Likewise.
892 (catcher_list_size): Likewise.
893 (exceptions_state_mc_init): Likewise.
894 (catcher_pop): Likewise.
895 (exceptions_state_mc): Likewise.
896 (exceptions_state_mc_action_iter): Likewise.
897 (exceptions_state_mc_action_iter_1): Likewise.
898 (throw_exception): Likewise.
899 (exception_messages): Likewise.
900 (exception_messages_size): Likewise.
901 (throw_it): Likewise.
902 (throw_verror): Likewise.
903 (throw_vquit): Likewise.
904 (throw_error): Likewise.
905 (throw_quit): Likewise.
906 (prepare_to_throw_exception): New function.
907
e9bcb658
GB
9082014-08-29 Gary Benson <gbenson@redhat.com>
909
910 * common/gdb_setjmp.h: New file.
911 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
912 * configure.ac: Move sigsetjmp check...
913 * common/common.m4: ...here.
914 * configure: Regenerate.
915 * cp-support.c (SIGJMP_BUF): Delete.
916 (SIGSETJMP): Likewise.
917 (SIGLONGJMP): Likewise.
918 * exceptions.h (gdb_setjmp.h): Include.
919 (setjmp.h): Do not include.
920 (EXCEPTIONS_SIGJMP_BUF): Delete.
921 (EXCEPTIONS_SIGSETJMP): Likewise.
922 (EXCEPTIONS_SIGLONGJMP): Likewise.
923 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
924 from gdb_setjmp.h.
925 * exceptions.c: Likewise.
926
e3180625
GB
9272014-08-29 Gary Benson <gbenson@redhat.com>
928
929 * cleanups.h: Moved to...
930 * common/cleanups.h: New file.
931 * cleanups.c: Moved to...
932 * common/cleanups.c: New file. Include common-defs.h and
933 cleanups.h. Do not include defs.h.
934 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
935 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
936 (cleanups.o): New rule.
937
e3d6ba5d
GB
9382014-08-29 Gary Benson <gbenson@redhat.com>
939
940 * common/errors.h (internal_warning): New declaration.
941 (internal_vwarning): Likewise.
942 * common/errors.c (internal_warning): New function.
943 * utils.h (internal_warning): Don't declare.
944 (internal_vwarning): Likewise.
945 * utils.c (internal_warning): Removed.
946
075c7033
GB
9472014-08-29 Gary Benson <gbenson@redhat.com>
948
949 * main.c (captured_main): Use warning during startup.
950 Prefix startup warning messages with command name.
951
91b35fd0
GB
9522014-08-29 Gary Benson <gbenson@redhat.com>
953
954 * main.c (captured_main): Handle usage errors with error.
955
b1ec390e
GB
9562014-08-29 Gary Benson <gbenson@redhat.com>
957
958 * go32-nat.c (go32_create_inferior): Replace a fprintf/
959 exit pair with a call to error. Wrap the message with _().
960
fd0ef3dd
GB
9612014-08-29 Gary Benson <gbenson@redhat.com>
962
963 * main.c (captured_main): Replace a fprintf/exit
964 pair with a call to error. Wrap the message with _().
965
e0e6bcab
GB
9662014-08-29 Gary Benson <gbenson@redhat.com>
967
968 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
969 pairs with calls to error. Wrap the message with _().
970
0d2f5c07
GB
9712014-08-29 Gary Benson <gbenson@redhat.com>
972
973 * utils.c (vwarning): Protect calls to target_terminal_ours
974 and wrap_here.
975
5df43998
GB
9762014-08-29 Gary Benson <gbenson@redhat.com>
977
978 * exceptions.c (print_flush): Protect calls to
979 target_terminal_ours and wrap_here.
980
2437fd32
GB
9812014-08-29 Gary Benson <gbenson@redhat.com>
982
983 * utils.h (filtered_printing_initialized): New declaration.
984 * utils.c (abort_with_message): New function.
985 (internal_vproblem): Use abort_with_message for first level
986 recursive internal problems, and if gdb_stderr is not set up.
987 Protect calls to target_terminal_ours, begin_line and query.
988
f1f58506
DE
9892014-08-28 Doug Evans <dje@google.com>
990
991 * symtab.c (in_prologue): Move definition to better spot.
992 (skip_prologue_using_sal): Ditto.
993
aab2f208
DE
9942014-08-28 Doug Evans <dje@google.com>
995
996 * symtab.c (find_function_start_sal): Move definition to better spot.
997
6b65d1b6
YQ
9982014-08-28 Yao Qi <yao@codesourcery.com>
999
1000 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1001 found_stack_adjust in forward scan. Remove condition check
1002 on found_stack_adjust which is always true. Indent the code.
1003
a1b34d15
YQ
10042014-08-28 Yao Qi <yao@codesourcery.com>
1005
1006 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1007 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1008 (dwarf_decode_lines): Remove argument
1009 want_line_info. Remove condition check on want_line_info.
1010 Callers update.
1011
d5962de5
DE
10122014-08-27 Doug Evans <dje@google.com>
1013
1014 * dwarf2read.c (dwarf_record_line): Fix typo.
1015
9b139002
SDJ
10162014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1017
1018 * target.h (struct target_ops::to_terminal_save_ours): Remove
1019 declaration.
1020 (target_terminal_save_ours): Remove macro.
1021 * target-delegates.c: Regenerate.
1022 * inf-child.c (inf_child_target): Don't set the nonexistent
1023 field to_terminal_save_ours.
1024 * inferior.h (child_terminal_save_ours): Remove declaration.
1025 * terminal.h (gdb_save_tty_state): New declaration.
1026 * inflow.c (child_terminal_save_ours): Rename to ...
1027 (gdb_save_tty_state): ... this.
1028 * tui/tui.c: Include terminal.h.
1029 (tui_enable): Use gdb_save_tty_state instead of
1030 target_terminal_save_ours.
1031 (tui_disable): Likewise.
1032
9debeba0
DE
10332014-08-25 Doug Evans <dje@google.com>
1034
1035 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1036 Pass NULL instead of 0 for context pointer.
1037
428fc5fc
YQ
10382014-08-25 Yao Qi <yao@codesourcery.com>
1039
1040 * dwarf2read.c: Fix grammatical error.
1041
cdc07690
YQ
10422014-08-24 Yao Qi <yao@codesourcery.com>
1043
1044 * dwarf2read.c (scan_partial_symbols): Update comments.
1045 Rename argument 'need_pc' with 'set_addrmap'.
1046 (add_partial_namespace): Rename argument 'need_pc' with
1047 'set_addrmap'.
1048 (add_partial_module): Likewise.
1049 (add_partial_subprogram): Likewise. Update comments.
1050 (dwarf2_name): Fix typo.
1051
a05a36a5
DE
10522014-08-22 Doug Evans <dje@google.com>
1053
1054 PR 17276
1055 * dwarf2read.c (dwarf_record_line_p): New function.
1056 (dwarf_decode_lines_1): Ignore subsequent line number entries
1057 for the same line if any entry had a non-zero discriminator.
1058
252a6764
DE
10592014-08-22 Doug Evans <dje@google.com>
1060
1061 * buildsym.h (record_line_ftype): New typedef.
1062 (record_line): Use it.
1063 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1064 (dwarf_decode_lines_1): Call them.
1065
510db052
YQ
10662014-08-22 Yao Qi <yao@codesourcery.com>
1067
1068 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1069 (ctf_end): Remove code.
1070
22fd09ae
JK
10712014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1072
1073 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1074 (linux_make_corefile_notes): call update_thread_list, protected against
1075 exceptions.
1076
656e8868
PA
10772014-08-21 Pedro Alves <palves@redhat.com>
1078
1079 * infcmd.c (attach_command): Remove comment.
1080
de589d04
WN
10812014-08-21 Bin Cheng <bin.cheng@arm.com>
1082
1083 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1084 unsigned LONGEST to ULONGEST.
1085
2a31c623
PA
10862014-08-20 Pedro Alves <palves@redhat.com>
1087
1088 * Makefile.in (check-read1): New rule.
1089
d36430db
JB
10902014-08-20 Joel Brobecker <brobecker@adacore.com>
1091
1092 * value.c (value_from_contents_and_address): Strip resolved_type's
1093 typedef layers before checking its TYPE_DATA_LOCATION.
1094
000339af
PA
10952014-08-20 Pedro Alves <palves@redhat.com>
1096
1097 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1098
5f52445b
YQ
10992014-08-20 Yao Qi <yao@codesourcery.com>
1100
1101 * amd64-tdep.c (amd64_classify): Add a blank line after the
1102 example. Move "*/" to a new line.
1103 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1104 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1105 * dwarf2read.c (psymtab_include_file_name): Likewise.
1106
9a0dc9e3
PA
11072014-08-19 Andrew Burgess <aburgess@broadcom.com>
1108 Pedro Alves <palves@redhat.com>
1109
1110 PR symtab/14604
1111 PR symtab/14605
1112 * ada-lang.c (coerce_unspec_val_to_type): Use
1113 value_contents_copy_raw.
1114 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1115 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1116 * cp-valprint.c (cp_print_value_fields): Let the common printing
1117 code handle optimized out values.
1118 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1119 * d-valprint.c (dynamic_array_type): Use
1120 value_bits_any_optimized_out.
1121 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1122 check_any_valid fields.
1123 (check_pieced_value_bits): Delete and inline ...
1124 (check_pieced_synthetic_pointer): ... here.
1125 (check_pieced_value_validity): Delete.
1126 (check_pieced_value_invalid): Delete.
1127 (pieced_value_funcs): Remove check_validity and check_any_valid
1128 fields.
1129 (read_pieced_value): Use mark_value_bits_optimized_out.
1130 (write_pieced_value): Switch to use
1131 mark_value_bytes_optimized_out.
1132 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1133 of assuming the whole value is optimized out.
1134 * findvar.c (read_frame_register_value): Remove special handling
1135 of optimized out registers.
1136 (value_from_register): Use mark_value_bytes_optimized_out.
1137 * frame-unwind.c (frame_unwind_got_optimized): Use
1138 mark_value_bytes_optimized_out.
1139 * jv-valprint.c (java_value_print): Adjust.
1140 (java_print_value_fields): Let the common printing code handle
1141 optimized out values.
1142 * mips-tdep.c (mips_print_register): Remove special handling of
1143 optimized out registers.
1144 * opencl-lang.c (lval_func_check_validity): Delete.
1145 (lval_func_check_any_valid): Delete.
1146 (opencl_value_funcs): Remove check_validity and check_any_valid
1147 fields.
1148 * p-valprint.c (pascal_object_print_value_fields): Let the common
1149 printing code handle optimized out values.
1150 * stack.c (read_frame_arg): Remove special handling of optimized
1151 out values. Fetch both VAL and ENTRYVAL before comparing
1152 contents. Adjust to value_available_contents_eq rename.
1153 * valprint.c (valprint_check_validity)
1154 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1155 (val_print_array_elements): Adjust.
1156 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1157 (value_bits_any_optimized_out): New function.
1158 (value_entirely_covered_by_range_vector): New function, factored
1159 out from value_entirely_unavailable.
1160 (value_entirely_unavailable): Reimplement.
1161 (value_entirely_optimized_out): New function.
1162 (insert_into_bit_range_vector): New function, factored out from
1163 mark_value_bits_unavailable.
1164 (mark_value_bits_unavailable): Reimplement.
1165 (struct ranges_and_idx): New struct.
1166 (find_first_range_overlap_and_match): New function, factored out
1167 from value_available_contents_bits_eq.
1168 (value_available_contents_bits_eq): Rename to ...
1169 (value_contents_bits_eq): ... this. Check both unavailable
1170 contents and optimized out contents.
1171 (value_available_contents_eq): Rename to ...
1172 (value_contents_eq): ... this.
1173 (allocate_value_lazy): Remove reference to the old optimized_out
1174 boolean.
1175 (allocate_optimized_out_value): Use
1176 mark_value_bytes_optimized_out.
1177 (require_not_optimized_out): Adjust to check whether the
1178 optimized_out vec is empty.
1179 (ranges_copy_adjusted): New function, factored out from
1180 value_contents_copy_raw.
1181 (value_contents_copy_raw): Also copy the optimized out ranges.
1182 Assert the destination ranges aren't optimized out.
1183 (value_contents_copy): Update comment, remove call to
1184 require_not_optimized_out.
1185 (value_contents_equal): Adjust to check whether the optimized_out
1186 vec is empty.
1187 (set_value_optimized_out, value_optimized_out_const): Delete.
1188 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1189 New functions.
1190 (value_entirely_optimized_out, value_bits_valid): Delete.
1191 (value_copy): Take a VEC copy of the 'optimized_out' field.
1192 (value_primitive_field): Remove special handling of optimized out.
1193 (value_fetch_lazy): Assert that lazy values have no unavailable
1194 regions. Use value_bits_any_optimized_out. Remove some special
1195 handling for optimized out values.
1196 * value.h: Add intro comment about <optimized out> and
1197 <unavailable>.
1198 (struct lval_funcs): Remove check_validity and check_any_valid
1199 fields.
1200 (set_value_optimized_out, value_optimized_out_const): Remove.
1201 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1202 New declarations.
1203 (value_bits_any_optimized_out): New declaration.
1204 (value_bits_valid): Delete declaration.
1205 (value_available_contents_eq): Rename to ...
1206 (value_contents_eq): ... this, and extend comments.
1207
6694c411
JK
12082014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1209
1210 Fix -fsanitize=address on unreadable inferior strings.
1211 * valprint.c (val_print_string): Fix access before BUFFER.
1212
89a1c21a
SM
12132014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1214
1215 * target.c (target_struct_size): Remove.
1216 (target_struct_allocsize): Remove.
1217 (DEFAULT_ALLOCSIZE): Remove.
1218 (target_ops_p): New typedef.
1219 (DEF_VEC_P (target_ops_p)): New vector type.
1220 (target_structs): Change type to VEC (target_ops_p).
1221 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1222 (find_default_run_target): Rewrite for loop following changes to
1223 target_structs.
1224
cb417230
JB
12252014-08-19 Joel Brobecker <brobecker@adacore.com>
1226
1227 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1228 Adjust code accordingly. Adjust function description comment.
1229
817e0957
YQ
12302014-08-19 Yao Qi <yao@codesourcery.com>
1231
1232 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1233 types.
1234
2974be62
AM
12352014-08-19 Alan Modra <amodra@gmail.com>
1236
1237 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1238 * config.in: Regenerate.
1239 * configure: Regenerate.
1240
34abf635
GB
12412014-08-19 Tom Tromey <tromey@redhat.com>
1242 Gary Benson <gbenson@redhat.com>
1243
1244 * common/common-debug.h: New file.
1245 * common/common-debug.c: Likewise.
1246 * debug.c: Likewise.
1247 * Makefile.in (SFILES): Add common/common-debug.c.
1248 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1249 (COMMON_OBS): Add common-debug.o and debug.o.
1250 (common-debug.o): New rule.
1251 * common/common-defs.h: Include common-debug.h.
1252 * common/agent.c (debug_agent_printf): New function.
1253 (DEBUG_AGENT): Redefine.
1254 * nat/i386-dregs.c (debug_printf): Undefine.
1255
f6e94d78
GB
12562014-08-19 Gary Benson <gbenson@redhat.com>
1257
1258 * common/common-defs.h: Include print-utils.h.
1259 * utils.h: Do not include print-utils.h.
1260
9239eeab
GB
12612014-08-19 Tom Tromey <tromey@redhat.com>
1262 Gary Benson <gbenson@redhat.com>
1263
1264 * common/common-types.h: New file.
1265 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1266 * common/common-defs.h: Include common-types.h.
1267 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1268 (ULONGEST): Remove.
1269
ef87c8bb
GB
12702014-08-19 Tom Tromey <tromey@redhat.com>
1271 Gary Benson <gbenson@redhat.com>
1272
1273 * common/errors.h: New file.
1274 * common/errors.c: Likewise.
1275 * Makefile.in (SFILES): Add common/errors.c.
1276 (HFILES_NO_SRCDIR): Add common/errors.h.
1277 (COMMON_OBS): Add errors.o.
1278 (errors.o): New rule.
1279 * common/common-defs.h: Include errors.h.
1280 * utils.h (perror_with_name, error, verror, warning, vwarning):
1281 Don't declare.
1282 * common/common-utils.h: (malloc_failure, internal_error):
1283 Likewise.
1284
196a707b
GB
12852014-08-19 Gary Benson <gbenson@redhat.com>
1286
1287 * utils.c (internal_vproblem): Always print the message.
1288
ded4fc8f
DE
12892014-08-18 Doug Evans <dje@google.com>
1290
1291 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1292
950c97d8
JB
12932014-08-18 Joel Brobecker <brobecker@adacore.com>
1294
1295 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1296 Return 0 if TYPE is dynamic.
1297 (print_range): Add handling of dynamic ranges.
1298
3cdcd0ce
JB
12992014-08-18 Keven Boell <keven.boell@intel.com>
1300 Joel Brobecker <brobecker@adacore.com>
1301
1302 * gdbtypes.h (struct main_type): Add field "data_location".
1303 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1304 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1305 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1306 a dynamic data location.
1307 (resolve_dynamic_type): Add DW_AT_data_location handling.
1308 (copy_recursive, copy_type): Copy the data_location information
1309 when present.
1310 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1311 * value.c (value_from_contents_and_address): Add
1312 DW_AT_data_location handling.
1313
08412b07
JB
13142014-08-18 Keven Boell <keven.boell@intel.com>
1315 Joel Brobecker <brobecker@adacore.com>
1316
1317 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1318 field "get_object_address".
1319 * dwarf2expr.c (execute_stack_op): Add handling for
1320 DW_OP_push_object_address.
1321 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1322 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1323 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1324 (dwarf_expr_get_obj_addr): New function.
1325 (dwarf_expr_ctx_funcs): Add get_object_address field.
1326 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1327 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1328 (dwarf2_evaluate_property): Add parameter "address". Use it.
1329 (needs_get_obj_addr): New function.
1330 (needs_frame_ctx_funcs): Add get_object_address field.
1331 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1332 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1333 (resolve_dynamic_array): Likewise.
1334
84754697
JB
13352014-08-18 Joel Brobecker <brobecker@adacore.com>
1336
1337 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1338 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1339 fixed value for records and unions for which some GNAT encodings
1340 are present.
1341
da5c522f
JB
13422014-08-18 Joel Brobecker <brobecker@adacore.com>
1343
1344 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1345 rewrite to avoid "else if" and "else" constructs. Should be
1346 a no-op in practice.
1347
0d72a7c3
JB
13482014-08-18 Joel Brobecker <brobecker@adacore.com>
1349
1350 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1351 of lexical block.
1352
e66d4446
SC
13532014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1354
1355 PR c++/17132
1356 * eval.c: Update all calls to find_overload_match.
1357 * valarith.c: Likewise.
1358 (value_user_defined_cpp_op, value_user_defined_op): New
1359 argument NOSIDE. Update all callers.
1360 * valops.c (find_overload_match): New argument NOSIDE.
1361 * value.h (find_overload_match): Update signature.
1362
940df408
SC
13632014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1364
1365 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1366 'items' methods instead of 'iteritems' method on dictionaries.
1367
699ca60a
DE
13682014-08-15 Doug Evans <dje@google.com>
1369
1370 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1371 closer to use.
1372
37780ee5
DE
13732014-08-15 Doug Evans <dje@google.com>
1374
1375 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1376
0ad93d4f
DE
13772014-08-15 Doug Evans <dje@google.com>
1378
1379 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1380
20d8c372
DE
13812014-08-15 Doug Evans <dje@google.com>
1382
1383 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1384 unused.
1385
cb039ba4
EZ
13862014-08-15 Eli Zaretskii <eliz@gnu.org>
1387
1388 * dcache.h: Include target.h, to avoid compile time warnings.
1389
eb7a547a
JB
13902014-08-15 Joel Brobecker <brobecker@adacore.com>
1391
1392 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1393 frame_info" partial declaration.
1394 * gdbarch.h: Regenerate.
1395
783cecc8
YQ
13962014-08-15 Yao Qi <yao@codesourcery.com>
1397
1398 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1399 Add parameter 'decode_for_pst_p'. Callers update.
1400
65c749e7
YQ
14012014-08-13 Yao Qi <yao@codesourcery.com>
1402
1403 PR build/17104
1404 * configure.ac: Use local variable 'pos'.
1405 * configure: Regenerated.
1406
d769e349
DE
14072014-08-11 Doug Evans <dje@google.com>
1408
1409 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1410 message, it is redundant with "Reading symbols from ..." message.
1411
24f1235e
DE
14122014-08-10 Doug Evans <xdje42@gmail.com>
1413
1414 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1415
dcd2e6ef
YQ
14162014-08-09 Yao Qi <yao@codesourcery.com>
1417
1418 PR remote/9053
1419 * remote.c (remote_xfer_partial): Remove dead code.
1420
070bdf0b
AA
14212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1422
1423 * ia64-linux-tdep.c: Include "regset.h".
1424 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1425 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1426 (ia64_linux_supply_fpregset): New function.
1427 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1428 (ia64_linux_regset_from_core_section): New function.
1429 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1430 method.
1431
08f9f542
AA
14322014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1433
1434 * m68klinux-tdep.c: Include "regset.h".
1435 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1436 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1437 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1438 (m68k_linux_regset_from_core_section): New function.
1439 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1440 method.
1441
8f1cee41
AA
14422014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1443
1444 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1445 function. Move logic to...
1446 (tilegx_linux_regmap): ... this new register map.
1447 (tilegx_linux_regset): Refer to register map, replace supply
1448 method by regcache_supply_regset, and add collect method.
1449 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1450 TILEGX_FIRST_EASY_REGNUM.
1451
c5741217
AA
14522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1453
1454 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1455 that calls regcache_supply_regset and handles the EPC register
1456 separately. Move main logic to...
1457 (score7_linux_gregmap): ... this new register map.
1458 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1459 (score7_linux_gregset): Refer to register map. Add collect method.
1460 (score7_linux_regset_from_core_section): Replace
1461 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1462 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1463 (struct regset): Delete unused forward declaraction.
1464 (struct pt_regs): Delete structure definition.
1465 (elf_gregset_t): Delete typedef.
1466
81580573
AA
14672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1468
1469 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1470 (nios2_core_regset): Add collect method.
1471
ba199d7d
AA
14722014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1473
1474 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1475 platform-independent and don't write to read-only input buffer.
1476 (m32r_linux_collect_gregset): New function.
1477 (m32r_linux_gregset): Add collect method.
1478
0006a9da
AA
14792014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1480
1481 * hppa-linux-tdep.c (greg_map): Rename to...
1482 (hppa_linux_gregmap): ... this. Also convert to
1483 regcache_map_entry format.
1484 (hppa_linux_supply_regset): Delete function.
1485 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1486 (hppa_linux_fpregmap): ... this new register map.
1487 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1488 register map, replace supply method by regcache_supply_regset, and
1489 add collect method regcache_collect_regset.
1490
901e1b23
AA
14912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1492
1493 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1494 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1495 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1496 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1497 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1498 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1499 (frv_linux_supply_gregset): Replace main logic by call to
1500 regcache_supply_regset, but keep clearing gr32-gr63.
1501 (frv_linux_supply_fpregset): Delete function.
1502 (frv_linux_gregset): Refer to appropriate register map and add
1503 regcache_collect_regset as the collect method.
1504 (frv_linux_fpregset): Likewise. Also exchange the supply method
1505 by regcache_supply_regset.
1506
1d6e7555
AA
15072014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1508
1509 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1510 by call to alpha_supply_int_regs.
1511 (alpha_linux_collect_gregset): New function.
1512 (alpha_linux_supply_fpregset): Replace logic by call to
1513 alpha_supply_fp_regs.
1514 (alpha_linux_collect_fpregset): New function.
1515 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1516
d4d793bf
AA
15172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1518
1519 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1520 by call to regcache_collect_regset.
1521 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1522 instead of aarch64_linux_supply_gregset/_fpregset.
1523 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1524 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1525 header file instead.
1526 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1527 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1528 functions. Move logic to ...
1529 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1530 register maps.
1531 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1532 refer to new register maps, replace *_regset_from_core by
1533 regcache_supply_regset, and also use regcache_collect_regset.
1534 * aarch64-linux-tdep.h: Include "regset.h".
1535 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1536 Delete prototypes.
1537 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1538 macros, moved from C source file.
1539 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1540 variable declarations.
1541
99b7da5d
AA
15422014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1543
1544 * s390-linux-nat.c: Include "regset.h".
1545 (regmap_gregset): Delete macro.
1546 (s390_64_regmap_gregset): New register map for
1547 regcache_supply/_collect_regset.
1548 (s390_64_gregset): New regset.
1549 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1550 (regmap_fpregset): Delete macro.
1551 (s390_native_supply, s390_native_collect): Delete functions.
1552 (supply_gregset, fill_gregset): Replace s390-specific regmap
1553 handling by a call to regcache_supply/_collect_regset.
1554 (supply_fpregset, fill_fpregset): Call regcache_supply/
1555 _collect_regset instead of s390_native_supply/_collect.
1556 (fetch_regset, store_regset): Likewise. Also change the last
1557 parameter to a regset instead of a regmap.
1558 (s390_linux_fetch_inferior_registers)
1559 (390_linux_store_inferior_registers): Adjust last parameter in
1560 calls to fetch_regset and store_regset.
1561 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1562 (s390_gregmap): ... this. Also make static const and convert to
1563 regcache_map_entry format.
1564 (s390x_regmap_gregset): Delete.
1565 (s390_regmap_fpregset): Rename to...
1566 (s390_fpregmap): ... this. Make static const and convert to
1567 regcache_map_entry format.
1568 (s390_regmap_upper, s390_regmap_last_break)
1569 (s390x_regmap_last_break, s390_regmap_system_call)
1570 (s390_regmap_tdb): Likewise.
1571 (s390_supply_regset, s390_collect_regset): Remove functions.
1572 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1573 s390_supply_regset.
1574 (s390_gregset, s390_fpregset, s390_upper_regset)
1575 (s390_last_break_regset, s390x_last_break_regset)
1576 (s390_system_call_regset, s390_tdb_regset): Make global and
1577 replace s390_supply/_collect_regset by regcache_supply/
1578 _collect_regset.
1579 (s390x_gregset): Delete.
1580 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1581 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1582 (s390_regmap_fpregset, s390_regmap_last_break)
1583 (s390x_regmap_last_break, s390_regmap_system_call)
1584 (s390_regmap_tdb): Delete global variable declarations.
1585 (s390_gregset, s390_fpregset, s390_last_break_regset)
1586 (s390x_last_break_regset, s390_system_call_regset)
1587 (s390_tdb_regset): New global variable declarations.
1588
0b309272
AA
15892014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1590
1591 * regcache.c: Include "regset.h".
1592 (regcache_transfer_regset): New local function.
1593 (regcache_supply_regset, regcache_collect_regset): New functions.
1594 * regcache.h (struct regcache_map_entry): New structure.
1595 (REGCACHE_MAP_SKIP): New enum value.
1596 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1597
7fefa8d7
AA
15982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1599
1600 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1601 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1602 (ppc_linux_collect_gregset ): Likewise.
1603 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1604 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1605 (ppc_collect_vrregset): Likewise.
1606 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1607 Likewise.
1608
96c4f946
YQ
16092014-08-07 Yao Qi <yao@codesourcery.com>
1610
1611 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1612 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1613 * remote.c (remote_read_bytes): Likewise.
1614
fffbe6a8
YQ
16152014-08-07 Yao Qi <yao@codesourcery.com>
1616
1617 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1618
5ee8a82c
YQ
16192014-08-07 Yao Qi <yao@codesourcery.com>
1620
1621 PR remote/17230
1622 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1623 TARGET_XFER_OK instead of 0.
1624
bb974a24
GB
16252014-08-07 Gary Benson <gbenson@redhat.com>
1626
1627 * common/common-defs.h: Include errno.h.
1628 * defs.h: Do not include errno.h.
1629 * ada-typeprint.c: Likewise.
1630 * c-typeprint.c: Likewise.
1631 * core-regset.c: Likewise.
1632 * corefile.c: Likewise.
1633 * corelow.c: Likewise.
1634 * event-loop.c: Likewise.
1635 * f-typeprint.c: Likewise.
1636 * gnu-nat.c: Likewise.
1637 * go32-nat.c: Likewise.
1638 * i386gnu-nat.c: Likewise.
1639 * m2-typeprint.c: Likewise.
1640 * nat/linux-btrace.c: Likewise.
1641 * p-typeprint.c: Likewise.
1642 * procfs.c: Likewise.
1643 * remote-sim.c: Likewise.
1644 * rs6000-nat.c: Likewise.
1645 * target.c: Likewise.
1646 * typeprint.c: Likewise.
1647 * ui-file.c: Likewise.
1648 * valops.c: Likewise.
1649 * valprint.c: Likewise.
1650
6d3d12eb
GB
16512014-08-07 Gary Benson <gbenson@redhat.com>
1652
1653 * common/common-defs.h: Include string.h.
1654 * aarch64-tdep.c: Do not include string.h.
1655 * ada-exp.y: Likewise.
1656 * ada-lang.c: Likewise.
1657 * ada-lex.l: Likewise.
1658 * ada-typeprint.c: Likewise.
1659 * ada-valprint.c: Likewise.
1660 * aix-thread.c: Likewise.
1661 * alpha-linux-tdep.c: Likewise.
1662 * alpha-mdebug-tdep.c: Likewise.
1663 * alpha-nat.c: Likewise.
1664 * alpha-osf1-tdep.c: Likewise.
1665 * alpha-tdep.c: Likewise.
1666 * alphanbsd-tdep.c: Likewise.
1667 * amd64-dicos-tdep.c: Likewise.
1668 * amd64-linux-tdep.c: Likewise.
1669 * amd64-nat.c: Likewise.
1670 * amd64-sol2-tdep.c: Likewise.
1671 * amd64fbsd-tdep.c: Likewise.
1672 * amd64obsd-tdep.c: Likewise.
1673 * arch-utils.c: Likewise.
1674 * arm-linux-nat.c: Likewise.
1675 * arm-linux-tdep.c: Likewise.
1676 * arm-tdep.c: Likewise.
1677 * arm-wince-tdep.c: Likewise.
1678 * armbsd-tdep.c: Likewise.
1679 * armnbsd-nat.c: Likewise.
1680 * armnbsd-tdep.c: Likewise.
1681 * armobsd-tdep.c: Likewise.
1682 * avr-tdep.c: Likewise.
1683 * ax-gdb.c: Likewise.
1684 * ax-general.c: Likewise.
1685 * bcache.c: Likewise.
1686 * bfin-tdep.c: Likewise.
1687 * breakpoint.c: Likewise.
1688 * build-id.c: Likewise.
1689 * buildsym.c: Likewise.
1690 * c-exp.y: Likewise.
1691 * c-lang.c: Likewise.
1692 * c-typeprint.c: Likewise.
1693 * c-valprint.c: Likewise.
1694 * charset.c: Likewise.
1695 * cli-out.c: Likewise.
1696 * cli/cli-cmds.c: Likewise.
1697 * cli/cli-decode.c: Likewise.
1698 * cli/cli-dump.c: Likewise.
1699 * cli/cli-interp.c: Likewise.
1700 * cli/cli-logging.c: Likewise.
1701 * cli/cli-script.c: Likewise.
1702 * cli/cli-setshow.c: Likewise.
1703 * cli/cli-utils.c: Likewise.
1704 * coffread.c: Likewise.
1705 * common/agent.c: Likewise.
1706 * common/buffer.c: Likewise.
1707 * common/buffer.h: Likewise.
1708 * common/common-utils.c: Likewise.
1709 * common/filestuff.c: Likewise.
1710 * common/filestuff.c: Likewise.
1711 * common/format.c: Likewise.
1712 * common/print-utils.c: Likewise.
1713 * common/rsp-low.c: Likewise.
1714 * common/signals.c: Likewise.
1715 * common/vec.h: Likewise.
1716 * common/xml-utils.c: Likewise.
1717 * core-regset.c: Likewise.
1718 * corefile.c: Likewise.
1719 * corelow.c: Likewise.
1720 * cp-abi.c: Likewise.
1721 * cp-name-parser.y: Likewise.
1722 * cp-support.c: Likewise.
1723 * cp-valprint.c: Likewise.
1724 * cris-tdep.c: Likewise.
1725 * d-exp.y: Likewise.
1726 * darwin-nat.c: Likewise.
1727 * dbxread.c: Likewise.
1728 * dcache.c: Likewise.
1729 * demangle.c: Likewise.
1730 * dicos-tdep.c: Likewise.
1731 * disasm.c: Likewise.
1732 * doublest.c: Likewise.
1733 * dsrec.c: Likewise.
1734 * dummy-frame.c: Likewise.
1735 * dwarf2-frame.c: Likewise.
1736 * dwarf2loc.c: Likewise.
1737 * dwarf2read.c: Likewise.
1738 * elfread.c: Likewise.
1739 * environ.c: Likewise.
1740 * eval.c: Likewise.
1741 * event-loop.c: Likewise.
1742 * exceptions.c: Likewise.
1743 * exec.c: Likewise.
1744 * expprint.c: Likewise.
1745 * f-exp.y: Likewise.
1746 * f-lang.c: Likewise.
1747 * f-typeprint.c: Likewise.
1748 * f-valprint.c: Likewise.
1749 * fbsd-nat.c: Likewise.
1750 * findcmd.c: Likewise.
1751 * findvar.c: Likewise.
1752 * fork-child.c: Likewise.
1753 * frame.c: Likewise.
1754 * frv-linux-tdep.c: Likewise.
1755 * frv-tdep.c: Likewise.
1756 * gdb.c: Likewise.
1757 * gdb_bfd.c: Likewise.
1758 * gdbarch.c: Likewise.
1759 * gdbarch.sh: Likewise.
1760 * gdbtypes.c: Likewise.
1761 * gnu-nat.c: Likewise.
1762 * gnu-v2-abi.c: Likewise.
1763 * gnu-v3-abi.c: Likewise.
1764 * go-exp.y: Likewise.
1765 * go-lang.c: Likewise.
1766 * go32-nat.c: Likewise.
1767 * guile/guile.c: Likewise.
1768 * guile/scm-auto-load.c: Likewise.
1769 * hppa-hpux-tdep.c: Likewise.
1770 * hppa-linux-nat.c: Likewise.
1771 * hppanbsd-tdep.c: Likewise.
1772 * hppaobsd-tdep.c: Likewise.
1773 * i386-cygwin-tdep.c: Likewise.
1774 * i386-dicos-tdep.c: Likewise.
1775 * i386-linux-tdep.c: Likewise.
1776 * i386-nto-tdep.c: Likewise.
1777 * i386-sol2-tdep.c: Likewise.
1778 * i386-tdep.c: Likewise.
1779 * i386bsd-tdep.c: Likewise.
1780 * i386gnu-nat.c: Likewise.
1781 * i386nbsd-tdep.c: Likewise.
1782 * i386obsd-tdep.c: Likewise.
1783 * i387-tdep.c: Likewise.
1784 * ia64-libunwind-tdep.c: Likewise.
1785 * ia64-linux-nat.c: Likewise.
1786 * inf-child.c: Likewise.
1787 * inf-ptrace.c: Likewise.
1788 * inf-ttrace.c: Likewise.
1789 * infcall.c: Likewise.
1790 * infcmd.c: Likewise.
1791 * inflow.c: Likewise.
1792 * infrun.c: Likewise.
1793 * interps.c: Likewise.
1794 * iq2000-tdep.c: Likewise.
1795 * irix5-nat.c: Likewise.
1796 * jv-exp.y: Likewise.
1797 * jv-lang.c: Likewise.
1798 * jv-typeprint.c: Likewise.
1799 * jv-valprint.c: Likewise.
1800 * language.c: Likewise.
1801 * linux-fork.c: Likewise.
1802 * linux-nat.c: Likewise.
1803 * lm32-tdep.c: Likewise.
1804 * m2-exp.y: Likewise.
1805 * m2-typeprint.c: Likewise.
1806 * m32c-tdep.c: Likewise.
1807 * m32r-linux-nat.c: Likewise.
1808 * m32r-linux-tdep.c: Likewise.
1809 * m32r-rom.c: Likewise.
1810 * m32r-tdep.c: Likewise.
1811 * m68hc11-tdep.c: Likewise.
1812 * m68k-tdep.c: Likewise.
1813 * m68kbsd-tdep.c: Likewise.
1814 * m68klinux-nat.c: Likewise.
1815 * m68klinux-tdep.c: Likewise.
1816 * m88k-tdep.c: Likewise.
1817 * machoread.c: Likewise.
1818 * macrocmd.c: Likewise.
1819 * main.c: Likewise.
1820 * mdebugread.c: Likewise.
1821 * mem-break.c: Likewise.
1822 * memattr.c: Likewise.
1823 * memory-map.c: Likewise.
1824 * mep-tdep.c: Likewise.
1825 * mi/mi-cmd-break.c: Likewise.
1826 * mi/mi-cmd-disas.c: Likewise.
1827 * mi/mi-cmd-env.c: Likewise.
1828 * mi/mi-cmd-stack.c: Likewise.
1829 * mi/mi-cmd-var.c: Likewise.
1830 * mi/mi-cmds.c: Likewise.
1831 * mi/mi-console.c: Likewise.
1832 * mi/mi-getopt.c: Likewise.
1833 * mi/mi-interp.c: Likewise.
1834 * mi/mi-main.c: Likewise.
1835 * mi/mi-parse.c: Likewise.
1836 * microblaze-rom.c: Likewise.
1837 * microblaze-tdep.c: Likewise.
1838 * mingw-hdep.c: Likewise.
1839 * minidebug.c: Likewise.
1840 * minsyms.c: Likewise.
1841 * mips-irix-tdep.c: Likewise.
1842 * mips-linux-tdep.c: Likewise.
1843 * mips-tdep.c: Likewise.
1844 * mips64obsd-tdep.c: Likewise.
1845 * mipsnbsd-tdep.c: Likewise.
1846 * mipsread.c: Likewise.
1847 * mn10300-linux-tdep.c: Likewise.
1848 * mn10300-tdep.c: Likewise.
1849 * monitor.c: Likewise.
1850 * moxie-tdep.c: Likewise.
1851 * mt-tdep.c: Likewise.
1852 * nat/linux-btrace.c: Likewise.
1853 * nat/linux-osdata.c: Likewise.
1854 * nat/linux-procfs.c: Likewise.
1855 * nat/linux-ptrace.c: Likewise.
1856 * nat/linux-waitpid.c: Likewise.
1857 * nbsd-tdep.c: Likewise.
1858 * nios2-linux-tdep.c: Likewise.
1859 * nto-procfs.c: Likewise.
1860 * nto-tdep.c: Likewise.
1861 * objc-lang.c: Likewise.
1862 * objfiles.c: Likewise.
1863 * opencl-lang.c: Likewise.
1864 * osabi.c: Likewise.
1865 * osdata.c: Likewise.
1866 * p-exp.y: Likewise.
1867 * p-lang.c: Likewise.
1868 * p-typeprint.c: Likewise.
1869 * parse.c: Likewise.
1870 * posix-hdep.c: Likewise.
1871 * ppc-linux-nat.c: Likewise.
1872 * ppc-sysv-tdep.c: Likewise.
1873 * ppcfbsd-tdep.c: Likewise.
1874 * ppcnbsd-tdep.c: Likewise.
1875 * ppcobsd-tdep.c: Likewise.
1876 * printcmd.c: Likewise.
1877 * procfs.c: Likewise.
1878 * prologue-value.c: Likewise.
1879 * python/py-auto-load.c: Likewise.
1880 * python/py-gdb-readline.c: Likewise.
1881 * ravenscar-thread.c: Likewise.
1882 * regcache.c: Likewise.
1883 * registry.c: Likewise.
1884 * remote-fileio.c: Likewise.
1885 * remote-m32r-sdi.c: Likewise.
1886 * remote-mips.c: Likewise.
1887 * remote-notif.c: Likewise.
1888 * remote-sim.c: Likewise.
1889 * remote.c: Likewise.
1890 * reverse.c: Likewise.
1891 * rs6000-aix-tdep.c: Likewise.
1892 * ser-base.c: Likewise.
1893 * ser-go32.c: Likewise.
1894 * ser-mingw.c: Likewise.
1895 * ser-pipe.c: Likewise.
1896 * ser-tcp.c: Likewise.
1897 * ser-unix.c: Likewise.
1898 * serial.c: Likewise.
1899 * sh-tdep.c: Likewise.
1900 * sh64-tdep.c: Likewise.
1901 * shnbsd-tdep.c: Likewise.
1902 * skip.c: Likewise.
1903 * sol-thread.c: Likewise.
1904 * solib-dsbt.c: Likewise.
1905 * solib-frv.c: Likewise.
1906 * solib-osf.c: Likewise.
1907 * solib-som.c: Likewise.
1908 * solib-spu.c: Likewise.
1909 * solib-target.c: Likewise.
1910 * solib.c: Likewise.
1911 * somread.c: Likewise.
1912 * source.c: Likewise.
1913 * sparc-nat.c: Likewise.
1914 * sparc-sol2-tdep.c: Likewise.
1915 * sparc-tdep.c: Likewise.
1916 * sparc64-tdep.c: Likewise.
1917 * sparc64fbsd-tdep.c: Likewise.
1918 * sparc64nbsd-tdep.c: Likewise.
1919 * sparcnbsd-tdep.c: Likewise.
1920 * spu-linux-nat.c: Likewise.
1921 * spu-multiarch.c: Likewise.
1922 * spu-tdep.c: Likewise.
1923 * stabsread.c: Likewise.
1924 * stack.c: Likewise.
1925 * std-regs.c: Likewise.
1926 * symfile.c: Likewise.
1927 * symmisc.c: Likewise.
1928 * symtab.c: Likewise.
1929 * target.c: Likewise.
1930 * thread.c: Likewise.
1931 * tilegx-linux-nat.c: Likewise.
1932 * tilegx-tdep.c: Likewise.
1933 * top.c: Likewise.
1934 * tracepoint.c: Likewise.
1935 * tui/tui-command.c: Likewise.
1936 * tui/tui-data.c: Likewise.
1937 * tui/tui-disasm.c: Likewise.
1938 * tui/tui-file.c: Likewise.
1939 * tui/tui-layout.c: Likewise.
1940 * tui/tui-out.c: Likewise.
1941 * tui/tui-regs.c: Likewise.
1942 * tui/tui-source.c: Likewise.
1943 * tui/tui-stack.c: Likewise.
1944 * tui/tui-win.c: Likewise.
1945 * tui/tui-windata.c: Likewise.
1946 * tui/tui-winsource.c: Likewise.
1947 * typeprint.c: Likewise.
1948 * ui-file.c: Likewise.
1949 * ui-out.c: Likewise.
1950 * user-regs.c: Likewise.
1951 * utils.c: Likewise.
1952 * v850-tdep.c: Likewise.
1953 * valarith.c: Likewise.
1954 * valops.c: Likewise.
1955 * valprint.c: Likewise.
1956 * value.c: Likewise.
1957 * varobj.c: Likewise.
1958 * vax-tdep.c: Likewise.
1959 * vaxnbsd-tdep.c: Likewise.
1960 * vaxobsd-tdep.c: Likewise.
1961 * windows-nat.c: Likewise.
1962 * xcoffread.c: Likewise.
1963 * xml-support.c: Likewise.
1964 * xstormy16-tdep.c: Likewise.
1965 * xtensa-linux-nat.c: Likewise.
1966
dccbb609
GB
19672014-08-07 Gary Benson <gbenson@redhat.com>
1968
1969 * common/common-defs.h: Include gdb_assert.h.
1970 * aarch64-tdep.c: Do not include gdb_assert.h.
1971 * addrmap.c: Likewise.
1972 * aix-thread.c: Likewise.
1973 * alpha-linux-tdep.c: Likewise.
1974 * alpha-mdebug-tdep.c: Likewise.
1975 * alphanbsd-tdep.c: Likewise.
1976 * amd64-nat.c: Likewise.
1977 * amd64-tdep.c: Likewise.
1978 * amd64bsd-nat.c: Likewise.
1979 * amd64fbsd-nat.c: Likewise.
1980 * amd64fbsd-tdep.c: Likewise.
1981 * amd64nbsd-nat.c: Likewise.
1982 * amd64nbsd-tdep.c: Likewise.
1983 * amd64obsd-nat.c: Likewise.
1984 * amd64obsd-tdep.c: Likewise.
1985 * arch-utils.c: Likewise.
1986 * arm-tdep.c: Likewise.
1987 * armbsd-tdep.c: Likewise.
1988 * auxv.c: Likewise.
1989 * bcache.c: Likewise.
1990 * bfin-tdep.c: Likewise.
1991 * blockframe.c: Likewise.
1992 * breakpoint.c: Likewise.
1993 * bsd-kvm.c: Likewise.
1994 * bsd-uthread.c: Likewise.
1995 * buildsym.c: Likewise.
1996 * c-exp.y: Likewise.
1997 * c-lang.c: Likewise.
1998 * charset.c: Likewise.
1999 * cleanups.c: Likewise.
2000 * cli-out.c: Likewise.
2001 * cli/cli-decode.c: Likewise.
2002 * cli/cli-dump.c: Likewise.
2003 * cli/cli-logging.c: Likewise.
2004 * cli/cli-script.c: Likewise.
2005 * cli/cli-utils.c: Likewise.
2006 * coffread.c: Likewise.
2007 * common/common-utils.c: Likewise.
2008 * common/queue.h: Likewise.
2009 * common/signals.c: Likewise.
2010 * common/vec.h: Likewise.
2011 * complaints.c: Likewise.
2012 * completer.c: Likewise.
2013 * corelow.c: Likewise.
2014 * cp-abi.c: Likewise.
2015 * cp-name-parser.y: Likewise.
2016 * cp-namespace.c: Likewise.
2017 * cp-support.c: Likewise.
2018 * cris-tdep.c: Likewise.
2019 * dbxread.c: Likewise.
2020 * dictionary.c: Likewise.
2021 * doublest.c: Likewise.
2022 * dsrec.c: Likewise.
2023 * dummy-frame.c: Likewise.
2024 * dwarf2-frame-tailcall.c: Likewise.
2025 * dwarf2-frame.c: Likewise.
2026 * dwarf2expr.c: Likewise.
2027 * dwarf2loc.c: Likewise.
2028 * dwarf2read.c: Likewise.
2029 * eval.c: Likewise.
2030 * event-loop.c: Likewise.
2031 * exceptions.c: Likewise.
2032 * expprint.c: Likewise.
2033 * f-valprint.c: Likewise.
2034 * fbsd-nat.c: Likewise.
2035 * findvar.c: Likewise.
2036 * frame-unwind.c: Likewise.
2037 * frame.c: Likewise.
2038 * frv-tdep.c: Likewise.
2039 * gcore.c: Likewise.
2040 * gdb-dlfcn.c: Likewise.
2041 * gdb_bfd.c: Likewise.
2042 * gdbarch.c: Likewise.
2043 * gdbarch.sh: Likewise.
2044 * gdbtypes.c: Likewise.
2045 * gnu-nat.c: Likewise.
2046 * gnu-v3-abi.c: Likewise.
2047 * go-lang.c: Likewise.
2048 * guile/scm-exception.c: Likewise.
2049 * guile/scm-gsmob.c: Likewise.
2050 * guile/scm-lazy-string.c: Likewise.
2051 * guile/scm-math.c: Likewise.
2052 * guile/scm-pretty-print.c: Likewise.
2053 * guile/scm-safe-call.c: Likewise.
2054 * guile/scm-utils.c: Likewise.
2055 * guile/scm-value.c: Likewise.
2056 * h8300-tdep.c: Likewise.
2057 * hppa-hpux-nat.c: Likewise.
2058 * hppa-tdep.c: Likewise.
2059 * hppanbsd-tdep.c: Likewise.
2060 * hppaobsd-tdep.c: Likewise.
2061 * i386-darwin-nat.c: Likewise.
2062 * i386-darwin-tdep.c: Likewise.
2063 * i386-nto-tdep.c: Likewise.
2064 * i386-tdep.c: Likewise.
2065 * i386bsd-nat.c: Likewise.
2066 * i386fbsd-tdep.c: Likewise.
2067 * i386gnu-nat.c: Likewise.
2068 * i386nbsd-tdep.c: Likewise.
2069 * i386obsd-tdep.c: Likewise.
2070 * i387-tdep.c: Likewise.
2071 * ia64-libunwind-tdep.c: Likewise.
2072 * ia64-tdep.c: Likewise.
2073 * inf-ptrace.c: Likewise.
2074 * inf-ttrace.c: Likewise.
2075 * infcall.c: Likewise.
2076 * infcmd.c: Likewise.
2077 * infrun.c: Likewise.
2078 * inline-frame.c: Likewise.
2079 * interps.c: Likewise.
2080 * jv-lang.c: Likewise.
2081 * jv-typeprint.c: Likewise.
2082 * linux-fork.c: Likewise.
2083 * linux-nat.c: Likewise.
2084 * linux-thread-db.c: Likewise.
2085 * m32c-tdep.c: Likewise.
2086 * m32r-linux-nat.c: Likewise.
2087 * m32r-tdep.c: Likewise.
2088 * m68k-tdep.c: Likewise.
2089 * m68kbsd-nat.c: Likewise.
2090 * m68kbsd-tdep.c: Likewise.
2091 * m88k-tdep.c: Likewise.
2092 * machoread.c: Likewise.
2093 * macroexp.c: Likewise.
2094 * macrotab.c: Likewise.
2095 * maint.c: Likewise.
2096 * mdebugread.c: Likewise.
2097 * memory-map.c: Likewise.
2098 * mep-tdep.c: Likewise.
2099 * mi/mi-common.c: Likewise.
2100 * microblaze-tdep.c: Likewise.
2101 * mingw-hdep.c: Likewise.
2102 * mips-linux-nat.c: Likewise.
2103 * mips-linux-tdep.c: Likewise.
2104 * mips-tdep.c: Likewise.
2105 * mips64obsd-tdep.c: Likewise.
2106 * mipsnbsd-tdep.c: Likewise.
2107 * mn10300-linux-tdep.c: Likewise.
2108 * mn10300-tdep.c: Likewise.
2109 * moxie-tdep.c: Likewise.
2110 * mt-tdep.c: Likewise.
2111 * nat/linux-btrace.c: Likewise.
2112 * nat/linux-osdata.c: Likewise.
2113 * nat/linux-ptrace.c: Likewise.
2114 * nat/mips-linux-watch.c: Likewise.
2115 * nios2-linux-tdep.c: Likewise.
2116 * nios2-tdep.c: Likewise.
2117 * objc-lang.c: Likewise.
2118 * objfiles.c: Likewise.
2119 * obsd-nat.c: Likewise.
2120 * opencl-lang.c: Likewise.
2121 * osabi.c: Likewise.
2122 * parse.c: Likewise.
2123 * ppc-linux-nat.c: Likewise.
2124 * ppc-sysv-tdep.c: Likewise.
2125 * ppcfbsd-nat.c: Likewise.
2126 * ppcfbsd-tdep.c: Likewise.
2127 * ppcnbsd-nat.c: Likewise.
2128 * ppcnbsd-tdep.c: Likewise.
2129 * ppcobsd-nat.c: Likewise.
2130 * ppcobsd-tdep.c: Likewise.
2131 * printcmd.c: Likewise.
2132 * procfs.c: Likewise.
2133 * prologue-value.c: Likewise.
2134 * psymtab.c: Likewise.
2135 * python/py-lazy-string.c: Likewise.
2136 * python/py-value.c: Likewise.
2137 * regcache.c: Likewise.
2138 * reggroups.c: Likewise.
2139 * registry.c: Likewise.
2140 * remote-sim.c: Likewise.
2141 * remote.c: Likewise.
2142 * rs6000-aix-tdep.c: Likewise.
2143 * rs6000-tdep.c: Likewise.
2144 * s390-linux-tdep.c: Likewise.
2145 * score-tdep.c: Likewise.
2146 * ser-base.c: Likewise.
2147 * ser-mingw.c: Likewise.
2148 * sh-tdep.c: Likewise.
2149 * sh64-tdep.c: Likewise.
2150 * solib-darwin.c: Likewise.
2151 * solib-spu.c: Likewise.
2152 * solib-svr4.c: Likewise.
2153 * source.c: Likewise.
2154 * sparc-nat.c: Likewise.
2155 * sparc-sol2-tdep.c: Likewise.
2156 * sparc-tdep.c: Likewise.
2157 * sparc64-sol2-tdep.c: Likewise.
2158 * sparc64-tdep.c: Likewise.
2159 * sparc64fbsd-tdep.c: Likewise.
2160 * sparc64nbsd-tdep.c: Likewise.
2161 * sparc64obsd-tdep.c: Likewise.
2162 * sparcnbsd-tdep.c: Likewise.
2163 * sparcobsd-tdep.c: Likewise.
2164 * spu-multiarch.c: Likewise.
2165 * spu-tdep.c: Likewise.
2166 * stabsread.c: Likewise.
2167 * stack.c: Likewise.
2168 * symfile.c: Likewise.
2169 * symtab.c: Likewise.
2170 * target-descriptions.c: Likewise.
2171 * target-memory.c: Likewise.
2172 * target.c: Likewise.
2173 * tic6x-linux-tdep.c: Likewise.
2174 * tic6x-tdep.c: Likewise.
2175 * tilegx-linux-nat.c: Likewise.
2176 * tilegx-tdep.c: Likewise.
2177 * top.c: Likewise.
2178 * tramp-frame.c: Likewise.
2179 * tui/tui-out.c: Likewise.
2180 * tui/tui-winsource.c: Likewise.
2181 * ui-out.c: Likewise.
2182 * user-regs.c: Likewise.
2183 * utils.c: Likewise.
2184 * v850-tdep.c: Likewise.
2185 * valops.c: Likewise.
2186 * value.c: Likewise.
2187 * varobj.c: Likewise.
2188 * vax-nat.c: Likewise.
2189 * xml-syscall.c: Likewise.
2190 * xml-tdesc.c: Likewise.
2191 * xstormy16-tdep.c: Likewise.
2192 * xtensa-linux-nat.c: Likewise.
2193 * xtensa-tdep.c: Likewise.
2194
e76df0d0
GB
21952014-08-07 Gary Benson <gbenson@redhat.com>
2196
2197 * common/common-defs.h: Include common-utils.h.
2198 * defs.h: Do not include common-utils.h.
2199 * common/gdb_assert.h: Likewise.
2200 * darwin-nat.h: Likewise.
2201 * nat/linux-btrace.c: Likewise.
2202 * target/waitstatus.h: Likewise.
2203
4cb9c816
GB
22042014-08-07 Gary Benson <gbenson@redhat.com>
2205
2206 * common/common-defs.h: Include ptid.h.
2207 * defs.h: Do not include ptid.h.
2208 * inferior.h: Likewise.
2209 * infrun.h: Likewise.
2210 * nat/linux-btrace.h: Likewise.
2211 * nat/linux-osdata.h: Likewise.
2212 * target/waitstatus.h: Likewise.
2213
3995eeee
GB
22142014-08-07 Gary Benson <gbenson@redhat.com>
2215
2216 * common/common-defs.h: Include gdb_locale.h.
2217 * defs.h: Do not include gdb_locale.h.
2218
cb9f1a9b
GB
22192014-08-07 Gary Benson <gbenson@redhat.com>
2220
2221 * common/common-defs.h: Include gdb/signals.h.
2222 * defs.h: Do not include gdb/signals.h.
2223
a5fceff8
GB
22242014-08-07 Gary Benson <gbenson@redhat.com>
2225
2226 * common/common-defs.h: Include pathmax.h.
2227 * defs.h: Do not include pathmax.h.
2228
b9391142
GB
22292014-08-07 Gary Benson <gbenson@redhat.com>
2230
2231 * common/common-defs.h: Include libiberty.h.
2232 * defs.h: Do not include libiberty.h.
2233 * common/queue.h: Likewise.
2234 * cp-name-parser.y: Likewise.
2235 * mi/mi-cmd-catch.c: Likewise.
2236 * python/python.c: Likewise.
2237
0e443c87
GB
22382014-08-07 Gary Benson <gbenson@redhat.com>
2239
2240 * common/common-defs.h: Include ansidecl.h.
2241 * defs.h: Do not include ansidecl.h.
2242 * common/buffer.h: Likewise.
2243 * common/common-utils.h: Likewise.
2244
8ebb3f56
GB
22452014-08-07 Gary Benson <gbenson@redhat.com>
2246
2247 * common/common-defs.h: Include stddef.h.
2248 * defs.h: Do not include stddef.h.
2249 * common/common-utils.h: Likewise.
2250 * amd64fbsd-nat.c: Likewise.
2251 * bcache.c: Likewise.
2252 * charset.c: Likewise.
2253 * common/buffer.h: Likewise.
2254 * common/vec.h: Likewise.
2255 * i386bsd-nat.c: Likewise.
2256 * nat/linux-btrace.h: Likewise.
2257 * ppcfbsd-nat.c: Likewise.
2258 * ppcnbsd-tdep.h: Likewise.
2259 * ppcobsd-nat.c: Likewise.
2260 * ppcobsd-tdep.h: Likewise.
2261 * python/py-gdb-readline.c: Likewise.
2262
8980bdf6
GB
22632014-08-07 Gary Benson <gbenson@redhat.com>
2264
2265 * common/common-defs.h: Include stdarg.h.
2266 * defs.h: Do not include stdarg.h.
2267 * ada-lang.c: Likewise.
2268 * common/common-utils.h: Likewise.
2269 * guile/scm-string.c: Likewise.
2270 * guile/scm-utils.c: Likewise.
2271 * m32c-tdep.c: Likewise.
2272
d7096f71
GB
22732014-08-07 Gary Benson <gbenson@redhat.com>
2274
2275 * common/common-defs.h: Include stdlib.h.
2276 * defs.h: Do not include stdlib.h.
2277 * addrmap.c: Likewise.
2278 * bcache.c: Likewise.
2279 * common/buffer.c: Likewise.
2280 * common/common-utils.c: Likewise.
2281 * cp-name-parser.y: Likewise.
2282 * go32-nat.c: Likewise.
2283 * mn10300-linux-tdep.c: Likewise.
2284 * nat/linux-osdata.c: Likewise.
2285 * tui/tui.c: Likewise.
2286 * windows-nat.c: Likewise.
2287
d02f550d
GB
22882014-08-07 Gary Benson <gbenson@redhat.com>
2289
2290 * common/common-defs.h: Include stdio.h.
2291 * defs.h: Do not include stdio.h.
2292 * ada-lang.c: Likewise.
2293 * common/buffer.c: Likewise.
2294 * common/common-utils.c: Likewise.
2295 * cp-name-parser.y: Likewise.
2296 * gnu-nat.c: Likewise.
2297 * go32-nat.c: Likewise.
2298 * i386gnu-nat.c: Likewise.
2299 * proc-api.c: Likewise.
2300 * proc-events.c: Likewise.
2301 * proc-flags.c: Likewise.
2302 * proc-why.c: Likewise.
2303 * python/python-internal.h: Likewise.
2304 * target-memory.c: Likewise.
2305 * tui/tui-io.c: Likewise.
2306 * tui/tui.c: Likewise.
2307
b6d7a4bf
SM
23082014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2309
2310 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2311 (scan_dyntag_auxv): Same.
2312
af19829b
YQ
23132014-08-06 Yao Qi <yao@codesourcery.com>
2314
2315 * amd64-linux-nat.c: Remove duplicated include
2316 "x86-linux-nat.h".
2317 * i386-linux-nat.c: Likewise.
2318
8e07a239
YQ
23192014-08-06 Yao Qi <yao@codesourcery.com>
2320
2321 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2322 operand" with "Special opcode" in comments.
2323
7bfe8241
GB
23242014-08-05 Gary Benson <gbenson@redhat.com>
2325
2326 * interps.c (initialize_interps): Remove prototype.
2327 (interpreter_initialized): Remove static global.
2328 (interp_add): Do not call initialize_interps.
2329 (initialize_interps): Remove function.
2330
d6c95504
GB
23312014-08-05 Gary Benson <gbenson@redhat.com>
2332
2333 * utils.c (vwarning): Remove spurious va_end.
2334
241fd515
AM
23352014-08-05 Alan Modra <amodra@gmail.com>
2336
2337 * charset.c (convert_between_encodings): Cast result of obstack_base.
2338 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2339 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2340 (read_unwind_info): Use size_t for some locals.
2341 * jit.c (finalize_symtab): Likewise.
2342 * utils.c (hashtab_obstack_allocate): Likewise.
2343 * symmisc.c (print_objfile_statistics): Update format strings.
2344
dc304a94
JK
23452014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2346
2347 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2348 (Changes in GDB 7.8): ... here.
2349
3cecbbbe
TT
23502014-08-04 Tom Tromey <tromey@redhat.com>
2351
2352 * target.c (set_targetdebug): New function.
2353 (initialize_targets): Pass set_targetdebug when creating "set
2354 debug target".
2355
6908c509
JB
23562014-08-01 Joel Brobecker <brobecker@adacore.com>
2357
2358 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2359 if detecting a variable-sized field that is not the last field.
2360 Fix struct type length computation.
2361
53e8f97d
JB
23622014-08-01 Joel Brobecker <brobecker@adacore.com>
2363
2364 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2365 Add debug trace.
2366
e068c55d
JB
23672014-08-01 Joel Brobecker <brobecker@adacore.com>
2368
2369 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2370 Remove "+ 8" offset in computation of CHAIN_VMA.
2371
4d4ca2a1
DE
23722014-07-31 Doug Evans <dje@google.com>
2373
2374 * inflow.c (child_terminal_inferior): Add comment.
2375 (child_terminal_ours_for_output): Add comment.
2376 (child_terminal_ours): Add comment.
2377 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2378 (linux_nat_terminal_ours): Add comment.
2379
462f517e
GB
23802014-07-31 Gary Benson <gbenson@redhat.com>
2381
2382 * common/btrace-common.h: Do not include defs.h or server.h.
2383 * nat/mips-linux-watch.h: Likewise.
2384 * gdb-dlfcn.h: Do not include defs.h.
2385 * tracefile.h: Likewise.
2386
74228e77
RM
23872014-07-30 Roland McGrath <mcgrathr@google.com>
2388
2389 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2390
014f9477
TT
23912014-07-30 Tom Tromey <tromey@redhat.com>
2392
2393 * bsd-kvm.c (bsd_kvm_open): Constify.
2394 * corelow.c (core_open): Constify.
2395 * ctf.c (ctf_open): Constify.
2396 * dbug-rom.c (dbug_open): Constify.
2397 * exec.c (exec_open): Constify.
2398 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2399 * microblaze-rom.c (picobug_open): Constify.
2400 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2401 Constify.
2402 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2403 * record-btrace.c (record_btrace_open): Constify.
2404 * record-full.c (record_full_core_open_1, record_full_open_1)
2405 (record_full_open): Constify.
2406 * remote-m32r-sdi.c (m32r_open): Constify.
2407 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2408 (rockhopper_open, lsi_open): Constify.
2409 * remote-sim.c (gdbsim_open): Constify.
2410 * remote.c (remote_open, extended_remote_open, remote_open_1):
2411 Constify.
2412 * target.h (struct target_ops) <to_open>: Make "arg" const.
2413 * tracefile-tfile.c (tfile_open): Constify.
2414
e799154c
TT
24152014-07-30 Tom Tromey <tromey@redhat.com>
2416
2417 * breakpoint.c (map_breakpoint_numbers): Update.
2418 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2419 (get_number_const): New function.
2420 (get_number): Rewrite using get_number_const.
2421 (init_number_or_range): Make "string" const.
2422 (number_is_in_list): Make "list" const.
2423 * cli/cli-utils.h (get_number_const): Declare.
2424 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2425 (init_number_or_range, number_is_in_list): Update.
2426 * printcmd.c (map_display_numbers): Update.
2427 * value.c (value_from_history_ref): Constify.
2428 * value.h (value_from_history_ref): Update.
2429
5f08566b
TT
24302014-07-30 Tom Tromey <tromey@redhat.com>
2431
2432 * corefile.c (hook_type, call_extra_exec_file_hooks)
2433 (specify_exec_file_hook): Constify.
2434 * exec.c (exec_file_attach): Make "filename" const.
2435 * gdbcore.h (deprecated_exec_file_display_hook)
2436 (specify_exec_file_hook, exec_file_attach): Constify.
2437 * main.c (captured_main): Use catch_command_errors_const.
2438
8981c758
TT
24392014-07-30 Tom Tromey <tromey@redhat.com>
2440
2441 * target.c (open_target): New function.
2442 (add_target_with_completer, add_deprecated_target_alias): Use
2443 set_cmd_sfunc, set_cmd_context.
2444 (debug_to_open): Remove.
2445 (setup_target_debug): Update.
2446
a1c7835a
YQ
24472014-07-30 Yao Qi <yao@codesourcery.com>
2448
2449 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2450 comments.
2451 * parse.c (exp_iterate): Update comments.
2452
976411d6
GB
24532014-07-30 Gary Benson <gbenson@redhat.com>
2454
2455 * common/common-defs.h: New file.
2456 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2457 * defs.h: Include common-defs.h.
2458 Do not include config.h or build-gnulib/config.h.
2459
5d4848a4
GB
24602014-07-30 Gary Benson <gbenson@redhat.com>
2461
2462 * common/common-utils.h: Do not include config.h.
2463 * nat/linux-btrace.h: Likewise.
2464
d41f6d8e
GB
24652014-07-30 Gary Benson <gbenson@redhat.com>
2466
2467 * btrace.c: Include defs.h.
2468 * common/ptid.c: Include defs.h or server.h as appropriate.
2469 * nat/mips-linux-watch.c: Likewise.
2470
84202f9c
TT
24712014-07-29 Tom Tromey <tromey@redhat.com>
2472
2473 * target.c (target_is_pushed): Simplify.
2474
2530441c
JB
24752014-07-29 Joel Brobecker <brobecker@adacore.com>
2476
2477 GDB 7.8 released.
2478
7e09a223
YQ
24792014-07-29 Yao Qi <yao@codesourcery.com>
2480
2481 PR gdb/17206
2482 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2483
7ebdbe92
DE
24842014-07-28 Doug Evans <xdje42@gmail.com>
2485
2486 PR guile/17203
2487 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2488 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2489 parameters.
2490
f347ffc9
WN
24912014-07-28 Will Newton <will.newton@linaro.org>
2492
2493 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2494 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2495 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2496 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2497 (THUMB2_EABI_SYSCALL): Likewise.
2498 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2499 struct tramp_frame.
2500 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2501 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2502
37c5f1f7
DE
25032014-07-27 Doug Evans <xdje42@gmail.com>
2504
2505 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2506
0c3abbc7
DE
25072014-07-27 Doug Evans <xdje42@gmail.com>
2508
2509 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2510
e76c5d17
DE
25112014-07-26 Ludovic Courtès <ludo@gnu.org>
2512 Doug Evans <xdje42@gmail.com>
2513
2514 PR guile/17146
2515 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2516 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2517 * configure.ac: Try to use guild to compile an scm file, if it fails
2518 then disable guile support.
2519 * configure: Regenerate.
2520 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2521 GUILE_FILE_LIST.
2522 (GUILE_COMPILED_FILES): New variable.
2523 (GUILE_FILES) Update.
2524 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2525 (stamp-guile): Compile scm files.
2526 * guile/guile.c (boot_guile_support): New function.
2527 (standard_throw_args_p): New function.
2528 (print_standard_throw_error, print_throw_error): New functions.
2529 (handle_boot_error): New function.
2530 (initialize_scheme_side): Rewrite to call boot_guile_support.
2531 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2532 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2533
186fcde0
DE
25342014-07-26 Ludovic Courtès <ludo@gnu.org>
2535 Doug Evans <xdje42@gmail.com>
2536
2537 PR guile/17146
2538 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2539 * guile/lib/gdb/support.scm: New file.
2540 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2541 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2542 All uses updated.
2543 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2544 All uses updated.
2545 (%assert-type): Ditto, and renamed to assert-type.
2546 (%exception-print-style): Delete.
2547
4df42755
DE
25482014-07-26 Doug Evans <xdje42@gmail.com>
2549
2550 PR build/17105
2551 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2552 * configure: Regenerate.
2553 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2554 PYTHON_FILES.
2555 (PYTHON_FILES): New variable.
2556 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2557 (GUILE_FILES): New variable.
2558 (stamp-python, install-python, uninstall-python): Handle empty
2559 file list.
2560 (stamp-guile, install-guile, uninstall-guile): Ditto.
2561
ee7333ae
DE
25622014-07-26 Doug Evans <xdje42@gmail.com>
2563
2564 PR guile/17177
2565 * guile/lib/gdb.scm (pretty-printers): Export.
2566 (set-pretty-printers!): Export.
2567 * guile/lib/gdb/printing.scm (gdb module): Update.
2568 (prepend-pretty-printer!, append-pretty-printer!): Update.
2569 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2570 (pretty_printer_list_var): Delete.
2571 (pretty_printer_list): New static global.
2572 (gdbscm_pretty_printers): New function.
2573 (gdbscm_set_pretty_printers_x): New function.
2574 (ppscm_find_pretty_printer_from_gdb): Update.
2575 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2576 (gdbscm_initialize_pretty_printers): Update.
2577
74edf516
DE
25782014-07-26 Doug Evans <xdje42@gmail.com>
2579
2580 PR 17185
2581 * configure.ac: Add check for header gc/gc.h.
2582 Add check for function setenv.
2583 * configure: Regenerate.
2584 * config.in: Regenerate.
2585 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2586
d54398a7
MR
25872014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2588
2589 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2590 variation in gdbarch matching.
2591
ab16fce8
TT
25922014-07-25 Tom Tromey <tromey@redhat.com>
2593
2594 * exec.c (using_exec_ops): Remove.
2595 (exec_close_1): Update. Remove extraneous block, reindent.
2596 (add_target_sections): Use target_is_pushed.
2597
88056fbb
PA
25982014-07-25 Pedro Alves <palves@redhat.com>
2599
2600 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2601 * monitor.c (monitor_create_inferior): Likewise.
2602 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2603 * remote-sim.c (gdbsim_create_inferior): Likewise.
2604 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2605 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2606 * windows-nat.c (do_initial_windows_stuff): Likewise.
2607
70509625
PA
26082014-07-25 Pedro Alves <palves@redhat.com>
2609
2610 * NEWS: Mention signal passing and "signal" command changes.
2611 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2612 comment.
2613 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2614 call.
2615 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2616 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2617 (jump_command): Adjust clear_proceed_status call.
2618 (signal_command): Warn if other thread that are resumed have
2619 signals that will be delivered. Adjust clear_proceed_status call.
2620 (until_next_command, finish_command)
2621 (proceed_after_attach_callback, attach_command_post_wait)
2622 (attach_command): Adjust clear_proceed_status call.
2623 * infrun.c (proceed_after_vfork_done): Likewise.
2624 (proceed_after_attach_callback): Adjust comment.
2625 (clear_proceed_status_thread): Clear stop_signal if not in pass
2626 state.
2627 (clear_proceed_status_callback): Delete.
2628 (clear_proceed_status): New 'step' parameter. Only clear the
2629 proceed status of threads the command being prepared is about to
2630 resume.
2631 (proceed): If passed in an explicit signal, override stop_signal
2632 with it. Don't pass the last stop signal to the thread we're
2633 resuming.
2634 (init_wait_for_inferior): Adjust clear_proceed_status call.
2635 (switch_back_to_stepped_thread): Clear the signal if it should not
2636 be passed.
2637 * infrun.h (clear_proceed_status): New 'step' parameter.
2638 (user_visible_resume_ptid): Add comment.
2639 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2640 signal is in pass state.
2641 * remote.c (append_pending_thread_resumptions): Likewise.
2642 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2643
d8be2939
TT
26442014-07-25 Tom Tromey <tromey@redhat.com>
2645
2646 * target.h (target_stopped_data_address)
2647 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2648 parentheses.
2649
7d0d9d2b
PL
26502014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2651
2652 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2653 comments.
2654 (avr_pointer_to_address): Likewise.
2655
e9e7f724
TT
26562014-07-24 Tom Tromey <tromey@redhat.com>
2657
2658 * monitor.c (compile_pattern): Update.
2659 * target.h (struct target_ops) <to_shortname, to_longname,
2660 to_doc>: Now const.
2661
1947513d
TT
26622014-07-24 Tom Tromey <tromey@redhat.com>
2663
2664 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2665 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2666 (add_info_alias, add_com): Make "doc" const.
2667 (print_doc_line): Make "str" const.
2668 (delete_cmd): Update.
2669 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2670 (print_doc_line): Update.
2671 * cli/cli-script.c (document_command): Update.
2672 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2673 (add_com, add_info, add_info_alias): Update.
2674 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2675 * python/py-cmd.c (cmdpy_destroyer): Update.
2676
64e61d29
TT
26772014-07-24 Tom Tromey <tromey@redhat.com>
2678
2679 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2680 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2681 (help_cmd_list): Constify.
2682 (lookup_cmd): Update.
2683 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2684 const.
2685 (help_cmd_list, apropos_cmd): Update.
2686 * cli/cli-script.c (show_user): Update.
2687 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2688 * cli/cli-setshow.h (cmd_show_list): Update.
2689 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2690 (cmd_show_list): Update.
2691 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2692 * python/py-cmd.c (cmdpy_destroyer): Update.
2693
429e55ea
TT
26942014-07-24 Tom Tromey <tromey@redhat.com>
2695
2696 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2697 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2698 const.
2699 * command.h (deprecate_cmd): Update.
2700 * maint.c (maintenance_do_deprecate): Add casts.
2701
64669f3b
TT
27022014-07-24 Tom Tromey <tromey@redhat.com>
2703
2704 * cli/cli-decode.c (help_cmd): Make parameter "const".
2705 * cli/cli-decode.h (help_cmd): Update.
2706
d3d3328b
TT
27072014-07-24 Tom Tromey <tromey@redhat.com>
2708
2709 * stack.c (up_silently_base, down_silently_base): Make argument
2710 const.
2711
414842dc
TT
27122014-07-24 Tom Tromey <tromey@redhat.com>
2713
2714 * solib.c (solib_add): Make "pattern" const.
2715 * solib.h (solib_add): Update.
2716
baa336ce
TT
27172014-07-24 Tom Tromey <tromey@redhat.com>
2718
2719 * remote.c (remote_serial_open, print_packet, putpkt)
2720 (putpkt_binary): Constify.
2721 * remote.h (putpkt): Update.
2722
5a19e2d0
TT
27232014-07-24 Tom Tromey <tromey@redhat.com>
2724
2725 * monitor.c (monitor_open): Make "args" const.
2726 * monitor.h (monitor_open): Update.
2727
fc4baa5e
TT
27282014-07-24 Tom Tromey <tromey@redhat.com>
2729
2730 * maint.c (match_bfd_flags): Make "string" const.
2731 (print_bfd_section_info): Remove casts.
2732 (print_objfile_section_info): Make "string" const.
2733
0d5f0dbe
TT
27342014-07-24 Tom Tromey <tromey@redhat.com>
2735
2736 * inf-child.c (inf_child_open_target): Make "arg" const.
2737 * inf-child.h (inf_child_open_target): Update.
2738
41c77899
TT
27392014-07-24 Tom Tromey <tromey@redhat.com>
2740
2741 * environ.c (unset_in_environ): Make "var" const.
2742 * environ.h (unset_in_environ): Update.
2743
93db0d79
TT
27442014-07-24 Tom Tromey <tromey@redhat.com>
2745
2746 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2747 Make "cmd" const.
2748 (scan_filename_with_cleanup): Likewise.
2749 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2750 Make arguments const.
2751 (restore_command): Update.
2752
36d6eb95
PA
27532014-07-24 Pedro Alves <palves@redhat.com>
2754
2755 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2756
8009206a
TT
27572014-07-24 Tom Tromey <tromey@redhat.com>
2758 Gary Benson <gbenson@redhat.com>
2759
2760 * nat/linux-ptrace.c (additional_flags): New global.
2761 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2762 additional_flags; don't check GDBSERVER.
2763 (linux_ptrace_set_additional_flags): New function.
2764 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2765 Declare.
2766 * linux-nat.c (_initialize_linux_nat): Call
2767 linux_ptrace_set_additional_flags.
2768
a7068b60
TT
27692014-07-24 Tom Tromey <tromey@redhat.com>
2770
2771 * make-target-delegates (munge_type, write_debugmethod): New
2772 functions.
2773 (debug_names): New global.
2774 ($TARGET_DEBUG_PRINTER): New global.
2775 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2776 name.
2777 Write debug methods. Generate init_debug_target.
2778 * target-debug.h: New file.
2779 * target-delegates.c: Rebuild.
2780 * target.c: Include target-debug.h.
2781 (debug_target): Hoist definition.
2782 (target_kill, target_get_section_table, target_memory_map)
2783 (target_flash_erase, target_flash_done, target_detach)
2784 (target_disconnect, target_wait, target_resume)
2785 (target_pass_signals, target_program_signals, target_follow_fork)
2786 (target_mourn_inferior, target_search_memory)
2787 (target_thread_address_space, target_close)
2788 (target_find_new_threads, target_core_of_thread)
2789 (target_verify_memory, target_insert_mask_watchpoint)
2790 (target_remove_mask_watchpoint): Remove targetdebug code.
2791 (debug_to_post_attach, debug_to_prepare_to_store)
2792 (debug_to_files_info, debug_to_insert_breakpoint)
2793 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2794 (debug_to_region_ok_for_hw_watchpoint)
2795 (debug_to_can_accel_watchpoint_condition)
2796 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2797 (debug_to_watchpoint_addr_within_range)
2798 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2799 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2800 (debug_to_terminal_init, debug_to_terminal_inferior)
2801 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2802 (debug_to_terminal_save_ours, debug_to_terminal_info)
2803 (debug_to_load, debug_to_post_startup_inferior)
2804 (debug_to_insert_fork_catchpoint)
2805 (debug_to_remove_fork_catchpoint)
2806 (debug_to_insert_vfork_catchpoint)
2807 (debug_to_remove_vfork_catchpoint)
2808 (debug_to_insert_exec_catchpoint)
2809 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2810 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2811 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2812 (setup_target_debug): Call init_debug_target.
2813 * target.h (TARGET_DEBUG_PRINTER): New macro.
2814 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2815 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2816
2c51604d
GB
28172014-07-24 Gary Benson <gbenson@redhat.com>
2818
2819 * exceptions.h (throw_vfatal): Renamed to...
2820 (throw_vquit): New declaration.
2821 (throw_quit): Likewise.
2822 * exceptions.c (throw_vfatal): Renamed to...
2823 (throw_vquit): New function.
2824 (throw_quit): Likewise.
2825 (throw_error): Call throw_verror rather than throw_it.
2826 * utils.h (vfatal): Removed.
2827 (fatal): Likewise.
2828 * utils.c (vfatal): Removed.
2829 (fatal): Likewise.
2830 (internal_verror): Replaced call to fatal with call to throw_quit.
2831 (quit): Replaced calls to fatal with calls to throw_quit.
2832
34211963
ME
28332014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2834
2835 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2836 target_read_code.
2837
a52b4d3e
ME
28382014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2839
2840 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2841 less than zero in conditional expression.
2842
a8bdc56b
TT
28432014-07-23 Tom Tromey <tromey@redhat.com>
2844
2845 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2846 ($INTRO_PART): Don't match whitespace.
2847 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2848 argument matching.
2849 ($METHOD): Add $METHOD_TRAILER.
2850 (trim): Rewrite.
2851 (scan_target_h): New sub.
2852 Change main loop not to collect state.
2853 * target-delegates.c: Rebuild.
2854
91b52240
GB
28552014-07-23 Gary Benson <gbenson@redhat.com>
2856
2857 * cp-support.c (gdb_demangle): Fix build on systems without
2858 sigaltstack.
2859
45326f6f
JK
28602014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2861
2862 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2863 for reference entry value target data value.
2864
e214cf6c
JK
28652014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2866
2867 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2868 value_available_contents_eq.
2869
bddbbedd
PA
28702014-07-22 Pedro Alves <palves@redhat.com>
2871
2872 * value.c (allocate_optimized_out_value): Don't mark value as
2873 non-lazy.
2874
45c71484
JW
28752014-07-22 Jiong Wang <jiong.wang@arm.com>
2876
2877 * MAINTAINERS (Write After Approval): Update my email address.
2878
9597b22a
DE
28792014-07-20 Doug Evans <dje@google.com>
2880
2881 PR server/17147
2882 * remote.c (putpkt_binary): Add text to error message.
2883
91101fe5
YQ
28842014-07-20 Yao Qi <yao@codesourcery.com>
2885
2886 * eval.c: Remove "Chill" from comments.
2887 * gdbtypes.h: Likewise.
2888 * symtab.h: Likewise.
2889
c9402c95
YQ
28902014-07-20 Yao Qi <yao@codesourcery.com>
2891
2892 * std-operator.def: Update comments to TERNOP_SLICE.
2893
ae8fddda
YQ
28942014-07-20 Yao Qi <yao@codesourcery.com>
2895
2896 * std-operator.def: Remove BINOP_RANGE.
2897 * breakpoint.c (watchpoint_exp_is_const): Update.
2898 * expprint.c (dump_subexp_body_standard): Likewise.
2899 * eval.c (init_array_element): Remove dead code.
2900 (evaluate_subexp_standard): Likewise.
2901
9c816640
YQ
29022014-07-20 Yao Qi <yao@codesourcery.com>
2903
2904 * std-operator.def: Remove BINOP_IN.
2905 * breakpoint.c (watchpoint_exp_is_const): Update.
2906 * eval.c (evaluate_subexp_standard): Likewise.
2907 * expprint.c (dump_subexp_body_standard): Likewise.
2908
164224e9
ME
29092014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2910
2911 * microblaze-tdep.c (microblaze_register_names): Add
2912 the rshr and rslr register names.
2913 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2914 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2915 Use of tdesc_numbered_register. Use of
2916 microblaze_register_g_packet_guesses. Use of
2917 tdesc_use_registers. Use of set_gdbarch_register_type.
2918 (microblaze_register_g_packet_guesses): New.
2919 * microblaze-tdep.h (microblaze_reg_num): Add
2920 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2921 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2922 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2923 * features/microblaze-core.xml: New file.
2924 * features/microblaze-stack-protect.xml: New file.
2925 * features/microblaze-with-stack-protect.c: New file.
2926 * features/microblaze-with-stack-protect.xml: New file.
2927 * features/microblaze.xml: New file.
2928 * features/microblaze.c: New file.
2929 * features/Makefile (microblaze-with-stack-protect): Add
2930 microblaze-with-stack-protect microblaze and microblaze-expedite.
2931 * regformats/microblaze-with-stack-protect.dat: New file.
2932 * regformats/microblaze.dat: New file.
2933 * doc/gdb.texinfo (MicroBlaze Features): Added.
2934
e8b2341c
TT
29352014-07-18 Tom Tromey <tromey@redhat.com>
2936
2937 * exec.c (exec_ops): Now static.
2938 * exec.h (exec_ops): Don't declare.
2939
44e89118
TT
29402014-07-18 Tom Tromey <tromey@redhat.com>
2941
2942 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2943 to find_target_beneath.
2944 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2945 find_target_beneath.
2946 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2947
b0ed115f
TT
29482014-07-18 Tom Tromey <tromey@redhat.com>
2949
2950 PR gdb/17130:
2951 * utils.c (quit): Use target_supports_terminal_ours.
2952 * target.h (target_supports_terminal_ours): Declare.
2953 * target.c (target_supports_delete_record): Don't check
2954 to_delete_record against NULL.
2955 (target_supports_terminal_ours): New function.
2956
e75fdfca
TT
29572014-07-18 Tom Tromey <tromey@redhat.com>
2958
2959 PR gdb/17130:
2960 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2961 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2962 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2963 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2964 * windows-nat.c (windows_xfer_partial): Always delegate.
2965 * record-btrace.c (record_btrace_xfer_partial): Simplify
2966 delegation.
2967 (record_btrace_fetch_registers, record_btrace_store_registers)
2968 (record_btrace_prepare_to_store, record_btrace_resume)
2969 (record_btrace_wait, record_btrace_find_new_threads)
2970 (record_btrace_thread_alive): Likewise.
2971 * procfs.c (procfs_xfer_partial): Always delegate.
2972 * corelow.c (core_xfer_partial): Always delegate.
2973 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2974
83814951
TT
29752014-07-18 Tom Tromey <tromey@redhat.com>
2976
2977 * exec.c (exec_make_note_section): Move earlier.
2978
b8b8facf
DE
29792014-07-17 Doug Evans <dje@google.com>
2980
74b49205 2981 PR gdb/17170
b8b8facf
DE
2982 * maint.c (count_symtabs_and_blocks): Handle NULL
2983 current_program_space.
2984 (report_command_stats): Check global enabled flag in addition to
2985 recorded enabled flag.
2986 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2987
69ff6be5
PA
29882014-07-16 Pedro Alves <palves@redhat.com>
2989
2990 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2991
252db1b5
TT
29922014-07-16 Tom Tromey <tromey@redhat.com>
2993
2994 * target.h (struct target_ops) <to_delete_record>: Reformat
2995 comment.
2996
a432721e
TT
29972014-07-16 Tom Tromey <tromey@redhat.com>
2998
2999 * target-delegates.c: Rebuild.
3000
487d9753
PL
30012014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3002
3003 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3004 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3005 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3006 (avr_pointer_to_address): Likewise.
3007 (avr_address_class_type_flags): New function.
3008 (avr_address_class_type_flags_to_name): Likewise.
3009 (avr_address_class_name_to_type_flags): Likewise.
3010 (avr_gdbarch_init): Set address_class_type_flags,
3011 address_class_type_flags_to_name and
3012 address_class_name_to_type_flags.
3013
57745c90
PA
30142014-07-15 Pedro Alves <palves@redhat.com>
3015
3016 * linux-nat.c (kill_callback): Save errno and work with saved
3017 copy.
3018
2d40be18
SM
30192014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3020
3021 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3022
572f6555
EBM
30232014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3024
3025 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3026 breakpoint support correctly.
3027
cc1c52ad
PA
30282014-07-14 Pedro Alves <palves@redhat.com>
3029
3030 * utils.c (prompt_for_continue): Call target_terminal_ours.
3031
1e973570
PA
30322014-07-14 Pedro Alves <palves@redhat.com>
3033
3034 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3035 catch_errors. Don't re-enable stdin or notify observers where,
3036 and rethrow error.
3037 (fetch_inferior_event_wrapper): Delete.
3038
93d6eb10
PA
30392014-07-14 Pedro Alves <palves@redhat.com>
3040
3041 PR gdb/17072
3042 * top.c: Include "inf-loop.h".
3043 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3044 field.
3045 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3046 was async before.
3047 (gdb_readline_wrapper): Store whether the target is async, and
3048 make it sync.
3049
0017922d
PA
30502014-07-14 Pedro Alves <palves@redhat.com>
3051
3052 PR gdb/17072
3053 * top.c (gdb_readline_wrapper_line): Tweak comment.
3054 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3055 the input handler callback.
3056
94696ad3
PA
30572014-07-14 Pedro Alves <palves@redhat.com>
3058
3059 PR gdb/17072
3060 * main.c: Include event-top.h.
3061 (handle_command_errors): New function.
3062 (catch_command_errors, catch_command_errors_const): Use it.
3063
9d1e69a2
PA
30642014-07-14 Pedro Alves <palves@redhat.com>
3065
3066 * exceptions.c (catch_command_errors, catch_command_errors_const):
3067 Moved to main.c.
3068 * exceptions.h (catch_command_errors_ftype)
3069 (catch_command_errors_const_ftype): Moved to main.c.
3070 (catch_command_errors, catch_command_errors_const): Delete
3071 declarations.
3072 * main.c (catch_command_errors_ftype)
3073 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3074 (catch_command_errors, catch_command_errors_const)): Moved here
3075 from exceptions.c and make static.
3076
feefc97b
PA
30772014-07-14 Pedro Alves <palves@redhat.com>
3078
3079 * exceptions.c (print_any_exception): Delete.
3080 (catch_exceptions_with_msg): Use exception_print instead of
3081 print_any_exception.
3082 (catch_errors): Use exception_fprintf instead of
3083 print_any_exception.
3084 (catch_command_errors, catch_command_errors_const): Use
3085 exception_print instead of print_any_exception.
3086
c933f875
PA
30872014-07-14 Pedro Alves <palves@redhat.com>
3088
3089 * infcall.c (run_inferior_call): Set 'sync_execution' while
3090 running the inferior call.
3091
feb6f816
PA
30922014-07-14 Pedro Alves <palves@redhat.com>
3093
3094 * value.c (value_contents_equal): Delete function.
3095 * value.h (value_contents_equal): Delete declaration.
3096
d98b7a16
TT
30972014-07-14 Tom Tromey <tromey@redhat.com>
3098
3099 PR exp/17106:
3100 * gdbtypes.c (is_dynamic_type_internal): New function, from
3101 is_dynamic_type.
3102 (is_dynamic_type): Rewrite.
3103 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3104 (resolve_dynamic_struct): Likewise.
3105 (resolve_dynamic_type_internal): New function, from
3106 resolve_dynamic_type.
3107 (resolve_dynamic_type): Rewrite.
3108
548740d6
TT
31092014-07-14 Tom Tromey <tromey@redhat.com>
3110
3111 * target.c (target_require_runnable): Also check record_stratum.
3112 Update comment.
3113
808f7ab1
YQ
31142014-07-11 Yao Qi <yao@codesourcery.com>
3115
3116 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3117 thumb_instruction_restores_sp return true.
3118
540314bd
YQ
31192014-07-11 Yao Qi <yao@codesourcery.com>
3120
3121 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3122 (thumb_in_function_epilogue_p): Call
3123 thumb_instruction_restores_sp.
3124
1db01f22
YQ
31252014-07-11 Yao Qi <yao@codesourcery.com>
3126
3127 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3128 'add sp, #imm'.
3129 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3130
3116063b
GB
31312014-07-11 Gary Benson <gbenson@redhat.com>
3132
3133 * amd64-linux-nat.c (gdbcore.h): Remove include.
3134 (regset.h): Likewise.
3135 (nat/linux-btrace.h): Likewise.
3136 (btrace.h): Likewise.
3137 (gdb_assert.h): Likewise.
3138 (string.h): Likewise.
3139 (sys/uio.h): Likewise.
3140 (sys/debugreg.h): Likewise.
3141 (sys/syscall.h): Likewise.
3142 (sys/procfs.h): Likewise.
3143 (sys/user.h): Likewise.
3144 (asm/ptrace.h): Likewise.
3145 (i386-nat.h): Likewise.
3146 * i386-linux-nat.c (i386-nat.h): Likewise.
3147 (regset.h): Likewise.
3148 (target.h): Likewise.
3149 (linux-nat.h): Likewise.
3150 (nat/linux-btrace.h): Likewise.
3151 (btrace.h): Likewise.
3152 (gdb_assert.h): Likewise.
3153 (string.h): Likewise.
3154 (sys/uio.h): Likewise.
3155 (sys/user.h): Likewise.
3156 (sys/procfs.h): Likewise.
3157 (sys/reg.h): Likewise.
3158 (sys/debugreg.h): Likewise.
3159 (ORIG_EAX): Remove definition.
3160
040baaf6
GB
31612014-07-11 Gary Benson <gbenson@redhat.com>
3162
3163 * i386-linux-nat.h: New file.
3164 * x86-linux-nat.h: Likewise.
3165 * x86-linux-nat.c: Likewise.
3166 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3167 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3168 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3169 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3170 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3171 (PTRACE_SETREGSET): Likewise.
3172 (arch_lwp_info): Now in x86-linux-nat.c.
3173 (have_ptrace_getregset): Now in x86-linux-nat.h.
3174 (x86_linux_dr_get): Now in x86-linux-nat.c.
3175 (x86_linux_dr_set): Likewise.
3176 (x86_linux_dr_get_addr): Likewise.
3177 (x86_linux_dr_get_control): Likewise.
3178 (x86_linux_dr_get_status): Likewise.
3179 (update_debug_registers_callback): Likewise.
3180 (x86_linux_dr_set_control): Likewise.
3181 (x86_linux_dr_set_addr): Likewise.
3182 (x86_linux_prepare_to_resume): Likewise.
3183 (x86_linux_new_thread): Likewise.
3184 (x86_linux_new_fork): Likewise.
3185 (x86_linux_get_thread_area): Likewise.
3186 (super_post_startup_inferior): Likewise.
3187 (x86_linux_child_post_startup_inferior): Likewise.
3188 (AMD64_LINUX_USER64_CS): Likewise.
3189 (AMD64_LINUX_X32_DS): Likewise.
3190 (x86_linux_read_description): Likewise.
3191 (x86_linux_enable_btrace): Likewise.
3192 (x86_linux_disable_btrace): Likewise.
3193 (x86_linux_teardown_btrace): Likewise.
3194 (x86_linux_read_btrace): Likewise.
3195 (x86_linux_create_target): Likewise.
3196 (x86_linux_add_target): Likewise.
3197 * i386-linux-nat.c (x86-linux-nat.h): New include.
3198 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3199 (PTRACE_SETREGSET): Likewise.
3200 (arch_lwp_info): Now in x86-linux-nat.c.
3201 (have_ptrace_getregset): Now in x86-linux-nat.h.
3202 (x86_linux_dr_get): Now in x86-linux-nat.c.
3203 (x86_linux_dr_set): Likewise.
3204 (x86_linux_dr_get_addr): Likewise.
3205 (x86_linux_dr_get_control): Likewise.
3206 (x86_linux_dr_get_status): Likewise.
3207 (update_debug_registers_callback): Likewise.
3208 (x86_linux_dr_set_control): Likewise.
3209 (x86_linux_dr_set_addr): Likewise.
3210 (x86_linux_prepare_to_resume): Likewise.
3211 (x86_linux_new_thread): Likewise.
3212 (x86_linux_new_fork): Likewise.
3213 (x86_linux_get_thread_area): Likewise.
3214 (super_post_startup_inferior): Likewise.
3215 (x86_linux_child_post_startup_inferior): Likewise.
3216 (AMD64_LINUX_USER64_CS): Likewise.
3217 (AMD64_LINUX_X32_DS): Likewise.
3218 (x86_linux_read_description): Likewise.
3219 (x86_linux_enable_btrace): Likewise.
3220 (x86_linux_disable_btrace): Likewise.
3221 (x86_linux_teardown_btrace): Likewise.
3222 (x86_linux_read_btrace): Likewise.
3223 (x86_linux_create_target): Likewise.
3224 (x86_linux_add_target): Likewise.
3225
1aa7e42c
GB
32262014-07-11 Gary Benson <gbenson@redhat.com>
3227
3228 * amd64-linux-nat.c: Comment and whitespace changes.
3229 * i386-linux-nat.c: Comment and whitespace changes.
3230
c1e246a0
GB
32312014-07-11 Gary Benson <gbenson@redhat.com>
3232
3233 * amd64-linux-nat.c (x86_linux_create_target): New function.
3234 (x86_linux_add_target): Likewise.
3235 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3236 * i386-linux-nat.c (x86_linux_create_target): New function.
3237 (x86_linux_add_target): Likewise.
3238 (_initialize_i386_linux_nat): Delegate to the above new functions.
3239
8c420b8d
GB
32402014-07-11 Gary Benson <gbenson@redhat.com>
3241
3242 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3243 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3244 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3245 (ps_get_thread_area): Delegate to the above.
3246
cb1da100
GB
32472014-07-11 Gary Benson <gbenson@redhat.com>
3248
3249 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3250 x86_linux_read_description. All uses updated. amd64-specific
3251 code conditionalized. Conditionalized i386-specific code added.
3252 Redundant cast removed.
3253 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3254 x86_linux_read_description. All uses updated. i386-specific
3255 code conditionalized. Conditionalized amd64-specific code added.
3256 One sizeof replaced with the actual type it is describing.
3257
2acf3cd0
GB
32582014-07-11 Gary Benson <gbenson@redhat.com>
3259
3260 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3261 x86_linux_dr_get. All uses updated.
3262 (amd64_linux_dr_set): Renamed to
3263 x86_linux_dr_set. All uses updated.
3264 (amd64_linux_dr_get_addr): Renamed to
3265 x86_linux_dr_get_addr. All uses updated.
3266 (amd64_linux_dr_get_control): Renamed to
3267 x86_linux_dr_get_control. All uses updated.
3268 (amd64_linux_dr_get_status): Renamed to
3269 x86_linux_dr_get_status. All uses updated.
3270 (amd64_linux_dr_set_control): Renamed to
3271 x86_linux_dr_set_control. All uses updated.
3272 (amd64_linux_dr_set_addr): Renamed to
3273 x86_linux_dr_set_addr. All uses updated.
3274 (amd64_linux_prepare_to_resume): Renamed to
3275 x86_linux_prepare_to_resume. All uses updated.
3276 (amd64_linux_new_thread): Renamed to
3277 x86_linux_new_thread. All uses updated.
3278 (amd64_linux_new_fork): Renamed to
3279 x86_linux_new_fork. All uses updated.
3280 (amd64_linux_child_post_startup_inferior): Renamed to
3281 x86_linux_child_post_startup_inferior. All uses updated.
3282 (amd64_linux_enable_btrace): Renamed to
3283 x86_linux_enable_btrace. All uses updated.
3284 (amd64_linux_disable_btrace): Renamed to
3285 x86_linux_disable_btrace. All uses updated.
3286 (amd64_linux_teardown_btrace): Renamed to
3287 x86_linux_teardown_btrace. All uses updated.
3288 (amd64_linux_read_btrace): Renamed to
3289 x86_linux_read_btrace. All uses updated.
3290 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3291 x86_linux_dr_get. All uses updated.
3292 (i386_linux_dr_set): Renamed to
3293 x86_linux_dr_set. All uses updated.
3294 (i386_linux_dr_get_addr): Renamed to
3295 x86_linux_dr_get_addr. All uses updated.
3296 (i386_linux_dr_get_control): Renamed to
3297 x86_linux_dr_get_control. All uses updated.
3298 (i386_linux_dr_get_status): Renamed to
3299 x86_linux_dr_get_status. All uses updated.
3300 (i386_linux_dr_set_control): Renamed to
3301 x86_linux_dr_set_control. All uses updated.
3302 (i386_linux_dr_set_addr): Renamed to
3303 x86_linux_dr_set_addr. All uses updated.
3304 (i386_linux_prepare_to_resume): Renamed to
3305 x86_linux_prepare_to_resume. All uses updated.
3306 (i386_linux_new_thread): Renamed to
3307 x86_linux_new_thread. All uses updated.
3308 (i386_linux_new_fork): Renamed to
3309 x86_linux_new_fork. All uses updated.
3310 (i386_linux_child_post_startup_inferior): Renamed to
3311 x86_linux_child_post_startup_inferior. All uses updated.
3312 (i386_linux_enable_btrace): Renamed to
3313 x86_linux_enable_btrace. All uses updated.
3314 (i386_linux_disable_btrace): Renamed to
3315 x86_linux_disable_btrace. All uses updated.
3316 (i386_linux_teardown_btrace): Renamed to
3317 x86_linux_teardown_btrace. All uses updated.
3318 (i386_linux_read_btrace): Renamed to
3319 x86_linux_read_btrace. All uses updated.
3320
b9c1d481
AS
33212014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3322
3323 * remote.c (extended_remote_post_attach): New function.
3324 (init_extended_remote_ops): Install it as to_post_attach method.
3325
7180e04a
PA
33262014-07-09 Pedro Alves <palves@redhat.com>
3327
3328 * infcmd.c (attach_command_post_wait): Don't call
3329 target_terminal_inferior here.
3330 (attach_command): Call it here instead.
3331
9a9a7608
AB
33322014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3333
3334 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3335 field.
3336 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3337 from varobj.c, with additional checks.
3338 (c_varobj_ops): Fill in is_path_expr_parent field.
3339 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3340 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3341 field.
3342 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3343 ops method.
3344 (varobj_default_is_path_expr_parent): New function.
3345 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3346 (varobj_default_is_path_expr_parent): Declare new function.
3347
1f267ae3
MM
33482014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3349
3350 * infcmd.c (finish_backward): Turn internal error into normal error.
3351
b2ee242b
PA
33522014-07-07 Pedro Alves <palves@redhat.com>
3353
8a869bca 3354 PR gdb/17096
b2ee242b
PA
3355 * remote.c (async_handle_remote_sigint)
3356 (async_handle_remote_sigint_twice): Call
3357 gdb_call_async_signal_handler instead of
3358 mark_async_signal_handler.
3359
38e229b2
TT
33602014-07-07 Tom Tromey <tromey@redhat.com>
3361
3362 * target-delegates.c: Rebuild.
3363 * target.c (target_info_record): Remove.
3364 * record.c (info_record_command): Unconditionally call
3365 to_info_record.
3366 * target.h (struct target_ops) <to_info_record>: Use
3367 TARGET_DEFAULT_IGNORE.
3368 (target_info_record): Remove.
3369
f0f9ff95
TT
33702014-07-07 Tom Tromey <tromey@redhat.com>
3371
3372 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3373 TARGET_DEFAULT_NORETURN.
3374 * target.c (generic_tls_error): New function.
3375 (target_translate_tls_address): Don't search target stack.
3376 * target-delegates.c: Rebuild.
3377 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3378 stack.
3379 * linux-thread-db.c (thread_db_get_thread_local_address):
3380 Unconditionally call beneath target.
3381
4a5be5ee
MK
33822014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3383
3384 * cli/cli-logging.c (pop_output_files): Assign targerr to
3385 gdb_stdtargerr.
3386
92c3b204
AB
33872014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3388
3389 * MAINTAINERS (Write After Approval): Update my email address.
3390
9b11e3a7
GB
33912014-07-02 Gary Benson <gbenson@redhat.com>
3392
3393 * proc-service.c (ps_xfer_memory): Update comment.
3394 (ps_pstop): Remove unused function.
3395 (ps_pcontinue): Likewise.
3396 (ps_lstop): Likewise.
3397 (ps_lcontinue): Likewise.
3398 (ps_lgetxregsize): Likewise.
3399 (ps_lgetxregs): Likewise.
3400 (ps_lsetxregs): Likewise.
3401 (ps_plog): Likewise.
3402 (ps_ptread): Likewise.
3403 (ps_ptwrite): Likewise.
3404
cf363f18
MW
34052014-07-01 Mark Wielaard <mjw@redhat.com>
3406
3407 * dwarf2read.c (add_array_cv_type): New function.
3408 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3409 (read_tag_volatile_type): Likewise.
3410
82ae6c8d
TT
34112014-07-01 Tom Tromey <tromey@redhat.com>
3412
3413 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3414 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3415 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3416 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3417 * command.h (cmd_cfunc_ftype): Move earlier.
3418 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3419 (add_com, add_info): Use cmd_cfunc_ftype.
3420
96142726
TT
34212014-06-30 Tom Tromey <tromey@redhat.com>
3422
3423 * symtab.c (operator_chars): Make parameters and return type
3424 const.
3425 (file_matches): Make "files" const.
3426 (struct search_symbols_data) <files>: Now const.
3427 (search_symbols): Make "regexp" and "files" parameters const.
3428 Update.
3429 (symtab_symbol_info): Remove cast.
3430 (rbreak_command): Update.
3431 * symtab.h (search_symbols): Update.
3432
b67a2c6f
YQ
34332014-06-27 Yao Qi <yao@codesourcery.com>
3434
3435 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3436 Change parameter type to 'struct thread_info *'. Caller
3437 updated.
3438 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3439 Update declaration.
3440 * dummy-frame.c (struct dummy_frame_id): New.
3441 (dummy_frame_id_eq): New function.
3442 (struct dummy_frame) <id>: Change its type to 'struct
3443 dummy_frame_id'.
3444 (dummy_frame_push): Add parameter ptid and save it in
3445 dummy_frame_id.
3446 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3447 inferior_ptid.
3448 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3449 to inferior_ptid.
3450 (lookup_dummy_frame): Change parameter type to 'struct
3451 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3452 instead of frame_id_eq.
3453 (dummy_frame_pop): Add parameter ptid. Callers updated.
3454 Update comments. Compose dummy_frame_id and pass it to
3455 lookup_dummy_frame.
3456 (dummy_frame_discard): Add parameter ptid.
3457 (dummy_frame_sniffer): Compose dummy_frame_id and call
3458 dummy_frame_id_eq instead of frame_id_eq.
3459 (fprint_dummy_frames): Print ptid.
3460 * dummy-frame.h: Remove comments.
3461 (dummy_frame_push): Add ptid in declaration.
3462 (dummy_frame_pop, dummy_frame_discard): Likewise.
3463
5b10184c
TT
34642014-06-26 Tom Tromey <tromey@redhat.com>
3465
3466 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3467 * command.h (error_no_arg): Update.
3468
06900326
TT
34692014-06-26 Tom Tromey <tromey@redhat.com>
3470
3471 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3472 (do_show_command): Make "arg" const.
3473 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3474
c2bcbb1d
TT
34752014-06-26 Tom Tromey <tromey@redhat.com>
3476
3477 * record-full.c (record_full_get_bookmark): Make "args" const.
3478 (record_full_goto_bookmark): Make "raw_bookmark" const.
3479 * record.c (record_goto): New function.
3480 (cmd_record_goto): Use it. Now static.
3481 * record.h (record_goto): Declare.
3482 (cmd_record_goto): Remove declaration.
3483 * target-delegates.c: Rebuild.
3484 * target.h (struct target_ops) <to_get_bookmark,
3485 to_goto_bookmark>: Make parameter const.
3486
9cbe5fff
TT
34872014-06-26 Tom Tromey <tromey@redhat.com>
3488
3489 * defs.h (generic_load): Update.
3490 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3491 * monitor.c (monitor_load): Make "args" const.
3492 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3493 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3494 const.
3495 (mips_load): Make "file" const.
3496 * remote-sim.c (gdbsim_load): Make "args" const.
3497 * remote.c (remote_load): Make "name" const.
3498 * symfile.c (generic_load): Make "args" const.
3499 * target-delegates.c: Rebuild.
3500 * target.c (target_load): Make "arg" const.
3501 (debug_to_load): Make "args" const.
3502 * target.h (struct target_ops) <to_load>: Make parameter const.
3503 (target_load): Update.
3504
34a68019
TT
35052014-06-26 Tom Tromey <tromey@redhat.com>
3506
3507 PR symtab/16902:
3508 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3509 (dwarf2_physname, read_partial_die)
3510 (guess_partial_die_structure_name, fixup_partial_die)
3511 (guess_full_die_structure_name, anonymous_struct_prefix)
3512 (dwarf2_name): Use per-BFD obstack.
3513
efc889c1
YQ
35142014-06-26 Yao Qi <yao@codesourcery.com>
3515
3516 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3517 dummyframe and this_id into inner block below.
3518
4395285e
YQ
35192014-06-26 Yao Qi <yao@codesourcery.com>
3520
3521 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3522 with "signal_pass[0]" in the initialization of signal_pass.
3523
aef92902
MM
35242014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3525
3526 * record-btrace.c (record_btrace_generating_corefile)
3527 (record_btrace_prepare_to_generate_core)
3528 (record_btrace_done_generating_core): New.
3529 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3530 (record_btrace_store_registers, record_btrace_prepare_to_store):
3531 Forward request when generating a core file.
3532 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3533 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3534 to_done_generating_core.
3535
5fff78c4
MM
35362014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3537
3538 * target.h (target_ops) <to_prepare_to_generate_core>
3539 <to_done_generating_core>: New.
3540 (target_prepare_to_generate_core, target_done_generating_core): New.
3541 * target.c (target_prepare_to_generate_core)
3542 (target_done_generating_core): New.
3543 * target-delegates.c: Regenerate.
3544 * gcore.c: (write_gcore_file): Rename to ...
3545 (write_gcore_file_1): ...this.
3546 (write_gcore_file): Call target_prepare_to_generate_core
3547 and target_done_generating_core.
3548
1d1f1ccb
MM
35492014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3550
3551 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3552 * gcore.c (write_gcore_file): Free memory returned from
3553 make_corefile_notes.
3554 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3555 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3556
3343ef86
YQ
35572014-06-24 Yao Qi <yao@codesourcery.com>
3558
3559 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3560 (arm_linux_init_abi): Set skip_trampoline_code with
3561 gdbarch_skip_trampoline_code instead of
3562 find_solib_trampoline_target.
3563
18d18ac8
YQ
35642014-06-24 Yao Qi <yao@codesourcery.com>
3565
3566 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3567 arm_skip_bx_reg returns non-zero.
3568
80d8d390
YQ
35692014-06-24 Yao Qi <yao@codesourcery.com>
3570
3571 * arm-tdep.c (arm_skip_bx_reg): New function.
3572 (arm_skip_stub): Call arm_skip_bx_reg.
3573
6a18a01c
DB
35742014-06-23 Don Breazeal <donb@codesourcery.com>
3575
3576 * MAINTAINERS: Add myself as write-after-approval maintainer.
3577
8e9db26e
PA
35782014-06-23 Pedro Alves <palves@redhat.com>
3579
3580 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3581 DR_CONTROL before setting DR0..DR3.
3582 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3583 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3584 bits of DR_CONTROL related to the debug register slot being
3585 disabled. If all slots are vacant, clear local slowdown as well,
3586 and assert DR_CONTROL is 0.
3587
70afc5b7
SC
35882014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3589
3590 * python/lib/gdb/command/xmethods.py
3591 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3592 current progspace only if the string "progspace" matches LOCUS_RE.
3593
840ed64d
JK
35942014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3595
3596 Fix --with-system-readline with readline-6.3 patch 5.
3597 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3598 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3599 types.
3600
26f2dc30
TT
36012014-06-20 Tom Tromey <tromey@redhat.com>
3602
3603 * dwarf2read.c (dw2_get_real_path): Use correct type in
3604 OBSTACK_CALLOC.
3605 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3606
125f8a3d
GB
36072014-06-20 Gary Benson <gbenson@redhat.com>
3608
3609 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3610 * common/glibc_thread_db.h: Likewise.
3611 * common/i386-cpuid.h: Likewise.
3612 * common/i386-gcc-cpuid.h: Likewise.
3613 * common/linux-btrace.h: Likewise.
3614 * common/linux-osdata.h: Likewise.
3615 * common/linux-procfs.h: Likewise.
3616 * common/linux-ptrace.h: Likewise.
3617 * common/mips-linux-watch.h: Likewise.
3618 * common/linux-btrace.c: Moved to nat.
3619 * common/linux-osdata.c: Likewise.
3620 * common/linux-procfs.c: Likewise.
3621 * common/linux-ptrace.c: Likewise.
3622 * common/mips-linux-watch.c: Likewise.
3623 * nat/gdb_thread_db.h: Moved from common.
3624 * nat/glibc_thread_db.h: Likewise.
3625 * nat/i386-cpuid.h: Likewise.
3626 * nat/i386-gcc-cpuid.h: Likewise.
3627 * nat/linux-btrace.c: Likewise.
3628 * nat/linux-btrace.h: Likewise.
3629 * nat/linux-osdata.c: Likewise.
3630 * nat/linux-osdata.h: Likewise.
3631 * nat/linux-procfs.c: Likewise.
3632 * nat/linux-procfs.h: Likewise.
3633 * nat/linux-ptrace.c: Likewise.
3634 * nat/linux-ptrace.h: Likewise.
3635 * nat/mips-linux-watch.c: Likewise.
3636 * nat/mips-linux-watch.h: Likewise.
3637 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3638 (object file files): Reordered.
3639 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3640 of glibc_thread_db.h.
3641
42995dbd
GB
36422014-06-20 Gary Benson <gbenson@redhat.com>
3643
3644 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3645 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3646 (i386_dr_low): Likewise.
3647 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3648 (i386_dr_low_set_addr): Likewise.
3649 (i386_dr_low_get_addr): Likewise.
3650 (i386_dr_low_can_set_control): Likewise.
3651 (i386_dr_low_set_control): Likewise.
3652 (i386_dr_low_get_control): Likewise.
3653 (i386_dr_low_get_status): Likewise.
3654 (i386_get_debug_register_length): Likewise.
3655 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3656 (i386_dr_low): Likewise.
3657 * nat/i386-dregs.c (i386-low.h): Remove include.
3658 (i386-nat.h): Likewise.
3659 (nat/i386-dregs.h): New include.
3660 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3661 (i386_dr_low_set_addr): Likewise.
3662 (i386_dr_low_get_addr): Likewise.
3663 (i386_dr_low_can_set_control): Likewise.
3664 (i386_dr_low_set_control): Likewise.
3665 (i386_dr_low_get_control): Likewise.
3666 (i386_dr_low_get_status): Likewise.
3667 (i386_get_debug_register_length): Likewise.
3668 (debug_hw_points): Likewise.
3669
3ed9baed
IB
36702014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3671
3672 * Makefile.in (SFILES): Add d-exp.y.
3673 (YYFILES): Add d-exp.c.
3674 (YYOBJ): Add d-exp.o.
3675 (local-maintainer-clean): Delete d-exp.c.
3676 * d-exp.y: New file.
3677 * d-lang.h (d_parse): New declaration.
3678 (d_error): New declaration.
3679 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3680 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3681 PREC_ORDER operators.
3682 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3683
78c164b0
YQ
36842014-06-19 Yao Qi <yao@codesourcery.com>
3685
3686 * gdbthread.h (any_running): Remove the declaration.
3687 * thread.c (any_running): Remove.
3688
f6e29b6e
YQ
36892014-06-19 Yao Qi <yao@codesourcery.com>
3690
3691 * gdbthread.h (struct thread_info) <state>: Change its type to
3692 'enum thread_state'. Update comments.
3693
034f788c
PA
36942014-06-19 Pedro Alves <palves@redhat.com>
3695
3696 * gdbthread.h (ALL_THREADS): Delete.
3697 (ALL_NON_EXITED_THREADS): New macro.
3698 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3699 instead of ALL_THREADS.
3700 * infrun.c (find_thread_needs_step_over)
3701 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3702 instead of ALL_THREADS.
3703 * record-btrace.c (record_btrace_open)
3704 (record_btrace_stop_recording, record_btrace_close)
3705 (record_btrace_is_replaying, record_btrace_resume)
3706 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3707 * remote.c (append_pending_thread_resumptions): Likewise.
3708 * thread.c (thread_apply_all_command): Likewise.
3709
46e33252
GB
37102014-06-19 Gary Benson <gbenson@redhat.com>
3711
3712 * i386-nat.c (i386_stopped_by_watchpoint):
3713 Use i386_dr_stopped_by_watchpoint.
3714 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3715 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3716
3a8ee006
GB
37172014-06-19 Gary Benson <gbenson@redhat.com>
3718
3719 * nat/i386-dregs.c: New file.
3720 * Makefile.in (i386-dregs.o): New rule.
3721 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3722 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3723 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3724 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3725 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3726 * config/i386/go32.mh (NATDEPFILES): Likewise.
3727 * config/i386/linux.mh (NATDEPFILES): Likewise.
3728 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3729 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3730 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3731 * i386-nat.h (debug_hw_points): New declaration.
3732 * i386-nat.c (breakpoint.h): Remove include.
3733 (command.h): Likewise.
3734 (target.h): Likewise.
3735 (gdb_assert.h): Likewise.
3736 (debug_hw_points): Made nonstatic.
3737 (debug_printf): Now in i386-dregs.c.
3738 (TARGET_HAS_DR_LEN_8): Likewise.
3739 (DR_CONTROL_SHIFT): Likewise.
3740 (DR_CONTROL_SIZE): Likewise.
3741 (DR_RW_EXECUTE): Likewise.
3742 (DR_RW_WRITE): Likewise.
3743 (DR_RW_READ): Likewise.
3744 (DR_RW_IORW): Likewise.
3745 (DR_LEN_1): Likewise.
3746 (DR_LEN_2): Likewise.
3747 (DR_LEN_4): Likewise.
3748 (DR_LEN_8): Likewise.
3749 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3750 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3751 (DR_ENABLE_SIZE): Likewise.
3752 (DR_LOCAL_SLOWDOWN): Likewise.
3753 (DR_GLOBAL_SLOWDOWN): Likewise.
3754 (DR_CONTROL_RESERVED): Likewise.
3755 (I386_DR_CONTROL_MASK): Likewise.
3756 (I386_DR_VACANT): Likewise.
3757 (I386_DR_LOCAL_ENABLE): Likewise.
3758 (I386_DR_GLOBAL_ENABLE): Likewise.
3759 (I386_DR_DISABLE): Likewise.
3760 (I386_DR_SET_RW_LEN): Likewise.
3761 (I386_DR_GET_RW_LEN): Likewise.
3762 (I386_DR_WATCH_HIT): Likewise.
3763 (i386_wp_op_t): Likewise.
3764 (i386_show_dr): Likewise.
3765 (i386_length_and_rw_bits): Likewise.
3766 (i386_insert_aligned_watchpoint): Likewise.
3767 (i386_remove_aligned_watchpoint): Likewise.
3768 (i386_handle_nonaligned_watchpoint): Likewise.
3769 (i386_update_inferior_debug_regs): Likewise.
3770 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3771 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3772 (i386_region_ok_for_watchpoint):
3773 Use i386_dr_region_ok_for_watchpoint.
3774 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3775
322a8e06
GB
37762014-06-19 Gary Benson <gbenson@redhat.com>
3777
3778 * i386-nat.c (i386_insert_hw_breakpoint): Use
3779 i386_insert_watchpoint.
3780 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3781
8f26655c
GB
37822014-06-19 Gary Benson <gbenson@redhat.com>
3783
3784 * i386-nat.c (i386_dr_show): Renamed to
3785 i386_show_dr and made static. All uses updated.
3786 (i386_dr_length_and_rw_bits): Renamed to
3787 i386_length_and_rw_bits and made static.
3788 All uses updated.
3789 (i386_dr_insert_aligned_watchpoint): Renamed to
3790 i386_insert_aligned_watchpoint and made static.
3791 All uses updated.
3792 (i386_dr_remove_aligned_watchpoint): Renamed to
3793 i386_remove_aligned_watchpoint and made static.
3794 All uses updated.
3795 (i386_dr_update_inferior_debug_regs): Renamed to
3796 i386_update_inferior_debug_regs and made static.
3797 All uses updated.
3798 * nat/i386-dregs.h (i386_dr_show): Removed.
3799 (i386_dr_length_and_rw_bits): Likewise.
3800 (i386_dr_insert_aligned_watchpoint): Likewise.
3801 (i386_dr_remove_aligned_watchpoint): Likewise.
3802 (i386_dr_update_inferior_debug_regs): Likewise.
3803
992c7d70
GB
38042014-06-19 Gary Benson <gbenson@redhat.com>
3805
3806 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3807 * configure: Regenerate.
3808 * config.in: Likewise.
3809 * main.c (signal.h): New include.
3810 (setup_alternate_signal_stack): New function.
3811 (captured_main): Call the above.
3812 * cp-support.c (signal.h): New include.
3813 (catch_demangler_crashes): New flag.
3814 (SIGJMP_BUF): New define.
3815 (SIGSETJMP): Likewise.
3816 (SIGLONGJMP): Likewise.
3817 (gdb_demangle_jmp_buf): New static global.
3818 (gdb_demangle_attempt_core_dump): Likewise.
3819 (gdb_demangle_signal_handler): New function.
3820 (gdb_demangle): If catch_demangler_crashes is set, install the
3821 above signal handler before calling bfd_demangle, and restore
3822 the original signal handler afterwards. Display the offending
3823 symbol and call demangler_warning the first time a segmentation
3824 fault is caught.
3825 (_initialize_cp_support): New maint set/show command.
3826
eae7090b
GB
38272014-06-19 Gary Benson <gbenson@redhat.com>
3828
3829 * utils.h (resource_limit_kind): New enum.
3830 (can_dump_core): New declaration.
3831 (warn_cant_dump_core): Likewise.
3832 (dump_core): Likewise.
3833 * utils.c (dump_core): Made nonstatic. Added new
3834 parameter "limit_kind".
3835 (can_dump_core): Made nonstatic. Moved printing code to...
3836 (warn_cant_dump_core): New function.
3837 (can_dump_core_warn): Likewise.
3838 (internal_vproblem): Replace calls to can_dump_core with
3839 calls to can_dump_core_warn. Supply new argument to each.
3840
57fcfb1b
GB
38412014-06-19 Gary Benson <gbenson@redhat.com>
3842
3843 * utils.h (demangler_vwarning): New declaration.
3844 (demangler_warning): Likewise.
3845 * utils.c (struct internal_problem)
3846 <user_settable_should_quit>: New field.
3847 <user_settable_should_dump_core>: Likewise
3848 (internal_error_problem): Add values for above new fields.
3849 (internal_warning_problem): Likewise.
3850 (demangler_warning_problem): New static global.
3851 (demangler_vwarning): New function.
3852 (demangler_warning): Likewise.
3853 (add_internal_problem_command): Selectively add commands.
3854 (_initialize_utils): New internal problem command.
3855 * maint.c (maintenance_demangler_warning): New function.
3856 (_initialize_maint_cmds): New command.
3857
17a40b44
TT
38582014-06-18 Tom Tromey <tromey@redhat.com>
3859
3860 * f-valprint.c (info_common_command_for_block): Update.
3861 * symtab.h (struct general_symbol_info) <common_block>: Now
3862 const.
3863
346d1dfe
TT
38642014-06-18 Tom Tromey <tromey@redhat.com>
3865
3866 * symtab.h (struct symtab) <blockvector>: Now const.
3867 * ada-lang.c (ada_add_global_exceptions): Update.
3868 * buildsym.c (augment_type_symtab): Update.
3869 * dwarf2read.c (dw2_lookup_symbol): Update.
3870 * jit.c (finalize_symtab): Update.
3871 * jv-lang.c (add_class_symtab_symbol): Update.
3872 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3873 Update.
3874 * objfiles.c (objfile_relocate1): Update.
3875 * psymtab.c (lookup_symbol_aux_psymtabs)
3876 (maintenance_check_psymtabs): Update.
3877 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3878 Update.
3879 * spu-tdep.c (spu_catch_start): Update.
3880 * symmisc.c (dump_symtab_1): Update.
3881 * symtab.c (lookup_global_symbol_from_objfile)
3882 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3883 (basic_lookup_transparent_type_quick)
3884 (basic_lookup_transparent_type, find_pc_sect_symtab)
3885 (find_pc_sect_line, search_symbols): Update.
3886 * block.c (find_block_in_blockvector): Make "bl" const.
3887 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3888 const.
3889 (blockvector_contains_pc): Make "bv" const.
3890 (block_for_pc_sect): Update.
3891 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3892 (blockvector_contains_pc): Update.
3893 * breakpoint.c (resolve_sal_pc): Update.
3894 * inline-frame.c (block_starting_point_at): Update.
3895
1834676b
TT
38962014-06-18 Tom Tromey <tromey@redhat.com>
3897
3898 * completer.c (complete_line): Make "line_buffer" const.
3899 * completer.h (complete_line): Update.
3900
ac1a991b
TT
39012014-06-18 Tom Tromey <tromey@redhat.com>
3902
3903 * symtab.c (add_macro_name): Remove unneeded cast.
3904
5bc98e52
TT
39052014-06-18 Tom Tromey <tromey@redhat.com>
3906
3907 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3908 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3909
8236def8
TT
39102014-06-18 Tom Tromey <tromey@redhat.com>
3911
3912 * probe.c (info_probes_for_ops): Make "arg" const.
3913 * probe.h (info_probes_for_ops): Update.
3914
3977b71f
TT
39152014-06-18 Tom Tromey <tromey@redhat.com>
3916
3917 * varobj.c (varobj_create): Update.
3918 * valops.c (value_of_this): Update.
3919 * tracepoint.c (add_local_symbols, scope_info): Update.
3920 * symtab.h (struct general_symbol_info) <block>: Now const.
3921 * symtab.c (skip_prologue_sal)
3922 (default_make_symbol_completion_list_break_on)
3923 (skip_prologue_using_sal): Update.
3924 * stack.h (iterate_over_block_locals)
3925 (iterate_over_block_local_vars): Update.
3926 * stack.c (print_frame_args): Update.
3927 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3928 parameter const.
3929 (get_selected_block): Make return type const.
3930 * python/py-frame.c (frapy_block): Update.
3931 * python/py-block.c (gdbpy_block_for_pc): Update.
3932 * p-exp.y (%union) <bval>: Now const.
3933 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3934 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3935 * m2-exp.y (%union) <bval>: Now const.
3936 * linespec.c (get_current_search_block): Make return type const.
3937 (create_sals_line_offset, find_label_symbols): Update.
3938 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3939 Update.
3940 (block_starting_point_at): Make "block" const.
3941 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3942 (check_exception_resume): Update.
3943 * guile/scm-frame.c (gdbscm_frame_block): Update.
3944 * guile/scm-block.c (gdbscm_lookup_block): Update.
3945 * frame.h (get_frame_block): Update.
3946 (get_selected_block): Make return type const.
3947 * frame.c (frame_id_inner): Update.
3948 * f-valprint.c (info_common_command_for_block)
3949 (info_common_command): Update.
3950 * dwarf2loc.c (dwarf2_find_location_expression)
3951 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3952 (locexpr_describe_location_piece): Update.
3953 * c-exp.y (%union) <bval>: Now const.
3954 * breakpoint.c (resolve_sal_pc): Update.
3955 * blockframe.c (get_frame_block):Make return type const.
3956 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3957 (block_innermost_frame): Update.
3958 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3959 (block_for_pc, block_for_pc_sect): Update.
3960 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3961 'pblock' const.
3962 (block_for_pc_sect, block_for_pc): Make return type const.
3963 * ax-gdb.c (gen_expr): Update.
3964 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3965 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3966 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3967 (ada_read_var_value): Update.
3968 * ada-exp.y (struct name_info) <block>: Now const.
3969 (%union): Likewise.
3970 (block_lookup): Constify.
3971
b9228891
GB
39722014-06-18 Gary Benson <gbenson@redhat.com>
3973
3974 * nat/i386-dregs.h: New file.
3975 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3976 * i386-nat.h (i386-dregs.h): New include.
3977 (DR_FIRSTADDR): Now in i386-dregs.h.
3978 (DR_LASTADDR): Likewise.
3979 (DR_NADDR): Likewise.
3980 (DR_STATUS): Likewise.
3981 (DR_CONTROL): Likewise.
3982 (i386_debug_reg_state): Likewise.
3983 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3984
a1aa2221
LM
39852014-06-18 Don Breazeal <donb@codesourcery.com>
3986
3987 * breakpoint.c (set_longjmp_breakpoint): Call
3988 momentary_breakpoint_from_master with additional argument.
3989 (set_longjmp_breakpoint_for_call_dummy): Call
3990 momentary_breakpoint_from_master with additional argument.
3991 (set_std_terminate_breakpoint): Call
3992 momentary_breakpoint_from_master with additional argument.
3993 (momentary_breakpoint_from_master): Add argument to function
3994 definition and use it to initialize structure member flag.
74228e77 3995 (clone_momentary_breakpoint): Call
a1aa2221
LM
3996 momentary_breakpoint_from_master with additional argument.
3997 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3998 member flags set in momentary_breakpoint_from_master.
3999
4be83cc2
GB
40002014-06-18 Gary Benson <gbenson@redhat.com>
4001
4002 * i386-nat.c (i386_show_dr): Renamed to
4003 i386_dr_show and made nonstatic. All uses updated.
4004 (i386_length_and_rw_bits): Renamed to
4005 i386_dr_length_and_rw_bits and made nonstatic.
4006 All uses updated.
4007 (i386_insert_aligned_watchpoint): Renamed to
4008 i386_dr_insert_aligned_watchpoint and made nonstatic.
4009 All uses updated.
4010 (i386_remove_aligned_watchpoint): Renamed to
4011 i386_dr_remove_aligned_watchpoint and made nonstatic.
4012 All uses updated.
4013 (i386_update_inferior_debug_regs): Renamed to
4014 i386_dr_update_inferior_debug_regs and made nonstatic.
4015 All uses updated.
4016
131aa0d4
GB
40172014-06-18 Gary Benson <gbenson@redhat.com>
4018
4019 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4020 (i386_dr_low_can_set_control): Likewise.
4021 (i386_dr_low_set_addr): Likewise.
4022 (i386_dr_low_set_control): Likewise.
4023 (i386_dr_low_get_addr): Likewise.
4024 (i386_dr_low_get_status): Likewise.
4025 (i386_dr_low_get_control): Likewise.
4026 (i386_insert_aligned_watchpoint): Use new macros.
4027 (i386_update_inferior_debug_regs): Likewise.
4028 (i386_stopped_data_address): Likewise.
4029
d9305f7f
GB
40302014-06-18 Gary Benson <gbenson@redhat.com>
4031
4032 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4033 New parameter. All uses updated.
4034
ea008da4
GB
40352014-06-18 Gary Benson <gbenson@redhat.com>
4036
4037 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4038 All uses updated.
4039
1b6d4134
GB
40402014-06-18 Gary Benson <gbenson@redhat.com>
4041
4042 * i386-nat.c (debug_printf): New macro.
4043 (i386_get_debug_register_length): Likewise.
4044 (TARGET_HAS_DR_LEN_8): Use above macro.
4045 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4046 and printf_unfiltered. Use phex to format values.
4047
9b4550ef
GB
40482014-06-18 Gary Benson <gbenson@redhat.com>
4049
4050 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4051 Make const.
4052
6e62758f
GB
40532014-06-18 Gary Benson <gbenson@redhat.com>
4054
4055 * i386-nat.c: Comment changes.
4056
51c79e94
GB
40572014-06-18 Gary Benson <gbenson@redhat.com>
4058
4059 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4060
3e11889a
GB
40612014-06-18 Gary Benson <gbenson@redhat.com>
4062
4063 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4064 (i386_insert_aligned_watchpoint): Likewise.
4065 (i386_remove_aligned_watchpoint): Likewise.
4066 (i386_handle_nonaligned_watchpoint): Likewise.
4067
fc6e2f03
GB
40682014-06-18 Gary Benson <gbenson@redhat.com>
4069
4070 * i386-nat.c: Whitespace changes.
4071
2afe7d50
SB
40722014-06-17 Samuel Bronson <naesten@gmail.com>
4073
4074 * MAINTAINERS: Update Roland McGrath's email address.
4075 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 4076 Red Hat a while ago, and giving me a current address.
2afe7d50 4077
3bca49ee
TT
40782014-06-17 Tom Tromey <tromey@redhat.com>
4079
4080 * utils.h (savestring): Remove declaration.
4081
6e366df1
TT
40822014-06-17 Tom Tromey <tromey@redhat.com>
4083
4084 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4085
6be47f0c
KS
40862014-06-16 Keith Seitz <keiths@redhat.com>
4087
4088 PR mi/15863
4089 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4090 to update the varobj if inferior_ptid is null_ptid.
4091
7bc112c1
TT
40922014-06-16 Tom Tromey <tromey@redhat.com>
4093
4094 * target.h (struct target_ops) <to_info_proc>: Make parameter
4095 const.
4096 (target_info_proc): Update.
4097 * target.c (target_info_proc): Make "args" const.
4098 * procfs.c (procfs_info_proc): Update.
4099 * linux-tdep.c (linux_info_proc): Update.
4100 (linux_core_info_proc_mappings): Make "args" const.
4101 (linux_core_info_proc): Update.
4102 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4103 * gdbarch.c: Rebuild.
4104 * gdbarch.h: Rebuild.
4105 * corelow.c (core_info_proc): Update.
4106
fee354ee
TT
41072014-06-16 Tom Tromey <tromey@redhat.com>
4108
4109 * target.h (struct target_ops) <to_disconnect>: Make parameter
4110 const.
4111 (target_disconnect): Update.
4112 * target.c (target_disconnect): Make "args" const.
4113 * target-delegates.c: Rebuild.
4114 * remote.c (remote_disconnect): Update.
4115 * record.h (record_disconnect): Update.
4116 * record.c (record_disconnect): Update.
4117 * inf-child.c (inf_child_disconnect): Update.
4118
a30bf1f1
TT
41192014-06-16 Tom Tromey <tromey@redhat.com>
4120
4121 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4122 * target.c (debug_to_rcmd, default_rcmd): Update.
4123 * target-delegates.c: Rebuild.
4124 * remote.c (remote_rcmd): Update.
4125 * monitor.c (monitor_rcmd): Update.
4126
d03de421
PA
41272014-06-16 Pedro Alves <palves@redhat.com>
4128
4129 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4130 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4131 have OBJF_SHARED set.
4132 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4133 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4134 instead of OBJF_USERLOADED.
4135 * objfiles.h (OBJF_SHARED): Update comment.
4136 (userloaded_objfile_contains_address_p): Rename to ...
4137 (shared_objfile_contains_address_p): ... this, and update
4138 comments.
4139 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4140 new objfile.
4141 (remove_symbol_file_command): Skip objfiles that don't have
4142 OBJF_SHARED set.
4143
99f4262f
TT
41442014-06-16 Tom Tromey <tromey@redhat.com>
4145
4146 * minsyms.h (prim_record_minimal_symbol)
4147 (prim_record_minimal_symbol_and_info): Update comments.
4148
97d66cc6
EZ
41492014-06-14 Eli Zaretskii <eliz@gnu.org>
4150
4151 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4152 or --without-guile, according to how GDB was built.
4153
635c7e8a
TT
41542014-06-13 Tom Tromey <tromey@redhat.com>
4155
4156 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4157 to help_list.
4158 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4159 to help_list.
4160 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4161 help_list.
4162 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4163 help_list.Pass all_commands, not -1, to help_list.
4164 * cli/cli-dump.c (dump_command, append_command)
4165 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4166 (binary_dump_command, binary_append_command): Pass all_commands,
4167 not -1, to help_list.
4168 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4169 -1, to help_list.
4170 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4171 -1, to help_list.
4172 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4173 help_list.
4174 * top.c (set_history): Pass all_commands, not -1, to help_list.
4175 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4176 all_commands, not -1, to help_list.
4177 * symfile.c (overlay_command): Pass all_commands, not -1, to
4178 help_list.
4179 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4180 help_list.
4181 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4182 help_list.
4183 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4184 -1, to help_list.
4185 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4186 not -1, to help_list.
4187 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4188 not -1, to help_list.
4189 * maint.c (maintenance_command, maintenance_info_command)
4190 (maintenance_print_command, maintenance_set_cmd): Pass
4191 all_commands, not -1, to help_list.
4192 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4193 help_list.
4194 * language.c (set_check): Pass all_commands, not -1, to help_list.
4195 * infcmd.c (unset_command): Pass all_commands, not -1, to
4196 help_list.
4197 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4198 help_list.
4199 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4200 help_list.
4201 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4202 help_list.
4203 * breakpoint.c (save_command): Pass all_commands, not -1, to
4204 help_list.
4205 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4206 all_commands, not -1, to help_list.
4207
b94ade42
PL
42082014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4209
4210 * regcache.c (struct register_to_invalidate): New structure.
4211 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4212 functions.
4213 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4214
31f628ae
YQ
42152014-06-12 Yao Qi <yao@codesourcery.com>
4216
4217 * varobj.c (varobj_get_num_children): Call
4218 varobj_is_dynamic_p.
4219 (varobj_list_children): Likewise.
4220 (varobj_update): Likewise. Update comments.
4221
cde5ef40
YQ
42222014-06-12 Yao Qi <yao@codesourcery.com>
4223
4224 * varobj.c (varobj_pretty_printed_p): Rename to ...
4225 (varobj_is_dynamic_p): ... this. New function.
4226 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4227 (varobj_is_dynamic_p): Declare.
4228 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4229 (mi_print_value_p, varobj_update_one): Likewise.
4230
576ea091
YQ
42312014-06-12 Pedro Alves <pedro@codesourcery.com>
4232 Yao Qi <yao@codesourcery.com>
4233
4234 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4235 (varobj_get_iterator): Wrap up code for pretty-printer by
4236 "#if HAVE_PYTHON" and "#endif".
4237 (update_dynamic_varobj_children): Likewise.
4238
827f100c
YQ
42392014-06-12 Pedro Alves <pedro@codesourcery.com>
4240 Yao Qi <yao@codesourcery.com>
4241
4242 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4243 gdb_python_initialized is false. Move some code from varobj.c.
4244 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4245 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4246 (struct varobj_item): Moved to varobj-iter.h".
4247 (varobj_clear_saved_item): New function.
4248 (update_dynamic_varobj_children): Move python-related code to
4249 py-varobj.c.
4250 (free_variable): Call varobj_clear_saved_item and
4251 varobj_iter_delete.
4252
e5250216
YQ
42532014-06-12 Pedro Alves <pedro@codesourcery.com>
4254 Yao Qi <yao@codesourcery.com>
4255
4256 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4257 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4258 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4259 (py-varobj.o): New rule.
4260 * python/py-varobj.c: New file.
4261 * python/python-internal.h (py_varobj_get_iterator): Declare.
4262 * varobj-iter.h: New file.
4263 * varobj.c: Include "varobj-iter.h"
4264 (struct varobj) <child_iter>: Change its type from "PyObject *"
4265 to "struct varobj_iter *".
4266 <saved_item>: Likewise.
4267 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4268 [HAVE_PYTHON] (varobj_get_iterator): New function.
4269 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4270 python-specific code to python/py-varobj.c.
4271 (install_visualizer): Call varobj_iter_delete instead of
4272 Py_XDECREF.
4273 * varobj.h (varobj_ensure_python_env): Declare.
4274
5a2e0d6e
YQ
42752014-06-12 Yao Qi <yao@codesourcery.com>
4276
4277 * varobj.c (struct varobj_item): New structure.
4278 (create_child_with_value): Update declaration.
4279 (varobj_add_child): Replace arguments 'name' and 'value' with
4280 'item'. All callers updated.
4281 (install_dynamic_child): Likewise.
4282 (update_dynamic_varobj_children): Likewise.
4283 (varobj_add_child): Likewise.
4284 (create_child_with_value): Likewise.
4285
919b9a93
JB
42862014-06-11 Joel Brobecker <brobecker@adacore.com>
4287
4288 * NEWS: Create a new section for the next release branch.
4289 Rename the section of the current branch, now that it has
4290 been cut.
4291
71a55bdf
JB
42922014-06-11 Joel Brobecker <brobecker@adacore.com>
4293
4294 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4295 * version.in: Bump version to 7.8.50.DATE-cvs.
4296
364fe1f7
PA
42972014-06-11 Pedro Alves <palves@redhat.com>
4298
4299 PR remote/17028
4300 * ser-mingw.c (net_windows_socket_check_pending): New function.
4301 (net_windows_select_thread): Ignore spurious wakeups. Use
4302 net_windows_socket_check_pending.
4303 (net_windows_wait_handle): Check for pending events with
4304 ioctlsocket, through net_windows_socket_check_pending, instead of
4305 checking the socket's event.
4306
5a6c7709
SC
43072014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4308
4309 * python/python-internal.h (gdb_PyObject_GetAttrString)
4310 (gdb_PyObject_HasAttrString): New inline function definitions.
4311 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4312 char * of the second argument to PyObject_GetAttrString.
74228e77 4313
0e58ee40
JB
43142014-06-10 Joel Brobecker <brobecker@adacore.com>
4315
4316 * serial.c (serial_write): Fix index of character to be printed
4317 in call to serial_logchar when serial debug traces are enabled.
4318
d190df30
JB
43192014-06-10 Joel Brobecker <brobecker@adacore.com>
4320
4321 * gdbtypes (resolve_dynamic_range): Add function description.
4322
b4b01d36
PA
43232014-06-09 Pedro Alves <palves@redhat.com>
4324
4325 * linux-nat.c (linux_child_follow_fork): Initialize status with
4326 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4327 inner block. Only pass the signal to PTRACE_DETACH if in pass
4328 state.
4329
3657956b
GB
43302014-06-09 Gary Benson <gbenson@redhat.com>
4331
4332 * common/signals.c (gdb_signal_from_host): Reorder to separate
4333 the always-available ANSI-standard signals from the signals that
4334 require checking.
4335 (do_gdb_signal_to_host): Likewise.
4336 * proc-events.c (signal_table): Likewise.
4337
c077881a
HZ
43382014-06-08 Hui Zhu <hui@codesourcery.com>
4339
4340 * common/linux-ptrace.c (linux_disable_event_reporting): New
4341 function.
4342 * common/linux-ptrace.h (linux_disable_event_reporting): New
4343 declaration.
4344 * linux-nat.c (linux_child_follow_fork): Do a single step before
4345 detach.
4346
4186eb54
KS
43472014-06-07 Keith Seitz <keiths@redhat.com>
4348
4349 Revert:
4350 PR c++/16253
4351 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4352 from symbol_matches_domain in symtab.c. All local callers
4353 of symbol_matches_domain updated.
4354 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4355 search STRUCT_DOMAIN.
4356 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4357 independently. standard_lookup will do that automatically.
4358 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4359 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4360 (cp_lookup_symbol_in_namespace): Likewise.
4361 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4362 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4363 may return a STRUCT_DOMAIN match.
4364 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4365 * cp-support.c: Include language.h.
4366 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4367 VAR_DOMAIN.
4368 * psymtab.c (match_partial_symbol): Compare the requested
4369 domain with the symbol's domain directly.
4370 (lookup_partial_symbol): Likewise.
4371 * symtab.c (lookup_symbol_in_language): Explain when/why
4372 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4373 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4374 appropriate languages.
4375 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4376 and moved to ada-lang.c
4377 (lookup_block_symbol): Explain that this function only returns
4378 symbol matching the requested DOMAIN.
4379 Compare the requested domain with the symbol's domain directly.
4380 (iterate_over_symbols): Compare the requested domain with the
4381 symbol's domain directly.
4382 * symtab.h (symbol_matches_domain): Remove.
4383
25326a28 43842014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
4385
4386 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4387 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4388 (gdbscm_guile_version_is_at_least): Declare.
4389 (gdbscm_scm_string_to_int): Declare.
4390 * guile/guile.c (gdbscm_guile_major_version): New global.
4391 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4392 (guile_datadir): New static global.
4393 (gdbscm_guile_data_directory): New function.
4394 (initialize_scheme_side): Update.
4395 (misc_guile_functions): Add guile-data-directory.
4396 (initialize_gdb_module): Fetch guile version number.
4397 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4398 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4399 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4400 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4401 comments.
4402 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4403 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4404 * guile/scm-value.c (gdbscm_value_to_string): Only call
4405 scm_port_conversion_strategy if Guile version >= 2.0.6.
4406
0a770bb2 44072014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4408
4409 * main.c (print_gdb_help): Add -q and --silent.
4410
73ba372c
GB
44112014-06-06 Gary Benson <gbenson@redhat.com>
4412
4413 * common/signals.c: Remove preprocessor conditionals for
4414 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4415 SIGSEGV and SIGTERM.
4416 * proc-events.c: Likewise.
4417
c33b2f12
MM
44182014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4419
4420 * symfile.c (symfile_free_objfile): Remove restriction to
4421 OBJF_USERLOADED.
4422 * symfile-mem.c (symbol_file_add_from_memory): Call
4423 add_target_sections_of_objfile.
4424
fb934770
LC
44252014-06-05 Ludovic Courtès <ludo@gnu.org>
4426
4427 * guile/scm-value.c (gdbscm_history_append_x): Use
4428 'vlscm_get_value_smob_arg_unsafe' instead of
4429 'vlscm_scm_to_value'.
4430
6ef284bd
SM
44312014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4432
4433 PR mi/15806
4434 * utils.c (printchar): Don't escape at all if quoter is NUL.
4435 Update function documentation to clarify effect of parameter
4436 QUOTER.
4437 * remote.c (escape_buffer): Pass '\\' as the quoter to
4438 fputstrn_unfiltered.
4439 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4440 generate the output.
4441 (mi_solib_unloaded): Same.
4442
270c9937
JB
44432014-06-05 Joel Brobecker <brobecker@adacore.com>
4444
4445 * development.sh: Delete.
4446 * Makefile.in (config.status): Adjust dependency on development.sh.
4447 * configure.ac: Adjust development.sh source call.
4448 * configure: Regenerate.
4449
16f691fb
DE
44502014-06-04 Doug Evans <xdje42@gmail.com>
4451
4452 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4453 is_scheme_bkpt, spec.
4454 (bpscm_make_breakpoint_smob): Initialize new members.
4455 (gdbscm_create_breakpoint_x): Split into two ...
4456 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4457 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4458 (scheme_function breakpoint_functions): Update.
4459 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4460 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4461 register-breakpoint!.
4462
ef7cab6b
JB
44632014-06-04 Joel Brobecker <brobecker@adacorer.com>
4464
4465 PR server/17023
4466 * mem-break.c (z_type_supported): Return zero if
4467 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4468
012370f6
TT
44692014-06-04 Tom Tromey <tromey@redhat.com>
4470
4471 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4472 value_from_contents_and_address_unresolved.
4473 (ada_template_to_fixed_record_type_1): Likewise.
4474 (ada_which_variant_applies): Likewise.
4475 * value.h (value_from_contents_and_address_unresolved): Declare.
4476 * value.c (value_from_contents_and_address_unresolved): New
4477 function.
4478 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4479 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4480 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4481
92e2a17f
TT
44822014-06-04 Tom Tromey <tromey@redhat.com>
4483
4484 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4485
c0939df1
TT
44862014-06-04 Tom Tromey <tromey@redhat.com>
4487
4488 * procfs.c (procfs_attach): Make "args" const.
4489 * windows-nat.c (windows_attach): Make "args" const.
4490 * nto-procfs.c (procfs_attach): Make "args" const.
4491 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4492 * go32-nat.c (go32_attach): Make "args" const.
4493 * gnu-nat.c (gnu_attach): Make "args" const.
4494 * darwin-nat.c (darwin_attach): Make "args" const.
4495 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4496 * linux-nat.c (linux_nat_attach): Make "args" const.
4497 * remote.c (extended_remote_attach_1, extended_remote_attach):
4498 Make "args" const.
4499 * target.h (struct target_ops) <to_attach>: Make "args" const.
4500 (find_default_attach): Likewise.
4501 * utils.c (parse_pid_to_attach): Make "args" const.
4502 * utils.h (parse_pid_to_attach): Update.
4503
8eaff7cd
TT
45042014-06-04 Tom Tromey <tromey@redhat.com>
4505
4506 * target-delegates.c: Rebuild.
4507 * target.c (default_thread_address_space): New function.
4508 (target_thread_address_space): Simplify.
4509 * target.h (struct target_ops) <to_thread_address_space>: Add
4510 TARGET_DEFAULT_FUNC.
4511
1913f160
DE
45122014-06-04 Doug Evans <xdje42@gmail.com>
4513
4514 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4515
70ad5bff
MM
45162014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4517
4518 * record-btrace.c: Include event-loop.h and inf-loop.h.
4519 (record_btrace_resume_exec_dir)
4520 (record_btrace_async_inferior_event_handler)
4521 (record_btrace_handle_async_inferior_event): New.
4522 (record_btrace_open): Create async event handler.
4523 (record_btrace_close): Delete async event handler.
4524 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4525 Mark async event handler.
4526 (record_btrace_execution_direction): New.
4527 (init_record_btrace_ops): Initialize to_execution_direction.
4528
b6210538
DE
45292014-06-03 Doug Evans <xdje42@gmail.com>
4530
4531 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4532 (gdbscm_make_parameter): Ditto.
4533
a5b1fd27
DE
45342014-06-03 Doug Evans <dje@google.com>
4535
4536 * exec.c (exec_close_1): Call clear_section_table instead of
4537 resize_section_table.
4538 (clear_section_table): New function.
4539 (resize_section_table): Make static. Rename arg num_added to
4540 adjustment.
4541 * exec.h (clear_section_table): Declare.
4542 (resize_section_table): Delete.
4543 * progspace.c (release_program_space): Call clear_section_table
4544 instead of resize_section_table.
4545
0c6e92a5
SC
45462014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4547
4548 * NEWS (Python Scripting): Add entry about the new xmethods
4549 feature.
4550
883964a7
SC
45512014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4552
4553 * python/py-xmethods.c: New file.
4554 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4555 (objfpy_dealloc): XDECREF on the new xmethods field.
4556 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4557 field.
4558 (objfpy_get_xmethods): New function.
4559 (objfile_getset): New entry 'xmethods'.
4560 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4561 (pspy_dealloc): XDECREF on the new xmethods field.
4562 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4563 field.
4564 (pspy_get_xmethods): New function.
4565 (pspace_getset): New entry 'xmethods'.
4566 * python/python-internal.h: Add declarations for new functions.
4567 * python/python.c (_initialize_python): Invoke
4568 gdbpy_initialize_xmethods.
4569 * python/lib/gdb/__init__.py (xmethods): New
4570 attribute.
4571 * python/lib/gdb/xmethod.py: New file.
4572 * python/lib/gdb/command/xmethods.py: New file.
4573
58992dc5
SC
45742014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4575
4576 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4577 best match method returned by find_overload_match is an xmethod.
4578 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4579 the best matching operator returned by find_overload_match is an
4580 xmethod.
4581 * valops.c: #include "extension.h".
4582 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4583 Return void. The list of matching source methods is returned in
4584 "fn_list" and a vector of matching debug method workers is
4585 returned in "xm_worker_vec". Update all callers.
4586 (value_find_oload_method_list): Likewise.
4587 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4588 non-NULL, then the index of the best matching method in this
4589 vector is returned. Update all callers.
4590 (find_overload_match): Include xmethods while performing overload
4591 resolution.
4592
e81e7f5e
SC
45932014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4594
4595 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4596 * extension-priv.h (struct extension_language_ops): Add the
4597 xmethod interface.
4598 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4599 get_matching_xmethod_workers, get_xmethod_argtypes,
4600 invoke_xmethod, free_xmethod_worker,
4601 free_xmethod_worker_vec): New functions.
4602 * extension.h: #include "common/vec.h".
4603 New function declarations.
4604 (struct xmethod_worker): New struct.
4605 (VEC (xmethod_worker_ptr)): New vector type.
4606 (xmethod_worker_ptr): New typedef.
4607 (xmethod_worker_vec): Likewise.
4608 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4609 builtin_type.
4610 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4611 (struct builtin_type): New field "xmethod".
4612 * valarith.c (value_ptradd): Assert that the value argument is not
4613 lval_xcallable.
4614 * valops.c (value_must_coerce_to_target): Return 0 for
4615 lval_xcallable values.
4616 * value.c (struct value): New field XM_WORKER in the field
4617 LOCATION.
4618 (value_address, value_raw_address): Return 0 for lval_xcallable
4619 values.
4620 (set_value_address): Assert that the value is not an
4621 lval_xcallable.
4622 (value_free): Free the associated xmethod worker when freeing
4623 lval_xcallable values.
4624 (set_value_component_location): Assert that the WHOLE value is not
4625 lval_xcallable.
4626 (value_of_xmethod, call_xmethod): New functions.
4627 * value.h: Declare "struct xmethod_worker".
4628 Declare new functions value_of_xmethod, call_xmethod.
4629
ef370185
JB
46302014-06-03 Joel Brobecker <brobecker@adacore.com>
4631 Pedro Alves <palves@redhat.com>
4632
4633 PR breakpoints/17000
4634 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4635 New function, extracted from software_breakpoint_inserted_here_p.
4636 (software_breakpoint_inserted_here_p): Replace factored out code
4637 by call to find_non_raw_software_breakpoint_inserted_here.
4638 (bp_target_info_copy_insertion_state): New function.
4639 (bkpt_insert_location): Handle the case of a single-step
4640 breakpoint already inserted at the same address.
4641 (bkpt_remove_location): Handle the case of a single-step
4642 breakpoint still inserted at the same address.
4643 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4644 breakpoint already inserted at the same address.
4645 (deprecated_remove_raw_breakpoint): Handle the case of a
4646 non-raw breakpoint still inserted at the same address.
4647 (find_single_step_breakpoint): New function, extracted from
4648 single_step_breakpoint_inserted_here_p.
4649 (find_single_step_breakpoint): New function,
4650 factored out from single_step_breakpoint_inserted_here_p.
4651 (single_step_breakpoint_inserted_here_p): Reimplement.
4652
1e2ccb61
BM
46532014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4654
4655 Pushed by Joel Brobecker <brobecker@adacore.com>
4656 * source.c (show_substitute_path_command): Fix display of matching
4657 substitution rules.
4658
d3448d85
GB
46592014-06-03 Gary Benson <gbenson@redhat.com>
4660
4661 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4662
06eb1586
DE
46632014-06-02 Doug Evans <xdje42@gmail.com>
4664
4665 Add parameter support for Guile.
4666 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4667 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4668 (scm-param.o): New rule.
4669 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4670 (gdbscm_misc_error): Declare.
4671 (gdbscm_canonicalize_command_name): Declare.
4672 (gdbscm_scm_to_host_string): Declare.
4673 (gdbscm_scm_from_host_string): Declare.
4674 (gdbscm_initialize_parameters): Declare.
4675 * guile/guile.c (initialize_gdb_module): Call
4676 gdbscm_initialize_parameters.
4677 * guile/lib/gdb.scm: Export parameter symbols.
4678 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4679 cmdscm_canonicalize_name and made public. All callers updated.
4680 * guile/scm-exception.c (gdbscm_misc_error): New function.
4681 * guile/scm-param.c: New file.
4682 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4683 (gdbscm_scm_to_host_string): New function.
4684 (gdbscm_scm_from_host_string): New function.
4685 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4686
e698b8c4
DE
46872014-06-02 Doug Evans <xdje42@gmail.com>
4688
4689 Add command support for Guile.
4690 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4691 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4692 (scm-cmd.o): New rule.
4693 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4694 (gdbscm_user_error_p): Declare.
4695 (gdbscm_parse_command_name): Declare.
4696 (gdbscm_valid_command_class_p): Declare.
4697 (gdbscm_initialize_commands): Declare.
4698 * guile/guile.c (initialize_gdb_module): Call
4699 gdbscm_initialize_commands.
4700 * guile/lib/gdb.scm: Export command symbols.
4701 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4702 (throw-user-error): New function.
4703 * guile/scm-cmd.c: New file.
4704 * guile/scm-exception.c (user_error_symbol): New static global.
4705 (gdbscm_user_error_p): New function.
4706 (gdbscm_initialize_exceptions): Set user_error_symbol.
4707 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4708
fb1f94b0
PM
47092014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4710
4711 * top.c (command_loop): Handle comments here...
4712 (command_line_input): ... not here.
4713
ded03782
DE
47142014-06-02 Doug Evans <xdje42@gmail.com>
4715
4716 Add progspace support for Guile.
4717 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4718 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4719 (scm-progspace.o): New rule.
4720 * guile/guile-internal.h (pspace_smob): New typedef.
4721 (psscm_pspace_smob_pretty_printers): Declare.
4722 (psscm_pspace_smob_from_pspace): Declare.
4723 (psscm_scm_from_pspace): Declare.
4724 * guile/guile.c (initialize_gdb_module): Call
4725 gdbscm_initialize_pspaces.
4726 * guile/lib/gdb.scm: Export progspace symbols.
4727 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4728 support.
4729 (append-pretty-printer!): Ditto.
4730 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4731 Implement.
4732 * guile/scm-progspace.c: New file.
4733
397998fc
AM
47342014-06-03 Alan Modra <amodra@gmail.com>
4735
4736 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4737 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4738
6aa5f3a6
DE
47392014-06-02 Doug Evans <dje@google.com>
4740
4741 Add support for skeletonless type units.
4742 * dwarf2read.c (struct dwarf2_per_objfile): New member
4743 n_allocated_type_units.
4744 (struct dwarf2_per_objfile) <tu_stats>: New member
4745 nr_all_type_units_reallocs.
4746 (create_signatured_type_table_from_index): Initialize
4747 n_allocated_type_units
4748 (create_all_type_units): Ditto.
4749 (add_type_unit): Move up in file. New arg slot.
4750 All callers updated. Increase space for all_type_units more
4751 efficiently.
4752 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4753 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4754 (lookup_dwp_signatured_type): Ditto.
4755 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4756 All callers updated.
4757 (build_type_psymtabs_1): Leave type_unit_groups as
4758 NULL if no TUs present.
4759 (print_tu_stats): New function.
4760 (process_skeletonless_type_unit): New function.
4761 (process_dwo_file_for_skeletonless_type_units): New
4762 function.
4763 (process_skeletonless_type_units): New function.
4764 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4765 Call print tu_stats if debugging enabled.
4766
41fac0cf
PA
47672014-06-02 Pedro Alves <palves@redhat.com>
4768
4769 * breakpoint.c (build_target_command_list): Don't build a command
4770 list if we have any duplicate location that isn't a dprintf.
4771
cd1608cc
PA
47722014-06-02 Pedro Alves <palves@redhat.com>
4773
4774 * breakpoint.c (dprintf_breakpoint_hit): New function.
4775 (initialize_breakpoint_ops): Install it as dprintf's
4776 breakpoint_hit method.
4777
486ef3b9
JB
47782014-06-02 Joel Brobecker <brobecker@adacore.com>
4779
4780 * source.c (substitute_path_rule_matches): Simplify using
4781 filename_ncmp instead of FILENAME_CMP.
4782
230cd560
JB
47832014-06-02 Joel Brobecker <brobecker@adacore.com>
4784
4785 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4786
16954d5d
LC
47872014-06-01 Ludovic Courtès <ludo@gnu.org>
4788
4789 * configure.ac: When Guile is available, check for the
4790 availability of 'scm_new_smob'.
4791 * configure, config.h.in: Regenerate.
4792 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4793 function.
4794
53e8a631
AB
47952014-05-30 Andrew Burgess <aburgess@broadcom.com>
4796
4797 * frame.c (struct frame_info): Add stop_string field.
4798 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4799 (get_prev_frame_always): Old content moved into
4800 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4801 TRY_CATCH, handle MEMORY_ERROR exceptions.
4802 (frame_stop_reason_string): New function definition.
4803 * frame.h (unwind_stop_reason_to_string): Extend comment to
4804 mention frame_stop_reason_string.
4805 (frame_stop_reason_string): New function declaration.
4806 * stack.c (frame_info): Switch to frame_stop_reason_string.
4807 (backtrace_command_1): Switch to frame_stop_reason_string.
4808 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4809 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4810 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4811
70e38b8e
AB
48122014-05-30 Andrew Burgess <aburgess@broadcom.com>
4813
4814 * frame.c (frame_stop_reason_string): Rename to ...
4815 (unwind_stop_reason_to_string): this.
4816 * frame.h (frame_stop_reason_string): Rename to ...
4817 (unwind_stop_reason_to_string): this.
4818 * stack.c (frame_info): Update call to frame_stop_reason_string.
4819 (backtrace_command_1): Likewise.
4820 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4821 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4822
938f0e2f
AB
48232014-05-30 Andrew Burgess <aburgess@broadcom.com>
4824
4825 * frame.c (remove_prev_frame): New function.
4826 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4827 remove_prev_frame.
4828
a09dd441
PA
48292014-05-29 Pedro Alves <palves@redhat.com>
4830
4831 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4832 and make it const. When a single-step decays to a continue,
4833 clear 'step', not 'hw_step'. Pass whether the caller wanted
4834 to step to user_visible_resume_ptid, not what we ask the
4835 target to do.
4836
bdc36728
PA
48372014-05-29 Pedro Alves <palves@redhat.com>
4838
4839 * infrun.c (process_event_stop_test, handle_step_into_function)
4840 (handle_step_into_function_backward): Adjust.
4841 Don't set the even thread's stop_step and call stop_waiting before
4842 calling end_stepping_range. Instead do that ...
4843 (end_stepping_range): ... here. Take an ecs pointer parameter.
4844
22bcd14b
PA
48452014-05-29 Pedro Alves <palves@redhat.com>
4846
4847 * infrun.c (stop_stepping): Rename to ...
4848 (stop_waiting): ... this.
4849 (proceed): Update comment.
4850 (process_event_stop_test, handle_inferior_event)
4851 (handle_signal_stop, handle_step_into_function)
4852 (handle_step_into_function_backward): Update.
4853
4ae57c05
PA
48542014-05-29 Pedro Alves <palves@redhat.com>
4855
4856 * infcall.c (run_inferior_call): Don't check whether the current
4857 thread is running after the proceed call.
4858
329ea579
PA
48592014-05-29 Pedro Alves <palves@redhat.com>
4860 Tom Tromey <tromey@redhat.com>
4861
4862 * NEWS: Mention "maint set target-async", "set mi-async", and that
4863 background execution commands are now always available.
4864 * target.h (target_async_permitted): Update comment.
4865 * target.c (target_async_permitted, target_async_permitted_1):
4866 Default to 1.
4867 (set_target_async_command): Rename to ...
4868 (maint_set_target_async_command): ... this.
4869 (show_target_async_command): Rename to ...
4870 (maint_show_target_async_command): ... this.
4871 (_initialize_target): Adjust.
4872 * infcmd.c (prepare_execution_command): Make extern.
4873 * inferior.h (prepare_execution_command): Declare.
4874 * infrun.c (set_observer_mode): Leave target async alone.
4875 * mi/mi-interp.c (mi_interpreter_init): Install
4876 mi_on_sync_execution_done as sync_execution_done observer.
4877 (mi_on_sync_execution_done): New function.
4878 (mi_execute_command_input_handler): Don't print the prompt if we
4879 just started a synchronous command with an async target.
4880 (mi_on_resume): Check sync_execution before printing prompt.
4881 * mi/mi-main.h (mi_async_p): Declare.
4882 * mi/mi-main.c: Include gdbcmd.h.
4883 (mi_async_p): New function.
4884 (mi_async, mi_async_1): New globals.
4885 (set_mi_async_command, show_mi_async_command, mi_async): New
4886 functions.
4887 (exec_continue): Call prepare_execution_command.
4888 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4889 (mi_execute_async_cli_command): Use mi_async_p.
4890 (_initialize_mi_main): Install "set mi-async". Make
4891 "target-async" a deprecated alias.
4892
92bcb5f9
PA
48932014-05-29 Pedro Alves <palves@redhat.com>
4894
4895 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4896 (_initialize_cli_interp): Adjust.
4897 * event-loop.c: Include "observer.h".
4898 (start_event_loop): Notify 'command_error' observers instead of
4899 calling display_gdb_prompt. Remove FIXME comment.
4900 * event-top.c (display_gdb_prompt): Remove call into the
4901 interpreters.
4902 * inf-loop.c: Include "observer.h".
4903 (inferior_event_handler): Notify 'command_error' observers instead
4904 of calling display_gdb_prompt.
4905 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4906 observers instead of calling display_gdb_prompt.
4907 * interps.c (interp_set): Don't call display_gdb_prompt.
4908 (current_interp_display_prompt_p): Delete.
4909 * interps.h (interp_prompt_p): Delete declaration.
4910 (interp_prompt_p_ftype): Delete.
4911 (struct interp_procs) <prompt_proc_p>: Delete field.
4912 (current_interp_display_prompt_p): Delete declaration.
4913 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4914 (_initialize_mi_interp): Adjust.
4915 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4916 'command_error' observers.
4917 (tui_on_sync_execution_done, tui_on_command_error): New
4918 functions.
4919 (tui_display_prompt_p): Delete.
4920 (_initialize_tui_interp): Adjust.
4921
fd664c91
PA
49222014-05-29 Pedro Alves <palves@redhat.com>
4923
4924 PR gdb/13860
4925 * cli/cli-interp.c: Include infrun.h and observer.h.
4926 (cli_uiout, cli_interp): New globals.
4927 (cli_on_signal_received, cli_on_end_stepping_range)
4928 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4929 functions.
4930 (cli_interpreter_init): Install them as 'end_stepping_range',
4931 'signal_received' 'signal_exited', 'exited' and 'no_history'
4932 observers.
4933 (_initialize_cli_interp): Remove cli_interp local.
4934 * infrun.c (handle_inferior_event): Call the several stop reason
4935 observers instead of printing the stop reason directly.
4936 (end_stepping_range): New function.
4937 (print_end_stepping_range_reason, print_signal_exited_reason)
4938 (print_exited_reason, print_signal_received_reason)
4939 (print_no_history_reason): Make static, and add an uiout
4940 parameter. Print to that instead of to CURRENT_UIOUT.
4941 * infrun.h (print_end_stepping_range_reason)
4942 (print_signal_exited_reason, print_exited_reason)
4943 (print_signal_received_reason print_no_history_reason): New
4944 declarations.
4945 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4946 'mi_uiout'.
4947 <cli_uiout>: New field.
4948 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4949 uiout for CLI output. Install 'signal_received',
4950 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4951 observers.
4952 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4953 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4954 (mi_on_no_history): New functions.
4955 (ui_out_free_cleanup): Delete function.
4956 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4957 instead use the one already stored in the MI interpreter data.
4958 (mi_ui_out): Adjust.
4959 * tui/tui-interp.c: Include infrun.h and observer.h.
4960 (tui_interp): New global.
4961 (tui_on_signal_received, tui_on_end_stepping_range)
4962 (tui_on_signal_exited, tui_on_exited)
4963 (tui_on_no_history): New functions.
4964 (tui_init): Install them as 'end_stepping_range',
4965 'signal_received' 'signal_exited', 'exited' and 'no_history'
4966 observers.
4967 (_initialize_tui_interp): Delete tui_interp local.
4968
8817a6f2
PA
49692014-05-29 Pedro Alves <palves@redhat.com>
4970
4971 PR gdb/15713
4972 * linux-nat.c (linux_nat_resume_callback): Rename the second
4973 parameter to 'except'. Skip LP if it points to EXCEPT.
4974 (linux_nat_resume): Don't mark the event lwp as not stopped
4975 before resuming sibling lwps. Instead ask
4976 linux_nat_resume_callback to skip the event lwp. Mark it as not
4977 stopped after actually resuming it.
4978 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4979 resuming it.
4980 (wait_lwp): Mark the lwp as stopped here.
4981 (stop_wait_callback): Mark the lwp as not stopped right after
4982 resuming it. Don't mark lwps as stopped here.
4983 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4984 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4985
251bde03
PA
49862014-05-29 Pedro Alves <palves@redhat.com>
4987
4988 PR PR15693
4989 * infrun.c (resume): Determine how much to resume depending on
4990 whether the caller wanted a step, not whether we can hardware step
4991 the target. Mark all threads that we intend to run as running,
4992 unless we're calling an inferior function.
4993 (normal_stop): If the thread is running an infcall, don't finish
4994 thread state.
4995 * target.c (target_resume): Don't mark threads as running here.
4996
7f3c0343
JB
49972014-05-28 Joel Brobecker <brobecker@adacore.com>
4998
4999 * serial.c (_initialize_serial): Remove support for
5000 the "set remotebaud" and "show remotebaud" commands.
5001 * NEWS: Add entry documenting the removal of that command.
5002
ee34b3f9
YQ
50032014-05-28 Yao Qi <yao@codesourcery.com>
5004
5005 * charset.c: Fix typo in comments.
5006
add6c04d
GB
50072014-05-27 Gary Benson <gbenson@redhat.com>
5008
5009 * utils.c (internal_vproblem): Prompt for a bug report.
5010
92c48fc5
AW
50112014-05-26 Andy Wingo <wingo@igalia.com>
5012
5013 * guile/scm-arch.c (arscm_mark_arch_smob):
5014 * guile/scm-block.c (bkscm_mark_block_smob)
5015 (bkscm_mark_block_syms_progress_smob):
5016 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5017 * guile/scm-exception.c (exscm_mark_exception_smob):
5018 * guile/scm-frame.c (frscm_mark_frame_smob):
5019 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5020 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5021 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5022 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5023 (ppscm_mark_pretty_printer_worker_smob):
5024 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5025 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5026 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5027 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5028 mark functions.
5029 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5030 function.
5031
b2715b27
AW
50322014-05-26 Andy Wingo <wingo@igalia.com>
5033 Doug Evans <xdje42@gmail.com>
5034
5035 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5036 empty_base_class. All uses updated.
5037 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5038 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5039 Adapt all callers.
5040 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5041 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5042 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5043 (gdbscm_gsmob_has_property_p, add_property_name)
5044 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5045 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5046 (gdb-object-has-property?, gdb-object-properties): Remove.
5047 (gdb-object-kind): Renamed from gsmob-kind.
5048
214ab2da
AW
50492014-05-26 Andy Wingo <wingo@igalia.com>
5050
5051 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5052 * configure: Regenerate.
5053
589fdceb
MM
50542014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5055
5056 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5057
67b5c0c1
MM
50582014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5059
5060 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5061 (replay_memory_access_read_only, replay_memory_access_read_write)
5062 (replay_memory_access_types, replay_memory_access)
5063 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5064 (cmd_set_record_btrace, cmd_show_record_btrace)
5065 (cmd_show_replay_memory_access): New.
5066 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5067 (record_btrace_remove_breakpoint): Replace
5068 record_btrace_allow_memory_access with replay_memory_access.
5069 (_initialize_record_btrace): Add commands.
5070 * NEWS: Announce it.
5071
036cd381
RR
50722014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5073
5074 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5075
c77c1e42
RR
50762014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5077
5078 * MAINTAINERS (Write After Approval): Move self back from
5079 paper trail.
5080
45741a9c
PA
50812014-05-22 Pedro Alves <palves@redhat.com>
5082
5083 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5084 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5085 (disable_randomization, enum exec_direction_kind)
5086 (execution_direction, stop_registers, start_remote)
5087 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5088 (wait_for_inferior, normal_stop, get_last_target_status)
5089 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5090 (insert_step_resume_breakpoint_at_sal)
5091 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5092 (set_step_info, print_stop_event, signal_stop_state)
5093 (signal_print_state, signal_pass_state, signal_stop_update)
5094 (signal_print_update, signal_pass_update)
5095 (update_signals_program_target, clear_exit_convenience_vars)
5096 (displaced_step_dump_bytes, update_observer_mode)
5097 (signal_catch_update, gdb_signal_from_command): Move
5098 declarations ...
5099 * infrun.h: ... to this new file.
5100 * amd64-tdep.c: Include infrun.h.
5101 * annotate.c: Include infrun.h.
5102 * arch-utils.c: Include infrun.h.
5103 * arm-linux-tdep.c: Include infrun.h.
5104 * arm-tdep.c: Include infrun.h.
5105 * break-catch-sig.c: Include infrun.h.
5106 * breakpoint.c: Include infrun.h.
5107 * common/agent.c: Include infrun.h instead of inferior.h.
5108 * corelow.c: Include infrun.h.
5109 * event-top.c: Include infrun.h.
5110 * go32-nat.c: Include infrun.h.
5111 * i386-tdep.c: Include infrun.h.
5112 * inf-loop.c: Include infrun.h.
5113 * infcall.c: Include infrun.h.
5114 * infcmd.c: Include infrun.h.
5115 * infrun.c: Include infrun.h.
5116 * linux-fork.c: Include infrun.h.
5117 * linux-nat.c: Include infrun.h.
5118 * linux-thread-db.c: Include infrun.h.
5119 * monitor.c: Include infrun.h.
5120 * nto-tdep.c: Include infrun.h.
5121 * procfs.c: Include infrun.h.
5122 * record-btrace.c: Include infrun.h.
5123 * record-full.c: Include infrun.h.
5124 * remote-m32r-sdi.c: Include infrun.h.
5125 * remote-mips.c: Include infrun.h.
5126 * remote-notif.c: Include infrun.h.
5127 * remote-sim.c: Include infrun.h.
5128 * remote.c: Include infrun.h.
5129 * reverse.c: Include infrun.h.
5130 * rs6000-tdep.c: Include infrun.h.
5131 * s390-linux-tdep.c: Include infrun.h.
5132 * solib-irix.c: Include infrun.h.
5133 * solib-osf.c: Include infrun.h.
5134 * solib-svr4.c: Include infrun.h.
5135 * target.c: Include infrun.h.
5136 * top.c: Include infrun.h.
5137 * windows-nat.c: Include infrun.h.
5138 * mi/mi-interp.c: Include infrun.h.
5139 * mi/mi-main.c: Include infrun.h.
5140 * python/py-threadevent.c: Include infrun.h.
5141
98eb56a4
PA
51422014-05-22 Pedro Alves <palves@redhat.com>
5143
5144 * infrun.c (handle_inferior_event): Store the exit code for
5145 --return-child-result here, instead of ...
5146 (print_exited_reason): ... here.
5147
17b2616c
PA
51482014-05-21 Pedro Alves <palves@redhat.com>
5149
5150 PR gdb/13860
5151 * gdbthread.h (struct thread_control_state): New field
5152 `command_interp'.
5153 * infrun.c (follow_fork): Copy the new thread control field to the
5154 child fork thread.
5155 (clear_proceed_status_thread): Clear the new thread control field.
5156 (proceed): Set the new thread control field.
5157 * interps.h (command_interp): Declare.
5158 * interps.c (command_interpreter): New global.
5159 (command_interp): New function.
5160 (interp_exec): Set `command_interpreter' while here.
5161 * cli-out.c (cli_uiout_dtor): New function.
5162 (cli_ui_out_impl): Install it.
5163 * mi/mi-interp.c: Include cli-out.h.
5164 (mi_cmd_interpreter_exec): Add comment.
5165 (restore_current_uiout_cleanup): New function.
5166 (ui_out_free_cleanup): New function.
5167 (mi_on_normal_stop): If finishing an execution command started by
5168 a CLI command, or any kind of breakpoint-like event triggered,
5169 print the stop event to the output (CLI) stream.
5170 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5171
5166082f
PA
51722014-05-21 Pedro Alves <palves@redhat.com>
5173
5174 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5175 current source line having changed.
5176 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5177 * infrun.c (normal_stop): Adjust call to
5178 set_current_sal_from_frame.
5179 * source.c (clear_lines_listed_range): New function.
5180 (set_current_source_symtab_and_line, identify_source_line): Clear
5181 the lines listed range.
5182 (line_info): Handle the first "info line" after the current source
5183 line having changed.
5184 * stack.c (print_stack_frame): Remove center handling.
5185 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5186 center sal.line.
5187
c1ee2fb3
PA
51882014-05-21 Pedro Alves <palves@redhat.com>
5189
5190 * inf-child.c (inf_child_mourn_inferior): New function.
5191 * inf-child.h (inf_child_mourn_inferior): New declaration.
5192 * darwin-nat.c (darwin_mourn_inferior): Use
5193 inf_child_mourn_inferior.
5194 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5195 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5196 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5197 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5198 * windows-nat.c (windows_mourn_inferior): Likewise.
5199
5c6d4fb2
DE
52002014-05-21 Doug Evans <xdje42@gmail.com>
5201
250748cb 5202 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 5203
4a2722c5
DE
52042014-05-21 Doug Evans <xdje42@gmail.com>
5205
17292b30 5206 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
5207 (gdbscm_out_of_range_error): Ditto.
5208 (gdbscm_memory_error): Ditto.
250748cb
DE
5209 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5210 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
5211 (gdbscm_out_of_range_error): Update.
5212 (gdbscm_memory_error): Update.
5213 (gdbscm_scm_to_target_string_unsafe): Delete.
5214
6a3cb8e8
PA
52152014-05-21 Pedro Alves <palves@redhat.com>
5216
5217 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5218 globals.
5219 (inf_child_open_target): New function.
5220 (inf_child_open): Use inf_child_open_target to push the target
5221 instead of erroring out.
5222 (inf_child_disconnect, inf_child_close)
5223 (inf_child_maybe_unpush_target): New functions.
5224 (inf_child_target): Install inf_child_disconnect and
5225 inf_child_close. Store a pointer to the returned object.
5226 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5227 declarations.
5228 * target.c (auto_connect_native_target): New global.
5229 (show_default_run_target): New function.
5230 (find_default_run_target): Return NULL if automatically connecting
5231 to the native target is disabled.
5232 (_initialize_target): Install set/show auto-connect-native-target.
5233 * NEWS: Mention "set auto-connect-native-target", and "target
5234 native".
5235 * linux-nat.c (super_close): New global.
5236 (linux_nat_close): Call super_close.
5237 (linux_nat_add_target): Store a pointer to the base class's
5238 to_close method.
5239 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5240 inf_child_maybe_unpush.
5241 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5242 already pushed.
5243 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5244 the inferior. Use inf_child_maybe_unpush_target.
5245 (inf_ttrace_attach): Don't push the target if it is already
5246 pushed.
5247 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5248 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5249 after mourning the inferior. Use inf_child_maybe_unpush_target.
5250 (darwin_attach_pid): Don't push the target if it is already
5251 pushed.
5252 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5253 mourning the inferior. Use inf_child_maybe_unpush_target.
5254 (gnu_detach): Use inf_child_maybe_unpush_target.
5255 * go32-nat.c (go32_create_inferior): Don't push the target if it
5256 is already pushed.
5257 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5258 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5259 (procfs_open): Rename to ...
5260 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5261 comments. Can target_preopen before changing node. Call
5262 inf_child_open_target to push the target explicitly.
5263 (procfs_attach): Don't push the target if it is already pushed.
5264 (procfs_detach): Use inf_child_maybe_unpush_target.
5265 (procfs_create_inferior): Don't push the target if it is already
5266 pushed.
5267 (nto_native_ops): New global.
5268 (procfs_open): Reimplement.
5269 (procfs_native_open): New function.
5270 (init_procfs_targets): Install procfs_native_open as to_open of
5271 "target native". Store a pointer to the "native" target in
5272 nto_native_ops.
5273 * procfs.c (procfs_attach): Don't push the target if it is already
5274 pushed.
5275 (procfs_detach): Use inf_child_maybe_unpush_target.
5276 (procfs_mourn_inferior): Only unpush the target after mourning the
5277 inferior. Use inf_child_maybe_unpush_target.
5278 (procfs_init_inferior): Don't push the target if it is already
5279 pushed.
5280 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5281 if it is already pushed.
5282
930ee1b1
PA
52832014-05-21 Pedro Alves <palves@redhat.com>
5284
5285 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5286 and "procfs" targets are now called "native" instead.
5287
1f5d1b13
PA
52882014-05-21 Pedro Alves <palves@redhat.com>
5289
5290 * go32-nat.c (go32_open): Delete.
5291 (go32_target): Don't override the to_open method.
5292
132f8e03
PA
52932014-05-21 Pedro Alves <palves@redhat.com>
5294
5295 * nto-procfs.c (procfs_can_run): New function.
5296 (nto_procfs_ops): New global.
5297 (init_procfs_targets): New, based on procfs_target. Install
5298 "target native" in addition to "target procfs".
5299 (_initialize_procfs): Call init_procfs_targets instead of adding
5300 the target here.
5301
03c136c3
PA
53022014-05-21 Pedro Alves <palves@redhat.com>
5303
5304 * windows-nat.c (windows_target): Don't override to_shortname,
5305 to_longname or to_doc.
5306
a635d0f3
PA
53072014-05-21 Pedro Alves <palves@redhat.com>
5308
5309 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5310 to_doc.
5311
4f9b5133
PA
53122014-05-21 Pedro Alves <palves@redhat.com>
5313
5314 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5315 to_shortname, to_longname or to_doc.
5316
bc85afde
PA
53172014-05-21 Pedro Alves <palves@redhat.com>
5318
5319 * go32-nat.c (go32_target): Don't override to_shortname,
5320 to_longname or to_doc.
5321
4ebfc96e
PA
53222014-05-21 Pedro Alves <palves@redhat.com>
5323
5324 * inf-child.c (inf_child_open): Remove mention of "child".
5325 (inf_child_target): Rename target to "native" instead of "child".
5326
2648dfed
AA
53272014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5328
5329 * Makefile.in (SFILES): Delete "regset.c".
5330 (COMMON_OBS): Delete "regset.o".
5331 * regset.c: Remove.
5332 * regset.h (regset_alloc): Delete prototype.
5333
b13feb94
AA
53342014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5335
5336 * sparc-linux-tdep.c (sparc32_linux_gregset)
5337 (sparc32_linux_fpregset): New static regset structures.
5338 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5339 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5340 'fpregset' fields.
5341 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5342 (sparc64_linux_fpregset): New static regset structures.
5343 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5344 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5345 New static regset structures.
5346 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5347 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5348 New static regset structures.
5349 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5350 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5351 New static regset structures.
5352 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5353 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5354 New static regset structures.
5355 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5356
b4fd25c9
AA
53572014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5358
5359 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5360 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5361 register maps ("regmaps") from "*regset" to "*regmap". Do this
5362 for all regmap types and variables.
5363 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5364 (sparc32_linux_supply_core_gregset)
5365 (sparc32_linux_collect_core_gregset)
5366 (sparc32_linux_supply_core_fpregset)
5367 (sparc32_linux_collect_core_fpregset): Likewise.
5368 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5369 (sparc_gregmap, sparc_fpregmap): ... these.
5370 (sparc_supply_gregset, sparc_collect_gregset)
5371 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5372 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5373 (_initialize_sparc_nat): Rename regmaps.
5374 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5375 (sparc_gregmap, sparc_fpregmap): ... these.
5376 (sparc_supply_gregset, sparc_collect_gregset)
5377 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5378 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5379 Rename macros to...
5380 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5381 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5382 Likewise.
5383 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5384 Rename to...
5385 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5386 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5387 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5388 regmaps.
5389 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5390 (sparc32_bsd_fpregset): Rename to...
5391 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5392 (sparc32_bsd_fpregmap): ... these.
5393 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5394 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5395 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5396 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5397 (struct sparc_gregmap, struct sparc_fpregmap)
5398 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5399 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5400 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5401 (sparc32_supply_regset, sparc32_collect_gregset)
5402 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5403 prototypes.
5404 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5405 (sparc64_linux_ptrace_gregmap): ... this.
5406 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5407 (_initialize_sparc64_linux_nat): Rename regmaps.
5408 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5409 (sparc64_linux_core_gregmap): ... this.
5410 (sparc64_linux_supply_core_gregset)
5411 (sparc64_linux_collect_core_gregset)
5412 (sparc64_linux_supply_core_fpregset)
5413 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5414 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5415 (sparc64_sol2_fpregset): Rename to...
5416 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5417 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5418 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5419 regmaps.
5420 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5421 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5422 (sparc64_bsd_fpregset): Rename to...
5423 (struct sparc_gregmap, sparc64_sol2_gregmap)
5424 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5425 (sparc64_bsd_fpregmap): ... these.
5426 (sparc64_supply_gregset, sparc64_collect_gregset)
5427 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5428 prototypes.
5429 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5430 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5431 (sparc64fbsd_gregmap): ... this.
5432 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5433 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5434 Rename regmaps.
5435 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5436 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5437 (sparc64nbsd_collect_fpregset): Likewise.
5438 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5439 (sparc64nbsd_gregmap): ... this.
5440 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5441 regmaps.
5442 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5443 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5444 (sparc64obsd_gregmap): ... this.
5445 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5446 regmaps.
5447 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5448 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5449 (sparc32nbsd_gregmap): ... this.
5450 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5451 regmaps.
5452
8fea3224
AA
54532014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5454
5455 * score-tdep.c (score7_linux_gregset): New static regset
5456 structure.
5457 (score7_linux_regset_from_core_section): Remove dynamic regset
5458 allocation.
5459 (score_gdbarch_init): Drop allocation of tdep structure.
5460 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5461
24534243
AA
54622014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5463
5464 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5465 regset structures.
5466 (am33_regset_from_core_section): Remove dynamic regset
5467 allocations.
5468
b7195f27
AA
54692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5470
5471 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5472 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5473 structures.
5474 (mips_linux_regset_from_core_section): Remove dynamic regset
5475 allocations.
5476 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5477 'gregset64', 'fpregset', and 'fpregset64'.
5478 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5479 deleted tdep fields.
5480
ecc37a5a
AA
54812014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5482
5483 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5484 regset structures.
5485 (amd64_regset_from_core_section): Remove dynamic regset
5486 allocations.
5487 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5488 structure.
5489 (amd64obsd_regset_from_core_section): Remove dynamic regset
5490 allocation.
5491 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5492 Likewise.
5493 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5494 x86-common regset supply function.
5495 * i386-tdep.c (i386_collect_gregset): Make static.
5496 (i386_gregset): New global regset structure.
5497 (i386_fpregset, i386_xstateregset): New static regset structures.
5498 (i386_regset_from_core_section): Remove dynamic regset
5499 allocations.
5500 (i386_gdbarch_init): Remove initialization of tdep fields
5501 'gregset', 'fpregset', and 'xstateregset'.
5502 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5503 'fpregset', and 'xstateregset'.
5504 (i386_collect_gregset): Remove prototype.
5505 (i386_gregset): New declaration.
5506 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5507 structure.
5508 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5509 allocation.
5510
b7611c43
AA
55112014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5512
5513 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5514 (arm_linux_vfpregset): New static regset structures.
5515 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5516 regset structures.
5517 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5518 and 'vfpregset' fields.
5519
a069a2bd
AA
55202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5521
5522 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5523 (aarch64_linux_fpregset): New static regset structures.
5524 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5525 of regset structures.
5526 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5527 'fpregset' fields.
5528
09424cff
AA
55292014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5530
5531 * regset.h (struct regset): Remove gdbarch field.
5532 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5533 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5534 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5535 Likewise.
5536 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5537 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5538 (ppc32_linux_vsxregset): Likewise.
5539 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5540 via the regcache instead of the regset.
5541 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5542 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5543 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5544 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5545 Likewise.
5546
3ca7dae4
AA
55472014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5548
5549 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5550 Constify structures.
5551 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5552 (alphanbsd_aout_gregset): Likewise.
5553 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5554 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5555 Likewise.
5556 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5557 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5558 Likewise.
5559 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5560 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5561 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5562 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5563 * m88k-tdep.c (m88k_gregset): Likewise.
5564 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5565 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5566 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5567 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5568 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5569 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5570 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5571 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5572 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5573 Likewise.
5574 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5575 * sh-tdep.h (sh_corefile_gregset): Likewise.
5576 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5577 * vax-tdep.c (vax_gregset): Likewise.
5578
5876f503
JK
55792014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5580
5581 Fix TLS access for -static -pthread.
5582 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5583 (try_thread_db_load_1): Initialize it.
5584 (thread_db_get_thread_local_address): Call it if LM is zero.
5585 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5586 * target.h (struct target_ops) (to_get_thread_local_address): Add
5587 load_module_addr comment.
5588
0256a6ac
PA
55892014-05-21 Pedro Alves <palves@redhat.com>
5590
5591 * dcache.c (dcache_read_memory_partial): If reading the cache line
5592 fails, fallback to reading just the memory the caller wanted.
5593
227533ac
DE
55942014-05-20 Doug Evans <dje@google.com>
5595
5596 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5597 instead of get_current_arch.
5598
936d2992
PA
55992014-05-20 Pedro Alves <palves@redhat.com>
5600
5601 * NEWS: Mention that compare-sections now works with all targets.
5602
5603 * remote.c (PACKET_qCRC): New enum value.
5604 (remote_verify_memory): Don't send qCRC if the target has no
5605 execution. Use packet_support/packet_ok. If the target doesn't
5606 support the qCRC packet, fallback to a deep memory copy.
5607 (compare_sections_command): Say "target image" instead of "remote
5608 executable".
5609 (_initialize_remote): Add PACKET_qCRC to the list of config
5610 packets that have no associated command. Extend comment.
5611 * target.c (simple_verify_memory, default_verify_memory): New
5612 function.
5613 * target.h (struct target_ops) <to_verify_memory>: Default to
5614 default_verify_memory.
5615 (simple_verify_memory): New declaration.
5616 * target-delegates.c: Regenerate.
5617
e59fa00f
MM
56182014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5619
5620 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5621
f2205de0
HZ
56222014-05-20 Hui Zhu <hui@codesourcery.com>
5623 Yao Qi <yao@codesourcery.com>
5624
5625 PR backtrace/16558
5626 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5627 and change address of sp and pc.
5628
c4e54771
TT
56292014-05-19 Tom Tromey <tromey@redhat.com>
5630
5631 * gdbtypes.c (rank_function): Use XNEWVEC.
5632 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5633
73051182
DE
56342014-05-19 Doug Evans <dje@google.com>
5635
5636 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5637 build_type_unit_groups and moved closer to only caller. Remove
5638 arguments. All references updated. Remove outdated .gdb_index
5639 comment.
5640 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5641 build_type_psymtabs_1.
5642
8832e7e3
DE
56432014-05-19 Doug Evans <dje@google.com>
5644
5645 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5646 n_type_unit_groups, all_type_unit_groups. All uses removed.
5647 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5648 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5649 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5650 (add_type_unit_group_to_table): Delete.
5651
cd8ae15e
DE
56522014-05-19 Doug Evans <dje@google.com>
5653
5654 * eval.c (evaluate_subexp_standard): Add some comments.
5655
08f4850b
DE
56562014-05-17 Doug Evans <xdje42@gmail.com>
5657
5658 * progspace.c (remove_program_space): Delete, unused.
5659 * progspace.h (remove_program_space): Ditto.
5660
bed8455c
DE
56612014-05-17 Doug Evans <xdje42@gmail.com>
5662
5663 * inferior.c (prune_inferiors): Fix comment.
5664 (remove_inferior_command): Call prune_program_spaces.
5665
8d551b02
DE
56662014-05-16 Doug Evans <dje@google.com>
5667
5668 New command line option -D.
5669 * NEWS: Mention it.
5670 * main.c (set_gdb_data_directory): New function.
5671 (captured_main): Recognize -D. Flag error for --data-directory "".
5672 Call set_gdb_data_directory.
5673 (print_gdb_help): Print --data-directory, -D.
5674 * main.h (set_gdb_data_directory): Declare.
5675 * top.c (staged_gdb_datadir): New static global.
5676 (set_gdb_datadir): Call set_gdb_data_directory
5677 (show_gdb_datadir): New function.
5678 (init_main): Update init of data-directory parameter.
5679
18848e28
GF
56802014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5681
5682 Import the "dirfd" gnulib module.
5683 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5684 * gnulib/aclocal.m4: Update.
5685 * gnulib/config.in: Update.
5686 * gnulib/configure: Update.
5687 * gnulib/import/Makefile.am: Update.
5688 * gnulib/import/Makefile.in: Update.
5689 * gnulib/import/dirfd.c: New.
5690 * gnulib/import/m4/dirfd.m4: New.
5691 * gnulib/import/m4/gnulib-cache.m4: Update.
5692 * gnulib/import/m4/gnulib-comp.m4: Update.
5693
95c64f92
YQ
56942014-05-16 Pierre Muller <muller@sourceware.org>
5695 Yao Qi <yao@codesourcery.com>
5696
5697 * valprint.c (print_wchar): Move the code on checking whether
5698 W is a printable wide char to the default branch of switch
5699 statement below. Call wchar_printable instead of gdb_iswprint.
5700
cac395ea
TM
57012014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5702
19679eca 5703 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5704 ldr.w and ldrd instructions.
5705
83655187
DE
57062014-05-15 Doug Evans <dje@google.com>
5707
5708 * dwarf2read.c (read_structure_type): Delete outdated comments.
5709
dd756689
TT
57102014-05-14 Tom Tromey <tromey@redhat.com>
5711
5712 * macrocmd.c (print_macro_definition): Reindent.
5713
75ddda77
DE
57142014-05-13 Doug Evans <xdje42@gmail.com>
5715
5716 * python/py-cmd.c (cmdpy_completer): Add comment.
5717 (completers): Make const.
5718
b0f16a3e
SM
57192014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5720
5721 * infrun.c (resume): Remove should_resume (unused). Move up
5722 declaration of resume_ptid.
5723
033c3379
TT
57242014-05-13 Tom Tromey <tromey@redhat.com>
5725
5726 * language.h (unop_type_check): Remove.
5727 (binop_type_check): Don't declare.
5728
9b44a3a5
AA
57292014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5730
5731 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5732 call to regcache_raw_collect.
5733
303a33fa
SM
57342014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5735
5736 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5737 mi_console->quote as the quoting character.
5738
196100a0
SM
57392014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5740
5741 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5742
f989a1c8
TT
57432014-04-29 Tom Tromey <tromey@redhat.com>
5744
5745 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5746 "show debug varobj".
5747
9404b58f
KM
57482014-05-07 Kyle McMartin <kyle@redhat.com>
5749
5750 Pushed by Joel Brobecker <brobecker@adacore.com>.
5751 * aarch64-tdep.c (aarch64_software_single_step): New function.
5752 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5753 with aarch64_software_single_step.
5754
5e49ba57
JB
57552014-05-05 Joel Brobecker <brobecker@adacore.com>
5756
5757 GDB 7.7.1 released.
5758
c888a17d
KS
57592014-05-05 Keith Seitz <keiths@redhat.com>
5760
5761 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5762 variable or history value is successfully parsed.
5763
290a839c
YQ
57642014-05-05 Yao Qi <yao@codesourcery.com>
5765 Pedro Alves <palves@redhat.com>
5766
5767 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5768 address of blocks that intersects the requested range. Trim
5769 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5770 sections.
5771 * ctf.c (ctf_xfer_partial): Likewise.
5772
91256dc2
YQ
57732014-05-05 Yao Qi <yao@codesourcery.com>
5774
5775 * printcmd.c (display_command): Remove the check to
5776 target_has_execution.
5777
07284463
MK
57782014-05-03 Mark Kettenis <kettenis@gnu.org>
5779
5780 * ppcobsd-nat.c: Include "obsd-nat.h".
5781 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5782 add_target.
5783 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5784
30a1e6cc
SDJ
57852014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5786
5787 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5788 and 16-bit signed and unsigned arguments. Update comment.
5789 (stap_parse_probe_arguments): Extend code to handle such
5790 arguments. Use warning instead of complaint to notify about
5791 unrecognized bitness.
5792
f33da99a
SDJ
57932014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5794
5795 PR breakpoints/16889
5796 * stap-probe.c (stap_parse_probe_arguments): Simplify
5797 check for non-prefixed probes (i.e., probes whose
5798 arguments do not start with "N@"). Always set the
5799 argument type to a sane value.
5800
95cf3b38
DT
58012014-05-01 David Taylor <dtaylor@emc.com>
5802
5803 * remote.c (compare_sections_command): Add -r option to compare
5804 all loadable read-only sections.
5805
1cfdf534
SC
58062014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5807
5808 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5809 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5810 Update all callers.
5811 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5812 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5813 Remove unused CORE_ADDR argument. Update all callers.
5814
ca4f7f8b
PA
58152014-04-29 Pedro Alves <palves@redhat.com>
5816
5817 * remote.c (struct packet_config) <detect>: Extend comment.
5818 (add_packet_config_cmd): Don't set the config's detect or support
5819 fields here.
5820 (init_all_packet_configs): Also initialize the config's 'detect'
5821 field.
5822 (reset_all_packet_configs_support): New function.
5823 (remote_open_1): Call reset_all_packet_configs_support instead of
5824 init_all_packet_configs.
5825 (_initialize_remote): Initialize all packet configs. Assert that
5826 all packets have an associated command, except a few known
5827 outliers.
5828
11c1ba78
JB
58292014-04-28 Joel Brobecker <brobecker@adacore.com>
5830
5831 * dwarf2read.c (read_subrange_type): Handle dynamic
5832 DW_AT_lower_bound attributes.
5833
8739bc53
JB
58342014-04-28 Joel Brobecker <brobecker@adacore.com>
5835
5836 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5837 dynamic bounds before computing its upper bound.
5838 (ada_discrete_type_low_bound): Same as above with the lower bound.
5839
6f8a3220
JB
58402014-04-28 Joel Brobecker <brobecker@adacore.com>
5841
5842 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5843 range types. Adjust the array handling implementation to
5844 take advantage of this change.
5845 (resolve_dynamic_range): New function, mostly extracted from
5846 resolve_dynamic_bounds.
5847 (resolve_dynamic_array): New function, mostly extracted from
5848 resolve_dynamic_bounds.
5849 (resolve_dynamic_bounds): Delete.
5850 (resolve_dynamic_type): Reimplement. Add handling of
5851 TYPE_CODE_RANGE types.
5852
4d072ce4
JB
58532014-04-28 Joel Brobecker <brobecker@adacore.com>
5854
5855 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5856 handling of parallel ___XA types.
5857
52865325
JB
58582014-04-28 Joel Brobecker <brobecker@adacore.com>
5859
5860 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5861 unnecessary second call to static_unwrap_type.
5862
433e77fa
HZ
58632014-04-27 Hui Zhu <hui@codesourcery.com>
5864
5865 * stack.c (print_frame_info): Call do_gdb_disassembly with
5866 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5867
b51a69ee
DE
58682014-04-26 Doug Evans <xdje42@gmail.com>
5869
5870 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5871
7ae1a6a6
PA
58722014-04-25 Pedro Alves <palves@redhat.com>
5873
5874 PR server/16255
5875 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5876 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5877 and newline from built string.
5878 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5879 (linux_ptrace_attach_fail_reason): ... this.
5880 * linux-nat.c (linux_nat_attach): Adjust to use
5881 linux_ptrace_attach_fail_reason.
5882
4082afcc
PA
58832014-04-25 Pedro Alves <palves@redhat.com>
5884
5885 * remote.c (struct remote_state): Remove multi_process_aware,
5886 non_stop_aware, cond_tracepoints, cond_breakpoints,
5887 breakpoint_commands, fast_tracepoints, static_tracepoints,
5888 install_in_trace, disconnected_tracing,
5889 enable_disable_tracepoints, string_tracing, and
5890 augmented_libraries_svr4_read fields.
5891 (remote_multi_process_p): Move further below in the file.
5892 (struct packet_config): Add comments.
5893 (update_packet_config): Delete function.
5894 (show_packet_config_cmd): Use packet_config_support.
5895 (add_packet_config_cmd): Use NULL as set callback.
5896 (packet_ok): "set remote foo-packet"-style commands no longer
5897 change config->supported -- adjust.
5898 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5899 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5900 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5901 (PACKET_QNonStop, PACKET_multiprocess_feature)
5902 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5903 (PACKET_DisconnectedTracing_feature)
5904 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5905 (set_remote_protocol_packet_cmd): Delete function.
5906 (packet_config_support, packet_support): New functions.
5907 (set_remote_protocol_Z_packet_cmd): Don't call
5908 update_packet_config.
5909 (remote_query_attached, remote_pass_signals)
5910 (remote_program_signals, remote_threads_info)
5911 (remote_threads_extra_info, remote_start_remote): Use
5912 packet_support.
5913 (remote_start_remote): Use packet_config_support and
5914 packet_support.
5915 (init_all_packet_configs): Set all packets to unknown support,
5916 instead of calling update_packet_config.
5917 (remote_check_symbols): Use packet_support.
5918 (remote_supported_packet): Unconditionally set the packet config's
5919 support status.
5920 (remote_multi_process_feature, remote_non_stop_feature)
5921 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5922 (remote_breakpoint_commands_feature)
5923 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5924 (remote_install_in_trace_feature)
5925 (remote_disconnected_tracing_feature)
5926 (remote_enable_disable_tracepoint_feature)
5927 (remote_string_tracing_feature)
5928 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5929 (remote_protocol_features): Adjust to use remote_supported_packet
5930 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5931 "ConditionalTracepoints", "ConditionalBreakpoints",
5932 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5933 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5934 "EnableDisableTracepoints", and "tracenz".
5935 (remote_query_supported): Use packet_support.
5936 (remote_open_1): Adjust.
5937 (extended_remote_attach_1): Use packet_support. Switch on the
5938 result of packet_ok instead of checking whether the packet ended
5939 up disabled.
5940 (remote_vcont_resume): Use packet_support.
5941 (remote_resume, remote_stop_ns, fetch_register_using_p)
5942 (remote_prepare_to_store, store_register_using_P)
5943 (check_binary_download, remote_write_bytes): Use packet_support.
5944 (remote_vkill): Use packet_support. Switch on the result of
5945 packet_ok instead of checking whether the packet ended up
5946 disabled.
5947 (extended_remote_supports_disable_randomization): Use
5948 packet_support.
5949 (extended_remote_run): Switch on the result of packet_ok instead
5950 of checking whether the packet ended up disabled.
5951 (remote_insert_breakpoint, remote_remove_breakpoint)
5952 (remote_insert_watchpoint, remote_remove_watchpoint)
5953 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5954 packet_support.
5955 (remote_search_memory): Use packet_config_support.
5956 (remote_get_thread_local_address, remote_get_tib_address)
5957 (remote_hostio_send_command, remote_can_execute_reverse): Use
5958 packet_support.
5959 (remote_supports_cond_tracepoints)
5960 (remote_supports_cond_breakpoints)
5961 (remote_supports_fast_tracepoints)
5962 (remote_supports_static_tracepoints)
5963 (remote_supports_install_in_trace)
5964 (remote_supports_enable_disable_tracepoint)
5965 (remote_supports_string_tracing)
5966 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5967 the packet config says the feature is enabled or disabled.
5968 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5969 (remote_get_trace_status): Use packet_support.
5970 (remote_set_disconnected_tracing): Adjust to check whether the
5971 feature is enabled with packet_support.
5972 (remote_set_trace_buffer_size, remote_use_agent)
5973 (remote_can_use_agent, remote_supports_btrace): Use
5974 packet_support.
5975 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5976 Use packet_config_support.
5977 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5978 the packet config says the feature is enabled or disabled.
5979 (set_range_stepping): Use packet_support.
5980
bdb52a22
TT
59812014-04-25 Tom Tromey <tromey@redhat.com>
5982
5983 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5984 argument.
5985
e9475ead
SA
59862014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5987
5988 * NEWS: Mention support for C99 variable length arrays.
5989
82eacd52
JB
59902014-04-24 Joel Brobecker <brobecker@adacore.com>
5991
5992 * ada-lang.c (standard_exc): Expand introductory comment.
5993
01f9f808
MS
59942014-04-24 Michael Sturm <michael.sturm@mintel.com>
5995 Walfred Tedeschi <walfred.tedeschi@intel.com>
5996
5997 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5998 AVX512 registers.
5999 (amd64_linux_read_description): Add code to handle AVX512 xstate
6000 mask and return respective tdesc.
6001 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6002 and features/i386/x32-avx512-linux.c.
6003 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6004 (amd64_linux_core_read_description): Add code to handle AVX512
6005 xstate mask and return respective tdesc.
6006 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6007 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6008 calculation.
6009 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6010 (tdesc_amd64_avx512_linux): New prototype.
6011 (tdesc_x32_avx512_linux): Likewise.
6012 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6013 features/i386/x32-avx512.c.
6014 (amd64_ymm_avx512_names): New register names for pseudo
6015 registers YMM16-31.
6016 (amd64_ymmh_avx512_names): New register names for raw registers
6017 YMMH16-31.
6018 (amd64_k_names): New register names for K registers.
6019 (amd64_zmmh_names): New register names for ZMM raw registers.
6020 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6021 (amd64_xmm_avx512_names): New register names for XMM16-31
6022 registers.
6023 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6024 registers.
6025 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6026 if feature is present.
6027 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6028 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6029 (AMD64_NUM_REGS): Adjust to new number of registers.
6030 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6031 registers supplied via XSTATE by AVX512 registers.
6032 (i386_linux_read_description): Add case for AVX512.
6033 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6034 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6035 (i386_linux_core_read_description): Add case for AVX512.
6036 (i386_linux_init_abi): Install supported register note section
6037 for AVX512.
6038 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6039 AVX512.
6040 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6041 registers to be number of zmm7h + 1.
6042 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6043 * i386-tdep.c: Include features/i386/i386-avx512.c.
6044 (i386_zmm_names): Add ZMM pseudo register names array.
6045 (i386_zmmh_names): Add ZMM raw register names array.
6046 (i386_k_names): Add K raw register names array.
6047 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6048 registers. AVX512 has 16 more ZMM registers than there are YMM
6049 registers.
6050 (i386_zmmh_regnum_p): Add function to look up register number of
6051 ZMM raw registers.
6052 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6053 (i386_k_regnum_p): Likewise for K raw registers.
6054 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6055 registers added by AVX512.
6056 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6057 registers added by AVX512.
6058 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6059 added by AVX512.
6060 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6061 (i386_pseudo_register_name): Add ZMM pseudo registers.
6062 (i386_zmm_type): Construct and return vector registers type for ZMM
6063 registers.
6064 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6065 ZMM0-31 pseudo registers and K registers.
6066 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6067 and YMM16-31 registers from register cache.
6068 (i386_pseudo_register_write): Add code to write K, ZMM and
6069 YMM16-31 registers.
6070 (i386_register_reggroup_p): Add code to include/exclude AVX512
6071 registers in/from respective register groups.
6072 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6073 registers if feature is present in xcr0.
6074 (i386_gdbarch_init): Add code to initialize AVX512 feature
6075 variables in tdep structure, wire in pseudo registers and call
6076 initialize_tdesc_i386_avx512.
6077 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6078 variables.
6079 (i386_regnum): Add AVX512 registers.
6080 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6081 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6082 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6083 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6084 512 bits wide.
6085 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6086 (i386_ymm_avx512_regnum_p): Likewise.
6087 (i386_k_regnum_p): Likewise.
6088 (i386_zmm_regnum_p): Likewise.
6089 (i386_zmmh_regnum_p): Likewise.
6090 * i387-tdep.c : Update year in copyright notice.
6091 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6092 XSAVE buffer.
6093 (XSAVE_YMM_AVX512_ADDR): New macro.
6094 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6095 XSAVE buffer.
6096 (XSAVE_XMM_AVX512_ADDR): New macro.
6097 (xsave_avx512_k_offset): New table for K register offsets in
6098 XSAVE buffer.
6099 (XSAVE_AVX512_K_ADDR): New macro.
6100 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6101 in XSAVE buffer.
6102 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6103 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6104 buffer.
6105 (i387_collect_xsave): Add code to collect AVX512 registers from
6106 XSAVE buffer.
6107 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6108 of XMM16-31 registers.
6109 (I387_NUM_K_REGS): New define for number of K registers.
6110 (I387_K0_REGNUM): New define for K0 register number.
6111 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6112 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6113 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6114 registers.
6115 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6116 (I387_XMM16_REGNUM): New define for XMM16 register number.
6117 (I387_YMM0_REGNUM): New define for YMM0 register number.
6118 (I387_KEND_REGNUM): New define for last K register number.
6119 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6120 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6121 number.
6122 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6123 number.
6124 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6125 size.
6126 * features/Makefile: Add AVX512 related files.
6127 * features/i386/32bit-avx512.xml: New file.
6128 * features/i386/64bit-avx512.xml: Likewise.
6129 * features/i386/amd64-avx512-linux.c: Likewise.
6130 * features/i386/amd64-avx512-linux.xml: Likewise.
6131 * features/i386/amd64-avx512.c: Likewise.
6132 * features/i386/amd64-avx512.xml: Likewise.
6133 * features/i386/i386-avx512-linux.c: Likewise.
6134 * features/i386/i386-avx512-linux.xml: Likewise.
6135 * features/i386/i386-avx512.c: Likewise.
6136 * features/i386/i386-avx512.xml: Likewise.
6137 * features/i386/x32-avx512-linux.c: Likewise.
6138 * features/i386/x32-avx512-linux.xml: Likewise.
6139 * features/i386/x32-avx512.c: Likewise.
6140 * features/i386/x32-avx512.xml: Likewise.
6141 * regformats/i386/amd64-avx512-linux.dat: New file.
6142 * regformats/i386/amd64-avx512.dat: Likewise.
6143 * regformats/i386/i386-avx512-linux.dat: Likewise.
6144 * regformats/i386/i386-avx512.dat: Likewise.
6145 * regformats/i386/x32-avx512-linux.dat: Likewise.
6146 * regformats/i386/x32-avx512.dat: Likewise.
6147 * NEWS: Add note about new support for AVX512.
6148
6149
08351840
PA
61502014-04-23 Pedro Alves <palves@redhat.com>
6151
6152 * breakpoint.c (insert_bp_location): Tolerate errors if the
6153 breakpoint is set in a user-loaded objfile.
6154 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6155 location is marked shlib_disabled. If the breakpoint is set in a
6156 user-loaded objfile is a GDB-side memory breakpoint, validate it
6157 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6158 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6159 flag.
6160 * mem-break.c (memory_validate_breakpoint): New function.
6161 * objfiles.c (userloaded_objfile_contains_address_p): New
6162 function.
6163 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6164 * target.h (memory_validate_breakpoint): New declaration.
6165
076855f9
PA
61662014-04-23 Pedro Alves <palves@redhat.com>
6167
6168 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6169 the breakpoint is set in a shared library, only suppress
6170 errors for software breakpoints, not hardware breakpoints.
6171
483805cf
PA
61722014-04-22 Pedro Alves <palves@redhat.com>
6173
6174 * infrun.c (schedlock_applies): New function, factored out from
6175 find_thread_needs_step_over.
6176 (find_thread_needs_step_over): Use it.
6177 (switch_back_to_stepped_thread): Always clear trap_expected if the
6178 step over is finished. Return early if scheduler locking applies.
6179 Look for the stepping thread and a potential step-over thread with
6180 a single loop.
6181 (currently_stepping_or_nexting_callback): Delete.
6182
a75fef0e
NC
61832014-04-22 Nick Clifton <nickc@redhat.com>
6184
6185 * NEWS: Mention that ARM sim now supports tracing.
6186
48b6e87e
YQ
61872014-04-22 Yao Qi <yao@codesourcery.com>
6188
6189 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6190 to ...
6191 * tracefile.c (tracefile_fetch_registers): ... it. New
6192 function.
6193 * tracefile.h (tracefile_fetch_registers): Declare.
6194 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6195 tracefile_fetch_registers.
6196
17617f2d
EZ
61972014-04-19 Eli Zaretskii <eliz@gnu.org>
6198
6199 PR gdb/14018
6200 * windows-nat.c (thread_rec): Don't display a warning when
6201 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6202 fails for any reason, set th->suspended to -1, so that we don't
6203 try to resume such a thread. Also, don't return NULL in these
6204 cases, to avoid completely ruin the session due to "PC register is
6205 not available" error.
6206 (do_windows_fetch_inferior_registers): Check errors in
6207 GetThreadContext call.
6208 (windows_continue): Accept an additional argument KILLED; if not
6209 zero, ignore errors in the SetThreadContext call, since the
6210 inferior was killed and is shutting down.
6211 (windows_resume, get_windows_debug_event)
6212 (windows_create_inferior, windows_mourn_inferior)
6213 (windows_kill_inferior): All callers of windows_continue changed
6214 to adjust to its new calling sequence.
6215
5723a6fd
YQ
62162014-04-19 Yao Qi <yao@codesourcery.com>
6217
6218 * ctf.c (ctf_open): Call post_create_inferior.
6219
614d5099
YQ
62202014-04-19 Yao Qi <yao@codesourcery.com>
6221
6222 * ctf.c (handle_id): New static variable.
6223 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6224 value. Get the declaration of event "register" and get length
6225 of field "contents".
6226
dac3e710
YQ
62272014-04-19 Yao Qi <yao@codesourcery.com>
6228
6229 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6230
2bca57ba
SC
62312014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6232
6233 * valops.c (oload_method_static): Remove unnecessary argument
6234 METHOD. Update all callers.
6235
51d48146
PA
62362014-04-18 Pedro alves <palves@redhat.com>
6237 Tom Tromey <tromey@redhat.com>
6238
6239 PR backtrace/15558
6240 * frame.c (get_prev_frame_1): Rename to ...
6241 (get_prev_frame_always): ... this, and make extern. Adjust.
6242 (skip_artificial_frames): Use get_prev_frame_always.
6243 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6244 (get_frame_unwind_stop_reason): Adjust to rename.
6245 * frame.h (get_prev_frame_always): Declare.
6246 * inline-frame.c: Include frame.h.
6247 (inline_frame_this_id): Use get_prev_frame_always.
6248
1bdad2e0
TG
62492014-04-18 Tristan Gingold <gingold@adacore.com>
6250
6251 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6252 code by using bfd_mach_o_get_base_address.
6253
7ce16bd4
UW
62542014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6255
6256 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6257 (spu_ax_pseudo_register_collect): New function.
6258 (spu_ax_pseudo_register_push_stack): Likewise.
6259 (spu_dwarf_reg_to_regnum): Likewise.
6260 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6261
2ed3c037
UW
62622014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6263
6264 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6265 Replace FRAME argument with FRAME_ID.
6266 * gdbarch.c, gdbarch.h: Regenerate.
6267 * findvar.c (default_value_from_register): Add GDBARCH argument;
6268 replace FRAME by FRAME_ID. No longer call get_frame_id.
6269 (value_from_register): Update call to gdbarch_value_from_register.
6270 * value.h (default_value_from_register): Update prototype.
6271 * s390-linux-tdep.c (s390_value_from_register): Update interface
6272 and call to default_value_from_register.
6273 * spu-tdep.c (spu_value_from_register): Likewise.
6274
6275 * findvar.c (address_from_register): Remove TYPE argument.
6276 Do not call value_from_register; use gdbarch_value_from_register
6277 with null_frame_id instead.
6278 * value.h (address_from_register): Update prototype.
6279 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6280 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6281 address_from_register interface change.
6282
71e50e83
YQ
62832014-04-17 Yao Qi <yao@codesourcery.com>
6284
6285 * gdbtypes.h: Update comments to link to types and macros'
6286 definitions.
6287
7a23c549
SC
62882014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6289
6290 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6291
22869d73
KS
62922014-04-16 Keith Seitz <keiths@redhat.com>
6293
6294 PR gdb/15827
6295 * dwarf2read.c (skip_one_die): Check that all relative-offset
6296 sibling DIEs fall within range of the current reader's buffer.
6297 (read_partial_die): Likewise.
6298
c4f87ca6
KS
62992014-04-16 Keith Seitz <keiths@redhat.com>
6300
6301 PR c++/16597
6302 * cp-namespace.c (lookup_symbol_file): If the type name of
6303 `this' is NULL, return immediately.
6304
b50c8614
KS
63052014-04-14 Keith Seitz <keiths@redhat.com>
6306
6307 PR c++/16253
6308 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6309 from symbol_matches_domain in symtab.c. All local callers
6310 of symbol_matches_domain updated.
6311 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6312 search STRUCT_DOMAIN.
6313 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6314 independently. standard_lookup will do that automatically.
6315 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6316 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6317 (cp_lookup_symbol_in_namespace): Likewise.
6318 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6319 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6320 may return a STRUCT_DOMAIN match.
6321 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6322 * cp-support.c: Include language.h.
6323 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6324 VAR_DOMAIN.
6325 * psymtab.c (match_partial_symbol): Compare the requested
6326 domain with the symbol's domain directly.
6327 (lookup_partial_symbol): Likewise.
6328 * symtab.c (lookup_symbol_in_language): Explain when/why
6329 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6330 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6331 appropriate languages.
6332 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6333 and moved to ada-lang.c
6334 (lookup_block_symbol): Explain that this function only returns
6335 symbol matching the requested DOMAIN.
6336 Compare the requested domain with the symbol's domain directly.
6337 (iterate_over_symbols): Compare the requested domain with the
6338 symbol's domain directly.
6339 * symtab.h (symbol_matches_domain): Remove.
6340
3d567982
TT
63412014-04-14 Tom Tromey <tromey@redhat.com>
6342
6343 PR c++/15246:
6344 * c-exp.y (type_aggregate_p): New function.
6345 (qualified_name, classify_inner_name): Use it.
6346 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6347 and TYPE_TARGET_TYPE of an enum type.
6348 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6349 an enum type.
6350 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6351 handle TYPE_DECLARED_CLASS.
6352 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6353 types.
6354 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6355 * valops.c (enum_constant_from_type): New function.
6356 (value_aggregate_elt): Use it.
6357 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6358 TYPE_CODE_ENUM.
6359
c848d642
TT
63602014-04-14 Tom Tromey <tromey@redhat.com>
6361
6362 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6363 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6364 const.
6365 * value.h (value_aggregate_elt): Update.
6366
0626fc76
TT
63672014-04-14 Tom Tromey <tromey@redhat.com>
6368
6369 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6370
5ecaaa66
SA
63712014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6372
6373 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6374 (evaluate_subexp_standard): Pass noside argument.
6375 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6376 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6377 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6378 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6379 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6380
1612e0c0
SA
63812014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6382
6383 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6384 points to a constant blob.
6385
c451ebe5
SA
63862014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6387
6388 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6389 property and store it as the high bound and flag the range accordingly.
6390 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6391 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6392 * gdbtypes.h (enum range_flags): New enum.
6393 (struct range_bounds): Add flags member.
6394
1d42e4c4
SA
63952014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6396
6397 * c-typeprint.c (c_type_print_varspec_suffix): Added
6398 check for not yet resolved high bound. If unresolved, print
6399 "variable length" string to the console instead of random
6400 length.
6401
9f1f738a
SA
64022014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6403
6404 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6405 value.
6406 (ada_template_to_fixed_record_type_1): Likewise.
6407 (ada_to_fixed_type_1): Likewise.
6408 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6409 (cp_print_value): Likewise.
6410 * d-valprint.c (dynamic_array_type): Likewise.
6411 * findvar.c (address_of_variable): Likewise.
6412 * jv-valprint.c (java_value_print): Likewise.
6413 * valops.c (value_ind): Likewise.
6414 * value.c (coerce_ref): Likewise.
6415
3c8452d4
SA
64162014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6417
6418 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6419 value and retrieve the dynamic type size.
6420
4ad88275
SA
64212014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6422
6423 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6424 passed to sizeof is dynamic evaluate the argument to compute the length.
6425
80180f79
SA
64262014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6427 Joel Brobecker <brobecker@adacore.com>
6428
6429 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6430 (dwarf2_evaluate_property): New function.
6431 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6432 * dwarf2read.c (attr_to_dynamic_prop): New function.
6433 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6434 attribute.
6435 * gdbtypes.c: Include dwarf2loc.h.
6436 (is_dynamic_type): New function.
6437 (resolve_dynamic_type): New function.
6438 (resolve_dynamic_bounds): New function.
6439 (get_type_length): New function.
6440 (check_typedef): Use get_type_length to compute type length.
6441 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6442 (TYPE_LOW_BOUND_KIND): New macro.
6443 (is_dynamic_type): New function prototype.
6444 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6445 to resolve dynamic properties of the type. Update comment.
6446 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6447
a1556843
RH
64482014-04-14 Richard Henderson <rth@redhat.com>
6449
6450 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6451
0be03e84
DE
64522014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6453 Doug Evans <xdje42@gmail.com>
6454
6455 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6456 dereference TYPE_CODE_REF values.
6457
6b662e19
JB
64582014-04-11 Joel Brobecker <brobecker@adacore.com>
6459
6460 Revert the following changes due to regressions:
6461
6462 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6463 (dwarf2_evaluate_property): New function.
6464 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6465 * dwarf2read.c (attr_to_dynamic_prop): New function.
6466 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6467 attribute.
6468 * gdbtypes.c: Include dwarf2loc.h.
6469 (is_dynamic_type): New function.
6470 (resolve_dynamic_type): New function.
6471 (resolve_dynamic_bounds): New function.
6472 (get_type_length): New function.
6473 (check_typedef): Use get_type_length to compute type length.
6474 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6475 (TYPE_LOW_BOUND_KIND): New macro.
6476 (is_dynamic_type): New function prototype.
6477 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6478 to resolve dynamic properties of the type. Update comment.
6479 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6480
6481 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6482 passed to sizeof is dynamic evaluate the argument to compute the length.
6483
6484 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6485 value and retrieve the dynamic type size.
6486
6487 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6488 (ada_template_to_fixed_record_type_1): Likewise.
6489 (ada_to_fixed_type_1): Likewise.
6490 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6491 (cp_print_value): Likewise.
6492 * d-valprint.c (dynamic_array_type): Likewise.
6493 * eval.c (evaluate_subexp_with_coercion): Likewise.
6494 * findvar.c (address_of_variable): Likewise.
6495 * jv-valprint.c (java_value_print): Likewise.
6496 * valops.c (value_ind): Likewise.
6497 * value.c (coerce_ref): Likewise.
6498
6499 * c-typeprint.c (c_type_print_varspec_suffix): Added
6500 check for not yet resolved high bound. If unresolved, print
6501 "variable length" string to the console instead of random
6502 length.
6503
6504 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6505 property and store it as the high bound and flag the range accordingly.
6506 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6507 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6508 * gdbtypes.h (enum range_flags): New enum.
6509 (struct range_bounds): Add flags member.
6510
6511 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6512 points to a constant blob.
6513
6514 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6515 (evaluate_subexp_standard): Pass noside argument.
6516 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6517 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6518 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6519 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6520 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6521
245a5f0b
KS
65222014-04-11 Keith Seitz <keiths@redhat.com>
6523
6524 PR c++/16675
6525 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6526 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6527 reference types.
6528
3bce8237
SA
65292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6530
6531 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6532 (evaluate_subexp_standard): Pass noside argument.
6533 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6534 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6535 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6536 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6537 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6538
92b09522
SA
65392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6540
6541 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6542 points to a constant blob.
6543
e1969afb
SA
65442014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6545
6546 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6547 property and store it as the high bound and flag the range accordingly.
6548 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6549 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6550 * gdbtypes.h (enum range_flags): New enum.
6551 (struct range_bounds): Add flags member.
6552
b86138fb
SA
65532014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6554
6555 * c-typeprint.c (c_type_print_varspec_suffix): Added
6556 check for not yet resolved high bound. If unresolved, print
6557 "variable length" string to the console instead of random
6558 length.
6559
bcd629a4
SA
65602014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6561
6562 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6563 (ada_template_to_fixed_record_type_1): Likewise.
6564 (ada_to_fixed_type_1): Likewise.
6565 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6566 (cp_print_value): Likewise.
6567 * d-valprint.c (dynamic_array_type): Likewise.
6568 * eval.c (evaluate_subexp_with_coercion): Likewise.
6569 * findvar.c (address_of_variable): Likewise.
6570 * jv-valprint.c (java_value_print): Likewise.
6571 * valops.c (value_ind): Likewise.
6572 * value.c (coerce_ref): Likewise.
6573
04b19544
SA
65742014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6575
6576 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6577 value and retrieve the dynamic type size.
6578
26cb189f
SA
65792014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6580
6581 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6582 passed to sizeof is dynamic evaluate the argument to compute the length.
6583
37c1ab67
SA
65842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6585
6586 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6587 (dwarf2_evaluate_property): New function.
6588 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6589 * dwarf2read.c (attr_to_dynamic_prop): New function.
6590 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6591 attribute.
6592 * gdbtypes.c: Include dwarf2loc.h.
6593 (is_dynamic_type): New function.
6594 (resolve_dynamic_type): New function.
6595 (resolve_dynamic_bounds): New function.
6596 (get_type_length): New function.
6597 (check_typedef): Use get_type_length to compute type length.
6598 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6599 (TYPE_LOW_BOUND_KIND): New macro.
6600 (is_dynamic_type): New function prototype.
6601 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6602 to resolve dynamic properties of the type. Update comment.
6603 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6604
729efb13
SA
66052014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6606
6607 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6608 declaring high/low bounds and change uses accordingly. Call
6609 create_range_type instead of create_static_range_type.
6610 * gdbtypes.c (create_range_type): New function.
6611 (create_range_type): Convert bounds into struct bound_prop and pass
6612 them to create_range_type.
6613 * gdbtypes.h (struct bound_prop): New struct.
6614 (create_range_type): New function prototype.
6615 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6616 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6617 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6618 part of the bound.
6619 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6620
0c9c3474
SA
66212014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6622
6623 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6624 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6625 * ada-lang.c: All uses of create_range_type updated.
6626 * coffread.c: All uses of create_range_type updated.
6627 * dwarf2read.c: All uses of create_range_type updated.
6628 * f-exp.y: All uses of create_range_type updated.
6629 * m2-valprint.c: All uses of create_range_type updated.
6630 * mdebugread.c: All uses of create_range_type updated.
6631 * stabsread.c: All uses of create_range_type updated.
6632 * valops.c: All uses of create_range_type updated.
6633 * valprint.c: All uses of create_range_type updated.
6634
9d497a19
PA
66352014-04-10 Pedro Alves <palves@redhat.com>
6636
6637 * breakpoint.c (single_step_breakpoints)
6638 (single_step_gdbarch): Move up in the file.
6639 (one_breakpoint_xfer_memory): New function, factored out from ...
6640 (breakpoint_xfer_memory): ... here. Also process single-step
6641 breakpoints.
6642
15a9128a
TG
66432014-04-09 Tristan Gingold <gingold@adacore.com>
6644
6645 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6646 comments.
6647 (darwin_decode_exception_message): Free port only after use.
6648
9c97a070
PL
66492014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6650
6651 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6652 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6653 when setting the size of call_length.
6654
7af389b8
SC
66552014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6656
6657 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6658 dereference TYPE_CODE_REF values.
6659
86ad98c3
JB
66602014-04-07 Joel Brobecker <brobecker@adacore.com>
6661
6662 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6663 end of warning message.
6664
b0aeadb3
DE
66652014-04-03 Doug Evans <dje@google.com>
6666
6667 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6668 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6669
5979d6b6
AM
66702014-04-02 Alan Modra <amodra@gmail.com>
6671
6672 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6673 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6674 (struct symbol_file_add_from_memory_args): Add size field.
6675 (find_vdso_size): New function.
6676 (add_vsyscall_page): Attempt to find vdso size.
6677
0d60c288
DE
66782014-04-01 Doug Evans <dje@google.com>
6679
6680 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6681
a41f2563
TG
66822014-04-01 Tristan Gingold <gingold@adacore.com>
6683
6684 * darwin-nat.c (darwin_encode_reply): Add prototype.
6685 (darwin_decode_exception_message): Reply to unknown inferiors.
6686 (darwin_decode_message): Handle message by id. Ignore message
6687 to unknown inferior.
6688 (darwin_wait): Discard unknown messages, add debug trace.
6689
11a865c8
DE
66902014-03-31 Doug Evans <dje@google.com>
6691
6692 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6693 comp_dir_string.
6694
770e7fc7
DE
66952014-03-31 Doug Evans <dje@google.com>
6696
6697 New option "set print symbol-loading".
6698 * NEWS: Mention it.
6699 * solib.c (solib_read_symbols): Only print symbol loading messages
6700 if requested.
6701 (solib_add): If symbol loading is in "brief" mode, notify user
6702 symbols are being loaded.
6703 (reload_shared_libraries_1): Ditto.
6704 * symfile.c (print_symbol_loading_off): New static global.
6705 (print_symbol_loading_brief): New static global.
6706 (print_symbol_loading_full): New static global.
6707 (print_symbol_loading_enums): New static global.
6708 (print_symbol_loading): New static global.
6709 (print_symbol_loading_p): New function.
6710 (symbol_file_add_with_addrs): Only print symbol loading messages
6711 if requested.
6712 (_initialize_symfile): Register "print symbol-loading" set/show
6713 command.
6714 * symfile.h (print_symbol_loading_p): Declare.
6715
c32c64b7
DE
67162014-03-30 Doug Evans <xdje42@gmail.com>
6717
6718 * infrun.c (set_last_target_status): New function.
6719 (handle_inferior_event): Call it.
6720
7c0bc051
DE
67212014-03-30 Doug Evans <xdje42@gmail.com>
6722
6723 * inferior.h (enum stop_kind): Improve comment.
6724
8776cfe9
JB
67252014-03-28 Joel Brobecker <brobecker@adacore.com>
6726
6727 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6728 a reference, strip the reference layer before calling
6729 the lang_ops value_has_mutated callback.
6730
410a0ff2
SDJ
67312014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6732
6733 Remove some globals from our parser.
6734 * language.c (unk_lang_parser): Add "struct parser_state"
6735 argument.
6736 * language.h (struct language_defn) <la_parser>: Likewise.
6737 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6738 (initialize_expout): Add "struct parser_state" argument.
6739 Rewrite function to use the parser state.
6740 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6741 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6742 write_exp_elt_longcst, write_exp_elt_dblcst,
6743 write_exp_elt_decfloatcst, write_exp_elt_type,
6744 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6745 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6746 write_dollar_variable): Likewise.
6747 (parse_exp_in_context_1): Use parser state.
6748 (insert_type_address_space): Add "struct parser_state" argument.
6749 Use parser state.
6750 (increase_expout_size): New function.
6751 * parser-defs.h: Forward declare "struct language_defn" and
6752 "struct parser_state".
6753 (expout, expout_size, expout_ptr): Remove extern declarations.
6754 (parse_gdbarch, parse_language): Rewrite macro declarations to
6755 accept the parser state.
6756 (struct parser_state): New struct.
6757 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6758 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6759 write_exp_elt_decfloatcst, write_exp_elt_type,
6760 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6761 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6762 write_exp_msymbol, write_dollar_variable,
6763 mark_struct_expression, insert_type_address_space): Add "struct
6764 parser_state" argument.
6765 (increase_expout_size): New function.
6766 * utils.c (do_clear_parser_state): New function.
6767 (make_cleanup_clear_parser_state): Likewise.
6768 * utils.h (make_cleanup_clear_parser_state): New function
6769 prototype.
6770 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6771 Update calls to write_exp* in order to pass the parser state.
6772 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6773 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6774 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6775 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6776 * stap-probe.c (stap_parse_register_operand): Likewise.
6777 (stap_parse_single_operand): Likewise.
6778 (stap_parse_argument_1): Likewise.
6779 (stap_parse_argument): Use parser state.
6780 * stap-probe.h: Include "parser-defs.h".
6781 (struct stap_parse_info) <pstate>: New field.
6782 * c-exp.y (parse_type): Rewrite to use parser state.
6783 (yyparse): Redefine to c_parse_internal.
6784 (pstate): New global variable.
6785 (parse_number): Add "struct parser_state" argument.
6786 (write_destructor_name): Likewise.
6787 (type_exp): Update calls to write_exp* and similars in order to
6788 use parser state.
6789 (exp1, exp, variable, qualified_name, space_identifier,
6790 typename, typebase): Likewise.
6791 (write_destructor_name, parse_number, lex_one_token,
6792 classify_name, classify_inner_name, c_parse): Add "struct
6793 parser_state" argument. Update function to use parser state.
6794 * c-lang.h: Forward declare "struct parser_state".
6795 (c_parse): Add "struct parser_state" argument.
6796 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6797 (yyparse): Redefine macro to ada_parse_internal.
6798 (pstate): New variable.
6799 (write_int, write_object_renaming, write_var_or_type,
6800 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6801 type_int, type_long, type_long_long, type_float, type_double,
6802 type_long_double, type_char, type_boolean, type_system_address):
6803 Add "struct parser_state" argument.
6804 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6805 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6806 var_or_type, aggregate, aggregate_component_list,
6807 positional_list, others, component_group,
6808 component_associations): Update calls to write_exp* and similar
6809 functions in order to use parser state.
6810 (ada_parse, write_var_from_sym, write_int,
6811 write_exp_op_with_string, write_object_renaming,
6812 find_primitive_type, write_selectors, write_ambiguous_var,
6813 write_var_or_type, write_name_assoc, type_int, type_long,
6814 type_long_long, type_float, type_double, type_long_double,
6815 type_char, type_boolean, type_system_address): Add "struct
6816 parser_state" argument. Adjust function to use parser state.
6817 * ada-lang.c (parse): Likewise.
6818 * ada-lang.h: Forward declare "struct parser_state".
6819 (ada_parse): Add "struct parser_state" argument.
6820 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6821 calls to both functions.
6822 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6823 parser state.
6824 (yyparse): Redefine macro to f_parse_internal.
6825 (pstate): New variable.
6826 (parse_number): Add "struct parser_state" argument.
6827 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6828 and similars in order to use parser state.
6829 (parse_number): Adjust code to use parser state.
6830 (yylex): Likewise.
6831 (f_parse): New function.
6832 * f-lang.h: Forward declare "struct parser_state".
6833 (f_parse): Add "struct parser_state" argument.
6834 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6835 parser state.
6836 (yyparse): Redefine macro for java_parse_internal.
6837 (pstate): New variable.
6838 (push_expression_name, push_expression_name, insert_exp): Add
6839 "struct parser_state" argument.
6840 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6841 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6842 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6843 PostIncrementExpression, PostDecrementExpression,
6844 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6845 UnaryExpressionNotPlusMinus, CastExpression,
6846 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6847 RelationalExpression, EqualityExpression, AndExpression,
6848 ExclusiveOrExpression, InclusiveOrExpression,
6849 ConditionalAndExpression, ConditionalOrExpression,
6850 ConditionalExpression, Assignment, LeftHandSide): Update
6851 calls to write_exp* and similars in order to use parser state.
6852 (parse_number): Ajust code to use parser state.
6853 (yylex): Likewise.
6854 (java_parse): New function.
6855 (push_variable): Add "struct parser_state" argument. Adjust
6856 code to user parser state.
6857 (push_fieldnames, push_qualified_expression_name,
6858 push_expression_name, insert_exp): Likewise.
6859 * jv-lang.h: Forward declare "struct parser_state".
6860 (java_parse): Add "struct parser_state" argument.
6861 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6862 parser state.
6863 (yyparse): Redefine macro to m2_parse_internal.
6864 (pstate): New variable.
6865 (type_exp, exp, fblock, variable, type): Update calls to
6866 write_exp* and similars to use parser state.
6867 (yylex): Likewise.
6868 (m2_parse): New function.
6869 * m2-lang.h: Forward declare "struct parser_state".
6870 (m2_parse): Add "struct parser_state" argument.
6871 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6872 * objc-lang.h: Forward declare "struct parser_state".
6873 (end_msglist): Add "struct parser_state" argument.
6874 * p-exp.y (parse_type): Rewrite macro to use parser state.
6875 (yyparse): Redefine macro to pascal_parse_internal.
6876 (pstate): New variable.
6877 (parse_number): Add "struct parser_state" argument.
6878 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6879 write_exp* and similars in order to use parser state.
6880 (parse_number, yylex): Adjust code to use parser state.
6881 (pascal_parse): New function.
6882 * p-lang.h: Forward declare "struct parser_state".
6883 (pascal_parse): Add "struct parser_state" argument.
6884 * go-exp.y (parse_type): Rewrite macro to use parser state.
6885 (yyparse): Redefine macro to go_parse_internal.
6886 (pstate): New variable.
6887 (parse_number): Add "struct parser_state" argument.
6888 (type_exp, exp1, exp, variable, type): Update calls to
6889 write_exp* and similars in order to use parser state.
6890 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6891 to use parser state.
6892 (go_parse): Likewise.
6893 * go-lang.h: Forward declare "struct parser_state".
6894 (go_parse): Add "struct parser_state" argument.
6895
342587c4
DE
68962014-03-27 Doug Evans <dje@google.com>
6897
6898 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6899
33e80786
DE
69002014-03-27 Doug Evans <dje@google.com>
6901
6902 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6903 Remove argument abbrev_section. All callers updated.
6904
1dbab08b
DE
69052014-03-27 Doug Evans <dje@google.com>
6906
6907 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6908 addr_base, ranges_base.
6909
318d3177
KS
69102014-03-26 Keith Seitz <keiths@redhat.com>
6911
6912 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6913 types, not VAR_DOMAIN.
6914
1e54db15
SL
69152014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6916
6917 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6918 "ra" registers.
6919 * features/nios2-linux.c: Regenerated.
6920 * features/nios2.c: Regenerated.
6921
d3839ede
PA
69222014-03-25 Pedro Alves <palves@redhat.com>
6923
6924 * cli/cli-script.c (script_from_file): Force the interpreter to
6925 sync mode.
6926
7588d2ec
PL
69272014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6928
6929 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6930 small stack allocation.
6931
a6290449
TG
69322014-03-24 Tristan Gingold <gingold@adacore.com>
6933
6934 * darwin-nat.c (exc_server): Remove unused prototype.
6935 (darwin_dump_message): Correctly display data on x86_64.
6936 (darwin_encode_reply): Fix style.
6937 Add comments and fix indentation.
6938
31ae9d24 69392014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6940
6941 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6942
6339bfc4
DE
69432014-03-22 Doug Evans <xdje42@gmail.com>
6944
6945 * infcmd.c: Whitespace fixes.
6946 (interrupt_command): Merge two function comments into one.
6947
0a07590b
DE
69482014-03-22 Doug Evans <xdje42@gmail.com>
6949
6950 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6951 All uses updated.
6952
b55fbac4
YQ
69532014-03-22 Yao Qi <yao@codesourcery.com>
6954
6955 * remote.c (target_read_live_memory): Remove.
6956 (memory_xfer_live_readonly_partial): Rename it to
6957 remote_xfer_live_readonly_partial. Remove argument 'object'.
6958 All callers updated. Call remote_read_bytes_1
6959 instead of target_read_live_memory.
6960 * tracepoint.c (set_traceframe_number): Remove.
6961 (make_cleanup_restore_traceframe_number): Likewise .
6962 * tracepoint.h (set_traceframe_number): Remove declaration.
6963 (make_cleanup_restore_traceframe_number): Likewise.
6964
9217e74e
YQ
69652014-03-22 Yao Qi <yao@codesourcery.com>
6966
6967 * remote.c (remote_read_bytes): Move code on reading from the
6968 remote stub to ...
6969 (remote_read_bytes_1): ... here. New function.
6970
8acf9577
YQ
69712014-03-22 Yao Qi <yao@codesourcery.com>
6972
6973 * ctf.c (ctf_xfer_partial): Check the return value of
6974 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6975 return TARGET_XFER_UNAVAILABLE.
6976 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6977 * target.c (target_read_live_memory): Move it to remote.c.
6978 (memory_xfer_live_readonly_partial): Likewise.
6979 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6980 * remote.c (target_read_live_memory): Moved from target.c.
6981 (memory_xfer_live_readonly_partial): Likewise.
6982 (remote_read_bytes): Factored out from
6983 memory_xfer_partial_1.
6984
feef67ab
DE
69852014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6986
6987 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6988 NULL pointer.
6989
b65dc60b
PA
69902014-03-21 Pedro Alves <palves@redhat.com>
6991
6992 * infrun.c (normal_stop): Extend comment.
6993
b4ab256d
HZ
69942014-03-21 Hui Zhu <hui@codesourcery.com>
6995 Pedro Alves <palves@redhat.com>
6996
6997 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6998 static buffer.
6999 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7000 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7001 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7002
deba7593
MR
70032014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7004
7005 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7006 `z' formatted output modifier.
7007
1bff71c3
SDJ
70082014-03-20 Tom Tromey <tromey@redhat.com>
7009 Sergio Durigan Junior <sergiodj@redhat.com>
7010
7011 * probe.c (parse_probes): Turn assert into an ordinary error.
7012 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7013 exceptions when parsing probes. Rearrange the code for clarity.
7014
90e28950
TT
70152014-03-20 Tom Tromey <tromey@redhat.com>
7016
7017 PR gdb/14135
7018 * top.c (execute_command): Only dispatch events if the command
7019 started the target.
7020
beb460e8
PA
70212014-03-20 Tom Tromey <tromey@redhat.com>
7022
7023 PR cli/15718
7024 * infcall.c: Include event-top.h.
7025 (run_inferior_call): Call async_disable_stdin if needed.
7026
99619bea
PA
70272014-03-20 Pedro Alves <palves@redhat.com>
7028
7029 * infrun.c (prepare_to_proceed): Delete.
7030 (thread_still_needs_step_over): New function.
7031 (find_thread_needs_step_over): New function.
7032 (proceed): If the current thread needs a step-over, set its
7033 steping_over_breakpoint flag. Adjust to use
7034 find_thread_needs_step_over instead of prepare_to_proceed.
7035 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7036 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7037 breakpoint.
7038 (switch_back_to_stepped_thread): Step over breakpoints of all
7039 threads not the stepping thread, before switching back to the
7040 stepping thread.
7041
2adfaa28
PA
70422014-03-20 Pedro Alves <palves@redhat.com>
7043
7044 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7045 extern.
7046 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7047 * infrun.c (saved_singlestep_ptid)
7048 (stepping_past_singlestep_breakpoint): Delete.
7049 (resume): Remove stepping_past_singlestep_breakpoint handling.
7050 (proceed): Store the prev_pc of the stepping thread too.
7051 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7052 singlestep_pc.
7053 (enum infwait_states): Delete infwait_thread_hop_state.
7054 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7055 field.
7056 (handle_inferior_event): Adjust.
7057 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7058 handling and the thread-hop code. Before removing single-step
7059 breakpoints, check whether the thread hit a single-step breakpoint
7060 of another thread. If it did, the trap is not a random signal.
7061 (switch_back_to_stepped_thread): If the event thread hit a
7062 single-step breakpoint, unblock it before switching to the
7063 stepping thread. Handle the case of the stepped thread having
7064 advanced already.
7065 (keep_going): Handle the case of the current thread moving past a
7066 single-step breakpoint.
7067
31e77af2
PA
70682014-03-20 Pedro Alves <palves@redhat.com>
7069
7070 PR breakpoints/7143
7071 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7072 are being stepped over.
7073 (breakpoint_address_match): Make extern.
7074 * breakpoint.h (breakpoint_address_match): New declaration.
7075 * inferior.h (stepping_past_instruction_at): New declaration.
7076 * infrun.c (struct step_over_info): New type.
7077 (step_over_info): New global.
7078 (set_step_over_info, clear_step_over_info)
7079 (stepping_past_instruction_at): New functions.
7080 (handle_inferior_event): Clear the step-over info when
7081 trap_expected is cleared.
7082 (resume): Remove now stale comment.
7083 (clear_proceed_status): Clear step-over info.
7084 (proceed): Adjust step-over handling to set or clear the step-over
7085 info instead of removing all breakpoints.
7086 (handle_signal_stop): When setting up a thread-hop, don't remove
7087 breakpoints here.
7088 (stop_stepping): Clear step-over info.
7089 (keep_going): Adjust step-over handling to set or clear step-over
7090 info and then always inserting breakpoints, instead of removing
7091 all breakpoints when stepping over one.
7092
b9f437de
PA
70932014-03-20 Pedro Alves <palves@redhat.com>
7094
7095 * infrun.c (previous_inferior_ptid): Adjust comment.
7096 (deferred_step_ptid): Delete.
7097 (infrun_thread_ptid_changed, prepare_to_proceed)
7098 (init_wait_for_inferior): Adjust.
7099 (handle_signal_stop): Delete deferred_step_ptid handling.
7100
06c868a8
JK
71012014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7102
7103 PR gdb/15358
7104 * defs.h (sync_quit_force_run): New declaration.
7105 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7106 * event-top.c (async_sigterm_handler): New declaration.
7107 (async_sigterm_token): New variable.
7108 (async_init_signals): Create also async_sigterm_token.
7109 (async_sigterm_handler): New function.
7110 (sync_quit_force_run): New variable.
7111 (handle_sigterm): Replace quit_force call by other calls.
7112 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7113
dea80df0
MR
71142014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7115
7116 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7117 offset into SPE pseudo registers.
7118
0c7e1a46
PA
71192014-03-18 Pedro Alves <palves@redhat.com>
7120
7121 PR gdb/13860
7122 * inferior.h (print_stop_event): Declare.
7123 * infrun.c (print_stop_event): New, factored out from ...
7124 (normal_stop): ... this.
7125 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7126 of bpstat_print/print_stack_frame.
7127
9c1fcd01
TT
71282014-03-17 Tom Tromey <tromey@redhat.com>
7129
7130 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7131
11aa919a
PMR
71322014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7133
7134 * ada-lang.c (decode_constrained_packed_array): Perform a
7135 minimal coercion for reference with coerce_ref instead of
7136 ada_coerce_ref.
7137
d4ccb5e0
TG
71382014-03-17 Tristan Gingold <gingold@adacore.com>
7139
7140 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7141 (darwin_solib_create_inferior_hook): Emit a warning if version
7142 is unhandled.
7143
49840f2a
UW
71442014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7145
7146 * python/py-value.c (get_field_flag): Cast flag_name argument to
7147 PyObject_GetAttrString to support Python 2.4.
7148
ed4123e5
JK
71492014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7150
7151 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7152 (Global Maintainers): Remove Jan Kratochvil.
7153
d6b64346
PA
71542014-03-14 Pedro Alves <palves@redhat.com>
7155
7156 * inferior.h (terminal_ours_for_output): Rename to ...
7157 (child_terminal_ours_for_output): ... this.
7158 (terminal_save_ours): Rename to ...
7159 (child_terminal_save_ours): ... this.
7160 (terminal_ours): Rename to ...
7161 (child_terminal_ours): ... this.
7162 (terminal_inferior): Rename to ...
7163 (child_terminal_inferior): ... this.
7164 (terminal_init_inferior): Rename to ...
7165 (child_terminal_init_inferior): ... this.
7166 (terminal_init_inferior_with_pgrp): Rename to ...
7167 (child_terminal_init_inferior_with_pgrp): ... this.
7168 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7169 (child_terminal_init_with_pgrp): ... this.
7170 (terminal_save_ours): Rename to ...
7171 (child_terminal_save_ours): ... this.
7172 (terminal_init_inferior): Rename to ...
7173 (child_terminal_init): ... this. Adjust.
7174 (terminal_inferior): Rename to ...
7175 (child_terminal_inferior): ... this.
7176 (terminal_ours_for_output): Rename to ...
7177 (child_terminal_ours_for_output): ... this. Adjust.
7178 (terminal_ours): Rename to ...
7179 (child_terminal_ours): ... this.
7180 (terminal_ours_1): Rename to ...
7181 (child_terminal_ours_1): ... this. Adjust.
7182 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7183 * windows-nat.c (do_initial_windows_stuff): Adjust.
7184 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7185 (gnu_terminal_init): ... this. Adjust.
7186 (gnu_target): Adjust.
7187 * inf-child.c (inf_child_target): Adjust.
7188
5a1e8c7a
DE
71892014-03-13 Doug Evans <xdje42@gmail.com>
7190
7191 PR guile/16612
7192 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7193 new eq?-hashtab.
7194
350e1a76
DE
71952014-03-13 Doug Evans <xdje42@gmail.com>
7196
7197 * value.c (record_latest_value): Call release_value_or_incref
7198 instead of release_value.
7199
a69900ae
PA
72002014-03-13 Pedro Alves <palves@redhat.com>
7201
7202 * procfs.c (procfs_target): Don't override to_shortname,
7203 to_longname or to_doc.
7204
5db9f0bd
PA
72052014-03-13 Pedro Alves <palves@redhat.com>
7206
7207 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7208 Unix in user visible strings.
7209
5e3a2c38
SS
72102014-03-12 Stan Shebs <stan@codesourcery.com>
7211
7212 * gdbtypes.h: Annotate comments for Doxygen, add a page
7213 block comment with some general info.
7214
8bc2fe48
PA
72152014-03-12 Pedro Alves <palves@redhat.com>
7216
7217 * infcmd.c (prepare_execution_command): New function, factored out
7218 from several execution commands.
7219 (run_command_1, continue_command, step_1, jump_command)
7220 (signal_command, until_command, advance_command, finish_command)
7221 (attach_command): Use prepare_execution_command.
7222
638c5f49
OJ
72232014-03-12 Omair Javaid <omair.javaid@linaro.org>
7224
7225 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7226 (MAX_BPTS): Define.
7227 (MAX_WPTS): Define.
7228 (struct arm_linux_thread_points): Removed.
7229 (struct arm_linux_process_info): New.
7230 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7231 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7232 (arm_linux_find_breakpoints_by_tid): Removed.
7233 (struct arch_lwp_info): New.
7234 (arm_linux_find_process_pid): New functions.
7235 (arm_linux_add_process): New functions.
7236 (arm_linux_process_info_get): New functions.
7237 (arm_linux_forget_process): New function.
7238 (arm_linux_get_debug_reg_state): New function.
7239 (struct update_registers_data): New.
7240 (update_registers_callback): New function.
7241 (arm_linux_insert_hw_breakpoint1): Updated.
7242 (arm_linux_remove_hw_breakpoint1): Updated.
7243 (arm_linux_insert_hw_breakpoint): Updated.
7244 (arm_linux_remove_hw_breakpoint): Updated.
7245 (arm_linux_insert_watchpoint): Updated.
7246 (arm_linux_remove_watchpoint): Updated.
7247 (arm_linux_new_thread): Updated.
7248 (arm_linux_prepare_to_resume): New function.
7249 (arm_linux_new_fork): New function.
7250 (_initialize_arm_linux_nat): Updated.
7251
6d03af93
PA
72522014-03-12 Pedro Alves <palves@redhat.com>
7253
7254 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7255
b3ccfe11
TT
72562014-03-12 Tom Tromey <tromey@redhat.com>
7257
7258 * inf-child.c (return_zero): New function.
7259 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7260 * aix-thread.c (aix_thread_inferior_created): New function.
7261 (aix_thread_attach): Remove.
7262 (init_aix_thread_ops): Don't set to_attach.
7263 (_initialize_aix_thread): Register inferior_created observer.
7264 * corelow.c (init_core_ops): Don't set to_attach or
7265 to_create_inferior.
7266 * exec.c (init_exec_ops): Don't set to_attach or
7267 to_create_inferior.
7268 * infcmd.c (run_command_1): Use find_run_target. Make direct
7269 target calls.
7270 (attach_command): Use find_attach_target. Make direct target
7271 calls.
7272 * record-btrace.c (init_record_btrace_ops): Don't set
7273 to_create_inferior.
7274 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7275 Remove.
7276 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7277 set to_create_inferior.
7278 * target.c (complete_target_initialization): Add assertion.
7279 (target_create_inferior): Remove.
7280 (find_default_attach, find_default_create_inferior): Remove.
7281 (find_attach_target, find_run_target): New functions.
7282 (find_default_is_async_p, find_default_can_async_p)
7283 (target_supports_non_stop, target_attach): Remove.
7284 (init_dummy_target): Don't set to_create_inferior or
7285 to_supports_non_stop.
7286 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7287 TARGET_DEFAULT_FUNC.
7288 <to_create_inferior>: Add comment.
7289 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7290 TARGET_DEFAULT_RETURN.
7291 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7292 (find_attach_target, find_run_target): Declare.
7293 (target_create_inferior): Remove.
7294 (target_has_execution_1): Update comment.
7295 (target_supports_non_stop): Remove.
7296 * target-delegates.c: Rebuild.
7297
91f83b02
PA
72982014-03-12 Pedro Alves <palves@redhat.com>
7299
7300 * inf-child.h: Update comment to not mention Unix.
7301
f1aea813
PA
73022014-03-12 Pedro Alves <palves@redhat.com>
7303
7304 * inf-child.c: Update top comment to not mention Unix. Add
7305 generic comment describing how this target is meant to be used.
7306 (inf_child_post_attach, inf_child_post_startup_inferior)
7307 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7308 Unix in comment.
7309
ee8e9165
PA
73102014-03-12 Pedro Alves <palves@redhat.com>
7311
7312 * nto-procfs.c: Include inf-child.h.
7313 (procfs_ops): Delete global.
7314 (procfs_can_run): Delete method.
7315 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7316 target pointer instead of referencing procfs_ops.
7317 (procfs_prepare_to_store): Delete.
7318 (init_procfs_ops): Delete function.
7319 (procfs_target): New function, based on init_procfs_ops, but
7320 inherit inf_child_target.
7321 (_initialize_procfs): Use procfs_target.
7322
51a9c8c5
PA
73232014-03-12 Pedro Alves <palves@redhat.com>
7324
7325 * windows-nat.c: Include inf-child.h.
7326 (windows_ops): Delete global.
7327 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7328 methods.
7329 (init_windows_ops): Delete function.
7330 (windows_target): New function, based on init_windows_ops, but
7331 inherit inf_child_target.
7332 (_initialize_windows_nat): Use windows_target. Install x86
7333 specific target methods here.
7334
c1966e26
DE
73352014-03-10 Doug Evans <xdje42@gmail.com>
7336
7337 * guile/guile.c (call_initialize_gdb_module): New function.
7338 (initialize_guile): Replace call to scm_init_guile with call to
7339 scm_with_guile.
7340
023db19c
JB
73412014-03-10 Joel Brobecker <brobecker@adacore.com>
7342
7343 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7344 in call to TYPE_CODE macro.
7345
5ec18f2b
JG
73462014-03-10 Jerome Guitton <guitton@adacore.com>
7347
8668be63
JB
7348 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7349 Resolve tagged types to full view.
5ec18f2b 7350
7d03f2eb
HZ
73512014-03-10 Hui Zhu <hui@codesourcery.com>
7352
7353 * target.h (target_insert_breakpoint): Remove "hardware" from its
7354 comments.
7355
c5164cbc
DE
73562014-03-07 Doug Evans <dje@google.com>
7357
7358 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7359
c4a3fee2
DE
73602014-03-07 Doug Evans <dje@google.com>
7361
7362 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7363 Remove unused local comp_dir_attr. Assert exactly one of
7364 stub_comp_unit_die, stub_comp_dir is non-NULL.
7365
3156469c
JB
73662014-03-07 Joel Brobecker <brobecker@adacore.com>
7367
7368 * target.h (complete_target_initialization, add_target):
7369 Add comment.
7370
c1a7b7c6
PA
73712014-03-07 Pedro Alves <palves@redhat.com>
7372
7373 * go32-nat.c: Include inf-child.h.
7374 (go32_ops): Delete global.
7375 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7376 Delete methods.
7377 (go32_create_inferior): Push the passed in target pointer instead
7378 of referencing go32_ops.
7379 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7380 (go32_target): New function, based on init_go32_ops, but inherit
7381 inf_child_target.
7382 (_initialize_go32_nat): Use go32_target. Move parts of
7383 init_go32_ops here.
7384
d3c1a85f
JB
73852014-03-06 Joel Brobecker <brobecker@adacore.com>
7386
7387 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7388 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7389 SYMBOL_VALUE_ADDRESS.
7390 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7391
5fa1d40e
YQ
73922014-03-06 Yao Qi <yao@codesourcery.com>
7393
7394 * breakpoint.c (get_tracepoint_by_number): Remove argument
7395 optional_p. All callers updated. Adjust comments. Update
7396 output message.
7397 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7398
0c13193f
YQ
73992014-03-06 Yao Qi <yao@codesourcery.com>
7400
7401 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7402 early if get_number returns zero. Use 'p' instead of 'args'.
7403
2217da06
YQ
74042014-03-06 Yao Qi <yao@codesourcery.com>
7405
7406 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7407 message.
7408
cc3da688
YQ
74092014-03-06 Yao Qi <yao@codesourcery.com>
7410
7411 PR breakpoints/16508
7412 * tracepoint.c (check_trace_running): New function.
7413 (trace_find_command): Move code to check_trace_running and
7414 call check_trace_running.
7415 (trace_find_pc_command): Likewise.
7416 (trace_find_tracepoint_command): Likewise.
7417 (trace_find_line_command): Likewise.
7418 (trace_find_range_command): Likewise.
7419 * tracepoint.h (check_trace_running): Likewise.
7420 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7421
6a5f844b
YQ
74222014-03-06 Yao Qi <yao@codesourcery.com>
7423
7424 * target.h (struct target_ops) <to_traceframe_info>: Use
7425 TARGET_DEFAULT_NORETURN (tcomplain ()).
7426 * target-delegates.c: Regenerated.
7427
0f26cec1
PA
74282014-03-05 Pedro Alves <palves@redhat.com>
7429
7430 PR gdb/16575
7431 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7432 void. Update comment.
7433 (dcache_xfer_memory): Delete.
7434 (dcache_read_memory_partial): New, based on the read bits of
7435 dcache_xfer_memory.
7436 (dcache_update): Add status parameter. Use ULONGEST for len, and
7437 adjust. Discard cache lines if the reason for the update was
7438 error.
7439 * dcache.h (dcache_xfer_memory): Delete declaration.
7440 (dcache_read_memory_partial): New declaration.
7441 (dcache_update): Update prototype.
7442 * target.c (raw_memory_xfer_partial): Update the dcache here.
7443 (memory_xfer_partial_1): Don't handle dcache writes here.
7444
b2b255bd
MF
74452014-03-05 Mike Frysinger <vapier@gentoo.org>
7446
7447 * remote-sim.c (gdbsim_load): Add const to prog.
7448
5d9cf8a4
TT
74492014-03-03 Tom Tromey <tromey@redhat.com>
7450
7451 * elfread.c (probe_key): Change to bfd_data.
7452 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7453 now per-BFD, not per-objfile.
7454 * stap-probe.c (stap_probe_destroy): Update comment.
7455 (handle_stap_probe): Allocate on the per-BFD obstack.
7456
729662a5
TT
74572014-03-03 Tom Tromey <tromey@redhat.com>
7458
7459 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7460 * breakpoint.c (create_longjmp_master_breakpoint): Use
7461 get_probe_address.
7462 (add_location_to_breakpoint, bkpt_probe_insert_location)
7463 (bkpt_probe_remove_location): Update.
7464 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7465 * elfread.c (elf_symfile_relocate_probe): Remove.
7466 (elf_probe_fns): Update.
7467 (insert_exception_resume_breakpoint): Change type of "probe"
7468 parameter to bound_probe.
7469 (check_exception_resume): Update.
7470 * objfiles.c (objfile_relocate1): Don't relocate probes.
7471 * probe.c (bound_probe_s): New typedef.
7472 (parse_probes): Use get_probe_address. Set sal's objfile.
7473 (find_probe_by_pc): Return a bound_probe.
7474 (collect_probes): Return a VEC(bound_probe_s).
7475 (compare_probes): Update.
7476 (gen_ui_out_table_header_info): Change type of "probes"
7477 parameter. Update.
7478 (info_probes_for_ops): Update.
7479 (get_probe_address): New function.
7480 (probe_safe_evaluate_at_pc): Update.
7481 * probe.h (struct probe_ops) <get_probe_address>: New field.
7482 <set_semaphore, clear_semaphore>: Add objfile parameter.
7483 (struct probe) <objfile>: Remove field.
7484 <arch>: New field.
7485 <address>: Update comment.
7486 (struct bound_probe): New.
7487 (find_probe_by_pc): Return a bound_probe.
7488 (get_probe_address): Declare.
7489 * solib-svr4.c (struct probe_and_action) <address>: New field.
7490 (hash_probe_and_action, equal_probe_and_action): Update.
7491 (register_solib_event_probe): Add address parameter.
7492 (solib_event_probe_at): Update.
7493 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7494 get_probe_address.
7495 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7496 (stap_get_probe_address): New function.
7497 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7498 (compile_probe_arg): Update.
7499 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7500 address.
7501 (handle_stap_probe): Don't relocate the probe.
7502 (stap_relocate): Remove.
7503 (stap_gen_info_probes_table_values): Update.
7504 (stap_probe_ops): Remove stap_relocate.
7505 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7506 (debug_sym_probe_fns): Update.
7507 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7508 * symtab.c (init_sal): Use memset.
7509 * symtab.h (struct symtab_and_line) <objfile>: New field.
7510 * tracepoint.c (start_tracing, stop_tracing): Update.
7511
ff887920
TT
75122014-03-03 Tom Tromey <tromey@redhat.com>
7513
7514 * probe.h (parse_probes, find_probe_by_pc)
7515 (find_probes_in_objfile): Fix comments.
7516
f0407826
DE
75172014-03-02 Doug Evans <xdje42@gmail.com>
7518
7519 * infrun.c (handle_signal_stop): Replace test for
7520 TARGET_WAITKIND_STOPPED with an assert.
7521
35e6a711
DE
75222014-03-02 Doug Evans <xdje42@gmail.com>
7523
7524 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7525
667f9d0b
DE
75262014-03-02 Doug Evans <xdje42@gmail.com>
7527
7528 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7529
dc92ace0
MK
75302014-03-01 Mark Kettenis <kettenis@gnu.org>
7531
7532 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7533
a900370f
MK
75342014-03-01 Mark Kettenis <kettenis@gnu.org>
7535
7536 * i386obsd-nat.c: Include "obsd-nat.h".
7537 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7538 add_target.
7539 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7540
b72a7981
MK
75412014-03-01 Mark Kettenis <kettenis@gnu.org>
7542
7543 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7544
96c70aba
MK
75452014-03-01 Mark Kettenis <kettenis@gnu.org>
7546
7547 * mips64obsd-nat.c: Include "obsd-nath".
7548 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7549 add_target
7550 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7551
874a80af
MK
75522014-03-01 Mark Kettenis <kettenis@gnu.org>
7553
8fd408f1
MK
7554 * amd64obsd-nat.c: Include "obsd-nat,h.
7555 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7556 add_target.
874a80af
MK
7557 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7558
9cf95373
SC
75592014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7560
7561 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7562 (find_overload_match): Update call to find_oload_champ.
7563 (find_oload_champ_namespace_loop): Likewise
7564
863e4da4
MK
75652014-02-28 Mark Kettenis <kettenis@gnu.org>
7566
025cac40
MK
7567 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7568
1ed586ce
MK
7569 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7570 * config/sparc/obsd64.mh: New file.
7571 * sparc64obsd-nat.c: New file.
7572
863e4da4
MK
7573 * obsd-nat.h: New file.
7574 * obsd-nat.c: New file.
7575 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7576 (ALLDEPFILES): Add obsd-nat.c.
7577
89de4da4
TT
75782014-02-28 Tom Tromey <tromey@redhat.com>
7579
7580 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7581 * cli-out.h (cli_ui_out_impl): Now const.
7582 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7583 * ui-out.c (struct ui_out) <impl>: Now const.
7584 (default_ui_out_impl): Now const.
7585 (ui_out_new): Make 'impl' parameter const.
7586 * ui-out.h (ui_out_new): Update.
7587
c725e7b6
MK
75882014-02-27 Mark Kettenis <kettenis@gnu.org>
7589
7590 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7591
670b46b3
MK
75922014-02-27 Mark Kettenis <kettenis@gnu.org>
7593
7594 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7595
c91550fc
JK
75962014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7597
7598 Additional PR 8882 fix.
7599 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7600
2fa0369e
PA
76012014-02-27 Pedro Alves <palves@redhat.com>
7602
7603 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7604 isn't set.
7605
d632a097
PA
76062014-02-27 Pedro Alves <palves@redhat.com>
7607
7608 PR 12702
7609 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7610 * nat/linux-waitpid.c: Include string.h.
7611 (status_to_str): Moved here and made extern.
7612 * nat/linux-waitpid.h (status_to_str): New declaration.
7613
2ebd5a35
HZ
76142014-02-27 Hui Zhu <hui@codesourcery.com>
7615
7616 PR 12702
7617 * infrun.c (ptid_match): Move ...
7618 * common/ptid.c (ptid_match): ... here.
7619 * inferior.h (ptid_match): Move ...
7620 * common/ptid.h (ptid_match): ... here.
7621
3cdd631f
MK
76222014-02-27 Mark Kettenis <kettenis@gnu.org>
7623
7624 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7625 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7626 gdb_target_obs.
7627
bee30a64
MK
76282014-02-27 Mark Kettenis <kettenis@gnu.org>
7629
7630 * obsd-tdep.c (obsd_auxv_parse): New function.
7631 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7632
7633 * gdbarch.sh (auxv_parse): New.
7634 * gdbarch.h: Regenerated.
7635 * gdbarch.c: Regenerated.
7636 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7637
7a5a839f
LC
76382014-02-26 Ludovic Courtès <ludo@gnu.org>
7639
7640 * guile/scm-value.c (gdbscm_history_append_x): New function.
7641 (value_functions): Add it.
7642
31aa7e4e
JB
76432014-02-27 Joel Brobecker <brobecker@adacore.com>
7644
7645 * dwarf2read.c (attr_value_as_address): New function.
7646 (dwarf2_find_base_address, read_call_site_scope): Use
7647 attr_value_as_address in place of DW_ADDR.
7648 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7649 the low and high addresses. Slight rework of the handling
7650 of the high pc being a constant form, and limit it to
7651 DWARF verson 4 or higher.
7652 (dwarf2_record_block_ranges): Likewise.
7653 (read_partial_die): Likewise.
7654 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7655
9b333ba3
TT
76562014-02-26 Tom Tromey <tromey@redhat.com>
7657
7658 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7659
5f6cac40
TT
76602014-02-26 Tom Tromey <tromey@redhat.com>
7661
7662 * elfread.c (elf_read_minimal_symbols): Return early if
7663 minimal symbols have already been read. Add "ei" parameter.
7664 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7665 * minsyms.c (prim_record_minimal_symbol_full): Update.
7666 * objfiles.h (struct objstats) <n_minsyms>: Move...
7667 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7668 * symmisc.c (print_objfile_statistics): Update.
7669
2750ef27
TT
76702014-02-26 Tom Tromey <tromey@redhat.com>
7671
7672 * elfread.c (elf_read_minimal_symbols): New function, from
7673 elf_symfile_read.
7674 (elf_symfile_read): Call it.
7675
34643a32
TT
76762014-02-26 Tom Tromey <tromey@redhat.com>
7677
7678 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7679 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7680 (lookup_minimal_symbol_solib_trampoline)
7681 (lookup_minimal_symbol_by_pc_section_1)
7682 (lookup_minimal_symbol_and_objfile): Update.
7683 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7684 Don't allocate a minimal symbol if minsyms have already been read.
7685 (build_minimal_symbol_hash_tables): Update.
7686 (install_minimal_symbols): Do nothing if minsyms already read.
7687 Use the per-BFD obstack.
7688 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7689 * objfiles.c (allocate_objfile): Call
7690 terminate_minimal_symbol_table later.
7691 (have_minimal_symbols): Update.
7692 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7693 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7694 Move from struct objfile.
7695 <minsyms_read>: New field.
7696 (struct objfile) <msymbols, minimal_symbol_count,
7697 msymbol_hash, msymbol_demangled_hash>: Move.
7698 (ALL_OBJFILE_MSYMBOLS): Update.
7699 * symfile.c (read_symbols): Set minsyms_read.
7700 (reread_symbols): Update.
7701 * symmisc.c (dump_objfile, dump_msymbols): Update.
7702
2273f0ac
TT
77032014-02-26 Tom Tromey <tromey@redhat.com>
7704
7705 * minsyms.c (msymbols_sort): Remove.
7706 * minsyms.h (msymbols_sort): Remove.
7707 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7708 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7709 * elfread.c (elf_symtab_read): Don't add section offsets.
7710 * xcoffread.c (record_minimal_symbol): Don't add section offset
7711 to minimal symbol address.
7712 * somread.c (text_offset, data_offset): Remove.
7713 (som_symtab_read): Don't add section offsets to minimal symbol
7714 addresses.
7715 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7716 Don't add section offsets to minimal symbols.
7717 * coffread.c (coff_symtab_read): Don't add section offsets
7718 to minimal symbol addresses.
7719 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7720 to minimal symbol addresses.
7721 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7722 section offset to minimal symbol addresses.
7723 * mdebugread.c (parse_partial_symbols): Don't add section
7724 offset to minimal symbol addresses.
7725 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7726 offset to minimal symbol addresses.
7727
77e371c0
TT
77282014-02-26 Tom Tromey <tromey@redhat.com>
7729
7730 * ada-lang.c (ada_main_name): Update.
7731 (ada_add_standard_exceptions): Update.
7732 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7733 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7734 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7735 * auxv.c (ld_so_xfer_auxv): Update.
7736 * avr-tdep.c (avr_scan_prologue): Update.
7737 * ax-gdb.c (gen_var_ref): Update.
7738 * blockframe.c (get_pc_function_start)
7739 (find_pc_partial_function_gnu_ifunc): Update.
7740 * breakpoint.c (create_overlay_event_breakpoint)
7741 (create_longjmp_master_breakpoint)
7742 (create_std_terminate_master_breakpoint)
7743 (create_exception_master_breakpoint): Update.
7744 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7745 * c-valprint.c (c_val_print): Update.
7746 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7747 * common/agent.c (agent_look_up_symbols): Update.
7748 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7749 * dwarf2loc.c (call_site_to_target_addr): Update.
7750 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7751 * elfread.c (elf_gnu_ifunc_record_cache)
7752 (elf_gnu_ifunc_resolve_by_got): Update.
7753 * findvar.c (default_read_var_value): Update.
7754 * frame.c (inside_main_func): Update.
7755 * frv-tdep.c (frv_frame_this_id): Update.
7756 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7757 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7758 Update.
7759 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7760 (hppa_hpux_find_dummy_bpaddr): Update.
7761 * hppa-tdep.c (hppa_symbol_address): Update.
7762 * infcmd.c (until_next_command): Update.
7763 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7764 Update.
7765 * linespec.c (minsym_found, add_minsym): Update.
7766 * linux-nat.c (get_signo): Update.
7767 * linux-thread-db.c (inferior_has_bug): Update.
7768 * m32c-tdep.c (m32c_return_value)
7769 (m32c_m16c_address_to_pointer): Update.
7770 * m32r-tdep.c (m32r_frame_this_id): Update.
7771 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7772 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7773 * maint.c (maintenance_translate_address): Update.
7774 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7775 (frob_address): New function.
7776 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7777 frob_address. Rename parameter to "pc_in".
7778 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7779 addresses.
7780 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7781 Update.
7782 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7783 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7784 * objc-lang.c (find_objc_msgsend): Update.
7785 * objfiles.c (objfile_relocate1): Update.
7786 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7787 * p-valprint.c (pascal_val_print): Update.
7788 * parse.c (write_exp_msymbol): Update.
7789 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7790 (ppc_elfv2_skip_entrypoint): Update.
7791 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7792 * printcmd.c (build_address_symbolic, msym_info)
7793 (address_info): Update.
7794 * proc-service.c (ps_pglobal_lookup): Update.
7795 * psymtab.c (find_pc_sect_psymtab_closer)
7796 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7797 Change msymbol parameter to bound_minimal_symbol.
7798 * ravenscar-thread.c (get_running_thread_id): Update.
7799 * remote.c (remote_check_symbols): Update.
7800 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7801 address.
7802 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7803 * solib-dsbt.c (lm_base): Update.
7804 * solib-frv.c (lm_base, main_got): Update.
7805 * solib-irix.c (locate_base): Update.
7806 * solib-som.c (som_solib_create_inferior_hook)
7807 (link_map_start): Update.
7808 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7809 * solib-svr4.c (elf_locate_base, enable_break): Update.
7810 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7811 (flush_ea_cache): Update.
7812 * stabsread.c (define_symbol, scan_file_globals): Update.
7813 * stack.c (find_frame_funname): Update.
7814 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7815 (debug_qf_find_pc_sect_symtab): Update.
7816 * symfile.c (simple_read_overlay_table)
7817 (simple_overlay_update): Update.
7818 * symfile.h (struct quick_symbol_functions)
7819 <find_pc_sect_symtab>: Change type of msymbol to
7820 bound_minimal_symbol.
7821 * symmisc.c (dump_msymbols): Update.
7822 * symtab.c (find_pc_sect_symtab_via_partial)
7823 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7824 (search_symbols, print_msymbol_info): Update.
7825 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7826 (MSYMBOL_VALUE_ADDRESS): Redefine.
7827 (BMSYMBOL_VALUE_ADDRESS): New macro.
7828 * tracepoint.c (scope_info): Update.
7829 * tui/tui-disasm.c (tui_find_disassembly_address)
7830 (tui_get_begin_asm_address): Update.
7831 * valops.c (find_function_in_inferior): Update.
7832 * value.c (value_static_field, value_fn_field): Update.
7833
3b7344d5
TT
78342014-02-26 Tom Tromey <tromey@redhat.com>
7835
7836 * ada-lang.c (ada_update_initial_language): Update.
7837 (ada_main_name, ada_has_this_exception_support): Update.
7838 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7839 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7840 * arm-tdep.c (arm_skip_stub): Update.
7841 * auxv.c (ld_so_xfer_auxv): Update.
7842 * avr-tdep.c (avr_scan_prologue): Update.
7843 * ax-gdb.c (gen_var_ref): Update.
7844 * breakpoint.c (struct breakpoint_objfile_data)
7845 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7846 type to bound_minimal_symbol.
7847 (create_overlay_event_breakpoint)
7848 (create_longjmp_master_breakpoint)
7849 (create_std_terminate_master_breakpoint)
7850 (create_exception_master_breakpoint): Update.
7851 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7852 * c-exp.y (classify_name): Update.
7853 * coffread.c (coff_symfile_read): Update.
7854 * common/agent.c (agent_look_up_symbols): Update.
7855 * d-lang.c (d_main_name): Update.
7856 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7857 * dec-thread.c (enable_dec_thread): Update.
7858 * dwarf2loc.c (call_site_to_target_addr): Update.
7859 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7860 * eval.c (evaluate_subexp_standard): Update.
7861 * findvar.c (struct minsym_lookup_data) <result>: Change type
7862 to bound_minimal_symbol.
7863 <objfile>: Remove.
7864 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7865 * frame.c (inside_main_func): Update.
7866 * frv-tdep.c (frv_frame_this_id): Update.
7867 * gcore.c (call_target_sbrk): Update.
7868 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7869 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7870 Update.
7871 * go-lang.c (go_main_name): Update.
7872 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7873 (hppa_hpux_find_import_stub_for_addr): Update.
7874 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7875 Update. Change return type.
7876 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7877 type.
7878 * jit.c (jit_breakpoint_re_set_internal): Update.
7879 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7880 Update.
7881 * linux-nat.c (get_signo): Update.
7882 * linux-thread-db.c (inferior_has_bug): Update
7883 * m32c-tdep.c (m32c_return_value)
7884 (m32c_m16c_address_to_pointer): Update.
7885 * m32r-tdep.c (m32r_frame_this_id): Update.
7886 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7887 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7888 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7889 lookup_minimal_symbol. Change return type.
7890 (lookup_minimal_symbol): Remove.
7891 (lookup_bound_minimal_symbol): Update.
7892 (lookup_minimal_symbol_text): Change return type.
7893 (lookup_minimal_symbol_solib_trampoline): Change return type.
7894 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7895 (lookup_minimal_symbol_solib_trampoline): Change return type.
7896 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7897 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7898 (value_nsstring, find_imps): Update.
7899 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7900 * p-lang.c (pascal_main_name): Update.
7901 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7902 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7903 * proc-service.c (ps_pglobal_lookup): Update.
7904 * ravenscar-thread.c (get_running_thread_msymbol): Change
7905 return type.
7906 (has_ravenscar_runtime, get_running_thread_id): Update.
7907 * remote.c (remote_check_symbols): Update.
7908 * sol-thread.c (ps_pglobal_lookup): Update.
7909 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7910 * solib-dsbt.c (lm_base): Update.
7911 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7912 Update.
7913 * solib-irix.c (locate_base): Update.
7914 * solib-som.c (som_solib_create_inferior_hook)
7915 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7916 Update.
7917 * solib-spu.c (spu_enable_break): Update.
7918 * solib-svr4.c (elf_locate_base, enable_break): Update.
7919 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7920 (flush_ea_cache): Update.
7921 * stabsread.c (define_symbol): Update.
7922 * symfile.c (simple_read_overlay_table): Update.
7923 * symtab.c (find_pc_sect_line): Update.
7924 * tracepoint.c (scope_info): Update.
7925 * tui-disasm.c (tui_get_begin_asm_address): Update.
7926 * value.c (value_static_field): Update.
7927
40c1a007
TT
79282014-02-26 Tom Tromey <tromey@redhat.com>
7929
7930 * minsyms.c (prim_record_minimal_symbol_full): Use
7931 SET_MSYMBOL_VALUE_ADDRESS.
7932 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7933 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7934 SET_MSYMBOL_VALUE_ADDRESS.
7935 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7936 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7937
efd66ac6
TT
79382014-02-26 Tom Tromey <tromey@redhat.com>
7939
7940 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7941 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7942 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7943 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7944 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7945 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7946 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7947 * ada-lang.c (ada_main_name): Update.
7948 (ada_lookup_simple_minsym): Update.
7949 (ada_make_symbol_completion_list): Update.
7950 (ada_add_standard_exceptions): Update.
7951 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7952 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7953 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7954 * arm-tdep.c (skip_prologue_function): Update.
7955 (arm_skip_stack_protector, arm_skip_stub): Update.
7956 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7957 (arm_wince_skip_main_prologue): Update.
7958 * auxv.c (ld_so_xfer_auxv): Update.
7959 * avr-tdep.c (avr_scan_prologue): Update.
7960 * ax-gdb.c (gen_var_ref): Update.
7961 * block.c (call_site_for_pc): Update.
7962 * blockframe.c (get_pc_function_start): Update.
7963 (find_pc_partial_function_gnu_ifunc): Update.
7964 * breakpoint.c (create_overlay_event_breakpoint): Update.
7965 (create_longjmp_master_breakpoint): Update.
7966 (create_std_terminate_master_breakpoint): Update.
7967 (create_exception_master_breakpoint): Update.
7968 (resolve_sal_pc): Update.
7969 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7970 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7971 Update.
7972 * c-valprint.c (c_val_print): Update.
7973 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7974 * coffread.c (coff_symfile_read): Update.
7975 * common/agent.c (agent_look_up_symbols): Update.
7976 * dbxread.c (find_stab_function_addr): Update.
7977 (end_psymtab): Update.
7978 * dwarf2loc.c (call_site_to_target_addr): Update.
7979 (func_verify_no_selftailcall): Update.
7980 (tailcall_dump): Update.
7981 (call_site_find_chain_1): Update.
7982 (dwarf_expr_reg_to_entry_parameter): Update.
7983 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7984 (elf_gnu_ifunc_resolve_by_got): Update.
7985 * f-valprint.c (info_common_command): Update.
7986 * findvar.c (read_var_value): Update.
7987 * frame.c (get_prev_frame_1): Update.
7988 (inside_main_func): Update.
7989 * frv-tdep.c (frv_skip_main_prologue): Update.
7990 (frv_frame_this_id): Update.
7991 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7992 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7993 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7994 (gnuv3_skip_trampoline): Update.
7995 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7996 (hppa64_hpux_in_solib_call_trampoline): Update.
7997 (hppa_hpux_skip_trampoline_code): Update.
7998 (hppa64_hpux_search_dummy_call_sequence): Update.
7999 (hppa_hpux_find_import_stub_for_addr): Update.
8000 (hppa_hpux_find_dummy_bpaddr): Update.
8001 * hppa-tdep.c (hppa_symbol_address)
8002 (hppa_lookup_stub_minimal_symbol): Update.
8003 * i386-tdep.c (i386_skip_main_prologue): Update.
8004 (i386_pe_skip_trampoline_code): Update.
8005 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8006 * infcall.c (get_function_name): Update.
8007 * infcmd.c (until_next_command): Update.
8008 * jit.c (jit_breakpoint_re_set_internal): Update.
8009 (jit_inferior_init): Update.
8010 * linespec.c (minsym_found): Update.
8011 (add_minsym): Update.
8012 * linux-fork.c (info_checkpoints_command): Update.
8013 * linux-nat.c (get_signo): Update.
8014 * linux-thread-db.c (inferior_has_bug): Update.
8015 * m32c-tdep.c (m32c_return_value): Update.
8016 (m32c_m16c_address_to_pointer): Update.
8017 (m32c_m16c_pointer_to_address): Update.
8018 * m32r-tdep.c (m32r_frame_this_id): Update.
8019 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8020 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8021 * maint.c (maintenance_translate_address): Update.
8022 * minsyms.c (add_minsym_to_hash_table): Update.
8023 (add_minsym_to_demangled_hash_table): Update.
8024 (msymbol_objfile): Update.
8025 (lookup_minimal_symbol): Update.
8026 (iterate_over_minimal_symbols): Update.
8027 (lookup_minimal_symbol_text): Update.
8028 (lookup_minimal_symbol_by_pc_name): Update.
8029 (lookup_minimal_symbol_solib_trampoline): Update.
8030 (lookup_minimal_symbol_by_pc_section_1): Update.
8031 (lookup_minimal_symbol_and_objfile): Update.
8032 (prim_record_minimal_symbol_full): Update.
8033 (compare_minimal_symbols): Update.
8034 (compact_minimal_symbols): Update.
8035 (build_minimal_symbol_hash_tables): Update.
8036 (install_minimal_symbols): Update.
8037 (terminate_minimal_symbol_table): Update.
8038 (find_solib_trampoline_target): Update.
8039 (minimal_symbol_upper_bound): Update.
8040 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8041 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8042 (mips_skip_pic_trampoline_code): Update.
8043 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8044 * objc-lang.c (selectors_info): Update.
8045 (classes_info): Update.
8046 (find_methods): Update.
8047 (find_imps): Update.
8048 (find_objc_msgsend): Update.
8049 * objfiles.c (objfile_relocate1): Update.
8050 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8051 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8052 * p-valprint.c (pascal_val_print): Update.
8053 * parse.c (write_exp_msymbol): Update.
8054 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8055 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8056 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8057 * printcmd.c (build_address_symbolic): Update.
8058 (sym_info): Update.
8059 (address_info): Update.
8060 * proc-service.c (ps_pglobal_lookup): Update.
8061 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8062 (find_pc_sect_psymtab): Update.
8063 * python/py-framefilter.c (py_print_frame): Update.
8064 * ravenscar-thread.c (get_running_thread_id): Update.
8065 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8066 Update.
8067 * remote.c (remote_check_symbols): Update.
8068 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8069 (rs6000_skip_trampoline_code): Update.
8070 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8071 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8072 * solib-dsbt.c (lm_base): Update.
8073 * solib-frv.c (lm_base): Update.
8074 (main_got): Update.
8075 * solib-irix.c (locate_base): Update.
8076 * solib-som.c (som_solib_create_inferior_hook): Update.
8077 (som_solib_desire_dynamic_linker_symbols): Update.
8078 (link_map_start): Update.
8079 * solib-spu.c (spu_enable_break): Update.
8080 (ocl_enable_break): Update.
8081 * solib-svr4.c (elf_locate_base): Update.
8082 (enable_break): Update.
8083 * spu-tdep.c (spu_get_overlay_table): Update.
8084 (spu_catch_start): Update.
8085 (flush_ea_cache): Update.
8086 * stabsread.c (define_symbol): Update.
8087 (scan_file_globals): Update.
8088 * stack.c (find_frame_funname): Update.
8089 (frame_info): Update.
8090 * symfile.c (simple_read_overlay_table): Update.
8091 (simple_overlay_update): Update.
8092 * symmisc.c (dump_msymbols): Update.
8093 * symtab.c (fixup_section): Update.
8094 (find_pc_sect_line): Update.
8095 (skip_prologue_sal): Update.
8096 (search_symbols): Update.
8097 (print_msymbol_info): Update.
8098 (rbreak_command): Update.
8099 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8100 (completion_list_objc_symbol): Update.
8101 (default_make_symbol_completion_list_break_on): Update.
8102 * tracepoint.c (scope_info): Update.
8103 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8104 (tui_get_begin_asm_address): Update.
8105 * valops.c (find_function_in_inferior): Update.
8106 * value.c (value_static_field): Update.
8107 (value_fn_field): Update.
8108
50e65b17
TT
81092014-02-26 Tom Tromey <tromey@redhat.com>
8110
8111 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8112 bound minimal symbols. Move code that knows about minsym
8113 table layout...
8114 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8115 function.
8116 * minsyms.h (minimal_symbol_upper_bound): Declare.
8117 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8118 minimal_symbol_upper_bound.
8119
1b588015
JB
81202014-02-27 Joel Brobecker <brobecker@adacore.com>
8121
8122 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8123 Use the type's name if its basic type does not have a tag.
8124
dbb9c2b1
JB
81252014-02-27 Joel Brobecker <brobecker@adacore.com>
8126
8127 * dwarf2read.c (read_subrange_type): Add comment.
8128
55426c9d
JB
81292014-02-27 Joel Brobecker <brobecker@adacore.com>
8130
8131 * dwarf2read.c (update_enumeration_type_from_children): New
8132 function, mostly extracted from process_structure_scope.
8133 (read_enumeration_type): Call update_enumeration_type_from_children.
8134 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8135 and flag_flag_enum fields.
8136
f2fce0ca
PA
81372014-02-26 Pedro Alves <palves@redhat.com>
8138
8139 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8140 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8141 to_xfer_partial method.
8142
7a44e40e
PA
81432014-02-26 Pedro Alves <palves@redhat.com>
8144
8145 * target.c (complete_target_initialization): Don't install
8146 default_xfer_partial as to_xfer_partial hook.
8147 (nomemory): Delete.
8148 (update_current_target): Don't INHERIT nor de_fault
8149 deprecated_xfer_memory. Delete de_fault macro.
8150 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8151 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8152 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8153 field.
8154
bd265cd0
PA
81552014-02-26 Pedro Alves <palves@redhat.com>
8156
8157 * go32-nat.c (my_write_child): New function.
8158 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8159 (go32_xfer_partial): New function.
8160 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8161 Instead install a to_xfer_partial hook.
8162
9d46c4e5
PA
81632014-02-26 Pedro Alves <palves@redhat.com>
8164
8165 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8166 to_xfer_partial helper. Rewrite.
8167 (procfs_xfer_partial): New function.
8168 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8169 Install a to_xfer_partial hook.
8170
a1583b1f
PA
81712014-02-26 Pedro Alves <palves@redhat.com>
8172
8173 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8174 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8175 (m32r_xfer_partial): New function.
8176 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8177 Install a to_xfer_partial hook.
8178
6df1b29f
PA
81792014-02-26 Pedro Alves <palves@redhat.com>
8180
8181 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8182 helper.
8183 (mips_xfer_partial): New function.
8184 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8185 hook. Install a to_xfer_partial hook.
8186
dc53a7ad
JB
81872014-02-26 Joel Brobecker <brobecker@adacore.com>
8188
8189 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8190 * gdbtypes.c (create_array_type_with_stride): New function,
8191 renaming create_array_type, but with an added parameter
8192 called "bit_stride".
8193 (create_array_type): Re-implement using
8194 create_array_type_with_stride.
8195 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8196 and DW_AT_bit_stride attributes.
8197
12ab52e9
PA
81982014-02-26 Pedro Alves <palves@redhat.com>
8199
8200 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8201 task-specific breakpoints.
8202
d16461ae
PA
82032014-02-25 Pedro Alves <palves@redhat.com>
8204
8205 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8206 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8207
a8b16220
SS
82082014-02-25 Stan Shebs <stan@codesourcery.com>
8209
8210 * defs.h: Annotate comments for Doxygen.
8211
b9e795ee
TT
82122014-02-25 Tom Tromey <tromey@redhat.com>
8213
8214 * target.h (target_ignore): Don't declare.
8215 * target.c (target_ignore): Remove.
8216
849c862e
JK
82172014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8218
8219 PR gdb/16626
8220 * auto-load.c (auto_load_objfile_script_1): Change filename to
8221 debugfile.
8222
475109d8
JB
82232014-02-25 Joel Brobecker <brobecker@adacore.com>
8224
8225 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8226 documentation. Adjust prototype to match the target_ops
8227 to_xfer_partial method. Adjust implementation accordingly.
8228
e186c3bd
HZ
82292014-02-25 Hui Zhu <hui@codesourcery.com>
8230
8231 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8232 to_traceframe_info.
8233
6d451942
KB
82342014-02-25 Kevin Buettner <kevinb@redhat.com>
8235
041ab8b4 8236 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
8237 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8238 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8239 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8240 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8241 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8242 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8243 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8244 New constants.
8245 (rl78_register_type): Use a data pointer type for SP and
8246 new pseudo registers mentioned above. Use a 16 bit integer
8247 type for all other register pairs.
8248 (rl78_register_name, rl78_g10_register_name): Update for
8249 new pseudo registers.
8250 (rl78_pseudo_register_read): Likewise.
8251 (rl78_pseudo_register_write): Likewise.
8252 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8253 to the newly added pseudo registers.
8254
eddf0bae
DE
82552014-02-24 Doug Evans <dje@google.com>
8256
8257 * value.c (record_latest_value): Fix comment.
8258 * printcmd.c (print_command_1): Remove code to handle -1 return from
8259 record_latest_value.
8260
e96027e0
PA
82612014-02-24 Pedro Alves <palves@redhat.com>
8262
8263 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8264 deprecated_xfer_memory hook.
8265 (procfs_xfer_partial): Call procfs_xfer_memory instead
8266 of the deprecated_xfer_memory target hook.
8267 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8268 helper.
8269
0837c976
YZ
82702014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8271
8272 * windows-nat.c (windows_xfer_shared_libraries): Return
8273 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8274 requested object is TARGET_OBJECT_LIBRARIES.
8275
bc113b4e
YQ
82762014-02-24 Yao Qi <yao@codesourcery.com>
8277
8278 * target.h (enum target_xfer_status)
8279 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8280 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8281 explicitly. New.
8282 * corefile.c (memory_error_message): User updated.
8283 * exec.c (section_table_read_available_memory): Likewise.
8284 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8285 * target.c (target_xfer_status_to_string): Likewise.
8286 (raw_memory_xfer_partial): Likewise.
8287 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8288 * valops.c (read_value_memory): Likewise.
8289 * exec.h: Update comments.
8290
01cb8804
YQ
82912014-02-24 Yao Qi <yao@codesourcery.com>
8292
8293 * target.c (target_xfer_status_to_string): Rename argument err
8294 to status.
8295 * target.h (target_xfer_status_to_string): Update declaration.
8296 Replace target_xfer_error_to_string with
8297 target_xfer_status_to_string in comment.
8298
93063aa6
YQ
82992014-02-24 Yao Qi <yao@codesourcery.com>
8300
8301 * mips-linux-nat.c (super_close): Update its type.
8302 (mips_linux_close): Pass 'self' to super_close.
8303
5c328c05
YQ
83042014-02-24 Yao Qi <yao@codesourcery.com>
8305
8306 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8307 * corefile.c (read_memory): Adjusted.
8308 * target.c (target_write_with_progress): Adjusted.
8309
f73023dd
YQ
83102014-02-23 Yao Qi <yao@codesourcery.com>
8311
8312 Revert two patches:
8313
8314 2013-10-25 Yao Qi <yao@codesourcery.com>
8315
8316 * remote.c (remote_traceframe_info): Return early if
8317 traceframe is not selected.
8318
8319 2013-07-19 Yao Qi <yao@codesourcery.com>
8320
8321 * target.c (update_current_target): Change the default action
8322 of 'to_traceframe_info' from tcomplain to return_zero.
8323 * target.h (struct target_ops) <to_traceframe_info>: Add more
8324 comments.
8325
5a2eb0ef
YQ
83262014-02-23 Yao Qi <yao@codesourcery.com>
8327
8328 * valops.c (read_value_memory): Rewrite it. Call
8329 target_xfer_partial in a loop.
8330 * exec.h (section_table_available_memory): Remove declaration.
8331 Move comments to ...
8332 * exec.c (section_table_available_memory): ... here. Make it
8333 static.
8334
1ee79381
YQ
83352014-02-23 Yao Qi <yao@codesourcery.com>
8336
8337 * exec.c (section_table_read_available_memory): New function.
8338 * exec.h (section_table_read_available_memory): Declare.
8339 * ctf.c (ctf_xfer_partial): Call
8340 section_table_read_available_memory.
8341 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8342
1ca49d37
YQ
83432014-02-23 Yao Qi <yao@codesourcery.com>
8344
8345 * ctf.c (ctf_xfer_partial): Move code to ...
8346 * exec.c (exec_read_partial_read_only): ... it. New function.
8347 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8348 * tracefile.c: Include "exec.h".
8349 * exec.h (exec_read_partial_read_only): Declare.
8350
a283690e
YQ
83512014-02-23 Yao Qi <yao@codesourcery.com>
8352
8353 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8354 (tfile_has_memory): Remove.
8355 (init_tfile_ops): Don't set fields to_has_all_memory and
8356 to_has_memory of tfile_ops.
8357 * tracefile.c (tracefile_has_all_memory): New function.
8358 (tracefile_has_memory): New function.
8359 (init_tracefile_ops): Initialize fields to_has_all_memory and
8360 to_has_memory of 'ops'.
8361
12e03cd0
YQ
83622014-02-23 Yao Qi <yao@codesourcery.com>
8363
8364 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8365 (ctf_thread_alive, ctf_get_trace_status): Remove.
8366 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8367 init_tracefile_ops.
8368 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8369 (tfile_has_stack, tfile_has_registers): Remove.
8370 (tfile_thread_alive): Remove.
8371 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8372 init_tracefile_ops.
8373 * tracefile.c (tracefile_has_stack): New function.
8374 (tracefile_has_registers): New function.
8375 (tracefile_thread_alive): New function.
8376 (tracefile_get_trace_status): New function.
8377 (init_tracefile_ops): New function.
8378 * tracefile.h (init_tracefile_ops): Declare.
8379
11395323
YQ
83802014-02-23 Yao Qi <yao@codesourcery.com>
8381
8382 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8383 (O_LARGEFILE): Likewise.
8384 (tfile_ops): Likewise.
8385 (TRACE_HEADER_SIZE): Likewise.
8386 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8387 (cur_data_size): Likewise.
8388 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8389 (tfile_close, tfile_files_info): Likewise.
8390 (tfile_get_trace_status): Likewise.
8391 (tfile_get_tracepoint_status): Likewise.
8392 (tfile_get_traceframe_address): Likewise.
8393 (tfile_trace_find, match_blocktype): Likewise.
8394 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8395 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8396 (tfile_get_trace_state_variable_value): Likewise.
8397 (tfile_has_all_memory, tfile_has_memory): Likewise.
8398 (tfile_has_stack, tfile_has_registers): Likewise.
8399 (tfile_thread_alive, build_traceframe_info): Likewise.
8400 (tfile_traceframe_info, init_tfile_ops): Likewise.
8401 (_initialize_tracepoint): Don't call init_tfile_ops
8402 and add_target_with_completer.
8403 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8404 exec.h, completer.h and filenames.h.
8405 (_initialize_tracefile_tfile): New function.
8406
7951c4eb
YQ
84072014-02-23 Yao Qi <yao@codesourcery.com>
8408
8409 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8410 tracefile-tfile.o.
8411 (HFILES_NO_SRCDIR): Add tracefile.h.
8412 * ctf.c: Include "tracefile.h".
8413 * tracefile.h: New file.
8414 * tracefile.c: New file
8415 * tracefile-tfile.c: New file.
8416 * tracepoint.c: Include "tracefile.h".
8417 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8418 (stop_reason_names): Add const.
8419 (trace_file_writer_xfree): Move it to tracefile.c.
8420 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8421 (trace_save_ctf): Likewise.
8422 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8423 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8424 (tfile_write_header, tfile_write_regblock_type): Likewise.
8425 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8426 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8427 (tfile_write_raw_data, tfile_end): Likewise.
8428 (tfile_trace_file_writer_new): Likewise.
8429 (free_uploaded_tp): Make it extern.
8430 (free_uploaded_tsv): Make it extern.
8431 (_initialize_tracepoint): Move code to register command 'tsave'
8432 to tracefile.c.
8433 * tracepoint.h (stop_reason_names): Declare.
8434 (struct trace_frame_write_ops): Move it to tracefile.h.
8435 (struct trace_file_write_ops): Likewise.
8436 (struct trace_file_writer): Likewise.
8437 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8438
184cd072
JK
84392014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8440
8441 PR gdb/16594
8442 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8443 process name.
8444 (get_cores_used_by_process): New parameter num_cores, use it.
8445 (linux_xfer_osdata_processes): Pass num_cores to it.
8446 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8447 process name.
8448
c63528fc
AK
84492014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8450
8451 * target.c (memory_xfer_partial): Fix length arg in call to
8452 breakpoint_xfer_memory.
8453
d7b30f67
SDJ
84542014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8455
8456 PR tdep/16397
8457 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8458 number comes after the + or - signs. Adjust length of register
8459 name to be extracted.
8460
8838afaf
TT
84612014-02-20 Tom Tromey <tromey@redhat.com>
8462
8463 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8464 (ada_varobj_ops): Mark "extern".
8465
05227d14
TT
84662014-02-20 Tom Tromey <tromey@redhat.com>
8467
8468 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8469
1254eefc
DE
84702014-02-20 Doug Evans <xdje42@gmail.com>
8471
8472 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8473 All callers updated.
8474 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8475 All callers updated.
8476 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8477 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8478
adde2bff
DE
84792014-02-20 lin zuojian <manjian2006@gmail.com>
8480 Joel Brobecker <brobecker@adacore.com>
8481 Doug Evans <xdje42@gmail.com>
8482
8483 PR symtab/16581
8484 * dwarf2read.c (struct die_info): New member in_process.
8485 (reset_die_in_process): New function.
8486 (process_die): Set it at the start, reset when returning.
8487 (inherit_abstract_dies): Only call process_die if origin_child_die
8488 not already being processed.
8489
3be75f87
JB
84902014-02-20 Joel Brobecker <brobecker@adacore.com>
8491
8492 * windows-nat.c (handle_unload_dll): Add function documentation.
8493 (do_initial_windows_stuff): Add comment explaining why we wait
8494 until after inferior initialization has finished before
8495 processing all DLLs.
8496
47f7ffdb
JB
84972014-02-20 Joel Brobecker <brobecker@adacore.com>
8498
8499 * windows-nat.c (get_module_name): Delete.
8500 (windows_get_exec_module_filename): New function, mostly
8501 inspired from get_module_name.
8502 (windows_pid_to_exec_file): Replace call to get_module_name
8503 by call to windows_get_exec_module_filename.
8504
1cd9feab
JB
85052014-02-20 Joel Brobecker <brobecker@adacore.com>
8506
8507 * windows-nat.c (handle_load_dll): Rewrite this function's
8508 introductory comment. Remove code using get_module_name
8509 to get the DLL's name.
8510
ea39ad35
JB
85112014-02-20 Joel Brobecker <brobecker@adacore.com>
8512
8513 * windows-nat.c (get_windows_debug_event): Ignore
8514 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8515 if windows_initialization_done == 0.
8516 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8517 Adjust implementation to always load all DLLs.
8518 (do_initial_windows_stuff): Replace call to
8519 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8520
95060284
JB
85212014-02-20 Joel Brobecker <brobecker@adacore.com>
8522
8523 * windows-nat.c (_initialize_windows_nat): Deprecate the
8524 "dll-symbols" command. Turn the "add-shared-symbol-files"
8525 and "assf" aliases into commands, and deprecate them as well.
8526 * NEWS: Add entry explaining that "dll-symbols" and its two
8527 aliases are now deprecated.
8528
8d4fdb12
JB
85292014-02-20 Joel Brobecker <brobecker@adacore.com>
8530
8531 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8532 new-line in debug string. Remove trailing spaces.
8533
1b281443
SS
85342014-02-19 Stan Shebs <stan@codesourcery.com>
8535
8536 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8537
f7bd0f78
SC
85382014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8539
8540 * NEWS: Add entry for the new feature
8541 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8542 and class values.
8543
399ebc3d
SS
85442014-02-19 Stan Shebs <stan@codesourcery.com>
8545
8546 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8547
c658158d
PA
85482014-02-19 Pedro Alves <palves@redhat.com>
8549
8550 * common/ptid.h (struct ptid): Mention that process_stratum
8551 targets should prefer ptid.lwp.
8552
ba348170
PA
85532014-02-19 Pedro Alves <palves@redhat.com>
8554
8555 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8556 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8557 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8558 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8559 store remote thread ids rather than ptid.tid.
8560 (_initialize_remote): Adjust.
8561
ac01945b
TT
85622014-02-19 Tom Tromey <tromey@redhat.com>
8563
8564 * target.c (target_get_unwinder): Rewrite.
8565 (target_get_tailcall_unwinder): Rewrite.
8566 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8567 (record_btrace_to_get_tailcall_unwinder): New function.
8568 (init_record_btrace_ops): Update.
8569 * target.h (struct target_ops) <to_get_unwinder,
8570 to_get_tailcall_unwinder>: Now function pointers. Use
8571 TARGET_DEFAULT_RETURN.
8572
8476dc92
TT
85732014-02-19 Tom Tromey <tromey@redhat.com>
8574
8575 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8576 argument.
8577 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8578
c0eca49f
TT
85792014-02-19 Tom Tromey <tromey@redhat.com>
8580
8581 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8582 directly.
8583 * target-delegates.c: Rebuild.
8584 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8585 TARGET_DEFAULT_FUNC.
8586 * target.c (default_target_decr_pc_after_break): Rename from
8587 forward_target_decr_pc_after_break. Simplify.
8588 (target_decr_pc_after_break): Rely on delegation.
8589
596b6b39
TT
85902014-02-19 Tom Tromey <tromey@redhat.com>
8591
8592 * target.c (update_current_target): Do not INHERIT to_doc or
8593 to_magic. Do not de_fault to_open or to_close.
8594
b427c1bc
TT
85952014-02-19 Tom Tromey <tromey@redhat.com>
8596
8597 * gcore.h (objfile_find_memory_regions): Declare.
8598 * gcore.c (objfile_find_memory_regions): No longer static. Add
8599 "self" argument.
8600 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8601 * exec.c: Include gcore.h.
8602 (exec_set_find_memory_regions): Remove.
8603 (exec_find_memory_regions): Remove.
8604 (exec_do_find_memory_regions): Remove.
8605 (init_exec_ops): Update.
8606 * defs.h (exec_set_find_memory_regions): Remove.
8607
9b144037
TT
86082014-02-19 Tom Tromey <tromey@redhat.com>
8609
8610 * target-delegates.c: Rebuild.
8611 * target.h (struct target_ops) <to_extra_thread_info,
8612 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8613 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8614 not 0, in TARGET_DEFAULT_RETURN.
8615
555bbdeb
TT
86162014-02-19 Tom Tromey <tromey@redhat.com>
8617
8618 * target.c (complete_target_initialization): Remove casts. Use
8619 return_zero_has_execution.
8620 (return_zero): Add "ignore" argument.
8621 (return_zero_has_execution): New function.
8622 (init_dummy_target): Remove casts. Use
8623 return_zero_has_execution.
8624
be4ddd36
TT
86252014-02-19 Tom Tromey <tromey@redhat.com>
8626
8627 * target.c (update_current_target): Update comments. Do not
8628 INHERIT to_stratum.
8629
2117c711
TT
86302014-02-19 Tom Tromey <tromey@redhat.com>
8631
8632 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8633 needed.
8634 * corelow.c (core_read_description): Delegate when needed.
8635 * remote.c (remote_read_description): Delegate when needed.
8636 * target-delegates.c: Rebuild.
8637 * target.c (target_read_description): Rewrite.
8638 * target.h (struct target_ops) <to_read_description>: Update
8639 comment. Use TARGET_DEFAULT_RETURN.
8640
e88ef65c
TT
86412014-02-19 Tom Tromey <tromey@redhat.com>
8642
8643 * target-delegates.c: Rebuild.
8644 * target.c (update_current_target): Don't inherit or default
8645 to_can_run.
8646 (find_default_run_target): Check against delegate_can_run.
8647 * target.h (struct target_ops) <to_can_run>: Use
8648 TARGET_DEFAULT_RETURN.
8649
86a0854a
TT
86502014-02-19 Tom Tromey <tromey@redhat.com>
8651
8652 * target-delegates.c: Rebuild.
8653 * target.c (target_disconnect): Unconditionally delegate.
8654 * target.h (struct target_ops) <to_disconnect>: Use
8655 TARGET_DEFAULT_NORETURN.
8656
ee97f592
TT
86572014-02-19 Tom Tromey <tromey@redhat.com>
8658
8659 * record.c (record_stop): Unconditionally delegate.
8660 * target-delegates.c: Rebuild.
8661 * target.c (target_stop_recording): Unconditionally delegate.
8662 * target.h (struct target_ops) <to_stop_recording>: Use
8663 TARGET_DEFAULT_IGNORE.
8664
6dc7fcf4
TT
86652014-02-19 Tom Tromey <tromey@redhat.com>
8666
8667 * target-delegates.c: Rebuild.
8668 * target.c (target_enable_btrace): Unconditionally delegate.
8669 * target.h (struct target_ops) <to_enable_btrace>: Use
8670 TARGET_DEFAULT_NORETURN.
8671
eb5b20d4
TT
86722014-02-19 Tom Tromey <tromey@redhat.com>
8673
8674 * target-delegates.c: Rebuild.
8675 * target.c (target_read_btrace): Unconditionally delegate.
8676 * target.h (struct target_ops) <to_read_btrace>: Use
8677 TARGET_DEFAULT_NORETURN.
8678
9ace480d
TT
86792014-02-19 Tom Tromey <tromey@redhat.com>
8680
8681 * target-delegates.c: Rebuild.
8682 * target.c (target_teardown_btrace): Unconditionally delegate.
8683 * target.h (struct target_ops) <to_teardown_btrace>: Use
8684 TARGET_DEFAULT_NORETURN.
8685
8dc292d3
TT
86862014-02-19 Tom Tromey <tromey@redhat.com>
8687
8688 * target-delegates.c: Rebuild.
8689 * target.c (target_disable_btrace): Unconditionally delegate.
8690 * target.h (struct target_ops) <to_disable_btrace>: Use
8691 TARGET_DEFAULT_NORETURN.
8692
58a5184e
TT
86932014-02-19 Tom Tromey <tromey@redhat.com>
8694
8695 * target-delegates.c: Rebuild.
8696 * target.c (default_search_memory): New function.
8697 (simple_search_memory): Update comment.
8698 (target_search_memory): Unconditionally delegate.
8699 * target.h (struct target_ops) <to_search_memory>: Use
8700 TARGET_DEFAULT_FUNC.
8701
8de71aab
TT
87022014-02-19 Tom Tromey <tromey@redhat.com>
8703
8704 * auxv.c (default_auxv_parse): No longer static.
8705 (target_auxv_parse): Unconditionally delegate.
8706 * auxv.h (default_auxv_parse): Declare.
8707 * target-delegates.c: Rebuild.
8708 * target.c: Include auxv.h.
8709 * target.h (struct target_ops) <to_auxv_parse>: Use
8710 TARGET_DEFAULT_FUNC.
8711
6b2c5a57
TT
87122014-02-19 Tom Tromey <tromey@redhat.com>
8713
8714 * target-delegates.c: Rebuild.
8715 * target.c (target_memory_map): Unconditionally delegate.
8716 * target.h (struct target_ops) <to_memory_map>: Use
8717 TARGET_DEFAULT_RETURN.
8718
cbffc065
TT
87192014-02-19 Tom Tromey <tromey@redhat.com>
8720
8721 * target-delegates.c: Rebuild.
8722 * target.c (target_thread_alive): Unconditionally delegate.
8723 * target.h (struct target_ops) <to_thread_alive>: Use
8724 TARGET_DEFAULT_RETURN.
8725
f09e2107
TT
87262014-02-19 Tom Tromey <tromey@redhat.com>
8727
8728 * target-delegates.c: Rebuild.
8729 * target.c (target_save_record): Unconditionally delegate.
8730 * target.h (struct target_ops) <to_save_record>: Use
8731 TARGET_DEFAULT_NORETURN.
8732
07366925
TT
87332014-02-19 Tom Tromey <tromey@redhat.com>
8734
8735 * target-delegates.c: Rebuild.
8736 * target.c (target_delete_record): Unconditionally delegate.
8737 * target.h (struct target_ops) <to_delete_record>: Use
8738 TARGET_DEFAULT_NORETURN.
8739
dd2e9d25
TT
87402014-02-19 Tom Tromey <tromey@redhat.com>
8741
8742 * target-delegates.c: Rebuild.
8743 * target.c (target_record_is_replaying): Unconditionally
8744 delegate.
8745 * target.h (struct target_ops) <to_record_is_replaying>: Use
8746 TARGET_DEFAULT_RETURN.
8747
671e76cc
TT
87482014-02-19 Tom Tromey <tromey@redhat.com>
8749
8750 * target-delegates.c: Rebuild.
8751 * target.c (target_goto_record_begin): Unconditionally delegate.
8752 * target.h (struct target_ops) <to_goto_record_begin>: Use
8753 TARGET_DEFAULT_NORETURN.
8754
e9179bb3
TT
87552014-02-19 Tom Tromey <tromey@redhat.com>
8756
8757 * target-delegates.c: Rebuild.
8758 * target.c (target_goto_record_end): Unconditionally delegate.
8759 * target.h (struct target_ops) <to_goto_record_end>: Use
8760 TARGET_DEFAULT_NORETURN.
8761
05969c84
TT
87622014-02-19 Tom Tromey <tromey@redhat.com>
8763
8764 * target-delegates.c: Rebuild.
8765 * target.c (target_goto_record): Unconditionally delegate.
8766 * target.h (struct target_ops) <to_goto_record>: Use
8767 TARGET_DEFAULT_NORETURN.
8768
3679abfa
TT
87692014-02-19 Tom Tromey <tromey@redhat.com>
8770
8771 * target-delegates.c: Rebuild.
8772 * target.c (target_insn_history): Unconditionally delegate.
8773 * target.h (struct target_ops) <to_insn_history>: Use
8774 TARGET_DEFAULT_NORETURN.
8775
8444ab58
TT
87762014-02-19 Tom Tromey <tromey@redhat.com>
8777
8778 * target-delegates.c: Rebuild.
8779 * target.c (target_insn_history_from): Unconditionally delegate.
8780 * target.h (struct target_ops) <to_insn_history_from>: Use
8781 TARGET_DEFAULT_NORETURN.
8782
c29302cc
TT
87832014-02-19 Tom Tromey <tromey@redhat.com>
8784
8785 * target-delegates.c: Rebuild.
8786 * target.c (target_insn_history_range): Unconditionally delegate.
8787 * target.h (struct target_ops) <to_insn_history_range>: Use
8788 TARGET_DEFAULT_NORETURN.
8789
170049d4
TT
87902014-02-19 Tom Tromey <tromey@redhat.com>
8791
8792 * target-delegates.c: Rebuild.
8793 * target.c (target_call_history): Unconditionally delegate.
8794 * target.h (struct target_ops) <to_call_history>: Use
8795 TARGET_DEFAULT_NORETURN.
8796
16fc27d6
TT
87972014-02-19 Tom Tromey <tromey@redhat.com>
8798
8799 * target-delegates.c: Rebuild.
8800 * target.c (target_call_history_from): Unconditionally delegate.
8801 * target.h (struct target_ops) <to_call_history_from>: Use
8802 TARGET_DEFAULT_NORETURN.
8803
115d9817
TT
88042014-02-19 Tom Tromey <tromey@redhat.com>
8805
8806 * target-delegates.c: Rebuild.
8807 * target.c (target_call_history_range): Unconditionally delegate.
8808 * target.h (struct target_ops) <to_call_history_range>: Use
8809 TARGET_DEFAULT_NORETURN.
8810
eb276a6b
TT
88112014-02-19 Tom Tromey <tromey@redhat.com>
8812
8813 * target-delegates.c: Rebuild.
8814 * target.c (target_verify_memory): Unconditionally delegate.
8815 * target.h (struct target_ops) <to_verify_memory>: Use
8816 TARGET_DEFAULT_NORETURN.
8817
9e538d0d
TT
88182014-02-19 Tom Tromey <tromey@redhat.com>
8819
8820 * target-delegates.c: Rebuild.
8821 * target.c (target_core_of_thread): Unconditionally delegate.
8822 * target.h (struct target_ops) <to_core_of_thread>: Use
8823 TARGET_DEFAULT_RETURN.
8824
f6fb2925
TT
88252014-02-19 Tom Tromey <tromey@redhat.com>
8826
8827 * target-delegates.c: Rebuild.
8828 * target.c (target_flash_done): Unconditionally delegate.
8829 * target.h (struct target_ops) <to_flash_done>: Use
8830 TARGET_DEFAULT_NORETURN.
8831
e8a6c6ac
TT
88322014-02-19 Tom Tromey <tromey@redhat.com>
8833
8834 * target-delegates.c: Rebuild.
8835 * target.c (target_flash_erase): Unconditionally delegate.
8836 * target.h (struct target_ops) <to_flash_erase>: Use
8837 TARGET_DEFAULT_NORETURN.
8838
7e35c012
TT
88392014-02-19 Tom Tromey <tromey@redhat.com>
8840
8841 * target-delegates.c: Rebuild.
8842 * target.c (target_get_section_table): Unconditionally delegate.
8843 * target.h (struct target_ops) <to_get_section_table>: Use
8844 TARGET_DEFAULT_RETURN.
8845
770234d3
TT
88462014-02-19 Tom Tromey <tromey@redhat.com>
8847
8848 * target-delegates.c: Rebuild.
8849 * target.c (target_pid_to_str): Unconditionally delegate.
8850 (init_dummy_target): Don't initialize to_pid_to_str.
8851 (default_pid_to_str): Rename from dummy_pid_to_str.
8852 * target.h (struct target_ops) <to_pid_to_str>: Use
8853 TARGET_DEFAULT_FUNC.
8854
09b0dc2b
TT
88552014-02-19 Tom Tromey <tromey@redhat.com>
8856
8857 * target-delegates.c: Rebuild.
8858 * target.c (target_find_new_threads): Unconditionally delegate.
8859 * target.h (struct target_ops) <to_find_new_threads>: Use
8860 TARGET_DEFAULT_RETURN.
8861
7d4f8efa
TT
88622014-02-19 Tom Tromey <tromey@redhat.com>
8863
8864 * target-delegates.c: Rebuild.
8865 * target.c (target_program_signals): Unconditionally delegate.
8866 * target.h (struct target_ops) <to_program_signals>: Use
8867 TARGET_DEFAULT_IGNORE.
8868
035cad7f
TT
88692014-02-19 Tom Tromey <tromey@redhat.com>
8870
8871 * target-delegates.c: Rebuild.
8872 * target.c (target_pass_signals): Unconditionally delegate.
8873 * target.h (struct target_ops) <to_pass_signals>: Use
8874 TARGET_DEFAULT_IGNORE.
8875
8d657035
TT
88762014-02-19 Tom Tromey <tromey@redhat.com>
8877
8878 * target-delegates.c: Rebuild.
8879 * target.c (default_mourn_inferior): New function.
8880 (target_mourn_inferior): Unconditionally delegate.
8881 * target.h (struct target_ops) <to_mourn_inferior>: Use
8882 TARGET_DEFAULT_FUNC.
8883
098dba18
TT
88842014-02-19 Tom Tromey <tromey@redhat.com>
8885
8886 * target-delegates.c: Rebuild.
8887 * target.c (default_follow_fork): New function.
8888 (target_follow_fork): Unconditionally delegate.
8889 * target.h (struct target_ops) <to_follow_fork>: Use
8890 TARGET_DEFAULT_FUNC.
8891
423a4807
TT
88922014-02-19 Tom Tromey <tromey@redhat.com>
8893
8894 * target-delegates.c: Rebuild.
8895 * target.c (target_kill): Unconditionally delegate.
8896 * target.h (struct target_ops) <to_kill>: Use
8897 TARGET_DEFAULT_NORETURN.
8898
6c7e5e5c
TT
88992014-02-19 Tom Tromey <tromey@redhat.com>
8900
8901 * target-delegates.c: Rebuild.
8902 * target.c (target_masked_watch_num_registers): Unconditionally
8903 delegate.
8904 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8905 Use TARGET_DEFAULT_RETURN.
8906
8b1c364c
TT
89072014-02-19 Tom Tromey <tromey@redhat.com>
8908
8909 * target-delegates.c: Rebuild.
8910 * target.c (target_remove_mask_watchpoint): Unconditionally
8911 delegate.
8912 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8913 TARGET_DEFAULT_RETURN.
8914
cd4ae029
TT
89152014-02-19 Tom Tromey <tromey@redhat.com>
8916
8917 * target-delegates.c: Rebuild.
8918 * target.c (target_insert_mask_watchpoint): Unconditionally
8919 delegate.
8920 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8921 TARGET_DEFAULT_RETURN.
8922
a134316b
TT
89232014-02-19 Tom Tromey <tromey@redhat.com>
8924
8925 * target-delegates.c: Rebuild.
8926 * target.c (target_ranged_break_num_registers): Unconditionally
8927 delegate.
8928 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8929 Use TARGET_DEFAULT_RETURN.
8930
ad5989bd
TT
89312014-02-19 Tom Tromey <tromey@redhat.com>
8932
8933 * target-delegates.c: Rebuild.
8934 * target.c (target_fetch_registers): Unconditionally delegate.
8935 * target.h (struct target_ops) <to_fetch_registers>: Use
8936 TARGET_DEFAULT_NORETURN.
8937
46ee7e8d
TT
89382014-02-19 Tom Tromey <tromey@redhat.com>
8939
8940 * target-delegates.c: Rebuild.
8941 * target.c (update_current_target): Don't inherit or default
8942 to_stop.
8943 * target.h (struct target_ops) <to_stop>: Use
8944 TARGET_DEFAULT_IGNORE.
8945
843f59ed
TT
89462014-02-19 Tom Tromey <tromey@redhat.com>
8947
8948 * target-delegates.c: Rebuild.
8949 * target.c (update_current_target): Don't inherit or default
8950 to_can_run_breakpoint_commands.
8951 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8952 Use TARGET_DEFAULT_RETURN.
8953
ccfde2a0
TT
89542014-02-19 Tom Tromey <tromey@redhat.com>
8955
8956 * target-delegates.c: Rebuild.
8957 * target.c (update_current_target): Don't inherit or default
8958 to_supports_evaluation_of_breakpoint_conditions.
8959 * target.h (struct target_ops)
8960 <to_supports_evaluation_of_breakpoint_conditions>: Use
8961 TARGET_DEFAULT_RETURN.
8962
0de91722
TT
89632014-02-19 Tom Tromey <tromey@redhat.com>
8964
8965 * target-delegates.c: Rebuild.
8966 * target.c (update_current_target): Don't inherit or default
8967 to_augmented_libraries_svr4_read.
8968 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8969 Use TARGET_DEFAULT_RETURN.
8970
9a7d8b48
TT
89712014-02-19 Tom Tromey <tromey@redhat.com>
8972
8973 * target-delegates.c: Rebuild.
8974 * target.c (update_current_target): Don't inherit or default
8975 to_can_use_agent.
8976 * target.h (struct target_ops) <to_can_use_agent>: Use
8977 TARGET_DEFAULT_RETURN.
8978
d9db5b21
TT
89792014-02-19 Tom Tromey <tromey@redhat.com>
8980
8981 * target-delegates.c: Rebuild.
8982 * target.c (update_current_target): Don't inherit or default
8983 to_use_agent.
8984 * target.h (struct target_ops) <to_use_agent>: Use
8985 TARGET_DEFAULT_NORETURN.
8986
92155eeb
TT
89872014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * target-delegates.c: Rebuild.
8990 * target.c (update_current_target): Don't inherit or default
8991 to_traceframe_info.
8992 (return_null): Remove.
8993 * target.h (struct target_ops) <to_traceframe_info>: Use
8994 TARGET_DEFAULT_RETURN.
8995
d6522a22
TT
89962014-02-19 Tom Tromey <tromey@redhat.com>
8997
8998 * target-delegates.c: Rebuild.
8999 * target.c (update_current_target): Don't inherit or default
9000 to_static_tracepoint_markers_by_strid.
9001 * target.h (struct target_ops)
9002 <to_static_tracepoint_markers_by_strid>: Use
9003 TARGET_DEFAULT_NORETURN.
9004
4c3e4425
TT
90052014-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_static_tracepoint_marker_at.
9010 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9011 Use TARGET_DEFAULT_RETURN.
9012
dcd6917f
TT
90132014-02-19 Tom Tromey <tromey@redhat.com>
9014
9015 * target-delegates.c: Rebuild.
9016 * target.c (update_current_target): Don't inherit or default
9017 to_set_permissions.
9018 * target.h (struct target_ops) <to_set_permissions>: Use
9019 TARGET_DEFAULT_IGNORE.
9020
22bcceee
TT
90212014-02-19 Tom Tromey <tromey@redhat.com>
9022
9023 * target-delegates.c: Rebuild.
9024 * target.c (update_current_target): Don't inherit or default
9025 to_get_tib_address.
9026 * target.h (struct target_ops) <to_get_tib_address>: Use
9027 TARGET_DEFAULT_NORETURN.
9028
8586ccaa
TT
90292014-02-19 Tom Tromey <tromey@redhat.com>
9030
9031 * target-delegates.c: Rebuild.
9032 * target.c (update_current_target): Don't inherit or default
9033 to_set_trace_notes.
9034 * target.h (struct target_ops) <to_set_trace_notes>: Use
9035 TARGET_DEFAULT_RETURN.
9036
91df8d1d
TT
90372014-02-19 Tom Tromey <tromey@redhat.com>
9038
9039 * target-delegates.c: Rebuild.
9040 * target.c (update_current_target): Don't initialize
9041 to_set_trace_buffer_size.
9042 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9043 TARGET_DEFAULT_IGNORE.
9044
8d526939
TT
90452014-02-19 Tom Tromey <tromey@redhat.com>
9046
9047 * target-delegates.c: Rebuild.
9048 * target.c (update_current_target): Don't inherit or default
9049 to_set_circular_trace_buffer.
9050 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9051 TARGET_DEFAULT_IGNORE.
9052
0bcfeddf
TT
90532014-02-19 Tom Tromey <tromey@redhat.com>
9054
9055 * target-delegates.c: Rebuild.
9056 * target.c (update_current_target): Don't inherit or default
9057 to_set_disconnected_tracing.
9058 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9059 TARGET_DEFAULT_IGNORE.
9060
9249843f
TT
90612014-02-19 Tom Tromey <tromey@redhat.com>
9062
9063 * target-delegates.c: Rebuild.
9064 * target.c (update_current_target): Don't inherit or default
9065 to_get_min_fast_tracepoint_insn_len.
9066 (return_minus_one): Remove.
9067 * target.h (struct target_ops)
9068 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9069
ace92e7d
TT
90702014-02-19 Tom Tromey <tromey@redhat.com>
9071
9072 * target-delegates.c: Rebuild.
9073 * target.c (update_current_target): Don't inherit or default
9074 to_get_raw_trace_data.
9075 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9076 TARGET_DEFAULT_NORETURN.
9077
08120467
TT
90782014-02-19 Tom Tromey <tromey@redhat.com>
9079
9080 * target-delegates.c: Rebuild.
9081 * target.c (update_current_target): Don't inherit or default
9082 to_upload_trace_state_variables.
9083 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9084 Use TARGET_DEFAULT_RETURN.
9085
1e949b00
TT
90862014-02-19 Tom Tromey <tromey@redhat.com>
9087
9088 * target-delegates.c: Rebuild.
9089 * target.c (update_current_target): Don't inherit or default
9090 to_upload_tracepoints.
9091 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9092 TARGET_DEFAULT_RETURN.
9093
a2e6c147
TT
90942014-02-19 Tom Tromey <tromey@redhat.com>
9095
9096 * target-delegates.c: Rebuild.
9097 * target.c (update_current_target): Don't inherit or default
9098 to_save_trace_data.
9099 * target.h (struct target_ops) <to_save_trace_data>: Use
9100 TARGET_DEFAULT_NORETURN.
9101
959bcd0b
TT
91022014-02-19 Tom Tromey <tromey@redhat.com>
9103
9104 * target-delegates.c: Rebuild.
9105 * target.c (update_current_target): Don't inherit or default
9106 to_get_trace_state_variable_value.
9107 * target.h (struct target_ops)
9108 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9109
afc94e66
TT
91102014-02-19 Tom Tromey <tromey@redhat.com>
9111
9112 * target-delegates.c: Rebuild.
9113 * target.c (update_current_target): Don't inherit or default
9114 to_trace_find.
9115 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9116
e51c07ea
TT
91172014-02-19 Tom Tromey <tromey@redhat.com>
9118
9119 * target-delegates.c: Rebuild.
9120 * target.c (update_current_target): Don't inherit or default
9121 to_trace_stop.
9122 * target.h (struct target_ops) <to_trace_stop>: Use
9123 TARGET_DEFAULT_NORETURN.
9124
6fea14cd
TT
91252014-02-19 Tom Tromey <tromey@redhat.com>
9126
9127 * target-delegates.c: Rebuild.
9128 * target.c (update_current_target): Don't inherit or default
9129 to_get_tracepoint_status.
9130 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9131 TARGET_DEFAULT_NORETURN.
9132
4072d4ff
TT
91332014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target-delegates.c: Rebuild.
9136 * target.c (update_current_target): Don't inherit or default
9137 to_get_trace_status.
9138 * target.h (struct target_ops) <to_get_trace_status>: Use
9139 TARGET_DEFAULT_RETURN.
9140
25da2e80
TT
91412014-02-19 Tom Tromey <tromey@redhat.com>
9142
9143 * target-delegates.c: Rebuild.
9144 * target.c (update_current_target): Don't inherit or default
9145 to_trace_start.
9146 * target.h (struct target_ops) <to_trace_start>: Use
9147 TARGET_DEFAULT_NORETURN.
9148
86dd181d
TT
91492014-02-19 Tom Tromey <tromey@redhat.com>
9150
9151 * target-delegates.c: Rebuild.
9152 * target.c (update_current_target): Don't inherit or default
9153 to_trace_set_readonly_regions.
9154 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9155 Use TARGET_DEFAULT_NORETURN.
9156
05c41993
TT
91572014-02-19 Tom Tromey <tromey@redhat.com>
9158
9159 * target-delegates.c: Rebuild.
9160 * target.c (update_current_target): Don't inherit or default
9161 to_disable_tracepoint.
9162 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9163 TARGET_DEFAULT_NORETURN.
9164
151f70f1
TT
91652014-02-19 Tom Tromey <tromey@redhat.com>
9166
9167 * target-delegates.c: Rebuild.
9168 * target.c (update_current_target): Don't inherit or default
9169 to_enable_tracepoint.
9170 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9171 TARGET_DEFAULT_NORETURN.
9172
94eb98b9
TT
91732014-02-19 Tom Tromey <tromey@redhat.com>
9174
9175 * target-delegates.c: Rebuild.
9176 * target.c (update_current_target): Don't inherit or default
9177 to_download_trace_state_variable.
9178 * target.h (struct target_ops) <to_download_trace_state_variable>:
9179 Use TARGET_DEFAULT_NORETURN.
9180
719acc4a
TT
91812014-02-19 Tom Tromey <tromey@redhat.com>
9182
9183 * target-delegates.c: Rebuild.
9184 * target.c (update_current_target): Don't inherit or default
9185 to_can_download_tracepoint.
9186 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9187 TARGET_DEFAULT_RETURN.
9188
9a980a22
TT
91892014-02-19 Tom Tromey <tromey@redhat.com>
9190
9191 * target-delegates.c: Rebuild.
9192 * target.c (update_current_target): Don't inherit or default
9193 to_download_tracepoint.
9194 * target.h (struct target_ops) <to_download_tracepoint>: Use
9195 TARGET_DEFAULT_NORETURN.
9196
5536135b
TT
91972014-02-19 Tom Tromey <tromey@redhat.com>
9198
9199 * target-delegates.c: Rebuild.
9200 * target.c (update_current_target): Don't inherit or default
9201 to_trace_init.
9202 * target.h (struct target_ops) <to_trace_init>: Use
9203 TARGET_DEFAULT_RETURN.
9204
9409d39e
TT
92052014-02-19 Tom Tromey <tromey@redhat.com>
9206
9207 * target-delegates.c: Rebuild.
9208 * target.c (update_current_target): Don't inherit or default
9209 to_supports_string_tracing.
9210 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9211 TARGET_DEFAULT_RETURN.
9212
aab1b22d
TT
92132014-02-19 Tom Tromey <tromey@redhat.com>
9214
9215 * target-delegates.c: Rebuild.
9216 * target.c (update_current_target): Don't inherit or default
9217 to_supports_enable_disable_tracepoint.
9218 * target.h (struct target_ops)
9219 <to_supports_enable_disable_tracepoint>: Use
9220 TARGET_DEFAULT_RETURN.
9221
a7304748
TT
92222014-02-19 Tom Tromey <tromey@redhat.com>
9223
9224 * target-delegates.c: Rebuild.
9225 * target.c (update_current_target): Don't inherit or default
9226 to_supports_multi_process.
9227 * target.h (struct target_ops) <to_supports_multi_process>: Use
9228 TARGET_DEFAULT_RETURN.
9229
4229b31d
TT
92302014-02-19 Tom Tromey <tromey@redhat.com>
9231
9232 * target-delegates.c: Rebuild.
9233 * target.c (update_current_target): Don't inherit or default
9234 to_get_ada_task_ptid.
9235 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9236 TARGET_DEFAULT_FUNC.
9237
43eba180
TT
92382014-02-19 Tom Tromey <tromey@redhat.com>
9239
9240 * target-delegates.c: Rebuild.
9241 * target.c (update_current_target): Don't inherit or default
9242 to_thread_architecture.
9243 * target.h (struct target_ops) <to_thread_architecture>: Use
9244 TARGET_DEFAULT_FUNC.
9245
fe31bf5b
TT
92462014-02-19 Tom Tromey <tromey@redhat.com>
9247
9248 * target-delegates.c: Rebuild.
9249 * target.c (update_current_target): Don't inherit or default
9250 to_execution_direction.
9251 * target.h (struct target_ops) <to_execution_direction>: Use
9252 TARGET_DEFAULT_FUNC.
9253
53e1cfc7
TT
92542014-02-19 Tom Tromey <tromey@redhat.com>
9255
9256 * target-delegates.c: Rebuild.
9257 * target.c (update_current_target): Don't inherit or default
9258 to_can_execute_reverse.
9259 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9260 TARGET_DEFAULT_RETURN.
9261 (target_can_execute_reverse): Unconditionally delegate.
9262
9bb9d61d
TT
92632014-02-19 Tom Tromey <tromey@redhat.com>
9264
9265 * target-delegates.c: Rebuild.
9266 * target.c (update_current_target): Don't inherit or default
9267 to_goto_bookmark.
9268 (dummy_goto_bookmark): Remove.
9269 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9270 * target.h (struct target_ops) <to_goto_bookmark>: Use
9271 TARGET_DEFAULT_NORETURN.
9272
3dbafbbb
TT
92732014-02-19 Tom Tromey <tromey@redhat.com>
9274
9275 * target-delegates.c: Rebuild.
9276 * target.c (update_current_target): Don't inherit or default
9277 to_get_bookmark.
9278 (dummy_get_bookmark): Remove.
9279 (init_dummy_target): Don't inherit or default to_get_bookmark.
9280 * target.h (struct target_ops) <to_get_bookmark>: Use
9281 TARGET_DEFAULT_NORETURN
9282
16f796b1
TT
92832014-02-19 Tom Tromey <tromey@redhat.com>
9284
9285 * target-delegates.c: Rebuild.
9286 * target.c (update_current_target): Don't inherit or default
9287 to_make_corefile_notes.
9288 (init_dummy_target): Don't initialize to_make_corefile_notes.
9289 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9290 TARGET_DEFAULT_FUNC.
9291
0b5a2719
TT
92922014-02-19 Tom Tromey <tromey@redhat.com>
9293
9294 * target-delegates.c: Rebuild.
9295 * target.c (update_current_target): Don't inherit or default
9296 to_find_memory_regions.
9297 (init_dummy_target): Don't initialize to_find_memory_regions.
9298 * target.h (struct target_ops) <to_find_memory_regions>: Use
9299 TARGET_DEFAULT_FUNC.
9300
d9cb0195
TT
93012014-02-19 Tom Tromey <tromey@redhat.com>
9302
9303 * target-delegates.c: Rebuild.
9304 * target.c (update_current_target): Don't inherit or default
9305 to_log_command.
9306 * target.h (struct target_ops) <to_log_command>: Use
9307 TARGET_DEFAULT_IGNORE.
9308 (target_log_command): Unconditionally delegate.
9309
830ca330
TT
93102014-02-19 Tom Tromey <tromey@redhat.com>
9311
9312 * target-delegates.c: Rebuild.
9313 * target.c (update_current_target): Don't inherit or default
9314 to_pid_to_exec_file.
9315 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9316 TARGET_DEFAULT_RETURN.
9317
825828fc
TT
93182014-02-19 Tom Tromey <tromey@redhat.com>
9319
9320 * target-delegates.c: Rebuild.
9321 * target.c (update_current_target): Don't inherit or default
9322 to_thread_name.
9323 (target_thread_name): Unconditionally delegate.
9324 * target.h (struct target_ops) <to_thread_name>: Use
9325 TARGET_DEFAULT_RETURN.
9326
4a7e6dda
TT
93272014-02-19 Tom Tromey <tromey@redhat.com>
9328
9329 * target-delegates.c: Rebuild.
9330 * target.c (update_current_target): Don't inherit or default
9331 to_extra_thread_info.
9332 * target.h (struct target_ops) <to_extra_thread_info>: Use
9333 TARGET_DEFAULT_RETURN.
9334
0db88c1d
TT
93352014-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_has_exited.
9340 * target.h (struct target_ops) <to_has_exited>: Use
9341 TARGET_DEFAULT_RETURN..
9342
6a9fa051
TT
93432014-02-19 Tom Tromey <tromey@redhat.com>
9344
9345 * target-delegates.c: Rebuild.
9346 * target.c (update_current_target): Don't inherit or default
9347 to_set_syscall_catchpoint.
9348 (return_one): Remove.
9349 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9350 TARGET_DEFAULT_RETURN.
9351
62f64d7a
TT
93522014-02-19 Tom Tromey <tromey@redhat.com>
9353
9354 * target-delegates.c: Rebuild.
9355 * target.c (update_current_target): Don't inherit or default
9356 to_insert_exec_catchpoint.
9357 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9358 TARGET_DEFAULT_RETURN.
9359
cda0f38c
TT
93602014-01-08 Tom Tromey <tromey@redhat.com>
9361
9362 * target-delegates.c: Rebuild.
9363 * target.c (update_current_target): Don't inherit or default
9364 to_insert_exec_catchpoint.
9365 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9366 TARGET_DEFAULT_RETURN.
9367
95c3375e
TT
93682014-02-19 Tom Tromey <tromey@redhat.com>
9369
9370 * target-delegates.c: Rebuild.
9371 * target.c (update_current_target): Don't inherit or default
9372 to_remove_vfork_catchpoint.
9373 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9374 TARGET_DEFAULT_RETURN.
9375
7e18a8dc
TT
93762014-02-19 Tom Tromey <tromey@redhat.com>
9377
9378 * target-delegates.c: Rebuild.
9379 * target.c (update_current_target): Don't inherit or default
9380 to_insert_vfork_catchpoint.
9381 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9382 TARGET_DEFAULT_RETURN.
9383
e1a21fb7
TT
93842014-02-19 Tom Tromey <tromey@redhat.com>
9385
9386 * target-delegates.c: Rebuild.
9387 * target.c (update_current_target): Don't inherit or default
9388 to_remove_fork_catchpoint.
9389 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9390 TARGET_DEFAULT_RETURN.
9391
5958ebeb
TT
93922014-02-19 Tom Tromey <tromey@redhat.com>
9393
9394 * target-delegates.c: Rebuild.
9395 * target.c (update_current_target): Don't inherit or default
9396 to_insert_fork_catchpoint.
9397 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9398 TARGET_DEFAULT_RETURN.
9399
340ba4bf
TT
94002014-02-19 Tom Tromey <tromey@redhat.com>
9401
9402 * target-delegates.c: Rebuild.
9403 * target.c (update_current_target): Don't inherit or default
9404 to_post_startup_inferior.
9405 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9406 TARGET_DEFAULT_IGNORE.
9407
7634da87
TT
94082014-02-19 Tom Tromey <tromey@redhat.com>
9409
9410 * target-delegates.c: Rebuild.
9411 * target.c (update_current_target): Don't inherit or default
9412 to_load.
9413 * target.h (struct target_ops) <to_load>: Use
9414 TARGET_DEFAULT_NORETURN.
9415
e19e919f
TT
94162014-02-19 Tom Tromey <tromey@redhat.com>
9417
9418 * target-delegates.c: Rebuild.
9419 * target.c (update_current_target): Don't inherit or default
9420 to_terminal_info.
9421 * target.h (struct target_ops) <to_terminal_info>: Use
9422 TARGET_DEFAULT_FUNC.
9423
c6ea8f79
TT
94242014-02-19 Tom Tromey <tromey@redhat.com>
9425
9426 * target-delegates.c: Rebuild.
9427 * target.c (update_current_target): Don't inherit or default
9428 to_terminal_save_ours.
9429 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9430 TARGET_DEFAULT_IGNORE.
9431
e4a733f1
TT
94322014-02-19 Tom Tromey <tromey@redhat.com>
9433
9434 * target-delegates.c: Rebuild.
9435 * target.c (update_current_target): Don't inherit or default
9436 to_terminal_ours.
9437 * target.h (struct target_ops) <to_terminal_ours>: Use
9438 TARGET_DEFAULT_IGNORE.
9439
74fcbef9
TT
94402014-02-19 Tom Tromey <tromey@redhat.com>
9441
9442 * target-delegates.c: Rebuild.
9443 * target.c (update_current_target): Don't inherit or default
9444 to_terminal_ours_for_output.
9445 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9446 TARGET_DEFAULT_IGNORE.
9447
ddeaacc9
TT
94482014-02-19 Tom Tromey <tromey@redhat.com>
9449
9450 * target-delegates.c: Rebuild.
9451 * target.c (update_current_target): Don't inherit or default
9452 to_terminal_inferior.
9453 * target.h (struct target_ops) <to_terminal_inferior>: Use
9454 TARGET_DEFAULT_IGNORE.
9455
0343661d
TT
94562014-02-19 Tom Tromey <tromey@redhat.com>
9457
9458 * target-delegates.c: Rebuild.
9459 * target.c (update_current_target): Don't inherit or default
9460 to_terminal_init.
9461 * target.h (struct target_ops) <to_terminal_init>: Use
9462 TARGET_DEFAULT_IGNORE.
9463
77cdffe9
TT
94642014-02-19 Tom Tromey <tromey@redhat.com>
9465
9466 * target-delegates.c: Rebuild.
9467 * target.c (update_current_target): Don't inherit or default
9468 to_can_accel_watchpoint_condition.
9469 * target.h (struct target_ops)
9470 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9471
d03655e4
TT
94722014-02-19 Tom Tromey <tromey@redhat.com>
9473
9474 * target-delegates.c: Rebuild.
9475 * target.c (update_current_target): Don't inherit or default
9476 to_region_ok_for_hw_watchpoint.
9477 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9478 Use TARGET_DEFAULT_FUNC.
9479
65f160a9
TT
94802014-02-19 Tom Tromey <tromey@redhat.com>
9481
9482 * target-delegates.c: Rebuild.
9483 * target.c (update_current_target): Don't inherit or default
9484 to_watchpoint_addr_within_range.
9485 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9486 Use TARGET_DEFAULT_FUNC.
9487
61dd109f
TT
94882014-02-19 Tom Tromey <tromey@redhat.com>
9489
9490 * target-delegates.c: Rebuild.
9491 * target.c (update_current_target): Don't inherit or default
9492 to_remove_watchpoint.
9493 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9494 TARGET_DEFAULT_NORETURN.
9495
016facd4
TT
94962014-02-19 Tom Tromey <tromey@redhat.com>
9497
9498 * target-delegates.c: Rebuild.
9499 * target.c (update_current_target): Don't inherit or default
9500 to_insert_watchpoint.
9501 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9502 TARGET_DEFAULT_RETURN.
9503
418dabac
TT
95042014-02-19 Tom Tromey <tromey@redhat.com>
9505
9506 * target-delegates.c: Rebuild.
9507 * target.c (update_current_target): Don't inherit or default
9508 to_remove_hw_breakpoint.
9509 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9510 TARGET_DEFAULT_RETURN.
9511
61b371f9
TT
95122014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target-delegates.c: Rebuild.
9515 * target.c (update_current_target): Don't inherit or default
9516 to_insert_hw_breakpoint.
9517 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9518 TARGET_DEFAULT_RETURN.
9519
52b51d06
TT
95202014-02-19 Tom Tromey <tromey@redhat.com>
9521
9522 * target-delegates.c: Rebuild.
9523 * target.c (update_current_target): Don't inherit or default
9524 to_can_use_hw_breakpoint.
9525 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9526 TARGET_DEFAULT_RETURN.
9527
f86e59b2
TT
95282014-02-19 Tom Tromey <tromey@redhat.com>
9529
9530 * target-delegates.c: Rebuild.
9531 * target.c (update_current_target): Don't inherit or default
9532 to_files_info.
9533 * target.h (struct target_ops) <to_files_info>: Use
9534 TARGET_DEFAULT_IGNORE.
9535
6c628163
TT
95362014-02-19 Tom Tromey <tromey@redhat.com>
9537
9538 * target-delegates.c: Rebuild.
9539 * target.c (update_current_target): Don't inherit or default
9540 to_store.
9541 * target.h (struct target_ops) <to_store>: Use
9542 TARGET_DEFAULT_NORETURN.
9543
bebd3233
TT
95442014-02-19 Tom Tromey <tromey@redhat.com>
9545
9546 * target-delegates.c: Rebuild.
9547 * target.c (update_current_target): Don't inherit or default
9548 to_post_attach.
9549 * target.h (struct target_ops) <to_post_attach>: Use
9550 TARGET_DEFAULT_IGNORE.
9551
a53f3625
TT
95522014-02-19 Tom Tromey <tromey@redhat.com>
9553
9554 * target-delegates.c: Rebuild.
9555 * target.c (update_current_target): Don't inherit or default
9556 to_rcmd.
9557 (default_rcmd): New function.
9558 (do_monitor_command): Unconditionally delegate.
9559 * target.h (struct target_ops) <to_rmcd>: Use
9560 TARGET_DEFAULT_FUNC.
9561
e9a29200
TT
95622014-02-19 Tom Tromey <tromey@redhat.com>
9563
9564 * target-delegates.c: Rebuild.
9565 * target.c (init_dummy_target): Don't initialize to_attach.
9566 (target_attach): Unconditionally delegate.
9567 * target.h (struct target_ops) <to_attach>: Use
9568 TARGET_DEFAULT_FUNC.
9569
09da0d0a
TT
95702014-02-19 Tom Tromey <tromey@redhat.com>
9571
9572 * target-delegates.c: Rebuild.
9573 * target.c (target_detach): Unconditionally delegate.
9574 (init_dummy_target): Don't initialize to_detach.
9575 * target.h (struct target_ops) <to_detach>: Use
9576 TARGET_DEFAULT_IGNORE.
9577
5436ff03
TT
95782014-02-19 Tom Tromey <tromey@redhat.com>
9579
9580 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9581 Add argument.
9582 (target_augmented_libraries_svr4_read): Add argument.
9583 * target.c (update_current_target): Update.
9584 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9585 argument.
9586
f0d960ea
TT
95872014-02-19 Tom Tromey <tromey@redhat.com>
9588
9589 * target.h (struct target_ops) <to_call_history_range>: Add
9590 argument.
9591 * target.c (target_call_history_range): Add argument.
9592 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9593 argument.
9594 (record_btrace_call_history_from): Update.
9595
ec0aea04
TT
95962014-02-19 Tom Tromey <tromey@redhat.com>
9597
9598 * target.h (struct target_ops) <to_call_history_from>: Add
9599 argument.
9600 * target.c (target_call_history_from): Add argument.
9601 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9602 argument.
9603
5df2fcba
TT
96042014-02-19 Tom Tromey <tromey@redhat.com>
9605
9606 * target.h (struct target_ops) <to_call_history>: Add argument.
9607 * target.c (target_call_history): Add argument.
9608 * record-btrace.c (record_btrace_call_history): Add 'self'
9609 argument.
9610
4e99c6b7
TT
96112014-02-19 Tom Tromey <tromey@redhat.com>
9612
9613 * target.h (struct target_ops) <to_insn_history_range>: Add
9614 argument.
9615 * target.c (target_insn_history_range): Add argument.
9616 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9617 argument.
9618 (record_btrace_insn_history_from): Update.
9619
9abc3ff3
TT
96202014-02-19 Tom Tromey <tromey@redhat.com>
9621
9622 * target.h (struct target_ops) <to_insn_history_from>: Add
9623 argument.
9624 * target.c (target_insn_history_from): Add argument.
9625 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9626 argument.
9627
7a6c5609
TT
96282014-02-19 Tom Tromey <tromey@redhat.com>
9629
9630 * target.h (struct target_ops) <to_insn_history>: Add argument.
9631 * target.c (target_insn_history): Add argument.
9632 * record-btrace.c (record_btrace_insn_history): Add 'self'
9633 argument.
9634
606183ac
TT
96352014-02-19 Tom Tromey <tromey@redhat.com>
9636
9637 * target.h (struct target_ops) <to_goto_record>: Add argument.
9638 * target.c (target_goto_record): Add argument.
9639 * record-full.c (record_full_goto): Add 'self' argument.
9640 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9641
307a1b91
TT
96422014-02-19 Tom Tromey <tromey@redhat.com>
9643
9644 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9645 * target.c (target_goto_record_end): Add argument.
9646 * record-full.c (record_full_goto_end): Add 'self' argument.
9647 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9648
08475817
TT
96492014-02-19 Tom Tromey <tromey@redhat.com>
9650
9651 * target.h (struct target_ops) <to_goto_record_begin>: Add
9652 argument.
9653 * target.c (target_goto_record_begin): Add argument.
9654 * record-full.c (record_full_goto_begin): Add 'self' argument.
9655 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9656 argument.
9657
1c63c994
TT
96582014-02-19 Tom Tromey <tromey@redhat.com>
9659
9660 * target.h (struct target_ops) <to_record_is_replaying>: Add
9661 argument.
9662 * target.c (target_record_is_replaying): Add argument.
9663 * record-full.c (record_full_is_replaying): Add 'self' argument.
9664 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9665 argument.
9666 (record_btrace_xfer_partial, record_btrace_store_registers)
9667 (record_btrace_prepare_to_store, record_btrace_resume)
9668 (record_btrace_wait, record_btrace_decr_pc_after_break)
9669 (record_btrace_find_new_threads, record_btrace_thread_alive):
9670 Update.
9671
d1b55219
TT
96722014-02-19 Tom Tromey <tromey@redhat.com>
9673
9674 * target.h (struct target_ops) <to_delete_record>: Add argument.
9675 * target.c (target_delete_record): Add argument.
9676 * record-full.c (record_full_delete): Add 'self' argument.
9677
1390f529
TT
96782014-02-19 Tom Tromey <tromey@redhat.com>
9679
9680 * target.h (struct target_ops) <to_save_record>: Add argument.
9681 * target.c (target_save_record): Add argument.
9682 * record-full.c (record_full_save): Add 'self' argument.
9683 (record_full_save): Add 'self' argument.
9684
630d6a4a
TT
96852014-02-19 Tom Tromey <tromey@redhat.com>
9686
9687 * target.h (struct target_ops) <to_info_record>: Add argument.
9688 * target.c (target_info_record): Add argument.
9689 * record.c (info_record_command): Add argument.
9690 * record-full.c (record_full_info): Add 'self' argument.
9691 * record-btrace.c (record_btrace_info): Add 'self' argument.
9692
c6cd7c02
TT
96932014-02-19 Tom Tromey <tromey@redhat.com>
9694
9695 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9696 * target.c (target_stop_recording): Add argument.
9697 * record.c (record_stop): Add argument.
9698 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9699 argument.
9700
39c49f83
TT
97012014-02-19 Tom Tromey <tromey@redhat.com>
9702
9703 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9704 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9705 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9706 argument.
9707 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9708 (_initialize_amd64_linux_nat): Use it.
9709 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9710 (_initialize_i386_linux_nat): Use it.
9711
1777056d
TT
97122014-02-19 Tom Tromey <tromey@redhat.com>
9713
9714 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9715 * target.c (target_teardown_btrace): Add argument.
9716 * remote.c (remote_teardown_btrace): Add 'self' argument.
9717 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9718 argument.
9719 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9720 argument.
9721
25e95349
TT
97222014-02-19 Tom Tromey <tromey@redhat.com>
9723
9724 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9725 * target.c (target_disable_btrace): Add argument.
9726 * remote.c (remote_disable_btrace): Add 'self' argument.
9727 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9728 argument.
9729 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9730 argument.
9731
e3c49f88
TT
97322014-02-19 Tom Tromey <tromey@redhat.com>
9733
9734 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9735 * target.c (target_enable_btrace): Add argument.
9736 * remote.c (remote_enable_btrace): Add 'self' argument.
9737 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9738 argument.
9739 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9740 argument.
9741
fe38f897
TT
97422014-02-19 Tom Tromey <tromey@redhat.com>
9743
9744 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9745 (target_can_use_agent): Add argument.
9746 * target.c (update_current_target): Update.
9747 * remote.c (remote_can_use_agent): Add 'self' argument.
9748 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9749
2c152180
TT
97502014-02-19 Tom Tromey <tromey@redhat.com>
9751
9752 * target.h (struct target_ops) <to_use_agent>: Add argument.
9753 (target_use_agent): Add argument.
9754 * target.c (update_current_target): Update.
9755 * remote.c (remote_use_agent): Add 'self' argument.
9756 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9757
a893e81f
TT
97582014-02-19 Tom Tromey <tromey@redhat.com>
9759
9760 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9761 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9762 (target_traceframe_info): Add argument.
9763 * target.c (update_current_target): Update.
9764 * remote.c (remote_traceframe_info): Add 'self' argument.
9765 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9766
c686c57f
TT
97672014-02-19 Tom Tromey <tromey@redhat.com>
9768
9769 * target.h (target_static_tracepoint_markers_by_strid): Add
9770 argument.
9771 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9772 'self' argument.
9773 * target.c (update_current_target): Update.
9774 * remote.c (struct target_ops)
9775 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9776 * linux-nat.c (struct target_ops)
9777 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9778
61fc905d
TT
97792014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9782 Add argument.
9783 (target_static_tracepoint_marker_at): Add argument.
9784 * target.c (update_current_target): Update.
9785 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9786 argument.
9787
c378d69d
TT
97882014-02-19 Tom Tromey <tromey@redhat.com>
9789
9790 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9791 (target_set_permissions): Add argument.
9792 * target.c (update_current_target): Update.
9793 * remote.c (remote_set_permissions): Add 'self' argument.
9794 (remote_start_remote): Update.
9795
bd7ae0f5
TT
97962014-02-19 Tom Tromey <tromey@redhat.com>
9797
9798 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9799 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9800 (target_get_tib_address): Add argument.
9801 * target.c (update_current_target): Update.
9802 * remote.c (remote_get_tib_address): Add 'self' argument.
9803
d9e68a2c
TT
98042014-02-19 Tom Tromey <tromey@redhat.com>
9805
9806 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9807 (target_set_trace_notes): Add argument.
9808 * target.c (update_current_target): Update.
9809 * remote.c (remote_set_trace_notes): Add 'self' argument.
9810
4da384be
TT
98112014-02-19 Tom Tromey <tromey@redhat.com>
9812
9813 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9814 argument.
9815 (target_set_trace_buffer_size): Add argument.
9816 * target.c (update_current_target): Update.
9817 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9818
736d5b1f
TT
98192014-02-19 Tom Tromey <tromey@redhat.com>
9820
9821 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9822 argument.
9823 (target_set_circular_trace_buffer): Add argument.
9824 * target.c (update_current_target): Update.
9825 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9826 argument.
9827
37b25738
TT
98282014-02-19 Tom Tromey <tromey@redhat.com>
9829
9830 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9831 argument.
9832 (target_set_disconnected_tracing): Add argument.
9833 * target.c (update_current_target): Update.
9834 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9835
0e67620a
TT
98362014-02-19 Tom Tromey <tromey@redhat.com>
9837
9838 * target.h (struct target_ops)
9839 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9840 (target_get_min_fast_tracepoint_insn_len): Add argument.
9841 * target.c (update_current_target): Update.
9842 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9843 argument.
9844
88ee6f45
TT
98452014-02-19 Tom Tromey <tromey@redhat.com>
9846
9847 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9848 argument.
9849 (target_get_raw_trace_data): Add argument.
9850 * target.c (update_current_target): Update.
9851 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9852
181e3713
TT
98532014-02-19 Tom Tromey <tromey@redhat.com>
9854
9855 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9856 Add argument.
9857 (target_upload_trace_state_variables): Add argument.
9858 * target.c (update_current_target): Update.
9859 * remote.c (remote_upload_trace_state_variables): Add 'self'
9860 argument.
9861 (remote_start_remote): Update.
9862
ab6617cc
TT
98632014-02-19 Tom Tromey <tromey@redhat.com>
9864
9865 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9866 argument.
9867 (target_upload_tracepoints): Add argument.
9868 * target.c (update_current_target): Update.
9869 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9870 (remote_start_remote): Update.
9871
dc3decaf
TT
98722014-02-19 Tom Tromey <tromey@redhat.com>
9873
9874 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9875 (target_save_trace_data): Add argument.
9876 * target.c (update_current_target): Update.
9877 * remote.c (remote_save_trace_data): Add 'self' argument.
9878
4011015b
TT
98792014-02-19 Tom Tromey <tromey@redhat.com>
9880
9881 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9882 argument.
9883 * target.h (struct target_ops)
9884 <to_get_trace_state_variable_value>: Add argument.
9885 (target_get_trace_state_variable_value): Add argument.
9886 * target.c (update_current_target): Update.
9887 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9888 argument.
9889 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9890
bd4c6793
TT
98912014-02-19 Tom Tromey <tromey@redhat.com>
9892
9893 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9894 * target.h (struct target_ops) <to_trace_find>: Add argument.
9895 (target_trace_find): Add argument.
9896 * target.c (update_current_target): Update.
9897 * remote.c (remote_trace_find): Add 'self' argument.
9898 * ctf.c (ctf_trace_find): Add 'self' argument.
9899
74499f1b
TT
99002014-02-19 Tom Tromey <tromey@redhat.com>
9901
9902 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9903 (target_trace_stop): Add argument.
9904 * target.c (update_current_target): Update.
9905 * remote.c (remote_trace_stop): Add 'self' argument.
9906
db90e85c
TT
99072014-02-19 Tom Tromey <tromey@redhat.com>
9908
9909 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9910 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9911 argument.
9912 (target_get_tracepoint_status): Add argument.
9913 * target.c (update_current_target): Update.
9914 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9915
8bd200f1
TT
99162014-02-19 Tom Tromey <tromey@redhat.com>
9917
9918 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9919 * target.h (struct target_ops) <to_get_trace_status>: Add
9920 argument.
9921 (target_get_trace_status): Add argument.
9922 * target.c (update_current_target): Update.
9923 * remote.c (remote_get_trace_status): Add 'self' argument.
9924 (remote_start_remote, remote_can_download_tracepoint): Update.
9925 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9926
e2d1aae3
TT
99272014-02-19 Tom Tromey <tromey@redhat.com>
9928
9929 * target.h (struct target_ops) <to_trace_start>: Add argument.
9930 (target_trace_start): Add argument.
9931 * target.c (update_current_target): Update.
9932 * remote.c (remote_trace_start): Add 'self' argument.
9933
583f9a86
TT
99342014-02-19 Tom Tromey <tromey@redhat.com>
9935
9936 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9937 Add argument.
9938 (target_trace_set_readonly_regions): Add argument.
9939 * target.c (update_current_target): Update.
9940 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9941 argument.
9942
780b049c
TT
99432014-02-19 Tom Tromey <tromey@redhat.com>
9944
9945 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9946 argument.
9947 (target_disable_tracepoint): Add argument.
9948 * target.c (update_current_target): Update.
9949 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9950
46670d57
TT
99512014-02-19 Tom Tromey <tromey@redhat.com>
9952
9953 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9954 argument.
9955 (target_enable_tracepoint): Add argument.
9956 * target.c (update_current_target): Update.
9957 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9958
559d2b81
TT
99592014-02-19 Tom Tromey <tromey@redhat.com>
9960
9961 * target.h (struct target_ops) <to_download_trace_state_variable>:
9962 Add argument.
9963 (target_download_trace_state_variable): Add argument.
9964 * target.c (update_current_target): Update.
9965 * remote.c (remote_download_trace_state_variable): Add 'self'
9966 argument.
9967
a52a8357
TT
99682014-02-19 Tom Tromey <tromey@redhat.com>
9969
9970 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9971 argument.
9972 (target_can_download_tracepoint): Add argument.
9973 * target.c (update_current_target): Update.
9974 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9975
548f7808
TT
99762014-02-19 Tom Tromey <tromey@redhat.com>
9977
9978 * target.h (struct target_ops) <to_download_tracepoint>: Add
9979 argument.
9980 (target_download_tracepoint): Add argument.
9981 * target.c (update_current_target): Update.
9982 * remote.c (remote_download_tracepoint): Add 'self' argument.
9983
ecae04e1
TT
99842014-02-19 Tom Tromey <tromey@redhat.com>
9985
9986 * target.h (struct target_ops) <to_trace_init>: Add argument.
9987 (target_trace_init): Add argument.
9988 * target.c (update_current_target): Update.
9989 * remote.c (remote_trace_init): Add 'self' argument.
9990
fab5aa7c
TT
99912014-02-19 Tom Tromey <tromey@redhat.com>
9992
9993 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9994 * target.c (target_fileio_readlink): Add argument.
9995 * remote.c (remote_hostio_readlink): Add 'self' argument.
9996 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9997
dbbca37d
TT
99982014-02-19 Tom Tromey <tromey@redhat.com>
9999
10000 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10001 * target.c (target_fileio_unlink): Add argument.
10002 * remote.c (remote_hostio_unlink): Add 'self' argument.
10003 (remote_file_delete): Update.
10004 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10005
df39ea25
TT
100062014-02-19 Tom Tromey <tromey@redhat.com>
10007
10008 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10009 * target.c (target_fileio_close): Add argument.
10010 * remote.c (remote_hostio_close): Add 'self' argument.
10011 (remote_hostio_close_cleanup): Update.
10012 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10013 Update.
10014 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10015
a3be983c
TT
100162014-02-19 Tom Tromey <tromey@redhat.com>
10017
10018 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10019 * target.c (target_fileio_pread): Add argument.
10020 * remote.c (remote_hostio_pread): Add 'self' argument.
10021 (remote_bfd_iovec_pread, remote_file_get): Update.
10022 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10023
0d866f62
TT
100242014-02-19 Tom Tromey <tromey@redhat.com>
10025
10026 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10027 * target.c (target_fileio_pwrite): Add argument.
10028 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10029 (remote_file_put): Update.
10030 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10031
cd897586
TT
100322014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10035 * target.c (target_fileio_open): Add argument.
10036 * remote.c (remote_hostio_open): Add 'self' argument.
10037 (remote_bfd_iovec_open): Add 'self' argument.
10038 (remote_file_put): Add 'self' argument.
10039 (remote_file_get): Add 'self' argument.
10040 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10041
78eff0ec
TT
100422014-02-19 Tom Tromey <tromey@redhat.com>
10043
10044 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10045 Add argument.
10046 (target_can_run_breakpoint_commands): Add argument.
10047 * target.c (update_current_target): Update.
10048 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10049 argument.
10050 (remote_insert_breakpoint): Add 'self' argument.
10051 (remote_insert_hw_breakpoint): Add 'self' argument.
10052 (remote_can_run_breakpoint_commands): Add 'self' argument.
10053
efcc2da7
TT
100542014-02-19 Tom Tromey <tromey@redhat.com>
10055
10056 * target.h (struct target_ops)
10057 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10058 (target_supports_evaluation_of_breakpoint_conditions): Add
10059 argument.
10060 * target.c (update_current_target): Update.
10061 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10062 argument.
10063 (remote_insert_breakpoint): Add 'self' argument.
10064 (remote_insert_hw_breakpoint): Add 'self' argument.
10065 (remote_supports_cond_breakpoints): Add 'self' argument.
10066
6de37a3a
TT
100672014-02-19 Tom Tromey <tromey@redhat.com>
10068
10069 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10070 argument.
10071 (target_supports_string_tracing): Add argument.
10072 * target.c (update_current_target): Update.
10073 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10074
2bfc0540
TT
100752014-02-19 Tom Tromey <tromey@redhat.com>
10076
10077 * target.h (struct target_ops)
10078 <to_supports_disable_randomization>: Add argument.
10079 * target.c (find_default_supports_disable_randomization): Add
10080 argument.
10081 (target_supports_disable_randomization): Add argument.
10082 (find_default_supports_disable_randomization): Add 'self'
10083 argument.
10084 * remote.c (extended_remote_supports_disable_randomization): Add
10085 'self' argument.
10086 (remote_supports_disable_randomization): Add 'self' argument.
10087 (extended_remote_create_inferior): Update.
10088 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10089 'self' argument.
10090
7d178d6a
TT
100912014-02-19 Tom Tromey <tromey@redhat.com>
10092
10093 * target.h (struct target_ops)
10094 <to_supports_enable_disable_tracepoint>: Add argument.
10095 (target_supports_enable_disable_tracepoint): Add argument.
10096 * target.c (update_current_target): Update.
10097 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10098 argument.
10099
86ce2668
TT
101002014-02-19 Tom Tromey <tromey@redhat.com>
10101
10102 * target.h (struct target_ops) <to_supports_multi_process>: Add
10103 argument.
10104 (target_supports_multi_process): Add argument.
10105 * target.c (update_current_target): Update.
10106 * remote.c (remote_supports_multi_process): Add 'self' argument.
10107 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10108 argument.
10109 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10110 argument.
10111
4c612759
TT
101122014-02-19 Tom Tromey <tromey@redhat.com>
10113
10114 * target.h (struct target_ops) <to_execution_direction>: Add
10115 argument.
10116 (target_execution_direction): Add argument.
10117 * target.c (default_execution_direction): Add 'self' argument.
10118 * record-full.c (record_full_execution_direction): Add 'self'
10119 argument.
10120
19db3e69
TT
101212014-02-19 Tom Tromey <tromey@redhat.com>
10122
10123 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10124 argument.
10125 (target_can_execute_reverse): Add argument.
10126 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10127 * record-full.c (record_full_can_execute_reverse): Add 'self'
10128 argument.
10129 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10130 argument.
10131
1e6b91a4
TT
101322014-02-19 Tom Tromey <tromey@redhat.com>
10133
10134 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10135 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10136 argument.
10137 (target_get_ada_task_ptid): Add argument.
10138 * target.c (update_current_target): Update.
10139 (default_get_ada_task_ptid): Add 'self' argument.
10140 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10141 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10142 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10143 argument.
10144 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10145 argument.
10146 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10147 argument.
10148 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10149 argument.
10150 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10151 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10152 argument.
10153
3c80fb48
TT
101542014-02-19 Tom Tromey <tromey@redhat.com>
10155
10156 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10157 (target_goto_bookmark): Add argument.
10158 * target.c (dummy_goto_bookmark): Add 'self' argument.
10159 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10160
dd0e2830
TT
101612014-02-19 Tom Tromey <tromey@redhat.com>
10162
10163 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10164 (target_get_bookmark): Add argument.
10165 * target.c (dummy_get_bookmark): Add 'self' argument.
10166 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10167
fc6691b2
TT
101682014-02-19 Tom Tromey <tromey@redhat.com>
10169
10170 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10171 argument.
10172 (target_make_corefile_notes): Add argument.
10173 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10174 * procfs.c (procfs_make_note_section): Add 'self' argument.
10175 (procfs_make_note_section): Add 'self' argument.
10176 (procfs_make_note_section): Add 'self' argument.
10177 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10178 argument.
10179 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10180 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10181 * exec.c (exec_make_note_section): Add 'self' argument.
10182 (exec_make_note_section): Add 'self' argument.
10183
2e73927c
TT
101842014-02-19 Tom Tromey <tromey@redhat.com>
10185
10186 * target.h (struct target_ops) <to_find_memory_regions>: Add
10187 argument.
10188 (target_find_memory_regions): Add argument.
10189 * target.c (dummy_find_memory_regions): Add 'self' argument.
10190 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10191 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10192 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10193 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10194 * exec. (exec_do_find_memory_regions): New global.
10195 (exec_set_find_memory_regions): Rewrite.
10196 (exec_find_memory_regions): New function.
10197 (init_exec_ops): Use exec_find_memory_regions.
10198
2a9a2795
TT
101992014-02-19 Tom Tromey <tromey@redhat.com>
10200
10201 * target.h (struct target_ops) <to_supports_non_stop>: Add
10202 argument.
10203 * target.c (find_default_supports_non_stop): Add argument.
10204 (target_supports_non_stop): Add argument.
10205 (find_default_supports_non_stop): Add 'self' argument.
10206 * remote.c (remote_supports_non_stop): Add 'self' argument.
10207 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10208
4ab76ea3
TT
102092014-02-19 Tom Tromey <tromey@redhat.com>
10210
10211 * target.h (struct target_ops) <to_log_command>: Add argument.
10212 (target_log_command): Add argument.
10213 * serial.h (serial_log_command): Add 'self' argument.
10214 * serial.c (serial_log_command): Add 'self' argument.
10215
8dd27370
TT
102162014-02-19 Tom Tromey <tromey@redhat.com>
10217
10218 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10219 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10220 argument.
10221 (target_pid_to_exec_file): Add argument.
10222 * target.c (debug_to_pid_to_exec_file): Add argument.
10223 (update_current_target): Update.
10224 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10225 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10226 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10227 (linux_handle_extended_wait): Update.
10228 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10229 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10230 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10231 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10232
1aac633b
TT
102332014-02-19 Tom Tromey <tromey@redhat.com>
10234
10235 * target.h (struct target_ops) <to_rcmd>: Add argument.
10236 (target_rcmd): Add argument.
10237 * target.c (debug_to_rcmd): Add argument.
10238 (update_current_target, do_monitor_command): Update.
10239 * remote.c (remote_rcmd): Add 'self' argument.
10240 * monitor.c (monitor_rcmd): Add 'self' argument.
10241
1eab8a48
TT
102422014-02-19 Tom Tromey <tromey@redhat.com>
10243
10244 * windows-nat.c (windows_stop): Add 'self' argument.
10245 * target.h (struct target_ops) <to_stop>: Add argument.
10246 * target.c (target_stop): Add argument.
10247 (debug_to_stop): Add argument.
10248 (update_current_target): Update.
10249 * remote.c (remote_stop): Add 'self' argument.
10250 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10251 (gdbsim_cntrl_c): Update.
10252 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10253 * procfs.c (procfs_stop): Add 'self' argument.
10254 * nto-procfs.c (procfs_stop): Add 'self' argument.
10255 * monitor.c (monitor_stop): Add 'self' argument.
10256 (monitor_open): Update.
10257 * linux-nat.c (linux_nat_stop): Add argument.
10258 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10259 * gnu-nat.c (gnu_stop): Add 'self' argument.
10260 * darwin-nat.c (darwin_stop): Add 'self' argument.
10261
503a628d
TT
102622014-02-19 Tom Tromey <tromey@redhat.com>
10263
10264 * target.h (struct target_ops) <to_thread_name>: Add argument.
10265 * target.c (target_thread_name): Add argument.
10266 (update_current_target): Update.
10267 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10268
c15906d8
TT
102692014-02-19 Tom Tromey <tromey@redhat.com>
10270
10271 * target.h (struct target_ops) <to_extra_thread_info>: Add
10272 argument.
10273 (target_extra_thread_info): Add argument.
10274 * target.c (update_current_target): Update.
10275 * remote.c (remote_threads_extra_info): Add 'self' argument.
10276 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10277 argument.
10278 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10279 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10280 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10281 argument.
10282 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10283 argument.
10284 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10285 argument.
10286 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10287 argument.
10288
daf5e9b6
TT
102892014-02-19 Tom Tromey <tromey@redhat.com>
10290
10291 * target.h (struct target_ops) <to_program_signals>: Add argument.
10292 * target.c (target_program_signals): Add argument.
10293 * remote.c (remote_program_signals): Add 'self' argument.
10294
94bedb42
TT
102952014-02-19 Tom Tromey <tromey@redhat.com>
10296
10297 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10298 * target.c (target_pass_signals): Add argument.
10299 * remote.c (remote_pass_signals): Add 'self' argument.
10300 (remote_start_remote): Update.
10301 * procfs.c (procfs_pass_signals): Add 'self' argument.
10302 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10303 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10304 (linux_nat_create_inferior, linux_nat_attach): Update.
10305
da82bd6b
TT
103062014-02-19 Tom Tromey <tromey@redhat.com>
10307
10308 * windows-nat.c (windows_can_run): Add 'self' argument.
10309 * target.h (struct target_ops) <to_can_run>: Add argument.
10310 (target_can_run): Add argument.
10311 * target.c (debug_to_can_run): Add argument.
10312 (update_current_target): Update.
10313 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10314 * inf-child.c (inf_child_can_run): Add 'self' argument.
10315 * go32-nat.c (go32_can_run): Add 'self' argument.
10316
d796e1d6
TT
103172014-02-19 Tom Tromey <tromey@redhat.com>
10318
10319 * target.h (struct target_ops) <to_has_exited>: Add argument.
10320 (target_has_exited): Add argument.
10321 * target.c (debug_to_has_exited): Add argument.
10322 (update_current_target): Update.
10323
ff214e67
TT
103242014-02-19 Tom Tromey <tromey@redhat.com>
10325
10326 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10327 argument.
10328 (target_set_syscall_catchpoint): Add argument.
10329 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10330 argument.
10331 * target.c (update_current_target): Update.
10332
758e29d2
TT
103332014-02-19 Tom Tromey <tromey@redhat.com>
10334
10335 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10336 argument.
10337 (target_remove_exec_catchpoint): Add argument.
10338 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10339 (update_current_target): Update.
10340 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10341 argument.
10342
ba025e51
TT
103432014-02-19 Tom Tromey <tromey@redhat.com>
10344
10345 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10346 argument.
10347 (target_insert_exec_catchpoint): Add argument.
10348 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10349 (update_current_target): Update.
10350 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10351 argument.
10352
e98cf0cd
TT
103532014-02-19 Tom Tromey <tromey@redhat.com>
10354
10355 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10356 argument.
10357 (target_remove_vfork_catchpoint): Add argument.
10358 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10359 (update_current_target): Update.
10360 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10361 argument.
10362
3ecc7da0
TT
103632014-02-19 Tom Tromey <tromey@redhat.com>
10364
10365 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10366 argument.
10367 (target_insert_vfork_catchpoint): Add argument.
10368 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10369 (update_current_target): Update.
10370 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10371 argument.
10372
973fc227
TT
103732014-02-19 Tom Tromey <tromey@redhat.com>
10374
10375 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10376 argument.
10377 (target_remove_fork_catchpoint): Add argument.
10378 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10379 (update_current_target): Update.
10380 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10381 argument.
10382
a863b201
TT
103832014-02-19 Tom Tromey <tromey@redhat.com>
10384
10385 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10386 argument.
10387 (target_insert_fork_catchpoint): Add argument.
10388 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10389 (update_current_target): Update.
10390 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10391 argument.
10392
2e97a79e
TT
103932014-02-19 Tom Tromey <tromey@redhat.com>
10394
10395 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10396 argument.
10397 (target_post_startup_inferior): Add argument.
10398 * target.c (debug_to_post_startup_inferior): Add argument.
10399 (update_current_target): Update.
10400 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10401 argument.
10402 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10403 argument.
10404 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10405 argument.
10406 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10407 argument.
10408 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10409 'self' argument.
10410 (super_post_startup_inferior): Likewise.
10411 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10412 'self' argument.
10413 (super_post_startup_inferior): Likewise.
10414 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10415 Add 'self' argument.
10416 (super_post_startup_inferior): Likewise.
10417
71a9f134
TT
104182014-02-19 Tom Tromey <tromey@redhat.com>
10419
10420 * target.h (struct target_ops) <to_load>: Add argument.
10421 * target.c (target_load): Add argument.
10422 (debug_to_load): Add argument.
10423 (update_current_target): Update.
10424 * remote.c (remote_load): Add 'self' argument.
10425 * remote-sim.c (gdbsim_load): Add 'self' argument.
10426 * remote-mips.c (mips_load): Add 'self' argument.
10427 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10428 * monitor.c (monitor_load): Add 'self' argument.
10429 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10430
0a4f40a2
TT
104312014-02-19 Tom Tromey <tromey@redhat.com>
10432
10433 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10434 (target_terminal_info): Add argument.
10435 * target.c (debug_to_terminal_info): Add argument.
10436 (default_terminal_info): Likewise.
10437 * inflow.c (child_terminal_info): Add 'self' argument.
10438 * inferior.h (child_terminal_info): Add 'self' argument.
10439 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10440
ae3bd431
TT
104412014-02-19 Tom Tromey <tromey@redhat.com>
10442
10443 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10444 argument.
10445 (target_terminal_save_ours): Add argument.
10446 * target.c (debug_to_terminal_save_ours): Add argument.
10447 (update_current_target): Update.
10448 * inflow.c (terminal_save_ours): Add 'self' argument.
10449 * inferior.h (terminal_save_ours): Add 'self' argument.
10450
e3594fd1
TT
104512014-02-19 Tom Tromey <tromey@redhat.com>
10452
10453 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10454 (target_terminal_ours): Add argument.
10455 * target.c (debug_to_terminal_ours): Add argument.
10456 (update_current_target): Update.
10457 * remote.c (remote_terminal_ours): Add 'self' argument.
10458 (remote_close): Update.
10459 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10460 * inflow.c (terminal_ours): Add 'self' argument.
10461 * inferior.h (terminal_ours): Add 'self' argument.
10462 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10463
2e1e1a19
TT
104642014-02-19 Pedro Alves <palves@redhat.com>
10465 Tom Tromey <tromey@redhat.com>
10466
10467 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10468 argument.
10469 (target_terminal_ours_for_output): Add argument.
10470 * target.c (debug_to_terminal_ours_for_output): Add argument.
10471 (update_current_target): Update.
10472 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10473 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10474 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10475
d2f640d4
TT
104762014-02-19 Tom Tromey <tromey@redhat.com>
10477
10478 * target.h (struct target_ops) <to_terminal_inferior>: Add
10479 argument.
10480 * target.c (target_terminal_inferior): Add argument.
10481 (update_current_target): Update.
10482 * remote.c (remote_terminal_inferior): Add 'self' argument.
10483 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10484 * inflow.c (terminal_inferior): Add 'self' argument.
10485 * inferior.h (terminal_inferior): Add 'self' argument.
10486 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10487 (go32_terminal_inferior): Add 'self' argument.
10488
c42bf286
TT
104892014-02-19 Tom Tromey <tromey@redhat.com>
10490
10491 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10492 (target_terminal_init): Add argument.
10493 * target.c (debug_to_terminal_init): Add argument.
10494 (update_current_target): Update.
10495 * inflow.c (terminal_init_inferior): Add 'self' argument.
10496 * inferior.h (terminal_init_inferior): Add 'self' argument.
10497 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10498 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10499
c3a5ff89
TT
105002014-02-19 Tom Tromey <tromey@redhat.com>
10501
10502 * target.h (struct target_ops)
10503 <to_can_accel_watchpoint_condition>: Add argument.
10504 (target_can_accel_watchpoint_condition): Add argument.
10505 * target.c (debug_to_can_accel_watchpoint_condition): Add
10506 argument.
10507 (update_current_target): Update.
10508 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10509 'self' argument.
10510
31568a15
TT
105112014-02-19 Tom Tromey <tromey@redhat.com>
10512
10513 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10514 Add argument.
10515 (target_region_ok_for_hw_watchpoint): Add argument.
10516 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10517 (default_region_ok_for_hw_watchpoint): Add argument.
10518 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10519 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10520 argument.
10521 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10522 argument.
10523 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10524 argument.
10525 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10526 'self' argument.
10527 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10528 'self' argument.
10529 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10530 'self' argument.
10531 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10532 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10533 'self' argument.
10534 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10535 Add 'self' argument.
10536
7bb99c53
TT
105372014-02-19 Tom Tromey <tromey@redhat.com>
10538
10539 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10540 argument.
10541 (target_insert_watchpoint): Add argument.
10542 * target.c (debug_to_insert_watchpoint): Add argument.
10543 (update_current_target): Update.
10544 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10545 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10546 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10547 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10548 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10549 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10550 argument.
10551 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10552 (procfs_insert_hw_watchpoint): Add 'self' argument.
10553 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10554 argument.
10555 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10556 argument.
10557 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10558 argument.
10559 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10560 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10561 argument.
10562 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10563 'self' argument.
10564
11b5219a
TT
105652014-02-19 Tom Tromey <tromey@redhat.com>
10566
10567 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10568 argument.
10569 (target_remove_watchpoint): Add argument.
10570 * target.c (debug_to_remove_watchpoint): Add argument.
10571 (update_current_target): Update.
10572 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10573 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10574 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10575 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10576 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10577 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10578 argument.
10579 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10580 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10581 argument.
10582 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10583 argument.
10584 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10585 argument.
10586 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10587 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10588 argument.
10589 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10590 'self' argument.
10591
a64dc96c
TT
105922014-02-19 Tom Tromey <tromey@redhat.com>
10593
10594 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10595 argument.
10596 (target_remove_hw_breakpoint): Add argument.
10597 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10598 (update_current_target): Update.
10599 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10600 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10601 argument.
10602 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10603 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10604 argument.
10605 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10606 'self' argument.
10607
23a26771
TT
106082014-02-19 Tom Tromey <tromey@redhat.com>
10609
10610 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10611 argument.
10612 (target_insert_hw_breakpoint): Add argument.
10613 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10614 (update_current_target): Update.
10615 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10616 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10617 argument.
10618 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10619 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10620 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10621 argument.
10622 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10623 'self' argument.
10624
5461485a
TT
106252014-02-19 Tom Tromey <tromey@redhat.com>
10626
10627 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10628 argument.
10629 (target_can_use_hardware_watchpoint): Add argument.
10630 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10631 (update_current_target): Update.
10632 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10633 argument.
10634 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10635 argument.
10636 * remote.c (remote_check_watch_resources): Add 'self' argument.
10637 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10638 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10639 argument.
10640 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10641 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10642 argument.
10643 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10644 argument.
10645 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10646 argument.
10647 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10648 argument.
10649 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10650 argument.
10651 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10652 argument.
10653 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10654 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10655 argument.
10656 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10657 'self' argument.
10658
f045800c
TT
106592014-02-19 Tom Tromey <tromey@redhat.com>
10660
10661 * target.h (struct target_ops) <to_post_attach>: Add argument.
10662 (target_post_attach): Add argument.
10663 * target.c (debug_to_post_attach): Add argument.
10664 (update_current_target): Update.
10665 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10666 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10667 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10668 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10669 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10670
de90e03d
TT
106712014-02-19 Tom Tromey <tromey@redhat.com>
10672
10673 * windows-nat.c (windows_close): Add 'self' argument.
10674 * tracepoint.c (tfile_close): Add 'self' argument.
10675 * target.h (struct target_ops) <to_close>: Add argument.
10676 * target.c (target_close): Add argument.
10677 (update_current_target): Update.
10678 * remote.c (remote_close): Add 'self' argument.
10679 * remote-sim.c (gdbsim_close): Add 'self' argument.
10680 * remote-mips.c (mips_close): Add 'self' argument.
10681 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10682 * record-full.c (record_full_close): Add 'self' argument.
10683 * record-btrace.c (record_btrace_close): Add 'self' argument.
10684 * monitor.h (monitor_close): Add 'self' argument.
10685 * monitor.c (monitor_close): Add 'self' argument.
10686 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10687 * linux-nat.c (linux_nat_close): Add argument.
10688 * go32-nat.c (go32_close): Add 'self' argument.
10689 * exec.c (exec_close_1): Add 'self' argument.
10690 * ctf.c (ctf_close): Add 'self' argument.
10691 * corelow.c (core_close): Add 'self' argument.
10692 (core_close_cleanup): Update.
10693 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10694 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10695
9dd130a0
TT
106962014-02-19 Tom Tromey <tromey@redhat.com>
10697
10698 * remote.c (remote_load): New function.
10699 (init_remote_ops): Use it.
10700
46917d26
TT
107012014-02-19 Tom Tromey <tromey@redhat.com>
10702
10703 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10704 argument.
10705 * common/linux-btrace.h (linux_supports_btrace): Update.
10706 * remote.c (remote_supports_btrace): Add "self" argument.
10707 * target-delegates.c: Rebuild.
10708 * target.c (target_supports_btrace): Remove.
10709 * target.h (struct target_ops) <to_supports_btrace>: Add
10710 target_ops argument.
10711 (target_supports_btrace): New define.
10712
6b84065d
TT
107132014-02-19 Tom Tromey <tromey@redhat.com>
10714
10715 * record-full.c (record_full_beneath_to_resume_ops)
10716 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10717 (record_full_beneath_to_wait)
10718 (record_full_beneath_to_store_registers_ops)
10719 (record_full_beneath_to_store_registers)
10720 (record_full_beneath_to_xfer_partial_ops)
10721 (record_full_beneath_to_xfer_partial)
10722 (record_full_beneath_to_insert_breakpoint_ops)
10723 (record_full_beneath_to_insert_breakpoint)
10724 (record_full_beneath_to_remove_breakpoint_ops)
10725 (record_full_beneath_to_remove_breakpoint)
10726 (record_full_beneath_to_stopped_by_watchpoint)
10727 (record_full_beneath_to_stopped_data_address)
10728 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10729 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10730 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10731 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10732 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10733 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10734 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10735 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10736 (record_full_resume, record_full_wait_1)
10737 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10738 (record_full_store_registers, record_full_xfer_partial)
10739 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10740 (record_full_async, record_full_core_xfer_partial): Use target
10741 delegation.
10742 * target-delegates.c: Rebuild.
10743 * target.c (current_xfer_partial): Remove.
10744 (update_current_target): Do not INHERIT or de_fault
10745 to_insert_breakpoint, to_remove_breakpoint,
10746 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10747 to_is_async_p, to_async. Do not set to_xfer_partial field.
10748 (default_xfer_partial): Simplify.
10749 (current_xfer_partial): Remove.
10750 (target_wait, target_resume): Simplify.
10751 (find_default_can_async_p, find_default_is_async_p): Update.
10752 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10753 to_xfer_partial, to_stopped_by_watchpoint,
10754 to_stopped_data_address.
10755 (target_store_registers): Simplify.
10756 (forward_target_remove_breakpoint)
10757 (forward_target_insert_breakpoint): Remove.
10758 (target_remove_breakpoint, target_insert_breakpoint)
10759 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10760 * target.h (struct target_ops) <to_resume, to_wait,
10761 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10762 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10763 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10764 markup.
10765 (forward_target_remove_breakpoint)
10766 (forward_target_insert_breakpoint): Remove.
10767 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10768 directly.
10769 (record_btrace_insert_breakpoint): Delegate directly.
10770
1101cb7b
TT
107712014-02-19 Tom Tromey <tromey@redhat.com>
10772
10773 PR build/7701:
10774 * target-delegates.c: New file.
10775 * target.c: Include target-delegates.c.
10776 (init_dummy_target): Call install_dummy_methods.
10777 (complete_target_initialization): Call install_delegators.
10778 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10779 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10780 * make-target-delegates: New file.
10781
8b06beed
TT
107822014-02-19 Tom Tromey <tromey@redhat.com>
10783
10784 * record.c (find_record_target): Use find_target_at.
10785 * target.c (find_target_at): New function.
10786 * target.h (find_target_at): Declare.
10787
6a109b6b
TT
107882014-02-19 Tom Tromey <tromey@redhat.com>
10789
10790 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10791 Add 'ops' argument.
10792 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10793 'ops' argument.
10794 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10795 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10796 'ops' argument.
10797 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10798 argument.
10799 * linux-nat.c (save_sigtrap): Update.
10800 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10801 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10802 (linux_nat_close): Update.
10803 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10804 argument.
10805 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10806 argument.
10807 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10808 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10809 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10810 (tmp_to_async): Add 'ops' argument.
10811 (record_full_stopped_by_watchpoint, record_full_async)
10812 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10813 argument.
10814 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10815 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10816 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10817 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10818 (remote_is_async_p, remote_async): Add 'ops' argument.
10819 (remote_stopped_data_address): Update.
10820 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10821 * target.c (update_current_target)
10822 (find_default_can_async_p, find_default_is_async_p): Update.
10823 (init_dummy_target): Update.
10824 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10825 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10826 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10827 (target_can_async_p, target_is_async_p, target_async)
10828 (target_stopped_by_watchpoint): Update.
10829
e095146b
YQ
108302014-02-19 Yao Qi <yao@codesourcery.com>
10831
10832 PR gdb/16220
10833 * gdbarch.sh: Remove startup_gdbarch.
10834 * gdbarch.c: Regenerated.
10835 * gdbarch.h: Likewise.
10836
bc3c6b36
KB
108372014-02-17 Kevin Buettner <kevinb@redhat.com>
10838
10839 * rl78-tdep.c (rl78_g10_register_name): New function.
10840 (rl78_return_value): Add g10 support.
10841 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10842 g10.
10843
98dc0167 108442014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10845
10846 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10847 (SUBDIR_GUILE_SRCS): Ditto.
10848 (scm-gsmob.o): Ditto.
10849
842c05cd
YQ
108502014-02-17 Yao Qi <yao@codesourcery.com>
10851
10852 * gnu-nat.c (ILL_RPC): Declare defined function.
10853
25c0bd04
YQ
108542014-02-17 Yao Qi <yao@codesourcery.com>
10855
10856 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10857 mach_msg_type_number_t.
10858 (gnu_write_inferior): Likewise.
10859
a9a758e3
YQ
108602014-02-17 Yao Qi <yao@codesourcery.com>
10861
10862 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10863 in format string.
10864 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10865 (inf_validate_procs, inf_signal): Likewise.
10866 (S_exception_raise_request): Likewise.
10867 (do_mach_notify_dead_name): Likewise.
10868 (steal_exc_port): Likewise.
10869 (gnu_read_inferior): Change 'copy_count''s type to
10870 mach_msg_type_number_t.
10871 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10872 format string.
10873
bae8023e
TS
108742014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10875
c82f56d9
TS
10876 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10877 flag. Adjust all users; in particular...
10878 (gnu_wait): ..., don't decrement its value in here...
10879 (gnu_create_inferior): ..., and instead set the flag in here,
10880 around the startup_inferior call, and call that one with
10881 START_INFERIOR_TRAPS_EXPECTED.
10882
3398af6a
TS
10883 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10884 (ILL_RPC): ... new macro.
10885 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10886 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10887 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10888 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10889 functions with ILL_RPC macro.
10890 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10891 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10892 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10893 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10894 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10895 (S_proc_getlogin_reply, S_proc_getsid_reply)
10896 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10897 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10898 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10899 (S_proc_getnports_reply, S_proc_is_important_reply)
10900 (S_proc_get_code_reply): New stub functions, generated with
10901 ILL_RPC macro.
10902
d47642c9
TS
10903 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10904 collected the type check structures.
10905
bae8023e
TS
10906 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10907
8a55ffb0
DE
109082014-02-14 Doug Evans <dje@google.com>
10909
10910 * target.c (target_write_partial): Fix result type.
10911
c2853f3d
JM
109122014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10913
10914 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10915 the proper offsets to access fpregset_t.
10916
ac61d2db
SA
109172014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10918
10919 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10920 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10921 * h8300-tdep.c (setmachinelist): Remove global.
10922 * hppa-tdep.c (hppa_sigtramp): Remove global.
10923 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10924 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10925 * ravenscar-thread.c (update_target_observer): Remove global.
10926 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10927
9d2d0b8b
TT
109282014-02-12 Tom Tromey <tromey@redhat.com>
10929
10930 * common/rsp-low.c: Update comments.
10931 * common/rsp-low.h: Update comments.
10932
a7191e8b
TT
109332014-02-12 Tom Tromey <tromey@redhat.com>
10934
10935 * common/rsp-low.c (convert_ascii_to_int): Remove.
10936 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10937
ff0e980e
TT
109382014-02-12 Tom Tromey <tromey@redhat.com>
10939
10940 * common/rsp-low.h (unhexify): Don't declare.
10941 * common/rsp-low.c (unhexify): Remove.
10942
e9371aff
TT
109432014-02-12 Tom Tromey <tromey@redhat.com>
10944
10945 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10946 * common/rsp-low.c (convert_int_to_ascii): Remove.
10947
971dc0b8
TT
109482014-02-12 Tom Tromey <tromey@redhat.com>
10949
10950 * common/rsp-low.h (hexify): Don't declare.
10951 * common/rsp-low.c (hexify): Remove.
10952
0a822afb
TT
109532014-02-12 Tom Tromey <tromey@redhat.com>
10954
10955 * common/rsp-low.c (hexify): Never take strlen of argument.
10956
9f1b45b0
TT
109572014-02-12 Tom Tromey <tromey@redhat.com>
10958
10959 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10960 * remote.c (extended_remote_run, remote_rcmd)
10961 (remote_download_trace_state_variable, remote_save_trace_data)
10962 (remote_set_trace_notes): Update.
10963 * tracepoint.c (encode_source_string, tfile_write_status)
10964 (tfile_write_uploaded_tsv): Update.
10965
9c3d6531
TT
109662014-02-12 Tom Tromey <tromey@redhat.com>
10967
10968 * tracepoint.c: Include rsp-low.h.
10969 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10970 * remote.c: Include rsp-low.h.
10971 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10972 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10973 (remote_unescape_input): Move to common/rsp-low.c.
10974 * common/rsp-low.h: New file.
10975 * common/rsp-low.c: New file.
10976 * Makefile.in (SFILES): Add common/rsp-low.c.
10977 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10978 (COMMON_OBS): Add rsp-low.o.
10979 (rsp-low.o): New target.
10980
01fd3ea5
TT
109812014-02-12 Tom Tromey <tromey@redhat.com>
10982
10983 * utils.h: Include print-utils.h.
10984 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10985 (int_string, core_addr_to_string, core_addr_to_string_nz)
10986 (hex_string, hex_string_custom): Don't declare.
10987 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10988 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10989 (hex_string_custom, int_string, core_addr_to_string)
10990 (core_addr_to_string_nz, host_address_to_string): Move to
10991 common/print-utils.c.
10992 * common/print-utils.h: New file.
10993 * common/print-utils.c: New file
10994 * Makefile.in (SFILES): Add common/print-utils.c.
10995 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10996 (COMMON_OBS): Add print-utils.o.
10997 (print-utils.o): New target.
10998
9fb50108
TT
109992014-02-12 Tom Tromey <tromey@redhat.com>
11000
11001 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11002
0548b5db
MK
110032014-02-12 Mark Kettenis <kettenis@gnu.org>
11004
11005 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11006
493443a4
MK
110072014-02-12 Mark Kettenis <kettenis@gnu.org>
11008
11009 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11010 if a PT_IO ptrace request returns sucessfully but indicates that 0
11011 bytes were transferred.
11012
706d0883
PA
110132014-02-12 Pedro Alves <palves@redhat.com>
11014 Kevin Buettner <kevinb@redhat.com>
11015
11016 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11017 TYPE_INSTANCE_FLAG_CODE_SPACE.
11018
5caa2f0b
PA
110192014-02-12 Pedro Alves <palves@redhat.com>
11020
11021 * h8300-tdep.c (pseudo_from_raw_register)
11022 (raw_from_pseudo_register): New functions.
11023 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11024 them.
11025
76fd5f74
PA
110262014-02-12 Pedro Alves <palves@redhat.com>
11027
11028 * h8300-tdep.c (h8300_register_sim_regno): New function.
11029 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11030 gdbarch_register_sim_regno hook.
11031
8f008406
SA
110322014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11033
11034 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11035
195abc10
SA
110362014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11037
11038 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11039
93ffa5b9
MK
110402014-02-12 Mark Kettenis <kettenis@gnu.org>
11041
11042 * obsd-tdep.h (obsd_init_abi): New prototype.
11043 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11044 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11045 (obsd_init_abi): New functions.
11046 * i386obsd-tdep.c: Include "obsd-tdep.h".
11047 (i386obsd_init_abi): Call obsd_init_abi.
11048 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11049 (amd64obsd_init_abi): Call obsd_init_abi.
11050 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11051 obsd-tdep.c to gdb_target_obs.
11052
49caec94
JM
110532014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11054
11055 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11056 double float arguments to 16-byte in the argument slots.
11057
e1402065
DE
110582014-02-11 Doug Evans <xdje42@gmail.com>
11059
11060 * configure.ac: Don't crash if pkg-config is not found and guile
11061 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11062 in guile checks.
11063 * configure: Regenerate.
11064
edcc890f
YQ
110652014-02-11 Yao Qi <yao@codesourcery.com>
11066
11067 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11068 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11069 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11070 * gnu-nat.c (gnu_xfer_memory): Likewise.
11071 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11072 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11073 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11074 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11075
9b409511
YQ
110762014-02-11 Yao Qi <yao@codesourcery.com>
11077
11078 * target.h (enum target_xfer_error): Rename to ...
11079 (enum target_xfer_status): ... it. New. All users updated.
11080 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11081 New.
11082 (TARGET_XFER_STATUS_ERROR_P): New macro.
11083 (target_xfer_error_to_string): Remove declaration.
11084 (target_xfer_status_to_string): Declare.
11085 (target_xfer_partial_ftype): Adjust it.
11086 (struct target_ops) <to_xfer_partial>: Return
11087 target_xfer_status. Add argument xfered_len. Update
11088 comments.
11089 * target.c (target_xfer_error_to_string): Rename to ...
11090 (target_xfer_status_to_string): ... it. New. All callers
11091 updated.
11092 (target_read_live_memory): Likewise. Call target_xfer_partial
11093 instead of target_read.
11094 (memory_xfer_live_readonly_partial): Return
11095 target_xfer_status. Add argument xfered_len.
11096 (raw_memory_xfer_partial): Likewise.
11097 (memory_xfer_partial_1): Likewise.
11098 (memory_xfer_partial): Likewise.
11099 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11100 properly. Update debug message.
11101 (default_xfer_partial, current_xfer_partial): Likewise.
11102 (target_write_partial): Likewise.
11103 (target_read_partial): Likewise. All callers updated.
11104 (read_whatever_is_readable): Likewise.
11105 (target_write_with_progress): Likewise.
11106 (target_read_alloc_1): Likewise.
11107
11108 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11109 * auxv.c (procfs_xfer_auxv): Likewise.
11110 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11111 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11112 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11113 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11114 * corefile.c (read_memory): Adjust.
11115 * corelow.c (core_xfer_partial): Likewise.
11116 * ctf.c (ctf_xfer_partial): Likewise.
11117 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11118 updated.
11119 (darwin_xfer_partial): Likewise.
11120 * exec.c (section_table_xfer_memory_partial): Likewise. All
11121 callers updated.
11122 (exec_xfer_partial): Likewise.
11123 * exec.h (section_table_xfer_memory_partial): Update
11124 declaration.
11125 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11126 negative.
11127 (gnu_xfer_partial): Likewise.
11128 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11129 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11130 (ia64_hpux_xfer_solib_got): Likewise.
11131 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11132 type of 'partial_len' to ULONGEST.
11133 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11134 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11135 (linux_nat_xfer_partial): Likewise.
11136 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11137 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11138 * monitor.c (monitor_xfer_memory): Likewise.
11139 (monitor_xfer_partial): Likewise.
11140 * procfs.c (procfs_xfer_partial): Likewise.
11141 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11142 * record-full.c (record_full_xfer_partial): Likewise.
11143 (record_full_core_xfer_partial): Likewise.
11144 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11145 (gdbsim_xfer_partial): Likewise.
11146 * remote.c (remote_write_bytes_aux): Likewise. All callers
11147 updated.
11148 (remote_write_bytes, remote_read_bytes): Likewise. All
11149 callers updated.
11150 (remote_flash_erase): Likewise. All callers updated.
11151 (remote_write_qxfer): Likewise. All callers updated.
11152 (remote_read_qxfer): Likewise. All callers updated.
11153 (remote_xfer_partial): Likewise.
11154 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11155 (rs6000_xfer_shared_libraries): Likewise.
11156 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11157 (sol_thread_xfer_partial): Likewise.
11158 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11159 (sparc_xfer_partial): Likewise.
11160 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11161 updated.
11162 (spu_xfer_partial): Likewise.
11163 * spu-multiarch.c (spu_xfer_partial): Likewise.
11164 * tracepoint.c (tfile_xfer_partial): Likewise.
11165 * windows-nat.c (windows_xfer_memory): Likewise.
11166 (windows_xfer_shared_libraries): Likewise.
11167 (windows_xfer_partial): Likewise.
11168 * valprint.c: Replace 'target_xfer_error' with
11169 'target_xfer_status' in comments.
11170
a8e63083
JB
111712014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11172
11173 Checked in by Joel Brobecker <brobecker@adacore.com>.
11174 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11175
e86b67d3
JB
111762014-02-11 Joel Brobecker <brobecker@adacore.com>
11177
11178 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11179 function parameters.
11180
4b7d1f7f
WN
111812014-02-10 Will Newton <will.newton@linaro.org>
11182
11183 * elfread.c (elf_rel_plt_read): Look for a .got section if
11184 looking up .got.plt fails.
11185 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11186 on address passed to elf_gnu_ifunc_record_cache.
11187 (elf_gnu_ifunc_resolve_addr): Likewise.
11188 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11189
961842b2
JM
111902014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11191
11192 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11193 (X_RETTURN): New macro.
11194 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11195
11196 * sparc64-tdep.c (sparc64_init_abi): Hook
11197 sparc_in_function_epilogue_p.
11198
3f03e7b1
GB
111992014-02-10 Gary Benson <gbenson@redhat.com>
11200
11201 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11202 Rename name_matcher to symbol_matcher.
11203
96f861ef
GB
112042014-02-10 Gary Benson <gbenson@redhat.com>
11205
11206 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11207 Use expand_symtabs_file_matcher_ftype and
11208 expand_symtabs_symbol_matcher_ftype.
11209
ee01b665
JB
112102014-02-10 Joel Brobecker <brobecker@adacore.com>
11211
11212 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11213 (struct ada_symbol_cache): New.
11214 (ada_free_symbol_cache): Forward declare.
11215 (struct ada_pspace_data): New.
11216 (ada_pspace_data_handle): New static global.
11217 (get_ada_pspace_data, ada_pspace_data_cleanup)
11218 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11219 (cache_space, cache): Delete, now folded inside struct
11220 ada_pspace_data.
11221 (ada_get_symbol_cache): New function.
11222 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11223 implementation.
11224 (_initialize_ada_language): Remove initialization of cache_space.
11225 Move call to observer_attach_inferior_exit up, grouping it
11226 with the other observer registrations inside this function.
11227 Rename command to be more general. Add call to
11228 register_program_space_data_with_cleanup.
11229
143adbbf
JB
112302014-02-10 Joel Brobecker <brobecker@adacore.com>
11231
11232 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11233 ada_new_objfile_observer.
11234 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11235 (_initialize_tasks): Update uses of ada_new_objfile_observer
11236 and ada_tasks_normal_stop_observer.
11237
aa4fb036
JB
112382014-02-10 Joel Brobecker <brobecker@adacore.com>
11239
11240 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11241 returned by the 'Length attribute to integer.
11242
9dee8cc6
JB
112432014-02-10 Joel Brobecker <brobecker@adacore.com>
11244
11245 * ada-lang.c (_initialize_ada_language): Initialize
11246 cache_space obstack.
11247
3d9434b5
JB
112482014-02-10 Joel Brobecker <brobecker@adacore.com>
11249
11250 * ada-lang.c (HASH_SIZE): New macro.
11251 (struct cache_entry): New type.
11252 (cache_space, cache): New static globals.
11253 (ada_clear_symbol_cache, find_entry): New functions.
11254 (lookup_cached_symbol, cache_symbol): Implement.
11255 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11256 (_initialize_ada_language): Attach ada_new_objfile_observer
11257 and ada_free_objfile_observer.
11258
f0c5f9b2
JB
112592014-02-10 Joel Brobecker <brobecker@adacore.com>
11260
11261 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11262 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11263 struct block * parameter.
11264 (ada_lookup_symbol_list_worker): Constify local variable "block".
11265 Remove cast which is no longer necessary.
11266
ed3ef339
DE
112672014-02-10 Doug Evans <xdje42@gmail.com>
11268
11269 Add Guile as an extension language.
11270 * NEWS: Mention Guile scripting.
11271 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11272 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11273 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11274 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11275 (CLIBS): Add GUILE_LIBS.
11276 (install-guile): New rule.
11277 (guile.o): New rule.
11278 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11279 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11280 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11281 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11282 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11283 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11284 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11285 * configure.ac: New option --with-guile.
11286 * configure: Regenerate.
11287 * config.in: Regenerate.
11288 * auto-load.c: Remove #include "python/python.h". Add #include
11289 "gdb/section-scripts.h".
11290 (source_section_scripts): Handle Guile scripts.
11291 (_initialize_auto_load): Add name of Guile objfile script to
11292 scripts-directory help text.
11293 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11294 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11295 (struct breakpoint): New member scm_bp_object.
11296 * defs.h (enum command_control_type): New value guile_control.
11297 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11298 "extension.h".
11299 (show_user): Update comment.
11300 (_initialize_cli_cmds): Update help text for "show user". Update help
11301 text for max-user-call-depth.
11302 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11303 "extension.h".
11304 (multi_line_command_p): Add guile_control.
11305 (print_command_lines): Handle guile_control.
11306 (execute_control_command, recurse_read_control_structure): Ditto.
11307 (process_next_line): Recognize "guile" commands.
11308 * disasm.c (gdb_disassemble_info): Make non-static.
11309 * disasm.h: #include "dis-asm.h".
11310 (struct gdbarch): Add forward decl.
11311 (gdb_disassemble_info): Declare.
11312 * extension.c: #include "guile/guile.h".
11313 (extension_languages): Add guile.
11314 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11315 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11316 * gdbtypes.c (get_unsigned_type_max): New function.
11317 (get_signed_type_minmax): New function.
11318 * gdbtypes.h (get_unsigned_type_max): Declare.
11319 (get_signed_type_minmax): Declare.
11320 * guile/README: New file.
11321 * guile/guile-internal.h: New file.
11322 * guile/guile.c: New file.
11323 * guile/guile.h: New file.
11324 * guile/scm-arch.c: New file.
11325 * guile/scm-auto-load.c: New file.
11326 * guile/scm-block.c: New file.
11327 * guile/scm-breakpoint.c: New file.
11328 * guile/scm-disasm.c: New file.
11329 * guile/scm-exception.c: New file.
11330 * guile/scm-frame.c: New file.
11331 * guile/scm-gsmob.c: New file.
11332 * guile/scm-iterator.c: New file.
11333 * guile/scm-lazy-string.c: New file.
11334 * guile/scm-math.c: New file.
11335 * guile/scm-objfile.c: New file.
11336 * guile/scm-ports.c: New file.
11337 * guile/scm-pretty-print.c: New file.
11338 * guile/scm-safe-call.c: New file.
11339 * guile/scm-string.c: New file.
11340 * guile/scm-symbol.c: New file.
11341 * guile/scm-symtab.c: New file.
11342 * guile/scm-type.c: New file.
11343 * guile/scm-utils.c: New file.
11344 * guile/scm-value.c: New file.
11345 * guile/lib/gdb.scm: New file.
11346 * guile/lib/gdb/boot.scm: New file.
11347 * guile/lib/gdb/experimental.scm: New file.
11348 * guile/lib/gdb/init.scm: New file.
11349 * guile/lib/gdb/iterator.scm: New file.
11350 * guile/lib/gdb/printing.scm: New file.
11351 * guile/lib/gdb/types.scm: New file.
11352 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11353 (VPATH): Add $(GUILE_SRCDIR).
11354 (GUILE_DIR): New variable.
11355 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11356 (all): Add stamp-guile dependency.
11357 (stamp-guile): New rule.
11358 (clean-guile, install-guile, uninstall-guile): New rules.
11359 (install-only): Add install-guile dependency.
11360 (uninstall): Add uninstall-guile dependency.
11361 (clean): Add clean-guile dependency.
11362
ac020ec5
DE
113632014-02-09 Doug Evans <xdje42@gmail.com>
11364
11365 Revert this patch (which I approved, mea culpa).
11366
11367 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11368
11369 * Makefile.in (all-lib): Remove.
11370 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11371
2a081c59
JK
113722014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11373
11374 Fix Python stack corruption.
11375 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11376 gdb_py_longest.
11377
0a6bd22d
MK
113782014-02-08 Mark Kettenis <kettenis@gnu.org>
11379
11380 * Makefile.in (all-lib): Remove.
11381 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11382
1a860409
DE
113832014-02-07 Doug Evans <dje@google.com>
11384
11385 * extension-priv.h (extension_language_script_ops): Add comment.
11386 (extension_language_ops): Add comment.
caf5a491 11387 (active_ext_lang_state): Fix typo in comment.
1a860409 11388
d137e6dc
PA
113892014-02-07 Pedro Alves <palves@redhat.com>
11390
0dcb32c3 11391 PR breakpoints/16292
d137e6dc
PA
11392 * infrun.c (handle_signal_stop) <signal arrives while stepping
11393 over a breakpoint>: Switch back to the stepping thread.
11394
ce6d0892
YQ
113952014-02-07 Yao Qi <yao@codesourcery.com>
11396
11397 * target.c (target_xfer_partial): Return zero if LEN is zero.
11398
2ed4b548
YQ
113992014-02-07 Yao Qi <yao@codesourcery.com>
11400
11401 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11402 (ld_so_xfer_auxv): Likewise.
11403 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11404 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11405 * corelow.c (core_xfer_partial): Likewise.
11406 * ctf.c (ctf_xfer_partial): Likewise.
11407 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11408 (darwin_xfer_partial): Likewise.
11409 * exec.c (exec_xfer_partial): Likewise.
11410 * gnu-nat.c (gnu_xfer_partial): Likewise.
11411 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11412 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11413 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11414 * linux-nat.c (linux_xfer_siginfo): Likewise.
11415 (linux_proc_xfer_spu): Likewise.
11416 * procfs.c (procfs_xfer_partial): Likewise.
11417 * record-full.c (record_full_xfer_partial): Likewise.
11418 (record_full_core_xfer_partial): Likewise.
11419 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11420 * remote.c (remote_write_qxfer): Likewise.
11421 (remote_write_qxfer, remote_read_qxfer): Likewise.
11422 (remote_xfer_partial): Likewise.
11423 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11424 (rs6000_xfer_shared_libraries): Likewise.
11425 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11426 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11427 (spu_xfer_partial): Likewise.
11428 * target.c (memory_xfer_partial_1): Likewise.
11429 * tracepoint.c (tfile_xfer_partial): Likewise.
11430 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11431 (windows_xfer_partial): Likewise.
11432
c09f20e4
YQ
114332014-02-07 Yao Qi <yao@codesourcery.com>
11434
11435 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11436 comments.
11437 (core_xfer_shared_libraries_aix): Likewise.
11438 * gdbarch.c, gdbarch.h: Regenerated.
11439 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11440 ULONGEST. Change 'len_avail' type to ULONGEST.
11441 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11442 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11443 declaration.
11444 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11445
8635b3bf
YQ
114462014-02-07 Yao Qi <yao@codesourcery.com>
11447
11448 * corefile.c (memory_error): Get 'exception' from ERR and pass
11449 'exception' to throw_error.
11450
6dddc817
DE
114512014-02-06 Doug Evans <xdje42@gmail.com>
11452
11453 * configure.ac (libpython checking): Remove all but python.o from
11454 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11455 * configure: Regenerate.
11456
11457 * Makefile.in (SFILES): Add extension.c.
11458 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11459 (COMMON_OBS): Add extension.o.
11460 * extension.h: New file.
11461 * extension-priv.h: New file.
11462 * extension.c: New file.
11463
11464 * python/python-internal.h: #include "extension.h".
11465 (gdbpy_auto_load_enabled): Declare.
11466 (gdbpy_apply_val_pretty_printer): Declare.
11467 (gdbpy_apply_frame_filter): Declare.
11468 (gdbpy_preserve_values): Declare.
11469 (gdbpy_breakpoint_cond_says_stop): Declare.
11470 (gdbpy_breakpoint_has_cond): Declare.
11471 (void source_python_script_for_objfile): Delete.
11472 * python/python.c: #include "extension-priv.h".
11473 Delete inclusion of "observer.h".
11474 (extension_language_python): Moved here and renamed from
11475 script_language_python in py-auto-load.c.
11476 Redefined to be of type extension_language_defn.
11477 (python_extension_script_ops): New global.
11478 (python_extension_ops): New global.
11479 (struct python_env): New member previous_active.
11480 (restore_python_env): Call restore_active_ext_lang.
11481 (ensure_python_env): Call set_active_ext_lang.
11482 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11483 New arg extlang.
11484 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11485 New arg extlang.
11486 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11487 New arg extlang.
11488 (gdbpy_eval_from_control_command): Renamed from
11489 eval_python_from_control_command, made static. New arg extlang.
11490 (gdbpy_source_script) Renamed from source_python_script, made static.
11491 New arg extlang.
11492 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11493 result to int. New arg extlang.
11494 (gdbpy_source_objfile_script): Renamed from
11495 source_python_script_for_objfile, made static. New arg extlang.
11496 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11497 static. New args extlang, extlang_printers. Change result type to
11498 "void".
11499 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11500 static. New arg extlang. Rename arg printers to extlang_printers
11501 and change type to ext_lang_type_printers *.
11502 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11503 static. Replace argument arg with extlang, extlang_printers.
11504 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11505 (!HAVE_PYTHON, source_python_script): Delete.
11506 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11507 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11508 (!HAVE_PYTHON, start_type_printers): Delete.
11509 (!HAVE_PYTHON, apply_type_printers): Delete.
11510 (!HAVE_PYTHON, free_type_printers): Delete.
11511 (_initialize_python): Delete call to observer_attach_before_prompt.
11512 (finalize_python): Set/restore active extension language.
11513 (gdbpy_finish_initialization) Renamed from
11514 finish_python_initialization, made static. New arg extlang.
11515 (gdbpy_initialized): New function.
11516 * python/python.h: #include "extension.h". Delete #include
11517 "value.h", "mi/mi-cmds.h".
11518 (extension_language_python): Declare.
11519 (GDBPY_AUTO_FILE_NAME): Delete.
11520 (enum py_bt_status): Moved to extension.h and renamed to
11521 ext_lang_bt_status.
11522 (enum frame_filter_flags): Moved to extension.h.
11523 (enum py_frame_args): Moved to extension.h and renamed to
11524 ext_lang_frame_args.
11525 (finish_python_initialization): Delete.
11526 (eval_python_from_control_command): Delete.
11527 (source_python_script): Delete.
11528 (apply_val_pretty_printer): Delete.
11529 (apply_frame_filter): Delete.
11530 (preserve_python_values): Delete.
11531 (gdbpy_script_language_defn): Delete.
11532 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11533 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11534
11535 * auto-load.c: #include "extension.h".
11536 (GDB_AUTO_FILE_NAME): Delete.
11537 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11538 (script_language_gdb): Delete, moved to extension.c and renamed to
11539 extension_language_gdb.
11540 (source_gdb_script_for_objfile): Delete.
11541 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11542 (loaded_script): Change type of language member to
11543 struct extension_language_defn *.
11544 (init_loaded_scripts_info): Initialize
11545 unsupported_script_warning_printed.
11546 (maybe_add_script): Make static. Change type of language arg to
11547 struct extension_language_defn *.
11548 (clear_section_scripts): Reset unsupported_script_warning_printed.
11549 (auto_load_objfile_script_1): Rewrite to use extension language API.
11550 (auto_load_objfile_script): Make public. Remove support-compiled-in
11551 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11552 (source_section_scripts): Rewrite to use extension language API.
11553 (load_auto_scripts_for_objfile): Rewrite to use
11554 auto_load_scripts_for_objfile.
11555 (collect_matching_scripts_data): Change type of language member to
11556 struct extension_language_defn *.
11557 (auto_load_info_scripts): Change type of language arg to
11558 struct extension_language_defn *.
11559 (unsupported_script_warning_print): New function.
11560 (script_not_found_warning_print): Make static.
11561 (_initialize_auto_load): Rewrite construction of scripts-directory
11562 help.
11563 * auto-load.h (struct objfile): Add forward decl.
11564 (struct script_language): Delete.
11565 (struct auto_load_pspace_info): Add forward decl.
11566 (struct extension_language_defn): Add forward decl.
11567 (maybe_add_script): Delete.
11568 (auto_load_objfile_script): Declare.
11569 (script_not_found_warning_print): Delete.
11570 (auto_load_info_scripts): Update prototype.
11571 (auto_load_gdb_scripts_enabled): Declare.
11572 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11573 auto_load_python_scripts_enabled and made public.
11574 (script_language_python): Delete, moved to python.c.
11575 (gdbpy_script_language_defn): Delete.
11576 (info_auto_load_python_scripts): Update to use
11577 extension_language_python.
11578
11579 * breakpoint.c (condition_command): Replace call to
11580 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11581 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11582 with call to breakpoint_ext_lang_cond_says_stop.
11583 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11584 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11585 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11586 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11587 New arg slang.
11588 (local_setattro): Print name of extension language with existing
11589 stop condition.
11590
11591 * valprint.c (val_print, value_print): Update to call
11592 apply_ext_lang_val_pretty_printer.
11593 * cp-valprint.c (cp_print_value): Update call to
11594 apply_ext_lang_val_pretty_printer.
11595 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11596 (gdbpy_apply_val_pretty_printer): Renamed from
11597 apply_val_pretty_printer. New arg extlang.
11598 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11599
11600 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11601 extension language API.
11602 * cli/cli-script.c (execute_control_command): Update to call
11603 eval_ext_lang_from_control_command.
11604
11605 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11606 enum ext_lang_bt_status values. Update call to
11607 apply_ext_lang_frame_filter.
11608 (mi_cmd_stack_list_locals): Ditto.
11609 (mi_cmd_stack_list_args): Ditto.
11610 (mi_cmd_stack_list_variables): Ditto.
11611 * mi/mi-main.c: Delete #include "python/python-internal.h".
11612 Add #include "extension.h".
11613 (mi_cmd_list_features): Replace reference to python internal variable
11614 gdb_python_initialized with call to ext_lang_initialized_p.
11615
11616 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11617 Update to use enum ext_lang_frame_args. Update to call
11618 apply_ext_lang_frame_filter.
11619 * python/py-framefilter.c (extract_sym): Update to use enum
11620 ext_lang_bt_status.
11621 (extract_value, py_print_type, py_print_value): Ditto.
11622 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11623 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11624 (py_print_frame): Ditto.
11625 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11626 New arg extlang. Update to use enum ext_lang_bt_status.
11627
11628 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11629 finish_python_initialization. Replace with call to
11630 finish_ext_lang_initialization.
11631
11632 * typeprint.c (do_free_global_table): Update to call
11633 free_ext_lang_type_printers.
11634 (create_global_typedef_table): Update to call
11635 start_ext_lang_type_printers.
11636 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11637 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11638 (type_print_options): Change type of global_printers from "void *"
11639 to "struct ext_lang_type_printers *".
11640
11641 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11642 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11643 (gdbpy_preserve_values): Renamed from preserve_python_values.
11644 New arg extlang.
11645 (!HAVE_PYTHON, preserve_python_values): Delete.
11646
11647 * utils.c (quit_flag): Delete, moved to extension.c.
11648 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11649 extension.c.
11650
11651 * eval.c: Delete #include "python/python.h".
11652 * main.c: Delete #include "python/python.h".
11653
11654 * defs.h: Update comment.
11655
6af79985
JB
116562014-02-06 Joel Brobecker <brobecker@adacore.com>
11657
11658 GDB 7.7 released.
11659
12c5175d
MK
116602014-02-05 Mark Kettenis <kettenis@gnu.org>
11661
11662 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11663 defined.
11664
8dc5b319
YQ
116652014-02-05 Yao Qi <yao@codesourcery.com>
11666
11667 * remote.c (remote_pass_signals): Remove local 'buf' and use
11668 rs->buf.
11669 (remote_program_signals): Likewise.
11670
de7b2893
YQ
116712014-02-05 Yao Qi <yao@codesourcery.com>
11672
11673 * ctf.c: Include "inferior.h" and "gdbthread.h".
11674 (CTF_PID): A new macro.
11675 (ctf_open): Call inferior_appeared and add_thread_silent.
11676 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11677 (ctf_thread_alive): New function.
11678 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11679
66d032ac
YQ
116802014-02-05 Yao Qi <yao@codesourcery.com>
11681
11682 Revert this patch:
11683
11684 2013-05-24 Yao Qi <yao@codesourcery.com>
11685
11686 * tracepoint.c (TFILE_PID): Remove.
11687 (tfile_open): Don't add thread and inferior.
11688 (tfile_close): Don't set 'inferior_ptid'. Don't call
11689 exit_inferior_silent.
11690 (tfile_thread_alive): Remove.
11691 (init_tfile_ops): Don't set field 'to_thread_alive' of
11692 tfile_ops.
11693
f4ccffad
CE
116942014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11695
11696 * remote.c (remote_start_remote): Call remote_check_symbols even
11697 if only symbol-file (not file) has been given.
11698
591a12a1
UW
116992014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11700
11701 * gdbarch.sh (skip_entrypoint): New callback.
11702 * gdbarch.c, gdbarch.h: Regenerate.
11703 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11704 * infrun.c (fill_in_stop_func): Likewise.
11705 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11706 (ppc_elfv2_elf_make_msymbol_special): New function.
11707 (ppc_elfv2_skip_entrypoint): Likewise.
11708 (ppc_linux_init_abi): Install them for ELFv2.
11709
cc0e89c5
UW
117102014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11711
11712 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11713 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11714 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11715 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11716 structures returned in GPRs.
11717
52f548e4
UW
117182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11719
11720 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11721 offset to the stack parameter list for the ELFv2 ABI.
11722
d4094b6a
UW
117232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11724
11725 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11726 set_gdbarch_convert_from_func_ptr_addr and
11727 set_gdbarch_elf_make_msymbol_special for ELFv1.
11728 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11729 function descriptors on ELFv1.
11730 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11731 set up r12 at function entry.
11732
cd453cd0
UW
117332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11734
11735 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11736 (struct gdbarch_tdep): New member elf_abi.
11737
11738 * rs6000-tdep.c: Include "elf/ppc64.h".
11739 (rs6000_gdbarch_init): Detect ELF ABI version.
11740
0ff3e01f
UW
117412014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11742
11743 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11744 within a register pair holding a DFP 128-bit value on little-endian.
11745 (ppc64_sysv_abi_return_value_base): Likewise.
11746 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11747 (dfp_pseudo_register_write): Likewise.
11748
5b757e5d
UW
117492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11750
11751 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11752 offset on little-endian when passing _Decimal32.
11753 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11754
084ee545
UW
117552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11756
11757 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11758 of the overlapped FP register within the VSX register on little-
11759 endian platforms.
11760 (efpr_pseudo_register_write): Likewise.
11761
d63167af
UW
117622014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11763
11764 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11765 offset on little-endian when passing small structures.
11766
e765b44c
UW
117672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11768
11769 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11770 (struct ppc64_sysv_argpos): New data structure.
11771 (ppc64_sysv_abi_push_float): Remove.
11772 (ppc64_sysv_abi_push_val): New function.
11773 (ppc64_sysv_abi_push_integer): Likewise.
11774 (ppc64_sysv_abi_push_freg): Likewise.
11775 (ppc64_sysv_abi_push_vreg): Likewise.
11776 (ppc64_sysv_abi_push_param): Likewise.
11777 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11778 (ppc64_sysv_abi_return_value_base): New function.
11779 (ppc64_sysv_abi_return_value): Refactor to use it.
11780
36c24d95
UW
117812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11782
11783 * NEWS: Document new target powerpc64le-*-linux*.
11784
26fd9228
MK
117852014-02-04 Mark Kettenis <kettenis@gnu.org>
11786
11787 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11788 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11789 core dumps.
11790 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11791 register set used in ELF core dumps. Add floating-point register set.
11792
c5bb7362
KB
117932014-02-03 Kevin Buettner <kevinb@redhat.com>
11794
74228e77 11795 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11796 dwarf2_to_gdb[] table using symbolic constants. Adjust
11797 penultimate entry from number representing the PC register
11798 to symbolic constant representing the MDR register. Add
11799 constant for the PC register to the end of the table.
11800
af09351e
MK
118012014-02-03 Mark Kettenis <kettenis@gnu.org>
11802
11803 * bsd-kvm.c: Include <sys/param.h>
11804
8507e05d
MK
118052014-02-03 Mark Kettenis <kettenis@gnu.org>
11806
11807 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11808
ae56bfb8
JB
118092014-01-31 Joel Brobecker <brobecker@adacore.com>
11810
11811 * ada-lang.h (clear_ada_sym_cache): Delete.
11812
718ee4dc
UW
118132014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11814
11815 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11816
401e27fd
JM
118172014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11818
11819 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11820 the sigreturn register save area only if the syscall is
11821 sigreturn.
11822
a7c88acd
JB
118232014-01-29 Joel Brobecker <brobecker@adacore.com>
11824
11825 * valops.c (value_slice): Minor reformatting.
11826
fa0079ea
UW
118272014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11828
11829 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11830
c6044dd1
JB
118312014-01-28 Joel Brobecker <brobecker@adacore.com>
11832
11833 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11834 New static globals.
11835 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11836 (ada_ignore_descriptive_types_p): New static global.
11837 (find_parallel_type_by_descriptive_type): Return immediately
11838 if ada_ignore_descriptive_types_p is set.
11839 (_initialize_ada_language): Register new commands "maintenance
11840 set ada", "maintenance show ada", "maintenance set ada
11841 ignore-descriptive-types" and "maintenance show ada
11842 ignore-descriptive-types".
11843 * NEWS: Add entry for new "maint ada set/show
11844 ignore-descriptive-types" commands.
11845
568e808b
MM
118462014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11847
11848 * record-btrace.c (record_btrace_close): Call btrace_teardown
11849 for all threads.
11850
467d141b
JB
118512014-01-27 Joel Brobecker <brobecker@adacore.com>
11852
11853 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11854 "ui-out.h".
11855
fb151210
JB
118562014-01-27 Joel Brobecker <brobecker@adacore.com>
11857
11858 * ada-typeprint (type_is_full_subrange_of_target_type):
11859 New function.
11860 (print_range): Add parameter bounds_prefered_p. If not set,
11861 try printing range types using the name of their base type.
11862 (print_range_type): Add parameter bounds_prefered_p.
11863 Use it in call to print_range.
11864 (print_array_type, ada_print_type): Update calls to print_range
11865 and print_range_type.
11866
aba02109
JB
118672014-01-27 Joel Brobecker <brobecker@adacore.com>
11868
11869 * ada-typeprint.c (print_array_type, print_choices, print_range)
11870 (print_range_bound, print_dynamic_range_bound, print_range_type):
11871 Remove declaration.
11872
e62e21fd
JB
118732014-01-27 Joel Brobecker <brobecker@adacore.com>
11874
11875 * ada-typeprint.c (print_range): Add missing empty line
11876 after local declaration.
11877
859cf5d1
JB
118782014-01-27 Joel Brobecker <brobecker@adacore.com>
11879
11880 * ada-valprint.c (print_optional_low_bound): Get index_type's
11881 target type for as long as it is a TYPE_CODE_RANGE.
11882
25790f6f
JB
118832014-01-27 Joel Brobecker <brobecker@adacore.com>
11884
11885 * procfs.c (procfs_make_note_section): Remove assertion and
11886 associated comment.
11887
6b6aa828
YQ
118882014-01-24 Yao Qi <yao@codesourcery.com>
11889
11890 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11891 * corelow.c (get_core_siginfo): Likewise.
11892
5d6df423
YQ
118932014-01-24 Yao Qi <yao@codesourcery.com>
11894
11895 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11896 ULONGEST. Don't check 'len' is negative.
11897 (remote_write_bytes): Change type of 'len' to ULONGEST.
11898
83b645b8
TT
118992014-01-23 Tom Tromey <tromey@redhat.com>
11900
11901 PR python/16485:
11902 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11903 Handle exception from frame.block.
11904 (FrameVars.fetch_frame_locals): Likewise.
11905
0740f8d8
TT
119062014-01-23 Tom Tromey <tromey@redhat.com>
11907
11908 PR python/16487:
11909 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11910 on a NULL pointer. Move "goto error" to correct place.
11911
21909fa1
TT
119122014-01-23 Tom Tromey <tromey@redhat.com>
11913
11914 PR python/16491:
11915 * python/py-framefilter.c (apply_frame_filter): Call
11916 ensure_python_env after computing gdbarch.
11917
17fde6d0
YQ
119182014-01-23 Yao Qi <yao@codesourcery.com>
11919
11920 * target.c (raw_memory_xfer_partial): Change argument type
11921 from void * to gdb_byte *.
11922 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11923
87ce2a04
DE
119242014-01-22 Doug Evans <dje@google.com>
11925
11926 New gdbserver option --debug-format=timestamp.
11927 * NEWS: Mention it.
11928
237b092b
AA
119292014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11930
11931 * syscalls/s390x-linux.xml: New file.
11932 * syscalls/s390-linux.xml: New file.
11933 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11934 (XML_SYSCALL_FILENAME_S390X): Likewise.
11935 (op_svc): New enum value for SVC opcode.
11936 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11937 (s390_linux_get_syscall_number): New function.
11938 (s390_gdbarch_init): Register '*get_syscall_number' and the
11939 syscall xml file name.
11940 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11941 "s390-linux.xml" and "s390x-linux.xml".
11942 * NEWS: Announce new feature.
11943
54bff650
BS
119442014-01-22 Baruch Siach <baruch@tkos.co.il>
11945
11946 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11947
14e361d7
PA
119482014-01-22 Pedro Alves <palves@redhat.com>
11949
11950 * xtensa-config.c: Include defs.h.
11951
46bbb3ed
JB
119522014-01-22 Joel Brobecker <brobecker@adacore.com>
11953
11954 * common/common-utils.h: Add "ARI:" comment beside __func__
11955 reference.
11956
3a80edfc
JB
119572014-01-22 Joel Brobecker <brobecker@adacore.com>
11958
11959 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11960 documentation a bit.
11961
4869db5e
RM
119622014-01-21 Roland McGrath <mcgrathr@google.com>
11963
11964 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11965 * configure: Regenerate.
11966 * aclocal.m4: Regenerate.
11967 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11968 New substituted variables.
11969 (install-strip): New target.
11970 (INSTALL_SCRIPT): New substituted variable.
11971 (FLAGS_TO_PASS): Add it.
11972 (install-only): Use $(INSTALL_SCRIPT) rather than
11973 $(INSTALL_PROGRAM) for gcore.
11974
9ea4267d
TT
119752014-01-20 Tom Tromey <tromey@redhat.com>
11976
11977 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11978 together.
11979
1f2bdf09
TT
119802014-01-20 Tom Tromey <tromey@redhat.com>
11981
11982 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11983 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11984 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11985 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11986 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11987 (struct cmd_list_element) <flags>: Remove.
11988 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11989 doc_allocated>: New fields.
11990 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11991 bitfields.
11992 * maint.c (maintenance_do_deprecate): Update.
11993 * top.c (execute_command): Update.
11994
e671835b
BS
119952014-01-20 Baruch Siach <baruch@tkos.co.il>
11996
11997 * xtensa-linux-nat.c: Include asm/ptrace.h.
11998
50367cd2
IB
119992014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12000
12001 * Makefile.in (SFILES): Add d-support.c.
12002 (COMMON_OBS): Add d-support.o.
12003 * d-lang.h (d_parse_symbol): Add comment, now defined in
12004 d-support.c.
12005 * d-lang.c (parse_call_convention)
12006 (parse_attributes, parse_function_types)
12007 (parse_function_args, parse_type, parse_identifier)
12008 (call_convention_p, d_parse_symbol): Move functions to ...
12009 * d-support.c: ... New file.
12010
ec9f644a
IB
120112014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12012
12013 * d-lang.h (d_parse_symbol): Add declaration.
12014 * d-lang.c (extract_identifiers)
12015 (extract_type_info): Remove functions.
12016 (parse_call_convention, parse_attributes)
12017 (parse_function_types, parse_function_args)
12018 (parse_type, parse_identifier, call_convention_p)
12019 (d_parse_symbol): New functions.
12020 (d_demangle): Use d_parse_symbol to demangle D symbols.
12021
94b1b47e
IB
120222014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12023
12024 * d-lang.h (struct builtin_d_type): New data type.
12025 (builtin_d_type): Add declaration.
12026 * d-lang.c (d_language_arch_info, build_d_types)
12027 (builtin_d_type): New functions.
12028 (enum d_primitive_types): New data type.
12029 (d_language_defn): Change c_language_arch_info to
12030 d_language_arch_info.
12031 (d_type_data): New static variable.
12032 (_initialize_d_language): Initialize d_type_data.
12033
63778547
IB
120342014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12035
12036 * d-lang.h (d_main_name): Add declaration.
12037 * d-lang.c (d_main_name): New function.
12038 * symtab.c (find_main_name): Add call to d_main_name.
12039
3271ba66
IB
120402014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12041
12042 * d-lang.c (d_language_defn): Change macro_expansion_c to
12043 macro_expansion_no.
12044
d36b3012
IB
120452014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12046
12047 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12048
c90a6fb7
SDJ
120492014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12050
12051 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12052 gdb_exception" declaration.
12053 * remote.c (getpkt_or_notif_sane): Likewise.
12054
749234e5
DE
120552014-01-17 Doug Evans <dje@google.com>
12056
12057 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12058 function, contents of dirnames_to_char_ptr_vec_append moved here.
12059 (delim_string_to_char_ptr_vec): New function.
12060 (dirnames_to_char_ptr_vec_append): Rewrite.
12061 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12062
df049a58
DE
120632014-01-17 Doug Evans <dje@google.com>
12064
12065 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12066 and moved here ...
12067 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12068 #include "common-utils.h".
12069 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12070 * common/vec.h (VEC_ASSERT_PASS): Update.
12071 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12072 (MACH_CHECK_ERROR): Update.
12073
69f97648
SM
120742014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12075
12076 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12077 comments.
12078 * gdbarch.h: Regenerate.
12079
98b1cfdc
TT
120802014-01-16 Tom Tromey <tromey@redhat.com>
12081
12082 * value.c (struct value) <regnum>: Move earlier.
12083
77a19445
TT
120842014-01-16 Tom Tromey <tromey@redhat.com>
12085
12086 * remote.c (extended_remote_create_inferior): Rename from
12087 extended_remote_create_inferior_1. Add "ops" argument. Remove
12088 old implementation.
12089
62261490
PA
120902014-01-16 Pedro Alves <palves@redhat.com>
12091
12092 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12093 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12094 the backchain.
12095
4d65956b
DE
120962014-01-16 Doug Evans <dje@google.com>
12097
12098 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12099
52834460
MM
121002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12101
12102 * btrace.h (btrace_thread_flag): New.
12103 (struct btrace_thread_info) <flags>: New.
12104 * record-btrace.c (record_btrace_resume_thread)
12105 (record_btrace_find_thread_to_move, btrace_step_no_history)
12106 (btrace_step_stopped, record_btrace_start_replaying)
12107 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12108 (record_btrace_find_resume_thread): New.
12109 (record_btrace_resume, record_btrace_wait): Extend.
12110 (record_btrace_can_execute_reverse): New.
12111 (record_btrace_open): Fail in non-stop mode.
12112 (record_btrace_set_replay): Split into this, ...
12113 (record_btrace_stop_replaying): ... this, ...
12114 (record_btrace_clear_histories): ... and this.
12115 (init_record_btrace_ops): Init to_can_execute_reverse.
12116 * NEWS: Announce it.
12117
118e6252
MM
121182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12119
12120 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12121 (forward_target_decr_pc_after_break)
12122 (target_decr_pc_after_break): New.
12123 * target.c (forward_target_decr_pc_after_break)
12124 (target_decr_pc_after_break): New.
12125 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12126 instead of gdbarch_decr_pc_after_break.
12127 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12128 instead of gdbarch_decr_pc_after_break.
12129 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12130 instead of gdbarch_decr_pc_after_break.
12131 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12132 instead of gdbarch_decr_pc_after_break.
12133 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12134 instead of gdbarch_decr_pc_after_break.
12135 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12136 instead of gdbarch_decr_pc_after_break.
12137
6e07b1d2
MM
121382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12139
12140 * btrace.c: Include regcache.h.
12141 (btrace_add_pc): New.
12142 (btrace_enable): Call btrace_add_pc.
12143 (btrace_is_empty): New.
12144 * btrace.h (btrace_is_empty): New.
12145 * record-btrace.c (require_btrace, record_btrace_info): Call
12146 btrace_is_empty.
12147
969c39fb
MM
121482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12149
12150 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12151 Support delta reads.
12152 (linux_disable_btrace): Change return type.
12153 * common/linux-btrace.h (linux_read_btrace): Change parameters
12154 and return type to allow error reporting. Update users.
12155 (linux_disable_btrace): Change return type. Update users.
12156 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12157 New.
12158 (btrace_error): New.
12159 (btrace_block) <begin>: Comment on BEGIN == 0.
12160 * btrace.c (btrace_compute_ftrace): Start from the end of
12161 the current trace.
12162 (btrace_stitch_trace, btrace_clear_history): New.
12163 (btrace_fetch): Read delta trace, return if replaying.
12164 (btrace_clear): Move clear history code to btrace_clear_history.
12165 (parse_xml_btrace): Throw an error if parsing failed.
12166 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12167 and return type to allow error reporting.
12168 (target_read_btrace): Change parameters and return type to allow
12169 error reporting.
12170 * target.c (target_read_btrace): Update.
12171 * remote.c (remote_read_btrace): Support delta reads. Pass
12172 errors on.
12173 * NEWS: Announce it.
12174
0b722aec
MM
121752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12176
12177 * record.h (record_btrace_frame_unwind)
12178 (record_btrace_tailcall_frame_unwind): New declarations.
12179 * dwarf2-frame: Include record.h
12180 (dwarf2_frame_cfa): Throw an error for btrace frames.
12181 * record-btrace.c: Include hashtab.h.
12182 (btrace_get_bfun_name): New.
12183 (btrace_call_history): Call btrace_get_bfun_name.
12184 (struct btrace_frame_cache): New.
12185 (bfcache): New.
12186 (bfcache_hash, bfcache_eq, bfcache_new): New.
12187 (btrace_get_frame_function): New.
12188 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12189 (record_btrace_frame_this_id): Compute own id.
12190 (record_btrace_frame_prev_register): Provide PC, throw_error
12191 for all other registers.
12192 (record_btrace_frame_sniffer): Detect btrace frames.
12193 (record_btrace_tailcall_frame_sniffer): New.
12194 (record_btrace_frame_dealloc_cache): New.
12195 (record_btrace_frame_unwind): Add new functions.
12196 (record_btrace_tailcall_frame_unwind): New.
12197 (_initialize_record_btrace): Allocate cache.
12198 * btrace.c (btrace_clear): Call reinit_frame_cache.
12199 * NEWS: Announce it.
12200
066ce621
MM
122012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12202
12203 * record-btrace.c (record_btrace_set_replay)
12204 (record_btrace_goto_begin, record_btrace_goto_end)
12205 (record_btrace_goto): New.
12206 (init_record_btrace_ops): Initialize them.
12207 * NEWS: Announce it.
12208
e2887aa3
MM
122092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12210
12211 * record-btrace.c (record_btrace_find_new_threads)
12212 (record_btrace_thread_alive): New.
12213 (init_record_btrace_ops): Initialize to_find_new_threads and
12214 to_thread_alive.
12215
b2f4cfde
MM
122162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12217
12218 * record-btrace.c (record_btrace_resume): New.
12219 (record_btrace_wait): New.
12220 (init_record_btrace_ops): Initialize to_wait and to_resume.
12221
633785ff
MM
122222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12223
12224 * record-btrace.c (record_btrace_xfer_partial)
12225 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12226 (record_btrace_allow_memory_access): New.
12227 (init_record_btrace_ops): Initialize new methods.
12228 * target.c (raw_memory_xfer_partial): Bail out if target reports
12229 that this memory is not available.
12230
3db08215
MM
122312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12232
12233 * target.h (target_ops) <to_insert_breakpoint>
12234 <to_remove_breakpoint>: Add target_ops parameter.
12235 (forward_target_insert_breakpoint): New.
12236 (forward_target_remove_breakpoint): New.
12237 (memory_remove_breakpoint, memory_insert_breakpoint):
12238 Add target_ops parameter.
12239 * target.c (target_insert_breakpoint): Split into this and ...
12240 (forward_target_insert_breakpoint): ... this.
12241 (target_remove_breakpoint): Split into this and ...
12242 (forward_target_remove_breakpoint): ... this.
12243 (debug_to_insert_breakpoint): Add target_ops parameter.
12244 Call forward_target_insert_breakpoint.
12245 (debug_to_remove_breakpoint): Add target_ops parameter.
12246 Call forward_target_remove_breakpoint.
12247 (update_current_target): Do not inherit or default to_insert_breakpoint
12248 and to_remove_breakpoint.
12249 * corelow.c (ignore): Add target_ops parameter.
12250 * exec.c (ignore): Add target_ops parameter.
12251 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12252 Add target_ops parameter.
12253 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12254 Add target_ops parameter.
12255 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12256 Add target_ops parameter.
12257 * record-full.c (record_full_beneath_to_insert_breakpoint)
12258 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12259 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12260 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12261 (record_full_core_remove_breakpoint): Add target_ops parameter.
12262 Update users.
12263 (record_full_beneath_to_insert_breakpoint_ops)
12264 (record_full_beneath_to_remove_breakpoint_ops)
12265 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12266 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12267 tmp_to_remove_breakpoint_ops,
12268 record_full_beneath_to_insert_breakpoint_ops, and
12269 record_full_beneath_to_remove_breakpoint_ops.
12270 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12271 (m32r_remove_breakpoint): Add target_ops parameter.
12272 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12273 Add target_ops parameter.
12274 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12275 Add target_ops parameter.
12276
cecac1ab
MM
122772014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12278 Markus Metzger <markus.t.metzger@intel.com>
12279
12280 * record-btrace.c: Include frame-unwind.h.
12281 (record_btrace_frame_unwind_stop_reason)
12282 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12283 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12284 New.
12285 (init_record_btrace_ops): Install it.
12286
824344ca
MM
122872014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12288
12289 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12290 get_prev_frame_1.
12291
32261e52
MM
122922014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12293
12294 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12295 earlier.
12296
ea001bdc
MM
122972014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12298
12299 * frame-unwind.c: Include target.h.
12300 (frame_unwind_try_unwinder): New function with code from ...
12301 (frame_unwind_find_by_frame): ... here. New variable
12302 unwinder_from_target, call also target_get_unwinder)
12303 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12304 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12305 * target.h (struct target_ops): New fields to_get_unwinder and
12306 to_get_tailcall_unwinder.
12307 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12308
1f3ef581
MM
123092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12310
12311 * record-btrace.c (record_btrace_fetch_registers)
12312 (record_btrace_store_registers)
12313 (record_btrace_to_prepare_to_store): New.
12314 (init_record_btrace_ops): Add the above.
12315
f32dbf8c
MM
123162014-01-16 Tom Tromey <tromey@redhat.com>
12317
12318 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12319 * target.h (struct target_ops) <to_prepare_to_store>: Add
12320 argument.
12321 (target_prepare_to_store): Add argument.
12322 * target.c (debug_to_prepare_to_store): Add argument.
12323 (update_current_target): Update.
12324 * remote.c (remote_prepare_to_store): Add 'self' argument.
12325 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12326 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12327 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12328 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12329 argument.
12330 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12331 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12332 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12333 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12334 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12335
07bbe694
MM
123362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12337
12338 * btrace.h (replay) <replay>: New.
12339 (btrace_is_replaying): New.
12340 * btrace.c (btrace_clear): Free replay iterator.
12341 (btrace_is_replaying): New.
12342 * record-btrace.c (record_btrace_is_replaying): New.
12343 (record_btrace_info): Print insn number if replaying.
12344 (record_btrace_insn_history): Start at replay position.
12345 (record_btrace_call_history): Start at replay position.
12346 (init_record_btrace_ops): Init to_record_is_replaying.
12347
0688d04e
MM
123482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12349
12350 * record-btrace.c (record_btrace_insn_history_range): Include
12351 end.
12352 (record_btrace_insn_history_from): Adjust range.
12353 (record_btrace_call_history_range): Include
12354 end.
12355 (record_btrace_call_history_from): Adjust range.
12356 * NEWS: Announce changes.
12357
8710b709
MM
123582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12359
12360 * record.h (enum record_print_flag)
12361 <record_print_indent_calls>: New.
12362 * record.c (get_call_history_modifiers): Recognize /c modifier.
12363 (_initialize_record): Document /c modifier.
12364 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12365 Reorder fields. Optionally indent the function name. Update
12366 all users.
12367 * NEWS: Announce changes.
12368
d0fa7535
MM
123692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12370
12371 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12372
5de9129b
MM
123732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12374
12375 * btrace.c (ftrace_new_function): Start counting at one.
12376 * record-btrace.c (record_btrace_info): Adjust number of calls
12377 and insns.
12378 * NEWS: Announce it.
12379
7acbe133
MM
123802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12381
12382 * record-btrace.c (btrace_call_history_insn_range): Print
12383 insn range as [begin, end].
12384
23a7fe75
MM
123852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12386
12387 * btrace.h (struct btrace_func_link): New.
12388 (enum btrace_function_flag): New.
12389 (struct btrace_inst): Rename to ...
12390 (struct btrace_insn): ...this. Update all users.
12391 (struct btrace_func) <ibegin, iend>: Remove.
12392 (struct btrace_func_link): New.
12393 (struct btrace_func): Rename to ...
12394 (struct btrace_function): ...this. Update all users.
12395 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12396 (number, level, flags>: New.
12397 (struct btrace_insn_iterator): Rename to ...
12398 (struct btrace_insn_history): ...this.
12399 Update all users.
12400 (struct btrace_insn_iterator, btrace_call_iterator): New.
12401 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12402 (struct btrace_target_info) <begin, end, level>
12403 <insn_history, call_history>: New.
12404 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12405 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12406 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12407 (btrace_call_number, btrace_call_begin, btrace_call_end)
12408 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12409 (btrace_find_function_by_number, btrace_set_insn_history)
12410 (btrace_set_call_history): New.
12411 * btrace.c (btrace_init_insn_iterator)
12412 (btrace_init_func_iterator, compute_itrace): Remove.
12413 (ftrace_print_function_name, ftrace_print_filename)
12414 (ftrace_skip_file): Change
12415 parameter to const.
12416 (ftrace_init_func): Remove.
12417 (ftrace_debug): Use new btrace_function fields.
12418 (ftrace_function_switched): Also consider gaining and
12419 losing symbol information).
12420 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12421 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12422 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12423 New.
12424 (ftrace_new_function): Move. Remove debug print.
12425 (ftrace_update_lines, ftrace_update_insns): New.
12426 (ftrace_update_function): Check for call, ret, and jump.
12427 (compute_ftrace): Renamed to ...
12428 (btrace_compute_ftrace): ...this. Rewritten to compute call
12429 stack.
12430 (btrace_fetch, btrace_clear): Updated.
12431 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12432 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12433 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12434 (btrace_call_number, btrace_call_begin, btrace_call_end)
12435 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12436 (btrace_find_function_by_number, btrace_set_insn_history)
12437 (btrace_set_call_history): New.
12438 * record-btrace.c (require_btrace): Use new btrace thread
12439 info fields.
12440 (record_btrace_info, btrace_insn_history)
12441 (record_btrace_insn_history, record_btrace_insn_history_range):
12442 Use new btrace thread info fields and new iterator.
12443 (btrace_func_history_src_line): Rename to ...
12444 (btrace_call_history_src_line): ...this. Use new btrace
12445 thread info fields.
12446 (btrace_func_history): Rename to ...
12447 (btrace_call_history): ...this. Use new btrace thread info
12448 fields and new iterator.
12449 (record_btrace_call_history, record_btrace_call_history_range):
12450 Use new btrace thread info fields and new iterator.
12451
8372a7cb
MM
124522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12453
12454 * frame.h (frame_id_build_unavailable_stack_special): New.
12455 * frame.c (frame_id_build_unavailable_stack_special): New.
12456
c2170eef
MM
124572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12458
12459 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12460 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12461 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12462 to gdbarch.
12463 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12464 (i386_insn_is_jump, i386_jmp_p): New.
12465 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12466 insn_is_jump to gdbarch.
12467 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12468 * gdbarch.h: Regenerated.
12469 * gdbarch.c: Regenerated.
12470 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12471 (default_insn_is_jump): New.
12472 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12473 (default_insn_is_jump): New.
12474
864089d2
MM
124752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12476
12477 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12478 Change to ...
12479 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12480 (btrace_read_type) <btrace_read_new>: Change to ...
12481 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12482
ed9edfb5
MM
124832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12484
12485 * common/linux-btrace.c (linux_read_btrace): Free trace from
12486 previous iteration.
12487
fbcbc3fd
DE
124882014-01-15 Doug Evans <dje@google.com>
12489
12490 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12491 uint32_t.
12492
3d548a53
TT
124932014-01-15 Tom Tromey <tromey@redhat.com>
12494
12495 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12496 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12497 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12498 (set_objfile_main_name): New function.
12499 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12500 language_of_main>: New fields.
12501 (set_objfile_main_name): Declare.
12502 * symtab.c (find_main_name): Loop over objfiles to find the main
12503 name and language.
12504 (set_main_name): Now static.
12505 (get_main_info): Add comment.
12506 * symtab.h (set_main_name): Don't declare.
12507
32ac0d11
TT
125082014-01-15 Tom Tromey <tromey@redhat.com>
12509
12510 * symtab.c (main_progspace_key): New global.
12511 (struct main_info): New.
12512 (name_of_main, language_of_main): Remove.
12513 (get_main_info, main_info_cleanup): New function.
12514 (set_main_name, main_name, main_language): Use get_main_info.
12515 (_initialize_symtab): Initialize main_progspace_key.
12516
9e6c82ad
TT
125172014-01-15 Tom Tromey <tromey@redhat.com>
12518
12519 * dbxread.c (process_one_symbol): Update.
12520 * dwarf2read.c (read_partial_die): Update.
12521 * symfile.c (set_initial_language): Call main_language.
12522 * symtab.c (language_of_main): Now static.
12523 (set_main_name): Add 'lang' parameter.
12524 (find_main_name): Update.
12525 (main_language): New function.
12526 (symtab_observer_executable_changed): Update.
12527 * symtab.h (set_main_name): Update.
12528 (language_of_main): Remove.
12529 (main_language): Declare.
12530
6ef55de7
TT
125312014-01-15 Tom Tromey <tromey@redhat.com>
12532
12533 * symfile.c (init_entry_point_info): Use new "initialized" field.
12534 Update.
12535 * objfiles.h (struct entry_point) <initialized>: New field.
12536 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12537 (struct objfile) <ei>: ...here. Remove.
12538 * objfiles.c (entry_point_address_query): Update.
12539
53eddfa6
TT
125402014-01-15 Tom Tromey <tromey@redhat.com>
12541
12542 * objfiles.c (entry_point_address_query): Relocate entry point
12543 address.
12544 (objfile_relocate1): Do not relocate entry point address.
12545 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12546 <the_bfd_section_index>: New field.
12547 * symfile.c (init_entry_point_info): Find the entry point's
12548 section.
12549
d56e56aa
TT
125502014-01-15 Tom Tromey <tromey@redhat.com>
12551
12552 * solib-frv.c (enable_break): Use entry_point_address_query.
12553
33a97bbe
OJ
125542014-01-15 Omair Javaid <omair.javaid@linaro.org>
12555
12556 * NEWS: Add note on improved process record-replay on
12557 arm*-linux* targets.
12558
c6ec2b30
OJ
125592014-01-15 Omair Javaid <omair.javaid@linaro.org>
12560
12561 * arm-tdep.c (enum arm_record_result): New enum.
12562 (arm_record_unsupported_insn): New function.
12563 (arm_record_coproc_data_proc): Removed.
12564 (thumb2_record_ld_st_multiple): New function.
12565 (thumb2_record_ld_st_dual_ex_tbb): New function.
12566 (thumb2_record_data_proc_sreg_mimm): New function.
12567 (thumb2_record_ps_dest_generic): New function.
12568 (thumb2_record_branch_misc_cntrl): New function.
12569 (thumb2_record_str_single_data): New function.
12570 (thumb2_record_ld_mem_hints): New function.
12571 (thumb2_record_ld_word): New function.
12572 (thumb2_record_lmul_lmla_div): New function.
12573 (thumb2_record_decode_insn_handler): New function.
12574 (decode_insn): Add thumb32 instruction handlers.
12575
97dfe206
OJ
125762014-01-15 Omair Javaid <omair.javaid@linaro.org>
12577
12578 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12579 (struct arm_linux_record_tdep): Declare.
12580 (arm_canonicalize_syscall): New function.
12581 (arm_all_but_pc_registers_record): New function.
12582 (arm_linux_syscall_record): New function.
12583 (arm_linux_init_abi): Add syscall recording constructs.
12584 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12585 decoding. (arm_record_coproc_data_proc): Update arm syscall
12586 decoding.
12587 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12588 <arm_syscall_record>: New field.
12589 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12590 gdb_target_obs.
12591
9904a494
OJ
125922014-01-15 Omair Javaid <omair.javaid@linaro.org>
12593
12594 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12595 register for push instruction recording.
12596
f969241e
OJ
125972014-01-15 Omair Javaid <omair.javaid@linaro.org>
12598
12599 * arm-tdep.c (thumb_record_misc): Update to correct logical
12600 error while recording ldm, ldmia and pop instructions.
12601
bfbbec00
OJ
126022014-01-15 Omair Javaid <omair.javaid@linaro.org>
12603
12604 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12605
e40adcc9
PA
126062014-01-15 Pedro Alves <palves@redhat.com>
12607
12608 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12609 (go32_resume, go32_fetch_registers, store_register)
12610 (go32_store_registers, go32_prepare_to_store)
12611 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12612 (go32_create_inferior, go32_can_run, go32_terminal_init)
12613 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12614 declarations.
12615
b0a16e66
TT
126162014-01-15 Tom Tromey <tromey@redhat.com>
12617
12618 * target.h (async_callback_ftype): New typedef.
12619 (struct target_ops) <to_async>: Use it.
12620
bf7105a4
JB
126212014-01-15 Joel Brobecker <brobecker@adacore.com>
12622
12623 * python/py-value.c (get_field_type): Remove unnecessary curly
12624 braces for single-statement if block.
12625
a8f35c2e
JB
126262014-01-15 Joel Brobecker <brobecker@adacore.com>
12627
12628 * python/py-type.c (convert_field): Add missing empty line
12629 after declarations.
12630
bb4142cf
DE
126312014-01-14 Doug Evans <dje@google.com>
12632
12633 * symfile.h (expand_symtabs_matching): Renamed from
12634 expand_partial_symbol_names. Update prototype.
12635 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12636 * symfile.c (expand_symtabs_matching): Renamed from
12637 expand_partial_symbol_names. New args file_matcher, kind.
12638 Rename arg fun to symbol_matcher.
12639 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12640 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12641 ada_expand_partial_symbol_name.
12642 (ada_make_symbol_completion_list): Update to call
12643 expand_symtabs_matching.
12644 (ada_add_global_exceptions): Call expand_symtabs_matching.
12645 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12646 call map_symbol_filenames.
12647 * symtab.c (sources_info): Update to call map_symbol_filenames.
12648 (search_symbols): Call expand_symtabs_matching.
12649 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12650 (default_make_symbol_completion_list_break_on): Update to call
12651 expand_symtabs_matching.
12652 (make_source_files_completion_list): Update to call
12653 map_symbol_filenames.
12654
206f2a57
DE
126552014-01-14 Doug Evans <dje@google.com>
12656
12657 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12658 (expand_symtabs_symbol_matcher_ftype): New typedef.
12659 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12660 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12661 * symfile.c (expand_partial_symbol_names): Update to use
12662 expand_symtabs_symbol_matcher_ftype.
12663 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12664 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12665 Arg name_matcher renamed to symbol_matcher.
12666 * psymtab.c (recursively_search_psymtabs): Update to use
12667 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12668 sym_matcher.
12669 (expand_symtabs_matching_via_partial): Update to use
12670 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12671 Arg name_matcher renamed to symbol_matcher.
12672
540c2971
DE
126732014-01-14 Doug Evans <dje@google.com>
12674
12675 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12676 (map_partial_symbol_filenames): Ditto.
12677 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12678 (map_partial_symbol_filenames): Ditto.
12679 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12680 (map_partial_symbol_filenames): Ditto.
12681 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12682 (map_partial_symbol_filenames): Ditto.
12683 * symtab.c: Delete #include "psymtab.h".
12684
8213266a
PA
126852014-01-14 Pedro Alves <palves@redhat.com>
12686 Tom Tromey <tromey@redhat.com>
12687
12688 * infrun.c (use_displaced_stepping): Use find_record_target
12689 instead of RECORD_IS_USED.
12690 (adjust_pc_after_break): Use record_full_is_used instead of
12691 RECORD_IS_USED.
12692 * record-btrace.c (record_btrace_open): Call record_preopen
12693 instead of checking RECORD_IS_USED.
12694 * record-full.c (record_full_shortname)
12695 (record_full_core_shortname): New globals.
12696 (record_full_is_used): New function.
12697 (find_full_open): Call record_preopen instead of checking
12698 RECORD_IS_USED.
12699 (init_record_full_ops): Set the target's shortname to
12700 record_full_shortname.
12701 (init_record_full_core_ops): Set the target's shortname to
12702 record_full_core_shortname.
12703 * record-full.h (record_full_is_used): Declare.
12704 * record.c (find_record_target): Make extern.
12705 (record_preopen): New function.
12706 * record.h (RECORD_IS_USED): Delete macro.
12707 (find_record_target, record_preopen): Declare functions.
12708
7ec1862d
YQ
127092014-01-14 Yao Qi <yao@codesourcery.com>
12710
12711 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12712 'len''s type to ULONGEST.
12713 (core_xfer_shared_libraries_aix): Likewise.
12714 * gdbarch.c, gdbarch.h: Regenerated.
12715 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12716 Change type of 'len' to ULONGEST.
12717 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12718 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12719
dea80a27
YQ
127202014-01-14 Yao Qi <yao@codesourcery.com>
12721
12722 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12723 type of 'len' to ULONGEST.
12724 (linux_xfer_osdata_processgroups): Likewise.
12725 (linux_xfer_osdata_threads): Likewise.
12726 (linux_xfer_osdata_fds): Likewise.
12727 (linux_xfer_osdata_isockets): Likewise.
12728 (linux_xfer_osdata_shm): Likewise.
12729 (linux_xfer_osdata_sem): Likewise.
12730 (linux_xfer_osdata_msg): Likewise.
12731 (linux_common_xfer_osdata): Likewise.
12732 (struct osdata_type) <getter>: Likewise.
12733 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12734 the declaration.
12735
b55e14c7
YQ
127362014-01-14 Yao Qi <yao@codesourcery.com>
12737
12738 * target.h (target_xfer_partial_ftype): Update.
12739 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12740 ULONGEST.
12741 * aix-thread.c (aix_thread_xfer_partial): Change type of
12742 argument 'len' to ULONGEST.
12743 * auxv.c (procfs_xfer_auxv): Likewise.
12744 (ld_so_xfer_auxv): Likewise.
12745 (memory_xfer_auxv): Likewise.
12746 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12747 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12748 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12749 * corelow.c (core_xfer_partial): Likewise.
12750 * ctf.c (ctf_xfer_partial): Likewise.
12751 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12752 '%u'.
12753 (darwin_read_dyld_info): Likewise.
12754 (darwin_xfer_partial): Likewise.
12755 * exec.c (section_table_xfer_memory_partial): Likewise.
12756 (exec_xfer_partial): Likewise.
12757 * exec.h (section_table_xfer_memory_partial): Update
12758 declaration.
12759 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12760 instead of plongest.
12761 (gnu_xfer_partial): Likewise.
12762 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12763 (ia64_hpux_xfer_solib_got): Likewise.
12764 (ia64_hpux_xfer_partial): Likewise.
12765 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12766 * inf-ptrace.c (inf_ptrace_xfer_partial):
12767 * inf-ttrace.c (inf_ttrace_xfer_partial):
12768 * linux-nat.c (linux_xfer_siginfo): Likewise.
12769 (linux_nat_xfer_partial): Likewise.
12770 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12771 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12772 * monitor.c (monitor_xfer_memory): Likewise.
12773 (monitor_xfer_partial): Likewise.
12774 * procfs.c (procfs_xfer_partial): Likewise.
12775 * record-full.c (record_full_xfer_partial): Likewise.
12776 (record_full_core_xfer_partial): Likewise.
12777 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12778 instead of plongest.
12779 (gdbsim_xfer_partial): Likewise.
12780 * remote.c (remote_xfer_partial): Likewise.
12781 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12782 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12783 declaration.
12784 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12785 (rs6000_xfer_shared_libraries): Likewise.
12786 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12787 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12788 (sparc_xfer_partial): Likewise.
12789 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12790 (spu_xfer_partial): Likewise.
12791 * spu-multiarch.c (spu_xfer_partial): Likewise.
12792 * target.c (target_read_live_memory): Likewise.
12793 (memory_xfer_live_readonly_partial): Likewise.
12794 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12795 (target_xfer_partial, default_xfer_partial): Likewise.
12796 (current_xfer_partial): Likewise.
12797 * tracepoint.c (tfile_xfer_partial): Likewise.
12798 * windows-nat.c (windows_xfer_memory): Likewise. Call
12799 pulongest instead of plongest.
12800 (windows_xfer_partial): Likewise.
12801 (windows_xfer_shared_libraries): Likewise.
12802
05804640
YQ
128032014-01-14 Yao Qi <yao@codesourcery.com>
12804
12805 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12806 target_xfer_partial_ftype.
12807
b5b08fb4
SC
128082014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12809
12810 PR python/15464
12811 PR python/16113
12812 * valops.c (value_struct_elt_bitpos): New function
12813 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12814 object to 'None' if the field name is an empty string ("").
12815 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12816 attribute to look for a field when 'name' is 'None'.
12817 (get_field_type): New function
12818
13aaf454
DE
128192014-01-13 Doug Evans <dje@google.com>
12820
12821 PR symtab/16426
12822 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12823 (try_open_dwop_file): Ditto.
12824 * gdb_bfd.c: #include "vec.h".
12825 (bfdp): New typedef.
12826 (struct gdb_bfd_data): New member included_bfds.
12827 (gdb_bfd_unref): Unref all included bfds.
12828 (gdb_bfd_record_inclusion): New function.
12829 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12830
c2cec97c
TT
128312014-01-13 Tom Tromey <tromey@redhat.com>
12832
12833 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12834
78e5999d
TT
128352014-01-13 Tom Tromey <tromey@redhat.com>
12836
12837 * defs.h (use_windows): Remove.
12838 * gdb.c (main): Update.
12839 * main.c (captured_main, gdb_main): Update.
12840 * main.h (struct captured_main_args) <use_windows>: Remove.
12841 * top.c (use_windows): Remove.
12842
f2052bbe
TT
128432014-01-13 Tom Tromey <tromey@redhat.com>
12844
12845 * defs.h (deprecated_flush_hook): Remove.
12846
fde4f8ed
JK
128472014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12848
12849 PR threads/16216
12850 * linux-thread-db.c (try_thread_db_load): Add parameter
12851 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12852 (try_thread_db_load_from_pdir_1): Move it there from here.
12853 (try_thread_db_load_from_sdir): Update caller.
12854 (try_thread_db_load_from_dir): Move it there from here.
12855
bdf61915
PP
128562014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12857
12858 * regformats/regdat.sh: Always rewrite the register file.
12859
f71e1a8d
PA
128602014-01-13 Pedro Alves <palves@redhat.com>
12861
12862 * Makefile.in (CHECK_HEADERS): New variable.
12863 (check-headers:): New rule.
12864
42c85435
TT
128652014-01-13 Tom Tromey <tromey@redhat.com>
12866
12867 * cli/cli-setshow.c (do_set_command): Update.
12868 * defs.h (deprecated_set_hook): Remove.
12869 * top.c (deprecated_set_hook): Remove.
12870
f8de5129
PA
128712014-01-13 Pedro Alves <palves@redhat.com>
12872
12873 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12874 the tracepoint if the PC is a pseudo-register.
12875
fc270c35
TT
128762014-01-13 Tom Tromey <tromey@redhat.com>
12877
12878 * defs.h (XCALLOC): Remove.
12879 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12880 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12881 * dwarf2loc.c (allocate_piece_closure): Likewise.
12882 * elfread.c (elf_symfile_segments): Likewise.
12883 (elf_symfile_segments): Likewise.
12884 * gdbtypes.c (copy_type_recursive): Likewise.
12885 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12886 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12887 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12888 XCALLOC.
12889 * mt-tdep.c (mt_gdbarch_init): Likewise.
12890 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12891 XCALLOC.
12892 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12893 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12894 * registry.c (registry_alloc_data): Likewise.
12895 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12896 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12897 * serial.c (serial_fdopen_ops): Likewise.
12898 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12899 XCALLOC.
12900 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12901 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12902 not XCALLOC.
12903
70ba0933
TT
129042014-01-13 Tom Tromey <tromey@redhat.com>
12905
12906 * defs.h (XMALLOC): Remove.
12907 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12908 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12909 * cli-out.c (struct ui_out *): Likewise.
12910 * cli/cli-dump.c (add_dump_command): Likewise.
12911 (add_dump_command): Likewise.
12912 * complaints.c (get_complaints): Likewise.
12913 (find_complaint): Likewise.
12914 * dwarf2-frame.c (execute_cfa_program): Likewise.
12915 * dwarf2read.c (abbrev_table_read_table): Likewise.
12916 * gdbarch.sh: Likewise.
12917 * gdbarch.c: Rebuild.
12918 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12919 * interps.c (interp_new): Likewise.
12920 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12921 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12922 * mi/mi-console.c (mi_console_file_new): Likewise.
12923 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12924 * mi/mi-out.c (mi_out_new): Likewise.
12925 * mi/mi-parse.c (mi_parse): Likewise.
12926 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12927 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12928 * observer.c (xalloc_observer_list_node): Likewise.
12929 * regcache.c (regcache_xmalloc_1): Likewise.
12930 * reggroups.c (reggroup_new): Likewise.
12931 (_initialize_reggroup): Likewise.
12932 * registry.c (register_data_with_cleanup): Likewise.
12933 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12934 * ser-base.c (serial_ttystate): Likewise.
12935 * ser-mingw.c (make_pipe_state): Likewise.
12936 * ser-pipe.c (pipe_open): Likewise.
12937 * serial.c (serial_open): Likewise.
12938 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12939 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12940 (tui_alloc_win_info): Likewise.
12941 (tui_add_content_elements): Likewise.
12942 * tui/tui-file.c (tui_file_new): Likewise.
12943 * tui/tui-out.c (tui_out_new): Likewise.
12944 * ui-file.c (mem_file_new): Likewise.
12945 * ui-out.c (push_level): Likewise.
12946 (make_cleanup_ui_out_end): Likewise.
12947 (append_header_to_list): Likewise.
12948 (ui_out_new): Likewise.
12949 * user-regs.c (user_reg_add_builtin): Likewise.
12950
41bf6aca
TT
129512014-01-13 Tom Tromey <tromey@redhat.com>
12952
12953 * defs.h (XZALLOC): Remove.
12954 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12955 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12956 (get_ada_tasks_inferior_data): Likewise.
12957 * auto-load.c (get_auto_load_pspace_data): Likewise.
12958 * auxv.c (get_auxv_inferior_data): Likewise.
12959 * bfd-target.c (target_bfd_reopen): Likewise.
12960 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12961 (deprecated_insert_raw_breakpoint): Likewise.
12962 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12963 * corelow.c (core_open): Likewise.
12964 * darwin-nat.c (darwin_check_new_threads): Likewise.
12965 (darwin_attach_pid): Likewise.
12966 * dummy-frame.c (dummy_frame_push): Likewise.
12967 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12968 * dwarf2loc.c (allocate_piece_closure): Likewise.
12969 * elfread.c (elf_symfile_segments): Likewise.
12970 * eval.c (ptrmath_type_p): Likewise.
12971 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12972 * gdbtypes.c (alloc_type_arch): Likewise.
12973 (alloc_type_instance): Likewise.
12974 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12975 * inf-child.c (inf_child_can_use_agent): Likewise.
12976 * inflow.c (get_inflow_inferior_data): Likewise.
12977 * infrun.c (save_infcall_suspend_state): Likewise.
12978 * jit.c (jit_reader_load): Likewise.
12979 (get_jit_objfile_data): Likewise.
12980 (get_jit_program_space_data): Likewise.
12981 (jit_object_open_impl): Likewise.
12982 (jit_symtab_open_impl): Likewise.
12983 (jit_block_open_impl): Likewise.
12984 (jit_frame_sniffer): Likewise.
12985 * linux-fork.c (add_fork): Likewise.
12986 * maint.c (make_command_stats_cleanup): Likewise.
12987 * objfiles.c (get_objfile_pspace_data): Likewise.
12988 * opencl-lang.c (struct lval_closure): Likewise.
12989 * osdata.c (osdata_start_osdata): Likewise.
12990 * progspace.c (new_address_space): Likewise.
12991 (add_program_space): Likewise.
12992 * remote-sim.c (get_sim_inferior_data): Likewise.
12993 * sh-tdep.c (sh_gdbarch_init): Likewise.
12994 * skip.c (Ignore): Likewise.
12995 (skip_delete_command): Likewise.
12996 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12997 (library_list_start_library): Likewise.
12998 (solib_aix_current_sos): Likewise.
12999 * solib-darwin.c (get_darwin_info): Likewise.
13000 (darwin_current_sos): Likewise.
13001 * solib-dsbt.c (get_dsbt_info): Likewise.
13002 * solib-ia64-hpux.c (new_so_list): Likewise.
13003 (ia64_hpux_get_solib_linkage_addr): Likewise.
13004 * solib-spu.c (append_ocl_sos): Likewise.
13005 (spu_current_sos): Likewise.
13006 * solib-svr4.c (get_svr4_info): Likewise.
13007 (svr4_keep_data_in_core): Likewise.
13008 (library_list_start_library): Likewise.
13009 (svr4_default_sos): Likewise.
13010 (svr4_read_so_list): Likewise.
13011 * solib-target.c (library_list_start_library): Likewise.
13012 (solib_target_current_sos): Likewise.
13013 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13014 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13015 * symfile.c (default_symfile_segments): Likewise.
13016 * target-descriptions.c (tdesc_data_init): Likewise.
13017 (tdesc_create_reg): Likewise.
13018 (struct tdesc_type *): Likewise.
13019 (tdesc_create_vector): Likewise.
13020 (tdesc_set_struct_size): Likewise.
13021 (struct tdesc_type *): Likewise.
13022 (tdesc_free_feature): Likewise.
13023 (tdesc_create_feature): Likewise.
13024 * windows-nat.c (windows_add_thread): Likewise.
13025 (windows_make_so): Likewise.
13026 * xml-support.c (gdb_xml_body_text): Likewise.
13027 (gdb_xml_create_parser_and_cleanup): Likewise.
13028 (xml_process_xincludes): Likewise.
13029 * xml-syscall.c (allocate_syscalls_info): Likewise.
13030 (syscall_create_syscall_desc): Likewise.
13031
5acfdbae
SDJ
130322014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13033
13034 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13035 function, with code from i386_stap_parse_special_token.
13036 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13037 (i386_stap_parse_special_token): Move code to the two functions
13038 above; simplify it.
13039
0000e5cc
PA
130402014-01-09 Pedro Alves <palves@redhat.com>
13041 Hui Zhu <hui@codesourcery.com>
13042
13043 PR gdb/16101
13044 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13045 bp_err_string. Don't mark the location shlib_disabled if the
13046 error thrown wasn't a generic or memory error. Catch errors
13047 thrown while inserting breakpoints in overlayed code. Output
13048 error message of software breakpoints.
13049 * remote.c (remote_insert_breakpoint): If this breakpoint has
13050 target-side commands but this stub doesn't support Z0 packets,
13051 throw NOT_SUPPORTED_ERROR error.
13052 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13053 * target.h (target_insert_breakpoint): Extend comment.
13054 (target_insert_hw_breakpoint): Add comment.
13055
b7ea362b
PA
130562014-01-08 Pedro Alves <palves@redhat.com>
13057
13058 * remote.c (remote_add_thread): Add threads silently if starting
13059 up.
13060 (remote_notice_new_inferior): If in all-stop, and starting up,
13061 don't call notice_new_inferior.
13062 (get_current_thread): New function, factored out from ...
13063 (add_current_inferior_and_thread): ... this. Adjust.
13064 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13065 found any thread, then select the remote's current thread as GDB's
13066 current thread too.
13067
b7bba001
JB
130682014-01-08 Joel Brobecker <brobecker@adacore.com>
13069
13070 * NEWS: Create a new section for the next release branch.
13071 Rename the section of the current branch, now that it has
13072 been cut.
13073
16dfbded
JB
130742014-01-08 Joel Brobecker <brobecker@adacore.com>
13075
13076 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13077 * version.in: Bump version to 7.7.50.DATE-cvs.
13078
22c90ac1
YQ
130792014-01-08 Yao Qi <yao@codesourcery.com>
13080
13081 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13082 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13083 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13084
d64ad97c
YQ
130852014-01-08 Yao Qi <yao@codesourcery.com>
13086
13087 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13088 return value of bfd_get_filename to symbol_file_add_from_bfd.
13089
f93ba80c
PM
130902014-01-08 Pierre Muller <muller@sourceware.org>
13091
13092 Fix PR16201.
13093 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13094 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13095 to prim_record_mininal_symbol_and_info.
13096 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13097 in call to prim_record_minimal_symbol_and_info.
13098 (read_pe_exported_syms): Set index field of section_data.
13099
a4d9ba85
AP
131002014-01-07 Andrew Pinski <apinski@cavium.com>
13101
13102 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13103 * features/aarch64.c: Regenerate.
13104
1b67eb02
AS
131052014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13106
13107 * target.c (return_null): Define.
13108 (update_current_target): Use it instead of return_zero for
13109 functions that return a pointer.
13110
5e3f4fab
EBM
131112014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13112
13113 * source.c (add_path): Fix check for duplicated paths in the previously
13114 included paths.
13115
e2616788
HK
131162014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13117
13118 * ada-lang.c: Remove duplicated include statements.
13119 * alphabsd-nat.c: Ditto.
13120 * amd64-darwin-tdep.c: Ditto.
13121 * amd64fbsd-nat.c: Ditto.
13122 * auto-load.c: Ditto.
13123 * ax-gdb.c: Ditto.
13124 * breakpoint.c: Ditto.
13125 * dbxread.c: Ditto.
13126 * fork-child.c: Ditto.
13127 * gdb_usleep.c: Ditto.
13128 * i386-darwin-tdep.c: Ditto.
13129 * i386fbsd-nat.c: Ditto.
13130 * infcmd.c: Ditto.
13131 * inferior.c: Ditto.
13132 * jv-lang.c: Ditto.
13133 * linux-nat.c: Ditto.
13134 * linux-tdep.c: Ditto.
13135 * m68kbsd-nat.c: Ditto.
13136 * m68klinux-nat.c: Ditto.
13137 * microblaze-tdep.c: Ditto.
13138 * mips-linux-tdep.c: Ditto.
13139 * mn10300-tdep.c: Ditto.
13140 * nto-tdep.c: Ditto.
13141 * opencl-lang.c: Ditto.
13142 * osdata.c: Ditto.
13143 * printcmd.c: Ditto.
13144 * regcache.c: Ditto.
13145 * remote-m32r-sdi.c: Ditto.
13146 * remote.c: Ditto.
13147 * symfile.c: Ditto.
13148 * symtab.c: Ditto.
13149 * tilegx-linux-nat.c: Ditto.
13150 * tilegx-tdep.c: Ditto.
13151 * tracepoint.c: Ditto.
13152 * valops.c: Ditto.
13153 * vaxbsd-nat.c: Ditto.
13154 * windows-nat.c: Ditto.
13155 * xtensa-tdep.c: Ditto.
13156
bd1f7788
YQ
131572014-01-07 Yao Qi <yao@codesourcery.com>
13158
13159 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13160
79301218
JB
131612014-01-07 Yao Qi <yao@codesourcery.com>
13162 Joel Brobecker <brobecker@adacore.com>
13163
13164 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13165 (pdc_write_regs): Likewise.
13166 (fetch_regs_kernel_thread): Likewise.
13167 (store_regs_kernel_thread): Likewise.
13168
131692014-01-07 Joel Brobecker <brobecker@adacore.com>
13170
13171 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13172 tagged type objects to their actual type.
13173
8e355c5d
JB
131742014-01-07 Joel Brobecker <brobecker@adacore.com>
13175
13176 * ada-valprint.c (print_field_values): Add "language" parameter.
13177 Update calls to print_field_values and print_variant_part.
13178 Pass new parameter "language" in call to val_print instead
13179 of "current_language". Replace call to ada_val_print by call
13180 to val_print.
13181 (print_variant_part): Add "language" parameter.
13182 (ada_val_print_struct_union): Update call to print_field_values.
13183
4fbf5aa5
JB
131842014-01-07 Joel Brobecker <brobecker@adacore.com>
13185
13186 * ada-valprint.c (ui_memcpy): Delete.
13187 (ada_print_floating): Update documentation. Add empty line
13188 between between function documentation and implementation.
13189 Delete variable "buffer". Use ui_file_xstrdup in place of
13190 ui_file_put. Minor adjustments following this change.
13191
71855601
JB
131922014-01-07 Joel Brobecker <brobecker@adacore.com>
13193
13194 * ada-valprint.c (ada_val_print_string): New function,
13195 extracted from ada_val_print_array.
13196 (ada_val_print_array): Replace extracted code by call
13197 to ada_val_print_string followed by a return. Move
13198 "else" branch to the function's top block.
13199
4eb27a30
JB
132002014-01-07 Joel Brobecker <brobecker@adacore.com>
13201
13202 * ada-valprint.c (ada_val_print_array): Move implementation
13203 down. Rename parameter "offset" and "val" into "offset_aligned"
13204 and "original_value" respectively. Add parameter "offset".
13205
34b27950
JB
132062014-01-07 Joel Brobecker <brobecker@adacore.com>
13207
13208 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13209 re-organizing the code. Change the "???" message printed
13210 when target type is a TYPE_CODE_UNDEF into
13211 "<ref to undefined type>".
13212
079e4591
JB
132132014-01-07 Joel Brobecker <brobecker@adacore.com>
13214
13215 * ada-valprint.c (print_record): Delete, implementation inlined...
13216 (ada_val_print_struct_union): ... here. Remove call to
13217 ada_check_typedef in inlined implementation.
13218
8004dfd1
JB
132192014-01-07 Joel Brobecker <brobecker@adacore.com>
13220
13221 * ada-valprint.c (ada_val_print_gnat_array): New function,
13222 extracted from ada_val_print_1;
13223 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13224 (ada_val_print_flt, ada_val_print_struct_union)
13225 (ada_val_print_ref): Likewise.
13226 (ada_val_print_1): Delete variables i and elttype.
13227 Replace extracted-out code by call to corresponding
13228 new functions.
13229
760a2db0
JB
132302014-01-07 Joel Brobecker <brobecker@adacore.com>
13231
13232 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13233
3a92c861
JB
132342014-01-07 Joel Brobecker <brobecker@adacore.com>
13235
13236 * ada-valprint.c (ada_val_print_1): Replace calls to
13237 ada_val_print_1 by calls to val_print.
13238
cd1630f9
JB
132392014-01-07 Joel Brobecker <brobecker@adacore.com>
13240
13241 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13242 Update calls to self accordingly. Replace calls to c_val_print
13243 by calls to val_print.
13244
bdf779a0
JB
132452014-01-07 Joel Brobecker <brobecker@adacore.com>
13246
13247 * ada-valprint.c (print_record): Delete declaration.
13248 (adjust_type_signedness, ada_val_print_1): Likewise.
13249 (ada_val_print): Move function implementation down.
13250 (print_variant_part, print_field_values, print_record):
13251 Move function implementation up.
13252
c0d48811
JB
132532014-01-07 Joel Brobecker <brobecker@adacore.com>
13254
13255 * python/py-type.c (typy_get_name): New function.
13256 (type_object_getset): Add entry for attribute "name".
13257 * NEWS: Add entry mentioning this new attribute.
13258
c26e9cbb
YQ
132592014-01-07 Yao Qi <yao@codesourcery.com>
13260
13261 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13262 statement.
13263
0cc6f43d
YQ
132642014-01-07 Yao Qi <yao@codesourcery.com>
13265
13266 * gnu-nat.c (info_port_rights): Add qualifier const to
13267 argument args.
13268
eec03155
YQ
132692014-01-07 Yao Qi <yao@codesourcery.com>
13270
13271 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13272
f04a82ef
YQ
132732014-01-07 Yao Qi <yao@codesourcery.com>
13274
13275 * gnu-nat.c (make_inf) Update declaration.
13276 (make_inf): Make it static.
13277 (inf_set_traced): Likewise.
13278 (inf_port_to_thread, inf_task_died_status): Likewise.
13279
d57dda0a
YQ
132802014-01-07 Yao Qi <yao@codesourcery.com>
13281
13282 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13283
3aa8c969
YQ
132842014-01-07 Yao Qi <yao@codesourcery.com>
13285
13286 * gnu-nat.c (_initialize_gnu_nat): Declare.
13287
94123b4f
YQ
132882014-01-07 Yao Qi <yao@codesourcery.com>
13289
13290 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13291 'enum bfd_endian'.
13292 (struct gdbarch_info) <byte_order>: Change type to
13293 'enum bfd_endian'.
13294 <byte_order_for_code>: Likewise.
13295 * gdbarch.c, gdbarch.h: Regenerated.
13296
dc81d70a
TT
132972014-01-06 Sasha Smundak <asmundak@google.com>
13298
13299 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13300
cc2f3c35
TT
133012014-01-06 Tom Tromey <tromey@redhat.com>
13302
13303 * doublest.c (convert_doublest_to_floatformat): Use const, not
13304 CONST.
13305 * somread.c (som_symtab_read): Likewise.
13306
adcf2eed
HZ
133072014-01-07 Hui Zhu <hui@codesourcery.com>
13308
13309 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13310 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13311 (gdb_bfd_fopen): Ditto.
13312 (gdb_bfd_openr): Ditto.
13313 (gdb_bfd_openw): Ditto.
13314 (gdb_bfd_openr_iovec): Ditto.
13315 (gdb_bfd_fdopenr): Ditto.
13316 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13317 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13318 with xstrdup.
13319 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13320 with xstrdup.
13321 * symfile-mem.c (symbol_file_add_from_memory): Removed
13322 gdb_bfd_stash_filename.
13323
50722198
DE
133242014-01-03 Doug Evans <dje@google.com>
13325
13326 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13327 output.
13328
2fa4b862
JB
133292014-01-01 Joel Brobecker <brobecker@adacore.com>
13330
13331 Update year range in copyright notice of all files.
13332
28498c42
JB
133332014-01-01 Joel Brobecker <brobecker@adacore.com>
13334
13335 * top.c (print_gdb_version): Set copyright year to 2014.
13336
7b6e1046
JB
133372014-01-01 Joel Brobecker <brobecker@adacore.com>
13338
13339 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13340
df96af55 13341For older changes see ChangeLog-2013.
c906108c
SS
13342\f
13343Local Variables:
13344mode: change-log
13345left-margin: 8
13346fill-column: 74
13347version-control: never
57da7796 13348coding: utf-8
c906108c 13349End:
This page took 2.308361 seconds and 4 git commands to generate.