Split vDSO range lookup to a gdbarch hook
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-10-10 Pedro Alves <palves@redhat.com>
2
3 * arch-utils.c (default_vsyscall_range): New function.
4 * arch-utils.h (default_vsyscall_range): New declaration.
5 * gdbarch.sh (vsyscall_range): New hook.
6 * gdbarch.h, gdbarch.c: Regenerate.
7 * linux-tdep.c (linux_vsyscall_range): New function.
8 (linux_init_abi): Install linux_vsyscall_range as
9 vsyscall_range gdbarch hook.
10 * memrange.c (address_in_mem_range): New function.
11 * memrange.h (address_in_mem_range): New declaration.
12 * symfile-mem.c (find_vdso_size): Delete function.
13 (add_vsyscall_page): Use gdbarch_vsyscall_range.
14
15 2014-10-10 Pedro Alves <palves@redhat.com>
16
17 * infrun.c (normal_stop): Fix typo in comment.
18
19 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
20
21 PR tdep/9390
22 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
23 typo when using logical AND to determine instruction type.
24
25 2014-10-09 Yao Qi <yao@codesourcery.com>
26
27 * infrun.c (handle_signal_stop): Remove local variable
28 'printed'.
29
30 2014-10-08 Stan Shebs <stan@codesourcery.com>
31
32 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
33
34 2014-10-08 Gary Benson <gbenson@redhat.com>
35
36 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
37
38 2014-10-08 Gary Benson <gbenson@redhat.com>
39
40 * common/common-defs.h: Include common-exceptions.h.
41 * exceptions.h: Do not include common-exceptions.h.
42
43 2014-10-08 Gary Benson <gbenson@redhat.com>
44
45 * common/common-defs.h: Include cleanups.h.
46 * common/common-exceptions.c: Do not include cleanups.h.
47 * utils.h: Likewise.
48
49 2014-10-08 Gary Benson <gbenson@redhat.com>
50
51 * ada-lang.c: Do not include exceptions.h.
52 * ada-valprint.c: Likewise.
53 * amd64-tdep.c: Likewise.
54 * auto-load.c: Likewise.
55 * block.c: Likewise.
56 * break-catch-throw.c: Likewise.
57 * breakpoint.c: Likewise.
58 * btrace.c: Likewise.
59 * c-lang.c: Likewise.
60 * cli/cli-cmds.c: Likewise.
61 * cli/cli-interp.c: Likewise.
62 * cli/cli-script.c: Likewise.
63 * completer.c: Likewise.
64 * corefile.c: Likewise.
65 * corelow.c: Likewise.
66 * cp-abi.c: Likewise.
67 * cp-support.c: Likewise.
68 * cp-valprint.c: Likewise.
69 * darwin-nat.c: Likewise.
70 * dwarf2-frame-tailcall.c: Likewise.
71 * dwarf2-frame.c: Likewise.
72 * dwarf2loc.c: Likewise.
73 * dwarf2read.c: Likewise.
74 * eval.c: Likewise.
75 * event-loop.c: Likewise.
76 * event-top.c: Likewise.
77 * f-valprint.c: Likewise.
78 * frame-unwind.c: Likewise.
79 * frame.c: Likewise.
80 * gdbtypes.c: Likewise.
81 * gnu-v2-abi.c: Likewise.
82 * gnu-v3-abi.c: Likewise.
83 * guile/scm-auto-load.c: Likewise.
84 * guile/scm-breakpoint.c: Likewise.
85 * guile/scm-cmd.c: Likewise.
86 * guile/scm-frame.c: Likewise.
87 * guile/scm-lazy-string.c: Likewise.
88 * guile/scm-param.c: Likewise.
89 * guile/scm-symbol.c: Likewise.
90 * guile/scm-type.c: Likewise.
91 * hppa-hpux-tdep.c: Likewise.
92 * i386-tdep.c: Likewise.
93 * inf-loop.c: Likewise.
94 * infcall.c: Likewise.
95 * infcmd.c: Likewise.
96 * infrun.c: Likewise.
97 * interps.c: Likewise.
98 * interps.h: Likewise.
99 * jit.c: Likewise.
100 * linespec.c: Likewise.
101 * linux-nat.c: Likewise.
102 * linux-thread-db.c: Likewise.
103 * m32r-rom.c: Likewise.
104 * main.c: Likewise.
105 * memory-map.c: Likewise.
106 * mi/mi-cmd-break.c: Likewise.
107 * mi/mi-cmd-stack.c: Likewise.
108 * mi/mi-interp.c: Likewise.
109 * mi/mi-main.c: Likewise.
110 * monitor.c: Likewise.
111 * nto-procfs.c: Likewise.
112 * objc-lang.c: Likewise.
113 * p-valprint.c: Likewise.
114 * parse.c: Likewise.
115 * ppc-linux-tdep.c: Likewise.
116 * printcmd.c: Likewise.
117 * probe.c: Likewise.
118 * python/py-auto-load.c: Likewise.
119 * python/py-breakpoint.c: Likewise.
120 * python/py-cmd.c: Likewise.
121 * python/py-finishbreakpoint.c: Likewise.
122 * python/py-frame.c: Likewise.
123 * python/py-framefilter.c: Likewise.
124 * python/py-function.c: Likewise.
125 * python/py-gdb-readline.c: Likewise.
126 * python/py-inferior.c: Likewise.
127 * python/py-infthread.c: Likewise.
128 * python/py-lazy-string.c: Likewise.
129 * python/py-linetable.c: Likewise.
130 * python/py-param.c: Likewise.
131 * python/py-prettyprint.c: Likewise.
132 * python/py-symbol.c: Likewise.
133 * python/py-type.c: Likewise.
134 * python/py-value.c: Likewise.
135 * python/python-internal.h: Likewise.
136 * python/python.c: Likewise.
137 * record-btrace.c: Likewise.
138 * record-full.c: Likewise.
139 * regcache.c: Likewise.
140 * remote-fileio.c: Likewise.
141 * remote-mips.c: Likewise.
142 * remote.c: Likewise.
143 * rs6000-aix-tdep.c: Likewise.
144 * rs6000-nat.c: Likewise.
145 * skip.c: Likewise.
146 * solib-darwin.c: Likewise.
147 * solib-dsbt.c: Likewise.
148 * solib-frv.c: Likewise.
149 * solib-ia64-hpux.c: Likewise.
150 * solib-spu.c: Likewise.
151 * solib-svr4.c: Likewise.
152 * solib.c: Likewise.
153 * spu-tdep.c: Likewise.
154 * stack.c: Likewise.
155 * stap-probe.c: Likewise.
156 * symfile-mem.c: Likewise.
157 * symmisc.c: Likewise.
158 * target.c: Likewise.
159 * thread.c: Likewise.
160 * top.c: Likewise.
161 * tracepoint.c: Likewise.
162 * tui/tui-interp.c: Likewise.
163 * typeprint.c: Likewise.
164 * utils.c: Likewise.
165 * valarith.c: Likewise.
166 * valops.c: Likewise.
167 * valprint.c: Likewise.
168 * value.c: Likewise.
169 * varobj.c: Likewise.
170 * windows-nat.c: Likewise.
171 * xml-support.c: Likewise.
172
173 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
174
175 * mips-tdep.c (add_offset_16): Rewrite to implement what the
176 name implies.
177 (extended_mips16_next_pc): Update accordingly.
178
179 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
180
181 * mips-tdep.c (mips16_instruction_is_compact_branch): New
182 function.
183 (micromips_instruction_is_compact_branch): Likewise.
184 (mips16_scan_prologue): Terminate scanning upon seeing a branch
185 or a compact jump, reaching a jump delay slot, or seeing a
186 second non-prologue instruction.
187 (micromips_scan_prologue): Also terminate scanning upon seeing a
188 compact branch or jump, or reaching a branch or jump delay slot.
189 (mips32_scan_prologue): Terminate scanning upon reaching a branch
190 or jump delay slot, or seeing a second non-prologue instruction.
191 (mips32_instruction_has_delay_slot): Retain instruction
192 examination code only, update arguments accordingly and move
193 instruction fetch pieces to...
194 (mips32_insn_at_pc_has_delay_slot): ... this new function.
195 (micromips_instruction_has_delay_slot): Likewise and to...
196 (micromips_insn_at_pc_has_delay_slot): ... this new function.
197 (mips16_instruction_has_delay_slot): Likewise and to...
198 (mips16_insn_at_pc_has_delay_slot): ... this new function.
199 (mips_single_step_through_delay): Update accordingly.
200 (mips_adjust_breakpoint_address): Likewise.
201
202 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
203
204 * mips-tdep.c (micromips_instruction_has_delay_slot): When
205 !mustbe32 also return 1 for 32-bit instructions.
206 (mips16_instruction_has_delay_slot): Likewise. Add an
207 explanatory comment.
208
209 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
210
211 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
212 symbols special.
213
214 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
215
216 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
217 update comments.
218 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
219 for the breakpoint's address. Don't preinitialize `placed_size'.
220 (insert_bp_location): Set `reqstd_address' rather than
221 `placed_address'.
222 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
223 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
224 address.
225 (bkpt_remove_location): Likewise.
226 (deprecated_insert_raw_breakpoint): Likewise.
227 (deprecated_remove_raw_breakpoint): Likewise.
228 (find_single_step_breakpoint): Likewise.
229 * mem-break.c (default_memory_insert_breakpoint): Use
230 `reqstd_address' for the breakpoint's address. Don't set
231 `placed_address' or `placed_size' if breakpoint contents couldn't
232 have been determined.
233 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
234 the breakpoint's address.
235 (remote_insert_hw_breakpoint): Likewise. Don't set
236 `placed_address' or `placed_size' if breakpoint couldn't have been
237 set.
238 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
239 `reqstd_address' for the breakpoint's address.
240 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
241 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
242 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
243 * microblaze-linux-tdep.c
244 (microblaze_linux_memory_remove_breakpoint): Likewise.
245 * monitor.c (monitor_insert_breakpoint): Likewise.
246 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
247 (procfs_insert_hw_breakpoint): Likewise.
248 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
249 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
250 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
251 * remote-mips.c (mips_insert_breakpoint): Likewise.
252 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
253
254 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
255
256 * valops.c (value_assign): Check for bit field assignments
257 before calling architecture-specific register value
258 conversion functions.
259
260 2014-10-03 Pierre Muller <muller@sourceware.org>
261
262 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
263
264 2014-10-02 Pedro Alves <palves@redhat.com>
265
266 * breakpoint.c (breakpoints_should_be_inserted_now): Use
267 threads_are_executing.
268 * breakpoint.h (breakpoints_should_be_inserted_now): Add
269 describing comment.
270 * gdbthread.h (threads_are_executing): Declare.
271 (handle_signal_stop) <random signals>: Don't print about the
272 signal here if stopping.
273 (end_stepping_range): Don't notify observers here.
274 (normal_stop): Update the thread list. If stopped by a random
275 signal or a stepping range ended, notify observers.
276 * thread.c (threads_executing): New global.
277 (init_thread_list): Clear 'threads_executing'.
278 (set_executing): Set or clear 'threads_executing'.
279 (threads_are_executing): New function.
280 (update_threads_executing): New function.
281 (update_thread_list): Use it.
282
283 2014-10-02 Pedro Alves <palves@redhat.com>
284
285 PR breakpoints/17431
286 * breakpoint.c (update_breakpoints_after_exec): Don't create
287 overlay, longjmp, std terminate nor exception breakpoints here.
288
289 2014-10-02 Pedro Alves <palves@redhat.com>
290
291 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
292 Adjust comments.
293 * inferior.c (find_inferior_for_program_space): Give preference to
294 the current inferior.
295 * inferior.h (find_inferior_for_program_space): Update comment.
296 * progspace.c (switch_to_program_space_and_thread): Prefer the
297 current inferior if it's bound to the program space requested. If
298 the inferior found doesn't have a PID yet, don't bother looking up
299 a thread.
300 * progspace.h (switch_to_program_space_and_thread): Adjust
301 comment.
302 * thread.c (any_thread_of_process, any_live_thread_of_process):
303 Give preference to the current thread.
304
305 2014-10-01 Pedro Alves <palves@redhat.com>
306
307 * breakpoint.c (insert_bp_location): Error out if inserting a
308 software breakpoint at a read-only address.
309 * target.c (memory_xfer_check_region): New function, factored out
310 from ...
311 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
312 ULONGEST.
313 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
314 against the memory region attributes.
315
316 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
317
318 * NEWS: Announce new exit-code field in -list-thread-groups
319 output.
320 * inferior.c (exit_inferior_1): Don't clear exit code.
321 (inferior_appeared): Clear exit code.
322 * mi/mi-main.c (print_one_inferior): Add printing of the exit
323 code.
324
325 2014-10-01 Pedro Alves <palves@redhat.com>
326
327 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
328 GENERATED" along with emacs/vi read-only markers.
329 * regformats/aarch64.dat: Regenerate.
330 * regformats/arm-with-iwmmxt.dat: Regenerate.
331 * regformats/arm-with-neon.dat: Regenerate.
332 * regformats/arm-with-vfpv2.dat: Regenerate.
333 * regformats/arm-with-vfpv3.dat: Regenerate.
334 * regformats/i386/amd64-avx-linux.dat: Regenerate.
335 * regformats/i386/amd64-avx.dat: Regenerate.
336 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
337 * regformats/i386/amd64-avx512.dat: Regenerate.
338 * regformats/i386/amd64-linux.dat: Regenerate.
339 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
340 * regformats/i386/amd64-mpx.dat: Regenerate.
341 * regformats/i386/amd64.dat: Regenerate.
342 * regformats/i386/i386-avx-linux.dat: Regenerate.
343 * regformats/i386/i386-avx.dat: Regenerate.
344 * regformats/i386/i386-avx512-linux.dat: Regenerate.
345 * regformats/i386/i386-avx512.dat: Regenerate.
346 * regformats/i386/i386-linux.dat: Regenerate.
347 * regformats/i386/i386-mmx-linux.dat: Regenerate.
348 * regformats/i386/i386-mmx.dat: Regenerate.
349 * regformats/i386/i386-mpx-linux.dat: Regenerate.
350 * regformats/i386/i386-mpx.dat: Regenerate.
351 * regformats/i386/i386.dat: Regenerate.
352 * regformats/i386/x32-avx-linux.dat: Regenerate.
353 * regformats/i386/x32-avx.dat: Regenerate.
354 * regformats/i386/x32-avx512-linux.dat: Regenerate.
355 * regformats/i386/x32-avx512.dat: Regenerate.
356 * regformats/i386/x32-linux.dat: Regenerate.
357 * regformats/i386/x32.dat: Regenerate.
358 * regformats/microblaze-with-stack-protect.dat: Regenerate.
359 * regformats/mips-dsp-linux.dat: Regenerate.
360 * regformats/mips-linux.dat: Regenerate.
361 * regformats/mips64-dsp-linux.dat: Regenerate.
362 * regformats/mips64-linux.dat: Regenerate.
363 * regformats/nios2-linux.dat: Regenerate.
364 * regformats/rs6000/powerpc-32.dat: Regenerate.
365 * regformats/rs6000/powerpc-32l.dat: Regenerate.
366 * regformats/rs6000/powerpc-64l.dat: Regenerate.
367 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
368 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
369 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
370 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
371 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
372 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
373 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
374 * regformats/s390-linux32.dat: Regenerate.
375 * regformats/s390-linux32v1.dat: Regenerate.
376 * regformats/s390-linux32v2.dat: Regenerate.
377 * regformats/s390-linux64.dat: Regenerate.
378 * regformats/s390-linux64v1.dat: Regenerate.
379 * regformats/s390-linux64v2.dat: Regenerate.
380 * regformats/s390-te-linux64.dat: Regenerate.
381 * regformats/s390x-linux64.dat: Regenerate.
382 * regformats/s390x-linux64v1.dat: Regenerate.
383 * regformats/s390x-linux64v2.dat: Regenerate.
384 * regformats/s390x-te-linux64.dat: Regenerate.
385 * regformats/tic6x-c62x-linux.dat: Regenerate.
386 * regformats/tic6x-c62x.dat: Regenerate.
387 * regformats/tic6x-c64x-linux.dat: Regenerate.
388 * regformats/tic6x-c64x.dat: Regenerate.
389 * regformats/tic6x-c64xp-linux.dat: Regenerate.
390 * regformats/tic6x-c64xp.dat: Regenerate.
391
392 2014-10-01 Pedro Alves <palves@redhat.com>
393
394 * features/Makefile: Update comments.
395 (XMLTOC): List all xml files we build C files from.
396 (clean-cfiles): New rule.
397
398 2014-10-01 Pedro Alves <palves@redhat.com>
399
400 * features/i386/amd64-avx512-linux.c: Regenerate.
401 * features/i386/amd64-avx512.c: Regenerate.
402 * features/i386/x32-avx512-linux.c: Regenerate.
403 * features/i386/x32-avx512.c: Regenerate.
404
405 2014-10-01 Pedro Alves <palves@redhat.com>
406
407 * features/Makefile (WHICH): Remove arm-with-m,
408 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
409
410 2014-10-01 Pedro Alves <palves@redhat.com>
411
412 * features/Makefile (clean): New rule.
413
414 2014-10-01 Pedro Alves <palves@redhat.com>
415
416 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
417 (zmm14h): Add missing end quotes.
418
419 2014-10-01 Pedro Alves <palves@redhat.com>
420
421 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
422 * features/aarch64.c: Regenerate.
423
424 2014-09-30 Don Breazeal <donb@codesourcery.com>
425
426 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
427 code so as to work with follow_fork_inferior.
428 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
429 (inf_ttrace_create_inferior): Remove reference to
430 inf_ttrace_vfork_ppid.
431 (inf_ttrace_attach): Ditto.
432 (inf_ttrace_detach): Ditto.
433 (inf_ttrace_kill): Use current_inferior instead of
434 inf_ttrace_vfork_ppid.
435 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
436 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
437 inferior away from the parent.
438 * infrun.c (follow_fork): Call follow_fork_inferior instead of
439 target_follow_fork.
440 (follow_fork_inferior): New function.
441 (follow_inferior_reset_breakpoints): Make function static.
442 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
443 * linux-nat.c (linux_child_follow_fork): Move target-independent
444 code to infrun.c:follow_fork_inferior.
445
446 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
447
448 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
449 * gdbarch.c: Regenerate.
450 * gdbarch.h: Likewise.
451 * corelow.c (sniff_core_bfd): Drop presence check for deleted
452 gdbarch method 'regset_from_core_section'.
453 (get_core_register_section): Remove handling for the case that
454 regset == NULL and regset_from_core_section is defined.
455 (get_core_registers): Drop check for deleted method.
456 * procfs.c (procfs_do_thread_registers): Adjust comment.
457
458 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
459
460 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
461 (linux_nat_make_corefile_notes): Remove.
462 (linux_target_install_ops): Do not set target method
463 'make_corefile_notes'.
464 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
465 Remove field.
466 (linux_corefile_thread_callback): Instead of args->collect, call
467 linux_collect_thread_registers.
468 (linux_make_corefile_notes): Remove 'collect' parameter. Return
469 NULL unless there is a regset iterator.
470 (linux_make_corefile_notes_1): Remove.
471 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
472 by linux_make_corefile_notes.
473 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
474
475 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
476
477 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
478 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
479 Remove.
480 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
481
482 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
483
484 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
485 (xtensa_iterate_over_regset_sections): New.
486 (xtensa_gdbarch_init): Adjust gdbarch initialization.
487
488 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
489
490 * vax-tdep.c (vax_regset_from_core_section): Remove.
491 (vax_iterate_over_regset_sections): New.
492 (vax_gdbarch_init): Adjust gdbarch initialization.
493
494 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
495
496 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
497 (tilegx_regset_from_core_section): Remove.
498 (tilegx_iterate_over_regset_sections): New.
499 (tilegx_linux_init_abi): Adjust gdbarch initialization.
500
501 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
502
503 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
504 (sparc_iterate_over_regset_sections): New.
505 (sparc32_gdbarch_init): Adjust gdbarch initialization.
506 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
507 targets.
508 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
509 (sparc64fbsd_init_abi): Call fbsd_init_abi.
510 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
511 target method 'make_corefile_notes'.
512
513 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
514
515 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
516 'sizeof_gregset' and 'sizeof_fpregset'.
517 * sh-tdep.c (sh_regset_from_core_section): Remove.
518 (sh_iterate_over_regset_sections): New.
519 (sh_gdbarch_init): Adjust gdbarch initialization.
520 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
521 sizeof_fpregset.
522 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
523 'sizeof_gregset'.
524
525 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
526
527 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
528 (score7_linux_iterate_over_regset_sections): New.
529 (score_gdbarch_init): Adjust gdbarch initialization.
530
531 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
532
533 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
534 FreeBSD targets.
535 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
536 method 'make_corefile_notes'.
537 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
538 (ppcfbsd_regset_from_core_section): Remove.
539 (ppcfbsd_iterate_over_regset_sections): New.
540 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
541 initialization.
542 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
543 (ppcnbsd_iterate_over_regset_sections): New.
544 (ppcnbsd_init_abi): Adjust.
545 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
546 (ppcobsd_iterate_over_regset_sections): New.
547 (ppcobsd_init_abi): Adjust.
548 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
549 (rs6000_aix_iterate_over_regset_sections): New.
550 (rs6000_aix_init_osabi): Adjust.
551
552 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
553
554 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
555 (nios2_regset_from_core_section): Remove.
556 (nios2_iterate_over_regset_sections): New.
557 (nios2_linux_init_abi): Adjust gdbarch initialization.
558
559 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
560
561 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
562 (am33_iterate_over_regset_sections): New.
563 (am33_linux_init_osabi): Adjust gdbarch initialization.
564
565 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
566
567 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
568 (mips_linux_iterate_over_regset_sections): New.
569 (mips_linux_init_abi): Adjust gdbarch initialization.
570 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
571 (mips64obsd_iterate_over_regset_sections): New.
572 (mips64obsd_init_abi): Adjust.
573 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
574 (mipsnbsd_iterate_over_regset_sections): New.
575 (mipsnbsd_init_abi): Adjust.
576
577 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
578
579 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
580 (m88k_iterate_over_regset_sections): New.
581 (m88k_gdbarch_init): Adjust gdbarch initialization.
582
583 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
584
585 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
586 (ia64_linux_iterate_over_regset_sections): New.
587 (ia64_linux_init_abi): Adjust gdbarch initialization.
588
589 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
590
591 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
592 (m68kbsd_iterate_over_regset_sections): New.
593 (m68kbsd_init_abi): Adjust gdbarch initialization.
594 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
595 (m68k_linux_iterate_over_regset_sections): New.
596 (m68k_linux_init_abi): Adjust gdbarch initialization.
597
598 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
599
600 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
601 (m32r_linux_regset_from_core_section): Remove.
602 (m32r_linux_iterate_over_regset_sections): New.
603 (m32r_linux_init_abi): Adjust gdbarch initialization.
604
605 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
606
607 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
608 (amd64obsd_iterate_over_regset_sections): New.
609 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
610 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
611 Remove.
612 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
613 regset_from_core_section initialization.
614 * i386-tdep.c (i386_regset_from_core_section): Remove.
615 (i386_iterate_over_regset_sections): New.
616 (i386_gdbarch_init): Adjust gdbarch initialization.
617 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
618 (i386_iterate_over_regset_sections): New prototype.
619 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
620 Remove.
621 (i386obsd_aout_iterate_over_regset_sections): New.
622 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
623 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
624 targets.
625 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
626 (amd64fbsd_init_abi): Call fbsd_init_abi.
627 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
628 (i386fbsd4_init_abi): Call fbsd_init_abi.
629 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
630 target method 'make_corefile_notes'.
631 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
632
633 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
634
635 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
636 (hppa_hpux_iterate_over_regset_sections): New.
637 (hppa_hpux_init_abi): Adjust gdbarch initialization.
638 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
639 (hppa_linux_iterate_over_regset_sections): New.
640 (hppa_linux_init_abi): Adjust.
641 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
642 (hppanbsd_iterate_over_regset_sections): New.
643 (hppanbsd_init_abi): Adjust.
644 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
645 (hppaobsd_iterate_over_regset_sections): New.
646 (hppaobsd_init_abi): Adjust.
647
648 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
649
650 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
651 (frv_linux_iterate_over_regset_sections): New.
652 (frv_linux_init_abi): Adjust gdbarch initialization.
653
654 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
655
656 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
657 (armbsd_iterate_over_regset_sections): New prototype.
658 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
659 (armbsd_iterate_over_regset_sections): New.
660 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
661 initialization.
662
663 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
664
665 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
666 (alpha_linux_iterate_over_regset_sections): New.
667 (alpha_linux_init_abi): Adjust gdbarch initialization.
668 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
669 prototype.
670 (alphanbsd_iterate_over_regset_sections): New prototype.
671
672 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
673
674 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
675 Remove.
676 (aarch64_linux_iterate_over_regset_sections): New.
677 (aarch64_linux_init_abi): Adjust gdbarch initialization.
678
679 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
680
681 * fbsd-tdep.c: New file.
682 * fbsd-tdep.h: New file.
683 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
684 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
685 (ALLDEPFILES): Add fbsd-tdep.c.
686
687 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
688
689 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
690 parameter.
691 * gdbarch.h: Regenerate.
692 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
693 iterator.
694 (get_core_register_section): Add parameter 'regset' and use it, if
695 set. Add parameter 'min_size' and verify the bfd section size
696 against it.
697 (get_core_registers_cb): Add parameter 'regset' and pass it to
698 get_core_register section. For the "standard" register sections
699 ".reg" and ".reg2", set an appropriate default for human_name.
700 (get_core_registers): Don't abort when the gdbarch has an iterator
701 but no regset_from_core_section. Add NULL/0 for parameters
702 'regset'/'min_size' in calls to get_core_register_section.
703 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
704 'regset' and use it instead of calling the
705 regset_from_core_section gdbarch method.
706 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
707 * i386-tdep.c (i386_supply_xstateregset)
708 (i386_collect_xstateregset, i386_xstateregset): Moved to
709 i386-linux-tdep.c.
710 (i386_regset_from_core_section): Drop handling for .reg-xfp and
711 .reg-xstate.
712 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
713 core file support only if the regset iterator hasn't been set.
714 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
715 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
716 Moved from i386-tdep.c and renamed to *_linux*.
717 (i386_linux_iterate_over_regset_sections): Add regset parameter to
718 each callback invocation. Allow any .reg-xstate size when reading
719 from a core file.
720 * amd64-tdep.c (amd64_supply_xstateregset)
721 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
722 amd64-linux-tdep.c.
723 (amd64_regset_from_core_section): Remove.
724 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
725 install an amd64-specific regset_from_core_section gdbarch method.
726 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
727 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
728 Moved from amd64-tdep.c and renamed to *_linux*.
729 (amd64_linux_iterate_over_regset_sections): Add regset parameter
730 to each callback invocation. Allow any .reg-xstate size when
731 reading from a core file.
732 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
733 (arm_linux_iterate_over_regset_sections): Add regset parameter to
734 each callback invocation.
735 (arm_linux_init_abi): No longer set the regset_from_core_section
736 gdbarch method.
737 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
738 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
739 each callback invocation.
740 (ppc_linux_init_abi): No longer set the regset_from_core_section
741 gdbarch method.
742 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
743 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
744 (s390_regset_from_core_section): Remove.
745 (s390_iterate_over_regset_sections): Add regset parameter to each
746 callback invocation.
747 (s390_gdbarch_init): No longer set the regset_from_core_section
748 gdbarch method. Drop initialization of deleted tdep fields.
749
750 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
751
752 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
753 (amd64_linux_iterate_over_regset_sections): New.
754 (amd64_linux_init_abi_common): Don't install the regset section
755 list, but the new iterator in gdbarch.
756 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
757 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
758 (arm_linux_iterate_over_regset_sections): ...here. New function.
759 (arm_linux_init_abi): Set iterator instead of section list.
760 * corelow.c (get_core_registers_cb): New function, logic moved
761 from...
762 (get_core_registers): ...loop body here. Use new iterator method
763 instead of walking through the regset section list.
764 * gdbarch.sh: Remove 'core_regset_sections'. New method
765 'iterate_over_regset_sections'. New typedef
766 'iterate_over_regset_sections_cb'.
767 * gdbarch.c: Regenerate.
768 * gdbarch.h: Likewise.
769 * i386-linux-tdep.c (i386_linux_regset_sections)
770 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
771 Remove.
772 (i386_linux_iterate_over_regset_sections): New.
773 (i386_linux_init_abi): Don't choose a regset section list, but
774 install new iterator in gdbarch.
775 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
776 (linux_collect_regset_section_cb): New function, logic moved
777 from...
778 (linux_collect_thread_registers): ...loop body here. Use iterator
779 method instead of walking through list.
780 (linux_make_corefile_notes_1): Check for presence of iterator
781 method instead of regset section list.
782 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
783 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
784 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
785 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
786 (ppc_linux_iterate_over_regset_sections): ...here. New function.
787 (ppc_linux_init_abi): Don't choose from above regset section
788 lists, but install new iterator in gdbarch.
789 * regset.h (struct core_regset_section): Remove.
790 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
791 have_linux_v1, have_linux_v2, and have_tdb.
792 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
793 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
794 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
795 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
796 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
797 (s390_iterate_over_regset_sections): ...here. New function. Use
798 new tdep fields.
799 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
800 regset section lists, but install new iterator.
801
802 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
803
804 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
805
806 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
807
808 * progspace.c (print_program_space): Don't prune program spaces
809 before printing them.
810
811 2014-09-25 Pedro Alves <palves@redhat.com>
812
813 * infrun.c (user_visible_resume_ptid): Don't check
814 singlestep_breakpoints_inserted_p.
815
816 2014-09-25 Pedro Alves <palves@redhat.com>
817
818 * breakpoint.c (should_be_inserted): Add debug output.
819
820 2014-09-25 Pedro Alves <palves@redhat.com>
821
822 * infrun.c (stepping_past_instruction_at)
823 (clear_exit_convenience_vars): Point at infrun.h instead of
824 inferior.h.
825 (handle_signal_stop): Fix typo.
826
827 2014-09-24 Yao Qi <yao@codesourcery.com>
828
829 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
830 bitmask.
831
832 2014-09-22 Gary Benson <gbenson@redhat.com>
833
834 * target.c (target_stop): Updated comment.
835
836 2014-09-22 Gary Benson <gbenson@redhat.com>
837
838 * target/target.h (target_stop_ptid): Renamed as...
839 (target_stop_and_wait): New function. Updated comment.
840 All uses updated.
841 (target_continue_ptid): Renamed as...
842 (target_continue_no_signal): New function. Updated comment.
843 All uses updated.
844
845 2014-09-22 Pedro Alves <palves@redhat.com>
846
847 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
848 and "auto" merged.
849 * breakpoint.c (enum ugll_insert_mode): New enum.
850 (always_inserted_mode): Now a plain boolean.
851 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
852 (breakpoints_always_inserted_mode): Delete.
853 (breakpoints_should_be_inserted_now): New function.
854 (insert_breakpoints): Pass UGLL_INSERT to
855 update_global_location_list instead of calling
856 insert_breakpoint_locations manually.
857 (create_solib_event_breakpoint_1): New, factored out from ...
858 (create_solib_event_breakpoint): ... this.
859 (create_and_insert_solib_event_breakpoint): Use
860 create_solib_event_breakpoint_1 instead of calling
861 insert_breakpoint_locations manually.
862 (update_global_location_list): Change parameter type from boolean
863 to enum ugll_insert_mode. All callers adjusted. Adjust to use
864 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
865 (update_global_location_list_nothrow): Change parameter type from
866 boolean to enum ugll_insert_mode.
867 (_initialize_breakpoint): "breakpoint always-inserted" option is
868 now a boolean command. Update help text.
869 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
870 (breakpoints_should_be_inserted_now): New declaration.
871 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
872 Remove breakpoints_always_inserted_mode check.
873 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
874 * remote.c (remote_start_remote): Likewise.
875
876 2014-09-22 Pedro Alves <palves@redhat.com>
877
878 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
879 (insert_breakpoints): Don't call insert_breakpoint_locations here.
880 Instead, pass UGLL_INSERT to update_global_location_list.
881 (update_global_location_list): Change parameter type from boolean
882 to enum ugll_insert_mode. All callers adjusted. Adjust to use
883 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
884 (create_solib_event_breakpoint_1): New, factored out from ...
885 (create_solib_event_breakpoint): ... this.
886 (create_and_insert_solib_event_breakpoint): Use
887 create_solib_event_breakpoint_1 instead of calling
888 insert_breakpoint_locations manually.
889 (update_global_location_list): Handle UGLL_INSERT.
890
891 2014-09-22 Pedro Alves <palves@redhat.com>
892
893 * breakpoint.c (enum ugll_insert_mode): New enum.
894 (update_global_location_list)
895 (update_global_location_list_nothrow): Change parameter type from
896 boolean to enum ugll_insert_mode. All callers adjusted.
897
898 2014-09-19 Joel Brobecker <brobecker@adacore.com>
899
900 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
901 SystemTap support in GDB.
902
903 2014-09-19 Don Breazeal <donb@codesourcery.com>
904
905 * linux-nat.c (linux_handle_extended_wait): Call
906 linux_ptrace_get_extended_event.
907 (wait_lwp): Call linux_is_extended_waitstatus.
908 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
909 and linux_is_extended_waitstatus.
910 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
911 linux_ptrace_get_extended_event.
912 (linux_ptrace_get_extended_event): New function.
913 (linux_is_extended_waitstatus): New function.
914 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
915 (linux_is_extended_waitstatus): New declarations.
916
917 2014-09-19 Yao Qi <yao@codesourcery.com>
918
919 * dwarf2read.c (dwarf_decode_lines): Update declaration.
920 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
921 comments. Callers update.
922 (dwarf_decode_lines): Likewise.
923 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
924 comments. Skip the line table if 'lowpc' is greater than
925 'address'. Don't check
926 dwarf2_per_objfile->has_section_at_zero.
927
928 2014-09-18 Doug Evans <dje@google.com>
929
930 * NEWS: Mention new "producer" attribute of gdb.Symtab.
931 * python/py-symtab.c (stpy_get_producer): New function.
932 (symtab_object_getset): Add "producer" attribute.
933
934 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
935
936 PR gdb/17384
937 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
938 (do_captured_read_memory_integer): Remove.
939 (safe_read_memory_integer): Use target_read_memory directly instead
940 of catching errors in do_captured_read_memory_integer.
941
942 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
943
944 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
945 not gdb/doc.
946
947 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
948
949 * objc-lang.c (find_implementation_from_class): Remove dead code.
950
951 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
952
953 PR cli/7233
954 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
955 "fprintf_unfiltered (gdb_stdlog...)".
956
957 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
958
959 PR breakpoints/12526
960 * breakpoint.h (struct watchpoint): New fields val_bitpos and
961 val_bitsize.
962 * breakpoint.c (watch_command_1): Use these fields to retain
963 bitfield information.
964 (extract_bitfield_from_watchpoint_value): New function.
965 (watchpoint_check): Use it.
966 (update_watchpoint): Use it. Optimize the address and length of a
967 HW watchpoint pointing to a bitfield.
968 * value.h (unpack_value_bitfield): New prototype.
969 * value.c (unpack_value_bitfield): Make extern.
970
971 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
972
973 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
974 x86-dregs.o.
975 * gnu-nat.c (inf_threads): New function.
976 * gnu-nat.h (inf_threads_ftype): New typedef.
977 (inf_threads): New declaration.
978 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
979 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
980 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
981 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
982 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
983 (i386_gnu_dr_get_control): New functions.
984 (reg_addr): New structure.
985 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
986 i386 debugging register hooks.
987 * NEWS: Mention this.
988
989 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
990
991 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
992 vector data transfer instructions.
993 (arm_record_coproc_data_proc): Updated.
994
995 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
996
997 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
998 arm_record_exreg_ld_st_insn.
999 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1000 load/store insns.
1001
1002 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1003
1004 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1005 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1006 processing instructions.
1007
1008 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1009
1010 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1011 for advance SIMD struct ld/st insn.
1012 (thumb2_record_decode_insn_handler): Replace stub handler with
1013 thumb2_record_asimd_struct_ld_st.
1014
1015 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1016
1017 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1018 for asimd, vfp and coprocessor insns.
1019 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1020 and coprocessor insns.
1021 (thumb2_record_coproc_insn): New function.
1022 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1023 handlers.
1024 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1025 opcode 110 insns.
1026
1027 2014-09-13 Doug Evans <xdje42@gmail.com>
1028
1029 * NEWS: Mention new "queue-signal" command.
1030 * infcmd.c (queue_signal_command): New function.
1031 (_initialize_infcmd): Add new queue-signal command.
1032
1033 2014-09-13 Doug Evans <xdje42@gmail.com>
1034
1035 * linux-nat.c (wait_lwp): Add debugging printf.
1036 (linux_nat_wait_1): Ditto.
1037
1038 2014-09-12 Pedro Alves <palves@redhat.com>
1039
1040 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1041 (create_and_insert_solib_event_breakpoint): New functions.
1042 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1043 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1044 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1045 (remove_dbx_link_breakpoint): Delete function.
1046 (insert_dbx_link_bpt_in_file): Use
1047 create_and_insert_solib_event_breakpoint instead of
1048 deprecated_insert_raw_breakpoint.
1049 (procfs_wait): Don't check whether we hit __dbx_link here.
1050 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1051 here.
1052 * solib-irix.c (base_breakpoint): Delete global.
1053 (disable_break): Delete function.
1054 (enable_break): Use create_solib_event_breakpoint
1055 instead of deprecated_insert_raw_breakpoint.
1056 (irix_solib_handle_event): New function.
1057 (irix_solib_create_inferior_hook): Don't run the target or disable
1058 the mapping-complete breakpoint here.
1059 (_initialize_irix_solib): Install irix_solib_handle_event as
1060 so_ops->handle_event hook.
1061
1062 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1063 Ulrich Weigand  <uweigand@de.ibm.com>
1064
1065 PR tdep/17379
1066 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1067 instead of read_memory_unsigned_integer.
1068
1069 2014-09-12 Gary Benson <gbenson@redhat.com>
1070
1071 * nat/linux-waitpid.c: Include common-defs.h.
1072 [GDBSERVER]: Add FIXME comment.
1073 [!GDBSERVER]: Don't include defs.h or signal.h.
1074 (linux_debug) [!GDBSERVER]: Remove empty block.
1075
1076 2014-09-12 Gary Benson <gbenson@redhat.com>
1077
1078 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1079 Don't include defs.h or server.h.
1080
1081 2014-09-12 Gary Benson <gbenson@redhat.com>
1082
1083 * nat/linux-btrace.c: Include common-defs.h.
1084 Don't include defs.h, server.h or gdbthread.h.
1085 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1086
1087 2014-09-12 Gary Benson <gbenson@redhat.com>
1088
1089 * common/agent.c: Include common-defs.h.
1090 Don't include defs.h or server.h.
1091 * common/buffer.c: Likewise.
1092 * common/common-debug.c: Likewise.
1093 * common/common-utils.c: Likewise.
1094 * common/errors.c: Likewise.
1095 * common/filestuff.c: Likewise.
1096 * common/format.c: Likewise.
1097 * common/gdb_vecs.c: Likewise.
1098 * common/print-utils.c: Likewise.
1099 * common/ptid.c: Likewise.
1100 * common/rsp-low.c: Likewise.
1101 * common/signals.c: Likewise.
1102 * common/vec.c: Likewise.
1103 * common/xml-utils.c: Likewise.
1104 * nat/linux-osdata.c: Likewise.
1105 * nat/linux-procfs.c: Likewise.
1106 * nat/linux-ptrace.c: Likewise.
1107 * nat/mips-linux-watch.c: Likewise.
1108 * target/waitstatus.c: Likewise.
1109
1110 2014-09-12 Tom Tromey <tromey@redhat.com>
1111 Gary Benson <gbenson@redhat.com>
1112
1113 * common/common-regcache.h: New file.
1114 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1115 * regcache.h: Include common-regcache.h.
1116 (regcache_read_pc): Don't declare.
1117 * regcache.c (get_thread_regcache_for_ptid): New function.
1118 * nat/linux-btrace.c: Don't include regcache.h.
1119 Include common-regcache.h.
1120 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1121
1122 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1123
1124 * regcache.h (struct regset): Declare.
1125
1126 2014-09-11 Pedro Alves <palves@redhat.com>
1127
1128 PR gdb/17347
1129 * main.c: Include "infrun.h".
1130 (catch_command_errors, catch_command_errors_const): Wait for the
1131 foreground command to complete.
1132 * top.c (maybe_wait_sync_command_done): New function, factored out
1133 from ...
1134 (maybe_wait_sync_command_done): ... here.
1135 * top.h (maybe_wait_sync_command_done): New declaration.
1136
1137 2014-09-11 Tom Tromey <tromey@redhat.com>
1138 Gary Benson <gbenson@redhat.com>
1139
1140 * common/symbol.h: New file.
1141 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1142 * minsyms.c (find_minimal_symbol_address): New function.
1143 * common/agent.c: Include common/symbol.h.
1144 [!GDBSERVER]: Don't include objfiles.h.
1145 (agent_look_up_symbols): Use find_minimal_symbol_address.
1146
1147 2014-09-11 Gary Benson <gbenson@redhat.com>
1148
1149 * target/target.h (target_stop_ptid, target_continue_ptid):
1150 Declare.
1151 * target.c (target_stop_ptid, target_continue_ptid): New
1152 functions.
1153 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1154 (agent_run_command): Always use target_stop_ptid and
1155 target_continue_ptid.
1156
1157 2014-09-11 Tom Tromey <tromey@redhat.com>
1158 Gary Benson <gbenson@redhat.com>
1159
1160 * target/target.h: New file.
1161 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1162 * target.h: Include target/target.h.
1163 (target_read_memory, target_write_memory): Don't declare.
1164 * target.c (target_read_uint32): New function.
1165 * common/agent.c: Include target/target.h.
1166 [!GDBSERVER]: Don't include target.h.
1167 (helper_thread_id): Type changed to uint32_t.
1168 (agent_get_helper_thread_id): Use target_read_uint32.
1169 (agent_run_command): Always use target_read_memory and
1170 target_write_memory.
1171 (agent_capability): Type changed to uint32_t.
1172 (agent_capability_check): Use target_read_uint32.
1173
1174 2014-09-11 Gary Benson <gbenson@redhat.com>
1175
1176 * common/common-debug.h (show_debug_regs): Declare.
1177 * common/common-debug.c (show_debug_regs): Define.
1178 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1179 all uses with show_debug_regs. Replace all uses that considered
1180 debug_hw_points as a multi-value integer with straight boolean
1181 uses.
1182 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1183 with show_debug_regs.
1184 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1185 all uses with show_debug_regs.
1186 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1187 uses with show_debug_regs.
1188
1189 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1190
1191 * findvar.c (address_from_register): Handle targets requiring
1192 a special conversion routine even for plain pointer types.
1193
1194 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1195
1196 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1197 (store_register): Do not call exec_one_dummy_insn.
1198
1199 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1200
1201 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1202 dereference it first. Use value_enclosing_type instead of
1203 value_type.
1204 (ada_array_length): Likewise.
1205
1206 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1207
1208 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1209 Adjust function implementation and documentation accordingly.
1210 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1211 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1212 Update call to ada_value_ptr_subscript.
1213
1214 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1215
1216 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1217 instead of VAL's type.
1218
1219 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1220
1221 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1222
1223 2014-09-09 Doug Evans <xdje42@gmail.com>
1224
1225 PR guile/17367
1226 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1227 last parameter to pkg-config, not first.
1228 * configure.ac: Pass --with-guile provided pkg-config path to
1229 GDB_GUILE_PROGRAM_NAMES.
1230 * configure: Regenerate.
1231
1232 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1233
1234 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1235 Bertazi".
1236
1237 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1238
1239 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1240 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1241 the list of sections determining GDB_OSABI_IRIX.
1242
1243 2014-09-09 James Hogan <james.hogan@imgtec.com>
1244
1245 * MAINTAINERS (Write After Approval): Add "James Hogan".
1246
1247 2014-09-09 James Hogan <james.hogan@imgtec.com>
1248
1249 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1250
1251 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1252
1253 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1254
1255 2014-09-08 Doug Evans <xdje42@gmail.com>
1256
1257 PR 17247
1258 * guile.c: #include <signal.h>.
1259 (_initialize_guile): Block SIGCHLD while initializing Guile.
1260
1261 Replaces the following, which is reverted.
1262
1263 2014-07-26 Doug Evans <xdje42@gmail.com>
1264
1265 PR 17185
1266 * configure.ac: Add check for header gc/gc.h.
1267 Add check for function setenv.
1268 * configure: Regenerate.
1269 * config.in: Regenerate.
1270 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1271
1272 2014-09-08 Doug Evans <xdje42@gmail.com>
1273
1274 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1275 with named constant. Fix style of pointer comparison.
1276 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1277
1278 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1279
1280 PR gdb/17035
1281 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1282 decide whether we display the command on "show user".
1283 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1284 printing command name.
1285 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1286 * cli/cli-decode.c (cli_user_command_p): Create helper function
1287 to verify whether cmd_list_element is a user-defined command.
1288
1289 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1290
1291 PR python/17355
1292 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1293 Fix goto out of TRY_CATCH.
1294
1295 2014-09-06 Doug Evans <xdje42@gmail.com>
1296 Tom Tromey <tromey@redhat.com>
1297
1298 PR 15276
1299 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1300 $_any_caller_matches.
1301 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1302 * python/lib/gdb/function/caller_is.py: New file.
1303
1304 2014-09-06 Doug Evans <xdje42@gmail.com>
1305
1306 * infcmd.c (program_info): Fix typo.
1307
1308 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1309
1310 PR gdb/17235
1311 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1312 'number'. New variable 'has_digit'. Rewrite code to deal with
1313 subexpressions on SDT probes.
1314
1315 2014-09-04 Pedro Alves <palves@redhat.com>
1316
1317 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1318 the input is only one character long.
1319
1320 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1321
1322 PR fortran/17237
1323 * f-valprint.c (f_val_print): Specify the correct print option to
1324 use when printing integer values.
1325
1326 2014-09-04 Gary Benson <gbenson@redhat.com>
1327
1328 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1329 Remove code to cope with LWPs wrapped as PIDs.
1330 Add assertions to ensure no wrapped LWPs are passed.
1331
1332 2014-09-04 Pedro Alves <palves@redhat.com>
1333
1334 * value.c (value_ranges_copy_adjusted): New function, factored out
1335 from ...
1336 (value_contents_copy_raw): ... here.
1337 (unpack_value_bits_as_long_1): Rename back to ...
1338 (unpack_bits_as_long): ... this. Remove 'original_value' and
1339 'result' parameters. Change return type to LONGEST.
1340 (unpack_value_bits_as_long): Delete.
1341 (unpack_value_field_as_long_1): Delete.
1342 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1343 (unpack_value_bitfield): New function.
1344 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1345 (value_fetch_lazy): Use unpack_value_bitfield.
1346 * value.h (unpack_value_bits_as_long): Delete declaration.
1347
1348 2014-09-03 Sasha Smundak <asmundak@google.com>
1349
1350 * python/py-frame.c (frapy_read_register): New function.
1351
1352 2014-09-03 James Hogan <james.hogan@imgtec.com>
1353
1354 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1355 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1356
1357 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1358
1359 PR python/16699
1360 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1361 function.
1362 (add_cmd): Set "completer_handle_brkchars" to NULL.
1363 * cli/cli-decode.h (struct cmd_list_element)
1364 <completer_handle_brkchars>: New field.
1365 * command.h (completer_ftype_void): New typedef.
1366 (set_cmd_completer_handle_brkchars): New prototype.
1367 * completer.c (set_gdb_completion_word_break_characters): New
1368 function.
1369 (complete_line_internal): Call "completer_handle_brkchars"
1370 callback from command.
1371 * completer.h: Include "command.h".
1372 (set_gdb_completion_word_break_characters): New prototype.
1373 * python/py-cmd.c (cmdpy_completer_helper): New function.
1374 (cmdpy_completer_handle_brkchars): New function.
1375 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1376 (cmdpy_init): Set completer_handle_brkchars to
1377 cmdpy_completer_handle_brkchars.
1378
1379 2014-09-03 Gary Benson <gbenson@redhat.com>
1380
1381 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1382 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1383 Loop conditions changed to equivalent form.
1384 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1385 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1386 ALL_DEBUG_ADDRESS_REGISTERS.
1387
1388 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1389
1390 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1391 description fix.
1392
1393 2014-09-02 Doug Evans <dje@google.com>
1394
1395 * typeprint.c (find_global_typedef): Fix comment.
1396
1397 2014-09-02 Gary Benson <gbenson@redhat.com>
1398
1399 * i386-nat.h: Renamed as...
1400 * x86-nat.h: New file. All type, function and variable name
1401 prefixes changed from "i386_" to "x86_". All references updated.
1402 * i386-nat.c: Renamed as...
1403 * x86-nat.c: New file. All type, function and variable name
1404 prefixes changed from "i386_" to "x86_". All references updated.
1405 * common/i386-xstate.h: Renamed as...
1406 * common/x86-xstate.h: New file. All type, function and variable
1407 name prefixes changed from "i386_" to "x86_". All references
1408 updated.
1409 * nat/i386-cpuid.h: Renamed as...
1410 * nat/x86-cpuid.h: New file. All type, function and variable name
1411 prefixes changed from "i386_" to "x86_". All references updated.
1412 * nat/i386-gcc-cpuid.h: Renamed as...
1413 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1414 name prefixes changed from "i386_" to "x86_". All references
1415 updated.
1416 * nat/i386-dregs.h: Renamed as...
1417 * nat/x86-dregs.h: New file. All type, function and variable name
1418 prefixes changed from "i386_" to "x86_". All references updated.
1419 * nat/i386-dregs.c: Renamed as...
1420 * nat/x86-dregs.c: New file. All type, function and variable name
1421 prefixes changed from "i386_" to "x86_". All references updated.
1422
1423 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1424
1425 * varobj.c (_initialize_varobj): Move to the end of file.
1426
1427 2014-08-29 Gary Benson <gbenson@redhat.com>
1428
1429 * common/common-exceptions.h: New file.
1430 * common/common-exceptions.c: Likewise.
1431 * Makefile.in (SFILES): Add common/common-exceptions.c.
1432 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1433 (COMMON_OBS): Add common-exceptions.o.
1434 (common-exceptions.o): New rule.
1435 * exceptions.h (common-exceptions.h): Include.
1436 (gdb_setjmp.h): Do not include.
1437 (return_reason): Moved to common-exceptions.h.
1438 (enum return_reason): Likewise.
1439 (RETURN_MASK): Likewise.
1440 (typedef return_mask): Likewise.
1441 (enum errors): Likewise.
1442 (struct gdb_exception): Likewise.
1443 (exceptions_state_mc_init): Likewise.
1444 (exceptions_state_mc_action_iter): Likewise.
1445 (exceptions_state_mc_action_iter_1): Likewise.
1446 (TRY_CATCH): Likewise.
1447 (throw_exception): Likewise.
1448 (throw_verror): Likewise.
1449 (throw_vquit): Likewise.
1450 (throw_error): Likewise.
1451 (throw_quit): Likewise.
1452 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1453 (enum catcher_action): Likewise.
1454 (struct catcher): Likewise.
1455 (current_catcher): Likewise.
1456 (catcher_list_size): Likewise.
1457 (exceptions_state_mc_init): Likewise.
1458 (catcher_pop): Likewise.
1459 (exceptions_state_mc): Likewise.
1460 (exceptions_state_mc_action_iter): Likewise.
1461 (exceptions_state_mc_action_iter_1): Likewise.
1462 (throw_exception): Likewise.
1463 (exception_messages): Likewise.
1464 (exception_messages_size): Likewise.
1465 (throw_it): Likewise.
1466 (throw_verror): Likewise.
1467 (throw_vquit): Likewise.
1468 (throw_error): Likewise.
1469 (throw_quit): Likewise.
1470 (prepare_to_throw_exception): New function.
1471
1472 2014-08-29 Gary Benson <gbenson@redhat.com>
1473
1474 * common/gdb_setjmp.h: New file.
1475 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1476 * configure.ac: Move sigsetjmp check...
1477 * common/common.m4: ...here.
1478 * configure: Regenerate.
1479 * cp-support.c (SIGJMP_BUF): Delete.
1480 (SIGSETJMP): Likewise.
1481 (SIGLONGJMP): Likewise.
1482 * exceptions.h (gdb_setjmp.h): Include.
1483 (setjmp.h): Do not include.
1484 (EXCEPTIONS_SIGJMP_BUF): Delete.
1485 (EXCEPTIONS_SIGSETJMP): Likewise.
1486 (EXCEPTIONS_SIGLONGJMP): Likewise.
1487 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1488 from gdb_setjmp.h.
1489 * exceptions.c: Likewise.
1490
1491 2014-08-29 Gary Benson <gbenson@redhat.com>
1492
1493 * cleanups.h: Moved to...
1494 * common/cleanups.h: New file.
1495 * cleanups.c: Moved to...
1496 * common/cleanups.c: New file. Include common-defs.h and
1497 cleanups.h. Do not include defs.h.
1498 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1499 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1500 (cleanups.o): New rule.
1501
1502 2014-08-29 Gary Benson <gbenson@redhat.com>
1503
1504 * common/errors.h (internal_warning): New declaration.
1505 (internal_vwarning): Likewise.
1506 * common/errors.c (internal_warning): New function.
1507 * utils.h (internal_warning): Don't declare.
1508 (internal_vwarning): Likewise.
1509 * utils.c (internal_warning): Removed.
1510
1511 2014-08-29 Gary Benson <gbenson@redhat.com>
1512
1513 * main.c (captured_main): Use warning during startup.
1514 Prefix startup warning messages with command name.
1515
1516 2014-08-29 Gary Benson <gbenson@redhat.com>
1517
1518 * main.c (captured_main): Handle usage errors with error.
1519
1520 2014-08-29 Gary Benson <gbenson@redhat.com>
1521
1522 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1523 exit pair with a call to error. Wrap the message with _().
1524
1525 2014-08-29 Gary Benson <gbenson@redhat.com>
1526
1527 * main.c (captured_main): Replace a fprintf/exit
1528 pair with a call to error. Wrap the message with _().
1529
1530 2014-08-29 Gary Benson <gbenson@redhat.com>
1531
1532 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1533 pairs with calls to error. Wrap the message with _().
1534
1535 2014-08-29 Gary Benson <gbenson@redhat.com>
1536
1537 * utils.c (vwarning): Protect calls to target_terminal_ours
1538 and wrap_here.
1539
1540 2014-08-29 Gary Benson <gbenson@redhat.com>
1541
1542 * exceptions.c (print_flush): Protect calls to
1543 target_terminal_ours and wrap_here.
1544
1545 2014-08-29 Gary Benson <gbenson@redhat.com>
1546
1547 * utils.h (filtered_printing_initialized): New declaration.
1548 * utils.c (abort_with_message): New function.
1549 (internal_vproblem): Use abort_with_message for first level
1550 recursive internal problems, and if gdb_stderr is not set up.
1551 Protect calls to target_terminal_ours, begin_line and query.
1552
1553 2014-08-28 Doug Evans <dje@google.com>
1554
1555 * symtab.c (in_prologue): Move definition to better spot.
1556 (skip_prologue_using_sal): Ditto.
1557
1558 2014-08-28 Doug Evans <dje@google.com>
1559
1560 * symtab.c (find_function_start_sal): Move definition to better spot.
1561
1562 2014-08-28 Yao Qi <yao@codesourcery.com>
1563
1564 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1565 found_stack_adjust in forward scan. Remove condition check
1566 on found_stack_adjust which is always true. Indent the code.
1567
1568 2014-08-28 Yao Qi <yao@codesourcery.com>
1569
1570 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1571 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1572 (dwarf_decode_lines): Remove argument
1573 want_line_info. Remove condition check on want_line_info.
1574 Callers update.
1575
1576 2014-08-27 Doug Evans <dje@google.com>
1577
1578 * dwarf2read.c (dwarf_record_line): Fix typo.
1579
1580 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1581
1582 * target.h (struct target_ops::to_terminal_save_ours): Remove
1583 declaration.
1584 (target_terminal_save_ours): Remove macro.
1585 * target-delegates.c: Regenerate.
1586 * inf-child.c (inf_child_target): Don't set the nonexistent
1587 field to_terminal_save_ours.
1588 * inferior.h (child_terminal_save_ours): Remove declaration.
1589 * terminal.h (gdb_save_tty_state): New declaration.
1590 * inflow.c (child_terminal_save_ours): Rename to ...
1591 (gdb_save_tty_state): ... this.
1592 * tui/tui.c: Include terminal.h.
1593 (tui_enable): Use gdb_save_tty_state instead of
1594 target_terminal_save_ours.
1595 (tui_disable): Likewise.
1596
1597 2014-08-25 Doug Evans <dje@google.com>
1598
1599 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1600 Pass NULL instead of 0 for context pointer.
1601
1602 2014-08-25 Yao Qi <yao@codesourcery.com>
1603
1604 * dwarf2read.c: Fix grammatical error.
1605
1606 2014-08-24 Yao Qi <yao@codesourcery.com>
1607
1608 * dwarf2read.c (scan_partial_symbols): Update comments.
1609 Rename argument 'need_pc' with 'set_addrmap'.
1610 (add_partial_namespace): Rename argument 'need_pc' with
1611 'set_addrmap'.
1612 (add_partial_module): Likewise.
1613 (add_partial_subprogram): Likewise. Update comments.
1614 (dwarf2_name): Fix typo.
1615
1616 2014-08-22 Doug Evans <dje@google.com>
1617
1618 PR 17276
1619 * dwarf2read.c (dwarf_record_line_p): New function.
1620 (dwarf_decode_lines_1): Ignore subsequent line number entries
1621 for the same line if any entry had a non-zero discriminator.
1622
1623 2014-08-22 Doug Evans <dje@google.com>
1624
1625 * buildsym.h (record_line_ftype): New typedef.
1626 (record_line): Use it.
1627 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1628 (dwarf_decode_lines_1): Call them.
1629
1630 2014-08-22 Yao Qi <yao@codesourcery.com>
1631
1632 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1633 (ctf_end): Remove code.
1634
1635 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1636
1637 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1638 (linux_make_corefile_notes): call update_thread_list, protected against
1639 exceptions.
1640
1641 2014-08-21 Pedro Alves <palves@redhat.com>
1642
1643 * infcmd.c (attach_command): Remove comment.
1644
1645 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1646
1647 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1648 unsigned LONGEST to ULONGEST.
1649
1650 2014-08-20 Pedro Alves <palves@redhat.com>
1651
1652 * Makefile.in (check-read1): New rule.
1653
1654 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1655
1656 * value.c (value_from_contents_and_address): Strip resolved_type's
1657 typedef layers before checking its TYPE_DATA_LOCATION.
1658
1659 2014-08-20 Pedro Alves <palves@redhat.com>
1660
1661 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1662
1663 2014-08-20 Yao Qi <yao@codesourcery.com>
1664
1665 * amd64-tdep.c (amd64_classify): Add a blank line after the
1666 example. Move "*/" to a new line.
1667 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1668 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1669 * dwarf2read.c (psymtab_include_file_name): Likewise.
1670
1671 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1672 Pedro Alves <palves@redhat.com>
1673
1674 PR symtab/14604
1675 PR symtab/14605
1676 * ada-lang.c (coerce_unspec_val_to_type): Use
1677 value_contents_copy_raw.
1678 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1679 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1680 * cp-valprint.c (cp_print_value_fields): Let the common printing
1681 code handle optimized out values.
1682 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1683 * d-valprint.c (dynamic_array_type): Use
1684 value_bits_any_optimized_out.
1685 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1686 check_any_valid fields.
1687 (check_pieced_value_bits): Delete and inline ...
1688 (check_pieced_synthetic_pointer): ... here.
1689 (check_pieced_value_validity): Delete.
1690 (check_pieced_value_invalid): Delete.
1691 (pieced_value_funcs): Remove check_validity and check_any_valid
1692 fields.
1693 (read_pieced_value): Use mark_value_bits_optimized_out.
1694 (write_pieced_value): Switch to use
1695 mark_value_bytes_optimized_out.
1696 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1697 of assuming the whole value is optimized out.
1698 * findvar.c (read_frame_register_value): Remove special handling
1699 of optimized out registers.
1700 (value_from_register): Use mark_value_bytes_optimized_out.
1701 * frame-unwind.c (frame_unwind_got_optimized): Use
1702 mark_value_bytes_optimized_out.
1703 * jv-valprint.c (java_value_print): Adjust.
1704 (java_print_value_fields): Let the common printing code handle
1705 optimized out values.
1706 * mips-tdep.c (mips_print_register): Remove special handling of
1707 optimized out registers.
1708 * opencl-lang.c (lval_func_check_validity): Delete.
1709 (lval_func_check_any_valid): Delete.
1710 (opencl_value_funcs): Remove check_validity and check_any_valid
1711 fields.
1712 * p-valprint.c (pascal_object_print_value_fields): Let the common
1713 printing code handle optimized out values.
1714 * stack.c (read_frame_arg): Remove special handling of optimized
1715 out values. Fetch both VAL and ENTRYVAL before comparing
1716 contents. Adjust to value_available_contents_eq rename.
1717 * valprint.c (valprint_check_validity)
1718 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1719 (val_print_array_elements): Adjust.
1720 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1721 (value_bits_any_optimized_out): New function.
1722 (value_entirely_covered_by_range_vector): New function, factored
1723 out from value_entirely_unavailable.
1724 (value_entirely_unavailable): Reimplement.
1725 (value_entirely_optimized_out): New function.
1726 (insert_into_bit_range_vector): New function, factored out from
1727 mark_value_bits_unavailable.
1728 (mark_value_bits_unavailable): Reimplement.
1729 (struct ranges_and_idx): New struct.
1730 (find_first_range_overlap_and_match): New function, factored out
1731 from value_available_contents_bits_eq.
1732 (value_available_contents_bits_eq): Rename to ...
1733 (value_contents_bits_eq): ... this. Check both unavailable
1734 contents and optimized out contents.
1735 (value_available_contents_eq): Rename to ...
1736 (value_contents_eq): ... this.
1737 (allocate_value_lazy): Remove reference to the old optimized_out
1738 boolean.
1739 (allocate_optimized_out_value): Use
1740 mark_value_bytes_optimized_out.
1741 (require_not_optimized_out): Adjust to check whether the
1742 optimized_out vec is empty.
1743 (ranges_copy_adjusted): New function, factored out from
1744 value_contents_copy_raw.
1745 (value_contents_copy_raw): Also copy the optimized out ranges.
1746 Assert the destination ranges aren't optimized out.
1747 (value_contents_copy): Update comment, remove call to
1748 require_not_optimized_out.
1749 (value_contents_equal): Adjust to check whether the optimized_out
1750 vec is empty.
1751 (set_value_optimized_out, value_optimized_out_const): Delete.
1752 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1753 New functions.
1754 (value_entirely_optimized_out, value_bits_valid): Delete.
1755 (value_copy): Take a VEC copy of the 'optimized_out' field.
1756 (value_primitive_field): Remove special handling of optimized out.
1757 (value_fetch_lazy): Assert that lazy values have no unavailable
1758 regions. Use value_bits_any_optimized_out. Remove some special
1759 handling for optimized out values.
1760 * value.h: Add intro comment about <optimized out> and
1761 <unavailable>.
1762 (struct lval_funcs): Remove check_validity and check_any_valid
1763 fields.
1764 (set_value_optimized_out, value_optimized_out_const): Remove.
1765 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1766 New declarations.
1767 (value_bits_any_optimized_out): New declaration.
1768 (value_bits_valid): Delete declaration.
1769 (value_available_contents_eq): Rename to ...
1770 (value_contents_eq): ... this, and extend comments.
1771
1772 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1773
1774 Fix -fsanitize=address on unreadable inferior strings.
1775 * valprint.c (val_print_string): Fix access before BUFFER.
1776
1777 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1778
1779 * target.c (target_struct_size): Remove.
1780 (target_struct_allocsize): Remove.
1781 (DEFAULT_ALLOCSIZE): Remove.
1782 (target_ops_p): New typedef.
1783 (DEF_VEC_P (target_ops_p)): New vector type.
1784 (target_structs): Change type to VEC (target_ops_p).
1785 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1786 (find_default_run_target): Rewrite for loop following changes to
1787 target_structs.
1788
1789 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1790
1791 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1792 Adjust code accordingly. Adjust function description comment.
1793
1794 2014-08-19 Yao Qi <yao@codesourcery.com>
1795
1796 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1797 types.
1798
1799 2014-08-19 Alan Modra <amodra@gmail.com>
1800
1801 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1802 * config.in: Regenerate.
1803 * configure: Regenerate.
1804
1805 2014-08-19 Tom Tromey <tromey@redhat.com>
1806 Gary Benson <gbenson@redhat.com>
1807
1808 * common/common-debug.h: New file.
1809 * common/common-debug.c: Likewise.
1810 * debug.c: Likewise.
1811 * Makefile.in (SFILES): Add common/common-debug.c.
1812 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1813 (COMMON_OBS): Add common-debug.o and debug.o.
1814 (common-debug.o): New rule.
1815 * common/common-defs.h: Include common-debug.h.
1816 * common/agent.c (debug_agent_printf): New function.
1817 (DEBUG_AGENT): Redefine.
1818 * nat/i386-dregs.c (debug_printf): Undefine.
1819
1820 2014-08-19 Gary Benson <gbenson@redhat.com>
1821
1822 * common/common-defs.h: Include print-utils.h.
1823 * utils.h: Do not include print-utils.h.
1824
1825 2014-08-19 Tom Tromey <tromey@redhat.com>
1826 Gary Benson <gbenson@redhat.com>
1827
1828 * common/common-types.h: New file.
1829 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1830 * common/common-defs.h: Include common-types.h.
1831 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1832 (ULONGEST): Remove.
1833
1834 2014-08-19 Tom Tromey <tromey@redhat.com>
1835 Gary Benson <gbenson@redhat.com>
1836
1837 * common/errors.h: New file.
1838 * common/errors.c: Likewise.
1839 * Makefile.in (SFILES): Add common/errors.c.
1840 (HFILES_NO_SRCDIR): Add common/errors.h.
1841 (COMMON_OBS): Add errors.o.
1842 (errors.o): New rule.
1843 * common/common-defs.h: Include errors.h.
1844 * utils.h (perror_with_name, error, verror, warning, vwarning):
1845 Don't declare.
1846 * common/common-utils.h: (malloc_failure, internal_error):
1847 Likewise.
1848
1849 2014-08-19 Gary Benson <gbenson@redhat.com>
1850
1851 * utils.c (internal_vproblem): Always print the message.
1852
1853 2014-08-18 Doug Evans <dje@google.com>
1854
1855 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1856
1857 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1858
1859 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1860 Return 0 if TYPE is dynamic.
1861 (print_range): Add handling of dynamic ranges.
1862
1863 2014-08-18 Keven Boell <keven.boell@intel.com>
1864 Joel Brobecker <brobecker@adacore.com>
1865
1866 * gdbtypes.h (struct main_type): Add field "data_location".
1867 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1868 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1869 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1870 a dynamic data location.
1871 (resolve_dynamic_type): Add DW_AT_data_location handling.
1872 (copy_recursive, copy_type): Copy the data_location information
1873 when present.
1874 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1875 * value.c (value_from_contents_and_address): Add
1876 DW_AT_data_location handling.
1877
1878 2014-08-18 Keven Boell <keven.boell@intel.com>
1879 Joel Brobecker <brobecker@adacore.com>
1880
1881 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1882 field "get_object_address".
1883 * dwarf2expr.c (execute_stack_op): Add handling for
1884 DW_OP_push_object_address.
1885 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1886 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1887 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1888 (dwarf_expr_get_obj_addr): New function.
1889 (dwarf_expr_ctx_funcs): Add get_object_address field.
1890 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1891 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1892 (dwarf2_evaluate_property): Add parameter "address". Use it.
1893 (needs_get_obj_addr): New function.
1894 (needs_frame_ctx_funcs): Add get_object_address field.
1895 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1896 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1897 (resolve_dynamic_array): Likewise.
1898
1899 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1900
1901 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1902 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1903 fixed value for records and unions for which some GNAT encodings
1904 are present.
1905
1906 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1907
1908 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1909 rewrite to avoid "else if" and "else" constructs. Should be
1910 a no-op in practice.
1911
1912 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1913
1914 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1915 of lexical block.
1916
1917 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1918
1919 PR c++/17132
1920 * eval.c: Update all calls to find_overload_match.
1921 * valarith.c: Likewise.
1922 (value_user_defined_cpp_op, value_user_defined_op): New
1923 argument NOSIDE. Update all callers.
1924 * valops.c (find_overload_match): New argument NOSIDE.
1925 * value.h (find_overload_match): Update signature.
1926
1927 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1928
1929 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1930 'items' methods instead of 'iteritems' method on dictionaries.
1931
1932 2014-08-15 Doug Evans <dje@google.com>
1933
1934 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1935 closer to use.
1936
1937 2014-08-15 Doug Evans <dje@google.com>
1938
1939 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1940
1941 2014-08-15 Doug Evans <dje@google.com>
1942
1943 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1944
1945 2014-08-15 Doug Evans <dje@google.com>
1946
1947 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1948 unused.
1949
1950 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1951
1952 * dcache.h: Include target.h, to avoid compile time warnings.
1953
1954 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1955
1956 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1957 frame_info" partial declaration.
1958 * gdbarch.h: Regenerate.
1959
1960 2014-08-15 Yao Qi <yao@codesourcery.com>
1961
1962 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1963 Add parameter 'decode_for_pst_p'. Callers update.
1964
1965 2014-08-13 Yao Qi <yao@codesourcery.com>
1966
1967 PR build/17104
1968 * configure.ac: Use local variable 'pos'.
1969 * configure: Regenerated.
1970
1971 2014-08-11 Doug Evans <dje@google.com>
1972
1973 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1974 message, it is redundant with "Reading symbols from ..." message.
1975
1976 2014-08-10 Doug Evans <xdje42@gmail.com>
1977
1978 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1979
1980 2014-08-09 Yao Qi <yao@codesourcery.com>
1981
1982 PR remote/9053
1983 * remote.c (remote_xfer_partial): Remove dead code.
1984
1985 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1986
1987 * ia64-linux-tdep.c: Include "regset.h".
1988 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1989 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1990 (ia64_linux_supply_fpregset): New function.
1991 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1992 (ia64_linux_regset_from_core_section): New function.
1993 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1994 method.
1995
1996 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1997
1998 * m68klinux-tdep.c: Include "regset.h".
1999 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2000 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2001 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2002 (m68k_linux_regset_from_core_section): New function.
2003 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2004 method.
2005
2006 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2007
2008 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2009 function. Move logic to...
2010 (tilegx_linux_regmap): ... this new register map.
2011 (tilegx_linux_regset): Refer to register map, replace supply
2012 method by regcache_supply_regset, and add collect method.
2013 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2014 TILEGX_FIRST_EASY_REGNUM.
2015
2016 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2017
2018 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2019 that calls regcache_supply_regset and handles the EPC register
2020 separately. Move main logic to...
2021 (score7_linux_gregmap): ... this new register map.
2022 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2023 (score7_linux_gregset): Refer to register map. Add collect method.
2024 (score7_linux_regset_from_core_section): Replace
2025 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2026 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2027 (struct regset): Delete unused forward declaraction.
2028 (struct pt_regs): Delete structure definition.
2029 (elf_gregset_t): Delete typedef.
2030
2031 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2032
2033 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2034 (nios2_core_regset): Add collect method.
2035
2036 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2037
2038 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2039 platform-independent and don't write to read-only input buffer.
2040 (m32r_linux_collect_gregset): New function.
2041 (m32r_linux_gregset): Add collect method.
2042
2043 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2044
2045 * hppa-linux-tdep.c (greg_map): Rename to...
2046 (hppa_linux_gregmap): ... this. Also convert to
2047 regcache_map_entry format.
2048 (hppa_linux_supply_regset): Delete function.
2049 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2050 (hppa_linux_fpregmap): ... this new register map.
2051 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2052 register map, replace supply method by regcache_supply_regset, and
2053 add collect method regcache_collect_regset.
2054
2055 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2056
2057 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2058 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2059 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2060 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2061 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2062 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2063 (frv_linux_supply_gregset): Replace main logic by call to
2064 regcache_supply_regset, but keep clearing gr32-gr63.
2065 (frv_linux_supply_fpregset): Delete function.
2066 (frv_linux_gregset): Refer to appropriate register map and add
2067 regcache_collect_regset as the collect method.
2068 (frv_linux_fpregset): Likewise. Also exchange the supply method
2069 by regcache_supply_regset.
2070
2071 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2072
2073 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2074 by call to alpha_supply_int_regs.
2075 (alpha_linux_collect_gregset): New function.
2076 (alpha_linux_supply_fpregset): Replace logic by call to
2077 alpha_supply_fp_regs.
2078 (alpha_linux_collect_fpregset): New function.
2079 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2080
2081 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2082
2083 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2084 by call to regcache_collect_regset.
2085 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2086 instead of aarch64_linux_supply_gregset/_fpregset.
2087 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2088 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2089 header file instead.
2090 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2091 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2092 functions. Move logic to ...
2093 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2094 register maps.
2095 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2096 refer to new register maps, replace *_regset_from_core by
2097 regcache_supply_regset, and also use regcache_collect_regset.
2098 * aarch64-linux-tdep.h: Include "regset.h".
2099 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2100 Delete prototypes.
2101 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2102 macros, moved from C source file.
2103 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2104 variable declarations.
2105
2106 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2107
2108 * s390-linux-nat.c: Include "regset.h".
2109 (regmap_gregset): Delete macro.
2110 (s390_64_regmap_gregset): New register map for
2111 regcache_supply/_collect_regset.
2112 (s390_64_gregset): New regset.
2113 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2114 (regmap_fpregset): Delete macro.
2115 (s390_native_supply, s390_native_collect): Delete functions.
2116 (supply_gregset, fill_gregset): Replace s390-specific regmap
2117 handling by a call to regcache_supply/_collect_regset.
2118 (supply_fpregset, fill_fpregset): Call regcache_supply/
2119 _collect_regset instead of s390_native_supply/_collect.
2120 (fetch_regset, store_regset): Likewise. Also change the last
2121 parameter to a regset instead of a regmap.
2122 (s390_linux_fetch_inferior_registers)
2123 (390_linux_store_inferior_registers): Adjust last parameter in
2124 calls to fetch_regset and store_regset.
2125 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2126 (s390_gregmap): ... this. Also make static const and convert to
2127 regcache_map_entry format.
2128 (s390x_regmap_gregset): Delete.
2129 (s390_regmap_fpregset): Rename to...
2130 (s390_fpregmap): ... this. Make static const and convert to
2131 regcache_map_entry format.
2132 (s390_regmap_upper, s390_regmap_last_break)
2133 (s390x_regmap_last_break, s390_regmap_system_call)
2134 (s390_regmap_tdb): Likewise.
2135 (s390_supply_regset, s390_collect_regset): Remove functions.
2136 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2137 s390_supply_regset.
2138 (s390_gregset, s390_fpregset, s390_upper_regset)
2139 (s390_last_break_regset, s390x_last_break_regset)
2140 (s390_system_call_regset, s390_tdb_regset): Make global and
2141 replace s390_supply/_collect_regset by regcache_supply/
2142 _collect_regset.
2143 (s390x_gregset): Delete.
2144 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2145 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2146 (s390_regmap_fpregset, s390_regmap_last_break)
2147 (s390x_regmap_last_break, s390_regmap_system_call)
2148 (s390_regmap_tdb): Delete global variable declarations.
2149 (s390_gregset, s390_fpregset, s390_last_break_regset)
2150 (s390x_last_break_regset, s390_system_call_regset)
2151 (s390_tdb_regset): New global variable declarations.
2152
2153 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2154
2155 * regcache.c: Include "regset.h".
2156 (regcache_transfer_regset): New local function.
2157 (regcache_supply_regset, regcache_collect_regset): New functions.
2158 * regcache.h (struct regcache_map_entry): New structure.
2159 (REGCACHE_MAP_SKIP): New enum value.
2160 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2161
2162 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2163
2164 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2165 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2166 (ppc_linux_collect_gregset ): Likewise.
2167 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2168 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2169 (ppc_collect_vrregset): Likewise.
2170 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2171 Likewise.
2172
2173 2014-08-07 Yao Qi <yao@codesourcery.com>
2174
2175 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2176 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2177 * remote.c (remote_read_bytes): Likewise.
2178
2179 2014-08-07 Yao Qi <yao@codesourcery.com>
2180
2181 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2182
2183 2014-08-07 Yao Qi <yao@codesourcery.com>
2184
2185 PR remote/17230
2186 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2187 TARGET_XFER_OK instead of 0.
2188
2189 2014-08-07 Gary Benson <gbenson@redhat.com>
2190
2191 * common/common-defs.h: Include errno.h.
2192 * defs.h: Do not include errno.h.
2193 * ada-typeprint.c: Likewise.
2194 * c-typeprint.c: Likewise.
2195 * core-regset.c: Likewise.
2196 * corefile.c: Likewise.
2197 * corelow.c: Likewise.
2198 * event-loop.c: Likewise.
2199 * f-typeprint.c: Likewise.
2200 * gnu-nat.c: Likewise.
2201 * go32-nat.c: Likewise.
2202 * i386gnu-nat.c: Likewise.
2203 * m2-typeprint.c: Likewise.
2204 * nat/linux-btrace.c: Likewise.
2205 * p-typeprint.c: Likewise.
2206 * procfs.c: Likewise.
2207 * remote-sim.c: Likewise.
2208 * rs6000-nat.c: Likewise.
2209 * target.c: Likewise.
2210 * typeprint.c: Likewise.
2211 * ui-file.c: Likewise.
2212 * valops.c: Likewise.
2213 * valprint.c: Likewise.
2214
2215 2014-08-07 Gary Benson <gbenson@redhat.com>
2216
2217 * common/common-defs.h: Include string.h.
2218 * aarch64-tdep.c: Do not include string.h.
2219 * ada-exp.y: Likewise.
2220 * ada-lang.c: Likewise.
2221 * ada-lex.l: Likewise.
2222 * ada-typeprint.c: Likewise.
2223 * ada-valprint.c: Likewise.
2224 * aix-thread.c: Likewise.
2225 * alpha-linux-tdep.c: Likewise.
2226 * alpha-mdebug-tdep.c: Likewise.
2227 * alpha-nat.c: Likewise.
2228 * alpha-osf1-tdep.c: Likewise.
2229 * alpha-tdep.c: Likewise.
2230 * alphanbsd-tdep.c: Likewise.
2231 * amd64-dicos-tdep.c: Likewise.
2232 * amd64-linux-tdep.c: Likewise.
2233 * amd64-nat.c: Likewise.
2234 * amd64-sol2-tdep.c: Likewise.
2235 * amd64fbsd-tdep.c: Likewise.
2236 * amd64obsd-tdep.c: Likewise.
2237 * arch-utils.c: Likewise.
2238 * arm-linux-nat.c: Likewise.
2239 * arm-linux-tdep.c: Likewise.
2240 * arm-tdep.c: Likewise.
2241 * arm-wince-tdep.c: Likewise.
2242 * armbsd-tdep.c: Likewise.
2243 * armnbsd-nat.c: Likewise.
2244 * armnbsd-tdep.c: Likewise.
2245 * armobsd-tdep.c: Likewise.
2246 * avr-tdep.c: Likewise.
2247 * ax-gdb.c: Likewise.
2248 * ax-general.c: Likewise.
2249 * bcache.c: Likewise.
2250 * bfin-tdep.c: Likewise.
2251 * breakpoint.c: Likewise.
2252 * build-id.c: Likewise.
2253 * buildsym.c: Likewise.
2254 * c-exp.y: Likewise.
2255 * c-lang.c: Likewise.
2256 * c-typeprint.c: Likewise.
2257 * c-valprint.c: Likewise.
2258 * charset.c: Likewise.
2259 * cli-out.c: Likewise.
2260 * cli/cli-cmds.c: Likewise.
2261 * cli/cli-decode.c: Likewise.
2262 * cli/cli-dump.c: Likewise.
2263 * cli/cli-interp.c: Likewise.
2264 * cli/cli-logging.c: Likewise.
2265 * cli/cli-script.c: Likewise.
2266 * cli/cli-setshow.c: Likewise.
2267 * cli/cli-utils.c: Likewise.
2268 * coffread.c: Likewise.
2269 * common/agent.c: Likewise.
2270 * common/buffer.c: Likewise.
2271 * common/buffer.h: Likewise.
2272 * common/common-utils.c: Likewise.
2273 * common/filestuff.c: Likewise.
2274 * common/filestuff.c: Likewise.
2275 * common/format.c: Likewise.
2276 * common/print-utils.c: Likewise.
2277 * common/rsp-low.c: Likewise.
2278 * common/signals.c: Likewise.
2279 * common/vec.h: Likewise.
2280 * common/xml-utils.c: Likewise.
2281 * core-regset.c: Likewise.
2282 * corefile.c: Likewise.
2283 * corelow.c: Likewise.
2284 * cp-abi.c: Likewise.
2285 * cp-name-parser.y: Likewise.
2286 * cp-support.c: Likewise.
2287 * cp-valprint.c: Likewise.
2288 * cris-tdep.c: Likewise.
2289 * d-exp.y: Likewise.
2290 * darwin-nat.c: Likewise.
2291 * dbxread.c: Likewise.
2292 * dcache.c: Likewise.
2293 * demangle.c: Likewise.
2294 * dicos-tdep.c: Likewise.
2295 * disasm.c: Likewise.
2296 * doublest.c: Likewise.
2297 * dsrec.c: Likewise.
2298 * dummy-frame.c: Likewise.
2299 * dwarf2-frame.c: Likewise.
2300 * dwarf2loc.c: Likewise.
2301 * dwarf2read.c: Likewise.
2302 * elfread.c: Likewise.
2303 * environ.c: Likewise.
2304 * eval.c: Likewise.
2305 * event-loop.c: Likewise.
2306 * exceptions.c: Likewise.
2307 * exec.c: Likewise.
2308 * expprint.c: Likewise.
2309 * f-exp.y: Likewise.
2310 * f-lang.c: Likewise.
2311 * f-typeprint.c: Likewise.
2312 * f-valprint.c: Likewise.
2313 * fbsd-nat.c: Likewise.
2314 * findcmd.c: Likewise.
2315 * findvar.c: Likewise.
2316 * fork-child.c: Likewise.
2317 * frame.c: Likewise.
2318 * frv-linux-tdep.c: Likewise.
2319 * frv-tdep.c: Likewise.
2320 * gdb.c: Likewise.
2321 * gdb_bfd.c: Likewise.
2322 * gdbarch.c: Likewise.
2323 * gdbarch.sh: Likewise.
2324 * gdbtypes.c: Likewise.
2325 * gnu-nat.c: Likewise.
2326 * gnu-v2-abi.c: Likewise.
2327 * gnu-v3-abi.c: Likewise.
2328 * go-exp.y: Likewise.
2329 * go-lang.c: Likewise.
2330 * go32-nat.c: Likewise.
2331 * guile/guile.c: Likewise.
2332 * guile/scm-auto-load.c: Likewise.
2333 * hppa-hpux-tdep.c: Likewise.
2334 * hppa-linux-nat.c: Likewise.
2335 * hppanbsd-tdep.c: Likewise.
2336 * hppaobsd-tdep.c: Likewise.
2337 * i386-cygwin-tdep.c: Likewise.
2338 * i386-dicos-tdep.c: Likewise.
2339 * i386-linux-tdep.c: Likewise.
2340 * i386-nto-tdep.c: Likewise.
2341 * i386-sol2-tdep.c: Likewise.
2342 * i386-tdep.c: Likewise.
2343 * i386bsd-tdep.c: Likewise.
2344 * i386gnu-nat.c: Likewise.
2345 * i386nbsd-tdep.c: Likewise.
2346 * i386obsd-tdep.c: Likewise.
2347 * i387-tdep.c: Likewise.
2348 * ia64-libunwind-tdep.c: Likewise.
2349 * ia64-linux-nat.c: Likewise.
2350 * inf-child.c: Likewise.
2351 * inf-ptrace.c: Likewise.
2352 * inf-ttrace.c: Likewise.
2353 * infcall.c: Likewise.
2354 * infcmd.c: Likewise.
2355 * inflow.c: Likewise.
2356 * infrun.c: Likewise.
2357 * interps.c: Likewise.
2358 * iq2000-tdep.c: Likewise.
2359 * irix5-nat.c: Likewise.
2360 * jv-exp.y: Likewise.
2361 * jv-lang.c: Likewise.
2362 * jv-typeprint.c: Likewise.
2363 * jv-valprint.c: Likewise.
2364 * language.c: Likewise.
2365 * linux-fork.c: Likewise.
2366 * linux-nat.c: Likewise.
2367 * lm32-tdep.c: Likewise.
2368 * m2-exp.y: Likewise.
2369 * m2-typeprint.c: Likewise.
2370 * m32c-tdep.c: Likewise.
2371 * m32r-linux-nat.c: Likewise.
2372 * m32r-linux-tdep.c: Likewise.
2373 * m32r-rom.c: Likewise.
2374 * m32r-tdep.c: Likewise.
2375 * m68hc11-tdep.c: Likewise.
2376 * m68k-tdep.c: Likewise.
2377 * m68kbsd-tdep.c: Likewise.
2378 * m68klinux-nat.c: Likewise.
2379 * m68klinux-tdep.c: Likewise.
2380 * m88k-tdep.c: Likewise.
2381 * machoread.c: Likewise.
2382 * macrocmd.c: Likewise.
2383 * main.c: Likewise.
2384 * mdebugread.c: Likewise.
2385 * mem-break.c: Likewise.
2386 * memattr.c: Likewise.
2387 * memory-map.c: Likewise.
2388 * mep-tdep.c: Likewise.
2389 * mi/mi-cmd-break.c: Likewise.
2390 * mi/mi-cmd-disas.c: Likewise.
2391 * mi/mi-cmd-env.c: Likewise.
2392 * mi/mi-cmd-stack.c: Likewise.
2393 * mi/mi-cmd-var.c: Likewise.
2394 * mi/mi-cmds.c: Likewise.
2395 * mi/mi-console.c: Likewise.
2396 * mi/mi-getopt.c: Likewise.
2397 * mi/mi-interp.c: Likewise.
2398 * mi/mi-main.c: Likewise.
2399 * mi/mi-parse.c: Likewise.
2400 * microblaze-rom.c: Likewise.
2401 * microblaze-tdep.c: Likewise.
2402 * mingw-hdep.c: Likewise.
2403 * minidebug.c: Likewise.
2404 * minsyms.c: Likewise.
2405 * mips-irix-tdep.c: Likewise.
2406 * mips-linux-tdep.c: Likewise.
2407 * mips-tdep.c: Likewise.
2408 * mips64obsd-tdep.c: Likewise.
2409 * mipsnbsd-tdep.c: Likewise.
2410 * mipsread.c: Likewise.
2411 * mn10300-linux-tdep.c: Likewise.
2412 * mn10300-tdep.c: Likewise.
2413 * monitor.c: Likewise.
2414 * moxie-tdep.c: Likewise.
2415 * mt-tdep.c: Likewise.
2416 * nat/linux-btrace.c: Likewise.
2417 * nat/linux-osdata.c: Likewise.
2418 * nat/linux-procfs.c: Likewise.
2419 * nat/linux-ptrace.c: Likewise.
2420 * nat/linux-waitpid.c: Likewise.
2421 * nbsd-tdep.c: Likewise.
2422 * nios2-linux-tdep.c: Likewise.
2423 * nto-procfs.c: Likewise.
2424 * nto-tdep.c: Likewise.
2425 * objc-lang.c: Likewise.
2426 * objfiles.c: Likewise.
2427 * opencl-lang.c: Likewise.
2428 * osabi.c: Likewise.
2429 * osdata.c: Likewise.
2430 * p-exp.y: Likewise.
2431 * p-lang.c: Likewise.
2432 * p-typeprint.c: Likewise.
2433 * parse.c: Likewise.
2434 * posix-hdep.c: Likewise.
2435 * ppc-linux-nat.c: Likewise.
2436 * ppc-sysv-tdep.c: Likewise.
2437 * ppcfbsd-tdep.c: Likewise.
2438 * ppcnbsd-tdep.c: Likewise.
2439 * ppcobsd-tdep.c: Likewise.
2440 * printcmd.c: Likewise.
2441 * procfs.c: Likewise.
2442 * prologue-value.c: Likewise.
2443 * python/py-auto-load.c: Likewise.
2444 * python/py-gdb-readline.c: Likewise.
2445 * ravenscar-thread.c: Likewise.
2446 * regcache.c: Likewise.
2447 * registry.c: Likewise.
2448 * remote-fileio.c: Likewise.
2449 * remote-m32r-sdi.c: Likewise.
2450 * remote-mips.c: Likewise.
2451 * remote-notif.c: Likewise.
2452 * remote-sim.c: Likewise.
2453 * remote.c: Likewise.
2454 * reverse.c: Likewise.
2455 * rs6000-aix-tdep.c: Likewise.
2456 * ser-base.c: Likewise.
2457 * ser-go32.c: Likewise.
2458 * ser-mingw.c: Likewise.
2459 * ser-pipe.c: Likewise.
2460 * ser-tcp.c: Likewise.
2461 * ser-unix.c: Likewise.
2462 * serial.c: Likewise.
2463 * sh-tdep.c: Likewise.
2464 * sh64-tdep.c: Likewise.
2465 * shnbsd-tdep.c: Likewise.
2466 * skip.c: Likewise.
2467 * sol-thread.c: Likewise.
2468 * solib-dsbt.c: Likewise.
2469 * solib-frv.c: Likewise.
2470 * solib-osf.c: Likewise.
2471 * solib-som.c: Likewise.
2472 * solib-spu.c: Likewise.
2473 * solib-target.c: Likewise.
2474 * solib.c: Likewise.
2475 * somread.c: Likewise.
2476 * source.c: Likewise.
2477 * sparc-nat.c: Likewise.
2478 * sparc-sol2-tdep.c: Likewise.
2479 * sparc-tdep.c: Likewise.
2480 * sparc64-tdep.c: Likewise.
2481 * sparc64fbsd-tdep.c: Likewise.
2482 * sparc64nbsd-tdep.c: Likewise.
2483 * sparcnbsd-tdep.c: Likewise.
2484 * spu-linux-nat.c: Likewise.
2485 * spu-multiarch.c: Likewise.
2486 * spu-tdep.c: Likewise.
2487 * stabsread.c: Likewise.
2488 * stack.c: Likewise.
2489 * std-regs.c: Likewise.
2490 * symfile.c: Likewise.
2491 * symmisc.c: Likewise.
2492 * symtab.c: Likewise.
2493 * target.c: Likewise.
2494 * thread.c: Likewise.
2495 * tilegx-linux-nat.c: Likewise.
2496 * tilegx-tdep.c: Likewise.
2497 * top.c: Likewise.
2498 * tracepoint.c: Likewise.
2499 * tui/tui-command.c: Likewise.
2500 * tui/tui-data.c: Likewise.
2501 * tui/tui-disasm.c: Likewise.
2502 * tui/tui-file.c: Likewise.
2503 * tui/tui-layout.c: Likewise.
2504 * tui/tui-out.c: Likewise.
2505 * tui/tui-regs.c: Likewise.
2506 * tui/tui-source.c: Likewise.
2507 * tui/tui-stack.c: Likewise.
2508 * tui/tui-win.c: Likewise.
2509 * tui/tui-windata.c: Likewise.
2510 * tui/tui-winsource.c: Likewise.
2511 * typeprint.c: Likewise.
2512 * ui-file.c: Likewise.
2513 * ui-out.c: Likewise.
2514 * user-regs.c: Likewise.
2515 * utils.c: Likewise.
2516 * v850-tdep.c: Likewise.
2517 * valarith.c: Likewise.
2518 * valops.c: Likewise.
2519 * valprint.c: Likewise.
2520 * value.c: Likewise.
2521 * varobj.c: Likewise.
2522 * vax-tdep.c: Likewise.
2523 * vaxnbsd-tdep.c: Likewise.
2524 * vaxobsd-tdep.c: Likewise.
2525 * windows-nat.c: Likewise.
2526 * xcoffread.c: Likewise.
2527 * xml-support.c: Likewise.
2528 * xstormy16-tdep.c: Likewise.
2529 * xtensa-linux-nat.c: Likewise.
2530
2531 2014-08-07 Gary Benson <gbenson@redhat.com>
2532
2533 * common/common-defs.h: Include gdb_assert.h.
2534 * aarch64-tdep.c: Do not include gdb_assert.h.
2535 * addrmap.c: Likewise.
2536 * aix-thread.c: Likewise.
2537 * alpha-linux-tdep.c: Likewise.
2538 * alpha-mdebug-tdep.c: Likewise.
2539 * alphanbsd-tdep.c: Likewise.
2540 * amd64-nat.c: Likewise.
2541 * amd64-tdep.c: Likewise.
2542 * amd64bsd-nat.c: Likewise.
2543 * amd64fbsd-nat.c: Likewise.
2544 * amd64fbsd-tdep.c: Likewise.
2545 * amd64nbsd-nat.c: Likewise.
2546 * amd64nbsd-tdep.c: Likewise.
2547 * amd64obsd-nat.c: Likewise.
2548 * amd64obsd-tdep.c: Likewise.
2549 * arch-utils.c: Likewise.
2550 * arm-tdep.c: Likewise.
2551 * armbsd-tdep.c: Likewise.
2552 * auxv.c: Likewise.
2553 * bcache.c: Likewise.
2554 * bfin-tdep.c: Likewise.
2555 * blockframe.c: Likewise.
2556 * breakpoint.c: Likewise.
2557 * bsd-kvm.c: Likewise.
2558 * bsd-uthread.c: Likewise.
2559 * buildsym.c: Likewise.
2560 * c-exp.y: Likewise.
2561 * c-lang.c: Likewise.
2562 * charset.c: Likewise.
2563 * cleanups.c: Likewise.
2564 * cli-out.c: Likewise.
2565 * cli/cli-decode.c: Likewise.
2566 * cli/cli-dump.c: Likewise.
2567 * cli/cli-logging.c: Likewise.
2568 * cli/cli-script.c: Likewise.
2569 * cli/cli-utils.c: Likewise.
2570 * coffread.c: Likewise.
2571 * common/common-utils.c: Likewise.
2572 * common/queue.h: Likewise.
2573 * common/signals.c: Likewise.
2574 * common/vec.h: Likewise.
2575 * complaints.c: Likewise.
2576 * completer.c: Likewise.
2577 * corelow.c: Likewise.
2578 * cp-abi.c: Likewise.
2579 * cp-name-parser.y: Likewise.
2580 * cp-namespace.c: Likewise.
2581 * cp-support.c: Likewise.
2582 * cris-tdep.c: Likewise.
2583 * dbxread.c: Likewise.
2584 * dictionary.c: Likewise.
2585 * doublest.c: Likewise.
2586 * dsrec.c: Likewise.
2587 * dummy-frame.c: Likewise.
2588 * dwarf2-frame-tailcall.c: Likewise.
2589 * dwarf2-frame.c: Likewise.
2590 * dwarf2expr.c: Likewise.
2591 * dwarf2loc.c: Likewise.
2592 * dwarf2read.c: Likewise.
2593 * eval.c: Likewise.
2594 * event-loop.c: Likewise.
2595 * exceptions.c: Likewise.
2596 * expprint.c: Likewise.
2597 * f-valprint.c: Likewise.
2598 * fbsd-nat.c: Likewise.
2599 * findvar.c: Likewise.
2600 * frame-unwind.c: Likewise.
2601 * frame.c: Likewise.
2602 * frv-tdep.c: Likewise.
2603 * gcore.c: Likewise.
2604 * gdb-dlfcn.c: Likewise.
2605 * gdb_bfd.c: Likewise.
2606 * gdbarch.c: Likewise.
2607 * gdbarch.sh: Likewise.
2608 * gdbtypes.c: Likewise.
2609 * gnu-nat.c: Likewise.
2610 * gnu-v3-abi.c: Likewise.
2611 * go-lang.c: Likewise.
2612 * guile/scm-exception.c: Likewise.
2613 * guile/scm-gsmob.c: Likewise.
2614 * guile/scm-lazy-string.c: Likewise.
2615 * guile/scm-math.c: Likewise.
2616 * guile/scm-pretty-print.c: Likewise.
2617 * guile/scm-safe-call.c: Likewise.
2618 * guile/scm-utils.c: Likewise.
2619 * guile/scm-value.c: Likewise.
2620 * h8300-tdep.c: Likewise.
2621 * hppa-hpux-nat.c: Likewise.
2622 * hppa-tdep.c: Likewise.
2623 * hppanbsd-tdep.c: Likewise.
2624 * hppaobsd-tdep.c: Likewise.
2625 * i386-darwin-nat.c: Likewise.
2626 * i386-darwin-tdep.c: Likewise.
2627 * i386-nto-tdep.c: Likewise.
2628 * i386-tdep.c: Likewise.
2629 * i386bsd-nat.c: Likewise.
2630 * i386fbsd-tdep.c: Likewise.
2631 * i386gnu-nat.c: Likewise.
2632 * i386nbsd-tdep.c: Likewise.
2633 * i386obsd-tdep.c: Likewise.
2634 * i387-tdep.c: Likewise.
2635 * ia64-libunwind-tdep.c: Likewise.
2636 * ia64-tdep.c: Likewise.
2637 * inf-ptrace.c: Likewise.
2638 * inf-ttrace.c: Likewise.
2639 * infcall.c: Likewise.
2640 * infcmd.c: Likewise.
2641 * infrun.c: Likewise.
2642 * inline-frame.c: Likewise.
2643 * interps.c: Likewise.
2644 * jv-lang.c: Likewise.
2645 * jv-typeprint.c: Likewise.
2646 * linux-fork.c: Likewise.
2647 * linux-nat.c: Likewise.
2648 * linux-thread-db.c: Likewise.
2649 * m32c-tdep.c: Likewise.
2650 * m32r-linux-nat.c: Likewise.
2651 * m32r-tdep.c: Likewise.
2652 * m68k-tdep.c: Likewise.
2653 * m68kbsd-nat.c: Likewise.
2654 * m68kbsd-tdep.c: Likewise.
2655 * m88k-tdep.c: Likewise.
2656 * machoread.c: Likewise.
2657 * macroexp.c: Likewise.
2658 * macrotab.c: Likewise.
2659 * maint.c: Likewise.
2660 * mdebugread.c: Likewise.
2661 * memory-map.c: Likewise.
2662 * mep-tdep.c: Likewise.
2663 * mi/mi-common.c: Likewise.
2664 * microblaze-tdep.c: Likewise.
2665 * mingw-hdep.c: Likewise.
2666 * mips-linux-nat.c: Likewise.
2667 * mips-linux-tdep.c: Likewise.
2668 * mips-tdep.c: Likewise.
2669 * mips64obsd-tdep.c: Likewise.
2670 * mipsnbsd-tdep.c: Likewise.
2671 * mn10300-linux-tdep.c: Likewise.
2672 * mn10300-tdep.c: Likewise.
2673 * moxie-tdep.c: Likewise.
2674 * mt-tdep.c: Likewise.
2675 * nat/linux-btrace.c: Likewise.
2676 * nat/linux-osdata.c: Likewise.
2677 * nat/linux-ptrace.c: Likewise.
2678 * nat/mips-linux-watch.c: Likewise.
2679 * nios2-linux-tdep.c: Likewise.
2680 * nios2-tdep.c: Likewise.
2681 * objc-lang.c: Likewise.
2682 * objfiles.c: Likewise.
2683 * obsd-nat.c: Likewise.
2684 * opencl-lang.c: Likewise.
2685 * osabi.c: Likewise.
2686 * parse.c: Likewise.
2687 * ppc-linux-nat.c: Likewise.
2688 * ppc-sysv-tdep.c: Likewise.
2689 * ppcfbsd-nat.c: Likewise.
2690 * ppcfbsd-tdep.c: Likewise.
2691 * ppcnbsd-nat.c: Likewise.
2692 * ppcnbsd-tdep.c: Likewise.
2693 * ppcobsd-nat.c: Likewise.
2694 * ppcobsd-tdep.c: Likewise.
2695 * printcmd.c: Likewise.
2696 * procfs.c: Likewise.
2697 * prologue-value.c: Likewise.
2698 * psymtab.c: Likewise.
2699 * python/py-lazy-string.c: Likewise.
2700 * python/py-value.c: Likewise.
2701 * regcache.c: Likewise.
2702 * reggroups.c: Likewise.
2703 * registry.c: Likewise.
2704 * remote-sim.c: Likewise.
2705 * remote.c: Likewise.
2706 * rs6000-aix-tdep.c: Likewise.
2707 * rs6000-tdep.c: Likewise.
2708 * s390-linux-tdep.c: Likewise.
2709 * score-tdep.c: Likewise.
2710 * ser-base.c: Likewise.
2711 * ser-mingw.c: Likewise.
2712 * sh-tdep.c: Likewise.
2713 * sh64-tdep.c: Likewise.
2714 * solib-darwin.c: Likewise.
2715 * solib-spu.c: Likewise.
2716 * solib-svr4.c: Likewise.
2717 * source.c: Likewise.
2718 * sparc-nat.c: Likewise.
2719 * sparc-sol2-tdep.c: Likewise.
2720 * sparc-tdep.c: Likewise.
2721 * sparc64-sol2-tdep.c: Likewise.
2722 * sparc64-tdep.c: Likewise.
2723 * sparc64fbsd-tdep.c: Likewise.
2724 * sparc64nbsd-tdep.c: Likewise.
2725 * sparc64obsd-tdep.c: Likewise.
2726 * sparcnbsd-tdep.c: Likewise.
2727 * sparcobsd-tdep.c: Likewise.
2728 * spu-multiarch.c: Likewise.
2729 * spu-tdep.c: Likewise.
2730 * stabsread.c: Likewise.
2731 * stack.c: Likewise.
2732 * symfile.c: Likewise.
2733 * symtab.c: Likewise.
2734 * target-descriptions.c: Likewise.
2735 * target-memory.c: Likewise.
2736 * target.c: Likewise.
2737 * tic6x-linux-tdep.c: Likewise.
2738 * tic6x-tdep.c: Likewise.
2739 * tilegx-linux-nat.c: Likewise.
2740 * tilegx-tdep.c: Likewise.
2741 * top.c: Likewise.
2742 * tramp-frame.c: Likewise.
2743 * tui/tui-out.c: Likewise.
2744 * tui/tui-winsource.c: Likewise.
2745 * ui-out.c: Likewise.
2746 * user-regs.c: Likewise.
2747 * utils.c: Likewise.
2748 * v850-tdep.c: Likewise.
2749 * valops.c: Likewise.
2750 * value.c: Likewise.
2751 * varobj.c: Likewise.
2752 * vax-nat.c: Likewise.
2753 * xml-syscall.c: Likewise.
2754 * xml-tdesc.c: Likewise.
2755 * xstormy16-tdep.c: Likewise.
2756 * xtensa-linux-nat.c: Likewise.
2757 * xtensa-tdep.c: Likewise.
2758
2759 2014-08-07 Gary Benson <gbenson@redhat.com>
2760
2761 * common/common-defs.h: Include common-utils.h.
2762 * defs.h: Do not include common-utils.h.
2763 * common/gdb_assert.h: Likewise.
2764 * darwin-nat.h: Likewise.
2765 * nat/linux-btrace.c: Likewise.
2766 * target/waitstatus.h: Likewise.
2767
2768 2014-08-07 Gary Benson <gbenson@redhat.com>
2769
2770 * common/common-defs.h: Include ptid.h.
2771 * defs.h: Do not include ptid.h.
2772 * inferior.h: Likewise.
2773 * infrun.h: Likewise.
2774 * nat/linux-btrace.h: Likewise.
2775 * nat/linux-osdata.h: Likewise.
2776 * target/waitstatus.h: Likewise.
2777
2778 2014-08-07 Gary Benson <gbenson@redhat.com>
2779
2780 * common/common-defs.h: Include gdb_locale.h.
2781 * defs.h: Do not include gdb_locale.h.
2782
2783 2014-08-07 Gary Benson <gbenson@redhat.com>
2784
2785 * common/common-defs.h: Include gdb/signals.h.
2786 * defs.h: Do not include gdb/signals.h.
2787
2788 2014-08-07 Gary Benson <gbenson@redhat.com>
2789
2790 * common/common-defs.h: Include pathmax.h.
2791 * defs.h: Do not include pathmax.h.
2792
2793 2014-08-07 Gary Benson <gbenson@redhat.com>
2794
2795 * common/common-defs.h: Include libiberty.h.
2796 * defs.h: Do not include libiberty.h.
2797 * common/queue.h: Likewise.
2798 * cp-name-parser.y: Likewise.
2799 * mi/mi-cmd-catch.c: Likewise.
2800 * python/python.c: Likewise.
2801
2802 2014-08-07 Gary Benson <gbenson@redhat.com>
2803
2804 * common/common-defs.h: Include ansidecl.h.
2805 * defs.h: Do not include ansidecl.h.
2806 * common/buffer.h: Likewise.
2807 * common/common-utils.h: Likewise.
2808
2809 2014-08-07 Gary Benson <gbenson@redhat.com>
2810
2811 * common/common-defs.h: Include stddef.h.
2812 * defs.h: Do not include stddef.h.
2813 * common/common-utils.h: Likewise.
2814 * amd64fbsd-nat.c: Likewise.
2815 * bcache.c: Likewise.
2816 * charset.c: Likewise.
2817 * common/buffer.h: Likewise.
2818 * common/vec.h: Likewise.
2819 * i386bsd-nat.c: Likewise.
2820 * nat/linux-btrace.h: Likewise.
2821 * ppcfbsd-nat.c: Likewise.
2822 * ppcnbsd-tdep.h: Likewise.
2823 * ppcobsd-nat.c: Likewise.
2824 * ppcobsd-tdep.h: Likewise.
2825 * python/py-gdb-readline.c: Likewise.
2826
2827 2014-08-07 Gary Benson <gbenson@redhat.com>
2828
2829 * common/common-defs.h: Include stdarg.h.
2830 * defs.h: Do not include stdarg.h.
2831 * ada-lang.c: Likewise.
2832 * common/common-utils.h: Likewise.
2833 * guile/scm-string.c: Likewise.
2834 * guile/scm-utils.c: Likewise.
2835 * m32c-tdep.c: Likewise.
2836
2837 2014-08-07 Gary Benson <gbenson@redhat.com>
2838
2839 * common/common-defs.h: Include stdlib.h.
2840 * defs.h: Do not include stdlib.h.
2841 * addrmap.c: Likewise.
2842 * bcache.c: Likewise.
2843 * common/buffer.c: Likewise.
2844 * common/common-utils.c: Likewise.
2845 * cp-name-parser.y: Likewise.
2846 * go32-nat.c: Likewise.
2847 * mn10300-linux-tdep.c: Likewise.
2848 * nat/linux-osdata.c: Likewise.
2849 * tui/tui.c: Likewise.
2850 * windows-nat.c: Likewise.
2851
2852 2014-08-07 Gary Benson <gbenson@redhat.com>
2853
2854 * common/common-defs.h: Include stdio.h.
2855 * defs.h: Do not include stdio.h.
2856 * ada-lang.c: Likewise.
2857 * common/buffer.c: Likewise.
2858 * common/common-utils.c: Likewise.
2859 * cp-name-parser.y: Likewise.
2860 * gnu-nat.c: Likewise.
2861 * go32-nat.c: Likewise.
2862 * i386gnu-nat.c: Likewise.
2863 * proc-api.c: Likewise.
2864 * proc-events.c: Likewise.
2865 * proc-flags.c: Likewise.
2866 * proc-why.c: Likewise.
2867 * python/python-internal.h: Likewise.
2868 * target-memory.c: Likewise.
2869 * tui/tui-io.c: Likewise.
2870 * tui/tui.c: Likewise.
2871
2872 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2873
2874 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2875 (scan_dyntag_auxv): Same.
2876
2877 2014-08-06 Yao Qi <yao@codesourcery.com>
2878
2879 * amd64-linux-nat.c: Remove duplicated include
2880 "x86-linux-nat.h".
2881 * i386-linux-nat.c: Likewise.
2882
2883 2014-08-06 Yao Qi <yao@codesourcery.com>
2884
2885 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2886 operand" with "Special opcode" in comments.
2887
2888 2014-08-05 Gary Benson <gbenson@redhat.com>
2889
2890 * interps.c (initialize_interps): Remove prototype.
2891 (interpreter_initialized): Remove static global.
2892 (interp_add): Do not call initialize_interps.
2893 (initialize_interps): Remove function.
2894
2895 2014-08-05 Gary Benson <gbenson@redhat.com>
2896
2897 * utils.c (vwarning): Remove spurious va_end.
2898
2899 2014-08-05 Alan Modra <amodra@gmail.com>
2900
2901 * charset.c (convert_between_encodings): Cast result of obstack_base.
2902 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2903 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2904 (read_unwind_info): Use size_t for some locals.
2905 * jit.c (finalize_symtab): Likewise.
2906 * utils.c (hashtab_obstack_allocate): Likewise.
2907 * symmisc.c (print_objfile_statistics): Update format strings.
2908
2909 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2910
2911 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2912 (Changes in GDB 7.8): ... here.
2913
2914 2014-08-04 Tom Tromey <tromey@redhat.com>
2915
2916 * target.c (set_targetdebug): New function.
2917 (initialize_targets): Pass set_targetdebug when creating "set
2918 debug target".
2919
2920 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2921
2922 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2923 if detecting a variable-sized field that is not the last field.
2924 Fix struct type length computation.
2925
2926 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2927
2928 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2929 Add debug trace.
2930
2931 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2932
2933 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2934 Remove "+ 8" offset in computation of CHAIN_VMA.
2935
2936 2014-07-31 Doug Evans <dje@google.com>
2937
2938 * inflow.c (child_terminal_inferior): Add comment.
2939 (child_terminal_ours_for_output): Add comment.
2940 (child_terminal_ours): Add comment.
2941 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2942 (linux_nat_terminal_ours): Add comment.
2943
2944 2014-07-31 Gary Benson <gbenson@redhat.com>
2945
2946 * common/btrace-common.h: Do not include defs.h or server.h.
2947 * nat/mips-linux-watch.h: Likewise.
2948 * gdb-dlfcn.h: Do not include defs.h.
2949 * tracefile.h: Likewise.
2950
2951 2014-07-30 Roland McGrath <mcgrathr@google.com>
2952
2953 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2954
2955 2014-07-30 Tom Tromey <tromey@redhat.com>
2956
2957 * bsd-kvm.c (bsd_kvm_open): Constify.
2958 * corelow.c (core_open): Constify.
2959 * ctf.c (ctf_open): Constify.
2960 * dbug-rom.c (dbug_open): Constify.
2961 * exec.c (exec_open): Constify.
2962 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2963 * microblaze-rom.c (picobug_open): Constify.
2964 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2965 Constify.
2966 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2967 * record-btrace.c (record_btrace_open): Constify.
2968 * record-full.c (record_full_core_open_1, record_full_open_1)
2969 (record_full_open): Constify.
2970 * remote-m32r-sdi.c (m32r_open): Constify.
2971 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2972 (rockhopper_open, lsi_open): Constify.
2973 * remote-sim.c (gdbsim_open): Constify.
2974 * remote.c (remote_open, extended_remote_open, remote_open_1):
2975 Constify.
2976 * target.h (struct target_ops) <to_open>: Make "arg" const.
2977 * tracefile-tfile.c (tfile_open): Constify.
2978
2979 2014-07-30 Tom Tromey <tromey@redhat.com>
2980
2981 * breakpoint.c (map_breakpoint_numbers): Update.
2982 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2983 (get_number_const): New function.
2984 (get_number): Rewrite using get_number_const.
2985 (init_number_or_range): Make "string" const.
2986 (number_is_in_list): Make "list" const.
2987 * cli/cli-utils.h (get_number_const): Declare.
2988 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2989 (init_number_or_range, number_is_in_list): Update.
2990 * printcmd.c (map_display_numbers): Update.
2991 * value.c (value_from_history_ref): Constify.
2992 * value.h (value_from_history_ref): Update.
2993
2994 2014-07-30 Tom Tromey <tromey@redhat.com>
2995
2996 * corefile.c (hook_type, call_extra_exec_file_hooks)
2997 (specify_exec_file_hook): Constify.
2998 * exec.c (exec_file_attach): Make "filename" const.
2999 * gdbcore.h (deprecated_exec_file_display_hook)
3000 (specify_exec_file_hook, exec_file_attach): Constify.
3001 * main.c (captured_main): Use catch_command_errors_const.
3002
3003 2014-07-30 Tom Tromey <tromey@redhat.com>
3004
3005 * target.c (open_target): New function.
3006 (add_target_with_completer, add_deprecated_target_alias): Use
3007 set_cmd_sfunc, set_cmd_context.
3008 (debug_to_open): Remove.
3009 (setup_target_debug): Update.
3010
3011 2014-07-30 Yao Qi <yao@codesourcery.com>
3012
3013 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3014 comments.
3015 * parse.c (exp_iterate): Update comments.
3016
3017 2014-07-30 Gary Benson <gbenson@redhat.com>
3018
3019 * common/common-defs.h: New file.
3020 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3021 * defs.h: Include common-defs.h.
3022 Do not include config.h or build-gnulib/config.h.
3023
3024 2014-07-30 Gary Benson <gbenson@redhat.com>
3025
3026 * common/common-utils.h: Do not include config.h.
3027 * nat/linux-btrace.h: Likewise.
3028
3029 2014-07-30 Gary Benson <gbenson@redhat.com>
3030
3031 * btrace.c: Include defs.h.
3032 * common/ptid.c: Include defs.h or server.h as appropriate.
3033 * nat/mips-linux-watch.c: Likewise.
3034
3035 2014-07-29 Tom Tromey <tromey@redhat.com>
3036
3037 * target.c (target_is_pushed): Simplify.
3038
3039 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3040
3041 GDB 7.8 released.
3042
3043 2014-07-29 Yao Qi <yao@codesourcery.com>
3044
3045 PR gdb/17206
3046 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3047
3048 2014-07-28 Doug Evans <xdje42@gmail.com>
3049
3050 PR guile/17203
3051 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3052 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3053 parameters.
3054
3055 2014-07-28 Will Newton <will.newton@linaro.org>
3056
3057 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3058 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3059 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3060 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3061 (THUMB2_EABI_SYSCALL): Likewise.
3062 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3063 struct tramp_frame.
3064 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3065 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3066
3067 2014-07-27 Doug Evans <xdje42@gmail.com>
3068
3069 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3070
3071 2014-07-27 Doug Evans <xdje42@gmail.com>
3072
3073 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3074
3075 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3076 Doug Evans <xdje42@gmail.com>
3077
3078 PR guile/17146
3079 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3080 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3081 * configure.ac: Try to use guild to compile an scm file, if it fails
3082 then disable guile support.
3083 * configure: Regenerate.
3084 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3085 GUILE_FILE_LIST.
3086 (GUILE_COMPILED_FILES): New variable.
3087 (GUILE_FILES) Update.
3088 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3089 (stamp-guile): Compile scm files.
3090 * guile/guile.c (boot_guile_support): New function.
3091 (standard_throw_args_p): New function.
3092 (print_standard_throw_error, print_throw_error): New functions.
3093 (handle_boot_error): New function.
3094 (initialize_scheme_side): Rewrite to call boot_guile_support.
3095 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3096 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3097
3098 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3099 Doug Evans <xdje42@gmail.com>
3100
3101 PR guile/17146
3102 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3103 * guile/lib/gdb/support.scm: New file.
3104 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3105 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3106 All uses updated.
3107 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3108 All uses updated.
3109 (%assert-type): Ditto, and renamed to assert-type.
3110 (%exception-print-style): Delete.
3111
3112 2014-07-26 Doug Evans <xdje42@gmail.com>
3113
3114 PR build/17105
3115 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3116 * configure: Regenerate.
3117 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3118 PYTHON_FILES.
3119 (PYTHON_FILES): New variable.
3120 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3121 (GUILE_FILES): New variable.
3122 (stamp-python, install-python, uninstall-python): Handle empty
3123 file list.
3124 (stamp-guile, install-guile, uninstall-guile): Ditto.
3125
3126 2014-07-26 Doug Evans <xdje42@gmail.com>
3127
3128 PR guile/17177
3129 * guile/lib/gdb.scm (pretty-printers): Export.
3130 (set-pretty-printers!): Export.
3131 * guile/lib/gdb/printing.scm (gdb module): Update.
3132 (prepend-pretty-printer!, append-pretty-printer!): Update.
3133 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3134 (pretty_printer_list_var): Delete.
3135 (pretty_printer_list): New static global.
3136 (gdbscm_pretty_printers): New function.
3137 (gdbscm_set_pretty_printers_x): New function.
3138 (ppscm_find_pretty_printer_from_gdb): Update.
3139 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3140 (gdbscm_initialize_pretty_printers): Update.
3141
3142 2014-07-26 Doug Evans <xdje42@gmail.com>
3143
3144 PR 17185
3145 * configure.ac: Add check for header gc/gc.h.
3146 Add check for function setenv.
3147 * configure: Regenerate.
3148 * config.in: Regenerate.
3149 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3150
3151 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3152
3153 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3154 variation in gdbarch matching.
3155
3156 2014-07-25 Tom Tromey <tromey@redhat.com>
3157
3158 * exec.c (using_exec_ops): Remove.
3159 (exec_close_1): Update. Remove extraneous block, reindent.
3160 (add_target_sections): Use target_is_pushed.
3161
3162 2014-07-25 Pedro Alves <palves@redhat.com>
3163
3164 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3165 * monitor.c (monitor_create_inferior): Likewise.
3166 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3167 * remote-sim.c (gdbsim_create_inferior): Likewise.
3168 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3169 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3170 * windows-nat.c (do_initial_windows_stuff): Likewise.
3171
3172 2014-07-25 Pedro Alves <palves@redhat.com>
3173
3174 * NEWS: Mention signal passing and "signal" command changes.
3175 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3176 comment.
3177 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3178 call.
3179 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3180 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3181 (jump_command): Adjust clear_proceed_status call.
3182 (signal_command): Warn if other thread that are resumed have
3183 signals that will be delivered. Adjust clear_proceed_status call.
3184 (until_next_command, finish_command)
3185 (proceed_after_attach_callback, attach_command_post_wait)
3186 (attach_command): Adjust clear_proceed_status call.
3187 * infrun.c (proceed_after_vfork_done): Likewise.
3188 (proceed_after_attach_callback): Adjust comment.
3189 (clear_proceed_status_thread): Clear stop_signal if not in pass
3190 state.
3191 (clear_proceed_status_callback): Delete.
3192 (clear_proceed_status): New 'step' parameter. Only clear the
3193 proceed status of threads the command being prepared is about to
3194 resume.
3195 (proceed): If passed in an explicit signal, override stop_signal
3196 with it. Don't pass the last stop signal to the thread we're
3197 resuming.
3198 (init_wait_for_inferior): Adjust clear_proceed_status call.
3199 (switch_back_to_stepped_thread): Clear the signal if it should not
3200 be passed.
3201 * infrun.h (clear_proceed_status): New 'step' parameter.
3202 (user_visible_resume_ptid): Add comment.
3203 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3204 signal is in pass state.
3205 * remote.c (append_pending_thread_resumptions): Likewise.
3206 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3207
3208 2014-07-25 Tom Tromey <tromey@redhat.com>
3209
3210 * target.h (target_stopped_data_address)
3211 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3212 parentheses.
3213
3214 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3215
3216 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3217 comments.
3218 (avr_pointer_to_address): Likewise.
3219
3220 2014-07-24 Tom Tromey <tromey@redhat.com>
3221
3222 * monitor.c (compile_pattern): Update.
3223 * target.h (struct target_ops) <to_shortname, to_longname,
3224 to_doc>: Now const.
3225
3226 2014-07-24 Tom Tromey <tromey@redhat.com>
3227
3228 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3229 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3230 (add_info_alias, add_com): Make "doc" const.
3231 (print_doc_line): Make "str" const.
3232 (delete_cmd): Update.
3233 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3234 (print_doc_line): Update.
3235 * cli/cli-script.c (document_command): Update.
3236 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3237 (add_com, add_info, add_info_alias): Update.
3238 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3239 * python/py-cmd.c (cmdpy_destroyer): Update.
3240
3241 2014-07-24 Tom Tromey <tromey@redhat.com>
3242
3243 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3244 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3245 (help_cmd_list): Constify.
3246 (lookup_cmd): Update.
3247 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3248 const.
3249 (help_cmd_list, apropos_cmd): Update.
3250 * cli/cli-script.c (show_user): Update.
3251 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3252 * cli/cli-setshow.h (cmd_show_list): Update.
3253 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3254 (cmd_show_list): Update.
3255 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3256 * python/py-cmd.c (cmdpy_destroyer): Update.
3257
3258 2014-07-24 Tom Tromey <tromey@redhat.com>
3259
3260 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3261 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3262 const.
3263 * command.h (deprecate_cmd): Update.
3264 * maint.c (maintenance_do_deprecate): Add casts.
3265
3266 2014-07-24 Tom Tromey <tromey@redhat.com>
3267
3268 * cli/cli-decode.c (help_cmd): Make parameter "const".
3269 * cli/cli-decode.h (help_cmd): Update.
3270
3271 2014-07-24 Tom Tromey <tromey@redhat.com>
3272
3273 * stack.c (up_silently_base, down_silently_base): Make argument
3274 const.
3275
3276 2014-07-24 Tom Tromey <tromey@redhat.com>
3277
3278 * solib.c (solib_add): Make "pattern" const.
3279 * solib.h (solib_add): Update.
3280
3281 2014-07-24 Tom Tromey <tromey@redhat.com>
3282
3283 * remote.c (remote_serial_open, print_packet, putpkt)
3284 (putpkt_binary): Constify.
3285 * remote.h (putpkt): Update.
3286
3287 2014-07-24 Tom Tromey <tromey@redhat.com>
3288
3289 * monitor.c (monitor_open): Make "args" const.
3290 * monitor.h (monitor_open): Update.
3291
3292 2014-07-24 Tom Tromey <tromey@redhat.com>
3293
3294 * maint.c (match_bfd_flags): Make "string" const.
3295 (print_bfd_section_info): Remove casts.
3296 (print_objfile_section_info): Make "string" const.
3297
3298 2014-07-24 Tom Tromey <tromey@redhat.com>
3299
3300 * inf-child.c (inf_child_open_target): Make "arg" const.
3301 * inf-child.h (inf_child_open_target): Update.
3302
3303 2014-07-24 Tom Tromey <tromey@redhat.com>
3304
3305 * environ.c (unset_in_environ): Make "var" const.
3306 * environ.h (unset_in_environ): Update.
3307
3308 2014-07-24 Tom Tromey <tromey@redhat.com>
3309
3310 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3311 Make "cmd" const.
3312 (scan_filename_with_cleanup): Likewise.
3313 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3314 Make arguments const.
3315 (restore_command): Update.
3316
3317 2014-07-24 Pedro Alves <palves@redhat.com>
3318
3319 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3320
3321 2014-07-24 Tom Tromey <tromey@redhat.com>
3322 Gary Benson <gbenson@redhat.com>
3323
3324 * nat/linux-ptrace.c (additional_flags): New global.
3325 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3326 additional_flags; don't check GDBSERVER.
3327 (linux_ptrace_set_additional_flags): New function.
3328 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3329 Declare.
3330 * linux-nat.c (_initialize_linux_nat): Call
3331 linux_ptrace_set_additional_flags.
3332
3333 2014-07-24 Tom Tromey <tromey@redhat.com>
3334
3335 * make-target-delegates (munge_type, write_debugmethod): New
3336 functions.
3337 (debug_names): New global.
3338 ($TARGET_DEBUG_PRINTER): New global.
3339 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3340 name.
3341 Write debug methods. Generate init_debug_target.
3342 * target-debug.h: New file.
3343 * target-delegates.c: Rebuild.
3344 * target.c: Include target-debug.h.
3345 (debug_target): Hoist definition.
3346 (target_kill, target_get_section_table, target_memory_map)
3347 (target_flash_erase, target_flash_done, target_detach)
3348 (target_disconnect, target_wait, target_resume)
3349 (target_pass_signals, target_program_signals, target_follow_fork)
3350 (target_mourn_inferior, target_search_memory)
3351 (target_thread_address_space, target_close)
3352 (target_find_new_threads, target_core_of_thread)
3353 (target_verify_memory, target_insert_mask_watchpoint)
3354 (target_remove_mask_watchpoint): Remove targetdebug code.
3355 (debug_to_post_attach, debug_to_prepare_to_store)
3356 (debug_to_files_info, debug_to_insert_breakpoint)
3357 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3358 (debug_to_region_ok_for_hw_watchpoint)
3359 (debug_to_can_accel_watchpoint_condition)
3360 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3361 (debug_to_watchpoint_addr_within_range)
3362 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3363 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3364 (debug_to_terminal_init, debug_to_terminal_inferior)
3365 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3366 (debug_to_terminal_save_ours, debug_to_terminal_info)
3367 (debug_to_load, debug_to_post_startup_inferior)
3368 (debug_to_insert_fork_catchpoint)
3369 (debug_to_remove_fork_catchpoint)
3370 (debug_to_insert_vfork_catchpoint)
3371 (debug_to_remove_vfork_catchpoint)
3372 (debug_to_insert_exec_catchpoint)
3373 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3374 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3375 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3376 (setup_target_debug): Call init_debug_target.
3377 * target.h (TARGET_DEBUG_PRINTER): New macro.
3378 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3379 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3380
3381 2014-07-24 Gary Benson <gbenson@redhat.com>
3382
3383 * exceptions.h (throw_vfatal): Renamed to...
3384 (throw_vquit): New declaration.
3385 (throw_quit): Likewise.
3386 * exceptions.c (throw_vfatal): Renamed to...
3387 (throw_vquit): New function.
3388 (throw_quit): Likewise.
3389 (throw_error): Call throw_verror rather than throw_it.
3390 * utils.h (vfatal): Removed.
3391 (fatal): Likewise.
3392 * utils.c (vfatal): Removed.
3393 (fatal): Likewise.
3394 (internal_verror): Replaced call to fatal with call to throw_quit.
3395 (quit): Replaced calls to fatal with calls to throw_quit.
3396
3397 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3398
3399 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3400 target_read_code.
3401
3402 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3403
3404 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3405 less than zero in conditional expression.
3406
3407 2014-07-23 Tom Tromey <tromey@redhat.com>
3408
3409 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3410 ($INTRO_PART): Don't match whitespace.
3411 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3412 argument matching.
3413 ($METHOD): Add $METHOD_TRAILER.
3414 (trim): Rewrite.
3415 (scan_target_h): New sub.
3416 Change main loop not to collect state.
3417 * target-delegates.c: Rebuild.
3418
3419 2014-07-23 Gary Benson <gbenson@redhat.com>
3420
3421 * cp-support.c (gdb_demangle): Fix build on systems without
3422 sigaltstack.
3423
3424 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3425
3426 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3427 for reference entry value target data value.
3428
3429 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3430
3431 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3432 value_available_contents_eq.
3433
3434 2014-07-22 Pedro Alves <palves@redhat.com>
3435
3436 * value.c (allocate_optimized_out_value): Don't mark value as
3437 non-lazy.
3438
3439 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3440
3441 * MAINTAINERS (Write After Approval): Update my email address.
3442
3443 2014-07-20 Doug Evans <dje@google.com>
3444
3445 PR server/17147
3446 * remote.c (putpkt_binary): Add text to error message.
3447
3448 2014-07-20 Yao Qi <yao@codesourcery.com>
3449
3450 * eval.c: Remove "Chill" from comments.
3451 * gdbtypes.h: Likewise.
3452 * symtab.h: Likewise.
3453
3454 2014-07-20 Yao Qi <yao@codesourcery.com>
3455
3456 * std-operator.def: Update comments to TERNOP_SLICE.
3457
3458 2014-07-20 Yao Qi <yao@codesourcery.com>
3459
3460 * std-operator.def: Remove BINOP_RANGE.
3461 * breakpoint.c (watchpoint_exp_is_const): Update.
3462 * expprint.c (dump_subexp_body_standard): Likewise.
3463 * eval.c (init_array_element): Remove dead code.
3464 (evaluate_subexp_standard): Likewise.
3465
3466 2014-07-20 Yao Qi <yao@codesourcery.com>
3467
3468 * std-operator.def: Remove BINOP_IN.
3469 * breakpoint.c (watchpoint_exp_is_const): Update.
3470 * eval.c (evaluate_subexp_standard): Likewise.
3471 * expprint.c (dump_subexp_body_standard): Likewise.
3472
3473 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3474
3475 * microblaze-tdep.c (microblaze_register_names): Add
3476 the rshr and rslr register names.
3477 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3478 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3479 Use of tdesc_numbered_register. Use of
3480 microblaze_register_g_packet_guesses. Use of
3481 tdesc_use_registers. Use of set_gdbarch_register_type.
3482 (microblaze_register_g_packet_guesses): New.
3483 * microblaze-tdep.h (microblaze_reg_num): Add
3484 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3485 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3486 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3487 * features/microblaze-core.xml: New file.
3488 * features/microblaze-stack-protect.xml: New file.
3489 * features/microblaze-with-stack-protect.c: New file.
3490 * features/microblaze-with-stack-protect.xml: New file.
3491 * features/microblaze.xml: New file.
3492 * features/microblaze.c: New file.
3493 * features/Makefile (microblaze-with-stack-protect): Add
3494 microblaze-with-stack-protect microblaze and microblaze-expedite.
3495 * regformats/microblaze-with-stack-protect.dat: New file.
3496 * regformats/microblaze.dat: New file.
3497 * doc/gdb.texinfo (MicroBlaze Features): Added.
3498
3499 2014-07-18 Tom Tromey <tromey@redhat.com>
3500
3501 * exec.c (exec_ops): Now static.
3502 * exec.h (exec_ops): Don't declare.
3503
3504 2014-07-18 Tom Tromey <tromey@redhat.com>
3505
3506 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3507 to find_target_beneath.
3508 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3509 find_target_beneath.
3510 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3511
3512 2014-07-18 Tom Tromey <tromey@redhat.com>
3513
3514 PR gdb/17130:
3515 * utils.c (quit): Use target_supports_terminal_ours.
3516 * target.h (target_supports_terminal_ours): Declare.
3517 * target.c (target_supports_delete_record): Don't check
3518 to_delete_record against NULL.
3519 (target_supports_terminal_ours): New function.
3520
3521 2014-07-18 Tom Tromey <tromey@redhat.com>
3522
3523 PR gdb/17130:
3524 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3525 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3526 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3527 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3528 * windows-nat.c (windows_xfer_partial): Always delegate.
3529 * record-btrace.c (record_btrace_xfer_partial): Simplify
3530 delegation.
3531 (record_btrace_fetch_registers, record_btrace_store_registers)
3532 (record_btrace_prepare_to_store, record_btrace_resume)
3533 (record_btrace_wait, record_btrace_find_new_threads)
3534 (record_btrace_thread_alive): Likewise.
3535 * procfs.c (procfs_xfer_partial): Always delegate.
3536 * corelow.c (core_xfer_partial): Always delegate.
3537 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3538
3539 2014-07-18 Tom Tromey <tromey@redhat.com>
3540
3541 * exec.c (exec_make_note_section): Move earlier.
3542
3543 2014-07-17 Doug Evans <dje@google.com>
3544
3545 PR gdb/17170
3546 * maint.c (count_symtabs_and_blocks): Handle NULL
3547 current_program_space.
3548 (report_command_stats): Check global enabled flag in addition to
3549 recorded enabled flag.
3550 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3551
3552 2014-07-16 Pedro Alves <palves@redhat.com>
3553
3554 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3555
3556 2014-07-16 Tom Tromey <tromey@redhat.com>
3557
3558 * target.h (struct target_ops) <to_delete_record>: Reformat
3559 comment.
3560
3561 2014-07-16 Tom Tromey <tromey@redhat.com>
3562
3563 * target-delegates.c: Rebuild.
3564
3565 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3566
3567 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3568 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3569 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3570 (avr_pointer_to_address): Likewise.
3571 (avr_address_class_type_flags): New function.
3572 (avr_address_class_type_flags_to_name): Likewise.
3573 (avr_address_class_name_to_type_flags): Likewise.
3574 (avr_gdbarch_init): Set address_class_type_flags,
3575 address_class_type_flags_to_name and
3576 address_class_name_to_type_flags.
3577
3578 2014-07-15 Pedro Alves <palves@redhat.com>
3579
3580 * linux-nat.c (kill_callback): Save errno and work with saved
3581 copy.
3582
3583 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3584
3585 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3586
3587 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3588
3589 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3590 breakpoint support correctly.
3591
3592 2014-07-14 Pedro Alves <palves@redhat.com>
3593
3594 * utils.c (prompt_for_continue): Call target_terminal_ours.
3595
3596 2014-07-14 Pedro Alves <palves@redhat.com>
3597
3598 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3599 catch_errors. Don't re-enable stdin or notify observers where,
3600 and rethrow error.
3601 (fetch_inferior_event_wrapper): Delete.
3602
3603 2014-07-14 Pedro Alves <palves@redhat.com>
3604
3605 PR gdb/17072
3606 * top.c: Include "inf-loop.h".
3607 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3608 field.
3609 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3610 was async before.
3611 (gdb_readline_wrapper): Store whether the target is async, and
3612 make it sync.
3613
3614 2014-07-14 Pedro Alves <palves@redhat.com>
3615
3616 PR gdb/17072
3617 * top.c (gdb_readline_wrapper_line): Tweak comment.
3618 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3619 the input handler callback.
3620
3621 2014-07-14 Pedro Alves <palves@redhat.com>
3622
3623 PR gdb/17072
3624 * main.c: Include event-top.h.
3625 (handle_command_errors): New function.
3626 (catch_command_errors, catch_command_errors_const): Use it.
3627
3628 2014-07-14 Pedro Alves <palves@redhat.com>
3629
3630 * exceptions.c (catch_command_errors, catch_command_errors_const):
3631 Moved to main.c.
3632 * exceptions.h (catch_command_errors_ftype)
3633 (catch_command_errors_const_ftype): Moved to main.c.
3634 (catch_command_errors, catch_command_errors_const): Delete
3635 declarations.
3636 * main.c (catch_command_errors_ftype)
3637 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3638 (catch_command_errors, catch_command_errors_const)): Moved here
3639 from exceptions.c and make static.
3640
3641 2014-07-14 Pedro Alves <palves@redhat.com>
3642
3643 * exceptions.c (print_any_exception): Delete.
3644 (catch_exceptions_with_msg): Use exception_print instead of
3645 print_any_exception.
3646 (catch_errors): Use exception_fprintf instead of
3647 print_any_exception.
3648 (catch_command_errors, catch_command_errors_const): Use
3649 exception_print instead of print_any_exception.
3650
3651 2014-07-14 Pedro Alves <palves@redhat.com>
3652
3653 * infcall.c (run_inferior_call): Set 'sync_execution' while
3654 running the inferior call.
3655
3656 2014-07-14 Pedro Alves <palves@redhat.com>
3657
3658 * value.c (value_contents_equal): Delete function.
3659 * value.h (value_contents_equal): Delete declaration.
3660
3661 2014-07-14 Tom Tromey <tromey@redhat.com>
3662
3663 PR exp/17106:
3664 * gdbtypes.c (is_dynamic_type_internal): New function, from
3665 is_dynamic_type.
3666 (is_dynamic_type): Rewrite.
3667 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3668 (resolve_dynamic_struct): Likewise.
3669 (resolve_dynamic_type_internal): New function, from
3670 resolve_dynamic_type.
3671 (resolve_dynamic_type): Rewrite.
3672
3673 2014-07-14 Tom Tromey <tromey@redhat.com>
3674
3675 * target.c (target_require_runnable): Also check record_stratum.
3676 Update comment.
3677
3678 2014-07-11 Yao Qi <yao@codesourcery.com>
3679
3680 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3681 thumb_instruction_restores_sp return true.
3682
3683 2014-07-11 Yao Qi <yao@codesourcery.com>
3684
3685 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3686 (thumb_in_function_epilogue_p): Call
3687 thumb_instruction_restores_sp.
3688
3689 2014-07-11 Yao Qi <yao@codesourcery.com>
3690
3691 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3692 'add sp, #imm'.
3693 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3694
3695 2014-07-11 Gary Benson <gbenson@redhat.com>
3696
3697 * amd64-linux-nat.c (gdbcore.h): Remove include.
3698 (regset.h): Likewise.
3699 (nat/linux-btrace.h): Likewise.
3700 (btrace.h): Likewise.
3701 (gdb_assert.h): Likewise.
3702 (string.h): Likewise.
3703 (sys/uio.h): Likewise.
3704 (sys/debugreg.h): Likewise.
3705 (sys/syscall.h): Likewise.
3706 (sys/procfs.h): Likewise.
3707 (sys/user.h): Likewise.
3708 (asm/ptrace.h): Likewise.
3709 (i386-nat.h): Likewise.
3710 * i386-linux-nat.c (i386-nat.h): Likewise.
3711 (regset.h): Likewise.
3712 (target.h): Likewise.
3713 (linux-nat.h): Likewise.
3714 (nat/linux-btrace.h): Likewise.
3715 (btrace.h): Likewise.
3716 (gdb_assert.h): Likewise.
3717 (string.h): Likewise.
3718 (sys/uio.h): Likewise.
3719 (sys/user.h): Likewise.
3720 (sys/procfs.h): Likewise.
3721 (sys/reg.h): Likewise.
3722 (sys/debugreg.h): Likewise.
3723 (ORIG_EAX): Remove definition.
3724
3725 2014-07-11 Gary Benson <gbenson@redhat.com>
3726
3727 * i386-linux-nat.h: New file.
3728 * x86-linux-nat.h: Likewise.
3729 * x86-linux-nat.c: Likewise.
3730 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3731 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3732 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3733 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3734 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3735 (PTRACE_SETREGSET): Likewise.
3736 (arch_lwp_info): Now in x86-linux-nat.c.
3737 (have_ptrace_getregset): Now in x86-linux-nat.h.
3738 (x86_linux_dr_get): Now in x86-linux-nat.c.
3739 (x86_linux_dr_set): Likewise.
3740 (x86_linux_dr_get_addr): Likewise.
3741 (x86_linux_dr_get_control): Likewise.
3742 (x86_linux_dr_get_status): Likewise.
3743 (update_debug_registers_callback): Likewise.
3744 (x86_linux_dr_set_control): Likewise.
3745 (x86_linux_dr_set_addr): Likewise.
3746 (x86_linux_prepare_to_resume): Likewise.
3747 (x86_linux_new_thread): Likewise.
3748 (x86_linux_new_fork): Likewise.
3749 (x86_linux_get_thread_area): Likewise.
3750 (super_post_startup_inferior): Likewise.
3751 (x86_linux_child_post_startup_inferior): Likewise.
3752 (AMD64_LINUX_USER64_CS): Likewise.
3753 (AMD64_LINUX_X32_DS): Likewise.
3754 (x86_linux_read_description): Likewise.
3755 (x86_linux_enable_btrace): Likewise.
3756 (x86_linux_disable_btrace): Likewise.
3757 (x86_linux_teardown_btrace): Likewise.
3758 (x86_linux_read_btrace): Likewise.
3759 (x86_linux_create_target): Likewise.
3760 (x86_linux_add_target): Likewise.
3761 * i386-linux-nat.c (x86-linux-nat.h): New include.
3762 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3763 (PTRACE_SETREGSET): Likewise.
3764 (arch_lwp_info): Now in x86-linux-nat.c.
3765 (have_ptrace_getregset): Now in x86-linux-nat.h.
3766 (x86_linux_dr_get): Now in x86-linux-nat.c.
3767 (x86_linux_dr_set): Likewise.
3768 (x86_linux_dr_get_addr): Likewise.
3769 (x86_linux_dr_get_control): Likewise.
3770 (x86_linux_dr_get_status): Likewise.
3771 (update_debug_registers_callback): Likewise.
3772 (x86_linux_dr_set_control): Likewise.
3773 (x86_linux_dr_set_addr): Likewise.
3774 (x86_linux_prepare_to_resume): Likewise.
3775 (x86_linux_new_thread): Likewise.
3776 (x86_linux_new_fork): Likewise.
3777 (x86_linux_get_thread_area): Likewise.
3778 (super_post_startup_inferior): Likewise.
3779 (x86_linux_child_post_startup_inferior): Likewise.
3780 (AMD64_LINUX_USER64_CS): Likewise.
3781 (AMD64_LINUX_X32_DS): Likewise.
3782 (x86_linux_read_description): Likewise.
3783 (x86_linux_enable_btrace): Likewise.
3784 (x86_linux_disable_btrace): Likewise.
3785 (x86_linux_teardown_btrace): Likewise.
3786 (x86_linux_read_btrace): Likewise.
3787 (x86_linux_create_target): Likewise.
3788 (x86_linux_add_target): Likewise.
3789
3790 2014-07-11 Gary Benson <gbenson@redhat.com>
3791
3792 * amd64-linux-nat.c: Comment and whitespace changes.
3793 * i386-linux-nat.c: Comment and whitespace changes.
3794
3795 2014-07-11 Gary Benson <gbenson@redhat.com>
3796
3797 * amd64-linux-nat.c (x86_linux_create_target): New function.
3798 (x86_linux_add_target): Likewise.
3799 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3800 * i386-linux-nat.c (x86_linux_create_target): New function.
3801 (x86_linux_add_target): Likewise.
3802 (_initialize_i386_linux_nat): Delegate to the above new functions.
3803
3804 2014-07-11 Gary Benson <gbenson@redhat.com>
3805
3806 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3807 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3808 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3809 (ps_get_thread_area): Delegate to the above.
3810
3811 2014-07-11 Gary Benson <gbenson@redhat.com>
3812
3813 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3814 x86_linux_read_description. All uses updated. amd64-specific
3815 code conditionalized. Conditionalized i386-specific code added.
3816 Redundant cast removed.
3817 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3818 x86_linux_read_description. All uses updated. i386-specific
3819 code conditionalized. Conditionalized amd64-specific code added.
3820 One sizeof replaced with the actual type it is describing.
3821
3822 2014-07-11 Gary Benson <gbenson@redhat.com>
3823
3824 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3825 x86_linux_dr_get. All uses updated.
3826 (amd64_linux_dr_set): Renamed to
3827 x86_linux_dr_set. All uses updated.
3828 (amd64_linux_dr_get_addr): Renamed to
3829 x86_linux_dr_get_addr. All uses updated.
3830 (amd64_linux_dr_get_control): Renamed to
3831 x86_linux_dr_get_control. All uses updated.
3832 (amd64_linux_dr_get_status): Renamed to
3833 x86_linux_dr_get_status. All uses updated.
3834 (amd64_linux_dr_set_control): Renamed to
3835 x86_linux_dr_set_control. All uses updated.
3836 (amd64_linux_dr_set_addr): Renamed to
3837 x86_linux_dr_set_addr. All uses updated.
3838 (amd64_linux_prepare_to_resume): Renamed to
3839 x86_linux_prepare_to_resume. All uses updated.
3840 (amd64_linux_new_thread): Renamed to
3841 x86_linux_new_thread. All uses updated.
3842 (amd64_linux_new_fork): Renamed to
3843 x86_linux_new_fork. All uses updated.
3844 (amd64_linux_child_post_startup_inferior): Renamed to
3845 x86_linux_child_post_startup_inferior. All uses updated.
3846 (amd64_linux_enable_btrace): Renamed to
3847 x86_linux_enable_btrace. All uses updated.
3848 (amd64_linux_disable_btrace): Renamed to
3849 x86_linux_disable_btrace. All uses updated.
3850 (amd64_linux_teardown_btrace): Renamed to
3851 x86_linux_teardown_btrace. All uses updated.
3852 (amd64_linux_read_btrace): Renamed to
3853 x86_linux_read_btrace. All uses updated.
3854 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3855 x86_linux_dr_get. All uses updated.
3856 (i386_linux_dr_set): Renamed to
3857 x86_linux_dr_set. All uses updated.
3858 (i386_linux_dr_get_addr): Renamed to
3859 x86_linux_dr_get_addr. All uses updated.
3860 (i386_linux_dr_get_control): Renamed to
3861 x86_linux_dr_get_control. All uses updated.
3862 (i386_linux_dr_get_status): Renamed to
3863 x86_linux_dr_get_status. All uses updated.
3864 (i386_linux_dr_set_control): Renamed to
3865 x86_linux_dr_set_control. All uses updated.
3866 (i386_linux_dr_set_addr): Renamed to
3867 x86_linux_dr_set_addr. All uses updated.
3868 (i386_linux_prepare_to_resume): Renamed to
3869 x86_linux_prepare_to_resume. All uses updated.
3870 (i386_linux_new_thread): Renamed to
3871 x86_linux_new_thread. All uses updated.
3872 (i386_linux_new_fork): Renamed to
3873 x86_linux_new_fork. All uses updated.
3874 (i386_linux_child_post_startup_inferior): Renamed to
3875 x86_linux_child_post_startup_inferior. All uses updated.
3876 (i386_linux_enable_btrace): Renamed to
3877 x86_linux_enable_btrace. All uses updated.
3878 (i386_linux_disable_btrace): Renamed to
3879 x86_linux_disable_btrace. All uses updated.
3880 (i386_linux_teardown_btrace): Renamed to
3881 x86_linux_teardown_btrace. All uses updated.
3882 (i386_linux_read_btrace): Renamed to
3883 x86_linux_read_btrace. All uses updated.
3884
3885 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3886
3887 * remote.c (extended_remote_post_attach): New function.
3888 (init_extended_remote_ops): Install it as to_post_attach method.
3889
3890 2014-07-09 Pedro Alves <palves@redhat.com>
3891
3892 * infcmd.c (attach_command_post_wait): Don't call
3893 target_terminal_inferior here.
3894 (attach_command): Call it here instead.
3895
3896 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3897
3898 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3899 field.
3900 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3901 from varobj.c, with additional checks.
3902 (c_varobj_ops): Fill in is_path_expr_parent field.
3903 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3904 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3905 field.
3906 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3907 ops method.
3908 (varobj_default_is_path_expr_parent): New function.
3909 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3910 (varobj_default_is_path_expr_parent): Declare new function.
3911
3912 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3913
3914 * infcmd.c (finish_backward): Turn internal error into normal error.
3915
3916 2014-07-07 Pedro Alves <palves@redhat.com>
3917
3918 PR gdb/17096
3919 * remote.c (async_handle_remote_sigint)
3920 (async_handle_remote_sigint_twice): Call
3921 gdb_call_async_signal_handler instead of
3922 mark_async_signal_handler.
3923
3924 2014-07-07 Tom Tromey <tromey@redhat.com>
3925
3926 * target-delegates.c: Rebuild.
3927 * target.c (target_info_record): Remove.
3928 * record.c (info_record_command): Unconditionally call
3929 to_info_record.
3930 * target.h (struct target_ops) <to_info_record>: Use
3931 TARGET_DEFAULT_IGNORE.
3932 (target_info_record): Remove.
3933
3934 2014-07-07 Tom Tromey <tromey@redhat.com>
3935
3936 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3937 TARGET_DEFAULT_NORETURN.
3938 * target.c (generic_tls_error): New function.
3939 (target_translate_tls_address): Don't search target stack.
3940 * target-delegates.c: Rebuild.
3941 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3942 stack.
3943 * linux-thread-db.c (thread_db_get_thread_local_address):
3944 Unconditionally call beneath target.
3945
3946 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3947
3948 * cli/cli-logging.c (pop_output_files): Assign targerr to
3949 gdb_stdtargerr.
3950
3951 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3952
3953 * MAINTAINERS (Write After Approval): Update my email address.
3954
3955 2014-07-02 Gary Benson <gbenson@redhat.com>
3956
3957 * proc-service.c (ps_xfer_memory): Update comment.
3958 (ps_pstop): Remove unused function.
3959 (ps_pcontinue): Likewise.
3960 (ps_lstop): Likewise.
3961 (ps_lcontinue): Likewise.
3962 (ps_lgetxregsize): Likewise.
3963 (ps_lgetxregs): Likewise.
3964 (ps_lsetxregs): Likewise.
3965 (ps_plog): Likewise.
3966 (ps_ptread): Likewise.
3967 (ps_ptwrite): Likewise.
3968
3969 2014-07-01 Mark Wielaard <mjw@redhat.com>
3970
3971 * dwarf2read.c (add_array_cv_type): New function.
3972 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3973 (read_tag_volatile_type): Likewise.
3974
3975 2014-07-01 Tom Tromey <tromey@redhat.com>
3976
3977 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3978 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3979 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3980 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3981 * command.h (cmd_cfunc_ftype): Move earlier.
3982 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3983 (add_com, add_info): Use cmd_cfunc_ftype.
3984
3985 2014-06-30 Tom Tromey <tromey@redhat.com>
3986
3987 * symtab.c (operator_chars): Make parameters and return type
3988 const.
3989 (file_matches): Make "files" const.
3990 (struct search_symbols_data) <files>: Now const.
3991 (search_symbols): Make "regexp" and "files" parameters const.
3992 Update.
3993 (symtab_symbol_info): Remove cast.
3994 (rbreak_command): Update.
3995 * symtab.h (search_symbols): Update.
3996
3997 2014-06-27 Yao Qi <yao@codesourcery.com>
3998
3999 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4000 Change parameter type to 'struct thread_info *'. Caller
4001 updated.
4002 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4003 Update declaration.
4004 * dummy-frame.c (struct dummy_frame_id): New.
4005 (dummy_frame_id_eq): New function.
4006 (struct dummy_frame) <id>: Change its type to 'struct
4007 dummy_frame_id'.
4008 (dummy_frame_push): Add parameter ptid and save it in
4009 dummy_frame_id.
4010 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4011 inferior_ptid.
4012 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4013 to inferior_ptid.
4014 (lookup_dummy_frame): Change parameter type to 'struct
4015 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4016 instead of frame_id_eq.
4017 (dummy_frame_pop): Add parameter ptid. Callers updated.
4018 Update comments. Compose dummy_frame_id and pass it to
4019 lookup_dummy_frame.
4020 (dummy_frame_discard): Add parameter ptid.
4021 (dummy_frame_sniffer): Compose dummy_frame_id and call
4022 dummy_frame_id_eq instead of frame_id_eq.
4023 (fprint_dummy_frames): Print ptid.
4024 * dummy-frame.h: Remove comments.
4025 (dummy_frame_push): Add ptid in declaration.
4026 (dummy_frame_pop, dummy_frame_discard): Likewise.
4027
4028 2014-06-26 Tom Tromey <tromey@redhat.com>
4029
4030 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4031 * command.h (error_no_arg): Update.
4032
4033 2014-06-26 Tom Tromey <tromey@redhat.com>
4034
4035 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4036 (do_show_command): Make "arg" const.
4037 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4038
4039 2014-06-26 Tom Tromey <tromey@redhat.com>
4040
4041 * record-full.c (record_full_get_bookmark): Make "args" const.
4042 (record_full_goto_bookmark): Make "raw_bookmark" const.
4043 * record.c (record_goto): New function.
4044 (cmd_record_goto): Use it. Now static.
4045 * record.h (record_goto): Declare.
4046 (cmd_record_goto): Remove declaration.
4047 * target-delegates.c: Rebuild.
4048 * target.h (struct target_ops) <to_get_bookmark,
4049 to_goto_bookmark>: Make parameter const.
4050
4051 2014-06-26 Tom Tromey <tromey@redhat.com>
4052
4053 * defs.h (generic_load): Update.
4054 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4055 * monitor.c (monitor_load): Make "args" const.
4056 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4057 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4058 const.
4059 (mips_load): Make "file" const.
4060 * remote-sim.c (gdbsim_load): Make "args" const.
4061 * remote.c (remote_load): Make "name" const.
4062 * symfile.c (generic_load): Make "args" const.
4063 * target-delegates.c: Rebuild.
4064 * target.c (target_load): Make "arg" const.
4065 (debug_to_load): Make "args" const.
4066 * target.h (struct target_ops) <to_load>: Make parameter const.
4067 (target_load): Update.
4068
4069 2014-06-26 Tom Tromey <tromey@redhat.com>
4070
4071 PR symtab/16902:
4072 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4073 (dwarf2_physname, read_partial_die)
4074 (guess_partial_die_structure_name, fixup_partial_die)
4075 (guess_full_die_structure_name, anonymous_struct_prefix)
4076 (dwarf2_name): Use per-BFD obstack.
4077
4078 2014-06-26 Yao Qi <yao@codesourcery.com>
4079
4080 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4081 dummyframe and this_id into inner block below.
4082
4083 2014-06-26 Yao Qi <yao@codesourcery.com>
4084
4085 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4086 with "signal_pass[0]" in the initialization of signal_pass.
4087
4088 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4089
4090 * record-btrace.c (record_btrace_generating_corefile)
4091 (record_btrace_prepare_to_generate_core)
4092 (record_btrace_done_generating_core): New.
4093 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4094 (record_btrace_store_registers, record_btrace_prepare_to_store):
4095 Forward request when generating a core file.
4096 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4097 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4098 to_done_generating_core.
4099
4100 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4101
4102 * target.h (target_ops) <to_prepare_to_generate_core>
4103 <to_done_generating_core>: New.
4104 (target_prepare_to_generate_core, target_done_generating_core): New.
4105 * target.c (target_prepare_to_generate_core)
4106 (target_done_generating_core): New.
4107 * target-delegates.c: Regenerate.
4108 * gcore.c: (write_gcore_file): Rename to ...
4109 (write_gcore_file_1): ...this.
4110 (write_gcore_file): Call target_prepare_to_generate_core
4111 and target_done_generating_core.
4112
4113 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4114
4115 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4116 * gcore.c (write_gcore_file): Free memory returned from
4117 make_corefile_notes.
4118 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4119 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4120
4121 2014-06-24 Yao Qi <yao@codesourcery.com>
4122
4123 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4124 (arm_linux_init_abi): Set skip_trampoline_code with
4125 gdbarch_skip_trampoline_code instead of
4126 find_solib_trampoline_target.
4127
4128 2014-06-24 Yao Qi <yao@codesourcery.com>
4129
4130 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4131 arm_skip_bx_reg returns non-zero.
4132
4133 2014-06-24 Yao Qi <yao@codesourcery.com>
4134
4135 * arm-tdep.c (arm_skip_bx_reg): New function.
4136 (arm_skip_stub): Call arm_skip_bx_reg.
4137
4138 2014-06-23 Don Breazeal <donb@codesourcery.com>
4139
4140 * MAINTAINERS: Add myself as write-after-approval maintainer.
4141
4142 2014-06-23 Pedro Alves <palves@redhat.com>
4143
4144 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4145 DR_CONTROL before setting DR0..DR3.
4146 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4147 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4148 bits of DR_CONTROL related to the debug register slot being
4149 disabled. If all slots are vacant, clear local slowdown as well,
4150 and assert DR_CONTROL is 0.
4151
4152 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4153
4154 * python/lib/gdb/command/xmethods.py
4155 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4156 current progspace only if the string "progspace" matches LOCUS_RE.
4157
4158 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4159
4160 Fix --with-system-readline with readline-6.3 patch 5.
4161 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4162 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4163 types.
4164
4165 2014-06-20 Tom Tromey <tromey@redhat.com>
4166
4167 * dwarf2read.c (dw2_get_real_path): Use correct type in
4168 OBSTACK_CALLOC.
4169 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4170
4171 2014-06-20 Gary Benson <gbenson@redhat.com>
4172
4173 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4174 * common/glibc_thread_db.h: Likewise.
4175 * common/i386-cpuid.h: Likewise.
4176 * common/i386-gcc-cpuid.h: Likewise.
4177 * common/linux-btrace.h: Likewise.
4178 * common/linux-osdata.h: Likewise.
4179 * common/linux-procfs.h: Likewise.
4180 * common/linux-ptrace.h: Likewise.
4181 * common/mips-linux-watch.h: Likewise.
4182 * common/linux-btrace.c: Moved to nat.
4183 * common/linux-osdata.c: Likewise.
4184 * common/linux-procfs.c: Likewise.
4185 * common/linux-ptrace.c: Likewise.
4186 * common/mips-linux-watch.c: Likewise.
4187 * nat/gdb_thread_db.h: Moved from common.
4188 * nat/glibc_thread_db.h: Likewise.
4189 * nat/i386-cpuid.h: Likewise.
4190 * nat/i386-gcc-cpuid.h: Likewise.
4191 * nat/linux-btrace.c: Likewise.
4192 * nat/linux-btrace.h: Likewise.
4193 * nat/linux-osdata.c: Likewise.
4194 * nat/linux-osdata.h: Likewise.
4195 * nat/linux-procfs.c: Likewise.
4196 * nat/linux-procfs.h: Likewise.
4197 * nat/linux-ptrace.c: Likewise.
4198 * nat/linux-ptrace.h: Likewise.
4199 * nat/mips-linux-watch.c: Likewise.
4200 * nat/mips-linux-watch.h: Likewise.
4201 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4202 (object file files): Reordered.
4203 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4204 of glibc_thread_db.h.
4205
4206 2014-06-20 Gary Benson <gbenson@redhat.com>
4207
4208 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4209 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4210 (i386_dr_low): Likewise.
4211 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4212 (i386_dr_low_set_addr): Likewise.
4213 (i386_dr_low_get_addr): Likewise.
4214 (i386_dr_low_can_set_control): Likewise.
4215 (i386_dr_low_set_control): Likewise.
4216 (i386_dr_low_get_control): Likewise.
4217 (i386_dr_low_get_status): Likewise.
4218 (i386_get_debug_register_length): Likewise.
4219 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4220 (i386_dr_low): Likewise.
4221 * nat/i386-dregs.c (i386-low.h): Remove include.
4222 (i386-nat.h): Likewise.
4223 (nat/i386-dregs.h): New include.
4224 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4225 (i386_dr_low_set_addr): Likewise.
4226 (i386_dr_low_get_addr): Likewise.
4227 (i386_dr_low_can_set_control): Likewise.
4228 (i386_dr_low_set_control): Likewise.
4229 (i386_dr_low_get_control): Likewise.
4230 (i386_dr_low_get_status): Likewise.
4231 (i386_get_debug_register_length): Likewise.
4232 (debug_hw_points): Likewise.
4233
4234 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4235
4236 * Makefile.in (SFILES): Add d-exp.y.
4237 (YYFILES): Add d-exp.c.
4238 (YYOBJ): Add d-exp.o.
4239 (local-maintainer-clean): Delete d-exp.c.
4240 * d-exp.y: New file.
4241 * d-lang.h (d_parse): New declaration.
4242 (d_error): New declaration.
4243 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4244 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4245 PREC_ORDER operators.
4246 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4247
4248 2014-06-19 Yao Qi <yao@codesourcery.com>
4249
4250 * gdbthread.h (any_running): Remove the declaration.
4251 * thread.c (any_running): Remove.
4252
4253 2014-06-19 Yao Qi <yao@codesourcery.com>
4254
4255 * gdbthread.h (struct thread_info) <state>: Change its type to
4256 'enum thread_state'. Update comments.
4257
4258 2014-06-19 Pedro Alves <palves@redhat.com>
4259
4260 * gdbthread.h (ALL_THREADS): Delete.
4261 (ALL_NON_EXITED_THREADS): New macro.
4262 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4263 instead of ALL_THREADS.
4264 * infrun.c (find_thread_needs_step_over)
4265 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4266 instead of ALL_THREADS.
4267 * record-btrace.c (record_btrace_open)
4268 (record_btrace_stop_recording, record_btrace_close)
4269 (record_btrace_is_replaying, record_btrace_resume)
4270 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4271 * remote.c (append_pending_thread_resumptions): Likewise.
4272 * thread.c (thread_apply_all_command): Likewise.
4273
4274 2014-06-19 Gary Benson <gbenson@redhat.com>
4275
4276 * i386-nat.c (i386_stopped_by_watchpoint):
4277 Use i386_dr_stopped_by_watchpoint.
4278 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4279 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4280
4281 2014-06-19 Gary Benson <gbenson@redhat.com>
4282
4283 * nat/i386-dregs.c: New file.
4284 * Makefile.in (i386-dregs.o): New rule.
4285 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4286 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4287 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4288 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4289 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4290 * config/i386/go32.mh (NATDEPFILES): Likewise.
4291 * config/i386/linux.mh (NATDEPFILES): Likewise.
4292 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4293 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4294 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4295 * i386-nat.h (debug_hw_points): New declaration.
4296 * i386-nat.c (breakpoint.h): Remove include.
4297 (command.h): Likewise.
4298 (target.h): Likewise.
4299 (gdb_assert.h): Likewise.
4300 (debug_hw_points): Made nonstatic.
4301 (debug_printf): Now in i386-dregs.c.
4302 (TARGET_HAS_DR_LEN_8): Likewise.
4303 (DR_CONTROL_SHIFT): Likewise.
4304 (DR_CONTROL_SIZE): Likewise.
4305 (DR_RW_EXECUTE): Likewise.
4306 (DR_RW_WRITE): Likewise.
4307 (DR_RW_READ): Likewise.
4308 (DR_RW_IORW): Likewise.
4309 (DR_LEN_1): Likewise.
4310 (DR_LEN_2): Likewise.
4311 (DR_LEN_4): Likewise.
4312 (DR_LEN_8): Likewise.
4313 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4314 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4315 (DR_ENABLE_SIZE): Likewise.
4316 (DR_LOCAL_SLOWDOWN): Likewise.
4317 (DR_GLOBAL_SLOWDOWN): Likewise.
4318 (DR_CONTROL_RESERVED): Likewise.
4319 (I386_DR_CONTROL_MASK): Likewise.
4320 (I386_DR_VACANT): Likewise.
4321 (I386_DR_LOCAL_ENABLE): Likewise.
4322 (I386_DR_GLOBAL_ENABLE): Likewise.
4323 (I386_DR_DISABLE): Likewise.
4324 (I386_DR_SET_RW_LEN): Likewise.
4325 (I386_DR_GET_RW_LEN): Likewise.
4326 (I386_DR_WATCH_HIT): Likewise.
4327 (i386_wp_op_t): Likewise.
4328 (i386_show_dr): Likewise.
4329 (i386_length_and_rw_bits): Likewise.
4330 (i386_insert_aligned_watchpoint): Likewise.
4331 (i386_remove_aligned_watchpoint): Likewise.
4332 (i386_handle_nonaligned_watchpoint): Likewise.
4333 (i386_update_inferior_debug_regs): Likewise.
4334 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4335 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4336 (i386_region_ok_for_watchpoint):
4337 Use i386_dr_region_ok_for_watchpoint.
4338 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4339
4340 2014-06-19 Gary Benson <gbenson@redhat.com>
4341
4342 * i386-nat.c (i386_insert_hw_breakpoint): Use
4343 i386_insert_watchpoint.
4344 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4345
4346 2014-06-19 Gary Benson <gbenson@redhat.com>
4347
4348 * i386-nat.c (i386_dr_show): Renamed to
4349 i386_show_dr and made static. All uses updated.
4350 (i386_dr_length_and_rw_bits): Renamed to
4351 i386_length_and_rw_bits and made static.
4352 All uses updated.
4353 (i386_dr_insert_aligned_watchpoint): Renamed to
4354 i386_insert_aligned_watchpoint and made static.
4355 All uses updated.
4356 (i386_dr_remove_aligned_watchpoint): Renamed to
4357 i386_remove_aligned_watchpoint and made static.
4358 All uses updated.
4359 (i386_dr_update_inferior_debug_regs): Renamed to
4360 i386_update_inferior_debug_regs and made static.
4361 All uses updated.
4362 * nat/i386-dregs.h (i386_dr_show): Removed.
4363 (i386_dr_length_and_rw_bits): Likewise.
4364 (i386_dr_insert_aligned_watchpoint): Likewise.
4365 (i386_dr_remove_aligned_watchpoint): Likewise.
4366 (i386_dr_update_inferior_debug_regs): Likewise.
4367
4368 2014-06-19 Gary Benson <gbenson@redhat.com>
4369
4370 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4371 * configure: Regenerate.
4372 * config.in: Likewise.
4373 * main.c (signal.h): New include.
4374 (setup_alternate_signal_stack): New function.
4375 (captured_main): Call the above.
4376 * cp-support.c (signal.h): New include.
4377 (catch_demangler_crashes): New flag.
4378 (SIGJMP_BUF): New define.
4379 (SIGSETJMP): Likewise.
4380 (SIGLONGJMP): Likewise.
4381 (gdb_demangle_jmp_buf): New static global.
4382 (gdb_demangle_attempt_core_dump): Likewise.
4383 (gdb_demangle_signal_handler): New function.
4384 (gdb_demangle): If catch_demangler_crashes is set, install the
4385 above signal handler before calling bfd_demangle, and restore
4386 the original signal handler afterwards. Display the offending
4387 symbol and call demangler_warning the first time a segmentation
4388 fault is caught.
4389 (_initialize_cp_support): New maint set/show command.
4390
4391 2014-06-19 Gary Benson <gbenson@redhat.com>
4392
4393 * utils.h (resource_limit_kind): New enum.
4394 (can_dump_core): New declaration.
4395 (warn_cant_dump_core): Likewise.
4396 (dump_core): Likewise.
4397 * utils.c (dump_core): Made nonstatic. Added new
4398 parameter "limit_kind".
4399 (can_dump_core): Made nonstatic. Moved printing code to...
4400 (warn_cant_dump_core): New function.
4401 (can_dump_core_warn): Likewise.
4402 (internal_vproblem): Replace calls to can_dump_core with
4403 calls to can_dump_core_warn. Supply new argument to each.
4404
4405 2014-06-19 Gary Benson <gbenson@redhat.com>
4406
4407 * utils.h (demangler_vwarning): New declaration.
4408 (demangler_warning): Likewise.
4409 * utils.c (struct internal_problem)
4410 <user_settable_should_quit>: New field.
4411 <user_settable_should_dump_core>: Likewise
4412 (internal_error_problem): Add values for above new fields.
4413 (internal_warning_problem): Likewise.
4414 (demangler_warning_problem): New static global.
4415 (demangler_vwarning): New function.
4416 (demangler_warning): Likewise.
4417 (add_internal_problem_command): Selectively add commands.
4418 (_initialize_utils): New internal problem command.
4419 * maint.c (maintenance_demangler_warning): New function.
4420 (_initialize_maint_cmds): New command.
4421
4422 2014-06-18 Tom Tromey <tromey@redhat.com>
4423
4424 * f-valprint.c (info_common_command_for_block): Update.
4425 * symtab.h (struct general_symbol_info) <common_block>: Now
4426 const.
4427
4428 2014-06-18 Tom Tromey <tromey@redhat.com>
4429
4430 * symtab.h (struct symtab) <blockvector>: Now const.
4431 * ada-lang.c (ada_add_global_exceptions): Update.
4432 * buildsym.c (augment_type_symtab): Update.
4433 * dwarf2read.c (dw2_lookup_symbol): Update.
4434 * jit.c (finalize_symtab): Update.
4435 * jv-lang.c (add_class_symtab_symbol): Update.
4436 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4437 Update.
4438 * objfiles.c (objfile_relocate1): Update.
4439 * psymtab.c (lookup_symbol_aux_psymtabs)
4440 (maintenance_check_psymtabs): Update.
4441 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4442 Update.
4443 * spu-tdep.c (spu_catch_start): Update.
4444 * symmisc.c (dump_symtab_1): Update.
4445 * symtab.c (lookup_global_symbol_from_objfile)
4446 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4447 (basic_lookup_transparent_type_quick)
4448 (basic_lookup_transparent_type, find_pc_sect_symtab)
4449 (find_pc_sect_line, search_symbols): Update.
4450 * block.c (find_block_in_blockvector): Make "bl" const.
4451 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4452 const.
4453 (blockvector_contains_pc): Make "bv" const.
4454 (block_for_pc_sect): Update.
4455 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4456 (blockvector_contains_pc): Update.
4457 * breakpoint.c (resolve_sal_pc): Update.
4458 * inline-frame.c (block_starting_point_at): Update.
4459
4460 2014-06-18 Tom Tromey <tromey@redhat.com>
4461
4462 * completer.c (complete_line): Make "line_buffer" const.
4463 * completer.h (complete_line): Update.
4464
4465 2014-06-18 Tom Tromey <tromey@redhat.com>
4466
4467 * symtab.c (add_macro_name): Remove unneeded cast.
4468
4469 2014-06-18 Tom Tromey <tromey@redhat.com>
4470
4471 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4472 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4473
4474 2014-06-18 Tom Tromey <tromey@redhat.com>
4475
4476 * probe.c (info_probes_for_ops): Make "arg" const.
4477 * probe.h (info_probes_for_ops): Update.
4478
4479 2014-06-18 Tom Tromey <tromey@redhat.com>
4480
4481 * varobj.c (varobj_create): Update.
4482 * valops.c (value_of_this): Update.
4483 * tracepoint.c (add_local_symbols, scope_info): Update.
4484 * symtab.h (struct general_symbol_info) <block>: Now const.
4485 * symtab.c (skip_prologue_sal)
4486 (default_make_symbol_completion_list_break_on)
4487 (skip_prologue_using_sal): Update.
4488 * stack.h (iterate_over_block_locals)
4489 (iterate_over_block_local_vars): Update.
4490 * stack.c (print_frame_args): Update.
4491 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4492 parameter const.
4493 (get_selected_block): Make return type const.
4494 * python/py-frame.c (frapy_block): Update.
4495 * python/py-block.c (gdbpy_block_for_pc): Update.
4496 * p-exp.y (%union) <bval>: Now const.
4497 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4498 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4499 * m2-exp.y (%union) <bval>: Now const.
4500 * linespec.c (get_current_search_block): Make return type const.
4501 (create_sals_line_offset, find_label_symbols): Update.
4502 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4503 Update.
4504 (block_starting_point_at): Make "block" const.
4505 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4506 (check_exception_resume): Update.
4507 * guile/scm-frame.c (gdbscm_frame_block): Update.
4508 * guile/scm-block.c (gdbscm_lookup_block): Update.
4509 * frame.h (get_frame_block): Update.
4510 (get_selected_block): Make return type const.
4511 * frame.c (frame_id_inner): Update.
4512 * f-valprint.c (info_common_command_for_block)
4513 (info_common_command): Update.
4514 * dwarf2loc.c (dwarf2_find_location_expression)
4515 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4516 (locexpr_describe_location_piece): Update.
4517 * c-exp.y (%union) <bval>: Now const.
4518 * breakpoint.c (resolve_sal_pc): Update.
4519 * blockframe.c (get_frame_block):Make return type const.
4520 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4521 (block_innermost_frame): Update.
4522 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4523 (block_for_pc, block_for_pc_sect): Update.
4524 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4525 'pblock' const.
4526 (block_for_pc_sect, block_for_pc): Make return type const.
4527 * ax-gdb.c (gen_expr): Update.
4528 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4529 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4530 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4531 (ada_read_var_value): Update.
4532 * ada-exp.y (struct name_info) <block>: Now const.
4533 (%union): Likewise.
4534 (block_lookup): Constify.
4535
4536 2014-06-18 Gary Benson <gbenson@redhat.com>
4537
4538 * nat/i386-dregs.h: New file.
4539 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4540 * i386-nat.h (i386-dregs.h): New include.
4541 (DR_FIRSTADDR): Now in i386-dregs.h.
4542 (DR_LASTADDR): Likewise.
4543 (DR_NADDR): Likewise.
4544 (DR_STATUS): Likewise.
4545 (DR_CONTROL): Likewise.
4546 (i386_debug_reg_state): Likewise.
4547 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4548
4549 2014-06-18 Don Breazeal <donb@codesourcery.com>
4550
4551 * breakpoint.c (set_longjmp_breakpoint): Call
4552 momentary_breakpoint_from_master with additional argument.
4553 (set_longjmp_breakpoint_for_call_dummy): Call
4554 momentary_breakpoint_from_master with additional argument.
4555 (set_std_terminate_breakpoint): Call
4556 momentary_breakpoint_from_master with additional argument.
4557 (momentary_breakpoint_from_master): Add argument to function
4558 definition and use it to initialize structure member flag.
4559 (clone_momentary_breakpoint): Call
4560 momentary_breakpoint_from_master with additional argument.
4561 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4562 member flags set in momentary_breakpoint_from_master.
4563
4564 2014-06-18 Gary Benson <gbenson@redhat.com>
4565
4566 * i386-nat.c (i386_show_dr): Renamed to
4567 i386_dr_show and made nonstatic. All uses updated.
4568 (i386_length_and_rw_bits): Renamed to
4569 i386_dr_length_and_rw_bits and made nonstatic.
4570 All uses updated.
4571 (i386_insert_aligned_watchpoint): Renamed to
4572 i386_dr_insert_aligned_watchpoint and made nonstatic.
4573 All uses updated.
4574 (i386_remove_aligned_watchpoint): Renamed to
4575 i386_dr_remove_aligned_watchpoint and made nonstatic.
4576 All uses updated.
4577 (i386_update_inferior_debug_regs): Renamed to
4578 i386_dr_update_inferior_debug_regs and made nonstatic.
4579 All uses updated.
4580
4581 2014-06-18 Gary Benson <gbenson@redhat.com>
4582
4583 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4584 (i386_dr_low_can_set_control): Likewise.
4585 (i386_dr_low_set_addr): Likewise.
4586 (i386_dr_low_set_control): Likewise.
4587 (i386_dr_low_get_addr): Likewise.
4588 (i386_dr_low_get_status): Likewise.
4589 (i386_dr_low_get_control): Likewise.
4590 (i386_insert_aligned_watchpoint): Use new macros.
4591 (i386_update_inferior_debug_regs): Likewise.
4592 (i386_stopped_data_address): Likewise.
4593
4594 2014-06-18 Gary Benson <gbenson@redhat.com>
4595
4596 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4597 New parameter. All uses updated.
4598
4599 2014-06-18 Gary Benson <gbenson@redhat.com>
4600
4601 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4602 All uses updated.
4603
4604 2014-06-18 Gary Benson <gbenson@redhat.com>
4605
4606 * i386-nat.c (debug_printf): New macro.
4607 (i386_get_debug_register_length): Likewise.
4608 (TARGET_HAS_DR_LEN_8): Use above macro.
4609 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4610 and printf_unfiltered. Use phex to format values.
4611
4612 2014-06-18 Gary Benson <gbenson@redhat.com>
4613
4614 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4615 Make const.
4616
4617 2014-06-18 Gary Benson <gbenson@redhat.com>
4618
4619 * i386-nat.c: Comment changes.
4620
4621 2014-06-18 Gary Benson <gbenson@redhat.com>
4622
4623 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4624
4625 2014-06-18 Gary Benson <gbenson@redhat.com>
4626
4627 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4628 (i386_insert_aligned_watchpoint): Likewise.
4629 (i386_remove_aligned_watchpoint): Likewise.
4630 (i386_handle_nonaligned_watchpoint): Likewise.
4631
4632 2014-06-18 Gary Benson <gbenson@redhat.com>
4633
4634 * i386-nat.c: Whitespace changes.
4635
4636 2014-06-17 Samuel Bronson <naesten@gmail.com>
4637
4638 * MAINTAINERS: Update Roland McGrath's email address.
4639 Thanks to Sergio Durigan Junior for pointing out that he left
4640 Red Hat a while ago, and giving me a current address.
4641
4642 2014-06-17 Tom Tromey <tromey@redhat.com>
4643
4644 * utils.h (savestring): Remove declaration.
4645
4646 2014-06-17 Tom Tromey <tromey@redhat.com>
4647
4648 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4649
4650 2014-06-16 Keith Seitz <keiths@redhat.com>
4651
4652 PR mi/15863
4653 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4654 to update the varobj if inferior_ptid is null_ptid.
4655
4656 2014-06-16 Tom Tromey <tromey@redhat.com>
4657
4658 * target.h (struct target_ops) <to_info_proc>: Make parameter
4659 const.
4660 (target_info_proc): Update.
4661 * target.c (target_info_proc): Make "args" const.
4662 * procfs.c (procfs_info_proc): Update.
4663 * linux-tdep.c (linux_info_proc): Update.
4664 (linux_core_info_proc_mappings): Make "args" const.
4665 (linux_core_info_proc): Update.
4666 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4667 * gdbarch.c: Rebuild.
4668 * gdbarch.h: Rebuild.
4669 * corelow.c (core_info_proc): Update.
4670
4671 2014-06-16 Tom Tromey <tromey@redhat.com>
4672
4673 * target.h (struct target_ops) <to_disconnect>: Make parameter
4674 const.
4675 (target_disconnect): Update.
4676 * target.c (target_disconnect): Make "args" const.
4677 * target-delegates.c: Rebuild.
4678 * remote.c (remote_disconnect): Update.
4679 * record.h (record_disconnect): Update.
4680 * record.c (record_disconnect): Update.
4681 * inf-child.c (inf_child_disconnect): Update.
4682
4683 2014-06-16 Tom Tromey <tromey@redhat.com>
4684
4685 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4686 * target.c (debug_to_rcmd, default_rcmd): Update.
4687 * target-delegates.c: Rebuild.
4688 * remote.c (remote_rcmd): Update.
4689 * monitor.c (monitor_rcmd): Update.
4690
4691 2014-06-16 Pedro Alves <palves@redhat.com>
4692
4693 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4694 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4695 have OBJF_SHARED set.
4696 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4697 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4698 instead of OBJF_USERLOADED.
4699 * objfiles.h (OBJF_SHARED): Update comment.
4700 (userloaded_objfile_contains_address_p): Rename to ...
4701 (shared_objfile_contains_address_p): ... this, and update
4702 comments.
4703 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4704 new objfile.
4705 (remove_symbol_file_command): Skip objfiles that don't have
4706 OBJF_SHARED set.
4707
4708 2014-06-16 Tom Tromey <tromey@redhat.com>
4709
4710 * minsyms.h (prim_record_minimal_symbol)
4711 (prim_record_minimal_symbol_and_info): Update comments.
4712
4713 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4714
4715 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4716 or --without-guile, according to how GDB was built.
4717
4718 2014-06-13 Tom Tromey <tromey@redhat.com>
4719
4720 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4721 to help_list.
4722 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4723 to help_list.
4724 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4725 help_list.
4726 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4727 help_list.Pass all_commands, not -1, to help_list.
4728 * cli/cli-dump.c (dump_command, append_command)
4729 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4730 (binary_dump_command, binary_append_command): Pass all_commands,
4731 not -1, to help_list.
4732 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4733 -1, to help_list.
4734 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4735 -1, to help_list.
4736 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4737 help_list.
4738 * top.c (set_history): Pass all_commands, not -1, to help_list.
4739 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4740 all_commands, not -1, to help_list.
4741 * symfile.c (overlay_command): Pass all_commands, not -1, to
4742 help_list.
4743 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4744 help_list.
4745 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4746 help_list.
4747 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4748 -1, to help_list.
4749 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4750 not -1, to help_list.
4751 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4752 not -1, to help_list.
4753 * maint.c (maintenance_command, maintenance_info_command)
4754 (maintenance_print_command, maintenance_set_cmd): Pass
4755 all_commands, not -1, to help_list.
4756 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4757 help_list.
4758 * language.c (set_check): Pass all_commands, not -1, to help_list.
4759 * infcmd.c (unset_command): Pass all_commands, not -1, to
4760 help_list.
4761 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4762 help_list.
4763 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4764 help_list.
4765 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4766 help_list.
4767 * breakpoint.c (save_command): Pass all_commands, not -1, to
4768 help_list.
4769 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4770 all_commands, not -1, to help_list.
4771
4772 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4773
4774 * regcache.c (struct register_to_invalidate): New structure.
4775 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4776 functions.
4777 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4778
4779 2014-06-12 Yao Qi <yao@codesourcery.com>
4780
4781 * varobj.c (varobj_get_num_children): Call
4782 varobj_is_dynamic_p.
4783 (varobj_list_children): Likewise.
4784 (varobj_update): Likewise. Update comments.
4785
4786 2014-06-12 Yao Qi <yao@codesourcery.com>
4787
4788 * varobj.c (varobj_pretty_printed_p): Rename to ...
4789 (varobj_is_dynamic_p): ... this. New function.
4790 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4791 (varobj_is_dynamic_p): Declare.
4792 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4793 (mi_print_value_p, varobj_update_one): Likewise.
4794
4795 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4796 Yao Qi <yao@codesourcery.com>
4797
4798 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4799 (varobj_get_iterator): Wrap up code for pretty-printer by
4800 "#if HAVE_PYTHON" and "#endif".
4801 (update_dynamic_varobj_children): Likewise.
4802
4803 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4804 Yao Qi <yao@codesourcery.com>
4805
4806 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4807 gdb_python_initialized is false. Move some code from varobj.c.
4808 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4809 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4810 (struct varobj_item): Moved to varobj-iter.h".
4811 (varobj_clear_saved_item): New function.
4812 (update_dynamic_varobj_children): Move python-related code to
4813 py-varobj.c.
4814 (free_variable): Call varobj_clear_saved_item and
4815 varobj_iter_delete.
4816
4817 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4818 Yao Qi <yao@codesourcery.com>
4819
4820 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4821 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4822 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4823 (py-varobj.o): New rule.
4824 * python/py-varobj.c: New file.
4825 * python/python-internal.h (py_varobj_get_iterator): Declare.
4826 * varobj-iter.h: New file.
4827 * varobj.c: Include "varobj-iter.h"
4828 (struct varobj) <child_iter>: Change its type from "PyObject *"
4829 to "struct varobj_iter *".
4830 <saved_item>: Likewise.
4831 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4832 [HAVE_PYTHON] (varobj_get_iterator): New function.
4833 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4834 python-specific code to python/py-varobj.c.
4835 (install_visualizer): Call varobj_iter_delete instead of
4836 Py_XDECREF.
4837 * varobj.h (varobj_ensure_python_env): Declare.
4838
4839 2014-06-12 Yao Qi <yao@codesourcery.com>
4840
4841 * varobj.c (struct varobj_item): New structure.
4842 (create_child_with_value): Update declaration.
4843 (varobj_add_child): Replace arguments 'name' and 'value' with
4844 'item'. All callers updated.
4845 (install_dynamic_child): Likewise.
4846 (update_dynamic_varobj_children): Likewise.
4847 (varobj_add_child): Likewise.
4848 (create_child_with_value): Likewise.
4849
4850 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4851
4852 * NEWS: Create a new section for the next release branch.
4853 Rename the section of the current branch, now that it has
4854 been cut.
4855
4856 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4857
4858 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4859 * version.in: Bump version to 7.8.50.DATE-cvs.
4860
4861 2014-06-11 Pedro Alves <palves@redhat.com>
4862
4863 PR remote/17028
4864 * ser-mingw.c (net_windows_socket_check_pending): New function.
4865 (net_windows_select_thread): Ignore spurious wakeups. Use
4866 net_windows_socket_check_pending.
4867 (net_windows_wait_handle): Check for pending events with
4868 ioctlsocket, through net_windows_socket_check_pending, instead of
4869 checking the socket's event.
4870
4871 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4872
4873 * python/python-internal.h (gdb_PyObject_GetAttrString)
4874 (gdb_PyObject_HasAttrString): New inline function definitions.
4875 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4876 char * of the second argument to PyObject_GetAttrString.
4877
4878 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4879
4880 * serial.c (serial_write): Fix index of character to be printed
4881 in call to serial_logchar when serial debug traces are enabled.
4882
4883 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4884
4885 * gdbtypes (resolve_dynamic_range): Add function description.
4886
4887 2014-06-09 Pedro Alves <palves@redhat.com>
4888
4889 * linux-nat.c (linux_child_follow_fork): Initialize status with
4890 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4891 inner block. Only pass the signal to PTRACE_DETACH if in pass
4892 state.
4893
4894 2014-06-09 Gary Benson <gbenson@redhat.com>
4895
4896 * common/signals.c (gdb_signal_from_host): Reorder to separate
4897 the always-available ANSI-standard signals from the signals that
4898 require checking.
4899 (do_gdb_signal_to_host): Likewise.
4900 * proc-events.c (signal_table): Likewise.
4901
4902 2014-06-08 Hui Zhu <hui@codesourcery.com>
4903
4904 * common/linux-ptrace.c (linux_disable_event_reporting): New
4905 function.
4906 * common/linux-ptrace.h (linux_disable_event_reporting): New
4907 declaration.
4908 * linux-nat.c (linux_child_follow_fork): Do a single step before
4909 detach.
4910
4911 2014-06-07 Keith Seitz <keiths@redhat.com>
4912
4913 Revert:
4914 PR c++/16253
4915 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4916 from symbol_matches_domain in symtab.c. All local callers
4917 of symbol_matches_domain updated.
4918 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4919 search STRUCT_DOMAIN.
4920 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4921 independently. standard_lookup will do that automatically.
4922 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4923 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4924 (cp_lookup_symbol_in_namespace): Likewise.
4925 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4926 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4927 may return a STRUCT_DOMAIN match.
4928 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4929 * cp-support.c: Include language.h.
4930 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4931 VAR_DOMAIN.
4932 * psymtab.c (match_partial_symbol): Compare the requested
4933 domain with the symbol's domain directly.
4934 (lookup_partial_symbol): Likewise.
4935 * symtab.c (lookup_symbol_in_language): Explain when/why
4936 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4937 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4938 appropriate languages.
4939 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4940 and moved to ada-lang.c
4941 (lookup_block_symbol): Explain that this function only returns
4942 symbol matching the requested DOMAIN.
4943 Compare the requested domain with the symbol's domain directly.
4944 (iterate_over_symbols): Compare the requested domain with the
4945 symbol's domain directly.
4946 * symtab.h (symbol_matches_domain): Remove.
4947
4948 2014-06-06 Doug Evans <xdje42@gmail.com>
4949
4950 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4951 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4952 (gdbscm_guile_version_is_at_least): Declare.
4953 (gdbscm_scm_string_to_int): Declare.
4954 * guile/guile.c (gdbscm_guile_major_version): New global.
4955 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4956 (guile_datadir): New static global.
4957 (gdbscm_guile_data_directory): New function.
4958 (initialize_scheme_side): Update.
4959 (misc_guile_functions): Add guile-data-directory.
4960 (initialize_gdb_module): Fetch guile version number.
4961 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4962 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4963 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4964 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4965 comments.
4966 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4967 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4968 * guile/scm-value.c (gdbscm_value_to_string): Only call
4969 scm_port_conversion_strategy if Guile version >= 2.0.6.
4970
4971 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4972
4973 * main.c (print_gdb_help): Add -q and --silent.
4974
4975 2014-06-06 Gary Benson <gbenson@redhat.com>
4976
4977 * common/signals.c: Remove preprocessor conditionals for
4978 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4979 SIGSEGV and SIGTERM.
4980 * proc-events.c: Likewise.
4981
4982 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4983
4984 * symfile.c (symfile_free_objfile): Remove restriction to
4985 OBJF_USERLOADED.
4986 * symfile-mem.c (symbol_file_add_from_memory): Call
4987 add_target_sections_of_objfile.
4988
4989 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4990
4991 * guile/scm-value.c (gdbscm_history_append_x): Use
4992 'vlscm_get_value_smob_arg_unsafe' instead of
4993 'vlscm_scm_to_value'.
4994
4995 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4996
4997 PR mi/15806
4998 * utils.c (printchar): Don't escape at all if quoter is NUL.
4999 Update function documentation to clarify effect of parameter
5000 QUOTER.
5001 * remote.c (escape_buffer): Pass '\\' as the quoter to
5002 fputstrn_unfiltered.
5003 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5004 generate the output.
5005 (mi_solib_unloaded): Same.
5006
5007 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5008
5009 * development.sh: Delete.
5010 * Makefile.in (config.status): Adjust dependency on development.sh.
5011 * configure.ac: Adjust development.sh source call.
5012 * configure: Regenerate.
5013
5014 2014-06-04 Doug Evans <xdje42@gmail.com>
5015
5016 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5017 is_scheme_bkpt, spec.
5018 (bpscm_make_breakpoint_smob): Initialize new members.
5019 (gdbscm_create_breakpoint_x): Split into two ...
5020 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5021 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5022 (scheme_function breakpoint_functions): Update.
5023 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5024 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5025 register-breakpoint!.
5026
5027 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5028
5029 PR server/17023
5030 * mem-break.c (z_type_supported): Return zero if
5031 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5032
5033 2014-06-04 Tom Tromey <tromey@redhat.com>
5034
5035 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5036 value_from_contents_and_address_unresolved.
5037 (ada_template_to_fixed_record_type_1): Likewise.
5038 (ada_which_variant_applies): Likewise.
5039 * value.h (value_from_contents_and_address_unresolved): Declare.
5040 * value.c (value_from_contents_and_address_unresolved): New
5041 function.
5042 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5043 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5044 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5045
5046 2014-06-04 Tom Tromey <tromey@redhat.com>
5047
5048 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5049
5050 2014-06-04 Tom Tromey <tromey@redhat.com>
5051
5052 * procfs.c (procfs_attach): Make "args" const.
5053 * windows-nat.c (windows_attach): Make "args" const.
5054 * nto-procfs.c (procfs_attach): Make "args" const.
5055 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5056 * go32-nat.c (go32_attach): Make "args" const.
5057 * gnu-nat.c (gnu_attach): Make "args" const.
5058 * darwin-nat.c (darwin_attach): Make "args" const.
5059 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5060 * linux-nat.c (linux_nat_attach): Make "args" const.
5061 * remote.c (extended_remote_attach_1, extended_remote_attach):
5062 Make "args" const.
5063 * target.h (struct target_ops) <to_attach>: Make "args" const.
5064 (find_default_attach): Likewise.
5065 * utils.c (parse_pid_to_attach): Make "args" const.
5066 * utils.h (parse_pid_to_attach): Update.
5067
5068 2014-06-04 Tom Tromey <tromey@redhat.com>
5069
5070 * target-delegates.c: Rebuild.
5071 * target.c (default_thread_address_space): New function.
5072 (target_thread_address_space): Simplify.
5073 * target.h (struct target_ops) <to_thread_address_space>: Add
5074 TARGET_DEFAULT_FUNC.
5075
5076 2014-06-04 Doug Evans <xdje42@gmail.com>
5077
5078 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5079
5080 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5081
5082 * record-btrace.c: Include event-loop.h and inf-loop.h.
5083 (record_btrace_resume_exec_dir)
5084 (record_btrace_async_inferior_event_handler)
5085 (record_btrace_handle_async_inferior_event): New.
5086 (record_btrace_open): Create async event handler.
5087 (record_btrace_close): Delete async event handler.
5088 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5089 Mark async event handler.
5090 (record_btrace_execution_direction): New.
5091 (init_record_btrace_ops): Initialize to_execution_direction.
5092
5093 2014-06-03 Doug Evans <xdje42@gmail.com>
5094
5095 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5096 (gdbscm_make_parameter): Ditto.
5097
5098 2014-06-03 Doug Evans <dje@google.com>
5099
5100 * exec.c (exec_close_1): Call clear_section_table instead of
5101 resize_section_table.
5102 (clear_section_table): New function.
5103 (resize_section_table): Make static. Rename arg num_added to
5104 adjustment.
5105 * exec.h (clear_section_table): Declare.
5106 (resize_section_table): Delete.
5107 * progspace.c (release_program_space): Call clear_section_table
5108 instead of resize_section_table.
5109
5110 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5111
5112 * NEWS (Python Scripting): Add entry about the new xmethods
5113 feature.
5114
5115 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5116
5117 * python/py-xmethods.c: New file.
5118 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5119 (objfpy_dealloc): XDECREF on the new xmethods field.
5120 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5121 field.
5122 (objfpy_get_xmethods): New function.
5123 (objfile_getset): New entry 'xmethods'.
5124 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5125 (pspy_dealloc): XDECREF on the new xmethods field.
5126 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5127 field.
5128 (pspy_get_xmethods): New function.
5129 (pspace_getset): New entry 'xmethods'.
5130 * python/python-internal.h: Add declarations for new functions.
5131 * python/python.c (_initialize_python): Invoke
5132 gdbpy_initialize_xmethods.
5133 * python/lib/gdb/__init__.py (xmethods): New
5134 attribute.
5135 * python/lib/gdb/xmethod.py: New file.
5136 * python/lib/gdb/command/xmethods.py: New file.
5137
5138 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5139
5140 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5141 best match method returned by find_overload_match is an xmethod.
5142 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5143 the best matching operator returned by find_overload_match is an
5144 xmethod.
5145 * valops.c: #include "extension.h".
5146 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5147 Return void. The list of matching source methods is returned in
5148 "fn_list" and a vector of matching debug method workers is
5149 returned in "xm_worker_vec". Update all callers.
5150 (value_find_oload_method_list): Likewise.
5151 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5152 non-NULL, then the index of the best matching method in this
5153 vector is returned. Update all callers.
5154 (find_overload_match): Include xmethods while performing overload
5155 resolution.
5156
5157 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5158
5159 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5160 * extension-priv.h (struct extension_language_ops): Add the
5161 xmethod interface.
5162 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5163 get_matching_xmethod_workers, get_xmethod_argtypes,
5164 invoke_xmethod, free_xmethod_worker,
5165 free_xmethod_worker_vec): New functions.
5166 * extension.h: #include "common/vec.h".
5167 New function declarations.
5168 (struct xmethod_worker): New struct.
5169 (VEC (xmethod_worker_ptr)): New vector type.
5170 (xmethod_worker_ptr): New typedef.
5171 (xmethod_worker_vec): Likewise.
5172 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5173 builtin_type.
5174 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5175 (struct builtin_type): New field "xmethod".
5176 * valarith.c (value_ptradd): Assert that the value argument is not
5177 lval_xcallable.
5178 * valops.c (value_must_coerce_to_target): Return 0 for
5179 lval_xcallable values.
5180 * value.c (struct value): New field XM_WORKER in the field
5181 LOCATION.
5182 (value_address, value_raw_address): Return 0 for lval_xcallable
5183 values.
5184 (set_value_address): Assert that the value is not an
5185 lval_xcallable.
5186 (value_free): Free the associated xmethod worker when freeing
5187 lval_xcallable values.
5188 (set_value_component_location): Assert that the WHOLE value is not
5189 lval_xcallable.
5190 (value_of_xmethod, call_xmethod): New functions.
5191 * value.h: Declare "struct xmethod_worker".
5192 Declare new functions value_of_xmethod, call_xmethod.
5193
5194 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5195 Pedro Alves <palves@redhat.com>
5196
5197 PR breakpoints/17000
5198 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5199 New function, extracted from software_breakpoint_inserted_here_p.
5200 (software_breakpoint_inserted_here_p): Replace factored out code
5201 by call to find_non_raw_software_breakpoint_inserted_here.
5202 (bp_target_info_copy_insertion_state): New function.
5203 (bkpt_insert_location): Handle the case of a single-step
5204 breakpoint already inserted at the same address.
5205 (bkpt_remove_location): Handle the case of a single-step
5206 breakpoint still inserted at the same address.
5207 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5208 breakpoint already inserted at the same address.
5209 (deprecated_remove_raw_breakpoint): Handle the case of a
5210 non-raw breakpoint still inserted at the same address.
5211 (find_single_step_breakpoint): New function, extracted from
5212 single_step_breakpoint_inserted_here_p.
5213 (find_single_step_breakpoint): New function,
5214 factored out from single_step_breakpoint_inserted_here_p.
5215 (single_step_breakpoint_inserted_here_p): Reimplement.
5216
5217 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5218
5219 Pushed by Joel Brobecker <brobecker@adacore.com>
5220 * source.c (show_substitute_path_command): Fix display of matching
5221 substitution rules.
5222
5223 2014-06-03 Gary Benson <gbenson@redhat.com>
5224
5225 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5226
5227 2014-06-02 Doug Evans <xdje42@gmail.com>
5228
5229 Add parameter support for Guile.
5230 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5231 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5232 (scm-param.o): New rule.
5233 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5234 (gdbscm_misc_error): Declare.
5235 (gdbscm_canonicalize_command_name): Declare.
5236 (gdbscm_scm_to_host_string): Declare.
5237 (gdbscm_scm_from_host_string): Declare.
5238 (gdbscm_initialize_parameters): Declare.
5239 * guile/guile.c (initialize_gdb_module): Call
5240 gdbscm_initialize_parameters.
5241 * guile/lib/gdb.scm: Export parameter symbols.
5242 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5243 cmdscm_canonicalize_name and made public. All callers updated.
5244 * guile/scm-exception.c (gdbscm_misc_error): New function.
5245 * guile/scm-param.c: New file.
5246 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5247 (gdbscm_scm_to_host_string): New function.
5248 (gdbscm_scm_from_host_string): New function.
5249 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5250
5251 2014-06-02 Doug Evans <xdje42@gmail.com>
5252
5253 Add command support for Guile.
5254 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5255 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5256 (scm-cmd.o): New rule.
5257 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5258 (gdbscm_user_error_p): Declare.
5259 (gdbscm_parse_command_name): Declare.
5260 (gdbscm_valid_command_class_p): Declare.
5261 (gdbscm_initialize_commands): Declare.
5262 * guile/guile.c (initialize_gdb_module): Call
5263 gdbscm_initialize_commands.
5264 * guile/lib/gdb.scm: Export command symbols.
5265 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5266 (throw-user-error): New function.
5267 * guile/scm-cmd.c: New file.
5268 * guile/scm-exception.c (user_error_symbol): New static global.
5269 (gdbscm_user_error_p): New function.
5270 (gdbscm_initialize_exceptions): Set user_error_symbol.
5271 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5272
5273 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5274
5275 * top.c (command_loop): Handle comments here...
5276 (command_line_input): ... not here.
5277
5278 2014-06-02 Doug Evans <xdje42@gmail.com>
5279
5280 Add progspace support for Guile.
5281 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5282 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5283 (scm-progspace.o): New rule.
5284 * guile/guile-internal.h (pspace_smob): New typedef.
5285 (psscm_pspace_smob_pretty_printers): Declare.
5286 (psscm_pspace_smob_from_pspace): Declare.
5287 (psscm_scm_from_pspace): Declare.
5288 * guile/guile.c (initialize_gdb_module): Call
5289 gdbscm_initialize_pspaces.
5290 * guile/lib/gdb.scm: Export progspace symbols.
5291 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5292 support.
5293 (append-pretty-printer!): Ditto.
5294 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5295 Implement.
5296 * guile/scm-progspace.c: New file.
5297
5298 2014-06-03 Alan Modra <amodra@gmail.com>
5299
5300 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5301 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5302
5303 2014-06-02 Doug Evans <dje@google.com>
5304
5305 Add support for skeletonless type units.
5306 * dwarf2read.c (struct dwarf2_per_objfile): New member
5307 n_allocated_type_units.
5308 (struct dwarf2_per_objfile) <tu_stats>: New member
5309 nr_all_type_units_reallocs.
5310 (create_signatured_type_table_from_index): Initialize
5311 n_allocated_type_units
5312 (create_all_type_units): Ditto.
5313 (add_type_unit): Move up in file. New arg slot.
5314 All callers updated. Increase space for all_type_units more
5315 efficiently.
5316 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5317 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5318 (lookup_dwp_signatured_type): Ditto.
5319 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5320 All callers updated.
5321 (build_type_psymtabs_1): Leave type_unit_groups as
5322 NULL if no TUs present.
5323 (print_tu_stats): New function.
5324 (process_skeletonless_type_unit): New function.
5325 (process_dwo_file_for_skeletonless_type_units): New
5326 function.
5327 (process_skeletonless_type_units): New function.
5328 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5329 Call print tu_stats if debugging enabled.
5330
5331 2014-06-02 Pedro Alves <palves@redhat.com>
5332
5333 * breakpoint.c (build_target_command_list): Don't build a command
5334 list if we have any duplicate location that isn't a dprintf.
5335
5336 2014-06-02 Pedro Alves <palves@redhat.com>
5337
5338 * breakpoint.c (dprintf_breakpoint_hit): New function.
5339 (initialize_breakpoint_ops): Install it as dprintf's
5340 breakpoint_hit method.
5341
5342 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5343
5344 * source.c (substitute_path_rule_matches): Simplify using
5345 filename_ncmp instead of FILENAME_CMP.
5346
5347 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5348
5349 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5350
5351 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5352
5353 * configure.ac: When Guile is available, check for the
5354 availability of 'scm_new_smob'.
5355 * configure, config.h.in: Regenerate.
5356 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5357 function.
5358
5359 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5360
5361 * frame.c (struct frame_info): Add stop_string field.
5362 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5363 (get_prev_frame_always): Old content moved into
5364 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5365 TRY_CATCH, handle MEMORY_ERROR exceptions.
5366 (frame_stop_reason_string): New function definition.
5367 * frame.h (unwind_stop_reason_to_string): Extend comment to
5368 mention frame_stop_reason_string.
5369 (frame_stop_reason_string): New function declaration.
5370 * stack.c (frame_info): Switch to frame_stop_reason_string.
5371 (backtrace_command_1): Switch to frame_stop_reason_string.
5372 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5373 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5374 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5375
5376 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5377
5378 * frame.c (frame_stop_reason_string): Rename to ...
5379 (unwind_stop_reason_to_string): this.
5380 * frame.h (frame_stop_reason_string): Rename to ...
5381 (unwind_stop_reason_to_string): this.
5382 * stack.c (frame_info): Update call to frame_stop_reason_string.
5383 (backtrace_command_1): Likewise.
5384 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5385 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5386
5387 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5388
5389 * frame.c (remove_prev_frame): New function.
5390 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5391 remove_prev_frame.
5392
5393 2014-05-29 Pedro Alves <palves@redhat.com>
5394
5395 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5396 and make it const. When a single-step decays to a continue,
5397 clear 'step', not 'hw_step'. Pass whether the caller wanted
5398 to step to user_visible_resume_ptid, not what we ask the
5399 target to do.
5400
5401 2014-05-29 Pedro Alves <palves@redhat.com>
5402
5403 * infrun.c (process_event_stop_test, handle_step_into_function)
5404 (handle_step_into_function_backward): Adjust.
5405 Don't set the even thread's stop_step and call stop_waiting before
5406 calling end_stepping_range. Instead do that ...
5407 (end_stepping_range): ... here. Take an ecs pointer parameter.
5408
5409 2014-05-29 Pedro Alves <palves@redhat.com>
5410
5411 * infrun.c (stop_stepping): Rename to ...
5412 (stop_waiting): ... this.
5413 (proceed): Update comment.
5414 (process_event_stop_test, handle_inferior_event)
5415 (handle_signal_stop, handle_step_into_function)
5416 (handle_step_into_function_backward): Update.
5417
5418 2014-05-29 Pedro Alves <palves@redhat.com>
5419
5420 * infcall.c (run_inferior_call): Don't check whether the current
5421 thread is running after the proceed call.
5422
5423 2014-05-29 Pedro Alves <palves@redhat.com>
5424 Tom Tromey <tromey@redhat.com>
5425
5426 * NEWS: Mention "maint set target-async", "set mi-async", and that
5427 background execution commands are now always available.
5428 * target.h (target_async_permitted): Update comment.
5429 * target.c (target_async_permitted, target_async_permitted_1):
5430 Default to 1.
5431 (set_target_async_command): Rename to ...
5432 (maint_set_target_async_command): ... this.
5433 (show_target_async_command): Rename to ...
5434 (maint_show_target_async_command): ... this.
5435 (_initialize_target): Adjust.
5436 * infcmd.c (prepare_execution_command): Make extern.
5437 * inferior.h (prepare_execution_command): Declare.
5438 * infrun.c (set_observer_mode): Leave target async alone.
5439 * mi/mi-interp.c (mi_interpreter_init): Install
5440 mi_on_sync_execution_done as sync_execution_done observer.
5441 (mi_on_sync_execution_done): New function.
5442 (mi_execute_command_input_handler): Don't print the prompt if we
5443 just started a synchronous command with an async target.
5444 (mi_on_resume): Check sync_execution before printing prompt.
5445 * mi/mi-main.h (mi_async_p): Declare.
5446 * mi/mi-main.c: Include gdbcmd.h.
5447 (mi_async_p): New function.
5448 (mi_async, mi_async_1): New globals.
5449 (set_mi_async_command, show_mi_async_command, mi_async): New
5450 functions.
5451 (exec_continue): Call prepare_execution_command.
5452 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5453 (mi_execute_async_cli_command): Use mi_async_p.
5454 (_initialize_mi_main): Install "set mi-async". Make
5455 "target-async" a deprecated alias.
5456
5457 2014-05-29 Pedro Alves <palves@redhat.com>
5458
5459 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5460 (_initialize_cli_interp): Adjust.
5461 * event-loop.c: Include "observer.h".
5462 (start_event_loop): Notify 'command_error' observers instead of
5463 calling display_gdb_prompt. Remove FIXME comment.
5464 * event-top.c (display_gdb_prompt): Remove call into the
5465 interpreters.
5466 * inf-loop.c: Include "observer.h".
5467 (inferior_event_handler): Notify 'command_error' observers instead
5468 of calling display_gdb_prompt.
5469 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5470 observers instead of calling display_gdb_prompt.
5471 * interps.c (interp_set): Don't call display_gdb_prompt.
5472 (current_interp_display_prompt_p): Delete.
5473 * interps.h (interp_prompt_p): Delete declaration.
5474 (interp_prompt_p_ftype): Delete.
5475 (struct interp_procs) <prompt_proc_p>: Delete field.
5476 (current_interp_display_prompt_p): Delete declaration.
5477 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5478 (_initialize_mi_interp): Adjust.
5479 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5480 'command_error' observers.
5481 (tui_on_sync_execution_done, tui_on_command_error): New
5482 functions.
5483 (tui_display_prompt_p): Delete.
5484 (_initialize_tui_interp): Adjust.
5485
5486 2014-05-29 Pedro Alves <palves@redhat.com>
5487
5488 PR gdb/13860
5489 * cli/cli-interp.c: Include infrun.h and observer.h.
5490 (cli_uiout, cli_interp): New globals.
5491 (cli_on_signal_received, cli_on_end_stepping_range)
5492 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5493 functions.
5494 (cli_interpreter_init): Install them as 'end_stepping_range',
5495 'signal_received' 'signal_exited', 'exited' and 'no_history'
5496 observers.
5497 (_initialize_cli_interp): Remove cli_interp local.
5498 * infrun.c (handle_inferior_event): Call the several stop reason
5499 observers instead of printing the stop reason directly.
5500 (end_stepping_range): New function.
5501 (print_end_stepping_range_reason, print_signal_exited_reason)
5502 (print_exited_reason, print_signal_received_reason)
5503 (print_no_history_reason): Make static, and add an uiout
5504 parameter. Print to that instead of to CURRENT_UIOUT.
5505 * infrun.h (print_end_stepping_range_reason)
5506 (print_signal_exited_reason, print_exited_reason)
5507 (print_signal_received_reason print_no_history_reason): New
5508 declarations.
5509 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5510 'mi_uiout'.
5511 <cli_uiout>: New field.
5512 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5513 uiout for CLI output. Install 'signal_received',
5514 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5515 observers.
5516 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5517 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5518 (mi_on_no_history): New functions.
5519 (ui_out_free_cleanup): Delete function.
5520 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5521 instead use the one already stored in the MI interpreter data.
5522 (mi_ui_out): Adjust.
5523 * tui/tui-interp.c: Include infrun.h and observer.h.
5524 (tui_interp): New global.
5525 (tui_on_signal_received, tui_on_end_stepping_range)
5526 (tui_on_signal_exited, tui_on_exited)
5527 (tui_on_no_history): New functions.
5528 (tui_init): Install them as 'end_stepping_range',
5529 'signal_received' 'signal_exited', 'exited' and 'no_history'
5530 observers.
5531 (_initialize_tui_interp): Delete tui_interp local.
5532
5533 2014-05-29 Pedro Alves <palves@redhat.com>
5534
5535 PR gdb/15713
5536 * linux-nat.c (linux_nat_resume_callback): Rename the second
5537 parameter to 'except'. Skip LP if it points to EXCEPT.
5538 (linux_nat_resume): Don't mark the event lwp as not stopped
5539 before resuming sibling lwps. Instead ask
5540 linux_nat_resume_callback to skip the event lwp. Mark it as not
5541 stopped after actually resuming it.
5542 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5543 resuming it.
5544 (wait_lwp): Mark the lwp as stopped here.
5545 (stop_wait_callback): Mark the lwp as not stopped right after
5546 resuming it. Don't mark lwps as stopped here.
5547 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5548 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5549
5550 2014-05-29 Pedro Alves <palves@redhat.com>
5551
5552 PR PR15693
5553 * infrun.c (resume): Determine how much to resume depending on
5554 whether the caller wanted a step, not whether we can hardware step
5555 the target. Mark all threads that we intend to run as running,
5556 unless we're calling an inferior function.
5557 (normal_stop): If the thread is running an infcall, don't finish
5558 thread state.
5559 * target.c (target_resume): Don't mark threads as running here.
5560
5561 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5562
5563 * serial.c (_initialize_serial): Remove support for
5564 the "set remotebaud" and "show remotebaud" commands.
5565 * NEWS: Add entry documenting the removal of that command.
5566
5567 2014-05-28 Yao Qi <yao@codesourcery.com>
5568
5569 * charset.c: Fix typo in comments.
5570
5571 2014-05-27 Gary Benson <gbenson@redhat.com>
5572
5573 * utils.c (internal_vproblem): Prompt for a bug report.
5574
5575 2014-05-26 Andy Wingo <wingo@igalia.com>
5576
5577 * guile/scm-arch.c (arscm_mark_arch_smob):
5578 * guile/scm-block.c (bkscm_mark_block_smob)
5579 (bkscm_mark_block_syms_progress_smob):
5580 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5581 * guile/scm-exception.c (exscm_mark_exception_smob):
5582 * guile/scm-frame.c (frscm_mark_frame_smob):
5583 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5584 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5585 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5586 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5587 (ppscm_mark_pretty_printer_worker_smob):
5588 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5589 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5590 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5591 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5592 mark functions.
5593 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5594 function.
5595
5596 2014-05-26 Andy Wingo <wingo@igalia.com>
5597 Doug Evans <xdje42@gmail.com>
5598
5599 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5600 empty_base_class. All uses updated.
5601 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5602 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5603 Adapt all callers.
5604 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5605 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5606 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5607 (gdbscm_gsmob_has_property_p, add_property_name)
5608 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5609 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5610 (gdb-object-has-property?, gdb-object-properties): Remove.
5611 (gdb-object-kind): Renamed from gsmob-kind.
5612
5613 2014-05-26 Andy Wingo <wingo@igalia.com>
5614
5615 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5616 * configure: Regenerate.
5617
5618 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5619
5620 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5621
5622 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5623
5624 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5625 (replay_memory_access_read_only, replay_memory_access_read_write)
5626 (replay_memory_access_types, replay_memory_access)
5627 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5628 (cmd_set_record_btrace, cmd_show_record_btrace)
5629 (cmd_show_replay_memory_access): New.
5630 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5631 (record_btrace_remove_breakpoint): Replace
5632 record_btrace_allow_memory_access with replay_memory_access.
5633 (_initialize_record_btrace): Add commands.
5634 * NEWS: Announce it.
5635
5636 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5637
5638 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5639
5640 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5641
5642 * MAINTAINERS (Write After Approval): Move self back from
5643 paper trail.
5644
5645 2014-05-22 Pedro Alves <palves@redhat.com>
5646
5647 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5648 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5649 (disable_randomization, enum exec_direction_kind)
5650 (execution_direction, stop_registers, start_remote)
5651 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5652 (wait_for_inferior, normal_stop, get_last_target_status)
5653 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5654 (insert_step_resume_breakpoint_at_sal)
5655 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5656 (set_step_info, print_stop_event, signal_stop_state)
5657 (signal_print_state, signal_pass_state, signal_stop_update)
5658 (signal_print_update, signal_pass_update)
5659 (update_signals_program_target, clear_exit_convenience_vars)
5660 (displaced_step_dump_bytes, update_observer_mode)
5661 (signal_catch_update, gdb_signal_from_command): Move
5662 declarations ...
5663 * infrun.h: ... to this new file.
5664 * amd64-tdep.c: Include infrun.h.
5665 * annotate.c: Include infrun.h.
5666 * arch-utils.c: Include infrun.h.
5667 * arm-linux-tdep.c: Include infrun.h.
5668 * arm-tdep.c: Include infrun.h.
5669 * break-catch-sig.c: Include infrun.h.
5670 * breakpoint.c: Include infrun.h.
5671 * common/agent.c: Include infrun.h instead of inferior.h.
5672 * corelow.c: Include infrun.h.
5673 * event-top.c: Include infrun.h.
5674 * go32-nat.c: Include infrun.h.
5675 * i386-tdep.c: Include infrun.h.
5676 * inf-loop.c: Include infrun.h.
5677 * infcall.c: Include infrun.h.
5678 * infcmd.c: Include infrun.h.
5679 * infrun.c: Include infrun.h.
5680 * linux-fork.c: Include infrun.h.
5681 * linux-nat.c: Include infrun.h.
5682 * linux-thread-db.c: Include infrun.h.
5683 * monitor.c: Include infrun.h.
5684 * nto-tdep.c: Include infrun.h.
5685 * procfs.c: Include infrun.h.
5686 * record-btrace.c: Include infrun.h.
5687 * record-full.c: Include infrun.h.
5688 * remote-m32r-sdi.c: Include infrun.h.
5689 * remote-mips.c: Include infrun.h.
5690 * remote-notif.c: Include infrun.h.
5691 * remote-sim.c: Include infrun.h.
5692 * remote.c: Include infrun.h.
5693 * reverse.c: Include infrun.h.
5694 * rs6000-tdep.c: Include infrun.h.
5695 * s390-linux-tdep.c: Include infrun.h.
5696 * solib-irix.c: Include infrun.h.
5697 * solib-osf.c: Include infrun.h.
5698 * solib-svr4.c: Include infrun.h.
5699 * target.c: Include infrun.h.
5700 * top.c: Include infrun.h.
5701 * windows-nat.c: Include infrun.h.
5702 * mi/mi-interp.c: Include infrun.h.
5703 * mi/mi-main.c: Include infrun.h.
5704 * python/py-threadevent.c: Include infrun.h.
5705
5706 2014-05-22 Pedro Alves <palves@redhat.com>
5707
5708 * infrun.c (handle_inferior_event): Store the exit code for
5709 --return-child-result here, instead of ...
5710 (print_exited_reason): ... here.
5711
5712 2014-05-21 Pedro Alves <palves@redhat.com>
5713
5714 PR gdb/13860
5715 * gdbthread.h (struct thread_control_state): New field
5716 `command_interp'.
5717 * infrun.c (follow_fork): Copy the new thread control field to the
5718 child fork thread.
5719 (clear_proceed_status_thread): Clear the new thread control field.
5720 (proceed): Set the new thread control field.
5721 * interps.h (command_interp): Declare.
5722 * interps.c (command_interpreter): New global.
5723 (command_interp): New function.
5724 (interp_exec): Set `command_interpreter' while here.
5725 * cli-out.c (cli_uiout_dtor): New function.
5726 (cli_ui_out_impl): Install it.
5727 * mi/mi-interp.c: Include cli-out.h.
5728 (mi_cmd_interpreter_exec): Add comment.
5729 (restore_current_uiout_cleanup): New function.
5730 (ui_out_free_cleanup): New function.
5731 (mi_on_normal_stop): If finishing an execution command started by
5732 a CLI command, or any kind of breakpoint-like event triggered,
5733 print the stop event to the output (CLI) stream.
5734 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5735
5736 2014-05-21 Pedro Alves <palves@redhat.com>
5737
5738 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5739 current source line having changed.
5740 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5741 * infrun.c (normal_stop): Adjust call to
5742 set_current_sal_from_frame.
5743 * source.c (clear_lines_listed_range): New function.
5744 (set_current_source_symtab_and_line, identify_source_line): Clear
5745 the lines listed range.
5746 (line_info): Handle the first "info line" after the current source
5747 line having changed.
5748 * stack.c (print_stack_frame): Remove center handling.
5749 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5750 center sal.line.
5751
5752 2014-05-21 Pedro Alves <palves@redhat.com>
5753
5754 * inf-child.c (inf_child_mourn_inferior): New function.
5755 * inf-child.h (inf_child_mourn_inferior): New declaration.
5756 * darwin-nat.c (darwin_mourn_inferior): Use
5757 inf_child_mourn_inferior.
5758 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5759 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5760 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5761 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5762 * windows-nat.c (windows_mourn_inferior): Likewise.
5763
5764 2014-05-21 Doug Evans <xdje42@gmail.com>
5765
5766 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5767
5768 2014-05-21 Doug Evans <xdje42@gmail.com>
5769
5770 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5771 (gdbscm_out_of_range_error): Ditto.
5772 (gdbscm_memory_error): Ditto.
5773 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5774 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5775 (gdbscm_out_of_range_error): Update.
5776 (gdbscm_memory_error): Update.
5777 (gdbscm_scm_to_target_string_unsafe): Delete.
5778
5779 2014-05-21 Pedro Alves <palves@redhat.com>
5780
5781 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5782 globals.
5783 (inf_child_open_target): New function.
5784 (inf_child_open): Use inf_child_open_target to push the target
5785 instead of erroring out.
5786 (inf_child_disconnect, inf_child_close)
5787 (inf_child_maybe_unpush_target): New functions.
5788 (inf_child_target): Install inf_child_disconnect and
5789 inf_child_close. Store a pointer to the returned object.
5790 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5791 declarations.
5792 * target.c (auto_connect_native_target): New global.
5793 (show_default_run_target): New function.
5794 (find_default_run_target): Return NULL if automatically connecting
5795 to the native target is disabled.
5796 (_initialize_target): Install set/show auto-connect-native-target.
5797 * NEWS: Mention "set auto-connect-native-target", and "target
5798 native".
5799 * linux-nat.c (super_close): New global.
5800 (linux_nat_close): Call super_close.
5801 (linux_nat_add_target): Store a pointer to the base class's
5802 to_close method.
5803 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5804 inf_child_maybe_unpush.
5805 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5806 already pushed.
5807 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5808 the inferior. Use inf_child_maybe_unpush_target.
5809 (inf_ttrace_attach): Don't push the target if it is already
5810 pushed.
5811 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5812 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5813 after mourning the inferior. Use inf_child_maybe_unpush_target.
5814 (darwin_attach_pid): Don't push the target if it is already
5815 pushed.
5816 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5817 mourning the inferior. Use inf_child_maybe_unpush_target.
5818 (gnu_detach): Use inf_child_maybe_unpush_target.
5819 * go32-nat.c (go32_create_inferior): Don't push the target if it
5820 is already pushed.
5821 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5822 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5823 (procfs_open): Rename to ...
5824 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5825 comments. Can target_preopen before changing node. Call
5826 inf_child_open_target to push the target explicitly.
5827 (procfs_attach): Don't push the target if it is already pushed.
5828 (procfs_detach): Use inf_child_maybe_unpush_target.
5829 (procfs_create_inferior): Don't push the target if it is already
5830 pushed.
5831 (nto_native_ops): New global.
5832 (procfs_open): Reimplement.
5833 (procfs_native_open): New function.
5834 (init_procfs_targets): Install procfs_native_open as to_open of
5835 "target native". Store a pointer to the "native" target in
5836 nto_native_ops.
5837 * procfs.c (procfs_attach): Don't push the target if it is already
5838 pushed.
5839 (procfs_detach): Use inf_child_maybe_unpush_target.
5840 (procfs_mourn_inferior): Only unpush the target after mourning the
5841 inferior. Use inf_child_maybe_unpush_target.
5842 (procfs_init_inferior): Don't push the target if it is already
5843 pushed.
5844 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5845 if it is already pushed.
5846
5847 2014-05-21 Pedro Alves <palves@redhat.com>
5848
5849 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5850 and "procfs" targets are now called "native" instead.
5851
5852 2014-05-21 Pedro Alves <palves@redhat.com>
5853
5854 * go32-nat.c (go32_open): Delete.
5855 (go32_target): Don't override the to_open method.
5856
5857 2014-05-21 Pedro Alves <palves@redhat.com>
5858
5859 * nto-procfs.c (procfs_can_run): New function.
5860 (nto_procfs_ops): New global.
5861 (init_procfs_targets): New, based on procfs_target. Install
5862 "target native" in addition to "target procfs".
5863 (_initialize_procfs): Call init_procfs_targets instead of adding
5864 the target here.
5865
5866 2014-05-21 Pedro Alves <palves@redhat.com>
5867
5868 * windows-nat.c (windows_target): Don't override to_shortname,
5869 to_longname or to_doc.
5870
5871 2014-05-21 Pedro Alves <palves@redhat.com>
5872
5873 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5874 to_doc.
5875
5876 2014-05-21 Pedro Alves <palves@redhat.com>
5877
5878 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5879 to_shortname, to_longname or to_doc.
5880
5881 2014-05-21 Pedro Alves <palves@redhat.com>
5882
5883 * go32-nat.c (go32_target): Don't override to_shortname,
5884 to_longname or to_doc.
5885
5886 2014-05-21 Pedro Alves <palves@redhat.com>
5887
5888 * inf-child.c (inf_child_open): Remove mention of "child".
5889 (inf_child_target): Rename target to "native" instead of "child".
5890
5891 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5892
5893 * Makefile.in (SFILES): Delete "regset.c".
5894 (COMMON_OBS): Delete "regset.o".
5895 * regset.c: Remove.
5896 * regset.h (regset_alloc): Delete prototype.
5897
5898 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5899
5900 * sparc-linux-tdep.c (sparc32_linux_gregset)
5901 (sparc32_linux_fpregset): New static regset structures.
5902 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5903 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5904 'fpregset' fields.
5905 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5906 (sparc64_linux_fpregset): New static regset structures.
5907 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5908 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5909 New static regset structures.
5910 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5911 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5912 New static regset structures.
5913 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5914 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5915 New static regset structures.
5916 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5917 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5918 New static regset structures.
5919 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5920
5921 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5922
5923 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5924 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5925 register maps ("regmaps") from "*regset" to "*regmap". Do this
5926 for all regmap types and variables.
5927 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5928 (sparc32_linux_supply_core_gregset)
5929 (sparc32_linux_collect_core_gregset)
5930 (sparc32_linux_supply_core_fpregset)
5931 (sparc32_linux_collect_core_fpregset): Likewise.
5932 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5933 (sparc_gregmap, sparc_fpregmap): ... these.
5934 (sparc_supply_gregset, sparc_collect_gregset)
5935 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5936 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5937 (_initialize_sparc_nat): Rename regmaps.
5938 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5939 (sparc_gregmap, sparc_fpregmap): ... these.
5940 (sparc_supply_gregset, sparc_collect_gregset)
5941 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5942 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5943 Rename macros to...
5944 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5945 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5946 Likewise.
5947 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5948 Rename to...
5949 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5950 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5951 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5952 regmaps.
5953 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5954 (sparc32_bsd_fpregset): Rename to...
5955 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5956 (sparc32_bsd_fpregmap): ... these.
5957 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5958 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5959 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5960 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5961 (struct sparc_gregmap, struct sparc_fpregmap)
5962 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5963 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5964 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5965 (sparc32_supply_regset, sparc32_collect_gregset)
5966 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5967 prototypes.
5968 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5969 (sparc64_linux_ptrace_gregmap): ... this.
5970 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5971 (_initialize_sparc64_linux_nat): Rename regmaps.
5972 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5973 (sparc64_linux_core_gregmap): ... this.
5974 (sparc64_linux_supply_core_gregset)
5975 (sparc64_linux_collect_core_gregset)
5976 (sparc64_linux_supply_core_fpregset)
5977 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5978 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5979 (sparc64_sol2_fpregset): Rename to...
5980 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5981 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5982 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5983 regmaps.
5984 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5985 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5986 (sparc64_bsd_fpregset): Rename to...
5987 (struct sparc_gregmap, sparc64_sol2_gregmap)
5988 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5989 (sparc64_bsd_fpregmap): ... these.
5990 (sparc64_supply_gregset, sparc64_collect_gregset)
5991 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5992 prototypes.
5993 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5994 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5995 (sparc64fbsd_gregmap): ... this.
5996 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5997 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5998 Rename regmaps.
5999 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6000 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6001 (sparc64nbsd_collect_fpregset): Likewise.
6002 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6003 (sparc64nbsd_gregmap): ... this.
6004 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6005 regmaps.
6006 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6007 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6008 (sparc64obsd_gregmap): ... this.
6009 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6010 regmaps.
6011 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6012 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6013 (sparc32nbsd_gregmap): ... this.
6014 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6015 regmaps.
6016
6017 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6018
6019 * score-tdep.c (score7_linux_gregset): New static regset
6020 structure.
6021 (score7_linux_regset_from_core_section): Remove dynamic regset
6022 allocation.
6023 (score_gdbarch_init): Drop allocation of tdep structure.
6024 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6025
6026 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6027
6028 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6029 regset structures.
6030 (am33_regset_from_core_section): Remove dynamic regset
6031 allocations.
6032
6033 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6034
6035 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6036 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6037 structures.
6038 (mips_linux_regset_from_core_section): Remove dynamic regset
6039 allocations.
6040 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6041 'gregset64', 'fpregset', and 'fpregset64'.
6042 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6043 deleted tdep fields.
6044
6045 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6046
6047 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6048 regset structures.
6049 (amd64_regset_from_core_section): Remove dynamic regset
6050 allocations.
6051 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6052 structure.
6053 (amd64obsd_regset_from_core_section): Remove dynamic regset
6054 allocation.
6055 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6056 Likewise.
6057 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6058 x86-common regset supply function.
6059 * i386-tdep.c (i386_collect_gregset): Make static.
6060 (i386_gregset): New global regset structure.
6061 (i386_fpregset, i386_xstateregset): New static regset structures.
6062 (i386_regset_from_core_section): Remove dynamic regset
6063 allocations.
6064 (i386_gdbarch_init): Remove initialization of tdep fields
6065 'gregset', 'fpregset', and 'xstateregset'.
6066 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6067 'fpregset', and 'xstateregset'.
6068 (i386_collect_gregset): Remove prototype.
6069 (i386_gregset): New declaration.
6070 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6071 structure.
6072 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6073 allocation.
6074
6075 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6076
6077 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6078 (arm_linux_vfpregset): New static regset structures.
6079 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6080 regset structures.
6081 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6082 and 'vfpregset' fields.
6083
6084 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6085
6086 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6087 (aarch64_linux_fpregset): New static regset structures.
6088 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6089 of regset structures.
6090 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6091 'fpregset' fields.
6092
6093 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6094
6095 * regset.h (struct regset): Remove gdbarch field.
6096 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6097 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6098 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6099 Likewise.
6100 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6101 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6102 (ppc32_linux_vsxregset): Likewise.
6103 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6104 via the regcache instead of the regset.
6105 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6106 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6107 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6108 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6109 Likewise.
6110
6111 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6112
6113 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6114 Constify structures.
6115 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6116 (alphanbsd_aout_gregset): Likewise.
6117 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6118 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6119 Likewise.
6120 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6121 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6122 Likewise.
6123 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6124 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6125 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6126 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6127 * m88k-tdep.c (m88k_gregset): Likewise.
6128 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6129 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6130 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6131 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6132 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6133 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6134 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6135 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6136 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6137 Likewise.
6138 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6139 * sh-tdep.h (sh_corefile_gregset): Likewise.
6140 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6141 * vax-tdep.c (vax_gregset): Likewise.
6142
6143 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6144
6145 Fix TLS access for -static -pthread.
6146 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6147 (try_thread_db_load_1): Initialize it.
6148 (thread_db_get_thread_local_address): Call it if LM is zero.
6149 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6150 * target.h (struct target_ops) (to_get_thread_local_address): Add
6151 load_module_addr comment.
6152
6153 2014-05-21 Pedro Alves <palves@redhat.com>
6154
6155 * dcache.c (dcache_read_memory_partial): If reading the cache line
6156 fails, fallback to reading just the memory the caller wanted.
6157
6158 2014-05-20 Doug Evans <dje@google.com>
6159
6160 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6161 instead of get_current_arch.
6162
6163 2014-05-20 Pedro Alves <palves@redhat.com>
6164
6165 * NEWS: Mention that compare-sections now works with all targets.
6166
6167 * remote.c (PACKET_qCRC): New enum value.
6168 (remote_verify_memory): Don't send qCRC if the target has no
6169 execution. Use packet_support/packet_ok. If the target doesn't
6170 support the qCRC packet, fallback to a deep memory copy.
6171 (compare_sections_command): Say "target image" instead of "remote
6172 executable".
6173 (_initialize_remote): Add PACKET_qCRC to the list of config
6174 packets that have no associated command. Extend comment.
6175 * target.c (simple_verify_memory, default_verify_memory): New
6176 function.
6177 * target.h (struct target_ops) <to_verify_memory>: Default to
6178 default_verify_memory.
6179 (simple_verify_memory): New declaration.
6180 * target-delegates.c: Regenerate.
6181
6182 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6183
6184 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6185
6186 2014-05-20 Hui Zhu <hui@codesourcery.com>
6187 Yao Qi <yao@codesourcery.com>
6188
6189 PR backtrace/16558
6190 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6191 and change address of sp and pc.
6192
6193 2014-05-19 Tom Tromey <tromey@redhat.com>
6194
6195 * gdbtypes.c (rank_function): Use XNEWVEC.
6196 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6197
6198 2014-05-19 Doug Evans <dje@google.com>
6199
6200 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6201 build_type_unit_groups and moved closer to only caller. Remove
6202 arguments. All references updated. Remove outdated .gdb_index
6203 comment.
6204 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6205 build_type_psymtabs_1.
6206
6207 2014-05-19 Doug Evans <dje@google.com>
6208
6209 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6210 n_type_unit_groups, all_type_unit_groups. All uses removed.
6211 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6212 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6213 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6214 (add_type_unit_group_to_table): Delete.
6215
6216 2014-05-19 Doug Evans <dje@google.com>
6217
6218 * eval.c (evaluate_subexp_standard): Add some comments.
6219
6220 2014-05-17 Doug Evans <xdje42@gmail.com>
6221
6222 * progspace.c (remove_program_space): Delete, unused.
6223 * progspace.h (remove_program_space): Ditto.
6224
6225 2014-05-17 Doug Evans <xdje42@gmail.com>
6226
6227 * inferior.c (prune_inferiors): Fix comment.
6228 (remove_inferior_command): Call prune_program_spaces.
6229
6230 2014-05-16 Doug Evans <dje@google.com>
6231
6232 New command line option -D.
6233 * NEWS: Mention it.
6234 * main.c (set_gdb_data_directory): New function.
6235 (captured_main): Recognize -D. Flag error for --data-directory "".
6236 Call set_gdb_data_directory.
6237 (print_gdb_help): Print --data-directory, -D.
6238 * main.h (set_gdb_data_directory): Declare.
6239 * top.c (staged_gdb_datadir): New static global.
6240 (set_gdb_datadir): Call set_gdb_data_directory
6241 (show_gdb_datadir): New function.
6242 (init_main): Update init of data-directory parameter.
6243
6244 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6245
6246 Import the "dirfd" gnulib module.
6247 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6248 * gnulib/aclocal.m4: Update.
6249 * gnulib/config.in: Update.
6250 * gnulib/configure: Update.
6251 * gnulib/import/Makefile.am: Update.
6252 * gnulib/import/Makefile.in: Update.
6253 * gnulib/import/dirfd.c: New.
6254 * gnulib/import/m4/dirfd.m4: New.
6255 * gnulib/import/m4/gnulib-cache.m4: Update.
6256 * gnulib/import/m4/gnulib-comp.m4: Update.
6257
6258 2014-05-16 Pierre Muller <muller@sourceware.org>
6259 Yao Qi <yao@codesourcery.com>
6260
6261 * valprint.c (print_wchar): Move the code on checking whether
6262 W is a printable wide char to the default branch of switch
6263 statement below. Call wchar_printable instead of gdb_iswprint.
6264
6265 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6266
6267 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6268 ldr.w and ldrd instructions.
6269
6270 2014-05-15 Doug Evans <dje@google.com>
6271
6272 * dwarf2read.c (read_structure_type): Delete outdated comments.
6273
6274 2014-05-14 Tom Tromey <tromey@redhat.com>
6275
6276 * macrocmd.c (print_macro_definition): Reindent.
6277
6278 2014-05-13 Doug Evans <xdje42@gmail.com>
6279
6280 * python/py-cmd.c (cmdpy_completer): Add comment.
6281 (completers): Make const.
6282
6283 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6284
6285 * infrun.c (resume): Remove should_resume (unused). Move up
6286 declaration of resume_ptid.
6287
6288 2014-05-13 Tom Tromey <tromey@redhat.com>
6289
6290 * language.h (unop_type_check): Remove.
6291 (binop_type_check): Don't declare.
6292
6293 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6294
6295 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6296 call to regcache_raw_collect.
6297
6298 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6299
6300 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6301 mi_console->quote as the quoting character.
6302
6303 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6304
6305 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6306
6307 2014-04-29 Tom Tromey <tromey@redhat.com>
6308
6309 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6310 "show debug varobj".
6311
6312 2014-05-07 Kyle McMartin <kyle@redhat.com>
6313
6314 Pushed by Joel Brobecker <brobecker@adacore.com>.
6315 * aarch64-tdep.c (aarch64_software_single_step): New function.
6316 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6317 with aarch64_software_single_step.
6318
6319 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6320
6321 GDB 7.7.1 released.
6322
6323 2014-05-05 Keith Seitz <keiths@redhat.com>
6324
6325 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6326 variable or history value is successfully parsed.
6327
6328 2014-05-05 Yao Qi <yao@codesourcery.com>
6329 Pedro Alves <palves@redhat.com>
6330
6331 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6332 address of blocks that intersects the requested range. Trim
6333 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6334 sections.
6335 * ctf.c (ctf_xfer_partial): Likewise.
6336
6337 2014-05-05 Yao Qi <yao@codesourcery.com>
6338
6339 * printcmd.c (display_command): Remove the check to
6340 target_has_execution.
6341
6342 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6343
6344 * ppcobsd-nat.c: Include "obsd-nat.h".
6345 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6346 add_target.
6347 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6348
6349 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6350
6351 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6352 and 16-bit signed and unsigned arguments. Update comment.
6353 (stap_parse_probe_arguments): Extend code to handle such
6354 arguments. Use warning instead of complaint to notify about
6355 unrecognized bitness.
6356
6357 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6358
6359 PR breakpoints/16889
6360 * stap-probe.c (stap_parse_probe_arguments): Simplify
6361 check for non-prefixed probes (i.e., probes whose
6362 arguments do not start with "N@"). Always set the
6363 argument type to a sane value.
6364
6365 2014-05-01 David Taylor <dtaylor@emc.com>
6366
6367 * remote.c (compare_sections_command): Add -r option to compare
6368 all loadable read-only sections.
6369
6370 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6371
6372 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6373 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6374 Update all callers.
6375 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6376 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6377 Remove unused CORE_ADDR argument. Update all callers.
6378
6379 2014-04-29 Pedro Alves <palves@redhat.com>
6380
6381 * remote.c (struct packet_config) <detect>: Extend comment.
6382 (add_packet_config_cmd): Don't set the config's detect or support
6383 fields here.
6384 (init_all_packet_configs): Also initialize the config's 'detect'
6385 field.
6386 (reset_all_packet_configs_support): New function.
6387 (remote_open_1): Call reset_all_packet_configs_support instead of
6388 init_all_packet_configs.
6389 (_initialize_remote): Initialize all packet configs. Assert that
6390 all packets have an associated command, except a few known
6391 outliers.
6392
6393 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6394
6395 * dwarf2read.c (read_subrange_type): Handle dynamic
6396 DW_AT_lower_bound attributes.
6397
6398 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6399
6400 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6401 dynamic bounds before computing its upper bound.
6402 (ada_discrete_type_low_bound): Same as above with the lower bound.
6403
6404 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6405
6406 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6407 range types. Adjust the array handling implementation to
6408 take advantage of this change.
6409 (resolve_dynamic_range): New function, mostly extracted from
6410 resolve_dynamic_bounds.
6411 (resolve_dynamic_array): New function, mostly extracted from
6412 resolve_dynamic_bounds.
6413 (resolve_dynamic_bounds): Delete.
6414 (resolve_dynamic_type): Reimplement. Add handling of
6415 TYPE_CODE_RANGE types.
6416
6417 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6418
6419 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6420 handling of parallel ___XA types.
6421
6422 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6423
6424 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6425 unnecessary second call to static_unwrap_type.
6426
6427 2014-04-27 Hui Zhu <hui@codesourcery.com>
6428
6429 * stack.c (print_frame_info): Call do_gdb_disassembly with
6430 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6431
6432 2014-04-26 Doug Evans <xdje42@gmail.com>
6433
6434 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6435
6436 2014-04-25 Pedro Alves <palves@redhat.com>
6437
6438 PR server/16255
6439 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6440 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6441 and newline from built string.
6442 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6443 (linux_ptrace_attach_fail_reason): ... this.
6444 * linux-nat.c (linux_nat_attach): Adjust to use
6445 linux_ptrace_attach_fail_reason.
6446
6447 2014-04-25 Pedro Alves <palves@redhat.com>
6448
6449 * remote.c (struct remote_state): Remove multi_process_aware,
6450 non_stop_aware, cond_tracepoints, cond_breakpoints,
6451 breakpoint_commands, fast_tracepoints, static_tracepoints,
6452 install_in_trace, disconnected_tracing,
6453 enable_disable_tracepoints, string_tracing, and
6454 augmented_libraries_svr4_read fields.
6455 (remote_multi_process_p): Move further below in the file.
6456 (struct packet_config): Add comments.
6457 (update_packet_config): Delete function.
6458 (show_packet_config_cmd): Use packet_config_support.
6459 (add_packet_config_cmd): Use NULL as set callback.
6460 (packet_ok): "set remote foo-packet"-style commands no longer
6461 change config->supported -- adjust.
6462 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6463 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6464 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6465 (PACKET_QNonStop, PACKET_multiprocess_feature)
6466 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6467 (PACKET_DisconnectedTracing_feature)
6468 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6469 (set_remote_protocol_packet_cmd): Delete function.
6470 (packet_config_support, packet_support): New functions.
6471 (set_remote_protocol_Z_packet_cmd): Don't call
6472 update_packet_config.
6473 (remote_query_attached, remote_pass_signals)
6474 (remote_program_signals, remote_threads_info)
6475 (remote_threads_extra_info, remote_start_remote): Use
6476 packet_support.
6477 (remote_start_remote): Use packet_config_support and
6478 packet_support.
6479 (init_all_packet_configs): Set all packets to unknown support,
6480 instead of calling update_packet_config.
6481 (remote_check_symbols): Use packet_support.
6482 (remote_supported_packet): Unconditionally set the packet config's
6483 support status.
6484 (remote_multi_process_feature, remote_non_stop_feature)
6485 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6486 (remote_breakpoint_commands_feature)
6487 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6488 (remote_install_in_trace_feature)
6489 (remote_disconnected_tracing_feature)
6490 (remote_enable_disable_tracepoint_feature)
6491 (remote_string_tracing_feature)
6492 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6493 (remote_protocol_features): Adjust to use remote_supported_packet
6494 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6495 "ConditionalTracepoints", "ConditionalBreakpoints",
6496 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6497 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6498 "EnableDisableTracepoints", and "tracenz".
6499 (remote_query_supported): Use packet_support.
6500 (remote_open_1): Adjust.
6501 (extended_remote_attach_1): Use packet_support. Switch on the
6502 result of packet_ok instead of checking whether the packet ended
6503 up disabled.
6504 (remote_vcont_resume): Use packet_support.
6505 (remote_resume, remote_stop_ns, fetch_register_using_p)
6506 (remote_prepare_to_store, store_register_using_P)
6507 (check_binary_download, remote_write_bytes): Use packet_support.
6508 (remote_vkill): Use packet_support. Switch on the result of
6509 packet_ok instead of checking whether the packet ended up
6510 disabled.
6511 (extended_remote_supports_disable_randomization): Use
6512 packet_support.
6513 (extended_remote_run): Switch on the result of packet_ok instead
6514 of checking whether the packet ended up disabled.
6515 (remote_insert_breakpoint, remote_remove_breakpoint)
6516 (remote_insert_watchpoint, remote_remove_watchpoint)
6517 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6518 packet_support.
6519 (remote_search_memory): Use packet_config_support.
6520 (remote_get_thread_local_address, remote_get_tib_address)
6521 (remote_hostio_send_command, remote_can_execute_reverse): Use
6522 packet_support.
6523 (remote_supports_cond_tracepoints)
6524 (remote_supports_cond_breakpoints)
6525 (remote_supports_fast_tracepoints)
6526 (remote_supports_static_tracepoints)
6527 (remote_supports_install_in_trace)
6528 (remote_supports_enable_disable_tracepoint)
6529 (remote_supports_string_tracing)
6530 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6531 the packet config says the feature is enabled or disabled.
6532 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6533 (remote_get_trace_status): Use packet_support.
6534 (remote_set_disconnected_tracing): Adjust to check whether the
6535 feature is enabled with packet_support.
6536 (remote_set_trace_buffer_size, remote_use_agent)
6537 (remote_can_use_agent, remote_supports_btrace): Use
6538 packet_support.
6539 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6540 Use packet_config_support.
6541 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6542 the packet config says the feature is enabled or disabled.
6543 (set_range_stepping): Use packet_support.
6544
6545 2014-04-25 Tom Tromey <tromey@redhat.com>
6546
6547 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6548 argument.
6549
6550 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6551
6552 * NEWS: Mention support for C99 variable length arrays.
6553
6554 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6555
6556 * ada-lang.c (standard_exc): Expand introductory comment.
6557
6558 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6559 Walfred Tedeschi <walfred.tedeschi@intel.com>
6560
6561 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6562 AVX512 registers.
6563 (amd64_linux_read_description): Add code to handle AVX512 xstate
6564 mask and return respective tdesc.
6565 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6566 and features/i386/x32-avx512-linux.c.
6567 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6568 (amd64_linux_core_read_description): Add code to handle AVX512
6569 xstate mask and return respective tdesc.
6570 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6571 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6572 calculation.
6573 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6574 (tdesc_amd64_avx512_linux): New prototype.
6575 (tdesc_x32_avx512_linux): Likewise.
6576 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6577 features/i386/x32-avx512.c.
6578 (amd64_ymm_avx512_names): New register names for pseudo
6579 registers YMM16-31.
6580 (amd64_ymmh_avx512_names): New register names for raw registers
6581 YMMH16-31.
6582 (amd64_k_names): New register names for K registers.
6583 (amd64_zmmh_names): New register names for ZMM raw registers.
6584 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6585 (amd64_xmm_avx512_names): New register names for XMM16-31
6586 registers.
6587 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6588 registers.
6589 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6590 if feature is present.
6591 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6592 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6593 (AMD64_NUM_REGS): Adjust to new number of registers.
6594 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6595 registers supplied via XSTATE by AVX512 registers.
6596 (i386_linux_read_description): Add case for AVX512.
6597 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6598 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6599 (i386_linux_core_read_description): Add case for AVX512.
6600 (i386_linux_init_abi): Install supported register note section
6601 for AVX512.
6602 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6603 AVX512.
6604 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6605 registers to be number of zmm7h + 1.
6606 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6607 * i386-tdep.c: Include features/i386/i386-avx512.c.
6608 (i386_zmm_names): Add ZMM pseudo register names array.
6609 (i386_zmmh_names): Add ZMM raw register names array.
6610 (i386_k_names): Add K raw register names array.
6611 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6612 registers. AVX512 has 16 more ZMM registers than there are YMM
6613 registers.
6614 (i386_zmmh_regnum_p): Add function to look up register number of
6615 ZMM raw registers.
6616 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6617 (i386_k_regnum_p): Likewise for K raw registers.
6618 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6619 registers added by AVX512.
6620 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6621 registers added by AVX512.
6622 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6623 added by AVX512.
6624 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6625 (i386_pseudo_register_name): Add ZMM pseudo registers.
6626 (i386_zmm_type): Construct and return vector registers type for ZMM
6627 registers.
6628 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6629 ZMM0-31 pseudo registers and K registers.
6630 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6631 and YMM16-31 registers from register cache.
6632 (i386_pseudo_register_write): Add code to write K, ZMM and
6633 YMM16-31 registers.
6634 (i386_register_reggroup_p): Add code to include/exclude AVX512
6635 registers in/from respective register groups.
6636 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6637 registers if feature is present in xcr0.
6638 (i386_gdbarch_init): Add code to initialize AVX512 feature
6639 variables in tdep structure, wire in pseudo registers and call
6640 initialize_tdesc_i386_avx512.
6641 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6642 variables.
6643 (i386_regnum): Add AVX512 registers.
6644 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6645 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6646 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6647 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6648 512 bits wide.
6649 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6650 (i386_ymm_avx512_regnum_p): Likewise.
6651 (i386_k_regnum_p): Likewise.
6652 (i386_zmm_regnum_p): Likewise.
6653 (i386_zmmh_regnum_p): Likewise.
6654 * i387-tdep.c : Update year in copyright notice.
6655 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6656 XSAVE buffer.
6657 (XSAVE_YMM_AVX512_ADDR): New macro.
6658 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6659 XSAVE buffer.
6660 (XSAVE_XMM_AVX512_ADDR): New macro.
6661 (xsave_avx512_k_offset): New table for K register offsets in
6662 XSAVE buffer.
6663 (XSAVE_AVX512_K_ADDR): New macro.
6664 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6665 in XSAVE buffer.
6666 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6667 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6668 buffer.
6669 (i387_collect_xsave): Add code to collect AVX512 registers from
6670 XSAVE buffer.
6671 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6672 of XMM16-31 registers.
6673 (I387_NUM_K_REGS): New define for number of K registers.
6674 (I387_K0_REGNUM): New define for K0 register number.
6675 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6676 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6677 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6678 registers.
6679 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6680 (I387_XMM16_REGNUM): New define for XMM16 register number.
6681 (I387_YMM0_REGNUM): New define for YMM0 register number.
6682 (I387_KEND_REGNUM): New define for last K register number.
6683 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6684 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6685 number.
6686 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6687 number.
6688 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6689 size.
6690 * features/Makefile: Add AVX512 related files.
6691 * features/i386/32bit-avx512.xml: New file.
6692 * features/i386/64bit-avx512.xml: Likewise.
6693 * features/i386/amd64-avx512-linux.c: Likewise.
6694 * features/i386/amd64-avx512-linux.xml: Likewise.
6695 * features/i386/amd64-avx512.c: Likewise.
6696 * features/i386/amd64-avx512.xml: Likewise.
6697 * features/i386/i386-avx512-linux.c: Likewise.
6698 * features/i386/i386-avx512-linux.xml: Likewise.
6699 * features/i386/i386-avx512.c: Likewise.
6700 * features/i386/i386-avx512.xml: Likewise.
6701 * features/i386/x32-avx512-linux.c: Likewise.
6702 * features/i386/x32-avx512-linux.xml: Likewise.
6703 * features/i386/x32-avx512.c: Likewise.
6704 * features/i386/x32-avx512.xml: Likewise.
6705 * regformats/i386/amd64-avx512-linux.dat: New file.
6706 * regformats/i386/amd64-avx512.dat: Likewise.
6707 * regformats/i386/i386-avx512-linux.dat: Likewise.
6708 * regformats/i386/i386-avx512.dat: Likewise.
6709 * regformats/i386/x32-avx512-linux.dat: Likewise.
6710 * regformats/i386/x32-avx512.dat: Likewise.
6711 * NEWS: Add note about new support for AVX512.
6712
6713
6714 2014-04-23 Pedro Alves <palves@redhat.com>
6715
6716 * breakpoint.c (insert_bp_location): Tolerate errors if the
6717 breakpoint is set in a user-loaded objfile.
6718 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6719 location is marked shlib_disabled. If the breakpoint is set in a
6720 user-loaded objfile is a GDB-side memory breakpoint, validate it
6721 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6722 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6723 flag.
6724 * mem-break.c (memory_validate_breakpoint): New function.
6725 * objfiles.c (userloaded_objfile_contains_address_p): New
6726 function.
6727 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6728 * target.h (memory_validate_breakpoint): New declaration.
6729
6730 2014-04-23 Pedro Alves <palves@redhat.com>
6731
6732 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6733 the breakpoint is set in a shared library, only suppress
6734 errors for software breakpoints, not hardware breakpoints.
6735
6736 2014-04-22 Pedro Alves <palves@redhat.com>
6737
6738 * infrun.c (schedlock_applies): New function, factored out from
6739 find_thread_needs_step_over.
6740 (find_thread_needs_step_over): Use it.
6741 (switch_back_to_stepped_thread): Always clear trap_expected if the
6742 step over is finished. Return early if scheduler locking applies.
6743 Look for the stepping thread and a potential step-over thread with
6744 a single loop.
6745 (currently_stepping_or_nexting_callback): Delete.
6746
6747 2014-04-22 Nick Clifton <nickc@redhat.com>
6748
6749 * NEWS: Mention that ARM sim now supports tracing.
6750
6751 2014-04-22 Yao Qi <yao@codesourcery.com>
6752
6753 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6754 to ...
6755 * tracefile.c (tracefile_fetch_registers): ... it. New
6756 function.
6757 * tracefile.h (tracefile_fetch_registers): Declare.
6758 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6759 tracefile_fetch_registers.
6760
6761 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6762
6763 PR gdb/14018
6764 * windows-nat.c (thread_rec): Don't display a warning when
6765 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6766 fails for any reason, set th->suspended to -1, so that we don't
6767 try to resume such a thread. Also, don't return NULL in these
6768 cases, to avoid completely ruin the session due to "PC register is
6769 not available" error.
6770 (do_windows_fetch_inferior_registers): Check errors in
6771 GetThreadContext call.
6772 (windows_continue): Accept an additional argument KILLED; if not
6773 zero, ignore errors in the SetThreadContext call, since the
6774 inferior was killed and is shutting down.
6775 (windows_resume, get_windows_debug_event)
6776 (windows_create_inferior, windows_mourn_inferior)
6777 (windows_kill_inferior): All callers of windows_continue changed
6778 to adjust to its new calling sequence.
6779
6780 2014-04-19 Yao Qi <yao@codesourcery.com>
6781
6782 * ctf.c (ctf_open): Call post_create_inferior.
6783
6784 2014-04-19 Yao Qi <yao@codesourcery.com>
6785
6786 * ctf.c (handle_id): New static variable.
6787 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6788 value. Get the declaration of event "register" and get length
6789 of field "contents".
6790
6791 2014-04-19 Yao Qi <yao@codesourcery.com>
6792
6793 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6794
6795 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6796
6797 * valops.c (oload_method_static): Remove unnecessary argument
6798 METHOD. Update all callers.
6799
6800 2014-04-18 Pedro alves <palves@redhat.com>
6801 Tom Tromey <tromey@redhat.com>
6802
6803 PR backtrace/15558
6804 * frame.c (get_prev_frame_1): Rename to ...
6805 (get_prev_frame_always): ... this, and make extern. Adjust.
6806 (skip_artificial_frames): Use get_prev_frame_always.
6807 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6808 (get_frame_unwind_stop_reason): Adjust to rename.
6809 * frame.h (get_prev_frame_always): Declare.
6810 * inline-frame.c: Include frame.h.
6811 (inline_frame_this_id): Use get_prev_frame_always.
6812
6813 2014-04-18 Tristan Gingold <gingold@adacore.com>
6814
6815 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6816 code by using bfd_mach_o_get_base_address.
6817
6818 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6819
6820 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6821 (spu_ax_pseudo_register_collect): New function.
6822 (spu_ax_pseudo_register_push_stack): Likewise.
6823 (spu_dwarf_reg_to_regnum): Likewise.
6824 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6825
6826 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6827
6828 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6829 Replace FRAME argument with FRAME_ID.
6830 * gdbarch.c, gdbarch.h: Regenerate.
6831 * findvar.c (default_value_from_register): Add GDBARCH argument;
6832 replace FRAME by FRAME_ID. No longer call get_frame_id.
6833 (value_from_register): Update call to gdbarch_value_from_register.
6834 * value.h (default_value_from_register): Update prototype.
6835 * s390-linux-tdep.c (s390_value_from_register): Update interface
6836 and call to default_value_from_register.
6837 * spu-tdep.c (spu_value_from_register): Likewise.
6838
6839 * findvar.c (address_from_register): Remove TYPE argument.
6840 Do not call value_from_register; use gdbarch_value_from_register
6841 with null_frame_id instead.
6842 * value.h (address_from_register): Update prototype.
6843 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6844 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6845 address_from_register interface change.
6846
6847 2014-04-17 Yao Qi <yao@codesourcery.com>
6848
6849 * gdbtypes.h: Update comments to link to types and macros'
6850 definitions.
6851
6852 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6853
6854 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6855
6856 2014-04-16 Keith Seitz <keiths@redhat.com>
6857
6858 PR gdb/15827
6859 * dwarf2read.c (skip_one_die): Check that all relative-offset
6860 sibling DIEs fall within range of the current reader's buffer.
6861 (read_partial_die): Likewise.
6862
6863 2014-04-16 Keith Seitz <keiths@redhat.com>
6864
6865 PR c++/16597
6866 * cp-namespace.c (lookup_symbol_file): If the type name of
6867 `this' is NULL, return immediately.
6868
6869 2014-04-14 Keith Seitz <keiths@redhat.com>
6870
6871 PR c++/16253
6872 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6873 from symbol_matches_domain in symtab.c. All local callers
6874 of symbol_matches_domain updated.
6875 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6876 search STRUCT_DOMAIN.
6877 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6878 independently. standard_lookup will do that automatically.
6879 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6880 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6881 (cp_lookup_symbol_in_namespace): Likewise.
6882 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6883 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6884 may return a STRUCT_DOMAIN match.
6885 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6886 * cp-support.c: Include language.h.
6887 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6888 VAR_DOMAIN.
6889 * psymtab.c (match_partial_symbol): Compare the requested
6890 domain with the symbol's domain directly.
6891 (lookup_partial_symbol): Likewise.
6892 * symtab.c (lookup_symbol_in_language): Explain when/why
6893 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6894 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6895 appropriate languages.
6896 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6897 and moved to ada-lang.c
6898 (lookup_block_symbol): Explain that this function only returns
6899 symbol matching the requested DOMAIN.
6900 Compare the requested domain with the symbol's domain directly.
6901 (iterate_over_symbols): Compare the requested domain with the
6902 symbol's domain directly.
6903 * symtab.h (symbol_matches_domain): Remove.
6904
6905 2014-04-14 Tom Tromey <tromey@redhat.com>
6906
6907 PR c++/15246:
6908 * c-exp.y (type_aggregate_p): New function.
6909 (qualified_name, classify_inner_name): Use it.
6910 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6911 and TYPE_TARGET_TYPE of an enum type.
6912 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6913 an enum type.
6914 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6915 handle TYPE_DECLARED_CLASS.
6916 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6917 types.
6918 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6919 * valops.c (enum_constant_from_type): New function.
6920 (value_aggregate_elt): Use it.
6921 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6922 TYPE_CODE_ENUM.
6923
6924 2014-04-14 Tom Tromey <tromey@redhat.com>
6925
6926 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6927 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6928 const.
6929 * value.h (value_aggregate_elt): Update.
6930
6931 2014-04-14 Tom Tromey <tromey@redhat.com>
6932
6933 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6934
6935 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6936
6937 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6938 (evaluate_subexp_standard): Pass noside argument.
6939 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6940 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6941 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6942 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6943 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6944
6945 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6946
6947 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6948 points to a constant blob.
6949
6950 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6951
6952 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6953 property and store it as the high bound and flag the range accordingly.
6954 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6955 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6956 * gdbtypes.h (enum range_flags): New enum.
6957 (struct range_bounds): Add flags member.
6958
6959 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6960
6961 * c-typeprint.c (c_type_print_varspec_suffix): Added
6962 check for not yet resolved high bound. If unresolved, print
6963 "variable length" string to the console instead of random
6964 length.
6965
6966 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6967
6968 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6969 value.
6970 (ada_template_to_fixed_record_type_1): Likewise.
6971 (ada_to_fixed_type_1): Likewise.
6972 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6973 (cp_print_value): Likewise.
6974 * d-valprint.c (dynamic_array_type): Likewise.
6975 * findvar.c (address_of_variable): Likewise.
6976 * jv-valprint.c (java_value_print): Likewise.
6977 * valops.c (value_ind): Likewise.
6978 * value.c (coerce_ref): Likewise.
6979
6980 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6981
6982 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6983 value and retrieve the dynamic type size.
6984
6985 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6986
6987 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6988 passed to sizeof is dynamic evaluate the argument to compute the length.
6989
6990 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6991 Joel Brobecker <brobecker@adacore.com>
6992
6993 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6994 (dwarf2_evaluate_property): New function.
6995 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6996 * dwarf2read.c (attr_to_dynamic_prop): New function.
6997 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6998 attribute.
6999 * gdbtypes.c: Include dwarf2loc.h.
7000 (is_dynamic_type): New function.
7001 (resolve_dynamic_type): New function.
7002 (resolve_dynamic_bounds): New function.
7003 (get_type_length): New function.
7004 (check_typedef): Use get_type_length to compute type length.
7005 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7006 (TYPE_LOW_BOUND_KIND): New macro.
7007 (is_dynamic_type): New function prototype.
7008 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7009 to resolve dynamic properties of the type. Update comment.
7010 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7011
7012 2014-04-14 Richard Henderson <rth@redhat.com>
7013
7014 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7015
7016 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7017 Doug Evans <xdje42@gmail.com>
7018
7019 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7020 dereference TYPE_CODE_REF values.
7021
7022 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7023
7024 Revert the following changes due to regressions:
7025
7026 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7027 (dwarf2_evaluate_property): New function.
7028 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7029 * dwarf2read.c (attr_to_dynamic_prop): New function.
7030 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7031 attribute.
7032 * gdbtypes.c: Include dwarf2loc.h.
7033 (is_dynamic_type): New function.
7034 (resolve_dynamic_type): New function.
7035 (resolve_dynamic_bounds): New function.
7036 (get_type_length): New function.
7037 (check_typedef): Use get_type_length to compute type length.
7038 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7039 (TYPE_LOW_BOUND_KIND): New macro.
7040 (is_dynamic_type): New function prototype.
7041 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7042 to resolve dynamic properties of the type. Update comment.
7043 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7044
7045 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7046 passed to sizeof is dynamic evaluate the argument to compute the length.
7047
7048 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7049 value and retrieve the dynamic type size.
7050
7051 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7052 (ada_template_to_fixed_record_type_1): Likewise.
7053 (ada_to_fixed_type_1): Likewise.
7054 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7055 (cp_print_value): Likewise.
7056 * d-valprint.c (dynamic_array_type): Likewise.
7057 * eval.c (evaluate_subexp_with_coercion): Likewise.
7058 * findvar.c (address_of_variable): Likewise.
7059 * jv-valprint.c (java_value_print): Likewise.
7060 * valops.c (value_ind): Likewise.
7061 * value.c (coerce_ref): Likewise.
7062
7063 * c-typeprint.c (c_type_print_varspec_suffix): Added
7064 check for not yet resolved high bound. If unresolved, print
7065 "variable length" string to the console instead of random
7066 length.
7067
7068 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7069 property and store it as the high bound and flag the range accordingly.
7070 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7071 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7072 * gdbtypes.h (enum range_flags): New enum.
7073 (struct range_bounds): Add flags member.
7074
7075 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7076 points to a constant blob.
7077
7078 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7079 (evaluate_subexp_standard): Pass noside argument.
7080 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7081 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7082 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7083 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7084 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7085
7086 2014-04-11 Keith Seitz <keiths@redhat.com>
7087
7088 PR c++/16675
7089 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7090 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7091 reference types.
7092
7093 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7094
7095 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7096 (evaluate_subexp_standard): Pass noside argument.
7097 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7098 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7099 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7100 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7101 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7102
7103 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7104
7105 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7106 points to a constant blob.
7107
7108 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7109
7110 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7111 property and store it as the high bound and flag the range accordingly.
7112 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7113 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7114 * gdbtypes.h (enum range_flags): New enum.
7115 (struct range_bounds): Add flags member.
7116
7117 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7118
7119 * c-typeprint.c (c_type_print_varspec_suffix): Added
7120 check for not yet resolved high bound. If unresolved, print
7121 "variable length" string to the console instead of random
7122 length.
7123
7124 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7125
7126 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7127 (ada_template_to_fixed_record_type_1): Likewise.
7128 (ada_to_fixed_type_1): Likewise.
7129 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7130 (cp_print_value): Likewise.
7131 * d-valprint.c (dynamic_array_type): Likewise.
7132 * eval.c (evaluate_subexp_with_coercion): Likewise.
7133 * findvar.c (address_of_variable): Likewise.
7134 * jv-valprint.c (java_value_print): Likewise.
7135 * valops.c (value_ind): Likewise.
7136 * value.c (coerce_ref): Likewise.
7137
7138 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7139
7140 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7141 value and retrieve the dynamic type size.
7142
7143 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7144
7145 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7146 passed to sizeof is dynamic evaluate the argument to compute the length.
7147
7148 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7149
7150 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7151 (dwarf2_evaluate_property): New function.
7152 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7153 * dwarf2read.c (attr_to_dynamic_prop): New function.
7154 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7155 attribute.
7156 * gdbtypes.c: Include dwarf2loc.h.
7157 (is_dynamic_type): New function.
7158 (resolve_dynamic_type): New function.
7159 (resolve_dynamic_bounds): New function.
7160 (get_type_length): New function.
7161 (check_typedef): Use get_type_length to compute type length.
7162 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7163 (TYPE_LOW_BOUND_KIND): New macro.
7164 (is_dynamic_type): New function prototype.
7165 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7166 to resolve dynamic properties of the type. Update comment.
7167 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7168
7169 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7170
7171 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7172 declaring high/low bounds and change uses accordingly. Call
7173 create_range_type instead of create_static_range_type.
7174 * gdbtypes.c (create_range_type): New function.
7175 (create_range_type): Convert bounds into struct bound_prop and pass
7176 them to create_range_type.
7177 * gdbtypes.h (struct bound_prop): New struct.
7178 (create_range_type): New function prototype.
7179 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7180 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7181 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7182 part of the bound.
7183 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7184
7185 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7186
7187 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7188 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7189 * ada-lang.c: All uses of create_range_type updated.
7190 * coffread.c: All uses of create_range_type updated.
7191 * dwarf2read.c: All uses of create_range_type updated.
7192 * f-exp.y: All uses of create_range_type updated.
7193 * m2-valprint.c: All uses of create_range_type updated.
7194 * mdebugread.c: All uses of create_range_type updated.
7195 * stabsread.c: All uses of create_range_type updated.
7196 * valops.c: All uses of create_range_type updated.
7197 * valprint.c: All uses of create_range_type updated.
7198
7199 2014-04-10 Pedro Alves <palves@redhat.com>
7200
7201 * breakpoint.c (single_step_breakpoints)
7202 (single_step_gdbarch): Move up in the file.
7203 (one_breakpoint_xfer_memory): New function, factored out from ...
7204 (breakpoint_xfer_memory): ... here. Also process single-step
7205 breakpoints.
7206
7207 2014-04-09 Tristan Gingold <gingold@adacore.com>
7208
7209 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7210 comments.
7211 (darwin_decode_exception_message): Free port only after use.
7212
7213 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7214
7215 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7216 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7217 when setting the size of call_length.
7218
7219 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7220
7221 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7222 dereference TYPE_CODE_REF values.
7223
7224 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7225
7226 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7227 end of warning message.
7228
7229 2014-04-03 Doug Evans <dje@google.com>
7230
7231 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7232 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7233
7234 2014-04-02 Alan Modra <amodra@gmail.com>
7235
7236 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7237 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7238 (struct symbol_file_add_from_memory_args): Add size field.
7239 (find_vdso_size): New function.
7240 (add_vsyscall_page): Attempt to find vdso size.
7241
7242 2014-04-01 Doug Evans <dje@google.com>
7243
7244 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7245
7246 2014-04-01 Tristan Gingold <gingold@adacore.com>
7247
7248 * darwin-nat.c (darwin_encode_reply): Add prototype.
7249 (darwin_decode_exception_message): Reply to unknown inferiors.
7250 (darwin_decode_message): Handle message by id. Ignore message
7251 to unknown inferior.
7252 (darwin_wait): Discard unknown messages, add debug trace.
7253
7254 2014-03-31 Doug Evans <dje@google.com>
7255
7256 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7257 comp_dir_string.
7258
7259 2014-03-31 Doug Evans <dje@google.com>
7260
7261 New option "set print symbol-loading".
7262 * NEWS: Mention it.
7263 * solib.c (solib_read_symbols): Only print symbol loading messages
7264 if requested.
7265 (solib_add): If symbol loading is in "brief" mode, notify user
7266 symbols are being loaded.
7267 (reload_shared_libraries_1): Ditto.
7268 * symfile.c (print_symbol_loading_off): New static global.
7269 (print_symbol_loading_brief): New static global.
7270 (print_symbol_loading_full): New static global.
7271 (print_symbol_loading_enums): New static global.
7272 (print_symbol_loading): New static global.
7273 (print_symbol_loading_p): New function.
7274 (symbol_file_add_with_addrs): Only print symbol loading messages
7275 if requested.
7276 (_initialize_symfile): Register "print symbol-loading" set/show
7277 command.
7278 * symfile.h (print_symbol_loading_p): Declare.
7279
7280 2014-03-30 Doug Evans <xdje42@gmail.com>
7281
7282 * infrun.c (set_last_target_status): New function.
7283 (handle_inferior_event): Call it.
7284
7285 2014-03-30 Doug Evans <xdje42@gmail.com>
7286
7287 * inferior.h (enum stop_kind): Improve comment.
7288
7289 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7290
7291 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7292 a reference, strip the reference layer before calling
7293 the lang_ops value_has_mutated callback.
7294
7295 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7296
7297 Remove some globals from our parser.
7298 * language.c (unk_lang_parser): Add "struct parser_state"
7299 argument.
7300 * language.h (struct language_defn) <la_parser>: Likewise.
7301 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7302 (initialize_expout): Add "struct parser_state" argument.
7303 Rewrite function to use the parser state.
7304 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7305 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7306 write_exp_elt_longcst, write_exp_elt_dblcst,
7307 write_exp_elt_decfloatcst, write_exp_elt_type,
7308 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7309 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7310 write_dollar_variable): Likewise.
7311 (parse_exp_in_context_1): Use parser state.
7312 (insert_type_address_space): Add "struct parser_state" argument.
7313 Use parser state.
7314 (increase_expout_size): New function.
7315 * parser-defs.h: Forward declare "struct language_defn" and
7316 "struct parser_state".
7317 (expout, expout_size, expout_ptr): Remove extern declarations.
7318 (parse_gdbarch, parse_language): Rewrite macro declarations to
7319 accept the parser state.
7320 (struct parser_state): New struct.
7321 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7322 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7323 write_exp_elt_decfloatcst, write_exp_elt_type,
7324 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7325 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7326 write_exp_msymbol, write_dollar_variable,
7327 mark_struct_expression, insert_type_address_space): Add "struct
7328 parser_state" argument.
7329 (increase_expout_size): New function.
7330 * utils.c (do_clear_parser_state): New function.
7331 (make_cleanup_clear_parser_state): Likewise.
7332 * utils.h (make_cleanup_clear_parser_state): New function
7333 prototype.
7334 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7335 Update calls to write_exp* in order to pass the parser state.
7336 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7337 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7338 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7339 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7340 * stap-probe.c (stap_parse_register_operand): Likewise.
7341 (stap_parse_single_operand): Likewise.
7342 (stap_parse_argument_1): Likewise.
7343 (stap_parse_argument): Use parser state.
7344 * stap-probe.h: Include "parser-defs.h".
7345 (struct stap_parse_info) <pstate>: New field.
7346 * c-exp.y (parse_type): Rewrite to use parser state.
7347 (yyparse): Redefine to c_parse_internal.
7348 (pstate): New global variable.
7349 (parse_number): Add "struct parser_state" argument.
7350 (write_destructor_name): Likewise.
7351 (type_exp): Update calls to write_exp* and similars in order to
7352 use parser state.
7353 (exp1, exp, variable, qualified_name, space_identifier,
7354 typename, typebase): Likewise.
7355 (write_destructor_name, parse_number, lex_one_token,
7356 classify_name, classify_inner_name, c_parse): Add "struct
7357 parser_state" argument. Update function to use parser state.
7358 * c-lang.h: Forward declare "struct parser_state".
7359 (c_parse): Add "struct parser_state" argument.
7360 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7361 (yyparse): Redefine macro to ada_parse_internal.
7362 (pstate): New variable.
7363 (write_int, write_object_renaming, write_var_or_type,
7364 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7365 type_int, type_long, type_long_long, type_float, type_double,
7366 type_long_double, type_char, type_boolean, type_system_address):
7367 Add "struct parser_state" argument.
7368 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7369 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7370 var_or_type, aggregate, aggregate_component_list,
7371 positional_list, others, component_group,
7372 component_associations): Update calls to write_exp* and similar
7373 functions in order to use parser state.
7374 (ada_parse, write_var_from_sym, write_int,
7375 write_exp_op_with_string, write_object_renaming,
7376 find_primitive_type, write_selectors, write_ambiguous_var,
7377 write_var_or_type, write_name_assoc, type_int, type_long,
7378 type_long_long, type_float, type_double, type_long_double,
7379 type_char, type_boolean, type_system_address): Add "struct
7380 parser_state" argument. Adjust function to use parser state.
7381 * ada-lang.c (parse): Likewise.
7382 * ada-lang.h: Forward declare "struct parser_state".
7383 (ada_parse): Add "struct parser_state" argument.
7384 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7385 calls to both functions.
7386 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7387 parser state.
7388 (yyparse): Redefine macro to f_parse_internal.
7389 (pstate): New variable.
7390 (parse_number): Add "struct parser_state" argument.
7391 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7392 and similars in order to use parser state.
7393 (parse_number): Adjust code to use parser state.
7394 (yylex): Likewise.
7395 (f_parse): New function.
7396 * f-lang.h: Forward declare "struct parser_state".
7397 (f_parse): Add "struct parser_state" argument.
7398 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7399 parser state.
7400 (yyparse): Redefine macro for java_parse_internal.
7401 (pstate): New variable.
7402 (push_expression_name, push_expression_name, insert_exp): Add
7403 "struct parser_state" argument.
7404 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7405 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7406 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7407 PostIncrementExpression, PostDecrementExpression,
7408 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7409 UnaryExpressionNotPlusMinus, CastExpression,
7410 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7411 RelationalExpression, EqualityExpression, AndExpression,
7412 ExclusiveOrExpression, InclusiveOrExpression,
7413 ConditionalAndExpression, ConditionalOrExpression,
7414 ConditionalExpression, Assignment, LeftHandSide): Update
7415 calls to write_exp* and similars in order to use parser state.
7416 (parse_number): Ajust code to use parser state.
7417 (yylex): Likewise.
7418 (java_parse): New function.
7419 (push_variable): Add "struct parser_state" argument. Adjust
7420 code to user parser state.
7421 (push_fieldnames, push_qualified_expression_name,
7422 push_expression_name, insert_exp): Likewise.
7423 * jv-lang.h: Forward declare "struct parser_state".
7424 (java_parse): Add "struct parser_state" argument.
7425 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7426 parser state.
7427 (yyparse): Redefine macro to m2_parse_internal.
7428 (pstate): New variable.
7429 (type_exp, exp, fblock, variable, type): Update calls to
7430 write_exp* and similars to use parser state.
7431 (yylex): Likewise.
7432 (m2_parse): New function.
7433 * m2-lang.h: Forward declare "struct parser_state".
7434 (m2_parse): Add "struct parser_state" argument.
7435 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7436 * objc-lang.h: Forward declare "struct parser_state".
7437 (end_msglist): Add "struct parser_state" argument.
7438 * p-exp.y (parse_type): Rewrite macro to use parser state.
7439 (yyparse): Redefine macro to pascal_parse_internal.
7440 (pstate): New variable.
7441 (parse_number): Add "struct parser_state" argument.
7442 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7443 write_exp* and similars in order to use parser state.
7444 (parse_number, yylex): Adjust code to use parser state.
7445 (pascal_parse): New function.
7446 * p-lang.h: Forward declare "struct parser_state".
7447 (pascal_parse): Add "struct parser_state" argument.
7448 * go-exp.y (parse_type): Rewrite macro to use parser state.
7449 (yyparse): Redefine macro to go_parse_internal.
7450 (pstate): New variable.
7451 (parse_number): Add "struct parser_state" argument.
7452 (type_exp, exp1, exp, variable, type): Update calls to
7453 write_exp* and similars in order to use parser state.
7454 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7455 to use parser state.
7456 (go_parse): Likewise.
7457 * go-lang.h: Forward declare "struct parser_state".
7458 (go_parse): Add "struct parser_state" argument.
7459
7460 2014-03-27 Doug Evans <dje@google.com>
7461
7462 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7463
7464 2014-03-27 Doug Evans <dje@google.com>
7465
7466 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7467 Remove argument abbrev_section. All callers updated.
7468
7469 2014-03-27 Doug Evans <dje@google.com>
7470
7471 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7472 addr_base, ranges_base.
7473
7474 2014-03-26 Keith Seitz <keiths@redhat.com>
7475
7476 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7477 types, not VAR_DOMAIN.
7478
7479 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7480
7481 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7482 "ra" registers.
7483 * features/nios2-linux.c: Regenerated.
7484 * features/nios2.c: Regenerated.
7485
7486 2014-03-25 Pedro Alves <palves@redhat.com>
7487
7488 * cli/cli-script.c (script_from_file): Force the interpreter to
7489 sync mode.
7490
7491 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7492
7493 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7494 small stack allocation.
7495
7496 2014-03-24 Tristan Gingold <gingold@adacore.com>
7497
7498 * darwin-nat.c (exc_server): Remove unused prototype.
7499 (darwin_dump_message): Correctly display data on x86_64.
7500 (darwin_encode_reply): Fix style.
7501 Add comments and fix indentation.
7502
7503 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7504
7505 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7506
7507 2014-03-22 Doug Evans <xdje42@gmail.com>
7508
7509 * infcmd.c: Whitespace fixes.
7510 (interrupt_command): Merge two function comments into one.
7511
7512 2014-03-22 Doug Evans <xdje42@gmail.com>
7513
7514 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7515 All uses updated.
7516
7517 2014-03-22 Yao Qi <yao@codesourcery.com>
7518
7519 * remote.c (target_read_live_memory): Remove.
7520 (memory_xfer_live_readonly_partial): Rename it to
7521 remote_xfer_live_readonly_partial. Remove argument 'object'.
7522 All callers updated. Call remote_read_bytes_1
7523 instead of target_read_live_memory.
7524 * tracepoint.c (set_traceframe_number): Remove.
7525 (make_cleanup_restore_traceframe_number): Likewise .
7526 * tracepoint.h (set_traceframe_number): Remove declaration.
7527 (make_cleanup_restore_traceframe_number): Likewise.
7528
7529 2014-03-22 Yao Qi <yao@codesourcery.com>
7530
7531 * remote.c (remote_read_bytes): Move code on reading from the
7532 remote stub to ...
7533 (remote_read_bytes_1): ... here. New function.
7534
7535 2014-03-22 Yao Qi <yao@codesourcery.com>
7536
7537 * ctf.c (ctf_xfer_partial): Check the return value of
7538 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7539 return TARGET_XFER_UNAVAILABLE.
7540 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7541 * target.c (target_read_live_memory): Move it to remote.c.
7542 (memory_xfer_live_readonly_partial): Likewise.
7543 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7544 * remote.c (target_read_live_memory): Moved from target.c.
7545 (memory_xfer_live_readonly_partial): Likewise.
7546 (remote_read_bytes): Factored out from
7547 memory_xfer_partial_1.
7548
7549 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7550
7551 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7552 NULL pointer.
7553
7554 2014-03-21 Pedro Alves <palves@redhat.com>
7555
7556 * infrun.c (normal_stop): Extend comment.
7557
7558 2014-03-21 Hui Zhu <hui@codesourcery.com>
7559 Pedro Alves <palves@redhat.com>
7560
7561 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7562 static buffer.
7563 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7564 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7565 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7566
7567 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7568
7569 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7570 `z' formatted output modifier.
7571
7572 2014-03-20 Tom Tromey <tromey@redhat.com>
7573 Sergio Durigan Junior <sergiodj@redhat.com>
7574
7575 * probe.c (parse_probes): Turn assert into an ordinary error.
7576 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7577 exceptions when parsing probes. Rearrange the code for clarity.
7578
7579 2014-03-20 Tom Tromey <tromey@redhat.com>
7580
7581 PR gdb/14135
7582 * top.c (execute_command): Only dispatch events if the command
7583 started the target.
7584
7585 2014-03-20 Tom Tromey <tromey@redhat.com>
7586
7587 PR cli/15718
7588 * infcall.c: Include event-top.h.
7589 (run_inferior_call): Call async_disable_stdin if needed.
7590
7591 2014-03-20 Pedro Alves <palves@redhat.com>
7592
7593 * infrun.c (prepare_to_proceed): Delete.
7594 (thread_still_needs_step_over): New function.
7595 (find_thread_needs_step_over): New function.
7596 (proceed): If the current thread needs a step-over, set its
7597 steping_over_breakpoint flag. Adjust to use
7598 find_thread_needs_step_over instead of prepare_to_proceed.
7599 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7600 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7601 breakpoint.
7602 (switch_back_to_stepped_thread): Step over breakpoints of all
7603 threads not the stepping thread, before switching back to the
7604 stepping thread.
7605
7606 2014-03-20 Pedro Alves <palves@redhat.com>
7607
7608 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7609 extern.
7610 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7611 * infrun.c (saved_singlestep_ptid)
7612 (stepping_past_singlestep_breakpoint): Delete.
7613 (resume): Remove stepping_past_singlestep_breakpoint handling.
7614 (proceed): Store the prev_pc of the stepping thread too.
7615 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7616 singlestep_pc.
7617 (enum infwait_states): Delete infwait_thread_hop_state.
7618 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7619 field.
7620 (handle_inferior_event): Adjust.
7621 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7622 handling and the thread-hop code. Before removing single-step
7623 breakpoints, check whether the thread hit a single-step breakpoint
7624 of another thread. If it did, the trap is not a random signal.
7625 (switch_back_to_stepped_thread): If the event thread hit a
7626 single-step breakpoint, unblock it before switching to the
7627 stepping thread. Handle the case of the stepped thread having
7628 advanced already.
7629 (keep_going): Handle the case of the current thread moving past a
7630 single-step breakpoint.
7631
7632 2014-03-20 Pedro Alves <palves@redhat.com>
7633
7634 PR breakpoints/7143
7635 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7636 are being stepped over.
7637 (breakpoint_address_match): Make extern.
7638 * breakpoint.h (breakpoint_address_match): New declaration.
7639 * inferior.h (stepping_past_instruction_at): New declaration.
7640 * infrun.c (struct step_over_info): New type.
7641 (step_over_info): New global.
7642 (set_step_over_info, clear_step_over_info)
7643 (stepping_past_instruction_at): New functions.
7644 (handle_inferior_event): Clear the step-over info when
7645 trap_expected is cleared.
7646 (resume): Remove now stale comment.
7647 (clear_proceed_status): Clear step-over info.
7648 (proceed): Adjust step-over handling to set or clear the step-over
7649 info instead of removing all breakpoints.
7650 (handle_signal_stop): When setting up a thread-hop, don't remove
7651 breakpoints here.
7652 (stop_stepping): Clear step-over info.
7653 (keep_going): Adjust step-over handling to set or clear step-over
7654 info and then always inserting breakpoints, instead of removing
7655 all breakpoints when stepping over one.
7656
7657 2014-03-20 Pedro Alves <palves@redhat.com>
7658
7659 * infrun.c (previous_inferior_ptid): Adjust comment.
7660 (deferred_step_ptid): Delete.
7661 (infrun_thread_ptid_changed, prepare_to_proceed)
7662 (init_wait_for_inferior): Adjust.
7663 (handle_signal_stop): Delete deferred_step_ptid handling.
7664
7665 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7666
7667 PR gdb/15358
7668 * defs.h (sync_quit_force_run): New declaration.
7669 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7670 * event-top.c (async_sigterm_handler): New declaration.
7671 (async_sigterm_token): New variable.
7672 (async_init_signals): Create also async_sigterm_token.
7673 (async_sigterm_handler): New function.
7674 (sync_quit_force_run): New variable.
7675 (handle_sigterm): Replace quit_force call by other calls.
7676 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7677
7678 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7679
7680 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7681 offset into SPE pseudo registers.
7682
7683 2014-03-18 Pedro Alves <palves@redhat.com>
7684
7685 PR gdb/13860
7686 * inferior.h (print_stop_event): Declare.
7687 * infrun.c (print_stop_event): New, factored out from ...
7688 (normal_stop): ... this.
7689 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7690 of bpstat_print/print_stack_frame.
7691
7692 2014-03-17 Tom Tromey <tromey@redhat.com>
7693
7694 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7695
7696 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7697
7698 * ada-lang.c (decode_constrained_packed_array): Perform a
7699 minimal coercion for reference with coerce_ref instead of
7700 ada_coerce_ref.
7701
7702 2014-03-17 Tristan Gingold <gingold@adacore.com>
7703
7704 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7705 (darwin_solib_create_inferior_hook): Emit a warning if version
7706 is unhandled.
7707
7708 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7709
7710 * python/py-value.c (get_field_flag): Cast flag_name argument to
7711 PyObject_GetAttrString to support Python 2.4.
7712
7713 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7714
7715 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7716 (Global Maintainers): Remove Jan Kratochvil.
7717
7718 2014-03-14 Pedro Alves <palves@redhat.com>
7719
7720 * inferior.h (terminal_ours_for_output): Rename to ...
7721 (child_terminal_ours_for_output): ... this.
7722 (terminal_save_ours): Rename to ...
7723 (child_terminal_save_ours): ... this.
7724 (terminal_ours): Rename to ...
7725 (child_terminal_ours): ... this.
7726 (terminal_inferior): Rename to ...
7727 (child_terminal_inferior): ... this.
7728 (terminal_init_inferior): Rename to ...
7729 (child_terminal_init_inferior): ... this.
7730 (terminal_init_inferior_with_pgrp): Rename to ...
7731 (child_terminal_init_inferior_with_pgrp): ... this.
7732 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7733 (child_terminal_init_with_pgrp): ... this.
7734 (terminal_save_ours): Rename to ...
7735 (child_terminal_save_ours): ... this.
7736 (terminal_init_inferior): Rename to ...
7737 (child_terminal_init): ... this. Adjust.
7738 (terminal_inferior): Rename to ...
7739 (child_terminal_inferior): ... this.
7740 (terminal_ours_for_output): Rename to ...
7741 (child_terminal_ours_for_output): ... this. Adjust.
7742 (terminal_ours): Rename to ...
7743 (child_terminal_ours): ... this.
7744 (terminal_ours_1): Rename to ...
7745 (child_terminal_ours_1): ... this. Adjust.
7746 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7747 * windows-nat.c (do_initial_windows_stuff): Adjust.
7748 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7749 (gnu_terminal_init): ... this. Adjust.
7750 (gnu_target): Adjust.
7751 * inf-child.c (inf_child_target): Adjust.
7752
7753 2014-03-13 Doug Evans <xdje42@gmail.com>
7754
7755 PR guile/16612
7756 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7757 new eq?-hashtab.
7758
7759 2014-03-13 Doug Evans <xdje42@gmail.com>
7760
7761 * value.c (record_latest_value): Call release_value_or_incref
7762 instead of release_value.
7763
7764 2014-03-13 Pedro Alves <palves@redhat.com>
7765
7766 * procfs.c (procfs_target): Don't override to_shortname,
7767 to_longname or to_doc.
7768
7769 2014-03-13 Pedro Alves <palves@redhat.com>
7770
7771 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7772 Unix in user visible strings.
7773
7774 2014-03-12 Stan Shebs <stan@codesourcery.com>
7775
7776 * gdbtypes.h: Annotate comments for Doxygen, add a page
7777 block comment with some general info.
7778
7779 2014-03-12 Pedro Alves <palves@redhat.com>
7780
7781 * infcmd.c (prepare_execution_command): New function, factored out
7782 from several execution commands.
7783 (run_command_1, continue_command, step_1, jump_command)
7784 (signal_command, until_command, advance_command, finish_command)
7785 (attach_command): Use prepare_execution_command.
7786
7787 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7788
7789 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7790 (MAX_BPTS): Define.
7791 (MAX_WPTS): Define.
7792 (struct arm_linux_thread_points): Removed.
7793 (struct arm_linux_process_info): New.
7794 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7795 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7796 (arm_linux_find_breakpoints_by_tid): Removed.
7797 (struct arch_lwp_info): New.
7798 (arm_linux_find_process_pid): New functions.
7799 (arm_linux_add_process): New functions.
7800 (arm_linux_process_info_get): New functions.
7801 (arm_linux_forget_process): New function.
7802 (arm_linux_get_debug_reg_state): New function.
7803 (struct update_registers_data): New.
7804 (update_registers_callback): New function.
7805 (arm_linux_insert_hw_breakpoint1): Updated.
7806 (arm_linux_remove_hw_breakpoint1): Updated.
7807 (arm_linux_insert_hw_breakpoint): Updated.
7808 (arm_linux_remove_hw_breakpoint): Updated.
7809 (arm_linux_insert_watchpoint): Updated.
7810 (arm_linux_remove_watchpoint): Updated.
7811 (arm_linux_new_thread): Updated.
7812 (arm_linux_prepare_to_resume): New function.
7813 (arm_linux_new_fork): New function.
7814 (_initialize_arm_linux_nat): Updated.
7815
7816 2014-03-12 Pedro Alves <palves@redhat.com>
7817
7818 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7819
7820 2014-03-12 Tom Tromey <tromey@redhat.com>
7821
7822 * inf-child.c (return_zero): New function.
7823 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7824 * aix-thread.c (aix_thread_inferior_created): New function.
7825 (aix_thread_attach): Remove.
7826 (init_aix_thread_ops): Don't set to_attach.
7827 (_initialize_aix_thread): Register inferior_created observer.
7828 * corelow.c (init_core_ops): Don't set to_attach or
7829 to_create_inferior.
7830 * exec.c (init_exec_ops): Don't set to_attach or
7831 to_create_inferior.
7832 * infcmd.c (run_command_1): Use find_run_target. Make direct
7833 target calls.
7834 (attach_command): Use find_attach_target. Make direct target
7835 calls.
7836 * record-btrace.c (init_record_btrace_ops): Don't set
7837 to_create_inferior.
7838 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7839 Remove.
7840 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7841 set to_create_inferior.
7842 * target.c (complete_target_initialization): Add assertion.
7843 (target_create_inferior): Remove.
7844 (find_default_attach, find_default_create_inferior): Remove.
7845 (find_attach_target, find_run_target): New functions.
7846 (find_default_is_async_p, find_default_can_async_p)
7847 (target_supports_non_stop, target_attach): Remove.
7848 (init_dummy_target): Don't set to_create_inferior or
7849 to_supports_non_stop.
7850 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7851 TARGET_DEFAULT_FUNC.
7852 <to_create_inferior>: Add comment.
7853 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7854 TARGET_DEFAULT_RETURN.
7855 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7856 (find_attach_target, find_run_target): Declare.
7857 (target_create_inferior): Remove.
7858 (target_has_execution_1): Update comment.
7859 (target_supports_non_stop): Remove.
7860 * target-delegates.c: Rebuild.
7861
7862 2014-03-12 Pedro Alves <palves@redhat.com>
7863
7864 * inf-child.h: Update comment to not mention Unix.
7865
7866 2014-03-12 Pedro Alves <palves@redhat.com>
7867
7868 * inf-child.c: Update top comment to not mention Unix. Add
7869 generic comment describing how this target is meant to be used.
7870 (inf_child_post_attach, inf_child_post_startup_inferior)
7871 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7872 Unix in comment.
7873
7874 2014-03-12 Pedro Alves <palves@redhat.com>
7875
7876 * nto-procfs.c: Include inf-child.h.
7877 (procfs_ops): Delete global.
7878 (procfs_can_run): Delete method.
7879 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7880 target pointer instead of referencing procfs_ops.
7881 (procfs_prepare_to_store): Delete.
7882 (init_procfs_ops): Delete function.
7883 (procfs_target): New function, based on init_procfs_ops, but
7884 inherit inf_child_target.
7885 (_initialize_procfs): Use procfs_target.
7886
7887 2014-03-12 Pedro Alves <palves@redhat.com>
7888
7889 * windows-nat.c: Include inf-child.h.
7890 (windows_ops): Delete global.
7891 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7892 methods.
7893 (init_windows_ops): Delete function.
7894 (windows_target): New function, based on init_windows_ops, but
7895 inherit inf_child_target.
7896 (_initialize_windows_nat): Use windows_target. Install x86
7897 specific target methods here.
7898
7899 2014-03-10 Doug Evans <xdje42@gmail.com>
7900
7901 * guile/guile.c (call_initialize_gdb_module): New function.
7902 (initialize_guile): Replace call to scm_init_guile with call to
7903 scm_with_guile.
7904
7905 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7906
7907 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7908 in call to TYPE_CODE macro.
7909
7910 2014-03-10 Jerome Guitton <guitton@adacore.com>
7911
7912 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7913 Resolve tagged types to full view.
7914
7915 2014-03-10 Hui Zhu <hui@codesourcery.com>
7916
7917 * target.h (target_insert_breakpoint): Remove "hardware" from its
7918 comments.
7919
7920 2014-03-07 Doug Evans <dje@google.com>
7921
7922 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7923
7924 2014-03-07 Doug Evans <dje@google.com>
7925
7926 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7927 Remove unused local comp_dir_attr. Assert exactly one of
7928 stub_comp_unit_die, stub_comp_dir is non-NULL.
7929
7930 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7931
7932 * target.h (complete_target_initialization, add_target):
7933 Add comment.
7934
7935 2014-03-07 Pedro Alves <palves@redhat.com>
7936
7937 * go32-nat.c: Include inf-child.h.
7938 (go32_ops): Delete global.
7939 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7940 Delete methods.
7941 (go32_create_inferior): Push the passed in target pointer instead
7942 of referencing go32_ops.
7943 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7944 (go32_target): New function, based on init_go32_ops, but inherit
7945 inf_child_target.
7946 (_initialize_go32_nat): Use go32_target. Move parts of
7947 init_go32_ops here.
7948
7949 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7950
7951 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7952 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7953 SYMBOL_VALUE_ADDRESS.
7954 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7955
7956 2014-03-06 Yao Qi <yao@codesourcery.com>
7957
7958 * breakpoint.c (get_tracepoint_by_number): Remove argument
7959 optional_p. All callers updated. Adjust comments. Update
7960 output message.
7961 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7962
7963 2014-03-06 Yao Qi <yao@codesourcery.com>
7964
7965 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7966 early if get_number returns zero. Use 'p' instead of 'args'.
7967
7968 2014-03-06 Yao Qi <yao@codesourcery.com>
7969
7970 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7971 message.
7972
7973 2014-03-06 Yao Qi <yao@codesourcery.com>
7974
7975 PR breakpoints/16508
7976 * tracepoint.c (check_trace_running): New function.
7977 (trace_find_command): Move code to check_trace_running and
7978 call check_trace_running.
7979 (trace_find_pc_command): Likewise.
7980 (trace_find_tracepoint_command): Likewise.
7981 (trace_find_line_command): Likewise.
7982 (trace_find_range_command): Likewise.
7983 * tracepoint.h (check_trace_running): Likewise.
7984 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7985
7986 2014-03-06 Yao Qi <yao@codesourcery.com>
7987
7988 * target.h (struct target_ops) <to_traceframe_info>: Use
7989 TARGET_DEFAULT_NORETURN (tcomplain ()).
7990 * target-delegates.c: Regenerated.
7991
7992 2014-03-05 Pedro Alves <palves@redhat.com>
7993
7994 PR gdb/16575
7995 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7996 void. Update comment.
7997 (dcache_xfer_memory): Delete.
7998 (dcache_read_memory_partial): New, based on the read bits of
7999 dcache_xfer_memory.
8000 (dcache_update): Add status parameter. Use ULONGEST for len, and
8001 adjust. Discard cache lines if the reason for the update was
8002 error.
8003 * dcache.h (dcache_xfer_memory): Delete declaration.
8004 (dcache_read_memory_partial): New declaration.
8005 (dcache_update): Update prototype.
8006 * target.c (raw_memory_xfer_partial): Update the dcache here.
8007 (memory_xfer_partial_1): Don't handle dcache writes here.
8008
8009 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8010
8011 * remote-sim.c (gdbsim_load): Add const to prog.
8012
8013 2014-03-03 Tom Tromey <tromey@redhat.com>
8014
8015 * elfread.c (probe_key): Change to bfd_data.
8016 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8017 now per-BFD, not per-objfile.
8018 * stap-probe.c (stap_probe_destroy): Update comment.
8019 (handle_stap_probe): Allocate on the per-BFD obstack.
8020
8021 2014-03-03 Tom Tromey <tromey@redhat.com>
8022
8023 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8024 * breakpoint.c (create_longjmp_master_breakpoint): Use
8025 get_probe_address.
8026 (add_location_to_breakpoint, bkpt_probe_insert_location)
8027 (bkpt_probe_remove_location): Update.
8028 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8029 * elfread.c (elf_symfile_relocate_probe): Remove.
8030 (elf_probe_fns): Update.
8031 (insert_exception_resume_breakpoint): Change type of "probe"
8032 parameter to bound_probe.
8033 (check_exception_resume): Update.
8034 * objfiles.c (objfile_relocate1): Don't relocate probes.
8035 * probe.c (bound_probe_s): New typedef.
8036 (parse_probes): Use get_probe_address. Set sal's objfile.
8037 (find_probe_by_pc): Return a bound_probe.
8038 (collect_probes): Return a VEC(bound_probe_s).
8039 (compare_probes): Update.
8040 (gen_ui_out_table_header_info): Change type of "probes"
8041 parameter. Update.
8042 (info_probes_for_ops): Update.
8043 (get_probe_address): New function.
8044 (probe_safe_evaluate_at_pc): Update.
8045 * probe.h (struct probe_ops) <get_probe_address>: New field.
8046 <set_semaphore, clear_semaphore>: Add objfile parameter.
8047 (struct probe) <objfile>: Remove field.
8048 <arch>: New field.
8049 <address>: Update comment.
8050 (struct bound_probe): New.
8051 (find_probe_by_pc): Return a bound_probe.
8052 (get_probe_address): Declare.
8053 * solib-svr4.c (struct probe_and_action) <address>: New field.
8054 (hash_probe_and_action, equal_probe_and_action): Update.
8055 (register_solib_event_probe): Add address parameter.
8056 (solib_event_probe_at): Update.
8057 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8058 get_probe_address.
8059 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8060 (stap_get_probe_address): New function.
8061 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8062 (compile_probe_arg): Update.
8063 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8064 address.
8065 (handle_stap_probe): Don't relocate the probe.
8066 (stap_relocate): Remove.
8067 (stap_gen_info_probes_table_values): Update.
8068 (stap_probe_ops): Remove stap_relocate.
8069 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8070 (debug_sym_probe_fns): Update.
8071 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8072 * symtab.c (init_sal): Use memset.
8073 * symtab.h (struct symtab_and_line) <objfile>: New field.
8074 * tracepoint.c (start_tracing, stop_tracing): Update.
8075
8076 2014-03-03 Tom Tromey <tromey@redhat.com>
8077
8078 * probe.h (parse_probes, find_probe_by_pc)
8079 (find_probes_in_objfile): Fix comments.
8080
8081 2014-03-02 Doug Evans <xdje42@gmail.com>
8082
8083 * infrun.c (handle_signal_stop): Replace test for
8084 TARGET_WAITKIND_STOPPED with an assert.
8085
8086 2014-03-02 Doug Evans <xdje42@gmail.com>
8087
8088 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8089
8090 2014-03-02 Doug Evans <xdje42@gmail.com>
8091
8092 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8093
8094 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8095
8096 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8097
8098 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8099
8100 * i386obsd-nat.c: Include "obsd-nat.h".
8101 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8102 add_target.
8103 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8104
8105 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8106
8107 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8108
8109 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8110
8111 * mips64obsd-nat.c: Include "obsd-nath".
8112 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8113 add_target
8114 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8115
8116 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8117
8118 * amd64obsd-nat.c: Include "obsd-nat,h.
8119 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8120 add_target.
8121 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8122
8123 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8124
8125 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8126 (find_overload_match): Update call to find_oload_champ.
8127 (find_oload_champ_namespace_loop): Likewise
8128
8129 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8130
8131 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8132
8133 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8134 * config/sparc/obsd64.mh: New file.
8135 * sparc64obsd-nat.c: New file.
8136
8137 * obsd-nat.h: New file.
8138 * obsd-nat.c: New file.
8139 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8140 (ALLDEPFILES): Add obsd-nat.c.
8141
8142 2014-02-28 Tom Tromey <tromey@redhat.com>
8143
8144 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8145 * cli-out.h (cli_ui_out_impl): Now const.
8146 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8147 * ui-out.c (struct ui_out) <impl>: Now const.
8148 (default_ui_out_impl): Now const.
8149 (ui_out_new): Make 'impl' parameter const.
8150 * ui-out.h (ui_out_new): Update.
8151
8152 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8153
8154 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8155
8156 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8157
8158 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8159
8160 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8161
8162 Additional PR 8882 fix.
8163 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8164
8165 2014-02-27 Pedro Alves <palves@redhat.com>
8166
8167 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8168 isn't set.
8169
8170 2014-02-27 Pedro Alves <palves@redhat.com>
8171
8172 PR 12702
8173 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8174 * nat/linux-waitpid.c: Include string.h.
8175 (status_to_str): Moved here and made extern.
8176 * nat/linux-waitpid.h (status_to_str): New declaration.
8177
8178 2014-02-27 Hui Zhu <hui@codesourcery.com>
8179
8180 PR 12702
8181 * infrun.c (ptid_match): Move ...
8182 * common/ptid.c (ptid_match): ... here.
8183 * inferior.h (ptid_match): Move ...
8184 * common/ptid.h (ptid_match): ... here.
8185
8186 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8187
8188 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8189 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8190 gdb_target_obs.
8191
8192 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8193
8194 * obsd-tdep.c (obsd_auxv_parse): New function.
8195 (obsd_init_abi): Set auxv_parse.
8196
8197 * gdbarch.sh (auxv_parse): New.
8198 * gdbarch.h: Regenerated.
8199 * gdbarch.c: Regenerated.
8200 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8201
8202 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8203
8204 * guile/scm-value.c (gdbscm_history_append_x): New function.
8205 (value_functions): Add it.
8206
8207 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8208
8209 * dwarf2read.c (attr_value_as_address): New function.
8210 (dwarf2_find_base_address, read_call_site_scope): Use
8211 attr_value_as_address in place of DW_ADDR.
8212 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8213 the low and high addresses. Slight rework of the handling
8214 of the high pc being a constant form, and limit it to
8215 DWARF verson 4 or higher.
8216 (dwarf2_record_block_ranges): Likewise.
8217 (read_partial_die): Likewise.
8218 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8219
8220 2014-02-26 Tom Tromey <tromey@redhat.com>
8221
8222 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8223
8224 2014-02-26 Tom Tromey <tromey@redhat.com>
8225
8226 * elfread.c (elf_read_minimal_symbols): Return early if
8227 minimal symbols have already been read. Add "ei" parameter.
8228 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8229 * minsyms.c (prim_record_minimal_symbol_full): Update.
8230 * objfiles.h (struct objstats) <n_minsyms>: Move...
8231 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8232 * symmisc.c (print_objfile_statistics): Update.
8233
8234 2014-02-26 Tom Tromey <tromey@redhat.com>
8235
8236 * elfread.c (elf_read_minimal_symbols): New function, from
8237 elf_symfile_read.
8238 (elf_symfile_read): Call it.
8239
8240 2014-02-26 Tom Tromey <tromey@redhat.com>
8241
8242 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8243 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8244 (lookup_minimal_symbol_solib_trampoline)
8245 (lookup_minimal_symbol_by_pc_section_1)
8246 (lookup_minimal_symbol_and_objfile): Update.
8247 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8248 Don't allocate a minimal symbol if minsyms have already been read.
8249 (build_minimal_symbol_hash_tables): Update.
8250 (install_minimal_symbols): Do nothing if minsyms already read.
8251 Use the per-BFD obstack.
8252 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8253 * objfiles.c (allocate_objfile): Call
8254 terminate_minimal_symbol_table later.
8255 (have_minimal_symbols): Update.
8256 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8257 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8258 Move from struct objfile.
8259 <minsyms_read>: New field.
8260 (struct objfile) <msymbols, minimal_symbol_count,
8261 msymbol_hash, msymbol_demangled_hash>: Move.
8262 (ALL_OBJFILE_MSYMBOLS): Update.
8263 * symfile.c (read_symbols): Set minsyms_read.
8264 (reread_symbols): Update.
8265 * symmisc.c (dump_objfile, dump_msymbols): Update.
8266
8267 2014-02-26 Tom Tromey <tromey@redhat.com>
8268
8269 * minsyms.c (msymbols_sort): Remove.
8270 * minsyms.h (msymbols_sort): Remove.
8271 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8272 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8273 * elfread.c (elf_symtab_read): Don't add section offsets.
8274 * xcoffread.c (record_minimal_symbol): Don't add section offset
8275 to minimal symbol address.
8276 * somread.c (text_offset, data_offset): Remove.
8277 (som_symtab_read): Don't add section offsets to minimal symbol
8278 addresses.
8279 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8280 Don't add section offsets to minimal symbols.
8281 * coffread.c (coff_symtab_read): Don't add section offsets
8282 to minimal symbol addresses.
8283 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8284 to minimal symbol addresses.
8285 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8286 section offset to minimal symbol addresses.
8287 * mdebugread.c (parse_partial_symbols): Don't add section
8288 offset to minimal symbol addresses.
8289 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8290 offset to minimal symbol addresses.
8291
8292 2014-02-26 Tom Tromey <tromey@redhat.com>
8293
8294 * ada-lang.c (ada_main_name): Update.
8295 (ada_add_standard_exceptions): Update.
8296 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8297 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8298 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8299 * auxv.c (ld_so_xfer_auxv): Update.
8300 * avr-tdep.c (avr_scan_prologue): Update.
8301 * ax-gdb.c (gen_var_ref): Update.
8302 * blockframe.c (get_pc_function_start)
8303 (find_pc_partial_function_gnu_ifunc): Update.
8304 * breakpoint.c (create_overlay_event_breakpoint)
8305 (create_longjmp_master_breakpoint)
8306 (create_std_terminate_master_breakpoint)
8307 (create_exception_master_breakpoint): Update.
8308 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8309 * c-valprint.c (c_val_print): Update.
8310 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8311 * common/agent.c (agent_look_up_symbols): Update.
8312 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8313 * dwarf2loc.c (call_site_to_target_addr): Update.
8314 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8315 * elfread.c (elf_gnu_ifunc_record_cache)
8316 (elf_gnu_ifunc_resolve_by_got): Update.
8317 * findvar.c (default_read_var_value): Update.
8318 * frame.c (inside_main_func): Update.
8319 * frv-tdep.c (frv_frame_this_id): Update.
8320 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8321 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8322 Update.
8323 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8324 (hppa_hpux_find_dummy_bpaddr): Update.
8325 * hppa-tdep.c (hppa_symbol_address): Update.
8326 * infcmd.c (until_next_command): Update.
8327 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8328 Update.
8329 * linespec.c (minsym_found, add_minsym): Update.
8330 * linux-nat.c (get_signo): Update.
8331 * linux-thread-db.c (inferior_has_bug): Update.
8332 * m32c-tdep.c (m32c_return_value)
8333 (m32c_m16c_address_to_pointer): Update.
8334 * m32r-tdep.c (m32r_frame_this_id): Update.
8335 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8336 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8337 * maint.c (maintenance_translate_address): Update.
8338 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8339 (frob_address): New function.
8340 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8341 frob_address. Rename parameter to "pc_in".
8342 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8343 addresses.
8344 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8345 Update.
8346 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8347 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8348 * objc-lang.c (find_objc_msgsend): Update.
8349 * objfiles.c (objfile_relocate1): Update.
8350 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8351 * p-valprint.c (pascal_val_print): Update.
8352 * parse.c (write_exp_msymbol): Update.
8353 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8354 (ppc_elfv2_skip_entrypoint): Update.
8355 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8356 * printcmd.c (build_address_symbolic, msym_info)
8357 (address_info): Update.
8358 * proc-service.c (ps_pglobal_lookup): Update.
8359 * psymtab.c (find_pc_sect_psymtab_closer)
8360 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8361 Change msymbol parameter to bound_minimal_symbol.
8362 * ravenscar-thread.c (get_running_thread_id): Update.
8363 * remote.c (remote_check_symbols): Update.
8364 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8365 address.
8366 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8367 * solib-dsbt.c (lm_base): Update.
8368 * solib-frv.c (lm_base, main_got): Update.
8369 * solib-irix.c (locate_base): Update.
8370 * solib-som.c (som_solib_create_inferior_hook)
8371 (link_map_start): Update.
8372 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8373 * solib-svr4.c (elf_locate_base, enable_break): Update.
8374 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8375 (flush_ea_cache): Update.
8376 * stabsread.c (define_symbol, scan_file_globals): Update.
8377 * stack.c (find_frame_funname): Update.
8378 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8379 (debug_qf_find_pc_sect_symtab): Update.
8380 * symfile.c (simple_read_overlay_table)
8381 (simple_overlay_update): Update.
8382 * symfile.h (struct quick_symbol_functions)
8383 <find_pc_sect_symtab>: Change type of msymbol to
8384 bound_minimal_symbol.
8385 * symmisc.c (dump_msymbols): Update.
8386 * symtab.c (find_pc_sect_symtab_via_partial)
8387 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8388 (search_symbols, print_msymbol_info): Update.
8389 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8390 (MSYMBOL_VALUE_ADDRESS): Redefine.
8391 (BMSYMBOL_VALUE_ADDRESS): New macro.
8392 * tracepoint.c (scope_info): Update.
8393 * tui/tui-disasm.c (tui_find_disassembly_address)
8394 (tui_get_begin_asm_address): Update.
8395 * valops.c (find_function_in_inferior): Update.
8396 * value.c (value_static_field, value_fn_field): Update.
8397
8398 2014-02-26 Tom Tromey <tromey@redhat.com>
8399
8400 * ada-lang.c (ada_update_initial_language): Update.
8401 (ada_main_name, ada_has_this_exception_support): Update.
8402 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8403 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8404 * arm-tdep.c (arm_skip_stub): Update.
8405 * auxv.c (ld_so_xfer_auxv): Update.
8406 * avr-tdep.c (avr_scan_prologue): Update.
8407 * ax-gdb.c (gen_var_ref): Update.
8408 * breakpoint.c (struct breakpoint_objfile_data)
8409 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8410 type to bound_minimal_symbol.
8411 (create_overlay_event_breakpoint)
8412 (create_longjmp_master_breakpoint)
8413 (create_std_terminate_master_breakpoint)
8414 (create_exception_master_breakpoint): Update.
8415 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8416 * c-exp.y (classify_name): Update.
8417 * coffread.c (coff_symfile_read): Update.
8418 * common/agent.c (agent_look_up_symbols): Update.
8419 * d-lang.c (d_main_name): Update.
8420 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8421 * dec-thread.c (enable_dec_thread): Update.
8422 * dwarf2loc.c (call_site_to_target_addr): Update.
8423 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8424 * eval.c (evaluate_subexp_standard): Update.
8425 * findvar.c (struct minsym_lookup_data) <result>: Change type
8426 to bound_minimal_symbol.
8427 <objfile>: Remove.
8428 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8429 * frame.c (inside_main_func): Update.
8430 * frv-tdep.c (frv_frame_this_id): Update.
8431 * gcore.c (call_target_sbrk): Update.
8432 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8433 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8434 Update.
8435 * go-lang.c (go_main_name): Update.
8436 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8437 (hppa_hpux_find_import_stub_for_addr): Update.
8438 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8439 Update. Change return type.
8440 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8441 type.
8442 * jit.c (jit_breakpoint_re_set_internal): Update.
8443 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8444 Update.
8445 * linux-nat.c (get_signo): Update.
8446 * linux-thread-db.c (inferior_has_bug): Update
8447 * m32c-tdep.c (m32c_return_value)
8448 (m32c_m16c_address_to_pointer): Update.
8449 * m32r-tdep.c (m32r_frame_this_id): Update.
8450 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8451 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8452 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8453 lookup_minimal_symbol. Change return type.
8454 (lookup_minimal_symbol): Remove.
8455 (lookup_bound_minimal_symbol): Update.
8456 (lookup_minimal_symbol_text): Change return type.
8457 (lookup_minimal_symbol_solib_trampoline): Change return type.
8458 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8459 (lookup_minimal_symbol_solib_trampoline): Change return type.
8460 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8461 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8462 (value_nsstring, find_imps): Update.
8463 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8464 * p-lang.c (pascal_main_name): Update.
8465 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8466 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8467 * proc-service.c (ps_pglobal_lookup): Update.
8468 * ravenscar-thread.c (get_running_thread_msymbol): Change
8469 return type.
8470 (has_ravenscar_runtime, get_running_thread_id): Update.
8471 * remote.c (remote_check_symbols): Update.
8472 * sol-thread.c (ps_pglobal_lookup): Update.
8473 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8474 * solib-dsbt.c (lm_base): Update.
8475 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8476 Update.
8477 * solib-irix.c (locate_base): Update.
8478 * solib-som.c (som_solib_create_inferior_hook)
8479 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8480 Update.
8481 * solib-spu.c (spu_enable_break): Update.
8482 * solib-svr4.c (elf_locate_base, enable_break): Update.
8483 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8484 (flush_ea_cache): Update.
8485 * stabsread.c (define_symbol): Update.
8486 * symfile.c (simple_read_overlay_table): Update.
8487 * symtab.c (find_pc_sect_line): Update.
8488 * tracepoint.c (scope_info): Update.
8489 * tui-disasm.c (tui_get_begin_asm_address): Update.
8490 * value.c (value_static_field): Update.
8491
8492 2014-02-26 Tom Tromey <tromey@redhat.com>
8493
8494 * minsyms.c (prim_record_minimal_symbol_full): Use
8495 SET_MSYMBOL_VALUE_ADDRESS.
8496 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8497 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8498 SET_MSYMBOL_VALUE_ADDRESS.
8499 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8500 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8501
8502 2014-02-26 Tom Tromey <tromey@redhat.com>
8503
8504 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8505 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8506 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8507 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8508 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8509 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8510 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8511 * ada-lang.c (ada_main_name): Update.
8512 (ada_lookup_simple_minsym): Update.
8513 (ada_make_symbol_completion_list): Update.
8514 (ada_add_standard_exceptions): Update.
8515 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8516 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8517 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8518 * arm-tdep.c (skip_prologue_function): Update.
8519 (arm_skip_stack_protector, arm_skip_stub): Update.
8520 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8521 (arm_wince_skip_main_prologue): Update.
8522 * auxv.c (ld_so_xfer_auxv): Update.
8523 * avr-tdep.c (avr_scan_prologue): Update.
8524 * ax-gdb.c (gen_var_ref): Update.
8525 * block.c (call_site_for_pc): Update.
8526 * blockframe.c (get_pc_function_start): Update.
8527 (find_pc_partial_function_gnu_ifunc): Update.
8528 * breakpoint.c (create_overlay_event_breakpoint): Update.
8529 (create_longjmp_master_breakpoint): Update.
8530 (create_std_terminate_master_breakpoint): Update.
8531 (create_exception_master_breakpoint): Update.
8532 (resolve_sal_pc): Update.
8533 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8534 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8535 Update.
8536 * c-valprint.c (c_val_print): Update.
8537 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8538 * coffread.c (coff_symfile_read): Update.
8539 * common/agent.c (agent_look_up_symbols): Update.
8540 * dbxread.c (find_stab_function_addr): Update.
8541 (end_psymtab): Update.
8542 * dwarf2loc.c (call_site_to_target_addr): Update.
8543 (func_verify_no_selftailcall): Update.
8544 (tailcall_dump): Update.
8545 (call_site_find_chain_1): Update.
8546 (dwarf_expr_reg_to_entry_parameter): Update.
8547 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8548 (elf_gnu_ifunc_resolve_by_got): Update.
8549 * f-valprint.c (info_common_command): Update.
8550 * findvar.c (read_var_value): Update.
8551 * frame.c (get_prev_frame_1): Update.
8552 (inside_main_func): Update.
8553 * frv-tdep.c (frv_skip_main_prologue): Update.
8554 (frv_frame_this_id): Update.
8555 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8556 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8557 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8558 (gnuv3_skip_trampoline): Update.
8559 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8560 (hppa64_hpux_in_solib_call_trampoline): Update.
8561 (hppa_hpux_skip_trampoline_code): Update.
8562 (hppa64_hpux_search_dummy_call_sequence): Update.
8563 (hppa_hpux_find_import_stub_for_addr): Update.
8564 (hppa_hpux_find_dummy_bpaddr): Update.
8565 * hppa-tdep.c (hppa_symbol_address)
8566 (hppa_lookup_stub_minimal_symbol): Update.
8567 * i386-tdep.c (i386_skip_main_prologue): Update.
8568 (i386_pe_skip_trampoline_code): Update.
8569 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8570 * infcall.c (get_function_name): Update.
8571 * infcmd.c (until_next_command): Update.
8572 * jit.c (jit_breakpoint_re_set_internal): Update.
8573 (jit_inferior_init): Update.
8574 * linespec.c (minsym_found): Update.
8575 (add_minsym): Update.
8576 * linux-fork.c (info_checkpoints_command): Update.
8577 * linux-nat.c (get_signo): Update.
8578 * linux-thread-db.c (inferior_has_bug): Update.
8579 * m32c-tdep.c (m32c_return_value): Update.
8580 (m32c_m16c_address_to_pointer): Update.
8581 (m32c_m16c_pointer_to_address): Update.
8582 * m32r-tdep.c (m32r_frame_this_id): Update.
8583 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8584 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8585 * maint.c (maintenance_translate_address): Update.
8586 * minsyms.c (add_minsym_to_hash_table): Update.
8587 (add_minsym_to_demangled_hash_table): Update.
8588 (msymbol_objfile): Update.
8589 (lookup_minimal_symbol): Update.
8590 (iterate_over_minimal_symbols): Update.
8591 (lookup_minimal_symbol_text): Update.
8592 (lookup_minimal_symbol_by_pc_name): Update.
8593 (lookup_minimal_symbol_solib_trampoline): Update.
8594 (lookup_minimal_symbol_by_pc_section_1): Update.
8595 (lookup_minimal_symbol_and_objfile): Update.
8596 (prim_record_minimal_symbol_full): Update.
8597 (compare_minimal_symbols): Update.
8598 (compact_minimal_symbols): Update.
8599 (build_minimal_symbol_hash_tables): Update.
8600 (install_minimal_symbols): Update.
8601 (terminate_minimal_symbol_table): Update.
8602 (find_solib_trampoline_target): Update.
8603 (minimal_symbol_upper_bound): Update.
8604 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8605 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8606 (mips_skip_pic_trampoline_code): Update.
8607 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8608 * objc-lang.c (selectors_info): Update.
8609 (classes_info): Update.
8610 (find_methods): Update.
8611 (find_imps): Update.
8612 (find_objc_msgsend): Update.
8613 * objfiles.c (objfile_relocate1): Update.
8614 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8615 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8616 * p-valprint.c (pascal_val_print): Update.
8617 * parse.c (write_exp_msymbol): Update.
8618 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8619 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8620 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8621 * printcmd.c (build_address_symbolic): Update.
8622 (sym_info): Update.
8623 (address_info): Update.
8624 * proc-service.c (ps_pglobal_lookup): Update.
8625 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8626 (find_pc_sect_psymtab): Update.
8627 * python/py-framefilter.c (py_print_frame): Update.
8628 * ravenscar-thread.c (get_running_thread_id): Update.
8629 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8630 Update.
8631 * remote.c (remote_check_symbols): Update.
8632 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8633 (rs6000_skip_trampoline_code): Update.
8634 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8635 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8636 * solib-dsbt.c (lm_base): Update.
8637 * solib-frv.c (lm_base): Update.
8638 (main_got): Update.
8639 * solib-irix.c (locate_base): Update.
8640 * solib-som.c (som_solib_create_inferior_hook): Update.
8641 (som_solib_desire_dynamic_linker_symbols): Update.
8642 (link_map_start): Update.
8643 * solib-spu.c (spu_enable_break): Update.
8644 (ocl_enable_break): Update.
8645 * solib-svr4.c (elf_locate_base): Update.
8646 (enable_break): Update.
8647 * spu-tdep.c (spu_get_overlay_table): Update.
8648 (spu_catch_start): Update.
8649 (flush_ea_cache): Update.
8650 * stabsread.c (define_symbol): Update.
8651 (scan_file_globals): Update.
8652 * stack.c (find_frame_funname): Update.
8653 (frame_info): Update.
8654 * symfile.c (simple_read_overlay_table): Update.
8655 (simple_overlay_update): Update.
8656 * symmisc.c (dump_msymbols): Update.
8657 * symtab.c (fixup_section): Update.
8658 (find_pc_sect_line): Update.
8659 (skip_prologue_sal): Update.
8660 (search_symbols): Update.
8661 (print_msymbol_info): Update.
8662 (rbreak_command): Update.
8663 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8664 (completion_list_objc_symbol): Update.
8665 (default_make_symbol_completion_list_break_on): Update.
8666 * tracepoint.c (scope_info): Update.
8667 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8668 (tui_get_begin_asm_address): Update.
8669 * valops.c (find_function_in_inferior): Update.
8670 * value.c (value_static_field): Update.
8671 (value_fn_field): Update.
8672
8673 2014-02-26 Tom Tromey <tromey@redhat.com>
8674
8675 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8676 bound minimal symbols. Move code that knows about minsym
8677 table layout...
8678 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8679 function.
8680 * minsyms.h (minimal_symbol_upper_bound): Declare.
8681 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8682 minimal_symbol_upper_bound.
8683
8684 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8685
8686 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8687 Use the type's name if its basic type does not have a tag.
8688
8689 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8690
8691 * dwarf2read.c (read_subrange_type): Add comment.
8692
8693 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8694
8695 * dwarf2read.c (update_enumeration_type_from_children): New
8696 function, mostly extracted from process_structure_scope.
8697 (read_enumeration_type): Call update_enumeration_type_from_children.
8698 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8699 and flag_flag_enum fields.
8700
8701 2014-02-26 Pedro Alves <palves@redhat.com>
8702
8703 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8704 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8705 to_xfer_partial method.
8706
8707 2014-02-26 Pedro Alves <palves@redhat.com>
8708
8709 * target.c (complete_target_initialization): Don't install
8710 default_xfer_partial as to_xfer_partial hook.
8711 (nomemory): Delete.
8712 (update_current_target): Don't INHERIT nor de_fault
8713 deprecated_xfer_memory. Delete de_fault macro.
8714 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8715 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8716 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8717 field.
8718
8719 2014-02-26 Pedro Alves <palves@redhat.com>
8720
8721 * go32-nat.c (my_write_child): New function.
8722 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8723 (go32_xfer_partial): New function.
8724 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8725 Instead install a to_xfer_partial hook.
8726
8727 2014-02-26 Pedro Alves <palves@redhat.com>
8728
8729 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8730 to_xfer_partial helper. Rewrite.
8731 (procfs_xfer_partial): New function.
8732 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8733 Install a to_xfer_partial hook.
8734
8735 2014-02-26 Pedro Alves <palves@redhat.com>
8736
8737 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8738 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8739 (m32r_xfer_partial): New function.
8740 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8741 Install a to_xfer_partial hook.
8742
8743 2014-02-26 Pedro Alves <palves@redhat.com>
8744
8745 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8746 helper.
8747 (mips_xfer_partial): New function.
8748 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8749 hook. Install a to_xfer_partial hook.
8750
8751 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8752
8753 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8754 * gdbtypes.c (create_array_type_with_stride): New function,
8755 renaming create_array_type, but with an added parameter
8756 called "bit_stride".
8757 (create_array_type): Re-implement using
8758 create_array_type_with_stride.
8759 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8760 and DW_AT_bit_stride attributes.
8761
8762 2014-02-26 Pedro Alves <palves@redhat.com>
8763
8764 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8765 task-specific breakpoints.
8766
8767 2014-02-25 Pedro Alves <palves@redhat.com>
8768
8769 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8770 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8771
8772 2014-02-25 Stan Shebs <stan@codesourcery.com>
8773
8774 * defs.h: Annotate comments for Doxygen.
8775
8776 2014-02-25 Tom Tromey <tromey@redhat.com>
8777
8778 * target.h (target_ignore): Don't declare.
8779 * target.c (target_ignore): Remove.
8780
8781 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8782
8783 PR gdb/16626
8784 * auto-load.c (auto_load_objfile_script_1): Change filename to
8785 debugfile.
8786
8787 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8788
8789 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8790 documentation. Adjust prototype to match the target_ops
8791 to_xfer_partial method. Adjust implementation accordingly.
8792
8793 2014-02-25 Hui Zhu <hui@codesourcery.com>
8794
8795 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8796 to_traceframe_info.
8797
8798 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8799
8800 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8801 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8802 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8803 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8804 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8805 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8806 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8807 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8808 New constants.
8809 (rl78_register_type): Use a data pointer type for SP and
8810 new pseudo registers mentioned above. Use a 16 bit integer
8811 type for all other register pairs.
8812 (rl78_register_name, rl78_g10_register_name): Update for
8813 new pseudo registers.
8814 (rl78_pseudo_register_read): Likewise.
8815 (rl78_pseudo_register_write): Likewise.
8816 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8817 to the newly added pseudo registers.
8818
8819 2014-02-24 Doug Evans <dje@google.com>
8820
8821 * value.c (record_latest_value): Fix comment.
8822 * printcmd.c (print_command_1): Remove code to handle -1 return from
8823 record_latest_value.
8824
8825 2014-02-24 Pedro Alves <palves@redhat.com>
8826
8827 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8828 deprecated_xfer_memory hook.
8829 (procfs_xfer_partial): Call procfs_xfer_memory instead
8830 of the deprecated_xfer_memory target hook.
8831 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8832 helper.
8833
8834 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8835
8836 * windows-nat.c (windows_xfer_shared_libraries): Return
8837 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8838 requested object is TARGET_OBJECT_LIBRARIES.
8839
8840 2014-02-24 Yao Qi <yao@codesourcery.com>
8841
8842 * target.h (enum target_xfer_status)
8843 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8844 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8845 explicitly. New.
8846 * corefile.c (memory_error_message): User updated.
8847 * exec.c (section_table_read_available_memory): Likewise.
8848 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8849 * target.c (target_xfer_status_to_string): Likewise.
8850 (raw_memory_xfer_partial): Likewise.
8851 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8852 * valops.c (read_value_memory): Likewise.
8853 * exec.h: Update comments.
8854
8855 2014-02-24 Yao Qi <yao@codesourcery.com>
8856
8857 * target.c (target_xfer_status_to_string): Rename argument err
8858 to status.
8859 * target.h (target_xfer_status_to_string): Update declaration.
8860 Replace target_xfer_error_to_string with
8861 target_xfer_status_to_string in comment.
8862
8863 2014-02-24 Yao Qi <yao@codesourcery.com>
8864
8865 * mips-linux-nat.c (super_close): Update its type.
8866 (mips_linux_close): Pass 'self' to super_close.
8867
8868 2014-02-24 Yao Qi <yao@codesourcery.com>
8869
8870 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8871 * corefile.c (read_memory): Adjusted.
8872 * target.c (target_write_with_progress): Adjusted.
8873
8874 2014-02-23 Yao Qi <yao@codesourcery.com>
8875
8876 Revert two patches:
8877
8878 2013-10-25 Yao Qi <yao@codesourcery.com>
8879
8880 * remote.c (remote_traceframe_info): Return early if
8881 traceframe is not selected.
8882
8883 2013-07-19 Yao Qi <yao@codesourcery.com>
8884
8885 * target.c (update_current_target): Change the default action
8886 of 'to_traceframe_info' from tcomplain to return_zero.
8887 * target.h (struct target_ops) <to_traceframe_info>: Add more
8888 comments.
8889
8890 2014-02-23 Yao Qi <yao@codesourcery.com>
8891
8892 * valops.c (read_value_memory): Rewrite it. Call
8893 target_xfer_partial in a loop.
8894 * exec.h (section_table_available_memory): Remove declaration.
8895 Move comments to ...
8896 * exec.c (section_table_available_memory): ... here. Make it
8897 static.
8898
8899 2014-02-23 Yao Qi <yao@codesourcery.com>
8900
8901 * exec.c (section_table_read_available_memory): New function.
8902 * exec.h (section_table_read_available_memory): Declare.
8903 * ctf.c (ctf_xfer_partial): Call
8904 section_table_read_available_memory.
8905 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8906
8907 2014-02-23 Yao Qi <yao@codesourcery.com>
8908
8909 * ctf.c (ctf_xfer_partial): Move code to ...
8910 * exec.c (exec_read_partial_read_only): ... it. New function.
8911 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8912 * tracefile.c: Include "exec.h".
8913 * exec.h (exec_read_partial_read_only): Declare.
8914
8915 2014-02-23 Yao Qi <yao@codesourcery.com>
8916
8917 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8918 (tfile_has_memory): Remove.
8919 (init_tfile_ops): Don't set fields to_has_all_memory and
8920 to_has_memory of tfile_ops.
8921 * tracefile.c (tracefile_has_all_memory): New function.
8922 (tracefile_has_memory): New function.
8923 (init_tracefile_ops): Initialize fields to_has_all_memory and
8924 to_has_memory of 'ops'.
8925
8926 2014-02-23 Yao Qi <yao@codesourcery.com>
8927
8928 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8929 (ctf_thread_alive, ctf_get_trace_status): Remove.
8930 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8931 init_tracefile_ops.
8932 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8933 (tfile_has_stack, tfile_has_registers): Remove.
8934 (tfile_thread_alive): Remove.
8935 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8936 init_tracefile_ops.
8937 * tracefile.c (tracefile_has_stack): New function.
8938 (tracefile_has_registers): New function.
8939 (tracefile_thread_alive): New function.
8940 (tracefile_get_trace_status): New function.
8941 (init_tracefile_ops): New function.
8942 * tracefile.h (init_tracefile_ops): Declare.
8943
8944 2014-02-23 Yao Qi <yao@codesourcery.com>
8945
8946 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8947 (O_LARGEFILE): Likewise.
8948 (tfile_ops): Likewise.
8949 (TRACE_HEADER_SIZE): Likewise.
8950 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8951 (cur_data_size): Likewise.
8952 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8953 (tfile_close, tfile_files_info): Likewise.
8954 (tfile_get_trace_status): Likewise.
8955 (tfile_get_tracepoint_status): Likewise.
8956 (tfile_get_traceframe_address): Likewise.
8957 (tfile_trace_find, match_blocktype): Likewise.
8958 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8959 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8960 (tfile_get_trace_state_variable_value): Likewise.
8961 (tfile_has_all_memory, tfile_has_memory): Likewise.
8962 (tfile_has_stack, tfile_has_registers): Likewise.
8963 (tfile_thread_alive, build_traceframe_info): Likewise.
8964 (tfile_traceframe_info, init_tfile_ops): Likewise.
8965 (_initialize_tracepoint): Don't call init_tfile_ops
8966 and add_target_with_completer.
8967 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8968 exec.h, completer.h and filenames.h.
8969 (_initialize_tracefile_tfile): New function.
8970
8971 2014-02-23 Yao Qi <yao@codesourcery.com>
8972
8973 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8974 tracefile-tfile.o.
8975 (HFILES_NO_SRCDIR): Add tracefile.h.
8976 * ctf.c: Include "tracefile.h".
8977 * tracefile.h: New file.
8978 * tracefile.c: New file
8979 * tracefile-tfile.c: New file.
8980 * tracepoint.c: Include "tracefile.h".
8981 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8982 (stop_reason_names): Add const.
8983 (trace_file_writer_xfree): Move it to tracefile.c.
8984 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8985 (trace_save_ctf): Likewise.
8986 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8987 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8988 (tfile_write_header, tfile_write_regblock_type): Likewise.
8989 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8990 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8991 (tfile_write_raw_data, tfile_end): Likewise.
8992 (tfile_trace_file_writer_new): Likewise.
8993 (free_uploaded_tp): Make it extern.
8994 (free_uploaded_tsv): Make it extern.
8995 (_initialize_tracepoint): Move code to register command 'tsave'
8996 to tracefile.c.
8997 * tracepoint.h (stop_reason_names): Declare.
8998 (struct trace_frame_write_ops): Move it to tracefile.h.
8999 (struct trace_file_write_ops): Likewise.
9000 (struct trace_file_writer): Likewise.
9001 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9002
9003 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9004
9005 PR gdb/16594
9006 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9007 process name.
9008 (get_cores_used_by_process): New parameter num_cores, use it.
9009 (linux_xfer_osdata_processes): Pass num_cores to it.
9010 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9011 process name.
9012
9013 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9014
9015 * target.c (memory_xfer_partial): Fix length arg in call to
9016 breakpoint_xfer_memory.
9017
9018 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9019
9020 PR tdep/16397
9021 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9022 number comes after the + or - signs. Adjust length of register
9023 name to be extracted.
9024
9025 2014-02-20 Tom Tromey <tromey@redhat.com>
9026
9027 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9028 (ada_varobj_ops): Mark "extern".
9029
9030 2014-02-20 Tom Tromey <tromey@redhat.com>
9031
9032 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9033
9034 2014-02-20 Doug Evans <xdje42@gmail.com>
9035
9036 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9037 All callers updated.
9038 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9039 All callers updated.
9040 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9041 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9042
9043 2014-02-20 lin zuojian <manjian2006@gmail.com>
9044 Joel Brobecker <brobecker@adacore.com>
9045 Doug Evans <xdje42@gmail.com>
9046
9047 PR symtab/16581
9048 * dwarf2read.c (struct die_info): New member in_process.
9049 (reset_die_in_process): New function.
9050 (process_die): Set it at the start, reset when returning.
9051 (inherit_abstract_dies): Only call process_die if origin_child_die
9052 not already being processed.
9053
9054 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9055
9056 * windows-nat.c (handle_unload_dll): Add function documentation.
9057 (do_initial_windows_stuff): Add comment explaining why we wait
9058 until after inferior initialization has finished before
9059 processing all DLLs.
9060
9061 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9062
9063 * windows-nat.c (get_module_name): Delete.
9064 (windows_get_exec_module_filename): New function, mostly
9065 inspired from get_module_name.
9066 (windows_pid_to_exec_file): Replace call to get_module_name
9067 by call to windows_get_exec_module_filename.
9068
9069 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9070
9071 * windows-nat.c (handle_load_dll): Rewrite this function's
9072 introductory comment. Remove code using get_module_name
9073 to get the DLL's name.
9074
9075 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9076
9077 * windows-nat.c (get_windows_debug_event): Ignore
9078 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9079 if windows_initialization_done == 0.
9080 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9081 Adjust implementation to always load all DLLs.
9082 (do_initial_windows_stuff): Replace call to
9083 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9084
9085 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9086
9087 * windows-nat.c (_initialize_windows_nat): Deprecate the
9088 "dll-symbols" command. Turn the "add-shared-symbol-files"
9089 and "assf" aliases into commands, and deprecate them as well.
9090 * NEWS: Add entry explaining that "dll-symbols" and its two
9091 aliases are now deprecated.
9092
9093 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9094
9095 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9096 new-line in debug string. Remove trailing spaces.
9097
9098 2014-02-19 Stan Shebs <stan@codesourcery.com>
9099
9100 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9101
9102 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9103
9104 * NEWS: Add entry for the new feature
9105 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9106 and class values.
9107
9108 2014-02-19 Stan Shebs <stan@codesourcery.com>
9109
9110 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9111
9112 2014-02-19 Pedro Alves <palves@redhat.com>
9113
9114 * common/ptid.h (struct ptid): Mention that process_stratum
9115 targets should prefer ptid.lwp.
9116
9117 2014-02-19 Pedro Alves <palves@redhat.com>
9118
9119 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9120 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9121 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9122 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9123 store remote thread ids rather than ptid.tid.
9124 (_initialize_remote): Adjust.
9125
9126 2014-02-19 Tom Tromey <tromey@redhat.com>
9127
9128 * target.c (target_get_unwinder): Rewrite.
9129 (target_get_tailcall_unwinder): Rewrite.
9130 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9131 (record_btrace_to_get_tailcall_unwinder): New function.
9132 (init_record_btrace_ops): Update.
9133 * target.h (struct target_ops) <to_get_unwinder,
9134 to_get_tailcall_unwinder>: Now function pointers. Use
9135 TARGET_DEFAULT_RETURN.
9136
9137 2014-02-19 Tom Tromey <tromey@redhat.com>
9138
9139 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9140 argument.
9141 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9142
9143 2014-02-19 Tom Tromey <tromey@redhat.com>
9144
9145 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9146 directly.
9147 * target-delegates.c: Rebuild.
9148 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9149 TARGET_DEFAULT_FUNC.
9150 * target.c (default_target_decr_pc_after_break): Rename from
9151 forward_target_decr_pc_after_break. Simplify.
9152 (target_decr_pc_after_break): Rely on delegation.
9153
9154 2014-02-19 Tom Tromey <tromey@redhat.com>
9155
9156 * target.c (update_current_target): Do not INHERIT to_doc or
9157 to_magic. Do not de_fault to_open or to_close.
9158
9159 2014-02-19 Tom Tromey <tromey@redhat.com>
9160
9161 * gcore.h (objfile_find_memory_regions): Declare.
9162 * gcore.c (objfile_find_memory_regions): No longer static. Add
9163 "self" argument.
9164 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9165 * exec.c: Include gcore.h.
9166 (exec_set_find_memory_regions): Remove.
9167 (exec_find_memory_regions): Remove.
9168 (exec_do_find_memory_regions): Remove.
9169 (init_exec_ops): Update.
9170 * defs.h (exec_set_find_memory_regions): Remove.
9171
9172 2014-02-19 Tom Tromey <tromey@redhat.com>
9173
9174 * target-delegates.c: Rebuild.
9175 * target.h (struct target_ops) <to_extra_thread_info,
9176 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9177 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9178 not 0, in TARGET_DEFAULT_RETURN.
9179
9180 2014-02-19 Tom Tromey <tromey@redhat.com>
9181
9182 * target.c (complete_target_initialization): Remove casts. Use
9183 return_zero_has_execution.
9184 (return_zero): Add "ignore" argument.
9185 (return_zero_has_execution): New function.
9186 (init_dummy_target): Remove casts. Use
9187 return_zero_has_execution.
9188
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9190
9191 * target.c (update_current_target): Update comments. Do not
9192 INHERIT to_stratum.
9193
9194 2014-02-19 Tom Tromey <tromey@redhat.com>
9195
9196 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9197 needed.
9198 * corelow.c (core_read_description): Delegate when needed.
9199 * remote.c (remote_read_description): Delegate when needed.
9200 * target-delegates.c: Rebuild.
9201 * target.c (target_read_description): Rewrite.
9202 * target.h (struct target_ops) <to_read_description>: Update
9203 comment. Use TARGET_DEFAULT_RETURN.
9204
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9206
9207 * target-delegates.c: Rebuild.
9208 * target.c (update_current_target): Don't inherit or default
9209 to_can_run.
9210 (find_default_run_target): Check against delegate_can_run.
9211 * target.h (struct target_ops) <to_can_run>: Use
9212 TARGET_DEFAULT_RETURN.
9213
9214 2014-02-19 Tom Tromey <tromey@redhat.com>
9215
9216 * target-delegates.c: Rebuild.
9217 * target.c (target_disconnect): Unconditionally delegate.
9218 * target.h (struct target_ops) <to_disconnect>: Use
9219 TARGET_DEFAULT_NORETURN.
9220
9221 2014-02-19 Tom Tromey <tromey@redhat.com>
9222
9223 * record.c (record_stop): Unconditionally delegate.
9224 * target-delegates.c: Rebuild.
9225 * target.c (target_stop_recording): Unconditionally delegate.
9226 * target.h (struct target_ops) <to_stop_recording>: Use
9227 TARGET_DEFAULT_IGNORE.
9228
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * target-delegates.c: Rebuild.
9232 * target.c (target_enable_btrace): Unconditionally delegate.
9233 * target.h (struct target_ops) <to_enable_btrace>: Use
9234 TARGET_DEFAULT_NORETURN.
9235
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9237
9238 * target-delegates.c: Rebuild.
9239 * target.c (target_read_btrace): Unconditionally delegate.
9240 * target.h (struct target_ops) <to_read_btrace>: Use
9241 TARGET_DEFAULT_NORETURN.
9242
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9244
9245 * target-delegates.c: Rebuild.
9246 * target.c (target_teardown_btrace): Unconditionally delegate.
9247 * target.h (struct target_ops) <to_teardown_btrace>: Use
9248 TARGET_DEFAULT_NORETURN.
9249
9250 2014-02-19 Tom Tromey <tromey@redhat.com>
9251
9252 * target-delegates.c: Rebuild.
9253 * target.c (target_disable_btrace): Unconditionally delegate.
9254 * target.h (struct target_ops) <to_disable_btrace>: Use
9255 TARGET_DEFAULT_NORETURN.
9256
9257 2014-02-19 Tom Tromey <tromey@redhat.com>
9258
9259 * target-delegates.c: Rebuild.
9260 * target.c (default_search_memory): New function.
9261 (simple_search_memory): Update comment.
9262 (target_search_memory): Unconditionally delegate.
9263 * target.h (struct target_ops) <to_search_memory>: Use
9264 TARGET_DEFAULT_FUNC.
9265
9266 2014-02-19 Tom Tromey <tromey@redhat.com>
9267
9268 * auxv.c (default_auxv_parse): No longer static.
9269 (target_auxv_parse): Unconditionally delegate.
9270 * auxv.h (default_auxv_parse): Declare.
9271 * target-delegates.c: Rebuild.
9272 * target.c: Include auxv.h.
9273 * target.h (struct target_ops) <to_auxv_parse>: Use
9274 TARGET_DEFAULT_FUNC.
9275
9276 2014-02-19 Tom Tromey <tromey@redhat.com>
9277
9278 * target-delegates.c: Rebuild.
9279 * target.c (target_memory_map): Unconditionally delegate.
9280 * target.h (struct target_ops) <to_memory_map>: Use
9281 TARGET_DEFAULT_RETURN.
9282
9283 2014-02-19 Tom Tromey <tromey@redhat.com>
9284
9285 * target-delegates.c: Rebuild.
9286 * target.c (target_thread_alive): Unconditionally delegate.
9287 * target.h (struct target_ops) <to_thread_alive>: Use
9288 TARGET_DEFAULT_RETURN.
9289
9290 2014-02-19 Tom Tromey <tromey@redhat.com>
9291
9292 * target-delegates.c: Rebuild.
9293 * target.c (target_save_record): Unconditionally delegate.
9294 * target.h (struct target_ops) <to_save_record>: Use
9295 TARGET_DEFAULT_NORETURN.
9296
9297 2014-02-19 Tom Tromey <tromey@redhat.com>
9298
9299 * target-delegates.c: Rebuild.
9300 * target.c (target_delete_record): Unconditionally delegate.
9301 * target.h (struct target_ops) <to_delete_record>: Use
9302 TARGET_DEFAULT_NORETURN.
9303
9304 2014-02-19 Tom Tromey <tromey@redhat.com>
9305
9306 * target-delegates.c: Rebuild.
9307 * target.c (target_record_is_replaying): Unconditionally
9308 delegate.
9309 * target.h (struct target_ops) <to_record_is_replaying>: Use
9310 TARGET_DEFAULT_RETURN.
9311
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9313
9314 * target-delegates.c: Rebuild.
9315 * target.c (target_goto_record_begin): Unconditionally delegate.
9316 * target.h (struct target_ops) <to_goto_record_begin>: Use
9317 TARGET_DEFAULT_NORETURN.
9318
9319 2014-02-19 Tom Tromey <tromey@redhat.com>
9320
9321 * target-delegates.c: Rebuild.
9322 * target.c (target_goto_record_end): Unconditionally delegate.
9323 * target.h (struct target_ops) <to_goto_record_end>: Use
9324 TARGET_DEFAULT_NORETURN.
9325
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9327
9328 * target-delegates.c: Rebuild.
9329 * target.c (target_goto_record): Unconditionally delegate.
9330 * target.h (struct target_ops) <to_goto_record>: Use
9331 TARGET_DEFAULT_NORETURN.
9332
9333 2014-02-19 Tom Tromey <tromey@redhat.com>
9334
9335 * target-delegates.c: Rebuild.
9336 * target.c (target_insn_history): Unconditionally delegate.
9337 * target.h (struct target_ops) <to_insn_history>: Use
9338 TARGET_DEFAULT_NORETURN.
9339
9340 2014-02-19 Tom Tromey <tromey@redhat.com>
9341
9342 * target-delegates.c: Rebuild.
9343 * target.c (target_insn_history_from): Unconditionally delegate.
9344 * target.h (struct target_ops) <to_insn_history_from>: Use
9345 TARGET_DEFAULT_NORETURN.
9346
9347 2014-02-19 Tom Tromey <tromey@redhat.com>
9348
9349 * target-delegates.c: Rebuild.
9350 * target.c (target_insn_history_range): Unconditionally delegate.
9351 * target.h (struct target_ops) <to_insn_history_range>: Use
9352 TARGET_DEFAULT_NORETURN.
9353
9354 2014-02-19 Tom Tromey <tromey@redhat.com>
9355
9356 * target-delegates.c: Rebuild.
9357 * target.c (target_call_history): Unconditionally delegate.
9358 * target.h (struct target_ops) <to_call_history>: Use
9359 TARGET_DEFAULT_NORETURN.
9360
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9362
9363 * target-delegates.c: Rebuild.
9364 * target.c (target_call_history_from): Unconditionally delegate.
9365 * target.h (struct target_ops) <to_call_history_from>: Use
9366 TARGET_DEFAULT_NORETURN.
9367
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9369
9370 * target-delegates.c: Rebuild.
9371 * target.c (target_call_history_range): Unconditionally delegate.
9372 * target.h (struct target_ops) <to_call_history_range>: Use
9373 TARGET_DEFAULT_NORETURN.
9374
9375 2014-02-19 Tom Tromey <tromey@redhat.com>
9376
9377 * target-delegates.c: Rebuild.
9378 * target.c (target_verify_memory): Unconditionally delegate.
9379 * target.h (struct target_ops) <to_verify_memory>: Use
9380 TARGET_DEFAULT_NORETURN.
9381
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * target-delegates.c: Rebuild.
9385 * target.c (target_core_of_thread): Unconditionally delegate.
9386 * target.h (struct target_ops) <to_core_of_thread>: Use
9387 TARGET_DEFAULT_RETURN.
9388
9389 2014-02-19 Tom Tromey <tromey@redhat.com>
9390
9391 * target-delegates.c: Rebuild.
9392 * target.c (target_flash_done): Unconditionally delegate.
9393 * target.h (struct target_ops) <to_flash_done>: Use
9394 TARGET_DEFAULT_NORETURN.
9395
9396 2014-02-19 Tom Tromey <tromey@redhat.com>
9397
9398 * target-delegates.c: Rebuild.
9399 * target.c (target_flash_erase): Unconditionally delegate.
9400 * target.h (struct target_ops) <to_flash_erase>: Use
9401 TARGET_DEFAULT_NORETURN.
9402
9403 2014-02-19 Tom Tromey <tromey@redhat.com>
9404
9405 * target-delegates.c: Rebuild.
9406 * target.c (target_get_section_table): Unconditionally delegate.
9407 * target.h (struct target_ops) <to_get_section_table>: Use
9408 TARGET_DEFAULT_RETURN.
9409
9410 2014-02-19 Tom Tromey <tromey@redhat.com>
9411
9412 * target-delegates.c: Rebuild.
9413 * target.c (target_pid_to_str): Unconditionally delegate.
9414 (init_dummy_target): Don't initialize to_pid_to_str.
9415 (default_pid_to_str): Rename from dummy_pid_to_str.
9416 * target.h (struct target_ops) <to_pid_to_str>: Use
9417 TARGET_DEFAULT_FUNC.
9418
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9420
9421 * target-delegates.c: Rebuild.
9422 * target.c (target_find_new_threads): Unconditionally delegate.
9423 * target.h (struct target_ops) <to_find_new_threads>: Use
9424 TARGET_DEFAULT_RETURN.
9425
9426 2014-02-19 Tom Tromey <tromey@redhat.com>
9427
9428 * target-delegates.c: Rebuild.
9429 * target.c (target_program_signals): Unconditionally delegate.
9430 * target.h (struct target_ops) <to_program_signals>: Use
9431 TARGET_DEFAULT_IGNORE.
9432
9433 2014-02-19 Tom Tromey <tromey@redhat.com>
9434
9435 * target-delegates.c: Rebuild.
9436 * target.c (target_pass_signals): Unconditionally delegate.
9437 * target.h (struct target_ops) <to_pass_signals>: Use
9438 TARGET_DEFAULT_IGNORE.
9439
9440 2014-02-19 Tom Tromey <tromey@redhat.com>
9441
9442 * target-delegates.c: Rebuild.
9443 * target.c (default_mourn_inferior): New function.
9444 (target_mourn_inferior): Unconditionally delegate.
9445 * target.h (struct target_ops) <to_mourn_inferior>: Use
9446 TARGET_DEFAULT_FUNC.
9447
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9449
9450 * target-delegates.c: Rebuild.
9451 * target.c (default_follow_fork): New function.
9452 (target_follow_fork): Unconditionally delegate.
9453 * target.h (struct target_ops) <to_follow_fork>: Use
9454 TARGET_DEFAULT_FUNC.
9455
9456 2014-02-19 Tom Tromey <tromey@redhat.com>
9457
9458 * target-delegates.c: Rebuild.
9459 * target.c (target_kill): Unconditionally delegate.
9460 * target.h (struct target_ops) <to_kill>: Use
9461 TARGET_DEFAULT_NORETURN.
9462
9463 2014-02-19 Tom Tromey <tromey@redhat.com>
9464
9465 * target-delegates.c: Rebuild.
9466 * target.c (target_masked_watch_num_registers): Unconditionally
9467 delegate.
9468 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9469 Use TARGET_DEFAULT_RETURN.
9470
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9472
9473 * target-delegates.c: Rebuild.
9474 * target.c (target_remove_mask_watchpoint): Unconditionally
9475 delegate.
9476 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9477 TARGET_DEFAULT_RETURN.
9478
9479 2014-02-19 Tom Tromey <tromey@redhat.com>
9480
9481 * target-delegates.c: Rebuild.
9482 * target.c (target_insert_mask_watchpoint): Unconditionally
9483 delegate.
9484 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9485 TARGET_DEFAULT_RETURN.
9486
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9488
9489 * target-delegates.c: Rebuild.
9490 * target.c (target_ranged_break_num_registers): Unconditionally
9491 delegate.
9492 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9493 Use TARGET_DEFAULT_RETURN.
9494
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9496
9497 * target-delegates.c: Rebuild.
9498 * target.c (target_fetch_registers): Unconditionally delegate.
9499 * target.h (struct target_ops) <to_fetch_registers>: Use
9500 TARGET_DEFAULT_NORETURN.
9501
9502 2014-02-19 Tom Tromey <tromey@redhat.com>
9503
9504 * target-delegates.c: Rebuild.
9505 * target.c (update_current_target): Don't inherit or default
9506 to_stop.
9507 * target.h (struct target_ops) <to_stop>: Use
9508 TARGET_DEFAULT_IGNORE.
9509
9510 2014-02-19 Tom Tromey <tromey@redhat.com>
9511
9512 * target-delegates.c: Rebuild.
9513 * target.c (update_current_target): Don't inherit or default
9514 to_can_run_breakpoint_commands.
9515 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9516 Use TARGET_DEFAULT_RETURN.
9517
9518 2014-02-19 Tom Tromey <tromey@redhat.com>
9519
9520 * target-delegates.c: Rebuild.
9521 * target.c (update_current_target): Don't inherit or default
9522 to_supports_evaluation_of_breakpoint_conditions.
9523 * target.h (struct target_ops)
9524 <to_supports_evaluation_of_breakpoint_conditions>: Use
9525 TARGET_DEFAULT_RETURN.
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_augmented_libraries_svr4_read.
9532 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9533 Use TARGET_DEFAULT_RETURN.
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_use_agent.
9540 * target.h (struct target_ops) <to_can_use_agent>: Use
9541 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_use_agent.
9548 * target.h (struct target_ops) <to_use_agent>: Use
9549 TARGET_DEFAULT_NORETURN.
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_traceframe_info.
9556 (return_null): Remove.
9557 * target.h (struct target_ops) <to_traceframe_info>: Use
9558 TARGET_DEFAULT_RETURN.
9559
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9561
9562 * target-delegates.c: Rebuild.
9563 * target.c (update_current_target): Don't inherit or default
9564 to_static_tracepoint_markers_by_strid.
9565 * target.h (struct target_ops)
9566 <to_static_tracepoint_markers_by_strid>: Use
9567 TARGET_DEFAULT_NORETURN.
9568
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9570
9571 * target-delegates.c: Rebuild.
9572 * target.c (update_current_target): Don't inherit or default
9573 to_static_tracepoint_marker_at.
9574 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9575 Use TARGET_DEFAULT_RETURN.
9576
9577 2014-02-19 Tom Tromey <tromey@redhat.com>
9578
9579 * target-delegates.c: Rebuild.
9580 * target.c (update_current_target): Don't inherit or default
9581 to_set_permissions.
9582 * target.h (struct target_ops) <to_set_permissions>: Use
9583 TARGET_DEFAULT_IGNORE.
9584
9585 2014-02-19 Tom Tromey <tromey@redhat.com>
9586
9587 * target-delegates.c: Rebuild.
9588 * target.c (update_current_target): Don't inherit or default
9589 to_get_tib_address.
9590 * target.h (struct target_ops) <to_get_tib_address>: Use
9591 TARGET_DEFAULT_NORETURN.
9592
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9594
9595 * target-delegates.c: Rebuild.
9596 * target.c (update_current_target): Don't inherit or default
9597 to_set_trace_notes.
9598 * target.h (struct target_ops) <to_set_trace_notes>: Use
9599 TARGET_DEFAULT_RETURN.
9600
9601 2014-02-19 Tom Tromey <tromey@redhat.com>
9602
9603 * target-delegates.c: Rebuild.
9604 * target.c (update_current_target): Don't initialize
9605 to_set_trace_buffer_size.
9606 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9607 TARGET_DEFAULT_IGNORE.
9608
9609 2014-02-19 Tom Tromey <tromey@redhat.com>
9610
9611 * target-delegates.c: Rebuild.
9612 * target.c (update_current_target): Don't inherit or default
9613 to_set_circular_trace_buffer.
9614 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9615 TARGET_DEFAULT_IGNORE.
9616
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9618
9619 * target-delegates.c: Rebuild.
9620 * target.c (update_current_target): Don't inherit or default
9621 to_set_disconnected_tracing.
9622 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9623 TARGET_DEFAULT_IGNORE.
9624
9625 2014-02-19 Tom Tromey <tromey@redhat.com>
9626
9627 * target-delegates.c: Rebuild.
9628 * target.c (update_current_target): Don't inherit or default
9629 to_get_min_fast_tracepoint_insn_len.
9630 (return_minus_one): Remove.
9631 * target.h (struct target_ops)
9632 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9633
9634 2014-02-19 Tom Tromey <tromey@redhat.com>
9635
9636 * target-delegates.c: Rebuild.
9637 * target.c (update_current_target): Don't inherit or default
9638 to_get_raw_trace_data.
9639 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9640 TARGET_DEFAULT_NORETURN.
9641
9642 2014-02-19 Tom Tromey <tromey@redhat.com>
9643
9644 * target-delegates.c: Rebuild.
9645 * target.c (update_current_target): Don't inherit or default
9646 to_upload_trace_state_variables.
9647 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9648 Use TARGET_DEFAULT_RETURN.
9649
9650 2014-02-19 Tom Tromey <tromey@redhat.com>
9651
9652 * target-delegates.c: Rebuild.
9653 * target.c (update_current_target): Don't inherit or default
9654 to_upload_tracepoints.
9655 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9656 TARGET_DEFAULT_RETURN.
9657
9658 2014-02-19 Tom Tromey <tromey@redhat.com>
9659
9660 * target-delegates.c: Rebuild.
9661 * target.c (update_current_target): Don't inherit or default
9662 to_save_trace_data.
9663 * target.h (struct target_ops) <to_save_trace_data>: Use
9664 TARGET_DEFAULT_NORETURN.
9665
9666 2014-02-19 Tom Tromey <tromey@redhat.com>
9667
9668 * target-delegates.c: Rebuild.
9669 * target.c (update_current_target): Don't inherit or default
9670 to_get_trace_state_variable_value.
9671 * target.h (struct target_ops)
9672 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9673
9674 2014-02-19 Tom Tromey <tromey@redhat.com>
9675
9676 * target-delegates.c: Rebuild.
9677 * target.c (update_current_target): Don't inherit or default
9678 to_trace_find.
9679 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9680
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9682
9683 * target-delegates.c: Rebuild.
9684 * target.c (update_current_target): Don't inherit or default
9685 to_trace_stop.
9686 * target.h (struct target_ops) <to_trace_stop>: Use
9687 TARGET_DEFAULT_NORETURN.
9688
9689 2014-02-19 Tom Tromey <tromey@redhat.com>
9690
9691 * target-delegates.c: Rebuild.
9692 * target.c (update_current_target): Don't inherit or default
9693 to_get_tracepoint_status.
9694 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9695 TARGET_DEFAULT_NORETURN.
9696
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9698
9699 * target-delegates.c: Rebuild.
9700 * target.c (update_current_target): Don't inherit or default
9701 to_get_trace_status.
9702 * target.h (struct target_ops) <to_get_trace_status>: Use
9703 TARGET_DEFAULT_RETURN.
9704
9705 2014-02-19 Tom Tromey <tromey@redhat.com>
9706
9707 * target-delegates.c: Rebuild.
9708 * target.c (update_current_target): Don't inherit or default
9709 to_trace_start.
9710 * target.h (struct target_ops) <to_trace_start>: Use
9711 TARGET_DEFAULT_NORETURN.
9712
9713 2014-02-19 Tom Tromey <tromey@redhat.com>
9714
9715 * target-delegates.c: Rebuild.
9716 * target.c (update_current_target): Don't inherit or default
9717 to_trace_set_readonly_regions.
9718 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9719 Use TARGET_DEFAULT_NORETURN.
9720
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9722
9723 * target-delegates.c: Rebuild.
9724 * target.c (update_current_target): Don't inherit or default
9725 to_disable_tracepoint.
9726 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9727 TARGET_DEFAULT_NORETURN.
9728
9729 2014-02-19 Tom Tromey <tromey@redhat.com>
9730
9731 * target-delegates.c: Rebuild.
9732 * target.c (update_current_target): Don't inherit or default
9733 to_enable_tracepoint.
9734 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9735 TARGET_DEFAULT_NORETURN.
9736
9737 2014-02-19 Tom Tromey <tromey@redhat.com>
9738
9739 * target-delegates.c: Rebuild.
9740 * target.c (update_current_target): Don't inherit or default
9741 to_download_trace_state_variable.
9742 * target.h (struct target_ops) <to_download_trace_state_variable>:
9743 Use TARGET_DEFAULT_NORETURN.
9744
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9746
9747 * target-delegates.c: Rebuild.
9748 * target.c (update_current_target): Don't inherit or default
9749 to_can_download_tracepoint.
9750 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9751 TARGET_DEFAULT_RETURN.
9752
9753 2014-02-19 Tom Tromey <tromey@redhat.com>
9754
9755 * target-delegates.c: Rebuild.
9756 * target.c (update_current_target): Don't inherit or default
9757 to_download_tracepoint.
9758 * target.h (struct target_ops) <to_download_tracepoint>: Use
9759 TARGET_DEFAULT_NORETURN.
9760
9761 2014-02-19 Tom Tromey <tromey@redhat.com>
9762
9763 * target-delegates.c: Rebuild.
9764 * target.c (update_current_target): Don't inherit or default
9765 to_trace_init.
9766 * target.h (struct target_ops) <to_trace_init>: Use
9767 TARGET_DEFAULT_RETURN.
9768
9769 2014-02-19 Tom Tromey <tromey@redhat.com>
9770
9771 * target-delegates.c: Rebuild.
9772 * target.c (update_current_target): Don't inherit or default
9773 to_supports_string_tracing.
9774 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9775 TARGET_DEFAULT_RETURN.
9776
9777 2014-02-19 Tom Tromey <tromey@redhat.com>
9778
9779 * target-delegates.c: Rebuild.
9780 * target.c (update_current_target): Don't inherit or default
9781 to_supports_enable_disable_tracepoint.
9782 * target.h (struct target_ops)
9783 <to_supports_enable_disable_tracepoint>: Use
9784 TARGET_DEFAULT_RETURN.
9785
9786 2014-02-19 Tom Tromey <tromey@redhat.com>
9787
9788 * target-delegates.c: Rebuild.
9789 * target.c (update_current_target): Don't inherit or default
9790 to_supports_multi_process.
9791 * target.h (struct target_ops) <to_supports_multi_process>: Use
9792 TARGET_DEFAULT_RETURN.
9793
9794 2014-02-19 Tom Tromey <tromey@redhat.com>
9795
9796 * target-delegates.c: Rebuild.
9797 * target.c (update_current_target): Don't inherit or default
9798 to_get_ada_task_ptid.
9799 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9800 TARGET_DEFAULT_FUNC.
9801
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9803
9804 * target-delegates.c: Rebuild.
9805 * target.c (update_current_target): Don't inherit or default
9806 to_thread_architecture.
9807 * target.h (struct target_ops) <to_thread_architecture>: Use
9808 TARGET_DEFAULT_FUNC.
9809
9810 2014-02-19 Tom Tromey <tromey@redhat.com>
9811
9812 * target-delegates.c: Rebuild.
9813 * target.c (update_current_target): Don't inherit or default
9814 to_execution_direction.
9815 * target.h (struct target_ops) <to_execution_direction>: Use
9816 TARGET_DEFAULT_FUNC.
9817
9818 2014-02-19 Tom Tromey <tromey@redhat.com>
9819
9820 * target-delegates.c: Rebuild.
9821 * target.c (update_current_target): Don't inherit or default
9822 to_can_execute_reverse.
9823 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9824 TARGET_DEFAULT_RETURN.
9825 (target_can_execute_reverse): Unconditionally delegate.
9826
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9828
9829 * target-delegates.c: Rebuild.
9830 * target.c (update_current_target): Don't inherit or default
9831 to_goto_bookmark.
9832 (dummy_goto_bookmark): Remove.
9833 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9834 * target.h (struct target_ops) <to_goto_bookmark>: Use
9835 TARGET_DEFAULT_NORETURN.
9836
9837 2014-02-19 Tom Tromey <tromey@redhat.com>
9838
9839 * target-delegates.c: Rebuild.
9840 * target.c (update_current_target): Don't inherit or default
9841 to_get_bookmark.
9842 (dummy_get_bookmark): Remove.
9843 (init_dummy_target): Don't inherit or default to_get_bookmark.
9844 * target.h (struct target_ops) <to_get_bookmark>: Use
9845 TARGET_DEFAULT_NORETURN
9846
9847 2014-02-19 Tom Tromey <tromey@redhat.com>
9848
9849 * target-delegates.c: Rebuild.
9850 * target.c (update_current_target): Don't inherit or default
9851 to_make_corefile_notes.
9852 (init_dummy_target): Don't initialize to_make_corefile_notes.
9853 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9854 TARGET_DEFAULT_FUNC.
9855
9856 2014-02-19 Tom Tromey <tromey@redhat.com>
9857
9858 * target-delegates.c: Rebuild.
9859 * target.c (update_current_target): Don't inherit or default
9860 to_find_memory_regions.
9861 (init_dummy_target): Don't initialize to_find_memory_regions.
9862 * target.h (struct target_ops) <to_find_memory_regions>: Use
9863 TARGET_DEFAULT_FUNC.
9864
9865 2014-02-19 Tom Tromey <tromey@redhat.com>
9866
9867 * target-delegates.c: Rebuild.
9868 * target.c (update_current_target): Don't inherit or default
9869 to_log_command.
9870 * target.h (struct target_ops) <to_log_command>: Use
9871 TARGET_DEFAULT_IGNORE.
9872 (target_log_command): Unconditionally delegate.
9873
9874 2014-02-19 Tom Tromey <tromey@redhat.com>
9875
9876 * target-delegates.c: Rebuild.
9877 * target.c (update_current_target): Don't inherit or default
9878 to_pid_to_exec_file.
9879 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9880 TARGET_DEFAULT_RETURN.
9881
9882 2014-02-19 Tom Tromey <tromey@redhat.com>
9883
9884 * target-delegates.c: Rebuild.
9885 * target.c (update_current_target): Don't inherit or default
9886 to_thread_name.
9887 (target_thread_name): Unconditionally delegate.
9888 * target.h (struct target_ops) <to_thread_name>: Use
9889 TARGET_DEFAULT_RETURN.
9890
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9892
9893 * target-delegates.c: Rebuild.
9894 * target.c (update_current_target): Don't inherit or default
9895 to_extra_thread_info.
9896 * target.h (struct target_ops) <to_extra_thread_info>: Use
9897 TARGET_DEFAULT_RETURN.
9898
9899 2014-02-19 Tom Tromey <tromey@redhat.com>
9900
9901 * target-delegates.c: Rebuild.
9902 * target.c (update_current_target): Don't inherit or default
9903 to_has_exited.
9904 * target.h (struct target_ops) <to_has_exited>: Use
9905 TARGET_DEFAULT_RETURN..
9906
9907 2014-02-19 Tom Tromey <tromey@redhat.com>
9908
9909 * target-delegates.c: Rebuild.
9910 * target.c (update_current_target): Don't inherit or default
9911 to_set_syscall_catchpoint.
9912 (return_one): Remove.
9913 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9914 TARGET_DEFAULT_RETURN.
9915
9916 2014-02-19 Tom Tromey <tromey@redhat.com>
9917
9918 * target-delegates.c: Rebuild.
9919 * target.c (update_current_target): Don't inherit or default
9920 to_insert_exec_catchpoint.
9921 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9922 TARGET_DEFAULT_RETURN.
9923
9924 2014-01-08 Tom Tromey <tromey@redhat.com>
9925
9926 * target-delegates.c: Rebuild.
9927 * target.c (update_current_target): Don't inherit or default
9928 to_insert_exec_catchpoint.
9929 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9930 TARGET_DEFAULT_RETURN.
9931
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9933
9934 * target-delegates.c: Rebuild.
9935 * target.c (update_current_target): Don't inherit or default
9936 to_remove_vfork_catchpoint.
9937 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9938 TARGET_DEFAULT_RETURN.
9939
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9941
9942 * target-delegates.c: Rebuild.
9943 * target.c (update_current_target): Don't inherit or default
9944 to_insert_vfork_catchpoint.
9945 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9946 TARGET_DEFAULT_RETURN.
9947
9948 2014-02-19 Tom Tromey <tromey@redhat.com>
9949
9950 * target-delegates.c: Rebuild.
9951 * target.c (update_current_target): Don't inherit or default
9952 to_remove_fork_catchpoint.
9953 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9954 TARGET_DEFAULT_RETURN.
9955
9956 2014-02-19 Tom Tromey <tromey@redhat.com>
9957
9958 * target-delegates.c: Rebuild.
9959 * target.c (update_current_target): Don't inherit or default
9960 to_insert_fork_catchpoint.
9961 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9962 TARGET_DEFAULT_RETURN.
9963
9964 2014-02-19 Tom Tromey <tromey@redhat.com>
9965
9966 * target-delegates.c: Rebuild.
9967 * target.c (update_current_target): Don't inherit or default
9968 to_post_startup_inferior.
9969 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9970 TARGET_DEFAULT_IGNORE.
9971
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9973
9974 * target-delegates.c: Rebuild.
9975 * target.c (update_current_target): Don't inherit or default
9976 to_load.
9977 * target.h (struct target_ops) <to_load>: Use
9978 TARGET_DEFAULT_NORETURN.
9979
9980 2014-02-19 Tom Tromey <tromey@redhat.com>
9981
9982 * target-delegates.c: Rebuild.
9983 * target.c (update_current_target): Don't inherit or default
9984 to_terminal_info.
9985 * target.h (struct target_ops) <to_terminal_info>: Use
9986 TARGET_DEFAULT_FUNC.
9987
9988 2014-02-19 Tom Tromey <tromey@redhat.com>
9989
9990 * target-delegates.c: Rebuild.
9991 * target.c (update_current_target): Don't inherit or default
9992 to_terminal_save_ours.
9993 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9994 TARGET_DEFAULT_IGNORE.
9995
9996 2014-02-19 Tom Tromey <tromey@redhat.com>
9997
9998 * target-delegates.c: Rebuild.
9999 * target.c (update_current_target): Don't inherit or default
10000 to_terminal_ours.
10001 * target.h (struct target_ops) <to_terminal_ours>: Use
10002 TARGET_DEFAULT_IGNORE.
10003
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10005
10006 * target-delegates.c: Rebuild.
10007 * target.c (update_current_target): Don't inherit or default
10008 to_terminal_ours_for_output.
10009 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10010 TARGET_DEFAULT_IGNORE.
10011
10012 2014-02-19 Tom Tromey <tromey@redhat.com>
10013
10014 * target-delegates.c: Rebuild.
10015 * target.c (update_current_target): Don't inherit or default
10016 to_terminal_inferior.
10017 * target.h (struct target_ops) <to_terminal_inferior>: Use
10018 TARGET_DEFAULT_IGNORE.
10019
10020 2014-02-19 Tom Tromey <tromey@redhat.com>
10021
10022 * target-delegates.c: Rebuild.
10023 * target.c (update_current_target): Don't inherit or default
10024 to_terminal_init.
10025 * target.h (struct target_ops) <to_terminal_init>: Use
10026 TARGET_DEFAULT_IGNORE.
10027
10028 2014-02-19 Tom Tromey <tromey@redhat.com>
10029
10030 * target-delegates.c: Rebuild.
10031 * target.c (update_current_target): Don't inherit or default
10032 to_can_accel_watchpoint_condition.
10033 * target.h (struct target_ops)
10034 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10035
10036 2014-02-19 Tom Tromey <tromey@redhat.com>
10037
10038 * target-delegates.c: Rebuild.
10039 * target.c (update_current_target): Don't inherit or default
10040 to_region_ok_for_hw_watchpoint.
10041 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10042 Use TARGET_DEFAULT_FUNC.
10043
10044 2014-02-19 Tom Tromey <tromey@redhat.com>
10045
10046 * target-delegates.c: Rebuild.
10047 * target.c (update_current_target): Don't inherit or default
10048 to_watchpoint_addr_within_range.
10049 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10050 Use TARGET_DEFAULT_FUNC.
10051
10052 2014-02-19 Tom Tromey <tromey@redhat.com>
10053
10054 * target-delegates.c: Rebuild.
10055 * target.c (update_current_target): Don't inherit or default
10056 to_remove_watchpoint.
10057 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10058 TARGET_DEFAULT_NORETURN.
10059
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10061
10062 * target-delegates.c: Rebuild.
10063 * target.c (update_current_target): Don't inherit or default
10064 to_insert_watchpoint.
10065 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10066 TARGET_DEFAULT_RETURN.
10067
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10069
10070 * target-delegates.c: Rebuild.
10071 * target.c (update_current_target): Don't inherit or default
10072 to_remove_hw_breakpoint.
10073 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10074 TARGET_DEFAULT_RETURN.
10075
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10077
10078 * target-delegates.c: Rebuild.
10079 * target.c (update_current_target): Don't inherit or default
10080 to_insert_hw_breakpoint.
10081 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10082 TARGET_DEFAULT_RETURN.
10083
10084 2014-02-19 Tom Tromey <tromey@redhat.com>
10085
10086 * target-delegates.c: Rebuild.
10087 * target.c (update_current_target): Don't inherit or default
10088 to_can_use_hw_breakpoint.
10089 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10090 TARGET_DEFAULT_RETURN.
10091
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10093
10094 * target-delegates.c: Rebuild.
10095 * target.c (update_current_target): Don't inherit or default
10096 to_files_info.
10097 * target.h (struct target_ops) <to_files_info>: Use
10098 TARGET_DEFAULT_IGNORE.
10099
10100 2014-02-19 Tom Tromey <tromey@redhat.com>
10101
10102 * target-delegates.c: Rebuild.
10103 * target.c (update_current_target): Don't inherit or default
10104 to_store.
10105 * target.h (struct target_ops) <to_store>: Use
10106 TARGET_DEFAULT_NORETURN.
10107
10108 2014-02-19 Tom Tromey <tromey@redhat.com>
10109
10110 * target-delegates.c: Rebuild.
10111 * target.c (update_current_target): Don't inherit or default
10112 to_post_attach.
10113 * target.h (struct target_ops) <to_post_attach>: Use
10114 TARGET_DEFAULT_IGNORE.
10115
10116 2014-02-19 Tom Tromey <tromey@redhat.com>
10117
10118 * target-delegates.c: Rebuild.
10119 * target.c (update_current_target): Don't inherit or default
10120 to_rcmd.
10121 (default_rcmd): New function.
10122 (do_monitor_command): Unconditionally delegate.
10123 * target.h (struct target_ops) <to_rmcd>: Use
10124 TARGET_DEFAULT_FUNC.
10125
10126 2014-02-19 Tom Tromey <tromey@redhat.com>
10127
10128 * target-delegates.c: Rebuild.
10129 * target.c (init_dummy_target): Don't initialize to_attach.
10130 (target_attach): Unconditionally delegate.
10131 * target.h (struct target_ops) <to_attach>: Use
10132 TARGET_DEFAULT_FUNC.
10133
10134 2014-02-19 Tom Tromey <tromey@redhat.com>
10135
10136 * target-delegates.c: Rebuild.
10137 * target.c (target_detach): Unconditionally delegate.
10138 (init_dummy_target): Don't initialize to_detach.
10139 * target.h (struct target_ops) <to_detach>: Use
10140 TARGET_DEFAULT_IGNORE.
10141
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10143
10144 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10145 Add argument.
10146 (target_augmented_libraries_svr4_read): Add argument.
10147 * target.c (update_current_target): Update.
10148 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10149 argument.
10150
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10152
10153 * target.h (struct target_ops) <to_call_history_range>: Add
10154 argument.
10155 * target.c (target_call_history_range): Add argument.
10156 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10157 argument.
10158 (record_btrace_call_history_from): Update.
10159
10160 2014-02-19 Tom Tromey <tromey@redhat.com>
10161
10162 * target.h (struct target_ops) <to_call_history_from>: Add
10163 argument.
10164 * target.c (target_call_history_from): Add argument.
10165 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10166 argument.
10167
10168 2014-02-19 Tom Tromey <tromey@redhat.com>
10169
10170 * target.h (struct target_ops) <to_call_history>: Add argument.
10171 * target.c (target_call_history): Add argument.
10172 * record-btrace.c (record_btrace_call_history): Add 'self'
10173 argument.
10174
10175 2014-02-19 Tom Tromey <tromey@redhat.com>
10176
10177 * target.h (struct target_ops) <to_insn_history_range>: Add
10178 argument.
10179 * target.c (target_insn_history_range): Add argument.
10180 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10181 argument.
10182 (record_btrace_insn_history_from): Update.
10183
10184 2014-02-19 Tom Tromey <tromey@redhat.com>
10185
10186 * target.h (struct target_ops) <to_insn_history_from>: Add
10187 argument.
10188 * target.c (target_insn_history_from): Add argument.
10189 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10190 argument.
10191
10192 2014-02-19 Tom Tromey <tromey@redhat.com>
10193
10194 * target.h (struct target_ops) <to_insn_history>: Add argument.
10195 * target.c (target_insn_history): Add argument.
10196 * record-btrace.c (record_btrace_insn_history): Add 'self'
10197 argument.
10198
10199 2014-02-19 Tom Tromey <tromey@redhat.com>
10200
10201 * target.h (struct target_ops) <to_goto_record>: Add argument.
10202 * target.c (target_goto_record): Add argument.
10203 * record-full.c (record_full_goto): Add 'self' argument.
10204 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10205
10206 2014-02-19 Tom Tromey <tromey@redhat.com>
10207
10208 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10209 * target.c (target_goto_record_end): Add argument.
10210 * record-full.c (record_full_goto_end): Add 'self' argument.
10211 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10212
10213 2014-02-19 Tom Tromey <tromey@redhat.com>
10214
10215 * target.h (struct target_ops) <to_goto_record_begin>: Add
10216 argument.
10217 * target.c (target_goto_record_begin): Add argument.
10218 * record-full.c (record_full_goto_begin): Add 'self' argument.
10219 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10220 argument.
10221
10222 2014-02-19 Tom Tromey <tromey@redhat.com>
10223
10224 * target.h (struct target_ops) <to_record_is_replaying>: Add
10225 argument.
10226 * target.c (target_record_is_replaying): Add argument.
10227 * record-full.c (record_full_is_replaying): Add 'self' argument.
10228 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10229 argument.
10230 (record_btrace_xfer_partial, record_btrace_store_registers)
10231 (record_btrace_prepare_to_store, record_btrace_resume)
10232 (record_btrace_wait, record_btrace_decr_pc_after_break)
10233 (record_btrace_find_new_threads, record_btrace_thread_alive):
10234 Update.
10235
10236 2014-02-19 Tom Tromey <tromey@redhat.com>
10237
10238 * target.h (struct target_ops) <to_delete_record>: Add argument.
10239 * target.c (target_delete_record): Add argument.
10240 * record-full.c (record_full_delete): Add 'self' argument.
10241
10242 2014-02-19 Tom Tromey <tromey@redhat.com>
10243
10244 * target.h (struct target_ops) <to_save_record>: Add argument.
10245 * target.c (target_save_record): Add argument.
10246 * record-full.c (record_full_save): Add 'self' argument.
10247 (record_full_save): Add 'self' argument.
10248
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10250
10251 * target.h (struct target_ops) <to_info_record>: Add argument.
10252 * target.c (target_info_record): Add argument.
10253 * record.c (info_record_command): Add argument.
10254 * record-full.c (record_full_info): Add 'self' argument.
10255 * record-btrace.c (record_btrace_info): Add 'self' argument.
10256
10257 2014-02-19 Tom Tromey <tromey@redhat.com>
10258
10259 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10260 * target.c (target_stop_recording): Add argument.
10261 * record.c (record_stop): Add argument.
10262 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10263 argument.
10264
10265 2014-02-19 Tom Tromey <tromey@redhat.com>
10266
10267 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10268 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10269 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10270 argument.
10271 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10272 (_initialize_amd64_linux_nat): Use it.
10273 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10274 (_initialize_i386_linux_nat): Use it.
10275
10276 2014-02-19 Tom Tromey <tromey@redhat.com>
10277
10278 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10279 * target.c (target_teardown_btrace): Add argument.
10280 * remote.c (remote_teardown_btrace): Add 'self' argument.
10281 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10282 argument.
10283 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10284 argument.
10285
10286 2014-02-19 Tom Tromey <tromey@redhat.com>
10287
10288 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10289 * target.c (target_disable_btrace): Add argument.
10290 * remote.c (remote_disable_btrace): Add 'self' argument.
10291 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10292 argument.
10293 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10294 argument.
10295
10296 2014-02-19 Tom Tromey <tromey@redhat.com>
10297
10298 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10299 * target.c (target_enable_btrace): Add argument.
10300 * remote.c (remote_enable_btrace): Add 'self' argument.
10301 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10302 argument.
10303 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10304 argument.
10305
10306 2014-02-19 Tom Tromey <tromey@redhat.com>
10307
10308 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10309 (target_can_use_agent): Add argument.
10310 * target.c (update_current_target): Update.
10311 * remote.c (remote_can_use_agent): Add 'self' argument.
10312 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10313
10314 2014-02-19 Tom Tromey <tromey@redhat.com>
10315
10316 * target.h (struct target_ops) <to_use_agent>: Add argument.
10317 (target_use_agent): Add argument.
10318 * target.c (update_current_target): Update.
10319 * remote.c (remote_use_agent): Add 'self' argument.
10320 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10321
10322 2014-02-19 Tom Tromey <tromey@redhat.com>
10323
10324 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10325 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10326 (target_traceframe_info): Add argument.
10327 * target.c (update_current_target): Update.
10328 * remote.c (remote_traceframe_info): Add 'self' argument.
10329 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10330
10331 2014-02-19 Tom Tromey <tromey@redhat.com>
10332
10333 * target.h (target_static_tracepoint_markers_by_strid): Add
10334 argument.
10335 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10336 'self' argument.
10337 * target.c (update_current_target): Update.
10338 * remote.c (struct target_ops)
10339 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10340 * linux-nat.c (struct target_ops)
10341 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10342
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10344
10345 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10346 Add argument.
10347 (target_static_tracepoint_marker_at): Add argument.
10348 * target.c (update_current_target): Update.
10349 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10350 argument.
10351
10352 2014-02-19 Tom Tromey <tromey@redhat.com>
10353
10354 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10355 (target_set_permissions): Add argument.
10356 * target.c (update_current_target): Update.
10357 * remote.c (remote_set_permissions): Add 'self' argument.
10358 (remote_start_remote): Update.
10359
10360 2014-02-19 Tom Tromey <tromey@redhat.com>
10361
10362 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10363 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10364 (target_get_tib_address): Add argument.
10365 * target.c (update_current_target): Update.
10366 * remote.c (remote_get_tib_address): Add 'self' argument.
10367
10368 2014-02-19 Tom Tromey <tromey@redhat.com>
10369
10370 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10371 (target_set_trace_notes): Add argument.
10372 * target.c (update_current_target): Update.
10373 * remote.c (remote_set_trace_notes): Add 'self' argument.
10374
10375 2014-02-19 Tom Tromey <tromey@redhat.com>
10376
10377 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10378 argument.
10379 (target_set_trace_buffer_size): Add argument.
10380 * target.c (update_current_target): Update.
10381 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10382
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10384
10385 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10386 argument.
10387 (target_set_circular_trace_buffer): Add argument.
10388 * target.c (update_current_target): Update.
10389 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10390 argument.
10391
10392 2014-02-19 Tom Tromey <tromey@redhat.com>
10393
10394 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10395 argument.
10396 (target_set_disconnected_tracing): Add argument.
10397 * target.c (update_current_target): Update.
10398 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10399
10400 2014-02-19 Tom Tromey <tromey@redhat.com>
10401
10402 * target.h (struct target_ops)
10403 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10404 (target_get_min_fast_tracepoint_insn_len): Add argument.
10405 * target.c (update_current_target): Update.
10406 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10407 argument.
10408
10409 2014-02-19 Tom Tromey <tromey@redhat.com>
10410
10411 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10412 argument.
10413 (target_get_raw_trace_data): Add argument.
10414 * target.c (update_current_target): Update.
10415 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10416
10417 2014-02-19 Tom Tromey <tromey@redhat.com>
10418
10419 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10420 Add argument.
10421 (target_upload_trace_state_variables): Add argument.
10422 * target.c (update_current_target): Update.
10423 * remote.c (remote_upload_trace_state_variables): Add 'self'
10424 argument.
10425 (remote_start_remote): Update.
10426
10427 2014-02-19 Tom Tromey <tromey@redhat.com>
10428
10429 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10430 argument.
10431 (target_upload_tracepoints): Add argument.
10432 * target.c (update_current_target): Update.
10433 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10434 (remote_start_remote): Update.
10435
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10437
10438 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10439 (target_save_trace_data): Add argument.
10440 * target.c (update_current_target): Update.
10441 * remote.c (remote_save_trace_data): Add 'self' argument.
10442
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10444
10445 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10446 argument.
10447 * target.h (struct target_ops)
10448 <to_get_trace_state_variable_value>: Add argument.
10449 (target_get_trace_state_variable_value): Add argument.
10450 * target.c (update_current_target): Update.
10451 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10452 argument.
10453 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10454
10455 2014-02-19 Tom Tromey <tromey@redhat.com>
10456
10457 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10458 * target.h (struct target_ops) <to_trace_find>: Add argument.
10459 (target_trace_find): Add argument.
10460 * target.c (update_current_target): Update.
10461 * remote.c (remote_trace_find): Add 'self' argument.
10462 * ctf.c (ctf_trace_find): Add 'self' argument.
10463
10464 2014-02-19 Tom Tromey <tromey@redhat.com>
10465
10466 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10467 (target_trace_stop): Add argument.
10468 * target.c (update_current_target): Update.
10469 * remote.c (remote_trace_stop): Add 'self' argument.
10470
10471 2014-02-19 Tom Tromey <tromey@redhat.com>
10472
10473 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10474 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10475 argument.
10476 (target_get_tracepoint_status): Add argument.
10477 * target.c (update_current_target): Update.
10478 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10479
10480 2014-02-19 Tom Tromey <tromey@redhat.com>
10481
10482 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10483 * target.h (struct target_ops) <to_get_trace_status>: Add
10484 argument.
10485 (target_get_trace_status): Add argument.
10486 * target.c (update_current_target): Update.
10487 * remote.c (remote_get_trace_status): Add 'self' argument.
10488 (remote_start_remote, remote_can_download_tracepoint): Update.
10489 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10490
10491 2014-02-19 Tom Tromey <tromey@redhat.com>
10492
10493 * target.h (struct target_ops) <to_trace_start>: Add argument.
10494 (target_trace_start): Add argument.
10495 * target.c (update_current_target): Update.
10496 * remote.c (remote_trace_start): Add 'self' argument.
10497
10498 2014-02-19 Tom Tromey <tromey@redhat.com>
10499
10500 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10501 Add argument.
10502 (target_trace_set_readonly_regions): Add argument.
10503 * target.c (update_current_target): Update.
10504 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10505 argument.
10506
10507 2014-02-19 Tom Tromey <tromey@redhat.com>
10508
10509 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10510 argument.
10511 (target_disable_tracepoint): Add argument.
10512 * target.c (update_current_target): Update.
10513 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10514
10515 2014-02-19 Tom Tromey <tromey@redhat.com>
10516
10517 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10518 argument.
10519 (target_enable_tracepoint): Add argument.
10520 * target.c (update_current_target): Update.
10521 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10522
10523 2014-02-19 Tom Tromey <tromey@redhat.com>
10524
10525 * target.h (struct target_ops) <to_download_trace_state_variable>:
10526 Add argument.
10527 (target_download_trace_state_variable): Add argument.
10528 * target.c (update_current_target): Update.
10529 * remote.c (remote_download_trace_state_variable): Add 'self'
10530 argument.
10531
10532 2014-02-19 Tom Tromey <tromey@redhat.com>
10533
10534 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10535 argument.
10536 (target_can_download_tracepoint): Add argument.
10537 * target.c (update_current_target): Update.
10538 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10539
10540 2014-02-19 Tom Tromey <tromey@redhat.com>
10541
10542 * target.h (struct target_ops) <to_download_tracepoint>: Add
10543 argument.
10544 (target_download_tracepoint): Add argument.
10545 * target.c (update_current_target): Update.
10546 * remote.c (remote_download_tracepoint): Add 'self' argument.
10547
10548 2014-02-19 Tom Tromey <tromey@redhat.com>
10549
10550 * target.h (struct target_ops) <to_trace_init>: Add argument.
10551 (target_trace_init): Add argument.
10552 * target.c (update_current_target): Update.
10553 * remote.c (remote_trace_init): Add 'self' argument.
10554
10555 2014-02-19 Tom Tromey <tromey@redhat.com>
10556
10557 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10558 * target.c (target_fileio_readlink): Add argument.
10559 * remote.c (remote_hostio_readlink): Add 'self' argument.
10560 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10561
10562 2014-02-19 Tom Tromey <tromey@redhat.com>
10563
10564 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10565 * target.c (target_fileio_unlink): Add argument.
10566 * remote.c (remote_hostio_unlink): Add 'self' argument.
10567 (remote_file_delete): Update.
10568 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10569
10570 2014-02-19 Tom Tromey <tromey@redhat.com>
10571
10572 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10573 * target.c (target_fileio_close): Add argument.
10574 * remote.c (remote_hostio_close): Add 'self' argument.
10575 (remote_hostio_close_cleanup): Update.
10576 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10577 Update.
10578 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10579
10580 2014-02-19 Tom Tromey <tromey@redhat.com>
10581
10582 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10583 * target.c (target_fileio_pread): Add argument.
10584 * remote.c (remote_hostio_pread): Add 'self' argument.
10585 (remote_bfd_iovec_pread, remote_file_get): Update.
10586 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10587
10588 2014-02-19 Tom Tromey <tromey@redhat.com>
10589
10590 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10591 * target.c (target_fileio_pwrite): Add argument.
10592 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10593 (remote_file_put): Update.
10594 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10595
10596 2014-02-19 Tom Tromey <tromey@redhat.com>
10597
10598 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10599 * target.c (target_fileio_open): Add argument.
10600 * remote.c (remote_hostio_open): Add 'self' argument.
10601 (remote_bfd_iovec_open): Add 'self' argument.
10602 (remote_file_put): Add 'self' argument.
10603 (remote_file_get): Add 'self' argument.
10604 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10605
10606 2014-02-19 Tom Tromey <tromey@redhat.com>
10607
10608 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10609 Add argument.
10610 (target_can_run_breakpoint_commands): Add argument.
10611 * target.c (update_current_target): Update.
10612 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10613 argument.
10614 (remote_insert_breakpoint): Add 'self' argument.
10615 (remote_insert_hw_breakpoint): Add 'self' argument.
10616 (remote_can_run_breakpoint_commands): Add 'self' argument.
10617
10618 2014-02-19 Tom Tromey <tromey@redhat.com>
10619
10620 * target.h (struct target_ops)
10621 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10622 (target_supports_evaluation_of_breakpoint_conditions): Add
10623 argument.
10624 * target.c (update_current_target): Update.
10625 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10626 argument.
10627 (remote_insert_breakpoint): Add 'self' argument.
10628 (remote_insert_hw_breakpoint): Add 'self' argument.
10629 (remote_supports_cond_breakpoints): Add 'self' argument.
10630
10631 2014-02-19 Tom Tromey <tromey@redhat.com>
10632
10633 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10634 argument.
10635 (target_supports_string_tracing): Add argument.
10636 * target.c (update_current_target): Update.
10637 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10638
10639 2014-02-19 Tom Tromey <tromey@redhat.com>
10640
10641 * target.h (struct target_ops)
10642 <to_supports_disable_randomization>: Add argument.
10643 * target.c (find_default_supports_disable_randomization): Add
10644 argument.
10645 (target_supports_disable_randomization): Add argument.
10646 (find_default_supports_disable_randomization): Add 'self'
10647 argument.
10648 * remote.c (extended_remote_supports_disable_randomization): Add
10649 'self' argument.
10650 (remote_supports_disable_randomization): Add 'self' argument.
10651 (extended_remote_create_inferior): Update.
10652 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10653 'self' argument.
10654
10655 2014-02-19 Tom Tromey <tromey@redhat.com>
10656
10657 * target.h (struct target_ops)
10658 <to_supports_enable_disable_tracepoint>: Add argument.
10659 (target_supports_enable_disable_tracepoint): Add argument.
10660 * target.c (update_current_target): Update.
10661 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10662 argument.
10663
10664 2014-02-19 Tom Tromey <tromey@redhat.com>
10665
10666 * target.h (struct target_ops) <to_supports_multi_process>: Add
10667 argument.
10668 (target_supports_multi_process): Add argument.
10669 * target.c (update_current_target): Update.
10670 * remote.c (remote_supports_multi_process): Add 'self' argument.
10671 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10672 argument.
10673 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10674 argument.
10675
10676 2014-02-19 Tom Tromey <tromey@redhat.com>
10677
10678 * target.h (struct target_ops) <to_execution_direction>: Add
10679 argument.
10680 (target_execution_direction): Add argument.
10681 * target.c (default_execution_direction): Add 'self' argument.
10682 * record-full.c (record_full_execution_direction): Add 'self'
10683 argument.
10684
10685 2014-02-19 Tom Tromey <tromey@redhat.com>
10686
10687 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10688 argument.
10689 (target_can_execute_reverse): Add argument.
10690 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10691 * record-full.c (record_full_can_execute_reverse): Add 'self'
10692 argument.
10693 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10694 argument.
10695
10696 2014-02-19 Tom Tromey <tromey@redhat.com>
10697
10698 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10699 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10700 argument.
10701 (target_get_ada_task_ptid): Add argument.
10702 * target.c (update_current_target): Update.
10703 (default_get_ada_task_ptid): Add 'self' argument.
10704 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10705 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10706 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10707 argument.
10708 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10709 argument.
10710 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10711 argument.
10712 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10713 argument.
10714 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10715 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10716 argument.
10717
10718 2014-02-19 Tom Tromey <tromey@redhat.com>
10719
10720 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10721 (target_goto_bookmark): Add argument.
10722 * target.c (dummy_goto_bookmark): Add 'self' argument.
10723 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10724
10725 2014-02-19 Tom Tromey <tromey@redhat.com>
10726
10727 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10728 (target_get_bookmark): Add argument.
10729 * target.c (dummy_get_bookmark): Add 'self' argument.
10730 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10731
10732 2014-02-19 Tom Tromey <tromey@redhat.com>
10733
10734 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10735 argument.
10736 (target_make_corefile_notes): Add argument.
10737 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10738 * procfs.c (procfs_make_note_section): Add 'self' argument.
10739 (procfs_make_note_section): Add 'self' argument.
10740 (procfs_make_note_section): Add 'self' argument.
10741 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10742 argument.
10743 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10744 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10745 * exec.c (exec_make_note_section): Add 'self' argument.
10746 (exec_make_note_section): Add 'self' argument.
10747
10748 2014-02-19 Tom Tromey <tromey@redhat.com>
10749
10750 * target.h (struct target_ops) <to_find_memory_regions>: Add
10751 argument.
10752 (target_find_memory_regions): Add argument.
10753 * target.c (dummy_find_memory_regions): Add 'self' argument.
10754 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10755 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10756 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10757 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10758 * exec. (exec_do_find_memory_regions): New global.
10759 (exec_set_find_memory_regions): Rewrite.
10760 (exec_find_memory_regions): New function.
10761 (init_exec_ops): Use exec_find_memory_regions.
10762
10763 2014-02-19 Tom Tromey <tromey@redhat.com>
10764
10765 * target.h (struct target_ops) <to_supports_non_stop>: Add
10766 argument.
10767 * target.c (find_default_supports_non_stop): Add argument.
10768 (target_supports_non_stop): Add argument.
10769 (find_default_supports_non_stop): Add 'self' argument.
10770 * remote.c (remote_supports_non_stop): Add 'self' argument.
10771 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10772
10773 2014-02-19 Tom Tromey <tromey@redhat.com>
10774
10775 * target.h (struct target_ops) <to_log_command>: Add argument.
10776 (target_log_command): Add argument.
10777 * serial.h (serial_log_command): Add 'self' argument.
10778 * serial.c (serial_log_command): Add 'self' argument.
10779
10780 2014-02-19 Tom Tromey <tromey@redhat.com>
10781
10782 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10783 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10784 argument.
10785 (target_pid_to_exec_file): Add argument.
10786 * target.c (debug_to_pid_to_exec_file): Add argument.
10787 (update_current_target): Update.
10788 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10789 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10790 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10791 (linux_handle_extended_wait): Update.
10792 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10793 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10794 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10795 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10796
10797 2014-02-19 Tom Tromey <tromey@redhat.com>
10798
10799 * target.h (struct target_ops) <to_rcmd>: Add argument.
10800 (target_rcmd): Add argument.
10801 * target.c (debug_to_rcmd): Add argument.
10802 (update_current_target, do_monitor_command): Update.
10803 * remote.c (remote_rcmd): Add 'self' argument.
10804 * monitor.c (monitor_rcmd): Add 'self' argument.
10805
10806 2014-02-19 Tom Tromey <tromey@redhat.com>
10807
10808 * windows-nat.c (windows_stop): Add 'self' argument.
10809 * target.h (struct target_ops) <to_stop>: Add argument.
10810 * target.c (target_stop): Add argument.
10811 (debug_to_stop): Add argument.
10812 (update_current_target): Update.
10813 * remote.c (remote_stop): Add 'self' argument.
10814 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10815 (gdbsim_cntrl_c): Update.
10816 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10817 * procfs.c (procfs_stop): Add 'self' argument.
10818 * nto-procfs.c (procfs_stop): Add 'self' argument.
10819 * monitor.c (monitor_stop): Add 'self' argument.
10820 (monitor_open): Update.
10821 * linux-nat.c (linux_nat_stop): Add argument.
10822 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10823 * gnu-nat.c (gnu_stop): Add 'self' argument.
10824 * darwin-nat.c (darwin_stop): Add 'self' argument.
10825
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10827
10828 * target.h (struct target_ops) <to_thread_name>: Add argument.
10829 * target.c (target_thread_name): Add argument.
10830 (update_current_target): Update.
10831 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10832
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10834
10835 * target.h (struct target_ops) <to_extra_thread_info>: Add
10836 argument.
10837 (target_extra_thread_info): Add argument.
10838 * target.c (update_current_target): Update.
10839 * remote.c (remote_threads_extra_info): Add 'self' argument.
10840 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10841 argument.
10842 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10843 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10844 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10845 argument.
10846 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10847 argument.
10848 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10849 argument.
10850 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10851 argument.
10852
10853 2014-02-19 Tom Tromey <tromey@redhat.com>
10854
10855 * target.h (struct target_ops) <to_program_signals>: Add argument.
10856 * target.c (target_program_signals): Add argument.
10857 * remote.c (remote_program_signals): Add 'self' argument.
10858
10859 2014-02-19 Tom Tromey <tromey@redhat.com>
10860
10861 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10862 * target.c (target_pass_signals): Add argument.
10863 * remote.c (remote_pass_signals): Add 'self' argument.
10864 (remote_start_remote): Update.
10865 * procfs.c (procfs_pass_signals): Add 'self' argument.
10866 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10867 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10868 (linux_nat_create_inferior, linux_nat_attach): Update.
10869
10870 2014-02-19 Tom Tromey <tromey@redhat.com>
10871
10872 * windows-nat.c (windows_can_run): Add 'self' argument.
10873 * target.h (struct target_ops) <to_can_run>: Add argument.
10874 (target_can_run): Add argument.
10875 * target.c (debug_to_can_run): Add argument.
10876 (update_current_target): Update.
10877 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10878 * inf-child.c (inf_child_can_run): Add 'self' argument.
10879 * go32-nat.c (go32_can_run): Add 'self' argument.
10880
10881 2014-02-19 Tom Tromey <tromey@redhat.com>
10882
10883 * target.h (struct target_ops) <to_has_exited>: Add argument.
10884 (target_has_exited): Add argument.
10885 * target.c (debug_to_has_exited): Add argument.
10886 (update_current_target): Update.
10887
10888 2014-02-19 Tom Tromey <tromey@redhat.com>
10889
10890 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10891 argument.
10892 (target_set_syscall_catchpoint): Add argument.
10893 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10894 argument.
10895 * target.c (update_current_target): Update.
10896
10897 2014-02-19 Tom Tromey <tromey@redhat.com>
10898
10899 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10900 argument.
10901 (target_remove_exec_catchpoint): Add argument.
10902 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10903 (update_current_target): Update.
10904 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10905 argument.
10906
10907 2014-02-19 Tom Tromey <tromey@redhat.com>
10908
10909 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10910 argument.
10911 (target_insert_exec_catchpoint): Add argument.
10912 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10913 (update_current_target): Update.
10914 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10915 argument.
10916
10917 2014-02-19 Tom Tromey <tromey@redhat.com>
10918
10919 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10920 argument.
10921 (target_remove_vfork_catchpoint): Add argument.
10922 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10923 (update_current_target): Update.
10924 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10925 argument.
10926
10927 2014-02-19 Tom Tromey <tromey@redhat.com>
10928
10929 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10930 argument.
10931 (target_insert_vfork_catchpoint): Add argument.
10932 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10933 (update_current_target): Update.
10934 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10935 argument.
10936
10937 2014-02-19 Tom Tromey <tromey@redhat.com>
10938
10939 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10940 argument.
10941 (target_remove_fork_catchpoint): Add argument.
10942 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10943 (update_current_target): Update.
10944 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10945 argument.
10946
10947 2014-02-19 Tom Tromey <tromey@redhat.com>
10948
10949 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10950 argument.
10951 (target_insert_fork_catchpoint): Add argument.
10952 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10953 (update_current_target): Update.
10954 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10955 argument.
10956
10957 2014-02-19 Tom Tromey <tromey@redhat.com>
10958
10959 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10960 argument.
10961 (target_post_startup_inferior): Add argument.
10962 * target.c (debug_to_post_startup_inferior): Add argument.
10963 (update_current_target): Update.
10964 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10965 argument.
10966 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10967 argument.
10968 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10969 argument.
10970 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10971 argument.
10972 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10973 'self' argument.
10974 (super_post_startup_inferior): Likewise.
10975 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10976 'self' argument.
10977 (super_post_startup_inferior): Likewise.
10978 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10979 Add 'self' argument.
10980 (super_post_startup_inferior): Likewise.
10981
10982 2014-02-19 Tom Tromey <tromey@redhat.com>
10983
10984 * target.h (struct target_ops) <to_load>: Add argument.
10985 * target.c (target_load): Add argument.
10986 (debug_to_load): Add argument.
10987 (update_current_target): Update.
10988 * remote.c (remote_load): Add 'self' argument.
10989 * remote-sim.c (gdbsim_load): Add 'self' argument.
10990 * remote-mips.c (mips_load): Add 'self' argument.
10991 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10992 * monitor.c (monitor_load): Add 'self' argument.
10993 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10994
10995 2014-02-19 Tom Tromey <tromey@redhat.com>
10996
10997 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10998 (target_terminal_info): Add argument.
10999 * target.c (debug_to_terminal_info): Add argument.
11000 (default_terminal_info): Likewise.
11001 * inflow.c (child_terminal_info): Add 'self' argument.
11002 * inferior.h (child_terminal_info): Add 'self' argument.
11003 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11004
11005 2014-02-19 Tom Tromey <tromey@redhat.com>
11006
11007 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11008 argument.
11009 (target_terminal_save_ours): Add argument.
11010 * target.c (debug_to_terminal_save_ours): Add argument.
11011 (update_current_target): Update.
11012 * inflow.c (terminal_save_ours): Add 'self' argument.
11013 * inferior.h (terminal_save_ours): Add 'self' argument.
11014
11015 2014-02-19 Tom Tromey <tromey@redhat.com>
11016
11017 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11018 (target_terminal_ours): Add argument.
11019 * target.c (debug_to_terminal_ours): Add argument.
11020 (update_current_target): Update.
11021 * remote.c (remote_terminal_ours): Add 'self' argument.
11022 (remote_close): Update.
11023 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11024 * inflow.c (terminal_ours): Add 'self' argument.
11025 * inferior.h (terminal_ours): Add 'self' argument.
11026 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11027
11028 2014-02-19 Pedro Alves <palves@redhat.com>
11029 Tom Tromey <tromey@redhat.com>
11030
11031 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11032 argument.
11033 (target_terminal_ours_for_output): Add argument.
11034 * target.c (debug_to_terminal_ours_for_output): Add argument.
11035 (update_current_target): Update.
11036 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11037 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11038 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11039
11040 2014-02-19 Tom Tromey <tromey@redhat.com>
11041
11042 * target.h (struct target_ops) <to_terminal_inferior>: Add
11043 argument.
11044 * target.c (target_terminal_inferior): Add argument.
11045 (update_current_target): Update.
11046 * remote.c (remote_terminal_inferior): Add 'self' argument.
11047 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11048 * inflow.c (terminal_inferior): Add 'self' argument.
11049 * inferior.h (terminal_inferior): Add 'self' argument.
11050 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11051 (go32_terminal_inferior): Add 'self' argument.
11052
11053 2014-02-19 Tom Tromey <tromey@redhat.com>
11054
11055 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11056 (target_terminal_init): Add argument.
11057 * target.c (debug_to_terminal_init): Add argument.
11058 (update_current_target): Update.
11059 * inflow.c (terminal_init_inferior): Add 'self' argument.
11060 * inferior.h (terminal_init_inferior): Add 'self' argument.
11061 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11062 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11063
11064 2014-02-19 Tom Tromey <tromey@redhat.com>
11065
11066 * target.h (struct target_ops)
11067 <to_can_accel_watchpoint_condition>: Add argument.
11068 (target_can_accel_watchpoint_condition): Add argument.
11069 * target.c (debug_to_can_accel_watchpoint_condition): Add
11070 argument.
11071 (update_current_target): Update.
11072 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11073 'self' argument.
11074
11075 2014-02-19 Tom Tromey <tromey@redhat.com>
11076
11077 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11078 Add argument.
11079 (target_region_ok_for_hw_watchpoint): Add argument.
11080 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11081 (default_region_ok_for_hw_watchpoint): Add argument.
11082 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11083 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11084 argument.
11085 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11086 argument.
11087 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11088 argument.
11089 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11090 'self' argument.
11091 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11092 'self' argument.
11093 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11094 'self' argument.
11095 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11096 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11097 'self' argument.
11098 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11099 Add 'self' argument.
11100
11101 2014-02-19 Tom Tromey <tromey@redhat.com>
11102
11103 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11104 argument.
11105 (target_insert_watchpoint): Add argument.
11106 * target.c (debug_to_insert_watchpoint): Add argument.
11107 (update_current_target): Update.
11108 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11109 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11110 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11111 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11112 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11113 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11114 argument.
11115 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11116 (procfs_insert_hw_watchpoint): Add 'self' argument.
11117 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11118 argument.
11119 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11120 argument.
11121 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11122 argument.
11123 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11124 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11125 argument.
11126 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11127 'self' argument.
11128
11129 2014-02-19 Tom Tromey <tromey@redhat.com>
11130
11131 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11132 argument.
11133 (target_remove_watchpoint): Add argument.
11134 * target.c (debug_to_remove_watchpoint): Add argument.
11135 (update_current_target): Update.
11136 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11137 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11138 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11139 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11140 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11141 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11142 argument.
11143 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11144 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11145 argument.
11146 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11147 argument.
11148 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11149 argument.
11150 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11151 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11152 argument.
11153 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11154 'self' argument.
11155
11156 2014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11159 argument.
11160 (target_remove_hw_breakpoint): Add argument.
11161 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11162 (update_current_target): Update.
11163 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11164 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11165 argument.
11166 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11167 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11168 argument.
11169 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11170 'self' argument.
11171
11172 2014-02-19 Tom Tromey <tromey@redhat.com>
11173
11174 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11175 argument.
11176 (target_insert_hw_breakpoint): Add argument.
11177 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11178 (update_current_target): Update.
11179 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11180 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11181 argument.
11182 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11183 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11184 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11185 argument.
11186 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11187 'self' argument.
11188
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11190
11191 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11192 argument.
11193 (target_can_use_hardware_watchpoint): Add argument.
11194 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11195 (update_current_target): Update.
11196 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11197 argument.
11198 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11199 argument.
11200 * remote.c (remote_check_watch_resources): Add 'self' argument.
11201 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11202 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11203 argument.
11204 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11205 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11206 argument.
11207 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11208 argument.
11209 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11210 argument.
11211 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11212 argument.
11213 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11214 argument.
11215 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11216 argument.
11217 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11218 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11219 argument.
11220 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11221 'self' argument.
11222
11223 2014-02-19 Tom Tromey <tromey@redhat.com>
11224
11225 * target.h (struct target_ops) <to_post_attach>: Add argument.
11226 (target_post_attach): Add argument.
11227 * target.c (debug_to_post_attach): Add argument.
11228 (update_current_target): Update.
11229 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11230 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11231 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11232 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11233 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11234
11235 2014-02-19 Tom Tromey <tromey@redhat.com>
11236
11237 * windows-nat.c (windows_close): Add 'self' argument.
11238 * tracepoint.c (tfile_close): Add 'self' argument.
11239 * target.h (struct target_ops) <to_close>: Add argument.
11240 * target.c (target_close): Add argument.
11241 (update_current_target): Update.
11242 * remote.c (remote_close): Add 'self' argument.
11243 * remote-sim.c (gdbsim_close): Add 'self' argument.
11244 * remote-mips.c (mips_close): Add 'self' argument.
11245 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11246 * record-full.c (record_full_close): Add 'self' argument.
11247 * record-btrace.c (record_btrace_close): Add 'self' argument.
11248 * monitor.h (monitor_close): Add 'self' argument.
11249 * monitor.c (monitor_close): Add 'self' argument.
11250 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11251 * linux-nat.c (linux_nat_close): Add argument.
11252 * go32-nat.c (go32_close): Add 'self' argument.
11253 * exec.c (exec_close_1): Add 'self' argument.
11254 * ctf.c (ctf_close): Add 'self' argument.
11255 * corelow.c (core_close): Add 'self' argument.
11256 (core_close_cleanup): Update.
11257 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11258 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11259
11260 2014-02-19 Tom Tromey <tromey@redhat.com>
11261
11262 * remote.c (remote_load): New function.
11263 (init_remote_ops): Use it.
11264
11265 2014-02-19 Tom Tromey <tromey@redhat.com>
11266
11267 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11268 argument.
11269 * common/linux-btrace.h (linux_supports_btrace): Update.
11270 * remote.c (remote_supports_btrace): Add "self" argument.
11271 * target-delegates.c: Rebuild.
11272 * target.c (target_supports_btrace): Remove.
11273 * target.h (struct target_ops) <to_supports_btrace>: Add
11274 target_ops argument.
11275 (target_supports_btrace): New define.
11276
11277 2014-02-19 Tom Tromey <tromey@redhat.com>
11278
11279 * record-full.c (record_full_beneath_to_resume_ops)
11280 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11281 (record_full_beneath_to_wait)
11282 (record_full_beneath_to_store_registers_ops)
11283 (record_full_beneath_to_store_registers)
11284 (record_full_beneath_to_xfer_partial_ops)
11285 (record_full_beneath_to_xfer_partial)
11286 (record_full_beneath_to_insert_breakpoint_ops)
11287 (record_full_beneath_to_insert_breakpoint)
11288 (record_full_beneath_to_remove_breakpoint_ops)
11289 (record_full_beneath_to_remove_breakpoint)
11290 (record_full_beneath_to_stopped_by_watchpoint)
11291 (record_full_beneath_to_stopped_data_address)
11292 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11293 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11294 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11295 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11296 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11297 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11298 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11299 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11300 (record_full_resume, record_full_wait_1)
11301 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11302 (record_full_store_registers, record_full_xfer_partial)
11303 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11304 (record_full_async, record_full_core_xfer_partial): Use target
11305 delegation.
11306 * target-delegates.c: Rebuild.
11307 * target.c (current_xfer_partial): Remove.
11308 (update_current_target): Do not INHERIT or de_fault
11309 to_insert_breakpoint, to_remove_breakpoint,
11310 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11311 to_is_async_p, to_async. Do not set to_xfer_partial field.
11312 (default_xfer_partial): Simplify.
11313 (current_xfer_partial): Remove.
11314 (target_wait, target_resume): Simplify.
11315 (find_default_can_async_p, find_default_is_async_p): Update.
11316 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11317 to_xfer_partial, to_stopped_by_watchpoint,
11318 to_stopped_data_address.
11319 (target_store_registers): Simplify.
11320 (forward_target_remove_breakpoint)
11321 (forward_target_insert_breakpoint): Remove.
11322 (target_remove_breakpoint, target_insert_breakpoint)
11323 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11324 * target.h (struct target_ops) <to_resume, to_wait,
11325 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11326 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11327 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11328 markup.
11329 (forward_target_remove_breakpoint)
11330 (forward_target_insert_breakpoint): Remove.
11331 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11332 directly.
11333 (record_btrace_insert_breakpoint): Delegate directly.
11334
11335 2014-02-19 Tom Tromey <tromey@redhat.com>
11336
11337 PR build/7701:
11338 * target-delegates.c: New file.
11339 * target.c: Include target-delegates.c.
11340 (init_dummy_target): Call install_dummy_methods.
11341 (complete_target_initialization): Call install_delegators.
11342 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11343 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11344 * make-target-delegates: New file.
11345
11346 2014-02-19 Tom Tromey <tromey@redhat.com>
11347
11348 * record.c (find_record_target): Use find_target_at.
11349 * target.c (find_target_at): New function.
11350 * target.h (find_target_at): Declare.
11351
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11355 Add 'ops' argument.
11356 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11357 'ops' argument.
11358 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11359 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11360 'ops' argument.
11361 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11362 argument.
11363 * linux-nat.c (save_sigtrap): Update.
11364 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11365 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11366 (linux_nat_close): Update.
11367 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11368 argument.
11369 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11370 argument.
11371 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11372 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11373 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11374 (tmp_to_async): Add 'ops' argument.
11375 (record_full_stopped_by_watchpoint, record_full_async)
11376 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11377 argument.
11378 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11379 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11380 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11381 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11382 (remote_is_async_p, remote_async): Add 'ops' argument.
11383 (remote_stopped_data_address): Update.
11384 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11385 * target.c (update_current_target)
11386 (find_default_can_async_p, find_default_is_async_p): Update.
11387 (init_dummy_target): Update.
11388 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11389 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11390 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11391 (target_can_async_p, target_is_async_p, target_async)
11392 (target_stopped_by_watchpoint): Update.
11393
11394 2014-02-19 Yao Qi <yao@codesourcery.com>
11395
11396 PR gdb/16220
11397 * gdbarch.sh: Remove startup_gdbarch.
11398 * gdbarch.c: Regenerated.
11399 * gdbarch.h: Likewise.
11400
11401 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11402
11403 * rl78-tdep.c (rl78_g10_register_name): New function.
11404 (rl78_return_value): Add g10 support.
11405 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11406 g10.
11407
11408 2014-02-17 Doug Evans <xdje42@gmail.com>
11409
11410 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11411 (SUBDIR_GUILE_SRCS): Ditto.
11412 (scm-gsmob.o): Ditto.
11413
11414 2014-02-17 Yao Qi <yao@codesourcery.com>
11415
11416 * gnu-nat.c (ILL_RPC): Declare defined function.
11417
11418 2014-02-17 Yao Qi <yao@codesourcery.com>
11419
11420 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11421 mach_msg_type_number_t.
11422 (gnu_write_inferior): Likewise.
11423
11424 2014-02-17 Yao Qi <yao@codesourcery.com>
11425
11426 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11427 in format string.
11428 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11429 (inf_validate_procs, inf_signal): Likewise.
11430 (S_exception_raise_request): Likewise.
11431 (do_mach_notify_dead_name): Likewise.
11432 (steal_exc_port): Likewise.
11433 (gnu_read_inferior): Change 'copy_count''s type to
11434 mach_msg_type_number_t.
11435 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11436 format string.
11437
11438 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11439
11440 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11441 flag. Adjust all users; in particular...
11442 (gnu_wait): ..., don't decrement its value in here...
11443 (gnu_create_inferior): ..., and instead set the flag in here,
11444 around the startup_inferior call, and call that one with
11445 START_INFERIOR_TRAPS_EXPECTED.
11446
11447 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11448 (ILL_RPC): ... new macro.
11449 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11450 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11451 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11452 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11453 functions with ILL_RPC macro.
11454 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11455 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11456 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11457 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11458 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11459 (S_proc_getlogin_reply, S_proc_getsid_reply)
11460 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11461 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11462 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11463 (S_proc_getnports_reply, S_proc_is_important_reply)
11464 (S_proc_get_code_reply): New stub functions, generated with
11465 ILL_RPC macro.
11466
11467 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11468 collected the type check structures.
11469
11470 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11471
11472 2014-02-14 Doug Evans <dje@google.com>
11473
11474 * target.c (target_write_partial): Fix result type.
11475
11476 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11477
11478 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11479 the proper offsets to access fpregset_t.
11480
11481 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11482
11483 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11484 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11485 * h8300-tdep.c (setmachinelist): Remove global.
11486 * hppa-tdep.c (hppa_sigtramp): Remove global.
11487 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11488 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11489 * ravenscar-thread.c (update_target_observer): Remove global.
11490 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11491
11492 2014-02-12 Tom Tromey <tromey@redhat.com>
11493
11494 * common/rsp-low.c: Update comments.
11495 * common/rsp-low.h: Update comments.
11496
11497 2014-02-12 Tom Tromey <tromey@redhat.com>
11498
11499 * common/rsp-low.c (convert_ascii_to_int): Remove.
11500 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11501
11502 2014-02-12 Tom Tromey <tromey@redhat.com>
11503
11504 * common/rsp-low.h (unhexify): Don't declare.
11505 * common/rsp-low.c (unhexify): Remove.
11506
11507 2014-02-12 Tom Tromey <tromey@redhat.com>
11508
11509 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11510 * common/rsp-low.c (convert_int_to_ascii): Remove.
11511
11512 2014-02-12 Tom Tromey <tromey@redhat.com>
11513
11514 * common/rsp-low.h (hexify): Don't declare.
11515 * common/rsp-low.c (hexify): Remove.
11516
11517 2014-02-12 Tom Tromey <tromey@redhat.com>
11518
11519 * common/rsp-low.c (hexify): Never take strlen of argument.
11520
11521 2014-02-12 Tom Tromey <tromey@redhat.com>
11522
11523 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11524 * remote.c (extended_remote_run, remote_rcmd)
11525 (remote_download_trace_state_variable, remote_save_trace_data)
11526 (remote_set_trace_notes): Update.
11527 * tracepoint.c (encode_source_string, tfile_write_status)
11528 (tfile_write_uploaded_tsv): Update.
11529
11530 2014-02-12 Tom Tromey <tromey@redhat.com>
11531
11532 * tracepoint.c: Include rsp-low.h.
11533 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11534 * remote.c: Include rsp-low.h.
11535 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11536 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11537 (remote_unescape_input): Move to common/rsp-low.c.
11538 * common/rsp-low.h: New file.
11539 * common/rsp-low.c: New file.
11540 * Makefile.in (SFILES): Add common/rsp-low.c.
11541 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11542 (COMMON_OBS): Add rsp-low.o.
11543 (rsp-low.o): New target.
11544
11545 2014-02-12 Tom Tromey <tromey@redhat.com>
11546
11547 * utils.h: Include print-utils.h.
11548 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11549 (int_string, core_addr_to_string, core_addr_to_string_nz)
11550 (hex_string, hex_string_custom): Don't declare.
11551 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11552 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11553 (hex_string_custom, int_string, core_addr_to_string)
11554 (core_addr_to_string_nz, host_address_to_string): Move to
11555 common/print-utils.c.
11556 * common/print-utils.h: New file.
11557 * common/print-utils.c: New file
11558 * Makefile.in (SFILES): Add common/print-utils.c.
11559 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11560 (COMMON_OBS): Add print-utils.o.
11561 (print-utils.o): New target.
11562
11563 2014-02-12 Tom Tromey <tromey@redhat.com>
11564
11565 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11566
11567 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11568
11569 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11570
11571 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11572
11573 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11574 if a PT_IO ptrace request returns sucessfully but indicates that 0
11575 bytes were transferred.
11576
11577 2014-02-12 Pedro Alves <palves@redhat.com>
11578 Kevin Buettner <kevinb@redhat.com>
11579
11580 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11581 TYPE_INSTANCE_FLAG_CODE_SPACE.
11582
11583 2014-02-12 Pedro Alves <palves@redhat.com>
11584
11585 * h8300-tdep.c (pseudo_from_raw_register)
11586 (raw_from_pseudo_register): New functions.
11587 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11588 them.
11589
11590 2014-02-12 Pedro Alves <palves@redhat.com>
11591
11592 * h8300-tdep.c (h8300_register_sim_regno): New function.
11593 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11594 gdbarch_register_sim_regno hook.
11595
11596 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11597
11598 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11599
11600 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11601
11602 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11603
11604 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11605
11606 * obsd-tdep.h (obsd_init_abi): New prototype.
11607 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11608 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11609 (obsd_init_abi): New functions.
11610 * i386obsd-tdep.c: Include "obsd-tdep.h".
11611 (i386obsd_init_abi): Call obsd_init_abi.
11612 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11613 (amd64obsd_init_abi): Call obsd_init_abi.
11614 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11615 obsd-tdep.c to gdb_target_obs.
11616
11617 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11618
11619 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11620 double float arguments to 16-byte in the argument slots.
11621
11622 2014-02-11 Doug Evans <xdje42@gmail.com>
11623
11624 * configure.ac: Don't crash if pkg-config is not found and guile
11625 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11626 in guile checks.
11627 * configure: Regenerate.
11628
11629 2014-02-11 Yao Qi <yao@codesourcery.com>
11630
11631 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11632 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11633 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11634 * gnu-nat.c (gnu_xfer_memory): Likewise.
11635 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11636 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11637 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11638 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11639
11640 2014-02-11 Yao Qi <yao@codesourcery.com>
11641
11642 * target.h (enum target_xfer_error): Rename to ...
11643 (enum target_xfer_status): ... it. New. All users updated.
11644 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11645 New.
11646 (TARGET_XFER_STATUS_ERROR_P): New macro.
11647 (target_xfer_error_to_string): Remove declaration.
11648 (target_xfer_status_to_string): Declare.
11649 (target_xfer_partial_ftype): Adjust it.
11650 (struct target_ops) <to_xfer_partial>: Return
11651 target_xfer_status. Add argument xfered_len. Update
11652 comments.
11653 * target.c (target_xfer_error_to_string): Rename to ...
11654 (target_xfer_status_to_string): ... it. New. All callers
11655 updated.
11656 (target_read_live_memory): Likewise. Call target_xfer_partial
11657 instead of target_read.
11658 (memory_xfer_live_readonly_partial): Return
11659 target_xfer_status. Add argument xfered_len.
11660 (raw_memory_xfer_partial): Likewise.
11661 (memory_xfer_partial_1): Likewise.
11662 (memory_xfer_partial): Likewise.
11663 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11664 properly. Update debug message.
11665 (default_xfer_partial, current_xfer_partial): Likewise.
11666 (target_write_partial): Likewise.
11667 (target_read_partial): Likewise. All callers updated.
11668 (read_whatever_is_readable): Likewise.
11669 (target_write_with_progress): Likewise.
11670 (target_read_alloc_1): Likewise.
11671
11672 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11673 * auxv.c (procfs_xfer_auxv): Likewise.
11674 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11675 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11676 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11677 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11678 * corefile.c (read_memory): Adjust.
11679 * corelow.c (core_xfer_partial): Likewise.
11680 * ctf.c (ctf_xfer_partial): Likewise.
11681 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11682 updated.
11683 (darwin_xfer_partial): Likewise.
11684 * exec.c (section_table_xfer_memory_partial): Likewise. All
11685 callers updated.
11686 (exec_xfer_partial): Likewise.
11687 * exec.h (section_table_xfer_memory_partial): Update
11688 declaration.
11689 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11690 negative.
11691 (gnu_xfer_partial): Likewise.
11692 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11693 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11694 (ia64_hpux_xfer_solib_got): Likewise.
11695 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11696 type of 'partial_len' to ULONGEST.
11697 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11698 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11699 (linux_nat_xfer_partial): Likewise.
11700 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11701 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11702 * monitor.c (monitor_xfer_memory): Likewise.
11703 (monitor_xfer_partial): Likewise.
11704 * procfs.c (procfs_xfer_partial): Likewise.
11705 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11706 * record-full.c (record_full_xfer_partial): Likewise.
11707 (record_full_core_xfer_partial): Likewise.
11708 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11709 (gdbsim_xfer_partial): Likewise.
11710 * remote.c (remote_write_bytes_aux): Likewise. All callers
11711 updated.
11712 (remote_write_bytes, remote_read_bytes): Likewise. All
11713 callers updated.
11714 (remote_flash_erase): Likewise. All callers updated.
11715 (remote_write_qxfer): Likewise. All callers updated.
11716 (remote_read_qxfer): Likewise. All callers updated.
11717 (remote_xfer_partial): Likewise.
11718 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11719 (rs6000_xfer_shared_libraries): Likewise.
11720 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11721 (sol_thread_xfer_partial): Likewise.
11722 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11723 (sparc_xfer_partial): Likewise.
11724 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11725 updated.
11726 (spu_xfer_partial): Likewise.
11727 * spu-multiarch.c (spu_xfer_partial): Likewise.
11728 * tracepoint.c (tfile_xfer_partial): Likewise.
11729 * windows-nat.c (windows_xfer_memory): Likewise.
11730 (windows_xfer_shared_libraries): Likewise.
11731 (windows_xfer_partial): Likewise.
11732 * valprint.c: Replace 'target_xfer_error' with
11733 'target_xfer_status' in comments.
11734
11735 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11736
11737 Checked in by Joel Brobecker <brobecker@adacore.com>.
11738 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11739
11740 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11741
11742 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11743 function parameters.
11744
11745 2014-02-10 Will Newton <will.newton@linaro.org>
11746
11747 * elfread.c (elf_rel_plt_read): Look for a .got section if
11748 looking up .got.plt fails.
11749 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11750 on address passed to elf_gnu_ifunc_record_cache.
11751 (elf_gnu_ifunc_resolve_addr): Likewise.
11752 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11753
11754 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11755
11756 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11757 (X_RETTURN): New macro.
11758 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11759
11760 * sparc64-tdep.c (sparc64_init_abi): Hook
11761 sparc_in_function_epilogue_p.
11762
11763 2014-02-10 Gary Benson <gbenson@redhat.com>
11764
11765 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11766 Rename name_matcher to symbol_matcher.
11767
11768 2014-02-10 Gary Benson <gbenson@redhat.com>
11769
11770 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11771 Use expand_symtabs_file_matcher_ftype and
11772 expand_symtabs_symbol_matcher_ftype.
11773
11774 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11775
11776 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11777 (struct ada_symbol_cache): New.
11778 (ada_free_symbol_cache): Forward declare.
11779 (struct ada_pspace_data): New.
11780 (ada_pspace_data_handle): New static global.
11781 (get_ada_pspace_data, ada_pspace_data_cleanup)
11782 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11783 (cache_space, cache): Delete, now folded inside struct
11784 ada_pspace_data.
11785 (ada_get_symbol_cache): New function.
11786 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11787 implementation.
11788 (_initialize_ada_language): Remove initialization of cache_space.
11789 Move call to observer_attach_inferior_exit up, grouping it
11790 with the other observer registrations inside this function.
11791 Rename command to be more general. Add call to
11792 register_program_space_data_with_cleanup.
11793
11794 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11795
11796 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11797 ada_new_objfile_observer.
11798 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11799 (_initialize_tasks): Update uses of ada_new_objfile_observer
11800 and ada_tasks_normal_stop_observer.
11801
11802 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11803
11804 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11805 returned by the 'Length attribute to integer.
11806
11807 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11808
11809 * ada-lang.c (_initialize_ada_language): Initialize
11810 cache_space obstack.
11811
11812 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11813
11814 * ada-lang.c (HASH_SIZE): New macro.
11815 (struct cache_entry): New type.
11816 (cache_space, cache): New static globals.
11817 (ada_clear_symbol_cache, find_entry): New functions.
11818 (lookup_cached_symbol, cache_symbol): Implement.
11819 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11820 (_initialize_ada_language): Attach ada_new_objfile_observer
11821 and ada_free_objfile_observer.
11822
11823 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11824
11825 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11826 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11827 struct block * parameter.
11828 (ada_lookup_symbol_list_worker): Constify local variable "block".
11829 Remove cast which is no longer necessary.
11830
11831 2014-02-10 Doug Evans <xdje42@gmail.com>
11832
11833 Add Guile as an extension language.
11834 * NEWS: Mention Guile scripting.
11835 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11836 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11837 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11838 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11839 (CLIBS): Add GUILE_LIBS.
11840 (install-guile): New rule.
11841 (guile.o): New rule.
11842 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11843 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11844 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11845 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11846 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11847 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11848 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11849 * configure.ac: New option --with-guile.
11850 * configure: Regenerate.
11851 * config.in: Regenerate.
11852 * auto-load.c: Remove #include "python/python.h". Add #include
11853 "gdb/section-scripts.h".
11854 (source_section_scripts): Handle Guile scripts.
11855 (_initialize_auto_load): Add name of Guile objfile script to
11856 scripts-directory help text.
11857 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11858 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11859 (struct breakpoint): New member scm_bp_object.
11860 * defs.h (enum command_control_type): New value guile_control.
11861 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11862 "extension.h".
11863 (show_user): Update comment.
11864 (_initialize_cli_cmds): Update help text for "show user". Update help
11865 text for max-user-call-depth.
11866 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11867 "extension.h".
11868 (multi_line_command_p): Add guile_control.
11869 (print_command_lines): Handle guile_control.
11870 (execute_control_command, recurse_read_control_structure): Ditto.
11871 (process_next_line): Recognize "guile" commands.
11872 * disasm.c (gdb_disassemble_info): Make non-static.
11873 * disasm.h: #include "dis-asm.h".
11874 (struct gdbarch): Add forward decl.
11875 (gdb_disassemble_info): Declare.
11876 * extension.c: #include "guile/guile.h".
11877 (extension_languages): Add guile.
11878 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11879 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11880 * gdbtypes.c (get_unsigned_type_max): New function.
11881 (get_signed_type_minmax): New function.
11882 * gdbtypes.h (get_unsigned_type_max): Declare.
11883 (get_signed_type_minmax): Declare.
11884 * guile/README: New file.
11885 * guile/guile-internal.h: New file.
11886 * guile/guile.c: New file.
11887 * guile/guile.h: New file.
11888 * guile/scm-arch.c: New file.
11889 * guile/scm-auto-load.c: New file.
11890 * guile/scm-block.c: New file.
11891 * guile/scm-breakpoint.c: New file.
11892 * guile/scm-disasm.c: New file.
11893 * guile/scm-exception.c: New file.
11894 * guile/scm-frame.c: New file.
11895 * guile/scm-gsmob.c: New file.
11896 * guile/scm-iterator.c: New file.
11897 * guile/scm-lazy-string.c: New file.
11898 * guile/scm-math.c: New file.
11899 * guile/scm-objfile.c: New file.
11900 * guile/scm-ports.c: New file.
11901 * guile/scm-pretty-print.c: New file.
11902 * guile/scm-safe-call.c: New file.
11903 * guile/scm-string.c: New file.
11904 * guile/scm-symbol.c: New file.
11905 * guile/scm-symtab.c: New file.
11906 * guile/scm-type.c: New file.
11907 * guile/scm-utils.c: New file.
11908 * guile/scm-value.c: New file.
11909 * guile/lib/gdb.scm: New file.
11910 * guile/lib/gdb/boot.scm: New file.
11911 * guile/lib/gdb/experimental.scm: New file.
11912 * guile/lib/gdb/init.scm: New file.
11913 * guile/lib/gdb/iterator.scm: New file.
11914 * guile/lib/gdb/printing.scm: New file.
11915 * guile/lib/gdb/types.scm: New file.
11916 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11917 (VPATH): Add $(GUILE_SRCDIR).
11918 (GUILE_DIR): New variable.
11919 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11920 (all): Add stamp-guile dependency.
11921 (stamp-guile): New rule.
11922 (clean-guile, install-guile, uninstall-guile): New rules.
11923 (install-only): Add install-guile dependency.
11924 (uninstall): Add uninstall-guile dependency.
11925 (clean): Add clean-guile dependency.
11926
11927 2014-02-09 Doug Evans <xdje42@gmail.com>
11928
11929 Revert this patch (which I approved, mea culpa).
11930
11931 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11932
11933 * Makefile.in (all-lib): Remove.
11934 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11935
11936 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11937
11938 Fix Python stack corruption.
11939 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11940 gdb_py_longest.
11941
11942 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11943
11944 * Makefile.in (all-lib): Remove.
11945 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11946
11947 2014-02-07 Doug Evans <dje@google.com>
11948
11949 * extension-priv.h (extension_language_script_ops): Add comment.
11950 (extension_language_ops): Add comment.
11951 (active_ext_lang_state): Fix typo in comment.
11952
11953 2014-02-07 Pedro Alves <palves@redhat.com>
11954
11955 PR breakpoints/16292
11956 * infrun.c (handle_signal_stop) <signal arrives while stepping
11957 over a breakpoint>: Switch back to the stepping thread.
11958
11959 2014-02-07 Yao Qi <yao@codesourcery.com>
11960
11961 * target.c (target_xfer_partial): Return zero if LEN is zero.
11962
11963 2014-02-07 Yao Qi <yao@codesourcery.com>
11964
11965 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11966 (ld_so_xfer_auxv): Likewise.
11967 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11968 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11969 * corelow.c (core_xfer_partial): Likewise.
11970 * ctf.c (ctf_xfer_partial): Likewise.
11971 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11972 (darwin_xfer_partial): Likewise.
11973 * exec.c (exec_xfer_partial): Likewise.
11974 * gnu-nat.c (gnu_xfer_partial): Likewise.
11975 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11976 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11977 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11978 * linux-nat.c (linux_xfer_siginfo): Likewise.
11979 (linux_proc_xfer_spu): Likewise.
11980 * procfs.c (procfs_xfer_partial): Likewise.
11981 * record-full.c (record_full_xfer_partial): Likewise.
11982 (record_full_core_xfer_partial): Likewise.
11983 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11984 * remote.c (remote_write_qxfer): Likewise.
11985 (remote_write_qxfer, remote_read_qxfer): Likewise.
11986 (remote_xfer_partial): Likewise.
11987 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11988 (rs6000_xfer_shared_libraries): Likewise.
11989 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11990 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11991 (spu_xfer_partial): Likewise.
11992 * target.c (memory_xfer_partial_1): Likewise.
11993 * tracepoint.c (tfile_xfer_partial): Likewise.
11994 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11995 (windows_xfer_partial): Likewise.
11996
11997 2014-02-07 Yao Qi <yao@codesourcery.com>
11998
11999 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12000 comments.
12001 (core_xfer_shared_libraries_aix): Likewise.
12002 * gdbarch.c, gdbarch.h: Regenerated.
12003 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12004 ULONGEST. Change 'len_avail' type to ULONGEST.
12005 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12006 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12007 declaration.
12008 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12009
12010 2014-02-07 Yao Qi <yao@codesourcery.com>
12011
12012 * corefile.c (memory_error): Get 'exception' from ERR and pass
12013 'exception' to throw_error.
12014
12015 2014-02-06 Doug Evans <xdje42@gmail.com>
12016
12017 * configure.ac (libpython checking): Remove all but python.o from
12018 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12019 * configure: Regenerate.
12020
12021 * Makefile.in (SFILES): Add extension.c.
12022 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12023 (COMMON_OBS): Add extension.o.
12024 * extension.h: New file.
12025 * extension-priv.h: New file.
12026 * extension.c: New file.
12027
12028 * python/python-internal.h: #include "extension.h".
12029 (gdbpy_auto_load_enabled): Declare.
12030 (gdbpy_apply_val_pretty_printer): Declare.
12031 (gdbpy_apply_frame_filter): Declare.
12032 (gdbpy_preserve_values): Declare.
12033 (gdbpy_breakpoint_cond_says_stop): Declare.
12034 (gdbpy_breakpoint_has_cond): Declare.
12035 (void source_python_script_for_objfile): Delete.
12036 * python/python.c: #include "extension-priv.h".
12037 Delete inclusion of "observer.h".
12038 (extension_language_python): Moved here and renamed from
12039 script_language_python in py-auto-load.c.
12040 Redefined to be of type extension_language_defn.
12041 (python_extension_script_ops): New global.
12042 (python_extension_ops): New global.
12043 (struct python_env): New member previous_active.
12044 (restore_python_env): Call restore_active_ext_lang.
12045 (ensure_python_env): Call set_active_ext_lang.
12046 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12047 New arg extlang.
12048 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12049 New arg extlang.
12050 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12051 New arg extlang.
12052 (gdbpy_eval_from_control_command): Renamed from
12053 eval_python_from_control_command, made static. New arg extlang.
12054 (gdbpy_source_script) Renamed from source_python_script, made static.
12055 New arg extlang.
12056 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12057 result to int. New arg extlang.
12058 (gdbpy_source_objfile_script): Renamed from
12059 source_python_script_for_objfile, made static. New arg extlang.
12060 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12061 static. New args extlang, extlang_printers. Change result type to
12062 "void".
12063 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12064 static. New arg extlang. Rename arg printers to extlang_printers
12065 and change type to ext_lang_type_printers *.
12066 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12067 static. Replace argument arg with extlang, extlang_printers.
12068 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12069 (!HAVE_PYTHON, source_python_script): Delete.
12070 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12071 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12072 (!HAVE_PYTHON, start_type_printers): Delete.
12073 (!HAVE_PYTHON, apply_type_printers): Delete.
12074 (!HAVE_PYTHON, free_type_printers): Delete.
12075 (_initialize_python): Delete call to observer_attach_before_prompt.
12076 (finalize_python): Set/restore active extension language.
12077 (gdbpy_finish_initialization) Renamed from
12078 finish_python_initialization, made static. New arg extlang.
12079 (gdbpy_initialized): New function.
12080 * python/python.h: #include "extension.h". Delete #include
12081 "value.h", "mi/mi-cmds.h".
12082 (extension_language_python): Declare.
12083 (GDBPY_AUTO_FILE_NAME): Delete.
12084 (enum py_bt_status): Moved to extension.h and renamed to
12085 ext_lang_bt_status.
12086 (enum frame_filter_flags): Moved to extension.h.
12087 (enum py_frame_args): Moved to extension.h and renamed to
12088 ext_lang_frame_args.
12089 (finish_python_initialization): Delete.
12090 (eval_python_from_control_command): Delete.
12091 (source_python_script): Delete.
12092 (apply_val_pretty_printer): Delete.
12093 (apply_frame_filter): Delete.
12094 (preserve_python_values): Delete.
12095 (gdbpy_script_language_defn): Delete.
12096 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12097 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12098
12099 * auto-load.c: #include "extension.h".
12100 (GDB_AUTO_FILE_NAME): Delete.
12101 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12102 (script_language_gdb): Delete, moved to extension.c and renamed to
12103 extension_language_gdb.
12104 (source_gdb_script_for_objfile): Delete.
12105 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12106 (loaded_script): Change type of language member to
12107 struct extension_language_defn *.
12108 (init_loaded_scripts_info): Initialize
12109 unsupported_script_warning_printed.
12110 (maybe_add_script): Make static. Change type of language arg to
12111 struct extension_language_defn *.
12112 (clear_section_scripts): Reset unsupported_script_warning_printed.
12113 (auto_load_objfile_script_1): Rewrite to use extension language API.
12114 (auto_load_objfile_script): Make public. Remove support-compiled-in
12115 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12116 (source_section_scripts): Rewrite to use extension language API.
12117 (load_auto_scripts_for_objfile): Rewrite to use
12118 auto_load_scripts_for_objfile.
12119 (collect_matching_scripts_data): Change type of language member to
12120 struct extension_language_defn *.
12121 (auto_load_info_scripts): Change type of language arg to
12122 struct extension_language_defn *.
12123 (unsupported_script_warning_print): New function.
12124 (script_not_found_warning_print): Make static.
12125 (_initialize_auto_load): Rewrite construction of scripts-directory
12126 help.
12127 * auto-load.h (struct objfile): Add forward decl.
12128 (struct script_language): Delete.
12129 (struct auto_load_pspace_info): Add forward decl.
12130 (struct extension_language_defn): Add forward decl.
12131 (maybe_add_script): Delete.
12132 (auto_load_objfile_script): Declare.
12133 (script_not_found_warning_print): Delete.
12134 (auto_load_info_scripts): Update prototype.
12135 (auto_load_gdb_scripts_enabled): Declare.
12136 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12137 auto_load_python_scripts_enabled and made public.
12138 (script_language_python): Delete, moved to python.c.
12139 (gdbpy_script_language_defn): Delete.
12140 (info_auto_load_python_scripts): Update to use
12141 extension_language_python.
12142
12143 * breakpoint.c (condition_command): Replace call to
12144 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12145 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12146 with call to breakpoint_ext_lang_cond_says_stop.
12147 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12148 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12149 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12150 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12151 New arg slang.
12152 (local_setattro): Print name of extension language with existing
12153 stop condition.
12154
12155 * valprint.c (val_print, value_print): Update to call
12156 apply_ext_lang_val_pretty_printer.
12157 * cp-valprint.c (cp_print_value): Update call to
12158 apply_ext_lang_val_pretty_printer.
12159 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12160 (gdbpy_apply_val_pretty_printer): Renamed from
12161 apply_val_pretty_printer. New arg extlang.
12162 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12163
12164 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12165 extension language API.
12166 * cli/cli-script.c (execute_control_command): Update to call
12167 eval_ext_lang_from_control_command.
12168
12169 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12170 enum ext_lang_bt_status values. Update call to
12171 apply_ext_lang_frame_filter.
12172 (mi_cmd_stack_list_locals): Ditto.
12173 (mi_cmd_stack_list_args): Ditto.
12174 (mi_cmd_stack_list_variables): Ditto.
12175 * mi/mi-main.c: Delete #include "python/python-internal.h".
12176 Add #include "extension.h".
12177 (mi_cmd_list_features): Replace reference to python internal variable
12178 gdb_python_initialized with call to ext_lang_initialized_p.
12179
12180 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12181 Update to use enum ext_lang_frame_args. Update to call
12182 apply_ext_lang_frame_filter.
12183 * python/py-framefilter.c (extract_sym): Update to use enum
12184 ext_lang_bt_status.
12185 (extract_value, py_print_type, py_print_value): Ditto.
12186 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12187 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12188 (py_print_frame): Ditto.
12189 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12190 New arg extlang. Update to use enum ext_lang_bt_status.
12191
12192 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12193 finish_python_initialization. Replace with call to
12194 finish_ext_lang_initialization.
12195
12196 * typeprint.c (do_free_global_table): Update to call
12197 free_ext_lang_type_printers.
12198 (create_global_typedef_table): Update to call
12199 start_ext_lang_type_printers.
12200 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12201 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12202 (type_print_options): Change type of global_printers from "void *"
12203 to "struct ext_lang_type_printers *".
12204
12205 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12206 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12207 (gdbpy_preserve_values): Renamed from preserve_python_values.
12208 New arg extlang.
12209 (!HAVE_PYTHON, preserve_python_values): Delete.
12210
12211 * utils.c (quit_flag): Delete, moved to extension.c.
12212 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12213 extension.c.
12214
12215 * eval.c: Delete #include "python/python.h".
12216 * main.c: Delete #include "python/python.h".
12217
12218 * defs.h: Update comment.
12219
12220 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12221
12222 GDB 7.7 released.
12223
12224 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12225
12226 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12227 defined.
12228
12229 2014-02-05 Yao Qi <yao@codesourcery.com>
12230
12231 * remote.c (remote_pass_signals): Remove local 'buf' and use
12232 rs->buf.
12233 (remote_program_signals): Likewise.
12234
12235 2014-02-05 Yao Qi <yao@codesourcery.com>
12236
12237 * ctf.c: Include "inferior.h" and "gdbthread.h".
12238 (CTF_PID): A new macro.
12239 (ctf_open): Call inferior_appeared and add_thread_silent.
12240 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12241 (ctf_thread_alive): New function.
12242 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12243
12244 2014-02-05 Yao Qi <yao@codesourcery.com>
12245
12246 Revert this patch:
12247
12248 2013-05-24 Yao Qi <yao@codesourcery.com>
12249
12250 * tracepoint.c (TFILE_PID): Remove.
12251 (tfile_open): Don't add thread and inferior.
12252 (tfile_close): Don't set 'inferior_ptid'. Don't call
12253 exit_inferior_silent.
12254 (tfile_thread_alive): Remove.
12255 (init_tfile_ops): Don't set field 'to_thread_alive' of
12256 tfile_ops.
12257
12258 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12259
12260 * remote.c (remote_start_remote): Call remote_check_symbols even
12261 if only symbol-file (not file) has been given.
12262
12263 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12264
12265 * gdbarch.sh (skip_entrypoint): New callback.
12266 * gdbarch.c, gdbarch.h: Regenerate.
12267 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12268 * infrun.c (fill_in_stop_func): Likewise.
12269 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12270 (ppc_elfv2_elf_make_msymbol_special): New function.
12271 (ppc_elfv2_skip_entrypoint): Likewise.
12272 (ppc_linux_init_abi): Install them for ELFv2.
12273
12274 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12275
12276 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12277 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12278 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12279 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12280 structures returned in GPRs.
12281
12282 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12283
12284 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12285 offset to the stack parameter list for the ELFv2 ABI.
12286
12287 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12288
12289 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12290 set_gdbarch_convert_from_func_ptr_addr and
12291 set_gdbarch_elf_make_msymbol_special for ELFv1.
12292 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12293 function descriptors on ELFv1.
12294 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12295 set up r12 at function entry.
12296
12297 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12298
12299 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12300 (struct gdbarch_tdep): New member elf_abi.
12301
12302 * rs6000-tdep.c: Include "elf/ppc64.h".
12303 (rs6000_gdbarch_init): Detect ELF ABI version.
12304
12305 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12306
12307 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12308 within a register pair holding a DFP 128-bit value on little-endian.
12309 (ppc64_sysv_abi_return_value_base): Likewise.
12310 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12311 (dfp_pseudo_register_write): Likewise.
12312
12313 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12314
12315 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12316 offset on little-endian when passing _Decimal32.
12317 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12318
12319 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12320
12321 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12322 of the overlapped FP register within the VSX register on little-
12323 endian platforms.
12324 (efpr_pseudo_register_write): Likewise.
12325
12326 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12327
12328 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12329 offset on little-endian when passing small structures.
12330
12331 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12332
12333 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12334 (struct ppc64_sysv_argpos): New data structure.
12335 (ppc64_sysv_abi_push_float): Remove.
12336 (ppc64_sysv_abi_push_val): New function.
12337 (ppc64_sysv_abi_push_integer): Likewise.
12338 (ppc64_sysv_abi_push_freg): Likewise.
12339 (ppc64_sysv_abi_push_vreg): Likewise.
12340 (ppc64_sysv_abi_push_param): Likewise.
12341 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12342 (ppc64_sysv_abi_return_value_base): New function.
12343 (ppc64_sysv_abi_return_value): Refactor to use it.
12344
12345 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12346
12347 * NEWS: Document new target powerpc64le-*-linux*.
12348
12349 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12350
12351 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12352 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12353 core dumps.
12354 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12355 register set used in ELF core dumps. Add floating-point register set.
12356
12357 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12358
12359 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12360 dwarf2_to_gdb[] table using symbolic constants. Adjust
12361 penultimate entry from number representing the PC register
12362 to symbolic constant representing the MDR register. Add
12363 constant for the PC register to the end of the table.
12364
12365 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12366
12367 * bsd-kvm.c: Include <sys/param.h>
12368
12369 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12370
12371 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12372
12373 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12374
12375 * ada-lang.h (clear_ada_sym_cache): Delete.
12376
12377 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12378
12379 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12380
12381 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12382
12383 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12384 the sigreturn register save area only if the syscall is
12385 sigreturn.
12386
12387 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12388
12389 * valops.c (value_slice): Minor reformatting.
12390
12391 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12392
12393 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12394
12395 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12396
12397 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12398 New static globals.
12399 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12400 (ada_ignore_descriptive_types_p): New static global.
12401 (find_parallel_type_by_descriptive_type): Return immediately
12402 if ada_ignore_descriptive_types_p is set.
12403 (_initialize_ada_language): Register new commands "maintenance
12404 set ada", "maintenance show ada", "maintenance set ada
12405 ignore-descriptive-types" and "maintenance show ada
12406 ignore-descriptive-types".
12407 * NEWS: Add entry for new "maint ada set/show
12408 ignore-descriptive-types" commands.
12409
12410 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12411
12412 * record-btrace.c (record_btrace_close): Call btrace_teardown
12413 for all threads.
12414
12415 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12416
12417 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12418 "ui-out.h".
12419
12420 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12421
12422 * ada-typeprint (type_is_full_subrange_of_target_type):
12423 New function.
12424 (print_range): Add parameter bounds_prefered_p. If not set,
12425 try printing range types using the name of their base type.
12426 (print_range_type): Add parameter bounds_prefered_p.
12427 Use it in call to print_range.
12428 (print_array_type, ada_print_type): Update calls to print_range
12429 and print_range_type.
12430
12431 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12432
12433 * ada-typeprint.c (print_array_type, print_choices, print_range)
12434 (print_range_bound, print_dynamic_range_bound, print_range_type):
12435 Remove declaration.
12436
12437 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12438
12439 * ada-typeprint.c (print_range): Add missing empty line
12440 after local declaration.
12441
12442 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12443
12444 * ada-valprint.c (print_optional_low_bound): Get index_type's
12445 target type for as long as it is a TYPE_CODE_RANGE.
12446
12447 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12448
12449 * procfs.c (procfs_make_note_section): Remove assertion and
12450 associated comment.
12451
12452 2014-01-24 Yao Qi <yao@codesourcery.com>
12453
12454 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12455 * corelow.c (get_core_siginfo): Likewise.
12456
12457 2014-01-24 Yao Qi <yao@codesourcery.com>
12458
12459 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12460 ULONGEST. Don't check 'len' is negative.
12461 (remote_write_bytes): Change type of 'len' to ULONGEST.
12462
12463 2014-01-23 Tom Tromey <tromey@redhat.com>
12464
12465 PR python/16485:
12466 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12467 Handle exception from frame.block.
12468 (FrameVars.fetch_frame_locals): Likewise.
12469
12470 2014-01-23 Tom Tromey <tromey@redhat.com>
12471
12472 PR python/16487:
12473 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12474 on a NULL pointer. Move "goto error" to correct place.
12475
12476 2014-01-23 Tom Tromey <tromey@redhat.com>
12477
12478 PR python/16491:
12479 * python/py-framefilter.c (apply_frame_filter): Call
12480 ensure_python_env after computing gdbarch.
12481
12482 2014-01-23 Yao Qi <yao@codesourcery.com>
12483
12484 * target.c (raw_memory_xfer_partial): Change argument type
12485 from void * to gdb_byte *.
12486 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12487
12488 2014-01-22 Doug Evans <dje@google.com>
12489
12490 New gdbserver option --debug-format=timestamp.
12491 * NEWS: Mention it.
12492
12493 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12494
12495 * syscalls/s390x-linux.xml: New file.
12496 * syscalls/s390-linux.xml: New file.
12497 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12498 (XML_SYSCALL_FILENAME_S390X): Likewise.
12499 (op_svc): New enum value for SVC opcode.
12500 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12501 (s390_linux_get_syscall_number): New function.
12502 (s390_gdbarch_init): Register '*get_syscall_number' and the
12503 syscall xml file name.
12504 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12505 "s390-linux.xml" and "s390x-linux.xml".
12506 * NEWS: Announce new feature.
12507
12508 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12509
12510 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12511
12512 2014-01-22 Pedro Alves <palves@redhat.com>
12513
12514 * xtensa-config.c: Include defs.h.
12515
12516 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12517
12518 * common/common-utils.h: Add "ARI:" comment beside __func__
12519 reference.
12520
12521 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12522
12523 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12524 documentation a bit.
12525
12526 2014-01-21 Roland McGrath <mcgrathr@google.com>
12527
12528 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12529 * configure: Regenerate.
12530 * aclocal.m4: Regenerate.
12531 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12532 New substituted variables.
12533 (install-strip): New target.
12534 (INSTALL_SCRIPT): New substituted variable.
12535 (FLAGS_TO_PASS): Add it.
12536 (install-only): Use $(INSTALL_SCRIPT) rather than
12537 $(INSTALL_PROGRAM) for gcore.
12538
12539 2014-01-20 Tom Tromey <tromey@redhat.com>
12540
12541 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12542 together.
12543
12544 2014-01-20 Tom Tromey <tromey@redhat.com>
12545
12546 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12547 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12548 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12549 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12550 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12551 (struct cmd_list_element) <flags>: Remove.
12552 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12553 doc_allocated>: New fields.
12554 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12555 bitfields.
12556 * maint.c (maintenance_do_deprecate): Update.
12557 * top.c (execute_command): Update.
12558
12559 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12560
12561 * xtensa-linux-nat.c: Include asm/ptrace.h.
12562
12563 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12564
12565 * Makefile.in (SFILES): Add d-support.c.
12566 (COMMON_OBS): Add d-support.o.
12567 * d-lang.h (d_parse_symbol): Add comment, now defined in
12568 d-support.c.
12569 * d-lang.c (parse_call_convention)
12570 (parse_attributes, parse_function_types)
12571 (parse_function_args, parse_type, parse_identifier)
12572 (call_convention_p, d_parse_symbol): Move functions to ...
12573 * d-support.c: ... New file.
12574
12575 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12576
12577 * d-lang.h (d_parse_symbol): Add declaration.
12578 * d-lang.c (extract_identifiers)
12579 (extract_type_info): Remove functions.
12580 (parse_call_convention, parse_attributes)
12581 (parse_function_types, parse_function_args)
12582 (parse_type, parse_identifier, call_convention_p)
12583 (d_parse_symbol): New functions.
12584 (d_demangle): Use d_parse_symbol to demangle D symbols.
12585
12586 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12587
12588 * d-lang.h (struct builtin_d_type): New data type.
12589 (builtin_d_type): Add declaration.
12590 * d-lang.c (d_language_arch_info, build_d_types)
12591 (builtin_d_type): New functions.
12592 (enum d_primitive_types): New data type.
12593 (d_language_defn): Change c_language_arch_info to
12594 d_language_arch_info.
12595 (d_type_data): New static variable.
12596 (_initialize_d_language): Initialize d_type_data.
12597
12598 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12599
12600 * d-lang.h (d_main_name): Add declaration.
12601 * d-lang.c (d_main_name): New function.
12602 * symtab.c (find_main_name): Add call to d_main_name.
12603
12604 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12605
12606 * d-lang.c (d_language_defn): Change macro_expansion_c to
12607 macro_expansion_no.
12608
12609 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12610
12611 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12612
12613 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12614
12615 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12616 gdb_exception" declaration.
12617 * remote.c (getpkt_or_notif_sane): Likewise.
12618
12619 2014-01-17 Doug Evans <dje@google.com>
12620
12621 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12622 function, contents of dirnames_to_char_ptr_vec_append moved here.
12623 (delim_string_to_char_ptr_vec): New function.
12624 (dirnames_to_char_ptr_vec_append): Rewrite.
12625 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12626
12627 2014-01-17 Doug Evans <dje@google.com>
12628
12629 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12630 and moved here ...
12631 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12632 #include "common-utils.h".
12633 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12634 * common/vec.h (VEC_ASSERT_PASS): Update.
12635 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12636 (MACH_CHECK_ERROR): Update.
12637
12638 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12639
12640 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12641 comments.
12642 * gdbarch.h: Regenerate.
12643
12644 2014-01-16 Tom Tromey <tromey@redhat.com>
12645
12646 * value.c (struct value) <regnum>: Move earlier.
12647
12648 2014-01-16 Tom Tromey <tromey@redhat.com>
12649
12650 * remote.c (extended_remote_create_inferior): Rename from
12651 extended_remote_create_inferior_1. Add "ops" argument. Remove
12652 old implementation.
12653
12654 2014-01-16 Pedro Alves <palves@redhat.com>
12655
12656 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12657 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12658 the backchain.
12659
12660 2014-01-16 Doug Evans <dje@google.com>
12661
12662 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12663
12664 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12665
12666 * btrace.h (btrace_thread_flag): New.
12667 (struct btrace_thread_info) <flags>: New.
12668 * record-btrace.c (record_btrace_resume_thread)
12669 (record_btrace_find_thread_to_move, btrace_step_no_history)
12670 (btrace_step_stopped, record_btrace_start_replaying)
12671 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12672 (record_btrace_find_resume_thread): New.
12673 (record_btrace_resume, record_btrace_wait): Extend.
12674 (record_btrace_can_execute_reverse): New.
12675 (record_btrace_open): Fail in non-stop mode.
12676 (record_btrace_set_replay): Split into this, ...
12677 (record_btrace_stop_replaying): ... this, ...
12678 (record_btrace_clear_histories): ... and this.
12679 (init_record_btrace_ops): Init to_can_execute_reverse.
12680 * NEWS: Announce it.
12681
12682 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12683
12684 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12685 (forward_target_decr_pc_after_break)
12686 (target_decr_pc_after_break): New.
12687 * target.c (forward_target_decr_pc_after_break)
12688 (target_decr_pc_after_break): New.
12689 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12690 instead of gdbarch_decr_pc_after_break.
12691 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12692 instead of gdbarch_decr_pc_after_break.
12693 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12694 instead of gdbarch_decr_pc_after_break.
12695 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12696 instead of gdbarch_decr_pc_after_break.
12697 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12698 instead of gdbarch_decr_pc_after_break.
12699 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12700 instead of gdbarch_decr_pc_after_break.
12701
12702 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12703
12704 * btrace.c: Include regcache.h.
12705 (btrace_add_pc): New.
12706 (btrace_enable): Call btrace_add_pc.
12707 (btrace_is_empty): New.
12708 * btrace.h (btrace_is_empty): New.
12709 * record-btrace.c (require_btrace, record_btrace_info): Call
12710 btrace_is_empty.
12711
12712 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12713
12714 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12715 Support delta reads.
12716 (linux_disable_btrace): Change return type.
12717 * common/linux-btrace.h (linux_read_btrace): Change parameters
12718 and return type to allow error reporting. Update users.
12719 (linux_disable_btrace): Change return type. Update users.
12720 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12721 New.
12722 (btrace_error): New.
12723 (btrace_block) <begin>: Comment on BEGIN == 0.
12724 * btrace.c (btrace_compute_ftrace): Start from the end of
12725 the current trace.
12726 (btrace_stitch_trace, btrace_clear_history): New.
12727 (btrace_fetch): Read delta trace, return if replaying.
12728 (btrace_clear): Move clear history code to btrace_clear_history.
12729 (parse_xml_btrace): Throw an error if parsing failed.
12730 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12731 and return type to allow error reporting.
12732 (target_read_btrace): Change parameters and return type to allow
12733 error reporting.
12734 * target.c (target_read_btrace): Update.
12735 * remote.c (remote_read_btrace): Support delta reads. Pass
12736 errors on.
12737 * NEWS: Announce it.
12738
12739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12740
12741 * record.h (record_btrace_frame_unwind)
12742 (record_btrace_tailcall_frame_unwind): New declarations.
12743 * dwarf2-frame: Include record.h
12744 (dwarf2_frame_cfa): Throw an error for btrace frames.
12745 * record-btrace.c: Include hashtab.h.
12746 (btrace_get_bfun_name): New.
12747 (btrace_call_history): Call btrace_get_bfun_name.
12748 (struct btrace_frame_cache): New.
12749 (bfcache): New.
12750 (bfcache_hash, bfcache_eq, bfcache_new): New.
12751 (btrace_get_frame_function): New.
12752 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12753 (record_btrace_frame_this_id): Compute own id.
12754 (record_btrace_frame_prev_register): Provide PC, throw_error
12755 for all other registers.
12756 (record_btrace_frame_sniffer): Detect btrace frames.
12757 (record_btrace_tailcall_frame_sniffer): New.
12758 (record_btrace_frame_dealloc_cache): New.
12759 (record_btrace_frame_unwind): Add new functions.
12760 (record_btrace_tailcall_frame_unwind): New.
12761 (_initialize_record_btrace): Allocate cache.
12762 * btrace.c (btrace_clear): Call reinit_frame_cache.
12763 * NEWS: Announce it.
12764
12765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12766
12767 * record-btrace.c (record_btrace_set_replay)
12768 (record_btrace_goto_begin, record_btrace_goto_end)
12769 (record_btrace_goto): New.
12770 (init_record_btrace_ops): Initialize them.
12771 * NEWS: Announce it.
12772
12773 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12774
12775 * record-btrace.c (record_btrace_find_new_threads)
12776 (record_btrace_thread_alive): New.
12777 (init_record_btrace_ops): Initialize to_find_new_threads and
12778 to_thread_alive.
12779
12780 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12781
12782 * record-btrace.c (record_btrace_resume): New.
12783 (record_btrace_wait): New.
12784 (init_record_btrace_ops): Initialize to_wait and to_resume.
12785
12786 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12787
12788 * record-btrace.c (record_btrace_xfer_partial)
12789 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12790 (record_btrace_allow_memory_access): New.
12791 (init_record_btrace_ops): Initialize new methods.
12792 * target.c (raw_memory_xfer_partial): Bail out if target reports
12793 that this memory is not available.
12794
12795 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12796
12797 * target.h (target_ops) <to_insert_breakpoint>
12798 <to_remove_breakpoint>: Add target_ops parameter.
12799 (forward_target_insert_breakpoint): New.
12800 (forward_target_remove_breakpoint): New.
12801 (memory_remove_breakpoint, memory_insert_breakpoint):
12802 Add target_ops parameter.
12803 * target.c (target_insert_breakpoint): Split into this and ...
12804 (forward_target_insert_breakpoint): ... this.
12805 (target_remove_breakpoint): Split into this and ...
12806 (forward_target_remove_breakpoint): ... this.
12807 (debug_to_insert_breakpoint): Add target_ops parameter.
12808 Call forward_target_insert_breakpoint.
12809 (debug_to_remove_breakpoint): Add target_ops parameter.
12810 Call forward_target_remove_breakpoint.
12811 (update_current_target): Do not inherit or default to_insert_breakpoint
12812 and to_remove_breakpoint.
12813 * corelow.c (ignore): Add target_ops parameter.
12814 * exec.c (ignore): Add target_ops parameter.
12815 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12816 Add target_ops parameter.
12817 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12818 Add target_ops parameter.
12819 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12820 Add target_ops parameter.
12821 * record-full.c (record_full_beneath_to_insert_breakpoint)
12822 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12823 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12824 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12825 (record_full_core_remove_breakpoint): Add target_ops parameter.
12826 Update users.
12827 (record_full_beneath_to_insert_breakpoint_ops)
12828 (record_full_beneath_to_remove_breakpoint_ops)
12829 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12830 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12831 tmp_to_remove_breakpoint_ops,
12832 record_full_beneath_to_insert_breakpoint_ops, and
12833 record_full_beneath_to_remove_breakpoint_ops.
12834 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12835 (m32r_remove_breakpoint): Add target_ops parameter.
12836 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12837 Add target_ops parameter.
12838 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12839 Add target_ops parameter.
12840
12841 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12842 Markus Metzger <markus.t.metzger@intel.com>
12843
12844 * record-btrace.c: Include frame-unwind.h.
12845 (record_btrace_frame_unwind_stop_reason)
12846 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12847 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12848 New.
12849 (init_record_btrace_ops): Install it.
12850
12851 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12852
12853 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12854 get_prev_frame_1.
12855
12856 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12857
12858 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12859 earlier.
12860
12861 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12862
12863 * frame-unwind.c: Include target.h.
12864 (frame_unwind_try_unwinder): New function with code from ...
12865 (frame_unwind_find_by_frame): ... here. New variable
12866 unwinder_from_target, call also target_get_unwinder)
12867 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12868 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12869 * target.h (struct target_ops): New fields to_get_unwinder and
12870 to_get_tailcall_unwinder.
12871 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12872
12873 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12874
12875 * record-btrace.c (record_btrace_fetch_registers)
12876 (record_btrace_store_registers)
12877 (record_btrace_to_prepare_to_store): New.
12878 (init_record_btrace_ops): Add the above.
12879
12880 2014-01-16 Tom Tromey <tromey@redhat.com>
12881
12882 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12883 * target.h (struct target_ops) <to_prepare_to_store>: Add
12884 argument.
12885 (target_prepare_to_store): Add argument.
12886 * target.c (debug_to_prepare_to_store): Add argument.
12887 (update_current_target): Update.
12888 * remote.c (remote_prepare_to_store): Add 'self' argument.
12889 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12890 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12891 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12892 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12893 argument.
12894 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12895 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12896 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12897 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12898 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12899
12900 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12901
12902 * btrace.h (replay) <replay>: New.
12903 (btrace_is_replaying): New.
12904 * btrace.c (btrace_clear): Free replay iterator.
12905 (btrace_is_replaying): New.
12906 * record-btrace.c (record_btrace_is_replaying): New.
12907 (record_btrace_info): Print insn number if replaying.
12908 (record_btrace_insn_history): Start at replay position.
12909 (record_btrace_call_history): Start at replay position.
12910 (init_record_btrace_ops): Init to_record_is_replaying.
12911
12912 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12913
12914 * record-btrace.c (record_btrace_insn_history_range): Include
12915 end.
12916 (record_btrace_insn_history_from): Adjust range.
12917 (record_btrace_call_history_range): Include
12918 end.
12919 (record_btrace_call_history_from): Adjust range.
12920 * NEWS: Announce changes.
12921
12922 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12923
12924 * record.h (enum record_print_flag)
12925 <record_print_indent_calls>: New.
12926 * record.c (get_call_history_modifiers): Recognize /c modifier.
12927 (_initialize_record): Document /c modifier.
12928 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12929 Reorder fields. Optionally indent the function name. Update
12930 all users.
12931 * NEWS: Announce changes.
12932
12933 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12934
12935 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12936
12937 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12938
12939 * btrace.c (ftrace_new_function): Start counting at one.
12940 * record-btrace.c (record_btrace_info): Adjust number of calls
12941 and insns.
12942 * NEWS: Announce it.
12943
12944 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12945
12946 * record-btrace.c (btrace_call_history_insn_range): Print
12947 insn range as [begin, end].
12948
12949 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12950
12951 * btrace.h (struct btrace_func_link): New.
12952 (enum btrace_function_flag): New.
12953 (struct btrace_inst): Rename to ...
12954 (struct btrace_insn): ...this. Update all users.
12955 (struct btrace_func) <ibegin, iend>: Remove.
12956 (struct btrace_func_link): New.
12957 (struct btrace_func): Rename to ...
12958 (struct btrace_function): ...this. Update all users.
12959 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12960 (number, level, flags>: New.
12961 (struct btrace_insn_iterator): Rename to ...
12962 (struct btrace_insn_history): ...this.
12963 Update all users.
12964 (struct btrace_insn_iterator, btrace_call_iterator): New.
12965 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12966 (struct btrace_target_info) <begin, end, level>
12967 <insn_history, call_history>: New.
12968 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12969 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12970 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12971 (btrace_call_number, btrace_call_begin, btrace_call_end)
12972 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12973 (btrace_find_function_by_number, btrace_set_insn_history)
12974 (btrace_set_call_history): New.
12975 * btrace.c (btrace_init_insn_iterator)
12976 (btrace_init_func_iterator, compute_itrace): Remove.
12977 (ftrace_print_function_name, ftrace_print_filename)
12978 (ftrace_skip_file): Change
12979 parameter to const.
12980 (ftrace_init_func): Remove.
12981 (ftrace_debug): Use new btrace_function fields.
12982 (ftrace_function_switched): Also consider gaining and
12983 losing symbol information).
12984 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12985 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12986 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12987 New.
12988 (ftrace_new_function): Move. Remove debug print.
12989 (ftrace_update_lines, ftrace_update_insns): New.
12990 (ftrace_update_function): Check for call, ret, and jump.
12991 (compute_ftrace): Renamed to ...
12992 (btrace_compute_ftrace): ...this. Rewritten to compute call
12993 stack.
12994 (btrace_fetch, btrace_clear): Updated.
12995 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12996 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12997 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12998 (btrace_call_number, btrace_call_begin, btrace_call_end)
12999 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13000 (btrace_find_function_by_number, btrace_set_insn_history)
13001 (btrace_set_call_history): New.
13002 * record-btrace.c (require_btrace): Use new btrace thread
13003 info fields.
13004 (record_btrace_info, btrace_insn_history)
13005 (record_btrace_insn_history, record_btrace_insn_history_range):
13006 Use new btrace thread info fields and new iterator.
13007 (btrace_func_history_src_line): Rename to ...
13008 (btrace_call_history_src_line): ...this. Use new btrace
13009 thread info fields.
13010 (btrace_func_history): Rename to ...
13011 (btrace_call_history): ...this. Use new btrace thread info
13012 fields and new iterator.
13013 (record_btrace_call_history, record_btrace_call_history_range):
13014 Use new btrace thread info fields and new iterator.
13015
13016 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13017
13018 * frame.h (frame_id_build_unavailable_stack_special): New.
13019 * frame.c (frame_id_build_unavailable_stack_special): New.
13020
13021 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13022
13023 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13024 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13025 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13026 to gdbarch.
13027 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13028 (i386_insn_is_jump, i386_jmp_p): New.
13029 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13030 insn_is_jump to gdbarch.
13031 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13032 * gdbarch.h: Regenerated.
13033 * gdbarch.c: Regenerated.
13034 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13035 (default_insn_is_jump): New.
13036 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13037 (default_insn_is_jump): New.
13038
13039 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13040
13041 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13042 Change to ...
13043 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13044 (btrace_read_type) <btrace_read_new>: Change to ...
13045 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13046
13047 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13048
13049 * common/linux-btrace.c (linux_read_btrace): Free trace from
13050 previous iteration.
13051
13052 2014-01-15 Doug Evans <dje@google.com>
13053
13054 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13055 uint32_t.
13056
13057 2014-01-15 Tom Tromey <tromey@redhat.com>
13058
13059 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13060 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13061 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13062 (set_objfile_main_name): New function.
13063 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13064 language_of_main>: New fields.
13065 (set_objfile_main_name): Declare.
13066 * symtab.c (find_main_name): Loop over objfiles to find the main
13067 name and language.
13068 (set_main_name): Now static.
13069 (get_main_info): Add comment.
13070 * symtab.h (set_main_name): Don't declare.
13071
13072 2014-01-15 Tom Tromey <tromey@redhat.com>
13073
13074 * symtab.c (main_progspace_key): New global.
13075 (struct main_info): New.
13076 (name_of_main, language_of_main): Remove.
13077 (get_main_info, main_info_cleanup): New function.
13078 (set_main_name, main_name, main_language): Use get_main_info.
13079 (_initialize_symtab): Initialize main_progspace_key.
13080
13081 2014-01-15 Tom Tromey <tromey@redhat.com>
13082
13083 * dbxread.c (process_one_symbol): Update.
13084 * dwarf2read.c (read_partial_die): Update.
13085 * symfile.c (set_initial_language): Call main_language.
13086 * symtab.c (language_of_main): Now static.
13087 (set_main_name): Add 'lang' parameter.
13088 (find_main_name): Update.
13089 (main_language): New function.
13090 (symtab_observer_executable_changed): Update.
13091 * symtab.h (set_main_name): Update.
13092 (language_of_main): Remove.
13093 (main_language): Declare.
13094
13095 2014-01-15 Tom Tromey <tromey@redhat.com>
13096
13097 * symfile.c (init_entry_point_info): Use new "initialized" field.
13098 Update.
13099 * objfiles.h (struct entry_point) <initialized>: New field.
13100 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13101 (struct objfile) <ei>: ...here. Remove.
13102 * objfiles.c (entry_point_address_query): Update.
13103
13104 2014-01-15 Tom Tromey <tromey@redhat.com>
13105
13106 * objfiles.c (entry_point_address_query): Relocate entry point
13107 address.
13108 (objfile_relocate1): Do not relocate entry point address.
13109 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13110 <the_bfd_section_index>: New field.
13111 * symfile.c (init_entry_point_info): Find the entry point's
13112 section.
13113
13114 2014-01-15 Tom Tromey <tromey@redhat.com>
13115
13116 * solib-frv.c (enable_break): Use entry_point_address_query.
13117
13118 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13119
13120 * NEWS: Add note on improved process record-replay on
13121 arm*-linux* targets.
13122
13123 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13124
13125 * arm-tdep.c (enum arm_record_result): New enum.
13126 (arm_record_unsupported_insn): New function.
13127 (arm_record_coproc_data_proc): Removed.
13128 (thumb2_record_ld_st_multiple): New function.
13129 (thumb2_record_ld_st_dual_ex_tbb): New function.
13130 (thumb2_record_data_proc_sreg_mimm): New function.
13131 (thumb2_record_ps_dest_generic): New function.
13132 (thumb2_record_branch_misc_cntrl): New function.
13133 (thumb2_record_str_single_data): New function.
13134 (thumb2_record_ld_mem_hints): New function.
13135 (thumb2_record_ld_word): New function.
13136 (thumb2_record_lmul_lmla_div): New function.
13137 (thumb2_record_decode_insn_handler): New function.
13138 (decode_insn): Add thumb32 instruction handlers.
13139
13140 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13141
13142 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13143 (struct arm_linux_record_tdep): Declare.
13144 (arm_canonicalize_syscall): New function.
13145 (arm_all_but_pc_registers_record): New function.
13146 (arm_linux_syscall_record): New function.
13147 (arm_linux_init_abi): Add syscall recording constructs.
13148 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13149 decoding. (arm_record_coproc_data_proc): Update arm syscall
13150 decoding.
13151 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13152 <arm_syscall_record>: New field.
13153 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13154 gdb_target_obs.
13155
13156 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13157
13158 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13159 register for push instruction recording.
13160
13161 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13162
13163 * arm-tdep.c (thumb_record_misc): Update to correct logical
13164 error while recording ldm, ldmia and pop instructions.
13165
13166 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13167
13168 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13169
13170 2014-01-15 Pedro Alves <palves@redhat.com>
13171
13172 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13173 (go32_resume, go32_fetch_registers, store_register)
13174 (go32_store_registers, go32_prepare_to_store)
13175 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13176 (go32_create_inferior, go32_can_run, go32_terminal_init)
13177 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13178 declarations.
13179
13180 2014-01-15 Tom Tromey <tromey@redhat.com>
13181
13182 * target.h (async_callback_ftype): New typedef.
13183 (struct target_ops) <to_async>: Use it.
13184
13185 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13186
13187 * python/py-value.c (get_field_type): Remove unnecessary curly
13188 braces for single-statement if block.
13189
13190 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13191
13192 * python/py-type.c (convert_field): Add missing empty line
13193 after declarations.
13194
13195 2014-01-14 Doug Evans <dje@google.com>
13196
13197 * symfile.h (expand_symtabs_matching): Renamed from
13198 expand_partial_symbol_names. Update prototype.
13199 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13200 * symfile.c (expand_symtabs_matching): Renamed from
13201 expand_partial_symbol_names. New args file_matcher, kind.
13202 Rename arg fun to symbol_matcher.
13203 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13204 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13205 ada_expand_partial_symbol_name.
13206 (ada_make_symbol_completion_list): Update to call
13207 expand_symtabs_matching.
13208 (ada_add_global_exceptions): Call expand_symtabs_matching.
13209 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13210 call map_symbol_filenames.
13211 * symtab.c (sources_info): Update to call map_symbol_filenames.
13212 (search_symbols): Call expand_symtabs_matching.
13213 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13214 (default_make_symbol_completion_list_break_on): Update to call
13215 expand_symtabs_matching.
13216 (make_source_files_completion_list): Update to call
13217 map_symbol_filenames.
13218
13219 2014-01-14 Doug Evans <dje@google.com>
13220
13221 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13222 (expand_symtabs_symbol_matcher_ftype): New typedef.
13223 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13224 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13225 * symfile.c (expand_partial_symbol_names): Update to use
13226 expand_symtabs_symbol_matcher_ftype.
13227 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13228 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13229 Arg name_matcher renamed to symbol_matcher.
13230 * psymtab.c (recursively_search_psymtabs): Update to use
13231 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13232 sym_matcher.
13233 (expand_symtabs_matching_via_partial): Update to use
13234 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13235 Arg name_matcher renamed to symbol_matcher.
13236
13237 2014-01-14 Doug Evans <dje@google.com>
13238
13239 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13240 (map_partial_symbol_filenames): Ditto.
13241 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13242 (map_partial_symbol_filenames): Ditto.
13243 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13244 (map_partial_symbol_filenames): Ditto.
13245 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13246 (map_partial_symbol_filenames): Ditto.
13247 * symtab.c: Delete #include "psymtab.h".
13248
13249 2014-01-14 Pedro Alves <palves@redhat.com>
13250 Tom Tromey <tromey@redhat.com>
13251
13252 * infrun.c (use_displaced_stepping): Use find_record_target
13253 instead of RECORD_IS_USED.
13254 (adjust_pc_after_break): Use record_full_is_used instead of
13255 RECORD_IS_USED.
13256 * record-btrace.c (record_btrace_open): Call record_preopen
13257 instead of checking RECORD_IS_USED.
13258 * record-full.c (record_full_shortname)
13259 (record_full_core_shortname): New globals.
13260 (record_full_is_used): New function.
13261 (find_full_open): Call record_preopen instead of checking
13262 RECORD_IS_USED.
13263 (init_record_full_ops): Set the target's shortname to
13264 record_full_shortname.
13265 (init_record_full_core_ops): Set the target's shortname to
13266 record_full_core_shortname.
13267 * record-full.h (record_full_is_used): Declare.
13268 * record.c (find_record_target): Make extern.
13269 (record_preopen): New function.
13270 * record.h (RECORD_IS_USED): Delete macro.
13271 (find_record_target, record_preopen): Declare functions.
13272
13273 2014-01-14 Yao Qi <yao@codesourcery.com>
13274
13275 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13276 'len''s type to ULONGEST.
13277 (core_xfer_shared_libraries_aix): Likewise.
13278 * gdbarch.c, gdbarch.h: Regenerated.
13279 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13280 Change type of 'len' to ULONGEST.
13281 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13282 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13283
13284 2014-01-14 Yao Qi <yao@codesourcery.com>
13285
13286 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13287 type of 'len' to ULONGEST.
13288 (linux_xfer_osdata_processgroups): Likewise.
13289 (linux_xfer_osdata_threads): Likewise.
13290 (linux_xfer_osdata_fds): Likewise.
13291 (linux_xfer_osdata_isockets): Likewise.
13292 (linux_xfer_osdata_shm): Likewise.
13293 (linux_xfer_osdata_sem): Likewise.
13294 (linux_xfer_osdata_msg): Likewise.
13295 (linux_common_xfer_osdata): Likewise.
13296 (struct osdata_type) <getter>: Likewise.
13297 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13298 the declaration.
13299
13300 2014-01-14 Yao Qi <yao@codesourcery.com>
13301
13302 * target.h (target_xfer_partial_ftype): Update.
13303 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13304 ULONGEST.
13305 * aix-thread.c (aix_thread_xfer_partial): Change type of
13306 argument 'len' to ULONGEST.
13307 * auxv.c (procfs_xfer_auxv): Likewise.
13308 (ld_so_xfer_auxv): Likewise.
13309 (memory_xfer_auxv): Likewise.
13310 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13311 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13312 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13313 * corelow.c (core_xfer_partial): Likewise.
13314 * ctf.c (ctf_xfer_partial): Likewise.
13315 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13316 '%u'.
13317 (darwin_read_dyld_info): Likewise.
13318 (darwin_xfer_partial): Likewise.
13319 * exec.c (section_table_xfer_memory_partial): Likewise.
13320 (exec_xfer_partial): Likewise.
13321 * exec.h (section_table_xfer_memory_partial): Update
13322 declaration.
13323 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13324 instead of plongest.
13325 (gnu_xfer_partial): Likewise.
13326 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13327 (ia64_hpux_xfer_solib_got): Likewise.
13328 (ia64_hpux_xfer_partial): Likewise.
13329 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13330 * inf-ptrace.c (inf_ptrace_xfer_partial):
13331 * inf-ttrace.c (inf_ttrace_xfer_partial):
13332 * linux-nat.c (linux_xfer_siginfo): Likewise.
13333 (linux_nat_xfer_partial): Likewise.
13334 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13335 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13336 * monitor.c (monitor_xfer_memory): Likewise.
13337 (monitor_xfer_partial): Likewise.
13338 * procfs.c (procfs_xfer_partial): Likewise.
13339 * record-full.c (record_full_xfer_partial): Likewise.
13340 (record_full_core_xfer_partial): Likewise.
13341 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13342 instead of plongest.
13343 (gdbsim_xfer_partial): Likewise.
13344 * remote.c (remote_xfer_partial): Likewise.
13345 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13346 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13347 declaration.
13348 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13349 (rs6000_xfer_shared_libraries): Likewise.
13350 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13351 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13352 (sparc_xfer_partial): Likewise.
13353 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13354 (spu_xfer_partial): Likewise.
13355 * spu-multiarch.c (spu_xfer_partial): Likewise.
13356 * target.c (target_read_live_memory): Likewise.
13357 (memory_xfer_live_readonly_partial): Likewise.
13358 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13359 (target_xfer_partial, default_xfer_partial): Likewise.
13360 (current_xfer_partial): Likewise.
13361 * tracepoint.c (tfile_xfer_partial): Likewise.
13362 * windows-nat.c (windows_xfer_memory): Likewise. Call
13363 pulongest instead of plongest.
13364 (windows_xfer_partial): Likewise.
13365 (windows_xfer_shared_libraries): Likewise.
13366
13367 2014-01-14 Yao Qi <yao@codesourcery.com>
13368
13369 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13370 target_xfer_partial_ftype.
13371
13372 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13373
13374 PR python/15464
13375 PR python/16113
13376 * valops.c (value_struct_elt_bitpos): New function
13377 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13378 object to 'None' if the field name is an empty string ("").
13379 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13380 attribute to look for a field when 'name' is 'None'.
13381 (get_field_type): New function
13382
13383 2014-01-13 Doug Evans <dje@google.com>
13384
13385 PR symtab/16426
13386 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13387 (try_open_dwop_file): Ditto.
13388 * gdb_bfd.c: #include "vec.h".
13389 (bfdp): New typedef.
13390 (struct gdb_bfd_data): New member included_bfds.
13391 (gdb_bfd_unref): Unref all included bfds.
13392 (gdb_bfd_record_inclusion): New function.
13393 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13394
13395 2014-01-13 Tom Tromey <tromey@redhat.com>
13396
13397 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13398
13399 2014-01-13 Tom Tromey <tromey@redhat.com>
13400
13401 * defs.h (use_windows): Remove.
13402 * gdb.c (main): Update.
13403 * main.c (captured_main, gdb_main): Update.
13404 * main.h (struct captured_main_args) <use_windows>: Remove.
13405 * top.c (use_windows): Remove.
13406
13407 2014-01-13 Tom Tromey <tromey@redhat.com>
13408
13409 * defs.h (deprecated_flush_hook): Remove.
13410
13411 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13412
13413 PR threads/16216
13414 * linux-thread-db.c (try_thread_db_load): Add parameter
13415 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13416 (try_thread_db_load_from_pdir_1): Move it there from here.
13417 (try_thread_db_load_from_sdir): Update caller.
13418 (try_thread_db_load_from_dir): Move it there from here.
13419
13420 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13421
13422 * regformats/regdat.sh: Always rewrite the register file.
13423
13424 2014-01-13 Pedro Alves <palves@redhat.com>
13425
13426 * Makefile.in (CHECK_HEADERS): New variable.
13427 (check-headers:): New rule.
13428
13429 2014-01-13 Tom Tromey <tromey@redhat.com>
13430
13431 * cli/cli-setshow.c (do_set_command): Update.
13432 * defs.h (deprecated_set_hook): Remove.
13433 * top.c (deprecated_set_hook): Remove.
13434
13435 2014-01-13 Pedro Alves <palves@redhat.com>
13436
13437 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13438 the tracepoint if the PC is a pseudo-register.
13439
13440 2014-01-13 Tom Tromey <tromey@redhat.com>
13441
13442 * defs.h (XCALLOC): Remove.
13443 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13444 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13445 * dwarf2loc.c (allocate_piece_closure): Likewise.
13446 * elfread.c (elf_symfile_segments): Likewise.
13447 (elf_symfile_segments): Likewise.
13448 * gdbtypes.c (copy_type_recursive): Likewise.
13449 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13450 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13451 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13452 XCALLOC.
13453 * mt-tdep.c (mt_gdbarch_init): Likewise.
13454 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13455 XCALLOC.
13456 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13457 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13458 * registry.c (registry_alloc_data): Likewise.
13459 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13460 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13461 * serial.c (serial_fdopen_ops): Likewise.
13462 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13463 XCALLOC.
13464 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13465 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13466 not XCALLOC.
13467
13468 2014-01-13 Tom Tromey <tromey@redhat.com>
13469
13470 * defs.h (XMALLOC): Remove.
13471 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13472 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13473 * cli-out.c (struct ui_out *): Likewise.
13474 * cli/cli-dump.c (add_dump_command): Likewise.
13475 (add_dump_command): Likewise.
13476 * complaints.c (get_complaints): Likewise.
13477 (find_complaint): Likewise.
13478 * dwarf2-frame.c (execute_cfa_program): Likewise.
13479 * dwarf2read.c (abbrev_table_read_table): Likewise.
13480 * gdbarch.sh: Likewise.
13481 * gdbarch.c: Rebuild.
13482 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13483 * interps.c (interp_new): Likewise.
13484 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13485 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13486 * mi/mi-console.c (mi_console_file_new): Likewise.
13487 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13488 * mi/mi-out.c (mi_out_new): Likewise.
13489 * mi/mi-parse.c (mi_parse): Likewise.
13490 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13491 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13492 * observer.c (xalloc_observer_list_node): Likewise.
13493 * regcache.c (regcache_xmalloc_1): Likewise.
13494 * reggroups.c (reggroup_new): Likewise.
13495 (_initialize_reggroup): Likewise.
13496 * registry.c (register_data_with_cleanup): Likewise.
13497 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13498 * ser-base.c (serial_ttystate): Likewise.
13499 * ser-mingw.c (make_pipe_state): Likewise.
13500 * ser-pipe.c (pipe_open): Likewise.
13501 * serial.c (serial_open): Likewise.
13502 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13503 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13504 (tui_alloc_win_info): Likewise.
13505 (tui_add_content_elements): Likewise.
13506 * tui/tui-file.c (tui_file_new): Likewise.
13507 * tui/tui-out.c (tui_out_new): Likewise.
13508 * ui-file.c (mem_file_new): Likewise.
13509 * ui-out.c (push_level): Likewise.
13510 (make_cleanup_ui_out_end): Likewise.
13511 (append_header_to_list): Likewise.
13512 (ui_out_new): Likewise.
13513 * user-regs.c (user_reg_add_builtin): Likewise.
13514
13515 2014-01-13 Tom Tromey <tromey@redhat.com>
13516
13517 * defs.h (XZALLOC): Remove.
13518 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13519 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13520 (get_ada_tasks_inferior_data): Likewise.
13521 * auto-load.c (get_auto_load_pspace_data): Likewise.
13522 * auxv.c (get_auxv_inferior_data): Likewise.
13523 * bfd-target.c (target_bfd_reopen): Likewise.
13524 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13525 (deprecated_insert_raw_breakpoint): Likewise.
13526 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13527 * corelow.c (core_open): Likewise.
13528 * darwin-nat.c (darwin_check_new_threads): Likewise.
13529 (darwin_attach_pid): Likewise.
13530 * dummy-frame.c (dummy_frame_push): Likewise.
13531 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13532 * dwarf2loc.c (allocate_piece_closure): Likewise.
13533 * elfread.c (elf_symfile_segments): Likewise.
13534 * eval.c (ptrmath_type_p): Likewise.
13535 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13536 * gdbtypes.c (alloc_type_arch): Likewise.
13537 (alloc_type_instance): Likewise.
13538 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13539 * inf-child.c (inf_child_can_use_agent): Likewise.
13540 * inflow.c (get_inflow_inferior_data): Likewise.
13541 * infrun.c (save_infcall_suspend_state): Likewise.
13542 * jit.c (jit_reader_load): Likewise.
13543 (get_jit_objfile_data): Likewise.
13544 (get_jit_program_space_data): Likewise.
13545 (jit_object_open_impl): Likewise.
13546 (jit_symtab_open_impl): Likewise.
13547 (jit_block_open_impl): Likewise.
13548 (jit_frame_sniffer): Likewise.
13549 * linux-fork.c (add_fork): Likewise.
13550 * maint.c (make_command_stats_cleanup): Likewise.
13551 * objfiles.c (get_objfile_pspace_data): Likewise.
13552 * opencl-lang.c (struct lval_closure): Likewise.
13553 * osdata.c (osdata_start_osdata): Likewise.
13554 * progspace.c (new_address_space): Likewise.
13555 (add_program_space): Likewise.
13556 * remote-sim.c (get_sim_inferior_data): Likewise.
13557 * sh-tdep.c (sh_gdbarch_init): Likewise.
13558 * skip.c (Ignore): Likewise.
13559 (skip_delete_command): Likewise.
13560 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13561 (library_list_start_library): Likewise.
13562 (solib_aix_current_sos): Likewise.
13563 * solib-darwin.c (get_darwin_info): Likewise.
13564 (darwin_current_sos): Likewise.
13565 * solib-dsbt.c (get_dsbt_info): Likewise.
13566 * solib-ia64-hpux.c (new_so_list): Likewise.
13567 (ia64_hpux_get_solib_linkage_addr): Likewise.
13568 * solib-spu.c (append_ocl_sos): Likewise.
13569 (spu_current_sos): Likewise.
13570 * solib-svr4.c (get_svr4_info): Likewise.
13571 (svr4_keep_data_in_core): Likewise.
13572 (library_list_start_library): Likewise.
13573 (svr4_default_sos): Likewise.
13574 (svr4_read_so_list): Likewise.
13575 * solib-target.c (library_list_start_library): Likewise.
13576 (solib_target_current_sos): Likewise.
13577 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13578 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13579 * symfile.c (default_symfile_segments): Likewise.
13580 * target-descriptions.c (tdesc_data_init): Likewise.
13581 (tdesc_create_reg): Likewise.
13582 (struct tdesc_type *): Likewise.
13583 (tdesc_create_vector): Likewise.
13584 (tdesc_set_struct_size): Likewise.
13585 (struct tdesc_type *): Likewise.
13586 (tdesc_free_feature): Likewise.
13587 (tdesc_create_feature): Likewise.
13588 * windows-nat.c (windows_add_thread): Likewise.
13589 (windows_make_so): Likewise.
13590 * xml-support.c (gdb_xml_body_text): Likewise.
13591 (gdb_xml_create_parser_and_cleanup): Likewise.
13592 (xml_process_xincludes): Likewise.
13593 * xml-syscall.c (allocate_syscalls_info): Likewise.
13594 (syscall_create_syscall_desc): Likewise.
13595
13596 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13597
13598 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13599 function, with code from i386_stap_parse_special_token.
13600 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13601 (i386_stap_parse_special_token): Move code to the two functions
13602 above; simplify it.
13603
13604 2014-01-09 Pedro Alves <palves@redhat.com>
13605 Hui Zhu <hui@codesourcery.com>
13606
13607 PR gdb/16101
13608 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13609 bp_err_string. Don't mark the location shlib_disabled if the
13610 error thrown wasn't a generic or memory error. Catch errors
13611 thrown while inserting breakpoints in overlayed code. Output
13612 error message of software breakpoints.
13613 * remote.c (remote_insert_breakpoint): If this breakpoint has
13614 target-side commands but this stub doesn't support Z0 packets,
13615 throw NOT_SUPPORTED_ERROR error.
13616 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13617 * target.h (target_insert_breakpoint): Extend comment.
13618 (target_insert_hw_breakpoint): Add comment.
13619
13620 2014-01-08 Pedro Alves <palves@redhat.com>
13621
13622 * remote.c (remote_add_thread): Add threads silently if starting
13623 up.
13624 (remote_notice_new_inferior): If in all-stop, and starting up,
13625 don't call notice_new_inferior.
13626 (get_current_thread): New function, factored out from ...
13627 (add_current_inferior_and_thread): ... this. Adjust.
13628 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13629 found any thread, then select the remote's current thread as GDB's
13630 current thread too.
13631
13632 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13633
13634 * NEWS: Create a new section for the next release branch.
13635 Rename the section of the current branch, now that it has
13636 been cut.
13637
13638 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13639
13640 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13641 * version.in: Bump version to 7.7.50.DATE-cvs.
13642
13643 2014-01-08 Yao Qi <yao@codesourcery.com>
13644
13645 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13646 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13647 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13648
13649 2014-01-08 Yao Qi <yao@codesourcery.com>
13650
13651 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13652 return value of bfd_get_filename to symbol_file_add_from_bfd.
13653
13654 2014-01-08 Pierre Muller <muller@sourceware.org>
13655
13656 Fix PR16201.
13657 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13658 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13659 to prim_record_mininal_symbol_and_info.
13660 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13661 in call to prim_record_minimal_symbol_and_info.
13662 (read_pe_exported_syms): Set index field of section_data.
13663
13664 2014-01-07 Andrew Pinski <apinski@cavium.com>
13665
13666 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13667 * features/aarch64.c: Regenerate.
13668
13669 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13670
13671 * target.c (return_null): Define.
13672 (update_current_target): Use it instead of return_zero for
13673 functions that return a pointer.
13674
13675 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13676
13677 * source.c (add_path): Fix check for duplicated paths in the previously
13678 included paths.
13679
13680 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13681
13682 * ada-lang.c: Remove duplicated include statements.
13683 * alphabsd-nat.c: Ditto.
13684 * amd64-darwin-tdep.c: Ditto.
13685 * amd64fbsd-nat.c: Ditto.
13686 * auto-load.c: Ditto.
13687 * ax-gdb.c: Ditto.
13688 * breakpoint.c: Ditto.
13689 * dbxread.c: Ditto.
13690 * fork-child.c: Ditto.
13691 * gdb_usleep.c: Ditto.
13692 * i386-darwin-tdep.c: Ditto.
13693 * i386fbsd-nat.c: Ditto.
13694 * infcmd.c: Ditto.
13695 * inferior.c: Ditto.
13696 * jv-lang.c: Ditto.
13697 * linux-nat.c: Ditto.
13698 * linux-tdep.c: Ditto.
13699 * m68kbsd-nat.c: Ditto.
13700 * m68klinux-nat.c: Ditto.
13701 * microblaze-tdep.c: Ditto.
13702 * mips-linux-tdep.c: Ditto.
13703 * mn10300-tdep.c: Ditto.
13704 * nto-tdep.c: Ditto.
13705 * opencl-lang.c: Ditto.
13706 * osdata.c: Ditto.
13707 * printcmd.c: Ditto.
13708 * regcache.c: Ditto.
13709 * remote-m32r-sdi.c: Ditto.
13710 * remote.c: Ditto.
13711 * symfile.c: Ditto.
13712 * symtab.c: Ditto.
13713 * tilegx-linux-nat.c: Ditto.
13714 * tilegx-tdep.c: Ditto.
13715 * tracepoint.c: Ditto.
13716 * valops.c: Ditto.
13717 * vaxbsd-nat.c: Ditto.
13718 * windows-nat.c: Ditto.
13719 * xtensa-tdep.c: Ditto.
13720
13721 2014-01-07 Yao Qi <yao@codesourcery.com>
13722
13723 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13724
13725 2014-01-07 Yao Qi <yao@codesourcery.com>
13726 Joel Brobecker <brobecker@adacore.com>
13727
13728 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13729 (pdc_write_regs): Likewise.
13730 (fetch_regs_kernel_thread): Likewise.
13731 (store_regs_kernel_thread): Likewise.
13732
13733 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13734
13735 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13736 tagged type objects to their actual type.
13737
13738 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13739
13740 * ada-valprint.c (print_field_values): Add "language" parameter.
13741 Update calls to print_field_values and print_variant_part.
13742 Pass new parameter "language" in call to val_print instead
13743 of "current_language". Replace call to ada_val_print by call
13744 to val_print.
13745 (print_variant_part): Add "language" parameter.
13746 (ada_val_print_struct_union): Update call to print_field_values.
13747
13748 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13749
13750 * ada-valprint.c (ui_memcpy): Delete.
13751 (ada_print_floating): Update documentation. Add empty line
13752 between between function documentation and implementation.
13753 Delete variable "buffer". Use ui_file_xstrdup in place of
13754 ui_file_put. Minor adjustments following this change.
13755
13756 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13757
13758 * ada-valprint.c (ada_val_print_string): New function,
13759 extracted from ada_val_print_array.
13760 (ada_val_print_array): Replace extracted code by call
13761 to ada_val_print_string followed by a return. Move
13762 "else" branch to the function's top block.
13763
13764 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13765
13766 * ada-valprint.c (ada_val_print_array): Move implementation
13767 down. Rename parameter "offset" and "val" into "offset_aligned"
13768 and "original_value" respectively. Add parameter "offset".
13769
13770 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13771
13772 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13773 re-organizing the code. Change the "???" message printed
13774 when target type is a TYPE_CODE_UNDEF into
13775 "<ref to undefined type>".
13776
13777 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13778
13779 * ada-valprint.c (print_record): Delete, implementation inlined...
13780 (ada_val_print_struct_union): ... here. Remove call to
13781 ada_check_typedef in inlined implementation.
13782
13783 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13784
13785 * ada-valprint.c (ada_val_print_gnat_array): New function,
13786 extracted from ada_val_print_1;
13787 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13788 (ada_val_print_flt, ada_val_print_struct_union)
13789 (ada_val_print_ref): Likewise.
13790 (ada_val_print_1): Delete variables i and elttype.
13791 Replace extracted-out code by call to corresponding
13792 new functions.
13793
13794 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13795
13796 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13797
13798 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13799
13800 * ada-valprint.c (ada_val_print_1): Replace calls to
13801 ada_val_print_1 by calls to val_print.
13802
13803 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13804
13805 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13806 Update calls to self accordingly. Replace calls to c_val_print
13807 by calls to val_print.
13808
13809 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13810
13811 * ada-valprint.c (print_record): Delete declaration.
13812 (adjust_type_signedness, ada_val_print_1): Likewise.
13813 (ada_val_print): Move function implementation down.
13814 (print_variant_part, print_field_values, print_record):
13815 Move function implementation up.
13816
13817 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13818
13819 * python/py-type.c (typy_get_name): New function.
13820 (type_object_getset): Add entry for attribute "name".
13821 * NEWS: Add entry mentioning this new attribute.
13822
13823 2014-01-07 Yao Qi <yao@codesourcery.com>
13824
13825 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13826 statement.
13827
13828 2014-01-07 Yao Qi <yao@codesourcery.com>
13829
13830 * gnu-nat.c (info_port_rights): Add qualifier const to
13831 argument args.
13832
13833 2014-01-07 Yao Qi <yao@codesourcery.com>
13834
13835 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13836
13837 2014-01-07 Yao Qi <yao@codesourcery.com>
13838
13839 * gnu-nat.c (make_inf) Update declaration.
13840 (make_inf): Make it static.
13841 (inf_set_traced): Likewise.
13842 (inf_port_to_thread, inf_task_died_status): Likewise.
13843
13844 2014-01-07 Yao Qi <yao@codesourcery.com>
13845
13846 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13847
13848 2014-01-07 Yao Qi <yao@codesourcery.com>
13849
13850 * gnu-nat.c (_initialize_gnu_nat): Declare.
13851
13852 2014-01-07 Yao Qi <yao@codesourcery.com>
13853
13854 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13855 'enum bfd_endian'.
13856 (struct gdbarch_info) <byte_order>: Change type to
13857 'enum bfd_endian'.
13858 <byte_order_for_code>: Likewise.
13859 * gdbarch.c, gdbarch.h: Regenerated.
13860
13861 2014-01-06 Sasha Smundak <asmundak@google.com>
13862
13863 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13864
13865 2014-01-06 Tom Tromey <tromey@redhat.com>
13866
13867 * doublest.c (convert_doublest_to_floatformat): Use const, not
13868 CONST.
13869 * somread.c (som_symtab_read): Likewise.
13870
13871 2014-01-07 Hui Zhu <hui@codesourcery.com>
13872
13873 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13874 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13875 (gdb_bfd_fopen): Ditto.
13876 (gdb_bfd_openr): Ditto.
13877 (gdb_bfd_openw): Ditto.
13878 (gdb_bfd_openr_iovec): Ditto.
13879 (gdb_bfd_fdopenr): Ditto.
13880 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13881 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13882 with xstrdup.
13883 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13884 with xstrdup.
13885 * symfile-mem.c (symbol_file_add_from_memory): Removed
13886 gdb_bfd_stash_filename.
13887
13888 2014-01-03 Doug Evans <dje@google.com>
13889
13890 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13891 output.
13892
13893 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13894
13895 Update year range in copyright notice of all files.
13896
13897 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13898
13899 * top.c (print_gdb_version): Set copyright year to 2014.
13900
13901 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13902
13903 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13904
13905 For older changes see ChangeLog-2013.
13906 \f
13907 Local Variables:
13908 mode: change-log
13909 left-margin: 8
13910 fill-column: 74
13911 version-control: never
13912 coding: utf-8
13913 End:
This page took 0.396697 seconds and 4 git commands to generate.