M68K: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
022c98ab
AA
12014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
4 (m68kbsd_iterate_over_regset_sections): New.
5 (m68kbsd_init_abi): Adjust gdbarch initialization.
6 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
7 (m68k_linux_iterate_over_regset_sections): New.
8 (m68k_linux_init_abi): Adjust gdbarch initialization.
9
5fac247f
AA
102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
11
12 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
13 (m32r_linux_regset_from_core_section): Remove.
14 (m32r_linux_iterate_over_regset_sections): New.
15 (m32r_linux_init_abi): Adjust gdbarch initialization.
16
490496c3
AA
172014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
18
19 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
20 (amd64obsd_iterate_over_regset_sections): New.
21 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
22 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
23 Remove.
24 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
25 regset_from_core_section initialization.
26 * i386-tdep.c (i386_regset_from_core_section): Remove.
27 (i386_iterate_over_regset_sections): New.
28 (i386_gdbarch_init): Adjust gdbarch initialization.
29 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
30 (i386_iterate_over_regset_sections): New prototype.
31 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
32 Remove.
33 (i386obsd_aout_iterate_over_regset_sections): New.
34 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
35 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
36 targets.
37 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
38 (amd64fbsd_init_abi): Call fbsd_init_abi.
39 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
40 (i386fbsd4_init_abi): Call fbsd_init_abi.
41 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
42 target method 'make_corefile_notes'.
43 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
44
50c5eb53
AA
452014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
46
47 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
48 (hppa_hpux_iterate_over_regset_sections): New.
49 (hppa_hpux_init_abi): Adjust gdbarch initialization.
50 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
51 (hppa_linux_iterate_over_regset_sections): New.
52 (hppa_linux_init_abi): Adjust.
53 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
54 (hppanbsd_iterate_over_regset_sections): New.
55 (hppanbsd_init_abi): Adjust.
56 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
57 (hppaobsd_iterate_over_regset_sections): New.
58 (hppaobsd_init_abi): Adjust.
59
66afae4f
AA
602014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
61
62 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
63 (frv_linux_iterate_over_regset_sections): New.
64 (frv_linux_init_abi): Adjust gdbarch initialization.
65
ed09174e
AA
662014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
67
68 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
69 (armbsd_iterate_over_regset_sections): New prototype.
70 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
71 (armbsd_iterate_over_regset_sections): New.
72 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
73 initialization.
74
dff2166e
AA
752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
76
77 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
78 (alpha_linux_iterate_over_regset_sections): New.
79 (alpha_linux_init_abi): Adjust gdbarch initialization.
80 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
81 prototype.
82 (alphanbsd_iterate_over_regset_sections): New prototype.
83
4108500a
AA
842014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
85
86 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
87 Remove.
88 (aarch64_linux_iterate_over_regset_sections): New.
89 (aarch64_linux_init_abi): Adjust gdbarch initialization.
90
a904c024
AA
912014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
92
93 * fbsd-tdep.c: New file.
94 * fbsd-tdep.h: New file.
95 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
96 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
97 (ALLDEPFILES): Add fbsd-tdep.c.
98
8f0435f7
AA
992014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
100
101 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
102 parameter.
103 * gdbarch.h: Regenerate.
104 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
105 iterator.
106 (get_core_register_section): Add parameter 'regset' and use it, if
107 set. Add parameter 'min_size' and verify the bfd section size
108 against it.
109 (get_core_registers_cb): Add parameter 'regset' and pass it to
110 get_core_register section. For the "standard" register sections
111 ".reg" and ".reg2", set an appropriate default for human_name.
112 (get_core_registers): Don't abort when the gdbarch has an iterator
113 but no regset_from_core_section. Add NULL/0 for parameters
114 'regset'/'min_size' in calls to get_core_register_section.
115 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
116 'regset' and use it instead of calling the
117 regset_from_core_section gdbarch method.
118 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
119 * i386-tdep.c (i386_supply_xstateregset)
120 (i386_collect_xstateregset, i386_xstateregset): Moved to
121 i386-linux-tdep.c.
122 (i386_regset_from_core_section): Drop handling for .reg-xfp and
123 .reg-xstate.
124 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
125 core file support only if the regset iterator hasn't been set.
126 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
127 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
128 Moved from i386-tdep.c and renamed to *_linux*.
129 (i386_linux_iterate_over_regset_sections): Add regset parameter to
130 each callback invocation. Allow any .reg-xstate size when reading
131 from a core file.
132 * amd64-tdep.c (amd64_supply_xstateregset)
133 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
134 amd64-linux-tdep.c.
135 (amd64_regset_from_core_section): Remove.
136 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
137 install an amd64-specific regset_from_core_section gdbarch method.
138 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
139 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
140 Moved from amd64-tdep.c and renamed to *_linux*.
141 (amd64_linux_iterate_over_regset_sections): Add regset parameter
142 to each callback invocation. Allow any .reg-xstate size when
143 reading from a core file.
144 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
145 (arm_linux_iterate_over_regset_sections): Add regset parameter to
146 each callback invocation.
147 (arm_linux_init_abi): No longer set the regset_from_core_section
148 gdbarch method.
149 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
150 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
151 each callback invocation.
152 (ppc_linux_init_abi): No longer set the regset_from_core_section
153 gdbarch method.
154 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
155 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
156 (s390_regset_from_core_section): Remove.
157 (s390_iterate_over_regset_sections): Add regset parameter to each
158 callback invocation.
159 (s390_gdbarch_init): No longer set the regset_from_core_section
160 gdbarch method. Drop initialization of deleted tdep fields.
161
5aa82d05
AA
1622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
163
164 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
165 (amd64_linux_iterate_over_regset_sections): New.
166 (amd64_linux_init_abi_common): Don't install the regset section
167 list, but the new iterator in gdbarch.
168 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
169 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
170 (arm_linux_iterate_over_regset_sections): ...here. New function.
171 (arm_linux_init_abi): Set iterator instead of section list.
172 * corelow.c (get_core_registers_cb): New function, logic moved
173 from...
174 (get_core_registers): ...loop body here. Use new iterator method
175 instead of walking through the regset section list.
176 * gdbarch.sh: Remove 'core_regset_sections'. New method
177 'iterate_over_regset_sections'. New typedef
178 'iterate_over_regset_sections_cb'.
179 * gdbarch.c: Regenerate.
180 * gdbarch.h: Likewise.
181 * i386-linux-tdep.c (i386_linux_regset_sections)
182 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
183 Remove.
184 (i386_linux_iterate_over_regset_sections): New.
185 (i386_linux_init_abi): Don't choose a regset section list, but
186 install new iterator in gdbarch.
187 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
188 (linux_collect_regset_section_cb): New function, logic moved
189 from...
190 (linux_collect_thread_registers): ...loop body here. Use iterator
191 method instead of walking through list.
192 (linux_make_corefile_notes_1): Check for presence of iterator
193 method instead of regset section list.
194 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
195 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
196 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
197 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
198 (ppc_linux_iterate_over_regset_sections): ...here. New function.
199 (ppc_linux_init_abi): Don't choose from above regset section
200 lists, but install new iterator in gdbarch.
201 * regset.h (struct core_regset_section): Remove.
202 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
203 have_linux_v1, have_linux_v2, and have_tdb.
204 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
205 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
206 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
207 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
208 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
209 (s390_iterate_over_regset_sections): ...here. New function. Use
210 new tdep fields.
211 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
212 regset section lists, but install new iterator.
213
2eca4a8d
JK
2142014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
215
216 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
217
a73c2b56
SM
2182014-09-26 Simon Marchi <simon.marchi@ericsson.com>
219
220 * progspace.c (print_program_space): Don't prune program spaces
221 before printing them.
222
03d46957
PA
2232014-09-25 Pedro Alves <palves@redhat.com>
224
225 * infrun.c (user_visible_resume_ptid): Don't check
226 singlestep_breakpoints_inserted_p.
227
e558d7c1
PA
2282014-09-25 Pedro Alves <palves@redhat.com>
229
230 * breakpoint.c (should_be_inserted): Add debug output.
231
7f89fd65
PA
2322014-09-25 Pedro Alves <palves@redhat.com>
233
234 * infrun.c (stepping_past_instruction_at)
235 (clear_exit_convenience_vars): Point at infrun.h instead of
236 inferior.h.
237 (handle_signal_stop): Fix typo.
238
b7576e5c
YQ
2392014-09-24 Yao Qi <yao@codesourcery.com>
240
241 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
242 bitmask.
243
9a6cf368
GB
2442014-09-22 Gary Benson <gbenson@redhat.com>
245
246 * target.c (target_stop): Updated comment.
247
03f4463b
GB
2482014-09-22 Gary Benson <gbenson@redhat.com>
249
250 * target/target.h (target_stop_ptid): Renamed as...
251 (target_stop_and_wait): New function. Updated comment.
252 All uses updated.
253 (target_continue_ptid): Renamed as...
254 (target_continue_no_signal): New function. Updated comment.
255 All uses updated.
256
a25a5a45
PA
2572014-09-22 Pedro Alves <palves@redhat.com>
258
259 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
260 and "auto" merged.
261 * breakpoint.c (enum ugll_insert_mode): New enum.
262 (always_inserted_mode): Now a plain boolean.
263 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
264 (breakpoints_always_inserted_mode): Delete.
265 (breakpoints_should_be_inserted_now): New function.
266 (insert_breakpoints): Pass UGLL_INSERT to
267 update_global_location_list instead of calling
268 insert_breakpoint_locations manually.
269 (create_solib_event_breakpoint_1): New, factored out from ...
270 (create_solib_event_breakpoint): ... this.
271 (create_and_insert_solib_event_breakpoint): Use
272 create_solib_event_breakpoint_1 instead of calling
273 insert_breakpoint_locations manually.
274 (update_global_location_list): Change parameter type from boolean
275 to enum ugll_insert_mode. All callers adjusted. Adjust to use
276 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
277 (update_global_location_list_nothrow): Change parameter type from
278 boolean to enum ugll_insert_mode.
279 (_initialize_breakpoint): "breakpoint always-inserted" option is
280 now a boolean command. Update help text.
281 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
282 (breakpoints_should_be_inserted_now): New declaration.
283 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
284 Remove breakpoints_always_inserted_mode check.
285 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
286 * remote.c (remote_start_remote): Likewise.
287
04086b45
PA
2882014-09-22 Pedro Alves <palves@redhat.com>
289
290 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
291 (insert_breakpoints): Don't call insert_breakpoint_locations here.
292 Instead, pass UGLL_INSERT to update_global_location_list.
293 (update_global_location_list): Change parameter type from boolean
294 to enum ugll_insert_mode. All callers adjusted. Adjust to use
295 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
296 (create_solib_event_breakpoint_1): New, factored out from ...
297 (create_solib_event_breakpoint): ... this.
298 (create_and_insert_solib_event_breakpoint): Use
299 create_solib_event_breakpoint_1 instead of calling
300 insert_breakpoint_locations manually.
301 (update_global_location_list): Handle UGLL_INSERT.
302
44702360
PA
3032014-09-22 Pedro Alves <palves@redhat.com>
304
305 * breakpoint.c (enum ugll_insert_mode): New enum.
306 (update_global_location_list)
307 (update_global_location_list_nothrow): Change parameter type from
308 boolean to enum ugll_insert_mode. All callers adjusted.
309
93c6145a
JB
3102014-09-19 Joel Brobecker <brobecker@adacore.com>
311
312 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
313 SystemTap support in GDB.
314
89a5711c
DB
3152014-09-19 Don Breazeal <donb@codesourcery.com>
316
317 * linux-nat.c (linux_handle_extended_wait): Call
318 linux_ptrace_get_extended_event.
319 (wait_lwp): Call linux_is_extended_waitstatus.
320 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
321 and linux_is_extended_waitstatus.
322 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
323 linux_ptrace_get_extended_event.
324 (linux_ptrace_get_extended_event): New function.
325 (linux_is_extended_waitstatus): New function.
326 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
327 (linux_is_extended_waitstatus): New declarations.
328
c3b7b696
YQ
3292014-09-19 Yao Qi <yao@codesourcery.com>
330
331 * dwarf2read.c (dwarf_decode_lines): Update declaration.
332 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
333 comments. Callers update.
334 (dwarf_decode_lines): Likewise.
335 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
336 comments. Skip the line table if 'lowpc' is greater than
337 'address'. Don't check
338 dwarf2_per_objfile->has_section_at_zero.
339
2b4fd423
DE
3402014-09-18 Doug Evans <dje@google.com>
341
342 * NEWS: Mention new "producer" attribute of gdb.Symtab.
343 * python/py-symtab.c (stpy_get_producer): New function.
344 (symtab_object_getset): Add "producer" attribute.
345
5e43d467
UW
3462014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
347
348 PR gdb/17384
349 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
350 (do_captured_read_memory_integer): Remove.
351 (safe_read_memory_integer): Use target_read_memory directly instead
352 of catching errors in do_captured_read_memory_integer.
353
04e79979
MR
3542014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
355
356 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
357 not gdb/doc.
358
76aeec5b
SDJ
3592014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
360
361 * objc-lang.c (find_implementation_from_class): Remove dead code.
362
2f693f9d
SDJ
3632014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
364
365 PR cli/7233
366 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
367 "fprintf_unfiltered (gdb_stdlog...)".
368
bb9d5f81
PP
3692014-09-16 Patrick Palka <patrick@parcs.ath.cx>
370
371 PR breakpoints/12526
372 * breakpoint.h (struct watchpoint): New fields val_bitpos and
373 val_bitsize.
374 * breakpoint.c (watch_command_1): Use these fields to retain
375 bitfield information.
376 (extract_bitfield_from_watchpoint_value): New function.
377 (watchpoint_check): Use it.
378 (update_watchpoint): Use it. Optimize the address and length of a
379 HW watchpoint pointing to a bitfield.
380 * value.h (unpack_value_bitfield): New prototype.
381 * value.c (unpack_value_bitfield): Make extern.
382
05db5edd
ST
3832014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
384
385 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
386 x86-dregs.o.
387 * gnu-nat.c (inf_threads): New function.
388 * gnu-nat.h (inf_threads_ftype): New typedef.
389 (inf_threads): New declaration.
390 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
391 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
392 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
393 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
394 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
395 (i386_gnu_dr_get_control): New functions.
396 (reg_addr): New structure.
397 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
398 i386 debugging register hooks.
399 * NEWS: Mention this.
400
5a578da5
OJ
4012014-08-13 Omair Javaid <omair.javaid@linaro.org>
402
403 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
404 vector data transfer instructions.
405 (arm_record_coproc_data_proc): Updated.
406
f20f80dd
OJ
4072014-08-13 Omair Javaid <omair.javaid@linaro.org>
408
409 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
410 arm_record_exreg_ld_st_insn.
411 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
412 load/store insns.
413
851f26ae
OJ
4142014-08-13 Omair Javaid <omair.javaid@linaro.org>
415
416 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
417 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
418 processing instructions.
419
1e1b6563
OJ
4202014-08-13 Omair Javaid <omair.javaid@linaro.org>
421
422 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
423 for advance SIMD struct ld/st insn.
424 (thumb2_record_decode_insn_handler): Replace stub handler with
425 thumb2_record_asimd_struct_ld_st.
426
60cc5e93
OJ
4272014-08-13 Omair Javaid <omair.javaid@linaro.org>
428
429 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
430 for asimd, vfp and coprocessor insns.
431 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
432 and coprocessor insns.
433 (thumb2_record_coproc_insn): New function.
434 (thumb2_record_decode_insn_handler): Update coprocessor insns record
435 handlers.
436 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
437 opcode 110 insns.
438
81219e53
DE
4392014-09-13 Doug Evans <xdje42@gmail.com>
440
441 * NEWS: Mention new "queue-signal" command.
442 * infcmd.c (queue_signal_command): New function.
443 (_initialize_infcmd): Add new queue-signal command.
444
d36bf488
DE
4452014-09-13 Doug Evans <xdje42@gmail.com>
446
447 * linux-nat.c (wait_lwp): Add debugging printf.
448 (linux_nat_wait_1): Ditto.
449
f37f681c
PA
4502014-09-12 Pedro Alves <palves@redhat.com>
451
452 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
453 (create_and_insert_solib_event_breakpoint): New functions.
454 * breakpoint.h (create_and_insert_solib_event_breakpoint)
455 (remove_solib_event_breakpoints_at_next_stop): New declarations.
456 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
457 (remove_dbx_link_breakpoint): Delete function.
458 (insert_dbx_link_bpt_in_file): Use
459 create_and_insert_solib_event_breakpoint instead of
460 deprecated_insert_raw_breakpoint.
461 (procfs_wait): Don't check whether we hit __dbx_link here.
462 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
463 here.
464 * solib-irix.c (base_breakpoint): Delete global.
465 (disable_break): Delete function.
466 (enable_break): Use create_solib_event_breakpoint
467 instead of deprecated_insert_raw_breakpoint.
468 (irix_solib_handle_event): New function.
469 (irix_solib_create_inferior_hook): Don't run the target or disable
470 the mapping-complete breakpoint here.
471 (_initialize_irix_solib): Install irix_solib_handle_event as
472 so_ops->handle_event hook.
473
9d9bf2df
EBM
4742014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
475 Ulrich Weigand  <uweigand@de.ibm.com>
476
477 PR tdep/17379
478 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
479 instead of read_memory_unsigned_integer.
480
b006a80e
GB
4812014-09-12 Gary Benson <gbenson@redhat.com>
482
483 * nat/linux-waitpid.c: Include common-defs.h.
484 [GDBSERVER]: Add FIXME comment.
485 [!GDBSERVER]: Don't include defs.h or signal.h.
486 (linux_debug) [!GDBSERVER]: Remove empty block.
487
296b1496
GB
4882014-09-12 Gary Benson <gbenson@redhat.com>
489
490 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
491 Don't include defs.h or server.h.
492
53f81362
GB
4932014-09-12 Gary Benson <gbenson@redhat.com>
494
495 * nat/linux-btrace.c: Include common-defs.h.
496 Don't include defs.h, server.h or gdbthread.h.
497 * nat/linux-btrace.h (struct target_ops): New forward declaration.
498
727605ca
GB
4992014-09-12 Gary Benson <gbenson@redhat.com>
500
501 * common/agent.c: Include common-defs.h.
502 Don't include defs.h or server.h.
503 * common/buffer.c: Likewise.
504 * common/common-debug.c: Likewise.
505 * common/common-utils.c: Likewise.
506 * common/errors.c: Likewise.
507 * common/filestuff.c: Likewise.
508 * common/format.c: Likewise.
509 * common/gdb_vecs.c: Likewise.
510 * common/print-utils.c: Likewise.
511 * common/ptid.c: Likewise.
512 * common/rsp-low.c: Likewise.
513 * common/signals.c: Likewise.
514 * common/vec.c: Likewise.
515 * common/xml-utils.c: Likewise.
516 * nat/linux-osdata.c: Likewise.
517 * nat/linux-procfs.c: Likewise.
518 * nat/linux-ptrace.c: Likewise.
519 * nat/mips-linux-watch.c: Likewise.
520 * target/waitstatus.c: Likewise.
521
361c8ade
GB
5222014-09-12 Tom Tromey <tromey@redhat.com>
523 Gary Benson <gbenson@redhat.com>
524
525 * common/common-regcache.h: New file.
526 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
527 * regcache.h: Include common-regcache.h.
528 (regcache_read_pc): Don't declare.
529 * regcache.c (get_thread_regcache_for_ptid): New function.
530 * nat/linux-btrace.c: Don't include regcache.h.
531 Include common-regcache.h.
532 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
533
a01cbb49
TS
5342014-09-11 Thomas Schwinge <thomas@codesourcery.com>
535
536 * regcache.h (struct regset): Declare.
537
98880d46
PA
5382014-09-11 Pedro Alves <palves@redhat.com>
539
540 PR gdb/17347
541 * main.c: Include "infrun.h".
542 (catch_command_errors, catch_command_errors_const): Wait for the
543 foreground command to complete.
544 * top.c (maybe_wait_sync_command_done): New function, factored out
545 from ...
546 (maybe_wait_sync_command_done): ... here.
547 * top.h (maybe_wait_sync_command_done): New declaration.
548
bd9269f7
GB
5492014-09-11 Tom Tromey <tromey@redhat.com>
550 Gary Benson <gbenson@redhat.com>
551
552 * common/symbol.h: New file.
553 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
554 * minsyms.c (find_minimal_symbol_address): New function.
555 * common/agent.c: Include common/symbol.h.
556 [!GDBSERVER]: Don't include objfiles.h.
557 (agent_look_up_symbols): Use find_minimal_symbol_address.
558
f8c1d06b
GB
5592014-09-11 Gary Benson <gbenson@redhat.com>
560
561 * target/target.h (target_stop_ptid, target_continue_ptid):
562 Declare.
563 * target.c (target_stop_ptid, target_continue_ptid): New
564 functions.
565 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
566 (agent_run_command): Always use target_stop_ptid and
567 target_continue_ptid.
568
721ec300
GB
5692014-09-11 Tom Tromey <tromey@redhat.com>
570 Gary Benson <gbenson@redhat.com>
571
572 * target/target.h: New file.
573 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
574 * target.h: Include target/target.h.
575 (target_read_memory, target_write_memory): Don't declare.
576 * target.c (target_read_uint32): New function.
577 * common/agent.c: Include target/target.h.
578 [!GDBSERVER]: Don't include target.h.
579 (helper_thread_id): Type changed to uint32_t.
580 (agent_get_helper_thread_id): Use target_read_uint32.
581 (agent_run_command): Always use target_read_memory and
582 target_write_memory.
583 (agent_capability): Type changed to uint32_t.
584 (agent_capability_check): Use target_read_uint32.
585
c5e92cca
GB
5862014-09-11 Gary Benson <gbenson@redhat.com>
587
588 * common/common-debug.h (show_debug_regs): Declare.
589 * common/common-debug.c (show_debug_regs): Define.
590 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
591 all uses with show_debug_regs. Replace all uses that considered
592 debug_hw_points as a multi-value integer with straight boolean
593 uses.
594 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
595 with show_debug_regs.
596 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
597 all uses with show_debug_regs.
598 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
599 uses with show_debug_regs.
600
eeef931a
UW
6012014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
602
603 * findvar.c (address_from_register): Handle targets requiring
604 a special conversion routine even for plain pointer types.
605
8efa9855
UW
6062014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
607
608 * rs6000-nat.c (exec_one_dummy_insn): Remove.
609 (store_register): Do not call exec_one_dummy_insn.
610
eb479039
JB
6112014-09-10 Joel Brobecker <brobecker@adacore.com>
612
613 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
614 dereference it first. Use value_enclosing_type instead of
615 value_type.
616 (ada_array_length): Likewise.
617
deede10c
JB
6182014-09-10 Joel Brobecker <brobecker@adacore.com>
619
620 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
621 Adjust function implementation and documentation accordingly.
622 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
623 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
624 Update call to ada_value_ptr_subscript.
625
7828a5f5
JB
6262014-09-10 Joel Brobecker <brobecker@adacore.com>
627
628 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
629 instead of VAL's type.
630
35782f14
JB
6312014-09-10 Joel Brobecker <brobecker@adacore.com>
632
633 * amd64-linux-nat.c: Add <sys/uio.h> #include.
634
d342a0da
DE
6352014-09-09 Doug Evans <xdje42@gmail.com>
636
637 PR guile/17367
638 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
639 last parameter to pkg-config, not first.
640 * configure.ac: Pass --with-guile provided pkg-config path to
641 GDB_GUILE_PROGRAM_NAMES.
642 * configure: Regenerate.
643
b4a3d263
GKB
6442014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
645
646 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
647 Bertazi".
648
6e466374
MR
6492014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
650
651 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
652 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
653 the list of sections determining GDB_OSABI_IRIX.
654
a1ada89a
JH
6552014-09-09 James Hogan <james.hogan@imgtec.com>
656
657 * MAINTAINERS (Write After Approval): Add "James Hogan".
658
86db008d
JH
6592014-09-09 James Hogan <james.hogan@imgtec.com>
660
661 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
662
72fde3df
JB
6632014-09-09 Joel Brobecker <brobecker@adacore.com>
664
665 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
666
92d8d229
DE
6672014-09-08 Doug Evans <xdje42@gmail.com>
668
669 PR 17247
670 * guile.c: #include <signal.h>.
671 (_initialize_guile): Block SIGCHLD while initializing Guile.
672
673 Replaces the following, which is reverted.
674
675 2014-07-26 Doug Evans <xdje42@gmail.com>
676
677 PR 17185
678 * configure.ac: Add check for header gc/gc.h.
679 Add check for function setenv.
680 * configure: Regenerate.
681 * config.in: Regenerate.
682 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
683
d81412aa
DE
6842014-09-08 Doug Evans <xdje42@gmail.com>
685
686 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
687 with named constant. Fix style of pointer comparison.
688 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
689
a9f116cb
GKB
6902014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
691
692 PR gdb/17035
693 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
694 decide whether we display the command on "show user".
695 * cli/cli-script.c (show_user_1): Only verify cmdlines after
696 printing command name.
697 * cli/cli-decode.h (cli_user_command_p): Declare new function.
698 * cli/cli-decode.c (cli_user_command_p): Create helper function
699 to verify whether cmd_list_element is a user-defined command.
700
c75bd3a2
JK
7012014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
702
703 PR python/17355
704 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
705 Fix goto out of TRY_CATCH.
706
faa42425 7072014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 708 Tom Tromey <tromey@redhat.com>
faa42425
DE
709
710 PR 15276
711 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
712 $_any_caller_matches.
713 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
714 * python/lib/gdb/function/caller_is.py: New file.
715
0d41ba00
DE
7162014-09-06 Doug Evans <xdje42@gmail.com>
717
718 * infcmd.c (program_info): Fix typo.
719
474ca4f6
SDJ
7202014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
721
722 PR gdb/17235
723 * stap-probe.c (stap_parse_single_operand): Delete unused variable
724 'number'. New variable 'has_digit'. Rewrite code to deal with
725 subexpressions on SDT probes.
726
ebf13736
PA
7272014-09-04 Pedro Alves <palves@redhat.com>
728
729 * c-exp.y (parse_number): Skip handling base-switching prefixes if
730 the input is only one character long.
731
eb0b0463
SDJ
7322014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
733
734 PR fortran/17237
735 * f-valprint.c (f_val_print): Specify the correct print option to
736 use when printing integer values.
737
5ee44bfa
GB
7382014-09-04 Gary Benson <gbenson@redhat.com>
739
740 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
741 Remove code to cope with LWPs wrapped as PIDs.
742 Add assertions to ensure no wrapped LWPs are passed.
743
4875ffdb
PA
7442014-09-04 Pedro Alves <palves@redhat.com>
745
746 * value.c (value_ranges_copy_adjusted): New function, factored out
747 from ...
748 (value_contents_copy_raw): ... here.
749 (unpack_value_bits_as_long_1): Rename back to ...
750 (unpack_bits_as_long): ... this. Remove 'original_value' and
751 'result' parameters. Change return type to LONGEST.
752 (unpack_value_bits_as_long): Delete.
753 (unpack_value_field_as_long_1): Delete.
754 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
755 (unpack_value_bitfield): New function.
756 (value_field_bitfield): Reimplement using unpack_value_bitfield.
757 (value_fetch_lazy): Use unpack_value_bitfield.
758 * value.h (unpack_value_bits_as_long): Delete declaration.
759
5f3b99cf
SS
7602014-09-03 Sasha Smundak <asmundak@google.com>
761
762 * python/py-frame.c (frapy_read_register): New function.
763
ac740bc7
JH
7642014-09-03 James Hogan <james.hogan@imgtec.com>
765
766 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
767 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
768
7d793aa9
SDJ
7692014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
770
771 PR python/16699
772 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
773 function.
774 (add_cmd): Set "completer_handle_brkchars" to NULL.
775 * cli/cli-decode.h (struct cmd_list_element)
776 <completer_handle_brkchars>: New field.
777 * command.h (completer_ftype_void): New typedef.
778 (set_cmd_completer_handle_brkchars): New prototype.
779 * completer.c (set_gdb_completion_word_break_characters): New
780 function.
781 (complete_line_internal): Call "completer_handle_brkchars"
782 callback from command.
783 * completer.h: Include "command.h".
784 (set_gdb_completion_word_break_characters): New prototype.
785 * python/py-cmd.c (cmdpy_completer_helper): New function.
786 (cmdpy_completer_handle_brkchars): New function.
787 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
788 (cmdpy_init): Set completer_handle_brkchars to
789 cmdpy_completer_handle_brkchars.
790
97ea6506
GB
7912014-09-03 Gary Benson <gbenson@redhat.com>
792
793 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
794 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
795 Loop conditions changed to equivalent form.
796 (struct x86_debug_reg_state): Updated dr_ref_count comment.
797 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
798 ALL_DEBUG_ADDRESS_REGISTERS.
799
d1437815
JB
8002014-09-03 Joel Brobecker <brobecker@adacore.com>
801
802 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
803 description fix.
804
9b94fcf1
DE
8052014-09-02 Doug Evans <dje@google.com>
806
807 * typeprint.c (find_global_typedef): Fix comment.
808
df7e5265
GB
8092014-09-02 Gary Benson <gbenson@redhat.com>
810
811 * i386-nat.h: Renamed as...
812 * x86-nat.h: New file. All type, function and variable name
813 prefixes changed from "i386_" to "x86_". All references updated.
814 * i386-nat.c: Renamed as...
815 * x86-nat.c: New file. All type, function and variable name
816 prefixes changed from "i386_" to "x86_". All references updated.
817 * common/i386-xstate.h: Renamed as...
818 * common/x86-xstate.h: New file. All type, function and variable
819 name prefixes changed from "i386_" to "x86_". All references
820 updated.
821 * nat/i386-cpuid.h: Renamed as...
822 * nat/x86-cpuid.h: New file. All type, function and variable name
823 prefixes changed from "i386_" to "x86_". All references updated.
824 * nat/i386-gcc-cpuid.h: Renamed as...
825 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
826 name prefixes changed from "i386_" to "x86_". All references
827 updated.
828 * nat/i386-dregs.h: Renamed as...
829 * nat/x86-dregs.h: New file. All type, function and variable name
830 prefixes changed from "i386_" to "x86_". All references updated.
831 * nat/i386-dregs.c: Renamed as...
832 * nat/x86-dregs.c: New file. All type, function and variable name
833 prefixes changed from "i386_" to "x86_". All references updated.
834
1c3569d4
MR
8352014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
836
837 * varobj.c (_initialize_varobj): Move to the end of file.
838
ff55e1b5
GB
8392014-08-29 Gary Benson <gbenson@redhat.com>
840
841 * common/common-exceptions.h: New file.
842 * common/common-exceptions.c: Likewise.
843 * Makefile.in (SFILES): Add common/common-exceptions.c.
844 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
845 (COMMON_OBS): Add common-exceptions.o.
846 (common-exceptions.o): New rule.
847 * exceptions.h (common-exceptions.h): Include.
848 (gdb_setjmp.h): Do not include.
849 (return_reason): Moved to common-exceptions.h.
850 (enum return_reason): Likewise.
851 (RETURN_MASK): Likewise.
852 (typedef return_mask): Likewise.
853 (enum errors): Likewise.
854 (struct gdb_exception): Likewise.
855 (exceptions_state_mc_init): Likewise.
856 (exceptions_state_mc_action_iter): Likewise.
857 (exceptions_state_mc_action_iter_1): Likewise.
858 (TRY_CATCH): Likewise.
859 (throw_exception): Likewise.
860 (throw_verror): Likewise.
861 (throw_vquit): Likewise.
862 (throw_error): Likewise.
863 (throw_quit): Likewise.
864 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
865 (enum catcher_action): Likewise.
866 (struct catcher): Likewise.
867 (current_catcher): Likewise.
868 (catcher_list_size): Likewise.
869 (exceptions_state_mc_init): Likewise.
870 (catcher_pop): Likewise.
871 (exceptions_state_mc): Likewise.
872 (exceptions_state_mc_action_iter): Likewise.
873 (exceptions_state_mc_action_iter_1): Likewise.
874 (throw_exception): Likewise.
875 (exception_messages): Likewise.
876 (exception_messages_size): Likewise.
877 (throw_it): Likewise.
878 (throw_verror): Likewise.
879 (throw_vquit): Likewise.
880 (throw_error): Likewise.
881 (throw_quit): Likewise.
882 (prepare_to_throw_exception): New function.
883
e9bcb658
GB
8842014-08-29 Gary Benson <gbenson@redhat.com>
885
886 * common/gdb_setjmp.h: New file.
887 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
888 * configure.ac: Move sigsetjmp check...
889 * common/common.m4: ...here.
890 * configure: Regenerate.
891 * cp-support.c (SIGJMP_BUF): Delete.
892 (SIGSETJMP): Likewise.
893 (SIGLONGJMP): Likewise.
894 * exceptions.h (gdb_setjmp.h): Include.
895 (setjmp.h): Do not include.
896 (EXCEPTIONS_SIGJMP_BUF): Delete.
897 (EXCEPTIONS_SIGSETJMP): Likewise.
898 (EXCEPTIONS_SIGLONGJMP): Likewise.
899 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
900 from gdb_setjmp.h.
901 * exceptions.c: Likewise.
902
e3180625
GB
9032014-08-29 Gary Benson <gbenson@redhat.com>
904
905 * cleanups.h: Moved to...
906 * common/cleanups.h: New file.
907 * cleanups.c: Moved to...
908 * common/cleanups.c: New file. Include common-defs.h and
909 cleanups.h. Do not include defs.h.
910 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
911 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
912 (cleanups.o): New rule.
913
e3d6ba5d
GB
9142014-08-29 Gary Benson <gbenson@redhat.com>
915
916 * common/errors.h (internal_warning): New declaration.
917 (internal_vwarning): Likewise.
918 * common/errors.c (internal_warning): New function.
919 * utils.h (internal_warning): Don't declare.
920 (internal_vwarning): Likewise.
921 * utils.c (internal_warning): Removed.
922
075c7033
GB
9232014-08-29 Gary Benson <gbenson@redhat.com>
924
925 * main.c (captured_main): Use warning during startup.
926 Prefix startup warning messages with command name.
927
91b35fd0
GB
9282014-08-29 Gary Benson <gbenson@redhat.com>
929
930 * main.c (captured_main): Handle usage errors with error.
931
b1ec390e
GB
9322014-08-29 Gary Benson <gbenson@redhat.com>
933
934 * go32-nat.c (go32_create_inferior): Replace a fprintf/
935 exit pair with a call to error. Wrap the message with _().
936
fd0ef3dd
GB
9372014-08-29 Gary Benson <gbenson@redhat.com>
938
939 * main.c (captured_main): Replace a fprintf/exit
940 pair with a call to error. Wrap the message with _().
941
e0e6bcab
GB
9422014-08-29 Gary Benson <gbenson@redhat.com>
943
944 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
945 pairs with calls to error. Wrap the message with _().
946
0d2f5c07
GB
9472014-08-29 Gary Benson <gbenson@redhat.com>
948
949 * utils.c (vwarning): Protect calls to target_terminal_ours
950 and wrap_here.
951
5df43998
GB
9522014-08-29 Gary Benson <gbenson@redhat.com>
953
954 * exceptions.c (print_flush): Protect calls to
955 target_terminal_ours and wrap_here.
956
2437fd32
GB
9572014-08-29 Gary Benson <gbenson@redhat.com>
958
959 * utils.h (filtered_printing_initialized): New declaration.
960 * utils.c (abort_with_message): New function.
961 (internal_vproblem): Use abort_with_message for first level
962 recursive internal problems, and if gdb_stderr is not set up.
963 Protect calls to target_terminal_ours, begin_line and query.
964
f1f58506
DE
9652014-08-28 Doug Evans <dje@google.com>
966
967 * symtab.c (in_prologue): Move definition to better spot.
968 (skip_prologue_using_sal): Ditto.
969
aab2f208
DE
9702014-08-28 Doug Evans <dje@google.com>
971
972 * symtab.c (find_function_start_sal): Move definition to better spot.
973
6b65d1b6
YQ
9742014-08-28 Yao Qi <yao@codesourcery.com>
975
976 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
977 found_stack_adjust in forward scan. Remove condition check
978 on found_stack_adjust which is always true. Indent the code.
979
a1b34d15
YQ
9802014-08-28 Yao Qi <yao@codesourcery.com>
981
982 * dwarf2read.c (dwarf_decode_lines): Update declaration.
983 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
984 (dwarf_decode_lines): Remove argument
985 want_line_info. Remove condition check on want_line_info.
986 Callers update.
987
d5962de5
DE
9882014-08-27 Doug Evans <dje@google.com>
989
990 * dwarf2read.c (dwarf_record_line): Fix typo.
991
9b139002
SDJ
9922014-08-27 Patrick Palka <patrick@parcs.ath.cx>
993
994 * target.h (struct target_ops::to_terminal_save_ours): Remove
995 declaration.
996 (target_terminal_save_ours): Remove macro.
997 * target-delegates.c: Regenerate.
998 * inf-child.c (inf_child_target): Don't set the nonexistent
999 field to_terminal_save_ours.
1000 * inferior.h (child_terminal_save_ours): Remove declaration.
1001 * terminal.h (gdb_save_tty_state): New declaration.
1002 * inflow.c (child_terminal_save_ours): Rename to ...
1003 (gdb_save_tty_state): ... this.
1004 * tui/tui.c: Include terminal.h.
1005 (tui_enable): Use gdb_save_tty_state instead of
1006 target_terminal_save_ours.
1007 (tui_disable): Likewise.
1008
9debeba0
DE
10092014-08-25 Doug Evans <dje@google.com>
1010
1011 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1012 Pass NULL instead of 0 for context pointer.
1013
428fc5fc
YQ
10142014-08-25 Yao Qi <yao@codesourcery.com>
1015
1016 * dwarf2read.c: Fix grammatical error.
1017
cdc07690
YQ
10182014-08-24 Yao Qi <yao@codesourcery.com>
1019
1020 * dwarf2read.c (scan_partial_symbols): Update comments.
1021 Rename argument 'need_pc' with 'set_addrmap'.
1022 (add_partial_namespace): Rename argument 'need_pc' with
1023 'set_addrmap'.
1024 (add_partial_module): Likewise.
1025 (add_partial_subprogram): Likewise. Update comments.
1026 (dwarf2_name): Fix typo.
1027
a05a36a5
DE
10282014-08-22 Doug Evans <dje@google.com>
1029
1030 PR 17276
1031 * dwarf2read.c (dwarf_record_line_p): New function.
1032 (dwarf_decode_lines_1): Ignore subsequent line number entries
1033 for the same line if any entry had a non-zero discriminator.
1034
252a6764
DE
10352014-08-22 Doug Evans <dje@google.com>
1036
1037 * buildsym.h (record_line_ftype): New typedef.
1038 (record_line): Use it.
1039 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1040 (dwarf_decode_lines_1): Call them.
1041
510db052
YQ
10422014-08-22 Yao Qi <yao@codesourcery.com>
1043
1044 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1045 (ctf_end): Remove code.
1046
22fd09ae
JK
10472014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1048
1049 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1050 (linux_make_corefile_notes): call update_thread_list, protected against
1051 exceptions.
1052
656e8868
PA
10532014-08-21 Pedro Alves <palves@redhat.com>
1054
1055 * infcmd.c (attach_command): Remove comment.
1056
de589d04
WN
10572014-08-21 Bin Cheng <bin.cheng@arm.com>
1058
1059 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1060 unsigned LONGEST to ULONGEST.
1061
2a31c623
PA
10622014-08-20 Pedro Alves <palves@redhat.com>
1063
1064 * Makefile.in (check-read1): New rule.
1065
d36430db
JB
10662014-08-20 Joel Brobecker <brobecker@adacore.com>
1067
1068 * value.c (value_from_contents_and_address): Strip resolved_type's
1069 typedef layers before checking its TYPE_DATA_LOCATION.
1070
000339af
PA
10712014-08-20 Pedro Alves <palves@redhat.com>
1072
1073 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1074
5f52445b
YQ
10752014-08-20 Yao Qi <yao@codesourcery.com>
1076
1077 * amd64-tdep.c (amd64_classify): Add a blank line after the
1078 example. Move "*/" to a new line.
1079 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1080 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1081 * dwarf2read.c (psymtab_include_file_name): Likewise.
1082
9a0dc9e3
PA
10832014-08-19 Andrew Burgess <aburgess@broadcom.com>
1084 Pedro Alves <palves@redhat.com>
1085
1086 PR symtab/14604
1087 PR symtab/14605
1088 * ada-lang.c (coerce_unspec_val_to_type): Use
1089 value_contents_copy_raw.
1090 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1091 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1092 * cp-valprint.c (cp_print_value_fields): Let the common printing
1093 code handle optimized out values.
1094 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1095 * d-valprint.c (dynamic_array_type): Use
1096 value_bits_any_optimized_out.
1097 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1098 check_any_valid fields.
1099 (check_pieced_value_bits): Delete and inline ...
1100 (check_pieced_synthetic_pointer): ... here.
1101 (check_pieced_value_validity): Delete.
1102 (check_pieced_value_invalid): Delete.
1103 (pieced_value_funcs): Remove check_validity and check_any_valid
1104 fields.
1105 (read_pieced_value): Use mark_value_bits_optimized_out.
1106 (write_pieced_value): Switch to use
1107 mark_value_bytes_optimized_out.
1108 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1109 of assuming the whole value is optimized out.
1110 * findvar.c (read_frame_register_value): Remove special handling
1111 of optimized out registers.
1112 (value_from_register): Use mark_value_bytes_optimized_out.
1113 * frame-unwind.c (frame_unwind_got_optimized): Use
1114 mark_value_bytes_optimized_out.
1115 * jv-valprint.c (java_value_print): Adjust.
1116 (java_print_value_fields): Let the common printing code handle
1117 optimized out values.
1118 * mips-tdep.c (mips_print_register): Remove special handling of
1119 optimized out registers.
1120 * opencl-lang.c (lval_func_check_validity): Delete.
1121 (lval_func_check_any_valid): Delete.
1122 (opencl_value_funcs): Remove check_validity and check_any_valid
1123 fields.
1124 * p-valprint.c (pascal_object_print_value_fields): Let the common
1125 printing code handle optimized out values.
1126 * stack.c (read_frame_arg): Remove special handling of optimized
1127 out values. Fetch both VAL and ENTRYVAL before comparing
1128 contents. Adjust to value_available_contents_eq rename.
1129 * valprint.c (valprint_check_validity)
1130 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1131 (val_print_array_elements): Adjust.
1132 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1133 (value_bits_any_optimized_out): New function.
1134 (value_entirely_covered_by_range_vector): New function, factored
1135 out from value_entirely_unavailable.
1136 (value_entirely_unavailable): Reimplement.
1137 (value_entirely_optimized_out): New function.
1138 (insert_into_bit_range_vector): New function, factored out from
1139 mark_value_bits_unavailable.
1140 (mark_value_bits_unavailable): Reimplement.
1141 (struct ranges_and_idx): New struct.
1142 (find_first_range_overlap_and_match): New function, factored out
1143 from value_available_contents_bits_eq.
1144 (value_available_contents_bits_eq): Rename to ...
1145 (value_contents_bits_eq): ... this. Check both unavailable
1146 contents and optimized out contents.
1147 (value_available_contents_eq): Rename to ...
1148 (value_contents_eq): ... this.
1149 (allocate_value_lazy): Remove reference to the old optimized_out
1150 boolean.
1151 (allocate_optimized_out_value): Use
1152 mark_value_bytes_optimized_out.
1153 (require_not_optimized_out): Adjust to check whether the
1154 optimized_out vec is empty.
1155 (ranges_copy_adjusted): New function, factored out from
1156 value_contents_copy_raw.
1157 (value_contents_copy_raw): Also copy the optimized out ranges.
1158 Assert the destination ranges aren't optimized out.
1159 (value_contents_copy): Update comment, remove call to
1160 require_not_optimized_out.
1161 (value_contents_equal): Adjust to check whether the optimized_out
1162 vec is empty.
1163 (set_value_optimized_out, value_optimized_out_const): Delete.
1164 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1165 New functions.
1166 (value_entirely_optimized_out, value_bits_valid): Delete.
1167 (value_copy): Take a VEC copy of the 'optimized_out' field.
1168 (value_primitive_field): Remove special handling of optimized out.
1169 (value_fetch_lazy): Assert that lazy values have no unavailable
1170 regions. Use value_bits_any_optimized_out. Remove some special
1171 handling for optimized out values.
1172 * value.h: Add intro comment about <optimized out> and
1173 <unavailable>.
1174 (struct lval_funcs): Remove check_validity and check_any_valid
1175 fields.
1176 (set_value_optimized_out, value_optimized_out_const): Remove.
1177 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1178 New declarations.
1179 (value_bits_any_optimized_out): New declaration.
1180 (value_bits_valid): Delete declaration.
1181 (value_available_contents_eq): Rename to ...
1182 (value_contents_eq): ... this, and extend comments.
1183
6694c411
JK
11842014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1185
1186 Fix -fsanitize=address on unreadable inferior strings.
1187 * valprint.c (val_print_string): Fix access before BUFFER.
1188
89a1c21a
SM
11892014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1190
1191 * target.c (target_struct_size): Remove.
1192 (target_struct_allocsize): Remove.
1193 (DEFAULT_ALLOCSIZE): Remove.
1194 (target_ops_p): New typedef.
1195 (DEF_VEC_P (target_ops_p)): New vector type.
1196 (target_structs): Change type to VEC (target_ops_p).
1197 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1198 (find_default_run_target): Rewrite for loop following changes to
1199 target_structs.
1200
cb417230
JB
12012014-08-19 Joel Brobecker <brobecker@adacore.com>
1202
1203 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1204 Adjust code accordingly. Adjust function description comment.
1205
817e0957
YQ
12062014-08-19 Yao Qi <yao@codesourcery.com>
1207
1208 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1209 types.
1210
2974be62
AM
12112014-08-19 Alan Modra <amodra@gmail.com>
1212
1213 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1214 * config.in: Regenerate.
1215 * configure: Regenerate.
1216
34abf635
GB
12172014-08-19 Tom Tromey <tromey@redhat.com>
1218 Gary Benson <gbenson@redhat.com>
1219
1220 * common/common-debug.h: New file.
1221 * common/common-debug.c: Likewise.
1222 * debug.c: Likewise.
1223 * Makefile.in (SFILES): Add common/common-debug.c.
1224 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1225 (COMMON_OBS): Add common-debug.o and debug.o.
1226 (common-debug.o): New rule.
1227 * common/common-defs.h: Include common-debug.h.
1228 * common/agent.c (debug_agent_printf): New function.
1229 (DEBUG_AGENT): Redefine.
1230 * nat/i386-dregs.c (debug_printf): Undefine.
1231
f6e94d78
GB
12322014-08-19 Gary Benson <gbenson@redhat.com>
1233
1234 * common/common-defs.h: Include print-utils.h.
1235 * utils.h: Do not include print-utils.h.
1236
9239eeab
GB
12372014-08-19 Tom Tromey <tromey@redhat.com>
1238 Gary Benson <gbenson@redhat.com>
1239
1240 * common/common-types.h: New file.
1241 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1242 * common/common-defs.h: Include common-types.h.
1243 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1244 (ULONGEST): Remove.
1245
ef87c8bb
GB
12462014-08-19 Tom Tromey <tromey@redhat.com>
1247 Gary Benson <gbenson@redhat.com>
1248
1249 * common/errors.h: New file.
1250 * common/errors.c: Likewise.
1251 * Makefile.in (SFILES): Add common/errors.c.
1252 (HFILES_NO_SRCDIR): Add common/errors.h.
1253 (COMMON_OBS): Add errors.o.
1254 (errors.o): New rule.
1255 * common/common-defs.h: Include errors.h.
1256 * utils.h (perror_with_name, error, verror, warning, vwarning):
1257 Don't declare.
1258 * common/common-utils.h: (malloc_failure, internal_error):
1259 Likewise.
1260
196a707b
GB
12612014-08-19 Gary Benson <gbenson@redhat.com>
1262
1263 * utils.c (internal_vproblem): Always print the message.
1264
ded4fc8f
DE
12652014-08-18 Doug Evans <dje@google.com>
1266
1267 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1268
950c97d8
JB
12692014-08-18 Joel Brobecker <brobecker@adacore.com>
1270
1271 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1272 Return 0 if TYPE is dynamic.
1273 (print_range): Add handling of dynamic ranges.
1274
3cdcd0ce
JB
12752014-08-18 Keven Boell <keven.boell@intel.com>
1276 Joel Brobecker <brobecker@adacore.com>
1277
1278 * gdbtypes.h (struct main_type): Add field "data_location".
1279 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1280 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1281 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1282 a dynamic data location.
1283 (resolve_dynamic_type): Add DW_AT_data_location handling.
1284 (copy_recursive, copy_type): Copy the data_location information
1285 when present.
1286 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1287 * value.c (value_from_contents_and_address): Add
1288 DW_AT_data_location handling.
1289
08412b07
JB
12902014-08-18 Keven Boell <keven.boell@intel.com>
1291 Joel Brobecker <brobecker@adacore.com>
1292
1293 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1294 field "get_object_address".
1295 * dwarf2expr.c (execute_stack_op): Add handling for
1296 DW_OP_push_object_address.
1297 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1298 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1299 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1300 (dwarf_expr_get_obj_addr): New function.
1301 (dwarf_expr_ctx_funcs): Add get_object_address field.
1302 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1303 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1304 (dwarf2_evaluate_property): Add parameter "address". Use it.
1305 (needs_get_obj_addr): New function.
1306 (needs_frame_ctx_funcs): Add get_object_address field.
1307 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1308 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1309 (resolve_dynamic_array): Likewise.
1310
84754697
JB
13112014-08-18 Joel Brobecker <brobecker@adacore.com>
1312
1313 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1314 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1315 fixed value for records and unions for which some GNAT encodings
1316 are present.
1317
da5c522f
JB
13182014-08-18 Joel Brobecker <brobecker@adacore.com>
1319
1320 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1321 rewrite to avoid "else if" and "else" constructs. Should be
1322 a no-op in practice.
1323
0d72a7c3
JB
13242014-08-18 Joel Brobecker <brobecker@adacore.com>
1325
1326 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1327 of lexical block.
1328
e66d4446
SC
13292014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1330
1331 PR c++/17132
1332 * eval.c: Update all calls to find_overload_match.
1333 * valarith.c: Likewise.
1334 (value_user_defined_cpp_op, value_user_defined_op): New
1335 argument NOSIDE. Update all callers.
1336 * valops.c (find_overload_match): New argument NOSIDE.
1337 * value.h (find_overload_match): Update signature.
1338
940df408
SC
13392014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1340
1341 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1342 'items' methods instead of 'iteritems' method on dictionaries.
1343
699ca60a
DE
13442014-08-15 Doug Evans <dje@google.com>
1345
1346 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1347 closer to use.
1348
37780ee5
DE
13492014-08-15 Doug Evans <dje@google.com>
1350
1351 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1352
0ad93d4f
DE
13532014-08-15 Doug Evans <dje@google.com>
1354
1355 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1356
20d8c372
DE
13572014-08-15 Doug Evans <dje@google.com>
1358
1359 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1360 unused.
1361
cb039ba4
EZ
13622014-08-15 Eli Zaretskii <eliz@gnu.org>
1363
1364 * dcache.h: Include target.h, to avoid compile time warnings.
1365
eb7a547a
JB
13662014-08-15 Joel Brobecker <brobecker@adacore.com>
1367
1368 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1369 frame_info" partial declaration.
1370 * gdbarch.h: Regenerate.
1371
783cecc8
YQ
13722014-08-15 Yao Qi <yao@codesourcery.com>
1373
1374 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1375 Add parameter 'decode_for_pst_p'. Callers update.
1376
65c749e7
YQ
13772014-08-13 Yao Qi <yao@codesourcery.com>
1378
1379 PR build/17104
1380 * configure.ac: Use local variable 'pos'.
1381 * configure: Regenerated.
1382
d769e349
DE
13832014-08-11 Doug Evans <dje@google.com>
1384
1385 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1386 message, it is redundant with "Reading symbols from ..." message.
1387
24f1235e
DE
13882014-08-10 Doug Evans <xdje42@gmail.com>
1389
1390 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1391
dcd2e6ef
YQ
13922014-08-09 Yao Qi <yao@codesourcery.com>
1393
1394 PR remote/9053
1395 * remote.c (remote_xfer_partial): Remove dead code.
1396
070bdf0b
AA
13972014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1398
1399 * ia64-linux-tdep.c: Include "regset.h".
1400 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1401 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1402 (ia64_linux_supply_fpregset): New function.
1403 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1404 (ia64_linux_regset_from_core_section): New function.
1405 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1406 method.
1407
08f9f542
AA
14082014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1409
1410 * m68klinux-tdep.c: Include "regset.h".
1411 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1412 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1413 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1414 (m68k_linux_regset_from_core_section): New function.
1415 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1416 method.
1417
8f1cee41
AA
14182014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1419
1420 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1421 function. Move logic to...
1422 (tilegx_linux_regmap): ... this new register map.
1423 (tilegx_linux_regset): Refer to register map, replace supply
1424 method by regcache_supply_regset, and add collect method.
1425 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1426 TILEGX_FIRST_EASY_REGNUM.
1427
c5741217
AA
14282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1429
1430 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1431 that calls regcache_supply_regset and handles the EPC register
1432 separately. Move main logic to...
1433 (score7_linux_gregmap): ... this new register map.
1434 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1435 (score7_linux_gregset): Refer to register map. Add collect method.
1436 (score7_linux_regset_from_core_section): Replace
1437 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1438 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1439 (struct regset): Delete unused forward declaraction.
1440 (struct pt_regs): Delete structure definition.
1441 (elf_gregset_t): Delete typedef.
1442
81580573
AA
14432014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1444
1445 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1446 (nios2_core_regset): Add collect method.
1447
ba199d7d
AA
14482014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1449
1450 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1451 platform-independent and don't write to read-only input buffer.
1452 (m32r_linux_collect_gregset): New function.
1453 (m32r_linux_gregset): Add collect method.
1454
0006a9da
AA
14552014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1456
1457 * hppa-linux-tdep.c (greg_map): Rename to...
1458 (hppa_linux_gregmap): ... this. Also convert to
1459 regcache_map_entry format.
1460 (hppa_linux_supply_regset): Delete function.
1461 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1462 (hppa_linux_fpregmap): ... this new register map.
1463 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1464 register map, replace supply method by regcache_supply_regset, and
1465 add collect method regcache_collect_regset.
1466
901e1b23
AA
14672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1468
1469 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1470 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1471 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1472 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1473 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1474 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1475 (frv_linux_supply_gregset): Replace main logic by call to
1476 regcache_supply_regset, but keep clearing gr32-gr63.
1477 (frv_linux_supply_fpregset): Delete function.
1478 (frv_linux_gregset): Refer to appropriate register map and add
1479 regcache_collect_regset as the collect method.
1480 (frv_linux_fpregset): Likewise. Also exchange the supply method
1481 by regcache_supply_regset.
1482
1d6e7555
AA
14832014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1484
1485 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1486 by call to alpha_supply_int_regs.
1487 (alpha_linux_collect_gregset): New function.
1488 (alpha_linux_supply_fpregset): Replace logic by call to
1489 alpha_supply_fp_regs.
1490 (alpha_linux_collect_fpregset): New function.
1491 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1492
d4d793bf
AA
14932014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1494
1495 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1496 by call to regcache_collect_regset.
1497 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1498 instead of aarch64_linux_supply_gregset/_fpregset.
1499 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1500 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1501 header file instead.
1502 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1503 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1504 functions. Move logic to ...
1505 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1506 register maps.
1507 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1508 refer to new register maps, replace *_regset_from_core by
1509 regcache_supply_regset, and also use regcache_collect_regset.
1510 * aarch64-linux-tdep.h: Include "regset.h".
1511 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1512 Delete prototypes.
1513 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1514 macros, moved from C source file.
1515 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1516 variable declarations.
1517
99b7da5d
AA
15182014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1519
1520 * s390-linux-nat.c: Include "regset.h".
1521 (regmap_gregset): Delete macro.
1522 (s390_64_regmap_gregset): New register map for
1523 regcache_supply/_collect_regset.
1524 (s390_64_gregset): New regset.
1525 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1526 (regmap_fpregset): Delete macro.
1527 (s390_native_supply, s390_native_collect): Delete functions.
1528 (supply_gregset, fill_gregset): Replace s390-specific regmap
1529 handling by a call to regcache_supply/_collect_regset.
1530 (supply_fpregset, fill_fpregset): Call regcache_supply/
1531 _collect_regset instead of s390_native_supply/_collect.
1532 (fetch_regset, store_regset): Likewise. Also change the last
1533 parameter to a regset instead of a regmap.
1534 (s390_linux_fetch_inferior_registers)
1535 (390_linux_store_inferior_registers): Adjust last parameter in
1536 calls to fetch_regset and store_regset.
1537 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1538 (s390_gregmap): ... this. Also make static const and convert to
1539 regcache_map_entry format.
1540 (s390x_regmap_gregset): Delete.
1541 (s390_regmap_fpregset): Rename to...
1542 (s390_fpregmap): ... this. Make static const and convert to
1543 regcache_map_entry format.
1544 (s390_regmap_upper, s390_regmap_last_break)
1545 (s390x_regmap_last_break, s390_regmap_system_call)
1546 (s390_regmap_tdb): Likewise.
1547 (s390_supply_regset, s390_collect_regset): Remove functions.
1548 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1549 s390_supply_regset.
1550 (s390_gregset, s390_fpregset, s390_upper_regset)
1551 (s390_last_break_regset, s390x_last_break_regset)
1552 (s390_system_call_regset, s390_tdb_regset): Make global and
1553 replace s390_supply/_collect_regset by regcache_supply/
1554 _collect_regset.
1555 (s390x_gregset): Delete.
1556 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1557 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1558 (s390_regmap_fpregset, s390_regmap_last_break)
1559 (s390x_regmap_last_break, s390_regmap_system_call)
1560 (s390_regmap_tdb): Delete global variable declarations.
1561 (s390_gregset, s390_fpregset, s390_last_break_regset)
1562 (s390x_last_break_regset, s390_system_call_regset)
1563 (s390_tdb_regset): New global variable declarations.
1564
0b309272
AA
15652014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1566
1567 * regcache.c: Include "regset.h".
1568 (regcache_transfer_regset): New local function.
1569 (regcache_supply_regset, regcache_collect_regset): New functions.
1570 * regcache.h (struct regcache_map_entry): New structure.
1571 (REGCACHE_MAP_SKIP): New enum value.
1572 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1573
7fefa8d7
AA
15742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1575
1576 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1577 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1578 (ppc_linux_collect_gregset ): Likewise.
1579 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1580 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1581 (ppc_collect_vrregset): Likewise.
1582 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1583 Likewise.
1584
96c4f946
YQ
15852014-08-07 Yao Qi <yao@codesourcery.com>
1586
1587 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1588 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1589 * remote.c (remote_read_bytes): Likewise.
1590
fffbe6a8
YQ
15912014-08-07 Yao Qi <yao@codesourcery.com>
1592
1593 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1594
5ee8a82c
YQ
15952014-08-07 Yao Qi <yao@codesourcery.com>
1596
1597 PR remote/17230
1598 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1599 TARGET_XFER_OK instead of 0.
1600
bb974a24
GB
16012014-08-07 Gary Benson <gbenson@redhat.com>
1602
1603 * common/common-defs.h: Include errno.h.
1604 * defs.h: Do not include errno.h.
1605 * ada-typeprint.c: Likewise.
1606 * c-typeprint.c: Likewise.
1607 * core-regset.c: Likewise.
1608 * corefile.c: Likewise.
1609 * corelow.c: Likewise.
1610 * event-loop.c: Likewise.
1611 * f-typeprint.c: Likewise.
1612 * gnu-nat.c: Likewise.
1613 * go32-nat.c: Likewise.
1614 * i386gnu-nat.c: Likewise.
1615 * m2-typeprint.c: Likewise.
1616 * nat/linux-btrace.c: Likewise.
1617 * p-typeprint.c: Likewise.
1618 * procfs.c: Likewise.
1619 * remote-sim.c: Likewise.
1620 * rs6000-nat.c: Likewise.
1621 * target.c: Likewise.
1622 * typeprint.c: Likewise.
1623 * ui-file.c: Likewise.
1624 * valops.c: Likewise.
1625 * valprint.c: Likewise.
1626
6d3d12eb
GB
16272014-08-07 Gary Benson <gbenson@redhat.com>
1628
1629 * common/common-defs.h: Include string.h.
1630 * aarch64-tdep.c: Do not include string.h.
1631 * ada-exp.y: Likewise.
1632 * ada-lang.c: Likewise.
1633 * ada-lex.l: Likewise.
1634 * ada-typeprint.c: Likewise.
1635 * ada-valprint.c: Likewise.
1636 * aix-thread.c: Likewise.
1637 * alpha-linux-tdep.c: Likewise.
1638 * alpha-mdebug-tdep.c: Likewise.
1639 * alpha-nat.c: Likewise.
1640 * alpha-osf1-tdep.c: Likewise.
1641 * alpha-tdep.c: Likewise.
1642 * alphanbsd-tdep.c: Likewise.
1643 * amd64-dicos-tdep.c: Likewise.
1644 * amd64-linux-tdep.c: Likewise.
1645 * amd64-nat.c: Likewise.
1646 * amd64-sol2-tdep.c: Likewise.
1647 * amd64fbsd-tdep.c: Likewise.
1648 * amd64obsd-tdep.c: Likewise.
1649 * arch-utils.c: Likewise.
1650 * arm-linux-nat.c: Likewise.
1651 * arm-linux-tdep.c: Likewise.
1652 * arm-tdep.c: Likewise.
1653 * arm-wince-tdep.c: Likewise.
1654 * armbsd-tdep.c: Likewise.
1655 * armnbsd-nat.c: Likewise.
1656 * armnbsd-tdep.c: Likewise.
1657 * armobsd-tdep.c: Likewise.
1658 * avr-tdep.c: Likewise.
1659 * ax-gdb.c: Likewise.
1660 * ax-general.c: Likewise.
1661 * bcache.c: Likewise.
1662 * bfin-tdep.c: Likewise.
1663 * breakpoint.c: Likewise.
1664 * build-id.c: Likewise.
1665 * buildsym.c: Likewise.
1666 * c-exp.y: Likewise.
1667 * c-lang.c: Likewise.
1668 * c-typeprint.c: Likewise.
1669 * c-valprint.c: Likewise.
1670 * charset.c: Likewise.
1671 * cli-out.c: Likewise.
1672 * cli/cli-cmds.c: Likewise.
1673 * cli/cli-decode.c: Likewise.
1674 * cli/cli-dump.c: Likewise.
1675 * cli/cli-interp.c: Likewise.
1676 * cli/cli-logging.c: Likewise.
1677 * cli/cli-script.c: Likewise.
1678 * cli/cli-setshow.c: Likewise.
1679 * cli/cli-utils.c: Likewise.
1680 * coffread.c: Likewise.
1681 * common/agent.c: Likewise.
1682 * common/buffer.c: Likewise.
1683 * common/buffer.h: Likewise.
1684 * common/common-utils.c: Likewise.
1685 * common/filestuff.c: Likewise.
1686 * common/filestuff.c: Likewise.
1687 * common/format.c: Likewise.
1688 * common/print-utils.c: Likewise.
1689 * common/rsp-low.c: Likewise.
1690 * common/signals.c: Likewise.
1691 * common/vec.h: Likewise.
1692 * common/xml-utils.c: Likewise.
1693 * core-regset.c: Likewise.
1694 * corefile.c: Likewise.
1695 * corelow.c: Likewise.
1696 * cp-abi.c: Likewise.
1697 * cp-name-parser.y: Likewise.
1698 * cp-support.c: Likewise.
1699 * cp-valprint.c: Likewise.
1700 * cris-tdep.c: Likewise.
1701 * d-exp.y: Likewise.
1702 * darwin-nat.c: Likewise.
1703 * dbxread.c: Likewise.
1704 * dcache.c: Likewise.
1705 * demangle.c: Likewise.
1706 * dicos-tdep.c: Likewise.
1707 * disasm.c: Likewise.
1708 * doublest.c: Likewise.
1709 * dsrec.c: Likewise.
1710 * dummy-frame.c: Likewise.
1711 * dwarf2-frame.c: Likewise.
1712 * dwarf2loc.c: Likewise.
1713 * dwarf2read.c: Likewise.
1714 * elfread.c: Likewise.
1715 * environ.c: Likewise.
1716 * eval.c: Likewise.
1717 * event-loop.c: Likewise.
1718 * exceptions.c: Likewise.
1719 * exec.c: Likewise.
1720 * expprint.c: Likewise.
1721 * f-exp.y: Likewise.
1722 * f-lang.c: Likewise.
1723 * f-typeprint.c: Likewise.
1724 * f-valprint.c: Likewise.
1725 * fbsd-nat.c: Likewise.
1726 * findcmd.c: Likewise.
1727 * findvar.c: Likewise.
1728 * fork-child.c: Likewise.
1729 * frame.c: Likewise.
1730 * frv-linux-tdep.c: Likewise.
1731 * frv-tdep.c: Likewise.
1732 * gdb.c: Likewise.
1733 * gdb_bfd.c: Likewise.
1734 * gdbarch.c: Likewise.
1735 * gdbarch.sh: Likewise.
1736 * gdbtypes.c: Likewise.
1737 * gnu-nat.c: Likewise.
1738 * gnu-v2-abi.c: Likewise.
1739 * gnu-v3-abi.c: Likewise.
1740 * go-exp.y: Likewise.
1741 * go-lang.c: Likewise.
1742 * go32-nat.c: Likewise.
1743 * guile/guile.c: Likewise.
1744 * guile/scm-auto-load.c: Likewise.
1745 * hppa-hpux-tdep.c: Likewise.
1746 * hppa-linux-nat.c: Likewise.
1747 * hppanbsd-tdep.c: Likewise.
1748 * hppaobsd-tdep.c: Likewise.
1749 * i386-cygwin-tdep.c: Likewise.
1750 * i386-dicos-tdep.c: Likewise.
1751 * i386-linux-tdep.c: Likewise.
1752 * i386-nto-tdep.c: Likewise.
1753 * i386-sol2-tdep.c: Likewise.
1754 * i386-tdep.c: Likewise.
1755 * i386bsd-tdep.c: Likewise.
1756 * i386gnu-nat.c: Likewise.
1757 * i386nbsd-tdep.c: Likewise.
1758 * i386obsd-tdep.c: Likewise.
1759 * i387-tdep.c: Likewise.
1760 * ia64-libunwind-tdep.c: Likewise.
1761 * ia64-linux-nat.c: Likewise.
1762 * inf-child.c: Likewise.
1763 * inf-ptrace.c: Likewise.
1764 * inf-ttrace.c: Likewise.
1765 * infcall.c: Likewise.
1766 * infcmd.c: Likewise.
1767 * inflow.c: Likewise.
1768 * infrun.c: Likewise.
1769 * interps.c: Likewise.
1770 * iq2000-tdep.c: Likewise.
1771 * irix5-nat.c: Likewise.
1772 * jv-exp.y: Likewise.
1773 * jv-lang.c: Likewise.
1774 * jv-typeprint.c: Likewise.
1775 * jv-valprint.c: Likewise.
1776 * language.c: Likewise.
1777 * linux-fork.c: Likewise.
1778 * linux-nat.c: Likewise.
1779 * lm32-tdep.c: Likewise.
1780 * m2-exp.y: Likewise.
1781 * m2-typeprint.c: Likewise.
1782 * m32c-tdep.c: Likewise.
1783 * m32r-linux-nat.c: Likewise.
1784 * m32r-linux-tdep.c: Likewise.
1785 * m32r-rom.c: Likewise.
1786 * m32r-tdep.c: Likewise.
1787 * m68hc11-tdep.c: Likewise.
1788 * m68k-tdep.c: Likewise.
1789 * m68kbsd-tdep.c: Likewise.
1790 * m68klinux-nat.c: Likewise.
1791 * m68klinux-tdep.c: Likewise.
1792 * m88k-tdep.c: Likewise.
1793 * machoread.c: Likewise.
1794 * macrocmd.c: Likewise.
1795 * main.c: Likewise.
1796 * mdebugread.c: Likewise.
1797 * mem-break.c: Likewise.
1798 * memattr.c: Likewise.
1799 * memory-map.c: Likewise.
1800 * mep-tdep.c: Likewise.
1801 * mi/mi-cmd-break.c: Likewise.
1802 * mi/mi-cmd-disas.c: Likewise.
1803 * mi/mi-cmd-env.c: Likewise.
1804 * mi/mi-cmd-stack.c: Likewise.
1805 * mi/mi-cmd-var.c: Likewise.
1806 * mi/mi-cmds.c: Likewise.
1807 * mi/mi-console.c: Likewise.
1808 * mi/mi-getopt.c: Likewise.
1809 * mi/mi-interp.c: Likewise.
1810 * mi/mi-main.c: Likewise.
1811 * mi/mi-parse.c: Likewise.
1812 * microblaze-rom.c: Likewise.
1813 * microblaze-tdep.c: Likewise.
1814 * mingw-hdep.c: Likewise.
1815 * minidebug.c: Likewise.
1816 * minsyms.c: Likewise.
1817 * mips-irix-tdep.c: Likewise.
1818 * mips-linux-tdep.c: Likewise.
1819 * mips-tdep.c: Likewise.
1820 * mips64obsd-tdep.c: Likewise.
1821 * mipsnbsd-tdep.c: Likewise.
1822 * mipsread.c: Likewise.
1823 * mn10300-linux-tdep.c: Likewise.
1824 * mn10300-tdep.c: Likewise.
1825 * monitor.c: Likewise.
1826 * moxie-tdep.c: Likewise.
1827 * mt-tdep.c: Likewise.
1828 * nat/linux-btrace.c: Likewise.
1829 * nat/linux-osdata.c: Likewise.
1830 * nat/linux-procfs.c: Likewise.
1831 * nat/linux-ptrace.c: Likewise.
1832 * nat/linux-waitpid.c: Likewise.
1833 * nbsd-tdep.c: Likewise.
1834 * nios2-linux-tdep.c: Likewise.
1835 * nto-procfs.c: Likewise.
1836 * nto-tdep.c: Likewise.
1837 * objc-lang.c: Likewise.
1838 * objfiles.c: Likewise.
1839 * opencl-lang.c: Likewise.
1840 * osabi.c: Likewise.
1841 * osdata.c: Likewise.
1842 * p-exp.y: Likewise.
1843 * p-lang.c: Likewise.
1844 * p-typeprint.c: Likewise.
1845 * parse.c: Likewise.
1846 * posix-hdep.c: Likewise.
1847 * ppc-linux-nat.c: Likewise.
1848 * ppc-sysv-tdep.c: Likewise.
1849 * ppcfbsd-tdep.c: Likewise.
1850 * ppcnbsd-tdep.c: Likewise.
1851 * ppcobsd-tdep.c: Likewise.
1852 * printcmd.c: Likewise.
1853 * procfs.c: Likewise.
1854 * prologue-value.c: Likewise.
1855 * python/py-auto-load.c: Likewise.
1856 * python/py-gdb-readline.c: Likewise.
1857 * ravenscar-thread.c: Likewise.
1858 * regcache.c: Likewise.
1859 * registry.c: Likewise.
1860 * remote-fileio.c: Likewise.
1861 * remote-m32r-sdi.c: Likewise.
1862 * remote-mips.c: Likewise.
1863 * remote-notif.c: Likewise.
1864 * remote-sim.c: Likewise.
1865 * remote.c: Likewise.
1866 * reverse.c: Likewise.
1867 * rs6000-aix-tdep.c: Likewise.
1868 * ser-base.c: Likewise.
1869 * ser-go32.c: Likewise.
1870 * ser-mingw.c: Likewise.
1871 * ser-pipe.c: Likewise.
1872 * ser-tcp.c: Likewise.
1873 * ser-unix.c: Likewise.
1874 * serial.c: Likewise.
1875 * sh-tdep.c: Likewise.
1876 * sh64-tdep.c: Likewise.
1877 * shnbsd-tdep.c: Likewise.
1878 * skip.c: Likewise.
1879 * sol-thread.c: Likewise.
1880 * solib-dsbt.c: Likewise.
1881 * solib-frv.c: Likewise.
1882 * solib-osf.c: Likewise.
1883 * solib-som.c: Likewise.
1884 * solib-spu.c: Likewise.
1885 * solib-target.c: Likewise.
1886 * solib.c: Likewise.
1887 * somread.c: Likewise.
1888 * source.c: Likewise.
1889 * sparc-nat.c: Likewise.
1890 * sparc-sol2-tdep.c: Likewise.
1891 * sparc-tdep.c: Likewise.
1892 * sparc64-tdep.c: Likewise.
1893 * sparc64fbsd-tdep.c: Likewise.
1894 * sparc64nbsd-tdep.c: Likewise.
1895 * sparcnbsd-tdep.c: Likewise.
1896 * spu-linux-nat.c: Likewise.
1897 * spu-multiarch.c: Likewise.
1898 * spu-tdep.c: Likewise.
1899 * stabsread.c: Likewise.
1900 * stack.c: Likewise.
1901 * std-regs.c: Likewise.
1902 * symfile.c: Likewise.
1903 * symmisc.c: Likewise.
1904 * symtab.c: Likewise.
1905 * target.c: Likewise.
1906 * thread.c: Likewise.
1907 * tilegx-linux-nat.c: Likewise.
1908 * tilegx-tdep.c: Likewise.
1909 * top.c: Likewise.
1910 * tracepoint.c: Likewise.
1911 * tui/tui-command.c: Likewise.
1912 * tui/tui-data.c: Likewise.
1913 * tui/tui-disasm.c: Likewise.
1914 * tui/tui-file.c: Likewise.
1915 * tui/tui-layout.c: Likewise.
1916 * tui/tui-out.c: Likewise.
1917 * tui/tui-regs.c: Likewise.
1918 * tui/tui-source.c: Likewise.
1919 * tui/tui-stack.c: Likewise.
1920 * tui/tui-win.c: Likewise.
1921 * tui/tui-windata.c: Likewise.
1922 * tui/tui-winsource.c: Likewise.
1923 * typeprint.c: Likewise.
1924 * ui-file.c: Likewise.
1925 * ui-out.c: Likewise.
1926 * user-regs.c: Likewise.
1927 * utils.c: Likewise.
1928 * v850-tdep.c: Likewise.
1929 * valarith.c: Likewise.
1930 * valops.c: Likewise.
1931 * valprint.c: Likewise.
1932 * value.c: Likewise.
1933 * varobj.c: Likewise.
1934 * vax-tdep.c: Likewise.
1935 * vaxnbsd-tdep.c: Likewise.
1936 * vaxobsd-tdep.c: Likewise.
1937 * windows-nat.c: Likewise.
1938 * xcoffread.c: Likewise.
1939 * xml-support.c: Likewise.
1940 * xstormy16-tdep.c: Likewise.
1941 * xtensa-linux-nat.c: Likewise.
1942
dccbb609
GB
19432014-08-07 Gary Benson <gbenson@redhat.com>
1944
1945 * common/common-defs.h: Include gdb_assert.h.
1946 * aarch64-tdep.c: Do not include gdb_assert.h.
1947 * addrmap.c: Likewise.
1948 * aix-thread.c: Likewise.
1949 * alpha-linux-tdep.c: Likewise.
1950 * alpha-mdebug-tdep.c: Likewise.
1951 * alphanbsd-tdep.c: Likewise.
1952 * amd64-nat.c: Likewise.
1953 * amd64-tdep.c: Likewise.
1954 * amd64bsd-nat.c: Likewise.
1955 * amd64fbsd-nat.c: Likewise.
1956 * amd64fbsd-tdep.c: Likewise.
1957 * amd64nbsd-nat.c: Likewise.
1958 * amd64nbsd-tdep.c: Likewise.
1959 * amd64obsd-nat.c: Likewise.
1960 * amd64obsd-tdep.c: Likewise.
1961 * arch-utils.c: Likewise.
1962 * arm-tdep.c: Likewise.
1963 * armbsd-tdep.c: Likewise.
1964 * auxv.c: Likewise.
1965 * bcache.c: Likewise.
1966 * bfin-tdep.c: Likewise.
1967 * blockframe.c: Likewise.
1968 * breakpoint.c: Likewise.
1969 * bsd-kvm.c: Likewise.
1970 * bsd-uthread.c: Likewise.
1971 * buildsym.c: Likewise.
1972 * c-exp.y: Likewise.
1973 * c-lang.c: Likewise.
1974 * charset.c: Likewise.
1975 * cleanups.c: Likewise.
1976 * cli-out.c: Likewise.
1977 * cli/cli-decode.c: Likewise.
1978 * cli/cli-dump.c: Likewise.
1979 * cli/cli-logging.c: Likewise.
1980 * cli/cli-script.c: Likewise.
1981 * cli/cli-utils.c: Likewise.
1982 * coffread.c: Likewise.
1983 * common/common-utils.c: Likewise.
1984 * common/queue.h: Likewise.
1985 * common/signals.c: Likewise.
1986 * common/vec.h: Likewise.
1987 * complaints.c: Likewise.
1988 * completer.c: Likewise.
1989 * corelow.c: Likewise.
1990 * cp-abi.c: Likewise.
1991 * cp-name-parser.y: Likewise.
1992 * cp-namespace.c: Likewise.
1993 * cp-support.c: Likewise.
1994 * cris-tdep.c: Likewise.
1995 * dbxread.c: Likewise.
1996 * dictionary.c: Likewise.
1997 * doublest.c: Likewise.
1998 * dsrec.c: Likewise.
1999 * dummy-frame.c: Likewise.
2000 * dwarf2-frame-tailcall.c: Likewise.
2001 * dwarf2-frame.c: Likewise.
2002 * dwarf2expr.c: Likewise.
2003 * dwarf2loc.c: Likewise.
2004 * dwarf2read.c: Likewise.
2005 * eval.c: Likewise.
2006 * event-loop.c: Likewise.
2007 * exceptions.c: Likewise.
2008 * expprint.c: Likewise.
2009 * f-valprint.c: Likewise.
2010 * fbsd-nat.c: Likewise.
2011 * findvar.c: Likewise.
2012 * frame-unwind.c: Likewise.
2013 * frame.c: Likewise.
2014 * frv-tdep.c: Likewise.
2015 * gcore.c: Likewise.
2016 * gdb-dlfcn.c: Likewise.
2017 * gdb_bfd.c: Likewise.
2018 * gdbarch.c: Likewise.
2019 * gdbarch.sh: Likewise.
2020 * gdbtypes.c: Likewise.
2021 * gnu-nat.c: Likewise.
2022 * gnu-v3-abi.c: Likewise.
2023 * go-lang.c: Likewise.
2024 * guile/scm-exception.c: Likewise.
2025 * guile/scm-gsmob.c: Likewise.
2026 * guile/scm-lazy-string.c: Likewise.
2027 * guile/scm-math.c: Likewise.
2028 * guile/scm-pretty-print.c: Likewise.
2029 * guile/scm-safe-call.c: Likewise.
2030 * guile/scm-utils.c: Likewise.
2031 * guile/scm-value.c: Likewise.
2032 * h8300-tdep.c: Likewise.
2033 * hppa-hpux-nat.c: Likewise.
2034 * hppa-tdep.c: Likewise.
2035 * hppanbsd-tdep.c: Likewise.
2036 * hppaobsd-tdep.c: Likewise.
2037 * i386-darwin-nat.c: Likewise.
2038 * i386-darwin-tdep.c: Likewise.
2039 * i386-nto-tdep.c: Likewise.
2040 * i386-tdep.c: Likewise.
2041 * i386bsd-nat.c: Likewise.
2042 * i386fbsd-tdep.c: Likewise.
2043 * i386gnu-nat.c: Likewise.
2044 * i386nbsd-tdep.c: Likewise.
2045 * i386obsd-tdep.c: Likewise.
2046 * i387-tdep.c: Likewise.
2047 * ia64-libunwind-tdep.c: Likewise.
2048 * ia64-tdep.c: Likewise.
2049 * inf-ptrace.c: Likewise.
2050 * inf-ttrace.c: Likewise.
2051 * infcall.c: Likewise.
2052 * infcmd.c: Likewise.
2053 * infrun.c: Likewise.
2054 * inline-frame.c: Likewise.
2055 * interps.c: Likewise.
2056 * jv-lang.c: Likewise.
2057 * jv-typeprint.c: Likewise.
2058 * linux-fork.c: Likewise.
2059 * linux-nat.c: Likewise.
2060 * linux-thread-db.c: Likewise.
2061 * m32c-tdep.c: Likewise.
2062 * m32r-linux-nat.c: Likewise.
2063 * m32r-tdep.c: Likewise.
2064 * m68k-tdep.c: Likewise.
2065 * m68kbsd-nat.c: Likewise.
2066 * m68kbsd-tdep.c: Likewise.
2067 * m88k-tdep.c: Likewise.
2068 * machoread.c: Likewise.
2069 * macroexp.c: Likewise.
2070 * macrotab.c: Likewise.
2071 * maint.c: Likewise.
2072 * mdebugread.c: Likewise.
2073 * memory-map.c: Likewise.
2074 * mep-tdep.c: Likewise.
2075 * mi/mi-common.c: Likewise.
2076 * microblaze-tdep.c: Likewise.
2077 * mingw-hdep.c: Likewise.
2078 * mips-linux-nat.c: Likewise.
2079 * mips-linux-tdep.c: Likewise.
2080 * mips-tdep.c: Likewise.
2081 * mips64obsd-tdep.c: Likewise.
2082 * mipsnbsd-tdep.c: Likewise.
2083 * mn10300-linux-tdep.c: Likewise.
2084 * mn10300-tdep.c: Likewise.
2085 * moxie-tdep.c: Likewise.
2086 * mt-tdep.c: Likewise.
2087 * nat/linux-btrace.c: Likewise.
2088 * nat/linux-osdata.c: Likewise.
2089 * nat/linux-ptrace.c: Likewise.
2090 * nat/mips-linux-watch.c: Likewise.
2091 * nios2-linux-tdep.c: Likewise.
2092 * nios2-tdep.c: Likewise.
2093 * objc-lang.c: Likewise.
2094 * objfiles.c: Likewise.
2095 * obsd-nat.c: Likewise.
2096 * opencl-lang.c: Likewise.
2097 * osabi.c: Likewise.
2098 * parse.c: Likewise.
2099 * ppc-linux-nat.c: Likewise.
2100 * ppc-sysv-tdep.c: Likewise.
2101 * ppcfbsd-nat.c: Likewise.
2102 * ppcfbsd-tdep.c: Likewise.
2103 * ppcnbsd-nat.c: Likewise.
2104 * ppcnbsd-tdep.c: Likewise.
2105 * ppcobsd-nat.c: Likewise.
2106 * ppcobsd-tdep.c: Likewise.
2107 * printcmd.c: Likewise.
2108 * procfs.c: Likewise.
2109 * prologue-value.c: Likewise.
2110 * psymtab.c: Likewise.
2111 * python/py-lazy-string.c: Likewise.
2112 * python/py-value.c: Likewise.
2113 * regcache.c: Likewise.
2114 * reggroups.c: Likewise.
2115 * registry.c: Likewise.
2116 * remote-sim.c: Likewise.
2117 * remote.c: Likewise.
2118 * rs6000-aix-tdep.c: Likewise.
2119 * rs6000-tdep.c: Likewise.
2120 * s390-linux-tdep.c: Likewise.
2121 * score-tdep.c: Likewise.
2122 * ser-base.c: Likewise.
2123 * ser-mingw.c: Likewise.
2124 * sh-tdep.c: Likewise.
2125 * sh64-tdep.c: Likewise.
2126 * solib-darwin.c: Likewise.
2127 * solib-spu.c: Likewise.
2128 * solib-svr4.c: Likewise.
2129 * source.c: Likewise.
2130 * sparc-nat.c: Likewise.
2131 * sparc-sol2-tdep.c: Likewise.
2132 * sparc-tdep.c: Likewise.
2133 * sparc64-sol2-tdep.c: Likewise.
2134 * sparc64-tdep.c: Likewise.
2135 * sparc64fbsd-tdep.c: Likewise.
2136 * sparc64nbsd-tdep.c: Likewise.
2137 * sparc64obsd-tdep.c: Likewise.
2138 * sparcnbsd-tdep.c: Likewise.
2139 * sparcobsd-tdep.c: Likewise.
2140 * spu-multiarch.c: Likewise.
2141 * spu-tdep.c: Likewise.
2142 * stabsread.c: Likewise.
2143 * stack.c: Likewise.
2144 * symfile.c: Likewise.
2145 * symtab.c: Likewise.
2146 * target-descriptions.c: Likewise.
2147 * target-memory.c: Likewise.
2148 * target.c: Likewise.
2149 * tic6x-linux-tdep.c: Likewise.
2150 * tic6x-tdep.c: Likewise.
2151 * tilegx-linux-nat.c: Likewise.
2152 * tilegx-tdep.c: Likewise.
2153 * top.c: Likewise.
2154 * tramp-frame.c: Likewise.
2155 * tui/tui-out.c: Likewise.
2156 * tui/tui-winsource.c: Likewise.
2157 * ui-out.c: Likewise.
2158 * user-regs.c: Likewise.
2159 * utils.c: Likewise.
2160 * v850-tdep.c: Likewise.
2161 * valops.c: Likewise.
2162 * value.c: Likewise.
2163 * varobj.c: Likewise.
2164 * vax-nat.c: Likewise.
2165 * xml-syscall.c: Likewise.
2166 * xml-tdesc.c: Likewise.
2167 * xstormy16-tdep.c: Likewise.
2168 * xtensa-linux-nat.c: Likewise.
2169 * xtensa-tdep.c: Likewise.
2170
e76df0d0
GB
21712014-08-07 Gary Benson <gbenson@redhat.com>
2172
2173 * common/common-defs.h: Include common-utils.h.
2174 * defs.h: Do not include common-utils.h.
2175 * common/gdb_assert.h: Likewise.
2176 * darwin-nat.h: Likewise.
2177 * nat/linux-btrace.c: Likewise.
2178 * target/waitstatus.h: Likewise.
2179
4cb9c816
GB
21802014-08-07 Gary Benson <gbenson@redhat.com>
2181
2182 * common/common-defs.h: Include ptid.h.
2183 * defs.h: Do not include ptid.h.
2184 * inferior.h: Likewise.
2185 * infrun.h: Likewise.
2186 * nat/linux-btrace.h: Likewise.
2187 * nat/linux-osdata.h: Likewise.
2188 * target/waitstatus.h: Likewise.
2189
3995eeee
GB
21902014-08-07 Gary Benson <gbenson@redhat.com>
2191
2192 * common/common-defs.h: Include gdb_locale.h.
2193 * defs.h: Do not include gdb_locale.h.
2194
cb9f1a9b
GB
21952014-08-07 Gary Benson <gbenson@redhat.com>
2196
2197 * common/common-defs.h: Include gdb/signals.h.
2198 * defs.h: Do not include gdb/signals.h.
2199
a5fceff8
GB
22002014-08-07 Gary Benson <gbenson@redhat.com>
2201
2202 * common/common-defs.h: Include pathmax.h.
2203 * defs.h: Do not include pathmax.h.
2204
b9391142
GB
22052014-08-07 Gary Benson <gbenson@redhat.com>
2206
2207 * common/common-defs.h: Include libiberty.h.
2208 * defs.h: Do not include libiberty.h.
2209 * common/queue.h: Likewise.
2210 * cp-name-parser.y: Likewise.
2211 * mi/mi-cmd-catch.c: Likewise.
2212 * python/python.c: Likewise.
2213
0e443c87
GB
22142014-08-07 Gary Benson <gbenson@redhat.com>
2215
2216 * common/common-defs.h: Include ansidecl.h.
2217 * defs.h: Do not include ansidecl.h.
2218 * common/buffer.h: Likewise.
2219 * common/common-utils.h: Likewise.
2220
8ebb3f56
GB
22212014-08-07 Gary Benson <gbenson@redhat.com>
2222
2223 * common/common-defs.h: Include stddef.h.
2224 * defs.h: Do not include stddef.h.
2225 * common/common-utils.h: Likewise.
2226 * amd64fbsd-nat.c: Likewise.
2227 * bcache.c: Likewise.
2228 * charset.c: Likewise.
2229 * common/buffer.h: Likewise.
2230 * common/vec.h: Likewise.
2231 * i386bsd-nat.c: Likewise.
2232 * nat/linux-btrace.h: Likewise.
2233 * ppcfbsd-nat.c: Likewise.
2234 * ppcnbsd-tdep.h: Likewise.
2235 * ppcobsd-nat.c: Likewise.
2236 * ppcobsd-tdep.h: Likewise.
2237 * python/py-gdb-readline.c: Likewise.
2238
8980bdf6
GB
22392014-08-07 Gary Benson <gbenson@redhat.com>
2240
2241 * common/common-defs.h: Include stdarg.h.
2242 * defs.h: Do not include stdarg.h.
2243 * ada-lang.c: Likewise.
2244 * common/common-utils.h: Likewise.
2245 * guile/scm-string.c: Likewise.
2246 * guile/scm-utils.c: Likewise.
2247 * m32c-tdep.c: Likewise.
2248
d7096f71
GB
22492014-08-07 Gary Benson <gbenson@redhat.com>
2250
2251 * common/common-defs.h: Include stdlib.h.
2252 * defs.h: Do not include stdlib.h.
2253 * addrmap.c: Likewise.
2254 * bcache.c: Likewise.
2255 * common/buffer.c: Likewise.
2256 * common/common-utils.c: Likewise.
2257 * cp-name-parser.y: Likewise.
2258 * go32-nat.c: Likewise.
2259 * mn10300-linux-tdep.c: Likewise.
2260 * nat/linux-osdata.c: Likewise.
2261 * tui/tui.c: Likewise.
2262 * windows-nat.c: Likewise.
2263
d02f550d
GB
22642014-08-07 Gary Benson <gbenson@redhat.com>
2265
2266 * common/common-defs.h: Include stdio.h.
2267 * defs.h: Do not include stdio.h.
2268 * ada-lang.c: Likewise.
2269 * common/buffer.c: Likewise.
2270 * common/common-utils.c: Likewise.
2271 * cp-name-parser.y: Likewise.
2272 * gnu-nat.c: Likewise.
2273 * go32-nat.c: Likewise.
2274 * i386gnu-nat.c: Likewise.
2275 * proc-api.c: Likewise.
2276 * proc-events.c: Likewise.
2277 * proc-flags.c: Likewise.
2278 * proc-why.c: Likewise.
2279 * python/python-internal.h: Likewise.
2280 * target-memory.c: Likewise.
2281 * tui/tui-io.c: Likewise.
2282 * tui/tui.c: Likewise.
2283
b6d7a4bf
SM
22842014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2285
2286 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2287 (scan_dyntag_auxv): Same.
2288
af19829b
YQ
22892014-08-06 Yao Qi <yao@codesourcery.com>
2290
2291 * amd64-linux-nat.c: Remove duplicated include
2292 "x86-linux-nat.h".
2293 * i386-linux-nat.c: Likewise.
2294
8e07a239
YQ
22952014-08-06 Yao Qi <yao@codesourcery.com>
2296
2297 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2298 operand" with "Special opcode" in comments.
2299
7bfe8241
GB
23002014-08-05 Gary Benson <gbenson@redhat.com>
2301
2302 * interps.c (initialize_interps): Remove prototype.
2303 (interpreter_initialized): Remove static global.
2304 (interp_add): Do not call initialize_interps.
2305 (initialize_interps): Remove function.
2306
d6c95504
GB
23072014-08-05 Gary Benson <gbenson@redhat.com>
2308
2309 * utils.c (vwarning): Remove spurious va_end.
2310
241fd515
AM
23112014-08-05 Alan Modra <amodra@gmail.com>
2312
2313 * charset.c (convert_between_encodings): Cast result of obstack_base.
2314 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2315 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2316 (read_unwind_info): Use size_t for some locals.
2317 * jit.c (finalize_symtab): Likewise.
2318 * utils.c (hashtab_obstack_allocate): Likewise.
2319 * symmisc.c (print_objfile_statistics): Update format strings.
2320
dc304a94
JK
23212014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2322
2323 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2324 (Changes in GDB 7.8): ... here.
2325
3cecbbbe
TT
23262014-08-04 Tom Tromey <tromey@redhat.com>
2327
2328 * target.c (set_targetdebug): New function.
2329 (initialize_targets): Pass set_targetdebug when creating "set
2330 debug target".
2331
6908c509
JB
23322014-08-01 Joel Brobecker <brobecker@adacore.com>
2333
2334 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2335 if detecting a variable-sized field that is not the last field.
2336 Fix struct type length computation.
2337
53e8f97d
JB
23382014-08-01 Joel Brobecker <brobecker@adacore.com>
2339
2340 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2341 Add debug trace.
2342
e068c55d
JB
23432014-08-01 Joel Brobecker <brobecker@adacore.com>
2344
2345 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2346 Remove "+ 8" offset in computation of CHAIN_VMA.
2347
4d4ca2a1
DE
23482014-07-31 Doug Evans <dje@google.com>
2349
2350 * inflow.c (child_terminal_inferior): Add comment.
2351 (child_terminal_ours_for_output): Add comment.
2352 (child_terminal_ours): Add comment.
2353 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2354 (linux_nat_terminal_ours): Add comment.
2355
462f517e
GB
23562014-07-31 Gary Benson <gbenson@redhat.com>
2357
2358 * common/btrace-common.h: Do not include defs.h or server.h.
2359 * nat/mips-linux-watch.h: Likewise.
2360 * gdb-dlfcn.h: Do not include defs.h.
2361 * tracefile.h: Likewise.
2362
74228e77
RM
23632014-07-30 Roland McGrath <mcgrathr@google.com>
2364
2365 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2366
014f9477
TT
23672014-07-30 Tom Tromey <tromey@redhat.com>
2368
2369 * bsd-kvm.c (bsd_kvm_open): Constify.
2370 * corelow.c (core_open): Constify.
2371 * ctf.c (ctf_open): Constify.
2372 * dbug-rom.c (dbug_open): Constify.
2373 * exec.c (exec_open): Constify.
2374 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2375 * microblaze-rom.c (picobug_open): Constify.
2376 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2377 Constify.
2378 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2379 * record-btrace.c (record_btrace_open): Constify.
2380 * record-full.c (record_full_core_open_1, record_full_open_1)
2381 (record_full_open): Constify.
2382 * remote-m32r-sdi.c (m32r_open): Constify.
2383 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2384 (rockhopper_open, lsi_open): Constify.
2385 * remote-sim.c (gdbsim_open): Constify.
2386 * remote.c (remote_open, extended_remote_open, remote_open_1):
2387 Constify.
2388 * target.h (struct target_ops) <to_open>: Make "arg" const.
2389 * tracefile-tfile.c (tfile_open): Constify.
2390
e799154c
TT
23912014-07-30 Tom Tromey <tromey@redhat.com>
2392
2393 * breakpoint.c (map_breakpoint_numbers): Update.
2394 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2395 (get_number_const): New function.
2396 (get_number): Rewrite using get_number_const.
2397 (init_number_or_range): Make "string" const.
2398 (number_is_in_list): Make "list" const.
2399 * cli/cli-utils.h (get_number_const): Declare.
2400 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2401 (init_number_or_range, number_is_in_list): Update.
2402 * printcmd.c (map_display_numbers): Update.
2403 * value.c (value_from_history_ref): Constify.
2404 * value.h (value_from_history_ref): Update.
2405
5f08566b
TT
24062014-07-30 Tom Tromey <tromey@redhat.com>
2407
2408 * corefile.c (hook_type, call_extra_exec_file_hooks)
2409 (specify_exec_file_hook): Constify.
2410 * exec.c (exec_file_attach): Make "filename" const.
2411 * gdbcore.h (deprecated_exec_file_display_hook)
2412 (specify_exec_file_hook, exec_file_attach): Constify.
2413 * main.c (captured_main): Use catch_command_errors_const.
2414
8981c758
TT
24152014-07-30 Tom Tromey <tromey@redhat.com>
2416
2417 * target.c (open_target): New function.
2418 (add_target_with_completer, add_deprecated_target_alias): Use
2419 set_cmd_sfunc, set_cmd_context.
2420 (debug_to_open): Remove.
2421 (setup_target_debug): Update.
2422
a1c7835a
YQ
24232014-07-30 Yao Qi <yao@codesourcery.com>
2424
2425 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2426 comments.
2427 * parse.c (exp_iterate): Update comments.
2428
976411d6
GB
24292014-07-30 Gary Benson <gbenson@redhat.com>
2430
2431 * common/common-defs.h: New file.
2432 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2433 * defs.h: Include common-defs.h.
2434 Do not include config.h or build-gnulib/config.h.
2435
5d4848a4
GB
24362014-07-30 Gary Benson <gbenson@redhat.com>
2437
2438 * common/common-utils.h: Do not include config.h.
2439 * nat/linux-btrace.h: Likewise.
2440
d41f6d8e
GB
24412014-07-30 Gary Benson <gbenson@redhat.com>
2442
2443 * btrace.c: Include defs.h.
2444 * common/ptid.c: Include defs.h or server.h as appropriate.
2445 * nat/mips-linux-watch.c: Likewise.
2446
84202f9c
TT
24472014-07-29 Tom Tromey <tromey@redhat.com>
2448
2449 * target.c (target_is_pushed): Simplify.
2450
2530441c
JB
24512014-07-29 Joel Brobecker <brobecker@adacore.com>
2452
2453 GDB 7.8 released.
2454
7e09a223
YQ
24552014-07-29 Yao Qi <yao@codesourcery.com>
2456
2457 PR gdb/17206
2458 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2459
7ebdbe92
DE
24602014-07-28 Doug Evans <xdje42@gmail.com>
2461
2462 PR guile/17203
2463 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2464 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2465 parameters.
2466
f347ffc9
WN
24672014-07-28 Will Newton <will.newton@linaro.org>
2468
2469 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2470 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2471 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2472 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2473 (THUMB2_EABI_SYSCALL): Likewise.
2474 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2475 struct tramp_frame.
2476 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2477 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2478
37c5f1f7
DE
24792014-07-27 Doug Evans <xdje42@gmail.com>
2480
2481 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2482
0c3abbc7
DE
24832014-07-27 Doug Evans <xdje42@gmail.com>
2484
2485 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2486
e76c5d17
DE
24872014-07-26 Ludovic Courtès <ludo@gnu.org>
2488 Doug Evans <xdje42@gmail.com>
2489
2490 PR guile/17146
2491 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2492 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2493 * configure.ac: Try to use guild to compile an scm file, if it fails
2494 then disable guile support.
2495 * configure: Regenerate.
2496 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2497 GUILE_FILE_LIST.
2498 (GUILE_COMPILED_FILES): New variable.
2499 (GUILE_FILES) Update.
2500 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2501 (stamp-guile): Compile scm files.
2502 * guile/guile.c (boot_guile_support): New function.
2503 (standard_throw_args_p): New function.
2504 (print_standard_throw_error, print_throw_error): New functions.
2505 (handle_boot_error): New function.
2506 (initialize_scheme_side): Rewrite to call boot_guile_support.
2507 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2508 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2509
186fcde0
DE
25102014-07-26 Ludovic Courtès <ludo@gnu.org>
2511 Doug Evans <xdje42@gmail.com>
2512
2513 PR guile/17146
2514 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2515 * guile/lib/gdb/support.scm: New file.
2516 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2517 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2518 All uses updated.
2519 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2520 All uses updated.
2521 (%assert-type): Ditto, and renamed to assert-type.
2522 (%exception-print-style): Delete.
2523
4df42755
DE
25242014-07-26 Doug Evans <xdje42@gmail.com>
2525
2526 PR build/17105
2527 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2528 * configure: Regenerate.
2529 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2530 PYTHON_FILES.
2531 (PYTHON_FILES): New variable.
2532 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2533 (GUILE_FILES): New variable.
2534 (stamp-python, install-python, uninstall-python): Handle empty
2535 file list.
2536 (stamp-guile, install-guile, uninstall-guile): Ditto.
2537
ee7333ae
DE
25382014-07-26 Doug Evans <xdje42@gmail.com>
2539
2540 PR guile/17177
2541 * guile/lib/gdb.scm (pretty-printers): Export.
2542 (set-pretty-printers!): Export.
2543 * guile/lib/gdb/printing.scm (gdb module): Update.
2544 (prepend-pretty-printer!, append-pretty-printer!): Update.
2545 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2546 (pretty_printer_list_var): Delete.
2547 (pretty_printer_list): New static global.
2548 (gdbscm_pretty_printers): New function.
2549 (gdbscm_set_pretty_printers_x): New function.
2550 (ppscm_find_pretty_printer_from_gdb): Update.
2551 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2552 (gdbscm_initialize_pretty_printers): Update.
2553
74edf516
DE
25542014-07-26 Doug Evans <xdje42@gmail.com>
2555
2556 PR 17185
2557 * configure.ac: Add check for header gc/gc.h.
2558 Add check for function setenv.
2559 * configure: Regenerate.
2560 * config.in: Regenerate.
2561 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2562
d54398a7
MR
25632014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2564
2565 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2566 variation in gdbarch matching.
2567
ab16fce8
TT
25682014-07-25 Tom Tromey <tromey@redhat.com>
2569
2570 * exec.c (using_exec_ops): Remove.
2571 (exec_close_1): Update. Remove extraneous block, reindent.
2572 (add_target_sections): Use target_is_pushed.
2573
88056fbb
PA
25742014-07-25 Pedro Alves <palves@redhat.com>
2575
2576 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2577 * monitor.c (monitor_create_inferior): Likewise.
2578 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2579 * remote-sim.c (gdbsim_create_inferior): Likewise.
2580 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2581 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2582 * windows-nat.c (do_initial_windows_stuff): Likewise.
2583
70509625
PA
25842014-07-25 Pedro Alves <palves@redhat.com>
2585
2586 * NEWS: Mention signal passing and "signal" command changes.
2587 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2588 comment.
2589 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2590 call.
2591 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2592 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2593 (jump_command): Adjust clear_proceed_status call.
2594 (signal_command): Warn if other thread that are resumed have
2595 signals that will be delivered. Adjust clear_proceed_status call.
2596 (until_next_command, finish_command)
2597 (proceed_after_attach_callback, attach_command_post_wait)
2598 (attach_command): Adjust clear_proceed_status call.
2599 * infrun.c (proceed_after_vfork_done): Likewise.
2600 (proceed_after_attach_callback): Adjust comment.
2601 (clear_proceed_status_thread): Clear stop_signal if not in pass
2602 state.
2603 (clear_proceed_status_callback): Delete.
2604 (clear_proceed_status): New 'step' parameter. Only clear the
2605 proceed status of threads the command being prepared is about to
2606 resume.
2607 (proceed): If passed in an explicit signal, override stop_signal
2608 with it. Don't pass the last stop signal to the thread we're
2609 resuming.
2610 (init_wait_for_inferior): Adjust clear_proceed_status call.
2611 (switch_back_to_stepped_thread): Clear the signal if it should not
2612 be passed.
2613 * infrun.h (clear_proceed_status): New 'step' parameter.
2614 (user_visible_resume_ptid): Add comment.
2615 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2616 signal is in pass state.
2617 * remote.c (append_pending_thread_resumptions): Likewise.
2618 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2619
d8be2939
TT
26202014-07-25 Tom Tromey <tromey@redhat.com>
2621
2622 * target.h (target_stopped_data_address)
2623 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2624 parentheses.
2625
7d0d9d2b
PL
26262014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2627
2628 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2629 comments.
2630 (avr_pointer_to_address): Likewise.
2631
e9e7f724
TT
26322014-07-24 Tom Tromey <tromey@redhat.com>
2633
2634 * monitor.c (compile_pattern): Update.
2635 * target.h (struct target_ops) <to_shortname, to_longname,
2636 to_doc>: Now const.
2637
1947513d
TT
26382014-07-24 Tom Tromey <tromey@redhat.com>
2639
2640 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2641 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2642 (add_info_alias, add_com): Make "doc" const.
2643 (print_doc_line): Make "str" const.
2644 (delete_cmd): Update.
2645 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2646 (print_doc_line): Update.
2647 * cli/cli-script.c (document_command): Update.
2648 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2649 (add_com, add_info, add_info_alias): Update.
2650 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2651 * python/py-cmd.c (cmdpy_destroyer): Update.
2652
64e61d29
TT
26532014-07-24 Tom Tromey <tromey@redhat.com>
2654
2655 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2656 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2657 (help_cmd_list): Constify.
2658 (lookup_cmd): Update.
2659 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2660 const.
2661 (help_cmd_list, apropos_cmd): Update.
2662 * cli/cli-script.c (show_user): Update.
2663 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2664 * cli/cli-setshow.h (cmd_show_list): Update.
2665 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2666 (cmd_show_list): Update.
2667 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2668 * python/py-cmd.c (cmdpy_destroyer): Update.
2669
429e55ea
TT
26702014-07-24 Tom Tromey <tromey@redhat.com>
2671
2672 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2673 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2674 const.
2675 * command.h (deprecate_cmd): Update.
2676 * maint.c (maintenance_do_deprecate): Add casts.
2677
64669f3b
TT
26782014-07-24 Tom Tromey <tromey@redhat.com>
2679
2680 * cli/cli-decode.c (help_cmd): Make parameter "const".
2681 * cli/cli-decode.h (help_cmd): Update.
2682
d3d3328b
TT
26832014-07-24 Tom Tromey <tromey@redhat.com>
2684
2685 * stack.c (up_silently_base, down_silently_base): Make argument
2686 const.
2687
414842dc
TT
26882014-07-24 Tom Tromey <tromey@redhat.com>
2689
2690 * solib.c (solib_add): Make "pattern" const.
2691 * solib.h (solib_add): Update.
2692
baa336ce
TT
26932014-07-24 Tom Tromey <tromey@redhat.com>
2694
2695 * remote.c (remote_serial_open, print_packet, putpkt)
2696 (putpkt_binary): Constify.
2697 * remote.h (putpkt): Update.
2698
5a19e2d0
TT
26992014-07-24 Tom Tromey <tromey@redhat.com>
2700
2701 * monitor.c (monitor_open): Make "args" const.
2702 * monitor.h (monitor_open): Update.
2703
fc4baa5e
TT
27042014-07-24 Tom Tromey <tromey@redhat.com>
2705
2706 * maint.c (match_bfd_flags): Make "string" const.
2707 (print_bfd_section_info): Remove casts.
2708 (print_objfile_section_info): Make "string" const.
2709
0d5f0dbe
TT
27102014-07-24 Tom Tromey <tromey@redhat.com>
2711
2712 * inf-child.c (inf_child_open_target): Make "arg" const.
2713 * inf-child.h (inf_child_open_target): Update.
2714
41c77899
TT
27152014-07-24 Tom Tromey <tromey@redhat.com>
2716
2717 * environ.c (unset_in_environ): Make "var" const.
2718 * environ.h (unset_in_environ): Update.
2719
93db0d79
TT
27202014-07-24 Tom Tromey <tromey@redhat.com>
2721
2722 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2723 Make "cmd" const.
2724 (scan_filename_with_cleanup): Likewise.
2725 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2726 Make arguments const.
2727 (restore_command): Update.
2728
36d6eb95
PA
27292014-07-24 Pedro Alves <palves@redhat.com>
2730
2731 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2732
8009206a
TT
27332014-07-24 Tom Tromey <tromey@redhat.com>
2734 Gary Benson <gbenson@redhat.com>
2735
2736 * nat/linux-ptrace.c (additional_flags): New global.
2737 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2738 additional_flags; don't check GDBSERVER.
2739 (linux_ptrace_set_additional_flags): New function.
2740 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2741 Declare.
2742 * linux-nat.c (_initialize_linux_nat): Call
2743 linux_ptrace_set_additional_flags.
2744
a7068b60
TT
27452014-07-24 Tom Tromey <tromey@redhat.com>
2746
2747 * make-target-delegates (munge_type, write_debugmethod): New
2748 functions.
2749 (debug_names): New global.
2750 ($TARGET_DEBUG_PRINTER): New global.
2751 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2752 name.
2753 Write debug methods. Generate init_debug_target.
2754 * target-debug.h: New file.
2755 * target-delegates.c: Rebuild.
2756 * target.c: Include target-debug.h.
2757 (debug_target): Hoist definition.
2758 (target_kill, target_get_section_table, target_memory_map)
2759 (target_flash_erase, target_flash_done, target_detach)
2760 (target_disconnect, target_wait, target_resume)
2761 (target_pass_signals, target_program_signals, target_follow_fork)
2762 (target_mourn_inferior, target_search_memory)
2763 (target_thread_address_space, target_close)
2764 (target_find_new_threads, target_core_of_thread)
2765 (target_verify_memory, target_insert_mask_watchpoint)
2766 (target_remove_mask_watchpoint): Remove targetdebug code.
2767 (debug_to_post_attach, debug_to_prepare_to_store)
2768 (debug_to_files_info, debug_to_insert_breakpoint)
2769 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2770 (debug_to_region_ok_for_hw_watchpoint)
2771 (debug_to_can_accel_watchpoint_condition)
2772 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2773 (debug_to_watchpoint_addr_within_range)
2774 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2775 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2776 (debug_to_terminal_init, debug_to_terminal_inferior)
2777 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2778 (debug_to_terminal_save_ours, debug_to_terminal_info)
2779 (debug_to_load, debug_to_post_startup_inferior)
2780 (debug_to_insert_fork_catchpoint)
2781 (debug_to_remove_fork_catchpoint)
2782 (debug_to_insert_vfork_catchpoint)
2783 (debug_to_remove_vfork_catchpoint)
2784 (debug_to_insert_exec_catchpoint)
2785 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2786 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2787 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2788 (setup_target_debug): Call init_debug_target.
2789 * target.h (TARGET_DEBUG_PRINTER): New macro.
2790 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2791 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2792
2c51604d
GB
27932014-07-24 Gary Benson <gbenson@redhat.com>
2794
2795 * exceptions.h (throw_vfatal): Renamed to...
2796 (throw_vquit): New declaration.
2797 (throw_quit): Likewise.
2798 * exceptions.c (throw_vfatal): Renamed to...
2799 (throw_vquit): New function.
2800 (throw_quit): Likewise.
2801 (throw_error): Call throw_verror rather than throw_it.
2802 * utils.h (vfatal): Removed.
2803 (fatal): Likewise.
2804 * utils.c (vfatal): Removed.
2805 (fatal): Likewise.
2806 (internal_verror): Replaced call to fatal with call to throw_quit.
2807 (quit): Replaced calls to fatal with calls to throw_quit.
2808
34211963
ME
28092014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2810
2811 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2812 target_read_code.
2813
a52b4d3e
ME
28142014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2815
2816 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2817 less than zero in conditional expression.
2818
a8bdc56b
TT
28192014-07-23 Tom Tromey <tromey@redhat.com>
2820
2821 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2822 ($INTRO_PART): Don't match whitespace.
2823 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2824 argument matching.
2825 ($METHOD): Add $METHOD_TRAILER.
2826 (trim): Rewrite.
2827 (scan_target_h): New sub.
2828 Change main loop not to collect state.
2829 * target-delegates.c: Rebuild.
2830
91b52240
GB
28312014-07-23 Gary Benson <gbenson@redhat.com>
2832
2833 * cp-support.c (gdb_demangle): Fix build on systems without
2834 sigaltstack.
2835
45326f6f
JK
28362014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2837
2838 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2839 for reference entry value target data value.
2840
e214cf6c
JK
28412014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2842
2843 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2844 value_available_contents_eq.
2845
bddbbedd
PA
28462014-07-22 Pedro Alves <palves@redhat.com>
2847
2848 * value.c (allocate_optimized_out_value): Don't mark value as
2849 non-lazy.
2850
45c71484
JW
28512014-07-22 Jiong Wang <jiong.wang@arm.com>
2852
2853 * MAINTAINERS (Write After Approval): Update my email address.
2854
9597b22a
DE
28552014-07-20 Doug Evans <dje@google.com>
2856
2857 PR server/17147
2858 * remote.c (putpkt_binary): Add text to error message.
2859
91101fe5
YQ
28602014-07-20 Yao Qi <yao@codesourcery.com>
2861
2862 * eval.c: Remove "Chill" from comments.
2863 * gdbtypes.h: Likewise.
2864 * symtab.h: Likewise.
2865
c9402c95
YQ
28662014-07-20 Yao Qi <yao@codesourcery.com>
2867
2868 * std-operator.def: Update comments to TERNOP_SLICE.
2869
ae8fddda
YQ
28702014-07-20 Yao Qi <yao@codesourcery.com>
2871
2872 * std-operator.def: Remove BINOP_RANGE.
2873 * breakpoint.c (watchpoint_exp_is_const): Update.
2874 * expprint.c (dump_subexp_body_standard): Likewise.
2875 * eval.c (init_array_element): Remove dead code.
2876 (evaluate_subexp_standard): Likewise.
2877
9c816640
YQ
28782014-07-20 Yao Qi <yao@codesourcery.com>
2879
2880 * std-operator.def: Remove BINOP_IN.
2881 * breakpoint.c (watchpoint_exp_is_const): Update.
2882 * eval.c (evaluate_subexp_standard): Likewise.
2883 * expprint.c (dump_subexp_body_standard): Likewise.
2884
164224e9
ME
28852014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2886
2887 * microblaze-tdep.c (microblaze_register_names): Add
2888 the rshr and rslr register names.
2889 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2890 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2891 Use of tdesc_numbered_register. Use of
2892 microblaze_register_g_packet_guesses. Use of
2893 tdesc_use_registers. Use of set_gdbarch_register_type.
2894 (microblaze_register_g_packet_guesses): New.
2895 * microblaze-tdep.h (microblaze_reg_num): Add
2896 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2897 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2898 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2899 * features/microblaze-core.xml: New file.
2900 * features/microblaze-stack-protect.xml: New file.
2901 * features/microblaze-with-stack-protect.c: New file.
2902 * features/microblaze-with-stack-protect.xml: New file.
2903 * features/microblaze.xml: New file.
2904 * features/microblaze.c: New file.
2905 * features/Makefile (microblaze-with-stack-protect): Add
2906 microblaze-with-stack-protect microblaze and microblaze-expedite.
2907 * regformats/microblaze-with-stack-protect.dat: New file.
2908 * regformats/microblaze.dat: New file.
2909 * doc/gdb.texinfo (MicroBlaze Features): Added.
2910
e8b2341c
TT
29112014-07-18 Tom Tromey <tromey@redhat.com>
2912
2913 * exec.c (exec_ops): Now static.
2914 * exec.h (exec_ops): Don't declare.
2915
44e89118
TT
29162014-07-18 Tom Tromey <tromey@redhat.com>
2917
2918 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2919 to find_target_beneath.
2920 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2921 find_target_beneath.
2922 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2923
b0ed115f
TT
29242014-07-18 Tom Tromey <tromey@redhat.com>
2925
2926 PR gdb/17130:
2927 * utils.c (quit): Use target_supports_terminal_ours.
2928 * target.h (target_supports_terminal_ours): Declare.
2929 * target.c (target_supports_delete_record): Don't check
2930 to_delete_record against NULL.
2931 (target_supports_terminal_ours): New function.
2932
e75fdfca
TT
29332014-07-18 Tom Tromey <tromey@redhat.com>
2934
2935 PR gdb/17130:
2936 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2937 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2938 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2939 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2940 * windows-nat.c (windows_xfer_partial): Always delegate.
2941 * record-btrace.c (record_btrace_xfer_partial): Simplify
2942 delegation.
2943 (record_btrace_fetch_registers, record_btrace_store_registers)
2944 (record_btrace_prepare_to_store, record_btrace_resume)
2945 (record_btrace_wait, record_btrace_find_new_threads)
2946 (record_btrace_thread_alive): Likewise.
2947 * procfs.c (procfs_xfer_partial): Always delegate.
2948 * corelow.c (core_xfer_partial): Always delegate.
2949 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2950
83814951
TT
29512014-07-18 Tom Tromey <tromey@redhat.com>
2952
2953 * exec.c (exec_make_note_section): Move earlier.
2954
b8b8facf
DE
29552014-07-17 Doug Evans <dje@google.com>
2956
74b49205 2957 PR gdb/17170
b8b8facf
DE
2958 * maint.c (count_symtabs_and_blocks): Handle NULL
2959 current_program_space.
2960 (report_command_stats): Check global enabled flag in addition to
2961 recorded enabled flag.
2962 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2963
69ff6be5
PA
29642014-07-16 Pedro Alves <palves@redhat.com>
2965
2966 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2967
252db1b5
TT
29682014-07-16 Tom Tromey <tromey@redhat.com>
2969
2970 * target.h (struct target_ops) <to_delete_record>: Reformat
2971 comment.
2972
a432721e
TT
29732014-07-16 Tom Tromey <tromey@redhat.com>
2974
2975 * target-delegates.c: Rebuild.
2976
487d9753
PL
29772014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2978
2979 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2980 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2981 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2982 (avr_pointer_to_address): Likewise.
2983 (avr_address_class_type_flags): New function.
2984 (avr_address_class_type_flags_to_name): Likewise.
2985 (avr_address_class_name_to_type_flags): Likewise.
2986 (avr_gdbarch_init): Set address_class_type_flags,
2987 address_class_type_flags_to_name and
2988 address_class_name_to_type_flags.
2989
57745c90
PA
29902014-07-15 Pedro Alves <palves@redhat.com>
2991
2992 * linux-nat.c (kill_callback): Save errno and work with saved
2993 copy.
2994
2d40be18
SM
29952014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2996
2997 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2998
572f6555
EBM
29992014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3000
3001 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3002 breakpoint support correctly.
3003
cc1c52ad
PA
30042014-07-14 Pedro Alves <palves@redhat.com>
3005
3006 * utils.c (prompt_for_continue): Call target_terminal_ours.
3007
1e973570
PA
30082014-07-14 Pedro Alves <palves@redhat.com>
3009
3010 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3011 catch_errors. Don't re-enable stdin or notify observers where,
3012 and rethrow error.
3013 (fetch_inferior_event_wrapper): Delete.
3014
93d6eb10
PA
30152014-07-14 Pedro Alves <palves@redhat.com>
3016
3017 PR gdb/17072
3018 * top.c: Include "inf-loop.h".
3019 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3020 field.
3021 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3022 was async before.
3023 (gdb_readline_wrapper): Store whether the target is async, and
3024 make it sync.
3025
0017922d
PA
30262014-07-14 Pedro Alves <palves@redhat.com>
3027
3028 PR gdb/17072
3029 * top.c (gdb_readline_wrapper_line): Tweak comment.
3030 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3031 the input handler callback.
3032
94696ad3
PA
30332014-07-14 Pedro Alves <palves@redhat.com>
3034
3035 PR gdb/17072
3036 * main.c: Include event-top.h.
3037 (handle_command_errors): New function.
3038 (catch_command_errors, catch_command_errors_const): Use it.
3039
9d1e69a2
PA
30402014-07-14 Pedro Alves <palves@redhat.com>
3041
3042 * exceptions.c (catch_command_errors, catch_command_errors_const):
3043 Moved to main.c.
3044 * exceptions.h (catch_command_errors_ftype)
3045 (catch_command_errors_const_ftype): Moved to main.c.
3046 (catch_command_errors, catch_command_errors_const): Delete
3047 declarations.
3048 * main.c (catch_command_errors_ftype)
3049 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3050 (catch_command_errors, catch_command_errors_const)): Moved here
3051 from exceptions.c and make static.
3052
feefc97b
PA
30532014-07-14 Pedro Alves <palves@redhat.com>
3054
3055 * exceptions.c (print_any_exception): Delete.
3056 (catch_exceptions_with_msg): Use exception_print instead of
3057 print_any_exception.
3058 (catch_errors): Use exception_fprintf instead of
3059 print_any_exception.
3060 (catch_command_errors, catch_command_errors_const): Use
3061 exception_print instead of print_any_exception.
3062
c933f875
PA
30632014-07-14 Pedro Alves <palves@redhat.com>
3064
3065 * infcall.c (run_inferior_call): Set 'sync_execution' while
3066 running the inferior call.
3067
feb6f816
PA
30682014-07-14 Pedro Alves <palves@redhat.com>
3069
3070 * value.c (value_contents_equal): Delete function.
3071 * value.h (value_contents_equal): Delete declaration.
3072
d98b7a16
TT
30732014-07-14 Tom Tromey <tromey@redhat.com>
3074
3075 PR exp/17106:
3076 * gdbtypes.c (is_dynamic_type_internal): New function, from
3077 is_dynamic_type.
3078 (is_dynamic_type): Rewrite.
3079 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3080 (resolve_dynamic_struct): Likewise.
3081 (resolve_dynamic_type_internal): New function, from
3082 resolve_dynamic_type.
3083 (resolve_dynamic_type): Rewrite.
3084
548740d6
TT
30852014-07-14 Tom Tromey <tromey@redhat.com>
3086
3087 * target.c (target_require_runnable): Also check record_stratum.
3088 Update comment.
3089
808f7ab1
YQ
30902014-07-11 Yao Qi <yao@codesourcery.com>
3091
3092 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3093 thumb_instruction_restores_sp return true.
3094
540314bd
YQ
30952014-07-11 Yao Qi <yao@codesourcery.com>
3096
3097 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3098 (thumb_in_function_epilogue_p): Call
3099 thumb_instruction_restores_sp.
3100
1db01f22
YQ
31012014-07-11 Yao Qi <yao@codesourcery.com>
3102
3103 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3104 'add sp, #imm'.
3105 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3106
3116063b
GB
31072014-07-11 Gary Benson <gbenson@redhat.com>
3108
3109 * amd64-linux-nat.c (gdbcore.h): Remove include.
3110 (regset.h): Likewise.
3111 (nat/linux-btrace.h): Likewise.
3112 (btrace.h): Likewise.
3113 (gdb_assert.h): Likewise.
3114 (string.h): Likewise.
3115 (sys/uio.h): Likewise.
3116 (sys/debugreg.h): Likewise.
3117 (sys/syscall.h): Likewise.
3118 (sys/procfs.h): Likewise.
3119 (sys/user.h): Likewise.
3120 (asm/ptrace.h): Likewise.
3121 (i386-nat.h): Likewise.
3122 * i386-linux-nat.c (i386-nat.h): Likewise.
3123 (regset.h): Likewise.
3124 (target.h): Likewise.
3125 (linux-nat.h): Likewise.
3126 (nat/linux-btrace.h): Likewise.
3127 (btrace.h): Likewise.
3128 (gdb_assert.h): Likewise.
3129 (string.h): Likewise.
3130 (sys/uio.h): Likewise.
3131 (sys/user.h): Likewise.
3132 (sys/procfs.h): Likewise.
3133 (sys/reg.h): Likewise.
3134 (sys/debugreg.h): Likewise.
3135 (ORIG_EAX): Remove definition.
3136
040baaf6
GB
31372014-07-11 Gary Benson <gbenson@redhat.com>
3138
3139 * i386-linux-nat.h: New file.
3140 * x86-linux-nat.h: Likewise.
3141 * x86-linux-nat.c: Likewise.
3142 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3143 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3144 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3145 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3146 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3147 (PTRACE_SETREGSET): Likewise.
3148 (arch_lwp_info): Now in x86-linux-nat.c.
3149 (have_ptrace_getregset): Now in x86-linux-nat.h.
3150 (x86_linux_dr_get): Now in x86-linux-nat.c.
3151 (x86_linux_dr_set): Likewise.
3152 (x86_linux_dr_get_addr): Likewise.
3153 (x86_linux_dr_get_control): Likewise.
3154 (x86_linux_dr_get_status): Likewise.
3155 (update_debug_registers_callback): Likewise.
3156 (x86_linux_dr_set_control): Likewise.
3157 (x86_linux_dr_set_addr): Likewise.
3158 (x86_linux_prepare_to_resume): Likewise.
3159 (x86_linux_new_thread): Likewise.
3160 (x86_linux_new_fork): Likewise.
3161 (x86_linux_get_thread_area): Likewise.
3162 (super_post_startup_inferior): Likewise.
3163 (x86_linux_child_post_startup_inferior): Likewise.
3164 (AMD64_LINUX_USER64_CS): Likewise.
3165 (AMD64_LINUX_X32_DS): Likewise.
3166 (x86_linux_read_description): Likewise.
3167 (x86_linux_enable_btrace): Likewise.
3168 (x86_linux_disable_btrace): Likewise.
3169 (x86_linux_teardown_btrace): Likewise.
3170 (x86_linux_read_btrace): Likewise.
3171 (x86_linux_create_target): Likewise.
3172 (x86_linux_add_target): Likewise.
3173 * i386-linux-nat.c (x86-linux-nat.h): New include.
3174 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3175 (PTRACE_SETREGSET): Likewise.
3176 (arch_lwp_info): Now in x86-linux-nat.c.
3177 (have_ptrace_getregset): Now in x86-linux-nat.h.
3178 (x86_linux_dr_get): Now in x86-linux-nat.c.
3179 (x86_linux_dr_set): Likewise.
3180 (x86_linux_dr_get_addr): Likewise.
3181 (x86_linux_dr_get_control): Likewise.
3182 (x86_linux_dr_get_status): Likewise.
3183 (update_debug_registers_callback): Likewise.
3184 (x86_linux_dr_set_control): Likewise.
3185 (x86_linux_dr_set_addr): Likewise.
3186 (x86_linux_prepare_to_resume): Likewise.
3187 (x86_linux_new_thread): Likewise.
3188 (x86_linux_new_fork): Likewise.
3189 (x86_linux_get_thread_area): Likewise.
3190 (super_post_startup_inferior): Likewise.
3191 (x86_linux_child_post_startup_inferior): Likewise.
3192 (AMD64_LINUX_USER64_CS): Likewise.
3193 (AMD64_LINUX_X32_DS): Likewise.
3194 (x86_linux_read_description): Likewise.
3195 (x86_linux_enable_btrace): Likewise.
3196 (x86_linux_disable_btrace): Likewise.
3197 (x86_linux_teardown_btrace): Likewise.
3198 (x86_linux_read_btrace): Likewise.
3199 (x86_linux_create_target): Likewise.
3200 (x86_linux_add_target): Likewise.
3201
1aa7e42c
GB
32022014-07-11 Gary Benson <gbenson@redhat.com>
3203
3204 * amd64-linux-nat.c: Comment and whitespace changes.
3205 * i386-linux-nat.c: Comment and whitespace changes.
3206
c1e246a0
GB
32072014-07-11 Gary Benson <gbenson@redhat.com>
3208
3209 * amd64-linux-nat.c (x86_linux_create_target): New function.
3210 (x86_linux_add_target): Likewise.
3211 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3212 * i386-linux-nat.c (x86_linux_create_target): New function.
3213 (x86_linux_add_target): Likewise.
3214 (_initialize_i386_linux_nat): Delegate to the above new functions.
3215
8c420b8d
GB
32162014-07-11 Gary Benson <gbenson@redhat.com>
3217
3218 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3219 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3220 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3221 (ps_get_thread_area): Delegate to the above.
3222
cb1da100
GB
32232014-07-11 Gary Benson <gbenson@redhat.com>
3224
3225 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3226 x86_linux_read_description. All uses updated. amd64-specific
3227 code conditionalized. Conditionalized i386-specific code added.
3228 Redundant cast removed.
3229 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3230 x86_linux_read_description. All uses updated. i386-specific
3231 code conditionalized. Conditionalized amd64-specific code added.
3232 One sizeof replaced with the actual type it is describing.
3233
2acf3cd0
GB
32342014-07-11 Gary Benson <gbenson@redhat.com>
3235
3236 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3237 x86_linux_dr_get. All uses updated.
3238 (amd64_linux_dr_set): Renamed to
3239 x86_linux_dr_set. All uses updated.
3240 (amd64_linux_dr_get_addr): Renamed to
3241 x86_linux_dr_get_addr. All uses updated.
3242 (amd64_linux_dr_get_control): Renamed to
3243 x86_linux_dr_get_control. All uses updated.
3244 (amd64_linux_dr_get_status): Renamed to
3245 x86_linux_dr_get_status. All uses updated.
3246 (amd64_linux_dr_set_control): Renamed to
3247 x86_linux_dr_set_control. All uses updated.
3248 (amd64_linux_dr_set_addr): Renamed to
3249 x86_linux_dr_set_addr. All uses updated.
3250 (amd64_linux_prepare_to_resume): Renamed to
3251 x86_linux_prepare_to_resume. All uses updated.
3252 (amd64_linux_new_thread): Renamed to
3253 x86_linux_new_thread. All uses updated.
3254 (amd64_linux_new_fork): Renamed to
3255 x86_linux_new_fork. All uses updated.
3256 (amd64_linux_child_post_startup_inferior): Renamed to
3257 x86_linux_child_post_startup_inferior. All uses updated.
3258 (amd64_linux_enable_btrace): Renamed to
3259 x86_linux_enable_btrace. All uses updated.
3260 (amd64_linux_disable_btrace): Renamed to
3261 x86_linux_disable_btrace. All uses updated.
3262 (amd64_linux_teardown_btrace): Renamed to
3263 x86_linux_teardown_btrace. All uses updated.
3264 (amd64_linux_read_btrace): Renamed to
3265 x86_linux_read_btrace. All uses updated.
3266 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3267 x86_linux_dr_get. All uses updated.
3268 (i386_linux_dr_set): Renamed to
3269 x86_linux_dr_set. All uses updated.
3270 (i386_linux_dr_get_addr): Renamed to
3271 x86_linux_dr_get_addr. All uses updated.
3272 (i386_linux_dr_get_control): Renamed to
3273 x86_linux_dr_get_control. All uses updated.
3274 (i386_linux_dr_get_status): Renamed to
3275 x86_linux_dr_get_status. All uses updated.
3276 (i386_linux_dr_set_control): Renamed to
3277 x86_linux_dr_set_control. All uses updated.
3278 (i386_linux_dr_set_addr): Renamed to
3279 x86_linux_dr_set_addr. All uses updated.
3280 (i386_linux_prepare_to_resume): Renamed to
3281 x86_linux_prepare_to_resume. All uses updated.
3282 (i386_linux_new_thread): Renamed to
3283 x86_linux_new_thread. All uses updated.
3284 (i386_linux_new_fork): Renamed to
3285 x86_linux_new_fork. All uses updated.
3286 (i386_linux_child_post_startup_inferior): Renamed to
3287 x86_linux_child_post_startup_inferior. All uses updated.
3288 (i386_linux_enable_btrace): Renamed to
3289 x86_linux_enable_btrace. All uses updated.
3290 (i386_linux_disable_btrace): Renamed to
3291 x86_linux_disable_btrace. All uses updated.
3292 (i386_linux_teardown_btrace): Renamed to
3293 x86_linux_teardown_btrace. All uses updated.
3294 (i386_linux_read_btrace): Renamed to
3295 x86_linux_read_btrace. All uses updated.
3296
b9c1d481
AS
32972014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3298
3299 * remote.c (extended_remote_post_attach): New function.
3300 (init_extended_remote_ops): Install it as to_post_attach method.
3301
7180e04a
PA
33022014-07-09 Pedro Alves <palves@redhat.com>
3303
3304 * infcmd.c (attach_command_post_wait): Don't call
3305 target_terminal_inferior here.
3306 (attach_command): Call it here instead.
3307
9a9a7608
AB
33082014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3309
3310 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3311 field.
3312 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3313 from varobj.c, with additional checks.
3314 (c_varobj_ops): Fill in is_path_expr_parent field.
3315 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3316 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3317 field.
3318 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3319 ops method.
3320 (varobj_default_is_path_expr_parent): New function.
3321 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3322 (varobj_default_is_path_expr_parent): Declare new function.
3323
1f267ae3
MM
33242014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3325
3326 * infcmd.c (finish_backward): Turn internal error into normal error.
3327
b2ee242b
PA
33282014-07-07 Pedro Alves <palves@redhat.com>
3329
8a869bca 3330 PR gdb/17096
b2ee242b
PA
3331 * remote.c (async_handle_remote_sigint)
3332 (async_handle_remote_sigint_twice): Call
3333 gdb_call_async_signal_handler instead of
3334 mark_async_signal_handler.
3335
38e229b2
TT
33362014-07-07 Tom Tromey <tromey@redhat.com>
3337
3338 * target-delegates.c: Rebuild.
3339 * target.c (target_info_record): Remove.
3340 * record.c (info_record_command): Unconditionally call
3341 to_info_record.
3342 * target.h (struct target_ops) <to_info_record>: Use
3343 TARGET_DEFAULT_IGNORE.
3344 (target_info_record): Remove.
3345
f0f9ff95
TT
33462014-07-07 Tom Tromey <tromey@redhat.com>
3347
3348 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3349 TARGET_DEFAULT_NORETURN.
3350 * target.c (generic_tls_error): New function.
3351 (target_translate_tls_address): Don't search target stack.
3352 * target-delegates.c: Rebuild.
3353 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3354 stack.
3355 * linux-thread-db.c (thread_db_get_thread_local_address):
3356 Unconditionally call beneath target.
3357
4a5be5ee
MK
33582014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3359
3360 * cli/cli-logging.c (pop_output_files): Assign targerr to
3361 gdb_stdtargerr.
3362
92c3b204
AB
33632014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3364
3365 * MAINTAINERS (Write After Approval): Update my email address.
3366
9b11e3a7
GB
33672014-07-02 Gary Benson <gbenson@redhat.com>
3368
3369 * proc-service.c (ps_xfer_memory): Update comment.
3370 (ps_pstop): Remove unused function.
3371 (ps_pcontinue): Likewise.
3372 (ps_lstop): Likewise.
3373 (ps_lcontinue): Likewise.
3374 (ps_lgetxregsize): Likewise.
3375 (ps_lgetxregs): Likewise.
3376 (ps_lsetxregs): Likewise.
3377 (ps_plog): Likewise.
3378 (ps_ptread): Likewise.
3379 (ps_ptwrite): Likewise.
3380
cf363f18
MW
33812014-07-01 Mark Wielaard <mjw@redhat.com>
3382
3383 * dwarf2read.c (add_array_cv_type): New function.
3384 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3385 (read_tag_volatile_type): Likewise.
3386
82ae6c8d
TT
33872014-07-01 Tom Tromey <tromey@redhat.com>
3388
3389 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3390 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3391 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3392 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3393 * command.h (cmd_cfunc_ftype): Move earlier.
3394 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3395 (add_com, add_info): Use cmd_cfunc_ftype.
3396
96142726
TT
33972014-06-30 Tom Tromey <tromey@redhat.com>
3398
3399 * symtab.c (operator_chars): Make parameters and return type
3400 const.
3401 (file_matches): Make "files" const.
3402 (struct search_symbols_data) <files>: Now const.
3403 (search_symbols): Make "regexp" and "files" parameters const.
3404 Update.
3405 (symtab_symbol_info): Remove cast.
3406 (rbreak_command): Update.
3407 * symtab.h (search_symbols): Update.
3408
b67a2c6f
YQ
34092014-06-27 Yao Qi <yao@codesourcery.com>
3410
3411 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3412 Change parameter type to 'struct thread_info *'. Caller
3413 updated.
3414 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3415 Update declaration.
3416 * dummy-frame.c (struct dummy_frame_id): New.
3417 (dummy_frame_id_eq): New function.
3418 (struct dummy_frame) <id>: Change its type to 'struct
3419 dummy_frame_id'.
3420 (dummy_frame_push): Add parameter ptid and save it in
3421 dummy_frame_id.
3422 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3423 inferior_ptid.
3424 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3425 to inferior_ptid.
3426 (lookup_dummy_frame): Change parameter type to 'struct
3427 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3428 instead of frame_id_eq.
3429 (dummy_frame_pop): Add parameter ptid. Callers updated.
3430 Update comments. Compose dummy_frame_id and pass it to
3431 lookup_dummy_frame.
3432 (dummy_frame_discard): Add parameter ptid.
3433 (dummy_frame_sniffer): Compose dummy_frame_id and call
3434 dummy_frame_id_eq instead of frame_id_eq.
3435 (fprint_dummy_frames): Print ptid.
3436 * dummy-frame.h: Remove comments.
3437 (dummy_frame_push): Add ptid in declaration.
3438 (dummy_frame_pop, dummy_frame_discard): Likewise.
3439
5b10184c
TT
34402014-06-26 Tom Tromey <tromey@redhat.com>
3441
3442 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3443 * command.h (error_no_arg): Update.
3444
06900326
TT
34452014-06-26 Tom Tromey <tromey@redhat.com>
3446
3447 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3448 (do_show_command): Make "arg" const.
3449 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3450
c2bcbb1d
TT
34512014-06-26 Tom Tromey <tromey@redhat.com>
3452
3453 * record-full.c (record_full_get_bookmark): Make "args" const.
3454 (record_full_goto_bookmark): Make "raw_bookmark" const.
3455 * record.c (record_goto): New function.
3456 (cmd_record_goto): Use it. Now static.
3457 * record.h (record_goto): Declare.
3458 (cmd_record_goto): Remove declaration.
3459 * target-delegates.c: Rebuild.
3460 * target.h (struct target_ops) <to_get_bookmark,
3461 to_goto_bookmark>: Make parameter const.
3462
9cbe5fff
TT
34632014-06-26 Tom Tromey <tromey@redhat.com>
3464
3465 * defs.h (generic_load): Update.
3466 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3467 * monitor.c (monitor_load): Make "args" const.
3468 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3469 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3470 const.
3471 (mips_load): Make "file" const.
3472 * remote-sim.c (gdbsim_load): Make "args" const.
3473 * remote.c (remote_load): Make "name" const.
3474 * symfile.c (generic_load): Make "args" const.
3475 * target-delegates.c: Rebuild.
3476 * target.c (target_load): Make "arg" const.
3477 (debug_to_load): Make "args" const.
3478 * target.h (struct target_ops) <to_load>: Make parameter const.
3479 (target_load): Update.
3480
34a68019
TT
34812014-06-26 Tom Tromey <tromey@redhat.com>
3482
3483 PR symtab/16902:
3484 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3485 (dwarf2_physname, read_partial_die)
3486 (guess_partial_die_structure_name, fixup_partial_die)
3487 (guess_full_die_structure_name, anonymous_struct_prefix)
3488 (dwarf2_name): Use per-BFD obstack.
3489
efc889c1
YQ
34902014-06-26 Yao Qi <yao@codesourcery.com>
3491
3492 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3493 dummyframe and this_id into inner block below.
3494
4395285e
YQ
34952014-06-26 Yao Qi <yao@codesourcery.com>
3496
3497 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3498 with "signal_pass[0]" in the initialization of signal_pass.
3499
aef92902
MM
35002014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3501
3502 * record-btrace.c (record_btrace_generating_corefile)
3503 (record_btrace_prepare_to_generate_core)
3504 (record_btrace_done_generating_core): New.
3505 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3506 (record_btrace_store_registers, record_btrace_prepare_to_store):
3507 Forward request when generating a core file.
3508 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3509 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3510 to_done_generating_core.
3511
5fff78c4
MM
35122014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3513
3514 * target.h (target_ops) <to_prepare_to_generate_core>
3515 <to_done_generating_core>: New.
3516 (target_prepare_to_generate_core, target_done_generating_core): New.
3517 * target.c (target_prepare_to_generate_core)
3518 (target_done_generating_core): New.
3519 * target-delegates.c: Regenerate.
3520 * gcore.c: (write_gcore_file): Rename to ...
3521 (write_gcore_file_1): ...this.
3522 (write_gcore_file): Call target_prepare_to_generate_core
3523 and target_done_generating_core.
3524
1d1f1ccb
MM
35252014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3526
3527 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3528 * gcore.c (write_gcore_file): Free memory returned from
3529 make_corefile_notes.
3530 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3531 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3532
3343ef86
YQ
35332014-06-24 Yao Qi <yao@codesourcery.com>
3534
3535 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3536 (arm_linux_init_abi): Set skip_trampoline_code with
3537 gdbarch_skip_trampoline_code instead of
3538 find_solib_trampoline_target.
3539
18d18ac8
YQ
35402014-06-24 Yao Qi <yao@codesourcery.com>
3541
3542 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3543 arm_skip_bx_reg returns non-zero.
3544
80d8d390
YQ
35452014-06-24 Yao Qi <yao@codesourcery.com>
3546
3547 * arm-tdep.c (arm_skip_bx_reg): New function.
3548 (arm_skip_stub): Call arm_skip_bx_reg.
3549
6a18a01c
DB
35502014-06-23 Don Breazeal <donb@codesourcery.com>
3551
3552 * MAINTAINERS: Add myself as write-after-approval maintainer.
3553
8e9db26e
PA
35542014-06-23 Pedro Alves <palves@redhat.com>
3555
3556 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3557 DR_CONTROL before setting DR0..DR3.
3558 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3559 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3560 bits of DR_CONTROL related to the debug register slot being
3561 disabled. If all slots are vacant, clear local slowdown as well,
3562 and assert DR_CONTROL is 0.
3563
70afc5b7
SC
35642014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3565
3566 * python/lib/gdb/command/xmethods.py
3567 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3568 current progspace only if the string "progspace" matches LOCUS_RE.
3569
840ed64d
JK
35702014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3571
3572 Fix --with-system-readline with readline-6.3 patch 5.
3573 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3574 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3575 types.
3576
26f2dc30
TT
35772014-06-20 Tom Tromey <tromey@redhat.com>
3578
3579 * dwarf2read.c (dw2_get_real_path): Use correct type in
3580 OBSTACK_CALLOC.
3581 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3582
125f8a3d
GB
35832014-06-20 Gary Benson <gbenson@redhat.com>
3584
3585 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3586 * common/glibc_thread_db.h: Likewise.
3587 * common/i386-cpuid.h: Likewise.
3588 * common/i386-gcc-cpuid.h: Likewise.
3589 * common/linux-btrace.h: Likewise.
3590 * common/linux-osdata.h: Likewise.
3591 * common/linux-procfs.h: Likewise.
3592 * common/linux-ptrace.h: Likewise.
3593 * common/mips-linux-watch.h: Likewise.
3594 * common/linux-btrace.c: Moved to nat.
3595 * common/linux-osdata.c: Likewise.
3596 * common/linux-procfs.c: Likewise.
3597 * common/linux-ptrace.c: Likewise.
3598 * common/mips-linux-watch.c: Likewise.
3599 * nat/gdb_thread_db.h: Moved from common.
3600 * nat/glibc_thread_db.h: Likewise.
3601 * nat/i386-cpuid.h: Likewise.
3602 * nat/i386-gcc-cpuid.h: Likewise.
3603 * nat/linux-btrace.c: Likewise.
3604 * nat/linux-btrace.h: Likewise.
3605 * nat/linux-osdata.c: Likewise.
3606 * nat/linux-osdata.h: Likewise.
3607 * nat/linux-procfs.c: Likewise.
3608 * nat/linux-procfs.h: Likewise.
3609 * nat/linux-ptrace.c: Likewise.
3610 * nat/linux-ptrace.h: Likewise.
3611 * nat/mips-linux-watch.c: Likewise.
3612 * nat/mips-linux-watch.h: Likewise.
3613 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3614 (object file files): Reordered.
3615 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3616 of glibc_thread_db.h.
3617
42995dbd
GB
36182014-06-20 Gary Benson <gbenson@redhat.com>
3619
3620 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3621 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3622 (i386_dr_low): Likewise.
3623 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3624 (i386_dr_low_set_addr): Likewise.
3625 (i386_dr_low_get_addr): Likewise.
3626 (i386_dr_low_can_set_control): Likewise.
3627 (i386_dr_low_set_control): Likewise.
3628 (i386_dr_low_get_control): Likewise.
3629 (i386_dr_low_get_status): Likewise.
3630 (i386_get_debug_register_length): Likewise.
3631 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3632 (i386_dr_low): Likewise.
3633 * nat/i386-dregs.c (i386-low.h): Remove include.
3634 (i386-nat.h): Likewise.
3635 (nat/i386-dregs.h): New include.
3636 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3637 (i386_dr_low_set_addr): Likewise.
3638 (i386_dr_low_get_addr): Likewise.
3639 (i386_dr_low_can_set_control): Likewise.
3640 (i386_dr_low_set_control): Likewise.
3641 (i386_dr_low_get_control): Likewise.
3642 (i386_dr_low_get_status): Likewise.
3643 (i386_get_debug_register_length): Likewise.
3644 (debug_hw_points): Likewise.
3645
3ed9baed
IB
36462014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3647
3648 * Makefile.in (SFILES): Add d-exp.y.
3649 (YYFILES): Add d-exp.c.
3650 (YYOBJ): Add d-exp.o.
3651 (local-maintainer-clean): Delete d-exp.c.
3652 * d-exp.y: New file.
3653 * d-lang.h (d_parse): New declaration.
3654 (d_error): New declaration.
3655 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3656 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3657 PREC_ORDER operators.
3658 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3659
78c164b0
YQ
36602014-06-19 Yao Qi <yao@codesourcery.com>
3661
3662 * gdbthread.h (any_running): Remove the declaration.
3663 * thread.c (any_running): Remove.
3664
f6e29b6e
YQ
36652014-06-19 Yao Qi <yao@codesourcery.com>
3666
3667 * gdbthread.h (struct thread_info) <state>: Change its type to
3668 'enum thread_state'. Update comments.
3669
034f788c
PA
36702014-06-19 Pedro Alves <palves@redhat.com>
3671
3672 * gdbthread.h (ALL_THREADS): Delete.
3673 (ALL_NON_EXITED_THREADS): New macro.
3674 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3675 instead of ALL_THREADS.
3676 * infrun.c (find_thread_needs_step_over)
3677 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3678 instead of ALL_THREADS.
3679 * record-btrace.c (record_btrace_open)
3680 (record_btrace_stop_recording, record_btrace_close)
3681 (record_btrace_is_replaying, record_btrace_resume)
3682 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3683 * remote.c (append_pending_thread_resumptions): Likewise.
3684 * thread.c (thread_apply_all_command): Likewise.
3685
46e33252
GB
36862014-06-19 Gary Benson <gbenson@redhat.com>
3687
3688 * i386-nat.c (i386_stopped_by_watchpoint):
3689 Use i386_dr_stopped_by_watchpoint.
3690 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3691 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3692
3a8ee006
GB
36932014-06-19 Gary Benson <gbenson@redhat.com>
3694
3695 * nat/i386-dregs.c: New file.
3696 * Makefile.in (i386-dregs.o): New rule.
3697 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3698 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3699 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3700 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3701 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3702 * config/i386/go32.mh (NATDEPFILES): Likewise.
3703 * config/i386/linux.mh (NATDEPFILES): Likewise.
3704 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3705 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3706 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3707 * i386-nat.h (debug_hw_points): New declaration.
3708 * i386-nat.c (breakpoint.h): Remove include.
3709 (command.h): Likewise.
3710 (target.h): Likewise.
3711 (gdb_assert.h): Likewise.
3712 (debug_hw_points): Made nonstatic.
3713 (debug_printf): Now in i386-dregs.c.
3714 (TARGET_HAS_DR_LEN_8): Likewise.
3715 (DR_CONTROL_SHIFT): Likewise.
3716 (DR_CONTROL_SIZE): Likewise.
3717 (DR_RW_EXECUTE): Likewise.
3718 (DR_RW_WRITE): Likewise.
3719 (DR_RW_READ): Likewise.
3720 (DR_RW_IORW): Likewise.
3721 (DR_LEN_1): Likewise.
3722 (DR_LEN_2): Likewise.
3723 (DR_LEN_4): Likewise.
3724 (DR_LEN_8): Likewise.
3725 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3726 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3727 (DR_ENABLE_SIZE): Likewise.
3728 (DR_LOCAL_SLOWDOWN): Likewise.
3729 (DR_GLOBAL_SLOWDOWN): Likewise.
3730 (DR_CONTROL_RESERVED): Likewise.
3731 (I386_DR_CONTROL_MASK): Likewise.
3732 (I386_DR_VACANT): Likewise.
3733 (I386_DR_LOCAL_ENABLE): Likewise.
3734 (I386_DR_GLOBAL_ENABLE): Likewise.
3735 (I386_DR_DISABLE): Likewise.
3736 (I386_DR_SET_RW_LEN): Likewise.
3737 (I386_DR_GET_RW_LEN): Likewise.
3738 (I386_DR_WATCH_HIT): Likewise.
3739 (i386_wp_op_t): Likewise.
3740 (i386_show_dr): Likewise.
3741 (i386_length_and_rw_bits): Likewise.
3742 (i386_insert_aligned_watchpoint): Likewise.
3743 (i386_remove_aligned_watchpoint): Likewise.
3744 (i386_handle_nonaligned_watchpoint): Likewise.
3745 (i386_update_inferior_debug_regs): Likewise.
3746 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3747 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3748 (i386_region_ok_for_watchpoint):
3749 Use i386_dr_region_ok_for_watchpoint.
3750 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3751
322a8e06
GB
37522014-06-19 Gary Benson <gbenson@redhat.com>
3753
3754 * i386-nat.c (i386_insert_hw_breakpoint): Use
3755 i386_insert_watchpoint.
3756 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3757
8f26655c
GB
37582014-06-19 Gary Benson <gbenson@redhat.com>
3759
3760 * i386-nat.c (i386_dr_show): Renamed to
3761 i386_show_dr and made static. All uses updated.
3762 (i386_dr_length_and_rw_bits): Renamed to
3763 i386_length_and_rw_bits and made static.
3764 All uses updated.
3765 (i386_dr_insert_aligned_watchpoint): Renamed to
3766 i386_insert_aligned_watchpoint and made static.
3767 All uses updated.
3768 (i386_dr_remove_aligned_watchpoint): Renamed to
3769 i386_remove_aligned_watchpoint and made static.
3770 All uses updated.
3771 (i386_dr_update_inferior_debug_regs): Renamed to
3772 i386_update_inferior_debug_regs and made static.
3773 All uses updated.
3774 * nat/i386-dregs.h (i386_dr_show): Removed.
3775 (i386_dr_length_and_rw_bits): Likewise.
3776 (i386_dr_insert_aligned_watchpoint): Likewise.
3777 (i386_dr_remove_aligned_watchpoint): Likewise.
3778 (i386_dr_update_inferior_debug_regs): Likewise.
3779
992c7d70
GB
37802014-06-19 Gary Benson <gbenson@redhat.com>
3781
3782 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3783 * configure: Regenerate.
3784 * config.in: Likewise.
3785 * main.c (signal.h): New include.
3786 (setup_alternate_signal_stack): New function.
3787 (captured_main): Call the above.
3788 * cp-support.c (signal.h): New include.
3789 (catch_demangler_crashes): New flag.
3790 (SIGJMP_BUF): New define.
3791 (SIGSETJMP): Likewise.
3792 (SIGLONGJMP): Likewise.
3793 (gdb_demangle_jmp_buf): New static global.
3794 (gdb_demangle_attempt_core_dump): Likewise.
3795 (gdb_demangle_signal_handler): New function.
3796 (gdb_demangle): If catch_demangler_crashes is set, install the
3797 above signal handler before calling bfd_demangle, and restore
3798 the original signal handler afterwards. Display the offending
3799 symbol and call demangler_warning the first time a segmentation
3800 fault is caught.
3801 (_initialize_cp_support): New maint set/show command.
3802
eae7090b
GB
38032014-06-19 Gary Benson <gbenson@redhat.com>
3804
3805 * utils.h (resource_limit_kind): New enum.
3806 (can_dump_core): New declaration.
3807 (warn_cant_dump_core): Likewise.
3808 (dump_core): Likewise.
3809 * utils.c (dump_core): Made nonstatic. Added new
3810 parameter "limit_kind".
3811 (can_dump_core): Made nonstatic. Moved printing code to...
3812 (warn_cant_dump_core): New function.
3813 (can_dump_core_warn): Likewise.
3814 (internal_vproblem): Replace calls to can_dump_core with
3815 calls to can_dump_core_warn. Supply new argument to each.
3816
57fcfb1b
GB
38172014-06-19 Gary Benson <gbenson@redhat.com>
3818
3819 * utils.h (demangler_vwarning): New declaration.
3820 (demangler_warning): Likewise.
3821 * utils.c (struct internal_problem)
3822 <user_settable_should_quit>: New field.
3823 <user_settable_should_dump_core>: Likewise
3824 (internal_error_problem): Add values for above new fields.
3825 (internal_warning_problem): Likewise.
3826 (demangler_warning_problem): New static global.
3827 (demangler_vwarning): New function.
3828 (demangler_warning): Likewise.
3829 (add_internal_problem_command): Selectively add commands.
3830 (_initialize_utils): New internal problem command.
3831 * maint.c (maintenance_demangler_warning): New function.
3832 (_initialize_maint_cmds): New command.
3833
17a40b44
TT
38342014-06-18 Tom Tromey <tromey@redhat.com>
3835
3836 * f-valprint.c (info_common_command_for_block): Update.
3837 * symtab.h (struct general_symbol_info) <common_block>: Now
3838 const.
3839
346d1dfe
TT
38402014-06-18 Tom Tromey <tromey@redhat.com>
3841
3842 * symtab.h (struct symtab) <blockvector>: Now const.
3843 * ada-lang.c (ada_add_global_exceptions): Update.
3844 * buildsym.c (augment_type_symtab): Update.
3845 * dwarf2read.c (dw2_lookup_symbol): Update.
3846 * jit.c (finalize_symtab): Update.
3847 * jv-lang.c (add_class_symtab_symbol): Update.
3848 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3849 Update.
3850 * objfiles.c (objfile_relocate1): Update.
3851 * psymtab.c (lookup_symbol_aux_psymtabs)
3852 (maintenance_check_psymtabs): Update.
3853 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3854 Update.
3855 * spu-tdep.c (spu_catch_start): Update.
3856 * symmisc.c (dump_symtab_1): Update.
3857 * symtab.c (lookup_global_symbol_from_objfile)
3858 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3859 (basic_lookup_transparent_type_quick)
3860 (basic_lookup_transparent_type, find_pc_sect_symtab)
3861 (find_pc_sect_line, search_symbols): Update.
3862 * block.c (find_block_in_blockvector): Make "bl" const.
3863 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3864 const.
3865 (blockvector_contains_pc): Make "bv" const.
3866 (block_for_pc_sect): Update.
3867 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3868 (blockvector_contains_pc): Update.
3869 * breakpoint.c (resolve_sal_pc): Update.
3870 * inline-frame.c (block_starting_point_at): Update.
3871
1834676b
TT
38722014-06-18 Tom Tromey <tromey@redhat.com>
3873
3874 * completer.c (complete_line): Make "line_buffer" const.
3875 * completer.h (complete_line): Update.
3876
ac1a991b
TT
38772014-06-18 Tom Tromey <tromey@redhat.com>
3878
3879 * symtab.c (add_macro_name): Remove unneeded cast.
3880
5bc98e52
TT
38812014-06-18 Tom Tromey <tromey@redhat.com>
3882
3883 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3884 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3885
8236def8
TT
38862014-06-18 Tom Tromey <tromey@redhat.com>
3887
3888 * probe.c (info_probes_for_ops): Make "arg" const.
3889 * probe.h (info_probes_for_ops): Update.
3890
3977b71f
TT
38912014-06-18 Tom Tromey <tromey@redhat.com>
3892
3893 * varobj.c (varobj_create): Update.
3894 * valops.c (value_of_this): Update.
3895 * tracepoint.c (add_local_symbols, scope_info): Update.
3896 * symtab.h (struct general_symbol_info) <block>: Now const.
3897 * symtab.c (skip_prologue_sal)
3898 (default_make_symbol_completion_list_break_on)
3899 (skip_prologue_using_sal): Update.
3900 * stack.h (iterate_over_block_locals)
3901 (iterate_over_block_local_vars): Update.
3902 * stack.c (print_frame_args): Update.
3903 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3904 parameter const.
3905 (get_selected_block): Make return type const.
3906 * python/py-frame.c (frapy_block): Update.
3907 * python/py-block.c (gdbpy_block_for_pc): Update.
3908 * p-exp.y (%union) <bval>: Now const.
3909 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3910 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3911 * m2-exp.y (%union) <bval>: Now const.
3912 * linespec.c (get_current_search_block): Make return type const.
3913 (create_sals_line_offset, find_label_symbols): Update.
3914 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3915 Update.
3916 (block_starting_point_at): Make "block" const.
3917 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3918 (check_exception_resume): Update.
3919 * guile/scm-frame.c (gdbscm_frame_block): Update.
3920 * guile/scm-block.c (gdbscm_lookup_block): Update.
3921 * frame.h (get_frame_block): Update.
3922 (get_selected_block): Make return type const.
3923 * frame.c (frame_id_inner): Update.
3924 * f-valprint.c (info_common_command_for_block)
3925 (info_common_command): Update.
3926 * dwarf2loc.c (dwarf2_find_location_expression)
3927 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3928 (locexpr_describe_location_piece): Update.
3929 * c-exp.y (%union) <bval>: Now const.
3930 * breakpoint.c (resolve_sal_pc): Update.
3931 * blockframe.c (get_frame_block):Make return type const.
3932 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3933 (block_innermost_frame): Update.
3934 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3935 (block_for_pc, block_for_pc_sect): Update.
3936 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3937 'pblock' const.
3938 (block_for_pc_sect, block_for_pc): Make return type const.
3939 * ax-gdb.c (gen_expr): Update.
3940 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3941 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3942 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3943 (ada_read_var_value): Update.
3944 * ada-exp.y (struct name_info) <block>: Now const.
3945 (%union): Likewise.
3946 (block_lookup): Constify.
3947
b9228891
GB
39482014-06-18 Gary Benson <gbenson@redhat.com>
3949
3950 * nat/i386-dregs.h: New file.
3951 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3952 * i386-nat.h (i386-dregs.h): New include.
3953 (DR_FIRSTADDR): Now in i386-dregs.h.
3954 (DR_LASTADDR): Likewise.
3955 (DR_NADDR): Likewise.
3956 (DR_STATUS): Likewise.
3957 (DR_CONTROL): Likewise.
3958 (i386_debug_reg_state): Likewise.
3959 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3960
a1aa2221
LM
39612014-06-18 Don Breazeal <donb@codesourcery.com>
3962
3963 * breakpoint.c (set_longjmp_breakpoint): Call
3964 momentary_breakpoint_from_master with additional argument.
3965 (set_longjmp_breakpoint_for_call_dummy): Call
3966 momentary_breakpoint_from_master with additional argument.
3967 (set_std_terminate_breakpoint): Call
3968 momentary_breakpoint_from_master with additional argument.
3969 (momentary_breakpoint_from_master): Add argument to function
3970 definition and use it to initialize structure member flag.
74228e77 3971 (clone_momentary_breakpoint): Call
a1aa2221
LM
3972 momentary_breakpoint_from_master with additional argument.
3973 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3974 member flags set in momentary_breakpoint_from_master.
3975
4be83cc2
GB
39762014-06-18 Gary Benson <gbenson@redhat.com>
3977
3978 * i386-nat.c (i386_show_dr): Renamed to
3979 i386_dr_show and made nonstatic. All uses updated.
3980 (i386_length_and_rw_bits): Renamed to
3981 i386_dr_length_and_rw_bits and made nonstatic.
3982 All uses updated.
3983 (i386_insert_aligned_watchpoint): Renamed to
3984 i386_dr_insert_aligned_watchpoint and made nonstatic.
3985 All uses updated.
3986 (i386_remove_aligned_watchpoint): Renamed to
3987 i386_dr_remove_aligned_watchpoint and made nonstatic.
3988 All uses updated.
3989 (i386_update_inferior_debug_regs): Renamed to
3990 i386_dr_update_inferior_debug_regs and made nonstatic.
3991 All uses updated.
3992
131aa0d4
GB
39932014-06-18 Gary Benson <gbenson@redhat.com>
3994
3995 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3996 (i386_dr_low_can_set_control): Likewise.
3997 (i386_dr_low_set_addr): Likewise.
3998 (i386_dr_low_set_control): Likewise.
3999 (i386_dr_low_get_addr): Likewise.
4000 (i386_dr_low_get_status): Likewise.
4001 (i386_dr_low_get_control): Likewise.
4002 (i386_insert_aligned_watchpoint): Use new macros.
4003 (i386_update_inferior_debug_regs): Likewise.
4004 (i386_stopped_data_address): Likewise.
4005
d9305f7f
GB
40062014-06-18 Gary Benson <gbenson@redhat.com>
4007
4008 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4009 New parameter. All uses updated.
4010
ea008da4
GB
40112014-06-18 Gary Benson <gbenson@redhat.com>
4012
4013 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4014 All uses updated.
4015
1b6d4134
GB
40162014-06-18 Gary Benson <gbenson@redhat.com>
4017
4018 * i386-nat.c (debug_printf): New macro.
4019 (i386_get_debug_register_length): Likewise.
4020 (TARGET_HAS_DR_LEN_8): Use above macro.
4021 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4022 and printf_unfiltered. Use phex to format values.
4023
9b4550ef
GB
40242014-06-18 Gary Benson <gbenson@redhat.com>
4025
4026 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4027 Make const.
4028
6e62758f
GB
40292014-06-18 Gary Benson <gbenson@redhat.com>
4030
4031 * i386-nat.c: Comment changes.
4032
51c79e94
GB
40332014-06-18 Gary Benson <gbenson@redhat.com>
4034
4035 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4036
3e11889a
GB
40372014-06-18 Gary Benson <gbenson@redhat.com>
4038
4039 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4040 (i386_insert_aligned_watchpoint): Likewise.
4041 (i386_remove_aligned_watchpoint): Likewise.
4042 (i386_handle_nonaligned_watchpoint): Likewise.
4043
fc6e2f03
GB
40442014-06-18 Gary Benson <gbenson@redhat.com>
4045
4046 * i386-nat.c: Whitespace changes.
4047
2afe7d50
SB
40482014-06-17 Samuel Bronson <naesten@gmail.com>
4049
4050 * MAINTAINERS: Update Roland McGrath's email address.
4051 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 4052 Red Hat a while ago, and giving me a current address.
2afe7d50 4053
3bca49ee
TT
40542014-06-17 Tom Tromey <tromey@redhat.com>
4055
4056 * utils.h (savestring): Remove declaration.
4057
6e366df1
TT
40582014-06-17 Tom Tromey <tromey@redhat.com>
4059
4060 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4061
6be47f0c
KS
40622014-06-16 Keith Seitz <keiths@redhat.com>
4063
4064 PR mi/15863
4065 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4066 to update the varobj if inferior_ptid is null_ptid.
4067
7bc112c1
TT
40682014-06-16 Tom Tromey <tromey@redhat.com>
4069
4070 * target.h (struct target_ops) <to_info_proc>: Make parameter
4071 const.
4072 (target_info_proc): Update.
4073 * target.c (target_info_proc): Make "args" const.
4074 * procfs.c (procfs_info_proc): Update.
4075 * linux-tdep.c (linux_info_proc): Update.
4076 (linux_core_info_proc_mappings): Make "args" const.
4077 (linux_core_info_proc): Update.
4078 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4079 * gdbarch.c: Rebuild.
4080 * gdbarch.h: Rebuild.
4081 * corelow.c (core_info_proc): Update.
4082
fee354ee
TT
40832014-06-16 Tom Tromey <tromey@redhat.com>
4084
4085 * target.h (struct target_ops) <to_disconnect>: Make parameter
4086 const.
4087 (target_disconnect): Update.
4088 * target.c (target_disconnect): Make "args" const.
4089 * target-delegates.c: Rebuild.
4090 * remote.c (remote_disconnect): Update.
4091 * record.h (record_disconnect): Update.
4092 * record.c (record_disconnect): Update.
4093 * inf-child.c (inf_child_disconnect): Update.
4094
a30bf1f1
TT
40952014-06-16 Tom Tromey <tromey@redhat.com>
4096
4097 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4098 * target.c (debug_to_rcmd, default_rcmd): Update.
4099 * target-delegates.c: Rebuild.
4100 * remote.c (remote_rcmd): Update.
4101 * monitor.c (monitor_rcmd): Update.
4102
d03de421
PA
41032014-06-16 Pedro Alves <palves@redhat.com>
4104
4105 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4106 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4107 have OBJF_SHARED set.
4108 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4109 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4110 instead of OBJF_USERLOADED.
4111 * objfiles.h (OBJF_SHARED): Update comment.
4112 (userloaded_objfile_contains_address_p): Rename to ...
4113 (shared_objfile_contains_address_p): ... this, and update
4114 comments.
4115 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4116 new objfile.
4117 (remove_symbol_file_command): Skip objfiles that don't have
4118 OBJF_SHARED set.
4119
99f4262f
TT
41202014-06-16 Tom Tromey <tromey@redhat.com>
4121
4122 * minsyms.h (prim_record_minimal_symbol)
4123 (prim_record_minimal_symbol_and_info): Update comments.
4124
97d66cc6
EZ
41252014-06-14 Eli Zaretskii <eliz@gnu.org>
4126
4127 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4128 or --without-guile, according to how GDB was built.
4129
635c7e8a
TT
41302014-06-13 Tom Tromey <tromey@redhat.com>
4131
4132 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4133 to help_list.
4134 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4135 to help_list.
4136 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4137 help_list.
4138 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4139 help_list.Pass all_commands, not -1, to help_list.
4140 * cli/cli-dump.c (dump_command, append_command)
4141 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4142 (binary_dump_command, binary_append_command): Pass all_commands,
4143 not -1, to help_list.
4144 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4145 -1, to help_list.
4146 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4147 -1, to help_list.
4148 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4149 help_list.
4150 * top.c (set_history): Pass all_commands, not -1, to help_list.
4151 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4152 all_commands, not -1, to help_list.
4153 * symfile.c (overlay_command): Pass all_commands, not -1, to
4154 help_list.
4155 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4156 help_list.
4157 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4158 help_list.
4159 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4160 -1, to help_list.
4161 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4162 not -1, to help_list.
4163 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4164 not -1, to help_list.
4165 * maint.c (maintenance_command, maintenance_info_command)
4166 (maintenance_print_command, maintenance_set_cmd): Pass
4167 all_commands, not -1, to help_list.
4168 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4169 help_list.
4170 * language.c (set_check): Pass all_commands, not -1, to help_list.
4171 * infcmd.c (unset_command): Pass all_commands, not -1, to
4172 help_list.
4173 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4174 help_list.
4175 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4176 help_list.
4177 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4178 help_list.
4179 * breakpoint.c (save_command): Pass all_commands, not -1, to
4180 help_list.
4181 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4182 all_commands, not -1, to help_list.
4183
b94ade42
PL
41842014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4185
4186 * regcache.c (struct register_to_invalidate): New structure.
4187 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4188 functions.
4189 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4190
31f628ae
YQ
41912014-06-12 Yao Qi <yao@codesourcery.com>
4192
4193 * varobj.c (varobj_get_num_children): Call
4194 varobj_is_dynamic_p.
4195 (varobj_list_children): Likewise.
4196 (varobj_update): Likewise. Update comments.
4197
cde5ef40
YQ
41982014-06-12 Yao Qi <yao@codesourcery.com>
4199
4200 * varobj.c (varobj_pretty_printed_p): Rename to ...
4201 (varobj_is_dynamic_p): ... this. New function.
4202 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4203 (varobj_is_dynamic_p): Declare.
4204 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4205 (mi_print_value_p, varobj_update_one): Likewise.
4206
576ea091
YQ
42072014-06-12 Pedro Alves <pedro@codesourcery.com>
4208 Yao Qi <yao@codesourcery.com>
4209
4210 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4211 (varobj_get_iterator): Wrap up code for pretty-printer by
4212 "#if HAVE_PYTHON" and "#endif".
4213 (update_dynamic_varobj_children): Likewise.
4214
827f100c
YQ
42152014-06-12 Pedro Alves <pedro@codesourcery.com>
4216 Yao Qi <yao@codesourcery.com>
4217
4218 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4219 gdb_python_initialized is false. Move some code from varobj.c.
4220 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4221 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4222 (struct varobj_item): Moved to varobj-iter.h".
4223 (varobj_clear_saved_item): New function.
4224 (update_dynamic_varobj_children): Move python-related code to
4225 py-varobj.c.
4226 (free_variable): Call varobj_clear_saved_item and
4227 varobj_iter_delete.
4228
e5250216
YQ
42292014-06-12 Pedro Alves <pedro@codesourcery.com>
4230 Yao Qi <yao@codesourcery.com>
4231
4232 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4233 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4234 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4235 (py-varobj.o): New rule.
4236 * python/py-varobj.c: New file.
4237 * python/python-internal.h (py_varobj_get_iterator): Declare.
4238 * varobj-iter.h: New file.
4239 * varobj.c: Include "varobj-iter.h"
4240 (struct varobj) <child_iter>: Change its type from "PyObject *"
4241 to "struct varobj_iter *".
4242 <saved_item>: Likewise.
4243 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4244 [HAVE_PYTHON] (varobj_get_iterator): New function.
4245 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4246 python-specific code to python/py-varobj.c.
4247 (install_visualizer): Call varobj_iter_delete instead of
4248 Py_XDECREF.
4249 * varobj.h (varobj_ensure_python_env): Declare.
4250
5a2e0d6e
YQ
42512014-06-12 Yao Qi <yao@codesourcery.com>
4252
4253 * varobj.c (struct varobj_item): New structure.
4254 (create_child_with_value): Update declaration.
4255 (varobj_add_child): Replace arguments 'name' and 'value' with
4256 'item'. All callers updated.
4257 (install_dynamic_child): Likewise.
4258 (update_dynamic_varobj_children): Likewise.
4259 (varobj_add_child): Likewise.
4260 (create_child_with_value): Likewise.
4261
919b9a93
JB
42622014-06-11 Joel Brobecker <brobecker@adacore.com>
4263
4264 * NEWS: Create a new section for the next release branch.
4265 Rename the section of the current branch, now that it has
4266 been cut.
4267
71a55bdf
JB
42682014-06-11 Joel Brobecker <brobecker@adacore.com>
4269
4270 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4271 * version.in: Bump version to 7.8.50.DATE-cvs.
4272
364fe1f7
PA
42732014-06-11 Pedro Alves <palves@redhat.com>
4274
4275 PR remote/17028
4276 * ser-mingw.c (net_windows_socket_check_pending): New function.
4277 (net_windows_select_thread): Ignore spurious wakeups. Use
4278 net_windows_socket_check_pending.
4279 (net_windows_wait_handle): Check for pending events with
4280 ioctlsocket, through net_windows_socket_check_pending, instead of
4281 checking the socket's event.
4282
5a6c7709
SC
42832014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4284
4285 * python/python-internal.h (gdb_PyObject_GetAttrString)
4286 (gdb_PyObject_HasAttrString): New inline function definitions.
4287 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4288 char * of the second argument to PyObject_GetAttrString.
74228e77 4289
0e58ee40
JB
42902014-06-10 Joel Brobecker <brobecker@adacore.com>
4291
4292 * serial.c (serial_write): Fix index of character to be printed
4293 in call to serial_logchar when serial debug traces are enabled.
4294
d190df30
JB
42952014-06-10 Joel Brobecker <brobecker@adacore.com>
4296
4297 * gdbtypes (resolve_dynamic_range): Add function description.
4298
b4b01d36
PA
42992014-06-09 Pedro Alves <palves@redhat.com>
4300
4301 * linux-nat.c (linux_child_follow_fork): Initialize status with
4302 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4303 inner block. Only pass the signal to PTRACE_DETACH if in pass
4304 state.
4305
3657956b
GB
43062014-06-09 Gary Benson <gbenson@redhat.com>
4307
4308 * common/signals.c (gdb_signal_from_host): Reorder to separate
4309 the always-available ANSI-standard signals from the signals that
4310 require checking.
4311 (do_gdb_signal_to_host): Likewise.
4312 * proc-events.c (signal_table): Likewise.
4313
c077881a
HZ
43142014-06-08 Hui Zhu <hui@codesourcery.com>
4315
4316 * common/linux-ptrace.c (linux_disable_event_reporting): New
4317 function.
4318 * common/linux-ptrace.h (linux_disable_event_reporting): New
4319 declaration.
4320 * linux-nat.c (linux_child_follow_fork): Do a single step before
4321 detach.
4322
4186eb54
KS
43232014-06-07 Keith Seitz <keiths@redhat.com>
4324
4325 Revert:
4326 PR c++/16253
4327 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4328 from symbol_matches_domain in symtab.c. All local callers
4329 of symbol_matches_domain updated.
4330 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4331 search STRUCT_DOMAIN.
4332 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4333 independently. standard_lookup will do that automatically.
4334 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4335 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4336 (cp_lookup_symbol_in_namespace): Likewise.
4337 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4338 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4339 may return a STRUCT_DOMAIN match.
4340 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4341 * cp-support.c: Include language.h.
4342 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4343 VAR_DOMAIN.
4344 * psymtab.c (match_partial_symbol): Compare the requested
4345 domain with the symbol's domain directly.
4346 (lookup_partial_symbol): Likewise.
4347 * symtab.c (lookup_symbol_in_language): Explain when/why
4348 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4349 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4350 appropriate languages.
4351 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4352 and moved to ada-lang.c
4353 (lookup_block_symbol): Explain that this function only returns
4354 symbol matching the requested DOMAIN.
4355 Compare the requested domain with the symbol's domain directly.
4356 (iterate_over_symbols): Compare the requested domain with the
4357 symbol's domain directly.
4358 * symtab.h (symbol_matches_domain): Remove.
4359
25326a28 43602014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
4361
4362 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4363 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4364 (gdbscm_guile_version_is_at_least): Declare.
4365 (gdbscm_scm_string_to_int): Declare.
4366 * guile/guile.c (gdbscm_guile_major_version): New global.
4367 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4368 (guile_datadir): New static global.
4369 (gdbscm_guile_data_directory): New function.
4370 (initialize_scheme_side): Update.
4371 (misc_guile_functions): Add guile-data-directory.
4372 (initialize_gdb_module): Fetch guile version number.
4373 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4374 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4375 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4376 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4377 comments.
4378 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4379 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4380 * guile/scm-value.c (gdbscm_value_to_string): Only call
4381 scm_port_conversion_strategy if Guile version >= 2.0.6.
4382
0a770bb2 43832014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4384
4385 * main.c (print_gdb_help): Add -q and --silent.
4386
73ba372c
GB
43872014-06-06 Gary Benson <gbenson@redhat.com>
4388
4389 * common/signals.c: Remove preprocessor conditionals for
4390 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4391 SIGSEGV and SIGTERM.
4392 * proc-events.c: Likewise.
4393
c33b2f12
MM
43942014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4395
4396 * symfile.c (symfile_free_objfile): Remove restriction to
4397 OBJF_USERLOADED.
4398 * symfile-mem.c (symbol_file_add_from_memory): Call
4399 add_target_sections_of_objfile.
4400
fb934770
LC
44012014-06-05 Ludovic Courtès <ludo@gnu.org>
4402
4403 * guile/scm-value.c (gdbscm_history_append_x): Use
4404 'vlscm_get_value_smob_arg_unsafe' instead of
4405 'vlscm_scm_to_value'.
4406
6ef284bd
SM
44072014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4408
4409 PR mi/15806
4410 * utils.c (printchar): Don't escape at all if quoter is NUL.
4411 Update function documentation to clarify effect of parameter
4412 QUOTER.
4413 * remote.c (escape_buffer): Pass '\\' as the quoter to
4414 fputstrn_unfiltered.
4415 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4416 generate the output.
4417 (mi_solib_unloaded): Same.
4418
270c9937
JB
44192014-06-05 Joel Brobecker <brobecker@adacore.com>
4420
4421 * development.sh: Delete.
4422 * Makefile.in (config.status): Adjust dependency on development.sh.
4423 * configure.ac: Adjust development.sh source call.
4424 * configure: Regenerate.
4425
16f691fb
DE
44262014-06-04 Doug Evans <xdje42@gmail.com>
4427
4428 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4429 is_scheme_bkpt, spec.
4430 (bpscm_make_breakpoint_smob): Initialize new members.
4431 (gdbscm_create_breakpoint_x): Split into two ...
4432 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4433 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4434 (scheme_function breakpoint_functions): Update.
4435 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4436 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4437 register-breakpoint!.
4438
ef7cab6b
JB
44392014-06-04 Joel Brobecker <brobecker@adacorer.com>
4440
4441 PR server/17023
4442 * mem-break.c (z_type_supported): Return zero if
4443 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4444
012370f6
TT
44452014-06-04 Tom Tromey <tromey@redhat.com>
4446
4447 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4448 value_from_contents_and_address_unresolved.
4449 (ada_template_to_fixed_record_type_1): Likewise.
4450 (ada_which_variant_applies): Likewise.
4451 * value.h (value_from_contents_and_address_unresolved): Declare.
4452 * value.c (value_from_contents_and_address_unresolved): New
4453 function.
4454 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4455 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4456 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4457
92e2a17f
TT
44582014-06-04 Tom Tromey <tromey@redhat.com>
4459
4460 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4461
c0939df1
TT
44622014-06-04 Tom Tromey <tromey@redhat.com>
4463
4464 * procfs.c (procfs_attach): Make "args" const.
4465 * windows-nat.c (windows_attach): Make "args" const.
4466 * nto-procfs.c (procfs_attach): Make "args" const.
4467 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4468 * go32-nat.c (go32_attach): Make "args" const.
4469 * gnu-nat.c (gnu_attach): Make "args" const.
4470 * darwin-nat.c (darwin_attach): Make "args" const.
4471 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4472 * linux-nat.c (linux_nat_attach): Make "args" const.
4473 * remote.c (extended_remote_attach_1, extended_remote_attach):
4474 Make "args" const.
4475 * target.h (struct target_ops) <to_attach>: Make "args" const.
4476 (find_default_attach): Likewise.
4477 * utils.c (parse_pid_to_attach): Make "args" const.
4478 * utils.h (parse_pid_to_attach): Update.
4479
8eaff7cd
TT
44802014-06-04 Tom Tromey <tromey@redhat.com>
4481
4482 * target-delegates.c: Rebuild.
4483 * target.c (default_thread_address_space): New function.
4484 (target_thread_address_space): Simplify.
4485 * target.h (struct target_ops) <to_thread_address_space>: Add
4486 TARGET_DEFAULT_FUNC.
4487
1913f160
DE
44882014-06-04 Doug Evans <xdje42@gmail.com>
4489
4490 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4491
70ad5bff
MM
44922014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4493
4494 * record-btrace.c: Include event-loop.h and inf-loop.h.
4495 (record_btrace_resume_exec_dir)
4496 (record_btrace_async_inferior_event_handler)
4497 (record_btrace_handle_async_inferior_event): New.
4498 (record_btrace_open): Create async event handler.
4499 (record_btrace_close): Delete async event handler.
4500 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4501 Mark async event handler.
4502 (record_btrace_execution_direction): New.
4503 (init_record_btrace_ops): Initialize to_execution_direction.
4504
b6210538
DE
45052014-06-03 Doug Evans <xdje42@gmail.com>
4506
4507 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4508 (gdbscm_make_parameter): Ditto.
4509
a5b1fd27
DE
45102014-06-03 Doug Evans <dje@google.com>
4511
4512 * exec.c (exec_close_1): Call clear_section_table instead of
4513 resize_section_table.
4514 (clear_section_table): New function.
4515 (resize_section_table): Make static. Rename arg num_added to
4516 adjustment.
4517 * exec.h (clear_section_table): Declare.
4518 (resize_section_table): Delete.
4519 * progspace.c (release_program_space): Call clear_section_table
4520 instead of resize_section_table.
4521
0c6e92a5
SC
45222014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4523
4524 * NEWS (Python Scripting): Add entry about the new xmethods
4525 feature.
4526
883964a7
SC
45272014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4528
4529 * python/py-xmethods.c: New file.
4530 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4531 (objfpy_dealloc): XDECREF on the new xmethods field.
4532 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4533 field.
4534 (objfpy_get_xmethods): New function.
4535 (objfile_getset): New entry 'xmethods'.
4536 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4537 (pspy_dealloc): XDECREF on the new xmethods field.
4538 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4539 field.
4540 (pspy_get_xmethods): New function.
4541 (pspace_getset): New entry 'xmethods'.
4542 * python/python-internal.h: Add declarations for new functions.
4543 * python/python.c (_initialize_python): Invoke
4544 gdbpy_initialize_xmethods.
4545 * python/lib/gdb/__init__.py (xmethods): New
4546 attribute.
4547 * python/lib/gdb/xmethod.py: New file.
4548 * python/lib/gdb/command/xmethods.py: New file.
4549
58992dc5
SC
45502014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4551
4552 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4553 best match method returned by find_overload_match is an xmethod.
4554 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4555 the best matching operator returned by find_overload_match is an
4556 xmethod.
4557 * valops.c: #include "extension.h".
4558 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4559 Return void. The list of matching source methods is returned in
4560 "fn_list" and a vector of matching debug method workers is
4561 returned in "xm_worker_vec". Update all callers.
4562 (value_find_oload_method_list): Likewise.
4563 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4564 non-NULL, then the index of the best matching method in this
4565 vector is returned. Update all callers.
4566 (find_overload_match): Include xmethods while performing overload
4567 resolution.
4568
e81e7f5e
SC
45692014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4570
4571 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4572 * extension-priv.h (struct extension_language_ops): Add the
4573 xmethod interface.
4574 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4575 get_matching_xmethod_workers, get_xmethod_argtypes,
4576 invoke_xmethod, free_xmethod_worker,
4577 free_xmethod_worker_vec): New functions.
4578 * extension.h: #include "common/vec.h".
4579 New function declarations.
4580 (struct xmethod_worker): New struct.
4581 (VEC (xmethod_worker_ptr)): New vector type.
4582 (xmethod_worker_ptr): New typedef.
4583 (xmethod_worker_vec): Likewise.
4584 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4585 builtin_type.
4586 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4587 (struct builtin_type): New field "xmethod".
4588 * valarith.c (value_ptradd): Assert that the value argument is not
4589 lval_xcallable.
4590 * valops.c (value_must_coerce_to_target): Return 0 for
4591 lval_xcallable values.
4592 * value.c (struct value): New field XM_WORKER in the field
4593 LOCATION.
4594 (value_address, value_raw_address): Return 0 for lval_xcallable
4595 values.
4596 (set_value_address): Assert that the value is not an
4597 lval_xcallable.
4598 (value_free): Free the associated xmethod worker when freeing
4599 lval_xcallable values.
4600 (set_value_component_location): Assert that the WHOLE value is not
4601 lval_xcallable.
4602 (value_of_xmethod, call_xmethod): New functions.
4603 * value.h: Declare "struct xmethod_worker".
4604 Declare new functions value_of_xmethod, call_xmethod.
4605
ef370185
JB
46062014-06-03 Joel Brobecker <brobecker@adacore.com>
4607 Pedro Alves <palves@redhat.com>
4608
4609 PR breakpoints/17000
4610 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4611 New function, extracted from software_breakpoint_inserted_here_p.
4612 (software_breakpoint_inserted_here_p): Replace factored out code
4613 by call to find_non_raw_software_breakpoint_inserted_here.
4614 (bp_target_info_copy_insertion_state): New function.
4615 (bkpt_insert_location): Handle the case of a single-step
4616 breakpoint already inserted at the same address.
4617 (bkpt_remove_location): Handle the case of a single-step
4618 breakpoint still inserted at the same address.
4619 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4620 breakpoint already inserted at the same address.
4621 (deprecated_remove_raw_breakpoint): Handle the case of a
4622 non-raw breakpoint still inserted at the same address.
4623 (find_single_step_breakpoint): New function, extracted from
4624 single_step_breakpoint_inserted_here_p.
4625 (find_single_step_breakpoint): New function,
4626 factored out from single_step_breakpoint_inserted_here_p.
4627 (single_step_breakpoint_inserted_here_p): Reimplement.
4628
1e2ccb61
BM
46292014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4630
4631 Pushed by Joel Brobecker <brobecker@adacore.com>
4632 * source.c (show_substitute_path_command): Fix display of matching
4633 substitution rules.
4634
d3448d85
GB
46352014-06-03 Gary Benson <gbenson@redhat.com>
4636
4637 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4638
06eb1586
DE
46392014-06-02 Doug Evans <xdje42@gmail.com>
4640
4641 Add parameter support for Guile.
4642 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4643 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4644 (scm-param.o): New rule.
4645 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4646 (gdbscm_misc_error): Declare.
4647 (gdbscm_canonicalize_command_name): Declare.
4648 (gdbscm_scm_to_host_string): Declare.
4649 (gdbscm_scm_from_host_string): Declare.
4650 (gdbscm_initialize_parameters): Declare.
4651 * guile/guile.c (initialize_gdb_module): Call
4652 gdbscm_initialize_parameters.
4653 * guile/lib/gdb.scm: Export parameter symbols.
4654 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4655 cmdscm_canonicalize_name and made public. All callers updated.
4656 * guile/scm-exception.c (gdbscm_misc_error): New function.
4657 * guile/scm-param.c: New file.
4658 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4659 (gdbscm_scm_to_host_string): New function.
4660 (gdbscm_scm_from_host_string): New function.
4661 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4662
e698b8c4
DE
46632014-06-02 Doug Evans <xdje42@gmail.com>
4664
4665 Add command support for Guile.
4666 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4667 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4668 (scm-cmd.o): New rule.
4669 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4670 (gdbscm_user_error_p): Declare.
4671 (gdbscm_parse_command_name): Declare.
4672 (gdbscm_valid_command_class_p): Declare.
4673 (gdbscm_initialize_commands): Declare.
4674 * guile/guile.c (initialize_gdb_module): Call
4675 gdbscm_initialize_commands.
4676 * guile/lib/gdb.scm: Export command symbols.
4677 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4678 (throw-user-error): New function.
4679 * guile/scm-cmd.c: New file.
4680 * guile/scm-exception.c (user_error_symbol): New static global.
4681 (gdbscm_user_error_p): New function.
4682 (gdbscm_initialize_exceptions): Set user_error_symbol.
4683 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4684
fb1f94b0
PM
46852014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4686
4687 * top.c (command_loop): Handle comments here...
4688 (command_line_input): ... not here.
4689
ded03782
DE
46902014-06-02 Doug Evans <xdje42@gmail.com>
4691
4692 Add progspace support for Guile.
4693 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4694 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4695 (scm-progspace.o): New rule.
4696 * guile/guile-internal.h (pspace_smob): New typedef.
4697 (psscm_pspace_smob_pretty_printers): Declare.
4698 (psscm_pspace_smob_from_pspace): Declare.
4699 (psscm_scm_from_pspace): Declare.
4700 * guile/guile.c (initialize_gdb_module): Call
4701 gdbscm_initialize_pspaces.
4702 * guile/lib/gdb.scm: Export progspace symbols.
4703 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4704 support.
4705 (append-pretty-printer!): Ditto.
4706 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4707 Implement.
4708 * guile/scm-progspace.c: New file.
4709
397998fc
AM
47102014-06-03 Alan Modra <amodra@gmail.com>
4711
4712 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4713 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4714
6aa5f3a6
DE
47152014-06-02 Doug Evans <dje@google.com>
4716
4717 Add support for skeletonless type units.
4718 * dwarf2read.c (struct dwarf2_per_objfile): New member
4719 n_allocated_type_units.
4720 (struct dwarf2_per_objfile) <tu_stats>: New member
4721 nr_all_type_units_reallocs.
4722 (create_signatured_type_table_from_index): Initialize
4723 n_allocated_type_units
4724 (create_all_type_units): Ditto.
4725 (add_type_unit): Move up in file. New arg slot.
4726 All callers updated. Increase space for all_type_units more
4727 efficiently.
4728 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4729 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4730 (lookup_dwp_signatured_type): Ditto.
4731 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4732 All callers updated.
4733 (build_type_psymtabs_1): Leave type_unit_groups as
4734 NULL if no TUs present.
4735 (print_tu_stats): New function.
4736 (process_skeletonless_type_unit): New function.
4737 (process_dwo_file_for_skeletonless_type_units): New
4738 function.
4739 (process_skeletonless_type_units): New function.
4740 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4741 Call print tu_stats if debugging enabled.
4742
41fac0cf
PA
47432014-06-02 Pedro Alves <palves@redhat.com>
4744
4745 * breakpoint.c (build_target_command_list): Don't build a command
4746 list if we have any duplicate location that isn't a dprintf.
4747
cd1608cc
PA
47482014-06-02 Pedro Alves <palves@redhat.com>
4749
4750 * breakpoint.c (dprintf_breakpoint_hit): New function.
4751 (initialize_breakpoint_ops): Install it as dprintf's
4752 breakpoint_hit method.
4753
486ef3b9
JB
47542014-06-02 Joel Brobecker <brobecker@adacore.com>
4755
4756 * source.c (substitute_path_rule_matches): Simplify using
4757 filename_ncmp instead of FILENAME_CMP.
4758
230cd560
JB
47592014-06-02 Joel Brobecker <brobecker@adacore.com>
4760
4761 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4762
16954d5d
LC
47632014-06-01 Ludovic Courtès <ludo@gnu.org>
4764
4765 * configure.ac: When Guile is available, check for the
4766 availability of 'scm_new_smob'.
4767 * configure, config.h.in: Regenerate.
4768 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4769 function.
4770
53e8a631
AB
47712014-05-30 Andrew Burgess <aburgess@broadcom.com>
4772
4773 * frame.c (struct frame_info): Add stop_string field.
4774 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4775 (get_prev_frame_always): Old content moved into
4776 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4777 TRY_CATCH, handle MEMORY_ERROR exceptions.
4778 (frame_stop_reason_string): New function definition.
4779 * frame.h (unwind_stop_reason_to_string): Extend comment to
4780 mention frame_stop_reason_string.
4781 (frame_stop_reason_string): New function declaration.
4782 * stack.c (frame_info): Switch to frame_stop_reason_string.
4783 (backtrace_command_1): Switch to frame_stop_reason_string.
4784 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4785 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4786 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4787
70e38b8e
AB
47882014-05-30 Andrew Burgess <aburgess@broadcom.com>
4789
4790 * frame.c (frame_stop_reason_string): Rename to ...
4791 (unwind_stop_reason_to_string): this.
4792 * frame.h (frame_stop_reason_string): Rename to ...
4793 (unwind_stop_reason_to_string): this.
4794 * stack.c (frame_info): Update call to frame_stop_reason_string.
4795 (backtrace_command_1): Likewise.
4796 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4797 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4798
938f0e2f
AB
47992014-05-30 Andrew Burgess <aburgess@broadcom.com>
4800
4801 * frame.c (remove_prev_frame): New function.
4802 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4803 remove_prev_frame.
4804
a09dd441
PA
48052014-05-29 Pedro Alves <palves@redhat.com>
4806
4807 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4808 and make it const. When a single-step decays to a continue,
4809 clear 'step', not 'hw_step'. Pass whether the caller wanted
4810 to step to user_visible_resume_ptid, not what we ask the
4811 target to do.
4812
bdc36728
PA
48132014-05-29 Pedro Alves <palves@redhat.com>
4814
4815 * infrun.c (process_event_stop_test, handle_step_into_function)
4816 (handle_step_into_function_backward): Adjust.
4817 Don't set the even thread's stop_step and call stop_waiting before
4818 calling end_stepping_range. Instead do that ...
4819 (end_stepping_range): ... here. Take an ecs pointer parameter.
4820
22bcd14b
PA
48212014-05-29 Pedro Alves <palves@redhat.com>
4822
4823 * infrun.c (stop_stepping): Rename to ...
4824 (stop_waiting): ... this.
4825 (proceed): Update comment.
4826 (process_event_stop_test, handle_inferior_event)
4827 (handle_signal_stop, handle_step_into_function)
4828 (handle_step_into_function_backward): Update.
4829
4ae57c05
PA
48302014-05-29 Pedro Alves <palves@redhat.com>
4831
4832 * infcall.c (run_inferior_call): Don't check whether the current
4833 thread is running after the proceed call.
4834
329ea579
PA
48352014-05-29 Pedro Alves <palves@redhat.com>
4836 Tom Tromey <tromey@redhat.com>
4837
4838 * NEWS: Mention "maint set target-async", "set mi-async", and that
4839 background execution commands are now always available.
4840 * target.h (target_async_permitted): Update comment.
4841 * target.c (target_async_permitted, target_async_permitted_1):
4842 Default to 1.
4843 (set_target_async_command): Rename to ...
4844 (maint_set_target_async_command): ... this.
4845 (show_target_async_command): Rename to ...
4846 (maint_show_target_async_command): ... this.
4847 (_initialize_target): Adjust.
4848 * infcmd.c (prepare_execution_command): Make extern.
4849 * inferior.h (prepare_execution_command): Declare.
4850 * infrun.c (set_observer_mode): Leave target async alone.
4851 * mi/mi-interp.c (mi_interpreter_init): Install
4852 mi_on_sync_execution_done as sync_execution_done observer.
4853 (mi_on_sync_execution_done): New function.
4854 (mi_execute_command_input_handler): Don't print the prompt if we
4855 just started a synchronous command with an async target.
4856 (mi_on_resume): Check sync_execution before printing prompt.
4857 * mi/mi-main.h (mi_async_p): Declare.
4858 * mi/mi-main.c: Include gdbcmd.h.
4859 (mi_async_p): New function.
4860 (mi_async, mi_async_1): New globals.
4861 (set_mi_async_command, show_mi_async_command, mi_async): New
4862 functions.
4863 (exec_continue): Call prepare_execution_command.
4864 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4865 (mi_execute_async_cli_command): Use mi_async_p.
4866 (_initialize_mi_main): Install "set mi-async". Make
4867 "target-async" a deprecated alias.
4868
92bcb5f9
PA
48692014-05-29 Pedro Alves <palves@redhat.com>
4870
4871 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4872 (_initialize_cli_interp): Adjust.
4873 * event-loop.c: Include "observer.h".
4874 (start_event_loop): Notify 'command_error' observers instead of
4875 calling display_gdb_prompt. Remove FIXME comment.
4876 * event-top.c (display_gdb_prompt): Remove call into the
4877 interpreters.
4878 * inf-loop.c: Include "observer.h".
4879 (inferior_event_handler): Notify 'command_error' observers instead
4880 of calling display_gdb_prompt.
4881 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4882 observers instead of calling display_gdb_prompt.
4883 * interps.c (interp_set): Don't call display_gdb_prompt.
4884 (current_interp_display_prompt_p): Delete.
4885 * interps.h (interp_prompt_p): Delete declaration.
4886 (interp_prompt_p_ftype): Delete.
4887 (struct interp_procs) <prompt_proc_p>: Delete field.
4888 (current_interp_display_prompt_p): Delete declaration.
4889 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4890 (_initialize_mi_interp): Adjust.
4891 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4892 'command_error' observers.
4893 (tui_on_sync_execution_done, tui_on_command_error): New
4894 functions.
4895 (tui_display_prompt_p): Delete.
4896 (_initialize_tui_interp): Adjust.
4897
fd664c91
PA
48982014-05-29 Pedro Alves <palves@redhat.com>
4899
4900 PR gdb/13860
4901 * cli/cli-interp.c: Include infrun.h and observer.h.
4902 (cli_uiout, cli_interp): New globals.
4903 (cli_on_signal_received, cli_on_end_stepping_range)
4904 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4905 functions.
4906 (cli_interpreter_init): Install them as 'end_stepping_range',
4907 'signal_received' 'signal_exited', 'exited' and 'no_history'
4908 observers.
4909 (_initialize_cli_interp): Remove cli_interp local.
4910 * infrun.c (handle_inferior_event): Call the several stop reason
4911 observers instead of printing the stop reason directly.
4912 (end_stepping_range): New function.
4913 (print_end_stepping_range_reason, print_signal_exited_reason)
4914 (print_exited_reason, print_signal_received_reason)
4915 (print_no_history_reason): Make static, and add an uiout
4916 parameter. Print to that instead of to CURRENT_UIOUT.
4917 * infrun.h (print_end_stepping_range_reason)
4918 (print_signal_exited_reason, print_exited_reason)
4919 (print_signal_received_reason print_no_history_reason): New
4920 declarations.
4921 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4922 'mi_uiout'.
4923 <cli_uiout>: New field.
4924 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4925 uiout for CLI output. Install 'signal_received',
4926 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4927 observers.
4928 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4929 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4930 (mi_on_no_history): New functions.
4931 (ui_out_free_cleanup): Delete function.
4932 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4933 instead use the one already stored in the MI interpreter data.
4934 (mi_ui_out): Adjust.
4935 * tui/tui-interp.c: Include infrun.h and observer.h.
4936 (tui_interp): New global.
4937 (tui_on_signal_received, tui_on_end_stepping_range)
4938 (tui_on_signal_exited, tui_on_exited)
4939 (tui_on_no_history): New functions.
4940 (tui_init): Install them as 'end_stepping_range',
4941 'signal_received' 'signal_exited', 'exited' and 'no_history'
4942 observers.
4943 (_initialize_tui_interp): Delete tui_interp local.
4944
8817a6f2
PA
49452014-05-29 Pedro Alves <palves@redhat.com>
4946
4947 PR gdb/15713
4948 * linux-nat.c (linux_nat_resume_callback): Rename the second
4949 parameter to 'except'. Skip LP if it points to EXCEPT.
4950 (linux_nat_resume): Don't mark the event lwp as not stopped
4951 before resuming sibling lwps. Instead ask
4952 linux_nat_resume_callback to skip the event lwp. Mark it as not
4953 stopped after actually resuming it.
4954 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4955 resuming it.
4956 (wait_lwp): Mark the lwp as stopped here.
4957 (stop_wait_callback): Mark the lwp as not stopped right after
4958 resuming it. Don't mark lwps as stopped here.
4959 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4960 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4961
251bde03
PA
49622014-05-29 Pedro Alves <palves@redhat.com>
4963
4964 PR PR15693
4965 * infrun.c (resume): Determine how much to resume depending on
4966 whether the caller wanted a step, not whether we can hardware step
4967 the target. Mark all threads that we intend to run as running,
4968 unless we're calling an inferior function.
4969 (normal_stop): If the thread is running an infcall, don't finish
4970 thread state.
4971 * target.c (target_resume): Don't mark threads as running here.
4972
7f3c0343
JB
49732014-05-28 Joel Brobecker <brobecker@adacore.com>
4974
4975 * serial.c (_initialize_serial): Remove support for
4976 the "set remotebaud" and "show remotebaud" commands.
4977 * NEWS: Add entry documenting the removal of that command.
4978
ee34b3f9
YQ
49792014-05-28 Yao Qi <yao@codesourcery.com>
4980
4981 * charset.c: Fix typo in comments.
4982
add6c04d
GB
49832014-05-27 Gary Benson <gbenson@redhat.com>
4984
4985 * utils.c (internal_vproblem): Prompt for a bug report.
4986
92c48fc5
AW
49872014-05-26 Andy Wingo <wingo@igalia.com>
4988
4989 * guile/scm-arch.c (arscm_mark_arch_smob):
4990 * guile/scm-block.c (bkscm_mark_block_smob)
4991 (bkscm_mark_block_syms_progress_smob):
4992 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4993 * guile/scm-exception.c (exscm_mark_exception_smob):
4994 * guile/scm-frame.c (frscm_mark_frame_smob):
4995 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4996 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4997 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4998 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4999 (ppscm_mark_pretty_printer_worker_smob):
5000 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5001 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5002 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5003 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5004 mark functions.
5005 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5006 function.
5007
b2715b27
AW
50082014-05-26 Andy Wingo <wingo@igalia.com>
5009 Doug Evans <xdje42@gmail.com>
5010
5011 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5012 empty_base_class. All uses updated.
5013 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5014 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5015 Adapt all callers.
5016 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5017 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5018 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5019 (gdbscm_gsmob_has_property_p, add_property_name)
5020 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5021 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5022 (gdb-object-has-property?, gdb-object-properties): Remove.
5023 (gdb-object-kind): Renamed from gsmob-kind.
5024
214ab2da
AW
50252014-05-26 Andy Wingo <wingo@igalia.com>
5026
5027 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5028 * configure: Regenerate.
5029
589fdceb
MM
50302014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5031
5032 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5033
67b5c0c1
MM
50342014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5035
5036 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5037 (replay_memory_access_read_only, replay_memory_access_read_write)
5038 (replay_memory_access_types, replay_memory_access)
5039 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5040 (cmd_set_record_btrace, cmd_show_record_btrace)
5041 (cmd_show_replay_memory_access): New.
5042 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5043 (record_btrace_remove_breakpoint): Replace
5044 record_btrace_allow_memory_access with replay_memory_access.
5045 (_initialize_record_btrace): Add commands.
5046 * NEWS: Announce it.
5047
036cd381
RR
50482014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5049
5050 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5051
c77c1e42
RR
50522014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5053
5054 * MAINTAINERS (Write After Approval): Move self back from
5055 paper trail.
5056
45741a9c
PA
50572014-05-22 Pedro Alves <palves@redhat.com>
5058
5059 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5060 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5061 (disable_randomization, enum exec_direction_kind)
5062 (execution_direction, stop_registers, start_remote)
5063 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5064 (wait_for_inferior, normal_stop, get_last_target_status)
5065 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5066 (insert_step_resume_breakpoint_at_sal)
5067 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5068 (set_step_info, print_stop_event, signal_stop_state)
5069 (signal_print_state, signal_pass_state, signal_stop_update)
5070 (signal_print_update, signal_pass_update)
5071 (update_signals_program_target, clear_exit_convenience_vars)
5072 (displaced_step_dump_bytes, update_observer_mode)
5073 (signal_catch_update, gdb_signal_from_command): Move
5074 declarations ...
5075 * infrun.h: ... to this new file.
5076 * amd64-tdep.c: Include infrun.h.
5077 * annotate.c: Include infrun.h.
5078 * arch-utils.c: Include infrun.h.
5079 * arm-linux-tdep.c: Include infrun.h.
5080 * arm-tdep.c: Include infrun.h.
5081 * break-catch-sig.c: Include infrun.h.
5082 * breakpoint.c: Include infrun.h.
5083 * common/agent.c: Include infrun.h instead of inferior.h.
5084 * corelow.c: Include infrun.h.
5085 * event-top.c: Include infrun.h.
5086 * go32-nat.c: Include infrun.h.
5087 * i386-tdep.c: Include infrun.h.
5088 * inf-loop.c: Include infrun.h.
5089 * infcall.c: Include infrun.h.
5090 * infcmd.c: Include infrun.h.
5091 * infrun.c: Include infrun.h.
5092 * linux-fork.c: Include infrun.h.
5093 * linux-nat.c: Include infrun.h.
5094 * linux-thread-db.c: Include infrun.h.
5095 * monitor.c: Include infrun.h.
5096 * nto-tdep.c: Include infrun.h.
5097 * procfs.c: Include infrun.h.
5098 * record-btrace.c: Include infrun.h.
5099 * record-full.c: Include infrun.h.
5100 * remote-m32r-sdi.c: Include infrun.h.
5101 * remote-mips.c: Include infrun.h.
5102 * remote-notif.c: Include infrun.h.
5103 * remote-sim.c: Include infrun.h.
5104 * remote.c: Include infrun.h.
5105 * reverse.c: Include infrun.h.
5106 * rs6000-tdep.c: Include infrun.h.
5107 * s390-linux-tdep.c: Include infrun.h.
5108 * solib-irix.c: Include infrun.h.
5109 * solib-osf.c: Include infrun.h.
5110 * solib-svr4.c: Include infrun.h.
5111 * target.c: Include infrun.h.
5112 * top.c: Include infrun.h.
5113 * windows-nat.c: Include infrun.h.
5114 * mi/mi-interp.c: Include infrun.h.
5115 * mi/mi-main.c: Include infrun.h.
5116 * python/py-threadevent.c: Include infrun.h.
5117
98eb56a4
PA
51182014-05-22 Pedro Alves <palves@redhat.com>
5119
5120 * infrun.c (handle_inferior_event): Store the exit code for
5121 --return-child-result here, instead of ...
5122 (print_exited_reason): ... here.
5123
17b2616c
PA
51242014-05-21 Pedro Alves <palves@redhat.com>
5125
5126 PR gdb/13860
5127 * gdbthread.h (struct thread_control_state): New field
5128 `command_interp'.
5129 * infrun.c (follow_fork): Copy the new thread control field to the
5130 child fork thread.
5131 (clear_proceed_status_thread): Clear the new thread control field.
5132 (proceed): Set the new thread control field.
5133 * interps.h (command_interp): Declare.
5134 * interps.c (command_interpreter): New global.
5135 (command_interp): New function.
5136 (interp_exec): Set `command_interpreter' while here.
5137 * cli-out.c (cli_uiout_dtor): New function.
5138 (cli_ui_out_impl): Install it.
5139 * mi/mi-interp.c: Include cli-out.h.
5140 (mi_cmd_interpreter_exec): Add comment.
5141 (restore_current_uiout_cleanup): New function.
5142 (ui_out_free_cleanup): New function.
5143 (mi_on_normal_stop): If finishing an execution command started by
5144 a CLI command, or any kind of breakpoint-like event triggered,
5145 print the stop event to the output (CLI) stream.
5146 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5147
5166082f
PA
51482014-05-21 Pedro Alves <palves@redhat.com>
5149
5150 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5151 current source line having changed.
5152 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5153 * infrun.c (normal_stop): Adjust call to
5154 set_current_sal_from_frame.
5155 * source.c (clear_lines_listed_range): New function.
5156 (set_current_source_symtab_and_line, identify_source_line): Clear
5157 the lines listed range.
5158 (line_info): Handle the first "info line" after the current source
5159 line having changed.
5160 * stack.c (print_stack_frame): Remove center handling.
5161 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5162 center sal.line.
5163
c1ee2fb3
PA
51642014-05-21 Pedro Alves <palves@redhat.com>
5165
5166 * inf-child.c (inf_child_mourn_inferior): New function.
5167 * inf-child.h (inf_child_mourn_inferior): New declaration.
5168 * darwin-nat.c (darwin_mourn_inferior): Use
5169 inf_child_mourn_inferior.
5170 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5171 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5172 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5173 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5174 * windows-nat.c (windows_mourn_inferior): Likewise.
5175
5c6d4fb2
DE
51762014-05-21 Doug Evans <xdje42@gmail.com>
5177
250748cb 5178 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 5179
4a2722c5
DE
51802014-05-21 Doug Evans <xdje42@gmail.com>
5181
17292b30 5182 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
5183 (gdbscm_out_of_range_error): Ditto.
5184 (gdbscm_memory_error): Ditto.
250748cb
DE
5185 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5186 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
5187 (gdbscm_out_of_range_error): Update.
5188 (gdbscm_memory_error): Update.
5189 (gdbscm_scm_to_target_string_unsafe): Delete.
5190
6a3cb8e8
PA
51912014-05-21 Pedro Alves <palves@redhat.com>
5192
5193 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5194 globals.
5195 (inf_child_open_target): New function.
5196 (inf_child_open): Use inf_child_open_target to push the target
5197 instead of erroring out.
5198 (inf_child_disconnect, inf_child_close)
5199 (inf_child_maybe_unpush_target): New functions.
5200 (inf_child_target): Install inf_child_disconnect and
5201 inf_child_close. Store a pointer to the returned object.
5202 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5203 declarations.
5204 * target.c (auto_connect_native_target): New global.
5205 (show_default_run_target): New function.
5206 (find_default_run_target): Return NULL if automatically connecting
5207 to the native target is disabled.
5208 (_initialize_target): Install set/show auto-connect-native-target.
5209 * NEWS: Mention "set auto-connect-native-target", and "target
5210 native".
5211 * linux-nat.c (super_close): New global.
5212 (linux_nat_close): Call super_close.
5213 (linux_nat_add_target): Store a pointer to the base class's
5214 to_close method.
5215 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5216 inf_child_maybe_unpush.
5217 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5218 already pushed.
5219 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5220 the inferior. Use inf_child_maybe_unpush_target.
5221 (inf_ttrace_attach): Don't push the target if it is already
5222 pushed.
5223 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5224 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5225 after mourning the inferior. Use inf_child_maybe_unpush_target.
5226 (darwin_attach_pid): Don't push the target if it is already
5227 pushed.
5228 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5229 mourning the inferior. Use inf_child_maybe_unpush_target.
5230 (gnu_detach): Use inf_child_maybe_unpush_target.
5231 * go32-nat.c (go32_create_inferior): Don't push the target if it
5232 is already pushed.
5233 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5234 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5235 (procfs_open): Rename to ...
5236 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5237 comments. Can target_preopen before changing node. Call
5238 inf_child_open_target to push the target explicitly.
5239 (procfs_attach): Don't push the target if it is already pushed.
5240 (procfs_detach): Use inf_child_maybe_unpush_target.
5241 (procfs_create_inferior): Don't push the target if it is already
5242 pushed.
5243 (nto_native_ops): New global.
5244 (procfs_open): Reimplement.
5245 (procfs_native_open): New function.
5246 (init_procfs_targets): Install procfs_native_open as to_open of
5247 "target native". Store a pointer to the "native" target in
5248 nto_native_ops.
5249 * procfs.c (procfs_attach): Don't push the target if it is already
5250 pushed.
5251 (procfs_detach): Use inf_child_maybe_unpush_target.
5252 (procfs_mourn_inferior): Only unpush the target after mourning the
5253 inferior. Use inf_child_maybe_unpush_target.
5254 (procfs_init_inferior): Don't push the target if it is already
5255 pushed.
5256 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5257 if it is already pushed.
5258
930ee1b1
PA
52592014-05-21 Pedro Alves <palves@redhat.com>
5260
5261 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5262 and "procfs" targets are now called "native" instead.
5263
1f5d1b13
PA
52642014-05-21 Pedro Alves <palves@redhat.com>
5265
5266 * go32-nat.c (go32_open): Delete.
5267 (go32_target): Don't override the to_open method.
5268
132f8e03
PA
52692014-05-21 Pedro Alves <palves@redhat.com>
5270
5271 * nto-procfs.c (procfs_can_run): New function.
5272 (nto_procfs_ops): New global.
5273 (init_procfs_targets): New, based on procfs_target. Install
5274 "target native" in addition to "target procfs".
5275 (_initialize_procfs): Call init_procfs_targets instead of adding
5276 the target here.
5277
03c136c3
PA
52782014-05-21 Pedro Alves <palves@redhat.com>
5279
5280 * windows-nat.c (windows_target): Don't override to_shortname,
5281 to_longname or to_doc.
5282
a635d0f3
PA
52832014-05-21 Pedro Alves <palves@redhat.com>
5284
5285 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5286 to_doc.
5287
4f9b5133
PA
52882014-05-21 Pedro Alves <palves@redhat.com>
5289
5290 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5291 to_shortname, to_longname or to_doc.
5292
bc85afde
PA
52932014-05-21 Pedro Alves <palves@redhat.com>
5294
5295 * go32-nat.c (go32_target): Don't override to_shortname,
5296 to_longname or to_doc.
5297
4ebfc96e
PA
52982014-05-21 Pedro Alves <palves@redhat.com>
5299
5300 * inf-child.c (inf_child_open): Remove mention of "child".
5301 (inf_child_target): Rename target to "native" instead of "child".
5302
2648dfed
AA
53032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5304
5305 * Makefile.in (SFILES): Delete "regset.c".
5306 (COMMON_OBS): Delete "regset.o".
5307 * regset.c: Remove.
5308 * regset.h (regset_alloc): Delete prototype.
5309
b13feb94
AA
53102014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5311
5312 * sparc-linux-tdep.c (sparc32_linux_gregset)
5313 (sparc32_linux_fpregset): New static regset structures.
5314 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5315 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5316 'fpregset' fields.
5317 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5318 (sparc64_linux_fpregset): New static regset structures.
5319 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5320 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5321 New static regset structures.
5322 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5323 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5324 New static regset structures.
5325 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5326 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5327 New static regset structures.
5328 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5329 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5330 New static regset structures.
5331 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5332
b4fd25c9
AA
53332014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5334
5335 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5336 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5337 register maps ("regmaps") from "*regset" to "*regmap". Do this
5338 for all regmap types and variables.
5339 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5340 (sparc32_linux_supply_core_gregset)
5341 (sparc32_linux_collect_core_gregset)
5342 (sparc32_linux_supply_core_fpregset)
5343 (sparc32_linux_collect_core_fpregset): Likewise.
5344 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5345 (sparc_gregmap, sparc_fpregmap): ... these.
5346 (sparc_supply_gregset, sparc_collect_gregset)
5347 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5348 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5349 (_initialize_sparc_nat): Rename regmaps.
5350 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5351 (sparc_gregmap, sparc_fpregmap): ... these.
5352 (sparc_supply_gregset, sparc_collect_gregset)
5353 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5354 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5355 Rename macros to...
5356 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5357 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5358 Likewise.
5359 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5360 Rename to...
5361 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5362 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5363 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5364 regmaps.
5365 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5366 (sparc32_bsd_fpregset): Rename to...
5367 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5368 (sparc32_bsd_fpregmap): ... these.
5369 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5370 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5371 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5372 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5373 (struct sparc_gregmap, struct sparc_fpregmap)
5374 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5375 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5376 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5377 (sparc32_supply_regset, sparc32_collect_gregset)
5378 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5379 prototypes.
5380 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5381 (sparc64_linux_ptrace_gregmap): ... this.
5382 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5383 (_initialize_sparc64_linux_nat): Rename regmaps.
5384 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5385 (sparc64_linux_core_gregmap): ... this.
5386 (sparc64_linux_supply_core_gregset)
5387 (sparc64_linux_collect_core_gregset)
5388 (sparc64_linux_supply_core_fpregset)
5389 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5390 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5391 (sparc64_sol2_fpregset): Rename to...
5392 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5393 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5394 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5395 regmaps.
5396 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5397 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5398 (sparc64_bsd_fpregset): Rename to...
5399 (struct sparc_gregmap, sparc64_sol2_gregmap)
5400 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5401 (sparc64_bsd_fpregmap): ... these.
5402 (sparc64_supply_gregset, sparc64_collect_gregset)
5403 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5404 prototypes.
5405 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5406 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5407 (sparc64fbsd_gregmap): ... this.
5408 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5409 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5410 Rename regmaps.
5411 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5412 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5413 (sparc64nbsd_collect_fpregset): Likewise.
5414 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5415 (sparc64nbsd_gregmap): ... this.
5416 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5417 regmaps.
5418 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5419 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5420 (sparc64obsd_gregmap): ... this.
5421 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5422 regmaps.
5423 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5424 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5425 (sparc32nbsd_gregmap): ... this.
5426 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5427 regmaps.
5428
8fea3224
AA
54292014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5430
5431 * score-tdep.c (score7_linux_gregset): New static regset
5432 structure.
5433 (score7_linux_regset_from_core_section): Remove dynamic regset
5434 allocation.
5435 (score_gdbarch_init): Drop allocation of tdep structure.
5436 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5437
24534243
AA
54382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5439
5440 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5441 regset structures.
5442 (am33_regset_from_core_section): Remove dynamic regset
5443 allocations.
5444
b7195f27
AA
54452014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5446
5447 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5448 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5449 structures.
5450 (mips_linux_regset_from_core_section): Remove dynamic regset
5451 allocations.
5452 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5453 'gregset64', 'fpregset', and 'fpregset64'.
5454 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5455 deleted tdep fields.
5456
ecc37a5a
AA
54572014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5458
5459 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5460 regset structures.
5461 (amd64_regset_from_core_section): Remove dynamic regset
5462 allocations.
5463 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5464 structure.
5465 (amd64obsd_regset_from_core_section): Remove dynamic regset
5466 allocation.
5467 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5468 Likewise.
5469 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5470 x86-common regset supply function.
5471 * i386-tdep.c (i386_collect_gregset): Make static.
5472 (i386_gregset): New global regset structure.
5473 (i386_fpregset, i386_xstateregset): New static regset structures.
5474 (i386_regset_from_core_section): Remove dynamic regset
5475 allocations.
5476 (i386_gdbarch_init): Remove initialization of tdep fields
5477 'gregset', 'fpregset', and 'xstateregset'.
5478 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5479 'fpregset', and 'xstateregset'.
5480 (i386_collect_gregset): Remove prototype.
5481 (i386_gregset): New declaration.
5482 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5483 structure.
5484 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5485 allocation.
5486
b7611c43
AA
54872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5488
5489 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5490 (arm_linux_vfpregset): New static regset structures.
5491 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5492 regset structures.
5493 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5494 and 'vfpregset' fields.
5495
a069a2bd
AA
54962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5497
5498 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5499 (aarch64_linux_fpregset): New static regset structures.
5500 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5501 of regset structures.
5502 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5503 'fpregset' fields.
5504
09424cff
AA
55052014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5506
5507 * regset.h (struct regset): Remove gdbarch field.
5508 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5509 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5510 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5511 Likewise.
5512 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5513 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5514 (ppc32_linux_vsxregset): Likewise.
5515 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5516 via the regcache instead of the regset.
5517 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5518 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5519 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5520 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5521 Likewise.
5522
3ca7dae4
AA
55232014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5524
5525 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5526 Constify structures.
5527 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5528 (alphanbsd_aout_gregset): Likewise.
5529 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5530 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5531 Likewise.
5532 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5533 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5534 Likewise.
5535 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5536 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5537 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5538 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5539 * m88k-tdep.c (m88k_gregset): Likewise.
5540 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5541 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5542 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5543 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5544 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5545 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5546 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5547 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5548 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5549 Likewise.
5550 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5551 * sh-tdep.h (sh_corefile_gregset): Likewise.
5552 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5553 * vax-tdep.c (vax_gregset): Likewise.
5554
5876f503
JK
55552014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5556
5557 Fix TLS access for -static -pthread.
5558 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5559 (try_thread_db_load_1): Initialize it.
5560 (thread_db_get_thread_local_address): Call it if LM is zero.
5561 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5562 * target.h (struct target_ops) (to_get_thread_local_address): Add
5563 load_module_addr comment.
5564
0256a6ac
PA
55652014-05-21 Pedro Alves <palves@redhat.com>
5566
5567 * dcache.c (dcache_read_memory_partial): If reading the cache line
5568 fails, fallback to reading just the memory the caller wanted.
5569
227533ac
DE
55702014-05-20 Doug Evans <dje@google.com>
5571
5572 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5573 instead of get_current_arch.
5574
936d2992
PA
55752014-05-20 Pedro Alves <palves@redhat.com>
5576
5577 * NEWS: Mention that compare-sections now works with all targets.
5578
5579 * remote.c (PACKET_qCRC): New enum value.
5580 (remote_verify_memory): Don't send qCRC if the target has no
5581 execution. Use packet_support/packet_ok. If the target doesn't
5582 support the qCRC packet, fallback to a deep memory copy.
5583 (compare_sections_command): Say "target image" instead of "remote
5584 executable".
5585 (_initialize_remote): Add PACKET_qCRC to the list of config
5586 packets that have no associated command. Extend comment.
5587 * target.c (simple_verify_memory, default_verify_memory): New
5588 function.
5589 * target.h (struct target_ops) <to_verify_memory>: Default to
5590 default_verify_memory.
5591 (simple_verify_memory): New declaration.
5592 * target-delegates.c: Regenerate.
5593
e59fa00f
MM
55942014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5595
5596 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5597
f2205de0
HZ
55982014-05-20 Hui Zhu <hui@codesourcery.com>
5599 Yao Qi <yao@codesourcery.com>
5600
5601 PR backtrace/16558
5602 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5603 and change address of sp and pc.
5604
c4e54771
TT
56052014-05-19 Tom Tromey <tromey@redhat.com>
5606
5607 * gdbtypes.c (rank_function): Use XNEWVEC.
5608 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5609
73051182
DE
56102014-05-19 Doug Evans <dje@google.com>
5611
5612 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5613 build_type_unit_groups and moved closer to only caller. Remove
5614 arguments. All references updated. Remove outdated .gdb_index
5615 comment.
5616 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5617 build_type_psymtabs_1.
5618
8832e7e3
DE
56192014-05-19 Doug Evans <dje@google.com>
5620
5621 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5622 n_type_unit_groups, all_type_unit_groups. All uses removed.
5623 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5624 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5625 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5626 (add_type_unit_group_to_table): Delete.
5627
cd8ae15e
DE
56282014-05-19 Doug Evans <dje@google.com>
5629
5630 * eval.c (evaluate_subexp_standard): Add some comments.
5631
08f4850b
DE
56322014-05-17 Doug Evans <xdje42@gmail.com>
5633
5634 * progspace.c (remove_program_space): Delete, unused.
5635 * progspace.h (remove_program_space): Ditto.
5636
bed8455c
DE
56372014-05-17 Doug Evans <xdje42@gmail.com>
5638
5639 * inferior.c (prune_inferiors): Fix comment.
5640 (remove_inferior_command): Call prune_program_spaces.
5641
8d551b02
DE
56422014-05-16 Doug Evans <dje@google.com>
5643
5644 New command line option -D.
5645 * NEWS: Mention it.
5646 * main.c (set_gdb_data_directory): New function.
5647 (captured_main): Recognize -D. Flag error for --data-directory "".
5648 Call set_gdb_data_directory.
5649 (print_gdb_help): Print --data-directory, -D.
5650 * main.h (set_gdb_data_directory): Declare.
5651 * top.c (staged_gdb_datadir): New static global.
5652 (set_gdb_datadir): Call set_gdb_data_directory
5653 (show_gdb_datadir): New function.
5654 (init_main): Update init of data-directory parameter.
5655
18848e28
GF
56562014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5657
5658 Import the "dirfd" gnulib module.
5659 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5660 * gnulib/aclocal.m4: Update.
5661 * gnulib/config.in: Update.
5662 * gnulib/configure: Update.
5663 * gnulib/import/Makefile.am: Update.
5664 * gnulib/import/Makefile.in: Update.
5665 * gnulib/import/dirfd.c: New.
5666 * gnulib/import/m4/dirfd.m4: New.
5667 * gnulib/import/m4/gnulib-cache.m4: Update.
5668 * gnulib/import/m4/gnulib-comp.m4: Update.
5669
95c64f92
YQ
56702014-05-16 Pierre Muller <muller@sourceware.org>
5671 Yao Qi <yao@codesourcery.com>
5672
5673 * valprint.c (print_wchar): Move the code on checking whether
5674 W is a printable wide char to the default branch of switch
5675 statement below. Call wchar_printable instead of gdb_iswprint.
5676
cac395ea
TM
56772014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5678
19679eca 5679 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5680 ldr.w and ldrd instructions.
5681
83655187
DE
56822014-05-15 Doug Evans <dje@google.com>
5683
5684 * dwarf2read.c (read_structure_type): Delete outdated comments.
5685
dd756689
TT
56862014-05-14 Tom Tromey <tromey@redhat.com>
5687
5688 * macrocmd.c (print_macro_definition): Reindent.
5689
75ddda77
DE
56902014-05-13 Doug Evans <xdje42@gmail.com>
5691
5692 * python/py-cmd.c (cmdpy_completer): Add comment.
5693 (completers): Make const.
5694
b0f16a3e
SM
56952014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5696
5697 * infrun.c (resume): Remove should_resume (unused). Move up
5698 declaration of resume_ptid.
5699
033c3379
TT
57002014-05-13 Tom Tromey <tromey@redhat.com>
5701
5702 * language.h (unop_type_check): Remove.
5703 (binop_type_check): Don't declare.
5704
9b44a3a5
AA
57052014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5706
5707 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5708 call to regcache_raw_collect.
5709
303a33fa
SM
57102014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5711
5712 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5713 mi_console->quote as the quoting character.
5714
196100a0
SM
57152014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5716
5717 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5718
f989a1c8
TT
57192014-04-29 Tom Tromey <tromey@redhat.com>
5720
5721 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5722 "show debug varobj".
5723
9404b58f
KM
57242014-05-07 Kyle McMartin <kyle@redhat.com>
5725
5726 Pushed by Joel Brobecker <brobecker@adacore.com>.
5727 * aarch64-tdep.c (aarch64_software_single_step): New function.
5728 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5729 with aarch64_software_single_step.
5730
5e49ba57
JB
57312014-05-05 Joel Brobecker <brobecker@adacore.com>
5732
5733 GDB 7.7.1 released.
5734
c888a17d
KS
57352014-05-05 Keith Seitz <keiths@redhat.com>
5736
5737 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5738 variable or history value is successfully parsed.
5739
290a839c
YQ
57402014-05-05 Yao Qi <yao@codesourcery.com>
5741 Pedro Alves <palves@redhat.com>
5742
5743 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5744 address of blocks that intersects the requested range. Trim
5745 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5746 sections.
5747 * ctf.c (ctf_xfer_partial): Likewise.
5748
91256dc2
YQ
57492014-05-05 Yao Qi <yao@codesourcery.com>
5750
5751 * printcmd.c (display_command): Remove the check to
5752 target_has_execution.
5753
07284463
MK
57542014-05-03 Mark Kettenis <kettenis@gnu.org>
5755
5756 * ppcobsd-nat.c: Include "obsd-nat.h".
5757 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5758 add_target.
5759 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5760
30a1e6cc
SDJ
57612014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5762
5763 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5764 and 16-bit signed and unsigned arguments. Update comment.
5765 (stap_parse_probe_arguments): Extend code to handle such
5766 arguments. Use warning instead of complaint to notify about
5767 unrecognized bitness.
5768
f33da99a
SDJ
57692014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5770
5771 PR breakpoints/16889
5772 * stap-probe.c (stap_parse_probe_arguments): Simplify
5773 check for non-prefixed probes (i.e., probes whose
5774 arguments do not start with "N@"). Always set the
5775 argument type to a sane value.
5776
95cf3b38
DT
57772014-05-01 David Taylor <dtaylor@emc.com>
5778
5779 * remote.c (compare_sections_command): Add -r option to compare
5780 all loadable read-only sections.
5781
1cfdf534
SC
57822014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5783
5784 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5785 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5786 Update all callers.
5787 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5788 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5789 Remove unused CORE_ADDR argument. Update all callers.
5790
ca4f7f8b
PA
57912014-04-29 Pedro Alves <palves@redhat.com>
5792
5793 * remote.c (struct packet_config) <detect>: Extend comment.
5794 (add_packet_config_cmd): Don't set the config's detect or support
5795 fields here.
5796 (init_all_packet_configs): Also initialize the config's 'detect'
5797 field.
5798 (reset_all_packet_configs_support): New function.
5799 (remote_open_1): Call reset_all_packet_configs_support instead of
5800 init_all_packet_configs.
5801 (_initialize_remote): Initialize all packet configs. Assert that
5802 all packets have an associated command, except a few known
5803 outliers.
5804
11c1ba78
JB
58052014-04-28 Joel Brobecker <brobecker@adacore.com>
5806
5807 * dwarf2read.c (read_subrange_type): Handle dynamic
5808 DW_AT_lower_bound attributes.
5809
8739bc53
JB
58102014-04-28 Joel Brobecker <brobecker@adacore.com>
5811
5812 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5813 dynamic bounds before computing its upper bound.
5814 (ada_discrete_type_low_bound): Same as above with the lower bound.
5815
6f8a3220
JB
58162014-04-28 Joel Brobecker <brobecker@adacore.com>
5817
5818 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5819 range types. Adjust the array handling implementation to
5820 take advantage of this change.
5821 (resolve_dynamic_range): New function, mostly extracted from
5822 resolve_dynamic_bounds.
5823 (resolve_dynamic_array): New function, mostly extracted from
5824 resolve_dynamic_bounds.
5825 (resolve_dynamic_bounds): Delete.
5826 (resolve_dynamic_type): Reimplement. Add handling of
5827 TYPE_CODE_RANGE types.
5828
4d072ce4
JB
58292014-04-28 Joel Brobecker <brobecker@adacore.com>
5830
5831 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5832 handling of parallel ___XA types.
5833
52865325
JB
58342014-04-28 Joel Brobecker <brobecker@adacore.com>
5835
5836 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5837 unnecessary second call to static_unwrap_type.
5838
433e77fa
HZ
58392014-04-27 Hui Zhu <hui@codesourcery.com>
5840
5841 * stack.c (print_frame_info): Call do_gdb_disassembly with
5842 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5843
b51a69ee
DE
58442014-04-26 Doug Evans <xdje42@gmail.com>
5845
5846 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5847
7ae1a6a6
PA
58482014-04-25 Pedro Alves <palves@redhat.com>
5849
5850 PR server/16255
5851 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5852 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5853 and newline from built string.
5854 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5855 (linux_ptrace_attach_fail_reason): ... this.
5856 * linux-nat.c (linux_nat_attach): Adjust to use
5857 linux_ptrace_attach_fail_reason.
5858
4082afcc
PA
58592014-04-25 Pedro Alves <palves@redhat.com>
5860
5861 * remote.c (struct remote_state): Remove multi_process_aware,
5862 non_stop_aware, cond_tracepoints, cond_breakpoints,
5863 breakpoint_commands, fast_tracepoints, static_tracepoints,
5864 install_in_trace, disconnected_tracing,
5865 enable_disable_tracepoints, string_tracing, and
5866 augmented_libraries_svr4_read fields.
5867 (remote_multi_process_p): Move further below in the file.
5868 (struct packet_config): Add comments.
5869 (update_packet_config): Delete function.
5870 (show_packet_config_cmd): Use packet_config_support.
5871 (add_packet_config_cmd): Use NULL as set callback.
5872 (packet_ok): "set remote foo-packet"-style commands no longer
5873 change config->supported -- adjust.
5874 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5875 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5876 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5877 (PACKET_QNonStop, PACKET_multiprocess_feature)
5878 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5879 (PACKET_DisconnectedTracing_feature)
5880 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5881 (set_remote_protocol_packet_cmd): Delete function.
5882 (packet_config_support, packet_support): New functions.
5883 (set_remote_protocol_Z_packet_cmd): Don't call
5884 update_packet_config.
5885 (remote_query_attached, remote_pass_signals)
5886 (remote_program_signals, remote_threads_info)
5887 (remote_threads_extra_info, remote_start_remote): Use
5888 packet_support.
5889 (remote_start_remote): Use packet_config_support and
5890 packet_support.
5891 (init_all_packet_configs): Set all packets to unknown support,
5892 instead of calling update_packet_config.
5893 (remote_check_symbols): Use packet_support.
5894 (remote_supported_packet): Unconditionally set the packet config's
5895 support status.
5896 (remote_multi_process_feature, remote_non_stop_feature)
5897 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5898 (remote_breakpoint_commands_feature)
5899 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5900 (remote_install_in_trace_feature)
5901 (remote_disconnected_tracing_feature)
5902 (remote_enable_disable_tracepoint_feature)
5903 (remote_string_tracing_feature)
5904 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5905 (remote_protocol_features): Adjust to use remote_supported_packet
5906 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5907 "ConditionalTracepoints", "ConditionalBreakpoints",
5908 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5909 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5910 "EnableDisableTracepoints", and "tracenz".
5911 (remote_query_supported): Use packet_support.
5912 (remote_open_1): Adjust.
5913 (extended_remote_attach_1): Use packet_support. Switch on the
5914 result of packet_ok instead of checking whether the packet ended
5915 up disabled.
5916 (remote_vcont_resume): Use packet_support.
5917 (remote_resume, remote_stop_ns, fetch_register_using_p)
5918 (remote_prepare_to_store, store_register_using_P)
5919 (check_binary_download, remote_write_bytes): Use packet_support.
5920 (remote_vkill): Use packet_support. Switch on the result of
5921 packet_ok instead of checking whether the packet ended up
5922 disabled.
5923 (extended_remote_supports_disable_randomization): Use
5924 packet_support.
5925 (extended_remote_run): Switch on the result of packet_ok instead
5926 of checking whether the packet ended up disabled.
5927 (remote_insert_breakpoint, remote_remove_breakpoint)
5928 (remote_insert_watchpoint, remote_remove_watchpoint)
5929 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5930 packet_support.
5931 (remote_search_memory): Use packet_config_support.
5932 (remote_get_thread_local_address, remote_get_tib_address)
5933 (remote_hostio_send_command, remote_can_execute_reverse): Use
5934 packet_support.
5935 (remote_supports_cond_tracepoints)
5936 (remote_supports_cond_breakpoints)
5937 (remote_supports_fast_tracepoints)
5938 (remote_supports_static_tracepoints)
5939 (remote_supports_install_in_trace)
5940 (remote_supports_enable_disable_tracepoint)
5941 (remote_supports_string_tracing)
5942 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5943 the packet config says the feature is enabled or disabled.
5944 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5945 (remote_get_trace_status): Use packet_support.
5946 (remote_set_disconnected_tracing): Adjust to check whether the
5947 feature is enabled with packet_support.
5948 (remote_set_trace_buffer_size, remote_use_agent)
5949 (remote_can_use_agent, remote_supports_btrace): Use
5950 packet_support.
5951 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5952 Use packet_config_support.
5953 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5954 the packet config says the feature is enabled or disabled.
5955 (set_range_stepping): Use packet_support.
5956
bdb52a22
TT
59572014-04-25 Tom Tromey <tromey@redhat.com>
5958
5959 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5960 argument.
5961
e9475ead
SA
59622014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5963
5964 * NEWS: Mention support for C99 variable length arrays.
5965
82eacd52
JB
59662014-04-24 Joel Brobecker <brobecker@adacore.com>
5967
5968 * ada-lang.c (standard_exc): Expand introductory comment.
5969
01f9f808
MS
59702014-04-24 Michael Sturm <michael.sturm@mintel.com>
5971 Walfred Tedeschi <walfred.tedeschi@intel.com>
5972
5973 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5974 AVX512 registers.
5975 (amd64_linux_read_description): Add code to handle AVX512 xstate
5976 mask and return respective tdesc.
5977 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5978 and features/i386/x32-avx512-linux.c.
5979 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5980 (amd64_linux_core_read_description): Add code to handle AVX512
5981 xstate mask and return respective tdesc.
5982 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5983 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5984 calculation.
5985 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5986 (tdesc_amd64_avx512_linux): New prototype.
5987 (tdesc_x32_avx512_linux): Likewise.
5988 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5989 features/i386/x32-avx512.c.
5990 (amd64_ymm_avx512_names): New register names for pseudo
5991 registers YMM16-31.
5992 (amd64_ymmh_avx512_names): New register names for raw registers
5993 YMMH16-31.
5994 (amd64_k_names): New register names for K registers.
5995 (amd64_zmmh_names): New register names for ZMM raw registers.
5996 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5997 (amd64_xmm_avx512_names): New register names for XMM16-31
5998 registers.
5999 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6000 registers.
6001 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6002 if feature is present.
6003 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6004 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6005 (AMD64_NUM_REGS): Adjust to new number of registers.
6006 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6007 registers supplied via XSTATE by AVX512 registers.
6008 (i386_linux_read_description): Add case for AVX512.
6009 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6010 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6011 (i386_linux_core_read_description): Add case for AVX512.
6012 (i386_linux_init_abi): Install supported register note section
6013 for AVX512.
6014 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6015 AVX512.
6016 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6017 registers to be number of zmm7h + 1.
6018 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6019 * i386-tdep.c: Include features/i386/i386-avx512.c.
6020 (i386_zmm_names): Add ZMM pseudo register names array.
6021 (i386_zmmh_names): Add ZMM raw register names array.
6022 (i386_k_names): Add K raw register names array.
6023 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6024 registers. AVX512 has 16 more ZMM registers than there are YMM
6025 registers.
6026 (i386_zmmh_regnum_p): Add function to look up register number of
6027 ZMM raw registers.
6028 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6029 (i386_k_regnum_p): Likewise for K raw registers.
6030 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6031 registers added by AVX512.
6032 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6033 registers added by AVX512.
6034 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6035 added by AVX512.
6036 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6037 (i386_pseudo_register_name): Add ZMM pseudo registers.
6038 (i386_zmm_type): Construct and return vector registers type for ZMM
6039 registers.
6040 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6041 ZMM0-31 pseudo registers and K registers.
6042 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6043 and YMM16-31 registers from register cache.
6044 (i386_pseudo_register_write): Add code to write K, ZMM and
6045 YMM16-31 registers.
6046 (i386_register_reggroup_p): Add code to include/exclude AVX512
6047 registers in/from respective register groups.
6048 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6049 registers if feature is present in xcr0.
6050 (i386_gdbarch_init): Add code to initialize AVX512 feature
6051 variables in tdep structure, wire in pseudo registers and call
6052 initialize_tdesc_i386_avx512.
6053 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6054 variables.
6055 (i386_regnum): Add AVX512 registers.
6056 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6057 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6058 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6059 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6060 512 bits wide.
6061 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6062 (i386_ymm_avx512_regnum_p): Likewise.
6063 (i386_k_regnum_p): Likewise.
6064 (i386_zmm_regnum_p): Likewise.
6065 (i386_zmmh_regnum_p): Likewise.
6066 * i387-tdep.c : Update year in copyright notice.
6067 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6068 XSAVE buffer.
6069 (XSAVE_YMM_AVX512_ADDR): New macro.
6070 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6071 XSAVE buffer.
6072 (XSAVE_XMM_AVX512_ADDR): New macro.
6073 (xsave_avx512_k_offset): New table for K register offsets in
6074 XSAVE buffer.
6075 (XSAVE_AVX512_K_ADDR): New macro.
6076 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6077 in XSAVE buffer.
6078 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6079 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6080 buffer.
6081 (i387_collect_xsave): Add code to collect AVX512 registers from
6082 XSAVE buffer.
6083 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6084 of XMM16-31 registers.
6085 (I387_NUM_K_REGS): New define for number of K registers.
6086 (I387_K0_REGNUM): New define for K0 register number.
6087 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6088 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6089 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6090 registers.
6091 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6092 (I387_XMM16_REGNUM): New define for XMM16 register number.
6093 (I387_YMM0_REGNUM): New define for YMM0 register number.
6094 (I387_KEND_REGNUM): New define for last K register number.
6095 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6096 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6097 number.
6098 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6099 number.
6100 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6101 size.
6102 * features/Makefile: Add AVX512 related files.
6103 * features/i386/32bit-avx512.xml: New file.
6104 * features/i386/64bit-avx512.xml: Likewise.
6105 * features/i386/amd64-avx512-linux.c: Likewise.
6106 * features/i386/amd64-avx512-linux.xml: Likewise.
6107 * features/i386/amd64-avx512.c: Likewise.
6108 * features/i386/amd64-avx512.xml: Likewise.
6109 * features/i386/i386-avx512-linux.c: Likewise.
6110 * features/i386/i386-avx512-linux.xml: Likewise.
6111 * features/i386/i386-avx512.c: Likewise.
6112 * features/i386/i386-avx512.xml: Likewise.
6113 * features/i386/x32-avx512-linux.c: Likewise.
6114 * features/i386/x32-avx512-linux.xml: Likewise.
6115 * features/i386/x32-avx512.c: Likewise.
6116 * features/i386/x32-avx512.xml: Likewise.
6117 * regformats/i386/amd64-avx512-linux.dat: New file.
6118 * regformats/i386/amd64-avx512.dat: Likewise.
6119 * regformats/i386/i386-avx512-linux.dat: Likewise.
6120 * regformats/i386/i386-avx512.dat: Likewise.
6121 * regformats/i386/x32-avx512-linux.dat: Likewise.
6122 * regformats/i386/x32-avx512.dat: Likewise.
6123 * NEWS: Add note about new support for AVX512.
6124
6125
08351840
PA
61262014-04-23 Pedro Alves <palves@redhat.com>
6127
6128 * breakpoint.c (insert_bp_location): Tolerate errors if the
6129 breakpoint is set in a user-loaded objfile.
6130 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6131 location is marked shlib_disabled. If the breakpoint is set in a
6132 user-loaded objfile is a GDB-side memory breakpoint, validate it
6133 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6134 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6135 flag.
6136 * mem-break.c (memory_validate_breakpoint): New function.
6137 * objfiles.c (userloaded_objfile_contains_address_p): New
6138 function.
6139 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6140 * target.h (memory_validate_breakpoint): New declaration.
6141
076855f9
PA
61422014-04-23 Pedro Alves <palves@redhat.com>
6143
6144 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6145 the breakpoint is set in a shared library, only suppress
6146 errors for software breakpoints, not hardware breakpoints.
6147
483805cf
PA
61482014-04-22 Pedro Alves <palves@redhat.com>
6149
6150 * infrun.c (schedlock_applies): New function, factored out from
6151 find_thread_needs_step_over.
6152 (find_thread_needs_step_over): Use it.
6153 (switch_back_to_stepped_thread): Always clear trap_expected if the
6154 step over is finished. Return early if scheduler locking applies.
6155 Look for the stepping thread and a potential step-over thread with
6156 a single loop.
6157 (currently_stepping_or_nexting_callback): Delete.
6158
a75fef0e
NC
61592014-04-22 Nick Clifton <nickc@redhat.com>
6160
6161 * NEWS: Mention that ARM sim now supports tracing.
6162
48b6e87e
YQ
61632014-04-22 Yao Qi <yao@codesourcery.com>
6164
6165 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6166 to ...
6167 * tracefile.c (tracefile_fetch_registers): ... it. New
6168 function.
6169 * tracefile.h (tracefile_fetch_registers): Declare.
6170 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6171 tracefile_fetch_registers.
6172
17617f2d
EZ
61732014-04-19 Eli Zaretskii <eliz@gnu.org>
6174
6175 PR gdb/14018
6176 * windows-nat.c (thread_rec): Don't display a warning when
6177 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6178 fails for any reason, set th->suspended to -1, so that we don't
6179 try to resume such a thread. Also, don't return NULL in these
6180 cases, to avoid completely ruin the session due to "PC register is
6181 not available" error.
6182 (do_windows_fetch_inferior_registers): Check errors in
6183 GetThreadContext call.
6184 (windows_continue): Accept an additional argument KILLED; if not
6185 zero, ignore errors in the SetThreadContext call, since the
6186 inferior was killed and is shutting down.
6187 (windows_resume, get_windows_debug_event)
6188 (windows_create_inferior, windows_mourn_inferior)
6189 (windows_kill_inferior): All callers of windows_continue changed
6190 to adjust to its new calling sequence.
6191
5723a6fd
YQ
61922014-04-19 Yao Qi <yao@codesourcery.com>
6193
6194 * ctf.c (ctf_open): Call post_create_inferior.
6195
614d5099
YQ
61962014-04-19 Yao Qi <yao@codesourcery.com>
6197
6198 * ctf.c (handle_id): New static variable.
6199 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6200 value. Get the declaration of event "register" and get length
6201 of field "contents".
6202
dac3e710
YQ
62032014-04-19 Yao Qi <yao@codesourcery.com>
6204
6205 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6206
2bca57ba
SC
62072014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6208
6209 * valops.c (oload_method_static): Remove unnecessary argument
6210 METHOD. Update all callers.
6211
51d48146
PA
62122014-04-18 Pedro alves <palves@redhat.com>
6213 Tom Tromey <tromey@redhat.com>
6214
6215 PR backtrace/15558
6216 * frame.c (get_prev_frame_1): Rename to ...
6217 (get_prev_frame_always): ... this, and make extern. Adjust.
6218 (skip_artificial_frames): Use get_prev_frame_always.
6219 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6220 (get_frame_unwind_stop_reason): Adjust to rename.
6221 * frame.h (get_prev_frame_always): Declare.
6222 * inline-frame.c: Include frame.h.
6223 (inline_frame_this_id): Use get_prev_frame_always.
6224
1bdad2e0
TG
62252014-04-18 Tristan Gingold <gingold@adacore.com>
6226
6227 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6228 code by using bfd_mach_o_get_base_address.
6229
7ce16bd4
UW
62302014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6231
6232 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6233 (spu_ax_pseudo_register_collect): New function.
6234 (spu_ax_pseudo_register_push_stack): Likewise.
6235 (spu_dwarf_reg_to_regnum): Likewise.
6236 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6237
2ed3c037
UW
62382014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6239
6240 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6241 Replace FRAME argument with FRAME_ID.
6242 * gdbarch.c, gdbarch.h: Regenerate.
6243 * findvar.c (default_value_from_register): Add GDBARCH argument;
6244 replace FRAME by FRAME_ID. No longer call get_frame_id.
6245 (value_from_register): Update call to gdbarch_value_from_register.
6246 * value.h (default_value_from_register): Update prototype.
6247 * s390-linux-tdep.c (s390_value_from_register): Update interface
6248 and call to default_value_from_register.
6249 * spu-tdep.c (spu_value_from_register): Likewise.
6250
6251 * findvar.c (address_from_register): Remove TYPE argument.
6252 Do not call value_from_register; use gdbarch_value_from_register
6253 with null_frame_id instead.
6254 * value.h (address_from_register): Update prototype.
6255 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6256 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6257 address_from_register interface change.
6258
71e50e83
YQ
62592014-04-17 Yao Qi <yao@codesourcery.com>
6260
6261 * gdbtypes.h: Update comments to link to types and macros'
6262 definitions.
6263
7a23c549
SC
62642014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6265
6266 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6267
22869d73
KS
62682014-04-16 Keith Seitz <keiths@redhat.com>
6269
6270 PR gdb/15827
6271 * dwarf2read.c (skip_one_die): Check that all relative-offset
6272 sibling DIEs fall within range of the current reader's buffer.
6273 (read_partial_die): Likewise.
6274
c4f87ca6
KS
62752014-04-16 Keith Seitz <keiths@redhat.com>
6276
6277 PR c++/16597
6278 * cp-namespace.c (lookup_symbol_file): If the type name of
6279 `this' is NULL, return immediately.
6280
b50c8614
KS
62812014-04-14 Keith Seitz <keiths@redhat.com>
6282
6283 PR c++/16253
6284 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6285 from symbol_matches_domain in symtab.c. All local callers
6286 of symbol_matches_domain updated.
6287 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6288 search STRUCT_DOMAIN.
6289 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6290 independently. standard_lookup will do that automatically.
6291 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6292 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6293 (cp_lookup_symbol_in_namespace): Likewise.
6294 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6295 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6296 may return a STRUCT_DOMAIN match.
6297 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6298 * cp-support.c: Include language.h.
6299 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6300 VAR_DOMAIN.
6301 * psymtab.c (match_partial_symbol): Compare the requested
6302 domain with the symbol's domain directly.
6303 (lookup_partial_symbol): Likewise.
6304 * symtab.c (lookup_symbol_in_language): Explain when/why
6305 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6306 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6307 appropriate languages.
6308 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6309 and moved to ada-lang.c
6310 (lookup_block_symbol): Explain that this function only returns
6311 symbol matching the requested DOMAIN.
6312 Compare the requested domain with the symbol's domain directly.
6313 (iterate_over_symbols): Compare the requested domain with the
6314 symbol's domain directly.
6315 * symtab.h (symbol_matches_domain): Remove.
6316
3d567982
TT
63172014-04-14 Tom Tromey <tromey@redhat.com>
6318
6319 PR c++/15246:
6320 * c-exp.y (type_aggregate_p): New function.
6321 (qualified_name, classify_inner_name): Use it.
6322 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6323 and TYPE_TARGET_TYPE of an enum type.
6324 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6325 an enum type.
6326 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6327 handle TYPE_DECLARED_CLASS.
6328 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6329 types.
6330 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6331 * valops.c (enum_constant_from_type): New function.
6332 (value_aggregate_elt): Use it.
6333 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6334 TYPE_CODE_ENUM.
6335
c848d642
TT
63362014-04-14 Tom Tromey <tromey@redhat.com>
6337
6338 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6339 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6340 const.
6341 * value.h (value_aggregate_elt): Update.
6342
0626fc76
TT
63432014-04-14 Tom Tromey <tromey@redhat.com>
6344
6345 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6346
5ecaaa66
SA
63472014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6348
6349 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6350 (evaluate_subexp_standard): Pass noside argument.
6351 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6352 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6353 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6354 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6355 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6356
1612e0c0
SA
63572014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6358
6359 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6360 points to a constant blob.
6361
c451ebe5
SA
63622014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6363
6364 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6365 property and store it as the high bound and flag the range accordingly.
6366 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6367 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6368 * gdbtypes.h (enum range_flags): New enum.
6369 (struct range_bounds): Add flags member.
6370
1d42e4c4
SA
63712014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6372
6373 * c-typeprint.c (c_type_print_varspec_suffix): Added
6374 check for not yet resolved high bound. If unresolved, print
6375 "variable length" string to the console instead of random
6376 length.
6377
9f1f738a
SA
63782014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6379
6380 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6381 value.
6382 (ada_template_to_fixed_record_type_1): Likewise.
6383 (ada_to_fixed_type_1): Likewise.
6384 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6385 (cp_print_value): Likewise.
6386 * d-valprint.c (dynamic_array_type): Likewise.
6387 * findvar.c (address_of_variable): Likewise.
6388 * jv-valprint.c (java_value_print): Likewise.
6389 * valops.c (value_ind): Likewise.
6390 * value.c (coerce_ref): Likewise.
6391
3c8452d4
SA
63922014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6393
6394 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6395 value and retrieve the dynamic type size.
6396
4ad88275
SA
63972014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6398
6399 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6400 passed to sizeof is dynamic evaluate the argument to compute the length.
6401
80180f79
SA
64022014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6403 Joel Brobecker <brobecker@adacore.com>
6404
6405 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6406 (dwarf2_evaluate_property): New function.
6407 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6408 * dwarf2read.c (attr_to_dynamic_prop): New function.
6409 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6410 attribute.
6411 * gdbtypes.c: Include dwarf2loc.h.
6412 (is_dynamic_type): New function.
6413 (resolve_dynamic_type): New function.
6414 (resolve_dynamic_bounds): New function.
6415 (get_type_length): New function.
6416 (check_typedef): Use get_type_length to compute type length.
6417 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6418 (TYPE_LOW_BOUND_KIND): New macro.
6419 (is_dynamic_type): New function prototype.
6420 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6421 to resolve dynamic properties of the type. Update comment.
6422 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6423
a1556843
RH
64242014-04-14 Richard Henderson <rth@redhat.com>
6425
6426 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6427
0be03e84
DE
64282014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6429 Doug Evans <xdje42@gmail.com>
6430
6431 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6432 dereference TYPE_CODE_REF values.
6433
6b662e19
JB
64342014-04-11 Joel Brobecker <brobecker@adacore.com>
6435
6436 Revert the following changes due to regressions:
6437
6438 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6439 (dwarf2_evaluate_property): New function.
6440 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6441 * dwarf2read.c (attr_to_dynamic_prop): New function.
6442 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6443 attribute.
6444 * gdbtypes.c: Include dwarf2loc.h.
6445 (is_dynamic_type): New function.
6446 (resolve_dynamic_type): New function.
6447 (resolve_dynamic_bounds): New function.
6448 (get_type_length): New function.
6449 (check_typedef): Use get_type_length to compute type length.
6450 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6451 (TYPE_LOW_BOUND_KIND): New macro.
6452 (is_dynamic_type): New function prototype.
6453 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6454 to resolve dynamic properties of the type. Update comment.
6455 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6456
6457 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6458 passed to sizeof is dynamic evaluate the argument to compute the length.
6459
6460 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6461 value and retrieve the dynamic type size.
6462
6463 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6464 (ada_template_to_fixed_record_type_1): Likewise.
6465 (ada_to_fixed_type_1): Likewise.
6466 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6467 (cp_print_value): Likewise.
6468 * d-valprint.c (dynamic_array_type): Likewise.
6469 * eval.c (evaluate_subexp_with_coercion): Likewise.
6470 * findvar.c (address_of_variable): Likewise.
6471 * jv-valprint.c (java_value_print): Likewise.
6472 * valops.c (value_ind): Likewise.
6473 * value.c (coerce_ref): Likewise.
6474
6475 * c-typeprint.c (c_type_print_varspec_suffix): Added
6476 check for not yet resolved high bound. If unresolved, print
6477 "variable length" string to the console instead of random
6478 length.
6479
6480 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6481 property and store it as the high bound and flag the range accordingly.
6482 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6483 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6484 * gdbtypes.h (enum range_flags): New enum.
6485 (struct range_bounds): Add flags member.
6486
6487 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6488 points to a constant blob.
6489
6490 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6491 (evaluate_subexp_standard): Pass noside argument.
6492 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6493 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6494 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6495 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6496 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6497
245a5f0b
KS
64982014-04-11 Keith Seitz <keiths@redhat.com>
6499
6500 PR c++/16675
6501 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6502 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6503 reference types.
6504
3bce8237
SA
65052014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6506
6507 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6508 (evaluate_subexp_standard): Pass noside argument.
6509 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6510 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6511 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6512 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6513 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6514
92b09522
SA
65152014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6516
6517 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6518 points to a constant blob.
6519
e1969afb
SA
65202014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6521
6522 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6523 property and store it as the high bound and flag the range accordingly.
6524 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6525 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6526 * gdbtypes.h (enum range_flags): New enum.
6527 (struct range_bounds): Add flags member.
6528
b86138fb
SA
65292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6530
6531 * c-typeprint.c (c_type_print_varspec_suffix): Added
6532 check for not yet resolved high bound. If unresolved, print
6533 "variable length" string to the console instead of random
6534 length.
6535
bcd629a4
SA
65362014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6537
6538 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6539 (ada_template_to_fixed_record_type_1): Likewise.
6540 (ada_to_fixed_type_1): Likewise.
6541 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6542 (cp_print_value): Likewise.
6543 * d-valprint.c (dynamic_array_type): Likewise.
6544 * eval.c (evaluate_subexp_with_coercion): Likewise.
6545 * findvar.c (address_of_variable): Likewise.
6546 * jv-valprint.c (java_value_print): Likewise.
6547 * valops.c (value_ind): Likewise.
6548 * value.c (coerce_ref): Likewise.
6549
04b19544
SA
65502014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6551
6552 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6553 value and retrieve the dynamic type size.
6554
26cb189f
SA
65552014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6556
6557 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6558 passed to sizeof is dynamic evaluate the argument to compute the length.
6559
37c1ab67
SA
65602014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6561
6562 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6563 (dwarf2_evaluate_property): New function.
6564 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6565 * dwarf2read.c (attr_to_dynamic_prop): New function.
6566 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6567 attribute.
6568 * gdbtypes.c: Include dwarf2loc.h.
6569 (is_dynamic_type): New function.
6570 (resolve_dynamic_type): New function.
6571 (resolve_dynamic_bounds): New function.
6572 (get_type_length): New function.
6573 (check_typedef): Use get_type_length to compute type length.
6574 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6575 (TYPE_LOW_BOUND_KIND): New macro.
6576 (is_dynamic_type): New function prototype.
6577 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6578 to resolve dynamic properties of the type. Update comment.
6579 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6580
729efb13
SA
65812014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6582
6583 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6584 declaring high/low bounds and change uses accordingly. Call
6585 create_range_type instead of create_static_range_type.
6586 * gdbtypes.c (create_range_type): New function.
6587 (create_range_type): Convert bounds into struct bound_prop and pass
6588 them to create_range_type.
6589 * gdbtypes.h (struct bound_prop): New struct.
6590 (create_range_type): New function prototype.
6591 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6592 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6593 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6594 part of the bound.
6595 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6596
0c9c3474
SA
65972014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6598
6599 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6600 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6601 * ada-lang.c: All uses of create_range_type updated.
6602 * coffread.c: All uses of create_range_type updated.
6603 * dwarf2read.c: All uses of create_range_type updated.
6604 * f-exp.y: All uses of create_range_type updated.
6605 * m2-valprint.c: All uses of create_range_type updated.
6606 * mdebugread.c: All uses of create_range_type updated.
6607 * stabsread.c: All uses of create_range_type updated.
6608 * valops.c: All uses of create_range_type updated.
6609 * valprint.c: All uses of create_range_type updated.
6610
9d497a19
PA
66112014-04-10 Pedro Alves <palves@redhat.com>
6612
6613 * breakpoint.c (single_step_breakpoints)
6614 (single_step_gdbarch): Move up in the file.
6615 (one_breakpoint_xfer_memory): New function, factored out from ...
6616 (breakpoint_xfer_memory): ... here. Also process single-step
6617 breakpoints.
6618
15a9128a
TG
66192014-04-09 Tristan Gingold <gingold@adacore.com>
6620
6621 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6622 comments.
6623 (darwin_decode_exception_message): Free port only after use.
6624
9c97a070
PL
66252014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6626
6627 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6628 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6629 when setting the size of call_length.
6630
7af389b8
SC
66312014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6632
6633 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6634 dereference TYPE_CODE_REF values.
6635
86ad98c3
JB
66362014-04-07 Joel Brobecker <brobecker@adacore.com>
6637
6638 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6639 end of warning message.
6640
b0aeadb3
DE
66412014-04-03 Doug Evans <dje@google.com>
6642
6643 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6644 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6645
5979d6b6
AM
66462014-04-02 Alan Modra <amodra@gmail.com>
6647
6648 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6649 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6650 (struct symbol_file_add_from_memory_args): Add size field.
6651 (find_vdso_size): New function.
6652 (add_vsyscall_page): Attempt to find vdso size.
6653
0d60c288
DE
66542014-04-01 Doug Evans <dje@google.com>
6655
6656 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6657
a41f2563
TG
66582014-04-01 Tristan Gingold <gingold@adacore.com>
6659
6660 * darwin-nat.c (darwin_encode_reply): Add prototype.
6661 (darwin_decode_exception_message): Reply to unknown inferiors.
6662 (darwin_decode_message): Handle message by id. Ignore message
6663 to unknown inferior.
6664 (darwin_wait): Discard unknown messages, add debug trace.
6665
11a865c8
DE
66662014-03-31 Doug Evans <dje@google.com>
6667
6668 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6669 comp_dir_string.
6670
770e7fc7
DE
66712014-03-31 Doug Evans <dje@google.com>
6672
6673 New option "set print symbol-loading".
6674 * NEWS: Mention it.
6675 * solib.c (solib_read_symbols): Only print symbol loading messages
6676 if requested.
6677 (solib_add): If symbol loading is in "brief" mode, notify user
6678 symbols are being loaded.
6679 (reload_shared_libraries_1): Ditto.
6680 * symfile.c (print_symbol_loading_off): New static global.
6681 (print_symbol_loading_brief): New static global.
6682 (print_symbol_loading_full): New static global.
6683 (print_symbol_loading_enums): New static global.
6684 (print_symbol_loading): New static global.
6685 (print_symbol_loading_p): New function.
6686 (symbol_file_add_with_addrs): Only print symbol loading messages
6687 if requested.
6688 (_initialize_symfile): Register "print symbol-loading" set/show
6689 command.
6690 * symfile.h (print_symbol_loading_p): Declare.
6691
c32c64b7
DE
66922014-03-30 Doug Evans <xdje42@gmail.com>
6693
6694 * infrun.c (set_last_target_status): New function.
6695 (handle_inferior_event): Call it.
6696
7c0bc051
DE
66972014-03-30 Doug Evans <xdje42@gmail.com>
6698
6699 * inferior.h (enum stop_kind): Improve comment.
6700
8776cfe9
JB
67012014-03-28 Joel Brobecker <brobecker@adacore.com>
6702
6703 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6704 a reference, strip the reference layer before calling
6705 the lang_ops value_has_mutated callback.
6706
410a0ff2
SDJ
67072014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6708
6709 Remove some globals from our parser.
6710 * language.c (unk_lang_parser): Add "struct parser_state"
6711 argument.
6712 * language.h (struct language_defn) <la_parser>: Likewise.
6713 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6714 (initialize_expout): Add "struct parser_state" argument.
6715 Rewrite function to use the parser state.
6716 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6717 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6718 write_exp_elt_longcst, write_exp_elt_dblcst,
6719 write_exp_elt_decfloatcst, write_exp_elt_type,
6720 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6721 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6722 write_dollar_variable): Likewise.
6723 (parse_exp_in_context_1): Use parser state.
6724 (insert_type_address_space): Add "struct parser_state" argument.
6725 Use parser state.
6726 (increase_expout_size): New function.
6727 * parser-defs.h: Forward declare "struct language_defn" and
6728 "struct parser_state".
6729 (expout, expout_size, expout_ptr): Remove extern declarations.
6730 (parse_gdbarch, parse_language): Rewrite macro declarations to
6731 accept the parser state.
6732 (struct parser_state): New struct.
6733 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6734 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6735 write_exp_elt_decfloatcst, write_exp_elt_type,
6736 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6737 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6738 write_exp_msymbol, write_dollar_variable,
6739 mark_struct_expression, insert_type_address_space): Add "struct
6740 parser_state" argument.
6741 (increase_expout_size): New function.
6742 * utils.c (do_clear_parser_state): New function.
6743 (make_cleanup_clear_parser_state): Likewise.
6744 * utils.h (make_cleanup_clear_parser_state): New function
6745 prototype.
6746 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6747 Update calls to write_exp* in order to pass the parser state.
6748 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6749 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6750 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6751 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6752 * stap-probe.c (stap_parse_register_operand): Likewise.
6753 (stap_parse_single_operand): Likewise.
6754 (stap_parse_argument_1): Likewise.
6755 (stap_parse_argument): Use parser state.
6756 * stap-probe.h: Include "parser-defs.h".
6757 (struct stap_parse_info) <pstate>: New field.
6758 * c-exp.y (parse_type): Rewrite to use parser state.
6759 (yyparse): Redefine to c_parse_internal.
6760 (pstate): New global variable.
6761 (parse_number): Add "struct parser_state" argument.
6762 (write_destructor_name): Likewise.
6763 (type_exp): Update calls to write_exp* and similars in order to
6764 use parser state.
6765 (exp1, exp, variable, qualified_name, space_identifier,
6766 typename, typebase): Likewise.
6767 (write_destructor_name, parse_number, lex_one_token,
6768 classify_name, classify_inner_name, c_parse): Add "struct
6769 parser_state" argument. Update function to use parser state.
6770 * c-lang.h: Forward declare "struct parser_state".
6771 (c_parse): Add "struct parser_state" argument.
6772 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6773 (yyparse): Redefine macro to ada_parse_internal.
6774 (pstate): New variable.
6775 (write_int, write_object_renaming, write_var_or_type,
6776 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6777 type_int, type_long, type_long_long, type_float, type_double,
6778 type_long_double, type_char, type_boolean, type_system_address):
6779 Add "struct parser_state" argument.
6780 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6781 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6782 var_or_type, aggregate, aggregate_component_list,
6783 positional_list, others, component_group,
6784 component_associations): Update calls to write_exp* and similar
6785 functions in order to use parser state.
6786 (ada_parse, write_var_from_sym, write_int,
6787 write_exp_op_with_string, write_object_renaming,
6788 find_primitive_type, write_selectors, write_ambiguous_var,
6789 write_var_or_type, write_name_assoc, type_int, type_long,
6790 type_long_long, type_float, type_double, type_long_double,
6791 type_char, type_boolean, type_system_address): Add "struct
6792 parser_state" argument. Adjust function to use parser state.
6793 * ada-lang.c (parse): Likewise.
6794 * ada-lang.h: Forward declare "struct parser_state".
6795 (ada_parse): Add "struct parser_state" argument.
6796 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6797 calls to both functions.
6798 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6799 parser state.
6800 (yyparse): Redefine macro to f_parse_internal.
6801 (pstate): New variable.
6802 (parse_number): Add "struct parser_state" argument.
6803 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6804 and similars in order to use parser state.
6805 (parse_number): Adjust code to use parser state.
6806 (yylex): Likewise.
6807 (f_parse): New function.
6808 * f-lang.h: Forward declare "struct parser_state".
6809 (f_parse): Add "struct parser_state" argument.
6810 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6811 parser state.
6812 (yyparse): Redefine macro for java_parse_internal.
6813 (pstate): New variable.
6814 (push_expression_name, push_expression_name, insert_exp): Add
6815 "struct parser_state" argument.
6816 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6817 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6818 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6819 PostIncrementExpression, PostDecrementExpression,
6820 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6821 UnaryExpressionNotPlusMinus, CastExpression,
6822 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6823 RelationalExpression, EqualityExpression, AndExpression,
6824 ExclusiveOrExpression, InclusiveOrExpression,
6825 ConditionalAndExpression, ConditionalOrExpression,
6826 ConditionalExpression, Assignment, LeftHandSide): Update
6827 calls to write_exp* and similars in order to use parser state.
6828 (parse_number): Ajust code to use parser state.
6829 (yylex): Likewise.
6830 (java_parse): New function.
6831 (push_variable): Add "struct parser_state" argument. Adjust
6832 code to user parser state.
6833 (push_fieldnames, push_qualified_expression_name,
6834 push_expression_name, insert_exp): Likewise.
6835 * jv-lang.h: Forward declare "struct parser_state".
6836 (java_parse): Add "struct parser_state" argument.
6837 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6838 parser state.
6839 (yyparse): Redefine macro to m2_parse_internal.
6840 (pstate): New variable.
6841 (type_exp, exp, fblock, variable, type): Update calls to
6842 write_exp* and similars to use parser state.
6843 (yylex): Likewise.
6844 (m2_parse): New function.
6845 * m2-lang.h: Forward declare "struct parser_state".
6846 (m2_parse): Add "struct parser_state" argument.
6847 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6848 * objc-lang.h: Forward declare "struct parser_state".
6849 (end_msglist): Add "struct parser_state" argument.
6850 * p-exp.y (parse_type): Rewrite macro to use parser state.
6851 (yyparse): Redefine macro to pascal_parse_internal.
6852 (pstate): New variable.
6853 (parse_number): Add "struct parser_state" argument.
6854 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6855 write_exp* and similars in order to use parser state.
6856 (parse_number, yylex): Adjust code to use parser state.
6857 (pascal_parse): New function.
6858 * p-lang.h: Forward declare "struct parser_state".
6859 (pascal_parse): Add "struct parser_state" argument.
6860 * go-exp.y (parse_type): Rewrite macro to use parser state.
6861 (yyparse): Redefine macro to go_parse_internal.
6862 (pstate): New variable.
6863 (parse_number): Add "struct parser_state" argument.
6864 (type_exp, exp1, exp, variable, type): Update calls to
6865 write_exp* and similars in order to use parser state.
6866 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6867 to use parser state.
6868 (go_parse): Likewise.
6869 * go-lang.h: Forward declare "struct parser_state".
6870 (go_parse): Add "struct parser_state" argument.
6871
342587c4
DE
68722014-03-27 Doug Evans <dje@google.com>
6873
6874 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6875
33e80786
DE
68762014-03-27 Doug Evans <dje@google.com>
6877
6878 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6879 Remove argument abbrev_section. All callers updated.
6880
1dbab08b
DE
68812014-03-27 Doug Evans <dje@google.com>
6882
6883 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6884 addr_base, ranges_base.
6885
318d3177
KS
68862014-03-26 Keith Seitz <keiths@redhat.com>
6887
6888 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6889 types, not VAR_DOMAIN.
6890
1e54db15
SL
68912014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6892
6893 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6894 "ra" registers.
6895 * features/nios2-linux.c: Regenerated.
6896 * features/nios2.c: Regenerated.
6897
d3839ede
PA
68982014-03-25 Pedro Alves <palves@redhat.com>
6899
6900 * cli/cli-script.c (script_from_file): Force the interpreter to
6901 sync mode.
6902
7588d2ec
PL
69032014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6904
6905 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6906 small stack allocation.
6907
a6290449
TG
69082014-03-24 Tristan Gingold <gingold@adacore.com>
6909
6910 * darwin-nat.c (exc_server): Remove unused prototype.
6911 (darwin_dump_message): Correctly display data on x86_64.
6912 (darwin_encode_reply): Fix style.
6913 Add comments and fix indentation.
6914
31ae9d24 69152014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6916
6917 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6918
6339bfc4
DE
69192014-03-22 Doug Evans <xdje42@gmail.com>
6920
6921 * infcmd.c: Whitespace fixes.
6922 (interrupt_command): Merge two function comments into one.
6923
0a07590b
DE
69242014-03-22 Doug Evans <xdje42@gmail.com>
6925
6926 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6927 All uses updated.
6928
b55fbac4
YQ
69292014-03-22 Yao Qi <yao@codesourcery.com>
6930
6931 * remote.c (target_read_live_memory): Remove.
6932 (memory_xfer_live_readonly_partial): Rename it to
6933 remote_xfer_live_readonly_partial. Remove argument 'object'.
6934 All callers updated. Call remote_read_bytes_1
6935 instead of target_read_live_memory.
6936 * tracepoint.c (set_traceframe_number): Remove.
6937 (make_cleanup_restore_traceframe_number): Likewise .
6938 * tracepoint.h (set_traceframe_number): Remove declaration.
6939 (make_cleanup_restore_traceframe_number): Likewise.
6940
9217e74e
YQ
69412014-03-22 Yao Qi <yao@codesourcery.com>
6942
6943 * remote.c (remote_read_bytes): Move code on reading from the
6944 remote stub to ...
6945 (remote_read_bytes_1): ... here. New function.
6946
8acf9577
YQ
69472014-03-22 Yao Qi <yao@codesourcery.com>
6948
6949 * ctf.c (ctf_xfer_partial): Check the return value of
6950 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6951 return TARGET_XFER_UNAVAILABLE.
6952 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6953 * target.c (target_read_live_memory): Move it to remote.c.
6954 (memory_xfer_live_readonly_partial): Likewise.
6955 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6956 * remote.c (target_read_live_memory): Moved from target.c.
6957 (memory_xfer_live_readonly_partial): Likewise.
6958 (remote_read_bytes): Factored out from
6959 memory_xfer_partial_1.
6960
feef67ab
DE
69612014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6962
6963 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6964 NULL pointer.
6965
b65dc60b
PA
69662014-03-21 Pedro Alves <palves@redhat.com>
6967
6968 * infrun.c (normal_stop): Extend comment.
6969
b4ab256d
HZ
69702014-03-21 Hui Zhu <hui@codesourcery.com>
6971 Pedro Alves <palves@redhat.com>
6972
6973 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6974 static buffer.
6975 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6976 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6977 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6978
deba7593
MR
69792014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6980
6981 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6982 `z' formatted output modifier.
6983
1bff71c3
SDJ
69842014-03-20 Tom Tromey <tromey@redhat.com>
6985 Sergio Durigan Junior <sergiodj@redhat.com>
6986
6987 * probe.c (parse_probes): Turn assert into an ordinary error.
6988 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6989 exceptions when parsing probes. Rearrange the code for clarity.
6990
90e28950
TT
69912014-03-20 Tom Tromey <tromey@redhat.com>
6992
6993 PR gdb/14135
6994 * top.c (execute_command): Only dispatch events if the command
6995 started the target.
6996
beb460e8
PA
69972014-03-20 Tom Tromey <tromey@redhat.com>
6998
6999 PR cli/15718
7000 * infcall.c: Include event-top.h.
7001 (run_inferior_call): Call async_disable_stdin if needed.
7002
99619bea
PA
70032014-03-20 Pedro Alves <palves@redhat.com>
7004
7005 * infrun.c (prepare_to_proceed): Delete.
7006 (thread_still_needs_step_over): New function.
7007 (find_thread_needs_step_over): New function.
7008 (proceed): If the current thread needs a step-over, set its
7009 steping_over_breakpoint flag. Adjust to use
7010 find_thread_needs_step_over instead of prepare_to_proceed.
7011 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7012 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7013 breakpoint.
7014 (switch_back_to_stepped_thread): Step over breakpoints of all
7015 threads not the stepping thread, before switching back to the
7016 stepping thread.
7017
2adfaa28
PA
70182014-03-20 Pedro Alves <palves@redhat.com>
7019
7020 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7021 extern.
7022 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7023 * infrun.c (saved_singlestep_ptid)
7024 (stepping_past_singlestep_breakpoint): Delete.
7025 (resume): Remove stepping_past_singlestep_breakpoint handling.
7026 (proceed): Store the prev_pc of the stepping thread too.
7027 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7028 singlestep_pc.
7029 (enum infwait_states): Delete infwait_thread_hop_state.
7030 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7031 field.
7032 (handle_inferior_event): Adjust.
7033 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7034 handling and the thread-hop code. Before removing single-step
7035 breakpoints, check whether the thread hit a single-step breakpoint
7036 of another thread. If it did, the trap is not a random signal.
7037 (switch_back_to_stepped_thread): If the event thread hit a
7038 single-step breakpoint, unblock it before switching to the
7039 stepping thread. Handle the case of the stepped thread having
7040 advanced already.
7041 (keep_going): Handle the case of the current thread moving past a
7042 single-step breakpoint.
7043
31e77af2
PA
70442014-03-20 Pedro Alves <palves@redhat.com>
7045
7046 PR breakpoints/7143
7047 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7048 are being stepped over.
7049 (breakpoint_address_match): Make extern.
7050 * breakpoint.h (breakpoint_address_match): New declaration.
7051 * inferior.h (stepping_past_instruction_at): New declaration.
7052 * infrun.c (struct step_over_info): New type.
7053 (step_over_info): New global.
7054 (set_step_over_info, clear_step_over_info)
7055 (stepping_past_instruction_at): New functions.
7056 (handle_inferior_event): Clear the step-over info when
7057 trap_expected is cleared.
7058 (resume): Remove now stale comment.
7059 (clear_proceed_status): Clear step-over info.
7060 (proceed): Adjust step-over handling to set or clear the step-over
7061 info instead of removing all breakpoints.
7062 (handle_signal_stop): When setting up a thread-hop, don't remove
7063 breakpoints here.
7064 (stop_stepping): Clear step-over info.
7065 (keep_going): Adjust step-over handling to set or clear step-over
7066 info and then always inserting breakpoints, instead of removing
7067 all breakpoints when stepping over one.
7068
b9f437de
PA
70692014-03-20 Pedro Alves <palves@redhat.com>
7070
7071 * infrun.c (previous_inferior_ptid): Adjust comment.
7072 (deferred_step_ptid): Delete.
7073 (infrun_thread_ptid_changed, prepare_to_proceed)
7074 (init_wait_for_inferior): Adjust.
7075 (handle_signal_stop): Delete deferred_step_ptid handling.
7076
06c868a8
JK
70772014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7078
7079 PR gdb/15358
7080 * defs.h (sync_quit_force_run): New declaration.
7081 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7082 * event-top.c (async_sigterm_handler): New declaration.
7083 (async_sigterm_token): New variable.
7084 (async_init_signals): Create also async_sigterm_token.
7085 (async_sigterm_handler): New function.
7086 (sync_quit_force_run): New variable.
7087 (handle_sigterm): Replace quit_force call by other calls.
7088 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7089
dea80df0
MR
70902014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7091
7092 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7093 offset into SPE pseudo registers.
7094
0c7e1a46
PA
70952014-03-18 Pedro Alves <palves@redhat.com>
7096
7097 PR gdb/13860
7098 * inferior.h (print_stop_event): Declare.
7099 * infrun.c (print_stop_event): New, factored out from ...
7100 (normal_stop): ... this.
7101 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7102 of bpstat_print/print_stack_frame.
7103
9c1fcd01
TT
71042014-03-17 Tom Tromey <tromey@redhat.com>
7105
7106 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7107
11aa919a
PMR
71082014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7109
7110 * ada-lang.c (decode_constrained_packed_array): Perform a
7111 minimal coercion for reference with coerce_ref instead of
7112 ada_coerce_ref.
7113
d4ccb5e0
TG
71142014-03-17 Tristan Gingold <gingold@adacore.com>
7115
7116 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7117 (darwin_solib_create_inferior_hook): Emit a warning if version
7118 is unhandled.
7119
49840f2a
UW
71202014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7121
7122 * python/py-value.c (get_field_flag): Cast flag_name argument to
7123 PyObject_GetAttrString to support Python 2.4.
7124
ed4123e5
JK
71252014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7126
7127 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7128 (Global Maintainers): Remove Jan Kratochvil.
7129
d6b64346
PA
71302014-03-14 Pedro Alves <palves@redhat.com>
7131
7132 * inferior.h (terminal_ours_for_output): Rename to ...
7133 (child_terminal_ours_for_output): ... this.
7134 (terminal_save_ours): Rename to ...
7135 (child_terminal_save_ours): ... this.
7136 (terminal_ours): Rename to ...
7137 (child_terminal_ours): ... this.
7138 (terminal_inferior): Rename to ...
7139 (child_terminal_inferior): ... this.
7140 (terminal_init_inferior): Rename to ...
7141 (child_terminal_init_inferior): ... this.
7142 (terminal_init_inferior_with_pgrp): Rename to ...
7143 (child_terminal_init_inferior_with_pgrp): ... this.
7144 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7145 (child_terminal_init_with_pgrp): ... this.
7146 (terminal_save_ours): Rename to ...
7147 (child_terminal_save_ours): ... this.
7148 (terminal_init_inferior): Rename to ...
7149 (child_terminal_init): ... this. Adjust.
7150 (terminal_inferior): Rename to ...
7151 (child_terminal_inferior): ... this.
7152 (terminal_ours_for_output): Rename to ...
7153 (child_terminal_ours_for_output): ... this. Adjust.
7154 (terminal_ours): Rename to ...
7155 (child_terminal_ours): ... this.
7156 (terminal_ours_1): Rename to ...
7157 (child_terminal_ours_1): ... this. Adjust.
7158 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7159 * windows-nat.c (do_initial_windows_stuff): Adjust.
7160 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7161 (gnu_terminal_init): ... this. Adjust.
7162 (gnu_target): Adjust.
7163 * inf-child.c (inf_child_target): Adjust.
7164
5a1e8c7a
DE
71652014-03-13 Doug Evans <xdje42@gmail.com>
7166
7167 PR guile/16612
7168 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7169 new eq?-hashtab.
7170
350e1a76
DE
71712014-03-13 Doug Evans <xdje42@gmail.com>
7172
7173 * value.c (record_latest_value): Call release_value_or_incref
7174 instead of release_value.
7175
a69900ae
PA
71762014-03-13 Pedro Alves <palves@redhat.com>
7177
7178 * procfs.c (procfs_target): Don't override to_shortname,
7179 to_longname or to_doc.
7180
5db9f0bd
PA
71812014-03-13 Pedro Alves <palves@redhat.com>
7182
7183 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7184 Unix in user visible strings.
7185
5e3a2c38
SS
71862014-03-12 Stan Shebs <stan@codesourcery.com>
7187
7188 * gdbtypes.h: Annotate comments for Doxygen, add a page
7189 block comment with some general info.
7190
8bc2fe48
PA
71912014-03-12 Pedro Alves <palves@redhat.com>
7192
7193 * infcmd.c (prepare_execution_command): New function, factored out
7194 from several execution commands.
7195 (run_command_1, continue_command, step_1, jump_command)
7196 (signal_command, until_command, advance_command, finish_command)
7197 (attach_command): Use prepare_execution_command.
7198
638c5f49
OJ
71992014-03-12 Omair Javaid <omair.javaid@linaro.org>
7200
7201 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7202 (MAX_BPTS): Define.
7203 (MAX_WPTS): Define.
7204 (struct arm_linux_thread_points): Removed.
7205 (struct arm_linux_process_info): New.
7206 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7207 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7208 (arm_linux_find_breakpoints_by_tid): Removed.
7209 (struct arch_lwp_info): New.
7210 (arm_linux_find_process_pid): New functions.
7211 (arm_linux_add_process): New functions.
7212 (arm_linux_process_info_get): New functions.
7213 (arm_linux_forget_process): New function.
7214 (arm_linux_get_debug_reg_state): New function.
7215 (struct update_registers_data): New.
7216 (update_registers_callback): New function.
7217 (arm_linux_insert_hw_breakpoint1): Updated.
7218 (arm_linux_remove_hw_breakpoint1): Updated.
7219 (arm_linux_insert_hw_breakpoint): Updated.
7220 (arm_linux_remove_hw_breakpoint): Updated.
7221 (arm_linux_insert_watchpoint): Updated.
7222 (arm_linux_remove_watchpoint): Updated.
7223 (arm_linux_new_thread): Updated.
7224 (arm_linux_prepare_to_resume): New function.
7225 (arm_linux_new_fork): New function.
7226 (_initialize_arm_linux_nat): Updated.
7227
6d03af93
PA
72282014-03-12 Pedro Alves <palves@redhat.com>
7229
7230 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7231
b3ccfe11
TT
72322014-03-12 Tom Tromey <tromey@redhat.com>
7233
7234 * inf-child.c (return_zero): New function.
7235 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7236 * aix-thread.c (aix_thread_inferior_created): New function.
7237 (aix_thread_attach): Remove.
7238 (init_aix_thread_ops): Don't set to_attach.
7239 (_initialize_aix_thread): Register inferior_created observer.
7240 * corelow.c (init_core_ops): Don't set to_attach or
7241 to_create_inferior.
7242 * exec.c (init_exec_ops): Don't set to_attach or
7243 to_create_inferior.
7244 * infcmd.c (run_command_1): Use find_run_target. Make direct
7245 target calls.
7246 (attach_command): Use find_attach_target. Make direct target
7247 calls.
7248 * record-btrace.c (init_record_btrace_ops): Don't set
7249 to_create_inferior.
7250 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7251 Remove.
7252 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7253 set to_create_inferior.
7254 * target.c (complete_target_initialization): Add assertion.
7255 (target_create_inferior): Remove.
7256 (find_default_attach, find_default_create_inferior): Remove.
7257 (find_attach_target, find_run_target): New functions.
7258 (find_default_is_async_p, find_default_can_async_p)
7259 (target_supports_non_stop, target_attach): Remove.
7260 (init_dummy_target): Don't set to_create_inferior or
7261 to_supports_non_stop.
7262 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7263 TARGET_DEFAULT_FUNC.
7264 <to_create_inferior>: Add comment.
7265 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7266 TARGET_DEFAULT_RETURN.
7267 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7268 (find_attach_target, find_run_target): Declare.
7269 (target_create_inferior): Remove.
7270 (target_has_execution_1): Update comment.
7271 (target_supports_non_stop): Remove.
7272 * target-delegates.c: Rebuild.
7273
91f83b02
PA
72742014-03-12 Pedro Alves <palves@redhat.com>
7275
7276 * inf-child.h: Update comment to not mention Unix.
7277
f1aea813
PA
72782014-03-12 Pedro Alves <palves@redhat.com>
7279
7280 * inf-child.c: Update top comment to not mention Unix. Add
7281 generic comment describing how this target is meant to be used.
7282 (inf_child_post_attach, inf_child_post_startup_inferior)
7283 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7284 Unix in comment.
7285
ee8e9165
PA
72862014-03-12 Pedro Alves <palves@redhat.com>
7287
7288 * nto-procfs.c: Include inf-child.h.
7289 (procfs_ops): Delete global.
7290 (procfs_can_run): Delete method.
7291 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7292 target pointer instead of referencing procfs_ops.
7293 (procfs_prepare_to_store): Delete.
7294 (init_procfs_ops): Delete function.
7295 (procfs_target): New function, based on init_procfs_ops, but
7296 inherit inf_child_target.
7297 (_initialize_procfs): Use procfs_target.
7298
51a9c8c5
PA
72992014-03-12 Pedro Alves <palves@redhat.com>
7300
7301 * windows-nat.c: Include inf-child.h.
7302 (windows_ops): Delete global.
7303 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7304 methods.
7305 (init_windows_ops): Delete function.
7306 (windows_target): New function, based on init_windows_ops, but
7307 inherit inf_child_target.
7308 (_initialize_windows_nat): Use windows_target. Install x86
7309 specific target methods here.
7310
c1966e26
DE
73112014-03-10 Doug Evans <xdje42@gmail.com>
7312
7313 * guile/guile.c (call_initialize_gdb_module): New function.
7314 (initialize_guile): Replace call to scm_init_guile with call to
7315 scm_with_guile.
7316
023db19c
JB
73172014-03-10 Joel Brobecker <brobecker@adacore.com>
7318
7319 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7320 in call to TYPE_CODE macro.
7321
5ec18f2b
JG
73222014-03-10 Jerome Guitton <guitton@adacore.com>
7323
8668be63
JB
7324 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7325 Resolve tagged types to full view.
5ec18f2b 7326
7d03f2eb
HZ
73272014-03-10 Hui Zhu <hui@codesourcery.com>
7328
7329 * target.h (target_insert_breakpoint): Remove "hardware" from its
7330 comments.
7331
c5164cbc
DE
73322014-03-07 Doug Evans <dje@google.com>
7333
7334 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7335
c4a3fee2
DE
73362014-03-07 Doug Evans <dje@google.com>
7337
7338 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7339 Remove unused local comp_dir_attr. Assert exactly one of
7340 stub_comp_unit_die, stub_comp_dir is non-NULL.
7341
3156469c
JB
73422014-03-07 Joel Brobecker <brobecker@adacore.com>
7343
7344 * target.h (complete_target_initialization, add_target):
7345 Add comment.
7346
c1a7b7c6
PA
73472014-03-07 Pedro Alves <palves@redhat.com>
7348
7349 * go32-nat.c: Include inf-child.h.
7350 (go32_ops): Delete global.
7351 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7352 Delete methods.
7353 (go32_create_inferior): Push the passed in target pointer instead
7354 of referencing go32_ops.
7355 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7356 (go32_target): New function, based on init_go32_ops, but inherit
7357 inf_child_target.
7358 (_initialize_go32_nat): Use go32_target. Move parts of
7359 init_go32_ops here.
7360
d3c1a85f
JB
73612014-03-06 Joel Brobecker <brobecker@adacore.com>
7362
7363 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7364 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7365 SYMBOL_VALUE_ADDRESS.
7366 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7367
5fa1d40e
YQ
73682014-03-06 Yao Qi <yao@codesourcery.com>
7369
7370 * breakpoint.c (get_tracepoint_by_number): Remove argument
7371 optional_p. All callers updated. Adjust comments. Update
7372 output message.
7373 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7374
0c13193f
YQ
73752014-03-06 Yao Qi <yao@codesourcery.com>
7376
7377 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7378 early if get_number returns zero. Use 'p' instead of 'args'.
7379
2217da06
YQ
73802014-03-06 Yao Qi <yao@codesourcery.com>
7381
7382 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7383 message.
7384
cc3da688
YQ
73852014-03-06 Yao Qi <yao@codesourcery.com>
7386
7387 PR breakpoints/16508
7388 * tracepoint.c (check_trace_running): New function.
7389 (trace_find_command): Move code to check_trace_running and
7390 call check_trace_running.
7391 (trace_find_pc_command): Likewise.
7392 (trace_find_tracepoint_command): Likewise.
7393 (trace_find_line_command): Likewise.
7394 (trace_find_range_command): Likewise.
7395 * tracepoint.h (check_trace_running): Likewise.
7396 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7397
6a5f844b
YQ
73982014-03-06 Yao Qi <yao@codesourcery.com>
7399
7400 * target.h (struct target_ops) <to_traceframe_info>: Use
7401 TARGET_DEFAULT_NORETURN (tcomplain ()).
7402 * target-delegates.c: Regenerated.
7403
0f26cec1
PA
74042014-03-05 Pedro Alves <palves@redhat.com>
7405
7406 PR gdb/16575
7407 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7408 void. Update comment.
7409 (dcache_xfer_memory): Delete.
7410 (dcache_read_memory_partial): New, based on the read bits of
7411 dcache_xfer_memory.
7412 (dcache_update): Add status parameter. Use ULONGEST for len, and
7413 adjust. Discard cache lines if the reason for the update was
7414 error.
7415 * dcache.h (dcache_xfer_memory): Delete declaration.
7416 (dcache_read_memory_partial): New declaration.
7417 (dcache_update): Update prototype.
7418 * target.c (raw_memory_xfer_partial): Update the dcache here.
7419 (memory_xfer_partial_1): Don't handle dcache writes here.
7420
b2b255bd
MF
74212014-03-05 Mike Frysinger <vapier@gentoo.org>
7422
7423 * remote-sim.c (gdbsim_load): Add const to prog.
7424
5d9cf8a4
TT
74252014-03-03 Tom Tromey <tromey@redhat.com>
7426
7427 * elfread.c (probe_key): Change to bfd_data.
7428 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7429 now per-BFD, not per-objfile.
7430 * stap-probe.c (stap_probe_destroy): Update comment.
7431 (handle_stap_probe): Allocate on the per-BFD obstack.
7432
729662a5
TT
74332014-03-03 Tom Tromey <tromey@redhat.com>
7434
7435 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7436 * breakpoint.c (create_longjmp_master_breakpoint): Use
7437 get_probe_address.
7438 (add_location_to_breakpoint, bkpt_probe_insert_location)
7439 (bkpt_probe_remove_location): Update.
7440 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7441 * elfread.c (elf_symfile_relocate_probe): Remove.
7442 (elf_probe_fns): Update.
7443 (insert_exception_resume_breakpoint): Change type of "probe"
7444 parameter to bound_probe.
7445 (check_exception_resume): Update.
7446 * objfiles.c (objfile_relocate1): Don't relocate probes.
7447 * probe.c (bound_probe_s): New typedef.
7448 (parse_probes): Use get_probe_address. Set sal's objfile.
7449 (find_probe_by_pc): Return a bound_probe.
7450 (collect_probes): Return a VEC(bound_probe_s).
7451 (compare_probes): Update.
7452 (gen_ui_out_table_header_info): Change type of "probes"
7453 parameter. Update.
7454 (info_probes_for_ops): Update.
7455 (get_probe_address): New function.
7456 (probe_safe_evaluate_at_pc): Update.
7457 * probe.h (struct probe_ops) <get_probe_address>: New field.
7458 <set_semaphore, clear_semaphore>: Add objfile parameter.
7459 (struct probe) <objfile>: Remove field.
7460 <arch>: New field.
7461 <address>: Update comment.
7462 (struct bound_probe): New.
7463 (find_probe_by_pc): Return a bound_probe.
7464 (get_probe_address): Declare.
7465 * solib-svr4.c (struct probe_and_action) <address>: New field.
7466 (hash_probe_and_action, equal_probe_and_action): Update.
7467 (register_solib_event_probe): Add address parameter.
7468 (solib_event_probe_at): Update.
7469 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7470 get_probe_address.
7471 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7472 (stap_get_probe_address): New function.
7473 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7474 (compile_probe_arg): Update.
7475 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7476 address.
7477 (handle_stap_probe): Don't relocate the probe.
7478 (stap_relocate): Remove.
7479 (stap_gen_info_probes_table_values): Update.
7480 (stap_probe_ops): Remove stap_relocate.
7481 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7482 (debug_sym_probe_fns): Update.
7483 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7484 * symtab.c (init_sal): Use memset.
7485 * symtab.h (struct symtab_and_line) <objfile>: New field.
7486 * tracepoint.c (start_tracing, stop_tracing): Update.
7487
ff887920
TT
74882014-03-03 Tom Tromey <tromey@redhat.com>
7489
7490 * probe.h (parse_probes, find_probe_by_pc)
7491 (find_probes_in_objfile): Fix comments.
7492
f0407826
DE
74932014-03-02 Doug Evans <xdje42@gmail.com>
7494
7495 * infrun.c (handle_signal_stop): Replace test for
7496 TARGET_WAITKIND_STOPPED with an assert.
7497
35e6a711
DE
74982014-03-02 Doug Evans <xdje42@gmail.com>
7499
7500 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7501
667f9d0b
DE
75022014-03-02 Doug Evans <xdje42@gmail.com>
7503
7504 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7505
dc92ace0
MK
75062014-03-01 Mark Kettenis <kettenis@gnu.org>
7507
7508 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7509
a900370f
MK
75102014-03-01 Mark Kettenis <kettenis@gnu.org>
7511
7512 * i386obsd-nat.c: Include "obsd-nat.h".
7513 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7514 add_target.
7515 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7516
b72a7981
MK
75172014-03-01 Mark Kettenis <kettenis@gnu.org>
7518
7519 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7520
96c70aba
MK
75212014-03-01 Mark Kettenis <kettenis@gnu.org>
7522
7523 * mips64obsd-nat.c: Include "obsd-nath".
7524 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7525 add_target
7526 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7527
874a80af
MK
75282014-03-01 Mark Kettenis <kettenis@gnu.org>
7529
8fd408f1
MK
7530 * amd64obsd-nat.c: Include "obsd-nat,h.
7531 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7532 add_target.
874a80af
MK
7533 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7534
9cf95373
SC
75352014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7536
7537 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7538 (find_overload_match): Update call to find_oload_champ.
7539 (find_oload_champ_namespace_loop): Likewise
7540
863e4da4
MK
75412014-02-28 Mark Kettenis <kettenis@gnu.org>
7542
025cac40
MK
7543 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7544
1ed586ce
MK
7545 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7546 * config/sparc/obsd64.mh: New file.
7547 * sparc64obsd-nat.c: New file.
7548
863e4da4
MK
7549 * obsd-nat.h: New file.
7550 * obsd-nat.c: New file.
7551 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7552 (ALLDEPFILES): Add obsd-nat.c.
7553
89de4da4
TT
75542014-02-28 Tom Tromey <tromey@redhat.com>
7555
7556 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7557 * cli-out.h (cli_ui_out_impl): Now const.
7558 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7559 * ui-out.c (struct ui_out) <impl>: Now const.
7560 (default_ui_out_impl): Now const.
7561 (ui_out_new): Make 'impl' parameter const.
7562 * ui-out.h (ui_out_new): Update.
7563
c725e7b6
MK
75642014-02-27 Mark Kettenis <kettenis@gnu.org>
7565
7566 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7567
670b46b3
MK
75682014-02-27 Mark Kettenis <kettenis@gnu.org>
7569
7570 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7571
c91550fc
JK
75722014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7573
7574 Additional PR 8882 fix.
7575 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7576
2fa0369e
PA
75772014-02-27 Pedro Alves <palves@redhat.com>
7578
7579 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7580 isn't set.
7581
d632a097
PA
75822014-02-27 Pedro Alves <palves@redhat.com>
7583
7584 PR 12702
7585 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7586 * nat/linux-waitpid.c: Include string.h.
7587 (status_to_str): Moved here and made extern.
7588 * nat/linux-waitpid.h (status_to_str): New declaration.
7589
2ebd5a35
HZ
75902014-02-27 Hui Zhu <hui@codesourcery.com>
7591
7592 PR 12702
7593 * infrun.c (ptid_match): Move ...
7594 * common/ptid.c (ptid_match): ... here.
7595 * inferior.h (ptid_match): Move ...
7596 * common/ptid.h (ptid_match): ... here.
7597
3cdd631f
MK
75982014-02-27 Mark Kettenis <kettenis@gnu.org>
7599
7600 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7601 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7602 gdb_target_obs.
7603
bee30a64
MK
76042014-02-27 Mark Kettenis <kettenis@gnu.org>
7605
7606 * obsd-tdep.c (obsd_auxv_parse): New function.
7607 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7608
7609 * gdbarch.sh (auxv_parse): New.
7610 * gdbarch.h: Regenerated.
7611 * gdbarch.c: Regenerated.
7612 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7613
7a5a839f
LC
76142014-02-26 Ludovic Courtès <ludo@gnu.org>
7615
7616 * guile/scm-value.c (gdbscm_history_append_x): New function.
7617 (value_functions): Add it.
7618
31aa7e4e
JB
76192014-02-27 Joel Brobecker <brobecker@adacore.com>
7620
7621 * dwarf2read.c (attr_value_as_address): New function.
7622 (dwarf2_find_base_address, read_call_site_scope): Use
7623 attr_value_as_address in place of DW_ADDR.
7624 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7625 the low and high addresses. Slight rework of the handling
7626 of the high pc being a constant form, and limit it to
7627 DWARF verson 4 or higher.
7628 (dwarf2_record_block_ranges): Likewise.
7629 (read_partial_die): Likewise.
7630 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7631
9b333ba3
TT
76322014-02-26 Tom Tromey <tromey@redhat.com>
7633
7634 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7635
5f6cac40
TT
76362014-02-26 Tom Tromey <tromey@redhat.com>
7637
7638 * elfread.c (elf_read_minimal_symbols): Return early if
7639 minimal symbols have already been read. Add "ei" parameter.
7640 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7641 * minsyms.c (prim_record_minimal_symbol_full): Update.
7642 * objfiles.h (struct objstats) <n_minsyms>: Move...
7643 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7644 * symmisc.c (print_objfile_statistics): Update.
7645
2750ef27
TT
76462014-02-26 Tom Tromey <tromey@redhat.com>
7647
7648 * elfread.c (elf_read_minimal_symbols): New function, from
7649 elf_symfile_read.
7650 (elf_symfile_read): Call it.
7651
34643a32
TT
76522014-02-26 Tom Tromey <tromey@redhat.com>
7653
7654 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7655 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7656 (lookup_minimal_symbol_solib_trampoline)
7657 (lookup_minimal_symbol_by_pc_section_1)
7658 (lookup_minimal_symbol_and_objfile): Update.
7659 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7660 Don't allocate a minimal symbol if minsyms have already been read.
7661 (build_minimal_symbol_hash_tables): Update.
7662 (install_minimal_symbols): Do nothing if minsyms already read.
7663 Use the per-BFD obstack.
7664 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7665 * objfiles.c (allocate_objfile): Call
7666 terminate_minimal_symbol_table later.
7667 (have_minimal_symbols): Update.
7668 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7669 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7670 Move from struct objfile.
7671 <minsyms_read>: New field.
7672 (struct objfile) <msymbols, minimal_symbol_count,
7673 msymbol_hash, msymbol_demangled_hash>: Move.
7674 (ALL_OBJFILE_MSYMBOLS): Update.
7675 * symfile.c (read_symbols): Set minsyms_read.
7676 (reread_symbols): Update.
7677 * symmisc.c (dump_objfile, dump_msymbols): Update.
7678
2273f0ac
TT
76792014-02-26 Tom Tromey <tromey@redhat.com>
7680
7681 * minsyms.c (msymbols_sort): Remove.
7682 * minsyms.h (msymbols_sort): Remove.
7683 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7684 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7685 * elfread.c (elf_symtab_read): Don't add section offsets.
7686 * xcoffread.c (record_minimal_symbol): Don't add section offset
7687 to minimal symbol address.
7688 * somread.c (text_offset, data_offset): Remove.
7689 (som_symtab_read): Don't add section offsets to minimal symbol
7690 addresses.
7691 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7692 Don't add section offsets to minimal symbols.
7693 * coffread.c (coff_symtab_read): Don't add section offsets
7694 to minimal symbol addresses.
7695 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7696 to minimal symbol addresses.
7697 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7698 section offset to minimal symbol addresses.
7699 * mdebugread.c (parse_partial_symbols): Don't add section
7700 offset to minimal symbol addresses.
7701 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7702 offset to minimal symbol addresses.
7703
77e371c0
TT
77042014-02-26 Tom Tromey <tromey@redhat.com>
7705
7706 * ada-lang.c (ada_main_name): Update.
7707 (ada_add_standard_exceptions): Update.
7708 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7709 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7710 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7711 * auxv.c (ld_so_xfer_auxv): Update.
7712 * avr-tdep.c (avr_scan_prologue): Update.
7713 * ax-gdb.c (gen_var_ref): Update.
7714 * blockframe.c (get_pc_function_start)
7715 (find_pc_partial_function_gnu_ifunc): Update.
7716 * breakpoint.c (create_overlay_event_breakpoint)
7717 (create_longjmp_master_breakpoint)
7718 (create_std_terminate_master_breakpoint)
7719 (create_exception_master_breakpoint): Update.
7720 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7721 * c-valprint.c (c_val_print): Update.
7722 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7723 * common/agent.c (agent_look_up_symbols): Update.
7724 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7725 * dwarf2loc.c (call_site_to_target_addr): Update.
7726 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7727 * elfread.c (elf_gnu_ifunc_record_cache)
7728 (elf_gnu_ifunc_resolve_by_got): Update.
7729 * findvar.c (default_read_var_value): Update.
7730 * frame.c (inside_main_func): Update.
7731 * frv-tdep.c (frv_frame_this_id): Update.
7732 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7733 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7734 Update.
7735 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7736 (hppa_hpux_find_dummy_bpaddr): Update.
7737 * hppa-tdep.c (hppa_symbol_address): Update.
7738 * infcmd.c (until_next_command): Update.
7739 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7740 Update.
7741 * linespec.c (minsym_found, add_minsym): Update.
7742 * linux-nat.c (get_signo): Update.
7743 * linux-thread-db.c (inferior_has_bug): Update.
7744 * m32c-tdep.c (m32c_return_value)
7745 (m32c_m16c_address_to_pointer): Update.
7746 * m32r-tdep.c (m32r_frame_this_id): Update.
7747 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7748 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7749 * maint.c (maintenance_translate_address): Update.
7750 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7751 (frob_address): New function.
7752 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7753 frob_address. Rename parameter to "pc_in".
7754 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7755 addresses.
7756 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7757 Update.
7758 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7759 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7760 * objc-lang.c (find_objc_msgsend): Update.
7761 * objfiles.c (objfile_relocate1): Update.
7762 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7763 * p-valprint.c (pascal_val_print): Update.
7764 * parse.c (write_exp_msymbol): Update.
7765 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7766 (ppc_elfv2_skip_entrypoint): Update.
7767 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7768 * printcmd.c (build_address_symbolic, msym_info)
7769 (address_info): Update.
7770 * proc-service.c (ps_pglobal_lookup): Update.
7771 * psymtab.c (find_pc_sect_psymtab_closer)
7772 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7773 Change msymbol parameter to bound_minimal_symbol.
7774 * ravenscar-thread.c (get_running_thread_id): Update.
7775 * remote.c (remote_check_symbols): Update.
7776 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7777 address.
7778 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7779 * solib-dsbt.c (lm_base): Update.
7780 * solib-frv.c (lm_base, main_got): Update.
7781 * solib-irix.c (locate_base): Update.
7782 * solib-som.c (som_solib_create_inferior_hook)
7783 (link_map_start): Update.
7784 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7785 * solib-svr4.c (elf_locate_base, enable_break): Update.
7786 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7787 (flush_ea_cache): Update.
7788 * stabsread.c (define_symbol, scan_file_globals): Update.
7789 * stack.c (find_frame_funname): Update.
7790 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7791 (debug_qf_find_pc_sect_symtab): Update.
7792 * symfile.c (simple_read_overlay_table)
7793 (simple_overlay_update): Update.
7794 * symfile.h (struct quick_symbol_functions)
7795 <find_pc_sect_symtab>: Change type of msymbol to
7796 bound_minimal_symbol.
7797 * symmisc.c (dump_msymbols): Update.
7798 * symtab.c (find_pc_sect_symtab_via_partial)
7799 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7800 (search_symbols, print_msymbol_info): Update.
7801 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7802 (MSYMBOL_VALUE_ADDRESS): Redefine.
7803 (BMSYMBOL_VALUE_ADDRESS): New macro.
7804 * tracepoint.c (scope_info): Update.
7805 * tui/tui-disasm.c (tui_find_disassembly_address)
7806 (tui_get_begin_asm_address): Update.
7807 * valops.c (find_function_in_inferior): Update.
7808 * value.c (value_static_field, value_fn_field): Update.
7809
3b7344d5
TT
78102014-02-26 Tom Tromey <tromey@redhat.com>
7811
7812 * ada-lang.c (ada_update_initial_language): Update.
7813 (ada_main_name, ada_has_this_exception_support): Update.
7814 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7815 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7816 * arm-tdep.c (arm_skip_stub): Update.
7817 * auxv.c (ld_so_xfer_auxv): Update.
7818 * avr-tdep.c (avr_scan_prologue): Update.
7819 * ax-gdb.c (gen_var_ref): Update.
7820 * breakpoint.c (struct breakpoint_objfile_data)
7821 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7822 type to bound_minimal_symbol.
7823 (create_overlay_event_breakpoint)
7824 (create_longjmp_master_breakpoint)
7825 (create_std_terminate_master_breakpoint)
7826 (create_exception_master_breakpoint): Update.
7827 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7828 * c-exp.y (classify_name): Update.
7829 * coffread.c (coff_symfile_read): Update.
7830 * common/agent.c (agent_look_up_symbols): Update.
7831 * d-lang.c (d_main_name): Update.
7832 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7833 * dec-thread.c (enable_dec_thread): Update.
7834 * dwarf2loc.c (call_site_to_target_addr): Update.
7835 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7836 * eval.c (evaluate_subexp_standard): Update.
7837 * findvar.c (struct minsym_lookup_data) <result>: Change type
7838 to bound_minimal_symbol.
7839 <objfile>: Remove.
7840 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7841 * frame.c (inside_main_func): Update.
7842 * frv-tdep.c (frv_frame_this_id): Update.
7843 * gcore.c (call_target_sbrk): Update.
7844 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7845 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7846 Update.
7847 * go-lang.c (go_main_name): Update.
7848 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7849 (hppa_hpux_find_import_stub_for_addr): Update.
7850 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7851 Update. Change return type.
7852 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7853 type.
7854 * jit.c (jit_breakpoint_re_set_internal): Update.
7855 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7856 Update.
7857 * linux-nat.c (get_signo): Update.
7858 * linux-thread-db.c (inferior_has_bug): Update
7859 * m32c-tdep.c (m32c_return_value)
7860 (m32c_m16c_address_to_pointer): Update.
7861 * m32r-tdep.c (m32r_frame_this_id): Update.
7862 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7863 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7864 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7865 lookup_minimal_symbol. Change return type.
7866 (lookup_minimal_symbol): Remove.
7867 (lookup_bound_minimal_symbol): Update.
7868 (lookup_minimal_symbol_text): Change return type.
7869 (lookup_minimal_symbol_solib_trampoline): Change return type.
7870 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7871 (lookup_minimal_symbol_solib_trampoline): Change return type.
7872 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7873 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7874 (value_nsstring, find_imps): Update.
7875 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7876 * p-lang.c (pascal_main_name): Update.
7877 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7878 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7879 * proc-service.c (ps_pglobal_lookup): Update.
7880 * ravenscar-thread.c (get_running_thread_msymbol): Change
7881 return type.
7882 (has_ravenscar_runtime, get_running_thread_id): Update.
7883 * remote.c (remote_check_symbols): Update.
7884 * sol-thread.c (ps_pglobal_lookup): Update.
7885 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7886 * solib-dsbt.c (lm_base): Update.
7887 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7888 Update.
7889 * solib-irix.c (locate_base): Update.
7890 * solib-som.c (som_solib_create_inferior_hook)
7891 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7892 Update.
7893 * solib-spu.c (spu_enable_break): Update.
7894 * solib-svr4.c (elf_locate_base, enable_break): Update.
7895 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7896 (flush_ea_cache): Update.
7897 * stabsread.c (define_symbol): Update.
7898 * symfile.c (simple_read_overlay_table): Update.
7899 * symtab.c (find_pc_sect_line): Update.
7900 * tracepoint.c (scope_info): Update.
7901 * tui-disasm.c (tui_get_begin_asm_address): Update.
7902 * value.c (value_static_field): Update.
7903
40c1a007
TT
79042014-02-26 Tom Tromey <tromey@redhat.com>
7905
7906 * minsyms.c (prim_record_minimal_symbol_full): Use
7907 SET_MSYMBOL_VALUE_ADDRESS.
7908 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7909 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7910 SET_MSYMBOL_VALUE_ADDRESS.
7911 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7912 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7913
efd66ac6
TT
79142014-02-26 Tom Tromey <tromey@redhat.com>
7915
7916 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7917 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7918 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7919 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7920 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7921 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7922 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7923 * ada-lang.c (ada_main_name): Update.
7924 (ada_lookup_simple_minsym): Update.
7925 (ada_make_symbol_completion_list): Update.
7926 (ada_add_standard_exceptions): Update.
7927 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7928 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7929 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7930 * arm-tdep.c (skip_prologue_function): Update.
7931 (arm_skip_stack_protector, arm_skip_stub): Update.
7932 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7933 (arm_wince_skip_main_prologue): Update.
7934 * auxv.c (ld_so_xfer_auxv): Update.
7935 * avr-tdep.c (avr_scan_prologue): Update.
7936 * ax-gdb.c (gen_var_ref): Update.
7937 * block.c (call_site_for_pc): Update.
7938 * blockframe.c (get_pc_function_start): Update.
7939 (find_pc_partial_function_gnu_ifunc): Update.
7940 * breakpoint.c (create_overlay_event_breakpoint): Update.
7941 (create_longjmp_master_breakpoint): Update.
7942 (create_std_terminate_master_breakpoint): Update.
7943 (create_exception_master_breakpoint): Update.
7944 (resolve_sal_pc): Update.
7945 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7946 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7947 Update.
7948 * c-valprint.c (c_val_print): Update.
7949 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7950 * coffread.c (coff_symfile_read): Update.
7951 * common/agent.c (agent_look_up_symbols): Update.
7952 * dbxread.c (find_stab_function_addr): Update.
7953 (end_psymtab): Update.
7954 * dwarf2loc.c (call_site_to_target_addr): Update.
7955 (func_verify_no_selftailcall): Update.
7956 (tailcall_dump): Update.
7957 (call_site_find_chain_1): Update.
7958 (dwarf_expr_reg_to_entry_parameter): Update.
7959 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7960 (elf_gnu_ifunc_resolve_by_got): Update.
7961 * f-valprint.c (info_common_command): Update.
7962 * findvar.c (read_var_value): Update.
7963 * frame.c (get_prev_frame_1): Update.
7964 (inside_main_func): Update.
7965 * frv-tdep.c (frv_skip_main_prologue): Update.
7966 (frv_frame_this_id): Update.
7967 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7968 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7969 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7970 (gnuv3_skip_trampoline): Update.
7971 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7972 (hppa64_hpux_in_solib_call_trampoline): Update.
7973 (hppa_hpux_skip_trampoline_code): Update.
7974 (hppa64_hpux_search_dummy_call_sequence): Update.
7975 (hppa_hpux_find_import_stub_for_addr): Update.
7976 (hppa_hpux_find_dummy_bpaddr): Update.
7977 * hppa-tdep.c (hppa_symbol_address)
7978 (hppa_lookup_stub_minimal_symbol): Update.
7979 * i386-tdep.c (i386_skip_main_prologue): Update.
7980 (i386_pe_skip_trampoline_code): Update.
7981 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7982 * infcall.c (get_function_name): Update.
7983 * infcmd.c (until_next_command): Update.
7984 * jit.c (jit_breakpoint_re_set_internal): Update.
7985 (jit_inferior_init): Update.
7986 * linespec.c (minsym_found): Update.
7987 (add_minsym): Update.
7988 * linux-fork.c (info_checkpoints_command): Update.
7989 * linux-nat.c (get_signo): Update.
7990 * linux-thread-db.c (inferior_has_bug): Update.
7991 * m32c-tdep.c (m32c_return_value): Update.
7992 (m32c_m16c_address_to_pointer): Update.
7993 (m32c_m16c_pointer_to_address): Update.
7994 * m32r-tdep.c (m32r_frame_this_id): Update.
7995 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7996 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7997 * maint.c (maintenance_translate_address): Update.
7998 * minsyms.c (add_minsym_to_hash_table): Update.
7999 (add_minsym_to_demangled_hash_table): Update.
8000 (msymbol_objfile): Update.
8001 (lookup_minimal_symbol): Update.
8002 (iterate_over_minimal_symbols): Update.
8003 (lookup_minimal_symbol_text): Update.
8004 (lookup_minimal_symbol_by_pc_name): Update.
8005 (lookup_minimal_symbol_solib_trampoline): Update.
8006 (lookup_minimal_symbol_by_pc_section_1): Update.
8007 (lookup_minimal_symbol_and_objfile): Update.
8008 (prim_record_minimal_symbol_full): Update.
8009 (compare_minimal_symbols): Update.
8010 (compact_minimal_symbols): Update.
8011 (build_minimal_symbol_hash_tables): Update.
8012 (install_minimal_symbols): Update.
8013 (terminate_minimal_symbol_table): Update.
8014 (find_solib_trampoline_target): Update.
8015 (minimal_symbol_upper_bound): Update.
8016 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8017 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8018 (mips_skip_pic_trampoline_code): Update.
8019 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8020 * objc-lang.c (selectors_info): Update.
8021 (classes_info): Update.
8022 (find_methods): Update.
8023 (find_imps): Update.
8024 (find_objc_msgsend): Update.
8025 * objfiles.c (objfile_relocate1): Update.
8026 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8027 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8028 * p-valprint.c (pascal_val_print): Update.
8029 * parse.c (write_exp_msymbol): Update.
8030 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8031 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8032 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8033 * printcmd.c (build_address_symbolic): Update.
8034 (sym_info): Update.
8035 (address_info): Update.
8036 * proc-service.c (ps_pglobal_lookup): Update.
8037 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8038 (find_pc_sect_psymtab): Update.
8039 * python/py-framefilter.c (py_print_frame): Update.
8040 * ravenscar-thread.c (get_running_thread_id): Update.
8041 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8042 Update.
8043 * remote.c (remote_check_symbols): Update.
8044 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8045 (rs6000_skip_trampoline_code): Update.
8046 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8047 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8048 * solib-dsbt.c (lm_base): Update.
8049 * solib-frv.c (lm_base): Update.
8050 (main_got): Update.
8051 * solib-irix.c (locate_base): Update.
8052 * solib-som.c (som_solib_create_inferior_hook): Update.
8053 (som_solib_desire_dynamic_linker_symbols): Update.
8054 (link_map_start): Update.
8055 * solib-spu.c (spu_enable_break): Update.
8056 (ocl_enable_break): Update.
8057 * solib-svr4.c (elf_locate_base): Update.
8058 (enable_break): Update.
8059 * spu-tdep.c (spu_get_overlay_table): Update.
8060 (spu_catch_start): Update.
8061 (flush_ea_cache): Update.
8062 * stabsread.c (define_symbol): Update.
8063 (scan_file_globals): Update.
8064 * stack.c (find_frame_funname): Update.
8065 (frame_info): Update.
8066 * symfile.c (simple_read_overlay_table): Update.
8067 (simple_overlay_update): Update.
8068 * symmisc.c (dump_msymbols): Update.
8069 * symtab.c (fixup_section): Update.
8070 (find_pc_sect_line): Update.
8071 (skip_prologue_sal): Update.
8072 (search_symbols): Update.
8073 (print_msymbol_info): Update.
8074 (rbreak_command): Update.
8075 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8076 (completion_list_objc_symbol): Update.
8077 (default_make_symbol_completion_list_break_on): Update.
8078 * tracepoint.c (scope_info): Update.
8079 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8080 (tui_get_begin_asm_address): Update.
8081 * valops.c (find_function_in_inferior): Update.
8082 * value.c (value_static_field): Update.
8083 (value_fn_field): Update.
8084
50e65b17
TT
80852014-02-26 Tom Tromey <tromey@redhat.com>
8086
8087 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8088 bound minimal symbols. Move code that knows about minsym
8089 table layout...
8090 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8091 function.
8092 * minsyms.h (minimal_symbol_upper_bound): Declare.
8093 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8094 minimal_symbol_upper_bound.
8095
1b588015
JB
80962014-02-27 Joel Brobecker <brobecker@adacore.com>
8097
8098 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8099 Use the type's name if its basic type does not have a tag.
8100
dbb9c2b1
JB
81012014-02-27 Joel Brobecker <brobecker@adacore.com>
8102
8103 * dwarf2read.c (read_subrange_type): Add comment.
8104
55426c9d
JB
81052014-02-27 Joel Brobecker <brobecker@adacore.com>
8106
8107 * dwarf2read.c (update_enumeration_type_from_children): New
8108 function, mostly extracted from process_structure_scope.
8109 (read_enumeration_type): Call update_enumeration_type_from_children.
8110 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8111 and flag_flag_enum fields.
8112
f2fce0ca
PA
81132014-02-26 Pedro Alves <palves@redhat.com>
8114
8115 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8116 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8117 to_xfer_partial method.
8118
7a44e40e
PA
81192014-02-26 Pedro Alves <palves@redhat.com>
8120
8121 * target.c (complete_target_initialization): Don't install
8122 default_xfer_partial as to_xfer_partial hook.
8123 (nomemory): Delete.
8124 (update_current_target): Don't INHERIT nor de_fault
8125 deprecated_xfer_memory. Delete de_fault macro.
8126 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8127 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8128 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8129 field.
8130
bd265cd0
PA
81312014-02-26 Pedro Alves <palves@redhat.com>
8132
8133 * go32-nat.c (my_write_child): New function.
8134 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8135 (go32_xfer_partial): New function.
8136 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8137 Instead install a to_xfer_partial hook.
8138
9d46c4e5
PA
81392014-02-26 Pedro Alves <palves@redhat.com>
8140
8141 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8142 to_xfer_partial helper. Rewrite.
8143 (procfs_xfer_partial): New function.
8144 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8145 Install a to_xfer_partial hook.
8146
a1583b1f
PA
81472014-02-26 Pedro Alves <palves@redhat.com>
8148
8149 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8150 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8151 (m32r_xfer_partial): New function.
8152 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8153 Install a to_xfer_partial hook.
8154
6df1b29f
PA
81552014-02-26 Pedro Alves <palves@redhat.com>
8156
8157 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8158 helper.
8159 (mips_xfer_partial): New function.
8160 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8161 hook. Install a to_xfer_partial hook.
8162
dc53a7ad
JB
81632014-02-26 Joel Brobecker <brobecker@adacore.com>
8164
8165 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8166 * gdbtypes.c (create_array_type_with_stride): New function,
8167 renaming create_array_type, but with an added parameter
8168 called "bit_stride".
8169 (create_array_type): Re-implement using
8170 create_array_type_with_stride.
8171 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8172 and DW_AT_bit_stride attributes.
8173
12ab52e9
PA
81742014-02-26 Pedro Alves <palves@redhat.com>
8175
8176 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8177 task-specific breakpoints.
8178
d16461ae
PA
81792014-02-25 Pedro Alves <palves@redhat.com>
8180
8181 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8182 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8183
a8b16220
SS
81842014-02-25 Stan Shebs <stan@codesourcery.com>
8185
8186 * defs.h: Annotate comments for Doxygen.
8187
b9e795ee
TT
81882014-02-25 Tom Tromey <tromey@redhat.com>
8189
8190 * target.h (target_ignore): Don't declare.
8191 * target.c (target_ignore): Remove.
8192
849c862e
JK
81932014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8194
8195 PR gdb/16626
8196 * auto-load.c (auto_load_objfile_script_1): Change filename to
8197 debugfile.
8198
475109d8
JB
81992014-02-25 Joel Brobecker <brobecker@adacore.com>
8200
8201 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8202 documentation. Adjust prototype to match the target_ops
8203 to_xfer_partial method. Adjust implementation accordingly.
8204
e186c3bd
HZ
82052014-02-25 Hui Zhu <hui@codesourcery.com>
8206
8207 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8208 to_traceframe_info.
8209
6d451942
KB
82102014-02-25 Kevin Buettner <kevinb@redhat.com>
8211
041ab8b4 8212 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
8213 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8214 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8215 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8216 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8217 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8218 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8219 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8220 New constants.
8221 (rl78_register_type): Use a data pointer type for SP and
8222 new pseudo registers mentioned above. Use a 16 bit integer
8223 type for all other register pairs.
8224 (rl78_register_name, rl78_g10_register_name): Update for
8225 new pseudo registers.
8226 (rl78_pseudo_register_read): Likewise.
8227 (rl78_pseudo_register_write): Likewise.
8228 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8229 to the newly added pseudo registers.
8230
eddf0bae
DE
82312014-02-24 Doug Evans <dje@google.com>
8232
8233 * value.c (record_latest_value): Fix comment.
8234 * printcmd.c (print_command_1): Remove code to handle -1 return from
8235 record_latest_value.
8236
e96027e0
PA
82372014-02-24 Pedro Alves <palves@redhat.com>
8238
8239 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8240 deprecated_xfer_memory hook.
8241 (procfs_xfer_partial): Call procfs_xfer_memory instead
8242 of the deprecated_xfer_memory target hook.
8243 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8244 helper.
8245
0837c976
YZ
82462014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8247
8248 * windows-nat.c (windows_xfer_shared_libraries): Return
8249 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8250 requested object is TARGET_OBJECT_LIBRARIES.
8251
bc113b4e
YQ
82522014-02-24 Yao Qi <yao@codesourcery.com>
8253
8254 * target.h (enum target_xfer_status)
8255 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8256 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8257 explicitly. New.
8258 * corefile.c (memory_error_message): User updated.
8259 * exec.c (section_table_read_available_memory): Likewise.
8260 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8261 * target.c (target_xfer_status_to_string): Likewise.
8262 (raw_memory_xfer_partial): Likewise.
8263 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8264 * valops.c (read_value_memory): Likewise.
8265 * exec.h: Update comments.
8266
01cb8804
YQ
82672014-02-24 Yao Qi <yao@codesourcery.com>
8268
8269 * target.c (target_xfer_status_to_string): Rename argument err
8270 to status.
8271 * target.h (target_xfer_status_to_string): Update declaration.
8272 Replace target_xfer_error_to_string with
8273 target_xfer_status_to_string in comment.
8274
93063aa6
YQ
82752014-02-24 Yao Qi <yao@codesourcery.com>
8276
8277 * mips-linux-nat.c (super_close): Update its type.
8278 (mips_linux_close): Pass 'self' to super_close.
8279
5c328c05
YQ
82802014-02-24 Yao Qi <yao@codesourcery.com>
8281
8282 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8283 * corefile.c (read_memory): Adjusted.
8284 * target.c (target_write_with_progress): Adjusted.
8285
f73023dd
YQ
82862014-02-23 Yao Qi <yao@codesourcery.com>
8287
8288 Revert two patches:
8289
8290 2013-10-25 Yao Qi <yao@codesourcery.com>
8291
8292 * remote.c (remote_traceframe_info): Return early if
8293 traceframe is not selected.
8294
8295 2013-07-19 Yao Qi <yao@codesourcery.com>
8296
8297 * target.c (update_current_target): Change the default action
8298 of 'to_traceframe_info' from tcomplain to return_zero.
8299 * target.h (struct target_ops) <to_traceframe_info>: Add more
8300 comments.
8301
5a2eb0ef
YQ
83022014-02-23 Yao Qi <yao@codesourcery.com>
8303
8304 * valops.c (read_value_memory): Rewrite it. Call
8305 target_xfer_partial in a loop.
8306 * exec.h (section_table_available_memory): Remove declaration.
8307 Move comments to ...
8308 * exec.c (section_table_available_memory): ... here. Make it
8309 static.
8310
1ee79381
YQ
83112014-02-23 Yao Qi <yao@codesourcery.com>
8312
8313 * exec.c (section_table_read_available_memory): New function.
8314 * exec.h (section_table_read_available_memory): Declare.
8315 * ctf.c (ctf_xfer_partial): Call
8316 section_table_read_available_memory.
8317 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8318
1ca49d37
YQ
83192014-02-23 Yao Qi <yao@codesourcery.com>
8320
8321 * ctf.c (ctf_xfer_partial): Move code to ...
8322 * exec.c (exec_read_partial_read_only): ... it. New function.
8323 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8324 * tracefile.c: Include "exec.h".
8325 * exec.h (exec_read_partial_read_only): Declare.
8326
a283690e
YQ
83272014-02-23 Yao Qi <yao@codesourcery.com>
8328
8329 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8330 (tfile_has_memory): Remove.
8331 (init_tfile_ops): Don't set fields to_has_all_memory and
8332 to_has_memory of tfile_ops.
8333 * tracefile.c (tracefile_has_all_memory): New function.
8334 (tracefile_has_memory): New function.
8335 (init_tracefile_ops): Initialize fields to_has_all_memory and
8336 to_has_memory of 'ops'.
8337
12e03cd0
YQ
83382014-02-23 Yao Qi <yao@codesourcery.com>
8339
8340 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8341 (ctf_thread_alive, ctf_get_trace_status): Remove.
8342 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8343 init_tracefile_ops.
8344 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8345 (tfile_has_stack, tfile_has_registers): Remove.
8346 (tfile_thread_alive): Remove.
8347 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8348 init_tracefile_ops.
8349 * tracefile.c (tracefile_has_stack): New function.
8350 (tracefile_has_registers): New function.
8351 (tracefile_thread_alive): New function.
8352 (tracefile_get_trace_status): New function.
8353 (init_tracefile_ops): New function.
8354 * tracefile.h (init_tracefile_ops): Declare.
8355
11395323
YQ
83562014-02-23 Yao Qi <yao@codesourcery.com>
8357
8358 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8359 (O_LARGEFILE): Likewise.
8360 (tfile_ops): Likewise.
8361 (TRACE_HEADER_SIZE): Likewise.
8362 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8363 (cur_data_size): Likewise.
8364 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8365 (tfile_close, tfile_files_info): Likewise.
8366 (tfile_get_trace_status): Likewise.
8367 (tfile_get_tracepoint_status): Likewise.
8368 (tfile_get_traceframe_address): Likewise.
8369 (tfile_trace_find, match_blocktype): Likewise.
8370 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8371 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8372 (tfile_get_trace_state_variable_value): Likewise.
8373 (tfile_has_all_memory, tfile_has_memory): Likewise.
8374 (tfile_has_stack, tfile_has_registers): Likewise.
8375 (tfile_thread_alive, build_traceframe_info): Likewise.
8376 (tfile_traceframe_info, init_tfile_ops): Likewise.
8377 (_initialize_tracepoint): Don't call init_tfile_ops
8378 and add_target_with_completer.
8379 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8380 exec.h, completer.h and filenames.h.
8381 (_initialize_tracefile_tfile): New function.
8382
7951c4eb
YQ
83832014-02-23 Yao Qi <yao@codesourcery.com>
8384
8385 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8386 tracefile-tfile.o.
8387 (HFILES_NO_SRCDIR): Add tracefile.h.
8388 * ctf.c: Include "tracefile.h".
8389 * tracefile.h: New file.
8390 * tracefile.c: New file
8391 * tracefile-tfile.c: New file.
8392 * tracepoint.c: Include "tracefile.h".
8393 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8394 (stop_reason_names): Add const.
8395 (trace_file_writer_xfree): Move it to tracefile.c.
8396 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8397 (trace_save_ctf): Likewise.
8398 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8399 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8400 (tfile_write_header, tfile_write_regblock_type): Likewise.
8401 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8402 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8403 (tfile_write_raw_data, tfile_end): Likewise.
8404 (tfile_trace_file_writer_new): Likewise.
8405 (free_uploaded_tp): Make it extern.
8406 (free_uploaded_tsv): Make it extern.
8407 (_initialize_tracepoint): Move code to register command 'tsave'
8408 to tracefile.c.
8409 * tracepoint.h (stop_reason_names): Declare.
8410 (struct trace_frame_write_ops): Move it to tracefile.h.
8411 (struct trace_file_write_ops): Likewise.
8412 (struct trace_file_writer): Likewise.
8413 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8414
184cd072
JK
84152014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8416
8417 PR gdb/16594
8418 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8419 process name.
8420 (get_cores_used_by_process): New parameter num_cores, use it.
8421 (linux_xfer_osdata_processes): Pass num_cores to it.
8422 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8423 process name.
8424
c63528fc
AK
84252014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8426
8427 * target.c (memory_xfer_partial): Fix length arg in call to
8428 breakpoint_xfer_memory.
8429
d7b30f67
SDJ
84302014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8431
8432 PR tdep/16397
8433 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8434 number comes after the + or - signs. Adjust length of register
8435 name to be extracted.
8436
8838afaf
TT
84372014-02-20 Tom Tromey <tromey@redhat.com>
8438
8439 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8440 (ada_varobj_ops): Mark "extern".
8441
05227d14
TT
84422014-02-20 Tom Tromey <tromey@redhat.com>
8443
8444 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8445
1254eefc
DE
84462014-02-20 Doug Evans <xdje42@gmail.com>
8447
8448 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8449 All callers updated.
8450 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8451 All callers updated.
8452 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8453 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8454
adde2bff
DE
84552014-02-20 lin zuojian <manjian2006@gmail.com>
8456 Joel Brobecker <brobecker@adacore.com>
8457 Doug Evans <xdje42@gmail.com>
8458
8459 PR symtab/16581
8460 * dwarf2read.c (struct die_info): New member in_process.
8461 (reset_die_in_process): New function.
8462 (process_die): Set it at the start, reset when returning.
8463 (inherit_abstract_dies): Only call process_die if origin_child_die
8464 not already being processed.
8465
3be75f87
JB
84662014-02-20 Joel Brobecker <brobecker@adacore.com>
8467
8468 * windows-nat.c (handle_unload_dll): Add function documentation.
8469 (do_initial_windows_stuff): Add comment explaining why we wait
8470 until after inferior initialization has finished before
8471 processing all DLLs.
8472
47f7ffdb
JB
84732014-02-20 Joel Brobecker <brobecker@adacore.com>
8474
8475 * windows-nat.c (get_module_name): Delete.
8476 (windows_get_exec_module_filename): New function, mostly
8477 inspired from get_module_name.
8478 (windows_pid_to_exec_file): Replace call to get_module_name
8479 by call to windows_get_exec_module_filename.
8480
1cd9feab
JB
84812014-02-20 Joel Brobecker <brobecker@adacore.com>
8482
8483 * windows-nat.c (handle_load_dll): Rewrite this function's
8484 introductory comment. Remove code using get_module_name
8485 to get the DLL's name.
8486
ea39ad35
JB
84872014-02-20 Joel Brobecker <brobecker@adacore.com>
8488
8489 * windows-nat.c (get_windows_debug_event): Ignore
8490 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8491 if windows_initialization_done == 0.
8492 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8493 Adjust implementation to always load all DLLs.
8494 (do_initial_windows_stuff): Replace call to
8495 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8496
95060284
JB
84972014-02-20 Joel Brobecker <brobecker@adacore.com>
8498
8499 * windows-nat.c (_initialize_windows_nat): Deprecate the
8500 "dll-symbols" command. Turn the "add-shared-symbol-files"
8501 and "assf" aliases into commands, and deprecate them as well.
8502 * NEWS: Add entry explaining that "dll-symbols" and its two
8503 aliases are now deprecated.
8504
8d4fdb12
JB
85052014-02-20 Joel Brobecker <brobecker@adacore.com>
8506
8507 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8508 new-line in debug string. Remove trailing spaces.
8509
1b281443
SS
85102014-02-19 Stan Shebs <stan@codesourcery.com>
8511
8512 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8513
f7bd0f78
SC
85142014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8515
8516 * NEWS: Add entry for the new feature
8517 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8518 and class values.
8519
399ebc3d
SS
85202014-02-19 Stan Shebs <stan@codesourcery.com>
8521
8522 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8523
c658158d
PA
85242014-02-19 Pedro Alves <palves@redhat.com>
8525
8526 * common/ptid.h (struct ptid): Mention that process_stratum
8527 targets should prefer ptid.lwp.
8528
ba348170
PA
85292014-02-19 Pedro Alves <palves@redhat.com>
8530
8531 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8532 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8533 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8534 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8535 store remote thread ids rather than ptid.tid.
8536 (_initialize_remote): Adjust.
8537
ac01945b
TT
85382014-02-19 Tom Tromey <tromey@redhat.com>
8539
8540 * target.c (target_get_unwinder): Rewrite.
8541 (target_get_tailcall_unwinder): Rewrite.
8542 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8543 (record_btrace_to_get_tailcall_unwinder): New function.
8544 (init_record_btrace_ops): Update.
8545 * target.h (struct target_ops) <to_get_unwinder,
8546 to_get_tailcall_unwinder>: Now function pointers. Use
8547 TARGET_DEFAULT_RETURN.
8548
8476dc92
TT
85492014-02-19 Tom Tromey <tromey@redhat.com>
8550
8551 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8552 argument.
8553 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8554
c0eca49f
TT
85552014-02-19 Tom Tromey <tromey@redhat.com>
8556
8557 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8558 directly.
8559 * target-delegates.c: Rebuild.
8560 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8561 TARGET_DEFAULT_FUNC.
8562 * target.c (default_target_decr_pc_after_break): Rename from
8563 forward_target_decr_pc_after_break. Simplify.
8564 (target_decr_pc_after_break): Rely on delegation.
8565
596b6b39
TT
85662014-02-19 Tom Tromey <tromey@redhat.com>
8567
8568 * target.c (update_current_target): Do not INHERIT to_doc or
8569 to_magic. Do not de_fault to_open or to_close.
8570
b427c1bc
TT
85712014-02-19 Tom Tromey <tromey@redhat.com>
8572
8573 * gcore.h (objfile_find_memory_regions): Declare.
8574 * gcore.c (objfile_find_memory_regions): No longer static. Add
8575 "self" argument.
8576 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8577 * exec.c: Include gcore.h.
8578 (exec_set_find_memory_regions): Remove.
8579 (exec_find_memory_regions): Remove.
8580 (exec_do_find_memory_regions): Remove.
8581 (init_exec_ops): Update.
8582 * defs.h (exec_set_find_memory_regions): Remove.
8583
9b144037
TT
85842014-02-19 Tom Tromey <tromey@redhat.com>
8585
8586 * target-delegates.c: Rebuild.
8587 * target.h (struct target_ops) <to_extra_thread_info,
8588 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8589 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8590 not 0, in TARGET_DEFAULT_RETURN.
8591
555bbdeb
TT
85922014-02-19 Tom Tromey <tromey@redhat.com>
8593
8594 * target.c (complete_target_initialization): Remove casts. Use
8595 return_zero_has_execution.
8596 (return_zero): Add "ignore" argument.
8597 (return_zero_has_execution): New function.
8598 (init_dummy_target): Remove casts. Use
8599 return_zero_has_execution.
8600
be4ddd36
TT
86012014-02-19 Tom Tromey <tromey@redhat.com>
8602
8603 * target.c (update_current_target): Update comments. Do not
8604 INHERIT to_stratum.
8605
2117c711
TT
86062014-02-19 Tom Tromey <tromey@redhat.com>
8607
8608 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8609 needed.
8610 * corelow.c (core_read_description): Delegate when needed.
8611 * remote.c (remote_read_description): Delegate when needed.
8612 * target-delegates.c: Rebuild.
8613 * target.c (target_read_description): Rewrite.
8614 * target.h (struct target_ops) <to_read_description>: Update
8615 comment. Use TARGET_DEFAULT_RETURN.
8616
e88ef65c
TT
86172014-02-19 Tom Tromey <tromey@redhat.com>
8618
8619 * target-delegates.c: Rebuild.
8620 * target.c (update_current_target): Don't inherit or default
8621 to_can_run.
8622 (find_default_run_target): Check against delegate_can_run.
8623 * target.h (struct target_ops) <to_can_run>: Use
8624 TARGET_DEFAULT_RETURN.
8625
86a0854a
TT
86262014-02-19 Tom Tromey <tromey@redhat.com>
8627
8628 * target-delegates.c: Rebuild.
8629 * target.c (target_disconnect): Unconditionally delegate.
8630 * target.h (struct target_ops) <to_disconnect>: Use
8631 TARGET_DEFAULT_NORETURN.
8632
ee97f592
TT
86332014-02-19 Tom Tromey <tromey@redhat.com>
8634
8635 * record.c (record_stop): Unconditionally delegate.
8636 * target-delegates.c: Rebuild.
8637 * target.c (target_stop_recording): Unconditionally delegate.
8638 * target.h (struct target_ops) <to_stop_recording>: Use
8639 TARGET_DEFAULT_IGNORE.
8640
6dc7fcf4
TT
86412014-02-19 Tom Tromey <tromey@redhat.com>
8642
8643 * target-delegates.c: Rebuild.
8644 * target.c (target_enable_btrace): Unconditionally delegate.
8645 * target.h (struct target_ops) <to_enable_btrace>: Use
8646 TARGET_DEFAULT_NORETURN.
8647
eb5b20d4
TT
86482014-02-19 Tom Tromey <tromey@redhat.com>
8649
8650 * target-delegates.c: Rebuild.
8651 * target.c (target_read_btrace): Unconditionally delegate.
8652 * target.h (struct target_ops) <to_read_btrace>: Use
8653 TARGET_DEFAULT_NORETURN.
8654
9ace480d
TT
86552014-02-19 Tom Tromey <tromey@redhat.com>
8656
8657 * target-delegates.c: Rebuild.
8658 * target.c (target_teardown_btrace): Unconditionally delegate.
8659 * target.h (struct target_ops) <to_teardown_btrace>: Use
8660 TARGET_DEFAULT_NORETURN.
8661
8dc292d3
TT
86622014-02-19 Tom Tromey <tromey@redhat.com>
8663
8664 * target-delegates.c: Rebuild.
8665 * target.c (target_disable_btrace): Unconditionally delegate.
8666 * target.h (struct target_ops) <to_disable_btrace>: Use
8667 TARGET_DEFAULT_NORETURN.
8668
58a5184e
TT
86692014-02-19 Tom Tromey <tromey@redhat.com>
8670
8671 * target-delegates.c: Rebuild.
8672 * target.c (default_search_memory): New function.
8673 (simple_search_memory): Update comment.
8674 (target_search_memory): Unconditionally delegate.
8675 * target.h (struct target_ops) <to_search_memory>: Use
8676 TARGET_DEFAULT_FUNC.
8677
8de71aab
TT
86782014-02-19 Tom Tromey <tromey@redhat.com>
8679
8680 * auxv.c (default_auxv_parse): No longer static.
8681 (target_auxv_parse): Unconditionally delegate.
8682 * auxv.h (default_auxv_parse): Declare.
8683 * target-delegates.c: Rebuild.
8684 * target.c: Include auxv.h.
8685 * target.h (struct target_ops) <to_auxv_parse>: Use
8686 TARGET_DEFAULT_FUNC.
8687
6b2c5a57
TT
86882014-02-19 Tom Tromey <tromey@redhat.com>
8689
8690 * target-delegates.c: Rebuild.
8691 * target.c (target_memory_map): Unconditionally delegate.
8692 * target.h (struct target_ops) <to_memory_map>: Use
8693 TARGET_DEFAULT_RETURN.
8694
cbffc065
TT
86952014-02-19 Tom Tromey <tromey@redhat.com>
8696
8697 * target-delegates.c: Rebuild.
8698 * target.c (target_thread_alive): Unconditionally delegate.
8699 * target.h (struct target_ops) <to_thread_alive>: Use
8700 TARGET_DEFAULT_RETURN.
8701
f09e2107
TT
87022014-02-19 Tom Tromey <tromey@redhat.com>
8703
8704 * target-delegates.c: Rebuild.
8705 * target.c (target_save_record): Unconditionally delegate.
8706 * target.h (struct target_ops) <to_save_record>: Use
8707 TARGET_DEFAULT_NORETURN.
8708
07366925
TT
87092014-02-19 Tom Tromey <tromey@redhat.com>
8710
8711 * target-delegates.c: Rebuild.
8712 * target.c (target_delete_record): Unconditionally delegate.
8713 * target.h (struct target_ops) <to_delete_record>: Use
8714 TARGET_DEFAULT_NORETURN.
8715
dd2e9d25
TT
87162014-02-19 Tom Tromey <tromey@redhat.com>
8717
8718 * target-delegates.c: Rebuild.
8719 * target.c (target_record_is_replaying): Unconditionally
8720 delegate.
8721 * target.h (struct target_ops) <to_record_is_replaying>: Use
8722 TARGET_DEFAULT_RETURN.
8723
671e76cc
TT
87242014-02-19 Tom Tromey <tromey@redhat.com>
8725
8726 * target-delegates.c: Rebuild.
8727 * target.c (target_goto_record_begin): Unconditionally delegate.
8728 * target.h (struct target_ops) <to_goto_record_begin>: Use
8729 TARGET_DEFAULT_NORETURN.
8730
e9179bb3
TT
87312014-02-19 Tom Tromey <tromey@redhat.com>
8732
8733 * target-delegates.c: Rebuild.
8734 * target.c (target_goto_record_end): Unconditionally delegate.
8735 * target.h (struct target_ops) <to_goto_record_end>: Use
8736 TARGET_DEFAULT_NORETURN.
8737
05969c84
TT
87382014-02-19 Tom Tromey <tromey@redhat.com>
8739
8740 * target-delegates.c: Rebuild.
8741 * target.c (target_goto_record): Unconditionally delegate.
8742 * target.h (struct target_ops) <to_goto_record>: Use
8743 TARGET_DEFAULT_NORETURN.
8744
3679abfa
TT
87452014-02-19 Tom Tromey <tromey@redhat.com>
8746
8747 * target-delegates.c: Rebuild.
8748 * target.c (target_insn_history): Unconditionally delegate.
8749 * target.h (struct target_ops) <to_insn_history>: Use
8750 TARGET_DEFAULT_NORETURN.
8751
8444ab58
TT
87522014-02-19 Tom Tromey <tromey@redhat.com>
8753
8754 * target-delegates.c: Rebuild.
8755 * target.c (target_insn_history_from): Unconditionally delegate.
8756 * target.h (struct target_ops) <to_insn_history_from>: Use
8757 TARGET_DEFAULT_NORETURN.
8758
c29302cc
TT
87592014-02-19 Tom Tromey <tromey@redhat.com>
8760
8761 * target-delegates.c: Rebuild.
8762 * target.c (target_insn_history_range): Unconditionally delegate.
8763 * target.h (struct target_ops) <to_insn_history_range>: Use
8764 TARGET_DEFAULT_NORETURN.
8765
170049d4
TT
87662014-02-19 Tom Tromey <tromey@redhat.com>
8767
8768 * target-delegates.c: Rebuild.
8769 * target.c (target_call_history): Unconditionally delegate.
8770 * target.h (struct target_ops) <to_call_history>: Use
8771 TARGET_DEFAULT_NORETURN.
8772
16fc27d6
TT
87732014-02-19 Tom Tromey <tromey@redhat.com>
8774
8775 * target-delegates.c: Rebuild.
8776 * target.c (target_call_history_from): Unconditionally delegate.
8777 * target.h (struct target_ops) <to_call_history_from>: Use
8778 TARGET_DEFAULT_NORETURN.
8779
115d9817
TT
87802014-02-19 Tom Tromey <tromey@redhat.com>
8781
8782 * target-delegates.c: Rebuild.
8783 * target.c (target_call_history_range): Unconditionally delegate.
8784 * target.h (struct target_ops) <to_call_history_range>: Use
8785 TARGET_DEFAULT_NORETURN.
8786
eb276a6b
TT
87872014-02-19 Tom Tromey <tromey@redhat.com>
8788
8789 * target-delegates.c: Rebuild.
8790 * target.c (target_verify_memory): Unconditionally delegate.
8791 * target.h (struct target_ops) <to_verify_memory>: Use
8792 TARGET_DEFAULT_NORETURN.
8793
9e538d0d
TT
87942014-02-19 Tom Tromey <tromey@redhat.com>
8795
8796 * target-delegates.c: Rebuild.
8797 * target.c (target_core_of_thread): Unconditionally delegate.
8798 * target.h (struct target_ops) <to_core_of_thread>: Use
8799 TARGET_DEFAULT_RETURN.
8800
f6fb2925
TT
88012014-02-19 Tom Tromey <tromey@redhat.com>
8802
8803 * target-delegates.c: Rebuild.
8804 * target.c (target_flash_done): Unconditionally delegate.
8805 * target.h (struct target_ops) <to_flash_done>: Use
8806 TARGET_DEFAULT_NORETURN.
8807
e8a6c6ac
TT
88082014-02-19 Tom Tromey <tromey@redhat.com>
8809
8810 * target-delegates.c: Rebuild.
8811 * target.c (target_flash_erase): Unconditionally delegate.
8812 * target.h (struct target_ops) <to_flash_erase>: Use
8813 TARGET_DEFAULT_NORETURN.
8814
7e35c012
TT
88152014-02-19 Tom Tromey <tromey@redhat.com>
8816
8817 * target-delegates.c: Rebuild.
8818 * target.c (target_get_section_table): Unconditionally delegate.
8819 * target.h (struct target_ops) <to_get_section_table>: Use
8820 TARGET_DEFAULT_RETURN.
8821
770234d3
TT
88222014-02-19 Tom Tromey <tromey@redhat.com>
8823
8824 * target-delegates.c: Rebuild.
8825 * target.c (target_pid_to_str): Unconditionally delegate.
8826 (init_dummy_target): Don't initialize to_pid_to_str.
8827 (default_pid_to_str): Rename from dummy_pid_to_str.
8828 * target.h (struct target_ops) <to_pid_to_str>: Use
8829 TARGET_DEFAULT_FUNC.
8830
09b0dc2b
TT
88312014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * target-delegates.c: Rebuild.
8834 * target.c (target_find_new_threads): Unconditionally delegate.
8835 * target.h (struct target_ops) <to_find_new_threads>: Use
8836 TARGET_DEFAULT_RETURN.
8837
7d4f8efa
TT
88382014-02-19 Tom Tromey <tromey@redhat.com>
8839
8840 * target-delegates.c: Rebuild.
8841 * target.c (target_program_signals): Unconditionally delegate.
8842 * target.h (struct target_ops) <to_program_signals>: Use
8843 TARGET_DEFAULT_IGNORE.
8844
035cad7f
TT
88452014-02-19 Tom Tromey <tromey@redhat.com>
8846
8847 * target-delegates.c: Rebuild.
8848 * target.c (target_pass_signals): Unconditionally delegate.
8849 * target.h (struct target_ops) <to_pass_signals>: Use
8850 TARGET_DEFAULT_IGNORE.
8851
8d657035
TT
88522014-02-19 Tom Tromey <tromey@redhat.com>
8853
8854 * target-delegates.c: Rebuild.
8855 * target.c (default_mourn_inferior): New function.
8856 (target_mourn_inferior): Unconditionally delegate.
8857 * target.h (struct target_ops) <to_mourn_inferior>: Use
8858 TARGET_DEFAULT_FUNC.
8859
098dba18
TT
88602014-02-19 Tom Tromey <tromey@redhat.com>
8861
8862 * target-delegates.c: Rebuild.
8863 * target.c (default_follow_fork): New function.
8864 (target_follow_fork): Unconditionally delegate.
8865 * target.h (struct target_ops) <to_follow_fork>: Use
8866 TARGET_DEFAULT_FUNC.
8867
423a4807
TT
88682014-02-19 Tom Tromey <tromey@redhat.com>
8869
8870 * target-delegates.c: Rebuild.
8871 * target.c (target_kill): Unconditionally delegate.
8872 * target.h (struct target_ops) <to_kill>: Use
8873 TARGET_DEFAULT_NORETURN.
8874
6c7e5e5c
TT
88752014-02-19 Tom Tromey <tromey@redhat.com>
8876
8877 * target-delegates.c: Rebuild.
8878 * target.c (target_masked_watch_num_registers): Unconditionally
8879 delegate.
8880 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8881 Use TARGET_DEFAULT_RETURN.
8882
8b1c364c
TT
88832014-02-19 Tom Tromey <tromey@redhat.com>
8884
8885 * target-delegates.c: Rebuild.
8886 * target.c (target_remove_mask_watchpoint): Unconditionally
8887 delegate.
8888 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8889 TARGET_DEFAULT_RETURN.
8890
cd4ae029
TT
88912014-02-19 Tom Tromey <tromey@redhat.com>
8892
8893 * target-delegates.c: Rebuild.
8894 * target.c (target_insert_mask_watchpoint): Unconditionally
8895 delegate.
8896 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8897 TARGET_DEFAULT_RETURN.
8898
a134316b
TT
88992014-02-19 Tom Tromey <tromey@redhat.com>
8900
8901 * target-delegates.c: Rebuild.
8902 * target.c (target_ranged_break_num_registers): Unconditionally
8903 delegate.
8904 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8905 Use TARGET_DEFAULT_RETURN.
8906
ad5989bd
TT
89072014-02-19 Tom Tromey <tromey@redhat.com>
8908
8909 * target-delegates.c: Rebuild.
8910 * target.c (target_fetch_registers): Unconditionally delegate.
8911 * target.h (struct target_ops) <to_fetch_registers>: Use
8912 TARGET_DEFAULT_NORETURN.
8913
46ee7e8d
TT
89142014-02-19 Tom Tromey <tromey@redhat.com>
8915
8916 * target-delegates.c: Rebuild.
8917 * target.c (update_current_target): Don't inherit or default
8918 to_stop.
8919 * target.h (struct target_ops) <to_stop>: Use
8920 TARGET_DEFAULT_IGNORE.
8921
843f59ed
TT
89222014-02-19 Tom Tromey <tromey@redhat.com>
8923
8924 * target-delegates.c: Rebuild.
8925 * target.c (update_current_target): Don't inherit or default
8926 to_can_run_breakpoint_commands.
8927 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8928 Use TARGET_DEFAULT_RETURN.
8929
ccfde2a0
TT
89302014-02-19 Tom Tromey <tromey@redhat.com>
8931
8932 * target-delegates.c: Rebuild.
8933 * target.c (update_current_target): Don't inherit or default
8934 to_supports_evaluation_of_breakpoint_conditions.
8935 * target.h (struct target_ops)
8936 <to_supports_evaluation_of_breakpoint_conditions>: Use
8937 TARGET_DEFAULT_RETURN.
8938
0de91722
TT
89392014-02-19 Tom Tromey <tromey@redhat.com>
8940
8941 * target-delegates.c: Rebuild.
8942 * target.c (update_current_target): Don't inherit or default
8943 to_augmented_libraries_svr4_read.
8944 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8945 Use TARGET_DEFAULT_RETURN.
8946
9a7d8b48
TT
89472014-02-19 Tom Tromey <tromey@redhat.com>
8948
8949 * target-delegates.c: Rebuild.
8950 * target.c (update_current_target): Don't inherit or default
8951 to_can_use_agent.
8952 * target.h (struct target_ops) <to_can_use_agent>: Use
8953 TARGET_DEFAULT_RETURN.
8954
d9db5b21
TT
89552014-02-19 Tom Tromey <tromey@redhat.com>
8956
8957 * target-delegates.c: Rebuild.
8958 * target.c (update_current_target): Don't inherit or default
8959 to_use_agent.
8960 * target.h (struct target_ops) <to_use_agent>: Use
8961 TARGET_DEFAULT_NORETURN.
8962
92155eeb
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_traceframe_info.
8968 (return_null): Remove.
8969 * target.h (struct target_ops) <to_traceframe_info>: Use
8970 TARGET_DEFAULT_RETURN.
8971
d6522a22
TT
89722014-02-19 Tom Tromey <tromey@redhat.com>
8973
8974 * target-delegates.c: Rebuild.
8975 * target.c (update_current_target): Don't inherit or default
8976 to_static_tracepoint_markers_by_strid.
8977 * target.h (struct target_ops)
8978 <to_static_tracepoint_markers_by_strid>: Use
8979 TARGET_DEFAULT_NORETURN.
8980
4c3e4425
TT
89812014-02-19 Tom Tromey <tromey@redhat.com>
8982
8983 * target-delegates.c: Rebuild.
8984 * target.c (update_current_target): Don't inherit or default
8985 to_static_tracepoint_marker_at.
8986 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8987 Use TARGET_DEFAULT_RETURN.
8988
dcd6917f
TT
89892014-02-19 Tom Tromey <tromey@redhat.com>
8990
8991 * target-delegates.c: Rebuild.
8992 * target.c (update_current_target): Don't inherit or default
8993 to_set_permissions.
8994 * target.h (struct target_ops) <to_set_permissions>: Use
8995 TARGET_DEFAULT_IGNORE.
8996
22bcceee
TT
89972014-02-19 Tom Tromey <tromey@redhat.com>
8998
8999 * target-delegates.c: Rebuild.
9000 * target.c (update_current_target): Don't inherit or default
9001 to_get_tib_address.
9002 * target.h (struct target_ops) <to_get_tib_address>: Use
9003 TARGET_DEFAULT_NORETURN.
9004
8586ccaa
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_set_trace_notes.
9010 * target.h (struct target_ops) <to_set_trace_notes>: Use
9011 TARGET_DEFAULT_RETURN.
9012
91df8d1d
TT
90132014-02-19 Tom Tromey <tromey@redhat.com>
9014
9015 * target-delegates.c: Rebuild.
9016 * target.c (update_current_target): Don't initialize
9017 to_set_trace_buffer_size.
9018 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9019 TARGET_DEFAULT_IGNORE.
9020
8d526939
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_set_circular_trace_buffer.
9026 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9027 TARGET_DEFAULT_IGNORE.
9028
0bcfeddf
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_disconnected_tracing.
9034 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9035 TARGET_DEFAULT_IGNORE.
9036
9249843f
TT
90372014-02-19 Tom Tromey <tromey@redhat.com>
9038
9039 * target-delegates.c: Rebuild.
9040 * target.c (update_current_target): Don't inherit or default
9041 to_get_min_fast_tracepoint_insn_len.
9042 (return_minus_one): Remove.
9043 * target.h (struct target_ops)
9044 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9045
ace92e7d
TT
90462014-02-19 Tom Tromey <tromey@redhat.com>
9047
9048 * target-delegates.c: Rebuild.
9049 * target.c (update_current_target): Don't inherit or default
9050 to_get_raw_trace_data.
9051 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9052 TARGET_DEFAULT_NORETURN.
9053
08120467
TT
90542014-02-19 Tom Tromey <tromey@redhat.com>
9055
9056 * target-delegates.c: Rebuild.
9057 * target.c (update_current_target): Don't inherit or default
9058 to_upload_trace_state_variables.
9059 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9060 Use TARGET_DEFAULT_RETURN.
9061
1e949b00
TT
90622014-02-19 Tom Tromey <tromey@redhat.com>
9063
9064 * target-delegates.c: Rebuild.
9065 * target.c (update_current_target): Don't inherit or default
9066 to_upload_tracepoints.
9067 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9068 TARGET_DEFAULT_RETURN.
9069
a2e6c147
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_save_trace_data.
9075 * target.h (struct target_ops) <to_save_trace_data>: Use
9076 TARGET_DEFAULT_NORETURN.
9077
959bcd0b
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_get_trace_state_variable_value.
9083 * target.h (struct target_ops)
9084 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9085
afc94e66
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_trace_find.
9091 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9092
e51c07ea
TT
90932014-02-19 Tom Tromey <tromey@redhat.com>
9094
9095 * target-delegates.c: Rebuild.
9096 * target.c (update_current_target): Don't inherit or default
9097 to_trace_stop.
9098 * target.h (struct target_ops) <to_trace_stop>: Use
9099 TARGET_DEFAULT_NORETURN.
9100
6fea14cd
TT
91012014-02-19 Tom Tromey <tromey@redhat.com>
9102
9103 * target-delegates.c: Rebuild.
9104 * target.c (update_current_target): Don't inherit or default
9105 to_get_tracepoint_status.
9106 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9107 TARGET_DEFAULT_NORETURN.
9108
4072d4ff
TT
91092014-02-19 Tom Tromey <tromey@redhat.com>
9110
9111 * target-delegates.c: Rebuild.
9112 * target.c (update_current_target): Don't inherit or default
9113 to_get_trace_status.
9114 * target.h (struct target_ops) <to_get_trace_status>: Use
9115 TARGET_DEFAULT_RETURN.
9116
25da2e80
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_start.
9122 * target.h (struct target_ops) <to_trace_start>: Use
9123 TARGET_DEFAULT_NORETURN.
9124
86dd181d
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_trace_set_readonly_regions.
9130 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9131 Use TARGET_DEFAULT_NORETURN.
9132
05c41993
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_disable_tracepoint.
9138 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9139 TARGET_DEFAULT_NORETURN.
9140
151f70f1
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_enable_tracepoint.
9146 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9147 TARGET_DEFAULT_NORETURN.
9148
94eb98b9
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_download_trace_state_variable.
9154 * target.h (struct target_ops) <to_download_trace_state_variable>:
9155 Use TARGET_DEFAULT_NORETURN.
9156
719acc4a
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_can_download_tracepoint.
9162 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9163 TARGET_DEFAULT_RETURN.
9164
9a980a22
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_download_tracepoint.
9170 * target.h (struct target_ops) <to_download_tracepoint>: Use
9171 TARGET_DEFAULT_NORETURN.
9172
5536135b
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_trace_init.
9178 * target.h (struct target_ops) <to_trace_init>: Use
9179 TARGET_DEFAULT_RETURN.
9180
9409d39e
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_supports_string_tracing.
9186 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9187 TARGET_DEFAULT_RETURN.
9188
aab1b22d
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_supports_enable_disable_tracepoint.
9194 * target.h (struct target_ops)
9195 <to_supports_enable_disable_tracepoint>: Use
9196 TARGET_DEFAULT_RETURN.
9197
a7304748
TT
91982014-02-19 Tom Tromey <tromey@redhat.com>
9199
9200 * target-delegates.c: Rebuild.
9201 * target.c (update_current_target): Don't inherit or default
9202 to_supports_multi_process.
9203 * target.h (struct target_ops) <to_supports_multi_process>: Use
9204 TARGET_DEFAULT_RETURN.
9205
4229b31d
TT
92062014-02-19 Tom Tromey <tromey@redhat.com>
9207
9208 * target-delegates.c: Rebuild.
9209 * target.c (update_current_target): Don't inherit or default
9210 to_get_ada_task_ptid.
9211 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9212 TARGET_DEFAULT_FUNC.
9213
43eba180
TT
92142014-02-19 Tom Tromey <tromey@redhat.com>
9215
9216 * target-delegates.c: Rebuild.
9217 * target.c (update_current_target): Don't inherit or default
9218 to_thread_architecture.
9219 * target.h (struct target_ops) <to_thread_architecture>: Use
9220 TARGET_DEFAULT_FUNC.
9221
fe31bf5b
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_execution_direction.
9227 * target.h (struct target_ops) <to_execution_direction>: Use
9228 TARGET_DEFAULT_FUNC.
9229
53e1cfc7
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_can_execute_reverse.
9235 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9236 TARGET_DEFAULT_RETURN.
9237 (target_can_execute_reverse): Unconditionally delegate.
9238
9bb9d61d
TT
92392014-02-19 Tom Tromey <tromey@redhat.com>
9240
9241 * target-delegates.c: Rebuild.
9242 * target.c (update_current_target): Don't inherit or default
9243 to_goto_bookmark.
9244 (dummy_goto_bookmark): Remove.
9245 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9246 * target.h (struct target_ops) <to_goto_bookmark>: Use
9247 TARGET_DEFAULT_NORETURN.
9248
3dbafbbb
TT
92492014-02-19 Tom Tromey <tromey@redhat.com>
9250
9251 * target-delegates.c: Rebuild.
9252 * target.c (update_current_target): Don't inherit or default
9253 to_get_bookmark.
9254 (dummy_get_bookmark): Remove.
9255 (init_dummy_target): Don't inherit or default to_get_bookmark.
9256 * target.h (struct target_ops) <to_get_bookmark>: Use
9257 TARGET_DEFAULT_NORETURN
9258
16f796b1
TT
92592014-02-19 Tom Tromey <tromey@redhat.com>
9260
9261 * target-delegates.c: Rebuild.
9262 * target.c (update_current_target): Don't inherit or default
9263 to_make_corefile_notes.
9264 (init_dummy_target): Don't initialize to_make_corefile_notes.
9265 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9266 TARGET_DEFAULT_FUNC.
9267
0b5a2719
TT
92682014-02-19 Tom Tromey <tromey@redhat.com>
9269
9270 * target-delegates.c: Rebuild.
9271 * target.c (update_current_target): Don't inherit or default
9272 to_find_memory_regions.
9273 (init_dummy_target): Don't initialize to_find_memory_regions.
9274 * target.h (struct target_ops) <to_find_memory_regions>: Use
9275 TARGET_DEFAULT_FUNC.
9276
d9cb0195
TT
92772014-02-19 Tom Tromey <tromey@redhat.com>
9278
9279 * target-delegates.c: Rebuild.
9280 * target.c (update_current_target): Don't inherit or default
9281 to_log_command.
9282 * target.h (struct target_ops) <to_log_command>: Use
9283 TARGET_DEFAULT_IGNORE.
9284 (target_log_command): Unconditionally delegate.
9285
830ca330
TT
92862014-02-19 Tom Tromey <tromey@redhat.com>
9287
9288 * target-delegates.c: Rebuild.
9289 * target.c (update_current_target): Don't inherit or default
9290 to_pid_to_exec_file.
9291 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9292 TARGET_DEFAULT_RETURN.
9293
825828fc
TT
92942014-02-19 Tom Tromey <tromey@redhat.com>
9295
9296 * target-delegates.c: Rebuild.
9297 * target.c (update_current_target): Don't inherit or default
9298 to_thread_name.
9299 (target_thread_name): Unconditionally delegate.
9300 * target.h (struct target_ops) <to_thread_name>: Use
9301 TARGET_DEFAULT_RETURN.
9302
4a7e6dda
TT
93032014-02-19 Tom Tromey <tromey@redhat.com>
9304
9305 * target-delegates.c: Rebuild.
9306 * target.c (update_current_target): Don't inherit or default
9307 to_extra_thread_info.
9308 * target.h (struct target_ops) <to_extra_thread_info>: Use
9309 TARGET_DEFAULT_RETURN.
9310
0db88c1d
TT
93112014-02-19 Tom Tromey <tromey@redhat.com>
9312
9313 * target-delegates.c: Rebuild.
9314 * target.c (update_current_target): Don't inherit or default
9315 to_has_exited.
9316 * target.h (struct target_ops) <to_has_exited>: Use
9317 TARGET_DEFAULT_RETURN..
9318
6a9fa051
TT
93192014-02-19 Tom Tromey <tromey@redhat.com>
9320
9321 * target-delegates.c: Rebuild.
9322 * target.c (update_current_target): Don't inherit or default
9323 to_set_syscall_catchpoint.
9324 (return_one): Remove.
9325 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9326 TARGET_DEFAULT_RETURN.
9327
62f64d7a
TT
93282014-02-19 Tom Tromey <tromey@redhat.com>
9329
9330 * target-delegates.c: Rebuild.
9331 * target.c (update_current_target): Don't inherit or default
9332 to_insert_exec_catchpoint.
9333 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9334 TARGET_DEFAULT_RETURN.
9335
cda0f38c
TT
93362014-01-08 Tom Tromey <tromey@redhat.com>
9337
9338 * target-delegates.c: Rebuild.
9339 * target.c (update_current_target): Don't inherit or default
9340 to_insert_exec_catchpoint.
9341 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9342 TARGET_DEFAULT_RETURN.
9343
95c3375e
TT
93442014-02-19 Tom Tromey <tromey@redhat.com>
9345
9346 * target-delegates.c: Rebuild.
9347 * target.c (update_current_target): Don't inherit or default
9348 to_remove_vfork_catchpoint.
9349 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9350 TARGET_DEFAULT_RETURN.
9351
7e18a8dc
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_vfork_catchpoint.
9357 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9358 TARGET_DEFAULT_RETURN.
9359
e1a21fb7
TT
93602014-02-19 Tom Tromey <tromey@redhat.com>
9361
9362 * target-delegates.c: Rebuild.
9363 * target.c (update_current_target): Don't inherit or default
9364 to_remove_fork_catchpoint.
9365 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9366 TARGET_DEFAULT_RETURN.
9367
5958ebeb
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_insert_fork_catchpoint.
9373 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9374 TARGET_DEFAULT_RETURN.
9375
340ba4bf
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_post_startup_inferior.
9381 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9382 TARGET_DEFAULT_IGNORE.
9383
7634da87
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_load.
9389 * target.h (struct target_ops) <to_load>: Use
9390 TARGET_DEFAULT_NORETURN.
9391
e19e919f
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_terminal_info.
9397 * target.h (struct target_ops) <to_terminal_info>: Use
9398 TARGET_DEFAULT_FUNC.
9399
c6ea8f79
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_terminal_save_ours.
9405 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9406 TARGET_DEFAULT_IGNORE.
9407
e4a733f1
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_terminal_ours.
9413 * target.h (struct target_ops) <to_terminal_ours>: Use
9414 TARGET_DEFAULT_IGNORE.
9415
74fcbef9
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_ours_for_output.
9421 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9422 TARGET_DEFAULT_IGNORE.
9423
ddeaacc9
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_inferior.
9429 * target.h (struct target_ops) <to_terminal_inferior>: Use
9430 TARGET_DEFAULT_IGNORE.
9431
0343661d
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_init.
9437 * target.h (struct target_ops) <to_terminal_init>: Use
9438 TARGET_DEFAULT_IGNORE.
9439
77cdffe9
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_can_accel_watchpoint_condition.
9445 * target.h (struct target_ops)
9446 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9447
d03655e4
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_region_ok_for_hw_watchpoint.
9453 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9454 Use TARGET_DEFAULT_FUNC.
9455
65f160a9
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_watchpoint_addr_within_range.
9461 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9462 Use TARGET_DEFAULT_FUNC.
9463
61dd109f
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_remove_watchpoint.
9469 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9470 TARGET_DEFAULT_NORETURN.
9471
016facd4
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_insert_watchpoint.
9477 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9478 TARGET_DEFAULT_RETURN.
9479
418dabac
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_remove_hw_breakpoint.
9485 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9486 TARGET_DEFAULT_RETURN.
9487
61b371f9
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_insert_hw_breakpoint.
9493 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9494 TARGET_DEFAULT_RETURN.
9495
52b51d06
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_can_use_hw_breakpoint.
9501 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9502 TARGET_DEFAULT_RETURN.
9503
f86e59b2
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_files_info.
9509 * target.h (struct target_ops) <to_files_info>: Use
9510 TARGET_DEFAULT_IGNORE.
9511
6c628163
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_store.
9517 * target.h (struct target_ops) <to_store>: Use
9518 TARGET_DEFAULT_NORETURN.
9519
bebd3233
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_post_attach.
9525 * target.h (struct target_ops) <to_post_attach>: Use
9526 TARGET_DEFAULT_IGNORE.
9527
a53f3625
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_rcmd.
9533 (default_rcmd): New function.
9534 (do_monitor_command): Unconditionally delegate.
9535 * target.h (struct target_ops) <to_rmcd>: Use
9536 TARGET_DEFAULT_FUNC.
9537
e9a29200
TT
95382014-02-19 Tom Tromey <tromey@redhat.com>
9539
9540 * target-delegates.c: Rebuild.
9541 * target.c (init_dummy_target): Don't initialize to_attach.
9542 (target_attach): Unconditionally delegate.
9543 * target.h (struct target_ops) <to_attach>: Use
9544 TARGET_DEFAULT_FUNC.
9545
09da0d0a
TT
95462014-02-19 Tom Tromey <tromey@redhat.com>
9547
9548 * target-delegates.c: Rebuild.
9549 * target.c (target_detach): Unconditionally delegate.
9550 (init_dummy_target): Don't initialize to_detach.
9551 * target.h (struct target_ops) <to_detach>: Use
9552 TARGET_DEFAULT_IGNORE.
9553
5436ff03
TT
95542014-02-19 Tom Tromey <tromey@redhat.com>
9555
9556 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9557 Add argument.
9558 (target_augmented_libraries_svr4_read): Add argument.
9559 * target.c (update_current_target): Update.
9560 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9561 argument.
9562
f0d960ea
TT
95632014-02-19 Tom Tromey <tromey@redhat.com>
9564
9565 * target.h (struct target_ops) <to_call_history_range>: Add
9566 argument.
9567 * target.c (target_call_history_range): Add argument.
9568 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9569 argument.
9570 (record_btrace_call_history_from): Update.
9571
ec0aea04
TT
95722014-02-19 Tom Tromey <tromey@redhat.com>
9573
9574 * target.h (struct target_ops) <to_call_history_from>: Add
9575 argument.
9576 * target.c (target_call_history_from): Add argument.
9577 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9578 argument.
9579
5df2fcba
TT
95802014-02-19 Tom Tromey <tromey@redhat.com>
9581
9582 * target.h (struct target_ops) <to_call_history>: Add argument.
9583 * target.c (target_call_history): Add argument.
9584 * record-btrace.c (record_btrace_call_history): Add 'self'
9585 argument.
9586
4e99c6b7
TT
95872014-02-19 Tom Tromey <tromey@redhat.com>
9588
9589 * target.h (struct target_ops) <to_insn_history_range>: Add
9590 argument.
9591 * target.c (target_insn_history_range): Add argument.
9592 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9593 argument.
9594 (record_btrace_insn_history_from): Update.
9595
9abc3ff3
TT
95962014-02-19 Tom Tromey <tromey@redhat.com>
9597
9598 * target.h (struct target_ops) <to_insn_history_from>: Add
9599 argument.
9600 * target.c (target_insn_history_from): Add argument.
9601 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9602 argument.
9603
7a6c5609
TT
96042014-02-19 Tom Tromey <tromey@redhat.com>
9605
9606 * target.h (struct target_ops) <to_insn_history>: Add argument.
9607 * target.c (target_insn_history): Add argument.
9608 * record-btrace.c (record_btrace_insn_history): Add 'self'
9609 argument.
9610
606183ac
TT
96112014-02-19 Tom Tromey <tromey@redhat.com>
9612
9613 * target.h (struct target_ops) <to_goto_record>: Add argument.
9614 * target.c (target_goto_record): Add argument.
9615 * record-full.c (record_full_goto): Add 'self' argument.
9616 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9617
307a1b91
TT
96182014-02-19 Tom Tromey <tromey@redhat.com>
9619
9620 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9621 * target.c (target_goto_record_end): Add argument.
9622 * record-full.c (record_full_goto_end): Add 'self' argument.
9623 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9624
08475817
TT
96252014-02-19 Tom Tromey <tromey@redhat.com>
9626
9627 * target.h (struct target_ops) <to_goto_record_begin>: Add
9628 argument.
9629 * target.c (target_goto_record_begin): Add argument.
9630 * record-full.c (record_full_goto_begin): Add 'self' argument.
9631 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9632 argument.
9633
1c63c994
TT
96342014-02-19 Tom Tromey <tromey@redhat.com>
9635
9636 * target.h (struct target_ops) <to_record_is_replaying>: Add
9637 argument.
9638 * target.c (target_record_is_replaying): Add argument.
9639 * record-full.c (record_full_is_replaying): Add 'self' argument.
9640 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9641 argument.
9642 (record_btrace_xfer_partial, record_btrace_store_registers)
9643 (record_btrace_prepare_to_store, record_btrace_resume)
9644 (record_btrace_wait, record_btrace_decr_pc_after_break)
9645 (record_btrace_find_new_threads, record_btrace_thread_alive):
9646 Update.
9647
d1b55219
TT
96482014-02-19 Tom Tromey <tromey@redhat.com>
9649
9650 * target.h (struct target_ops) <to_delete_record>: Add argument.
9651 * target.c (target_delete_record): Add argument.
9652 * record-full.c (record_full_delete): Add 'self' argument.
9653
1390f529
TT
96542014-02-19 Tom Tromey <tromey@redhat.com>
9655
9656 * target.h (struct target_ops) <to_save_record>: Add argument.
9657 * target.c (target_save_record): Add argument.
9658 * record-full.c (record_full_save): Add 'self' argument.
9659 (record_full_save): Add 'self' argument.
9660
630d6a4a
TT
96612014-02-19 Tom Tromey <tromey@redhat.com>
9662
9663 * target.h (struct target_ops) <to_info_record>: Add argument.
9664 * target.c (target_info_record): Add argument.
9665 * record.c (info_record_command): Add argument.
9666 * record-full.c (record_full_info): Add 'self' argument.
9667 * record-btrace.c (record_btrace_info): Add 'self' argument.
9668
c6cd7c02
TT
96692014-02-19 Tom Tromey <tromey@redhat.com>
9670
9671 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9672 * target.c (target_stop_recording): Add argument.
9673 * record.c (record_stop): Add argument.
9674 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9675 argument.
9676
39c49f83
TT
96772014-02-19 Tom Tromey <tromey@redhat.com>
9678
9679 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9680 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9681 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9682 argument.
9683 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9684 (_initialize_amd64_linux_nat): Use it.
9685 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9686 (_initialize_i386_linux_nat): Use it.
9687
1777056d
TT
96882014-02-19 Tom Tromey <tromey@redhat.com>
9689
9690 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9691 * target.c (target_teardown_btrace): Add argument.
9692 * remote.c (remote_teardown_btrace): Add 'self' argument.
9693 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9694 argument.
9695 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9696 argument.
9697
25e95349
TT
96982014-02-19 Tom Tromey <tromey@redhat.com>
9699
9700 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9701 * target.c (target_disable_btrace): Add argument.
9702 * remote.c (remote_disable_btrace): Add 'self' argument.
9703 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9704 argument.
9705 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9706 argument.
9707
e3c49f88
TT
97082014-02-19 Tom Tromey <tromey@redhat.com>
9709
9710 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9711 * target.c (target_enable_btrace): Add argument.
9712 * remote.c (remote_enable_btrace): Add 'self' argument.
9713 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9714 argument.
9715 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9716 argument.
9717
fe38f897
TT
97182014-02-19 Tom Tromey <tromey@redhat.com>
9719
9720 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9721 (target_can_use_agent): Add argument.
9722 * target.c (update_current_target): Update.
9723 * remote.c (remote_can_use_agent): Add 'self' argument.
9724 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9725
2c152180
TT
97262014-02-19 Tom Tromey <tromey@redhat.com>
9727
9728 * target.h (struct target_ops) <to_use_agent>: Add argument.
9729 (target_use_agent): Add argument.
9730 * target.c (update_current_target): Update.
9731 * remote.c (remote_use_agent): Add 'self' argument.
9732 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9733
a893e81f
TT
97342014-02-19 Tom Tromey <tromey@redhat.com>
9735
9736 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9737 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9738 (target_traceframe_info): Add argument.
9739 * target.c (update_current_target): Update.
9740 * remote.c (remote_traceframe_info): Add 'self' argument.
9741 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9742
c686c57f
TT
97432014-02-19 Tom Tromey <tromey@redhat.com>
9744
9745 * target.h (target_static_tracepoint_markers_by_strid): Add
9746 argument.
9747 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9748 'self' argument.
9749 * target.c (update_current_target): Update.
9750 * remote.c (struct target_ops)
9751 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9752 * linux-nat.c (struct target_ops)
9753 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9754
61fc905d
TT
97552014-02-19 Tom Tromey <tromey@redhat.com>
9756
9757 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9758 Add argument.
9759 (target_static_tracepoint_marker_at): Add argument.
9760 * target.c (update_current_target): Update.
9761 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9762 argument.
9763
c378d69d
TT
97642014-02-19 Tom Tromey <tromey@redhat.com>
9765
9766 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9767 (target_set_permissions): Add argument.
9768 * target.c (update_current_target): Update.
9769 * remote.c (remote_set_permissions): Add 'self' argument.
9770 (remote_start_remote): Update.
9771
bd7ae0f5
TT
97722014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9775 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9776 (target_get_tib_address): Add argument.
9777 * target.c (update_current_target): Update.
9778 * remote.c (remote_get_tib_address): Add 'self' argument.
9779
d9e68a2c
TT
97802014-02-19 Tom Tromey <tromey@redhat.com>
9781
9782 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9783 (target_set_trace_notes): Add argument.
9784 * target.c (update_current_target): Update.
9785 * remote.c (remote_set_trace_notes): Add 'self' argument.
9786
4da384be
TT
97872014-02-19 Tom Tromey <tromey@redhat.com>
9788
9789 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9790 argument.
9791 (target_set_trace_buffer_size): Add argument.
9792 * target.c (update_current_target): Update.
9793 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9794
736d5b1f
TT
97952014-02-19 Tom Tromey <tromey@redhat.com>
9796
9797 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9798 argument.
9799 (target_set_circular_trace_buffer): Add argument.
9800 * target.c (update_current_target): Update.
9801 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9802 argument.
9803
37b25738
TT
98042014-02-19 Tom Tromey <tromey@redhat.com>
9805
9806 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9807 argument.
9808 (target_set_disconnected_tracing): Add argument.
9809 * target.c (update_current_target): Update.
9810 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9811
0e67620a
TT
98122014-02-19 Tom Tromey <tromey@redhat.com>
9813
9814 * target.h (struct target_ops)
9815 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9816 (target_get_min_fast_tracepoint_insn_len): Add argument.
9817 * target.c (update_current_target): Update.
9818 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9819 argument.
9820
88ee6f45
TT
98212014-02-19 Tom Tromey <tromey@redhat.com>
9822
9823 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9824 argument.
9825 (target_get_raw_trace_data): Add argument.
9826 * target.c (update_current_target): Update.
9827 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9828
181e3713
TT
98292014-02-19 Tom Tromey <tromey@redhat.com>
9830
9831 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9832 Add argument.
9833 (target_upload_trace_state_variables): Add argument.
9834 * target.c (update_current_target): Update.
9835 * remote.c (remote_upload_trace_state_variables): Add 'self'
9836 argument.
9837 (remote_start_remote): Update.
9838
ab6617cc
TT
98392014-02-19 Tom Tromey <tromey@redhat.com>
9840
9841 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9842 argument.
9843 (target_upload_tracepoints): Add argument.
9844 * target.c (update_current_target): Update.
9845 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9846 (remote_start_remote): Update.
9847
dc3decaf
TT
98482014-02-19 Tom Tromey <tromey@redhat.com>
9849
9850 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9851 (target_save_trace_data): Add argument.
9852 * target.c (update_current_target): Update.
9853 * remote.c (remote_save_trace_data): Add 'self' argument.
9854
4011015b
TT
98552014-02-19 Tom Tromey <tromey@redhat.com>
9856
9857 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9858 argument.
9859 * target.h (struct target_ops)
9860 <to_get_trace_state_variable_value>: Add argument.
9861 (target_get_trace_state_variable_value): Add argument.
9862 * target.c (update_current_target): Update.
9863 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9864 argument.
9865 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9866
bd4c6793
TT
98672014-02-19 Tom Tromey <tromey@redhat.com>
9868
9869 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9870 * target.h (struct target_ops) <to_trace_find>: Add argument.
9871 (target_trace_find): Add argument.
9872 * target.c (update_current_target): Update.
9873 * remote.c (remote_trace_find): Add 'self' argument.
9874 * ctf.c (ctf_trace_find): Add 'self' argument.
9875
74499f1b
TT
98762014-02-19 Tom Tromey <tromey@redhat.com>
9877
9878 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9879 (target_trace_stop): Add argument.
9880 * target.c (update_current_target): Update.
9881 * remote.c (remote_trace_stop): Add 'self' argument.
9882
db90e85c
TT
98832014-02-19 Tom Tromey <tromey@redhat.com>
9884
9885 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9886 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9887 argument.
9888 (target_get_tracepoint_status): Add argument.
9889 * target.c (update_current_target): Update.
9890 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9891
8bd200f1
TT
98922014-02-19 Tom Tromey <tromey@redhat.com>
9893
9894 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9895 * target.h (struct target_ops) <to_get_trace_status>: Add
9896 argument.
9897 (target_get_trace_status): Add argument.
9898 * target.c (update_current_target): Update.
9899 * remote.c (remote_get_trace_status): Add 'self' argument.
9900 (remote_start_remote, remote_can_download_tracepoint): Update.
9901 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9902
e2d1aae3
TT
99032014-02-19 Tom Tromey <tromey@redhat.com>
9904
9905 * target.h (struct target_ops) <to_trace_start>: Add argument.
9906 (target_trace_start): Add argument.
9907 * target.c (update_current_target): Update.
9908 * remote.c (remote_trace_start): Add 'self' argument.
9909
583f9a86
TT
99102014-02-19 Tom Tromey <tromey@redhat.com>
9911
9912 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9913 Add argument.
9914 (target_trace_set_readonly_regions): Add argument.
9915 * target.c (update_current_target): Update.
9916 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9917 argument.
9918
780b049c
TT
99192014-02-19 Tom Tromey <tromey@redhat.com>
9920
9921 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9922 argument.
9923 (target_disable_tracepoint): Add argument.
9924 * target.c (update_current_target): Update.
9925 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9926
46670d57
TT
99272014-02-19 Tom Tromey <tromey@redhat.com>
9928
9929 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9930 argument.
9931 (target_enable_tracepoint): Add argument.
9932 * target.c (update_current_target): Update.
9933 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9934
559d2b81
TT
99352014-02-19 Tom Tromey <tromey@redhat.com>
9936
9937 * target.h (struct target_ops) <to_download_trace_state_variable>:
9938 Add argument.
9939 (target_download_trace_state_variable): Add argument.
9940 * target.c (update_current_target): Update.
9941 * remote.c (remote_download_trace_state_variable): Add 'self'
9942 argument.
9943
a52a8357
TT
99442014-02-19 Tom Tromey <tromey@redhat.com>
9945
9946 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9947 argument.
9948 (target_can_download_tracepoint): Add argument.
9949 * target.c (update_current_target): Update.
9950 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9951
548f7808
TT
99522014-02-19 Tom Tromey <tromey@redhat.com>
9953
9954 * target.h (struct target_ops) <to_download_tracepoint>: Add
9955 argument.
9956 (target_download_tracepoint): Add argument.
9957 * target.c (update_current_target): Update.
9958 * remote.c (remote_download_tracepoint): Add 'self' argument.
9959
ecae04e1
TT
99602014-02-19 Tom Tromey <tromey@redhat.com>
9961
9962 * target.h (struct target_ops) <to_trace_init>: Add argument.
9963 (target_trace_init): Add argument.
9964 * target.c (update_current_target): Update.
9965 * remote.c (remote_trace_init): Add 'self' argument.
9966
fab5aa7c
TT
99672014-02-19 Tom Tromey <tromey@redhat.com>
9968
9969 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9970 * target.c (target_fileio_readlink): Add argument.
9971 * remote.c (remote_hostio_readlink): Add 'self' argument.
9972 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9973
dbbca37d
TT
99742014-02-19 Tom Tromey <tromey@redhat.com>
9975
9976 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9977 * target.c (target_fileio_unlink): Add argument.
9978 * remote.c (remote_hostio_unlink): Add 'self' argument.
9979 (remote_file_delete): Update.
9980 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9981
df39ea25
TT
99822014-02-19 Tom Tromey <tromey@redhat.com>
9983
9984 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9985 * target.c (target_fileio_close): Add argument.
9986 * remote.c (remote_hostio_close): Add 'self' argument.
9987 (remote_hostio_close_cleanup): Update.
9988 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9989 Update.
9990 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9991
a3be983c
TT
99922014-02-19 Tom Tromey <tromey@redhat.com>
9993
9994 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9995 * target.c (target_fileio_pread): Add argument.
9996 * remote.c (remote_hostio_pread): Add 'self' argument.
9997 (remote_bfd_iovec_pread, remote_file_get): Update.
9998 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9999
0d866f62
TT
100002014-02-19 Tom Tromey <tromey@redhat.com>
10001
10002 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10003 * target.c (target_fileio_pwrite): Add argument.
10004 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10005 (remote_file_put): Update.
10006 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10007
cd897586
TT
100082014-02-19 Tom Tromey <tromey@redhat.com>
10009
10010 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10011 * target.c (target_fileio_open): Add argument.
10012 * remote.c (remote_hostio_open): Add 'self' argument.
10013 (remote_bfd_iovec_open): Add 'self' argument.
10014 (remote_file_put): Add 'self' argument.
10015 (remote_file_get): Add 'self' argument.
10016 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10017
78eff0ec
TT
100182014-02-19 Tom Tromey <tromey@redhat.com>
10019
10020 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10021 Add argument.
10022 (target_can_run_breakpoint_commands): Add argument.
10023 * target.c (update_current_target): Update.
10024 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10025 argument.
10026 (remote_insert_breakpoint): Add 'self' argument.
10027 (remote_insert_hw_breakpoint): Add 'self' argument.
10028 (remote_can_run_breakpoint_commands): Add 'self' argument.
10029
efcc2da7
TT
100302014-02-19 Tom Tromey <tromey@redhat.com>
10031
10032 * target.h (struct target_ops)
10033 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10034 (target_supports_evaluation_of_breakpoint_conditions): Add
10035 argument.
10036 * target.c (update_current_target): Update.
10037 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10038 argument.
10039 (remote_insert_breakpoint): Add 'self' argument.
10040 (remote_insert_hw_breakpoint): Add 'self' argument.
10041 (remote_supports_cond_breakpoints): Add 'self' argument.
10042
6de37a3a
TT
100432014-02-19 Tom Tromey <tromey@redhat.com>
10044
10045 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10046 argument.
10047 (target_supports_string_tracing): Add argument.
10048 * target.c (update_current_target): Update.
10049 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10050
2bfc0540
TT
100512014-02-19 Tom Tromey <tromey@redhat.com>
10052
10053 * target.h (struct target_ops)
10054 <to_supports_disable_randomization>: Add argument.
10055 * target.c (find_default_supports_disable_randomization): Add
10056 argument.
10057 (target_supports_disable_randomization): Add argument.
10058 (find_default_supports_disable_randomization): Add 'self'
10059 argument.
10060 * remote.c (extended_remote_supports_disable_randomization): Add
10061 'self' argument.
10062 (remote_supports_disable_randomization): Add 'self' argument.
10063 (extended_remote_create_inferior): Update.
10064 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10065 'self' argument.
10066
7d178d6a
TT
100672014-02-19 Tom Tromey <tromey@redhat.com>
10068
10069 * target.h (struct target_ops)
10070 <to_supports_enable_disable_tracepoint>: Add argument.
10071 (target_supports_enable_disable_tracepoint): Add argument.
10072 * target.c (update_current_target): Update.
10073 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10074 argument.
10075
86ce2668
TT
100762014-02-19 Tom Tromey <tromey@redhat.com>
10077
10078 * target.h (struct target_ops) <to_supports_multi_process>: Add
10079 argument.
10080 (target_supports_multi_process): Add argument.
10081 * target.c (update_current_target): Update.
10082 * remote.c (remote_supports_multi_process): Add 'self' argument.
10083 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10084 argument.
10085 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10086 argument.
10087
4c612759
TT
100882014-02-19 Tom Tromey <tromey@redhat.com>
10089
10090 * target.h (struct target_ops) <to_execution_direction>: Add
10091 argument.
10092 (target_execution_direction): Add argument.
10093 * target.c (default_execution_direction): Add 'self' argument.
10094 * record-full.c (record_full_execution_direction): Add 'self'
10095 argument.
10096
19db3e69
TT
100972014-02-19 Tom Tromey <tromey@redhat.com>
10098
10099 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10100 argument.
10101 (target_can_execute_reverse): Add argument.
10102 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10103 * record-full.c (record_full_can_execute_reverse): Add 'self'
10104 argument.
10105 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10106 argument.
10107
1e6b91a4
TT
101082014-02-19 Tom Tromey <tromey@redhat.com>
10109
10110 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10111 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10112 argument.
10113 (target_get_ada_task_ptid): Add argument.
10114 * target.c (update_current_target): Update.
10115 (default_get_ada_task_ptid): Add 'self' argument.
10116 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10117 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10118 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10119 argument.
10120 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10121 argument.
10122 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10123 argument.
10124 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10125 argument.
10126 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10127 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10128 argument.
10129
3c80fb48
TT
101302014-02-19 Tom Tromey <tromey@redhat.com>
10131
10132 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10133 (target_goto_bookmark): Add argument.
10134 * target.c (dummy_goto_bookmark): Add 'self' argument.
10135 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10136
dd0e2830
TT
101372014-02-19 Tom Tromey <tromey@redhat.com>
10138
10139 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10140 (target_get_bookmark): Add argument.
10141 * target.c (dummy_get_bookmark): Add 'self' argument.
10142 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10143
fc6691b2
TT
101442014-02-19 Tom Tromey <tromey@redhat.com>
10145
10146 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10147 argument.
10148 (target_make_corefile_notes): Add argument.
10149 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10150 * procfs.c (procfs_make_note_section): Add 'self' argument.
10151 (procfs_make_note_section): Add 'self' argument.
10152 (procfs_make_note_section): Add 'self' argument.
10153 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10154 argument.
10155 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10156 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10157 * exec.c (exec_make_note_section): Add 'self' argument.
10158 (exec_make_note_section): Add 'self' argument.
10159
2e73927c
TT
101602014-02-19 Tom Tromey <tromey@redhat.com>
10161
10162 * target.h (struct target_ops) <to_find_memory_regions>: Add
10163 argument.
10164 (target_find_memory_regions): Add argument.
10165 * target.c (dummy_find_memory_regions): Add 'self' argument.
10166 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10167 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10168 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10169 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10170 * exec. (exec_do_find_memory_regions): New global.
10171 (exec_set_find_memory_regions): Rewrite.
10172 (exec_find_memory_regions): New function.
10173 (init_exec_ops): Use exec_find_memory_regions.
10174
2a9a2795
TT
101752014-02-19 Tom Tromey <tromey@redhat.com>
10176
10177 * target.h (struct target_ops) <to_supports_non_stop>: Add
10178 argument.
10179 * target.c (find_default_supports_non_stop): Add argument.
10180 (target_supports_non_stop): Add argument.
10181 (find_default_supports_non_stop): Add 'self' argument.
10182 * remote.c (remote_supports_non_stop): Add 'self' argument.
10183 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10184
4ab76ea3
TT
101852014-02-19 Tom Tromey <tromey@redhat.com>
10186
10187 * target.h (struct target_ops) <to_log_command>: Add argument.
10188 (target_log_command): Add argument.
10189 * serial.h (serial_log_command): Add 'self' argument.
10190 * serial.c (serial_log_command): Add 'self' argument.
10191
8dd27370
TT
101922014-02-19 Tom Tromey <tromey@redhat.com>
10193
10194 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10195 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10196 argument.
10197 (target_pid_to_exec_file): Add argument.
10198 * target.c (debug_to_pid_to_exec_file): Add argument.
10199 (update_current_target): Update.
10200 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10201 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10202 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10203 (linux_handle_extended_wait): Update.
10204 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10205 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10206 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10207 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10208
1aac633b
TT
102092014-02-19 Tom Tromey <tromey@redhat.com>
10210
10211 * target.h (struct target_ops) <to_rcmd>: Add argument.
10212 (target_rcmd): Add argument.
10213 * target.c (debug_to_rcmd): Add argument.
10214 (update_current_target, do_monitor_command): Update.
10215 * remote.c (remote_rcmd): Add 'self' argument.
10216 * monitor.c (monitor_rcmd): Add 'self' argument.
10217
1eab8a48
TT
102182014-02-19 Tom Tromey <tromey@redhat.com>
10219
10220 * windows-nat.c (windows_stop): Add 'self' argument.
10221 * target.h (struct target_ops) <to_stop>: Add argument.
10222 * target.c (target_stop): Add argument.
10223 (debug_to_stop): Add argument.
10224 (update_current_target): Update.
10225 * remote.c (remote_stop): Add 'self' argument.
10226 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10227 (gdbsim_cntrl_c): Update.
10228 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10229 * procfs.c (procfs_stop): Add 'self' argument.
10230 * nto-procfs.c (procfs_stop): Add 'self' argument.
10231 * monitor.c (monitor_stop): Add 'self' argument.
10232 (monitor_open): Update.
10233 * linux-nat.c (linux_nat_stop): Add argument.
10234 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10235 * gnu-nat.c (gnu_stop): Add 'self' argument.
10236 * darwin-nat.c (darwin_stop): Add 'self' argument.
10237
503a628d
TT
102382014-02-19 Tom Tromey <tromey@redhat.com>
10239
10240 * target.h (struct target_ops) <to_thread_name>: Add argument.
10241 * target.c (target_thread_name): Add argument.
10242 (update_current_target): Update.
10243 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10244
c15906d8
TT
102452014-02-19 Tom Tromey <tromey@redhat.com>
10246
10247 * target.h (struct target_ops) <to_extra_thread_info>: Add
10248 argument.
10249 (target_extra_thread_info): Add argument.
10250 * target.c (update_current_target): Update.
10251 * remote.c (remote_threads_extra_info): Add 'self' argument.
10252 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10253 argument.
10254 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10255 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10256 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10257 argument.
10258 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10259 argument.
10260 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10261 argument.
10262 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10263 argument.
10264
daf5e9b6
TT
102652014-02-19 Tom Tromey <tromey@redhat.com>
10266
10267 * target.h (struct target_ops) <to_program_signals>: Add argument.
10268 * target.c (target_program_signals): Add argument.
10269 * remote.c (remote_program_signals): Add 'self' argument.
10270
94bedb42
TT
102712014-02-19 Tom Tromey <tromey@redhat.com>
10272
10273 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10274 * target.c (target_pass_signals): Add argument.
10275 * remote.c (remote_pass_signals): Add 'self' argument.
10276 (remote_start_remote): Update.
10277 * procfs.c (procfs_pass_signals): Add 'self' argument.
10278 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10279 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10280 (linux_nat_create_inferior, linux_nat_attach): Update.
10281
da82bd6b
TT
102822014-02-19 Tom Tromey <tromey@redhat.com>
10283
10284 * windows-nat.c (windows_can_run): Add 'self' argument.
10285 * target.h (struct target_ops) <to_can_run>: Add argument.
10286 (target_can_run): Add argument.
10287 * target.c (debug_to_can_run): Add argument.
10288 (update_current_target): Update.
10289 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10290 * inf-child.c (inf_child_can_run): Add 'self' argument.
10291 * go32-nat.c (go32_can_run): Add 'self' argument.
10292
d796e1d6
TT
102932014-02-19 Tom Tromey <tromey@redhat.com>
10294
10295 * target.h (struct target_ops) <to_has_exited>: Add argument.
10296 (target_has_exited): Add argument.
10297 * target.c (debug_to_has_exited): Add argument.
10298 (update_current_target): Update.
10299
ff214e67
TT
103002014-02-19 Tom Tromey <tromey@redhat.com>
10301
10302 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10303 argument.
10304 (target_set_syscall_catchpoint): Add argument.
10305 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10306 argument.
10307 * target.c (update_current_target): Update.
10308
758e29d2
TT
103092014-02-19 Tom Tromey <tromey@redhat.com>
10310
10311 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10312 argument.
10313 (target_remove_exec_catchpoint): Add argument.
10314 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10315 (update_current_target): Update.
10316 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10317 argument.
10318
ba025e51
TT
103192014-02-19 Tom Tromey <tromey@redhat.com>
10320
10321 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10322 argument.
10323 (target_insert_exec_catchpoint): Add argument.
10324 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10325 (update_current_target): Update.
10326 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10327 argument.
10328
e98cf0cd
TT
103292014-02-19 Tom Tromey <tromey@redhat.com>
10330
10331 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10332 argument.
10333 (target_remove_vfork_catchpoint): Add argument.
10334 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10335 (update_current_target): Update.
10336 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10337 argument.
10338
3ecc7da0
TT
103392014-02-19 Tom Tromey <tromey@redhat.com>
10340
10341 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10342 argument.
10343 (target_insert_vfork_catchpoint): Add argument.
10344 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10345 (update_current_target): Update.
10346 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10347 argument.
10348
973fc227
TT
103492014-02-19 Tom Tromey <tromey@redhat.com>
10350
10351 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10352 argument.
10353 (target_remove_fork_catchpoint): Add argument.
10354 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10355 (update_current_target): Update.
10356 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10357 argument.
10358
a863b201
TT
103592014-02-19 Tom Tromey <tromey@redhat.com>
10360
10361 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10362 argument.
10363 (target_insert_fork_catchpoint): Add argument.
10364 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10365 (update_current_target): Update.
10366 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10367 argument.
10368
2e97a79e
TT
103692014-02-19 Tom Tromey <tromey@redhat.com>
10370
10371 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10372 argument.
10373 (target_post_startup_inferior): Add argument.
10374 * target.c (debug_to_post_startup_inferior): Add argument.
10375 (update_current_target): Update.
10376 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10377 argument.
10378 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10379 argument.
10380 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10381 argument.
10382 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10383 argument.
10384 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10385 'self' argument.
10386 (super_post_startup_inferior): Likewise.
10387 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10388 'self' argument.
10389 (super_post_startup_inferior): Likewise.
10390 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10391 Add 'self' argument.
10392 (super_post_startup_inferior): Likewise.
10393
71a9f134
TT
103942014-02-19 Tom Tromey <tromey@redhat.com>
10395
10396 * target.h (struct target_ops) <to_load>: Add argument.
10397 * target.c (target_load): Add argument.
10398 (debug_to_load): Add argument.
10399 (update_current_target): Update.
10400 * remote.c (remote_load): Add 'self' argument.
10401 * remote-sim.c (gdbsim_load): Add 'self' argument.
10402 * remote-mips.c (mips_load): Add 'self' argument.
10403 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10404 * monitor.c (monitor_load): Add 'self' argument.
10405 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10406
0a4f40a2
TT
104072014-02-19 Tom Tromey <tromey@redhat.com>
10408
10409 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10410 (target_terminal_info): Add argument.
10411 * target.c (debug_to_terminal_info): Add argument.
10412 (default_terminal_info): Likewise.
10413 * inflow.c (child_terminal_info): Add 'self' argument.
10414 * inferior.h (child_terminal_info): Add 'self' argument.
10415 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10416
ae3bd431
TT
104172014-02-19 Tom Tromey <tromey@redhat.com>
10418
10419 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10420 argument.
10421 (target_terminal_save_ours): Add argument.
10422 * target.c (debug_to_terminal_save_ours): Add argument.
10423 (update_current_target): Update.
10424 * inflow.c (terminal_save_ours): Add 'self' argument.
10425 * inferior.h (terminal_save_ours): Add 'self' argument.
10426
e3594fd1
TT
104272014-02-19 Tom Tromey <tromey@redhat.com>
10428
10429 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10430 (target_terminal_ours): Add argument.
10431 * target.c (debug_to_terminal_ours): Add argument.
10432 (update_current_target): Update.
10433 * remote.c (remote_terminal_ours): Add 'self' argument.
10434 (remote_close): Update.
10435 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10436 * inflow.c (terminal_ours): Add 'self' argument.
10437 * inferior.h (terminal_ours): Add 'self' argument.
10438 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10439
2e1e1a19
TT
104402014-02-19 Pedro Alves <palves@redhat.com>
10441 Tom Tromey <tromey@redhat.com>
10442
10443 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10444 argument.
10445 (target_terminal_ours_for_output): Add argument.
10446 * target.c (debug_to_terminal_ours_for_output): Add argument.
10447 (update_current_target): Update.
10448 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10449 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10450 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10451
d2f640d4
TT
104522014-02-19 Tom Tromey <tromey@redhat.com>
10453
10454 * target.h (struct target_ops) <to_terminal_inferior>: Add
10455 argument.
10456 * target.c (target_terminal_inferior): Add argument.
10457 (update_current_target): Update.
10458 * remote.c (remote_terminal_inferior): Add 'self' argument.
10459 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10460 * inflow.c (terminal_inferior): Add 'self' argument.
10461 * inferior.h (terminal_inferior): Add 'self' argument.
10462 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10463 (go32_terminal_inferior): Add 'self' argument.
10464
c42bf286
TT
104652014-02-19 Tom Tromey <tromey@redhat.com>
10466
10467 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10468 (target_terminal_init): Add argument.
10469 * target.c (debug_to_terminal_init): Add argument.
10470 (update_current_target): Update.
10471 * inflow.c (terminal_init_inferior): Add 'self' argument.
10472 * inferior.h (terminal_init_inferior): Add 'self' argument.
10473 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10474 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10475
c3a5ff89
TT
104762014-02-19 Tom Tromey <tromey@redhat.com>
10477
10478 * target.h (struct target_ops)
10479 <to_can_accel_watchpoint_condition>: Add argument.
10480 (target_can_accel_watchpoint_condition): Add argument.
10481 * target.c (debug_to_can_accel_watchpoint_condition): Add
10482 argument.
10483 (update_current_target): Update.
10484 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10485 'self' argument.
10486
31568a15
TT
104872014-02-19 Tom Tromey <tromey@redhat.com>
10488
10489 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10490 Add argument.
10491 (target_region_ok_for_hw_watchpoint): Add argument.
10492 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10493 (default_region_ok_for_hw_watchpoint): Add argument.
10494 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10495 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10496 argument.
10497 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10498 argument.
10499 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10500 argument.
10501 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10502 'self' argument.
10503 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10504 'self' argument.
10505 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10506 'self' argument.
10507 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10508 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10509 'self' argument.
10510 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10511 Add 'self' argument.
10512
7bb99c53
TT
105132014-02-19 Tom Tromey <tromey@redhat.com>
10514
10515 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10516 argument.
10517 (target_insert_watchpoint): Add argument.
10518 * target.c (debug_to_insert_watchpoint): Add argument.
10519 (update_current_target): Update.
10520 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10521 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10522 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10523 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10524 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10525 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10526 argument.
10527 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10528 (procfs_insert_hw_watchpoint): Add 'self' argument.
10529 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10530 argument.
10531 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10532 argument.
10533 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10534 argument.
10535 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10536 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10537 argument.
10538 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10539 'self' argument.
10540
11b5219a
TT
105412014-02-19 Tom Tromey <tromey@redhat.com>
10542
10543 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10544 argument.
10545 (target_remove_watchpoint): Add argument.
10546 * target.c (debug_to_remove_watchpoint): Add argument.
10547 (update_current_target): Update.
10548 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10549 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10550 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10551 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10552 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10553 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10554 argument.
10555 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10556 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10557 argument.
10558 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10559 argument.
10560 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10561 argument.
10562 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10563 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10564 argument.
10565 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10566 'self' argument.
10567
a64dc96c
TT
105682014-02-19 Tom Tromey <tromey@redhat.com>
10569
10570 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10571 argument.
10572 (target_remove_hw_breakpoint): Add argument.
10573 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10574 (update_current_target): Update.
10575 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10576 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10577 argument.
10578 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10579 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10580 argument.
10581 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10582 'self' argument.
10583
23a26771
TT
105842014-02-19 Tom Tromey <tromey@redhat.com>
10585
10586 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10587 argument.
10588 (target_insert_hw_breakpoint): Add argument.
10589 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10590 (update_current_target): Update.
10591 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10592 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10593 argument.
10594 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10595 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10596 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10597 argument.
10598 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10599 'self' argument.
10600
5461485a
TT
106012014-02-19 Tom Tromey <tromey@redhat.com>
10602
10603 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10604 argument.
10605 (target_can_use_hardware_watchpoint): Add argument.
10606 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10607 (update_current_target): Update.
10608 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10609 argument.
10610 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10611 argument.
10612 * remote.c (remote_check_watch_resources): Add 'self' argument.
10613 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10614 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10615 argument.
10616 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10617 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10618 argument.
10619 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10620 argument.
10621 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10622 argument.
10623 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10624 argument.
10625 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10626 argument.
10627 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10628 argument.
10629 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10630 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10631 argument.
10632 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10633 'self' argument.
10634
f045800c
TT
106352014-02-19 Tom Tromey <tromey@redhat.com>
10636
10637 * target.h (struct target_ops) <to_post_attach>: Add argument.
10638 (target_post_attach): Add argument.
10639 * target.c (debug_to_post_attach): Add argument.
10640 (update_current_target): Update.
10641 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10642 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10643 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10644 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10645 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10646
de90e03d
TT
106472014-02-19 Tom Tromey <tromey@redhat.com>
10648
10649 * windows-nat.c (windows_close): Add 'self' argument.
10650 * tracepoint.c (tfile_close): Add 'self' argument.
10651 * target.h (struct target_ops) <to_close>: Add argument.
10652 * target.c (target_close): Add argument.
10653 (update_current_target): Update.
10654 * remote.c (remote_close): Add 'self' argument.
10655 * remote-sim.c (gdbsim_close): Add 'self' argument.
10656 * remote-mips.c (mips_close): Add 'self' argument.
10657 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10658 * record-full.c (record_full_close): Add 'self' argument.
10659 * record-btrace.c (record_btrace_close): Add 'self' argument.
10660 * monitor.h (monitor_close): Add 'self' argument.
10661 * monitor.c (monitor_close): Add 'self' argument.
10662 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10663 * linux-nat.c (linux_nat_close): Add argument.
10664 * go32-nat.c (go32_close): Add 'self' argument.
10665 * exec.c (exec_close_1): Add 'self' argument.
10666 * ctf.c (ctf_close): Add 'self' argument.
10667 * corelow.c (core_close): Add 'self' argument.
10668 (core_close_cleanup): Update.
10669 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10670 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10671
9dd130a0
TT
106722014-02-19 Tom Tromey <tromey@redhat.com>
10673
10674 * remote.c (remote_load): New function.
10675 (init_remote_ops): Use it.
10676
46917d26
TT
106772014-02-19 Tom Tromey <tromey@redhat.com>
10678
10679 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10680 argument.
10681 * common/linux-btrace.h (linux_supports_btrace): Update.
10682 * remote.c (remote_supports_btrace): Add "self" argument.
10683 * target-delegates.c: Rebuild.
10684 * target.c (target_supports_btrace): Remove.
10685 * target.h (struct target_ops) <to_supports_btrace>: Add
10686 target_ops argument.
10687 (target_supports_btrace): New define.
10688
6b84065d
TT
106892014-02-19 Tom Tromey <tromey@redhat.com>
10690
10691 * record-full.c (record_full_beneath_to_resume_ops)
10692 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10693 (record_full_beneath_to_wait)
10694 (record_full_beneath_to_store_registers_ops)
10695 (record_full_beneath_to_store_registers)
10696 (record_full_beneath_to_xfer_partial_ops)
10697 (record_full_beneath_to_xfer_partial)
10698 (record_full_beneath_to_insert_breakpoint_ops)
10699 (record_full_beneath_to_insert_breakpoint)
10700 (record_full_beneath_to_remove_breakpoint_ops)
10701 (record_full_beneath_to_remove_breakpoint)
10702 (record_full_beneath_to_stopped_by_watchpoint)
10703 (record_full_beneath_to_stopped_data_address)
10704 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10705 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10706 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10707 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10708 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10709 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10710 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10711 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10712 (record_full_resume, record_full_wait_1)
10713 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10714 (record_full_store_registers, record_full_xfer_partial)
10715 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10716 (record_full_async, record_full_core_xfer_partial): Use target
10717 delegation.
10718 * target-delegates.c: Rebuild.
10719 * target.c (current_xfer_partial): Remove.
10720 (update_current_target): Do not INHERIT or de_fault
10721 to_insert_breakpoint, to_remove_breakpoint,
10722 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10723 to_is_async_p, to_async. Do not set to_xfer_partial field.
10724 (default_xfer_partial): Simplify.
10725 (current_xfer_partial): Remove.
10726 (target_wait, target_resume): Simplify.
10727 (find_default_can_async_p, find_default_is_async_p): Update.
10728 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10729 to_xfer_partial, to_stopped_by_watchpoint,
10730 to_stopped_data_address.
10731 (target_store_registers): Simplify.
10732 (forward_target_remove_breakpoint)
10733 (forward_target_insert_breakpoint): Remove.
10734 (target_remove_breakpoint, target_insert_breakpoint)
10735 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10736 * target.h (struct target_ops) <to_resume, to_wait,
10737 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10738 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10739 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10740 markup.
10741 (forward_target_remove_breakpoint)
10742 (forward_target_insert_breakpoint): Remove.
10743 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10744 directly.
10745 (record_btrace_insert_breakpoint): Delegate directly.
10746
1101cb7b
TT
107472014-02-19 Tom Tromey <tromey@redhat.com>
10748
10749 PR build/7701:
10750 * target-delegates.c: New file.
10751 * target.c: Include target-delegates.c.
10752 (init_dummy_target): Call install_dummy_methods.
10753 (complete_target_initialization): Call install_delegators.
10754 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10755 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10756 * make-target-delegates: New file.
10757
8b06beed
TT
107582014-02-19 Tom Tromey <tromey@redhat.com>
10759
10760 * record.c (find_record_target): Use find_target_at.
10761 * target.c (find_target_at): New function.
10762 * target.h (find_target_at): Declare.
10763
6a109b6b
TT
107642014-02-19 Tom Tromey <tromey@redhat.com>
10765
10766 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10767 Add 'ops' argument.
10768 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10769 'ops' argument.
10770 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10771 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10772 'ops' argument.
10773 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10774 argument.
10775 * linux-nat.c (save_sigtrap): Update.
10776 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10777 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10778 (linux_nat_close): Update.
10779 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10780 argument.
10781 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10782 argument.
10783 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10784 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10785 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10786 (tmp_to_async): Add 'ops' argument.
10787 (record_full_stopped_by_watchpoint, record_full_async)
10788 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10789 argument.
10790 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10791 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10792 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10793 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10794 (remote_is_async_p, remote_async): Add 'ops' argument.
10795 (remote_stopped_data_address): Update.
10796 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10797 * target.c (update_current_target)
10798 (find_default_can_async_p, find_default_is_async_p): Update.
10799 (init_dummy_target): Update.
10800 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10801 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10802 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10803 (target_can_async_p, target_is_async_p, target_async)
10804 (target_stopped_by_watchpoint): Update.
10805
e095146b
YQ
108062014-02-19 Yao Qi <yao@codesourcery.com>
10807
10808 PR gdb/16220
10809 * gdbarch.sh: Remove startup_gdbarch.
10810 * gdbarch.c: Regenerated.
10811 * gdbarch.h: Likewise.
10812
bc3c6b36
KB
108132014-02-17 Kevin Buettner <kevinb@redhat.com>
10814
10815 * rl78-tdep.c (rl78_g10_register_name): New function.
10816 (rl78_return_value): Add g10 support.
10817 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10818 g10.
10819
98dc0167 108202014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10821
10822 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10823 (SUBDIR_GUILE_SRCS): Ditto.
10824 (scm-gsmob.o): Ditto.
10825
842c05cd
YQ
108262014-02-17 Yao Qi <yao@codesourcery.com>
10827
10828 * gnu-nat.c (ILL_RPC): Declare defined function.
10829
25c0bd04
YQ
108302014-02-17 Yao Qi <yao@codesourcery.com>
10831
10832 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10833 mach_msg_type_number_t.
10834 (gnu_write_inferior): Likewise.
10835
a9a758e3
YQ
108362014-02-17 Yao Qi <yao@codesourcery.com>
10837
10838 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10839 in format string.
10840 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10841 (inf_validate_procs, inf_signal): Likewise.
10842 (S_exception_raise_request): Likewise.
10843 (do_mach_notify_dead_name): Likewise.
10844 (steal_exc_port): Likewise.
10845 (gnu_read_inferior): Change 'copy_count''s type to
10846 mach_msg_type_number_t.
10847 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10848 format string.
10849
bae8023e
TS
108502014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10851
c82f56d9
TS
10852 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10853 flag. Adjust all users; in particular...
10854 (gnu_wait): ..., don't decrement its value in here...
10855 (gnu_create_inferior): ..., and instead set the flag in here,
10856 around the startup_inferior call, and call that one with
10857 START_INFERIOR_TRAPS_EXPECTED.
10858
3398af6a
TS
10859 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10860 (ILL_RPC): ... new macro.
10861 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10862 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10863 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10864 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10865 functions with ILL_RPC macro.
10866 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10867 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10868 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10869 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10870 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10871 (S_proc_getlogin_reply, S_proc_getsid_reply)
10872 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10873 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10874 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10875 (S_proc_getnports_reply, S_proc_is_important_reply)
10876 (S_proc_get_code_reply): New stub functions, generated with
10877 ILL_RPC macro.
10878
d47642c9
TS
10879 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10880 collected the type check structures.
10881
bae8023e
TS
10882 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10883
8a55ffb0
DE
108842014-02-14 Doug Evans <dje@google.com>
10885
10886 * target.c (target_write_partial): Fix result type.
10887
c2853f3d
JM
108882014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10889
10890 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10891 the proper offsets to access fpregset_t.
10892
ac61d2db
SA
108932014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10894
10895 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10896 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10897 * h8300-tdep.c (setmachinelist): Remove global.
10898 * hppa-tdep.c (hppa_sigtramp): Remove global.
10899 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10900 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10901 * ravenscar-thread.c (update_target_observer): Remove global.
10902 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10903
9d2d0b8b
TT
109042014-02-12 Tom Tromey <tromey@redhat.com>
10905
10906 * common/rsp-low.c: Update comments.
10907 * common/rsp-low.h: Update comments.
10908
a7191e8b
TT
109092014-02-12 Tom Tromey <tromey@redhat.com>
10910
10911 * common/rsp-low.c (convert_ascii_to_int): Remove.
10912 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10913
ff0e980e
TT
109142014-02-12 Tom Tromey <tromey@redhat.com>
10915
10916 * common/rsp-low.h (unhexify): Don't declare.
10917 * common/rsp-low.c (unhexify): Remove.
10918
e9371aff
TT
109192014-02-12 Tom Tromey <tromey@redhat.com>
10920
10921 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10922 * common/rsp-low.c (convert_int_to_ascii): Remove.
10923
971dc0b8
TT
109242014-02-12 Tom Tromey <tromey@redhat.com>
10925
10926 * common/rsp-low.h (hexify): Don't declare.
10927 * common/rsp-low.c (hexify): Remove.
10928
0a822afb
TT
109292014-02-12 Tom Tromey <tromey@redhat.com>
10930
10931 * common/rsp-low.c (hexify): Never take strlen of argument.
10932
9f1b45b0
TT
109332014-02-12 Tom Tromey <tromey@redhat.com>
10934
10935 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10936 * remote.c (extended_remote_run, remote_rcmd)
10937 (remote_download_trace_state_variable, remote_save_trace_data)
10938 (remote_set_trace_notes): Update.
10939 * tracepoint.c (encode_source_string, tfile_write_status)
10940 (tfile_write_uploaded_tsv): Update.
10941
9c3d6531
TT
109422014-02-12 Tom Tromey <tromey@redhat.com>
10943
10944 * tracepoint.c: Include rsp-low.h.
10945 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10946 * remote.c: Include rsp-low.h.
10947 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10948 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10949 (remote_unescape_input): Move to common/rsp-low.c.
10950 * common/rsp-low.h: New file.
10951 * common/rsp-low.c: New file.
10952 * Makefile.in (SFILES): Add common/rsp-low.c.
10953 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10954 (COMMON_OBS): Add rsp-low.o.
10955 (rsp-low.o): New target.
10956
01fd3ea5
TT
109572014-02-12 Tom Tromey <tromey@redhat.com>
10958
10959 * utils.h: Include print-utils.h.
10960 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10961 (int_string, core_addr_to_string, core_addr_to_string_nz)
10962 (hex_string, hex_string_custom): Don't declare.
10963 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10964 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10965 (hex_string_custom, int_string, core_addr_to_string)
10966 (core_addr_to_string_nz, host_address_to_string): Move to
10967 common/print-utils.c.
10968 * common/print-utils.h: New file.
10969 * common/print-utils.c: New file
10970 * Makefile.in (SFILES): Add common/print-utils.c.
10971 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10972 (COMMON_OBS): Add print-utils.o.
10973 (print-utils.o): New target.
10974
9fb50108
TT
109752014-02-12 Tom Tromey <tromey@redhat.com>
10976
10977 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10978
0548b5db
MK
109792014-02-12 Mark Kettenis <kettenis@gnu.org>
10980
10981 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10982
493443a4
MK
109832014-02-12 Mark Kettenis <kettenis@gnu.org>
10984
10985 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10986 if a PT_IO ptrace request returns sucessfully but indicates that 0
10987 bytes were transferred.
10988
706d0883
PA
109892014-02-12 Pedro Alves <palves@redhat.com>
10990 Kevin Buettner <kevinb@redhat.com>
10991
10992 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10993 TYPE_INSTANCE_FLAG_CODE_SPACE.
10994
5caa2f0b
PA
109952014-02-12 Pedro Alves <palves@redhat.com>
10996
10997 * h8300-tdep.c (pseudo_from_raw_register)
10998 (raw_from_pseudo_register): New functions.
10999 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11000 them.
11001
76fd5f74
PA
110022014-02-12 Pedro Alves <palves@redhat.com>
11003
11004 * h8300-tdep.c (h8300_register_sim_regno): New function.
11005 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11006 gdbarch_register_sim_regno hook.
11007
8f008406
SA
110082014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11009
11010 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11011
195abc10
SA
110122014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11013
11014 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11015
93ffa5b9
MK
110162014-02-12 Mark Kettenis <kettenis@gnu.org>
11017
11018 * obsd-tdep.h (obsd_init_abi): New prototype.
11019 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11020 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11021 (obsd_init_abi): New functions.
11022 * i386obsd-tdep.c: Include "obsd-tdep.h".
11023 (i386obsd_init_abi): Call obsd_init_abi.
11024 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11025 (amd64obsd_init_abi): Call obsd_init_abi.
11026 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11027 obsd-tdep.c to gdb_target_obs.
11028
49caec94
JM
110292014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11030
11031 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11032 double float arguments to 16-byte in the argument slots.
11033
e1402065
DE
110342014-02-11 Doug Evans <xdje42@gmail.com>
11035
11036 * configure.ac: Don't crash if pkg-config is not found and guile
11037 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11038 in guile checks.
11039 * configure: Regenerate.
11040
edcc890f
YQ
110412014-02-11 Yao Qi <yao@codesourcery.com>
11042
11043 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11044 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11045 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11046 * gnu-nat.c (gnu_xfer_memory): Likewise.
11047 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11048 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11049 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11050 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11051
9b409511
YQ
110522014-02-11 Yao Qi <yao@codesourcery.com>
11053
11054 * target.h (enum target_xfer_error): Rename to ...
11055 (enum target_xfer_status): ... it. New. All users updated.
11056 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11057 New.
11058 (TARGET_XFER_STATUS_ERROR_P): New macro.
11059 (target_xfer_error_to_string): Remove declaration.
11060 (target_xfer_status_to_string): Declare.
11061 (target_xfer_partial_ftype): Adjust it.
11062 (struct target_ops) <to_xfer_partial>: Return
11063 target_xfer_status. Add argument xfered_len. Update
11064 comments.
11065 * target.c (target_xfer_error_to_string): Rename to ...
11066 (target_xfer_status_to_string): ... it. New. All callers
11067 updated.
11068 (target_read_live_memory): Likewise. Call target_xfer_partial
11069 instead of target_read.
11070 (memory_xfer_live_readonly_partial): Return
11071 target_xfer_status. Add argument xfered_len.
11072 (raw_memory_xfer_partial): Likewise.
11073 (memory_xfer_partial_1): Likewise.
11074 (memory_xfer_partial): Likewise.
11075 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11076 properly. Update debug message.
11077 (default_xfer_partial, current_xfer_partial): Likewise.
11078 (target_write_partial): Likewise.
11079 (target_read_partial): Likewise. All callers updated.
11080 (read_whatever_is_readable): Likewise.
11081 (target_write_with_progress): Likewise.
11082 (target_read_alloc_1): Likewise.
11083
11084 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11085 * auxv.c (procfs_xfer_auxv): Likewise.
11086 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11087 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11088 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11089 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11090 * corefile.c (read_memory): Adjust.
11091 * corelow.c (core_xfer_partial): Likewise.
11092 * ctf.c (ctf_xfer_partial): Likewise.
11093 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11094 updated.
11095 (darwin_xfer_partial): Likewise.
11096 * exec.c (section_table_xfer_memory_partial): Likewise. All
11097 callers updated.
11098 (exec_xfer_partial): Likewise.
11099 * exec.h (section_table_xfer_memory_partial): Update
11100 declaration.
11101 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11102 negative.
11103 (gnu_xfer_partial): Likewise.
11104 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11105 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11106 (ia64_hpux_xfer_solib_got): Likewise.
11107 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11108 type of 'partial_len' to ULONGEST.
11109 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11110 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11111 (linux_nat_xfer_partial): Likewise.
11112 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11113 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11114 * monitor.c (monitor_xfer_memory): Likewise.
11115 (monitor_xfer_partial): Likewise.
11116 * procfs.c (procfs_xfer_partial): Likewise.
11117 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11118 * record-full.c (record_full_xfer_partial): Likewise.
11119 (record_full_core_xfer_partial): Likewise.
11120 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11121 (gdbsim_xfer_partial): Likewise.
11122 * remote.c (remote_write_bytes_aux): Likewise. All callers
11123 updated.
11124 (remote_write_bytes, remote_read_bytes): Likewise. All
11125 callers updated.
11126 (remote_flash_erase): Likewise. All callers updated.
11127 (remote_write_qxfer): Likewise. All callers updated.
11128 (remote_read_qxfer): Likewise. All callers updated.
11129 (remote_xfer_partial): Likewise.
11130 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11131 (rs6000_xfer_shared_libraries): Likewise.
11132 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11133 (sol_thread_xfer_partial): Likewise.
11134 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11135 (sparc_xfer_partial): Likewise.
11136 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11137 updated.
11138 (spu_xfer_partial): Likewise.
11139 * spu-multiarch.c (spu_xfer_partial): Likewise.
11140 * tracepoint.c (tfile_xfer_partial): Likewise.
11141 * windows-nat.c (windows_xfer_memory): Likewise.
11142 (windows_xfer_shared_libraries): Likewise.
11143 (windows_xfer_partial): Likewise.
11144 * valprint.c: Replace 'target_xfer_error' with
11145 'target_xfer_status' in comments.
11146
a8e63083
JB
111472014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11148
11149 Checked in by Joel Brobecker <brobecker@adacore.com>.
11150 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11151
e86b67d3
JB
111522014-02-11 Joel Brobecker <brobecker@adacore.com>
11153
11154 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11155 function parameters.
11156
4b7d1f7f
WN
111572014-02-10 Will Newton <will.newton@linaro.org>
11158
11159 * elfread.c (elf_rel_plt_read): Look for a .got section if
11160 looking up .got.plt fails.
11161 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11162 on address passed to elf_gnu_ifunc_record_cache.
11163 (elf_gnu_ifunc_resolve_addr): Likewise.
11164 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11165
961842b2
JM
111662014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11167
11168 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11169 (X_RETTURN): New macro.
11170 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11171
11172 * sparc64-tdep.c (sparc64_init_abi): Hook
11173 sparc_in_function_epilogue_p.
11174
3f03e7b1
GB
111752014-02-10 Gary Benson <gbenson@redhat.com>
11176
11177 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11178 Rename name_matcher to symbol_matcher.
11179
96f861ef
GB
111802014-02-10 Gary Benson <gbenson@redhat.com>
11181
11182 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11183 Use expand_symtabs_file_matcher_ftype and
11184 expand_symtabs_symbol_matcher_ftype.
11185
ee01b665
JB
111862014-02-10 Joel Brobecker <brobecker@adacore.com>
11187
11188 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11189 (struct ada_symbol_cache): New.
11190 (ada_free_symbol_cache): Forward declare.
11191 (struct ada_pspace_data): New.
11192 (ada_pspace_data_handle): New static global.
11193 (get_ada_pspace_data, ada_pspace_data_cleanup)
11194 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11195 (cache_space, cache): Delete, now folded inside struct
11196 ada_pspace_data.
11197 (ada_get_symbol_cache): New function.
11198 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11199 implementation.
11200 (_initialize_ada_language): Remove initialization of cache_space.
11201 Move call to observer_attach_inferior_exit up, grouping it
11202 with the other observer registrations inside this function.
11203 Rename command to be more general. Add call to
11204 register_program_space_data_with_cleanup.
11205
143adbbf
JB
112062014-02-10 Joel Brobecker <brobecker@adacore.com>
11207
11208 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11209 ada_new_objfile_observer.
11210 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11211 (_initialize_tasks): Update uses of ada_new_objfile_observer
11212 and ada_tasks_normal_stop_observer.
11213
aa4fb036
JB
112142014-02-10 Joel Brobecker <brobecker@adacore.com>
11215
11216 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11217 returned by the 'Length attribute to integer.
11218
9dee8cc6
JB
112192014-02-10 Joel Brobecker <brobecker@adacore.com>
11220
11221 * ada-lang.c (_initialize_ada_language): Initialize
11222 cache_space obstack.
11223
3d9434b5
JB
112242014-02-10 Joel Brobecker <brobecker@adacore.com>
11225
11226 * ada-lang.c (HASH_SIZE): New macro.
11227 (struct cache_entry): New type.
11228 (cache_space, cache): New static globals.
11229 (ada_clear_symbol_cache, find_entry): New functions.
11230 (lookup_cached_symbol, cache_symbol): Implement.
11231 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11232 (_initialize_ada_language): Attach ada_new_objfile_observer
11233 and ada_free_objfile_observer.
11234
f0c5f9b2
JB
112352014-02-10 Joel Brobecker <brobecker@adacore.com>
11236
11237 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11238 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11239 struct block * parameter.
11240 (ada_lookup_symbol_list_worker): Constify local variable "block".
11241 Remove cast which is no longer necessary.
11242
ed3ef339
DE
112432014-02-10 Doug Evans <xdje42@gmail.com>
11244
11245 Add Guile as an extension language.
11246 * NEWS: Mention Guile scripting.
11247 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11248 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11249 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11250 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11251 (CLIBS): Add GUILE_LIBS.
11252 (install-guile): New rule.
11253 (guile.o): New rule.
11254 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11255 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11256 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11257 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11258 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11259 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11260 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11261 * configure.ac: New option --with-guile.
11262 * configure: Regenerate.
11263 * config.in: Regenerate.
11264 * auto-load.c: Remove #include "python/python.h". Add #include
11265 "gdb/section-scripts.h".
11266 (source_section_scripts): Handle Guile scripts.
11267 (_initialize_auto_load): Add name of Guile objfile script to
11268 scripts-directory help text.
11269 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11270 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11271 (struct breakpoint): New member scm_bp_object.
11272 * defs.h (enum command_control_type): New value guile_control.
11273 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11274 "extension.h".
11275 (show_user): Update comment.
11276 (_initialize_cli_cmds): Update help text for "show user". Update help
11277 text for max-user-call-depth.
11278 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11279 "extension.h".
11280 (multi_line_command_p): Add guile_control.
11281 (print_command_lines): Handle guile_control.
11282 (execute_control_command, recurse_read_control_structure): Ditto.
11283 (process_next_line): Recognize "guile" commands.
11284 * disasm.c (gdb_disassemble_info): Make non-static.
11285 * disasm.h: #include "dis-asm.h".
11286 (struct gdbarch): Add forward decl.
11287 (gdb_disassemble_info): Declare.
11288 * extension.c: #include "guile/guile.h".
11289 (extension_languages): Add guile.
11290 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11291 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11292 * gdbtypes.c (get_unsigned_type_max): New function.
11293 (get_signed_type_minmax): New function.
11294 * gdbtypes.h (get_unsigned_type_max): Declare.
11295 (get_signed_type_minmax): Declare.
11296 * guile/README: New file.
11297 * guile/guile-internal.h: New file.
11298 * guile/guile.c: New file.
11299 * guile/guile.h: New file.
11300 * guile/scm-arch.c: New file.
11301 * guile/scm-auto-load.c: New file.
11302 * guile/scm-block.c: New file.
11303 * guile/scm-breakpoint.c: New file.
11304 * guile/scm-disasm.c: New file.
11305 * guile/scm-exception.c: New file.
11306 * guile/scm-frame.c: New file.
11307 * guile/scm-gsmob.c: New file.
11308 * guile/scm-iterator.c: New file.
11309 * guile/scm-lazy-string.c: New file.
11310 * guile/scm-math.c: New file.
11311 * guile/scm-objfile.c: New file.
11312 * guile/scm-ports.c: New file.
11313 * guile/scm-pretty-print.c: New file.
11314 * guile/scm-safe-call.c: New file.
11315 * guile/scm-string.c: New file.
11316 * guile/scm-symbol.c: New file.
11317 * guile/scm-symtab.c: New file.
11318 * guile/scm-type.c: New file.
11319 * guile/scm-utils.c: New file.
11320 * guile/scm-value.c: New file.
11321 * guile/lib/gdb.scm: New file.
11322 * guile/lib/gdb/boot.scm: New file.
11323 * guile/lib/gdb/experimental.scm: New file.
11324 * guile/lib/gdb/init.scm: New file.
11325 * guile/lib/gdb/iterator.scm: New file.
11326 * guile/lib/gdb/printing.scm: New file.
11327 * guile/lib/gdb/types.scm: New file.
11328 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11329 (VPATH): Add $(GUILE_SRCDIR).
11330 (GUILE_DIR): New variable.
11331 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11332 (all): Add stamp-guile dependency.
11333 (stamp-guile): New rule.
11334 (clean-guile, install-guile, uninstall-guile): New rules.
11335 (install-only): Add install-guile dependency.
11336 (uninstall): Add uninstall-guile dependency.
11337 (clean): Add clean-guile dependency.
11338
ac020ec5
DE
113392014-02-09 Doug Evans <xdje42@gmail.com>
11340
11341 Revert this patch (which I approved, mea culpa).
11342
11343 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11344
11345 * Makefile.in (all-lib): Remove.
11346 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11347
2a081c59
JK
113482014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11349
11350 Fix Python stack corruption.
11351 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11352 gdb_py_longest.
11353
0a6bd22d
MK
113542014-02-08 Mark Kettenis <kettenis@gnu.org>
11355
11356 * Makefile.in (all-lib): Remove.
11357 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11358
1a860409
DE
113592014-02-07 Doug Evans <dje@google.com>
11360
11361 * extension-priv.h (extension_language_script_ops): Add comment.
11362 (extension_language_ops): Add comment.
caf5a491 11363 (active_ext_lang_state): Fix typo in comment.
1a860409 11364
d137e6dc
PA
113652014-02-07 Pedro Alves <palves@redhat.com>
11366
0dcb32c3 11367 PR breakpoints/16292
d137e6dc
PA
11368 * infrun.c (handle_signal_stop) <signal arrives while stepping
11369 over a breakpoint>: Switch back to the stepping thread.
11370
ce6d0892
YQ
113712014-02-07 Yao Qi <yao@codesourcery.com>
11372
11373 * target.c (target_xfer_partial): Return zero if LEN is zero.
11374
2ed4b548
YQ
113752014-02-07 Yao Qi <yao@codesourcery.com>
11376
11377 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11378 (ld_so_xfer_auxv): Likewise.
11379 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11380 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11381 * corelow.c (core_xfer_partial): Likewise.
11382 * ctf.c (ctf_xfer_partial): Likewise.
11383 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11384 (darwin_xfer_partial): Likewise.
11385 * exec.c (exec_xfer_partial): Likewise.
11386 * gnu-nat.c (gnu_xfer_partial): Likewise.
11387 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11388 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11389 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11390 * linux-nat.c (linux_xfer_siginfo): Likewise.
11391 (linux_proc_xfer_spu): Likewise.
11392 * procfs.c (procfs_xfer_partial): Likewise.
11393 * record-full.c (record_full_xfer_partial): Likewise.
11394 (record_full_core_xfer_partial): Likewise.
11395 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11396 * remote.c (remote_write_qxfer): Likewise.
11397 (remote_write_qxfer, remote_read_qxfer): Likewise.
11398 (remote_xfer_partial): Likewise.
11399 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11400 (rs6000_xfer_shared_libraries): Likewise.
11401 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11402 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11403 (spu_xfer_partial): Likewise.
11404 * target.c (memory_xfer_partial_1): Likewise.
11405 * tracepoint.c (tfile_xfer_partial): Likewise.
11406 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11407 (windows_xfer_partial): Likewise.
11408
c09f20e4
YQ
114092014-02-07 Yao Qi <yao@codesourcery.com>
11410
11411 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11412 comments.
11413 (core_xfer_shared_libraries_aix): Likewise.
11414 * gdbarch.c, gdbarch.h: Regenerated.
11415 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11416 ULONGEST. Change 'len_avail' type to ULONGEST.
11417 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11418 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11419 declaration.
11420 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11421
8635b3bf
YQ
114222014-02-07 Yao Qi <yao@codesourcery.com>
11423
11424 * corefile.c (memory_error): Get 'exception' from ERR and pass
11425 'exception' to throw_error.
11426
6dddc817
DE
114272014-02-06 Doug Evans <xdje42@gmail.com>
11428
11429 * configure.ac (libpython checking): Remove all but python.o from
11430 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11431 * configure: Regenerate.
11432
11433 * Makefile.in (SFILES): Add extension.c.
11434 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11435 (COMMON_OBS): Add extension.o.
11436 * extension.h: New file.
11437 * extension-priv.h: New file.
11438 * extension.c: New file.
11439
11440 * python/python-internal.h: #include "extension.h".
11441 (gdbpy_auto_load_enabled): Declare.
11442 (gdbpy_apply_val_pretty_printer): Declare.
11443 (gdbpy_apply_frame_filter): Declare.
11444 (gdbpy_preserve_values): Declare.
11445 (gdbpy_breakpoint_cond_says_stop): Declare.
11446 (gdbpy_breakpoint_has_cond): Declare.
11447 (void source_python_script_for_objfile): Delete.
11448 * python/python.c: #include "extension-priv.h".
11449 Delete inclusion of "observer.h".
11450 (extension_language_python): Moved here and renamed from
11451 script_language_python in py-auto-load.c.
11452 Redefined to be of type extension_language_defn.
11453 (python_extension_script_ops): New global.
11454 (python_extension_ops): New global.
11455 (struct python_env): New member previous_active.
11456 (restore_python_env): Call restore_active_ext_lang.
11457 (ensure_python_env): Call set_active_ext_lang.
11458 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11459 New arg extlang.
11460 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11461 New arg extlang.
11462 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11463 New arg extlang.
11464 (gdbpy_eval_from_control_command): Renamed from
11465 eval_python_from_control_command, made static. New arg extlang.
11466 (gdbpy_source_script) Renamed from source_python_script, made static.
11467 New arg extlang.
11468 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11469 result to int. New arg extlang.
11470 (gdbpy_source_objfile_script): Renamed from
11471 source_python_script_for_objfile, made static. New arg extlang.
11472 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11473 static. New args extlang, extlang_printers. Change result type to
11474 "void".
11475 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11476 static. New arg extlang. Rename arg printers to extlang_printers
11477 and change type to ext_lang_type_printers *.
11478 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11479 static. Replace argument arg with extlang, extlang_printers.
11480 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11481 (!HAVE_PYTHON, source_python_script): Delete.
11482 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11483 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11484 (!HAVE_PYTHON, start_type_printers): Delete.
11485 (!HAVE_PYTHON, apply_type_printers): Delete.
11486 (!HAVE_PYTHON, free_type_printers): Delete.
11487 (_initialize_python): Delete call to observer_attach_before_prompt.
11488 (finalize_python): Set/restore active extension language.
11489 (gdbpy_finish_initialization) Renamed from
11490 finish_python_initialization, made static. New arg extlang.
11491 (gdbpy_initialized): New function.
11492 * python/python.h: #include "extension.h". Delete #include
11493 "value.h", "mi/mi-cmds.h".
11494 (extension_language_python): Declare.
11495 (GDBPY_AUTO_FILE_NAME): Delete.
11496 (enum py_bt_status): Moved to extension.h and renamed to
11497 ext_lang_bt_status.
11498 (enum frame_filter_flags): Moved to extension.h.
11499 (enum py_frame_args): Moved to extension.h and renamed to
11500 ext_lang_frame_args.
11501 (finish_python_initialization): Delete.
11502 (eval_python_from_control_command): Delete.
11503 (source_python_script): Delete.
11504 (apply_val_pretty_printer): Delete.
11505 (apply_frame_filter): Delete.
11506 (preserve_python_values): Delete.
11507 (gdbpy_script_language_defn): Delete.
11508 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11509 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11510
11511 * auto-load.c: #include "extension.h".
11512 (GDB_AUTO_FILE_NAME): Delete.
11513 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11514 (script_language_gdb): Delete, moved to extension.c and renamed to
11515 extension_language_gdb.
11516 (source_gdb_script_for_objfile): Delete.
11517 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11518 (loaded_script): Change type of language member to
11519 struct extension_language_defn *.
11520 (init_loaded_scripts_info): Initialize
11521 unsupported_script_warning_printed.
11522 (maybe_add_script): Make static. Change type of language arg to
11523 struct extension_language_defn *.
11524 (clear_section_scripts): Reset unsupported_script_warning_printed.
11525 (auto_load_objfile_script_1): Rewrite to use extension language API.
11526 (auto_load_objfile_script): Make public. Remove support-compiled-in
11527 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11528 (source_section_scripts): Rewrite to use extension language API.
11529 (load_auto_scripts_for_objfile): Rewrite to use
11530 auto_load_scripts_for_objfile.
11531 (collect_matching_scripts_data): Change type of language member to
11532 struct extension_language_defn *.
11533 (auto_load_info_scripts): Change type of language arg to
11534 struct extension_language_defn *.
11535 (unsupported_script_warning_print): New function.
11536 (script_not_found_warning_print): Make static.
11537 (_initialize_auto_load): Rewrite construction of scripts-directory
11538 help.
11539 * auto-load.h (struct objfile): Add forward decl.
11540 (struct script_language): Delete.
11541 (struct auto_load_pspace_info): Add forward decl.
11542 (struct extension_language_defn): Add forward decl.
11543 (maybe_add_script): Delete.
11544 (auto_load_objfile_script): Declare.
11545 (script_not_found_warning_print): Delete.
11546 (auto_load_info_scripts): Update prototype.
11547 (auto_load_gdb_scripts_enabled): Declare.
11548 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11549 auto_load_python_scripts_enabled and made public.
11550 (script_language_python): Delete, moved to python.c.
11551 (gdbpy_script_language_defn): Delete.
11552 (info_auto_load_python_scripts): Update to use
11553 extension_language_python.
11554
11555 * breakpoint.c (condition_command): Replace call to
11556 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11557 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11558 with call to breakpoint_ext_lang_cond_says_stop.
11559 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11560 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11561 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11562 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11563 New arg slang.
11564 (local_setattro): Print name of extension language with existing
11565 stop condition.
11566
11567 * valprint.c (val_print, value_print): Update to call
11568 apply_ext_lang_val_pretty_printer.
11569 * cp-valprint.c (cp_print_value): Update call to
11570 apply_ext_lang_val_pretty_printer.
11571 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11572 (gdbpy_apply_val_pretty_printer): Renamed from
11573 apply_val_pretty_printer. New arg extlang.
11574 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11575
11576 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11577 extension language API.
11578 * cli/cli-script.c (execute_control_command): Update to call
11579 eval_ext_lang_from_control_command.
11580
11581 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11582 enum ext_lang_bt_status values. Update call to
11583 apply_ext_lang_frame_filter.
11584 (mi_cmd_stack_list_locals): Ditto.
11585 (mi_cmd_stack_list_args): Ditto.
11586 (mi_cmd_stack_list_variables): Ditto.
11587 * mi/mi-main.c: Delete #include "python/python-internal.h".
11588 Add #include "extension.h".
11589 (mi_cmd_list_features): Replace reference to python internal variable
11590 gdb_python_initialized with call to ext_lang_initialized_p.
11591
11592 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11593 Update to use enum ext_lang_frame_args. Update to call
11594 apply_ext_lang_frame_filter.
11595 * python/py-framefilter.c (extract_sym): Update to use enum
11596 ext_lang_bt_status.
11597 (extract_value, py_print_type, py_print_value): Ditto.
11598 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11599 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11600 (py_print_frame): Ditto.
11601 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11602 New arg extlang. Update to use enum ext_lang_bt_status.
11603
11604 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11605 finish_python_initialization. Replace with call to
11606 finish_ext_lang_initialization.
11607
11608 * typeprint.c (do_free_global_table): Update to call
11609 free_ext_lang_type_printers.
11610 (create_global_typedef_table): Update to call
11611 start_ext_lang_type_printers.
11612 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11613 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11614 (type_print_options): Change type of global_printers from "void *"
11615 to "struct ext_lang_type_printers *".
11616
11617 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11618 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11619 (gdbpy_preserve_values): Renamed from preserve_python_values.
11620 New arg extlang.
11621 (!HAVE_PYTHON, preserve_python_values): Delete.
11622
11623 * utils.c (quit_flag): Delete, moved to extension.c.
11624 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11625 extension.c.
11626
11627 * eval.c: Delete #include "python/python.h".
11628 * main.c: Delete #include "python/python.h".
11629
11630 * defs.h: Update comment.
11631
6af79985
JB
116322014-02-06 Joel Brobecker <brobecker@adacore.com>
11633
11634 GDB 7.7 released.
11635
12c5175d
MK
116362014-02-05 Mark Kettenis <kettenis@gnu.org>
11637
11638 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11639 defined.
11640
8dc5b319
YQ
116412014-02-05 Yao Qi <yao@codesourcery.com>
11642
11643 * remote.c (remote_pass_signals): Remove local 'buf' and use
11644 rs->buf.
11645 (remote_program_signals): Likewise.
11646
de7b2893
YQ
116472014-02-05 Yao Qi <yao@codesourcery.com>
11648
11649 * ctf.c: Include "inferior.h" and "gdbthread.h".
11650 (CTF_PID): A new macro.
11651 (ctf_open): Call inferior_appeared and add_thread_silent.
11652 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11653 (ctf_thread_alive): New function.
11654 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11655
66d032ac
YQ
116562014-02-05 Yao Qi <yao@codesourcery.com>
11657
11658 Revert this patch:
11659
11660 2013-05-24 Yao Qi <yao@codesourcery.com>
11661
11662 * tracepoint.c (TFILE_PID): Remove.
11663 (tfile_open): Don't add thread and inferior.
11664 (tfile_close): Don't set 'inferior_ptid'. Don't call
11665 exit_inferior_silent.
11666 (tfile_thread_alive): Remove.
11667 (init_tfile_ops): Don't set field 'to_thread_alive' of
11668 tfile_ops.
11669
f4ccffad
CE
116702014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11671
11672 * remote.c (remote_start_remote): Call remote_check_symbols even
11673 if only symbol-file (not file) has been given.
11674
591a12a1
UW
116752014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11676
11677 * gdbarch.sh (skip_entrypoint): New callback.
11678 * gdbarch.c, gdbarch.h: Regenerate.
11679 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11680 * infrun.c (fill_in_stop_func): Likewise.
11681 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11682 (ppc_elfv2_elf_make_msymbol_special): New function.
11683 (ppc_elfv2_skip_entrypoint): Likewise.
11684 (ppc_linux_init_abi): Install them for ELFv2.
11685
cc0e89c5
UW
116862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11687
11688 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11689 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11690 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11691 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11692 structures returned in GPRs.
11693
52f548e4
UW
116942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11695
11696 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11697 offset to the stack parameter list for the ELFv2 ABI.
11698
d4094b6a
UW
116992014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11700
11701 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11702 set_gdbarch_convert_from_func_ptr_addr and
11703 set_gdbarch_elf_make_msymbol_special for ELFv1.
11704 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11705 function descriptors on ELFv1.
11706 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11707 set up r12 at function entry.
11708
cd453cd0
UW
117092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11710
11711 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11712 (struct gdbarch_tdep): New member elf_abi.
11713
11714 * rs6000-tdep.c: Include "elf/ppc64.h".
11715 (rs6000_gdbarch_init): Detect ELF ABI version.
11716
0ff3e01f
UW
117172014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11718
11719 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11720 within a register pair holding a DFP 128-bit value on little-endian.
11721 (ppc64_sysv_abi_return_value_base): Likewise.
11722 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11723 (dfp_pseudo_register_write): Likewise.
11724
5b757e5d
UW
117252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11726
11727 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11728 offset on little-endian when passing _Decimal32.
11729 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11730
084ee545
UW
117312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11732
11733 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11734 of the overlapped FP register within the VSX register on little-
11735 endian platforms.
11736 (efpr_pseudo_register_write): Likewise.
11737
d63167af
UW
117382014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11739
11740 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11741 offset on little-endian when passing small structures.
11742
e765b44c
UW
117432014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11744
11745 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11746 (struct ppc64_sysv_argpos): New data structure.
11747 (ppc64_sysv_abi_push_float): Remove.
11748 (ppc64_sysv_abi_push_val): New function.
11749 (ppc64_sysv_abi_push_integer): Likewise.
11750 (ppc64_sysv_abi_push_freg): Likewise.
11751 (ppc64_sysv_abi_push_vreg): Likewise.
11752 (ppc64_sysv_abi_push_param): Likewise.
11753 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11754 (ppc64_sysv_abi_return_value_base): New function.
11755 (ppc64_sysv_abi_return_value): Refactor to use it.
11756
36c24d95
UW
117572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11758
11759 * NEWS: Document new target powerpc64le-*-linux*.
11760
26fd9228
MK
117612014-02-04 Mark Kettenis <kettenis@gnu.org>
11762
11763 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11764 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11765 core dumps.
11766 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11767 register set used in ELF core dumps. Add floating-point register set.
11768
c5bb7362
KB
117692014-02-03 Kevin Buettner <kevinb@redhat.com>
11770
74228e77 11771 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11772 dwarf2_to_gdb[] table using symbolic constants. Adjust
11773 penultimate entry from number representing the PC register
11774 to symbolic constant representing the MDR register. Add
11775 constant for the PC register to the end of the table.
11776
af09351e
MK
117772014-02-03 Mark Kettenis <kettenis@gnu.org>
11778
11779 * bsd-kvm.c: Include <sys/param.h>
11780
8507e05d
MK
117812014-02-03 Mark Kettenis <kettenis@gnu.org>
11782
11783 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11784
ae56bfb8
JB
117852014-01-31 Joel Brobecker <brobecker@adacore.com>
11786
11787 * ada-lang.h (clear_ada_sym_cache): Delete.
11788
718ee4dc
UW
117892014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11790
11791 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11792
401e27fd
JM
117932014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11794
11795 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11796 the sigreturn register save area only if the syscall is
11797 sigreturn.
11798
a7c88acd
JB
117992014-01-29 Joel Brobecker <brobecker@adacore.com>
11800
11801 * valops.c (value_slice): Minor reformatting.
11802
fa0079ea
UW
118032014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11804
11805 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11806
c6044dd1
JB
118072014-01-28 Joel Brobecker <brobecker@adacore.com>
11808
11809 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11810 New static globals.
11811 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11812 (ada_ignore_descriptive_types_p): New static global.
11813 (find_parallel_type_by_descriptive_type): Return immediately
11814 if ada_ignore_descriptive_types_p is set.
11815 (_initialize_ada_language): Register new commands "maintenance
11816 set ada", "maintenance show ada", "maintenance set ada
11817 ignore-descriptive-types" and "maintenance show ada
11818 ignore-descriptive-types".
11819 * NEWS: Add entry for new "maint ada set/show
11820 ignore-descriptive-types" commands.
11821
568e808b
MM
118222014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11823
11824 * record-btrace.c (record_btrace_close): Call btrace_teardown
11825 for all threads.
11826
467d141b
JB
118272014-01-27 Joel Brobecker <brobecker@adacore.com>
11828
11829 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11830 "ui-out.h".
11831
fb151210
JB
118322014-01-27 Joel Brobecker <brobecker@adacore.com>
11833
11834 * ada-typeprint (type_is_full_subrange_of_target_type):
11835 New function.
11836 (print_range): Add parameter bounds_prefered_p. If not set,
11837 try printing range types using the name of their base type.
11838 (print_range_type): Add parameter bounds_prefered_p.
11839 Use it in call to print_range.
11840 (print_array_type, ada_print_type): Update calls to print_range
11841 and print_range_type.
11842
aba02109
JB
118432014-01-27 Joel Brobecker <brobecker@adacore.com>
11844
11845 * ada-typeprint.c (print_array_type, print_choices, print_range)
11846 (print_range_bound, print_dynamic_range_bound, print_range_type):
11847 Remove declaration.
11848
e62e21fd
JB
118492014-01-27 Joel Brobecker <brobecker@adacore.com>
11850
11851 * ada-typeprint.c (print_range): Add missing empty line
11852 after local declaration.
11853
859cf5d1
JB
118542014-01-27 Joel Brobecker <brobecker@adacore.com>
11855
11856 * ada-valprint.c (print_optional_low_bound): Get index_type's
11857 target type for as long as it is a TYPE_CODE_RANGE.
11858
25790f6f
JB
118592014-01-27 Joel Brobecker <brobecker@adacore.com>
11860
11861 * procfs.c (procfs_make_note_section): Remove assertion and
11862 associated comment.
11863
6b6aa828
YQ
118642014-01-24 Yao Qi <yao@codesourcery.com>
11865
11866 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11867 * corelow.c (get_core_siginfo): Likewise.
11868
5d6df423
YQ
118692014-01-24 Yao Qi <yao@codesourcery.com>
11870
11871 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11872 ULONGEST. Don't check 'len' is negative.
11873 (remote_write_bytes): Change type of 'len' to ULONGEST.
11874
83b645b8
TT
118752014-01-23 Tom Tromey <tromey@redhat.com>
11876
11877 PR python/16485:
11878 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11879 Handle exception from frame.block.
11880 (FrameVars.fetch_frame_locals): Likewise.
11881
0740f8d8
TT
118822014-01-23 Tom Tromey <tromey@redhat.com>
11883
11884 PR python/16487:
11885 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11886 on a NULL pointer. Move "goto error" to correct place.
11887
21909fa1
TT
118882014-01-23 Tom Tromey <tromey@redhat.com>
11889
11890 PR python/16491:
11891 * python/py-framefilter.c (apply_frame_filter): Call
11892 ensure_python_env after computing gdbarch.
11893
17fde6d0
YQ
118942014-01-23 Yao Qi <yao@codesourcery.com>
11895
11896 * target.c (raw_memory_xfer_partial): Change argument type
11897 from void * to gdb_byte *.
11898 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11899
87ce2a04
DE
119002014-01-22 Doug Evans <dje@google.com>
11901
11902 New gdbserver option --debug-format=timestamp.
11903 * NEWS: Mention it.
11904
237b092b
AA
119052014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11906
11907 * syscalls/s390x-linux.xml: New file.
11908 * syscalls/s390-linux.xml: New file.
11909 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11910 (XML_SYSCALL_FILENAME_S390X): Likewise.
11911 (op_svc): New enum value for SVC opcode.
11912 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11913 (s390_linux_get_syscall_number): New function.
11914 (s390_gdbarch_init): Register '*get_syscall_number' and the
11915 syscall xml file name.
11916 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11917 "s390-linux.xml" and "s390x-linux.xml".
11918 * NEWS: Announce new feature.
11919
54bff650
BS
119202014-01-22 Baruch Siach <baruch@tkos.co.il>
11921
11922 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11923
14e361d7
PA
119242014-01-22 Pedro Alves <palves@redhat.com>
11925
11926 * xtensa-config.c: Include defs.h.
11927
46bbb3ed
JB
119282014-01-22 Joel Brobecker <brobecker@adacore.com>
11929
11930 * common/common-utils.h: Add "ARI:" comment beside __func__
11931 reference.
11932
3a80edfc
JB
119332014-01-22 Joel Brobecker <brobecker@adacore.com>
11934
11935 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11936 documentation a bit.
11937
4869db5e
RM
119382014-01-21 Roland McGrath <mcgrathr@google.com>
11939
11940 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11941 * configure: Regenerate.
11942 * aclocal.m4: Regenerate.
11943 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11944 New substituted variables.
11945 (install-strip): New target.
11946 (INSTALL_SCRIPT): New substituted variable.
11947 (FLAGS_TO_PASS): Add it.
11948 (install-only): Use $(INSTALL_SCRIPT) rather than
11949 $(INSTALL_PROGRAM) for gcore.
11950
9ea4267d
TT
119512014-01-20 Tom Tromey <tromey@redhat.com>
11952
11953 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11954 together.
11955
1f2bdf09
TT
119562014-01-20 Tom Tromey <tromey@redhat.com>
11957
11958 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11959 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11960 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11961 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11962 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11963 (struct cmd_list_element) <flags>: Remove.
11964 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11965 doc_allocated>: New fields.
11966 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11967 bitfields.
11968 * maint.c (maintenance_do_deprecate): Update.
11969 * top.c (execute_command): Update.
11970
e671835b
BS
119712014-01-20 Baruch Siach <baruch@tkos.co.il>
11972
11973 * xtensa-linux-nat.c: Include asm/ptrace.h.
11974
50367cd2
IB
119752014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11976
11977 * Makefile.in (SFILES): Add d-support.c.
11978 (COMMON_OBS): Add d-support.o.
11979 * d-lang.h (d_parse_symbol): Add comment, now defined in
11980 d-support.c.
11981 * d-lang.c (parse_call_convention)
11982 (parse_attributes, parse_function_types)
11983 (parse_function_args, parse_type, parse_identifier)
11984 (call_convention_p, d_parse_symbol): Move functions to ...
11985 * d-support.c: ... New file.
11986
ec9f644a
IB
119872014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11988
11989 * d-lang.h (d_parse_symbol): Add declaration.
11990 * d-lang.c (extract_identifiers)
11991 (extract_type_info): Remove functions.
11992 (parse_call_convention, parse_attributes)
11993 (parse_function_types, parse_function_args)
11994 (parse_type, parse_identifier, call_convention_p)
11995 (d_parse_symbol): New functions.
11996 (d_demangle): Use d_parse_symbol to demangle D symbols.
11997
94b1b47e
IB
119982014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11999
12000 * d-lang.h (struct builtin_d_type): New data type.
12001 (builtin_d_type): Add declaration.
12002 * d-lang.c (d_language_arch_info, build_d_types)
12003 (builtin_d_type): New functions.
12004 (enum d_primitive_types): New data type.
12005 (d_language_defn): Change c_language_arch_info to
12006 d_language_arch_info.
12007 (d_type_data): New static variable.
12008 (_initialize_d_language): Initialize d_type_data.
12009
63778547
IB
120102014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12011
12012 * d-lang.h (d_main_name): Add declaration.
12013 * d-lang.c (d_main_name): New function.
12014 * symtab.c (find_main_name): Add call to d_main_name.
12015
3271ba66
IB
120162014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12017
12018 * d-lang.c (d_language_defn): Change macro_expansion_c to
12019 macro_expansion_no.
12020
d36b3012
IB
120212014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12022
12023 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12024
c90a6fb7
SDJ
120252014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12026
12027 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12028 gdb_exception" declaration.
12029 * remote.c (getpkt_or_notif_sane): Likewise.
12030
749234e5
DE
120312014-01-17 Doug Evans <dje@google.com>
12032
12033 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12034 function, contents of dirnames_to_char_ptr_vec_append moved here.
12035 (delim_string_to_char_ptr_vec): New function.
12036 (dirnames_to_char_ptr_vec_append): Rewrite.
12037 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12038
df049a58
DE
120392014-01-17 Doug Evans <dje@google.com>
12040
12041 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12042 and moved here ...
12043 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12044 #include "common-utils.h".
12045 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12046 * common/vec.h (VEC_ASSERT_PASS): Update.
12047 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12048 (MACH_CHECK_ERROR): Update.
12049
69f97648
SM
120502014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12051
12052 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12053 comments.
12054 * gdbarch.h: Regenerate.
12055
98b1cfdc
TT
120562014-01-16 Tom Tromey <tromey@redhat.com>
12057
12058 * value.c (struct value) <regnum>: Move earlier.
12059
77a19445
TT
120602014-01-16 Tom Tromey <tromey@redhat.com>
12061
12062 * remote.c (extended_remote_create_inferior): Rename from
12063 extended_remote_create_inferior_1. Add "ops" argument. Remove
12064 old implementation.
12065
62261490
PA
120662014-01-16 Pedro Alves <palves@redhat.com>
12067
12068 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12069 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12070 the backchain.
12071
4d65956b
DE
120722014-01-16 Doug Evans <dje@google.com>
12073
12074 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12075
52834460
MM
120762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12077
12078 * btrace.h (btrace_thread_flag): New.
12079 (struct btrace_thread_info) <flags>: New.
12080 * record-btrace.c (record_btrace_resume_thread)
12081 (record_btrace_find_thread_to_move, btrace_step_no_history)
12082 (btrace_step_stopped, record_btrace_start_replaying)
12083 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12084 (record_btrace_find_resume_thread): New.
12085 (record_btrace_resume, record_btrace_wait): Extend.
12086 (record_btrace_can_execute_reverse): New.
12087 (record_btrace_open): Fail in non-stop mode.
12088 (record_btrace_set_replay): Split into this, ...
12089 (record_btrace_stop_replaying): ... this, ...
12090 (record_btrace_clear_histories): ... and this.
12091 (init_record_btrace_ops): Init to_can_execute_reverse.
12092 * NEWS: Announce it.
12093
118e6252
MM
120942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12095
12096 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12097 (forward_target_decr_pc_after_break)
12098 (target_decr_pc_after_break): New.
12099 * target.c (forward_target_decr_pc_after_break)
12100 (target_decr_pc_after_break): New.
12101 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12102 instead of gdbarch_decr_pc_after_break.
12103 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12104 instead of gdbarch_decr_pc_after_break.
12105 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12106 instead of gdbarch_decr_pc_after_break.
12107 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12108 instead of gdbarch_decr_pc_after_break.
12109 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12110 instead of gdbarch_decr_pc_after_break.
12111 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12112 instead of gdbarch_decr_pc_after_break.
12113
6e07b1d2
MM
121142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12115
12116 * btrace.c: Include regcache.h.
12117 (btrace_add_pc): New.
12118 (btrace_enable): Call btrace_add_pc.
12119 (btrace_is_empty): New.
12120 * btrace.h (btrace_is_empty): New.
12121 * record-btrace.c (require_btrace, record_btrace_info): Call
12122 btrace_is_empty.
12123
969c39fb
MM
121242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12125
12126 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12127 Support delta reads.
12128 (linux_disable_btrace): Change return type.
12129 * common/linux-btrace.h (linux_read_btrace): Change parameters
12130 and return type to allow error reporting. Update users.
12131 (linux_disable_btrace): Change return type. Update users.
12132 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12133 New.
12134 (btrace_error): New.
12135 (btrace_block) <begin>: Comment on BEGIN == 0.
12136 * btrace.c (btrace_compute_ftrace): Start from the end of
12137 the current trace.
12138 (btrace_stitch_trace, btrace_clear_history): New.
12139 (btrace_fetch): Read delta trace, return if replaying.
12140 (btrace_clear): Move clear history code to btrace_clear_history.
12141 (parse_xml_btrace): Throw an error if parsing failed.
12142 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12143 and return type to allow error reporting.
12144 (target_read_btrace): Change parameters and return type to allow
12145 error reporting.
12146 * target.c (target_read_btrace): Update.
12147 * remote.c (remote_read_btrace): Support delta reads. Pass
12148 errors on.
12149 * NEWS: Announce it.
12150
0b722aec
MM
121512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12152
12153 * record.h (record_btrace_frame_unwind)
12154 (record_btrace_tailcall_frame_unwind): New declarations.
12155 * dwarf2-frame: Include record.h
12156 (dwarf2_frame_cfa): Throw an error for btrace frames.
12157 * record-btrace.c: Include hashtab.h.
12158 (btrace_get_bfun_name): New.
12159 (btrace_call_history): Call btrace_get_bfun_name.
12160 (struct btrace_frame_cache): New.
12161 (bfcache): New.
12162 (bfcache_hash, bfcache_eq, bfcache_new): New.
12163 (btrace_get_frame_function): New.
12164 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12165 (record_btrace_frame_this_id): Compute own id.
12166 (record_btrace_frame_prev_register): Provide PC, throw_error
12167 for all other registers.
12168 (record_btrace_frame_sniffer): Detect btrace frames.
12169 (record_btrace_tailcall_frame_sniffer): New.
12170 (record_btrace_frame_dealloc_cache): New.
12171 (record_btrace_frame_unwind): Add new functions.
12172 (record_btrace_tailcall_frame_unwind): New.
12173 (_initialize_record_btrace): Allocate cache.
12174 * btrace.c (btrace_clear): Call reinit_frame_cache.
12175 * NEWS: Announce it.
12176
066ce621
MM
121772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12178
12179 * record-btrace.c (record_btrace_set_replay)
12180 (record_btrace_goto_begin, record_btrace_goto_end)
12181 (record_btrace_goto): New.
12182 (init_record_btrace_ops): Initialize them.
12183 * NEWS: Announce it.
12184
e2887aa3
MM
121852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12186
12187 * record-btrace.c (record_btrace_find_new_threads)
12188 (record_btrace_thread_alive): New.
12189 (init_record_btrace_ops): Initialize to_find_new_threads and
12190 to_thread_alive.
12191
b2f4cfde
MM
121922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12193
12194 * record-btrace.c (record_btrace_resume): New.
12195 (record_btrace_wait): New.
12196 (init_record_btrace_ops): Initialize to_wait and to_resume.
12197
633785ff
MM
121982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12199
12200 * record-btrace.c (record_btrace_xfer_partial)
12201 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12202 (record_btrace_allow_memory_access): New.
12203 (init_record_btrace_ops): Initialize new methods.
12204 * target.c (raw_memory_xfer_partial): Bail out if target reports
12205 that this memory is not available.
12206
3db08215
MM
122072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12208
12209 * target.h (target_ops) <to_insert_breakpoint>
12210 <to_remove_breakpoint>: Add target_ops parameter.
12211 (forward_target_insert_breakpoint): New.
12212 (forward_target_remove_breakpoint): New.
12213 (memory_remove_breakpoint, memory_insert_breakpoint):
12214 Add target_ops parameter.
12215 * target.c (target_insert_breakpoint): Split into this and ...
12216 (forward_target_insert_breakpoint): ... this.
12217 (target_remove_breakpoint): Split into this and ...
12218 (forward_target_remove_breakpoint): ... this.
12219 (debug_to_insert_breakpoint): Add target_ops parameter.
12220 Call forward_target_insert_breakpoint.
12221 (debug_to_remove_breakpoint): Add target_ops parameter.
12222 Call forward_target_remove_breakpoint.
12223 (update_current_target): Do not inherit or default to_insert_breakpoint
12224 and to_remove_breakpoint.
12225 * corelow.c (ignore): Add target_ops parameter.
12226 * exec.c (ignore): Add target_ops parameter.
12227 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12228 Add target_ops parameter.
12229 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12230 Add target_ops parameter.
12231 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12232 Add target_ops parameter.
12233 * record-full.c (record_full_beneath_to_insert_breakpoint)
12234 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12235 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12236 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12237 (record_full_core_remove_breakpoint): Add target_ops parameter.
12238 Update users.
12239 (record_full_beneath_to_insert_breakpoint_ops)
12240 (record_full_beneath_to_remove_breakpoint_ops)
12241 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12242 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12243 tmp_to_remove_breakpoint_ops,
12244 record_full_beneath_to_insert_breakpoint_ops, and
12245 record_full_beneath_to_remove_breakpoint_ops.
12246 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12247 (m32r_remove_breakpoint): Add target_ops parameter.
12248 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12249 Add target_ops parameter.
12250 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12251 Add target_ops parameter.
12252
cecac1ab
MM
122532014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12254 Markus Metzger <markus.t.metzger@intel.com>
12255
12256 * record-btrace.c: Include frame-unwind.h.
12257 (record_btrace_frame_unwind_stop_reason)
12258 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12259 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12260 New.
12261 (init_record_btrace_ops): Install it.
12262
824344ca
MM
122632014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12264
12265 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12266 get_prev_frame_1.
12267
32261e52
MM
122682014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12269
12270 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12271 earlier.
12272
ea001bdc
MM
122732014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12274
12275 * frame-unwind.c: Include target.h.
12276 (frame_unwind_try_unwinder): New function with code from ...
12277 (frame_unwind_find_by_frame): ... here. New variable
12278 unwinder_from_target, call also target_get_unwinder)
12279 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12280 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12281 * target.h (struct target_ops): New fields to_get_unwinder and
12282 to_get_tailcall_unwinder.
12283 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12284
1f3ef581
MM
122852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12286
12287 * record-btrace.c (record_btrace_fetch_registers)
12288 (record_btrace_store_registers)
12289 (record_btrace_to_prepare_to_store): New.
12290 (init_record_btrace_ops): Add the above.
12291
f32dbf8c
MM
122922014-01-16 Tom Tromey <tromey@redhat.com>
12293
12294 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12295 * target.h (struct target_ops) <to_prepare_to_store>: Add
12296 argument.
12297 (target_prepare_to_store): Add argument.
12298 * target.c (debug_to_prepare_to_store): Add argument.
12299 (update_current_target): Update.
12300 * remote.c (remote_prepare_to_store): Add 'self' argument.
12301 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12302 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12303 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12304 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12305 argument.
12306 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12307 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12308 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12309 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12310 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12311
07bbe694
MM
123122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12313
12314 * btrace.h (replay) <replay>: New.
12315 (btrace_is_replaying): New.
12316 * btrace.c (btrace_clear): Free replay iterator.
12317 (btrace_is_replaying): New.
12318 * record-btrace.c (record_btrace_is_replaying): New.
12319 (record_btrace_info): Print insn number if replaying.
12320 (record_btrace_insn_history): Start at replay position.
12321 (record_btrace_call_history): Start at replay position.
12322 (init_record_btrace_ops): Init to_record_is_replaying.
12323
0688d04e
MM
123242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12325
12326 * record-btrace.c (record_btrace_insn_history_range): Include
12327 end.
12328 (record_btrace_insn_history_from): Adjust range.
12329 (record_btrace_call_history_range): Include
12330 end.
12331 (record_btrace_call_history_from): Adjust range.
12332 * NEWS: Announce changes.
12333
8710b709
MM
123342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12335
12336 * record.h (enum record_print_flag)
12337 <record_print_indent_calls>: New.
12338 * record.c (get_call_history_modifiers): Recognize /c modifier.
12339 (_initialize_record): Document /c modifier.
12340 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12341 Reorder fields. Optionally indent the function name. Update
12342 all users.
12343 * NEWS: Announce changes.
12344
d0fa7535
MM
123452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12346
12347 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12348
5de9129b
MM
123492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12350
12351 * btrace.c (ftrace_new_function): Start counting at one.
12352 * record-btrace.c (record_btrace_info): Adjust number of calls
12353 and insns.
12354 * NEWS: Announce it.
12355
7acbe133
MM
123562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12357
12358 * record-btrace.c (btrace_call_history_insn_range): Print
12359 insn range as [begin, end].
12360
23a7fe75
MM
123612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12362
12363 * btrace.h (struct btrace_func_link): New.
12364 (enum btrace_function_flag): New.
12365 (struct btrace_inst): Rename to ...
12366 (struct btrace_insn): ...this. Update all users.
12367 (struct btrace_func) <ibegin, iend>: Remove.
12368 (struct btrace_func_link): New.
12369 (struct btrace_func): Rename to ...
12370 (struct btrace_function): ...this. Update all users.
12371 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12372 (number, level, flags>: New.
12373 (struct btrace_insn_iterator): Rename to ...
12374 (struct btrace_insn_history): ...this.
12375 Update all users.
12376 (struct btrace_insn_iterator, btrace_call_iterator): New.
12377 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12378 (struct btrace_target_info) <begin, end, level>
12379 <insn_history, call_history>: New.
12380 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12381 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12382 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12383 (btrace_call_number, btrace_call_begin, btrace_call_end)
12384 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12385 (btrace_find_function_by_number, btrace_set_insn_history)
12386 (btrace_set_call_history): New.
12387 * btrace.c (btrace_init_insn_iterator)
12388 (btrace_init_func_iterator, compute_itrace): Remove.
12389 (ftrace_print_function_name, ftrace_print_filename)
12390 (ftrace_skip_file): Change
12391 parameter to const.
12392 (ftrace_init_func): Remove.
12393 (ftrace_debug): Use new btrace_function fields.
12394 (ftrace_function_switched): Also consider gaining and
12395 losing symbol information).
12396 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12397 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12398 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12399 New.
12400 (ftrace_new_function): Move. Remove debug print.
12401 (ftrace_update_lines, ftrace_update_insns): New.
12402 (ftrace_update_function): Check for call, ret, and jump.
12403 (compute_ftrace): Renamed to ...
12404 (btrace_compute_ftrace): ...this. Rewritten to compute call
12405 stack.
12406 (btrace_fetch, btrace_clear): Updated.
12407 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12408 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12409 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12410 (btrace_call_number, btrace_call_begin, btrace_call_end)
12411 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12412 (btrace_find_function_by_number, btrace_set_insn_history)
12413 (btrace_set_call_history): New.
12414 * record-btrace.c (require_btrace): Use new btrace thread
12415 info fields.
12416 (record_btrace_info, btrace_insn_history)
12417 (record_btrace_insn_history, record_btrace_insn_history_range):
12418 Use new btrace thread info fields and new iterator.
12419 (btrace_func_history_src_line): Rename to ...
12420 (btrace_call_history_src_line): ...this. Use new btrace
12421 thread info fields.
12422 (btrace_func_history): Rename to ...
12423 (btrace_call_history): ...this. Use new btrace thread info
12424 fields and new iterator.
12425 (record_btrace_call_history, record_btrace_call_history_range):
12426 Use new btrace thread info fields and new iterator.
12427
8372a7cb
MM
124282014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12429
12430 * frame.h (frame_id_build_unavailable_stack_special): New.
12431 * frame.c (frame_id_build_unavailable_stack_special): New.
12432
c2170eef
MM
124332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12434
12435 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12436 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12437 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12438 to gdbarch.
12439 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12440 (i386_insn_is_jump, i386_jmp_p): New.
12441 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12442 insn_is_jump to gdbarch.
12443 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12444 * gdbarch.h: Regenerated.
12445 * gdbarch.c: Regenerated.
12446 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12447 (default_insn_is_jump): New.
12448 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12449 (default_insn_is_jump): New.
12450
864089d2
MM
124512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12452
12453 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12454 Change to ...
12455 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12456 (btrace_read_type) <btrace_read_new>: Change to ...
12457 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12458
ed9edfb5
MM
124592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12460
12461 * common/linux-btrace.c (linux_read_btrace): Free trace from
12462 previous iteration.
12463
fbcbc3fd
DE
124642014-01-15 Doug Evans <dje@google.com>
12465
12466 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12467 uint32_t.
12468
3d548a53
TT
124692014-01-15 Tom Tromey <tromey@redhat.com>
12470
12471 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12472 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12473 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12474 (set_objfile_main_name): New function.
12475 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12476 language_of_main>: New fields.
12477 (set_objfile_main_name): Declare.
12478 * symtab.c (find_main_name): Loop over objfiles to find the main
12479 name and language.
12480 (set_main_name): Now static.
12481 (get_main_info): Add comment.
12482 * symtab.h (set_main_name): Don't declare.
12483
32ac0d11
TT
124842014-01-15 Tom Tromey <tromey@redhat.com>
12485
12486 * symtab.c (main_progspace_key): New global.
12487 (struct main_info): New.
12488 (name_of_main, language_of_main): Remove.
12489 (get_main_info, main_info_cleanup): New function.
12490 (set_main_name, main_name, main_language): Use get_main_info.
12491 (_initialize_symtab): Initialize main_progspace_key.
12492
9e6c82ad
TT
124932014-01-15 Tom Tromey <tromey@redhat.com>
12494
12495 * dbxread.c (process_one_symbol): Update.
12496 * dwarf2read.c (read_partial_die): Update.
12497 * symfile.c (set_initial_language): Call main_language.
12498 * symtab.c (language_of_main): Now static.
12499 (set_main_name): Add 'lang' parameter.
12500 (find_main_name): Update.
12501 (main_language): New function.
12502 (symtab_observer_executable_changed): Update.
12503 * symtab.h (set_main_name): Update.
12504 (language_of_main): Remove.
12505 (main_language): Declare.
12506
6ef55de7
TT
125072014-01-15 Tom Tromey <tromey@redhat.com>
12508
12509 * symfile.c (init_entry_point_info): Use new "initialized" field.
12510 Update.
12511 * objfiles.h (struct entry_point) <initialized>: New field.
12512 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12513 (struct objfile) <ei>: ...here. Remove.
12514 * objfiles.c (entry_point_address_query): Update.
12515
53eddfa6
TT
125162014-01-15 Tom Tromey <tromey@redhat.com>
12517
12518 * objfiles.c (entry_point_address_query): Relocate entry point
12519 address.
12520 (objfile_relocate1): Do not relocate entry point address.
12521 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12522 <the_bfd_section_index>: New field.
12523 * symfile.c (init_entry_point_info): Find the entry point's
12524 section.
12525
d56e56aa
TT
125262014-01-15 Tom Tromey <tromey@redhat.com>
12527
12528 * solib-frv.c (enable_break): Use entry_point_address_query.
12529
33a97bbe
OJ
125302014-01-15 Omair Javaid <omair.javaid@linaro.org>
12531
12532 * NEWS: Add note on improved process record-replay on
12533 arm*-linux* targets.
12534
c6ec2b30
OJ
125352014-01-15 Omair Javaid <omair.javaid@linaro.org>
12536
12537 * arm-tdep.c (enum arm_record_result): New enum.
12538 (arm_record_unsupported_insn): New function.
12539 (arm_record_coproc_data_proc): Removed.
12540 (thumb2_record_ld_st_multiple): New function.
12541 (thumb2_record_ld_st_dual_ex_tbb): New function.
12542 (thumb2_record_data_proc_sreg_mimm): New function.
12543 (thumb2_record_ps_dest_generic): New function.
12544 (thumb2_record_branch_misc_cntrl): New function.
12545 (thumb2_record_str_single_data): New function.
12546 (thumb2_record_ld_mem_hints): New function.
12547 (thumb2_record_ld_word): New function.
12548 (thumb2_record_lmul_lmla_div): New function.
12549 (thumb2_record_decode_insn_handler): New function.
12550 (decode_insn): Add thumb32 instruction handlers.
12551
97dfe206
OJ
125522014-01-15 Omair Javaid <omair.javaid@linaro.org>
12553
12554 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12555 (struct arm_linux_record_tdep): Declare.
12556 (arm_canonicalize_syscall): New function.
12557 (arm_all_but_pc_registers_record): New function.
12558 (arm_linux_syscall_record): New function.
12559 (arm_linux_init_abi): Add syscall recording constructs.
12560 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12561 decoding. (arm_record_coproc_data_proc): Update arm syscall
12562 decoding.
12563 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12564 <arm_syscall_record>: New field.
12565 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12566 gdb_target_obs.
12567
9904a494
OJ
125682014-01-15 Omair Javaid <omair.javaid@linaro.org>
12569
12570 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12571 register for push instruction recording.
12572
f969241e
OJ
125732014-01-15 Omair Javaid <omair.javaid@linaro.org>
12574
12575 * arm-tdep.c (thumb_record_misc): Update to correct logical
12576 error while recording ldm, ldmia and pop instructions.
12577
bfbbec00
OJ
125782014-01-15 Omair Javaid <omair.javaid@linaro.org>
12579
12580 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12581
e40adcc9
PA
125822014-01-15 Pedro Alves <palves@redhat.com>
12583
12584 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12585 (go32_resume, go32_fetch_registers, store_register)
12586 (go32_store_registers, go32_prepare_to_store)
12587 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12588 (go32_create_inferior, go32_can_run, go32_terminal_init)
12589 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12590 declarations.
12591
b0a16e66
TT
125922014-01-15 Tom Tromey <tromey@redhat.com>
12593
12594 * target.h (async_callback_ftype): New typedef.
12595 (struct target_ops) <to_async>: Use it.
12596
bf7105a4
JB
125972014-01-15 Joel Brobecker <brobecker@adacore.com>
12598
12599 * python/py-value.c (get_field_type): Remove unnecessary curly
12600 braces for single-statement if block.
12601
a8f35c2e
JB
126022014-01-15 Joel Brobecker <brobecker@adacore.com>
12603
12604 * python/py-type.c (convert_field): Add missing empty line
12605 after declarations.
12606
bb4142cf
DE
126072014-01-14 Doug Evans <dje@google.com>
12608
12609 * symfile.h (expand_symtabs_matching): Renamed from
12610 expand_partial_symbol_names. Update prototype.
12611 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12612 * symfile.c (expand_symtabs_matching): Renamed from
12613 expand_partial_symbol_names. New args file_matcher, kind.
12614 Rename arg fun to symbol_matcher.
12615 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12616 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12617 ada_expand_partial_symbol_name.
12618 (ada_make_symbol_completion_list): Update to call
12619 expand_symtabs_matching.
12620 (ada_add_global_exceptions): Call expand_symtabs_matching.
12621 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12622 call map_symbol_filenames.
12623 * symtab.c (sources_info): Update to call map_symbol_filenames.
12624 (search_symbols): Call expand_symtabs_matching.
12625 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12626 (default_make_symbol_completion_list_break_on): Update to call
12627 expand_symtabs_matching.
12628 (make_source_files_completion_list): Update to call
12629 map_symbol_filenames.
12630
206f2a57
DE
126312014-01-14 Doug Evans <dje@google.com>
12632
12633 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12634 (expand_symtabs_symbol_matcher_ftype): New typedef.
12635 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12636 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12637 * symfile.c (expand_partial_symbol_names): Update to use
12638 expand_symtabs_symbol_matcher_ftype.
12639 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12640 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12641 Arg name_matcher renamed to symbol_matcher.
12642 * psymtab.c (recursively_search_psymtabs): Update to use
12643 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12644 sym_matcher.
12645 (expand_symtabs_matching_via_partial): Update to use
12646 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12647 Arg name_matcher renamed to symbol_matcher.
12648
540c2971
DE
126492014-01-14 Doug Evans <dje@google.com>
12650
12651 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12652 (map_partial_symbol_filenames): Ditto.
12653 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12654 (map_partial_symbol_filenames): Ditto.
12655 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12656 (map_partial_symbol_filenames): Ditto.
12657 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12658 (map_partial_symbol_filenames): Ditto.
12659 * symtab.c: Delete #include "psymtab.h".
12660
8213266a
PA
126612014-01-14 Pedro Alves <palves@redhat.com>
12662 Tom Tromey <tromey@redhat.com>
12663
12664 * infrun.c (use_displaced_stepping): Use find_record_target
12665 instead of RECORD_IS_USED.
12666 (adjust_pc_after_break): Use record_full_is_used instead of
12667 RECORD_IS_USED.
12668 * record-btrace.c (record_btrace_open): Call record_preopen
12669 instead of checking RECORD_IS_USED.
12670 * record-full.c (record_full_shortname)
12671 (record_full_core_shortname): New globals.
12672 (record_full_is_used): New function.
12673 (find_full_open): Call record_preopen instead of checking
12674 RECORD_IS_USED.
12675 (init_record_full_ops): Set the target's shortname to
12676 record_full_shortname.
12677 (init_record_full_core_ops): Set the target's shortname to
12678 record_full_core_shortname.
12679 * record-full.h (record_full_is_used): Declare.
12680 * record.c (find_record_target): Make extern.
12681 (record_preopen): New function.
12682 * record.h (RECORD_IS_USED): Delete macro.
12683 (find_record_target, record_preopen): Declare functions.
12684
7ec1862d
YQ
126852014-01-14 Yao Qi <yao@codesourcery.com>
12686
12687 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12688 'len''s type to ULONGEST.
12689 (core_xfer_shared_libraries_aix): Likewise.
12690 * gdbarch.c, gdbarch.h: Regenerated.
12691 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12692 Change type of 'len' to ULONGEST.
12693 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12694 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12695
dea80a27
YQ
126962014-01-14 Yao Qi <yao@codesourcery.com>
12697
12698 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12699 type of 'len' to ULONGEST.
12700 (linux_xfer_osdata_processgroups): Likewise.
12701 (linux_xfer_osdata_threads): Likewise.
12702 (linux_xfer_osdata_fds): Likewise.
12703 (linux_xfer_osdata_isockets): Likewise.
12704 (linux_xfer_osdata_shm): Likewise.
12705 (linux_xfer_osdata_sem): Likewise.
12706 (linux_xfer_osdata_msg): Likewise.
12707 (linux_common_xfer_osdata): Likewise.
12708 (struct osdata_type) <getter>: Likewise.
12709 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12710 the declaration.
12711
b55e14c7
YQ
127122014-01-14 Yao Qi <yao@codesourcery.com>
12713
12714 * target.h (target_xfer_partial_ftype): Update.
12715 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12716 ULONGEST.
12717 * aix-thread.c (aix_thread_xfer_partial): Change type of
12718 argument 'len' to ULONGEST.
12719 * auxv.c (procfs_xfer_auxv): Likewise.
12720 (ld_so_xfer_auxv): Likewise.
12721 (memory_xfer_auxv): Likewise.
12722 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12723 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12724 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12725 * corelow.c (core_xfer_partial): Likewise.
12726 * ctf.c (ctf_xfer_partial): Likewise.
12727 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12728 '%u'.
12729 (darwin_read_dyld_info): Likewise.
12730 (darwin_xfer_partial): Likewise.
12731 * exec.c (section_table_xfer_memory_partial): Likewise.
12732 (exec_xfer_partial): Likewise.
12733 * exec.h (section_table_xfer_memory_partial): Update
12734 declaration.
12735 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12736 instead of plongest.
12737 (gnu_xfer_partial): Likewise.
12738 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12739 (ia64_hpux_xfer_solib_got): Likewise.
12740 (ia64_hpux_xfer_partial): Likewise.
12741 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12742 * inf-ptrace.c (inf_ptrace_xfer_partial):
12743 * inf-ttrace.c (inf_ttrace_xfer_partial):
12744 * linux-nat.c (linux_xfer_siginfo): Likewise.
12745 (linux_nat_xfer_partial): Likewise.
12746 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12747 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12748 * monitor.c (monitor_xfer_memory): Likewise.
12749 (monitor_xfer_partial): Likewise.
12750 * procfs.c (procfs_xfer_partial): Likewise.
12751 * record-full.c (record_full_xfer_partial): Likewise.
12752 (record_full_core_xfer_partial): Likewise.
12753 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12754 instead of plongest.
12755 (gdbsim_xfer_partial): Likewise.
12756 * remote.c (remote_xfer_partial): Likewise.
12757 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12758 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12759 declaration.
12760 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12761 (rs6000_xfer_shared_libraries): Likewise.
12762 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12763 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12764 (sparc_xfer_partial): Likewise.
12765 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12766 (spu_xfer_partial): Likewise.
12767 * spu-multiarch.c (spu_xfer_partial): Likewise.
12768 * target.c (target_read_live_memory): Likewise.
12769 (memory_xfer_live_readonly_partial): Likewise.
12770 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12771 (target_xfer_partial, default_xfer_partial): Likewise.
12772 (current_xfer_partial): Likewise.
12773 * tracepoint.c (tfile_xfer_partial): Likewise.
12774 * windows-nat.c (windows_xfer_memory): Likewise. Call
12775 pulongest instead of plongest.
12776 (windows_xfer_partial): Likewise.
12777 (windows_xfer_shared_libraries): Likewise.
12778
05804640
YQ
127792014-01-14 Yao Qi <yao@codesourcery.com>
12780
12781 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12782 target_xfer_partial_ftype.
12783
b5b08fb4
SC
127842014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12785
12786 PR python/15464
12787 PR python/16113
12788 * valops.c (value_struct_elt_bitpos): New function
12789 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12790 object to 'None' if the field name is an empty string ("").
12791 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12792 attribute to look for a field when 'name' is 'None'.
12793 (get_field_type): New function
12794
13aaf454
DE
127952014-01-13 Doug Evans <dje@google.com>
12796
12797 PR symtab/16426
12798 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12799 (try_open_dwop_file): Ditto.
12800 * gdb_bfd.c: #include "vec.h".
12801 (bfdp): New typedef.
12802 (struct gdb_bfd_data): New member included_bfds.
12803 (gdb_bfd_unref): Unref all included bfds.
12804 (gdb_bfd_record_inclusion): New function.
12805 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12806
c2cec97c
TT
128072014-01-13 Tom Tromey <tromey@redhat.com>
12808
12809 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12810
78e5999d
TT
128112014-01-13 Tom Tromey <tromey@redhat.com>
12812
12813 * defs.h (use_windows): Remove.
12814 * gdb.c (main): Update.
12815 * main.c (captured_main, gdb_main): Update.
12816 * main.h (struct captured_main_args) <use_windows>: Remove.
12817 * top.c (use_windows): Remove.
12818
f2052bbe
TT
128192014-01-13 Tom Tromey <tromey@redhat.com>
12820
12821 * defs.h (deprecated_flush_hook): Remove.
12822
fde4f8ed
JK
128232014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12824
12825 PR threads/16216
12826 * linux-thread-db.c (try_thread_db_load): Add parameter
12827 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12828 (try_thread_db_load_from_pdir_1): Move it there from here.
12829 (try_thread_db_load_from_sdir): Update caller.
12830 (try_thread_db_load_from_dir): Move it there from here.
12831
bdf61915
PP
128322014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12833
12834 * regformats/regdat.sh: Always rewrite the register file.
12835
f71e1a8d
PA
128362014-01-13 Pedro Alves <palves@redhat.com>
12837
12838 * Makefile.in (CHECK_HEADERS): New variable.
12839 (check-headers:): New rule.
12840
42c85435
TT
128412014-01-13 Tom Tromey <tromey@redhat.com>
12842
12843 * cli/cli-setshow.c (do_set_command): Update.
12844 * defs.h (deprecated_set_hook): Remove.
12845 * top.c (deprecated_set_hook): Remove.
12846
f8de5129
PA
128472014-01-13 Pedro Alves <palves@redhat.com>
12848
12849 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12850 the tracepoint if the PC is a pseudo-register.
12851
fc270c35
TT
128522014-01-13 Tom Tromey <tromey@redhat.com>
12853
12854 * defs.h (XCALLOC): Remove.
12855 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12856 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12857 * dwarf2loc.c (allocate_piece_closure): Likewise.
12858 * elfread.c (elf_symfile_segments): Likewise.
12859 (elf_symfile_segments): Likewise.
12860 * gdbtypes.c (copy_type_recursive): Likewise.
12861 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12862 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12863 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12864 XCALLOC.
12865 * mt-tdep.c (mt_gdbarch_init): Likewise.
12866 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12867 XCALLOC.
12868 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12869 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12870 * registry.c (registry_alloc_data): Likewise.
12871 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12872 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12873 * serial.c (serial_fdopen_ops): Likewise.
12874 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12875 XCALLOC.
12876 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12877 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12878 not XCALLOC.
12879
70ba0933
TT
128802014-01-13 Tom Tromey <tromey@redhat.com>
12881
12882 * defs.h (XMALLOC): Remove.
12883 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12884 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12885 * cli-out.c (struct ui_out *): Likewise.
12886 * cli/cli-dump.c (add_dump_command): Likewise.
12887 (add_dump_command): Likewise.
12888 * complaints.c (get_complaints): Likewise.
12889 (find_complaint): Likewise.
12890 * dwarf2-frame.c (execute_cfa_program): Likewise.
12891 * dwarf2read.c (abbrev_table_read_table): Likewise.
12892 * gdbarch.sh: Likewise.
12893 * gdbarch.c: Rebuild.
12894 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12895 * interps.c (interp_new): Likewise.
12896 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12897 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12898 * mi/mi-console.c (mi_console_file_new): Likewise.
12899 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12900 * mi/mi-out.c (mi_out_new): Likewise.
12901 * mi/mi-parse.c (mi_parse): Likewise.
12902 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12903 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12904 * observer.c (xalloc_observer_list_node): Likewise.
12905 * regcache.c (regcache_xmalloc_1): Likewise.
12906 * reggroups.c (reggroup_new): Likewise.
12907 (_initialize_reggroup): Likewise.
12908 * registry.c (register_data_with_cleanup): Likewise.
12909 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12910 * ser-base.c (serial_ttystate): Likewise.
12911 * ser-mingw.c (make_pipe_state): Likewise.
12912 * ser-pipe.c (pipe_open): Likewise.
12913 * serial.c (serial_open): Likewise.
12914 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12915 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12916 (tui_alloc_win_info): Likewise.
12917 (tui_add_content_elements): Likewise.
12918 * tui/tui-file.c (tui_file_new): Likewise.
12919 * tui/tui-out.c (tui_out_new): Likewise.
12920 * ui-file.c (mem_file_new): Likewise.
12921 * ui-out.c (push_level): Likewise.
12922 (make_cleanup_ui_out_end): Likewise.
12923 (append_header_to_list): Likewise.
12924 (ui_out_new): Likewise.
12925 * user-regs.c (user_reg_add_builtin): Likewise.
12926
41bf6aca
TT
129272014-01-13 Tom Tromey <tromey@redhat.com>
12928
12929 * defs.h (XZALLOC): Remove.
12930 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12931 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12932 (get_ada_tasks_inferior_data): Likewise.
12933 * auto-load.c (get_auto_load_pspace_data): Likewise.
12934 * auxv.c (get_auxv_inferior_data): Likewise.
12935 * bfd-target.c (target_bfd_reopen): Likewise.
12936 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12937 (deprecated_insert_raw_breakpoint): Likewise.
12938 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12939 * corelow.c (core_open): Likewise.
12940 * darwin-nat.c (darwin_check_new_threads): Likewise.
12941 (darwin_attach_pid): Likewise.
12942 * dummy-frame.c (dummy_frame_push): Likewise.
12943 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12944 * dwarf2loc.c (allocate_piece_closure): Likewise.
12945 * elfread.c (elf_symfile_segments): Likewise.
12946 * eval.c (ptrmath_type_p): Likewise.
12947 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12948 * gdbtypes.c (alloc_type_arch): Likewise.
12949 (alloc_type_instance): Likewise.
12950 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12951 * inf-child.c (inf_child_can_use_agent): Likewise.
12952 * inflow.c (get_inflow_inferior_data): Likewise.
12953 * infrun.c (save_infcall_suspend_state): Likewise.
12954 * jit.c (jit_reader_load): Likewise.
12955 (get_jit_objfile_data): Likewise.
12956 (get_jit_program_space_data): Likewise.
12957 (jit_object_open_impl): Likewise.
12958 (jit_symtab_open_impl): Likewise.
12959 (jit_block_open_impl): Likewise.
12960 (jit_frame_sniffer): Likewise.
12961 * linux-fork.c (add_fork): Likewise.
12962 * maint.c (make_command_stats_cleanup): Likewise.
12963 * objfiles.c (get_objfile_pspace_data): Likewise.
12964 * opencl-lang.c (struct lval_closure): Likewise.
12965 * osdata.c (osdata_start_osdata): Likewise.
12966 * progspace.c (new_address_space): Likewise.
12967 (add_program_space): Likewise.
12968 * remote-sim.c (get_sim_inferior_data): Likewise.
12969 * sh-tdep.c (sh_gdbarch_init): Likewise.
12970 * skip.c (Ignore): Likewise.
12971 (skip_delete_command): Likewise.
12972 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12973 (library_list_start_library): Likewise.
12974 (solib_aix_current_sos): Likewise.
12975 * solib-darwin.c (get_darwin_info): Likewise.
12976 (darwin_current_sos): Likewise.
12977 * solib-dsbt.c (get_dsbt_info): Likewise.
12978 * solib-ia64-hpux.c (new_so_list): Likewise.
12979 (ia64_hpux_get_solib_linkage_addr): Likewise.
12980 * solib-spu.c (append_ocl_sos): Likewise.
12981 (spu_current_sos): Likewise.
12982 * solib-svr4.c (get_svr4_info): Likewise.
12983 (svr4_keep_data_in_core): Likewise.
12984 (library_list_start_library): Likewise.
12985 (svr4_default_sos): Likewise.
12986 (svr4_read_so_list): Likewise.
12987 * solib-target.c (library_list_start_library): Likewise.
12988 (solib_target_current_sos): Likewise.
12989 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12990 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12991 * symfile.c (default_symfile_segments): Likewise.
12992 * target-descriptions.c (tdesc_data_init): Likewise.
12993 (tdesc_create_reg): Likewise.
12994 (struct tdesc_type *): Likewise.
12995 (tdesc_create_vector): Likewise.
12996 (tdesc_set_struct_size): Likewise.
12997 (struct tdesc_type *): Likewise.
12998 (tdesc_free_feature): Likewise.
12999 (tdesc_create_feature): Likewise.
13000 * windows-nat.c (windows_add_thread): Likewise.
13001 (windows_make_so): Likewise.
13002 * xml-support.c (gdb_xml_body_text): Likewise.
13003 (gdb_xml_create_parser_and_cleanup): Likewise.
13004 (xml_process_xincludes): Likewise.
13005 * xml-syscall.c (allocate_syscalls_info): Likewise.
13006 (syscall_create_syscall_desc): Likewise.
13007
5acfdbae
SDJ
130082014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13009
13010 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13011 function, with code from i386_stap_parse_special_token.
13012 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13013 (i386_stap_parse_special_token): Move code to the two functions
13014 above; simplify it.
13015
0000e5cc
PA
130162014-01-09 Pedro Alves <palves@redhat.com>
13017 Hui Zhu <hui@codesourcery.com>
13018
13019 PR gdb/16101
13020 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13021 bp_err_string. Don't mark the location shlib_disabled if the
13022 error thrown wasn't a generic or memory error. Catch errors
13023 thrown while inserting breakpoints in overlayed code. Output
13024 error message of software breakpoints.
13025 * remote.c (remote_insert_breakpoint): If this breakpoint has
13026 target-side commands but this stub doesn't support Z0 packets,
13027 throw NOT_SUPPORTED_ERROR error.
13028 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13029 * target.h (target_insert_breakpoint): Extend comment.
13030 (target_insert_hw_breakpoint): Add comment.
13031
b7ea362b
PA
130322014-01-08 Pedro Alves <palves@redhat.com>
13033
13034 * remote.c (remote_add_thread): Add threads silently if starting
13035 up.
13036 (remote_notice_new_inferior): If in all-stop, and starting up,
13037 don't call notice_new_inferior.
13038 (get_current_thread): New function, factored out from ...
13039 (add_current_inferior_and_thread): ... this. Adjust.
13040 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13041 found any thread, then select the remote's current thread as GDB's
13042 current thread too.
13043
b7bba001
JB
130442014-01-08 Joel Brobecker <brobecker@adacore.com>
13045
13046 * NEWS: Create a new section for the next release branch.
13047 Rename the section of the current branch, now that it has
13048 been cut.
13049
16dfbded
JB
130502014-01-08 Joel Brobecker <brobecker@adacore.com>
13051
13052 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13053 * version.in: Bump version to 7.7.50.DATE-cvs.
13054
22c90ac1
YQ
130552014-01-08 Yao Qi <yao@codesourcery.com>
13056
13057 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13058 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13059 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13060
d64ad97c
YQ
130612014-01-08 Yao Qi <yao@codesourcery.com>
13062
13063 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13064 return value of bfd_get_filename to symbol_file_add_from_bfd.
13065
f93ba80c
PM
130662014-01-08 Pierre Muller <muller@sourceware.org>
13067
13068 Fix PR16201.
13069 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13070 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13071 to prim_record_mininal_symbol_and_info.
13072 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13073 in call to prim_record_minimal_symbol_and_info.
13074 (read_pe_exported_syms): Set index field of section_data.
13075
a4d9ba85
AP
130762014-01-07 Andrew Pinski <apinski@cavium.com>
13077
13078 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13079 * features/aarch64.c: Regenerate.
13080
1b67eb02
AS
130812014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13082
13083 * target.c (return_null): Define.
13084 (update_current_target): Use it instead of return_zero for
13085 functions that return a pointer.
13086
5e3f4fab
EBM
130872014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13088
13089 * source.c (add_path): Fix check for duplicated paths in the previously
13090 included paths.
13091
e2616788
HK
130922014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13093
13094 * ada-lang.c: Remove duplicated include statements.
13095 * alphabsd-nat.c: Ditto.
13096 * amd64-darwin-tdep.c: Ditto.
13097 * amd64fbsd-nat.c: Ditto.
13098 * auto-load.c: Ditto.
13099 * ax-gdb.c: Ditto.
13100 * breakpoint.c: Ditto.
13101 * dbxread.c: Ditto.
13102 * fork-child.c: Ditto.
13103 * gdb_usleep.c: Ditto.
13104 * i386-darwin-tdep.c: Ditto.
13105 * i386fbsd-nat.c: Ditto.
13106 * infcmd.c: Ditto.
13107 * inferior.c: Ditto.
13108 * jv-lang.c: Ditto.
13109 * linux-nat.c: Ditto.
13110 * linux-tdep.c: Ditto.
13111 * m68kbsd-nat.c: Ditto.
13112 * m68klinux-nat.c: Ditto.
13113 * microblaze-tdep.c: Ditto.
13114 * mips-linux-tdep.c: Ditto.
13115 * mn10300-tdep.c: Ditto.
13116 * nto-tdep.c: Ditto.
13117 * opencl-lang.c: Ditto.
13118 * osdata.c: Ditto.
13119 * printcmd.c: Ditto.
13120 * regcache.c: Ditto.
13121 * remote-m32r-sdi.c: Ditto.
13122 * remote.c: Ditto.
13123 * symfile.c: Ditto.
13124 * symtab.c: Ditto.
13125 * tilegx-linux-nat.c: Ditto.
13126 * tilegx-tdep.c: Ditto.
13127 * tracepoint.c: Ditto.
13128 * valops.c: Ditto.
13129 * vaxbsd-nat.c: Ditto.
13130 * windows-nat.c: Ditto.
13131 * xtensa-tdep.c: Ditto.
13132
bd1f7788
YQ
131332014-01-07 Yao Qi <yao@codesourcery.com>
13134
13135 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13136
79301218
JB
131372014-01-07 Yao Qi <yao@codesourcery.com>
13138 Joel Brobecker <brobecker@adacore.com>
13139
13140 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13141 (pdc_write_regs): Likewise.
13142 (fetch_regs_kernel_thread): Likewise.
13143 (store_regs_kernel_thread): Likewise.
13144
131452014-01-07 Joel Brobecker <brobecker@adacore.com>
13146
13147 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13148 tagged type objects to their actual type.
13149
8e355c5d
JB
131502014-01-07 Joel Brobecker <brobecker@adacore.com>
13151
13152 * ada-valprint.c (print_field_values): Add "language" parameter.
13153 Update calls to print_field_values and print_variant_part.
13154 Pass new parameter "language" in call to val_print instead
13155 of "current_language". Replace call to ada_val_print by call
13156 to val_print.
13157 (print_variant_part): Add "language" parameter.
13158 (ada_val_print_struct_union): Update call to print_field_values.
13159
4fbf5aa5
JB
131602014-01-07 Joel Brobecker <brobecker@adacore.com>
13161
13162 * ada-valprint.c (ui_memcpy): Delete.
13163 (ada_print_floating): Update documentation. Add empty line
13164 between between function documentation and implementation.
13165 Delete variable "buffer". Use ui_file_xstrdup in place of
13166 ui_file_put. Minor adjustments following this change.
13167
71855601
JB
131682014-01-07 Joel Brobecker <brobecker@adacore.com>
13169
13170 * ada-valprint.c (ada_val_print_string): New function,
13171 extracted from ada_val_print_array.
13172 (ada_val_print_array): Replace extracted code by call
13173 to ada_val_print_string followed by a return. Move
13174 "else" branch to the function's top block.
13175
4eb27a30
JB
131762014-01-07 Joel Brobecker <brobecker@adacore.com>
13177
13178 * ada-valprint.c (ada_val_print_array): Move implementation
13179 down. Rename parameter "offset" and "val" into "offset_aligned"
13180 and "original_value" respectively. Add parameter "offset".
13181
34b27950
JB
131822014-01-07 Joel Brobecker <brobecker@adacore.com>
13183
13184 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13185 re-organizing the code. Change the "???" message printed
13186 when target type is a TYPE_CODE_UNDEF into
13187 "<ref to undefined type>".
13188
079e4591
JB
131892014-01-07 Joel Brobecker <brobecker@adacore.com>
13190
13191 * ada-valprint.c (print_record): Delete, implementation inlined...
13192 (ada_val_print_struct_union): ... here. Remove call to
13193 ada_check_typedef in inlined implementation.
13194
8004dfd1
JB
131952014-01-07 Joel Brobecker <brobecker@adacore.com>
13196
13197 * ada-valprint.c (ada_val_print_gnat_array): New function,
13198 extracted from ada_val_print_1;
13199 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13200 (ada_val_print_flt, ada_val_print_struct_union)
13201 (ada_val_print_ref): Likewise.
13202 (ada_val_print_1): Delete variables i and elttype.
13203 Replace extracted-out code by call to corresponding
13204 new functions.
13205
760a2db0
JB
132062014-01-07 Joel Brobecker <brobecker@adacore.com>
13207
13208 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13209
3a92c861
JB
132102014-01-07 Joel Brobecker <brobecker@adacore.com>
13211
13212 * ada-valprint.c (ada_val_print_1): Replace calls to
13213 ada_val_print_1 by calls to val_print.
13214
cd1630f9
JB
132152014-01-07 Joel Brobecker <brobecker@adacore.com>
13216
13217 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13218 Update calls to self accordingly. Replace calls to c_val_print
13219 by calls to val_print.
13220
bdf779a0
JB
132212014-01-07 Joel Brobecker <brobecker@adacore.com>
13222
13223 * ada-valprint.c (print_record): Delete declaration.
13224 (adjust_type_signedness, ada_val_print_1): Likewise.
13225 (ada_val_print): Move function implementation down.
13226 (print_variant_part, print_field_values, print_record):
13227 Move function implementation up.
13228
c0d48811
JB
132292014-01-07 Joel Brobecker <brobecker@adacore.com>
13230
13231 * python/py-type.c (typy_get_name): New function.
13232 (type_object_getset): Add entry for attribute "name".
13233 * NEWS: Add entry mentioning this new attribute.
13234
c26e9cbb
YQ
132352014-01-07 Yao Qi <yao@codesourcery.com>
13236
13237 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13238 statement.
13239
0cc6f43d
YQ
132402014-01-07 Yao Qi <yao@codesourcery.com>
13241
13242 * gnu-nat.c (info_port_rights): Add qualifier const to
13243 argument args.
13244
eec03155
YQ
132452014-01-07 Yao Qi <yao@codesourcery.com>
13246
13247 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13248
f04a82ef
YQ
132492014-01-07 Yao Qi <yao@codesourcery.com>
13250
13251 * gnu-nat.c (make_inf) Update declaration.
13252 (make_inf): Make it static.
13253 (inf_set_traced): Likewise.
13254 (inf_port_to_thread, inf_task_died_status): Likewise.
13255
d57dda0a
YQ
132562014-01-07 Yao Qi <yao@codesourcery.com>
13257
13258 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13259
3aa8c969
YQ
132602014-01-07 Yao Qi <yao@codesourcery.com>
13261
13262 * gnu-nat.c (_initialize_gnu_nat): Declare.
13263
94123b4f
YQ
132642014-01-07 Yao Qi <yao@codesourcery.com>
13265
13266 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13267 'enum bfd_endian'.
13268 (struct gdbarch_info) <byte_order>: Change type to
13269 'enum bfd_endian'.
13270 <byte_order_for_code>: Likewise.
13271 * gdbarch.c, gdbarch.h: Regenerated.
13272
dc81d70a
TT
132732014-01-06 Sasha Smundak <asmundak@google.com>
13274
13275 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13276
cc2f3c35
TT
132772014-01-06 Tom Tromey <tromey@redhat.com>
13278
13279 * doublest.c (convert_doublest_to_floatformat): Use const, not
13280 CONST.
13281 * somread.c (som_symtab_read): Likewise.
13282
adcf2eed
HZ
132832014-01-07 Hui Zhu <hui@codesourcery.com>
13284
13285 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13286 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13287 (gdb_bfd_fopen): Ditto.
13288 (gdb_bfd_openr): Ditto.
13289 (gdb_bfd_openw): Ditto.
13290 (gdb_bfd_openr_iovec): Ditto.
13291 (gdb_bfd_fdopenr): Ditto.
13292 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13293 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13294 with xstrdup.
13295 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13296 with xstrdup.
13297 * symfile-mem.c (symbol_file_add_from_memory): Removed
13298 gdb_bfd_stash_filename.
13299
50722198
DE
133002014-01-03 Doug Evans <dje@google.com>
13301
13302 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13303 output.
13304
2fa4b862
JB
133052014-01-01 Joel Brobecker <brobecker@adacore.com>
13306
13307 Update year range in copyright notice of all files.
13308
28498c42
JB
133092014-01-01 Joel Brobecker <brobecker@adacore.com>
13310
13311 * top.c (print_gdb_version): Set copyright year to 2014.
13312
7b6e1046
JB
133132014-01-01 Joel Brobecker <brobecker@adacore.com>
13314
13315 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13316
df96af55 13317For older changes see ChangeLog-2013.
c906108c
SS
13318\f
13319Local Variables:
13320mode: change-log
13321left-margin: 8
13322fill-column: 74
13323version-control: never
57da7796 13324coding: utf-8
c906108c 13325End:
This page took 2.797151 seconds and 4 git commands to generate.