Cache the vsyscall/vDSO range per-inferior
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-10-10 Pedro Alves <palves@redhat.com>
2
3 * linux-tdep.c: Include observer.h.
4 (linux_inferior_data): New global.
5 (struct linux_info): New structure.
6 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
7 (get_linux_inferior_data): New functions.
8 (linux_vsyscall_range): Rename to ...
9 (linux_vsyscall_range_raw): ... this.
10 (linux_vsyscall_range): New function; handles caching.
11 (_initialize_linux_tdep): Register linux_inferior_data. Install
12 inferior_exit and inferior_appeared observers.
13
14 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
15 Pedro Alves <palves@redhat.com>
16
17 PR symtab/14466
18 * solib-svr4.c (svr4_read_so_list): Rename to ...
19 (svr4_current_sos_1): ... this and change the function comment.
20 (svr4_current_sos): New function.
21
22 2014-10-10 Pedro Alves <palves@redhat.com>
23
24 * arch-utils.c (default_vsyscall_range): New function.
25 * arch-utils.h (default_vsyscall_range): New declaration.
26 * gdbarch.sh (vsyscall_range): New hook.
27 * gdbarch.h, gdbarch.c: Regenerate.
28 * linux-tdep.c (linux_vsyscall_range): New function.
29 (linux_init_abi): Install linux_vsyscall_range as
30 vsyscall_range gdbarch hook.
31 * memrange.c (address_in_mem_range): New function.
32 * memrange.h (address_in_mem_range): New declaration.
33 * symfile-mem.c (find_vdso_size): Delete function.
34 (add_vsyscall_page): Use gdbarch_vsyscall_range.
35
36 2014-10-10 Pedro Alves <palves@redhat.com>
37
38 * infrun.c (normal_stop): Fix typo in comment.
39
40 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
41
42 PR tdep/9390
43 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
44 typo when using logical AND to determine instruction type.
45
46 2014-10-09 Yao Qi <yao@codesourcery.com>
47
48 * infrun.c (handle_signal_stop): Remove local variable
49 'printed'.
50
51 2014-10-08 Stan Shebs <stan@codesourcery.com>
52
53 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
54
55 2014-10-08 Gary Benson <gbenson@redhat.com>
56
57 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
58
59 2014-10-08 Gary Benson <gbenson@redhat.com>
60
61 * common/common-defs.h: Include common-exceptions.h.
62 * exceptions.h: Do not include common-exceptions.h.
63
64 2014-10-08 Gary Benson <gbenson@redhat.com>
65
66 * common/common-defs.h: Include cleanups.h.
67 * common/common-exceptions.c: Do not include cleanups.h.
68 * utils.h: Likewise.
69
70 2014-10-08 Gary Benson <gbenson@redhat.com>
71
72 * ada-lang.c: Do not include exceptions.h.
73 * ada-valprint.c: Likewise.
74 * amd64-tdep.c: Likewise.
75 * auto-load.c: Likewise.
76 * block.c: Likewise.
77 * break-catch-throw.c: Likewise.
78 * breakpoint.c: Likewise.
79 * btrace.c: Likewise.
80 * c-lang.c: Likewise.
81 * cli/cli-cmds.c: Likewise.
82 * cli/cli-interp.c: Likewise.
83 * cli/cli-script.c: Likewise.
84 * completer.c: Likewise.
85 * corefile.c: Likewise.
86 * corelow.c: Likewise.
87 * cp-abi.c: Likewise.
88 * cp-support.c: Likewise.
89 * cp-valprint.c: Likewise.
90 * darwin-nat.c: Likewise.
91 * dwarf2-frame-tailcall.c: Likewise.
92 * dwarf2-frame.c: Likewise.
93 * dwarf2loc.c: Likewise.
94 * dwarf2read.c: Likewise.
95 * eval.c: Likewise.
96 * event-loop.c: Likewise.
97 * event-top.c: Likewise.
98 * f-valprint.c: Likewise.
99 * frame-unwind.c: Likewise.
100 * frame.c: Likewise.
101 * gdbtypes.c: Likewise.
102 * gnu-v2-abi.c: Likewise.
103 * gnu-v3-abi.c: Likewise.
104 * guile/scm-auto-load.c: Likewise.
105 * guile/scm-breakpoint.c: Likewise.
106 * guile/scm-cmd.c: Likewise.
107 * guile/scm-frame.c: Likewise.
108 * guile/scm-lazy-string.c: Likewise.
109 * guile/scm-param.c: Likewise.
110 * guile/scm-symbol.c: Likewise.
111 * guile/scm-type.c: Likewise.
112 * hppa-hpux-tdep.c: Likewise.
113 * i386-tdep.c: Likewise.
114 * inf-loop.c: Likewise.
115 * infcall.c: Likewise.
116 * infcmd.c: Likewise.
117 * infrun.c: Likewise.
118 * interps.c: Likewise.
119 * interps.h: Likewise.
120 * jit.c: Likewise.
121 * linespec.c: Likewise.
122 * linux-nat.c: Likewise.
123 * linux-thread-db.c: Likewise.
124 * m32r-rom.c: Likewise.
125 * main.c: Likewise.
126 * memory-map.c: Likewise.
127 * mi/mi-cmd-break.c: Likewise.
128 * mi/mi-cmd-stack.c: Likewise.
129 * mi/mi-interp.c: Likewise.
130 * mi/mi-main.c: Likewise.
131 * monitor.c: Likewise.
132 * nto-procfs.c: Likewise.
133 * objc-lang.c: Likewise.
134 * p-valprint.c: Likewise.
135 * parse.c: Likewise.
136 * ppc-linux-tdep.c: Likewise.
137 * printcmd.c: Likewise.
138 * probe.c: Likewise.
139 * python/py-auto-load.c: Likewise.
140 * python/py-breakpoint.c: Likewise.
141 * python/py-cmd.c: Likewise.
142 * python/py-finishbreakpoint.c: Likewise.
143 * python/py-frame.c: Likewise.
144 * python/py-framefilter.c: Likewise.
145 * python/py-function.c: Likewise.
146 * python/py-gdb-readline.c: Likewise.
147 * python/py-inferior.c: Likewise.
148 * python/py-infthread.c: Likewise.
149 * python/py-lazy-string.c: Likewise.
150 * python/py-linetable.c: Likewise.
151 * python/py-param.c: Likewise.
152 * python/py-prettyprint.c: Likewise.
153 * python/py-symbol.c: Likewise.
154 * python/py-type.c: Likewise.
155 * python/py-value.c: Likewise.
156 * python/python-internal.h: Likewise.
157 * python/python.c: Likewise.
158 * record-btrace.c: Likewise.
159 * record-full.c: Likewise.
160 * regcache.c: Likewise.
161 * remote-fileio.c: Likewise.
162 * remote-mips.c: Likewise.
163 * remote.c: Likewise.
164 * rs6000-aix-tdep.c: Likewise.
165 * rs6000-nat.c: Likewise.
166 * skip.c: Likewise.
167 * solib-darwin.c: Likewise.
168 * solib-dsbt.c: Likewise.
169 * solib-frv.c: Likewise.
170 * solib-ia64-hpux.c: Likewise.
171 * solib-spu.c: Likewise.
172 * solib-svr4.c: Likewise.
173 * solib.c: Likewise.
174 * spu-tdep.c: Likewise.
175 * stack.c: Likewise.
176 * stap-probe.c: Likewise.
177 * symfile-mem.c: Likewise.
178 * symmisc.c: Likewise.
179 * target.c: Likewise.
180 * thread.c: Likewise.
181 * top.c: Likewise.
182 * tracepoint.c: Likewise.
183 * tui/tui-interp.c: Likewise.
184 * typeprint.c: Likewise.
185 * utils.c: Likewise.
186 * valarith.c: Likewise.
187 * valops.c: Likewise.
188 * valprint.c: Likewise.
189 * value.c: Likewise.
190 * varobj.c: Likewise.
191 * windows-nat.c: Likewise.
192 * xml-support.c: Likewise.
193
194 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
195
196 * mips-tdep.c (add_offset_16): Rewrite to implement what the
197 name implies.
198 (extended_mips16_next_pc): Update accordingly.
199
200 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
201
202 * mips-tdep.c (mips16_instruction_is_compact_branch): New
203 function.
204 (micromips_instruction_is_compact_branch): Likewise.
205 (mips16_scan_prologue): Terminate scanning upon seeing a branch
206 or a compact jump, reaching a jump delay slot, or seeing a
207 second non-prologue instruction.
208 (micromips_scan_prologue): Also terminate scanning upon seeing a
209 compact branch or jump, or reaching a branch or jump delay slot.
210 (mips32_scan_prologue): Terminate scanning upon reaching a branch
211 or jump delay slot, or seeing a second non-prologue instruction.
212 (mips32_instruction_has_delay_slot): Retain instruction
213 examination code only, update arguments accordingly and move
214 instruction fetch pieces to...
215 (mips32_insn_at_pc_has_delay_slot): ... this new function.
216 (micromips_instruction_has_delay_slot): Likewise and to...
217 (micromips_insn_at_pc_has_delay_slot): ... this new function.
218 (mips16_instruction_has_delay_slot): Likewise and to...
219 (mips16_insn_at_pc_has_delay_slot): ... this new function.
220 (mips_single_step_through_delay): Update accordingly.
221 (mips_adjust_breakpoint_address): Likewise.
222
223 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
224
225 * mips-tdep.c (micromips_instruction_has_delay_slot): When
226 !mustbe32 also return 1 for 32-bit instructions.
227 (mips16_instruction_has_delay_slot): Likewise. Add an
228 explanatory comment.
229
230 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
231
232 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
233 symbols special.
234
235 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
236
237 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
238 update comments.
239 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
240 for the breakpoint's address. Don't preinitialize `placed_size'.
241 (insert_bp_location): Set `reqstd_address' rather than
242 `placed_address'.
243 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
244 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
245 address.
246 (bkpt_remove_location): Likewise.
247 (deprecated_insert_raw_breakpoint): Likewise.
248 (deprecated_remove_raw_breakpoint): Likewise.
249 (find_single_step_breakpoint): Likewise.
250 * mem-break.c (default_memory_insert_breakpoint): Use
251 `reqstd_address' for the breakpoint's address. Don't set
252 `placed_address' or `placed_size' if breakpoint contents couldn't
253 have been determined.
254 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
255 the breakpoint's address.
256 (remote_insert_hw_breakpoint): Likewise. Don't set
257 `placed_address' or `placed_size' if breakpoint couldn't have been
258 set.
259 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
260 `reqstd_address' for the breakpoint's address.
261 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
262 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
263 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
264 * microblaze-linux-tdep.c
265 (microblaze_linux_memory_remove_breakpoint): Likewise.
266 * monitor.c (monitor_insert_breakpoint): Likewise.
267 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
268 (procfs_insert_hw_breakpoint): Likewise.
269 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
270 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
271 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
272 * remote-mips.c (mips_insert_breakpoint): Likewise.
273 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
274
275 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
276
277 * valops.c (value_assign): Check for bit field assignments
278 before calling architecture-specific register value
279 conversion functions.
280
281 2014-10-03 Pierre Muller <muller@sourceware.org>
282
283 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
284
285 2014-10-02 Pedro Alves <palves@redhat.com>
286
287 * breakpoint.c (breakpoints_should_be_inserted_now): Use
288 threads_are_executing.
289 * breakpoint.h (breakpoints_should_be_inserted_now): Add
290 describing comment.
291 * gdbthread.h (threads_are_executing): Declare.
292 (handle_signal_stop) <random signals>: Don't print about the
293 signal here if stopping.
294 (end_stepping_range): Don't notify observers here.
295 (normal_stop): Update the thread list. If stopped by a random
296 signal or a stepping range ended, notify observers.
297 * thread.c (threads_executing): New global.
298 (init_thread_list): Clear 'threads_executing'.
299 (set_executing): Set or clear 'threads_executing'.
300 (threads_are_executing): New function.
301 (update_threads_executing): New function.
302 (update_thread_list): Use it.
303
304 2014-10-02 Pedro Alves <palves@redhat.com>
305
306 PR breakpoints/17431
307 * breakpoint.c (update_breakpoints_after_exec): Don't create
308 overlay, longjmp, std terminate nor exception breakpoints here.
309
310 2014-10-02 Pedro Alves <palves@redhat.com>
311
312 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
313 Adjust comments.
314 * inferior.c (find_inferior_for_program_space): Give preference to
315 the current inferior.
316 * inferior.h (find_inferior_for_program_space): Update comment.
317 * progspace.c (switch_to_program_space_and_thread): Prefer the
318 current inferior if it's bound to the program space requested. If
319 the inferior found doesn't have a PID yet, don't bother looking up
320 a thread.
321 * progspace.h (switch_to_program_space_and_thread): Adjust
322 comment.
323 * thread.c (any_thread_of_process, any_live_thread_of_process):
324 Give preference to the current thread.
325
326 2014-10-01 Pedro Alves <palves@redhat.com>
327
328 * breakpoint.c (insert_bp_location): Error out if inserting a
329 software breakpoint at a read-only address.
330 * target.c (memory_xfer_check_region): New function, factored out
331 from ...
332 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
333 ULONGEST.
334 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
335 against the memory region attributes.
336
337 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
338
339 * NEWS: Announce new exit-code field in -list-thread-groups
340 output.
341 * inferior.c (exit_inferior_1): Don't clear exit code.
342 (inferior_appeared): Clear exit code.
343 * mi/mi-main.c (print_one_inferior): Add printing of the exit
344 code.
345
346 2014-10-01 Pedro Alves <palves@redhat.com>
347
348 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
349 GENERATED" along with emacs/vi read-only markers.
350 * regformats/aarch64.dat: Regenerate.
351 * regformats/arm-with-iwmmxt.dat: Regenerate.
352 * regformats/arm-with-neon.dat: Regenerate.
353 * regformats/arm-with-vfpv2.dat: Regenerate.
354 * regformats/arm-with-vfpv3.dat: Regenerate.
355 * regformats/i386/amd64-avx-linux.dat: Regenerate.
356 * regformats/i386/amd64-avx.dat: Regenerate.
357 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
358 * regformats/i386/amd64-avx512.dat: Regenerate.
359 * regformats/i386/amd64-linux.dat: Regenerate.
360 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
361 * regformats/i386/amd64-mpx.dat: Regenerate.
362 * regformats/i386/amd64.dat: Regenerate.
363 * regformats/i386/i386-avx-linux.dat: Regenerate.
364 * regformats/i386/i386-avx.dat: Regenerate.
365 * regformats/i386/i386-avx512-linux.dat: Regenerate.
366 * regformats/i386/i386-avx512.dat: Regenerate.
367 * regformats/i386/i386-linux.dat: Regenerate.
368 * regformats/i386/i386-mmx-linux.dat: Regenerate.
369 * regformats/i386/i386-mmx.dat: Regenerate.
370 * regformats/i386/i386-mpx-linux.dat: Regenerate.
371 * regformats/i386/i386-mpx.dat: Regenerate.
372 * regformats/i386/i386.dat: Regenerate.
373 * regformats/i386/x32-avx-linux.dat: Regenerate.
374 * regformats/i386/x32-avx.dat: Regenerate.
375 * regformats/i386/x32-avx512-linux.dat: Regenerate.
376 * regformats/i386/x32-avx512.dat: Regenerate.
377 * regformats/i386/x32-linux.dat: Regenerate.
378 * regformats/i386/x32.dat: Regenerate.
379 * regformats/microblaze-with-stack-protect.dat: Regenerate.
380 * regformats/mips-dsp-linux.dat: Regenerate.
381 * regformats/mips-linux.dat: Regenerate.
382 * regformats/mips64-dsp-linux.dat: Regenerate.
383 * regformats/mips64-linux.dat: Regenerate.
384 * regformats/nios2-linux.dat: Regenerate.
385 * regformats/rs6000/powerpc-32.dat: Regenerate.
386 * regformats/rs6000/powerpc-32l.dat: Regenerate.
387 * regformats/rs6000/powerpc-64l.dat: Regenerate.
388 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
389 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
390 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
391 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
392 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
393 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
394 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
395 * regformats/s390-linux32.dat: Regenerate.
396 * regformats/s390-linux32v1.dat: Regenerate.
397 * regformats/s390-linux32v2.dat: Regenerate.
398 * regformats/s390-linux64.dat: Regenerate.
399 * regformats/s390-linux64v1.dat: Regenerate.
400 * regformats/s390-linux64v2.dat: Regenerate.
401 * regformats/s390-te-linux64.dat: Regenerate.
402 * regformats/s390x-linux64.dat: Regenerate.
403 * regformats/s390x-linux64v1.dat: Regenerate.
404 * regformats/s390x-linux64v2.dat: Regenerate.
405 * regformats/s390x-te-linux64.dat: Regenerate.
406 * regformats/tic6x-c62x-linux.dat: Regenerate.
407 * regformats/tic6x-c62x.dat: Regenerate.
408 * regformats/tic6x-c64x-linux.dat: Regenerate.
409 * regformats/tic6x-c64x.dat: Regenerate.
410 * regformats/tic6x-c64xp-linux.dat: Regenerate.
411 * regformats/tic6x-c64xp.dat: Regenerate.
412
413 2014-10-01 Pedro Alves <palves@redhat.com>
414
415 * features/Makefile: Update comments.
416 (XMLTOC): List all xml files we build C files from.
417 (clean-cfiles): New rule.
418
419 2014-10-01 Pedro Alves <palves@redhat.com>
420
421 * features/i386/amd64-avx512-linux.c: Regenerate.
422 * features/i386/amd64-avx512.c: Regenerate.
423 * features/i386/x32-avx512-linux.c: Regenerate.
424 * features/i386/x32-avx512.c: Regenerate.
425
426 2014-10-01 Pedro Alves <palves@redhat.com>
427
428 * features/Makefile (WHICH): Remove arm-with-m,
429 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
430
431 2014-10-01 Pedro Alves <palves@redhat.com>
432
433 * features/Makefile (clean): New rule.
434
435 2014-10-01 Pedro Alves <palves@redhat.com>
436
437 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
438 (zmm14h): Add missing end quotes.
439
440 2014-10-01 Pedro Alves <palves@redhat.com>
441
442 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
443 * features/aarch64.c: Regenerate.
444
445 2014-09-30 Don Breazeal <donb@codesourcery.com>
446
447 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
448 code so as to work with follow_fork_inferior.
449 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
450 (inf_ttrace_create_inferior): Remove reference to
451 inf_ttrace_vfork_ppid.
452 (inf_ttrace_attach): Ditto.
453 (inf_ttrace_detach): Ditto.
454 (inf_ttrace_kill): Use current_inferior instead of
455 inf_ttrace_vfork_ppid.
456 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
457 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
458 inferior away from the parent.
459 * infrun.c (follow_fork): Call follow_fork_inferior instead of
460 target_follow_fork.
461 (follow_fork_inferior): New function.
462 (follow_inferior_reset_breakpoints): Make function static.
463 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
464 * linux-nat.c (linux_child_follow_fork): Move target-independent
465 code to infrun.c:follow_fork_inferior.
466
467 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
468
469 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
470 * gdbarch.c: Regenerate.
471 * gdbarch.h: Likewise.
472 * corelow.c (sniff_core_bfd): Drop presence check for deleted
473 gdbarch method 'regset_from_core_section'.
474 (get_core_register_section): Remove handling for the case that
475 regset == NULL and regset_from_core_section is defined.
476 (get_core_registers): Drop check for deleted method.
477 * procfs.c (procfs_do_thread_registers): Adjust comment.
478
479 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
480
481 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
482 (linux_nat_make_corefile_notes): Remove.
483 (linux_target_install_ops): Do not set target method
484 'make_corefile_notes'.
485 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
486 Remove field.
487 (linux_corefile_thread_callback): Instead of args->collect, call
488 linux_collect_thread_registers.
489 (linux_make_corefile_notes): Remove 'collect' parameter. Return
490 NULL unless there is a regset iterator.
491 (linux_make_corefile_notes_1): Remove.
492 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
493 by linux_make_corefile_notes.
494 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
495
496 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
497
498 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
499 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
500 Remove.
501 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
502
503 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
504
505 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
506 (xtensa_iterate_over_regset_sections): New.
507 (xtensa_gdbarch_init): Adjust gdbarch initialization.
508
509 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
510
511 * vax-tdep.c (vax_regset_from_core_section): Remove.
512 (vax_iterate_over_regset_sections): New.
513 (vax_gdbarch_init): Adjust gdbarch initialization.
514
515 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
516
517 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
518 (tilegx_regset_from_core_section): Remove.
519 (tilegx_iterate_over_regset_sections): New.
520 (tilegx_linux_init_abi): Adjust gdbarch initialization.
521
522 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
523
524 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
525 (sparc_iterate_over_regset_sections): New.
526 (sparc32_gdbarch_init): Adjust gdbarch initialization.
527 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
528 targets.
529 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
530 (sparc64fbsd_init_abi): Call fbsd_init_abi.
531 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
532 target method 'make_corefile_notes'.
533
534 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
535
536 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
537 'sizeof_gregset' and 'sizeof_fpregset'.
538 * sh-tdep.c (sh_regset_from_core_section): Remove.
539 (sh_iterate_over_regset_sections): New.
540 (sh_gdbarch_init): Adjust gdbarch initialization.
541 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
542 sizeof_fpregset.
543 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
544 'sizeof_gregset'.
545
546 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
547
548 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
549 (score7_linux_iterate_over_regset_sections): New.
550 (score_gdbarch_init): Adjust gdbarch initialization.
551
552 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
553
554 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
555 FreeBSD targets.
556 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
557 method 'make_corefile_notes'.
558 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
559 (ppcfbsd_regset_from_core_section): Remove.
560 (ppcfbsd_iterate_over_regset_sections): New.
561 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
562 initialization.
563 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
564 (ppcnbsd_iterate_over_regset_sections): New.
565 (ppcnbsd_init_abi): Adjust.
566 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
567 (ppcobsd_iterate_over_regset_sections): New.
568 (ppcobsd_init_abi): Adjust.
569 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
570 (rs6000_aix_iterate_over_regset_sections): New.
571 (rs6000_aix_init_osabi): Adjust.
572
573 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
574
575 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
576 (nios2_regset_from_core_section): Remove.
577 (nios2_iterate_over_regset_sections): New.
578 (nios2_linux_init_abi): Adjust gdbarch initialization.
579
580 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
581
582 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
583 (am33_iterate_over_regset_sections): New.
584 (am33_linux_init_osabi): Adjust gdbarch initialization.
585
586 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
587
588 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
589 (mips_linux_iterate_over_regset_sections): New.
590 (mips_linux_init_abi): Adjust gdbarch initialization.
591 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
592 (mips64obsd_iterate_over_regset_sections): New.
593 (mips64obsd_init_abi): Adjust.
594 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
595 (mipsnbsd_iterate_over_regset_sections): New.
596 (mipsnbsd_init_abi): Adjust.
597
598 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
599
600 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
601 (m88k_iterate_over_regset_sections): New.
602 (m88k_gdbarch_init): Adjust gdbarch initialization.
603
604 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
605
606 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
607 (ia64_linux_iterate_over_regset_sections): New.
608 (ia64_linux_init_abi): Adjust gdbarch initialization.
609
610 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
611
612 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
613 (m68kbsd_iterate_over_regset_sections): New.
614 (m68kbsd_init_abi): Adjust gdbarch initialization.
615 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
616 (m68k_linux_iterate_over_regset_sections): New.
617 (m68k_linux_init_abi): Adjust gdbarch initialization.
618
619 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
620
621 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
622 (m32r_linux_regset_from_core_section): Remove.
623 (m32r_linux_iterate_over_regset_sections): New.
624 (m32r_linux_init_abi): Adjust gdbarch initialization.
625
626 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
627
628 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
629 (amd64obsd_iterate_over_regset_sections): New.
630 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
631 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
632 Remove.
633 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
634 regset_from_core_section initialization.
635 * i386-tdep.c (i386_regset_from_core_section): Remove.
636 (i386_iterate_over_regset_sections): New.
637 (i386_gdbarch_init): Adjust gdbarch initialization.
638 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
639 (i386_iterate_over_regset_sections): New prototype.
640 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
641 Remove.
642 (i386obsd_aout_iterate_over_regset_sections): New.
643 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
644 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
645 targets.
646 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
647 (amd64fbsd_init_abi): Call fbsd_init_abi.
648 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
649 (i386fbsd4_init_abi): Call fbsd_init_abi.
650 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
651 target method 'make_corefile_notes'.
652 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
653
654 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
655
656 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
657 (hppa_hpux_iterate_over_regset_sections): New.
658 (hppa_hpux_init_abi): Adjust gdbarch initialization.
659 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
660 (hppa_linux_iterate_over_regset_sections): New.
661 (hppa_linux_init_abi): Adjust.
662 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
663 (hppanbsd_iterate_over_regset_sections): New.
664 (hppanbsd_init_abi): Adjust.
665 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
666 (hppaobsd_iterate_over_regset_sections): New.
667 (hppaobsd_init_abi): Adjust.
668
669 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
670
671 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
672 (frv_linux_iterate_over_regset_sections): New.
673 (frv_linux_init_abi): Adjust gdbarch initialization.
674
675 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
676
677 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
678 (armbsd_iterate_over_regset_sections): New prototype.
679 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
680 (armbsd_iterate_over_regset_sections): New.
681 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
682 initialization.
683
684 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
685
686 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
687 (alpha_linux_iterate_over_regset_sections): New.
688 (alpha_linux_init_abi): Adjust gdbarch initialization.
689 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
690 prototype.
691 (alphanbsd_iterate_over_regset_sections): New prototype.
692
693 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
694
695 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
696 Remove.
697 (aarch64_linux_iterate_over_regset_sections): New.
698 (aarch64_linux_init_abi): Adjust gdbarch initialization.
699
700 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
701
702 * fbsd-tdep.c: New file.
703 * fbsd-tdep.h: New file.
704 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
705 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
706 (ALLDEPFILES): Add fbsd-tdep.c.
707
708 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
709
710 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
711 parameter.
712 * gdbarch.h: Regenerate.
713 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
714 iterator.
715 (get_core_register_section): Add parameter 'regset' and use it, if
716 set. Add parameter 'min_size' and verify the bfd section size
717 against it.
718 (get_core_registers_cb): Add parameter 'regset' and pass it to
719 get_core_register section. For the "standard" register sections
720 ".reg" and ".reg2", set an appropriate default for human_name.
721 (get_core_registers): Don't abort when the gdbarch has an iterator
722 but no regset_from_core_section. Add NULL/0 for parameters
723 'regset'/'min_size' in calls to get_core_register_section.
724 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
725 'regset' and use it instead of calling the
726 regset_from_core_section gdbarch method.
727 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
728 * i386-tdep.c (i386_supply_xstateregset)
729 (i386_collect_xstateregset, i386_xstateregset): Moved to
730 i386-linux-tdep.c.
731 (i386_regset_from_core_section): Drop handling for .reg-xfp and
732 .reg-xstate.
733 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
734 core file support only if the regset iterator hasn't been set.
735 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
736 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
737 Moved from i386-tdep.c and renamed to *_linux*.
738 (i386_linux_iterate_over_regset_sections): Add regset parameter to
739 each callback invocation. Allow any .reg-xstate size when reading
740 from a core file.
741 * amd64-tdep.c (amd64_supply_xstateregset)
742 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
743 amd64-linux-tdep.c.
744 (amd64_regset_from_core_section): Remove.
745 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
746 install an amd64-specific regset_from_core_section gdbarch method.
747 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
748 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
749 Moved from amd64-tdep.c and renamed to *_linux*.
750 (amd64_linux_iterate_over_regset_sections): Add regset parameter
751 to each callback invocation. Allow any .reg-xstate size when
752 reading from a core file.
753 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
754 (arm_linux_iterate_over_regset_sections): Add regset parameter to
755 each callback invocation.
756 (arm_linux_init_abi): No longer set the regset_from_core_section
757 gdbarch method.
758 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
759 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
760 each callback invocation.
761 (ppc_linux_init_abi): No longer set the regset_from_core_section
762 gdbarch method.
763 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
764 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
765 (s390_regset_from_core_section): Remove.
766 (s390_iterate_over_regset_sections): Add regset parameter to each
767 callback invocation.
768 (s390_gdbarch_init): No longer set the regset_from_core_section
769 gdbarch method. Drop initialization of deleted tdep fields.
770
771 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
772
773 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
774 (amd64_linux_iterate_over_regset_sections): New.
775 (amd64_linux_init_abi_common): Don't install the regset section
776 list, but the new iterator in gdbarch.
777 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
778 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
779 (arm_linux_iterate_over_regset_sections): ...here. New function.
780 (arm_linux_init_abi): Set iterator instead of section list.
781 * corelow.c (get_core_registers_cb): New function, logic moved
782 from...
783 (get_core_registers): ...loop body here. Use new iterator method
784 instead of walking through the regset section list.
785 * gdbarch.sh: Remove 'core_regset_sections'. New method
786 'iterate_over_regset_sections'. New typedef
787 'iterate_over_regset_sections_cb'.
788 * gdbarch.c: Regenerate.
789 * gdbarch.h: Likewise.
790 * i386-linux-tdep.c (i386_linux_regset_sections)
791 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
792 Remove.
793 (i386_linux_iterate_over_regset_sections): New.
794 (i386_linux_init_abi): Don't choose a regset section list, but
795 install new iterator in gdbarch.
796 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
797 (linux_collect_regset_section_cb): New function, logic moved
798 from...
799 (linux_collect_thread_registers): ...loop body here. Use iterator
800 method instead of walking through list.
801 (linux_make_corefile_notes_1): Check for presence of iterator
802 method instead of regset section list.
803 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
804 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
805 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
806 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
807 (ppc_linux_iterate_over_regset_sections): ...here. New function.
808 (ppc_linux_init_abi): Don't choose from above regset section
809 lists, but install new iterator in gdbarch.
810 * regset.h (struct core_regset_section): Remove.
811 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
812 have_linux_v1, have_linux_v2, and have_tdb.
813 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
814 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
815 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
816 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
817 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
818 (s390_iterate_over_regset_sections): ...here. New function. Use
819 new tdep fields.
820 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
821 regset section lists, but install new iterator.
822
823 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
824
825 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
826
827 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
828
829 * progspace.c (print_program_space): Don't prune program spaces
830 before printing them.
831
832 2014-09-25 Pedro Alves <palves@redhat.com>
833
834 * infrun.c (user_visible_resume_ptid): Don't check
835 singlestep_breakpoints_inserted_p.
836
837 2014-09-25 Pedro Alves <palves@redhat.com>
838
839 * breakpoint.c (should_be_inserted): Add debug output.
840
841 2014-09-25 Pedro Alves <palves@redhat.com>
842
843 * infrun.c (stepping_past_instruction_at)
844 (clear_exit_convenience_vars): Point at infrun.h instead of
845 inferior.h.
846 (handle_signal_stop): Fix typo.
847
848 2014-09-24 Yao Qi <yao@codesourcery.com>
849
850 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
851 bitmask.
852
853 2014-09-22 Gary Benson <gbenson@redhat.com>
854
855 * target.c (target_stop): Updated comment.
856
857 2014-09-22 Gary Benson <gbenson@redhat.com>
858
859 * target/target.h (target_stop_ptid): Renamed as...
860 (target_stop_and_wait): New function. Updated comment.
861 All uses updated.
862 (target_continue_ptid): Renamed as...
863 (target_continue_no_signal): New function. Updated comment.
864 All uses updated.
865
866 2014-09-22 Pedro Alves <palves@redhat.com>
867
868 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
869 and "auto" merged.
870 * breakpoint.c (enum ugll_insert_mode): New enum.
871 (always_inserted_mode): Now a plain boolean.
872 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
873 (breakpoints_always_inserted_mode): Delete.
874 (breakpoints_should_be_inserted_now): New function.
875 (insert_breakpoints): Pass UGLL_INSERT to
876 update_global_location_list instead of calling
877 insert_breakpoint_locations manually.
878 (create_solib_event_breakpoint_1): New, factored out from ...
879 (create_solib_event_breakpoint): ... this.
880 (create_and_insert_solib_event_breakpoint): Use
881 create_solib_event_breakpoint_1 instead of calling
882 insert_breakpoint_locations manually.
883 (update_global_location_list): Change parameter type from boolean
884 to enum ugll_insert_mode. All callers adjusted. Adjust to use
885 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
886 (update_global_location_list_nothrow): Change parameter type from
887 boolean to enum ugll_insert_mode.
888 (_initialize_breakpoint): "breakpoint always-inserted" option is
889 now a boolean command. Update help text.
890 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
891 (breakpoints_should_be_inserted_now): New declaration.
892 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
893 Remove breakpoints_always_inserted_mode check.
894 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
895 * remote.c (remote_start_remote): Likewise.
896
897 2014-09-22 Pedro Alves <palves@redhat.com>
898
899 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
900 (insert_breakpoints): Don't call insert_breakpoint_locations here.
901 Instead, pass UGLL_INSERT to update_global_location_list.
902 (update_global_location_list): Change parameter type from boolean
903 to enum ugll_insert_mode. All callers adjusted. Adjust to use
904 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
905 (create_solib_event_breakpoint_1): New, factored out from ...
906 (create_solib_event_breakpoint): ... this.
907 (create_and_insert_solib_event_breakpoint): Use
908 create_solib_event_breakpoint_1 instead of calling
909 insert_breakpoint_locations manually.
910 (update_global_location_list): Handle UGLL_INSERT.
911
912 2014-09-22 Pedro Alves <palves@redhat.com>
913
914 * breakpoint.c (enum ugll_insert_mode): New enum.
915 (update_global_location_list)
916 (update_global_location_list_nothrow): Change parameter type from
917 boolean to enum ugll_insert_mode. All callers adjusted.
918
919 2014-09-19 Joel Brobecker <brobecker@adacore.com>
920
921 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
922 SystemTap support in GDB.
923
924 2014-09-19 Don Breazeal <donb@codesourcery.com>
925
926 * linux-nat.c (linux_handle_extended_wait): Call
927 linux_ptrace_get_extended_event.
928 (wait_lwp): Call linux_is_extended_waitstatus.
929 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
930 and linux_is_extended_waitstatus.
931 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
932 linux_ptrace_get_extended_event.
933 (linux_ptrace_get_extended_event): New function.
934 (linux_is_extended_waitstatus): New function.
935 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
936 (linux_is_extended_waitstatus): New declarations.
937
938 2014-09-19 Yao Qi <yao@codesourcery.com>
939
940 * dwarf2read.c (dwarf_decode_lines): Update declaration.
941 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
942 comments. Callers update.
943 (dwarf_decode_lines): Likewise.
944 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
945 comments. Skip the line table if 'lowpc' is greater than
946 'address'. Don't check
947 dwarf2_per_objfile->has_section_at_zero.
948
949 2014-09-18 Doug Evans <dje@google.com>
950
951 * NEWS: Mention new "producer" attribute of gdb.Symtab.
952 * python/py-symtab.c (stpy_get_producer): New function.
953 (symtab_object_getset): Add "producer" attribute.
954
955 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
956
957 PR gdb/17384
958 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
959 (do_captured_read_memory_integer): Remove.
960 (safe_read_memory_integer): Use target_read_memory directly instead
961 of catching errors in do_captured_read_memory_integer.
962
963 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
964
965 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
966 not gdb/doc.
967
968 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
969
970 * objc-lang.c (find_implementation_from_class): Remove dead code.
971
972 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
973
974 PR cli/7233
975 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
976 "fprintf_unfiltered (gdb_stdlog...)".
977
978 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
979
980 PR breakpoints/12526
981 * breakpoint.h (struct watchpoint): New fields val_bitpos and
982 val_bitsize.
983 * breakpoint.c (watch_command_1): Use these fields to retain
984 bitfield information.
985 (extract_bitfield_from_watchpoint_value): New function.
986 (watchpoint_check): Use it.
987 (update_watchpoint): Use it. Optimize the address and length of a
988 HW watchpoint pointing to a bitfield.
989 * value.h (unpack_value_bitfield): New prototype.
990 * value.c (unpack_value_bitfield): Make extern.
991
992 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
993
994 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
995 x86-dregs.o.
996 * gnu-nat.c (inf_threads): New function.
997 * gnu-nat.h (inf_threads_ftype): New typedef.
998 (inf_threads): New declaration.
999 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1000 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1001 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1002 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1003 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1004 (i386_gnu_dr_get_control): New functions.
1005 (reg_addr): New structure.
1006 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1007 i386 debugging register hooks.
1008 * NEWS: Mention this.
1009
1010 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1011
1012 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1013 vector data transfer instructions.
1014 (arm_record_coproc_data_proc): Updated.
1015
1016 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1017
1018 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1019 arm_record_exreg_ld_st_insn.
1020 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1021 load/store insns.
1022
1023 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1024
1025 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1026 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1027 processing instructions.
1028
1029 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1030
1031 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1032 for advance SIMD struct ld/st insn.
1033 (thumb2_record_decode_insn_handler): Replace stub handler with
1034 thumb2_record_asimd_struct_ld_st.
1035
1036 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1037
1038 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1039 for asimd, vfp and coprocessor insns.
1040 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1041 and coprocessor insns.
1042 (thumb2_record_coproc_insn): New function.
1043 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1044 handlers.
1045 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1046 opcode 110 insns.
1047
1048 2014-09-13 Doug Evans <xdje42@gmail.com>
1049
1050 * NEWS: Mention new "queue-signal" command.
1051 * infcmd.c (queue_signal_command): New function.
1052 (_initialize_infcmd): Add new queue-signal command.
1053
1054 2014-09-13 Doug Evans <xdje42@gmail.com>
1055
1056 * linux-nat.c (wait_lwp): Add debugging printf.
1057 (linux_nat_wait_1): Ditto.
1058
1059 2014-09-12 Pedro Alves <palves@redhat.com>
1060
1061 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1062 (create_and_insert_solib_event_breakpoint): New functions.
1063 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1064 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1065 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1066 (remove_dbx_link_breakpoint): Delete function.
1067 (insert_dbx_link_bpt_in_file): Use
1068 create_and_insert_solib_event_breakpoint instead of
1069 deprecated_insert_raw_breakpoint.
1070 (procfs_wait): Don't check whether we hit __dbx_link here.
1071 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1072 here.
1073 * solib-irix.c (base_breakpoint): Delete global.
1074 (disable_break): Delete function.
1075 (enable_break): Use create_solib_event_breakpoint
1076 instead of deprecated_insert_raw_breakpoint.
1077 (irix_solib_handle_event): New function.
1078 (irix_solib_create_inferior_hook): Don't run the target or disable
1079 the mapping-complete breakpoint here.
1080 (_initialize_irix_solib): Install irix_solib_handle_event as
1081 so_ops->handle_event hook.
1082
1083 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1084 Ulrich Weigand  <uweigand@de.ibm.com>
1085
1086 PR tdep/17379
1087 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1088 instead of read_memory_unsigned_integer.
1089
1090 2014-09-12 Gary Benson <gbenson@redhat.com>
1091
1092 * nat/linux-waitpid.c: Include common-defs.h.
1093 [GDBSERVER]: Add FIXME comment.
1094 [!GDBSERVER]: Don't include defs.h or signal.h.
1095 (linux_debug) [!GDBSERVER]: Remove empty block.
1096
1097 2014-09-12 Gary Benson <gbenson@redhat.com>
1098
1099 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1100 Don't include defs.h or server.h.
1101
1102 2014-09-12 Gary Benson <gbenson@redhat.com>
1103
1104 * nat/linux-btrace.c: Include common-defs.h.
1105 Don't include defs.h, server.h or gdbthread.h.
1106 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1107
1108 2014-09-12 Gary Benson <gbenson@redhat.com>
1109
1110 * common/agent.c: Include common-defs.h.
1111 Don't include defs.h or server.h.
1112 * common/buffer.c: Likewise.
1113 * common/common-debug.c: Likewise.
1114 * common/common-utils.c: Likewise.
1115 * common/errors.c: Likewise.
1116 * common/filestuff.c: Likewise.
1117 * common/format.c: Likewise.
1118 * common/gdb_vecs.c: Likewise.
1119 * common/print-utils.c: Likewise.
1120 * common/ptid.c: Likewise.
1121 * common/rsp-low.c: Likewise.
1122 * common/signals.c: Likewise.
1123 * common/vec.c: Likewise.
1124 * common/xml-utils.c: Likewise.
1125 * nat/linux-osdata.c: Likewise.
1126 * nat/linux-procfs.c: Likewise.
1127 * nat/linux-ptrace.c: Likewise.
1128 * nat/mips-linux-watch.c: Likewise.
1129 * target/waitstatus.c: Likewise.
1130
1131 2014-09-12 Tom Tromey <tromey@redhat.com>
1132 Gary Benson <gbenson@redhat.com>
1133
1134 * common/common-regcache.h: New file.
1135 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1136 * regcache.h: Include common-regcache.h.
1137 (regcache_read_pc): Don't declare.
1138 * regcache.c (get_thread_regcache_for_ptid): New function.
1139 * nat/linux-btrace.c: Don't include regcache.h.
1140 Include common-regcache.h.
1141 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1142
1143 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1144
1145 * regcache.h (struct regset): Declare.
1146
1147 2014-09-11 Pedro Alves <palves@redhat.com>
1148
1149 PR gdb/17347
1150 * main.c: Include "infrun.h".
1151 (catch_command_errors, catch_command_errors_const): Wait for the
1152 foreground command to complete.
1153 * top.c (maybe_wait_sync_command_done): New function, factored out
1154 from ...
1155 (maybe_wait_sync_command_done): ... here.
1156 * top.h (maybe_wait_sync_command_done): New declaration.
1157
1158 2014-09-11 Tom Tromey <tromey@redhat.com>
1159 Gary Benson <gbenson@redhat.com>
1160
1161 * common/symbol.h: New file.
1162 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1163 * minsyms.c (find_minimal_symbol_address): New function.
1164 * common/agent.c: Include common/symbol.h.
1165 [!GDBSERVER]: Don't include objfiles.h.
1166 (agent_look_up_symbols): Use find_minimal_symbol_address.
1167
1168 2014-09-11 Gary Benson <gbenson@redhat.com>
1169
1170 * target/target.h (target_stop_ptid, target_continue_ptid):
1171 Declare.
1172 * target.c (target_stop_ptid, target_continue_ptid): New
1173 functions.
1174 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1175 (agent_run_command): Always use target_stop_ptid and
1176 target_continue_ptid.
1177
1178 2014-09-11 Tom Tromey <tromey@redhat.com>
1179 Gary Benson <gbenson@redhat.com>
1180
1181 * target/target.h: New file.
1182 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1183 * target.h: Include target/target.h.
1184 (target_read_memory, target_write_memory): Don't declare.
1185 * target.c (target_read_uint32): New function.
1186 * common/agent.c: Include target/target.h.
1187 [!GDBSERVER]: Don't include target.h.
1188 (helper_thread_id): Type changed to uint32_t.
1189 (agent_get_helper_thread_id): Use target_read_uint32.
1190 (agent_run_command): Always use target_read_memory and
1191 target_write_memory.
1192 (agent_capability): Type changed to uint32_t.
1193 (agent_capability_check): Use target_read_uint32.
1194
1195 2014-09-11 Gary Benson <gbenson@redhat.com>
1196
1197 * common/common-debug.h (show_debug_regs): Declare.
1198 * common/common-debug.c (show_debug_regs): Define.
1199 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1200 all uses with show_debug_regs. Replace all uses that considered
1201 debug_hw_points as a multi-value integer with straight boolean
1202 uses.
1203 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1204 with show_debug_regs.
1205 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1206 all uses with show_debug_regs.
1207 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1208 uses with show_debug_regs.
1209
1210 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1211
1212 * findvar.c (address_from_register): Handle targets requiring
1213 a special conversion routine even for plain pointer types.
1214
1215 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1216
1217 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1218 (store_register): Do not call exec_one_dummy_insn.
1219
1220 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1221
1222 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1223 dereference it first. Use value_enclosing_type instead of
1224 value_type.
1225 (ada_array_length): Likewise.
1226
1227 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1228
1229 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1230 Adjust function implementation and documentation accordingly.
1231 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1232 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1233 Update call to ada_value_ptr_subscript.
1234
1235 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1236
1237 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1238 instead of VAL's type.
1239
1240 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1241
1242 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1243
1244 2014-09-09 Doug Evans <xdje42@gmail.com>
1245
1246 PR guile/17367
1247 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1248 last parameter to pkg-config, not first.
1249 * configure.ac: Pass --with-guile provided pkg-config path to
1250 GDB_GUILE_PROGRAM_NAMES.
1251 * configure: Regenerate.
1252
1253 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1254
1255 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1256 Bertazi".
1257
1258 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1259
1260 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1261 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1262 the list of sections determining GDB_OSABI_IRIX.
1263
1264 2014-09-09 James Hogan <james.hogan@imgtec.com>
1265
1266 * MAINTAINERS (Write After Approval): Add "James Hogan".
1267
1268 2014-09-09 James Hogan <james.hogan@imgtec.com>
1269
1270 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1271
1272 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1273
1274 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1275
1276 2014-09-08 Doug Evans <xdje42@gmail.com>
1277
1278 PR 17247
1279 * guile.c: #include <signal.h>.
1280 (_initialize_guile): Block SIGCHLD while initializing Guile.
1281
1282 Replaces the following, which is reverted.
1283
1284 2014-07-26 Doug Evans <xdje42@gmail.com>
1285
1286 PR 17185
1287 * configure.ac: Add check for header gc/gc.h.
1288 Add check for function setenv.
1289 * configure: Regenerate.
1290 * config.in: Regenerate.
1291 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1292
1293 2014-09-08 Doug Evans <xdje42@gmail.com>
1294
1295 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1296 with named constant. Fix style of pointer comparison.
1297 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1298
1299 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1300
1301 PR gdb/17035
1302 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1303 decide whether we display the command on "show user".
1304 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1305 printing command name.
1306 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1307 * cli/cli-decode.c (cli_user_command_p): Create helper function
1308 to verify whether cmd_list_element is a user-defined command.
1309
1310 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1311
1312 PR python/17355
1313 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1314 Fix goto out of TRY_CATCH.
1315
1316 2014-09-06 Doug Evans <xdje42@gmail.com>
1317 Tom Tromey <tromey@redhat.com>
1318
1319 PR 15276
1320 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1321 $_any_caller_matches.
1322 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1323 * python/lib/gdb/function/caller_is.py: New file.
1324
1325 2014-09-06 Doug Evans <xdje42@gmail.com>
1326
1327 * infcmd.c (program_info): Fix typo.
1328
1329 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1330
1331 PR gdb/17235
1332 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1333 'number'. New variable 'has_digit'. Rewrite code to deal with
1334 subexpressions on SDT probes.
1335
1336 2014-09-04 Pedro Alves <palves@redhat.com>
1337
1338 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1339 the input is only one character long.
1340
1341 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1342
1343 PR fortran/17237
1344 * f-valprint.c (f_val_print): Specify the correct print option to
1345 use when printing integer values.
1346
1347 2014-09-04 Gary Benson <gbenson@redhat.com>
1348
1349 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1350 Remove code to cope with LWPs wrapped as PIDs.
1351 Add assertions to ensure no wrapped LWPs are passed.
1352
1353 2014-09-04 Pedro Alves <palves@redhat.com>
1354
1355 * value.c (value_ranges_copy_adjusted): New function, factored out
1356 from ...
1357 (value_contents_copy_raw): ... here.
1358 (unpack_value_bits_as_long_1): Rename back to ...
1359 (unpack_bits_as_long): ... this. Remove 'original_value' and
1360 'result' parameters. Change return type to LONGEST.
1361 (unpack_value_bits_as_long): Delete.
1362 (unpack_value_field_as_long_1): Delete.
1363 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1364 (unpack_value_bitfield): New function.
1365 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1366 (value_fetch_lazy): Use unpack_value_bitfield.
1367 * value.h (unpack_value_bits_as_long): Delete declaration.
1368
1369 2014-09-03 Sasha Smundak <asmundak@google.com>
1370
1371 * python/py-frame.c (frapy_read_register): New function.
1372
1373 2014-09-03 James Hogan <james.hogan@imgtec.com>
1374
1375 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1376 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1377
1378 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1379
1380 PR python/16699
1381 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1382 function.
1383 (add_cmd): Set "completer_handle_brkchars" to NULL.
1384 * cli/cli-decode.h (struct cmd_list_element)
1385 <completer_handle_brkchars>: New field.
1386 * command.h (completer_ftype_void): New typedef.
1387 (set_cmd_completer_handle_brkchars): New prototype.
1388 * completer.c (set_gdb_completion_word_break_characters): New
1389 function.
1390 (complete_line_internal): Call "completer_handle_brkchars"
1391 callback from command.
1392 * completer.h: Include "command.h".
1393 (set_gdb_completion_word_break_characters): New prototype.
1394 * python/py-cmd.c (cmdpy_completer_helper): New function.
1395 (cmdpy_completer_handle_brkchars): New function.
1396 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1397 (cmdpy_init): Set completer_handle_brkchars to
1398 cmdpy_completer_handle_brkchars.
1399
1400 2014-09-03 Gary Benson <gbenson@redhat.com>
1401
1402 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1403 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1404 Loop conditions changed to equivalent form.
1405 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1406 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1407 ALL_DEBUG_ADDRESS_REGISTERS.
1408
1409 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1410
1411 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1412 description fix.
1413
1414 2014-09-02 Doug Evans <dje@google.com>
1415
1416 * typeprint.c (find_global_typedef): Fix comment.
1417
1418 2014-09-02 Gary Benson <gbenson@redhat.com>
1419
1420 * i386-nat.h: Renamed as...
1421 * x86-nat.h: New file. All type, function and variable name
1422 prefixes changed from "i386_" to "x86_". All references updated.
1423 * i386-nat.c: Renamed as...
1424 * x86-nat.c: New file. All type, function and variable name
1425 prefixes changed from "i386_" to "x86_". All references updated.
1426 * common/i386-xstate.h: Renamed as...
1427 * common/x86-xstate.h: New file. All type, function and variable
1428 name prefixes changed from "i386_" to "x86_". All references
1429 updated.
1430 * nat/i386-cpuid.h: Renamed as...
1431 * nat/x86-cpuid.h: New file. All type, function and variable name
1432 prefixes changed from "i386_" to "x86_". All references updated.
1433 * nat/i386-gcc-cpuid.h: Renamed as...
1434 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1435 name prefixes changed from "i386_" to "x86_". All references
1436 updated.
1437 * nat/i386-dregs.h: Renamed as...
1438 * nat/x86-dregs.h: New file. All type, function and variable name
1439 prefixes changed from "i386_" to "x86_". All references updated.
1440 * nat/i386-dregs.c: Renamed as...
1441 * nat/x86-dregs.c: New file. All type, function and variable name
1442 prefixes changed from "i386_" to "x86_". All references updated.
1443
1444 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1445
1446 * varobj.c (_initialize_varobj): Move to the end of file.
1447
1448 2014-08-29 Gary Benson <gbenson@redhat.com>
1449
1450 * common/common-exceptions.h: New file.
1451 * common/common-exceptions.c: Likewise.
1452 * Makefile.in (SFILES): Add common/common-exceptions.c.
1453 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1454 (COMMON_OBS): Add common-exceptions.o.
1455 (common-exceptions.o): New rule.
1456 * exceptions.h (common-exceptions.h): Include.
1457 (gdb_setjmp.h): Do not include.
1458 (return_reason): Moved to common-exceptions.h.
1459 (enum return_reason): Likewise.
1460 (RETURN_MASK): Likewise.
1461 (typedef return_mask): Likewise.
1462 (enum errors): Likewise.
1463 (struct gdb_exception): Likewise.
1464 (exceptions_state_mc_init): Likewise.
1465 (exceptions_state_mc_action_iter): Likewise.
1466 (exceptions_state_mc_action_iter_1): Likewise.
1467 (TRY_CATCH): Likewise.
1468 (throw_exception): Likewise.
1469 (throw_verror): Likewise.
1470 (throw_vquit): Likewise.
1471 (throw_error): Likewise.
1472 (throw_quit): Likewise.
1473 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1474 (enum catcher_action): Likewise.
1475 (struct catcher): Likewise.
1476 (current_catcher): Likewise.
1477 (catcher_list_size): Likewise.
1478 (exceptions_state_mc_init): Likewise.
1479 (catcher_pop): Likewise.
1480 (exceptions_state_mc): Likewise.
1481 (exceptions_state_mc_action_iter): Likewise.
1482 (exceptions_state_mc_action_iter_1): Likewise.
1483 (throw_exception): Likewise.
1484 (exception_messages): Likewise.
1485 (exception_messages_size): Likewise.
1486 (throw_it): Likewise.
1487 (throw_verror): Likewise.
1488 (throw_vquit): Likewise.
1489 (throw_error): Likewise.
1490 (throw_quit): Likewise.
1491 (prepare_to_throw_exception): New function.
1492
1493 2014-08-29 Gary Benson <gbenson@redhat.com>
1494
1495 * common/gdb_setjmp.h: New file.
1496 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1497 * configure.ac: Move sigsetjmp check...
1498 * common/common.m4: ...here.
1499 * configure: Regenerate.
1500 * cp-support.c (SIGJMP_BUF): Delete.
1501 (SIGSETJMP): Likewise.
1502 (SIGLONGJMP): Likewise.
1503 * exceptions.h (gdb_setjmp.h): Include.
1504 (setjmp.h): Do not include.
1505 (EXCEPTIONS_SIGJMP_BUF): Delete.
1506 (EXCEPTIONS_SIGSETJMP): Likewise.
1507 (EXCEPTIONS_SIGLONGJMP): Likewise.
1508 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1509 from gdb_setjmp.h.
1510 * exceptions.c: Likewise.
1511
1512 2014-08-29 Gary Benson <gbenson@redhat.com>
1513
1514 * cleanups.h: Moved to...
1515 * common/cleanups.h: New file.
1516 * cleanups.c: Moved to...
1517 * common/cleanups.c: New file. Include common-defs.h and
1518 cleanups.h. Do not include defs.h.
1519 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1520 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1521 (cleanups.o): New rule.
1522
1523 2014-08-29 Gary Benson <gbenson@redhat.com>
1524
1525 * common/errors.h (internal_warning): New declaration.
1526 (internal_vwarning): Likewise.
1527 * common/errors.c (internal_warning): New function.
1528 * utils.h (internal_warning): Don't declare.
1529 (internal_vwarning): Likewise.
1530 * utils.c (internal_warning): Removed.
1531
1532 2014-08-29 Gary Benson <gbenson@redhat.com>
1533
1534 * main.c (captured_main): Use warning during startup.
1535 Prefix startup warning messages with command name.
1536
1537 2014-08-29 Gary Benson <gbenson@redhat.com>
1538
1539 * main.c (captured_main): Handle usage errors with error.
1540
1541 2014-08-29 Gary Benson <gbenson@redhat.com>
1542
1543 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1544 exit pair with a call to error. Wrap the message with _().
1545
1546 2014-08-29 Gary Benson <gbenson@redhat.com>
1547
1548 * main.c (captured_main): Replace a fprintf/exit
1549 pair with a call to error. Wrap the message with _().
1550
1551 2014-08-29 Gary Benson <gbenson@redhat.com>
1552
1553 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1554 pairs with calls to error. Wrap the message with _().
1555
1556 2014-08-29 Gary Benson <gbenson@redhat.com>
1557
1558 * utils.c (vwarning): Protect calls to target_terminal_ours
1559 and wrap_here.
1560
1561 2014-08-29 Gary Benson <gbenson@redhat.com>
1562
1563 * exceptions.c (print_flush): Protect calls to
1564 target_terminal_ours and wrap_here.
1565
1566 2014-08-29 Gary Benson <gbenson@redhat.com>
1567
1568 * utils.h (filtered_printing_initialized): New declaration.
1569 * utils.c (abort_with_message): New function.
1570 (internal_vproblem): Use abort_with_message for first level
1571 recursive internal problems, and if gdb_stderr is not set up.
1572 Protect calls to target_terminal_ours, begin_line and query.
1573
1574 2014-08-28 Doug Evans <dje@google.com>
1575
1576 * symtab.c (in_prologue): Move definition to better spot.
1577 (skip_prologue_using_sal): Ditto.
1578
1579 2014-08-28 Doug Evans <dje@google.com>
1580
1581 * symtab.c (find_function_start_sal): Move definition to better spot.
1582
1583 2014-08-28 Yao Qi <yao@codesourcery.com>
1584
1585 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1586 found_stack_adjust in forward scan. Remove condition check
1587 on found_stack_adjust which is always true. Indent the code.
1588
1589 2014-08-28 Yao Qi <yao@codesourcery.com>
1590
1591 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1592 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1593 (dwarf_decode_lines): Remove argument
1594 want_line_info. Remove condition check on want_line_info.
1595 Callers update.
1596
1597 2014-08-27 Doug Evans <dje@google.com>
1598
1599 * dwarf2read.c (dwarf_record_line): Fix typo.
1600
1601 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1602
1603 * target.h (struct target_ops::to_terminal_save_ours): Remove
1604 declaration.
1605 (target_terminal_save_ours): Remove macro.
1606 * target-delegates.c: Regenerate.
1607 * inf-child.c (inf_child_target): Don't set the nonexistent
1608 field to_terminal_save_ours.
1609 * inferior.h (child_terminal_save_ours): Remove declaration.
1610 * terminal.h (gdb_save_tty_state): New declaration.
1611 * inflow.c (child_terminal_save_ours): Rename to ...
1612 (gdb_save_tty_state): ... this.
1613 * tui/tui.c: Include terminal.h.
1614 (tui_enable): Use gdb_save_tty_state instead of
1615 target_terminal_save_ours.
1616 (tui_disable): Likewise.
1617
1618 2014-08-25 Doug Evans <dje@google.com>
1619
1620 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1621 Pass NULL instead of 0 for context pointer.
1622
1623 2014-08-25 Yao Qi <yao@codesourcery.com>
1624
1625 * dwarf2read.c: Fix grammatical error.
1626
1627 2014-08-24 Yao Qi <yao@codesourcery.com>
1628
1629 * dwarf2read.c (scan_partial_symbols): Update comments.
1630 Rename argument 'need_pc' with 'set_addrmap'.
1631 (add_partial_namespace): Rename argument 'need_pc' with
1632 'set_addrmap'.
1633 (add_partial_module): Likewise.
1634 (add_partial_subprogram): Likewise. Update comments.
1635 (dwarf2_name): Fix typo.
1636
1637 2014-08-22 Doug Evans <dje@google.com>
1638
1639 PR 17276
1640 * dwarf2read.c (dwarf_record_line_p): New function.
1641 (dwarf_decode_lines_1): Ignore subsequent line number entries
1642 for the same line if any entry had a non-zero discriminator.
1643
1644 2014-08-22 Doug Evans <dje@google.com>
1645
1646 * buildsym.h (record_line_ftype): New typedef.
1647 (record_line): Use it.
1648 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1649 (dwarf_decode_lines_1): Call them.
1650
1651 2014-08-22 Yao Qi <yao@codesourcery.com>
1652
1653 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1654 (ctf_end): Remove code.
1655
1656 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1657
1658 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1659 (linux_make_corefile_notes): call update_thread_list, protected against
1660 exceptions.
1661
1662 2014-08-21 Pedro Alves <palves@redhat.com>
1663
1664 * infcmd.c (attach_command): Remove comment.
1665
1666 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1667
1668 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1669 unsigned LONGEST to ULONGEST.
1670
1671 2014-08-20 Pedro Alves <palves@redhat.com>
1672
1673 * Makefile.in (check-read1): New rule.
1674
1675 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1676
1677 * value.c (value_from_contents_and_address): Strip resolved_type's
1678 typedef layers before checking its TYPE_DATA_LOCATION.
1679
1680 2014-08-20 Pedro Alves <palves@redhat.com>
1681
1682 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1683
1684 2014-08-20 Yao Qi <yao@codesourcery.com>
1685
1686 * amd64-tdep.c (amd64_classify): Add a blank line after the
1687 example. Move "*/" to a new line.
1688 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1689 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1690 * dwarf2read.c (psymtab_include_file_name): Likewise.
1691
1692 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1693 Pedro Alves <palves@redhat.com>
1694
1695 PR symtab/14604
1696 PR symtab/14605
1697 * ada-lang.c (coerce_unspec_val_to_type): Use
1698 value_contents_copy_raw.
1699 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1700 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1701 * cp-valprint.c (cp_print_value_fields): Let the common printing
1702 code handle optimized out values.
1703 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1704 * d-valprint.c (dynamic_array_type): Use
1705 value_bits_any_optimized_out.
1706 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1707 check_any_valid fields.
1708 (check_pieced_value_bits): Delete and inline ...
1709 (check_pieced_synthetic_pointer): ... here.
1710 (check_pieced_value_validity): Delete.
1711 (check_pieced_value_invalid): Delete.
1712 (pieced_value_funcs): Remove check_validity and check_any_valid
1713 fields.
1714 (read_pieced_value): Use mark_value_bits_optimized_out.
1715 (write_pieced_value): Switch to use
1716 mark_value_bytes_optimized_out.
1717 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1718 of assuming the whole value is optimized out.
1719 * findvar.c (read_frame_register_value): Remove special handling
1720 of optimized out registers.
1721 (value_from_register): Use mark_value_bytes_optimized_out.
1722 * frame-unwind.c (frame_unwind_got_optimized): Use
1723 mark_value_bytes_optimized_out.
1724 * jv-valprint.c (java_value_print): Adjust.
1725 (java_print_value_fields): Let the common printing code handle
1726 optimized out values.
1727 * mips-tdep.c (mips_print_register): Remove special handling of
1728 optimized out registers.
1729 * opencl-lang.c (lval_func_check_validity): Delete.
1730 (lval_func_check_any_valid): Delete.
1731 (opencl_value_funcs): Remove check_validity and check_any_valid
1732 fields.
1733 * p-valprint.c (pascal_object_print_value_fields): Let the common
1734 printing code handle optimized out values.
1735 * stack.c (read_frame_arg): Remove special handling of optimized
1736 out values. Fetch both VAL and ENTRYVAL before comparing
1737 contents. Adjust to value_available_contents_eq rename.
1738 * valprint.c (valprint_check_validity)
1739 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1740 (val_print_array_elements): Adjust.
1741 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1742 (value_bits_any_optimized_out): New function.
1743 (value_entirely_covered_by_range_vector): New function, factored
1744 out from value_entirely_unavailable.
1745 (value_entirely_unavailable): Reimplement.
1746 (value_entirely_optimized_out): New function.
1747 (insert_into_bit_range_vector): New function, factored out from
1748 mark_value_bits_unavailable.
1749 (mark_value_bits_unavailable): Reimplement.
1750 (struct ranges_and_idx): New struct.
1751 (find_first_range_overlap_and_match): New function, factored out
1752 from value_available_contents_bits_eq.
1753 (value_available_contents_bits_eq): Rename to ...
1754 (value_contents_bits_eq): ... this. Check both unavailable
1755 contents and optimized out contents.
1756 (value_available_contents_eq): Rename to ...
1757 (value_contents_eq): ... this.
1758 (allocate_value_lazy): Remove reference to the old optimized_out
1759 boolean.
1760 (allocate_optimized_out_value): Use
1761 mark_value_bytes_optimized_out.
1762 (require_not_optimized_out): Adjust to check whether the
1763 optimized_out vec is empty.
1764 (ranges_copy_adjusted): New function, factored out from
1765 value_contents_copy_raw.
1766 (value_contents_copy_raw): Also copy the optimized out ranges.
1767 Assert the destination ranges aren't optimized out.
1768 (value_contents_copy): Update comment, remove call to
1769 require_not_optimized_out.
1770 (value_contents_equal): Adjust to check whether the optimized_out
1771 vec is empty.
1772 (set_value_optimized_out, value_optimized_out_const): Delete.
1773 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1774 New functions.
1775 (value_entirely_optimized_out, value_bits_valid): Delete.
1776 (value_copy): Take a VEC copy of the 'optimized_out' field.
1777 (value_primitive_field): Remove special handling of optimized out.
1778 (value_fetch_lazy): Assert that lazy values have no unavailable
1779 regions. Use value_bits_any_optimized_out. Remove some special
1780 handling for optimized out values.
1781 * value.h: Add intro comment about <optimized out> and
1782 <unavailable>.
1783 (struct lval_funcs): Remove check_validity and check_any_valid
1784 fields.
1785 (set_value_optimized_out, value_optimized_out_const): Remove.
1786 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1787 New declarations.
1788 (value_bits_any_optimized_out): New declaration.
1789 (value_bits_valid): Delete declaration.
1790 (value_available_contents_eq): Rename to ...
1791 (value_contents_eq): ... this, and extend comments.
1792
1793 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1794
1795 Fix -fsanitize=address on unreadable inferior strings.
1796 * valprint.c (val_print_string): Fix access before BUFFER.
1797
1798 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1799
1800 * target.c (target_struct_size): Remove.
1801 (target_struct_allocsize): Remove.
1802 (DEFAULT_ALLOCSIZE): Remove.
1803 (target_ops_p): New typedef.
1804 (DEF_VEC_P (target_ops_p)): New vector type.
1805 (target_structs): Change type to VEC (target_ops_p).
1806 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1807 (find_default_run_target): Rewrite for loop following changes to
1808 target_structs.
1809
1810 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1811
1812 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1813 Adjust code accordingly. Adjust function description comment.
1814
1815 2014-08-19 Yao Qi <yao@codesourcery.com>
1816
1817 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1818 types.
1819
1820 2014-08-19 Alan Modra <amodra@gmail.com>
1821
1822 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1823 * config.in: Regenerate.
1824 * configure: Regenerate.
1825
1826 2014-08-19 Tom Tromey <tromey@redhat.com>
1827 Gary Benson <gbenson@redhat.com>
1828
1829 * common/common-debug.h: New file.
1830 * common/common-debug.c: Likewise.
1831 * debug.c: Likewise.
1832 * Makefile.in (SFILES): Add common/common-debug.c.
1833 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1834 (COMMON_OBS): Add common-debug.o and debug.o.
1835 (common-debug.o): New rule.
1836 * common/common-defs.h: Include common-debug.h.
1837 * common/agent.c (debug_agent_printf): New function.
1838 (DEBUG_AGENT): Redefine.
1839 * nat/i386-dregs.c (debug_printf): Undefine.
1840
1841 2014-08-19 Gary Benson <gbenson@redhat.com>
1842
1843 * common/common-defs.h: Include print-utils.h.
1844 * utils.h: Do not include print-utils.h.
1845
1846 2014-08-19 Tom Tromey <tromey@redhat.com>
1847 Gary Benson <gbenson@redhat.com>
1848
1849 * common/common-types.h: New file.
1850 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1851 * common/common-defs.h: Include common-types.h.
1852 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1853 (ULONGEST): Remove.
1854
1855 2014-08-19 Tom Tromey <tromey@redhat.com>
1856 Gary Benson <gbenson@redhat.com>
1857
1858 * common/errors.h: New file.
1859 * common/errors.c: Likewise.
1860 * Makefile.in (SFILES): Add common/errors.c.
1861 (HFILES_NO_SRCDIR): Add common/errors.h.
1862 (COMMON_OBS): Add errors.o.
1863 (errors.o): New rule.
1864 * common/common-defs.h: Include errors.h.
1865 * utils.h (perror_with_name, error, verror, warning, vwarning):
1866 Don't declare.
1867 * common/common-utils.h: (malloc_failure, internal_error):
1868 Likewise.
1869
1870 2014-08-19 Gary Benson <gbenson@redhat.com>
1871
1872 * utils.c (internal_vproblem): Always print the message.
1873
1874 2014-08-18 Doug Evans <dje@google.com>
1875
1876 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1877
1878 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1879
1880 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1881 Return 0 if TYPE is dynamic.
1882 (print_range): Add handling of dynamic ranges.
1883
1884 2014-08-18 Keven Boell <keven.boell@intel.com>
1885 Joel Brobecker <brobecker@adacore.com>
1886
1887 * gdbtypes.h (struct main_type): Add field "data_location".
1888 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1889 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1890 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1891 a dynamic data location.
1892 (resolve_dynamic_type): Add DW_AT_data_location handling.
1893 (copy_recursive, copy_type): Copy the data_location information
1894 when present.
1895 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1896 * value.c (value_from_contents_and_address): Add
1897 DW_AT_data_location handling.
1898
1899 2014-08-18 Keven Boell <keven.boell@intel.com>
1900 Joel Brobecker <brobecker@adacore.com>
1901
1902 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1903 field "get_object_address".
1904 * dwarf2expr.c (execute_stack_op): Add handling for
1905 DW_OP_push_object_address.
1906 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1907 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1908 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1909 (dwarf_expr_get_obj_addr): New function.
1910 (dwarf_expr_ctx_funcs): Add get_object_address field.
1911 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1912 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1913 (dwarf2_evaluate_property): Add parameter "address". Use it.
1914 (needs_get_obj_addr): New function.
1915 (needs_frame_ctx_funcs): Add get_object_address field.
1916 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1917 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1918 (resolve_dynamic_array): Likewise.
1919
1920 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1921
1922 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1923 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1924 fixed value for records and unions for which some GNAT encodings
1925 are present.
1926
1927 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1928
1929 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1930 rewrite to avoid "else if" and "else" constructs. Should be
1931 a no-op in practice.
1932
1933 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1934
1935 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1936 of lexical block.
1937
1938 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1939
1940 PR c++/17132
1941 * eval.c: Update all calls to find_overload_match.
1942 * valarith.c: Likewise.
1943 (value_user_defined_cpp_op, value_user_defined_op): New
1944 argument NOSIDE. Update all callers.
1945 * valops.c (find_overload_match): New argument NOSIDE.
1946 * value.h (find_overload_match): Update signature.
1947
1948 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1949
1950 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1951 'items' methods instead of 'iteritems' method on dictionaries.
1952
1953 2014-08-15 Doug Evans <dje@google.com>
1954
1955 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1956 closer to use.
1957
1958 2014-08-15 Doug Evans <dje@google.com>
1959
1960 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1961
1962 2014-08-15 Doug Evans <dje@google.com>
1963
1964 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1965
1966 2014-08-15 Doug Evans <dje@google.com>
1967
1968 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1969 unused.
1970
1971 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1972
1973 * dcache.h: Include target.h, to avoid compile time warnings.
1974
1975 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1976
1977 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1978 frame_info" partial declaration.
1979 * gdbarch.h: Regenerate.
1980
1981 2014-08-15 Yao Qi <yao@codesourcery.com>
1982
1983 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1984 Add parameter 'decode_for_pst_p'. Callers update.
1985
1986 2014-08-13 Yao Qi <yao@codesourcery.com>
1987
1988 PR build/17104
1989 * configure.ac: Use local variable 'pos'.
1990 * configure: Regenerated.
1991
1992 2014-08-11 Doug Evans <dje@google.com>
1993
1994 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1995 message, it is redundant with "Reading symbols from ..." message.
1996
1997 2014-08-10 Doug Evans <xdje42@gmail.com>
1998
1999 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2000
2001 2014-08-09 Yao Qi <yao@codesourcery.com>
2002
2003 PR remote/9053
2004 * remote.c (remote_xfer_partial): Remove dead code.
2005
2006 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2007
2008 * ia64-linux-tdep.c: Include "regset.h".
2009 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2010 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2011 (ia64_linux_supply_fpregset): New function.
2012 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2013 (ia64_linux_regset_from_core_section): New function.
2014 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2015 method.
2016
2017 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2018
2019 * m68klinux-tdep.c: Include "regset.h".
2020 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2021 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2022 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2023 (m68k_linux_regset_from_core_section): New function.
2024 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2025 method.
2026
2027 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2028
2029 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2030 function. Move logic to...
2031 (tilegx_linux_regmap): ... this new register map.
2032 (tilegx_linux_regset): Refer to register map, replace supply
2033 method by regcache_supply_regset, and add collect method.
2034 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2035 TILEGX_FIRST_EASY_REGNUM.
2036
2037 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2038
2039 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2040 that calls regcache_supply_regset and handles the EPC register
2041 separately. Move main logic to...
2042 (score7_linux_gregmap): ... this new register map.
2043 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2044 (score7_linux_gregset): Refer to register map. Add collect method.
2045 (score7_linux_regset_from_core_section): Replace
2046 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2047 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2048 (struct regset): Delete unused forward declaraction.
2049 (struct pt_regs): Delete structure definition.
2050 (elf_gregset_t): Delete typedef.
2051
2052 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2053
2054 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2055 (nios2_core_regset): Add collect method.
2056
2057 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2058
2059 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2060 platform-independent and don't write to read-only input buffer.
2061 (m32r_linux_collect_gregset): New function.
2062 (m32r_linux_gregset): Add collect method.
2063
2064 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2065
2066 * hppa-linux-tdep.c (greg_map): Rename to...
2067 (hppa_linux_gregmap): ... this. Also convert to
2068 regcache_map_entry format.
2069 (hppa_linux_supply_regset): Delete function.
2070 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2071 (hppa_linux_fpregmap): ... this new register map.
2072 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2073 register map, replace supply method by regcache_supply_regset, and
2074 add collect method regcache_collect_regset.
2075
2076 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2077
2078 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2079 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2080 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2081 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2082 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2083 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2084 (frv_linux_supply_gregset): Replace main logic by call to
2085 regcache_supply_regset, but keep clearing gr32-gr63.
2086 (frv_linux_supply_fpregset): Delete function.
2087 (frv_linux_gregset): Refer to appropriate register map and add
2088 regcache_collect_regset as the collect method.
2089 (frv_linux_fpregset): Likewise. Also exchange the supply method
2090 by regcache_supply_regset.
2091
2092 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2093
2094 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2095 by call to alpha_supply_int_regs.
2096 (alpha_linux_collect_gregset): New function.
2097 (alpha_linux_supply_fpregset): Replace logic by call to
2098 alpha_supply_fp_regs.
2099 (alpha_linux_collect_fpregset): New function.
2100 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2101
2102 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2103
2104 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2105 by call to regcache_collect_regset.
2106 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2107 instead of aarch64_linux_supply_gregset/_fpregset.
2108 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2109 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2110 header file instead.
2111 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2112 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2113 functions. Move logic to ...
2114 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2115 register maps.
2116 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2117 refer to new register maps, replace *_regset_from_core by
2118 regcache_supply_regset, and also use regcache_collect_regset.
2119 * aarch64-linux-tdep.h: Include "regset.h".
2120 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2121 Delete prototypes.
2122 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2123 macros, moved from C source file.
2124 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2125 variable declarations.
2126
2127 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2128
2129 * s390-linux-nat.c: Include "regset.h".
2130 (regmap_gregset): Delete macro.
2131 (s390_64_regmap_gregset): New register map for
2132 regcache_supply/_collect_regset.
2133 (s390_64_gregset): New regset.
2134 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2135 (regmap_fpregset): Delete macro.
2136 (s390_native_supply, s390_native_collect): Delete functions.
2137 (supply_gregset, fill_gregset): Replace s390-specific regmap
2138 handling by a call to regcache_supply/_collect_regset.
2139 (supply_fpregset, fill_fpregset): Call regcache_supply/
2140 _collect_regset instead of s390_native_supply/_collect.
2141 (fetch_regset, store_regset): Likewise. Also change the last
2142 parameter to a regset instead of a regmap.
2143 (s390_linux_fetch_inferior_registers)
2144 (390_linux_store_inferior_registers): Adjust last parameter in
2145 calls to fetch_regset and store_regset.
2146 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2147 (s390_gregmap): ... this. Also make static const and convert to
2148 regcache_map_entry format.
2149 (s390x_regmap_gregset): Delete.
2150 (s390_regmap_fpregset): Rename to...
2151 (s390_fpregmap): ... this. Make static const and convert to
2152 regcache_map_entry format.
2153 (s390_regmap_upper, s390_regmap_last_break)
2154 (s390x_regmap_last_break, s390_regmap_system_call)
2155 (s390_regmap_tdb): Likewise.
2156 (s390_supply_regset, s390_collect_regset): Remove functions.
2157 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2158 s390_supply_regset.
2159 (s390_gregset, s390_fpregset, s390_upper_regset)
2160 (s390_last_break_regset, s390x_last_break_regset)
2161 (s390_system_call_regset, s390_tdb_regset): Make global and
2162 replace s390_supply/_collect_regset by regcache_supply/
2163 _collect_regset.
2164 (s390x_gregset): Delete.
2165 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2166 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2167 (s390_regmap_fpregset, s390_regmap_last_break)
2168 (s390x_regmap_last_break, s390_regmap_system_call)
2169 (s390_regmap_tdb): Delete global variable declarations.
2170 (s390_gregset, s390_fpregset, s390_last_break_regset)
2171 (s390x_last_break_regset, s390_system_call_regset)
2172 (s390_tdb_regset): New global variable declarations.
2173
2174 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2175
2176 * regcache.c: Include "regset.h".
2177 (regcache_transfer_regset): New local function.
2178 (regcache_supply_regset, regcache_collect_regset): New functions.
2179 * regcache.h (struct regcache_map_entry): New structure.
2180 (REGCACHE_MAP_SKIP): New enum value.
2181 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2182
2183 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2184
2185 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2186 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2187 (ppc_linux_collect_gregset ): Likewise.
2188 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2189 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2190 (ppc_collect_vrregset): Likewise.
2191 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2192 Likewise.
2193
2194 2014-08-07 Yao Qi <yao@codesourcery.com>
2195
2196 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2197 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2198 * remote.c (remote_read_bytes): Likewise.
2199
2200 2014-08-07 Yao Qi <yao@codesourcery.com>
2201
2202 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2203
2204 2014-08-07 Yao Qi <yao@codesourcery.com>
2205
2206 PR remote/17230
2207 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2208 TARGET_XFER_OK instead of 0.
2209
2210 2014-08-07 Gary Benson <gbenson@redhat.com>
2211
2212 * common/common-defs.h: Include errno.h.
2213 * defs.h: Do not include errno.h.
2214 * ada-typeprint.c: Likewise.
2215 * c-typeprint.c: Likewise.
2216 * core-regset.c: Likewise.
2217 * corefile.c: Likewise.
2218 * corelow.c: Likewise.
2219 * event-loop.c: Likewise.
2220 * f-typeprint.c: Likewise.
2221 * gnu-nat.c: Likewise.
2222 * go32-nat.c: Likewise.
2223 * i386gnu-nat.c: Likewise.
2224 * m2-typeprint.c: Likewise.
2225 * nat/linux-btrace.c: Likewise.
2226 * p-typeprint.c: Likewise.
2227 * procfs.c: Likewise.
2228 * remote-sim.c: Likewise.
2229 * rs6000-nat.c: Likewise.
2230 * target.c: Likewise.
2231 * typeprint.c: Likewise.
2232 * ui-file.c: Likewise.
2233 * valops.c: Likewise.
2234 * valprint.c: Likewise.
2235
2236 2014-08-07 Gary Benson <gbenson@redhat.com>
2237
2238 * common/common-defs.h: Include string.h.
2239 * aarch64-tdep.c: Do not include string.h.
2240 * ada-exp.y: Likewise.
2241 * ada-lang.c: Likewise.
2242 * ada-lex.l: Likewise.
2243 * ada-typeprint.c: Likewise.
2244 * ada-valprint.c: Likewise.
2245 * aix-thread.c: Likewise.
2246 * alpha-linux-tdep.c: Likewise.
2247 * alpha-mdebug-tdep.c: Likewise.
2248 * alpha-nat.c: Likewise.
2249 * alpha-osf1-tdep.c: Likewise.
2250 * alpha-tdep.c: Likewise.
2251 * alphanbsd-tdep.c: Likewise.
2252 * amd64-dicos-tdep.c: Likewise.
2253 * amd64-linux-tdep.c: Likewise.
2254 * amd64-nat.c: Likewise.
2255 * amd64-sol2-tdep.c: Likewise.
2256 * amd64fbsd-tdep.c: Likewise.
2257 * amd64obsd-tdep.c: Likewise.
2258 * arch-utils.c: Likewise.
2259 * arm-linux-nat.c: Likewise.
2260 * arm-linux-tdep.c: Likewise.
2261 * arm-tdep.c: Likewise.
2262 * arm-wince-tdep.c: Likewise.
2263 * armbsd-tdep.c: Likewise.
2264 * armnbsd-nat.c: Likewise.
2265 * armnbsd-tdep.c: Likewise.
2266 * armobsd-tdep.c: Likewise.
2267 * avr-tdep.c: Likewise.
2268 * ax-gdb.c: Likewise.
2269 * ax-general.c: Likewise.
2270 * bcache.c: Likewise.
2271 * bfin-tdep.c: Likewise.
2272 * breakpoint.c: Likewise.
2273 * build-id.c: Likewise.
2274 * buildsym.c: Likewise.
2275 * c-exp.y: Likewise.
2276 * c-lang.c: Likewise.
2277 * c-typeprint.c: Likewise.
2278 * c-valprint.c: Likewise.
2279 * charset.c: Likewise.
2280 * cli-out.c: Likewise.
2281 * cli/cli-cmds.c: Likewise.
2282 * cli/cli-decode.c: Likewise.
2283 * cli/cli-dump.c: Likewise.
2284 * cli/cli-interp.c: Likewise.
2285 * cli/cli-logging.c: Likewise.
2286 * cli/cli-script.c: Likewise.
2287 * cli/cli-setshow.c: Likewise.
2288 * cli/cli-utils.c: Likewise.
2289 * coffread.c: Likewise.
2290 * common/agent.c: Likewise.
2291 * common/buffer.c: Likewise.
2292 * common/buffer.h: Likewise.
2293 * common/common-utils.c: Likewise.
2294 * common/filestuff.c: Likewise.
2295 * common/filestuff.c: Likewise.
2296 * common/format.c: Likewise.
2297 * common/print-utils.c: Likewise.
2298 * common/rsp-low.c: Likewise.
2299 * common/signals.c: Likewise.
2300 * common/vec.h: Likewise.
2301 * common/xml-utils.c: Likewise.
2302 * core-regset.c: Likewise.
2303 * corefile.c: Likewise.
2304 * corelow.c: Likewise.
2305 * cp-abi.c: Likewise.
2306 * cp-name-parser.y: Likewise.
2307 * cp-support.c: Likewise.
2308 * cp-valprint.c: Likewise.
2309 * cris-tdep.c: Likewise.
2310 * d-exp.y: Likewise.
2311 * darwin-nat.c: Likewise.
2312 * dbxread.c: Likewise.
2313 * dcache.c: Likewise.
2314 * demangle.c: Likewise.
2315 * dicos-tdep.c: Likewise.
2316 * disasm.c: Likewise.
2317 * doublest.c: Likewise.
2318 * dsrec.c: Likewise.
2319 * dummy-frame.c: Likewise.
2320 * dwarf2-frame.c: Likewise.
2321 * dwarf2loc.c: Likewise.
2322 * dwarf2read.c: Likewise.
2323 * elfread.c: Likewise.
2324 * environ.c: Likewise.
2325 * eval.c: Likewise.
2326 * event-loop.c: Likewise.
2327 * exceptions.c: Likewise.
2328 * exec.c: Likewise.
2329 * expprint.c: Likewise.
2330 * f-exp.y: Likewise.
2331 * f-lang.c: Likewise.
2332 * f-typeprint.c: Likewise.
2333 * f-valprint.c: Likewise.
2334 * fbsd-nat.c: Likewise.
2335 * findcmd.c: Likewise.
2336 * findvar.c: Likewise.
2337 * fork-child.c: Likewise.
2338 * frame.c: Likewise.
2339 * frv-linux-tdep.c: Likewise.
2340 * frv-tdep.c: Likewise.
2341 * gdb.c: Likewise.
2342 * gdb_bfd.c: Likewise.
2343 * gdbarch.c: Likewise.
2344 * gdbarch.sh: Likewise.
2345 * gdbtypes.c: Likewise.
2346 * gnu-nat.c: Likewise.
2347 * gnu-v2-abi.c: Likewise.
2348 * gnu-v3-abi.c: Likewise.
2349 * go-exp.y: Likewise.
2350 * go-lang.c: Likewise.
2351 * go32-nat.c: Likewise.
2352 * guile/guile.c: Likewise.
2353 * guile/scm-auto-load.c: Likewise.
2354 * hppa-hpux-tdep.c: Likewise.
2355 * hppa-linux-nat.c: Likewise.
2356 * hppanbsd-tdep.c: Likewise.
2357 * hppaobsd-tdep.c: Likewise.
2358 * i386-cygwin-tdep.c: Likewise.
2359 * i386-dicos-tdep.c: Likewise.
2360 * i386-linux-tdep.c: Likewise.
2361 * i386-nto-tdep.c: Likewise.
2362 * i386-sol2-tdep.c: Likewise.
2363 * i386-tdep.c: Likewise.
2364 * i386bsd-tdep.c: Likewise.
2365 * i386gnu-nat.c: Likewise.
2366 * i386nbsd-tdep.c: Likewise.
2367 * i386obsd-tdep.c: Likewise.
2368 * i387-tdep.c: Likewise.
2369 * ia64-libunwind-tdep.c: Likewise.
2370 * ia64-linux-nat.c: Likewise.
2371 * inf-child.c: Likewise.
2372 * inf-ptrace.c: Likewise.
2373 * inf-ttrace.c: Likewise.
2374 * infcall.c: Likewise.
2375 * infcmd.c: Likewise.
2376 * inflow.c: Likewise.
2377 * infrun.c: Likewise.
2378 * interps.c: Likewise.
2379 * iq2000-tdep.c: Likewise.
2380 * irix5-nat.c: Likewise.
2381 * jv-exp.y: Likewise.
2382 * jv-lang.c: Likewise.
2383 * jv-typeprint.c: Likewise.
2384 * jv-valprint.c: Likewise.
2385 * language.c: Likewise.
2386 * linux-fork.c: Likewise.
2387 * linux-nat.c: Likewise.
2388 * lm32-tdep.c: Likewise.
2389 * m2-exp.y: Likewise.
2390 * m2-typeprint.c: Likewise.
2391 * m32c-tdep.c: Likewise.
2392 * m32r-linux-nat.c: Likewise.
2393 * m32r-linux-tdep.c: Likewise.
2394 * m32r-rom.c: Likewise.
2395 * m32r-tdep.c: Likewise.
2396 * m68hc11-tdep.c: Likewise.
2397 * m68k-tdep.c: Likewise.
2398 * m68kbsd-tdep.c: Likewise.
2399 * m68klinux-nat.c: Likewise.
2400 * m68klinux-tdep.c: Likewise.
2401 * m88k-tdep.c: Likewise.
2402 * machoread.c: Likewise.
2403 * macrocmd.c: Likewise.
2404 * main.c: Likewise.
2405 * mdebugread.c: Likewise.
2406 * mem-break.c: Likewise.
2407 * memattr.c: Likewise.
2408 * memory-map.c: Likewise.
2409 * mep-tdep.c: Likewise.
2410 * mi/mi-cmd-break.c: Likewise.
2411 * mi/mi-cmd-disas.c: Likewise.
2412 * mi/mi-cmd-env.c: Likewise.
2413 * mi/mi-cmd-stack.c: Likewise.
2414 * mi/mi-cmd-var.c: Likewise.
2415 * mi/mi-cmds.c: Likewise.
2416 * mi/mi-console.c: Likewise.
2417 * mi/mi-getopt.c: Likewise.
2418 * mi/mi-interp.c: Likewise.
2419 * mi/mi-main.c: Likewise.
2420 * mi/mi-parse.c: Likewise.
2421 * microblaze-rom.c: Likewise.
2422 * microblaze-tdep.c: Likewise.
2423 * mingw-hdep.c: Likewise.
2424 * minidebug.c: Likewise.
2425 * minsyms.c: Likewise.
2426 * mips-irix-tdep.c: Likewise.
2427 * mips-linux-tdep.c: Likewise.
2428 * mips-tdep.c: Likewise.
2429 * mips64obsd-tdep.c: Likewise.
2430 * mipsnbsd-tdep.c: Likewise.
2431 * mipsread.c: Likewise.
2432 * mn10300-linux-tdep.c: Likewise.
2433 * mn10300-tdep.c: Likewise.
2434 * monitor.c: Likewise.
2435 * moxie-tdep.c: Likewise.
2436 * mt-tdep.c: Likewise.
2437 * nat/linux-btrace.c: Likewise.
2438 * nat/linux-osdata.c: Likewise.
2439 * nat/linux-procfs.c: Likewise.
2440 * nat/linux-ptrace.c: Likewise.
2441 * nat/linux-waitpid.c: Likewise.
2442 * nbsd-tdep.c: Likewise.
2443 * nios2-linux-tdep.c: Likewise.
2444 * nto-procfs.c: Likewise.
2445 * nto-tdep.c: Likewise.
2446 * objc-lang.c: Likewise.
2447 * objfiles.c: Likewise.
2448 * opencl-lang.c: Likewise.
2449 * osabi.c: Likewise.
2450 * osdata.c: Likewise.
2451 * p-exp.y: Likewise.
2452 * p-lang.c: Likewise.
2453 * p-typeprint.c: Likewise.
2454 * parse.c: Likewise.
2455 * posix-hdep.c: Likewise.
2456 * ppc-linux-nat.c: Likewise.
2457 * ppc-sysv-tdep.c: Likewise.
2458 * ppcfbsd-tdep.c: Likewise.
2459 * ppcnbsd-tdep.c: Likewise.
2460 * ppcobsd-tdep.c: Likewise.
2461 * printcmd.c: Likewise.
2462 * procfs.c: Likewise.
2463 * prologue-value.c: Likewise.
2464 * python/py-auto-load.c: Likewise.
2465 * python/py-gdb-readline.c: Likewise.
2466 * ravenscar-thread.c: Likewise.
2467 * regcache.c: Likewise.
2468 * registry.c: Likewise.
2469 * remote-fileio.c: Likewise.
2470 * remote-m32r-sdi.c: Likewise.
2471 * remote-mips.c: Likewise.
2472 * remote-notif.c: Likewise.
2473 * remote-sim.c: Likewise.
2474 * remote.c: Likewise.
2475 * reverse.c: Likewise.
2476 * rs6000-aix-tdep.c: Likewise.
2477 * ser-base.c: Likewise.
2478 * ser-go32.c: Likewise.
2479 * ser-mingw.c: Likewise.
2480 * ser-pipe.c: Likewise.
2481 * ser-tcp.c: Likewise.
2482 * ser-unix.c: Likewise.
2483 * serial.c: Likewise.
2484 * sh-tdep.c: Likewise.
2485 * sh64-tdep.c: Likewise.
2486 * shnbsd-tdep.c: Likewise.
2487 * skip.c: Likewise.
2488 * sol-thread.c: Likewise.
2489 * solib-dsbt.c: Likewise.
2490 * solib-frv.c: Likewise.
2491 * solib-osf.c: Likewise.
2492 * solib-som.c: Likewise.
2493 * solib-spu.c: Likewise.
2494 * solib-target.c: Likewise.
2495 * solib.c: Likewise.
2496 * somread.c: Likewise.
2497 * source.c: Likewise.
2498 * sparc-nat.c: Likewise.
2499 * sparc-sol2-tdep.c: Likewise.
2500 * sparc-tdep.c: Likewise.
2501 * sparc64-tdep.c: Likewise.
2502 * sparc64fbsd-tdep.c: Likewise.
2503 * sparc64nbsd-tdep.c: Likewise.
2504 * sparcnbsd-tdep.c: Likewise.
2505 * spu-linux-nat.c: Likewise.
2506 * spu-multiarch.c: Likewise.
2507 * spu-tdep.c: Likewise.
2508 * stabsread.c: Likewise.
2509 * stack.c: Likewise.
2510 * std-regs.c: Likewise.
2511 * symfile.c: Likewise.
2512 * symmisc.c: Likewise.
2513 * symtab.c: Likewise.
2514 * target.c: Likewise.
2515 * thread.c: Likewise.
2516 * tilegx-linux-nat.c: Likewise.
2517 * tilegx-tdep.c: Likewise.
2518 * top.c: Likewise.
2519 * tracepoint.c: Likewise.
2520 * tui/tui-command.c: Likewise.
2521 * tui/tui-data.c: Likewise.
2522 * tui/tui-disasm.c: Likewise.
2523 * tui/tui-file.c: Likewise.
2524 * tui/tui-layout.c: Likewise.
2525 * tui/tui-out.c: Likewise.
2526 * tui/tui-regs.c: Likewise.
2527 * tui/tui-source.c: Likewise.
2528 * tui/tui-stack.c: Likewise.
2529 * tui/tui-win.c: Likewise.
2530 * tui/tui-windata.c: Likewise.
2531 * tui/tui-winsource.c: Likewise.
2532 * typeprint.c: Likewise.
2533 * ui-file.c: Likewise.
2534 * ui-out.c: Likewise.
2535 * user-regs.c: Likewise.
2536 * utils.c: Likewise.
2537 * v850-tdep.c: Likewise.
2538 * valarith.c: Likewise.
2539 * valops.c: Likewise.
2540 * valprint.c: Likewise.
2541 * value.c: Likewise.
2542 * varobj.c: Likewise.
2543 * vax-tdep.c: Likewise.
2544 * vaxnbsd-tdep.c: Likewise.
2545 * vaxobsd-tdep.c: Likewise.
2546 * windows-nat.c: Likewise.
2547 * xcoffread.c: Likewise.
2548 * xml-support.c: Likewise.
2549 * xstormy16-tdep.c: Likewise.
2550 * xtensa-linux-nat.c: Likewise.
2551
2552 2014-08-07 Gary Benson <gbenson@redhat.com>
2553
2554 * common/common-defs.h: Include gdb_assert.h.
2555 * aarch64-tdep.c: Do not include gdb_assert.h.
2556 * addrmap.c: Likewise.
2557 * aix-thread.c: Likewise.
2558 * alpha-linux-tdep.c: Likewise.
2559 * alpha-mdebug-tdep.c: Likewise.
2560 * alphanbsd-tdep.c: Likewise.
2561 * amd64-nat.c: Likewise.
2562 * amd64-tdep.c: Likewise.
2563 * amd64bsd-nat.c: Likewise.
2564 * amd64fbsd-nat.c: Likewise.
2565 * amd64fbsd-tdep.c: Likewise.
2566 * amd64nbsd-nat.c: Likewise.
2567 * amd64nbsd-tdep.c: Likewise.
2568 * amd64obsd-nat.c: Likewise.
2569 * amd64obsd-tdep.c: Likewise.
2570 * arch-utils.c: Likewise.
2571 * arm-tdep.c: Likewise.
2572 * armbsd-tdep.c: Likewise.
2573 * auxv.c: Likewise.
2574 * bcache.c: Likewise.
2575 * bfin-tdep.c: Likewise.
2576 * blockframe.c: Likewise.
2577 * breakpoint.c: Likewise.
2578 * bsd-kvm.c: Likewise.
2579 * bsd-uthread.c: Likewise.
2580 * buildsym.c: Likewise.
2581 * c-exp.y: Likewise.
2582 * c-lang.c: Likewise.
2583 * charset.c: Likewise.
2584 * cleanups.c: Likewise.
2585 * cli-out.c: Likewise.
2586 * cli/cli-decode.c: Likewise.
2587 * cli/cli-dump.c: Likewise.
2588 * cli/cli-logging.c: Likewise.
2589 * cli/cli-script.c: Likewise.
2590 * cli/cli-utils.c: Likewise.
2591 * coffread.c: Likewise.
2592 * common/common-utils.c: Likewise.
2593 * common/queue.h: Likewise.
2594 * common/signals.c: Likewise.
2595 * common/vec.h: Likewise.
2596 * complaints.c: Likewise.
2597 * completer.c: Likewise.
2598 * corelow.c: Likewise.
2599 * cp-abi.c: Likewise.
2600 * cp-name-parser.y: Likewise.
2601 * cp-namespace.c: Likewise.
2602 * cp-support.c: Likewise.
2603 * cris-tdep.c: Likewise.
2604 * dbxread.c: Likewise.
2605 * dictionary.c: Likewise.
2606 * doublest.c: Likewise.
2607 * dsrec.c: Likewise.
2608 * dummy-frame.c: Likewise.
2609 * dwarf2-frame-tailcall.c: Likewise.
2610 * dwarf2-frame.c: Likewise.
2611 * dwarf2expr.c: Likewise.
2612 * dwarf2loc.c: Likewise.
2613 * dwarf2read.c: Likewise.
2614 * eval.c: Likewise.
2615 * event-loop.c: Likewise.
2616 * exceptions.c: Likewise.
2617 * expprint.c: Likewise.
2618 * f-valprint.c: Likewise.
2619 * fbsd-nat.c: Likewise.
2620 * findvar.c: Likewise.
2621 * frame-unwind.c: Likewise.
2622 * frame.c: Likewise.
2623 * frv-tdep.c: Likewise.
2624 * gcore.c: Likewise.
2625 * gdb-dlfcn.c: Likewise.
2626 * gdb_bfd.c: Likewise.
2627 * gdbarch.c: Likewise.
2628 * gdbarch.sh: Likewise.
2629 * gdbtypes.c: Likewise.
2630 * gnu-nat.c: Likewise.
2631 * gnu-v3-abi.c: Likewise.
2632 * go-lang.c: Likewise.
2633 * guile/scm-exception.c: Likewise.
2634 * guile/scm-gsmob.c: Likewise.
2635 * guile/scm-lazy-string.c: Likewise.
2636 * guile/scm-math.c: Likewise.
2637 * guile/scm-pretty-print.c: Likewise.
2638 * guile/scm-safe-call.c: Likewise.
2639 * guile/scm-utils.c: Likewise.
2640 * guile/scm-value.c: Likewise.
2641 * h8300-tdep.c: Likewise.
2642 * hppa-hpux-nat.c: Likewise.
2643 * hppa-tdep.c: Likewise.
2644 * hppanbsd-tdep.c: Likewise.
2645 * hppaobsd-tdep.c: Likewise.
2646 * i386-darwin-nat.c: Likewise.
2647 * i386-darwin-tdep.c: Likewise.
2648 * i386-nto-tdep.c: Likewise.
2649 * i386-tdep.c: Likewise.
2650 * i386bsd-nat.c: Likewise.
2651 * i386fbsd-tdep.c: Likewise.
2652 * i386gnu-nat.c: Likewise.
2653 * i386nbsd-tdep.c: Likewise.
2654 * i386obsd-tdep.c: Likewise.
2655 * i387-tdep.c: Likewise.
2656 * ia64-libunwind-tdep.c: Likewise.
2657 * ia64-tdep.c: Likewise.
2658 * inf-ptrace.c: Likewise.
2659 * inf-ttrace.c: Likewise.
2660 * infcall.c: Likewise.
2661 * infcmd.c: Likewise.
2662 * infrun.c: Likewise.
2663 * inline-frame.c: Likewise.
2664 * interps.c: Likewise.
2665 * jv-lang.c: Likewise.
2666 * jv-typeprint.c: Likewise.
2667 * linux-fork.c: Likewise.
2668 * linux-nat.c: Likewise.
2669 * linux-thread-db.c: Likewise.
2670 * m32c-tdep.c: Likewise.
2671 * m32r-linux-nat.c: Likewise.
2672 * m32r-tdep.c: Likewise.
2673 * m68k-tdep.c: Likewise.
2674 * m68kbsd-nat.c: Likewise.
2675 * m68kbsd-tdep.c: Likewise.
2676 * m88k-tdep.c: Likewise.
2677 * machoread.c: Likewise.
2678 * macroexp.c: Likewise.
2679 * macrotab.c: Likewise.
2680 * maint.c: Likewise.
2681 * mdebugread.c: Likewise.
2682 * memory-map.c: Likewise.
2683 * mep-tdep.c: Likewise.
2684 * mi/mi-common.c: Likewise.
2685 * microblaze-tdep.c: Likewise.
2686 * mingw-hdep.c: Likewise.
2687 * mips-linux-nat.c: Likewise.
2688 * mips-linux-tdep.c: Likewise.
2689 * mips-tdep.c: Likewise.
2690 * mips64obsd-tdep.c: Likewise.
2691 * mipsnbsd-tdep.c: Likewise.
2692 * mn10300-linux-tdep.c: Likewise.
2693 * mn10300-tdep.c: Likewise.
2694 * moxie-tdep.c: Likewise.
2695 * mt-tdep.c: Likewise.
2696 * nat/linux-btrace.c: Likewise.
2697 * nat/linux-osdata.c: Likewise.
2698 * nat/linux-ptrace.c: Likewise.
2699 * nat/mips-linux-watch.c: Likewise.
2700 * nios2-linux-tdep.c: Likewise.
2701 * nios2-tdep.c: Likewise.
2702 * objc-lang.c: Likewise.
2703 * objfiles.c: Likewise.
2704 * obsd-nat.c: Likewise.
2705 * opencl-lang.c: Likewise.
2706 * osabi.c: Likewise.
2707 * parse.c: Likewise.
2708 * ppc-linux-nat.c: Likewise.
2709 * ppc-sysv-tdep.c: Likewise.
2710 * ppcfbsd-nat.c: Likewise.
2711 * ppcfbsd-tdep.c: Likewise.
2712 * ppcnbsd-nat.c: Likewise.
2713 * ppcnbsd-tdep.c: Likewise.
2714 * ppcobsd-nat.c: Likewise.
2715 * ppcobsd-tdep.c: Likewise.
2716 * printcmd.c: Likewise.
2717 * procfs.c: Likewise.
2718 * prologue-value.c: Likewise.
2719 * psymtab.c: Likewise.
2720 * python/py-lazy-string.c: Likewise.
2721 * python/py-value.c: Likewise.
2722 * regcache.c: Likewise.
2723 * reggroups.c: Likewise.
2724 * registry.c: Likewise.
2725 * remote-sim.c: Likewise.
2726 * remote.c: Likewise.
2727 * rs6000-aix-tdep.c: Likewise.
2728 * rs6000-tdep.c: Likewise.
2729 * s390-linux-tdep.c: Likewise.
2730 * score-tdep.c: Likewise.
2731 * ser-base.c: Likewise.
2732 * ser-mingw.c: Likewise.
2733 * sh-tdep.c: Likewise.
2734 * sh64-tdep.c: Likewise.
2735 * solib-darwin.c: Likewise.
2736 * solib-spu.c: Likewise.
2737 * solib-svr4.c: Likewise.
2738 * source.c: Likewise.
2739 * sparc-nat.c: Likewise.
2740 * sparc-sol2-tdep.c: Likewise.
2741 * sparc-tdep.c: Likewise.
2742 * sparc64-sol2-tdep.c: Likewise.
2743 * sparc64-tdep.c: Likewise.
2744 * sparc64fbsd-tdep.c: Likewise.
2745 * sparc64nbsd-tdep.c: Likewise.
2746 * sparc64obsd-tdep.c: Likewise.
2747 * sparcnbsd-tdep.c: Likewise.
2748 * sparcobsd-tdep.c: Likewise.
2749 * spu-multiarch.c: Likewise.
2750 * spu-tdep.c: Likewise.
2751 * stabsread.c: Likewise.
2752 * stack.c: Likewise.
2753 * symfile.c: Likewise.
2754 * symtab.c: Likewise.
2755 * target-descriptions.c: Likewise.
2756 * target-memory.c: Likewise.
2757 * target.c: Likewise.
2758 * tic6x-linux-tdep.c: Likewise.
2759 * tic6x-tdep.c: Likewise.
2760 * tilegx-linux-nat.c: Likewise.
2761 * tilegx-tdep.c: Likewise.
2762 * top.c: Likewise.
2763 * tramp-frame.c: Likewise.
2764 * tui/tui-out.c: Likewise.
2765 * tui/tui-winsource.c: Likewise.
2766 * ui-out.c: Likewise.
2767 * user-regs.c: Likewise.
2768 * utils.c: Likewise.
2769 * v850-tdep.c: Likewise.
2770 * valops.c: Likewise.
2771 * value.c: Likewise.
2772 * varobj.c: Likewise.
2773 * vax-nat.c: Likewise.
2774 * xml-syscall.c: Likewise.
2775 * xml-tdesc.c: Likewise.
2776 * xstormy16-tdep.c: Likewise.
2777 * xtensa-linux-nat.c: Likewise.
2778 * xtensa-tdep.c: Likewise.
2779
2780 2014-08-07 Gary Benson <gbenson@redhat.com>
2781
2782 * common/common-defs.h: Include common-utils.h.
2783 * defs.h: Do not include common-utils.h.
2784 * common/gdb_assert.h: Likewise.
2785 * darwin-nat.h: Likewise.
2786 * nat/linux-btrace.c: Likewise.
2787 * target/waitstatus.h: Likewise.
2788
2789 2014-08-07 Gary Benson <gbenson@redhat.com>
2790
2791 * common/common-defs.h: Include ptid.h.
2792 * defs.h: Do not include ptid.h.
2793 * inferior.h: Likewise.
2794 * infrun.h: Likewise.
2795 * nat/linux-btrace.h: Likewise.
2796 * nat/linux-osdata.h: Likewise.
2797 * target/waitstatus.h: Likewise.
2798
2799 2014-08-07 Gary Benson <gbenson@redhat.com>
2800
2801 * common/common-defs.h: Include gdb_locale.h.
2802 * defs.h: Do not include gdb_locale.h.
2803
2804 2014-08-07 Gary Benson <gbenson@redhat.com>
2805
2806 * common/common-defs.h: Include gdb/signals.h.
2807 * defs.h: Do not include gdb/signals.h.
2808
2809 2014-08-07 Gary Benson <gbenson@redhat.com>
2810
2811 * common/common-defs.h: Include pathmax.h.
2812 * defs.h: Do not include pathmax.h.
2813
2814 2014-08-07 Gary Benson <gbenson@redhat.com>
2815
2816 * common/common-defs.h: Include libiberty.h.
2817 * defs.h: Do not include libiberty.h.
2818 * common/queue.h: Likewise.
2819 * cp-name-parser.y: Likewise.
2820 * mi/mi-cmd-catch.c: Likewise.
2821 * python/python.c: Likewise.
2822
2823 2014-08-07 Gary Benson <gbenson@redhat.com>
2824
2825 * common/common-defs.h: Include ansidecl.h.
2826 * defs.h: Do not include ansidecl.h.
2827 * common/buffer.h: Likewise.
2828 * common/common-utils.h: Likewise.
2829
2830 2014-08-07 Gary Benson <gbenson@redhat.com>
2831
2832 * common/common-defs.h: Include stddef.h.
2833 * defs.h: Do not include stddef.h.
2834 * common/common-utils.h: Likewise.
2835 * amd64fbsd-nat.c: Likewise.
2836 * bcache.c: Likewise.
2837 * charset.c: Likewise.
2838 * common/buffer.h: Likewise.
2839 * common/vec.h: Likewise.
2840 * i386bsd-nat.c: Likewise.
2841 * nat/linux-btrace.h: Likewise.
2842 * ppcfbsd-nat.c: Likewise.
2843 * ppcnbsd-tdep.h: Likewise.
2844 * ppcobsd-nat.c: Likewise.
2845 * ppcobsd-tdep.h: Likewise.
2846 * python/py-gdb-readline.c: Likewise.
2847
2848 2014-08-07 Gary Benson <gbenson@redhat.com>
2849
2850 * common/common-defs.h: Include stdarg.h.
2851 * defs.h: Do not include stdarg.h.
2852 * ada-lang.c: Likewise.
2853 * common/common-utils.h: Likewise.
2854 * guile/scm-string.c: Likewise.
2855 * guile/scm-utils.c: Likewise.
2856 * m32c-tdep.c: Likewise.
2857
2858 2014-08-07 Gary Benson <gbenson@redhat.com>
2859
2860 * common/common-defs.h: Include stdlib.h.
2861 * defs.h: Do not include stdlib.h.
2862 * addrmap.c: Likewise.
2863 * bcache.c: Likewise.
2864 * common/buffer.c: Likewise.
2865 * common/common-utils.c: Likewise.
2866 * cp-name-parser.y: Likewise.
2867 * go32-nat.c: Likewise.
2868 * mn10300-linux-tdep.c: Likewise.
2869 * nat/linux-osdata.c: Likewise.
2870 * tui/tui.c: Likewise.
2871 * windows-nat.c: Likewise.
2872
2873 2014-08-07 Gary Benson <gbenson@redhat.com>
2874
2875 * common/common-defs.h: Include stdio.h.
2876 * defs.h: Do not include stdio.h.
2877 * ada-lang.c: Likewise.
2878 * common/buffer.c: Likewise.
2879 * common/common-utils.c: Likewise.
2880 * cp-name-parser.y: Likewise.
2881 * gnu-nat.c: Likewise.
2882 * go32-nat.c: Likewise.
2883 * i386gnu-nat.c: Likewise.
2884 * proc-api.c: Likewise.
2885 * proc-events.c: Likewise.
2886 * proc-flags.c: Likewise.
2887 * proc-why.c: Likewise.
2888 * python/python-internal.h: Likewise.
2889 * target-memory.c: Likewise.
2890 * tui/tui-io.c: Likewise.
2891 * tui/tui.c: Likewise.
2892
2893 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2894
2895 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2896 (scan_dyntag_auxv): Same.
2897
2898 2014-08-06 Yao Qi <yao@codesourcery.com>
2899
2900 * amd64-linux-nat.c: Remove duplicated include
2901 "x86-linux-nat.h".
2902 * i386-linux-nat.c: Likewise.
2903
2904 2014-08-06 Yao Qi <yao@codesourcery.com>
2905
2906 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2907 operand" with "Special opcode" in comments.
2908
2909 2014-08-05 Gary Benson <gbenson@redhat.com>
2910
2911 * interps.c (initialize_interps): Remove prototype.
2912 (interpreter_initialized): Remove static global.
2913 (interp_add): Do not call initialize_interps.
2914 (initialize_interps): Remove function.
2915
2916 2014-08-05 Gary Benson <gbenson@redhat.com>
2917
2918 * utils.c (vwarning): Remove spurious va_end.
2919
2920 2014-08-05 Alan Modra <amodra@gmail.com>
2921
2922 * charset.c (convert_between_encodings): Cast result of obstack_base.
2923 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2924 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2925 (read_unwind_info): Use size_t for some locals.
2926 * jit.c (finalize_symtab): Likewise.
2927 * utils.c (hashtab_obstack_allocate): Likewise.
2928 * symmisc.c (print_objfile_statistics): Update format strings.
2929
2930 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2931
2932 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2933 (Changes in GDB 7.8): ... here.
2934
2935 2014-08-04 Tom Tromey <tromey@redhat.com>
2936
2937 * target.c (set_targetdebug): New function.
2938 (initialize_targets): Pass set_targetdebug when creating "set
2939 debug target".
2940
2941 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2942
2943 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2944 if detecting a variable-sized field that is not the last field.
2945 Fix struct type length computation.
2946
2947 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2948
2949 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2950 Add debug trace.
2951
2952 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2953
2954 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2955 Remove "+ 8" offset in computation of CHAIN_VMA.
2956
2957 2014-07-31 Doug Evans <dje@google.com>
2958
2959 * inflow.c (child_terminal_inferior): Add comment.
2960 (child_terminal_ours_for_output): Add comment.
2961 (child_terminal_ours): Add comment.
2962 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2963 (linux_nat_terminal_ours): Add comment.
2964
2965 2014-07-31 Gary Benson <gbenson@redhat.com>
2966
2967 * common/btrace-common.h: Do not include defs.h or server.h.
2968 * nat/mips-linux-watch.h: Likewise.
2969 * gdb-dlfcn.h: Do not include defs.h.
2970 * tracefile.h: Likewise.
2971
2972 2014-07-30 Roland McGrath <mcgrathr@google.com>
2973
2974 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2975
2976 2014-07-30 Tom Tromey <tromey@redhat.com>
2977
2978 * bsd-kvm.c (bsd_kvm_open): Constify.
2979 * corelow.c (core_open): Constify.
2980 * ctf.c (ctf_open): Constify.
2981 * dbug-rom.c (dbug_open): Constify.
2982 * exec.c (exec_open): Constify.
2983 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2984 * microblaze-rom.c (picobug_open): Constify.
2985 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2986 Constify.
2987 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2988 * record-btrace.c (record_btrace_open): Constify.
2989 * record-full.c (record_full_core_open_1, record_full_open_1)
2990 (record_full_open): Constify.
2991 * remote-m32r-sdi.c (m32r_open): Constify.
2992 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2993 (rockhopper_open, lsi_open): Constify.
2994 * remote-sim.c (gdbsim_open): Constify.
2995 * remote.c (remote_open, extended_remote_open, remote_open_1):
2996 Constify.
2997 * target.h (struct target_ops) <to_open>: Make "arg" const.
2998 * tracefile-tfile.c (tfile_open): Constify.
2999
3000 2014-07-30 Tom Tromey <tromey@redhat.com>
3001
3002 * breakpoint.c (map_breakpoint_numbers): Update.
3003 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3004 (get_number_const): New function.
3005 (get_number): Rewrite using get_number_const.
3006 (init_number_or_range): Make "string" const.
3007 (number_is_in_list): Make "list" const.
3008 * cli/cli-utils.h (get_number_const): Declare.
3009 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3010 (init_number_or_range, number_is_in_list): Update.
3011 * printcmd.c (map_display_numbers): Update.
3012 * value.c (value_from_history_ref): Constify.
3013 * value.h (value_from_history_ref): Update.
3014
3015 2014-07-30 Tom Tromey <tromey@redhat.com>
3016
3017 * corefile.c (hook_type, call_extra_exec_file_hooks)
3018 (specify_exec_file_hook): Constify.
3019 * exec.c (exec_file_attach): Make "filename" const.
3020 * gdbcore.h (deprecated_exec_file_display_hook)
3021 (specify_exec_file_hook, exec_file_attach): Constify.
3022 * main.c (captured_main): Use catch_command_errors_const.
3023
3024 2014-07-30 Tom Tromey <tromey@redhat.com>
3025
3026 * target.c (open_target): New function.
3027 (add_target_with_completer, add_deprecated_target_alias): Use
3028 set_cmd_sfunc, set_cmd_context.
3029 (debug_to_open): Remove.
3030 (setup_target_debug): Update.
3031
3032 2014-07-30 Yao Qi <yao@codesourcery.com>
3033
3034 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3035 comments.
3036 * parse.c (exp_iterate): Update comments.
3037
3038 2014-07-30 Gary Benson <gbenson@redhat.com>
3039
3040 * common/common-defs.h: New file.
3041 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3042 * defs.h: Include common-defs.h.
3043 Do not include config.h or build-gnulib/config.h.
3044
3045 2014-07-30 Gary Benson <gbenson@redhat.com>
3046
3047 * common/common-utils.h: Do not include config.h.
3048 * nat/linux-btrace.h: Likewise.
3049
3050 2014-07-30 Gary Benson <gbenson@redhat.com>
3051
3052 * btrace.c: Include defs.h.
3053 * common/ptid.c: Include defs.h or server.h as appropriate.
3054 * nat/mips-linux-watch.c: Likewise.
3055
3056 2014-07-29 Tom Tromey <tromey@redhat.com>
3057
3058 * target.c (target_is_pushed): Simplify.
3059
3060 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3061
3062 GDB 7.8 released.
3063
3064 2014-07-29 Yao Qi <yao@codesourcery.com>
3065
3066 PR gdb/17206
3067 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3068
3069 2014-07-28 Doug Evans <xdje42@gmail.com>
3070
3071 PR guile/17203
3072 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3073 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3074 parameters.
3075
3076 2014-07-28 Will Newton <will.newton@linaro.org>
3077
3078 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3079 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3080 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3081 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3082 (THUMB2_EABI_SYSCALL): Likewise.
3083 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3084 struct tramp_frame.
3085 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3086 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3087
3088 2014-07-27 Doug Evans <xdje42@gmail.com>
3089
3090 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3091
3092 2014-07-27 Doug Evans <xdje42@gmail.com>
3093
3094 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3095
3096 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3097 Doug Evans <xdje42@gmail.com>
3098
3099 PR guile/17146
3100 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3101 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3102 * configure.ac: Try to use guild to compile an scm file, if it fails
3103 then disable guile support.
3104 * configure: Regenerate.
3105 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3106 GUILE_FILE_LIST.
3107 (GUILE_COMPILED_FILES): New variable.
3108 (GUILE_FILES) Update.
3109 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3110 (stamp-guile): Compile scm files.
3111 * guile/guile.c (boot_guile_support): New function.
3112 (standard_throw_args_p): New function.
3113 (print_standard_throw_error, print_throw_error): New functions.
3114 (handle_boot_error): New function.
3115 (initialize_scheme_side): Rewrite to call boot_guile_support.
3116 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3117 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3118
3119 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3120 Doug Evans <xdje42@gmail.com>
3121
3122 PR guile/17146
3123 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3124 * guile/lib/gdb/support.scm: New file.
3125 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3126 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3127 All uses updated.
3128 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3129 All uses updated.
3130 (%assert-type): Ditto, and renamed to assert-type.
3131 (%exception-print-style): Delete.
3132
3133 2014-07-26 Doug Evans <xdje42@gmail.com>
3134
3135 PR build/17105
3136 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3137 * configure: Regenerate.
3138 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3139 PYTHON_FILES.
3140 (PYTHON_FILES): New variable.
3141 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3142 (GUILE_FILES): New variable.
3143 (stamp-python, install-python, uninstall-python): Handle empty
3144 file list.
3145 (stamp-guile, install-guile, uninstall-guile): Ditto.
3146
3147 2014-07-26 Doug Evans <xdje42@gmail.com>
3148
3149 PR guile/17177
3150 * guile/lib/gdb.scm (pretty-printers): Export.
3151 (set-pretty-printers!): Export.
3152 * guile/lib/gdb/printing.scm (gdb module): Update.
3153 (prepend-pretty-printer!, append-pretty-printer!): Update.
3154 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3155 (pretty_printer_list_var): Delete.
3156 (pretty_printer_list): New static global.
3157 (gdbscm_pretty_printers): New function.
3158 (gdbscm_set_pretty_printers_x): New function.
3159 (ppscm_find_pretty_printer_from_gdb): Update.
3160 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3161 (gdbscm_initialize_pretty_printers): Update.
3162
3163 2014-07-26 Doug Evans <xdje42@gmail.com>
3164
3165 PR 17185
3166 * configure.ac: Add check for header gc/gc.h.
3167 Add check for function setenv.
3168 * configure: Regenerate.
3169 * config.in: Regenerate.
3170 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3171
3172 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3173
3174 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3175 variation in gdbarch matching.
3176
3177 2014-07-25 Tom Tromey <tromey@redhat.com>
3178
3179 * exec.c (using_exec_ops): Remove.
3180 (exec_close_1): Update. Remove extraneous block, reindent.
3181 (add_target_sections): Use target_is_pushed.
3182
3183 2014-07-25 Pedro Alves <palves@redhat.com>
3184
3185 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3186 * monitor.c (monitor_create_inferior): Likewise.
3187 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3188 * remote-sim.c (gdbsim_create_inferior): Likewise.
3189 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3190 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3191 * windows-nat.c (do_initial_windows_stuff): Likewise.
3192
3193 2014-07-25 Pedro Alves <palves@redhat.com>
3194
3195 * NEWS: Mention signal passing and "signal" command changes.
3196 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3197 comment.
3198 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3199 call.
3200 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3201 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3202 (jump_command): Adjust clear_proceed_status call.
3203 (signal_command): Warn if other thread that are resumed have
3204 signals that will be delivered. Adjust clear_proceed_status call.
3205 (until_next_command, finish_command)
3206 (proceed_after_attach_callback, attach_command_post_wait)
3207 (attach_command): Adjust clear_proceed_status call.
3208 * infrun.c (proceed_after_vfork_done): Likewise.
3209 (proceed_after_attach_callback): Adjust comment.
3210 (clear_proceed_status_thread): Clear stop_signal if not in pass
3211 state.
3212 (clear_proceed_status_callback): Delete.
3213 (clear_proceed_status): New 'step' parameter. Only clear the
3214 proceed status of threads the command being prepared is about to
3215 resume.
3216 (proceed): If passed in an explicit signal, override stop_signal
3217 with it. Don't pass the last stop signal to the thread we're
3218 resuming.
3219 (init_wait_for_inferior): Adjust clear_proceed_status call.
3220 (switch_back_to_stepped_thread): Clear the signal if it should not
3221 be passed.
3222 * infrun.h (clear_proceed_status): New 'step' parameter.
3223 (user_visible_resume_ptid): Add comment.
3224 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3225 signal is in pass state.
3226 * remote.c (append_pending_thread_resumptions): Likewise.
3227 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3228
3229 2014-07-25 Tom Tromey <tromey@redhat.com>
3230
3231 * target.h (target_stopped_data_address)
3232 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3233 parentheses.
3234
3235 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3236
3237 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3238 comments.
3239 (avr_pointer_to_address): Likewise.
3240
3241 2014-07-24 Tom Tromey <tromey@redhat.com>
3242
3243 * monitor.c (compile_pattern): Update.
3244 * target.h (struct target_ops) <to_shortname, to_longname,
3245 to_doc>: Now const.
3246
3247 2014-07-24 Tom Tromey <tromey@redhat.com>
3248
3249 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3250 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3251 (add_info_alias, add_com): Make "doc" const.
3252 (print_doc_line): Make "str" const.
3253 (delete_cmd): Update.
3254 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3255 (print_doc_line): Update.
3256 * cli/cli-script.c (document_command): Update.
3257 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3258 (add_com, add_info, add_info_alias): Update.
3259 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3260 * python/py-cmd.c (cmdpy_destroyer): Update.
3261
3262 2014-07-24 Tom Tromey <tromey@redhat.com>
3263
3264 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3265 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3266 (help_cmd_list): Constify.
3267 (lookup_cmd): Update.
3268 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3269 const.
3270 (help_cmd_list, apropos_cmd): Update.
3271 * cli/cli-script.c (show_user): Update.
3272 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3273 * cli/cli-setshow.h (cmd_show_list): Update.
3274 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3275 (cmd_show_list): Update.
3276 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3277 * python/py-cmd.c (cmdpy_destroyer): Update.
3278
3279 2014-07-24 Tom Tromey <tromey@redhat.com>
3280
3281 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3282 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3283 const.
3284 * command.h (deprecate_cmd): Update.
3285 * maint.c (maintenance_do_deprecate): Add casts.
3286
3287 2014-07-24 Tom Tromey <tromey@redhat.com>
3288
3289 * cli/cli-decode.c (help_cmd): Make parameter "const".
3290 * cli/cli-decode.h (help_cmd): Update.
3291
3292 2014-07-24 Tom Tromey <tromey@redhat.com>
3293
3294 * stack.c (up_silently_base, down_silently_base): Make argument
3295 const.
3296
3297 2014-07-24 Tom Tromey <tromey@redhat.com>
3298
3299 * solib.c (solib_add): Make "pattern" const.
3300 * solib.h (solib_add): Update.
3301
3302 2014-07-24 Tom Tromey <tromey@redhat.com>
3303
3304 * remote.c (remote_serial_open, print_packet, putpkt)
3305 (putpkt_binary): Constify.
3306 * remote.h (putpkt): Update.
3307
3308 2014-07-24 Tom Tromey <tromey@redhat.com>
3309
3310 * monitor.c (monitor_open): Make "args" const.
3311 * monitor.h (monitor_open): Update.
3312
3313 2014-07-24 Tom Tromey <tromey@redhat.com>
3314
3315 * maint.c (match_bfd_flags): Make "string" const.
3316 (print_bfd_section_info): Remove casts.
3317 (print_objfile_section_info): Make "string" const.
3318
3319 2014-07-24 Tom Tromey <tromey@redhat.com>
3320
3321 * inf-child.c (inf_child_open_target): Make "arg" const.
3322 * inf-child.h (inf_child_open_target): Update.
3323
3324 2014-07-24 Tom Tromey <tromey@redhat.com>
3325
3326 * environ.c (unset_in_environ): Make "var" const.
3327 * environ.h (unset_in_environ): Update.
3328
3329 2014-07-24 Tom Tromey <tromey@redhat.com>
3330
3331 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3332 Make "cmd" const.
3333 (scan_filename_with_cleanup): Likewise.
3334 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3335 Make arguments const.
3336 (restore_command): Update.
3337
3338 2014-07-24 Pedro Alves <palves@redhat.com>
3339
3340 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3341
3342 2014-07-24 Tom Tromey <tromey@redhat.com>
3343 Gary Benson <gbenson@redhat.com>
3344
3345 * nat/linux-ptrace.c (additional_flags): New global.
3346 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3347 additional_flags; don't check GDBSERVER.
3348 (linux_ptrace_set_additional_flags): New function.
3349 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3350 Declare.
3351 * linux-nat.c (_initialize_linux_nat): Call
3352 linux_ptrace_set_additional_flags.
3353
3354 2014-07-24 Tom Tromey <tromey@redhat.com>
3355
3356 * make-target-delegates (munge_type, write_debugmethod): New
3357 functions.
3358 (debug_names): New global.
3359 ($TARGET_DEBUG_PRINTER): New global.
3360 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3361 name.
3362 Write debug methods. Generate init_debug_target.
3363 * target-debug.h: New file.
3364 * target-delegates.c: Rebuild.
3365 * target.c: Include target-debug.h.
3366 (debug_target): Hoist definition.
3367 (target_kill, target_get_section_table, target_memory_map)
3368 (target_flash_erase, target_flash_done, target_detach)
3369 (target_disconnect, target_wait, target_resume)
3370 (target_pass_signals, target_program_signals, target_follow_fork)
3371 (target_mourn_inferior, target_search_memory)
3372 (target_thread_address_space, target_close)
3373 (target_find_new_threads, target_core_of_thread)
3374 (target_verify_memory, target_insert_mask_watchpoint)
3375 (target_remove_mask_watchpoint): Remove targetdebug code.
3376 (debug_to_post_attach, debug_to_prepare_to_store)
3377 (debug_to_files_info, debug_to_insert_breakpoint)
3378 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3379 (debug_to_region_ok_for_hw_watchpoint)
3380 (debug_to_can_accel_watchpoint_condition)
3381 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3382 (debug_to_watchpoint_addr_within_range)
3383 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3384 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3385 (debug_to_terminal_init, debug_to_terminal_inferior)
3386 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3387 (debug_to_terminal_save_ours, debug_to_terminal_info)
3388 (debug_to_load, debug_to_post_startup_inferior)
3389 (debug_to_insert_fork_catchpoint)
3390 (debug_to_remove_fork_catchpoint)
3391 (debug_to_insert_vfork_catchpoint)
3392 (debug_to_remove_vfork_catchpoint)
3393 (debug_to_insert_exec_catchpoint)
3394 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3395 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3396 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3397 (setup_target_debug): Call init_debug_target.
3398 * target.h (TARGET_DEBUG_PRINTER): New macro.
3399 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3400 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3401
3402 2014-07-24 Gary Benson <gbenson@redhat.com>
3403
3404 * exceptions.h (throw_vfatal): Renamed to...
3405 (throw_vquit): New declaration.
3406 (throw_quit): Likewise.
3407 * exceptions.c (throw_vfatal): Renamed to...
3408 (throw_vquit): New function.
3409 (throw_quit): Likewise.
3410 (throw_error): Call throw_verror rather than throw_it.
3411 * utils.h (vfatal): Removed.
3412 (fatal): Likewise.
3413 * utils.c (vfatal): Removed.
3414 (fatal): Likewise.
3415 (internal_verror): Replaced call to fatal with call to throw_quit.
3416 (quit): Replaced calls to fatal with calls to throw_quit.
3417
3418 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3419
3420 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3421 target_read_code.
3422
3423 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3424
3425 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3426 less than zero in conditional expression.
3427
3428 2014-07-23 Tom Tromey <tromey@redhat.com>
3429
3430 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3431 ($INTRO_PART): Don't match whitespace.
3432 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3433 argument matching.
3434 ($METHOD): Add $METHOD_TRAILER.
3435 (trim): Rewrite.
3436 (scan_target_h): New sub.
3437 Change main loop not to collect state.
3438 * target-delegates.c: Rebuild.
3439
3440 2014-07-23 Gary Benson <gbenson@redhat.com>
3441
3442 * cp-support.c (gdb_demangle): Fix build on systems without
3443 sigaltstack.
3444
3445 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3446
3447 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3448 for reference entry value target data value.
3449
3450 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3451
3452 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3453 value_available_contents_eq.
3454
3455 2014-07-22 Pedro Alves <palves@redhat.com>
3456
3457 * value.c (allocate_optimized_out_value): Don't mark value as
3458 non-lazy.
3459
3460 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3461
3462 * MAINTAINERS (Write After Approval): Update my email address.
3463
3464 2014-07-20 Doug Evans <dje@google.com>
3465
3466 PR server/17147
3467 * remote.c (putpkt_binary): Add text to error message.
3468
3469 2014-07-20 Yao Qi <yao@codesourcery.com>
3470
3471 * eval.c: Remove "Chill" from comments.
3472 * gdbtypes.h: Likewise.
3473 * symtab.h: Likewise.
3474
3475 2014-07-20 Yao Qi <yao@codesourcery.com>
3476
3477 * std-operator.def: Update comments to TERNOP_SLICE.
3478
3479 2014-07-20 Yao Qi <yao@codesourcery.com>
3480
3481 * std-operator.def: Remove BINOP_RANGE.
3482 * breakpoint.c (watchpoint_exp_is_const): Update.
3483 * expprint.c (dump_subexp_body_standard): Likewise.
3484 * eval.c (init_array_element): Remove dead code.
3485 (evaluate_subexp_standard): Likewise.
3486
3487 2014-07-20 Yao Qi <yao@codesourcery.com>
3488
3489 * std-operator.def: Remove BINOP_IN.
3490 * breakpoint.c (watchpoint_exp_is_const): Update.
3491 * eval.c (evaluate_subexp_standard): Likewise.
3492 * expprint.c (dump_subexp_body_standard): Likewise.
3493
3494 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3495
3496 * microblaze-tdep.c (microblaze_register_names): Add
3497 the rshr and rslr register names.
3498 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3499 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3500 Use of tdesc_numbered_register. Use of
3501 microblaze_register_g_packet_guesses. Use of
3502 tdesc_use_registers. Use of set_gdbarch_register_type.
3503 (microblaze_register_g_packet_guesses): New.
3504 * microblaze-tdep.h (microblaze_reg_num): Add
3505 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3506 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3507 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3508 * features/microblaze-core.xml: New file.
3509 * features/microblaze-stack-protect.xml: New file.
3510 * features/microblaze-with-stack-protect.c: New file.
3511 * features/microblaze-with-stack-protect.xml: New file.
3512 * features/microblaze.xml: New file.
3513 * features/microblaze.c: New file.
3514 * features/Makefile (microblaze-with-stack-protect): Add
3515 microblaze-with-stack-protect microblaze and microblaze-expedite.
3516 * regformats/microblaze-with-stack-protect.dat: New file.
3517 * regformats/microblaze.dat: New file.
3518 * doc/gdb.texinfo (MicroBlaze Features): Added.
3519
3520 2014-07-18 Tom Tromey <tromey@redhat.com>
3521
3522 * exec.c (exec_ops): Now static.
3523 * exec.h (exec_ops): Don't declare.
3524
3525 2014-07-18 Tom Tromey <tromey@redhat.com>
3526
3527 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3528 to find_target_beneath.
3529 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3530 find_target_beneath.
3531 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3532
3533 2014-07-18 Tom Tromey <tromey@redhat.com>
3534
3535 PR gdb/17130:
3536 * utils.c (quit): Use target_supports_terminal_ours.
3537 * target.h (target_supports_terminal_ours): Declare.
3538 * target.c (target_supports_delete_record): Don't check
3539 to_delete_record against NULL.
3540 (target_supports_terminal_ours): New function.
3541
3542 2014-07-18 Tom Tromey <tromey@redhat.com>
3543
3544 PR gdb/17130:
3545 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3546 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3547 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3548 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3549 * windows-nat.c (windows_xfer_partial): Always delegate.
3550 * record-btrace.c (record_btrace_xfer_partial): Simplify
3551 delegation.
3552 (record_btrace_fetch_registers, record_btrace_store_registers)
3553 (record_btrace_prepare_to_store, record_btrace_resume)
3554 (record_btrace_wait, record_btrace_find_new_threads)
3555 (record_btrace_thread_alive): Likewise.
3556 * procfs.c (procfs_xfer_partial): Always delegate.
3557 * corelow.c (core_xfer_partial): Always delegate.
3558 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3559
3560 2014-07-18 Tom Tromey <tromey@redhat.com>
3561
3562 * exec.c (exec_make_note_section): Move earlier.
3563
3564 2014-07-17 Doug Evans <dje@google.com>
3565
3566 PR gdb/17170
3567 * maint.c (count_symtabs_and_blocks): Handle NULL
3568 current_program_space.
3569 (report_command_stats): Check global enabled flag in addition to
3570 recorded enabled flag.
3571 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3572
3573 2014-07-16 Pedro Alves <palves@redhat.com>
3574
3575 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3576
3577 2014-07-16 Tom Tromey <tromey@redhat.com>
3578
3579 * target.h (struct target_ops) <to_delete_record>: Reformat
3580 comment.
3581
3582 2014-07-16 Tom Tromey <tromey@redhat.com>
3583
3584 * target-delegates.c: Rebuild.
3585
3586 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3587
3588 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3589 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3590 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3591 (avr_pointer_to_address): Likewise.
3592 (avr_address_class_type_flags): New function.
3593 (avr_address_class_type_flags_to_name): Likewise.
3594 (avr_address_class_name_to_type_flags): Likewise.
3595 (avr_gdbarch_init): Set address_class_type_flags,
3596 address_class_type_flags_to_name and
3597 address_class_name_to_type_flags.
3598
3599 2014-07-15 Pedro Alves <palves@redhat.com>
3600
3601 * linux-nat.c (kill_callback): Save errno and work with saved
3602 copy.
3603
3604 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3605
3606 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3607
3608 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3609
3610 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3611 breakpoint support correctly.
3612
3613 2014-07-14 Pedro Alves <palves@redhat.com>
3614
3615 * utils.c (prompt_for_continue): Call target_terminal_ours.
3616
3617 2014-07-14 Pedro Alves <palves@redhat.com>
3618
3619 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3620 catch_errors. Don't re-enable stdin or notify observers where,
3621 and rethrow error.
3622 (fetch_inferior_event_wrapper): Delete.
3623
3624 2014-07-14 Pedro Alves <palves@redhat.com>
3625
3626 PR gdb/17072
3627 * top.c: Include "inf-loop.h".
3628 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3629 field.
3630 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3631 was async before.
3632 (gdb_readline_wrapper): Store whether the target is async, and
3633 make it sync.
3634
3635 2014-07-14 Pedro Alves <palves@redhat.com>
3636
3637 PR gdb/17072
3638 * top.c (gdb_readline_wrapper_line): Tweak comment.
3639 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3640 the input handler callback.
3641
3642 2014-07-14 Pedro Alves <palves@redhat.com>
3643
3644 PR gdb/17072
3645 * main.c: Include event-top.h.
3646 (handle_command_errors): New function.
3647 (catch_command_errors, catch_command_errors_const): Use it.
3648
3649 2014-07-14 Pedro Alves <palves@redhat.com>
3650
3651 * exceptions.c (catch_command_errors, catch_command_errors_const):
3652 Moved to main.c.
3653 * exceptions.h (catch_command_errors_ftype)
3654 (catch_command_errors_const_ftype): Moved to main.c.
3655 (catch_command_errors, catch_command_errors_const): Delete
3656 declarations.
3657 * main.c (catch_command_errors_ftype)
3658 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3659 (catch_command_errors, catch_command_errors_const)): Moved here
3660 from exceptions.c and make static.
3661
3662 2014-07-14 Pedro Alves <palves@redhat.com>
3663
3664 * exceptions.c (print_any_exception): Delete.
3665 (catch_exceptions_with_msg): Use exception_print instead of
3666 print_any_exception.
3667 (catch_errors): Use exception_fprintf instead of
3668 print_any_exception.
3669 (catch_command_errors, catch_command_errors_const): Use
3670 exception_print instead of print_any_exception.
3671
3672 2014-07-14 Pedro Alves <palves@redhat.com>
3673
3674 * infcall.c (run_inferior_call): Set 'sync_execution' while
3675 running the inferior call.
3676
3677 2014-07-14 Pedro Alves <palves@redhat.com>
3678
3679 * value.c (value_contents_equal): Delete function.
3680 * value.h (value_contents_equal): Delete declaration.
3681
3682 2014-07-14 Tom Tromey <tromey@redhat.com>
3683
3684 PR exp/17106:
3685 * gdbtypes.c (is_dynamic_type_internal): New function, from
3686 is_dynamic_type.
3687 (is_dynamic_type): Rewrite.
3688 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3689 (resolve_dynamic_struct): Likewise.
3690 (resolve_dynamic_type_internal): New function, from
3691 resolve_dynamic_type.
3692 (resolve_dynamic_type): Rewrite.
3693
3694 2014-07-14 Tom Tromey <tromey@redhat.com>
3695
3696 * target.c (target_require_runnable): Also check record_stratum.
3697 Update comment.
3698
3699 2014-07-11 Yao Qi <yao@codesourcery.com>
3700
3701 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3702 thumb_instruction_restores_sp return true.
3703
3704 2014-07-11 Yao Qi <yao@codesourcery.com>
3705
3706 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3707 (thumb_in_function_epilogue_p): Call
3708 thumb_instruction_restores_sp.
3709
3710 2014-07-11 Yao Qi <yao@codesourcery.com>
3711
3712 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3713 'add sp, #imm'.
3714 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3715
3716 2014-07-11 Gary Benson <gbenson@redhat.com>
3717
3718 * amd64-linux-nat.c (gdbcore.h): Remove include.
3719 (regset.h): Likewise.
3720 (nat/linux-btrace.h): Likewise.
3721 (btrace.h): Likewise.
3722 (gdb_assert.h): Likewise.
3723 (string.h): Likewise.
3724 (sys/uio.h): Likewise.
3725 (sys/debugreg.h): Likewise.
3726 (sys/syscall.h): Likewise.
3727 (sys/procfs.h): Likewise.
3728 (sys/user.h): Likewise.
3729 (asm/ptrace.h): Likewise.
3730 (i386-nat.h): Likewise.
3731 * i386-linux-nat.c (i386-nat.h): Likewise.
3732 (regset.h): Likewise.
3733 (target.h): Likewise.
3734 (linux-nat.h): Likewise.
3735 (nat/linux-btrace.h): Likewise.
3736 (btrace.h): Likewise.
3737 (gdb_assert.h): Likewise.
3738 (string.h): Likewise.
3739 (sys/uio.h): Likewise.
3740 (sys/user.h): Likewise.
3741 (sys/procfs.h): Likewise.
3742 (sys/reg.h): Likewise.
3743 (sys/debugreg.h): Likewise.
3744 (ORIG_EAX): Remove definition.
3745
3746 2014-07-11 Gary Benson <gbenson@redhat.com>
3747
3748 * i386-linux-nat.h: New file.
3749 * x86-linux-nat.h: Likewise.
3750 * x86-linux-nat.c: Likewise.
3751 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3752 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3753 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3754 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3755 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3756 (PTRACE_SETREGSET): Likewise.
3757 (arch_lwp_info): Now in x86-linux-nat.c.
3758 (have_ptrace_getregset): Now in x86-linux-nat.h.
3759 (x86_linux_dr_get): Now in x86-linux-nat.c.
3760 (x86_linux_dr_set): Likewise.
3761 (x86_linux_dr_get_addr): Likewise.
3762 (x86_linux_dr_get_control): Likewise.
3763 (x86_linux_dr_get_status): Likewise.
3764 (update_debug_registers_callback): Likewise.
3765 (x86_linux_dr_set_control): Likewise.
3766 (x86_linux_dr_set_addr): Likewise.
3767 (x86_linux_prepare_to_resume): Likewise.
3768 (x86_linux_new_thread): Likewise.
3769 (x86_linux_new_fork): Likewise.
3770 (x86_linux_get_thread_area): Likewise.
3771 (super_post_startup_inferior): Likewise.
3772 (x86_linux_child_post_startup_inferior): Likewise.
3773 (AMD64_LINUX_USER64_CS): Likewise.
3774 (AMD64_LINUX_X32_DS): Likewise.
3775 (x86_linux_read_description): Likewise.
3776 (x86_linux_enable_btrace): Likewise.
3777 (x86_linux_disable_btrace): Likewise.
3778 (x86_linux_teardown_btrace): Likewise.
3779 (x86_linux_read_btrace): Likewise.
3780 (x86_linux_create_target): Likewise.
3781 (x86_linux_add_target): Likewise.
3782 * i386-linux-nat.c (x86-linux-nat.h): New include.
3783 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3784 (PTRACE_SETREGSET): Likewise.
3785 (arch_lwp_info): Now in x86-linux-nat.c.
3786 (have_ptrace_getregset): Now in x86-linux-nat.h.
3787 (x86_linux_dr_get): Now in x86-linux-nat.c.
3788 (x86_linux_dr_set): Likewise.
3789 (x86_linux_dr_get_addr): Likewise.
3790 (x86_linux_dr_get_control): Likewise.
3791 (x86_linux_dr_get_status): Likewise.
3792 (update_debug_registers_callback): Likewise.
3793 (x86_linux_dr_set_control): Likewise.
3794 (x86_linux_dr_set_addr): Likewise.
3795 (x86_linux_prepare_to_resume): Likewise.
3796 (x86_linux_new_thread): Likewise.
3797 (x86_linux_new_fork): Likewise.
3798 (x86_linux_get_thread_area): Likewise.
3799 (super_post_startup_inferior): Likewise.
3800 (x86_linux_child_post_startup_inferior): Likewise.
3801 (AMD64_LINUX_USER64_CS): Likewise.
3802 (AMD64_LINUX_X32_DS): Likewise.
3803 (x86_linux_read_description): Likewise.
3804 (x86_linux_enable_btrace): Likewise.
3805 (x86_linux_disable_btrace): Likewise.
3806 (x86_linux_teardown_btrace): Likewise.
3807 (x86_linux_read_btrace): Likewise.
3808 (x86_linux_create_target): Likewise.
3809 (x86_linux_add_target): Likewise.
3810
3811 2014-07-11 Gary Benson <gbenson@redhat.com>
3812
3813 * amd64-linux-nat.c: Comment and whitespace changes.
3814 * i386-linux-nat.c: Comment and whitespace changes.
3815
3816 2014-07-11 Gary Benson <gbenson@redhat.com>
3817
3818 * amd64-linux-nat.c (x86_linux_create_target): New function.
3819 (x86_linux_add_target): Likewise.
3820 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3821 * i386-linux-nat.c (x86_linux_create_target): New function.
3822 (x86_linux_add_target): Likewise.
3823 (_initialize_i386_linux_nat): Delegate to the above new functions.
3824
3825 2014-07-11 Gary Benson <gbenson@redhat.com>
3826
3827 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3828 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3829 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3830 (ps_get_thread_area): Delegate to the above.
3831
3832 2014-07-11 Gary Benson <gbenson@redhat.com>
3833
3834 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3835 x86_linux_read_description. All uses updated. amd64-specific
3836 code conditionalized. Conditionalized i386-specific code added.
3837 Redundant cast removed.
3838 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3839 x86_linux_read_description. All uses updated. i386-specific
3840 code conditionalized. Conditionalized amd64-specific code added.
3841 One sizeof replaced with the actual type it is describing.
3842
3843 2014-07-11 Gary Benson <gbenson@redhat.com>
3844
3845 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3846 x86_linux_dr_get. All uses updated.
3847 (amd64_linux_dr_set): Renamed to
3848 x86_linux_dr_set. All uses updated.
3849 (amd64_linux_dr_get_addr): Renamed to
3850 x86_linux_dr_get_addr. All uses updated.
3851 (amd64_linux_dr_get_control): Renamed to
3852 x86_linux_dr_get_control. All uses updated.
3853 (amd64_linux_dr_get_status): Renamed to
3854 x86_linux_dr_get_status. All uses updated.
3855 (amd64_linux_dr_set_control): Renamed to
3856 x86_linux_dr_set_control. All uses updated.
3857 (amd64_linux_dr_set_addr): Renamed to
3858 x86_linux_dr_set_addr. All uses updated.
3859 (amd64_linux_prepare_to_resume): Renamed to
3860 x86_linux_prepare_to_resume. All uses updated.
3861 (amd64_linux_new_thread): Renamed to
3862 x86_linux_new_thread. All uses updated.
3863 (amd64_linux_new_fork): Renamed to
3864 x86_linux_new_fork. All uses updated.
3865 (amd64_linux_child_post_startup_inferior): Renamed to
3866 x86_linux_child_post_startup_inferior. All uses updated.
3867 (amd64_linux_enable_btrace): Renamed to
3868 x86_linux_enable_btrace. All uses updated.
3869 (amd64_linux_disable_btrace): Renamed to
3870 x86_linux_disable_btrace. All uses updated.
3871 (amd64_linux_teardown_btrace): Renamed to
3872 x86_linux_teardown_btrace. All uses updated.
3873 (amd64_linux_read_btrace): Renamed to
3874 x86_linux_read_btrace. All uses updated.
3875 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3876 x86_linux_dr_get. All uses updated.
3877 (i386_linux_dr_set): Renamed to
3878 x86_linux_dr_set. All uses updated.
3879 (i386_linux_dr_get_addr): Renamed to
3880 x86_linux_dr_get_addr. All uses updated.
3881 (i386_linux_dr_get_control): Renamed to
3882 x86_linux_dr_get_control. All uses updated.
3883 (i386_linux_dr_get_status): Renamed to
3884 x86_linux_dr_get_status. All uses updated.
3885 (i386_linux_dr_set_control): Renamed to
3886 x86_linux_dr_set_control. All uses updated.
3887 (i386_linux_dr_set_addr): Renamed to
3888 x86_linux_dr_set_addr. All uses updated.
3889 (i386_linux_prepare_to_resume): Renamed to
3890 x86_linux_prepare_to_resume. All uses updated.
3891 (i386_linux_new_thread): Renamed to
3892 x86_linux_new_thread. All uses updated.
3893 (i386_linux_new_fork): Renamed to
3894 x86_linux_new_fork. All uses updated.
3895 (i386_linux_child_post_startup_inferior): Renamed to
3896 x86_linux_child_post_startup_inferior. All uses updated.
3897 (i386_linux_enable_btrace): Renamed to
3898 x86_linux_enable_btrace. All uses updated.
3899 (i386_linux_disable_btrace): Renamed to
3900 x86_linux_disable_btrace. All uses updated.
3901 (i386_linux_teardown_btrace): Renamed to
3902 x86_linux_teardown_btrace. All uses updated.
3903 (i386_linux_read_btrace): Renamed to
3904 x86_linux_read_btrace. All uses updated.
3905
3906 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3907
3908 * remote.c (extended_remote_post_attach): New function.
3909 (init_extended_remote_ops): Install it as to_post_attach method.
3910
3911 2014-07-09 Pedro Alves <palves@redhat.com>
3912
3913 * infcmd.c (attach_command_post_wait): Don't call
3914 target_terminal_inferior here.
3915 (attach_command): Call it here instead.
3916
3917 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3918
3919 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3920 field.
3921 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3922 from varobj.c, with additional checks.
3923 (c_varobj_ops): Fill in is_path_expr_parent field.
3924 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3925 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3926 field.
3927 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3928 ops method.
3929 (varobj_default_is_path_expr_parent): New function.
3930 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3931 (varobj_default_is_path_expr_parent): Declare new function.
3932
3933 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3934
3935 * infcmd.c (finish_backward): Turn internal error into normal error.
3936
3937 2014-07-07 Pedro Alves <palves@redhat.com>
3938
3939 PR gdb/17096
3940 * remote.c (async_handle_remote_sigint)
3941 (async_handle_remote_sigint_twice): Call
3942 gdb_call_async_signal_handler instead of
3943 mark_async_signal_handler.
3944
3945 2014-07-07 Tom Tromey <tromey@redhat.com>
3946
3947 * target-delegates.c: Rebuild.
3948 * target.c (target_info_record): Remove.
3949 * record.c (info_record_command): Unconditionally call
3950 to_info_record.
3951 * target.h (struct target_ops) <to_info_record>: Use
3952 TARGET_DEFAULT_IGNORE.
3953 (target_info_record): Remove.
3954
3955 2014-07-07 Tom Tromey <tromey@redhat.com>
3956
3957 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3958 TARGET_DEFAULT_NORETURN.
3959 * target.c (generic_tls_error): New function.
3960 (target_translate_tls_address): Don't search target stack.
3961 * target-delegates.c: Rebuild.
3962 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3963 stack.
3964 * linux-thread-db.c (thread_db_get_thread_local_address):
3965 Unconditionally call beneath target.
3966
3967 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3968
3969 * cli/cli-logging.c (pop_output_files): Assign targerr to
3970 gdb_stdtargerr.
3971
3972 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3973
3974 * MAINTAINERS (Write After Approval): Update my email address.
3975
3976 2014-07-02 Gary Benson <gbenson@redhat.com>
3977
3978 * proc-service.c (ps_xfer_memory): Update comment.
3979 (ps_pstop): Remove unused function.
3980 (ps_pcontinue): Likewise.
3981 (ps_lstop): Likewise.
3982 (ps_lcontinue): Likewise.
3983 (ps_lgetxregsize): Likewise.
3984 (ps_lgetxregs): Likewise.
3985 (ps_lsetxregs): Likewise.
3986 (ps_plog): Likewise.
3987 (ps_ptread): Likewise.
3988 (ps_ptwrite): Likewise.
3989
3990 2014-07-01 Mark Wielaard <mjw@redhat.com>
3991
3992 * dwarf2read.c (add_array_cv_type): New function.
3993 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3994 (read_tag_volatile_type): Likewise.
3995
3996 2014-07-01 Tom Tromey <tromey@redhat.com>
3997
3998 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3999 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4000 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4001 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4002 * command.h (cmd_cfunc_ftype): Move earlier.
4003 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4004 (add_com, add_info): Use cmd_cfunc_ftype.
4005
4006 2014-06-30 Tom Tromey <tromey@redhat.com>
4007
4008 * symtab.c (operator_chars): Make parameters and return type
4009 const.
4010 (file_matches): Make "files" const.
4011 (struct search_symbols_data) <files>: Now const.
4012 (search_symbols): Make "regexp" and "files" parameters const.
4013 Update.
4014 (symtab_symbol_info): Remove cast.
4015 (rbreak_command): Update.
4016 * symtab.h (search_symbols): Update.
4017
4018 2014-06-27 Yao Qi <yao@codesourcery.com>
4019
4020 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4021 Change parameter type to 'struct thread_info *'. Caller
4022 updated.
4023 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4024 Update declaration.
4025 * dummy-frame.c (struct dummy_frame_id): New.
4026 (dummy_frame_id_eq): New function.
4027 (struct dummy_frame) <id>: Change its type to 'struct
4028 dummy_frame_id'.
4029 (dummy_frame_push): Add parameter ptid and save it in
4030 dummy_frame_id.
4031 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4032 inferior_ptid.
4033 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4034 to inferior_ptid.
4035 (lookup_dummy_frame): Change parameter type to 'struct
4036 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4037 instead of frame_id_eq.
4038 (dummy_frame_pop): Add parameter ptid. Callers updated.
4039 Update comments. Compose dummy_frame_id and pass it to
4040 lookup_dummy_frame.
4041 (dummy_frame_discard): Add parameter ptid.
4042 (dummy_frame_sniffer): Compose dummy_frame_id and call
4043 dummy_frame_id_eq instead of frame_id_eq.
4044 (fprint_dummy_frames): Print ptid.
4045 * dummy-frame.h: Remove comments.
4046 (dummy_frame_push): Add ptid in declaration.
4047 (dummy_frame_pop, dummy_frame_discard): Likewise.
4048
4049 2014-06-26 Tom Tromey <tromey@redhat.com>
4050
4051 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4052 * command.h (error_no_arg): Update.
4053
4054 2014-06-26 Tom Tromey <tromey@redhat.com>
4055
4056 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4057 (do_show_command): Make "arg" const.
4058 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4059
4060 2014-06-26 Tom Tromey <tromey@redhat.com>
4061
4062 * record-full.c (record_full_get_bookmark): Make "args" const.
4063 (record_full_goto_bookmark): Make "raw_bookmark" const.
4064 * record.c (record_goto): New function.
4065 (cmd_record_goto): Use it. Now static.
4066 * record.h (record_goto): Declare.
4067 (cmd_record_goto): Remove declaration.
4068 * target-delegates.c: Rebuild.
4069 * target.h (struct target_ops) <to_get_bookmark,
4070 to_goto_bookmark>: Make parameter const.
4071
4072 2014-06-26 Tom Tromey <tromey@redhat.com>
4073
4074 * defs.h (generic_load): Update.
4075 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4076 * monitor.c (monitor_load): Make "args" const.
4077 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4078 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4079 const.
4080 (mips_load): Make "file" const.
4081 * remote-sim.c (gdbsim_load): Make "args" const.
4082 * remote.c (remote_load): Make "name" const.
4083 * symfile.c (generic_load): Make "args" const.
4084 * target-delegates.c: Rebuild.
4085 * target.c (target_load): Make "arg" const.
4086 (debug_to_load): Make "args" const.
4087 * target.h (struct target_ops) <to_load>: Make parameter const.
4088 (target_load): Update.
4089
4090 2014-06-26 Tom Tromey <tromey@redhat.com>
4091
4092 PR symtab/16902:
4093 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4094 (dwarf2_physname, read_partial_die)
4095 (guess_partial_die_structure_name, fixup_partial_die)
4096 (guess_full_die_structure_name, anonymous_struct_prefix)
4097 (dwarf2_name): Use per-BFD obstack.
4098
4099 2014-06-26 Yao Qi <yao@codesourcery.com>
4100
4101 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4102 dummyframe and this_id into inner block below.
4103
4104 2014-06-26 Yao Qi <yao@codesourcery.com>
4105
4106 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4107 with "signal_pass[0]" in the initialization of signal_pass.
4108
4109 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4110
4111 * record-btrace.c (record_btrace_generating_corefile)
4112 (record_btrace_prepare_to_generate_core)
4113 (record_btrace_done_generating_core): New.
4114 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4115 (record_btrace_store_registers, record_btrace_prepare_to_store):
4116 Forward request when generating a core file.
4117 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4118 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4119 to_done_generating_core.
4120
4121 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4122
4123 * target.h (target_ops) <to_prepare_to_generate_core>
4124 <to_done_generating_core>: New.
4125 (target_prepare_to_generate_core, target_done_generating_core): New.
4126 * target.c (target_prepare_to_generate_core)
4127 (target_done_generating_core): New.
4128 * target-delegates.c: Regenerate.
4129 * gcore.c: (write_gcore_file): Rename to ...
4130 (write_gcore_file_1): ...this.
4131 (write_gcore_file): Call target_prepare_to_generate_core
4132 and target_done_generating_core.
4133
4134 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4135
4136 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4137 * gcore.c (write_gcore_file): Free memory returned from
4138 make_corefile_notes.
4139 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4140 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4141
4142 2014-06-24 Yao Qi <yao@codesourcery.com>
4143
4144 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4145 (arm_linux_init_abi): Set skip_trampoline_code with
4146 gdbarch_skip_trampoline_code instead of
4147 find_solib_trampoline_target.
4148
4149 2014-06-24 Yao Qi <yao@codesourcery.com>
4150
4151 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4152 arm_skip_bx_reg returns non-zero.
4153
4154 2014-06-24 Yao Qi <yao@codesourcery.com>
4155
4156 * arm-tdep.c (arm_skip_bx_reg): New function.
4157 (arm_skip_stub): Call arm_skip_bx_reg.
4158
4159 2014-06-23 Don Breazeal <donb@codesourcery.com>
4160
4161 * MAINTAINERS: Add myself as write-after-approval maintainer.
4162
4163 2014-06-23 Pedro Alves <palves@redhat.com>
4164
4165 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4166 DR_CONTROL before setting DR0..DR3.
4167 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4168 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4169 bits of DR_CONTROL related to the debug register slot being
4170 disabled. If all slots are vacant, clear local slowdown as well,
4171 and assert DR_CONTROL is 0.
4172
4173 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4174
4175 * python/lib/gdb/command/xmethods.py
4176 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4177 current progspace only if the string "progspace" matches LOCUS_RE.
4178
4179 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4180
4181 Fix --with-system-readline with readline-6.3 patch 5.
4182 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4183 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4184 types.
4185
4186 2014-06-20 Tom Tromey <tromey@redhat.com>
4187
4188 * dwarf2read.c (dw2_get_real_path): Use correct type in
4189 OBSTACK_CALLOC.
4190 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4191
4192 2014-06-20 Gary Benson <gbenson@redhat.com>
4193
4194 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4195 * common/glibc_thread_db.h: Likewise.
4196 * common/i386-cpuid.h: Likewise.
4197 * common/i386-gcc-cpuid.h: Likewise.
4198 * common/linux-btrace.h: Likewise.
4199 * common/linux-osdata.h: Likewise.
4200 * common/linux-procfs.h: Likewise.
4201 * common/linux-ptrace.h: Likewise.
4202 * common/mips-linux-watch.h: Likewise.
4203 * common/linux-btrace.c: Moved to nat.
4204 * common/linux-osdata.c: Likewise.
4205 * common/linux-procfs.c: Likewise.
4206 * common/linux-ptrace.c: Likewise.
4207 * common/mips-linux-watch.c: Likewise.
4208 * nat/gdb_thread_db.h: Moved from common.
4209 * nat/glibc_thread_db.h: Likewise.
4210 * nat/i386-cpuid.h: Likewise.
4211 * nat/i386-gcc-cpuid.h: Likewise.
4212 * nat/linux-btrace.c: Likewise.
4213 * nat/linux-btrace.h: Likewise.
4214 * nat/linux-osdata.c: Likewise.
4215 * nat/linux-osdata.h: Likewise.
4216 * nat/linux-procfs.c: Likewise.
4217 * nat/linux-procfs.h: Likewise.
4218 * nat/linux-ptrace.c: Likewise.
4219 * nat/linux-ptrace.h: Likewise.
4220 * nat/mips-linux-watch.c: Likewise.
4221 * nat/mips-linux-watch.h: Likewise.
4222 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4223 (object file files): Reordered.
4224 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4225 of glibc_thread_db.h.
4226
4227 2014-06-20 Gary Benson <gbenson@redhat.com>
4228
4229 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4230 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4231 (i386_dr_low): Likewise.
4232 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4233 (i386_dr_low_set_addr): Likewise.
4234 (i386_dr_low_get_addr): Likewise.
4235 (i386_dr_low_can_set_control): Likewise.
4236 (i386_dr_low_set_control): Likewise.
4237 (i386_dr_low_get_control): Likewise.
4238 (i386_dr_low_get_status): Likewise.
4239 (i386_get_debug_register_length): Likewise.
4240 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4241 (i386_dr_low): Likewise.
4242 * nat/i386-dregs.c (i386-low.h): Remove include.
4243 (i386-nat.h): Likewise.
4244 (nat/i386-dregs.h): New include.
4245 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4246 (i386_dr_low_set_addr): Likewise.
4247 (i386_dr_low_get_addr): Likewise.
4248 (i386_dr_low_can_set_control): Likewise.
4249 (i386_dr_low_set_control): Likewise.
4250 (i386_dr_low_get_control): Likewise.
4251 (i386_dr_low_get_status): Likewise.
4252 (i386_get_debug_register_length): Likewise.
4253 (debug_hw_points): Likewise.
4254
4255 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4256
4257 * Makefile.in (SFILES): Add d-exp.y.
4258 (YYFILES): Add d-exp.c.
4259 (YYOBJ): Add d-exp.o.
4260 (local-maintainer-clean): Delete d-exp.c.
4261 * d-exp.y: New file.
4262 * d-lang.h (d_parse): New declaration.
4263 (d_error): New declaration.
4264 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4265 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4266 PREC_ORDER operators.
4267 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4268
4269 2014-06-19 Yao Qi <yao@codesourcery.com>
4270
4271 * gdbthread.h (any_running): Remove the declaration.
4272 * thread.c (any_running): Remove.
4273
4274 2014-06-19 Yao Qi <yao@codesourcery.com>
4275
4276 * gdbthread.h (struct thread_info) <state>: Change its type to
4277 'enum thread_state'. Update comments.
4278
4279 2014-06-19 Pedro Alves <palves@redhat.com>
4280
4281 * gdbthread.h (ALL_THREADS): Delete.
4282 (ALL_NON_EXITED_THREADS): New macro.
4283 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4284 instead of ALL_THREADS.
4285 * infrun.c (find_thread_needs_step_over)
4286 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4287 instead of ALL_THREADS.
4288 * record-btrace.c (record_btrace_open)
4289 (record_btrace_stop_recording, record_btrace_close)
4290 (record_btrace_is_replaying, record_btrace_resume)
4291 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4292 * remote.c (append_pending_thread_resumptions): Likewise.
4293 * thread.c (thread_apply_all_command): Likewise.
4294
4295 2014-06-19 Gary Benson <gbenson@redhat.com>
4296
4297 * i386-nat.c (i386_stopped_by_watchpoint):
4298 Use i386_dr_stopped_by_watchpoint.
4299 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4300 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4301
4302 2014-06-19 Gary Benson <gbenson@redhat.com>
4303
4304 * nat/i386-dregs.c: New file.
4305 * Makefile.in (i386-dregs.o): New rule.
4306 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4307 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4308 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4309 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4310 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4311 * config/i386/go32.mh (NATDEPFILES): Likewise.
4312 * config/i386/linux.mh (NATDEPFILES): Likewise.
4313 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4314 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4315 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4316 * i386-nat.h (debug_hw_points): New declaration.
4317 * i386-nat.c (breakpoint.h): Remove include.
4318 (command.h): Likewise.
4319 (target.h): Likewise.
4320 (gdb_assert.h): Likewise.
4321 (debug_hw_points): Made nonstatic.
4322 (debug_printf): Now in i386-dregs.c.
4323 (TARGET_HAS_DR_LEN_8): Likewise.
4324 (DR_CONTROL_SHIFT): Likewise.
4325 (DR_CONTROL_SIZE): Likewise.
4326 (DR_RW_EXECUTE): Likewise.
4327 (DR_RW_WRITE): Likewise.
4328 (DR_RW_READ): Likewise.
4329 (DR_RW_IORW): Likewise.
4330 (DR_LEN_1): Likewise.
4331 (DR_LEN_2): Likewise.
4332 (DR_LEN_4): Likewise.
4333 (DR_LEN_8): Likewise.
4334 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4335 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4336 (DR_ENABLE_SIZE): Likewise.
4337 (DR_LOCAL_SLOWDOWN): Likewise.
4338 (DR_GLOBAL_SLOWDOWN): Likewise.
4339 (DR_CONTROL_RESERVED): Likewise.
4340 (I386_DR_CONTROL_MASK): Likewise.
4341 (I386_DR_VACANT): Likewise.
4342 (I386_DR_LOCAL_ENABLE): Likewise.
4343 (I386_DR_GLOBAL_ENABLE): Likewise.
4344 (I386_DR_DISABLE): Likewise.
4345 (I386_DR_SET_RW_LEN): Likewise.
4346 (I386_DR_GET_RW_LEN): Likewise.
4347 (I386_DR_WATCH_HIT): Likewise.
4348 (i386_wp_op_t): Likewise.
4349 (i386_show_dr): Likewise.
4350 (i386_length_and_rw_bits): Likewise.
4351 (i386_insert_aligned_watchpoint): Likewise.
4352 (i386_remove_aligned_watchpoint): Likewise.
4353 (i386_handle_nonaligned_watchpoint): Likewise.
4354 (i386_update_inferior_debug_regs): Likewise.
4355 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4356 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4357 (i386_region_ok_for_watchpoint):
4358 Use i386_dr_region_ok_for_watchpoint.
4359 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4360
4361 2014-06-19 Gary Benson <gbenson@redhat.com>
4362
4363 * i386-nat.c (i386_insert_hw_breakpoint): Use
4364 i386_insert_watchpoint.
4365 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4366
4367 2014-06-19 Gary Benson <gbenson@redhat.com>
4368
4369 * i386-nat.c (i386_dr_show): Renamed to
4370 i386_show_dr and made static. All uses updated.
4371 (i386_dr_length_and_rw_bits): Renamed to
4372 i386_length_and_rw_bits and made static.
4373 All uses updated.
4374 (i386_dr_insert_aligned_watchpoint): Renamed to
4375 i386_insert_aligned_watchpoint and made static.
4376 All uses updated.
4377 (i386_dr_remove_aligned_watchpoint): Renamed to
4378 i386_remove_aligned_watchpoint and made static.
4379 All uses updated.
4380 (i386_dr_update_inferior_debug_regs): Renamed to
4381 i386_update_inferior_debug_regs and made static.
4382 All uses updated.
4383 * nat/i386-dregs.h (i386_dr_show): Removed.
4384 (i386_dr_length_and_rw_bits): Likewise.
4385 (i386_dr_insert_aligned_watchpoint): Likewise.
4386 (i386_dr_remove_aligned_watchpoint): Likewise.
4387 (i386_dr_update_inferior_debug_regs): Likewise.
4388
4389 2014-06-19 Gary Benson <gbenson@redhat.com>
4390
4391 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4392 * configure: Regenerate.
4393 * config.in: Likewise.
4394 * main.c (signal.h): New include.
4395 (setup_alternate_signal_stack): New function.
4396 (captured_main): Call the above.
4397 * cp-support.c (signal.h): New include.
4398 (catch_demangler_crashes): New flag.
4399 (SIGJMP_BUF): New define.
4400 (SIGSETJMP): Likewise.
4401 (SIGLONGJMP): Likewise.
4402 (gdb_demangle_jmp_buf): New static global.
4403 (gdb_demangle_attempt_core_dump): Likewise.
4404 (gdb_demangle_signal_handler): New function.
4405 (gdb_demangle): If catch_demangler_crashes is set, install the
4406 above signal handler before calling bfd_demangle, and restore
4407 the original signal handler afterwards. Display the offending
4408 symbol and call demangler_warning the first time a segmentation
4409 fault is caught.
4410 (_initialize_cp_support): New maint set/show command.
4411
4412 2014-06-19 Gary Benson <gbenson@redhat.com>
4413
4414 * utils.h (resource_limit_kind): New enum.
4415 (can_dump_core): New declaration.
4416 (warn_cant_dump_core): Likewise.
4417 (dump_core): Likewise.
4418 * utils.c (dump_core): Made nonstatic. Added new
4419 parameter "limit_kind".
4420 (can_dump_core): Made nonstatic. Moved printing code to...
4421 (warn_cant_dump_core): New function.
4422 (can_dump_core_warn): Likewise.
4423 (internal_vproblem): Replace calls to can_dump_core with
4424 calls to can_dump_core_warn. Supply new argument to each.
4425
4426 2014-06-19 Gary Benson <gbenson@redhat.com>
4427
4428 * utils.h (demangler_vwarning): New declaration.
4429 (demangler_warning): Likewise.
4430 * utils.c (struct internal_problem)
4431 <user_settable_should_quit>: New field.
4432 <user_settable_should_dump_core>: Likewise
4433 (internal_error_problem): Add values for above new fields.
4434 (internal_warning_problem): Likewise.
4435 (demangler_warning_problem): New static global.
4436 (demangler_vwarning): New function.
4437 (demangler_warning): Likewise.
4438 (add_internal_problem_command): Selectively add commands.
4439 (_initialize_utils): New internal problem command.
4440 * maint.c (maintenance_demangler_warning): New function.
4441 (_initialize_maint_cmds): New command.
4442
4443 2014-06-18 Tom Tromey <tromey@redhat.com>
4444
4445 * f-valprint.c (info_common_command_for_block): Update.
4446 * symtab.h (struct general_symbol_info) <common_block>: Now
4447 const.
4448
4449 2014-06-18 Tom Tromey <tromey@redhat.com>
4450
4451 * symtab.h (struct symtab) <blockvector>: Now const.
4452 * ada-lang.c (ada_add_global_exceptions): Update.
4453 * buildsym.c (augment_type_symtab): Update.
4454 * dwarf2read.c (dw2_lookup_symbol): Update.
4455 * jit.c (finalize_symtab): Update.
4456 * jv-lang.c (add_class_symtab_symbol): Update.
4457 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4458 Update.
4459 * objfiles.c (objfile_relocate1): Update.
4460 * psymtab.c (lookup_symbol_aux_psymtabs)
4461 (maintenance_check_psymtabs): Update.
4462 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4463 Update.
4464 * spu-tdep.c (spu_catch_start): Update.
4465 * symmisc.c (dump_symtab_1): Update.
4466 * symtab.c (lookup_global_symbol_from_objfile)
4467 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4468 (basic_lookup_transparent_type_quick)
4469 (basic_lookup_transparent_type, find_pc_sect_symtab)
4470 (find_pc_sect_line, search_symbols): Update.
4471 * block.c (find_block_in_blockvector): Make "bl" const.
4472 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4473 const.
4474 (blockvector_contains_pc): Make "bv" const.
4475 (block_for_pc_sect): Update.
4476 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4477 (blockvector_contains_pc): Update.
4478 * breakpoint.c (resolve_sal_pc): Update.
4479 * inline-frame.c (block_starting_point_at): Update.
4480
4481 2014-06-18 Tom Tromey <tromey@redhat.com>
4482
4483 * completer.c (complete_line): Make "line_buffer" const.
4484 * completer.h (complete_line): Update.
4485
4486 2014-06-18 Tom Tromey <tromey@redhat.com>
4487
4488 * symtab.c (add_macro_name): Remove unneeded cast.
4489
4490 2014-06-18 Tom Tromey <tromey@redhat.com>
4491
4492 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4493 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4494
4495 2014-06-18 Tom Tromey <tromey@redhat.com>
4496
4497 * probe.c (info_probes_for_ops): Make "arg" const.
4498 * probe.h (info_probes_for_ops): Update.
4499
4500 2014-06-18 Tom Tromey <tromey@redhat.com>
4501
4502 * varobj.c (varobj_create): Update.
4503 * valops.c (value_of_this): Update.
4504 * tracepoint.c (add_local_symbols, scope_info): Update.
4505 * symtab.h (struct general_symbol_info) <block>: Now const.
4506 * symtab.c (skip_prologue_sal)
4507 (default_make_symbol_completion_list_break_on)
4508 (skip_prologue_using_sal): Update.
4509 * stack.h (iterate_over_block_locals)
4510 (iterate_over_block_local_vars): Update.
4511 * stack.c (print_frame_args): Update.
4512 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4513 parameter const.
4514 (get_selected_block): Make return type const.
4515 * python/py-frame.c (frapy_block): Update.
4516 * python/py-block.c (gdbpy_block_for_pc): Update.
4517 * p-exp.y (%union) <bval>: Now const.
4518 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4519 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4520 * m2-exp.y (%union) <bval>: Now const.
4521 * linespec.c (get_current_search_block): Make return type const.
4522 (create_sals_line_offset, find_label_symbols): Update.
4523 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4524 Update.
4525 (block_starting_point_at): Make "block" const.
4526 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4527 (check_exception_resume): Update.
4528 * guile/scm-frame.c (gdbscm_frame_block): Update.
4529 * guile/scm-block.c (gdbscm_lookup_block): Update.
4530 * frame.h (get_frame_block): Update.
4531 (get_selected_block): Make return type const.
4532 * frame.c (frame_id_inner): Update.
4533 * f-valprint.c (info_common_command_for_block)
4534 (info_common_command): Update.
4535 * dwarf2loc.c (dwarf2_find_location_expression)
4536 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4537 (locexpr_describe_location_piece): Update.
4538 * c-exp.y (%union) <bval>: Now const.
4539 * breakpoint.c (resolve_sal_pc): Update.
4540 * blockframe.c (get_frame_block):Make return type const.
4541 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4542 (block_innermost_frame): Update.
4543 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4544 (block_for_pc, block_for_pc_sect): Update.
4545 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4546 'pblock' const.
4547 (block_for_pc_sect, block_for_pc): Make return type const.
4548 * ax-gdb.c (gen_expr): Update.
4549 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4550 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4551 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4552 (ada_read_var_value): Update.
4553 * ada-exp.y (struct name_info) <block>: Now const.
4554 (%union): Likewise.
4555 (block_lookup): Constify.
4556
4557 2014-06-18 Gary Benson <gbenson@redhat.com>
4558
4559 * nat/i386-dregs.h: New file.
4560 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4561 * i386-nat.h (i386-dregs.h): New include.
4562 (DR_FIRSTADDR): Now in i386-dregs.h.
4563 (DR_LASTADDR): Likewise.
4564 (DR_NADDR): Likewise.
4565 (DR_STATUS): Likewise.
4566 (DR_CONTROL): Likewise.
4567 (i386_debug_reg_state): Likewise.
4568 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4569
4570 2014-06-18 Don Breazeal <donb@codesourcery.com>
4571
4572 * breakpoint.c (set_longjmp_breakpoint): Call
4573 momentary_breakpoint_from_master with additional argument.
4574 (set_longjmp_breakpoint_for_call_dummy): Call
4575 momentary_breakpoint_from_master with additional argument.
4576 (set_std_terminate_breakpoint): Call
4577 momentary_breakpoint_from_master with additional argument.
4578 (momentary_breakpoint_from_master): Add argument to function
4579 definition and use it to initialize structure member flag.
4580 (clone_momentary_breakpoint): Call
4581 momentary_breakpoint_from_master with additional argument.
4582 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4583 member flags set in momentary_breakpoint_from_master.
4584
4585 2014-06-18 Gary Benson <gbenson@redhat.com>
4586
4587 * i386-nat.c (i386_show_dr): Renamed to
4588 i386_dr_show and made nonstatic. All uses updated.
4589 (i386_length_and_rw_bits): Renamed to
4590 i386_dr_length_and_rw_bits and made nonstatic.
4591 All uses updated.
4592 (i386_insert_aligned_watchpoint): Renamed to
4593 i386_dr_insert_aligned_watchpoint and made nonstatic.
4594 All uses updated.
4595 (i386_remove_aligned_watchpoint): Renamed to
4596 i386_dr_remove_aligned_watchpoint and made nonstatic.
4597 All uses updated.
4598 (i386_update_inferior_debug_regs): Renamed to
4599 i386_dr_update_inferior_debug_regs and made nonstatic.
4600 All uses updated.
4601
4602 2014-06-18 Gary Benson <gbenson@redhat.com>
4603
4604 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4605 (i386_dr_low_can_set_control): Likewise.
4606 (i386_dr_low_set_addr): Likewise.
4607 (i386_dr_low_set_control): Likewise.
4608 (i386_dr_low_get_addr): Likewise.
4609 (i386_dr_low_get_status): Likewise.
4610 (i386_dr_low_get_control): Likewise.
4611 (i386_insert_aligned_watchpoint): Use new macros.
4612 (i386_update_inferior_debug_regs): Likewise.
4613 (i386_stopped_data_address): Likewise.
4614
4615 2014-06-18 Gary Benson <gbenson@redhat.com>
4616
4617 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4618 New parameter. All uses updated.
4619
4620 2014-06-18 Gary Benson <gbenson@redhat.com>
4621
4622 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4623 All uses updated.
4624
4625 2014-06-18 Gary Benson <gbenson@redhat.com>
4626
4627 * i386-nat.c (debug_printf): New macro.
4628 (i386_get_debug_register_length): Likewise.
4629 (TARGET_HAS_DR_LEN_8): Use above macro.
4630 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4631 and printf_unfiltered. Use phex to format values.
4632
4633 2014-06-18 Gary Benson <gbenson@redhat.com>
4634
4635 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4636 Make const.
4637
4638 2014-06-18 Gary Benson <gbenson@redhat.com>
4639
4640 * i386-nat.c: Comment changes.
4641
4642 2014-06-18 Gary Benson <gbenson@redhat.com>
4643
4644 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4645
4646 2014-06-18 Gary Benson <gbenson@redhat.com>
4647
4648 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4649 (i386_insert_aligned_watchpoint): Likewise.
4650 (i386_remove_aligned_watchpoint): Likewise.
4651 (i386_handle_nonaligned_watchpoint): Likewise.
4652
4653 2014-06-18 Gary Benson <gbenson@redhat.com>
4654
4655 * i386-nat.c: Whitespace changes.
4656
4657 2014-06-17 Samuel Bronson <naesten@gmail.com>
4658
4659 * MAINTAINERS: Update Roland McGrath's email address.
4660 Thanks to Sergio Durigan Junior for pointing out that he left
4661 Red Hat a while ago, and giving me a current address.
4662
4663 2014-06-17 Tom Tromey <tromey@redhat.com>
4664
4665 * utils.h (savestring): Remove declaration.
4666
4667 2014-06-17 Tom Tromey <tromey@redhat.com>
4668
4669 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4670
4671 2014-06-16 Keith Seitz <keiths@redhat.com>
4672
4673 PR mi/15863
4674 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4675 to update the varobj if inferior_ptid is null_ptid.
4676
4677 2014-06-16 Tom Tromey <tromey@redhat.com>
4678
4679 * target.h (struct target_ops) <to_info_proc>: Make parameter
4680 const.
4681 (target_info_proc): Update.
4682 * target.c (target_info_proc): Make "args" const.
4683 * procfs.c (procfs_info_proc): Update.
4684 * linux-tdep.c (linux_info_proc): Update.
4685 (linux_core_info_proc_mappings): Make "args" const.
4686 (linux_core_info_proc): Update.
4687 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4688 * gdbarch.c: Rebuild.
4689 * gdbarch.h: Rebuild.
4690 * corelow.c (core_info_proc): Update.
4691
4692 2014-06-16 Tom Tromey <tromey@redhat.com>
4693
4694 * target.h (struct target_ops) <to_disconnect>: Make parameter
4695 const.
4696 (target_disconnect): Update.
4697 * target.c (target_disconnect): Make "args" const.
4698 * target-delegates.c: Rebuild.
4699 * remote.c (remote_disconnect): Update.
4700 * record.h (record_disconnect): Update.
4701 * record.c (record_disconnect): Update.
4702 * inf-child.c (inf_child_disconnect): Update.
4703
4704 2014-06-16 Tom Tromey <tromey@redhat.com>
4705
4706 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4707 * target.c (debug_to_rcmd, default_rcmd): Update.
4708 * target-delegates.c: Rebuild.
4709 * remote.c (remote_rcmd): Update.
4710 * monitor.c (monitor_rcmd): Update.
4711
4712 2014-06-16 Pedro Alves <palves@redhat.com>
4713
4714 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4715 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4716 have OBJF_SHARED set.
4717 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4718 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4719 instead of OBJF_USERLOADED.
4720 * objfiles.h (OBJF_SHARED): Update comment.
4721 (userloaded_objfile_contains_address_p): Rename to ...
4722 (shared_objfile_contains_address_p): ... this, and update
4723 comments.
4724 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4725 new objfile.
4726 (remove_symbol_file_command): Skip objfiles that don't have
4727 OBJF_SHARED set.
4728
4729 2014-06-16 Tom Tromey <tromey@redhat.com>
4730
4731 * minsyms.h (prim_record_minimal_symbol)
4732 (prim_record_minimal_symbol_and_info): Update comments.
4733
4734 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4735
4736 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4737 or --without-guile, according to how GDB was built.
4738
4739 2014-06-13 Tom Tromey <tromey@redhat.com>
4740
4741 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4742 to help_list.
4743 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4744 to help_list.
4745 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4746 help_list.
4747 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4748 help_list.Pass all_commands, not -1, to help_list.
4749 * cli/cli-dump.c (dump_command, append_command)
4750 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4751 (binary_dump_command, binary_append_command): Pass all_commands,
4752 not -1, to help_list.
4753 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4754 -1, to help_list.
4755 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4756 -1, to help_list.
4757 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4758 help_list.
4759 * top.c (set_history): Pass all_commands, not -1, to help_list.
4760 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4761 all_commands, not -1, to help_list.
4762 * symfile.c (overlay_command): Pass all_commands, not -1, to
4763 help_list.
4764 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4765 help_list.
4766 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4767 help_list.
4768 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4769 -1, to help_list.
4770 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4771 not -1, to help_list.
4772 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4773 not -1, to help_list.
4774 * maint.c (maintenance_command, maintenance_info_command)
4775 (maintenance_print_command, maintenance_set_cmd): Pass
4776 all_commands, not -1, to help_list.
4777 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4778 help_list.
4779 * language.c (set_check): Pass all_commands, not -1, to help_list.
4780 * infcmd.c (unset_command): Pass all_commands, not -1, to
4781 help_list.
4782 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4783 help_list.
4784 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4785 help_list.
4786 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4787 help_list.
4788 * breakpoint.c (save_command): Pass all_commands, not -1, to
4789 help_list.
4790 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4791 all_commands, not -1, to help_list.
4792
4793 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4794
4795 * regcache.c (struct register_to_invalidate): New structure.
4796 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4797 functions.
4798 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4799
4800 2014-06-12 Yao Qi <yao@codesourcery.com>
4801
4802 * varobj.c (varobj_get_num_children): Call
4803 varobj_is_dynamic_p.
4804 (varobj_list_children): Likewise.
4805 (varobj_update): Likewise. Update comments.
4806
4807 2014-06-12 Yao Qi <yao@codesourcery.com>
4808
4809 * varobj.c (varobj_pretty_printed_p): Rename to ...
4810 (varobj_is_dynamic_p): ... this. New function.
4811 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4812 (varobj_is_dynamic_p): Declare.
4813 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4814 (mi_print_value_p, varobj_update_one): Likewise.
4815
4816 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4817 Yao Qi <yao@codesourcery.com>
4818
4819 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4820 (varobj_get_iterator): Wrap up code for pretty-printer by
4821 "#if HAVE_PYTHON" and "#endif".
4822 (update_dynamic_varobj_children): Likewise.
4823
4824 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4825 Yao Qi <yao@codesourcery.com>
4826
4827 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4828 gdb_python_initialized is false. Move some code from varobj.c.
4829 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4830 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4831 (struct varobj_item): Moved to varobj-iter.h".
4832 (varobj_clear_saved_item): New function.
4833 (update_dynamic_varobj_children): Move python-related code to
4834 py-varobj.c.
4835 (free_variable): Call varobj_clear_saved_item and
4836 varobj_iter_delete.
4837
4838 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4839 Yao Qi <yao@codesourcery.com>
4840
4841 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4842 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4843 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4844 (py-varobj.o): New rule.
4845 * python/py-varobj.c: New file.
4846 * python/python-internal.h (py_varobj_get_iterator): Declare.
4847 * varobj-iter.h: New file.
4848 * varobj.c: Include "varobj-iter.h"
4849 (struct varobj) <child_iter>: Change its type from "PyObject *"
4850 to "struct varobj_iter *".
4851 <saved_item>: Likewise.
4852 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4853 [HAVE_PYTHON] (varobj_get_iterator): New function.
4854 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4855 python-specific code to python/py-varobj.c.
4856 (install_visualizer): Call varobj_iter_delete instead of
4857 Py_XDECREF.
4858 * varobj.h (varobj_ensure_python_env): Declare.
4859
4860 2014-06-12 Yao Qi <yao@codesourcery.com>
4861
4862 * varobj.c (struct varobj_item): New structure.
4863 (create_child_with_value): Update declaration.
4864 (varobj_add_child): Replace arguments 'name' and 'value' with
4865 'item'. All callers updated.
4866 (install_dynamic_child): Likewise.
4867 (update_dynamic_varobj_children): Likewise.
4868 (varobj_add_child): Likewise.
4869 (create_child_with_value): Likewise.
4870
4871 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4872
4873 * NEWS: Create a new section for the next release branch.
4874 Rename the section of the current branch, now that it has
4875 been cut.
4876
4877 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4878
4879 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4880 * version.in: Bump version to 7.8.50.DATE-cvs.
4881
4882 2014-06-11 Pedro Alves <palves@redhat.com>
4883
4884 PR remote/17028
4885 * ser-mingw.c (net_windows_socket_check_pending): New function.
4886 (net_windows_select_thread): Ignore spurious wakeups. Use
4887 net_windows_socket_check_pending.
4888 (net_windows_wait_handle): Check for pending events with
4889 ioctlsocket, through net_windows_socket_check_pending, instead of
4890 checking the socket's event.
4891
4892 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4893
4894 * python/python-internal.h (gdb_PyObject_GetAttrString)
4895 (gdb_PyObject_HasAttrString): New inline function definitions.
4896 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4897 char * of the second argument to PyObject_GetAttrString.
4898
4899 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4900
4901 * serial.c (serial_write): Fix index of character to be printed
4902 in call to serial_logchar when serial debug traces are enabled.
4903
4904 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4905
4906 * gdbtypes (resolve_dynamic_range): Add function description.
4907
4908 2014-06-09 Pedro Alves <palves@redhat.com>
4909
4910 * linux-nat.c (linux_child_follow_fork): Initialize status with
4911 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4912 inner block. Only pass the signal to PTRACE_DETACH if in pass
4913 state.
4914
4915 2014-06-09 Gary Benson <gbenson@redhat.com>
4916
4917 * common/signals.c (gdb_signal_from_host): Reorder to separate
4918 the always-available ANSI-standard signals from the signals that
4919 require checking.
4920 (do_gdb_signal_to_host): Likewise.
4921 * proc-events.c (signal_table): Likewise.
4922
4923 2014-06-08 Hui Zhu <hui@codesourcery.com>
4924
4925 * common/linux-ptrace.c (linux_disable_event_reporting): New
4926 function.
4927 * common/linux-ptrace.h (linux_disable_event_reporting): New
4928 declaration.
4929 * linux-nat.c (linux_child_follow_fork): Do a single step before
4930 detach.
4931
4932 2014-06-07 Keith Seitz <keiths@redhat.com>
4933
4934 Revert:
4935 PR c++/16253
4936 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4937 from symbol_matches_domain in symtab.c. All local callers
4938 of symbol_matches_domain updated.
4939 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4940 search STRUCT_DOMAIN.
4941 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4942 independently. standard_lookup will do that automatically.
4943 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4944 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4945 (cp_lookup_symbol_in_namespace): Likewise.
4946 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4947 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4948 may return a STRUCT_DOMAIN match.
4949 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4950 * cp-support.c: Include language.h.
4951 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4952 VAR_DOMAIN.
4953 * psymtab.c (match_partial_symbol): Compare the requested
4954 domain with the symbol's domain directly.
4955 (lookup_partial_symbol): Likewise.
4956 * symtab.c (lookup_symbol_in_language): Explain when/why
4957 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4958 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4959 appropriate languages.
4960 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4961 and moved to ada-lang.c
4962 (lookup_block_symbol): Explain that this function only returns
4963 symbol matching the requested DOMAIN.
4964 Compare the requested domain with the symbol's domain directly.
4965 (iterate_over_symbols): Compare the requested domain with the
4966 symbol's domain directly.
4967 * symtab.h (symbol_matches_domain): Remove.
4968
4969 2014-06-06 Doug Evans <xdje42@gmail.com>
4970
4971 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4972 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4973 (gdbscm_guile_version_is_at_least): Declare.
4974 (gdbscm_scm_string_to_int): Declare.
4975 * guile/guile.c (gdbscm_guile_major_version): New global.
4976 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4977 (guile_datadir): New static global.
4978 (gdbscm_guile_data_directory): New function.
4979 (initialize_scheme_side): Update.
4980 (misc_guile_functions): Add guile-data-directory.
4981 (initialize_gdb_module): Fetch guile version number.
4982 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4983 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4984 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4985 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4986 comments.
4987 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4988 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4989 * guile/scm-value.c (gdbscm_value_to_string): Only call
4990 scm_port_conversion_strategy if Guile version >= 2.0.6.
4991
4992 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4993
4994 * main.c (print_gdb_help): Add -q and --silent.
4995
4996 2014-06-06 Gary Benson <gbenson@redhat.com>
4997
4998 * common/signals.c: Remove preprocessor conditionals for
4999 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5000 SIGSEGV and SIGTERM.
5001 * proc-events.c: Likewise.
5002
5003 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5004
5005 * symfile.c (symfile_free_objfile): Remove restriction to
5006 OBJF_USERLOADED.
5007 * symfile-mem.c (symbol_file_add_from_memory): Call
5008 add_target_sections_of_objfile.
5009
5010 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5011
5012 * guile/scm-value.c (gdbscm_history_append_x): Use
5013 'vlscm_get_value_smob_arg_unsafe' instead of
5014 'vlscm_scm_to_value'.
5015
5016 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5017
5018 PR mi/15806
5019 * utils.c (printchar): Don't escape at all if quoter is NUL.
5020 Update function documentation to clarify effect of parameter
5021 QUOTER.
5022 * remote.c (escape_buffer): Pass '\\' as the quoter to
5023 fputstrn_unfiltered.
5024 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5025 generate the output.
5026 (mi_solib_unloaded): Same.
5027
5028 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5029
5030 * development.sh: Delete.
5031 * Makefile.in (config.status): Adjust dependency on development.sh.
5032 * configure.ac: Adjust development.sh source call.
5033 * configure: Regenerate.
5034
5035 2014-06-04 Doug Evans <xdje42@gmail.com>
5036
5037 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5038 is_scheme_bkpt, spec.
5039 (bpscm_make_breakpoint_smob): Initialize new members.
5040 (gdbscm_create_breakpoint_x): Split into two ...
5041 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5042 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5043 (scheme_function breakpoint_functions): Update.
5044 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5045 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5046 register-breakpoint!.
5047
5048 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5049
5050 PR server/17023
5051 * mem-break.c (z_type_supported): Return zero if
5052 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5053
5054 2014-06-04 Tom Tromey <tromey@redhat.com>
5055
5056 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5057 value_from_contents_and_address_unresolved.
5058 (ada_template_to_fixed_record_type_1): Likewise.
5059 (ada_which_variant_applies): Likewise.
5060 * value.h (value_from_contents_and_address_unresolved): Declare.
5061 * value.c (value_from_contents_and_address_unresolved): New
5062 function.
5063 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5064 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5065 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5066
5067 2014-06-04 Tom Tromey <tromey@redhat.com>
5068
5069 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5070
5071 2014-06-04 Tom Tromey <tromey@redhat.com>
5072
5073 * procfs.c (procfs_attach): Make "args" const.
5074 * windows-nat.c (windows_attach): Make "args" const.
5075 * nto-procfs.c (procfs_attach): Make "args" const.
5076 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5077 * go32-nat.c (go32_attach): Make "args" const.
5078 * gnu-nat.c (gnu_attach): Make "args" const.
5079 * darwin-nat.c (darwin_attach): Make "args" const.
5080 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5081 * linux-nat.c (linux_nat_attach): Make "args" const.
5082 * remote.c (extended_remote_attach_1, extended_remote_attach):
5083 Make "args" const.
5084 * target.h (struct target_ops) <to_attach>: Make "args" const.
5085 (find_default_attach): Likewise.
5086 * utils.c (parse_pid_to_attach): Make "args" const.
5087 * utils.h (parse_pid_to_attach): Update.
5088
5089 2014-06-04 Tom Tromey <tromey@redhat.com>
5090
5091 * target-delegates.c: Rebuild.
5092 * target.c (default_thread_address_space): New function.
5093 (target_thread_address_space): Simplify.
5094 * target.h (struct target_ops) <to_thread_address_space>: Add
5095 TARGET_DEFAULT_FUNC.
5096
5097 2014-06-04 Doug Evans <xdje42@gmail.com>
5098
5099 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5100
5101 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5102
5103 * record-btrace.c: Include event-loop.h and inf-loop.h.
5104 (record_btrace_resume_exec_dir)
5105 (record_btrace_async_inferior_event_handler)
5106 (record_btrace_handle_async_inferior_event): New.
5107 (record_btrace_open): Create async event handler.
5108 (record_btrace_close): Delete async event handler.
5109 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5110 Mark async event handler.
5111 (record_btrace_execution_direction): New.
5112 (init_record_btrace_ops): Initialize to_execution_direction.
5113
5114 2014-06-03 Doug Evans <xdje42@gmail.com>
5115
5116 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5117 (gdbscm_make_parameter): Ditto.
5118
5119 2014-06-03 Doug Evans <dje@google.com>
5120
5121 * exec.c (exec_close_1): Call clear_section_table instead of
5122 resize_section_table.
5123 (clear_section_table): New function.
5124 (resize_section_table): Make static. Rename arg num_added to
5125 adjustment.
5126 * exec.h (clear_section_table): Declare.
5127 (resize_section_table): Delete.
5128 * progspace.c (release_program_space): Call clear_section_table
5129 instead of resize_section_table.
5130
5131 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5132
5133 * NEWS (Python Scripting): Add entry about the new xmethods
5134 feature.
5135
5136 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5137
5138 * python/py-xmethods.c: New file.
5139 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5140 (objfpy_dealloc): XDECREF on the new xmethods field.
5141 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5142 field.
5143 (objfpy_get_xmethods): New function.
5144 (objfile_getset): New entry 'xmethods'.
5145 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5146 (pspy_dealloc): XDECREF on the new xmethods field.
5147 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5148 field.
5149 (pspy_get_xmethods): New function.
5150 (pspace_getset): New entry 'xmethods'.
5151 * python/python-internal.h: Add declarations for new functions.
5152 * python/python.c (_initialize_python): Invoke
5153 gdbpy_initialize_xmethods.
5154 * python/lib/gdb/__init__.py (xmethods): New
5155 attribute.
5156 * python/lib/gdb/xmethod.py: New file.
5157 * python/lib/gdb/command/xmethods.py: New file.
5158
5159 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5160
5161 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5162 best match method returned by find_overload_match is an xmethod.
5163 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5164 the best matching operator returned by find_overload_match is an
5165 xmethod.
5166 * valops.c: #include "extension.h".
5167 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5168 Return void. The list of matching source methods is returned in
5169 "fn_list" and a vector of matching debug method workers is
5170 returned in "xm_worker_vec". Update all callers.
5171 (value_find_oload_method_list): Likewise.
5172 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5173 non-NULL, then the index of the best matching method in this
5174 vector is returned. Update all callers.
5175 (find_overload_match): Include xmethods while performing overload
5176 resolution.
5177
5178 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5179
5180 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5181 * extension-priv.h (struct extension_language_ops): Add the
5182 xmethod interface.
5183 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5184 get_matching_xmethod_workers, get_xmethod_argtypes,
5185 invoke_xmethod, free_xmethod_worker,
5186 free_xmethod_worker_vec): New functions.
5187 * extension.h: #include "common/vec.h".
5188 New function declarations.
5189 (struct xmethod_worker): New struct.
5190 (VEC (xmethod_worker_ptr)): New vector type.
5191 (xmethod_worker_ptr): New typedef.
5192 (xmethod_worker_vec): Likewise.
5193 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5194 builtin_type.
5195 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5196 (struct builtin_type): New field "xmethod".
5197 * valarith.c (value_ptradd): Assert that the value argument is not
5198 lval_xcallable.
5199 * valops.c (value_must_coerce_to_target): Return 0 for
5200 lval_xcallable values.
5201 * value.c (struct value): New field XM_WORKER in the field
5202 LOCATION.
5203 (value_address, value_raw_address): Return 0 for lval_xcallable
5204 values.
5205 (set_value_address): Assert that the value is not an
5206 lval_xcallable.
5207 (value_free): Free the associated xmethod worker when freeing
5208 lval_xcallable values.
5209 (set_value_component_location): Assert that the WHOLE value is not
5210 lval_xcallable.
5211 (value_of_xmethod, call_xmethod): New functions.
5212 * value.h: Declare "struct xmethod_worker".
5213 Declare new functions value_of_xmethod, call_xmethod.
5214
5215 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5216 Pedro Alves <palves@redhat.com>
5217
5218 PR breakpoints/17000
5219 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5220 New function, extracted from software_breakpoint_inserted_here_p.
5221 (software_breakpoint_inserted_here_p): Replace factored out code
5222 by call to find_non_raw_software_breakpoint_inserted_here.
5223 (bp_target_info_copy_insertion_state): New function.
5224 (bkpt_insert_location): Handle the case of a single-step
5225 breakpoint already inserted at the same address.
5226 (bkpt_remove_location): Handle the case of a single-step
5227 breakpoint still inserted at the same address.
5228 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5229 breakpoint already inserted at the same address.
5230 (deprecated_remove_raw_breakpoint): Handle the case of a
5231 non-raw breakpoint still inserted at the same address.
5232 (find_single_step_breakpoint): New function, extracted from
5233 single_step_breakpoint_inserted_here_p.
5234 (find_single_step_breakpoint): New function,
5235 factored out from single_step_breakpoint_inserted_here_p.
5236 (single_step_breakpoint_inserted_here_p): Reimplement.
5237
5238 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5239
5240 Pushed by Joel Brobecker <brobecker@adacore.com>
5241 * source.c (show_substitute_path_command): Fix display of matching
5242 substitution rules.
5243
5244 2014-06-03 Gary Benson <gbenson@redhat.com>
5245
5246 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5247
5248 2014-06-02 Doug Evans <xdje42@gmail.com>
5249
5250 Add parameter support for Guile.
5251 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5252 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5253 (scm-param.o): New rule.
5254 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5255 (gdbscm_misc_error): Declare.
5256 (gdbscm_canonicalize_command_name): Declare.
5257 (gdbscm_scm_to_host_string): Declare.
5258 (gdbscm_scm_from_host_string): Declare.
5259 (gdbscm_initialize_parameters): Declare.
5260 * guile/guile.c (initialize_gdb_module): Call
5261 gdbscm_initialize_parameters.
5262 * guile/lib/gdb.scm: Export parameter symbols.
5263 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5264 cmdscm_canonicalize_name and made public. All callers updated.
5265 * guile/scm-exception.c (gdbscm_misc_error): New function.
5266 * guile/scm-param.c: New file.
5267 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5268 (gdbscm_scm_to_host_string): New function.
5269 (gdbscm_scm_from_host_string): New function.
5270 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5271
5272 2014-06-02 Doug Evans <xdje42@gmail.com>
5273
5274 Add command support for Guile.
5275 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5276 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5277 (scm-cmd.o): New rule.
5278 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5279 (gdbscm_user_error_p): Declare.
5280 (gdbscm_parse_command_name): Declare.
5281 (gdbscm_valid_command_class_p): Declare.
5282 (gdbscm_initialize_commands): Declare.
5283 * guile/guile.c (initialize_gdb_module): Call
5284 gdbscm_initialize_commands.
5285 * guile/lib/gdb.scm: Export command symbols.
5286 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5287 (throw-user-error): New function.
5288 * guile/scm-cmd.c: New file.
5289 * guile/scm-exception.c (user_error_symbol): New static global.
5290 (gdbscm_user_error_p): New function.
5291 (gdbscm_initialize_exceptions): Set user_error_symbol.
5292 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5293
5294 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5295
5296 * top.c (command_loop): Handle comments here...
5297 (command_line_input): ... not here.
5298
5299 2014-06-02 Doug Evans <xdje42@gmail.com>
5300
5301 Add progspace support for Guile.
5302 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5303 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5304 (scm-progspace.o): New rule.
5305 * guile/guile-internal.h (pspace_smob): New typedef.
5306 (psscm_pspace_smob_pretty_printers): Declare.
5307 (psscm_pspace_smob_from_pspace): Declare.
5308 (psscm_scm_from_pspace): Declare.
5309 * guile/guile.c (initialize_gdb_module): Call
5310 gdbscm_initialize_pspaces.
5311 * guile/lib/gdb.scm: Export progspace symbols.
5312 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5313 support.
5314 (append-pretty-printer!): Ditto.
5315 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5316 Implement.
5317 * guile/scm-progspace.c: New file.
5318
5319 2014-06-03 Alan Modra <amodra@gmail.com>
5320
5321 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5322 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5323
5324 2014-06-02 Doug Evans <dje@google.com>
5325
5326 Add support for skeletonless type units.
5327 * dwarf2read.c (struct dwarf2_per_objfile): New member
5328 n_allocated_type_units.
5329 (struct dwarf2_per_objfile) <tu_stats>: New member
5330 nr_all_type_units_reallocs.
5331 (create_signatured_type_table_from_index): Initialize
5332 n_allocated_type_units
5333 (create_all_type_units): Ditto.
5334 (add_type_unit): Move up in file. New arg slot.
5335 All callers updated. Increase space for all_type_units more
5336 efficiently.
5337 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5338 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5339 (lookup_dwp_signatured_type): Ditto.
5340 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5341 All callers updated.
5342 (build_type_psymtabs_1): Leave type_unit_groups as
5343 NULL if no TUs present.
5344 (print_tu_stats): New function.
5345 (process_skeletonless_type_unit): New function.
5346 (process_dwo_file_for_skeletonless_type_units): New
5347 function.
5348 (process_skeletonless_type_units): New function.
5349 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5350 Call print tu_stats if debugging enabled.
5351
5352 2014-06-02 Pedro Alves <palves@redhat.com>
5353
5354 * breakpoint.c (build_target_command_list): Don't build a command
5355 list if we have any duplicate location that isn't a dprintf.
5356
5357 2014-06-02 Pedro Alves <palves@redhat.com>
5358
5359 * breakpoint.c (dprintf_breakpoint_hit): New function.
5360 (initialize_breakpoint_ops): Install it as dprintf's
5361 breakpoint_hit method.
5362
5363 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5364
5365 * source.c (substitute_path_rule_matches): Simplify using
5366 filename_ncmp instead of FILENAME_CMP.
5367
5368 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5369
5370 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5371
5372 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5373
5374 * configure.ac: When Guile is available, check for the
5375 availability of 'scm_new_smob'.
5376 * configure, config.h.in: Regenerate.
5377 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5378 function.
5379
5380 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5381
5382 * frame.c (struct frame_info): Add stop_string field.
5383 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5384 (get_prev_frame_always): Old content moved into
5385 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5386 TRY_CATCH, handle MEMORY_ERROR exceptions.
5387 (frame_stop_reason_string): New function definition.
5388 * frame.h (unwind_stop_reason_to_string): Extend comment to
5389 mention frame_stop_reason_string.
5390 (frame_stop_reason_string): New function declaration.
5391 * stack.c (frame_info): Switch to frame_stop_reason_string.
5392 (backtrace_command_1): Switch to frame_stop_reason_string.
5393 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5394 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5395 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5396
5397 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5398
5399 * frame.c (frame_stop_reason_string): Rename to ...
5400 (unwind_stop_reason_to_string): this.
5401 * frame.h (frame_stop_reason_string): Rename to ...
5402 (unwind_stop_reason_to_string): this.
5403 * stack.c (frame_info): Update call to frame_stop_reason_string.
5404 (backtrace_command_1): Likewise.
5405 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5406 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5407
5408 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5409
5410 * frame.c (remove_prev_frame): New function.
5411 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5412 remove_prev_frame.
5413
5414 2014-05-29 Pedro Alves <palves@redhat.com>
5415
5416 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5417 and make it const. When a single-step decays to a continue,
5418 clear 'step', not 'hw_step'. Pass whether the caller wanted
5419 to step to user_visible_resume_ptid, not what we ask the
5420 target to do.
5421
5422 2014-05-29 Pedro Alves <palves@redhat.com>
5423
5424 * infrun.c (process_event_stop_test, handle_step_into_function)
5425 (handle_step_into_function_backward): Adjust.
5426 Don't set the even thread's stop_step and call stop_waiting before
5427 calling end_stepping_range. Instead do that ...
5428 (end_stepping_range): ... here. Take an ecs pointer parameter.
5429
5430 2014-05-29 Pedro Alves <palves@redhat.com>
5431
5432 * infrun.c (stop_stepping): Rename to ...
5433 (stop_waiting): ... this.
5434 (proceed): Update comment.
5435 (process_event_stop_test, handle_inferior_event)
5436 (handle_signal_stop, handle_step_into_function)
5437 (handle_step_into_function_backward): Update.
5438
5439 2014-05-29 Pedro Alves <palves@redhat.com>
5440
5441 * infcall.c (run_inferior_call): Don't check whether the current
5442 thread is running after the proceed call.
5443
5444 2014-05-29 Pedro Alves <palves@redhat.com>
5445 Tom Tromey <tromey@redhat.com>
5446
5447 * NEWS: Mention "maint set target-async", "set mi-async", and that
5448 background execution commands are now always available.
5449 * target.h (target_async_permitted): Update comment.
5450 * target.c (target_async_permitted, target_async_permitted_1):
5451 Default to 1.
5452 (set_target_async_command): Rename to ...
5453 (maint_set_target_async_command): ... this.
5454 (show_target_async_command): Rename to ...
5455 (maint_show_target_async_command): ... this.
5456 (_initialize_target): Adjust.
5457 * infcmd.c (prepare_execution_command): Make extern.
5458 * inferior.h (prepare_execution_command): Declare.
5459 * infrun.c (set_observer_mode): Leave target async alone.
5460 * mi/mi-interp.c (mi_interpreter_init): Install
5461 mi_on_sync_execution_done as sync_execution_done observer.
5462 (mi_on_sync_execution_done): New function.
5463 (mi_execute_command_input_handler): Don't print the prompt if we
5464 just started a synchronous command with an async target.
5465 (mi_on_resume): Check sync_execution before printing prompt.
5466 * mi/mi-main.h (mi_async_p): Declare.
5467 * mi/mi-main.c: Include gdbcmd.h.
5468 (mi_async_p): New function.
5469 (mi_async, mi_async_1): New globals.
5470 (set_mi_async_command, show_mi_async_command, mi_async): New
5471 functions.
5472 (exec_continue): Call prepare_execution_command.
5473 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5474 (mi_execute_async_cli_command): Use mi_async_p.
5475 (_initialize_mi_main): Install "set mi-async". Make
5476 "target-async" a deprecated alias.
5477
5478 2014-05-29 Pedro Alves <palves@redhat.com>
5479
5480 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5481 (_initialize_cli_interp): Adjust.
5482 * event-loop.c: Include "observer.h".
5483 (start_event_loop): Notify 'command_error' observers instead of
5484 calling display_gdb_prompt. Remove FIXME comment.
5485 * event-top.c (display_gdb_prompt): Remove call into the
5486 interpreters.
5487 * inf-loop.c: Include "observer.h".
5488 (inferior_event_handler): Notify 'command_error' observers instead
5489 of calling display_gdb_prompt.
5490 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5491 observers instead of calling display_gdb_prompt.
5492 * interps.c (interp_set): Don't call display_gdb_prompt.
5493 (current_interp_display_prompt_p): Delete.
5494 * interps.h (interp_prompt_p): Delete declaration.
5495 (interp_prompt_p_ftype): Delete.
5496 (struct interp_procs) <prompt_proc_p>: Delete field.
5497 (current_interp_display_prompt_p): Delete declaration.
5498 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5499 (_initialize_mi_interp): Adjust.
5500 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5501 'command_error' observers.
5502 (tui_on_sync_execution_done, tui_on_command_error): New
5503 functions.
5504 (tui_display_prompt_p): Delete.
5505 (_initialize_tui_interp): Adjust.
5506
5507 2014-05-29 Pedro Alves <palves@redhat.com>
5508
5509 PR gdb/13860
5510 * cli/cli-interp.c: Include infrun.h and observer.h.
5511 (cli_uiout, cli_interp): New globals.
5512 (cli_on_signal_received, cli_on_end_stepping_range)
5513 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5514 functions.
5515 (cli_interpreter_init): Install them as 'end_stepping_range',
5516 'signal_received' 'signal_exited', 'exited' and 'no_history'
5517 observers.
5518 (_initialize_cli_interp): Remove cli_interp local.
5519 * infrun.c (handle_inferior_event): Call the several stop reason
5520 observers instead of printing the stop reason directly.
5521 (end_stepping_range): New function.
5522 (print_end_stepping_range_reason, print_signal_exited_reason)
5523 (print_exited_reason, print_signal_received_reason)
5524 (print_no_history_reason): Make static, and add an uiout
5525 parameter. Print to that instead of to CURRENT_UIOUT.
5526 * infrun.h (print_end_stepping_range_reason)
5527 (print_signal_exited_reason, print_exited_reason)
5528 (print_signal_received_reason print_no_history_reason): New
5529 declarations.
5530 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5531 'mi_uiout'.
5532 <cli_uiout>: New field.
5533 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5534 uiout for CLI output. Install 'signal_received',
5535 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5536 observers.
5537 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5538 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5539 (mi_on_no_history): New functions.
5540 (ui_out_free_cleanup): Delete function.
5541 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5542 instead use the one already stored in the MI interpreter data.
5543 (mi_ui_out): Adjust.
5544 * tui/tui-interp.c: Include infrun.h and observer.h.
5545 (tui_interp): New global.
5546 (tui_on_signal_received, tui_on_end_stepping_range)
5547 (tui_on_signal_exited, tui_on_exited)
5548 (tui_on_no_history): New functions.
5549 (tui_init): Install them as 'end_stepping_range',
5550 'signal_received' 'signal_exited', 'exited' and 'no_history'
5551 observers.
5552 (_initialize_tui_interp): Delete tui_interp local.
5553
5554 2014-05-29 Pedro Alves <palves@redhat.com>
5555
5556 PR gdb/15713
5557 * linux-nat.c (linux_nat_resume_callback): Rename the second
5558 parameter to 'except'. Skip LP if it points to EXCEPT.
5559 (linux_nat_resume): Don't mark the event lwp as not stopped
5560 before resuming sibling lwps. Instead ask
5561 linux_nat_resume_callback to skip the event lwp. Mark it as not
5562 stopped after actually resuming it.
5563 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5564 resuming it.
5565 (wait_lwp): Mark the lwp as stopped here.
5566 (stop_wait_callback): Mark the lwp as not stopped right after
5567 resuming it. Don't mark lwps as stopped here.
5568 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5569 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5570
5571 2014-05-29 Pedro Alves <palves@redhat.com>
5572
5573 PR PR15693
5574 * infrun.c (resume): Determine how much to resume depending on
5575 whether the caller wanted a step, not whether we can hardware step
5576 the target. Mark all threads that we intend to run as running,
5577 unless we're calling an inferior function.
5578 (normal_stop): If the thread is running an infcall, don't finish
5579 thread state.
5580 * target.c (target_resume): Don't mark threads as running here.
5581
5582 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5583
5584 * serial.c (_initialize_serial): Remove support for
5585 the "set remotebaud" and "show remotebaud" commands.
5586 * NEWS: Add entry documenting the removal of that command.
5587
5588 2014-05-28 Yao Qi <yao@codesourcery.com>
5589
5590 * charset.c: Fix typo in comments.
5591
5592 2014-05-27 Gary Benson <gbenson@redhat.com>
5593
5594 * utils.c (internal_vproblem): Prompt for a bug report.
5595
5596 2014-05-26 Andy Wingo <wingo@igalia.com>
5597
5598 * guile/scm-arch.c (arscm_mark_arch_smob):
5599 * guile/scm-block.c (bkscm_mark_block_smob)
5600 (bkscm_mark_block_syms_progress_smob):
5601 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5602 * guile/scm-exception.c (exscm_mark_exception_smob):
5603 * guile/scm-frame.c (frscm_mark_frame_smob):
5604 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5605 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5606 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5607 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5608 (ppscm_mark_pretty_printer_worker_smob):
5609 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5610 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5611 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5612 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5613 mark functions.
5614 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5615 function.
5616
5617 2014-05-26 Andy Wingo <wingo@igalia.com>
5618 Doug Evans <xdje42@gmail.com>
5619
5620 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5621 empty_base_class. All uses updated.
5622 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5623 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5624 Adapt all callers.
5625 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5626 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5627 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5628 (gdbscm_gsmob_has_property_p, add_property_name)
5629 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5630 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5631 (gdb-object-has-property?, gdb-object-properties): Remove.
5632 (gdb-object-kind): Renamed from gsmob-kind.
5633
5634 2014-05-26 Andy Wingo <wingo@igalia.com>
5635
5636 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5637 * configure: Regenerate.
5638
5639 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5640
5641 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5642
5643 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5644
5645 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5646 (replay_memory_access_read_only, replay_memory_access_read_write)
5647 (replay_memory_access_types, replay_memory_access)
5648 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5649 (cmd_set_record_btrace, cmd_show_record_btrace)
5650 (cmd_show_replay_memory_access): New.
5651 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5652 (record_btrace_remove_breakpoint): Replace
5653 record_btrace_allow_memory_access with replay_memory_access.
5654 (_initialize_record_btrace): Add commands.
5655 * NEWS: Announce it.
5656
5657 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5658
5659 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5660
5661 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5662
5663 * MAINTAINERS (Write After Approval): Move self back from
5664 paper trail.
5665
5666 2014-05-22 Pedro Alves <palves@redhat.com>
5667
5668 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5669 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5670 (disable_randomization, enum exec_direction_kind)
5671 (execution_direction, stop_registers, start_remote)
5672 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5673 (wait_for_inferior, normal_stop, get_last_target_status)
5674 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5675 (insert_step_resume_breakpoint_at_sal)
5676 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5677 (set_step_info, print_stop_event, signal_stop_state)
5678 (signal_print_state, signal_pass_state, signal_stop_update)
5679 (signal_print_update, signal_pass_update)
5680 (update_signals_program_target, clear_exit_convenience_vars)
5681 (displaced_step_dump_bytes, update_observer_mode)
5682 (signal_catch_update, gdb_signal_from_command): Move
5683 declarations ...
5684 * infrun.h: ... to this new file.
5685 * amd64-tdep.c: Include infrun.h.
5686 * annotate.c: Include infrun.h.
5687 * arch-utils.c: Include infrun.h.
5688 * arm-linux-tdep.c: Include infrun.h.
5689 * arm-tdep.c: Include infrun.h.
5690 * break-catch-sig.c: Include infrun.h.
5691 * breakpoint.c: Include infrun.h.
5692 * common/agent.c: Include infrun.h instead of inferior.h.
5693 * corelow.c: Include infrun.h.
5694 * event-top.c: Include infrun.h.
5695 * go32-nat.c: Include infrun.h.
5696 * i386-tdep.c: Include infrun.h.
5697 * inf-loop.c: Include infrun.h.
5698 * infcall.c: Include infrun.h.
5699 * infcmd.c: Include infrun.h.
5700 * infrun.c: Include infrun.h.
5701 * linux-fork.c: Include infrun.h.
5702 * linux-nat.c: Include infrun.h.
5703 * linux-thread-db.c: Include infrun.h.
5704 * monitor.c: Include infrun.h.
5705 * nto-tdep.c: Include infrun.h.
5706 * procfs.c: Include infrun.h.
5707 * record-btrace.c: Include infrun.h.
5708 * record-full.c: Include infrun.h.
5709 * remote-m32r-sdi.c: Include infrun.h.
5710 * remote-mips.c: Include infrun.h.
5711 * remote-notif.c: Include infrun.h.
5712 * remote-sim.c: Include infrun.h.
5713 * remote.c: Include infrun.h.
5714 * reverse.c: Include infrun.h.
5715 * rs6000-tdep.c: Include infrun.h.
5716 * s390-linux-tdep.c: Include infrun.h.
5717 * solib-irix.c: Include infrun.h.
5718 * solib-osf.c: Include infrun.h.
5719 * solib-svr4.c: Include infrun.h.
5720 * target.c: Include infrun.h.
5721 * top.c: Include infrun.h.
5722 * windows-nat.c: Include infrun.h.
5723 * mi/mi-interp.c: Include infrun.h.
5724 * mi/mi-main.c: Include infrun.h.
5725 * python/py-threadevent.c: Include infrun.h.
5726
5727 2014-05-22 Pedro Alves <palves@redhat.com>
5728
5729 * infrun.c (handle_inferior_event): Store the exit code for
5730 --return-child-result here, instead of ...
5731 (print_exited_reason): ... here.
5732
5733 2014-05-21 Pedro Alves <palves@redhat.com>
5734
5735 PR gdb/13860
5736 * gdbthread.h (struct thread_control_state): New field
5737 `command_interp'.
5738 * infrun.c (follow_fork): Copy the new thread control field to the
5739 child fork thread.
5740 (clear_proceed_status_thread): Clear the new thread control field.
5741 (proceed): Set the new thread control field.
5742 * interps.h (command_interp): Declare.
5743 * interps.c (command_interpreter): New global.
5744 (command_interp): New function.
5745 (interp_exec): Set `command_interpreter' while here.
5746 * cli-out.c (cli_uiout_dtor): New function.
5747 (cli_ui_out_impl): Install it.
5748 * mi/mi-interp.c: Include cli-out.h.
5749 (mi_cmd_interpreter_exec): Add comment.
5750 (restore_current_uiout_cleanup): New function.
5751 (ui_out_free_cleanup): New function.
5752 (mi_on_normal_stop): If finishing an execution command started by
5753 a CLI command, or any kind of breakpoint-like event triggered,
5754 print the stop event to the output (CLI) stream.
5755 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5756
5757 2014-05-21 Pedro Alves <palves@redhat.com>
5758
5759 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5760 current source line having changed.
5761 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5762 * infrun.c (normal_stop): Adjust call to
5763 set_current_sal_from_frame.
5764 * source.c (clear_lines_listed_range): New function.
5765 (set_current_source_symtab_and_line, identify_source_line): Clear
5766 the lines listed range.
5767 (line_info): Handle the first "info line" after the current source
5768 line having changed.
5769 * stack.c (print_stack_frame): Remove center handling.
5770 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5771 center sal.line.
5772
5773 2014-05-21 Pedro Alves <palves@redhat.com>
5774
5775 * inf-child.c (inf_child_mourn_inferior): New function.
5776 * inf-child.h (inf_child_mourn_inferior): New declaration.
5777 * darwin-nat.c (darwin_mourn_inferior): Use
5778 inf_child_mourn_inferior.
5779 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5780 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5781 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5782 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5783 * windows-nat.c (windows_mourn_inferior): Likewise.
5784
5785 2014-05-21 Doug Evans <xdje42@gmail.com>
5786
5787 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5788
5789 2014-05-21 Doug Evans <xdje42@gmail.com>
5790
5791 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5792 (gdbscm_out_of_range_error): Ditto.
5793 (gdbscm_memory_error): Ditto.
5794 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5795 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5796 (gdbscm_out_of_range_error): Update.
5797 (gdbscm_memory_error): Update.
5798 (gdbscm_scm_to_target_string_unsafe): Delete.
5799
5800 2014-05-21 Pedro Alves <palves@redhat.com>
5801
5802 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5803 globals.
5804 (inf_child_open_target): New function.
5805 (inf_child_open): Use inf_child_open_target to push the target
5806 instead of erroring out.
5807 (inf_child_disconnect, inf_child_close)
5808 (inf_child_maybe_unpush_target): New functions.
5809 (inf_child_target): Install inf_child_disconnect and
5810 inf_child_close. Store a pointer to the returned object.
5811 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5812 declarations.
5813 * target.c (auto_connect_native_target): New global.
5814 (show_default_run_target): New function.
5815 (find_default_run_target): Return NULL if automatically connecting
5816 to the native target is disabled.
5817 (_initialize_target): Install set/show auto-connect-native-target.
5818 * NEWS: Mention "set auto-connect-native-target", and "target
5819 native".
5820 * linux-nat.c (super_close): New global.
5821 (linux_nat_close): Call super_close.
5822 (linux_nat_add_target): Store a pointer to the base class's
5823 to_close method.
5824 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5825 inf_child_maybe_unpush.
5826 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5827 already pushed.
5828 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5829 the inferior. Use inf_child_maybe_unpush_target.
5830 (inf_ttrace_attach): Don't push the target if it is already
5831 pushed.
5832 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5833 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5834 after mourning the inferior. Use inf_child_maybe_unpush_target.
5835 (darwin_attach_pid): Don't push the target if it is already
5836 pushed.
5837 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5838 mourning the inferior. Use inf_child_maybe_unpush_target.
5839 (gnu_detach): Use inf_child_maybe_unpush_target.
5840 * go32-nat.c (go32_create_inferior): Don't push the target if it
5841 is already pushed.
5842 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5843 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5844 (procfs_open): Rename to ...
5845 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5846 comments. Can target_preopen before changing node. Call
5847 inf_child_open_target to push the target explicitly.
5848 (procfs_attach): Don't push the target if it is already pushed.
5849 (procfs_detach): Use inf_child_maybe_unpush_target.
5850 (procfs_create_inferior): Don't push the target if it is already
5851 pushed.
5852 (nto_native_ops): New global.
5853 (procfs_open): Reimplement.
5854 (procfs_native_open): New function.
5855 (init_procfs_targets): Install procfs_native_open as to_open of
5856 "target native". Store a pointer to the "native" target in
5857 nto_native_ops.
5858 * procfs.c (procfs_attach): Don't push the target if it is already
5859 pushed.
5860 (procfs_detach): Use inf_child_maybe_unpush_target.
5861 (procfs_mourn_inferior): Only unpush the target after mourning the
5862 inferior. Use inf_child_maybe_unpush_target.
5863 (procfs_init_inferior): Don't push the target if it is already
5864 pushed.
5865 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5866 if it is already pushed.
5867
5868 2014-05-21 Pedro Alves <palves@redhat.com>
5869
5870 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5871 and "procfs" targets are now called "native" instead.
5872
5873 2014-05-21 Pedro Alves <palves@redhat.com>
5874
5875 * go32-nat.c (go32_open): Delete.
5876 (go32_target): Don't override the to_open method.
5877
5878 2014-05-21 Pedro Alves <palves@redhat.com>
5879
5880 * nto-procfs.c (procfs_can_run): New function.
5881 (nto_procfs_ops): New global.
5882 (init_procfs_targets): New, based on procfs_target. Install
5883 "target native" in addition to "target procfs".
5884 (_initialize_procfs): Call init_procfs_targets instead of adding
5885 the target here.
5886
5887 2014-05-21 Pedro Alves <palves@redhat.com>
5888
5889 * windows-nat.c (windows_target): Don't override to_shortname,
5890 to_longname or to_doc.
5891
5892 2014-05-21 Pedro Alves <palves@redhat.com>
5893
5894 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5895 to_doc.
5896
5897 2014-05-21 Pedro Alves <palves@redhat.com>
5898
5899 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5900 to_shortname, to_longname or to_doc.
5901
5902 2014-05-21 Pedro Alves <palves@redhat.com>
5903
5904 * go32-nat.c (go32_target): Don't override to_shortname,
5905 to_longname or to_doc.
5906
5907 2014-05-21 Pedro Alves <palves@redhat.com>
5908
5909 * inf-child.c (inf_child_open): Remove mention of "child".
5910 (inf_child_target): Rename target to "native" instead of "child".
5911
5912 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5913
5914 * Makefile.in (SFILES): Delete "regset.c".
5915 (COMMON_OBS): Delete "regset.o".
5916 * regset.c: Remove.
5917 * regset.h (regset_alloc): Delete prototype.
5918
5919 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5920
5921 * sparc-linux-tdep.c (sparc32_linux_gregset)
5922 (sparc32_linux_fpregset): New static regset structures.
5923 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5924 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5925 'fpregset' fields.
5926 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5927 (sparc64_linux_fpregset): New static regset structures.
5928 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5929 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5930 New static regset structures.
5931 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5932 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5933 New static regset structures.
5934 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5935 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5936 New static regset structures.
5937 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5938 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5939 New static regset structures.
5940 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5941
5942 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5943
5944 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5945 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5946 register maps ("regmaps") from "*regset" to "*regmap". Do this
5947 for all regmap types and variables.
5948 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5949 (sparc32_linux_supply_core_gregset)
5950 (sparc32_linux_collect_core_gregset)
5951 (sparc32_linux_supply_core_fpregset)
5952 (sparc32_linux_collect_core_fpregset): Likewise.
5953 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5954 (sparc_gregmap, sparc_fpregmap): ... these.
5955 (sparc_supply_gregset, sparc_collect_gregset)
5956 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5957 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5958 (_initialize_sparc_nat): Rename regmaps.
5959 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5960 (sparc_gregmap, sparc_fpregmap): ... these.
5961 (sparc_supply_gregset, sparc_collect_gregset)
5962 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5963 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5964 Rename macros to...
5965 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5966 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5967 Likewise.
5968 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5969 Rename to...
5970 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5971 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5972 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5973 regmaps.
5974 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5975 (sparc32_bsd_fpregset): Rename to...
5976 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5977 (sparc32_bsd_fpregmap): ... these.
5978 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5979 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5980 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5981 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5982 (struct sparc_gregmap, struct sparc_fpregmap)
5983 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5984 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5985 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5986 (sparc32_supply_regset, sparc32_collect_gregset)
5987 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5988 prototypes.
5989 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5990 (sparc64_linux_ptrace_gregmap): ... this.
5991 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5992 (_initialize_sparc64_linux_nat): Rename regmaps.
5993 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5994 (sparc64_linux_core_gregmap): ... this.
5995 (sparc64_linux_supply_core_gregset)
5996 (sparc64_linux_collect_core_gregset)
5997 (sparc64_linux_supply_core_fpregset)
5998 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5999 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6000 (sparc64_sol2_fpregset): Rename to...
6001 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6002 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6003 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6004 regmaps.
6005 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6006 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6007 (sparc64_bsd_fpregset): Rename to...
6008 (struct sparc_gregmap, sparc64_sol2_gregmap)
6009 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6010 (sparc64_bsd_fpregmap): ... these.
6011 (sparc64_supply_gregset, sparc64_collect_gregset)
6012 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6013 prototypes.
6014 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6015 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6016 (sparc64fbsd_gregmap): ... this.
6017 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6018 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6019 Rename regmaps.
6020 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6021 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6022 (sparc64nbsd_collect_fpregset): Likewise.
6023 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6024 (sparc64nbsd_gregmap): ... this.
6025 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6026 regmaps.
6027 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6028 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6029 (sparc64obsd_gregmap): ... this.
6030 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6031 regmaps.
6032 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6033 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6034 (sparc32nbsd_gregmap): ... this.
6035 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6036 regmaps.
6037
6038 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6039
6040 * score-tdep.c (score7_linux_gregset): New static regset
6041 structure.
6042 (score7_linux_regset_from_core_section): Remove dynamic regset
6043 allocation.
6044 (score_gdbarch_init): Drop allocation of tdep structure.
6045 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6046
6047 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6048
6049 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6050 regset structures.
6051 (am33_regset_from_core_section): Remove dynamic regset
6052 allocations.
6053
6054 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6055
6056 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6057 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6058 structures.
6059 (mips_linux_regset_from_core_section): Remove dynamic regset
6060 allocations.
6061 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6062 'gregset64', 'fpregset', and 'fpregset64'.
6063 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6064 deleted tdep fields.
6065
6066 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6067
6068 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6069 regset structures.
6070 (amd64_regset_from_core_section): Remove dynamic regset
6071 allocations.
6072 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6073 structure.
6074 (amd64obsd_regset_from_core_section): Remove dynamic regset
6075 allocation.
6076 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6077 Likewise.
6078 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6079 x86-common regset supply function.
6080 * i386-tdep.c (i386_collect_gregset): Make static.
6081 (i386_gregset): New global regset structure.
6082 (i386_fpregset, i386_xstateregset): New static regset structures.
6083 (i386_regset_from_core_section): Remove dynamic regset
6084 allocations.
6085 (i386_gdbarch_init): Remove initialization of tdep fields
6086 'gregset', 'fpregset', and 'xstateregset'.
6087 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6088 'fpregset', and 'xstateregset'.
6089 (i386_collect_gregset): Remove prototype.
6090 (i386_gregset): New declaration.
6091 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6092 structure.
6093 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6094 allocation.
6095
6096 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6097
6098 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6099 (arm_linux_vfpregset): New static regset structures.
6100 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6101 regset structures.
6102 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6103 and 'vfpregset' fields.
6104
6105 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6106
6107 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6108 (aarch64_linux_fpregset): New static regset structures.
6109 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6110 of regset structures.
6111 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6112 'fpregset' fields.
6113
6114 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6115
6116 * regset.h (struct regset): Remove gdbarch field.
6117 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6118 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6119 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6120 Likewise.
6121 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6122 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6123 (ppc32_linux_vsxregset): Likewise.
6124 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6125 via the regcache instead of the regset.
6126 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6127 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6128 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6129 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6130 Likewise.
6131
6132 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6133
6134 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6135 Constify structures.
6136 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6137 (alphanbsd_aout_gregset): Likewise.
6138 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6139 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6140 Likewise.
6141 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6142 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6143 Likewise.
6144 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6145 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6146 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6147 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6148 * m88k-tdep.c (m88k_gregset): Likewise.
6149 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6150 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6151 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6152 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6153 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6154 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6155 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6156 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6157 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6158 Likewise.
6159 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6160 * sh-tdep.h (sh_corefile_gregset): Likewise.
6161 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6162 * vax-tdep.c (vax_gregset): Likewise.
6163
6164 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6165
6166 Fix TLS access for -static -pthread.
6167 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6168 (try_thread_db_load_1): Initialize it.
6169 (thread_db_get_thread_local_address): Call it if LM is zero.
6170 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6171 * target.h (struct target_ops) (to_get_thread_local_address): Add
6172 load_module_addr comment.
6173
6174 2014-05-21 Pedro Alves <palves@redhat.com>
6175
6176 * dcache.c (dcache_read_memory_partial): If reading the cache line
6177 fails, fallback to reading just the memory the caller wanted.
6178
6179 2014-05-20 Doug Evans <dje@google.com>
6180
6181 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6182 instead of get_current_arch.
6183
6184 2014-05-20 Pedro Alves <palves@redhat.com>
6185
6186 * NEWS: Mention that compare-sections now works with all targets.
6187
6188 * remote.c (PACKET_qCRC): New enum value.
6189 (remote_verify_memory): Don't send qCRC if the target has no
6190 execution. Use packet_support/packet_ok. If the target doesn't
6191 support the qCRC packet, fallback to a deep memory copy.
6192 (compare_sections_command): Say "target image" instead of "remote
6193 executable".
6194 (_initialize_remote): Add PACKET_qCRC to the list of config
6195 packets that have no associated command. Extend comment.
6196 * target.c (simple_verify_memory, default_verify_memory): New
6197 function.
6198 * target.h (struct target_ops) <to_verify_memory>: Default to
6199 default_verify_memory.
6200 (simple_verify_memory): New declaration.
6201 * target-delegates.c: Regenerate.
6202
6203 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6204
6205 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6206
6207 2014-05-20 Hui Zhu <hui@codesourcery.com>
6208 Yao Qi <yao@codesourcery.com>
6209
6210 PR backtrace/16558
6211 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6212 and change address of sp and pc.
6213
6214 2014-05-19 Tom Tromey <tromey@redhat.com>
6215
6216 * gdbtypes.c (rank_function): Use XNEWVEC.
6217 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6218
6219 2014-05-19 Doug Evans <dje@google.com>
6220
6221 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6222 build_type_unit_groups and moved closer to only caller. Remove
6223 arguments. All references updated. Remove outdated .gdb_index
6224 comment.
6225 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6226 build_type_psymtabs_1.
6227
6228 2014-05-19 Doug Evans <dje@google.com>
6229
6230 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6231 n_type_unit_groups, all_type_unit_groups. All uses removed.
6232 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6233 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6234 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6235 (add_type_unit_group_to_table): Delete.
6236
6237 2014-05-19 Doug Evans <dje@google.com>
6238
6239 * eval.c (evaluate_subexp_standard): Add some comments.
6240
6241 2014-05-17 Doug Evans <xdje42@gmail.com>
6242
6243 * progspace.c (remove_program_space): Delete, unused.
6244 * progspace.h (remove_program_space): Ditto.
6245
6246 2014-05-17 Doug Evans <xdje42@gmail.com>
6247
6248 * inferior.c (prune_inferiors): Fix comment.
6249 (remove_inferior_command): Call prune_program_spaces.
6250
6251 2014-05-16 Doug Evans <dje@google.com>
6252
6253 New command line option -D.
6254 * NEWS: Mention it.
6255 * main.c (set_gdb_data_directory): New function.
6256 (captured_main): Recognize -D. Flag error for --data-directory "".
6257 Call set_gdb_data_directory.
6258 (print_gdb_help): Print --data-directory, -D.
6259 * main.h (set_gdb_data_directory): Declare.
6260 * top.c (staged_gdb_datadir): New static global.
6261 (set_gdb_datadir): Call set_gdb_data_directory
6262 (show_gdb_datadir): New function.
6263 (init_main): Update init of data-directory parameter.
6264
6265 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6266
6267 Import the "dirfd" gnulib module.
6268 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6269 * gnulib/aclocal.m4: Update.
6270 * gnulib/config.in: Update.
6271 * gnulib/configure: Update.
6272 * gnulib/import/Makefile.am: Update.
6273 * gnulib/import/Makefile.in: Update.
6274 * gnulib/import/dirfd.c: New.
6275 * gnulib/import/m4/dirfd.m4: New.
6276 * gnulib/import/m4/gnulib-cache.m4: Update.
6277 * gnulib/import/m4/gnulib-comp.m4: Update.
6278
6279 2014-05-16 Pierre Muller <muller@sourceware.org>
6280 Yao Qi <yao@codesourcery.com>
6281
6282 * valprint.c (print_wchar): Move the code on checking whether
6283 W is a printable wide char to the default branch of switch
6284 statement below. Call wchar_printable instead of gdb_iswprint.
6285
6286 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6287
6288 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6289 ldr.w and ldrd instructions.
6290
6291 2014-05-15 Doug Evans <dje@google.com>
6292
6293 * dwarf2read.c (read_structure_type): Delete outdated comments.
6294
6295 2014-05-14 Tom Tromey <tromey@redhat.com>
6296
6297 * macrocmd.c (print_macro_definition): Reindent.
6298
6299 2014-05-13 Doug Evans <xdje42@gmail.com>
6300
6301 * python/py-cmd.c (cmdpy_completer): Add comment.
6302 (completers): Make const.
6303
6304 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6305
6306 * infrun.c (resume): Remove should_resume (unused). Move up
6307 declaration of resume_ptid.
6308
6309 2014-05-13 Tom Tromey <tromey@redhat.com>
6310
6311 * language.h (unop_type_check): Remove.
6312 (binop_type_check): Don't declare.
6313
6314 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6315
6316 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6317 call to regcache_raw_collect.
6318
6319 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6320
6321 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6322 mi_console->quote as the quoting character.
6323
6324 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6325
6326 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6327
6328 2014-04-29 Tom Tromey <tromey@redhat.com>
6329
6330 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6331 "show debug varobj".
6332
6333 2014-05-07 Kyle McMartin <kyle@redhat.com>
6334
6335 Pushed by Joel Brobecker <brobecker@adacore.com>.
6336 * aarch64-tdep.c (aarch64_software_single_step): New function.
6337 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6338 with aarch64_software_single_step.
6339
6340 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6341
6342 GDB 7.7.1 released.
6343
6344 2014-05-05 Keith Seitz <keiths@redhat.com>
6345
6346 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6347 variable or history value is successfully parsed.
6348
6349 2014-05-05 Yao Qi <yao@codesourcery.com>
6350 Pedro Alves <palves@redhat.com>
6351
6352 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6353 address of blocks that intersects the requested range. Trim
6354 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6355 sections.
6356 * ctf.c (ctf_xfer_partial): Likewise.
6357
6358 2014-05-05 Yao Qi <yao@codesourcery.com>
6359
6360 * printcmd.c (display_command): Remove the check to
6361 target_has_execution.
6362
6363 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6364
6365 * ppcobsd-nat.c: Include "obsd-nat.h".
6366 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6367 add_target.
6368 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6369
6370 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6371
6372 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6373 and 16-bit signed and unsigned arguments. Update comment.
6374 (stap_parse_probe_arguments): Extend code to handle such
6375 arguments. Use warning instead of complaint to notify about
6376 unrecognized bitness.
6377
6378 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6379
6380 PR breakpoints/16889
6381 * stap-probe.c (stap_parse_probe_arguments): Simplify
6382 check for non-prefixed probes (i.e., probes whose
6383 arguments do not start with "N@"). Always set the
6384 argument type to a sane value.
6385
6386 2014-05-01 David Taylor <dtaylor@emc.com>
6387
6388 * remote.c (compare_sections_command): Add -r option to compare
6389 all loadable read-only sections.
6390
6391 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6392
6393 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6394 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6395 Update all callers.
6396 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6397 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6398 Remove unused CORE_ADDR argument. Update all callers.
6399
6400 2014-04-29 Pedro Alves <palves@redhat.com>
6401
6402 * remote.c (struct packet_config) <detect>: Extend comment.
6403 (add_packet_config_cmd): Don't set the config's detect or support
6404 fields here.
6405 (init_all_packet_configs): Also initialize the config's 'detect'
6406 field.
6407 (reset_all_packet_configs_support): New function.
6408 (remote_open_1): Call reset_all_packet_configs_support instead of
6409 init_all_packet_configs.
6410 (_initialize_remote): Initialize all packet configs. Assert that
6411 all packets have an associated command, except a few known
6412 outliers.
6413
6414 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6415
6416 * dwarf2read.c (read_subrange_type): Handle dynamic
6417 DW_AT_lower_bound attributes.
6418
6419 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6420
6421 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6422 dynamic bounds before computing its upper bound.
6423 (ada_discrete_type_low_bound): Same as above with the lower bound.
6424
6425 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6426
6427 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6428 range types. Adjust the array handling implementation to
6429 take advantage of this change.
6430 (resolve_dynamic_range): New function, mostly extracted from
6431 resolve_dynamic_bounds.
6432 (resolve_dynamic_array): New function, mostly extracted from
6433 resolve_dynamic_bounds.
6434 (resolve_dynamic_bounds): Delete.
6435 (resolve_dynamic_type): Reimplement. Add handling of
6436 TYPE_CODE_RANGE types.
6437
6438 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6439
6440 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6441 handling of parallel ___XA types.
6442
6443 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6444
6445 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6446 unnecessary second call to static_unwrap_type.
6447
6448 2014-04-27 Hui Zhu <hui@codesourcery.com>
6449
6450 * stack.c (print_frame_info): Call do_gdb_disassembly with
6451 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6452
6453 2014-04-26 Doug Evans <xdje42@gmail.com>
6454
6455 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6456
6457 2014-04-25 Pedro Alves <palves@redhat.com>
6458
6459 PR server/16255
6460 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6461 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6462 and newline from built string.
6463 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6464 (linux_ptrace_attach_fail_reason): ... this.
6465 * linux-nat.c (linux_nat_attach): Adjust to use
6466 linux_ptrace_attach_fail_reason.
6467
6468 2014-04-25 Pedro Alves <palves@redhat.com>
6469
6470 * remote.c (struct remote_state): Remove multi_process_aware,
6471 non_stop_aware, cond_tracepoints, cond_breakpoints,
6472 breakpoint_commands, fast_tracepoints, static_tracepoints,
6473 install_in_trace, disconnected_tracing,
6474 enable_disable_tracepoints, string_tracing, and
6475 augmented_libraries_svr4_read fields.
6476 (remote_multi_process_p): Move further below in the file.
6477 (struct packet_config): Add comments.
6478 (update_packet_config): Delete function.
6479 (show_packet_config_cmd): Use packet_config_support.
6480 (add_packet_config_cmd): Use NULL as set callback.
6481 (packet_ok): "set remote foo-packet"-style commands no longer
6482 change config->supported -- adjust.
6483 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6484 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6485 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6486 (PACKET_QNonStop, PACKET_multiprocess_feature)
6487 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6488 (PACKET_DisconnectedTracing_feature)
6489 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6490 (set_remote_protocol_packet_cmd): Delete function.
6491 (packet_config_support, packet_support): New functions.
6492 (set_remote_protocol_Z_packet_cmd): Don't call
6493 update_packet_config.
6494 (remote_query_attached, remote_pass_signals)
6495 (remote_program_signals, remote_threads_info)
6496 (remote_threads_extra_info, remote_start_remote): Use
6497 packet_support.
6498 (remote_start_remote): Use packet_config_support and
6499 packet_support.
6500 (init_all_packet_configs): Set all packets to unknown support,
6501 instead of calling update_packet_config.
6502 (remote_check_symbols): Use packet_support.
6503 (remote_supported_packet): Unconditionally set the packet config's
6504 support status.
6505 (remote_multi_process_feature, remote_non_stop_feature)
6506 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6507 (remote_breakpoint_commands_feature)
6508 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6509 (remote_install_in_trace_feature)
6510 (remote_disconnected_tracing_feature)
6511 (remote_enable_disable_tracepoint_feature)
6512 (remote_string_tracing_feature)
6513 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6514 (remote_protocol_features): Adjust to use remote_supported_packet
6515 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6516 "ConditionalTracepoints", "ConditionalBreakpoints",
6517 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6518 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6519 "EnableDisableTracepoints", and "tracenz".
6520 (remote_query_supported): Use packet_support.
6521 (remote_open_1): Adjust.
6522 (extended_remote_attach_1): Use packet_support. Switch on the
6523 result of packet_ok instead of checking whether the packet ended
6524 up disabled.
6525 (remote_vcont_resume): Use packet_support.
6526 (remote_resume, remote_stop_ns, fetch_register_using_p)
6527 (remote_prepare_to_store, store_register_using_P)
6528 (check_binary_download, remote_write_bytes): Use packet_support.
6529 (remote_vkill): Use packet_support. Switch on the result of
6530 packet_ok instead of checking whether the packet ended up
6531 disabled.
6532 (extended_remote_supports_disable_randomization): Use
6533 packet_support.
6534 (extended_remote_run): Switch on the result of packet_ok instead
6535 of checking whether the packet ended up disabled.
6536 (remote_insert_breakpoint, remote_remove_breakpoint)
6537 (remote_insert_watchpoint, remote_remove_watchpoint)
6538 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6539 packet_support.
6540 (remote_search_memory): Use packet_config_support.
6541 (remote_get_thread_local_address, remote_get_tib_address)
6542 (remote_hostio_send_command, remote_can_execute_reverse): Use
6543 packet_support.
6544 (remote_supports_cond_tracepoints)
6545 (remote_supports_cond_breakpoints)
6546 (remote_supports_fast_tracepoints)
6547 (remote_supports_static_tracepoints)
6548 (remote_supports_install_in_trace)
6549 (remote_supports_enable_disable_tracepoint)
6550 (remote_supports_string_tracing)
6551 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6552 the packet config says the feature is enabled or disabled.
6553 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6554 (remote_get_trace_status): Use packet_support.
6555 (remote_set_disconnected_tracing): Adjust to check whether the
6556 feature is enabled with packet_support.
6557 (remote_set_trace_buffer_size, remote_use_agent)
6558 (remote_can_use_agent, remote_supports_btrace): Use
6559 packet_support.
6560 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6561 Use packet_config_support.
6562 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6563 the packet config says the feature is enabled or disabled.
6564 (set_range_stepping): Use packet_support.
6565
6566 2014-04-25 Tom Tromey <tromey@redhat.com>
6567
6568 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6569 argument.
6570
6571 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6572
6573 * NEWS: Mention support for C99 variable length arrays.
6574
6575 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6576
6577 * ada-lang.c (standard_exc): Expand introductory comment.
6578
6579 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6580 Walfred Tedeschi <walfred.tedeschi@intel.com>
6581
6582 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6583 AVX512 registers.
6584 (amd64_linux_read_description): Add code to handle AVX512 xstate
6585 mask and return respective tdesc.
6586 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6587 and features/i386/x32-avx512-linux.c.
6588 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6589 (amd64_linux_core_read_description): Add code to handle AVX512
6590 xstate mask and return respective tdesc.
6591 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6592 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6593 calculation.
6594 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6595 (tdesc_amd64_avx512_linux): New prototype.
6596 (tdesc_x32_avx512_linux): Likewise.
6597 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6598 features/i386/x32-avx512.c.
6599 (amd64_ymm_avx512_names): New register names for pseudo
6600 registers YMM16-31.
6601 (amd64_ymmh_avx512_names): New register names for raw registers
6602 YMMH16-31.
6603 (amd64_k_names): New register names for K registers.
6604 (amd64_zmmh_names): New register names for ZMM raw registers.
6605 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6606 (amd64_xmm_avx512_names): New register names for XMM16-31
6607 registers.
6608 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6609 registers.
6610 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6611 if feature is present.
6612 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6613 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6614 (AMD64_NUM_REGS): Adjust to new number of registers.
6615 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6616 registers supplied via XSTATE by AVX512 registers.
6617 (i386_linux_read_description): Add case for AVX512.
6618 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6619 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6620 (i386_linux_core_read_description): Add case for AVX512.
6621 (i386_linux_init_abi): Install supported register note section
6622 for AVX512.
6623 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6624 AVX512.
6625 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6626 registers to be number of zmm7h + 1.
6627 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6628 * i386-tdep.c: Include features/i386/i386-avx512.c.
6629 (i386_zmm_names): Add ZMM pseudo register names array.
6630 (i386_zmmh_names): Add ZMM raw register names array.
6631 (i386_k_names): Add K raw register names array.
6632 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6633 registers. AVX512 has 16 more ZMM registers than there are YMM
6634 registers.
6635 (i386_zmmh_regnum_p): Add function to look up register number of
6636 ZMM raw registers.
6637 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6638 (i386_k_regnum_p): Likewise for K raw registers.
6639 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6640 registers added by AVX512.
6641 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6642 registers added by AVX512.
6643 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6644 added by AVX512.
6645 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6646 (i386_pseudo_register_name): Add ZMM pseudo registers.
6647 (i386_zmm_type): Construct and return vector registers type for ZMM
6648 registers.
6649 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6650 ZMM0-31 pseudo registers and K registers.
6651 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6652 and YMM16-31 registers from register cache.
6653 (i386_pseudo_register_write): Add code to write K, ZMM and
6654 YMM16-31 registers.
6655 (i386_register_reggroup_p): Add code to include/exclude AVX512
6656 registers in/from respective register groups.
6657 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6658 registers if feature is present in xcr0.
6659 (i386_gdbarch_init): Add code to initialize AVX512 feature
6660 variables in tdep structure, wire in pseudo registers and call
6661 initialize_tdesc_i386_avx512.
6662 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6663 variables.
6664 (i386_regnum): Add AVX512 registers.
6665 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6666 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6667 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6668 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6669 512 bits wide.
6670 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6671 (i386_ymm_avx512_regnum_p): Likewise.
6672 (i386_k_regnum_p): Likewise.
6673 (i386_zmm_regnum_p): Likewise.
6674 (i386_zmmh_regnum_p): Likewise.
6675 * i387-tdep.c : Update year in copyright notice.
6676 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6677 XSAVE buffer.
6678 (XSAVE_YMM_AVX512_ADDR): New macro.
6679 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6680 XSAVE buffer.
6681 (XSAVE_XMM_AVX512_ADDR): New macro.
6682 (xsave_avx512_k_offset): New table for K register offsets in
6683 XSAVE buffer.
6684 (XSAVE_AVX512_K_ADDR): New macro.
6685 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6686 in XSAVE buffer.
6687 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6688 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6689 buffer.
6690 (i387_collect_xsave): Add code to collect AVX512 registers from
6691 XSAVE buffer.
6692 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6693 of XMM16-31 registers.
6694 (I387_NUM_K_REGS): New define for number of K registers.
6695 (I387_K0_REGNUM): New define for K0 register number.
6696 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6697 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6698 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6699 registers.
6700 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6701 (I387_XMM16_REGNUM): New define for XMM16 register number.
6702 (I387_YMM0_REGNUM): New define for YMM0 register number.
6703 (I387_KEND_REGNUM): New define for last K register number.
6704 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6705 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6706 number.
6707 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6708 number.
6709 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6710 size.
6711 * features/Makefile: Add AVX512 related files.
6712 * features/i386/32bit-avx512.xml: New file.
6713 * features/i386/64bit-avx512.xml: Likewise.
6714 * features/i386/amd64-avx512-linux.c: Likewise.
6715 * features/i386/amd64-avx512-linux.xml: Likewise.
6716 * features/i386/amd64-avx512.c: Likewise.
6717 * features/i386/amd64-avx512.xml: Likewise.
6718 * features/i386/i386-avx512-linux.c: Likewise.
6719 * features/i386/i386-avx512-linux.xml: Likewise.
6720 * features/i386/i386-avx512.c: Likewise.
6721 * features/i386/i386-avx512.xml: Likewise.
6722 * features/i386/x32-avx512-linux.c: Likewise.
6723 * features/i386/x32-avx512-linux.xml: Likewise.
6724 * features/i386/x32-avx512.c: Likewise.
6725 * features/i386/x32-avx512.xml: Likewise.
6726 * regformats/i386/amd64-avx512-linux.dat: New file.
6727 * regformats/i386/amd64-avx512.dat: Likewise.
6728 * regformats/i386/i386-avx512-linux.dat: Likewise.
6729 * regformats/i386/i386-avx512.dat: Likewise.
6730 * regformats/i386/x32-avx512-linux.dat: Likewise.
6731 * regformats/i386/x32-avx512.dat: Likewise.
6732 * NEWS: Add note about new support for AVX512.
6733
6734
6735 2014-04-23 Pedro Alves <palves@redhat.com>
6736
6737 * breakpoint.c (insert_bp_location): Tolerate errors if the
6738 breakpoint is set in a user-loaded objfile.
6739 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6740 location is marked shlib_disabled. If the breakpoint is set in a
6741 user-loaded objfile is a GDB-side memory breakpoint, validate it
6742 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6743 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6744 flag.
6745 * mem-break.c (memory_validate_breakpoint): New function.
6746 * objfiles.c (userloaded_objfile_contains_address_p): New
6747 function.
6748 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6749 * target.h (memory_validate_breakpoint): New declaration.
6750
6751 2014-04-23 Pedro Alves <palves@redhat.com>
6752
6753 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6754 the breakpoint is set in a shared library, only suppress
6755 errors for software breakpoints, not hardware breakpoints.
6756
6757 2014-04-22 Pedro Alves <palves@redhat.com>
6758
6759 * infrun.c (schedlock_applies): New function, factored out from
6760 find_thread_needs_step_over.
6761 (find_thread_needs_step_over): Use it.
6762 (switch_back_to_stepped_thread): Always clear trap_expected if the
6763 step over is finished. Return early if scheduler locking applies.
6764 Look for the stepping thread and a potential step-over thread with
6765 a single loop.
6766 (currently_stepping_or_nexting_callback): Delete.
6767
6768 2014-04-22 Nick Clifton <nickc@redhat.com>
6769
6770 * NEWS: Mention that ARM sim now supports tracing.
6771
6772 2014-04-22 Yao Qi <yao@codesourcery.com>
6773
6774 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6775 to ...
6776 * tracefile.c (tracefile_fetch_registers): ... it. New
6777 function.
6778 * tracefile.h (tracefile_fetch_registers): Declare.
6779 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6780 tracefile_fetch_registers.
6781
6782 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6783
6784 PR gdb/14018
6785 * windows-nat.c (thread_rec): Don't display a warning when
6786 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6787 fails for any reason, set th->suspended to -1, so that we don't
6788 try to resume such a thread. Also, don't return NULL in these
6789 cases, to avoid completely ruin the session due to "PC register is
6790 not available" error.
6791 (do_windows_fetch_inferior_registers): Check errors in
6792 GetThreadContext call.
6793 (windows_continue): Accept an additional argument KILLED; if not
6794 zero, ignore errors in the SetThreadContext call, since the
6795 inferior was killed and is shutting down.
6796 (windows_resume, get_windows_debug_event)
6797 (windows_create_inferior, windows_mourn_inferior)
6798 (windows_kill_inferior): All callers of windows_continue changed
6799 to adjust to its new calling sequence.
6800
6801 2014-04-19 Yao Qi <yao@codesourcery.com>
6802
6803 * ctf.c (ctf_open): Call post_create_inferior.
6804
6805 2014-04-19 Yao Qi <yao@codesourcery.com>
6806
6807 * ctf.c (handle_id): New static variable.
6808 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6809 value. Get the declaration of event "register" and get length
6810 of field "contents".
6811
6812 2014-04-19 Yao Qi <yao@codesourcery.com>
6813
6814 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6815
6816 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6817
6818 * valops.c (oload_method_static): Remove unnecessary argument
6819 METHOD. Update all callers.
6820
6821 2014-04-18 Pedro alves <palves@redhat.com>
6822 Tom Tromey <tromey@redhat.com>
6823
6824 PR backtrace/15558
6825 * frame.c (get_prev_frame_1): Rename to ...
6826 (get_prev_frame_always): ... this, and make extern. Adjust.
6827 (skip_artificial_frames): Use get_prev_frame_always.
6828 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6829 (get_frame_unwind_stop_reason): Adjust to rename.
6830 * frame.h (get_prev_frame_always): Declare.
6831 * inline-frame.c: Include frame.h.
6832 (inline_frame_this_id): Use get_prev_frame_always.
6833
6834 2014-04-18 Tristan Gingold <gingold@adacore.com>
6835
6836 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6837 code by using bfd_mach_o_get_base_address.
6838
6839 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6840
6841 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6842 (spu_ax_pseudo_register_collect): New function.
6843 (spu_ax_pseudo_register_push_stack): Likewise.
6844 (spu_dwarf_reg_to_regnum): Likewise.
6845 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6846
6847 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6848
6849 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6850 Replace FRAME argument with FRAME_ID.
6851 * gdbarch.c, gdbarch.h: Regenerate.
6852 * findvar.c (default_value_from_register): Add GDBARCH argument;
6853 replace FRAME by FRAME_ID. No longer call get_frame_id.
6854 (value_from_register): Update call to gdbarch_value_from_register.
6855 * value.h (default_value_from_register): Update prototype.
6856 * s390-linux-tdep.c (s390_value_from_register): Update interface
6857 and call to default_value_from_register.
6858 * spu-tdep.c (spu_value_from_register): Likewise.
6859
6860 * findvar.c (address_from_register): Remove TYPE argument.
6861 Do not call value_from_register; use gdbarch_value_from_register
6862 with null_frame_id instead.
6863 * value.h (address_from_register): Update prototype.
6864 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6865 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6866 address_from_register interface change.
6867
6868 2014-04-17 Yao Qi <yao@codesourcery.com>
6869
6870 * gdbtypes.h: Update comments to link to types and macros'
6871 definitions.
6872
6873 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6874
6875 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6876
6877 2014-04-16 Keith Seitz <keiths@redhat.com>
6878
6879 PR gdb/15827
6880 * dwarf2read.c (skip_one_die): Check that all relative-offset
6881 sibling DIEs fall within range of the current reader's buffer.
6882 (read_partial_die): Likewise.
6883
6884 2014-04-16 Keith Seitz <keiths@redhat.com>
6885
6886 PR c++/16597
6887 * cp-namespace.c (lookup_symbol_file): If the type name of
6888 `this' is NULL, return immediately.
6889
6890 2014-04-14 Keith Seitz <keiths@redhat.com>
6891
6892 PR c++/16253
6893 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6894 from symbol_matches_domain in symtab.c. All local callers
6895 of symbol_matches_domain updated.
6896 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6897 search STRUCT_DOMAIN.
6898 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6899 independently. standard_lookup will do that automatically.
6900 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6901 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6902 (cp_lookup_symbol_in_namespace): Likewise.
6903 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6904 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6905 may return a STRUCT_DOMAIN match.
6906 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6907 * cp-support.c: Include language.h.
6908 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6909 VAR_DOMAIN.
6910 * psymtab.c (match_partial_symbol): Compare the requested
6911 domain with the symbol's domain directly.
6912 (lookup_partial_symbol): Likewise.
6913 * symtab.c (lookup_symbol_in_language): Explain when/why
6914 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6915 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6916 appropriate languages.
6917 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6918 and moved to ada-lang.c
6919 (lookup_block_symbol): Explain that this function only returns
6920 symbol matching the requested DOMAIN.
6921 Compare the requested domain with the symbol's domain directly.
6922 (iterate_over_symbols): Compare the requested domain with the
6923 symbol's domain directly.
6924 * symtab.h (symbol_matches_domain): Remove.
6925
6926 2014-04-14 Tom Tromey <tromey@redhat.com>
6927
6928 PR c++/15246:
6929 * c-exp.y (type_aggregate_p): New function.
6930 (qualified_name, classify_inner_name): Use it.
6931 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6932 and TYPE_TARGET_TYPE of an enum type.
6933 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6934 an enum type.
6935 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6936 handle TYPE_DECLARED_CLASS.
6937 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6938 types.
6939 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6940 * valops.c (enum_constant_from_type): New function.
6941 (value_aggregate_elt): Use it.
6942 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6943 TYPE_CODE_ENUM.
6944
6945 2014-04-14 Tom Tromey <tromey@redhat.com>
6946
6947 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6948 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6949 const.
6950 * value.h (value_aggregate_elt): Update.
6951
6952 2014-04-14 Tom Tromey <tromey@redhat.com>
6953
6954 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6955
6956 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6957
6958 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6959 (evaluate_subexp_standard): Pass noside argument.
6960 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6961 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6962 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6963 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6964 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6965
6966 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6967
6968 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6969 points to a constant blob.
6970
6971 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6972
6973 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6974 property and store it as the high bound and flag the range accordingly.
6975 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6976 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6977 * gdbtypes.h (enum range_flags): New enum.
6978 (struct range_bounds): Add flags member.
6979
6980 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6981
6982 * c-typeprint.c (c_type_print_varspec_suffix): Added
6983 check for not yet resolved high bound. If unresolved, print
6984 "variable length" string to the console instead of random
6985 length.
6986
6987 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6988
6989 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6990 value.
6991 (ada_template_to_fixed_record_type_1): Likewise.
6992 (ada_to_fixed_type_1): Likewise.
6993 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6994 (cp_print_value): Likewise.
6995 * d-valprint.c (dynamic_array_type): Likewise.
6996 * findvar.c (address_of_variable): Likewise.
6997 * jv-valprint.c (java_value_print): Likewise.
6998 * valops.c (value_ind): Likewise.
6999 * value.c (coerce_ref): Likewise.
7000
7001 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7002
7003 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7004 value and retrieve the dynamic type size.
7005
7006 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7007
7008 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7009 passed to sizeof is dynamic evaluate the argument to compute the length.
7010
7011 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7012 Joel Brobecker <brobecker@adacore.com>
7013
7014 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7015 (dwarf2_evaluate_property): New function.
7016 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7017 * dwarf2read.c (attr_to_dynamic_prop): New function.
7018 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7019 attribute.
7020 * gdbtypes.c: Include dwarf2loc.h.
7021 (is_dynamic_type): New function.
7022 (resolve_dynamic_type): New function.
7023 (resolve_dynamic_bounds): New function.
7024 (get_type_length): New function.
7025 (check_typedef): Use get_type_length to compute type length.
7026 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7027 (TYPE_LOW_BOUND_KIND): New macro.
7028 (is_dynamic_type): New function prototype.
7029 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7030 to resolve dynamic properties of the type. Update comment.
7031 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7032
7033 2014-04-14 Richard Henderson <rth@redhat.com>
7034
7035 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7036
7037 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7038 Doug Evans <xdje42@gmail.com>
7039
7040 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7041 dereference TYPE_CODE_REF values.
7042
7043 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7044
7045 Revert the following changes due to regressions:
7046
7047 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7048 (dwarf2_evaluate_property): New function.
7049 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7050 * dwarf2read.c (attr_to_dynamic_prop): New function.
7051 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7052 attribute.
7053 * gdbtypes.c: Include dwarf2loc.h.
7054 (is_dynamic_type): New function.
7055 (resolve_dynamic_type): New function.
7056 (resolve_dynamic_bounds): New function.
7057 (get_type_length): New function.
7058 (check_typedef): Use get_type_length to compute type length.
7059 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7060 (TYPE_LOW_BOUND_KIND): New macro.
7061 (is_dynamic_type): New function prototype.
7062 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7063 to resolve dynamic properties of the type. Update comment.
7064 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7065
7066 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7067 passed to sizeof is dynamic evaluate the argument to compute the length.
7068
7069 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7070 value and retrieve the dynamic type size.
7071
7072 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7073 (ada_template_to_fixed_record_type_1): Likewise.
7074 (ada_to_fixed_type_1): Likewise.
7075 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7076 (cp_print_value): Likewise.
7077 * d-valprint.c (dynamic_array_type): Likewise.
7078 * eval.c (evaluate_subexp_with_coercion): Likewise.
7079 * findvar.c (address_of_variable): Likewise.
7080 * jv-valprint.c (java_value_print): Likewise.
7081 * valops.c (value_ind): Likewise.
7082 * value.c (coerce_ref): Likewise.
7083
7084 * c-typeprint.c (c_type_print_varspec_suffix): Added
7085 check for not yet resolved high bound. If unresolved, print
7086 "variable length" string to the console instead of random
7087 length.
7088
7089 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7090 property and store it as the high bound and flag the range accordingly.
7091 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7092 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7093 * gdbtypes.h (enum range_flags): New enum.
7094 (struct range_bounds): Add flags member.
7095
7096 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7097 points to a constant blob.
7098
7099 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7100 (evaluate_subexp_standard): Pass noside argument.
7101 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7102 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7103 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7104 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7105 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7106
7107 2014-04-11 Keith Seitz <keiths@redhat.com>
7108
7109 PR c++/16675
7110 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7111 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7112 reference types.
7113
7114 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7115
7116 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7117 (evaluate_subexp_standard): Pass noside argument.
7118 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7119 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7120 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7121 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7122 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7123
7124 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7125
7126 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7127 points to a constant blob.
7128
7129 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7130
7131 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7132 property and store it as the high bound and flag the range accordingly.
7133 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7134 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7135 * gdbtypes.h (enum range_flags): New enum.
7136 (struct range_bounds): Add flags member.
7137
7138 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7139
7140 * c-typeprint.c (c_type_print_varspec_suffix): Added
7141 check for not yet resolved high bound. If unresolved, print
7142 "variable length" string to the console instead of random
7143 length.
7144
7145 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7146
7147 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7148 (ada_template_to_fixed_record_type_1): Likewise.
7149 (ada_to_fixed_type_1): Likewise.
7150 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7151 (cp_print_value): Likewise.
7152 * d-valprint.c (dynamic_array_type): Likewise.
7153 * eval.c (evaluate_subexp_with_coercion): Likewise.
7154 * findvar.c (address_of_variable): Likewise.
7155 * jv-valprint.c (java_value_print): Likewise.
7156 * valops.c (value_ind): Likewise.
7157 * value.c (coerce_ref): Likewise.
7158
7159 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7160
7161 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7162 value and retrieve the dynamic type size.
7163
7164 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7165
7166 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7167 passed to sizeof is dynamic evaluate the argument to compute the length.
7168
7169 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7170
7171 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7172 (dwarf2_evaluate_property): New function.
7173 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7174 * dwarf2read.c (attr_to_dynamic_prop): New function.
7175 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7176 attribute.
7177 * gdbtypes.c: Include dwarf2loc.h.
7178 (is_dynamic_type): New function.
7179 (resolve_dynamic_type): New function.
7180 (resolve_dynamic_bounds): New function.
7181 (get_type_length): New function.
7182 (check_typedef): Use get_type_length to compute type length.
7183 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7184 (TYPE_LOW_BOUND_KIND): New macro.
7185 (is_dynamic_type): New function prototype.
7186 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7187 to resolve dynamic properties of the type. Update comment.
7188 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7189
7190 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7191
7192 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7193 declaring high/low bounds and change uses accordingly. Call
7194 create_range_type instead of create_static_range_type.
7195 * gdbtypes.c (create_range_type): New function.
7196 (create_range_type): Convert bounds into struct bound_prop and pass
7197 them to create_range_type.
7198 * gdbtypes.h (struct bound_prop): New struct.
7199 (create_range_type): New function prototype.
7200 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7201 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7202 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7203 part of the bound.
7204 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7205
7206 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7207
7208 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7209 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7210 * ada-lang.c: All uses of create_range_type updated.
7211 * coffread.c: All uses of create_range_type updated.
7212 * dwarf2read.c: All uses of create_range_type updated.
7213 * f-exp.y: All uses of create_range_type updated.
7214 * m2-valprint.c: All uses of create_range_type updated.
7215 * mdebugread.c: All uses of create_range_type updated.
7216 * stabsread.c: All uses of create_range_type updated.
7217 * valops.c: All uses of create_range_type updated.
7218 * valprint.c: All uses of create_range_type updated.
7219
7220 2014-04-10 Pedro Alves <palves@redhat.com>
7221
7222 * breakpoint.c (single_step_breakpoints)
7223 (single_step_gdbarch): Move up in the file.
7224 (one_breakpoint_xfer_memory): New function, factored out from ...
7225 (breakpoint_xfer_memory): ... here. Also process single-step
7226 breakpoints.
7227
7228 2014-04-09 Tristan Gingold <gingold@adacore.com>
7229
7230 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7231 comments.
7232 (darwin_decode_exception_message): Free port only after use.
7233
7234 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7235
7236 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7237 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7238 when setting the size of call_length.
7239
7240 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7241
7242 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7243 dereference TYPE_CODE_REF values.
7244
7245 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7246
7247 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7248 end of warning message.
7249
7250 2014-04-03 Doug Evans <dje@google.com>
7251
7252 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7253 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7254
7255 2014-04-02 Alan Modra <amodra@gmail.com>
7256
7257 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7258 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7259 (struct symbol_file_add_from_memory_args): Add size field.
7260 (find_vdso_size): New function.
7261 (add_vsyscall_page): Attempt to find vdso size.
7262
7263 2014-04-01 Doug Evans <dje@google.com>
7264
7265 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7266
7267 2014-04-01 Tristan Gingold <gingold@adacore.com>
7268
7269 * darwin-nat.c (darwin_encode_reply): Add prototype.
7270 (darwin_decode_exception_message): Reply to unknown inferiors.
7271 (darwin_decode_message): Handle message by id. Ignore message
7272 to unknown inferior.
7273 (darwin_wait): Discard unknown messages, add debug trace.
7274
7275 2014-03-31 Doug Evans <dje@google.com>
7276
7277 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7278 comp_dir_string.
7279
7280 2014-03-31 Doug Evans <dje@google.com>
7281
7282 New option "set print symbol-loading".
7283 * NEWS: Mention it.
7284 * solib.c (solib_read_symbols): Only print symbol loading messages
7285 if requested.
7286 (solib_add): If symbol loading is in "brief" mode, notify user
7287 symbols are being loaded.
7288 (reload_shared_libraries_1): Ditto.
7289 * symfile.c (print_symbol_loading_off): New static global.
7290 (print_symbol_loading_brief): New static global.
7291 (print_symbol_loading_full): New static global.
7292 (print_symbol_loading_enums): New static global.
7293 (print_symbol_loading): New static global.
7294 (print_symbol_loading_p): New function.
7295 (symbol_file_add_with_addrs): Only print symbol loading messages
7296 if requested.
7297 (_initialize_symfile): Register "print symbol-loading" set/show
7298 command.
7299 * symfile.h (print_symbol_loading_p): Declare.
7300
7301 2014-03-30 Doug Evans <xdje42@gmail.com>
7302
7303 * infrun.c (set_last_target_status): New function.
7304 (handle_inferior_event): Call it.
7305
7306 2014-03-30 Doug Evans <xdje42@gmail.com>
7307
7308 * inferior.h (enum stop_kind): Improve comment.
7309
7310 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7311
7312 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7313 a reference, strip the reference layer before calling
7314 the lang_ops value_has_mutated callback.
7315
7316 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7317
7318 Remove some globals from our parser.
7319 * language.c (unk_lang_parser): Add "struct parser_state"
7320 argument.
7321 * language.h (struct language_defn) <la_parser>: Likewise.
7322 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7323 (initialize_expout): Add "struct parser_state" argument.
7324 Rewrite function to use the parser state.
7325 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7326 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7327 write_exp_elt_longcst, write_exp_elt_dblcst,
7328 write_exp_elt_decfloatcst, write_exp_elt_type,
7329 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7330 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7331 write_dollar_variable): Likewise.
7332 (parse_exp_in_context_1): Use parser state.
7333 (insert_type_address_space): Add "struct parser_state" argument.
7334 Use parser state.
7335 (increase_expout_size): New function.
7336 * parser-defs.h: Forward declare "struct language_defn" and
7337 "struct parser_state".
7338 (expout, expout_size, expout_ptr): Remove extern declarations.
7339 (parse_gdbarch, parse_language): Rewrite macro declarations to
7340 accept the parser state.
7341 (struct parser_state): New struct.
7342 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7343 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7344 write_exp_elt_decfloatcst, write_exp_elt_type,
7345 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7346 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7347 write_exp_msymbol, write_dollar_variable,
7348 mark_struct_expression, insert_type_address_space): Add "struct
7349 parser_state" argument.
7350 (increase_expout_size): New function.
7351 * utils.c (do_clear_parser_state): New function.
7352 (make_cleanup_clear_parser_state): Likewise.
7353 * utils.h (make_cleanup_clear_parser_state): New function
7354 prototype.
7355 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7356 Update calls to write_exp* in order to pass the parser state.
7357 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7358 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7359 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7360 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7361 * stap-probe.c (stap_parse_register_operand): Likewise.
7362 (stap_parse_single_operand): Likewise.
7363 (stap_parse_argument_1): Likewise.
7364 (stap_parse_argument): Use parser state.
7365 * stap-probe.h: Include "parser-defs.h".
7366 (struct stap_parse_info) <pstate>: New field.
7367 * c-exp.y (parse_type): Rewrite to use parser state.
7368 (yyparse): Redefine to c_parse_internal.
7369 (pstate): New global variable.
7370 (parse_number): Add "struct parser_state" argument.
7371 (write_destructor_name): Likewise.
7372 (type_exp): Update calls to write_exp* and similars in order to
7373 use parser state.
7374 (exp1, exp, variable, qualified_name, space_identifier,
7375 typename, typebase): Likewise.
7376 (write_destructor_name, parse_number, lex_one_token,
7377 classify_name, classify_inner_name, c_parse): Add "struct
7378 parser_state" argument. Update function to use parser state.
7379 * c-lang.h: Forward declare "struct parser_state".
7380 (c_parse): Add "struct parser_state" argument.
7381 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7382 (yyparse): Redefine macro to ada_parse_internal.
7383 (pstate): New variable.
7384 (write_int, write_object_renaming, write_var_or_type,
7385 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7386 type_int, type_long, type_long_long, type_float, type_double,
7387 type_long_double, type_char, type_boolean, type_system_address):
7388 Add "struct parser_state" argument.
7389 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7390 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7391 var_or_type, aggregate, aggregate_component_list,
7392 positional_list, others, component_group,
7393 component_associations): Update calls to write_exp* and similar
7394 functions in order to use parser state.
7395 (ada_parse, write_var_from_sym, write_int,
7396 write_exp_op_with_string, write_object_renaming,
7397 find_primitive_type, write_selectors, write_ambiguous_var,
7398 write_var_or_type, write_name_assoc, type_int, type_long,
7399 type_long_long, type_float, type_double, type_long_double,
7400 type_char, type_boolean, type_system_address): Add "struct
7401 parser_state" argument. Adjust function to use parser state.
7402 * ada-lang.c (parse): Likewise.
7403 * ada-lang.h: Forward declare "struct parser_state".
7404 (ada_parse): Add "struct parser_state" argument.
7405 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7406 calls to both functions.
7407 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7408 parser state.
7409 (yyparse): Redefine macro to f_parse_internal.
7410 (pstate): New variable.
7411 (parse_number): Add "struct parser_state" argument.
7412 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7413 and similars in order to use parser state.
7414 (parse_number): Adjust code to use parser state.
7415 (yylex): Likewise.
7416 (f_parse): New function.
7417 * f-lang.h: Forward declare "struct parser_state".
7418 (f_parse): Add "struct parser_state" argument.
7419 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7420 parser state.
7421 (yyparse): Redefine macro for java_parse_internal.
7422 (pstate): New variable.
7423 (push_expression_name, push_expression_name, insert_exp): Add
7424 "struct parser_state" argument.
7425 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7426 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7427 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7428 PostIncrementExpression, PostDecrementExpression,
7429 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7430 UnaryExpressionNotPlusMinus, CastExpression,
7431 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7432 RelationalExpression, EqualityExpression, AndExpression,
7433 ExclusiveOrExpression, InclusiveOrExpression,
7434 ConditionalAndExpression, ConditionalOrExpression,
7435 ConditionalExpression, Assignment, LeftHandSide): Update
7436 calls to write_exp* and similars in order to use parser state.
7437 (parse_number): Ajust code to use parser state.
7438 (yylex): Likewise.
7439 (java_parse): New function.
7440 (push_variable): Add "struct parser_state" argument. Adjust
7441 code to user parser state.
7442 (push_fieldnames, push_qualified_expression_name,
7443 push_expression_name, insert_exp): Likewise.
7444 * jv-lang.h: Forward declare "struct parser_state".
7445 (java_parse): Add "struct parser_state" argument.
7446 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7447 parser state.
7448 (yyparse): Redefine macro to m2_parse_internal.
7449 (pstate): New variable.
7450 (type_exp, exp, fblock, variable, type): Update calls to
7451 write_exp* and similars to use parser state.
7452 (yylex): Likewise.
7453 (m2_parse): New function.
7454 * m2-lang.h: Forward declare "struct parser_state".
7455 (m2_parse): Add "struct parser_state" argument.
7456 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7457 * objc-lang.h: Forward declare "struct parser_state".
7458 (end_msglist): Add "struct parser_state" argument.
7459 * p-exp.y (parse_type): Rewrite macro to use parser state.
7460 (yyparse): Redefine macro to pascal_parse_internal.
7461 (pstate): New variable.
7462 (parse_number): Add "struct parser_state" argument.
7463 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7464 write_exp* and similars in order to use parser state.
7465 (parse_number, yylex): Adjust code to use parser state.
7466 (pascal_parse): New function.
7467 * p-lang.h: Forward declare "struct parser_state".
7468 (pascal_parse): Add "struct parser_state" argument.
7469 * go-exp.y (parse_type): Rewrite macro to use parser state.
7470 (yyparse): Redefine macro to go_parse_internal.
7471 (pstate): New variable.
7472 (parse_number): Add "struct parser_state" argument.
7473 (type_exp, exp1, exp, variable, type): Update calls to
7474 write_exp* and similars in order to use parser state.
7475 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7476 to use parser state.
7477 (go_parse): Likewise.
7478 * go-lang.h: Forward declare "struct parser_state".
7479 (go_parse): Add "struct parser_state" argument.
7480
7481 2014-03-27 Doug Evans <dje@google.com>
7482
7483 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7484
7485 2014-03-27 Doug Evans <dje@google.com>
7486
7487 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7488 Remove argument abbrev_section. All callers updated.
7489
7490 2014-03-27 Doug Evans <dje@google.com>
7491
7492 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7493 addr_base, ranges_base.
7494
7495 2014-03-26 Keith Seitz <keiths@redhat.com>
7496
7497 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7498 types, not VAR_DOMAIN.
7499
7500 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7501
7502 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7503 "ra" registers.
7504 * features/nios2-linux.c: Regenerated.
7505 * features/nios2.c: Regenerated.
7506
7507 2014-03-25 Pedro Alves <palves@redhat.com>
7508
7509 * cli/cli-script.c (script_from_file): Force the interpreter to
7510 sync mode.
7511
7512 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7513
7514 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7515 small stack allocation.
7516
7517 2014-03-24 Tristan Gingold <gingold@adacore.com>
7518
7519 * darwin-nat.c (exc_server): Remove unused prototype.
7520 (darwin_dump_message): Correctly display data on x86_64.
7521 (darwin_encode_reply): Fix style.
7522 Add comments and fix indentation.
7523
7524 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7525
7526 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7527
7528 2014-03-22 Doug Evans <xdje42@gmail.com>
7529
7530 * infcmd.c: Whitespace fixes.
7531 (interrupt_command): Merge two function comments into one.
7532
7533 2014-03-22 Doug Evans <xdje42@gmail.com>
7534
7535 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7536 All uses updated.
7537
7538 2014-03-22 Yao Qi <yao@codesourcery.com>
7539
7540 * remote.c (target_read_live_memory): Remove.
7541 (memory_xfer_live_readonly_partial): Rename it to
7542 remote_xfer_live_readonly_partial. Remove argument 'object'.
7543 All callers updated. Call remote_read_bytes_1
7544 instead of target_read_live_memory.
7545 * tracepoint.c (set_traceframe_number): Remove.
7546 (make_cleanup_restore_traceframe_number): Likewise .
7547 * tracepoint.h (set_traceframe_number): Remove declaration.
7548 (make_cleanup_restore_traceframe_number): Likewise.
7549
7550 2014-03-22 Yao Qi <yao@codesourcery.com>
7551
7552 * remote.c (remote_read_bytes): Move code on reading from the
7553 remote stub to ...
7554 (remote_read_bytes_1): ... here. New function.
7555
7556 2014-03-22 Yao Qi <yao@codesourcery.com>
7557
7558 * ctf.c (ctf_xfer_partial): Check the return value of
7559 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7560 return TARGET_XFER_UNAVAILABLE.
7561 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7562 * target.c (target_read_live_memory): Move it to remote.c.
7563 (memory_xfer_live_readonly_partial): Likewise.
7564 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7565 * remote.c (target_read_live_memory): Moved from target.c.
7566 (memory_xfer_live_readonly_partial): Likewise.
7567 (remote_read_bytes): Factored out from
7568 memory_xfer_partial_1.
7569
7570 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7571
7572 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7573 NULL pointer.
7574
7575 2014-03-21 Pedro Alves <palves@redhat.com>
7576
7577 * infrun.c (normal_stop): Extend comment.
7578
7579 2014-03-21 Hui Zhu <hui@codesourcery.com>
7580 Pedro Alves <palves@redhat.com>
7581
7582 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7583 static buffer.
7584 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7585 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7586 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7587
7588 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7589
7590 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7591 `z' formatted output modifier.
7592
7593 2014-03-20 Tom Tromey <tromey@redhat.com>
7594 Sergio Durigan Junior <sergiodj@redhat.com>
7595
7596 * probe.c (parse_probes): Turn assert into an ordinary error.
7597 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7598 exceptions when parsing probes. Rearrange the code for clarity.
7599
7600 2014-03-20 Tom Tromey <tromey@redhat.com>
7601
7602 PR gdb/14135
7603 * top.c (execute_command): Only dispatch events if the command
7604 started the target.
7605
7606 2014-03-20 Tom Tromey <tromey@redhat.com>
7607
7608 PR cli/15718
7609 * infcall.c: Include event-top.h.
7610 (run_inferior_call): Call async_disable_stdin if needed.
7611
7612 2014-03-20 Pedro Alves <palves@redhat.com>
7613
7614 * infrun.c (prepare_to_proceed): Delete.
7615 (thread_still_needs_step_over): New function.
7616 (find_thread_needs_step_over): New function.
7617 (proceed): If the current thread needs a step-over, set its
7618 steping_over_breakpoint flag. Adjust to use
7619 find_thread_needs_step_over instead of prepare_to_proceed.
7620 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7621 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7622 breakpoint.
7623 (switch_back_to_stepped_thread): Step over breakpoints of all
7624 threads not the stepping thread, before switching back to the
7625 stepping thread.
7626
7627 2014-03-20 Pedro Alves <palves@redhat.com>
7628
7629 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7630 extern.
7631 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7632 * infrun.c (saved_singlestep_ptid)
7633 (stepping_past_singlestep_breakpoint): Delete.
7634 (resume): Remove stepping_past_singlestep_breakpoint handling.
7635 (proceed): Store the prev_pc of the stepping thread too.
7636 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7637 singlestep_pc.
7638 (enum infwait_states): Delete infwait_thread_hop_state.
7639 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7640 field.
7641 (handle_inferior_event): Adjust.
7642 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7643 handling and the thread-hop code. Before removing single-step
7644 breakpoints, check whether the thread hit a single-step breakpoint
7645 of another thread. If it did, the trap is not a random signal.
7646 (switch_back_to_stepped_thread): If the event thread hit a
7647 single-step breakpoint, unblock it before switching to the
7648 stepping thread. Handle the case of the stepped thread having
7649 advanced already.
7650 (keep_going): Handle the case of the current thread moving past a
7651 single-step breakpoint.
7652
7653 2014-03-20 Pedro Alves <palves@redhat.com>
7654
7655 PR breakpoints/7143
7656 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7657 are being stepped over.
7658 (breakpoint_address_match): Make extern.
7659 * breakpoint.h (breakpoint_address_match): New declaration.
7660 * inferior.h (stepping_past_instruction_at): New declaration.
7661 * infrun.c (struct step_over_info): New type.
7662 (step_over_info): New global.
7663 (set_step_over_info, clear_step_over_info)
7664 (stepping_past_instruction_at): New functions.
7665 (handle_inferior_event): Clear the step-over info when
7666 trap_expected is cleared.
7667 (resume): Remove now stale comment.
7668 (clear_proceed_status): Clear step-over info.
7669 (proceed): Adjust step-over handling to set or clear the step-over
7670 info instead of removing all breakpoints.
7671 (handle_signal_stop): When setting up a thread-hop, don't remove
7672 breakpoints here.
7673 (stop_stepping): Clear step-over info.
7674 (keep_going): Adjust step-over handling to set or clear step-over
7675 info and then always inserting breakpoints, instead of removing
7676 all breakpoints when stepping over one.
7677
7678 2014-03-20 Pedro Alves <palves@redhat.com>
7679
7680 * infrun.c (previous_inferior_ptid): Adjust comment.
7681 (deferred_step_ptid): Delete.
7682 (infrun_thread_ptid_changed, prepare_to_proceed)
7683 (init_wait_for_inferior): Adjust.
7684 (handle_signal_stop): Delete deferred_step_ptid handling.
7685
7686 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7687
7688 PR gdb/15358
7689 * defs.h (sync_quit_force_run): New declaration.
7690 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7691 * event-top.c (async_sigterm_handler): New declaration.
7692 (async_sigterm_token): New variable.
7693 (async_init_signals): Create also async_sigterm_token.
7694 (async_sigterm_handler): New function.
7695 (sync_quit_force_run): New variable.
7696 (handle_sigterm): Replace quit_force call by other calls.
7697 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7698
7699 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7700
7701 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7702 offset into SPE pseudo registers.
7703
7704 2014-03-18 Pedro Alves <palves@redhat.com>
7705
7706 PR gdb/13860
7707 * inferior.h (print_stop_event): Declare.
7708 * infrun.c (print_stop_event): New, factored out from ...
7709 (normal_stop): ... this.
7710 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7711 of bpstat_print/print_stack_frame.
7712
7713 2014-03-17 Tom Tromey <tromey@redhat.com>
7714
7715 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7716
7717 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7718
7719 * ada-lang.c (decode_constrained_packed_array): Perform a
7720 minimal coercion for reference with coerce_ref instead of
7721 ada_coerce_ref.
7722
7723 2014-03-17 Tristan Gingold <gingold@adacore.com>
7724
7725 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7726 (darwin_solib_create_inferior_hook): Emit a warning if version
7727 is unhandled.
7728
7729 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7730
7731 * python/py-value.c (get_field_flag): Cast flag_name argument to
7732 PyObject_GetAttrString to support Python 2.4.
7733
7734 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7735
7736 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7737 (Global Maintainers): Remove Jan Kratochvil.
7738
7739 2014-03-14 Pedro Alves <palves@redhat.com>
7740
7741 * inferior.h (terminal_ours_for_output): Rename to ...
7742 (child_terminal_ours_for_output): ... this.
7743 (terminal_save_ours): Rename to ...
7744 (child_terminal_save_ours): ... this.
7745 (terminal_ours): Rename to ...
7746 (child_terminal_ours): ... this.
7747 (terminal_inferior): Rename to ...
7748 (child_terminal_inferior): ... this.
7749 (terminal_init_inferior): Rename to ...
7750 (child_terminal_init_inferior): ... this.
7751 (terminal_init_inferior_with_pgrp): Rename to ...
7752 (child_terminal_init_inferior_with_pgrp): ... this.
7753 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7754 (child_terminal_init_with_pgrp): ... this.
7755 (terminal_save_ours): Rename to ...
7756 (child_terminal_save_ours): ... this.
7757 (terminal_init_inferior): Rename to ...
7758 (child_terminal_init): ... this. Adjust.
7759 (terminal_inferior): Rename to ...
7760 (child_terminal_inferior): ... this.
7761 (terminal_ours_for_output): Rename to ...
7762 (child_terminal_ours_for_output): ... this. Adjust.
7763 (terminal_ours): Rename to ...
7764 (child_terminal_ours): ... this.
7765 (terminal_ours_1): Rename to ...
7766 (child_terminal_ours_1): ... this. Adjust.
7767 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7768 * windows-nat.c (do_initial_windows_stuff): Adjust.
7769 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7770 (gnu_terminal_init): ... this. Adjust.
7771 (gnu_target): Adjust.
7772 * inf-child.c (inf_child_target): Adjust.
7773
7774 2014-03-13 Doug Evans <xdje42@gmail.com>
7775
7776 PR guile/16612
7777 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7778 new eq?-hashtab.
7779
7780 2014-03-13 Doug Evans <xdje42@gmail.com>
7781
7782 * value.c (record_latest_value): Call release_value_or_incref
7783 instead of release_value.
7784
7785 2014-03-13 Pedro Alves <palves@redhat.com>
7786
7787 * procfs.c (procfs_target): Don't override to_shortname,
7788 to_longname or to_doc.
7789
7790 2014-03-13 Pedro Alves <palves@redhat.com>
7791
7792 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7793 Unix in user visible strings.
7794
7795 2014-03-12 Stan Shebs <stan@codesourcery.com>
7796
7797 * gdbtypes.h: Annotate comments for Doxygen, add a page
7798 block comment with some general info.
7799
7800 2014-03-12 Pedro Alves <palves@redhat.com>
7801
7802 * infcmd.c (prepare_execution_command): New function, factored out
7803 from several execution commands.
7804 (run_command_1, continue_command, step_1, jump_command)
7805 (signal_command, until_command, advance_command, finish_command)
7806 (attach_command): Use prepare_execution_command.
7807
7808 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7809
7810 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7811 (MAX_BPTS): Define.
7812 (MAX_WPTS): Define.
7813 (struct arm_linux_thread_points): Removed.
7814 (struct arm_linux_process_info): New.
7815 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7816 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7817 (arm_linux_find_breakpoints_by_tid): Removed.
7818 (struct arch_lwp_info): New.
7819 (arm_linux_find_process_pid): New functions.
7820 (arm_linux_add_process): New functions.
7821 (arm_linux_process_info_get): New functions.
7822 (arm_linux_forget_process): New function.
7823 (arm_linux_get_debug_reg_state): New function.
7824 (struct update_registers_data): New.
7825 (update_registers_callback): New function.
7826 (arm_linux_insert_hw_breakpoint1): Updated.
7827 (arm_linux_remove_hw_breakpoint1): Updated.
7828 (arm_linux_insert_hw_breakpoint): Updated.
7829 (arm_linux_remove_hw_breakpoint): Updated.
7830 (arm_linux_insert_watchpoint): Updated.
7831 (arm_linux_remove_watchpoint): Updated.
7832 (arm_linux_new_thread): Updated.
7833 (arm_linux_prepare_to_resume): New function.
7834 (arm_linux_new_fork): New function.
7835 (_initialize_arm_linux_nat): Updated.
7836
7837 2014-03-12 Pedro Alves <palves@redhat.com>
7838
7839 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7840
7841 2014-03-12 Tom Tromey <tromey@redhat.com>
7842
7843 * inf-child.c (return_zero): New function.
7844 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7845 * aix-thread.c (aix_thread_inferior_created): New function.
7846 (aix_thread_attach): Remove.
7847 (init_aix_thread_ops): Don't set to_attach.
7848 (_initialize_aix_thread): Register inferior_created observer.
7849 * corelow.c (init_core_ops): Don't set to_attach or
7850 to_create_inferior.
7851 * exec.c (init_exec_ops): Don't set to_attach or
7852 to_create_inferior.
7853 * infcmd.c (run_command_1): Use find_run_target. Make direct
7854 target calls.
7855 (attach_command): Use find_attach_target. Make direct target
7856 calls.
7857 * record-btrace.c (init_record_btrace_ops): Don't set
7858 to_create_inferior.
7859 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7860 Remove.
7861 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7862 set to_create_inferior.
7863 * target.c (complete_target_initialization): Add assertion.
7864 (target_create_inferior): Remove.
7865 (find_default_attach, find_default_create_inferior): Remove.
7866 (find_attach_target, find_run_target): New functions.
7867 (find_default_is_async_p, find_default_can_async_p)
7868 (target_supports_non_stop, target_attach): Remove.
7869 (init_dummy_target): Don't set to_create_inferior or
7870 to_supports_non_stop.
7871 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7872 TARGET_DEFAULT_FUNC.
7873 <to_create_inferior>: Add comment.
7874 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7875 TARGET_DEFAULT_RETURN.
7876 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7877 (find_attach_target, find_run_target): Declare.
7878 (target_create_inferior): Remove.
7879 (target_has_execution_1): Update comment.
7880 (target_supports_non_stop): Remove.
7881 * target-delegates.c: Rebuild.
7882
7883 2014-03-12 Pedro Alves <palves@redhat.com>
7884
7885 * inf-child.h: Update comment to not mention Unix.
7886
7887 2014-03-12 Pedro Alves <palves@redhat.com>
7888
7889 * inf-child.c: Update top comment to not mention Unix. Add
7890 generic comment describing how this target is meant to be used.
7891 (inf_child_post_attach, inf_child_post_startup_inferior)
7892 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7893 Unix in comment.
7894
7895 2014-03-12 Pedro Alves <palves@redhat.com>
7896
7897 * nto-procfs.c: Include inf-child.h.
7898 (procfs_ops): Delete global.
7899 (procfs_can_run): Delete method.
7900 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7901 target pointer instead of referencing procfs_ops.
7902 (procfs_prepare_to_store): Delete.
7903 (init_procfs_ops): Delete function.
7904 (procfs_target): New function, based on init_procfs_ops, but
7905 inherit inf_child_target.
7906 (_initialize_procfs): Use procfs_target.
7907
7908 2014-03-12 Pedro Alves <palves@redhat.com>
7909
7910 * windows-nat.c: Include inf-child.h.
7911 (windows_ops): Delete global.
7912 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7913 methods.
7914 (init_windows_ops): Delete function.
7915 (windows_target): New function, based on init_windows_ops, but
7916 inherit inf_child_target.
7917 (_initialize_windows_nat): Use windows_target. Install x86
7918 specific target methods here.
7919
7920 2014-03-10 Doug Evans <xdje42@gmail.com>
7921
7922 * guile/guile.c (call_initialize_gdb_module): New function.
7923 (initialize_guile): Replace call to scm_init_guile with call to
7924 scm_with_guile.
7925
7926 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7927
7928 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7929 in call to TYPE_CODE macro.
7930
7931 2014-03-10 Jerome Guitton <guitton@adacore.com>
7932
7933 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7934 Resolve tagged types to full view.
7935
7936 2014-03-10 Hui Zhu <hui@codesourcery.com>
7937
7938 * target.h (target_insert_breakpoint): Remove "hardware" from its
7939 comments.
7940
7941 2014-03-07 Doug Evans <dje@google.com>
7942
7943 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7944
7945 2014-03-07 Doug Evans <dje@google.com>
7946
7947 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7948 Remove unused local comp_dir_attr. Assert exactly one of
7949 stub_comp_unit_die, stub_comp_dir is non-NULL.
7950
7951 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7952
7953 * target.h (complete_target_initialization, add_target):
7954 Add comment.
7955
7956 2014-03-07 Pedro Alves <palves@redhat.com>
7957
7958 * go32-nat.c: Include inf-child.h.
7959 (go32_ops): Delete global.
7960 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7961 Delete methods.
7962 (go32_create_inferior): Push the passed in target pointer instead
7963 of referencing go32_ops.
7964 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7965 (go32_target): New function, based on init_go32_ops, but inherit
7966 inf_child_target.
7967 (_initialize_go32_nat): Use go32_target. Move parts of
7968 init_go32_ops here.
7969
7970 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7971
7972 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7973 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7974 SYMBOL_VALUE_ADDRESS.
7975 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7976
7977 2014-03-06 Yao Qi <yao@codesourcery.com>
7978
7979 * breakpoint.c (get_tracepoint_by_number): Remove argument
7980 optional_p. All callers updated. Adjust comments. Update
7981 output message.
7982 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7983
7984 2014-03-06 Yao Qi <yao@codesourcery.com>
7985
7986 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7987 early if get_number returns zero. Use 'p' instead of 'args'.
7988
7989 2014-03-06 Yao Qi <yao@codesourcery.com>
7990
7991 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7992 message.
7993
7994 2014-03-06 Yao Qi <yao@codesourcery.com>
7995
7996 PR breakpoints/16508
7997 * tracepoint.c (check_trace_running): New function.
7998 (trace_find_command): Move code to check_trace_running and
7999 call check_trace_running.
8000 (trace_find_pc_command): Likewise.
8001 (trace_find_tracepoint_command): Likewise.
8002 (trace_find_line_command): Likewise.
8003 (trace_find_range_command): Likewise.
8004 * tracepoint.h (check_trace_running): Likewise.
8005 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8006
8007 2014-03-06 Yao Qi <yao@codesourcery.com>
8008
8009 * target.h (struct target_ops) <to_traceframe_info>: Use
8010 TARGET_DEFAULT_NORETURN (tcomplain ()).
8011 * target-delegates.c: Regenerated.
8012
8013 2014-03-05 Pedro Alves <palves@redhat.com>
8014
8015 PR gdb/16575
8016 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8017 void. Update comment.
8018 (dcache_xfer_memory): Delete.
8019 (dcache_read_memory_partial): New, based on the read bits of
8020 dcache_xfer_memory.
8021 (dcache_update): Add status parameter. Use ULONGEST for len, and
8022 adjust. Discard cache lines if the reason for the update was
8023 error.
8024 * dcache.h (dcache_xfer_memory): Delete declaration.
8025 (dcache_read_memory_partial): New declaration.
8026 (dcache_update): Update prototype.
8027 * target.c (raw_memory_xfer_partial): Update the dcache here.
8028 (memory_xfer_partial_1): Don't handle dcache writes here.
8029
8030 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8031
8032 * remote-sim.c (gdbsim_load): Add const to prog.
8033
8034 2014-03-03 Tom Tromey <tromey@redhat.com>
8035
8036 * elfread.c (probe_key): Change to bfd_data.
8037 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8038 now per-BFD, not per-objfile.
8039 * stap-probe.c (stap_probe_destroy): Update comment.
8040 (handle_stap_probe): Allocate on the per-BFD obstack.
8041
8042 2014-03-03 Tom Tromey <tromey@redhat.com>
8043
8044 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8045 * breakpoint.c (create_longjmp_master_breakpoint): Use
8046 get_probe_address.
8047 (add_location_to_breakpoint, bkpt_probe_insert_location)
8048 (bkpt_probe_remove_location): Update.
8049 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8050 * elfread.c (elf_symfile_relocate_probe): Remove.
8051 (elf_probe_fns): Update.
8052 (insert_exception_resume_breakpoint): Change type of "probe"
8053 parameter to bound_probe.
8054 (check_exception_resume): Update.
8055 * objfiles.c (objfile_relocate1): Don't relocate probes.
8056 * probe.c (bound_probe_s): New typedef.
8057 (parse_probes): Use get_probe_address. Set sal's objfile.
8058 (find_probe_by_pc): Return a bound_probe.
8059 (collect_probes): Return a VEC(bound_probe_s).
8060 (compare_probes): Update.
8061 (gen_ui_out_table_header_info): Change type of "probes"
8062 parameter. Update.
8063 (info_probes_for_ops): Update.
8064 (get_probe_address): New function.
8065 (probe_safe_evaluate_at_pc): Update.
8066 * probe.h (struct probe_ops) <get_probe_address>: New field.
8067 <set_semaphore, clear_semaphore>: Add objfile parameter.
8068 (struct probe) <objfile>: Remove field.
8069 <arch>: New field.
8070 <address>: Update comment.
8071 (struct bound_probe): New.
8072 (find_probe_by_pc): Return a bound_probe.
8073 (get_probe_address): Declare.
8074 * solib-svr4.c (struct probe_and_action) <address>: New field.
8075 (hash_probe_and_action, equal_probe_and_action): Update.
8076 (register_solib_event_probe): Add address parameter.
8077 (solib_event_probe_at): Update.
8078 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8079 get_probe_address.
8080 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8081 (stap_get_probe_address): New function.
8082 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8083 (compile_probe_arg): Update.
8084 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8085 address.
8086 (handle_stap_probe): Don't relocate the probe.
8087 (stap_relocate): Remove.
8088 (stap_gen_info_probes_table_values): Update.
8089 (stap_probe_ops): Remove stap_relocate.
8090 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8091 (debug_sym_probe_fns): Update.
8092 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8093 * symtab.c (init_sal): Use memset.
8094 * symtab.h (struct symtab_and_line) <objfile>: New field.
8095 * tracepoint.c (start_tracing, stop_tracing): Update.
8096
8097 2014-03-03 Tom Tromey <tromey@redhat.com>
8098
8099 * probe.h (parse_probes, find_probe_by_pc)
8100 (find_probes_in_objfile): Fix comments.
8101
8102 2014-03-02 Doug Evans <xdje42@gmail.com>
8103
8104 * infrun.c (handle_signal_stop): Replace test for
8105 TARGET_WAITKIND_STOPPED with an assert.
8106
8107 2014-03-02 Doug Evans <xdje42@gmail.com>
8108
8109 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8110
8111 2014-03-02 Doug Evans <xdje42@gmail.com>
8112
8113 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8114
8115 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8116
8117 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8118
8119 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8120
8121 * i386obsd-nat.c: Include "obsd-nat.h".
8122 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8123 add_target.
8124 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8125
8126 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8127
8128 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8129
8130 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8131
8132 * mips64obsd-nat.c: Include "obsd-nath".
8133 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8134 add_target
8135 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8136
8137 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8138
8139 * amd64obsd-nat.c: Include "obsd-nat,h.
8140 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8141 add_target.
8142 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8143
8144 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8145
8146 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8147 (find_overload_match): Update call to find_oload_champ.
8148 (find_oload_champ_namespace_loop): Likewise
8149
8150 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8151
8152 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8153
8154 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8155 * config/sparc/obsd64.mh: New file.
8156 * sparc64obsd-nat.c: New file.
8157
8158 * obsd-nat.h: New file.
8159 * obsd-nat.c: New file.
8160 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8161 (ALLDEPFILES): Add obsd-nat.c.
8162
8163 2014-02-28 Tom Tromey <tromey@redhat.com>
8164
8165 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8166 * cli-out.h (cli_ui_out_impl): Now const.
8167 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8168 * ui-out.c (struct ui_out) <impl>: Now const.
8169 (default_ui_out_impl): Now const.
8170 (ui_out_new): Make 'impl' parameter const.
8171 * ui-out.h (ui_out_new): Update.
8172
8173 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8174
8175 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8176
8177 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8178
8179 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8180
8181 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8182
8183 Additional PR 8882 fix.
8184 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8185
8186 2014-02-27 Pedro Alves <palves@redhat.com>
8187
8188 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8189 isn't set.
8190
8191 2014-02-27 Pedro Alves <palves@redhat.com>
8192
8193 PR 12702
8194 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8195 * nat/linux-waitpid.c: Include string.h.
8196 (status_to_str): Moved here and made extern.
8197 * nat/linux-waitpid.h (status_to_str): New declaration.
8198
8199 2014-02-27 Hui Zhu <hui@codesourcery.com>
8200
8201 PR 12702
8202 * infrun.c (ptid_match): Move ...
8203 * common/ptid.c (ptid_match): ... here.
8204 * inferior.h (ptid_match): Move ...
8205 * common/ptid.h (ptid_match): ... here.
8206
8207 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8208
8209 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8210 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8211 gdb_target_obs.
8212
8213 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8214
8215 * obsd-tdep.c (obsd_auxv_parse): New function.
8216 (obsd_init_abi): Set auxv_parse.
8217
8218 * gdbarch.sh (auxv_parse): New.
8219 * gdbarch.h: Regenerated.
8220 * gdbarch.c: Regenerated.
8221 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8222
8223 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8224
8225 * guile/scm-value.c (gdbscm_history_append_x): New function.
8226 (value_functions): Add it.
8227
8228 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8229
8230 * dwarf2read.c (attr_value_as_address): New function.
8231 (dwarf2_find_base_address, read_call_site_scope): Use
8232 attr_value_as_address in place of DW_ADDR.
8233 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8234 the low and high addresses. Slight rework of the handling
8235 of the high pc being a constant form, and limit it to
8236 DWARF verson 4 or higher.
8237 (dwarf2_record_block_ranges): Likewise.
8238 (read_partial_die): Likewise.
8239 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8240
8241 2014-02-26 Tom Tromey <tromey@redhat.com>
8242
8243 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8244
8245 2014-02-26 Tom Tromey <tromey@redhat.com>
8246
8247 * elfread.c (elf_read_minimal_symbols): Return early if
8248 minimal symbols have already been read. Add "ei" parameter.
8249 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8250 * minsyms.c (prim_record_minimal_symbol_full): Update.
8251 * objfiles.h (struct objstats) <n_minsyms>: Move...
8252 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8253 * symmisc.c (print_objfile_statistics): Update.
8254
8255 2014-02-26 Tom Tromey <tromey@redhat.com>
8256
8257 * elfread.c (elf_read_minimal_symbols): New function, from
8258 elf_symfile_read.
8259 (elf_symfile_read): Call it.
8260
8261 2014-02-26 Tom Tromey <tromey@redhat.com>
8262
8263 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8264 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8265 (lookup_minimal_symbol_solib_trampoline)
8266 (lookup_minimal_symbol_by_pc_section_1)
8267 (lookup_minimal_symbol_and_objfile): Update.
8268 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8269 Don't allocate a minimal symbol if minsyms have already been read.
8270 (build_minimal_symbol_hash_tables): Update.
8271 (install_minimal_symbols): Do nothing if minsyms already read.
8272 Use the per-BFD obstack.
8273 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8274 * objfiles.c (allocate_objfile): Call
8275 terminate_minimal_symbol_table later.
8276 (have_minimal_symbols): Update.
8277 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8278 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8279 Move from struct objfile.
8280 <minsyms_read>: New field.
8281 (struct objfile) <msymbols, minimal_symbol_count,
8282 msymbol_hash, msymbol_demangled_hash>: Move.
8283 (ALL_OBJFILE_MSYMBOLS): Update.
8284 * symfile.c (read_symbols): Set minsyms_read.
8285 (reread_symbols): Update.
8286 * symmisc.c (dump_objfile, dump_msymbols): Update.
8287
8288 2014-02-26 Tom Tromey <tromey@redhat.com>
8289
8290 * minsyms.c (msymbols_sort): Remove.
8291 * minsyms.h (msymbols_sort): Remove.
8292 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8293 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8294 * elfread.c (elf_symtab_read): Don't add section offsets.
8295 * xcoffread.c (record_minimal_symbol): Don't add section offset
8296 to minimal symbol address.
8297 * somread.c (text_offset, data_offset): Remove.
8298 (som_symtab_read): Don't add section offsets to minimal symbol
8299 addresses.
8300 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8301 Don't add section offsets to minimal symbols.
8302 * coffread.c (coff_symtab_read): Don't add section offsets
8303 to minimal symbol addresses.
8304 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8305 to minimal symbol addresses.
8306 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8307 section offset to minimal symbol addresses.
8308 * mdebugread.c (parse_partial_symbols): Don't add section
8309 offset to minimal symbol addresses.
8310 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8311 offset to minimal symbol addresses.
8312
8313 2014-02-26 Tom Tromey <tromey@redhat.com>
8314
8315 * ada-lang.c (ada_main_name): Update.
8316 (ada_add_standard_exceptions): Update.
8317 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8318 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8319 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8320 * auxv.c (ld_so_xfer_auxv): Update.
8321 * avr-tdep.c (avr_scan_prologue): Update.
8322 * ax-gdb.c (gen_var_ref): Update.
8323 * blockframe.c (get_pc_function_start)
8324 (find_pc_partial_function_gnu_ifunc): Update.
8325 * breakpoint.c (create_overlay_event_breakpoint)
8326 (create_longjmp_master_breakpoint)
8327 (create_std_terminate_master_breakpoint)
8328 (create_exception_master_breakpoint): Update.
8329 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8330 * c-valprint.c (c_val_print): Update.
8331 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8332 * common/agent.c (agent_look_up_symbols): Update.
8333 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8334 * dwarf2loc.c (call_site_to_target_addr): Update.
8335 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8336 * elfread.c (elf_gnu_ifunc_record_cache)
8337 (elf_gnu_ifunc_resolve_by_got): Update.
8338 * findvar.c (default_read_var_value): Update.
8339 * frame.c (inside_main_func): Update.
8340 * frv-tdep.c (frv_frame_this_id): Update.
8341 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8342 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8343 Update.
8344 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8345 (hppa_hpux_find_dummy_bpaddr): Update.
8346 * hppa-tdep.c (hppa_symbol_address): Update.
8347 * infcmd.c (until_next_command): Update.
8348 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8349 Update.
8350 * linespec.c (minsym_found, add_minsym): Update.
8351 * linux-nat.c (get_signo): Update.
8352 * linux-thread-db.c (inferior_has_bug): Update.
8353 * m32c-tdep.c (m32c_return_value)
8354 (m32c_m16c_address_to_pointer): Update.
8355 * m32r-tdep.c (m32r_frame_this_id): Update.
8356 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8357 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8358 * maint.c (maintenance_translate_address): Update.
8359 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8360 (frob_address): New function.
8361 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8362 frob_address. Rename parameter to "pc_in".
8363 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8364 addresses.
8365 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8366 Update.
8367 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8368 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8369 * objc-lang.c (find_objc_msgsend): Update.
8370 * objfiles.c (objfile_relocate1): Update.
8371 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8372 * p-valprint.c (pascal_val_print): Update.
8373 * parse.c (write_exp_msymbol): Update.
8374 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8375 (ppc_elfv2_skip_entrypoint): Update.
8376 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8377 * printcmd.c (build_address_symbolic, msym_info)
8378 (address_info): Update.
8379 * proc-service.c (ps_pglobal_lookup): Update.
8380 * psymtab.c (find_pc_sect_psymtab_closer)
8381 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8382 Change msymbol parameter to bound_minimal_symbol.
8383 * ravenscar-thread.c (get_running_thread_id): Update.
8384 * remote.c (remote_check_symbols): Update.
8385 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8386 address.
8387 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8388 * solib-dsbt.c (lm_base): Update.
8389 * solib-frv.c (lm_base, main_got): Update.
8390 * solib-irix.c (locate_base): Update.
8391 * solib-som.c (som_solib_create_inferior_hook)
8392 (link_map_start): Update.
8393 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8394 * solib-svr4.c (elf_locate_base, enable_break): Update.
8395 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8396 (flush_ea_cache): Update.
8397 * stabsread.c (define_symbol, scan_file_globals): Update.
8398 * stack.c (find_frame_funname): Update.
8399 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8400 (debug_qf_find_pc_sect_symtab): Update.
8401 * symfile.c (simple_read_overlay_table)
8402 (simple_overlay_update): Update.
8403 * symfile.h (struct quick_symbol_functions)
8404 <find_pc_sect_symtab>: Change type of msymbol to
8405 bound_minimal_symbol.
8406 * symmisc.c (dump_msymbols): Update.
8407 * symtab.c (find_pc_sect_symtab_via_partial)
8408 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8409 (search_symbols, print_msymbol_info): Update.
8410 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8411 (MSYMBOL_VALUE_ADDRESS): Redefine.
8412 (BMSYMBOL_VALUE_ADDRESS): New macro.
8413 * tracepoint.c (scope_info): Update.
8414 * tui/tui-disasm.c (tui_find_disassembly_address)
8415 (tui_get_begin_asm_address): Update.
8416 * valops.c (find_function_in_inferior): Update.
8417 * value.c (value_static_field, value_fn_field): Update.
8418
8419 2014-02-26 Tom Tromey <tromey@redhat.com>
8420
8421 * ada-lang.c (ada_update_initial_language): Update.
8422 (ada_main_name, ada_has_this_exception_support): Update.
8423 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8424 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8425 * arm-tdep.c (arm_skip_stub): Update.
8426 * auxv.c (ld_so_xfer_auxv): Update.
8427 * avr-tdep.c (avr_scan_prologue): Update.
8428 * ax-gdb.c (gen_var_ref): Update.
8429 * breakpoint.c (struct breakpoint_objfile_data)
8430 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8431 type to bound_minimal_symbol.
8432 (create_overlay_event_breakpoint)
8433 (create_longjmp_master_breakpoint)
8434 (create_std_terminate_master_breakpoint)
8435 (create_exception_master_breakpoint): Update.
8436 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8437 * c-exp.y (classify_name): Update.
8438 * coffread.c (coff_symfile_read): Update.
8439 * common/agent.c (agent_look_up_symbols): Update.
8440 * d-lang.c (d_main_name): Update.
8441 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8442 * dec-thread.c (enable_dec_thread): Update.
8443 * dwarf2loc.c (call_site_to_target_addr): Update.
8444 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8445 * eval.c (evaluate_subexp_standard): Update.
8446 * findvar.c (struct minsym_lookup_data) <result>: Change type
8447 to bound_minimal_symbol.
8448 <objfile>: Remove.
8449 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8450 * frame.c (inside_main_func): Update.
8451 * frv-tdep.c (frv_frame_this_id): Update.
8452 * gcore.c (call_target_sbrk): Update.
8453 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8454 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8455 Update.
8456 * go-lang.c (go_main_name): Update.
8457 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8458 (hppa_hpux_find_import_stub_for_addr): Update.
8459 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8460 Update. Change return type.
8461 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8462 type.
8463 * jit.c (jit_breakpoint_re_set_internal): Update.
8464 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8465 Update.
8466 * linux-nat.c (get_signo): Update.
8467 * linux-thread-db.c (inferior_has_bug): Update
8468 * m32c-tdep.c (m32c_return_value)
8469 (m32c_m16c_address_to_pointer): Update.
8470 * m32r-tdep.c (m32r_frame_this_id): Update.
8471 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8472 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8473 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8474 lookup_minimal_symbol. Change return type.
8475 (lookup_minimal_symbol): Remove.
8476 (lookup_bound_minimal_symbol): Update.
8477 (lookup_minimal_symbol_text): Change return type.
8478 (lookup_minimal_symbol_solib_trampoline): Change return type.
8479 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8480 (lookup_minimal_symbol_solib_trampoline): Change return type.
8481 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8482 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8483 (value_nsstring, find_imps): Update.
8484 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8485 * p-lang.c (pascal_main_name): Update.
8486 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8487 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8488 * proc-service.c (ps_pglobal_lookup): Update.
8489 * ravenscar-thread.c (get_running_thread_msymbol): Change
8490 return type.
8491 (has_ravenscar_runtime, get_running_thread_id): Update.
8492 * remote.c (remote_check_symbols): Update.
8493 * sol-thread.c (ps_pglobal_lookup): Update.
8494 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8495 * solib-dsbt.c (lm_base): Update.
8496 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8497 Update.
8498 * solib-irix.c (locate_base): Update.
8499 * solib-som.c (som_solib_create_inferior_hook)
8500 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8501 Update.
8502 * solib-spu.c (spu_enable_break): Update.
8503 * solib-svr4.c (elf_locate_base, enable_break): Update.
8504 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8505 (flush_ea_cache): Update.
8506 * stabsread.c (define_symbol): Update.
8507 * symfile.c (simple_read_overlay_table): Update.
8508 * symtab.c (find_pc_sect_line): Update.
8509 * tracepoint.c (scope_info): Update.
8510 * tui-disasm.c (tui_get_begin_asm_address): Update.
8511 * value.c (value_static_field): Update.
8512
8513 2014-02-26 Tom Tromey <tromey@redhat.com>
8514
8515 * minsyms.c (prim_record_minimal_symbol_full): Use
8516 SET_MSYMBOL_VALUE_ADDRESS.
8517 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8518 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8519 SET_MSYMBOL_VALUE_ADDRESS.
8520 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8521 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8522
8523 2014-02-26 Tom Tromey <tromey@redhat.com>
8524
8525 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8526 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8527 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8528 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8529 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8530 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8531 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8532 * ada-lang.c (ada_main_name): Update.
8533 (ada_lookup_simple_minsym): Update.
8534 (ada_make_symbol_completion_list): Update.
8535 (ada_add_standard_exceptions): Update.
8536 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8537 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8538 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8539 * arm-tdep.c (skip_prologue_function): Update.
8540 (arm_skip_stack_protector, arm_skip_stub): Update.
8541 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8542 (arm_wince_skip_main_prologue): Update.
8543 * auxv.c (ld_so_xfer_auxv): Update.
8544 * avr-tdep.c (avr_scan_prologue): Update.
8545 * ax-gdb.c (gen_var_ref): Update.
8546 * block.c (call_site_for_pc): Update.
8547 * blockframe.c (get_pc_function_start): Update.
8548 (find_pc_partial_function_gnu_ifunc): Update.
8549 * breakpoint.c (create_overlay_event_breakpoint): Update.
8550 (create_longjmp_master_breakpoint): Update.
8551 (create_std_terminate_master_breakpoint): Update.
8552 (create_exception_master_breakpoint): Update.
8553 (resolve_sal_pc): Update.
8554 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8555 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8556 Update.
8557 * c-valprint.c (c_val_print): Update.
8558 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8559 * coffread.c (coff_symfile_read): Update.
8560 * common/agent.c (agent_look_up_symbols): Update.
8561 * dbxread.c (find_stab_function_addr): Update.
8562 (end_psymtab): Update.
8563 * dwarf2loc.c (call_site_to_target_addr): Update.
8564 (func_verify_no_selftailcall): Update.
8565 (tailcall_dump): Update.
8566 (call_site_find_chain_1): Update.
8567 (dwarf_expr_reg_to_entry_parameter): Update.
8568 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8569 (elf_gnu_ifunc_resolve_by_got): Update.
8570 * f-valprint.c (info_common_command): Update.
8571 * findvar.c (read_var_value): Update.
8572 * frame.c (get_prev_frame_1): Update.
8573 (inside_main_func): Update.
8574 * frv-tdep.c (frv_skip_main_prologue): Update.
8575 (frv_frame_this_id): Update.
8576 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8577 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8578 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8579 (gnuv3_skip_trampoline): Update.
8580 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8581 (hppa64_hpux_in_solib_call_trampoline): Update.
8582 (hppa_hpux_skip_trampoline_code): Update.
8583 (hppa64_hpux_search_dummy_call_sequence): Update.
8584 (hppa_hpux_find_import_stub_for_addr): Update.
8585 (hppa_hpux_find_dummy_bpaddr): Update.
8586 * hppa-tdep.c (hppa_symbol_address)
8587 (hppa_lookup_stub_minimal_symbol): Update.
8588 * i386-tdep.c (i386_skip_main_prologue): Update.
8589 (i386_pe_skip_trampoline_code): Update.
8590 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8591 * infcall.c (get_function_name): Update.
8592 * infcmd.c (until_next_command): Update.
8593 * jit.c (jit_breakpoint_re_set_internal): Update.
8594 (jit_inferior_init): Update.
8595 * linespec.c (minsym_found): Update.
8596 (add_minsym): Update.
8597 * linux-fork.c (info_checkpoints_command): Update.
8598 * linux-nat.c (get_signo): Update.
8599 * linux-thread-db.c (inferior_has_bug): Update.
8600 * m32c-tdep.c (m32c_return_value): Update.
8601 (m32c_m16c_address_to_pointer): Update.
8602 (m32c_m16c_pointer_to_address): Update.
8603 * m32r-tdep.c (m32r_frame_this_id): Update.
8604 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8605 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8606 * maint.c (maintenance_translate_address): Update.
8607 * minsyms.c (add_minsym_to_hash_table): Update.
8608 (add_minsym_to_demangled_hash_table): Update.
8609 (msymbol_objfile): Update.
8610 (lookup_minimal_symbol): Update.
8611 (iterate_over_minimal_symbols): Update.
8612 (lookup_minimal_symbol_text): Update.
8613 (lookup_minimal_symbol_by_pc_name): Update.
8614 (lookup_minimal_symbol_solib_trampoline): Update.
8615 (lookup_minimal_symbol_by_pc_section_1): Update.
8616 (lookup_minimal_symbol_and_objfile): Update.
8617 (prim_record_minimal_symbol_full): Update.
8618 (compare_minimal_symbols): Update.
8619 (compact_minimal_symbols): Update.
8620 (build_minimal_symbol_hash_tables): Update.
8621 (install_minimal_symbols): Update.
8622 (terminate_minimal_symbol_table): Update.
8623 (find_solib_trampoline_target): Update.
8624 (minimal_symbol_upper_bound): Update.
8625 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8626 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8627 (mips_skip_pic_trampoline_code): Update.
8628 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8629 * objc-lang.c (selectors_info): Update.
8630 (classes_info): Update.
8631 (find_methods): Update.
8632 (find_imps): Update.
8633 (find_objc_msgsend): Update.
8634 * objfiles.c (objfile_relocate1): Update.
8635 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8636 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8637 * p-valprint.c (pascal_val_print): Update.
8638 * parse.c (write_exp_msymbol): Update.
8639 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8640 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8641 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8642 * printcmd.c (build_address_symbolic): Update.
8643 (sym_info): Update.
8644 (address_info): Update.
8645 * proc-service.c (ps_pglobal_lookup): Update.
8646 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8647 (find_pc_sect_psymtab): Update.
8648 * python/py-framefilter.c (py_print_frame): Update.
8649 * ravenscar-thread.c (get_running_thread_id): Update.
8650 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8651 Update.
8652 * remote.c (remote_check_symbols): Update.
8653 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8654 (rs6000_skip_trampoline_code): Update.
8655 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8656 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8657 * solib-dsbt.c (lm_base): Update.
8658 * solib-frv.c (lm_base): Update.
8659 (main_got): Update.
8660 * solib-irix.c (locate_base): Update.
8661 * solib-som.c (som_solib_create_inferior_hook): Update.
8662 (som_solib_desire_dynamic_linker_symbols): Update.
8663 (link_map_start): Update.
8664 * solib-spu.c (spu_enable_break): Update.
8665 (ocl_enable_break): Update.
8666 * solib-svr4.c (elf_locate_base): Update.
8667 (enable_break): Update.
8668 * spu-tdep.c (spu_get_overlay_table): Update.
8669 (spu_catch_start): Update.
8670 (flush_ea_cache): Update.
8671 * stabsread.c (define_symbol): Update.
8672 (scan_file_globals): Update.
8673 * stack.c (find_frame_funname): Update.
8674 (frame_info): Update.
8675 * symfile.c (simple_read_overlay_table): Update.
8676 (simple_overlay_update): Update.
8677 * symmisc.c (dump_msymbols): Update.
8678 * symtab.c (fixup_section): Update.
8679 (find_pc_sect_line): Update.
8680 (skip_prologue_sal): Update.
8681 (search_symbols): Update.
8682 (print_msymbol_info): Update.
8683 (rbreak_command): Update.
8684 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8685 (completion_list_objc_symbol): Update.
8686 (default_make_symbol_completion_list_break_on): Update.
8687 * tracepoint.c (scope_info): Update.
8688 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8689 (tui_get_begin_asm_address): Update.
8690 * valops.c (find_function_in_inferior): Update.
8691 * value.c (value_static_field): Update.
8692 (value_fn_field): Update.
8693
8694 2014-02-26 Tom Tromey <tromey@redhat.com>
8695
8696 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8697 bound minimal symbols. Move code that knows about minsym
8698 table layout...
8699 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8700 function.
8701 * minsyms.h (minimal_symbol_upper_bound): Declare.
8702 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8703 minimal_symbol_upper_bound.
8704
8705 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8706
8707 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8708 Use the type's name if its basic type does not have a tag.
8709
8710 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8711
8712 * dwarf2read.c (read_subrange_type): Add comment.
8713
8714 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8715
8716 * dwarf2read.c (update_enumeration_type_from_children): New
8717 function, mostly extracted from process_structure_scope.
8718 (read_enumeration_type): Call update_enumeration_type_from_children.
8719 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8720 and flag_flag_enum fields.
8721
8722 2014-02-26 Pedro Alves <palves@redhat.com>
8723
8724 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8725 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8726 to_xfer_partial method.
8727
8728 2014-02-26 Pedro Alves <palves@redhat.com>
8729
8730 * target.c (complete_target_initialization): Don't install
8731 default_xfer_partial as to_xfer_partial hook.
8732 (nomemory): Delete.
8733 (update_current_target): Don't INHERIT nor de_fault
8734 deprecated_xfer_memory. Delete de_fault macro.
8735 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8736 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8737 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8738 field.
8739
8740 2014-02-26 Pedro Alves <palves@redhat.com>
8741
8742 * go32-nat.c (my_write_child): New function.
8743 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8744 (go32_xfer_partial): New function.
8745 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8746 Instead install a to_xfer_partial hook.
8747
8748 2014-02-26 Pedro Alves <palves@redhat.com>
8749
8750 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8751 to_xfer_partial helper. Rewrite.
8752 (procfs_xfer_partial): New function.
8753 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8754 Install a to_xfer_partial hook.
8755
8756 2014-02-26 Pedro Alves <palves@redhat.com>
8757
8758 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8759 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8760 (m32r_xfer_partial): New function.
8761 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8762 Install a to_xfer_partial hook.
8763
8764 2014-02-26 Pedro Alves <palves@redhat.com>
8765
8766 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8767 helper.
8768 (mips_xfer_partial): New function.
8769 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8770 hook. Install a to_xfer_partial hook.
8771
8772 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8773
8774 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8775 * gdbtypes.c (create_array_type_with_stride): New function,
8776 renaming create_array_type, but with an added parameter
8777 called "bit_stride".
8778 (create_array_type): Re-implement using
8779 create_array_type_with_stride.
8780 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8781 and DW_AT_bit_stride attributes.
8782
8783 2014-02-26 Pedro Alves <palves@redhat.com>
8784
8785 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8786 task-specific breakpoints.
8787
8788 2014-02-25 Pedro Alves <palves@redhat.com>
8789
8790 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8791 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8792
8793 2014-02-25 Stan Shebs <stan@codesourcery.com>
8794
8795 * defs.h: Annotate comments for Doxygen.
8796
8797 2014-02-25 Tom Tromey <tromey@redhat.com>
8798
8799 * target.h (target_ignore): Don't declare.
8800 * target.c (target_ignore): Remove.
8801
8802 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8803
8804 PR gdb/16626
8805 * auto-load.c (auto_load_objfile_script_1): Change filename to
8806 debugfile.
8807
8808 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8809
8810 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8811 documentation. Adjust prototype to match the target_ops
8812 to_xfer_partial method. Adjust implementation accordingly.
8813
8814 2014-02-25 Hui Zhu <hui@codesourcery.com>
8815
8816 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8817 to_traceframe_info.
8818
8819 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8820
8821 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8822 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8823 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8824 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8825 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8826 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8827 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8828 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8829 New constants.
8830 (rl78_register_type): Use a data pointer type for SP and
8831 new pseudo registers mentioned above. Use a 16 bit integer
8832 type for all other register pairs.
8833 (rl78_register_name, rl78_g10_register_name): Update for
8834 new pseudo registers.
8835 (rl78_pseudo_register_read): Likewise.
8836 (rl78_pseudo_register_write): Likewise.
8837 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8838 to the newly added pseudo registers.
8839
8840 2014-02-24 Doug Evans <dje@google.com>
8841
8842 * value.c (record_latest_value): Fix comment.
8843 * printcmd.c (print_command_1): Remove code to handle -1 return from
8844 record_latest_value.
8845
8846 2014-02-24 Pedro Alves <palves@redhat.com>
8847
8848 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8849 deprecated_xfer_memory hook.
8850 (procfs_xfer_partial): Call procfs_xfer_memory instead
8851 of the deprecated_xfer_memory target hook.
8852 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8853 helper.
8854
8855 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8856
8857 * windows-nat.c (windows_xfer_shared_libraries): Return
8858 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8859 requested object is TARGET_OBJECT_LIBRARIES.
8860
8861 2014-02-24 Yao Qi <yao@codesourcery.com>
8862
8863 * target.h (enum target_xfer_status)
8864 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8865 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8866 explicitly. New.
8867 * corefile.c (memory_error_message): User updated.
8868 * exec.c (section_table_read_available_memory): Likewise.
8869 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8870 * target.c (target_xfer_status_to_string): Likewise.
8871 (raw_memory_xfer_partial): Likewise.
8872 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8873 * valops.c (read_value_memory): Likewise.
8874 * exec.h: Update comments.
8875
8876 2014-02-24 Yao Qi <yao@codesourcery.com>
8877
8878 * target.c (target_xfer_status_to_string): Rename argument err
8879 to status.
8880 * target.h (target_xfer_status_to_string): Update declaration.
8881 Replace target_xfer_error_to_string with
8882 target_xfer_status_to_string in comment.
8883
8884 2014-02-24 Yao Qi <yao@codesourcery.com>
8885
8886 * mips-linux-nat.c (super_close): Update its type.
8887 (mips_linux_close): Pass 'self' to super_close.
8888
8889 2014-02-24 Yao Qi <yao@codesourcery.com>
8890
8891 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8892 * corefile.c (read_memory): Adjusted.
8893 * target.c (target_write_with_progress): Adjusted.
8894
8895 2014-02-23 Yao Qi <yao@codesourcery.com>
8896
8897 Revert two patches:
8898
8899 2013-10-25 Yao Qi <yao@codesourcery.com>
8900
8901 * remote.c (remote_traceframe_info): Return early if
8902 traceframe is not selected.
8903
8904 2013-07-19 Yao Qi <yao@codesourcery.com>
8905
8906 * target.c (update_current_target): Change the default action
8907 of 'to_traceframe_info' from tcomplain to return_zero.
8908 * target.h (struct target_ops) <to_traceframe_info>: Add more
8909 comments.
8910
8911 2014-02-23 Yao Qi <yao@codesourcery.com>
8912
8913 * valops.c (read_value_memory): Rewrite it. Call
8914 target_xfer_partial in a loop.
8915 * exec.h (section_table_available_memory): Remove declaration.
8916 Move comments to ...
8917 * exec.c (section_table_available_memory): ... here. Make it
8918 static.
8919
8920 2014-02-23 Yao Qi <yao@codesourcery.com>
8921
8922 * exec.c (section_table_read_available_memory): New function.
8923 * exec.h (section_table_read_available_memory): Declare.
8924 * ctf.c (ctf_xfer_partial): Call
8925 section_table_read_available_memory.
8926 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8927
8928 2014-02-23 Yao Qi <yao@codesourcery.com>
8929
8930 * ctf.c (ctf_xfer_partial): Move code to ...
8931 * exec.c (exec_read_partial_read_only): ... it. New function.
8932 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8933 * tracefile.c: Include "exec.h".
8934 * exec.h (exec_read_partial_read_only): Declare.
8935
8936 2014-02-23 Yao Qi <yao@codesourcery.com>
8937
8938 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8939 (tfile_has_memory): Remove.
8940 (init_tfile_ops): Don't set fields to_has_all_memory and
8941 to_has_memory of tfile_ops.
8942 * tracefile.c (tracefile_has_all_memory): New function.
8943 (tracefile_has_memory): New function.
8944 (init_tracefile_ops): Initialize fields to_has_all_memory and
8945 to_has_memory of 'ops'.
8946
8947 2014-02-23 Yao Qi <yao@codesourcery.com>
8948
8949 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8950 (ctf_thread_alive, ctf_get_trace_status): Remove.
8951 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8952 init_tracefile_ops.
8953 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8954 (tfile_has_stack, tfile_has_registers): Remove.
8955 (tfile_thread_alive): Remove.
8956 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8957 init_tracefile_ops.
8958 * tracefile.c (tracefile_has_stack): New function.
8959 (tracefile_has_registers): New function.
8960 (tracefile_thread_alive): New function.
8961 (tracefile_get_trace_status): New function.
8962 (init_tracefile_ops): New function.
8963 * tracefile.h (init_tracefile_ops): Declare.
8964
8965 2014-02-23 Yao Qi <yao@codesourcery.com>
8966
8967 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8968 (O_LARGEFILE): Likewise.
8969 (tfile_ops): Likewise.
8970 (TRACE_HEADER_SIZE): Likewise.
8971 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8972 (cur_data_size): Likewise.
8973 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8974 (tfile_close, tfile_files_info): Likewise.
8975 (tfile_get_trace_status): Likewise.
8976 (tfile_get_tracepoint_status): Likewise.
8977 (tfile_get_traceframe_address): Likewise.
8978 (tfile_trace_find, match_blocktype): Likewise.
8979 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8980 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8981 (tfile_get_trace_state_variable_value): Likewise.
8982 (tfile_has_all_memory, tfile_has_memory): Likewise.
8983 (tfile_has_stack, tfile_has_registers): Likewise.
8984 (tfile_thread_alive, build_traceframe_info): Likewise.
8985 (tfile_traceframe_info, init_tfile_ops): Likewise.
8986 (_initialize_tracepoint): Don't call init_tfile_ops
8987 and add_target_with_completer.
8988 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8989 exec.h, completer.h and filenames.h.
8990 (_initialize_tracefile_tfile): New function.
8991
8992 2014-02-23 Yao Qi <yao@codesourcery.com>
8993
8994 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8995 tracefile-tfile.o.
8996 (HFILES_NO_SRCDIR): Add tracefile.h.
8997 * ctf.c: Include "tracefile.h".
8998 * tracefile.h: New file.
8999 * tracefile.c: New file
9000 * tracefile-tfile.c: New file.
9001 * tracepoint.c: Include "tracefile.h".
9002 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9003 (stop_reason_names): Add const.
9004 (trace_file_writer_xfree): Move it to tracefile.c.
9005 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9006 (trace_save_ctf): Likewise.
9007 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9008 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9009 (tfile_write_header, tfile_write_regblock_type): Likewise.
9010 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9011 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9012 (tfile_write_raw_data, tfile_end): Likewise.
9013 (tfile_trace_file_writer_new): Likewise.
9014 (free_uploaded_tp): Make it extern.
9015 (free_uploaded_tsv): Make it extern.
9016 (_initialize_tracepoint): Move code to register command 'tsave'
9017 to tracefile.c.
9018 * tracepoint.h (stop_reason_names): Declare.
9019 (struct trace_frame_write_ops): Move it to tracefile.h.
9020 (struct trace_file_write_ops): Likewise.
9021 (struct trace_file_writer): Likewise.
9022 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9023
9024 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9025
9026 PR gdb/16594
9027 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9028 process name.
9029 (get_cores_used_by_process): New parameter num_cores, use it.
9030 (linux_xfer_osdata_processes): Pass num_cores to it.
9031 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9032 process name.
9033
9034 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9035
9036 * target.c (memory_xfer_partial): Fix length arg in call to
9037 breakpoint_xfer_memory.
9038
9039 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9040
9041 PR tdep/16397
9042 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9043 number comes after the + or - signs. Adjust length of register
9044 name to be extracted.
9045
9046 2014-02-20 Tom Tromey <tromey@redhat.com>
9047
9048 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9049 (ada_varobj_ops): Mark "extern".
9050
9051 2014-02-20 Tom Tromey <tromey@redhat.com>
9052
9053 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9054
9055 2014-02-20 Doug Evans <xdje42@gmail.com>
9056
9057 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9058 All callers updated.
9059 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9060 All callers updated.
9061 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9062 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9063
9064 2014-02-20 lin zuojian <manjian2006@gmail.com>
9065 Joel Brobecker <brobecker@adacore.com>
9066 Doug Evans <xdje42@gmail.com>
9067
9068 PR symtab/16581
9069 * dwarf2read.c (struct die_info): New member in_process.
9070 (reset_die_in_process): New function.
9071 (process_die): Set it at the start, reset when returning.
9072 (inherit_abstract_dies): Only call process_die if origin_child_die
9073 not already being processed.
9074
9075 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9076
9077 * windows-nat.c (handle_unload_dll): Add function documentation.
9078 (do_initial_windows_stuff): Add comment explaining why we wait
9079 until after inferior initialization has finished before
9080 processing all DLLs.
9081
9082 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9083
9084 * windows-nat.c (get_module_name): Delete.
9085 (windows_get_exec_module_filename): New function, mostly
9086 inspired from get_module_name.
9087 (windows_pid_to_exec_file): Replace call to get_module_name
9088 by call to windows_get_exec_module_filename.
9089
9090 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9091
9092 * windows-nat.c (handle_load_dll): Rewrite this function's
9093 introductory comment. Remove code using get_module_name
9094 to get the DLL's name.
9095
9096 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9097
9098 * windows-nat.c (get_windows_debug_event): Ignore
9099 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9100 if windows_initialization_done == 0.
9101 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9102 Adjust implementation to always load all DLLs.
9103 (do_initial_windows_stuff): Replace call to
9104 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9105
9106 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9107
9108 * windows-nat.c (_initialize_windows_nat): Deprecate the
9109 "dll-symbols" command. Turn the "add-shared-symbol-files"
9110 and "assf" aliases into commands, and deprecate them as well.
9111 * NEWS: Add entry explaining that "dll-symbols" and its two
9112 aliases are now deprecated.
9113
9114 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9115
9116 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9117 new-line in debug string. Remove trailing spaces.
9118
9119 2014-02-19 Stan Shebs <stan@codesourcery.com>
9120
9121 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9122
9123 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9124
9125 * NEWS: Add entry for the new feature
9126 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9127 and class values.
9128
9129 2014-02-19 Stan Shebs <stan@codesourcery.com>
9130
9131 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9132
9133 2014-02-19 Pedro Alves <palves@redhat.com>
9134
9135 * common/ptid.h (struct ptid): Mention that process_stratum
9136 targets should prefer ptid.lwp.
9137
9138 2014-02-19 Pedro Alves <palves@redhat.com>
9139
9140 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9141 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9142 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9143 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9144 store remote thread ids rather than ptid.tid.
9145 (_initialize_remote): Adjust.
9146
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9148
9149 * target.c (target_get_unwinder): Rewrite.
9150 (target_get_tailcall_unwinder): Rewrite.
9151 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9152 (record_btrace_to_get_tailcall_unwinder): New function.
9153 (init_record_btrace_ops): Update.
9154 * target.h (struct target_ops) <to_get_unwinder,
9155 to_get_tailcall_unwinder>: Now function pointers. Use
9156 TARGET_DEFAULT_RETURN.
9157
9158 2014-02-19 Tom Tromey <tromey@redhat.com>
9159
9160 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9161 argument.
9162 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9163
9164 2014-02-19 Tom Tromey <tromey@redhat.com>
9165
9166 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9167 directly.
9168 * target-delegates.c: Rebuild.
9169 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9170 TARGET_DEFAULT_FUNC.
9171 * target.c (default_target_decr_pc_after_break): Rename from
9172 forward_target_decr_pc_after_break. Simplify.
9173 (target_decr_pc_after_break): Rely on delegation.
9174
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9176
9177 * target.c (update_current_target): Do not INHERIT to_doc or
9178 to_magic. Do not de_fault to_open or to_close.
9179
9180 2014-02-19 Tom Tromey <tromey@redhat.com>
9181
9182 * gcore.h (objfile_find_memory_regions): Declare.
9183 * gcore.c (objfile_find_memory_regions): No longer static. Add
9184 "self" argument.
9185 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9186 * exec.c: Include gcore.h.
9187 (exec_set_find_memory_regions): Remove.
9188 (exec_find_memory_regions): Remove.
9189 (exec_do_find_memory_regions): Remove.
9190 (init_exec_ops): Update.
9191 * defs.h (exec_set_find_memory_regions): Remove.
9192
9193 2014-02-19 Tom Tromey <tromey@redhat.com>
9194
9195 * target-delegates.c: Rebuild.
9196 * target.h (struct target_ops) <to_extra_thread_info,
9197 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9198 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9199 not 0, in TARGET_DEFAULT_RETURN.
9200
9201 2014-02-19 Tom Tromey <tromey@redhat.com>
9202
9203 * target.c (complete_target_initialization): Remove casts. Use
9204 return_zero_has_execution.
9205 (return_zero): Add "ignore" argument.
9206 (return_zero_has_execution): New function.
9207 (init_dummy_target): Remove casts. Use
9208 return_zero_has_execution.
9209
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9211
9212 * target.c (update_current_target): Update comments. Do not
9213 INHERIT to_stratum.
9214
9215 2014-02-19 Tom Tromey <tromey@redhat.com>
9216
9217 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9218 needed.
9219 * corelow.c (core_read_description): Delegate when needed.
9220 * remote.c (remote_read_description): Delegate when needed.
9221 * target-delegates.c: Rebuild.
9222 * target.c (target_read_description): Rewrite.
9223 * target.h (struct target_ops) <to_read_description>: Update
9224 comment. Use TARGET_DEFAULT_RETURN.
9225
9226 2014-02-19 Tom Tromey <tromey@redhat.com>
9227
9228 * target-delegates.c: Rebuild.
9229 * target.c (update_current_target): Don't inherit or default
9230 to_can_run.
9231 (find_default_run_target): Check against delegate_can_run.
9232 * target.h (struct target_ops) <to_can_run>: Use
9233 TARGET_DEFAULT_RETURN.
9234
9235 2014-02-19 Tom Tromey <tromey@redhat.com>
9236
9237 * target-delegates.c: Rebuild.
9238 * target.c (target_disconnect): Unconditionally delegate.
9239 * target.h (struct target_ops) <to_disconnect>: Use
9240 TARGET_DEFAULT_NORETURN.
9241
9242 2014-02-19 Tom Tromey <tromey@redhat.com>
9243
9244 * record.c (record_stop): Unconditionally delegate.
9245 * target-delegates.c: Rebuild.
9246 * target.c (target_stop_recording): Unconditionally delegate.
9247 * target.h (struct target_ops) <to_stop_recording>: Use
9248 TARGET_DEFAULT_IGNORE.
9249
9250 2014-02-19 Tom Tromey <tromey@redhat.com>
9251
9252 * target-delegates.c: Rebuild.
9253 * target.c (target_enable_btrace): Unconditionally delegate.
9254 * target.h (struct target_ops) <to_enable_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 (target_read_btrace): Unconditionally delegate.
9261 * target.h (struct target_ops) <to_read_btrace>: Use
9262 TARGET_DEFAULT_NORETURN.
9263
9264 2014-02-19 Tom Tromey <tromey@redhat.com>
9265
9266 * target-delegates.c: Rebuild.
9267 * target.c (target_teardown_btrace): Unconditionally delegate.
9268 * target.h (struct target_ops) <to_teardown_btrace>: Use
9269 TARGET_DEFAULT_NORETURN.
9270
9271 2014-02-19 Tom Tromey <tromey@redhat.com>
9272
9273 * target-delegates.c: Rebuild.
9274 * target.c (target_disable_btrace): Unconditionally delegate.
9275 * target.h (struct target_ops) <to_disable_btrace>: Use
9276 TARGET_DEFAULT_NORETURN.
9277
9278 2014-02-19 Tom Tromey <tromey@redhat.com>
9279
9280 * target-delegates.c: Rebuild.
9281 * target.c (default_search_memory): New function.
9282 (simple_search_memory): Update comment.
9283 (target_search_memory): Unconditionally delegate.
9284 * target.h (struct target_ops) <to_search_memory>: Use
9285 TARGET_DEFAULT_FUNC.
9286
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9288
9289 * auxv.c (default_auxv_parse): No longer static.
9290 (target_auxv_parse): Unconditionally delegate.
9291 * auxv.h (default_auxv_parse): Declare.
9292 * target-delegates.c: Rebuild.
9293 * target.c: Include auxv.h.
9294 * target.h (struct target_ops) <to_auxv_parse>: Use
9295 TARGET_DEFAULT_FUNC.
9296
9297 2014-02-19 Tom Tromey <tromey@redhat.com>
9298
9299 * target-delegates.c: Rebuild.
9300 * target.c (target_memory_map): Unconditionally delegate.
9301 * target.h (struct target_ops) <to_memory_map>: Use
9302 TARGET_DEFAULT_RETURN.
9303
9304 2014-02-19 Tom Tromey <tromey@redhat.com>
9305
9306 * target-delegates.c: Rebuild.
9307 * target.c (target_thread_alive): Unconditionally delegate.
9308 * target.h (struct target_ops) <to_thread_alive>: Use
9309 TARGET_DEFAULT_RETURN.
9310
9311 2014-02-19 Tom Tromey <tromey@redhat.com>
9312
9313 * target-delegates.c: Rebuild.
9314 * target.c (target_save_record): Unconditionally delegate.
9315 * target.h (struct target_ops) <to_save_record>: Use
9316 TARGET_DEFAULT_NORETURN.
9317
9318 2014-02-19 Tom Tromey <tromey@redhat.com>
9319
9320 * target-delegates.c: Rebuild.
9321 * target.c (target_delete_record): Unconditionally delegate.
9322 * target.h (struct target_ops) <to_delete_record>: Use
9323 TARGET_DEFAULT_NORETURN.
9324
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target-delegates.c: Rebuild.
9328 * target.c (target_record_is_replaying): Unconditionally
9329 delegate.
9330 * target.h (struct target_ops) <to_record_is_replaying>: Use
9331 TARGET_DEFAULT_RETURN.
9332
9333 2014-02-19 Tom Tromey <tromey@redhat.com>
9334
9335 * target-delegates.c: Rebuild.
9336 * target.c (target_goto_record_begin): Unconditionally delegate.
9337 * target.h (struct target_ops) <to_goto_record_begin>: 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_goto_record_end): Unconditionally delegate.
9344 * target.h (struct target_ops) <to_goto_record_end>: 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_goto_record): Unconditionally delegate.
9351 * target.h (struct target_ops) <to_goto_record>: 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_insn_history): Unconditionally delegate.
9358 * target.h (struct target_ops) <to_insn_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_insn_history_from): Unconditionally delegate.
9365 * target.h (struct target_ops) <to_insn_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_insn_history_range): Unconditionally delegate.
9372 * target.h (struct target_ops) <to_insn_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_call_history): Unconditionally delegate.
9379 * target.h (struct target_ops) <to_call_history>: 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_call_history_from): Unconditionally delegate.
9386 * target.h (struct target_ops) <to_call_history_from>: Use
9387 TARGET_DEFAULT_NORETURN.
9388
9389 2014-02-19 Tom Tromey <tromey@redhat.com>
9390
9391 * target-delegates.c: Rebuild.
9392 * target.c (target_call_history_range): Unconditionally delegate.
9393 * target.h (struct target_ops) <to_call_history_range>: 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_verify_memory): Unconditionally delegate.
9400 * target.h (struct target_ops) <to_verify_memory>: 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_core_of_thread): Unconditionally delegate.
9407 * target.h (struct target_ops) <to_core_of_thread>: 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_flash_done): Unconditionally delegate.
9414 * target.h (struct target_ops) <to_flash_done>: Use
9415 TARGET_DEFAULT_NORETURN.
9416
9417 2014-02-19 Tom Tromey <tromey@redhat.com>
9418
9419 * target-delegates.c: Rebuild.
9420 * target.c (target_flash_erase): Unconditionally delegate.
9421 * target.h (struct target_ops) <to_flash_erase>: Use
9422 TARGET_DEFAULT_NORETURN.
9423
9424 2014-02-19 Tom Tromey <tromey@redhat.com>
9425
9426 * target-delegates.c: Rebuild.
9427 * target.c (target_get_section_table): Unconditionally delegate.
9428 * target.h (struct target_ops) <to_get_section_table>: Use
9429 TARGET_DEFAULT_RETURN.
9430
9431 2014-02-19 Tom Tromey <tromey@redhat.com>
9432
9433 * target-delegates.c: Rebuild.
9434 * target.c (target_pid_to_str): Unconditionally delegate.
9435 (init_dummy_target): Don't initialize to_pid_to_str.
9436 (default_pid_to_str): Rename from dummy_pid_to_str.
9437 * target.h (struct target_ops) <to_pid_to_str>: Use
9438 TARGET_DEFAULT_FUNC.
9439
9440 2014-02-19 Tom Tromey <tromey@redhat.com>
9441
9442 * target-delegates.c: Rebuild.
9443 * target.c (target_find_new_threads): Unconditionally delegate.
9444 * target.h (struct target_ops) <to_find_new_threads>: Use
9445 TARGET_DEFAULT_RETURN.
9446
9447 2014-02-19 Tom Tromey <tromey@redhat.com>
9448
9449 * target-delegates.c: Rebuild.
9450 * target.c (target_program_signals): Unconditionally delegate.
9451 * target.h (struct target_ops) <to_program_signals>: Use
9452 TARGET_DEFAULT_IGNORE.
9453
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9455
9456 * target-delegates.c: Rebuild.
9457 * target.c (target_pass_signals): Unconditionally delegate.
9458 * target.h (struct target_ops) <to_pass_signals>: Use
9459 TARGET_DEFAULT_IGNORE.
9460
9461 2014-02-19 Tom Tromey <tromey@redhat.com>
9462
9463 * target-delegates.c: Rebuild.
9464 * target.c (default_mourn_inferior): New function.
9465 (target_mourn_inferior): Unconditionally delegate.
9466 * target.h (struct target_ops) <to_mourn_inferior>: Use
9467 TARGET_DEFAULT_FUNC.
9468
9469 2014-02-19 Tom Tromey <tromey@redhat.com>
9470
9471 * target-delegates.c: Rebuild.
9472 * target.c (default_follow_fork): New function.
9473 (target_follow_fork): Unconditionally delegate.
9474 * target.h (struct target_ops) <to_follow_fork>: Use
9475 TARGET_DEFAULT_FUNC.
9476
9477 2014-02-19 Tom Tromey <tromey@redhat.com>
9478
9479 * target-delegates.c: Rebuild.
9480 * target.c (target_kill): Unconditionally delegate.
9481 * target.h (struct target_ops) <to_kill>: Use
9482 TARGET_DEFAULT_NORETURN.
9483
9484 2014-02-19 Tom Tromey <tromey@redhat.com>
9485
9486 * target-delegates.c: Rebuild.
9487 * target.c (target_masked_watch_num_registers): Unconditionally
9488 delegate.
9489 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9490 Use TARGET_DEFAULT_RETURN.
9491
9492 2014-02-19 Tom Tromey <tromey@redhat.com>
9493
9494 * target-delegates.c: Rebuild.
9495 * target.c (target_remove_mask_watchpoint): Unconditionally
9496 delegate.
9497 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9498 TARGET_DEFAULT_RETURN.
9499
9500 2014-02-19 Tom Tromey <tromey@redhat.com>
9501
9502 * target-delegates.c: Rebuild.
9503 * target.c (target_insert_mask_watchpoint): Unconditionally
9504 delegate.
9505 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9506 TARGET_DEFAULT_RETURN.
9507
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9509
9510 * target-delegates.c: Rebuild.
9511 * target.c (target_ranged_break_num_registers): Unconditionally
9512 delegate.
9513 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9514 Use TARGET_DEFAULT_RETURN.
9515
9516 2014-02-19 Tom Tromey <tromey@redhat.com>
9517
9518 * target-delegates.c: Rebuild.
9519 * target.c (target_fetch_registers): Unconditionally delegate.
9520 * target.h (struct target_ops) <to_fetch_registers>: Use
9521 TARGET_DEFAULT_NORETURN.
9522
9523 2014-02-19 Tom Tromey <tromey@redhat.com>
9524
9525 * target-delegates.c: Rebuild.
9526 * target.c (update_current_target): Don't inherit or default
9527 to_stop.
9528 * target.h (struct target_ops) <to_stop>: Use
9529 TARGET_DEFAULT_IGNORE.
9530
9531 2014-02-19 Tom Tromey <tromey@redhat.com>
9532
9533 * target-delegates.c: Rebuild.
9534 * target.c (update_current_target): Don't inherit or default
9535 to_can_run_breakpoint_commands.
9536 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9537 Use TARGET_DEFAULT_RETURN.
9538
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9540
9541 * target-delegates.c: Rebuild.
9542 * target.c (update_current_target): Don't inherit or default
9543 to_supports_evaluation_of_breakpoint_conditions.
9544 * target.h (struct target_ops)
9545 <to_supports_evaluation_of_breakpoint_conditions>: Use
9546 TARGET_DEFAULT_RETURN.
9547
9548 2014-02-19 Tom Tromey <tromey@redhat.com>
9549
9550 * target-delegates.c: Rebuild.
9551 * target.c (update_current_target): Don't inherit or default
9552 to_augmented_libraries_svr4_read.
9553 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9554 Use TARGET_DEFAULT_RETURN.
9555
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9557
9558 * target-delegates.c: Rebuild.
9559 * target.c (update_current_target): Don't inherit or default
9560 to_can_use_agent.
9561 * target.h (struct target_ops) <to_can_use_agent>: Use
9562 TARGET_DEFAULT_RETURN.
9563
9564 2014-02-19 Tom Tromey <tromey@redhat.com>
9565
9566 * target-delegates.c: Rebuild.
9567 * target.c (update_current_target): Don't inherit or default
9568 to_use_agent.
9569 * target.h (struct target_ops) <to_use_agent>: Use
9570 TARGET_DEFAULT_NORETURN.
9571
9572 2014-02-19 Tom Tromey <tromey@redhat.com>
9573
9574 * target-delegates.c: Rebuild.
9575 * target.c (update_current_target): Don't inherit or default
9576 to_traceframe_info.
9577 (return_null): Remove.
9578 * target.h (struct target_ops) <to_traceframe_info>: Use
9579 TARGET_DEFAULT_RETURN.
9580
9581 2014-02-19 Tom Tromey <tromey@redhat.com>
9582
9583 * target-delegates.c: Rebuild.
9584 * target.c (update_current_target): Don't inherit or default
9585 to_static_tracepoint_markers_by_strid.
9586 * target.h (struct target_ops)
9587 <to_static_tracepoint_markers_by_strid>: Use
9588 TARGET_DEFAULT_NORETURN.
9589
9590 2014-02-19 Tom Tromey <tromey@redhat.com>
9591
9592 * target-delegates.c: Rebuild.
9593 * target.c (update_current_target): Don't inherit or default
9594 to_static_tracepoint_marker_at.
9595 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9596 Use TARGET_DEFAULT_RETURN.
9597
9598 2014-02-19 Tom Tromey <tromey@redhat.com>
9599
9600 * target-delegates.c: Rebuild.
9601 * target.c (update_current_target): Don't inherit or default
9602 to_set_permissions.
9603 * target.h (struct target_ops) <to_set_permissions>: Use
9604 TARGET_DEFAULT_IGNORE.
9605
9606 2014-02-19 Tom Tromey <tromey@redhat.com>
9607
9608 * target-delegates.c: Rebuild.
9609 * target.c (update_current_target): Don't inherit or default
9610 to_get_tib_address.
9611 * target.h (struct target_ops) <to_get_tib_address>: Use
9612 TARGET_DEFAULT_NORETURN.
9613
9614 2014-02-19 Tom Tromey <tromey@redhat.com>
9615
9616 * target-delegates.c: Rebuild.
9617 * target.c (update_current_target): Don't inherit or default
9618 to_set_trace_notes.
9619 * target.h (struct target_ops) <to_set_trace_notes>: Use
9620 TARGET_DEFAULT_RETURN.
9621
9622 2014-02-19 Tom Tromey <tromey@redhat.com>
9623
9624 * target-delegates.c: Rebuild.
9625 * target.c (update_current_target): Don't initialize
9626 to_set_trace_buffer_size.
9627 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9628 TARGET_DEFAULT_IGNORE.
9629
9630 2014-02-19 Tom Tromey <tromey@redhat.com>
9631
9632 * target-delegates.c: Rebuild.
9633 * target.c (update_current_target): Don't inherit or default
9634 to_set_circular_trace_buffer.
9635 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9636 TARGET_DEFAULT_IGNORE.
9637
9638 2014-02-19 Tom Tromey <tromey@redhat.com>
9639
9640 * target-delegates.c: Rebuild.
9641 * target.c (update_current_target): Don't inherit or default
9642 to_set_disconnected_tracing.
9643 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9644 TARGET_DEFAULT_IGNORE.
9645
9646 2014-02-19 Tom Tromey <tromey@redhat.com>
9647
9648 * target-delegates.c: Rebuild.
9649 * target.c (update_current_target): Don't inherit or default
9650 to_get_min_fast_tracepoint_insn_len.
9651 (return_minus_one): Remove.
9652 * target.h (struct target_ops)
9653 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9654
9655 2014-02-19 Tom Tromey <tromey@redhat.com>
9656
9657 * target-delegates.c: Rebuild.
9658 * target.c (update_current_target): Don't inherit or default
9659 to_get_raw_trace_data.
9660 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9661 TARGET_DEFAULT_NORETURN.
9662
9663 2014-02-19 Tom Tromey <tromey@redhat.com>
9664
9665 * target-delegates.c: Rebuild.
9666 * target.c (update_current_target): Don't inherit or default
9667 to_upload_trace_state_variables.
9668 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9669 Use TARGET_DEFAULT_RETURN.
9670
9671 2014-02-19 Tom Tromey <tromey@redhat.com>
9672
9673 * target-delegates.c: Rebuild.
9674 * target.c (update_current_target): Don't inherit or default
9675 to_upload_tracepoints.
9676 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9677 TARGET_DEFAULT_RETURN.
9678
9679 2014-02-19 Tom Tromey <tromey@redhat.com>
9680
9681 * target-delegates.c: Rebuild.
9682 * target.c (update_current_target): Don't inherit or default
9683 to_save_trace_data.
9684 * target.h (struct target_ops) <to_save_trace_data>: Use
9685 TARGET_DEFAULT_NORETURN.
9686
9687 2014-02-19 Tom Tromey <tromey@redhat.com>
9688
9689 * target-delegates.c: Rebuild.
9690 * target.c (update_current_target): Don't inherit or default
9691 to_get_trace_state_variable_value.
9692 * target.h (struct target_ops)
9693 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9694
9695 2014-02-19 Tom Tromey <tromey@redhat.com>
9696
9697 * target-delegates.c: Rebuild.
9698 * target.c (update_current_target): Don't inherit or default
9699 to_trace_find.
9700 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9701
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9703
9704 * target-delegates.c: Rebuild.
9705 * target.c (update_current_target): Don't inherit or default
9706 to_trace_stop.
9707 * target.h (struct target_ops) <to_trace_stop>: Use
9708 TARGET_DEFAULT_NORETURN.
9709
9710 2014-02-19 Tom Tromey <tromey@redhat.com>
9711
9712 * target-delegates.c: Rebuild.
9713 * target.c (update_current_target): Don't inherit or default
9714 to_get_tracepoint_status.
9715 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9716 TARGET_DEFAULT_NORETURN.
9717
9718 2014-02-19 Tom Tromey <tromey@redhat.com>
9719
9720 * target-delegates.c: Rebuild.
9721 * target.c (update_current_target): Don't inherit or default
9722 to_get_trace_status.
9723 * target.h (struct target_ops) <to_get_trace_status>: Use
9724 TARGET_DEFAULT_RETURN.
9725
9726 2014-02-19 Tom Tromey <tromey@redhat.com>
9727
9728 * target-delegates.c: Rebuild.
9729 * target.c (update_current_target): Don't inherit or default
9730 to_trace_start.
9731 * target.h (struct target_ops) <to_trace_start>: Use
9732 TARGET_DEFAULT_NORETURN.
9733
9734 2014-02-19 Tom Tromey <tromey@redhat.com>
9735
9736 * target-delegates.c: Rebuild.
9737 * target.c (update_current_target): Don't inherit or default
9738 to_trace_set_readonly_regions.
9739 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9740 Use TARGET_DEFAULT_NORETURN.
9741
9742 2014-02-19 Tom Tromey <tromey@redhat.com>
9743
9744 * target-delegates.c: Rebuild.
9745 * target.c (update_current_target): Don't inherit or default
9746 to_disable_tracepoint.
9747 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9748 TARGET_DEFAULT_NORETURN.
9749
9750 2014-02-19 Tom Tromey <tromey@redhat.com>
9751
9752 * target-delegates.c: Rebuild.
9753 * target.c (update_current_target): Don't inherit or default
9754 to_enable_tracepoint.
9755 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9756 TARGET_DEFAULT_NORETURN.
9757
9758 2014-02-19 Tom Tromey <tromey@redhat.com>
9759
9760 * target-delegates.c: Rebuild.
9761 * target.c (update_current_target): Don't inherit or default
9762 to_download_trace_state_variable.
9763 * target.h (struct target_ops) <to_download_trace_state_variable>:
9764 Use TARGET_DEFAULT_NORETURN.
9765
9766 2014-02-19 Tom Tromey <tromey@redhat.com>
9767
9768 * target-delegates.c: Rebuild.
9769 * target.c (update_current_target): Don't inherit or default
9770 to_can_download_tracepoint.
9771 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9772 TARGET_DEFAULT_RETURN.
9773
9774 2014-02-19 Tom Tromey <tromey@redhat.com>
9775
9776 * target-delegates.c: Rebuild.
9777 * target.c (update_current_target): Don't inherit or default
9778 to_download_tracepoint.
9779 * target.h (struct target_ops) <to_download_tracepoint>: Use
9780 TARGET_DEFAULT_NORETURN.
9781
9782 2014-02-19 Tom Tromey <tromey@redhat.com>
9783
9784 * target-delegates.c: Rebuild.
9785 * target.c (update_current_target): Don't inherit or default
9786 to_trace_init.
9787 * target.h (struct target_ops) <to_trace_init>: Use
9788 TARGET_DEFAULT_RETURN.
9789
9790 2014-02-19 Tom Tromey <tromey@redhat.com>
9791
9792 * target-delegates.c: Rebuild.
9793 * target.c (update_current_target): Don't inherit or default
9794 to_supports_string_tracing.
9795 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9796 TARGET_DEFAULT_RETURN.
9797
9798 2014-02-19 Tom Tromey <tromey@redhat.com>
9799
9800 * target-delegates.c: Rebuild.
9801 * target.c (update_current_target): Don't inherit or default
9802 to_supports_enable_disable_tracepoint.
9803 * target.h (struct target_ops)
9804 <to_supports_enable_disable_tracepoint>: Use
9805 TARGET_DEFAULT_RETURN.
9806
9807 2014-02-19 Tom Tromey <tromey@redhat.com>
9808
9809 * target-delegates.c: Rebuild.
9810 * target.c (update_current_target): Don't inherit or default
9811 to_supports_multi_process.
9812 * target.h (struct target_ops) <to_supports_multi_process>: Use
9813 TARGET_DEFAULT_RETURN.
9814
9815 2014-02-19 Tom Tromey <tromey@redhat.com>
9816
9817 * target-delegates.c: Rebuild.
9818 * target.c (update_current_target): Don't inherit or default
9819 to_get_ada_task_ptid.
9820 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9821 TARGET_DEFAULT_FUNC.
9822
9823 2014-02-19 Tom Tromey <tromey@redhat.com>
9824
9825 * target-delegates.c: Rebuild.
9826 * target.c (update_current_target): Don't inherit or default
9827 to_thread_architecture.
9828 * target.h (struct target_ops) <to_thread_architecture>: Use
9829 TARGET_DEFAULT_FUNC.
9830
9831 2014-02-19 Tom Tromey <tromey@redhat.com>
9832
9833 * target-delegates.c: Rebuild.
9834 * target.c (update_current_target): Don't inherit or default
9835 to_execution_direction.
9836 * target.h (struct target_ops) <to_execution_direction>: Use
9837 TARGET_DEFAULT_FUNC.
9838
9839 2014-02-19 Tom Tromey <tromey@redhat.com>
9840
9841 * target-delegates.c: Rebuild.
9842 * target.c (update_current_target): Don't inherit or default
9843 to_can_execute_reverse.
9844 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9845 TARGET_DEFAULT_RETURN.
9846 (target_can_execute_reverse): Unconditionally delegate.
9847
9848 2014-02-19 Tom Tromey <tromey@redhat.com>
9849
9850 * target-delegates.c: Rebuild.
9851 * target.c (update_current_target): Don't inherit or default
9852 to_goto_bookmark.
9853 (dummy_goto_bookmark): Remove.
9854 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9855 * target.h (struct target_ops) <to_goto_bookmark>: Use
9856 TARGET_DEFAULT_NORETURN.
9857
9858 2014-02-19 Tom Tromey <tromey@redhat.com>
9859
9860 * target-delegates.c: Rebuild.
9861 * target.c (update_current_target): Don't inherit or default
9862 to_get_bookmark.
9863 (dummy_get_bookmark): Remove.
9864 (init_dummy_target): Don't inherit or default to_get_bookmark.
9865 * target.h (struct target_ops) <to_get_bookmark>: Use
9866 TARGET_DEFAULT_NORETURN
9867
9868 2014-02-19 Tom Tromey <tromey@redhat.com>
9869
9870 * target-delegates.c: Rebuild.
9871 * target.c (update_current_target): Don't inherit or default
9872 to_make_corefile_notes.
9873 (init_dummy_target): Don't initialize to_make_corefile_notes.
9874 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9875 TARGET_DEFAULT_FUNC.
9876
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9878
9879 * target-delegates.c: Rebuild.
9880 * target.c (update_current_target): Don't inherit or default
9881 to_find_memory_regions.
9882 (init_dummy_target): Don't initialize to_find_memory_regions.
9883 * target.h (struct target_ops) <to_find_memory_regions>: Use
9884 TARGET_DEFAULT_FUNC.
9885
9886 2014-02-19 Tom Tromey <tromey@redhat.com>
9887
9888 * target-delegates.c: Rebuild.
9889 * target.c (update_current_target): Don't inherit or default
9890 to_log_command.
9891 * target.h (struct target_ops) <to_log_command>: Use
9892 TARGET_DEFAULT_IGNORE.
9893 (target_log_command): Unconditionally delegate.
9894
9895 2014-02-19 Tom Tromey <tromey@redhat.com>
9896
9897 * target-delegates.c: Rebuild.
9898 * target.c (update_current_target): Don't inherit or default
9899 to_pid_to_exec_file.
9900 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9901 TARGET_DEFAULT_RETURN.
9902
9903 2014-02-19 Tom Tromey <tromey@redhat.com>
9904
9905 * target-delegates.c: Rebuild.
9906 * target.c (update_current_target): Don't inherit or default
9907 to_thread_name.
9908 (target_thread_name): Unconditionally delegate.
9909 * target.h (struct target_ops) <to_thread_name>: Use
9910 TARGET_DEFAULT_RETURN.
9911
9912 2014-02-19 Tom Tromey <tromey@redhat.com>
9913
9914 * target-delegates.c: Rebuild.
9915 * target.c (update_current_target): Don't inherit or default
9916 to_extra_thread_info.
9917 * target.h (struct target_ops) <to_extra_thread_info>: Use
9918 TARGET_DEFAULT_RETURN.
9919
9920 2014-02-19 Tom Tromey <tromey@redhat.com>
9921
9922 * target-delegates.c: Rebuild.
9923 * target.c (update_current_target): Don't inherit or default
9924 to_has_exited.
9925 * target.h (struct target_ops) <to_has_exited>: Use
9926 TARGET_DEFAULT_RETURN..
9927
9928 2014-02-19 Tom Tromey <tromey@redhat.com>
9929
9930 * target-delegates.c: Rebuild.
9931 * target.c (update_current_target): Don't inherit or default
9932 to_set_syscall_catchpoint.
9933 (return_one): Remove.
9934 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9935 TARGET_DEFAULT_RETURN.
9936
9937 2014-02-19 Tom Tromey <tromey@redhat.com>
9938
9939 * target-delegates.c: Rebuild.
9940 * target.c (update_current_target): Don't inherit or default
9941 to_insert_exec_catchpoint.
9942 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9943 TARGET_DEFAULT_RETURN.
9944
9945 2014-01-08 Tom Tromey <tromey@redhat.com>
9946
9947 * target-delegates.c: Rebuild.
9948 * target.c (update_current_target): Don't inherit or default
9949 to_insert_exec_catchpoint.
9950 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9951 TARGET_DEFAULT_RETURN.
9952
9953 2014-02-19 Tom Tromey <tromey@redhat.com>
9954
9955 * target-delegates.c: Rebuild.
9956 * target.c (update_current_target): Don't inherit or default
9957 to_remove_vfork_catchpoint.
9958 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9959 TARGET_DEFAULT_RETURN.
9960
9961 2014-02-19 Tom Tromey <tromey@redhat.com>
9962
9963 * target-delegates.c: Rebuild.
9964 * target.c (update_current_target): Don't inherit or default
9965 to_insert_vfork_catchpoint.
9966 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9967 TARGET_DEFAULT_RETURN.
9968
9969 2014-02-19 Tom Tromey <tromey@redhat.com>
9970
9971 * target-delegates.c: Rebuild.
9972 * target.c (update_current_target): Don't inherit or default
9973 to_remove_fork_catchpoint.
9974 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9975 TARGET_DEFAULT_RETURN.
9976
9977 2014-02-19 Tom Tromey <tromey@redhat.com>
9978
9979 * target-delegates.c: Rebuild.
9980 * target.c (update_current_target): Don't inherit or default
9981 to_insert_fork_catchpoint.
9982 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9983 TARGET_DEFAULT_RETURN.
9984
9985 2014-02-19 Tom Tromey <tromey@redhat.com>
9986
9987 * target-delegates.c: Rebuild.
9988 * target.c (update_current_target): Don't inherit or default
9989 to_post_startup_inferior.
9990 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9991 TARGET_DEFAULT_IGNORE.
9992
9993 2014-02-19 Tom Tromey <tromey@redhat.com>
9994
9995 * target-delegates.c: Rebuild.
9996 * target.c (update_current_target): Don't inherit or default
9997 to_load.
9998 * target.h (struct target_ops) <to_load>: Use
9999 TARGET_DEFAULT_NORETURN.
10000
10001 2014-02-19 Tom Tromey <tromey@redhat.com>
10002
10003 * target-delegates.c: Rebuild.
10004 * target.c (update_current_target): Don't inherit or default
10005 to_terminal_info.
10006 * target.h (struct target_ops) <to_terminal_info>: Use
10007 TARGET_DEFAULT_FUNC.
10008
10009 2014-02-19 Tom Tromey <tromey@redhat.com>
10010
10011 * target-delegates.c: Rebuild.
10012 * target.c (update_current_target): Don't inherit or default
10013 to_terminal_save_ours.
10014 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10015 TARGET_DEFAULT_IGNORE.
10016
10017 2014-02-19 Tom Tromey <tromey@redhat.com>
10018
10019 * target-delegates.c: Rebuild.
10020 * target.c (update_current_target): Don't inherit or default
10021 to_terminal_ours.
10022 * target.h (struct target_ops) <to_terminal_ours>: Use
10023 TARGET_DEFAULT_IGNORE.
10024
10025 2014-02-19 Tom Tromey <tromey@redhat.com>
10026
10027 * target-delegates.c: Rebuild.
10028 * target.c (update_current_target): Don't inherit or default
10029 to_terminal_ours_for_output.
10030 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10031 TARGET_DEFAULT_IGNORE.
10032
10033 2014-02-19 Tom Tromey <tromey@redhat.com>
10034
10035 * target-delegates.c: Rebuild.
10036 * target.c (update_current_target): Don't inherit or default
10037 to_terminal_inferior.
10038 * target.h (struct target_ops) <to_terminal_inferior>: Use
10039 TARGET_DEFAULT_IGNORE.
10040
10041 2014-02-19 Tom Tromey <tromey@redhat.com>
10042
10043 * target-delegates.c: Rebuild.
10044 * target.c (update_current_target): Don't inherit or default
10045 to_terminal_init.
10046 * target.h (struct target_ops) <to_terminal_init>: Use
10047 TARGET_DEFAULT_IGNORE.
10048
10049 2014-02-19 Tom Tromey <tromey@redhat.com>
10050
10051 * target-delegates.c: Rebuild.
10052 * target.c (update_current_target): Don't inherit or default
10053 to_can_accel_watchpoint_condition.
10054 * target.h (struct target_ops)
10055 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10056
10057 2014-02-19 Tom Tromey <tromey@redhat.com>
10058
10059 * target-delegates.c: Rebuild.
10060 * target.c (update_current_target): Don't inherit or default
10061 to_region_ok_for_hw_watchpoint.
10062 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10063 Use TARGET_DEFAULT_FUNC.
10064
10065 2014-02-19 Tom Tromey <tromey@redhat.com>
10066
10067 * target-delegates.c: Rebuild.
10068 * target.c (update_current_target): Don't inherit or default
10069 to_watchpoint_addr_within_range.
10070 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10071 Use TARGET_DEFAULT_FUNC.
10072
10073 2014-02-19 Tom Tromey <tromey@redhat.com>
10074
10075 * target-delegates.c: Rebuild.
10076 * target.c (update_current_target): Don't inherit or default
10077 to_remove_watchpoint.
10078 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10079 TARGET_DEFAULT_NORETURN.
10080
10081 2014-02-19 Tom Tromey <tromey@redhat.com>
10082
10083 * target-delegates.c: Rebuild.
10084 * target.c (update_current_target): Don't inherit or default
10085 to_insert_watchpoint.
10086 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10087 TARGET_DEFAULT_RETURN.
10088
10089 2014-02-19 Tom Tromey <tromey@redhat.com>
10090
10091 * target-delegates.c: Rebuild.
10092 * target.c (update_current_target): Don't inherit or default
10093 to_remove_hw_breakpoint.
10094 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10095 TARGET_DEFAULT_RETURN.
10096
10097 2014-02-19 Tom Tromey <tromey@redhat.com>
10098
10099 * target-delegates.c: Rebuild.
10100 * target.c (update_current_target): Don't inherit or default
10101 to_insert_hw_breakpoint.
10102 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10103 TARGET_DEFAULT_RETURN.
10104
10105 2014-02-19 Tom Tromey <tromey@redhat.com>
10106
10107 * target-delegates.c: Rebuild.
10108 * target.c (update_current_target): Don't inherit or default
10109 to_can_use_hw_breakpoint.
10110 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10111 TARGET_DEFAULT_RETURN.
10112
10113 2014-02-19 Tom Tromey <tromey@redhat.com>
10114
10115 * target-delegates.c: Rebuild.
10116 * target.c (update_current_target): Don't inherit or default
10117 to_files_info.
10118 * target.h (struct target_ops) <to_files_info>: Use
10119 TARGET_DEFAULT_IGNORE.
10120
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10122
10123 * target-delegates.c: Rebuild.
10124 * target.c (update_current_target): Don't inherit or default
10125 to_store.
10126 * target.h (struct target_ops) <to_store>: Use
10127 TARGET_DEFAULT_NORETURN.
10128
10129 2014-02-19 Tom Tromey <tromey@redhat.com>
10130
10131 * target-delegates.c: Rebuild.
10132 * target.c (update_current_target): Don't inherit or default
10133 to_post_attach.
10134 * target.h (struct target_ops) <to_post_attach>: Use
10135 TARGET_DEFAULT_IGNORE.
10136
10137 2014-02-19 Tom Tromey <tromey@redhat.com>
10138
10139 * target-delegates.c: Rebuild.
10140 * target.c (update_current_target): Don't inherit or default
10141 to_rcmd.
10142 (default_rcmd): New function.
10143 (do_monitor_command): Unconditionally delegate.
10144 * target.h (struct target_ops) <to_rmcd>: Use
10145 TARGET_DEFAULT_FUNC.
10146
10147 2014-02-19 Tom Tromey <tromey@redhat.com>
10148
10149 * target-delegates.c: Rebuild.
10150 * target.c (init_dummy_target): Don't initialize to_attach.
10151 (target_attach): Unconditionally delegate.
10152 * target.h (struct target_ops) <to_attach>: Use
10153 TARGET_DEFAULT_FUNC.
10154
10155 2014-02-19 Tom Tromey <tromey@redhat.com>
10156
10157 * target-delegates.c: Rebuild.
10158 * target.c (target_detach): Unconditionally delegate.
10159 (init_dummy_target): Don't initialize to_detach.
10160 * target.h (struct target_ops) <to_detach>: Use
10161 TARGET_DEFAULT_IGNORE.
10162
10163 2014-02-19 Tom Tromey <tromey@redhat.com>
10164
10165 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10166 Add argument.
10167 (target_augmented_libraries_svr4_read): Add argument.
10168 * target.c (update_current_target): Update.
10169 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10170 argument.
10171
10172 2014-02-19 Tom Tromey <tromey@redhat.com>
10173
10174 * target.h (struct target_ops) <to_call_history_range>: Add
10175 argument.
10176 * target.c (target_call_history_range): Add argument.
10177 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10178 argument.
10179 (record_btrace_call_history_from): Update.
10180
10181 2014-02-19 Tom Tromey <tromey@redhat.com>
10182
10183 * target.h (struct target_ops) <to_call_history_from>: Add
10184 argument.
10185 * target.c (target_call_history_from): Add argument.
10186 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10187 argument.
10188
10189 2014-02-19 Tom Tromey <tromey@redhat.com>
10190
10191 * target.h (struct target_ops) <to_call_history>: Add argument.
10192 * target.c (target_call_history): Add argument.
10193 * record-btrace.c (record_btrace_call_history): Add 'self'
10194 argument.
10195
10196 2014-02-19 Tom Tromey <tromey@redhat.com>
10197
10198 * target.h (struct target_ops) <to_insn_history_range>: Add
10199 argument.
10200 * target.c (target_insn_history_range): Add argument.
10201 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10202 argument.
10203 (record_btrace_insn_history_from): Update.
10204
10205 2014-02-19 Tom Tromey <tromey@redhat.com>
10206
10207 * target.h (struct target_ops) <to_insn_history_from>: Add
10208 argument.
10209 * target.c (target_insn_history_from): Add argument.
10210 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10211 argument.
10212
10213 2014-02-19 Tom Tromey <tromey@redhat.com>
10214
10215 * target.h (struct target_ops) <to_insn_history>: Add argument.
10216 * target.c (target_insn_history): Add argument.
10217 * record-btrace.c (record_btrace_insn_history): Add 'self'
10218 argument.
10219
10220 2014-02-19 Tom Tromey <tromey@redhat.com>
10221
10222 * target.h (struct target_ops) <to_goto_record>: Add argument.
10223 * target.c (target_goto_record): Add argument.
10224 * record-full.c (record_full_goto): Add 'self' argument.
10225 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10226
10227 2014-02-19 Tom Tromey <tromey@redhat.com>
10228
10229 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10230 * target.c (target_goto_record_end): Add argument.
10231 * record-full.c (record_full_goto_end): Add 'self' argument.
10232 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10233
10234 2014-02-19 Tom Tromey <tromey@redhat.com>
10235
10236 * target.h (struct target_ops) <to_goto_record_begin>: Add
10237 argument.
10238 * target.c (target_goto_record_begin): Add argument.
10239 * record-full.c (record_full_goto_begin): Add 'self' argument.
10240 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10241 argument.
10242
10243 2014-02-19 Tom Tromey <tromey@redhat.com>
10244
10245 * target.h (struct target_ops) <to_record_is_replaying>: Add
10246 argument.
10247 * target.c (target_record_is_replaying): Add argument.
10248 * record-full.c (record_full_is_replaying): Add 'self' argument.
10249 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10250 argument.
10251 (record_btrace_xfer_partial, record_btrace_store_registers)
10252 (record_btrace_prepare_to_store, record_btrace_resume)
10253 (record_btrace_wait, record_btrace_decr_pc_after_break)
10254 (record_btrace_find_new_threads, record_btrace_thread_alive):
10255 Update.
10256
10257 2014-02-19 Tom Tromey <tromey@redhat.com>
10258
10259 * target.h (struct target_ops) <to_delete_record>: Add argument.
10260 * target.c (target_delete_record): Add argument.
10261 * record-full.c (record_full_delete): Add 'self' argument.
10262
10263 2014-02-19 Tom Tromey <tromey@redhat.com>
10264
10265 * target.h (struct target_ops) <to_save_record>: Add argument.
10266 * target.c (target_save_record): Add argument.
10267 * record-full.c (record_full_save): Add 'self' argument.
10268 (record_full_save): Add 'self' argument.
10269
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10271
10272 * target.h (struct target_ops) <to_info_record>: Add argument.
10273 * target.c (target_info_record): Add argument.
10274 * record.c (info_record_command): Add argument.
10275 * record-full.c (record_full_info): Add 'self' argument.
10276 * record-btrace.c (record_btrace_info): Add 'self' argument.
10277
10278 2014-02-19 Tom Tromey <tromey@redhat.com>
10279
10280 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10281 * target.c (target_stop_recording): Add argument.
10282 * record.c (record_stop): Add argument.
10283 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10284 argument.
10285
10286 2014-02-19 Tom Tromey <tromey@redhat.com>
10287
10288 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10289 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10290 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10291 argument.
10292 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10293 (_initialize_amd64_linux_nat): Use it.
10294 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10295 (_initialize_i386_linux_nat): Use it.
10296
10297 2014-02-19 Tom Tromey <tromey@redhat.com>
10298
10299 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10300 * target.c (target_teardown_btrace): Add argument.
10301 * remote.c (remote_teardown_btrace): Add 'self' argument.
10302 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10303 argument.
10304 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10305 argument.
10306
10307 2014-02-19 Tom Tromey <tromey@redhat.com>
10308
10309 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10310 * target.c (target_disable_btrace): Add argument.
10311 * remote.c (remote_disable_btrace): Add 'self' argument.
10312 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10313 argument.
10314 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10315 argument.
10316
10317 2014-02-19 Tom Tromey <tromey@redhat.com>
10318
10319 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10320 * target.c (target_enable_btrace): Add argument.
10321 * remote.c (remote_enable_btrace): Add 'self' argument.
10322 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10323 argument.
10324 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10325 argument.
10326
10327 2014-02-19 Tom Tromey <tromey@redhat.com>
10328
10329 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10330 (target_can_use_agent): Add argument.
10331 * target.c (update_current_target): Update.
10332 * remote.c (remote_can_use_agent): Add 'self' argument.
10333 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10334
10335 2014-02-19 Tom Tromey <tromey@redhat.com>
10336
10337 * target.h (struct target_ops) <to_use_agent>: Add argument.
10338 (target_use_agent): Add argument.
10339 * target.c (update_current_target): Update.
10340 * remote.c (remote_use_agent): Add 'self' argument.
10341 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10342
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10344
10345 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10346 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10347 (target_traceframe_info): Add argument.
10348 * target.c (update_current_target): Update.
10349 * remote.c (remote_traceframe_info): Add 'self' argument.
10350 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10351
10352 2014-02-19 Tom Tromey <tromey@redhat.com>
10353
10354 * target.h (target_static_tracepoint_markers_by_strid): Add
10355 argument.
10356 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10357 'self' argument.
10358 * target.c (update_current_target): Update.
10359 * remote.c (struct target_ops)
10360 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10361 * linux-nat.c (struct target_ops)
10362 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10363
10364 2014-02-19 Tom Tromey <tromey@redhat.com>
10365
10366 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10367 Add argument.
10368 (target_static_tracepoint_marker_at): Add argument.
10369 * target.c (update_current_target): Update.
10370 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10371 argument.
10372
10373 2014-02-19 Tom Tromey <tromey@redhat.com>
10374
10375 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10376 (target_set_permissions): Add argument.
10377 * target.c (update_current_target): Update.
10378 * remote.c (remote_set_permissions): Add 'self' argument.
10379 (remote_start_remote): Update.
10380
10381 2014-02-19 Tom Tromey <tromey@redhat.com>
10382
10383 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10384 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10385 (target_get_tib_address): Add argument.
10386 * target.c (update_current_target): Update.
10387 * remote.c (remote_get_tib_address): Add 'self' argument.
10388
10389 2014-02-19 Tom Tromey <tromey@redhat.com>
10390
10391 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10392 (target_set_trace_notes): Add argument.
10393 * target.c (update_current_target): Update.
10394 * remote.c (remote_set_trace_notes): Add 'self' argument.
10395
10396 2014-02-19 Tom Tromey <tromey@redhat.com>
10397
10398 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10399 argument.
10400 (target_set_trace_buffer_size): Add argument.
10401 * target.c (update_current_target): Update.
10402 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10403
10404 2014-02-19 Tom Tromey <tromey@redhat.com>
10405
10406 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10407 argument.
10408 (target_set_circular_trace_buffer): Add argument.
10409 * target.c (update_current_target): Update.
10410 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10411 argument.
10412
10413 2014-02-19 Tom Tromey <tromey@redhat.com>
10414
10415 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10416 argument.
10417 (target_set_disconnected_tracing): Add argument.
10418 * target.c (update_current_target): Update.
10419 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10420
10421 2014-02-19 Tom Tromey <tromey@redhat.com>
10422
10423 * target.h (struct target_ops)
10424 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10425 (target_get_min_fast_tracepoint_insn_len): Add argument.
10426 * target.c (update_current_target): Update.
10427 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10428 argument.
10429
10430 2014-02-19 Tom Tromey <tromey@redhat.com>
10431
10432 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10433 argument.
10434 (target_get_raw_trace_data): Add argument.
10435 * target.c (update_current_target): Update.
10436 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10437
10438 2014-02-19 Tom Tromey <tromey@redhat.com>
10439
10440 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10441 Add argument.
10442 (target_upload_trace_state_variables): Add argument.
10443 * target.c (update_current_target): Update.
10444 * remote.c (remote_upload_trace_state_variables): Add 'self'
10445 argument.
10446 (remote_start_remote): Update.
10447
10448 2014-02-19 Tom Tromey <tromey@redhat.com>
10449
10450 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10451 argument.
10452 (target_upload_tracepoints): Add argument.
10453 * target.c (update_current_target): Update.
10454 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10455 (remote_start_remote): Update.
10456
10457 2014-02-19 Tom Tromey <tromey@redhat.com>
10458
10459 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10460 (target_save_trace_data): Add argument.
10461 * target.c (update_current_target): Update.
10462 * remote.c (remote_save_trace_data): Add 'self' argument.
10463
10464 2014-02-19 Tom Tromey <tromey@redhat.com>
10465
10466 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10467 argument.
10468 * target.h (struct target_ops)
10469 <to_get_trace_state_variable_value>: Add argument.
10470 (target_get_trace_state_variable_value): Add argument.
10471 * target.c (update_current_target): Update.
10472 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10473 argument.
10474 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10475
10476 2014-02-19 Tom Tromey <tromey@redhat.com>
10477
10478 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10479 * target.h (struct target_ops) <to_trace_find>: Add argument.
10480 (target_trace_find): Add argument.
10481 * target.c (update_current_target): Update.
10482 * remote.c (remote_trace_find): Add 'self' argument.
10483 * ctf.c (ctf_trace_find): Add 'self' argument.
10484
10485 2014-02-19 Tom Tromey <tromey@redhat.com>
10486
10487 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10488 (target_trace_stop): Add argument.
10489 * target.c (update_current_target): Update.
10490 * remote.c (remote_trace_stop): Add 'self' argument.
10491
10492 2014-02-19 Tom Tromey <tromey@redhat.com>
10493
10494 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10495 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10496 argument.
10497 (target_get_tracepoint_status): Add argument.
10498 * target.c (update_current_target): Update.
10499 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10500
10501 2014-02-19 Tom Tromey <tromey@redhat.com>
10502
10503 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10504 * target.h (struct target_ops) <to_get_trace_status>: Add
10505 argument.
10506 (target_get_trace_status): Add argument.
10507 * target.c (update_current_target): Update.
10508 * remote.c (remote_get_trace_status): Add 'self' argument.
10509 (remote_start_remote, remote_can_download_tracepoint): Update.
10510 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10511
10512 2014-02-19 Tom Tromey <tromey@redhat.com>
10513
10514 * target.h (struct target_ops) <to_trace_start>: Add argument.
10515 (target_trace_start): Add argument.
10516 * target.c (update_current_target): Update.
10517 * remote.c (remote_trace_start): Add 'self' argument.
10518
10519 2014-02-19 Tom Tromey <tromey@redhat.com>
10520
10521 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10522 Add argument.
10523 (target_trace_set_readonly_regions): Add argument.
10524 * target.c (update_current_target): Update.
10525 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10526 argument.
10527
10528 2014-02-19 Tom Tromey <tromey@redhat.com>
10529
10530 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10531 argument.
10532 (target_disable_tracepoint): Add argument.
10533 * target.c (update_current_target): Update.
10534 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10535
10536 2014-02-19 Tom Tromey <tromey@redhat.com>
10537
10538 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10539 argument.
10540 (target_enable_tracepoint): Add argument.
10541 * target.c (update_current_target): Update.
10542 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10543
10544 2014-02-19 Tom Tromey <tromey@redhat.com>
10545
10546 * target.h (struct target_ops) <to_download_trace_state_variable>:
10547 Add argument.
10548 (target_download_trace_state_variable): Add argument.
10549 * target.c (update_current_target): Update.
10550 * remote.c (remote_download_trace_state_variable): Add 'self'
10551 argument.
10552
10553 2014-02-19 Tom Tromey <tromey@redhat.com>
10554
10555 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10556 argument.
10557 (target_can_download_tracepoint): Add argument.
10558 * target.c (update_current_target): Update.
10559 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10560
10561 2014-02-19 Tom Tromey <tromey@redhat.com>
10562
10563 * target.h (struct target_ops) <to_download_tracepoint>: Add
10564 argument.
10565 (target_download_tracepoint): Add argument.
10566 * target.c (update_current_target): Update.
10567 * remote.c (remote_download_tracepoint): Add 'self' argument.
10568
10569 2014-02-19 Tom Tromey <tromey@redhat.com>
10570
10571 * target.h (struct target_ops) <to_trace_init>: Add argument.
10572 (target_trace_init): Add argument.
10573 * target.c (update_current_target): Update.
10574 * remote.c (remote_trace_init): Add 'self' argument.
10575
10576 2014-02-19 Tom Tromey <tromey@redhat.com>
10577
10578 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10579 * target.c (target_fileio_readlink): Add argument.
10580 * remote.c (remote_hostio_readlink): Add 'self' argument.
10581 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10582
10583 2014-02-19 Tom Tromey <tromey@redhat.com>
10584
10585 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10586 * target.c (target_fileio_unlink): Add argument.
10587 * remote.c (remote_hostio_unlink): Add 'self' argument.
10588 (remote_file_delete): Update.
10589 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10590
10591 2014-02-19 Tom Tromey <tromey@redhat.com>
10592
10593 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10594 * target.c (target_fileio_close): Add argument.
10595 * remote.c (remote_hostio_close): Add 'self' argument.
10596 (remote_hostio_close_cleanup): Update.
10597 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10598 Update.
10599 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10600
10601 2014-02-19 Tom Tromey <tromey@redhat.com>
10602
10603 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10604 * target.c (target_fileio_pread): Add argument.
10605 * remote.c (remote_hostio_pread): Add 'self' argument.
10606 (remote_bfd_iovec_pread, remote_file_get): Update.
10607 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10608
10609 2014-02-19 Tom Tromey <tromey@redhat.com>
10610
10611 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10612 * target.c (target_fileio_pwrite): Add argument.
10613 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10614 (remote_file_put): Update.
10615 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10616
10617 2014-02-19 Tom Tromey <tromey@redhat.com>
10618
10619 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10620 * target.c (target_fileio_open): Add argument.
10621 * remote.c (remote_hostio_open): Add 'self' argument.
10622 (remote_bfd_iovec_open): Add 'self' argument.
10623 (remote_file_put): Add 'self' argument.
10624 (remote_file_get): Add 'self' argument.
10625 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10626
10627 2014-02-19 Tom Tromey <tromey@redhat.com>
10628
10629 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10630 Add argument.
10631 (target_can_run_breakpoint_commands): Add argument.
10632 * target.c (update_current_target): Update.
10633 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10634 argument.
10635 (remote_insert_breakpoint): Add 'self' argument.
10636 (remote_insert_hw_breakpoint): Add 'self' argument.
10637 (remote_can_run_breakpoint_commands): Add 'self' argument.
10638
10639 2014-02-19 Tom Tromey <tromey@redhat.com>
10640
10641 * target.h (struct target_ops)
10642 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10643 (target_supports_evaluation_of_breakpoint_conditions): Add
10644 argument.
10645 * target.c (update_current_target): Update.
10646 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10647 argument.
10648 (remote_insert_breakpoint): Add 'self' argument.
10649 (remote_insert_hw_breakpoint): Add 'self' argument.
10650 (remote_supports_cond_breakpoints): Add 'self' argument.
10651
10652 2014-02-19 Tom Tromey <tromey@redhat.com>
10653
10654 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10655 argument.
10656 (target_supports_string_tracing): Add argument.
10657 * target.c (update_current_target): Update.
10658 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10659
10660 2014-02-19 Tom Tromey <tromey@redhat.com>
10661
10662 * target.h (struct target_ops)
10663 <to_supports_disable_randomization>: Add argument.
10664 * target.c (find_default_supports_disable_randomization): Add
10665 argument.
10666 (target_supports_disable_randomization): Add argument.
10667 (find_default_supports_disable_randomization): Add 'self'
10668 argument.
10669 * remote.c (extended_remote_supports_disable_randomization): Add
10670 'self' argument.
10671 (remote_supports_disable_randomization): Add 'self' argument.
10672 (extended_remote_create_inferior): Update.
10673 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10674 'self' argument.
10675
10676 2014-02-19 Tom Tromey <tromey@redhat.com>
10677
10678 * target.h (struct target_ops)
10679 <to_supports_enable_disable_tracepoint>: Add argument.
10680 (target_supports_enable_disable_tracepoint): Add argument.
10681 * target.c (update_current_target): Update.
10682 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10683 argument.
10684
10685 2014-02-19 Tom Tromey <tromey@redhat.com>
10686
10687 * target.h (struct target_ops) <to_supports_multi_process>: Add
10688 argument.
10689 (target_supports_multi_process): Add argument.
10690 * target.c (update_current_target): Update.
10691 * remote.c (remote_supports_multi_process): Add 'self' argument.
10692 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10693 argument.
10694 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10695 argument.
10696
10697 2014-02-19 Tom Tromey <tromey@redhat.com>
10698
10699 * target.h (struct target_ops) <to_execution_direction>: Add
10700 argument.
10701 (target_execution_direction): Add argument.
10702 * target.c (default_execution_direction): Add 'self' argument.
10703 * record-full.c (record_full_execution_direction): Add 'self'
10704 argument.
10705
10706 2014-02-19 Tom Tromey <tromey@redhat.com>
10707
10708 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10709 argument.
10710 (target_can_execute_reverse): Add argument.
10711 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10712 * record-full.c (record_full_can_execute_reverse): Add 'self'
10713 argument.
10714 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10715 argument.
10716
10717 2014-02-19 Tom Tromey <tromey@redhat.com>
10718
10719 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10720 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10721 argument.
10722 (target_get_ada_task_ptid): Add argument.
10723 * target.c (update_current_target): Update.
10724 (default_get_ada_task_ptid): Add 'self' argument.
10725 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10726 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10727 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10728 argument.
10729 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10730 argument.
10731 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10732 argument.
10733 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10734 argument.
10735 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10736 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10737 argument.
10738
10739 2014-02-19 Tom Tromey <tromey@redhat.com>
10740
10741 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10742 (target_goto_bookmark): Add argument.
10743 * target.c (dummy_goto_bookmark): Add 'self' argument.
10744 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10745
10746 2014-02-19 Tom Tromey <tromey@redhat.com>
10747
10748 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10749 (target_get_bookmark): Add argument.
10750 * target.c (dummy_get_bookmark): Add 'self' argument.
10751 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10752
10753 2014-02-19 Tom Tromey <tromey@redhat.com>
10754
10755 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10756 argument.
10757 (target_make_corefile_notes): Add argument.
10758 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10759 * procfs.c (procfs_make_note_section): Add 'self' argument.
10760 (procfs_make_note_section): Add 'self' argument.
10761 (procfs_make_note_section): Add 'self' argument.
10762 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10763 argument.
10764 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10765 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10766 * exec.c (exec_make_note_section): Add 'self' argument.
10767 (exec_make_note_section): Add 'self' argument.
10768
10769 2014-02-19 Tom Tromey <tromey@redhat.com>
10770
10771 * target.h (struct target_ops) <to_find_memory_regions>: Add
10772 argument.
10773 (target_find_memory_regions): Add argument.
10774 * target.c (dummy_find_memory_regions): Add 'self' argument.
10775 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10776 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10777 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10778 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10779 * exec. (exec_do_find_memory_regions): New global.
10780 (exec_set_find_memory_regions): Rewrite.
10781 (exec_find_memory_regions): New function.
10782 (init_exec_ops): Use exec_find_memory_regions.
10783
10784 2014-02-19 Tom Tromey <tromey@redhat.com>
10785
10786 * target.h (struct target_ops) <to_supports_non_stop>: Add
10787 argument.
10788 * target.c (find_default_supports_non_stop): Add argument.
10789 (target_supports_non_stop): Add argument.
10790 (find_default_supports_non_stop): Add 'self' argument.
10791 * remote.c (remote_supports_non_stop): Add 'self' argument.
10792 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10793
10794 2014-02-19 Tom Tromey <tromey@redhat.com>
10795
10796 * target.h (struct target_ops) <to_log_command>: Add argument.
10797 (target_log_command): Add argument.
10798 * serial.h (serial_log_command): Add 'self' argument.
10799 * serial.c (serial_log_command): Add 'self' argument.
10800
10801 2014-02-19 Tom Tromey <tromey@redhat.com>
10802
10803 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10804 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10805 argument.
10806 (target_pid_to_exec_file): Add argument.
10807 * target.c (debug_to_pid_to_exec_file): Add argument.
10808 (update_current_target): Update.
10809 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10810 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10811 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10812 (linux_handle_extended_wait): Update.
10813 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10814 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10815 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10816 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10817
10818 2014-02-19 Tom Tromey <tromey@redhat.com>
10819
10820 * target.h (struct target_ops) <to_rcmd>: Add argument.
10821 (target_rcmd): Add argument.
10822 * target.c (debug_to_rcmd): Add argument.
10823 (update_current_target, do_monitor_command): Update.
10824 * remote.c (remote_rcmd): Add 'self' argument.
10825 * monitor.c (monitor_rcmd): Add 'self' argument.
10826
10827 2014-02-19 Tom Tromey <tromey@redhat.com>
10828
10829 * windows-nat.c (windows_stop): Add 'self' argument.
10830 * target.h (struct target_ops) <to_stop>: Add argument.
10831 * target.c (target_stop): Add argument.
10832 (debug_to_stop): Add argument.
10833 (update_current_target): Update.
10834 * remote.c (remote_stop): Add 'self' argument.
10835 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10836 (gdbsim_cntrl_c): Update.
10837 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10838 * procfs.c (procfs_stop): Add 'self' argument.
10839 * nto-procfs.c (procfs_stop): Add 'self' argument.
10840 * monitor.c (monitor_stop): Add 'self' argument.
10841 (monitor_open): Update.
10842 * linux-nat.c (linux_nat_stop): Add argument.
10843 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10844 * gnu-nat.c (gnu_stop): Add 'self' argument.
10845 * darwin-nat.c (darwin_stop): Add 'self' argument.
10846
10847 2014-02-19 Tom Tromey <tromey@redhat.com>
10848
10849 * target.h (struct target_ops) <to_thread_name>: Add argument.
10850 * target.c (target_thread_name): Add argument.
10851 (update_current_target): Update.
10852 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10853
10854 2014-02-19 Tom Tromey <tromey@redhat.com>
10855
10856 * target.h (struct target_ops) <to_extra_thread_info>: Add
10857 argument.
10858 (target_extra_thread_info): Add argument.
10859 * target.c (update_current_target): Update.
10860 * remote.c (remote_threads_extra_info): Add 'self' argument.
10861 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10862 argument.
10863 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10864 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10865 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10866 argument.
10867 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10868 argument.
10869 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10870 argument.
10871 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10872 argument.
10873
10874 2014-02-19 Tom Tromey <tromey@redhat.com>
10875
10876 * target.h (struct target_ops) <to_program_signals>: Add argument.
10877 * target.c (target_program_signals): Add argument.
10878 * remote.c (remote_program_signals): Add 'self' argument.
10879
10880 2014-02-19 Tom Tromey <tromey@redhat.com>
10881
10882 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10883 * target.c (target_pass_signals): Add argument.
10884 * remote.c (remote_pass_signals): Add 'self' argument.
10885 (remote_start_remote): Update.
10886 * procfs.c (procfs_pass_signals): Add 'self' argument.
10887 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10888 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10889 (linux_nat_create_inferior, linux_nat_attach): Update.
10890
10891 2014-02-19 Tom Tromey <tromey@redhat.com>
10892
10893 * windows-nat.c (windows_can_run): Add 'self' argument.
10894 * target.h (struct target_ops) <to_can_run>: Add argument.
10895 (target_can_run): Add argument.
10896 * target.c (debug_to_can_run): Add argument.
10897 (update_current_target): Update.
10898 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10899 * inf-child.c (inf_child_can_run): Add 'self' argument.
10900 * go32-nat.c (go32_can_run): Add 'self' argument.
10901
10902 2014-02-19 Tom Tromey <tromey@redhat.com>
10903
10904 * target.h (struct target_ops) <to_has_exited>: Add argument.
10905 (target_has_exited): Add argument.
10906 * target.c (debug_to_has_exited): Add argument.
10907 (update_current_target): Update.
10908
10909 2014-02-19 Tom Tromey <tromey@redhat.com>
10910
10911 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10912 argument.
10913 (target_set_syscall_catchpoint): Add argument.
10914 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10915 argument.
10916 * target.c (update_current_target): Update.
10917
10918 2014-02-19 Tom Tromey <tromey@redhat.com>
10919
10920 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10921 argument.
10922 (target_remove_exec_catchpoint): Add argument.
10923 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10924 (update_current_target): Update.
10925 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10926 argument.
10927
10928 2014-02-19 Tom Tromey <tromey@redhat.com>
10929
10930 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10931 argument.
10932 (target_insert_exec_catchpoint): Add argument.
10933 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10934 (update_current_target): Update.
10935 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10936 argument.
10937
10938 2014-02-19 Tom Tromey <tromey@redhat.com>
10939
10940 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10941 argument.
10942 (target_remove_vfork_catchpoint): Add argument.
10943 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10944 (update_current_target): Update.
10945 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10946 argument.
10947
10948 2014-02-19 Tom Tromey <tromey@redhat.com>
10949
10950 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10951 argument.
10952 (target_insert_vfork_catchpoint): Add argument.
10953 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10954 (update_current_target): Update.
10955 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10956 argument.
10957
10958 2014-02-19 Tom Tromey <tromey@redhat.com>
10959
10960 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10961 argument.
10962 (target_remove_fork_catchpoint): Add argument.
10963 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10964 (update_current_target): Update.
10965 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10966 argument.
10967
10968 2014-02-19 Tom Tromey <tromey@redhat.com>
10969
10970 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10971 argument.
10972 (target_insert_fork_catchpoint): Add argument.
10973 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10974 (update_current_target): Update.
10975 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10976 argument.
10977
10978 2014-02-19 Tom Tromey <tromey@redhat.com>
10979
10980 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10981 argument.
10982 (target_post_startup_inferior): Add argument.
10983 * target.c (debug_to_post_startup_inferior): Add argument.
10984 (update_current_target): Update.
10985 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10986 argument.
10987 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10988 argument.
10989 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10990 argument.
10991 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10992 argument.
10993 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10994 'self' argument.
10995 (super_post_startup_inferior): Likewise.
10996 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10997 'self' argument.
10998 (super_post_startup_inferior): Likewise.
10999 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11000 Add 'self' argument.
11001 (super_post_startup_inferior): Likewise.
11002
11003 2014-02-19 Tom Tromey <tromey@redhat.com>
11004
11005 * target.h (struct target_ops) <to_load>: Add argument.
11006 * target.c (target_load): Add argument.
11007 (debug_to_load): Add argument.
11008 (update_current_target): Update.
11009 * remote.c (remote_load): Add 'self' argument.
11010 * remote-sim.c (gdbsim_load): Add 'self' argument.
11011 * remote-mips.c (mips_load): Add 'self' argument.
11012 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11013 * monitor.c (monitor_load): Add 'self' argument.
11014 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11015
11016 2014-02-19 Tom Tromey <tromey@redhat.com>
11017
11018 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11019 (target_terminal_info): Add argument.
11020 * target.c (debug_to_terminal_info): Add argument.
11021 (default_terminal_info): Likewise.
11022 * inflow.c (child_terminal_info): Add 'self' argument.
11023 * inferior.h (child_terminal_info): Add 'self' argument.
11024 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11025
11026 2014-02-19 Tom Tromey <tromey@redhat.com>
11027
11028 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11029 argument.
11030 (target_terminal_save_ours): Add argument.
11031 * target.c (debug_to_terminal_save_ours): Add argument.
11032 (update_current_target): Update.
11033 * inflow.c (terminal_save_ours): Add 'self' argument.
11034 * inferior.h (terminal_save_ours): Add 'self' argument.
11035
11036 2014-02-19 Tom Tromey <tromey@redhat.com>
11037
11038 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11039 (target_terminal_ours): Add argument.
11040 * target.c (debug_to_terminal_ours): Add argument.
11041 (update_current_target): Update.
11042 * remote.c (remote_terminal_ours): Add 'self' argument.
11043 (remote_close): Update.
11044 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11045 * inflow.c (terminal_ours): Add 'self' argument.
11046 * inferior.h (terminal_ours): Add 'self' argument.
11047 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11048
11049 2014-02-19 Pedro Alves <palves@redhat.com>
11050 Tom Tromey <tromey@redhat.com>
11051
11052 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11053 argument.
11054 (target_terminal_ours_for_output): Add argument.
11055 * target.c (debug_to_terminal_ours_for_output): Add argument.
11056 (update_current_target): Update.
11057 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11058 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11059 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11060
11061 2014-02-19 Tom Tromey <tromey@redhat.com>
11062
11063 * target.h (struct target_ops) <to_terminal_inferior>: Add
11064 argument.
11065 * target.c (target_terminal_inferior): Add argument.
11066 (update_current_target): Update.
11067 * remote.c (remote_terminal_inferior): Add 'self' argument.
11068 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11069 * inflow.c (terminal_inferior): Add 'self' argument.
11070 * inferior.h (terminal_inferior): Add 'self' argument.
11071 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11072 (go32_terminal_inferior): Add 'self' argument.
11073
11074 2014-02-19 Tom Tromey <tromey@redhat.com>
11075
11076 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11077 (target_terminal_init): Add argument.
11078 * target.c (debug_to_terminal_init): Add argument.
11079 (update_current_target): Update.
11080 * inflow.c (terminal_init_inferior): Add 'self' argument.
11081 * inferior.h (terminal_init_inferior): Add 'self' argument.
11082 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11083 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11084
11085 2014-02-19 Tom Tromey <tromey@redhat.com>
11086
11087 * target.h (struct target_ops)
11088 <to_can_accel_watchpoint_condition>: Add argument.
11089 (target_can_accel_watchpoint_condition): Add argument.
11090 * target.c (debug_to_can_accel_watchpoint_condition): Add
11091 argument.
11092 (update_current_target): Update.
11093 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11094 'self' argument.
11095
11096 2014-02-19 Tom Tromey <tromey@redhat.com>
11097
11098 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11099 Add argument.
11100 (target_region_ok_for_hw_watchpoint): Add argument.
11101 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11102 (default_region_ok_for_hw_watchpoint): Add argument.
11103 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11104 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11105 argument.
11106 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11107 argument.
11108 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11109 argument.
11110 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11111 'self' argument.
11112 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11113 'self' argument.
11114 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11115 'self' argument.
11116 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11117 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11118 'self' argument.
11119 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11120 Add 'self' argument.
11121
11122 2014-02-19 Tom Tromey <tromey@redhat.com>
11123
11124 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11125 argument.
11126 (target_insert_watchpoint): Add argument.
11127 * target.c (debug_to_insert_watchpoint): Add argument.
11128 (update_current_target): Update.
11129 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11130 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11131 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11132 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11133 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11134 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11135 argument.
11136 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11137 (procfs_insert_hw_watchpoint): Add 'self' argument.
11138 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11139 argument.
11140 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11141 argument.
11142 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11143 argument.
11144 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11145 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11146 argument.
11147 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11148 'self' argument.
11149
11150 2014-02-19 Tom Tromey <tromey@redhat.com>
11151
11152 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11153 argument.
11154 (target_remove_watchpoint): Add argument.
11155 * target.c (debug_to_remove_watchpoint): Add argument.
11156 (update_current_target): Update.
11157 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11158 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11159 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11160 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11161 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11162 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11163 argument.
11164 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11165 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11166 argument.
11167 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11168 argument.
11169 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11170 argument.
11171 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11172 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11173 argument.
11174 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11175 'self' argument.
11176
11177 2014-02-19 Tom Tromey <tromey@redhat.com>
11178
11179 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11180 argument.
11181 (target_remove_hw_breakpoint): Add argument.
11182 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11183 (update_current_target): Update.
11184 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11185 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11186 argument.
11187 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11188 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11189 argument.
11190 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11191 'self' argument.
11192
11193 2014-02-19 Tom Tromey <tromey@redhat.com>
11194
11195 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11196 argument.
11197 (target_insert_hw_breakpoint): Add argument.
11198 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11199 (update_current_target): Update.
11200 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11201 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11202 argument.
11203 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11204 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11205 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11206 argument.
11207 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11208 'self' argument.
11209
11210 2014-02-19 Tom Tromey <tromey@redhat.com>
11211
11212 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11213 argument.
11214 (target_can_use_hardware_watchpoint): Add argument.
11215 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11216 (update_current_target): Update.
11217 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11218 argument.
11219 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11220 argument.
11221 * remote.c (remote_check_watch_resources): Add 'self' argument.
11222 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11223 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11224 argument.
11225 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11226 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11227 argument.
11228 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11229 argument.
11230 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11231 argument.
11232 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11233 argument.
11234 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11235 argument.
11236 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11237 argument.
11238 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11239 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11240 argument.
11241 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11242 'self' argument.
11243
11244 2014-02-19 Tom Tromey <tromey@redhat.com>
11245
11246 * target.h (struct target_ops) <to_post_attach>: Add argument.
11247 (target_post_attach): Add argument.
11248 * target.c (debug_to_post_attach): Add argument.
11249 (update_current_target): Update.
11250 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11251 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11252 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11253 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11254 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11255
11256 2014-02-19 Tom Tromey <tromey@redhat.com>
11257
11258 * windows-nat.c (windows_close): Add 'self' argument.
11259 * tracepoint.c (tfile_close): Add 'self' argument.
11260 * target.h (struct target_ops) <to_close>: Add argument.
11261 * target.c (target_close): Add argument.
11262 (update_current_target): Update.
11263 * remote.c (remote_close): Add 'self' argument.
11264 * remote-sim.c (gdbsim_close): Add 'self' argument.
11265 * remote-mips.c (mips_close): Add 'self' argument.
11266 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11267 * record-full.c (record_full_close): Add 'self' argument.
11268 * record-btrace.c (record_btrace_close): Add 'self' argument.
11269 * monitor.h (monitor_close): Add 'self' argument.
11270 * monitor.c (monitor_close): Add 'self' argument.
11271 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11272 * linux-nat.c (linux_nat_close): Add argument.
11273 * go32-nat.c (go32_close): Add 'self' argument.
11274 * exec.c (exec_close_1): Add 'self' argument.
11275 * ctf.c (ctf_close): Add 'self' argument.
11276 * corelow.c (core_close): Add 'self' argument.
11277 (core_close_cleanup): Update.
11278 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11279 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11280
11281 2014-02-19 Tom Tromey <tromey@redhat.com>
11282
11283 * remote.c (remote_load): New function.
11284 (init_remote_ops): Use it.
11285
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11289 argument.
11290 * common/linux-btrace.h (linux_supports_btrace): Update.
11291 * remote.c (remote_supports_btrace): Add "self" argument.
11292 * target-delegates.c: Rebuild.
11293 * target.c (target_supports_btrace): Remove.
11294 * target.h (struct target_ops) <to_supports_btrace>: Add
11295 target_ops argument.
11296 (target_supports_btrace): New define.
11297
11298 2014-02-19 Tom Tromey <tromey@redhat.com>
11299
11300 * record-full.c (record_full_beneath_to_resume_ops)
11301 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11302 (record_full_beneath_to_wait)
11303 (record_full_beneath_to_store_registers_ops)
11304 (record_full_beneath_to_store_registers)
11305 (record_full_beneath_to_xfer_partial_ops)
11306 (record_full_beneath_to_xfer_partial)
11307 (record_full_beneath_to_insert_breakpoint_ops)
11308 (record_full_beneath_to_insert_breakpoint)
11309 (record_full_beneath_to_remove_breakpoint_ops)
11310 (record_full_beneath_to_remove_breakpoint)
11311 (record_full_beneath_to_stopped_by_watchpoint)
11312 (record_full_beneath_to_stopped_data_address)
11313 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11314 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11315 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11316 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11317 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11318 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11319 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11320 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11321 (record_full_resume, record_full_wait_1)
11322 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11323 (record_full_store_registers, record_full_xfer_partial)
11324 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11325 (record_full_async, record_full_core_xfer_partial): Use target
11326 delegation.
11327 * target-delegates.c: Rebuild.
11328 * target.c (current_xfer_partial): Remove.
11329 (update_current_target): Do not INHERIT or de_fault
11330 to_insert_breakpoint, to_remove_breakpoint,
11331 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11332 to_is_async_p, to_async. Do not set to_xfer_partial field.
11333 (default_xfer_partial): Simplify.
11334 (current_xfer_partial): Remove.
11335 (target_wait, target_resume): Simplify.
11336 (find_default_can_async_p, find_default_is_async_p): Update.
11337 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11338 to_xfer_partial, to_stopped_by_watchpoint,
11339 to_stopped_data_address.
11340 (target_store_registers): Simplify.
11341 (forward_target_remove_breakpoint)
11342 (forward_target_insert_breakpoint): Remove.
11343 (target_remove_breakpoint, target_insert_breakpoint)
11344 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11345 * target.h (struct target_ops) <to_resume, to_wait,
11346 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11347 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11348 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11349 markup.
11350 (forward_target_remove_breakpoint)
11351 (forward_target_insert_breakpoint): Remove.
11352 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11353 directly.
11354 (record_btrace_insert_breakpoint): Delegate directly.
11355
11356 2014-02-19 Tom Tromey <tromey@redhat.com>
11357
11358 PR build/7701:
11359 * target-delegates.c: New file.
11360 * target.c: Include target-delegates.c.
11361 (init_dummy_target): Call install_dummy_methods.
11362 (complete_target_initialization): Call install_delegators.
11363 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11364 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11365 * make-target-delegates: New file.
11366
11367 2014-02-19 Tom Tromey <tromey@redhat.com>
11368
11369 * record.c (find_record_target): Use find_target_at.
11370 * target.c (find_target_at): New function.
11371 * target.h (find_target_at): Declare.
11372
11373 2014-02-19 Tom Tromey <tromey@redhat.com>
11374
11375 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11376 Add 'ops' argument.
11377 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11378 'ops' argument.
11379 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11380 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11381 'ops' argument.
11382 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11383 argument.
11384 * linux-nat.c (save_sigtrap): Update.
11385 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11386 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11387 (linux_nat_close): Update.
11388 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11389 argument.
11390 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11391 argument.
11392 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11393 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11394 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11395 (tmp_to_async): Add 'ops' argument.
11396 (record_full_stopped_by_watchpoint, record_full_async)
11397 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11398 argument.
11399 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11400 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11401 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11402 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11403 (remote_is_async_p, remote_async): Add 'ops' argument.
11404 (remote_stopped_data_address): Update.
11405 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11406 * target.c (update_current_target)
11407 (find_default_can_async_p, find_default_is_async_p): Update.
11408 (init_dummy_target): Update.
11409 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11410 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11411 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11412 (target_can_async_p, target_is_async_p, target_async)
11413 (target_stopped_by_watchpoint): Update.
11414
11415 2014-02-19 Yao Qi <yao@codesourcery.com>
11416
11417 PR gdb/16220
11418 * gdbarch.sh: Remove startup_gdbarch.
11419 * gdbarch.c: Regenerated.
11420 * gdbarch.h: Likewise.
11421
11422 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11423
11424 * rl78-tdep.c (rl78_g10_register_name): New function.
11425 (rl78_return_value): Add g10 support.
11426 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11427 g10.
11428
11429 2014-02-17 Doug Evans <xdje42@gmail.com>
11430
11431 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11432 (SUBDIR_GUILE_SRCS): Ditto.
11433 (scm-gsmob.o): Ditto.
11434
11435 2014-02-17 Yao Qi <yao@codesourcery.com>
11436
11437 * gnu-nat.c (ILL_RPC): Declare defined function.
11438
11439 2014-02-17 Yao Qi <yao@codesourcery.com>
11440
11441 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11442 mach_msg_type_number_t.
11443 (gnu_write_inferior): Likewise.
11444
11445 2014-02-17 Yao Qi <yao@codesourcery.com>
11446
11447 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11448 in format string.
11449 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11450 (inf_validate_procs, inf_signal): Likewise.
11451 (S_exception_raise_request): Likewise.
11452 (do_mach_notify_dead_name): Likewise.
11453 (steal_exc_port): Likewise.
11454 (gnu_read_inferior): Change 'copy_count''s type to
11455 mach_msg_type_number_t.
11456 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11457 format string.
11458
11459 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11460
11461 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11462 flag. Adjust all users; in particular...
11463 (gnu_wait): ..., don't decrement its value in here...
11464 (gnu_create_inferior): ..., and instead set the flag in here,
11465 around the startup_inferior call, and call that one with
11466 START_INFERIOR_TRAPS_EXPECTED.
11467
11468 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11469 (ILL_RPC): ... new macro.
11470 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11471 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11472 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11473 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11474 functions with ILL_RPC macro.
11475 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11476 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11477 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11478 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11479 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11480 (S_proc_getlogin_reply, S_proc_getsid_reply)
11481 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11482 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11483 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11484 (S_proc_getnports_reply, S_proc_is_important_reply)
11485 (S_proc_get_code_reply): New stub functions, generated with
11486 ILL_RPC macro.
11487
11488 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11489 collected the type check structures.
11490
11491 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11492
11493 2014-02-14 Doug Evans <dje@google.com>
11494
11495 * target.c (target_write_partial): Fix result type.
11496
11497 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11498
11499 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11500 the proper offsets to access fpregset_t.
11501
11502 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11503
11504 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11505 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11506 * h8300-tdep.c (setmachinelist): Remove global.
11507 * hppa-tdep.c (hppa_sigtramp): Remove global.
11508 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11509 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11510 * ravenscar-thread.c (update_target_observer): Remove global.
11511 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11512
11513 2014-02-12 Tom Tromey <tromey@redhat.com>
11514
11515 * common/rsp-low.c: Update comments.
11516 * common/rsp-low.h: Update comments.
11517
11518 2014-02-12 Tom Tromey <tromey@redhat.com>
11519
11520 * common/rsp-low.c (convert_ascii_to_int): Remove.
11521 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11522
11523 2014-02-12 Tom Tromey <tromey@redhat.com>
11524
11525 * common/rsp-low.h (unhexify): Don't declare.
11526 * common/rsp-low.c (unhexify): Remove.
11527
11528 2014-02-12 Tom Tromey <tromey@redhat.com>
11529
11530 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11531 * common/rsp-low.c (convert_int_to_ascii): Remove.
11532
11533 2014-02-12 Tom Tromey <tromey@redhat.com>
11534
11535 * common/rsp-low.h (hexify): Don't declare.
11536 * common/rsp-low.c (hexify): Remove.
11537
11538 2014-02-12 Tom Tromey <tromey@redhat.com>
11539
11540 * common/rsp-low.c (hexify): Never take strlen of argument.
11541
11542 2014-02-12 Tom Tromey <tromey@redhat.com>
11543
11544 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11545 * remote.c (extended_remote_run, remote_rcmd)
11546 (remote_download_trace_state_variable, remote_save_trace_data)
11547 (remote_set_trace_notes): Update.
11548 * tracepoint.c (encode_source_string, tfile_write_status)
11549 (tfile_write_uploaded_tsv): Update.
11550
11551 2014-02-12 Tom Tromey <tromey@redhat.com>
11552
11553 * tracepoint.c: Include rsp-low.h.
11554 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11555 * remote.c: Include rsp-low.h.
11556 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11557 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11558 (remote_unescape_input): Move to common/rsp-low.c.
11559 * common/rsp-low.h: New file.
11560 * common/rsp-low.c: New file.
11561 * Makefile.in (SFILES): Add common/rsp-low.c.
11562 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11563 (COMMON_OBS): Add rsp-low.o.
11564 (rsp-low.o): New target.
11565
11566 2014-02-12 Tom Tromey <tromey@redhat.com>
11567
11568 * utils.h: Include print-utils.h.
11569 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11570 (int_string, core_addr_to_string, core_addr_to_string_nz)
11571 (hex_string, hex_string_custom): Don't declare.
11572 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11573 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11574 (hex_string_custom, int_string, core_addr_to_string)
11575 (core_addr_to_string_nz, host_address_to_string): Move to
11576 common/print-utils.c.
11577 * common/print-utils.h: New file.
11578 * common/print-utils.c: New file
11579 * Makefile.in (SFILES): Add common/print-utils.c.
11580 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11581 (COMMON_OBS): Add print-utils.o.
11582 (print-utils.o): New target.
11583
11584 2014-02-12 Tom Tromey <tromey@redhat.com>
11585
11586 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11587
11588 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11589
11590 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11591
11592 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11593
11594 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11595 if a PT_IO ptrace request returns sucessfully but indicates that 0
11596 bytes were transferred.
11597
11598 2014-02-12 Pedro Alves <palves@redhat.com>
11599 Kevin Buettner <kevinb@redhat.com>
11600
11601 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11602 TYPE_INSTANCE_FLAG_CODE_SPACE.
11603
11604 2014-02-12 Pedro Alves <palves@redhat.com>
11605
11606 * h8300-tdep.c (pseudo_from_raw_register)
11607 (raw_from_pseudo_register): New functions.
11608 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11609 them.
11610
11611 2014-02-12 Pedro Alves <palves@redhat.com>
11612
11613 * h8300-tdep.c (h8300_register_sim_regno): New function.
11614 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11615 gdbarch_register_sim_regno hook.
11616
11617 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11618
11619 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11620
11621 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11622
11623 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11624
11625 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11626
11627 * obsd-tdep.h (obsd_init_abi): New prototype.
11628 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11629 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11630 (obsd_init_abi): New functions.
11631 * i386obsd-tdep.c: Include "obsd-tdep.h".
11632 (i386obsd_init_abi): Call obsd_init_abi.
11633 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11634 (amd64obsd_init_abi): Call obsd_init_abi.
11635 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11636 obsd-tdep.c to gdb_target_obs.
11637
11638 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11639
11640 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11641 double float arguments to 16-byte in the argument slots.
11642
11643 2014-02-11 Doug Evans <xdje42@gmail.com>
11644
11645 * configure.ac: Don't crash if pkg-config is not found and guile
11646 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11647 in guile checks.
11648 * configure: Regenerate.
11649
11650 2014-02-11 Yao Qi <yao@codesourcery.com>
11651
11652 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11653 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11654 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11655 * gnu-nat.c (gnu_xfer_memory): Likewise.
11656 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11657 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11658 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11659 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11660
11661 2014-02-11 Yao Qi <yao@codesourcery.com>
11662
11663 * target.h (enum target_xfer_error): Rename to ...
11664 (enum target_xfer_status): ... it. New. All users updated.
11665 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11666 New.
11667 (TARGET_XFER_STATUS_ERROR_P): New macro.
11668 (target_xfer_error_to_string): Remove declaration.
11669 (target_xfer_status_to_string): Declare.
11670 (target_xfer_partial_ftype): Adjust it.
11671 (struct target_ops) <to_xfer_partial>: Return
11672 target_xfer_status. Add argument xfered_len. Update
11673 comments.
11674 * target.c (target_xfer_error_to_string): Rename to ...
11675 (target_xfer_status_to_string): ... it. New. All callers
11676 updated.
11677 (target_read_live_memory): Likewise. Call target_xfer_partial
11678 instead of target_read.
11679 (memory_xfer_live_readonly_partial): Return
11680 target_xfer_status. Add argument xfered_len.
11681 (raw_memory_xfer_partial): Likewise.
11682 (memory_xfer_partial_1): Likewise.
11683 (memory_xfer_partial): Likewise.
11684 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11685 properly. Update debug message.
11686 (default_xfer_partial, current_xfer_partial): Likewise.
11687 (target_write_partial): Likewise.
11688 (target_read_partial): Likewise. All callers updated.
11689 (read_whatever_is_readable): Likewise.
11690 (target_write_with_progress): Likewise.
11691 (target_read_alloc_1): Likewise.
11692
11693 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11694 * auxv.c (procfs_xfer_auxv): Likewise.
11695 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11696 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11697 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11698 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11699 * corefile.c (read_memory): Adjust.
11700 * corelow.c (core_xfer_partial): Likewise.
11701 * ctf.c (ctf_xfer_partial): Likewise.
11702 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11703 updated.
11704 (darwin_xfer_partial): Likewise.
11705 * exec.c (section_table_xfer_memory_partial): Likewise. All
11706 callers updated.
11707 (exec_xfer_partial): Likewise.
11708 * exec.h (section_table_xfer_memory_partial): Update
11709 declaration.
11710 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11711 negative.
11712 (gnu_xfer_partial): Likewise.
11713 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11714 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11715 (ia64_hpux_xfer_solib_got): Likewise.
11716 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11717 type of 'partial_len' to ULONGEST.
11718 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11719 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11720 (linux_nat_xfer_partial): Likewise.
11721 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11722 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11723 * monitor.c (monitor_xfer_memory): Likewise.
11724 (monitor_xfer_partial): Likewise.
11725 * procfs.c (procfs_xfer_partial): Likewise.
11726 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11727 * record-full.c (record_full_xfer_partial): Likewise.
11728 (record_full_core_xfer_partial): Likewise.
11729 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11730 (gdbsim_xfer_partial): Likewise.
11731 * remote.c (remote_write_bytes_aux): Likewise. All callers
11732 updated.
11733 (remote_write_bytes, remote_read_bytes): Likewise. All
11734 callers updated.
11735 (remote_flash_erase): Likewise. All callers updated.
11736 (remote_write_qxfer): Likewise. All callers updated.
11737 (remote_read_qxfer): Likewise. All callers updated.
11738 (remote_xfer_partial): Likewise.
11739 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11740 (rs6000_xfer_shared_libraries): Likewise.
11741 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11742 (sol_thread_xfer_partial): Likewise.
11743 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11744 (sparc_xfer_partial): Likewise.
11745 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11746 updated.
11747 (spu_xfer_partial): Likewise.
11748 * spu-multiarch.c (spu_xfer_partial): Likewise.
11749 * tracepoint.c (tfile_xfer_partial): Likewise.
11750 * windows-nat.c (windows_xfer_memory): Likewise.
11751 (windows_xfer_shared_libraries): Likewise.
11752 (windows_xfer_partial): Likewise.
11753 * valprint.c: Replace 'target_xfer_error' with
11754 'target_xfer_status' in comments.
11755
11756 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11757
11758 Checked in by Joel Brobecker <brobecker@adacore.com>.
11759 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11760
11761 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11762
11763 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11764 function parameters.
11765
11766 2014-02-10 Will Newton <will.newton@linaro.org>
11767
11768 * elfread.c (elf_rel_plt_read): Look for a .got section if
11769 looking up .got.plt fails.
11770 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11771 on address passed to elf_gnu_ifunc_record_cache.
11772 (elf_gnu_ifunc_resolve_addr): Likewise.
11773 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11774
11775 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11776
11777 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11778 (X_RETTURN): New macro.
11779 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11780
11781 * sparc64-tdep.c (sparc64_init_abi): Hook
11782 sparc_in_function_epilogue_p.
11783
11784 2014-02-10 Gary Benson <gbenson@redhat.com>
11785
11786 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11787 Rename name_matcher to symbol_matcher.
11788
11789 2014-02-10 Gary Benson <gbenson@redhat.com>
11790
11791 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11792 Use expand_symtabs_file_matcher_ftype and
11793 expand_symtabs_symbol_matcher_ftype.
11794
11795 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11796
11797 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11798 (struct ada_symbol_cache): New.
11799 (ada_free_symbol_cache): Forward declare.
11800 (struct ada_pspace_data): New.
11801 (ada_pspace_data_handle): New static global.
11802 (get_ada_pspace_data, ada_pspace_data_cleanup)
11803 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11804 (cache_space, cache): Delete, now folded inside struct
11805 ada_pspace_data.
11806 (ada_get_symbol_cache): New function.
11807 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11808 implementation.
11809 (_initialize_ada_language): Remove initialization of cache_space.
11810 Move call to observer_attach_inferior_exit up, grouping it
11811 with the other observer registrations inside this function.
11812 Rename command to be more general. Add call to
11813 register_program_space_data_with_cleanup.
11814
11815 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11816
11817 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11818 ada_new_objfile_observer.
11819 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11820 (_initialize_tasks): Update uses of ada_new_objfile_observer
11821 and ada_tasks_normal_stop_observer.
11822
11823 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11824
11825 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11826 returned by the 'Length attribute to integer.
11827
11828 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11829
11830 * ada-lang.c (_initialize_ada_language): Initialize
11831 cache_space obstack.
11832
11833 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11834
11835 * ada-lang.c (HASH_SIZE): New macro.
11836 (struct cache_entry): New type.
11837 (cache_space, cache): New static globals.
11838 (ada_clear_symbol_cache, find_entry): New functions.
11839 (lookup_cached_symbol, cache_symbol): Implement.
11840 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11841 (_initialize_ada_language): Attach ada_new_objfile_observer
11842 and ada_free_objfile_observer.
11843
11844 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11845
11846 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11847 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11848 struct block * parameter.
11849 (ada_lookup_symbol_list_worker): Constify local variable "block".
11850 Remove cast which is no longer necessary.
11851
11852 2014-02-10 Doug Evans <xdje42@gmail.com>
11853
11854 Add Guile as an extension language.
11855 * NEWS: Mention Guile scripting.
11856 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11857 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11858 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11859 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11860 (CLIBS): Add GUILE_LIBS.
11861 (install-guile): New rule.
11862 (guile.o): New rule.
11863 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11864 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11865 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11866 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11867 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11868 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11869 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11870 * configure.ac: New option --with-guile.
11871 * configure: Regenerate.
11872 * config.in: Regenerate.
11873 * auto-load.c: Remove #include "python/python.h". Add #include
11874 "gdb/section-scripts.h".
11875 (source_section_scripts): Handle Guile scripts.
11876 (_initialize_auto_load): Add name of Guile objfile script to
11877 scripts-directory help text.
11878 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11879 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11880 (struct breakpoint): New member scm_bp_object.
11881 * defs.h (enum command_control_type): New value guile_control.
11882 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11883 "extension.h".
11884 (show_user): Update comment.
11885 (_initialize_cli_cmds): Update help text for "show user". Update help
11886 text for max-user-call-depth.
11887 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11888 "extension.h".
11889 (multi_line_command_p): Add guile_control.
11890 (print_command_lines): Handle guile_control.
11891 (execute_control_command, recurse_read_control_structure): Ditto.
11892 (process_next_line): Recognize "guile" commands.
11893 * disasm.c (gdb_disassemble_info): Make non-static.
11894 * disasm.h: #include "dis-asm.h".
11895 (struct gdbarch): Add forward decl.
11896 (gdb_disassemble_info): Declare.
11897 * extension.c: #include "guile/guile.h".
11898 (extension_languages): Add guile.
11899 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11900 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11901 * gdbtypes.c (get_unsigned_type_max): New function.
11902 (get_signed_type_minmax): New function.
11903 * gdbtypes.h (get_unsigned_type_max): Declare.
11904 (get_signed_type_minmax): Declare.
11905 * guile/README: New file.
11906 * guile/guile-internal.h: New file.
11907 * guile/guile.c: New file.
11908 * guile/guile.h: New file.
11909 * guile/scm-arch.c: New file.
11910 * guile/scm-auto-load.c: New file.
11911 * guile/scm-block.c: New file.
11912 * guile/scm-breakpoint.c: New file.
11913 * guile/scm-disasm.c: New file.
11914 * guile/scm-exception.c: New file.
11915 * guile/scm-frame.c: New file.
11916 * guile/scm-gsmob.c: New file.
11917 * guile/scm-iterator.c: New file.
11918 * guile/scm-lazy-string.c: New file.
11919 * guile/scm-math.c: New file.
11920 * guile/scm-objfile.c: New file.
11921 * guile/scm-ports.c: New file.
11922 * guile/scm-pretty-print.c: New file.
11923 * guile/scm-safe-call.c: New file.
11924 * guile/scm-string.c: New file.
11925 * guile/scm-symbol.c: New file.
11926 * guile/scm-symtab.c: New file.
11927 * guile/scm-type.c: New file.
11928 * guile/scm-utils.c: New file.
11929 * guile/scm-value.c: New file.
11930 * guile/lib/gdb.scm: New file.
11931 * guile/lib/gdb/boot.scm: New file.
11932 * guile/lib/gdb/experimental.scm: New file.
11933 * guile/lib/gdb/init.scm: New file.
11934 * guile/lib/gdb/iterator.scm: New file.
11935 * guile/lib/gdb/printing.scm: New file.
11936 * guile/lib/gdb/types.scm: New file.
11937 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11938 (VPATH): Add $(GUILE_SRCDIR).
11939 (GUILE_DIR): New variable.
11940 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11941 (all): Add stamp-guile dependency.
11942 (stamp-guile): New rule.
11943 (clean-guile, install-guile, uninstall-guile): New rules.
11944 (install-only): Add install-guile dependency.
11945 (uninstall): Add uninstall-guile dependency.
11946 (clean): Add clean-guile dependency.
11947
11948 2014-02-09 Doug Evans <xdje42@gmail.com>
11949
11950 Revert this patch (which I approved, mea culpa).
11951
11952 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11953
11954 * Makefile.in (all-lib): Remove.
11955 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11956
11957 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11958
11959 Fix Python stack corruption.
11960 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11961 gdb_py_longest.
11962
11963 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11964
11965 * Makefile.in (all-lib): Remove.
11966 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11967
11968 2014-02-07 Doug Evans <dje@google.com>
11969
11970 * extension-priv.h (extension_language_script_ops): Add comment.
11971 (extension_language_ops): Add comment.
11972 (active_ext_lang_state): Fix typo in comment.
11973
11974 2014-02-07 Pedro Alves <palves@redhat.com>
11975
11976 PR breakpoints/16292
11977 * infrun.c (handle_signal_stop) <signal arrives while stepping
11978 over a breakpoint>: Switch back to the stepping thread.
11979
11980 2014-02-07 Yao Qi <yao@codesourcery.com>
11981
11982 * target.c (target_xfer_partial): Return zero if LEN is zero.
11983
11984 2014-02-07 Yao Qi <yao@codesourcery.com>
11985
11986 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11987 (ld_so_xfer_auxv): Likewise.
11988 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11989 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11990 * corelow.c (core_xfer_partial): Likewise.
11991 * ctf.c (ctf_xfer_partial): Likewise.
11992 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11993 (darwin_xfer_partial): Likewise.
11994 * exec.c (exec_xfer_partial): Likewise.
11995 * gnu-nat.c (gnu_xfer_partial): Likewise.
11996 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11997 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11998 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11999 * linux-nat.c (linux_xfer_siginfo): Likewise.
12000 (linux_proc_xfer_spu): Likewise.
12001 * procfs.c (procfs_xfer_partial): Likewise.
12002 * record-full.c (record_full_xfer_partial): Likewise.
12003 (record_full_core_xfer_partial): Likewise.
12004 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12005 * remote.c (remote_write_qxfer): Likewise.
12006 (remote_write_qxfer, remote_read_qxfer): Likewise.
12007 (remote_xfer_partial): Likewise.
12008 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12009 (rs6000_xfer_shared_libraries): Likewise.
12010 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12011 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12012 (spu_xfer_partial): Likewise.
12013 * target.c (memory_xfer_partial_1): Likewise.
12014 * tracepoint.c (tfile_xfer_partial): Likewise.
12015 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12016 (windows_xfer_partial): Likewise.
12017
12018 2014-02-07 Yao Qi <yao@codesourcery.com>
12019
12020 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12021 comments.
12022 (core_xfer_shared_libraries_aix): Likewise.
12023 * gdbarch.c, gdbarch.h: Regenerated.
12024 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12025 ULONGEST. Change 'len_avail' type to ULONGEST.
12026 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12027 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12028 declaration.
12029 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12030
12031 2014-02-07 Yao Qi <yao@codesourcery.com>
12032
12033 * corefile.c (memory_error): Get 'exception' from ERR and pass
12034 'exception' to throw_error.
12035
12036 2014-02-06 Doug Evans <xdje42@gmail.com>
12037
12038 * configure.ac (libpython checking): Remove all but python.o from
12039 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12040 * configure: Regenerate.
12041
12042 * Makefile.in (SFILES): Add extension.c.
12043 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12044 (COMMON_OBS): Add extension.o.
12045 * extension.h: New file.
12046 * extension-priv.h: New file.
12047 * extension.c: New file.
12048
12049 * python/python-internal.h: #include "extension.h".
12050 (gdbpy_auto_load_enabled): Declare.
12051 (gdbpy_apply_val_pretty_printer): Declare.
12052 (gdbpy_apply_frame_filter): Declare.
12053 (gdbpy_preserve_values): Declare.
12054 (gdbpy_breakpoint_cond_says_stop): Declare.
12055 (gdbpy_breakpoint_has_cond): Declare.
12056 (void source_python_script_for_objfile): Delete.
12057 * python/python.c: #include "extension-priv.h".
12058 Delete inclusion of "observer.h".
12059 (extension_language_python): Moved here and renamed from
12060 script_language_python in py-auto-load.c.
12061 Redefined to be of type extension_language_defn.
12062 (python_extension_script_ops): New global.
12063 (python_extension_ops): New global.
12064 (struct python_env): New member previous_active.
12065 (restore_python_env): Call restore_active_ext_lang.
12066 (ensure_python_env): Call set_active_ext_lang.
12067 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12068 New arg extlang.
12069 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12070 New arg extlang.
12071 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12072 New arg extlang.
12073 (gdbpy_eval_from_control_command): Renamed from
12074 eval_python_from_control_command, made static. New arg extlang.
12075 (gdbpy_source_script) Renamed from source_python_script, made static.
12076 New arg extlang.
12077 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12078 result to int. New arg extlang.
12079 (gdbpy_source_objfile_script): Renamed from
12080 source_python_script_for_objfile, made static. New arg extlang.
12081 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12082 static. New args extlang, extlang_printers. Change result type to
12083 "void".
12084 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12085 static. New arg extlang. Rename arg printers to extlang_printers
12086 and change type to ext_lang_type_printers *.
12087 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12088 static. Replace argument arg with extlang, extlang_printers.
12089 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12090 (!HAVE_PYTHON, source_python_script): Delete.
12091 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12092 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12093 (!HAVE_PYTHON, start_type_printers): Delete.
12094 (!HAVE_PYTHON, apply_type_printers): Delete.
12095 (!HAVE_PYTHON, free_type_printers): Delete.
12096 (_initialize_python): Delete call to observer_attach_before_prompt.
12097 (finalize_python): Set/restore active extension language.
12098 (gdbpy_finish_initialization) Renamed from
12099 finish_python_initialization, made static. New arg extlang.
12100 (gdbpy_initialized): New function.
12101 * python/python.h: #include "extension.h". Delete #include
12102 "value.h", "mi/mi-cmds.h".
12103 (extension_language_python): Declare.
12104 (GDBPY_AUTO_FILE_NAME): Delete.
12105 (enum py_bt_status): Moved to extension.h and renamed to
12106 ext_lang_bt_status.
12107 (enum frame_filter_flags): Moved to extension.h.
12108 (enum py_frame_args): Moved to extension.h and renamed to
12109 ext_lang_frame_args.
12110 (finish_python_initialization): Delete.
12111 (eval_python_from_control_command): Delete.
12112 (source_python_script): Delete.
12113 (apply_val_pretty_printer): Delete.
12114 (apply_frame_filter): Delete.
12115 (preserve_python_values): Delete.
12116 (gdbpy_script_language_defn): Delete.
12117 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12118 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12119
12120 * auto-load.c: #include "extension.h".
12121 (GDB_AUTO_FILE_NAME): Delete.
12122 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12123 (script_language_gdb): Delete, moved to extension.c and renamed to
12124 extension_language_gdb.
12125 (source_gdb_script_for_objfile): Delete.
12126 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12127 (loaded_script): Change type of language member to
12128 struct extension_language_defn *.
12129 (init_loaded_scripts_info): Initialize
12130 unsupported_script_warning_printed.
12131 (maybe_add_script): Make static. Change type of language arg to
12132 struct extension_language_defn *.
12133 (clear_section_scripts): Reset unsupported_script_warning_printed.
12134 (auto_load_objfile_script_1): Rewrite to use extension language API.
12135 (auto_load_objfile_script): Make public. Remove support-compiled-in
12136 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12137 (source_section_scripts): Rewrite to use extension language API.
12138 (load_auto_scripts_for_objfile): Rewrite to use
12139 auto_load_scripts_for_objfile.
12140 (collect_matching_scripts_data): Change type of language member to
12141 struct extension_language_defn *.
12142 (auto_load_info_scripts): Change type of language arg to
12143 struct extension_language_defn *.
12144 (unsupported_script_warning_print): New function.
12145 (script_not_found_warning_print): Make static.
12146 (_initialize_auto_load): Rewrite construction of scripts-directory
12147 help.
12148 * auto-load.h (struct objfile): Add forward decl.
12149 (struct script_language): Delete.
12150 (struct auto_load_pspace_info): Add forward decl.
12151 (struct extension_language_defn): Add forward decl.
12152 (maybe_add_script): Delete.
12153 (auto_load_objfile_script): Declare.
12154 (script_not_found_warning_print): Delete.
12155 (auto_load_info_scripts): Update prototype.
12156 (auto_load_gdb_scripts_enabled): Declare.
12157 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12158 auto_load_python_scripts_enabled and made public.
12159 (script_language_python): Delete, moved to python.c.
12160 (gdbpy_script_language_defn): Delete.
12161 (info_auto_load_python_scripts): Update to use
12162 extension_language_python.
12163
12164 * breakpoint.c (condition_command): Replace call to
12165 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12166 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12167 with call to breakpoint_ext_lang_cond_says_stop.
12168 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12169 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12170 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12171 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12172 New arg slang.
12173 (local_setattro): Print name of extension language with existing
12174 stop condition.
12175
12176 * valprint.c (val_print, value_print): Update to call
12177 apply_ext_lang_val_pretty_printer.
12178 * cp-valprint.c (cp_print_value): Update call to
12179 apply_ext_lang_val_pretty_printer.
12180 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12181 (gdbpy_apply_val_pretty_printer): Renamed from
12182 apply_val_pretty_printer. New arg extlang.
12183 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12184
12185 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12186 extension language API.
12187 * cli/cli-script.c (execute_control_command): Update to call
12188 eval_ext_lang_from_control_command.
12189
12190 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12191 enum ext_lang_bt_status values. Update call to
12192 apply_ext_lang_frame_filter.
12193 (mi_cmd_stack_list_locals): Ditto.
12194 (mi_cmd_stack_list_args): Ditto.
12195 (mi_cmd_stack_list_variables): Ditto.
12196 * mi/mi-main.c: Delete #include "python/python-internal.h".
12197 Add #include "extension.h".
12198 (mi_cmd_list_features): Replace reference to python internal variable
12199 gdb_python_initialized with call to ext_lang_initialized_p.
12200
12201 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12202 Update to use enum ext_lang_frame_args. Update to call
12203 apply_ext_lang_frame_filter.
12204 * python/py-framefilter.c (extract_sym): Update to use enum
12205 ext_lang_bt_status.
12206 (extract_value, py_print_type, py_print_value): Ditto.
12207 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12208 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12209 (py_print_frame): Ditto.
12210 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12211 New arg extlang. Update to use enum ext_lang_bt_status.
12212
12213 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12214 finish_python_initialization. Replace with call to
12215 finish_ext_lang_initialization.
12216
12217 * typeprint.c (do_free_global_table): Update to call
12218 free_ext_lang_type_printers.
12219 (create_global_typedef_table): Update to call
12220 start_ext_lang_type_printers.
12221 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12222 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12223 (type_print_options): Change type of global_printers from "void *"
12224 to "struct ext_lang_type_printers *".
12225
12226 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12227 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12228 (gdbpy_preserve_values): Renamed from preserve_python_values.
12229 New arg extlang.
12230 (!HAVE_PYTHON, preserve_python_values): Delete.
12231
12232 * utils.c (quit_flag): Delete, moved to extension.c.
12233 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12234 extension.c.
12235
12236 * eval.c: Delete #include "python/python.h".
12237 * main.c: Delete #include "python/python.h".
12238
12239 * defs.h: Update comment.
12240
12241 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12242
12243 GDB 7.7 released.
12244
12245 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12246
12247 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12248 defined.
12249
12250 2014-02-05 Yao Qi <yao@codesourcery.com>
12251
12252 * remote.c (remote_pass_signals): Remove local 'buf' and use
12253 rs->buf.
12254 (remote_program_signals): Likewise.
12255
12256 2014-02-05 Yao Qi <yao@codesourcery.com>
12257
12258 * ctf.c: Include "inferior.h" and "gdbthread.h".
12259 (CTF_PID): A new macro.
12260 (ctf_open): Call inferior_appeared and add_thread_silent.
12261 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12262 (ctf_thread_alive): New function.
12263 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12264
12265 2014-02-05 Yao Qi <yao@codesourcery.com>
12266
12267 Revert this patch:
12268
12269 2013-05-24 Yao Qi <yao@codesourcery.com>
12270
12271 * tracepoint.c (TFILE_PID): Remove.
12272 (tfile_open): Don't add thread and inferior.
12273 (tfile_close): Don't set 'inferior_ptid'. Don't call
12274 exit_inferior_silent.
12275 (tfile_thread_alive): Remove.
12276 (init_tfile_ops): Don't set field 'to_thread_alive' of
12277 tfile_ops.
12278
12279 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12280
12281 * remote.c (remote_start_remote): Call remote_check_symbols even
12282 if only symbol-file (not file) has been given.
12283
12284 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12285
12286 * gdbarch.sh (skip_entrypoint): New callback.
12287 * gdbarch.c, gdbarch.h: Regenerate.
12288 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12289 * infrun.c (fill_in_stop_func): Likewise.
12290 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12291 (ppc_elfv2_elf_make_msymbol_special): New function.
12292 (ppc_elfv2_skip_entrypoint): Likewise.
12293 (ppc_linux_init_abi): Install them for ELFv2.
12294
12295 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12296
12297 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12298 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12299 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12300 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12301 structures returned in GPRs.
12302
12303 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12304
12305 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12306 offset to the stack parameter list for the ELFv2 ABI.
12307
12308 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12309
12310 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12311 set_gdbarch_convert_from_func_ptr_addr and
12312 set_gdbarch_elf_make_msymbol_special for ELFv1.
12313 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12314 function descriptors on ELFv1.
12315 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12316 set up r12 at function entry.
12317
12318 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12319
12320 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12321 (struct gdbarch_tdep): New member elf_abi.
12322
12323 * rs6000-tdep.c: Include "elf/ppc64.h".
12324 (rs6000_gdbarch_init): Detect ELF ABI version.
12325
12326 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12327
12328 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12329 within a register pair holding a DFP 128-bit value on little-endian.
12330 (ppc64_sysv_abi_return_value_base): Likewise.
12331 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12332 (dfp_pseudo_register_write): Likewise.
12333
12334 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12335
12336 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12337 offset on little-endian when passing _Decimal32.
12338 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12339
12340 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12341
12342 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12343 of the overlapped FP register within the VSX register on little-
12344 endian platforms.
12345 (efpr_pseudo_register_write): Likewise.
12346
12347 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12348
12349 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12350 offset on little-endian when passing small structures.
12351
12352 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12353
12354 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12355 (struct ppc64_sysv_argpos): New data structure.
12356 (ppc64_sysv_abi_push_float): Remove.
12357 (ppc64_sysv_abi_push_val): New function.
12358 (ppc64_sysv_abi_push_integer): Likewise.
12359 (ppc64_sysv_abi_push_freg): Likewise.
12360 (ppc64_sysv_abi_push_vreg): Likewise.
12361 (ppc64_sysv_abi_push_param): Likewise.
12362 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12363 (ppc64_sysv_abi_return_value_base): New function.
12364 (ppc64_sysv_abi_return_value): Refactor to use it.
12365
12366 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12367
12368 * NEWS: Document new target powerpc64le-*-linux*.
12369
12370 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12371
12372 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12373 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12374 core dumps.
12375 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12376 register set used in ELF core dumps. Add floating-point register set.
12377
12378 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12379
12380 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12381 dwarf2_to_gdb[] table using symbolic constants. Adjust
12382 penultimate entry from number representing the PC register
12383 to symbolic constant representing the MDR register. Add
12384 constant for the PC register to the end of the table.
12385
12386 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12387
12388 * bsd-kvm.c: Include <sys/param.h>
12389
12390 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12391
12392 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12393
12394 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12395
12396 * ada-lang.h (clear_ada_sym_cache): Delete.
12397
12398 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12399
12400 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12401
12402 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12403
12404 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12405 the sigreturn register save area only if the syscall is
12406 sigreturn.
12407
12408 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12409
12410 * valops.c (value_slice): Minor reformatting.
12411
12412 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12413
12414 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12415
12416 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12417
12418 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12419 New static globals.
12420 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12421 (ada_ignore_descriptive_types_p): New static global.
12422 (find_parallel_type_by_descriptive_type): Return immediately
12423 if ada_ignore_descriptive_types_p is set.
12424 (_initialize_ada_language): Register new commands "maintenance
12425 set ada", "maintenance show ada", "maintenance set ada
12426 ignore-descriptive-types" and "maintenance show ada
12427 ignore-descriptive-types".
12428 * NEWS: Add entry for new "maint ada set/show
12429 ignore-descriptive-types" commands.
12430
12431 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12432
12433 * record-btrace.c (record_btrace_close): Call btrace_teardown
12434 for all threads.
12435
12436 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12437
12438 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12439 "ui-out.h".
12440
12441 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12442
12443 * ada-typeprint (type_is_full_subrange_of_target_type):
12444 New function.
12445 (print_range): Add parameter bounds_prefered_p. If not set,
12446 try printing range types using the name of their base type.
12447 (print_range_type): Add parameter bounds_prefered_p.
12448 Use it in call to print_range.
12449 (print_array_type, ada_print_type): Update calls to print_range
12450 and print_range_type.
12451
12452 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12453
12454 * ada-typeprint.c (print_array_type, print_choices, print_range)
12455 (print_range_bound, print_dynamic_range_bound, print_range_type):
12456 Remove declaration.
12457
12458 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12459
12460 * ada-typeprint.c (print_range): Add missing empty line
12461 after local declaration.
12462
12463 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12464
12465 * ada-valprint.c (print_optional_low_bound): Get index_type's
12466 target type for as long as it is a TYPE_CODE_RANGE.
12467
12468 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12469
12470 * procfs.c (procfs_make_note_section): Remove assertion and
12471 associated comment.
12472
12473 2014-01-24 Yao Qi <yao@codesourcery.com>
12474
12475 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12476 * corelow.c (get_core_siginfo): Likewise.
12477
12478 2014-01-24 Yao Qi <yao@codesourcery.com>
12479
12480 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12481 ULONGEST. Don't check 'len' is negative.
12482 (remote_write_bytes): Change type of 'len' to ULONGEST.
12483
12484 2014-01-23 Tom Tromey <tromey@redhat.com>
12485
12486 PR python/16485:
12487 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12488 Handle exception from frame.block.
12489 (FrameVars.fetch_frame_locals): Likewise.
12490
12491 2014-01-23 Tom Tromey <tromey@redhat.com>
12492
12493 PR python/16487:
12494 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12495 on a NULL pointer. Move "goto error" to correct place.
12496
12497 2014-01-23 Tom Tromey <tromey@redhat.com>
12498
12499 PR python/16491:
12500 * python/py-framefilter.c (apply_frame_filter): Call
12501 ensure_python_env after computing gdbarch.
12502
12503 2014-01-23 Yao Qi <yao@codesourcery.com>
12504
12505 * target.c (raw_memory_xfer_partial): Change argument type
12506 from void * to gdb_byte *.
12507 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12508
12509 2014-01-22 Doug Evans <dje@google.com>
12510
12511 New gdbserver option --debug-format=timestamp.
12512 * NEWS: Mention it.
12513
12514 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12515
12516 * syscalls/s390x-linux.xml: New file.
12517 * syscalls/s390-linux.xml: New file.
12518 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12519 (XML_SYSCALL_FILENAME_S390X): Likewise.
12520 (op_svc): New enum value for SVC opcode.
12521 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12522 (s390_linux_get_syscall_number): New function.
12523 (s390_gdbarch_init): Register '*get_syscall_number' and the
12524 syscall xml file name.
12525 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12526 "s390-linux.xml" and "s390x-linux.xml".
12527 * NEWS: Announce new feature.
12528
12529 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12530
12531 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12532
12533 2014-01-22 Pedro Alves <palves@redhat.com>
12534
12535 * xtensa-config.c: Include defs.h.
12536
12537 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12538
12539 * common/common-utils.h: Add "ARI:" comment beside __func__
12540 reference.
12541
12542 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12543
12544 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12545 documentation a bit.
12546
12547 2014-01-21 Roland McGrath <mcgrathr@google.com>
12548
12549 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12550 * configure: Regenerate.
12551 * aclocal.m4: Regenerate.
12552 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12553 New substituted variables.
12554 (install-strip): New target.
12555 (INSTALL_SCRIPT): New substituted variable.
12556 (FLAGS_TO_PASS): Add it.
12557 (install-only): Use $(INSTALL_SCRIPT) rather than
12558 $(INSTALL_PROGRAM) for gcore.
12559
12560 2014-01-20 Tom Tromey <tromey@redhat.com>
12561
12562 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12563 together.
12564
12565 2014-01-20 Tom Tromey <tromey@redhat.com>
12566
12567 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12568 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12569 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12570 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12571 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12572 (struct cmd_list_element) <flags>: Remove.
12573 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12574 doc_allocated>: New fields.
12575 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12576 bitfields.
12577 * maint.c (maintenance_do_deprecate): Update.
12578 * top.c (execute_command): Update.
12579
12580 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12581
12582 * xtensa-linux-nat.c: Include asm/ptrace.h.
12583
12584 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12585
12586 * Makefile.in (SFILES): Add d-support.c.
12587 (COMMON_OBS): Add d-support.o.
12588 * d-lang.h (d_parse_symbol): Add comment, now defined in
12589 d-support.c.
12590 * d-lang.c (parse_call_convention)
12591 (parse_attributes, parse_function_types)
12592 (parse_function_args, parse_type, parse_identifier)
12593 (call_convention_p, d_parse_symbol): Move functions to ...
12594 * d-support.c: ... New file.
12595
12596 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12597
12598 * d-lang.h (d_parse_symbol): Add declaration.
12599 * d-lang.c (extract_identifiers)
12600 (extract_type_info): Remove functions.
12601 (parse_call_convention, parse_attributes)
12602 (parse_function_types, parse_function_args)
12603 (parse_type, parse_identifier, call_convention_p)
12604 (d_parse_symbol): New functions.
12605 (d_demangle): Use d_parse_symbol to demangle D symbols.
12606
12607 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12608
12609 * d-lang.h (struct builtin_d_type): New data type.
12610 (builtin_d_type): Add declaration.
12611 * d-lang.c (d_language_arch_info, build_d_types)
12612 (builtin_d_type): New functions.
12613 (enum d_primitive_types): New data type.
12614 (d_language_defn): Change c_language_arch_info to
12615 d_language_arch_info.
12616 (d_type_data): New static variable.
12617 (_initialize_d_language): Initialize d_type_data.
12618
12619 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12620
12621 * d-lang.h (d_main_name): Add declaration.
12622 * d-lang.c (d_main_name): New function.
12623 * symtab.c (find_main_name): Add call to d_main_name.
12624
12625 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12626
12627 * d-lang.c (d_language_defn): Change macro_expansion_c to
12628 macro_expansion_no.
12629
12630 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12631
12632 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12633
12634 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12635
12636 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12637 gdb_exception" declaration.
12638 * remote.c (getpkt_or_notif_sane): Likewise.
12639
12640 2014-01-17 Doug Evans <dje@google.com>
12641
12642 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12643 function, contents of dirnames_to_char_ptr_vec_append moved here.
12644 (delim_string_to_char_ptr_vec): New function.
12645 (dirnames_to_char_ptr_vec_append): Rewrite.
12646 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12647
12648 2014-01-17 Doug Evans <dje@google.com>
12649
12650 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12651 and moved here ...
12652 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12653 #include "common-utils.h".
12654 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12655 * common/vec.h (VEC_ASSERT_PASS): Update.
12656 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12657 (MACH_CHECK_ERROR): Update.
12658
12659 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12660
12661 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12662 comments.
12663 * gdbarch.h: Regenerate.
12664
12665 2014-01-16 Tom Tromey <tromey@redhat.com>
12666
12667 * value.c (struct value) <regnum>: Move earlier.
12668
12669 2014-01-16 Tom Tromey <tromey@redhat.com>
12670
12671 * remote.c (extended_remote_create_inferior): Rename from
12672 extended_remote_create_inferior_1. Add "ops" argument. Remove
12673 old implementation.
12674
12675 2014-01-16 Pedro Alves <palves@redhat.com>
12676
12677 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12678 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12679 the backchain.
12680
12681 2014-01-16 Doug Evans <dje@google.com>
12682
12683 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12684
12685 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12686
12687 * btrace.h (btrace_thread_flag): New.
12688 (struct btrace_thread_info) <flags>: New.
12689 * record-btrace.c (record_btrace_resume_thread)
12690 (record_btrace_find_thread_to_move, btrace_step_no_history)
12691 (btrace_step_stopped, record_btrace_start_replaying)
12692 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12693 (record_btrace_find_resume_thread): New.
12694 (record_btrace_resume, record_btrace_wait): Extend.
12695 (record_btrace_can_execute_reverse): New.
12696 (record_btrace_open): Fail in non-stop mode.
12697 (record_btrace_set_replay): Split into this, ...
12698 (record_btrace_stop_replaying): ... this, ...
12699 (record_btrace_clear_histories): ... and this.
12700 (init_record_btrace_ops): Init to_can_execute_reverse.
12701 * NEWS: Announce it.
12702
12703 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12704
12705 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12706 (forward_target_decr_pc_after_break)
12707 (target_decr_pc_after_break): New.
12708 * target.c (forward_target_decr_pc_after_break)
12709 (target_decr_pc_after_break): New.
12710 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12711 instead of gdbarch_decr_pc_after_break.
12712 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12713 instead of gdbarch_decr_pc_after_break.
12714 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12715 instead of gdbarch_decr_pc_after_break.
12716 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12717 instead of gdbarch_decr_pc_after_break.
12718 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12719 instead of gdbarch_decr_pc_after_break.
12720 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12721 instead of gdbarch_decr_pc_after_break.
12722
12723 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12724
12725 * btrace.c: Include regcache.h.
12726 (btrace_add_pc): New.
12727 (btrace_enable): Call btrace_add_pc.
12728 (btrace_is_empty): New.
12729 * btrace.h (btrace_is_empty): New.
12730 * record-btrace.c (require_btrace, record_btrace_info): Call
12731 btrace_is_empty.
12732
12733 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12734
12735 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12736 Support delta reads.
12737 (linux_disable_btrace): Change return type.
12738 * common/linux-btrace.h (linux_read_btrace): Change parameters
12739 and return type to allow error reporting. Update users.
12740 (linux_disable_btrace): Change return type. Update users.
12741 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12742 New.
12743 (btrace_error): New.
12744 (btrace_block) <begin>: Comment on BEGIN == 0.
12745 * btrace.c (btrace_compute_ftrace): Start from the end of
12746 the current trace.
12747 (btrace_stitch_trace, btrace_clear_history): New.
12748 (btrace_fetch): Read delta trace, return if replaying.
12749 (btrace_clear): Move clear history code to btrace_clear_history.
12750 (parse_xml_btrace): Throw an error if parsing failed.
12751 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12752 and return type to allow error reporting.
12753 (target_read_btrace): Change parameters and return type to allow
12754 error reporting.
12755 * target.c (target_read_btrace): Update.
12756 * remote.c (remote_read_btrace): Support delta reads. Pass
12757 errors on.
12758 * NEWS: Announce it.
12759
12760 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12761
12762 * record.h (record_btrace_frame_unwind)
12763 (record_btrace_tailcall_frame_unwind): New declarations.
12764 * dwarf2-frame: Include record.h
12765 (dwarf2_frame_cfa): Throw an error for btrace frames.
12766 * record-btrace.c: Include hashtab.h.
12767 (btrace_get_bfun_name): New.
12768 (btrace_call_history): Call btrace_get_bfun_name.
12769 (struct btrace_frame_cache): New.
12770 (bfcache): New.
12771 (bfcache_hash, bfcache_eq, bfcache_new): New.
12772 (btrace_get_frame_function): New.
12773 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12774 (record_btrace_frame_this_id): Compute own id.
12775 (record_btrace_frame_prev_register): Provide PC, throw_error
12776 for all other registers.
12777 (record_btrace_frame_sniffer): Detect btrace frames.
12778 (record_btrace_tailcall_frame_sniffer): New.
12779 (record_btrace_frame_dealloc_cache): New.
12780 (record_btrace_frame_unwind): Add new functions.
12781 (record_btrace_tailcall_frame_unwind): New.
12782 (_initialize_record_btrace): Allocate cache.
12783 * btrace.c (btrace_clear): Call reinit_frame_cache.
12784 * NEWS: Announce it.
12785
12786 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12787
12788 * record-btrace.c (record_btrace_set_replay)
12789 (record_btrace_goto_begin, record_btrace_goto_end)
12790 (record_btrace_goto): New.
12791 (init_record_btrace_ops): Initialize them.
12792 * NEWS: Announce it.
12793
12794 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12795
12796 * record-btrace.c (record_btrace_find_new_threads)
12797 (record_btrace_thread_alive): New.
12798 (init_record_btrace_ops): Initialize to_find_new_threads and
12799 to_thread_alive.
12800
12801 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12802
12803 * record-btrace.c (record_btrace_resume): New.
12804 (record_btrace_wait): New.
12805 (init_record_btrace_ops): Initialize to_wait and to_resume.
12806
12807 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12808
12809 * record-btrace.c (record_btrace_xfer_partial)
12810 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12811 (record_btrace_allow_memory_access): New.
12812 (init_record_btrace_ops): Initialize new methods.
12813 * target.c (raw_memory_xfer_partial): Bail out if target reports
12814 that this memory is not available.
12815
12816 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12817
12818 * target.h (target_ops) <to_insert_breakpoint>
12819 <to_remove_breakpoint>: Add target_ops parameter.
12820 (forward_target_insert_breakpoint): New.
12821 (forward_target_remove_breakpoint): New.
12822 (memory_remove_breakpoint, memory_insert_breakpoint):
12823 Add target_ops parameter.
12824 * target.c (target_insert_breakpoint): Split into this and ...
12825 (forward_target_insert_breakpoint): ... this.
12826 (target_remove_breakpoint): Split into this and ...
12827 (forward_target_remove_breakpoint): ... this.
12828 (debug_to_insert_breakpoint): Add target_ops parameter.
12829 Call forward_target_insert_breakpoint.
12830 (debug_to_remove_breakpoint): Add target_ops parameter.
12831 Call forward_target_remove_breakpoint.
12832 (update_current_target): Do not inherit or default to_insert_breakpoint
12833 and to_remove_breakpoint.
12834 * corelow.c (ignore): Add target_ops parameter.
12835 * exec.c (ignore): Add target_ops parameter.
12836 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12837 Add target_ops parameter.
12838 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12839 Add target_ops parameter.
12840 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12841 Add target_ops parameter.
12842 * record-full.c (record_full_beneath_to_insert_breakpoint)
12843 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12844 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12845 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12846 (record_full_core_remove_breakpoint): Add target_ops parameter.
12847 Update users.
12848 (record_full_beneath_to_insert_breakpoint_ops)
12849 (record_full_beneath_to_remove_breakpoint_ops)
12850 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12851 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12852 tmp_to_remove_breakpoint_ops,
12853 record_full_beneath_to_insert_breakpoint_ops, and
12854 record_full_beneath_to_remove_breakpoint_ops.
12855 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12856 (m32r_remove_breakpoint): Add target_ops parameter.
12857 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12858 Add target_ops parameter.
12859 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12860 Add target_ops parameter.
12861
12862 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12863 Markus Metzger <markus.t.metzger@intel.com>
12864
12865 * record-btrace.c: Include frame-unwind.h.
12866 (record_btrace_frame_unwind_stop_reason)
12867 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12868 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12869 New.
12870 (init_record_btrace_ops): Install it.
12871
12872 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12873
12874 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12875 get_prev_frame_1.
12876
12877 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12878
12879 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12880 earlier.
12881
12882 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12883
12884 * frame-unwind.c: Include target.h.
12885 (frame_unwind_try_unwinder): New function with code from ...
12886 (frame_unwind_find_by_frame): ... here. New variable
12887 unwinder_from_target, call also target_get_unwinder)
12888 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12889 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12890 * target.h (struct target_ops): New fields to_get_unwinder and
12891 to_get_tailcall_unwinder.
12892 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12893
12894 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12895
12896 * record-btrace.c (record_btrace_fetch_registers)
12897 (record_btrace_store_registers)
12898 (record_btrace_to_prepare_to_store): New.
12899 (init_record_btrace_ops): Add the above.
12900
12901 2014-01-16 Tom Tromey <tromey@redhat.com>
12902
12903 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12904 * target.h (struct target_ops) <to_prepare_to_store>: Add
12905 argument.
12906 (target_prepare_to_store): Add argument.
12907 * target.c (debug_to_prepare_to_store): Add argument.
12908 (update_current_target): Update.
12909 * remote.c (remote_prepare_to_store): Add 'self' argument.
12910 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12911 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12912 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12913 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12914 argument.
12915 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12916 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12917 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12918 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12919 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12920
12921 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12922
12923 * btrace.h (replay) <replay>: New.
12924 (btrace_is_replaying): New.
12925 * btrace.c (btrace_clear): Free replay iterator.
12926 (btrace_is_replaying): New.
12927 * record-btrace.c (record_btrace_is_replaying): New.
12928 (record_btrace_info): Print insn number if replaying.
12929 (record_btrace_insn_history): Start at replay position.
12930 (record_btrace_call_history): Start at replay position.
12931 (init_record_btrace_ops): Init to_record_is_replaying.
12932
12933 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12934
12935 * record-btrace.c (record_btrace_insn_history_range): Include
12936 end.
12937 (record_btrace_insn_history_from): Adjust range.
12938 (record_btrace_call_history_range): Include
12939 end.
12940 (record_btrace_call_history_from): Adjust range.
12941 * NEWS: Announce changes.
12942
12943 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12944
12945 * record.h (enum record_print_flag)
12946 <record_print_indent_calls>: New.
12947 * record.c (get_call_history_modifiers): Recognize /c modifier.
12948 (_initialize_record): Document /c modifier.
12949 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12950 Reorder fields. Optionally indent the function name. Update
12951 all users.
12952 * NEWS: Announce changes.
12953
12954 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12955
12956 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12957
12958 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12959
12960 * btrace.c (ftrace_new_function): Start counting at one.
12961 * record-btrace.c (record_btrace_info): Adjust number of calls
12962 and insns.
12963 * NEWS: Announce it.
12964
12965 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12966
12967 * record-btrace.c (btrace_call_history_insn_range): Print
12968 insn range as [begin, end].
12969
12970 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12971
12972 * btrace.h (struct btrace_func_link): New.
12973 (enum btrace_function_flag): New.
12974 (struct btrace_inst): Rename to ...
12975 (struct btrace_insn): ...this. Update all users.
12976 (struct btrace_func) <ibegin, iend>: Remove.
12977 (struct btrace_func_link): New.
12978 (struct btrace_func): Rename to ...
12979 (struct btrace_function): ...this. Update all users.
12980 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12981 (number, level, flags>: New.
12982 (struct btrace_insn_iterator): Rename to ...
12983 (struct btrace_insn_history): ...this.
12984 Update all users.
12985 (struct btrace_insn_iterator, btrace_call_iterator): New.
12986 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12987 (struct btrace_target_info) <begin, end, level>
12988 <insn_history, call_history>: New.
12989 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12990 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12991 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12992 (btrace_call_number, btrace_call_begin, btrace_call_end)
12993 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12994 (btrace_find_function_by_number, btrace_set_insn_history)
12995 (btrace_set_call_history): New.
12996 * btrace.c (btrace_init_insn_iterator)
12997 (btrace_init_func_iterator, compute_itrace): Remove.
12998 (ftrace_print_function_name, ftrace_print_filename)
12999 (ftrace_skip_file): Change
13000 parameter to const.
13001 (ftrace_init_func): Remove.
13002 (ftrace_debug): Use new btrace_function fields.
13003 (ftrace_function_switched): Also consider gaining and
13004 losing symbol information).
13005 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13006 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13007 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13008 New.
13009 (ftrace_new_function): Move. Remove debug print.
13010 (ftrace_update_lines, ftrace_update_insns): New.
13011 (ftrace_update_function): Check for call, ret, and jump.
13012 (compute_ftrace): Renamed to ...
13013 (btrace_compute_ftrace): ...this. Rewritten to compute call
13014 stack.
13015 (btrace_fetch, btrace_clear): Updated.
13016 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13017 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13018 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13019 (btrace_call_number, btrace_call_begin, btrace_call_end)
13020 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13021 (btrace_find_function_by_number, btrace_set_insn_history)
13022 (btrace_set_call_history): New.
13023 * record-btrace.c (require_btrace): Use new btrace thread
13024 info fields.
13025 (record_btrace_info, btrace_insn_history)
13026 (record_btrace_insn_history, record_btrace_insn_history_range):
13027 Use new btrace thread info fields and new iterator.
13028 (btrace_func_history_src_line): Rename to ...
13029 (btrace_call_history_src_line): ...this. Use new btrace
13030 thread info fields.
13031 (btrace_func_history): Rename to ...
13032 (btrace_call_history): ...this. Use new btrace thread info
13033 fields and new iterator.
13034 (record_btrace_call_history, record_btrace_call_history_range):
13035 Use new btrace thread info fields and new iterator.
13036
13037 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13038
13039 * frame.h (frame_id_build_unavailable_stack_special): New.
13040 * frame.c (frame_id_build_unavailable_stack_special): New.
13041
13042 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13043
13044 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13045 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13046 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13047 to gdbarch.
13048 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13049 (i386_insn_is_jump, i386_jmp_p): New.
13050 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13051 insn_is_jump to gdbarch.
13052 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13053 * gdbarch.h: Regenerated.
13054 * gdbarch.c: Regenerated.
13055 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13056 (default_insn_is_jump): New.
13057 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13058 (default_insn_is_jump): New.
13059
13060 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13061
13062 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13063 Change to ...
13064 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13065 (btrace_read_type) <btrace_read_new>: Change to ...
13066 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13067
13068 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13069
13070 * common/linux-btrace.c (linux_read_btrace): Free trace from
13071 previous iteration.
13072
13073 2014-01-15 Doug Evans <dje@google.com>
13074
13075 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13076 uint32_t.
13077
13078 2014-01-15 Tom Tromey <tromey@redhat.com>
13079
13080 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13081 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13082 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13083 (set_objfile_main_name): New function.
13084 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13085 language_of_main>: New fields.
13086 (set_objfile_main_name): Declare.
13087 * symtab.c (find_main_name): Loop over objfiles to find the main
13088 name and language.
13089 (set_main_name): Now static.
13090 (get_main_info): Add comment.
13091 * symtab.h (set_main_name): Don't declare.
13092
13093 2014-01-15 Tom Tromey <tromey@redhat.com>
13094
13095 * symtab.c (main_progspace_key): New global.
13096 (struct main_info): New.
13097 (name_of_main, language_of_main): Remove.
13098 (get_main_info, main_info_cleanup): New function.
13099 (set_main_name, main_name, main_language): Use get_main_info.
13100 (_initialize_symtab): Initialize main_progspace_key.
13101
13102 2014-01-15 Tom Tromey <tromey@redhat.com>
13103
13104 * dbxread.c (process_one_symbol): Update.
13105 * dwarf2read.c (read_partial_die): Update.
13106 * symfile.c (set_initial_language): Call main_language.
13107 * symtab.c (language_of_main): Now static.
13108 (set_main_name): Add 'lang' parameter.
13109 (find_main_name): Update.
13110 (main_language): New function.
13111 (symtab_observer_executable_changed): Update.
13112 * symtab.h (set_main_name): Update.
13113 (language_of_main): Remove.
13114 (main_language): Declare.
13115
13116 2014-01-15 Tom Tromey <tromey@redhat.com>
13117
13118 * symfile.c (init_entry_point_info): Use new "initialized" field.
13119 Update.
13120 * objfiles.h (struct entry_point) <initialized>: New field.
13121 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13122 (struct objfile) <ei>: ...here. Remove.
13123 * objfiles.c (entry_point_address_query): Update.
13124
13125 2014-01-15 Tom Tromey <tromey@redhat.com>
13126
13127 * objfiles.c (entry_point_address_query): Relocate entry point
13128 address.
13129 (objfile_relocate1): Do not relocate entry point address.
13130 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13131 <the_bfd_section_index>: New field.
13132 * symfile.c (init_entry_point_info): Find the entry point's
13133 section.
13134
13135 2014-01-15 Tom Tromey <tromey@redhat.com>
13136
13137 * solib-frv.c (enable_break): Use entry_point_address_query.
13138
13139 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13140
13141 * NEWS: Add note on improved process record-replay on
13142 arm*-linux* targets.
13143
13144 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13145
13146 * arm-tdep.c (enum arm_record_result): New enum.
13147 (arm_record_unsupported_insn): New function.
13148 (arm_record_coproc_data_proc): Removed.
13149 (thumb2_record_ld_st_multiple): New function.
13150 (thumb2_record_ld_st_dual_ex_tbb): New function.
13151 (thumb2_record_data_proc_sreg_mimm): New function.
13152 (thumb2_record_ps_dest_generic): New function.
13153 (thumb2_record_branch_misc_cntrl): New function.
13154 (thumb2_record_str_single_data): New function.
13155 (thumb2_record_ld_mem_hints): New function.
13156 (thumb2_record_ld_word): New function.
13157 (thumb2_record_lmul_lmla_div): New function.
13158 (thumb2_record_decode_insn_handler): New function.
13159 (decode_insn): Add thumb32 instruction handlers.
13160
13161 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13162
13163 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13164 (struct arm_linux_record_tdep): Declare.
13165 (arm_canonicalize_syscall): New function.
13166 (arm_all_but_pc_registers_record): New function.
13167 (arm_linux_syscall_record): New function.
13168 (arm_linux_init_abi): Add syscall recording constructs.
13169 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13170 decoding. (arm_record_coproc_data_proc): Update arm syscall
13171 decoding.
13172 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13173 <arm_syscall_record>: New field.
13174 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13175 gdb_target_obs.
13176
13177 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13178
13179 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13180 register for push instruction recording.
13181
13182 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13183
13184 * arm-tdep.c (thumb_record_misc): Update to correct logical
13185 error while recording ldm, ldmia and pop instructions.
13186
13187 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13188
13189 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13190
13191 2014-01-15 Pedro Alves <palves@redhat.com>
13192
13193 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13194 (go32_resume, go32_fetch_registers, store_register)
13195 (go32_store_registers, go32_prepare_to_store)
13196 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13197 (go32_create_inferior, go32_can_run, go32_terminal_init)
13198 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13199 declarations.
13200
13201 2014-01-15 Tom Tromey <tromey@redhat.com>
13202
13203 * target.h (async_callback_ftype): New typedef.
13204 (struct target_ops) <to_async>: Use it.
13205
13206 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13207
13208 * python/py-value.c (get_field_type): Remove unnecessary curly
13209 braces for single-statement if block.
13210
13211 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13212
13213 * python/py-type.c (convert_field): Add missing empty line
13214 after declarations.
13215
13216 2014-01-14 Doug Evans <dje@google.com>
13217
13218 * symfile.h (expand_symtabs_matching): Renamed from
13219 expand_partial_symbol_names. Update prototype.
13220 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13221 * symfile.c (expand_symtabs_matching): Renamed from
13222 expand_partial_symbol_names. New args file_matcher, kind.
13223 Rename arg fun to symbol_matcher.
13224 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13225 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13226 ada_expand_partial_symbol_name.
13227 (ada_make_symbol_completion_list): Update to call
13228 expand_symtabs_matching.
13229 (ada_add_global_exceptions): Call expand_symtabs_matching.
13230 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13231 call map_symbol_filenames.
13232 * symtab.c (sources_info): Update to call map_symbol_filenames.
13233 (search_symbols): Call expand_symtabs_matching.
13234 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13235 (default_make_symbol_completion_list_break_on): Update to call
13236 expand_symtabs_matching.
13237 (make_source_files_completion_list): Update to call
13238 map_symbol_filenames.
13239
13240 2014-01-14 Doug Evans <dje@google.com>
13241
13242 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13243 (expand_symtabs_symbol_matcher_ftype): New typedef.
13244 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13245 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13246 * symfile.c (expand_partial_symbol_names): Update to use
13247 expand_symtabs_symbol_matcher_ftype.
13248 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13249 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13250 Arg name_matcher renamed to symbol_matcher.
13251 * psymtab.c (recursively_search_psymtabs): Update to use
13252 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13253 sym_matcher.
13254 (expand_symtabs_matching_via_partial): Update to use
13255 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13256 Arg name_matcher renamed to symbol_matcher.
13257
13258 2014-01-14 Doug Evans <dje@google.com>
13259
13260 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13261 (map_partial_symbol_filenames): Ditto.
13262 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13263 (map_partial_symbol_filenames): Ditto.
13264 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13265 (map_partial_symbol_filenames): Ditto.
13266 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13267 (map_partial_symbol_filenames): Ditto.
13268 * symtab.c: Delete #include "psymtab.h".
13269
13270 2014-01-14 Pedro Alves <palves@redhat.com>
13271 Tom Tromey <tromey@redhat.com>
13272
13273 * infrun.c (use_displaced_stepping): Use find_record_target
13274 instead of RECORD_IS_USED.
13275 (adjust_pc_after_break): Use record_full_is_used instead of
13276 RECORD_IS_USED.
13277 * record-btrace.c (record_btrace_open): Call record_preopen
13278 instead of checking RECORD_IS_USED.
13279 * record-full.c (record_full_shortname)
13280 (record_full_core_shortname): New globals.
13281 (record_full_is_used): New function.
13282 (find_full_open): Call record_preopen instead of checking
13283 RECORD_IS_USED.
13284 (init_record_full_ops): Set the target's shortname to
13285 record_full_shortname.
13286 (init_record_full_core_ops): Set the target's shortname to
13287 record_full_core_shortname.
13288 * record-full.h (record_full_is_used): Declare.
13289 * record.c (find_record_target): Make extern.
13290 (record_preopen): New function.
13291 * record.h (RECORD_IS_USED): Delete macro.
13292 (find_record_target, record_preopen): Declare functions.
13293
13294 2014-01-14 Yao Qi <yao@codesourcery.com>
13295
13296 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13297 'len''s type to ULONGEST.
13298 (core_xfer_shared_libraries_aix): Likewise.
13299 * gdbarch.c, gdbarch.h: Regenerated.
13300 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13301 Change type of 'len' to ULONGEST.
13302 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13303 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13304
13305 2014-01-14 Yao Qi <yao@codesourcery.com>
13306
13307 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13308 type of 'len' to ULONGEST.
13309 (linux_xfer_osdata_processgroups): Likewise.
13310 (linux_xfer_osdata_threads): Likewise.
13311 (linux_xfer_osdata_fds): Likewise.
13312 (linux_xfer_osdata_isockets): Likewise.
13313 (linux_xfer_osdata_shm): Likewise.
13314 (linux_xfer_osdata_sem): Likewise.
13315 (linux_xfer_osdata_msg): Likewise.
13316 (linux_common_xfer_osdata): Likewise.
13317 (struct osdata_type) <getter>: Likewise.
13318 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13319 the declaration.
13320
13321 2014-01-14 Yao Qi <yao@codesourcery.com>
13322
13323 * target.h (target_xfer_partial_ftype): Update.
13324 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13325 ULONGEST.
13326 * aix-thread.c (aix_thread_xfer_partial): Change type of
13327 argument 'len' to ULONGEST.
13328 * auxv.c (procfs_xfer_auxv): Likewise.
13329 (ld_so_xfer_auxv): Likewise.
13330 (memory_xfer_auxv): Likewise.
13331 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13332 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13333 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13334 * corelow.c (core_xfer_partial): Likewise.
13335 * ctf.c (ctf_xfer_partial): Likewise.
13336 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13337 '%u'.
13338 (darwin_read_dyld_info): Likewise.
13339 (darwin_xfer_partial): Likewise.
13340 * exec.c (section_table_xfer_memory_partial): Likewise.
13341 (exec_xfer_partial): Likewise.
13342 * exec.h (section_table_xfer_memory_partial): Update
13343 declaration.
13344 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13345 instead of plongest.
13346 (gnu_xfer_partial): Likewise.
13347 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13348 (ia64_hpux_xfer_solib_got): Likewise.
13349 (ia64_hpux_xfer_partial): Likewise.
13350 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13351 * inf-ptrace.c (inf_ptrace_xfer_partial):
13352 * inf-ttrace.c (inf_ttrace_xfer_partial):
13353 * linux-nat.c (linux_xfer_siginfo): Likewise.
13354 (linux_nat_xfer_partial): Likewise.
13355 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13356 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13357 * monitor.c (monitor_xfer_memory): Likewise.
13358 (monitor_xfer_partial): Likewise.
13359 * procfs.c (procfs_xfer_partial): Likewise.
13360 * record-full.c (record_full_xfer_partial): Likewise.
13361 (record_full_core_xfer_partial): Likewise.
13362 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13363 instead of plongest.
13364 (gdbsim_xfer_partial): Likewise.
13365 * remote.c (remote_xfer_partial): Likewise.
13366 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13367 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13368 declaration.
13369 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13370 (rs6000_xfer_shared_libraries): Likewise.
13371 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13372 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13373 (sparc_xfer_partial): Likewise.
13374 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13375 (spu_xfer_partial): Likewise.
13376 * spu-multiarch.c (spu_xfer_partial): Likewise.
13377 * target.c (target_read_live_memory): Likewise.
13378 (memory_xfer_live_readonly_partial): Likewise.
13379 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13380 (target_xfer_partial, default_xfer_partial): Likewise.
13381 (current_xfer_partial): Likewise.
13382 * tracepoint.c (tfile_xfer_partial): Likewise.
13383 * windows-nat.c (windows_xfer_memory): Likewise. Call
13384 pulongest instead of plongest.
13385 (windows_xfer_partial): Likewise.
13386 (windows_xfer_shared_libraries): Likewise.
13387
13388 2014-01-14 Yao Qi <yao@codesourcery.com>
13389
13390 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13391 target_xfer_partial_ftype.
13392
13393 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13394
13395 PR python/15464
13396 PR python/16113
13397 * valops.c (value_struct_elt_bitpos): New function
13398 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13399 object to 'None' if the field name is an empty string ("").
13400 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13401 attribute to look for a field when 'name' is 'None'.
13402 (get_field_type): New function
13403
13404 2014-01-13 Doug Evans <dje@google.com>
13405
13406 PR symtab/16426
13407 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13408 (try_open_dwop_file): Ditto.
13409 * gdb_bfd.c: #include "vec.h".
13410 (bfdp): New typedef.
13411 (struct gdb_bfd_data): New member included_bfds.
13412 (gdb_bfd_unref): Unref all included bfds.
13413 (gdb_bfd_record_inclusion): New function.
13414 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13415
13416 2014-01-13 Tom Tromey <tromey@redhat.com>
13417
13418 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13419
13420 2014-01-13 Tom Tromey <tromey@redhat.com>
13421
13422 * defs.h (use_windows): Remove.
13423 * gdb.c (main): Update.
13424 * main.c (captured_main, gdb_main): Update.
13425 * main.h (struct captured_main_args) <use_windows>: Remove.
13426 * top.c (use_windows): Remove.
13427
13428 2014-01-13 Tom Tromey <tromey@redhat.com>
13429
13430 * defs.h (deprecated_flush_hook): Remove.
13431
13432 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13433
13434 PR threads/16216
13435 * linux-thread-db.c (try_thread_db_load): Add parameter
13436 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13437 (try_thread_db_load_from_pdir_1): Move it there from here.
13438 (try_thread_db_load_from_sdir): Update caller.
13439 (try_thread_db_load_from_dir): Move it there from here.
13440
13441 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13442
13443 * regformats/regdat.sh: Always rewrite the register file.
13444
13445 2014-01-13 Pedro Alves <palves@redhat.com>
13446
13447 * Makefile.in (CHECK_HEADERS): New variable.
13448 (check-headers:): New rule.
13449
13450 2014-01-13 Tom Tromey <tromey@redhat.com>
13451
13452 * cli/cli-setshow.c (do_set_command): Update.
13453 * defs.h (deprecated_set_hook): Remove.
13454 * top.c (deprecated_set_hook): Remove.
13455
13456 2014-01-13 Pedro Alves <palves@redhat.com>
13457
13458 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13459 the tracepoint if the PC is a pseudo-register.
13460
13461 2014-01-13 Tom Tromey <tromey@redhat.com>
13462
13463 * defs.h (XCALLOC): Remove.
13464 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13465 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13466 * dwarf2loc.c (allocate_piece_closure): Likewise.
13467 * elfread.c (elf_symfile_segments): Likewise.
13468 (elf_symfile_segments): Likewise.
13469 * gdbtypes.c (copy_type_recursive): Likewise.
13470 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13471 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13472 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13473 XCALLOC.
13474 * mt-tdep.c (mt_gdbarch_init): Likewise.
13475 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13476 XCALLOC.
13477 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13478 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13479 * registry.c (registry_alloc_data): Likewise.
13480 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13481 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13482 * serial.c (serial_fdopen_ops): Likewise.
13483 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13484 XCALLOC.
13485 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13486 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13487 not XCALLOC.
13488
13489 2014-01-13 Tom Tromey <tromey@redhat.com>
13490
13491 * defs.h (XMALLOC): Remove.
13492 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13493 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13494 * cli-out.c (struct ui_out *): Likewise.
13495 * cli/cli-dump.c (add_dump_command): Likewise.
13496 (add_dump_command): Likewise.
13497 * complaints.c (get_complaints): Likewise.
13498 (find_complaint): Likewise.
13499 * dwarf2-frame.c (execute_cfa_program): Likewise.
13500 * dwarf2read.c (abbrev_table_read_table): Likewise.
13501 * gdbarch.sh: Likewise.
13502 * gdbarch.c: Rebuild.
13503 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13504 * interps.c (interp_new): Likewise.
13505 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13506 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13507 * mi/mi-console.c (mi_console_file_new): Likewise.
13508 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13509 * mi/mi-out.c (mi_out_new): Likewise.
13510 * mi/mi-parse.c (mi_parse): Likewise.
13511 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13512 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13513 * observer.c (xalloc_observer_list_node): Likewise.
13514 * regcache.c (regcache_xmalloc_1): Likewise.
13515 * reggroups.c (reggroup_new): Likewise.
13516 (_initialize_reggroup): Likewise.
13517 * registry.c (register_data_with_cleanup): Likewise.
13518 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13519 * ser-base.c (serial_ttystate): Likewise.
13520 * ser-mingw.c (make_pipe_state): Likewise.
13521 * ser-pipe.c (pipe_open): Likewise.
13522 * serial.c (serial_open): Likewise.
13523 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13524 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13525 (tui_alloc_win_info): Likewise.
13526 (tui_add_content_elements): Likewise.
13527 * tui/tui-file.c (tui_file_new): Likewise.
13528 * tui/tui-out.c (tui_out_new): Likewise.
13529 * ui-file.c (mem_file_new): Likewise.
13530 * ui-out.c (push_level): Likewise.
13531 (make_cleanup_ui_out_end): Likewise.
13532 (append_header_to_list): Likewise.
13533 (ui_out_new): Likewise.
13534 * user-regs.c (user_reg_add_builtin): Likewise.
13535
13536 2014-01-13 Tom Tromey <tromey@redhat.com>
13537
13538 * defs.h (XZALLOC): Remove.
13539 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13540 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13541 (get_ada_tasks_inferior_data): Likewise.
13542 * auto-load.c (get_auto_load_pspace_data): Likewise.
13543 * auxv.c (get_auxv_inferior_data): Likewise.
13544 * bfd-target.c (target_bfd_reopen): Likewise.
13545 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13546 (deprecated_insert_raw_breakpoint): Likewise.
13547 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13548 * corelow.c (core_open): Likewise.
13549 * darwin-nat.c (darwin_check_new_threads): Likewise.
13550 (darwin_attach_pid): Likewise.
13551 * dummy-frame.c (dummy_frame_push): Likewise.
13552 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13553 * dwarf2loc.c (allocate_piece_closure): Likewise.
13554 * elfread.c (elf_symfile_segments): Likewise.
13555 * eval.c (ptrmath_type_p): Likewise.
13556 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13557 * gdbtypes.c (alloc_type_arch): Likewise.
13558 (alloc_type_instance): Likewise.
13559 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13560 * inf-child.c (inf_child_can_use_agent): Likewise.
13561 * inflow.c (get_inflow_inferior_data): Likewise.
13562 * infrun.c (save_infcall_suspend_state): Likewise.
13563 * jit.c (jit_reader_load): Likewise.
13564 (get_jit_objfile_data): Likewise.
13565 (get_jit_program_space_data): Likewise.
13566 (jit_object_open_impl): Likewise.
13567 (jit_symtab_open_impl): Likewise.
13568 (jit_block_open_impl): Likewise.
13569 (jit_frame_sniffer): Likewise.
13570 * linux-fork.c (add_fork): Likewise.
13571 * maint.c (make_command_stats_cleanup): Likewise.
13572 * objfiles.c (get_objfile_pspace_data): Likewise.
13573 * opencl-lang.c (struct lval_closure): Likewise.
13574 * osdata.c (osdata_start_osdata): Likewise.
13575 * progspace.c (new_address_space): Likewise.
13576 (add_program_space): Likewise.
13577 * remote-sim.c (get_sim_inferior_data): Likewise.
13578 * sh-tdep.c (sh_gdbarch_init): Likewise.
13579 * skip.c (Ignore): Likewise.
13580 (skip_delete_command): Likewise.
13581 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13582 (library_list_start_library): Likewise.
13583 (solib_aix_current_sos): Likewise.
13584 * solib-darwin.c (get_darwin_info): Likewise.
13585 (darwin_current_sos): Likewise.
13586 * solib-dsbt.c (get_dsbt_info): Likewise.
13587 * solib-ia64-hpux.c (new_so_list): Likewise.
13588 (ia64_hpux_get_solib_linkage_addr): Likewise.
13589 * solib-spu.c (append_ocl_sos): Likewise.
13590 (spu_current_sos): Likewise.
13591 * solib-svr4.c (get_svr4_info): Likewise.
13592 (svr4_keep_data_in_core): Likewise.
13593 (library_list_start_library): Likewise.
13594 (svr4_default_sos): Likewise.
13595 (svr4_read_so_list): Likewise.
13596 * solib-target.c (library_list_start_library): Likewise.
13597 (solib_target_current_sos): Likewise.
13598 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13599 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13600 * symfile.c (default_symfile_segments): Likewise.
13601 * target-descriptions.c (tdesc_data_init): Likewise.
13602 (tdesc_create_reg): Likewise.
13603 (struct tdesc_type *): Likewise.
13604 (tdesc_create_vector): Likewise.
13605 (tdesc_set_struct_size): Likewise.
13606 (struct tdesc_type *): Likewise.
13607 (tdesc_free_feature): Likewise.
13608 (tdesc_create_feature): Likewise.
13609 * windows-nat.c (windows_add_thread): Likewise.
13610 (windows_make_so): Likewise.
13611 * xml-support.c (gdb_xml_body_text): Likewise.
13612 (gdb_xml_create_parser_and_cleanup): Likewise.
13613 (xml_process_xincludes): Likewise.
13614 * xml-syscall.c (allocate_syscalls_info): Likewise.
13615 (syscall_create_syscall_desc): Likewise.
13616
13617 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13618
13619 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13620 function, with code from i386_stap_parse_special_token.
13621 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13622 (i386_stap_parse_special_token): Move code to the two functions
13623 above; simplify it.
13624
13625 2014-01-09 Pedro Alves <palves@redhat.com>
13626 Hui Zhu <hui@codesourcery.com>
13627
13628 PR gdb/16101
13629 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13630 bp_err_string. Don't mark the location shlib_disabled if the
13631 error thrown wasn't a generic or memory error. Catch errors
13632 thrown while inserting breakpoints in overlayed code. Output
13633 error message of software breakpoints.
13634 * remote.c (remote_insert_breakpoint): If this breakpoint has
13635 target-side commands but this stub doesn't support Z0 packets,
13636 throw NOT_SUPPORTED_ERROR error.
13637 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13638 * target.h (target_insert_breakpoint): Extend comment.
13639 (target_insert_hw_breakpoint): Add comment.
13640
13641 2014-01-08 Pedro Alves <palves@redhat.com>
13642
13643 * remote.c (remote_add_thread): Add threads silently if starting
13644 up.
13645 (remote_notice_new_inferior): If in all-stop, and starting up,
13646 don't call notice_new_inferior.
13647 (get_current_thread): New function, factored out from ...
13648 (add_current_inferior_and_thread): ... this. Adjust.
13649 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13650 found any thread, then select the remote's current thread as GDB's
13651 current thread too.
13652
13653 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13654
13655 * NEWS: Create a new section for the next release branch.
13656 Rename the section of the current branch, now that it has
13657 been cut.
13658
13659 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13660
13661 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13662 * version.in: Bump version to 7.7.50.DATE-cvs.
13663
13664 2014-01-08 Yao Qi <yao@codesourcery.com>
13665
13666 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13667 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13668 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13669
13670 2014-01-08 Yao Qi <yao@codesourcery.com>
13671
13672 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13673 return value of bfd_get_filename to symbol_file_add_from_bfd.
13674
13675 2014-01-08 Pierre Muller <muller@sourceware.org>
13676
13677 Fix PR16201.
13678 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13679 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13680 to prim_record_mininal_symbol_and_info.
13681 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13682 in call to prim_record_minimal_symbol_and_info.
13683 (read_pe_exported_syms): Set index field of section_data.
13684
13685 2014-01-07 Andrew Pinski <apinski@cavium.com>
13686
13687 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13688 * features/aarch64.c: Regenerate.
13689
13690 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13691
13692 * target.c (return_null): Define.
13693 (update_current_target): Use it instead of return_zero for
13694 functions that return a pointer.
13695
13696 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13697
13698 * source.c (add_path): Fix check for duplicated paths in the previously
13699 included paths.
13700
13701 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13702
13703 * ada-lang.c: Remove duplicated include statements.
13704 * alphabsd-nat.c: Ditto.
13705 * amd64-darwin-tdep.c: Ditto.
13706 * amd64fbsd-nat.c: Ditto.
13707 * auto-load.c: Ditto.
13708 * ax-gdb.c: Ditto.
13709 * breakpoint.c: Ditto.
13710 * dbxread.c: Ditto.
13711 * fork-child.c: Ditto.
13712 * gdb_usleep.c: Ditto.
13713 * i386-darwin-tdep.c: Ditto.
13714 * i386fbsd-nat.c: Ditto.
13715 * infcmd.c: Ditto.
13716 * inferior.c: Ditto.
13717 * jv-lang.c: Ditto.
13718 * linux-nat.c: Ditto.
13719 * linux-tdep.c: Ditto.
13720 * m68kbsd-nat.c: Ditto.
13721 * m68klinux-nat.c: Ditto.
13722 * microblaze-tdep.c: Ditto.
13723 * mips-linux-tdep.c: Ditto.
13724 * mn10300-tdep.c: Ditto.
13725 * nto-tdep.c: Ditto.
13726 * opencl-lang.c: Ditto.
13727 * osdata.c: Ditto.
13728 * printcmd.c: Ditto.
13729 * regcache.c: Ditto.
13730 * remote-m32r-sdi.c: Ditto.
13731 * remote.c: Ditto.
13732 * symfile.c: Ditto.
13733 * symtab.c: Ditto.
13734 * tilegx-linux-nat.c: Ditto.
13735 * tilegx-tdep.c: Ditto.
13736 * tracepoint.c: Ditto.
13737 * valops.c: Ditto.
13738 * vaxbsd-nat.c: Ditto.
13739 * windows-nat.c: Ditto.
13740 * xtensa-tdep.c: Ditto.
13741
13742 2014-01-07 Yao Qi <yao@codesourcery.com>
13743
13744 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13745
13746 2014-01-07 Yao Qi <yao@codesourcery.com>
13747 Joel Brobecker <brobecker@adacore.com>
13748
13749 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13750 (pdc_write_regs): Likewise.
13751 (fetch_regs_kernel_thread): Likewise.
13752 (store_regs_kernel_thread): Likewise.
13753
13754 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13755
13756 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13757 tagged type objects to their actual type.
13758
13759 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13760
13761 * ada-valprint.c (print_field_values): Add "language" parameter.
13762 Update calls to print_field_values and print_variant_part.
13763 Pass new parameter "language" in call to val_print instead
13764 of "current_language". Replace call to ada_val_print by call
13765 to val_print.
13766 (print_variant_part): Add "language" parameter.
13767 (ada_val_print_struct_union): Update call to print_field_values.
13768
13769 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13770
13771 * ada-valprint.c (ui_memcpy): Delete.
13772 (ada_print_floating): Update documentation. Add empty line
13773 between between function documentation and implementation.
13774 Delete variable "buffer". Use ui_file_xstrdup in place of
13775 ui_file_put. Minor adjustments following this change.
13776
13777 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13778
13779 * ada-valprint.c (ada_val_print_string): New function,
13780 extracted from ada_val_print_array.
13781 (ada_val_print_array): Replace extracted code by call
13782 to ada_val_print_string followed by a return. Move
13783 "else" branch to the function's top block.
13784
13785 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13786
13787 * ada-valprint.c (ada_val_print_array): Move implementation
13788 down. Rename parameter "offset" and "val" into "offset_aligned"
13789 and "original_value" respectively. Add parameter "offset".
13790
13791 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13792
13793 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13794 re-organizing the code. Change the "???" message printed
13795 when target type is a TYPE_CODE_UNDEF into
13796 "<ref to undefined type>".
13797
13798 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13799
13800 * ada-valprint.c (print_record): Delete, implementation inlined...
13801 (ada_val_print_struct_union): ... here. Remove call to
13802 ada_check_typedef in inlined implementation.
13803
13804 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13805
13806 * ada-valprint.c (ada_val_print_gnat_array): New function,
13807 extracted from ada_val_print_1;
13808 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13809 (ada_val_print_flt, ada_val_print_struct_union)
13810 (ada_val_print_ref): Likewise.
13811 (ada_val_print_1): Delete variables i and elttype.
13812 Replace extracted-out code by call to corresponding
13813 new functions.
13814
13815 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13816
13817 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13818
13819 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13820
13821 * ada-valprint.c (ada_val_print_1): Replace calls to
13822 ada_val_print_1 by calls to val_print.
13823
13824 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13825
13826 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13827 Update calls to self accordingly. Replace calls to c_val_print
13828 by calls to val_print.
13829
13830 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13831
13832 * ada-valprint.c (print_record): Delete declaration.
13833 (adjust_type_signedness, ada_val_print_1): Likewise.
13834 (ada_val_print): Move function implementation down.
13835 (print_variant_part, print_field_values, print_record):
13836 Move function implementation up.
13837
13838 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13839
13840 * python/py-type.c (typy_get_name): New function.
13841 (type_object_getset): Add entry for attribute "name".
13842 * NEWS: Add entry mentioning this new attribute.
13843
13844 2014-01-07 Yao Qi <yao@codesourcery.com>
13845
13846 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13847 statement.
13848
13849 2014-01-07 Yao Qi <yao@codesourcery.com>
13850
13851 * gnu-nat.c (info_port_rights): Add qualifier const to
13852 argument args.
13853
13854 2014-01-07 Yao Qi <yao@codesourcery.com>
13855
13856 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13857
13858 2014-01-07 Yao Qi <yao@codesourcery.com>
13859
13860 * gnu-nat.c (make_inf) Update declaration.
13861 (make_inf): Make it static.
13862 (inf_set_traced): Likewise.
13863 (inf_port_to_thread, inf_task_died_status): Likewise.
13864
13865 2014-01-07 Yao Qi <yao@codesourcery.com>
13866
13867 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13868
13869 2014-01-07 Yao Qi <yao@codesourcery.com>
13870
13871 * gnu-nat.c (_initialize_gnu_nat): Declare.
13872
13873 2014-01-07 Yao Qi <yao@codesourcery.com>
13874
13875 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13876 'enum bfd_endian'.
13877 (struct gdbarch_info) <byte_order>: Change type to
13878 'enum bfd_endian'.
13879 <byte_order_for_code>: Likewise.
13880 * gdbarch.c, gdbarch.h: Regenerated.
13881
13882 2014-01-06 Sasha Smundak <asmundak@google.com>
13883
13884 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13885
13886 2014-01-06 Tom Tromey <tromey@redhat.com>
13887
13888 * doublest.c (convert_doublest_to_floatformat): Use const, not
13889 CONST.
13890 * somread.c (som_symtab_read): Likewise.
13891
13892 2014-01-07 Hui Zhu <hui@codesourcery.com>
13893
13894 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13895 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13896 (gdb_bfd_fopen): Ditto.
13897 (gdb_bfd_openr): Ditto.
13898 (gdb_bfd_openw): Ditto.
13899 (gdb_bfd_openr_iovec): Ditto.
13900 (gdb_bfd_fdopenr): Ditto.
13901 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13902 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13903 with xstrdup.
13904 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13905 with xstrdup.
13906 * symfile-mem.c (symbol_file_add_from_memory): Removed
13907 gdb_bfd_stash_filename.
13908
13909 2014-01-03 Doug Evans <dje@google.com>
13910
13911 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13912 output.
13913
13914 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13915
13916 Update year range in copyright notice of all files.
13917
13918 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13919
13920 * top.c (print_gdb_version): Set copyright year to 2014.
13921
13922 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13923
13924 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13925
13926 For older changes see ChangeLog-2013.
13927 \f
13928 Local Variables:
13929 mode: change-log
13930 left-margin: 8
13931 fill-column: 74
13932 version-control: never
13933 coding: utf-8
13934 End:
This page took 0.384587 seconds and 5 git commands to generate.