SCORE: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9845a0b5
AA
12014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
4 (score7_linux_iterate_over_regset_sections): New.
5 (score_gdbarch_init): Adjust gdbarch initialization.
6
23ea9aeb
AA
72014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
8
9 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
10 FreeBSD targets.
11 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
12 method 'make_corefile_notes'.
13 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
14 (ppcfbsd_regset_from_core_section): Remove.
15 (ppcfbsd_iterate_over_regset_sections): New.
16 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
17 initialization.
18 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
19 (ppcnbsd_iterate_over_regset_sections): New.
20 (ppcnbsd_init_abi): Adjust.
21 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
22 (ppcobsd_iterate_over_regset_sections): New.
23 (ppcobsd_init_abi): Adjust.
24 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
25 (rs6000_aix_iterate_over_regset_sections): New.
26 (rs6000_aix_init_osabi): Adjust.
27
c5b8d704
AA
282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
29
30 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
31 (nios2_regset_from_core_section): Remove.
32 (nios2_iterate_over_regset_sections): New.
33 (nios2_linux_init_abi): Adjust gdbarch initialization.
34
3636e608
AA
352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
36
37 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
38 (am33_iterate_over_regset_sections): New.
39 (am33_linux_init_osabi): Adjust gdbarch initialization.
40
d4036235
AA
412014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
42
43 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
44 (mips_linux_iterate_over_regset_sections): New.
45 (mips_linux_init_abi): Adjust gdbarch initialization.
46 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
47 (mips64obsd_iterate_over_regset_sections): New.
48 (mips64obsd_init_abi): Adjust.
49 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
50 (mipsnbsd_iterate_over_regset_sections): New.
51 (mipsnbsd_init_abi): Adjust.
52
b61ddd6e
AA
532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
54
55 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
56 (m88k_iterate_over_regset_sections): New.
57 (m88k_gdbarch_init): Adjust gdbarch initialization.
58
55a2906a
AA
592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
60
61 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
62 (ia64_linux_iterate_over_regset_sections): New.
63 (ia64_linux_init_abi): Adjust gdbarch initialization.
64
022c98ab
AA
652014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
66
67 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
68 (m68kbsd_iterate_over_regset_sections): New.
69 (m68kbsd_init_abi): Adjust gdbarch initialization.
70 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
71 (m68k_linux_iterate_over_regset_sections): New.
72 (m68k_linux_init_abi): Adjust gdbarch initialization.
73
5fac247f
AA
742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
75
76 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
77 (m32r_linux_regset_from_core_section): Remove.
78 (m32r_linux_iterate_over_regset_sections): New.
79 (m32r_linux_init_abi): Adjust gdbarch initialization.
80
490496c3
AA
812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
82
83 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
84 (amd64obsd_iterate_over_regset_sections): New.
85 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
86 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
87 Remove.
88 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
89 regset_from_core_section initialization.
90 * i386-tdep.c (i386_regset_from_core_section): Remove.
91 (i386_iterate_over_regset_sections): New.
92 (i386_gdbarch_init): Adjust gdbarch initialization.
93 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
94 (i386_iterate_over_regset_sections): New prototype.
95 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
96 Remove.
97 (i386obsd_aout_iterate_over_regset_sections): New.
98 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
99 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
100 targets.
101 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
102 (amd64fbsd_init_abi): Call fbsd_init_abi.
103 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
104 (i386fbsd4_init_abi): Call fbsd_init_abi.
105 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
106 target method 'make_corefile_notes'.
107 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
108
50c5eb53
AA
1092014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
110
111 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
112 (hppa_hpux_iterate_over_regset_sections): New.
113 (hppa_hpux_init_abi): Adjust gdbarch initialization.
114 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
115 (hppa_linux_iterate_over_regset_sections): New.
116 (hppa_linux_init_abi): Adjust.
117 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
118 (hppanbsd_iterate_over_regset_sections): New.
119 (hppanbsd_init_abi): Adjust.
120 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
121 (hppaobsd_iterate_over_regset_sections): New.
122 (hppaobsd_init_abi): Adjust.
123
66afae4f
AA
1242014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
125
126 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
127 (frv_linux_iterate_over_regset_sections): New.
128 (frv_linux_init_abi): Adjust gdbarch initialization.
129
ed09174e
AA
1302014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
131
132 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
133 (armbsd_iterate_over_regset_sections): New prototype.
134 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
135 (armbsd_iterate_over_regset_sections): New.
136 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
137 initialization.
138
dff2166e
AA
1392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
140
141 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
142 (alpha_linux_iterate_over_regset_sections): New.
143 (alpha_linux_init_abi): Adjust gdbarch initialization.
144 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
145 prototype.
146 (alphanbsd_iterate_over_regset_sections): New prototype.
147
4108500a
AA
1482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
149
150 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
151 Remove.
152 (aarch64_linux_iterate_over_regset_sections): New.
153 (aarch64_linux_init_abi): Adjust gdbarch initialization.
154
a904c024
AA
1552014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
156
157 * fbsd-tdep.c: New file.
158 * fbsd-tdep.h: New file.
159 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
160 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
161 (ALLDEPFILES): Add fbsd-tdep.c.
162
8f0435f7
AA
1632014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
164
165 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
166 parameter.
167 * gdbarch.h: Regenerate.
168 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
169 iterator.
170 (get_core_register_section): Add parameter 'regset' and use it, if
171 set. Add parameter 'min_size' and verify the bfd section size
172 against it.
173 (get_core_registers_cb): Add parameter 'regset' and pass it to
174 get_core_register section. For the "standard" register sections
175 ".reg" and ".reg2", set an appropriate default for human_name.
176 (get_core_registers): Don't abort when the gdbarch has an iterator
177 but no regset_from_core_section. Add NULL/0 for parameters
178 'regset'/'min_size' in calls to get_core_register_section.
179 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
180 'regset' and use it instead of calling the
181 regset_from_core_section gdbarch method.
182 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
183 * i386-tdep.c (i386_supply_xstateregset)
184 (i386_collect_xstateregset, i386_xstateregset): Moved to
185 i386-linux-tdep.c.
186 (i386_regset_from_core_section): Drop handling for .reg-xfp and
187 .reg-xstate.
188 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
189 core file support only if the regset iterator hasn't been set.
190 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
191 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
192 Moved from i386-tdep.c and renamed to *_linux*.
193 (i386_linux_iterate_over_regset_sections): Add regset parameter to
194 each callback invocation. Allow any .reg-xstate size when reading
195 from a core file.
196 * amd64-tdep.c (amd64_supply_xstateregset)
197 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
198 amd64-linux-tdep.c.
199 (amd64_regset_from_core_section): Remove.
200 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
201 install an amd64-specific regset_from_core_section gdbarch method.
202 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
203 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
204 Moved from amd64-tdep.c and renamed to *_linux*.
205 (amd64_linux_iterate_over_regset_sections): Add regset parameter
206 to each callback invocation. Allow any .reg-xstate size when
207 reading from a core file.
208 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
209 (arm_linux_iterate_over_regset_sections): Add regset parameter to
210 each callback invocation.
211 (arm_linux_init_abi): No longer set the regset_from_core_section
212 gdbarch method.
213 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
214 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
215 each callback invocation.
216 (ppc_linux_init_abi): No longer set the regset_from_core_section
217 gdbarch method.
218 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
219 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
220 (s390_regset_from_core_section): Remove.
221 (s390_iterate_over_regset_sections): Add regset parameter to each
222 callback invocation.
223 (s390_gdbarch_init): No longer set the regset_from_core_section
224 gdbarch method. Drop initialization of deleted tdep fields.
225
5aa82d05
AA
2262014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
227
228 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
229 (amd64_linux_iterate_over_regset_sections): New.
230 (amd64_linux_init_abi_common): Don't install the regset section
231 list, but the new iterator in gdbarch.
232 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
233 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
234 (arm_linux_iterate_over_regset_sections): ...here. New function.
235 (arm_linux_init_abi): Set iterator instead of section list.
236 * corelow.c (get_core_registers_cb): New function, logic moved
237 from...
238 (get_core_registers): ...loop body here. Use new iterator method
239 instead of walking through the regset section list.
240 * gdbarch.sh: Remove 'core_regset_sections'. New method
241 'iterate_over_regset_sections'. New typedef
242 'iterate_over_regset_sections_cb'.
243 * gdbarch.c: Regenerate.
244 * gdbarch.h: Likewise.
245 * i386-linux-tdep.c (i386_linux_regset_sections)
246 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
247 Remove.
248 (i386_linux_iterate_over_regset_sections): New.
249 (i386_linux_init_abi): Don't choose a regset section list, but
250 install new iterator in gdbarch.
251 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
252 (linux_collect_regset_section_cb): New function, logic moved
253 from...
254 (linux_collect_thread_registers): ...loop body here. Use iterator
255 method instead of walking through list.
256 (linux_make_corefile_notes_1): Check for presence of iterator
257 method instead of regset section list.
258 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
259 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
260 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
261 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
262 (ppc_linux_iterate_over_regset_sections): ...here. New function.
263 (ppc_linux_init_abi): Don't choose from above regset section
264 lists, but install new iterator in gdbarch.
265 * regset.h (struct core_regset_section): Remove.
266 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
267 have_linux_v1, have_linux_v2, and have_tdb.
268 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
269 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
270 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
271 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
272 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
273 (s390_iterate_over_regset_sections): ...here. New function. Use
274 new tdep fields.
275 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
276 regset section lists, but install new iterator.
277
2eca4a8d
JK
2782014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
279
280 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
281
a73c2b56
SM
2822014-09-26 Simon Marchi <simon.marchi@ericsson.com>
283
284 * progspace.c (print_program_space): Don't prune program spaces
285 before printing them.
286
03d46957
PA
2872014-09-25 Pedro Alves <palves@redhat.com>
288
289 * infrun.c (user_visible_resume_ptid): Don't check
290 singlestep_breakpoints_inserted_p.
291
e558d7c1
PA
2922014-09-25 Pedro Alves <palves@redhat.com>
293
294 * breakpoint.c (should_be_inserted): Add debug output.
295
7f89fd65
PA
2962014-09-25 Pedro Alves <palves@redhat.com>
297
298 * infrun.c (stepping_past_instruction_at)
299 (clear_exit_convenience_vars): Point at infrun.h instead of
300 inferior.h.
301 (handle_signal_stop): Fix typo.
302
b7576e5c
YQ
3032014-09-24 Yao Qi <yao@codesourcery.com>
304
305 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
306 bitmask.
307
9a6cf368
GB
3082014-09-22 Gary Benson <gbenson@redhat.com>
309
310 * target.c (target_stop): Updated comment.
311
03f4463b
GB
3122014-09-22 Gary Benson <gbenson@redhat.com>
313
314 * target/target.h (target_stop_ptid): Renamed as...
315 (target_stop_and_wait): New function. Updated comment.
316 All uses updated.
317 (target_continue_ptid): Renamed as...
318 (target_continue_no_signal): New function. Updated comment.
319 All uses updated.
320
a25a5a45
PA
3212014-09-22 Pedro Alves <palves@redhat.com>
322
323 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
324 and "auto" merged.
325 * breakpoint.c (enum ugll_insert_mode): New enum.
326 (always_inserted_mode): Now a plain boolean.
327 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
328 (breakpoints_always_inserted_mode): Delete.
329 (breakpoints_should_be_inserted_now): New function.
330 (insert_breakpoints): Pass UGLL_INSERT to
331 update_global_location_list instead of calling
332 insert_breakpoint_locations manually.
333 (create_solib_event_breakpoint_1): New, factored out from ...
334 (create_solib_event_breakpoint): ... this.
335 (create_and_insert_solib_event_breakpoint): Use
336 create_solib_event_breakpoint_1 instead of calling
337 insert_breakpoint_locations manually.
338 (update_global_location_list): Change parameter type from boolean
339 to enum ugll_insert_mode. All callers adjusted. Adjust to use
340 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
341 (update_global_location_list_nothrow): Change parameter type from
342 boolean to enum ugll_insert_mode.
343 (_initialize_breakpoint): "breakpoint always-inserted" option is
344 now a boolean command. Update help text.
345 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
346 (breakpoints_should_be_inserted_now): New declaration.
347 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
348 Remove breakpoints_always_inserted_mode check.
349 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
350 * remote.c (remote_start_remote): Likewise.
351
04086b45
PA
3522014-09-22 Pedro Alves <palves@redhat.com>
353
354 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
355 (insert_breakpoints): Don't call insert_breakpoint_locations here.
356 Instead, pass UGLL_INSERT to update_global_location_list.
357 (update_global_location_list): Change parameter type from boolean
358 to enum ugll_insert_mode. All callers adjusted. Adjust to use
359 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
360 (create_solib_event_breakpoint_1): New, factored out from ...
361 (create_solib_event_breakpoint): ... this.
362 (create_and_insert_solib_event_breakpoint): Use
363 create_solib_event_breakpoint_1 instead of calling
364 insert_breakpoint_locations manually.
365 (update_global_location_list): Handle UGLL_INSERT.
366
44702360
PA
3672014-09-22 Pedro Alves <palves@redhat.com>
368
369 * breakpoint.c (enum ugll_insert_mode): New enum.
370 (update_global_location_list)
371 (update_global_location_list_nothrow): Change parameter type from
372 boolean to enum ugll_insert_mode. All callers adjusted.
373
93c6145a
JB
3742014-09-19 Joel Brobecker <brobecker@adacore.com>
375
376 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
377 SystemTap support in GDB.
378
89a5711c
DB
3792014-09-19 Don Breazeal <donb@codesourcery.com>
380
381 * linux-nat.c (linux_handle_extended_wait): Call
382 linux_ptrace_get_extended_event.
383 (wait_lwp): Call linux_is_extended_waitstatus.
384 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
385 and linux_is_extended_waitstatus.
386 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
387 linux_ptrace_get_extended_event.
388 (linux_ptrace_get_extended_event): New function.
389 (linux_is_extended_waitstatus): New function.
390 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
391 (linux_is_extended_waitstatus): New declarations.
392
c3b7b696
YQ
3932014-09-19 Yao Qi <yao@codesourcery.com>
394
395 * dwarf2read.c (dwarf_decode_lines): Update declaration.
396 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
397 comments. Callers update.
398 (dwarf_decode_lines): Likewise.
399 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
400 comments. Skip the line table if 'lowpc' is greater than
401 'address'. Don't check
402 dwarf2_per_objfile->has_section_at_zero.
403
2b4fd423
DE
4042014-09-18 Doug Evans <dje@google.com>
405
406 * NEWS: Mention new "producer" attribute of gdb.Symtab.
407 * python/py-symtab.c (stpy_get_producer): New function.
408 (symtab_object_getset): Add "producer" attribute.
409
5e43d467
UW
4102014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
411
412 PR gdb/17384
413 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
414 (do_captured_read_memory_integer): Remove.
415 (safe_read_memory_integer): Use target_read_memory directly instead
416 of catching errors in do_captured_read_memory_integer.
417
04e79979
MR
4182014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
419
420 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
421 not gdb/doc.
422
76aeec5b
SDJ
4232014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
424
425 * objc-lang.c (find_implementation_from_class): Remove dead code.
426
2f693f9d
SDJ
4272014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
428
429 PR cli/7233
430 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
431 "fprintf_unfiltered (gdb_stdlog...)".
432
bb9d5f81
PP
4332014-09-16 Patrick Palka <patrick@parcs.ath.cx>
434
435 PR breakpoints/12526
436 * breakpoint.h (struct watchpoint): New fields val_bitpos and
437 val_bitsize.
438 * breakpoint.c (watch_command_1): Use these fields to retain
439 bitfield information.
440 (extract_bitfield_from_watchpoint_value): New function.
441 (watchpoint_check): Use it.
442 (update_watchpoint): Use it. Optimize the address and length of a
443 HW watchpoint pointing to a bitfield.
444 * value.h (unpack_value_bitfield): New prototype.
445 * value.c (unpack_value_bitfield): Make extern.
446
05db5edd
ST
4472014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
448
449 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
450 x86-dregs.o.
451 * gnu-nat.c (inf_threads): New function.
452 * gnu-nat.h (inf_threads_ftype): New typedef.
453 (inf_threads): New declaration.
454 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
455 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
456 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
457 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
458 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
459 (i386_gnu_dr_get_control): New functions.
460 (reg_addr): New structure.
461 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
462 i386 debugging register hooks.
463 * NEWS: Mention this.
464
5a578da5
OJ
4652014-08-13 Omair Javaid <omair.javaid@linaro.org>
466
467 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
468 vector data transfer instructions.
469 (arm_record_coproc_data_proc): Updated.
470
f20f80dd
OJ
4712014-08-13 Omair Javaid <omair.javaid@linaro.org>
472
473 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
474 arm_record_exreg_ld_st_insn.
475 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
476 load/store insns.
477
851f26ae
OJ
4782014-08-13 Omair Javaid <omair.javaid@linaro.org>
479
480 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
481 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
482 processing instructions.
483
1e1b6563
OJ
4842014-08-13 Omair Javaid <omair.javaid@linaro.org>
485
486 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
487 for advance SIMD struct ld/st insn.
488 (thumb2_record_decode_insn_handler): Replace stub handler with
489 thumb2_record_asimd_struct_ld_st.
490
60cc5e93
OJ
4912014-08-13 Omair Javaid <omair.javaid@linaro.org>
492
493 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
494 for asimd, vfp and coprocessor insns.
495 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
496 and coprocessor insns.
497 (thumb2_record_coproc_insn): New function.
498 (thumb2_record_decode_insn_handler): Update coprocessor insns record
499 handlers.
500 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
501 opcode 110 insns.
502
81219e53
DE
5032014-09-13 Doug Evans <xdje42@gmail.com>
504
505 * NEWS: Mention new "queue-signal" command.
506 * infcmd.c (queue_signal_command): New function.
507 (_initialize_infcmd): Add new queue-signal command.
508
d36bf488
DE
5092014-09-13 Doug Evans <xdje42@gmail.com>
510
511 * linux-nat.c (wait_lwp): Add debugging printf.
512 (linux_nat_wait_1): Ditto.
513
f37f681c
PA
5142014-09-12 Pedro Alves <palves@redhat.com>
515
516 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
517 (create_and_insert_solib_event_breakpoint): New functions.
518 * breakpoint.h (create_and_insert_solib_event_breakpoint)
519 (remove_solib_event_breakpoints_at_next_stop): New declarations.
520 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
521 (remove_dbx_link_breakpoint): Delete function.
522 (insert_dbx_link_bpt_in_file): Use
523 create_and_insert_solib_event_breakpoint instead of
524 deprecated_insert_raw_breakpoint.
525 (procfs_wait): Don't check whether we hit __dbx_link here.
526 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
527 here.
528 * solib-irix.c (base_breakpoint): Delete global.
529 (disable_break): Delete function.
530 (enable_break): Use create_solib_event_breakpoint
531 instead of deprecated_insert_raw_breakpoint.
532 (irix_solib_handle_event): New function.
533 (irix_solib_create_inferior_hook): Don't run the target or disable
534 the mapping-complete breakpoint here.
535 (_initialize_irix_solib): Install irix_solib_handle_event as
536 so_ops->handle_event hook.
537
9d9bf2df
EBM
5382014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
539 Ulrich Weigand  <uweigand@de.ibm.com>
540
541 PR tdep/17379
542 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
543 instead of read_memory_unsigned_integer.
544
b006a80e
GB
5452014-09-12 Gary Benson <gbenson@redhat.com>
546
547 * nat/linux-waitpid.c: Include common-defs.h.
548 [GDBSERVER]: Add FIXME comment.
549 [!GDBSERVER]: Don't include defs.h or signal.h.
550 (linux_debug) [!GDBSERVER]: Remove empty block.
551
296b1496
GB
5522014-09-12 Gary Benson <gbenson@redhat.com>
553
554 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
555 Don't include defs.h or server.h.
556
53f81362
GB
5572014-09-12 Gary Benson <gbenson@redhat.com>
558
559 * nat/linux-btrace.c: Include common-defs.h.
560 Don't include defs.h, server.h or gdbthread.h.
561 * nat/linux-btrace.h (struct target_ops): New forward declaration.
562
727605ca
GB
5632014-09-12 Gary Benson <gbenson@redhat.com>
564
565 * common/agent.c: Include common-defs.h.
566 Don't include defs.h or server.h.
567 * common/buffer.c: Likewise.
568 * common/common-debug.c: Likewise.
569 * common/common-utils.c: Likewise.
570 * common/errors.c: Likewise.
571 * common/filestuff.c: Likewise.
572 * common/format.c: Likewise.
573 * common/gdb_vecs.c: Likewise.
574 * common/print-utils.c: Likewise.
575 * common/ptid.c: Likewise.
576 * common/rsp-low.c: Likewise.
577 * common/signals.c: Likewise.
578 * common/vec.c: Likewise.
579 * common/xml-utils.c: Likewise.
580 * nat/linux-osdata.c: Likewise.
581 * nat/linux-procfs.c: Likewise.
582 * nat/linux-ptrace.c: Likewise.
583 * nat/mips-linux-watch.c: Likewise.
584 * target/waitstatus.c: Likewise.
585
361c8ade
GB
5862014-09-12 Tom Tromey <tromey@redhat.com>
587 Gary Benson <gbenson@redhat.com>
588
589 * common/common-regcache.h: New file.
590 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
591 * regcache.h: Include common-regcache.h.
592 (regcache_read_pc): Don't declare.
593 * regcache.c (get_thread_regcache_for_ptid): New function.
594 * nat/linux-btrace.c: Don't include regcache.h.
595 Include common-regcache.h.
596 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
597
a01cbb49
TS
5982014-09-11 Thomas Schwinge <thomas@codesourcery.com>
599
600 * regcache.h (struct regset): Declare.
601
98880d46
PA
6022014-09-11 Pedro Alves <palves@redhat.com>
603
604 PR gdb/17347
605 * main.c: Include "infrun.h".
606 (catch_command_errors, catch_command_errors_const): Wait for the
607 foreground command to complete.
608 * top.c (maybe_wait_sync_command_done): New function, factored out
609 from ...
610 (maybe_wait_sync_command_done): ... here.
611 * top.h (maybe_wait_sync_command_done): New declaration.
612
bd9269f7
GB
6132014-09-11 Tom Tromey <tromey@redhat.com>
614 Gary Benson <gbenson@redhat.com>
615
616 * common/symbol.h: New file.
617 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
618 * minsyms.c (find_minimal_symbol_address): New function.
619 * common/agent.c: Include common/symbol.h.
620 [!GDBSERVER]: Don't include objfiles.h.
621 (agent_look_up_symbols): Use find_minimal_symbol_address.
622
f8c1d06b
GB
6232014-09-11 Gary Benson <gbenson@redhat.com>
624
625 * target/target.h (target_stop_ptid, target_continue_ptid):
626 Declare.
627 * target.c (target_stop_ptid, target_continue_ptid): New
628 functions.
629 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
630 (agent_run_command): Always use target_stop_ptid and
631 target_continue_ptid.
632
721ec300
GB
6332014-09-11 Tom Tromey <tromey@redhat.com>
634 Gary Benson <gbenson@redhat.com>
635
636 * target/target.h: New file.
637 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
638 * target.h: Include target/target.h.
639 (target_read_memory, target_write_memory): Don't declare.
640 * target.c (target_read_uint32): New function.
641 * common/agent.c: Include target/target.h.
642 [!GDBSERVER]: Don't include target.h.
643 (helper_thread_id): Type changed to uint32_t.
644 (agent_get_helper_thread_id): Use target_read_uint32.
645 (agent_run_command): Always use target_read_memory and
646 target_write_memory.
647 (agent_capability): Type changed to uint32_t.
648 (agent_capability_check): Use target_read_uint32.
649
c5e92cca
GB
6502014-09-11 Gary Benson <gbenson@redhat.com>
651
652 * common/common-debug.h (show_debug_regs): Declare.
653 * common/common-debug.c (show_debug_regs): Define.
654 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
655 all uses with show_debug_regs. Replace all uses that considered
656 debug_hw_points as a multi-value integer with straight boolean
657 uses.
658 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
659 with show_debug_regs.
660 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
661 all uses with show_debug_regs.
662 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
663 uses with show_debug_regs.
664
eeef931a
UW
6652014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
666
667 * findvar.c (address_from_register): Handle targets requiring
668 a special conversion routine even for plain pointer types.
669
8efa9855
UW
6702014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
671
672 * rs6000-nat.c (exec_one_dummy_insn): Remove.
673 (store_register): Do not call exec_one_dummy_insn.
674
eb479039
JB
6752014-09-10 Joel Brobecker <brobecker@adacore.com>
676
677 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
678 dereference it first. Use value_enclosing_type instead of
679 value_type.
680 (ada_array_length): Likewise.
681
deede10c
JB
6822014-09-10 Joel Brobecker <brobecker@adacore.com>
683
684 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
685 Adjust function implementation and documentation accordingly.
686 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
687 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
688 Update call to ada_value_ptr_subscript.
689
7828a5f5
JB
6902014-09-10 Joel Brobecker <brobecker@adacore.com>
691
692 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
693 instead of VAL's type.
694
35782f14
JB
6952014-09-10 Joel Brobecker <brobecker@adacore.com>
696
697 * amd64-linux-nat.c: Add <sys/uio.h> #include.
698
d342a0da
DE
6992014-09-09 Doug Evans <xdje42@gmail.com>
700
701 PR guile/17367
702 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
703 last parameter to pkg-config, not first.
704 * configure.ac: Pass --with-guile provided pkg-config path to
705 GDB_GUILE_PROGRAM_NAMES.
706 * configure: Regenerate.
707
b4a3d263
GKB
7082014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
709
710 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
711 Bertazi".
712
6e466374
MR
7132014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
714
715 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
716 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
717 the list of sections determining GDB_OSABI_IRIX.
718
a1ada89a
JH
7192014-09-09 James Hogan <james.hogan@imgtec.com>
720
721 * MAINTAINERS (Write After Approval): Add "James Hogan".
722
86db008d
JH
7232014-09-09 James Hogan <james.hogan@imgtec.com>
724
725 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
726
72fde3df
JB
7272014-09-09 Joel Brobecker <brobecker@adacore.com>
728
729 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
730
92d8d229
DE
7312014-09-08 Doug Evans <xdje42@gmail.com>
732
733 PR 17247
734 * guile.c: #include <signal.h>.
735 (_initialize_guile): Block SIGCHLD while initializing Guile.
736
737 Replaces the following, which is reverted.
738
739 2014-07-26 Doug Evans <xdje42@gmail.com>
740
741 PR 17185
742 * configure.ac: Add check for header gc/gc.h.
743 Add check for function setenv.
744 * configure: Regenerate.
745 * config.in: Regenerate.
746 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
747
d81412aa
DE
7482014-09-08 Doug Evans <xdje42@gmail.com>
749
750 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
751 with named constant. Fix style of pointer comparison.
752 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
753
a9f116cb
GKB
7542014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
755
756 PR gdb/17035
757 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
758 decide whether we display the command on "show user".
759 * cli/cli-script.c (show_user_1): Only verify cmdlines after
760 printing command name.
761 * cli/cli-decode.h (cli_user_command_p): Declare new function.
762 * cli/cli-decode.c (cli_user_command_p): Create helper function
763 to verify whether cmd_list_element is a user-defined command.
764
c75bd3a2
JK
7652014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
766
767 PR python/17355
768 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
769 Fix goto out of TRY_CATCH.
770
faa42425 7712014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 772 Tom Tromey <tromey@redhat.com>
faa42425
DE
773
774 PR 15276
775 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
776 $_any_caller_matches.
777 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
778 * python/lib/gdb/function/caller_is.py: New file.
779
0d41ba00
DE
7802014-09-06 Doug Evans <xdje42@gmail.com>
781
782 * infcmd.c (program_info): Fix typo.
783
474ca4f6
SDJ
7842014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
785
786 PR gdb/17235
787 * stap-probe.c (stap_parse_single_operand): Delete unused variable
788 'number'. New variable 'has_digit'. Rewrite code to deal with
789 subexpressions on SDT probes.
790
ebf13736
PA
7912014-09-04 Pedro Alves <palves@redhat.com>
792
793 * c-exp.y (parse_number): Skip handling base-switching prefixes if
794 the input is only one character long.
795
eb0b0463
SDJ
7962014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
797
798 PR fortran/17237
799 * f-valprint.c (f_val_print): Specify the correct print option to
800 use when printing integer values.
801
5ee44bfa
GB
8022014-09-04 Gary Benson <gbenson@redhat.com>
803
804 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
805 Remove code to cope with LWPs wrapped as PIDs.
806 Add assertions to ensure no wrapped LWPs are passed.
807
4875ffdb
PA
8082014-09-04 Pedro Alves <palves@redhat.com>
809
810 * value.c (value_ranges_copy_adjusted): New function, factored out
811 from ...
812 (value_contents_copy_raw): ... here.
813 (unpack_value_bits_as_long_1): Rename back to ...
814 (unpack_bits_as_long): ... this. Remove 'original_value' and
815 'result' parameters. Change return type to LONGEST.
816 (unpack_value_bits_as_long): Delete.
817 (unpack_value_field_as_long_1): Delete.
818 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
819 (unpack_value_bitfield): New function.
820 (value_field_bitfield): Reimplement using unpack_value_bitfield.
821 (value_fetch_lazy): Use unpack_value_bitfield.
822 * value.h (unpack_value_bits_as_long): Delete declaration.
823
5f3b99cf
SS
8242014-09-03 Sasha Smundak <asmundak@google.com>
825
826 * python/py-frame.c (frapy_read_register): New function.
827
ac740bc7
JH
8282014-09-03 James Hogan <james.hogan@imgtec.com>
829
830 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
831 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
832
7d793aa9
SDJ
8332014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
834
835 PR python/16699
836 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
837 function.
838 (add_cmd): Set "completer_handle_brkchars" to NULL.
839 * cli/cli-decode.h (struct cmd_list_element)
840 <completer_handle_brkchars>: New field.
841 * command.h (completer_ftype_void): New typedef.
842 (set_cmd_completer_handle_brkchars): New prototype.
843 * completer.c (set_gdb_completion_word_break_characters): New
844 function.
845 (complete_line_internal): Call "completer_handle_brkchars"
846 callback from command.
847 * completer.h: Include "command.h".
848 (set_gdb_completion_word_break_characters): New prototype.
849 * python/py-cmd.c (cmdpy_completer_helper): New function.
850 (cmdpy_completer_handle_brkchars): New function.
851 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
852 (cmdpy_init): Set completer_handle_brkchars to
853 cmdpy_completer_handle_brkchars.
854
97ea6506
GB
8552014-09-03 Gary Benson <gbenson@redhat.com>
856
857 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
858 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
859 Loop conditions changed to equivalent form.
860 (struct x86_debug_reg_state): Updated dr_ref_count comment.
861 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
862 ALL_DEBUG_ADDRESS_REGISTERS.
863
d1437815
JB
8642014-09-03 Joel Brobecker <brobecker@adacore.com>
865
866 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
867 description fix.
868
9b94fcf1
DE
8692014-09-02 Doug Evans <dje@google.com>
870
871 * typeprint.c (find_global_typedef): Fix comment.
872
df7e5265
GB
8732014-09-02 Gary Benson <gbenson@redhat.com>
874
875 * i386-nat.h: Renamed as...
876 * x86-nat.h: New file. All type, function and variable name
877 prefixes changed from "i386_" to "x86_". All references updated.
878 * i386-nat.c: Renamed as...
879 * x86-nat.c: New file. All type, function and variable name
880 prefixes changed from "i386_" to "x86_". All references updated.
881 * common/i386-xstate.h: Renamed as...
882 * common/x86-xstate.h: New file. All type, function and variable
883 name prefixes changed from "i386_" to "x86_". All references
884 updated.
885 * nat/i386-cpuid.h: Renamed as...
886 * nat/x86-cpuid.h: New file. All type, function and variable name
887 prefixes changed from "i386_" to "x86_". All references updated.
888 * nat/i386-gcc-cpuid.h: Renamed as...
889 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
890 name prefixes changed from "i386_" to "x86_". All references
891 updated.
892 * nat/i386-dregs.h: Renamed as...
893 * nat/x86-dregs.h: New file. All type, function and variable name
894 prefixes changed from "i386_" to "x86_". All references updated.
895 * nat/i386-dregs.c: Renamed as...
896 * nat/x86-dregs.c: New file. All type, function and variable name
897 prefixes changed from "i386_" to "x86_". All references updated.
898
1c3569d4
MR
8992014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
900
901 * varobj.c (_initialize_varobj): Move to the end of file.
902
ff55e1b5
GB
9032014-08-29 Gary Benson <gbenson@redhat.com>
904
905 * common/common-exceptions.h: New file.
906 * common/common-exceptions.c: Likewise.
907 * Makefile.in (SFILES): Add common/common-exceptions.c.
908 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
909 (COMMON_OBS): Add common-exceptions.o.
910 (common-exceptions.o): New rule.
911 * exceptions.h (common-exceptions.h): Include.
912 (gdb_setjmp.h): Do not include.
913 (return_reason): Moved to common-exceptions.h.
914 (enum return_reason): Likewise.
915 (RETURN_MASK): Likewise.
916 (typedef return_mask): Likewise.
917 (enum errors): Likewise.
918 (struct gdb_exception): Likewise.
919 (exceptions_state_mc_init): Likewise.
920 (exceptions_state_mc_action_iter): Likewise.
921 (exceptions_state_mc_action_iter_1): Likewise.
922 (TRY_CATCH): Likewise.
923 (throw_exception): Likewise.
924 (throw_verror): Likewise.
925 (throw_vquit): Likewise.
926 (throw_error): Likewise.
927 (throw_quit): Likewise.
928 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
929 (enum catcher_action): Likewise.
930 (struct catcher): Likewise.
931 (current_catcher): Likewise.
932 (catcher_list_size): Likewise.
933 (exceptions_state_mc_init): Likewise.
934 (catcher_pop): Likewise.
935 (exceptions_state_mc): Likewise.
936 (exceptions_state_mc_action_iter): Likewise.
937 (exceptions_state_mc_action_iter_1): Likewise.
938 (throw_exception): Likewise.
939 (exception_messages): Likewise.
940 (exception_messages_size): Likewise.
941 (throw_it): Likewise.
942 (throw_verror): Likewise.
943 (throw_vquit): Likewise.
944 (throw_error): Likewise.
945 (throw_quit): Likewise.
946 (prepare_to_throw_exception): New function.
947
e9bcb658
GB
9482014-08-29 Gary Benson <gbenson@redhat.com>
949
950 * common/gdb_setjmp.h: New file.
951 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
952 * configure.ac: Move sigsetjmp check...
953 * common/common.m4: ...here.
954 * configure: Regenerate.
955 * cp-support.c (SIGJMP_BUF): Delete.
956 (SIGSETJMP): Likewise.
957 (SIGLONGJMP): Likewise.
958 * exceptions.h (gdb_setjmp.h): Include.
959 (setjmp.h): Do not include.
960 (EXCEPTIONS_SIGJMP_BUF): Delete.
961 (EXCEPTIONS_SIGSETJMP): Likewise.
962 (EXCEPTIONS_SIGLONGJMP): Likewise.
963 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
964 from gdb_setjmp.h.
965 * exceptions.c: Likewise.
966
e3180625
GB
9672014-08-29 Gary Benson <gbenson@redhat.com>
968
969 * cleanups.h: Moved to...
970 * common/cleanups.h: New file.
971 * cleanups.c: Moved to...
972 * common/cleanups.c: New file. Include common-defs.h and
973 cleanups.h. Do not include defs.h.
974 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
975 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
976 (cleanups.o): New rule.
977
e3d6ba5d
GB
9782014-08-29 Gary Benson <gbenson@redhat.com>
979
980 * common/errors.h (internal_warning): New declaration.
981 (internal_vwarning): Likewise.
982 * common/errors.c (internal_warning): New function.
983 * utils.h (internal_warning): Don't declare.
984 (internal_vwarning): Likewise.
985 * utils.c (internal_warning): Removed.
986
075c7033
GB
9872014-08-29 Gary Benson <gbenson@redhat.com>
988
989 * main.c (captured_main): Use warning during startup.
990 Prefix startup warning messages with command name.
991
91b35fd0
GB
9922014-08-29 Gary Benson <gbenson@redhat.com>
993
994 * main.c (captured_main): Handle usage errors with error.
995
b1ec390e
GB
9962014-08-29 Gary Benson <gbenson@redhat.com>
997
998 * go32-nat.c (go32_create_inferior): Replace a fprintf/
999 exit pair with a call to error. Wrap the message with _().
1000
fd0ef3dd
GB
10012014-08-29 Gary Benson <gbenson@redhat.com>
1002
1003 * main.c (captured_main): Replace a fprintf/exit
1004 pair with a call to error. Wrap the message with _().
1005
e0e6bcab
GB
10062014-08-29 Gary Benson <gbenson@redhat.com>
1007
1008 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1009 pairs with calls to error. Wrap the message with _().
1010
0d2f5c07
GB
10112014-08-29 Gary Benson <gbenson@redhat.com>
1012
1013 * utils.c (vwarning): Protect calls to target_terminal_ours
1014 and wrap_here.
1015
5df43998
GB
10162014-08-29 Gary Benson <gbenson@redhat.com>
1017
1018 * exceptions.c (print_flush): Protect calls to
1019 target_terminal_ours and wrap_here.
1020
2437fd32
GB
10212014-08-29 Gary Benson <gbenson@redhat.com>
1022
1023 * utils.h (filtered_printing_initialized): New declaration.
1024 * utils.c (abort_with_message): New function.
1025 (internal_vproblem): Use abort_with_message for first level
1026 recursive internal problems, and if gdb_stderr is not set up.
1027 Protect calls to target_terminal_ours, begin_line and query.
1028
f1f58506
DE
10292014-08-28 Doug Evans <dje@google.com>
1030
1031 * symtab.c (in_prologue): Move definition to better spot.
1032 (skip_prologue_using_sal): Ditto.
1033
aab2f208
DE
10342014-08-28 Doug Evans <dje@google.com>
1035
1036 * symtab.c (find_function_start_sal): Move definition to better spot.
1037
6b65d1b6
YQ
10382014-08-28 Yao Qi <yao@codesourcery.com>
1039
1040 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1041 found_stack_adjust in forward scan. Remove condition check
1042 on found_stack_adjust which is always true. Indent the code.
1043
a1b34d15
YQ
10442014-08-28 Yao Qi <yao@codesourcery.com>
1045
1046 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1047 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1048 (dwarf_decode_lines): Remove argument
1049 want_line_info. Remove condition check on want_line_info.
1050 Callers update.
1051
d5962de5
DE
10522014-08-27 Doug Evans <dje@google.com>
1053
1054 * dwarf2read.c (dwarf_record_line): Fix typo.
1055
9b139002
SDJ
10562014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1057
1058 * target.h (struct target_ops::to_terminal_save_ours): Remove
1059 declaration.
1060 (target_terminal_save_ours): Remove macro.
1061 * target-delegates.c: Regenerate.
1062 * inf-child.c (inf_child_target): Don't set the nonexistent
1063 field to_terminal_save_ours.
1064 * inferior.h (child_terminal_save_ours): Remove declaration.
1065 * terminal.h (gdb_save_tty_state): New declaration.
1066 * inflow.c (child_terminal_save_ours): Rename to ...
1067 (gdb_save_tty_state): ... this.
1068 * tui/tui.c: Include terminal.h.
1069 (tui_enable): Use gdb_save_tty_state instead of
1070 target_terminal_save_ours.
1071 (tui_disable): Likewise.
1072
9debeba0
DE
10732014-08-25 Doug Evans <dje@google.com>
1074
1075 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1076 Pass NULL instead of 0 for context pointer.
1077
428fc5fc
YQ
10782014-08-25 Yao Qi <yao@codesourcery.com>
1079
1080 * dwarf2read.c: Fix grammatical error.
1081
cdc07690
YQ
10822014-08-24 Yao Qi <yao@codesourcery.com>
1083
1084 * dwarf2read.c (scan_partial_symbols): Update comments.
1085 Rename argument 'need_pc' with 'set_addrmap'.
1086 (add_partial_namespace): Rename argument 'need_pc' with
1087 'set_addrmap'.
1088 (add_partial_module): Likewise.
1089 (add_partial_subprogram): Likewise. Update comments.
1090 (dwarf2_name): Fix typo.
1091
a05a36a5
DE
10922014-08-22 Doug Evans <dje@google.com>
1093
1094 PR 17276
1095 * dwarf2read.c (dwarf_record_line_p): New function.
1096 (dwarf_decode_lines_1): Ignore subsequent line number entries
1097 for the same line if any entry had a non-zero discriminator.
1098
252a6764
DE
10992014-08-22 Doug Evans <dje@google.com>
1100
1101 * buildsym.h (record_line_ftype): New typedef.
1102 (record_line): Use it.
1103 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1104 (dwarf_decode_lines_1): Call them.
1105
510db052
YQ
11062014-08-22 Yao Qi <yao@codesourcery.com>
1107
1108 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1109 (ctf_end): Remove code.
1110
22fd09ae
JK
11112014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1112
1113 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1114 (linux_make_corefile_notes): call update_thread_list, protected against
1115 exceptions.
1116
656e8868
PA
11172014-08-21 Pedro Alves <palves@redhat.com>
1118
1119 * infcmd.c (attach_command): Remove comment.
1120
de589d04
WN
11212014-08-21 Bin Cheng <bin.cheng@arm.com>
1122
1123 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1124 unsigned LONGEST to ULONGEST.
1125
2a31c623
PA
11262014-08-20 Pedro Alves <palves@redhat.com>
1127
1128 * Makefile.in (check-read1): New rule.
1129
d36430db
JB
11302014-08-20 Joel Brobecker <brobecker@adacore.com>
1131
1132 * value.c (value_from_contents_and_address): Strip resolved_type's
1133 typedef layers before checking its TYPE_DATA_LOCATION.
1134
000339af
PA
11352014-08-20 Pedro Alves <palves@redhat.com>
1136
1137 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1138
5f52445b
YQ
11392014-08-20 Yao Qi <yao@codesourcery.com>
1140
1141 * amd64-tdep.c (amd64_classify): Add a blank line after the
1142 example. Move "*/" to a new line.
1143 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1144 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1145 * dwarf2read.c (psymtab_include_file_name): Likewise.
1146
9a0dc9e3
PA
11472014-08-19 Andrew Burgess <aburgess@broadcom.com>
1148 Pedro Alves <palves@redhat.com>
1149
1150 PR symtab/14604
1151 PR symtab/14605
1152 * ada-lang.c (coerce_unspec_val_to_type): Use
1153 value_contents_copy_raw.
1154 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1155 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1156 * cp-valprint.c (cp_print_value_fields): Let the common printing
1157 code handle optimized out values.
1158 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1159 * d-valprint.c (dynamic_array_type): Use
1160 value_bits_any_optimized_out.
1161 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1162 check_any_valid fields.
1163 (check_pieced_value_bits): Delete and inline ...
1164 (check_pieced_synthetic_pointer): ... here.
1165 (check_pieced_value_validity): Delete.
1166 (check_pieced_value_invalid): Delete.
1167 (pieced_value_funcs): Remove check_validity and check_any_valid
1168 fields.
1169 (read_pieced_value): Use mark_value_bits_optimized_out.
1170 (write_pieced_value): Switch to use
1171 mark_value_bytes_optimized_out.
1172 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1173 of assuming the whole value is optimized out.
1174 * findvar.c (read_frame_register_value): Remove special handling
1175 of optimized out registers.
1176 (value_from_register): Use mark_value_bytes_optimized_out.
1177 * frame-unwind.c (frame_unwind_got_optimized): Use
1178 mark_value_bytes_optimized_out.
1179 * jv-valprint.c (java_value_print): Adjust.
1180 (java_print_value_fields): Let the common printing code handle
1181 optimized out values.
1182 * mips-tdep.c (mips_print_register): Remove special handling of
1183 optimized out registers.
1184 * opencl-lang.c (lval_func_check_validity): Delete.
1185 (lval_func_check_any_valid): Delete.
1186 (opencl_value_funcs): Remove check_validity and check_any_valid
1187 fields.
1188 * p-valprint.c (pascal_object_print_value_fields): Let the common
1189 printing code handle optimized out values.
1190 * stack.c (read_frame_arg): Remove special handling of optimized
1191 out values. Fetch both VAL and ENTRYVAL before comparing
1192 contents. Adjust to value_available_contents_eq rename.
1193 * valprint.c (valprint_check_validity)
1194 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1195 (val_print_array_elements): Adjust.
1196 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1197 (value_bits_any_optimized_out): New function.
1198 (value_entirely_covered_by_range_vector): New function, factored
1199 out from value_entirely_unavailable.
1200 (value_entirely_unavailable): Reimplement.
1201 (value_entirely_optimized_out): New function.
1202 (insert_into_bit_range_vector): New function, factored out from
1203 mark_value_bits_unavailable.
1204 (mark_value_bits_unavailable): Reimplement.
1205 (struct ranges_and_idx): New struct.
1206 (find_first_range_overlap_and_match): New function, factored out
1207 from value_available_contents_bits_eq.
1208 (value_available_contents_bits_eq): Rename to ...
1209 (value_contents_bits_eq): ... this. Check both unavailable
1210 contents and optimized out contents.
1211 (value_available_contents_eq): Rename to ...
1212 (value_contents_eq): ... this.
1213 (allocate_value_lazy): Remove reference to the old optimized_out
1214 boolean.
1215 (allocate_optimized_out_value): Use
1216 mark_value_bytes_optimized_out.
1217 (require_not_optimized_out): Adjust to check whether the
1218 optimized_out vec is empty.
1219 (ranges_copy_adjusted): New function, factored out from
1220 value_contents_copy_raw.
1221 (value_contents_copy_raw): Also copy the optimized out ranges.
1222 Assert the destination ranges aren't optimized out.
1223 (value_contents_copy): Update comment, remove call to
1224 require_not_optimized_out.
1225 (value_contents_equal): Adjust to check whether the optimized_out
1226 vec is empty.
1227 (set_value_optimized_out, value_optimized_out_const): Delete.
1228 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1229 New functions.
1230 (value_entirely_optimized_out, value_bits_valid): Delete.
1231 (value_copy): Take a VEC copy of the 'optimized_out' field.
1232 (value_primitive_field): Remove special handling of optimized out.
1233 (value_fetch_lazy): Assert that lazy values have no unavailable
1234 regions. Use value_bits_any_optimized_out. Remove some special
1235 handling for optimized out values.
1236 * value.h: Add intro comment about <optimized out> and
1237 <unavailable>.
1238 (struct lval_funcs): Remove check_validity and check_any_valid
1239 fields.
1240 (set_value_optimized_out, value_optimized_out_const): Remove.
1241 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1242 New declarations.
1243 (value_bits_any_optimized_out): New declaration.
1244 (value_bits_valid): Delete declaration.
1245 (value_available_contents_eq): Rename to ...
1246 (value_contents_eq): ... this, and extend comments.
1247
6694c411
JK
12482014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1249
1250 Fix -fsanitize=address on unreadable inferior strings.
1251 * valprint.c (val_print_string): Fix access before BUFFER.
1252
89a1c21a
SM
12532014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1254
1255 * target.c (target_struct_size): Remove.
1256 (target_struct_allocsize): Remove.
1257 (DEFAULT_ALLOCSIZE): Remove.
1258 (target_ops_p): New typedef.
1259 (DEF_VEC_P (target_ops_p)): New vector type.
1260 (target_structs): Change type to VEC (target_ops_p).
1261 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1262 (find_default_run_target): Rewrite for loop following changes to
1263 target_structs.
1264
cb417230
JB
12652014-08-19 Joel Brobecker <brobecker@adacore.com>
1266
1267 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1268 Adjust code accordingly. Adjust function description comment.
1269
817e0957
YQ
12702014-08-19 Yao Qi <yao@codesourcery.com>
1271
1272 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1273 types.
1274
2974be62
AM
12752014-08-19 Alan Modra <amodra@gmail.com>
1276
1277 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1278 * config.in: Regenerate.
1279 * configure: Regenerate.
1280
34abf635
GB
12812014-08-19 Tom Tromey <tromey@redhat.com>
1282 Gary Benson <gbenson@redhat.com>
1283
1284 * common/common-debug.h: New file.
1285 * common/common-debug.c: Likewise.
1286 * debug.c: Likewise.
1287 * Makefile.in (SFILES): Add common/common-debug.c.
1288 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1289 (COMMON_OBS): Add common-debug.o and debug.o.
1290 (common-debug.o): New rule.
1291 * common/common-defs.h: Include common-debug.h.
1292 * common/agent.c (debug_agent_printf): New function.
1293 (DEBUG_AGENT): Redefine.
1294 * nat/i386-dregs.c (debug_printf): Undefine.
1295
f6e94d78
GB
12962014-08-19 Gary Benson <gbenson@redhat.com>
1297
1298 * common/common-defs.h: Include print-utils.h.
1299 * utils.h: Do not include print-utils.h.
1300
9239eeab
GB
13012014-08-19 Tom Tromey <tromey@redhat.com>
1302 Gary Benson <gbenson@redhat.com>
1303
1304 * common/common-types.h: New file.
1305 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1306 * common/common-defs.h: Include common-types.h.
1307 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1308 (ULONGEST): Remove.
1309
ef87c8bb
GB
13102014-08-19 Tom Tromey <tromey@redhat.com>
1311 Gary Benson <gbenson@redhat.com>
1312
1313 * common/errors.h: New file.
1314 * common/errors.c: Likewise.
1315 * Makefile.in (SFILES): Add common/errors.c.
1316 (HFILES_NO_SRCDIR): Add common/errors.h.
1317 (COMMON_OBS): Add errors.o.
1318 (errors.o): New rule.
1319 * common/common-defs.h: Include errors.h.
1320 * utils.h (perror_with_name, error, verror, warning, vwarning):
1321 Don't declare.
1322 * common/common-utils.h: (malloc_failure, internal_error):
1323 Likewise.
1324
196a707b
GB
13252014-08-19 Gary Benson <gbenson@redhat.com>
1326
1327 * utils.c (internal_vproblem): Always print the message.
1328
ded4fc8f
DE
13292014-08-18 Doug Evans <dje@google.com>
1330
1331 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1332
950c97d8
JB
13332014-08-18 Joel Brobecker <brobecker@adacore.com>
1334
1335 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1336 Return 0 if TYPE is dynamic.
1337 (print_range): Add handling of dynamic ranges.
1338
3cdcd0ce
JB
13392014-08-18 Keven Boell <keven.boell@intel.com>
1340 Joel Brobecker <brobecker@adacore.com>
1341
1342 * gdbtypes.h (struct main_type): Add field "data_location".
1343 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1344 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1345 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1346 a dynamic data location.
1347 (resolve_dynamic_type): Add DW_AT_data_location handling.
1348 (copy_recursive, copy_type): Copy the data_location information
1349 when present.
1350 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1351 * value.c (value_from_contents_and_address): Add
1352 DW_AT_data_location handling.
1353
08412b07
JB
13542014-08-18 Keven Boell <keven.boell@intel.com>
1355 Joel Brobecker <brobecker@adacore.com>
1356
1357 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1358 field "get_object_address".
1359 * dwarf2expr.c (execute_stack_op): Add handling for
1360 DW_OP_push_object_address.
1361 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1362 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1363 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1364 (dwarf_expr_get_obj_addr): New function.
1365 (dwarf_expr_ctx_funcs): Add get_object_address field.
1366 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1367 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1368 (dwarf2_evaluate_property): Add parameter "address". Use it.
1369 (needs_get_obj_addr): New function.
1370 (needs_frame_ctx_funcs): Add get_object_address field.
1371 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1372 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1373 (resolve_dynamic_array): Likewise.
1374
84754697
JB
13752014-08-18 Joel Brobecker <brobecker@adacore.com>
1376
1377 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1378 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1379 fixed value for records and unions for which some GNAT encodings
1380 are present.
1381
da5c522f
JB
13822014-08-18 Joel Brobecker <brobecker@adacore.com>
1383
1384 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1385 rewrite to avoid "else if" and "else" constructs. Should be
1386 a no-op in practice.
1387
0d72a7c3
JB
13882014-08-18 Joel Brobecker <brobecker@adacore.com>
1389
1390 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1391 of lexical block.
1392
e66d4446
SC
13932014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1394
1395 PR c++/17132
1396 * eval.c: Update all calls to find_overload_match.
1397 * valarith.c: Likewise.
1398 (value_user_defined_cpp_op, value_user_defined_op): New
1399 argument NOSIDE. Update all callers.
1400 * valops.c (find_overload_match): New argument NOSIDE.
1401 * value.h (find_overload_match): Update signature.
1402
940df408
SC
14032014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1404
1405 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1406 'items' methods instead of 'iteritems' method on dictionaries.
1407
699ca60a
DE
14082014-08-15 Doug Evans <dje@google.com>
1409
1410 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1411 closer to use.
1412
37780ee5
DE
14132014-08-15 Doug Evans <dje@google.com>
1414
1415 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1416
0ad93d4f
DE
14172014-08-15 Doug Evans <dje@google.com>
1418
1419 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1420
20d8c372
DE
14212014-08-15 Doug Evans <dje@google.com>
1422
1423 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1424 unused.
1425
cb039ba4
EZ
14262014-08-15 Eli Zaretskii <eliz@gnu.org>
1427
1428 * dcache.h: Include target.h, to avoid compile time warnings.
1429
eb7a547a
JB
14302014-08-15 Joel Brobecker <brobecker@adacore.com>
1431
1432 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1433 frame_info" partial declaration.
1434 * gdbarch.h: Regenerate.
1435
783cecc8
YQ
14362014-08-15 Yao Qi <yao@codesourcery.com>
1437
1438 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1439 Add parameter 'decode_for_pst_p'. Callers update.
1440
65c749e7
YQ
14412014-08-13 Yao Qi <yao@codesourcery.com>
1442
1443 PR build/17104
1444 * configure.ac: Use local variable 'pos'.
1445 * configure: Regenerated.
1446
d769e349
DE
14472014-08-11 Doug Evans <dje@google.com>
1448
1449 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1450 message, it is redundant with "Reading symbols from ..." message.
1451
24f1235e
DE
14522014-08-10 Doug Evans <xdje42@gmail.com>
1453
1454 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1455
dcd2e6ef
YQ
14562014-08-09 Yao Qi <yao@codesourcery.com>
1457
1458 PR remote/9053
1459 * remote.c (remote_xfer_partial): Remove dead code.
1460
070bdf0b
AA
14612014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1462
1463 * ia64-linux-tdep.c: Include "regset.h".
1464 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1465 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1466 (ia64_linux_supply_fpregset): New function.
1467 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1468 (ia64_linux_regset_from_core_section): New function.
1469 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1470 method.
1471
08f9f542
AA
14722014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1473
1474 * m68klinux-tdep.c: Include "regset.h".
1475 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1476 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1477 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1478 (m68k_linux_regset_from_core_section): New function.
1479 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1480 method.
1481
8f1cee41
AA
14822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1483
1484 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1485 function. Move logic to...
1486 (tilegx_linux_regmap): ... this new register map.
1487 (tilegx_linux_regset): Refer to register map, replace supply
1488 method by regcache_supply_regset, and add collect method.
1489 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1490 TILEGX_FIRST_EASY_REGNUM.
1491
c5741217
AA
14922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1493
1494 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1495 that calls regcache_supply_regset and handles the EPC register
1496 separately. Move main logic to...
1497 (score7_linux_gregmap): ... this new register map.
1498 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1499 (score7_linux_gregset): Refer to register map. Add collect method.
1500 (score7_linux_regset_from_core_section): Replace
1501 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1502 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1503 (struct regset): Delete unused forward declaraction.
1504 (struct pt_regs): Delete structure definition.
1505 (elf_gregset_t): Delete typedef.
1506
81580573
AA
15072014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1508
1509 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1510 (nios2_core_regset): Add collect method.
1511
ba199d7d
AA
15122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1513
1514 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1515 platform-independent and don't write to read-only input buffer.
1516 (m32r_linux_collect_gregset): New function.
1517 (m32r_linux_gregset): Add collect method.
1518
0006a9da
AA
15192014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1520
1521 * hppa-linux-tdep.c (greg_map): Rename to...
1522 (hppa_linux_gregmap): ... this. Also convert to
1523 regcache_map_entry format.
1524 (hppa_linux_supply_regset): Delete function.
1525 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1526 (hppa_linux_fpregmap): ... this new register map.
1527 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1528 register map, replace supply method by regcache_supply_regset, and
1529 add collect method regcache_collect_regset.
1530
901e1b23
AA
15312014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1532
1533 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1534 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1535 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1536 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1537 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1538 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1539 (frv_linux_supply_gregset): Replace main logic by call to
1540 regcache_supply_regset, but keep clearing gr32-gr63.
1541 (frv_linux_supply_fpregset): Delete function.
1542 (frv_linux_gregset): Refer to appropriate register map and add
1543 regcache_collect_regset as the collect method.
1544 (frv_linux_fpregset): Likewise. Also exchange the supply method
1545 by regcache_supply_regset.
1546
1d6e7555
AA
15472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1548
1549 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1550 by call to alpha_supply_int_regs.
1551 (alpha_linux_collect_gregset): New function.
1552 (alpha_linux_supply_fpregset): Replace logic by call to
1553 alpha_supply_fp_regs.
1554 (alpha_linux_collect_fpregset): New function.
1555 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1556
d4d793bf
AA
15572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1558
1559 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1560 by call to regcache_collect_regset.
1561 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1562 instead of aarch64_linux_supply_gregset/_fpregset.
1563 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1564 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1565 header file instead.
1566 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1567 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1568 functions. Move logic to ...
1569 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1570 register maps.
1571 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1572 refer to new register maps, replace *_regset_from_core by
1573 regcache_supply_regset, and also use regcache_collect_regset.
1574 * aarch64-linux-tdep.h: Include "regset.h".
1575 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1576 Delete prototypes.
1577 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1578 macros, moved from C source file.
1579 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1580 variable declarations.
1581
99b7da5d
AA
15822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1583
1584 * s390-linux-nat.c: Include "regset.h".
1585 (regmap_gregset): Delete macro.
1586 (s390_64_regmap_gregset): New register map for
1587 regcache_supply/_collect_regset.
1588 (s390_64_gregset): New regset.
1589 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1590 (regmap_fpregset): Delete macro.
1591 (s390_native_supply, s390_native_collect): Delete functions.
1592 (supply_gregset, fill_gregset): Replace s390-specific regmap
1593 handling by a call to regcache_supply/_collect_regset.
1594 (supply_fpregset, fill_fpregset): Call regcache_supply/
1595 _collect_regset instead of s390_native_supply/_collect.
1596 (fetch_regset, store_regset): Likewise. Also change the last
1597 parameter to a regset instead of a regmap.
1598 (s390_linux_fetch_inferior_registers)
1599 (390_linux_store_inferior_registers): Adjust last parameter in
1600 calls to fetch_regset and store_regset.
1601 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1602 (s390_gregmap): ... this. Also make static const and convert to
1603 regcache_map_entry format.
1604 (s390x_regmap_gregset): Delete.
1605 (s390_regmap_fpregset): Rename to...
1606 (s390_fpregmap): ... this. Make static const and convert to
1607 regcache_map_entry format.
1608 (s390_regmap_upper, s390_regmap_last_break)
1609 (s390x_regmap_last_break, s390_regmap_system_call)
1610 (s390_regmap_tdb): Likewise.
1611 (s390_supply_regset, s390_collect_regset): Remove functions.
1612 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1613 s390_supply_regset.
1614 (s390_gregset, s390_fpregset, s390_upper_regset)
1615 (s390_last_break_regset, s390x_last_break_regset)
1616 (s390_system_call_regset, s390_tdb_regset): Make global and
1617 replace s390_supply/_collect_regset by regcache_supply/
1618 _collect_regset.
1619 (s390x_gregset): Delete.
1620 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1621 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1622 (s390_regmap_fpregset, s390_regmap_last_break)
1623 (s390x_regmap_last_break, s390_regmap_system_call)
1624 (s390_regmap_tdb): Delete global variable declarations.
1625 (s390_gregset, s390_fpregset, s390_last_break_regset)
1626 (s390x_last_break_regset, s390_system_call_regset)
1627 (s390_tdb_regset): New global variable declarations.
1628
0b309272
AA
16292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1630
1631 * regcache.c: Include "regset.h".
1632 (regcache_transfer_regset): New local function.
1633 (regcache_supply_regset, regcache_collect_regset): New functions.
1634 * regcache.h (struct regcache_map_entry): New structure.
1635 (REGCACHE_MAP_SKIP): New enum value.
1636 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1637
7fefa8d7
AA
16382014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1639
1640 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1641 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1642 (ppc_linux_collect_gregset ): Likewise.
1643 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1644 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1645 (ppc_collect_vrregset): Likewise.
1646 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1647 Likewise.
1648
96c4f946
YQ
16492014-08-07 Yao Qi <yao@codesourcery.com>
1650
1651 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1652 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1653 * remote.c (remote_read_bytes): Likewise.
1654
fffbe6a8
YQ
16552014-08-07 Yao Qi <yao@codesourcery.com>
1656
1657 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1658
5ee8a82c
YQ
16592014-08-07 Yao Qi <yao@codesourcery.com>
1660
1661 PR remote/17230
1662 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1663 TARGET_XFER_OK instead of 0.
1664
bb974a24
GB
16652014-08-07 Gary Benson <gbenson@redhat.com>
1666
1667 * common/common-defs.h: Include errno.h.
1668 * defs.h: Do not include errno.h.
1669 * ada-typeprint.c: Likewise.
1670 * c-typeprint.c: Likewise.
1671 * core-regset.c: Likewise.
1672 * corefile.c: Likewise.
1673 * corelow.c: Likewise.
1674 * event-loop.c: Likewise.
1675 * f-typeprint.c: Likewise.
1676 * gnu-nat.c: Likewise.
1677 * go32-nat.c: Likewise.
1678 * i386gnu-nat.c: Likewise.
1679 * m2-typeprint.c: Likewise.
1680 * nat/linux-btrace.c: Likewise.
1681 * p-typeprint.c: Likewise.
1682 * procfs.c: Likewise.
1683 * remote-sim.c: Likewise.
1684 * rs6000-nat.c: Likewise.
1685 * target.c: Likewise.
1686 * typeprint.c: Likewise.
1687 * ui-file.c: Likewise.
1688 * valops.c: Likewise.
1689 * valprint.c: Likewise.
1690
6d3d12eb
GB
16912014-08-07 Gary Benson <gbenson@redhat.com>
1692
1693 * common/common-defs.h: Include string.h.
1694 * aarch64-tdep.c: Do not include string.h.
1695 * ada-exp.y: Likewise.
1696 * ada-lang.c: Likewise.
1697 * ada-lex.l: Likewise.
1698 * ada-typeprint.c: Likewise.
1699 * ada-valprint.c: Likewise.
1700 * aix-thread.c: Likewise.
1701 * alpha-linux-tdep.c: Likewise.
1702 * alpha-mdebug-tdep.c: Likewise.
1703 * alpha-nat.c: Likewise.
1704 * alpha-osf1-tdep.c: Likewise.
1705 * alpha-tdep.c: Likewise.
1706 * alphanbsd-tdep.c: Likewise.
1707 * amd64-dicos-tdep.c: Likewise.
1708 * amd64-linux-tdep.c: Likewise.
1709 * amd64-nat.c: Likewise.
1710 * amd64-sol2-tdep.c: Likewise.
1711 * amd64fbsd-tdep.c: Likewise.
1712 * amd64obsd-tdep.c: Likewise.
1713 * arch-utils.c: Likewise.
1714 * arm-linux-nat.c: Likewise.
1715 * arm-linux-tdep.c: Likewise.
1716 * arm-tdep.c: Likewise.
1717 * arm-wince-tdep.c: Likewise.
1718 * armbsd-tdep.c: Likewise.
1719 * armnbsd-nat.c: Likewise.
1720 * armnbsd-tdep.c: Likewise.
1721 * armobsd-tdep.c: Likewise.
1722 * avr-tdep.c: Likewise.
1723 * ax-gdb.c: Likewise.
1724 * ax-general.c: Likewise.
1725 * bcache.c: Likewise.
1726 * bfin-tdep.c: Likewise.
1727 * breakpoint.c: Likewise.
1728 * build-id.c: Likewise.
1729 * buildsym.c: Likewise.
1730 * c-exp.y: Likewise.
1731 * c-lang.c: Likewise.
1732 * c-typeprint.c: Likewise.
1733 * c-valprint.c: Likewise.
1734 * charset.c: Likewise.
1735 * cli-out.c: Likewise.
1736 * cli/cli-cmds.c: Likewise.
1737 * cli/cli-decode.c: Likewise.
1738 * cli/cli-dump.c: Likewise.
1739 * cli/cli-interp.c: Likewise.
1740 * cli/cli-logging.c: Likewise.
1741 * cli/cli-script.c: Likewise.
1742 * cli/cli-setshow.c: Likewise.
1743 * cli/cli-utils.c: Likewise.
1744 * coffread.c: Likewise.
1745 * common/agent.c: Likewise.
1746 * common/buffer.c: Likewise.
1747 * common/buffer.h: Likewise.
1748 * common/common-utils.c: Likewise.
1749 * common/filestuff.c: Likewise.
1750 * common/filestuff.c: Likewise.
1751 * common/format.c: Likewise.
1752 * common/print-utils.c: Likewise.
1753 * common/rsp-low.c: Likewise.
1754 * common/signals.c: Likewise.
1755 * common/vec.h: Likewise.
1756 * common/xml-utils.c: Likewise.
1757 * core-regset.c: Likewise.
1758 * corefile.c: Likewise.
1759 * corelow.c: Likewise.
1760 * cp-abi.c: Likewise.
1761 * cp-name-parser.y: Likewise.
1762 * cp-support.c: Likewise.
1763 * cp-valprint.c: Likewise.
1764 * cris-tdep.c: Likewise.
1765 * d-exp.y: Likewise.
1766 * darwin-nat.c: Likewise.
1767 * dbxread.c: Likewise.
1768 * dcache.c: Likewise.
1769 * demangle.c: Likewise.
1770 * dicos-tdep.c: Likewise.
1771 * disasm.c: Likewise.
1772 * doublest.c: Likewise.
1773 * dsrec.c: Likewise.
1774 * dummy-frame.c: Likewise.
1775 * dwarf2-frame.c: Likewise.
1776 * dwarf2loc.c: Likewise.
1777 * dwarf2read.c: Likewise.
1778 * elfread.c: Likewise.
1779 * environ.c: Likewise.
1780 * eval.c: Likewise.
1781 * event-loop.c: Likewise.
1782 * exceptions.c: Likewise.
1783 * exec.c: Likewise.
1784 * expprint.c: Likewise.
1785 * f-exp.y: Likewise.
1786 * f-lang.c: Likewise.
1787 * f-typeprint.c: Likewise.
1788 * f-valprint.c: Likewise.
1789 * fbsd-nat.c: Likewise.
1790 * findcmd.c: Likewise.
1791 * findvar.c: Likewise.
1792 * fork-child.c: Likewise.
1793 * frame.c: Likewise.
1794 * frv-linux-tdep.c: Likewise.
1795 * frv-tdep.c: Likewise.
1796 * gdb.c: Likewise.
1797 * gdb_bfd.c: Likewise.
1798 * gdbarch.c: Likewise.
1799 * gdbarch.sh: Likewise.
1800 * gdbtypes.c: Likewise.
1801 * gnu-nat.c: Likewise.
1802 * gnu-v2-abi.c: Likewise.
1803 * gnu-v3-abi.c: Likewise.
1804 * go-exp.y: Likewise.
1805 * go-lang.c: Likewise.
1806 * go32-nat.c: Likewise.
1807 * guile/guile.c: Likewise.
1808 * guile/scm-auto-load.c: Likewise.
1809 * hppa-hpux-tdep.c: Likewise.
1810 * hppa-linux-nat.c: Likewise.
1811 * hppanbsd-tdep.c: Likewise.
1812 * hppaobsd-tdep.c: Likewise.
1813 * i386-cygwin-tdep.c: Likewise.
1814 * i386-dicos-tdep.c: Likewise.
1815 * i386-linux-tdep.c: Likewise.
1816 * i386-nto-tdep.c: Likewise.
1817 * i386-sol2-tdep.c: Likewise.
1818 * i386-tdep.c: Likewise.
1819 * i386bsd-tdep.c: Likewise.
1820 * i386gnu-nat.c: Likewise.
1821 * i386nbsd-tdep.c: Likewise.
1822 * i386obsd-tdep.c: Likewise.
1823 * i387-tdep.c: Likewise.
1824 * ia64-libunwind-tdep.c: Likewise.
1825 * ia64-linux-nat.c: Likewise.
1826 * inf-child.c: Likewise.
1827 * inf-ptrace.c: Likewise.
1828 * inf-ttrace.c: Likewise.
1829 * infcall.c: Likewise.
1830 * infcmd.c: Likewise.
1831 * inflow.c: Likewise.
1832 * infrun.c: Likewise.
1833 * interps.c: Likewise.
1834 * iq2000-tdep.c: Likewise.
1835 * irix5-nat.c: Likewise.
1836 * jv-exp.y: Likewise.
1837 * jv-lang.c: Likewise.
1838 * jv-typeprint.c: Likewise.
1839 * jv-valprint.c: Likewise.
1840 * language.c: Likewise.
1841 * linux-fork.c: Likewise.
1842 * linux-nat.c: Likewise.
1843 * lm32-tdep.c: Likewise.
1844 * m2-exp.y: Likewise.
1845 * m2-typeprint.c: Likewise.
1846 * m32c-tdep.c: Likewise.
1847 * m32r-linux-nat.c: Likewise.
1848 * m32r-linux-tdep.c: Likewise.
1849 * m32r-rom.c: Likewise.
1850 * m32r-tdep.c: Likewise.
1851 * m68hc11-tdep.c: Likewise.
1852 * m68k-tdep.c: Likewise.
1853 * m68kbsd-tdep.c: Likewise.
1854 * m68klinux-nat.c: Likewise.
1855 * m68klinux-tdep.c: Likewise.
1856 * m88k-tdep.c: Likewise.
1857 * machoread.c: Likewise.
1858 * macrocmd.c: Likewise.
1859 * main.c: Likewise.
1860 * mdebugread.c: Likewise.
1861 * mem-break.c: Likewise.
1862 * memattr.c: Likewise.
1863 * memory-map.c: Likewise.
1864 * mep-tdep.c: Likewise.
1865 * mi/mi-cmd-break.c: Likewise.
1866 * mi/mi-cmd-disas.c: Likewise.
1867 * mi/mi-cmd-env.c: Likewise.
1868 * mi/mi-cmd-stack.c: Likewise.
1869 * mi/mi-cmd-var.c: Likewise.
1870 * mi/mi-cmds.c: Likewise.
1871 * mi/mi-console.c: Likewise.
1872 * mi/mi-getopt.c: Likewise.
1873 * mi/mi-interp.c: Likewise.
1874 * mi/mi-main.c: Likewise.
1875 * mi/mi-parse.c: Likewise.
1876 * microblaze-rom.c: Likewise.
1877 * microblaze-tdep.c: Likewise.
1878 * mingw-hdep.c: Likewise.
1879 * minidebug.c: Likewise.
1880 * minsyms.c: Likewise.
1881 * mips-irix-tdep.c: Likewise.
1882 * mips-linux-tdep.c: Likewise.
1883 * mips-tdep.c: Likewise.
1884 * mips64obsd-tdep.c: Likewise.
1885 * mipsnbsd-tdep.c: Likewise.
1886 * mipsread.c: Likewise.
1887 * mn10300-linux-tdep.c: Likewise.
1888 * mn10300-tdep.c: Likewise.
1889 * monitor.c: Likewise.
1890 * moxie-tdep.c: Likewise.
1891 * mt-tdep.c: Likewise.
1892 * nat/linux-btrace.c: Likewise.
1893 * nat/linux-osdata.c: Likewise.
1894 * nat/linux-procfs.c: Likewise.
1895 * nat/linux-ptrace.c: Likewise.
1896 * nat/linux-waitpid.c: Likewise.
1897 * nbsd-tdep.c: Likewise.
1898 * nios2-linux-tdep.c: Likewise.
1899 * nto-procfs.c: Likewise.
1900 * nto-tdep.c: Likewise.
1901 * objc-lang.c: Likewise.
1902 * objfiles.c: Likewise.
1903 * opencl-lang.c: Likewise.
1904 * osabi.c: Likewise.
1905 * osdata.c: Likewise.
1906 * p-exp.y: Likewise.
1907 * p-lang.c: Likewise.
1908 * p-typeprint.c: Likewise.
1909 * parse.c: Likewise.
1910 * posix-hdep.c: Likewise.
1911 * ppc-linux-nat.c: Likewise.
1912 * ppc-sysv-tdep.c: Likewise.
1913 * ppcfbsd-tdep.c: Likewise.
1914 * ppcnbsd-tdep.c: Likewise.
1915 * ppcobsd-tdep.c: Likewise.
1916 * printcmd.c: Likewise.
1917 * procfs.c: Likewise.
1918 * prologue-value.c: Likewise.
1919 * python/py-auto-load.c: Likewise.
1920 * python/py-gdb-readline.c: Likewise.
1921 * ravenscar-thread.c: Likewise.
1922 * regcache.c: Likewise.
1923 * registry.c: Likewise.
1924 * remote-fileio.c: Likewise.
1925 * remote-m32r-sdi.c: Likewise.
1926 * remote-mips.c: Likewise.
1927 * remote-notif.c: Likewise.
1928 * remote-sim.c: Likewise.
1929 * remote.c: Likewise.
1930 * reverse.c: Likewise.
1931 * rs6000-aix-tdep.c: Likewise.
1932 * ser-base.c: Likewise.
1933 * ser-go32.c: Likewise.
1934 * ser-mingw.c: Likewise.
1935 * ser-pipe.c: Likewise.
1936 * ser-tcp.c: Likewise.
1937 * ser-unix.c: Likewise.
1938 * serial.c: Likewise.
1939 * sh-tdep.c: Likewise.
1940 * sh64-tdep.c: Likewise.
1941 * shnbsd-tdep.c: Likewise.
1942 * skip.c: Likewise.
1943 * sol-thread.c: Likewise.
1944 * solib-dsbt.c: Likewise.
1945 * solib-frv.c: Likewise.
1946 * solib-osf.c: Likewise.
1947 * solib-som.c: Likewise.
1948 * solib-spu.c: Likewise.
1949 * solib-target.c: Likewise.
1950 * solib.c: Likewise.
1951 * somread.c: Likewise.
1952 * source.c: Likewise.
1953 * sparc-nat.c: Likewise.
1954 * sparc-sol2-tdep.c: Likewise.
1955 * sparc-tdep.c: Likewise.
1956 * sparc64-tdep.c: Likewise.
1957 * sparc64fbsd-tdep.c: Likewise.
1958 * sparc64nbsd-tdep.c: Likewise.
1959 * sparcnbsd-tdep.c: Likewise.
1960 * spu-linux-nat.c: Likewise.
1961 * spu-multiarch.c: Likewise.
1962 * spu-tdep.c: Likewise.
1963 * stabsread.c: Likewise.
1964 * stack.c: Likewise.
1965 * std-regs.c: Likewise.
1966 * symfile.c: Likewise.
1967 * symmisc.c: Likewise.
1968 * symtab.c: Likewise.
1969 * target.c: Likewise.
1970 * thread.c: Likewise.
1971 * tilegx-linux-nat.c: Likewise.
1972 * tilegx-tdep.c: Likewise.
1973 * top.c: Likewise.
1974 * tracepoint.c: Likewise.
1975 * tui/tui-command.c: Likewise.
1976 * tui/tui-data.c: Likewise.
1977 * tui/tui-disasm.c: Likewise.
1978 * tui/tui-file.c: Likewise.
1979 * tui/tui-layout.c: Likewise.
1980 * tui/tui-out.c: Likewise.
1981 * tui/tui-regs.c: Likewise.
1982 * tui/tui-source.c: Likewise.
1983 * tui/tui-stack.c: Likewise.
1984 * tui/tui-win.c: Likewise.
1985 * tui/tui-windata.c: Likewise.
1986 * tui/tui-winsource.c: Likewise.
1987 * typeprint.c: Likewise.
1988 * ui-file.c: Likewise.
1989 * ui-out.c: Likewise.
1990 * user-regs.c: Likewise.
1991 * utils.c: Likewise.
1992 * v850-tdep.c: Likewise.
1993 * valarith.c: Likewise.
1994 * valops.c: Likewise.
1995 * valprint.c: Likewise.
1996 * value.c: Likewise.
1997 * varobj.c: Likewise.
1998 * vax-tdep.c: Likewise.
1999 * vaxnbsd-tdep.c: Likewise.
2000 * vaxobsd-tdep.c: Likewise.
2001 * windows-nat.c: Likewise.
2002 * xcoffread.c: Likewise.
2003 * xml-support.c: Likewise.
2004 * xstormy16-tdep.c: Likewise.
2005 * xtensa-linux-nat.c: Likewise.
2006
dccbb609
GB
20072014-08-07 Gary Benson <gbenson@redhat.com>
2008
2009 * common/common-defs.h: Include gdb_assert.h.
2010 * aarch64-tdep.c: Do not include gdb_assert.h.
2011 * addrmap.c: Likewise.
2012 * aix-thread.c: Likewise.
2013 * alpha-linux-tdep.c: Likewise.
2014 * alpha-mdebug-tdep.c: Likewise.
2015 * alphanbsd-tdep.c: Likewise.
2016 * amd64-nat.c: Likewise.
2017 * amd64-tdep.c: Likewise.
2018 * amd64bsd-nat.c: Likewise.
2019 * amd64fbsd-nat.c: Likewise.
2020 * amd64fbsd-tdep.c: Likewise.
2021 * amd64nbsd-nat.c: Likewise.
2022 * amd64nbsd-tdep.c: Likewise.
2023 * amd64obsd-nat.c: Likewise.
2024 * amd64obsd-tdep.c: Likewise.
2025 * arch-utils.c: Likewise.
2026 * arm-tdep.c: Likewise.
2027 * armbsd-tdep.c: Likewise.
2028 * auxv.c: Likewise.
2029 * bcache.c: Likewise.
2030 * bfin-tdep.c: Likewise.
2031 * blockframe.c: Likewise.
2032 * breakpoint.c: Likewise.
2033 * bsd-kvm.c: Likewise.
2034 * bsd-uthread.c: Likewise.
2035 * buildsym.c: Likewise.
2036 * c-exp.y: Likewise.
2037 * c-lang.c: Likewise.
2038 * charset.c: Likewise.
2039 * cleanups.c: Likewise.
2040 * cli-out.c: Likewise.
2041 * cli/cli-decode.c: Likewise.
2042 * cli/cli-dump.c: Likewise.
2043 * cli/cli-logging.c: Likewise.
2044 * cli/cli-script.c: Likewise.
2045 * cli/cli-utils.c: Likewise.
2046 * coffread.c: Likewise.
2047 * common/common-utils.c: Likewise.
2048 * common/queue.h: Likewise.
2049 * common/signals.c: Likewise.
2050 * common/vec.h: Likewise.
2051 * complaints.c: Likewise.
2052 * completer.c: Likewise.
2053 * corelow.c: Likewise.
2054 * cp-abi.c: Likewise.
2055 * cp-name-parser.y: Likewise.
2056 * cp-namespace.c: Likewise.
2057 * cp-support.c: Likewise.
2058 * cris-tdep.c: Likewise.
2059 * dbxread.c: Likewise.
2060 * dictionary.c: Likewise.
2061 * doublest.c: Likewise.
2062 * dsrec.c: Likewise.
2063 * dummy-frame.c: Likewise.
2064 * dwarf2-frame-tailcall.c: Likewise.
2065 * dwarf2-frame.c: Likewise.
2066 * dwarf2expr.c: Likewise.
2067 * dwarf2loc.c: Likewise.
2068 * dwarf2read.c: Likewise.
2069 * eval.c: Likewise.
2070 * event-loop.c: Likewise.
2071 * exceptions.c: Likewise.
2072 * expprint.c: Likewise.
2073 * f-valprint.c: Likewise.
2074 * fbsd-nat.c: Likewise.
2075 * findvar.c: Likewise.
2076 * frame-unwind.c: Likewise.
2077 * frame.c: Likewise.
2078 * frv-tdep.c: Likewise.
2079 * gcore.c: Likewise.
2080 * gdb-dlfcn.c: Likewise.
2081 * gdb_bfd.c: Likewise.
2082 * gdbarch.c: Likewise.
2083 * gdbarch.sh: Likewise.
2084 * gdbtypes.c: Likewise.
2085 * gnu-nat.c: Likewise.
2086 * gnu-v3-abi.c: Likewise.
2087 * go-lang.c: Likewise.
2088 * guile/scm-exception.c: Likewise.
2089 * guile/scm-gsmob.c: Likewise.
2090 * guile/scm-lazy-string.c: Likewise.
2091 * guile/scm-math.c: Likewise.
2092 * guile/scm-pretty-print.c: Likewise.
2093 * guile/scm-safe-call.c: Likewise.
2094 * guile/scm-utils.c: Likewise.
2095 * guile/scm-value.c: Likewise.
2096 * h8300-tdep.c: Likewise.
2097 * hppa-hpux-nat.c: Likewise.
2098 * hppa-tdep.c: Likewise.
2099 * hppanbsd-tdep.c: Likewise.
2100 * hppaobsd-tdep.c: Likewise.
2101 * i386-darwin-nat.c: Likewise.
2102 * i386-darwin-tdep.c: Likewise.
2103 * i386-nto-tdep.c: Likewise.
2104 * i386-tdep.c: Likewise.
2105 * i386bsd-nat.c: Likewise.
2106 * i386fbsd-tdep.c: Likewise.
2107 * i386gnu-nat.c: Likewise.
2108 * i386nbsd-tdep.c: Likewise.
2109 * i386obsd-tdep.c: Likewise.
2110 * i387-tdep.c: Likewise.
2111 * ia64-libunwind-tdep.c: Likewise.
2112 * ia64-tdep.c: Likewise.
2113 * inf-ptrace.c: Likewise.
2114 * inf-ttrace.c: Likewise.
2115 * infcall.c: Likewise.
2116 * infcmd.c: Likewise.
2117 * infrun.c: Likewise.
2118 * inline-frame.c: Likewise.
2119 * interps.c: Likewise.
2120 * jv-lang.c: Likewise.
2121 * jv-typeprint.c: Likewise.
2122 * linux-fork.c: Likewise.
2123 * linux-nat.c: Likewise.
2124 * linux-thread-db.c: Likewise.
2125 * m32c-tdep.c: Likewise.
2126 * m32r-linux-nat.c: Likewise.
2127 * m32r-tdep.c: Likewise.
2128 * m68k-tdep.c: Likewise.
2129 * m68kbsd-nat.c: Likewise.
2130 * m68kbsd-tdep.c: Likewise.
2131 * m88k-tdep.c: Likewise.
2132 * machoread.c: Likewise.
2133 * macroexp.c: Likewise.
2134 * macrotab.c: Likewise.
2135 * maint.c: Likewise.
2136 * mdebugread.c: Likewise.
2137 * memory-map.c: Likewise.
2138 * mep-tdep.c: Likewise.
2139 * mi/mi-common.c: Likewise.
2140 * microblaze-tdep.c: Likewise.
2141 * mingw-hdep.c: Likewise.
2142 * mips-linux-nat.c: Likewise.
2143 * mips-linux-tdep.c: Likewise.
2144 * mips-tdep.c: Likewise.
2145 * mips64obsd-tdep.c: Likewise.
2146 * mipsnbsd-tdep.c: Likewise.
2147 * mn10300-linux-tdep.c: Likewise.
2148 * mn10300-tdep.c: Likewise.
2149 * moxie-tdep.c: Likewise.
2150 * mt-tdep.c: Likewise.
2151 * nat/linux-btrace.c: Likewise.
2152 * nat/linux-osdata.c: Likewise.
2153 * nat/linux-ptrace.c: Likewise.
2154 * nat/mips-linux-watch.c: Likewise.
2155 * nios2-linux-tdep.c: Likewise.
2156 * nios2-tdep.c: Likewise.
2157 * objc-lang.c: Likewise.
2158 * objfiles.c: Likewise.
2159 * obsd-nat.c: Likewise.
2160 * opencl-lang.c: Likewise.
2161 * osabi.c: Likewise.
2162 * parse.c: Likewise.
2163 * ppc-linux-nat.c: Likewise.
2164 * ppc-sysv-tdep.c: Likewise.
2165 * ppcfbsd-nat.c: Likewise.
2166 * ppcfbsd-tdep.c: Likewise.
2167 * ppcnbsd-nat.c: Likewise.
2168 * ppcnbsd-tdep.c: Likewise.
2169 * ppcobsd-nat.c: Likewise.
2170 * ppcobsd-tdep.c: Likewise.
2171 * printcmd.c: Likewise.
2172 * procfs.c: Likewise.
2173 * prologue-value.c: Likewise.
2174 * psymtab.c: Likewise.
2175 * python/py-lazy-string.c: Likewise.
2176 * python/py-value.c: Likewise.
2177 * regcache.c: Likewise.
2178 * reggroups.c: Likewise.
2179 * registry.c: Likewise.
2180 * remote-sim.c: Likewise.
2181 * remote.c: Likewise.
2182 * rs6000-aix-tdep.c: Likewise.
2183 * rs6000-tdep.c: Likewise.
2184 * s390-linux-tdep.c: Likewise.
2185 * score-tdep.c: Likewise.
2186 * ser-base.c: Likewise.
2187 * ser-mingw.c: Likewise.
2188 * sh-tdep.c: Likewise.
2189 * sh64-tdep.c: Likewise.
2190 * solib-darwin.c: Likewise.
2191 * solib-spu.c: Likewise.
2192 * solib-svr4.c: Likewise.
2193 * source.c: Likewise.
2194 * sparc-nat.c: Likewise.
2195 * sparc-sol2-tdep.c: Likewise.
2196 * sparc-tdep.c: Likewise.
2197 * sparc64-sol2-tdep.c: Likewise.
2198 * sparc64-tdep.c: Likewise.
2199 * sparc64fbsd-tdep.c: Likewise.
2200 * sparc64nbsd-tdep.c: Likewise.
2201 * sparc64obsd-tdep.c: Likewise.
2202 * sparcnbsd-tdep.c: Likewise.
2203 * sparcobsd-tdep.c: Likewise.
2204 * spu-multiarch.c: Likewise.
2205 * spu-tdep.c: Likewise.
2206 * stabsread.c: Likewise.
2207 * stack.c: Likewise.
2208 * symfile.c: Likewise.
2209 * symtab.c: Likewise.
2210 * target-descriptions.c: Likewise.
2211 * target-memory.c: Likewise.
2212 * target.c: Likewise.
2213 * tic6x-linux-tdep.c: Likewise.
2214 * tic6x-tdep.c: Likewise.
2215 * tilegx-linux-nat.c: Likewise.
2216 * tilegx-tdep.c: Likewise.
2217 * top.c: Likewise.
2218 * tramp-frame.c: Likewise.
2219 * tui/tui-out.c: Likewise.
2220 * tui/tui-winsource.c: Likewise.
2221 * ui-out.c: Likewise.
2222 * user-regs.c: Likewise.
2223 * utils.c: Likewise.
2224 * v850-tdep.c: Likewise.
2225 * valops.c: Likewise.
2226 * value.c: Likewise.
2227 * varobj.c: Likewise.
2228 * vax-nat.c: Likewise.
2229 * xml-syscall.c: Likewise.
2230 * xml-tdesc.c: Likewise.
2231 * xstormy16-tdep.c: Likewise.
2232 * xtensa-linux-nat.c: Likewise.
2233 * xtensa-tdep.c: Likewise.
2234
e76df0d0
GB
22352014-08-07 Gary Benson <gbenson@redhat.com>
2236
2237 * common/common-defs.h: Include common-utils.h.
2238 * defs.h: Do not include common-utils.h.
2239 * common/gdb_assert.h: Likewise.
2240 * darwin-nat.h: Likewise.
2241 * nat/linux-btrace.c: Likewise.
2242 * target/waitstatus.h: Likewise.
2243
4cb9c816
GB
22442014-08-07 Gary Benson <gbenson@redhat.com>
2245
2246 * common/common-defs.h: Include ptid.h.
2247 * defs.h: Do not include ptid.h.
2248 * inferior.h: Likewise.
2249 * infrun.h: Likewise.
2250 * nat/linux-btrace.h: Likewise.
2251 * nat/linux-osdata.h: Likewise.
2252 * target/waitstatus.h: Likewise.
2253
3995eeee
GB
22542014-08-07 Gary Benson <gbenson@redhat.com>
2255
2256 * common/common-defs.h: Include gdb_locale.h.
2257 * defs.h: Do not include gdb_locale.h.
2258
cb9f1a9b
GB
22592014-08-07 Gary Benson <gbenson@redhat.com>
2260
2261 * common/common-defs.h: Include gdb/signals.h.
2262 * defs.h: Do not include gdb/signals.h.
2263
a5fceff8
GB
22642014-08-07 Gary Benson <gbenson@redhat.com>
2265
2266 * common/common-defs.h: Include pathmax.h.
2267 * defs.h: Do not include pathmax.h.
2268
b9391142
GB
22692014-08-07 Gary Benson <gbenson@redhat.com>
2270
2271 * common/common-defs.h: Include libiberty.h.
2272 * defs.h: Do not include libiberty.h.
2273 * common/queue.h: Likewise.
2274 * cp-name-parser.y: Likewise.
2275 * mi/mi-cmd-catch.c: Likewise.
2276 * python/python.c: Likewise.
2277
0e443c87
GB
22782014-08-07 Gary Benson <gbenson@redhat.com>
2279
2280 * common/common-defs.h: Include ansidecl.h.
2281 * defs.h: Do not include ansidecl.h.
2282 * common/buffer.h: Likewise.
2283 * common/common-utils.h: Likewise.
2284
8ebb3f56
GB
22852014-08-07 Gary Benson <gbenson@redhat.com>
2286
2287 * common/common-defs.h: Include stddef.h.
2288 * defs.h: Do not include stddef.h.
2289 * common/common-utils.h: Likewise.
2290 * amd64fbsd-nat.c: Likewise.
2291 * bcache.c: Likewise.
2292 * charset.c: Likewise.
2293 * common/buffer.h: Likewise.
2294 * common/vec.h: Likewise.
2295 * i386bsd-nat.c: Likewise.
2296 * nat/linux-btrace.h: Likewise.
2297 * ppcfbsd-nat.c: Likewise.
2298 * ppcnbsd-tdep.h: Likewise.
2299 * ppcobsd-nat.c: Likewise.
2300 * ppcobsd-tdep.h: Likewise.
2301 * python/py-gdb-readline.c: Likewise.
2302
8980bdf6
GB
23032014-08-07 Gary Benson <gbenson@redhat.com>
2304
2305 * common/common-defs.h: Include stdarg.h.
2306 * defs.h: Do not include stdarg.h.
2307 * ada-lang.c: Likewise.
2308 * common/common-utils.h: Likewise.
2309 * guile/scm-string.c: Likewise.
2310 * guile/scm-utils.c: Likewise.
2311 * m32c-tdep.c: Likewise.
2312
d7096f71
GB
23132014-08-07 Gary Benson <gbenson@redhat.com>
2314
2315 * common/common-defs.h: Include stdlib.h.
2316 * defs.h: Do not include stdlib.h.
2317 * addrmap.c: Likewise.
2318 * bcache.c: Likewise.
2319 * common/buffer.c: Likewise.
2320 * common/common-utils.c: Likewise.
2321 * cp-name-parser.y: Likewise.
2322 * go32-nat.c: Likewise.
2323 * mn10300-linux-tdep.c: Likewise.
2324 * nat/linux-osdata.c: Likewise.
2325 * tui/tui.c: Likewise.
2326 * windows-nat.c: Likewise.
2327
d02f550d
GB
23282014-08-07 Gary Benson <gbenson@redhat.com>
2329
2330 * common/common-defs.h: Include stdio.h.
2331 * defs.h: Do not include stdio.h.
2332 * ada-lang.c: Likewise.
2333 * common/buffer.c: Likewise.
2334 * common/common-utils.c: Likewise.
2335 * cp-name-parser.y: Likewise.
2336 * gnu-nat.c: Likewise.
2337 * go32-nat.c: Likewise.
2338 * i386gnu-nat.c: Likewise.
2339 * proc-api.c: Likewise.
2340 * proc-events.c: Likewise.
2341 * proc-flags.c: Likewise.
2342 * proc-why.c: Likewise.
2343 * python/python-internal.h: Likewise.
2344 * target-memory.c: Likewise.
2345 * tui/tui-io.c: Likewise.
2346 * tui/tui.c: Likewise.
2347
b6d7a4bf
SM
23482014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2349
2350 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2351 (scan_dyntag_auxv): Same.
2352
af19829b
YQ
23532014-08-06 Yao Qi <yao@codesourcery.com>
2354
2355 * amd64-linux-nat.c: Remove duplicated include
2356 "x86-linux-nat.h".
2357 * i386-linux-nat.c: Likewise.
2358
8e07a239
YQ
23592014-08-06 Yao Qi <yao@codesourcery.com>
2360
2361 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2362 operand" with "Special opcode" in comments.
2363
7bfe8241
GB
23642014-08-05 Gary Benson <gbenson@redhat.com>
2365
2366 * interps.c (initialize_interps): Remove prototype.
2367 (interpreter_initialized): Remove static global.
2368 (interp_add): Do not call initialize_interps.
2369 (initialize_interps): Remove function.
2370
d6c95504
GB
23712014-08-05 Gary Benson <gbenson@redhat.com>
2372
2373 * utils.c (vwarning): Remove spurious va_end.
2374
241fd515
AM
23752014-08-05 Alan Modra <amodra@gmail.com>
2376
2377 * charset.c (convert_between_encodings): Cast result of obstack_base.
2378 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2379 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2380 (read_unwind_info): Use size_t for some locals.
2381 * jit.c (finalize_symtab): Likewise.
2382 * utils.c (hashtab_obstack_allocate): Likewise.
2383 * symmisc.c (print_objfile_statistics): Update format strings.
2384
dc304a94
JK
23852014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2386
2387 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2388 (Changes in GDB 7.8): ... here.
2389
3cecbbbe
TT
23902014-08-04 Tom Tromey <tromey@redhat.com>
2391
2392 * target.c (set_targetdebug): New function.
2393 (initialize_targets): Pass set_targetdebug when creating "set
2394 debug target".
2395
6908c509
JB
23962014-08-01 Joel Brobecker <brobecker@adacore.com>
2397
2398 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2399 if detecting a variable-sized field that is not the last field.
2400 Fix struct type length computation.
2401
53e8f97d
JB
24022014-08-01 Joel Brobecker <brobecker@adacore.com>
2403
2404 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2405 Add debug trace.
2406
e068c55d
JB
24072014-08-01 Joel Brobecker <brobecker@adacore.com>
2408
2409 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2410 Remove "+ 8" offset in computation of CHAIN_VMA.
2411
4d4ca2a1
DE
24122014-07-31 Doug Evans <dje@google.com>
2413
2414 * inflow.c (child_terminal_inferior): Add comment.
2415 (child_terminal_ours_for_output): Add comment.
2416 (child_terminal_ours): Add comment.
2417 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2418 (linux_nat_terminal_ours): Add comment.
2419
462f517e
GB
24202014-07-31 Gary Benson <gbenson@redhat.com>
2421
2422 * common/btrace-common.h: Do not include defs.h or server.h.
2423 * nat/mips-linux-watch.h: Likewise.
2424 * gdb-dlfcn.h: Do not include defs.h.
2425 * tracefile.h: Likewise.
2426
74228e77
RM
24272014-07-30 Roland McGrath <mcgrathr@google.com>
2428
2429 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2430
014f9477
TT
24312014-07-30 Tom Tromey <tromey@redhat.com>
2432
2433 * bsd-kvm.c (bsd_kvm_open): Constify.
2434 * corelow.c (core_open): Constify.
2435 * ctf.c (ctf_open): Constify.
2436 * dbug-rom.c (dbug_open): Constify.
2437 * exec.c (exec_open): Constify.
2438 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2439 * microblaze-rom.c (picobug_open): Constify.
2440 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2441 Constify.
2442 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2443 * record-btrace.c (record_btrace_open): Constify.
2444 * record-full.c (record_full_core_open_1, record_full_open_1)
2445 (record_full_open): Constify.
2446 * remote-m32r-sdi.c (m32r_open): Constify.
2447 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2448 (rockhopper_open, lsi_open): Constify.
2449 * remote-sim.c (gdbsim_open): Constify.
2450 * remote.c (remote_open, extended_remote_open, remote_open_1):
2451 Constify.
2452 * target.h (struct target_ops) <to_open>: Make "arg" const.
2453 * tracefile-tfile.c (tfile_open): Constify.
2454
e799154c
TT
24552014-07-30 Tom Tromey <tromey@redhat.com>
2456
2457 * breakpoint.c (map_breakpoint_numbers): Update.
2458 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2459 (get_number_const): New function.
2460 (get_number): Rewrite using get_number_const.
2461 (init_number_or_range): Make "string" const.
2462 (number_is_in_list): Make "list" const.
2463 * cli/cli-utils.h (get_number_const): Declare.
2464 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2465 (init_number_or_range, number_is_in_list): Update.
2466 * printcmd.c (map_display_numbers): Update.
2467 * value.c (value_from_history_ref): Constify.
2468 * value.h (value_from_history_ref): Update.
2469
5f08566b
TT
24702014-07-30 Tom Tromey <tromey@redhat.com>
2471
2472 * corefile.c (hook_type, call_extra_exec_file_hooks)
2473 (specify_exec_file_hook): Constify.
2474 * exec.c (exec_file_attach): Make "filename" const.
2475 * gdbcore.h (deprecated_exec_file_display_hook)
2476 (specify_exec_file_hook, exec_file_attach): Constify.
2477 * main.c (captured_main): Use catch_command_errors_const.
2478
8981c758
TT
24792014-07-30 Tom Tromey <tromey@redhat.com>
2480
2481 * target.c (open_target): New function.
2482 (add_target_with_completer, add_deprecated_target_alias): Use
2483 set_cmd_sfunc, set_cmd_context.
2484 (debug_to_open): Remove.
2485 (setup_target_debug): Update.
2486
a1c7835a
YQ
24872014-07-30 Yao Qi <yao@codesourcery.com>
2488
2489 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2490 comments.
2491 * parse.c (exp_iterate): Update comments.
2492
976411d6
GB
24932014-07-30 Gary Benson <gbenson@redhat.com>
2494
2495 * common/common-defs.h: New file.
2496 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2497 * defs.h: Include common-defs.h.
2498 Do not include config.h or build-gnulib/config.h.
2499
5d4848a4
GB
25002014-07-30 Gary Benson <gbenson@redhat.com>
2501
2502 * common/common-utils.h: Do not include config.h.
2503 * nat/linux-btrace.h: Likewise.
2504
d41f6d8e
GB
25052014-07-30 Gary Benson <gbenson@redhat.com>
2506
2507 * btrace.c: Include defs.h.
2508 * common/ptid.c: Include defs.h or server.h as appropriate.
2509 * nat/mips-linux-watch.c: Likewise.
2510
84202f9c
TT
25112014-07-29 Tom Tromey <tromey@redhat.com>
2512
2513 * target.c (target_is_pushed): Simplify.
2514
2530441c
JB
25152014-07-29 Joel Brobecker <brobecker@adacore.com>
2516
2517 GDB 7.8 released.
2518
7e09a223
YQ
25192014-07-29 Yao Qi <yao@codesourcery.com>
2520
2521 PR gdb/17206
2522 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2523
7ebdbe92
DE
25242014-07-28 Doug Evans <xdje42@gmail.com>
2525
2526 PR guile/17203
2527 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2528 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2529 parameters.
2530
f347ffc9
WN
25312014-07-28 Will Newton <will.newton@linaro.org>
2532
2533 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2534 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2535 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2536 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2537 (THUMB2_EABI_SYSCALL): Likewise.
2538 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2539 struct tramp_frame.
2540 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2541 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2542
37c5f1f7
DE
25432014-07-27 Doug Evans <xdje42@gmail.com>
2544
2545 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2546
0c3abbc7
DE
25472014-07-27 Doug Evans <xdje42@gmail.com>
2548
2549 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2550
e76c5d17
DE
25512014-07-26 Ludovic Courtès <ludo@gnu.org>
2552 Doug Evans <xdje42@gmail.com>
2553
2554 PR guile/17146
2555 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2556 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2557 * configure.ac: Try to use guild to compile an scm file, if it fails
2558 then disable guile support.
2559 * configure: Regenerate.
2560 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2561 GUILE_FILE_LIST.
2562 (GUILE_COMPILED_FILES): New variable.
2563 (GUILE_FILES) Update.
2564 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2565 (stamp-guile): Compile scm files.
2566 * guile/guile.c (boot_guile_support): New function.
2567 (standard_throw_args_p): New function.
2568 (print_standard_throw_error, print_throw_error): New functions.
2569 (handle_boot_error): New function.
2570 (initialize_scheme_side): Rewrite to call boot_guile_support.
2571 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2572 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2573
186fcde0
DE
25742014-07-26 Ludovic Courtès <ludo@gnu.org>
2575 Doug Evans <xdje42@gmail.com>
2576
2577 PR guile/17146
2578 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2579 * guile/lib/gdb/support.scm: New file.
2580 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2581 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2582 All uses updated.
2583 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2584 All uses updated.
2585 (%assert-type): Ditto, and renamed to assert-type.
2586 (%exception-print-style): Delete.
2587
4df42755
DE
25882014-07-26 Doug Evans <xdje42@gmail.com>
2589
2590 PR build/17105
2591 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2592 * configure: Regenerate.
2593 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2594 PYTHON_FILES.
2595 (PYTHON_FILES): New variable.
2596 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2597 (GUILE_FILES): New variable.
2598 (stamp-python, install-python, uninstall-python): Handle empty
2599 file list.
2600 (stamp-guile, install-guile, uninstall-guile): Ditto.
2601
ee7333ae
DE
26022014-07-26 Doug Evans <xdje42@gmail.com>
2603
2604 PR guile/17177
2605 * guile/lib/gdb.scm (pretty-printers): Export.
2606 (set-pretty-printers!): Export.
2607 * guile/lib/gdb/printing.scm (gdb module): Update.
2608 (prepend-pretty-printer!, append-pretty-printer!): Update.
2609 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2610 (pretty_printer_list_var): Delete.
2611 (pretty_printer_list): New static global.
2612 (gdbscm_pretty_printers): New function.
2613 (gdbscm_set_pretty_printers_x): New function.
2614 (ppscm_find_pretty_printer_from_gdb): Update.
2615 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2616 (gdbscm_initialize_pretty_printers): Update.
2617
74edf516
DE
26182014-07-26 Doug Evans <xdje42@gmail.com>
2619
2620 PR 17185
2621 * configure.ac: Add check for header gc/gc.h.
2622 Add check for function setenv.
2623 * configure: Regenerate.
2624 * config.in: Regenerate.
2625 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2626
d54398a7
MR
26272014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2628
2629 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2630 variation in gdbarch matching.
2631
ab16fce8
TT
26322014-07-25 Tom Tromey <tromey@redhat.com>
2633
2634 * exec.c (using_exec_ops): Remove.
2635 (exec_close_1): Update. Remove extraneous block, reindent.
2636 (add_target_sections): Use target_is_pushed.
2637
88056fbb
PA
26382014-07-25 Pedro Alves <palves@redhat.com>
2639
2640 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2641 * monitor.c (monitor_create_inferior): Likewise.
2642 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2643 * remote-sim.c (gdbsim_create_inferior): Likewise.
2644 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2645 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2646 * windows-nat.c (do_initial_windows_stuff): Likewise.
2647
70509625
PA
26482014-07-25 Pedro Alves <palves@redhat.com>
2649
2650 * NEWS: Mention signal passing and "signal" command changes.
2651 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2652 comment.
2653 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2654 call.
2655 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2656 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2657 (jump_command): Adjust clear_proceed_status call.
2658 (signal_command): Warn if other thread that are resumed have
2659 signals that will be delivered. Adjust clear_proceed_status call.
2660 (until_next_command, finish_command)
2661 (proceed_after_attach_callback, attach_command_post_wait)
2662 (attach_command): Adjust clear_proceed_status call.
2663 * infrun.c (proceed_after_vfork_done): Likewise.
2664 (proceed_after_attach_callback): Adjust comment.
2665 (clear_proceed_status_thread): Clear stop_signal if not in pass
2666 state.
2667 (clear_proceed_status_callback): Delete.
2668 (clear_proceed_status): New 'step' parameter. Only clear the
2669 proceed status of threads the command being prepared is about to
2670 resume.
2671 (proceed): If passed in an explicit signal, override stop_signal
2672 with it. Don't pass the last stop signal to the thread we're
2673 resuming.
2674 (init_wait_for_inferior): Adjust clear_proceed_status call.
2675 (switch_back_to_stepped_thread): Clear the signal if it should not
2676 be passed.
2677 * infrun.h (clear_proceed_status): New 'step' parameter.
2678 (user_visible_resume_ptid): Add comment.
2679 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2680 signal is in pass state.
2681 * remote.c (append_pending_thread_resumptions): Likewise.
2682 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2683
d8be2939
TT
26842014-07-25 Tom Tromey <tromey@redhat.com>
2685
2686 * target.h (target_stopped_data_address)
2687 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2688 parentheses.
2689
7d0d9d2b
PL
26902014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2691
2692 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2693 comments.
2694 (avr_pointer_to_address): Likewise.
2695
e9e7f724
TT
26962014-07-24 Tom Tromey <tromey@redhat.com>
2697
2698 * monitor.c (compile_pattern): Update.
2699 * target.h (struct target_ops) <to_shortname, to_longname,
2700 to_doc>: Now const.
2701
1947513d
TT
27022014-07-24 Tom Tromey <tromey@redhat.com>
2703
2704 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2705 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2706 (add_info_alias, add_com): Make "doc" const.
2707 (print_doc_line): Make "str" const.
2708 (delete_cmd): Update.
2709 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2710 (print_doc_line): Update.
2711 * cli/cli-script.c (document_command): Update.
2712 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2713 (add_com, add_info, add_info_alias): Update.
2714 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2715 * python/py-cmd.c (cmdpy_destroyer): Update.
2716
64e61d29
TT
27172014-07-24 Tom Tromey <tromey@redhat.com>
2718
2719 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2720 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2721 (help_cmd_list): Constify.
2722 (lookup_cmd): Update.
2723 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2724 const.
2725 (help_cmd_list, apropos_cmd): Update.
2726 * cli/cli-script.c (show_user): Update.
2727 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2728 * cli/cli-setshow.h (cmd_show_list): Update.
2729 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2730 (cmd_show_list): Update.
2731 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2732 * python/py-cmd.c (cmdpy_destroyer): Update.
2733
429e55ea
TT
27342014-07-24 Tom Tromey <tromey@redhat.com>
2735
2736 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2737 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2738 const.
2739 * command.h (deprecate_cmd): Update.
2740 * maint.c (maintenance_do_deprecate): Add casts.
2741
64669f3b
TT
27422014-07-24 Tom Tromey <tromey@redhat.com>
2743
2744 * cli/cli-decode.c (help_cmd): Make parameter "const".
2745 * cli/cli-decode.h (help_cmd): Update.
2746
d3d3328b
TT
27472014-07-24 Tom Tromey <tromey@redhat.com>
2748
2749 * stack.c (up_silently_base, down_silently_base): Make argument
2750 const.
2751
414842dc
TT
27522014-07-24 Tom Tromey <tromey@redhat.com>
2753
2754 * solib.c (solib_add): Make "pattern" const.
2755 * solib.h (solib_add): Update.
2756
baa336ce
TT
27572014-07-24 Tom Tromey <tromey@redhat.com>
2758
2759 * remote.c (remote_serial_open, print_packet, putpkt)
2760 (putpkt_binary): Constify.
2761 * remote.h (putpkt): Update.
2762
5a19e2d0
TT
27632014-07-24 Tom Tromey <tromey@redhat.com>
2764
2765 * monitor.c (monitor_open): Make "args" const.
2766 * monitor.h (monitor_open): Update.
2767
fc4baa5e
TT
27682014-07-24 Tom Tromey <tromey@redhat.com>
2769
2770 * maint.c (match_bfd_flags): Make "string" const.
2771 (print_bfd_section_info): Remove casts.
2772 (print_objfile_section_info): Make "string" const.
2773
0d5f0dbe
TT
27742014-07-24 Tom Tromey <tromey@redhat.com>
2775
2776 * inf-child.c (inf_child_open_target): Make "arg" const.
2777 * inf-child.h (inf_child_open_target): Update.
2778
41c77899
TT
27792014-07-24 Tom Tromey <tromey@redhat.com>
2780
2781 * environ.c (unset_in_environ): Make "var" const.
2782 * environ.h (unset_in_environ): Update.
2783
93db0d79
TT
27842014-07-24 Tom Tromey <tromey@redhat.com>
2785
2786 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2787 Make "cmd" const.
2788 (scan_filename_with_cleanup): Likewise.
2789 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2790 Make arguments const.
2791 (restore_command): Update.
2792
36d6eb95
PA
27932014-07-24 Pedro Alves <palves@redhat.com>
2794
2795 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2796
8009206a
TT
27972014-07-24 Tom Tromey <tromey@redhat.com>
2798 Gary Benson <gbenson@redhat.com>
2799
2800 * nat/linux-ptrace.c (additional_flags): New global.
2801 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2802 additional_flags; don't check GDBSERVER.
2803 (linux_ptrace_set_additional_flags): New function.
2804 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2805 Declare.
2806 * linux-nat.c (_initialize_linux_nat): Call
2807 linux_ptrace_set_additional_flags.
2808
a7068b60
TT
28092014-07-24 Tom Tromey <tromey@redhat.com>
2810
2811 * make-target-delegates (munge_type, write_debugmethod): New
2812 functions.
2813 (debug_names): New global.
2814 ($TARGET_DEBUG_PRINTER): New global.
2815 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2816 name.
2817 Write debug methods. Generate init_debug_target.
2818 * target-debug.h: New file.
2819 * target-delegates.c: Rebuild.
2820 * target.c: Include target-debug.h.
2821 (debug_target): Hoist definition.
2822 (target_kill, target_get_section_table, target_memory_map)
2823 (target_flash_erase, target_flash_done, target_detach)
2824 (target_disconnect, target_wait, target_resume)
2825 (target_pass_signals, target_program_signals, target_follow_fork)
2826 (target_mourn_inferior, target_search_memory)
2827 (target_thread_address_space, target_close)
2828 (target_find_new_threads, target_core_of_thread)
2829 (target_verify_memory, target_insert_mask_watchpoint)
2830 (target_remove_mask_watchpoint): Remove targetdebug code.
2831 (debug_to_post_attach, debug_to_prepare_to_store)
2832 (debug_to_files_info, debug_to_insert_breakpoint)
2833 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2834 (debug_to_region_ok_for_hw_watchpoint)
2835 (debug_to_can_accel_watchpoint_condition)
2836 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2837 (debug_to_watchpoint_addr_within_range)
2838 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2839 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2840 (debug_to_terminal_init, debug_to_terminal_inferior)
2841 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2842 (debug_to_terminal_save_ours, debug_to_terminal_info)
2843 (debug_to_load, debug_to_post_startup_inferior)
2844 (debug_to_insert_fork_catchpoint)
2845 (debug_to_remove_fork_catchpoint)
2846 (debug_to_insert_vfork_catchpoint)
2847 (debug_to_remove_vfork_catchpoint)
2848 (debug_to_insert_exec_catchpoint)
2849 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2850 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2851 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2852 (setup_target_debug): Call init_debug_target.
2853 * target.h (TARGET_DEBUG_PRINTER): New macro.
2854 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2855 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2856
2c51604d
GB
28572014-07-24 Gary Benson <gbenson@redhat.com>
2858
2859 * exceptions.h (throw_vfatal): Renamed to...
2860 (throw_vquit): New declaration.
2861 (throw_quit): Likewise.
2862 * exceptions.c (throw_vfatal): Renamed to...
2863 (throw_vquit): New function.
2864 (throw_quit): Likewise.
2865 (throw_error): Call throw_verror rather than throw_it.
2866 * utils.h (vfatal): Removed.
2867 (fatal): Likewise.
2868 * utils.c (vfatal): Removed.
2869 (fatal): Likewise.
2870 (internal_verror): Replaced call to fatal with call to throw_quit.
2871 (quit): Replaced calls to fatal with calls to throw_quit.
2872
34211963
ME
28732014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2874
2875 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2876 target_read_code.
2877
a52b4d3e
ME
28782014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2879
2880 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2881 less than zero in conditional expression.
2882
a8bdc56b
TT
28832014-07-23 Tom Tromey <tromey@redhat.com>
2884
2885 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2886 ($INTRO_PART): Don't match whitespace.
2887 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2888 argument matching.
2889 ($METHOD): Add $METHOD_TRAILER.
2890 (trim): Rewrite.
2891 (scan_target_h): New sub.
2892 Change main loop not to collect state.
2893 * target-delegates.c: Rebuild.
2894
91b52240
GB
28952014-07-23 Gary Benson <gbenson@redhat.com>
2896
2897 * cp-support.c (gdb_demangle): Fix build on systems without
2898 sigaltstack.
2899
45326f6f
JK
29002014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2901
2902 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2903 for reference entry value target data value.
2904
e214cf6c
JK
29052014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2906
2907 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2908 value_available_contents_eq.
2909
bddbbedd
PA
29102014-07-22 Pedro Alves <palves@redhat.com>
2911
2912 * value.c (allocate_optimized_out_value): Don't mark value as
2913 non-lazy.
2914
45c71484
JW
29152014-07-22 Jiong Wang <jiong.wang@arm.com>
2916
2917 * MAINTAINERS (Write After Approval): Update my email address.
2918
9597b22a
DE
29192014-07-20 Doug Evans <dje@google.com>
2920
2921 PR server/17147
2922 * remote.c (putpkt_binary): Add text to error message.
2923
91101fe5
YQ
29242014-07-20 Yao Qi <yao@codesourcery.com>
2925
2926 * eval.c: Remove "Chill" from comments.
2927 * gdbtypes.h: Likewise.
2928 * symtab.h: Likewise.
2929
c9402c95
YQ
29302014-07-20 Yao Qi <yao@codesourcery.com>
2931
2932 * std-operator.def: Update comments to TERNOP_SLICE.
2933
ae8fddda
YQ
29342014-07-20 Yao Qi <yao@codesourcery.com>
2935
2936 * std-operator.def: Remove BINOP_RANGE.
2937 * breakpoint.c (watchpoint_exp_is_const): Update.
2938 * expprint.c (dump_subexp_body_standard): Likewise.
2939 * eval.c (init_array_element): Remove dead code.
2940 (evaluate_subexp_standard): Likewise.
2941
9c816640
YQ
29422014-07-20 Yao Qi <yao@codesourcery.com>
2943
2944 * std-operator.def: Remove BINOP_IN.
2945 * breakpoint.c (watchpoint_exp_is_const): Update.
2946 * eval.c (evaluate_subexp_standard): Likewise.
2947 * expprint.c (dump_subexp_body_standard): Likewise.
2948
164224e9
ME
29492014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2950
2951 * microblaze-tdep.c (microblaze_register_names): Add
2952 the rshr and rslr register names.
2953 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2954 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2955 Use of tdesc_numbered_register. Use of
2956 microblaze_register_g_packet_guesses. Use of
2957 tdesc_use_registers. Use of set_gdbarch_register_type.
2958 (microblaze_register_g_packet_guesses): New.
2959 * microblaze-tdep.h (microblaze_reg_num): Add
2960 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2961 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2962 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2963 * features/microblaze-core.xml: New file.
2964 * features/microblaze-stack-protect.xml: New file.
2965 * features/microblaze-with-stack-protect.c: New file.
2966 * features/microblaze-with-stack-protect.xml: New file.
2967 * features/microblaze.xml: New file.
2968 * features/microblaze.c: New file.
2969 * features/Makefile (microblaze-with-stack-protect): Add
2970 microblaze-with-stack-protect microblaze and microblaze-expedite.
2971 * regformats/microblaze-with-stack-protect.dat: New file.
2972 * regformats/microblaze.dat: New file.
2973 * doc/gdb.texinfo (MicroBlaze Features): Added.
2974
e8b2341c
TT
29752014-07-18 Tom Tromey <tromey@redhat.com>
2976
2977 * exec.c (exec_ops): Now static.
2978 * exec.h (exec_ops): Don't declare.
2979
44e89118
TT
29802014-07-18 Tom Tromey <tromey@redhat.com>
2981
2982 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2983 to find_target_beneath.
2984 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2985 find_target_beneath.
2986 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2987
b0ed115f
TT
29882014-07-18 Tom Tromey <tromey@redhat.com>
2989
2990 PR gdb/17130:
2991 * utils.c (quit): Use target_supports_terminal_ours.
2992 * target.h (target_supports_terminal_ours): Declare.
2993 * target.c (target_supports_delete_record): Don't check
2994 to_delete_record against NULL.
2995 (target_supports_terminal_ours): New function.
2996
e75fdfca
TT
29972014-07-18 Tom Tromey <tromey@redhat.com>
2998
2999 PR gdb/17130:
3000 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3001 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3002 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3003 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3004 * windows-nat.c (windows_xfer_partial): Always delegate.
3005 * record-btrace.c (record_btrace_xfer_partial): Simplify
3006 delegation.
3007 (record_btrace_fetch_registers, record_btrace_store_registers)
3008 (record_btrace_prepare_to_store, record_btrace_resume)
3009 (record_btrace_wait, record_btrace_find_new_threads)
3010 (record_btrace_thread_alive): Likewise.
3011 * procfs.c (procfs_xfer_partial): Always delegate.
3012 * corelow.c (core_xfer_partial): Always delegate.
3013 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3014
83814951
TT
30152014-07-18 Tom Tromey <tromey@redhat.com>
3016
3017 * exec.c (exec_make_note_section): Move earlier.
3018
b8b8facf
DE
30192014-07-17 Doug Evans <dje@google.com>
3020
74b49205 3021 PR gdb/17170
b8b8facf
DE
3022 * maint.c (count_symtabs_and_blocks): Handle NULL
3023 current_program_space.
3024 (report_command_stats): Check global enabled flag in addition to
3025 recorded enabled flag.
3026 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3027
69ff6be5
PA
30282014-07-16 Pedro Alves <palves@redhat.com>
3029
3030 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3031
252db1b5
TT
30322014-07-16 Tom Tromey <tromey@redhat.com>
3033
3034 * target.h (struct target_ops) <to_delete_record>: Reformat
3035 comment.
3036
a432721e
TT
30372014-07-16 Tom Tromey <tromey@redhat.com>
3038
3039 * target-delegates.c: Rebuild.
3040
487d9753
PL
30412014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3042
3043 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3044 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3045 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3046 (avr_pointer_to_address): Likewise.
3047 (avr_address_class_type_flags): New function.
3048 (avr_address_class_type_flags_to_name): Likewise.
3049 (avr_address_class_name_to_type_flags): Likewise.
3050 (avr_gdbarch_init): Set address_class_type_flags,
3051 address_class_type_flags_to_name and
3052 address_class_name_to_type_flags.
3053
57745c90
PA
30542014-07-15 Pedro Alves <palves@redhat.com>
3055
3056 * linux-nat.c (kill_callback): Save errno and work with saved
3057 copy.
3058
2d40be18
SM
30592014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3060
3061 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3062
572f6555
EBM
30632014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3064
3065 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3066 breakpoint support correctly.
3067
cc1c52ad
PA
30682014-07-14 Pedro Alves <palves@redhat.com>
3069
3070 * utils.c (prompt_for_continue): Call target_terminal_ours.
3071
1e973570
PA
30722014-07-14 Pedro Alves <palves@redhat.com>
3073
3074 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3075 catch_errors. Don't re-enable stdin or notify observers where,
3076 and rethrow error.
3077 (fetch_inferior_event_wrapper): Delete.
3078
93d6eb10
PA
30792014-07-14 Pedro Alves <palves@redhat.com>
3080
3081 PR gdb/17072
3082 * top.c: Include "inf-loop.h".
3083 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3084 field.
3085 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3086 was async before.
3087 (gdb_readline_wrapper): Store whether the target is async, and
3088 make it sync.
3089
0017922d
PA
30902014-07-14 Pedro Alves <palves@redhat.com>
3091
3092 PR gdb/17072
3093 * top.c (gdb_readline_wrapper_line): Tweak comment.
3094 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3095 the input handler callback.
3096
94696ad3
PA
30972014-07-14 Pedro Alves <palves@redhat.com>
3098
3099 PR gdb/17072
3100 * main.c: Include event-top.h.
3101 (handle_command_errors): New function.
3102 (catch_command_errors, catch_command_errors_const): Use it.
3103
9d1e69a2
PA
31042014-07-14 Pedro Alves <palves@redhat.com>
3105
3106 * exceptions.c (catch_command_errors, catch_command_errors_const):
3107 Moved to main.c.
3108 * exceptions.h (catch_command_errors_ftype)
3109 (catch_command_errors_const_ftype): Moved to main.c.
3110 (catch_command_errors, catch_command_errors_const): Delete
3111 declarations.
3112 * main.c (catch_command_errors_ftype)
3113 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3114 (catch_command_errors, catch_command_errors_const)): Moved here
3115 from exceptions.c and make static.
3116
feefc97b
PA
31172014-07-14 Pedro Alves <palves@redhat.com>
3118
3119 * exceptions.c (print_any_exception): Delete.
3120 (catch_exceptions_with_msg): Use exception_print instead of
3121 print_any_exception.
3122 (catch_errors): Use exception_fprintf instead of
3123 print_any_exception.
3124 (catch_command_errors, catch_command_errors_const): Use
3125 exception_print instead of print_any_exception.
3126
c933f875
PA
31272014-07-14 Pedro Alves <palves@redhat.com>
3128
3129 * infcall.c (run_inferior_call): Set 'sync_execution' while
3130 running the inferior call.
3131
feb6f816
PA
31322014-07-14 Pedro Alves <palves@redhat.com>
3133
3134 * value.c (value_contents_equal): Delete function.
3135 * value.h (value_contents_equal): Delete declaration.
3136
d98b7a16
TT
31372014-07-14 Tom Tromey <tromey@redhat.com>
3138
3139 PR exp/17106:
3140 * gdbtypes.c (is_dynamic_type_internal): New function, from
3141 is_dynamic_type.
3142 (is_dynamic_type): Rewrite.
3143 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3144 (resolve_dynamic_struct): Likewise.
3145 (resolve_dynamic_type_internal): New function, from
3146 resolve_dynamic_type.
3147 (resolve_dynamic_type): Rewrite.
3148
548740d6
TT
31492014-07-14 Tom Tromey <tromey@redhat.com>
3150
3151 * target.c (target_require_runnable): Also check record_stratum.
3152 Update comment.
3153
808f7ab1
YQ
31542014-07-11 Yao Qi <yao@codesourcery.com>
3155
3156 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3157 thumb_instruction_restores_sp return true.
3158
540314bd
YQ
31592014-07-11 Yao Qi <yao@codesourcery.com>
3160
3161 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3162 (thumb_in_function_epilogue_p): Call
3163 thumb_instruction_restores_sp.
3164
1db01f22
YQ
31652014-07-11 Yao Qi <yao@codesourcery.com>
3166
3167 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3168 'add sp, #imm'.
3169 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3170
3116063b
GB
31712014-07-11 Gary Benson <gbenson@redhat.com>
3172
3173 * amd64-linux-nat.c (gdbcore.h): Remove include.
3174 (regset.h): Likewise.
3175 (nat/linux-btrace.h): Likewise.
3176 (btrace.h): Likewise.
3177 (gdb_assert.h): Likewise.
3178 (string.h): Likewise.
3179 (sys/uio.h): Likewise.
3180 (sys/debugreg.h): Likewise.
3181 (sys/syscall.h): Likewise.
3182 (sys/procfs.h): Likewise.
3183 (sys/user.h): Likewise.
3184 (asm/ptrace.h): Likewise.
3185 (i386-nat.h): Likewise.
3186 * i386-linux-nat.c (i386-nat.h): Likewise.
3187 (regset.h): Likewise.
3188 (target.h): Likewise.
3189 (linux-nat.h): Likewise.
3190 (nat/linux-btrace.h): Likewise.
3191 (btrace.h): Likewise.
3192 (gdb_assert.h): Likewise.
3193 (string.h): Likewise.
3194 (sys/uio.h): Likewise.
3195 (sys/user.h): Likewise.
3196 (sys/procfs.h): Likewise.
3197 (sys/reg.h): Likewise.
3198 (sys/debugreg.h): Likewise.
3199 (ORIG_EAX): Remove definition.
3200
040baaf6
GB
32012014-07-11 Gary Benson <gbenson@redhat.com>
3202
3203 * i386-linux-nat.h: New file.
3204 * x86-linux-nat.h: Likewise.
3205 * x86-linux-nat.c: Likewise.
3206 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3207 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3208 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3209 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3210 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3211 (PTRACE_SETREGSET): Likewise.
3212 (arch_lwp_info): Now in x86-linux-nat.c.
3213 (have_ptrace_getregset): Now in x86-linux-nat.h.
3214 (x86_linux_dr_get): Now in x86-linux-nat.c.
3215 (x86_linux_dr_set): Likewise.
3216 (x86_linux_dr_get_addr): Likewise.
3217 (x86_linux_dr_get_control): Likewise.
3218 (x86_linux_dr_get_status): Likewise.
3219 (update_debug_registers_callback): Likewise.
3220 (x86_linux_dr_set_control): Likewise.
3221 (x86_linux_dr_set_addr): Likewise.
3222 (x86_linux_prepare_to_resume): Likewise.
3223 (x86_linux_new_thread): Likewise.
3224 (x86_linux_new_fork): Likewise.
3225 (x86_linux_get_thread_area): Likewise.
3226 (super_post_startup_inferior): Likewise.
3227 (x86_linux_child_post_startup_inferior): Likewise.
3228 (AMD64_LINUX_USER64_CS): Likewise.
3229 (AMD64_LINUX_X32_DS): Likewise.
3230 (x86_linux_read_description): Likewise.
3231 (x86_linux_enable_btrace): Likewise.
3232 (x86_linux_disable_btrace): Likewise.
3233 (x86_linux_teardown_btrace): Likewise.
3234 (x86_linux_read_btrace): Likewise.
3235 (x86_linux_create_target): Likewise.
3236 (x86_linux_add_target): Likewise.
3237 * i386-linux-nat.c (x86-linux-nat.h): New include.
3238 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3239 (PTRACE_SETREGSET): Likewise.
3240 (arch_lwp_info): Now in x86-linux-nat.c.
3241 (have_ptrace_getregset): Now in x86-linux-nat.h.
3242 (x86_linux_dr_get): Now in x86-linux-nat.c.
3243 (x86_linux_dr_set): Likewise.
3244 (x86_linux_dr_get_addr): Likewise.
3245 (x86_linux_dr_get_control): Likewise.
3246 (x86_linux_dr_get_status): Likewise.
3247 (update_debug_registers_callback): Likewise.
3248 (x86_linux_dr_set_control): Likewise.
3249 (x86_linux_dr_set_addr): Likewise.
3250 (x86_linux_prepare_to_resume): Likewise.
3251 (x86_linux_new_thread): Likewise.
3252 (x86_linux_new_fork): Likewise.
3253 (x86_linux_get_thread_area): Likewise.
3254 (super_post_startup_inferior): Likewise.
3255 (x86_linux_child_post_startup_inferior): Likewise.
3256 (AMD64_LINUX_USER64_CS): Likewise.
3257 (AMD64_LINUX_X32_DS): Likewise.
3258 (x86_linux_read_description): Likewise.
3259 (x86_linux_enable_btrace): Likewise.
3260 (x86_linux_disable_btrace): Likewise.
3261 (x86_linux_teardown_btrace): Likewise.
3262 (x86_linux_read_btrace): Likewise.
3263 (x86_linux_create_target): Likewise.
3264 (x86_linux_add_target): Likewise.
3265
1aa7e42c
GB
32662014-07-11 Gary Benson <gbenson@redhat.com>
3267
3268 * amd64-linux-nat.c: Comment and whitespace changes.
3269 * i386-linux-nat.c: Comment and whitespace changes.
3270
c1e246a0
GB
32712014-07-11 Gary Benson <gbenson@redhat.com>
3272
3273 * amd64-linux-nat.c (x86_linux_create_target): New function.
3274 (x86_linux_add_target): Likewise.
3275 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3276 * i386-linux-nat.c (x86_linux_create_target): New function.
3277 (x86_linux_add_target): Likewise.
3278 (_initialize_i386_linux_nat): Delegate to the above new functions.
3279
8c420b8d
GB
32802014-07-11 Gary Benson <gbenson@redhat.com>
3281
3282 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3283 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3284 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3285 (ps_get_thread_area): Delegate to the above.
3286
cb1da100
GB
32872014-07-11 Gary Benson <gbenson@redhat.com>
3288
3289 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3290 x86_linux_read_description. All uses updated. amd64-specific
3291 code conditionalized. Conditionalized i386-specific code added.
3292 Redundant cast removed.
3293 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3294 x86_linux_read_description. All uses updated. i386-specific
3295 code conditionalized. Conditionalized amd64-specific code added.
3296 One sizeof replaced with the actual type it is describing.
3297
2acf3cd0
GB
32982014-07-11 Gary Benson <gbenson@redhat.com>
3299
3300 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3301 x86_linux_dr_get. All uses updated.
3302 (amd64_linux_dr_set): Renamed to
3303 x86_linux_dr_set. All uses updated.
3304 (amd64_linux_dr_get_addr): Renamed to
3305 x86_linux_dr_get_addr. All uses updated.
3306 (amd64_linux_dr_get_control): Renamed to
3307 x86_linux_dr_get_control. All uses updated.
3308 (amd64_linux_dr_get_status): Renamed to
3309 x86_linux_dr_get_status. All uses updated.
3310 (amd64_linux_dr_set_control): Renamed to
3311 x86_linux_dr_set_control. All uses updated.
3312 (amd64_linux_dr_set_addr): Renamed to
3313 x86_linux_dr_set_addr. All uses updated.
3314 (amd64_linux_prepare_to_resume): Renamed to
3315 x86_linux_prepare_to_resume. All uses updated.
3316 (amd64_linux_new_thread): Renamed to
3317 x86_linux_new_thread. All uses updated.
3318 (amd64_linux_new_fork): Renamed to
3319 x86_linux_new_fork. All uses updated.
3320 (amd64_linux_child_post_startup_inferior): Renamed to
3321 x86_linux_child_post_startup_inferior. All uses updated.
3322 (amd64_linux_enable_btrace): Renamed to
3323 x86_linux_enable_btrace. All uses updated.
3324 (amd64_linux_disable_btrace): Renamed to
3325 x86_linux_disable_btrace. All uses updated.
3326 (amd64_linux_teardown_btrace): Renamed to
3327 x86_linux_teardown_btrace. All uses updated.
3328 (amd64_linux_read_btrace): Renamed to
3329 x86_linux_read_btrace. All uses updated.
3330 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3331 x86_linux_dr_get. All uses updated.
3332 (i386_linux_dr_set): Renamed to
3333 x86_linux_dr_set. All uses updated.
3334 (i386_linux_dr_get_addr): Renamed to
3335 x86_linux_dr_get_addr. All uses updated.
3336 (i386_linux_dr_get_control): Renamed to
3337 x86_linux_dr_get_control. All uses updated.
3338 (i386_linux_dr_get_status): Renamed to
3339 x86_linux_dr_get_status. All uses updated.
3340 (i386_linux_dr_set_control): Renamed to
3341 x86_linux_dr_set_control. All uses updated.
3342 (i386_linux_dr_set_addr): Renamed to
3343 x86_linux_dr_set_addr. All uses updated.
3344 (i386_linux_prepare_to_resume): Renamed to
3345 x86_linux_prepare_to_resume. All uses updated.
3346 (i386_linux_new_thread): Renamed to
3347 x86_linux_new_thread. All uses updated.
3348 (i386_linux_new_fork): Renamed to
3349 x86_linux_new_fork. All uses updated.
3350 (i386_linux_child_post_startup_inferior): Renamed to
3351 x86_linux_child_post_startup_inferior. All uses updated.
3352 (i386_linux_enable_btrace): Renamed to
3353 x86_linux_enable_btrace. All uses updated.
3354 (i386_linux_disable_btrace): Renamed to
3355 x86_linux_disable_btrace. All uses updated.
3356 (i386_linux_teardown_btrace): Renamed to
3357 x86_linux_teardown_btrace. All uses updated.
3358 (i386_linux_read_btrace): Renamed to
3359 x86_linux_read_btrace. All uses updated.
3360
b9c1d481
AS
33612014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3362
3363 * remote.c (extended_remote_post_attach): New function.
3364 (init_extended_remote_ops): Install it as to_post_attach method.
3365
7180e04a
PA
33662014-07-09 Pedro Alves <palves@redhat.com>
3367
3368 * infcmd.c (attach_command_post_wait): Don't call
3369 target_terminal_inferior here.
3370 (attach_command): Call it here instead.
3371
9a9a7608
AB
33722014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3373
3374 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3375 field.
3376 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3377 from varobj.c, with additional checks.
3378 (c_varobj_ops): Fill in is_path_expr_parent field.
3379 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3380 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3381 field.
3382 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3383 ops method.
3384 (varobj_default_is_path_expr_parent): New function.
3385 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3386 (varobj_default_is_path_expr_parent): Declare new function.
3387
1f267ae3
MM
33882014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3389
3390 * infcmd.c (finish_backward): Turn internal error into normal error.
3391
b2ee242b
PA
33922014-07-07 Pedro Alves <palves@redhat.com>
3393
8a869bca 3394 PR gdb/17096
b2ee242b
PA
3395 * remote.c (async_handle_remote_sigint)
3396 (async_handle_remote_sigint_twice): Call
3397 gdb_call_async_signal_handler instead of
3398 mark_async_signal_handler.
3399
38e229b2
TT
34002014-07-07 Tom Tromey <tromey@redhat.com>
3401
3402 * target-delegates.c: Rebuild.
3403 * target.c (target_info_record): Remove.
3404 * record.c (info_record_command): Unconditionally call
3405 to_info_record.
3406 * target.h (struct target_ops) <to_info_record>: Use
3407 TARGET_DEFAULT_IGNORE.
3408 (target_info_record): Remove.
3409
f0f9ff95
TT
34102014-07-07 Tom Tromey <tromey@redhat.com>
3411
3412 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3413 TARGET_DEFAULT_NORETURN.
3414 * target.c (generic_tls_error): New function.
3415 (target_translate_tls_address): Don't search target stack.
3416 * target-delegates.c: Rebuild.
3417 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3418 stack.
3419 * linux-thread-db.c (thread_db_get_thread_local_address):
3420 Unconditionally call beneath target.
3421
4a5be5ee
MK
34222014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3423
3424 * cli/cli-logging.c (pop_output_files): Assign targerr to
3425 gdb_stdtargerr.
3426
92c3b204
AB
34272014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3428
3429 * MAINTAINERS (Write After Approval): Update my email address.
3430
9b11e3a7
GB
34312014-07-02 Gary Benson <gbenson@redhat.com>
3432
3433 * proc-service.c (ps_xfer_memory): Update comment.
3434 (ps_pstop): Remove unused function.
3435 (ps_pcontinue): Likewise.
3436 (ps_lstop): Likewise.
3437 (ps_lcontinue): Likewise.
3438 (ps_lgetxregsize): Likewise.
3439 (ps_lgetxregs): Likewise.
3440 (ps_lsetxregs): Likewise.
3441 (ps_plog): Likewise.
3442 (ps_ptread): Likewise.
3443 (ps_ptwrite): Likewise.
3444
cf363f18
MW
34452014-07-01 Mark Wielaard <mjw@redhat.com>
3446
3447 * dwarf2read.c (add_array_cv_type): New function.
3448 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3449 (read_tag_volatile_type): Likewise.
3450
82ae6c8d
TT
34512014-07-01 Tom Tromey <tromey@redhat.com>
3452
3453 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3454 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3455 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3456 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3457 * command.h (cmd_cfunc_ftype): Move earlier.
3458 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3459 (add_com, add_info): Use cmd_cfunc_ftype.
3460
96142726
TT
34612014-06-30 Tom Tromey <tromey@redhat.com>
3462
3463 * symtab.c (operator_chars): Make parameters and return type
3464 const.
3465 (file_matches): Make "files" const.
3466 (struct search_symbols_data) <files>: Now const.
3467 (search_symbols): Make "regexp" and "files" parameters const.
3468 Update.
3469 (symtab_symbol_info): Remove cast.
3470 (rbreak_command): Update.
3471 * symtab.h (search_symbols): Update.
3472
b67a2c6f
YQ
34732014-06-27 Yao Qi <yao@codesourcery.com>
3474
3475 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3476 Change parameter type to 'struct thread_info *'. Caller
3477 updated.
3478 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3479 Update declaration.
3480 * dummy-frame.c (struct dummy_frame_id): New.
3481 (dummy_frame_id_eq): New function.
3482 (struct dummy_frame) <id>: Change its type to 'struct
3483 dummy_frame_id'.
3484 (dummy_frame_push): Add parameter ptid and save it in
3485 dummy_frame_id.
3486 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3487 inferior_ptid.
3488 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3489 to inferior_ptid.
3490 (lookup_dummy_frame): Change parameter type to 'struct
3491 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3492 instead of frame_id_eq.
3493 (dummy_frame_pop): Add parameter ptid. Callers updated.
3494 Update comments. Compose dummy_frame_id and pass it to
3495 lookup_dummy_frame.
3496 (dummy_frame_discard): Add parameter ptid.
3497 (dummy_frame_sniffer): Compose dummy_frame_id and call
3498 dummy_frame_id_eq instead of frame_id_eq.
3499 (fprint_dummy_frames): Print ptid.
3500 * dummy-frame.h: Remove comments.
3501 (dummy_frame_push): Add ptid in declaration.
3502 (dummy_frame_pop, dummy_frame_discard): Likewise.
3503
5b10184c
TT
35042014-06-26 Tom Tromey <tromey@redhat.com>
3505
3506 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3507 * command.h (error_no_arg): Update.
3508
06900326
TT
35092014-06-26 Tom Tromey <tromey@redhat.com>
3510
3511 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3512 (do_show_command): Make "arg" const.
3513 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3514
c2bcbb1d
TT
35152014-06-26 Tom Tromey <tromey@redhat.com>
3516
3517 * record-full.c (record_full_get_bookmark): Make "args" const.
3518 (record_full_goto_bookmark): Make "raw_bookmark" const.
3519 * record.c (record_goto): New function.
3520 (cmd_record_goto): Use it. Now static.
3521 * record.h (record_goto): Declare.
3522 (cmd_record_goto): Remove declaration.
3523 * target-delegates.c: Rebuild.
3524 * target.h (struct target_ops) <to_get_bookmark,
3525 to_goto_bookmark>: Make parameter const.
3526
9cbe5fff
TT
35272014-06-26 Tom Tromey <tromey@redhat.com>
3528
3529 * defs.h (generic_load): Update.
3530 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3531 * monitor.c (monitor_load): Make "args" const.
3532 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3533 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3534 const.
3535 (mips_load): Make "file" const.
3536 * remote-sim.c (gdbsim_load): Make "args" const.
3537 * remote.c (remote_load): Make "name" const.
3538 * symfile.c (generic_load): Make "args" const.
3539 * target-delegates.c: Rebuild.
3540 * target.c (target_load): Make "arg" const.
3541 (debug_to_load): Make "args" const.
3542 * target.h (struct target_ops) <to_load>: Make parameter const.
3543 (target_load): Update.
3544
34a68019
TT
35452014-06-26 Tom Tromey <tromey@redhat.com>
3546
3547 PR symtab/16902:
3548 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3549 (dwarf2_physname, read_partial_die)
3550 (guess_partial_die_structure_name, fixup_partial_die)
3551 (guess_full_die_structure_name, anonymous_struct_prefix)
3552 (dwarf2_name): Use per-BFD obstack.
3553
efc889c1
YQ
35542014-06-26 Yao Qi <yao@codesourcery.com>
3555
3556 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3557 dummyframe and this_id into inner block below.
3558
4395285e
YQ
35592014-06-26 Yao Qi <yao@codesourcery.com>
3560
3561 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3562 with "signal_pass[0]" in the initialization of signal_pass.
3563
aef92902
MM
35642014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3565
3566 * record-btrace.c (record_btrace_generating_corefile)
3567 (record_btrace_prepare_to_generate_core)
3568 (record_btrace_done_generating_core): New.
3569 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3570 (record_btrace_store_registers, record_btrace_prepare_to_store):
3571 Forward request when generating a core file.
3572 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3573 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3574 to_done_generating_core.
3575
5fff78c4
MM
35762014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3577
3578 * target.h (target_ops) <to_prepare_to_generate_core>
3579 <to_done_generating_core>: New.
3580 (target_prepare_to_generate_core, target_done_generating_core): New.
3581 * target.c (target_prepare_to_generate_core)
3582 (target_done_generating_core): New.
3583 * target-delegates.c: Regenerate.
3584 * gcore.c: (write_gcore_file): Rename to ...
3585 (write_gcore_file_1): ...this.
3586 (write_gcore_file): Call target_prepare_to_generate_core
3587 and target_done_generating_core.
3588
1d1f1ccb
MM
35892014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3590
3591 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3592 * gcore.c (write_gcore_file): Free memory returned from
3593 make_corefile_notes.
3594 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3595 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3596
3343ef86
YQ
35972014-06-24 Yao Qi <yao@codesourcery.com>
3598
3599 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3600 (arm_linux_init_abi): Set skip_trampoline_code with
3601 gdbarch_skip_trampoline_code instead of
3602 find_solib_trampoline_target.
3603
18d18ac8
YQ
36042014-06-24 Yao Qi <yao@codesourcery.com>
3605
3606 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3607 arm_skip_bx_reg returns non-zero.
3608
80d8d390
YQ
36092014-06-24 Yao Qi <yao@codesourcery.com>
3610
3611 * arm-tdep.c (arm_skip_bx_reg): New function.
3612 (arm_skip_stub): Call arm_skip_bx_reg.
3613
6a18a01c
DB
36142014-06-23 Don Breazeal <donb@codesourcery.com>
3615
3616 * MAINTAINERS: Add myself as write-after-approval maintainer.
3617
8e9db26e
PA
36182014-06-23 Pedro Alves <palves@redhat.com>
3619
3620 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3621 DR_CONTROL before setting DR0..DR3.
3622 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3623 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3624 bits of DR_CONTROL related to the debug register slot being
3625 disabled. If all slots are vacant, clear local slowdown as well,
3626 and assert DR_CONTROL is 0.
3627
70afc5b7
SC
36282014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3629
3630 * python/lib/gdb/command/xmethods.py
3631 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3632 current progspace only if the string "progspace" matches LOCUS_RE.
3633
840ed64d
JK
36342014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3635
3636 Fix --with-system-readline with readline-6.3 patch 5.
3637 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3638 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3639 types.
3640
26f2dc30
TT
36412014-06-20 Tom Tromey <tromey@redhat.com>
3642
3643 * dwarf2read.c (dw2_get_real_path): Use correct type in
3644 OBSTACK_CALLOC.
3645 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3646
125f8a3d
GB
36472014-06-20 Gary Benson <gbenson@redhat.com>
3648
3649 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3650 * common/glibc_thread_db.h: Likewise.
3651 * common/i386-cpuid.h: Likewise.
3652 * common/i386-gcc-cpuid.h: Likewise.
3653 * common/linux-btrace.h: Likewise.
3654 * common/linux-osdata.h: Likewise.
3655 * common/linux-procfs.h: Likewise.
3656 * common/linux-ptrace.h: Likewise.
3657 * common/mips-linux-watch.h: Likewise.
3658 * common/linux-btrace.c: Moved to nat.
3659 * common/linux-osdata.c: Likewise.
3660 * common/linux-procfs.c: Likewise.
3661 * common/linux-ptrace.c: Likewise.
3662 * common/mips-linux-watch.c: Likewise.
3663 * nat/gdb_thread_db.h: Moved from common.
3664 * nat/glibc_thread_db.h: Likewise.
3665 * nat/i386-cpuid.h: Likewise.
3666 * nat/i386-gcc-cpuid.h: Likewise.
3667 * nat/linux-btrace.c: Likewise.
3668 * nat/linux-btrace.h: Likewise.
3669 * nat/linux-osdata.c: Likewise.
3670 * nat/linux-osdata.h: Likewise.
3671 * nat/linux-procfs.c: Likewise.
3672 * nat/linux-procfs.h: Likewise.
3673 * nat/linux-ptrace.c: Likewise.
3674 * nat/linux-ptrace.h: Likewise.
3675 * nat/mips-linux-watch.c: Likewise.
3676 * nat/mips-linux-watch.h: Likewise.
3677 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3678 (object file files): Reordered.
3679 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3680 of glibc_thread_db.h.
3681
42995dbd
GB
36822014-06-20 Gary Benson <gbenson@redhat.com>
3683
3684 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3685 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3686 (i386_dr_low): Likewise.
3687 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3688 (i386_dr_low_set_addr): Likewise.
3689 (i386_dr_low_get_addr): Likewise.
3690 (i386_dr_low_can_set_control): Likewise.
3691 (i386_dr_low_set_control): Likewise.
3692 (i386_dr_low_get_control): Likewise.
3693 (i386_dr_low_get_status): Likewise.
3694 (i386_get_debug_register_length): Likewise.
3695 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3696 (i386_dr_low): Likewise.
3697 * nat/i386-dregs.c (i386-low.h): Remove include.
3698 (i386-nat.h): Likewise.
3699 (nat/i386-dregs.h): New include.
3700 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3701 (i386_dr_low_set_addr): Likewise.
3702 (i386_dr_low_get_addr): Likewise.
3703 (i386_dr_low_can_set_control): Likewise.
3704 (i386_dr_low_set_control): Likewise.
3705 (i386_dr_low_get_control): Likewise.
3706 (i386_dr_low_get_status): Likewise.
3707 (i386_get_debug_register_length): Likewise.
3708 (debug_hw_points): Likewise.
3709
3ed9baed
IB
37102014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3711
3712 * Makefile.in (SFILES): Add d-exp.y.
3713 (YYFILES): Add d-exp.c.
3714 (YYOBJ): Add d-exp.o.
3715 (local-maintainer-clean): Delete d-exp.c.
3716 * d-exp.y: New file.
3717 * d-lang.h (d_parse): New declaration.
3718 (d_error): New declaration.
3719 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3720 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3721 PREC_ORDER operators.
3722 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3723
78c164b0
YQ
37242014-06-19 Yao Qi <yao@codesourcery.com>
3725
3726 * gdbthread.h (any_running): Remove the declaration.
3727 * thread.c (any_running): Remove.
3728
f6e29b6e
YQ
37292014-06-19 Yao Qi <yao@codesourcery.com>
3730
3731 * gdbthread.h (struct thread_info) <state>: Change its type to
3732 'enum thread_state'. Update comments.
3733
034f788c
PA
37342014-06-19 Pedro Alves <palves@redhat.com>
3735
3736 * gdbthread.h (ALL_THREADS): Delete.
3737 (ALL_NON_EXITED_THREADS): New macro.
3738 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3739 instead of ALL_THREADS.
3740 * infrun.c (find_thread_needs_step_over)
3741 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3742 instead of ALL_THREADS.
3743 * record-btrace.c (record_btrace_open)
3744 (record_btrace_stop_recording, record_btrace_close)
3745 (record_btrace_is_replaying, record_btrace_resume)
3746 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3747 * remote.c (append_pending_thread_resumptions): Likewise.
3748 * thread.c (thread_apply_all_command): Likewise.
3749
46e33252
GB
37502014-06-19 Gary Benson <gbenson@redhat.com>
3751
3752 * i386-nat.c (i386_stopped_by_watchpoint):
3753 Use i386_dr_stopped_by_watchpoint.
3754 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3755 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3756
3a8ee006
GB
37572014-06-19 Gary Benson <gbenson@redhat.com>
3758
3759 * nat/i386-dregs.c: New file.
3760 * Makefile.in (i386-dregs.o): New rule.
3761 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3762 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3763 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3764 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3765 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3766 * config/i386/go32.mh (NATDEPFILES): Likewise.
3767 * config/i386/linux.mh (NATDEPFILES): Likewise.
3768 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3769 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3770 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3771 * i386-nat.h (debug_hw_points): New declaration.
3772 * i386-nat.c (breakpoint.h): Remove include.
3773 (command.h): Likewise.
3774 (target.h): Likewise.
3775 (gdb_assert.h): Likewise.
3776 (debug_hw_points): Made nonstatic.
3777 (debug_printf): Now in i386-dregs.c.
3778 (TARGET_HAS_DR_LEN_8): Likewise.
3779 (DR_CONTROL_SHIFT): Likewise.
3780 (DR_CONTROL_SIZE): Likewise.
3781 (DR_RW_EXECUTE): Likewise.
3782 (DR_RW_WRITE): Likewise.
3783 (DR_RW_READ): Likewise.
3784 (DR_RW_IORW): Likewise.
3785 (DR_LEN_1): Likewise.
3786 (DR_LEN_2): Likewise.
3787 (DR_LEN_4): Likewise.
3788 (DR_LEN_8): Likewise.
3789 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3790 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3791 (DR_ENABLE_SIZE): Likewise.
3792 (DR_LOCAL_SLOWDOWN): Likewise.
3793 (DR_GLOBAL_SLOWDOWN): Likewise.
3794 (DR_CONTROL_RESERVED): Likewise.
3795 (I386_DR_CONTROL_MASK): Likewise.
3796 (I386_DR_VACANT): Likewise.
3797 (I386_DR_LOCAL_ENABLE): Likewise.
3798 (I386_DR_GLOBAL_ENABLE): Likewise.
3799 (I386_DR_DISABLE): Likewise.
3800 (I386_DR_SET_RW_LEN): Likewise.
3801 (I386_DR_GET_RW_LEN): Likewise.
3802 (I386_DR_WATCH_HIT): Likewise.
3803 (i386_wp_op_t): Likewise.
3804 (i386_show_dr): Likewise.
3805 (i386_length_and_rw_bits): Likewise.
3806 (i386_insert_aligned_watchpoint): Likewise.
3807 (i386_remove_aligned_watchpoint): Likewise.
3808 (i386_handle_nonaligned_watchpoint): Likewise.
3809 (i386_update_inferior_debug_regs): Likewise.
3810 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3811 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3812 (i386_region_ok_for_watchpoint):
3813 Use i386_dr_region_ok_for_watchpoint.
3814 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3815
322a8e06
GB
38162014-06-19 Gary Benson <gbenson@redhat.com>
3817
3818 * i386-nat.c (i386_insert_hw_breakpoint): Use
3819 i386_insert_watchpoint.
3820 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3821
8f26655c
GB
38222014-06-19 Gary Benson <gbenson@redhat.com>
3823
3824 * i386-nat.c (i386_dr_show): Renamed to
3825 i386_show_dr and made static. All uses updated.
3826 (i386_dr_length_and_rw_bits): Renamed to
3827 i386_length_and_rw_bits and made static.
3828 All uses updated.
3829 (i386_dr_insert_aligned_watchpoint): Renamed to
3830 i386_insert_aligned_watchpoint and made static.
3831 All uses updated.
3832 (i386_dr_remove_aligned_watchpoint): Renamed to
3833 i386_remove_aligned_watchpoint and made static.
3834 All uses updated.
3835 (i386_dr_update_inferior_debug_regs): Renamed to
3836 i386_update_inferior_debug_regs and made static.
3837 All uses updated.
3838 * nat/i386-dregs.h (i386_dr_show): Removed.
3839 (i386_dr_length_and_rw_bits): Likewise.
3840 (i386_dr_insert_aligned_watchpoint): Likewise.
3841 (i386_dr_remove_aligned_watchpoint): Likewise.
3842 (i386_dr_update_inferior_debug_regs): Likewise.
3843
992c7d70
GB
38442014-06-19 Gary Benson <gbenson@redhat.com>
3845
3846 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3847 * configure: Regenerate.
3848 * config.in: Likewise.
3849 * main.c (signal.h): New include.
3850 (setup_alternate_signal_stack): New function.
3851 (captured_main): Call the above.
3852 * cp-support.c (signal.h): New include.
3853 (catch_demangler_crashes): New flag.
3854 (SIGJMP_BUF): New define.
3855 (SIGSETJMP): Likewise.
3856 (SIGLONGJMP): Likewise.
3857 (gdb_demangle_jmp_buf): New static global.
3858 (gdb_demangle_attempt_core_dump): Likewise.
3859 (gdb_demangle_signal_handler): New function.
3860 (gdb_demangle): If catch_demangler_crashes is set, install the
3861 above signal handler before calling bfd_demangle, and restore
3862 the original signal handler afterwards. Display the offending
3863 symbol and call demangler_warning the first time a segmentation
3864 fault is caught.
3865 (_initialize_cp_support): New maint set/show command.
3866
eae7090b
GB
38672014-06-19 Gary Benson <gbenson@redhat.com>
3868
3869 * utils.h (resource_limit_kind): New enum.
3870 (can_dump_core): New declaration.
3871 (warn_cant_dump_core): Likewise.
3872 (dump_core): Likewise.
3873 * utils.c (dump_core): Made nonstatic. Added new
3874 parameter "limit_kind".
3875 (can_dump_core): Made nonstatic. Moved printing code to...
3876 (warn_cant_dump_core): New function.
3877 (can_dump_core_warn): Likewise.
3878 (internal_vproblem): Replace calls to can_dump_core with
3879 calls to can_dump_core_warn. Supply new argument to each.
3880
57fcfb1b
GB
38812014-06-19 Gary Benson <gbenson@redhat.com>
3882
3883 * utils.h (demangler_vwarning): New declaration.
3884 (demangler_warning): Likewise.
3885 * utils.c (struct internal_problem)
3886 <user_settable_should_quit>: New field.
3887 <user_settable_should_dump_core>: Likewise
3888 (internal_error_problem): Add values for above new fields.
3889 (internal_warning_problem): Likewise.
3890 (demangler_warning_problem): New static global.
3891 (demangler_vwarning): New function.
3892 (demangler_warning): Likewise.
3893 (add_internal_problem_command): Selectively add commands.
3894 (_initialize_utils): New internal problem command.
3895 * maint.c (maintenance_demangler_warning): New function.
3896 (_initialize_maint_cmds): New command.
3897
17a40b44
TT
38982014-06-18 Tom Tromey <tromey@redhat.com>
3899
3900 * f-valprint.c (info_common_command_for_block): Update.
3901 * symtab.h (struct general_symbol_info) <common_block>: Now
3902 const.
3903
346d1dfe
TT
39042014-06-18 Tom Tromey <tromey@redhat.com>
3905
3906 * symtab.h (struct symtab) <blockvector>: Now const.
3907 * ada-lang.c (ada_add_global_exceptions): Update.
3908 * buildsym.c (augment_type_symtab): Update.
3909 * dwarf2read.c (dw2_lookup_symbol): Update.
3910 * jit.c (finalize_symtab): Update.
3911 * jv-lang.c (add_class_symtab_symbol): Update.
3912 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3913 Update.
3914 * objfiles.c (objfile_relocate1): Update.
3915 * psymtab.c (lookup_symbol_aux_psymtabs)
3916 (maintenance_check_psymtabs): Update.
3917 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3918 Update.
3919 * spu-tdep.c (spu_catch_start): Update.
3920 * symmisc.c (dump_symtab_1): Update.
3921 * symtab.c (lookup_global_symbol_from_objfile)
3922 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3923 (basic_lookup_transparent_type_quick)
3924 (basic_lookup_transparent_type, find_pc_sect_symtab)
3925 (find_pc_sect_line, search_symbols): Update.
3926 * block.c (find_block_in_blockvector): Make "bl" const.
3927 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3928 const.
3929 (blockvector_contains_pc): Make "bv" const.
3930 (block_for_pc_sect): Update.
3931 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3932 (blockvector_contains_pc): Update.
3933 * breakpoint.c (resolve_sal_pc): Update.
3934 * inline-frame.c (block_starting_point_at): Update.
3935
1834676b
TT
39362014-06-18 Tom Tromey <tromey@redhat.com>
3937
3938 * completer.c (complete_line): Make "line_buffer" const.
3939 * completer.h (complete_line): Update.
3940
ac1a991b
TT
39412014-06-18 Tom Tromey <tromey@redhat.com>
3942
3943 * symtab.c (add_macro_name): Remove unneeded cast.
3944
5bc98e52
TT
39452014-06-18 Tom Tromey <tromey@redhat.com>
3946
3947 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3948 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3949
8236def8
TT
39502014-06-18 Tom Tromey <tromey@redhat.com>
3951
3952 * probe.c (info_probes_for_ops): Make "arg" const.
3953 * probe.h (info_probes_for_ops): Update.
3954
3977b71f
TT
39552014-06-18 Tom Tromey <tromey@redhat.com>
3956
3957 * varobj.c (varobj_create): Update.
3958 * valops.c (value_of_this): Update.
3959 * tracepoint.c (add_local_symbols, scope_info): Update.
3960 * symtab.h (struct general_symbol_info) <block>: Now const.
3961 * symtab.c (skip_prologue_sal)
3962 (default_make_symbol_completion_list_break_on)
3963 (skip_prologue_using_sal): Update.
3964 * stack.h (iterate_over_block_locals)
3965 (iterate_over_block_local_vars): Update.
3966 * stack.c (print_frame_args): Update.
3967 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3968 parameter const.
3969 (get_selected_block): Make return type const.
3970 * python/py-frame.c (frapy_block): Update.
3971 * python/py-block.c (gdbpy_block_for_pc): Update.
3972 * p-exp.y (%union) <bval>: Now const.
3973 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3974 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3975 * m2-exp.y (%union) <bval>: Now const.
3976 * linespec.c (get_current_search_block): Make return type const.
3977 (create_sals_line_offset, find_label_symbols): Update.
3978 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3979 Update.
3980 (block_starting_point_at): Make "block" const.
3981 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3982 (check_exception_resume): Update.
3983 * guile/scm-frame.c (gdbscm_frame_block): Update.
3984 * guile/scm-block.c (gdbscm_lookup_block): Update.
3985 * frame.h (get_frame_block): Update.
3986 (get_selected_block): Make return type const.
3987 * frame.c (frame_id_inner): Update.
3988 * f-valprint.c (info_common_command_for_block)
3989 (info_common_command): Update.
3990 * dwarf2loc.c (dwarf2_find_location_expression)
3991 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3992 (locexpr_describe_location_piece): Update.
3993 * c-exp.y (%union) <bval>: Now const.
3994 * breakpoint.c (resolve_sal_pc): Update.
3995 * blockframe.c (get_frame_block):Make return type const.
3996 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3997 (block_innermost_frame): Update.
3998 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3999 (block_for_pc, block_for_pc_sect): Update.
4000 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4001 'pblock' const.
4002 (block_for_pc_sect, block_for_pc): Make return type const.
4003 * ax-gdb.c (gen_expr): Update.
4004 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4005 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4006 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4007 (ada_read_var_value): Update.
4008 * ada-exp.y (struct name_info) <block>: Now const.
4009 (%union): Likewise.
4010 (block_lookup): Constify.
4011
b9228891
GB
40122014-06-18 Gary Benson <gbenson@redhat.com>
4013
4014 * nat/i386-dregs.h: New file.
4015 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4016 * i386-nat.h (i386-dregs.h): New include.
4017 (DR_FIRSTADDR): Now in i386-dregs.h.
4018 (DR_LASTADDR): Likewise.
4019 (DR_NADDR): Likewise.
4020 (DR_STATUS): Likewise.
4021 (DR_CONTROL): Likewise.
4022 (i386_debug_reg_state): Likewise.
4023 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4024
a1aa2221
LM
40252014-06-18 Don Breazeal <donb@codesourcery.com>
4026
4027 * breakpoint.c (set_longjmp_breakpoint): Call
4028 momentary_breakpoint_from_master with additional argument.
4029 (set_longjmp_breakpoint_for_call_dummy): Call
4030 momentary_breakpoint_from_master with additional argument.
4031 (set_std_terminate_breakpoint): Call
4032 momentary_breakpoint_from_master with additional argument.
4033 (momentary_breakpoint_from_master): Add argument to function
4034 definition and use it to initialize structure member flag.
74228e77 4035 (clone_momentary_breakpoint): Call
a1aa2221
LM
4036 momentary_breakpoint_from_master with additional argument.
4037 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4038 member flags set in momentary_breakpoint_from_master.
4039
4be83cc2
GB
40402014-06-18 Gary Benson <gbenson@redhat.com>
4041
4042 * i386-nat.c (i386_show_dr): Renamed to
4043 i386_dr_show and made nonstatic. All uses updated.
4044 (i386_length_and_rw_bits): Renamed to
4045 i386_dr_length_and_rw_bits and made nonstatic.
4046 All uses updated.
4047 (i386_insert_aligned_watchpoint): Renamed to
4048 i386_dr_insert_aligned_watchpoint and made nonstatic.
4049 All uses updated.
4050 (i386_remove_aligned_watchpoint): Renamed to
4051 i386_dr_remove_aligned_watchpoint and made nonstatic.
4052 All uses updated.
4053 (i386_update_inferior_debug_regs): Renamed to
4054 i386_dr_update_inferior_debug_regs and made nonstatic.
4055 All uses updated.
4056
131aa0d4
GB
40572014-06-18 Gary Benson <gbenson@redhat.com>
4058
4059 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4060 (i386_dr_low_can_set_control): Likewise.
4061 (i386_dr_low_set_addr): Likewise.
4062 (i386_dr_low_set_control): Likewise.
4063 (i386_dr_low_get_addr): Likewise.
4064 (i386_dr_low_get_status): Likewise.
4065 (i386_dr_low_get_control): Likewise.
4066 (i386_insert_aligned_watchpoint): Use new macros.
4067 (i386_update_inferior_debug_regs): Likewise.
4068 (i386_stopped_data_address): Likewise.
4069
d9305f7f
GB
40702014-06-18 Gary Benson <gbenson@redhat.com>
4071
4072 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4073 New parameter. All uses updated.
4074
ea008da4
GB
40752014-06-18 Gary Benson <gbenson@redhat.com>
4076
4077 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4078 All uses updated.
4079
1b6d4134
GB
40802014-06-18 Gary Benson <gbenson@redhat.com>
4081
4082 * i386-nat.c (debug_printf): New macro.
4083 (i386_get_debug_register_length): Likewise.
4084 (TARGET_HAS_DR_LEN_8): Use above macro.
4085 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4086 and printf_unfiltered. Use phex to format values.
4087
9b4550ef
GB
40882014-06-18 Gary Benson <gbenson@redhat.com>
4089
4090 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4091 Make const.
4092
6e62758f
GB
40932014-06-18 Gary Benson <gbenson@redhat.com>
4094
4095 * i386-nat.c: Comment changes.
4096
51c79e94
GB
40972014-06-18 Gary Benson <gbenson@redhat.com>
4098
4099 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4100
3e11889a
GB
41012014-06-18 Gary Benson <gbenson@redhat.com>
4102
4103 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4104 (i386_insert_aligned_watchpoint): Likewise.
4105 (i386_remove_aligned_watchpoint): Likewise.
4106 (i386_handle_nonaligned_watchpoint): Likewise.
4107
fc6e2f03
GB
41082014-06-18 Gary Benson <gbenson@redhat.com>
4109
4110 * i386-nat.c: Whitespace changes.
4111
2afe7d50
SB
41122014-06-17 Samuel Bronson <naesten@gmail.com>
4113
4114 * MAINTAINERS: Update Roland McGrath's email address.
4115 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 4116 Red Hat a while ago, and giving me a current address.
2afe7d50 4117
3bca49ee
TT
41182014-06-17 Tom Tromey <tromey@redhat.com>
4119
4120 * utils.h (savestring): Remove declaration.
4121
6e366df1
TT
41222014-06-17 Tom Tromey <tromey@redhat.com>
4123
4124 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4125
6be47f0c
KS
41262014-06-16 Keith Seitz <keiths@redhat.com>
4127
4128 PR mi/15863
4129 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4130 to update the varobj if inferior_ptid is null_ptid.
4131
7bc112c1
TT
41322014-06-16 Tom Tromey <tromey@redhat.com>
4133
4134 * target.h (struct target_ops) <to_info_proc>: Make parameter
4135 const.
4136 (target_info_proc): Update.
4137 * target.c (target_info_proc): Make "args" const.
4138 * procfs.c (procfs_info_proc): Update.
4139 * linux-tdep.c (linux_info_proc): Update.
4140 (linux_core_info_proc_mappings): Make "args" const.
4141 (linux_core_info_proc): Update.
4142 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4143 * gdbarch.c: Rebuild.
4144 * gdbarch.h: Rebuild.
4145 * corelow.c (core_info_proc): Update.
4146
fee354ee
TT
41472014-06-16 Tom Tromey <tromey@redhat.com>
4148
4149 * target.h (struct target_ops) <to_disconnect>: Make parameter
4150 const.
4151 (target_disconnect): Update.
4152 * target.c (target_disconnect): Make "args" const.
4153 * target-delegates.c: Rebuild.
4154 * remote.c (remote_disconnect): Update.
4155 * record.h (record_disconnect): Update.
4156 * record.c (record_disconnect): Update.
4157 * inf-child.c (inf_child_disconnect): Update.
4158
a30bf1f1
TT
41592014-06-16 Tom Tromey <tromey@redhat.com>
4160
4161 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4162 * target.c (debug_to_rcmd, default_rcmd): Update.
4163 * target-delegates.c: Rebuild.
4164 * remote.c (remote_rcmd): Update.
4165 * monitor.c (monitor_rcmd): Update.
4166
d03de421
PA
41672014-06-16 Pedro Alves <palves@redhat.com>
4168
4169 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4170 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4171 have OBJF_SHARED set.
4172 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4173 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4174 instead of OBJF_USERLOADED.
4175 * objfiles.h (OBJF_SHARED): Update comment.
4176 (userloaded_objfile_contains_address_p): Rename to ...
4177 (shared_objfile_contains_address_p): ... this, and update
4178 comments.
4179 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4180 new objfile.
4181 (remove_symbol_file_command): Skip objfiles that don't have
4182 OBJF_SHARED set.
4183
99f4262f
TT
41842014-06-16 Tom Tromey <tromey@redhat.com>
4185
4186 * minsyms.h (prim_record_minimal_symbol)
4187 (prim_record_minimal_symbol_and_info): Update comments.
4188
97d66cc6
EZ
41892014-06-14 Eli Zaretskii <eliz@gnu.org>
4190
4191 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4192 or --without-guile, according to how GDB was built.
4193
635c7e8a
TT
41942014-06-13 Tom Tromey <tromey@redhat.com>
4195
4196 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4197 to help_list.
4198 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4199 to help_list.
4200 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4201 help_list.
4202 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4203 help_list.Pass all_commands, not -1, to help_list.
4204 * cli/cli-dump.c (dump_command, append_command)
4205 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4206 (binary_dump_command, binary_append_command): Pass all_commands,
4207 not -1, to help_list.
4208 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4209 -1, to help_list.
4210 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4211 -1, to help_list.
4212 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4213 help_list.
4214 * top.c (set_history): Pass all_commands, not -1, to help_list.
4215 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4216 all_commands, not -1, to help_list.
4217 * symfile.c (overlay_command): Pass all_commands, not -1, to
4218 help_list.
4219 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4220 help_list.
4221 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4222 help_list.
4223 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4224 -1, to help_list.
4225 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4226 not -1, to help_list.
4227 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4228 not -1, to help_list.
4229 * maint.c (maintenance_command, maintenance_info_command)
4230 (maintenance_print_command, maintenance_set_cmd): Pass
4231 all_commands, not -1, to help_list.
4232 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4233 help_list.
4234 * language.c (set_check): Pass all_commands, not -1, to help_list.
4235 * infcmd.c (unset_command): Pass all_commands, not -1, to
4236 help_list.
4237 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4238 help_list.
4239 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4240 help_list.
4241 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4242 help_list.
4243 * breakpoint.c (save_command): Pass all_commands, not -1, to
4244 help_list.
4245 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4246 all_commands, not -1, to help_list.
4247
b94ade42
PL
42482014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4249
4250 * regcache.c (struct register_to_invalidate): New structure.
4251 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4252 functions.
4253 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4254
31f628ae
YQ
42552014-06-12 Yao Qi <yao@codesourcery.com>
4256
4257 * varobj.c (varobj_get_num_children): Call
4258 varobj_is_dynamic_p.
4259 (varobj_list_children): Likewise.
4260 (varobj_update): Likewise. Update comments.
4261
cde5ef40
YQ
42622014-06-12 Yao Qi <yao@codesourcery.com>
4263
4264 * varobj.c (varobj_pretty_printed_p): Rename to ...
4265 (varobj_is_dynamic_p): ... this. New function.
4266 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4267 (varobj_is_dynamic_p): Declare.
4268 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4269 (mi_print_value_p, varobj_update_one): Likewise.
4270
576ea091
YQ
42712014-06-12 Pedro Alves <pedro@codesourcery.com>
4272 Yao Qi <yao@codesourcery.com>
4273
4274 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4275 (varobj_get_iterator): Wrap up code for pretty-printer by
4276 "#if HAVE_PYTHON" and "#endif".
4277 (update_dynamic_varobj_children): Likewise.
4278
827f100c
YQ
42792014-06-12 Pedro Alves <pedro@codesourcery.com>
4280 Yao Qi <yao@codesourcery.com>
4281
4282 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4283 gdb_python_initialized is false. Move some code from varobj.c.
4284 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4285 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4286 (struct varobj_item): Moved to varobj-iter.h".
4287 (varobj_clear_saved_item): New function.
4288 (update_dynamic_varobj_children): Move python-related code to
4289 py-varobj.c.
4290 (free_variable): Call varobj_clear_saved_item and
4291 varobj_iter_delete.
4292
e5250216
YQ
42932014-06-12 Pedro Alves <pedro@codesourcery.com>
4294 Yao Qi <yao@codesourcery.com>
4295
4296 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4297 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4298 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4299 (py-varobj.o): New rule.
4300 * python/py-varobj.c: New file.
4301 * python/python-internal.h (py_varobj_get_iterator): Declare.
4302 * varobj-iter.h: New file.
4303 * varobj.c: Include "varobj-iter.h"
4304 (struct varobj) <child_iter>: Change its type from "PyObject *"
4305 to "struct varobj_iter *".
4306 <saved_item>: Likewise.
4307 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4308 [HAVE_PYTHON] (varobj_get_iterator): New function.
4309 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4310 python-specific code to python/py-varobj.c.
4311 (install_visualizer): Call varobj_iter_delete instead of
4312 Py_XDECREF.
4313 * varobj.h (varobj_ensure_python_env): Declare.
4314
5a2e0d6e
YQ
43152014-06-12 Yao Qi <yao@codesourcery.com>
4316
4317 * varobj.c (struct varobj_item): New structure.
4318 (create_child_with_value): Update declaration.
4319 (varobj_add_child): Replace arguments 'name' and 'value' with
4320 'item'. All callers updated.
4321 (install_dynamic_child): Likewise.
4322 (update_dynamic_varobj_children): Likewise.
4323 (varobj_add_child): Likewise.
4324 (create_child_with_value): Likewise.
4325
919b9a93
JB
43262014-06-11 Joel Brobecker <brobecker@adacore.com>
4327
4328 * NEWS: Create a new section for the next release branch.
4329 Rename the section of the current branch, now that it has
4330 been cut.
4331
71a55bdf
JB
43322014-06-11 Joel Brobecker <brobecker@adacore.com>
4333
4334 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4335 * version.in: Bump version to 7.8.50.DATE-cvs.
4336
364fe1f7
PA
43372014-06-11 Pedro Alves <palves@redhat.com>
4338
4339 PR remote/17028
4340 * ser-mingw.c (net_windows_socket_check_pending): New function.
4341 (net_windows_select_thread): Ignore spurious wakeups. Use
4342 net_windows_socket_check_pending.
4343 (net_windows_wait_handle): Check for pending events with
4344 ioctlsocket, through net_windows_socket_check_pending, instead of
4345 checking the socket's event.
4346
5a6c7709
SC
43472014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4348
4349 * python/python-internal.h (gdb_PyObject_GetAttrString)
4350 (gdb_PyObject_HasAttrString): New inline function definitions.
4351 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4352 char * of the second argument to PyObject_GetAttrString.
74228e77 4353
0e58ee40
JB
43542014-06-10 Joel Brobecker <brobecker@adacore.com>
4355
4356 * serial.c (serial_write): Fix index of character to be printed
4357 in call to serial_logchar when serial debug traces are enabled.
4358
d190df30
JB
43592014-06-10 Joel Brobecker <brobecker@adacore.com>
4360
4361 * gdbtypes (resolve_dynamic_range): Add function description.
4362
b4b01d36
PA
43632014-06-09 Pedro Alves <palves@redhat.com>
4364
4365 * linux-nat.c (linux_child_follow_fork): Initialize status with
4366 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4367 inner block. Only pass the signal to PTRACE_DETACH if in pass
4368 state.
4369
3657956b
GB
43702014-06-09 Gary Benson <gbenson@redhat.com>
4371
4372 * common/signals.c (gdb_signal_from_host): Reorder to separate
4373 the always-available ANSI-standard signals from the signals that
4374 require checking.
4375 (do_gdb_signal_to_host): Likewise.
4376 * proc-events.c (signal_table): Likewise.
4377
c077881a
HZ
43782014-06-08 Hui Zhu <hui@codesourcery.com>
4379
4380 * common/linux-ptrace.c (linux_disable_event_reporting): New
4381 function.
4382 * common/linux-ptrace.h (linux_disable_event_reporting): New
4383 declaration.
4384 * linux-nat.c (linux_child_follow_fork): Do a single step before
4385 detach.
4386
4186eb54
KS
43872014-06-07 Keith Seitz <keiths@redhat.com>
4388
4389 Revert:
4390 PR c++/16253
4391 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4392 from symbol_matches_domain in symtab.c. All local callers
4393 of symbol_matches_domain updated.
4394 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4395 search STRUCT_DOMAIN.
4396 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4397 independently. standard_lookup will do that automatically.
4398 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4399 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4400 (cp_lookup_symbol_in_namespace): Likewise.
4401 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4402 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4403 may return a STRUCT_DOMAIN match.
4404 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4405 * cp-support.c: Include language.h.
4406 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4407 VAR_DOMAIN.
4408 * psymtab.c (match_partial_symbol): Compare the requested
4409 domain with the symbol's domain directly.
4410 (lookup_partial_symbol): Likewise.
4411 * symtab.c (lookup_symbol_in_language): Explain when/why
4412 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4413 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4414 appropriate languages.
4415 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4416 and moved to ada-lang.c
4417 (lookup_block_symbol): Explain that this function only returns
4418 symbol matching the requested DOMAIN.
4419 Compare the requested domain with the symbol's domain directly.
4420 (iterate_over_symbols): Compare the requested domain with the
4421 symbol's domain directly.
4422 * symtab.h (symbol_matches_domain): Remove.
4423
25326a28 44242014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
4425
4426 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4427 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4428 (gdbscm_guile_version_is_at_least): Declare.
4429 (gdbscm_scm_string_to_int): Declare.
4430 * guile/guile.c (gdbscm_guile_major_version): New global.
4431 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4432 (guile_datadir): New static global.
4433 (gdbscm_guile_data_directory): New function.
4434 (initialize_scheme_side): Update.
4435 (misc_guile_functions): Add guile-data-directory.
4436 (initialize_gdb_module): Fetch guile version number.
4437 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4438 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4439 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4440 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4441 comments.
4442 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4443 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4444 * guile/scm-value.c (gdbscm_value_to_string): Only call
4445 scm_port_conversion_strategy if Guile version >= 2.0.6.
4446
0a770bb2 44472014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4448
4449 * main.c (print_gdb_help): Add -q and --silent.
4450
73ba372c
GB
44512014-06-06 Gary Benson <gbenson@redhat.com>
4452
4453 * common/signals.c: Remove preprocessor conditionals for
4454 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4455 SIGSEGV and SIGTERM.
4456 * proc-events.c: Likewise.
4457
c33b2f12
MM
44582014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4459
4460 * symfile.c (symfile_free_objfile): Remove restriction to
4461 OBJF_USERLOADED.
4462 * symfile-mem.c (symbol_file_add_from_memory): Call
4463 add_target_sections_of_objfile.
4464
fb934770
LC
44652014-06-05 Ludovic Courtès <ludo@gnu.org>
4466
4467 * guile/scm-value.c (gdbscm_history_append_x): Use
4468 'vlscm_get_value_smob_arg_unsafe' instead of
4469 'vlscm_scm_to_value'.
4470
6ef284bd
SM
44712014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4472
4473 PR mi/15806
4474 * utils.c (printchar): Don't escape at all if quoter is NUL.
4475 Update function documentation to clarify effect of parameter
4476 QUOTER.
4477 * remote.c (escape_buffer): Pass '\\' as the quoter to
4478 fputstrn_unfiltered.
4479 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4480 generate the output.
4481 (mi_solib_unloaded): Same.
4482
270c9937
JB
44832014-06-05 Joel Brobecker <brobecker@adacore.com>
4484
4485 * development.sh: Delete.
4486 * Makefile.in (config.status): Adjust dependency on development.sh.
4487 * configure.ac: Adjust development.sh source call.
4488 * configure: Regenerate.
4489
16f691fb
DE
44902014-06-04 Doug Evans <xdje42@gmail.com>
4491
4492 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4493 is_scheme_bkpt, spec.
4494 (bpscm_make_breakpoint_smob): Initialize new members.
4495 (gdbscm_create_breakpoint_x): Split into two ...
4496 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4497 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4498 (scheme_function breakpoint_functions): Update.
4499 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4500 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4501 register-breakpoint!.
4502
ef7cab6b
JB
45032014-06-04 Joel Brobecker <brobecker@adacorer.com>
4504
4505 PR server/17023
4506 * mem-break.c (z_type_supported): Return zero if
4507 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4508
012370f6
TT
45092014-06-04 Tom Tromey <tromey@redhat.com>
4510
4511 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4512 value_from_contents_and_address_unresolved.
4513 (ada_template_to_fixed_record_type_1): Likewise.
4514 (ada_which_variant_applies): Likewise.
4515 * value.h (value_from_contents_and_address_unresolved): Declare.
4516 * value.c (value_from_contents_and_address_unresolved): New
4517 function.
4518 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4519 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4520 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4521
92e2a17f
TT
45222014-06-04 Tom Tromey <tromey@redhat.com>
4523
4524 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4525
c0939df1
TT
45262014-06-04 Tom Tromey <tromey@redhat.com>
4527
4528 * procfs.c (procfs_attach): Make "args" const.
4529 * windows-nat.c (windows_attach): Make "args" const.
4530 * nto-procfs.c (procfs_attach): Make "args" const.
4531 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4532 * go32-nat.c (go32_attach): Make "args" const.
4533 * gnu-nat.c (gnu_attach): Make "args" const.
4534 * darwin-nat.c (darwin_attach): Make "args" const.
4535 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4536 * linux-nat.c (linux_nat_attach): Make "args" const.
4537 * remote.c (extended_remote_attach_1, extended_remote_attach):
4538 Make "args" const.
4539 * target.h (struct target_ops) <to_attach>: Make "args" const.
4540 (find_default_attach): Likewise.
4541 * utils.c (parse_pid_to_attach): Make "args" const.
4542 * utils.h (parse_pid_to_attach): Update.
4543
8eaff7cd
TT
45442014-06-04 Tom Tromey <tromey@redhat.com>
4545
4546 * target-delegates.c: Rebuild.
4547 * target.c (default_thread_address_space): New function.
4548 (target_thread_address_space): Simplify.
4549 * target.h (struct target_ops) <to_thread_address_space>: Add
4550 TARGET_DEFAULT_FUNC.
4551
1913f160
DE
45522014-06-04 Doug Evans <xdje42@gmail.com>
4553
4554 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4555
70ad5bff
MM
45562014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4557
4558 * record-btrace.c: Include event-loop.h and inf-loop.h.
4559 (record_btrace_resume_exec_dir)
4560 (record_btrace_async_inferior_event_handler)
4561 (record_btrace_handle_async_inferior_event): New.
4562 (record_btrace_open): Create async event handler.
4563 (record_btrace_close): Delete async event handler.
4564 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4565 Mark async event handler.
4566 (record_btrace_execution_direction): New.
4567 (init_record_btrace_ops): Initialize to_execution_direction.
4568
b6210538
DE
45692014-06-03 Doug Evans <xdje42@gmail.com>
4570
4571 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4572 (gdbscm_make_parameter): Ditto.
4573
a5b1fd27
DE
45742014-06-03 Doug Evans <dje@google.com>
4575
4576 * exec.c (exec_close_1): Call clear_section_table instead of
4577 resize_section_table.
4578 (clear_section_table): New function.
4579 (resize_section_table): Make static. Rename arg num_added to
4580 adjustment.
4581 * exec.h (clear_section_table): Declare.
4582 (resize_section_table): Delete.
4583 * progspace.c (release_program_space): Call clear_section_table
4584 instead of resize_section_table.
4585
0c6e92a5
SC
45862014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4587
4588 * NEWS (Python Scripting): Add entry about the new xmethods
4589 feature.
4590
883964a7
SC
45912014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4592
4593 * python/py-xmethods.c: New file.
4594 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4595 (objfpy_dealloc): XDECREF on the new xmethods field.
4596 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4597 field.
4598 (objfpy_get_xmethods): New function.
4599 (objfile_getset): New entry 'xmethods'.
4600 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4601 (pspy_dealloc): XDECREF on the new xmethods field.
4602 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4603 field.
4604 (pspy_get_xmethods): New function.
4605 (pspace_getset): New entry 'xmethods'.
4606 * python/python-internal.h: Add declarations for new functions.
4607 * python/python.c (_initialize_python): Invoke
4608 gdbpy_initialize_xmethods.
4609 * python/lib/gdb/__init__.py (xmethods): New
4610 attribute.
4611 * python/lib/gdb/xmethod.py: New file.
4612 * python/lib/gdb/command/xmethods.py: New file.
4613
58992dc5
SC
46142014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4615
4616 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4617 best match method returned by find_overload_match is an xmethod.
4618 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4619 the best matching operator returned by find_overload_match is an
4620 xmethod.
4621 * valops.c: #include "extension.h".
4622 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4623 Return void. The list of matching source methods is returned in
4624 "fn_list" and a vector of matching debug method workers is
4625 returned in "xm_worker_vec". Update all callers.
4626 (value_find_oload_method_list): Likewise.
4627 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4628 non-NULL, then the index of the best matching method in this
4629 vector is returned. Update all callers.
4630 (find_overload_match): Include xmethods while performing overload
4631 resolution.
4632
e81e7f5e
SC
46332014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4634
4635 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4636 * extension-priv.h (struct extension_language_ops): Add the
4637 xmethod interface.
4638 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4639 get_matching_xmethod_workers, get_xmethod_argtypes,
4640 invoke_xmethod, free_xmethod_worker,
4641 free_xmethod_worker_vec): New functions.
4642 * extension.h: #include "common/vec.h".
4643 New function declarations.
4644 (struct xmethod_worker): New struct.
4645 (VEC (xmethod_worker_ptr)): New vector type.
4646 (xmethod_worker_ptr): New typedef.
4647 (xmethod_worker_vec): Likewise.
4648 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4649 builtin_type.
4650 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4651 (struct builtin_type): New field "xmethod".
4652 * valarith.c (value_ptradd): Assert that the value argument is not
4653 lval_xcallable.
4654 * valops.c (value_must_coerce_to_target): Return 0 for
4655 lval_xcallable values.
4656 * value.c (struct value): New field XM_WORKER in the field
4657 LOCATION.
4658 (value_address, value_raw_address): Return 0 for lval_xcallable
4659 values.
4660 (set_value_address): Assert that the value is not an
4661 lval_xcallable.
4662 (value_free): Free the associated xmethod worker when freeing
4663 lval_xcallable values.
4664 (set_value_component_location): Assert that the WHOLE value is not
4665 lval_xcallable.
4666 (value_of_xmethod, call_xmethod): New functions.
4667 * value.h: Declare "struct xmethod_worker".
4668 Declare new functions value_of_xmethod, call_xmethod.
4669
ef370185
JB
46702014-06-03 Joel Brobecker <brobecker@adacore.com>
4671 Pedro Alves <palves@redhat.com>
4672
4673 PR breakpoints/17000
4674 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4675 New function, extracted from software_breakpoint_inserted_here_p.
4676 (software_breakpoint_inserted_here_p): Replace factored out code
4677 by call to find_non_raw_software_breakpoint_inserted_here.
4678 (bp_target_info_copy_insertion_state): New function.
4679 (bkpt_insert_location): Handle the case of a single-step
4680 breakpoint already inserted at the same address.
4681 (bkpt_remove_location): Handle the case of a single-step
4682 breakpoint still inserted at the same address.
4683 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4684 breakpoint already inserted at the same address.
4685 (deprecated_remove_raw_breakpoint): Handle the case of a
4686 non-raw breakpoint still inserted at the same address.
4687 (find_single_step_breakpoint): New function, extracted from
4688 single_step_breakpoint_inserted_here_p.
4689 (find_single_step_breakpoint): New function,
4690 factored out from single_step_breakpoint_inserted_here_p.
4691 (single_step_breakpoint_inserted_here_p): Reimplement.
4692
1e2ccb61
BM
46932014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4694
4695 Pushed by Joel Brobecker <brobecker@adacore.com>
4696 * source.c (show_substitute_path_command): Fix display of matching
4697 substitution rules.
4698
d3448d85
GB
46992014-06-03 Gary Benson <gbenson@redhat.com>
4700
4701 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4702
06eb1586
DE
47032014-06-02 Doug Evans <xdje42@gmail.com>
4704
4705 Add parameter support for Guile.
4706 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4707 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4708 (scm-param.o): New rule.
4709 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4710 (gdbscm_misc_error): Declare.
4711 (gdbscm_canonicalize_command_name): Declare.
4712 (gdbscm_scm_to_host_string): Declare.
4713 (gdbscm_scm_from_host_string): Declare.
4714 (gdbscm_initialize_parameters): Declare.
4715 * guile/guile.c (initialize_gdb_module): Call
4716 gdbscm_initialize_parameters.
4717 * guile/lib/gdb.scm: Export parameter symbols.
4718 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4719 cmdscm_canonicalize_name and made public. All callers updated.
4720 * guile/scm-exception.c (gdbscm_misc_error): New function.
4721 * guile/scm-param.c: New file.
4722 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4723 (gdbscm_scm_to_host_string): New function.
4724 (gdbscm_scm_from_host_string): New function.
4725 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4726
e698b8c4
DE
47272014-06-02 Doug Evans <xdje42@gmail.com>
4728
4729 Add command support for Guile.
4730 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4731 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4732 (scm-cmd.o): New rule.
4733 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4734 (gdbscm_user_error_p): Declare.
4735 (gdbscm_parse_command_name): Declare.
4736 (gdbscm_valid_command_class_p): Declare.
4737 (gdbscm_initialize_commands): Declare.
4738 * guile/guile.c (initialize_gdb_module): Call
4739 gdbscm_initialize_commands.
4740 * guile/lib/gdb.scm: Export command symbols.
4741 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4742 (throw-user-error): New function.
4743 * guile/scm-cmd.c: New file.
4744 * guile/scm-exception.c (user_error_symbol): New static global.
4745 (gdbscm_user_error_p): New function.
4746 (gdbscm_initialize_exceptions): Set user_error_symbol.
4747 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4748
fb1f94b0
PM
47492014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4750
4751 * top.c (command_loop): Handle comments here...
4752 (command_line_input): ... not here.
4753
ded03782
DE
47542014-06-02 Doug Evans <xdje42@gmail.com>
4755
4756 Add progspace support for Guile.
4757 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4758 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4759 (scm-progspace.o): New rule.
4760 * guile/guile-internal.h (pspace_smob): New typedef.
4761 (psscm_pspace_smob_pretty_printers): Declare.
4762 (psscm_pspace_smob_from_pspace): Declare.
4763 (psscm_scm_from_pspace): Declare.
4764 * guile/guile.c (initialize_gdb_module): Call
4765 gdbscm_initialize_pspaces.
4766 * guile/lib/gdb.scm: Export progspace symbols.
4767 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4768 support.
4769 (append-pretty-printer!): Ditto.
4770 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4771 Implement.
4772 * guile/scm-progspace.c: New file.
4773
397998fc
AM
47742014-06-03 Alan Modra <amodra@gmail.com>
4775
4776 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4777 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4778
6aa5f3a6
DE
47792014-06-02 Doug Evans <dje@google.com>
4780
4781 Add support for skeletonless type units.
4782 * dwarf2read.c (struct dwarf2_per_objfile): New member
4783 n_allocated_type_units.
4784 (struct dwarf2_per_objfile) <tu_stats>: New member
4785 nr_all_type_units_reallocs.
4786 (create_signatured_type_table_from_index): Initialize
4787 n_allocated_type_units
4788 (create_all_type_units): Ditto.
4789 (add_type_unit): Move up in file. New arg slot.
4790 All callers updated. Increase space for all_type_units more
4791 efficiently.
4792 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4793 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4794 (lookup_dwp_signatured_type): Ditto.
4795 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4796 All callers updated.
4797 (build_type_psymtabs_1): Leave type_unit_groups as
4798 NULL if no TUs present.
4799 (print_tu_stats): New function.
4800 (process_skeletonless_type_unit): New function.
4801 (process_dwo_file_for_skeletonless_type_units): New
4802 function.
4803 (process_skeletonless_type_units): New function.
4804 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4805 Call print tu_stats if debugging enabled.
4806
41fac0cf
PA
48072014-06-02 Pedro Alves <palves@redhat.com>
4808
4809 * breakpoint.c (build_target_command_list): Don't build a command
4810 list if we have any duplicate location that isn't a dprintf.
4811
cd1608cc
PA
48122014-06-02 Pedro Alves <palves@redhat.com>
4813
4814 * breakpoint.c (dprintf_breakpoint_hit): New function.
4815 (initialize_breakpoint_ops): Install it as dprintf's
4816 breakpoint_hit method.
4817
486ef3b9
JB
48182014-06-02 Joel Brobecker <brobecker@adacore.com>
4819
4820 * source.c (substitute_path_rule_matches): Simplify using
4821 filename_ncmp instead of FILENAME_CMP.
4822
230cd560
JB
48232014-06-02 Joel Brobecker <brobecker@adacore.com>
4824
4825 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4826
16954d5d
LC
48272014-06-01 Ludovic Courtès <ludo@gnu.org>
4828
4829 * configure.ac: When Guile is available, check for the
4830 availability of 'scm_new_smob'.
4831 * configure, config.h.in: Regenerate.
4832 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4833 function.
4834
53e8a631
AB
48352014-05-30 Andrew Burgess <aburgess@broadcom.com>
4836
4837 * frame.c (struct frame_info): Add stop_string field.
4838 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4839 (get_prev_frame_always): Old content moved into
4840 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4841 TRY_CATCH, handle MEMORY_ERROR exceptions.
4842 (frame_stop_reason_string): New function definition.
4843 * frame.h (unwind_stop_reason_to_string): Extend comment to
4844 mention frame_stop_reason_string.
4845 (frame_stop_reason_string): New function declaration.
4846 * stack.c (frame_info): Switch to frame_stop_reason_string.
4847 (backtrace_command_1): Switch to frame_stop_reason_string.
4848 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4849 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4850 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4851
70e38b8e
AB
48522014-05-30 Andrew Burgess <aburgess@broadcom.com>
4853
4854 * frame.c (frame_stop_reason_string): Rename to ...
4855 (unwind_stop_reason_to_string): this.
4856 * frame.h (frame_stop_reason_string): Rename to ...
4857 (unwind_stop_reason_to_string): this.
4858 * stack.c (frame_info): Update call to frame_stop_reason_string.
4859 (backtrace_command_1): Likewise.
4860 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4861 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4862
938f0e2f
AB
48632014-05-30 Andrew Burgess <aburgess@broadcom.com>
4864
4865 * frame.c (remove_prev_frame): New function.
4866 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4867 remove_prev_frame.
4868
a09dd441
PA
48692014-05-29 Pedro Alves <palves@redhat.com>
4870
4871 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4872 and make it const. When a single-step decays to a continue,
4873 clear 'step', not 'hw_step'. Pass whether the caller wanted
4874 to step to user_visible_resume_ptid, not what we ask the
4875 target to do.
4876
bdc36728
PA
48772014-05-29 Pedro Alves <palves@redhat.com>
4878
4879 * infrun.c (process_event_stop_test, handle_step_into_function)
4880 (handle_step_into_function_backward): Adjust.
4881 Don't set the even thread's stop_step and call stop_waiting before
4882 calling end_stepping_range. Instead do that ...
4883 (end_stepping_range): ... here. Take an ecs pointer parameter.
4884
22bcd14b
PA
48852014-05-29 Pedro Alves <palves@redhat.com>
4886
4887 * infrun.c (stop_stepping): Rename to ...
4888 (stop_waiting): ... this.
4889 (proceed): Update comment.
4890 (process_event_stop_test, handle_inferior_event)
4891 (handle_signal_stop, handle_step_into_function)
4892 (handle_step_into_function_backward): Update.
4893
4ae57c05
PA
48942014-05-29 Pedro Alves <palves@redhat.com>
4895
4896 * infcall.c (run_inferior_call): Don't check whether the current
4897 thread is running after the proceed call.
4898
329ea579
PA
48992014-05-29 Pedro Alves <palves@redhat.com>
4900 Tom Tromey <tromey@redhat.com>
4901
4902 * NEWS: Mention "maint set target-async", "set mi-async", and that
4903 background execution commands are now always available.
4904 * target.h (target_async_permitted): Update comment.
4905 * target.c (target_async_permitted, target_async_permitted_1):
4906 Default to 1.
4907 (set_target_async_command): Rename to ...
4908 (maint_set_target_async_command): ... this.
4909 (show_target_async_command): Rename to ...
4910 (maint_show_target_async_command): ... this.
4911 (_initialize_target): Adjust.
4912 * infcmd.c (prepare_execution_command): Make extern.
4913 * inferior.h (prepare_execution_command): Declare.
4914 * infrun.c (set_observer_mode): Leave target async alone.
4915 * mi/mi-interp.c (mi_interpreter_init): Install
4916 mi_on_sync_execution_done as sync_execution_done observer.
4917 (mi_on_sync_execution_done): New function.
4918 (mi_execute_command_input_handler): Don't print the prompt if we
4919 just started a synchronous command with an async target.
4920 (mi_on_resume): Check sync_execution before printing prompt.
4921 * mi/mi-main.h (mi_async_p): Declare.
4922 * mi/mi-main.c: Include gdbcmd.h.
4923 (mi_async_p): New function.
4924 (mi_async, mi_async_1): New globals.
4925 (set_mi_async_command, show_mi_async_command, mi_async): New
4926 functions.
4927 (exec_continue): Call prepare_execution_command.
4928 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4929 (mi_execute_async_cli_command): Use mi_async_p.
4930 (_initialize_mi_main): Install "set mi-async". Make
4931 "target-async" a deprecated alias.
4932
92bcb5f9
PA
49332014-05-29 Pedro Alves <palves@redhat.com>
4934
4935 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4936 (_initialize_cli_interp): Adjust.
4937 * event-loop.c: Include "observer.h".
4938 (start_event_loop): Notify 'command_error' observers instead of
4939 calling display_gdb_prompt. Remove FIXME comment.
4940 * event-top.c (display_gdb_prompt): Remove call into the
4941 interpreters.
4942 * inf-loop.c: Include "observer.h".
4943 (inferior_event_handler): Notify 'command_error' observers instead
4944 of calling display_gdb_prompt.
4945 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4946 observers instead of calling display_gdb_prompt.
4947 * interps.c (interp_set): Don't call display_gdb_prompt.
4948 (current_interp_display_prompt_p): Delete.
4949 * interps.h (interp_prompt_p): Delete declaration.
4950 (interp_prompt_p_ftype): Delete.
4951 (struct interp_procs) <prompt_proc_p>: Delete field.
4952 (current_interp_display_prompt_p): Delete declaration.
4953 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4954 (_initialize_mi_interp): Adjust.
4955 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4956 'command_error' observers.
4957 (tui_on_sync_execution_done, tui_on_command_error): New
4958 functions.
4959 (tui_display_prompt_p): Delete.
4960 (_initialize_tui_interp): Adjust.
4961
fd664c91
PA
49622014-05-29 Pedro Alves <palves@redhat.com>
4963
4964 PR gdb/13860
4965 * cli/cli-interp.c: Include infrun.h and observer.h.
4966 (cli_uiout, cli_interp): New globals.
4967 (cli_on_signal_received, cli_on_end_stepping_range)
4968 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4969 functions.
4970 (cli_interpreter_init): Install them as 'end_stepping_range',
4971 'signal_received' 'signal_exited', 'exited' and 'no_history'
4972 observers.
4973 (_initialize_cli_interp): Remove cli_interp local.
4974 * infrun.c (handle_inferior_event): Call the several stop reason
4975 observers instead of printing the stop reason directly.
4976 (end_stepping_range): New function.
4977 (print_end_stepping_range_reason, print_signal_exited_reason)
4978 (print_exited_reason, print_signal_received_reason)
4979 (print_no_history_reason): Make static, and add an uiout
4980 parameter. Print to that instead of to CURRENT_UIOUT.
4981 * infrun.h (print_end_stepping_range_reason)
4982 (print_signal_exited_reason, print_exited_reason)
4983 (print_signal_received_reason print_no_history_reason): New
4984 declarations.
4985 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4986 'mi_uiout'.
4987 <cli_uiout>: New field.
4988 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4989 uiout for CLI output. Install 'signal_received',
4990 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4991 observers.
4992 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4993 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4994 (mi_on_no_history): New functions.
4995 (ui_out_free_cleanup): Delete function.
4996 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4997 instead use the one already stored in the MI interpreter data.
4998 (mi_ui_out): Adjust.
4999 * tui/tui-interp.c: Include infrun.h and observer.h.
5000 (tui_interp): New global.
5001 (tui_on_signal_received, tui_on_end_stepping_range)
5002 (tui_on_signal_exited, tui_on_exited)
5003 (tui_on_no_history): New functions.
5004 (tui_init): Install them as 'end_stepping_range',
5005 'signal_received' 'signal_exited', 'exited' and 'no_history'
5006 observers.
5007 (_initialize_tui_interp): Delete tui_interp local.
5008
8817a6f2
PA
50092014-05-29 Pedro Alves <palves@redhat.com>
5010
5011 PR gdb/15713
5012 * linux-nat.c (linux_nat_resume_callback): Rename the second
5013 parameter to 'except'. Skip LP if it points to EXCEPT.
5014 (linux_nat_resume): Don't mark the event lwp as not stopped
5015 before resuming sibling lwps. Instead ask
5016 linux_nat_resume_callback to skip the event lwp. Mark it as not
5017 stopped after actually resuming it.
5018 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5019 resuming it.
5020 (wait_lwp): Mark the lwp as stopped here.
5021 (stop_wait_callback): Mark the lwp as not stopped right after
5022 resuming it. Don't mark lwps as stopped here.
5023 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5024 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5025
251bde03
PA
50262014-05-29 Pedro Alves <palves@redhat.com>
5027
5028 PR PR15693
5029 * infrun.c (resume): Determine how much to resume depending on
5030 whether the caller wanted a step, not whether we can hardware step
5031 the target. Mark all threads that we intend to run as running,
5032 unless we're calling an inferior function.
5033 (normal_stop): If the thread is running an infcall, don't finish
5034 thread state.
5035 * target.c (target_resume): Don't mark threads as running here.
5036
7f3c0343
JB
50372014-05-28 Joel Brobecker <brobecker@adacore.com>
5038
5039 * serial.c (_initialize_serial): Remove support for
5040 the "set remotebaud" and "show remotebaud" commands.
5041 * NEWS: Add entry documenting the removal of that command.
5042
ee34b3f9
YQ
50432014-05-28 Yao Qi <yao@codesourcery.com>
5044
5045 * charset.c: Fix typo in comments.
5046
add6c04d
GB
50472014-05-27 Gary Benson <gbenson@redhat.com>
5048
5049 * utils.c (internal_vproblem): Prompt for a bug report.
5050
92c48fc5
AW
50512014-05-26 Andy Wingo <wingo@igalia.com>
5052
5053 * guile/scm-arch.c (arscm_mark_arch_smob):
5054 * guile/scm-block.c (bkscm_mark_block_smob)
5055 (bkscm_mark_block_syms_progress_smob):
5056 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5057 * guile/scm-exception.c (exscm_mark_exception_smob):
5058 * guile/scm-frame.c (frscm_mark_frame_smob):
5059 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5060 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5061 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5062 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5063 (ppscm_mark_pretty_printer_worker_smob):
5064 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5065 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5066 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5067 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5068 mark functions.
5069 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5070 function.
5071
b2715b27
AW
50722014-05-26 Andy Wingo <wingo@igalia.com>
5073 Doug Evans <xdje42@gmail.com>
5074
5075 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5076 empty_base_class. All uses updated.
5077 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5078 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5079 Adapt all callers.
5080 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5081 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5082 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5083 (gdbscm_gsmob_has_property_p, add_property_name)
5084 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5085 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5086 (gdb-object-has-property?, gdb-object-properties): Remove.
5087 (gdb-object-kind): Renamed from gsmob-kind.
5088
214ab2da
AW
50892014-05-26 Andy Wingo <wingo@igalia.com>
5090
5091 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5092 * configure: Regenerate.
5093
589fdceb
MM
50942014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5095
5096 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5097
67b5c0c1
MM
50982014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5099
5100 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5101 (replay_memory_access_read_only, replay_memory_access_read_write)
5102 (replay_memory_access_types, replay_memory_access)
5103 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5104 (cmd_set_record_btrace, cmd_show_record_btrace)
5105 (cmd_show_replay_memory_access): New.
5106 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5107 (record_btrace_remove_breakpoint): Replace
5108 record_btrace_allow_memory_access with replay_memory_access.
5109 (_initialize_record_btrace): Add commands.
5110 * NEWS: Announce it.
5111
036cd381
RR
51122014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5113
5114 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5115
c77c1e42
RR
51162014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5117
5118 * MAINTAINERS (Write After Approval): Move self back from
5119 paper trail.
5120
45741a9c
PA
51212014-05-22 Pedro Alves <palves@redhat.com>
5122
5123 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5124 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5125 (disable_randomization, enum exec_direction_kind)
5126 (execution_direction, stop_registers, start_remote)
5127 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5128 (wait_for_inferior, normal_stop, get_last_target_status)
5129 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5130 (insert_step_resume_breakpoint_at_sal)
5131 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5132 (set_step_info, print_stop_event, signal_stop_state)
5133 (signal_print_state, signal_pass_state, signal_stop_update)
5134 (signal_print_update, signal_pass_update)
5135 (update_signals_program_target, clear_exit_convenience_vars)
5136 (displaced_step_dump_bytes, update_observer_mode)
5137 (signal_catch_update, gdb_signal_from_command): Move
5138 declarations ...
5139 * infrun.h: ... to this new file.
5140 * amd64-tdep.c: Include infrun.h.
5141 * annotate.c: Include infrun.h.
5142 * arch-utils.c: Include infrun.h.
5143 * arm-linux-tdep.c: Include infrun.h.
5144 * arm-tdep.c: Include infrun.h.
5145 * break-catch-sig.c: Include infrun.h.
5146 * breakpoint.c: Include infrun.h.
5147 * common/agent.c: Include infrun.h instead of inferior.h.
5148 * corelow.c: Include infrun.h.
5149 * event-top.c: Include infrun.h.
5150 * go32-nat.c: Include infrun.h.
5151 * i386-tdep.c: Include infrun.h.
5152 * inf-loop.c: Include infrun.h.
5153 * infcall.c: Include infrun.h.
5154 * infcmd.c: Include infrun.h.
5155 * infrun.c: Include infrun.h.
5156 * linux-fork.c: Include infrun.h.
5157 * linux-nat.c: Include infrun.h.
5158 * linux-thread-db.c: Include infrun.h.
5159 * monitor.c: Include infrun.h.
5160 * nto-tdep.c: Include infrun.h.
5161 * procfs.c: Include infrun.h.
5162 * record-btrace.c: Include infrun.h.
5163 * record-full.c: Include infrun.h.
5164 * remote-m32r-sdi.c: Include infrun.h.
5165 * remote-mips.c: Include infrun.h.
5166 * remote-notif.c: Include infrun.h.
5167 * remote-sim.c: Include infrun.h.
5168 * remote.c: Include infrun.h.
5169 * reverse.c: Include infrun.h.
5170 * rs6000-tdep.c: Include infrun.h.
5171 * s390-linux-tdep.c: Include infrun.h.
5172 * solib-irix.c: Include infrun.h.
5173 * solib-osf.c: Include infrun.h.
5174 * solib-svr4.c: Include infrun.h.
5175 * target.c: Include infrun.h.
5176 * top.c: Include infrun.h.
5177 * windows-nat.c: Include infrun.h.
5178 * mi/mi-interp.c: Include infrun.h.
5179 * mi/mi-main.c: Include infrun.h.
5180 * python/py-threadevent.c: Include infrun.h.
5181
98eb56a4
PA
51822014-05-22 Pedro Alves <palves@redhat.com>
5183
5184 * infrun.c (handle_inferior_event): Store the exit code for
5185 --return-child-result here, instead of ...
5186 (print_exited_reason): ... here.
5187
17b2616c
PA
51882014-05-21 Pedro Alves <palves@redhat.com>
5189
5190 PR gdb/13860
5191 * gdbthread.h (struct thread_control_state): New field
5192 `command_interp'.
5193 * infrun.c (follow_fork): Copy the new thread control field to the
5194 child fork thread.
5195 (clear_proceed_status_thread): Clear the new thread control field.
5196 (proceed): Set the new thread control field.
5197 * interps.h (command_interp): Declare.
5198 * interps.c (command_interpreter): New global.
5199 (command_interp): New function.
5200 (interp_exec): Set `command_interpreter' while here.
5201 * cli-out.c (cli_uiout_dtor): New function.
5202 (cli_ui_out_impl): Install it.
5203 * mi/mi-interp.c: Include cli-out.h.
5204 (mi_cmd_interpreter_exec): Add comment.
5205 (restore_current_uiout_cleanup): New function.
5206 (ui_out_free_cleanup): New function.
5207 (mi_on_normal_stop): If finishing an execution command started by
5208 a CLI command, or any kind of breakpoint-like event triggered,
5209 print the stop event to the output (CLI) stream.
5210 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5211
5166082f
PA
52122014-05-21 Pedro Alves <palves@redhat.com>
5213
5214 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5215 current source line having changed.
5216 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5217 * infrun.c (normal_stop): Adjust call to
5218 set_current_sal_from_frame.
5219 * source.c (clear_lines_listed_range): New function.
5220 (set_current_source_symtab_and_line, identify_source_line): Clear
5221 the lines listed range.
5222 (line_info): Handle the first "info line" after the current source
5223 line having changed.
5224 * stack.c (print_stack_frame): Remove center handling.
5225 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5226 center sal.line.
5227
c1ee2fb3
PA
52282014-05-21 Pedro Alves <palves@redhat.com>
5229
5230 * inf-child.c (inf_child_mourn_inferior): New function.
5231 * inf-child.h (inf_child_mourn_inferior): New declaration.
5232 * darwin-nat.c (darwin_mourn_inferior): Use
5233 inf_child_mourn_inferior.
5234 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5235 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5236 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5237 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5238 * windows-nat.c (windows_mourn_inferior): Likewise.
5239
5c6d4fb2
DE
52402014-05-21 Doug Evans <xdje42@gmail.com>
5241
250748cb 5242 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 5243
4a2722c5
DE
52442014-05-21 Doug Evans <xdje42@gmail.com>
5245
17292b30 5246 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
5247 (gdbscm_out_of_range_error): Ditto.
5248 (gdbscm_memory_error): Ditto.
250748cb
DE
5249 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5250 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
5251 (gdbscm_out_of_range_error): Update.
5252 (gdbscm_memory_error): Update.
5253 (gdbscm_scm_to_target_string_unsafe): Delete.
5254
6a3cb8e8
PA
52552014-05-21 Pedro Alves <palves@redhat.com>
5256
5257 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5258 globals.
5259 (inf_child_open_target): New function.
5260 (inf_child_open): Use inf_child_open_target to push the target
5261 instead of erroring out.
5262 (inf_child_disconnect, inf_child_close)
5263 (inf_child_maybe_unpush_target): New functions.
5264 (inf_child_target): Install inf_child_disconnect and
5265 inf_child_close. Store a pointer to the returned object.
5266 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5267 declarations.
5268 * target.c (auto_connect_native_target): New global.
5269 (show_default_run_target): New function.
5270 (find_default_run_target): Return NULL if automatically connecting
5271 to the native target is disabled.
5272 (_initialize_target): Install set/show auto-connect-native-target.
5273 * NEWS: Mention "set auto-connect-native-target", and "target
5274 native".
5275 * linux-nat.c (super_close): New global.
5276 (linux_nat_close): Call super_close.
5277 (linux_nat_add_target): Store a pointer to the base class's
5278 to_close method.
5279 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5280 inf_child_maybe_unpush.
5281 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5282 already pushed.
5283 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5284 the inferior. Use inf_child_maybe_unpush_target.
5285 (inf_ttrace_attach): Don't push the target if it is already
5286 pushed.
5287 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5288 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5289 after mourning the inferior. Use inf_child_maybe_unpush_target.
5290 (darwin_attach_pid): Don't push the target if it is already
5291 pushed.
5292 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5293 mourning the inferior. Use inf_child_maybe_unpush_target.
5294 (gnu_detach): Use inf_child_maybe_unpush_target.
5295 * go32-nat.c (go32_create_inferior): Don't push the target if it
5296 is already pushed.
5297 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5298 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5299 (procfs_open): Rename to ...
5300 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5301 comments. Can target_preopen before changing node. Call
5302 inf_child_open_target to push the target explicitly.
5303 (procfs_attach): Don't push the target if it is already pushed.
5304 (procfs_detach): Use inf_child_maybe_unpush_target.
5305 (procfs_create_inferior): Don't push the target if it is already
5306 pushed.
5307 (nto_native_ops): New global.
5308 (procfs_open): Reimplement.
5309 (procfs_native_open): New function.
5310 (init_procfs_targets): Install procfs_native_open as to_open of
5311 "target native". Store a pointer to the "native" target in
5312 nto_native_ops.
5313 * procfs.c (procfs_attach): Don't push the target if it is already
5314 pushed.
5315 (procfs_detach): Use inf_child_maybe_unpush_target.
5316 (procfs_mourn_inferior): Only unpush the target after mourning the
5317 inferior. Use inf_child_maybe_unpush_target.
5318 (procfs_init_inferior): Don't push the target if it is already
5319 pushed.
5320 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5321 if it is already pushed.
5322
930ee1b1
PA
53232014-05-21 Pedro Alves <palves@redhat.com>
5324
5325 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5326 and "procfs" targets are now called "native" instead.
5327
1f5d1b13
PA
53282014-05-21 Pedro Alves <palves@redhat.com>
5329
5330 * go32-nat.c (go32_open): Delete.
5331 (go32_target): Don't override the to_open method.
5332
132f8e03
PA
53332014-05-21 Pedro Alves <palves@redhat.com>
5334
5335 * nto-procfs.c (procfs_can_run): New function.
5336 (nto_procfs_ops): New global.
5337 (init_procfs_targets): New, based on procfs_target. Install
5338 "target native" in addition to "target procfs".
5339 (_initialize_procfs): Call init_procfs_targets instead of adding
5340 the target here.
5341
03c136c3
PA
53422014-05-21 Pedro Alves <palves@redhat.com>
5343
5344 * windows-nat.c (windows_target): Don't override to_shortname,
5345 to_longname or to_doc.
5346
a635d0f3
PA
53472014-05-21 Pedro Alves <palves@redhat.com>
5348
5349 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5350 to_doc.
5351
4f9b5133
PA
53522014-05-21 Pedro Alves <palves@redhat.com>
5353
5354 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5355 to_shortname, to_longname or to_doc.
5356
bc85afde
PA
53572014-05-21 Pedro Alves <palves@redhat.com>
5358
5359 * go32-nat.c (go32_target): Don't override to_shortname,
5360 to_longname or to_doc.
5361
4ebfc96e
PA
53622014-05-21 Pedro Alves <palves@redhat.com>
5363
5364 * inf-child.c (inf_child_open): Remove mention of "child".
5365 (inf_child_target): Rename target to "native" instead of "child".
5366
2648dfed
AA
53672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5368
5369 * Makefile.in (SFILES): Delete "regset.c".
5370 (COMMON_OBS): Delete "regset.o".
5371 * regset.c: Remove.
5372 * regset.h (regset_alloc): Delete prototype.
5373
b13feb94
AA
53742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5375
5376 * sparc-linux-tdep.c (sparc32_linux_gregset)
5377 (sparc32_linux_fpregset): New static regset structures.
5378 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5379 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5380 'fpregset' fields.
5381 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5382 (sparc64_linux_fpregset): New static regset structures.
5383 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5384 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5385 New static regset structures.
5386 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5387 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5388 New static regset structures.
5389 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5390 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5391 New static regset structures.
5392 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5393 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5394 New static regset structures.
5395 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5396
b4fd25c9
AA
53972014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5398
5399 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5400 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5401 register maps ("regmaps") from "*regset" to "*regmap". Do this
5402 for all regmap types and variables.
5403 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5404 (sparc32_linux_supply_core_gregset)
5405 (sparc32_linux_collect_core_gregset)
5406 (sparc32_linux_supply_core_fpregset)
5407 (sparc32_linux_collect_core_fpregset): Likewise.
5408 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5409 (sparc_gregmap, sparc_fpregmap): ... these.
5410 (sparc_supply_gregset, sparc_collect_gregset)
5411 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5412 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5413 (_initialize_sparc_nat): Rename regmaps.
5414 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5415 (sparc_gregmap, sparc_fpregmap): ... these.
5416 (sparc_supply_gregset, sparc_collect_gregset)
5417 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5418 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5419 Rename macros to...
5420 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5421 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5422 Likewise.
5423 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5424 Rename to...
5425 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5426 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5427 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5428 regmaps.
5429 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5430 (sparc32_bsd_fpregset): Rename to...
5431 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5432 (sparc32_bsd_fpregmap): ... these.
5433 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5434 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5435 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5436 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5437 (struct sparc_gregmap, struct sparc_fpregmap)
5438 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5439 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5440 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5441 (sparc32_supply_regset, sparc32_collect_gregset)
5442 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5443 prototypes.
5444 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5445 (sparc64_linux_ptrace_gregmap): ... this.
5446 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5447 (_initialize_sparc64_linux_nat): Rename regmaps.
5448 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5449 (sparc64_linux_core_gregmap): ... this.
5450 (sparc64_linux_supply_core_gregset)
5451 (sparc64_linux_collect_core_gregset)
5452 (sparc64_linux_supply_core_fpregset)
5453 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5454 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5455 (sparc64_sol2_fpregset): Rename to...
5456 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5457 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5458 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5459 regmaps.
5460 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5461 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5462 (sparc64_bsd_fpregset): Rename to...
5463 (struct sparc_gregmap, sparc64_sol2_gregmap)
5464 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5465 (sparc64_bsd_fpregmap): ... these.
5466 (sparc64_supply_gregset, sparc64_collect_gregset)
5467 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5468 prototypes.
5469 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5470 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5471 (sparc64fbsd_gregmap): ... this.
5472 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5473 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5474 Rename regmaps.
5475 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5476 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5477 (sparc64nbsd_collect_fpregset): Likewise.
5478 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5479 (sparc64nbsd_gregmap): ... this.
5480 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5481 regmaps.
5482 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5483 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5484 (sparc64obsd_gregmap): ... this.
5485 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5486 regmaps.
5487 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5488 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5489 (sparc32nbsd_gregmap): ... this.
5490 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5491 regmaps.
5492
8fea3224
AA
54932014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5494
5495 * score-tdep.c (score7_linux_gregset): New static regset
5496 structure.
5497 (score7_linux_regset_from_core_section): Remove dynamic regset
5498 allocation.
5499 (score_gdbarch_init): Drop allocation of tdep structure.
5500 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5501
24534243
AA
55022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5503
5504 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5505 regset structures.
5506 (am33_regset_from_core_section): Remove dynamic regset
5507 allocations.
5508
b7195f27
AA
55092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5510
5511 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5512 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5513 structures.
5514 (mips_linux_regset_from_core_section): Remove dynamic regset
5515 allocations.
5516 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5517 'gregset64', 'fpregset', and 'fpregset64'.
5518 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5519 deleted tdep fields.
5520
ecc37a5a
AA
55212014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5522
5523 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5524 regset structures.
5525 (amd64_regset_from_core_section): Remove dynamic regset
5526 allocations.
5527 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5528 structure.
5529 (amd64obsd_regset_from_core_section): Remove dynamic regset
5530 allocation.
5531 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5532 Likewise.
5533 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5534 x86-common regset supply function.
5535 * i386-tdep.c (i386_collect_gregset): Make static.
5536 (i386_gregset): New global regset structure.
5537 (i386_fpregset, i386_xstateregset): New static regset structures.
5538 (i386_regset_from_core_section): Remove dynamic regset
5539 allocations.
5540 (i386_gdbarch_init): Remove initialization of tdep fields
5541 'gregset', 'fpregset', and 'xstateregset'.
5542 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5543 'fpregset', and 'xstateregset'.
5544 (i386_collect_gregset): Remove prototype.
5545 (i386_gregset): New declaration.
5546 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5547 structure.
5548 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5549 allocation.
5550
b7611c43
AA
55512014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5552
5553 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5554 (arm_linux_vfpregset): New static regset structures.
5555 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5556 regset structures.
5557 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5558 and 'vfpregset' fields.
5559
a069a2bd
AA
55602014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5561
5562 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5563 (aarch64_linux_fpregset): New static regset structures.
5564 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5565 of regset structures.
5566 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5567 'fpregset' fields.
5568
09424cff
AA
55692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5570
5571 * regset.h (struct regset): Remove gdbarch field.
5572 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5573 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5574 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5575 Likewise.
5576 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5577 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5578 (ppc32_linux_vsxregset): Likewise.
5579 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5580 via the regcache instead of the regset.
5581 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5582 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5583 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5584 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5585 Likewise.
5586
3ca7dae4
AA
55872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5588
5589 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5590 Constify structures.
5591 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5592 (alphanbsd_aout_gregset): Likewise.
5593 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5594 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5595 Likewise.
5596 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5597 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5598 Likewise.
5599 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5600 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5601 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5602 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5603 * m88k-tdep.c (m88k_gregset): Likewise.
5604 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5605 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5606 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5607 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5608 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5609 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5610 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5611 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5612 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5613 Likewise.
5614 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5615 * sh-tdep.h (sh_corefile_gregset): Likewise.
5616 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5617 * vax-tdep.c (vax_gregset): Likewise.
5618
5876f503
JK
56192014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5620
5621 Fix TLS access for -static -pthread.
5622 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5623 (try_thread_db_load_1): Initialize it.
5624 (thread_db_get_thread_local_address): Call it if LM is zero.
5625 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5626 * target.h (struct target_ops) (to_get_thread_local_address): Add
5627 load_module_addr comment.
5628
0256a6ac
PA
56292014-05-21 Pedro Alves <palves@redhat.com>
5630
5631 * dcache.c (dcache_read_memory_partial): If reading the cache line
5632 fails, fallback to reading just the memory the caller wanted.
5633
227533ac
DE
56342014-05-20 Doug Evans <dje@google.com>
5635
5636 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5637 instead of get_current_arch.
5638
936d2992
PA
56392014-05-20 Pedro Alves <palves@redhat.com>
5640
5641 * NEWS: Mention that compare-sections now works with all targets.
5642
5643 * remote.c (PACKET_qCRC): New enum value.
5644 (remote_verify_memory): Don't send qCRC if the target has no
5645 execution. Use packet_support/packet_ok. If the target doesn't
5646 support the qCRC packet, fallback to a deep memory copy.
5647 (compare_sections_command): Say "target image" instead of "remote
5648 executable".
5649 (_initialize_remote): Add PACKET_qCRC to the list of config
5650 packets that have no associated command. Extend comment.
5651 * target.c (simple_verify_memory, default_verify_memory): New
5652 function.
5653 * target.h (struct target_ops) <to_verify_memory>: Default to
5654 default_verify_memory.
5655 (simple_verify_memory): New declaration.
5656 * target-delegates.c: Regenerate.
5657
e59fa00f
MM
56582014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5659
5660 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5661
f2205de0
HZ
56622014-05-20 Hui Zhu <hui@codesourcery.com>
5663 Yao Qi <yao@codesourcery.com>
5664
5665 PR backtrace/16558
5666 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5667 and change address of sp and pc.
5668
c4e54771
TT
56692014-05-19 Tom Tromey <tromey@redhat.com>
5670
5671 * gdbtypes.c (rank_function): Use XNEWVEC.
5672 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5673
73051182
DE
56742014-05-19 Doug Evans <dje@google.com>
5675
5676 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5677 build_type_unit_groups and moved closer to only caller. Remove
5678 arguments. All references updated. Remove outdated .gdb_index
5679 comment.
5680 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5681 build_type_psymtabs_1.
5682
8832e7e3
DE
56832014-05-19 Doug Evans <dje@google.com>
5684
5685 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5686 n_type_unit_groups, all_type_unit_groups. All uses removed.
5687 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5688 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5689 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5690 (add_type_unit_group_to_table): Delete.
5691
cd8ae15e
DE
56922014-05-19 Doug Evans <dje@google.com>
5693
5694 * eval.c (evaluate_subexp_standard): Add some comments.
5695
08f4850b
DE
56962014-05-17 Doug Evans <xdje42@gmail.com>
5697
5698 * progspace.c (remove_program_space): Delete, unused.
5699 * progspace.h (remove_program_space): Ditto.
5700
bed8455c
DE
57012014-05-17 Doug Evans <xdje42@gmail.com>
5702
5703 * inferior.c (prune_inferiors): Fix comment.
5704 (remove_inferior_command): Call prune_program_spaces.
5705
8d551b02
DE
57062014-05-16 Doug Evans <dje@google.com>
5707
5708 New command line option -D.
5709 * NEWS: Mention it.
5710 * main.c (set_gdb_data_directory): New function.
5711 (captured_main): Recognize -D. Flag error for --data-directory "".
5712 Call set_gdb_data_directory.
5713 (print_gdb_help): Print --data-directory, -D.
5714 * main.h (set_gdb_data_directory): Declare.
5715 * top.c (staged_gdb_datadir): New static global.
5716 (set_gdb_datadir): Call set_gdb_data_directory
5717 (show_gdb_datadir): New function.
5718 (init_main): Update init of data-directory parameter.
5719
18848e28
GF
57202014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5721
5722 Import the "dirfd" gnulib module.
5723 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5724 * gnulib/aclocal.m4: Update.
5725 * gnulib/config.in: Update.
5726 * gnulib/configure: Update.
5727 * gnulib/import/Makefile.am: Update.
5728 * gnulib/import/Makefile.in: Update.
5729 * gnulib/import/dirfd.c: New.
5730 * gnulib/import/m4/dirfd.m4: New.
5731 * gnulib/import/m4/gnulib-cache.m4: Update.
5732 * gnulib/import/m4/gnulib-comp.m4: Update.
5733
95c64f92
YQ
57342014-05-16 Pierre Muller <muller@sourceware.org>
5735 Yao Qi <yao@codesourcery.com>
5736
5737 * valprint.c (print_wchar): Move the code on checking whether
5738 W is a printable wide char to the default branch of switch
5739 statement below. Call wchar_printable instead of gdb_iswprint.
5740
cac395ea
TM
57412014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5742
19679eca 5743 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5744 ldr.w and ldrd instructions.
5745
83655187
DE
57462014-05-15 Doug Evans <dje@google.com>
5747
5748 * dwarf2read.c (read_structure_type): Delete outdated comments.
5749
dd756689
TT
57502014-05-14 Tom Tromey <tromey@redhat.com>
5751
5752 * macrocmd.c (print_macro_definition): Reindent.
5753
75ddda77
DE
57542014-05-13 Doug Evans <xdje42@gmail.com>
5755
5756 * python/py-cmd.c (cmdpy_completer): Add comment.
5757 (completers): Make const.
5758
b0f16a3e
SM
57592014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5760
5761 * infrun.c (resume): Remove should_resume (unused). Move up
5762 declaration of resume_ptid.
5763
033c3379
TT
57642014-05-13 Tom Tromey <tromey@redhat.com>
5765
5766 * language.h (unop_type_check): Remove.
5767 (binop_type_check): Don't declare.
5768
9b44a3a5
AA
57692014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5770
5771 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5772 call to regcache_raw_collect.
5773
303a33fa
SM
57742014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5775
5776 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5777 mi_console->quote as the quoting character.
5778
196100a0
SM
57792014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5780
5781 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5782
f989a1c8
TT
57832014-04-29 Tom Tromey <tromey@redhat.com>
5784
5785 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5786 "show debug varobj".
5787
9404b58f
KM
57882014-05-07 Kyle McMartin <kyle@redhat.com>
5789
5790 Pushed by Joel Brobecker <brobecker@adacore.com>.
5791 * aarch64-tdep.c (aarch64_software_single_step): New function.
5792 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5793 with aarch64_software_single_step.
5794
5e49ba57
JB
57952014-05-05 Joel Brobecker <brobecker@adacore.com>
5796
5797 GDB 7.7.1 released.
5798
c888a17d
KS
57992014-05-05 Keith Seitz <keiths@redhat.com>
5800
5801 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5802 variable or history value is successfully parsed.
5803
290a839c
YQ
58042014-05-05 Yao Qi <yao@codesourcery.com>
5805 Pedro Alves <palves@redhat.com>
5806
5807 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5808 address of blocks that intersects the requested range. Trim
5809 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5810 sections.
5811 * ctf.c (ctf_xfer_partial): Likewise.
5812
91256dc2
YQ
58132014-05-05 Yao Qi <yao@codesourcery.com>
5814
5815 * printcmd.c (display_command): Remove the check to
5816 target_has_execution.
5817
07284463
MK
58182014-05-03 Mark Kettenis <kettenis@gnu.org>
5819
5820 * ppcobsd-nat.c: Include "obsd-nat.h".
5821 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5822 add_target.
5823 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5824
30a1e6cc
SDJ
58252014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5826
5827 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5828 and 16-bit signed and unsigned arguments. Update comment.
5829 (stap_parse_probe_arguments): Extend code to handle such
5830 arguments. Use warning instead of complaint to notify about
5831 unrecognized bitness.
5832
f33da99a
SDJ
58332014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5834
5835 PR breakpoints/16889
5836 * stap-probe.c (stap_parse_probe_arguments): Simplify
5837 check for non-prefixed probes (i.e., probes whose
5838 arguments do not start with "N@"). Always set the
5839 argument type to a sane value.
5840
95cf3b38
DT
58412014-05-01 David Taylor <dtaylor@emc.com>
5842
5843 * remote.c (compare_sections_command): Add -r option to compare
5844 all loadable read-only sections.
5845
1cfdf534
SC
58462014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5847
5848 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5849 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5850 Update all callers.
5851 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5852 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5853 Remove unused CORE_ADDR argument. Update all callers.
5854
ca4f7f8b
PA
58552014-04-29 Pedro Alves <palves@redhat.com>
5856
5857 * remote.c (struct packet_config) <detect>: Extend comment.
5858 (add_packet_config_cmd): Don't set the config's detect or support
5859 fields here.
5860 (init_all_packet_configs): Also initialize the config's 'detect'
5861 field.
5862 (reset_all_packet_configs_support): New function.
5863 (remote_open_1): Call reset_all_packet_configs_support instead of
5864 init_all_packet_configs.
5865 (_initialize_remote): Initialize all packet configs. Assert that
5866 all packets have an associated command, except a few known
5867 outliers.
5868
11c1ba78
JB
58692014-04-28 Joel Brobecker <brobecker@adacore.com>
5870
5871 * dwarf2read.c (read_subrange_type): Handle dynamic
5872 DW_AT_lower_bound attributes.
5873
8739bc53
JB
58742014-04-28 Joel Brobecker <brobecker@adacore.com>
5875
5876 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5877 dynamic bounds before computing its upper bound.
5878 (ada_discrete_type_low_bound): Same as above with the lower bound.
5879
6f8a3220
JB
58802014-04-28 Joel Brobecker <brobecker@adacore.com>
5881
5882 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5883 range types. Adjust the array handling implementation to
5884 take advantage of this change.
5885 (resolve_dynamic_range): New function, mostly extracted from
5886 resolve_dynamic_bounds.
5887 (resolve_dynamic_array): New function, mostly extracted from
5888 resolve_dynamic_bounds.
5889 (resolve_dynamic_bounds): Delete.
5890 (resolve_dynamic_type): Reimplement. Add handling of
5891 TYPE_CODE_RANGE types.
5892
4d072ce4
JB
58932014-04-28 Joel Brobecker <brobecker@adacore.com>
5894
5895 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5896 handling of parallel ___XA types.
5897
52865325
JB
58982014-04-28 Joel Brobecker <brobecker@adacore.com>
5899
5900 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5901 unnecessary second call to static_unwrap_type.
5902
433e77fa
HZ
59032014-04-27 Hui Zhu <hui@codesourcery.com>
5904
5905 * stack.c (print_frame_info): Call do_gdb_disassembly with
5906 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5907
b51a69ee
DE
59082014-04-26 Doug Evans <xdje42@gmail.com>
5909
5910 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5911
7ae1a6a6
PA
59122014-04-25 Pedro Alves <palves@redhat.com>
5913
5914 PR server/16255
5915 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5916 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5917 and newline from built string.
5918 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5919 (linux_ptrace_attach_fail_reason): ... this.
5920 * linux-nat.c (linux_nat_attach): Adjust to use
5921 linux_ptrace_attach_fail_reason.
5922
4082afcc
PA
59232014-04-25 Pedro Alves <palves@redhat.com>
5924
5925 * remote.c (struct remote_state): Remove multi_process_aware,
5926 non_stop_aware, cond_tracepoints, cond_breakpoints,
5927 breakpoint_commands, fast_tracepoints, static_tracepoints,
5928 install_in_trace, disconnected_tracing,
5929 enable_disable_tracepoints, string_tracing, and
5930 augmented_libraries_svr4_read fields.
5931 (remote_multi_process_p): Move further below in the file.
5932 (struct packet_config): Add comments.
5933 (update_packet_config): Delete function.
5934 (show_packet_config_cmd): Use packet_config_support.
5935 (add_packet_config_cmd): Use NULL as set callback.
5936 (packet_ok): "set remote foo-packet"-style commands no longer
5937 change config->supported -- adjust.
5938 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5939 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5940 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5941 (PACKET_QNonStop, PACKET_multiprocess_feature)
5942 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5943 (PACKET_DisconnectedTracing_feature)
5944 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5945 (set_remote_protocol_packet_cmd): Delete function.
5946 (packet_config_support, packet_support): New functions.
5947 (set_remote_protocol_Z_packet_cmd): Don't call
5948 update_packet_config.
5949 (remote_query_attached, remote_pass_signals)
5950 (remote_program_signals, remote_threads_info)
5951 (remote_threads_extra_info, remote_start_remote): Use
5952 packet_support.
5953 (remote_start_remote): Use packet_config_support and
5954 packet_support.
5955 (init_all_packet_configs): Set all packets to unknown support,
5956 instead of calling update_packet_config.
5957 (remote_check_symbols): Use packet_support.
5958 (remote_supported_packet): Unconditionally set the packet config's
5959 support status.
5960 (remote_multi_process_feature, remote_non_stop_feature)
5961 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5962 (remote_breakpoint_commands_feature)
5963 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5964 (remote_install_in_trace_feature)
5965 (remote_disconnected_tracing_feature)
5966 (remote_enable_disable_tracepoint_feature)
5967 (remote_string_tracing_feature)
5968 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5969 (remote_protocol_features): Adjust to use remote_supported_packet
5970 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5971 "ConditionalTracepoints", "ConditionalBreakpoints",
5972 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5973 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5974 "EnableDisableTracepoints", and "tracenz".
5975 (remote_query_supported): Use packet_support.
5976 (remote_open_1): Adjust.
5977 (extended_remote_attach_1): Use packet_support. Switch on the
5978 result of packet_ok instead of checking whether the packet ended
5979 up disabled.
5980 (remote_vcont_resume): Use packet_support.
5981 (remote_resume, remote_stop_ns, fetch_register_using_p)
5982 (remote_prepare_to_store, store_register_using_P)
5983 (check_binary_download, remote_write_bytes): Use packet_support.
5984 (remote_vkill): Use packet_support. Switch on the result of
5985 packet_ok instead of checking whether the packet ended up
5986 disabled.
5987 (extended_remote_supports_disable_randomization): Use
5988 packet_support.
5989 (extended_remote_run): Switch on the result of packet_ok instead
5990 of checking whether the packet ended up disabled.
5991 (remote_insert_breakpoint, remote_remove_breakpoint)
5992 (remote_insert_watchpoint, remote_remove_watchpoint)
5993 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5994 packet_support.
5995 (remote_search_memory): Use packet_config_support.
5996 (remote_get_thread_local_address, remote_get_tib_address)
5997 (remote_hostio_send_command, remote_can_execute_reverse): Use
5998 packet_support.
5999 (remote_supports_cond_tracepoints)
6000 (remote_supports_cond_breakpoints)
6001 (remote_supports_fast_tracepoints)
6002 (remote_supports_static_tracepoints)
6003 (remote_supports_install_in_trace)
6004 (remote_supports_enable_disable_tracepoint)
6005 (remote_supports_string_tracing)
6006 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6007 the packet config says the feature is enabled or disabled.
6008 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6009 (remote_get_trace_status): Use packet_support.
6010 (remote_set_disconnected_tracing): Adjust to check whether the
6011 feature is enabled with packet_support.
6012 (remote_set_trace_buffer_size, remote_use_agent)
6013 (remote_can_use_agent, remote_supports_btrace): Use
6014 packet_support.
6015 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6016 Use packet_config_support.
6017 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6018 the packet config says the feature is enabled or disabled.
6019 (set_range_stepping): Use packet_support.
6020
bdb52a22
TT
60212014-04-25 Tom Tromey <tromey@redhat.com>
6022
6023 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6024 argument.
6025
e9475ead
SA
60262014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6027
6028 * NEWS: Mention support for C99 variable length arrays.
6029
82eacd52
JB
60302014-04-24 Joel Brobecker <brobecker@adacore.com>
6031
6032 * ada-lang.c (standard_exc): Expand introductory comment.
6033
01f9f808
MS
60342014-04-24 Michael Sturm <michael.sturm@mintel.com>
6035 Walfred Tedeschi <walfred.tedeschi@intel.com>
6036
6037 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6038 AVX512 registers.
6039 (amd64_linux_read_description): Add code to handle AVX512 xstate
6040 mask and return respective tdesc.
6041 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6042 and features/i386/x32-avx512-linux.c.
6043 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6044 (amd64_linux_core_read_description): Add code to handle AVX512
6045 xstate mask and return respective tdesc.
6046 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6047 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6048 calculation.
6049 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6050 (tdesc_amd64_avx512_linux): New prototype.
6051 (tdesc_x32_avx512_linux): Likewise.
6052 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6053 features/i386/x32-avx512.c.
6054 (amd64_ymm_avx512_names): New register names for pseudo
6055 registers YMM16-31.
6056 (amd64_ymmh_avx512_names): New register names for raw registers
6057 YMMH16-31.
6058 (amd64_k_names): New register names for K registers.
6059 (amd64_zmmh_names): New register names for ZMM raw registers.
6060 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6061 (amd64_xmm_avx512_names): New register names for XMM16-31
6062 registers.
6063 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6064 registers.
6065 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6066 if feature is present.
6067 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6068 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6069 (AMD64_NUM_REGS): Adjust to new number of registers.
6070 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6071 registers supplied via XSTATE by AVX512 registers.
6072 (i386_linux_read_description): Add case for AVX512.
6073 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6074 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6075 (i386_linux_core_read_description): Add case for AVX512.
6076 (i386_linux_init_abi): Install supported register note section
6077 for AVX512.
6078 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6079 AVX512.
6080 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6081 registers to be number of zmm7h + 1.
6082 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6083 * i386-tdep.c: Include features/i386/i386-avx512.c.
6084 (i386_zmm_names): Add ZMM pseudo register names array.
6085 (i386_zmmh_names): Add ZMM raw register names array.
6086 (i386_k_names): Add K raw register names array.
6087 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6088 registers. AVX512 has 16 more ZMM registers than there are YMM
6089 registers.
6090 (i386_zmmh_regnum_p): Add function to look up register number of
6091 ZMM raw registers.
6092 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6093 (i386_k_regnum_p): Likewise for K raw registers.
6094 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6095 registers added by AVX512.
6096 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6097 registers added by AVX512.
6098 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6099 added by AVX512.
6100 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6101 (i386_pseudo_register_name): Add ZMM pseudo registers.
6102 (i386_zmm_type): Construct and return vector registers type for ZMM
6103 registers.
6104 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6105 ZMM0-31 pseudo registers and K registers.
6106 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6107 and YMM16-31 registers from register cache.
6108 (i386_pseudo_register_write): Add code to write K, ZMM and
6109 YMM16-31 registers.
6110 (i386_register_reggroup_p): Add code to include/exclude AVX512
6111 registers in/from respective register groups.
6112 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6113 registers if feature is present in xcr0.
6114 (i386_gdbarch_init): Add code to initialize AVX512 feature
6115 variables in tdep structure, wire in pseudo registers and call
6116 initialize_tdesc_i386_avx512.
6117 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6118 variables.
6119 (i386_regnum): Add AVX512 registers.
6120 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6121 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6122 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6123 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6124 512 bits wide.
6125 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6126 (i386_ymm_avx512_regnum_p): Likewise.
6127 (i386_k_regnum_p): Likewise.
6128 (i386_zmm_regnum_p): Likewise.
6129 (i386_zmmh_regnum_p): Likewise.
6130 * i387-tdep.c : Update year in copyright notice.
6131 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6132 XSAVE buffer.
6133 (XSAVE_YMM_AVX512_ADDR): New macro.
6134 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6135 XSAVE buffer.
6136 (XSAVE_XMM_AVX512_ADDR): New macro.
6137 (xsave_avx512_k_offset): New table for K register offsets in
6138 XSAVE buffer.
6139 (XSAVE_AVX512_K_ADDR): New macro.
6140 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6141 in XSAVE buffer.
6142 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6143 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6144 buffer.
6145 (i387_collect_xsave): Add code to collect AVX512 registers from
6146 XSAVE buffer.
6147 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6148 of XMM16-31 registers.
6149 (I387_NUM_K_REGS): New define for number of K registers.
6150 (I387_K0_REGNUM): New define for K0 register number.
6151 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6152 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6153 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6154 registers.
6155 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6156 (I387_XMM16_REGNUM): New define for XMM16 register number.
6157 (I387_YMM0_REGNUM): New define for YMM0 register number.
6158 (I387_KEND_REGNUM): New define for last K register number.
6159 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6160 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6161 number.
6162 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6163 number.
6164 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6165 size.
6166 * features/Makefile: Add AVX512 related files.
6167 * features/i386/32bit-avx512.xml: New file.
6168 * features/i386/64bit-avx512.xml: Likewise.
6169 * features/i386/amd64-avx512-linux.c: Likewise.
6170 * features/i386/amd64-avx512-linux.xml: Likewise.
6171 * features/i386/amd64-avx512.c: Likewise.
6172 * features/i386/amd64-avx512.xml: Likewise.
6173 * features/i386/i386-avx512-linux.c: Likewise.
6174 * features/i386/i386-avx512-linux.xml: Likewise.
6175 * features/i386/i386-avx512.c: Likewise.
6176 * features/i386/i386-avx512.xml: Likewise.
6177 * features/i386/x32-avx512-linux.c: Likewise.
6178 * features/i386/x32-avx512-linux.xml: Likewise.
6179 * features/i386/x32-avx512.c: Likewise.
6180 * features/i386/x32-avx512.xml: Likewise.
6181 * regformats/i386/amd64-avx512-linux.dat: New file.
6182 * regformats/i386/amd64-avx512.dat: Likewise.
6183 * regformats/i386/i386-avx512-linux.dat: Likewise.
6184 * regformats/i386/i386-avx512.dat: Likewise.
6185 * regformats/i386/x32-avx512-linux.dat: Likewise.
6186 * regformats/i386/x32-avx512.dat: Likewise.
6187 * NEWS: Add note about new support for AVX512.
6188
6189
08351840
PA
61902014-04-23 Pedro Alves <palves@redhat.com>
6191
6192 * breakpoint.c (insert_bp_location): Tolerate errors if the
6193 breakpoint is set in a user-loaded objfile.
6194 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6195 location is marked shlib_disabled. If the breakpoint is set in a
6196 user-loaded objfile is a GDB-side memory breakpoint, validate it
6197 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6198 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6199 flag.
6200 * mem-break.c (memory_validate_breakpoint): New function.
6201 * objfiles.c (userloaded_objfile_contains_address_p): New
6202 function.
6203 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6204 * target.h (memory_validate_breakpoint): New declaration.
6205
076855f9
PA
62062014-04-23 Pedro Alves <palves@redhat.com>
6207
6208 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6209 the breakpoint is set in a shared library, only suppress
6210 errors for software breakpoints, not hardware breakpoints.
6211
483805cf
PA
62122014-04-22 Pedro Alves <palves@redhat.com>
6213
6214 * infrun.c (schedlock_applies): New function, factored out from
6215 find_thread_needs_step_over.
6216 (find_thread_needs_step_over): Use it.
6217 (switch_back_to_stepped_thread): Always clear trap_expected if the
6218 step over is finished. Return early if scheduler locking applies.
6219 Look for the stepping thread and a potential step-over thread with
6220 a single loop.
6221 (currently_stepping_or_nexting_callback): Delete.
6222
a75fef0e
NC
62232014-04-22 Nick Clifton <nickc@redhat.com>
6224
6225 * NEWS: Mention that ARM sim now supports tracing.
6226
48b6e87e
YQ
62272014-04-22 Yao Qi <yao@codesourcery.com>
6228
6229 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6230 to ...
6231 * tracefile.c (tracefile_fetch_registers): ... it. New
6232 function.
6233 * tracefile.h (tracefile_fetch_registers): Declare.
6234 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6235 tracefile_fetch_registers.
6236
17617f2d
EZ
62372014-04-19 Eli Zaretskii <eliz@gnu.org>
6238
6239 PR gdb/14018
6240 * windows-nat.c (thread_rec): Don't display a warning when
6241 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6242 fails for any reason, set th->suspended to -1, so that we don't
6243 try to resume such a thread. Also, don't return NULL in these
6244 cases, to avoid completely ruin the session due to "PC register is
6245 not available" error.
6246 (do_windows_fetch_inferior_registers): Check errors in
6247 GetThreadContext call.
6248 (windows_continue): Accept an additional argument KILLED; if not
6249 zero, ignore errors in the SetThreadContext call, since the
6250 inferior was killed and is shutting down.
6251 (windows_resume, get_windows_debug_event)
6252 (windows_create_inferior, windows_mourn_inferior)
6253 (windows_kill_inferior): All callers of windows_continue changed
6254 to adjust to its new calling sequence.
6255
5723a6fd
YQ
62562014-04-19 Yao Qi <yao@codesourcery.com>
6257
6258 * ctf.c (ctf_open): Call post_create_inferior.
6259
614d5099
YQ
62602014-04-19 Yao Qi <yao@codesourcery.com>
6261
6262 * ctf.c (handle_id): New static variable.
6263 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6264 value. Get the declaration of event "register" and get length
6265 of field "contents".
6266
dac3e710
YQ
62672014-04-19 Yao Qi <yao@codesourcery.com>
6268
6269 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6270
2bca57ba
SC
62712014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6272
6273 * valops.c (oload_method_static): Remove unnecessary argument
6274 METHOD. Update all callers.
6275
51d48146
PA
62762014-04-18 Pedro alves <palves@redhat.com>
6277 Tom Tromey <tromey@redhat.com>
6278
6279 PR backtrace/15558
6280 * frame.c (get_prev_frame_1): Rename to ...
6281 (get_prev_frame_always): ... this, and make extern. Adjust.
6282 (skip_artificial_frames): Use get_prev_frame_always.
6283 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6284 (get_frame_unwind_stop_reason): Adjust to rename.
6285 * frame.h (get_prev_frame_always): Declare.
6286 * inline-frame.c: Include frame.h.
6287 (inline_frame_this_id): Use get_prev_frame_always.
6288
1bdad2e0
TG
62892014-04-18 Tristan Gingold <gingold@adacore.com>
6290
6291 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6292 code by using bfd_mach_o_get_base_address.
6293
7ce16bd4
UW
62942014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6295
6296 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6297 (spu_ax_pseudo_register_collect): New function.
6298 (spu_ax_pseudo_register_push_stack): Likewise.
6299 (spu_dwarf_reg_to_regnum): Likewise.
6300 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6301
2ed3c037
UW
63022014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6303
6304 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6305 Replace FRAME argument with FRAME_ID.
6306 * gdbarch.c, gdbarch.h: Regenerate.
6307 * findvar.c (default_value_from_register): Add GDBARCH argument;
6308 replace FRAME by FRAME_ID. No longer call get_frame_id.
6309 (value_from_register): Update call to gdbarch_value_from_register.
6310 * value.h (default_value_from_register): Update prototype.
6311 * s390-linux-tdep.c (s390_value_from_register): Update interface
6312 and call to default_value_from_register.
6313 * spu-tdep.c (spu_value_from_register): Likewise.
6314
6315 * findvar.c (address_from_register): Remove TYPE argument.
6316 Do not call value_from_register; use gdbarch_value_from_register
6317 with null_frame_id instead.
6318 * value.h (address_from_register): Update prototype.
6319 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6320 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6321 address_from_register interface change.
6322
71e50e83
YQ
63232014-04-17 Yao Qi <yao@codesourcery.com>
6324
6325 * gdbtypes.h: Update comments to link to types and macros'
6326 definitions.
6327
7a23c549
SC
63282014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6329
6330 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6331
22869d73
KS
63322014-04-16 Keith Seitz <keiths@redhat.com>
6333
6334 PR gdb/15827
6335 * dwarf2read.c (skip_one_die): Check that all relative-offset
6336 sibling DIEs fall within range of the current reader's buffer.
6337 (read_partial_die): Likewise.
6338
c4f87ca6
KS
63392014-04-16 Keith Seitz <keiths@redhat.com>
6340
6341 PR c++/16597
6342 * cp-namespace.c (lookup_symbol_file): If the type name of
6343 `this' is NULL, return immediately.
6344
b50c8614
KS
63452014-04-14 Keith Seitz <keiths@redhat.com>
6346
6347 PR c++/16253
6348 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6349 from symbol_matches_domain in symtab.c. All local callers
6350 of symbol_matches_domain updated.
6351 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6352 search STRUCT_DOMAIN.
6353 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6354 independently. standard_lookup will do that automatically.
6355 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6356 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6357 (cp_lookup_symbol_in_namespace): Likewise.
6358 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6359 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6360 may return a STRUCT_DOMAIN match.
6361 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6362 * cp-support.c: Include language.h.
6363 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6364 VAR_DOMAIN.
6365 * psymtab.c (match_partial_symbol): Compare the requested
6366 domain with the symbol's domain directly.
6367 (lookup_partial_symbol): Likewise.
6368 * symtab.c (lookup_symbol_in_language): Explain when/why
6369 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6370 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6371 appropriate languages.
6372 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6373 and moved to ada-lang.c
6374 (lookup_block_symbol): Explain that this function only returns
6375 symbol matching the requested DOMAIN.
6376 Compare the requested domain with the symbol's domain directly.
6377 (iterate_over_symbols): Compare the requested domain with the
6378 symbol's domain directly.
6379 * symtab.h (symbol_matches_domain): Remove.
6380
3d567982
TT
63812014-04-14 Tom Tromey <tromey@redhat.com>
6382
6383 PR c++/15246:
6384 * c-exp.y (type_aggregate_p): New function.
6385 (qualified_name, classify_inner_name): Use it.
6386 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6387 and TYPE_TARGET_TYPE of an enum type.
6388 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6389 an enum type.
6390 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6391 handle TYPE_DECLARED_CLASS.
6392 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6393 types.
6394 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6395 * valops.c (enum_constant_from_type): New function.
6396 (value_aggregate_elt): Use it.
6397 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6398 TYPE_CODE_ENUM.
6399
c848d642
TT
64002014-04-14 Tom Tromey <tromey@redhat.com>
6401
6402 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6403 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6404 const.
6405 * value.h (value_aggregate_elt): Update.
6406
0626fc76
TT
64072014-04-14 Tom Tromey <tromey@redhat.com>
6408
6409 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6410
5ecaaa66
SA
64112014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6412
6413 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6414 (evaluate_subexp_standard): Pass noside argument.
6415 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6416 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6417 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6418 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6419 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6420
1612e0c0
SA
64212014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6422
6423 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6424 points to a constant blob.
6425
c451ebe5
SA
64262014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6427
6428 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6429 property and store it as the high bound and flag the range accordingly.
6430 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6431 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6432 * gdbtypes.h (enum range_flags): New enum.
6433 (struct range_bounds): Add flags member.
6434
1d42e4c4
SA
64352014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6436
6437 * c-typeprint.c (c_type_print_varspec_suffix): Added
6438 check for not yet resolved high bound. If unresolved, print
6439 "variable length" string to the console instead of random
6440 length.
6441
9f1f738a
SA
64422014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6443
6444 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6445 value.
6446 (ada_template_to_fixed_record_type_1): Likewise.
6447 (ada_to_fixed_type_1): Likewise.
6448 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6449 (cp_print_value): Likewise.
6450 * d-valprint.c (dynamic_array_type): Likewise.
6451 * findvar.c (address_of_variable): Likewise.
6452 * jv-valprint.c (java_value_print): Likewise.
6453 * valops.c (value_ind): Likewise.
6454 * value.c (coerce_ref): Likewise.
6455
3c8452d4
SA
64562014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6457
6458 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6459 value and retrieve the dynamic type size.
6460
4ad88275
SA
64612014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6462
6463 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6464 passed to sizeof is dynamic evaluate the argument to compute the length.
6465
80180f79
SA
64662014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6467 Joel Brobecker <brobecker@adacore.com>
6468
6469 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6470 (dwarf2_evaluate_property): New function.
6471 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6472 * dwarf2read.c (attr_to_dynamic_prop): New function.
6473 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6474 attribute.
6475 * gdbtypes.c: Include dwarf2loc.h.
6476 (is_dynamic_type): New function.
6477 (resolve_dynamic_type): New function.
6478 (resolve_dynamic_bounds): New function.
6479 (get_type_length): New function.
6480 (check_typedef): Use get_type_length to compute type length.
6481 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6482 (TYPE_LOW_BOUND_KIND): New macro.
6483 (is_dynamic_type): New function prototype.
6484 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6485 to resolve dynamic properties of the type. Update comment.
6486 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6487
a1556843
RH
64882014-04-14 Richard Henderson <rth@redhat.com>
6489
6490 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6491
0be03e84
DE
64922014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6493 Doug Evans <xdje42@gmail.com>
6494
6495 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6496 dereference TYPE_CODE_REF values.
6497
6b662e19
JB
64982014-04-11 Joel Brobecker <brobecker@adacore.com>
6499
6500 Revert the following changes due to regressions:
6501
6502 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6503 (dwarf2_evaluate_property): New function.
6504 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6505 * dwarf2read.c (attr_to_dynamic_prop): New function.
6506 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6507 attribute.
6508 * gdbtypes.c: Include dwarf2loc.h.
6509 (is_dynamic_type): New function.
6510 (resolve_dynamic_type): New function.
6511 (resolve_dynamic_bounds): New function.
6512 (get_type_length): New function.
6513 (check_typedef): Use get_type_length to compute type length.
6514 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6515 (TYPE_LOW_BOUND_KIND): New macro.
6516 (is_dynamic_type): New function prototype.
6517 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6518 to resolve dynamic properties of the type. Update comment.
6519 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6520
6521 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6522 passed to sizeof is dynamic evaluate the argument to compute the length.
6523
6524 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6525 value and retrieve the dynamic type size.
6526
6527 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6528 (ada_template_to_fixed_record_type_1): Likewise.
6529 (ada_to_fixed_type_1): Likewise.
6530 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6531 (cp_print_value): Likewise.
6532 * d-valprint.c (dynamic_array_type): Likewise.
6533 * eval.c (evaluate_subexp_with_coercion): Likewise.
6534 * findvar.c (address_of_variable): Likewise.
6535 * jv-valprint.c (java_value_print): Likewise.
6536 * valops.c (value_ind): Likewise.
6537 * value.c (coerce_ref): Likewise.
6538
6539 * c-typeprint.c (c_type_print_varspec_suffix): Added
6540 check for not yet resolved high bound. If unresolved, print
6541 "variable length" string to the console instead of random
6542 length.
6543
6544 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6545 property and store it as the high bound and flag the range accordingly.
6546 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6547 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6548 * gdbtypes.h (enum range_flags): New enum.
6549 (struct range_bounds): Add flags member.
6550
6551 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6552 points to a constant blob.
6553
6554 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6555 (evaluate_subexp_standard): Pass noside argument.
6556 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6557 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6558 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6559 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6560 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6561
245a5f0b
KS
65622014-04-11 Keith Seitz <keiths@redhat.com>
6563
6564 PR c++/16675
6565 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6566 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6567 reference types.
6568
3bce8237
SA
65692014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6570
6571 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6572 (evaluate_subexp_standard): Pass noside argument.
6573 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6574 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6575 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6576 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6577 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6578
92b09522
SA
65792014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6580
6581 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6582 points to a constant blob.
6583
e1969afb
SA
65842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6585
6586 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6587 property and store it as the high bound and flag the range accordingly.
6588 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6589 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6590 * gdbtypes.h (enum range_flags): New enum.
6591 (struct range_bounds): Add flags member.
6592
b86138fb
SA
65932014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6594
6595 * c-typeprint.c (c_type_print_varspec_suffix): Added
6596 check for not yet resolved high bound. If unresolved, print
6597 "variable length" string to the console instead of random
6598 length.
6599
bcd629a4
SA
66002014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6601
6602 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6603 (ada_template_to_fixed_record_type_1): Likewise.
6604 (ada_to_fixed_type_1): Likewise.
6605 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6606 (cp_print_value): Likewise.
6607 * d-valprint.c (dynamic_array_type): Likewise.
6608 * eval.c (evaluate_subexp_with_coercion): Likewise.
6609 * findvar.c (address_of_variable): Likewise.
6610 * jv-valprint.c (java_value_print): Likewise.
6611 * valops.c (value_ind): Likewise.
6612 * value.c (coerce_ref): Likewise.
6613
04b19544
SA
66142014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6615
6616 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6617 value and retrieve the dynamic type size.
6618
26cb189f
SA
66192014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6620
6621 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6622 passed to sizeof is dynamic evaluate the argument to compute the length.
6623
37c1ab67
SA
66242014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6625
6626 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6627 (dwarf2_evaluate_property): New function.
6628 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6629 * dwarf2read.c (attr_to_dynamic_prop): New function.
6630 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6631 attribute.
6632 * gdbtypes.c: Include dwarf2loc.h.
6633 (is_dynamic_type): New function.
6634 (resolve_dynamic_type): New function.
6635 (resolve_dynamic_bounds): New function.
6636 (get_type_length): New function.
6637 (check_typedef): Use get_type_length to compute type length.
6638 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6639 (TYPE_LOW_BOUND_KIND): New macro.
6640 (is_dynamic_type): New function prototype.
6641 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6642 to resolve dynamic properties of the type. Update comment.
6643 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6644
729efb13
SA
66452014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6646
6647 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6648 declaring high/low bounds and change uses accordingly. Call
6649 create_range_type instead of create_static_range_type.
6650 * gdbtypes.c (create_range_type): New function.
6651 (create_range_type): Convert bounds into struct bound_prop and pass
6652 them to create_range_type.
6653 * gdbtypes.h (struct bound_prop): New struct.
6654 (create_range_type): New function prototype.
6655 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6656 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6657 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6658 part of the bound.
6659 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6660
0c9c3474
SA
66612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6662
6663 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6664 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6665 * ada-lang.c: All uses of create_range_type updated.
6666 * coffread.c: All uses of create_range_type updated.
6667 * dwarf2read.c: All uses of create_range_type updated.
6668 * f-exp.y: All uses of create_range_type updated.
6669 * m2-valprint.c: All uses of create_range_type updated.
6670 * mdebugread.c: All uses of create_range_type updated.
6671 * stabsread.c: All uses of create_range_type updated.
6672 * valops.c: All uses of create_range_type updated.
6673 * valprint.c: All uses of create_range_type updated.
6674
9d497a19
PA
66752014-04-10 Pedro Alves <palves@redhat.com>
6676
6677 * breakpoint.c (single_step_breakpoints)
6678 (single_step_gdbarch): Move up in the file.
6679 (one_breakpoint_xfer_memory): New function, factored out from ...
6680 (breakpoint_xfer_memory): ... here. Also process single-step
6681 breakpoints.
6682
15a9128a
TG
66832014-04-09 Tristan Gingold <gingold@adacore.com>
6684
6685 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6686 comments.
6687 (darwin_decode_exception_message): Free port only after use.
6688
9c97a070
PL
66892014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6690
6691 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6692 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6693 when setting the size of call_length.
6694
7af389b8
SC
66952014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6696
6697 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6698 dereference TYPE_CODE_REF values.
6699
86ad98c3
JB
67002014-04-07 Joel Brobecker <brobecker@adacore.com>
6701
6702 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6703 end of warning message.
6704
b0aeadb3
DE
67052014-04-03 Doug Evans <dje@google.com>
6706
6707 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6708 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6709
5979d6b6
AM
67102014-04-02 Alan Modra <amodra@gmail.com>
6711
6712 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6713 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6714 (struct symbol_file_add_from_memory_args): Add size field.
6715 (find_vdso_size): New function.
6716 (add_vsyscall_page): Attempt to find vdso size.
6717
0d60c288
DE
67182014-04-01 Doug Evans <dje@google.com>
6719
6720 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6721
a41f2563
TG
67222014-04-01 Tristan Gingold <gingold@adacore.com>
6723
6724 * darwin-nat.c (darwin_encode_reply): Add prototype.
6725 (darwin_decode_exception_message): Reply to unknown inferiors.
6726 (darwin_decode_message): Handle message by id. Ignore message
6727 to unknown inferior.
6728 (darwin_wait): Discard unknown messages, add debug trace.
6729
11a865c8
DE
67302014-03-31 Doug Evans <dje@google.com>
6731
6732 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6733 comp_dir_string.
6734
770e7fc7
DE
67352014-03-31 Doug Evans <dje@google.com>
6736
6737 New option "set print symbol-loading".
6738 * NEWS: Mention it.
6739 * solib.c (solib_read_symbols): Only print symbol loading messages
6740 if requested.
6741 (solib_add): If symbol loading is in "brief" mode, notify user
6742 symbols are being loaded.
6743 (reload_shared_libraries_1): Ditto.
6744 * symfile.c (print_symbol_loading_off): New static global.
6745 (print_symbol_loading_brief): New static global.
6746 (print_symbol_loading_full): New static global.
6747 (print_symbol_loading_enums): New static global.
6748 (print_symbol_loading): New static global.
6749 (print_symbol_loading_p): New function.
6750 (symbol_file_add_with_addrs): Only print symbol loading messages
6751 if requested.
6752 (_initialize_symfile): Register "print symbol-loading" set/show
6753 command.
6754 * symfile.h (print_symbol_loading_p): Declare.
6755
c32c64b7
DE
67562014-03-30 Doug Evans <xdje42@gmail.com>
6757
6758 * infrun.c (set_last_target_status): New function.
6759 (handle_inferior_event): Call it.
6760
7c0bc051
DE
67612014-03-30 Doug Evans <xdje42@gmail.com>
6762
6763 * inferior.h (enum stop_kind): Improve comment.
6764
8776cfe9
JB
67652014-03-28 Joel Brobecker <brobecker@adacore.com>
6766
6767 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6768 a reference, strip the reference layer before calling
6769 the lang_ops value_has_mutated callback.
6770
410a0ff2
SDJ
67712014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6772
6773 Remove some globals from our parser.
6774 * language.c (unk_lang_parser): Add "struct parser_state"
6775 argument.
6776 * language.h (struct language_defn) <la_parser>: Likewise.
6777 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6778 (initialize_expout): Add "struct parser_state" argument.
6779 Rewrite function to use the parser state.
6780 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6781 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6782 write_exp_elt_longcst, write_exp_elt_dblcst,
6783 write_exp_elt_decfloatcst, write_exp_elt_type,
6784 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6785 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6786 write_dollar_variable): Likewise.
6787 (parse_exp_in_context_1): Use parser state.
6788 (insert_type_address_space): Add "struct parser_state" argument.
6789 Use parser state.
6790 (increase_expout_size): New function.
6791 * parser-defs.h: Forward declare "struct language_defn" and
6792 "struct parser_state".
6793 (expout, expout_size, expout_ptr): Remove extern declarations.
6794 (parse_gdbarch, parse_language): Rewrite macro declarations to
6795 accept the parser state.
6796 (struct parser_state): New struct.
6797 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6798 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6799 write_exp_elt_decfloatcst, write_exp_elt_type,
6800 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6801 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6802 write_exp_msymbol, write_dollar_variable,
6803 mark_struct_expression, insert_type_address_space): Add "struct
6804 parser_state" argument.
6805 (increase_expout_size): New function.
6806 * utils.c (do_clear_parser_state): New function.
6807 (make_cleanup_clear_parser_state): Likewise.
6808 * utils.h (make_cleanup_clear_parser_state): New function
6809 prototype.
6810 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6811 Update calls to write_exp* in order to pass the parser state.
6812 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6813 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6814 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6815 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6816 * stap-probe.c (stap_parse_register_operand): Likewise.
6817 (stap_parse_single_operand): Likewise.
6818 (stap_parse_argument_1): Likewise.
6819 (stap_parse_argument): Use parser state.
6820 * stap-probe.h: Include "parser-defs.h".
6821 (struct stap_parse_info) <pstate>: New field.
6822 * c-exp.y (parse_type): Rewrite to use parser state.
6823 (yyparse): Redefine to c_parse_internal.
6824 (pstate): New global variable.
6825 (parse_number): Add "struct parser_state" argument.
6826 (write_destructor_name): Likewise.
6827 (type_exp): Update calls to write_exp* and similars in order to
6828 use parser state.
6829 (exp1, exp, variable, qualified_name, space_identifier,
6830 typename, typebase): Likewise.
6831 (write_destructor_name, parse_number, lex_one_token,
6832 classify_name, classify_inner_name, c_parse): Add "struct
6833 parser_state" argument. Update function to use parser state.
6834 * c-lang.h: Forward declare "struct parser_state".
6835 (c_parse): Add "struct parser_state" argument.
6836 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6837 (yyparse): Redefine macro to ada_parse_internal.
6838 (pstate): New variable.
6839 (write_int, write_object_renaming, write_var_or_type,
6840 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6841 type_int, type_long, type_long_long, type_float, type_double,
6842 type_long_double, type_char, type_boolean, type_system_address):
6843 Add "struct parser_state" argument.
6844 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6845 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6846 var_or_type, aggregate, aggregate_component_list,
6847 positional_list, others, component_group,
6848 component_associations): Update calls to write_exp* and similar
6849 functions in order to use parser state.
6850 (ada_parse, write_var_from_sym, write_int,
6851 write_exp_op_with_string, write_object_renaming,
6852 find_primitive_type, write_selectors, write_ambiguous_var,
6853 write_var_or_type, write_name_assoc, type_int, type_long,
6854 type_long_long, type_float, type_double, type_long_double,
6855 type_char, type_boolean, type_system_address): Add "struct
6856 parser_state" argument. Adjust function to use parser state.
6857 * ada-lang.c (parse): Likewise.
6858 * ada-lang.h: Forward declare "struct parser_state".
6859 (ada_parse): Add "struct parser_state" argument.
6860 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6861 calls to both functions.
6862 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6863 parser state.
6864 (yyparse): Redefine macro to f_parse_internal.
6865 (pstate): New variable.
6866 (parse_number): Add "struct parser_state" argument.
6867 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6868 and similars in order to use parser state.
6869 (parse_number): Adjust code to use parser state.
6870 (yylex): Likewise.
6871 (f_parse): New function.
6872 * f-lang.h: Forward declare "struct parser_state".
6873 (f_parse): Add "struct parser_state" argument.
6874 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6875 parser state.
6876 (yyparse): Redefine macro for java_parse_internal.
6877 (pstate): New variable.
6878 (push_expression_name, push_expression_name, insert_exp): Add
6879 "struct parser_state" argument.
6880 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6881 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6882 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6883 PostIncrementExpression, PostDecrementExpression,
6884 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6885 UnaryExpressionNotPlusMinus, CastExpression,
6886 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6887 RelationalExpression, EqualityExpression, AndExpression,
6888 ExclusiveOrExpression, InclusiveOrExpression,
6889 ConditionalAndExpression, ConditionalOrExpression,
6890 ConditionalExpression, Assignment, LeftHandSide): Update
6891 calls to write_exp* and similars in order to use parser state.
6892 (parse_number): Ajust code to use parser state.
6893 (yylex): Likewise.
6894 (java_parse): New function.
6895 (push_variable): Add "struct parser_state" argument. Adjust
6896 code to user parser state.
6897 (push_fieldnames, push_qualified_expression_name,
6898 push_expression_name, insert_exp): Likewise.
6899 * jv-lang.h: Forward declare "struct parser_state".
6900 (java_parse): Add "struct parser_state" argument.
6901 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6902 parser state.
6903 (yyparse): Redefine macro to m2_parse_internal.
6904 (pstate): New variable.
6905 (type_exp, exp, fblock, variable, type): Update calls to
6906 write_exp* and similars to use parser state.
6907 (yylex): Likewise.
6908 (m2_parse): New function.
6909 * m2-lang.h: Forward declare "struct parser_state".
6910 (m2_parse): Add "struct parser_state" argument.
6911 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6912 * objc-lang.h: Forward declare "struct parser_state".
6913 (end_msglist): Add "struct parser_state" argument.
6914 * p-exp.y (parse_type): Rewrite macro to use parser state.
6915 (yyparse): Redefine macro to pascal_parse_internal.
6916 (pstate): New variable.
6917 (parse_number): Add "struct parser_state" argument.
6918 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6919 write_exp* and similars in order to use parser state.
6920 (parse_number, yylex): Adjust code to use parser state.
6921 (pascal_parse): New function.
6922 * p-lang.h: Forward declare "struct parser_state".
6923 (pascal_parse): Add "struct parser_state" argument.
6924 * go-exp.y (parse_type): Rewrite macro to use parser state.
6925 (yyparse): Redefine macro to go_parse_internal.
6926 (pstate): New variable.
6927 (parse_number): Add "struct parser_state" argument.
6928 (type_exp, exp1, exp, variable, type): Update calls to
6929 write_exp* and similars in order to use parser state.
6930 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6931 to use parser state.
6932 (go_parse): Likewise.
6933 * go-lang.h: Forward declare "struct parser_state".
6934 (go_parse): Add "struct parser_state" argument.
6935
342587c4
DE
69362014-03-27 Doug Evans <dje@google.com>
6937
6938 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6939
33e80786
DE
69402014-03-27 Doug Evans <dje@google.com>
6941
6942 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6943 Remove argument abbrev_section. All callers updated.
6944
1dbab08b
DE
69452014-03-27 Doug Evans <dje@google.com>
6946
6947 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6948 addr_base, ranges_base.
6949
318d3177
KS
69502014-03-26 Keith Seitz <keiths@redhat.com>
6951
6952 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6953 types, not VAR_DOMAIN.
6954
1e54db15
SL
69552014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6956
6957 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6958 "ra" registers.
6959 * features/nios2-linux.c: Regenerated.
6960 * features/nios2.c: Regenerated.
6961
d3839ede
PA
69622014-03-25 Pedro Alves <palves@redhat.com>
6963
6964 * cli/cli-script.c (script_from_file): Force the interpreter to
6965 sync mode.
6966
7588d2ec
PL
69672014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6968
6969 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6970 small stack allocation.
6971
a6290449
TG
69722014-03-24 Tristan Gingold <gingold@adacore.com>
6973
6974 * darwin-nat.c (exc_server): Remove unused prototype.
6975 (darwin_dump_message): Correctly display data on x86_64.
6976 (darwin_encode_reply): Fix style.
6977 Add comments and fix indentation.
6978
31ae9d24 69792014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6980
6981 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6982
6339bfc4
DE
69832014-03-22 Doug Evans <xdje42@gmail.com>
6984
6985 * infcmd.c: Whitespace fixes.
6986 (interrupt_command): Merge two function comments into one.
6987
0a07590b
DE
69882014-03-22 Doug Evans <xdje42@gmail.com>
6989
6990 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6991 All uses updated.
6992
b55fbac4
YQ
69932014-03-22 Yao Qi <yao@codesourcery.com>
6994
6995 * remote.c (target_read_live_memory): Remove.
6996 (memory_xfer_live_readonly_partial): Rename it to
6997 remote_xfer_live_readonly_partial. Remove argument 'object'.
6998 All callers updated. Call remote_read_bytes_1
6999 instead of target_read_live_memory.
7000 * tracepoint.c (set_traceframe_number): Remove.
7001 (make_cleanup_restore_traceframe_number): Likewise .
7002 * tracepoint.h (set_traceframe_number): Remove declaration.
7003 (make_cleanup_restore_traceframe_number): Likewise.
7004
9217e74e
YQ
70052014-03-22 Yao Qi <yao@codesourcery.com>
7006
7007 * remote.c (remote_read_bytes): Move code on reading from the
7008 remote stub to ...
7009 (remote_read_bytes_1): ... here. New function.
7010
8acf9577
YQ
70112014-03-22 Yao Qi <yao@codesourcery.com>
7012
7013 * ctf.c (ctf_xfer_partial): Check the return value of
7014 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7015 return TARGET_XFER_UNAVAILABLE.
7016 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7017 * target.c (target_read_live_memory): Move it to remote.c.
7018 (memory_xfer_live_readonly_partial): Likewise.
7019 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7020 * remote.c (target_read_live_memory): Moved from target.c.
7021 (memory_xfer_live_readonly_partial): Likewise.
7022 (remote_read_bytes): Factored out from
7023 memory_xfer_partial_1.
7024
feef67ab
DE
70252014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7026
7027 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7028 NULL pointer.
7029
b65dc60b
PA
70302014-03-21 Pedro Alves <palves@redhat.com>
7031
7032 * infrun.c (normal_stop): Extend comment.
7033
b4ab256d
HZ
70342014-03-21 Hui Zhu <hui@codesourcery.com>
7035 Pedro Alves <palves@redhat.com>
7036
7037 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7038 static buffer.
7039 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7040 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7041 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7042
deba7593
MR
70432014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7044
7045 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7046 `z' formatted output modifier.
7047
1bff71c3
SDJ
70482014-03-20 Tom Tromey <tromey@redhat.com>
7049 Sergio Durigan Junior <sergiodj@redhat.com>
7050
7051 * probe.c (parse_probes): Turn assert into an ordinary error.
7052 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7053 exceptions when parsing probes. Rearrange the code for clarity.
7054
90e28950
TT
70552014-03-20 Tom Tromey <tromey@redhat.com>
7056
7057 PR gdb/14135
7058 * top.c (execute_command): Only dispatch events if the command
7059 started the target.
7060
beb460e8
PA
70612014-03-20 Tom Tromey <tromey@redhat.com>
7062
7063 PR cli/15718
7064 * infcall.c: Include event-top.h.
7065 (run_inferior_call): Call async_disable_stdin if needed.
7066
99619bea
PA
70672014-03-20 Pedro Alves <palves@redhat.com>
7068
7069 * infrun.c (prepare_to_proceed): Delete.
7070 (thread_still_needs_step_over): New function.
7071 (find_thread_needs_step_over): New function.
7072 (proceed): If the current thread needs a step-over, set its
7073 steping_over_breakpoint flag. Adjust to use
7074 find_thread_needs_step_over instead of prepare_to_proceed.
7075 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7076 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7077 breakpoint.
7078 (switch_back_to_stepped_thread): Step over breakpoints of all
7079 threads not the stepping thread, before switching back to the
7080 stepping thread.
7081
2adfaa28
PA
70822014-03-20 Pedro Alves <palves@redhat.com>
7083
7084 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7085 extern.
7086 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7087 * infrun.c (saved_singlestep_ptid)
7088 (stepping_past_singlestep_breakpoint): Delete.
7089 (resume): Remove stepping_past_singlestep_breakpoint handling.
7090 (proceed): Store the prev_pc of the stepping thread too.
7091 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7092 singlestep_pc.
7093 (enum infwait_states): Delete infwait_thread_hop_state.
7094 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7095 field.
7096 (handle_inferior_event): Adjust.
7097 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7098 handling and the thread-hop code. Before removing single-step
7099 breakpoints, check whether the thread hit a single-step breakpoint
7100 of another thread. If it did, the trap is not a random signal.
7101 (switch_back_to_stepped_thread): If the event thread hit a
7102 single-step breakpoint, unblock it before switching to the
7103 stepping thread. Handle the case of the stepped thread having
7104 advanced already.
7105 (keep_going): Handle the case of the current thread moving past a
7106 single-step breakpoint.
7107
31e77af2
PA
71082014-03-20 Pedro Alves <palves@redhat.com>
7109
7110 PR breakpoints/7143
7111 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7112 are being stepped over.
7113 (breakpoint_address_match): Make extern.
7114 * breakpoint.h (breakpoint_address_match): New declaration.
7115 * inferior.h (stepping_past_instruction_at): New declaration.
7116 * infrun.c (struct step_over_info): New type.
7117 (step_over_info): New global.
7118 (set_step_over_info, clear_step_over_info)
7119 (stepping_past_instruction_at): New functions.
7120 (handle_inferior_event): Clear the step-over info when
7121 trap_expected is cleared.
7122 (resume): Remove now stale comment.
7123 (clear_proceed_status): Clear step-over info.
7124 (proceed): Adjust step-over handling to set or clear the step-over
7125 info instead of removing all breakpoints.
7126 (handle_signal_stop): When setting up a thread-hop, don't remove
7127 breakpoints here.
7128 (stop_stepping): Clear step-over info.
7129 (keep_going): Adjust step-over handling to set or clear step-over
7130 info and then always inserting breakpoints, instead of removing
7131 all breakpoints when stepping over one.
7132
b9f437de
PA
71332014-03-20 Pedro Alves <palves@redhat.com>
7134
7135 * infrun.c (previous_inferior_ptid): Adjust comment.
7136 (deferred_step_ptid): Delete.
7137 (infrun_thread_ptid_changed, prepare_to_proceed)
7138 (init_wait_for_inferior): Adjust.
7139 (handle_signal_stop): Delete deferred_step_ptid handling.
7140
06c868a8
JK
71412014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7142
7143 PR gdb/15358
7144 * defs.h (sync_quit_force_run): New declaration.
7145 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7146 * event-top.c (async_sigterm_handler): New declaration.
7147 (async_sigterm_token): New variable.
7148 (async_init_signals): Create also async_sigterm_token.
7149 (async_sigterm_handler): New function.
7150 (sync_quit_force_run): New variable.
7151 (handle_sigterm): Replace quit_force call by other calls.
7152 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7153
dea80df0
MR
71542014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7155
7156 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7157 offset into SPE pseudo registers.
7158
0c7e1a46
PA
71592014-03-18 Pedro Alves <palves@redhat.com>
7160
7161 PR gdb/13860
7162 * inferior.h (print_stop_event): Declare.
7163 * infrun.c (print_stop_event): New, factored out from ...
7164 (normal_stop): ... this.
7165 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7166 of bpstat_print/print_stack_frame.
7167
9c1fcd01
TT
71682014-03-17 Tom Tromey <tromey@redhat.com>
7169
7170 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7171
11aa919a
PMR
71722014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7173
7174 * ada-lang.c (decode_constrained_packed_array): Perform a
7175 minimal coercion for reference with coerce_ref instead of
7176 ada_coerce_ref.
7177
d4ccb5e0
TG
71782014-03-17 Tristan Gingold <gingold@adacore.com>
7179
7180 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7181 (darwin_solib_create_inferior_hook): Emit a warning if version
7182 is unhandled.
7183
49840f2a
UW
71842014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7185
7186 * python/py-value.c (get_field_flag): Cast flag_name argument to
7187 PyObject_GetAttrString to support Python 2.4.
7188
ed4123e5
JK
71892014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7190
7191 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7192 (Global Maintainers): Remove Jan Kratochvil.
7193
d6b64346
PA
71942014-03-14 Pedro Alves <palves@redhat.com>
7195
7196 * inferior.h (terminal_ours_for_output): Rename to ...
7197 (child_terminal_ours_for_output): ... this.
7198 (terminal_save_ours): Rename to ...
7199 (child_terminal_save_ours): ... this.
7200 (terminal_ours): Rename to ...
7201 (child_terminal_ours): ... this.
7202 (terminal_inferior): Rename to ...
7203 (child_terminal_inferior): ... this.
7204 (terminal_init_inferior): Rename to ...
7205 (child_terminal_init_inferior): ... this.
7206 (terminal_init_inferior_with_pgrp): Rename to ...
7207 (child_terminal_init_inferior_with_pgrp): ... this.
7208 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7209 (child_terminal_init_with_pgrp): ... this.
7210 (terminal_save_ours): Rename to ...
7211 (child_terminal_save_ours): ... this.
7212 (terminal_init_inferior): Rename to ...
7213 (child_terminal_init): ... this. Adjust.
7214 (terminal_inferior): Rename to ...
7215 (child_terminal_inferior): ... this.
7216 (terminal_ours_for_output): Rename to ...
7217 (child_terminal_ours_for_output): ... this. Adjust.
7218 (terminal_ours): Rename to ...
7219 (child_terminal_ours): ... this.
7220 (terminal_ours_1): Rename to ...
7221 (child_terminal_ours_1): ... this. Adjust.
7222 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7223 * windows-nat.c (do_initial_windows_stuff): Adjust.
7224 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7225 (gnu_terminal_init): ... this. Adjust.
7226 (gnu_target): Adjust.
7227 * inf-child.c (inf_child_target): Adjust.
7228
5a1e8c7a
DE
72292014-03-13 Doug Evans <xdje42@gmail.com>
7230
7231 PR guile/16612
7232 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7233 new eq?-hashtab.
7234
350e1a76
DE
72352014-03-13 Doug Evans <xdje42@gmail.com>
7236
7237 * value.c (record_latest_value): Call release_value_or_incref
7238 instead of release_value.
7239
a69900ae
PA
72402014-03-13 Pedro Alves <palves@redhat.com>
7241
7242 * procfs.c (procfs_target): Don't override to_shortname,
7243 to_longname or to_doc.
7244
5db9f0bd
PA
72452014-03-13 Pedro Alves <palves@redhat.com>
7246
7247 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7248 Unix in user visible strings.
7249
5e3a2c38
SS
72502014-03-12 Stan Shebs <stan@codesourcery.com>
7251
7252 * gdbtypes.h: Annotate comments for Doxygen, add a page
7253 block comment with some general info.
7254
8bc2fe48
PA
72552014-03-12 Pedro Alves <palves@redhat.com>
7256
7257 * infcmd.c (prepare_execution_command): New function, factored out
7258 from several execution commands.
7259 (run_command_1, continue_command, step_1, jump_command)
7260 (signal_command, until_command, advance_command, finish_command)
7261 (attach_command): Use prepare_execution_command.
7262
638c5f49
OJ
72632014-03-12 Omair Javaid <omair.javaid@linaro.org>
7264
7265 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7266 (MAX_BPTS): Define.
7267 (MAX_WPTS): Define.
7268 (struct arm_linux_thread_points): Removed.
7269 (struct arm_linux_process_info): New.
7270 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7271 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7272 (arm_linux_find_breakpoints_by_tid): Removed.
7273 (struct arch_lwp_info): New.
7274 (arm_linux_find_process_pid): New functions.
7275 (arm_linux_add_process): New functions.
7276 (arm_linux_process_info_get): New functions.
7277 (arm_linux_forget_process): New function.
7278 (arm_linux_get_debug_reg_state): New function.
7279 (struct update_registers_data): New.
7280 (update_registers_callback): New function.
7281 (arm_linux_insert_hw_breakpoint1): Updated.
7282 (arm_linux_remove_hw_breakpoint1): Updated.
7283 (arm_linux_insert_hw_breakpoint): Updated.
7284 (arm_linux_remove_hw_breakpoint): Updated.
7285 (arm_linux_insert_watchpoint): Updated.
7286 (arm_linux_remove_watchpoint): Updated.
7287 (arm_linux_new_thread): Updated.
7288 (arm_linux_prepare_to_resume): New function.
7289 (arm_linux_new_fork): New function.
7290 (_initialize_arm_linux_nat): Updated.
7291
6d03af93
PA
72922014-03-12 Pedro Alves <palves@redhat.com>
7293
7294 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7295
b3ccfe11
TT
72962014-03-12 Tom Tromey <tromey@redhat.com>
7297
7298 * inf-child.c (return_zero): New function.
7299 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7300 * aix-thread.c (aix_thread_inferior_created): New function.
7301 (aix_thread_attach): Remove.
7302 (init_aix_thread_ops): Don't set to_attach.
7303 (_initialize_aix_thread): Register inferior_created observer.
7304 * corelow.c (init_core_ops): Don't set to_attach or
7305 to_create_inferior.
7306 * exec.c (init_exec_ops): Don't set to_attach or
7307 to_create_inferior.
7308 * infcmd.c (run_command_1): Use find_run_target. Make direct
7309 target calls.
7310 (attach_command): Use find_attach_target. Make direct target
7311 calls.
7312 * record-btrace.c (init_record_btrace_ops): Don't set
7313 to_create_inferior.
7314 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7315 Remove.
7316 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7317 set to_create_inferior.
7318 * target.c (complete_target_initialization): Add assertion.
7319 (target_create_inferior): Remove.
7320 (find_default_attach, find_default_create_inferior): Remove.
7321 (find_attach_target, find_run_target): New functions.
7322 (find_default_is_async_p, find_default_can_async_p)
7323 (target_supports_non_stop, target_attach): Remove.
7324 (init_dummy_target): Don't set to_create_inferior or
7325 to_supports_non_stop.
7326 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7327 TARGET_DEFAULT_FUNC.
7328 <to_create_inferior>: Add comment.
7329 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7330 TARGET_DEFAULT_RETURN.
7331 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7332 (find_attach_target, find_run_target): Declare.
7333 (target_create_inferior): Remove.
7334 (target_has_execution_1): Update comment.
7335 (target_supports_non_stop): Remove.
7336 * target-delegates.c: Rebuild.
7337
91f83b02
PA
73382014-03-12 Pedro Alves <palves@redhat.com>
7339
7340 * inf-child.h: Update comment to not mention Unix.
7341
f1aea813
PA
73422014-03-12 Pedro Alves <palves@redhat.com>
7343
7344 * inf-child.c: Update top comment to not mention Unix. Add
7345 generic comment describing how this target is meant to be used.
7346 (inf_child_post_attach, inf_child_post_startup_inferior)
7347 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7348 Unix in comment.
7349
ee8e9165
PA
73502014-03-12 Pedro Alves <palves@redhat.com>
7351
7352 * nto-procfs.c: Include inf-child.h.
7353 (procfs_ops): Delete global.
7354 (procfs_can_run): Delete method.
7355 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7356 target pointer instead of referencing procfs_ops.
7357 (procfs_prepare_to_store): Delete.
7358 (init_procfs_ops): Delete function.
7359 (procfs_target): New function, based on init_procfs_ops, but
7360 inherit inf_child_target.
7361 (_initialize_procfs): Use procfs_target.
7362
51a9c8c5
PA
73632014-03-12 Pedro Alves <palves@redhat.com>
7364
7365 * windows-nat.c: Include inf-child.h.
7366 (windows_ops): Delete global.
7367 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7368 methods.
7369 (init_windows_ops): Delete function.
7370 (windows_target): New function, based on init_windows_ops, but
7371 inherit inf_child_target.
7372 (_initialize_windows_nat): Use windows_target. Install x86
7373 specific target methods here.
7374
c1966e26
DE
73752014-03-10 Doug Evans <xdje42@gmail.com>
7376
7377 * guile/guile.c (call_initialize_gdb_module): New function.
7378 (initialize_guile): Replace call to scm_init_guile with call to
7379 scm_with_guile.
7380
023db19c
JB
73812014-03-10 Joel Brobecker <brobecker@adacore.com>
7382
7383 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7384 in call to TYPE_CODE macro.
7385
5ec18f2b
JG
73862014-03-10 Jerome Guitton <guitton@adacore.com>
7387
8668be63
JB
7388 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7389 Resolve tagged types to full view.
5ec18f2b 7390
7d03f2eb
HZ
73912014-03-10 Hui Zhu <hui@codesourcery.com>
7392
7393 * target.h (target_insert_breakpoint): Remove "hardware" from its
7394 comments.
7395
c5164cbc
DE
73962014-03-07 Doug Evans <dje@google.com>
7397
7398 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7399
c4a3fee2
DE
74002014-03-07 Doug Evans <dje@google.com>
7401
7402 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7403 Remove unused local comp_dir_attr. Assert exactly one of
7404 stub_comp_unit_die, stub_comp_dir is non-NULL.
7405
3156469c
JB
74062014-03-07 Joel Brobecker <brobecker@adacore.com>
7407
7408 * target.h (complete_target_initialization, add_target):
7409 Add comment.
7410
c1a7b7c6
PA
74112014-03-07 Pedro Alves <palves@redhat.com>
7412
7413 * go32-nat.c: Include inf-child.h.
7414 (go32_ops): Delete global.
7415 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7416 Delete methods.
7417 (go32_create_inferior): Push the passed in target pointer instead
7418 of referencing go32_ops.
7419 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7420 (go32_target): New function, based on init_go32_ops, but inherit
7421 inf_child_target.
7422 (_initialize_go32_nat): Use go32_target. Move parts of
7423 init_go32_ops here.
7424
d3c1a85f
JB
74252014-03-06 Joel Brobecker <brobecker@adacore.com>
7426
7427 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7428 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7429 SYMBOL_VALUE_ADDRESS.
7430 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7431
5fa1d40e
YQ
74322014-03-06 Yao Qi <yao@codesourcery.com>
7433
7434 * breakpoint.c (get_tracepoint_by_number): Remove argument
7435 optional_p. All callers updated. Adjust comments. Update
7436 output message.
7437 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7438
0c13193f
YQ
74392014-03-06 Yao Qi <yao@codesourcery.com>
7440
7441 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7442 early if get_number returns zero. Use 'p' instead of 'args'.
7443
2217da06
YQ
74442014-03-06 Yao Qi <yao@codesourcery.com>
7445
7446 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7447 message.
7448
cc3da688
YQ
74492014-03-06 Yao Qi <yao@codesourcery.com>
7450
7451 PR breakpoints/16508
7452 * tracepoint.c (check_trace_running): New function.
7453 (trace_find_command): Move code to check_trace_running and
7454 call check_trace_running.
7455 (trace_find_pc_command): Likewise.
7456 (trace_find_tracepoint_command): Likewise.
7457 (trace_find_line_command): Likewise.
7458 (trace_find_range_command): Likewise.
7459 * tracepoint.h (check_trace_running): Likewise.
7460 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7461
6a5f844b
YQ
74622014-03-06 Yao Qi <yao@codesourcery.com>
7463
7464 * target.h (struct target_ops) <to_traceframe_info>: Use
7465 TARGET_DEFAULT_NORETURN (tcomplain ()).
7466 * target-delegates.c: Regenerated.
7467
0f26cec1
PA
74682014-03-05 Pedro Alves <palves@redhat.com>
7469
7470 PR gdb/16575
7471 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7472 void. Update comment.
7473 (dcache_xfer_memory): Delete.
7474 (dcache_read_memory_partial): New, based on the read bits of
7475 dcache_xfer_memory.
7476 (dcache_update): Add status parameter. Use ULONGEST for len, and
7477 adjust. Discard cache lines if the reason for the update was
7478 error.
7479 * dcache.h (dcache_xfer_memory): Delete declaration.
7480 (dcache_read_memory_partial): New declaration.
7481 (dcache_update): Update prototype.
7482 * target.c (raw_memory_xfer_partial): Update the dcache here.
7483 (memory_xfer_partial_1): Don't handle dcache writes here.
7484
b2b255bd
MF
74852014-03-05 Mike Frysinger <vapier@gentoo.org>
7486
7487 * remote-sim.c (gdbsim_load): Add const to prog.
7488
5d9cf8a4
TT
74892014-03-03 Tom Tromey <tromey@redhat.com>
7490
7491 * elfread.c (probe_key): Change to bfd_data.
7492 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7493 now per-BFD, not per-objfile.
7494 * stap-probe.c (stap_probe_destroy): Update comment.
7495 (handle_stap_probe): Allocate on the per-BFD obstack.
7496
729662a5
TT
74972014-03-03 Tom Tromey <tromey@redhat.com>
7498
7499 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7500 * breakpoint.c (create_longjmp_master_breakpoint): Use
7501 get_probe_address.
7502 (add_location_to_breakpoint, bkpt_probe_insert_location)
7503 (bkpt_probe_remove_location): Update.
7504 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7505 * elfread.c (elf_symfile_relocate_probe): Remove.
7506 (elf_probe_fns): Update.
7507 (insert_exception_resume_breakpoint): Change type of "probe"
7508 parameter to bound_probe.
7509 (check_exception_resume): Update.
7510 * objfiles.c (objfile_relocate1): Don't relocate probes.
7511 * probe.c (bound_probe_s): New typedef.
7512 (parse_probes): Use get_probe_address. Set sal's objfile.
7513 (find_probe_by_pc): Return a bound_probe.
7514 (collect_probes): Return a VEC(bound_probe_s).
7515 (compare_probes): Update.
7516 (gen_ui_out_table_header_info): Change type of "probes"
7517 parameter. Update.
7518 (info_probes_for_ops): Update.
7519 (get_probe_address): New function.
7520 (probe_safe_evaluate_at_pc): Update.
7521 * probe.h (struct probe_ops) <get_probe_address>: New field.
7522 <set_semaphore, clear_semaphore>: Add objfile parameter.
7523 (struct probe) <objfile>: Remove field.
7524 <arch>: New field.
7525 <address>: Update comment.
7526 (struct bound_probe): New.
7527 (find_probe_by_pc): Return a bound_probe.
7528 (get_probe_address): Declare.
7529 * solib-svr4.c (struct probe_and_action) <address>: New field.
7530 (hash_probe_and_action, equal_probe_and_action): Update.
7531 (register_solib_event_probe): Add address parameter.
7532 (solib_event_probe_at): Update.
7533 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7534 get_probe_address.
7535 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7536 (stap_get_probe_address): New function.
7537 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7538 (compile_probe_arg): Update.
7539 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7540 address.
7541 (handle_stap_probe): Don't relocate the probe.
7542 (stap_relocate): Remove.
7543 (stap_gen_info_probes_table_values): Update.
7544 (stap_probe_ops): Remove stap_relocate.
7545 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7546 (debug_sym_probe_fns): Update.
7547 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7548 * symtab.c (init_sal): Use memset.
7549 * symtab.h (struct symtab_and_line) <objfile>: New field.
7550 * tracepoint.c (start_tracing, stop_tracing): Update.
7551
ff887920
TT
75522014-03-03 Tom Tromey <tromey@redhat.com>
7553
7554 * probe.h (parse_probes, find_probe_by_pc)
7555 (find_probes_in_objfile): Fix comments.
7556
f0407826
DE
75572014-03-02 Doug Evans <xdje42@gmail.com>
7558
7559 * infrun.c (handle_signal_stop): Replace test for
7560 TARGET_WAITKIND_STOPPED with an assert.
7561
35e6a711
DE
75622014-03-02 Doug Evans <xdje42@gmail.com>
7563
7564 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7565
667f9d0b
DE
75662014-03-02 Doug Evans <xdje42@gmail.com>
7567
7568 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7569
dc92ace0
MK
75702014-03-01 Mark Kettenis <kettenis@gnu.org>
7571
7572 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7573
a900370f
MK
75742014-03-01 Mark Kettenis <kettenis@gnu.org>
7575
7576 * i386obsd-nat.c: Include "obsd-nat.h".
7577 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7578 add_target.
7579 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7580
b72a7981
MK
75812014-03-01 Mark Kettenis <kettenis@gnu.org>
7582
7583 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7584
96c70aba
MK
75852014-03-01 Mark Kettenis <kettenis@gnu.org>
7586
7587 * mips64obsd-nat.c: Include "obsd-nath".
7588 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7589 add_target
7590 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7591
874a80af
MK
75922014-03-01 Mark Kettenis <kettenis@gnu.org>
7593
8fd408f1
MK
7594 * amd64obsd-nat.c: Include "obsd-nat,h.
7595 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7596 add_target.
874a80af
MK
7597 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7598
9cf95373
SC
75992014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7600
7601 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7602 (find_overload_match): Update call to find_oload_champ.
7603 (find_oload_champ_namespace_loop): Likewise
7604
863e4da4
MK
76052014-02-28 Mark Kettenis <kettenis@gnu.org>
7606
025cac40
MK
7607 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7608
1ed586ce
MK
7609 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7610 * config/sparc/obsd64.mh: New file.
7611 * sparc64obsd-nat.c: New file.
7612
863e4da4
MK
7613 * obsd-nat.h: New file.
7614 * obsd-nat.c: New file.
7615 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7616 (ALLDEPFILES): Add obsd-nat.c.
7617
89de4da4
TT
76182014-02-28 Tom Tromey <tromey@redhat.com>
7619
7620 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7621 * cli-out.h (cli_ui_out_impl): Now const.
7622 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7623 * ui-out.c (struct ui_out) <impl>: Now const.
7624 (default_ui_out_impl): Now const.
7625 (ui_out_new): Make 'impl' parameter const.
7626 * ui-out.h (ui_out_new): Update.
7627
c725e7b6
MK
76282014-02-27 Mark Kettenis <kettenis@gnu.org>
7629
7630 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7631
670b46b3
MK
76322014-02-27 Mark Kettenis <kettenis@gnu.org>
7633
7634 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7635
c91550fc
JK
76362014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7637
7638 Additional PR 8882 fix.
7639 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7640
2fa0369e
PA
76412014-02-27 Pedro Alves <palves@redhat.com>
7642
7643 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7644 isn't set.
7645
d632a097
PA
76462014-02-27 Pedro Alves <palves@redhat.com>
7647
7648 PR 12702
7649 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7650 * nat/linux-waitpid.c: Include string.h.
7651 (status_to_str): Moved here and made extern.
7652 * nat/linux-waitpid.h (status_to_str): New declaration.
7653
2ebd5a35
HZ
76542014-02-27 Hui Zhu <hui@codesourcery.com>
7655
7656 PR 12702
7657 * infrun.c (ptid_match): Move ...
7658 * common/ptid.c (ptid_match): ... here.
7659 * inferior.h (ptid_match): Move ...
7660 * common/ptid.h (ptid_match): ... here.
7661
3cdd631f
MK
76622014-02-27 Mark Kettenis <kettenis@gnu.org>
7663
7664 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7665 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7666 gdb_target_obs.
7667
bee30a64
MK
76682014-02-27 Mark Kettenis <kettenis@gnu.org>
7669
7670 * obsd-tdep.c (obsd_auxv_parse): New function.
7671 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7672
7673 * gdbarch.sh (auxv_parse): New.
7674 * gdbarch.h: Regenerated.
7675 * gdbarch.c: Regenerated.
7676 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7677
7a5a839f
LC
76782014-02-26 Ludovic Courtès <ludo@gnu.org>
7679
7680 * guile/scm-value.c (gdbscm_history_append_x): New function.
7681 (value_functions): Add it.
7682
31aa7e4e
JB
76832014-02-27 Joel Brobecker <brobecker@adacore.com>
7684
7685 * dwarf2read.c (attr_value_as_address): New function.
7686 (dwarf2_find_base_address, read_call_site_scope): Use
7687 attr_value_as_address in place of DW_ADDR.
7688 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7689 the low and high addresses. Slight rework of the handling
7690 of the high pc being a constant form, and limit it to
7691 DWARF verson 4 or higher.
7692 (dwarf2_record_block_ranges): Likewise.
7693 (read_partial_die): Likewise.
7694 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7695
9b333ba3
TT
76962014-02-26 Tom Tromey <tromey@redhat.com>
7697
7698 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7699
5f6cac40
TT
77002014-02-26 Tom Tromey <tromey@redhat.com>
7701
7702 * elfread.c (elf_read_minimal_symbols): Return early if
7703 minimal symbols have already been read. Add "ei" parameter.
7704 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7705 * minsyms.c (prim_record_minimal_symbol_full): Update.
7706 * objfiles.h (struct objstats) <n_minsyms>: Move...
7707 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7708 * symmisc.c (print_objfile_statistics): Update.
7709
2750ef27
TT
77102014-02-26 Tom Tromey <tromey@redhat.com>
7711
7712 * elfread.c (elf_read_minimal_symbols): New function, from
7713 elf_symfile_read.
7714 (elf_symfile_read): Call it.
7715
34643a32
TT
77162014-02-26 Tom Tromey <tromey@redhat.com>
7717
7718 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7719 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7720 (lookup_minimal_symbol_solib_trampoline)
7721 (lookup_minimal_symbol_by_pc_section_1)
7722 (lookup_minimal_symbol_and_objfile): Update.
7723 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7724 Don't allocate a minimal symbol if minsyms have already been read.
7725 (build_minimal_symbol_hash_tables): Update.
7726 (install_minimal_symbols): Do nothing if minsyms already read.
7727 Use the per-BFD obstack.
7728 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7729 * objfiles.c (allocate_objfile): Call
7730 terminate_minimal_symbol_table later.
7731 (have_minimal_symbols): Update.
7732 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7733 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7734 Move from struct objfile.
7735 <minsyms_read>: New field.
7736 (struct objfile) <msymbols, minimal_symbol_count,
7737 msymbol_hash, msymbol_demangled_hash>: Move.
7738 (ALL_OBJFILE_MSYMBOLS): Update.
7739 * symfile.c (read_symbols): Set minsyms_read.
7740 (reread_symbols): Update.
7741 * symmisc.c (dump_objfile, dump_msymbols): Update.
7742
2273f0ac
TT
77432014-02-26 Tom Tromey <tromey@redhat.com>
7744
7745 * minsyms.c (msymbols_sort): Remove.
7746 * minsyms.h (msymbols_sort): Remove.
7747 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7748 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7749 * elfread.c (elf_symtab_read): Don't add section offsets.
7750 * xcoffread.c (record_minimal_symbol): Don't add section offset
7751 to minimal symbol address.
7752 * somread.c (text_offset, data_offset): Remove.
7753 (som_symtab_read): Don't add section offsets to minimal symbol
7754 addresses.
7755 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7756 Don't add section offsets to minimal symbols.
7757 * coffread.c (coff_symtab_read): Don't add section offsets
7758 to minimal symbol addresses.
7759 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7760 to minimal symbol addresses.
7761 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7762 section offset to minimal symbol addresses.
7763 * mdebugread.c (parse_partial_symbols): Don't add section
7764 offset to minimal symbol addresses.
7765 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7766 offset to minimal symbol addresses.
7767
77e371c0
TT
77682014-02-26 Tom Tromey <tromey@redhat.com>
7769
7770 * ada-lang.c (ada_main_name): Update.
7771 (ada_add_standard_exceptions): Update.
7772 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7773 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7774 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7775 * auxv.c (ld_so_xfer_auxv): Update.
7776 * avr-tdep.c (avr_scan_prologue): Update.
7777 * ax-gdb.c (gen_var_ref): Update.
7778 * blockframe.c (get_pc_function_start)
7779 (find_pc_partial_function_gnu_ifunc): Update.
7780 * breakpoint.c (create_overlay_event_breakpoint)
7781 (create_longjmp_master_breakpoint)
7782 (create_std_terminate_master_breakpoint)
7783 (create_exception_master_breakpoint): Update.
7784 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7785 * c-valprint.c (c_val_print): Update.
7786 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7787 * common/agent.c (agent_look_up_symbols): Update.
7788 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7789 * dwarf2loc.c (call_site_to_target_addr): Update.
7790 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7791 * elfread.c (elf_gnu_ifunc_record_cache)
7792 (elf_gnu_ifunc_resolve_by_got): Update.
7793 * findvar.c (default_read_var_value): Update.
7794 * frame.c (inside_main_func): Update.
7795 * frv-tdep.c (frv_frame_this_id): Update.
7796 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7797 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7798 Update.
7799 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7800 (hppa_hpux_find_dummy_bpaddr): Update.
7801 * hppa-tdep.c (hppa_symbol_address): Update.
7802 * infcmd.c (until_next_command): Update.
7803 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7804 Update.
7805 * linespec.c (minsym_found, add_minsym): Update.
7806 * linux-nat.c (get_signo): Update.
7807 * linux-thread-db.c (inferior_has_bug): Update.
7808 * m32c-tdep.c (m32c_return_value)
7809 (m32c_m16c_address_to_pointer): Update.
7810 * m32r-tdep.c (m32r_frame_this_id): Update.
7811 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7812 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7813 * maint.c (maintenance_translate_address): Update.
7814 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7815 (frob_address): New function.
7816 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7817 frob_address. Rename parameter to "pc_in".
7818 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7819 addresses.
7820 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7821 Update.
7822 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7823 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7824 * objc-lang.c (find_objc_msgsend): Update.
7825 * objfiles.c (objfile_relocate1): Update.
7826 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7827 * p-valprint.c (pascal_val_print): Update.
7828 * parse.c (write_exp_msymbol): Update.
7829 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7830 (ppc_elfv2_skip_entrypoint): Update.
7831 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7832 * printcmd.c (build_address_symbolic, msym_info)
7833 (address_info): Update.
7834 * proc-service.c (ps_pglobal_lookup): Update.
7835 * psymtab.c (find_pc_sect_psymtab_closer)
7836 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7837 Change msymbol parameter to bound_minimal_symbol.
7838 * ravenscar-thread.c (get_running_thread_id): Update.
7839 * remote.c (remote_check_symbols): Update.
7840 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7841 address.
7842 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7843 * solib-dsbt.c (lm_base): Update.
7844 * solib-frv.c (lm_base, main_got): Update.
7845 * solib-irix.c (locate_base): Update.
7846 * solib-som.c (som_solib_create_inferior_hook)
7847 (link_map_start): Update.
7848 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7849 * solib-svr4.c (elf_locate_base, enable_break): Update.
7850 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7851 (flush_ea_cache): Update.
7852 * stabsread.c (define_symbol, scan_file_globals): Update.
7853 * stack.c (find_frame_funname): Update.
7854 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7855 (debug_qf_find_pc_sect_symtab): Update.
7856 * symfile.c (simple_read_overlay_table)
7857 (simple_overlay_update): Update.
7858 * symfile.h (struct quick_symbol_functions)
7859 <find_pc_sect_symtab>: Change type of msymbol to
7860 bound_minimal_symbol.
7861 * symmisc.c (dump_msymbols): Update.
7862 * symtab.c (find_pc_sect_symtab_via_partial)
7863 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7864 (search_symbols, print_msymbol_info): Update.
7865 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7866 (MSYMBOL_VALUE_ADDRESS): Redefine.
7867 (BMSYMBOL_VALUE_ADDRESS): New macro.
7868 * tracepoint.c (scope_info): Update.
7869 * tui/tui-disasm.c (tui_find_disassembly_address)
7870 (tui_get_begin_asm_address): Update.
7871 * valops.c (find_function_in_inferior): Update.
7872 * value.c (value_static_field, value_fn_field): Update.
7873
3b7344d5
TT
78742014-02-26 Tom Tromey <tromey@redhat.com>
7875
7876 * ada-lang.c (ada_update_initial_language): Update.
7877 (ada_main_name, ada_has_this_exception_support): Update.
7878 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7879 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7880 * arm-tdep.c (arm_skip_stub): Update.
7881 * auxv.c (ld_so_xfer_auxv): Update.
7882 * avr-tdep.c (avr_scan_prologue): Update.
7883 * ax-gdb.c (gen_var_ref): Update.
7884 * breakpoint.c (struct breakpoint_objfile_data)
7885 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7886 type to bound_minimal_symbol.
7887 (create_overlay_event_breakpoint)
7888 (create_longjmp_master_breakpoint)
7889 (create_std_terminate_master_breakpoint)
7890 (create_exception_master_breakpoint): Update.
7891 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7892 * c-exp.y (classify_name): Update.
7893 * coffread.c (coff_symfile_read): Update.
7894 * common/agent.c (agent_look_up_symbols): Update.
7895 * d-lang.c (d_main_name): Update.
7896 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7897 * dec-thread.c (enable_dec_thread): Update.
7898 * dwarf2loc.c (call_site_to_target_addr): Update.
7899 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7900 * eval.c (evaluate_subexp_standard): Update.
7901 * findvar.c (struct minsym_lookup_data) <result>: Change type
7902 to bound_minimal_symbol.
7903 <objfile>: Remove.
7904 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7905 * frame.c (inside_main_func): Update.
7906 * frv-tdep.c (frv_frame_this_id): Update.
7907 * gcore.c (call_target_sbrk): Update.
7908 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7909 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7910 Update.
7911 * go-lang.c (go_main_name): Update.
7912 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7913 (hppa_hpux_find_import_stub_for_addr): Update.
7914 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7915 Update. Change return type.
7916 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7917 type.
7918 * jit.c (jit_breakpoint_re_set_internal): Update.
7919 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7920 Update.
7921 * linux-nat.c (get_signo): Update.
7922 * linux-thread-db.c (inferior_has_bug): Update
7923 * m32c-tdep.c (m32c_return_value)
7924 (m32c_m16c_address_to_pointer): Update.
7925 * m32r-tdep.c (m32r_frame_this_id): Update.
7926 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7927 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7928 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7929 lookup_minimal_symbol. Change return type.
7930 (lookup_minimal_symbol): Remove.
7931 (lookup_bound_minimal_symbol): Update.
7932 (lookup_minimal_symbol_text): Change return type.
7933 (lookup_minimal_symbol_solib_trampoline): Change return type.
7934 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7935 (lookup_minimal_symbol_solib_trampoline): Change return type.
7936 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7937 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7938 (value_nsstring, find_imps): Update.
7939 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7940 * p-lang.c (pascal_main_name): Update.
7941 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7942 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7943 * proc-service.c (ps_pglobal_lookup): Update.
7944 * ravenscar-thread.c (get_running_thread_msymbol): Change
7945 return type.
7946 (has_ravenscar_runtime, get_running_thread_id): Update.
7947 * remote.c (remote_check_symbols): Update.
7948 * sol-thread.c (ps_pglobal_lookup): Update.
7949 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7950 * solib-dsbt.c (lm_base): Update.
7951 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7952 Update.
7953 * solib-irix.c (locate_base): Update.
7954 * solib-som.c (som_solib_create_inferior_hook)
7955 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7956 Update.
7957 * solib-spu.c (spu_enable_break): Update.
7958 * solib-svr4.c (elf_locate_base, enable_break): Update.
7959 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7960 (flush_ea_cache): Update.
7961 * stabsread.c (define_symbol): Update.
7962 * symfile.c (simple_read_overlay_table): Update.
7963 * symtab.c (find_pc_sect_line): Update.
7964 * tracepoint.c (scope_info): Update.
7965 * tui-disasm.c (tui_get_begin_asm_address): Update.
7966 * value.c (value_static_field): Update.
7967
40c1a007
TT
79682014-02-26 Tom Tromey <tromey@redhat.com>
7969
7970 * minsyms.c (prim_record_minimal_symbol_full): Use
7971 SET_MSYMBOL_VALUE_ADDRESS.
7972 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7973 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7974 SET_MSYMBOL_VALUE_ADDRESS.
7975 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7976 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7977
efd66ac6
TT
79782014-02-26 Tom Tromey <tromey@redhat.com>
7979
7980 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7981 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7982 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7983 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7984 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7985 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7986 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7987 * ada-lang.c (ada_main_name): Update.
7988 (ada_lookup_simple_minsym): Update.
7989 (ada_make_symbol_completion_list): Update.
7990 (ada_add_standard_exceptions): Update.
7991 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7992 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7993 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7994 * arm-tdep.c (skip_prologue_function): Update.
7995 (arm_skip_stack_protector, arm_skip_stub): Update.
7996 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7997 (arm_wince_skip_main_prologue): Update.
7998 * auxv.c (ld_so_xfer_auxv): Update.
7999 * avr-tdep.c (avr_scan_prologue): Update.
8000 * ax-gdb.c (gen_var_ref): Update.
8001 * block.c (call_site_for_pc): Update.
8002 * blockframe.c (get_pc_function_start): Update.
8003 (find_pc_partial_function_gnu_ifunc): Update.
8004 * breakpoint.c (create_overlay_event_breakpoint): Update.
8005 (create_longjmp_master_breakpoint): Update.
8006 (create_std_terminate_master_breakpoint): Update.
8007 (create_exception_master_breakpoint): Update.
8008 (resolve_sal_pc): Update.
8009 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8010 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8011 Update.
8012 * c-valprint.c (c_val_print): Update.
8013 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8014 * coffread.c (coff_symfile_read): Update.
8015 * common/agent.c (agent_look_up_symbols): Update.
8016 * dbxread.c (find_stab_function_addr): Update.
8017 (end_psymtab): Update.
8018 * dwarf2loc.c (call_site_to_target_addr): Update.
8019 (func_verify_no_selftailcall): Update.
8020 (tailcall_dump): Update.
8021 (call_site_find_chain_1): Update.
8022 (dwarf_expr_reg_to_entry_parameter): Update.
8023 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8024 (elf_gnu_ifunc_resolve_by_got): Update.
8025 * f-valprint.c (info_common_command): Update.
8026 * findvar.c (read_var_value): Update.
8027 * frame.c (get_prev_frame_1): Update.
8028 (inside_main_func): Update.
8029 * frv-tdep.c (frv_skip_main_prologue): Update.
8030 (frv_frame_this_id): Update.
8031 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8032 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8033 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8034 (gnuv3_skip_trampoline): Update.
8035 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8036 (hppa64_hpux_in_solib_call_trampoline): Update.
8037 (hppa_hpux_skip_trampoline_code): Update.
8038 (hppa64_hpux_search_dummy_call_sequence): Update.
8039 (hppa_hpux_find_import_stub_for_addr): Update.
8040 (hppa_hpux_find_dummy_bpaddr): Update.
8041 * hppa-tdep.c (hppa_symbol_address)
8042 (hppa_lookup_stub_minimal_symbol): Update.
8043 * i386-tdep.c (i386_skip_main_prologue): Update.
8044 (i386_pe_skip_trampoline_code): Update.
8045 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8046 * infcall.c (get_function_name): Update.
8047 * infcmd.c (until_next_command): Update.
8048 * jit.c (jit_breakpoint_re_set_internal): Update.
8049 (jit_inferior_init): Update.
8050 * linespec.c (minsym_found): Update.
8051 (add_minsym): Update.
8052 * linux-fork.c (info_checkpoints_command): Update.
8053 * linux-nat.c (get_signo): Update.
8054 * linux-thread-db.c (inferior_has_bug): Update.
8055 * m32c-tdep.c (m32c_return_value): Update.
8056 (m32c_m16c_address_to_pointer): Update.
8057 (m32c_m16c_pointer_to_address): Update.
8058 * m32r-tdep.c (m32r_frame_this_id): Update.
8059 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8060 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8061 * maint.c (maintenance_translate_address): Update.
8062 * minsyms.c (add_minsym_to_hash_table): Update.
8063 (add_minsym_to_demangled_hash_table): Update.
8064 (msymbol_objfile): Update.
8065 (lookup_minimal_symbol): Update.
8066 (iterate_over_minimal_symbols): Update.
8067 (lookup_minimal_symbol_text): Update.
8068 (lookup_minimal_symbol_by_pc_name): Update.
8069 (lookup_minimal_symbol_solib_trampoline): Update.
8070 (lookup_minimal_symbol_by_pc_section_1): Update.
8071 (lookup_minimal_symbol_and_objfile): Update.
8072 (prim_record_minimal_symbol_full): Update.
8073 (compare_minimal_symbols): Update.
8074 (compact_minimal_symbols): Update.
8075 (build_minimal_symbol_hash_tables): Update.
8076 (install_minimal_symbols): Update.
8077 (terminate_minimal_symbol_table): Update.
8078 (find_solib_trampoline_target): Update.
8079 (minimal_symbol_upper_bound): Update.
8080 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8081 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8082 (mips_skip_pic_trampoline_code): Update.
8083 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8084 * objc-lang.c (selectors_info): Update.
8085 (classes_info): Update.
8086 (find_methods): Update.
8087 (find_imps): Update.
8088 (find_objc_msgsend): Update.
8089 * objfiles.c (objfile_relocate1): Update.
8090 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8091 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8092 * p-valprint.c (pascal_val_print): Update.
8093 * parse.c (write_exp_msymbol): Update.
8094 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8095 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8096 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8097 * printcmd.c (build_address_symbolic): Update.
8098 (sym_info): Update.
8099 (address_info): Update.
8100 * proc-service.c (ps_pglobal_lookup): Update.
8101 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8102 (find_pc_sect_psymtab): Update.
8103 * python/py-framefilter.c (py_print_frame): Update.
8104 * ravenscar-thread.c (get_running_thread_id): Update.
8105 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8106 Update.
8107 * remote.c (remote_check_symbols): Update.
8108 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8109 (rs6000_skip_trampoline_code): Update.
8110 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8111 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8112 * solib-dsbt.c (lm_base): Update.
8113 * solib-frv.c (lm_base): Update.
8114 (main_got): Update.
8115 * solib-irix.c (locate_base): Update.
8116 * solib-som.c (som_solib_create_inferior_hook): Update.
8117 (som_solib_desire_dynamic_linker_symbols): Update.
8118 (link_map_start): Update.
8119 * solib-spu.c (spu_enable_break): Update.
8120 (ocl_enable_break): Update.
8121 * solib-svr4.c (elf_locate_base): Update.
8122 (enable_break): Update.
8123 * spu-tdep.c (spu_get_overlay_table): Update.
8124 (spu_catch_start): Update.
8125 (flush_ea_cache): Update.
8126 * stabsread.c (define_symbol): Update.
8127 (scan_file_globals): Update.
8128 * stack.c (find_frame_funname): Update.
8129 (frame_info): Update.
8130 * symfile.c (simple_read_overlay_table): Update.
8131 (simple_overlay_update): Update.
8132 * symmisc.c (dump_msymbols): Update.
8133 * symtab.c (fixup_section): Update.
8134 (find_pc_sect_line): Update.
8135 (skip_prologue_sal): Update.
8136 (search_symbols): Update.
8137 (print_msymbol_info): Update.
8138 (rbreak_command): Update.
8139 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8140 (completion_list_objc_symbol): Update.
8141 (default_make_symbol_completion_list_break_on): Update.
8142 * tracepoint.c (scope_info): Update.
8143 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8144 (tui_get_begin_asm_address): Update.
8145 * valops.c (find_function_in_inferior): Update.
8146 * value.c (value_static_field): Update.
8147 (value_fn_field): Update.
8148
50e65b17
TT
81492014-02-26 Tom Tromey <tromey@redhat.com>
8150
8151 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8152 bound minimal symbols. Move code that knows about minsym
8153 table layout...
8154 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8155 function.
8156 * minsyms.h (minimal_symbol_upper_bound): Declare.
8157 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8158 minimal_symbol_upper_bound.
8159
1b588015
JB
81602014-02-27 Joel Brobecker <brobecker@adacore.com>
8161
8162 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8163 Use the type's name if its basic type does not have a tag.
8164
dbb9c2b1
JB
81652014-02-27 Joel Brobecker <brobecker@adacore.com>
8166
8167 * dwarf2read.c (read_subrange_type): Add comment.
8168
55426c9d
JB
81692014-02-27 Joel Brobecker <brobecker@adacore.com>
8170
8171 * dwarf2read.c (update_enumeration_type_from_children): New
8172 function, mostly extracted from process_structure_scope.
8173 (read_enumeration_type): Call update_enumeration_type_from_children.
8174 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8175 and flag_flag_enum fields.
8176
f2fce0ca
PA
81772014-02-26 Pedro Alves <palves@redhat.com>
8178
8179 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8180 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8181 to_xfer_partial method.
8182
7a44e40e
PA
81832014-02-26 Pedro Alves <palves@redhat.com>
8184
8185 * target.c (complete_target_initialization): Don't install
8186 default_xfer_partial as to_xfer_partial hook.
8187 (nomemory): Delete.
8188 (update_current_target): Don't INHERIT nor de_fault
8189 deprecated_xfer_memory. Delete de_fault macro.
8190 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8191 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8192 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8193 field.
8194
bd265cd0
PA
81952014-02-26 Pedro Alves <palves@redhat.com>
8196
8197 * go32-nat.c (my_write_child): New function.
8198 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8199 (go32_xfer_partial): New function.
8200 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8201 Instead install a to_xfer_partial hook.
8202
9d46c4e5
PA
82032014-02-26 Pedro Alves <palves@redhat.com>
8204
8205 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8206 to_xfer_partial helper. Rewrite.
8207 (procfs_xfer_partial): New function.
8208 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8209 Install a to_xfer_partial hook.
8210
a1583b1f
PA
82112014-02-26 Pedro Alves <palves@redhat.com>
8212
8213 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8214 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8215 (m32r_xfer_partial): New function.
8216 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8217 Install a to_xfer_partial hook.
8218
6df1b29f
PA
82192014-02-26 Pedro Alves <palves@redhat.com>
8220
8221 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8222 helper.
8223 (mips_xfer_partial): New function.
8224 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8225 hook. Install a to_xfer_partial hook.
8226
dc53a7ad
JB
82272014-02-26 Joel Brobecker <brobecker@adacore.com>
8228
8229 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8230 * gdbtypes.c (create_array_type_with_stride): New function,
8231 renaming create_array_type, but with an added parameter
8232 called "bit_stride".
8233 (create_array_type): Re-implement using
8234 create_array_type_with_stride.
8235 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8236 and DW_AT_bit_stride attributes.
8237
12ab52e9
PA
82382014-02-26 Pedro Alves <palves@redhat.com>
8239
8240 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8241 task-specific breakpoints.
8242
d16461ae
PA
82432014-02-25 Pedro Alves <palves@redhat.com>
8244
8245 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8246 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8247
a8b16220
SS
82482014-02-25 Stan Shebs <stan@codesourcery.com>
8249
8250 * defs.h: Annotate comments for Doxygen.
8251
b9e795ee
TT
82522014-02-25 Tom Tromey <tromey@redhat.com>
8253
8254 * target.h (target_ignore): Don't declare.
8255 * target.c (target_ignore): Remove.
8256
849c862e
JK
82572014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8258
8259 PR gdb/16626
8260 * auto-load.c (auto_load_objfile_script_1): Change filename to
8261 debugfile.
8262
475109d8
JB
82632014-02-25 Joel Brobecker <brobecker@adacore.com>
8264
8265 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8266 documentation. Adjust prototype to match the target_ops
8267 to_xfer_partial method. Adjust implementation accordingly.
8268
e186c3bd
HZ
82692014-02-25 Hui Zhu <hui@codesourcery.com>
8270
8271 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8272 to_traceframe_info.
8273
6d451942
KB
82742014-02-25 Kevin Buettner <kevinb@redhat.com>
8275
041ab8b4 8276 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
8277 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8278 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8279 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8280 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8281 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8282 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8283 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8284 New constants.
8285 (rl78_register_type): Use a data pointer type for SP and
8286 new pseudo registers mentioned above. Use a 16 bit integer
8287 type for all other register pairs.
8288 (rl78_register_name, rl78_g10_register_name): Update for
8289 new pseudo registers.
8290 (rl78_pseudo_register_read): Likewise.
8291 (rl78_pseudo_register_write): Likewise.
8292 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8293 to the newly added pseudo registers.
8294
eddf0bae
DE
82952014-02-24 Doug Evans <dje@google.com>
8296
8297 * value.c (record_latest_value): Fix comment.
8298 * printcmd.c (print_command_1): Remove code to handle -1 return from
8299 record_latest_value.
8300
e96027e0
PA
83012014-02-24 Pedro Alves <palves@redhat.com>
8302
8303 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8304 deprecated_xfer_memory hook.
8305 (procfs_xfer_partial): Call procfs_xfer_memory instead
8306 of the deprecated_xfer_memory target hook.
8307 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8308 helper.
8309
0837c976
YZ
83102014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8311
8312 * windows-nat.c (windows_xfer_shared_libraries): Return
8313 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8314 requested object is TARGET_OBJECT_LIBRARIES.
8315
bc113b4e
YQ
83162014-02-24 Yao Qi <yao@codesourcery.com>
8317
8318 * target.h (enum target_xfer_status)
8319 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8320 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8321 explicitly. New.
8322 * corefile.c (memory_error_message): User updated.
8323 * exec.c (section_table_read_available_memory): Likewise.
8324 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8325 * target.c (target_xfer_status_to_string): Likewise.
8326 (raw_memory_xfer_partial): Likewise.
8327 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8328 * valops.c (read_value_memory): Likewise.
8329 * exec.h: Update comments.
8330
01cb8804
YQ
83312014-02-24 Yao Qi <yao@codesourcery.com>
8332
8333 * target.c (target_xfer_status_to_string): Rename argument err
8334 to status.
8335 * target.h (target_xfer_status_to_string): Update declaration.
8336 Replace target_xfer_error_to_string with
8337 target_xfer_status_to_string in comment.
8338
93063aa6
YQ
83392014-02-24 Yao Qi <yao@codesourcery.com>
8340
8341 * mips-linux-nat.c (super_close): Update its type.
8342 (mips_linux_close): Pass 'self' to super_close.
8343
5c328c05
YQ
83442014-02-24 Yao Qi <yao@codesourcery.com>
8345
8346 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8347 * corefile.c (read_memory): Adjusted.
8348 * target.c (target_write_with_progress): Adjusted.
8349
f73023dd
YQ
83502014-02-23 Yao Qi <yao@codesourcery.com>
8351
8352 Revert two patches:
8353
8354 2013-10-25 Yao Qi <yao@codesourcery.com>
8355
8356 * remote.c (remote_traceframe_info): Return early if
8357 traceframe is not selected.
8358
8359 2013-07-19 Yao Qi <yao@codesourcery.com>
8360
8361 * target.c (update_current_target): Change the default action
8362 of 'to_traceframe_info' from tcomplain to return_zero.
8363 * target.h (struct target_ops) <to_traceframe_info>: Add more
8364 comments.
8365
5a2eb0ef
YQ
83662014-02-23 Yao Qi <yao@codesourcery.com>
8367
8368 * valops.c (read_value_memory): Rewrite it. Call
8369 target_xfer_partial in a loop.
8370 * exec.h (section_table_available_memory): Remove declaration.
8371 Move comments to ...
8372 * exec.c (section_table_available_memory): ... here. Make it
8373 static.
8374
1ee79381
YQ
83752014-02-23 Yao Qi <yao@codesourcery.com>
8376
8377 * exec.c (section_table_read_available_memory): New function.
8378 * exec.h (section_table_read_available_memory): Declare.
8379 * ctf.c (ctf_xfer_partial): Call
8380 section_table_read_available_memory.
8381 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8382
1ca49d37
YQ
83832014-02-23 Yao Qi <yao@codesourcery.com>
8384
8385 * ctf.c (ctf_xfer_partial): Move code to ...
8386 * exec.c (exec_read_partial_read_only): ... it. New function.
8387 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8388 * tracefile.c: Include "exec.h".
8389 * exec.h (exec_read_partial_read_only): Declare.
8390
a283690e
YQ
83912014-02-23 Yao Qi <yao@codesourcery.com>
8392
8393 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8394 (tfile_has_memory): Remove.
8395 (init_tfile_ops): Don't set fields to_has_all_memory and
8396 to_has_memory of tfile_ops.
8397 * tracefile.c (tracefile_has_all_memory): New function.
8398 (tracefile_has_memory): New function.
8399 (init_tracefile_ops): Initialize fields to_has_all_memory and
8400 to_has_memory of 'ops'.
8401
12e03cd0
YQ
84022014-02-23 Yao Qi <yao@codesourcery.com>
8403
8404 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8405 (ctf_thread_alive, ctf_get_trace_status): Remove.
8406 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8407 init_tracefile_ops.
8408 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8409 (tfile_has_stack, tfile_has_registers): Remove.
8410 (tfile_thread_alive): Remove.
8411 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8412 init_tracefile_ops.
8413 * tracefile.c (tracefile_has_stack): New function.
8414 (tracefile_has_registers): New function.
8415 (tracefile_thread_alive): New function.
8416 (tracefile_get_trace_status): New function.
8417 (init_tracefile_ops): New function.
8418 * tracefile.h (init_tracefile_ops): Declare.
8419
11395323
YQ
84202014-02-23 Yao Qi <yao@codesourcery.com>
8421
8422 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8423 (O_LARGEFILE): Likewise.
8424 (tfile_ops): Likewise.
8425 (TRACE_HEADER_SIZE): Likewise.
8426 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8427 (cur_data_size): Likewise.
8428 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8429 (tfile_close, tfile_files_info): Likewise.
8430 (tfile_get_trace_status): Likewise.
8431 (tfile_get_tracepoint_status): Likewise.
8432 (tfile_get_traceframe_address): Likewise.
8433 (tfile_trace_find, match_blocktype): Likewise.
8434 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8435 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8436 (tfile_get_trace_state_variable_value): Likewise.
8437 (tfile_has_all_memory, tfile_has_memory): Likewise.
8438 (tfile_has_stack, tfile_has_registers): Likewise.
8439 (tfile_thread_alive, build_traceframe_info): Likewise.
8440 (tfile_traceframe_info, init_tfile_ops): Likewise.
8441 (_initialize_tracepoint): Don't call init_tfile_ops
8442 and add_target_with_completer.
8443 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8444 exec.h, completer.h and filenames.h.
8445 (_initialize_tracefile_tfile): New function.
8446
7951c4eb
YQ
84472014-02-23 Yao Qi <yao@codesourcery.com>
8448
8449 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8450 tracefile-tfile.o.
8451 (HFILES_NO_SRCDIR): Add tracefile.h.
8452 * ctf.c: Include "tracefile.h".
8453 * tracefile.h: New file.
8454 * tracefile.c: New file
8455 * tracefile-tfile.c: New file.
8456 * tracepoint.c: Include "tracefile.h".
8457 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8458 (stop_reason_names): Add const.
8459 (trace_file_writer_xfree): Move it to tracefile.c.
8460 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8461 (trace_save_ctf): Likewise.
8462 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8463 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8464 (tfile_write_header, tfile_write_regblock_type): Likewise.
8465 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8466 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8467 (tfile_write_raw_data, tfile_end): Likewise.
8468 (tfile_trace_file_writer_new): Likewise.
8469 (free_uploaded_tp): Make it extern.
8470 (free_uploaded_tsv): Make it extern.
8471 (_initialize_tracepoint): Move code to register command 'tsave'
8472 to tracefile.c.
8473 * tracepoint.h (stop_reason_names): Declare.
8474 (struct trace_frame_write_ops): Move it to tracefile.h.
8475 (struct trace_file_write_ops): Likewise.
8476 (struct trace_file_writer): Likewise.
8477 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8478
184cd072
JK
84792014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8480
8481 PR gdb/16594
8482 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8483 process name.
8484 (get_cores_used_by_process): New parameter num_cores, use it.
8485 (linux_xfer_osdata_processes): Pass num_cores to it.
8486 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8487 process name.
8488
c63528fc
AK
84892014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8490
8491 * target.c (memory_xfer_partial): Fix length arg in call to
8492 breakpoint_xfer_memory.
8493
d7b30f67
SDJ
84942014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8495
8496 PR tdep/16397
8497 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8498 number comes after the + or - signs. Adjust length of register
8499 name to be extracted.
8500
8838afaf
TT
85012014-02-20 Tom Tromey <tromey@redhat.com>
8502
8503 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8504 (ada_varobj_ops): Mark "extern".
8505
05227d14
TT
85062014-02-20 Tom Tromey <tromey@redhat.com>
8507
8508 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8509
1254eefc
DE
85102014-02-20 Doug Evans <xdje42@gmail.com>
8511
8512 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8513 All callers updated.
8514 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8515 All callers updated.
8516 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8517 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8518
adde2bff
DE
85192014-02-20 lin zuojian <manjian2006@gmail.com>
8520 Joel Brobecker <brobecker@adacore.com>
8521 Doug Evans <xdje42@gmail.com>
8522
8523 PR symtab/16581
8524 * dwarf2read.c (struct die_info): New member in_process.
8525 (reset_die_in_process): New function.
8526 (process_die): Set it at the start, reset when returning.
8527 (inherit_abstract_dies): Only call process_die if origin_child_die
8528 not already being processed.
8529
3be75f87
JB
85302014-02-20 Joel Brobecker <brobecker@adacore.com>
8531
8532 * windows-nat.c (handle_unload_dll): Add function documentation.
8533 (do_initial_windows_stuff): Add comment explaining why we wait
8534 until after inferior initialization has finished before
8535 processing all DLLs.
8536
47f7ffdb
JB
85372014-02-20 Joel Brobecker <brobecker@adacore.com>
8538
8539 * windows-nat.c (get_module_name): Delete.
8540 (windows_get_exec_module_filename): New function, mostly
8541 inspired from get_module_name.
8542 (windows_pid_to_exec_file): Replace call to get_module_name
8543 by call to windows_get_exec_module_filename.
8544
1cd9feab
JB
85452014-02-20 Joel Brobecker <brobecker@adacore.com>
8546
8547 * windows-nat.c (handle_load_dll): Rewrite this function's
8548 introductory comment. Remove code using get_module_name
8549 to get the DLL's name.
8550
ea39ad35
JB
85512014-02-20 Joel Brobecker <brobecker@adacore.com>
8552
8553 * windows-nat.c (get_windows_debug_event): Ignore
8554 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8555 if windows_initialization_done == 0.
8556 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8557 Adjust implementation to always load all DLLs.
8558 (do_initial_windows_stuff): Replace call to
8559 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8560
95060284
JB
85612014-02-20 Joel Brobecker <brobecker@adacore.com>
8562
8563 * windows-nat.c (_initialize_windows_nat): Deprecate the
8564 "dll-symbols" command. Turn the "add-shared-symbol-files"
8565 and "assf" aliases into commands, and deprecate them as well.
8566 * NEWS: Add entry explaining that "dll-symbols" and its two
8567 aliases are now deprecated.
8568
8d4fdb12
JB
85692014-02-20 Joel Brobecker <brobecker@adacore.com>
8570
8571 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8572 new-line in debug string. Remove trailing spaces.
8573
1b281443
SS
85742014-02-19 Stan Shebs <stan@codesourcery.com>
8575
8576 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8577
f7bd0f78
SC
85782014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8579
8580 * NEWS: Add entry for the new feature
8581 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8582 and class values.
8583
399ebc3d
SS
85842014-02-19 Stan Shebs <stan@codesourcery.com>
8585
8586 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8587
c658158d
PA
85882014-02-19 Pedro Alves <palves@redhat.com>
8589
8590 * common/ptid.h (struct ptid): Mention that process_stratum
8591 targets should prefer ptid.lwp.
8592
ba348170
PA
85932014-02-19 Pedro Alves <palves@redhat.com>
8594
8595 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8596 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8597 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8598 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8599 store remote thread ids rather than ptid.tid.
8600 (_initialize_remote): Adjust.
8601
ac01945b
TT
86022014-02-19 Tom Tromey <tromey@redhat.com>
8603
8604 * target.c (target_get_unwinder): Rewrite.
8605 (target_get_tailcall_unwinder): Rewrite.
8606 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8607 (record_btrace_to_get_tailcall_unwinder): New function.
8608 (init_record_btrace_ops): Update.
8609 * target.h (struct target_ops) <to_get_unwinder,
8610 to_get_tailcall_unwinder>: Now function pointers. Use
8611 TARGET_DEFAULT_RETURN.
8612
8476dc92
TT
86132014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8616 argument.
8617 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8618
c0eca49f
TT
86192014-02-19 Tom Tromey <tromey@redhat.com>
8620
8621 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8622 directly.
8623 * target-delegates.c: Rebuild.
8624 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8625 TARGET_DEFAULT_FUNC.
8626 * target.c (default_target_decr_pc_after_break): Rename from
8627 forward_target_decr_pc_after_break. Simplify.
8628 (target_decr_pc_after_break): Rely on delegation.
8629
596b6b39
TT
86302014-02-19 Tom Tromey <tromey@redhat.com>
8631
8632 * target.c (update_current_target): Do not INHERIT to_doc or
8633 to_magic. Do not de_fault to_open or to_close.
8634
b427c1bc
TT
86352014-02-19 Tom Tromey <tromey@redhat.com>
8636
8637 * gcore.h (objfile_find_memory_regions): Declare.
8638 * gcore.c (objfile_find_memory_regions): No longer static. Add
8639 "self" argument.
8640 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8641 * exec.c: Include gcore.h.
8642 (exec_set_find_memory_regions): Remove.
8643 (exec_find_memory_regions): Remove.
8644 (exec_do_find_memory_regions): Remove.
8645 (init_exec_ops): Update.
8646 * defs.h (exec_set_find_memory_regions): Remove.
8647
9b144037
TT
86482014-02-19 Tom Tromey <tromey@redhat.com>
8649
8650 * target-delegates.c: Rebuild.
8651 * target.h (struct target_ops) <to_extra_thread_info,
8652 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8653 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8654 not 0, in TARGET_DEFAULT_RETURN.
8655
555bbdeb
TT
86562014-02-19 Tom Tromey <tromey@redhat.com>
8657
8658 * target.c (complete_target_initialization): Remove casts. Use
8659 return_zero_has_execution.
8660 (return_zero): Add "ignore" argument.
8661 (return_zero_has_execution): New function.
8662 (init_dummy_target): Remove casts. Use
8663 return_zero_has_execution.
8664
be4ddd36
TT
86652014-02-19 Tom Tromey <tromey@redhat.com>
8666
8667 * target.c (update_current_target): Update comments. Do not
8668 INHERIT to_stratum.
8669
2117c711
TT
86702014-02-19 Tom Tromey <tromey@redhat.com>
8671
8672 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8673 needed.
8674 * corelow.c (core_read_description): Delegate when needed.
8675 * remote.c (remote_read_description): Delegate when needed.
8676 * target-delegates.c: Rebuild.
8677 * target.c (target_read_description): Rewrite.
8678 * target.h (struct target_ops) <to_read_description>: Update
8679 comment. Use TARGET_DEFAULT_RETURN.
8680
e88ef65c
TT
86812014-02-19 Tom Tromey <tromey@redhat.com>
8682
8683 * target-delegates.c: Rebuild.
8684 * target.c (update_current_target): Don't inherit or default
8685 to_can_run.
8686 (find_default_run_target): Check against delegate_can_run.
8687 * target.h (struct target_ops) <to_can_run>: Use
8688 TARGET_DEFAULT_RETURN.
8689
86a0854a
TT
86902014-02-19 Tom Tromey <tromey@redhat.com>
8691
8692 * target-delegates.c: Rebuild.
8693 * target.c (target_disconnect): Unconditionally delegate.
8694 * target.h (struct target_ops) <to_disconnect>: Use
8695 TARGET_DEFAULT_NORETURN.
8696
ee97f592
TT
86972014-02-19 Tom Tromey <tromey@redhat.com>
8698
8699 * record.c (record_stop): Unconditionally delegate.
8700 * target-delegates.c: Rebuild.
8701 * target.c (target_stop_recording): Unconditionally delegate.
8702 * target.h (struct target_ops) <to_stop_recording>: Use
8703 TARGET_DEFAULT_IGNORE.
8704
6dc7fcf4
TT
87052014-02-19 Tom Tromey <tromey@redhat.com>
8706
8707 * target-delegates.c: Rebuild.
8708 * target.c (target_enable_btrace): Unconditionally delegate.
8709 * target.h (struct target_ops) <to_enable_btrace>: Use
8710 TARGET_DEFAULT_NORETURN.
8711
eb5b20d4
TT
87122014-02-19 Tom Tromey <tromey@redhat.com>
8713
8714 * target-delegates.c: Rebuild.
8715 * target.c (target_read_btrace): Unconditionally delegate.
8716 * target.h (struct target_ops) <to_read_btrace>: Use
8717 TARGET_DEFAULT_NORETURN.
8718
9ace480d
TT
87192014-02-19 Tom Tromey <tromey@redhat.com>
8720
8721 * target-delegates.c: Rebuild.
8722 * target.c (target_teardown_btrace): Unconditionally delegate.
8723 * target.h (struct target_ops) <to_teardown_btrace>: Use
8724 TARGET_DEFAULT_NORETURN.
8725
8dc292d3
TT
87262014-02-19 Tom Tromey <tromey@redhat.com>
8727
8728 * target-delegates.c: Rebuild.
8729 * target.c (target_disable_btrace): Unconditionally delegate.
8730 * target.h (struct target_ops) <to_disable_btrace>: Use
8731 TARGET_DEFAULT_NORETURN.
8732
58a5184e
TT
87332014-02-19 Tom Tromey <tromey@redhat.com>
8734
8735 * target-delegates.c: Rebuild.
8736 * target.c (default_search_memory): New function.
8737 (simple_search_memory): Update comment.
8738 (target_search_memory): Unconditionally delegate.
8739 * target.h (struct target_ops) <to_search_memory>: Use
8740 TARGET_DEFAULT_FUNC.
8741
8de71aab
TT
87422014-02-19 Tom Tromey <tromey@redhat.com>
8743
8744 * auxv.c (default_auxv_parse): No longer static.
8745 (target_auxv_parse): Unconditionally delegate.
8746 * auxv.h (default_auxv_parse): Declare.
8747 * target-delegates.c: Rebuild.
8748 * target.c: Include auxv.h.
8749 * target.h (struct target_ops) <to_auxv_parse>: Use
8750 TARGET_DEFAULT_FUNC.
8751
6b2c5a57
TT
87522014-02-19 Tom Tromey <tromey@redhat.com>
8753
8754 * target-delegates.c: Rebuild.
8755 * target.c (target_memory_map): Unconditionally delegate.
8756 * target.h (struct target_ops) <to_memory_map>: Use
8757 TARGET_DEFAULT_RETURN.
8758
cbffc065
TT
87592014-02-19 Tom Tromey <tromey@redhat.com>
8760
8761 * target-delegates.c: Rebuild.
8762 * target.c (target_thread_alive): Unconditionally delegate.
8763 * target.h (struct target_ops) <to_thread_alive>: Use
8764 TARGET_DEFAULT_RETURN.
8765
f09e2107
TT
87662014-02-19 Tom Tromey <tromey@redhat.com>
8767
8768 * target-delegates.c: Rebuild.
8769 * target.c (target_save_record): Unconditionally delegate.
8770 * target.h (struct target_ops) <to_save_record>: Use
8771 TARGET_DEFAULT_NORETURN.
8772
07366925
TT
87732014-02-19 Tom Tromey <tromey@redhat.com>
8774
8775 * target-delegates.c: Rebuild.
8776 * target.c (target_delete_record): Unconditionally delegate.
8777 * target.h (struct target_ops) <to_delete_record>: Use
8778 TARGET_DEFAULT_NORETURN.
8779
dd2e9d25
TT
87802014-02-19 Tom Tromey <tromey@redhat.com>
8781
8782 * target-delegates.c: Rebuild.
8783 * target.c (target_record_is_replaying): Unconditionally
8784 delegate.
8785 * target.h (struct target_ops) <to_record_is_replaying>: Use
8786 TARGET_DEFAULT_RETURN.
8787
671e76cc
TT
87882014-02-19 Tom Tromey <tromey@redhat.com>
8789
8790 * target-delegates.c: Rebuild.
8791 * target.c (target_goto_record_begin): Unconditionally delegate.
8792 * target.h (struct target_ops) <to_goto_record_begin>: Use
8793 TARGET_DEFAULT_NORETURN.
8794
e9179bb3
TT
87952014-02-19 Tom Tromey <tromey@redhat.com>
8796
8797 * target-delegates.c: Rebuild.
8798 * target.c (target_goto_record_end): Unconditionally delegate.
8799 * target.h (struct target_ops) <to_goto_record_end>: Use
8800 TARGET_DEFAULT_NORETURN.
8801
05969c84
TT
88022014-02-19 Tom Tromey <tromey@redhat.com>
8803
8804 * target-delegates.c: Rebuild.
8805 * target.c (target_goto_record): Unconditionally delegate.
8806 * target.h (struct target_ops) <to_goto_record>: Use
8807 TARGET_DEFAULT_NORETURN.
8808
3679abfa
TT
88092014-02-19 Tom Tromey <tromey@redhat.com>
8810
8811 * target-delegates.c: Rebuild.
8812 * target.c (target_insn_history): Unconditionally delegate.
8813 * target.h (struct target_ops) <to_insn_history>: Use
8814 TARGET_DEFAULT_NORETURN.
8815
8444ab58
TT
88162014-02-19 Tom Tromey <tromey@redhat.com>
8817
8818 * target-delegates.c: Rebuild.
8819 * target.c (target_insn_history_from): Unconditionally delegate.
8820 * target.h (struct target_ops) <to_insn_history_from>: Use
8821 TARGET_DEFAULT_NORETURN.
8822
c29302cc
TT
88232014-02-19 Tom Tromey <tromey@redhat.com>
8824
8825 * target-delegates.c: Rebuild.
8826 * target.c (target_insn_history_range): Unconditionally delegate.
8827 * target.h (struct target_ops) <to_insn_history_range>: Use
8828 TARGET_DEFAULT_NORETURN.
8829
170049d4
TT
88302014-02-19 Tom Tromey <tromey@redhat.com>
8831
8832 * target-delegates.c: Rebuild.
8833 * target.c (target_call_history): Unconditionally delegate.
8834 * target.h (struct target_ops) <to_call_history>: Use
8835 TARGET_DEFAULT_NORETURN.
8836
16fc27d6
TT
88372014-02-19 Tom Tromey <tromey@redhat.com>
8838
8839 * target-delegates.c: Rebuild.
8840 * target.c (target_call_history_from): Unconditionally delegate.
8841 * target.h (struct target_ops) <to_call_history_from>: Use
8842 TARGET_DEFAULT_NORETURN.
8843
115d9817
TT
88442014-02-19 Tom Tromey <tromey@redhat.com>
8845
8846 * target-delegates.c: Rebuild.
8847 * target.c (target_call_history_range): Unconditionally delegate.
8848 * target.h (struct target_ops) <to_call_history_range>: Use
8849 TARGET_DEFAULT_NORETURN.
8850
eb276a6b
TT
88512014-02-19 Tom Tromey <tromey@redhat.com>
8852
8853 * target-delegates.c: Rebuild.
8854 * target.c (target_verify_memory): Unconditionally delegate.
8855 * target.h (struct target_ops) <to_verify_memory>: Use
8856 TARGET_DEFAULT_NORETURN.
8857
9e538d0d
TT
88582014-02-19 Tom Tromey <tromey@redhat.com>
8859
8860 * target-delegates.c: Rebuild.
8861 * target.c (target_core_of_thread): Unconditionally delegate.
8862 * target.h (struct target_ops) <to_core_of_thread>: Use
8863 TARGET_DEFAULT_RETURN.
8864
f6fb2925
TT
88652014-02-19 Tom Tromey <tromey@redhat.com>
8866
8867 * target-delegates.c: Rebuild.
8868 * target.c (target_flash_done): Unconditionally delegate.
8869 * target.h (struct target_ops) <to_flash_done>: Use
8870 TARGET_DEFAULT_NORETURN.
8871
e8a6c6ac
TT
88722014-02-19 Tom Tromey <tromey@redhat.com>
8873
8874 * target-delegates.c: Rebuild.
8875 * target.c (target_flash_erase): Unconditionally delegate.
8876 * target.h (struct target_ops) <to_flash_erase>: Use
8877 TARGET_DEFAULT_NORETURN.
8878
7e35c012
TT
88792014-02-19 Tom Tromey <tromey@redhat.com>
8880
8881 * target-delegates.c: Rebuild.
8882 * target.c (target_get_section_table): Unconditionally delegate.
8883 * target.h (struct target_ops) <to_get_section_table>: Use
8884 TARGET_DEFAULT_RETURN.
8885
770234d3
TT
88862014-02-19 Tom Tromey <tromey@redhat.com>
8887
8888 * target-delegates.c: Rebuild.
8889 * target.c (target_pid_to_str): Unconditionally delegate.
8890 (init_dummy_target): Don't initialize to_pid_to_str.
8891 (default_pid_to_str): Rename from dummy_pid_to_str.
8892 * target.h (struct target_ops) <to_pid_to_str>: Use
8893 TARGET_DEFAULT_FUNC.
8894
09b0dc2b
TT
88952014-02-19 Tom Tromey <tromey@redhat.com>
8896
8897 * target-delegates.c: Rebuild.
8898 * target.c (target_find_new_threads): Unconditionally delegate.
8899 * target.h (struct target_ops) <to_find_new_threads>: Use
8900 TARGET_DEFAULT_RETURN.
8901
7d4f8efa
TT
89022014-02-19 Tom Tromey <tromey@redhat.com>
8903
8904 * target-delegates.c: Rebuild.
8905 * target.c (target_program_signals): Unconditionally delegate.
8906 * target.h (struct target_ops) <to_program_signals>: Use
8907 TARGET_DEFAULT_IGNORE.
8908
035cad7f
TT
89092014-02-19 Tom Tromey <tromey@redhat.com>
8910
8911 * target-delegates.c: Rebuild.
8912 * target.c (target_pass_signals): Unconditionally delegate.
8913 * target.h (struct target_ops) <to_pass_signals>: Use
8914 TARGET_DEFAULT_IGNORE.
8915
8d657035
TT
89162014-02-19 Tom Tromey <tromey@redhat.com>
8917
8918 * target-delegates.c: Rebuild.
8919 * target.c (default_mourn_inferior): New function.
8920 (target_mourn_inferior): Unconditionally delegate.
8921 * target.h (struct target_ops) <to_mourn_inferior>: Use
8922 TARGET_DEFAULT_FUNC.
8923
098dba18
TT
89242014-02-19 Tom Tromey <tromey@redhat.com>
8925
8926 * target-delegates.c: Rebuild.
8927 * target.c (default_follow_fork): New function.
8928 (target_follow_fork): Unconditionally delegate.
8929 * target.h (struct target_ops) <to_follow_fork>: Use
8930 TARGET_DEFAULT_FUNC.
8931
423a4807
TT
89322014-02-19 Tom Tromey <tromey@redhat.com>
8933
8934 * target-delegates.c: Rebuild.
8935 * target.c (target_kill): Unconditionally delegate.
8936 * target.h (struct target_ops) <to_kill>: Use
8937 TARGET_DEFAULT_NORETURN.
8938
6c7e5e5c
TT
89392014-02-19 Tom Tromey <tromey@redhat.com>
8940
8941 * target-delegates.c: Rebuild.
8942 * target.c (target_masked_watch_num_registers): Unconditionally
8943 delegate.
8944 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8945 Use TARGET_DEFAULT_RETURN.
8946
8b1c364c
TT
89472014-02-19 Tom Tromey <tromey@redhat.com>
8948
8949 * target-delegates.c: Rebuild.
8950 * target.c (target_remove_mask_watchpoint): Unconditionally
8951 delegate.
8952 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8953 TARGET_DEFAULT_RETURN.
8954
cd4ae029
TT
89552014-02-19 Tom Tromey <tromey@redhat.com>
8956
8957 * target-delegates.c: Rebuild.
8958 * target.c (target_insert_mask_watchpoint): Unconditionally
8959 delegate.
8960 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8961 TARGET_DEFAULT_RETURN.
8962
a134316b
TT
89632014-02-19 Tom Tromey <tromey@redhat.com>
8964
8965 * target-delegates.c: Rebuild.
8966 * target.c (target_ranged_break_num_registers): Unconditionally
8967 delegate.
8968 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8969 Use TARGET_DEFAULT_RETURN.
8970
ad5989bd
TT
89712014-02-19 Tom Tromey <tromey@redhat.com>
8972
8973 * target-delegates.c: Rebuild.
8974 * target.c (target_fetch_registers): Unconditionally delegate.
8975 * target.h (struct target_ops) <to_fetch_registers>: Use
8976 TARGET_DEFAULT_NORETURN.
8977
46ee7e8d
TT
89782014-02-19 Tom Tromey <tromey@redhat.com>
8979
8980 * target-delegates.c: Rebuild.
8981 * target.c (update_current_target): Don't inherit or default
8982 to_stop.
8983 * target.h (struct target_ops) <to_stop>: Use
8984 TARGET_DEFAULT_IGNORE.
8985
843f59ed
TT
89862014-02-19 Tom Tromey <tromey@redhat.com>
8987
8988 * target-delegates.c: Rebuild.
8989 * target.c (update_current_target): Don't inherit or default
8990 to_can_run_breakpoint_commands.
8991 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8992 Use TARGET_DEFAULT_RETURN.
8993
ccfde2a0
TT
89942014-02-19 Tom Tromey <tromey@redhat.com>
8995
8996 * target-delegates.c: Rebuild.
8997 * target.c (update_current_target): Don't inherit or default
8998 to_supports_evaluation_of_breakpoint_conditions.
8999 * target.h (struct target_ops)
9000 <to_supports_evaluation_of_breakpoint_conditions>: Use
9001 TARGET_DEFAULT_RETURN.
9002
0de91722
TT
90032014-02-19 Tom Tromey <tromey@redhat.com>
9004
9005 * target-delegates.c: Rebuild.
9006 * target.c (update_current_target): Don't inherit or default
9007 to_augmented_libraries_svr4_read.
9008 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9009 Use TARGET_DEFAULT_RETURN.
9010
9a7d8b48
TT
90112014-02-19 Tom Tromey <tromey@redhat.com>
9012
9013 * target-delegates.c: Rebuild.
9014 * target.c (update_current_target): Don't inherit or default
9015 to_can_use_agent.
9016 * target.h (struct target_ops) <to_can_use_agent>: Use
9017 TARGET_DEFAULT_RETURN.
9018
d9db5b21
TT
90192014-02-19 Tom Tromey <tromey@redhat.com>
9020
9021 * target-delegates.c: Rebuild.
9022 * target.c (update_current_target): Don't inherit or default
9023 to_use_agent.
9024 * target.h (struct target_ops) <to_use_agent>: Use
9025 TARGET_DEFAULT_NORETURN.
9026
92155eeb
TT
90272014-02-19 Tom Tromey <tromey@redhat.com>
9028
9029 * target-delegates.c: Rebuild.
9030 * target.c (update_current_target): Don't inherit or default
9031 to_traceframe_info.
9032 (return_null): Remove.
9033 * target.h (struct target_ops) <to_traceframe_info>: Use
9034 TARGET_DEFAULT_RETURN.
9035
d6522a22
TT
90362014-02-19 Tom Tromey <tromey@redhat.com>
9037
9038 * target-delegates.c: Rebuild.
9039 * target.c (update_current_target): Don't inherit or default
9040 to_static_tracepoint_markers_by_strid.
9041 * target.h (struct target_ops)
9042 <to_static_tracepoint_markers_by_strid>: Use
9043 TARGET_DEFAULT_NORETURN.
9044
4c3e4425
TT
90452014-02-19 Tom Tromey <tromey@redhat.com>
9046
9047 * target-delegates.c: Rebuild.
9048 * target.c (update_current_target): Don't inherit or default
9049 to_static_tracepoint_marker_at.
9050 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9051 Use TARGET_DEFAULT_RETURN.
9052
dcd6917f
TT
90532014-02-19 Tom Tromey <tromey@redhat.com>
9054
9055 * target-delegates.c: Rebuild.
9056 * target.c (update_current_target): Don't inherit or default
9057 to_set_permissions.
9058 * target.h (struct target_ops) <to_set_permissions>: Use
9059 TARGET_DEFAULT_IGNORE.
9060
22bcceee
TT
90612014-02-19 Tom Tromey <tromey@redhat.com>
9062
9063 * target-delegates.c: Rebuild.
9064 * target.c (update_current_target): Don't inherit or default
9065 to_get_tib_address.
9066 * target.h (struct target_ops) <to_get_tib_address>: Use
9067 TARGET_DEFAULT_NORETURN.
9068
8586ccaa
TT
90692014-02-19 Tom Tromey <tromey@redhat.com>
9070
9071 * target-delegates.c: Rebuild.
9072 * target.c (update_current_target): Don't inherit or default
9073 to_set_trace_notes.
9074 * target.h (struct target_ops) <to_set_trace_notes>: Use
9075 TARGET_DEFAULT_RETURN.
9076
91df8d1d
TT
90772014-02-19 Tom Tromey <tromey@redhat.com>
9078
9079 * target-delegates.c: Rebuild.
9080 * target.c (update_current_target): Don't initialize
9081 to_set_trace_buffer_size.
9082 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9083 TARGET_DEFAULT_IGNORE.
9084
8d526939
TT
90852014-02-19 Tom Tromey <tromey@redhat.com>
9086
9087 * target-delegates.c: Rebuild.
9088 * target.c (update_current_target): Don't inherit or default
9089 to_set_circular_trace_buffer.
9090 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9091 TARGET_DEFAULT_IGNORE.
9092
0bcfeddf
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_set_disconnected_tracing.
9098 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9099 TARGET_DEFAULT_IGNORE.
9100
9249843f
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_min_fast_tracepoint_insn_len.
9106 (return_minus_one): Remove.
9107 * target.h (struct target_ops)
9108 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9109
ace92e7d
TT
91102014-02-19 Tom Tromey <tromey@redhat.com>
9111
9112 * target-delegates.c: Rebuild.
9113 * target.c (update_current_target): Don't inherit or default
9114 to_get_raw_trace_data.
9115 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9116 TARGET_DEFAULT_NORETURN.
9117
08120467
TT
91182014-02-19 Tom Tromey <tromey@redhat.com>
9119
9120 * target-delegates.c: Rebuild.
9121 * target.c (update_current_target): Don't inherit or default
9122 to_upload_trace_state_variables.
9123 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9124 Use TARGET_DEFAULT_RETURN.
9125
1e949b00
TT
91262014-02-19 Tom Tromey <tromey@redhat.com>
9127
9128 * target-delegates.c: Rebuild.
9129 * target.c (update_current_target): Don't inherit or default
9130 to_upload_tracepoints.
9131 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9132 TARGET_DEFAULT_RETURN.
9133
a2e6c147
TT
91342014-02-19 Tom Tromey <tromey@redhat.com>
9135
9136 * target-delegates.c: Rebuild.
9137 * target.c (update_current_target): Don't inherit or default
9138 to_save_trace_data.
9139 * target.h (struct target_ops) <to_save_trace_data>: Use
9140 TARGET_DEFAULT_NORETURN.
9141
959bcd0b
TT
91422014-02-19 Tom Tromey <tromey@redhat.com>
9143
9144 * target-delegates.c: Rebuild.
9145 * target.c (update_current_target): Don't inherit or default
9146 to_get_trace_state_variable_value.
9147 * target.h (struct target_ops)
9148 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9149
afc94e66
TT
91502014-02-19 Tom Tromey <tromey@redhat.com>
9151
9152 * target-delegates.c: Rebuild.
9153 * target.c (update_current_target): Don't inherit or default
9154 to_trace_find.
9155 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9156
e51c07ea
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_trace_stop.
9162 * target.h (struct target_ops) <to_trace_stop>: Use
9163 TARGET_DEFAULT_NORETURN.
9164
6fea14cd
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_get_tracepoint_status.
9170 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9171 TARGET_DEFAULT_NORETURN.
9172
4072d4ff
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_get_trace_status.
9178 * target.h (struct target_ops) <to_get_trace_status>: Use
9179 TARGET_DEFAULT_RETURN.
9180
25da2e80
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_trace_start.
9186 * target.h (struct target_ops) <to_trace_start>: Use
9187 TARGET_DEFAULT_NORETURN.
9188
86dd181d
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_trace_set_readonly_regions.
9194 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9195 Use TARGET_DEFAULT_NORETURN.
9196
05c41993
TT
91972014-02-19 Tom Tromey <tromey@redhat.com>
9198
9199 * target-delegates.c: Rebuild.
9200 * target.c (update_current_target): Don't inherit or default
9201 to_disable_tracepoint.
9202 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9203 TARGET_DEFAULT_NORETURN.
9204
151f70f1
TT
92052014-02-19 Tom Tromey <tromey@redhat.com>
9206
9207 * target-delegates.c: Rebuild.
9208 * target.c (update_current_target): Don't inherit or default
9209 to_enable_tracepoint.
9210 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9211 TARGET_DEFAULT_NORETURN.
9212
94eb98b9
TT
92132014-02-19 Tom Tromey <tromey@redhat.com>
9214
9215 * target-delegates.c: Rebuild.
9216 * target.c (update_current_target): Don't inherit or default
9217 to_download_trace_state_variable.
9218 * target.h (struct target_ops) <to_download_trace_state_variable>:
9219 Use TARGET_DEFAULT_NORETURN.
9220
719acc4a
TT
92212014-02-19 Tom Tromey <tromey@redhat.com>
9222
9223 * target-delegates.c: Rebuild.
9224 * target.c (update_current_target): Don't inherit or default
9225 to_can_download_tracepoint.
9226 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9227 TARGET_DEFAULT_RETURN.
9228
9a980a22
TT
92292014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * target-delegates.c: Rebuild.
9232 * target.c (update_current_target): Don't inherit or default
9233 to_download_tracepoint.
9234 * target.h (struct target_ops) <to_download_tracepoint>: Use
9235 TARGET_DEFAULT_NORETURN.
9236
5536135b
TT
92372014-02-19 Tom Tromey <tromey@redhat.com>
9238
9239 * target-delegates.c: Rebuild.
9240 * target.c (update_current_target): Don't inherit or default
9241 to_trace_init.
9242 * target.h (struct target_ops) <to_trace_init>: Use
9243 TARGET_DEFAULT_RETURN.
9244
9409d39e
TT
92452014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target-delegates.c: Rebuild.
9248 * target.c (update_current_target): Don't inherit or default
9249 to_supports_string_tracing.
9250 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9251 TARGET_DEFAULT_RETURN.
9252
aab1b22d
TT
92532014-02-19 Tom Tromey <tromey@redhat.com>
9254
9255 * target-delegates.c: Rebuild.
9256 * target.c (update_current_target): Don't inherit or default
9257 to_supports_enable_disable_tracepoint.
9258 * target.h (struct target_ops)
9259 <to_supports_enable_disable_tracepoint>: Use
9260 TARGET_DEFAULT_RETURN.
9261
a7304748
TT
92622014-02-19 Tom Tromey <tromey@redhat.com>
9263
9264 * target-delegates.c: Rebuild.
9265 * target.c (update_current_target): Don't inherit or default
9266 to_supports_multi_process.
9267 * target.h (struct target_ops) <to_supports_multi_process>: Use
9268 TARGET_DEFAULT_RETURN.
9269
4229b31d
TT
92702014-02-19 Tom Tromey <tromey@redhat.com>
9271
9272 * target-delegates.c: Rebuild.
9273 * target.c (update_current_target): Don't inherit or default
9274 to_get_ada_task_ptid.
9275 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9276 TARGET_DEFAULT_FUNC.
9277
43eba180
TT
92782014-02-19 Tom Tromey <tromey@redhat.com>
9279
9280 * target-delegates.c: Rebuild.
9281 * target.c (update_current_target): Don't inherit or default
9282 to_thread_architecture.
9283 * target.h (struct target_ops) <to_thread_architecture>: Use
9284 TARGET_DEFAULT_FUNC.
9285
fe31bf5b
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_execution_direction.
9291 * target.h (struct target_ops) <to_execution_direction>: Use
9292 TARGET_DEFAULT_FUNC.
9293
53e1cfc7
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_can_execute_reverse.
9299 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9300 TARGET_DEFAULT_RETURN.
9301 (target_can_execute_reverse): Unconditionally delegate.
9302
9bb9d61d
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_goto_bookmark.
9308 (dummy_goto_bookmark): Remove.
9309 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9310 * target.h (struct target_ops) <to_goto_bookmark>: Use
9311 TARGET_DEFAULT_NORETURN.
9312
3dbafbbb
TT
93132014-02-19 Tom Tromey <tromey@redhat.com>
9314
9315 * target-delegates.c: Rebuild.
9316 * target.c (update_current_target): Don't inherit or default
9317 to_get_bookmark.
9318 (dummy_get_bookmark): Remove.
9319 (init_dummy_target): Don't inherit or default to_get_bookmark.
9320 * target.h (struct target_ops) <to_get_bookmark>: Use
9321 TARGET_DEFAULT_NORETURN
9322
16f796b1
TT
93232014-02-19 Tom Tromey <tromey@redhat.com>
9324
9325 * target-delegates.c: Rebuild.
9326 * target.c (update_current_target): Don't inherit or default
9327 to_make_corefile_notes.
9328 (init_dummy_target): Don't initialize to_make_corefile_notes.
9329 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9330 TARGET_DEFAULT_FUNC.
9331
0b5a2719
TT
93322014-02-19 Tom Tromey <tromey@redhat.com>
9333
9334 * target-delegates.c: Rebuild.
9335 * target.c (update_current_target): Don't inherit or default
9336 to_find_memory_regions.
9337 (init_dummy_target): Don't initialize to_find_memory_regions.
9338 * target.h (struct target_ops) <to_find_memory_regions>: Use
9339 TARGET_DEFAULT_FUNC.
9340
d9cb0195
TT
93412014-02-19 Tom Tromey <tromey@redhat.com>
9342
9343 * target-delegates.c: Rebuild.
9344 * target.c (update_current_target): Don't inherit or default
9345 to_log_command.
9346 * target.h (struct target_ops) <to_log_command>: Use
9347 TARGET_DEFAULT_IGNORE.
9348 (target_log_command): Unconditionally delegate.
9349
830ca330
TT
93502014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * target-delegates.c: Rebuild.
9353 * target.c (update_current_target): Don't inherit or default
9354 to_pid_to_exec_file.
9355 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9356 TARGET_DEFAULT_RETURN.
9357
825828fc
TT
93582014-02-19 Tom Tromey <tromey@redhat.com>
9359
9360 * target-delegates.c: Rebuild.
9361 * target.c (update_current_target): Don't inherit or default
9362 to_thread_name.
9363 (target_thread_name): Unconditionally delegate.
9364 * target.h (struct target_ops) <to_thread_name>: Use
9365 TARGET_DEFAULT_RETURN.
9366
4a7e6dda
TT
93672014-02-19 Tom Tromey <tromey@redhat.com>
9368
9369 * target-delegates.c: Rebuild.
9370 * target.c (update_current_target): Don't inherit or default
9371 to_extra_thread_info.
9372 * target.h (struct target_ops) <to_extra_thread_info>: Use
9373 TARGET_DEFAULT_RETURN.
9374
0db88c1d
TT
93752014-02-19 Tom Tromey <tromey@redhat.com>
9376
9377 * target-delegates.c: Rebuild.
9378 * target.c (update_current_target): Don't inherit or default
9379 to_has_exited.
9380 * target.h (struct target_ops) <to_has_exited>: Use
9381 TARGET_DEFAULT_RETURN..
9382
6a9fa051
TT
93832014-02-19 Tom Tromey <tromey@redhat.com>
9384
9385 * target-delegates.c: Rebuild.
9386 * target.c (update_current_target): Don't inherit or default
9387 to_set_syscall_catchpoint.
9388 (return_one): Remove.
9389 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9390 TARGET_DEFAULT_RETURN.
9391
62f64d7a
TT
93922014-02-19 Tom Tromey <tromey@redhat.com>
9393
9394 * target-delegates.c: Rebuild.
9395 * target.c (update_current_target): Don't inherit or default
9396 to_insert_exec_catchpoint.
9397 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9398 TARGET_DEFAULT_RETURN.
9399
cda0f38c
TT
94002014-01-08 Tom Tromey <tromey@redhat.com>
9401
9402 * target-delegates.c: Rebuild.
9403 * target.c (update_current_target): Don't inherit or default
9404 to_insert_exec_catchpoint.
9405 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9406 TARGET_DEFAULT_RETURN.
9407
95c3375e
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_remove_vfork_catchpoint.
9413 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9414 TARGET_DEFAULT_RETURN.
9415
7e18a8dc
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_insert_vfork_catchpoint.
9421 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9422 TARGET_DEFAULT_RETURN.
9423
e1a21fb7
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_remove_fork_catchpoint.
9429 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9430 TARGET_DEFAULT_RETURN.
9431
5958ebeb
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_insert_fork_catchpoint.
9437 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9438 TARGET_DEFAULT_RETURN.
9439
340ba4bf
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_post_startup_inferior.
9445 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9446 TARGET_DEFAULT_IGNORE.
9447
7634da87
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_load.
9453 * target.h (struct target_ops) <to_load>: Use
9454 TARGET_DEFAULT_NORETURN.
9455
e19e919f
TT
94562014-02-19 Tom Tromey <tromey@redhat.com>
9457
9458 * target-delegates.c: Rebuild.
9459 * target.c (update_current_target): Don't inherit or default
9460 to_terminal_info.
9461 * target.h (struct target_ops) <to_terminal_info>: Use
9462 TARGET_DEFAULT_FUNC.
9463
c6ea8f79
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_terminal_save_ours.
9469 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9470 TARGET_DEFAULT_IGNORE.
9471
e4a733f1
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_terminal_ours.
9477 * target.h (struct target_ops) <to_terminal_ours>: Use
9478 TARGET_DEFAULT_IGNORE.
9479
74fcbef9
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_terminal_ours_for_output.
9485 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9486 TARGET_DEFAULT_IGNORE.
9487
ddeaacc9
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_terminal_inferior.
9493 * target.h (struct target_ops) <to_terminal_inferior>: Use
9494 TARGET_DEFAULT_IGNORE.
9495
0343661d
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_terminal_init.
9501 * target.h (struct target_ops) <to_terminal_init>: Use
9502 TARGET_DEFAULT_IGNORE.
9503
77cdffe9
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_can_accel_watchpoint_condition.
9509 * target.h (struct target_ops)
9510 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9511
d03655e4
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_region_ok_for_hw_watchpoint.
9517 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9518 Use TARGET_DEFAULT_FUNC.
9519
65f160a9
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_watchpoint_addr_within_range.
9525 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9526 Use TARGET_DEFAULT_FUNC.
9527
61dd109f
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_remove_watchpoint.
9533 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9534 TARGET_DEFAULT_NORETURN.
9535
016facd4
TT
95362014-02-19 Tom Tromey <tromey@redhat.com>
9537
9538 * target-delegates.c: Rebuild.
9539 * target.c (update_current_target): Don't inherit or default
9540 to_insert_watchpoint.
9541 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9542 TARGET_DEFAULT_RETURN.
9543
418dabac
TT
95442014-02-19 Tom Tromey <tromey@redhat.com>
9545
9546 * target-delegates.c: Rebuild.
9547 * target.c (update_current_target): Don't inherit or default
9548 to_remove_hw_breakpoint.
9549 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9550 TARGET_DEFAULT_RETURN.
9551
61b371f9
TT
95522014-02-19 Tom Tromey <tromey@redhat.com>
9553
9554 * target-delegates.c: Rebuild.
9555 * target.c (update_current_target): Don't inherit or default
9556 to_insert_hw_breakpoint.
9557 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9558 TARGET_DEFAULT_RETURN.
9559
52b51d06
TT
95602014-02-19 Tom Tromey <tromey@redhat.com>
9561
9562 * target-delegates.c: Rebuild.
9563 * target.c (update_current_target): Don't inherit or default
9564 to_can_use_hw_breakpoint.
9565 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9566 TARGET_DEFAULT_RETURN.
9567
f86e59b2
TT
95682014-02-19 Tom Tromey <tromey@redhat.com>
9569
9570 * target-delegates.c: Rebuild.
9571 * target.c (update_current_target): Don't inherit or default
9572 to_files_info.
9573 * target.h (struct target_ops) <to_files_info>: Use
9574 TARGET_DEFAULT_IGNORE.
9575
6c628163
TT
95762014-02-19 Tom Tromey <tromey@redhat.com>
9577
9578 * target-delegates.c: Rebuild.
9579 * target.c (update_current_target): Don't inherit or default
9580 to_store.
9581 * target.h (struct target_ops) <to_store>: Use
9582 TARGET_DEFAULT_NORETURN.
9583
bebd3233
TT
95842014-02-19 Tom Tromey <tromey@redhat.com>
9585
9586 * target-delegates.c: Rebuild.
9587 * target.c (update_current_target): Don't inherit or default
9588 to_post_attach.
9589 * target.h (struct target_ops) <to_post_attach>: Use
9590 TARGET_DEFAULT_IGNORE.
9591
a53f3625
TT
95922014-02-19 Tom Tromey <tromey@redhat.com>
9593
9594 * target-delegates.c: Rebuild.
9595 * target.c (update_current_target): Don't inherit or default
9596 to_rcmd.
9597 (default_rcmd): New function.
9598 (do_monitor_command): Unconditionally delegate.
9599 * target.h (struct target_ops) <to_rmcd>: Use
9600 TARGET_DEFAULT_FUNC.
9601
e9a29200
TT
96022014-02-19 Tom Tromey <tromey@redhat.com>
9603
9604 * target-delegates.c: Rebuild.
9605 * target.c (init_dummy_target): Don't initialize to_attach.
9606 (target_attach): Unconditionally delegate.
9607 * target.h (struct target_ops) <to_attach>: Use
9608 TARGET_DEFAULT_FUNC.
9609
09da0d0a
TT
96102014-02-19 Tom Tromey <tromey@redhat.com>
9611
9612 * target-delegates.c: Rebuild.
9613 * target.c (target_detach): Unconditionally delegate.
9614 (init_dummy_target): Don't initialize to_detach.
9615 * target.h (struct target_ops) <to_detach>: Use
9616 TARGET_DEFAULT_IGNORE.
9617
5436ff03
TT
96182014-02-19 Tom Tromey <tromey@redhat.com>
9619
9620 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9621 Add argument.
9622 (target_augmented_libraries_svr4_read): Add argument.
9623 * target.c (update_current_target): Update.
9624 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9625 argument.
9626
f0d960ea
TT
96272014-02-19 Tom Tromey <tromey@redhat.com>
9628
9629 * target.h (struct target_ops) <to_call_history_range>: Add
9630 argument.
9631 * target.c (target_call_history_range): Add argument.
9632 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9633 argument.
9634 (record_btrace_call_history_from): Update.
9635
ec0aea04
TT
96362014-02-19 Tom Tromey <tromey@redhat.com>
9637
9638 * target.h (struct target_ops) <to_call_history_from>: Add
9639 argument.
9640 * target.c (target_call_history_from): Add argument.
9641 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9642 argument.
9643
5df2fcba
TT
96442014-02-19 Tom Tromey <tromey@redhat.com>
9645
9646 * target.h (struct target_ops) <to_call_history>: Add argument.
9647 * target.c (target_call_history): Add argument.
9648 * record-btrace.c (record_btrace_call_history): Add 'self'
9649 argument.
9650
4e99c6b7
TT
96512014-02-19 Tom Tromey <tromey@redhat.com>
9652
9653 * target.h (struct target_ops) <to_insn_history_range>: Add
9654 argument.
9655 * target.c (target_insn_history_range): Add argument.
9656 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9657 argument.
9658 (record_btrace_insn_history_from): Update.
9659
9abc3ff3
TT
96602014-02-19 Tom Tromey <tromey@redhat.com>
9661
9662 * target.h (struct target_ops) <to_insn_history_from>: Add
9663 argument.
9664 * target.c (target_insn_history_from): Add argument.
9665 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9666 argument.
9667
7a6c5609
TT
96682014-02-19 Tom Tromey <tromey@redhat.com>
9669
9670 * target.h (struct target_ops) <to_insn_history>: Add argument.
9671 * target.c (target_insn_history): Add argument.
9672 * record-btrace.c (record_btrace_insn_history): Add 'self'
9673 argument.
9674
606183ac
TT
96752014-02-19 Tom Tromey <tromey@redhat.com>
9676
9677 * target.h (struct target_ops) <to_goto_record>: Add argument.
9678 * target.c (target_goto_record): Add argument.
9679 * record-full.c (record_full_goto): Add 'self' argument.
9680 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9681
307a1b91
TT
96822014-02-19 Tom Tromey <tromey@redhat.com>
9683
9684 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9685 * target.c (target_goto_record_end): Add argument.
9686 * record-full.c (record_full_goto_end): Add 'self' argument.
9687 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9688
08475817
TT
96892014-02-19 Tom Tromey <tromey@redhat.com>
9690
9691 * target.h (struct target_ops) <to_goto_record_begin>: Add
9692 argument.
9693 * target.c (target_goto_record_begin): Add argument.
9694 * record-full.c (record_full_goto_begin): Add 'self' argument.
9695 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9696 argument.
9697
1c63c994
TT
96982014-02-19 Tom Tromey <tromey@redhat.com>
9699
9700 * target.h (struct target_ops) <to_record_is_replaying>: Add
9701 argument.
9702 * target.c (target_record_is_replaying): Add argument.
9703 * record-full.c (record_full_is_replaying): Add 'self' argument.
9704 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9705 argument.
9706 (record_btrace_xfer_partial, record_btrace_store_registers)
9707 (record_btrace_prepare_to_store, record_btrace_resume)
9708 (record_btrace_wait, record_btrace_decr_pc_after_break)
9709 (record_btrace_find_new_threads, record_btrace_thread_alive):
9710 Update.
9711
d1b55219
TT
97122014-02-19 Tom Tromey <tromey@redhat.com>
9713
9714 * target.h (struct target_ops) <to_delete_record>: Add argument.
9715 * target.c (target_delete_record): Add argument.
9716 * record-full.c (record_full_delete): Add 'self' argument.
9717
1390f529
TT
97182014-02-19 Tom Tromey <tromey@redhat.com>
9719
9720 * target.h (struct target_ops) <to_save_record>: Add argument.
9721 * target.c (target_save_record): Add argument.
9722 * record-full.c (record_full_save): Add 'self' argument.
9723 (record_full_save): Add 'self' argument.
9724
630d6a4a
TT
97252014-02-19 Tom Tromey <tromey@redhat.com>
9726
9727 * target.h (struct target_ops) <to_info_record>: Add argument.
9728 * target.c (target_info_record): Add argument.
9729 * record.c (info_record_command): Add argument.
9730 * record-full.c (record_full_info): Add 'self' argument.
9731 * record-btrace.c (record_btrace_info): Add 'self' argument.
9732
c6cd7c02
TT
97332014-02-19 Tom Tromey <tromey@redhat.com>
9734
9735 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9736 * target.c (target_stop_recording): Add argument.
9737 * record.c (record_stop): Add argument.
9738 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9739 argument.
9740
39c49f83
TT
97412014-02-19 Tom Tromey <tromey@redhat.com>
9742
9743 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9744 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9745 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9746 argument.
9747 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9748 (_initialize_amd64_linux_nat): Use it.
9749 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9750 (_initialize_i386_linux_nat): Use it.
9751
1777056d
TT
97522014-02-19 Tom Tromey <tromey@redhat.com>
9753
9754 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9755 * target.c (target_teardown_btrace): Add argument.
9756 * remote.c (remote_teardown_btrace): Add 'self' argument.
9757 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9758 argument.
9759 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9760 argument.
9761
25e95349
TT
97622014-02-19 Tom Tromey <tromey@redhat.com>
9763
9764 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9765 * target.c (target_disable_btrace): Add argument.
9766 * remote.c (remote_disable_btrace): Add 'self' argument.
9767 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9768 argument.
9769 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9770 argument.
9771
e3c49f88
TT
97722014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9775 * target.c (target_enable_btrace): Add argument.
9776 * remote.c (remote_enable_btrace): Add 'self' argument.
9777 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9778 argument.
9779 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9780 argument.
9781
fe38f897
TT
97822014-02-19 Tom Tromey <tromey@redhat.com>
9783
9784 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9785 (target_can_use_agent): Add argument.
9786 * target.c (update_current_target): Update.
9787 * remote.c (remote_can_use_agent): Add 'self' argument.
9788 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9789
2c152180
TT
97902014-02-19 Tom Tromey <tromey@redhat.com>
9791
9792 * target.h (struct target_ops) <to_use_agent>: Add argument.
9793 (target_use_agent): Add argument.
9794 * target.c (update_current_target): Update.
9795 * remote.c (remote_use_agent): Add 'self' argument.
9796 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9797
a893e81f
TT
97982014-02-19 Tom Tromey <tromey@redhat.com>
9799
9800 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9801 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9802 (target_traceframe_info): Add argument.
9803 * target.c (update_current_target): Update.
9804 * remote.c (remote_traceframe_info): Add 'self' argument.
9805 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9806
c686c57f
TT
98072014-02-19 Tom Tromey <tromey@redhat.com>
9808
9809 * target.h (target_static_tracepoint_markers_by_strid): Add
9810 argument.
9811 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9812 'self' argument.
9813 * target.c (update_current_target): Update.
9814 * remote.c (struct target_ops)
9815 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9816 * linux-nat.c (struct target_ops)
9817 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9818
61fc905d
TT
98192014-02-19 Tom Tromey <tromey@redhat.com>
9820
9821 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9822 Add argument.
9823 (target_static_tracepoint_marker_at): Add argument.
9824 * target.c (update_current_target): Update.
9825 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9826 argument.
9827
c378d69d
TT
98282014-02-19 Tom Tromey <tromey@redhat.com>
9829
9830 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9831 (target_set_permissions): Add argument.
9832 * target.c (update_current_target): Update.
9833 * remote.c (remote_set_permissions): Add 'self' argument.
9834 (remote_start_remote): Update.
9835
bd7ae0f5
TT
98362014-02-19 Tom Tromey <tromey@redhat.com>
9837
9838 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9839 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9840 (target_get_tib_address): Add argument.
9841 * target.c (update_current_target): Update.
9842 * remote.c (remote_get_tib_address): Add 'self' argument.
9843
d9e68a2c
TT
98442014-02-19 Tom Tromey <tromey@redhat.com>
9845
9846 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9847 (target_set_trace_notes): Add argument.
9848 * target.c (update_current_target): Update.
9849 * remote.c (remote_set_trace_notes): Add 'self' argument.
9850
4da384be
TT
98512014-02-19 Tom Tromey <tromey@redhat.com>
9852
9853 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9854 argument.
9855 (target_set_trace_buffer_size): Add argument.
9856 * target.c (update_current_target): Update.
9857 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9858
736d5b1f
TT
98592014-02-19 Tom Tromey <tromey@redhat.com>
9860
9861 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9862 argument.
9863 (target_set_circular_trace_buffer): Add argument.
9864 * target.c (update_current_target): Update.
9865 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9866 argument.
9867
37b25738
TT
98682014-02-19 Tom Tromey <tromey@redhat.com>
9869
9870 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9871 argument.
9872 (target_set_disconnected_tracing): Add argument.
9873 * target.c (update_current_target): Update.
9874 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9875
0e67620a
TT
98762014-02-19 Tom Tromey <tromey@redhat.com>
9877
9878 * target.h (struct target_ops)
9879 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9880 (target_get_min_fast_tracepoint_insn_len): Add argument.
9881 * target.c (update_current_target): Update.
9882 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9883 argument.
9884
88ee6f45
TT
98852014-02-19 Tom Tromey <tromey@redhat.com>
9886
9887 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9888 argument.
9889 (target_get_raw_trace_data): Add argument.
9890 * target.c (update_current_target): Update.
9891 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9892
181e3713
TT
98932014-02-19 Tom Tromey <tromey@redhat.com>
9894
9895 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9896 Add argument.
9897 (target_upload_trace_state_variables): Add argument.
9898 * target.c (update_current_target): Update.
9899 * remote.c (remote_upload_trace_state_variables): Add 'self'
9900 argument.
9901 (remote_start_remote): Update.
9902
ab6617cc
TT
99032014-02-19 Tom Tromey <tromey@redhat.com>
9904
9905 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9906 argument.
9907 (target_upload_tracepoints): Add argument.
9908 * target.c (update_current_target): Update.
9909 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9910 (remote_start_remote): Update.
9911
dc3decaf
TT
99122014-02-19 Tom Tromey <tromey@redhat.com>
9913
9914 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9915 (target_save_trace_data): Add argument.
9916 * target.c (update_current_target): Update.
9917 * remote.c (remote_save_trace_data): Add 'self' argument.
9918
4011015b
TT
99192014-02-19 Tom Tromey <tromey@redhat.com>
9920
9921 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9922 argument.
9923 * target.h (struct target_ops)
9924 <to_get_trace_state_variable_value>: Add argument.
9925 (target_get_trace_state_variable_value): Add argument.
9926 * target.c (update_current_target): Update.
9927 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9928 argument.
9929 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9930
bd4c6793
TT
99312014-02-19 Tom Tromey <tromey@redhat.com>
9932
9933 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9934 * target.h (struct target_ops) <to_trace_find>: Add argument.
9935 (target_trace_find): Add argument.
9936 * target.c (update_current_target): Update.
9937 * remote.c (remote_trace_find): Add 'self' argument.
9938 * ctf.c (ctf_trace_find): Add 'self' argument.
9939
74499f1b
TT
99402014-02-19 Tom Tromey <tromey@redhat.com>
9941
9942 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9943 (target_trace_stop): Add argument.
9944 * target.c (update_current_target): Update.
9945 * remote.c (remote_trace_stop): Add 'self' argument.
9946
db90e85c
TT
99472014-02-19 Tom Tromey <tromey@redhat.com>
9948
9949 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9950 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9951 argument.
9952 (target_get_tracepoint_status): Add argument.
9953 * target.c (update_current_target): Update.
9954 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9955
8bd200f1
TT
99562014-02-19 Tom Tromey <tromey@redhat.com>
9957
9958 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9959 * target.h (struct target_ops) <to_get_trace_status>: Add
9960 argument.
9961 (target_get_trace_status): Add argument.
9962 * target.c (update_current_target): Update.
9963 * remote.c (remote_get_trace_status): Add 'self' argument.
9964 (remote_start_remote, remote_can_download_tracepoint): Update.
9965 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9966
e2d1aae3
TT
99672014-02-19 Tom Tromey <tromey@redhat.com>
9968
9969 * target.h (struct target_ops) <to_trace_start>: Add argument.
9970 (target_trace_start): Add argument.
9971 * target.c (update_current_target): Update.
9972 * remote.c (remote_trace_start): Add 'self' argument.
9973
583f9a86
TT
99742014-02-19 Tom Tromey <tromey@redhat.com>
9975
9976 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9977 Add argument.
9978 (target_trace_set_readonly_regions): Add argument.
9979 * target.c (update_current_target): Update.
9980 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9981 argument.
9982
780b049c
TT
99832014-02-19 Tom Tromey <tromey@redhat.com>
9984
9985 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9986 argument.
9987 (target_disable_tracepoint): Add argument.
9988 * target.c (update_current_target): Update.
9989 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9990
46670d57
TT
99912014-02-19 Tom Tromey <tromey@redhat.com>
9992
9993 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9994 argument.
9995 (target_enable_tracepoint): Add argument.
9996 * target.c (update_current_target): Update.
9997 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9998
559d2b81
TT
99992014-02-19 Tom Tromey <tromey@redhat.com>
10000
10001 * target.h (struct target_ops) <to_download_trace_state_variable>:
10002 Add argument.
10003 (target_download_trace_state_variable): Add argument.
10004 * target.c (update_current_target): Update.
10005 * remote.c (remote_download_trace_state_variable): Add 'self'
10006 argument.
10007
a52a8357
TT
100082014-02-19 Tom Tromey <tromey@redhat.com>
10009
10010 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10011 argument.
10012 (target_can_download_tracepoint): Add argument.
10013 * target.c (update_current_target): Update.
10014 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10015
548f7808
TT
100162014-02-19 Tom Tromey <tromey@redhat.com>
10017
10018 * target.h (struct target_ops) <to_download_tracepoint>: Add
10019 argument.
10020 (target_download_tracepoint): Add argument.
10021 * target.c (update_current_target): Update.
10022 * remote.c (remote_download_tracepoint): Add 'self' argument.
10023
ecae04e1
TT
100242014-02-19 Tom Tromey <tromey@redhat.com>
10025
10026 * target.h (struct target_ops) <to_trace_init>: Add argument.
10027 (target_trace_init): Add argument.
10028 * target.c (update_current_target): Update.
10029 * remote.c (remote_trace_init): Add 'self' argument.
10030
fab5aa7c
TT
100312014-02-19 Tom Tromey <tromey@redhat.com>
10032
10033 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10034 * target.c (target_fileio_readlink): Add argument.
10035 * remote.c (remote_hostio_readlink): Add 'self' argument.
10036 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10037
dbbca37d
TT
100382014-02-19 Tom Tromey <tromey@redhat.com>
10039
10040 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10041 * target.c (target_fileio_unlink): Add argument.
10042 * remote.c (remote_hostio_unlink): Add 'self' argument.
10043 (remote_file_delete): Update.
10044 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10045
df39ea25
TT
100462014-02-19 Tom Tromey <tromey@redhat.com>
10047
10048 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10049 * target.c (target_fileio_close): Add argument.
10050 * remote.c (remote_hostio_close): Add 'self' argument.
10051 (remote_hostio_close_cleanup): Update.
10052 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10053 Update.
10054 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10055
a3be983c
TT
100562014-02-19 Tom Tromey <tromey@redhat.com>
10057
10058 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10059 * target.c (target_fileio_pread): Add argument.
10060 * remote.c (remote_hostio_pread): Add 'self' argument.
10061 (remote_bfd_iovec_pread, remote_file_get): Update.
10062 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10063
0d866f62
TT
100642014-02-19 Tom Tromey <tromey@redhat.com>
10065
10066 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10067 * target.c (target_fileio_pwrite): Add argument.
10068 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10069 (remote_file_put): Update.
10070 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10071
cd897586
TT
100722014-02-19 Tom Tromey <tromey@redhat.com>
10073
10074 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10075 * target.c (target_fileio_open): Add argument.
10076 * remote.c (remote_hostio_open): Add 'self' argument.
10077 (remote_bfd_iovec_open): Add 'self' argument.
10078 (remote_file_put): Add 'self' argument.
10079 (remote_file_get): Add 'self' argument.
10080 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10081
78eff0ec
TT
100822014-02-19 Tom Tromey <tromey@redhat.com>
10083
10084 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10085 Add argument.
10086 (target_can_run_breakpoint_commands): Add argument.
10087 * target.c (update_current_target): Update.
10088 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10089 argument.
10090 (remote_insert_breakpoint): Add 'self' argument.
10091 (remote_insert_hw_breakpoint): Add 'self' argument.
10092 (remote_can_run_breakpoint_commands): Add 'self' argument.
10093
efcc2da7
TT
100942014-02-19 Tom Tromey <tromey@redhat.com>
10095
10096 * target.h (struct target_ops)
10097 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10098 (target_supports_evaluation_of_breakpoint_conditions): Add
10099 argument.
10100 * target.c (update_current_target): Update.
10101 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10102 argument.
10103 (remote_insert_breakpoint): Add 'self' argument.
10104 (remote_insert_hw_breakpoint): Add 'self' argument.
10105 (remote_supports_cond_breakpoints): Add 'self' argument.
10106
6de37a3a
TT
101072014-02-19 Tom Tromey <tromey@redhat.com>
10108
10109 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10110 argument.
10111 (target_supports_string_tracing): Add argument.
10112 * target.c (update_current_target): Update.
10113 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10114
2bfc0540
TT
101152014-02-19 Tom Tromey <tromey@redhat.com>
10116
10117 * target.h (struct target_ops)
10118 <to_supports_disable_randomization>: Add argument.
10119 * target.c (find_default_supports_disable_randomization): Add
10120 argument.
10121 (target_supports_disable_randomization): Add argument.
10122 (find_default_supports_disable_randomization): Add 'self'
10123 argument.
10124 * remote.c (extended_remote_supports_disable_randomization): Add
10125 'self' argument.
10126 (remote_supports_disable_randomization): Add 'self' argument.
10127 (extended_remote_create_inferior): Update.
10128 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10129 'self' argument.
10130
7d178d6a
TT
101312014-02-19 Tom Tromey <tromey@redhat.com>
10132
10133 * target.h (struct target_ops)
10134 <to_supports_enable_disable_tracepoint>: Add argument.
10135 (target_supports_enable_disable_tracepoint): Add argument.
10136 * target.c (update_current_target): Update.
10137 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10138 argument.
10139
86ce2668
TT
101402014-02-19 Tom Tromey <tromey@redhat.com>
10141
10142 * target.h (struct target_ops) <to_supports_multi_process>: Add
10143 argument.
10144 (target_supports_multi_process): Add argument.
10145 * target.c (update_current_target): Update.
10146 * remote.c (remote_supports_multi_process): Add 'self' argument.
10147 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10148 argument.
10149 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10150 argument.
10151
4c612759
TT
101522014-02-19 Tom Tromey <tromey@redhat.com>
10153
10154 * target.h (struct target_ops) <to_execution_direction>: Add
10155 argument.
10156 (target_execution_direction): Add argument.
10157 * target.c (default_execution_direction): Add 'self' argument.
10158 * record-full.c (record_full_execution_direction): Add 'self'
10159 argument.
10160
19db3e69
TT
101612014-02-19 Tom Tromey <tromey@redhat.com>
10162
10163 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10164 argument.
10165 (target_can_execute_reverse): Add argument.
10166 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10167 * record-full.c (record_full_can_execute_reverse): Add 'self'
10168 argument.
10169 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10170 argument.
10171
1e6b91a4
TT
101722014-02-19 Tom Tromey <tromey@redhat.com>
10173
10174 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10175 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10176 argument.
10177 (target_get_ada_task_ptid): Add argument.
10178 * target.c (update_current_target): Update.
10179 (default_get_ada_task_ptid): Add 'self' argument.
10180 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10181 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10182 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10183 argument.
10184 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10185 argument.
10186 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10187 argument.
10188 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10189 argument.
10190 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10191 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10192 argument.
10193
3c80fb48
TT
101942014-02-19 Tom Tromey <tromey@redhat.com>
10195
10196 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10197 (target_goto_bookmark): Add argument.
10198 * target.c (dummy_goto_bookmark): Add 'self' argument.
10199 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10200
dd0e2830
TT
102012014-02-19 Tom Tromey <tromey@redhat.com>
10202
10203 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10204 (target_get_bookmark): Add argument.
10205 * target.c (dummy_get_bookmark): Add 'self' argument.
10206 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10207
fc6691b2
TT
102082014-02-19 Tom Tromey <tromey@redhat.com>
10209
10210 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10211 argument.
10212 (target_make_corefile_notes): Add argument.
10213 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10214 * procfs.c (procfs_make_note_section): Add 'self' argument.
10215 (procfs_make_note_section): Add 'self' argument.
10216 (procfs_make_note_section): Add 'self' argument.
10217 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10218 argument.
10219 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10220 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10221 * exec.c (exec_make_note_section): Add 'self' argument.
10222 (exec_make_note_section): Add 'self' argument.
10223
2e73927c
TT
102242014-02-19 Tom Tromey <tromey@redhat.com>
10225
10226 * target.h (struct target_ops) <to_find_memory_regions>: Add
10227 argument.
10228 (target_find_memory_regions): Add argument.
10229 * target.c (dummy_find_memory_regions): Add 'self' argument.
10230 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10231 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10232 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10233 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10234 * exec. (exec_do_find_memory_regions): New global.
10235 (exec_set_find_memory_regions): Rewrite.
10236 (exec_find_memory_regions): New function.
10237 (init_exec_ops): Use exec_find_memory_regions.
10238
2a9a2795
TT
102392014-02-19 Tom Tromey <tromey@redhat.com>
10240
10241 * target.h (struct target_ops) <to_supports_non_stop>: Add
10242 argument.
10243 * target.c (find_default_supports_non_stop): Add argument.
10244 (target_supports_non_stop): Add argument.
10245 (find_default_supports_non_stop): Add 'self' argument.
10246 * remote.c (remote_supports_non_stop): Add 'self' argument.
10247 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10248
4ab76ea3
TT
102492014-02-19 Tom Tromey <tromey@redhat.com>
10250
10251 * target.h (struct target_ops) <to_log_command>: Add argument.
10252 (target_log_command): Add argument.
10253 * serial.h (serial_log_command): Add 'self' argument.
10254 * serial.c (serial_log_command): Add 'self' argument.
10255
8dd27370
TT
102562014-02-19 Tom Tromey <tromey@redhat.com>
10257
10258 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10259 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10260 argument.
10261 (target_pid_to_exec_file): Add argument.
10262 * target.c (debug_to_pid_to_exec_file): Add argument.
10263 (update_current_target): Update.
10264 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10265 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10266 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10267 (linux_handle_extended_wait): Update.
10268 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10269 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10270 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10271 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10272
1aac633b
TT
102732014-02-19 Tom Tromey <tromey@redhat.com>
10274
10275 * target.h (struct target_ops) <to_rcmd>: Add argument.
10276 (target_rcmd): Add argument.
10277 * target.c (debug_to_rcmd): Add argument.
10278 (update_current_target, do_monitor_command): Update.
10279 * remote.c (remote_rcmd): Add 'self' argument.
10280 * monitor.c (monitor_rcmd): Add 'self' argument.
10281
1eab8a48
TT
102822014-02-19 Tom Tromey <tromey@redhat.com>
10283
10284 * windows-nat.c (windows_stop): Add 'self' argument.
10285 * target.h (struct target_ops) <to_stop>: Add argument.
10286 * target.c (target_stop): Add argument.
10287 (debug_to_stop): Add argument.
10288 (update_current_target): Update.
10289 * remote.c (remote_stop): Add 'self' argument.
10290 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10291 (gdbsim_cntrl_c): Update.
10292 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10293 * procfs.c (procfs_stop): Add 'self' argument.
10294 * nto-procfs.c (procfs_stop): Add 'self' argument.
10295 * monitor.c (monitor_stop): Add 'self' argument.
10296 (monitor_open): Update.
10297 * linux-nat.c (linux_nat_stop): Add argument.
10298 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10299 * gnu-nat.c (gnu_stop): Add 'self' argument.
10300 * darwin-nat.c (darwin_stop): Add 'self' argument.
10301
503a628d
TT
103022014-02-19 Tom Tromey <tromey@redhat.com>
10303
10304 * target.h (struct target_ops) <to_thread_name>: Add argument.
10305 * target.c (target_thread_name): Add argument.
10306 (update_current_target): Update.
10307 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10308
c15906d8
TT
103092014-02-19 Tom Tromey <tromey@redhat.com>
10310
10311 * target.h (struct target_ops) <to_extra_thread_info>: Add
10312 argument.
10313 (target_extra_thread_info): Add argument.
10314 * target.c (update_current_target): Update.
10315 * remote.c (remote_threads_extra_info): Add 'self' argument.
10316 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10317 argument.
10318 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10319 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10320 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10321 argument.
10322 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10323 argument.
10324 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10325 argument.
10326 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10327 argument.
10328
daf5e9b6
TT
103292014-02-19 Tom Tromey <tromey@redhat.com>
10330
10331 * target.h (struct target_ops) <to_program_signals>: Add argument.
10332 * target.c (target_program_signals): Add argument.
10333 * remote.c (remote_program_signals): Add 'self' argument.
10334
94bedb42
TT
103352014-02-19 Tom Tromey <tromey@redhat.com>
10336
10337 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10338 * target.c (target_pass_signals): Add argument.
10339 * remote.c (remote_pass_signals): Add 'self' argument.
10340 (remote_start_remote): Update.
10341 * procfs.c (procfs_pass_signals): Add 'self' argument.
10342 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10343 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10344 (linux_nat_create_inferior, linux_nat_attach): Update.
10345
da82bd6b
TT
103462014-02-19 Tom Tromey <tromey@redhat.com>
10347
10348 * windows-nat.c (windows_can_run): Add 'self' argument.
10349 * target.h (struct target_ops) <to_can_run>: Add argument.
10350 (target_can_run): Add argument.
10351 * target.c (debug_to_can_run): Add argument.
10352 (update_current_target): Update.
10353 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10354 * inf-child.c (inf_child_can_run): Add 'self' argument.
10355 * go32-nat.c (go32_can_run): Add 'self' argument.
10356
d796e1d6
TT
103572014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * target.h (struct target_ops) <to_has_exited>: Add argument.
10360 (target_has_exited): Add argument.
10361 * target.c (debug_to_has_exited): Add argument.
10362 (update_current_target): Update.
10363
ff214e67
TT
103642014-02-19 Tom Tromey <tromey@redhat.com>
10365
10366 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10367 argument.
10368 (target_set_syscall_catchpoint): Add argument.
10369 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10370 argument.
10371 * target.c (update_current_target): Update.
10372
758e29d2
TT
103732014-02-19 Tom Tromey <tromey@redhat.com>
10374
10375 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10376 argument.
10377 (target_remove_exec_catchpoint): Add argument.
10378 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10379 (update_current_target): Update.
10380 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10381 argument.
10382
ba025e51
TT
103832014-02-19 Tom Tromey <tromey@redhat.com>
10384
10385 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10386 argument.
10387 (target_insert_exec_catchpoint): Add argument.
10388 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10389 (update_current_target): Update.
10390 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10391 argument.
10392
e98cf0cd
TT
103932014-02-19 Tom Tromey <tromey@redhat.com>
10394
10395 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10396 argument.
10397 (target_remove_vfork_catchpoint): Add argument.
10398 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10399 (update_current_target): Update.
10400 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10401 argument.
10402
3ecc7da0
TT
104032014-02-19 Tom Tromey <tromey@redhat.com>
10404
10405 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10406 argument.
10407 (target_insert_vfork_catchpoint): Add argument.
10408 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10409 (update_current_target): Update.
10410 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10411 argument.
10412
973fc227
TT
104132014-02-19 Tom Tromey <tromey@redhat.com>
10414
10415 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10416 argument.
10417 (target_remove_fork_catchpoint): Add argument.
10418 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10419 (update_current_target): Update.
10420 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10421 argument.
10422
a863b201
TT
104232014-02-19 Tom Tromey <tromey@redhat.com>
10424
10425 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10426 argument.
10427 (target_insert_fork_catchpoint): Add argument.
10428 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10429 (update_current_target): Update.
10430 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10431 argument.
10432
2e97a79e
TT
104332014-02-19 Tom Tromey <tromey@redhat.com>
10434
10435 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10436 argument.
10437 (target_post_startup_inferior): Add argument.
10438 * target.c (debug_to_post_startup_inferior): Add argument.
10439 (update_current_target): Update.
10440 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10441 argument.
10442 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10443 argument.
10444 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10445 argument.
10446 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10447 argument.
10448 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10449 'self' argument.
10450 (super_post_startup_inferior): Likewise.
10451 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10452 'self' argument.
10453 (super_post_startup_inferior): Likewise.
10454 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10455 Add 'self' argument.
10456 (super_post_startup_inferior): Likewise.
10457
71a9f134
TT
104582014-02-19 Tom Tromey <tromey@redhat.com>
10459
10460 * target.h (struct target_ops) <to_load>: Add argument.
10461 * target.c (target_load): Add argument.
10462 (debug_to_load): Add argument.
10463 (update_current_target): Update.
10464 * remote.c (remote_load): Add 'self' argument.
10465 * remote-sim.c (gdbsim_load): Add 'self' argument.
10466 * remote-mips.c (mips_load): Add 'self' argument.
10467 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10468 * monitor.c (monitor_load): Add 'self' argument.
10469 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10470
0a4f40a2
TT
104712014-02-19 Tom Tromey <tromey@redhat.com>
10472
10473 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10474 (target_terminal_info): Add argument.
10475 * target.c (debug_to_terminal_info): Add argument.
10476 (default_terminal_info): Likewise.
10477 * inflow.c (child_terminal_info): Add 'self' argument.
10478 * inferior.h (child_terminal_info): Add 'self' argument.
10479 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10480
ae3bd431
TT
104812014-02-19 Tom Tromey <tromey@redhat.com>
10482
10483 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10484 argument.
10485 (target_terminal_save_ours): Add argument.
10486 * target.c (debug_to_terminal_save_ours): Add argument.
10487 (update_current_target): Update.
10488 * inflow.c (terminal_save_ours): Add 'self' argument.
10489 * inferior.h (terminal_save_ours): Add 'self' argument.
10490
e3594fd1
TT
104912014-02-19 Tom Tromey <tromey@redhat.com>
10492
10493 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10494 (target_terminal_ours): Add argument.
10495 * target.c (debug_to_terminal_ours): Add argument.
10496 (update_current_target): Update.
10497 * remote.c (remote_terminal_ours): Add 'self' argument.
10498 (remote_close): Update.
10499 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10500 * inflow.c (terminal_ours): Add 'self' argument.
10501 * inferior.h (terminal_ours): Add 'self' argument.
10502 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10503
2e1e1a19
TT
105042014-02-19 Pedro Alves <palves@redhat.com>
10505 Tom Tromey <tromey@redhat.com>
10506
10507 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10508 argument.
10509 (target_terminal_ours_for_output): Add argument.
10510 * target.c (debug_to_terminal_ours_for_output): Add argument.
10511 (update_current_target): Update.
10512 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10513 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10514 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10515
d2f640d4
TT
105162014-02-19 Tom Tromey <tromey@redhat.com>
10517
10518 * target.h (struct target_ops) <to_terminal_inferior>: Add
10519 argument.
10520 * target.c (target_terminal_inferior): Add argument.
10521 (update_current_target): Update.
10522 * remote.c (remote_terminal_inferior): Add 'self' argument.
10523 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10524 * inflow.c (terminal_inferior): Add 'self' argument.
10525 * inferior.h (terminal_inferior): Add 'self' argument.
10526 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10527 (go32_terminal_inferior): Add 'self' argument.
10528
c42bf286
TT
105292014-02-19 Tom Tromey <tromey@redhat.com>
10530
10531 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10532 (target_terminal_init): Add argument.
10533 * target.c (debug_to_terminal_init): Add argument.
10534 (update_current_target): Update.
10535 * inflow.c (terminal_init_inferior): Add 'self' argument.
10536 * inferior.h (terminal_init_inferior): Add 'self' argument.
10537 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10538 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10539
c3a5ff89
TT
105402014-02-19 Tom Tromey <tromey@redhat.com>
10541
10542 * target.h (struct target_ops)
10543 <to_can_accel_watchpoint_condition>: Add argument.
10544 (target_can_accel_watchpoint_condition): Add argument.
10545 * target.c (debug_to_can_accel_watchpoint_condition): Add
10546 argument.
10547 (update_current_target): Update.
10548 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10549 'self' argument.
10550
31568a15
TT
105512014-02-19 Tom Tromey <tromey@redhat.com>
10552
10553 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10554 Add argument.
10555 (target_region_ok_for_hw_watchpoint): Add argument.
10556 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10557 (default_region_ok_for_hw_watchpoint): Add argument.
10558 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10559 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10560 argument.
10561 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10562 argument.
10563 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10564 argument.
10565 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10566 'self' argument.
10567 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10568 'self' argument.
10569 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10570 'self' argument.
10571 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10572 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10573 'self' argument.
10574 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10575 Add 'self' argument.
10576
7bb99c53
TT
105772014-02-19 Tom Tromey <tromey@redhat.com>
10578
10579 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10580 argument.
10581 (target_insert_watchpoint): Add argument.
10582 * target.c (debug_to_insert_watchpoint): Add argument.
10583 (update_current_target): Update.
10584 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10585 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10586 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10587 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10588 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10589 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10590 argument.
10591 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10592 (procfs_insert_hw_watchpoint): Add 'self' argument.
10593 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10594 argument.
10595 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10596 argument.
10597 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10598 argument.
10599 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10600 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10601 argument.
10602 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10603 'self' argument.
10604
11b5219a
TT
106052014-02-19 Tom Tromey <tromey@redhat.com>
10606
10607 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10608 argument.
10609 (target_remove_watchpoint): Add argument.
10610 * target.c (debug_to_remove_watchpoint): Add argument.
10611 (update_current_target): Update.
10612 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10613 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10614 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10615 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10616 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10617 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10618 argument.
10619 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10620 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10621 argument.
10622 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10623 argument.
10624 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10625 argument.
10626 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10627 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10628 argument.
10629 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10630 'self' argument.
10631
a64dc96c
TT
106322014-02-19 Tom Tromey <tromey@redhat.com>
10633
10634 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10635 argument.
10636 (target_remove_hw_breakpoint): Add argument.
10637 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10638 (update_current_target): Update.
10639 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10640 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10641 argument.
10642 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10643 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10644 argument.
10645 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10646 'self' argument.
10647
23a26771
TT
106482014-02-19 Tom Tromey <tromey@redhat.com>
10649
10650 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10651 argument.
10652 (target_insert_hw_breakpoint): Add argument.
10653 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10654 (update_current_target): Update.
10655 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10656 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10657 argument.
10658 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10659 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10660 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10661 argument.
10662 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10663 'self' argument.
10664
5461485a
TT
106652014-02-19 Tom Tromey <tromey@redhat.com>
10666
10667 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10668 argument.
10669 (target_can_use_hardware_watchpoint): Add argument.
10670 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10671 (update_current_target): Update.
10672 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10673 argument.
10674 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10675 argument.
10676 * remote.c (remote_check_watch_resources): Add 'self' argument.
10677 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10678 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10679 argument.
10680 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10681 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10682 argument.
10683 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10684 argument.
10685 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10686 argument.
10687 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10688 argument.
10689 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10690 argument.
10691 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10692 argument.
10693 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10694 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10695 argument.
10696 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10697 'self' argument.
10698
f045800c
TT
106992014-02-19 Tom Tromey <tromey@redhat.com>
10700
10701 * target.h (struct target_ops) <to_post_attach>: Add argument.
10702 (target_post_attach): Add argument.
10703 * target.c (debug_to_post_attach): Add argument.
10704 (update_current_target): Update.
10705 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10706 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10707 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10708 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10709 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10710
de90e03d
TT
107112014-02-19 Tom Tromey <tromey@redhat.com>
10712
10713 * windows-nat.c (windows_close): Add 'self' argument.
10714 * tracepoint.c (tfile_close): Add 'self' argument.
10715 * target.h (struct target_ops) <to_close>: Add argument.
10716 * target.c (target_close): Add argument.
10717 (update_current_target): Update.
10718 * remote.c (remote_close): Add 'self' argument.
10719 * remote-sim.c (gdbsim_close): Add 'self' argument.
10720 * remote-mips.c (mips_close): Add 'self' argument.
10721 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10722 * record-full.c (record_full_close): Add 'self' argument.
10723 * record-btrace.c (record_btrace_close): Add 'self' argument.
10724 * monitor.h (monitor_close): Add 'self' argument.
10725 * monitor.c (monitor_close): Add 'self' argument.
10726 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10727 * linux-nat.c (linux_nat_close): Add argument.
10728 * go32-nat.c (go32_close): Add 'self' argument.
10729 * exec.c (exec_close_1): Add 'self' argument.
10730 * ctf.c (ctf_close): Add 'self' argument.
10731 * corelow.c (core_close): Add 'self' argument.
10732 (core_close_cleanup): Update.
10733 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10734 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10735
9dd130a0
TT
107362014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * remote.c (remote_load): New function.
10739 (init_remote_ops): Use it.
10740
46917d26
TT
107412014-02-19 Tom Tromey <tromey@redhat.com>
10742
10743 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10744 argument.
10745 * common/linux-btrace.h (linux_supports_btrace): Update.
10746 * remote.c (remote_supports_btrace): Add "self" argument.
10747 * target-delegates.c: Rebuild.
10748 * target.c (target_supports_btrace): Remove.
10749 * target.h (struct target_ops) <to_supports_btrace>: Add
10750 target_ops argument.
10751 (target_supports_btrace): New define.
10752
6b84065d
TT
107532014-02-19 Tom Tromey <tromey@redhat.com>
10754
10755 * record-full.c (record_full_beneath_to_resume_ops)
10756 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10757 (record_full_beneath_to_wait)
10758 (record_full_beneath_to_store_registers_ops)
10759 (record_full_beneath_to_store_registers)
10760 (record_full_beneath_to_xfer_partial_ops)
10761 (record_full_beneath_to_xfer_partial)
10762 (record_full_beneath_to_insert_breakpoint_ops)
10763 (record_full_beneath_to_insert_breakpoint)
10764 (record_full_beneath_to_remove_breakpoint_ops)
10765 (record_full_beneath_to_remove_breakpoint)
10766 (record_full_beneath_to_stopped_by_watchpoint)
10767 (record_full_beneath_to_stopped_data_address)
10768 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10769 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10770 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10771 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10772 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10773 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10774 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10775 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10776 (record_full_resume, record_full_wait_1)
10777 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10778 (record_full_store_registers, record_full_xfer_partial)
10779 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10780 (record_full_async, record_full_core_xfer_partial): Use target
10781 delegation.
10782 * target-delegates.c: Rebuild.
10783 * target.c (current_xfer_partial): Remove.
10784 (update_current_target): Do not INHERIT or de_fault
10785 to_insert_breakpoint, to_remove_breakpoint,
10786 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10787 to_is_async_p, to_async. Do not set to_xfer_partial field.
10788 (default_xfer_partial): Simplify.
10789 (current_xfer_partial): Remove.
10790 (target_wait, target_resume): Simplify.
10791 (find_default_can_async_p, find_default_is_async_p): Update.
10792 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10793 to_xfer_partial, to_stopped_by_watchpoint,
10794 to_stopped_data_address.
10795 (target_store_registers): Simplify.
10796 (forward_target_remove_breakpoint)
10797 (forward_target_insert_breakpoint): Remove.
10798 (target_remove_breakpoint, target_insert_breakpoint)
10799 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10800 * target.h (struct target_ops) <to_resume, to_wait,
10801 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10802 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10803 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10804 markup.
10805 (forward_target_remove_breakpoint)
10806 (forward_target_insert_breakpoint): Remove.
10807 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10808 directly.
10809 (record_btrace_insert_breakpoint): Delegate directly.
10810
1101cb7b
TT
108112014-02-19 Tom Tromey <tromey@redhat.com>
10812
10813 PR build/7701:
10814 * target-delegates.c: New file.
10815 * target.c: Include target-delegates.c.
10816 (init_dummy_target): Call install_dummy_methods.
10817 (complete_target_initialization): Call install_delegators.
10818 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10819 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10820 * make-target-delegates: New file.
10821
8b06beed
TT
108222014-02-19 Tom Tromey <tromey@redhat.com>
10823
10824 * record.c (find_record_target): Use find_target_at.
10825 * target.c (find_target_at): New function.
10826 * target.h (find_target_at): Declare.
10827
6a109b6b
TT
108282014-02-19 Tom Tromey <tromey@redhat.com>
10829
10830 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10831 Add 'ops' argument.
10832 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10833 'ops' argument.
10834 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10835 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10836 'ops' argument.
10837 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10838 argument.
10839 * linux-nat.c (save_sigtrap): Update.
10840 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10841 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10842 (linux_nat_close): Update.
10843 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10844 argument.
10845 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10846 argument.
10847 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10848 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10849 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10850 (tmp_to_async): Add 'ops' argument.
10851 (record_full_stopped_by_watchpoint, record_full_async)
10852 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10853 argument.
10854 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10855 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10856 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10857 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10858 (remote_is_async_p, remote_async): Add 'ops' argument.
10859 (remote_stopped_data_address): Update.
10860 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10861 * target.c (update_current_target)
10862 (find_default_can_async_p, find_default_is_async_p): Update.
10863 (init_dummy_target): Update.
10864 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10865 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10866 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10867 (target_can_async_p, target_is_async_p, target_async)
10868 (target_stopped_by_watchpoint): Update.
10869
e095146b
YQ
108702014-02-19 Yao Qi <yao@codesourcery.com>
10871
10872 PR gdb/16220
10873 * gdbarch.sh: Remove startup_gdbarch.
10874 * gdbarch.c: Regenerated.
10875 * gdbarch.h: Likewise.
10876
bc3c6b36
KB
108772014-02-17 Kevin Buettner <kevinb@redhat.com>
10878
10879 * rl78-tdep.c (rl78_g10_register_name): New function.
10880 (rl78_return_value): Add g10 support.
10881 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10882 g10.
10883
98dc0167 108842014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10885
10886 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10887 (SUBDIR_GUILE_SRCS): Ditto.
10888 (scm-gsmob.o): Ditto.
10889
842c05cd
YQ
108902014-02-17 Yao Qi <yao@codesourcery.com>
10891
10892 * gnu-nat.c (ILL_RPC): Declare defined function.
10893
25c0bd04
YQ
108942014-02-17 Yao Qi <yao@codesourcery.com>
10895
10896 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10897 mach_msg_type_number_t.
10898 (gnu_write_inferior): Likewise.
10899
a9a758e3
YQ
109002014-02-17 Yao Qi <yao@codesourcery.com>
10901
10902 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10903 in format string.
10904 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10905 (inf_validate_procs, inf_signal): Likewise.
10906 (S_exception_raise_request): Likewise.
10907 (do_mach_notify_dead_name): Likewise.
10908 (steal_exc_port): Likewise.
10909 (gnu_read_inferior): Change 'copy_count''s type to
10910 mach_msg_type_number_t.
10911 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10912 format string.
10913
bae8023e
TS
109142014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10915
c82f56d9
TS
10916 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10917 flag. Adjust all users; in particular...
10918 (gnu_wait): ..., don't decrement its value in here...
10919 (gnu_create_inferior): ..., and instead set the flag in here,
10920 around the startup_inferior call, and call that one with
10921 START_INFERIOR_TRAPS_EXPECTED.
10922
3398af6a
TS
10923 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10924 (ILL_RPC): ... new macro.
10925 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10926 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10927 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10928 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10929 functions with ILL_RPC macro.
10930 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10931 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10932 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10933 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10934 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10935 (S_proc_getlogin_reply, S_proc_getsid_reply)
10936 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10937 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10938 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10939 (S_proc_getnports_reply, S_proc_is_important_reply)
10940 (S_proc_get_code_reply): New stub functions, generated with
10941 ILL_RPC macro.
10942
d47642c9
TS
10943 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10944 collected the type check structures.
10945
bae8023e
TS
10946 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10947
8a55ffb0
DE
109482014-02-14 Doug Evans <dje@google.com>
10949
10950 * target.c (target_write_partial): Fix result type.
10951
c2853f3d
JM
109522014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10953
10954 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10955 the proper offsets to access fpregset_t.
10956
ac61d2db
SA
109572014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10958
10959 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10960 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10961 * h8300-tdep.c (setmachinelist): Remove global.
10962 * hppa-tdep.c (hppa_sigtramp): Remove global.
10963 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10964 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10965 * ravenscar-thread.c (update_target_observer): Remove global.
10966 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10967
9d2d0b8b
TT
109682014-02-12 Tom Tromey <tromey@redhat.com>
10969
10970 * common/rsp-low.c: Update comments.
10971 * common/rsp-low.h: Update comments.
10972
a7191e8b
TT
109732014-02-12 Tom Tromey <tromey@redhat.com>
10974
10975 * common/rsp-low.c (convert_ascii_to_int): Remove.
10976 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10977
ff0e980e
TT
109782014-02-12 Tom Tromey <tromey@redhat.com>
10979
10980 * common/rsp-low.h (unhexify): Don't declare.
10981 * common/rsp-low.c (unhexify): Remove.
10982
e9371aff
TT
109832014-02-12 Tom Tromey <tromey@redhat.com>
10984
10985 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10986 * common/rsp-low.c (convert_int_to_ascii): Remove.
10987
971dc0b8
TT
109882014-02-12 Tom Tromey <tromey@redhat.com>
10989
10990 * common/rsp-low.h (hexify): Don't declare.
10991 * common/rsp-low.c (hexify): Remove.
10992
0a822afb
TT
109932014-02-12 Tom Tromey <tromey@redhat.com>
10994
10995 * common/rsp-low.c (hexify): Never take strlen of argument.
10996
9f1b45b0
TT
109972014-02-12 Tom Tromey <tromey@redhat.com>
10998
10999 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11000 * remote.c (extended_remote_run, remote_rcmd)
11001 (remote_download_trace_state_variable, remote_save_trace_data)
11002 (remote_set_trace_notes): Update.
11003 * tracepoint.c (encode_source_string, tfile_write_status)
11004 (tfile_write_uploaded_tsv): Update.
11005
9c3d6531
TT
110062014-02-12 Tom Tromey <tromey@redhat.com>
11007
11008 * tracepoint.c: Include rsp-low.h.
11009 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11010 * remote.c: Include rsp-low.h.
11011 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11012 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11013 (remote_unescape_input): Move to common/rsp-low.c.
11014 * common/rsp-low.h: New file.
11015 * common/rsp-low.c: New file.
11016 * Makefile.in (SFILES): Add common/rsp-low.c.
11017 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11018 (COMMON_OBS): Add rsp-low.o.
11019 (rsp-low.o): New target.
11020
01fd3ea5
TT
110212014-02-12 Tom Tromey <tromey@redhat.com>
11022
11023 * utils.h: Include print-utils.h.
11024 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11025 (int_string, core_addr_to_string, core_addr_to_string_nz)
11026 (hex_string, hex_string_custom): Don't declare.
11027 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11028 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11029 (hex_string_custom, int_string, core_addr_to_string)
11030 (core_addr_to_string_nz, host_address_to_string): Move to
11031 common/print-utils.c.
11032 * common/print-utils.h: New file.
11033 * common/print-utils.c: New file
11034 * Makefile.in (SFILES): Add common/print-utils.c.
11035 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11036 (COMMON_OBS): Add print-utils.o.
11037 (print-utils.o): New target.
11038
9fb50108
TT
110392014-02-12 Tom Tromey <tromey@redhat.com>
11040
11041 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11042
0548b5db
MK
110432014-02-12 Mark Kettenis <kettenis@gnu.org>
11044
11045 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11046
493443a4
MK
110472014-02-12 Mark Kettenis <kettenis@gnu.org>
11048
11049 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11050 if a PT_IO ptrace request returns sucessfully but indicates that 0
11051 bytes were transferred.
11052
706d0883
PA
110532014-02-12 Pedro Alves <palves@redhat.com>
11054 Kevin Buettner <kevinb@redhat.com>
11055
11056 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11057 TYPE_INSTANCE_FLAG_CODE_SPACE.
11058
5caa2f0b
PA
110592014-02-12 Pedro Alves <palves@redhat.com>
11060
11061 * h8300-tdep.c (pseudo_from_raw_register)
11062 (raw_from_pseudo_register): New functions.
11063 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11064 them.
11065
76fd5f74
PA
110662014-02-12 Pedro Alves <palves@redhat.com>
11067
11068 * h8300-tdep.c (h8300_register_sim_regno): New function.
11069 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11070 gdbarch_register_sim_regno hook.
11071
8f008406
SA
110722014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11073
11074 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11075
195abc10
SA
110762014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11077
11078 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11079
93ffa5b9
MK
110802014-02-12 Mark Kettenis <kettenis@gnu.org>
11081
11082 * obsd-tdep.h (obsd_init_abi): New prototype.
11083 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11084 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11085 (obsd_init_abi): New functions.
11086 * i386obsd-tdep.c: Include "obsd-tdep.h".
11087 (i386obsd_init_abi): Call obsd_init_abi.
11088 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11089 (amd64obsd_init_abi): Call obsd_init_abi.
11090 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11091 obsd-tdep.c to gdb_target_obs.
11092
49caec94
JM
110932014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11094
11095 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11096 double float arguments to 16-byte in the argument slots.
11097
e1402065
DE
110982014-02-11 Doug Evans <xdje42@gmail.com>
11099
11100 * configure.ac: Don't crash if pkg-config is not found and guile
11101 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11102 in guile checks.
11103 * configure: Regenerate.
11104
edcc890f
YQ
111052014-02-11 Yao Qi <yao@codesourcery.com>
11106
11107 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11108 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11109 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11110 * gnu-nat.c (gnu_xfer_memory): Likewise.
11111 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11112 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11113 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11114 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11115
9b409511
YQ
111162014-02-11 Yao Qi <yao@codesourcery.com>
11117
11118 * target.h (enum target_xfer_error): Rename to ...
11119 (enum target_xfer_status): ... it. New. All users updated.
11120 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11121 New.
11122 (TARGET_XFER_STATUS_ERROR_P): New macro.
11123 (target_xfer_error_to_string): Remove declaration.
11124 (target_xfer_status_to_string): Declare.
11125 (target_xfer_partial_ftype): Adjust it.
11126 (struct target_ops) <to_xfer_partial>: Return
11127 target_xfer_status. Add argument xfered_len. Update
11128 comments.
11129 * target.c (target_xfer_error_to_string): Rename to ...
11130 (target_xfer_status_to_string): ... it. New. All callers
11131 updated.
11132 (target_read_live_memory): Likewise. Call target_xfer_partial
11133 instead of target_read.
11134 (memory_xfer_live_readonly_partial): Return
11135 target_xfer_status. Add argument xfered_len.
11136 (raw_memory_xfer_partial): Likewise.
11137 (memory_xfer_partial_1): Likewise.
11138 (memory_xfer_partial): Likewise.
11139 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11140 properly. Update debug message.
11141 (default_xfer_partial, current_xfer_partial): Likewise.
11142 (target_write_partial): Likewise.
11143 (target_read_partial): Likewise. All callers updated.
11144 (read_whatever_is_readable): Likewise.
11145 (target_write_with_progress): Likewise.
11146 (target_read_alloc_1): Likewise.
11147
11148 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11149 * auxv.c (procfs_xfer_auxv): Likewise.
11150 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11151 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11152 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11153 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11154 * corefile.c (read_memory): Adjust.
11155 * corelow.c (core_xfer_partial): Likewise.
11156 * ctf.c (ctf_xfer_partial): Likewise.
11157 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11158 updated.
11159 (darwin_xfer_partial): Likewise.
11160 * exec.c (section_table_xfer_memory_partial): Likewise. All
11161 callers updated.
11162 (exec_xfer_partial): Likewise.
11163 * exec.h (section_table_xfer_memory_partial): Update
11164 declaration.
11165 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11166 negative.
11167 (gnu_xfer_partial): Likewise.
11168 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11169 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11170 (ia64_hpux_xfer_solib_got): Likewise.
11171 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11172 type of 'partial_len' to ULONGEST.
11173 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11174 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11175 (linux_nat_xfer_partial): Likewise.
11176 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11177 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11178 * monitor.c (monitor_xfer_memory): Likewise.
11179 (monitor_xfer_partial): Likewise.
11180 * procfs.c (procfs_xfer_partial): Likewise.
11181 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11182 * record-full.c (record_full_xfer_partial): Likewise.
11183 (record_full_core_xfer_partial): Likewise.
11184 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11185 (gdbsim_xfer_partial): Likewise.
11186 * remote.c (remote_write_bytes_aux): Likewise. All callers
11187 updated.
11188 (remote_write_bytes, remote_read_bytes): Likewise. All
11189 callers updated.
11190 (remote_flash_erase): Likewise. All callers updated.
11191 (remote_write_qxfer): Likewise. All callers updated.
11192 (remote_read_qxfer): Likewise. All callers updated.
11193 (remote_xfer_partial): Likewise.
11194 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11195 (rs6000_xfer_shared_libraries): Likewise.
11196 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11197 (sol_thread_xfer_partial): Likewise.
11198 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11199 (sparc_xfer_partial): Likewise.
11200 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11201 updated.
11202 (spu_xfer_partial): Likewise.
11203 * spu-multiarch.c (spu_xfer_partial): Likewise.
11204 * tracepoint.c (tfile_xfer_partial): Likewise.
11205 * windows-nat.c (windows_xfer_memory): Likewise.
11206 (windows_xfer_shared_libraries): Likewise.
11207 (windows_xfer_partial): Likewise.
11208 * valprint.c: Replace 'target_xfer_error' with
11209 'target_xfer_status' in comments.
11210
a8e63083
JB
112112014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11212
11213 Checked in by Joel Brobecker <brobecker@adacore.com>.
11214 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11215
e86b67d3
JB
112162014-02-11 Joel Brobecker <brobecker@adacore.com>
11217
11218 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11219 function parameters.
11220
4b7d1f7f
WN
112212014-02-10 Will Newton <will.newton@linaro.org>
11222
11223 * elfread.c (elf_rel_plt_read): Look for a .got section if
11224 looking up .got.plt fails.
11225 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11226 on address passed to elf_gnu_ifunc_record_cache.
11227 (elf_gnu_ifunc_resolve_addr): Likewise.
11228 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11229
961842b2
JM
112302014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11231
11232 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11233 (X_RETTURN): New macro.
11234 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11235
11236 * sparc64-tdep.c (sparc64_init_abi): Hook
11237 sparc_in_function_epilogue_p.
11238
3f03e7b1
GB
112392014-02-10 Gary Benson <gbenson@redhat.com>
11240
11241 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11242 Rename name_matcher to symbol_matcher.
11243
96f861ef
GB
112442014-02-10 Gary Benson <gbenson@redhat.com>
11245
11246 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11247 Use expand_symtabs_file_matcher_ftype and
11248 expand_symtabs_symbol_matcher_ftype.
11249
ee01b665
JB
112502014-02-10 Joel Brobecker <brobecker@adacore.com>
11251
11252 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11253 (struct ada_symbol_cache): New.
11254 (ada_free_symbol_cache): Forward declare.
11255 (struct ada_pspace_data): New.
11256 (ada_pspace_data_handle): New static global.
11257 (get_ada_pspace_data, ada_pspace_data_cleanup)
11258 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11259 (cache_space, cache): Delete, now folded inside struct
11260 ada_pspace_data.
11261 (ada_get_symbol_cache): New function.
11262 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11263 implementation.
11264 (_initialize_ada_language): Remove initialization of cache_space.
11265 Move call to observer_attach_inferior_exit up, grouping it
11266 with the other observer registrations inside this function.
11267 Rename command to be more general. Add call to
11268 register_program_space_data_with_cleanup.
11269
143adbbf
JB
112702014-02-10 Joel Brobecker <brobecker@adacore.com>
11271
11272 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11273 ada_new_objfile_observer.
11274 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11275 (_initialize_tasks): Update uses of ada_new_objfile_observer
11276 and ada_tasks_normal_stop_observer.
11277
aa4fb036
JB
112782014-02-10 Joel Brobecker <brobecker@adacore.com>
11279
11280 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11281 returned by the 'Length attribute to integer.
11282
9dee8cc6
JB
112832014-02-10 Joel Brobecker <brobecker@adacore.com>
11284
11285 * ada-lang.c (_initialize_ada_language): Initialize
11286 cache_space obstack.
11287
3d9434b5
JB
112882014-02-10 Joel Brobecker <brobecker@adacore.com>
11289
11290 * ada-lang.c (HASH_SIZE): New macro.
11291 (struct cache_entry): New type.
11292 (cache_space, cache): New static globals.
11293 (ada_clear_symbol_cache, find_entry): New functions.
11294 (lookup_cached_symbol, cache_symbol): Implement.
11295 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11296 (_initialize_ada_language): Attach ada_new_objfile_observer
11297 and ada_free_objfile_observer.
11298
f0c5f9b2
JB
112992014-02-10 Joel Brobecker <brobecker@adacore.com>
11300
11301 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11302 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11303 struct block * parameter.
11304 (ada_lookup_symbol_list_worker): Constify local variable "block".
11305 Remove cast which is no longer necessary.
11306
ed3ef339
DE
113072014-02-10 Doug Evans <xdje42@gmail.com>
11308
11309 Add Guile as an extension language.
11310 * NEWS: Mention Guile scripting.
11311 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11312 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11313 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11314 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11315 (CLIBS): Add GUILE_LIBS.
11316 (install-guile): New rule.
11317 (guile.o): New rule.
11318 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11319 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11320 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11321 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11322 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11323 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11324 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11325 * configure.ac: New option --with-guile.
11326 * configure: Regenerate.
11327 * config.in: Regenerate.
11328 * auto-load.c: Remove #include "python/python.h". Add #include
11329 "gdb/section-scripts.h".
11330 (source_section_scripts): Handle Guile scripts.
11331 (_initialize_auto_load): Add name of Guile objfile script to
11332 scripts-directory help text.
11333 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11334 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11335 (struct breakpoint): New member scm_bp_object.
11336 * defs.h (enum command_control_type): New value guile_control.
11337 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11338 "extension.h".
11339 (show_user): Update comment.
11340 (_initialize_cli_cmds): Update help text for "show user". Update help
11341 text for max-user-call-depth.
11342 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11343 "extension.h".
11344 (multi_line_command_p): Add guile_control.
11345 (print_command_lines): Handle guile_control.
11346 (execute_control_command, recurse_read_control_structure): Ditto.
11347 (process_next_line): Recognize "guile" commands.
11348 * disasm.c (gdb_disassemble_info): Make non-static.
11349 * disasm.h: #include "dis-asm.h".
11350 (struct gdbarch): Add forward decl.
11351 (gdb_disassemble_info): Declare.
11352 * extension.c: #include "guile/guile.h".
11353 (extension_languages): Add guile.
11354 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11355 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11356 * gdbtypes.c (get_unsigned_type_max): New function.
11357 (get_signed_type_minmax): New function.
11358 * gdbtypes.h (get_unsigned_type_max): Declare.
11359 (get_signed_type_minmax): Declare.
11360 * guile/README: New file.
11361 * guile/guile-internal.h: New file.
11362 * guile/guile.c: New file.
11363 * guile/guile.h: New file.
11364 * guile/scm-arch.c: New file.
11365 * guile/scm-auto-load.c: New file.
11366 * guile/scm-block.c: New file.
11367 * guile/scm-breakpoint.c: New file.
11368 * guile/scm-disasm.c: New file.
11369 * guile/scm-exception.c: New file.
11370 * guile/scm-frame.c: New file.
11371 * guile/scm-gsmob.c: New file.
11372 * guile/scm-iterator.c: New file.
11373 * guile/scm-lazy-string.c: New file.
11374 * guile/scm-math.c: New file.
11375 * guile/scm-objfile.c: New file.
11376 * guile/scm-ports.c: New file.
11377 * guile/scm-pretty-print.c: New file.
11378 * guile/scm-safe-call.c: New file.
11379 * guile/scm-string.c: New file.
11380 * guile/scm-symbol.c: New file.
11381 * guile/scm-symtab.c: New file.
11382 * guile/scm-type.c: New file.
11383 * guile/scm-utils.c: New file.
11384 * guile/scm-value.c: New file.
11385 * guile/lib/gdb.scm: New file.
11386 * guile/lib/gdb/boot.scm: New file.
11387 * guile/lib/gdb/experimental.scm: New file.
11388 * guile/lib/gdb/init.scm: New file.
11389 * guile/lib/gdb/iterator.scm: New file.
11390 * guile/lib/gdb/printing.scm: New file.
11391 * guile/lib/gdb/types.scm: New file.
11392 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11393 (VPATH): Add $(GUILE_SRCDIR).
11394 (GUILE_DIR): New variable.
11395 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11396 (all): Add stamp-guile dependency.
11397 (stamp-guile): New rule.
11398 (clean-guile, install-guile, uninstall-guile): New rules.
11399 (install-only): Add install-guile dependency.
11400 (uninstall): Add uninstall-guile dependency.
11401 (clean): Add clean-guile dependency.
11402
ac020ec5
DE
114032014-02-09 Doug Evans <xdje42@gmail.com>
11404
11405 Revert this patch (which I approved, mea culpa).
11406
11407 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11408
11409 * Makefile.in (all-lib): Remove.
11410 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11411
2a081c59
JK
114122014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11413
11414 Fix Python stack corruption.
11415 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11416 gdb_py_longest.
11417
0a6bd22d
MK
114182014-02-08 Mark Kettenis <kettenis@gnu.org>
11419
11420 * Makefile.in (all-lib): Remove.
11421 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11422
1a860409
DE
114232014-02-07 Doug Evans <dje@google.com>
11424
11425 * extension-priv.h (extension_language_script_ops): Add comment.
11426 (extension_language_ops): Add comment.
caf5a491 11427 (active_ext_lang_state): Fix typo in comment.
1a860409 11428
d137e6dc
PA
114292014-02-07 Pedro Alves <palves@redhat.com>
11430
0dcb32c3 11431 PR breakpoints/16292
d137e6dc
PA
11432 * infrun.c (handle_signal_stop) <signal arrives while stepping
11433 over a breakpoint>: Switch back to the stepping thread.
11434
ce6d0892
YQ
114352014-02-07 Yao Qi <yao@codesourcery.com>
11436
11437 * target.c (target_xfer_partial): Return zero if LEN is zero.
11438
2ed4b548
YQ
114392014-02-07 Yao Qi <yao@codesourcery.com>
11440
11441 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11442 (ld_so_xfer_auxv): Likewise.
11443 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11444 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11445 * corelow.c (core_xfer_partial): Likewise.
11446 * ctf.c (ctf_xfer_partial): Likewise.
11447 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11448 (darwin_xfer_partial): Likewise.
11449 * exec.c (exec_xfer_partial): Likewise.
11450 * gnu-nat.c (gnu_xfer_partial): Likewise.
11451 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11452 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11453 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11454 * linux-nat.c (linux_xfer_siginfo): Likewise.
11455 (linux_proc_xfer_spu): Likewise.
11456 * procfs.c (procfs_xfer_partial): Likewise.
11457 * record-full.c (record_full_xfer_partial): Likewise.
11458 (record_full_core_xfer_partial): Likewise.
11459 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11460 * remote.c (remote_write_qxfer): Likewise.
11461 (remote_write_qxfer, remote_read_qxfer): Likewise.
11462 (remote_xfer_partial): Likewise.
11463 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11464 (rs6000_xfer_shared_libraries): Likewise.
11465 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11466 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11467 (spu_xfer_partial): Likewise.
11468 * target.c (memory_xfer_partial_1): Likewise.
11469 * tracepoint.c (tfile_xfer_partial): Likewise.
11470 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11471 (windows_xfer_partial): Likewise.
11472
c09f20e4
YQ
114732014-02-07 Yao Qi <yao@codesourcery.com>
11474
11475 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11476 comments.
11477 (core_xfer_shared_libraries_aix): Likewise.
11478 * gdbarch.c, gdbarch.h: Regenerated.
11479 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11480 ULONGEST. Change 'len_avail' type to ULONGEST.
11481 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11482 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11483 declaration.
11484 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11485
8635b3bf
YQ
114862014-02-07 Yao Qi <yao@codesourcery.com>
11487
11488 * corefile.c (memory_error): Get 'exception' from ERR and pass
11489 'exception' to throw_error.
11490
6dddc817
DE
114912014-02-06 Doug Evans <xdje42@gmail.com>
11492
11493 * configure.ac (libpython checking): Remove all but python.o from
11494 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11495 * configure: Regenerate.
11496
11497 * Makefile.in (SFILES): Add extension.c.
11498 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11499 (COMMON_OBS): Add extension.o.
11500 * extension.h: New file.
11501 * extension-priv.h: New file.
11502 * extension.c: New file.
11503
11504 * python/python-internal.h: #include "extension.h".
11505 (gdbpy_auto_load_enabled): Declare.
11506 (gdbpy_apply_val_pretty_printer): Declare.
11507 (gdbpy_apply_frame_filter): Declare.
11508 (gdbpy_preserve_values): Declare.
11509 (gdbpy_breakpoint_cond_says_stop): Declare.
11510 (gdbpy_breakpoint_has_cond): Declare.
11511 (void source_python_script_for_objfile): Delete.
11512 * python/python.c: #include "extension-priv.h".
11513 Delete inclusion of "observer.h".
11514 (extension_language_python): Moved here and renamed from
11515 script_language_python in py-auto-load.c.
11516 Redefined to be of type extension_language_defn.
11517 (python_extension_script_ops): New global.
11518 (python_extension_ops): New global.
11519 (struct python_env): New member previous_active.
11520 (restore_python_env): Call restore_active_ext_lang.
11521 (ensure_python_env): Call set_active_ext_lang.
11522 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11523 New arg extlang.
11524 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11525 New arg extlang.
11526 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11527 New arg extlang.
11528 (gdbpy_eval_from_control_command): Renamed from
11529 eval_python_from_control_command, made static. New arg extlang.
11530 (gdbpy_source_script) Renamed from source_python_script, made static.
11531 New arg extlang.
11532 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11533 result to int. New arg extlang.
11534 (gdbpy_source_objfile_script): Renamed from
11535 source_python_script_for_objfile, made static. New arg extlang.
11536 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11537 static. New args extlang, extlang_printers. Change result type to
11538 "void".
11539 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11540 static. New arg extlang. Rename arg printers to extlang_printers
11541 and change type to ext_lang_type_printers *.
11542 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11543 static. Replace argument arg with extlang, extlang_printers.
11544 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11545 (!HAVE_PYTHON, source_python_script): Delete.
11546 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11547 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11548 (!HAVE_PYTHON, start_type_printers): Delete.
11549 (!HAVE_PYTHON, apply_type_printers): Delete.
11550 (!HAVE_PYTHON, free_type_printers): Delete.
11551 (_initialize_python): Delete call to observer_attach_before_prompt.
11552 (finalize_python): Set/restore active extension language.
11553 (gdbpy_finish_initialization) Renamed from
11554 finish_python_initialization, made static. New arg extlang.
11555 (gdbpy_initialized): New function.
11556 * python/python.h: #include "extension.h". Delete #include
11557 "value.h", "mi/mi-cmds.h".
11558 (extension_language_python): Declare.
11559 (GDBPY_AUTO_FILE_NAME): Delete.
11560 (enum py_bt_status): Moved to extension.h and renamed to
11561 ext_lang_bt_status.
11562 (enum frame_filter_flags): Moved to extension.h.
11563 (enum py_frame_args): Moved to extension.h and renamed to
11564 ext_lang_frame_args.
11565 (finish_python_initialization): Delete.
11566 (eval_python_from_control_command): Delete.
11567 (source_python_script): Delete.
11568 (apply_val_pretty_printer): Delete.
11569 (apply_frame_filter): Delete.
11570 (preserve_python_values): Delete.
11571 (gdbpy_script_language_defn): Delete.
11572 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11573 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11574
11575 * auto-load.c: #include "extension.h".
11576 (GDB_AUTO_FILE_NAME): Delete.
11577 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11578 (script_language_gdb): Delete, moved to extension.c and renamed to
11579 extension_language_gdb.
11580 (source_gdb_script_for_objfile): Delete.
11581 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11582 (loaded_script): Change type of language member to
11583 struct extension_language_defn *.
11584 (init_loaded_scripts_info): Initialize
11585 unsupported_script_warning_printed.
11586 (maybe_add_script): Make static. Change type of language arg to
11587 struct extension_language_defn *.
11588 (clear_section_scripts): Reset unsupported_script_warning_printed.
11589 (auto_load_objfile_script_1): Rewrite to use extension language API.
11590 (auto_load_objfile_script): Make public. Remove support-compiled-in
11591 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11592 (source_section_scripts): Rewrite to use extension language API.
11593 (load_auto_scripts_for_objfile): Rewrite to use
11594 auto_load_scripts_for_objfile.
11595 (collect_matching_scripts_data): Change type of language member to
11596 struct extension_language_defn *.
11597 (auto_load_info_scripts): Change type of language arg to
11598 struct extension_language_defn *.
11599 (unsupported_script_warning_print): New function.
11600 (script_not_found_warning_print): Make static.
11601 (_initialize_auto_load): Rewrite construction of scripts-directory
11602 help.
11603 * auto-load.h (struct objfile): Add forward decl.
11604 (struct script_language): Delete.
11605 (struct auto_load_pspace_info): Add forward decl.
11606 (struct extension_language_defn): Add forward decl.
11607 (maybe_add_script): Delete.
11608 (auto_load_objfile_script): Declare.
11609 (script_not_found_warning_print): Delete.
11610 (auto_load_info_scripts): Update prototype.
11611 (auto_load_gdb_scripts_enabled): Declare.
11612 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11613 auto_load_python_scripts_enabled and made public.
11614 (script_language_python): Delete, moved to python.c.
11615 (gdbpy_script_language_defn): Delete.
11616 (info_auto_load_python_scripts): Update to use
11617 extension_language_python.
11618
11619 * breakpoint.c (condition_command): Replace call to
11620 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11621 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11622 with call to breakpoint_ext_lang_cond_says_stop.
11623 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11624 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11625 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11626 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11627 New arg slang.
11628 (local_setattro): Print name of extension language with existing
11629 stop condition.
11630
11631 * valprint.c (val_print, value_print): Update to call
11632 apply_ext_lang_val_pretty_printer.
11633 * cp-valprint.c (cp_print_value): Update call to
11634 apply_ext_lang_val_pretty_printer.
11635 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11636 (gdbpy_apply_val_pretty_printer): Renamed from
11637 apply_val_pretty_printer. New arg extlang.
11638 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11639
11640 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11641 extension language API.
11642 * cli/cli-script.c (execute_control_command): Update to call
11643 eval_ext_lang_from_control_command.
11644
11645 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11646 enum ext_lang_bt_status values. Update call to
11647 apply_ext_lang_frame_filter.
11648 (mi_cmd_stack_list_locals): Ditto.
11649 (mi_cmd_stack_list_args): Ditto.
11650 (mi_cmd_stack_list_variables): Ditto.
11651 * mi/mi-main.c: Delete #include "python/python-internal.h".
11652 Add #include "extension.h".
11653 (mi_cmd_list_features): Replace reference to python internal variable
11654 gdb_python_initialized with call to ext_lang_initialized_p.
11655
11656 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11657 Update to use enum ext_lang_frame_args. Update to call
11658 apply_ext_lang_frame_filter.
11659 * python/py-framefilter.c (extract_sym): Update to use enum
11660 ext_lang_bt_status.
11661 (extract_value, py_print_type, py_print_value): Ditto.
11662 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11663 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11664 (py_print_frame): Ditto.
11665 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11666 New arg extlang. Update to use enum ext_lang_bt_status.
11667
11668 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11669 finish_python_initialization. Replace with call to
11670 finish_ext_lang_initialization.
11671
11672 * typeprint.c (do_free_global_table): Update to call
11673 free_ext_lang_type_printers.
11674 (create_global_typedef_table): Update to call
11675 start_ext_lang_type_printers.
11676 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11677 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11678 (type_print_options): Change type of global_printers from "void *"
11679 to "struct ext_lang_type_printers *".
11680
11681 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11682 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11683 (gdbpy_preserve_values): Renamed from preserve_python_values.
11684 New arg extlang.
11685 (!HAVE_PYTHON, preserve_python_values): Delete.
11686
11687 * utils.c (quit_flag): Delete, moved to extension.c.
11688 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11689 extension.c.
11690
11691 * eval.c: Delete #include "python/python.h".
11692 * main.c: Delete #include "python/python.h".
11693
11694 * defs.h: Update comment.
11695
6af79985
JB
116962014-02-06 Joel Brobecker <brobecker@adacore.com>
11697
11698 GDB 7.7 released.
11699
12c5175d
MK
117002014-02-05 Mark Kettenis <kettenis@gnu.org>
11701
11702 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11703 defined.
11704
8dc5b319
YQ
117052014-02-05 Yao Qi <yao@codesourcery.com>
11706
11707 * remote.c (remote_pass_signals): Remove local 'buf' and use
11708 rs->buf.
11709 (remote_program_signals): Likewise.
11710
de7b2893
YQ
117112014-02-05 Yao Qi <yao@codesourcery.com>
11712
11713 * ctf.c: Include "inferior.h" and "gdbthread.h".
11714 (CTF_PID): A new macro.
11715 (ctf_open): Call inferior_appeared and add_thread_silent.
11716 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11717 (ctf_thread_alive): New function.
11718 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11719
66d032ac
YQ
117202014-02-05 Yao Qi <yao@codesourcery.com>
11721
11722 Revert this patch:
11723
11724 2013-05-24 Yao Qi <yao@codesourcery.com>
11725
11726 * tracepoint.c (TFILE_PID): Remove.
11727 (tfile_open): Don't add thread and inferior.
11728 (tfile_close): Don't set 'inferior_ptid'. Don't call
11729 exit_inferior_silent.
11730 (tfile_thread_alive): Remove.
11731 (init_tfile_ops): Don't set field 'to_thread_alive' of
11732 tfile_ops.
11733
f4ccffad
CE
117342014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11735
11736 * remote.c (remote_start_remote): Call remote_check_symbols even
11737 if only symbol-file (not file) has been given.
11738
591a12a1
UW
117392014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11740
11741 * gdbarch.sh (skip_entrypoint): New callback.
11742 * gdbarch.c, gdbarch.h: Regenerate.
11743 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11744 * infrun.c (fill_in_stop_func): Likewise.
11745 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11746 (ppc_elfv2_elf_make_msymbol_special): New function.
11747 (ppc_elfv2_skip_entrypoint): Likewise.
11748 (ppc_linux_init_abi): Install them for ELFv2.
11749
cc0e89c5
UW
117502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11751
11752 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11753 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11754 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11755 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11756 structures returned in GPRs.
11757
52f548e4
UW
117582014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11759
11760 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11761 offset to the stack parameter list for the ELFv2 ABI.
11762
d4094b6a
UW
117632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11764
11765 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11766 set_gdbarch_convert_from_func_ptr_addr and
11767 set_gdbarch_elf_make_msymbol_special for ELFv1.
11768 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11769 function descriptors on ELFv1.
11770 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11771 set up r12 at function entry.
11772
cd453cd0
UW
117732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11774
11775 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11776 (struct gdbarch_tdep): New member elf_abi.
11777
11778 * rs6000-tdep.c: Include "elf/ppc64.h".
11779 (rs6000_gdbarch_init): Detect ELF ABI version.
11780
0ff3e01f
UW
117812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11782
11783 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11784 within a register pair holding a DFP 128-bit value on little-endian.
11785 (ppc64_sysv_abi_return_value_base): Likewise.
11786 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11787 (dfp_pseudo_register_write): Likewise.
11788
5b757e5d
UW
117892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11790
11791 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11792 offset on little-endian when passing _Decimal32.
11793 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11794
084ee545
UW
117952014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11796
11797 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11798 of the overlapped FP register within the VSX register on little-
11799 endian platforms.
11800 (efpr_pseudo_register_write): Likewise.
11801
d63167af
UW
118022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11803
11804 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11805 offset on little-endian when passing small structures.
11806
e765b44c
UW
118072014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11808
11809 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11810 (struct ppc64_sysv_argpos): New data structure.
11811 (ppc64_sysv_abi_push_float): Remove.
11812 (ppc64_sysv_abi_push_val): New function.
11813 (ppc64_sysv_abi_push_integer): Likewise.
11814 (ppc64_sysv_abi_push_freg): Likewise.
11815 (ppc64_sysv_abi_push_vreg): Likewise.
11816 (ppc64_sysv_abi_push_param): Likewise.
11817 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11818 (ppc64_sysv_abi_return_value_base): New function.
11819 (ppc64_sysv_abi_return_value): Refactor to use it.
11820
36c24d95
UW
118212014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11822
11823 * NEWS: Document new target powerpc64le-*-linux*.
11824
26fd9228
MK
118252014-02-04 Mark Kettenis <kettenis@gnu.org>
11826
11827 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11828 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11829 core dumps.
11830 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11831 register set used in ELF core dumps. Add floating-point register set.
11832
c5bb7362
KB
118332014-02-03 Kevin Buettner <kevinb@redhat.com>
11834
74228e77 11835 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11836 dwarf2_to_gdb[] table using symbolic constants. Adjust
11837 penultimate entry from number representing the PC register
11838 to symbolic constant representing the MDR register. Add
11839 constant for the PC register to the end of the table.
11840
af09351e
MK
118412014-02-03 Mark Kettenis <kettenis@gnu.org>
11842
11843 * bsd-kvm.c: Include <sys/param.h>
11844
8507e05d
MK
118452014-02-03 Mark Kettenis <kettenis@gnu.org>
11846
11847 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11848
ae56bfb8
JB
118492014-01-31 Joel Brobecker <brobecker@adacore.com>
11850
11851 * ada-lang.h (clear_ada_sym_cache): Delete.
11852
718ee4dc
UW
118532014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11854
11855 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11856
401e27fd
JM
118572014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11858
11859 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11860 the sigreturn register save area only if the syscall is
11861 sigreturn.
11862
a7c88acd
JB
118632014-01-29 Joel Brobecker <brobecker@adacore.com>
11864
11865 * valops.c (value_slice): Minor reformatting.
11866
fa0079ea
UW
118672014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11868
11869 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11870
c6044dd1
JB
118712014-01-28 Joel Brobecker <brobecker@adacore.com>
11872
11873 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11874 New static globals.
11875 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11876 (ada_ignore_descriptive_types_p): New static global.
11877 (find_parallel_type_by_descriptive_type): Return immediately
11878 if ada_ignore_descriptive_types_p is set.
11879 (_initialize_ada_language): Register new commands "maintenance
11880 set ada", "maintenance show ada", "maintenance set ada
11881 ignore-descriptive-types" and "maintenance show ada
11882 ignore-descriptive-types".
11883 * NEWS: Add entry for new "maint ada set/show
11884 ignore-descriptive-types" commands.
11885
568e808b
MM
118862014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11887
11888 * record-btrace.c (record_btrace_close): Call btrace_teardown
11889 for all threads.
11890
467d141b
JB
118912014-01-27 Joel Brobecker <brobecker@adacore.com>
11892
11893 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11894 "ui-out.h".
11895
fb151210
JB
118962014-01-27 Joel Brobecker <brobecker@adacore.com>
11897
11898 * ada-typeprint (type_is_full_subrange_of_target_type):
11899 New function.
11900 (print_range): Add parameter bounds_prefered_p. If not set,
11901 try printing range types using the name of their base type.
11902 (print_range_type): Add parameter bounds_prefered_p.
11903 Use it in call to print_range.
11904 (print_array_type, ada_print_type): Update calls to print_range
11905 and print_range_type.
11906
aba02109
JB
119072014-01-27 Joel Brobecker <brobecker@adacore.com>
11908
11909 * ada-typeprint.c (print_array_type, print_choices, print_range)
11910 (print_range_bound, print_dynamic_range_bound, print_range_type):
11911 Remove declaration.
11912
e62e21fd
JB
119132014-01-27 Joel Brobecker <brobecker@adacore.com>
11914
11915 * ada-typeprint.c (print_range): Add missing empty line
11916 after local declaration.
11917
859cf5d1
JB
119182014-01-27 Joel Brobecker <brobecker@adacore.com>
11919
11920 * ada-valprint.c (print_optional_low_bound): Get index_type's
11921 target type for as long as it is a TYPE_CODE_RANGE.
11922
25790f6f
JB
119232014-01-27 Joel Brobecker <brobecker@adacore.com>
11924
11925 * procfs.c (procfs_make_note_section): Remove assertion and
11926 associated comment.
11927
6b6aa828
YQ
119282014-01-24 Yao Qi <yao@codesourcery.com>
11929
11930 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11931 * corelow.c (get_core_siginfo): Likewise.
11932
5d6df423
YQ
119332014-01-24 Yao Qi <yao@codesourcery.com>
11934
11935 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11936 ULONGEST. Don't check 'len' is negative.
11937 (remote_write_bytes): Change type of 'len' to ULONGEST.
11938
83b645b8
TT
119392014-01-23 Tom Tromey <tromey@redhat.com>
11940
11941 PR python/16485:
11942 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11943 Handle exception from frame.block.
11944 (FrameVars.fetch_frame_locals): Likewise.
11945
0740f8d8
TT
119462014-01-23 Tom Tromey <tromey@redhat.com>
11947
11948 PR python/16487:
11949 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11950 on a NULL pointer. Move "goto error" to correct place.
11951
21909fa1
TT
119522014-01-23 Tom Tromey <tromey@redhat.com>
11953
11954 PR python/16491:
11955 * python/py-framefilter.c (apply_frame_filter): Call
11956 ensure_python_env after computing gdbarch.
11957
17fde6d0
YQ
119582014-01-23 Yao Qi <yao@codesourcery.com>
11959
11960 * target.c (raw_memory_xfer_partial): Change argument type
11961 from void * to gdb_byte *.
11962 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11963
87ce2a04
DE
119642014-01-22 Doug Evans <dje@google.com>
11965
11966 New gdbserver option --debug-format=timestamp.
11967 * NEWS: Mention it.
11968
237b092b
AA
119692014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11970
11971 * syscalls/s390x-linux.xml: New file.
11972 * syscalls/s390-linux.xml: New file.
11973 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11974 (XML_SYSCALL_FILENAME_S390X): Likewise.
11975 (op_svc): New enum value for SVC opcode.
11976 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11977 (s390_linux_get_syscall_number): New function.
11978 (s390_gdbarch_init): Register '*get_syscall_number' and the
11979 syscall xml file name.
11980 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11981 "s390-linux.xml" and "s390x-linux.xml".
11982 * NEWS: Announce new feature.
11983
54bff650
BS
119842014-01-22 Baruch Siach <baruch@tkos.co.il>
11985
11986 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11987
14e361d7
PA
119882014-01-22 Pedro Alves <palves@redhat.com>
11989
11990 * xtensa-config.c: Include defs.h.
11991
46bbb3ed
JB
119922014-01-22 Joel Brobecker <brobecker@adacore.com>
11993
11994 * common/common-utils.h: Add "ARI:" comment beside __func__
11995 reference.
11996
3a80edfc
JB
119972014-01-22 Joel Brobecker <brobecker@adacore.com>
11998
11999 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12000 documentation a bit.
12001
4869db5e
RM
120022014-01-21 Roland McGrath <mcgrathr@google.com>
12003
12004 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12005 * configure: Regenerate.
12006 * aclocal.m4: Regenerate.
12007 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12008 New substituted variables.
12009 (install-strip): New target.
12010 (INSTALL_SCRIPT): New substituted variable.
12011 (FLAGS_TO_PASS): Add it.
12012 (install-only): Use $(INSTALL_SCRIPT) rather than
12013 $(INSTALL_PROGRAM) for gcore.
12014
9ea4267d
TT
120152014-01-20 Tom Tromey <tromey@redhat.com>
12016
12017 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12018 together.
12019
1f2bdf09
TT
120202014-01-20 Tom Tromey <tromey@redhat.com>
12021
12022 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12023 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12024 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12025 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12026 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12027 (struct cmd_list_element) <flags>: Remove.
12028 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12029 doc_allocated>: New fields.
12030 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12031 bitfields.
12032 * maint.c (maintenance_do_deprecate): Update.
12033 * top.c (execute_command): Update.
12034
e671835b
BS
120352014-01-20 Baruch Siach <baruch@tkos.co.il>
12036
12037 * xtensa-linux-nat.c: Include asm/ptrace.h.
12038
50367cd2
IB
120392014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12040
12041 * Makefile.in (SFILES): Add d-support.c.
12042 (COMMON_OBS): Add d-support.o.
12043 * d-lang.h (d_parse_symbol): Add comment, now defined in
12044 d-support.c.
12045 * d-lang.c (parse_call_convention)
12046 (parse_attributes, parse_function_types)
12047 (parse_function_args, parse_type, parse_identifier)
12048 (call_convention_p, d_parse_symbol): Move functions to ...
12049 * d-support.c: ... New file.
12050
ec9f644a
IB
120512014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12052
12053 * d-lang.h (d_parse_symbol): Add declaration.
12054 * d-lang.c (extract_identifiers)
12055 (extract_type_info): Remove functions.
12056 (parse_call_convention, parse_attributes)
12057 (parse_function_types, parse_function_args)
12058 (parse_type, parse_identifier, call_convention_p)
12059 (d_parse_symbol): New functions.
12060 (d_demangle): Use d_parse_symbol to demangle D symbols.
12061
94b1b47e
IB
120622014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12063
12064 * d-lang.h (struct builtin_d_type): New data type.
12065 (builtin_d_type): Add declaration.
12066 * d-lang.c (d_language_arch_info, build_d_types)
12067 (builtin_d_type): New functions.
12068 (enum d_primitive_types): New data type.
12069 (d_language_defn): Change c_language_arch_info to
12070 d_language_arch_info.
12071 (d_type_data): New static variable.
12072 (_initialize_d_language): Initialize d_type_data.
12073
63778547
IB
120742014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12075
12076 * d-lang.h (d_main_name): Add declaration.
12077 * d-lang.c (d_main_name): New function.
12078 * symtab.c (find_main_name): Add call to d_main_name.
12079
3271ba66
IB
120802014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12081
12082 * d-lang.c (d_language_defn): Change macro_expansion_c to
12083 macro_expansion_no.
12084
d36b3012
IB
120852014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12086
12087 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12088
c90a6fb7
SDJ
120892014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12090
12091 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12092 gdb_exception" declaration.
12093 * remote.c (getpkt_or_notif_sane): Likewise.
12094
749234e5
DE
120952014-01-17 Doug Evans <dje@google.com>
12096
12097 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12098 function, contents of dirnames_to_char_ptr_vec_append moved here.
12099 (delim_string_to_char_ptr_vec): New function.
12100 (dirnames_to_char_ptr_vec_append): Rewrite.
12101 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12102
df049a58
DE
121032014-01-17 Doug Evans <dje@google.com>
12104
12105 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12106 and moved here ...
12107 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12108 #include "common-utils.h".
12109 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12110 * common/vec.h (VEC_ASSERT_PASS): Update.
12111 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12112 (MACH_CHECK_ERROR): Update.
12113
69f97648
SM
121142014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12115
12116 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12117 comments.
12118 * gdbarch.h: Regenerate.
12119
98b1cfdc
TT
121202014-01-16 Tom Tromey <tromey@redhat.com>
12121
12122 * value.c (struct value) <regnum>: Move earlier.
12123
77a19445
TT
121242014-01-16 Tom Tromey <tromey@redhat.com>
12125
12126 * remote.c (extended_remote_create_inferior): Rename from
12127 extended_remote_create_inferior_1. Add "ops" argument. Remove
12128 old implementation.
12129
62261490
PA
121302014-01-16 Pedro Alves <palves@redhat.com>
12131
12132 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12133 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12134 the backchain.
12135
4d65956b
DE
121362014-01-16 Doug Evans <dje@google.com>
12137
12138 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12139
52834460
MM
121402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12141
12142 * btrace.h (btrace_thread_flag): New.
12143 (struct btrace_thread_info) <flags>: New.
12144 * record-btrace.c (record_btrace_resume_thread)
12145 (record_btrace_find_thread_to_move, btrace_step_no_history)
12146 (btrace_step_stopped, record_btrace_start_replaying)
12147 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12148 (record_btrace_find_resume_thread): New.
12149 (record_btrace_resume, record_btrace_wait): Extend.
12150 (record_btrace_can_execute_reverse): New.
12151 (record_btrace_open): Fail in non-stop mode.
12152 (record_btrace_set_replay): Split into this, ...
12153 (record_btrace_stop_replaying): ... this, ...
12154 (record_btrace_clear_histories): ... and this.
12155 (init_record_btrace_ops): Init to_can_execute_reverse.
12156 * NEWS: Announce it.
12157
118e6252
MM
121582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12159
12160 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12161 (forward_target_decr_pc_after_break)
12162 (target_decr_pc_after_break): New.
12163 * target.c (forward_target_decr_pc_after_break)
12164 (target_decr_pc_after_break): New.
12165 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12166 instead of gdbarch_decr_pc_after_break.
12167 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12168 instead of gdbarch_decr_pc_after_break.
12169 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12170 instead of gdbarch_decr_pc_after_break.
12171 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12172 instead of gdbarch_decr_pc_after_break.
12173 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12174 instead of gdbarch_decr_pc_after_break.
12175 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12176 instead of gdbarch_decr_pc_after_break.
12177
6e07b1d2
MM
121782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12179
12180 * btrace.c: Include regcache.h.
12181 (btrace_add_pc): New.
12182 (btrace_enable): Call btrace_add_pc.
12183 (btrace_is_empty): New.
12184 * btrace.h (btrace_is_empty): New.
12185 * record-btrace.c (require_btrace, record_btrace_info): Call
12186 btrace_is_empty.
12187
969c39fb
MM
121882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12189
12190 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12191 Support delta reads.
12192 (linux_disable_btrace): Change return type.
12193 * common/linux-btrace.h (linux_read_btrace): Change parameters
12194 and return type to allow error reporting. Update users.
12195 (linux_disable_btrace): Change return type. Update users.
12196 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12197 New.
12198 (btrace_error): New.
12199 (btrace_block) <begin>: Comment on BEGIN == 0.
12200 * btrace.c (btrace_compute_ftrace): Start from the end of
12201 the current trace.
12202 (btrace_stitch_trace, btrace_clear_history): New.
12203 (btrace_fetch): Read delta trace, return if replaying.
12204 (btrace_clear): Move clear history code to btrace_clear_history.
12205 (parse_xml_btrace): Throw an error if parsing failed.
12206 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12207 and return type to allow error reporting.
12208 (target_read_btrace): Change parameters and return type to allow
12209 error reporting.
12210 * target.c (target_read_btrace): Update.
12211 * remote.c (remote_read_btrace): Support delta reads. Pass
12212 errors on.
12213 * NEWS: Announce it.
12214
0b722aec
MM
122152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12216
12217 * record.h (record_btrace_frame_unwind)
12218 (record_btrace_tailcall_frame_unwind): New declarations.
12219 * dwarf2-frame: Include record.h
12220 (dwarf2_frame_cfa): Throw an error for btrace frames.
12221 * record-btrace.c: Include hashtab.h.
12222 (btrace_get_bfun_name): New.
12223 (btrace_call_history): Call btrace_get_bfun_name.
12224 (struct btrace_frame_cache): New.
12225 (bfcache): New.
12226 (bfcache_hash, bfcache_eq, bfcache_new): New.
12227 (btrace_get_frame_function): New.
12228 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12229 (record_btrace_frame_this_id): Compute own id.
12230 (record_btrace_frame_prev_register): Provide PC, throw_error
12231 for all other registers.
12232 (record_btrace_frame_sniffer): Detect btrace frames.
12233 (record_btrace_tailcall_frame_sniffer): New.
12234 (record_btrace_frame_dealloc_cache): New.
12235 (record_btrace_frame_unwind): Add new functions.
12236 (record_btrace_tailcall_frame_unwind): New.
12237 (_initialize_record_btrace): Allocate cache.
12238 * btrace.c (btrace_clear): Call reinit_frame_cache.
12239 * NEWS: Announce it.
12240
066ce621
MM
122412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12242
12243 * record-btrace.c (record_btrace_set_replay)
12244 (record_btrace_goto_begin, record_btrace_goto_end)
12245 (record_btrace_goto): New.
12246 (init_record_btrace_ops): Initialize them.
12247 * NEWS: Announce it.
12248
e2887aa3
MM
122492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12250
12251 * record-btrace.c (record_btrace_find_new_threads)
12252 (record_btrace_thread_alive): New.
12253 (init_record_btrace_ops): Initialize to_find_new_threads and
12254 to_thread_alive.
12255
b2f4cfde
MM
122562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12257
12258 * record-btrace.c (record_btrace_resume): New.
12259 (record_btrace_wait): New.
12260 (init_record_btrace_ops): Initialize to_wait and to_resume.
12261
633785ff
MM
122622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12263
12264 * record-btrace.c (record_btrace_xfer_partial)
12265 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12266 (record_btrace_allow_memory_access): New.
12267 (init_record_btrace_ops): Initialize new methods.
12268 * target.c (raw_memory_xfer_partial): Bail out if target reports
12269 that this memory is not available.
12270
3db08215
MM
122712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12272
12273 * target.h (target_ops) <to_insert_breakpoint>
12274 <to_remove_breakpoint>: Add target_ops parameter.
12275 (forward_target_insert_breakpoint): New.
12276 (forward_target_remove_breakpoint): New.
12277 (memory_remove_breakpoint, memory_insert_breakpoint):
12278 Add target_ops parameter.
12279 * target.c (target_insert_breakpoint): Split into this and ...
12280 (forward_target_insert_breakpoint): ... this.
12281 (target_remove_breakpoint): Split into this and ...
12282 (forward_target_remove_breakpoint): ... this.
12283 (debug_to_insert_breakpoint): Add target_ops parameter.
12284 Call forward_target_insert_breakpoint.
12285 (debug_to_remove_breakpoint): Add target_ops parameter.
12286 Call forward_target_remove_breakpoint.
12287 (update_current_target): Do not inherit or default to_insert_breakpoint
12288 and to_remove_breakpoint.
12289 * corelow.c (ignore): Add target_ops parameter.
12290 * exec.c (ignore): Add target_ops parameter.
12291 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12292 Add target_ops parameter.
12293 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12294 Add target_ops parameter.
12295 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12296 Add target_ops parameter.
12297 * record-full.c (record_full_beneath_to_insert_breakpoint)
12298 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12299 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12300 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12301 (record_full_core_remove_breakpoint): Add target_ops parameter.
12302 Update users.
12303 (record_full_beneath_to_insert_breakpoint_ops)
12304 (record_full_beneath_to_remove_breakpoint_ops)
12305 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12306 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12307 tmp_to_remove_breakpoint_ops,
12308 record_full_beneath_to_insert_breakpoint_ops, and
12309 record_full_beneath_to_remove_breakpoint_ops.
12310 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12311 (m32r_remove_breakpoint): Add target_ops parameter.
12312 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12313 Add target_ops parameter.
12314 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12315 Add target_ops parameter.
12316
cecac1ab
MM
123172014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12318 Markus Metzger <markus.t.metzger@intel.com>
12319
12320 * record-btrace.c: Include frame-unwind.h.
12321 (record_btrace_frame_unwind_stop_reason)
12322 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12323 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12324 New.
12325 (init_record_btrace_ops): Install it.
12326
824344ca
MM
123272014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12328
12329 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12330 get_prev_frame_1.
12331
32261e52
MM
123322014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12333
12334 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12335 earlier.
12336
ea001bdc
MM
123372014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12338
12339 * frame-unwind.c: Include target.h.
12340 (frame_unwind_try_unwinder): New function with code from ...
12341 (frame_unwind_find_by_frame): ... here. New variable
12342 unwinder_from_target, call also target_get_unwinder)
12343 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12344 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12345 * target.h (struct target_ops): New fields to_get_unwinder and
12346 to_get_tailcall_unwinder.
12347 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12348
1f3ef581
MM
123492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12350
12351 * record-btrace.c (record_btrace_fetch_registers)
12352 (record_btrace_store_registers)
12353 (record_btrace_to_prepare_to_store): New.
12354 (init_record_btrace_ops): Add the above.
12355
f32dbf8c
MM
123562014-01-16 Tom Tromey <tromey@redhat.com>
12357
12358 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12359 * target.h (struct target_ops) <to_prepare_to_store>: Add
12360 argument.
12361 (target_prepare_to_store): Add argument.
12362 * target.c (debug_to_prepare_to_store): Add argument.
12363 (update_current_target): Update.
12364 * remote.c (remote_prepare_to_store): Add 'self' argument.
12365 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12366 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12367 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12368 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12369 argument.
12370 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12371 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12372 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12373 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12374 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12375
07bbe694
MM
123762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12377
12378 * btrace.h (replay) <replay>: New.
12379 (btrace_is_replaying): New.
12380 * btrace.c (btrace_clear): Free replay iterator.
12381 (btrace_is_replaying): New.
12382 * record-btrace.c (record_btrace_is_replaying): New.
12383 (record_btrace_info): Print insn number if replaying.
12384 (record_btrace_insn_history): Start at replay position.
12385 (record_btrace_call_history): Start at replay position.
12386 (init_record_btrace_ops): Init to_record_is_replaying.
12387
0688d04e
MM
123882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12389
12390 * record-btrace.c (record_btrace_insn_history_range): Include
12391 end.
12392 (record_btrace_insn_history_from): Adjust range.
12393 (record_btrace_call_history_range): Include
12394 end.
12395 (record_btrace_call_history_from): Adjust range.
12396 * NEWS: Announce changes.
12397
8710b709
MM
123982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12399
12400 * record.h (enum record_print_flag)
12401 <record_print_indent_calls>: New.
12402 * record.c (get_call_history_modifiers): Recognize /c modifier.
12403 (_initialize_record): Document /c modifier.
12404 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12405 Reorder fields. Optionally indent the function name. Update
12406 all users.
12407 * NEWS: Announce changes.
12408
d0fa7535
MM
124092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12410
12411 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12412
5de9129b
MM
124132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12414
12415 * btrace.c (ftrace_new_function): Start counting at one.
12416 * record-btrace.c (record_btrace_info): Adjust number of calls
12417 and insns.
12418 * NEWS: Announce it.
12419
7acbe133
MM
124202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12421
12422 * record-btrace.c (btrace_call_history_insn_range): Print
12423 insn range as [begin, end].
12424
23a7fe75
MM
124252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12426
12427 * btrace.h (struct btrace_func_link): New.
12428 (enum btrace_function_flag): New.
12429 (struct btrace_inst): Rename to ...
12430 (struct btrace_insn): ...this. Update all users.
12431 (struct btrace_func) <ibegin, iend>: Remove.
12432 (struct btrace_func_link): New.
12433 (struct btrace_func): Rename to ...
12434 (struct btrace_function): ...this. Update all users.
12435 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12436 (number, level, flags>: New.
12437 (struct btrace_insn_iterator): Rename to ...
12438 (struct btrace_insn_history): ...this.
12439 Update all users.
12440 (struct btrace_insn_iterator, btrace_call_iterator): New.
12441 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12442 (struct btrace_target_info) <begin, end, level>
12443 <insn_history, call_history>: New.
12444 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12445 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12446 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12447 (btrace_call_number, btrace_call_begin, btrace_call_end)
12448 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12449 (btrace_find_function_by_number, btrace_set_insn_history)
12450 (btrace_set_call_history): New.
12451 * btrace.c (btrace_init_insn_iterator)
12452 (btrace_init_func_iterator, compute_itrace): Remove.
12453 (ftrace_print_function_name, ftrace_print_filename)
12454 (ftrace_skip_file): Change
12455 parameter to const.
12456 (ftrace_init_func): Remove.
12457 (ftrace_debug): Use new btrace_function fields.
12458 (ftrace_function_switched): Also consider gaining and
12459 losing symbol information).
12460 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12461 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12462 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12463 New.
12464 (ftrace_new_function): Move. Remove debug print.
12465 (ftrace_update_lines, ftrace_update_insns): New.
12466 (ftrace_update_function): Check for call, ret, and jump.
12467 (compute_ftrace): Renamed to ...
12468 (btrace_compute_ftrace): ...this. Rewritten to compute call
12469 stack.
12470 (btrace_fetch, btrace_clear): Updated.
12471 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12472 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12473 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12474 (btrace_call_number, btrace_call_begin, btrace_call_end)
12475 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12476 (btrace_find_function_by_number, btrace_set_insn_history)
12477 (btrace_set_call_history): New.
12478 * record-btrace.c (require_btrace): Use new btrace thread
12479 info fields.
12480 (record_btrace_info, btrace_insn_history)
12481 (record_btrace_insn_history, record_btrace_insn_history_range):
12482 Use new btrace thread info fields and new iterator.
12483 (btrace_func_history_src_line): Rename to ...
12484 (btrace_call_history_src_line): ...this. Use new btrace
12485 thread info fields.
12486 (btrace_func_history): Rename to ...
12487 (btrace_call_history): ...this. Use new btrace thread info
12488 fields and new iterator.
12489 (record_btrace_call_history, record_btrace_call_history_range):
12490 Use new btrace thread info fields and new iterator.
12491
8372a7cb
MM
124922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12493
12494 * frame.h (frame_id_build_unavailable_stack_special): New.
12495 * frame.c (frame_id_build_unavailable_stack_special): New.
12496
c2170eef
MM
124972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12498
12499 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12500 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12501 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12502 to gdbarch.
12503 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12504 (i386_insn_is_jump, i386_jmp_p): New.
12505 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12506 insn_is_jump to gdbarch.
12507 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12508 * gdbarch.h: Regenerated.
12509 * gdbarch.c: Regenerated.
12510 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12511 (default_insn_is_jump): New.
12512 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12513 (default_insn_is_jump): New.
12514
864089d2
MM
125152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12516
12517 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12518 Change to ...
12519 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12520 (btrace_read_type) <btrace_read_new>: Change to ...
12521 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12522
ed9edfb5
MM
125232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12524
12525 * common/linux-btrace.c (linux_read_btrace): Free trace from
12526 previous iteration.
12527
fbcbc3fd
DE
125282014-01-15 Doug Evans <dje@google.com>
12529
12530 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12531 uint32_t.
12532
3d548a53
TT
125332014-01-15 Tom Tromey <tromey@redhat.com>
12534
12535 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12536 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12537 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12538 (set_objfile_main_name): New function.
12539 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12540 language_of_main>: New fields.
12541 (set_objfile_main_name): Declare.
12542 * symtab.c (find_main_name): Loop over objfiles to find the main
12543 name and language.
12544 (set_main_name): Now static.
12545 (get_main_info): Add comment.
12546 * symtab.h (set_main_name): Don't declare.
12547
32ac0d11
TT
125482014-01-15 Tom Tromey <tromey@redhat.com>
12549
12550 * symtab.c (main_progspace_key): New global.
12551 (struct main_info): New.
12552 (name_of_main, language_of_main): Remove.
12553 (get_main_info, main_info_cleanup): New function.
12554 (set_main_name, main_name, main_language): Use get_main_info.
12555 (_initialize_symtab): Initialize main_progspace_key.
12556
9e6c82ad
TT
125572014-01-15 Tom Tromey <tromey@redhat.com>
12558
12559 * dbxread.c (process_one_symbol): Update.
12560 * dwarf2read.c (read_partial_die): Update.
12561 * symfile.c (set_initial_language): Call main_language.
12562 * symtab.c (language_of_main): Now static.
12563 (set_main_name): Add 'lang' parameter.
12564 (find_main_name): Update.
12565 (main_language): New function.
12566 (symtab_observer_executable_changed): Update.
12567 * symtab.h (set_main_name): Update.
12568 (language_of_main): Remove.
12569 (main_language): Declare.
12570
6ef55de7
TT
125712014-01-15 Tom Tromey <tromey@redhat.com>
12572
12573 * symfile.c (init_entry_point_info): Use new "initialized" field.
12574 Update.
12575 * objfiles.h (struct entry_point) <initialized>: New field.
12576 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12577 (struct objfile) <ei>: ...here. Remove.
12578 * objfiles.c (entry_point_address_query): Update.
12579
53eddfa6
TT
125802014-01-15 Tom Tromey <tromey@redhat.com>
12581
12582 * objfiles.c (entry_point_address_query): Relocate entry point
12583 address.
12584 (objfile_relocate1): Do not relocate entry point address.
12585 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12586 <the_bfd_section_index>: New field.
12587 * symfile.c (init_entry_point_info): Find the entry point's
12588 section.
12589
d56e56aa
TT
125902014-01-15 Tom Tromey <tromey@redhat.com>
12591
12592 * solib-frv.c (enable_break): Use entry_point_address_query.
12593
33a97bbe
OJ
125942014-01-15 Omair Javaid <omair.javaid@linaro.org>
12595
12596 * NEWS: Add note on improved process record-replay on
12597 arm*-linux* targets.
12598
c6ec2b30
OJ
125992014-01-15 Omair Javaid <omair.javaid@linaro.org>
12600
12601 * arm-tdep.c (enum arm_record_result): New enum.
12602 (arm_record_unsupported_insn): New function.
12603 (arm_record_coproc_data_proc): Removed.
12604 (thumb2_record_ld_st_multiple): New function.
12605 (thumb2_record_ld_st_dual_ex_tbb): New function.
12606 (thumb2_record_data_proc_sreg_mimm): New function.
12607 (thumb2_record_ps_dest_generic): New function.
12608 (thumb2_record_branch_misc_cntrl): New function.
12609 (thumb2_record_str_single_data): New function.
12610 (thumb2_record_ld_mem_hints): New function.
12611 (thumb2_record_ld_word): New function.
12612 (thumb2_record_lmul_lmla_div): New function.
12613 (thumb2_record_decode_insn_handler): New function.
12614 (decode_insn): Add thumb32 instruction handlers.
12615
97dfe206
OJ
126162014-01-15 Omair Javaid <omair.javaid@linaro.org>
12617
12618 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12619 (struct arm_linux_record_tdep): Declare.
12620 (arm_canonicalize_syscall): New function.
12621 (arm_all_but_pc_registers_record): New function.
12622 (arm_linux_syscall_record): New function.
12623 (arm_linux_init_abi): Add syscall recording constructs.
12624 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12625 decoding. (arm_record_coproc_data_proc): Update arm syscall
12626 decoding.
12627 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12628 <arm_syscall_record>: New field.
12629 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12630 gdb_target_obs.
12631
9904a494
OJ
126322014-01-15 Omair Javaid <omair.javaid@linaro.org>
12633
12634 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12635 register for push instruction recording.
12636
f969241e
OJ
126372014-01-15 Omair Javaid <omair.javaid@linaro.org>
12638
12639 * arm-tdep.c (thumb_record_misc): Update to correct logical
12640 error while recording ldm, ldmia and pop instructions.
12641
bfbbec00
OJ
126422014-01-15 Omair Javaid <omair.javaid@linaro.org>
12643
12644 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12645
e40adcc9
PA
126462014-01-15 Pedro Alves <palves@redhat.com>
12647
12648 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12649 (go32_resume, go32_fetch_registers, store_register)
12650 (go32_store_registers, go32_prepare_to_store)
12651 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12652 (go32_create_inferior, go32_can_run, go32_terminal_init)
12653 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12654 declarations.
12655
b0a16e66
TT
126562014-01-15 Tom Tromey <tromey@redhat.com>
12657
12658 * target.h (async_callback_ftype): New typedef.
12659 (struct target_ops) <to_async>: Use it.
12660
bf7105a4
JB
126612014-01-15 Joel Brobecker <brobecker@adacore.com>
12662
12663 * python/py-value.c (get_field_type): Remove unnecessary curly
12664 braces for single-statement if block.
12665
a8f35c2e
JB
126662014-01-15 Joel Brobecker <brobecker@adacore.com>
12667
12668 * python/py-type.c (convert_field): Add missing empty line
12669 after declarations.
12670
bb4142cf
DE
126712014-01-14 Doug Evans <dje@google.com>
12672
12673 * symfile.h (expand_symtabs_matching): Renamed from
12674 expand_partial_symbol_names. Update prototype.
12675 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12676 * symfile.c (expand_symtabs_matching): Renamed from
12677 expand_partial_symbol_names. New args file_matcher, kind.
12678 Rename arg fun to symbol_matcher.
12679 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12680 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12681 ada_expand_partial_symbol_name.
12682 (ada_make_symbol_completion_list): Update to call
12683 expand_symtabs_matching.
12684 (ada_add_global_exceptions): Call expand_symtabs_matching.
12685 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12686 call map_symbol_filenames.
12687 * symtab.c (sources_info): Update to call map_symbol_filenames.
12688 (search_symbols): Call expand_symtabs_matching.
12689 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12690 (default_make_symbol_completion_list_break_on): Update to call
12691 expand_symtabs_matching.
12692 (make_source_files_completion_list): Update to call
12693 map_symbol_filenames.
12694
206f2a57
DE
126952014-01-14 Doug Evans <dje@google.com>
12696
12697 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12698 (expand_symtabs_symbol_matcher_ftype): New typedef.
12699 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12700 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12701 * symfile.c (expand_partial_symbol_names): Update to use
12702 expand_symtabs_symbol_matcher_ftype.
12703 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12704 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12705 Arg name_matcher renamed to symbol_matcher.
12706 * psymtab.c (recursively_search_psymtabs): Update to use
12707 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12708 sym_matcher.
12709 (expand_symtabs_matching_via_partial): Update to use
12710 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12711 Arg name_matcher renamed to symbol_matcher.
12712
540c2971
DE
127132014-01-14 Doug Evans <dje@google.com>
12714
12715 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12716 (map_partial_symbol_filenames): Ditto.
12717 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12718 (map_partial_symbol_filenames): Ditto.
12719 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12720 (map_partial_symbol_filenames): Ditto.
12721 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12722 (map_partial_symbol_filenames): Ditto.
12723 * symtab.c: Delete #include "psymtab.h".
12724
8213266a
PA
127252014-01-14 Pedro Alves <palves@redhat.com>
12726 Tom Tromey <tromey@redhat.com>
12727
12728 * infrun.c (use_displaced_stepping): Use find_record_target
12729 instead of RECORD_IS_USED.
12730 (adjust_pc_after_break): Use record_full_is_used instead of
12731 RECORD_IS_USED.
12732 * record-btrace.c (record_btrace_open): Call record_preopen
12733 instead of checking RECORD_IS_USED.
12734 * record-full.c (record_full_shortname)
12735 (record_full_core_shortname): New globals.
12736 (record_full_is_used): New function.
12737 (find_full_open): Call record_preopen instead of checking
12738 RECORD_IS_USED.
12739 (init_record_full_ops): Set the target's shortname to
12740 record_full_shortname.
12741 (init_record_full_core_ops): Set the target's shortname to
12742 record_full_core_shortname.
12743 * record-full.h (record_full_is_used): Declare.
12744 * record.c (find_record_target): Make extern.
12745 (record_preopen): New function.
12746 * record.h (RECORD_IS_USED): Delete macro.
12747 (find_record_target, record_preopen): Declare functions.
12748
7ec1862d
YQ
127492014-01-14 Yao Qi <yao@codesourcery.com>
12750
12751 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12752 'len''s type to ULONGEST.
12753 (core_xfer_shared_libraries_aix): Likewise.
12754 * gdbarch.c, gdbarch.h: Regenerated.
12755 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12756 Change type of 'len' to ULONGEST.
12757 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12758 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12759
dea80a27
YQ
127602014-01-14 Yao Qi <yao@codesourcery.com>
12761
12762 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12763 type of 'len' to ULONGEST.
12764 (linux_xfer_osdata_processgroups): Likewise.
12765 (linux_xfer_osdata_threads): Likewise.
12766 (linux_xfer_osdata_fds): Likewise.
12767 (linux_xfer_osdata_isockets): Likewise.
12768 (linux_xfer_osdata_shm): Likewise.
12769 (linux_xfer_osdata_sem): Likewise.
12770 (linux_xfer_osdata_msg): Likewise.
12771 (linux_common_xfer_osdata): Likewise.
12772 (struct osdata_type) <getter>: Likewise.
12773 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12774 the declaration.
12775
b55e14c7
YQ
127762014-01-14 Yao Qi <yao@codesourcery.com>
12777
12778 * target.h (target_xfer_partial_ftype): Update.
12779 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12780 ULONGEST.
12781 * aix-thread.c (aix_thread_xfer_partial): Change type of
12782 argument 'len' to ULONGEST.
12783 * auxv.c (procfs_xfer_auxv): Likewise.
12784 (ld_so_xfer_auxv): Likewise.
12785 (memory_xfer_auxv): Likewise.
12786 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12787 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12788 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12789 * corelow.c (core_xfer_partial): Likewise.
12790 * ctf.c (ctf_xfer_partial): Likewise.
12791 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12792 '%u'.
12793 (darwin_read_dyld_info): Likewise.
12794 (darwin_xfer_partial): Likewise.
12795 * exec.c (section_table_xfer_memory_partial): Likewise.
12796 (exec_xfer_partial): Likewise.
12797 * exec.h (section_table_xfer_memory_partial): Update
12798 declaration.
12799 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12800 instead of plongest.
12801 (gnu_xfer_partial): Likewise.
12802 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12803 (ia64_hpux_xfer_solib_got): Likewise.
12804 (ia64_hpux_xfer_partial): Likewise.
12805 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12806 * inf-ptrace.c (inf_ptrace_xfer_partial):
12807 * inf-ttrace.c (inf_ttrace_xfer_partial):
12808 * linux-nat.c (linux_xfer_siginfo): Likewise.
12809 (linux_nat_xfer_partial): Likewise.
12810 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12811 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12812 * monitor.c (monitor_xfer_memory): Likewise.
12813 (monitor_xfer_partial): Likewise.
12814 * procfs.c (procfs_xfer_partial): Likewise.
12815 * record-full.c (record_full_xfer_partial): Likewise.
12816 (record_full_core_xfer_partial): Likewise.
12817 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12818 instead of plongest.
12819 (gdbsim_xfer_partial): Likewise.
12820 * remote.c (remote_xfer_partial): Likewise.
12821 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12822 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12823 declaration.
12824 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12825 (rs6000_xfer_shared_libraries): Likewise.
12826 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12827 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12828 (sparc_xfer_partial): Likewise.
12829 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12830 (spu_xfer_partial): Likewise.
12831 * spu-multiarch.c (spu_xfer_partial): Likewise.
12832 * target.c (target_read_live_memory): Likewise.
12833 (memory_xfer_live_readonly_partial): Likewise.
12834 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12835 (target_xfer_partial, default_xfer_partial): Likewise.
12836 (current_xfer_partial): Likewise.
12837 * tracepoint.c (tfile_xfer_partial): Likewise.
12838 * windows-nat.c (windows_xfer_memory): Likewise. Call
12839 pulongest instead of plongest.
12840 (windows_xfer_partial): Likewise.
12841 (windows_xfer_shared_libraries): Likewise.
12842
05804640
YQ
128432014-01-14 Yao Qi <yao@codesourcery.com>
12844
12845 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12846 target_xfer_partial_ftype.
12847
b5b08fb4
SC
128482014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12849
12850 PR python/15464
12851 PR python/16113
12852 * valops.c (value_struct_elt_bitpos): New function
12853 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12854 object to 'None' if the field name is an empty string ("").
12855 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12856 attribute to look for a field when 'name' is 'None'.
12857 (get_field_type): New function
12858
13aaf454
DE
128592014-01-13 Doug Evans <dje@google.com>
12860
12861 PR symtab/16426
12862 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12863 (try_open_dwop_file): Ditto.
12864 * gdb_bfd.c: #include "vec.h".
12865 (bfdp): New typedef.
12866 (struct gdb_bfd_data): New member included_bfds.
12867 (gdb_bfd_unref): Unref all included bfds.
12868 (gdb_bfd_record_inclusion): New function.
12869 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12870
c2cec97c
TT
128712014-01-13 Tom Tromey <tromey@redhat.com>
12872
12873 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12874
78e5999d
TT
128752014-01-13 Tom Tromey <tromey@redhat.com>
12876
12877 * defs.h (use_windows): Remove.
12878 * gdb.c (main): Update.
12879 * main.c (captured_main, gdb_main): Update.
12880 * main.h (struct captured_main_args) <use_windows>: Remove.
12881 * top.c (use_windows): Remove.
12882
f2052bbe
TT
128832014-01-13 Tom Tromey <tromey@redhat.com>
12884
12885 * defs.h (deprecated_flush_hook): Remove.
12886
fde4f8ed
JK
128872014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12888
12889 PR threads/16216
12890 * linux-thread-db.c (try_thread_db_load): Add parameter
12891 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12892 (try_thread_db_load_from_pdir_1): Move it there from here.
12893 (try_thread_db_load_from_sdir): Update caller.
12894 (try_thread_db_load_from_dir): Move it there from here.
12895
bdf61915
PP
128962014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12897
12898 * regformats/regdat.sh: Always rewrite the register file.
12899
f71e1a8d
PA
129002014-01-13 Pedro Alves <palves@redhat.com>
12901
12902 * Makefile.in (CHECK_HEADERS): New variable.
12903 (check-headers:): New rule.
12904
42c85435
TT
129052014-01-13 Tom Tromey <tromey@redhat.com>
12906
12907 * cli/cli-setshow.c (do_set_command): Update.
12908 * defs.h (deprecated_set_hook): Remove.
12909 * top.c (deprecated_set_hook): Remove.
12910
f8de5129
PA
129112014-01-13 Pedro Alves <palves@redhat.com>
12912
12913 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12914 the tracepoint if the PC is a pseudo-register.
12915
fc270c35
TT
129162014-01-13 Tom Tromey <tromey@redhat.com>
12917
12918 * defs.h (XCALLOC): Remove.
12919 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12920 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12921 * dwarf2loc.c (allocate_piece_closure): Likewise.
12922 * elfread.c (elf_symfile_segments): Likewise.
12923 (elf_symfile_segments): Likewise.
12924 * gdbtypes.c (copy_type_recursive): Likewise.
12925 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12926 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12927 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12928 XCALLOC.
12929 * mt-tdep.c (mt_gdbarch_init): Likewise.
12930 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12931 XCALLOC.
12932 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12933 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12934 * registry.c (registry_alloc_data): Likewise.
12935 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12936 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12937 * serial.c (serial_fdopen_ops): Likewise.
12938 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12939 XCALLOC.
12940 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12941 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12942 not XCALLOC.
12943
70ba0933
TT
129442014-01-13 Tom Tromey <tromey@redhat.com>
12945
12946 * defs.h (XMALLOC): Remove.
12947 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12948 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12949 * cli-out.c (struct ui_out *): Likewise.
12950 * cli/cli-dump.c (add_dump_command): Likewise.
12951 (add_dump_command): Likewise.
12952 * complaints.c (get_complaints): Likewise.
12953 (find_complaint): Likewise.
12954 * dwarf2-frame.c (execute_cfa_program): Likewise.
12955 * dwarf2read.c (abbrev_table_read_table): Likewise.
12956 * gdbarch.sh: Likewise.
12957 * gdbarch.c: Rebuild.
12958 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12959 * interps.c (interp_new): Likewise.
12960 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12961 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12962 * mi/mi-console.c (mi_console_file_new): Likewise.
12963 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12964 * mi/mi-out.c (mi_out_new): Likewise.
12965 * mi/mi-parse.c (mi_parse): Likewise.
12966 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12967 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12968 * observer.c (xalloc_observer_list_node): Likewise.
12969 * regcache.c (regcache_xmalloc_1): Likewise.
12970 * reggroups.c (reggroup_new): Likewise.
12971 (_initialize_reggroup): Likewise.
12972 * registry.c (register_data_with_cleanup): Likewise.
12973 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12974 * ser-base.c (serial_ttystate): Likewise.
12975 * ser-mingw.c (make_pipe_state): Likewise.
12976 * ser-pipe.c (pipe_open): Likewise.
12977 * serial.c (serial_open): Likewise.
12978 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12979 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12980 (tui_alloc_win_info): Likewise.
12981 (tui_add_content_elements): Likewise.
12982 * tui/tui-file.c (tui_file_new): Likewise.
12983 * tui/tui-out.c (tui_out_new): Likewise.
12984 * ui-file.c (mem_file_new): Likewise.
12985 * ui-out.c (push_level): Likewise.
12986 (make_cleanup_ui_out_end): Likewise.
12987 (append_header_to_list): Likewise.
12988 (ui_out_new): Likewise.
12989 * user-regs.c (user_reg_add_builtin): Likewise.
12990
41bf6aca
TT
129912014-01-13 Tom Tromey <tromey@redhat.com>
12992
12993 * defs.h (XZALLOC): Remove.
12994 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12995 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12996 (get_ada_tasks_inferior_data): Likewise.
12997 * auto-load.c (get_auto_load_pspace_data): Likewise.
12998 * auxv.c (get_auxv_inferior_data): Likewise.
12999 * bfd-target.c (target_bfd_reopen): Likewise.
13000 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13001 (deprecated_insert_raw_breakpoint): Likewise.
13002 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13003 * corelow.c (core_open): Likewise.
13004 * darwin-nat.c (darwin_check_new_threads): Likewise.
13005 (darwin_attach_pid): Likewise.
13006 * dummy-frame.c (dummy_frame_push): Likewise.
13007 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13008 * dwarf2loc.c (allocate_piece_closure): Likewise.
13009 * elfread.c (elf_symfile_segments): Likewise.
13010 * eval.c (ptrmath_type_p): Likewise.
13011 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13012 * gdbtypes.c (alloc_type_arch): Likewise.
13013 (alloc_type_instance): Likewise.
13014 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13015 * inf-child.c (inf_child_can_use_agent): Likewise.
13016 * inflow.c (get_inflow_inferior_data): Likewise.
13017 * infrun.c (save_infcall_suspend_state): Likewise.
13018 * jit.c (jit_reader_load): Likewise.
13019 (get_jit_objfile_data): Likewise.
13020 (get_jit_program_space_data): Likewise.
13021 (jit_object_open_impl): Likewise.
13022 (jit_symtab_open_impl): Likewise.
13023 (jit_block_open_impl): Likewise.
13024 (jit_frame_sniffer): Likewise.
13025 * linux-fork.c (add_fork): Likewise.
13026 * maint.c (make_command_stats_cleanup): Likewise.
13027 * objfiles.c (get_objfile_pspace_data): Likewise.
13028 * opencl-lang.c (struct lval_closure): Likewise.
13029 * osdata.c (osdata_start_osdata): Likewise.
13030 * progspace.c (new_address_space): Likewise.
13031 (add_program_space): Likewise.
13032 * remote-sim.c (get_sim_inferior_data): Likewise.
13033 * sh-tdep.c (sh_gdbarch_init): Likewise.
13034 * skip.c (Ignore): Likewise.
13035 (skip_delete_command): Likewise.
13036 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13037 (library_list_start_library): Likewise.
13038 (solib_aix_current_sos): Likewise.
13039 * solib-darwin.c (get_darwin_info): Likewise.
13040 (darwin_current_sos): Likewise.
13041 * solib-dsbt.c (get_dsbt_info): Likewise.
13042 * solib-ia64-hpux.c (new_so_list): Likewise.
13043 (ia64_hpux_get_solib_linkage_addr): Likewise.
13044 * solib-spu.c (append_ocl_sos): Likewise.
13045 (spu_current_sos): Likewise.
13046 * solib-svr4.c (get_svr4_info): Likewise.
13047 (svr4_keep_data_in_core): Likewise.
13048 (library_list_start_library): Likewise.
13049 (svr4_default_sos): Likewise.
13050 (svr4_read_so_list): Likewise.
13051 * solib-target.c (library_list_start_library): Likewise.
13052 (solib_target_current_sos): Likewise.
13053 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13054 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13055 * symfile.c (default_symfile_segments): Likewise.
13056 * target-descriptions.c (tdesc_data_init): Likewise.
13057 (tdesc_create_reg): Likewise.
13058 (struct tdesc_type *): Likewise.
13059 (tdesc_create_vector): Likewise.
13060 (tdesc_set_struct_size): Likewise.
13061 (struct tdesc_type *): Likewise.
13062 (tdesc_free_feature): Likewise.
13063 (tdesc_create_feature): Likewise.
13064 * windows-nat.c (windows_add_thread): Likewise.
13065 (windows_make_so): Likewise.
13066 * xml-support.c (gdb_xml_body_text): Likewise.
13067 (gdb_xml_create_parser_and_cleanup): Likewise.
13068 (xml_process_xincludes): Likewise.
13069 * xml-syscall.c (allocate_syscalls_info): Likewise.
13070 (syscall_create_syscall_desc): Likewise.
13071
5acfdbae
SDJ
130722014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13073
13074 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13075 function, with code from i386_stap_parse_special_token.
13076 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13077 (i386_stap_parse_special_token): Move code to the two functions
13078 above; simplify it.
13079
0000e5cc
PA
130802014-01-09 Pedro Alves <palves@redhat.com>
13081 Hui Zhu <hui@codesourcery.com>
13082
13083 PR gdb/16101
13084 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13085 bp_err_string. Don't mark the location shlib_disabled if the
13086 error thrown wasn't a generic or memory error. Catch errors
13087 thrown while inserting breakpoints in overlayed code. Output
13088 error message of software breakpoints.
13089 * remote.c (remote_insert_breakpoint): If this breakpoint has
13090 target-side commands but this stub doesn't support Z0 packets,
13091 throw NOT_SUPPORTED_ERROR error.
13092 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13093 * target.h (target_insert_breakpoint): Extend comment.
13094 (target_insert_hw_breakpoint): Add comment.
13095
b7ea362b
PA
130962014-01-08 Pedro Alves <palves@redhat.com>
13097
13098 * remote.c (remote_add_thread): Add threads silently if starting
13099 up.
13100 (remote_notice_new_inferior): If in all-stop, and starting up,
13101 don't call notice_new_inferior.
13102 (get_current_thread): New function, factored out from ...
13103 (add_current_inferior_and_thread): ... this. Adjust.
13104 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13105 found any thread, then select the remote's current thread as GDB's
13106 current thread too.
13107
b7bba001
JB
131082014-01-08 Joel Brobecker <brobecker@adacore.com>
13109
13110 * NEWS: Create a new section for the next release branch.
13111 Rename the section of the current branch, now that it has
13112 been cut.
13113
16dfbded
JB
131142014-01-08 Joel Brobecker <brobecker@adacore.com>
13115
13116 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13117 * version.in: Bump version to 7.7.50.DATE-cvs.
13118
22c90ac1
YQ
131192014-01-08 Yao Qi <yao@codesourcery.com>
13120
13121 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13122 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13123 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13124
d64ad97c
YQ
131252014-01-08 Yao Qi <yao@codesourcery.com>
13126
13127 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13128 return value of bfd_get_filename to symbol_file_add_from_bfd.
13129
f93ba80c
PM
131302014-01-08 Pierre Muller <muller@sourceware.org>
13131
13132 Fix PR16201.
13133 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13134 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13135 to prim_record_mininal_symbol_and_info.
13136 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13137 in call to prim_record_minimal_symbol_and_info.
13138 (read_pe_exported_syms): Set index field of section_data.
13139
a4d9ba85
AP
131402014-01-07 Andrew Pinski <apinski@cavium.com>
13141
13142 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13143 * features/aarch64.c: Regenerate.
13144
1b67eb02
AS
131452014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13146
13147 * target.c (return_null): Define.
13148 (update_current_target): Use it instead of return_zero for
13149 functions that return a pointer.
13150
5e3f4fab
EBM
131512014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13152
13153 * source.c (add_path): Fix check for duplicated paths in the previously
13154 included paths.
13155
e2616788
HK
131562014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13157
13158 * ada-lang.c: Remove duplicated include statements.
13159 * alphabsd-nat.c: Ditto.
13160 * amd64-darwin-tdep.c: Ditto.
13161 * amd64fbsd-nat.c: Ditto.
13162 * auto-load.c: Ditto.
13163 * ax-gdb.c: Ditto.
13164 * breakpoint.c: Ditto.
13165 * dbxread.c: Ditto.
13166 * fork-child.c: Ditto.
13167 * gdb_usleep.c: Ditto.
13168 * i386-darwin-tdep.c: Ditto.
13169 * i386fbsd-nat.c: Ditto.
13170 * infcmd.c: Ditto.
13171 * inferior.c: Ditto.
13172 * jv-lang.c: Ditto.
13173 * linux-nat.c: Ditto.
13174 * linux-tdep.c: Ditto.
13175 * m68kbsd-nat.c: Ditto.
13176 * m68klinux-nat.c: Ditto.
13177 * microblaze-tdep.c: Ditto.
13178 * mips-linux-tdep.c: Ditto.
13179 * mn10300-tdep.c: Ditto.
13180 * nto-tdep.c: Ditto.
13181 * opencl-lang.c: Ditto.
13182 * osdata.c: Ditto.
13183 * printcmd.c: Ditto.
13184 * regcache.c: Ditto.
13185 * remote-m32r-sdi.c: Ditto.
13186 * remote.c: Ditto.
13187 * symfile.c: Ditto.
13188 * symtab.c: Ditto.
13189 * tilegx-linux-nat.c: Ditto.
13190 * tilegx-tdep.c: Ditto.
13191 * tracepoint.c: Ditto.
13192 * valops.c: Ditto.
13193 * vaxbsd-nat.c: Ditto.
13194 * windows-nat.c: Ditto.
13195 * xtensa-tdep.c: Ditto.
13196
bd1f7788
YQ
131972014-01-07 Yao Qi <yao@codesourcery.com>
13198
13199 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13200
79301218
JB
132012014-01-07 Yao Qi <yao@codesourcery.com>
13202 Joel Brobecker <brobecker@adacore.com>
13203
13204 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13205 (pdc_write_regs): Likewise.
13206 (fetch_regs_kernel_thread): Likewise.
13207 (store_regs_kernel_thread): Likewise.
13208
132092014-01-07 Joel Brobecker <brobecker@adacore.com>
13210
13211 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13212 tagged type objects to their actual type.
13213
8e355c5d
JB
132142014-01-07 Joel Brobecker <brobecker@adacore.com>
13215
13216 * ada-valprint.c (print_field_values): Add "language" parameter.
13217 Update calls to print_field_values and print_variant_part.
13218 Pass new parameter "language" in call to val_print instead
13219 of "current_language". Replace call to ada_val_print by call
13220 to val_print.
13221 (print_variant_part): Add "language" parameter.
13222 (ada_val_print_struct_union): Update call to print_field_values.
13223
4fbf5aa5
JB
132242014-01-07 Joel Brobecker <brobecker@adacore.com>
13225
13226 * ada-valprint.c (ui_memcpy): Delete.
13227 (ada_print_floating): Update documentation. Add empty line
13228 between between function documentation and implementation.
13229 Delete variable "buffer". Use ui_file_xstrdup in place of
13230 ui_file_put. Minor adjustments following this change.
13231
71855601
JB
132322014-01-07 Joel Brobecker <brobecker@adacore.com>
13233
13234 * ada-valprint.c (ada_val_print_string): New function,
13235 extracted from ada_val_print_array.
13236 (ada_val_print_array): Replace extracted code by call
13237 to ada_val_print_string followed by a return. Move
13238 "else" branch to the function's top block.
13239
4eb27a30
JB
132402014-01-07 Joel Brobecker <brobecker@adacore.com>
13241
13242 * ada-valprint.c (ada_val_print_array): Move implementation
13243 down. Rename parameter "offset" and "val" into "offset_aligned"
13244 and "original_value" respectively. Add parameter "offset".
13245
34b27950
JB
132462014-01-07 Joel Brobecker <brobecker@adacore.com>
13247
13248 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13249 re-organizing the code. Change the "???" message printed
13250 when target type is a TYPE_CODE_UNDEF into
13251 "<ref to undefined type>".
13252
079e4591
JB
132532014-01-07 Joel Brobecker <brobecker@adacore.com>
13254
13255 * ada-valprint.c (print_record): Delete, implementation inlined...
13256 (ada_val_print_struct_union): ... here. Remove call to
13257 ada_check_typedef in inlined implementation.
13258
8004dfd1
JB
132592014-01-07 Joel Brobecker <brobecker@adacore.com>
13260
13261 * ada-valprint.c (ada_val_print_gnat_array): New function,
13262 extracted from ada_val_print_1;
13263 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13264 (ada_val_print_flt, ada_val_print_struct_union)
13265 (ada_val_print_ref): Likewise.
13266 (ada_val_print_1): Delete variables i and elttype.
13267 Replace extracted-out code by call to corresponding
13268 new functions.
13269
760a2db0
JB
132702014-01-07 Joel Brobecker <brobecker@adacore.com>
13271
13272 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13273
3a92c861
JB
132742014-01-07 Joel Brobecker <brobecker@adacore.com>
13275
13276 * ada-valprint.c (ada_val_print_1): Replace calls to
13277 ada_val_print_1 by calls to val_print.
13278
cd1630f9
JB
132792014-01-07 Joel Brobecker <brobecker@adacore.com>
13280
13281 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13282 Update calls to self accordingly. Replace calls to c_val_print
13283 by calls to val_print.
13284
bdf779a0
JB
132852014-01-07 Joel Brobecker <brobecker@adacore.com>
13286
13287 * ada-valprint.c (print_record): Delete declaration.
13288 (adjust_type_signedness, ada_val_print_1): Likewise.
13289 (ada_val_print): Move function implementation down.
13290 (print_variant_part, print_field_values, print_record):
13291 Move function implementation up.
13292
c0d48811
JB
132932014-01-07 Joel Brobecker <brobecker@adacore.com>
13294
13295 * python/py-type.c (typy_get_name): New function.
13296 (type_object_getset): Add entry for attribute "name".
13297 * NEWS: Add entry mentioning this new attribute.
13298
c26e9cbb
YQ
132992014-01-07 Yao Qi <yao@codesourcery.com>
13300
13301 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13302 statement.
13303
0cc6f43d
YQ
133042014-01-07 Yao Qi <yao@codesourcery.com>
13305
13306 * gnu-nat.c (info_port_rights): Add qualifier const to
13307 argument args.
13308
eec03155
YQ
133092014-01-07 Yao Qi <yao@codesourcery.com>
13310
13311 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13312
f04a82ef
YQ
133132014-01-07 Yao Qi <yao@codesourcery.com>
13314
13315 * gnu-nat.c (make_inf) Update declaration.
13316 (make_inf): Make it static.
13317 (inf_set_traced): Likewise.
13318 (inf_port_to_thread, inf_task_died_status): Likewise.
13319
d57dda0a
YQ
133202014-01-07 Yao Qi <yao@codesourcery.com>
13321
13322 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13323
3aa8c969
YQ
133242014-01-07 Yao Qi <yao@codesourcery.com>
13325
13326 * gnu-nat.c (_initialize_gnu_nat): Declare.
13327
94123b4f
YQ
133282014-01-07 Yao Qi <yao@codesourcery.com>
13329
13330 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13331 'enum bfd_endian'.
13332 (struct gdbarch_info) <byte_order>: Change type to
13333 'enum bfd_endian'.
13334 <byte_order_for_code>: Likewise.
13335 * gdbarch.c, gdbarch.h: Regenerated.
13336
dc81d70a
TT
133372014-01-06 Sasha Smundak <asmundak@google.com>
13338
13339 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13340
cc2f3c35
TT
133412014-01-06 Tom Tromey <tromey@redhat.com>
13342
13343 * doublest.c (convert_doublest_to_floatformat): Use const, not
13344 CONST.
13345 * somread.c (som_symtab_read): Likewise.
13346
adcf2eed
HZ
133472014-01-07 Hui Zhu <hui@codesourcery.com>
13348
13349 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13350 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13351 (gdb_bfd_fopen): Ditto.
13352 (gdb_bfd_openr): Ditto.
13353 (gdb_bfd_openw): Ditto.
13354 (gdb_bfd_openr_iovec): Ditto.
13355 (gdb_bfd_fdopenr): Ditto.
13356 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13357 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13358 with xstrdup.
13359 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13360 with xstrdup.
13361 * symfile-mem.c (symbol_file_add_from_memory): Removed
13362 gdb_bfd_stash_filename.
13363
50722198
DE
133642014-01-03 Doug Evans <dje@google.com>
13365
13366 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13367 output.
13368
2fa4b862
JB
133692014-01-01 Joel Brobecker <brobecker@adacore.com>
13370
13371 Update year range in copyright notice of all files.
13372
28498c42
JB
133732014-01-01 Joel Brobecker <brobecker@adacore.com>
13374
13375 * top.c (print_gdb_version): Set copyright year to 2014.
13376
7b6e1046
JB
133772014-01-01 Joel Brobecker <brobecker@adacore.com>
13378
13379 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13380
df96af55 13381For older changes see ChangeLog-2013.
c906108c
SS
13382\f
13383Local Variables:
13384mode: change-log
13385left-margin: 8
13386fill-column: 74
13387version-control: never
57da7796 13388coding: utf-8
c906108c 13389End:
This page took 2.250175 seconds and 4 git commands to generate.