]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
TILEGX: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2
3 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
4 (tilegx_regset_from_core_section): Remove.
5 (tilegx_iterate_over_regset_sections): New.
6 (tilegx_linux_init_abi): Adjust gdbarch initialization.
7
8 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
9
10 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
11 (sparc_iterate_over_regset_sections): New.
12 (sparc32_gdbarch_init): Adjust gdbarch initialization.
13 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
14 targets.
15 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
16 (sparc64fbsd_init_abi): Call fbsd_init_abi.
17 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
18 target method 'make_corefile_notes'.
19
20 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
21
22 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
23 'sizeof_gregset' and 'sizeof_fpregset'.
24 * sh-tdep.c (sh_regset_from_core_section): Remove.
25 (sh_iterate_over_regset_sections): New.
26 (sh_gdbarch_init): Adjust gdbarch initialization.
27 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
28 sizeof_fpregset.
29 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
30 'sizeof_gregset'.
31
32 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
33
34 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
35 (score7_linux_iterate_over_regset_sections): New.
36 (score_gdbarch_init): Adjust gdbarch initialization.
37
38 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
39
40 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
41 FreeBSD targets.
42 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
43 method 'make_corefile_notes'.
44 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
45 (ppcfbsd_regset_from_core_section): Remove.
46 (ppcfbsd_iterate_over_regset_sections): New.
47 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
48 initialization.
49 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
50 (ppcnbsd_iterate_over_regset_sections): New.
51 (ppcnbsd_init_abi): Adjust.
52 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
53 (ppcobsd_iterate_over_regset_sections): New.
54 (ppcobsd_init_abi): Adjust.
55 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
56 (rs6000_aix_iterate_over_regset_sections): New.
57 (rs6000_aix_init_osabi): Adjust.
58
59 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
60
61 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
62 (nios2_regset_from_core_section): Remove.
63 (nios2_iterate_over_regset_sections): New.
64 (nios2_linux_init_abi): Adjust gdbarch initialization.
65
66 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
67
68 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
69 (am33_iterate_over_regset_sections): New.
70 (am33_linux_init_osabi): Adjust gdbarch initialization.
71
72 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
73
74 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
75 (mips_linux_iterate_over_regset_sections): New.
76 (mips_linux_init_abi): Adjust gdbarch initialization.
77 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
78 (mips64obsd_iterate_over_regset_sections): New.
79 (mips64obsd_init_abi): Adjust.
80 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
81 (mipsnbsd_iterate_over_regset_sections): New.
82 (mipsnbsd_init_abi): Adjust.
83
84 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
85
86 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
87 (m88k_iterate_over_regset_sections): New.
88 (m88k_gdbarch_init): Adjust gdbarch initialization.
89
90 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
91
92 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
93 (ia64_linux_iterate_over_regset_sections): New.
94 (ia64_linux_init_abi): Adjust gdbarch initialization.
95
96 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
97
98 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
99 (m68kbsd_iterate_over_regset_sections): New.
100 (m68kbsd_init_abi): Adjust gdbarch initialization.
101 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
102 (m68k_linux_iterate_over_regset_sections): New.
103 (m68k_linux_init_abi): Adjust gdbarch initialization.
104
105 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
106
107 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
108 (m32r_linux_regset_from_core_section): Remove.
109 (m32r_linux_iterate_over_regset_sections): New.
110 (m32r_linux_init_abi): Adjust gdbarch initialization.
111
112 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
113
114 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
115 (amd64obsd_iterate_over_regset_sections): New.
116 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
117 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
118 Remove.
119 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
120 regset_from_core_section initialization.
121 * i386-tdep.c (i386_regset_from_core_section): Remove.
122 (i386_iterate_over_regset_sections): New.
123 (i386_gdbarch_init): Adjust gdbarch initialization.
124 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
125 (i386_iterate_over_regset_sections): New prototype.
126 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
127 Remove.
128 (i386obsd_aout_iterate_over_regset_sections): New.
129 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
130 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
131 targets.
132 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
133 (amd64fbsd_init_abi): Call fbsd_init_abi.
134 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
135 (i386fbsd4_init_abi): Call fbsd_init_abi.
136 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
137 target method 'make_corefile_notes'.
138 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
139
140 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
141
142 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
143 (hppa_hpux_iterate_over_regset_sections): New.
144 (hppa_hpux_init_abi): Adjust gdbarch initialization.
145 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
146 (hppa_linux_iterate_over_regset_sections): New.
147 (hppa_linux_init_abi): Adjust.
148 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
149 (hppanbsd_iterate_over_regset_sections): New.
150 (hppanbsd_init_abi): Adjust.
151 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
152 (hppaobsd_iterate_over_regset_sections): New.
153 (hppaobsd_init_abi): Adjust.
154
155 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
156
157 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
158 (frv_linux_iterate_over_regset_sections): New.
159 (frv_linux_init_abi): Adjust gdbarch initialization.
160
161 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
162
163 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
164 (armbsd_iterate_over_regset_sections): New prototype.
165 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
166 (armbsd_iterate_over_regset_sections): New.
167 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
168 initialization.
169
170 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
171
172 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
173 (alpha_linux_iterate_over_regset_sections): New.
174 (alpha_linux_init_abi): Adjust gdbarch initialization.
175 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
176 prototype.
177 (alphanbsd_iterate_over_regset_sections): New prototype.
178
179 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
180
181 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
182 Remove.
183 (aarch64_linux_iterate_over_regset_sections): New.
184 (aarch64_linux_init_abi): Adjust gdbarch initialization.
185
186 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
187
188 * fbsd-tdep.c: New file.
189 * fbsd-tdep.h: New file.
190 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
191 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
192 (ALLDEPFILES): Add fbsd-tdep.c.
193
194 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
195
196 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
197 parameter.
198 * gdbarch.h: Regenerate.
199 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
200 iterator.
201 (get_core_register_section): Add parameter 'regset' and use it, if
202 set. Add parameter 'min_size' and verify the bfd section size
203 against it.
204 (get_core_registers_cb): Add parameter 'regset' and pass it to
205 get_core_register section. For the "standard" register sections
206 ".reg" and ".reg2", set an appropriate default for human_name.
207 (get_core_registers): Don't abort when the gdbarch has an iterator
208 but no regset_from_core_section. Add NULL/0 for parameters
209 'regset'/'min_size' in calls to get_core_register_section.
210 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
211 'regset' and use it instead of calling the
212 regset_from_core_section gdbarch method.
213 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
214 * i386-tdep.c (i386_supply_xstateregset)
215 (i386_collect_xstateregset, i386_xstateregset): Moved to
216 i386-linux-tdep.c.
217 (i386_regset_from_core_section): Drop handling for .reg-xfp and
218 .reg-xstate.
219 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
220 core file support only if the regset iterator hasn't been set.
221 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
222 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
223 Moved from i386-tdep.c and renamed to *_linux*.
224 (i386_linux_iterate_over_regset_sections): Add regset parameter to
225 each callback invocation. Allow any .reg-xstate size when reading
226 from a core file.
227 * amd64-tdep.c (amd64_supply_xstateregset)
228 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
229 amd64-linux-tdep.c.
230 (amd64_regset_from_core_section): Remove.
231 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
232 install an amd64-specific regset_from_core_section gdbarch method.
233 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
234 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
235 Moved from amd64-tdep.c and renamed to *_linux*.
236 (amd64_linux_iterate_over_regset_sections): Add regset parameter
237 to each callback invocation. Allow any .reg-xstate size when
238 reading from a core file.
239 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
240 (arm_linux_iterate_over_regset_sections): Add regset parameter to
241 each callback invocation.
242 (arm_linux_init_abi): No longer set the regset_from_core_section
243 gdbarch method.
244 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
245 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
246 each callback invocation.
247 (ppc_linux_init_abi): No longer set the regset_from_core_section
248 gdbarch method.
249 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
250 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
251 (s390_regset_from_core_section): Remove.
252 (s390_iterate_over_regset_sections): Add regset parameter to each
253 callback invocation.
254 (s390_gdbarch_init): No longer set the regset_from_core_section
255 gdbarch method. Drop initialization of deleted tdep fields.
256
257 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
258
259 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
260 (amd64_linux_iterate_over_regset_sections): New.
261 (amd64_linux_init_abi_common): Don't install the regset section
262 list, but the new iterator in gdbarch.
263 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
264 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
265 (arm_linux_iterate_over_regset_sections): ...here. New function.
266 (arm_linux_init_abi): Set iterator instead of section list.
267 * corelow.c (get_core_registers_cb): New function, logic moved
268 from...
269 (get_core_registers): ...loop body here. Use new iterator method
270 instead of walking through the regset section list.
271 * gdbarch.sh: Remove 'core_regset_sections'. New method
272 'iterate_over_regset_sections'. New typedef
273 'iterate_over_regset_sections_cb'.
274 * gdbarch.c: Regenerate.
275 * gdbarch.h: Likewise.
276 * i386-linux-tdep.c (i386_linux_regset_sections)
277 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
278 Remove.
279 (i386_linux_iterate_over_regset_sections): New.
280 (i386_linux_init_abi): Don't choose a regset section list, but
281 install new iterator in gdbarch.
282 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
283 (linux_collect_regset_section_cb): New function, logic moved
284 from...
285 (linux_collect_thread_registers): ...loop body here. Use iterator
286 method instead of walking through list.
287 (linux_make_corefile_notes_1): Check for presence of iterator
288 method instead of regset section list.
289 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
290 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
291 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
292 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
293 (ppc_linux_iterate_over_regset_sections): ...here. New function.
294 (ppc_linux_init_abi): Don't choose from above regset section
295 lists, but install new iterator in gdbarch.
296 * regset.h (struct core_regset_section): Remove.
297 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
298 have_linux_v1, have_linux_v2, and have_tdb.
299 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
300 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
301 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
302 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
303 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
304 (s390_iterate_over_regset_sections): ...here. New function. Use
305 new tdep fields.
306 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
307 regset section lists, but install new iterator.
308
309 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
310
311 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
312
313 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
314
315 * progspace.c (print_program_space): Don't prune program spaces
316 before printing them.
317
318 2014-09-25 Pedro Alves <palves@redhat.com>
319
320 * infrun.c (user_visible_resume_ptid): Don't check
321 singlestep_breakpoints_inserted_p.
322
323 2014-09-25 Pedro Alves <palves@redhat.com>
324
325 * breakpoint.c (should_be_inserted): Add debug output.
326
327 2014-09-25 Pedro Alves <palves@redhat.com>
328
329 * infrun.c (stepping_past_instruction_at)
330 (clear_exit_convenience_vars): Point at infrun.h instead of
331 inferior.h.
332 (handle_signal_stop): Fix typo.
333
334 2014-09-24 Yao Qi <yao@codesourcery.com>
335
336 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
337 bitmask.
338
339 2014-09-22 Gary Benson <gbenson@redhat.com>
340
341 * target.c (target_stop): Updated comment.
342
343 2014-09-22 Gary Benson <gbenson@redhat.com>
344
345 * target/target.h (target_stop_ptid): Renamed as...
346 (target_stop_and_wait): New function. Updated comment.
347 All uses updated.
348 (target_continue_ptid): Renamed as...
349 (target_continue_no_signal): New function. Updated comment.
350 All uses updated.
351
352 2014-09-22 Pedro Alves <palves@redhat.com>
353
354 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
355 and "auto" merged.
356 * breakpoint.c (enum ugll_insert_mode): New enum.
357 (always_inserted_mode): Now a plain boolean.
358 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
359 (breakpoints_always_inserted_mode): Delete.
360 (breakpoints_should_be_inserted_now): New function.
361 (insert_breakpoints): Pass UGLL_INSERT to
362 update_global_location_list instead of calling
363 insert_breakpoint_locations manually.
364 (create_solib_event_breakpoint_1): New, factored out from ...
365 (create_solib_event_breakpoint): ... this.
366 (create_and_insert_solib_event_breakpoint): Use
367 create_solib_event_breakpoint_1 instead of calling
368 insert_breakpoint_locations manually.
369 (update_global_location_list): Change parameter type from boolean
370 to enum ugll_insert_mode. All callers adjusted. Adjust to use
371 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
372 (update_global_location_list_nothrow): Change parameter type from
373 boolean to enum ugll_insert_mode.
374 (_initialize_breakpoint): "breakpoint always-inserted" option is
375 now a boolean command. Update help text.
376 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
377 (breakpoints_should_be_inserted_now): New declaration.
378 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
379 Remove breakpoints_always_inserted_mode check.
380 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
381 * remote.c (remote_start_remote): Likewise.
382
383 2014-09-22 Pedro Alves <palves@redhat.com>
384
385 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
386 (insert_breakpoints): Don't call insert_breakpoint_locations here.
387 Instead, pass UGLL_INSERT to update_global_location_list.
388 (update_global_location_list): Change parameter type from boolean
389 to enum ugll_insert_mode. All callers adjusted. Adjust to use
390 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
391 (create_solib_event_breakpoint_1): New, factored out from ...
392 (create_solib_event_breakpoint): ... this.
393 (create_and_insert_solib_event_breakpoint): Use
394 create_solib_event_breakpoint_1 instead of calling
395 insert_breakpoint_locations manually.
396 (update_global_location_list): Handle UGLL_INSERT.
397
398 2014-09-22 Pedro Alves <palves@redhat.com>
399
400 * breakpoint.c (enum ugll_insert_mode): New enum.
401 (update_global_location_list)
402 (update_global_location_list_nothrow): Change parameter type from
403 boolean to enum ugll_insert_mode. All callers adjusted.
404
405 2014-09-19 Joel Brobecker <brobecker@adacore.com>
406
407 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
408 SystemTap support in GDB.
409
410 2014-09-19 Don Breazeal <donb@codesourcery.com>
411
412 * linux-nat.c (linux_handle_extended_wait): Call
413 linux_ptrace_get_extended_event.
414 (wait_lwp): Call linux_is_extended_waitstatus.
415 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
416 and linux_is_extended_waitstatus.
417 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
418 linux_ptrace_get_extended_event.
419 (linux_ptrace_get_extended_event): New function.
420 (linux_is_extended_waitstatus): New function.
421 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
422 (linux_is_extended_waitstatus): New declarations.
423
424 2014-09-19 Yao Qi <yao@codesourcery.com>
425
426 * dwarf2read.c (dwarf_decode_lines): Update declaration.
427 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
428 comments. Callers update.
429 (dwarf_decode_lines): Likewise.
430 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
431 comments. Skip the line table if 'lowpc' is greater than
432 'address'. Don't check
433 dwarf2_per_objfile->has_section_at_zero.
434
435 2014-09-18 Doug Evans <dje@google.com>
436
437 * NEWS: Mention new "producer" attribute of gdb.Symtab.
438 * python/py-symtab.c (stpy_get_producer): New function.
439 (symtab_object_getset): Add "producer" attribute.
440
441 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
442
443 PR gdb/17384
444 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
445 (do_captured_read_memory_integer): Remove.
446 (safe_read_memory_integer): Use target_read_memory directly instead
447 of catching errors in do_captured_read_memory_integer.
448
449 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
450
451 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
452 not gdb/doc.
453
454 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
455
456 * objc-lang.c (find_implementation_from_class): Remove dead code.
457
458 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
459
460 PR cli/7233
461 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
462 "fprintf_unfiltered (gdb_stdlog...)".
463
464 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
465
466 PR breakpoints/12526
467 * breakpoint.h (struct watchpoint): New fields val_bitpos and
468 val_bitsize.
469 * breakpoint.c (watch_command_1): Use these fields to retain
470 bitfield information.
471 (extract_bitfield_from_watchpoint_value): New function.
472 (watchpoint_check): Use it.
473 (update_watchpoint): Use it. Optimize the address and length of a
474 HW watchpoint pointing to a bitfield.
475 * value.h (unpack_value_bitfield): New prototype.
476 * value.c (unpack_value_bitfield): Make extern.
477
478 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
479
480 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
481 x86-dregs.o.
482 * gnu-nat.c (inf_threads): New function.
483 * gnu-nat.h (inf_threads_ftype): New typedef.
484 (inf_threads): New declaration.
485 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
486 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
487 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
488 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
489 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
490 (i386_gnu_dr_get_control): New functions.
491 (reg_addr): New structure.
492 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
493 i386 debugging register hooks.
494 * NEWS: Mention this.
495
496 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
497
498 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
499 vector data transfer instructions.
500 (arm_record_coproc_data_proc): Updated.
501
502 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
503
504 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
505 arm_record_exreg_ld_st_insn.
506 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
507 load/store insns.
508
509 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
510
511 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
512 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
513 processing instructions.
514
515 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
516
517 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
518 for advance SIMD struct ld/st insn.
519 (thumb2_record_decode_insn_handler): Replace stub handler with
520 thumb2_record_asimd_struct_ld_st.
521
522 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
523
524 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
525 for asimd, vfp and coprocessor insns.
526 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
527 and coprocessor insns.
528 (thumb2_record_coproc_insn): New function.
529 (thumb2_record_decode_insn_handler): Update coprocessor insns record
530 handlers.
531 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
532 opcode 110 insns.
533
534 2014-09-13 Doug Evans <xdje42@gmail.com>
535
536 * NEWS: Mention new "queue-signal" command.
537 * infcmd.c (queue_signal_command): New function.
538 (_initialize_infcmd): Add new queue-signal command.
539
540 2014-09-13 Doug Evans <xdje42@gmail.com>
541
542 * linux-nat.c (wait_lwp): Add debugging printf.
543 (linux_nat_wait_1): Ditto.
544
545 2014-09-12 Pedro Alves <palves@redhat.com>
546
547 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
548 (create_and_insert_solib_event_breakpoint): New functions.
549 * breakpoint.h (create_and_insert_solib_event_breakpoint)
550 (remove_solib_event_breakpoints_at_next_stop): New declarations.
551 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
552 (remove_dbx_link_breakpoint): Delete function.
553 (insert_dbx_link_bpt_in_file): Use
554 create_and_insert_solib_event_breakpoint instead of
555 deprecated_insert_raw_breakpoint.
556 (procfs_wait): Don't check whether we hit __dbx_link here.
557 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
558 here.
559 * solib-irix.c (base_breakpoint): Delete global.
560 (disable_break): Delete function.
561 (enable_break): Use create_solib_event_breakpoint
562 instead of deprecated_insert_raw_breakpoint.
563 (irix_solib_handle_event): New function.
564 (irix_solib_create_inferior_hook): Don't run the target or disable
565 the mapping-complete breakpoint here.
566 (_initialize_irix_solib): Install irix_solib_handle_event as
567 so_ops->handle_event hook.
568
569 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
570 Ulrich Weigand  <uweigand@de.ibm.com>
571
572 PR tdep/17379
573 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
574 instead of read_memory_unsigned_integer.
575
576 2014-09-12 Gary Benson <gbenson@redhat.com>
577
578 * nat/linux-waitpid.c: Include common-defs.h.
579 [GDBSERVER]: Add FIXME comment.
580 [!GDBSERVER]: Don't include defs.h or signal.h.
581 (linux_debug) [!GDBSERVER]: Remove empty block.
582
583 2014-09-12 Gary Benson <gbenson@redhat.com>
584
585 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
586 Don't include defs.h or server.h.
587
588 2014-09-12 Gary Benson <gbenson@redhat.com>
589
590 * nat/linux-btrace.c: Include common-defs.h.
591 Don't include defs.h, server.h or gdbthread.h.
592 * nat/linux-btrace.h (struct target_ops): New forward declaration.
593
594 2014-09-12 Gary Benson <gbenson@redhat.com>
595
596 * common/agent.c: Include common-defs.h.
597 Don't include defs.h or server.h.
598 * common/buffer.c: Likewise.
599 * common/common-debug.c: Likewise.
600 * common/common-utils.c: Likewise.
601 * common/errors.c: Likewise.
602 * common/filestuff.c: Likewise.
603 * common/format.c: Likewise.
604 * common/gdb_vecs.c: Likewise.
605 * common/print-utils.c: Likewise.
606 * common/ptid.c: Likewise.
607 * common/rsp-low.c: Likewise.
608 * common/signals.c: Likewise.
609 * common/vec.c: Likewise.
610 * common/xml-utils.c: Likewise.
611 * nat/linux-osdata.c: Likewise.
612 * nat/linux-procfs.c: Likewise.
613 * nat/linux-ptrace.c: Likewise.
614 * nat/mips-linux-watch.c: Likewise.
615 * target/waitstatus.c: Likewise.
616
617 2014-09-12 Tom Tromey <tromey@redhat.com>
618 Gary Benson <gbenson@redhat.com>
619
620 * common/common-regcache.h: New file.
621 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
622 * regcache.h: Include common-regcache.h.
623 (regcache_read_pc): Don't declare.
624 * regcache.c (get_thread_regcache_for_ptid): New function.
625 * nat/linux-btrace.c: Don't include regcache.h.
626 Include common-regcache.h.
627 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
628
629 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
630
631 * regcache.h (struct regset): Declare.
632
633 2014-09-11 Pedro Alves <palves@redhat.com>
634
635 PR gdb/17347
636 * main.c: Include "infrun.h".
637 (catch_command_errors, catch_command_errors_const): Wait for the
638 foreground command to complete.
639 * top.c (maybe_wait_sync_command_done): New function, factored out
640 from ...
641 (maybe_wait_sync_command_done): ... here.
642 * top.h (maybe_wait_sync_command_done): New declaration.
643
644 2014-09-11 Tom Tromey <tromey@redhat.com>
645 Gary Benson <gbenson@redhat.com>
646
647 * common/symbol.h: New file.
648 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
649 * minsyms.c (find_minimal_symbol_address): New function.
650 * common/agent.c: Include common/symbol.h.
651 [!GDBSERVER]: Don't include objfiles.h.
652 (agent_look_up_symbols): Use find_minimal_symbol_address.
653
654 2014-09-11 Gary Benson <gbenson@redhat.com>
655
656 * target/target.h (target_stop_ptid, target_continue_ptid):
657 Declare.
658 * target.c (target_stop_ptid, target_continue_ptid): New
659 functions.
660 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
661 (agent_run_command): Always use target_stop_ptid and
662 target_continue_ptid.
663
664 2014-09-11 Tom Tromey <tromey@redhat.com>
665 Gary Benson <gbenson@redhat.com>
666
667 * target/target.h: New file.
668 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
669 * target.h: Include target/target.h.
670 (target_read_memory, target_write_memory): Don't declare.
671 * target.c (target_read_uint32): New function.
672 * common/agent.c: Include target/target.h.
673 [!GDBSERVER]: Don't include target.h.
674 (helper_thread_id): Type changed to uint32_t.
675 (agent_get_helper_thread_id): Use target_read_uint32.
676 (agent_run_command): Always use target_read_memory and
677 target_write_memory.
678 (agent_capability): Type changed to uint32_t.
679 (agent_capability_check): Use target_read_uint32.
680
681 2014-09-11 Gary Benson <gbenson@redhat.com>
682
683 * common/common-debug.h (show_debug_regs): Declare.
684 * common/common-debug.c (show_debug_regs): Define.
685 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
686 all uses with show_debug_regs. Replace all uses that considered
687 debug_hw_points as a multi-value integer with straight boolean
688 uses.
689 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
690 with show_debug_regs.
691 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
692 all uses with show_debug_regs.
693 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
694 uses with show_debug_regs.
695
696 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
697
698 * findvar.c (address_from_register): Handle targets requiring
699 a special conversion routine even for plain pointer types.
700
701 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
702
703 * rs6000-nat.c (exec_one_dummy_insn): Remove.
704 (store_register): Do not call exec_one_dummy_insn.
705
706 2014-09-10 Joel Brobecker <brobecker@adacore.com>
707
708 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
709 dereference it first. Use value_enclosing_type instead of
710 value_type.
711 (ada_array_length): Likewise.
712
713 2014-09-10 Joel Brobecker <brobecker@adacore.com>
714
715 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
716 Adjust function implementation and documentation accordingly.
717 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
718 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
719 Update call to ada_value_ptr_subscript.
720
721 2014-09-10 Joel Brobecker <brobecker@adacore.com>
722
723 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
724 instead of VAL's type.
725
726 2014-09-10 Joel Brobecker <brobecker@adacore.com>
727
728 * amd64-linux-nat.c: Add <sys/uio.h> #include.
729
730 2014-09-09 Doug Evans <xdje42@gmail.com>
731
732 PR guile/17367
733 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
734 last parameter to pkg-config, not first.
735 * configure.ac: Pass --with-guile provided pkg-config path to
736 GDB_GUILE_PROGRAM_NAMES.
737 * configure: Regenerate.
738
739 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
740
741 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
742 Bertazi".
743
744 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
745
746 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
747 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
748 the list of sections determining GDB_OSABI_IRIX.
749
750 2014-09-09 James Hogan <james.hogan@imgtec.com>
751
752 * MAINTAINERS (Write After Approval): Add "James Hogan".
753
754 2014-09-09 James Hogan <james.hogan@imgtec.com>
755
756 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
757
758 2014-09-09 Joel Brobecker <brobecker@adacore.com>
759
760 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
761
762 2014-09-08 Doug Evans <xdje42@gmail.com>
763
764 PR 17247
765 * guile.c: #include <signal.h>.
766 (_initialize_guile): Block SIGCHLD while initializing Guile.
767
768 Replaces the following, which is reverted.
769
770 2014-07-26 Doug Evans <xdje42@gmail.com>
771
772 PR 17185
773 * configure.ac: Add check for header gc/gc.h.
774 Add check for function setenv.
775 * configure: Regenerate.
776 * config.in: Regenerate.
777 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
778
779 2014-09-08 Doug Evans <xdje42@gmail.com>
780
781 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
782 with named constant. Fix style of pointer comparison.
783 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
784
785 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
786
787 PR gdb/17035
788 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
789 decide whether we display the command on "show user".
790 * cli/cli-script.c (show_user_1): Only verify cmdlines after
791 printing command name.
792 * cli/cli-decode.h (cli_user_command_p): Declare new function.
793 * cli/cli-decode.c (cli_user_command_p): Create helper function
794 to verify whether cmd_list_element is a user-defined command.
795
796 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
797
798 PR python/17355
799 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
800 Fix goto out of TRY_CATCH.
801
802 2014-09-06 Doug Evans <xdje42@gmail.com>
803 Tom Tromey <tromey@redhat.com>
804
805 PR 15276
806 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
807 $_any_caller_matches.
808 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
809 * python/lib/gdb/function/caller_is.py: New file.
810
811 2014-09-06 Doug Evans <xdje42@gmail.com>
812
813 * infcmd.c (program_info): Fix typo.
814
815 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
816
817 PR gdb/17235
818 * stap-probe.c (stap_parse_single_operand): Delete unused variable
819 'number'. New variable 'has_digit'. Rewrite code to deal with
820 subexpressions on SDT probes.
821
822 2014-09-04 Pedro Alves <palves@redhat.com>
823
824 * c-exp.y (parse_number): Skip handling base-switching prefixes if
825 the input is only one character long.
826
827 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
828
829 PR fortran/17237
830 * f-valprint.c (f_val_print): Specify the correct print option to
831 use when printing integer values.
832
833 2014-09-04 Gary Benson <gbenson@redhat.com>
834
835 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
836 Remove code to cope with LWPs wrapped as PIDs.
837 Add assertions to ensure no wrapped LWPs are passed.
838
839 2014-09-04 Pedro Alves <palves@redhat.com>
840
841 * value.c (value_ranges_copy_adjusted): New function, factored out
842 from ...
843 (value_contents_copy_raw): ... here.
844 (unpack_value_bits_as_long_1): Rename back to ...
845 (unpack_bits_as_long): ... this. Remove 'original_value' and
846 'result' parameters. Change return type to LONGEST.
847 (unpack_value_bits_as_long): Delete.
848 (unpack_value_field_as_long_1): Delete.
849 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
850 (unpack_value_bitfield): New function.
851 (value_field_bitfield): Reimplement using unpack_value_bitfield.
852 (value_fetch_lazy): Use unpack_value_bitfield.
853 * value.h (unpack_value_bits_as_long): Delete declaration.
854
855 2014-09-03 Sasha Smundak <asmundak@google.com>
856
857 * python/py-frame.c (frapy_read_register): New function.
858
859 2014-09-03 James Hogan <james.hogan@imgtec.com>
860
861 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
862 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
863
864 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
865
866 PR python/16699
867 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
868 function.
869 (add_cmd): Set "completer_handle_brkchars" to NULL.
870 * cli/cli-decode.h (struct cmd_list_element)
871 <completer_handle_brkchars>: New field.
872 * command.h (completer_ftype_void): New typedef.
873 (set_cmd_completer_handle_brkchars): New prototype.
874 * completer.c (set_gdb_completion_word_break_characters): New
875 function.
876 (complete_line_internal): Call "completer_handle_brkchars"
877 callback from command.
878 * completer.h: Include "command.h".
879 (set_gdb_completion_word_break_characters): New prototype.
880 * python/py-cmd.c (cmdpy_completer_helper): New function.
881 (cmdpy_completer_handle_brkchars): New function.
882 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
883 (cmdpy_init): Set completer_handle_brkchars to
884 cmdpy_completer_handle_brkchars.
885
886 2014-09-03 Gary Benson <gbenson@redhat.com>
887
888 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
889 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
890 Loop conditions changed to equivalent form.
891 (struct x86_debug_reg_state): Updated dr_ref_count comment.
892 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
893 ALL_DEBUG_ADDRESS_REGISTERS.
894
895 2014-09-03 Joel Brobecker <brobecker@adacore.com>
896
897 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
898 description fix.
899
900 2014-09-02 Doug Evans <dje@google.com>
901
902 * typeprint.c (find_global_typedef): Fix comment.
903
904 2014-09-02 Gary Benson <gbenson@redhat.com>
905
906 * i386-nat.h: Renamed as...
907 * x86-nat.h: New file. All type, function and variable name
908 prefixes changed from "i386_" to "x86_". All references updated.
909 * i386-nat.c: Renamed as...
910 * x86-nat.c: New file. All type, function and variable name
911 prefixes changed from "i386_" to "x86_". All references updated.
912 * common/i386-xstate.h: Renamed as...
913 * common/x86-xstate.h: New file. All type, function and variable
914 name prefixes changed from "i386_" to "x86_". All references
915 updated.
916 * nat/i386-cpuid.h: Renamed as...
917 * nat/x86-cpuid.h: New file. All type, function and variable name
918 prefixes changed from "i386_" to "x86_". All references updated.
919 * nat/i386-gcc-cpuid.h: Renamed as...
920 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
921 name prefixes changed from "i386_" to "x86_". All references
922 updated.
923 * nat/i386-dregs.h: Renamed as...
924 * nat/x86-dregs.h: New file. All type, function and variable name
925 prefixes changed from "i386_" to "x86_". All references updated.
926 * nat/i386-dregs.c: Renamed as...
927 * nat/x86-dregs.c: New file. All type, function and variable name
928 prefixes changed from "i386_" to "x86_". All references updated.
929
930 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
931
932 * varobj.c (_initialize_varobj): Move to the end of file.
933
934 2014-08-29 Gary Benson <gbenson@redhat.com>
935
936 * common/common-exceptions.h: New file.
937 * common/common-exceptions.c: Likewise.
938 * Makefile.in (SFILES): Add common/common-exceptions.c.
939 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
940 (COMMON_OBS): Add common-exceptions.o.
941 (common-exceptions.o): New rule.
942 * exceptions.h (common-exceptions.h): Include.
943 (gdb_setjmp.h): Do not include.
944 (return_reason): Moved to common-exceptions.h.
945 (enum return_reason): Likewise.
946 (RETURN_MASK): Likewise.
947 (typedef return_mask): Likewise.
948 (enum errors): Likewise.
949 (struct gdb_exception): Likewise.
950 (exceptions_state_mc_init): Likewise.
951 (exceptions_state_mc_action_iter): Likewise.
952 (exceptions_state_mc_action_iter_1): Likewise.
953 (TRY_CATCH): Likewise.
954 (throw_exception): Likewise.
955 (throw_verror): Likewise.
956 (throw_vquit): Likewise.
957 (throw_error): Likewise.
958 (throw_quit): Likewise.
959 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
960 (enum catcher_action): Likewise.
961 (struct catcher): Likewise.
962 (current_catcher): Likewise.
963 (catcher_list_size): Likewise.
964 (exceptions_state_mc_init): Likewise.
965 (catcher_pop): Likewise.
966 (exceptions_state_mc): Likewise.
967 (exceptions_state_mc_action_iter): Likewise.
968 (exceptions_state_mc_action_iter_1): Likewise.
969 (throw_exception): Likewise.
970 (exception_messages): Likewise.
971 (exception_messages_size): Likewise.
972 (throw_it): Likewise.
973 (throw_verror): Likewise.
974 (throw_vquit): Likewise.
975 (throw_error): Likewise.
976 (throw_quit): Likewise.
977 (prepare_to_throw_exception): New function.
978
979 2014-08-29 Gary Benson <gbenson@redhat.com>
980
981 * common/gdb_setjmp.h: New file.
982 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
983 * configure.ac: Move sigsetjmp check...
984 * common/common.m4: ...here.
985 * configure: Regenerate.
986 * cp-support.c (SIGJMP_BUF): Delete.
987 (SIGSETJMP): Likewise.
988 (SIGLONGJMP): Likewise.
989 * exceptions.h (gdb_setjmp.h): Include.
990 (setjmp.h): Do not include.
991 (EXCEPTIONS_SIGJMP_BUF): Delete.
992 (EXCEPTIONS_SIGSETJMP): Likewise.
993 (EXCEPTIONS_SIGLONGJMP): Likewise.
994 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
995 from gdb_setjmp.h.
996 * exceptions.c: Likewise.
997
998 2014-08-29 Gary Benson <gbenson@redhat.com>
999
1000 * cleanups.h: Moved to...
1001 * common/cleanups.h: New file.
1002 * cleanups.c: Moved to...
1003 * common/cleanups.c: New file. Include common-defs.h and
1004 cleanups.h. Do not include defs.h.
1005 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1006 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1007 (cleanups.o): New rule.
1008
1009 2014-08-29 Gary Benson <gbenson@redhat.com>
1010
1011 * common/errors.h (internal_warning): New declaration.
1012 (internal_vwarning): Likewise.
1013 * common/errors.c (internal_warning): New function.
1014 * utils.h (internal_warning): Don't declare.
1015 (internal_vwarning): Likewise.
1016 * utils.c (internal_warning): Removed.
1017
1018 2014-08-29 Gary Benson <gbenson@redhat.com>
1019
1020 * main.c (captured_main): Use warning during startup.
1021 Prefix startup warning messages with command name.
1022
1023 2014-08-29 Gary Benson <gbenson@redhat.com>
1024
1025 * main.c (captured_main): Handle usage errors with error.
1026
1027 2014-08-29 Gary Benson <gbenson@redhat.com>
1028
1029 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1030 exit pair with a call to error. Wrap the message with _().
1031
1032 2014-08-29 Gary Benson <gbenson@redhat.com>
1033
1034 * main.c (captured_main): Replace a fprintf/exit
1035 pair with a call to error. Wrap the message with _().
1036
1037 2014-08-29 Gary Benson <gbenson@redhat.com>
1038
1039 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1040 pairs with calls to error. Wrap the message with _().
1041
1042 2014-08-29 Gary Benson <gbenson@redhat.com>
1043
1044 * utils.c (vwarning): Protect calls to target_terminal_ours
1045 and wrap_here.
1046
1047 2014-08-29 Gary Benson <gbenson@redhat.com>
1048
1049 * exceptions.c (print_flush): Protect calls to
1050 target_terminal_ours and wrap_here.
1051
1052 2014-08-29 Gary Benson <gbenson@redhat.com>
1053
1054 * utils.h (filtered_printing_initialized): New declaration.
1055 * utils.c (abort_with_message): New function.
1056 (internal_vproblem): Use abort_with_message for first level
1057 recursive internal problems, and if gdb_stderr is not set up.
1058 Protect calls to target_terminal_ours, begin_line and query.
1059
1060 2014-08-28 Doug Evans <dje@google.com>
1061
1062 * symtab.c (in_prologue): Move definition to better spot.
1063 (skip_prologue_using_sal): Ditto.
1064
1065 2014-08-28 Doug Evans <dje@google.com>
1066
1067 * symtab.c (find_function_start_sal): Move definition to better spot.
1068
1069 2014-08-28 Yao Qi <yao@codesourcery.com>
1070
1071 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1072 found_stack_adjust in forward scan. Remove condition check
1073 on found_stack_adjust which is always true. Indent the code.
1074
1075 2014-08-28 Yao Qi <yao@codesourcery.com>
1076
1077 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1078 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1079 (dwarf_decode_lines): Remove argument
1080 want_line_info. Remove condition check on want_line_info.
1081 Callers update.
1082
1083 2014-08-27 Doug Evans <dje@google.com>
1084
1085 * dwarf2read.c (dwarf_record_line): Fix typo.
1086
1087 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1088
1089 * target.h (struct target_ops::to_terminal_save_ours): Remove
1090 declaration.
1091 (target_terminal_save_ours): Remove macro.
1092 * target-delegates.c: Regenerate.
1093 * inf-child.c (inf_child_target): Don't set the nonexistent
1094 field to_terminal_save_ours.
1095 * inferior.h (child_terminal_save_ours): Remove declaration.
1096 * terminal.h (gdb_save_tty_state): New declaration.
1097 * inflow.c (child_terminal_save_ours): Rename to ...
1098 (gdb_save_tty_state): ... this.
1099 * tui/tui.c: Include terminal.h.
1100 (tui_enable): Use gdb_save_tty_state instead of
1101 target_terminal_save_ours.
1102 (tui_disable): Likewise.
1103
1104 2014-08-25 Doug Evans <dje@google.com>
1105
1106 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1107 Pass NULL instead of 0 for context pointer.
1108
1109 2014-08-25 Yao Qi <yao@codesourcery.com>
1110
1111 * dwarf2read.c: Fix grammatical error.
1112
1113 2014-08-24 Yao Qi <yao@codesourcery.com>
1114
1115 * dwarf2read.c (scan_partial_symbols): Update comments.
1116 Rename argument 'need_pc' with 'set_addrmap'.
1117 (add_partial_namespace): Rename argument 'need_pc' with
1118 'set_addrmap'.
1119 (add_partial_module): Likewise.
1120 (add_partial_subprogram): Likewise. Update comments.
1121 (dwarf2_name): Fix typo.
1122
1123 2014-08-22 Doug Evans <dje@google.com>
1124
1125 PR 17276
1126 * dwarf2read.c (dwarf_record_line_p): New function.
1127 (dwarf_decode_lines_1): Ignore subsequent line number entries
1128 for the same line if any entry had a non-zero discriminator.
1129
1130 2014-08-22 Doug Evans <dje@google.com>
1131
1132 * buildsym.h (record_line_ftype): New typedef.
1133 (record_line): Use it.
1134 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1135 (dwarf_decode_lines_1): Call them.
1136
1137 2014-08-22 Yao Qi <yao@codesourcery.com>
1138
1139 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1140 (ctf_end): Remove code.
1141
1142 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1143
1144 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1145 (linux_make_corefile_notes): call update_thread_list, protected against
1146 exceptions.
1147
1148 2014-08-21 Pedro Alves <palves@redhat.com>
1149
1150 * infcmd.c (attach_command): Remove comment.
1151
1152 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1153
1154 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1155 unsigned LONGEST to ULONGEST.
1156
1157 2014-08-20 Pedro Alves <palves@redhat.com>
1158
1159 * Makefile.in (check-read1): New rule.
1160
1161 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1162
1163 * value.c (value_from_contents_and_address): Strip resolved_type's
1164 typedef layers before checking its TYPE_DATA_LOCATION.
1165
1166 2014-08-20 Pedro Alves <palves@redhat.com>
1167
1168 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1169
1170 2014-08-20 Yao Qi <yao@codesourcery.com>
1171
1172 * amd64-tdep.c (amd64_classify): Add a blank line after the
1173 example. Move "*/" to a new line.
1174 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1175 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1176 * dwarf2read.c (psymtab_include_file_name): Likewise.
1177
1178 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1179 Pedro Alves <palves@redhat.com>
1180
1181 PR symtab/14604
1182 PR symtab/14605
1183 * ada-lang.c (coerce_unspec_val_to_type): Use
1184 value_contents_copy_raw.
1185 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1186 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1187 * cp-valprint.c (cp_print_value_fields): Let the common printing
1188 code handle optimized out values.
1189 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1190 * d-valprint.c (dynamic_array_type): Use
1191 value_bits_any_optimized_out.
1192 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1193 check_any_valid fields.
1194 (check_pieced_value_bits): Delete and inline ...
1195 (check_pieced_synthetic_pointer): ... here.
1196 (check_pieced_value_validity): Delete.
1197 (check_pieced_value_invalid): Delete.
1198 (pieced_value_funcs): Remove check_validity and check_any_valid
1199 fields.
1200 (read_pieced_value): Use mark_value_bits_optimized_out.
1201 (write_pieced_value): Switch to use
1202 mark_value_bytes_optimized_out.
1203 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1204 of assuming the whole value is optimized out.
1205 * findvar.c (read_frame_register_value): Remove special handling
1206 of optimized out registers.
1207 (value_from_register): Use mark_value_bytes_optimized_out.
1208 * frame-unwind.c (frame_unwind_got_optimized): Use
1209 mark_value_bytes_optimized_out.
1210 * jv-valprint.c (java_value_print): Adjust.
1211 (java_print_value_fields): Let the common printing code handle
1212 optimized out values.
1213 * mips-tdep.c (mips_print_register): Remove special handling of
1214 optimized out registers.
1215 * opencl-lang.c (lval_func_check_validity): Delete.
1216 (lval_func_check_any_valid): Delete.
1217 (opencl_value_funcs): Remove check_validity and check_any_valid
1218 fields.
1219 * p-valprint.c (pascal_object_print_value_fields): Let the common
1220 printing code handle optimized out values.
1221 * stack.c (read_frame_arg): Remove special handling of optimized
1222 out values. Fetch both VAL and ENTRYVAL before comparing
1223 contents. Adjust to value_available_contents_eq rename.
1224 * valprint.c (valprint_check_validity)
1225 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1226 (val_print_array_elements): Adjust.
1227 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1228 (value_bits_any_optimized_out): New function.
1229 (value_entirely_covered_by_range_vector): New function, factored
1230 out from value_entirely_unavailable.
1231 (value_entirely_unavailable): Reimplement.
1232 (value_entirely_optimized_out): New function.
1233 (insert_into_bit_range_vector): New function, factored out from
1234 mark_value_bits_unavailable.
1235 (mark_value_bits_unavailable): Reimplement.
1236 (struct ranges_and_idx): New struct.
1237 (find_first_range_overlap_and_match): New function, factored out
1238 from value_available_contents_bits_eq.
1239 (value_available_contents_bits_eq): Rename to ...
1240 (value_contents_bits_eq): ... this. Check both unavailable
1241 contents and optimized out contents.
1242 (value_available_contents_eq): Rename to ...
1243 (value_contents_eq): ... this.
1244 (allocate_value_lazy): Remove reference to the old optimized_out
1245 boolean.
1246 (allocate_optimized_out_value): Use
1247 mark_value_bytes_optimized_out.
1248 (require_not_optimized_out): Adjust to check whether the
1249 optimized_out vec is empty.
1250 (ranges_copy_adjusted): New function, factored out from
1251 value_contents_copy_raw.
1252 (value_contents_copy_raw): Also copy the optimized out ranges.
1253 Assert the destination ranges aren't optimized out.
1254 (value_contents_copy): Update comment, remove call to
1255 require_not_optimized_out.
1256 (value_contents_equal): Adjust to check whether the optimized_out
1257 vec is empty.
1258 (set_value_optimized_out, value_optimized_out_const): Delete.
1259 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1260 New functions.
1261 (value_entirely_optimized_out, value_bits_valid): Delete.
1262 (value_copy): Take a VEC copy of the 'optimized_out' field.
1263 (value_primitive_field): Remove special handling of optimized out.
1264 (value_fetch_lazy): Assert that lazy values have no unavailable
1265 regions. Use value_bits_any_optimized_out. Remove some special
1266 handling for optimized out values.
1267 * value.h: Add intro comment about <optimized out> and
1268 <unavailable>.
1269 (struct lval_funcs): Remove check_validity and check_any_valid
1270 fields.
1271 (set_value_optimized_out, value_optimized_out_const): Remove.
1272 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1273 New declarations.
1274 (value_bits_any_optimized_out): New declaration.
1275 (value_bits_valid): Delete declaration.
1276 (value_available_contents_eq): Rename to ...
1277 (value_contents_eq): ... this, and extend comments.
1278
1279 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1280
1281 Fix -fsanitize=address on unreadable inferior strings.
1282 * valprint.c (val_print_string): Fix access before BUFFER.
1283
1284 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1285
1286 * target.c (target_struct_size): Remove.
1287 (target_struct_allocsize): Remove.
1288 (DEFAULT_ALLOCSIZE): Remove.
1289 (target_ops_p): New typedef.
1290 (DEF_VEC_P (target_ops_p)): New vector type.
1291 (target_structs): Change type to VEC (target_ops_p).
1292 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1293 (find_default_run_target): Rewrite for loop following changes to
1294 target_structs.
1295
1296 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1297
1298 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1299 Adjust code accordingly. Adjust function description comment.
1300
1301 2014-08-19 Yao Qi <yao@codesourcery.com>
1302
1303 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1304 types.
1305
1306 2014-08-19 Alan Modra <amodra@gmail.com>
1307
1308 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1309 * config.in: Regenerate.
1310 * configure: Regenerate.
1311
1312 2014-08-19 Tom Tromey <tromey@redhat.com>
1313 Gary Benson <gbenson@redhat.com>
1314
1315 * common/common-debug.h: New file.
1316 * common/common-debug.c: Likewise.
1317 * debug.c: Likewise.
1318 * Makefile.in (SFILES): Add common/common-debug.c.
1319 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1320 (COMMON_OBS): Add common-debug.o and debug.o.
1321 (common-debug.o): New rule.
1322 * common/common-defs.h: Include common-debug.h.
1323 * common/agent.c (debug_agent_printf): New function.
1324 (DEBUG_AGENT): Redefine.
1325 * nat/i386-dregs.c (debug_printf): Undefine.
1326
1327 2014-08-19 Gary Benson <gbenson@redhat.com>
1328
1329 * common/common-defs.h: Include print-utils.h.
1330 * utils.h: Do not include print-utils.h.
1331
1332 2014-08-19 Tom Tromey <tromey@redhat.com>
1333 Gary Benson <gbenson@redhat.com>
1334
1335 * common/common-types.h: New file.
1336 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1337 * common/common-defs.h: Include common-types.h.
1338 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1339 (ULONGEST): Remove.
1340
1341 2014-08-19 Tom Tromey <tromey@redhat.com>
1342 Gary Benson <gbenson@redhat.com>
1343
1344 * common/errors.h: New file.
1345 * common/errors.c: Likewise.
1346 * Makefile.in (SFILES): Add common/errors.c.
1347 (HFILES_NO_SRCDIR): Add common/errors.h.
1348 (COMMON_OBS): Add errors.o.
1349 (errors.o): New rule.
1350 * common/common-defs.h: Include errors.h.
1351 * utils.h (perror_with_name, error, verror, warning, vwarning):
1352 Don't declare.
1353 * common/common-utils.h: (malloc_failure, internal_error):
1354 Likewise.
1355
1356 2014-08-19 Gary Benson <gbenson@redhat.com>
1357
1358 * utils.c (internal_vproblem): Always print the message.
1359
1360 2014-08-18 Doug Evans <dje@google.com>
1361
1362 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1363
1364 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1365
1366 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1367 Return 0 if TYPE is dynamic.
1368 (print_range): Add handling of dynamic ranges.
1369
1370 2014-08-18 Keven Boell <keven.boell@intel.com>
1371 Joel Brobecker <brobecker@adacore.com>
1372
1373 * gdbtypes.h (struct main_type): Add field "data_location".
1374 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1375 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1376 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1377 a dynamic data location.
1378 (resolve_dynamic_type): Add DW_AT_data_location handling.
1379 (copy_recursive, copy_type): Copy the data_location information
1380 when present.
1381 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1382 * value.c (value_from_contents_and_address): Add
1383 DW_AT_data_location handling.
1384
1385 2014-08-18 Keven Boell <keven.boell@intel.com>
1386 Joel Brobecker <brobecker@adacore.com>
1387
1388 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1389 field "get_object_address".
1390 * dwarf2expr.c (execute_stack_op): Add handling for
1391 DW_OP_push_object_address.
1392 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1393 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1394 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1395 (dwarf_expr_get_obj_addr): New function.
1396 (dwarf_expr_ctx_funcs): Add get_object_address field.
1397 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1398 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1399 (dwarf2_evaluate_property): Add parameter "address". Use it.
1400 (needs_get_obj_addr): New function.
1401 (needs_frame_ctx_funcs): Add get_object_address field.
1402 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1403 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1404 (resolve_dynamic_array): Likewise.
1405
1406 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1407
1408 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1409 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1410 fixed value for records and unions for which some GNAT encodings
1411 are present.
1412
1413 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1414
1415 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1416 rewrite to avoid "else if" and "else" constructs. Should be
1417 a no-op in practice.
1418
1419 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1420
1421 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1422 of lexical block.
1423
1424 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1425
1426 PR c++/17132
1427 * eval.c: Update all calls to find_overload_match.
1428 * valarith.c: Likewise.
1429 (value_user_defined_cpp_op, value_user_defined_op): New
1430 argument NOSIDE. Update all callers.
1431 * valops.c (find_overload_match): New argument NOSIDE.
1432 * value.h (find_overload_match): Update signature.
1433
1434 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1435
1436 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1437 'items' methods instead of 'iteritems' method on dictionaries.
1438
1439 2014-08-15 Doug Evans <dje@google.com>
1440
1441 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1442 closer to use.
1443
1444 2014-08-15 Doug Evans <dje@google.com>
1445
1446 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1447
1448 2014-08-15 Doug Evans <dje@google.com>
1449
1450 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1451
1452 2014-08-15 Doug Evans <dje@google.com>
1453
1454 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1455 unused.
1456
1457 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1458
1459 * dcache.h: Include target.h, to avoid compile time warnings.
1460
1461 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1462
1463 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1464 frame_info" partial declaration.
1465 * gdbarch.h: Regenerate.
1466
1467 2014-08-15 Yao Qi <yao@codesourcery.com>
1468
1469 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1470 Add parameter 'decode_for_pst_p'. Callers update.
1471
1472 2014-08-13 Yao Qi <yao@codesourcery.com>
1473
1474 PR build/17104
1475 * configure.ac: Use local variable 'pos'.
1476 * configure: Regenerated.
1477
1478 2014-08-11 Doug Evans <dje@google.com>
1479
1480 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1481 message, it is redundant with "Reading symbols from ..." message.
1482
1483 2014-08-10 Doug Evans <xdje42@gmail.com>
1484
1485 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1486
1487 2014-08-09 Yao Qi <yao@codesourcery.com>
1488
1489 PR remote/9053
1490 * remote.c (remote_xfer_partial): Remove dead code.
1491
1492 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1493
1494 * ia64-linux-tdep.c: Include "regset.h".
1495 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1496 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1497 (ia64_linux_supply_fpregset): New function.
1498 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1499 (ia64_linux_regset_from_core_section): New function.
1500 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1501 method.
1502
1503 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1504
1505 * m68klinux-tdep.c: Include "regset.h".
1506 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1507 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1508 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1509 (m68k_linux_regset_from_core_section): New function.
1510 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1511 method.
1512
1513 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1514
1515 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1516 function. Move logic to...
1517 (tilegx_linux_regmap): ... this new register map.
1518 (tilegx_linux_regset): Refer to register map, replace supply
1519 method by regcache_supply_regset, and add collect method.
1520 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1521 TILEGX_FIRST_EASY_REGNUM.
1522
1523 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1524
1525 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1526 that calls regcache_supply_regset and handles the EPC register
1527 separately. Move main logic to...
1528 (score7_linux_gregmap): ... this new register map.
1529 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1530 (score7_linux_gregset): Refer to register map. Add collect method.
1531 (score7_linux_regset_from_core_section): Replace
1532 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1533 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1534 (struct regset): Delete unused forward declaraction.
1535 (struct pt_regs): Delete structure definition.
1536 (elf_gregset_t): Delete typedef.
1537
1538 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1539
1540 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1541 (nios2_core_regset): Add collect method.
1542
1543 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1544
1545 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1546 platform-independent and don't write to read-only input buffer.
1547 (m32r_linux_collect_gregset): New function.
1548 (m32r_linux_gregset): Add collect method.
1549
1550 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1551
1552 * hppa-linux-tdep.c (greg_map): Rename to...
1553 (hppa_linux_gregmap): ... this. Also convert to
1554 regcache_map_entry format.
1555 (hppa_linux_supply_regset): Delete function.
1556 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1557 (hppa_linux_fpregmap): ... this new register map.
1558 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1559 register map, replace supply method by regcache_supply_regset, and
1560 add collect method regcache_collect_regset.
1561
1562 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1563
1564 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1565 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1566 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1567 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1568 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1569 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1570 (frv_linux_supply_gregset): Replace main logic by call to
1571 regcache_supply_regset, but keep clearing gr32-gr63.
1572 (frv_linux_supply_fpregset): Delete function.
1573 (frv_linux_gregset): Refer to appropriate register map and add
1574 regcache_collect_regset as the collect method.
1575 (frv_linux_fpregset): Likewise. Also exchange the supply method
1576 by regcache_supply_regset.
1577
1578 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1579
1580 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1581 by call to alpha_supply_int_regs.
1582 (alpha_linux_collect_gregset): New function.
1583 (alpha_linux_supply_fpregset): Replace logic by call to
1584 alpha_supply_fp_regs.
1585 (alpha_linux_collect_fpregset): New function.
1586 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1587
1588 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1589
1590 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1591 by call to regcache_collect_regset.
1592 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1593 instead of aarch64_linux_supply_gregset/_fpregset.
1594 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1595 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1596 header file instead.
1597 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1598 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1599 functions. Move logic to ...
1600 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1601 register maps.
1602 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1603 refer to new register maps, replace *_regset_from_core by
1604 regcache_supply_regset, and also use regcache_collect_regset.
1605 * aarch64-linux-tdep.h: Include "regset.h".
1606 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1607 Delete prototypes.
1608 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1609 macros, moved from C source file.
1610 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1611 variable declarations.
1612
1613 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1614
1615 * s390-linux-nat.c: Include "regset.h".
1616 (regmap_gregset): Delete macro.
1617 (s390_64_regmap_gregset): New register map for
1618 regcache_supply/_collect_regset.
1619 (s390_64_gregset): New regset.
1620 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1621 (regmap_fpregset): Delete macro.
1622 (s390_native_supply, s390_native_collect): Delete functions.
1623 (supply_gregset, fill_gregset): Replace s390-specific regmap
1624 handling by a call to regcache_supply/_collect_regset.
1625 (supply_fpregset, fill_fpregset): Call regcache_supply/
1626 _collect_regset instead of s390_native_supply/_collect.
1627 (fetch_regset, store_regset): Likewise. Also change the last
1628 parameter to a regset instead of a regmap.
1629 (s390_linux_fetch_inferior_registers)
1630 (390_linux_store_inferior_registers): Adjust last parameter in
1631 calls to fetch_regset and store_regset.
1632 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1633 (s390_gregmap): ... this. Also make static const and convert to
1634 regcache_map_entry format.
1635 (s390x_regmap_gregset): Delete.
1636 (s390_regmap_fpregset): Rename to...
1637 (s390_fpregmap): ... this. Make static const and convert to
1638 regcache_map_entry format.
1639 (s390_regmap_upper, s390_regmap_last_break)
1640 (s390x_regmap_last_break, s390_regmap_system_call)
1641 (s390_regmap_tdb): Likewise.
1642 (s390_supply_regset, s390_collect_regset): Remove functions.
1643 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1644 s390_supply_regset.
1645 (s390_gregset, s390_fpregset, s390_upper_regset)
1646 (s390_last_break_regset, s390x_last_break_regset)
1647 (s390_system_call_regset, s390_tdb_regset): Make global and
1648 replace s390_supply/_collect_regset by regcache_supply/
1649 _collect_regset.
1650 (s390x_gregset): Delete.
1651 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1652 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1653 (s390_regmap_fpregset, s390_regmap_last_break)
1654 (s390x_regmap_last_break, s390_regmap_system_call)
1655 (s390_regmap_tdb): Delete global variable declarations.
1656 (s390_gregset, s390_fpregset, s390_last_break_regset)
1657 (s390x_last_break_regset, s390_system_call_regset)
1658 (s390_tdb_regset): New global variable declarations.
1659
1660 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1661
1662 * regcache.c: Include "regset.h".
1663 (regcache_transfer_regset): New local function.
1664 (regcache_supply_regset, regcache_collect_regset): New functions.
1665 * regcache.h (struct regcache_map_entry): New structure.
1666 (REGCACHE_MAP_SKIP): New enum value.
1667 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1668
1669 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1670
1671 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1672 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1673 (ppc_linux_collect_gregset ): Likewise.
1674 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1675 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1676 (ppc_collect_vrregset): Likewise.
1677 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1678 Likewise.
1679
1680 2014-08-07 Yao Qi <yao@codesourcery.com>
1681
1682 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1683 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1684 * remote.c (remote_read_bytes): Likewise.
1685
1686 2014-08-07 Yao Qi <yao@codesourcery.com>
1687
1688 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1689
1690 2014-08-07 Yao Qi <yao@codesourcery.com>
1691
1692 PR remote/17230
1693 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1694 TARGET_XFER_OK instead of 0.
1695
1696 2014-08-07 Gary Benson <gbenson@redhat.com>
1697
1698 * common/common-defs.h: Include errno.h.
1699 * defs.h: Do not include errno.h.
1700 * ada-typeprint.c: Likewise.
1701 * c-typeprint.c: Likewise.
1702 * core-regset.c: Likewise.
1703 * corefile.c: Likewise.
1704 * corelow.c: Likewise.
1705 * event-loop.c: Likewise.
1706 * f-typeprint.c: Likewise.
1707 * gnu-nat.c: Likewise.
1708 * go32-nat.c: Likewise.
1709 * i386gnu-nat.c: Likewise.
1710 * m2-typeprint.c: Likewise.
1711 * nat/linux-btrace.c: Likewise.
1712 * p-typeprint.c: Likewise.
1713 * procfs.c: Likewise.
1714 * remote-sim.c: Likewise.
1715 * rs6000-nat.c: Likewise.
1716 * target.c: Likewise.
1717 * typeprint.c: Likewise.
1718 * ui-file.c: Likewise.
1719 * valops.c: Likewise.
1720 * valprint.c: Likewise.
1721
1722 2014-08-07 Gary Benson <gbenson@redhat.com>
1723
1724 * common/common-defs.h: Include string.h.
1725 * aarch64-tdep.c: Do not include string.h.
1726 * ada-exp.y: Likewise.
1727 * ada-lang.c: Likewise.
1728 * ada-lex.l: Likewise.
1729 * ada-typeprint.c: Likewise.
1730 * ada-valprint.c: Likewise.
1731 * aix-thread.c: Likewise.
1732 * alpha-linux-tdep.c: Likewise.
1733 * alpha-mdebug-tdep.c: Likewise.
1734 * alpha-nat.c: Likewise.
1735 * alpha-osf1-tdep.c: Likewise.
1736 * alpha-tdep.c: Likewise.
1737 * alphanbsd-tdep.c: Likewise.
1738 * amd64-dicos-tdep.c: Likewise.
1739 * amd64-linux-tdep.c: Likewise.
1740 * amd64-nat.c: Likewise.
1741 * amd64-sol2-tdep.c: Likewise.
1742 * amd64fbsd-tdep.c: Likewise.
1743 * amd64obsd-tdep.c: Likewise.
1744 * arch-utils.c: Likewise.
1745 * arm-linux-nat.c: Likewise.
1746 * arm-linux-tdep.c: Likewise.
1747 * arm-tdep.c: Likewise.
1748 * arm-wince-tdep.c: Likewise.
1749 * armbsd-tdep.c: Likewise.
1750 * armnbsd-nat.c: Likewise.
1751 * armnbsd-tdep.c: Likewise.
1752 * armobsd-tdep.c: Likewise.
1753 * avr-tdep.c: Likewise.
1754 * ax-gdb.c: Likewise.
1755 * ax-general.c: Likewise.
1756 * bcache.c: Likewise.
1757 * bfin-tdep.c: Likewise.
1758 * breakpoint.c: Likewise.
1759 * build-id.c: Likewise.
1760 * buildsym.c: Likewise.
1761 * c-exp.y: Likewise.
1762 * c-lang.c: Likewise.
1763 * c-typeprint.c: Likewise.
1764 * c-valprint.c: Likewise.
1765 * charset.c: Likewise.
1766 * cli-out.c: Likewise.
1767 * cli/cli-cmds.c: Likewise.
1768 * cli/cli-decode.c: Likewise.
1769 * cli/cli-dump.c: Likewise.
1770 * cli/cli-interp.c: Likewise.
1771 * cli/cli-logging.c: Likewise.
1772 * cli/cli-script.c: Likewise.
1773 * cli/cli-setshow.c: Likewise.
1774 * cli/cli-utils.c: Likewise.
1775 * coffread.c: Likewise.
1776 * common/agent.c: Likewise.
1777 * common/buffer.c: Likewise.
1778 * common/buffer.h: Likewise.
1779 * common/common-utils.c: Likewise.
1780 * common/filestuff.c: Likewise.
1781 * common/filestuff.c: Likewise.
1782 * common/format.c: Likewise.
1783 * common/print-utils.c: Likewise.
1784 * common/rsp-low.c: Likewise.
1785 * common/signals.c: Likewise.
1786 * common/vec.h: Likewise.
1787 * common/xml-utils.c: Likewise.
1788 * core-regset.c: Likewise.
1789 * corefile.c: Likewise.
1790 * corelow.c: Likewise.
1791 * cp-abi.c: Likewise.
1792 * cp-name-parser.y: Likewise.
1793 * cp-support.c: Likewise.
1794 * cp-valprint.c: Likewise.
1795 * cris-tdep.c: Likewise.
1796 * d-exp.y: Likewise.
1797 * darwin-nat.c: Likewise.
1798 * dbxread.c: Likewise.
1799 * dcache.c: Likewise.
1800 * demangle.c: Likewise.
1801 * dicos-tdep.c: Likewise.
1802 * disasm.c: Likewise.
1803 * doublest.c: Likewise.
1804 * dsrec.c: Likewise.
1805 * dummy-frame.c: Likewise.
1806 * dwarf2-frame.c: Likewise.
1807 * dwarf2loc.c: Likewise.
1808 * dwarf2read.c: Likewise.
1809 * elfread.c: Likewise.
1810 * environ.c: Likewise.
1811 * eval.c: Likewise.
1812 * event-loop.c: Likewise.
1813 * exceptions.c: Likewise.
1814 * exec.c: Likewise.
1815 * expprint.c: Likewise.
1816 * f-exp.y: Likewise.
1817 * f-lang.c: Likewise.
1818 * f-typeprint.c: Likewise.
1819 * f-valprint.c: Likewise.
1820 * fbsd-nat.c: Likewise.
1821 * findcmd.c: Likewise.
1822 * findvar.c: Likewise.
1823 * fork-child.c: Likewise.
1824 * frame.c: Likewise.
1825 * frv-linux-tdep.c: Likewise.
1826 * frv-tdep.c: Likewise.
1827 * gdb.c: Likewise.
1828 * gdb_bfd.c: Likewise.
1829 * gdbarch.c: Likewise.
1830 * gdbarch.sh: Likewise.
1831 * gdbtypes.c: Likewise.
1832 * gnu-nat.c: Likewise.
1833 * gnu-v2-abi.c: Likewise.
1834 * gnu-v3-abi.c: Likewise.
1835 * go-exp.y: Likewise.
1836 * go-lang.c: Likewise.
1837 * go32-nat.c: Likewise.
1838 * guile/guile.c: Likewise.
1839 * guile/scm-auto-load.c: Likewise.
1840 * hppa-hpux-tdep.c: Likewise.
1841 * hppa-linux-nat.c: Likewise.
1842 * hppanbsd-tdep.c: Likewise.
1843 * hppaobsd-tdep.c: Likewise.
1844 * i386-cygwin-tdep.c: Likewise.
1845 * i386-dicos-tdep.c: Likewise.
1846 * i386-linux-tdep.c: Likewise.
1847 * i386-nto-tdep.c: Likewise.
1848 * i386-sol2-tdep.c: Likewise.
1849 * i386-tdep.c: Likewise.
1850 * i386bsd-tdep.c: Likewise.
1851 * i386gnu-nat.c: Likewise.
1852 * i386nbsd-tdep.c: Likewise.
1853 * i386obsd-tdep.c: Likewise.
1854 * i387-tdep.c: Likewise.
1855 * ia64-libunwind-tdep.c: Likewise.
1856 * ia64-linux-nat.c: Likewise.
1857 * inf-child.c: Likewise.
1858 * inf-ptrace.c: Likewise.
1859 * inf-ttrace.c: Likewise.
1860 * infcall.c: Likewise.
1861 * infcmd.c: Likewise.
1862 * inflow.c: Likewise.
1863 * infrun.c: Likewise.
1864 * interps.c: Likewise.
1865 * iq2000-tdep.c: Likewise.
1866 * irix5-nat.c: Likewise.
1867 * jv-exp.y: Likewise.
1868 * jv-lang.c: Likewise.
1869 * jv-typeprint.c: Likewise.
1870 * jv-valprint.c: Likewise.
1871 * language.c: Likewise.
1872 * linux-fork.c: Likewise.
1873 * linux-nat.c: Likewise.
1874 * lm32-tdep.c: Likewise.
1875 * m2-exp.y: Likewise.
1876 * m2-typeprint.c: Likewise.
1877 * m32c-tdep.c: Likewise.
1878 * m32r-linux-nat.c: Likewise.
1879 * m32r-linux-tdep.c: Likewise.
1880 * m32r-rom.c: Likewise.
1881 * m32r-tdep.c: Likewise.
1882 * m68hc11-tdep.c: Likewise.
1883 * m68k-tdep.c: Likewise.
1884 * m68kbsd-tdep.c: Likewise.
1885 * m68klinux-nat.c: Likewise.
1886 * m68klinux-tdep.c: Likewise.
1887 * m88k-tdep.c: Likewise.
1888 * machoread.c: Likewise.
1889 * macrocmd.c: Likewise.
1890 * main.c: Likewise.
1891 * mdebugread.c: Likewise.
1892 * mem-break.c: Likewise.
1893 * memattr.c: Likewise.
1894 * memory-map.c: Likewise.
1895 * mep-tdep.c: Likewise.
1896 * mi/mi-cmd-break.c: Likewise.
1897 * mi/mi-cmd-disas.c: Likewise.
1898 * mi/mi-cmd-env.c: Likewise.
1899 * mi/mi-cmd-stack.c: Likewise.
1900 * mi/mi-cmd-var.c: Likewise.
1901 * mi/mi-cmds.c: Likewise.
1902 * mi/mi-console.c: Likewise.
1903 * mi/mi-getopt.c: Likewise.
1904 * mi/mi-interp.c: Likewise.
1905 * mi/mi-main.c: Likewise.
1906 * mi/mi-parse.c: Likewise.
1907 * microblaze-rom.c: Likewise.
1908 * microblaze-tdep.c: Likewise.
1909 * mingw-hdep.c: Likewise.
1910 * minidebug.c: Likewise.
1911 * minsyms.c: Likewise.
1912 * mips-irix-tdep.c: Likewise.
1913 * mips-linux-tdep.c: Likewise.
1914 * mips-tdep.c: Likewise.
1915 * mips64obsd-tdep.c: Likewise.
1916 * mipsnbsd-tdep.c: Likewise.
1917 * mipsread.c: Likewise.
1918 * mn10300-linux-tdep.c: Likewise.
1919 * mn10300-tdep.c: Likewise.
1920 * monitor.c: Likewise.
1921 * moxie-tdep.c: Likewise.
1922 * mt-tdep.c: Likewise.
1923 * nat/linux-btrace.c: Likewise.
1924 * nat/linux-osdata.c: Likewise.
1925 * nat/linux-procfs.c: Likewise.
1926 * nat/linux-ptrace.c: Likewise.
1927 * nat/linux-waitpid.c: Likewise.
1928 * nbsd-tdep.c: Likewise.
1929 * nios2-linux-tdep.c: Likewise.
1930 * nto-procfs.c: Likewise.
1931 * nto-tdep.c: Likewise.
1932 * objc-lang.c: Likewise.
1933 * objfiles.c: Likewise.
1934 * opencl-lang.c: Likewise.
1935 * osabi.c: Likewise.
1936 * osdata.c: Likewise.
1937 * p-exp.y: Likewise.
1938 * p-lang.c: Likewise.
1939 * p-typeprint.c: Likewise.
1940 * parse.c: Likewise.
1941 * posix-hdep.c: Likewise.
1942 * ppc-linux-nat.c: Likewise.
1943 * ppc-sysv-tdep.c: Likewise.
1944 * ppcfbsd-tdep.c: Likewise.
1945 * ppcnbsd-tdep.c: Likewise.
1946 * ppcobsd-tdep.c: Likewise.
1947 * printcmd.c: Likewise.
1948 * procfs.c: Likewise.
1949 * prologue-value.c: Likewise.
1950 * python/py-auto-load.c: Likewise.
1951 * python/py-gdb-readline.c: Likewise.
1952 * ravenscar-thread.c: Likewise.
1953 * regcache.c: Likewise.
1954 * registry.c: Likewise.
1955 * remote-fileio.c: Likewise.
1956 * remote-m32r-sdi.c: Likewise.
1957 * remote-mips.c: Likewise.
1958 * remote-notif.c: Likewise.
1959 * remote-sim.c: Likewise.
1960 * remote.c: Likewise.
1961 * reverse.c: Likewise.
1962 * rs6000-aix-tdep.c: Likewise.
1963 * ser-base.c: Likewise.
1964 * ser-go32.c: Likewise.
1965 * ser-mingw.c: Likewise.
1966 * ser-pipe.c: Likewise.
1967 * ser-tcp.c: Likewise.
1968 * ser-unix.c: Likewise.
1969 * serial.c: Likewise.
1970 * sh-tdep.c: Likewise.
1971 * sh64-tdep.c: Likewise.
1972 * shnbsd-tdep.c: Likewise.
1973 * skip.c: Likewise.
1974 * sol-thread.c: Likewise.
1975 * solib-dsbt.c: Likewise.
1976 * solib-frv.c: Likewise.
1977 * solib-osf.c: Likewise.
1978 * solib-som.c: Likewise.
1979 * solib-spu.c: Likewise.
1980 * solib-target.c: Likewise.
1981 * solib.c: Likewise.
1982 * somread.c: Likewise.
1983 * source.c: Likewise.
1984 * sparc-nat.c: Likewise.
1985 * sparc-sol2-tdep.c: Likewise.
1986 * sparc-tdep.c: Likewise.
1987 * sparc64-tdep.c: Likewise.
1988 * sparc64fbsd-tdep.c: Likewise.
1989 * sparc64nbsd-tdep.c: Likewise.
1990 * sparcnbsd-tdep.c: Likewise.
1991 * spu-linux-nat.c: Likewise.
1992 * spu-multiarch.c: Likewise.
1993 * spu-tdep.c: Likewise.
1994 * stabsread.c: Likewise.
1995 * stack.c: Likewise.
1996 * std-regs.c: Likewise.
1997 * symfile.c: Likewise.
1998 * symmisc.c: Likewise.
1999 * symtab.c: Likewise.
2000 * target.c: Likewise.
2001 * thread.c: Likewise.
2002 * tilegx-linux-nat.c: Likewise.
2003 * tilegx-tdep.c: Likewise.
2004 * top.c: Likewise.
2005 * tracepoint.c: Likewise.
2006 * tui/tui-command.c: Likewise.
2007 * tui/tui-data.c: Likewise.
2008 * tui/tui-disasm.c: Likewise.
2009 * tui/tui-file.c: Likewise.
2010 * tui/tui-layout.c: Likewise.
2011 * tui/tui-out.c: Likewise.
2012 * tui/tui-regs.c: Likewise.
2013 * tui/tui-source.c: Likewise.
2014 * tui/tui-stack.c: Likewise.
2015 * tui/tui-win.c: Likewise.
2016 * tui/tui-windata.c: Likewise.
2017 * tui/tui-winsource.c: Likewise.
2018 * typeprint.c: Likewise.
2019 * ui-file.c: Likewise.
2020 * ui-out.c: Likewise.
2021 * user-regs.c: Likewise.
2022 * utils.c: Likewise.
2023 * v850-tdep.c: Likewise.
2024 * valarith.c: Likewise.
2025 * valops.c: Likewise.
2026 * valprint.c: Likewise.
2027 * value.c: Likewise.
2028 * varobj.c: Likewise.
2029 * vax-tdep.c: Likewise.
2030 * vaxnbsd-tdep.c: Likewise.
2031 * vaxobsd-tdep.c: Likewise.
2032 * windows-nat.c: Likewise.
2033 * xcoffread.c: Likewise.
2034 * xml-support.c: Likewise.
2035 * xstormy16-tdep.c: Likewise.
2036 * xtensa-linux-nat.c: Likewise.
2037
2038 2014-08-07 Gary Benson <gbenson@redhat.com>
2039
2040 * common/common-defs.h: Include gdb_assert.h.
2041 * aarch64-tdep.c: Do not include gdb_assert.h.
2042 * addrmap.c: Likewise.
2043 * aix-thread.c: Likewise.
2044 * alpha-linux-tdep.c: Likewise.
2045 * alpha-mdebug-tdep.c: Likewise.
2046 * alphanbsd-tdep.c: Likewise.
2047 * amd64-nat.c: Likewise.
2048 * amd64-tdep.c: Likewise.
2049 * amd64bsd-nat.c: Likewise.
2050 * amd64fbsd-nat.c: Likewise.
2051 * amd64fbsd-tdep.c: Likewise.
2052 * amd64nbsd-nat.c: Likewise.
2053 * amd64nbsd-tdep.c: Likewise.
2054 * amd64obsd-nat.c: Likewise.
2055 * amd64obsd-tdep.c: Likewise.
2056 * arch-utils.c: Likewise.
2057 * arm-tdep.c: Likewise.
2058 * armbsd-tdep.c: Likewise.
2059 * auxv.c: Likewise.
2060 * bcache.c: Likewise.
2061 * bfin-tdep.c: Likewise.
2062 * blockframe.c: Likewise.
2063 * breakpoint.c: Likewise.
2064 * bsd-kvm.c: Likewise.
2065 * bsd-uthread.c: Likewise.
2066 * buildsym.c: Likewise.
2067 * c-exp.y: Likewise.
2068 * c-lang.c: Likewise.
2069 * charset.c: Likewise.
2070 * cleanups.c: Likewise.
2071 * cli-out.c: Likewise.
2072 * cli/cli-decode.c: Likewise.
2073 * cli/cli-dump.c: Likewise.
2074 * cli/cli-logging.c: Likewise.
2075 * cli/cli-script.c: Likewise.
2076 * cli/cli-utils.c: Likewise.
2077 * coffread.c: Likewise.
2078 * common/common-utils.c: Likewise.
2079 * common/queue.h: Likewise.
2080 * common/signals.c: Likewise.
2081 * common/vec.h: Likewise.
2082 * complaints.c: Likewise.
2083 * completer.c: Likewise.
2084 * corelow.c: Likewise.
2085 * cp-abi.c: Likewise.
2086 * cp-name-parser.y: Likewise.
2087 * cp-namespace.c: Likewise.
2088 * cp-support.c: Likewise.
2089 * cris-tdep.c: Likewise.
2090 * dbxread.c: Likewise.
2091 * dictionary.c: Likewise.
2092 * doublest.c: Likewise.
2093 * dsrec.c: Likewise.
2094 * dummy-frame.c: Likewise.
2095 * dwarf2-frame-tailcall.c: Likewise.
2096 * dwarf2-frame.c: Likewise.
2097 * dwarf2expr.c: Likewise.
2098 * dwarf2loc.c: Likewise.
2099 * dwarf2read.c: Likewise.
2100 * eval.c: Likewise.
2101 * event-loop.c: Likewise.
2102 * exceptions.c: Likewise.
2103 * expprint.c: Likewise.
2104 * f-valprint.c: Likewise.
2105 * fbsd-nat.c: Likewise.
2106 * findvar.c: Likewise.
2107 * frame-unwind.c: Likewise.
2108 * frame.c: Likewise.
2109 * frv-tdep.c: Likewise.
2110 * gcore.c: Likewise.
2111 * gdb-dlfcn.c: Likewise.
2112 * gdb_bfd.c: Likewise.
2113 * gdbarch.c: Likewise.
2114 * gdbarch.sh: Likewise.
2115 * gdbtypes.c: Likewise.
2116 * gnu-nat.c: Likewise.
2117 * gnu-v3-abi.c: Likewise.
2118 * go-lang.c: Likewise.
2119 * guile/scm-exception.c: Likewise.
2120 * guile/scm-gsmob.c: Likewise.
2121 * guile/scm-lazy-string.c: Likewise.
2122 * guile/scm-math.c: Likewise.
2123 * guile/scm-pretty-print.c: Likewise.
2124 * guile/scm-safe-call.c: Likewise.
2125 * guile/scm-utils.c: Likewise.
2126 * guile/scm-value.c: Likewise.
2127 * h8300-tdep.c: Likewise.
2128 * hppa-hpux-nat.c: Likewise.
2129 * hppa-tdep.c: Likewise.
2130 * hppanbsd-tdep.c: Likewise.
2131 * hppaobsd-tdep.c: Likewise.
2132 * i386-darwin-nat.c: Likewise.
2133 * i386-darwin-tdep.c: Likewise.
2134 * i386-nto-tdep.c: Likewise.
2135 * i386-tdep.c: Likewise.
2136 * i386bsd-nat.c: Likewise.
2137 * i386fbsd-tdep.c: Likewise.
2138 * i386gnu-nat.c: Likewise.
2139 * i386nbsd-tdep.c: Likewise.
2140 * i386obsd-tdep.c: Likewise.
2141 * i387-tdep.c: Likewise.
2142 * ia64-libunwind-tdep.c: Likewise.
2143 * ia64-tdep.c: Likewise.
2144 * inf-ptrace.c: Likewise.
2145 * inf-ttrace.c: Likewise.
2146 * infcall.c: Likewise.
2147 * infcmd.c: Likewise.
2148 * infrun.c: Likewise.
2149 * inline-frame.c: Likewise.
2150 * interps.c: Likewise.
2151 * jv-lang.c: Likewise.
2152 * jv-typeprint.c: Likewise.
2153 * linux-fork.c: Likewise.
2154 * linux-nat.c: Likewise.
2155 * linux-thread-db.c: Likewise.
2156 * m32c-tdep.c: Likewise.
2157 * m32r-linux-nat.c: Likewise.
2158 * m32r-tdep.c: Likewise.
2159 * m68k-tdep.c: Likewise.
2160 * m68kbsd-nat.c: Likewise.
2161 * m68kbsd-tdep.c: Likewise.
2162 * m88k-tdep.c: Likewise.
2163 * machoread.c: Likewise.
2164 * macroexp.c: Likewise.
2165 * macrotab.c: Likewise.
2166 * maint.c: Likewise.
2167 * mdebugread.c: Likewise.
2168 * memory-map.c: Likewise.
2169 * mep-tdep.c: Likewise.
2170 * mi/mi-common.c: Likewise.
2171 * microblaze-tdep.c: Likewise.
2172 * mingw-hdep.c: Likewise.
2173 * mips-linux-nat.c: Likewise.
2174 * mips-linux-tdep.c: Likewise.
2175 * mips-tdep.c: Likewise.
2176 * mips64obsd-tdep.c: Likewise.
2177 * mipsnbsd-tdep.c: Likewise.
2178 * mn10300-linux-tdep.c: Likewise.
2179 * mn10300-tdep.c: Likewise.
2180 * moxie-tdep.c: Likewise.
2181 * mt-tdep.c: Likewise.
2182 * nat/linux-btrace.c: Likewise.
2183 * nat/linux-osdata.c: Likewise.
2184 * nat/linux-ptrace.c: Likewise.
2185 * nat/mips-linux-watch.c: Likewise.
2186 * nios2-linux-tdep.c: Likewise.
2187 * nios2-tdep.c: Likewise.
2188 * objc-lang.c: Likewise.
2189 * objfiles.c: Likewise.
2190 * obsd-nat.c: Likewise.
2191 * opencl-lang.c: Likewise.
2192 * osabi.c: Likewise.
2193 * parse.c: Likewise.
2194 * ppc-linux-nat.c: Likewise.
2195 * ppc-sysv-tdep.c: Likewise.
2196 * ppcfbsd-nat.c: Likewise.
2197 * ppcfbsd-tdep.c: Likewise.
2198 * ppcnbsd-nat.c: Likewise.
2199 * ppcnbsd-tdep.c: Likewise.
2200 * ppcobsd-nat.c: Likewise.
2201 * ppcobsd-tdep.c: Likewise.
2202 * printcmd.c: Likewise.
2203 * procfs.c: Likewise.
2204 * prologue-value.c: Likewise.
2205 * psymtab.c: Likewise.
2206 * python/py-lazy-string.c: Likewise.
2207 * python/py-value.c: Likewise.
2208 * regcache.c: Likewise.
2209 * reggroups.c: Likewise.
2210 * registry.c: Likewise.
2211 * remote-sim.c: Likewise.
2212 * remote.c: Likewise.
2213 * rs6000-aix-tdep.c: Likewise.
2214 * rs6000-tdep.c: Likewise.
2215 * s390-linux-tdep.c: Likewise.
2216 * score-tdep.c: Likewise.
2217 * ser-base.c: Likewise.
2218 * ser-mingw.c: Likewise.
2219 * sh-tdep.c: Likewise.
2220 * sh64-tdep.c: Likewise.
2221 * solib-darwin.c: Likewise.
2222 * solib-spu.c: Likewise.
2223 * solib-svr4.c: Likewise.
2224 * source.c: Likewise.
2225 * sparc-nat.c: Likewise.
2226 * sparc-sol2-tdep.c: Likewise.
2227 * sparc-tdep.c: Likewise.
2228 * sparc64-sol2-tdep.c: Likewise.
2229 * sparc64-tdep.c: Likewise.
2230 * sparc64fbsd-tdep.c: Likewise.
2231 * sparc64nbsd-tdep.c: Likewise.
2232 * sparc64obsd-tdep.c: Likewise.
2233 * sparcnbsd-tdep.c: Likewise.
2234 * sparcobsd-tdep.c: Likewise.
2235 * spu-multiarch.c: Likewise.
2236 * spu-tdep.c: Likewise.
2237 * stabsread.c: Likewise.
2238 * stack.c: Likewise.
2239 * symfile.c: Likewise.
2240 * symtab.c: Likewise.
2241 * target-descriptions.c: Likewise.
2242 * target-memory.c: Likewise.
2243 * target.c: Likewise.
2244 * tic6x-linux-tdep.c: Likewise.
2245 * tic6x-tdep.c: Likewise.
2246 * tilegx-linux-nat.c: Likewise.
2247 * tilegx-tdep.c: Likewise.
2248 * top.c: Likewise.
2249 * tramp-frame.c: Likewise.
2250 * tui/tui-out.c: Likewise.
2251 * tui/tui-winsource.c: Likewise.
2252 * ui-out.c: Likewise.
2253 * user-regs.c: Likewise.
2254 * utils.c: Likewise.
2255 * v850-tdep.c: Likewise.
2256 * valops.c: Likewise.
2257 * value.c: Likewise.
2258 * varobj.c: Likewise.
2259 * vax-nat.c: Likewise.
2260 * xml-syscall.c: Likewise.
2261 * xml-tdesc.c: Likewise.
2262 * xstormy16-tdep.c: Likewise.
2263 * xtensa-linux-nat.c: Likewise.
2264 * xtensa-tdep.c: Likewise.
2265
2266 2014-08-07 Gary Benson <gbenson@redhat.com>
2267
2268 * common/common-defs.h: Include common-utils.h.
2269 * defs.h: Do not include common-utils.h.
2270 * common/gdb_assert.h: Likewise.
2271 * darwin-nat.h: Likewise.
2272 * nat/linux-btrace.c: Likewise.
2273 * target/waitstatus.h: Likewise.
2274
2275 2014-08-07 Gary Benson <gbenson@redhat.com>
2276
2277 * common/common-defs.h: Include ptid.h.
2278 * defs.h: Do not include ptid.h.
2279 * inferior.h: Likewise.
2280 * infrun.h: Likewise.
2281 * nat/linux-btrace.h: Likewise.
2282 * nat/linux-osdata.h: Likewise.
2283 * target/waitstatus.h: Likewise.
2284
2285 2014-08-07 Gary Benson <gbenson@redhat.com>
2286
2287 * common/common-defs.h: Include gdb_locale.h.
2288 * defs.h: Do not include gdb_locale.h.
2289
2290 2014-08-07 Gary Benson <gbenson@redhat.com>
2291
2292 * common/common-defs.h: Include gdb/signals.h.
2293 * defs.h: Do not include gdb/signals.h.
2294
2295 2014-08-07 Gary Benson <gbenson@redhat.com>
2296
2297 * common/common-defs.h: Include pathmax.h.
2298 * defs.h: Do not include pathmax.h.
2299
2300 2014-08-07 Gary Benson <gbenson@redhat.com>
2301
2302 * common/common-defs.h: Include libiberty.h.
2303 * defs.h: Do not include libiberty.h.
2304 * common/queue.h: Likewise.
2305 * cp-name-parser.y: Likewise.
2306 * mi/mi-cmd-catch.c: Likewise.
2307 * python/python.c: Likewise.
2308
2309 2014-08-07 Gary Benson <gbenson@redhat.com>
2310
2311 * common/common-defs.h: Include ansidecl.h.
2312 * defs.h: Do not include ansidecl.h.
2313 * common/buffer.h: Likewise.
2314 * common/common-utils.h: Likewise.
2315
2316 2014-08-07 Gary Benson <gbenson@redhat.com>
2317
2318 * common/common-defs.h: Include stddef.h.
2319 * defs.h: Do not include stddef.h.
2320 * common/common-utils.h: Likewise.
2321 * amd64fbsd-nat.c: Likewise.
2322 * bcache.c: Likewise.
2323 * charset.c: Likewise.
2324 * common/buffer.h: Likewise.
2325 * common/vec.h: Likewise.
2326 * i386bsd-nat.c: Likewise.
2327 * nat/linux-btrace.h: Likewise.
2328 * ppcfbsd-nat.c: Likewise.
2329 * ppcnbsd-tdep.h: Likewise.
2330 * ppcobsd-nat.c: Likewise.
2331 * ppcobsd-tdep.h: Likewise.
2332 * python/py-gdb-readline.c: Likewise.
2333
2334 2014-08-07 Gary Benson <gbenson@redhat.com>
2335
2336 * common/common-defs.h: Include stdarg.h.
2337 * defs.h: Do not include stdarg.h.
2338 * ada-lang.c: Likewise.
2339 * common/common-utils.h: Likewise.
2340 * guile/scm-string.c: Likewise.
2341 * guile/scm-utils.c: Likewise.
2342 * m32c-tdep.c: Likewise.
2343
2344 2014-08-07 Gary Benson <gbenson@redhat.com>
2345
2346 * common/common-defs.h: Include stdlib.h.
2347 * defs.h: Do not include stdlib.h.
2348 * addrmap.c: Likewise.
2349 * bcache.c: Likewise.
2350 * common/buffer.c: Likewise.
2351 * common/common-utils.c: Likewise.
2352 * cp-name-parser.y: Likewise.
2353 * go32-nat.c: Likewise.
2354 * mn10300-linux-tdep.c: Likewise.
2355 * nat/linux-osdata.c: Likewise.
2356 * tui/tui.c: Likewise.
2357 * windows-nat.c: Likewise.
2358
2359 2014-08-07 Gary Benson <gbenson@redhat.com>
2360
2361 * common/common-defs.h: Include stdio.h.
2362 * defs.h: Do not include stdio.h.
2363 * ada-lang.c: Likewise.
2364 * common/buffer.c: Likewise.
2365 * common/common-utils.c: Likewise.
2366 * cp-name-parser.y: Likewise.
2367 * gnu-nat.c: Likewise.
2368 * go32-nat.c: Likewise.
2369 * i386gnu-nat.c: Likewise.
2370 * proc-api.c: Likewise.
2371 * proc-events.c: Likewise.
2372 * proc-flags.c: Likewise.
2373 * proc-why.c: Likewise.
2374 * python/python-internal.h: Likewise.
2375 * target-memory.c: Likewise.
2376 * tui/tui-io.c: Likewise.
2377 * tui/tui.c: Likewise.
2378
2379 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2380
2381 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2382 (scan_dyntag_auxv): Same.
2383
2384 2014-08-06 Yao Qi <yao@codesourcery.com>
2385
2386 * amd64-linux-nat.c: Remove duplicated include
2387 "x86-linux-nat.h".
2388 * i386-linux-nat.c: Likewise.
2389
2390 2014-08-06 Yao Qi <yao@codesourcery.com>
2391
2392 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2393 operand" with "Special opcode" in comments.
2394
2395 2014-08-05 Gary Benson <gbenson@redhat.com>
2396
2397 * interps.c (initialize_interps): Remove prototype.
2398 (interpreter_initialized): Remove static global.
2399 (interp_add): Do not call initialize_interps.
2400 (initialize_interps): Remove function.
2401
2402 2014-08-05 Gary Benson <gbenson@redhat.com>
2403
2404 * utils.c (vwarning): Remove spurious va_end.
2405
2406 2014-08-05 Alan Modra <amodra@gmail.com>
2407
2408 * charset.c (convert_between_encodings): Cast result of obstack_base.
2409 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2410 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2411 (read_unwind_info): Use size_t for some locals.
2412 * jit.c (finalize_symtab): Likewise.
2413 * utils.c (hashtab_obstack_allocate): Likewise.
2414 * symmisc.c (print_objfile_statistics): Update format strings.
2415
2416 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2417
2418 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2419 (Changes in GDB 7.8): ... here.
2420
2421 2014-08-04 Tom Tromey <tromey@redhat.com>
2422
2423 * target.c (set_targetdebug): New function.
2424 (initialize_targets): Pass set_targetdebug when creating "set
2425 debug target".
2426
2427 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2428
2429 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2430 if detecting a variable-sized field that is not the last field.
2431 Fix struct type length computation.
2432
2433 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2434
2435 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2436 Add debug trace.
2437
2438 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2439
2440 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2441 Remove "+ 8" offset in computation of CHAIN_VMA.
2442
2443 2014-07-31 Doug Evans <dje@google.com>
2444
2445 * inflow.c (child_terminal_inferior): Add comment.
2446 (child_terminal_ours_for_output): Add comment.
2447 (child_terminal_ours): Add comment.
2448 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2449 (linux_nat_terminal_ours): Add comment.
2450
2451 2014-07-31 Gary Benson <gbenson@redhat.com>
2452
2453 * common/btrace-common.h: Do not include defs.h or server.h.
2454 * nat/mips-linux-watch.h: Likewise.
2455 * gdb-dlfcn.h: Do not include defs.h.
2456 * tracefile.h: Likewise.
2457
2458 2014-07-30 Roland McGrath <mcgrathr@google.com>
2459
2460 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2461
2462 2014-07-30 Tom Tromey <tromey@redhat.com>
2463
2464 * bsd-kvm.c (bsd_kvm_open): Constify.
2465 * corelow.c (core_open): Constify.
2466 * ctf.c (ctf_open): Constify.
2467 * dbug-rom.c (dbug_open): Constify.
2468 * exec.c (exec_open): Constify.
2469 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2470 * microblaze-rom.c (picobug_open): Constify.
2471 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2472 Constify.
2473 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2474 * record-btrace.c (record_btrace_open): Constify.
2475 * record-full.c (record_full_core_open_1, record_full_open_1)
2476 (record_full_open): Constify.
2477 * remote-m32r-sdi.c (m32r_open): Constify.
2478 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2479 (rockhopper_open, lsi_open): Constify.
2480 * remote-sim.c (gdbsim_open): Constify.
2481 * remote.c (remote_open, extended_remote_open, remote_open_1):
2482 Constify.
2483 * target.h (struct target_ops) <to_open>: Make "arg" const.
2484 * tracefile-tfile.c (tfile_open): Constify.
2485
2486 2014-07-30 Tom Tromey <tromey@redhat.com>
2487
2488 * breakpoint.c (map_breakpoint_numbers): Update.
2489 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2490 (get_number_const): New function.
2491 (get_number): Rewrite using get_number_const.
2492 (init_number_or_range): Make "string" const.
2493 (number_is_in_list): Make "list" const.
2494 * cli/cli-utils.h (get_number_const): Declare.
2495 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2496 (init_number_or_range, number_is_in_list): Update.
2497 * printcmd.c (map_display_numbers): Update.
2498 * value.c (value_from_history_ref): Constify.
2499 * value.h (value_from_history_ref): Update.
2500
2501 2014-07-30 Tom Tromey <tromey@redhat.com>
2502
2503 * corefile.c (hook_type, call_extra_exec_file_hooks)
2504 (specify_exec_file_hook): Constify.
2505 * exec.c (exec_file_attach): Make "filename" const.
2506 * gdbcore.h (deprecated_exec_file_display_hook)
2507 (specify_exec_file_hook, exec_file_attach): Constify.
2508 * main.c (captured_main): Use catch_command_errors_const.
2509
2510 2014-07-30 Tom Tromey <tromey@redhat.com>
2511
2512 * target.c (open_target): New function.
2513 (add_target_with_completer, add_deprecated_target_alias): Use
2514 set_cmd_sfunc, set_cmd_context.
2515 (debug_to_open): Remove.
2516 (setup_target_debug): Update.
2517
2518 2014-07-30 Yao Qi <yao@codesourcery.com>
2519
2520 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2521 comments.
2522 * parse.c (exp_iterate): Update comments.
2523
2524 2014-07-30 Gary Benson <gbenson@redhat.com>
2525
2526 * common/common-defs.h: New file.
2527 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2528 * defs.h: Include common-defs.h.
2529 Do not include config.h or build-gnulib/config.h.
2530
2531 2014-07-30 Gary Benson <gbenson@redhat.com>
2532
2533 * common/common-utils.h: Do not include config.h.
2534 * nat/linux-btrace.h: Likewise.
2535
2536 2014-07-30 Gary Benson <gbenson@redhat.com>
2537
2538 * btrace.c: Include defs.h.
2539 * common/ptid.c: Include defs.h or server.h as appropriate.
2540 * nat/mips-linux-watch.c: Likewise.
2541
2542 2014-07-29 Tom Tromey <tromey@redhat.com>
2543
2544 * target.c (target_is_pushed): Simplify.
2545
2546 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2547
2548 GDB 7.8 released.
2549
2550 2014-07-29 Yao Qi <yao@codesourcery.com>
2551
2552 PR gdb/17206
2553 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2554
2555 2014-07-28 Doug Evans <xdje42@gmail.com>
2556
2557 PR guile/17203
2558 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2559 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2560 parameters.
2561
2562 2014-07-28 Will Newton <will.newton@linaro.org>
2563
2564 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2565 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2566 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2567 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2568 (THUMB2_EABI_SYSCALL): Likewise.
2569 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2570 struct tramp_frame.
2571 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2572 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2573
2574 2014-07-27 Doug Evans <xdje42@gmail.com>
2575
2576 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2577
2578 2014-07-27 Doug Evans <xdje42@gmail.com>
2579
2580 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2581
2582 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2583 Doug Evans <xdje42@gmail.com>
2584
2585 PR guile/17146
2586 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2587 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2588 * configure.ac: Try to use guild to compile an scm file, if it fails
2589 then disable guile support.
2590 * configure: Regenerate.
2591 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2592 GUILE_FILE_LIST.
2593 (GUILE_COMPILED_FILES): New variable.
2594 (GUILE_FILES) Update.
2595 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2596 (stamp-guile): Compile scm files.
2597 * guile/guile.c (boot_guile_support): New function.
2598 (standard_throw_args_p): New function.
2599 (print_standard_throw_error, print_throw_error): New functions.
2600 (handle_boot_error): New function.
2601 (initialize_scheme_side): Rewrite to call boot_guile_support.
2602 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2603 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2604
2605 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2606 Doug Evans <xdje42@gmail.com>
2607
2608 PR guile/17146
2609 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2610 * guile/lib/gdb/support.scm: New file.
2611 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2612 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2613 All uses updated.
2614 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2615 All uses updated.
2616 (%assert-type): Ditto, and renamed to assert-type.
2617 (%exception-print-style): Delete.
2618
2619 2014-07-26 Doug Evans <xdje42@gmail.com>
2620
2621 PR build/17105
2622 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2623 * configure: Regenerate.
2624 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2625 PYTHON_FILES.
2626 (PYTHON_FILES): New variable.
2627 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2628 (GUILE_FILES): New variable.
2629 (stamp-python, install-python, uninstall-python): Handle empty
2630 file list.
2631 (stamp-guile, install-guile, uninstall-guile): Ditto.
2632
2633 2014-07-26 Doug Evans <xdje42@gmail.com>
2634
2635 PR guile/17177
2636 * guile/lib/gdb.scm (pretty-printers): Export.
2637 (set-pretty-printers!): Export.
2638 * guile/lib/gdb/printing.scm (gdb module): Update.
2639 (prepend-pretty-printer!, append-pretty-printer!): Update.
2640 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2641 (pretty_printer_list_var): Delete.
2642 (pretty_printer_list): New static global.
2643 (gdbscm_pretty_printers): New function.
2644 (gdbscm_set_pretty_printers_x): New function.
2645 (ppscm_find_pretty_printer_from_gdb): Update.
2646 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2647 (gdbscm_initialize_pretty_printers): Update.
2648
2649 2014-07-26 Doug Evans <xdje42@gmail.com>
2650
2651 PR 17185
2652 * configure.ac: Add check for header gc/gc.h.
2653 Add check for function setenv.
2654 * configure: Regenerate.
2655 * config.in: Regenerate.
2656 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2657
2658 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2659
2660 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2661 variation in gdbarch matching.
2662
2663 2014-07-25 Tom Tromey <tromey@redhat.com>
2664
2665 * exec.c (using_exec_ops): Remove.
2666 (exec_close_1): Update. Remove extraneous block, reindent.
2667 (add_target_sections): Use target_is_pushed.
2668
2669 2014-07-25 Pedro Alves <palves@redhat.com>
2670
2671 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2672 * monitor.c (monitor_create_inferior): Likewise.
2673 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2674 * remote-sim.c (gdbsim_create_inferior): Likewise.
2675 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2676 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2677 * windows-nat.c (do_initial_windows_stuff): Likewise.
2678
2679 2014-07-25 Pedro Alves <palves@redhat.com>
2680
2681 * NEWS: Mention signal passing and "signal" command changes.
2682 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2683 comment.
2684 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2685 call.
2686 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2687 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2688 (jump_command): Adjust clear_proceed_status call.
2689 (signal_command): Warn if other thread that are resumed have
2690 signals that will be delivered. Adjust clear_proceed_status call.
2691 (until_next_command, finish_command)
2692 (proceed_after_attach_callback, attach_command_post_wait)
2693 (attach_command): Adjust clear_proceed_status call.
2694 * infrun.c (proceed_after_vfork_done): Likewise.
2695 (proceed_after_attach_callback): Adjust comment.
2696 (clear_proceed_status_thread): Clear stop_signal if not in pass
2697 state.
2698 (clear_proceed_status_callback): Delete.
2699 (clear_proceed_status): New 'step' parameter. Only clear the
2700 proceed status of threads the command being prepared is about to
2701 resume.
2702 (proceed): If passed in an explicit signal, override stop_signal
2703 with it. Don't pass the last stop signal to the thread we're
2704 resuming.
2705 (init_wait_for_inferior): Adjust clear_proceed_status call.
2706 (switch_back_to_stepped_thread): Clear the signal if it should not
2707 be passed.
2708 * infrun.h (clear_proceed_status): New 'step' parameter.
2709 (user_visible_resume_ptid): Add comment.
2710 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2711 signal is in pass state.
2712 * remote.c (append_pending_thread_resumptions): Likewise.
2713 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2714
2715 2014-07-25 Tom Tromey <tromey@redhat.com>
2716
2717 * target.h (target_stopped_data_address)
2718 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2719 parentheses.
2720
2721 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2722
2723 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2724 comments.
2725 (avr_pointer_to_address): Likewise.
2726
2727 2014-07-24 Tom Tromey <tromey@redhat.com>
2728
2729 * monitor.c (compile_pattern): Update.
2730 * target.h (struct target_ops) <to_shortname, to_longname,
2731 to_doc>: Now const.
2732
2733 2014-07-24 Tom Tromey <tromey@redhat.com>
2734
2735 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2736 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2737 (add_info_alias, add_com): Make "doc" const.
2738 (print_doc_line): Make "str" const.
2739 (delete_cmd): Update.
2740 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2741 (print_doc_line): Update.
2742 * cli/cli-script.c (document_command): Update.
2743 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2744 (add_com, add_info, add_info_alias): Update.
2745 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2746 * python/py-cmd.c (cmdpy_destroyer): Update.
2747
2748 2014-07-24 Tom Tromey <tromey@redhat.com>
2749
2750 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2751 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2752 (help_cmd_list): Constify.
2753 (lookup_cmd): Update.
2754 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2755 const.
2756 (help_cmd_list, apropos_cmd): Update.
2757 * cli/cli-script.c (show_user): Update.
2758 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2759 * cli/cli-setshow.h (cmd_show_list): Update.
2760 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2761 (cmd_show_list): Update.
2762 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2763 * python/py-cmd.c (cmdpy_destroyer): Update.
2764
2765 2014-07-24 Tom Tromey <tromey@redhat.com>
2766
2767 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2768 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2769 const.
2770 * command.h (deprecate_cmd): Update.
2771 * maint.c (maintenance_do_deprecate): Add casts.
2772
2773 2014-07-24 Tom Tromey <tromey@redhat.com>
2774
2775 * cli/cli-decode.c (help_cmd): Make parameter "const".
2776 * cli/cli-decode.h (help_cmd): Update.
2777
2778 2014-07-24 Tom Tromey <tromey@redhat.com>
2779
2780 * stack.c (up_silently_base, down_silently_base): Make argument
2781 const.
2782
2783 2014-07-24 Tom Tromey <tromey@redhat.com>
2784
2785 * solib.c (solib_add): Make "pattern" const.
2786 * solib.h (solib_add): Update.
2787
2788 2014-07-24 Tom Tromey <tromey@redhat.com>
2789
2790 * remote.c (remote_serial_open, print_packet, putpkt)
2791 (putpkt_binary): Constify.
2792 * remote.h (putpkt): Update.
2793
2794 2014-07-24 Tom Tromey <tromey@redhat.com>
2795
2796 * monitor.c (monitor_open): Make "args" const.
2797 * monitor.h (monitor_open): Update.
2798
2799 2014-07-24 Tom Tromey <tromey@redhat.com>
2800
2801 * maint.c (match_bfd_flags): Make "string" const.
2802 (print_bfd_section_info): Remove casts.
2803 (print_objfile_section_info): Make "string" const.
2804
2805 2014-07-24 Tom Tromey <tromey@redhat.com>
2806
2807 * inf-child.c (inf_child_open_target): Make "arg" const.
2808 * inf-child.h (inf_child_open_target): Update.
2809
2810 2014-07-24 Tom Tromey <tromey@redhat.com>
2811
2812 * environ.c (unset_in_environ): Make "var" const.
2813 * environ.h (unset_in_environ): Update.
2814
2815 2014-07-24 Tom Tromey <tromey@redhat.com>
2816
2817 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2818 Make "cmd" const.
2819 (scan_filename_with_cleanup): Likewise.
2820 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2821 Make arguments const.
2822 (restore_command): Update.
2823
2824 2014-07-24 Pedro Alves <palves@redhat.com>
2825
2826 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2827
2828 2014-07-24 Tom Tromey <tromey@redhat.com>
2829 Gary Benson <gbenson@redhat.com>
2830
2831 * nat/linux-ptrace.c (additional_flags): New global.
2832 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2833 additional_flags; don't check GDBSERVER.
2834 (linux_ptrace_set_additional_flags): New function.
2835 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2836 Declare.
2837 * linux-nat.c (_initialize_linux_nat): Call
2838 linux_ptrace_set_additional_flags.
2839
2840 2014-07-24 Tom Tromey <tromey@redhat.com>
2841
2842 * make-target-delegates (munge_type, write_debugmethod): New
2843 functions.
2844 (debug_names): New global.
2845 ($TARGET_DEBUG_PRINTER): New global.
2846 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2847 name.
2848 Write debug methods. Generate init_debug_target.
2849 * target-debug.h: New file.
2850 * target-delegates.c: Rebuild.
2851 * target.c: Include target-debug.h.
2852 (debug_target): Hoist definition.
2853 (target_kill, target_get_section_table, target_memory_map)
2854 (target_flash_erase, target_flash_done, target_detach)
2855 (target_disconnect, target_wait, target_resume)
2856 (target_pass_signals, target_program_signals, target_follow_fork)
2857 (target_mourn_inferior, target_search_memory)
2858 (target_thread_address_space, target_close)
2859 (target_find_new_threads, target_core_of_thread)
2860 (target_verify_memory, target_insert_mask_watchpoint)
2861 (target_remove_mask_watchpoint): Remove targetdebug code.
2862 (debug_to_post_attach, debug_to_prepare_to_store)
2863 (debug_to_files_info, debug_to_insert_breakpoint)
2864 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2865 (debug_to_region_ok_for_hw_watchpoint)
2866 (debug_to_can_accel_watchpoint_condition)
2867 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2868 (debug_to_watchpoint_addr_within_range)
2869 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2870 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2871 (debug_to_terminal_init, debug_to_terminal_inferior)
2872 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2873 (debug_to_terminal_save_ours, debug_to_terminal_info)
2874 (debug_to_load, debug_to_post_startup_inferior)
2875 (debug_to_insert_fork_catchpoint)
2876 (debug_to_remove_fork_catchpoint)
2877 (debug_to_insert_vfork_catchpoint)
2878 (debug_to_remove_vfork_catchpoint)
2879 (debug_to_insert_exec_catchpoint)
2880 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2881 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2882 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2883 (setup_target_debug): Call init_debug_target.
2884 * target.h (TARGET_DEBUG_PRINTER): New macro.
2885 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2886 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2887
2888 2014-07-24 Gary Benson <gbenson@redhat.com>
2889
2890 * exceptions.h (throw_vfatal): Renamed to...
2891 (throw_vquit): New declaration.
2892 (throw_quit): Likewise.
2893 * exceptions.c (throw_vfatal): Renamed to...
2894 (throw_vquit): New function.
2895 (throw_quit): Likewise.
2896 (throw_error): Call throw_verror rather than throw_it.
2897 * utils.h (vfatal): Removed.
2898 (fatal): Likewise.
2899 * utils.c (vfatal): Removed.
2900 (fatal): Likewise.
2901 (internal_verror): Replaced call to fatal with call to throw_quit.
2902 (quit): Replaced calls to fatal with calls to throw_quit.
2903
2904 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2905
2906 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2907 target_read_code.
2908
2909 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2910
2911 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2912 less than zero in conditional expression.
2913
2914 2014-07-23 Tom Tromey <tromey@redhat.com>
2915
2916 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2917 ($INTRO_PART): Don't match whitespace.
2918 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2919 argument matching.
2920 ($METHOD): Add $METHOD_TRAILER.
2921 (trim): Rewrite.
2922 (scan_target_h): New sub.
2923 Change main loop not to collect state.
2924 * target-delegates.c: Rebuild.
2925
2926 2014-07-23 Gary Benson <gbenson@redhat.com>
2927
2928 * cp-support.c (gdb_demangle): Fix build on systems without
2929 sigaltstack.
2930
2931 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2932
2933 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2934 for reference entry value target data value.
2935
2936 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2937
2938 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2939 value_available_contents_eq.
2940
2941 2014-07-22 Pedro Alves <palves@redhat.com>
2942
2943 * value.c (allocate_optimized_out_value): Don't mark value as
2944 non-lazy.
2945
2946 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2947
2948 * MAINTAINERS (Write After Approval): Update my email address.
2949
2950 2014-07-20 Doug Evans <dje@google.com>
2951
2952 PR server/17147
2953 * remote.c (putpkt_binary): Add text to error message.
2954
2955 2014-07-20 Yao Qi <yao@codesourcery.com>
2956
2957 * eval.c: Remove "Chill" from comments.
2958 * gdbtypes.h: Likewise.
2959 * symtab.h: Likewise.
2960
2961 2014-07-20 Yao Qi <yao@codesourcery.com>
2962
2963 * std-operator.def: Update comments to TERNOP_SLICE.
2964
2965 2014-07-20 Yao Qi <yao@codesourcery.com>
2966
2967 * std-operator.def: Remove BINOP_RANGE.
2968 * breakpoint.c (watchpoint_exp_is_const): Update.
2969 * expprint.c (dump_subexp_body_standard): Likewise.
2970 * eval.c (init_array_element): Remove dead code.
2971 (evaluate_subexp_standard): Likewise.
2972
2973 2014-07-20 Yao Qi <yao@codesourcery.com>
2974
2975 * std-operator.def: Remove BINOP_IN.
2976 * breakpoint.c (watchpoint_exp_is_const): Update.
2977 * eval.c (evaluate_subexp_standard): Likewise.
2978 * expprint.c (dump_subexp_body_standard): Likewise.
2979
2980 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2981
2982 * microblaze-tdep.c (microblaze_register_names): Add
2983 the rshr and rslr register names.
2984 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2985 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2986 Use of tdesc_numbered_register. Use of
2987 microblaze_register_g_packet_guesses. Use of
2988 tdesc_use_registers. Use of set_gdbarch_register_type.
2989 (microblaze_register_g_packet_guesses): New.
2990 * microblaze-tdep.h (microblaze_reg_num): Add
2991 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2992 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2993 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2994 * features/microblaze-core.xml: New file.
2995 * features/microblaze-stack-protect.xml: New file.
2996 * features/microblaze-with-stack-protect.c: New file.
2997 * features/microblaze-with-stack-protect.xml: New file.
2998 * features/microblaze.xml: New file.
2999 * features/microblaze.c: New file.
3000 * features/Makefile (microblaze-with-stack-protect): Add
3001 microblaze-with-stack-protect microblaze and microblaze-expedite.
3002 * regformats/microblaze-with-stack-protect.dat: New file.
3003 * regformats/microblaze.dat: New file.
3004 * doc/gdb.texinfo (MicroBlaze Features): Added.
3005
3006 2014-07-18 Tom Tromey <tromey@redhat.com>
3007
3008 * exec.c (exec_ops): Now static.
3009 * exec.h (exec_ops): Don't declare.
3010
3011 2014-07-18 Tom Tromey <tromey@redhat.com>
3012
3013 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3014 to find_target_beneath.
3015 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3016 find_target_beneath.
3017 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3018
3019 2014-07-18 Tom Tromey <tromey@redhat.com>
3020
3021 PR gdb/17130:
3022 * utils.c (quit): Use target_supports_terminal_ours.
3023 * target.h (target_supports_terminal_ours): Declare.
3024 * target.c (target_supports_delete_record): Don't check
3025 to_delete_record against NULL.
3026 (target_supports_terminal_ours): New function.
3027
3028 2014-07-18 Tom Tromey <tromey@redhat.com>
3029
3030 PR gdb/17130:
3031 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3032 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3033 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3034 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3035 * windows-nat.c (windows_xfer_partial): Always delegate.
3036 * record-btrace.c (record_btrace_xfer_partial): Simplify
3037 delegation.
3038 (record_btrace_fetch_registers, record_btrace_store_registers)
3039 (record_btrace_prepare_to_store, record_btrace_resume)
3040 (record_btrace_wait, record_btrace_find_new_threads)
3041 (record_btrace_thread_alive): Likewise.
3042 * procfs.c (procfs_xfer_partial): Always delegate.
3043 * corelow.c (core_xfer_partial): Always delegate.
3044 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3045
3046 2014-07-18 Tom Tromey <tromey@redhat.com>
3047
3048 * exec.c (exec_make_note_section): Move earlier.
3049
3050 2014-07-17 Doug Evans <dje@google.com>
3051
3052 PR gdb/17170
3053 * maint.c (count_symtabs_and_blocks): Handle NULL
3054 current_program_space.
3055 (report_command_stats): Check global enabled flag in addition to
3056 recorded enabled flag.
3057 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3058
3059 2014-07-16 Pedro Alves <palves@redhat.com>
3060
3061 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3062
3063 2014-07-16 Tom Tromey <tromey@redhat.com>
3064
3065 * target.h (struct target_ops) <to_delete_record>: Reformat
3066 comment.
3067
3068 2014-07-16 Tom Tromey <tromey@redhat.com>
3069
3070 * target-delegates.c: Rebuild.
3071
3072 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3073
3074 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3075 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3076 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3077 (avr_pointer_to_address): Likewise.
3078 (avr_address_class_type_flags): New function.
3079 (avr_address_class_type_flags_to_name): Likewise.
3080 (avr_address_class_name_to_type_flags): Likewise.
3081 (avr_gdbarch_init): Set address_class_type_flags,
3082 address_class_type_flags_to_name and
3083 address_class_name_to_type_flags.
3084
3085 2014-07-15 Pedro Alves <palves@redhat.com>
3086
3087 * linux-nat.c (kill_callback): Save errno and work with saved
3088 copy.
3089
3090 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3091
3092 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3093
3094 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3095
3096 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3097 breakpoint support correctly.
3098
3099 2014-07-14 Pedro Alves <palves@redhat.com>
3100
3101 * utils.c (prompt_for_continue): Call target_terminal_ours.
3102
3103 2014-07-14 Pedro Alves <palves@redhat.com>
3104
3105 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3106 catch_errors. Don't re-enable stdin or notify observers where,
3107 and rethrow error.
3108 (fetch_inferior_event_wrapper): Delete.
3109
3110 2014-07-14 Pedro Alves <palves@redhat.com>
3111
3112 PR gdb/17072
3113 * top.c: Include "inf-loop.h".
3114 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3115 field.
3116 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3117 was async before.
3118 (gdb_readline_wrapper): Store whether the target is async, and
3119 make it sync.
3120
3121 2014-07-14 Pedro Alves <palves@redhat.com>
3122
3123 PR gdb/17072
3124 * top.c (gdb_readline_wrapper_line): Tweak comment.
3125 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3126 the input handler callback.
3127
3128 2014-07-14 Pedro Alves <palves@redhat.com>
3129
3130 PR gdb/17072
3131 * main.c: Include event-top.h.
3132 (handle_command_errors): New function.
3133 (catch_command_errors, catch_command_errors_const): Use it.
3134
3135 2014-07-14 Pedro Alves <palves@redhat.com>
3136
3137 * exceptions.c (catch_command_errors, catch_command_errors_const):
3138 Moved to main.c.
3139 * exceptions.h (catch_command_errors_ftype)
3140 (catch_command_errors_const_ftype): Moved to main.c.
3141 (catch_command_errors, catch_command_errors_const): Delete
3142 declarations.
3143 * main.c (catch_command_errors_ftype)
3144 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3145 (catch_command_errors, catch_command_errors_const)): Moved here
3146 from exceptions.c and make static.
3147
3148 2014-07-14 Pedro Alves <palves@redhat.com>
3149
3150 * exceptions.c (print_any_exception): Delete.
3151 (catch_exceptions_with_msg): Use exception_print instead of
3152 print_any_exception.
3153 (catch_errors): Use exception_fprintf instead of
3154 print_any_exception.
3155 (catch_command_errors, catch_command_errors_const): Use
3156 exception_print instead of print_any_exception.
3157
3158 2014-07-14 Pedro Alves <palves@redhat.com>
3159
3160 * infcall.c (run_inferior_call): Set 'sync_execution' while
3161 running the inferior call.
3162
3163 2014-07-14 Pedro Alves <palves@redhat.com>
3164
3165 * value.c (value_contents_equal): Delete function.
3166 * value.h (value_contents_equal): Delete declaration.
3167
3168 2014-07-14 Tom Tromey <tromey@redhat.com>
3169
3170 PR exp/17106:
3171 * gdbtypes.c (is_dynamic_type_internal): New function, from
3172 is_dynamic_type.
3173 (is_dynamic_type): Rewrite.
3174 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3175 (resolve_dynamic_struct): Likewise.
3176 (resolve_dynamic_type_internal): New function, from
3177 resolve_dynamic_type.
3178 (resolve_dynamic_type): Rewrite.
3179
3180 2014-07-14 Tom Tromey <tromey@redhat.com>
3181
3182 * target.c (target_require_runnable): Also check record_stratum.
3183 Update comment.
3184
3185 2014-07-11 Yao Qi <yao@codesourcery.com>
3186
3187 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3188 thumb_instruction_restores_sp return true.
3189
3190 2014-07-11 Yao Qi <yao@codesourcery.com>
3191
3192 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3193 (thumb_in_function_epilogue_p): Call
3194 thumb_instruction_restores_sp.
3195
3196 2014-07-11 Yao Qi <yao@codesourcery.com>
3197
3198 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3199 'add sp, #imm'.
3200 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3201
3202 2014-07-11 Gary Benson <gbenson@redhat.com>
3203
3204 * amd64-linux-nat.c (gdbcore.h): Remove include.
3205 (regset.h): Likewise.
3206 (nat/linux-btrace.h): Likewise.
3207 (btrace.h): Likewise.
3208 (gdb_assert.h): Likewise.
3209 (string.h): Likewise.
3210 (sys/uio.h): Likewise.
3211 (sys/debugreg.h): Likewise.
3212 (sys/syscall.h): Likewise.
3213 (sys/procfs.h): Likewise.
3214 (sys/user.h): Likewise.
3215 (asm/ptrace.h): Likewise.
3216 (i386-nat.h): Likewise.
3217 * i386-linux-nat.c (i386-nat.h): Likewise.
3218 (regset.h): Likewise.
3219 (target.h): Likewise.
3220 (linux-nat.h): Likewise.
3221 (nat/linux-btrace.h): Likewise.
3222 (btrace.h): Likewise.
3223 (gdb_assert.h): Likewise.
3224 (string.h): Likewise.
3225 (sys/uio.h): Likewise.
3226 (sys/user.h): Likewise.
3227 (sys/procfs.h): Likewise.
3228 (sys/reg.h): Likewise.
3229 (sys/debugreg.h): Likewise.
3230 (ORIG_EAX): Remove definition.
3231
3232 2014-07-11 Gary Benson <gbenson@redhat.com>
3233
3234 * i386-linux-nat.h: New file.
3235 * x86-linux-nat.h: Likewise.
3236 * x86-linux-nat.c: Likewise.
3237 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3238 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3239 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3240 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3241 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3242 (PTRACE_SETREGSET): Likewise.
3243 (arch_lwp_info): Now in x86-linux-nat.c.
3244 (have_ptrace_getregset): Now in x86-linux-nat.h.
3245 (x86_linux_dr_get): Now in x86-linux-nat.c.
3246 (x86_linux_dr_set): Likewise.
3247 (x86_linux_dr_get_addr): Likewise.
3248 (x86_linux_dr_get_control): Likewise.
3249 (x86_linux_dr_get_status): Likewise.
3250 (update_debug_registers_callback): Likewise.
3251 (x86_linux_dr_set_control): Likewise.
3252 (x86_linux_dr_set_addr): Likewise.
3253 (x86_linux_prepare_to_resume): Likewise.
3254 (x86_linux_new_thread): Likewise.
3255 (x86_linux_new_fork): Likewise.
3256 (x86_linux_get_thread_area): Likewise.
3257 (super_post_startup_inferior): Likewise.
3258 (x86_linux_child_post_startup_inferior): Likewise.
3259 (AMD64_LINUX_USER64_CS): Likewise.
3260 (AMD64_LINUX_X32_DS): Likewise.
3261 (x86_linux_read_description): Likewise.
3262 (x86_linux_enable_btrace): Likewise.
3263 (x86_linux_disable_btrace): Likewise.
3264 (x86_linux_teardown_btrace): Likewise.
3265 (x86_linux_read_btrace): Likewise.
3266 (x86_linux_create_target): Likewise.
3267 (x86_linux_add_target): Likewise.
3268 * i386-linux-nat.c (x86-linux-nat.h): New include.
3269 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3270 (PTRACE_SETREGSET): Likewise.
3271 (arch_lwp_info): Now in x86-linux-nat.c.
3272 (have_ptrace_getregset): Now in x86-linux-nat.h.
3273 (x86_linux_dr_get): Now in x86-linux-nat.c.
3274 (x86_linux_dr_set): Likewise.
3275 (x86_linux_dr_get_addr): Likewise.
3276 (x86_linux_dr_get_control): Likewise.
3277 (x86_linux_dr_get_status): Likewise.
3278 (update_debug_registers_callback): Likewise.
3279 (x86_linux_dr_set_control): Likewise.
3280 (x86_linux_dr_set_addr): Likewise.
3281 (x86_linux_prepare_to_resume): Likewise.
3282 (x86_linux_new_thread): Likewise.
3283 (x86_linux_new_fork): Likewise.
3284 (x86_linux_get_thread_area): Likewise.
3285 (super_post_startup_inferior): Likewise.
3286 (x86_linux_child_post_startup_inferior): Likewise.
3287 (AMD64_LINUX_USER64_CS): Likewise.
3288 (AMD64_LINUX_X32_DS): Likewise.
3289 (x86_linux_read_description): Likewise.
3290 (x86_linux_enable_btrace): Likewise.
3291 (x86_linux_disable_btrace): Likewise.
3292 (x86_linux_teardown_btrace): Likewise.
3293 (x86_linux_read_btrace): Likewise.
3294 (x86_linux_create_target): Likewise.
3295 (x86_linux_add_target): Likewise.
3296
3297 2014-07-11 Gary Benson <gbenson@redhat.com>
3298
3299 * amd64-linux-nat.c: Comment and whitespace changes.
3300 * i386-linux-nat.c: Comment and whitespace changes.
3301
3302 2014-07-11 Gary Benson <gbenson@redhat.com>
3303
3304 * amd64-linux-nat.c (x86_linux_create_target): New function.
3305 (x86_linux_add_target): Likewise.
3306 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3307 * i386-linux-nat.c (x86_linux_create_target): New function.
3308 (x86_linux_add_target): Likewise.
3309 (_initialize_i386_linux_nat): Delegate to the above new functions.
3310
3311 2014-07-11 Gary Benson <gbenson@redhat.com>
3312
3313 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3314 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3315 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3316 (ps_get_thread_area): Delegate to the above.
3317
3318 2014-07-11 Gary Benson <gbenson@redhat.com>
3319
3320 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3321 x86_linux_read_description. All uses updated. amd64-specific
3322 code conditionalized. Conditionalized i386-specific code added.
3323 Redundant cast removed.
3324 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3325 x86_linux_read_description. All uses updated. i386-specific
3326 code conditionalized. Conditionalized amd64-specific code added.
3327 One sizeof replaced with the actual type it is describing.
3328
3329 2014-07-11 Gary Benson <gbenson@redhat.com>
3330
3331 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3332 x86_linux_dr_get. All uses updated.
3333 (amd64_linux_dr_set): Renamed to
3334 x86_linux_dr_set. All uses updated.
3335 (amd64_linux_dr_get_addr): Renamed to
3336 x86_linux_dr_get_addr. All uses updated.
3337 (amd64_linux_dr_get_control): Renamed to
3338 x86_linux_dr_get_control. All uses updated.
3339 (amd64_linux_dr_get_status): Renamed to
3340 x86_linux_dr_get_status. All uses updated.
3341 (amd64_linux_dr_set_control): Renamed to
3342 x86_linux_dr_set_control. All uses updated.
3343 (amd64_linux_dr_set_addr): Renamed to
3344 x86_linux_dr_set_addr. All uses updated.
3345 (amd64_linux_prepare_to_resume): Renamed to
3346 x86_linux_prepare_to_resume. All uses updated.
3347 (amd64_linux_new_thread): Renamed to
3348 x86_linux_new_thread. All uses updated.
3349 (amd64_linux_new_fork): Renamed to
3350 x86_linux_new_fork. All uses updated.
3351 (amd64_linux_child_post_startup_inferior): Renamed to
3352 x86_linux_child_post_startup_inferior. All uses updated.
3353 (amd64_linux_enable_btrace): Renamed to
3354 x86_linux_enable_btrace. All uses updated.
3355 (amd64_linux_disable_btrace): Renamed to
3356 x86_linux_disable_btrace. All uses updated.
3357 (amd64_linux_teardown_btrace): Renamed to
3358 x86_linux_teardown_btrace. All uses updated.
3359 (amd64_linux_read_btrace): Renamed to
3360 x86_linux_read_btrace. All uses updated.
3361 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3362 x86_linux_dr_get. All uses updated.
3363 (i386_linux_dr_set): Renamed to
3364 x86_linux_dr_set. All uses updated.
3365 (i386_linux_dr_get_addr): Renamed to
3366 x86_linux_dr_get_addr. All uses updated.
3367 (i386_linux_dr_get_control): Renamed to
3368 x86_linux_dr_get_control. All uses updated.
3369 (i386_linux_dr_get_status): Renamed to
3370 x86_linux_dr_get_status. All uses updated.
3371 (i386_linux_dr_set_control): Renamed to
3372 x86_linux_dr_set_control. All uses updated.
3373 (i386_linux_dr_set_addr): Renamed to
3374 x86_linux_dr_set_addr. All uses updated.
3375 (i386_linux_prepare_to_resume): Renamed to
3376 x86_linux_prepare_to_resume. All uses updated.
3377 (i386_linux_new_thread): Renamed to
3378 x86_linux_new_thread. All uses updated.
3379 (i386_linux_new_fork): Renamed to
3380 x86_linux_new_fork. All uses updated.
3381 (i386_linux_child_post_startup_inferior): Renamed to
3382 x86_linux_child_post_startup_inferior. All uses updated.
3383 (i386_linux_enable_btrace): Renamed to
3384 x86_linux_enable_btrace. All uses updated.
3385 (i386_linux_disable_btrace): Renamed to
3386 x86_linux_disable_btrace. All uses updated.
3387 (i386_linux_teardown_btrace): Renamed to
3388 x86_linux_teardown_btrace. All uses updated.
3389 (i386_linux_read_btrace): Renamed to
3390 x86_linux_read_btrace. All uses updated.
3391
3392 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3393
3394 * remote.c (extended_remote_post_attach): New function.
3395 (init_extended_remote_ops): Install it as to_post_attach method.
3396
3397 2014-07-09 Pedro Alves <palves@redhat.com>
3398
3399 * infcmd.c (attach_command_post_wait): Don't call
3400 target_terminal_inferior here.
3401 (attach_command): Call it here instead.
3402
3403 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3404
3405 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3406 field.
3407 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3408 from varobj.c, with additional checks.
3409 (c_varobj_ops): Fill in is_path_expr_parent field.
3410 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3411 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3412 field.
3413 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3414 ops method.
3415 (varobj_default_is_path_expr_parent): New function.
3416 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3417 (varobj_default_is_path_expr_parent): Declare new function.
3418
3419 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3420
3421 * infcmd.c (finish_backward): Turn internal error into normal error.
3422
3423 2014-07-07 Pedro Alves <palves@redhat.com>
3424
3425 PR gdb/17096
3426 * remote.c (async_handle_remote_sigint)
3427 (async_handle_remote_sigint_twice): Call
3428 gdb_call_async_signal_handler instead of
3429 mark_async_signal_handler.
3430
3431 2014-07-07 Tom Tromey <tromey@redhat.com>
3432
3433 * target-delegates.c: Rebuild.
3434 * target.c (target_info_record): Remove.
3435 * record.c (info_record_command): Unconditionally call
3436 to_info_record.
3437 * target.h (struct target_ops) <to_info_record>: Use
3438 TARGET_DEFAULT_IGNORE.
3439 (target_info_record): Remove.
3440
3441 2014-07-07 Tom Tromey <tromey@redhat.com>
3442
3443 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3444 TARGET_DEFAULT_NORETURN.
3445 * target.c (generic_tls_error): New function.
3446 (target_translate_tls_address): Don't search target stack.
3447 * target-delegates.c: Rebuild.
3448 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3449 stack.
3450 * linux-thread-db.c (thread_db_get_thread_local_address):
3451 Unconditionally call beneath target.
3452
3453 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3454
3455 * cli/cli-logging.c (pop_output_files): Assign targerr to
3456 gdb_stdtargerr.
3457
3458 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3459
3460 * MAINTAINERS (Write After Approval): Update my email address.
3461
3462 2014-07-02 Gary Benson <gbenson@redhat.com>
3463
3464 * proc-service.c (ps_xfer_memory): Update comment.
3465 (ps_pstop): Remove unused function.
3466 (ps_pcontinue): Likewise.
3467 (ps_lstop): Likewise.
3468 (ps_lcontinue): Likewise.
3469 (ps_lgetxregsize): Likewise.
3470 (ps_lgetxregs): Likewise.
3471 (ps_lsetxregs): Likewise.
3472 (ps_plog): Likewise.
3473 (ps_ptread): Likewise.
3474 (ps_ptwrite): Likewise.
3475
3476 2014-07-01 Mark Wielaard <mjw@redhat.com>
3477
3478 * dwarf2read.c (add_array_cv_type): New function.
3479 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3480 (read_tag_volatile_type): Likewise.
3481
3482 2014-07-01 Tom Tromey <tromey@redhat.com>
3483
3484 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3485 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3486 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3487 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3488 * command.h (cmd_cfunc_ftype): Move earlier.
3489 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3490 (add_com, add_info): Use cmd_cfunc_ftype.
3491
3492 2014-06-30 Tom Tromey <tromey@redhat.com>
3493
3494 * symtab.c (operator_chars): Make parameters and return type
3495 const.
3496 (file_matches): Make "files" const.
3497 (struct search_symbols_data) <files>: Now const.
3498 (search_symbols): Make "regexp" and "files" parameters const.
3499 Update.
3500 (symtab_symbol_info): Remove cast.
3501 (rbreak_command): Update.
3502 * symtab.h (search_symbols): Update.
3503
3504 2014-06-27 Yao Qi <yao@codesourcery.com>
3505
3506 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3507 Change parameter type to 'struct thread_info *'. Caller
3508 updated.
3509 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3510 Update declaration.
3511 * dummy-frame.c (struct dummy_frame_id): New.
3512 (dummy_frame_id_eq): New function.
3513 (struct dummy_frame) <id>: Change its type to 'struct
3514 dummy_frame_id'.
3515 (dummy_frame_push): Add parameter ptid and save it in
3516 dummy_frame_id.
3517 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3518 inferior_ptid.
3519 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3520 to inferior_ptid.
3521 (lookup_dummy_frame): Change parameter type to 'struct
3522 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3523 instead of frame_id_eq.
3524 (dummy_frame_pop): Add parameter ptid. Callers updated.
3525 Update comments. Compose dummy_frame_id and pass it to
3526 lookup_dummy_frame.
3527 (dummy_frame_discard): Add parameter ptid.
3528 (dummy_frame_sniffer): Compose dummy_frame_id and call
3529 dummy_frame_id_eq instead of frame_id_eq.
3530 (fprint_dummy_frames): Print ptid.
3531 * dummy-frame.h: Remove comments.
3532 (dummy_frame_push): Add ptid in declaration.
3533 (dummy_frame_pop, dummy_frame_discard): Likewise.
3534
3535 2014-06-26 Tom Tromey <tromey@redhat.com>
3536
3537 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3538 * command.h (error_no_arg): Update.
3539
3540 2014-06-26 Tom Tromey <tromey@redhat.com>
3541
3542 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3543 (do_show_command): Make "arg" const.
3544 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3545
3546 2014-06-26 Tom Tromey <tromey@redhat.com>
3547
3548 * record-full.c (record_full_get_bookmark): Make "args" const.
3549 (record_full_goto_bookmark): Make "raw_bookmark" const.
3550 * record.c (record_goto): New function.
3551 (cmd_record_goto): Use it. Now static.
3552 * record.h (record_goto): Declare.
3553 (cmd_record_goto): Remove declaration.
3554 * target-delegates.c: Rebuild.
3555 * target.h (struct target_ops) <to_get_bookmark,
3556 to_goto_bookmark>: Make parameter const.
3557
3558 2014-06-26 Tom Tromey <tromey@redhat.com>
3559
3560 * defs.h (generic_load): Update.
3561 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3562 * monitor.c (monitor_load): Make "args" const.
3563 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3564 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3565 const.
3566 (mips_load): Make "file" const.
3567 * remote-sim.c (gdbsim_load): Make "args" const.
3568 * remote.c (remote_load): Make "name" const.
3569 * symfile.c (generic_load): Make "args" const.
3570 * target-delegates.c: Rebuild.
3571 * target.c (target_load): Make "arg" const.
3572 (debug_to_load): Make "args" const.
3573 * target.h (struct target_ops) <to_load>: Make parameter const.
3574 (target_load): Update.
3575
3576 2014-06-26 Tom Tromey <tromey@redhat.com>
3577
3578 PR symtab/16902:
3579 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3580 (dwarf2_physname, read_partial_die)
3581 (guess_partial_die_structure_name, fixup_partial_die)
3582 (guess_full_die_structure_name, anonymous_struct_prefix)
3583 (dwarf2_name): Use per-BFD obstack.
3584
3585 2014-06-26 Yao Qi <yao@codesourcery.com>
3586
3587 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3588 dummyframe and this_id into inner block below.
3589
3590 2014-06-26 Yao Qi <yao@codesourcery.com>
3591
3592 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3593 with "signal_pass[0]" in the initialization of signal_pass.
3594
3595 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3596
3597 * record-btrace.c (record_btrace_generating_corefile)
3598 (record_btrace_prepare_to_generate_core)
3599 (record_btrace_done_generating_core): New.
3600 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3601 (record_btrace_store_registers, record_btrace_prepare_to_store):
3602 Forward request when generating a core file.
3603 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3604 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3605 to_done_generating_core.
3606
3607 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3608
3609 * target.h (target_ops) <to_prepare_to_generate_core>
3610 <to_done_generating_core>: New.
3611 (target_prepare_to_generate_core, target_done_generating_core): New.
3612 * target.c (target_prepare_to_generate_core)
3613 (target_done_generating_core): New.
3614 * target-delegates.c: Regenerate.
3615 * gcore.c: (write_gcore_file): Rename to ...
3616 (write_gcore_file_1): ...this.
3617 (write_gcore_file): Call target_prepare_to_generate_core
3618 and target_done_generating_core.
3619
3620 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3621
3622 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3623 * gcore.c (write_gcore_file): Free memory returned from
3624 make_corefile_notes.
3625 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3626 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3627
3628 2014-06-24 Yao Qi <yao@codesourcery.com>
3629
3630 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3631 (arm_linux_init_abi): Set skip_trampoline_code with
3632 gdbarch_skip_trampoline_code instead of
3633 find_solib_trampoline_target.
3634
3635 2014-06-24 Yao Qi <yao@codesourcery.com>
3636
3637 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3638 arm_skip_bx_reg returns non-zero.
3639
3640 2014-06-24 Yao Qi <yao@codesourcery.com>
3641
3642 * arm-tdep.c (arm_skip_bx_reg): New function.
3643 (arm_skip_stub): Call arm_skip_bx_reg.
3644
3645 2014-06-23 Don Breazeal <donb@codesourcery.com>
3646
3647 * MAINTAINERS: Add myself as write-after-approval maintainer.
3648
3649 2014-06-23 Pedro Alves <palves@redhat.com>
3650
3651 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3652 DR_CONTROL before setting DR0..DR3.
3653 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3654 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3655 bits of DR_CONTROL related to the debug register slot being
3656 disabled. If all slots are vacant, clear local slowdown as well,
3657 and assert DR_CONTROL is 0.
3658
3659 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3660
3661 * python/lib/gdb/command/xmethods.py
3662 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3663 current progspace only if the string "progspace" matches LOCUS_RE.
3664
3665 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3666
3667 Fix --with-system-readline with readline-6.3 patch 5.
3668 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3669 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3670 types.
3671
3672 2014-06-20 Tom Tromey <tromey@redhat.com>
3673
3674 * dwarf2read.c (dw2_get_real_path): Use correct type in
3675 OBSTACK_CALLOC.
3676 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3677
3678 2014-06-20 Gary Benson <gbenson@redhat.com>
3679
3680 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3681 * common/glibc_thread_db.h: Likewise.
3682 * common/i386-cpuid.h: Likewise.
3683 * common/i386-gcc-cpuid.h: Likewise.
3684 * common/linux-btrace.h: Likewise.
3685 * common/linux-osdata.h: Likewise.
3686 * common/linux-procfs.h: Likewise.
3687 * common/linux-ptrace.h: Likewise.
3688 * common/mips-linux-watch.h: Likewise.
3689 * common/linux-btrace.c: Moved to nat.
3690 * common/linux-osdata.c: Likewise.
3691 * common/linux-procfs.c: Likewise.
3692 * common/linux-ptrace.c: Likewise.
3693 * common/mips-linux-watch.c: Likewise.
3694 * nat/gdb_thread_db.h: Moved from common.
3695 * nat/glibc_thread_db.h: Likewise.
3696 * nat/i386-cpuid.h: Likewise.
3697 * nat/i386-gcc-cpuid.h: Likewise.
3698 * nat/linux-btrace.c: Likewise.
3699 * nat/linux-btrace.h: Likewise.
3700 * nat/linux-osdata.c: Likewise.
3701 * nat/linux-osdata.h: Likewise.
3702 * nat/linux-procfs.c: Likewise.
3703 * nat/linux-procfs.h: Likewise.
3704 * nat/linux-ptrace.c: Likewise.
3705 * nat/linux-ptrace.h: Likewise.
3706 * nat/mips-linux-watch.c: Likewise.
3707 * nat/mips-linux-watch.h: Likewise.
3708 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3709 (object file files): Reordered.
3710 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3711 of glibc_thread_db.h.
3712
3713 2014-06-20 Gary Benson <gbenson@redhat.com>
3714
3715 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3716 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3717 (i386_dr_low): Likewise.
3718 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3719 (i386_dr_low_set_addr): Likewise.
3720 (i386_dr_low_get_addr): Likewise.
3721 (i386_dr_low_can_set_control): Likewise.
3722 (i386_dr_low_set_control): Likewise.
3723 (i386_dr_low_get_control): Likewise.
3724 (i386_dr_low_get_status): Likewise.
3725 (i386_get_debug_register_length): Likewise.
3726 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3727 (i386_dr_low): Likewise.
3728 * nat/i386-dregs.c (i386-low.h): Remove include.
3729 (i386-nat.h): Likewise.
3730 (nat/i386-dregs.h): New include.
3731 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3732 (i386_dr_low_set_addr): Likewise.
3733 (i386_dr_low_get_addr): Likewise.
3734 (i386_dr_low_can_set_control): Likewise.
3735 (i386_dr_low_set_control): Likewise.
3736 (i386_dr_low_get_control): Likewise.
3737 (i386_dr_low_get_status): Likewise.
3738 (i386_get_debug_register_length): Likewise.
3739 (debug_hw_points): Likewise.
3740
3741 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3742
3743 * Makefile.in (SFILES): Add d-exp.y.
3744 (YYFILES): Add d-exp.c.
3745 (YYOBJ): Add d-exp.o.
3746 (local-maintainer-clean): Delete d-exp.c.
3747 * d-exp.y: New file.
3748 * d-lang.h (d_parse): New declaration.
3749 (d_error): New declaration.
3750 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3751 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3752 PREC_ORDER operators.
3753 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3754
3755 2014-06-19 Yao Qi <yao@codesourcery.com>
3756
3757 * gdbthread.h (any_running): Remove the declaration.
3758 * thread.c (any_running): Remove.
3759
3760 2014-06-19 Yao Qi <yao@codesourcery.com>
3761
3762 * gdbthread.h (struct thread_info) <state>: Change its type to
3763 'enum thread_state'. Update comments.
3764
3765 2014-06-19 Pedro Alves <palves@redhat.com>
3766
3767 * gdbthread.h (ALL_THREADS): Delete.
3768 (ALL_NON_EXITED_THREADS): New macro.
3769 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3770 instead of ALL_THREADS.
3771 * infrun.c (find_thread_needs_step_over)
3772 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3773 instead of ALL_THREADS.
3774 * record-btrace.c (record_btrace_open)
3775 (record_btrace_stop_recording, record_btrace_close)
3776 (record_btrace_is_replaying, record_btrace_resume)
3777 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3778 * remote.c (append_pending_thread_resumptions): Likewise.
3779 * thread.c (thread_apply_all_command): Likewise.
3780
3781 2014-06-19 Gary Benson <gbenson@redhat.com>
3782
3783 * i386-nat.c (i386_stopped_by_watchpoint):
3784 Use i386_dr_stopped_by_watchpoint.
3785 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3786 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3787
3788 2014-06-19 Gary Benson <gbenson@redhat.com>
3789
3790 * nat/i386-dregs.c: New file.
3791 * Makefile.in (i386-dregs.o): New rule.
3792 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3793 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3794 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3795 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3796 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3797 * config/i386/go32.mh (NATDEPFILES): Likewise.
3798 * config/i386/linux.mh (NATDEPFILES): Likewise.
3799 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3800 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3801 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3802 * i386-nat.h (debug_hw_points): New declaration.
3803 * i386-nat.c (breakpoint.h): Remove include.
3804 (command.h): Likewise.
3805 (target.h): Likewise.
3806 (gdb_assert.h): Likewise.
3807 (debug_hw_points): Made nonstatic.
3808 (debug_printf): Now in i386-dregs.c.
3809 (TARGET_HAS_DR_LEN_8): Likewise.
3810 (DR_CONTROL_SHIFT): Likewise.
3811 (DR_CONTROL_SIZE): Likewise.
3812 (DR_RW_EXECUTE): Likewise.
3813 (DR_RW_WRITE): Likewise.
3814 (DR_RW_READ): Likewise.
3815 (DR_RW_IORW): Likewise.
3816 (DR_LEN_1): Likewise.
3817 (DR_LEN_2): Likewise.
3818 (DR_LEN_4): Likewise.
3819 (DR_LEN_8): Likewise.
3820 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3821 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3822 (DR_ENABLE_SIZE): Likewise.
3823 (DR_LOCAL_SLOWDOWN): Likewise.
3824 (DR_GLOBAL_SLOWDOWN): Likewise.
3825 (DR_CONTROL_RESERVED): Likewise.
3826 (I386_DR_CONTROL_MASK): Likewise.
3827 (I386_DR_VACANT): Likewise.
3828 (I386_DR_LOCAL_ENABLE): Likewise.
3829 (I386_DR_GLOBAL_ENABLE): Likewise.
3830 (I386_DR_DISABLE): Likewise.
3831 (I386_DR_SET_RW_LEN): Likewise.
3832 (I386_DR_GET_RW_LEN): Likewise.
3833 (I386_DR_WATCH_HIT): Likewise.
3834 (i386_wp_op_t): Likewise.
3835 (i386_show_dr): Likewise.
3836 (i386_length_and_rw_bits): Likewise.
3837 (i386_insert_aligned_watchpoint): Likewise.
3838 (i386_remove_aligned_watchpoint): Likewise.
3839 (i386_handle_nonaligned_watchpoint): Likewise.
3840 (i386_update_inferior_debug_regs): Likewise.
3841 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3842 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3843 (i386_region_ok_for_watchpoint):
3844 Use i386_dr_region_ok_for_watchpoint.
3845 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3846
3847 2014-06-19 Gary Benson <gbenson@redhat.com>
3848
3849 * i386-nat.c (i386_insert_hw_breakpoint): Use
3850 i386_insert_watchpoint.
3851 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3852
3853 2014-06-19 Gary Benson <gbenson@redhat.com>
3854
3855 * i386-nat.c (i386_dr_show): Renamed to
3856 i386_show_dr and made static. All uses updated.
3857 (i386_dr_length_and_rw_bits): Renamed to
3858 i386_length_and_rw_bits and made static.
3859 All uses updated.
3860 (i386_dr_insert_aligned_watchpoint): Renamed to
3861 i386_insert_aligned_watchpoint and made static.
3862 All uses updated.
3863 (i386_dr_remove_aligned_watchpoint): Renamed to
3864 i386_remove_aligned_watchpoint and made static.
3865 All uses updated.
3866 (i386_dr_update_inferior_debug_regs): Renamed to
3867 i386_update_inferior_debug_regs and made static.
3868 All uses updated.
3869 * nat/i386-dregs.h (i386_dr_show): Removed.
3870 (i386_dr_length_and_rw_bits): Likewise.
3871 (i386_dr_insert_aligned_watchpoint): Likewise.
3872 (i386_dr_remove_aligned_watchpoint): Likewise.
3873 (i386_dr_update_inferior_debug_regs): Likewise.
3874
3875 2014-06-19 Gary Benson <gbenson@redhat.com>
3876
3877 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3878 * configure: Regenerate.
3879 * config.in: Likewise.
3880 * main.c (signal.h): New include.
3881 (setup_alternate_signal_stack): New function.
3882 (captured_main): Call the above.
3883 * cp-support.c (signal.h): New include.
3884 (catch_demangler_crashes): New flag.
3885 (SIGJMP_BUF): New define.
3886 (SIGSETJMP): Likewise.
3887 (SIGLONGJMP): Likewise.
3888 (gdb_demangle_jmp_buf): New static global.
3889 (gdb_demangle_attempt_core_dump): Likewise.
3890 (gdb_demangle_signal_handler): New function.
3891 (gdb_demangle): If catch_demangler_crashes is set, install the
3892 above signal handler before calling bfd_demangle, and restore
3893 the original signal handler afterwards. Display the offending
3894 symbol and call demangler_warning the first time a segmentation
3895 fault is caught.
3896 (_initialize_cp_support): New maint set/show command.
3897
3898 2014-06-19 Gary Benson <gbenson@redhat.com>
3899
3900 * utils.h (resource_limit_kind): New enum.
3901 (can_dump_core): New declaration.
3902 (warn_cant_dump_core): Likewise.
3903 (dump_core): Likewise.
3904 * utils.c (dump_core): Made nonstatic. Added new
3905 parameter "limit_kind".
3906 (can_dump_core): Made nonstatic. Moved printing code to...
3907 (warn_cant_dump_core): New function.
3908 (can_dump_core_warn): Likewise.
3909 (internal_vproblem): Replace calls to can_dump_core with
3910 calls to can_dump_core_warn. Supply new argument to each.
3911
3912 2014-06-19 Gary Benson <gbenson@redhat.com>
3913
3914 * utils.h (demangler_vwarning): New declaration.
3915 (demangler_warning): Likewise.
3916 * utils.c (struct internal_problem)
3917 <user_settable_should_quit>: New field.
3918 <user_settable_should_dump_core>: Likewise
3919 (internal_error_problem): Add values for above new fields.
3920 (internal_warning_problem): Likewise.
3921 (demangler_warning_problem): New static global.
3922 (demangler_vwarning): New function.
3923 (demangler_warning): Likewise.
3924 (add_internal_problem_command): Selectively add commands.
3925 (_initialize_utils): New internal problem command.
3926 * maint.c (maintenance_demangler_warning): New function.
3927 (_initialize_maint_cmds): New command.
3928
3929 2014-06-18 Tom Tromey <tromey@redhat.com>
3930
3931 * f-valprint.c (info_common_command_for_block): Update.
3932 * symtab.h (struct general_symbol_info) <common_block>: Now
3933 const.
3934
3935 2014-06-18 Tom Tromey <tromey@redhat.com>
3936
3937 * symtab.h (struct symtab) <blockvector>: Now const.
3938 * ada-lang.c (ada_add_global_exceptions): Update.
3939 * buildsym.c (augment_type_symtab): Update.
3940 * dwarf2read.c (dw2_lookup_symbol): Update.
3941 * jit.c (finalize_symtab): Update.
3942 * jv-lang.c (add_class_symtab_symbol): Update.
3943 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3944 Update.
3945 * objfiles.c (objfile_relocate1): Update.
3946 * psymtab.c (lookup_symbol_aux_psymtabs)
3947 (maintenance_check_psymtabs): Update.
3948 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3949 Update.
3950 * spu-tdep.c (spu_catch_start): Update.
3951 * symmisc.c (dump_symtab_1): Update.
3952 * symtab.c (lookup_global_symbol_from_objfile)
3953 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3954 (basic_lookup_transparent_type_quick)
3955 (basic_lookup_transparent_type, find_pc_sect_symtab)
3956 (find_pc_sect_line, search_symbols): Update.
3957 * block.c (find_block_in_blockvector): Make "bl" const.
3958 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3959 const.
3960 (blockvector_contains_pc): Make "bv" const.
3961 (block_for_pc_sect): Update.
3962 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3963 (blockvector_contains_pc): Update.
3964 * breakpoint.c (resolve_sal_pc): Update.
3965 * inline-frame.c (block_starting_point_at): Update.
3966
3967 2014-06-18 Tom Tromey <tromey@redhat.com>
3968
3969 * completer.c (complete_line): Make "line_buffer" const.
3970 * completer.h (complete_line): Update.
3971
3972 2014-06-18 Tom Tromey <tromey@redhat.com>
3973
3974 * symtab.c (add_macro_name): Remove unneeded cast.
3975
3976 2014-06-18 Tom Tromey <tromey@redhat.com>
3977
3978 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3979 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3980
3981 2014-06-18 Tom Tromey <tromey@redhat.com>
3982
3983 * probe.c (info_probes_for_ops): Make "arg" const.
3984 * probe.h (info_probes_for_ops): Update.
3985
3986 2014-06-18 Tom Tromey <tromey@redhat.com>
3987
3988 * varobj.c (varobj_create): Update.
3989 * valops.c (value_of_this): Update.
3990 * tracepoint.c (add_local_symbols, scope_info): Update.
3991 * symtab.h (struct general_symbol_info) <block>: Now const.
3992 * symtab.c (skip_prologue_sal)
3993 (default_make_symbol_completion_list_break_on)
3994 (skip_prologue_using_sal): Update.
3995 * stack.h (iterate_over_block_locals)
3996 (iterate_over_block_local_vars): Update.
3997 * stack.c (print_frame_args): Update.
3998 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3999 parameter const.
4000 (get_selected_block): Make return type const.
4001 * python/py-frame.c (frapy_block): Update.
4002 * python/py-block.c (gdbpy_block_for_pc): Update.
4003 * p-exp.y (%union) <bval>: Now const.
4004 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4005 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4006 * m2-exp.y (%union) <bval>: Now const.
4007 * linespec.c (get_current_search_block): Make return type const.
4008 (create_sals_line_offset, find_label_symbols): Update.
4009 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4010 Update.
4011 (block_starting_point_at): Make "block" const.
4012 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4013 (check_exception_resume): Update.
4014 * guile/scm-frame.c (gdbscm_frame_block): Update.
4015 * guile/scm-block.c (gdbscm_lookup_block): Update.
4016 * frame.h (get_frame_block): Update.
4017 (get_selected_block): Make return type const.
4018 * frame.c (frame_id_inner): Update.
4019 * f-valprint.c (info_common_command_for_block)
4020 (info_common_command): Update.
4021 * dwarf2loc.c (dwarf2_find_location_expression)
4022 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4023 (locexpr_describe_location_piece): Update.
4024 * c-exp.y (%union) <bval>: Now const.
4025 * breakpoint.c (resolve_sal_pc): Update.
4026 * blockframe.c (get_frame_block):Make return type const.
4027 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4028 (block_innermost_frame): Update.
4029 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4030 (block_for_pc, block_for_pc_sect): Update.
4031 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4032 'pblock' const.
4033 (block_for_pc_sect, block_for_pc): Make return type const.
4034 * ax-gdb.c (gen_expr): Update.
4035 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4036 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4037 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4038 (ada_read_var_value): Update.
4039 * ada-exp.y (struct name_info) <block>: Now const.
4040 (%union): Likewise.
4041 (block_lookup): Constify.
4042
4043 2014-06-18 Gary Benson <gbenson@redhat.com>
4044
4045 * nat/i386-dregs.h: New file.
4046 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4047 * i386-nat.h (i386-dregs.h): New include.
4048 (DR_FIRSTADDR): Now in i386-dregs.h.
4049 (DR_LASTADDR): Likewise.
4050 (DR_NADDR): Likewise.
4051 (DR_STATUS): Likewise.
4052 (DR_CONTROL): Likewise.
4053 (i386_debug_reg_state): Likewise.
4054 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4055
4056 2014-06-18 Don Breazeal <donb@codesourcery.com>
4057
4058 * breakpoint.c (set_longjmp_breakpoint): Call
4059 momentary_breakpoint_from_master with additional argument.
4060 (set_longjmp_breakpoint_for_call_dummy): Call
4061 momentary_breakpoint_from_master with additional argument.
4062 (set_std_terminate_breakpoint): Call
4063 momentary_breakpoint_from_master with additional argument.
4064 (momentary_breakpoint_from_master): Add argument to function
4065 definition and use it to initialize structure member flag.
4066 (clone_momentary_breakpoint): Call
4067 momentary_breakpoint_from_master with additional argument.
4068 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4069 member flags set in momentary_breakpoint_from_master.
4070
4071 2014-06-18 Gary Benson <gbenson@redhat.com>
4072
4073 * i386-nat.c (i386_show_dr): Renamed to
4074 i386_dr_show and made nonstatic. All uses updated.
4075 (i386_length_and_rw_bits): Renamed to
4076 i386_dr_length_and_rw_bits and made nonstatic.
4077 All uses updated.
4078 (i386_insert_aligned_watchpoint): Renamed to
4079 i386_dr_insert_aligned_watchpoint and made nonstatic.
4080 All uses updated.
4081 (i386_remove_aligned_watchpoint): Renamed to
4082 i386_dr_remove_aligned_watchpoint and made nonstatic.
4083 All uses updated.
4084 (i386_update_inferior_debug_regs): Renamed to
4085 i386_dr_update_inferior_debug_regs and made nonstatic.
4086 All uses updated.
4087
4088 2014-06-18 Gary Benson <gbenson@redhat.com>
4089
4090 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4091 (i386_dr_low_can_set_control): Likewise.
4092 (i386_dr_low_set_addr): Likewise.
4093 (i386_dr_low_set_control): Likewise.
4094 (i386_dr_low_get_addr): Likewise.
4095 (i386_dr_low_get_status): Likewise.
4096 (i386_dr_low_get_control): Likewise.
4097 (i386_insert_aligned_watchpoint): Use new macros.
4098 (i386_update_inferior_debug_regs): Likewise.
4099 (i386_stopped_data_address): Likewise.
4100
4101 2014-06-18 Gary Benson <gbenson@redhat.com>
4102
4103 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4104 New parameter. All uses updated.
4105
4106 2014-06-18 Gary Benson <gbenson@redhat.com>
4107
4108 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4109 All uses updated.
4110
4111 2014-06-18 Gary Benson <gbenson@redhat.com>
4112
4113 * i386-nat.c (debug_printf): New macro.
4114 (i386_get_debug_register_length): Likewise.
4115 (TARGET_HAS_DR_LEN_8): Use above macro.
4116 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4117 and printf_unfiltered. Use phex to format values.
4118
4119 2014-06-18 Gary Benson <gbenson@redhat.com>
4120
4121 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4122 Make const.
4123
4124 2014-06-18 Gary Benson <gbenson@redhat.com>
4125
4126 * i386-nat.c: Comment changes.
4127
4128 2014-06-18 Gary Benson <gbenson@redhat.com>
4129
4130 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4131
4132 2014-06-18 Gary Benson <gbenson@redhat.com>
4133
4134 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4135 (i386_insert_aligned_watchpoint): Likewise.
4136 (i386_remove_aligned_watchpoint): Likewise.
4137 (i386_handle_nonaligned_watchpoint): Likewise.
4138
4139 2014-06-18 Gary Benson <gbenson@redhat.com>
4140
4141 * i386-nat.c: Whitespace changes.
4142
4143 2014-06-17 Samuel Bronson <naesten@gmail.com>
4144
4145 * MAINTAINERS: Update Roland McGrath's email address.
4146 Thanks to Sergio Durigan Junior for pointing out that he left
4147 Red Hat a while ago, and giving me a current address.
4148
4149 2014-06-17 Tom Tromey <tromey@redhat.com>
4150
4151 * utils.h (savestring): Remove declaration.
4152
4153 2014-06-17 Tom Tromey <tromey@redhat.com>
4154
4155 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4156
4157 2014-06-16 Keith Seitz <keiths@redhat.com>
4158
4159 PR mi/15863
4160 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4161 to update the varobj if inferior_ptid is null_ptid.
4162
4163 2014-06-16 Tom Tromey <tromey@redhat.com>
4164
4165 * target.h (struct target_ops) <to_info_proc>: Make parameter
4166 const.
4167 (target_info_proc): Update.
4168 * target.c (target_info_proc): Make "args" const.
4169 * procfs.c (procfs_info_proc): Update.
4170 * linux-tdep.c (linux_info_proc): Update.
4171 (linux_core_info_proc_mappings): Make "args" const.
4172 (linux_core_info_proc): Update.
4173 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4174 * gdbarch.c: Rebuild.
4175 * gdbarch.h: Rebuild.
4176 * corelow.c (core_info_proc): Update.
4177
4178 2014-06-16 Tom Tromey <tromey@redhat.com>
4179
4180 * target.h (struct target_ops) <to_disconnect>: Make parameter
4181 const.
4182 (target_disconnect): Update.
4183 * target.c (target_disconnect): Make "args" const.
4184 * target-delegates.c: Rebuild.
4185 * remote.c (remote_disconnect): Update.
4186 * record.h (record_disconnect): Update.
4187 * record.c (record_disconnect): Update.
4188 * inf-child.c (inf_child_disconnect): Update.
4189
4190 2014-06-16 Tom Tromey <tromey@redhat.com>
4191
4192 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4193 * target.c (debug_to_rcmd, default_rcmd): Update.
4194 * target-delegates.c: Rebuild.
4195 * remote.c (remote_rcmd): Update.
4196 * monitor.c (monitor_rcmd): Update.
4197
4198 2014-06-16 Pedro Alves <palves@redhat.com>
4199
4200 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4201 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4202 have OBJF_SHARED set.
4203 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4204 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4205 instead of OBJF_USERLOADED.
4206 * objfiles.h (OBJF_SHARED): Update comment.
4207 (userloaded_objfile_contains_address_p): Rename to ...
4208 (shared_objfile_contains_address_p): ... this, and update
4209 comments.
4210 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4211 new objfile.
4212 (remove_symbol_file_command): Skip objfiles that don't have
4213 OBJF_SHARED set.
4214
4215 2014-06-16 Tom Tromey <tromey@redhat.com>
4216
4217 * minsyms.h (prim_record_minimal_symbol)
4218 (prim_record_minimal_symbol_and_info): Update comments.
4219
4220 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4221
4222 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4223 or --without-guile, according to how GDB was built.
4224
4225 2014-06-13 Tom Tromey <tromey@redhat.com>
4226
4227 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4228 to help_list.
4229 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4230 to help_list.
4231 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4232 help_list.
4233 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4234 help_list.Pass all_commands, not -1, to help_list.
4235 * cli/cli-dump.c (dump_command, append_command)
4236 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4237 (binary_dump_command, binary_append_command): Pass all_commands,
4238 not -1, to help_list.
4239 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4240 -1, to help_list.
4241 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4242 -1, to help_list.
4243 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4244 help_list.
4245 * top.c (set_history): Pass all_commands, not -1, to help_list.
4246 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4247 all_commands, not -1, to help_list.
4248 * symfile.c (overlay_command): Pass all_commands, not -1, to
4249 help_list.
4250 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4251 help_list.
4252 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4253 help_list.
4254 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4255 -1, to help_list.
4256 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4257 not -1, to help_list.
4258 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4259 not -1, to help_list.
4260 * maint.c (maintenance_command, maintenance_info_command)
4261 (maintenance_print_command, maintenance_set_cmd): Pass
4262 all_commands, not -1, to help_list.
4263 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4264 help_list.
4265 * language.c (set_check): Pass all_commands, not -1, to help_list.
4266 * infcmd.c (unset_command): Pass all_commands, not -1, to
4267 help_list.
4268 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4269 help_list.
4270 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4271 help_list.
4272 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4273 help_list.
4274 * breakpoint.c (save_command): Pass all_commands, not -1, to
4275 help_list.
4276 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4277 all_commands, not -1, to help_list.
4278
4279 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4280
4281 * regcache.c (struct register_to_invalidate): New structure.
4282 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4283 functions.
4284 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4285
4286 2014-06-12 Yao Qi <yao@codesourcery.com>
4287
4288 * varobj.c (varobj_get_num_children): Call
4289 varobj_is_dynamic_p.
4290 (varobj_list_children): Likewise.
4291 (varobj_update): Likewise. Update comments.
4292
4293 2014-06-12 Yao Qi <yao@codesourcery.com>
4294
4295 * varobj.c (varobj_pretty_printed_p): Rename to ...
4296 (varobj_is_dynamic_p): ... this. New function.
4297 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4298 (varobj_is_dynamic_p): Declare.
4299 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4300 (mi_print_value_p, varobj_update_one): Likewise.
4301
4302 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4303 Yao Qi <yao@codesourcery.com>
4304
4305 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4306 (varobj_get_iterator): Wrap up code for pretty-printer by
4307 "#if HAVE_PYTHON" and "#endif".
4308 (update_dynamic_varobj_children): Likewise.
4309
4310 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4311 Yao Qi <yao@codesourcery.com>
4312
4313 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4314 gdb_python_initialized is false. Move some code from varobj.c.
4315 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4316 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4317 (struct varobj_item): Moved to varobj-iter.h".
4318 (varobj_clear_saved_item): New function.
4319 (update_dynamic_varobj_children): Move python-related code to
4320 py-varobj.c.
4321 (free_variable): Call varobj_clear_saved_item and
4322 varobj_iter_delete.
4323
4324 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4325 Yao Qi <yao@codesourcery.com>
4326
4327 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4328 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4329 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4330 (py-varobj.o): New rule.
4331 * python/py-varobj.c: New file.
4332 * python/python-internal.h (py_varobj_get_iterator): Declare.
4333 * varobj-iter.h: New file.
4334 * varobj.c: Include "varobj-iter.h"
4335 (struct varobj) <child_iter>: Change its type from "PyObject *"
4336 to "struct varobj_iter *".
4337 <saved_item>: Likewise.
4338 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4339 [HAVE_PYTHON] (varobj_get_iterator): New function.
4340 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4341 python-specific code to python/py-varobj.c.
4342 (install_visualizer): Call varobj_iter_delete instead of
4343 Py_XDECREF.
4344 * varobj.h (varobj_ensure_python_env): Declare.
4345
4346 2014-06-12 Yao Qi <yao@codesourcery.com>
4347
4348 * varobj.c (struct varobj_item): New structure.
4349 (create_child_with_value): Update declaration.
4350 (varobj_add_child): Replace arguments 'name' and 'value' with
4351 'item'. All callers updated.
4352 (install_dynamic_child): Likewise.
4353 (update_dynamic_varobj_children): Likewise.
4354 (varobj_add_child): Likewise.
4355 (create_child_with_value): Likewise.
4356
4357 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4358
4359 * NEWS: Create a new section for the next release branch.
4360 Rename the section of the current branch, now that it has
4361 been cut.
4362
4363 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4364
4365 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4366 * version.in: Bump version to 7.8.50.DATE-cvs.
4367
4368 2014-06-11 Pedro Alves <palves@redhat.com>
4369
4370 PR remote/17028
4371 * ser-mingw.c (net_windows_socket_check_pending): New function.
4372 (net_windows_select_thread): Ignore spurious wakeups. Use
4373 net_windows_socket_check_pending.
4374 (net_windows_wait_handle): Check for pending events with
4375 ioctlsocket, through net_windows_socket_check_pending, instead of
4376 checking the socket's event.
4377
4378 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4379
4380 * python/python-internal.h (gdb_PyObject_GetAttrString)
4381 (gdb_PyObject_HasAttrString): New inline function definitions.
4382 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4383 char * of the second argument to PyObject_GetAttrString.
4384
4385 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4386
4387 * serial.c (serial_write): Fix index of character to be printed
4388 in call to serial_logchar when serial debug traces are enabled.
4389
4390 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4391
4392 * gdbtypes (resolve_dynamic_range): Add function description.
4393
4394 2014-06-09 Pedro Alves <palves@redhat.com>
4395
4396 * linux-nat.c (linux_child_follow_fork): Initialize status with
4397 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4398 inner block. Only pass the signal to PTRACE_DETACH if in pass
4399 state.
4400
4401 2014-06-09 Gary Benson <gbenson@redhat.com>
4402
4403 * common/signals.c (gdb_signal_from_host): Reorder to separate
4404 the always-available ANSI-standard signals from the signals that
4405 require checking.
4406 (do_gdb_signal_to_host): Likewise.
4407 * proc-events.c (signal_table): Likewise.
4408
4409 2014-06-08 Hui Zhu <hui@codesourcery.com>
4410
4411 * common/linux-ptrace.c (linux_disable_event_reporting): New
4412 function.
4413 * common/linux-ptrace.h (linux_disable_event_reporting): New
4414 declaration.
4415 * linux-nat.c (linux_child_follow_fork): Do a single step before
4416 detach.
4417
4418 2014-06-07 Keith Seitz <keiths@redhat.com>
4419
4420 Revert:
4421 PR c++/16253
4422 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4423 from symbol_matches_domain in symtab.c. All local callers
4424 of symbol_matches_domain updated.
4425 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4426 search STRUCT_DOMAIN.
4427 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4428 independently. standard_lookup will do that automatically.
4429 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4430 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4431 (cp_lookup_symbol_in_namespace): Likewise.
4432 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4433 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4434 may return a STRUCT_DOMAIN match.
4435 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4436 * cp-support.c: Include language.h.
4437 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4438 VAR_DOMAIN.
4439 * psymtab.c (match_partial_symbol): Compare the requested
4440 domain with the symbol's domain directly.
4441 (lookup_partial_symbol): Likewise.
4442 * symtab.c (lookup_symbol_in_language): Explain when/why
4443 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4444 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4445 appropriate languages.
4446 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4447 and moved to ada-lang.c
4448 (lookup_block_symbol): Explain that this function only returns
4449 symbol matching the requested DOMAIN.
4450 Compare the requested domain with the symbol's domain directly.
4451 (iterate_over_symbols): Compare the requested domain with the
4452 symbol's domain directly.
4453 * symtab.h (symbol_matches_domain): Remove.
4454
4455 2014-06-06 Doug Evans <xdje42@gmail.com>
4456
4457 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4458 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4459 (gdbscm_guile_version_is_at_least): Declare.
4460 (gdbscm_scm_string_to_int): Declare.
4461 * guile/guile.c (gdbscm_guile_major_version): New global.
4462 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4463 (guile_datadir): New static global.
4464 (gdbscm_guile_data_directory): New function.
4465 (initialize_scheme_side): Update.
4466 (misc_guile_functions): Add guile-data-directory.
4467 (initialize_gdb_module): Fetch guile version number.
4468 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4469 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4470 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4471 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4472 comments.
4473 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4474 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4475 * guile/scm-value.c (gdbscm_value_to_string): Only call
4476 scm_port_conversion_strategy if Guile version >= 2.0.6.
4477
4478 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4479
4480 * main.c (print_gdb_help): Add -q and --silent.
4481
4482 2014-06-06 Gary Benson <gbenson@redhat.com>
4483
4484 * common/signals.c: Remove preprocessor conditionals for
4485 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4486 SIGSEGV and SIGTERM.
4487 * proc-events.c: Likewise.
4488
4489 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4490
4491 * symfile.c (symfile_free_objfile): Remove restriction to
4492 OBJF_USERLOADED.
4493 * symfile-mem.c (symbol_file_add_from_memory): Call
4494 add_target_sections_of_objfile.
4495
4496 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4497
4498 * guile/scm-value.c (gdbscm_history_append_x): Use
4499 'vlscm_get_value_smob_arg_unsafe' instead of
4500 'vlscm_scm_to_value'.
4501
4502 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4503
4504 PR mi/15806
4505 * utils.c (printchar): Don't escape at all if quoter is NUL.
4506 Update function documentation to clarify effect of parameter
4507 QUOTER.
4508 * remote.c (escape_buffer): Pass '\\' as the quoter to
4509 fputstrn_unfiltered.
4510 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4511 generate the output.
4512 (mi_solib_unloaded): Same.
4513
4514 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4515
4516 * development.sh: Delete.
4517 * Makefile.in (config.status): Adjust dependency on development.sh.
4518 * configure.ac: Adjust development.sh source call.
4519 * configure: Regenerate.
4520
4521 2014-06-04 Doug Evans <xdje42@gmail.com>
4522
4523 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4524 is_scheme_bkpt, spec.
4525 (bpscm_make_breakpoint_smob): Initialize new members.
4526 (gdbscm_create_breakpoint_x): Split into two ...
4527 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4528 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4529 (scheme_function breakpoint_functions): Update.
4530 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4531 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4532 register-breakpoint!.
4533
4534 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4535
4536 PR server/17023
4537 * mem-break.c (z_type_supported): Return zero if
4538 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4539
4540 2014-06-04 Tom Tromey <tromey@redhat.com>
4541
4542 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4543 value_from_contents_and_address_unresolved.
4544 (ada_template_to_fixed_record_type_1): Likewise.
4545 (ada_which_variant_applies): Likewise.
4546 * value.h (value_from_contents_and_address_unresolved): Declare.
4547 * value.c (value_from_contents_and_address_unresolved): New
4548 function.
4549 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4550 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4551 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4552
4553 2014-06-04 Tom Tromey <tromey@redhat.com>
4554
4555 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4556
4557 2014-06-04 Tom Tromey <tromey@redhat.com>
4558
4559 * procfs.c (procfs_attach): Make "args" const.
4560 * windows-nat.c (windows_attach): Make "args" const.
4561 * nto-procfs.c (procfs_attach): Make "args" const.
4562 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4563 * go32-nat.c (go32_attach): Make "args" const.
4564 * gnu-nat.c (gnu_attach): Make "args" const.
4565 * darwin-nat.c (darwin_attach): Make "args" const.
4566 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4567 * linux-nat.c (linux_nat_attach): Make "args" const.
4568 * remote.c (extended_remote_attach_1, extended_remote_attach):
4569 Make "args" const.
4570 * target.h (struct target_ops) <to_attach>: Make "args" const.
4571 (find_default_attach): Likewise.
4572 * utils.c (parse_pid_to_attach): Make "args" const.
4573 * utils.h (parse_pid_to_attach): Update.
4574
4575 2014-06-04 Tom Tromey <tromey@redhat.com>
4576
4577 * target-delegates.c: Rebuild.
4578 * target.c (default_thread_address_space): New function.
4579 (target_thread_address_space): Simplify.
4580 * target.h (struct target_ops) <to_thread_address_space>: Add
4581 TARGET_DEFAULT_FUNC.
4582
4583 2014-06-04 Doug Evans <xdje42@gmail.com>
4584
4585 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4586
4587 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4588
4589 * record-btrace.c: Include event-loop.h and inf-loop.h.
4590 (record_btrace_resume_exec_dir)
4591 (record_btrace_async_inferior_event_handler)
4592 (record_btrace_handle_async_inferior_event): New.
4593 (record_btrace_open): Create async event handler.
4594 (record_btrace_close): Delete async event handler.
4595 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4596 Mark async event handler.
4597 (record_btrace_execution_direction): New.
4598 (init_record_btrace_ops): Initialize to_execution_direction.
4599
4600 2014-06-03 Doug Evans <xdje42@gmail.com>
4601
4602 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4603 (gdbscm_make_parameter): Ditto.
4604
4605 2014-06-03 Doug Evans <dje@google.com>
4606
4607 * exec.c (exec_close_1): Call clear_section_table instead of
4608 resize_section_table.
4609 (clear_section_table): New function.
4610 (resize_section_table): Make static. Rename arg num_added to
4611 adjustment.
4612 * exec.h (clear_section_table): Declare.
4613 (resize_section_table): Delete.
4614 * progspace.c (release_program_space): Call clear_section_table
4615 instead of resize_section_table.
4616
4617 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4618
4619 * NEWS (Python Scripting): Add entry about the new xmethods
4620 feature.
4621
4622 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4623
4624 * python/py-xmethods.c: New file.
4625 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4626 (objfpy_dealloc): XDECREF on the new xmethods field.
4627 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4628 field.
4629 (objfpy_get_xmethods): New function.
4630 (objfile_getset): New entry 'xmethods'.
4631 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4632 (pspy_dealloc): XDECREF on the new xmethods field.
4633 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4634 field.
4635 (pspy_get_xmethods): New function.
4636 (pspace_getset): New entry 'xmethods'.
4637 * python/python-internal.h: Add declarations for new functions.
4638 * python/python.c (_initialize_python): Invoke
4639 gdbpy_initialize_xmethods.
4640 * python/lib/gdb/__init__.py (xmethods): New
4641 attribute.
4642 * python/lib/gdb/xmethod.py: New file.
4643 * python/lib/gdb/command/xmethods.py: New file.
4644
4645 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4646
4647 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4648 best match method returned by find_overload_match is an xmethod.
4649 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4650 the best matching operator returned by find_overload_match is an
4651 xmethod.
4652 * valops.c: #include "extension.h".
4653 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4654 Return void. The list of matching source methods is returned in
4655 "fn_list" and a vector of matching debug method workers is
4656 returned in "xm_worker_vec". Update all callers.
4657 (value_find_oload_method_list): Likewise.
4658 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4659 non-NULL, then the index of the best matching method in this
4660 vector is returned. Update all callers.
4661 (find_overload_match): Include xmethods while performing overload
4662 resolution.
4663
4664 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4665
4666 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4667 * extension-priv.h (struct extension_language_ops): Add the
4668 xmethod interface.
4669 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4670 get_matching_xmethod_workers, get_xmethod_argtypes,
4671 invoke_xmethod, free_xmethod_worker,
4672 free_xmethod_worker_vec): New functions.
4673 * extension.h: #include "common/vec.h".
4674 New function declarations.
4675 (struct xmethod_worker): New struct.
4676 (VEC (xmethod_worker_ptr)): New vector type.
4677 (xmethod_worker_ptr): New typedef.
4678 (xmethod_worker_vec): Likewise.
4679 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4680 builtin_type.
4681 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4682 (struct builtin_type): New field "xmethod".
4683 * valarith.c (value_ptradd): Assert that the value argument is not
4684 lval_xcallable.
4685 * valops.c (value_must_coerce_to_target): Return 0 for
4686 lval_xcallable values.
4687 * value.c (struct value): New field XM_WORKER in the field
4688 LOCATION.
4689 (value_address, value_raw_address): Return 0 for lval_xcallable
4690 values.
4691 (set_value_address): Assert that the value is not an
4692 lval_xcallable.
4693 (value_free): Free the associated xmethod worker when freeing
4694 lval_xcallable values.
4695 (set_value_component_location): Assert that the WHOLE value is not
4696 lval_xcallable.
4697 (value_of_xmethod, call_xmethod): New functions.
4698 * value.h: Declare "struct xmethod_worker".
4699 Declare new functions value_of_xmethod, call_xmethod.
4700
4701 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4702 Pedro Alves <palves@redhat.com>
4703
4704 PR breakpoints/17000
4705 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4706 New function, extracted from software_breakpoint_inserted_here_p.
4707 (software_breakpoint_inserted_here_p): Replace factored out code
4708 by call to find_non_raw_software_breakpoint_inserted_here.
4709 (bp_target_info_copy_insertion_state): New function.
4710 (bkpt_insert_location): Handle the case of a single-step
4711 breakpoint already inserted at the same address.
4712 (bkpt_remove_location): Handle the case of a single-step
4713 breakpoint still inserted at the same address.
4714 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4715 breakpoint already inserted at the same address.
4716 (deprecated_remove_raw_breakpoint): Handle the case of a
4717 non-raw breakpoint still inserted at the same address.
4718 (find_single_step_breakpoint): New function, extracted from
4719 single_step_breakpoint_inserted_here_p.
4720 (find_single_step_breakpoint): New function,
4721 factored out from single_step_breakpoint_inserted_here_p.
4722 (single_step_breakpoint_inserted_here_p): Reimplement.
4723
4724 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4725
4726 Pushed by Joel Brobecker <brobecker@adacore.com>
4727 * source.c (show_substitute_path_command): Fix display of matching
4728 substitution rules.
4729
4730 2014-06-03 Gary Benson <gbenson@redhat.com>
4731
4732 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4733
4734 2014-06-02 Doug Evans <xdje42@gmail.com>
4735
4736 Add parameter support for Guile.
4737 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4738 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4739 (scm-param.o): New rule.
4740 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4741 (gdbscm_misc_error): Declare.
4742 (gdbscm_canonicalize_command_name): Declare.
4743 (gdbscm_scm_to_host_string): Declare.
4744 (gdbscm_scm_from_host_string): Declare.
4745 (gdbscm_initialize_parameters): Declare.
4746 * guile/guile.c (initialize_gdb_module): Call
4747 gdbscm_initialize_parameters.
4748 * guile/lib/gdb.scm: Export parameter symbols.
4749 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4750 cmdscm_canonicalize_name and made public. All callers updated.
4751 * guile/scm-exception.c (gdbscm_misc_error): New function.
4752 * guile/scm-param.c: New file.
4753 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4754 (gdbscm_scm_to_host_string): New function.
4755 (gdbscm_scm_from_host_string): New function.
4756 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4757
4758 2014-06-02 Doug Evans <xdje42@gmail.com>
4759
4760 Add command support for Guile.
4761 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4762 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4763 (scm-cmd.o): New rule.
4764 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4765 (gdbscm_user_error_p): Declare.
4766 (gdbscm_parse_command_name): Declare.
4767 (gdbscm_valid_command_class_p): Declare.
4768 (gdbscm_initialize_commands): Declare.
4769 * guile/guile.c (initialize_gdb_module): Call
4770 gdbscm_initialize_commands.
4771 * guile/lib/gdb.scm: Export command symbols.
4772 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4773 (throw-user-error): New function.
4774 * guile/scm-cmd.c: New file.
4775 * guile/scm-exception.c (user_error_symbol): New static global.
4776 (gdbscm_user_error_p): New function.
4777 (gdbscm_initialize_exceptions): Set user_error_symbol.
4778 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4779
4780 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4781
4782 * top.c (command_loop): Handle comments here...
4783 (command_line_input): ... not here.
4784
4785 2014-06-02 Doug Evans <xdje42@gmail.com>
4786
4787 Add progspace support for Guile.
4788 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4789 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4790 (scm-progspace.o): New rule.
4791 * guile/guile-internal.h (pspace_smob): New typedef.
4792 (psscm_pspace_smob_pretty_printers): Declare.
4793 (psscm_pspace_smob_from_pspace): Declare.
4794 (psscm_scm_from_pspace): Declare.
4795 * guile/guile.c (initialize_gdb_module): Call
4796 gdbscm_initialize_pspaces.
4797 * guile/lib/gdb.scm: Export progspace symbols.
4798 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4799 support.
4800 (append-pretty-printer!): Ditto.
4801 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4802 Implement.
4803 * guile/scm-progspace.c: New file.
4804
4805 2014-06-03 Alan Modra <amodra@gmail.com>
4806
4807 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4808 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4809
4810 2014-06-02 Doug Evans <dje@google.com>
4811
4812 Add support for skeletonless type units.
4813 * dwarf2read.c (struct dwarf2_per_objfile): New member
4814 n_allocated_type_units.
4815 (struct dwarf2_per_objfile) <tu_stats>: New member
4816 nr_all_type_units_reallocs.
4817 (create_signatured_type_table_from_index): Initialize
4818 n_allocated_type_units
4819 (create_all_type_units): Ditto.
4820 (add_type_unit): Move up in file. New arg slot.
4821 All callers updated. Increase space for all_type_units more
4822 efficiently.
4823 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4824 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4825 (lookup_dwp_signatured_type): Ditto.
4826 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4827 All callers updated.
4828 (build_type_psymtabs_1): Leave type_unit_groups as
4829 NULL if no TUs present.
4830 (print_tu_stats): New function.
4831 (process_skeletonless_type_unit): New function.
4832 (process_dwo_file_for_skeletonless_type_units): New
4833 function.
4834 (process_skeletonless_type_units): New function.
4835 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4836 Call print tu_stats if debugging enabled.
4837
4838 2014-06-02 Pedro Alves <palves@redhat.com>
4839
4840 * breakpoint.c (build_target_command_list): Don't build a command
4841 list if we have any duplicate location that isn't a dprintf.
4842
4843 2014-06-02 Pedro Alves <palves@redhat.com>
4844
4845 * breakpoint.c (dprintf_breakpoint_hit): New function.
4846 (initialize_breakpoint_ops): Install it as dprintf's
4847 breakpoint_hit method.
4848
4849 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4850
4851 * source.c (substitute_path_rule_matches): Simplify using
4852 filename_ncmp instead of FILENAME_CMP.
4853
4854 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4855
4856 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4857
4858 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4859
4860 * configure.ac: When Guile is available, check for the
4861 availability of 'scm_new_smob'.
4862 * configure, config.h.in: Regenerate.
4863 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4864 function.
4865
4866 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4867
4868 * frame.c (struct frame_info): Add stop_string field.
4869 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4870 (get_prev_frame_always): Old content moved into
4871 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4872 TRY_CATCH, handle MEMORY_ERROR exceptions.
4873 (frame_stop_reason_string): New function definition.
4874 * frame.h (unwind_stop_reason_to_string): Extend comment to
4875 mention frame_stop_reason_string.
4876 (frame_stop_reason_string): New function declaration.
4877 * stack.c (frame_info): Switch to frame_stop_reason_string.
4878 (backtrace_command_1): Switch to frame_stop_reason_string.
4879 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4880 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4881 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4882
4883 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4884
4885 * frame.c (frame_stop_reason_string): Rename to ...
4886 (unwind_stop_reason_to_string): this.
4887 * frame.h (frame_stop_reason_string): Rename to ...
4888 (unwind_stop_reason_to_string): this.
4889 * stack.c (frame_info): Update call to frame_stop_reason_string.
4890 (backtrace_command_1): Likewise.
4891 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4892 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4893
4894 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4895
4896 * frame.c (remove_prev_frame): New function.
4897 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4898 remove_prev_frame.
4899
4900 2014-05-29 Pedro Alves <palves@redhat.com>
4901
4902 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4903 and make it const. When a single-step decays to a continue,
4904 clear 'step', not 'hw_step'. Pass whether the caller wanted
4905 to step to user_visible_resume_ptid, not what we ask the
4906 target to do.
4907
4908 2014-05-29 Pedro Alves <palves@redhat.com>
4909
4910 * infrun.c (process_event_stop_test, handle_step_into_function)
4911 (handle_step_into_function_backward): Adjust.
4912 Don't set the even thread's stop_step and call stop_waiting before
4913 calling end_stepping_range. Instead do that ...
4914 (end_stepping_range): ... here. Take an ecs pointer parameter.
4915
4916 2014-05-29 Pedro Alves <palves@redhat.com>
4917
4918 * infrun.c (stop_stepping): Rename to ...
4919 (stop_waiting): ... this.
4920 (proceed): Update comment.
4921 (process_event_stop_test, handle_inferior_event)
4922 (handle_signal_stop, handle_step_into_function)
4923 (handle_step_into_function_backward): Update.
4924
4925 2014-05-29 Pedro Alves <palves@redhat.com>
4926
4927 * infcall.c (run_inferior_call): Don't check whether the current
4928 thread is running after the proceed call.
4929
4930 2014-05-29 Pedro Alves <palves@redhat.com>
4931 Tom Tromey <tromey@redhat.com>
4932
4933 * NEWS: Mention "maint set target-async", "set mi-async", and that
4934 background execution commands are now always available.
4935 * target.h (target_async_permitted): Update comment.
4936 * target.c (target_async_permitted, target_async_permitted_1):
4937 Default to 1.
4938 (set_target_async_command): Rename to ...
4939 (maint_set_target_async_command): ... this.
4940 (show_target_async_command): Rename to ...
4941 (maint_show_target_async_command): ... this.
4942 (_initialize_target): Adjust.
4943 * infcmd.c (prepare_execution_command): Make extern.
4944 * inferior.h (prepare_execution_command): Declare.
4945 * infrun.c (set_observer_mode): Leave target async alone.
4946 * mi/mi-interp.c (mi_interpreter_init): Install
4947 mi_on_sync_execution_done as sync_execution_done observer.
4948 (mi_on_sync_execution_done): New function.
4949 (mi_execute_command_input_handler): Don't print the prompt if we
4950 just started a synchronous command with an async target.
4951 (mi_on_resume): Check sync_execution before printing prompt.
4952 * mi/mi-main.h (mi_async_p): Declare.
4953 * mi/mi-main.c: Include gdbcmd.h.
4954 (mi_async_p): New function.
4955 (mi_async, mi_async_1): New globals.
4956 (set_mi_async_command, show_mi_async_command, mi_async): New
4957 functions.
4958 (exec_continue): Call prepare_execution_command.
4959 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4960 (mi_execute_async_cli_command): Use mi_async_p.
4961 (_initialize_mi_main): Install "set mi-async". Make
4962 "target-async" a deprecated alias.
4963
4964 2014-05-29 Pedro Alves <palves@redhat.com>
4965
4966 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4967 (_initialize_cli_interp): Adjust.
4968 * event-loop.c: Include "observer.h".
4969 (start_event_loop): Notify 'command_error' observers instead of
4970 calling display_gdb_prompt. Remove FIXME comment.
4971 * event-top.c (display_gdb_prompt): Remove call into the
4972 interpreters.
4973 * inf-loop.c: Include "observer.h".
4974 (inferior_event_handler): Notify 'command_error' observers instead
4975 of calling display_gdb_prompt.
4976 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4977 observers instead of calling display_gdb_prompt.
4978 * interps.c (interp_set): Don't call display_gdb_prompt.
4979 (current_interp_display_prompt_p): Delete.
4980 * interps.h (interp_prompt_p): Delete declaration.
4981 (interp_prompt_p_ftype): Delete.
4982 (struct interp_procs) <prompt_proc_p>: Delete field.
4983 (current_interp_display_prompt_p): Delete declaration.
4984 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4985 (_initialize_mi_interp): Adjust.
4986 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4987 'command_error' observers.
4988 (tui_on_sync_execution_done, tui_on_command_error): New
4989 functions.
4990 (tui_display_prompt_p): Delete.
4991 (_initialize_tui_interp): Adjust.
4992
4993 2014-05-29 Pedro Alves <palves@redhat.com>
4994
4995 PR gdb/13860
4996 * cli/cli-interp.c: Include infrun.h and observer.h.
4997 (cli_uiout, cli_interp): New globals.
4998 (cli_on_signal_received, cli_on_end_stepping_range)
4999 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5000 functions.
5001 (cli_interpreter_init): Install them as 'end_stepping_range',
5002 'signal_received' 'signal_exited', 'exited' and 'no_history'
5003 observers.
5004 (_initialize_cli_interp): Remove cli_interp local.
5005 * infrun.c (handle_inferior_event): Call the several stop reason
5006 observers instead of printing the stop reason directly.
5007 (end_stepping_range): New function.
5008 (print_end_stepping_range_reason, print_signal_exited_reason)
5009 (print_exited_reason, print_signal_received_reason)
5010 (print_no_history_reason): Make static, and add an uiout
5011 parameter. Print to that instead of to CURRENT_UIOUT.
5012 * infrun.h (print_end_stepping_range_reason)
5013 (print_signal_exited_reason, print_exited_reason)
5014 (print_signal_received_reason print_no_history_reason): New
5015 declarations.
5016 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5017 'mi_uiout'.
5018 <cli_uiout>: New field.
5019 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5020 uiout for CLI output. Install 'signal_received',
5021 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5022 observers.
5023 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5024 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5025 (mi_on_no_history): New functions.
5026 (ui_out_free_cleanup): Delete function.
5027 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5028 instead use the one already stored in the MI interpreter data.
5029 (mi_ui_out): Adjust.
5030 * tui/tui-interp.c: Include infrun.h and observer.h.
5031 (tui_interp): New global.
5032 (tui_on_signal_received, tui_on_end_stepping_range)
5033 (tui_on_signal_exited, tui_on_exited)
5034 (tui_on_no_history): New functions.
5035 (tui_init): Install them as 'end_stepping_range',
5036 'signal_received' 'signal_exited', 'exited' and 'no_history'
5037 observers.
5038 (_initialize_tui_interp): Delete tui_interp local.
5039
5040 2014-05-29 Pedro Alves <palves@redhat.com>
5041
5042 PR gdb/15713
5043 * linux-nat.c (linux_nat_resume_callback): Rename the second
5044 parameter to 'except'. Skip LP if it points to EXCEPT.
5045 (linux_nat_resume): Don't mark the event lwp as not stopped
5046 before resuming sibling lwps. Instead ask
5047 linux_nat_resume_callback to skip the event lwp. Mark it as not
5048 stopped after actually resuming it.
5049 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5050 resuming it.
5051 (wait_lwp): Mark the lwp as stopped here.
5052 (stop_wait_callback): Mark the lwp as not stopped right after
5053 resuming it. Don't mark lwps as stopped here.
5054 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5055 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5056
5057 2014-05-29 Pedro Alves <palves@redhat.com>
5058
5059 PR PR15693
5060 * infrun.c (resume): Determine how much to resume depending on
5061 whether the caller wanted a step, not whether we can hardware step
5062 the target. Mark all threads that we intend to run as running,
5063 unless we're calling an inferior function.
5064 (normal_stop): If the thread is running an infcall, don't finish
5065 thread state.
5066 * target.c (target_resume): Don't mark threads as running here.
5067
5068 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5069
5070 * serial.c (_initialize_serial): Remove support for
5071 the "set remotebaud" and "show remotebaud" commands.
5072 * NEWS: Add entry documenting the removal of that command.
5073
5074 2014-05-28 Yao Qi <yao@codesourcery.com>
5075
5076 * charset.c: Fix typo in comments.
5077
5078 2014-05-27 Gary Benson <gbenson@redhat.com>
5079
5080 * utils.c (internal_vproblem): Prompt for a bug report.
5081
5082 2014-05-26 Andy Wingo <wingo@igalia.com>
5083
5084 * guile/scm-arch.c (arscm_mark_arch_smob):
5085 * guile/scm-block.c (bkscm_mark_block_smob)
5086 (bkscm_mark_block_syms_progress_smob):
5087 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5088 * guile/scm-exception.c (exscm_mark_exception_smob):
5089 * guile/scm-frame.c (frscm_mark_frame_smob):
5090 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5091 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5092 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5093 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5094 (ppscm_mark_pretty_printer_worker_smob):
5095 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5096 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5097 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5098 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5099 mark functions.
5100 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5101 function.
5102
5103 2014-05-26 Andy Wingo <wingo@igalia.com>
5104 Doug Evans <xdje42@gmail.com>
5105
5106 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5107 empty_base_class. All uses updated.
5108 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5109 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5110 Adapt all callers.
5111 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5112 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5113 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5114 (gdbscm_gsmob_has_property_p, add_property_name)
5115 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5116 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5117 (gdb-object-has-property?, gdb-object-properties): Remove.
5118 (gdb-object-kind): Renamed from gsmob-kind.
5119
5120 2014-05-26 Andy Wingo <wingo@igalia.com>
5121
5122 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5123 * configure: Regenerate.
5124
5125 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5126
5127 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5128
5129 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5130
5131 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5132 (replay_memory_access_read_only, replay_memory_access_read_write)
5133 (replay_memory_access_types, replay_memory_access)
5134 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5135 (cmd_set_record_btrace, cmd_show_record_btrace)
5136 (cmd_show_replay_memory_access): New.
5137 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5138 (record_btrace_remove_breakpoint): Replace
5139 record_btrace_allow_memory_access with replay_memory_access.
5140 (_initialize_record_btrace): Add commands.
5141 * NEWS: Announce it.
5142
5143 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5144
5145 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5146
5147 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5148
5149 * MAINTAINERS (Write After Approval): Move self back from
5150 paper trail.
5151
5152 2014-05-22 Pedro Alves <palves@redhat.com>
5153
5154 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5155 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5156 (disable_randomization, enum exec_direction_kind)
5157 (execution_direction, stop_registers, start_remote)
5158 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5159 (wait_for_inferior, normal_stop, get_last_target_status)
5160 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5161 (insert_step_resume_breakpoint_at_sal)
5162 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5163 (set_step_info, print_stop_event, signal_stop_state)
5164 (signal_print_state, signal_pass_state, signal_stop_update)
5165 (signal_print_update, signal_pass_update)
5166 (update_signals_program_target, clear_exit_convenience_vars)
5167 (displaced_step_dump_bytes, update_observer_mode)
5168 (signal_catch_update, gdb_signal_from_command): Move
5169 declarations ...
5170 * infrun.h: ... to this new file.
5171 * amd64-tdep.c: Include infrun.h.
5172 * annotate.c: Include infrun.h.
5173 * arch-utils.c: Include infrun.h.
5174 * arm-linux-tdep.c: Include infrun.h.
5175 * arm-tdep.c: Include infrun.h.
5176 * break-catch-sig.c: Include infrun.h.
5177 * breakpoint.c: Include infrun.h.
5178 * common/agent.c: Include infrun.h instead of inferior.h.
5179 * corelow.c: Include infrun.h.
5180 * event-top.c: Include infrun.h.
5181 * go32-nat.c: Include infrun.h.
5182 * i386-tdep.c: Include infrun.h.
5183 * inf-loop.c: Include infrun.h.
5184 * infcall.c: Include infrun.h.
5185 * infcmd.c: Include infrun.h.
5186 * infrun.c: Include infrun.h.
5187 * linux-fork.c: Include infrun.h.
5188 * linux-nat.c: Include infrun.h.
5189 * linux-thread-db.c: Include infrun.h.
5190 * monitor.c: Include infrun.h.
5191 * nto-tdep.c: Include infrun.h.
5192 * procfs.c: Include infrun.h.
5193 * record-btrace.c: Include infrun.h.
5194 * record-full.c: Include infrun.h.
5195 * remote-m32r-sdi.c: Include infrun.h.
5196 * remote-mips.c: Include infrun.h.
5197 * remote-notif.c: Include infrun.h.
5198 * remote-sim.c: Include infrun.h.
5199 * remote.c: Include infrun.h.
5200 * reverse.c: Include infrun.h.
5201 * rs6000-tdep.c: Include infrun.h.
5202 * s390-linux-tdep.c: Include infrun.h.
5203 * solib-irix.c: Include infrun.h.
5204 * solib-osf.c: Include infrun.h.
5205 * solib-svr4.c: Include infrun.h.
5206 * target.c: Include infrun.h.
5207 * top.c: Include infrun.h.
5208 * windows-nat.c: Include infrun.h.
5209 * mi/mi-interp.c: Include infrun.h.
5210 * mi/mi-main.c: Include infrun.h.
5211 * python/py-threadevent.c: Include infrun.h.
5212
5213 2014-05-22 Pedro Alves <palves@redhat.com>
5214
5215 * infrun.c (handle_inferior_event): Store the exit code for
5216 --return-child-result here, instead of ...
5217 (print_exited_reason): ... here.
5218
5219 2014-05-21 Pedro Alves <palves@redhat.com>
5220
5221 PR gdb/13860
5222 * gdbthread.h (struct thread_control_state): New field
5223 `command_interp'.
5224 * infrun.c (follow_fork): Copy the new thread control field to the
5225 child fork thread.
5226 (clear_proceed_status_thread): Clear the new thread control field.
5227 (proceed): Set the new thread control field.
5228 * interps.h (command_interp): Declare.
5229 * interps.c (command_interpreter): New global.
5230 (command_interp): New function.
5231 (interp_exec): Set `command_interpreter' while here.
5232 * cli-out.c (cli_uiout_dtor): New function.
5233 (cli_ui_out_impl): Install it.
5234 * mi/mi-interp.c: Include cli-out.h.
5235 (mi_cmd_interpreter_exec): Add comment.
5236 (restore_current_uiout_cleanup): New function.
5237 (ui_out_free_cleanup): New function.
5238 (mi_on_normal_stop): If finishing an execution command started by
5239 a CLI command, or any kind of breakpoint-like event triggered,
5240 print the stop event to the output (CLI) stream.
5241 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5242
5243 2014-05-21 Pedro Alves <palves@redhat.com>
5244
5245 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5246 current source line having changed.
5247 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5248 * infrun.c (normal_stop): Adjust call to
5249 set_current_sal_from_frame.
5250 * source.c (clear_lines_listed_range): New function.
5251 (set_current_source_symtab_and_line, identify_source_line): Clear
5252 the lines listed range.
5253 (line_info): Handle the first "info line" after the current source
5254 line having changed.
5255 * stack.c (print_stack_frame): Remove center handling.
5256 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5257 center sal.line.
5258
5259 2014-05-21 Pedro Alves <palves@redhat.com>
5260
5261 * inf-child.c (inf_child_mourn_inferior): New function.
5262 * inf-child.h (inf_child_mourn_inferior): New declaration.
5263 * darwin-nat.c (darwin_mourn_inferior): Use
5264 inf_child_mourn_inferior.
5265 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5266 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5267 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5268 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5269 * windows-nat.c (windows_mourn_inferior): Likewise.
5270
5271 2014-05-21 Doug Evans <xdje42@gmail.com>
5272
5273 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5274
5275 2014-05-21 Doug Evans <xdje42@gmail.com>
5276
5277 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5278 (gdbscm_out_of_range_error): Ditto.
5279 (gdbscm_memory_error): Ditto.
5280 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5281 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5282 (gdbscm_out_of_range_error): Update.
5283 (gdbscm_memory_error): Update.
5284 (gdbscm_scm_to_target_string_unsafe): Delete.
5285
5286 2014-05-21 Pedro Alves <palves@redhat.com>
5287
5288 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5289 globals.
5290 (inf_child_open_target): New function.
5291 (inf_child_open): Use inf_child_open_target to push the target
5292 instead of erroring out.
5293 (inf_child_disconnect, inf_child_close)
5294 (inf_child_maybe_unpush_target): New functions.
5295 (inf_child_target): Install inf_child_disconnect and
5296 inf_child_close. Store a pointer to the returned object.
5297 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5298 declarations.
5299 * target.c (auto_connect_native_target): New global.
5300 (show_default_run_target): New function.
5301 (find_default_run_target): Return NULL if automatically connecting
5302 to the native target is disabled.
5303 (_initialize_target): Install set/show auto-connect-native-target.
5304 * NEWS: Mention "set auto-connect-native-target", and "target
5305 native".
5306 * linux-nat.c (super_close): New global.
5307 (linux_nat_close): Call super_close.
5308 (linux_nat_add_target): Store a pointer to the base class's
5309 to_close method.
5310 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5311 inf_child_maybe_unpush.
5312 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5313 already pushed.
5314 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5315 the inferior. Use inf_child_maybe_unpush_target.
5316 (inf_ttrace_attach): Don't push the target if it is already
5317 pushed.
5318 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5319 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5320 after mourning the inferior. Use inf_child_maybe_unpush_target.
5321 (darwin_attach_pid): Don't push the target if it is already
5322 pushed.
5323 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5324 mourning the inferior. Use inf_child_maybe_unpush_target.
5325 (gnu_detach): Use inf_child_maybe_unpush_target.
5326 * go32-nat.c (go32_create_inferior): Don't push the target if it
5327 is already pushed.
5328 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5329 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5330 (procfs_open): Rename to ...
5331 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5332 comments. Can target_preopen before changing node. Call
5333 inf_child_open_target to push the target explicitly.
5334 (procfs_attach): Don't push the target if it is already pushed.
5335 (procfs_detach): Use inf_child_maybe_unpush_target.
5336 (procfs_create_inferior): Don't push the target if it is already
5337 pushed.
5338 (nto_native_ops): New global.
5339 (procfs_open): Reimplement.
5340 (procfs_native_open): New function.
5341 (init_procfs_targets): Install procfs_native_open as to_open of
5342 "target native". Store a pointer to the "native" target in
5343 nto_native_ops.
5344 * procfs.c (procfs_attach): Don't push the target if it is already
5345 pushed.
5346 (procfs_detach): Use inf_child_maybe_unpush_target.
5347 (procfs_mourn_inferior): Only unpush the target after mourning the
5348 inferior. Use inf_child_maybe_unpush_target.
5349 (procfs_init_inferior): Don't push the target if it is already
5350 pushed.
5351 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5352 if it is already pushed.
5353
5354 2014-05-21 Pedro Alves <palves@redhat.com>
5355
5356 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5357 and "procfs" targets are now called "native" instead.
5358
5359 2014-05-21 Pedro Alves <palves@redhat.com>
5360
5361 * go32-nat.c (go32_open): Delete.
5362 (go32_target): Don't override the to_open method.
5363
5364 2014-05-21 Pedro Alves <palves@redhat.com>
5365
5366 * nto-procfs.c (procfs_can_run): New function.
5367 (nto_procfs_ops): New global.
5368 (init_procfs_targets): New, based on procfs_target. Install
5369 "target native" in addition to "target procfs".
5370 (_initialize_procfs): Call init_procfs_targets instead of adding
5371 the target here.
5372
5373 2014-05-21 Pedro Alves <palves@redhat.com>
5374
5375 * windows-nat.c (windows_target): Don't override to_shortname,
5376 to_longname or to_doc.
5377
5378 2014-05-21 Pedro Alves <palves@redhat.com>
5379
5380 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5381 to_doc.
5382
5383 2014-05-21 Pedro Alves <palves@redhat.com>
5384
5385 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5386 to_shortname, to_longname or to_doc.
5387
5388 2014-05-21 Pedro Alves <palves@redhat.com>
5389
5390 * go32-nat.c (go32_target): Don't override to_shortname,
5391 to_longname or to_doc.
5392
5393 2014-05-21 Pedro Alves <palves@redhat.com>
5394
5395 * inf-child.c (inf_child_open): Remove mention of "child".
5396 (inf_child_target): Rename target to "native" instead of "child".
5397
5398 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5399
5400 * Makefile.in (SFILES): Delete "regset.c".
5401 (COMMON_OBS): Delete "regset.o".
5402 * regset.c: Remove.
5403 * regset.h (regset_alloc): Delete prototype.
5404
5405 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5406
5407 * sparc-linux-tdep.c (sparc32_linux_gregset)
5408 (sparc32_linux_fpregset): New static regset structures.
5409 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5410 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5411 'fpregset' fields.
5412 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5413 (sparc64_linux_fpregset): New static regset structures.
5414 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5415 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5416 New static regset structures.
5417 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5418 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5419 New static regset structures.
5420 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5421 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5422 New static regset structures.
5423 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5424 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5425 New static regset structures.
5426 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5427
5428 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5429
5430 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5431 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5432 register maps ("regmaps") from "*regset" to "*regmap". Do this
5433 for all regmap types and variables.
5434 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5435 (sparc32_linux_supply_core_gregset)
5436 (sparc32_linux_collect_core_gregset)
5437 (sparc32_linux_supply_core_fpregset)
5438 (sparc32_linux_collect_core_fpregset): Likewise.
5439 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5440 (sparc_gregmap, sparc_fpregmap): ... these.
5441 (sparc_supply_gregset, sparc_collect_gregset)
5442 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5443 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5444 (_initialize_sparc_nat): Rename regmaps.
5445 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5446 (sparc_gregmap, sparc_fpregmap): ... these.
5447 (sparc_supply_gregset, sparc_collect_gregset)
5448 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5449 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5450 Rename macros to...
5451 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5452 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5453 Likewise.
5454 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5455 Rename to...
5456 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5457 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5458 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5459 regmaps.
5460 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5461 (sparc32_bsd_fpregset): Rename to...
5462 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5463 (sparc32_bsd_fpregmap): ... these.
5464 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5465 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5466 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5467 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5468 (struct sparc_gregmap, struct sparc_fpregmap)
5469 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5470 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5471 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5472 (sparc32_supply_regset, sparc32_collect_gregset)
5473 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5474 prototypes.
5475 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5476 (sparc64_linux_ptrace_gregmap): ... this.
5477 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5478 (_initialize_sparc64_linux_nat): Rename regmaps.
5479 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5480 (sparc64_linux_core_gregmap): ... this.
5481 (sparc64_linux_supply_core_gregset)
5482 (sparc64_linux_collect_core_gregset)
5483 (sparc64_linux_supply_core_fpregset)
5484 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5485 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5486 (sparc64_sol2_fpregset): Rename to...
5487 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5488 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5489 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5490 regmaps.
5491 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5492 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5493 (sparc64_bsd_fpregset): Rename to...
5494 (struct sparc_gregmap, sparc64_sol2_gregmap)
5495 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5496 (sparc64_bsd_fpregmap): ... these.
5497 (sparc64_supply_gregset, sparc64_collect_gregset)
5498 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5499 prototypes.
5500 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5501 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5502 (sparc64fbsd_gregmap): ... this.
5503 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5504 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5505 Rename regmaps.
5506 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5507 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5508 (sparc64nbsd_collect_fpregset): Likewise.
5509 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5510 (sparc64nbsd_gregmap): ... this.
5511 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5512 regmaps.
5513 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5514 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5515 (sparc64obsd_gregmap): ... this.
5516 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5517 regmaps.
5518 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5519 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5520 (sparc32nbsd_gregmap): ... this.
5521 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5522 regmaps.
5523
5524 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5525
5526 * score-tdep.c (score7_linux_gregset): New static regset
5527 structure.
5528 (score7_linux_regset_from_core_section): Remove dynamic regset
5529 allocation.
5530 (score_gdbarch_init): Drop allocation of tdep structure.
5531 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5532
5533 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5534
5535 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5536 regset structures.
5537 (am33_regset_from_core_section): Remove dynamic regset
5538 allocations.
5539
5540 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5541
5542 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5543 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5544 structures.
5545 (mips_linux_regset_from_core_section): Remove dynamic regset
5546 allocations.
5547 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5548 'gregset64', 'fpregset', and 'fpregset64'.
5549 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5550 deleted tdep fields.
5551
5552 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5553
5554 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5555 regset structures.
5556 (amd64_regset_from_core_section): Remove dynamic regset
5557 allocations.
5558 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5559 structure.
5560 (amd64obsd_regset_from_core_section): Remove dynamic regset
5561 allocation.
5562 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5563 Likewise.
5564 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5565 x86-common regset supply function.
5566 * i386-tdep.c (i386_collect_gregset): Make static.
5567 (i386_gregset): New global regset structure.
5568 (i386_fpregset, i386_xstateregset): New static regset structures.
5569 (i386_regset_from_core_section): Remove dynamic regset
5570 allocations.
5571 (i386_gdbarch_init): Remove initialization of tdep fields
5572 'gregset', 'fpregset', and 'xstateregset'.
5573 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5574 'fpregset', and 'xstateregset'.
5575 (i386_collect_gregset): Remove prototype.
5576 (i386_gregset): New declaration.
5577 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5578 structure.
5579 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5580 allocation.
5581
5582 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5583
5584 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5585 (arm_linux_vfpregset): New static regset structures.
5586 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5587 regset structures.
5588 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5589 and 'vfpregset' fields.
5590
5591 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5592
5593 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5594 (aarch64_linux_fpregset): New static regset structures.
5595 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5596 of regset structures.
5597 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5598 'fpregset' fields.
5599
5600 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5601
5602 * regset.h (struct regset): Remove gdbarch field.
5603 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5604 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5605 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5606 Likewise.
5607 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5608 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5609 (ppc32_linux_vsxregset): Likewise.
5610 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5611 via the regcache instead of the regset.
5612 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5613 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5614 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5615 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5616 Likewise.
5617
5618 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5619
5620 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5621 Constify structures.
5622 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5623 (alphanbsd_aout_gregset): Likewise.
5624 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5625 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5626 Likewise.
5627 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5628 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5629 Likewise.
5630 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5631 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5632 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5633 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5634 * m88k-tdep.c (m88k_gregset): Likewise.
5635 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5636 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5637 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5638 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5639 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5640 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5641 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5642 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5643 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5644 Likewise.
5645 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5646 * sh-tdep.h (sh_corefile_gregset): Likewise.
5647 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5648 * vax-tdep.c (vax_gregset): Likewise.
5649
5650 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5651
5652 Fix TLS access for -static -pthread.
5653 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5654 (try_thread_db_load_1): Initialize it.
5655 (thread_db_get_thread_local_address): Call it if LM is zero.
5656 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5657 * target.h (struct target_ops) (to_get_thread_local_address): Add
5658 load_module_addr comment.
5659
5660 2014-05-21 Pedro Alves <palves@redhat.com>
5661
5662 * dcache.c (dcache_read_memory_partial): If reading the cache line
5663 fails, fallback to reading just the memory the caller wanted.
5664
5665 2014-05-20 Doug Evans <dje@google.com>
5666
5667 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5668 instead of get_current_arch.
5669
5670 2014-05-20 Pedro Alves <palves@redhat.com>
5671
5672 * NEWS: Mention that compare-sections now works with all targets.
5673
5674 * remote.c (PACKET_qCRC): New enum value.
5675 (remote_verify_memory): Don't send qCRC if the target has no
5676 execution. Use packet_support/packet_ok. If the target doesn't
5677 support the qCRC packet, fallback to a deep memory copy.
5678 (compare_sections_command): Say "target image" instead of "remote
5679 executable".
5680 (_initialize_remote): Add PACKET_qCRC to the list of config
5681 packets that have no associated command. Extend comment.
5682 * target.c (simple_verify_memory, default_verify_memory): New
5683 function.
5684 * target.h (struct target_ops) <to_verify_memory>: Default to
5685 default_verify_memory.
5686 (simple_verify_memory): New declaration.
5687 * target-delegates.c: Regenerate.
5688
5689 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5690
5691 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5692
5693 2014-05-20 Hui Zhu <hui@codesourcery.com>
5694 Yao Qi <yao@codesourcery.com>
5695
5696 PR backtrace/16558
5697 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5698 and change address of sp and pc.
5699
5700 2014-05-19 Tom Tromey <tromey@redhat.com>
5701
5702 * gdbtypes.c (rank_function): Use XNEWVEC.
5703 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5704
5705 2014-05-19 Doug Evans <dje@google.com>
5706
5707 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5708 build_type_unit_groups and moved closer to only caller. Remove
5709 arguments. All references updated. Remove outdated .gdb_index
5710 comment.
5711 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5712 build_type_psymtabs_1.
5713
5714 2014-05-19 Doug Evans <dje@google.com>
5715
5716 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5717 n_type_unit_groups, all_type_unit_groups. All uses removed.
5718 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5719 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5720 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5721 (add_type_unit_group_to_table): Delete.
5722
5723 2014-05-19 Doug Evans <dje@google.com>
5724
5725 * eval.c (evaluate_subexp_standard): Add some comments.
5726
5727 2014-05-17 Doug Evans <xdje42@gmail.com>
5728
5729 * progspace.c (remove_program_space): Delete, unused.
5730 * progspace.h (remove_program_space): Ditto.
5731
5732 2014-05-17 Doug Evans <xdje42@gmail.com>
5733
5734 * inferior.c (prune_inferiors): Fix comment.
5735 (remove_inferior_command): Call prune_program_spaces.
5736
5737 2014-05-16 Doug Evans <dje@google.com>
5738
5739 New command line option -D.
5740 * NEWS: Mention it.
5741 * main.c (set_gdb_data_directory): New function.
5742 (captured_main): Recognize -D. Flag error for --data-directory "".
5743 Call set_gdb_data_directory.
5744 (print_gdb_help): Print --data-directory, -D.
5745 * main.h (set_gdb_data_directory): Declare.
5746 * top.c (staged_gdb_datadir): New static global.
5747 (set_gdb_datadir): Call set_gdb_data_directory
5748 (show_gdb_datadir): New function.
5749 (init_main): Update init of data-directory parameter.
5750
5751 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5752
5753 Import the "dirfd" gnulib module.
5754 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5755 * gnulib/aclocal.m4: Update.
5756 * gnulib/config.in: Update.
5757 * gnulib/configure: Update.
5758 * gnulib/import/Makefile.am: Update.
5759 * gnulib/import/Makefile.in: Update.
5760 * gnulib/import/dirfd.c: New.
5761 * gnulib/import/m4/dirfd.m4: New.
5762 * gnulib/import/m4/gnulib-cache.m4: Update.
5763 * gnulib/import/m4/gnulib-comp.m4: Update.
5764
5765 2014-05-16 Pierre Muller <muller@sourceware.org>
5766 Yao Qi <yao@codesourcery.com>
5767
5768 * valprint.c (print_wchar): Move the code on checking whether
5769 W is a printable wide char to the default branch of switch
5770 statement below. Call wchar_printable instead of gdb_iswprint.
5771
5772 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5773
5774 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5775 ldr.w and ldrd instructions.
5776
5777 2014-05-15 Doug Evans <dje@google.com>
5778
5779 * dwarf2read.c (read_structure_type): Delete outdated comments.
5780
5781 2014-05-14 Tom Tromey <tromey@redhat.com>
5782
5783 * macrocmd.c (print_macro_definition): Reindent.
5784
5785 2014-05-13 Doug Evans <xdje42@gmail.com>
5786
5787 * python/py-cmd.c (cmdpy_completer): Add comment.
5788 (completers): Make const.
5789
5790 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5791
5792 * infrun.c (resume): Remove should_resume (unused). Move up
5793 declaration of resume_ptid.
5794
5795 2014-05-13 Tom Tromey <tromey@redhat.com>
5796
5797 * language.h (unop_type_check): Remove.
5798 (binop_type_check): Don't declare.
5799
5800 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5801
5802 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5803 call to regcache_raw_collect.
5804
5805 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5806
5807 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5808 mi_console->quote as the quoting character.
5809
5810 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5811
5812 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5813
5814 2014-04-29 Tom Tromey <tromey@redhat.com>
5815
5816 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5817 "show debug varobj".
5818
5819 2014-05-07 Kyle McMartin <kyle@redhat.com>
5820
5821 Pushed by Joel Brobecker <brobecker@adacore.com>.
5822 * aarch64-tdep.c (aarch64_software_single_step): New function.
5823 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5824 with aarch64_software_single_step.
5825
5826 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5827
5828 GDB 7.7.1 released.
5829
5830 2014-05-05 Keith Seitz <keiths@redhat.com>
5831
5832 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5833 variable or history value is successfully parsed.
5834
5835 2014-05-05 Yao Qi <yao@codesourcery.com>
5836 Pedro Alves <palves@redhat.com>
5837
5838 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5839 address of blocks that intersects the requested range. Trim
5840 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5841 sections.
5842 * ctf.c (ctf_xfer_partial): Likewise.
5843
5844 2014-05-05 Yao Qi <yao@codesourcery.com>
5845
5846 * printcmd.c (display_command): Remove the check to
5847 target_has_execution.
5848
5849 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5850
5851 * ppcobsd-nat.c: Include "obsd-nat.h".
5852 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5853 add_target.
5854 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5855
5856 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5857
5858 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5859 and 16-bit signed and unsigned arguments. Update comment.
5860 (stap_parse_probe_arguments): Extend code to handle such
5861 arguments. Use warning instead of complaint to notify about
5862 unrecognized bitness.
5863
5864 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5865
5866 PR breakpoints/16889
5867 * stap-probe.c (stap_parse_probe_arguments): Simplify
5868 check for non-prefixed probes (i.e., probes whose
5869 arguments do not start with "N@"). Always set the
5870 argument type to a sane value.
5871
5872 2014-05-01 David Taylor <dtaylor@emc.com>
5873
5874 * remote.c (compare_sections_command): Add -r option to compare
5875 all loadable read-only sections.
5876
5877 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5878
5879 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5880 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5881 Update all callers.
5882 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5883 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5884 Remove unused CORE_ADDR argument. Update all callers.
5885
5886 2014-04-29 Pedro Alves <palves@redhat.com>
5887
5888 * remote.c (struct packet_config) <detect>: Extend comment.
5889 (add_packet_config_cmd): Don't set the config's detect or support
5890 fields here.
5891 (init_all_packet_configs): Also initialize the config's 'detect'
5892 field.
5893 (reset_all_packet_configs_support): New function.
5894 (remote_open_1): Call reset_all_packet_configs_support instead of
5895 init_all_packet_configs.
5896 (_initialize_remote): Initialize all packet configs. Assert that
5897 all packets have an associated command, except a few known
5898 outliers.
5899
5900 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5901
5902 * dwarf2read.c (read_subrange_type): Handle dynamic
5903 DW_AT_lower_bound attributes.
5904
5905 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5906
5907 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5908 dynamic bounds before computing its upper bound.
5909 (ada_discrete_type_low_bound): Same as above with the lower bound.
5910
5911 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5912
5913 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5914 range types. Adjust the array handling implementation to
5915 take advantage of this change.
5916 (resolve_dynamic_range): New function, mostly extracted from
5917 resolve_dynamic_bounds.
5918 (resolve_dynamic_array): New function, mostly extracted from
5919 resolve_dynamic_bounds.
5920 (resolve_dynamic_bounds): Delete.
5921 (resolve_dynamic_type): Reimplement. Add handling of
5922 TYPE_CODE_RANGE types.
5923
5924 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5925
5926 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5927 handling of parallel ___XA types.
5928
5929 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5930
5931 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5932 unnecessary second call to static_unwrap_type.
5933
5934 2014-04-27 Hui Zhu <hui@codesourcery.com>
5935
5936 * stack.c (print_frame_info): Call do_gdb_disassembly with
5937 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5938
5939 2014-04-26 Doug Evans <xdje42@gmail.com>
5940
5941 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5942
5943 2014-04-25 Pedro Alves <palves@redhat.com>
5944
5945 PR server/16255
5946 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5947 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5948 and newline from built string.
5949 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5950 (linux_ptrace_attach_fail_reason): ... this.
5951 * linux-nat.c (linux_nat_attach): Adjust to use
5952 linux_ptrace_attach_fail_reason.
5953
5954 2014-04-25 Pedro Alves <palves@redhat.com>
5955
5956 * remote.c (struct remote_state): Remove multi_process_aware,
5957 non_stop_aware, cond_tracepoints, cond_breakpoints,
5958 breakpoint_commands, fast_tracepoints, static_tracepoints,
5959 install_in_trace, disconnected_tracing,
5960 enable_disable_tracepoints, string_tracing, and
5961 augmented_libraries_svr4_read fields.
5962 (remote_multi_process_p): Move further below in the file.
5963 (struct packet_config): Add comments.
5964 (update_packet_config): Delete function.
5965 (show_packet_config_cmd): Use packet_config_support.
5966 (add_packet_config_cmd): Use NULL as set callback.
5967 (packet_ok): "set remote foo-packet"-style commands no longer
5968 change config->supported -- adjust.
5969 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5970 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5971 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5972 (PACKET_QNonStop, PACKET_multiprocess_feature)
5973 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5974 (PACKET_DisconnectedTracing_feature)
5975 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5976 (set_remote_protocol_packet_cmd): Delete function.
5977 (packet_config_support, packet_support): New functions.
5978 (set_remote_protocol_Z_packet_cmd): Don't call
5979 update_packet_config.
5980 (remote_query_attached, remote_pass_signals)
5981 (remote_program_signals, remote_threads_info)
5982 (remote_threads_extra_info, remote_start_remote): Use
5983 packet_support.
5984 (remote_start_remote): Use packet_config_support and
5985 packet_support.
5986 (init_all_packet_configs): Set all packets to unknown support,
5987 instead of calling update_packet_config.
5988 (remote_check_symbols): Use packet_support.
5989 (remote_supported_packet): Unconditionally set the packet config's
5990 support status.
5991 (remote_multi_process_feature, remote_non_stop_feature)
5992 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5993 (remote_breakpoint_commands_feature)
5994 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5995 (remote_install_in_trace_feature)
5996 (remote_disconnected_tracing_feature)
5997 (remote_enable_disable_tracepoint_feature)
5998 (remote_string_tracing_feature)
5999 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6000 (remote_protocol_features): Adjust to use remote_supported_packet
6001 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6002 "ConditionalTracepoints", "ConditionalBreakpoints",
6003 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6004 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6005 "EnableDisableTracepoints", and "tracenz".
6006 (remote_query_supported): Use packet_support.
6007 (remote_open_1): Adjust.
6008 (extended_remote_attach_1): Use packet_support. Switch on the
6009 result of packet_ok instead of checking whether the packet ended
6010 up disabled.
6011 (remote_vcont_resume): Use packet_support.
6012 (remote_resume, remote_stop_ns, fetch_register_using_p)
6013 (remote_prepare_to_store, store_register_using_P)
6014 (check_binary_download, remote_write_bytes): Use packet_support.
6015 (remote_vkill): Use packet_support. Switch on the result of
6016 packet_ok instead of checking whether the packet ended up
6017 disabled.
6018 (extended_remote_supports_disable_randomization): Use
6019 packet_support.
6020 (extended_remote_run): Switch on the result of packet_ok instead
6021 of checking whether the packet ended up disabled.
6022 (remote_insert_breakpoint, remote_remove_breakpoint)
6023 (remote_insert_watchpoint, remote_remove_watchpoint)
6024 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6025 packet_support.
6026 (remote_search_memory): Use packet_config_support.
6027 (remote_get_thread_local_address, remote_get_tib_address)
6028 (remote_hostio_send_command, remote_can_execute_reverse): Use
6029 packet_support.
6030 (remote_supports_cond_tracepoints)
6031 (remote_supports_cond_breakpoints)
6032 (remote_supports_fast_tracepoints)
6033 (remote_supports_static_tracepoints)
6034 (remote_supports_install_in_trace)
6035 (remote_supports_enable_disable_tracepoint)
6036 (remote_supports_string_tracing)
6037 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6038 the packet config says the feature is enabled or disabled.
6039 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6040 (remote_get_trace_status): Use packet_support.
6041 (remote_set_disconnected_tracing): Adjust to check whether the
6042 feature is enabled with packet_support.
6043 (remote_set_trace_buffer_size, remote_use_agent)
6044 (remote_can_use_agent, remote_supports_btrace): Use
6045 packet_support.
6046 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6047 Use packet_config_support.
6048 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6049 the packet config says the feature is enabled or disabled.
6050 (set_range_stepping): Use packet_support.
6051
6052 2014-04-25 Tom Tromey <tromey@redhat.com>
6053
6054 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6055 argument.
6056
6057 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6058
6059 * NEWS: Mention support for C99 variable length arrays.
6060
6061 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6062
6063 * ada-lang.c (standard_exc): Expand introductory comment.
6064
6065 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6066 Walfred Tedeschi <walfred.tedeschi@intel.com>
6067
6068 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6069 AVX512 registers.
6070 (amd64_linux_read_description): Add code to handle AVX512 xstate
6071 mask and return respective tdesc.
6072 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6073 and features/i386/x32-avx512-linux.c.
6074 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6075 (amd64_linux_core_read_description): Add code to handle AVX512
6076 xstate mask and return respective tdesc.
6077 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6078 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6079 calculation.
6080 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6081 (tdesc_amd64_avx512_linux): New prototype.
6082 (tdesc_x32_avx512_linux): Likewise.
6083 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6084 features/i386/x32-avx512.c.
6085 (amd64_ymm_avx512_names): New register names for pseudo
6086 registers YMM16-31.
6087 (amd64_ymmh_avx512_names): New register names for raw registers
6088 YMMH16-31.
6089 (amd64_k_names): New register names for K registers.
6090 (amd64_zmmh_names): New register names for ZMM raw registers.
6091 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6092 (amd64_xmm_avx512_names): New register names for XMM16-31
6093 registers.
6094 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6095 registers.
6096 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6097 if feature is present.
6098 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6099 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6100 (AMD64_NUM_REGS): Adjust to new number of registers.
6101 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6102 registers supplied via XSTATE by AVX512 registers.
6103 (i386_linux_read_description): Add case for AVX512.
6104 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6105 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6106 (i386_linux_core_read_description): Add case for AVX512.
6107 (i386_linux_init_abi): Install supported register note section
6108 for AVX512.
6109 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6110 AVX512.
6111 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6112 registers to be number of zmm7h + 1.
6113 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6114 * i386-tdep.c: Include features/i386/i386-avx512.c.
6115 (i386_zmm_names): Add ZMM pseudo register names array.
6116 (i386_zmmh_names): Add ZMM raw register names array.
6117 (i386_k_names): Add K raw register names array.
6118 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6119 registers. AVX512 has 16 more ZMM registers than there are YMM
6120 registers.
6121 (i386_zmmh_regnum_p): Add function to look up register number of
6122 ZMM raw registers.
6123 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6124 (i386_k_regnum_p): Likewise for K raw registers.
6125 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6126 registers added by AVX512.
6127 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6128 registers added by AVX512.
6129 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6130 added by AVX512.
6131 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6132 (i386_pseudo_register_name): Add ZMM pseudo registers.
6133 (i386_zmm_type): Construct and return vector registers type for ZMM
6134 registers.
6135 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6136 ZMM0-31 pseudo registers and K registers.
6137 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6138 and YMM16-31 registers from register cache.
6139 (i386_pseudo_register_write): Add code to write K, ZMM and
6140 YMM16-31 registers.
6141 (i386_register_reggroup_p): Add code to include/exclude AVX512
6142 registers in/from respective register groups.
6143 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6144 registers if feature is present in xcr0.
6145 (i386_gdbarch_init): Add code to initialize AVX512 feature
6146 variables in tdep structure, wire in pseudo registers and call
6147 initialize_tdesc_i386_avx512.
6148 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6149 variables.
6150 (i386_regnum): Add AVX512 registers.
6151 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6152 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6153 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6154 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6155 512 bits wide.
6156 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6157 (i386_ymm_avx512_regnum_p): Likewise.
6158 (i386_k_regnum_p): Likewise.
6159 (i386_zmm_regnum_p): Likewise.
6160 (i386_zmmh_regnum_p): Likewise.
6161 * i387-tdep.c : Update year in copyright notice.
6162 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6163 XSAVE buffer.
6164 (XSAVE_YMM_AVX512_ADDR): New macro.
6165 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6166 XSAVE buffer.
6167 (XSAVE_XMM_AVX512_ADDR): New macro.
6168 (xsave_avx512_k_offset): New table for K register offsets in
6169 XSAVE buffer.
6170 (XSAVE_AVX512_K_ADDR): New macro.
6171 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6172 in XSAVE buffer.
6173 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6174 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6175 buffer.
6176 (i387_collect_xsave): Add code to collect AVX512 registers from
6177 XSAVE buffer.
6178 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6179 of XMM16-31 registers.
6180 (I387_NUM_K_REGS): New define for number of K registers.
6181 (I387_K0_REGNUM): New define for K0 register number.
6182 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6183 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6184 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6185 registers.
6186 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6187 (I387_XMM16_REGNUM): New define for XMM16 register number.
6188 (I387_YMM0_REGNUM): New define for YMM0 register number.
6189 (I387_KEND_REGNUM): New define for last K register number.
6190 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6191 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6192 number.
6193 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6194 number.
6195 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6196 size.
6197 * features/Makefile: Add AVX512 related files.
6198 * features/i386/32bit-avx512.xml: New file.
6199 * features/i386/64bit-avx512.xml: Likewise.
6200 * features/i386/amd64-avx512-linux.c: Likewise.
6201 * features/i386/amd64-avx512-linux.xml: Likewise.
6202 * features/i386/amd64-avx512.c: Likewise.
6203 * features/i386/amd64-avx512.xml: Likewise.
6204 * features/i386/i386-avx512-linux.c: Likewise.
6205 * features/i386/i386-avx512-linux.xml: Likewise.
6206 * features/i386/i386-avx512.c: Likewise.
6207 * features/i386/i386-avx512.xml: Likewise.
6208 * features/i386/x32-avx512-linux.c: Likewise.
6209 * features/i386/x32-avx512-linux.xml: Likewise.
6210 * features/i386/x32-avx512.c: Likewise.
6211 * features/i386/x32-avx512.xml: Likewise.
6212 * regformats/i386/amd64-avx512-linux.dat: New file.
6213 * regformats/i386/amd64-avx512.dat: Likewise.
6214 * regformats/i386/i386-avx512-linux.dat: Likewise.
6215 * regformats/i386/i386-avx512.dat: Likewise.
6216 * regformats/i386/x32-avx512-linux.dat: Likewise.
6217 * regformats/i386/x32-avx512.dat: Likewise.
6218 * NEWS: Add note about new support for AVX512.
6219
6220
6221 2014-04-23 Pedro Alves <palves@redhat.com>
6222
6223 * breakpoint.c (insert_bp_location): Tolerate errors if the
6224 breakpoint is set in a user-loaded objfile.
6225 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6226 location is marked shlib_disabled. If the breakpoint is set in a
6227 user-loaded objfile is a GDB-side memory breakpoint, validate it
6228 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6229 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6230 flag.
6231 * mem-break.c (memory_validate_breakpoint): New function.
6232 * objfiles.c (userloaded_objfile_contains_address_p): New
6233 function.
6234 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6235 * target.h (memory_validate_breakpoint): New declaration.
6236
6237 2014-04-23 Pedro Alves <palves@redhat.com>
6238
6239 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6240 the breakpoint is set in a shared library, only suppress
6241 errors for software breakpoints, not hardware breakpoints.
6242
6243 2014-04-22 Pedro Alves <palves@redhat.com>
6244
6245 * infrun.c (schedlock_applies): New function, factored out from
6246 find_thread_needs_step_over.
6247 (find_thread_needs_step_over): Use it.
6248 (switch_back_to_stepped_thread): Always clear trap_expected if the
6249 step over is finished. Return early if scheduler locking applies.
6250 Look for the stepping thread and a potential step-over thread with
6251 a single loop.
6252 (currently_stepping_or_nexting_callback): Delete.
6253
6254 2014-04-22 Nick Clifton <nickc@redhat.com>
6255
6256 * NEWS: Mention that ARM sim now supports tracing.
6257
6258 2014-04-22 Yao Qi <yao@codesourcery.com>
6259
6260 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6261 to ...
6262 * tracefile.c (tracefile_fetch_registers): ... it. New
6263 function.
6264 * tracefile.h (tracefile_fetch_registers): Declare.
6265 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6266 tracefile_fetch_registers.
6267
6268 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6269
6270 PR gdb/14018
6271 * windows-nat.c (thread_rec): Don't display a warning when
6272 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6273 fails for any reason, set th->suspended to -1, so that we don't
6274 try to resume such a thread. Also, don't return NULL in these
6275 cases, to avoid completely ruin the session due to "PC register is
6276 not available" error.
6277 (do_windows_fetch_inferior_registers): Check errors in
6278 GetThreadContext call.
6279 (windows_continue): Accept an additional argument KILLED; if not
6280 zero, ignore errors in the SetThreadContext call, since the
6281 inferior was killed and is shutting down.
6282 (windows_resume, get_windows_debug_event)
6283 (windows_create_inferior, windows_mourn_inferior)
6284 (windows_kill_inferior): All callers of windows_continue changed
6285 to adjust to its new calling sequence.
6286
6287 2014-04-19 Yao Qi <yao@codesourcery.com>
6288
6289 * ctf.c (ctf_open): Call post_create_inferior.
6290
6291 2014-04-19 Yao Qi <yao@codesourcery.com>
6292
6293 * ctf.c (handle_id): New static variable.
6294 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6295 value. Get the declaration of event "register" and get length
6296 of field "contents".
6297
6298 2014-04-19 Yao Qi <yao@codesourcery.com>
6299
6300 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6301
6302 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6303
6304 * valops.c (oload_method_static): Remove unnecessary argument
6305 METHOD. Update all callers.
6306
6307 2014-04-18 Pedro alves <palves@redhat.com>
6308 Tom Tromey <tromey@redhat.com>
6309
6310 PR backtrace/15558
6311 * frame.c (get_prev_frame_1): Rename to ...
6312 (get_prev_frame_always): ... this, and make extern. Adjust.
6313 (skip_artificial_frames): Use get_prev_frame_always.
6314 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6315 (get_frame_unwind_stop_reason): Adjust to rename.
6316 * frame.h (get_prev_frame_always): Declare.
6317 * inline-frame.c: Include frame.h.
6318 (inline_frame_this_id): Use get_prev_frame_always.
6319
6320 2014-04-18 Tristan Gingold <gingold@adacore.com>
6321
6322 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6323 code by using bfd_mach_o_get_base_address.
6324
6325 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6326
6327 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6328 (spu_ax_pseudo_register_collect): New function.
6329 (spu_ax_pseudo_register_push_stack): Likewise.
6330 (spu_dwarf_reg_to_regnum): Likewise.
6331 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6332
6333 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6334
6335 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6336 Replace FRAME argument with FRAME_ID.
6337 * gdbarch.c, gdbarch.h: Regenerate.
6338 * findvar.c (default_value_from_register): Add GDBARCH argument;
6339 replace FRAME by FRAME_ID. No longer call get_frame_id.
6340 (value_from_register): Update call to gdbarch_value_from_register.
6341 * value.h (default_value_from_register): Update prototype.
6342 * s390-linux-tdep.c (s390_value_from_register): Update interface
6343 and call to default_value_from_register.
6344 * spu-tdep.c (spu_value_from_register): Likewise.
6345
6346 * findvar.c (address_from_register): Remove TYPE argument.
6347 Do not call value_from_register; use gdbarch_value_from_register
6348 with null_frame_id instead.
6349 * value.h (address_from_register): Update prototype.
6350 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6351 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6352 address_from_register interface change.
6353
6354 2014-04-17 Yao Qi <yao@codesourcery.com>
6355
6356 * gdbtypes.h: Update comments to link to types and macros'
6357 definitions.
6358
6359 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6360
6361 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6362
6363 2014-04-16 Keith Seitz <keiths@redhat.com>
6364
6365 PR gdb/15827
6366 * dwarf2read.c (skip_one_die): Check that all relative-offset
6367 sibling DIEs fall within range of the current reader's buffer.
6368 (read_partial_die): Likewise.
6369
6370 2014-04-16 Keith Seitz <keiths@redhat.com>
6371
6372 PR c++/16597
6373 * cp-namespace.c (lookup_symbol_file): If the type name of
6374 `this' is NULL, return immediately.
6375
6376 2014-04-14 Keith Seitz <keiths@redhat.com>
6377
6378 PR c++/16253
6379 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6380 from symbol_matches_domain in symtab.c. All local callers
6381 of symbol_matches_domain updated.
6382 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6383 search STRUCT_DOMAIN.
6384 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6385 independently. standard_lookup will do that automatically.
6386 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6387 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6388 (cp_lookup_symbol_in_namespace): Likewise.
6389 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6390 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6391 may return a STRUCT_DOMAIN match.
6392 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6393 * cp-support.c: Include language.h.
6394 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6395 VAR_DOMAIN.
6396 * psymtab.c (match_partial_symbol): Compare the requested
6397 domain with the symbol's domain directly.
6398 (lookup_partial_symbol): Likewise.
6399 * symtab.c (lookup_symbol_in_language): Explain when/why
6400 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6401 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6402 appropriate languages.
6403 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6404 and moved to ada-lang.c
6405 (lookup_block_symbol): Explain that this function only returns
6406 symbol matching the requested DOMAIN.
6407 Compare the requested domain with the symbol's domain directly.
6408 (iterate_over_symbols): Compare the requested domain with the
6409 symbol's domain directly.
6410 * symtab.h (symbol_matches_domain): Remove.
6411
6412 2014-04-14 Tom Tromey <tromey@redhat.com>
6413
6414 PR c++/15246:
6415 * c-exp.y (type_aggregate_p): New function.
6416 (qualified_name, classify_inner_name): Use it.
6417 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6418 and TYPE_TARGET_TYPE of an enum type.
6419 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6420 an enum type.
6421 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6422 handle TYPE_DECLARED_CLASS.
6423 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6424 types.
6425 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6426 * valops.c (enum_constant_from_type): New function.
6427 (value_aggregate_elt): Use it.
6428 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6429 TYPE_CODE_ENUM.
6430
6431 2014-04-14 Tom Tromey <tromey@redhat.com>
6432
6433 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6434 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6435 const.
6436 * value.h (value_aggregate_elt): Update.
6437
6438 2014-04-14 Tom Tromey <tromey@redhat.com>
6439
6440 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6441
6442 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6443
6444 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6445 (evaluate_subexp_standard): Pass noside argument.
6446 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6447 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6448 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6449 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6450 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6451
6452 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6453
6454 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6455 points to a constant blob.
6456
6457 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6458
6459 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6460 property and store it as the high bound and flag the range accordingly.
6461 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6462 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6463 * gdbtypes.h (enum range_flags): New enum.
6464 (struct range_bounds): Add flags member.
6465
6466 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6467
6468 * c-typeprint.c (c_type_print_varspec_suffix): Added
6469 check for not yet resolved high bound. If unresolved, print
6470 "variable length" string to the console instead of random
6471 length.
6472
6473 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6474
6475 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6476 value.
6477 (ada_template_to_fixed_record_type_1): Likewise.
6478 (ada_to_fixed_type_1): Likewise.
6479 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6480 (cp_print_value): Likewise.
6481 * d-valprint.c (dynamic_array_type): Likewise.
6482 * findvar.c (address_of_variable): Likewise.
6483 * jv-valprint.c (java_value_print): Likewise.
6484 * valops.c (value_ind): Likewise.
6485 * value.c (coerce_ref): Likewise.
6486
6487 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6488
6489 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6490 value and retrieve the dynamic type size.
6491
6492 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6493
6494 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6495 passed to sizeof is dynamic evaluate the argument to compute the length.
6496
6497 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6498 Joel Brobecker <brobecker@adacore.com>
6499
6500 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6501 (dwarf2_evaluate_property): New function.
6502 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6503 * dwarf2read.c (attr_to_dynamic_prop): New function.
6504 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6505 attribute.
6506 * gdbtypes.c: Include dwarf2loc.h.
6507 (is_dynamic_type): New function.
6508 (resolve_dynamic_type): New function.
6509 (resolve_dynamic_bounds): New function.
6510 (get_type_length): New function.
6511 (check_typedef): Use get_type_length to compute type length.
6512 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6513 (TYPE_LOW_BOUND_KIND): New macro.
6514 (is_dynamic_type): New function prototype.
6515 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6516 to resolve dynamic properties of the type. Update comment.
6517 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6518
6519 2014-04-14 Richard Henderson <rth@redhat.com>
6520
6521 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6522
6523 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6524 Doug Evans <xdje42@gmail.com>
6525
6526 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6527 dereference TYPE_CODE_REF values.
6528
6529 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6530
6531 Revert the following changes due to regressions:
6532
6533 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6534 (dwarf2_evaluate_property): New function.
6535 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6536 * dwarf2read.c (attr_to_dynamic_prop): New function.
6537 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6538 attribute.
6539 * gdbtypes.c: Include dwarf2loc.h.
6540 (is_dynamic_type): New function.
6541 (resolve_dynamic_type): New function.
6542 (resolve_dynamic_bounds): New function.
6543 (get_type_length): New function.
6544 (check_typedef): Use get_type_length to compute type length.
6545 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6546 (TYPE_LOW_BOUND_KIND): New macro.
6547 (is_dynamic_type): New function prototype.
6548 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6549 to resolve dynamic properties of the type. Update comment.
6550 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6551
6552 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6553 passed to sizeof is dynamic evaluate the argument to compute the length.
6554
6555 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6556 value and retrieve the dynamic type size.
6557
6558 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6559 (ada_template_to_fixed_record_type_1): Likewise.
6560 (ada_to_fixed_type_1): Likewise.
6561 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6562 (cp_print_value): Likewise.
6563 * d-valprint.c (dynamic_array_type): Likewise.
6564 * eval.c (evaluate_subexp_with_coercion): Likewise.
6565 * findvar.c (address_of_variable): Likewise.
6566 * jv-valprint.c (java_value_print): Likewise.
6567 * valops.c (value_ind): Likewise.
6568 * value.c (coerce_ref): Likewise.
6569
6570 * c-typeprint.c (c_type_print_varspec_suffix): Added
6571 check for not yet resolved high bound. If unresolved, print
6572 "variable length" string to the console instead of random
6573 length.
6574
6575 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6576 property and store it as the high bound and flag the range accordingly.
6577 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6578 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6579 * gdbtypes.h (enum range_flags): New enum.
6580 (struct range_bounds): Add flags member.
6581
6582 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6583 points to a constant blob.
6584
6585 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6586 (evaluate_subexp_standard): Pass noside argument.
6587 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6588 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6589 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6590 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6591 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6592
6593 2014-04-11 Keith Seitz <keiths@redhat.com>
6594
6595 PR c++/16675
6596 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6597 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6598 reference types.
6599
6600 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6601
6602 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6603 (evaluate_subexp_standard): Pass noside argument.
6604 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6605 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6606 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6607 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6608 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6609
6610 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6611
6612 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6613 points to a constant blob.
6614
6615 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6616
6617 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6618 property and store it as the high bound and flag the range accordingly.
6619 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6620 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6621 * gdbtypes.h (enum range_flags): New enum.
6622 (struct range_bounds): Add flags member.
6623
6624 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6625
6626 * c-typeprint.c (c_type_print_varspec_suffix): Added
6627 check for not yet resolved high bound. If unresolved, print
6628 "variable length" string to the console instead of random
6629 length.
6630
6631 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6632
6633 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6634 (ada_template_to_fixed_record_type_1): Likewise.
6635 (ada_to_fixed_type_1): Likewise.
6636 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6637 (cp_print_value): Likewise.
6638 * d-valprint.c (dynamic_array_type): Likewise.
6639 * eval.c (evaluate_subexp_with_coercion): Likewise.
6640 * findvar.c (address_of_variable): Likewise.
6641 * jv-valprint.c (java_value_print): Likewise.
6642 * valops.c (value_ind): Likewise.
6643 * value.c (coerce_ref): Likewise.
6644
6645 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6646
6647 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6648 value and retrieve the dynamic type size.
6649
6650 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6651
6652 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6653 passed to sizeof is dynamic evaluate the argument to compute the length.
6654
6655 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6656
6657 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6658 (dwarf2_evaluate_property): New function.
6659 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6660 * dwarf2read.c (attr_to_dynamic_prop): New function.
6661 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6662 attribute.
6663 * gdbtypes.c: Include dwarf2loc.h.
6664 (is_dynamic_type): New function.
6665 (resolve_dynamic_type): New function.
6666 (resolve_dynamic_bounds): New function.
6667 (get_type_length): New function.
6668 (check_typedef): Use get_type_length to compute type length.
6669 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6670 (TYPE_LOW_BOUND_KIND): New macro.
6671 (is_dynamic_type): New function prototype.
6672 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6673 to resolve dynamic properties of the type. Update comment.
6674 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6675
6676 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6677
6678 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6679 declaring high/low bounds and change uses accordingly. Call
6680 create_range_type instead of create_static_range_type.
6681 * gdbtypes.c (create_range_type): New function.
6682 (create_range_type): Convert bounds into struct bound_prop and pass
6683 them to create_range_type.
6684 * gdbtypes.h (struct bound_prop): New struct.
6685 (create_range_type): New function prototype.
6686 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6687 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6688 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6689 part of the bound.
6690 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6691
6692 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6693
6694 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6695 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6696 * ada-lang.c: All uses of create_range_type updated.
6697 * coffread.c: All uses of create_range_type updated.
6698 * dwarf2read.c: All uses of create_range_type updated.
6699 * f-exp.y: All uses of create_range_type updated.
6700 * m2-valprint.c: All uses of create_range_type updated.
6701 * mdebugread.c: All uses of create_range_type updated.
6702 * stabsread.c: All uses of create_range_type updated.
6703 * valops.c: All uses of create_range_type updated.
6704 * valprint.c: All uses of create_range_type updated.
6705
6706 2014-04-10 Pedro Alves <palves@redhat.com>
6707
6708 * breakpoint.c (single_step_breakpoints)
6709 (single_step_gdbarch): Move up in the file.
6710 (one_breakpoint_xfer_memory): New function, factored out from ...
6711 (breakpoint_xfer_memory): ... here. Also process single-step
6712 breakpoints.
6713
6714 2014-04-09 Tristan Gingold <gingold@adacore.com>
6715
6716 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6717 comments.
6718 (darwin_decode_exception_message): Free port only after use.
6719
6720 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6721
6722 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6723 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6724 when setting the size of call_length.
6725
6726 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6727
6728 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6729 dereference TYPE_CODE_REF values.
6730
6731 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6732
6733 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6734 end of warning message.
6735
6736 2014-04-03 Doug Evans <dje@google.com>
6737
6738 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6739 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6740
6741 2014-04-02 Alan Modra <amodra@gmail.com>
6742
6743 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6744 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6745 (struct symbol_file_add_from_memory_args): Add size field.
6746 (find_vdso_size): New function.
6747 (add_vsyscall_page): Attempt to find vdso size.
6748
6749 2014-04-01 Doug Evans <dje@google.com>
6750
6751 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6752
6753 2014-04-01 Tristan Gingold <gingold@adacore.com>
6754
6755 * darwin-nat.c (darwin_encode_reply): Add prototype.
6756 (darwin_decode_exception_message): Reply to unknown inferiors.
6757 (darwin_decode_message): Handle message by id. Ignore message
6758 to unknown inferior.
6759 (darwin_wait): Discard unknown messages, add debug trace.
6760
6761 2014-03-31 Doug Evans <dje@google.com>
6762
6763 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6764 comp_dir_string.
6765
6766 2014-03-31 Doug Evans <dje@google.com>
6767
6768 New option "set print symbol-loading".
6769 * NEWS: Mention it.
6770 * solib.c (solib_read_symbols): Only print symbol loading messages
6771 if requested.
6772 (solib_add): If symbol loading is in "brief" mode, notify user
6773 symbols are being loaded.
6774 (reload_shared_libraries_1): Ditto.
6775 * symfile.c (print_symbol_loading_off): New static global.
6776 (print_symbol_loading_brief): New static global.
6777 (print_symbol_loading_full): New static global.
6778 (print_symbol_loading_enums): New static global.
6779 (print_symbol_loading): New static global.
6780 (print_symbol_loading_p): New function.
6781 (symbol_file_add_with_addrs): Only print symbol loading messages
6782 if requested.
6783 (_initialize_symfile): Register "print symbol-loading" set/show
6784 command.
6785 * symfile.h (print_symbol_loading_p): Declare.
6786
6787 2014-03-30 Doug Evans <xdje42@gmail.com>
6788
6789 * infrun.c (set_last_target_status): New function.
6790 (handle_inferior_event): Call it.
6791
6792 2014-03-30 Doug Evans <xdje42@gmail.com>
6793
6794 * inferior.h (enum stop_kind): Improve comment.
6795
6796 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6797
6798 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6799 a reference, strip the reference layer before calling
6800 the lang_ops value_has_mutated callback.
6801
6802 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6803
6804 Remove some globals from our parser.
6805 * language.c (unk_lang_parser): Add "struct parser_state"
6806 argument.
6807 * language.h (struct language_defn) <la_parser>: Likewise.
6808 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6809 (initialize_expout): Add "struct parser_state" argument.
6810 Rewrite function to use the parser state.
6811 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6812 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6813 write_exp_elt_longcst, write_exp_elt_dblcst,
6814 write_exp_elt_decfloatcst, write_exp_elt_type,
6815 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6816 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6817 write_dollar_variable): Likewise.
6818 (parse_exp_in_context_1): Use parser state.
6819 (insert_type_address_space): Add "struct parser_state" argument.
6820 Use parser state.
6821 (increase_expout_size): New function.
6822 * parser-defs.h: Forward declare "struct language_defn" and
6823 "struct parser_state".
6824 (expout, expout_size, expout_ptr): Remove extern declarations.
6825 (parse_gdbarch, parse_language): Rewrite macro declarations to
6826 accept the parser state.
6827 (struct parser_state): New struct.
6828 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6829 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6830 write_exp_elt_decfloatcst, write_exp_elt_type,
6831 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6832 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6833 write_exp_msymbol, write_dollar_variable,
6834 mark_struct_expression, insert_type_address_space): Add "struct
6835 parser_state" argument.
6836 (increase_expout_size): New function.
6837 * utils.c (do_clear_parser_state): New function.
6838 (make_cleanup_clear_parser_state): Likewise.
6839 * utils.h (make_cleanup_clear_parser_state): New function
6840 prototype.
6841 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6842 Update calls to write_exp* in order to pass the parser state.
6843 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6844 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6845 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6846 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6847 * stap-probe.c (stap_parse_register_operand): Likewise.
6848 (stap_parse_single_operand): Likewise.
6849 (stap_parse_argument_1): Likewise.
6850 (stap_parse_argument): Use parser state.
6851 * stap-probe.h: Include "parser-defs.h".
6852 (struct stap_parse_info) <pstate>: New field.
6853 * c-exp.y (parse_type): Rewrite to use parser state.
6854 (yyparse): Redefine to c_parse_internal.
6855 (pstate): New global variable.
6856 (parse_number): Add "struct parser_state" argument.
6857 (write_destructor_name): Likewise.
6858 (type_exp): Update calls to write_exp* and similars in order to
6859 use parser state.
6860 (exp1, exp, variable, qualified_name, space_identifier,
6861 typename, typebase): Likewise.
6862 (write_destructor_name, parse_number, lex_one_token,
6863 classify_name, classify_inner_name, c_parse): Add "struct
6864 parser_state" argument. Update function to use parser state.
6865 * c-lang.h: Forward declare "struct parser_state".
6866 (c_parse): Add "struct parser_state" argument.
6867 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6868 (yyparse): Redefine macro to ada_parse_internal.
6869 (pstate): New variable.
6870 (write_int, write_object_renaming, write_var_or_type,
6871 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6872 type_int, type_long, type_long_long, type_float, type_double,
6873 type_long_double, type_char, type_boolean, type_system_address):
6874 Add "struct parser_state" argument.
6875 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6876 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6877 var_or_type, aggregate, aggregate_component_list,
6878 positional_list, others, component_group,
6879 component_associations): Update calls to write_exp* and similar
6880 functions in order to use parser state.
6881 (ada_parse, write_var_from_sym, write_int,
6882 write_exp_op_with_string, write_object_renaming,
6883 find_primitive_type, write_selectors, write_ambiguous_var,
6884 write_var_or_type, write_name_assoc, type_int, type_long,
6885 type_long_long, type_float, type_double, type_long_double,
6886 type_char, type_boolean, type_system_address): Add "struct
6887 parser_state" argument. Adjust function to use parser state.
6888 * ada-lang.c (parse): Likewise.
6889 * ada-lang.h: Forward declare "struct parser_state".
6890 (ada_parse): Add "struct parser_state" argument.
6891 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6892 calls to both functions.
6893 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6894 parser state.
6895 (yyparse): Redefine macro to f_parse_internal.
6896 (pstate): New variable.
6897 (parse_number): Add "struct parser_state" argument.
6898 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6899 and similars in order to use parser state.
6900 (parse_number): Adjust code to use parser state.
6901 (yylex): Likewise.
6902 (f_parse): New function.
6903 * f-lang.h: Forward declare "struct parser_state".
6904 (f_parse): Add "struct parser_state" argument.
6905 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6906 parser state.
6907 (yyparse): Redefine macro for java_parse_internal.
6908 (pstate): New variable.
6909 (push_expression_name, push_expression_name, insert_exp): Add
6910 "struct parser_state" argument.
6911 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6912 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6913 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6914 PostIncrementExpression, PostDecrementExpression,
6915 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6916 UnaryExpressionNotPlusMinus, CastExpression,
6917 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6918 RelationalExpression, EqualityExpression, AndExpression,
6919 ExclusiveOrExpression, InclusiveOrExpression,
6920 ConditionalAndExpression, ConditionalOrExpression,
6921 ConditionalExpression, Assignment, LeftHandSide): Update
6922 calls to write_exp* and similars in order to use parser state.
6923 (parse_number): Ajust code to use parser state.
6924 (yylex): Likewise.
6925 (java_parse): New function.
6926 (push_variable): Add "struct parser_state" argument. Adjust
6927 code to user parser state.
6928 (push_fieldnames, push_qualified_expression_name,
6929 push_expression_name, insert_exp): Likewise.
6930 * jv-lang.h: Forward declare "struct parser_state".
6931 (java_parse): Add "struct parser_state" argument.
6932 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6933 parser state.
6934 (yyparse): Redefine macro to m2_parse_internal.
6935 (pstate): New variable.
6936 (type_exp, exp, fblock, variable, type): Update calls to
6937 write_exp* and similars to use parser state.
6938 (yylex): Likewise.
6939 (m2_parse): New function.
6940 * m2-lang.h: Forward declare "struct parser_state".
6941 (m2_parse): Add "struct parser_state" argument.
6942 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6943 * objc-lang.h: Forward declare "struct parser_state".
6944 (end_msglist): Add "struct parser_state" argument.
6945 * p-exp.y (parse_type): Rewrite macro to use parser state.
6946 (yyparse): Redefine macro to pascal_parse_internal.
6947 (pstate): New variable.
6948 (parse_number): Add "struct parser_state" argument.
6949 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6950 write_exp* and similars in order to use parser state.
6951 (parse_number, yylex): Adjust code to use parser state.
6952 (pascal_parse): New function.
6953 * p-lang.h: Forward declare "struct parser_state".
6954 (pascal_parse): Add "struct parser_state" argument.
6955 * go-exp.y (parse_type): Rewrite macro to use parser state.
6956 (yyparse): Redefine macro to go_parse_internal.
6957 (pstate): New variable.
6958 (parse_number): Add "struct parser_state" argument.
6959 (type_exp, exp1, exp, variable, type): Update calls to
6960 write_exp* and similars in order to use parser state.
6961 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6962 to use parser state.
6963 (go_parse): Likewise.
6964 * go-lang.h: Forward declare "struct parser_state".
6965 (go_parse): Add "struct parser_state" argument.
6966
6967 2014-03-27 Doug Evans <dje@google.com>
6968
6969 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6970
6971 2014-03-27 Doug Evans <dje@google.com>
6972
6973 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6974 Remove argument abbrev_section. All callers updated.
6975
6976 2014-03-27 Doug Evans <dje@google.com>
6977
6978 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6979 addr_base, ranges_base.
6980
6981 2014-03-26 Keith Seitz <keiths@redhat.com>
6982
6983 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6984 types, not VAR_DOMAIN.
6985
6986 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6987
6988 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6989 "ra" registers.
6990 * features/nios2-linux.c: Regenerated.
6991 * features/nios2.c: Regenerated.
6992
6993 2014-03-25 Pedro Alves <palves@redhat.com>
6994
6995 * cli/cli-script.c (script_from_file): Force the interpreter to
6996 sync mode.
6997
6998 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6999
7000 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7001 small stack allocation.
7002
7003 2014-03-24 Tristan Gingold <gingold@adacore.com>
7004
7005 * darwin-nat.c (exc_server): Remove unused prototype.
7006 (darwin_dump_message): Correctly display data on x86_64.
7007 (darwin_encode_reply): Fix style.
7008 Add comments and fix indentation.
7009
7010 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7011
7012 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7013
7014 2014-03-22 Doug Evans <xdje42@gmail.com>
7015
7016 * infcmd.c: Whitespace fixes.
7017 (interrupt_command): Merge two function comments into one.
7018
7019 2014-03-22 Doug Evans <xdje42@gmail.com>
7020
7021 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7022 All uses updated.
7023
7024 2014-03-22 Yao Qi <yao@codesourcery.com>
7025
7026 * remote.c (target_read_live_memory): Remove.
7027 (memory_xfer_live_readonly_partial): Rename it to
7028 remote_xfer_live_readonly_partial. Remove argument 'object'.
7029 All callers updated. Call remote_read_bytes_1
7030 instead of target_read_live_memory.
7031 * tracepoint.c (set_traceframe_number): Remove.
7032 (make_cleanup_restore_traceframe_number): Likewise .
7033 * tracepoint.h (set_traceframe_number): Remove declaration.
7034 (make_cleanup_restore_traceframe_number): Likewise.
7035
7036 2014-03-22 Yao Qi <yao@codesourcery.com>
7037
7038 * remote.c (remote_read_bytes): Move code on reading from the
7039 remote stub to ...
7040 (remote_read_bytes_1): ... here. New function.
7041
7042 2014-03-22 Yao Qi <yao@codesourcery.com>
7043
7044 * ctf.c (ctf_xfer_partial): Check the return value of
7045 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7046 return TARGET_XFER_UNAVAILABLE.
7047 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7048 * target.c (target_read_live_memory): Move it to remote.c.
7049 (memory_xfer_live_readonly_partial): Likewise.
7050 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7051 * remote.c (target_read_live_memory): Moved from target.c.
7052 (memory_xfer_live_readonly_partial): Likewise.
7053 (remote_read_bytes): Factored out from
7054 memory_xfer_partial_1.
7055
7056 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7057
7058 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7059 NULL pointer.
7060
7061 2014-03-21 Pedro Alves <palves@redhat.com>
7062
7063 * infrun.c (normal_stop): Extend comment.
7064
7065 2014-03-21 Hui Zhu <hui@codesourcery.com>
7066 Pedro Alves <palves@redhat.com>
7067
7068 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7069 static buffer.
7070 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7071 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7072 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7073
7074 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7075
7076 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7077 `z' formatted output modifier.
7078
7079 2014-03-20 Tom Tromey <tromey@redhat.com>
7080 Sergio Durigan Junior <sergiodj@redhat.com>
7081
7082 * probe.c (parse_probes): Turn assert into an ordinary error.
7083 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7084 exceptions when parsing probes. Rearrange the code for clarity.
7085
7086 2014-03-20 Tom Tromey <tromey@redhat.com>
7087
7088 PR gdb/14135
7089 * top.c (execute_command): Only dispatch events if the command
7090 started the target.
7091
7092 2014-03-20 Tom Tromey <tromey@redhat.com>
7093
7094 PR cli/15718
7095 * infcall.c: Include event-top.h.
7096 (run_inferior_call): Call async_disable_stdin if needed.
7097
7098 2014-03-20 Pedro Alves <palves@redhat.com>
7099
7100 * infrun.c (prepare_to_proceed): Delete.
7101 (thread_still_needs_step_over): New function.
7102 (find_thread_needs_step_over): New function.
7103 (proceed): If the current thread needs a step-over, set its
7104 steping_over_breakpoint flag. Adjust to use
7105 find_thread_needs_step_over instead of prepare_to_proceed.
7106 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7107 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7108 breakpoint.
7109 (switch_back_to_stepped_thread): Step over breakpoints of all
7110 threads not the stepping thread, before switching back to the
7111 stepping thread.
7112
7113 2014-03-20 Pedro Alves <palves@redhat.com>
7114
7115 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7116 extern.
7117 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7118 * infrun.c (saved_singlestep_ptid)
7119 (stepping_past_singlestep_breakpoint): Delete.
7120 (resume): Remove stepping_past_singlestep_breakpoint handling.
7121 (proceed): Store the prev_pc of the stepping thread too.
7122 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7123 singlestep_pc.
7124 (enum infwait_states): Delete infwait_thread_hop_state.
7125 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7126 field.
7127 (handle_inferior_event): Adjust.
7128 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7129 handling and the thread-hop code. Before removing single-step
7130 breakpoints, check whether the thread hit a single-step breakpoint
7131 of another thread. If it did, the trap is not a random signal.
7132 (switch_back_to_stepped_thread): If the event thread hit a
7133 single-step breakpoint, unblock it before switching to the
7134 stepping thread. Handle the case of the stepped thread having
7135 advanced already.
7136 (keep_going): Handle the case of the current thread moving past a
7137 single-step breakpoint.
7138
7139 2014-03-20 Pedro Alves <palves@redhat.com>
7140
7141 PR breakpoints/7143
7142 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7143 are being stepped over.
7144 (breakpoint_address_match): Make extern.
7145 * breakpoint.h (breakpoint_address_match): New declaration.
7146 * inferior.h (stepping_past_instruction_at): New declaration.
7147 * infrun.c (struct step_over_info): New type.
7148 (step_over_info): New global.
7149 (set_step_over_info, clear_step_over_info)
7150 (stepping_past_instruction_at): New functions.
7151 (handle_inferior_event): Clear the step-over info when
7152 trap_expected is cleared.
7153 (resume): Remove now stale comment.
7154 (clear_proceed_status): Clear step-over info.
7155 (proceed): Adjust step-over handling to set or clear the step-over
7156 info instead of removing all breakpoints.
7157 (handle_signal_stop): When setting up a thread-hop, don't remove
7158 breakpoints here.
7159 (stop_stepping): Clear step-over info.
7160 (keep_going): Adjust step-over handling to set or clear step-over
7161 info and then always inserting breakpoints, instead of removing
7162 all breakpoints when stepping over one.
7163
7164 2014-03-20 Pedro Alves <palves@redhat.com>
7165
7166 * infrun.c (previous_inferior_ptid): Adjust comment.
7167 (deferred_step_ptid): Delete.
7168 (infrun_thread_ptid_changed, prepare_to_proceed)
7169 (init_wait_for_inferior): Adjust.
7170 (handle_signal_stop): Delete deferred_step_ptid handling.
7171
7172 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7173
7174 PR gdb/15358
7175 * defs.h (sync_quit_force_run): New declaration.
7176 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7177 * event-top.c (async_sigterm_handler): New declaration.
7178 (async_sigterm_token): New variable.
7179 (async_init_signals): Create also async_sigterm_token.
7180 (async_sigterm_handler): New function.
7181 (sync_quit_force_run): New variable.
7182 (handle_sigterm): Replace quit_force call by other calls.
7183 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7184
7185 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7186
7187 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7188 offset into SPE pseudo registers.
7189
7190 2014-03-18 Pedro Alves <palves@redhat.com>
7191
7192 PR gdb/13860
7193 * inferior.h (print_stop_event): Declare.
7194 * infrun.c (print_stop_event): New, factored out from ...
7195 (normal_stop): ... this.
7196 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7197 of bpstat_print/print_stack_frame.
7198
7199 2014-03-17 Tom Tromey <tromey@redhat.com>
7200
7201 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7202
7203 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7204
7205 * ada-lang.c (decode_constrained_packed_array): Perform a
7206 minimal coercion for reference with coerce_ref instead of
7207 ada_coerce_ref.
7208
7209 2014-03-17 Tristan Gingold <gingold@adacore.com>
7210
7211 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7212 (darwin_solib_create_inferior_hook): Emit a warning if version
7213 is unhandled.
7214
7215 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7216
7217 * python/py-value.c (get_field_flag): Cast flag_name argument to
7218 PyObject_GetAttrString to support Python 2.4.
7219
7220 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7221
7222 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7223 (Global Maintainers): Remove Jan Kratochvil.
7224
7225 2014-03-14 Pedro Alves <palves@redhat.com>
7226
7227 * inferior.h (terminal_ours_for_output): Rename to ...
7228 (child_terminal_ours_for_output): ... this.
7229 (terminal_save_ours): Rename to ...
7230 (child_terminal_save_ours): ... this.
7231 (terminal_ours): Rename to ...
7232 (child_terminal_ours): ... this.
7233 (terminal_inferior): Rename to ...
7234 (child_terminal_inferior): ... this.
7235 (terminal_init_inferior): Rename to ...
7236 (child_terminal_init_inferior): ... this.
7237 (terminal_init_inferior_with_pgrp): Rename to ...
7238 (child_terminal_init_inferior_with_pgrp): ... this.
7239 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7240 (child_terminal_init_with_pgrp): ... this.
7241 (terminal_save_ours): Rename to ...
7242 (child_terminal_save_ours): ... this.
7243 (terminal_init_inferior): Rename to ...
7244 (child_terminal_init): ... this. Adjust.
7245 (terminal_inferior): Rename to ...
7246 (child_terminal_inferior): ... this.
7247 (terminal_ours_for_output): Rename to ...
7248 (child_terminal_ours_for_output): ... this. Adjust.
7249 (terminal_ours): Rename to ...
7250 (child_terminal_ours): ... this.
7251 (terminal_ours_1): Rename to ...
7252 (child_terminal_ours_1): ... this. Adjust.
7253 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7254 * windows-nat.c (do_initial_windows_stuff): Adjust.
7255 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7256 (gnu_terminal_init): ... this. Adjust.
7257 (gnu_target): Adjust.
7258 * inf-child.c (inf_child_target): Adjust.
7259
7260 2014-03-13 Doug Evans <xdje42@gmail.com>
7261
7262 PR guile/16612
7263 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7264 new eq?-hashtab.
7265
7266 2014-03-13 Doug Evans <xdje42@gmail.com>
7267
7268 * value.c (record_latest_value): Call release_value_or_incref
7269 instead of release_value.
7270
7271 2014-03-13 Pedro Alves <palves@redhat.com>
7272
7273 * procfs.c (procfs_target): Don't override to_shortname,
7274 to_longname or to_doc.
7275
7276 2014-03-13 Pedro Alves <palves@redhat.com>
7277
7278 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7279 Unix in user visible strings.
7280
7281 2014-03-12 Stan Shebs <stan@codesourcery.com>
7282
7283 * gdbtypes.h: Annotate comments for Doxygen, add a page
7284 block comment with some general info.
7285
7286 2014-03-12 Pedro Alves <palves@redhat.com>
7287
7288 * infcmd.c (prepare_execution_command): New function, factored out
7289 from several execution commands.
7290 (run_command_1, continue_command, step_1, jump_command)
7291 (signal_command, until_command, advance_command, finish_command)
7292 (attach_command): Use prepare_execution_command.
7293
7294 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7295
7296 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7297 (MAX_BPTS): Define.
7298 (MAX_WPTS): Define.
7299 (struct arm_linux_thread_points): Removed.
7300 (struct arm_linux_process_info): New.
7301 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7302 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7303 (arm_linux_find_breakpoints_by_tid): Removed.
7304 (struct arch_lwp_info): New.
7305 (arm_linux_find_process_pid): New functions.
7306 (arm_linux_add_process): New functions.
7307 (arm_linux_process_info_get): New functions.
7308 (arm_linux_forget_process): New function.
7309 (arm_linux_get_debug_reg_state): New function.
7310 (struct update_registers_data): New.
7311 (update_registers_callback): New function.
7312 (arm_linux_insert_hw_breakpoint1): Updated.
7313 (arm_linux_remove_hw_breakpoint1): Updated.
7314 (arm_linux_insert_hw_breakpoint): Updated.
7315 (arm_linux_remove_hw_breakpoint): Updated.
7316 (arm_linux_insert_watchpoint): Updated.
7317 (arm_linux_remove_watchpoint): Updated.
7318 (arm_linux_new_thread): Updated.
7319 (arm_linux_prepare_to_resume): New function.
7320 (arm_linux_new_fork): New function.
7321 (_initialize_arm_linux_nat): Updated.
7322
7323 2014-03-12 Pedro Alves <palves@redhat.com>
7324
7325 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7326
7327 2014-03-12 Tom Tromey <tromey@redhat.com>
7328
7329 * inf-child.c (return_zero): New function.
7330 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7331 * aix-thread.c (aix_thread_inferior_created): New function.
7332 (aix_thread_attach): Remove.
7333 (init_aix_thread_ops): Don't set to_attach.
7334 (_initialize_aix_thread): Register inferior_created observer.
7335 * corelow.c (init_core_ops): Don't set to_attach or
7336 to_create_inferior.
7337 * exec.c (init_exec_ops): Don't set to_attach or
7338 to_create_inferior.
7339 * infcmd.c (run_command_1): Use find_run_target. Make direct
7340 target calls.
7341 (attach_command): Use find_attach_target. Make direct target
7342 calls.
7343 * record-btrace.c (init_record_btrace_ops): Don't set
7344 to_create_inferior.
7345 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7346 Remove.
7347 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7348 set to_create_inferior.
7349 * target.c (complete_target_initialization): Add assertion.
7350 (target_create_inferior): Remove.
7351 (find_default_attach, find_default_create_inferior): Remove.
7352 (find_attach_target, find_run_target): New functions.
7353 (find_default_is_async_p, find_default_can_async_p)
7354 (target_supports_non_stop, target_attach): Remove.
7355 (init_dummy_target): Don't set to_create_inferior or
7356 to_supports_non_stop.
7357 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7358 TARGET_DEFAULT_FUNC.
7359 <to_create_inferior>: Add comment.
7360 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7361 TARGET_DEFAULT_RETURN.
7362 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7363 (find_attach_target, find_run_target): Declare.
7364 (target_create_inferior): Remove.
7365 (target_has_execution_1): Update comment.
7366 (target_supports_non_stop): Remove.
7367 * target-delegates.c: Rebuild.
7368
7369 2014-03-12 Pedro Alves <palves@redhat.com>
7370
7371 * inf-child.h: Update comment to not mention Unix.
7372
7373 2014-03-12 Pedro Alves <palves@redhat.com>
7374
7375 * inf-child.c: Update top comment to not mention Unix. Add
7376 generic comment describing how this target is meant to be used.
7377 (inf_child_post_attach, inf_child_post_startup_inferior)
7378 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7379 Unix in comment.
7380
7381 2014-03-12 Pedro Alves <palves@redhat.com>
7382
7383 * nto-procfs.c: Include inf-child.h.
7384 (procfs_ops): Delete global.
7385 (procfs_can_run): Delete method.
7386 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7387 target pointer instead of referencing procfs_ops.
7388 (procfs_prepare_to_store): Delete.
7389 (init_procfs_ops): Delete function.
7390 (procfs_target): New function, based on init_procfs_ops, but
7391 inherit inf_child_target.
7392 (_initialize_procfs): Use procfs_target.
7393
7394 2014-03-12 Pedro Alves <palves@redhat.com>
7395
7396 * windows-nat.c: Include inf-child.h.
7397 (windows_ops): Delete global.
7398 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7399 methods.
7400 (init_windows_ops): Delete function.
7401 (windows_target): New function, based on init_windows_ops, but
7402 inherit inf_child_target.
7403 (_initialize_windows_nat): Use windows_target. Install x86
7404 specific target methods here.
7405
7406 2014-03-10 Doug Evans <xdje42@gmail.com>
7407
7408 * guile/guile.c (call_initialize_gdb_module): New function.
7409 (initialize_guile): Replace call to scm_init_guile with call to
7410 scm_with_guile.
7411
7412 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7413
7414 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7415 in call to TYPE_CODE macro.
7416
7417 2014-03-10 Jerome Guitton <guitton@adacore.com>
7418
7419 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7420 Resolve tagged types to full view.
7421
7422 2014-03-10 Hui Zhu <hui@codesourcery.com>
7423
7424 * target.h (target_insert_breakpoint): Remove "hardware" from its
7425 comments.
7426
7427 2014-03-07 Doug Evans <dje@google.com>
7428
7429 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7430
7431 2014-03-07 Doug Evans <dje@google.com>
7432
7433 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7434 Remove unused local comp_dir_attr. Assert exactly one of
7435 stub_comp_unit_die, stub_comp_dir is non-NULL.
7436
7437 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7438
7439 * target.h (complete_target_initialization, add_target):
7440 Add comment.
7441
7442 2014-03-07 Pedro Alves <palves@redhat.com>
7443
7444 * go32-nat.c: Include inf-child.h.
7445 (go32_ops): Delete global.
7446 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7447 Delete methods.
7448 (go32_create_inferior): Push the passed in target pointer instead
7449 of referencing go32_ops.
7450 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7451 (go32_target): New function, based on init_go32_ops, but inherit
7452 inf_child_target.
7453 (_initialize_go32_nat): Use go32_target. Move parts of
7454 init_go32_ops here.
7455
7456 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7457
7458 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7459 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7460 SYMBOL_VALUE_ADDRESS.
7461 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7462
7463 2014-03-06 Yao Qi <yao@codesourcery.com>
7464
7465 * breakpoint.c (get_tracepoint_by_number): Remove argument
7466 optional_p. All callers updated. Adjust comments. Update
7467 output message.
7468 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7469
7470 2014-03-06 Yao Qi <yao@codesourcery.com>
7471
7472 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7473 early if get_number returns zero. Use 'p' instead of 'args'.
7474
7475 2014-03-06 Yao Qi <yao@codesourcery.com>
7476
7477 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7478 message.
7479
7480 2014-03-06 Yao Qi <yao@codesourcery.com>
7481
7482 PR breakpoints/16508
7483 * tracepoint.c (check_trace_running): New function.
7484 (trace_find_command): Move code to check_trace_running and
7485 call check_trace_running.
7486 (trace_find_pc_command): Likewise.
7487 (trace_find_tracepoint_command): Likewise.
7488 (trace_find_line_command): Likewise.
7489 (trace_find_range_command): Likewise.
7490 * tracepoint.h (check_trace_running): Likewise.
7491 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7492
7493 2014-03-06 Yao Qi <yao@codesourcery.com>
7494
7495 * target.h (struct target_ops) <to_traceframe_info>: Use
7496 TARGET_DEFAULT_NORETURN (tcomplain ()).
7497 * target-delegates.c: Regenerated.
7498
7499 2014-03-05 Pedro Alves <palves@redhat.com>
7500
7501 PR gdb/16575
7502 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7503 void. Update comment.
7504 (dcache_xfer_memory): Delete.
7505 (dcache_read_memory_partial): New, based on the read bits of
7506 dcache_xfer_memory.
7507 (dcache_update): Add status parameter. Use ULONGEST for len, and
7508 adjust. Discard cache lines if the reason for the update was
7509 error.
7510 * dcache.h (dcache_xfer_memory): Delete declaration.
7511 (dcache_read_memory_partial): New declaration.
7512 (dcache_update): Update prototype.
7513 * target.c (raw_memory_xfer_partial): Update the dcache here.
7514 (memory_xfer_partial_1): Don't handle dcache writes here.
7515
7516 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7517
7518 * remote-sim.c (gdbsim_load): Add const to prog.
7519
7520 2014-03-03 Tom Tromey <tromey@redhat.com>
7521
7522 * elfread.c (probe_key): Change to bfd_data.
7523 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7524 now per-BFD, not per-objfile.
7525 * stap-probe.c (stap_probe_destroy): Update comment.
7526 (handle_stap_probe): Allocate on the per-BFD obstack.
7527
7528 2014-03-03 Tom Tromey <tromey@redhat.com>
7529
7530 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7531 * breakpoint.c (create_longjmp_master_breakpoint): Use
7532 get_probe_address.
7533 (add_location_to_breakpoint, bkpt_probe_insert_location)
7534 (bkpt_probe_remove_location): Update.
7535 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7536 * elfread.c (elf_symfile_relocate_probe): Remove.
7537 (elf_probe_fns): Update.
7538 (insert_exception_resume_breakpoint): Change type of "probe"
7539 parameter to bound_probe.
7540 (check_exception_resume): Update.
7541 * objfiles.c (objfile_relocate1): Don't relocate probes.
7542 * probe.c (bound_probe_s): New typedef.
7543 (parse_probes): Use get_probe_address. Set sal's objfile.
7544 (find_probe_by_pc): Return a bound_probe.
7545 (collect_probes): Return a VEC(bound_probe_s).
7546 (compare_probes): Update.
7547 (gen_ui_out_table_header_info): Change type of "probes"
7548 parameter. Update.
7549 (info_probes_for_ops): Update.
7550 (get_probe_address): New function.
7551 (probe_safe_evaluate_at_pc): Update.
7552 * probe.h (struct probe_ops) <get_probe_address>: New field.
7553 <set_semaphore, clear_semaphore>: Add objfile parameter.
7554 (struct probe) <objfile>: Remove field.
7555 <arch>: New field.
7556 <address>: Update comment.
7557 (struct bound_probe): New.
7558 (find_probe_by_pc): Return a bound_probe.
7559 (get_probe_address): Declare.
7560 * solib-svr4.c (struct probe_and_action) <address>: New field.
7561 (hash_probe_and_action, equal_probe_and_action): Update.
7562 (register_solib_event_probe): Add address parameter.
7563 (solib_event_probe_at): Update.
7564 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7565 get_probe_address.
7566 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7567 (stap_get_probe_address): New function.
7568 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7569 (compile_probe_arg): Update.
7570 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7571 address.
7572 (handle_stap_probe): Don't relocate the probe.
7573 (stap_relocate): Remove.
7574 (stap_gen_info_probes_table_values): Update.
7575 (stap_probe_ops): Remove stap_relocate.
7576 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7577 (debug_sym_probe_fns): Update.
7578 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7579 * symtab.c (init_sal): Use memset.
7580 * symtab.h (struct symtab_and_line) <objfile>: New field.
7581 * tracepoint.c (start_tracing, stop_tracing): Update.
7582
7583 2014-03-03 Tom Tromey <tromey@redhat.com>
7584
7585 * probe.h (parse_probes, find_probe_by_pc)
7586 (find_probes_in_objfile): Fix comments.
7587
7588 2014-03-02 Doug Evans <xdje42@gmail.com>
7589
7590 * infrun.c (handle_signal_stop): Replace test for
7591 TARGET_WAITKIND_STOPPED with an assert.
7592
7593 2014-03-02 Doug Evans <xdje42@gmail.com>
7594
7595 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7596
7597 2014-03-02 Doug Evans <xdje42@gmail.com>
7598
7599 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7600
7601 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7602
7603 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7604
7605 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7606
7607 * i386obsd-nat.c: Include "obsd-nat.h".
7608 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7609 add_target.
7610 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7611
7612 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7613
7614 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7615
7616 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7617
7618 * mips64obsd-nat.c: Include "obsd-nath".
7619 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7620 add_target
7621 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7622
7623 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7624
7625 * amd64obsd-nat.c: Include "obsd-nat,h.
7626 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7627 add_target.
7628 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7629
7630 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7631
7632 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7633 (find_overload_match): Update call to find_oload_champ.
7634 (find_oload_champ_namespace_loop): Likewise
7635
7636 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7637
7638 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7639
7640 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7641 * config/sparc/obsd64.mh: New file.
7642 * sparc64obsd-nat.c: New file.
7643
7644 * obsd-nat.h: New file.
7645 * obsd-nat.c: New file.
7646 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7647 (ALLDEPFILES): Add obsd-nat.c.
7648
7649 2014-02-28 Tom Tromey <tromey@redhat.com>
7650
7651 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7652 * cli-out.h (cli_ui_out_impl): Now const.
7653 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7654 * ui-out.c (struct ui_out) <impl>: Now const.
7655 (default_ui_out_impl): Now const.
7656 (ui_out_new): Make 'impl' parameter const.
7657 * ui-out.h (ui_out_new): Update.
7658
7659 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7660
7661 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7662
7663 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7664
7665 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7666
7667 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7668
7669 Additional PR 8882 fix.
7670 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7671
7672 2014-02-27 Pedro Alves <palves@redhat.com>
7673
7674 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7675 isn't set.
7676
7677 2014-02-27 Pedro Alves <palves@redhat.com>
7678
7679 PR 12702
7680 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7681 * nat/linux-waitpid.c: Include string.h.
7682 (status_to_str): Moved here and made extern.
7683 * nat/linux-waitpid.h (status_to_str): New declaration.
7684
7685 2014-02-27 Hui Zhu <hui@codesourcery.com>
7686
7687 PR 12702
7688 * infrun.c (ptid_match): Move ...
7689 * common/ptid.c (ptid_match): ... here.
7690 * inferior.h (ptid_match): Move ...
7691 * common/ptid.h (ptid_match): ... here.
7692
7693 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7694
7695 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7696 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7697 gdb_target_obs.
7698
7699 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7700
7701 * obsd-tdep.c (obsd_auxv_parse): New function.
7702 (obsd_init_abi): Set auxv_parse.
7703
7704 * gdbarch.sh (auxv_parse): New.
7705 * gdbarch.h: Regenerated.
7706 * gdbarch.c: Regenerated.
7707 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7708
7709 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7710
7711 * guile/scm-value.c (gdbscm_history_append_x): New function.
7712 (value_functions): Add it.
7713
7714 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7715
7716 * dwarf2read.c (attr_value_as_address): New function.
7717 (dwarf2_find_base_address, read_call_site_scope): Use
7718 attr_value_as_address in place of DW_ADDR.
7719 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7720 the low and high addresses. Slight rework of the handling
7721 of the high pc being a constant form, and limit it to
7722 DWARF verson 4 or higher.
7723 (dwarf2_record_block_ranges): Likewise.
7724 (read_partial_die): Likewise.
7725 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7726
7727 2014-02-26 Tom Tromey <tromey@redhat.com>
7728
7729 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7730
7731 2014-02-26 Tom Tromey <tromey@redhat.com>
7732
7733 * elfread.c (elf_read_minimal_symbols): Return early if
7734 minimal symbols have already been read. Add "ei" parameter.
7735 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7736 * minsyms.c (prim_record_minimal_symbol_full): Update.
7737 * objfiles.h (struct objstats) <n_minsyms>: Move...
7738 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7739 * symmisc.c (print_objfile_statistics): Update.
7740
7741 2014-02-26 Tom Tromey <tromey@redhat.com>
7742
7743 * elfread.c (elf_read_minimal_symbols): New function, from
7744 elf_symfile_read.
7745 (elf_symfile_read): Call it.
7746
7747 2014-02-26 Tom Tromey <tromey@redhat.com>
7748
7749 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7750 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7751 (lookup_minimal_symbol_solib_trampoline)
7752 (lookup_minimal_symbol_by_pc_section_1)
7753 (lookup_minimal_symbol_and_objfile): Update.
7754 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7755 Don't allocate a minimal symbol if minsyms have already been read.
7756 (build_minimal_symbol_hash_tables): Update.
7757 (install_minimal_symbols): Do nothing if minsyms already read.
7758 Use the per-BFD obstack.
7759 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7760 * objfiles.c (allocate_objfile): Call
7761 terminate_minimal_symbol_table later.
7762 (have_minimal_symbols): Update.
7763 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7764 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7765 Move from struct objfile.
7766 <minsyms_read>: New field.
7767 (struct objfile) <msymbols, minimal_symbol_count,
7768 msymbol_hash, msymbol_demangled_hash>: Move.
7769 (ALL_OBJFILE_MSYMBOLS): Update.
7770 * symfile.c (read_symbols): Set minsyms_read.
7771 (reread_symbols): Update.
7772 * symmisc.c (dump_objfile, dump_msymbols): Update.
7773
7774 2014-02-26 Tom Tromey <tromey@redhat.com>
7775
7776 * minsyms.c (msymbols_sort): Remove.
7777 * minsyms.h (msymbols_sort): Remove.
7778 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7779 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7780 * elfread.c (elf_symtab_read): Don't add section offsets.
7781 * xcoffread.c (record_minimal_symbol): Don't add section offset
7782 to minimal symbol address.
7783 * somread.c (text_offset, data_offset): Remove.
7784 (som_symtab_read): Don't add section offsets to minimal symbol
7785 addresses.
7786 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7787 Don't add section offsets to minimal symbols.
7788 * coffread.c (coff_symtab_read): Don't add section offsets
7789 to minimal symbol addresses.
7790 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7791 to minimal symbol addresses.
7792 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7793 section offset to minimal symbol addresses.
7794 * mdebugread.c (parse_partial_symbols): Don't add section
7795 offset to minimal symbol addresses.
7796 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7797 offset to minimal symbol addresses.
7798
7799 2014-02-26 Tom Tromey <tromey@redhat.com>
7800
7801 * ada-lang.c (ada_main_name): Update.
7802 (ada_add_standard_exceptions): Update.
7803 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7804 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7805 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7806 * auxv.c (ld_so_xfer_auxv): Update.
7807 * avr-tdep.c (avr_scan_prologue): Update.
7808 * ax-gdb.c (gen_var_ref): Update.
7809 * blockframe.c (get_pc_function_start)
7810 (find_pc_partial_function_gnu_ifunc): Update.
7811 * breakpoint.c (create_overlay_event_breakpoint)
7812 (create_longjmp_master_breakpoint)
7813 (create_std_terminate_master_breakpoint)
7814 (create_exception_master_breakpoint): Update.
7815 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7816 * c-valprint.c (c_val_print): Update.
7817 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7818 * common/agent.c (agent_look_up_symbols): Update.
7819 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7820 * dwarf2loc.c (call_site_to_target_addr): Update.
7821 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7822 * elfread.c (elf_gnu_ifunc_record_cache)
7823 (elf_gnu_ifunc_resolve_by_got): Update.
7824 * findvar.c (default_read_var_value): Update.
7825 * frame.c (inside_main_func): Update.
7826 * frv-tdep.c (frv_frame_this_id): Update.
7827 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7828 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7829 Update.
7830 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7831 (hppa_hpux_find_dummy_bpaddr): Update.
7832 * hppa-tdep.c (hppa_symbol_address): Update.
7833 * infcmd.c (until_next_command): Update.
7834 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7835 Update.
7836 * linespec.c (minsym_found, add_minsym): Update.
7837 * linux-nat.c (get_signo): Update.
7838 * linux-thread-db.c (inferior_has_bug): Update.
7839 * m32c-tdep.c (m32c_return_value)
7840 (m32c_m16c_address_to_pointer): Update.
7841 * m32r-tdep.c (m32r_frame_this_id): Update.
7842 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7843 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7844 * maint.c (maintenance_translate_address): Update.
7845 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7846 (frob_address): New function.
7847 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7848 frob_address. Rename parameter to "pc_in".
7849 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7850 addresses.
7851 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7852 Update.
7853 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7854 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7855 * objc-lang.c (find_objc_msgsend): Update.
7856 * objfiles.c (objfile_relocate1): Update.
7857 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7858 * p-valprint.c (pascal_val_print): Update.
7859 * parse.c (write_exp_msymbol): Update.
7860 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7861 (ppc_elfv2_skip_entrypoint): Update.
7862 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7863 * printcmd.c (build_address_symbolic, msym_info)
7864 (address_info): Update.
7865 * proc-service.c (ps_pglobal_lookup): Update.
7866 * psymtab.c (find_pc_sect_psymtab_closer)
7867 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7868 Change msymbol parameter to bound_minimal_symbol.
7869 * ravenscar-thread.c (get_running_thread_id): Update.
7870 * remote.c (remote_check_symbols): Update.
7871 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7872 address.
7873 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7874 * solib-dsbt.c (lm_base): Update.
7875 * solib-frv.c (lm_base, main_got): Update.
7876 * solib-irix.c (locate_base): Update.
7877 * solib-som.c (som_solib_create_inferior_hook)
7878 (link_map_start): Update.
7879 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7880 * solib-svr4.c (elf_locate_base, enable_break): Update.
7881 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7882 (flush_ea_cache): Update.
7883 * stabsread.c (define_symbol, scan_file_globals): Update.
7884 * stack.c (find_frame_funname): Update.
7885 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7886 (debug_qf_find_pc_sect_symtab): Update.
7887 * symfile.c (simple_read_overlay_table)
7888 (simple_overlay_update): Update.
7889 * symfile.h (struct quick_symbol_functions)
7890 <find_pc_sect_symtab>: Change type of msymbol to
7891 bound_minimal_symbol.
7892 * symmisc.c (dump_msymbols): Update.
7893 * symtab.c (find_pc_sect_symtab_via_partial)
7894 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7895 (search_symbols, print_msymbol_info): Update.
7896 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7897 (MSYMBOL_VALUE_ADDRESS): Redefine.
7898 (BMSYMBOL_VALUE_ADDRESS): New macro.
7899 * tracepoint.c (scope_info): Update.
7900 * tui/tui-disasm.c (tui_find_disassembly_address)
7901 (tui_get_begin_asm_address): Update.
7902 * valops.c (find_function_in_inferior): Update.
7903 * value.c (value_static_field, value_fn_field): Update.
7904
7905 2014-02-26 Tom Tromey <tromey@redhat.com>
7906
7907 * ada-lang.c (ada_update_initial_language): Update.
7908 (ada_main_name, ada_has_this_exception_support): Update.
7909 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7910 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7911 * arm-tdep.c (arm_skip_stub): Update.
7912 * auxv.c (ld_so_xfer_auxv): Update.
7913 * avr-tdep.c (avr_scan_prologue): Update.
7914 * ax-gdb.c (gen_var_ref): Update.
7915 * breakpoint.c (struct breakpoint_objfile_data)
7916 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7917 type to bound_minimal_symbol.
7918 (create_overlay_event_breakpoint)
7919 (create_longjmp_master_breakpoint)
7920 (create_std_terminate_master_breakpoint)
7921 (create_exception_master_breakpoint): Update.
7922 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7923 * c-exp.y (classify_name): Update.
7924 * coffread.c (coff_symfile_read): Update.
7925 * common/agent.c (agent_look_up_symbols): Update.
7926 * d-lang.c (d_main_name): Update.
7927 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7928 * dec-thread.c (enable_dec_thread): Update.
7929 * dwarf2loc.c (call_site_to_target_addr): Update.
7930 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7931 * eval.c (evaluate_subexp_standard): Update.
7932 * findvar.c (struct minsym_lookup_data) <result>: Change type
7933 to bound_minimal_symbol.
7934 <objfile>: Remove.
7935 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7936 * frame.c (inside_main_func): Update.
7937 * frv-tdep.c (frv_frame_this_id): Update.
7938 * gcore.c (call_target_sbrk): Update.
7939 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7940 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7941 Update.
7942 * go-lang.c (go_main_name): Update.
7943 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7944 (hppa_hpux_find_import_stub_for_addr): Update.
7945 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7946 Update. Change return type.
7947 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7948 type.
7949 * jit.c (jit_breakpoint_re_set_internal): Update.
7950 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7951 Update.
7952 * linux-nat.c (get_signo): Update.
7953 * linux-thread-db.c (inferior_has_bug): Update
7954 * m32c-tdep.c (m32c_return_value)
7955 (m32c_m16c_address_to_pointer): Update.
7956 * m32r-tdep.c (m32r_frame_this_id): Update.
7957 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7958 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7959 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7960 lookup_minimal_symbol. Change return type.
7961 (lookup_minimal_symbol): Remove.
7962 (lookup_bound_minimal_symbol): Update.
7963 (lookup_minimal_symbol_text): Change return type.
7964 (lookup_minimal_symbol_solib_trampoline): Change return type.
7965 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7966 (lookup_minimal_symbol_solib_trampoline): Change return type.
7967 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7968 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7969 (value_nsstring, find_imps): Update.
7970 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7971 * p-lang.c (pascal_main_name): Update.
7972 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7973 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7974 * proc-service.c (ps_pglobal_lookup): Update.
7975 * ravenscar-thread.c (get_running_thread_msymbol): Change
7976 return type.
7977 (has_ravenscar_runtime, get_running_thread_id): Update.
7978 * remote.c (remote_check_symbols): Update.
7979 * sol-thread.c (ps_pglobal_lookup): Update.
7980 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7981 * solib-dsbt.c (lm_base): Update.
7982 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7983 Update.
7984 * solib-irix.c (locate_base): Update.
7985 * solib-som.c (som_solib_create_inferior_hook)
7986 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7987 Update.
7988 * solib-spu.c (spu_enable_break): Update.
7989 * solib-svr4.c (elf_locate_base, enable_break): Update.
7990 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7991 (flush_ea_cache): Update.
7992 * stabsread.c (define_symbol): Update.
7993 * symfile.c (simple_read_overlay_table): Update.
7994 * symtab.c (find_pc_sect_line): Update.
7995 * tracepoint.c (scope_info): Update.
7996 * tui-disasm.c (tui_get_begin_asm_address): Update.
7997 * value.c (value_static_field): Update.
7998
7999 2014-02-26 Tom Tromey <tromey@redhat.com>
8000
8001 * minsyms.c (prim_record_minimal_symbol_full): Use
8002 SET_MSYMBOL_VALUE_ADDRESS.
8003 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8004 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8005 SET_MSYMBOL_VALUE_ADDRESS.
8006 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8007 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8008
8009 2014-02-26 Tom Tromey <tromey@redhat.com>
8010
8011 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8012 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8013 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8014 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8015 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8016 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8017 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8018 * ada-lang.c (ada_main_name): Update.
8019 (ada_lookup_simple_minsym): Update.
8020 (ada_make_symbol_completion_list): Update.
8021 (ada_add_standard_exceptions): Update.
8022 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8023 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8024 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8025 * arm-tdep.c (skip_prologue_function): Update.
8026 (arm_skip_stack_protector, arm_skip_stub): Update.
8027 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8028 (arm_wince_skip_main_prologue): Update.
8029 * auxv.c (ld_so_xfer_auxv): Update.
8030 * avr-tdep.c (avr_scan_prologue): Update.
8031 * ax-gdb.c (gen_var_ref): Update.
8032 * block.c (call_site_for_pc): Update.
8033 * blockframe.c (get_pc_function_start): Update.
8034 (find_pc_partial_function_gnu_ifunc): Update.
8035 * breakpoint.c (create_overlay_event_breakpoint): Update.
8036 (create_longjmp_master_breakpoint): Update.
8037 (create_std_terminate_master_breakpoint): Update.
8038 (create_exception_master_breakpoint): Update.
8039 (resolve_sal_pc): Update.
8040 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8041 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8042 Update.
8043 * c-valprint.c (c_val_print): Update.
8044 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8045 * coffread.c (coff_symfile_read): Update.
8046 * common/agent.c (agent_look_up_symbols): Update.
8047 * dbxread.c (find_stab_function_addr): Update.
8048 (end_psymtab): Update.
8049 * dwarf2loc.c (call_site_to_target_addr): Update.
8050 (func_verify_no_selftailcall): Update.
8051 (tailcall_dump): Update.
8052 (call_site_find_chain_1): Update.
8053 (dwarf_expr_reg_to_entry_parameter): Update.
8054 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8055 (elf_gnu_ifunc_resolve_by_got): Update.
8056 * f-valprint.c (info_common_command): Update.
8057 * findvar.c (read_var_value): Update.
8058 * frame.c (get_prev_frame_1): Update.
8059 (inside_main_func): Update.
8060 * frv-tdep.c (frv_skip_main_prologue): Update.
8061 (frv_frame_this_id): Update.
8062 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8063 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8064 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8065 (gnuv3_skip_trampoline): Update.
8066 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8067 (hppa64_hpux_in_solib_call_trampoline): Update.
8068 (hppa_hpux_skip_trampoline_code): Update.
8069 (hppa64_hpux_search_dummy_call_sequence): Update.
8070 (hppa_hpux_find_import_stub_for_addr): Update.
8071 (hppa_hpux_find_dummy_bpaddr): Update.
8072 * hppa-tdep.c (hppa_symbol_address)
8073 (hppa_lookup_stub_minimal_symbol): Update.
8074 * i386-tdep.c (i386_skip_main_prologue): Update.
8075 (i386_pe_skip_trampoline_code): Update.
8076 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8077 * infcall.c (get_function_name): Update.
8078 * infcmd.c (until_next_command): Update.
8079 * jit.c (jit_breakpoint_re_set_internal): Update.
8080 (jit_inferior_init): Update.
8081 * linespec.c (minsym_found): Update.
8082 (add_minsym): Update.
8083 * linux-fork.c (info_checkpoints_command): Update.
8084 * linux-nat.c (get_signo): Update.
8085 * linux-thread-db.c (inferior_has_bug): Update.
8086 * m32c-tdep.c (m32c_return_value): Update.
8087 (m32c_m16c_address_to_pointer): Update.
8088 (m32c_m16c_pointer_to_address): Update.
8089 * m32r-tdep.c (m32r_frame_this_id): Update.
8090 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8091 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8092 * maint.c (maintenance_translate_address): Update.
8093 * minsyms.c (add_minsym_to_hash_table): Update.
8094 (add_minsym_to_demangled_hash_table): Update.
8095 (msymbol_objfile): Update.
8096 (lookup_minimal_symbol): Update.
8097 (iterate_over_minimal_symbols): Update.
8098 (lookup_minimal_symbol_text): Update.
8099 (lookup_minimal_symbol_by_pc_name): Update.
8100 (lookup_minimal_symbol_solib_trampoline): Update.
8101 (lookup_minimal_symbol_by_pc_section_1): Update.
8102 (lookup_minimal_symbol_and_objfile): Update.
8103 (prim_record_minimal_symbol_full): Update.
8104 (compare_minimal_symbols): Update.
8105 (compact_minimal_symbols): Update.
8106 (build_minimal_symbol_hash_tables): Update.
8107 (install_minimal_symbols): Update.
8108 (terminate_minimal_symbol_table): Update.
8109 (find_solib_trampoline_target): Update.
8110 (minimal_symbol_upper_bound): Update.
8111 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8112 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8113 (mips_skip_pic_trampoline_code): Update.
8114 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8115 * objc-lang.c (selectors_info): Update.
8116 (classes_info): Update.
8117 (find_methods): Update.
8118 (find_imps): Update.
8119 (find_objc_msgsend): Update.
8120 * objfiles.c (objfile_relocate1): Update.
8121 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8122 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8123 * p-valprint.c (pascal_val_print): Update.
8124 * parse.c (write_exp_msymbol): Update.
8125 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8126 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8127 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8128 * printcmd.c (build_address_symbolic): Update.
8129 (sym_info): Update.
8130 (address_info): Update.
8131 * proc-service.c (ps_pglobal_lookup): Update.
8132 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8133 (find_pc_sect_psymtab): Update.
8134 * python/py-framefilter.c (py_print_frame): Update.
8135 * ravenscar-thread.c (get_running_thread_id): Update.
8136 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8137 Update.
8138 * remote.c (remote_check_symbols): Update.
8139 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8140 (rs6000_skip_trampoline_code): Update.
8141 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8142 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8143 * solib-dsbt.c (lm_base): Update.
8144 * solib-frv.c (lm_base): Update.
8145 (main_got): Update.
8146 * solib-irix.c (locate_base): Update.
8147 * solib-som.c (som_solib_create_inferior_hook): Update.
8148 (som_solib_desire_dynamic_linker_symbols): Update.
8149 (link_map_start): Update.
8150 * solib-spu.c (spu_enable_break): Update.
8151 (ocl_enable_break): Update.
8152 * solib-svr4.c (elf_locate_base): Update.
8153 (enable_break): Update.
8154 * spu-tdep.c (spu_get_overlay_table): Update.
8155 (spu_catch_start): Update.
8156 (flush_ea_cache): Update.
8157 * stabsread.c (define_symbol): Update.
8158 (scan_file_globals): Update.
8159 * stack.c (find_frame_funname): Update.
8160 (frame_info): Update.
8161 * symfile.c (simple_read_overlay_table): Update.
8162 (simple_overlay_update): Update.
8163 * symmisc.c (dump_msymbols): Update.
8164 * symtab.c (fixup_section): Update.
8165 (find_pc_sect_line): Update.
8166 (skip_prologue_sal): Update.
8167 (search_symbols): Update.
8168 (print_msymbol_info): Update.
8169 (rbreak_command): Update.
8170 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8171 (completion_list_objc_symbol): Update.
8172 (default_make_symbol_completion_list_break_on): Update.
8173 * tracepoint.c (scope_info): Update.
8174 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8175 (tui_get_begin_asm_address): Update.
8176 * valops.c (find_function_in_inferior): Update.
8177 * value.c (value_static_field): Update.
8178 (value_fn_field): Update.
8179
8180 2014-02-26 Tom Tromey <tromey@redhat.com>
8181
8182 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8183 bound minimal symbols. Move code that knows about minsym
8184 table layout...
8185 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8186 function.
8187 * minsyms.h (minimal_symbol_upper_bound): Declare.
8188 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8189 minimal_symbol_upper_bound.
8190
8191 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8192
8193 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8194 Use the type's name if its basic type does not have a tag.
8195
8196 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8197
8198 * dwarf2read.c (read_subrange_type): Add comment.
8199
8200 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8201
8202 * dwarf2read.c (update_enumeration_type_from_children): New
8203 function, mostly extracted from process_structure_scope.
8204 (read_enumeration_type): Call update_enumeration_type_from_children.
8205 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8206 and flag_flag_enum fields.
8207
8208 2014-02-26 Pedro Alves <palves@redhat.com>
8209
8210 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8211 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8212 to_xfer_partial method.
8213
8214 2014-02-26 Pedro Alves <palves@redhat.com>
8215
8216 * target.c (complete_target_initialization): Don't install
8217 default_xfer_partial as to_xfer_partial hook.
8218 (nomemory): Delete.
8219 (update_current_target): Don't INHERIT nor de_fault
8220 deprecated_xfer_memory. Delete de_fault macro.
8221 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8222 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8223 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8224 field.
8225
8226 2014-02-26 Pedro Alves <palves@redhat.com>
8227
8228 * go32-nat.c (my_write_child): New function.
8229 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8230 (go32_xfer_partial): New function.
8231 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8232 Instead install a to_xfer_partial hook.
8233
8234 2014-02-26 Pedro Alves <palves@redhat.com>
8235
8236 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8237 to_xfer_partial helper. Rewrite.
8238 (procfs_xfer_partial): New function.
8239 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8240 Install a to_xfer_partial hook.
8241
8242 2014-02-26 Pedro Alves <palves@redhat.com>
8243
8244 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8245 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8246 (m32r_xfer_partial): New function.
8247 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8248 Install a to_xfer_partial hook.
8249
8250 2014-02-26 Pedro Alves <palves@redhat.com>
8251
8252 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8253 helper.
8254 (mips_xfer_partial): New function.
8255 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8256 hook. Install a to_xfer_partial hook.
8257
8258 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8259
8260 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8261 * gdbtypes.c (create_array_type_with_stride): New function,
8262 renaming create_array_type, but with an added parameter
8263 called "bit_stride".
8264 (create_array_type): Re-implement using
8265 create_array_type_with_stride.
8266 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8267 and DW_AT_bit_stride attributes.
8268
8269 2014-02-26 Pedro Alves <palves@redhat.com>
8270
8271 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8272 task-specific breakpoints.
8273
8274 2014-02-25 Pedro Alves <palves@redhat.com>
8275
8276 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8277 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8278
8279 2014-02-25 Stan Shebs <stan@codesourcery.com>
8280
8281 * defs.h: Annotate comments for Doxygen.
8282
8283 2014-02-25 Tom Tromey <tromey@redhat.com>
8284
8285 * target.h (target_ignore): Don't declare.
8286 * target.c (target_ignore): Remove.
8287
8288 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8289
8290 PR gdb/16626
8291 * auto-load.c (auto_load_objfile_script_1): Change filename to
8292 debugfile.
8293
8294 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8295
8296 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8297 documentation. Adjust prototype to match the target_ops
8298 to_xfer_partial method. Adjust implementation accordingly.
8299
8300 2014-02-25 Hui Zhu <hui@codesourcery.com>
8301
8302 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8303 to_traceframe_info.
8304
8305 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8306
8307 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8308 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8309 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8310 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8311 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8312 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8313 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8314 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8315 New constants.
8316 (rl78_register_type): Use a data pointer type for SP and
8317 new pseudo registers mentioned above. Use a 16 bit integer
8318 type for all other register pairs.
8319 (rl78_register_name, rl78_g10_register_name): Update for
8320 new pseudo registers.
8321 (rl78_pseudo_register_read): Likewise.
8322 (rl78_pseudo_register_write): Likewise.
8323 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8324 to the newly added pseudo registers.
8325
8326 2014-02-24 Doug Evans <dje@google.com>
8327
8328 * value.c (record_latest_value): Fix comment.
8329 * printcmd.c (print_command_1): Remove code to handle -1 return from
8330 record_latest_value.
8331
8332 2014-02-24 Pedro Alves <palves@redhat.com>
8333
8334 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8335 deprecated_xfer_memory hook.
8336 (procfs_xfer_partial): Call procfs_xfer_memory instead
8337 of the deprecated_xfer_memory target hook.
8338 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8339 helper.
8340
8341 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8342
8343 * windows-nat.c (windows_xfer_shared_libraries): Return
8344 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8345 requested object is TARGET_OBJECT_LIBRARIES.
8346
8347 2014-02-24 Yao Qi <yao@codesourcery.com>
8348
8349 * target.h (enum target_xfer_status)
8350 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8351 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8352 explicitly. New.
8353 * corefile.c (memory_error_message): User updated.
8354 * exec.c (section_table_read_available_memory): Likewise.
8355 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8356 * target.c (target_xfer_status_to_string): Likewise.
8357 (raw_memory_xfer_partial): Likewise.
8358 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8359 * valops.c (read_value_memory): Likewise.
8360 * exec.h: Update comments.
8361
8362 2014-02-24 Yao Qi <yao@codesourcery.com>
8363
8364 * target.c (target_xfer_status_to_string): Rename argument err
8365 to status.
8366 * target.h (target_xfer_status_to_string): Update declaration.
8367 Replace target_xfer_error_to_string with
8368 target_xfer_status_to_string in comment.
8369
8370 2014-02-24 Yao Qi <yao@codesourcery.com>
8371
8372 * mips-linux-nat.c (super_close): Update its type.
8373 (mips_linux_close): Pass 'self' to super_close.
8374
8375 2014-02-24 Yao Qi <yao@codesourcery.com>
8376
8377 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8378 * corefile.c (read_memory): Adjusted.
8379 * target.c (target_write_with_progress): Adjusted.
8380
8381 2014-02-23 Yao Qi <yao@codesourcery.com>
8382
8383 Revert two patches:
8384
8385 2013-10-25 Yao Qi <yao@codesourcery.com>
8386
8387 * remote.c (remote_traceframe_info): Return early if
8388 traceframe is not selected.
8389
8390 2013-07-19 Yao Qi <yao@codesourcery.com>
8391
8392 * target.c (update_current_target): Change the default action
8393 of 'to_traceframe_info' from tcomplain to return_zero.
8394 * target.h (struct target_ops) <to_traceframe_info>: Add more
8395 comments.
8396
8397 2014-02-23 Yao Qi <yao@codesourcery.com>
8398
8399 * valops.c (read_value_memory): Rewrite it. Call
8400 target_xfer_partial in a loop.
8401 * exec.h (section_table_available_memory): Remove declaration.
8402 Move comments to ...
8403 * exec.c (section_table_available_memory): ... here. Make it
8404 static.
8405
8406 2014-02-23 Yao Qi <yao@codesourcery.com>
8407
8408 * exec.c (section_table_read_available_memory): New function.
8409 * exec.h (section_table_read_available_memory): Declare.
8410 * ctf.c (ctf_xfer_partial): Call
8411 section_table_read_available_memory.
8412 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8413
8414 2014-02-23 Yao Qi <yao@codesourcery.com>
8415
8416 * ctf.c (ctf_xfer_partial): Move code to ...
8417 * exec.c (exec_read_partial_read_only): ... it. New function.
8418 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8419 * tracefile.c: Include "exec.h".
8420 * exec.h (exec_read_partial_read_only): Declare.
8421
8422 2014-02-23 Yao Qi <yao@codesourcery.com>
8423
8424 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8425 (tfile_has_memory): Remove.
8426 (init_tfile_ops): Don't set fields to_has_all_memory and
8427 to_has_memory of tfile_ops.
8428 * tracefile.c (tracefile_has_all_memory): New function.
8429 (tracefile_has_memory): New function.
8430 (init_tracefile_ops): Initialize fields to_has_all_memory and
8431 to_has_memory of 'ops'.
8432
8433 2014-02-23 Yao Qi <yao@codesourcery.com>
8434
8435 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8436 (ctf_thread_alive, ctf_get_trace_status): Remove.
8437 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8438 init_tracefile_ops.
8439 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8440 (tfile_has_stack, tfile_has_registers): Remove.
8441 (tfile_thread_alive): Remove.
8442 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8443 init_tracefile_ops.
8444 * tracefile.c (tracefile_has_stack): New function.
8445 (tracefile_has_registers): New function.
8446 (tracefile_thread_alive): New function.
8447 (tracefile_get_trace_status): New function.
8448 (init_tracefile_ops): New function.
8449 * tracefile.h (init_tracefile_ops): Declare.
8450
8451 2014-02-23 Yao Qi <yao@codesourcery.com>
8452
8453 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8454 (O_LARGEFILE): Likewise.
8455 (tfile_ops): Likewise.
8456 (TRACE_HEADER_SIZE): Likewise.
8457 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8458 (cur_data_size): Likewise.
8459 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8460 (tfile_close, tfile_files_info): Likewise.
8461 (tfile_get_trace_status): Likewise.
8462 (tfile_get_tracepoint_status): Likewise.
8463 (tfile_get_traceframe_address): Likewise.
8464 (tfile_trace_find, match_blocktype): Likewise.
8465 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8466 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8467 (tfile_get_trace_state_variable_value): Likewise.
8468 (tfile_has_all_memory, tfile_has_memory): Likewise.
8469 (tfile_has_stack, tfile_has_registers): Likewise.
8470 (tfile_thread_alive, build_traceframe_info): Likewise.
8471 (tfile_traceframe_info, init_tfile_ops): Likewise.
8472 (_initialize_tracepoint): Don't call init_tfile_ops
8473 and add_target_with_completer.
8474 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8475 exec.h, completer.h and filenames.h.
8476 (_initialize_tracefile_tfile): New function.
8477
8478 2014-02-23 Yao Qi <yao@codesourcery.com>
8479
8480 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8481 tracefile-tfile.o.
8482 (HFILES_NO_SRCDIR): Add tracefile.h.
8483 * ctf.c: Include "tracefile.h".
8484 * tracefile.h: New file.
8485 * tracefile.c: New file
8486 * tracefile-tfile.c: New file.
8487 * tracepoint.c: Include "tracefile.h".
8488 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8489 (stop_reason_names): Add const.
8490 (trace_file_writer_xfree): Move it to tracefile.c.
8491 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8492 (trace_save_ctf): Likewise.
8493 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8494 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8495 (tfile_write_header, tfile_write_regblock_type): Likewise.
8496 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8497 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8498 (tfile_write_raw_data, tfile_end): Likewise.
8499 (tfile_trace_file_writer_new): Likewise.
8500 (free_uploaded_tp): Make it extern.
8501 (free_uploaded_tsv): Make it extern.
8502 (_initialize_tracepoint): Move code to register command 'tsave'
8503 to tracefile.c.
8504 * tracepoint.h (stop_reason_names): Declare.
8505 (struct trace_frame_write_ops): Move it to tracefile.h.
8506 (struct trace_file_write_ops): Likewise.
8507 (struct trace_file_writer): Likewise.
8508 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8509
8510 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8511
8512 PR gdb/16594
8513 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8514 process name.
8515 (get_cores_used_by_process): New parameter num_cores, use it.
8516 (linux_xfer_osdata_processes): Pass num_cores to it.
8517 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8518 process name.
8519
8520 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8521
8522 * target.c (memory_xfer_partial): Fix length arg in call to
8523 breakpoint_xfer_memory.
8524
8525 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8526
8527 PR tdep/16397
8528 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8529 number comes after the + or - signs. Adjust length of register
8530 name to be extracted.
8531
8532 2014-02-20 Tom Tromey <tromey@redhat.com>
8533
8534 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8535 (ada_varobj_ops): Mark "extern".
8536
8537 2014-02-20 Tom Tromey <tromey@redhat.com>
8538
8539 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8540
8541 2014-02-20 Doug Evans <xdje42@gmail.com>
8542
8543 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8544 All callers updated.
8545 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8546 All callers updated.
8547 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8548 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8549
8550 2014-02-20 lin zuojian <manjian2006@gmail.com>
8551 Joel Brobecker <brobecker@adacore.com>
8552 Doug Evans <xdje42@gmail.com>
8553
8554 PR symtab/16581
8555 * dwarf2read.c (struct die_info): New member in_process.
8556 (reset_die_in_process): New function.
8557 (process_die): Set it at the start, reset when returning.
8558 (inherit_abstract_dies): Only call process_die if origin_child_die
8559 not already being processed.
8560
8561 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8562
8563 * windows-nat.c (handle_unload_dll): Add function documentation.
8564 (do_initial_windows_stuff): Add comment explaining why we wait
8565 until after inferior initialization has finished before
8566 processing all DLLs.
8567
8568 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8569
8570 * windows-nat.c (get_module_name): Delete.
8571 (windows_get_exec_module_filename): New function, mostly
8572 inspired from get_module_name.
8573 (windows_pid_to_exec_file): Replace call to get_module_name
8574 by call to windows_get_exec_module_filename.
8575
8576 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8577
8578 * windows-nat.c (handle_load_dll): Rewrite this function's
8579 introductory comment. Remove code using get_module_name
8580 to get the DLL's name.
8581
8582 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8583
8584 * windows-nat.c (get_windows_debug_event): Ignore
8585 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8586 if windows_initialization_done == 0.
8587 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8588 Adjust implementation to always load all DLLs.
8589 (do_initial_windows_stuff): Replace call to
8590 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8591
8592 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8593
8594 * windows-nat.c (_initialize_windows_nat): Deprecate the
8595 "dll-symbols" command. Turn the "add-shared-symbol-files"
8596 and "assf" aliases into commands, and deprecate them as well.
8597 * NEWS: Add entry explaining that "dll-symbols" and its two
8598 aliases are now deprecated.
8599
8600 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8601
8602 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8603 new-line in debug string. Remove trailing spaces.
8604
8605 2014-02-19 Stan Shebs <stan@codesourcery.com>
8606
8607 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8608
8609 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8610
8611 * NEWS: Add entry for the new feature
8612 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8613 and class values.
8614
8615 2014-02-19 Stan Shebs <stan@codesourcery.com>
8616
8617 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8618
8619 2014-02-19 Pedro Alves <palves@redhat.com>
8620
8621 * common/ptid.h (struct ptid): Mention that process_stratum
8622 targets should prefer ptid.lwp.
8623
8624 2014-02-19 Pedro Alves <palves@redhat.com>
8625
8626 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8627 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8628 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8629 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8630 store remote thread ids rather than ptid.tid.
8631 (_initialize_remote): Adjust.
8632
8633 2014-02-19 Tom Tromey <tromey@redhat.com>
8634
8635 * target.c (target_get_unwinder): Rewrite.
8636 (target_get_tailcall_unwinder): Rewrite.
8637 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8638 (record_btrace_to_get_tailcall_unwinder): New function.
8639 (init_record_btrace_ops): Update.
8640 * target.h (struct target_ops) <to_get_unwinder,
8641 to_get_tailcall_unwinder>: Now function pointers. Use
8642 TARGET_DEFAULT_RETURN.
8643
8644 2014-02-19 Tom Tromey <tromey@redhat.com>
8645
8646 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8647 argument.
8648 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8649
8650 2014-02-19 Tom Tromey <tromey@redhat.com>
8651
8652 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8653 directly.
8654 * target-delegates.c: Rebuild.
8655 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8656 TARGET_DEFAULT_FUNC.
8657 * target.c (default_target_decr_pc_after_break): Rename from
8658 forward_target_decr_pc_after_break. Simplify.
8659 (target_decr_pc_after_break): Rely on delegation.
8660
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * target.c (update_current_target): Do not INHERIT to_doc or
8664 to_magic. Do not de_fault to_open or to_close.
8665
8666 2014-02-19 Tom Tromey <tromey@redhat.com>
8667
8668 * gcore.h (objfile_find_memory_regions): Declare.
8669 * gcore.c (objfile_find_memory_regions): No longer static. Add
8670 "self" argument.
8671 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8672 * exec.c: Include gcore.h.
8673 (exec_set_find_memory_regions): Remove.
8674 (exec_find_memory_regions): Remove.
8675 (exec_do_find_memory_regions): Remove.
8676 (init_exec_ops): Update.
8677 * defs.h (exec_set_find_memory_regions): Remove.
8678
8679 2014-02-19 Tom Tromey <tromey@redhat.com>
8680
8681 * target-delegates.c: Rebuild.
8682 * target.h (struct target_ops) <to_extra_thread_info,
8683 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8684 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8685 not 0, in TARGET_DEFAULT_RETURN.
8686
8687 2014-02-19 Tom Tromey <tromey@redhat.com>
8688
8689 * target.c (complete_target_initialization): Remove casts. Use
8690 return_zero_has_execution.
8691 (return_zero): Add "ignore" argument.
8692 (return_zero_has_execution): New function.
8693 (init_dummy_target): Remove casts. Use
8694 return_zero_has_execution.
8695
8696 2014-02-19 Tom Tromey <tromey@redhat.com>
8697
8698 * target.c (update_current_target): Update comments. Do not
8699 INHERIT to_stratum.
8700
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8702
8703 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8704 needed.
8705 * corelow.c (core_read_description): Delegate when needed.
8706 * remote.c (remote_read_description): Delegate when needed.
8707 * target-delegates.c: Rebuild.
8708 * target.c (target_read_description): Rewrite.
8709 * target.h (struct target_ops) <to_read_description>: Update
8710 comment. Use TARGET_DEFAULT_RETURN.
8711
8712 2014-02-19 Tom Tromey <tromey@redhat.com>
8713
8714 * target-delegates.c: Rebuild.
8715 * target.c (update_current_target): Don't inherit or default
8716 to_can_run.
8717 (find_default_run_target): Check against delegate_can_run.
8718 * target.h (struct target_ops) <to_can_run>: Use
8719 TARGET_DEFAULT_RETURN.
8720
8721 2014-02-19 Tom Tromey <tromey@redhat.com>
8722
8723 * target-delegates.c: Rebuild.
8724 * target.c (target_disconnect): Unconditionally delegate.
8725 * target.h (struct target_ops) <to_disconnect>: Use
8726 TARGET_DEFAULT_NORETURN.
8727
8728 2014-02-19 Tom Tromey <tromey@redhat.com>
8729
8730 * record.c (record_stop): Unconditionally delegate.
8731 * target-delegates.c: Rebuild.
8732 * target.c (target_stop_recording): Unconditionally delegate.
8733 * target.h (struct target_ops) <to_stop_recording>: Use
8734 TARGET_DEFAULT_IGNORE.
8735
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8737
8738 * target-delegates.c: Rebuild.
8739 * target.c (target_enable_btrace): Unconditionally delegate.
8740 * target.h (struct target_ops) <to_enable_btrace>: Use
8741 TARGET_DEFAULT_NORETURN.
8742
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8744
8745 * target-delegates.c: Rebuild.
8746 * target.c (target_read_btrace): Unconditionally delegate.
8747 * target.h (struct target_ops) <to_read_btrace>: Use
8748 TARGET_DEFAULT_NORETURN.
8749
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8751
8752 * target-delegates.c: Rebuild.
8753 * target.c (target_teardown_btrace): Unconditionally delegate.
8754 * target.h (struct target_ops) <to_teardown_btrace>: Use
8755 TARGET_DEFAULT_NORETURN.
8756
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target-delegates.c: Rebuild.
8760 * target.c (target_disable_btrace): Unconditionally delegate.
8761 * target.h (struct target_ops) <to_disable_btrace>: Use
8762 TARGET_DEFAULT_NORETURN.
8763
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8765
8766 * target-delegates.c: Rebuild.
8767 * target.c (default_search_memory): New function.
8768 (simple_search_memory): Update comment.
8769 (target_search_memory): Unconditionally delegate.
8770 * target.h (struct target_ops) <to_search_memory>: Use
8771 TARGET_DEFAULT_FUNC.
8772
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8774
8775 * auxv.c (default_auxv_parse): No longer static.
8776 (target_auxv_parse): Unconditionally delegate.
8777 * auxv.h (default_auxv_parse): Declare.
8778 * target-delegates.c: Rebuild.
8779 * target.c: Include auxv.h.
8780 * target.h (struct target_ops) <to_auxv_parse>: Use
8781 TARGET_DEFAULT_FUNC.
8782
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8784
8785 * target-delegates.c: Rebuild.
8786 * target.c (target_memory_map): Unconditionally delegate.
8787 * target.h (struct target_ops) <to_memory_map>: Use
8788 TARGET_DEFAULT_RETURN.
8789
8790 2014-02-19 Tom Tromey <tromey@redhat.com>
8791
8792 * target-delegates.c: Rebuild.
8793 * target.c (target_thread_alive): Unconditionally delegate.
8794 * target.h (struct target_ops) <to_thread_alive>: Use
8795 TARGET_DEFAULT_RETURN.
8796
8797 2014-02-19 Tom Tromey <tromey@redhat.com>
8798
8799 * target-delegates.c: Rebuild.
8800 * target.c (target_save_record): Unconditionally delegate.
8801 * target.h (struct target_ops) <to_save_record>: Use
8802 TARGET_DEFAULT_NORETURN.
8803
8804 2014-02-19 Tom Tromey <tromey@redhat.com>
8805
8806 * target-delegates.c: Rebuild.
8807 * target.c (target_delete_record): Unconditionally delegate.
8808 * target.h (struct target_ops) <to_delete_record>: Use
8809 TARGET_DEFAULT_NORETURN.
8810
8811 2014-02-19 Tom Tromey <tromey@redhat.com>
8812
8813 * target-delegates.c: Rebuild.
8814 * target.c (target_record_is_replaying): Unconditionally
8815 delegate.
8816 * target.h (struct target_ops) <to_record_is_replaying>: Use
8817 TARGET_DEFAULT_RETURN.
8818
8819 2014-02-19 Tom Tromey <tromey@redhat.com>
8820
8821 * target-delegates.c: Rebuild.
8822 * target.c (target_goto_record_begin): Unconditionally delegate.
8823 * target.h (struct target_ops) <to_goto_record_begin>: Use
8824 TARGET_DEFAULT_NORETURN.
8825
8826 2014-02-19 Tom Tromey <tromey@redhat.com>
8827
8828 * target-delegates.c: Rebuild.
8829 * target.c (target_goto_record_end): Unconditionally delegate.
8830 * target.h (struct target_ops) <to_goto_record_end>: Use
8831 TARGET_DEFAULT_NORETURN.
8832
8833 2014-02-19 Tom Tromey <tromey@redhat.com>
8834
8835 * target-delegates.c: Rebuild.
8836 * target.c (target_goto_record): Unconditionally delegate.
8837 * target.h (struct target_ops) <to_goto_record>: Use
8838 TARGET_DEFAULT_NORETURN.
8839
8840 2014-02-19 Tom Tromey <tromey@redhat.com>
8841
8842 * target-delegates.c: Rebuild.
8843 * target.c (target_insn_history): Unconditionally delegate.
8844 * target.h (struct target_ops) <to_insn_history>: Use
8845 TARGET_DEFAULT_NORETURN.
8846
8847 2014-02-19 Tom Tromey <tromey@redhat.com>
8848
8849 * target-delegates.c: Rebuild.
8850 * target.c (target_insn_history_from): Unconditionally delegate.
8851 * target.h (struct target_ops) <to_insn_history_from>: Use
8852 TARGET_DEFAULT_NORETURN.
8853
8854 2014-02-19 Tom Tromey <tromey@redhat.com>
8855
8856 * target-delegates.c: Rebuild.
8857 * target.c (target_insn_history_range): Unconditionally delegate.
8858 * target.h (struct target_ops) <to_insn_history_range>: Use
8859 TARGET_DEFAULT_NORETURN.
8860
8861 2014-02-19 Tom Tromey <tromey@redhat.com>
8862
8863 * target-delegates.c: Rebuild.
8864 * target.c (target_call_history): Unconditionally delegate.
8865 * target.h (struct target_ops) <to_call_history>: Use
8866 TARGET_DEFAULT_NORETURN.
8867
8868 2014-02-19 Tom Tromey <tromey@redhat.com>
8869
8870 * target-delegates.c: Rebuild.
8871 * target.c (target_call_history_from): Unconditionally delegate.
8872 * target.h (struct target_ops) <to_call_history_from>: Use
8873 TARGET_DEFAULT_NORETURN.
8874
8875 2014-02-19 Tom Tromey <tromey@redhat.com>
8876
8877 * target-delegates.c: Rebuild.
8878 * target.c (target_call_history_range): Unconditionally delegate.
8879 * target.h (struct target_ops) <to_call_history_range>: Use
8880 TARGET_DEFAULT_NORETURN.
8881
8882 2014-02-19 Tom Tromey <tromey@redhat.com>
8883
8884 * target-delegates.c: Rebuild.
8885 * target.c (target_verify_memory): Unconditionally delegate.
8886 * target.h (struct target_ops) <to_verify_memory>: Use
8887 TARGET_DEFAULT_NORETURN.
8888
8889 2014-02-19 Tom Tromey <tromey@redhat.com>
8890
8891 * target-delegates.c: Rebuild.
8892 * target.c (target_core_of_thread): Unconditionally delegate.
8893 * target.h (struct target_ops) <to_core_of_thread>: Use
8894 TARGET_DEFAULT_RETURN.
8895
8896 2014-02-19 Tom Tromey <tromey@redhat.com>
8897
8898 * target-delegates.c: Rebuild.
8899 * target.c (target_flash_done): Unconditionally delegate.
8900 * target.h (struct target_ops) <to_flash_done>: Use
8901 TARGET_DEFAULT_NORETURN.
8902
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * target-delegates.c: Rebuild.
8906 * target.c (target_flash_erase): Unconditionally delegate.
8907 * target.h (struct target_ops) <to_flash_erase>: Use
8908 TARGET_DEFAULT_NORETURN.
8909
8910 2014-02-19 Tom Tromey <tromey@redhat.com>
8911
8912 * target-delegates.c: Rebuild.
8913 * target.c (target_get_section_table): Unconditionally delegate.
8914 * target.h (struct target_ops) <to_get_section_table>: Use
8915 TARGET_DEFAULT_RETURN.
8916
8917 2014-02-19 Tom Tromey <tromey@redhat.com>
8918
8919 * target-delegates.c: Rebuild.
8920 * target.c (target_pid_to_str): Unconditionally delegate.
8921 (init_dummy_target): Don't initialize to_pid_to_str.
8922 (default_pid_to_str): Rename from dummy_pid_to_str.
8923 * target.h (struct target_ops) <to_pid_to_str>: Use
8924 TARGET_DEFAULT_FUNC.
8925
8926 2014-02-19 Tom Tromey <tromey@redhat.com>
8927
8928 * target-delegates.c: Rebuild.
8929 * target.c (target_find_new_threads): Unconditionally delegate.
8930 * target.h (struct target_ops) <to_find_new_threads>: Use
8931 TARGET_DEFAULT_RETURN.
8932
8933 2014-02-19 Tom Tromey <tromey@redhat.com>
8934
8935 * target-delegates.c: Rebuild.
8936 * target.c (target_program_signals): Unconditionally delegate.
8937 * target.h (struct target_ops) <to_program_signals>: Use
8938 TARGET_DEFAULT_IGNORE.
8939
8940 2014-02-19 Tom Tromey <tromey@redhat.com>
8941
8942 * target-delegates.c: Rebuild.
8943 * target.c (target_pass_signals): Unconditionally delegate.
8944 * target.h (struct target_ops) <to_pass_signals>: Use
8945 TARGET_DEFAULT_IGNORE.
8946
8947 2014-02-19 Tom Tromey <tromey@redhat.com>
8948
8949 * target-delegates.c: Rebuild.
8950 * target.c (default_mourn_inferior): New function.
8951 (target_mourn_inferior): Unconditionally delegate.
8952 * target.h (struct target_ops) <to_mourn_inferior>: Use
8953 TARGET_DEFAULT_FUNC.
8954
8955 2014-02-19 Tom Tromey <tromey@redhat.com>
8956
8957 * target-delegates.c: Rebuild.
8958 * target.c (default_follow_fork): New function.
8959 (target_follow_fork): Unconditionally delegate.
8960 * target.h (struct target_ops) <to_follow_fork>: Use
8961 TARGET_DEFAULT_FUNC.
8962
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8964
8965 * target-delegates.c: Rebuild.
8966 * target.c (target_kill): Unconditionally delegate.
8967 * target.h (struct target_ops) <to_kill>: Use
8968 TARGET_DEFAULT_NORETURN.
8969
8970 2014-02-19 Tom Tromey <tromey@redhat.com>
8971
8972 * target-delegates.c: Rebuild.
8973 * target.c (target_masked_watch_num_registers): Unconditionally
8974 delegate.
8975 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8976 Use TARGET_DEFAULT_RETURN.
8977
8978 2014-02-19 Tom Tromey <tromey@redhat.com>
8979
8980 * target-delegates.c: Rebuild.
8981 * target.c (target_remove_mask_watchpoint): Unconditionally
8982 delegate.
8983 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8984 TARGET_DEFAULT_RETURN.
8985
8986 2014-02-19 Tom Tromey <tromey@redhat.com>
8987
8988 * target-delegates.c: Rebuild.
8989 * target.c (target_insert_mask_watchpoint): Unconditionally
8990 delegate.
8991 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8992 TARGET_DEFAULT_RETURN.
8993
8994 2014-02-19 Tom Tromey <tromey@redhat.com>
8995
8996 * target-delegates.c: Rebuild.
8997 * target.c (target_ranged_break_num_registers): Unconditionally
8998 delegate.
8999 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9000 Use TARGET_DEFAULT_RETURN.
9001
9002 2014-02-19 Tom Tromey <tromey@redhat.com>
9003
9004 * target-delegates.c: Rebuild.
9005 * target.c (target_fetch_registers): Unconditionally delegate.
9006 * target.h (struct target_ops) <to_fetch_registers>: Use
9007 TARGET_DEFAULT_NORETURN.
9008
9009 2014-02-19 Tom Tromey <tromey@redhat.com>
9010
9011 * target-delegates.c: Rebuild.
9012 * target.c (update_current_target): Don't inherit or default
9013 to_stop.
9014 * target.h (struct target_ops) <to_stop>: Use
9015 TARGET_DEFAULT_IGNORE.
9016
9017 2014-02-19 Tom Tromey <tromey@redhat.com>
9018
9019 * target-delegates.c: Rebuild.
9020 * target.c (update_current_target): Don't inherit or default
9021 to_can_run_breakpoint_commands.
9022 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9023 Use TARGET_DEFAULT_RETURN.
9024
9025 2014-02-19 Tom Tromey <tromey@redhat.com>
9026
9027 * target-delegates.c: Rebuild.
9028 * target.c (update_current_target): Don't inherit or default
9029 to_supports_evaluation_of_breakpoint_conditions.
9030 * target.h (struct target_ops)
9031 <to_supports_evaluation_of_breakpoint_conditions>: Use
9032 TARGET_DEFAULT_RETURN.
9033
9034 2014-02-19 Tom Tromey <tromey@redhat.com>
9035
9036 * target-delegates.c: Rebuild.
9037 * target.c (update_current_target): Don't inherit or default
9038 to_augmented_libraries_svr4_read.
9039 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9040 Use TARGET_DEFAULT_RETURN.
9041
9042 2014-02-19 Tom Tromey <tromey@redhat.com>
9043
9044 * target-delegates.c: Rebuild.
9045 * target.c (update_current_target): Don't inherit or default
9046 to_can_use_agent.
9047 * target.h (struct target_ops) <to_can_use_agent>: Use
9048 TARGET_DEFAULT_RETURN.
9049
9050 2014-02-19 Tom Tromey <tromey@redhat.com>
9051
9052 * target-delegates.c: Rebuild.
9053 * target.c (update_current_target): Don't inherit or default
9054 to_use_agent.
9055 * target.h (struct target_ops) <to_use_agent>: Use
9056 TARGET_DEFAULT_NORETURN.
9057
9058 2014-02-19 Tom Tromey <tromey@redhat.com>
9059
9060 * target-delegates.c: Rebuild.
9061 * target.c (update_current_target): Don't inherit or default
9062 to_traceframe_info.
9063 (return_null): Remove.
9064 * target.h (struct target_ops) <to_traceframe_info>: Use
9065 TARGET_DEFAULT_RETURN.
9066
9067 2014-02-19 Tom Tromey <tromey@redhat.com>
9068
9069 * target-delegates.c: Rebuild.
9070 * target.c (update_current_target): Don't inherit or default
9071 to_static_tracepoint_markers_by_strid.
9072 * target.h (struct target_ops)
9073 <to_static_tracepoint_markers_by_strid>: Use
9074 TARGET_DEFAULT_NORETURN.
9075
9076 2014-02-19 Tom Tromey <tromey@redhat.com>
9077
9078 * target-delegates.c: Rebuild.
9079 * target.c (update_current_target): Don't inherit or default
9080 to_static_tracepoint_marker_at.
9081 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9082 Use TARGET_DEFAULT_RETURN.
9083
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9085
9086 * target-delegates.c: Rebuild.
9087 * target.c (update_current_target): Don't inherit or default
9088 to_set_permissions.
9089 * target.h (struct target_ops) <to_set_permissions>: Use
9090 TARGET_DEFAULT_IGNORE.
9091
9092 2014-02-19 Tom Tromey <tromey@redhat.com>
9093
9094 * target-delegates.c: Rebuild.
9095 * target.c (update_current_target): Don't inherit or default
9096 to_get_tib_address.
9097 * target.h (struct target_ops) <to_get_tib_address>: Use
9098 TARGET_DEFAULT_NORETURN.
9099
9100 2014-02-19 Tom Tromey <tromey@redhat.com>
9101
9102 * target-delegates.c: Rebuild.
9103 * target.c (update_current_target): Don't inherit or default
9104 to_set_trace_notes.
9105 * target.h (struct target_ops) <to_set_trace_notes>: Use
9106 TARGET_DEFAULT_RETURN.
9107
9108 2014-02-19 Tom Tromey <tromey@redhat.com>
9109
9110 * target-delegates.c: Rebuild.
9111 * target.c (update_current_target): Don't initialize
9112 to_set_trace_buffer_size.
9113 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9114 TARGET_DEFAULT_IGNORE.
9115
9116 2014-02-19 Tom Tromey <tromey@redhat.com>
9117
9118 * target-delegates.c: Rebuild.
9119 * target.c (update_current_target): Don't inherit or default
9120 to_set_circular_trace_buffer.
9121 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9122 TARGET_DEFAULT_IGNORE.
9123
9124 2014-02-19 Tom Tromey <tromey@redhat.com>
9125
9126 * target-delegates.c: Rebuild.
9127 * target.c (update_current_target): Don't inherit or default
9128 to_set_disconnected_tracing.
9129 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9130 TARGET_DEFAULT_IGNORE.
9131
9132 2014-02-19 Tom Tromey <tromey@redhat.com>
9133
9134 * target-delegates.c: Rebuild.
9135 * target.c (update_current_target): Don't inherit or default
9136 to_get_min_fast_tracepoint_insn_len.
9137 (return_minus_one): Remove.
9138 * target.h (struct target_ops)
9139 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9140
9141 2014-02-19 Tom Tromey <tromey@redhat.com>
9142
9143 * target-delegates.c: Rebuild.
9144 * target.c (update_current_target): Don't inherit or default
9145 to_get_raw_trace_data.
9146 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9147 TARGET_DEFAULT_NORETURN.
9148
9149 2014-02-19 Tom Tromey <tromey@redhat.com>
9150
9151 * target-delegates.c: Rebuild.
9152 * target.c (update_current_target): Don't inherit or default
9153 to_upload_trace_state_variables.
9154 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9155 Use TARGET_DEFAULT_RETURN.
9156
9157 2014-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_upload_tracepoints.
9162 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9163 TARGET_DEFAULT_RETURN.
9164
9165 2014-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_save_trace_data.
9170 * target.h (struct target_ops) <to_save_trace_data>: Use
9171 TARGET_DEFAULT_NORETURN.
9172
9173 2014-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_state_variable_value.
9178 * target.h (struct target_ops)
9179 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9180
9181 2014-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_find.
9186 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9187
9188 2014-02-19 Tom Tromey <tromey@redhat.com>
9189
9190 * target-delegates.c: Rebuild.
9191 * target.c (update_current_target): Don't inherit or default
9192 to_trace_stop.
9193 * target.h (struct target_ops) <to_trace_stop>: Use
9194 TARGET_DEFAULT_NORETURN.
9195
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9197
9198 * target-delegates.c: Rebuild.
9199 * target.c (update_current_target): Don't inherit or default
9200 to_get_tracepoint_status.
9201 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9202 TARGET_DEFAULT_NORETURN.
9203
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9205
9206 * target-delegates.c: Rebuild.
9207 * target.c (update_current_target): Don't inherit or default
9208 to_get_trace_status.
9209 * target.h (struct target_ops) <to_get_trace_status>: Use
9210 TARGET_DEFAULT_RETURN.
9211
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9213
9214 * target-delegates.c: Rebuild.
9215 * target.c (update_current_target): Don't inherit or default
9216 to_trace_start.
9217 * target.h (struct target_ops) <to_trace_start>: Use
9218 TARGET_DEFAULT_NORETURN.
9219
9220 2014-02-19 Tom Tromey <tromey@redhat.com>
9221
9222 * target-delegates.c: Rebuild.
9223 * target.c (update_current_target): Don't inherit or default
9224 to_trace_set_readonly_regions.
9225 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9226 Use TARGET_DEFAULT_NORETURN.
9227
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9229
9230 * target-delegates.c: Rebuild.
9231 * target.c (update_current_target): Don't inherit or default
9232 to_disable_tracepoint.
9233 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9234 TARGET_DEFAULT_NORETURN.
9235
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9237
9238 * target-delegates.c: Rebuild.
9239 * target.c (update_current_target): Don't inherit or default
9240 to_enable_tracepoint.
9241 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9242 TARGET_DEFAULT_NORETURN.
9243
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9245
9246 * target-delegates.c: Rebuild.
9247 * target.c (update_current_target): Don't inherit or default
9248 to_download_trace_state_variable.
9249 * target.h (struct target_ops) <to_download_trace_state_variable>:
9250 Use TARGET_DEFAULT_NORETURN.
9251
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9253
9254 * target-delegates.c: Rebuild.
9255 * target.c (update_current_target): Don't inherit or default
9256 to_can_download_tracepoint.
9257 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9258 TARGET_DEFAULT_RETURN.
9259
9260 2014-02-19 Tom Tromey <tromey@redhat.com>
9261
9262 * target-delegates.c: Rebuild.
9263 * target.c (update_current_target): Don't inherit or default
9264 to_download_tracepoint.
9265 * target.h (struct target_ops) <to_download_tracepoint>: Use
9266 TARGET_DEFAULT_NORETURN.
9267
9268 2014-02-19 Tom Tromey <tromey@redhat.com>
9269
9270 * target-delegates.c: Rebuild.
9271 * target.c (update_current_target): Don't inherit or default
9272 to_trace_init.
9273 * target.h (struct target_ops) <to_trace_init>: Use
9274 TARGET_DEFAULT_RETURN.
9275
9276 2014-02-19 Tom Tromey <tromey@redhat.com>
9277
9278 * target-delegates.c: Rebuild.
9279 * target.c (update_current_target): Don't inherit or default
9280 to_supports_string_tracing.
9281 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9282 TARGET_DEFAULT_RETURN.
9283
9284 2014-02-19 Tom Tromey <tromey@redhat.com>
9285
9286 * target-delegates.c: Rebuild.
9287 * target.c (update_current_target): Don't inherit or default
9288 to_supports_enable_disable_tracepoint.
9289 * target.h (struct target_ops)
9290 <to_supports_enable_disable_tracepoint>: Use
9291 TARGET_DEFAULT_RETURN.
9292
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9294
9295 * target-delegates.c: Rebuild.
9296 * target.c (update_current_target): Don't inherit or default
9297 to_supports_multi_process.
9298 * target.h (struct target_ops) <to_supports_multi_process>: Use
9299 TARGET_DEFAULT_RETURN.
9300
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9302
9303 * target-delegates.c: Rebuild.
9304 * target.c (update_current_target): Don't inherit or default
9305 to_get_ada_task_ptid.
9306 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9307 TARGET_DEFAULT_FUNC.
9308
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * target-delegates.c: Rebuild.
9312 * target.c (update_current_target): Don't inherit or default
9313 to_thread_architecture.
9314 * target.h (struct target_ops) <to_thread_architecture>: Use
9315 TARGET_DEFAULT_FUNC.
9316
9317 2014-02-19 Tom Tromey <tromey@redhat.com>
9318
9319 * target-delegates.c: Rebuild.
9320 * target.c (update_current_target): Don't inherit or default
9321 to_execution_direction.
9322 * target.h (struct target_ops) <to_execution_direction>: Use
9323 TARGET_DEFAULT_FUNC.
9324
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target-delegates.c: Rebuild.
9328 * target.c (update_current_target): Don't inherit or default
9329 to_can_execute_reverse.
9330 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9331 TARGET_DEFAULT_RETURN.
9332 (target_can_execute_reverse): Unconditionally delegate.
9333
9334 2014-02-19 Tom Tromey <tromey@redhat.com>
9335
9336 * target-delegates.c: Rebuild.
9337 * target.c (update_current_target): Don't inherit or default
9338 to_goto_bookmark.
9339 (dummy_goto_bookmark): Remove.
9340 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9341 * target.h (struct target_ops) <to_goto_bookmark>: Use
9342 TARGET_DEFAULT_NORETURN.
9343
9344 2014-02-19 Tom Tromey <tromey@redhat.com>
9345
9346 * target-delegates.c: Rebuild.
9347 * target.c (update_current_target): Don't inherit or default
9348 to_get_bookmark.
9349 (dummy_get_bookmark): Remove.
9350 (init_dummy_target): Don't inherit or default to_get_bookmark.
9351 * target.h (struct target_ops) <to_get_bookmark>: Use
9352 TARGET_DEFAULT_NORETURN
9353
9354 2014-02-19 Tom Tromey <tromey@redhat.com>
9355
9356 * target-delegates.c: Rebuild.
9357 * target.c (update_current_target): Don't inherit or default
9358 to_make_corefile_notes.
9359 (init_dummy_target): Don't initialize to_make_corefile_notes.
9360 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9361 TARGET_DEFAULT_FUNC.
9362
9363 2014-02-19 Tom Tromey <tromey@redhat.com>
9364
9365 * target-delegates.c: Rebuild.
9366 * target.c (update_current_target): Don't inherit or default
9367 to_find_memory_regions.
9368 (init_dummy_target): Don't initialize to_find_memory_regions.
9369 * target.h (struct target_ops) <to_find_memory_regions>: Use
9370 TARGET_DEFAULT_FUNC.
9371
9372 2014-02-19 Tom Tromey <tromey@redhat.com>
9373
9374 * target-delegates.c: Rebuild.
9375 * target.c (update_current_target): Don't inherit or default
9376 to_log_command.
9377 * target.h (struct target_ops) <to_log_command>: Use
9378 TARGET_DEFAULT_IGNORE.
9379 (target_log_command): Unconditionally delegate.
9380
9381 2014-02-19 Tom Tromey <tromey@redhat.com>
9382
9383 * target-delegates.c: Rebuild.
9384 * target.c (update_current_target): Don't inherit or default
9385 to_pid_to_exec_file.
9386 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9387 TARGET_DEFAULT_RETURN.
9388
9389 2014-02-19 Tom Tromey <tromey@redhat.com>
9390
9391 * target-delegates.c: Rebuild.
9392 * target.c (update_current_target): Don't inherit or default
9393 to_thread_name.
9394 (target_thread_name): Unconditionally delegate.
9395 * target.h (struct target_ops) <to_thread_name>: Use
9396 TARGET_DEFAULT_RETURN.
9397
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9399
9400 * target-delegates.c: Rebuild.
9401 * target.c (update_current_target): Don't inherit or default
9402 to_extra_thread_info.
9403 * target.h (struct target_ops) <to_extra_thread_info>: Use
9404 TARGET_DEFAULT_RETURN.
9405
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9407
9408 * target-delegates.c: Rebuild.
9409 * target.c (update_current_target): Don't inherit or default
9410 to_has_exited.
9411 * target.h (struct target_ops) <to_has_exited>: Use
9412 TARGET_DEFAULT_RETURN..
9413
9414 2014-02-19 Tom Tromey <tromey@redhat.com>
9415
9416 * target-delegates.c: Rebuild.
9417 * target.c (update_current_target): Don't inherit or default
9418 to_set_syscall_catchpoint.
9419 (return_one): Remove.
9420 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9421 TARGET_DEFAULT_RETURN.
9422
9423 2014-02-19 Tom Tromey <tromey@redhat.com>
9424
9425 * target-delegates.c: Rebuild.
9426 * target.c (update_current_target): Don't inherit or default
9427 to_insert_exec_catchpoint.
9428 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9429 TARGET_DEFAULT_RETURN.
9430
9431 2014-01-08 Tom Tromey <tromey@redhat.com>
9432
9433 * target-delegates.c: Rebuild.
9434 * target.c (update_current_target): Don't inherit or default
9435 to_insert_exec_catchpoint.
9436 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9437 TARGET_DEFAULT_RETURN.
9438
9439 2014-02-19 Tom Tromey <tromey@redhat.com>
9440
9441 * target-delegates.c: Rebuild.
9442 * target.c (update_current_target): Don't inherit or default
9443 to_remove_vfork_catchpoint.
9444 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9445 TARGET_DEFAULT_RETURN.
9446
9447 2014-02-19 Tom Tromey <tromey@redhat.com>
9448
9449 * target-delegates.c: Rebuild.
9450 * target.c (update_current_target): Don't inherit or default
9451 to_insert_vfork_catchpoint.
9452 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9453 TARGET_DEFAULT_RETURN.
9454
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9456
9457 * target-delegates.c: Rebuild.
9458 * target.c (update_current_target): Don't inherit or default
9459 to_remove_fork_catchpoint.
9460 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9461 TARGET_DEFAULT_RETURN.
9462
9463 2014-02-19 Tom Tromey <tromey@redhat.com>
9464
9465 * target-delegates.c: Rebuild.
9466 * target.c (update_current_target): Don't inherit or default
9467 to_insert_fork_catchpoint.
9468 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9469 TARGET_DEFAULT_RETURN.
9470
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9472
9473 * target-delegates.c: Rebuild.
9474 * target.c (update_current_target): Don't inherit or default
9475 to_post_startup_inferior.
9476 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9477 TARGET_DEFAULT_IGNORE.
9478
9479 2014-02-19 Tom Tromey <tromey@redhat.com>
9480
9481 * target-delegates.c: Rebuild.
9482 * target.c (update_current_target): Don't inherit or default
9483 to_load.
9484 * target.h (struct target_ops) <to_load>: Use
9485 TARGET_DEFAULT_NORETURN.
9486
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9488
9489 * target-delegates.c: Rebuild.
9490 * target.c (update_current_target): Don't inherit or default
9491 to_terminal_info.
9492 * target.h (struct target_ops) <to_terminal_info>: Use
9493 TARGET_DEFAULT_FUNC.
9494
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9496
9497 * target-delegates.c: Rebuild.
9498 * target.c (update_current_target): Don't inherit or default
9499 to_terminal_save_ours.
9500 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9501 TARGET_DEFAULT_IGNORE.
9502
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9504
9505 * target-delegates.c: Rebuild.
9506 * target.c (update_current_target): Don't inherit or default
9507 to_terminal_ours.
9508 * target.h (struct target_ops) <to_terminal_ours>: Use
9509 TARGET_DEFAULT_IGNORE.
9510
9511 2014-02-19 Tom Tromey <tromey@redhat.com>
9512
9513 * target-delegates.c: Rebuild.
9514 * target.c (update_current_target): Don't inherit or default
9515 to_terminal_ours_for_output.
9516 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9517 TARGET_DEFAULT_IGNORE.
9518
9519 2014-02-19 Tom Tromey <tromey@redhat.com>
9520
9521 * target-delegates.c: Rebuild.
9522 * target.c (update_current_target): Don't inherit or default
9523 to_terminal_inferior.
9524 * target.h (struct target_ops) <to_terminal_inferior>: Use
9525 TARGET_DEFAULT_IGNORE.
9526
9527 2014-02-19 Tom Tromey <tromey@redhat.com>
9528
9529 * target-delegates.c: Rebuild.
9530 * target.c (update_current_target): Don't inherit or default
9531 to_terminal_init.
9532 * target.h (struct target_ops) <to_terminal_init>: Use
9533 TARGET_DEFAULT_IGNORE.
9534
9535 2014-02-19 Tom Tromey <tromey@redhat.com>
9536
9537 * target-delegates.c: Rebuild.
9538 * target.c (update_current_target): Don't inherit or default
9539 to_can_accel_watchpoint_condition.
9540 * target.h (struct target_ops)
9541 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9542
9543 2014-02-19 Tom Tromey <tromey@redhat.com>
9544
9545 * target-delegates.c: Rebuild.
9546 * target.c (update_current_target): Don't inherit or default
9547 to_region_ok_for_hw_watchpoint.
9548 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9549 Use TARGET_DEFAULT_FUNC.
9550
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9552
9553 * target-delegates.c: Rebuild.
9554 * target.c (update_current_target): Don't inherit or default
9555 to_watchpoint_addr_within_range.
9556 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9557 Use TARGET_DEFAULT_FUNC.
9558
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9560
9561 * target-delegates.c: Rebuild.
9562 * target.c (update_current_target): Don't inherit or default
9563 to_remove_watchpoint.
9564 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9565 TARGET_DEFAULT_NORETURN.
9566
9567 2014-02-19 Tom Tromey <tromey@redhat.com>
9568
9569 * target-delegates.c: Rebuild.
9570 * target.c (update_current_target): Don't inherit or default
9571 to_insert_watchpoint.
9572 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9573 TARGET_DEFAULT_RETURN.
9574
9575 2014-02-19 Tom Tromey <tromey@redhat.com>
9576
9577 * target-delegates.c: Rebuild.
9578 * target.c (update_current_target): Don't inherit or default
9579 to_remove_hw_breakpoint.
9580 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9581 TARGET_DEFAULT_RETURN.
9582
9583 2014-02-19 Tom Tromey <tromey@redhat.com>
9584
9585 * target-delegates.c: Rebuild.
9586 * target.c (update_current_target): Don't inherit or default
9587 to_insert_hw_breakpoint.
9588 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9589 TARGET_DEFAULT_RETURN.
9590
9591 2014-02-19 Tom Tromey <tromey@redhat.com>
9592
9593 * target-delegates.c: Rebuild.
9594 * target.c (update_current_target): Don't inherit or default
9595 to_can_use_hw_breakpoint.
9596 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9597 TARGET_DEFAULT_RETURN.
9598
9599 2014-02-19 Tom Tromey <tromey@redhat.com>
9600
9601 * target-delegates.c: Rebuild.
9602 * target.c (update_current_target): Don't inherit or default
9603 to_files_info.
9604 * target.h (struct target_ops) <to_files_info>: Use
9605 TARGET_DEFAULT_IGNORE.
9606
9607 2014-02-19 Tom Tromey <tromey@redhat.com>
9608
9609 * target-delegates.c: Rebuild.
9610 * target.c (update_current_target): Don't inherit or default
9611 to_store.
9612 * target.h (struct target_ops) <to_store>: Use
9613 TARGET_DEFAULT_NORETURN.
9614
9615 2014-02-19 Tom Tromey <tromey@redhat.com>
9616
9617 * target-delegates.c: Rebuild.
9618 * target.c (update_current_target): Don't inherit or default
9619 to_post_attach.
9620 * target.h (struct target_ops) <to_post_attach>: Use
9621 TARGET_DEFAULT_IGNORE.
9622
9623 2014-02-19 Tom Tromey <tromey@redhat.com>
9624
9625 * target-delegates.c: Rebuild.
9626 * target.c (update_current_target): Don't inherit or default
9627 to_rcmd.
9628 (default_rcmd): New function.
9629 (do_monitor_command): Unconditionally delegate.
9630 * target.h (struct target_ops) <to_rmcd>: Use
9631 TARGET_DEFAULT_FUNC.
9632
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9634
9635 * target-delegates.c: Rebuild.
9636 * target.c (init_dummy_target): Don't initialize to_attach.
9637 (target_attach): Unconditionally delegate.
9638 * target.h (struct target_ops) <to_attach>: Use
9639 TARGET_DEFAULT_FUNC.
9640
9641 2014-02-19 Tom Tromey <tromey@redhat.com>
9642
9643 * target-delegates.c: Rebuild.
9644 * target.c (target_detach): Unconditionally delegate.
9645 (init_dummy_target): Don't initialize to_detach.
9646 * target.h (struct target_ops) <to_detach>: Use
9647 TARGET_DEFAULT_IGNORE.
9648
9649 2014-02-19 Tom Tromey <tromey@redhat.com>
9650
9651 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9652 Add argument.
9653 (target_augmented_libraries_svr4_read): Add argument.
9654 * target.c (update_current_target): Update.
9655 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9656 argument.
9657
9658 2014-02-19 Tom Tromey <tromey@redhat.com>
9659
9660 * target.h (struct target_ops) <to_call_history_range>: Add
9661 argument.
9662 * target.c (target_call_history_range): Add argument.
9663 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9664 argument.
9665 (record_btrace_call_history_from): Update.
9666
9667 2014-02-19 Tom Tromey <tromey@redhat.com>
9668
9669 * target.h (struct target_ops) <to_call_history_from>: Add
9670 argument.
9671 * target.c (target_call_history_from): Add argument.
9672 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9673 argument.
9674
9675 2014-02-19 Tom Tromey <tromey@redhat.com>
9676
9677 * target.h (struct target_ops) <to_call_history>: Add argument.
9678 * target.c (target_call_history): Add argument.
9679 * record-btrace.c (record_btrace_call_history): Add 'self'
9680 argument.
9681
9682 2014-02-19 Tom Tromey <tromey@redhat.com>
9683
9684 * target.h (struct target_ops) <to_insn_history_range>: Add
9685 argument.
9686 * target.c (target_insn_history_range): Add argument.
9687 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9688 argument.
9689 (record_btrace_insn_history_from): Update.
9690
9691 2014-02-19 Tom Tromey <tromey@redhat.com>
9692
9693 * target.h (struct target_ops) <to_insn_history_from>: Add
9694 argument.
9695 * target.c (target_insn_history_from): Add argument.
9696 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9697 argument.
9698
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9700
9701 * target.h (struct target_ops) <to_insn_history>: Add argument.
9702 * target.c (target_insn_history): Add argument.
9703 * record-btrace.c (record_btrace_insn_history): Add 'self'
9704 argument.
9705
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 * target.h (struct target_ops) <to_goto_record>: Add argument.
9709 * target.c (target_goto_record): Add argument.
9710 * record-full.c (record_full_goto): Add 'self' argument.
9711 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9712
9713 2014-02-19 Tom Tromey <tromey@redhat.com>
9714
9715 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9716 * target.c (target_goto_record_end): Add argument.
9717 * record-full.c (record_full_goto_end): Add 'self' argument.
9718 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9719
9720 2014-02-19 Tom Tromey <tromey@redhat.com>
9721
9722 * target.h (struct target_ops) <to_goto_record_begin>: Add
9723 argument.
9724 * target.c (target_goto_record_begin): Add argument.
9725 * record-full.c (record_full_goto_begin): Add 'self' argument.
9726 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9727 argument.
9728
9729 2014-02-19 Tom Tromey <tromey@redhat.com>
9730
9731 * target.h (struct target_ops) <to_record_is_replaying>: Add
9732 argument.
9733 * target.c (target_record_is_replaying): Add argument.
9734 * record-full.c (record_full_is_replaying): Add 'self' argument.
9735 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9736 argument.
9737 (record_btrace_xfer_partial, record_btrace_store_registers)
9738 (record_btrace_prepare_to_store, record_btrace_resume)
9739 (record_btrace_wait, record_btrace_decr_pc_after_break)
9740 (record_btrace_find_new_threads, record_btrace_thread_alive):
9741 Update.
9742
9743 2014-02-19 Tom Tromey <tromey@redhat.com>
9744
9745 * target.h (struct target_ops) <to_delete_record>: Add argument.
9746 * target.c (target_delete_record): Add argument.
9747 * record-full.c (record_full_delete): Add 'self' argument.
9748
9749 2014-02-19 Tom Tromey <tromey@redhat.com>
9750
9751 * target.h (struct target_ops) <to_save_record>: Add argument.
9752 * target.c (target_save_record): Add argument.
9753 * record-full.c (record_full_save): Add 'self' argument.
9754 (record_full_save): Add 'self' argument.
9755
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9757
9758 * target.h (struct target_ops) <to_info_record>: Add argument.
9759 * target.c (target_info_record): Add argument.
9760 * record.c (info_record_command): Add argument.
9761 * record-full.c (record_full_info): Add 'self' argument.
9762 * record-btrace.c (record_btrace_info): Add 'self' argument.
9763
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9765
9766 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9767 * target.c (target_stop_recording): Add argument.
9768 * record.c (record_stop): Add argument.
9769 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9770 argument.
9771
9772 2014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9775 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9776 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9777 argument.
9778 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9779 (_initialize_amd64_linux_nat): Use it.
9780 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9781 (_initialize_i386_linux_nat): Use it.
9782
9783 2014-02-19 Tom Tromey <tromey@redhat.com>
9784
9785 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9786 * target.c (target_teardown_btrace): Add argument.
9787 * remote.c (remote_teardown_btrace): Add 'self' argument.
9788 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9789 argument.
9790 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9791 argument.
9792
9793 2014-02-19 Tom Tromey <tromey@redhat.com>
9794
9795 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9796 * target.c (target_disable_btrace): Add argument.
9797 * remote.c (remote_disable_btrace): Add 'self' argument.
9798 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9799 argument.
9800 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9801 argument.
9802
9803 2014-02-19 Tom Tromey <tromey@redhat.com>
9804
9805 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9806 * target.c (target_enable_btrace): Add argument.
9807 * remote.c (remote_enable_btrace): Add 'self' argument.
9808 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9809 argument.
9810 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9811 argument.
9812
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9814
9815 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9816 (target_can_use_agent): Add argument.
9817 * target.c (update_current_target): Update.
9818 * remote.c (remote_can_use_agent): Add 'self' argument.
9819 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9820
9821 2014-02-19 Tom Tromey <tromey@redhat.com>
9822
9823 * target.h (struct target_ops) <to_use_agent>: Add argument.
9824 (target_use_agent): Add argument.
9825 * target.c (update_current_target): Update.
9826 * remote.c (remote_use_agent): Add 'self' argument.
9827 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9828
9829 2014-02-19 Tom Tromey <tromey@redhat.com>
9830
9831 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9832 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9833 (target_traceframe_info): Add argument.
9834 * target.c (update_current_target): Update.
9835 * remote.c (remote_traceframe_info): Add 'self' argument.
9836 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9837
9838 2014-02-19 Tom Tromey <tromey@redhat.com>
9839
9840 * target.h (target_static_tracepoint_markers_by_strid): Add
9841 argument.
9842 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9843 'self' argument.
9844 * target.c (update_current_target): Update.
9845 * remote.c (struct target_ops)
9846 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9847 * linux-nat.c (struct target_ops)
9848 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9849
9850 2014-02-19 Tom Tromey <tromey@redhat.com>
9851
9852 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9853 Add argument.
9854 (target_static_tracepoint_marker_at): Add argument.
9855 * target.c (update_current_target): Update.
9856 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9857 argument.
9858
9859 2014-02-19 Tom Tromey <tromey@redhat.com>
9860
9861 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9862 (target_set_permissions): Add argument.
9863 * target.c (update_current_target): Update.
9864 * remote.c (remote_set_permissions): Add 'self' argument.
9865 (remote_start_remote): Update.
9866
9867 2014-02-19 Tom Tromey <tromey@redhat.com>
9868
9869 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9870 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9871 (target_get_tib_address): Add argument.
9872 * target.c (update_current_target): Update.
9873 * remote.c (remote_get_tib_address): Add 'self' argument.
9874
9875 2014-02-19 Tom Tromey <tromey@redhat.com>
9876
9877 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9878 (target_set_trace_notes): Add argument.
9879 * target.c (update_current_target): Update.
9880 * remote.c (remote_set_trace_notes): Add 'self' argument.
9881
9882 2014-02-19 Tom Tromey <tromey@redhat.com>
9883
9884 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9885 argument.
9886 (target_set_trace_buffer_size): Add argument.
9887 * target.c (update_current_target): Update.
9888 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9889
9890 2014-02-19 Tom Tromey <tromey@redhat.com>
9891
9892 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9893 argument.
9894 (target_set_circular_trace_buffer): Add argument.
9895 * target.c (update_current_target): Update.
9896 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9897 argument.
9898
9899 2014-02-19 Tom Tromey <tromey@redhat.com>
9900
9901 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9902 argument.
9903 (target_set_disconnected_tracing): Add argument.
9904 * target.c (update_current_target): Update.
9905 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9906
9907 2014-02-19 Tom Tromey <tromey@redhat.com>
9908
9909 * target.h (struct target_ops)
9910 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9911 (target_get_min_fast_tracepoint_insn_len): Add argument.
9912 * target.c (update_current_target): Update.
9913 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9914 argument.
9915
9916 2014-02-19 Tom Tromey <tromey@redhat.com>
9917
9918 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9919 argument.
9920 (target_get_raw_trace_data): Add argument.
9921 * target.c (update_current_target): Update.
9922 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9923
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9925
9926 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9927 Add argument.
9928 (target_upload_trace_state_variables): Add argument.
9929 * target.c (update_current_target): Update.
9930 * remote.c (remote_upload_trace_state_variables): Add 'self'
9931 argument.
9932 (remote_start_remote): Update.
9933
9934 2014-02-19 Tom Tromey <tromey@redhat.com>
9935
9936 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9937 argument.
9938 (target_upload_tracepoints): Add argument.
9939 * target.c (update_current_target): Update.
9940 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9941 (remote_start_remote): Update.
9942
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9944
9945 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9946 (target_save_trace_data): Add argument.
9947 * target.c (update_current_target): Update.
9948 * remote.c (remote_save_trace_data): Add 'self' argument.
9949
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9951
9952 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9953 argument.
9954 * target.h (struct target_ops)
9955 <to_get_trace_state_variable_value>: Add argument.
9956 (target_get_trace_state_variable_value): Add argument.
9957 * target.c (update_current_target): Update.
9958 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9959 argument.
9960 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9961
9962 2014-02-19 Tom Tromey <tromey@redhat.com>
9963
9964 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9965 * target.h (struct target_ops) <to_trace_find>: Add argument.
9966 (target_trace_find): Add argument.
9967 * target.c (update_current_target): Update.
9968 * remote.c (remote_trace_find): Add 'self' argument.
9969 * ctf.c (ctf_trace_find): Add 'self' argument.
9970
9971 2014-02-19 Tom Tromey <tromey@redhat.com>
9972
9973 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9974 (target_trace_stop): Add argument.
9975 * target.c (update_current_target): Update.
9976 * remote.c (remote_trace_stop): Add 'self' argument.
9977
9978 2014-02-19 Tom Tromey <tromey@redhat.com>
9979
9980 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9981 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9982 argument.
9983 (target_get_tracepoint_status): Add argument.
9984 * target.c (update_current_target): Update.
9985 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9986
9987 2014-02-19 Tom Tromey <tromey@redhat.com>
9988
9989 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9990 * target.h (struct target_ops) <to_get_trace_status>: Add
9991 argument.
9992 (target_get_trace_status): Add argument.
9993 * target.c (update_current_target): Update.
9994 * remote.c (remote_get_trace_status): Add 'self' argument.
9995 (remote_start_remote, remote_can_download_tracepoint): Update.
9996 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9997
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
9999
10000 * target.h (struct target_ops) <to_trace_start>: Add argument.
10001 (target_trace_start): Add argument.
10002 * target.c (update_current_target): Update.
10003 * remote.c (remote_trace_start): Add 'self' argument.
10004
10005 2014-02-19 Tom Tromey <tromey@redhat.com>
10006
10007 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10008 Add argument.
10009 (target_trace_set_readonly_regions): Add argument.
10010 * target.c (update_current_target): Update.
10011 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10012 argument.
10013
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10017 argument.
10018 (target_disable_tracepoint): Add argument.
10019 * target.c (update_current_target): Update.
10020 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10021
10022 2014-02-19 Tom Tromey <tromey@redhat.com>
10023
10024 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10025 argument.
10026 (target_enable_tracepoint): Add argument.
10027 * target.c (update_current_target): Update.
10028 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10029
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10031
10032 * target.h (struct target_ops) <to_download_trace_state_variable>:
10033 Add argument.
10034 (target_download_trace_state_variable): Add argument.
10035 * target.c (update_current_target): Update.
10036 * remote.c (remote_download_trace_state_variable): Add 'self'
10037 argument.
10038
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10040
10041 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10042 argument.
10043 (target_can_download_tracepoint): Add argument.
10044 * target.c (update_current_target): Update.
10045 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10046
10047 2014-02-19 Tom Tromey <tromey@redhat.com>
10048
10049 * target.h (struct target_ops) <to_download_tracepoint>: Add
10050 argument.
10051 (target_download_tracepoint): Add argument.
10052 * target.c (update_current_target): Update.
10053 * remote.c (remote_download_tracepoint): Add 'self' argument.
10054
10055 2014-02-19 Tom Tromey <tromey@redhat.com>
10056
10057 * target.h (struct target_ops) <to_trace_init>: Add argument.
10058 (target_trace_init): Add argument.
10059 * target.c (update_current_target): Update.
10060 * remote.c (remote_trace_init): Add 'self' argument.
10061
10062 2014-02-19 Tom Tromey <tromey@redhat.com>
10063
10064 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10065 * target.c (target_fileio_readlink): Add argument.
10066 * remote.c (remote_hostio_readlink): Add 'self' argument.
10067 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10068
10069 2014-02-19 Tom Tromey <tromey@redhat.com>
10070
10071 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10072 * target.c (target_fileio_unlink): Add argument.
10073 * remote.c (remote_hostio_unlink): Add 'self' argument.
10074 (remote_file_delete): Update.
10075 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10076
10077 2014-02-19 Tom Tromey <tromey@redhat.com>
10078
10079 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10080 * target.c (target_fileio_close): Add argument.
10081 * remote.c (remote_hostio_close): Add 'self' argument.
10082 (remote_hostio_close_cleanup): Update.
10083 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10084 Update.
10085 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10086
10087 2014-02-19 Tom Tromey <tromey@redhat.com>
10088
10089 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10090 * target.c (target_fileio_pread): Add argument.
10091 * remote.c (remote_hostio_pread): Add 'self' argument.
10092 (remote_bfd_iovec_pread, remote_file_get): Update.
10093 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10094
10095 2014-02-19 Tom Tromey <tromey@redhat.com>
10096
10097 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10098 * target.c (target_fileio_pwrite): Add argument.
10099 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10100 (remote_file_put): Update.
10101 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10102
10103 2014-02-19 Tom Tromey <tromey@redhat.com>
10104
10105 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10106 * target.c (target_fileio_open): Add argument.
10107 * remote.c (remote_hostio_open): Add 'self' argument.
10108 (remote_bfd_iovec_open): Add 'self' argument.
10109 (remote_file_put): Add 'self' argument.
10110 (remote_file_get): Add 'self' argument.
10111 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10112
10113 2014-02-19 Tom Tromey <tromey@redhat.com>
10114
10115 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10116 Add argument.
10117 (target_can_run_breakpoint_commands): Add argument.
10118 * target.c (update_current_target): Update.
10119 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10120 argument.
10121 (remote_insert_breakpoint): Add 'self' argument.
10122 (remote_insert_hw_breakpoint): Add 'self' argument.
10123 (remote_can_run_breakpoint_commands): Add 'self' argument.
10124
10125 2014-02-19 Tom Tromey <tromey@redhat.com>
10126
10127 * target.h (struct target_ops)
10128 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10129 (target_supports_evaluation_of_breakpoint_conditions): Add
10130 argument.
10131 * target.c (update_current_target): Update.
10132 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10133 argument.
10134 (remote_insert_breakpoint): Add 'self' argument.
10135 (remote_insert_hw_breakpoint): Add 'self' argument.
10136 (remote_supports_cond_breakpoints): Add 'self' argument.
10137
10138 2014-02-19 Tom Tromey <tromey@redhat.com>
10139
10140 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10141 argument.
10142 (target_supports_string_tracing): Add argument.
10143 * target.c (update_current_target): Update.
10144 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10145
10146 2014-02-19 Tom Tromey <tromey@redhat.com>
10147
10148 * target.h (struct target_ops)
10149 <to_supports_disable_randomization>: Add argument.
10150 * target.c (find_default_supports_disable_randomization): Add
10151 argument.
10152 (target_supports_disable_randomization): Add argument.
10153 (find_default_supports_disable_randomization): Add 'self'
10154 argument.
10155 * remote.c (extended_remote_supports_disable_randomization): Add
10156 'self' argument.
10157 (remote_supports_disable_randomization): Add 'self' argument.
10158 (extended_remote_create_inferior): Update.
10159 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10160 'self' argument.
10161
10162 2014-02-19 Tom Tromey <tromey@redhat.com>
10163
10164 * target.h (struct target_ops)
10165 <to_supports_enable_disable_tracepoint>: Add argument.
10166 (target_supports_enable_disable_tracepoint): Add argument.
10167 * target.c (update_current_target): Update.
10168 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10169 argument.
10170
10171 2014-02-19 Tom Tromey <tromey@redhat.com>
10172
10173 * target.h (struct target_ops) <to_supports_multi_process>: Add
10174 argument.
10175 (target_supports_multi_process): Add argument.
10176 * target.c (update_current_target): Update.
10177 * remote.c (remote_supports_multi_process): Add 'self' argument.
10178 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10179 argument.
10180 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10181 argument.
10182
10183 2014-02-19 Tom Tromey <tromey@redhat.com>
10184
10185 * target.h (struct target_ops) <to_execution_direction>: Add
10186 argument.
10187 (target_execution_direction): Add argument.
10188 * target.c (default_execution_direction): Add 'self' argument.
10189 * record-full.c (record_full_execution_direction): Add 'self'
10190 argument.
10191
10192 2014-02-19 Tom Tromey <tromey@redhat.com>
10193
10194 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10195 argument.
10196 (target_can_execute_reverse): Add argument.
10197 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10198 * record-full.c (record_full_can_execute_reverse): Add 'self'
10199 argument.
10200 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10201 argument.
10202
10203 2014-02-19 Tom Tromey <tromey@redhat.com>
10204
10205 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10206 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10207 argument.
10208 (target_get_ada_task_ptid): Add argument.
10209 * target.c (update_current_target): Update.
10210 (default_get_ada_task_ptid): Add 'self' argument.
10211 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10212 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10213 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10214 argument.
10215 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10216 argument.
10217 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10218 argument.
10219 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10220 argument.
10221 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10222 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10223 argument.
10224
10225 2014-02-19 Tom Tromey <tromey@redhat.com>
10226
10227 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10228 (target_goto_bookmark): Add argument.
10229 * target.c (dummy_goto_bookmark): Add 'self' argument.
10230 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10231
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10233
10234 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10235 (target_get_bookmark): Add argument.
10236 * target.c (dummy_get_bookmark): Add 'self' argument.
10237 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10238
10239 2014-02-19 Tom Tromey <tromey@redhat.com>
10240
10241 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10242 argument.
10243 (target_make_corefile_notes): Add argument.
10244 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10245 * procfs.c (procfs_make_note_section): Add 'self' argument.
10246 (procfs_make_note_section): Add 'self' argument.
10247 (procfs_make_note_section): Add 'self' argument.
10248 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10249 argument.
10250 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10251 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10252 * exec.c (exec_make_note_section): Add 'self' argument.
10253 (exec_make_note_section): Add 'self' argument.
10254
10255 2014-02-19 Tom Tromey <tromey@redhat.com>
10256
10257 * target.h (struct target_ops) <to_find_memory_regions>: Add
10258 argument.
10259 (target_find_memory_regions): Add argument.
10260 * target.c (dummy_find_memory_regions): Add 'self' argument.
10261 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10262 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10263 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10264 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10265 * exec. (exec_do_find_memory_regions): New global.
10266 (exec_set_find_memory_regions): Rewrite.
10267 (exec_find_memory_regions): New function.
10268 (init_exec_ops): Use exec_find_memory_regions.
10269
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10271
10272 * target.h (struct target_ops) <to_supports_non_stop>: Add
10273 argument.
10274 * target.c (find_default_supports_non_stop): Add argument.
10275 (target_supports_non_stop): Add argument.
10276 (find_default_supports_non_stop): Add 'self' argument.
10277 * remote.c (remote_supports_non_stop): Add 'self' argument.
10278 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10279
10280 2014-02-19 Tom Tromey <tromey@redhat.com>
10281
10282 * target.h (struct target_ops) <to_log_command>: Add argument.
10283 (target_log_command): Add argument.
10284 * serial.h (serial_log_command): Add 'self' argument.
10285 * serial.c (serial_log_command): Add 'self' argument.
10286
10287 2014-02-19 Tom Tromey <tromey@redhat.com>
10288
10289 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10290 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10291 argument.
10292 (target_pid_to_exec_file): Add argument.
10293 * target.c (debug_to_pid_to_exec_file): Add argument.
10294 (update_current_target): Update.
10295 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10296 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10297 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10298 (linux_handle_extended_wait): Update.
10299 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10300 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10301 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10302 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10303
10304 2014-02-19 Tom Tromey <tromey@redhat.com>
10305
10306 * target.h (struct target_ops) <to_rcmd>: Add argument.
10307 (target_rcmd): Add argument.
10308 * target.c (debug_to_rcmd): Add argument.
10309 (update_current_target, do_monitor_command): Update.
10310 * remote.c (remote_rcmd): Add 'self' argument.
10311 * monitor.c (monitor_rcmd): Add 'self' argument.
10312
10313 2014-02-19 Tom Tromey <tromey@redhat.com>
10314
10315 * windows-nat.c (windows_stop): Add 'self' argument.
10316 * target.h (struct target_ops) <to_stop>: Add argument.
10317 * target.c (target_stop): Add argument.
10318 (debug_to_stop): Add argument.
10319 (update_current_target): Update.
10320 * remote.c (remote_stop): Add 'self' argument.
10321 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10322 (gdbsim_cntrl_c): Update.
10323 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10324 * procfs.c (procfs_stop): Add 'self' argument.
10325 * nto-procfs.c (procfs_stop): Add 'self' argument.
10326 * monitor.c (monitor_stop): Add 'self' argument.
10327 (monitor_open): Update.
10328 * linux-nat.c (linux_nat_stop): Add argument.
10329 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10330 * gnu-nat.c (gnu_stop): Add 'self' argument.
10331 * darwin-nat.c (darwin_stop): Add 'self' argument.
10332
10333 2014-02-19 Tom Tromey <tromey@redhat.com>
10334
10335 * target.h (struct target_ops) <to_thread_name>: Add argument.
10336 * target.c (target_thread_name): Add argument.
10337 (update_current_target): Update.
10338 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10339
10340 2014-02-19 Tom Tromey <tromey@redhat.com>
10341
10342 * target.h (struct target_ops) <to_extra_thread_info>: Add
10343 argument.
10344 (target_extra_thread_info): Add argument.
10345 * target.c (update_current_target): Update.
10346 * remote.c (remote_threads_extra_info): Add 'self' argument.
10347 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10348 argument.
10349 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10350 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10351 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10352 argument.
10353 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10354 argument.
10355 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10356 argument.
10357 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10358 argument.
10359
10360 2014-02-19 Tom Tromey <tromey@redhat.com>
10361
10362 * target.h (struct target_ops) <to_program_signals>: Add argument.
10363 * target.c (target_program_signals): Add argument.
10364 * remote.c (remote_program_signals): Add 'self' argument.
10365
10366 2014-02-19 Tom Tromey <tromey@redhat.com>
10367
10368 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10369 * target.c (target_pass_signals): Add argument.
10370 * remote.c (remote_pass_signals): Add 'self' argument.
10371 (remote_start_remote): Update.
10372 * procfs.c (procfs_pass_signals): Add 'self' argument.
10373 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10374 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10375 (linux_nat_create_inferior, linux_nat_attach): Update.
10376
10377 2014-02-19 Tom Tromey <tromey@redhat.com>
10378
10379 * windows-nat.c (windows_can_run): Add 'self' argument.
10380 * target.h (struct target_ops) <to_can_run>: Add argument.
10381 (target_can_run): Add argument.
10382 * target.c (debug_to_can_run): Add argument.
10383 (update_current_target): Update.
10384 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10385 * inf-child.c (inf_child_can_run): Add 'self' argument.
10386 * go32-nat.c (go32_can_run): Add 'self' argument.
10387
10388 2014-02-19 Tom Tromey <tromey@redhat.com>
10389
10390 * target.h (struct target_ops) <to_has_exited>: Add argument.
10391 (target_has_exited): Add argument.
10392 * target.c (debug_to_has_exited): Add argument.
10393 (update_current_target): Update.
10394
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10396
10397 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10398 argument.
10399 (target_set_syscall_catchpoint): Add argument.
10400 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10401 argument.
10402 * target.c (update_current_target): Update.
10403
10404 2014-02-19 Tom Tromey <tromey@redhat.com>
10405
10406 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10407 argument.
10408 (target_remove_exec_catchpoint): Add argument.
10409 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10410 (update_current_target): Update.
10411 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10412 argument.
10413
10414 2014-02-19 Tom Tromey <tromey@redhat.com>
10415
10416 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10417 argument.
10418 (target_insert_exec_catchpoint): Add argument.
10419 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10420 (update_current_target): Update.
10421 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10422 argument.
10423
10424 2014-02-19 Tom Tromey <tromey@redhat.com>
10425
10426 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10427 argument.
10428 (target_remove_vfork_catchpoint): Add argument.
10429 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10430 (update_current_target): Update.
10431 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10432 argument.
10433
10434 2014-02-19 Tom Tromey <tromey@redhat.com>
10435
10436 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10437 argument.
10438 (target_insert_vfork_catchpoint): Add argument.
10439 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10440 (update_current_target): Update.
10441 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10442 argument.
10443
10444 2014-02-19 Tom Tromey <tromey@redhat.com>
10445
10446 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10447 argument.
10448 (target_remove_fork_catchpoint): Add argument.
10449 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10450 (update_current_target): Update.
10451 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10452 argument.
10453
10454 2014-02-19 Tom Tromey <tromey@redhat.com>
10455
10456 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10457 argument.
10458 (target_insert_fork_catchpoint): Add argument.
10459 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10460 (update_current_target): Update.
10461 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10462 argument.
10463
10464 2014-02-19 Tom Tromey <tromey@redhat.com>
10465
10466 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10467 argument.
10468 (target_post_startup_inferior): Add argument.
10469 * target.c (debug_to_post_startup_inferior): Add argument.
10470 (update_current_target): Update.
10471 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10472 argument.
10473 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10474 argument.
10475 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10476 argument.
10477 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10478 argument.
10479 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10480 'self' argument.
10481 (super_post_startup_inferior): Likewise.
10482 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10483 'self' argument.
10484 (super_post_startup_inferior): Likewise.
10485 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10486 Add 'self' argument.
10487 (super_post_startup_inferior): Likewise.
10488
10489 2014-02-19 Tom Tromey <tromey@redhat.com>
10490
10491 * target.h (struct target_ops) <to_load>: Add argument.
10492 * target.c (target_load): Add argument.
10493 (debug_to_load): Add argument.
10494 (update_current_target): Update.
10495 * remote.c (remote_load): Add 'self' argument.
10496 * remote-sim.c (gdbsim_load): Add 'self' argument.
10497 * remote-mips.c (mips_load): Add 'self' argument.
10498 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10499 * monitor.c (monitor_load): Add 'self' argument.
10500 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10501
10502 2014-02-19 Tom Tromey <tromey@redhat.com>
10503
10504 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10505 (target_terminal_info): Add argument.
10506 * target.c (debug_to_terminal_info): Add argument.
10507 (default_terminal_info): Likewise.
10508 * inflow.c (child_terminal_info): Add 'self' argument.
10509 * inferior.h (child_terminal_info): Add 'self' argument.
10510 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10511
10512 2014-02-19 Tom Tromey <tromey@redhat.com>
10513
10514 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10515 argument.
10516 (target_terminal_save_ours): Add argument.
10517 * target.c (debug_to_terminal_save_ours): Add argument.
10518 (update_current_target): Update.
10519 * inflow.c (terminal_save_ours): Add 'self' argument.
10520 * inferior.h (terminal_save_ours): Add 'self' argument.
10521
10522 2014-02-19 Tom Tromey <tromey@redhat.com>
10523
10524 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10525 (target_terminal_ours): Add argument.
10526 * target.c (debug_to_terminal_ours): Add argument.
10527 (update_current_target): Update.
10528 * remote.c (remote_terminal_ours): Add 'self' argument.
10529 (remote_close): Update.
10530 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10531 * inflow.c (terminal_ours): Add 'self' argument.
10532 * inferior.h (terminal_ours): Add 'self' argument.
10533 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10534
10535 2014-02-19 Pedro Alves <palves@redhat.com>
10536 Tom Tromey <tromey@redhat.com>
10537
10538 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10539 argument.
10540 (target_terminal_ours_for_output): Add argument.
10541 * target.c (debug_to_terminal_ours_for_output): Add argument.
10542 (update_current_target): Update.
10543 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10544 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10545 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10546
10547 2014-02-19 Tom Tromey <tromey@redhat.com>
10548
10549 * target.h (struct target_ops) <to_terminal_inferior>: Add
10550 argument.
10551 * target.c (target_terminal_inferior): Add argument.
10552 (update_current_target): Update.
10553 * remote.c (remote_terminal_inferior): Add 'self' argument.
10554 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10555 * inflow.c (terminal_inferior): Add 'self' argument.
10556 * inferior.h (terminal_inferior): Add 'self' argument.
10557 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10558 (go32_terminal_inferior): Add 'self' argument.
10559
10560 2014-02-19 Tom Tromey <tromey@redhat.com>
10561
10562 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10563 (target_terminal_init): Add argument.
10564 * target.c (debug_to_terminal_init): Add argument.
10565 (update_current_target): Update.
10566 * inflow.c (terminal_init_inferior): Add 'self' argument.
10567 * inferior.h (terminal_init_inferior): Add 'self' argument.
10568 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10569 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10570
10571 2014-02-19 Tom Tromey <tromey@redhat.com>
10572
10573 * target.h (struct target_ops)
10574 <to_can_accel_watchpoint_condition>: Add argument.
10575 (target_can_accel_watchpoint_condition): Add argument.
10576 * target.c (debug_to_can_accel_watchpoint_condition): Add
10577 argument.
10578 (update_current_target): Update.
10579 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10580 'self' argument.
10581
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10583
10584 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10585 Add argument.
10586 (target_region_ok_for_hw_watchpoint): Add argument.
10587 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10588 (default_region_ok_for_hw_watchpoint): Add argument.
10589 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10590 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10591 argument.
10592 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10593 argument.
10594 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10595 argument.
10596 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10597 'self' argument.
10598 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10599 'self' argument.
10600 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10601 'self' argument.
10602 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10603 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10604 'self' argument.
10605 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10606 Add 'self' argument.
10607
10608 2014-02-19 Tom Tromey <tromey@redhat.com>
10609
10610 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10611 argument.
10612 (target_insert_watchpoint): Add argument.
10613 * target.c (debug_to_insert_watchpoint): Add argument.
10614 (update_current_target): Update.
10615 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10616 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10617 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10618 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10619 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10620 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10621 argument.
10622 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10623 (procfs_insert_hw_watchpoint): Add 'self' argument.
10624 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10625 argument.
10626 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10627 argument.
10628 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10629 argument.
10630 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10631 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10632 argument.
10633 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10634 'self' argument.
10635
10636 2014-02-19 Tom Tromey <tromey@redhat.com>
10637
10638 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10639 argument.
10640 (target_remove_watchpoint): Add argument.
10641 * target.c (debug_to_remove_watchpoint): Add argument.
10642 (update_current_target): Update.
10643 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10644 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10645 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10646 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10647 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10648 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10649 argument.
10650 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10651 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10652 argument.
10653 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10654 argument.
10655 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10656 argument.
10657 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10658 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10659 argument.
10660 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10661 'self' argument.
10662
10663 2014-02-19 Tom Tromey <tromey@redhat.com>
10664
10665 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10666 argument.
10667 (target_remove_hw_breakpoint): Add argument.
10668 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10669 (update_current_target): Update.
10670 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10671 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10672 argument.
10673 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10674 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10675 argument.
10676 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10677 'self' argument.
10678
10679 2014-02-19 Tom Tromey <tromey@redhat.com>
10680
10681 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10682 argument.
10683 (target_insert_hw_breakpoint): Add argument.
10684 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10685 (update_current_target): Update.
10686 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10687 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10688 argument.
10689 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10690 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10691 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10692 argument.
10693 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10694 'self' argument.
10695
10696 2014-02-19 Tom Tromey <tromey@redhat.com>
10697
10698 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10699 argument.
10700 (target_can_use_hardware_watchpoint): Add argument.
10701 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10702 (update_current_target): Update.
10703 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10704 argument.
10705 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10706 argument.
10707 * remote.c (remote_check_watch_resources): Add 'self' argument.
10708 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10709 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10710 argument.
10711 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10712 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10713 argument.
10714 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10715 argument.
10716 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10717 argument.
10718 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10719 argument.
10720 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10721 argument.
10722 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10723 argument.
10724 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10725 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10726 argument.
10727 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10728 'self' argument.
10729
10730 2014-02-19 Tom Tromey <tromey@redhat.com>
10731
10732 * target.h (struct target_ops) <to_post_attach>: Add argument.
10733 (target_post_attach): Add argument.
10734 * target.c (debug_to_post_attach): Add argument.
10735 (update_current_target): Update.
10736 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10737 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10738 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10739 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10740 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10741
10742 2014-02-19 Tom Tromey <tromey@redhat.com>
10743
10744 * windows-nat.c (windows_close): Add 'self' argument.
10745 * tracepoint.c (tfile_close): Add 'self' argument.
10746 * target.h (struct target_ops) <to_close>: Add argument.
10747 * target.c (target_close): Add argument.
10748 (update_current_target): Update.
10749 * remote.c (remote_close): Add 'self' argument.
10750 * remote-sim.c (gdbsim_close): Add 'self' argument.
10751 * remote-mips.c (mips_close): Add 'self' argument.
10752 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10753 * record-full.c (record_full_close): Add 'self' argument.
10754 * record-btrace.c (record_btrace_close): Add 'self' argument.
10755 * monitor.h (monitor_close): Add 'self' argument.
10756 * monitor.c (monitor_close): Add 'self' argument.
10757 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10758 * linux-nat.c (linux_nat_close): Add argument.
10759 * go32-nat.c (go32_close): Add 'self' argument.
10760 * exec.c (exec_close_1): Add 'self' argument.
10761 * ctf.c (ctf_close): Add 'self' argument.
10762 * corelow.c (core_close): Add 'self' argument.
10763 (core_close_cleanup): Update.
10764 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10765 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10766
10767 2014-02-19 Tom Tromey <tromey@redhat.com>
10768
10769 * remote.c (remote_load): New function.
10770 (init_remote_ops): Use it.
10771
10772 2014-02-19 Tom Tromey <tromey@redhat.com>
10773
10774 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10775 argument.
10776 * common/linux-btrace.h (linux_supports_btrace): Update.
10777 * remote.c (remote_supports_btrace): Add "self" argument.
10778 * target-delegates.c: Rebuild.
10779 * target.c (target_supports_btrace): Remove.
10780 * target.h (struct target_ops) <to_supports_btrace>: Add
10781 target_ops argument.
10782 (target_supports_btrace): New define.
10783
10784 2014-02-19 Tom Tromey <tromey@redhat.com>
10785
10786 * record-full.c (record_full_beneath_to_resume_ops)
10787 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10788 (record_full_beneath_to_wait)
10789 (record_full_beneath_to_store_registers_ops)
10790 (record_full_beneath_to_store_registers)
10791 (record_full_beneath_to_xfer_partial_ops)
10792 (record_full_beneath_to_xfer_partial)
10793 (record_full_beneath_to_insert_breakpoint_ops)
10794 (record_full_beneath_to_insert_breakpoint)
10795 (record_full_beneath_to_remove_breakpoint_ops)
10796 (record_full_beneath_to_remove_breakpoint)
10797 (record_full_beneath_to_stopped_by_watchpoint)
10798 (record_full_beneath_to_stopped_data_address)
10799 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10800 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10801 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10802 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10803 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10804 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10805 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10806 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10807 (record_full_resume, record_full_wait_1)
10808 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10809 (record_full_store_registers, record_full_xfer_partial)
10810 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10811 (record_full_async, record_full_core_xfer_partial): Use target
10812 delegation.
10813 * target-delegates.c: Rebuild.
10814 * target.c (current_xfer_partial): Remove.
10815 (update_current_target): Do not INHERIT or de_fault
10816 to_insert_breakpoint, to_remove_breakpoint,
10817 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10818 to_is_async_p, to_async. Do not set to_xfer_partial field.
10819 (default_xfer_partial): Simplify.
10820 (current_xfer_partial): Remove.
10821 (target_wait, target_resume): Simplify.
10822 (find_default_can_async_p, find_default_is_async_p): Update.
10823 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10824 to_xfer_partial, to_stopped_by_watchpoint,
10825 to_stopped_data_address.
10826 (target_store_registers): Simplify.
10827 (forward_target_remove_breakpoint)
10828 (forward_target_insert_breakpoint): Remove.
10829 (target_remove_breakpoint, target_insert_breakpoint)
10830 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10831 * target.h (struct target_ops) <to_resume, to_wait,
10832 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10833 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10834 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10835 markup.
10836 (forward_target_remove_breakpoint)
10837 (forward_target_insert_breakpoint): Remove.
10838 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10839 directly.
10840 (record_btrace_insert_breakpoint): Delegate directly.
10841
10842 2014-02-19 Tom Tromey <tromey@redhat.com>
10843
10844 PR build/7701:
10845 * target-delegates.c: New file.
10846 * target.c: Include target-delegates.c.
10847 (init_dummy_target): Call install_dummy_methods.
10848 (complete_target_initialization): Call install_delegators.
10849 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10850 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10851 * make-target-delegates: New file.
10852
10853 2014-02-19 Tom Tromey <tromey@redhat.com>
10854
10855 * record.c (find_record_target): Use find_target_at.
10856 * target.c (find_target_at): New function.
10857 * target.h (find_target_at): Declare.
10858
10859 2014-02-19 Tom Tromey <tromey@redhat.com>
10860
10861 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10862 Add 'ops' argument.
10863 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10864 'ops' argument.
10865 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10866 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10867 'ops' argument.
10868 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10869 argument.
10870 * linux-nat.c (save_sigtrap): Update.
10871 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10872 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10873 (linux_nat_close): Update.
10874 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10875 argument.
10876 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10877 argument.
10878 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10879 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10880 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10881 (tmp_to_async): Add 'ops' argument.
10882 (record_full_stopped_by_watchpoint, record_full_async)
10883 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10884 argument.
10885 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10886 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10887 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10888 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10889 (remote_is_async_p, remote_async): Add 'ops' argument.
10890 (remote_stopped_data_address): Update.
10891 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10892 * target.c (update_current_target)
10893 (find_default_can_async_p, find_default_is_async_p): Update.
10894 (init_dummy_target): Update.
10895 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10896 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10897 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10898 (target_can_async_p, target_is_async_p, target_async)
10899 (target_stopped_by_watchpoint): Update.
10900
10901 2014-02-19 Yao Qi <yao@codesourcery.com>
10902
10903 PR gdb/16220
10904 * gdbarch.sh: Remove startup_gdbarch.
10905 * gdbarch.c: Regenerated.
10906 * gdbarch.h: Likewise.
10907
10908 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10909
10910 * rl78-tdep.c (rl78_g10_register_name): New function.
10911 (rl78_return_value): Add g10 support.
10912 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10913 g10.
10914
10915 2014-02-17 Doug Evans <xdje42@gmail.com>
10916
10917 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10918 (SUBDIR_GUILE_SRCS): Ditto.
10919 (scm-gsmob.o): Ditto.
10920
10921 2014-02-17 Yao Qi <yao@codesourcery.com>
10922
10923 * gnu-nat.c (ILL_RPC): Declare defined function.
10924
10925 2014-02-17 Yao Qi <yao@codesourcery.com>
10926
10927 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10928 mach_msg_type_number_t.
10929 (gnu_write_inferior): Likewise.
10930
10931 2014-02-17 Yao Qi <yao@codesourcery.com>
10932
10933 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10934 in format string.
10935 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10936 (inf_validate_procs, inf_signal): Likewise.
10937 (S_exception_raise_request): Likewise.
10938 (do_mach_notify_dead_name): Likewise.
10939 (steal_exc_port): Likewise.
10940 (gnu_read_inferior): Change 'copy_count''s type to
10941 mach_msg_type_number_t.
10942 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10943 format string.
10944
10945 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10946
10947 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10948 flag. Adjust all users; in particular...
10949 (gnu_wait): ..., don't decrement its value in here...
10950 (gnu_create_inferior): ..., and instead set the flag in here,
10951 around the startup_inferior call, and call that one with
10952 START_INFERIOR_TRAPS_EXPECTED.
10953
10954 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10955 (ILL_RPC): ... new macro.
10956 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10957 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10958 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10959 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10960 functions with ILL_RPC macro.
10961 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10962 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10963 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10964 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10965 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10966 (S_proc_getlogin_reply, S_proc_getsid_reply)
10967 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10968 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10969 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10970 (S_proc_getnports_reply, S_proc_is_important_reply)
10971 (S_proc_get_code_reply): New stub functions, generated with
10972 ILL_RPC macro.
10973
10974 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10975 collected the type check structures.
10976
10977 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10978
10979 2014-02-14 Doug Evans <dje@google.com>
10980
10981 * target.c (target_write_partial): Fix result type.
10982
10983 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10984
10985 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10986 the proper offsets to access fpregset_t.
10987
10988 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10989
10990 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10991 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10992 * h8300-tdep.c (setmachinelist): Remove global.
10993 * hppa-tdep.c (hppa_sigtramp): Remove global.
10994 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10995 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10996 * ravenscar-thread.c (update_target_observer): Remove global.
10997 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10998
10999 2014-02-12 Tom Tromey <tromey@redhat.com>
11000
11001 * common/rsp-low.c: Update comments.
11002 * common/rsp-low.h: Update comments.
11003
11004 2014-02-12 Tom Tromey <tromey@redhat.com>
11005
11006 * common/rsp-low.c (convert_ascii_to_int): Remove.
11007 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11008
11009 2014-02-12 Tom Tromey <tromey@redhat.com>
11010
11011 * common/rsp-low.h (unhexify): Don't declare.
11012 * common/rsp-low.c (unhexify): Remove.
11013
11014 2014-02-12 Tom Tromey <tromey@redhat.com>
11015
11016 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11017 * common/rsp-low.c (convert_int_to_ascii): Remove.
11018
11019 2014-02-12 Tom Tromey <tromey@redhat.com>
11020
11021 * common/rsp-low.h (hexify): Don't declare.
11022 * common/rsp-low.c (hexify): Remove.
11023
11024 2014-02-12 Tom Tromey <tromey@redhat.com>
11025
11026 * common/rsp-low.c (hexify): Never take strlen of argument.
11027
11028 2014-02-12 Tom Tromey <tromey@redhat.com>
11029
11030 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11031 * remote.c (extended_remote_run, remote_rcmd)
11032 (remote_download_trace_state_variable, remote_save_trace_data)
11033 (remote_set_trace_notes): Update.
11034 * tracepoint.c (encode_source_string, tfile_write_status)
11035 (tfile_write_uploaded_tsv): Update.
11036
11037 2014-02-12 Tom Tromey <tromey@redhat.com>
11038
11039 * tracepoint.c: Include rsp-low.h.
11040 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11041 * remote.c: Include rsp-low.h.
11042 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11043 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11044 (remote_unescape_input): Move to common/rsp-low.c.
11045 * common/rsp-low.h: New file.
11046 * common/rsp-low.c: New file.
11047 * Makefile.in (SFILES): Add common/rsp-low.c.
11048 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11049 (COMMON_OBS): Add rsp-low.o.
11050 (rsp-low.o): New target.
11051
11052 2014-02-12 Tom Tromey <tromey@redhat.com>
11053
11054 * utils.h: Include print-utils.h.
11055 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11056 (int_string, core_addr_to_string, core_addr_to_string_nz)
11057 (hex_string, hex_string_custom): Don't declare.
11058 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11059 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11060 (hex_string_custom, int_string, core_addr_to_string)
11061 (core_addr_to_string_nz, host_address_to_string): Move to
11062 common/print-utils.c.
11063 * common/print-utils.h: New file.
11064 * common/print-utils.c: New file
11065 * Makefile.in (SFILES): Add common/print-utils.c.
11066 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11067 (COMMON_OBS): Add print-utils.o.
11068 (print-utils.o): New target.
11069
11070 2014-02-12 Tom Tromey <tromey@redhat.com>
11071
11072 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11073
11074 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11075
11076 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11077
11078 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11079
11080 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11081 if a PT_IO ptrace request returns sucessfully but indicates that 0
11082 bytes were transferred.
11083
11084 2014-02-12 Pedro Alves <palves@redhat.com>
11085 Kevin Buettner <kevinb@redhat.com>
11086
11087 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11088 TYPE_INSTANCE_FLAG_CODE_SPACE.
11089
11090 2014-02-12 Pedro Alves <palves@redhat.com>
11091
11092 * h8300-tdep.c (pseudo_from_raw_register)
11093 (raw_from_pseudo_register): New functions.
11094 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11095 them.
11096
11097 2014-02-12 Pedro Alves <palves@redhat.com>
11098
11099 * h8300-tdep.c (h8300_register_sim_regno): New function.
11100 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11101 gdbarch_register_sim_regno hook.
11102
11103 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11104
11105 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11106
11107 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11108
11109 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11110
11111 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11112
11113 * obsd-tdep.h (obsd_init_abi): New prototype.
11114 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11115 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11116 (obsd_init_abi): New functions.
11117 * i386obsd-tdep.c: Include "obsd-tdep.h".
11118 (i386obsd_init_abi): Call obsd_init_abi.
11119 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11120 (amd64obsd_init_abi): Call obsd_init_abi.
11121 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11122 obsd-tdep.c to gdb_target_obs.
11123
11124 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11125
11126 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11127 double float arguments to 16-byte in the argument slots.
11128
11129 2014-02-11 Doug Evans <xdje42@gmail.com>
11130
11131 * configure.ac: Don't crash if pkg-config is not found and guile
11132 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11133 in guile checks.
11134 * configure: Regenerate.
11135
11136 2014-02-11 Yao Qi <yao@codesourcery.com>
11137
11138 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11139 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11140 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11141 * gnu-nat.c (gnu_xfer_memory): Likewise.
11142 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11143 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11144 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11145 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11146
11147 2014-02-11 Yao Qi <yao@codesourcery.com>
11148
11149 * target.h (enum target_xfer_error): Rename to ...
11150 (enum target_xfer_status): ... it. New. All users updated.
11151 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11152 New.
11153 (TARGET_XFER_STATUS_ERROR_P): New macro.
11154 (target_xfer_error_to_string): Remove declaration.
11155 (target_xfer_status_to_string): Declare.
11156 (target_xfer_partial_ftype): Adjust it.
11157 (struct target_ops) <to_xfer_partial>: Return
11158 target_xfer_status. Add argument xfered_len. Update
11159 comments.
11160 * target.c (target_xfer_error_to_string): Rename to ...
11161 (target_xfer_status_to_string): ... it. New. All callers
11162 updated.
11163 (target_read_live_memory): Likewise. Call target_xfer_partial
11164 instead of target_read.
11165 (memory_xfer_live_readonly_partial): Return
11166 target_xfer_status. Add argument xfered_len.
11167 (raw_memory_xfer_partial): Likewise.
11168 (memory_xfer_partial_1): Likewise.
11169 (memory_xfer_partial): Likewise.
11170 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11171 properly. Update debug message.
11172 (default_xfer_partial, current_xfer_partial): Likewise.
11173 (target_write_partial): Likewise.
11174 (target_read_partial): Likewise. All callers updated.
11175 (read_whatever_is_readable): Likewise.
11176 (target_write_with_progress): Likewise.
11177 (target_read_alloc_1): Likewise.
11178
11179 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11180 * auxv.c (procfs_xfer_auxv): Likewise.
11181 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11182 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11183 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11184 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11185 * corefile.c (read_memory): Adjust.
11186 * corelow.c (core_xfer_partial): Likewise.
11187 * ctf.c (ctf_xfer_partial): Likewise.
11188 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11189 updated.
11190 (darwin_xfer_partial): Likewise.
11191 * exec.c (section_table_xfer_memory_partial): Likewise. All
11192 callers updated.
11193 (exec_xfer_partial): Likewise.
11194 * exec.h (section_table_xfer_memory_partial): Update
11195 declaration.
11196 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11197 negative.
11198 (gnu_xfer_partial): Likewise.
11199 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11200 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11201 (ia64_hpux_xfer_solib_got): Likewise.
11202 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11203 type of 'partial_len' to ULONGEST.
11204 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11205 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11206 (linux_nat_xfer_partial): Likewise.
11207 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11208 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11209 * monitor.c (monitor_xfer_memory): Likewise.
11210 (monitor_xfer_partial): Likewise.
11211 * procfs.c (procfs_xfer_partial): Likewise.
11212 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11213 * record-full.c (record_full_xfer_partial): Likewise.
11214 (record_full_core_xfer_partial): Likewise.
11215 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11216 (gdbsim_xfer_partial): Likewise.
11217 * remote.c (remote_write_bytes_aux): Likewise. All callers
11218 updated.
11219 (remote_write_bytes, remote_read_bytes): Likewise. All
11220 callers updated.
11221 (remote_flash_erase): Likewise. All callers updated.
11222 (remote_write_qxfer): Likewise. All callers updated.
11223 (remote_read_qxfer): Likewise. All callers updated.
11224 (remote_xfer_partial): Likewise.
11225 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11226 (rs6000_xfer_shared_libraries): Likewise.
11227 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11228 (sol_thread_xfer_partial): Likewise.
11229 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11230 (sparc_xfer_partial): Likewise.
11231 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11232 updated.
11233 (spu_xfer_partial): Likewise.
11234 * spu-multiarch.c (spu_xfer_partial): Likewise.
11235 * tracepoint.c (tfile_xfer_partial): Likewise.
11236 * windows-nat.c (windows_xfer_memory): Likewise.
11237 (windows_xfer_shared_libraries): Likewise.
11238 (windows_xfer_partial): Likewise.
11239 * valprint.c: Replace 'target_xfer_error' with
11240 'target_xfer_status' in comments.
11241
11242 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11243
11244 Checked in by Joel Brobecker <brobecker@adacore.com>.
11245 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11246
11247 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11248
11249 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11250 function parameters.
11251
11252 2014-02-10 Will Newton <will.newton@linaro.org>
11253
11254 * elfread.c (elf_rel_plt_read): Look for a .got section if
11255 looking up .got.plt fails.
11256 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11257 on address passed to elf_gnu_ifunc_record_cache.
11258 (elf_gnu_ifunc_resolve_addr): Likewise.
11259 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11260
11261 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11262
11263 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11264 (X_RETTURN): New macro.
11265 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11266
11267 * sparc64-tdep.c (sparc64_init_abi): Hook
11268 sparc_in_function_epilogue_p.
11269
11270 2014-02-10 Gary Benson <gbenson@redhat.com>
11271
11272 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11273 Rename name_matcher to symbol_matcher.
11274
11275 2014-02-10 Gary Benson <gbenson@redhat.com>
11276
11277 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11278 Use expand_symtabs_file_matcher_ftype and
11279 expand_symtabs_symbol_matcher_ftype.
11280
11281 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11282
11283 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11284 (struct ada_symbol_cache): New.
11285 (ada_free_symbol_cache): Forward declare.
11286 (struct ada_pspace_data): New.
11287 (ada_pspace_data_handle): New static global.
11288 (get_ada_pspace_data, ada_pspace_data_cleanup)
11289 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11290 (cache_space, cache): Delete, now folded inside struct
11291 ada_pspace_data.
11292 (ada_get_symbol_cache): New function.
11293 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11294 implementation.
11295 (_initialize_ada_language): Remove initialization of cache_space.
11296 Move call to observer_attach_inferior_exit up, grouping it
11297 with the other observer registrations inside this function.
11298 Rename command to be more general. Add call to
11299 register_program_space_data_with_cleanup.
11300
11301 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11302
11303 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11304 ada_new_objfile_observer.
11305 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11306 (_initialize_tasks): Update uses of ada_new_objfile_observer
11307 and ada_tasks_normal_stop_observer.
11308
11309 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11310
11311 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11312 returned by the 'Length attribute to integer.
11313
11314 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11315
11316 * ada-lang.c (_initialize_ada_language): Initialize
11317 cache_space obstack.
11318
11319 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11320
11321 * ada-lang.c (HASH_SIZE): New macro.
11322 (struct cache_entry): New type.
11323 (cache_space, cache): New static globals.
11324 (ada_clear_symbol_cache, find_entry): New functions.
11325 (lookup_cached_symbol, cache_symbol): Implement.
11326 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11327 (_initialize_ada_language): Attach ada_new_objfile_observer
11328 and ada_free_objfile_observer.
11329
11330 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11331
11332 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11333 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11334 struct block * parameter.
11335 (ada_lookup_symbol_list_worker): Constify local variable "block".
11336 Remove cast which is no longer necessary.
11337
11338 2014-02-10 Doug Evans <xdje42@gmail.com>
11339
11340 Add Guile as an extension language.
11341 * NEWS: Mention Guile scripting.
11342 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11343 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11344 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11345 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11346 (CLIBS): Add GUILE_LIBS.
11347 (install-guile): New rule.
11348 (guile.o): New rule.
11349 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11350 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11351 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11352 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11353 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11354 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11355 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11356 * configure.ac: New option --with-guile.
11357 * configure: Regenerate.
11358 * config.in: Regenerate.
11359 * auto-load.c: Remove #include "python/python.h". Add #include
11360 "gdb/section-scripts.h".
11361 (source_section_scripts): Handle Guile scripts.
11362 (_initialize_auto_load): Add name of Guile objfile script to
11363 scripts-directory help text.
11364 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11365 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11366 (struct breakpoint): New member scm_bp_object.
11367 * defs.h (enum command_control_type): New value guile_control.
11368 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11369 "extension.h".
11370 (show_user): Update comment.
11371 (_initialize_cli_cmds): Update help text for "show user". Update help
11372 text for max-user-call-depth.
11373 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11374 "extension.h".
11375 (multi_line_command_p): Add guile_control.
11376 (print_command_lines): Handle guile_control.
11377 (execute_control_command, recurse_read_control_structure): Ditto.
11378 (process_next_line): Recognize "guile" commands.
11379 * disasm.c (gdb_disassemble_info): Make non-static.
11380 * disasm.h: #include "dis-asm.h".
11381 (struct gdbarch): Add forward decl.
11382 (gdb_disassemble_info): Declare.
11383 * extension.c: #include "guile/guile.h".
11384 (extension_languages): Add guile.
11385 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11386 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11387 * gdbtypes.c (get_unsigned_type_max): New function.
11388 (get_signed_type_minmax): New function.
11389 * gdbtypes.h (get_unsigned_type_max): Declare.
11390 (get_signed_type_minmax): Declare.
11391 * guile/README: New file.
11392 * guile/guile-internal.h: New file.
11393 * guile/guile.c: New file.
11394 * guile/guile.h: New file.
11395 * guile/scm-arch.c: New file.
11396 * guile/scm-auto-load.c: New file.
11397 * guile/scm-block.c: New file.
11398 * guile/scm-breakpoint.c: New file.
11399 * guile/scm-disasm.c: New file.
11400 * guile/scm-exception.c: New file.
11401 * guile/scm-frame.c: New file.
11402 * guile/scm-gsmob.c: New file.
11403 * guile/scm-iterator.c: New file.
11404 * guile/scm-lazy-string.c: New file.
11405 * guile/scm-math.c: New file.
11406 * guile/scm-objfile.c: New file.
11407 * guile/scm-ports.c: New file.
11408 * guile/scm-pretty-print.c: New file.
11409 * guile/scm-safe-call.c: New file.
11410 * guile/scm-string.c: New file.
11411 * guile/scm-symbol.c: New file.
11412 * guile/scm-symtab.c: New file.
11413 * guile/scm-type.c: New file.
11414 * guile/scm-utils.c: New file.
11415 * guile/scm-value.c: New file.
11416 * guile/lib/gdb.scm: New file.
11417 * guile/lib/gdb/boot.scm: New file.
11418 * guile/lib/gdb/experimental.scm: New file.
11419 * guile/lib/gdb/init.scm: New file.
11420 * guile/lib/gdb/iterator.scm: New file.
11421 * guile/lib/gdb/printing.scm: New file.
11422 * guile/lib/gdb/types.scm: New file.
11423 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11424 (VPATH): Add $(GUILE_SRCDIR).
11425 (GUILE_DIR): New variable.
11426 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11427 (all): Add stamp-guile dependency.
11428 (stamp-guile): New rule.
11429 (clean-guile, install-guile, uninstall-guile): New rules.
11430 (install-only): Add install-guile dependency.
11431 (uninstall): Add uninstall-guile dependency.
11432 (clean): Add clean-guile dependency.
11433
11434 2014-02-09 Doug Evans <xdje42@gmail.com>
11435
11436 Revert this patch (which I approved, mea culpa).
11437
11438 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11439
11440 * Makefile.in (all-lib): Remove.
11441 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11442
11443 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11444
11445 Fix Python stack corruption.
11446 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11447 gdb_py_longest.
11448
11449 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11450
11451 * Makefile.in (all-lib): Remove.
11452 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11453
11454 2014-02-07 Doug Evans <dje@google.com>
11455
11456 * extension-priv.h (extension_language_script_ops): Add comment.
11457 (extension_language_ops): Add comment.
11458 (active_ext_lang_state): Fix typo in comment.
11459
11460 2014-02-07 Pedro Alves <palves@redhat.com>
11461
11462 PR breakpoints/16292
11463 * infrun.c (handle_signal_stop) <signal arrives while stepping
11464 over a breakpoint>: Switch back to the stepping thread.
11465
11466 2014-02-07 Yao Qi <yao@codesourcery.com>
11467
11468 * target.c (target_xfer_partial): Return zero if LEN is zero.
11469
11470 2014-02-07 Yao Qi <yao@codesourcery.com>
11471
11472 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11473 (ld_so_xfer_auxv): Likewise.
11474 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11475 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11476 * corelow.c (core_xfer_partial): Likewise.
11477 * ctf.c (ctf_xfer_partial): Likewise.
11478 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11479 (darwin_xfer_partial): Likewise.
11480 * exec.c (exec_xfer_partial): Likewise.
11481 * gnu-nat.c (gnu_xfer_partial): Likewise.
11482 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11483 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11484 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11485 * linux-nat.c (linux_xfer_siginfo): Likewise.
11486 (linux_proc_xfer_spu): Likewise.
11487 * procfs.c (procfs_xfer_partial): Likewise.
11488 * record-full.c (record_full_xfer_partial): Likewise.
11489 (record_full_core_xfer_partial): Likewise.
11490 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11491 * remote.c (remote_write_qxfer): Likewise.
11492 (remote_write_qxfer, remote_read_qxfer): Likewise.
11493 (remote_xfer_partial): Likewise.
11494 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11495 (rs6000_xfer_shared_libraries): Likewise.
11496 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11497 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11498 (spu_xfer_partial): Likewise.
11499 * target.c (memory_xfer_partial_1): Likewise.
11500 * tracepoint.c (tfile_xfer_partial): Likewise.
11501 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11502 (windows_xfer_partial): Likewise.
11503
11504 2014-02-07 Yao Qi <yao@codesourcery.com>
11505
11506 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11507 comments.
11508 (core_xfer_shared_libraries_aix): Likewise.
11509 * gdbarch.c, gdbarch.h: Regenerated.
11510 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11511 ULONGEST. Change 'len_avail' type to ULONGEST.
11512 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11513 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11514 declaration.
11515 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11516
11517 2014-02-07 Yao Qi <yao@codesourcery.com>
11518
11519 * corefile.c (memory_error): Get 'exception' from ERR and pass
11520 'exception' to throw_error.
11521
11522 2014-02-06 Doug Evans <xdje42@gmail.com>
11523
11524 * configure.ac (libpython checking): Remove all but python.o from
11525 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11526 * configure: Regenerate.
11527
11528 * Makefile.in (SFILES): Add extension.c.
11529 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11530 (COMMON_OBS): Add extension.o.
11531 * extension.h: New file.
11532 * extension-priv.h: New file.
11533 * extension.c: New file.
11534
11535 * python/python-internal.h: #include "extension.h".
11536 (gdbpy_auto_load_enabled): Declare.
11537 (gdbpy_apply_val_pretty_printer): Declare.
11538 (gdbpy_apply_frame_filter): Declare.
11539 (gdbpy_preserve_values): Declare.
11540 (gdbpy_breakpoint_cond_says_stop): Declare.
11541 (gdbpy_breakpoint_has_cond): Declare.
11542 (void source_python_script_for_objfile): Delete.
11543 * python/python.c: #include "extension-priv.h".
11544 Delete inclusion of "observer.h".
11545 (extension_language_python): Moved here and renamed from
11546 script_language_python in py-auto-load.c.
11547 Redefined to be of type extension_language_defn.
11548 (python_extension_script_ops): New global.
11549 (python_extension_ops): New global.
11550 (struct python_env): New member previous_active.
11551 (restore_python_env): Call restore_active_ext_lang.
11552 (ensure_python_env): Call set_active_ext_lang.
11553 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11554 New arg extlang.
11555 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11556 New arg extlang.
11557 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11558 New arg extlang.
11559 (gdbpy_eval_from_control_command): Renamed from
11560 eval_python_from_control_command, made static. New arg extlang.
11561 (gdbpy_source_script) Renamed from source_python_script, made static.
11562 New arg extlang.
11563 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11564 result to int. New arg extlang.
11565 (gdbpy_source_objfile_script): Renamed from
11566 source_python_script_for_objfile, made static. New arg extlang.
11567 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11568 static. New args extlang, extlang_printers. Change result type to
11569 "void".
11570 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11571 static. New arg extlang. Rename arg printers to extlang_printers
11572 and change type to ext_lang_type_printers *.
11573 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11574 static. Replace argument arg with extlang, extlang_printers.
11575 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11576 (!HAVE_PYTHON, source_python_script): Delete.
11577 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11578 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11579 (!HAVE_PYTHON, start_type_printers): Delete.
11580 (!HAVE_PYTHON, apply_type_printers): Delete.
11581 (!HAVE_PYTHON, free_type_printers): Delete.
11582 (_initialize_python): Delete call to observer_attach_before_prompt.
11583 (finalize_python): Set/restore active extension language.
11584 (gdbpy_finish_initialization) Renamed from
11585 finish_python_initialization, made static. New arg extlang.
11586 (gdbpy_initialized): New function.
11587 * python/python.h: #include "extension.h". Delete #include
11588 "value.h", "mi/mi-cmds.h".
11589 (extension_language_python): Declare.
11590 (GDBPY_AUTO_FILE_NAME): Delete.
11591 (enum py_bt_status): Moved to extension.h and renamed to
11592 ext_lang_bt_status.
11593 (enum frame_filter_flags): Moved to extension.h.
11594 (enum py_frame_args): Moved to extension.h and renamed to
11595 ext_lang_frame_args.
11596 (finish_python_initialization): Delete.
11597 (eval_python_from_control_command): Delete.
11598 (source_python_script): Delete.
11599 (apply_val_pretty_printer): Delete.
11600 (apply_frame_filter): Delete.
11601 (preserve_python_values): Delete.
11602 (gdbpy_script_language_defn): Delete.
11603 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11604 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11605
11606 * auto-load.c: #include "extension.h".
11607 (GDB_AUTO_FILE_NAME): Delete.
11608 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11609 (script_language_gdb): Delete, moved to extension.c and renamed to
11610 extension_language_gdb.
11611 (source_gdb_script_for_objfile): Delete.
11612 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11613 (loaded_script): Change type of language member to
11614 struct extension_language_defn *.
11615 (init_loaded_scripts_info): Initialize
11616 unsupported_script_warning_printed.
11617 (maybe_add_script): Make static. Change type of language arg to
11618 struct extension_language_defn *.
11619 (clear_section_scripts): Reset unsupported_script_warning_printed.
11620 (auto_load_objfile_script_1): Rewrite to use extension language API.
11621 (auto_load_objfile_script): Make public. Remove support-compiled-in
11622 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11623 (source_section_scripts): Rewrite to use extension language API.
11624 (load_auto_scripts_for_objfile): Rewrite to use
11625 auto_load_scripts_for_objfile.
11626 (collect_matching_scripts_data): Change type of language member to
11627 struct extension_language_defn *.
11628 (auto_load_info_scripts): Change type of language arg to
11629 struct extension_language_defn *.
11630 (unsupported_script_warning_print): New function.
11631 (script_not_found_warning_print): Make static.
11632 (_initialize_auto_load): Rewrite construction of scripts-directory
11633 help.
11634 * auto-load.h (struct objfile): Add forward decl.
11635 (struct script_language): Delete.
11636 (struct auto_load_pspace_info): Add forward decl.
11637 (struct extension_language_defn): Add forward decl.
11638 (maybe_add_script): Delete.
11639 (auto_load_objfile_script): Declare.
11640 (script_not_found_warning_print): Delete.
11641 (auto_load_info_scripts): Update prototype.
11642 (auto_load_gdb_scripts_enabled): Declare.
11643 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11644 auto_load_python_scripts_enabled and made public.
11645 (script_language_python): Delete, moved to python.c.
11646 (gdbpy_script_language_defn): Delete.
11647 (info_auto_load_python_scripts): Update to use
11648 extension_language_python.
11649
11650 * breakpoint.c (condition_command): Replace call to
11651 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11652 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11653 with call to breakpoint_ext_lang_cond_says_stop.
11654 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11655 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11656 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11657 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11658 New arg slang.
11659 (local_setattro): Print name of extension language with existing
11660 stop condition.
11661
11662 * valprint.c (val_print, value_print): Update to call
11663 apply_ext_lang_val_pretty_printer.
11664 * cp-valprint.c (cp_print_value): Update call to
11665 apply_ext_lang_val_pretty_printer.
11666 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11667 (gdbpy_apply_val_pretty_printer): Renamed from
11668 apply_val_pretty_printer. New arg extlang.
11669 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11670
11671 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11672 extension language API.
11673 * cli/cli-script.c (execute_control_command): Update to call
11674 eval_ext_lang_from_control_command.
11675
11676 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11677 enum ext_lang_bt_status values. Update call to
11678 apply_ext_lang_frame_filter.
11679 (mi_cmd_stack_list_locals): Ditto.
11680 (mi_cmd_stack_list_args): Ditto.
11681 (mi_cmd_stack_list_variables): Ditto.
11682 * mi/mi-main.c: Delete #include "python/python-internal.h".
11683 Add #include "extension.h".
11684 (mi_cmd_list_features): Replace reference to python internal variable
11685 gdb_python_initialized with call to ext_lang_initialized_p.
11686
11687 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11688 Update to use enum ext_lang_frame_args. Update to call
11689 apply_ext_lang_frame_filter.
11690 * python/py-framefilter.c (extract_sym): Update to use enum
11691 ext_lang_bt_status.
11692 (extract_value, py_print_type, py_print_value): Ditto.
11693 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11694 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11695 (py_print_frame): Ditto.
11696 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11697 New arg extlang. Update to use enum ext_lang_bt_status.
11698
11699 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11700 finish_python_initialization. Replace with call to
11701 finish_ext_lang_initialization.
11702
11703 * typeprint.c (do_free_global_table): Update to call
11704 free_ext_lang_type_printers.
11705 (create_global_typedef_table): Update to call
11706 start_ext_lang_type_printers.
11707 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11708 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11709 (type_print_options): Change type of global_printers from "void *"
11710 to "struct ext_lang_type_printers *".
11711
11712 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11713 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11714 (gdbpy_preserve_values): Renamed from preserve_python_values.
11715 New arg extlang.
11716 (!HAVE_PYTHON, preserve_python_values): Delete.
11717
11718 * utils.c (quit_flag): Delete, moved to extension.c.
11719 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11720 extension.c.
11721
11722 * eval.c: Delete #include "python/python.h".
11723 * main.c: Delete #include "python/python.h".
11724
11725 * defs.h: Update comment.
11726
11727 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11728
11729 GDB 7.7 released.
11730
11731 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11732
11733 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11734 defined.
11735
11736 2014-02-05 Yao Qi <yao@codesourcery.com>
11737
11738 * remote.c (remote_pass_signals): Remove local 'buf' and use
11739 rs->buf.
11740 (remote_program_signals): Likewise.
11741
11742 2014-02-05 Yao Qi <yao@codesourcery.com>
11743
11744 * ctf.c: Include "inferior.h" and "gdbthread.h".
11745 (CTF_PID): A new macro.
11746 (ctf_open): Call inferior_appeared and add_thread_silent.
11747 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11748 (ctf_thread_alive): New function.
11749 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11750
11751 2014-02-05 Yao Qi <yao@codesourcery.com>
11752
11753 Revert this patch:
11754
11755 2013-05-24 Yao Qi <yao@codesourcery.com>
11756
11757 * tracepoint.c (TFILE_PID): Remove.
11758 (tfile_open): Don't add thread and inferior.
11759 (tfile_close): Don't set 'inferior_ptid'. Don't call
11760 exit_inferior_silent.
11761 (tfile_thread_alive): Remove.
11762 (init_tfile_ops): Don't set field 'to_thread_alive' of
11763 tfile_ops.
11764
11765 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11766
11767 * remote.c (remote_start_remote): Call remote_check_symbols even
11768 if only symbol-file (not file) has been given.
11769
11770 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11771
11772 * gdbarch.sh (skip_entrypoint): New callback.
11773 * gdbarch.c, gdbarch.h: Regenerate.
11774 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11775 * infrun.c (fill_in_stop_func): Likewise.
11776 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11777 (ppc_elfv2_elf_make_msymbol_special): New function.
11778 (ppc_elfv2_skip_entrypoint): Likewise.
11779 (ppc_linux_init_abi): Install them for ELFv2.
11780
11781 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11782
11783 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11784 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11785 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11786 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11787 structures returned in GPRs.
11788
11789 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11790
11791 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11792 offset to the stack parameter list for the ELFv2 ABI.
11793
11794 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11795
11796 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11797 set_gdbarch_convert_from_func_ptr_addr and
11798 set_gdbarch_elf_make_msymbol_special for ELFv1.
11799 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11800 function descriptors on ELFv1.
11801 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11802 set up r12 at function entry.
11803
11804 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11805
11806 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11807 (struct gdbarch_tdep): New member elf_abi.
11808
11809 * rs6000-tdep.c: Include "elf/ppc64.h".
11810 (rs6000_gdbarch_init): Detect ELF ABI version.
11811
11812 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11813
11814 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11815 within a register pair holding a DFP 128-bit value on little-endian.
11816 (ppc64_sysv_abi_return_value_base): Likewise.
11817 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11818 (dfp_pseudo_register_write): Likewise.
11819
11820 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11821
11822 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11823 offset on little-endian when passing _Decimal32.
11824 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11825
11826 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11827
11828 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11829 of the overlapped FP register within the VSX register on little-
11830 endian platforms.
11831 (efpr_pseudo_register_write): Likewise.
11832
11833 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11834
11835 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11836 offset on little-endian when passing small structures.
11837
11838 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11839
11840 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11841 (struct ppc64_sysv_argpos): New data structure.
11842 (ppc64_sysv_abi_push_float): Remove.
11843 (ppc64_sysv_abi_push_val): New function.
11844 (ppc64_sysv_abi_push_integer): Likewise.
11845 (ppc64_sysv_abi_push_freg): Likewise.
11846 (ppc64_sysv_abi_push_vreg): Likewise.
11847 (ppc64_sysv_abi_push_param): Likewise.
11848 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11849 (ppc64_sysv_abi_return_value_base): New function.
11850 (ppc64_sysv_abi_return_value): Refactor to use it.
11851
11852 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11853
11854 * NEWS: Document new target powerpc64le-*-linux*.
11855
11856 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11857
11858 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11859 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11860 core dumps.
11861 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11862 register set used in ELF core dumps. Add floating-point register set.
11863
11864 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11865
11866 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11867 dwarf2_to_gdb[] table using symbolic constants. Adjust
11868 penultimate entry from number representing the PC register
11869 to symbolic constant representing the MDR register. Add
11870 constant for the PC register to the end of the table.
11871
11872 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11873
11874 * bsd-kvm.c: Include <sys/param.h>
11875
11876 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11877
11878 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11879
11880 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11881
11882 * ada-lang.h (clear_ada_sym_cache): Delete.
11883
11884 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11885
11886 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11887
11888 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11889
11890 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11891 the sigreturn register save area only if the syscall is
11892 sigreturn.
11893
11894 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11895
11896 * valops.c (value_slice): Minor reformatting.
11897
11898 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11899
11900 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11901
11902 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11903
11904 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11905 New static globals.
11906 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11907 (ada_ignore_descriptive_types_p): New static global.
11908 (find_parallel_type_by_descriptive_type): Return immediately
11909 if ada_ignore_descriptive_types_p is set.
11910 (_initialize_ada_language): Register new commands "maintenance
11911 set ada", "maintenance show ada", "maintenance set ada
11912 ignore-descriptive-types" and "maintenance show ada
11913 ignore-descriptive-types".
11914 * NEWS: Add entry for new "maint ada set/show
11915 ignore-descriptive-types" commands.
11916
11917 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11918
11919 * record-btrace.c (record_btrace_close): Call btrace_teardown
11920 for all threads.
11921
11922 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11923
11924 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11925 "ui-out.h".
11926
11927 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11928
11929 * ada-typeprint (type_is_full_subrange_of_target_type):
11930 New function.
11931 (print_range): Add parameter bounds_prefered_p. If not set,
11932 try printing range types using the name of their base type.
11933 (print_range_type): Add parameter bounds_prefered_p.
11934 Use it in call to print_range.
11935 (print_array_type, ada_print_type): Update calls to print_range
11936 and print_range_type.
11937
11938 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11939
11940 * ada-typeprint.c (print_array_type, print_choices, print_range)
11941 (print_range_bound, print_dynamic_range_bound, print_range_type):
11942 Remove declaration.
11943
11944 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11945
11946 * ada-typeprint.c (print_range): Add missing empty line
11947 after local declaration.
11948
11949 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11950
11951 * ada-valprint.c (print_optional_low_bound): Get index_type's
11952 target type for as long as it is a TYPE_CODE_RANGE.
11953
11954 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11955
11956 * procfs.c (procfs_make_note_section): Remove assertion and
11957 associated comment.
11958
11959 2014-01-24 Yao Qi <yao@codesourcery.com>
11960
11961 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11962 * corelow.c (get_core_siginfo): Likewise.
11963
11964 2014-01-24 Yao Qi <yao@codesourcery.com>
11965
11966 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11967 ULONGEST. Don't check 'len' is negative.
11968 (remote_write_bytes): Change type of 'len' to ULONGEST.
11969
11970 2014-01-23 Tom Tromey <tromey@redhat.com>
11971
11972 PR python/16485:
11973 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11974 Handle exception from frame.block.
11975 (FrameVars.fetch_frame_locals): Likewise.
11976
11977 2014-01-23 Tom Tromey <tromey@redhat.com>
11978
11979 PR python/16487:
11980 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11981 on a NULL pointer. Move "goto error" to correct place.
11982
11983 2014-01-23 Tom Tromey <tromey@redhat.com>
11984
11985 PR python/16491:
11986 * python/py-framefilter.c (apply_frame_filter): Call
11987 ensure_python_env after computing gdbarch.
11988
11989 2014-01-23 Yao Qi <yao@codesourcery.com>
11990
11991 * target.c (raw_memory_xfer_partial): Change argument type
11992 from void * to gdb_byte *.
11993 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11994
11995 2014-01-22 Doug Evans <dje@google.com>
11996
11997 New gdbserver option --debug-format=timestamp.
11998 * NEWS: Mention it.
11999
12000 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12001
12002 * syscalls/s390x-linux.xml: New file.
12003 * syscalls/s390-linux.xml: New file.
12004 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12005 (XML_SYSCALL_FILENAME_S390X): Likewise.
12006 (op_svc): New enum value for SVC opcode.
12007 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12008 (s390_linux_get_syscall_number): New function.
12009 (s390_gdbarch_init): Register '*get_syscall_number' and the
12010 syscall xml file name.
12011 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12012 "s390-linux.xml" and "s390x-linux.xml".
12013 * NEWS: Announce new feature.
12014
12015 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12016
12017 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12018
12019 2014-01-22 Pedro Alves <palves@redhat.com>
12020
12021 * xtensa-config.c: Include defs.h.
12022
12023 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12024
12025 * common/common-utils.h: Add "ARI:" comment beside __func__
12026 reference.
12027
12028 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12029
12030 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12031 documentation a bit.
12032
12033 2014-01-21 Roland McGrath <mcgrathr@google.com>
12034
12035 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12036 * configure: Regenerate.
12037 * aclocal.m4: Regenerate.
12038 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12039 New substituted variables.
12040 (install-strip): New target.
12041 (INSTALL_SCRIPT): New substituted variable.
12042 (FLAGS_TO_PASS): Add it.
12043 (install-only): Use $(INSTALL_SCRIPT) rather than
12044 $(INSTALL_PROGRAM) for gcore.
12045
12046 2014-01-20 Tom Tromey <tromey@redhat.com>
12047
12048 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12049 together.
12050
12051 2014-01-20 Tom Tromey <tromey@redhat.com>
12052
12053 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12054 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12055 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12056 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12057 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12058 (struct cmd_list_element) <flags>: Remove.
12059 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12060 doc_allocated>: New fields.
12061 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12062 bitfields.
12063 * maint.c (maintenance_do_deprecate): Update.
12064 * top.c (execute_command): Update.
12065
12066 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12067
12068 * xtensa-linux-nat.c: Include asm/ptrace.h.
12069
12070 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12071
12072 * Makefile.in (SFILES): Add d-support.c.
12073 (COMMON_OBS): Add d-support.o.
12074 * d-lang.h (d_parse_symbol): Add comment, now defined in
12075 d-support.c.
12076 * d-lang.c (parse_call_convention)
12077 (parse_attributes, parse_function_types)
12078 (parse_function_args, parse_type, parse_identifier)
12079 (call_convention_p, d_parse_symbol): Move functions to ...
12080 * d-support.c: ... New file.
12081
12082 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12083
12084 * d-lang.h (d_parse_symbol): Add declaration.
12085 * d-lang.c (extract_identifiers)
12086 (extract_type_info): Remove functions.
12087 (parse_call_convention, parse_attributes)
12088 (parse_function_types, parse_function_args)
12089 (parse_type, parse_identifier, call_convention_p)
12090 (d_parse_symbol): New functions.
12091 (d_demangle): Use d_parse_symbol to demangle D symbols.
12092
12093 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12094
12095 * d-lang.h (struct builtin_d_type): New data type.
12096 (builtin_d_type): Add declaration.
12097 * d-lang.c (d_language_arch_info, build_d_types)
12098 (builtin_d_type): New functions.
12099 (enum d_primitive_types): New data type.
12100 (d_language_defn): Change c_language_arch_info to
12101 d_language_arch_info.
12102 (d_type_data): New static variable.
12103 (_initialize_d_language): Initialize d_type_data.
12104
12105 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12106
12107 * d-lang.h (d_main_name): Add declaration.
12108 * d-lang.c (d_main_name): New function.
12109 * symtab.c (find_main_name): Add call to d_main_name.
12110
12111 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12112
12113 * d-lang.c (d_language_defn): Change macro_expansion_c to
12114 macro_expansion_no.
12115
12116 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12117
12118 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12119
12120 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12121
12122 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12123 gdb_exception" declaration.
12124 * remote.c (getpkt_or_notif_sane): Likewise.
12125
12126 2014-01-17 Doug Evans <dje@google.com>
12127
12128 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12129 function, contents of dirnames_to_char_ptr_vec_append moved here.
12130 (delim_string_to_char_ptr_vec): New function.
12131 (dirnames_to_char_ptr_vec_append): Rewrite.
12132 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12133
12134 2014-01-17 Doug Evans <dje@google.com>
12135
12136 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12137 and moved here ...
12138 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12139 #include "common-utils.h".
12140 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12141 * common/vec.h (VEC_ASSERT_PASS): Update.
12142 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12143 (MACH_CHECK_ERROR): Update.
12144
12145 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12146
12147 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12148 comments.
12149 * gdbarch.h: Regenerate.
12150
12151 2014-01-16 Tom Tromey <tromey@redhat.com>
12152
12153 * value.c (struct value) <regnum>: Move earlier.
12154
12155 2014-01-16 Tom Tromey <tromey@redhat.com>
12156
12157 * remote.c (extended_remote_create_inferior): Rename from
12158 extended_remote_create_inferior_1. Add "ops" argument. Remove
12159 old implementation.
12160
12161 2014-01-16 Pedro Alves <palves@redhat.com>
12162
12163 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12164 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12165 the backchain.
12166
12167 2014-01-16 Doug Evans <dje@google.com>
12168
12169 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12170
12171 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12172
12173 * btrace.h (btrace_thread_flag): New.
12174 (struct btrace_thread_info) <flags>: New.
12175 * record-btrace.c (record_btrace_resume_thread)
12176 (record_btrace_find_thread_to_move, btrace_step_no_history)
12177 (btrace_step_stopped, record_btrace_start_replaying)
12178 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12179 (record_btrace_find_resume_thread): New.
12180 (record_btrace_resume, record_btrace_wait): Extend.
12181 (record_btrace_can_execute_reverse): New.
12182 (record_btrace_open): Fail in non-stop mode.
12183 (record_btrace_set_replay): Split into this, ...
12184 (record_btrace_stop_replaying): ... this, ...
12185 (record_btrace_clear_histories): ... and this.
12186 (init_record_btrace_ops): Init to_can_execute_reverse.
12187 * NEWS: Announce it.
12188
12189 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12190
12191 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12192 (forward_target_decr_pc_after_break)
12193 (target_decr_pc_after_break): New.
12194 * target.c (forward_target_decr_pc_after_break)
12195 (target_decr_pc_after_break): New.
12196 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12197 instead of gdbarch_decr_pc_after_break.
12198 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12199 instead of gdbarch_decr_pc_after_break.
12200 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12201 instead of gdbarch_decr_pc_after_break.
12202 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12203 instead of gdbarch_decr_pc_after_break.
12204 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12205 instead of gdbarch_decr_pc_after_break.
12206 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12207 instead of gdbarch_decr_pc_after_break.
12208
12209 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12210
12211 * btrace.c: Include regcache.h.
12212 (btrace_add_pc): New.
12213 (btrace_enable): Call btrace_add_pc.
12214 (btrace_is_empty): New.
12215 * btrace.h (btrace_is_empty): New.
12216 * record-btrace.c (require_btrace, record_btrace_info): Call
12217 btrace_is_empty.
12218
12219 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12220
12221 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12222 Support delta reads.
12223 (linux_disable_btrace): Change return type.
12224 * common/linux-btrace.h (linux_read_btrace): Change parameters
12225 and return type to allow error reporting. Update users.
12226 (linux_disable_btrace): Change return type. Update users.
12227 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12228 New.
12229 (btrace_error): New.
12230 (btrace_block) <begin>: Comment on BEGIN == 0.
12231 * btrace.c (btrace_compute_ftrace): Start from the end of
12232 the current trace.
12233 (btrace_stitch_trace, btrace_clear_history): New.
12234 (btrace_fetch): Read delta trace, return if replaying.
12235 (btrace_clear): Move clear history code to btrace_clear_history.
12236 (parse_xml_btrace): Throw an error if parsing failed.
12237 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12238 and return type to allow error reporting.
12239 (target_read_btrace): Change parameters and return type to allow
12240 error reporting.
12241 * target.c (target_read_btrace): Update.
12242 * remote.c (remote_read_btrace): Support delta reads. Pass
12243 errors on.
12244 * NEWS: Announce it.
12245
12246 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12247
12248 * record.h (record_btrace_frame_unwind)
12249 (record_btrace_tailcall_frame_unwind): New declarations.
12250 * dwarf2-frame: Include record.h
12251 (dwarf2_frame_cfa): Throw an error for btrace frames.
12252 * record-btrace.c: Include hashtab.h.
12253 (btrace_get_bfun_name): New.
12254 (btrace_call_history): Call btrace_get_bfun_name.
12255 (struct btrace_frame_cache): New.
12256 (bfcache): New.
12257 (bfcache_hash, bfcache_eq, bfcache_new): New.
12258 (btrace_get_frame_function): New.
12259 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12260 (record_btrace_frame_this_id): Compute own id.
12261 (record_btrace_frame_prev_register): Provide PC, throw_error
12262 for all other registers.
12263 (record_btrace_frame_sniffer): Detect btrace frames.
12264 (record_btrace_tailcall_frame_sniffer): New.
12265 (record_btrace_frame_dealloc_cache): New.
12266 (record_btrace_frame_unwind): Add new functions.
12267 (record_btrace_tailcall_frame_unwind): New.
12268 (_initialize_record_btrace): Allocate cache.
12269 * btrace.c (btrace_clear): Call reinit_frame_cache.
12270 * NEWS: Announce it.
12271
12272 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12273
12274 * record-btrace.c (record_btrace_set_replay)
12275 (record_btrace_goto_begin, record_btrace_goto_end)
12276 (record_btrace_goto): New.
12277 (init_record_btrace_ops): Initialize them.
12278 * NEWS: Announce it.
12279
12280 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12281
12282 * record-btrace.c (record_btrace_find_new_threads)
12283 (record_btrace_thread_alive): New.
12284 (init_record_btrace_ops): Initialize to_find_new_threads and
12285 to_thread_alive.
12286
12287 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12288
12289 * record-btrace.c (record_btrace_resume): New.
12290 (record_btrace_wait): New.
12291 (init_record_btrace_ops): Initialize to_wait and to_resume.
12292
12293 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12294
12295 * record-btrace.c (record_btrace_xfer_partial)
12296 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12297 (record_btrace_allow_memory_access): New.
12298 (init_record_btrace_ops): Initialize new methods.
12299 * target.c (raw_memory_xfer_partial): Bail out if target reports
12300 that this memory is not available.
12301
12302 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12303
12304 * target.h (target_ops) <to_insert_breakpoint>
12305 <to_remove_breakpoint>: Add target_ops parameter.
12306 (forward_target_insert_breakpoint): New.
12307 (forward_target_remove_breakpoint): New.
12308 (memory_remove_breakpoint, memory_insert_breakpoint):
12309 Add target_ops parameter.
12310 * target.c (target_insert_breakpoint): Split into this and ...
12311 (forward_target_insert_breakpoint): ... this.
12312 (target_remove_breakpoint): Split into this and ...
12313 (forward_target_remove_breakpoint): ... this.
12314 (debug_to_insert_breakpoint): Add target_ops parameter.
12315 Call forward_target_insert_breakpoint.
12316 (debug_to_remove_breakpoint): Add target_ops parameter.
12317 Call forward_target_remove_breakpoint.
12318 (update_current_target): Do not inherit or default to_insert_breakpoint
12319 and to_remove_breakpoint.
12320 * corelow.c (ignore): Add target_ops parameter.
12321 * exec.c (ignore): Add target_ops parameter.
12322 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12323 Add target_ops parameter.
12324 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12325 Add target_ops parameter.
12326 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12327 Add target_ops parameter.
12328 * record-full.c (record_full_beneath_to_insert_breakpoint)
12329 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12330 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12331 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12332 (record_full_core_remove_breakpoint): Add target_ops parameter.
12333 Update users.
12334 (record_full_beneath_to_insert_breakpoint_ops)
12335 (record_full_beneath_to_remove_breakpoint_ops)
12336 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12337 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12338 tmp_to_remove_breakpoint_ops,
12339 record_full_beneath_to_insert_breakpoint_ops, and
12340 record_full_beneath_to_remove_breakpoint_ops.
12341 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12342 (m32r_remove_breakpoint): Add target_ops parameter.
12343 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12344 Add target_ops parameter.
12345 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12346 Add target_ops parameter.
12347
12348 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12349 Markus Metzger <markus.t.metzger@intel.com>
12350
12351 * record-btrace.c: Include frame-unwind.h.
12352 (record_btrace_frame_unwind_stop_reason)
12353 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12354 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12355 New.
12356 (init_record_btrace_ops): Install it.
12357
12358 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12359
12360 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12361 get_prev_frame_1.
12362
12363 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12364
12365 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12366 earlier.
12367
12368 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12369
12370 * frame-unwind.c: Include target.h.
12371 (frame_unwind_try_unwinder): New function with code from ...
12372 (frame_unwind_find_by_frame): ... here. New variable
12373 unwinder_from_target, call also target_get_unwinder)
12374 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12375 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12376 * target.h (struct target_ops): New fields to_get_unwinder and
12377 to_get_tailcall_unwinder.
12378 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12379
12380 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12381
12382 * record-btrace.c (record_btrace_fetch_registers)
12383 (record_btrace_store_registers)
12384 (record_btrace_to_prepare_to_store): New.
12385 (init_record_btrace_ops): Add the above.
12386
12387 2014-01-16 Tom Tromey <tromey@redhat.com>
12388
12389 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12390 * target.h (struct target_ops) <to_prepare_to_store>: Add
12391 argument.
12392 (target_prepare_to_store): Add argument.
12393 * target.c (debug_to_prepare_to_store): Add argument.
12394 (update_current_target): Update.
12395 * remote.c (remote_prepare_to_store): Add 'self' argument.
12396 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12397 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12398 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12399 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12400 argument.
12401 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12402 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12403 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12404 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12405 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12406
12407 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12408
12409 * btrace.h (replay) <replay>: New.
12410 (btrace_is_replaying): New.
12411 * btrace.c (btrace_clear): Free replay iterator.
12412 (btrace_is_replaying): New.
12413 * record-btrace.c (record_btrace_is_replaying): New.
12414 (record_btrace_info): Print insn number if replaying.
12415 (record_btrace_insn_history): Start at replay position.
12416 (record_btrace_call_history): Start at replay position.
12417 (init_record_btrace_ops): Init to_record_is_replaying.
12418
12419 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12420
12421 * record-btrace.c (record_btrace_insn_history_range): Include
12422 end.
12423 (record_btrace_insn_history_from): Adjust range.
12424 (record_btrace_call_history_range): Include
12425 end.
12426 (record_btrace_call_history_from): Adjust range.
12427 * NEWS: Announce changes.
12428
12429 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12430
12431 * record.h (enum record_print_flag)
12432 <record_print_indent_calls>: New.
12433 * record.c (get_call_history_modifiers): Recognize /c modifier.
12434 (_initialize_record): Document /c modifier.
12435 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12436 Reorder fields. Optionally indent the function name. Update
12437 all users.
12438 * NEWS: Announce changes.
12439
12440 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12441
12442 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12443
12444 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12445
12446 * btrace.c (ftrace_new_function): Start counting at one.
12447 * record-btrace.c (record_btrace_info): Adjust number of calls
12448 and insns.
12449 * NEWS: Announce it.
12450
12451 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12452
12453 * record-btrace.c (btrace_call_history_insn_range): Print
12454 insn range as [begin, end].
12455
12456 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12457
12458 * btrace.h (struct btrace_func_link): New.
12459 (enum btrace_function_flag): New.
12460 (struct btrace_inst): Rename to ...
12461 (struct btrace_insn): ...this. Update all users.
12462 (struct btrace_func) <ibegin, iend>: Remove.
12463 (struct btrace_func_link): New.
12464 (struct btrace_func): Rename to ...
12465 (struct btrace_function): ...this. Update all users.
12466 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12467 (number, level, flags>: New.
12468 (struct btrace_insn_iterator): Rename to ...
12469 (struct btrace_insn_history): ...this.
12470 Update all users.
12471 (struct btrace_insn_iterator, btrace_call_iterator): New.
12472 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12473 (struct btrace_target_info) <begin, end, level>
12474 <insn_history, call_history>: New.
12475 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12476 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12477 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12478 (btrace_call_number, btrace_call_begin, btrace_call_end)
12479 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12480 (btrace_find_function_by_number, btrace_set_insn_history)
12481 (btrace_set_call_history): New.
12482 * btrace.c (btrace_init_insn_iterator)
12483 (btrace_init_func_iterator, compute_itrace): Remove.
12484 (ftrace_print_function_name, ftrace_print_filename)
12485 (ftrace_skip_file): Change
12486 parameter to const.
12487 (ftrace_init_func): Remove.
12488 (ftrace_debug): Use new btrace_function fields.
12489 (ftrace_function_switched): Also consider gaining and
12490 losing symbol information).
12491 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12492 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12493 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12494 New.
12495 (ftrace_new_function): Move. Remove debug print.
12496 (ftrace_update_lines, ftrace_update_insns): New.
12497 (ftrace_update_function): Check for call, ret, and jump.
12498 (compute_ftrace): Renamed to ...
12499 (btrace_compute_ftrace): ...this. Rewritten to compute call
12500 stack.
12501 (btrace_fetch, btrace_clear): Updated.
12502 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12503 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12504 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12505 (btrace_call_number, btrace_call_begin, btrace_call_end)
12506 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12507 (btrace_find_function_by_number, btrace_set_insn_history)
12508 (btrace_set_call_history): New.
12509 * record-btrace.c (require_btrace): Use new btrace thread
12510 info fields.
12511 (record_btrace_info, btrace_insn_history)
12512 (record_btrace_insn_history, record_btrace_insn_history_range):
12513 Use new btrace thread info fields and new iterator.
12514 (btrace_func_history_src_line): Rename to ...
12515 (btrace_call_history_src_line): ...this. Use new btrace
12516 thread info fields.
12517 (btrace_func_history): Rename to ...
12518 (btrace_call_history): ...this. Use new btrace thread info
12519 fields and new iterator.
12520 (record_btrace_call_history, record_btrace_call_history_range):
12521 Use new btrace thread info fields and new iterator.
12522
12523 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12524
12525 * frame.h (frame_id_build_unavailable_stack_special): New.
12526 * frame.c (frame_id_build_unavailable_stack_special): New.
12527
12528 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12529
12530 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12531 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12532 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12533 to gdbarch.
12534 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12535 (i386_insn_is_jump, i386_jmp_p): New.
12536 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12537 insn_is_jump to gdbarch.
12538 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12539 * gdbarch.h: Regenerated.
12540 * gdbarch.c: Regenerated.
12541 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12542 (default_insn_is_jump): New.
12543 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12544 (default_insn_is_jump): New.
12545
12546 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12547
12548 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12549 Change to ...
12550 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12551 (btrace_read_type) <btrace_read_new>: Change to ...
12552 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12553
12554 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12555
12556 * common/linux-btrace.c (linux_read_btrace): Free trace from
12557 previous iteration.
12558
12559 2014-01-15 Doug Evans <dje@google.com>
12560
12561 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12562 uint32_t.
12563
12564 2014-01-15 Tom Tromey <tromey@redhat.com>
12565
12566 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12567 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12568 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12569 (set_objfile_main_name): New function.
12570 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12571 language_of_main>: New fields.
12572 (set_objfile_main_name): Declare.
12573 * symtab.c (find_main_name): Loop over objfiles to find the main
12574 name and language.
12575 (set_main_name): Now static.
12576 (get_main_info): Add comment.
12577 * symtab.h (set_main_name): Don't declare.
12578
12579 2014-01-15 Tom Tromey <tromey@redhat.com>
12580
12581 * symtab.c (main_progspace_key): New global.
12582 (struct main_info): New.
12583 (name_of_main, language_of_main): Remove.
12584 (get_main_info, main_info_cleanup): New function.
12585 (set_main_name, main_name, main_language): Use get_main_info.
12586 (_initialize_symtab): Initialize main_progspace_key.
12587
12588 2014-01-15 Tom Tromey <tromey@redhat.com>
12589
12590 * dbxread.c (process_one_symbol): Update.
12591 * dwarf2read.c (read_partial_die): Update.
12592 * symfile.c (set_initial_language): Call main_language.
12593 * symtab.c (language_of_main): Now static.
12594 (set_main_name): Add 'lang' parameter.
12595 (find_main_name): Update.
12596 (main_language): New function.
12597 (symtab_observer_executable_changed): Update.
12598 * symtab.h (set_main_name): Update.
12599 (language_of_main): Remove.
12600 (main_language): Declare.
12601
12602 2014-01-15 Tom Tromey <tromey@redhat.com>
12603
12604 * symfile.c (init_entry_point_info): Use new "initialized" field.
12605 Update.
12606 * objfiles.h (struct entry_point) <initialized>: New field.
12607 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12608 (struct objfile) <ei>: ...here. Remove.
12609 * objfiles.c (entry_point_address_query): Update.
12610
12611 2014-01-15 Tom Tromey <tromey@redhat.com>
12612
12613 * objfiles.c (entry_point_address_query): Relocate entry point
12614 address.
12615 (objfile_relocate1): Do not relocate entry point address.
12616 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12617 <the_bfd_section_index>: New field.
12618 * symfile.c (init_entry_point_info): Find the entry point's
12619 section.
12620
12621 2014-01-15 Tom Tromey <tromey@redhat.com>
12622
12623 * solib-frv.c (enable_break): Use entry_point_address_query.
12624
12625 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12626
12627 * NEWS: Add note on improved process record-replay on
12628 arm*-linux* targets.
12629
12630 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12631
12632 * arm-tdep.c (enum arm_record_result): New enum.
12633 (arm_record_unsupported_insn): New function.
12634 (arm_record_coproc_data_proc): Removed.
12635 (thumb2_record_ld_st_multiple): New function.
12636 (thumb2_record_ld_st_dual_ex_tbb): New function.
12637 (thumb2_record_data_proc_sreg_mimm): New function.
12638 (thumb2_record_ps_dest_generic): New function.
12639 (thumb2_record_branch_misc_cntrl): New function.
12640 (thumb2_record_str_single_data): New function.
12641 (thumb2_record_ld_mem_hints): New function.
12642 (thumb2_record_ld_word): New function.
12643 (thumb2_record_lmul_lmla_div): New function.
12644 (thumb2_record_decode_insn_handler): New function.
12645 (decode_insn): Add thumb32 instruction handlers.
12646
12647 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12648
12649 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12650 (struct arm_linux_record_tdep): Declare.
12651 (arm_canonicalize_syscall): New function.
12652 (arm_all_but_pc_registers_record): New function.
12653 (arm_linux_syscall_record): New function.
12654 (arm_linux_init_abi): Add syscall recording constructs.
12655 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12656 decoding. (arm_record_coproc_data_proc): Update arm syscall
12657 decoding.
12658 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12659 <arm_syscall_record>: New field.
12660 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12661 gdb_target_obs.
12662
12663 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12664
12665 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12666 register for push instruction recording.
12667
12668 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12669
12670 * arm-tdep.c (thumb_record_misc): Update to correct logical
12671 error while recording ldm, ldmia and pop instructions.
12672
12673 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12674
12675 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12676
12677 2014-01-15 Pedro Alves <palves@redhat.com>
12678
12679 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12680 (go32_resume, go32_fetch_registers, store_register)
12681 (go32_store_registers, go32_prepare_to_store)
12682 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12683 (go32_create_inferior, go32_can_run, go32_terminal_init)
12684 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12685 declarations.
12686
12687 2014-01-15 Tom Tromey <tromey@redhat.com>
12688
12689 * target.h (async_callback_ftype): New typedef.
12690 (struct target_ops) <to_async>: Use it.
12691
12692 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12693
12694 * python/py-value.c (get_field_type): Remove unnecessary curly
12695 braces for single-statement if block.
12696
12697 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12698
12699 * python/py-type.c (convert_field): Add missing empty line
12700 after declarations.
12701
12702 2014-01-14 Doug Evans <dje@google.com>
12703
12704 * symfile.h (expand_symtabs_matching): Renamed from
12705 expand_partial_symbol_names. Update prototype.
12706 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12707 * symfile.c (expand_symtabs_matching): Renamed from
12708 expand_partial_symbol_names. New args file_matcher, kind.
12709 Rename arg fun to symbol_matcher.
12710 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12711 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12712 ada_expand_partial_symbol_name.
12713 (ada_make_symbol_completion_list): Update to call
12714 expand_symtabs_matching.
12715 (ada_add_global_exceptions): Call expand_symtabs_matching.
12716 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12717 call map_symbol_filenames.
12718 * symtab.c (sources_info): Update to call map_symbol_filenames.
12719 (search_symbols): Call expand_symtabs_matching.
12720 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12721 (default_make_symbol_completion_list_break_on): Update to call
12722 expand_symtabs_matching.
12723 (make_source_files_completion_list): Update to call
12724 map_symbol_filenames.
12725
12726 2014-01-14 Doug Evans <dje@google.com>
12727
12728 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12729 (expand_symtabs_symbol_matcher_ftype): New typedef.
12730 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12731 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12732 * symfile.c (expand_partial_symbol_names): Update to use
12733 expand_symtabs_symbol_matcher_ftype.
12734 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12735 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12736 Arg name_matcher renamed to symbol_matcher.
12737 * psymtab.c (recursively_search_psymtabs): Update to use
12738 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12739 sym_matcher.
12740 (expand_symtabs_matching_via_partial): Update to use
12741 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12742 Arg name_matcher renamed to symbol_matcher.
12743
12744 2014-01-14 Doug Evans <dje@google.com>
12745
12746 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12747 (map_partial_symbol_filenames): Ditto.
12748 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12749 (map_partial_symbol_filenames): Ditto.
12750 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12751 (map_partial_symbol_filenames): Ditto.
12752 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12753 (map_partial_symbol_filenames): Ditto.
12754 * symtab.c: Delete #include "psymtab.h".
12755
12756 2014-01-14 Pedro Alves <palves@redhat.com>
12757 Tom Tromey <tromey@redhat.com>
12758
12759 * infrun.c (use_displaced_stepping): Use find_record_target
12760 instead of RECORD_IS_USED.
12761 (adjust_pc_after_break): Use record_full_is_used instead of
12762 RECORD_IS_USED.
12763 * record-btrace.c (record_btrace_open): Call record_preopen
12764 instead of checking RECORD_IS_USED.
12765 * record-full.c (record_full_shortname)
12766 (record_full_core_shortname): New globals.
12767 (record_full_is_used): New function.
12768 (find_full_open): Call record_preopen instead of checking
12769 RECORD_IS_USED.
12770 (init_record_full_ops): Set the target's shortname to
12771 record_full_shortname.
12772 (init_record_full_core_ops): Set the target's shortname to
12773 record_full_core_shortname.
12774 * record-full.h (record_full_is_used): Declare.
12775 * record.c (find_record_target): Make extern.
12776 (record_preopen): New function.
12777 * record.h (RECORD_IS_USED): Delete macro.
12778 (find_record_target, record_preopen): Declare functions.
12779
12780 2014-01-14 Yao Qi <yao@codesourcery.com>
12781
12782 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12783 'len''s type to ULONGEST.
12784 (core_xfer_shared_libraries_aix): Likewise.
12785 * gdbarch.c, gdbarch.h: Regenerated.
12786 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12787 Change type of 'len' to ULONGEST.
12788 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12789 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12790
12791 2014-01-14 Yao Qi <yao@codesourcery.com>
12792
12793 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12794 type of 'len' to ULONGEST.
12795 (linux_xfer_osdata_processgroups): Likewise.
12796 (linux_xfer_osdata_threads): Likewise.
12797 (linux_xfer_osdata_fds): Likewise.
12798 (linux_xfer_osdata_isockets): Likewise.
12799 (linux_xfer_osdata_shm): Likewise.
12800 (linux_xfer_osdata_sem): Likewise.
12801 (linux_xfer_osdata_msg): Likewise.
12802 (linux_common_xfer_osdata): Likewise.
12803 (struct osdata_type) <getter>: Likewise.
12804 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12805 the declaration.
12806
12807 2014-01-14 Yao Qi <yao@codesourcery.com>
12808
12809 * target.h (target_xfer_partial_ftype): Update.
12810 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12811 ULONGEST.
12812 * aix-thread.c (aix_thread_xfer_partial): Change type of
12813 argument 'len' to ULONGEST.
12814 * auxv.c (procfs_xfer_auxv): Likewise.
12815 (ld_so_xfer_auxv): Likewise.
12816 (memory_xfer_auxv): Likewise.
12817 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12818 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12819 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12820 * corelow.c (core_xfer_partial): Likewise.
12821 * ctf.c (ctf_xfer_partial): Likewise.
12822 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12823 '%u'.
12824 (darwin_read_dyld_info): Likewise.
12825 (darwin_xfer_partial): Likewise.
12826 * exec.c (section_table_xfer_memory_partial): Likewise.
12827 (exec_xfer_partial): Likewise.
12828 * exec.h (section_table_xfer_memory_partial): Update
12829 declaration.
12830 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12831 instead of plongest.
12832 (gnu_xfer_partial): Likewise.
12833 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12834 (ia64_hpux_xfer_solib_got): Likewise.
12835 (ia64_hpux_xfer_partial): Likewise.
12836 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12837 * inf-ptrace.c (inf_ptrace_xfer_partial):
12838 * inf-ttrace.c (inf_ttrace_xfer_partial):
12839 * linux-nat.c (linux_xfer_siginfo): Likewise.
12840 (linux_nat_xfer_partial): Likewise.
12841 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12842 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12843 * monitor.c (monitor_xfer_memory): Likewise.
12844 (monitor_xfer_partial): Likewise.
12845 * procfs.c (procfs_xfer_partial): Likewise.
12846 * record-full.c (record_full_xfer_partial): Likewise.
12847 (record_full_core_xfer_partial): Likewise.
12848 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12849 instead of plongest.
12850 (gdbsim_xfer_partial): Likewise.
12851 * remote.c (remote_xfer_partial): Likewise.
12852 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12853 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12854 declaration.
12855 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12856 (rs6000_xfer_shared_libraries): Likewise.
12857 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12858 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12859 (sparc_xfer_partial): Likewise.
12860 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12861 (spu_xfer_partial): Likewise.
12862 * spu-multiarch.c (spu_xfer_partial): Likewise.
12863 * target.c (target_read_live_memory): Likewise.
12864 (memory_xfer_live_readonly_partial): Likewise.
12865 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12866 (target_xfer_partial, default_xfer_partial): Likewise.
12867 (current_xfer_partial): Likewise.
12868 * tracepoint.c (tfile_xfer_partial): Likewise.
12869 * windows-nat.c (windows_xfer_memory): Likewise. Call
12870 pulongest instead of plongest.
12871 (windows_xfer_partial): Likewise.
12872 (windows_xfer_shared_libraries): Likewise.
12873
12874 2014-01-14 Yao Qi <yao@codesourcery.com>
12875
12876 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12877 target_xfer_partial_ftype.
12878
12879 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12880
12881 PR python/15464
12882 PR python/16113
12883 * valops.c (value_struct_elt_bitpos): New function
12884 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12885 object to 'None' if the field name is an empty string ("").
12886 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12887 attribute to look for a field when 'name' is 'None'.
12888 (get_field_type): New function
12889
12890 2014-01-13 Doug Evans <dje@google.com>
12891
12892 PR symtab/16426
12893 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12894 (try_open_dwop_file): Ditto.
12895 * gdb_bfd.c: #include "vec.h".
12896 (bfdp): New typedef.
12897 (struct gdb_bfd_data): New member included_bfds.
12898 (gdb_bfd_unref): Unref all included bfds.
12899 (gdb_bfd_record_inclusion): New function.
12900 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12901
12902 2014-01-13 Tom Tromey <tromey@redhat.com>
12903
12904 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12905
12906 2014-01-13 Tom Tromey <tromey@redhat.com>
12907
12908 * defs.h (use_windows): Remove.
12909 * gdb.c (main): Update.
12910 * main.c (captured_main, gdb_main): Update.
12911 * main.h (struct captured_main_args) <use_windows>: Remove.
12912 * top.c (use_windows): Remove.
12913
12914 2014-01-13 Tom Tromey <tromey@redhat.com>
12915
12916 * defs.h (deprecated_flush_hook): Remove.
12917
12918 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12919
12920 PR threads/16216
12921 * linux-thread-db.c (try_thread_db_load): Add parameter
12922 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12923 (try_thread_db_load_from_pdir_1): Move it there from here.
12924 (try_thread_db_load_from_sdir): Update caller.
12925 (try_thread_db_load_from_dir): Move it there from here.
12926
12927 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12928
12929 * regformats/regdat.sh: Always rewrite the register file.
12930
12931 2014-01-13 Pedro Alves <palves@redhat.com>
12932
12933 * Makefile.in (CHECK_HEADERS): New variable.
12934 (check-headers:): New rule.
12935
12936 2014-01-13 Tom Tromey <tromey@redhat.com>
12937
12938 * cli/cli-setshow.c (do_set_command): Update.
12939 * defs.h (deprecated_set_hook): Remove.
12940 * top.c (deprecated_set_hook): Remove.
12941
12942 2014-01-13 Pedro Alves <palves@redhat.com>
12943
12944 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12945 the tracepoint if the PC is a pseudo-register.
12946
12947 2014-01-13 Tom Tromey <tromey@redhat.com>
12948
12949 * defs.h (XCALLOC): Remove.
12950 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12951 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12952 * dwarf2loc.c (allocate_piece_closure): Likewise.
12953 * elfread.c (elf_symfile_segments): Likewise.
12954 (elf_symfile_segments): Likewise.
12955 * gdbtypes.c (copy_type_recursive): Likewise.
12956 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12957 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12958 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12959 XCALLOC.
12960 * mt-tdep.c (mt_gdbarch_init): Likewise.
12961 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12962 XCALLOC.
12963 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12964 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12965 * registry.c (registry_alloc_data): Likewise.
12966 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12967 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12968 * serial.c (serial_fdopen_ops): Likewise.
12969 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12970 XCALLOC.
12971 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12972 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12973 not XCALLOC.
12974
12975 2014-01-13 Tom Tromey <tromey@redhat.com>
12976
12977 * defs.h (XMALLOC): Remove.
12978 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12979 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12980 * cli-out.c (struct ui_out *): Likewise.
12981 * cli/cli-dump.c (add_dump_command): Likewise.
12982 (add_dump_command): Likewise.
12983 * complaints.c (get_complaints): Likewise.
12984 (find_complaint): Likewise.
12985 * dwarf2-frame.c (execute_cfa_program): Likewise.
12986 * dwarf2read.c (abbrev_table_read_table): Likewise.
12987 * gdbarch.sh: Likewise.
12988 * gdbarch.c: Rebuild.
12989 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12990 * interps.c (interp_new): Likewise.
12991 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12992 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12993 * mi/mi-console.c (mi_console_file_new): Likewise.
12994 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12995 * mi/mi-out.c (mi_out_new): Likewise.
12996 * mi/mi-parse.c (mi_parse): Likewise.
12997 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12998 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12999 * observer.c (xalloc_observer_list_node): Likewise.
13000 * regcache.c (regcache_xmalloc_1): Likewise.
13001 * reggroups.c (reggroup_new): Likewise.
13002 (_initialize_reggroup): Likewise.
13003 * registry.c (register_data_with_cleanup): Likewise.
13004 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13005 * ser-base.c (serial_ttystate): Likewise.
13006 * ser-mingw.c (make_pipe_state): Likewise.
13007 * ser-pipe.c (pipe_open): Likewise.
13008 * serial.c (serial_open): Likewise.
13009 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13010 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13011 (tui_alloc_win_info): Likewise.
13012 (tui_add_content_elements): Likewise.
13013 * tui/tui-file.c (tui_file_new): Likewise.
13014 * tui/tui-out.c (tui_out_new): Likewise.
13015 * ui-file.c (mem_file_new): Likewise.
13016 * ui-out.c (push_level): Likewise.
13017 (make_cleanup_ui_out_end): Likewise.
13018 (append_header_to_list): Likewise.
13019 (ui_out_new): Likewise.
13020 * user-regs.c (user_reg_add_builtin): Likewise.
13021
13022 2014-01-13 Tom Tromey <tromey@redhat.com>
13023
13024 * defs.h (XZALLOC): Remove.
13025 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13026 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13027 (get_ada_tasks_inferior_data): Likewise.
13028 * auto-load.c (get_auto_load_pspace_data): Likewise.
13029 * auxv.c (get_auxv_inferior_data): Likewise.
13030 * bfd-target.c (target_bfd_reopen): Likewise.
13031 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13032 (deprecated_insert_raw_breakpoint): Likewise.
13033 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13034 * corelow.c (core_open): Likewise.
13035 * darwin-nat.c (darwin_check_new_threads): Likewise.
13036 (darwin_attach_pid): Likewise.
13037 * dummy-frame.c (dummy_frame_push): Likewise.
13038 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13039 * dwarf2loc.c (allocate_piece_closure): Likewise.
13040 * elfread.c (elf_symfile_segments): Likewise.
13041 * eval.c (ptrmath_type_p): Likewise.
13042 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13043 * gdbtypes.c (alloc_type_arch): Likewise.
13044 (alloc_type_instance): Likewise.
13045 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13046 * inf-child.c (inf_child_can_use_agent): Likewise.
13047 * inflow.c (get_inflow_inferior_data): Likewise.
13048 * infrun.c (save_infcall_suspend_state): Likewise.
13049 * jit.c (jit_reader_load): Likewise.
13050 (get_jit_objfile_data): Likewise.
13051 (get_jit_program_space_data): Likewise.
13052 (jit_object_open_impl): Likewise.
13053 (jit_symtab_open_impl): Likewise.
13054 (jit_block_open_impl): Likewise.
13055 (jit_frame_sniffer): Likewise.
13056 * linux-fork.c (add_fork): Likewise.
13057 * maint.c (make_command_stats_cleanup): Likewise.
13058 * objfiles.c (get_objfile_pspace_data): Likewise.
13059 * opencl-lang.c (struct lval_closure): Likewise.
13060 * osdata.c (osdata_start_osdata): Likewise.
13061 * progspace.c (new_address_space): Likewise.
13062 (add_program_space): Likewise.
13063 * remote-sim.c (get_sim_inferior_data): Likewise.
13064 * sh-tdep.c (sh_gdbarch_init): Likewise.
13065 * skip.c (Ignore): Likewise.
13066 (skip_delete_command): Likewise.
13067 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13068 (library_list_start_library): Likewise.
13069 (solib_aix_current_sos): Likewise.
13070 * solib-darwin.c (get_darwin_info): Likewise.
13071 (darwin_current_sos): Likewise.
13072 * solib-dsbt.c (get_dsbt_info): Likewise.
13073 * solib-ia64-hpux.c (new_so_list): Likewise.
13074 (ia64_hpux_get_solib_linkage_addr): Likewise.
13075 * solib-spu.c (append_ocl_sos): Likewise.
13076 (spu_current_sos): Likewise.
13077 * solib-svr4.c (get_svr4_info): Likewise.
13078 (svr4_keep_data_in_core): Likewise.
13079 (library_list_start_library): Likewise.
13080 (svr4_default_sos): Likewise.
13081 (svr4_read_so_list): Likewise.
13082 * solib-target.c (library_list_start_library): Likewise.
13083 (solib_target_current_sos): Likewise.
13084 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13085 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13086 * symfile.c (default_symfile_segments): Likewise.
13087 * target-descriptions.c (tdesc_data_init): Likewise.
13088 (tdesc_create_reg): Likewise.
13089 (struct tdesc_type *): Likewise.
13090 (tdesc_create_vector): Likewise.
13091 (tdesc_set_struct_size): Likewise.
13092 (struct tdesc_type *): Likewise.
13093 (tdesc_free_feature): Likewise.
13094 (tdesc_create_feature): Likewise.
13095 * windows-nat.c (windows_add_thread): Likewise.
13096 (windows_make_so): Likewise.
13097 * xml-support.c (gdb_xml_body_text): Likewise.
13098 (gdb_xml_create_parser_and_cleanup): Likewise.
13099 (xml_process_xincludes): Likewise.
13100 * xml-syscall.c (allocate_syscalls_info): Likewise.
13101 (syscall_create_syscall_desc): Likewise.
13102
13103 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13104
13105 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13106 function, with code from i386_stap_parse_special_token.
13107 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13108 (i386_stap_parse_special_token): Move code to the two functions
13109 above; simplify it.
13110
13111 2014-01-09 Pedro Alves <palves@redhat.com>
13112 Hui Zhu <hui@codesourcery.com>
13113
13114 PR gdb/16101
13115 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13116 bp_err_string. Don't mark the location shlib_disabled if the
13117 error thrown wasn't a generic or memory error. Catch errors
13118 thrown while inserting breakpoints in overlayed code. Output
13119 error message of software breakpoints.
13120 * remote.c (remote_insert_breakpoint): If this breakpoint has
13121 target-side commands but this stub doesn't support Z0 packets,
13122 throw NOT_SUPPORTED_ERROR error.
13123 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13124 * target.h (target_insert_breakpoint): Extend comment.
13125 (target_insert_hw_breakpoint): Add comment.
13126
13127 2014-01-08 Pedro Alves <palves@redhat.com>
13128
13129 * remote.c (remote_add_thread): Add threads silently if starting
13130 up.
13131 (remote_notice_new_inferior): If in all-stop, and starting up,
13132 don't call notice_new_inferior.
13133 (get_current_thread): New function, factored out from ...
13134 (add_current_inferior_and_thread): ... this. Adjust.
13135 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13136 found any thread, then select the remote's current thread as GDB's
13137 current thread too.
13138
13139 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13140
13141 * NEWS: Create a new section for the next release branch.
13142 Rename the section of the current branch, now that it has
13143 been cut.
13144
13145 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13146
13147 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13148 * version.in: Bump version to 7.7.50.DATE-cvs.
13149
13150 2014-01-08 Yao Qi <yao@codesourcery.com>
13151
13152 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13153 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13154 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13155
13156 2014-01-08 Yao Qi <yao@codesourcery.com>
13157
13158 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13159 return value of bfd_get_filename to symbol_file_add_from_bfd.
13160
13161 2014-01-08 Pierre Muller <muller@sourceware.org>
13162
13163 Fix PR16201.
13164 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13165 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13166 to prim_record_mininal_symbol_and_info.
13167 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13168 in call to prim_record_minimal_symbol_and_info.
13169 (read_pe_exported_syms): Set index field of section_data.
13170
13171 2014-01-07 Andrew Pinski <apinski@cavium.com>
13172
13173 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13174 * features/aarch64.c: Regenerate.
13175
13176 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13177
13178 * target.c (return_null): Define.
13179 (update_current_target): Use it instead of return_zero for
13180 functions that return a pointer.
13181
13182 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13183
13184 * source.c (add_path): Fix check for duplicated paths in the previously
13185 included paths.
13186
13187 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13188
13189 * ada-lang.c: Remove duplicated include statements.
13190 * alphabsd-nat.c: Ditto.
13191 * amd64-darwin-tdep.c: Ditto.
13192 * amd64fbsd-nat.c: Ditto.
13193 * auto-load.c: Ditto.
13194 * ax-gdb.c: Ditto.
13195 * breakpoint.c: Ditto.
13196 * dbxread.c: Ditto.
13197 * fork-child.c: Ditto.
13198 * gdb_usleep.c: Ditto.
13199 * i386-darwin-tdep.c: Ditto.
13200 * i386fbsd-nat.c: Ditto.
13201 * infcmd.c: Ditto.
13202 * inferior.c: Ditto.
13203 * jv-lang.c: Ditto.
13204 * linux-nat.c: Ditto.
13205 * linux-tdep.c: Ditto.
13206 * m68kbsd-nat.c: Ditto.
13207 * m68klinux-nat.c: Ditto.
13208 * microblaze-tdep.c: Ditto.
13209 * mips-linux-tdep.c: Ditto.
13210 * mn10300-tdep.c: Ditto.
13211 * nto-tdep.c: Ditto.
13212 * opencl-lang.c: Ditto.
13213 * osdata.c: Ditto.
13214 * printcmd.c: Ditto.
13215 * regcache.c: Ditto.
13216 * remote-m32r-sdi.c: Ditto.
13217 * remote.c: Ditto.
13218 * symfile.c: Ditto.
13219 * symtab.c: Ditto.
13220 * tilegx-linux-nat.c: Ditto.
13221 * tilegx-tdep.c: Ditto.
13222 * tracepoint.c: Ditto.
13223 * valops.c: Ditto.
13224 * vaxbsd-nat.c: Ditto.
13225 * windows-nat.c: Ditto.
13226 * xtensa-tdep.c: Ditto.
13227
13228 2014-01-07 Yao Qi <yao@codesourcery.com>
13229
13230 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13231
13232 2014-01-07 Yao Qi <yao@codesourcery.com>
13233 Joel Brobecker <brobecker@adacore.com>
13234
13235 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13236 (pdc_write_regs): Likewise.
13237 (fetch_regs_kernel_thread): Likewise.
13238 (store_regs_kernel_thread): Likewise.
13239
13240 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13241
13242 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13243 tagged type objects to their actual type.
13244
13245 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13246
13247 * ada-valprint.c (print_field_values): Add "language" parameter.
13248 Update calls to print_field_values and print_variant_part.
13249 Pass new parameter "language" in call to val_print instead
13250 of "current_language". Replace call to ada_val_print by call
13251 to val_print.
13252 (print_variant_part): Add "language" parameter.
13253 (ada_val_print_struct_union): Update call to print_field_values.
13254
13255 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13256
13257 * ada-valprint.c (ui_memcpy): Delete.
13258 (ada_print_floating): Update documentation. Add empty line
13259 between between function documentation and implementation.
13260 Delete variable "buffer". Use ui_file_xstrdup in place of
13261 ui_file_put. Minor adjustments following this change.
13262
13263 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13264
13265 * ada-valprint.c (ada_val_print_string): New function,
13266 extracted from ada_val_print_array.
13267 (ada_val_print_array): Replace extracted code by call
13268 to ada_val_print_string followed by a return. Move
13269 "else" branch to the function's top block.
13270
13271 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13272
13273 * ada-valprint.c (ada_val_print_array): Move implementation
13274 down. Rename parameter "offset" and "val" into "offset_aligned"
13275 and "original_value" respectively. Add parameter "offset".
13276
13277 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13278
13279 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13280 re-organizing the code. Change the "???" message printed
13281 when target type is a TYPE_CODE_UNDEF into
13282 "<ref to undefined type>".
13283
13284 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13285
13286 * ada-valprint.c (print_record): Delete, implementation inlined...
13287 (ada_val_print_struct_union): ... here. Remove call to
13288 ada_check_typedef in inlined implementation.
13289
13290 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13291
13292 * ada-valprint.c (ada_val_print_gnat_array): New function,
13293 extracted from ada_val_print_1;
13294 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13295 (ada_val_print_flt, ada_val_print_struct_union)
13296 (ada_val_print_ref): Likewise.
13297 (ada_val_print_1): Delete variables i and elttype.
13298 Replace extracted-out code by call to corresponding
13299 new functions.
13300
13301 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13302
13303 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13304
13305 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13306
13307 * ada-valprint.c (ada_val_print_1): Replace calls to
13308 ada_val_print_1 by calls to val_print.
13309
13310 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13311
13312 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13313 Update calls to self accordingly. Replace calls to c_val_print
13314 by calls to val_print.
13315
13316 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13317
13318 * ada-valprint.c (print_record): Delete declaration.
13319 (adjust_type_signedness, ada_val_print_1): Likewise.
13320 (ada_val_print): Move function implementation down.
13321 (print_variant_part, print_field_values, print_record):
13322 Move function implementation up.
13323
13324 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13325
13326 * python/py-type.c (typy_get_name): New function.
13327 (type_object_getset): Add entry for attribute "name".
13328 * NEWS: Add entry mentioning this new attribute.
13329
13330 2014-01-07 Yao Qi <yao@codesourcery.com>
13331
13332 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13333 statement.
13334
13335 2014-01-07 Yao Qi <yao@codesourcery.com>
13336
13337 * gnu-nat.c (info_port_rights): Add qualifier const to
13338 argument args.
13339
13340 2014-01-07 Yao Qi <yao@codesourcery.com>
13341
13342 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13343
13344 2014-01-07 Yao Qi <yao@codesourcery.com>
13345
13346 * gnu-nat.c (make_inf) Update declaration.
13347 (make_inf): Make it static.
13348 (inf_set_traced): Likewise.
13349 (inf_port_to_thread, inf_task_died_status): Likewise.
13350
13351 2014-01-07 Yao Qi <yao@codesourcery.com>
13352
13353 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13354
13355 2014-01-07 Yao Qi <yao@codesourcery.com>
13356
13357 * gnu-nat.c (_initialize_gnu_nat): Declare.
13358
13359 2014-01-07 Yao Qi <yao@codesourcery.com>
13360
13361 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13362 'enum bfd_endian'.
13363 (struct gdbarch_info) <byte_order>: Change type to
13364 'enum bfd_endian'.
13365 <byte_order_for_code>: Likewise.
13366 * gdbarch.c, gdbarch.h: Regenerated.
13367
13368 2014-01-06 Sasha Smundak <asmundak@google.com>
13369
13370 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13371
13372 2014-01-06 Tom Tromey <tromey@redhat.com>
13373
13374 * doublest.c (convert_doublest_to_floatformat): Use const, not
13375 CONST.
13376 * somread.c (som_symtab_read): Likewise.
13377
13378 2014-01-07 Hui Zhu <hui@codesourcery.com>
13379
13380 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13381 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13382 (gdb_bfd_fopen): Ditto.
13383 (gdb_bfd_openr): Ditto.
13384 (gdb_bfd_openw): Ditto.
13385 (gdb_bfd_openr_iovec): Ditto.
13386 (gdb_bfd_fdopenr): Ditto.
13387 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13388 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13389 with xstrdup.
13390 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13391 with xstrdup.
13392 * symfile-mem.c (symbol_file_add_from_memory): Removed
13393 gdb_bfd_stash_filename.
13394
13395 2014-01-03 Doug Evans <dje@google.com>
13396
13397 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13398 output.
13399
13400 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13401
13402 Update year range in copyright notice of all files.
13403
13404 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13405
13406 * top.c (print_gdb_version): Set copyright year to 2014.
13407
13408 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13409
13410 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13411
13412 For older changes see ChangeLog-2013.
13413 \f
13414 Local Variables:
13415 mode: change-log
13416 left-margin: 8
13417 fill-column: 74
13418 version-control: never
13419 coding: utf-8
13420 End: